@atlaskit/link-client-extension 6.1.0 → 7.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +35 -0
- package/dist/cjs/entry-points/data-source-client-extension-mocks.js +11 -6
- package/dist/cjs/index.js +11 -6
- package/dist/cjs/services/use-data-source-client-extension/index.js +28 -28
- package/dist/cjs/services/use-data-source-client-extension/mockActionsDiscoveryEmptyResponse.js +12 -0
- package/dist/cjs/services/use-data-source-client-extension/mockActionsDiscoveryResponse.js +76 -0
- package/dist/cjs/services/use-data-source-client-extension/mockDatasourceDataNoActionsResponse.js +125 -0
- package/dist/cjs/services/use-data-source-client-extension/mockDatasourceDataResponse.js +126 -0
- package/dist/cjs/services/use-data-source-client-extension/mockDatasourceDetailsResponse.js +79 -0
- package/dist/cjs/services/use-data-source-client-extension/mockExecuteActionResponse.js +11 -0
- package/dist/cjs/services/use-data-source-client-extension/mockExecuteActionResponseFailure.js +14 -0
- package/dist/cjs/services/use-data-source-client-extension/mocks.js +7 -405
- package/dist/cjs/services/use-smart-link-client-extension/index.js +17 -17
- package/dist/es2019/entry-points/data-source-client-extension-mocks.js +6 -1
- package/dist/es2019/index.js +6 -1
- package/dist/es2019/services/use-data-source-client-extension/mockActionsDiscoveryEmptyResponse.js +6 -0
- package/dist/es2019/services/use-data-source-client-extension/mockActionsDiscoveryResponse.js +70 -0
- package/dist/es2019/services/use-data-source-client-extension/mockDatasourceDataNoActionsResponse.js +119 -0
- package/dist/es2019/services/use-data-source-client-extension/mockDatasourceDataResponse.js +120 -0
- package/dist/es2019/services/use-data-source-client-extension/mockDatasourceDetailsResponse.js +73 -0
- package/dist/es2019/services/use-data-source-client-extension/mockExecuteActionResponse.js +5 -0
- package/dist/es2019/services/use-data-source-client-extension/mockExecuteActionResponseFailure.js +8 -0
- package/dist/es2019/services/use-data-source-client-extension/mocks.js +2 -400
- package/dist/esm/entry-points/data-source-client-extension-mocks.js +6 -1
- package/dist/esm/index.js +6 -1
- package/dist/esm/services/use-data-source-client-extension/index.js +28 -28
- package/dist/esm/services/use-data-source-client-extension/mockActionsDiscoveryEmptyResponse.js +6 -0
- package/dist/esm/services/use-data-source-client-extension/mockActionsDiscoveryResponse.js +70 -0
- package/dist/esm/services/use-data-source-client-extension/mockDatasourceDataNoActionsResponse.js +119 -0
- package/dist/esm/services/use-data-source-client-extension/mockDatasourceDataResponse.js +120 -0
- package/dist/esm/services/use-data-source-client-extension/mockDatasourceDetailsResponse.js +73 -0
- package/dist/esm/services/use-data-source-client-extension/mockExecuteActionResponse.js +5 -0
- package/dist/esm/services/use-data-source-client-extension/mockExecuteActionResponseFailure.js +8 -0
- package/dist/esm/services/use-data-source-client-extension/mocks.js +3 -401
- package/dist/esm/services/use-smart-link-client-extension/index.js +17 -17
- package/dist/types/entry-points/data-source-client-extension-mocks.d.ts +6 -1
- package/dist/types/entry-points/data-source-response-types.d.ts +1 -1
- package/dist/types/index.d.ts +7 -2
- package/dist/types/services/use-data-source-client-extension/mockActionsDiscoveryEmptyResponse.d.ts +2 -0
- package/dist/types/services/use-data-source-client-extension/mockActionsDiscoveryResponse.d.ts +2 -0
- package/dist/types/services/use-data-source-client-extension/mockDatasourceDataNoActionsResponse.d.ts +2 -0
- package/dist/types/services/use-data-source-client-extension/mockDatasourceDataResponse.d.ts +2 -0
- package/dist/types/services/use-data-source-client-extension/mockDatasourceDetailsResponse.d.ts +2 -0
- package/dist/types/services/use-data-source-client-extension/mockExecuteActionResponse.d.ts +2 -0
- package/dist/types/services/use-data-source-client-extension/mockExecuteActionResponseFailure.d.ts +2 -0
- package/dist/types/services/use-data-source-client-extension/mocks.d.ts +1 -8
- package/link-client-extension.docs.tsx +49 -47
- package/package.json +8 -15
- package/use-data-source-client-extension/mocks/package.json +1 -8
- package/use-data-source-client-extension/package.json +1 -8
- package/use-data-source-client-extension/types/package.json +1 -8
- package/use-smart-link-client-extension/package.json +1 -8
- package/dist/types-ts4.5/entry-points/data-source-client-extension-mocks.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/data-source-response-types.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/use-data-source-client-extension.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/use-smart-link-client-extension.d.ts +0 -1
- package/dist/types-ts4.5/index.d.ts +0 -8
- package/dist/types-ts4.5/services/use-data-source-client-extension/index.d.ts +0 -13
- package/dist/types-ts4.5/services/use-data-source-client-extension/mocks.d.ts +0 -9
- package/dist/types-ts4.5/services/use-data-source-client-extension/types.d.ts +0 -13
- package/dist/types-ts4.5/services/use-resolver-url/index.d.ts +0 -2
- package/dist/types-ts4.5/services/use-smart-link-client-extension/index.d.ts +0 -13
package/dist/esm/services/use-data-source-client-extension/mockDatasourceDataNoActionsResponse.js
ADDED
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
export var mockDatasourceDataNoActionsResponse = {
|
|
2
|
+
meta: {
|
|
3
|
+
key: 'jira-object-provider',
|
|
4
|
+
access: 'granted',
|
|
5
|
+
auth: [],
|
|
6
|
+
definitionId: 'object-resolver-service',
|
|
7
|
+
product: 'jira',
|
|
8
|
+
visibility: 'restricted',
|
|
9
|
+
extensionKey: 'jira-object-provider',
|
|
10
|
+
providerName: 'Jira',
|
|
11
|
+
destinationObjectTypes: ['issue']
|
|
12
|
+
},
|
|
13
|
+
data: {
|
|
14
|
+
totalCount: 1234,
|
|
15
|
+
items: [{
|
|
16
|
+
ari: {
|
|
17
|
+
data: 'ari:cloud:jira:3ac63b37-9bca-435e-9840-eff6f8739dba:issue/10025'
|
|
18
|
+
},
|
|
19
|
+
id: {
|
|
20
|
+
data: 'EDM-12'
|
|
21
|
+
},
|
|
22
|
+
description: {
|
|
23
|
+
data: 'Design datasource feature'
|
|
24
|
+
},
|
|
25
|
+
createdAt: {
|
|
26
|
+
data: '2023-01-22T01:30:00.000-05:00'
|
|
27
|
+
},
|
|
28
|
+
assigned: {
|
|
29
|
+
data: {
|
|
30
|
+
displayName: 'Sasha'
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
status: {
|
|
34
|
+
data: {
|
|
35
|
+
text: 'In Progress',
|
|
36
|
+
style: {
|
|
37
|
+
appearance: 'inprogress'
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}, {
|
|
42
|
+
ari: {
|
|
43
|
+
data: 'ari:cloud:jira:3ac63b37-9bca-435e-9840-eff6f8739dba:issue/10026'
|
|
44
|
+
},
|
|
45
|
+
id: {
|
|
46
|
+
data: 'EDM-14'
|
|
47
|
+
},
|
|
48
|
+
description: {
|
|
49
|
+
data: 'Implement datasource feature'
|
|
50
|
+
},
|
|
51
|
+
createdAt: {
|
|
52
|
+
data: '2023-03-01T01:30:00.000-05:00'
|
|
53
|
+
},
|
|
54
|
+
assigned: {
|
|
55
|
+
data: {
|
|
56
|
+
displayName: 'Hana'
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
status: {
|
|
60
|
+
data: {
|
|
61
|
+
text: 'To Do',
|
|
62
|
+
style: {
|
|
63
|
+
appearance: 'new'
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}, {
|
|
68
|
+
ari: {
|
|
69
|
+
data: 'ari:cloud:jira:3ac63b37-9bca-435e-9840-eff6f8739dba:issue/10027'
|
|
70
|
+
},
|
|
71
|
+
id: {
|
|
72
|
+
data: 'EDM-15'
|
|
73
|
+
},
|
|
74
|
+
description: {
|
|
75
|
+
data: 'Add Jira Provider'
|
|
76
|
+
},
|
|
77
|
+
createdAt: {
|
|
78
|
+
data: '2023-03-31T01:30:00.000-05:00'
|
|
79
|
+
},
|
|
80
|
+
assigned: {
|
|
81
|
+
data: {
|
|
82
|
+
displayName: 'Princey'
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
status: {
|
|
86
|
+
data: {
|
|
87
|
+
text: 'To Do'
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}, {
|
|
91
|
+
ari: {
|
|
92
|
+
data: 'ari:cloud:jira:3ac63b37-9bca-435e-9840-eff6f8739dba:issue/10028'
|
|
93
|
+
},
|
|
94
|
+
id: {
|
|
95
|
+
data: 'EDM-16'
|
|
96
|
+
},
|
|
97
|
+
description: {
|
|
98
|
+
data: 'Plan team party'
|
|
99
|
+
},
|
|
100
|
+
createdAt: {
|
|
101
|
+
data: '2023-05-01T01:30:00.000-05:00'
|
|
102
|
+
},
|
|
103
|
+
assigned: {
|
|
104
|
+
data: {
|
|
105
|
+
displayName: 'Nidhin'
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
status: {
|
|
109
|
+
data: {
|
|
110
|
+
text: 'Done',
|
|
111
|
+
style: {
|
|
112
|
+
appearance: 'success'
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}],
|
|
117
|
+
nextPageCursor: 'c3RhcnRBdD01'
|
|
118
|
+
}
|
|
119
|
+
};
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
export var mockDatasourceDataResponse = {
|
|
2
|
+
meta: {
|
|
3
|
+
key: 'jira-object-provider',
|
|
4
|
+
access: 'granted',
|
|
5
|
+
auth: [],
|
|
6
|
+
definitionId: 'object-resolver-service',
|
|
7
|
+
product: 'jira',
|
|
8
|
+
visibility: 'restricted',
|
|
9
|
+
extensionKey: 'jira-object-provider',
|
|
10
|
+
providerName: 'Jira',
|
|
11
|
+
destinationObjectTypes: ['issue'],
|
|
12
|
+
objectTypesEntity: 'work-item'
|
|
13
|
+
},
|
|
14
|
+
data: {
|
|
15
|
+
totalCount: 1234,
|
|
16
|
+
items: [{
|
|
17
|
+
ari: {
|
|
18
|
+
data: 'ari:cloud:jira:3ac63b37-9bca-435e-9840-eff6f8739dba:issue/10025'
|
|
19
|
+
},
|
|
20
|
+
id: {
|
|
21
|
+
data: 'EDM-12'
|
|
22
|
+
},
|
|
23
|
+
description: {
|
|
24
|
+
data: 'Design datasource feature'
|
|
25
|
+
},
|
|
26
|
+
createdAt: {
|
|
27
|
+
data: '2023-01-22T01:30:00.000-05:00'
|
|
28
|
+
},
|
|
29
|
+
assigned: {
|
|
30
|
+
data: {
|
|
31
|
+
displayName: 'Sasha'
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
status: {
|
|
35
|
+
data: {
|
|
36
|
+
text: 'In Progress',
|
|
37
|
+
style: {
|
|
38
|
+
appearance: 'inprogress'
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}, {
|
|
43
|
+
ari: {
|
|
44
|
+
data: 'ari:cloud:jira:3ac63b37-9bca-435e-9840-eff6f8739dba:issue/10026'
|
|
45
|
+
},
|
|
46
|
+
id: {
|
|
47
|
+
data: 'EDM-14'
|
|
48
|
+
},
|
|
49
|
+
description: {
|
|
50
|
+
data: 'Implement datasource feature'
|
|
51
|
+
},
|
|
52
|
+
createdAt: {
|
|
53
|
+
data: '2023-03-01T01:30:00.000-05:00'
|
|
54
|
+
},
|
|
55
|
+
assigned: {
|
|
56
|
+
data: {
|
|
57
|
+
displayName: 'Hana'
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
status: {
|
|
61
|
+
data: {
|
|
62
|
+
text: 'To Do',
|
|
63
|
+
style: {
|
|
64
|
+
appearance: 'new'
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}, {
|
|
69
|
+
ari: {
|
|
70
|
+
data: 'ari:cloud:jira:3ac63b37-9bca-435e-9840-eff6f8739dba:issue/10027'
|
|
71
|
+
},
|
|
72
|
+
id: {
|
|
73
|
+
data: 'EDM-15'
|
|
74
|
+
},
|
|
75
|
+
description: {
|
|
76
|
+
data: 'Add Jira Provider'
|
|
77
|
+
},
|
|
78
|
+
createdAt: {
|
|
79
|
+
data: '2023-03-31T01:30:00.000-05:00'
|
|
80
|
+
},
|
|
81
|
+
assigned: {
|
|
82
|
+
data: {
|
|
83
|
+
displayName: 'Princey'
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
status: {
|
|
87
|
+
data: {
|
|
88
|
+
text: 'To Do'
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}, {
|
|
92
|
+
ari: {
|
|
93
|
+
data: 'ari:cloud:jira:3ac63b37-9bca-435e-9840-eff6f8739dba:issue/10028'
|
|
94
|
+
},
|
|
95
|
+
id: {
|
|
96
|
+
data: 'EDM-16'
|
|
97
|
+
},
|
|
98
|
+
description: {
|
|
99
|
+
data: 'Plan team party'
|
|
100
|
+
},
|
|
101
|
+
createdAt: {
|
|
102
|
+
data: '2023-05-01T01:30:00.000-05:00'
|
|
103
|
+
},
|
|
104
|
+
assigned: {
|
|
105
|
+
data: {
|
|
106
|
+
displayName: 'Nidhin'
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
status: {
|
|
110
|
+
data: {
|
|
111
|
+
text: 'Done',
|
|
112
|
+
style: {
|
|
113
|
+
appearance: 'success'
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}],
|
|
118
|
+
nextPageCursor: 'c3RhcnRBdD01'
|
|
119
|
+
}
|
|
120
|
+
};
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
export var mockDatasourceDetailsResponse = {
|
|
2
|
+
meta: {
|
|
3
|
+
key: 'jira-object-provider',
|
|
4
|
+
access: 'granted',
|
|
5
|
+
auth: [],
|
|
6
|
+
definitionId: 'object-resolver-service',
|
|
7
|
+
product: 'jira',
|
|
8
|
+
visibility: 'restricted',
|
|
9
|
+
extensionKey: 'jira-object-provider',
|
|
10
|
+
providerName: 'Jira',
|
|
11
|
+
destinationObjectTypes: ['issue']
|
|
12
|
+
},
|
|
13
|
+
data: {
|
|
14
|
+
ari: 'ari:cloud:linking-platform:datasource/12e74246-a3f1-46c1-9fd9-8d952aa9f12f',
|
|
15
|
+
id: '12e74246-a3f1-46c1-9fd9-8d952aa9f12f',
|
|
16
|
+
name: 'JQL Datasource',
|
|
17
|
+
description: 'Fetches Issues using JQL',
|
|
18
|
+
parameters: [{
|
|
19
|
+
key: 'cloudId',
|
|
20
|
+
type: 'string',
|
|
21
|
+
description: 'Cloud Id'
|
|
22
|
+
}, {
|
|
23
|
+
key: 'jql',
|
|
24
|
+
type: 'string',
|
|
25
|
+
description: 'JQL query to retrieve list of issues'
|
|
26
|
+
}],
|
|
27
|
+
schema: {
|
|
28
|
+
properties: [{
|
|
29
|
+
key: 'id',
|
|
30
|
+
title: '',
|
|
31
|
+
type: 'string'
|
|
32
|
+
}, {
|
|
33
|
+
key: 'issue',
|
|
34
|
+
title: 'Key',
|
|
35
|
+
type: 'link'
|
|
36
|
+
}, {
|
|
37
|
+
key: 'type',
|
|
38
|
+
type: 'icon',
|
|
39
|
+
title: 'Type'
|
|
40
|
+
}, {
|
|
41
|
+
key: 'summary',
|
|
42
|
+
title: 'Summary',
|
|
43
|
+
type: 'link'
|
|
44
|
+
}, {
|
|
45
|
+
key: 'assignee',
|
|
46
|
+
title: 'Assignee',
|
|
47
|
+
type: 'user'
|
|
48
|
+
}, {
|
|
49
|
+
key: 'priority',
|
|
50
|
+
title: 'P',
|
|
51
|
+
type: 'icon'
|
|
52
|
+
}, {
|
|
53
|
+
key: 'labels',
|
|
54
|
+
title: 'Labels',
|
|
55
|
+
type: 'tag',
|
|
56
|
+
isList: true
|
|
57
|
+
}, {
|
|
58
|
+
key: 'status',
|
|
59
|
+
title: 'Status',
|
|
60
|
+
type: 'status'
|
|
61
|
+
}, {
|
|
62
|
+
key: 'created',
|
|
63
|
+
title: 'Created',
|
|
64
|
+
type: 'string'
|
|
65
|
+
}, {
|
|
66
|
+
key: 'due',
|
|
67
|
+
title: 'Due Date',
|
|
68
|
+
type: 'string'
|
|
69
|
+
}],
|
|
70
|
+
defaultProperties: ['type', 'issue', 'summary', 'assignee', 'priority', 'labels', 'status', 'created']
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
};
|