@itentialopensource/adapter-microsoft_office365 0.1.1 → 0.2.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 (56) hide show
  1. package/AUTH.md +41 -0
  2. package/BROKER.md +199 -0
  3. package/CALLS.md +222 -0
  4. package/CHANGELOG.md +8 -1
  5. package/CODE_OF_CONDUCT.md +12 -17
  6. package/CONTRIBUTING.md +3 -148
  7. package/ENHANCE.md +69 -0
  8. package/PROPERTIES.md +641 -0
  9. package/README.md +235 -576
  10. package/SUMMARY.md +9 -0
  11. package/SYSTEMINFO.md +20 -0
  12. package/TROUBLESHOOT.md +47 -0
  13. package/adapter.js +391 -263
  14. package/adapterBase.js +854 -408
  15. package/changelogs/changelog.md +9 -0
  16. package/entities/.generic/action.json +110 -5
  17. package/entities/.generic/schema.json +6 -1
  18. package/error.json +6 -0
  19. package/metadata.json +57 -0
  20. package/package.json +28 -22
  21. package/pronghorn.json +691 -88
  22. package/propertiesDecorators.json +14 -0
  23. package/propertiesSchema.json +829 -8
  24. package/refs?service=git-upload-pack +0 -0
  25. package/report/adapter-openapi.json +509 -0
  26. package/report/adapter-openapi.yaml +349 -0
  27. package/report/adapterInfo.json +10 -0
  28. package/report/updateReport1691511327831.json +120 -0
  29. package/report/updateReport1692202817366.json +120 -0
  30. package/report/updateReport1694463941759.json +120 -0
  31. package/report/updateReport1698421603077.json +120 -0
  32. package/sampleProperties.json +153 -3
  33. package/test/integration/adapterTestBasicGet.js +3 -5
  34. package/test/integration/adapterTestConnectivity.js +91 -42
  35. package/test/integration/adapterTestIntegration.js +166 -114
  36. package/test/unit/adapterBaseTestUnit.js +388 -308
  37. package/test/unit/adapterTestUnit.js +490 -252
  38. package/utils/adapterInfo.js +206 -0
  39. package/utils/addAuth.js +94 -0
  40. package/utils/artifactize.js +1 -1
  41. package/utils/basicGet.js +1 -14
  42. package/utils/checkMigrate.js +1 -1
  43. package/utils/entitiesToDB.js +179 -0
  44. package/utils/findPath.js +1 -1
  45. package/utils/methodDocumentor.js +273 -0
  46. package/utils/modify.js +14 -16
  47. package/utils/packModificationScript.js +1 -1
  48. package/utils/patches2bundledDeps.js +90 -0
  49. package/utils/pre-commit.sh +5 -0
  50. package/utils/removeHooks.js +20 -0
  51. package/utils/taskMover.js +309 -0
  52. package/utils/tbScript.js +129 -53
  53. package/utils/tbUtils.js +125 -25
  54. package/utils/testRunner.js +17 -17
  55. package/utils/troubleshootingAdapter.js +10 -31
  56. package/workflows/README.md +0 -3
Binary file
@@ -0,0 +1,509 @@
1
+ {
2
+ "openapi": "3.0.0",
3
+ "info": {
4
+ "title": "OData Service for namespace microsoft.graph",
5
+ "description": "This OData service is located at https://graph.microsoft.com/v1.0",
6
+ "contact": {},
7
+ "version": "1.0.1"
8
+ },
9
+ "servers": [
10
+ {
11
+ "url": "https://graph.microsoft.com/v1.0",
12
+ "variables": {}
13
+ }
14
+ ],
15
+ "paths": {
16
+ "/groups": {
17
+ "get": {
18
+ "tags": [
19
+ "groups.group"
20
+ ],
21
+ "summary": "groups.group.ListGroup",
22
+ "description": "Get entities from groups",
23
+ "operationId": "groups.group.ListGroup",
24
+ "parameters": [
25
+ {
26
+ "name": "$top",
27
+ "in": "query",
28
+ "description": "Show only the first n items",
29
+ "style": "form",
30
+ "explode": true,
31
+ "schema": {
32
+ "minimum": 0.0,
33
+ "type": "integer",
34
+ "example": 50
35
+ }
36
+ },
37
+ {
38
+ "name": "$search",
39
+ "in": "query",
40
+ "description": "Search items by search phrases",
41
+ "style": "form",
42
+ "explode": true,
43
+ "schema": {
44
+ "type": "string"
45
+ }
46
+ },
47
+ {
48
+ "name": "$orderby",
49
+ "in": "query",
50
+ "description": "Order items by property values",
51
+ "style": "form",
52
+ "explode": true,
53
+ "schema": {
54
+ "uniqueItems": true,
55
+ "type": "array",
56
+ "items": {
57
+ "type": "string"
58
+ }
59
+ }
60
+ },
61
+ {
62
+ "name": "$select",
63
+ "in": "query",
64
+ "description": "Select properties to be returned",
65
+ "style": "form",
66
+ "explode": true,
67
+ "schema": {
68
+ "uniqueItems": true,
69
+ "type": "array",
70
+ "items": {
71
+ "type": "string"
72
+ }
73
+ }
74
+ }
75
+ ],
76
+ "responses": {
77
+ "200": {
78
+ "description": "Retrieved entities",
79
+ "headers": {},
80
+ "content": {
81
+ "application/json": {
82
+ "schema": {
83
+ "type": "object"
84
+ }
85
+ }
86
+ }
87
+ }
88
+ },
89
+ "deprecated": false
90
+ },
91
+ "post": {
92
+ "tags": [
93
+ "groups.group"
94
+ ],
95
+ "summary": "groups.group.CreateGroup",
96
+ "description": "Add new entity to groups",
97
+ "operationId": "groups.group.CreateGroup",
98
+ "parameters": [],
99
+ "requestBody": {
100
+ "description": "New entity",
101
+ "content": {
102
+ "application/json": {
103
+ "schema": {
104
+ "type": "object"
105
+ }
106
+ }
107
+ },
108
+ "required": true
109
+ },
110
+ "responses": {
111
+ "201": {
112
+ "description": "Created entity",
113
+ "headers": {},
114
+ "content": {
115
+ "application/json": {
116
+ "schema": {
117
+ "type": "object"
118
+ }
119
+ }
120
+ }
121
+ }
122
+ },
123
+ "deprecated": false
124
+ }
125
+ },
126
+ "/groups/{group-id}": {
127
+ "get": {
128
+ "tags": [
129
+ "groups.group"
130
+ ],
131
+ "summary": "groups.group.GetGroup",
132
+ "description": "Get entity from groups by key",
133
+ "operationId": "groups.group.GetGroup",
134
+ "parameters": [
135
+ {
136
+ "name": "group-id",
137
+ "in": "path",
138
+ "description": "key: group-id",
139
+ "required": true,
140
+ "style": "simple",
141
+ "schema": {
142
+ "type": "string"
143
+ }
144
+ },
145
+ {
146
+ "name": "$select",
147
+ "in": "query",
148
+ "description": "Select properties to be returned",
149
+ "style": "form",
150
+ "explode": true,
151
+ "schema": {
152
+ "uniqueItems": true,
153
+ "type": "array",
154
+ "items": {
155
+ "type": "string"
156
+ }
157
+ }
158
+ }
159
+ ],
160
+ "responses": {
161
+ "200": {
162
+ "description": "Retrieved entity",
163
+ "headers": {},
164
+ "content": {
165
+ "application/json": {
166
+ "schema": {
167
+ "type": "object"
168
+ }
169
+ }
170
+ }
171
+ }
172
+ },
173
+ "deprecated": false
174
+ },
175
+ "patch": {
176
+ "tags": [
177
+ "groups.group"
178
+ ],
179
+ "summary": "groups.group.UpdateGroup",
180
+ "description": "Update entity in groups",
181
+ "operationId": "groups.group.UpdateGroup",
182
+ "parameters": [
183
+ {
184
+ "name": "group-id",
185
+ "in": "path",
186
+ "description": "key: group-id",
187
+ "required": true,
188
+ "style": "simple",
189
+ "schema": {
190
+ "type": "string"
191
+ }
192
+ }
193
+ ],
194
+ "requestBody": {
195
+ "description": "New property values",
196
+ "content": {
197
+ "application/json": {
198
+ "schema": {
199
+ "type": "object"
200
+ }
201
+ }
202
+ },
203
+ "required": true
204
+ },
205
+ "responses": {
206
+ "204": {
207
+ "description": "Success",
208
+ "headers": {},
209
+ "content": {}
210
+ }
211
+ },
212
+ "deprecated": false
213
+ },
214
+ "delete": {
215
+ "tags": [
216
+ "groups.group"
217
+ ],
218
+ "summary": "groups.group.DeleteGroup",
219
+ "description": "Delete entity from groups",
220
+ "operationId": "groups.group.DeleteGroup",
221
+ "parameters": [
222
+ {
223
+ "name": "group-id",
224
+ "in": "path",
225
+ "description": "key: group-id",
226
+ "required": true,
227
+ "style": "simple",
228
+ "schema": {
229
+ "type": "string"
230
+ }
231
+ },
232
+ {
233
+ "name": "If-Match",
234
+ "in": "header",
235
+ "description": "ETag",
236
+ "style": "simple",
237
+ "schema": {
238
+ "type": "string"
239
+ }
240
+ }
241
+ ],
242
+ "responses": {
243
+ "204": {
244
+ "description": "Success",
245
+ "headers": {},
246
+ "content": {}
247
+ }
248
+ },
249
+ "deprecated": false
250
+ }
251
+ },
252
+ "/users": {
253
+ "get": {
254
+ "tags": [
255
+ "users.user"
256
+ ],
257
+ "summary": "users.user.ListUser",
258
+ "description": "Get entities from users",
259
+ "operationId": "users.user.ListUser",
260
+ "parameters": [
261
+ {
262
+ "name": "$top",
263
+ "in": "query",
264
+ "description": "Show only the first n items",
265
+ "style": "form",
266
+ "explode": true,
267
+ "schema": {
268
+ "minimum": 0.0,
269
+ "type": "integer",
270
+ "example": 50
271
+ }
272
+ },
273
+ {
274
+ "name": "$search",
275
+ "in": "query",
276
+ "description": "Search items by search phrases",
277
+ "style": "form",
278
+ "explode": true,
279
+ "schema": {
280
+ "type": "string"
281
+ }
282
+ },
283
+ {
284
+ "name": "$orderby",
285
+ "in": "query",
286
+ "description": "Order items by property values",
287
+ "style": "form",
288
+ "explode": true,
289
+ "schema": {
290
+ "uniqueItems": true,
291
+ "type": "array",
292
+ "items": {
293
+ "type": "string"
294
+ }
295
+ }
296
+ },
297
+ {
298
+ "name": "$select",
299
+ "in": "query",
300
+ "description": "Select properties to be returned",
301
+ "style": "form",
302
+ "explode": true,
303
+ "schema": {
304
+ "uniqueItems": true,
305
+ "type": "array",
306
+ "items": {
307
+ "type": "string"
308
+ }
309
+ }
310
+ }
311
+ ],
312
+ "responses": {
313
+ "200": {
314
+ "description": "Retrieved entities",
315
+ "headers": {},
316
+ "content": {
317
+ "application/json": {
318
+ "schema": {
319
+ "type": "object"
320
+ }
321
+ }
322
+ }
323
+ }
324
+ },
325
+ "deprecated": false
326
+ },
327
+ "post": {
328
+ "tags": [
329
+ "users.user"
330
+ ],
331
+ "summary": "users.user.CreateUser",
332
+ "description": "Add new entity to users",
333
+ "operationId": "users.user.CreateUser",
334
+ "parameters": [],
335
+ "requestBody": {
336
+ "description": "New entity",
337
+ "content": {
338
+ "application/json": {
339
+ "schema": {
340
+ "type": "object"
341
+ }
342
+ }
343
+ },
344
+ "required": true
345
+ },
346
+ "responses": {
347
+ "201": {
348
+ "description": "Created entity",
349
+ "headers": {},
350
+ "content": {
351
+ "application/json": {
352
+ "schema": {
353
+ "type": "object"
354
+ }
355
+ }
356
+ }
357
+ }
358
+ },
359
+ "deprecated": false
360
+ }
361
+ },
362
+ "/users/{user-id}": {
363
+ "get": {
364
+ "tags": [
365
+ "users.user"
366
+ ],
367
+ "summary": "users.user.GetUser",
368
+ "description": "Get entity from users by key",
369
+ "operationId": "users.user.GetUser",
370
+ "parameters": [
371
+ {
372
+ "name": "user-id",
373
+ "in": "path",
374
+ "description": "key: user-id",
375
+ "required": true,
376
+ "style": "simple",
377
+ "schema": {
378
+ "type": "string"
379
+ }
380
+ },
381
+ {
382
+ "name": "$select",
383
+ "in": "query",
384
+ "description": "Select properties to be returned",
385
+ "style": "form",
386
+ "explode": true,
387
+ "schema": {
388
+ "uniqueItems": true,
389
+ "type": "array",
390
+ "items": {
391
+ "type": "string"
392
+ }
393
+ }
394
+ }
395
+ ],
396
+ "responses": {
397
+ "200": {
398
+ "description": "Retrieved entity",
399
+ "headers": {},
400
+ "content": {
401
+ "application/json": {
402
+ "schema": {
403
+ "type": "object"
404
+ }
405
+ }
406
+ }
407
+ }
408
+ },
409
+ "deprecated": false
410
+ },
411
+ "patch": {
412
+ "tags": [
413
+ "users.user"
414
+ ],
415
+ "summary": "users.user.UpdateUser",
416
+ "description": "Update entity in users",
417
+ "operationId": "users.user.UpdateUser",
418
+ "parameters": [
419
+ {
420
+ "name": "user-id",
421
+ "in": "path",
422
+ "description": "key: user-id",
423
+ "required": true,
424
+ "style": "simple",
425
+ "schema": {
426
+ "type": "string"
427
+ }
428
+ }
429
+ ],
430
+ "requestBody": {
431
+ "description": "New property values",
432
+ "content": {
433
+ "application/json": {
434
+ "schema": {
435
+ "type": "object"
436
+ }
437
+ }
438
+ },
439
+ "required": true
440
+ },
441
+ "responses": {
442
+ "204": {
443
+ "description": "Success",
444
+ "headers": {},
445
+ "content": {}
446
+ }
447
+ },
448
+ "deprecated": false
449
+ },
450
+ "delete": {
451
+ "tags": [
452
+ "users.user"
453
+ ],
454
+ "summary": "users.user.DeleteUser",
455
+ "description": "Delete entity from users",
456
+ "operationId": "users.user.DeleteUser",
457
+ "parameters": [
458
+ {
459
+ "name": "user-id",
460
+ "in": "path",
461
+ "description": "key: user-id",
462
+ "required": true,
463
+ "style": "simple",
464
+ "schema": {
465
+ "type": "string"
466
+ }
467
+ },
468
+ {
469
+ "name": "If-Match",
470
+ "in": "header",
471
+ "description": "ETag",
472
+ "style": "simple",
473
+ "schema": {
474
+ "type": "string"
475
+ }
476
+ }
477
+ ],
478
+ "responses": {
479
+ "204": {
480
+ "description": "Success",
481
+ "headers": {},
482
+ "content": {}
483
+ }
484
+ },
485
+ "deprecated": false
486
+ }
487
+ }
488
+ },
489
+ "components": {
490
+ "schemas": {
491
+ }
492
+ },
493
+ "tags": [
494
+ {
495
+ "name": "groups.groupSetting"
496
+ },
497
+ {
498
+ "name": "users.userSettings"
499
+ },
500
+ {
501
+ "name": "groups.group",
502
+ "description": ""
503
+ },
504
+ {
505
+ "name": "users.user",
506
+ "description": ""
507
+ }
508
+ ]
509
+ }