@itentialopensource/adapter-salesforce 0.7.4 → 0.9.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 +39 -0
- package/BROKER.md +199 -0
- package/CALLS.md +454 -0
- package/CHANGELOG.md +49 -29
- package/CODE_OF_CONDUCT.md +12 -17
- package/CONTRIBUTING.md +3 -148
- package/ENHANCE.md +69 -0
- package/PROPERTIES.md +641 -0
- package/README.md +239 -507
- package/SUMMARY.md +9 -0
- package/SYSTEMINFO.md +11 -0
- package/TROUBLESHOOT.md +47 -0
- package/adapter.js +423 -304
- package/adapterBase.js +854 -408
- package/changelogs/changelog.md +94 -0
- package/entities/.generic/action.json +110 -5
- package/entities/.generic/schema.json +6 -1
- package/entities/.system/action.json +4 -4
- package/entities/.system/schemaTokenReq.json +33 -4
- package/entities/.system/schemaTokenResp.json +1 -34
- package/error.json +12 -0
- package/metadata.json +49 -0
- package/package.json +28 -22
- package/pronghorn.json +691 -88
- package/propertiesDecorators.json +14 -0
- package/propertiesSchema.json +842 -6
- package/refs?service=git-upload-pack +0 -0
- package/report/adapter-openapi.json +1543 -0
- package/report/adapter-openapi.yaml +1201 -0
- package/report/adapterInfo.json +10 -0
- package/report/updateReport1653403992147.json +120 -0
- package/report/updateReport1691511372644.json +120 -0
- package/report/updateReport1692202876451.json +120 -0
- package/report/updateReport1694464610053.json +120 -0
- package/report/updateReport1698421735618.json +120 -0
- package/sampleProperties.json +156 -3
- package/test/integration/adapterTestBasicGet.js +4 -6
- package/test/integration/adapterTestConnectivity.js +91 -42
- package/test/integration/adapterTestIntegration.js +158 -104
- package/test/unit/adapterBaseTestUnit.js +393 -310
- package/test/unit/adapterTestUnit.js +833 -209
- package/utils/adapterInfo.js +206 -0
- package/utils/addAuth.js +94 -0
- package/utils/artifactize.js +1 -1
- package/utils/basicGet.js +1 -14
- package/utils/checkMigrate.js +1 -1
- package/utils/entitiesToDB.js +179 -0
- package/utils/findPath.js +1 -1
- package/utils/methodDocumentor.js +273 -0
- package/utils/modify.js +14 -16
- package/utils/packModificationScript.js +2 -2
- package/utils/patches2bundledDeps.js +90 -0
- package/utils/pre-commit.sh +5 -0
- package/utils/removeHooks.js +20 -0
- package/utils/taskMover.js +309 -0
- package/utils/tbScript.js +129 -53
- package/utils/tbUtils.js +152 -35
- package/utils/testRunner.js +17 -17
- package/utils/troubleshootingAdapter.js +10 -31
- package/workflows/README.md +0 -3
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
|
|
2
|
+
## 0.8.0 [05-25-2022]
|
|
3
|
+
|
|
4
|
+
* Migration to the latest Adapter Foundation
|
|
5
|
+
|
|
6
|
+
See merge request itentialopensource/adapters/itsm-testing/adapter-salesforce!8
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## 0.7.4 [03-13-2021]
|
|
11
|
+
|
|
12
|
+
- Migration to bring up to the latest foundation
|
|
13
|
+
- Change to .eslintignore (adapter_modification directory)
|
|
14
|
+
- Change to README.md (new properties, new scripts, new processes)
|
|
15
|
+
- Changes to adapterBase.js (new methods)
|
|
16
|
+
- Changes to package.json (new scripts, dependencies)
|
|
17
|
+
- Changes to propertiesSchema.json (new properties and changes to existing)
|
|
18
|
+
- Changes to the Unit test
|
|
19
|
+
- Adding several test files, utils files and .generic entity
|
|
20
|
+
- Fix order of scripts and dependencies in package.json
|
|
21
|
+
- Fix order of properties in propertiesSchema.json
|
|
22
|
+
- Update sampleProperties, unit and integration tests to have all new properties.
|
|
23
|
+
- Add all new calls to adapter.js and pronghorn.json
|
|
24
|
+
- Add suspend piece to older methods
|
|
25
|
+
|
|
26
|
+
See merge request itentialopensource/adapters/itsm-testing/adapter-salesforce!7
|
|
27
|
+
|
|
28
|
+
---
|
|
29
|
+
|
|
30
|
+
## 0.7.3 [07-10-2020]
|
|
31
|
+
|
|
32
|
+
- Update the adapter to the latest foundation
|
|
33
|
+
|
|
34
|
+
See merge request itentialopensource/adapters/itsm-testing/adapter-salesforce!6
|
|
35
|
+
|
|
36
|
+
---
|
|
37
|
+
|
|
38
|
+
## 0.7.2 [01-14-2020]
|
|
39
|
+
|
|
40
|
+
- Update the adapter to the latest foundation
|
|
41
|
+
|
|
42
|
+
See merge request itentialopensource/adapters/itsm-testing/adapter-salesforce!5
|
|
43
|
+
|
|
44
|
+
---
|
|
45
|
+
|
|
46
|
+
## 0.7.1 [11-19-2019]
|
|
47
|
+
|
|
48
|
+
- Update the healthcheck url to one that has been used in the lab
|
|
49
|
+
|
|
50
|
+
See merge request itentialopensource/adapters/itsm-testing/adapter-salesforce!4
|
|
51
|
+
|
|
52
|
+
---
|
|
53
|
+
|
|
54
|
+
## 0.7.0 [11-08-2019]
|
|
55
|
+
|
|
56
|
+
- Update the adapter to the latest adapter foundation.
|
|
57
|
+
- Updating to adapter-utils 4.24.3 (automatic)
|
|
58
|
+
- Add sample token schemas (manual)
|
|
59
|
+
- Adding placement property to getToken response schema (manual - before encrypt)
|
|
60
|
+
- Adding sso default into action.json for getToken (manual - before response object)
|
|
61
|
+
- Add new adapter properties for metrics & mock (save_metric, mongo and return_raw) (automatic - check place manual before stub)
|
|
62
|
+
- Update sample properties to include new properties (manual)
|
|
63
|
+
- Update integration test for raw mockdata (automatic)
|
|
64
|
+
- Update test properties (manual)
|
|
65
|
+
- Changes to artifactize (automatic)
|
|
66
|
+
- Update type in sampleProperties so it is correct for the adapter (manual)
|
|
67
|
+
- Update the readme (automatic)
|
|
68
|
+
|
|
69
|
+
See merge request itentialopensource/adapters/itsm-testing/adapter-salesforce!3
|
|
70
|
+
|
|
71
|
+
---
|
|
72
|
+
|
|
73
|
+
## 0.6.0 [09-16-2019]
|
|
74
|
+
|
|
75
|
+
- Update the adapter to the latest adapter foundation
|
|
76
|
+
|
|
77
|
+
See merge request itentialopensource/adapters/itsm-testing/adapter-salesforce!2
|
|
78
|
+
|
|
79
|
+
---
|
|
80
|
+
## 0.5.0 [07-30-2019] & 0.4.0 [07-18-2019] & 0.3.0 [07-16-2019] & 0.2.0 [07-16-2019]
|
|
81
|
+
|
|
82
|
+
- Updates to the adapter foundation
|
|
83
|
+
|
|
84
|
+
See merge request itentialopensource/adapters/adapter-salesforce!1
|
|
85
|
+
|
|
86
|
+
---
|
|
87
|
+
|
|
88
|
+
## 0.1.1 [05-03-2019]
|
|
89
|
+
|
|
90
|
+
- Initial Commit
|
|
91
|
+
|
|
92
|
+
See commit e3e0165
|
|
93
|
+
|
|
94
|
+
---
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"name": "getGenerics",
|
|
5
5
|
"protocol": "REST",
|
|
6
6
|
"method": "GET",
|
|
7
|
-
"entitypath": "{base_path}/{version}/{pathv1}/{pathv2}/{pathv3}/{pathv4}/{pathv5}/{pathv6}/{pathv7}/{pathv8}/{pathv9}/{pathv10}?{query}",
|
|
7
|
+
"entitypath": "{base_path}/{version}/{pathv1}/{pathv2}/{pathv3}/{pathv4}/{pathv5}/{pathv6}/{pathv7}/{pathv8}/{pathv9}/{pathv10}/{pathv11}/{pathv12}/{pathv13}/{pathv14}/{pathv15}/{pathv16}/{pathv17}/{pathv18}/{pathv19}/{pathv20}?{query}",
|
|
8
8
|
"requestSchema": "schema.json",
|
|
9
9
|
"responseSchema": "schema.json",
|
|
10
10
|
"timeout": 0,
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"name": "createGeneric",
|
|
26
26
|
"protocol": "REST",
|
|
27
27
|
"method": "POST",
|
|
28
|
-
"entitypath": "{base_path}/{version}/{pathv1}/{pathv2}/{pathv3}/{pathv4}/{pathv5}/{pathv6}/{pathv7}/{pathv8}/{pathv9}/{pathv10}?{query}",
|
|
28
|
+
"entitypath": "{base_path}/{version}/{pathv1}/{pathv2}/{pathv3}/{pathv4}/{pathv5}/{pathv6}/{pathv7}/{pathv8}/{pathv9}/{pathv10}/{pathv11}/{pathv12}/{pathv13}/{pathv14}/{pathv15}/{pathv16}/{pathv17}/{pathv18}/{pathv19}/{pathv20}?{query}",
|
|
29
29
|
"requestSchema": "schema.json",
|
|
30
30
|
"responseSchema": "schema.json",
|
|
31
31
|
"timeout": 0,
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"name": "updateGeneric",
|
|
47
47
|
"protocol": "REST",
|
|
48
48
|
"method": "PUT",
|
|
49
|
-
"entitypath": "{base_path}/{version}/{pathv1}/{pathv2}/{pathv3}/{pathv4}/{pathv5}/{pathv6}/{pathv7}/{pathv8}/{pathv9}/{pathv10}?{query}",
|
|
49
|
+
"entitypath": "{base_path}/{version}/{pathv1}/{pathv2}/{pathv3}/{pathv4}/{pathv5}/{pathv6}/{pathv7}/{pathv8}/{pathv9}/{pathv10}/{pathv11}/{pathv12}/{pathv13}/{pathv14}/{pathv15}/{pathv16}/{pathv17}/{pathv18}/{pathv19}/{pathv20}?{query}",
|
|
50
50
|
"requestSchema": "schema.json",
|
|
51
51
|
"responseSchema": "schema.json",
|
|
52
52
|
"timeout": 0,
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"name": "patchGeneric",
|
|
68
68
|
"protocol": "REST",
|
|
69
69
|
"method": "PATCH",
|
|
70
|
-
"entitypath": "{base_path}/{version}/{pathv1}/{pathv2}/{pathv3}/{pathv4}/{pathv5}/{pathv6}/{pathv7}/{pathv8}/{pathv9}/{pathv10}?{query}",
|
|
70
|
+
"entitypath": "{base_path}/{version}/{pathv1}/{pathv2}/{pathv3}/{pathv4}/{pathv5}/{pathv6}/{pathv7}/{pathv8}/{pathv9}/{pathv10}/{pathv11}/{pathv12}/{pathv13}/{pathv14}/{pathv15}/{pathv16}/{pathv17}/{pathv18}/{pathv19}/{pathv20}?{query}",
|
|
71
71
|
"requestSchema": "schema.json",
|
|
72
72
|
"responseSchema": "schema.json",
|
|
73
73
|
"timeout": 0,
|
|
@@ -88,7 +88,112 @@
|
|
|
88
88
|
"name": "deleteGeneric",
|
|
89
89
|
"protocol": "REST",
|
|
90
90
|
"method": "DELETE",
|
|
91
|
-
"entitypath": "{base_path}/{version}/{pathv1}/{pathv2}/{pathv3}/{pathv4}/{pathv5}/{pathv6}/{pathv7}/{pathv8}/{pathv9}/{pathv10}?{query}",
|
|
91
|
+
"entitypath": "{base_path}/{version}/{pathv1}/{pathv2}/{pathv3}/{pathv4}/{pathv5}/{pathv6}/{pathv7}/{pathv8}/{pathv9}/{pathv10}/{pathv11}/{pathv12}/{pathv13}/{pathv14}/{pathv15}/{pathv16}/{pathv17}/{pathv18}/{pathv19}/{pathv20}?{query}",
|
|
92
|
+
"requestSchema": "schema.json",
|
|
93
|
+
"responseSchema": "schema.json",
|
|
94
|
+
"timeout": 0,
|
|
95
|
+
"sendEmpty": false,
|
|
96
|
+
"sendGetBody": false,
|
|
97
|
+
"requestDatatype": "JSON",
|
|
98
|
+
"responseDatatype": "JSON",
|
|
99
|
+
"headers": {},
|
|
100
|
+
"responseObjects": [
|
|
101
|
+
{
|
|
102
|
+
"type": "default",
|
|
103
|
+
"key": "",
|
|
104
|
+
"mockFile": ""
|
|
105
|
+
}
|
|
106
|
+
]
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"name": "getGenericsNoBase",
|
|
110
|
+
"protocol": "REST",
|
|
111
|
+
"method": "GET",
|
|
112
|
+
"entitypath": "/{pathv1}/{pathv2}/{pathv3}/{pathv4}/{pathv5}/{pathv6}/{pathv7}/{pathv8}/{pathv9}/{pathv10}/{pathv11}/{pathv12}/{pathv13}/{pathv14}/{pathv15}/{pathv16}/{pathv17}/{pathv18}/{pathv19}/{pathv20}?{query}",
|
|
113
|
+
"requestSchema": "schema.json",
|
|
114
|
+
"responseSchema": "schema.json",
|
|
115
|
+
"timeout": 0,
|
|
116
|
+
"sendEmpty": false,
|
|
117
|
+
"sendGetBody": false,
|
|
118
|
+
"requestDatatype": "JSON",
|
|
119
|
+
"responseDatatype": "JSON",
|
|
120
|
+
"headers": {},
|
|
121
|
+
"responseObjects": [
|
|
122
|
+
{
|
|
123
|
+
"type": "default",
|
|
124
|
+
"key": "",
|
|
125
|
+
"mockFile": ""
|
|
126
|
+
}
|
|
127
|
+
]
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"name": "createGenericNoBase",
|
|
131
|
+
"protocol": "REST",
|
|
132
|
+
"method": "POST",
|
|
133
|
+
"entitypath": "/{pathv1}/{pathv2}/{pathv3}/{pathv4}/{pathv5}/{pathv6}/{pathv7}/{pathv8}/{pathv9}/{pathv10}/{pathv11}/{pathv12}/{pathv13}/{pathv14}/{pathv15}/{pathv16}/{pathv17}/{pathv18}/{pathv19}/{pathv20}?{query}",
|
|
134
|
+
"requestSchema": "schema.json",
|
|
135
|
+
"responseSchema": "schema.json",
|
|
136
|
+
"timeout": 0,
|
|
137
|
+
"sendEmpty": false,
|
|
138
|
+
"sendGetBody": false,
|
|
139
|
+
"requestDatatype": "JSON",
|
|
140
|
+
"responseDatatype": "JSON",
|
|
141
|
+
"headers": {},
|
|
142
|
+
"responseObjects": [
|
|
143
|
+
{
|
|
144
|
+
"type": "default",
|
|
145
|
+
"key": "",
|
|
146
|
+
"mockFile": ""
|
|
147
|
+
}
|
|
148
|
+
]
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"name": "updateGenericNoBase",
|
|
152
|
+
"protocol": "REST",
|
|
153
|
+
"method": "PUT",
|
|
154
|
+
"entitypath": "/{pathv1}/{pathv2}/{pathv3}/{pathv4}/{pathv5}/{pathv6}/{pathv7}/{pathv8}/{pathv9}/{pathv10}/{pathv11}/{pathv12}/{pathv13}/{pathv14}/{pathv15}/{pathv16}/{pathv17}/{pathv18}/{pathv19}/{pathv20}?{query}",
|
|
155
|
+
"requestSchema": "schema.json",
|
|
156
|
+
"responseSchema": "schema.json",
|
|
157
|
+
"timeout": 0,
|
|
158
|
+
"sendEmpty": false,
|
|
159
|
+
"sendGetBody": false,
|
|
160
|
+
"requestDatatype": "JSON",
|
|
161
|
+
"responseDatatype": "JSON",
|
|
162
|
+
"headers": {},
|
|
163
|
+
"responseObjects": [
|
|
164
|
+
{
|
|
165
|
+
"type": "default",
|
|
166
|
+
"key": "",
|
|
167
|
+
"mockFile": ""
|
|
168
|
+
}
|
|
169
|
+
]
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"name": "patchGenericNoBase",
|
|
173
|
+
"protocol": "REST",
|
|
174
|
+
"method": "PATCH",
|
|
175
|
+
"entitypath": "/{pathv1}/{pathv2}/{pathv3}/{pathv4}/{pathv5}/{pathv6}/{pathv7}/{pathv8}/{pathv9}/{pathv10}/{pathv11}/{pathv12}/{pathv13}/{pathv14}/{pathv15}/{pathv16}/{pathv17}/{pathv18}/{pathv19}/{pathv20}?{query}",
|
|
176
|
+
"requestSchema": "schema.json",
|
|
177
|
+
"responseSchema": "schema.json",
|
|
178
|
+
"timeout": 0,
|
|
179
|
+
"sendEmpty": false,
|
|
180
|
+
"sendGetBody": false,
|
|
181
|
+
"requestDatatype": "JSON",
|
|
182
|
+
"responseDatatype": "JSON",
|
|
183
|
+
"headers": {},
|
|
184
|
+
"responseObjects": [
|
|
185
|
+
{
|
|
186
|
+
"type": "default",
|
|
187
|
+
"key": "",
|
|
188
|
+
"mockFile": ""
|
|
189
|
+
}
|
|
190
|
+
]
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
"name": "deleteGenericNoBase",
|
|
194
|
+
"protocol": "REST",
|
|
195
|
+
"method": "DELETE",
|
|
196
|
+
"entitypath": "/{pathv1}/{pathv2}/{pathv3}/{pathv4}/{pathv5}/{pathv6}/{pathv7}/{pathv8}/{pathv9}/{pathv10}/{pathv11}/{pathv12}/{pathv13}/{pathv14}/{pathv15}/{pathv16}/{pathv17}/{pathv18}/{pathv19}/{pathv20}?{query}",
|
|
92
197
|
"requestSchema": "schema.json",
|
|
93
198
|
"responseSchema": "schema.json",
|
|
94
199
|
"timeout": 0,
|
|
@@ -14,7 +14,12 @@
|
|
|
14
14
|
"createGeneric",
|
|
15
15
|
"updateGeneric",
|
|
16
16
|
"patchGeneric",
|
|
17
|
-
"deleteGeneric"
|
|
17
|
+
"deleteGeneric",
|
|
18
|
+
"getGenericsNoBase",
|
|
19
|
+
"createGenericNoBase",
|
|
20
|
+
"updateGenericNoBase",
|
|
21
|
+
"patchGenericNoBase",
|
|
22
|
+
"deleteGenericNoBase"
|
|
18
23
|
],
|
|
19
24
|
"external_name": "ph_request_type"
|
|
20
25
|
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"name": "getToken",
|
|
5
5
|
"protocol": "REST",
|
|
6
6
|
"method": "POST",
|
|
7
|
-
"entitypath": "
|
|
7
|
+
"entitypath": "/services/oath2/token",
|
|
8
8
|
"requestSchema": "schemaTokenReq.json",
|
|
9
9
|
"responseSchema": "schemaTokenResp.json",
|
|
10
10
|
"timeout": 0,
|
|
@@ -14,9 +14,9 @@
|
|
|
14
14
|
"responseDatatype": "JSON",
|
|
15
15
|
"headers": {},
|
|
16
16
|
"sso": {
|
|
17
|
-
"protocol": "",
|
|
18
|
-
"host": "",
|
|
19
|
-
"port":
|
|
17
|
+
"protocol": "https",
|
|
18
|
+
"host": "login.salesforce.com",
|
|
19
|
+
"port": 443
|
|
20
20
|
},
|
|
21
21
|
"responseObjects": [
|
|
22
22
|
{
|
|
@@ -34,11 +34,40 @@
|
|
|
34
34
|
"key": ""
|
|
35
35
|
},
|
|
36
36
|
"external_name": "password"
|
|
37
|
+
},
|
|
38
|
+
"client_id": {
|
|
39
|
+
"type": "string",
|
|
40
|
+
"description": "client id to log in with",
|
|
41
|
+
"parse": false,
|
|
42
|
+
"encode": false,
|
|
43
|
+
"encrypt": {
|
|
44
|
+
"type": "AES",
|
|
45
|
+
"key": ""
|
|
46
|
+
},
|
|
47
|
+
"external_name": "client_id"
|
|
48
|
+
},
|
|
49
|
+
"client_secret": {
|
|
50
|
+
"type": "string",
|
|
51
|
+
"description": "client secret to log in with",
|
|
52
|
+
"parse": false,
|
|
53
|
+
"encode": false,
|
|
54
|
+
"encrypt": {
|
|
55
|
+
"type": "AES",
|
|
56
|
+
"key": ""
|
|
57
|
+
},
|
|
58
|
+
"external_name": "client_secret"
|
|
59
|
+
},
|
|
60
|
+
"grant_type": {
|
|
61
|
+
"type": "string",
|
|
62
|
+
"description": "grant type to log in with",
|
|
63
|
+
"parse": false,
|
|
64
|
+
"encode": false,
|
|
65
|
+
"encrypt": {
|
|
66
|
+
"type": "AES",
|
|
67
|
+
"key": ""
|
|
68
|
+
},
|
|
69
|
+
"external_name": "grant_type"
|
|
37
70
|
}
|
|
38
71
|
},
|
|
39
|
-
"required": [
|
|
40
|
-
"username",
|
|
41
|
-
"password"
|
|
42
|
-
],
|
|
43
72
|
"definitions": {}
|
|
44
73
|
}
|
|
@@ -13,28 +13,6 @@
|
|
|
13
13
|
],
|
|
14
14
|
"external_name": "ph_request_type"
|
|
15
15
|
},
|
|
16
|
-
"code": {
|
|
17
|
-
"type": "number",
|
|
18
|
-
"description": "the https/http code",
|
|
19
|
-
"parse": false,
|
|
20
|
-
"encode": false,
|
|
21
|
-
"encrypt": {
|
|
22
|
-
"type": "AES",
|
|
23
|
-
"key": ""
|
|
24
|
-
},
|
|
25
|
-
"external_name": "code"
|
|
26
|
-
},
|
|
27
|
-
"success": {
|
|
28
|
-
"type": "boolean",
|
|
29
|
-
"description": "the api execution",
|
|
30
|
-
"parse": false,
|
|
31
|
-
"encode": false,
|
|
32
|
-
"encrypt": {
|
|
33
|
-
"type": "AES",
|
|
34
|
-
"key": ""
|
|
35
|
-
},
|
|
36
|
-
"external_name": "success"
|
|
37
|
-
},
|
|
38
16
|
"token": {
|
|
39
17
|
"type": "string",
|
|
40
18
|
"description": "the token returned from system",
|
|
@@ -44,18 +22,7 @@
|
|
|
44
22
|
"type": "AES",
|
|
45
23
|
"key": ""
|
|
46
24
|
},
|
|
47
|
-
"external_name": "
|
|
48
|
-
},
|
|
49
|
-
"expires": {
|
|
50
|
-
"type": "string",
|
|
51
|
-
"description": "the command being run on the device",
|
|
52
|
-
"parse": false,
|
|
53
|
-
"encode": false,
|
|
54
|
-
"encrypt": {
|
|
55
|
-
"type": "AES",
|
|
56
|
-
"key": ""
|
|
57
|
-
},
|
|
58
|
-
"external_name": "data.expires"
|
|
25
|
+
"external_name": "access_token"
|
|
59
26
|
}
|
|
60
27
|
},
|
|
61
28
|
"definitions": {}
|
package/error.json
CHANGED
|
@@ -96,6 +96,12 @@
|
|
|
96
96
|
"displayString": "Invalid properties: $VARIABLE$",
|
|
97
97
|
"recommendation": "Verify the properties for the adapter"
|
|
98
98
|
},
|
|
99
|
+
{
|
|
100
|
+
"key": "Missing Properties",
|
|
101
|
+
"icode": "AD.306",
|
|
102
|
+
"displayString": "Property $VARIABLE$ is required",
|
|
103
|
+
"recommendation": "Please provide the required property"
|
|
104
|
+
},
|
|
99
105
|
{
|
|
100
106
|
"key": "Query Not Translated",
|
|
101
107
|
"icode": "AD.310",
|
|
@@ -168,6 +174,12 @@
|
|
|
168
174
|
"displayString": "Failure response received for $VARIABLE$",
|
|
169
175
|
"recommendation": "Check the reason for failure in the stack trace"
|
|
170
176
|
},
|
|
177
|
+
{
|
|
178
|
+
"key": "Suspended Adapter",
|
|
179
|
+
"icode": "AD.600",
|
|
180
|
+
"displayString": "Adapter is suspended",
|
|
181
|
+
"recommendation": "Check if external system is functional and unsuspend if appropriate"
|
|
182
|
+
},
|
|
171
183
|
{
|
|
172
184
|
"key": "Caught Exception",
|
|
173
185
|
"icode": "AD.900",
|
package/metadata.json
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "adapter-salesforce",
|
|
3
|
+
"webName": "Adapter for Integration to Salesforce",
|
|
4
|
+
"vendor": "Salesforce",
|
|
5
|
+
"product": "Salesforce",
|
|
6
|
+
"osVersion": [],
|
|
7
|
+
"apiVersions": [],
|
|
8
|
+
"iapVersions": [
|
|
9
|
+
"2021.1.x",
|
|
10
|
+
"2021.2.x",
|
|
11
|
+
"2022.1.x",
|
|
12
|
+
"2023.1.x"
|
|
13
|
+
],
|
|
14
|
+
"method": "REST",
|
|
15
|
+
"type": "Adapter",
|
|
16
|
+
"domains": [
|
|
17
|
+
"ITSM (Service Management)"
|
|
18
|
+
],
|
|
19
|
+
"tags": [],
|
|
20
|
+
"useCases": [],
|
|
21
|
+
"deprecated": {
|
|
22
|
+
"isDeprecated": false
|
|
23
|
+
},
|
|
24
|
+
"brokerSince": "",
|
|
25
|
+
"documentation": {
|
|
26
|
+
"storeLink": "",
|
|
27
|
+
"npmLink": "https://www.npmjs.com/package/@itentialopensource/adapter-salesforce",
|
|
28
|
+
"repoLink": "https://gitlab.com/itentialopensource/adapters/itsm-testing/adapter-salesforce",
|
|
29
|
+
"docLink": "",
|
|
30
|
+
"demoLinks": [],
|
|
31
|
+
"trainingLinks": [],
|
|
32
|
+
"faqLink": "https://docs.itential.com/opensource/docs/troubleshooting-an-adapter",
|
|
33
|
+
"contributeLink": "https://gitlab.com/itentialopensource/adapters/contributing-guide",
|
|
34
|
+
"issueLink": "https://itential.atlassian.net/servicedesk/customer/portals",
|
|
35
|
+
"webLink": "https://www.itential.com/adapters/salesforce/",
|
|
36
|
+
"vendorLink": "",
|
|
37
|
+
"productLink": "",
|
|
38
|
+
"apiLinks": []
|
|
39
|
+
},
|
|
40
|
+
"assets": [],
|
|
41
|
+
"relatedItems": {
|
|
42
|
+
"adapters": [],
|
|
43
|
+
"integrations": [],
|
|
44
|
+
"ecosystemApplications": [],
|
|
45
|
+
"workflowProjects": [],
|
|
46
|
+
"transformationProjects": [],
|
|
47
|
+
"exampleProjects": []
|
|
48
|
+
}
|
|
49
|
+
}
|
package/package.json
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itentialopensource/adapter-salesforce",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"description": "This adapter integrates with system Salesforce",
|
|
5
5
|
"main": "adapter.js",
|
|
6
|
-
"wizardVersion": "2.
|
|
7
|
-
"engineVersion": "1.
|
|
6
|
+
"wizardVersion": "2.44.7",
|
|
7
|
+
"engineVersion": "1.67.14",
|
|
8
|
+
"adapterType": "http",
|
|
8
9
|
"scripts": {
|
|
9
10
|
"artifactize": "npm i && node utils/packModificationScript.js",
|
|
10
11
|
"preinstall": "node utils/setup.js",
|
|
12
|
+
"deinstall": "node utils/removeHooks.js",
|
|
11
13
|
"lint": "node --max_old_space_size=4096 ./node_modules/eslint/bin/eslint.js . --ext .json --ext .js",
|
|
12
14
|
"lint:errors": "node --max_old_space_size=4096 ./node_modules/eslint/bin/eslint.js . --ext .json --ext .js --quiet",
|
|
13
15
|
"test:baseunit": "mocha test/unit/adapterBaseTestUnit.js --LOG=error",
|
|
@@ -15,17 +17,17 @@
|
|
|
15
17
|
"test:integration": "mocha test/integration/adapterTestIntegration.js --LOG=error",
|
|
16
18
|
"test:cover": "nyc --reporter html --reporter text mocha --reporter dot test/*",
|
|
17
19
|
"test": "npm run test:baseunit && npm run test:unit && npm run test:integration",
|
|
18
|
-
"adapter:install": "node utils/tbScript.js install",
|
|
20
|
+
"adapter:install": "npm i && node utils/tbScript.js install",
|
|
19
21
|
"adapter:checkMigrate": "node utils/checkMigrate.js",
|
|
20
22
|
"adapter:findPath": "node utils/findPath.js",
|
|
21
23
|
"adapter:migrate": "node utils/modify.js -m",
|
|
22
24
|
"adapter:update": "node utils/modify.js -u",
|
|
23
25
|
"adapter:revert": "node utils/modify.js -r",
|
|
24
|
-
"troubleshoot": "node utils/tbScript.js",
|
|
26
|
+
"troubleshoot": "node utils/tbScript.js troubleshoot",
|
|
25
27
|
"healthcheck": "node utils/tbScript.js healthcheck",
|
|
26
28
|
"basicget": "node utils/tbScript.js basicget",
|
|
27
29
|
"connectivity": "node utils/tbScript.js connectivity",
|
|
28
|
-
"deploy": "npm publish --registry=
|
|
30
|
+
"deploy": "npm publish --registry=https://registry.npmjs.org --access=public",
|
|
29
31
|
"build": "npm run deploy"
|
|
30
32
|
},
|
|
31
33
|
"keywords": [
|
|
@@ -52,27 +54,31 @@
|
|
|
52
54
|
"author": "Itential",
|
|
53
55
|
"homepage": "https://gitlab.com/itentialopensource/adapters/itsm-testing/adapter-salesforce#readme",
|
|
54
56
|
"dependencies": {
|
|
55
|
-
"@itentialopensource/adapter-utils": "^
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"
|
|
57
|
+
"@itentialopensource/adapter-utils": "^5.3.0",
|
|
58
|
+
"acorn": "^8.10.0",
|
|
59
|
+
"ajv": "^8.12.0",
|
|
60
|
+
"axios": "^1.6.3",
|
|
61
|
+
"commander": "^11.0.0",
|
|
62
|
+
"dns-lookup-promise": "^1.0.4",
|
|
63
|
+
"fs-extra": "^11.1.1",
|
|
64
|
+
"json-query": "^2.2.2",
|
|
65
|
+
"mocha": "^10.2.0",
|
|
61
66
|
"mocha-param": "^2.0.1",
|
|
62
|
-
"
|
|
67
|
+
"mongodb": "^4.16.0",
|
|
63
68
|
"nyc": "^15.1.0",
|
|
69
|
+
"ping": "^0.4.4",
|
|
70
|
+
"prompts": "^2.4.2",
|
|
64
71
|
"readline-sync": "^1.4.10",
|
|
65
|
-
"semver": "^7.3
|
|
66
|
-
"winston": "^3.
|
|
72
|
+
"semver": "^7.5.3",
|
|
73
|
+
"winston": "^3.9.0"
|
|
67
74
|
},
|
|
68
75
|
"devDependencies": {
|
|
69
|
-
"chai": "^4.
|
|
70
|
-
"eslint": "^
|
|
71
|
-
"eslint-config-airbnb-base": "^
|
|
72
|
-
"eslint-plugin-import": "^2.
|
|
73
|
-
"eslint-plugin-json": "^
|
|
74
|
-
"
|
|
75
|
-
"testdouble": "^3.16.1"
|
|
76
|
+
"chai": "^4.3.7",
|
|
77
|
+
"eslint": "^8.44.0",
|
|
78
|
+
"eslint-config-airbnb-base": "^15.0.0",
|
|
79
|
+
"eslint-plugin-import": "^2.27.5",
|
|
80
|
+
"eslint-plugin-json": "^3.1.0",
|
|
81
|
+
"testdouble": "^3.18.0"
|
|
76
82
|
},
|
|
77
83
|
"private": false
|
|
78
84
|
}
|