@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,15 @@
1
+ [
2
+ {
3
+ "id": "1000",
4
+ "name": "Finished",
5
+ "statusCategory": "DONE",
6
+ "scope": {
7
+ "type": "PROJECT",
8
+ "project": {
9
+ "id": "1"
10
+ }
11
+ },
12
+ "description": "The issue is resolved",
13
+ "usages": []
14
+ }
15
+ ]
@@ -0,0 +1,24 @@
1
+ [
2
+ {
3
+ "id": "1000",
4
+ "name": "Finished",
5
+ "statusCategory": "DONE",
6
+ "scope": {
7
+ "type": "PROJECT",
8
+ "project": {
9
+ "id": "1"
10
+ }
11
+ },
12
+ "description": "The issue is resolved",
13
+ "usages": [
14
+ {
15
+ "project": {
16
+ "id": "1"
17
+ },
18
+ "issueTypes": [
19
+ "10002"
20
+ ]
21
+ }
22
+ ]
23
+ }
24
+ ]
@@ -0,0 +1,32 @@
1
+ {
2
+ "self": "https://your-domain.atlassian.net/rest/api/3/statuses/search?startAt=0&maxResults=2",
3
+ "nextPage": "https://your-domain.atlassian.net/rest/api/3/statuses/search?startAt=2&maxResults=2",
4
+ "maxResults": 2,
5
+ "startAt": 0,
6
+ "total": 5,
7
+ "isLast": true,
8
+ "values": [
9
+ {
10
+ "id": "1000",
11
+ "name": "Finished",
12
+ "statusCategory": "DONE",
13
+ "scope": {
14
+ "type": "PROJECT",
15
+ "project": {
16
+ "id": "1"
17
+ }
18
+ },
19
+ "description": "The issue is resolved",
20
+ "usages": [
21
+ {
22
+ "project": {
23
+ "id": "1"
24
+ },
25
+ "issueTypes": [
26
+ "10002"
27
+ ]
28
+ }
29
+ ]
30
+ }
31
+ ]
32
+ }
@@ -0,0 +1,23 @@
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
+ "getStatusesById",
14
+ "updateStatuses",
15
+ "createStatuses",
16
+ "deleteStatusesById",
17
+ "search"
18
+ ],
19
+ "external_name": "ph_request_type"
20
+ }
21
+ },
22
+ "definitions": {}
23
+ }
@@ -0,0 +1,85 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "getUiModifications",
5
+ "protocol": "REST",
6
+ "method": "GET",
7
+ "entitypath": "{base_path}/{version}/uiModifications?{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/getUiModifications-default.json"
21
+ }
22
+ ]
23
+ },
24
+ {
25
+ "name": "createUiModification",
26
+ "protocol": "REST",
27
+ "method": "POST",
28
+ "entitypath": "{base_path}/{version}/uiModifications?{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": "mockdatafiles/createUiModification-default.json"
41
+ }
42
+ ]
43
+ },
44
+ {
45
+ "name": "updateUiModification",
46
+ "protocol": "REST",
47
+ "method": "PUT",
48
+ "entitypath": "{base_path}/{version}/uiModifications/{pathv1}?{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
+ "name": "deleteUiModification",
66
+ "protocol": "REST",
67
+ "method": "DELETE",
68
+ "entitypath": "{base_path}/{version}/uiModifications/{pathv1}?{query}",
69
+ "requestSchema": "schema.json",
70
+ "responseSchema": "schema.json",
71
+ "timeout": 0,
72
+ "sendEmpty": false,
73
+ "requestDatatype": "JSON",
74
+ "responseDatatype": "JSON",
75
+ "headers": {},
76
+ "responseObjects": [
77
+ {
78
+ "type": "default",
79
+ "key": "",
80
+ "mockFile": ""
81
+ }
82
+ ]
83
+ }
84
+ ]
85
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "id": "d7dbda8a-6239-4b63-8e13-a5ef975c8e61",
3
+ "self": "https://api.atlassian.com/ex/jira/{cloudid}/rest/api/2/uiModifications/d7dbda8a-6239-4b63-8e13-a5ef975c8e61"
4
+ }
@@ -0,0 +1,53 @@
1
+ {
2
+ "maxResults": 100,
3
+ "startAt": 0,
4
+ "total": 3,
5
+ "isLast": true,
6
+ "values": [
7
+ {
8
+ "id": "d7dbda8a-6239-4b63-8e13-a5ef975c8e61",
9
+ "name": "Reveal Story Points",
10
+ "description": "Reveals Story Points field when any Sprint is selected.",
11
+ "self": "https://api.atlassian.com/ex/jira/{cloudid}/rest/api/2/uiModifications/d7dbda8a-6239-4b63-8e13-a5ef975c8e61",
12
+ "data": "{field: 'Story Points', config: {hidden: false}}",
13
+ "contexts": [
14
+ {
15
+ "id": "1533537a-bda3-4ac6-8481-846128cd9ef4",
16
+ "projectId": "10000",
17
+ "issueTypeId": "10000",
18
+ "viewType": "GIC",
19
+ "isAvailable": true
20
+ },
21
+ {
22
+ "id": "c016fefa-6eb3-40c9-8596-4c4ef273e67c",
23
+ "projectId": "10000",
24
+ "issueTypeId": "10001",
25
+ "viewType": "GIC",
26
+ "isAvailable": true
27
+ }
28
+ ]
29
+ },
30
+ {
31
+ "id": "e4fe8db5-f82f-416b-a3aa-b260b55da577",
32
+ "name": "Set Assignee",
33
+ "description": "Sets the Assignee field automatically.",
34
+ "self": "https://api.atlassian.com/ex/jira/{cloudid}/rest/api/2/uiModifications/e4fe8db5-f82f-416b-a3aa-b260b55da577",
35
+ "contexts": [
36
+ {
37
+ "id": "8b3740f9-8780-4958-8228-69dcfbda11d9",
38
+ "projectId": "10000",
39
+ "issueTypeId": "10000",
40
+ "viewType": "GIC",
41
+ "isAvailable": true
42
+ }
43
+ ]
44
+ },
45
+ {
46
+ "id": "1453f993-79ce-4389-a36d-eb72d5c85dd6",
47
+ "name": "Hide Labels",
48
+ "description": "Hides Labels if any component is provided.",
49
+ "self": "https://api.atlassian.com/ex/jira/{cloudid}/rest/api/2/uiModifications/1453f993-79ce-4389-a36d-eb72d5c85dd6",
50
+ "contexts": []
51
+ }
52
+ ]
53
+ }
@@ -0,0 +1,22 @@
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
+ "getUiModifications",
14
+ "createUiModification",
15
+ "updateUiModification",
16
+ "deleteUiModification"
17
+ ],
18
+ "external_name": "ph_request_type"
19
+ }
20
+ },
21
+ "definitions": {}
22
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itentialopensource/adapter-jira",
3
- "version": "1.7.6",
3
+ "version": "2.0.0",
4
4
  "description": "This adapter integrates with system Jira",
5
5
  "main": "adapter.js",
6
6
  "systemName": "Atlassian Jira",