@itentialopensource/adapter-microsoft_graph 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/.eslintignore +6 -0
- package/.eslintrc.js +18 -0
- package/.gitlab/.gitkeep +0 -0
- package/.gitlab/issue_templates/.gitkeep +0 -0
- package/.gitlab/issue_templates/Default.md +17 -0
- package/.gitlab/issue_templates/bugReportTemplate.md +42 -0
- package/.gitlab/issue_templates/featureRequestTemplate.md +14 -0
- package/.jshintrc +0 -0
- package/AUTH.md +39 -0
- package/BROKER.md +199 -0
- package/CALLS.md +170 -0
- package/CHANGELOG.md +9 -0
- package/CODE_OF_CONDUCT.md +43 -0
- package/CONTRIBUTING.md +172 -0
- package/ENHANCE.md +69 -0
- package/LICENSE +201 -0
- package/PROPERTIES.md +641 -0
- package/README.md +337 -0
- package/SUMMARY.md +9 -0
- package/SYSTEMINFO.md +11 -0
- package/TROUBLESHOOT.md +47 -0
- package/adapter.js +18798 -0
- package/adapterBase.js +1787 -0
- package/entities/.generic/action.json +214 -0
- package/entities/.generic/schema.json +28 -0
- package/entities/.system/action.json +50 -0
- package/entities/.system/mockdatafiles/getToken-default.json +3 -0
- package/entities/.system/mockdatafiles/healthcheck-default.json +3 -0
- package/entities/.system/schema.json +19 -0
- package/entities/.system/schemaTokenReq.json +53 -0
- package/entities/.system/schemaTokenResp.json +53 -0
- package/entities/Applications/action.json +127 -0
- package/entities/Applications/schema.json +35 -0
- package/entities/AzureADDevice/action.json +106 -0
- package/entities/AzureADDevice/schema.json +45 -0
- package/entities/Batch/action.json +24 -0
- package/entities/Batch/schema.json +19 -0
- package/entities/CaseCreation/action.json +249 -0
- package/entities/CaseCreation/schema.json +30 -0
- package/entities/Catalog/action.json +25 -0
- package/entities/Catalog/schema.json +19 -0
- package/entities/ConnectionSetup/action.json +148 -0
- package/entities/ConnectionSetup/schema.json +25 -0
- package/entities/ContentSync/action.json +65 -0
- package/entities/ContentSync/schema.json +21 -0
- package/entities/CreateDSR/action.json +45 -0
- package/entities/CreateDSR/schema.json +20 -0
- package/entities/Deployment/action.json +106 -0
- package/entities/Deployment/schema.json +34 -0
- package/entities/DeploymentAudience/action.json +66 -0
- package/entities/DeploymentAudience/schema.json +32 -0
- package/entities/Events/action.json +108 -0
- package/entities/Events/schema.json +34 -0
- package/entities/Files/action.json +108 -0
- package/entities/Files/schema.json +23 -0
- package/entities/Groups/action.json +25 -0
- package/entities/Groups/schema.json +19 -0
- package/entities/IdentitySync/action.json +105 -0
- package/entities/IdentitySync/schema.json +23 -0
- package/entities/Insights/action.json +46 -0
- package/entities/Insights/schema.json +20 -0
- package/entities/LabelManagement/action.json +106 -0
- package/entities/LabelManagement/schema.json +23 -0
- package/entities/Mail/action.json +212 -0
- package/entities/Mail/schema.json +72 -0
- package/entities/Memberships/action.json +167 -0
- package/entities/Memberships/schema.json +70 -0
- package/entities/Misc/action.json +66 -0
- package/entities/Misc/schema.json +21 -0
- package/entities/Notebooks/action.json +107 -0
- package/entities/Notebooks/schema.json +34 -0
- package/entities/OpenExtensions/action.json +65 -0
- package/entities/OpenExtensions/schema.json +54 -0
- package/entities/People/action.json +46 -0
- package/entities/People/schema.json +31 -0
- package/entities/SchemaExtensions/action.json +65 -0
- package/entities/SchemaExtensions/schema.json +32 -0
- package/entities/Search/action.json +24 -0
- package/entities/Search/schema.json +19 -0
- package/entities/Security/action.json +151 -0
- package/entities/Security/schema.json +58 -0
- package/entities/SharePoint/action.json +214 -0
- package/entities/SharePoint/schema.json +39 -0
- package/entities/Subscriptions/action.json +65 -0
- package/entities/Subscriptions/schema.json +32 -0
- package/entities/TasksPlanner/action.json +272 -0
- package/entities/TasksPlanner/schema.json +86 -0
- package/entities/TasksTodo/action.json +187 -0
- package/entities/TasksTodo/schema.json +49 -0
- package/entities/Teams/action.json +519 -0
- package/entities/Teams/schema.json +120 -0
- package/entities/TrackDSRStatus/action.json +108 -0
- package/entities/TrackDSRStatus/schema.json +23 -0
- package/entities/TriggerEventForExistingLabel/action.json +108 -0
- package/entities/TriggerEventForExistingLabel/schema.json +23 -0
- package/entities/Users/action.json +213 -0
- package/entities/Users/schema.json +50 -0
- package/entities/WorkflowAutomation/action.json +249 -0
- package/entities/WorkflowAutomation/schema.json +30 -0
- package/error.json +190 -0
- package/package.json +87 -0
- package/pronghorn.json +8654 -0
- package/propertiesDecorators.json +14 -0
- package/propertiesSchema.json +1248 -0
- package/refs?service=git-upload-pack +0 -0
- package/report/creationReport.json +1715 -0
- package/report/graph.json +14709 -0
- package/sampleProperties.json +195 -0
- package/test/integration/adapterTestBasicGet.js +83 -0
- package/test/integration/adapterTestConnectivity.js +93 -0
- package/test/integration/adapterTestIntegration.js +6059 -0
- package/test/unit/adapterBaseTestUnit.js +949 -0
- package/test/unit/adapterTestUnit.js +7492 -0
- package/utils/adapterInfo.js +206 -0
- package/utils/addAuth.js +94 -0
- package/utils/artifactize.js +146 -0
- package/utils/basicGet.js +50 -0
- package/utils/checkMigrate.js +63 -0
- package/utils/entitiesToDB.js +178 -0
- package/utils/findPath.js +74 -0
- package/utils/methodDocumentor.js +225 -0
- package/utils/modify.js +154 -0
- package/utils/packModificationScript.js +35 -0
- package/utils/patches2bundledDeps.js +90 -0
- package/utils/pre-commit.sh +32 -0
- package/utils/removeHooks.js +20 -0
- package/utils/setup.js +33 -0
- package/utils/tbScript.js +246 -0
- package/utils/tbUtils.js +490 -0
- package/utils/testRunner.js +298 -0
- package/utils/troubleshootingAdapter.js +195 -0
- package/workflows/README.md +3 -0
@@ -0,0 +1,249 @@
|
|
1
|
+
{
|
2
|
+
"actions": [
|
3
|
+
{
|
4
|
+
"name": "createsearches",
|
5
|
+
"protocol": "REST",
|
6
|
+
"method": "POST",
|
7
|
+
"entitypath": "{base_path}/{version}/v1.0/security/cases/ediscoveryCases/{pathv1}/searches?{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": "listsearches",
|
25
|
+
"protocol": "REST",
|
26
|
+
"method": "GET",
|
27
|
+
"entitypath": "{base_path}/{version}/v1.0/security/cases/ediscoveryCases/{pathv1}/searches?{query}",
|
28
|
+
"requestSchema": "schema.json",
|
29
|
+
"responseSchema": "schema.json",
|
30
|
+
"timeout": 0,
|
31
|
+
"sendEmpty": false,
|
32
|
+
"sendGetBody": 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": "ediscoverySearchEstimateStatistics",
|
46
|
+
"protocol": "REST",
|
47
|
+
"method": "POST",
|
48
|
+
"entitypath": "{base_path}/{version}/v1.0/security/cases/ediscoveryCases/{pathv1}/searches/{pathv2}/estimateStatistics?{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": "listlastEstimateStatisticsOperation",
|
66
|
+
"protocol": "REST",
|
67
|
+
"method": "GET",
|
68
|
+
"entitypath": "{base_path}/{version}/v1.0/security/cases/ediscoveryCases/{pathv1}/searches/{pathv2}/lastEstimateStatisticsOperation?{query}",
|
69
|
+
"requestSchema": "schema.json",
|
70
|
+
"responseSchema": "schema.json",
|
71
|
+
"timeout": 0,
|
72
|
+
"sendEmpty": false,
|
73
|
+
"sendGetBody": 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": "createreviewSets",
|
87
|
+
"protocol": "REST",
|
88
|
+
"method": "POST",
|
89
|
+
"entitypath": "{base_path}/{version}/v1.0/security/cases/ediscoveryCases/{pathv1}/reviewSets?{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": ""
|
102
|
+
}
|
103
|
+
]
|
104
|
+
},
|
105
|
+
{
|
106
|
+
"name": "listreviewSets",
|
107
|
+
"protocol": "REST",
|
108
|
+
"method": "GET",
|
109
|
+
"entitypath": "{base_path}/{version}/v1.0/security/cases/ediscoveryCases/{pathv1}/reviewSets?{query}",
|
110
|
+
"requestSchema": "schema.json",
|
111
|
+
"responseSchema": "schema.json",
|
112
|
+
"timeout": 0,
|
113
|
+
"sendEmpty": false,
|
114
|
+
"sendGetBody": false,
|
115
|
+
"requestDatatype": "JSON",
|
116
|
+
"responseDatatype": "JSON",
|
117
|
+
"headers": {},
|
118
|
+
"responseObjects": [
|
119
|
+
{
|
120
|
+
"type": "default",
|
121
|
+
"key": "",
|
122
|
+
"mockFile": ""
|
123
|
+
}
|
124
|
+
]
|
125
|
+
},
|
126
|
+
{
|
127
|
+
"name": "ediscoveryReviewSetAddToReviewSet",
|
128
|
+
"protocol": "REST",
|
129
|
+
"method": "POST",
|
130
|
+
"entitypath": "{base_path}/{version}/v1.0/security/cases/ediscoveryCases/{pathv1}/reviewSets/{pathv2}/addToReviewSet?{query}",
|
131
|
+
"requestSchema": "schema.json",
|
132
|
+
"responseSchema": "schema.json",
|
133
|
+
"timeout": 0,
|
134
|
+
"sendEmpty": false,
|
135
|
+
"requestDatatype": "JSON",
|
136
|
+
"responseDatatype": "JSON",
|
137
|
+
"headers": {},
|
138
|
+
"responseObjects": [
|
139
|
+
{
|
140
|
+
"type": "default",
|
141
|
+
"key": "",
|
142
|
+
"mockFile": ""
|
143
|
+
}
|
144
|
+
]
|
145
|
+
},
|
146
|
+
{
|
147
|
+
"name": "createediscoveryReviewSetQuery",
|
148
|
+
"protocol": "REST",
|
149
|
+
"method": "POST",
|
150
|
+
"entitypath": "{base_path}/{version}/v1.0/security/cases/ediscoveryCases/{pathv1}/reviewSets/{pathv2}/queries?{query}",
|
151
|
+
"requestSchema": "schema.json",
|
152
|
+
"responseSchema": "schema.json",
|
153
|
+
"timeout": 0,
|
154
|
+
"sendEmpty": false,
|
155
|
+
"requestDatatype": "JSON",
|
156
|
+
"responseDatatype": "JSON",
|
157
|
+
"headers": {},
|
158
|
+
"responseObjects": [
|
159
|
+
{
|
160
|
+
"type": "default",
|
161
|
+
"key": "",
|
162
|
+
"mockFile": ""
|
163
|
+
}
|
164
|
+
]
|
165
|
+
},
|
166
|
+
{
|
167
|
+
"name": "listqueries",
|
168
|
+
"protocol": "REST",
|
169
|
+
"method": "GET",
|
170
|
+
"entitypath": "{base_path}/{version}/v1.0/security/cases/ediscoveryCases/{pathv1}/reviewSets/{pathv2}/queries?{query}",
|
171
|
+
"requestSchema": "schema.json",
|
172
|
+
"responseSchema": "schema.json",
|
173
|
+
"timeout": 0,
|
174
|
+
"sendEmpty": false,
|
175
|
+
"sendGetBody": false,
|
176
|
+
"requestDatatype": "JSON",
|
177
|
+
"responseDatatype": "JSON",
|
178
|
+
"headers": {},
|
179
|
+
"responseObjects": [
|
180
|
+
{
|
181
|
+
"type": "default",
|
182
|
+
"key": "",
|
183
|
+
"mockFile": ""
|
184
|
+
}
|
185
|
+
]
|
186
|
+
},
|
187
|
+
{
|
188
|
+
"name": "updateediscoveryReviewSetQuery",
|
189
|
+
"protocol": "REST",
|
190
|
+
"method": "PATCH",
|
191
|
+
"entitypath": "{base_path}/{version}/v1.0/security/cases/ediscoveryCases/{pathv1}/reviewSets/{pathv2}/queries/{pathv3}?{query}",
|
192
|
+
"requestSchema": "schema.json",
|
193
|
+
"responseSchema": "schema.json",
|
194
|
+
"timeout": 0,
|
195
|
+
"sendEmpty": false,
|
196
|
+
"requestDatatype": "JSON",
|
197
|
+
"responseDatatype": "JSON",
|
198
|
+
"headers": {},
|
199
|
+
"responseObjects": [
|
200
|
+
{
|
201
|
+
"type": "default",
|
202
|
+
"key": "",
|
203
|
+
"mockFile": ""
|
204
|
+
}
|
205
|
+
]
|
206
|
+
},
|
207
|
+
{
|
208
|
+
"name": "deleteediscoveryReviewSetQuery",
|
209
|
+
"protocol": "REST",
|
210
|
+
"method": "DELETE",
|
211
|
+
"entitypath": "{base_path}/{version}/v1.0/security/cases/ediscoveryCases/{pathv1}/reviewSets/{pathv2}/queries/{pathv3}?{query}",
|
212
|
+
"requestSchema": "schema.json",
|
213
|
+
"responseSchema": "schema.json",
|
214
|
+
"timeout": 0,
|
215
|
+
"sendEmpty": false,
|
216
|
+
"requestDatatype": "JSON",
|
217
|
+
"responseDatatype": "JSON",
|
218
|
+
"headers": {},
|
219
|
+
"responseObjects": [
|
220
|
+
{
|
221
|
+
"type": "default",
|
222
|
+
"key": "",
|
223
|
+
"mockFile": ""
|
224
|
+
}
|
225
|
+
]
|
226
|
+
},
|
227
|
+
{
|
228
|
+
"name": "listcaseOperations",
|
229
|
+
"protocol": "REST",
|
230
|
+
"method": "GET",
|
231
|
+
"entitypath": "{base_path}/{version}/v1.0/security/cases/ediscoveryCases/{pathv1}/operations?{query}",
|
232
|
+
"requestSchema": "schema.json",
|
233
|
+
"responseSchema": "schema.json",
|
234
|
+
"timeout": 0,
|
235
|
+
"sendEmpty": false,
|
236
|
+
"sendGetBody": false,
|
237
|
+
"requestDatatype": "JSON",
|
238
|
+
"responseDatatype": "JSON",
|
239
|
+
"headers": {},
|
240
|
+
"responseObjects": [
|
241
|
+
{
|
242
|
+
"type": "default",
|
243
|
+
"key": "",
|
244
|
+
"mockFile": ""
|
245
|
+
}
|
246
|
+
]
|
247
|
+
}
|
248
|
+
]
|
249
|
+
}
|
@@ -0,0 +1,30 @@
|
|
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": "createsearches",
|
12
|
+
"enum": [
|
13
|
+
"createsearches",
|
14
|
+
"listsearches",
|
15
|
+
"ediscoverySearchEstimateStatistics",
|
16
|
+
"listlastEstimateStatisticsOperation",
|
17
|
+
"createreviewSets",
|
18
|
+
"listreviewSets",
|
19
|
+
"ediscoveryReviewSetAddToReviewSet",
|
20
|
+
"createediscoveryReviewSetQuery",
|
21
|
+
"listqueries",
|
22
|
+
"updateediscoveryReviewSetQuery",
|
23
|
+
"deleteediscoveryReviewSetQuery",
|
24
|
+
"listcaseOperations"
|
25
|
+
],
|
26
|
+
"external_name": "ph_request_type"
|
27
|
+
}
|
28
|
+
},
|
29
|
+
"definitions": {}
|
30
|
+
}
|
package/error.json
ADDED
@@ -0,0 +1,190 @@
|
|
1
|
+
{
|
2
|
+
"errors": [
|
3
|
+
{
|
4
|
+
"key": "Unable To Save To Database",
|
5
|
+
"icode": "AD.100",
|
6
|
+
"displayString": "Error on saving to Database $VARIABLE$",
|
7
|
+
"recommendation": "Verify the database connectivity and credentials"
|
8
|
+
},
|
9
|
+
{
|
10
|
+
"key": "Database Error",
|
11
|
+
"icode": "AD.101",
|
12
|
+
"displayString": "Database Error: $VARIABLE$",
|
13
|
+
"recommendation": "Verify the database connectivity, schema and permissions"
|
14
|
+
},
|
15
|
+
{
|
16
|
+
"key": "Database Credentials",
|
17
|
+
"icode": "AD.102",
|
18
|
+
"displayString": "Database Error: Invalid Credentials",
|
19
|
+
"recommendation": "Verify the database credentials"
|
20
|
+
},
|
21
|
+
{
|
22
|
+
"key": "No Queue Item",
|
23
|
+
"icode": "AD.110",
|
24
|
+
"displayString": "Queue Item $VARIABLE$ not found in queue",
|
25
|
+
"recommendation": "Make sure the queue is working properly"
|
26
|
+
},
|
27
|
+
{
|
28
|
+
"key": "Unable To Create Queue",
|
29
|
+
"icode": "AD.111",
|
30
|
+
"displayString": "Unable to create queue: $VARIABLE$",
|
31
|
+
"recommendation": "Verify access to the database, redis or system memory"
|
32
|
+
},
|
33
|
+
{
|
34
|
+
"key": "Queue Full",
|
35
|
+
"icode": "AD.112",
|
36
|
+
"displayString": "Request $VARIABLE$ Transaction $VARIABLE$ rejected - queue full at $VARIABLE$",
|
37
|
+
"recommendation": "Make sure the queue is working properly"
|
38
|
+
},
|
39
|
+
{
|
40
|
+
"key": "Unable To Clear Queue",
|
41
|
+
"icode": "AD.113",
|
42
|
+
"displayString": "Unable to clear queue: $VARIABLE$",
|
43
|
+
"recommendation": "Make sure the queue exists"
|
44
|
+
},
|
45
|
+
{
|
46
|
+
"key": "Unable To Claim Turn",
|
47
|
+
"icode": "AD.114",
|
48
|
+
"displayString": "Request $VARIABLE$ Transaction $VARIABLE$ unable to claim license: $VARIABLE$",
|
49
|
+
"recommendation": "Make sure the queue is working properly"
|
50
|
+
},
|
51
|
+
{
|
52
|
+
"key": "Unable To Free Turn",
|
53
|
+
"icode": "AD.115",
|
54
|
+
"displayString": "Request $VARIABLE$ Transaction $VARIABLE$ unable to free license: $VARIABLE$",
|
55
|
+
"recommendation": "Make sure the queue is working properly"
|
56
|
+
},
|
57
|
+
{
|
58
|
+
"key": "Item In Wrong State",
|
59
|
+
"icode": "AD.116",
|
60
|
+
"displayString": "Queue item is in the wrong state: $VARIABLE$ ",
|
61
|
+
"recommendation": "Make sure the queue is working properly"
|
62
|
+
},
|
63
|
+
{
|
64
|
+
"key": "Missing Data",
|
65
|
+
"icode": "AD.300",
|
66
|
+
"displayString": "$VARIABLE$ is required",
|
67
|
+
"recommendation": "Please provide the required data"
|
68
|
+
},
|
69
|
+
{
|
70
|
+
"key": "Missing File",
|
71
|
+
"icode": "AD.301",
|
72
|
+
"displayString": "Can not open file $VARIABLE$",
|
73
|
+
"recommendation": "Verify the file exists and has proper permissions"
|
74
|
+
},
|
75
|
+
{
|
76
|
+
"key": "Invalid Action File",
|
77
|
+
"icode": "AD.302",
|
78
|
+
"displayString": "Invalid action file: $VARIABLE$ in $VARIABLE$",
|
79
|
+
"recommendation": "Verify the action file"
|
80
|
+
},
|
81
|
+
{
|
82
|
+
"key": "Unsupported Protocol",
|
83
|
+
"icode": "AD.303",
|
84
|
+
"displayString": "Protocol $VARIABLE$ not currently supported",
|
85
|
+
"recommendation": "Verify the protocol on the action"
|
86
|
+
},
|
87
|
+
{
|
88
|
+
"key": "Invalid Schema File",
|
89
|
+
"icode": "AD.304",
|
90
|
+
"displayString": "Invalid schema file: $VARIABLE$ in $VARIABLE$",
|
91
|
+
"recommendation": "Verify the action file"
|
92
|
+
},
|
93
|
+
{
|
94
|
+
"key": "Invalid Properties",
|
95
|
+
"icode": "AD.305",
|
96
|
+
"displayString": "Invalid properties: $VARIABLE$",
|
97
|
+
"recommendation": "Verify the properties for the adapter"
|
98
|
+
},
|
99
|
+
{
|
100
|
+
"key": "Missing Properties",
|
101
|
+
"icode": "AD.306",
|
102
|
+
"displayString": "Property $VARIABLE$ is required",
|
103
|
+
"recommendation": "Please provide the required property"
|
104
|
+
},
|
105
|
+
{
|
106
|
+
"key": "Query Not Translated",
|
107
|
+
"icode": "AD.310",
|
108
|
+
"displayString": "Query Not Translated",
|
109
|
+
"recommendation": "Verify the information passed in the query object"
|
110
|
+
},
|
111
|
+
{
|
112
|
+
"key": "Payload Not Translated",
|
113
|
+
"icode": "AD.311",
|
114
|
+
"displayString": "Payload Not Translated",
|
115
|
+
"recommendation": "Verify the information passed in the payload object"
|
116
|
+
},
|
117
|
+
{
|
118
|
+
"key": "Schema Validation Failure",
|
119
|
+
"icode": "AD.312",
|
120
|
+
"displayString": "Schema validation failed on $VARIABLE$",
|
121
|
+
"recommendation": "Verify the information provided is in the correct format with everything required"
|
122
|
+
},
|
123
|
+
{
|
124
|
+
"key": "Entity Cache Not Loading",
|
125
|
+
"icode": "AD.320",
|
126
|
+
"displayString": "Could not load entity: $VARIABLE$, into cache",
|
127
|
+
"recommendation": "Verify the cache is working properly"
|
128
|
+
},
|
129
|
+
{
|
130
|
+
"key": "Error Verifying Entity Cache",
|
131
|
+
"icode": "AD.321",
|
132
|
+
"displayString": "Could not verify entity in cache",
|
133
|
+
"recommendation": "Verify the cache is working properly"
|
134
|
+
},
|
135
|
+
{
|
136
|
+
"key": "Unable To Authenticate",
|
137
|
+
"icode": "AD.400",
|
138
|
+
"displayString": "Unable to authenticate with $VARIABLE$, response $VARIABLE$",
|
139
|
+
"recommendation": "Verify the user credentials and check the response for more information"
|
140
|
+
},
|
141
|
+
{
|
142
|
+
"key": "Unable To Encode",
|
143
|
+
"icode": "AD.401",
|
144
|
+
"displayString": "Can not perform base64 encoding on $VARIABLE$",
|
145
|
+
"recommendation": "Check the authentication format"
|
146
|
+
},
|
147
|
+
{
|
148
|
+
"key": "Unable To Get Token",
|
149
|
+
"icode": "AD.402",
|
150
|
+
"displayString": "Unable to get token for user: $VARIABLE$",
|
151
|
+
"recommendation": "Verify the user credentials and the system information"
|
152
|
+
},
|
153
|
+
{
|
154
|
+
"key": "Error On Request",
|
155
|
+
"icode": "AD.500",
|
156
|
+
"displayString": "Error $VARIABLE$ received on request",
|
157
|
+
"recommendation": "Verify the request is accurate via debug logs and postman"
|
158
|
+
},
|
159
|
+
{
|
160
|
+
"key": "Request Timeout",
|
161
|
+
"icode": "AD.501",
|
162
|
+
"displayString": "The Adapter has run out of time for the request",
|
163
|
+
"recommendation": "Increase your adapter request.attempt_timeout property"
|
164
|
+
},
|
165
|
+
{
|
166
|
+
"key": "Invalid Response",
|
167
|
+
"icode": "AD.502",
|
168
|
+
"displayString": "Invalid response received for $VARIABLE$",
|
169
|
+
"recommendation": "Verify the request is accurate via debug logs and postman"
|
170
|
+
},
|
171
|
+
{
|
172
|
+
"key": "Failure Response",
|
173
|
+
"icode": "AD.503",
|
174
|
+
"displayString": "Failure response received for $VARIABLE$",
|
175
|
+
"recommendation": "Check the reason for failure in the stack trace"
|
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
|
+
},
|
183
|
+
{
|
184
|
+
"key": "Caught Exception",
|
185
|
+
"icode": "AD.900",
|
186
|
+
"displayString": "Caught Exception $VARIABLE$",
|
187
|
+
"recommendation": "Evaluate why the exception took place"
|
188
|
+
}
|
189
|
+
]
|
190
|
+
}
|
package/package.json
ADDED
@@ -0,0 +1,87 @@
|
|
1
|
+
{
|
2
|
+
"name": "@itentialopensource/adapter-microsoft_graph",
|
3
|
+
"version": "1.0.0",
|
4
|
+
"description": "This adapter integrates with system described as: microsoftGraph.",
|
5
|
+
"main": "adapter.js",
|
6
|
+
"wizardVersion": "2.44.15",
|
7
|
+
"engineVersion": "1.62.7",
|
8
|
+
"adapterType": "http",
|
9
|
+
"scripts": {
|
10
|
+
"artifactize": "npm i && node utils/packModificationScript.js",
|
11
|
+
"preinstall": "node utils/setup.js && npm install --package-lock-only --ignore-scripts && npx npm-force-resolutions",
|
12
|
+
"deinstall": "node utils/removeHooks.js",
|
13
|
+
"lint": "node --max_old_space_size=4096 ./node_modules/eslint/bin/eslint.js . --ext .json --ext .js",
|
14
|
+
"lint:errors": "node --max_old_space_size=4096 ./node_modules/eslint/bin/eslint.js . --ext .json --ext .js --quiet",
|
15
|
+
"test:baseunit": "mocha test/unit/adapterBaseTestUnit.js --LOG=error",
|
16
|
+
"test:unit": "mocha test/unit/adapterTestUnit.js --LOG=error",
|
17
|
+
"test:integration": "mocha test/integration/adapterTestIntegration.js --LOG=error",
|
18
|
+
"test:cover": "nyc --reporter html --reporter text mocha --reporter dot test/*",
|
19
|
+
"test": "npm run test:baseunit && npm run test:unit && npm run test:integration",
|
20
|
+
"adapter:install": "npm i && node utils/tbScript.js install",
|
21
|
+
"adapter:checkMigrate": "node utils/checkMigrate.js",
|
22
|
+
"adapter:findPath": "node utils/findPath.js",
|
23
|
+
"adapter:migrate": "node utils/modify.js -m",
|
24
|
+
"adapter:update": "node utils/modify.js -u",
|
25
|
+
"adapter:revert": "node utils/modify.js -r",
|
26
|
+
"troubleshoot": "node utils/tbScript.js troubleshoot",
|
27
|
+
"healthcheck": "node utils/tbScript.js healthcheck",
|
28
|
+
"basicget": "node utils/tbScript.js basicget",
|
29
|
+
"connectivity": "node utils/tbScript.js connectivity",
|
30
|
+
"deploy": "npm publish --registry=https://registry.npmjs.org --access=public",
|
31
|
+
"build": "npm run deploy"
|
32
|
+
},
|
33
|
+
"keywords": [
|
34
|
+
"Itential",
|
35
|
+
"IAP",
|
36
|
+
"Automation",
|
37
|
+
"Integration",
|
38
|
+
"App-Artifacts",
|
39
|
+
"Adapter",
|
40
|
+
"Cloud",
|
41
|
+
"Microsoft",
|
42
|
+
"Graph",
|
43
|
+
"Pre-Release"
|
44
|
+
],
|
45
|
+
"license": "Apache-2.0",
|
46
|
+
"engines": {
|
47
|
+
"node": ">= 8.0.0",
|
48
|
+
"npm": ">= 6.0.0"
|
49
|
+
},
|
50
|
+
"repository": {
|
51
|
+
"type": "git",
|
52
|
+
"url": "git@gitlab.com:itentialopensource/adapters/cloud/adapter-microsoft_graph.git"
|
53
|
+
},
|
54
|
+
"author": "Itential",
|
55
|
+
"homepage": "https://gitlab.com/itentialopensource/adapters/cloud/adapter-microsoft_graph#readme",
|
56
|
+
"dependencies": {
|
57
|
+
"@itentialopensource/adapter-utils": "^4.48.0",
|
58
|
+
"ajv": "^6.12.0",
|
59
|
+
"axios": "^0.21.0",
|
60
|
+
"commander": "^2.20.0",
|
61
|
+
"esprima": "^4.0.1",
|
62
|
+
"fs-extra": "^8.1.0",
|
63
|
+
"json-query": "^2.2.2",
|
64
|
+
"mocha": "^9.0.1",
|
65
|
+
"mocha-param": "^2.0.1",
|
66
|
+
"mongodb": "^4.1.0",
|
67
|
+
"network-diagnostics": "^0.5.3",
|
68
|
+
"nyc": "^15.1.0",
|
69
|
+
"prompts": "^2.4.2",
|
70
|
+
"readline-sync": "^1.4.10",
|
71
|
+
"semver": "^7.3.2",
|
72
|
+
"winston": "^3.3.3"
|
73
|
+
},
|
74
|
+
"devDependencies": {
|
75
|
+
"chai": "^4.3.4",
|
76
|
+
"eslint": "^7.29.0",
|
77
|
+
"eslint-config-airbnb-base": "^14.2.1",
|
78
|
+
"eslint-plugin-import": "^2.23.4",
|
79
|
+
"eslint-plugin-json": "^3.0.0",
|
80
|
+
"package-json-validator": "^0.6.3",
|
81
|
+
"testdouble": "^3.16.1"
|
82
|
+
},
|
83
|
+
"resolutions": {
|
84
|
+
"minimist": "^1.2.5"
|
85
|
+
},
|
86
|
+
"private": false
|
87
|
+
}
|