@itentialopensource/adapter-servicenow 2.4.4 → 2.5.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/AUTH.md +11 -14
- package/CHANGELOG.md +16 -0
- package/CONTRIBUTING.md +1 -160
- package/ENHANCE.md +2 -2
- package/README.md +23 -18
- package/SYSTEMINFO.md +9 -6
- package/adapter.js +161 -333
- package/adapterBase.js +465 -898
- package/changelogs/changelog.md +175 -0
- package/metadata.json +106 -33
- package/package.json +24 -24
- package/pronghorn.json +934 -595
- package/propertiesSchema.json +358 -31
- package/refs?service=git-upload-pack +0 -0
- package/report/adapterInfo.json +8 -8
- package/report/updateReport1691172645870.json +120 -0
- package/sampleProperties.json +51 -2
- package/test/integration/adapterTestBasicGet.js +2 -4
- package/test/integration/adapterTestConnectivity.js +91 -42
- package/test/integration/adapterTestIntegration.js +130 -2
- package/test/unit/adapterBaseTestUnit.js +388 -313
- package/test/unit/adapterTestUnit.js +342 -122
- package/utils/adapterInfo.js +1 -1
- package/utils/addAuth.js +1 -1
- package/utils/artifactize.js +1 -1
- package/utils/checkMigrate.js +1 -1
- package/utils/entitiesToDB.js +2 -2
- package/utils/findPath.js +1 -1
- package/utils/methodDocumentor.js +225 -0
- package/utils/modify.js +13 -15
- package/utils/packModificationScript.js +1 -1
- package/utils/pre-commit.sh +2 -0
- package/utils/taskMover.js +309 -0
- package/utils/tbScript.js +89 -34
- package/utils/tbUtils.js +41 -21
- package/utils/testRunner.js +1 -1
- package/utils/troubleshootingAdapter.js +9 -6
- package/workflows/README.md +0 -3
- package/workflows/ServiceNow - get change, get attachment, create change.json +0 -1
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
|
|
2
|
+
## 2.4.5 [08-03-2023]
|
|
3
|
+
|
|
4
|
+
* More metadata changes
|
|
5
|
+
|
|
6
|
+
See merge request itentialopensource/adapters/itsm-testing/adapter-servicenow!21
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## 2.4.4 [07-12-2023]
|
|
11
|
+
|
|
12
|
+
* fix meta comma
|
|
13
|
+
|
|
14
|
+
See merge request itentialopensource/adapters/itsm-testing/adapter-servicenow!20
|
|
15
|
+
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
## 2.4.3 [07-10-2023]
|
|
19
|
+
|
|
20
|
+
* Patch/prototype metadata
|
|
21
|
+
|
|
22
|
+
See merge request itentialopensource/adapters/itsm-testing/adapter-servicenow!19
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
## 2.4.2 [04-04-2023]
|
|
27
|
+
|
|
28
|
+
* Utils version has been updated in package.json, and the changes are being migrated to the adapter
|
|
29
|
+
|
|
30
|
+
See merge request itentialopensource/adapters/itsm-testing/adapter-servicenow!17
|
|
31
|
+
|
|
32
|
+
---
|
|
33
|
+
|
|
34
|
+
## 2.4.1 [11-23-2022]
|
|
35
|
+
|
|
36
|
+
* Changes to System Info Markdown
|
|
37
|
+
|
|
38
|
+
See merge request itentialopensource/adapters/itsm-testing/adapter-servicenow!16
|
|
39
|
+
|
|
40
|
+
---
|
|
41
|
+
|
|
42
|
+
## 2.4.0 [05-25-2022]
|
|
43
|
+
|
|
44
|
+
* Migration to the latest Adapter Foundation
|
|
45
|
+
|
|
46
|
+
See merge request itentialopensource/adapters/itsm-testing/adapter-servicenow!13
|
|
47
|
+
|
|
48
|
+
---
|
|
49
|
+
|
|
50
|
+
## 2.3.0 [03-10-2021]
|
|
51
|
+
|
|
52
|
+
- Added calls for Updating a Normal Change Request, Setting Risk Assessment for Change Request and Auto Approving a Change Request. Also needed to change how the data is sent on CreateNormalChangeRequest
|
|
53
|
+
|
|
54
|
+
See merge request itentialopensource/adapters/itsm-testing/adapter-servicenow!12
|
|
55
|
+
|
|
56
|
+
---
|
|
57
|
+
|
|
58
|
+
## 2.2.2 [03-10-2021]
|
|
59
|
+
|
|
60
|
+
- Migration to bring up to the latest foundation
|
|
61
|
+
- Change to .eslintignore (adapter_modification directory)
|
|
62
|
+
- Change to README.md (new properties, new scripts, new processes)
|
|
63
|
+
- Changes to adapterBase.js (new methods)
|
|
64
|
+
- Changes to package.json (new scripts, dependencies)
|
|
65
|
+
- Changes to propertiesSchema.json (new properties and changes to existing)
|
|
66
|
+
- Changes to the Unit test
|
|
67
|
+
- Adding several test files, utils files and .generic entity
|
|
68
|
+
- Fix order of scripts and dependencies in package.json
|
|
69
|
+
- Fix order of properties in propertiesSchema.json
|
|
70
|
+
- Update sampleProperties, unit and integration tests to have all new properties.
|
|
71
|
+
- Add all new calls to adapter.js and pronghorn.json
|
|
72
|
+
- Add suspend piece to older methods
|
|
73
|
+
|
|
74
|
+
See merge request itentialopensource/adapters/itsm-testing/adapter-servicenow!11
|
|
75
|
+
|
|
76
|
+
---
|
|
77
|
+
|
|
78
|
+
## 2.2.1 [07-10-2020]
|
|
79
|
+
|
|
80
|
+
- Update the adapter to the latest foundation
|
|
81
|
+
|
|
82
|
+
See merge request itentialopensource/adapters/itsm-testing/adapter-servicenow!10
|
|
83
|
+
|
|
84
|
+
---
|
|
85
|
+
|
|
86
|
+
## 2.2.0 [04-15-2020]
|
|
87
|
+
|
|
88
|
+
- Added a task to query any table by name with sysparm_limit, sysparm_query and sysparm_fields
|
|
89
|
+
|
|
90
|
+
See merge request itentialopensource/adapters/itsm-testing/adapter-servicenow!9
|
|
91
|
+
|
|
92
|
+
---
|
|
93
|
+
|
|
94
|
+
## 2.1.2 [01-16-2020]
|
|
95
|
+
|
|
96
|
+
- Update the adapter to the latest foundation
|
|
97
|
+
|
|
98
|
+
See merge request itentialopensource/adapters/itsm-testing/adapter-servicenow!8
|
|
99
|
+
|
|
100
|
+
---
|
|
101
|
+
|
|
102
|
+
## 2.1.1 [01-16-2020]
|
|
103
|
+
|
|
104
|
+
- Fixes healthcheck not limiting responses to 1 item
|
|
105
|
+
|
|
106
|
+
See merge request itentialopensource/adapters/itsm-testing/adapter-servicenow!7
|
|
107
|
+
|
|
108
|
+
---
|
|
109
|
+
|
|
110
|
+
## 2.1.0 [11-08-2019]
|
|
111
|
+
|
|
112
|
+
- Update the adapter to the latest adapter foundation.
|
|
113
|
+
- Updating to adapter-utils 4.24.3 (automatic)
|
|
114
|
+
- Add sample token schemas (manual)
|
|
115
|
+
- Adding placement property to getToken response schema (manual - before encrypt)
|
|
116
|
+
- Adding sso default into action.json for getToken (manual - before response object)
|
|
117
|
+
- Add new adapter properties for metrics & mock (save_metric, mongo and return_raw) (automatic - check place manual before stub)
|
|
118
|
+
- Update sample properties to include new properties (manual)
|
|
119
|
+
- Update integration test for raw mockdata (automatic)
|
|
120
|
+
- Update test properties (manual)
|
|
121
|
+
- Changes to artifactize (automatic)
|
|
122
|
+
- Update type in sampleProperties so it is correct for the adapter (manual)
|
|
123
|
+
- Update the readme (automatic)
|
|
124
|
+
|
|
125
|
+
See merge request itentialopensource/adapters/itsm-testing/adapter-servicenow!6
|
|
126
|
+
|
|
127
|
+
---
|
|
128
|
+
|
|
129
|
+
## 2.0.0 [10-01-2019]
|
|
130
|
+
|
|
131
|
+
- Enhances many of the calls in the adapter (118 of 142 - integration tests now work while integrated to ServiceNow). There are still some calls (24) that require plugins and other things to exist so testing these is very difficult and will require even more time. There are also a couple of calls that have been tested but with data specific to a particular ServiceNow instance so they are likely to fail integrated with another ServiceNow instance.
|
|
132
|
+
|
|
133
|
+
See merge request itentialopensource/adapters/itsm-testing/adapter-servicenow!5
|
|
134
|
+
|
|
135
|
+
---
|
|
136
|
+
|
|
137
|
+
## 1.0.0 [09-18-2019]
|
|
138
|
+
|
|
139
|
+
- Mimics current itential/adapter-servicenow calls. Adds Oauth token support in action schema's
|
|
140
|
+
|
|
141
|
+
See merge request itentialopensource/adapters/itsm-testing/adapter-servicenow!4
|
|
142
|
+
|
|
143
|
+
---
|
|
144
|
+
|
|
145
|
+
## [09-06-2019] & 0.4.0 [08-21-2019] & 0.3.0 [07-30-2019] & 0.2.0 [07-17-2019]
|
|
146
|
+
|
|
147
|
+
- Migrate the adapter to the latest foundation, categorize and prepare it for app artifact
|
|
148
|
+
|
|
149
|
+
See merge request itentialopensource/adapters/itsm-testing/adapter-servicenow!3
|
|
150
|
+
|
|
151
|
+
---
|
|
152
|
+
|
|
153
|
+
## 0.1.4 [06-13-2019]
|
|
154
|
+
|
|
155
|
+
- Added the missing param
|
|
156
|
+
|
|
157
|
+
See merge request itentialopensource/adapters/adapter-servicenow!2
|
|
158
|
+
|
|
159
|
+
---
|
|
160
|
+
|
|
161
|
+
## 0.1.3 [06-07-2019] & 0.1.2 [06-05-2019]
|
|
162
|
+
|
|
163
|
+
- Creates mock data from integration test data responses and fixes stub test
|
|
164
|
+
|
|
165
|
+
See merge request itentialopensource/adapters/adapter-servicenow!1
|
|
166
|
+
|
|
167
|
+
---
|
|
168
|
+
|
|
169
|
+
## 0.1.1 [05-29-2019]
|
|
170
|
+
|
|
171
|
+
- Initial Commit
|
|
172
|
+
|
|
173
|
+
See commit a4b075a
|
|
174
|
+
|
|
175
|
+
---
|
package/metadata.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "adapter-servicenow",
|
|
3
3
|
"vendor": "ServiceNow",
|
|
4
4
|
"product": "IT Service Management",
|
|
5
|
-
"
|
|
5
|
+
"osVersions": [
|
|
6
6
|
"Istanbul",
|
|
7
7
|
"Jakarta",
|
|
8
8
|
"Kingston",
|
|
@@ -17,7 +17,11 @@
|
|
|
17
17
|
"Tokyo",
|
|
18
18
|
"Utah"
|
|
19
19
|
],
|
|
20
|
-
"
|
|
20
|
+
"apiVersions": [
|
|
21
|
+
"Istanbul",
|
|
22
|
+
"Madrid"
|
|
23
|
+
],
|
|
24
|
+
"iapVersions": [
|
|
21
25
|
"2021.1.x",
|
|
22
26
|
"2021.2.x",
|
|
23
27
|
"2022.1.x",
|
|
@@ -25,82 +29,151 @@
|
|
|
25
29
|
],
|
|
26
30
|
"method": "REST API",
|
|
27
31
|
"type": "Adapter",
|
|
28
|
-
"example":
|
|
32
|
+
"example": {
|
|
33
|
+
"name": "getStandardChangeRequestById",
|
|
34
|
+
"overview": "Get a particular Servicenow change request by its id",
|
|
35
|
+
"exampleInput": "{\n \"name\": \"sysparmQuery\",\n \"type\": \"object\",\n \"info\": \"Encoded query used to filter the result set. e.g. { change: 'CHG123456' }\",\n \"required\": false,\n \"schema\": {\n \"title\": \"sysparmQuery\",\n \"type\": \"object\"\n }\n},\n{\n \"name\": \"changeId\",\n \"type\": \"string\",\n \"info\": \"Unique identifier of the standard change request to retrieve from the [change_request] table.\",\n \"required\": true,\n \"schema\": {\n \"title\": \"changeId\",\n \"type\": \"string\"\n }\n}\n",
|
|
36
|
+
"exampleOutput": "{ \n \"result\": { \n \"sys_id\": {\n \"display_value\": \"c45e54b0db400010a704fe1b68961985\",\n \"value\": \"c45e54b0db400010a704fe1b68961985\"\n },\n \"reason\": {\n \"display_value\": \"\",\n \"value\": \"\"\n },\n \"parent\": {\n \"display_value\": \"\",\n \"value\": \"\"\n },\n \"watch_list\": {\n \"display_value\": \"\",\n \"value\": \"\"\n },\n \"upon_reject\": {\n \"display_value\": \"Cancel all future Tasks\",\n \"value\": \"cancel\"\n },\n \"sys_updated_on\": {\n \"display_value\": \"2019-09-19 14:06:29\",\n \"value\": \"2019-09-19 21:06:29\",\n \"display_value_internal\": \"2019-09-19 14:06:29\"\n },\n \"type\": {\n \"display_value\": \"Standard\",\n \"value\": \"standard\"\n },\n \"approval_history\": {\n \"display_value\": \"\",\n \"value\": \"\"\n },\n \"test_plan\": {\n \"display_value\": \"Explain what testing you have done or will do prior to implementation that gives you confidence this change will be successful.\\r\\n\\r\\nDescribe the tests that will be carried out after implementation to confirm.\\r\\n\\t\\t\\tthat the change has been successful.\",\n \"value\": \"Explain what testing you have done or will do prior to implementation that gives you confidence this change will be successful.\\r\\n\\r\\nDescribe the tests that will be carried out after implementation to confirm.\\r\\n\\t\\t\\tthat the change has been successful.\"\n },\n \"number\": {\n \"display_value\": \"CHG0030004\",\n \"value\": \"CHG0030004\"\n },\n \"cab_delegate\": {\n \"display_value\": \"\",\n \"value\": \"\"\n },\n \"requested_by_date\": {\n \"display_value\": \"\",\n \"value\": \"\",\n \"display_value_internal\": \"\"\n },\n \"state\": {\n \"display_value\": \"New\",\n \"value\": -5\n },\n \"sys_created_by\": {\n \"display_value\": \"admin\",\n \"value\": \"admin\"\n },\n \"knowledge\": {\n \"display_value\": \"false\",\n \"value\": false\n },\n \"order\": {\n \"display_value\": \"\",\n \"value\": \"\"\n },\n \"phase\": {\n \"display_value\": \"Requested\",\n \"value\": \"requested\"\n },\n \"cmdb_ci\": {\n \"display_value\": \"\",\n \"value\": \"\"\n },\n \"delivery_plan\": {\n \"display_value\": \"\",\n \"value\": \"\"\n },\n \"impact\": {\n \"display_value\": \"3 - Low\",\n \"value\": 3\n },\n \"active\": {\n \"display_value\": \"true\",\n \"value\": true\n },\n \"work_notes_list\": {\n \"display_value\": \"\",\n \"value\": \"\"\n },\n \"priority\": {\n \"display_value\": \"4 - Low\",\n \"value\": 4\n },\n \"sys_domain_path\": {\n \"display_value\": \"/\",\n \"value\": \"/\"\n },\n \"production_system\": {\n \"display_value\": \"false\",\n \"value\": false\n },\n \"cab_recommendation\": {\n \"display_value\": \"\",\n \"value\": \"\"\n },\n \"rejection_goto\": {\n \"display_value\": \"\",\n \"value\": \"\"\n },\n \"review_date\": {\n \"display_value\": \"\",\n \"value\": \"\",\n \"display_value_internal\": \"\"\n },\n \"requested_by\": {\n \"display_value\": \"System Administrator\",\n \"value\": \"6816f79cc0a8016401c5a33be04be441\"\n },\n \"business_duration\": {\n \"display_value\": \"\",\n \"value\": \"\"\n },\n \"group_list\": {\n \"display_value\": \"\",\n \"value\": \"\"\n },\n \"change_plan\": {\n \"display_value\": \"\",\n \"value\": \"\"\n },\n \"approval_set\": {\n \"display_value\": \"\",\n \"value\": \"\",\n \"display_value_internal\": \"\"\n },\n \"wf_activity\": {\n \"display_value\": \"\",\n \"value\": \"\"\n },\n \"implementation_plan\": {\n \"display_value\": \"List the steps in order of completion that will be worked through when implementing this change.\\r\\n\\r\\nNote who will perform each step and whether there are dependencies\\r\\n\\t\\t\\tbetween steps.\",\n \"value\": \"List the steps in order of completion that will be worked through when implementing this change.\\r\\n\\r\\nNote who will perform each step and whether there are dependencies\\r\\n\\t\\t\\tbetween steps.\"\n },\n \"end_date\": {\n \"display_value\": \"\",\n \"value\": \"\",\n \"display_value_internal\": \"\"\n },\n \"short_description\": {\n \"display_value\": \"Include a title for your change no greater than 100 characters\",\n \"value\": \"Include a title for your change no greater than 100 characters\"\n },\n \"correlation_display\": {\n \"display_value\": \"\",\n \"value\": \"\"\n },\n \"delivery_task\": {\n \"display_value\": \"\",\n \"value\": \"\"\n },\n \"work_start\": {\n \"display_value\": \"\",\n \"value\": \"\",\n \"display_value_internal\": \"\"\n },\n \"outside_maintenance_schedule\": {\n \"display_value\": \"false\",\n \"value\": false\n },\n \"additional_assignee_list\": {\n \"display_value\": \"\",\n \"value\": \"\"\n },\n \"std_change_producer_version\": {\n \"display_value\": \"Replace printer toner - 1\",\n \"value\": \"5b7399bc53231300e321ddeeff7b1206\"\n },\n \"sys_class_name\": {\n \"display_value\": \"Change Request\",\n \"value\": \"change_request\"\n },\n \"closed_by\": {\n \"display_value\": \"\",\n \"value\": \"\"\n },\n \"follow_up\": {\n \"display_value\": \"\",\n \"value\": \"\",\n \"display_value_internal\": \"\"\n },\n \"review_status\": {\n \"display_value\": \"\",\n \"value\": \"\"\n },\n \"reassignment_count\": {\n \"display_value\": \"0\",\n \"value\": 0\n },\n \"start_date\": {\n \"display_value\": \"\",\n \"value\": \"\",\n \"display_value_internal\": \"\"\n },\n \"assigned_to\": {\n \"display_value\": \"\",\n \"value\": \"\"\n },\n \"variables\": {\n \"display_value\": \"variable_pool\",\n \"value\": \"variable_pool\"\n },\n \"sla_due\": {\n \"display_value\": \"UNKNOWN\",\n \"value\": \"\",\n \"display_value_internal\": \"\"\n },\n \"comments_and_work_notes\": {\n \"display_value\": \"\",\n \"value\": \"\"\n },\n \"escalation\": {\n \"display_value\": \"Normal\",\n \"value\": 0\n },\n \"upon_approval\": {\n \"display_value\": \"Proceed to Next Task\",\n \"value\": \"proceed\"\n },\n \"correlation_id\": {\n \"display_value\": \"\",\n \"value\": \"\"\n },\n \"made_sla\": {\n \"display_value\": \"true\",\n \"value\": true\n },\n \"backout_plan\": {\n \"display_value\": \"Describe the steps you will take to revert the change to its pre-implementation state.\\r\\n\\r\\nAt what point during the implementation will you take the decision to\\r\\n\\t\\t\\tbackout your change?\\r\\n\\r\\n\\t\\t\\tDoes your change window include time to backout if you need\\r\\n\\t\\t\\tto?\",\n \"value\": \"Describe the steps you will take to revert the change to its pre-implementation state.\\r\\n\\r\\nAt what point during the implementation will you take the decision to\\r\\n\\t\\t\\tbackout your change?\\r\\n\\r\\n\\t\\t\\tDoes your change window include time to backout if you need\\r\\n\\t\\t\\tto?\"\n },\n \"conflict_status\": {\n \"display_value\": \"Not Run\",\n \"value\": \"Not Run\"\n },\n \"sys_updated_by\": {\n \"display_value\": \"admin\",\n \"value\": \"admin\"\n },\n \"opened_by\": {\n \"display_value\": \"System Administrator\",\n \"value\": \"6816f79cc0a8016401c5a33be04be441\"\n },\n \"user_input\": {\n \"display_value\": \"\",\n \"value\": \"\"\n },\n \"sys_created_on\": {\n \"display_value\": \"2019-09-19 14:06:29\",\n \"value\": \"2019-09-19 21:06:29\",\n \"display_value_internal\": \"2019-09-19 14:06:29\"\n },\n \"on_hold_task\": {\n \"display_value\": \"\",\n \"value\": \"\"\n },\n \"sys_domain\": {\n \"display_value\": \"global\",\n \"value\": \"global\"\n },\n \"closed_at\": {\n \"display_value\": \"\",\n \"value\": \"\",\n \"display_value_internal\": \"\"\n },\n \"review_comments\": {\n \"display_value\": \"\",\n \"value\": \"\"\n },\n \"business_service\": {\n \"display_value\": \"\",\n \"value\": \"\"\n },\n \"time_worked\": {\n \"display_value\": \"\",\n \"value\": \"\"\n },\n \"expected_start\": {\n \"display_value\": \"\",\n \"value\": \"\",\n \"display_value_internal\": \"\"\n },\n \"opened_at\": {\n \"display_value\": \"2019-09-19 14:06:20\",\n \"value\": \"2019-09-19 21:06:20\",\n \"display_value_internal\": \"2019-09-19 14:06:20\"\n },\n \"work_end\": {\n \"display_value\": \"\",\n \"value\": \"\",\n \"display_value_internal\": \"\"\n },\n \"phase_state\": {\n \"display_value\": \"Open\",\n \"value\": \"open\"\n },\n \"cab_date\": {\n \"display_value\": \"\",\n \"value\": \"\",\n \"display_value_internal\": \"\"\n },\n \"work_notes\": {\n \"display_value\": \"\",\n \"value\": \"\"\n },\n \"close_code\": {\n \"display_value\": \"\",\n \"value\": \"\"\n },\n \"assignment_group\": {\n \"display_value\": \"Help Desk\",\n \"value\": \"679434f053231300e321ddeeff7b12d8\"\n },\n \"description\": {\n \"display_value\": \"Describe what you plan to do\",\n \"value\": \"Describe what you plan to do\"\n },\n \"on_hold_reason\": {\n \"display_value\": \"\",\n \"value\": \"\"\n },\n \"calendar_duration\": {\n \"display_value\": \"\",\n \"value\": \"\"\n },\n \"close_notes\": {\n \"display_value\": \"\",\n \"value\": \"\"\n },\n \"contact_type\": {\n \"display_value\": \"\",\n \"value\": \"\"\n },\n \"cab_required\": {\n \"display_value\": \"false\",\n \"value\": false\n },\n \"urgency\": {\n \"display_value\": \"3 - Low\",\n \"value\": 3\n },\n \"scope\": {\n \"display_value\": \"Medium\",\n \"value\": 3\n },\n \"company\": {\n \"display_value\": \"\",\n \"value\": \"\"\n },\n \"justification\": {\n \"display_value\": \"To improve color standards.\",\n \"value\": \"To improve color standards.\"\n },\n \"activity_due\": {\n \"display_value\": \"UNKNOWN\",\n \"value\": \"\",\n \"display_value_internal\": \"\"\n },\n \"comments\": {\n \"display_value\": \"\",\n \"value\": \"\"\n },\n \"approval\": {\n \"display_value\": \"Approved\",\n \"value\": \"approved\"\n },\n \"due_date\": {\n \"display_value\": \"\",\n \"value\": \"\",\n \"display_value_internal\": \"\"\n },\n \"on_hold\": {\n \"display_value\": \"false\",\n \"value\": false\n },\n \"sys_tags\": {\n \"display_value\": \"\",\n \"value\": \"\"\n },\n \"conflict_last_run\": {\n \"display_value\": \"\",\n \"value\": \"\",\n \"display_value_internal\": \"\"\n },\n \"risk\": {\n \"display_value\": \"Moderate\",\n \"value\": 3\n },\n \"location\": {\n \"display_value\": \"\",\n \"value\": \"\"\n },\n \"category\": {\n \"display_value\": \"Other\",\n \"value\": \"Other\"\n },\n \"risk_impact_analysis\": {\n \"display_value\": \"Low\",\n \"value\": \"Low\"\n }\n }\n}"
|
|
37
|
+
},
|
|
29
38
|
"domains": [
|
|
30
39
|
"Inventory",
|
|
31
40
|
"Discovery",
|
|
32
41
|
"ITSM"
|
|
33
42
|
],
|
|
43
|
+
"tags": [
|
|
44
|
+
"Change Management",
|
|
45
|
+
"ITSM",
|
|
46
|
+
"Incidents",
|
|
47
|
+
"Request"
|
|
48
|
+
],
|
|
49
|
+
"deprecated": {
|
|
50
|
+
"isDeprecated": false,
|
|
51
|
+
"deprecatedOn": "<date>",
|
|
52
|
+
"endOfLife": "<date>",
|
|
53
|
+
"replacedBy": {
|
|
54
|
+
"name": "adapter-servicenow JUST EXAMPLE!!!!",
|
|
55
|
+
"overview": "1 sentence about this thing",
|
|
56
|
+
"repoLink": "https://gitlab.com/itentialopensource/adapters/itsm-testing/adapter-servicenow",
|
|
57
|
+
"docLink": "https://docs.itential.com/opensource/docs/servicenow",
|
|
58
|
+
"webLink": "<TBD>"
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"brokerSince": "",
|
|
34
62
|
"documentation": {
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
63
|
+
"storeLink": "",
|
|
64
|
+
"npmLink": "https://www.npmjs.com/package/@itentialopensource/adapter-servicenow",
|
|
65
|
+
"repoLink": "https://gitlab.com/itentialopensource/adapters/itsm-testing/adapter-servicenow",
|
|
66
|
+
"docLink": "https://docs.itential.com/opensource/docs/servicenow",
|
|
67
|
+
"faqLink": "https://docs.itential.com/opensource/docs/troubleshooting-an-adapter",
|
|
68
|
+
"contributeLink": "https://gitlab.com/itentialopensource/adapters/contributing-guide",
|
|
69
|
+
"issueLink": "https://itential.atlassian.net/servicedesk/customer/portals",
|
|
70
|
+
"webLink": "https://www.itential.com/adapters/servicenow/",
|
|
71
|
+
"vendorLink": "https://www.servicenow.com/",
|
|
72
|
+
"productLink": "https://www.servicenow.com/products/itsm.html",
|
|
73
|
+
"apiLinks": [
|
|
74
|
+
"https://developer.servicenow.com/dev.do#!/learn/learning-plans/tokyo/new_to_servicenow/app_store_learnv2_scripting_tokyo_servicenow_apis"
|
|
75
|
+
]
|
|
40
76
|
},
|
|
41
77
|
"relatedItems": {
|
|
42
|
-
"adapters": [
|
|
43
|
-
|
|
44
|
-
"name": "adapter-servicenow JUST EXAMPLE!!!!",
|
|
45
|
-
"repolink": "https://gitlab.com/itentialopensource/adapters/itsm-testing/adapter-servicenow",
|
|
46
|
-
"doclink": "https://docs.itential.com/opensource/docs/servicenow",
|
|
47
|
-
"marketLink": "<TBD>"
|
|
48
|
-
}
|
|
49
|
-
],
|
|
78
|
+
"adapters": [],
|
|
79
|
+
"integrations": [],
|
|
50
80
|
"ecosystemApplications": [
|
|
51
81
|
{
|
|
52
82
|
"name": "Itential ServiceNow App",
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
|
|
83
|
+
"overview": "Start automations in the Itential Platform from ServiceNow",
|
|
84
|
+
"versions": [
|
|
85
|
+
"^0.9.0"
|
|
86
|
+
],
|
|
87
|
+
"storeLink": "https://store.servicenow.com/sn_appstore_store.do#!/store/application/f2ba728813da041032813092e144b01f",
|
|
88
|
+
"docLink": "https://docs.itential.com/opensource/docs/servicenow-application",
|
|
89
|
+
"webLink": "<TBD>"
|
|
56
90
|
}
|
|
57
91
|
],
|
|
58
92
|
"automations": [
|
|
59
93
|
{
|
|
60
94
|
"name": "ServiceNow Create Change Request",
|
|
61
|
-
"
|
|
95
|
+
"overview": "This pre-built integrates with the ServiceNow Open Source Adapter to create a Change Request in the change_request table in ServiceNow.",
|
|
96
|
+
"versions": [
|
|
97
|
+
"^0.2.5"
|
|
98
|
+
],
|
|
99
|
+
"repoLink": "https://gitlab.com/itentialopensource/pre-built-automations/servicenow-create-change-request",
|
|
62
100
|
"docLink": "<TBD>",
|
|
63
|
-
"
|
|
101
|
+
"webLink": "https://www.itential.com/automations/servicenow-create-change-request/"
|
|
64
102
|
},
|
|
65
103
|
{
|
|
66
104
|
"name": "ServiceNow Schedule Automation Using Change Request",
|
|
67
|
-
"
|
|
105
|
+
"overview": "This pre-built integrates with the ServiceNow Open Source Adapter to schedule an automation via Automation Catalog at the start of the Planned start date.",
|
|
106
|
+
"versions": [
|
|
107
|
+
"^0.2.5"
|
|
108
|
+
],
|
|
109
|
+
"repoLink": "https://gitlab.com/itentialopensource/pre-built-automations/servicenow-schedule-automation-using-change-request",
|
|
68
110
|
"docLink": "<TBD>",
|
|
69
|
-
"
|
|
111
|
+
"webLink": "https://www.itential.com/automations/servicenow-schedule-automation-using-change-request/"
|
|
70
112
|
},
|
|
71
113
|
{
|
|
72
114
|
"name": "ServiceNow Incident Creation",
|
|
73
|
-
"
|
|
115
|
+
"overview": "This Pre-Built integrates with the ServiceNow Open Source Adapter to create an incident in the incident table in ServiceNow.",
|
|
116
|
+
"versions": [
|
|
117
|
+
"^0.0.21"
|
|
118
|
+
],
|
|
119
|
+
"repoLink": "https://gitlab.com/itentialopensource/pre-built-automations/servicenow-incident-creation",
|
|
74
120
|
"docLink": "<TBD>",
|
|
75
|
-
"
|
|
121
|
+
"webLink": "https://www.itential.com/automations/servicenow-incident-creation/"
|
|
76
122
|
},
|
|
77
123
|
{
|
|
78
124
|
"name": "ServiceNow Create RITM",
|
|
79
|
-
"
|
|
125
|
+
"overview": "This Pre-built integrates with the ServiceNow Open Source Adapter to create a Request and a Request Item (RITM) using the Service Catalog API.",
|
|
126
|
+
"versions": [
|
|
127
|
+
"^0.2.6"
|
|
128
|
+
],
|
|
129
|
+
"repoLink": "https://gitlab.com/itentialopensource/pre-built-automations/servicenow-create-ritm",
|
|
80
130
|
"docLink": "<TBD>",
|
|
81
|
-
"
|
|
131
|
+
"webLink": "https://www.itential.com/automations/servicenow-create-ritm/"
|
|
82
132
|
}
|
|
83
133
|
],
|
|
84
|
-
"
|
|
134
|
+
"transformations": [],
|
|
135
|
+
"useCases": [
|
|
136
|
+
{
|
|
137
|
+
"name": "Create, update and complete change management requests",
|
|
138
|
+
"overview": "1 sentence about this thing",
|
|
139
|
+
"webLink": "<TBD>",
|
|
140
|
+
"exampleInput": "",
|
|
141
|
+
"exampleOutput": ""
|
|
142
|
+
},
|
|
85
143
|
{
|
|
86
144
|
"name": "Create, update and complete change management requests",
|
|
87
|
-
"
|
|
145
|
+
"overview": "1 sentence about this thing",
|
|
146
|
+
"webLink": "<TBD>",
|
|
147
|
+
"exampleInput": "",
|
|
148
|
+
"exampleOutput": ""
|
|
88
149
|
},
|
|
89
150
|
{
|
|
90
151
|
"name": "Create tickets/issues when problems arise during automations",
|
|
91
|
-
"
|
|
152
|
+
"overview": "1 sentence about this thing",
|
|
153
|
+
"webLink": "<TBD>",
|
|
154
|
+
"exampleInput": "",
|
|
155
|
+
"exampleOutput": ""
|
|
92
156
|
},
|
|
93
157
|
{
|
|
94
158
|
"name": "Close tickets/issues when problems are fixed by automations",
|
|
95
|
-
"
|
|
159
|
+
"overview": "1 sentence about this thing",
|
|
160
|
+
"webLink": "<TBD>",
|
|
161
|
+
"exampleInput": "",
|
|
162
|
+
"exampleOutput": ""
|
|
96
163
|
},
|
|
97
164
|
{
|
|
98
165
|
"name": "Add items into CMDB systems and set them up to be discovered",
|
|
99
|
-
"
|
|
166
|
+
"overview": "1 sentence about this thing",
|
|
167
|
+
"webLink": "<TBD>",
|
|
168
|
+
"exampleInput": "",
|
|
169
|
+
"exampleOutput": ""
|
|
100
170
|
},
|
|
101
171
|
{
|
|
102
172
|
"name": "Remove items from CMDB",
|
|
103
|
-
"
|
|
173
|
+
"overview": "1 sentence about this thing",
|
|
174
|
+
"webLink": "<TBD>",
|
|
175
|
+
"exampleInput": "",
|
|
176
|
+
"exampleOutput": ""
|
|
104
177
|
}
|
|
105
178
|
]
|
|
106
179
|
}
|
package/package.json
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itentialopensource/adapter-servicenow",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.5.0",
|
|
4
4
|
"description": "This adapter integrates with system described as: servicenowMadrid.",
|
|
5
5
|
"main": "adapter.js",
|
|
6
6
|
"systemName": "ServiceNow",
|
|
7
7
|
"wizardVersion": "2.44.7",
|
|
8
|
-
"engineVersion": "1.
|
|
8
|
+
"engineVersion": "1.67.0",
|
|
9
9
|
"adapterType": "http",
|
|
10
10
|
"scripts": {
|
|
11
11
|
"artifactize": "npm i && node utils/packModificationScript.js",
|
|
12
|
-
"preinstall": "node utils/setup.js
|
|
12
|
+
"preinstall": "node utils/setup.js",
|
|
13
|
+
"deinstall": "node utils/removeHooks.js",
|
|
13
14
|
"lint": "node --max_old_space_size=4096 ./node_modules/eslint/bin/eslint.js . --ext .json --ext .js",
|
|
14
15
|
"lint:errors": "node --max_old_space_size=4096 ./node_modules/eslint/bin/eslint.js . --ext .json --ext .js --quiet",
|
|
15
16
|
"test:baseunit": "mocha test/unit/adapterBaseTestUnit.js --LOG=error",
|
|
@@ -23,7 +24,7 @@
|
|
|
23
24
|
"adapter:migrate": "node utils/modify.js -m",
|
|
24
25
|
"adapter:update": "node utils/modify.js -u",
|
|
25
26
|
"adapter:revert": "node utils/modify.js -r",
|
|
26
|
-
"troubleshoot": "node utils/tbScript.js",
|
|
27
|
+
"troubleshoot": "node utils/tbScript.js troubleshoot",
|
|
27
28
|
"healthcheck": "node utils/tbScript.js healthcheck",
|
|
28
29
|
"basicget": "node utils/tbScript.js basicget",
|
|
29
30
|
"connectivity": "node utils/tbScript.js connectivity",
|
|
@@ -54,32 +55,31 @@
|
|
|
54
55
|
"author": "Itential",
|
|
55
56
|
"homepage": "https://gitlab.com/itentialopensource/adapters/itsm-testing/adapter-servicenow#readme",
|
|
56
57
|
"dependencies": {
|
|
57
|
-
"@itentialopensource/adapter-utils": "^
|
|
58
|
-
"ajv": "^
|
|
59
|
-
"axios": "^
|
|
60
|
-
"commander": "^
|
|
61
|
-
"
|
|
58
|
+
"@itentialopensource/adapter-utils": "^5.1.0",
|
|
59
|
+
"ajv": "^8.12.0",
|
|
60
|
+
"axios": "^1.4.0",
|
|
61
|
+
"commander": "^11.0.0",
|
|
62
|
+
"dns-lookup-promise": "^1.0.4",
|
|
63
|
+
"esprima": "^4.0.1",
|
|
64
|
+
"fs-extra": "^11.1.1",
|
|
62
65
|
"json-query": "^2.2.2",
|
|
63
|
-
"mocha": "^
|
|
66
|
+
"mocha": "^10.2.0",
|
|
64
67
|
"mocha-param": "^2.0.1",
|
|
65
|
-
"mongodb": "^4.
|
|
66
|
-
"network-diagnostics": "^0.5.3",
|
|
68
|
+
"mongodb": "^4.16.0",
|
|
67
69
|
"nyc": "^15.1.0",
|
|
70
|
+
"ping": "^0.4.4",
|
|
71
|
+
"prompts": "^2.4.2",
|
|
68
72
|
"readline-sync": "^1.4.10",
|
|
69
|
-
"semver": "^7.3
|
|
70
|
-
"winston": "^3.
|
|
73
|
+
"semver": "^7.5.3",
|
|
74
|
+
"winston": "^3.9.0"
|
|
71
75
|
},
|
|
72
76
|
"devDependencies": {
|
|
73
|
-
"chai": "^4.3.
|
|
74
|
-
"eslint": "^
|
|
75
|
-
"eslint-config-airbnb-base": "^
|
|
76
|
-
"eslint-plugin-import": "^2.
|
|
77
|
-
"eslint-plugin-json": "^3.
|
|
78
|
-
"
|
|
79
|
-
"testdouble": "^3.16.1"
|
|
80
|
-
},
|
|
81
|
-
"resolutions": {
|
|
82
|
-
"minimist": "^1.2.5"
|
|
77
|
+
"chai": "^4.3.7",
|
|
78
|
+
"eslint": "^8.44.0",
|
|
79
|
+
"eslint-config-airbnb-base": "^15.0.0",
|
|
80
|
+
"eslint-plugin-import": "^2.27.5",
|
|
81
|
+
"eslint-plugin-json": "^3.1.0",
|
|
82
|
+
"testdouble": "^3.18.0"
|
|
83
83
|
},
|
|
84
84
|
"private": false
|
|
85
85
|
}
|