@itentialopensource/adapter-thingspace 0.1.1

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 (91) hide show
  1. package/.eslintignore +6 -0
  2. package/.eslintrc.js +18 -0
  3. package/.gitlab/.gitkeep +0 -0
  4. package/.gitlab/issue_templates/.gitkeep +0 -0
  5. package/.gitlab/issue_templates/Default.md +17 -0
  6. package/.gitlab/issue_templates/bugReportTemplate.md +76 -0
  7. package/.gitlab/issue_templates/featureRequestTemplate.md +14 -0
  8. package/.jshintrc +0 -0
  9. package/AUTH.md +39 -0
  10. package/BROKER.md +199 -0
  11. package/CALLS.md +422 -0
  12. package/CHANGELOG.md +9 -0
  13. package/CODE_OF_CONDUCT.md +43 -0
  14. package/CONTRIBUTING.md +172 -0
  15. package/ENHANCE.md +69 -0
  16. package/LICENSE +201 -0
  17. package/PROPERTIES.md +641 -0
  18. package/README.md +337 -0
  19. package/SUMMARY.md +9 -0
  20. package/SYSTEMINFO.md +11 -0
  21. package/TROUBLESHOOT.md +47 -0
  22. package/adapter.js +5026 -0
  23. package/adapterBase.js +1787 -0
  24. package/entities/.generic/action.json +214 -0
  25. package/entities/.generic/schema.json +28 -0
  26. package/entities/.system/action.json +69 -0
  27. package/entities/.system/mockdatafiles/getToken-default.json +3 -0
  28. package/entities/.system/mockdatafiles/healthcheck-default.json +3 -0
  29. package/entities/.system/schema.json +19 -0
  30. package/entities/.system/schemaTokenReq_MFA_Step_1.json +19 -0
  31. package/entities/.system/schemaTokenReq_MFA_Step_2.json +32 -0
  32. package/entities/.system/schemaTokenResp_MFA_Step_1.json +27 -0
  33. package/entities/.system/schemaTokenResp_MFA_Step_2.json +27 -0
  34. package/entities/Accounts/action.json +67 -0
  35. package/entities/Accounts/schema.json +21 -0
  36. package/entities/Callbacks/action.json +65 -0
  37. package/entities/Callbacks/mockdatafiles/listCallbacksUsingGET-default.json +23 -0
  38. package/entities/Callbacks/schema.json +21 -0
  39. package/entities/Devices/action.json +464 -0
  40. package/entities/Devices/mockdatafiles/addUsingPOST-default.json +23 -0
  41. package/entities/Devices/mockdatafiles/connectionListHistoryUsingPOST-default.json +868 -0
  42. package/entities/Devices/mockdatafiles/deleteUsingPOST-default.json +32 -0
  43. package/entities/Devices/mockdatafiles/provisioningHistoryListUsingPOST-default.json +427 -0
  44. package/entities/Devices/mockdatafiles/usageListUsingPOST-default.json +369 -0
  45. package/entities/Devices/schema.json +41 -0
  46. package/entities/Groups/action.json +106 -0
  47. package/entities/Groups/mockdatafiles/getListUsingGET-default.json +68 -0
  48. package/entities/Groups/schema.json +23 -0
  49. package/entities/Plans/action.json +25 -0
  50. package/entities/Plans/mockdatafiles/getServicePlanListUsingGET-default.json +98 -0
  51. package/entities/Plans/schema.json +19 -0
  52. package/entities/Requests/action.json +25 -0
  53. package/entities/Requests/schema.json +19 -0
  54. package/entities/Session/action.json +64 -0
  55. package/entities/Session/schema.json +21 -0
  56. package/entities/Sms/action.json +65 -0
  57. package/entities/Sms/schema.json +21 -0
  58. package/error.json +190 -0
  59. package/package.json +85 -0
  60. package/pronghorn.json +3761 -0
  61. package/propertiesDecorators.json +14 -0
  62. package/propertiesSchema.json +1249 -0
  63. package/refs?service=git-upload-pack +0 -0
  64. package/report/adapterInfo.json +10 -0
  65. package/report/creationReport.json +485 -0
  66. package/report/m2m-all.json +4020 -0
  67. package/sampleProperties.json +195 -0
  68. package/test/integration/adapterTestBasicGet.js +83 -0
  69. package/test/integration/adapterTestConnectivity.js +93 -0
  70. package/test/integration/adapterTestIntegration.js +1957 -0
  71. package/test/unit/adapterBaseTestUnit.js +950 -0
  72. package/test/unit/adapterTestUnit.js +2631 -0
  73. package/utils/adapterInfo.js +206 -0
  74. package/utils/addAuth.js +94 -0
  75. package/utils/artifactize.js +146 -0
  76. package/utils/basicGet.js +50 -0
  77. package/utils/checkMigrate.js +63 -0
  78. package/utils/entitiesToDB.js +178 -0
  79. package/utils/findPath.js +74 -0
  80. package/utils/methodDocumentor.js +225 -0
  81. package/utils/modify.js +154 -0
  82. package/utils/packModificationScript.js +35 -0
  83. package/utils/patches2bundledDeps.js +90 -0
  84. package/utils/pre-commit.sh +32 -0
  85. package/utils/removeHooks.js +20 -0
  86. package/utils/setup.js +33 -0
  87. package/utils/tbScript.js +246 -0
  88. package/utils/tbUtils.js +490 -0
  89. package/utils/testRunner.js +298 -0
  90. package/utils/troubleshootingAdapter.js +195 -0
  91. package/workflows/README.md +3 -0
@@ -0,0 +1,464 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "activeUsingPOST",
5
+ "protocol": "REST",
6
+ "method": "POST",
7
+ "entitypath": "{base_path}/{version}/devices/actions/activate?{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": "addUsingPOST",
25
+ "protocol": "REST",
26
+ "method": "POST",
27
+ "entitypath": "{base_path}/{version}/devices/actions/add?{query}",
28
+ "requestSchema": "schema.json",
29
+ "responseSchema": "schema.json",
30
+ "timeout": 0,
31
+ "sendEmpty": false,
32
+ "requestDatatype": "JSON",
33
+ "responseDatatype": "JSON",
34
+ "headers": {},
35
+ "responseObjects": [
36
+ {
37
+ "type": "default",
38
+ "key": "",
39
+ "mockFile": "mockdatafiles/addUsingPOST-default.json"
40
+ }
41
+ ]
42
+ },
43
+ {
44
+ "name": "updateContactInfoUsingPUT",
45
+ "protocol": "REST",
46
+ "method": "PUT",
47
+ "entitypath": "{base_path}/{version}/devices/actions/contactinfo?{query}",
48
+ "requestSchema": "schema.json",
49
+ "responseSchema": "schema.json",
50
+ "timeout": 0,
51
+ "sendEmpty": false,
52
+ "requestDatatype": "JSON",
53
+ "responseDatatype": "JSON",
54
+ "headers": {},
55
+ "responseObjects": [
56
+ {
57
+ "type": "default",
58
+ "key": "",
59
+ "mockFile": ""
60
+ }
61
+ ]
62
+ },
63
+ {
64
+ "name": "updateCustomFieldsUsingPUT",
65
+ "protocol": "REST",
66
+ "method": "PUT",
67
+ "entitypath": "{base_path}/{version}/devices/actions/customFields?{query}",
68
+ "requestSchema": "schema.json",
69
+ "responseSchema": "schema.json",
70
+ "timeout": 0,
71
+ "sendEmpty": false,
72
+ "requestDatatype": "JSON",
73
+ "responseDatatype": "JSON",
74
+ "headers": {},
75
+ "responseObjects": [
76
+ {
77
+ "type": "default",
78
+ "key": "",
79
+ "mockFile": ""
80
+ }
81
+ ]
82
+ },
83
+ {
84
+ "name": "deactiveUsingPOST",
85
+ "protocol": "REST",
86
+ "method": "POST",
87
+ "entitypath": "{base_path}/{version}/devices/actions/deactivate?{query}",
88
+ "requestSchema": "schema.json",
89
+ "responseSchema": "schema.json",
90
+ "timeout": 0,
91
+ "sendEmpty": false,
92
+ "requestDatatype": "JSON",
93
+ "responseDatatype": "JSON",
94
+ "headers": {},
95
+ "responseObjects": [
96
+ {
97
+ "type": "default",
98
+ "key": "",
99
+ "mockFile": ""
100
+ }
101
+ ]
102
+ },
103
+ {
104
+ "name": "deleteUsingPOST",
105
+ "protocol": "REST",
106
+ "method": "POST",
107
+ "entitypath": "{base_path}/{version}/devices/actions/delete?{query}",
108
+ "requestSchema": "schema.json",
109
+ "responseSchema": "schema.json",
110
+ "timeout": 0,
111
+ "sendEmpty": false,
112
+ "requestDatatype": "JSON",
113
+ "responseDatatype": "JSON",
114
+ "headers": {},
115
+ "responseObjects": [
116
+ {
117
+ "type": "default",
118
+ "key": "",
119
+ "mockFile": "mockdatafiles/deleteUsingPOST-default.json"
120
+ }
121
+ ]
122
+ },
123
+ {
124
+ "name": "listUsingPOST",
125
+ "protocol": "REST",
126
+ "method": "POST",
127
+ "entitypath": "{base_path}/{version}/devices/actions/list?{query}",
128
+ "requestSchema": "schema.json",
129
+ "responseSchema": "schema.json",
130
+ "timeout": 0,
131
+ "sendEmpty": false,
132
+ "requestDatatype": "JSON",
133
+ "responseDatatype": "JSON",
134
+ "headers": {},
135
+ "responseObjects": [
136
+ {
137
+ "type": "default",
138
+ "key": "",
139
+ "mockFile": ""
140
+ }
141
+ ]
142
+ },
143
+ {
144
+ "name": "imeiIccidMismatchListUsingPOST",
145
+ "protocol": "REST",
146
+ "method": "POST",
147
+ "entitypath": "{base_path}/{version}/devices/actions/list/imeiiccidmismatch?{query}",
148
+ "requestSchema": "schema.json",
149
+ "responseSchema": "schema.json",
150
+ "timeout": 0,
151
+ "sendEmpty": false,
152
+ "requestDatatype": "JSON",
153
+ "responseDatatype": "JSON",
154
+ "headers": {},
155
+ "responseObjects": [
156
+ {
157
+ "type": "default",
158
+ "key": "",
159
+ "mockFile": ""
160
+ }
161
+ ]
162
+ },
163
+ {
164
+ "name": "moveUsingPut",
165
+ "protocol": "REST",
166
+ "method": "PUT",
167
+ "entitypath": "{base_path}/{version}/devices/actions/move?{query}",
168
+ "requestSchema": "schema.json",
169
+ "responseSchema": "schema.json",
170
+ "timeout": 0,
171
+ "sendEmpty": false,
172
+ "requestDatatype": "JSON",
173
+ "responseDatatype": "JSON",
174
+ "headers": {},
175
+ "responseObjects": [
176
+ {
177
+ "type": "default",
178
+ "key": "",
179
+ "mockFile": ""
180
+ }
181
+ ]
182
+ },
183
+ {
184
+ "name": "gotostateUsingPut",
185
+ "protocol": "REST",
186
+ "method": "PUT",
187
+ "entitypath": "{base_path}/{version}/devices/actions/gotostate?{query}",
188
+ "requestSchema": "schema.json",
189
+ "responseSchema": "schema.json",
190
+ "timeout": 0,
191
+ "sendEmpty": false,
192
+ "requestDatatype": "JSON",
193
+ "responseDatatype": "JSON",
194
+ "headers": {},
195
+ "responseObjects": [
196
+ {
197
+ "type": "default",
198
+ "key": "",
199
+ "mockFile": ""
200
+ }
201
+ ]
202
+ },
203
+ {
204
+ "name": "updateServicePlanUsingPUT",
205
+ "protocol": "REST",
206
+ "method": "PUT",
207
+ "entitypath": "{base_path}/{version}/devices/actions/plan?{query}",
208
+ "requestSchema": "schema.json",
209
+ "responseSchema": "schema.json",
210
+ "timeout": 0,
211
+ "sendEmpty": false,
212
+ "requestDatatype": "JSON",
213
+ "responseDatatype": "JSON",
214
+ "headers": {},
215
+ "responseObjects": [
216
+ {
217
+ "type": "default",
218
+ "key": "",
219
+ "mockFile": ""
220
+ }
221
+ ]
222
+ },
223
+ {
224
+ "name": "suspendUsingPOST",
225
+ "protocol": "REST",
226
+ "method": "POST",
227
+ "entitypath": "{base_path}/{version}/devices/actions/suspend?{query}",
228
+ "requestSchema": "schema.json",
229
+ "responseSchema": "schema.json",
230
+ "timeout": 0,
231
+ "sendEmpty": false,
232
+ "requestDatatype": "JSON",
233
+ "responseDatatype": "JSON",
234
+ "headers": {},
235
+ "responseObjects": [
236
+ {
237
+ "type": "default",
238
+ "key": "",
239
+ "mockFile": ""
240
+ }
241
+ ]
242
+ },
243
+ {
244
+ "name": "restoreUsingPOST",
245
+ "protocol": "REST",
246
+ "method": "POST",
247
+ "entitypath": "{base_path}/{version}/devices/actions/restore?{query}",
248
+ "requestSchema": "schema.json",
249
+ "responseSchema": "schema.json",
250
+ "timeout": 0,
251
+ "sendEmpty": false,
252
+ "requestDatatype": "JSON",
253
+ "responseDatatype": "JSON",
254
+ "headers": {},
255
+ "responseObjects": [
256
+ {
257
+ "type": "default",
258
+ "key": "",
259
+ "mockFile": ""
260
+ }
261
+ ]
262
+ },
263
+ {
264
+ "name": "deviceAvailabilityListUsingPOST",
265
+ "protocol": "REST",
266
+ "method": "POST",
267
+ "entitypath": "{base_path}/{version}/devices/availability/actions/list?{query}",
268
+ "requestSchema": "schema.json",
269
+ "responseSchema": "schema.json",
270
+ "timeout": 0,
271
+ "sendEmpty": false,
272
+ "requestDatatype": "JSON",
273
+ "responseDatatype": "JSON",
274
+ "headers": {},
275
+ "responseObjects": [
276
+ {
277
+ "type": "default",
278
+ "key": "",
279
+ "mockFile": ""
280
+ }
281
+ ]
282
+ },
283
+ {
284
+ "name": "connectionListHistoryUsingPOST",
285
+ "protocol": "REST",
286
+ "method": "POST",
287
+ "entitypath": "{base_path}/{version}/devices/connections/actions/listHistory?{query}",
288
+ "requestSchema": "schema.json",
289
+ "responseSchema": "schema.json",
290
+ "timeout": 0,
291
+ "sendEmpty": false,
292
+ "requestDatatype": "JSON",
293
+ "responseDatatype": "JSON",
294
+ "headers": {},
295
+ "responseObjects": [
296
+ {
297
+ "type": "default",
298
+ "key": "",
299
+ "mockFile": "mockdatafiles/connectionListHistoryUsingPOST-default.json"
300
+ }
301
+ ]
302
+ },
303
+ {
304
+ "name": "changeCostCenterUsingPUT",
305
+ "protocol": "REST",
306
+ "method": "PUT",
307
+ "entitypath": "{base_path}/{version}/devices/costCenter?{query}",
308
+ "requestSchema": "schema.json",
309
+ "responseSchema": "schema.json",
310
+ "timeout": 0,
311
+ "sendEmpty": false,
312
+ "requestDatatype": "JSON",
313
+ "responseDatatype": "JSON",
314
+ "headers": {},
315
+ "responseObjects": [
316
+ {
317
+ "type": "default",
318
+ "key": "",
319
+ "mockFile": ""
320
+ }
321
+ ]
322
+ },
323
+ {
324
+ "name": "getExtendedDiagsUsingPOST",
325
+ "protocol": "REST",
326
+ "method": "POST",
327
+ "entitypath": "{base_path}/{version}/devices/extendeddiagnostics/actions/list?{query}",
328
+ "requestSchema": "schema.json",
329
+ "responseSchema": "schema.json",
330
+ "timeout": 0,
331
+ "sendEmpty": false,
332
+ "requestDatatype": "JSON",
333
+ "responseDatatype": "JSON",
334
+ "headers": {},
335
+ "responseObjects": [
336
+ {
337
+ "type": "default",
338
+ "key": "",
339
+ "mockFile": ""
340
+ }
341
+ ]
342
+ },
343
+ {
344
+ "name": "provisioningHistoryListUsingPOST",
345
+ "protocol": "REST",
346
+ "method": "POST",
347
+ "entitypath": "{base_path}/{version}/devices/history/actions/list?{query}",
348
+ "requestSchema": "schema.json",
349
+ "responseSchema": "schema.json",
350
+ "timeout": 0,
351
+ "sendEmpty": false,
352
+ "requestDatatype": "JSON",
353
+ "responseDatatype": "JSON",
354
+ "headers": {},
355
+ "responseObjects": [
356
+ {
357
+ "type": "default",
358
+ "key": "",
359
+ "mockFile": "mockdatafiles/provisioningHistoryListUsingPOST-default.json"
360
+ }
361
+ ]
362
+ },
363
+ {
364
+ "name": "prlListUsingPOST",
365
+ "protocol": "REST",
366
+ "method": "POST",
367
+ "entitypath": "{base_path}/{version}/devices/prl/actions/list?{query}",
368
+ "requestSchema": "schema.json",
369
+ "responseSchema": "schema.json",
370
+ "timeout": 0,
371
+ "sendEmpty": false,
372
+ "requestDatatype": "JSON",
373
+ "responseDatatype": "JSON",
374
+ "headers": {},
375
+ "responseObjects": [
376
+ {
377
+ "type": "default",
378
+ "key": "",
379
+ "mockFile": ""
380
+ }
381
+ ]
382
+ },
383
+ {
384
+ "name": "getDeviceSuspensionStatusUsingPOST",
385
+ "protocol": "REST",
386
+ "method": "POST",
387
+ "entitypath": "{base_path}/{version}/devices/suspension/status?{query}",
388
+ "requestSchema": "schema.json",
389
+ "responseSchema": "schema.json",
390
+ "timeout": 0,
391
+ "sendEmpty": false,
392
+ "requestDatatype": "JSON",
393
+ "responseDatatype": "JSON",
394
+ "headers": {},
395
+ "responseObjects": [
396
+ {
397
+ "type": "default",
398
+ "key": "",
399
+ "mockFile": ""
400
+ }
401
+ ]
402
+ },
403
+ {
404
+ "name": "usageListUsingPOST",
405
+ "protocol": "REST",
406
+ "method": "POST",
407
+ "entitypath": "{base_path}/{version}/devices/usage/actions/list?{query}",
408
+ "requestSchema": "schema.json",
409
+ "responseSchema": "schema.json",
410
+ "timeout": 0,
411
+ "sendEmpty": false,
412
+ "requestDatatype": "JSON",
413
+ "responseDatatype": "JSON",
414
+ "headers": {},
415
+ "responseObjects": [
416
+ {
417
+ "type": "default",
418
+ "key": "",
419
+ "mockFile": "mockdatafiles/usageListUsingPOST-default.json"
420
+ }
421
+ ]
422
+ },
423
+ {
424
+ "name": "aggregateUsingPOST",
425
+ "protocol": "REST",
426
+ "method": "POST",
427
+ "entitypath": "{base_path}/{version}/devices/usage/actions/list/aggregate?{query}",
428
+ "requestSchema": "schema.json",
429
+ "responseSchema": "schema.json",
430
+ "timeout": 0,
431
+ "sendEmpty": false,
432
+ "requestDatatype": "JSON",
433
+ "responseDatatype": "JSON",
434
+ "headers": {},
435
+ "responseObjects": [
436
+ {
437
+ "type": "default",
438
+ "key": "",
439
+ "mockFile": ""
440
+ }
441
+ ]
442
+ },
443
+ {
444
+ "name": "changeDeviceIdUsingPUT",
445
+ "protocol": "REST",
446
+ "method": "PUT",
447
+ "entitypath": "{base_path}/{version}/devices/{pathv1}/actions/deviceId?{query}",
448
+ "requestSchema": "schema.json",
449
+ "responseSchema": "schema.json",
450
+ "timeout": 0,
451
+ "sendEmpty": false,
452
+ "requestDatatype": "JSON",
453
+ "responseDatatype": "JSON",
454
+ "headers": {},
455
+ "responseObjects": [
456
+ {
457
+ "type": "default",
458
+ "key": "",
459
+ "mockFile": ""
460
+ }
461
+ ]
462
+ }
463
+ ]
464
+ }
@@ -0,0 +1,23 @@
1
+ [
2
+ {
3
+ "deviceIds": [
4
+ {
5
+ "id": "string",
6
+ "kind": "string"
7
+ },
8
+ {
9
+ "id": "string",
10
+ "kind": "string"
11
+ },
12
+ {
13
+ "id": "string",
14
+ "kind": "string"
15
+ },
16
+ {
17
+ "id": "string",
18
+ "kind": "string"
19
+ }
20
+ ],
21
+ "response": "string"
22
+ }
23
+ ]