@itentialopensource/adapter-jira 1.7.6 → 2.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.
Files changed (70) hide show
  1. package/CALLS.md +8329 -2178
  2. package/CHANGELOG.md +8 -0
  3. package/adapter.js +5582 -0
  4. package/entities/AnnouncementBanner/action.json +45 -0
  5. package/entities/AnnouncementBanner/mockdatafiles/getBanner-default.json +7 -0
  6. package/entities/AnnouncementBanner/schema.json +20 -0
  7. package/entities/AppMigration/action.json +64 -0
  8. package/entities/AppMigration/mockdatafiles/migrationResourceWorkflowRuleSearchPost-default.json +53 -0
  9. package/entities/AppMigration/schema.json +21 -0
  10. package/entities/AppProperties/action.json +126 -0
  11. package/entities/AppProperties/mockdatafiles/addonPropertiesResourceGetAddonPropertiesGet-default.json +8 -0
  12. package/entities/AppProperties/mockdatafiles/addonPropertiesResourceGetAddonPropertyGet-default.json +5 -0
  13. package/entities/AppProperties/mockdatafiles/addonPropertiesResourcePutAddonPropertyPut-default.json +4 -0
  14. package/entities/AppProperties/mockdatafiles/addonPropertiesResourcePutAppPropertyPut-default.json +4 -0
  15. package/entities/AppProperties/schema.json +24 -0
  16. package/entities/Dashboards/action.json +102 -0
  17. package/entities/Dashboards/mockdatafiles/addGadget-default.json +10 -0
  18. package/entities/Dashboards/mockdatafiles/getAllAvailableDashboardGadgets-default.json +12 -0
  19. package/entities/Dashboards/mockdatafiles/getAllGadgets-default.json +34 -0
  20. package/entities/Dashboards/schema.json +6 -1
  21. package/entities/DynamicModules/action.json +65 -0
  22. package/entities/DynamicModules/schema.json +21 -0
  23. package/entities/Filters/action.json +20 -0
  24. package/entities/Filters/schema.json +2 -1
  25. package/entities/Issuefields/action.json +21 -0
  26. package/entities/Issuefields/mockdatafiles/getTrashedFieldsPaginated-default.json +35 -0
  27. package/entities/Issuefields/schema.json +2 -1
  28. package/entities/Issuenotificationschemes/action.json +121 -0
  29. package/entities/Issuenotificationschemes/mockdatafiles/createNotificationScheme-default.json +3 -0
  30. package/entities/Issuenotificationschemes/mockdatafiles/getNotificationSchemeToProjectMappings-default.json +12 -0
  31. package/entities/Issuenotificationschemes/schema.json +7 -1
  32. package/entities/Issuepriorities/action.json +121 -0
  33. package/entities/Issuepriorities/mockdatafiles/createPriority-default.json +3 -0
  34. package/entities/Issuepriorities/mockdatafiles/searchPriorities-default.json +26 -0
  35. package/entities/Issuepriorities/schema.json +7 -1
  36. package/entities/Issueresolutions/action.json +121 -0
  37. package/entities/Issueresolutions/mockdatafiles/createResolution-default.json +3 -0
  38. package/entities/Issueresolutions/mockdatafiles/searchResolutions-default.json +14 -0
  39. package/entities/Issueresolutions/schema.json +7 -1
  40. package/entities/Issuesecurityschemes/action.json +264 -0
  41. package/entities/Issuesecurityschemes/mockdatafiles/createIssueSecurityScheme-default.json +3 -0
  42. package/entities/Issuesecurityschemes/mockdatafiles/getSecurityLevelMembers-default.json +17 -0
  43. package/entities/Issuesecurityschemes/mockdatafiles/getSecurityLevels-default.json +16 -0
  44. package/entities/Issuesecurityschemes/mockdatafiles/searchProjectsUsingSecuritySchemes-default.json +4 -0
  45. package/entities/Issuesecurityschemes/mockdatafiles/searchSecuritySchemes-default.json +10 -0
  46. package/entities/Issuesecurityschemes/schema.json +14 -1
  47. package/entities/JQL/action.json +20 -0
  48. package/entities/JQL/mockdatafiles/sanitiseJqlQueries-default.json +28 -0
  49. package/entities/JQL/schema.json +2 -1
  50. package/entities/JQLFunctionsApps/action.json +45 -0
  51. package/entities/JQLFunctionsApps/mockdatafiles/getPrecomputations-default.json +22 -0
  52. package/entities/JQLFunctionsApps/schema.json +20 -0
  53. package/entities/LicenseMetrics/action.json +46 -0
  54. package/entities/LicenseMetrics/schema.json +20 -0
  55. package/entities/Status/action.json +106 -0
  56. package/entities/Status/mockdatafiles/createStatuses-default.json +15 -0
  57. package/entities/Status/mockdatafiles/getStatusesById-default.json +24 -0
  58. package/entities/Status/mockdatafiles/search-default.json +32 -0
  59. package/entities/Status/schema.json +23 -0
  60. package/entities/UIModificationsApps/action.json +85 -0
  61. package/entities/UIModificationsApps/mockdatafiles/createUiModification-default.json +4 -0
  62. package/entities/UIModificationsApps/mockdatafiles/getUiModifications-default.json +53 -0
  63. package/entities/UIModificationsApps/schema.json +22 -0
  64. package/package.json +1 -1
  65. package/pronghorn.json +4860 -642
  66. package/refs?service=git-upload-pack +0 -0
  67. package/report/adapterInfo.json +7 -7
  68. package/report/jira_v3.json +65406 -0
  69. package/test/integration/adapterTestIntegration.js +1903 -0
  70. package/test/unit/adapterTestUnit.js +2084 -0
@@ -0,0 +1,45 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "getBanner",
5
+ "protocol": "REST",
6
+ "method": "GET",
7
+ "entitypath": "{base_path}/{version}/announcementBanner?{query}",
8
+ "requestSchema": "schema.json",
9
+ "responseSchema": "schema.json",
10
+ "timeout": 0,
11
+ "sendEmpty": false,
12
+ "sendGetBody": false,
13
+ "requestDatatype": "JSON",
14
+ "responseDatatype": "JSON",
15
+ "headers": {},
16
+ "responseObjects": [
17
+ {
18
+ "type": "default",
19
+ "key": "",
20
+ "mockFile": "mockdatafiles/getBanner-default.json"
21
+ }
22
+ ]
23
+ },
24
+ {
25
+ "name": "setBanner",
26
+ "protocol": "REST",
27
+ "method": "PUT",
28
+ "entitypath": "{base_path}/{version}/announcementBanner?{query}",
29
+ "requestSchema": "schema.json",
30
+ "responseSchema": "schema.json",
31
+ "timeout": 0,
32
+ "sendEmpty": false,
33
+ "requestDatatype": "JSON",
34
+ "responseDatatype": "JSON",
35
+ "headers": {},
36
+ "responseObjects": [
37
+ {
38
+ "type": "default",
39
+ "key": "",
40
+ "mockFile": ""
41
+ }
42
+ ]
43
+ }
44
+ ]
45
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "message": "This is a public, enabled, non-dismissible banner, set using the API",
3
+ "isDismissible": false,
4
+ "isEnabled": true,
5
+ "hashId": "9HN2FJK9DM8BHRWERVW3RRTGDJ4G4D5C",
6
+ "visibility": "public"
7
+ }
@@ -0,0 +1,20 @@
1
+ {
2
+ "$id": "schema.json",
3
+ "type": "object",
4
+ "schema": "http://json-schema.org/draft-07/schema#",
5
+ "translate": false,
6
+ "dynamicfields": true,
7
+ "properties": {
8
+ "ph_request_type": {
9
+ "type": "string",
10
+ "description": "type of request (internal to adapter)",
11
+ "default": "",
12
+ "enum": [
13
+ "getBanner",
14
+ "setBanner"
15
+ ],
16
+ "external_name": "ph_request_type"
17
+ }
18
+ },
19
+ "definitions": {}
20
+ }
@@ -0,0 +1,64 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "appIssueFieldValueUpdateResourceUpdateIssueFieldsPut",
5
+ "protocol": "REST",
6
+ "method": "PUT",
7
+ "entitypath": "/rest/atlassian-connect/1/migration/field?{query}",
8
+ "requestSchema": "schema.json",
9
+ "responseSchema": "schema.json",
10
+ "timeout": 0,
11
+ "sendEmpty": false,
12
+ "requestDatatype": "JSON",
13
+ "responseDatatype": "JSON",
14
+ "headers": {},
15
+ "responseObjects": [
16
+ {
17
+ "type": "default",
18
+ "key": "",
19
+ "mockFile": ""
20
+ }
21
+ ]
22
+ },
23
+ {
24
+ "name": "migrationResourceUpdateEntityPropertiesValuePut",
25
+ "protocol": "REST",
26
+ "method": "PUT",
27
+ "entitypath": "/rest/atlassian-connect/1/migration/properties/{pathv1}?{query}",
28
+ "requestSchema": "schema.json",
29
+ "responseSchema": "schema.json",
30
+ "timeout": 0,
31
+ "sendEmpty": false,
32
+ "requestDatatype": "JSON",
33
+ "responseDatatype": "JSON",
34
+ "headers": {},
35
+ "responseObjects": [
36
+ {
37
+ "type": "default",
38
+ "key": "",
39
+ "mockFile": ""
40
+ }
41
+ ]
42
+ },
43
+ {
44
+ "name": "migrationResourceWorkflowRuleSearchPost",
45
+ "protocol": "REST",
46
+ "method": "POST",
47
+ "entitypath": "/rest/atlassian-connect/1/migration/workflow/rule/search?{query}",
48
+ "requestSchema": "schema.json",
49
+ "responseSchema": "schema.json",
50
+ "timeout": 0,
51
+ "sendEmpty": false,
52
+ "requestDatatype": "JSON",
53
+ "responseDatatype": "JSON",
54
+ "headers": {},
55
+ "responseObjects": [
56
+ {
57
+ "type": "default",
58
+ "key": "",
59
+ "mockFile": "mockdatafiles/migrationResourceWorkflowRuleSearchPost-default.json"
60
+ }
61
+ ]
62
+ }
63
+ ]
64
+ }
@@ -0,0 +1,53 @@
1
+ {
2
+ "workflowEntityId": "a498d711-685d-428d-8c3e-bc03bb450ea7",
3
+ "invalidRules": [
4
+ "55d44f1d-c859-42e5-9c27-2c5ec3f340b1"
5
+ ],
6
+ "validRules": [
7
+ {
8
+ "workflowId": {
9
+ "name": "Workflow name",
10
+ "draft": true
11
+ },
12
+ "postFunctions": [
13
+ {
14
+ "id": "123",
15
+ "key": "WorkflowKey",
16
+ "configuration": {
17
+ "value": "WorkflowValidator"
18
+ },
19
+ "transition": {
20
+ "name": "transition",
21
+ "id": 123
22
+ }
23
+ }
24
+ ],
25
+ "conditions": [
26
+ {
27
+ "id": "123",
28
+ "key": "WorkflowKey",
29
+ "configuration": {
30
+ "value": "WorkflowValidator"
31
+ },
32
+ "transition": {
33
+ "name": "transition",
34
+ "id": 123
35
+ }
36
+ }
37
+ ],
38
+ "validators": [
39
+ {
40
+ "id": "123",
41
+ "key": "WorkflowKey",
42
+ "configuration": {
43
+ "value": "WorkflowValidator"
44
+ },
45
+ "transition": {
46
+ "name": "transition",
47
+ "id": 123
48
+ }
49
+ }
50
+ ]
51
+ }
52
+ ]
53
+ }
@@ -0,0 +1,21 @@
1
+ {
2
+ "$id": "schema.json",
3
+ "type": "object",
4
+ "schema": "http://json-schema.org/draft-07/schema#",
5
+ "translate": false,
6
+ "dynamicfields": true,
7
+ "properties": {
8
+ "ph_request_type": {
9
+ "type": "string",
10
+ "description": "type of request (internal to adapter)",
11
+ "default": "",
12
+ "enum": [
13
+ "appIssueFieldValueUpdateResourceUpdateIssueFieldsPut",
14
+ "migrationResourceUpdateEntityPropertiesValuePut",
15
+ "migrationResourceWorkflowRuleSearchPost"
16
+ ],
17
+ "external_name": "ph_request_type"
18
+ }
19
+ },
20
+ "definitions": {}
21
+ }
@@ -0,0 +1,126 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "addonPropertiesResourceGetAddonPropertiesGet",
5
+ "protocol": "REST",
6
+ "method": "GET",
7
+ "entitypath": "/rest/atlassian-connect/1/addons/{pathv1}/properties?{query}",
8
+ "requestSchema": "schema.json",
9
+ "responseSchema": "schema.json",
10
+ "timeout": 0,
11
+ "sendEmpty": false,
12
+ "sendGetBody": false,
13
+ "requestDatatype": "JSON",
14
+ "responseDatatype": "JSON",
15
+ "headers": {},
16
+ "responseObjects": [
17
+ {
18
+ "type": "default",
19
+ "key": "",
20
+ "mockFile": "mockdatafiles/addonPropertiesResourceGetAddonPropertiesGet-default.json"
21
+ }
22
+ ]
23
+ },
24
+ {
25
+ "name": "addonPropertiesResourceGetAddonPropertyGet",
26
+ "protocol": "REST",
27
+ "method": "GET",
28
+ "entitypath": "/rest/atlassian-connect/1/addons/{pathv1}/properties/{pathv2}?{query}",
29
+ "requestSchema": "schema.json",
30
+ "responseSchema": "schema.json",
31
+ "timeout": 0,
32
+ "sendEmpty": false,
33
+ "sendGetBody": false,
34
+ "requestDatatype": "JSON",
35
+ "responseDatatype": "JSON",
36
+ "headers": {},
37
+ "responseObjects": [
38
+ {
39
+ "type": "default",
40
+ "key": "",
41
+ "mockFile": "mockdatafiles/addonPropertiesResourceGetAddonPropertyGet-default.json"
42
+ }
43
+ ]
44
+ },
45
+ {
46
+ "name": "addonPropertiesResourcePutAddonPropertyPut",
47
+ "protocol": "REST",
48
+ "method": "PUT",
49
+ "entitypath": "/rest/atlassian-connect/1/addons/{pathv1}/properties/{pathv2}?{query}",
50
+ "requestSchema": "schema.json",
51
+ "responseSchema": "schema.json",
52
+ "timeout": 0,
53
+ "sendEmpty": false,
54
+ "requestDatatype": "JSON",
55
+ "responseDatatype": "JSON",
56
+ "headers": {},
57
+ "responseObjects": [
58
+ {
59
+ "type": "default",
60
+ "key": "",
61
+ "mockFile": "mockdatafiles/addonPropertiesResourcePutAddonPropertyPut-default.json"
62
+ }
63
+ ]
64
+ },
65
+ {
66
+ "name": "addonPropertiesResourceDeleteAddonPropertyDelete",
67
+ "protocol": "REST",
68
+ "method": "DELETE",
69
+ "entitypath": "/rest/atlassian-connect/1/addons/{pathv1}/properties/{pathv2}?{query}",
70
+ "requestSchema": "schema.json",
71
+ "responseSchema": "schema.json",
72
+ "timeout": 0,
73
+ "sendEmpty": false,
74
+ "requestDatatype": "JSON",
75
+ "responseDatatype": "JSON",
76
+ "headers": {},
77
+ "responseObjects": [
78
+ {
79
+ "type": "default",
80
+ "key": "",
81
+ "mockFile": ""
82
+ }
83
+ ]
84
+ },
85
+ {
86
+ "name": "addonPropertiesResourcePutAppPropertyPut",
87
+ "protocol": "REST",
88
+ "method": "PUT",
89
+ "entitypath": "/rest/forge/1/app/properties/{pathv1}?{query}",
90
+ "requestSchema": "schema.json",
91
+ "responseSchema": "schema.json",
92
+ "timeout": 0,
93
+ "sendEmpty": false,
94
+ "requestDatatype": "JSON",
95
+ "responseDatatype": "JSON",
96
+ "headers": {},
97
+ "responseObjects": [
98
+ {
99
+ "type": "default",
100
+ "key": "",
101
+ "mockFile": "mockdatafiles/addonPropertiesResourcePutAppPropertyPut-default.json"
102
+ }
103
+ ]
104
+ },
105
+ {
106
+ "name": "addonPropertiesResourceDeleteAppPropertyDelete",
107
+ "protocol": "REST",
108
+ "method": "DELETE",
109
+ "entitypath": "/rest/forge/1/app/properties/{pathv1}?{query}",
110
+ "requestSchema": "schema.json",
111
+ "responseSchema": "schema.json",
112
+ "timeout": 0,
113
+ "sendEmpty": false,
114
+ "requestDatatype": "JSON",
115
+ "responseDatatype": "JSON",
116
+ "headers": {},
117
+ "responseObjects": [
118
+ {
119
+ "type": "default",
120
+ "key": "",
121
+ "mockFile": ""
122
+ }
123
+ ]
124
+ }
125
+ ]
126
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "keys": [
3
+ {
4
+ "self": "https://your-domain.atlassian.net/jira/rest/atlassian-connect/1/addon/example.app.key/properties/propertyKey",
5
+ "key": "propertyKey"
6
+ }
7
+ ]
8
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "self": "https://your-domain.atlassian.net/jira/rest/atlassian-connect/1/addon/example.app.key/properties/propertyKey",
3
+ "key": "propertyKey",
4
+ "value": "propertyValue"
5
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "message": "Property updated.",
3
+ "statusCode": 200
4
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "message": "Property updated.",
3
+ "statusCode": 200
4
+ }
@@ -0,0 +1,24 @@
1
+ {
2
+ "$id": "schema.json",
3
+ "type": "object",
4
+ "schema": "http://json-schema.org/draft-07/schema#",
5
+ "translate": false,
6
+ "dynamicfields": true,
7
+ "properties": {
8
+ "ph_request_type": {
9
+ "type": "string",
10
+ "description": "type of request (internal to adapter)",
11
+ "default": "",
12
+ "enum": [
13
+ "addonPropertiesResourceGetAddonPropertiesGet",
14
+ "addonPropertiesResourceGetAddonPropertyGet",
15
+ "addonPropertiesResourcePutAddonPropertyPut",
16
+ "addonPropertiesResourceDeleteAddonPropertyDelete",
17
+ "addonPropertiesResourcePutAppPropertyPut",
18
+ "addonPropertiesResourceDeleteAppPropertyDelete"
19
+ ],
20
+ "external_name": "ph_request_type"
21
+ }
22
+ },
23
+ "definitions": {}
24
+ }
@@ -226,6 +226,108 @@
226
226
  "mockFile": "mockdatafiles/copyDashboard-default.json"
227
227
  }
228
228
  ]
229
+ },
230
+ {
231
+ "name": "getAllAvailableDashboardGadgets",
232
+ "protocol": "REST",
233
+ "method": "GET",
234
+ "entitypath": "{base_path}/{version}/dashboard/gadgets?{query}",
235
+ "requestSchema": "schema.json",
236
+ "responseSchema": "schema.json",
237
+ "timeout": 0,
238
+ "sendEmpty": false,
239
+ "sendGetBody": false,
240
+ "requestDatatype": "JSON",
241
+ "responseDatatype": "JSON",
242
+ "headers": {},
243
+ "responseObjects": [
244
+ {
245
+ "type": "default",
246
+ "key": "",
247
+ "mockFile": "mockdatafiles/getAllAvailableDashboardGadgets-default.json"
248
+ }
249
+ ]
250
+ },
251
+ {
252
+ "name": "getAllGadgets",
253
+ "protocol": "REST",
254
+ "method": "GET",
255
+ "entitypath": "{base_path}/{version}/dashboard/{pathv1}/gadget?{query}",
256
+ "requestSchema": "schema.json",
257
+ "responseSchema": "schema.json",
258
+ "timeout": 0,
259
+ "sendEmpty": false,
260
+ "sendGetBody": false,
261
+ "requestDatatype": "JSON",
262
+ "responseDatatype": "JSON",
263
+ "headers": {},
264
+ "responseObjects": [
265
+ {
266
+ "type": "default",
267
+ "key": "",
268
+ "mockFile": "mockdatafiles/getAllGadgets-default.json"
269
+ }
270
+ ]
271
+ },
272
+ {
273
+ "name": "addGadget",
274
+ "protocol": "REST",
275
+ "method": "POST",
276
+ "entitypath": "{base_path}/{version}/dashboard/{pathv1}/gadget?{query}",
277
+ "requestSchema": "schema.json",
278
+ "responseSchema": "schema.json",
279
+ "timeout": 0,
280
+ "sendEmpty": false,
281
+ "requestDatatype": "JSON",
282
+ "responseDatatype": "JSON",
283
+ "headers": {},
284
+ "responseObjects": [
285
+ {
286
+ "type": "default",
287
+ "key": "",
288
+ "mockFile": "mockdatafiles/addGadget-default.json"
289
+ }
290
+ ]
291
+ },
292
+ {
293
+ "name": "updateGadget",
294
+ "protocol": "REST",
295
+ "method": "PUT",
296
+ "entitypath": "{base_path}/{version}/dashboard/{pathv1}/gadget/{pathv2}?{query}",
297
+ "requestSchema": "schema.json",
298
+ "responseSchema": "schema.json",
299
+ "timeout": 0,
300
+ "sendEmpty": false,
301
+ "requestDatatype": "JSON",
302
+ "responseDatatype": "JSON",
303
+ "headers": {},
304
+ "responseObjects": [
305
+ {
306
+ "type": "default",
307
+ "key": "",
308
+ "mockFile": ""
309
+ }
310
+ ]
311
+ },
312
+ {
313
+ "name": "removeGadget",
314
+ "protocol": "REST",
315
+ "method": "DELETE",
316
+ "entitypath": "{base_path}/{version}/dashboard/{pathv1}/gadget/{pathv2}?{query}",
317
+ "requestSchema": "schema.json",
318
+ "responseSchema": "schema.json",
319
+ "timeout": 0,
320
+ "sendEmpty": false,
321
+ "requestDatatype": "JSON",
322
+ "responseDatatype": "JSON",
323
+ "headers": {},
324
+ "responseObjects": [
325
+ {
326
+ "type": "default",
327
+ "key": "",
328
+ "mockFile": ""
329
+ }
330
+ ]
229
331
  }
230
332
  ]
231
333
  }
@@ -0,0 +1,10 @@
1
+ {
2
+ "id": 10001,
3
+ "moduleKey": "com.atlassian.plugins.atlassian-connect-plugin:com.atlassian.connect.node.sample-addon__sample-dashboard-item",
4
+ "color": "blue",
5
+ "position": {
6
+ "row": 0,
7
+ "column": 1
8
+ },
9
+ "title": "Issue statistics"
10
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "gadgets": [
3
+ {
4
+ "moduleKey": "com.atlassian.plugins.atlassian-connect-plugin:com.atlassian.connect.node.sample-addon__sample-dashboard-item",
5
+ "title": "Issue statistics"
6
+ },
7
+ {
8
+ "uri": "rest/gadgets/1.0/g/com.atlassian.streams.streams-jira-plugin:activitystream-gadget/gadgets/activitystream-gadget.xml",
9
+ "title": "Activity Stream"
10
+ }
11
+ ]
12
+ }
@@ -0,0 +1,34 @@
1
+ {
2
+ "gadgets": [
3
+ {
4
+ "id": 10001,
5
+ "moduleKey": "com.atlassian.plugins.atlassian-connect-plugin:com.atlassian.connect.node.sample-addon__sample-dashboard-item",
6
+ "color": "blue",
7
+ "position": {
8
+ "row": 0,
9
+ "column": 0
10
+ },
11
+ "title": "Issue statistics"
12
+ },
13
+ {
14
+ "id": 10002,
15
+ "moduleKey": "com.atlassian.plugins.atlassian-connect-plugin:com.atlassian.connect.node.sample-addon__sample-dashboard-graph",
16
+ "color": "red",
17
+ "position": {
18
+ "row": 1,
19
+ "column": 0
20
+ },
21
+ "title": "Activity stream"
22
+ },
23
+ {
24
+ "id": 10003,
25
+ "moduleKey": "com.atlassian.plugins.atlassian-connect-plugin:com.atlassian.connect.node.sample-addon__sample-dashboard-item",
26
+ "color": "yellow",
27
+ "position": {
28
+ "row": 0,
29
+ "column": 1
30
+ },
31
+ "title": "Bubble chart"
32
+ }
33
+ ]
34
+ }
@@ -20,7 +20,12 @@
20
20
  "createDashboard",
21
21
  "updateDashboard",
22
22
  "deleteDashboard",
23
- "copyDashboard"
23
+ "copyDashboard",
24
+ "getAllAvailableDashboardGadgets",
25
+ "getAllGadgets",
26
+ "addGadget",
27
+ "updateGadget",
28
+ "removeGadget"
24
29
  ],
25
30
  "external_name": "ph_request_type"
26
31
  }
@@ -0,0 +1,65 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "dynamicModulesResourceGetModulesGet",
5
+ "protocol": "REST",
6
+ "method": "GET",
7
+ "entitypath": "/rest/atlassian-connect/1/app/module/dynamic?{query}",
8
+ "requestSchema": "schema.json",
9
+ "responseSchema": "schema.json",
10
+ "timeout": 0,
11
+ "sendEmpty": false,
12
+ "sendGetBody": false,
13
+ "requestDatatype": "JSON",
14
+ "responseDatatype": "JSON",
15
+ "headers": {},
16
+ "responseObjects": [
17
+ {
18
+ "type": "default",
19
+ "key": "",
20
+ "mockFile": ""
21
+ }
22
+ ]
23
+ },
24
+ {
25
+ "name": "dynamicModulesResourceRegisterModulesPost",
26
+ "protocol": "REST",
27
+ "method": "POST",
28
+ "entitypath": "/rest/atlassian-connect/1/app/module/dynamic?{query}",
29
+ "requestSchema": "schema.json",
30
+ "responseSchema": "schema.json",
31
+ "timeout": 0,
32
+ "sendEmpty": false,
33
+ "requestDatatype": "JSON",
34
+ "responseDatatype": "JSON",
35
+ "headers": {},
36
+ "responseObjects": [
37
+ {
38
+ "type": "default",
39
+ "key": "",
40
+ "mockFile": ""
41
+ }
42
+ ]
43
+ },
44
+ {
45
+ "name": "dynamicModulesResourceRemoveModulesDelete",
46
+ "protocol": "REST",
47
+ "method": "DELETE",
48
+ "entitypath": "/rest/atlassian-connect/1/app/module/dynamic?{query}",
49
+ "requestSchema": "schema.json",
50
+ "responseSchema": "schema.json",
51
+ "timeout": 0,
52
+ "sendEmpty": false,
53
+ "requestDatatype": "JSON",
54
+ "responseDatatype": "JSON",
55
+ "headers": {},
56
+ "responseObjects": [
57
+ {
58
+ "type": "default",
59
+ "key": "",
60
+ "mockFile": ""
61
+ }
62
+ ]
63
+ }
64
+ ]
65
+ }
@@ -0,0 +1,21 @@
1
+ {
2
+ "$id": "schema.json",
3
+ "type": "object",
4
+ "schema": "http://json-schema.org/draft-07/schema#",
5
+ "translate": false,
6
+ "dynamicfields": true,
7
+ "properties": {
8
+ "ph_request_type": {
9
+ "type": "string",
10
+ "description": "type of request (internal to adapter)",
11
+ "default": "",
12
+ "enum": [
13
+ "dynamicModulesResourceGetModulesGet",
14
+ "dynamicModulesResourceRegisterModulesPost",
15
+ "dynamicModulesResourceRemoveModulesDelete"
16
+ ],
17
+ "external_name": "ph_request_type"
18
+ }
19
+ },
20
+ "definitions": {}
21
+ }