@itentialopensource/adapter-microsoft_office365 0.3.6 → 0.4.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 (45) hide show
  1. package/.eslintrc.js +1 -0
  2. package/AUTH.md +4 -4
  3. package/BROKER.md +4 -4
  4. package/CALLS.md +9 -9
  5. package/ENHANCE.md +3 -3
  6. package/PROPERTIES.md +24 -9
  7. package/README.md +24 -23
  8. package/SUMMARY.md +2 -2
  9. package/SYSTEMINFO.md +1 -1
  10. package/TAB1.md +2 -2
  11. package/TAB2.md +9 -5
  12. package/TROUBLESHOOT.md +10 -1
  13. package/UTILITIES.md +473 -0
  14. package/adapter.js +5 -5
  15. package/adapterBase.js +52 -16
  16. package/package.json +24 -30
  17. package/pronghorn.json +15 -13
  18. package/propertiesSchema.json +68 -7
  19. package/report/adapterInfo.json +7 -7
  20. package/report/auto-adapter-openapi.json +470 -0
  21. package/report/updateReport1748555443074.json +120 -0
  22. package/sampleProperties.json +4 -0
  23. package/test/integration/adapterTestBasicGet.js +88 -54
  24. package/test/integration/adapterTestConnectivity.js +15 -16
  25. package/test/integration/adapterTestIntegration.js +1 -38
  26. package/test/unit/adapterBaseTestUnit.js +641 -39
  27. package/test/unit/adapterTestUnit.js +17 -54
  28. package/utils/adapterInfo.js +114 -164
  29. package/utils/argParser.js +44 -0
  30. package/utils/checkMigrate.js +77 -38
  31. package/utils/entitiesToDB.js +53 -42
  32. package/utils/logger.js +26 -0
  33. package/utils/modify.js +56 -55
  34. package/utils/mongoDbConnection.js +79 -0
  35. package/utils/mongoUtils.js +162 -0
  36. package/utils/taskMover.js +31 -32
  37. package/utils/tbScript.js +36 -172
  38. package/utils/tbUtils.js +84 -226
  39. package/utils/troubleshootingAdapter.js +68 -84
  40. package/utils/updateAdapterConfig.js +158 -0
  41. package/utils/addAuth.js +0 -94
  42. package/utils/artifactize.js +0 -146
  43. package/utils/basicGet.js +0 -50
  44. package/utils/packModificationScript.js +0 -35
  45. package/utils/patches2bundledDeps.js +0 -90
@@ -0,0 +1,470 @@
1
+ {
2
+ "openapi": "3.1.0",
3
+ "info": {
4
+ "title": "",
5
+ "version": "1.0.0"
6
+ },
7
+ "paths": {
8
+ "/groups": {
9
+ "get": {
10
+ "tags": [
11
+ "GroupsGroup"
12
+ ],
13
+ "operationId": "getGroups",
14
+ "description": "The parameters and request body are for method: getGroups. Same endpoint also used in methods:",
15
+ "responses": {
16
+ "200": {
17
+ "description": "Successful operation",
18
+ "content": {
19
+ "application/json": {
20
+ "schema": {
21
+ "title": "result",
22
+ "type": "object"
23
+ }
24
+ }
25
+ }
26
+ }
27
+ },
28
+ "parameters": [
29
+ {
30
+ "name": "top",
31
+ "in": "query",
32
+ "required": true,
33
+ "schema": {
34
+ "type": "string"
35
+ }
36
+ },
37
+ {
38
+ "name": "search",
39
+ "in": "query",
40
+ "required": true,
41
+ "schema": {
42
+ "type": "string"
43
+ }
44
+ },
45
+ {
46
+ "name": "orderby",
47
+ "in": "query",
48
+ "required": true,
49
+ "schema": {
50
+ "type": "string"
51
+ }
52
+ },
53
+ {
54
+ "name": "select",
55
+ "in": "query",
56
+ "required": true,
57
+ "schema": {
58
+ "type": "string"
59
+ }
60
+ }
61
+ ],
62
+ "requestBody": {
63
+ "content": {
64
+ "application/json": {
65
+ "schema": {
66
+ "type": "object"
67
+ },
68
+ "example": {}
69
+ }
70
+ }
71
+ }
72
+ },
73
+ "post": {
74
+ "tags": [
75
+ "GroupsGroup"
76
+ ],
77
+ "operationId": "postGroups",
78
+ "description": "The parameters and request body are for method: postGroups. Same endpoint also used in methods:",
79
+ "responses": {
80
+ "200": {
81
+ "description": "Successful operation",
82
+ "content": {
83
+ "application/json": {
84
+ "schema": {
85
+ "title": "result",
86
+ "type": "object"
87
+ }
88
+ }
89
+ }
90
+ }
91
+ },
92
+ "requestBody": {
93
+ "description": "indeterminate body object",
94
+ "content": {
95
+ "application/json": {
96
+ "schema": {
97
+ "type": "object"
98
+ }
99
+ }
100
+ }
101
+ }
102
+ }
103
+ },
104
+ "/groups/{groupId}": {
105
+ "get": {
106
+ "tags": [
107
+ "GroupsGroup"
108
+ ],
109
+ "operationId": "getGroupsGroupId",
110
+ "description": "The parameters and request body are for method: getGroupsGroupId. Same endpoint also used in methods:",
111
+ "responses": {
112
+ "200": {
113
+ "description": "Successful operation",
114
+ "content": {
115
+ "application/json": {
116
+ "schema": {
117
+ "title": "result",
118
+ "type": "object"
119
+ }
120
+ }
121
+ }
122
+ }
123
+ },
124
+ "parameters": [
125
+ {
126
+ "name": "groupId",
127
+ "in": "path",
128
+ "required": true,
129
+ "schema": {
130
+ "title": "groupId",
131
+ "type": "string"
132
+ }
133
+ },
134
+ {
135
+ "name": "select",
136
+ "in": "query",
137
+ "required": true,
138
+ "schema": {
139
+ "type": "string"
140
+ }
141
+ }
142
+ ],
143
+ "requestBody": {
144
+ "content": {
145
+ "application/json": {
146
+ "schema": {
147
+ "type": "object"
148
+ },
149
+ "example": {}
150
+ }
151
+ }
152
+ }
153
+ },
154
+ "patch": {
155
+ "tags": [
156
+ "GroupsGroup"
157
+ ],
158
+ "operationId": "patchGroupsGroupId",
159
+ "description": "The parameters and request body are for method: patchGroupsGroupId. Same endpoint also used in methods:",
160
+ "responses": {
161
+ "200": {
162
+ "description": "Successful operation",
163
+ "content": {
164
+ "application/json": {
165
+ "schema": {
166
+ "title": "result",
167
+ "type": "object"
168
+ }
169
+ }
170
+ }
171
+ }
172
+ },
173
+ "parameters": [
174
+ {
175
+ "name": "groupId",
176
+ "in": "path",
177
+ "required": true,
178
+ "schema": {
179
+ "title": "groupId",
180
+ "type": "string"
181
+ }
182
+ }
183
+ ],
184
+ "requestBody": {
185
+ "description": "indeterminate body object",
186
+ "content": {
187
+ "application/json": {
188
+ "schema": {
189
+ "type": "object"
190
+ }
191
+ }
192
+ }
193
+ }
194
+ },
195
+ "delete": {
196
+ "tags": [
197
+ "GroupsGroup"
198
+ ],
199
+ "operationId": "deleteGroupsGroupId",
200
+ "description": "The parameters and request body are for method: deleteGroupsGroupId. Same endpoint also used in methods:",
201
+ "responses": {
202
+ "200": {
203
+ "description": "Successful operation",
204
+ "content": {
205
+ "application/json": {
206
+ "schema": {
207
+ "title": "result",
208
+ "type": "object"
209
+ }
210
+ }
211
+ }
212
+ }
213
+ },
214
+ "parameters": [
215
+ {
216
+ "name": "groupId",
217
+ "in": "path",
218
+ "required": true,
219
+ "schema": {
220
+ "title": "groupId",
221
+ "type": "string"
222
+ }
223
+ }
224
+ ],
225
+ "requestBody": {
226
+ "content": {
227
+ "application/json": {
228
+ "schema": {
229
+ "type": "object"
230
+ },
231
+ "example": {}
232
+ }
233
+ }
234
+ }
235
+ }
236
+ },
237
+ "/users": {
238
+ "get": {
239
+ "tags": [
240
+ "UsersUser"
241
+ ],
242
+ "operationId": "getUsers",
243
+ "description": "The parameters and request body are for method: getUsers. Same endpoint also used in methods:",
244
+ "responses": {
245
+ "200": {
246
+ "description": "Successful operation",
247
+ "content": {
248
+ "application/json": {
249
+ "schema": {
250
+ "title": "result",
251
+ "type": "object"
252
+ }
253
+ }
254
+ }
255
+ }
256
+ },
257
+ "parameters": [
258
+ {
259
+ "name": "top",
260
+ "in": "query",
261
+ "required": true,
262
+ "schema": {
263
+ "type": "string"
264
+ }
265
+ },
266
+ {
267
+ "name": "search",
268
+ "in": "query",
269
+ "required": true,
270
+ "schema": {
271
+ "type": "string"
272
+ }
273
+ },
274
+ {
275
+ "name": "orderby",
276
+ "in": "query",
277
+ "required": true,
278
+ "schema": {
279
+ "type": "string"
280
+ }
281
+ },
282
+ {
283
+ "name": "select",
284
+ "in": "query",
285
+ "required": true,
286
+ "schema": {
287
+ "type": "string"
288
+ }
289
+ }
290
+ ],
291
+ "requestBody": {
292
+ "content": {
293
+ "application/json": {
294
+ "schema": {
295
+ "type": "object"
296
+ },
297
+ "example": {}
298
+ }
299
+ }
300
+ }
301
+ },
302
+ "post": {
303
+ "tags": [
304
+ "UsersUser"
305
+ ],
306
+ "operationId": "postUsers",
307
+ "description": "The parameters and request body are for method: postUsers. Same endpoint also used in methods:",
308
+ "responses": {
309
+ "200": {
310
+ "description": "Successful operation",
311
+ "content": {
312
+ "application/json": {
313
+ "schema": {
314
+ "title": "result",
315
+ "type": "object"
316
+ }
317
+ }
318
+ }
319
+ }
320
+ },
321
+ "requestBody": {
322
+ "description": "indeterminate body object",
323
+ "content": {
324
+ "application/json": {
325
+ "schema": {
326
+ "type": "object"
327
+ }
328
+ }
329
+ }
330
+ }
331
+ }
332
+ },
333
+ "/users/{userId}": {
334
+ "get": {
335
+ "tags": [
336
+ "UsersUser"
337
+ ],
338
+ "operationId": "getUsersUserId",
339
+ "description": "The parameters and request body are for method: getUsersUserId. Same endpoint also used in methods:",
340
+ "responses": {
341
+ "200": {
342
+ "description": "Successful operation",
343
+ "content": {
344
+ "application/json": {
345
+ "schema": {
346
+ "title": "result",
347
+ "type": "object"
348
+ }
349
+ }
350
+ }
351
+ }
352
+ },
353
+ "parameters": [
354
+ {
355
+ "name": "userId",
356
+ "in": "path",
357
+ "required": true,
358
+ "schema": {
359
+ "title": "userId",
360
+ "type": "string"
361
+ }
362
+ },
363
+ {
364
+ "name": "select",
365
+ "in": "query",
366
+ "required": true,
367
+ "schema": {
368
+ "type": "string"
369
+ }
370
+ }
371
+ ],
372
+ "requestBody": {
373
+ "content": {
374
+ "application/json": {
375
+ "schema": {
376
+ "type": "object"
377
+ },
378
+ "example": {}
379
+ }
380
+ }
381
+ }
382
+ },
383
+ "patch": {
384
+ "tags": [
385
+ "UsersUser"
386
+ ],
387
+ "operationId": "patchUsersUserId",
388
+ "description": "The parameters and request body are for method: patchUsersUserId. Same endpoint also used in methods:",
389
+ "responses": {
390
+ "200": {
391
+ "description": "Successful operation",
392
+ "content": {
393
+ "application/json": {
394
+ "schema": {
395
+ "title": "result",
396
+ "type": "object"
397
+ }
398
+ }
399
+ }
400
+ }
401
+ },
402
+ "parameters": [
403
+ {
404
+ "name": "userId",
405
+ "in": "path",
406
+ "required": true,
407
+ "schema": {
408
+ "title": "userId",
409
+ "type": "string"
410
+ }
411
+ }
412
+ ],
413
+ "requestBody": {
414
+ "description": "indeterminate body object",
415
+ "content": {
416
+ "application/json": {
417
+ "schema": {
418
+ "type": "object"
419
+ }
420
+ }
421
+ }
422
+ }
423
+ },
424
+ "delete": {
425
+ "tags": [
426
+ "UsersUser"
427
+ ],
428
+ "operationId": "deleteUsersUserId",
429
+ "description": "The parameters and request body are for method: deleteUsersUserId. Same endpoint also used in methods:",
430
+ "responses": {
431
+ "200": {
432
+ "description": "Successful operation",
433
+ "content": {
434
+ "application/json": {
435
+ "schema": {
436
+ "title": "result",
437
+ "type": "object"
438
+ }
439
+ }
440
+ }
441
+ }
442
+ },
443
+ "parameters": [
444
+ {
445
+ "name": "userId",
446
+ "in": "path",
447
+ "required": true,
448
+ "schema": {
449
+ "title": "userId",
450
+ "type": "string"
451
+ }
452
+ }
453
+ ],
454
+ "requestBody": {
455
+ "content": {
456
+ "application/json": {
457
+ "schema": {
458
+ "type": "object"
459
+ },
460
+ "example": {}
461
+ }
462
+ }
463
+ }
464
+ }
465
+ }
466
+ },
467
+ "components": {
468
+ "schemas": {}
469
+ }
470
+ }
@@ -0,0 +1,120 @@
1
+ {
2
+ "errors": [],
3
+ "statistics": [
4
+ {
5
+ "owner": "errorJson",
6
+ "description": "New adapter errors available for use",
7
+ "value": 0
8
+ },
9
+ {
10
+ "owner": "errorJson",
11
+ "description": "Adapter errors no longer available for use",
12
+ "value": 0
13
+ },
14
+ {
15
+ "owner": "errorJson",
16
+ "description": "Adapter errors that have been updated (e.g. recommendation changes)",
17
+ "value": 31
18
+ },
19
+ {
20
+ "owner": "packageJson",
21
+ "description": "Number of production dependencies",
22
+ "value": 15
23
+ },
24
+ {
25
+ "owner": "packageJson",
26
+ "description": "Number of development dependencies",
27
+ "value": 6
28
+ },
29
+ {
30
+ "owner": "packageJson",
31
+ "description": "Number of npm scripts",
32
+ "value": 19
33
+ },
34
+ {
35
+ "owner": "packageJson",
36
+ "description": "Runtime Library dependency",
37
+ "value": "5.10.16"
38
+ },
39
+ {
40
+ "owner": "propertiesSchemaJson",
41
+ "description": "Adapter properties defined in the propertiesSchema file",
42
+ "value": 79
43
+ },
44
+ {
45
+ "owner": "markdown",
46
+ "description": "Number of lines in the README.md",
47
+ "value": 345
48
+ },
49
+ {
50
+ "owner": "markdown",
51
+ "description": "Number of lines in the SUMMARY.md",
52
+ "value": 9
53
+ },
54
+ {
55
+ "owner": "markdown",
56
+ "description": "Number of lines in the PROPERTIES.md",
57
+ "value": 662
58
+ },
59
+ {
60
+ "owner": "markdown",
61
+ "description": "Number of lines in the TROUBLESHOOT.md",
62
+ "value": 57
63
+ },
64
+ {
65
+ "owner": "markdown",
66
+ "description": "Number of lines in the ENHANCE.md",
67
+ "value": 70
68
+ },
69
+ {
70
+ "owner": "markdown",
71
+ "description": "Number of lines in the BROKER.md",
72
+ "value": 70
73
+ },
74
+ {
75
+ "owner": "unitTestJS",
76
+ "description": "Number of lines of code in unit tests",
77
+ "value": 1764
78
+ },
79
+ {
80
+ "owner": "unitTestJS",
81
+ "description": "Number of unit tests",
82
+ "value": 88
83
+ },
84
+ {
85
+ "owner": "integrationTestJS",
86
+ "description": "Number of lines of code in integration tests",
87
+ "value": 700
88
+ },
89
+ {
90
+ "owner": "integrationTestJS",
91
+ "description": "Number of integration tests",
92
+ "value": 19
93
+ },
94
+ {
95
+ "owner": "staticFile",
96
+ "description": "Number of lines of code in adapterBase.js",
97
+ "value": 1489
98
+ },
99
+ {
100
+ "owner": "staticFile",
101
+ "description": "Number of static files added",
102
+ "value": 37
103
+ },
104
+ {
105
+ "owner": "Overall",
106
+ "description": "Total lines of Code",
107
+ "value": 3953
108
+ },
109
+ {
110
+ "owner": "Overall",
111
+ "description": "Total Tests",
112
+ "value": 107
113
+ },
114
+ {
115
+ "owner": "Overall",
116
+ "description": "Total Files",
117
+ "value": 6
118
+ }
119
+ ]
120
+ }
@@ -96,18 +96,22 @@
96
96
  "enabled": false,
97
97
  "accept_invalid_cert": false,
98
98
  "ca_file": "",
99
+ "ca_file_content": "",
99
100
  "key_file": "",
100
101
  "cert_file": "",
101
102
  "secure_protocol": "",
102
103
  "ciphers": ""
103
104
  },
104
105
  "mongo": {
106
+ "url": "",
105
107
  "host": "",
106
108
  "port": 0,
107
109
  "database": "",
110
+ "dbAuth": false,
108
111
  "username": "",
109
112
  "password": "",
110
113
  "replSet": "",
114
+ "addSrv": false,
111
115
  "db_ssl": {
112
116
  "enabled": false,
113
117
  "accept_invalid_cert": false,