@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
@@ -0,0 +1,349 @@
1
+ openapi: 3.0.0
2
+ info:
3
+ title: OData Service for namespace microsoft.graph
4
+ description: This OData service is located at https://graph.microsoft.com/v1.0
5
+ contact: {}
6
+ version: '1.0.1'
7
+ servers:
8
+ - url: https://graph.microsoft.com/v1.0
9
+ variables: {}
10
+ paths:
11
+ /groups:
12
+ get:
13
+ tags:
14
+ - groups.group
15
+ summary: groups.group.ListGroup
16
+ description: Get entities from groups
17
+ operationId: groups.group.ListGroup
18
+ parameters:
19
+ - name: $top
20
+ in: query
21
+ description: Show only the first n items
22
+ style: form
23
+ explode: true
24
+ schema:
25
+ minimum: 0
26
+ type: integer
27
+ format: int32
28
+ example: 50
29
+ - name: $search
30
+ in: query
31
+ description: Search items by search phrases
32
+ style: form
33
+ explode: true
34
+ schema:
35
+ type: string
36
+ - name: $orderby
37
+ in: query
38
+ description: Order items by property values
39
+ style: form
40
+ explode: true
41
+ schema:
42
+ uniqueItems: true
43
+ type: array
44
+ items:
45
+ type: string
46
+ - name: $select
47
+ in: query
48
+ description: Select properties to be returned
49
+ style: form
50
+ explode: true
51
+ schema:
52
+ uniqueItems: true
53
+ type: array
54
+ items:
55
+ type: string
56
+ responses:
57
+ '200':
58
+ description: Retrieved entities
59
+ headers: {}
60
+ content:
61
+ application/json:
62
+ schema:
63
+ type: object
64
+ deprecated: false
65
+ post:
66
+ tags:
67
+ - groups.group
68
+ summary: groups.group.CreateGroup
69
+ description: Add new entity to groups
70
+ operationId: groups.group.CreateGroup
71
+ parameters: []
72
+ requestBody:
73
+ description: New entity
74
+ content:
75
+ application/json:
76
+ schema:
77
+ type: object
78
+ description: New entity
79
+ required: true
80
+ responses:
81
+ '201':
82
+ description: Created entity
83
+ headers: {}
84
+ content:
85
+ application/json:
86
+ schema:
87
+ type: object
88
+ deprecated: false
89
+ /groups/{group-id}:
90
+ get:
91
+ tags:
92
+ - groups.group
93
+ summary: groups.group.GetGroup
94
+ description: Get entity from groups by key
95
+ operationId: groups.group.GetGroup
96
+ parameters:
97
+ - name: group-id
98
+ in: path
99
+ description: 'key: group-id'
100
+ required: true
101
+ style: simple
102
+ schema:
103
+ type: string
104
+ - name: $select
105
+ in: query
106
+ description: Select properties to be returned
107
+ style: form
108
+ explode: true
109
+ schema:
110
+ uniqueItems: true
111
+ type: array
112
+ items:
113
+ type: string
114
+ responses:
115
+ '200':
116
+ description: Retrieved entity
117
+ headers: {}
118
+ content:
119
+ application/json:
120
+ schema:
121
+ type: object
122
+ deprecated: false
123
+ patch:
124
+ tags:
125
+ - groups.group
126
+ summary: groups.group.UpdateGroup
127
+ description: Update entity in groups
128
+ operationId: groups.group.UpdateGroup
129
+ parameters:
130
+ - name: group-id
131
+ in: path
132
+ description: 'key: group-id'
133
+ required: true
134
+ style: simple
135
+ schema:
136
+ type: string
137
+ requestBody:
138
+ description: New property values
139
+ content:
140
+ application/json:
141
+ schema:
142
+ type: object
143
+ description: New property values
144
+ required: true
145
+ responses:
146
+ '204':
147
+ description: Success
148
+ headers: {}
149
+ content: {}
150
+ deprecated: false
151
+ delete:
152
+ tags:
153
+ - groups.group
154
+ summary: groups.group.DeleteGroup
155
+ description: Delete entity from groups
156
+ operationId: groups.group.DeleteGroup
157
+ parameters:
158
+ - name: group-id
159
+ in: path
160
+ description: 'key: group-id'
161
+ required: true
162
+ style: simple
163
+ schema:
164
+ type: string
165
+ - name: If-Match
166
+ in: header
167
+ description: ETag
168
+ style: simple
169
+ schema:
170
+ type: string
171
+ responses:
172
+ '204':
173
+ description: Success
174
+ headers: {}
175
+ content: {}
176
+ deprecated: false
177
+ /users:
178
+ get:
179
+ tags:
180
+ - users.user
181
+ summary: users.user.ListUser
182
+ description: Get entities from users
183
+ operationId: users.user.ListUser
184
+ parameters:
185
+ - name: $top
186
+ in: query
187
+ description: Show only the first n items
188
+ style: form
189
+ explode: true
190
+ schema:
191
+ minimum: 0
192
+ type: integer
193
+ format: int32
194
+ example: 50
195
+ - name: $search
196
+ in: query
197
+ description: Search items by search phrases
198
+ style: form
199
+ explode: true
200
+ schema:
201
+ type: string
202
+ - name: $orderby
203
+ in: query
204
+ description: Order items by property values
205
+ style: form
206
+ explode: true
207
+ schema:
208
+ uniqueItems: true
209
+ type: array
210
+ items:
211
+ type: string
212
+ - name: $select
213
+ in: query
214
+ description: Select properties to be returned
215
+ style: form
216
+ explode: true
217
+ schema:
218
+ uniqueItems: true
219
+ type: array
220
+ items:
221
+ type: string
222
+ responses:
223
+ '200':
224
+ description: Retrieved entities
225
+ headers: {}
226
+ content:
227
+ application/json:
228
+ schema:
229
+ type: object
230
+ deprecated: false
231
+ post:
232
+ tags:
233
+ - users.user
234
+ summary: users.user.CreateUser
235
+ description: Add new entity to users
236
+ operationId: users.user.CreateUser
237
+ parameters: []
238
+ requestBody:
239
+ description: New entity
240
+ content:
241
+ application/json:
242
+ schema:
243
+ type: object
244
+ description: New entity
245
+ required: true
246
+ responses:
247
+ '201':
248
+ description: Created entity
249
+ headers: {}
250
+ content:
251
+ application/json:
252
+ schema:
253
+ type: object
254
+ deprecated: false
255
+ /users/{user-id}:
256
+ get:
257
+ tags:
258
+ - users.user
259
+ summary: users.user.GetUser
260
+ description: Get entity from users by key
261
+ operationId: users.user.GetUser
262
+ parameters:
263
+ - name: user-id
264
+ in: path
265
+ description: 'key: user-id'
266
+ required: true
267
+ style: simple
268
+ schema:
269
+ type: string
270
+ - name: $select
271
+ in: query
272
+ description: Select properties to be returned
273
+ style: form
274
+ explode: true
275
+ schema:
276
+ uniqueItems: true
277
+ type: array
278
+ items:
279
+ type: string
280
+ responses:
281
+ '200':
282
+ description: Retrieved entity
283
+ headers: {}
284
+ content:
285
+ application/json:
286
+ schema:
287
+ type: object
288
+ deprecated: false
289
+ patch:
290
+ tags:
291
+ - users.user
292
+ summary: users.user.UpdateUser
293
+ description: Update entity in users
294
+ operationId: users.user.UpdateUser
295
+ parameters:
296
+ - name: user-id
297
+ in: path
298
+ description: 'key: user-id'
299
+ required: true
300
+ style: simple
301
+ schema:
302
+ type: string
303
+ requestBody:
304
+ description: New property values
305
+ content:
306
+ application/json:
307
+ schema:
308
+ type: object
309
+ description: New property values
310
+ required: true
311
+ responses:
312
+ '204':
313
+ description: Success
314
+ headers: {}
315
+ content: {}
316
+ deprecated: false
317
+ delete:
318
+ tags:
319
+ - users.user
320
+ summary: users.user.DeleteUser
321
+ description: Delete entity from users
322
+ operationId: users.user.DeleteUser
323
+ parameters:
324
+ - name: user-id
325
+ in: path
326
+ description: 'key: user-id'
327
+ required: true
328
+ style: simple
329
+ schema:
330
+ type: string
331
+ - name: If-Match
332
+ in: header
333
+ description: ETag
334
+ style: simple
335
+ schema:
336
+ type: string
337
+ responses:
338
+ '204':
339
+ description: Success
340
+ headers: {}
341
+ content: {}
342
+ deprecated: false
343
+ tags:
344
+ - name: groups.groupSetting
345
+ - name: users.userSettings
346
+ - name: groups.group
347
+ description: ''
348
+ - name: users.user
349
+ description: ''
@@ -0,0 +1,10 @@
1
+ {
2
+ "version": "0.1.1",
3
+ "configLines": 3280,
4
+ "scriptLines": 1783,
5
+ "codeLines": 3012,
6
+ "testLines": 3783,
7
+ "testCases": 177,
8
+ "totalCodeLines": 8578,
9
+ "wfTasks": 35
10
+ }
@@ -0,0 +1,120 @@
1
+ {
2
+ "errors": [],
3
+ "statistics": [
4
+ {
5
+ "owner": "errorJson",
6
+ "description": "New adapter errors available for use",
7
+ "value": 1
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": 30
18
+ },
19
+ {
20
+ "owner": "packageJson",
21
+ "description": "Number of production dependencies",
22
+ "value": 17
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": 22
33
+ },
34
+ {
35
+ "owner": "packageJson",
36
+ "description": "Runtime Library dependency",
37
+ "value": "^5.1.0"
38
+ },
39
+ {
40
+ "owner": "propertiesSchemaJson",
41
+ "description": "Adapter properties defined in the propertiesSchema file",
42
+ "value": 76
43
+ },
44
+ {
45
+ "owner": "markdown",
46
+ "description": "Number of lines in the README.md",
47
+ "value": 343
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": 642
58
+ },
59
+ {
60
+ "owner": "markdown",
61
+ "description": "Number of lines in the TROUBLESHOOT.md",
62
+ "value": 48
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": 1793
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": 732
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": 1350
98
+ },
99
+ {
100
+ "owner": "staticFile",
101
+ "description": "Number of static files added",
102
+ "value": 36
103
+ },
104
+ {
105
+ "owner": "Overall",
106
+ "description": "Total lines of Code",
107
+ "value": 3875
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
+ }
@@ -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": 17
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": 22
33
+ },
34
+ {
35
+ "owner": "packageJson",
36
+ "description": "Runtime Library dependency",
37
+ "value": "^5.1.0"
38
+ },
39
+ {
40
+ "owner": "propertiesSchemaJson",
41
+ "description": "Adapter properties defined in the propertiesSchema file",
42
+ "value": 76
43
+ },
44
+ {
45
+ "owner": "markdown",
46
+ "description": "Number of lines in the README.md",
47
+ "value": 343
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": 642
58
+ },
59
+ {
60
+ "owner": "markdown",
61
+ "description": "Number of lines in the TROUBLESHOOT.md",
62
+ "value": 48
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": 1793
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": 732
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": 1350
98
+ },
99
+ {
100
+ "owner": "staticFile",
101
+ "description": "Number of static files added",
102
+ "value": 36
103
+ },
104
+ {
105
+ "owner": "Overall",
106
+ "description": "Total lines of Code",
107
+ "value": 3875
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
+ }
@@ -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": 17
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": 22
33
+ },
34
+ {
35
+ "owner": "packageJson",
36
+ "description": "Runtime Library dependency",
37
+ "value": "^5.1.7"
38
+ },
39
+ {
40
+ "owner": "propertiesSchemaJson",
41
+ "description": "Adapter properties defined in the propertiesSchema file",
42
+ "value": 76
43
+ },
44
+ {
45
+ "owner": "markdown",
46
+ "description": "Number of lines in the README.md",
47
+ "value": 347
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": 642
58
+ },
59
+ {
60
+ "owner": "markdown",
61
+ "description": "Number of lines in the TROUBLESHOOT.md",
62
+ "value": 48
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": 1799
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": 732
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": 1453
98
+ },
99
+ {
100
+ "owner": "staticFile",
101
+ "description": "Number of static files added",
102
+ "value": 36
103
+ },
104
+ {
105
+ "owner": "Overall",
106
+ "description": "Total lines of Code",
107
+ "value": 3984
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
+ }