@itentialopensource/adapter-sevone 2.3.1 → 2.5.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 (59) hide show
  1. package/AUTH.md +39 -0
  2. package/BROKER.md +199 -0
  3. package/CALLS.md +1808 -0
  4. package/CHANGELOG.md +53 -91
  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 +237 -578
  10. package/SUMMARY.md +9 -0
  11. package/SYSTEMINFO.md +11 -0
  12. package/TROUBLESHOOT.md +47 -0
  13. package/adapter.js +377 -596
  14. package/adapterBase.js +854 -408
  15. package/changelogs/CHANGELOG.md +118 -0
  16. package/entities/.generic/action.json +110 -5
  17. package/entities/.generic/schema.json +6 -1
  18. package/entities/device/mockdatafiles/getdeviceerror.json +1 -58
  19. package/error.json +6 -0
  20. package/metadata.json +49 -0
  21. package/package.json +28 -22
  22. package/pronghorn.json +673 -70
  23. package/propertiesDecorators.json +14 -0
  24. package/propertiesSchema.json +827 -6
  25. package/refs?service=git-upload-pack +0 -0
  26. package/report/adapter-openapi.json +26172 -0
  27. package/report/adapter-openapi.yaml +11817 -0
  28. package/report/adapterInfo.json +10 -0
  29. package/report/updateReport1653680202971.json +120 -0
  30. package/report/updateReport1691508994383.json +120 -0
  31. package/report/updateReport1692202309339.json +120 -0
  32. package/report/updateReport1692203396464.json +120 -0
  33. package/report/updateReport1694470055393.json +120 -0
  34. package/report/updateReport1698423190930.json +120 -0
  35. package/sampleProperties.json +153 -3
  36. package/test/integration/adapterTestBasicGet.js +3 -5
  37. package/test/integration/adapterTestConnectivity.js +91 -42
  38. package/test/integration/adapterTestIntegration.js +157 -105
  39. package/test/unit/adapterBaseTestUnit.js +388 -308
  40. package/test/unit/adapterTestUnit.js +548 -310
  41. package/utils/adapterInfo.js +206 -0
  42. package/utils/addAuth.js +94 -0
  43. package/utils/artifactize.js +1 -1
  44. package/utils/basicGet.js +1 -14
  45. package/utils/checkMigrate.js +1 -1
  46. package/utils/entitiesToDB.js +179 -0
  47. package/utils/findPath.js +1 -1
  48. package/utils/methodDocumentor.js +273 -0
  49. package/utils/modify.js +14 -16
  50. package/utils/packModificationScript.js +1 -1
  51. package/utils/patches2bundledDeps.js +90 -0
  52. package/utils/pre-commit.sh +5 -0
  53. package/utils/removeHooks.js +20 -0
  54. package/utils/taskMover.js +309 -0
  55. package/utils/tbScript.js +129 -53
  56. package/utils/tbUtils.js +152 -35
  57. package/utils/testRunner.js +17 -17
  58. package/utils/troubleshootingAdapter.js +10 -31
  59. package/workflows/README.md +0 -3
package/pronghorn.json CHANGED
@@ -8,8 +8,8 @@
8
8
  "admin"
9
9
  ],
10
10
  "methods": [
11
- {
12
- "name": "updateAdapterConfiguration",
11
+ {
12
+ "name": "iapUpdateAdapterConfiguration",
13
13
  "summary": "Updates the adapter configuration",
14
14
  "description": "Updates the adapter configuration file with the provided changes",
15
15
  "input": [
@@ -62,6 +62,16 @@
62
62
  "title": "action",
63
63
  "type": "string"
64
64
  }
65
+ },
66
+ {
67
+ "name": "replace",
68
+ "type": "boolean",
69
+ "info": "True to replace entire mock data, false to merge/append",
70
+ "required": false,
71
+ "schema": {
72
+ "title": "replace",
73
+ "type": "boolean"
74
+ }
65
75
  }
66
76
  ],
67
77
  "output": {
@@ -78,12 +88,97 @@
78
88
  ],
79
89
  "route": {
80
90
  "verb": "POST",
81
- "path": "/updateAdapterConfiguration"
91
+ "path": "/iapUpdateAdapterConfiguration"
92
+ },
93
+ "task": true
94
+ },
95
+ {
96
+ "name": "iapSuspendAdapter",
97
+ "summary": "Suspends the adapter",
98
+ "description": "Suspends the adapter",
99
+ "input": [
100
+ {
101
+ "name": "mode",
102
+ "type": "enum",
103
+ "enumerals": [
104
+ "pause",
105
+ "error"
106
+ ],
107
+ "info": "How incoming requests are handled. Defaults to 'pause'",
108
+ "description": "How incoming requests are handled. Defaults to 'pause'",
109
+ "schema": {
110
+ "title": "mode",
111
+ "type": "string"
112
+ },
113
+ "required": false
114
+ }
115
+ ],
116
+ "output": {
117
+ "name": "result",
118
+ "type": "object",
119
+ "description": "A JSON Object containing the adapter suspended status",
120
+ "schema": {
121
+ "title": "result",
122
+ "type": "object"
123
+ }
124
+ },
125
+ "roles": [
126
+ "admin"
127
+ ],
128
+ "route": {
129
+ "verb": "POST",
130
+ "path": "/iapSuspendAdapter"
131
+ },
132
+ "task": true
133
+ },
134
+ {
135
+ "name": "iapUnsuspendAdapter",
136
+ "summary": "Unsuspends the adapter",
137
+ "description": "Unsuspends the adapter",
138
+ "input": [],
139
+ "output": {
140
+ "name": "result",
141
+ "type": "object",
142
+ "description": "A JSON Object containing the adapter suspended status",
143
+ "schema": {
144
+ "title": "result",
145
+ "type": "object"
146
+ }
147
+ },
148
+ "roles": [
149
+ "admin"
150
+ ],
151
+ "route": {
152
+ "verb": "POST",
153
+ "path": "/iapUnsuspendAdapter"
82
154
  },
83
155
  "task": true
84
156
  },
85
157
  {
86
- "name": "findPath",
158
+ "name": "iapGetAdapterQueue",
159
+ "summary": "Return the requests that are waiting in the queue if throttling is enabled",
160
+ "description": "Return the requests that are waiting in the queue if throttling is enabled",
161
+ "input": [],
162
+ "output": {
163
+ "name": "result",
164
+ "type": "object",
165
+ "description": "A JSON Object containing the adapter queue",
166
+ "schema": {
167
+ "title": "result",
168
+ "type": "object"
169
+ }
170
+ },
171
+ "roles": [
172
+ "admin"
173
+ ],
174
+ "route": {
175
+ "verb": "POST",
176
+ "path": "/iapGetAdapterQueue"
177
+ },
178
+ "task": true
179
+ },
180
+ {
181
+ "name": "iapFindAdapterPath",
87
182
  "summary": "Provides the ability to see if a particular API path is supported by the adapter",
88
183
  "description": "Provides the ability to see if a particular API path is supported by the adapter",
89
184
  "input": [
@@ -113,12 +208,12 @@
113
208
  ],
114
209
  "route": {
115
210
  "verb": "POST",
116
- "path": "/findPath"
211
+ "path": "/iapFindAdapterPath"
117
212
  },
118
213
  "task": true
119
214
  },
120
215
  {
121
- "name": "troubleshoot",
216
+ "name": "iapTroubleshootAdapter",
122
217
  "summary": "Runs troubleshoot script for adapter",
123
218
  "description": "Runs troubleshoot script for adapter",
124
219
  "input": [
@@ -136,7 +231,11 @@
136
231
  "name": "persistFlag",
137
232
  "type": "boolean",
138
233
  "info": "Whether the input properties should be saved",
139
- "required": true
234
+ "required": true,
235
+ "schema": {
236
+ "title": "persistFlag",
237
+ "type": "boolean"
238
+ }
140
239
  }
141
240
  ],
142
241
  "output": {
@@ -153,38 +252,378 @@
153
252
  ],
154
253
  "route": {
155
254
  "verb": "POST",
156
- "path": "/troubleshoot"
255
+ "path": "/iapTroubleshootAdapter"
157
256
  },
158
257
  "task": true
159
258
  },
160
259
  {
161
- "name": "runHealthcheck",
260
+ "name": "iapRunAdapterHealthcheck",
162
261
  "summary": "Runs healthcheck script for adapter",
163
262
  "description": "Runs healthcheck script for adapter",
164
263
  "input": [],
165
264
  "output": {
166
265
  "name": "result",
167
266
  "type": "boolean",
168
- "description": "Whether healthcheck passed or failed"
267
+ "description": "Whether healthcheck passed or failed",
268
+ "schema": {
269
+ "title": "result",
270
+ "type": "boolean"
271
+ }
272
+ },
273
+ "roles": [
274
+ "admin"
275
+ ],
276
+ "route": {
277
+ "verb": "POST",
278
+ "path": "/iapRunAdapterHealthcheck"
279
+ },
280
+ "task": true
281
+ },
282
+ {
283
+ "name": "iapRunAdapterConnectivity",
284
+ "summary": "Runs connectivity check script for adapter",
285
+ "description": "Runs connectivity check script for adapter",
286
+ "input": [],
287
+ "output": {
288
+ "name": "result",
289
+ "type": "object",
290
+ "description": "A JSON Object containing the test results",
291
+ "schema": {
292
+ "title": "result",
293
+ "type": "object"
294
+ }
295
+ },
296
+ "roles": [
297
+ "admin"
298
+ ],
299
+ "route": {
300
+ "verb": "POST",
301
+ "path": "/iapRunAdapterConnectivity"
302
+ },
303
+ "task": true
304
+ },
305
+ {
306
+ "name": "iapRunAdapterBasicGet",
307
+ "summary": "Runs basicGet script for adapter",
308
+ "description": "Runs basicGet script for adapter",
309
+ "input": [],
310
+ "output": {
311
+ "name": "result",
312
+ "type": "object",
313
+ "description": "A JSON Object containing the test results",
314
+ "schema": {
315
+ "title": "result",
316
+ "type": "object"
317
+ }
318
+ },
319
+ "roles": [
320
+ "admin"
321
+ ],
322
+ "route": {
323
+ "verb": "POST",
324
+ "path": "/iapRunAdapterBasicGet"
325
+ },
326
+ "task": true
327
+ },
328
+ {
329
+ "name": "iapMoveAdapterEntitiesToDB",
330
+ "summary": "Moves entities from an adapter into the IAP database",
331
+ "description": "Moves entities from an adapter into the IAP database",
332
+ "input": [],
333
+ "output": {
334
+ "name": "res",
335
+ "type": "object",
336
+ "description": "A JSON Object containing status, code and the response from the mongo transaction",
337
+ "schema": {
338
+ "title": "res",
339
+ "type": "object"
340
+ }
341
+ },
342
+ "roles": [
343
+ "admin"
344
+ ],
345
+ "route": {
346
+ "verb": "POST",
347
+ "path": "/iapMoveAdapterEntitiesToDB"
348
+ },
349
+ "task": true
350
+ },
351
+ {
352
+ "name": "iapDeactivateTasks",
353
+ "summary": "Deactivate the inputted tasks",
354
+ "description": "Deactivate the inputted tasks",
355
+ "input": [
356
+ {
357
+ "name": "tasks",
358
+ "type": "array",
359
+ "description": "Tasks to deactivate",
360
+ "schema": {
361
+ "title": "tasks",
362
+ "type": "array"
363
+ }
364
+ }
365
+ ],
366
+ "output": {
367
+ "name": "result",
368
+ "type": "object",
369
+ "description": "A JSON Object containing success status",
370
+ "schema": {
371
+ "title": "result",
372
+ "type": "object"
373
+ }
374
+ },
375
+ "roles": [
376
+ "admin"
377
+ ],
378
+ "route": {
379
+ "verb": "POST",
380
+ "path": "/iapDeactivateTasks"
381
+ },
382
+ "task": true
383
+ },
384
+ {
385
+ "name": "iapActivateTasks",
386
+ "summary": "Activate the inputted tasks",
387
+ "description": "activate the inputted tasks",
388
+ "input": [
389
+ {
390
+ "name": "tasks",
391
+ "type": "array",
392
+ "description": "Tasks to activate",
393
+ "schema": {
394
+ "title": "tasks",
395
+ "type": "array"
396
+ }
397
+ }
398
+ ],
399
+ "output": {
400
+ "name": "result",
401
+ "type": "object",
402
+ "description": "A JSON Object containing success status",
403
+ "schema": {
404
+ "title": "result",
405
+ "type": "object"
406
+ }
407
+ },
408
+ "roles": [
409
+ "admin"
410
+ ],
411
+ "route": {
412
+ "verb": "POST",
413
+ "path": "/iapActivateTasks"
414
+ },
415
+ "task": true
416
+ },
417
+ {
418
+ "name": "iapPopulateEntityCache",
419
+ "summary": "Populate the cache for the given entities",
420
+ "description": "Populate the cache for the given entities",
421
+ "input": [
422
+ {
423
+ "name": "entityTypes",
424
+ "type": "array",
425
+ "info": "the entity type(s) to populate",
426
+ "required": true,
427
+ "schema": {
428
+ "title": "entityTypes",
429
+ "type": "array"
430
+ }
431
+ }
432
+ ],
433
+ "output": {
434
+ "name": "result",
435
+ "type": "object",
436
+ "description": "A JSON Object containing status, code and the result",
437
+ "schema": {
438
+ "title": "result",
439
+ "type": "object"
440
+ }
441
+ },
442
+ "roles": [
443
+ "admin"
444
+ ],
445
+ "route": {
446
+ "verb": "POST",
447
+ "path": "/iapPopulateEntityCache"
448
+ },
449
+ "task": true
450
+ },
451
+ {
452
+ "name": "iapRetrieveEntitiesCache",
453
+ "summary": "Retrieves data from cache for specified entity type",
454
+ "description": "Retrieves data from cache for specified entity type",
455
+ "input": [
456
+ {
457
+ "name": "entityType",
458
+ "type": "string",
459
+ "info": "entity of which to retrieve",
460
+ "required": true,
461
+ "schema": {
462
+ "title": "entityType",
463
+ "type": "string"
464
+ }
465
+ },
466
+ {
467
+ "name": "options",
468
+ "type": "object",
469
+ "info": "settings of which data to return and how to return it",
470
+ "required": false,
471
+ "schema": {
472
+ "title": "options",
473
+ "type": "object"
474
+ }
475
+ }
476
+ ],
477
+ "output": {
478
+ "name": "result",
479
+ "type": "object",
480
+ "description": "A JSON Object containing status, code and the result",
481
+ "schema": {
482
+ "title": "result",
483
+ "type": "object"
484
+ }
485
+ },
486
+ "roles": [
487
+ "admin"
488
+ ],
489
+ "route": {
490
+ "verb": "POST",
491
+ "path": "/iapRetrieveEntitiesCache"
492
+ },
493
+ "task": true
494
+ },
495
+ {
496
+ "name": "getDevice",
497
+ "summary": "Get the Appliance",
498
+ "description": "Get the Appliance",
499
+ "input": [
500
+ {
501
+ "name": "deviceName",
502
+ "type": "string",
503
+ "info": "An Appliance Device Name",
504
+ "required": true,
505
+ "schema": {
506
+ "title": "deviceName",
507
+ "type": "string"
508
+ }
509
+ }
510
+ ],
511
+ "output": {
512
+ "name": "result",
513
+ "type": "object",
514
+ "description": "A JSON Object containing status, code and the result",
515
+ "schema": {
516
+ "title": "result",
517
+ "type": "object"
518
+ }
519
+ },
520
+ "roles": [
521
+ "admin"
522
+ ],
523
+ "route": {
524
+ "verb": "POST",
525
+ "path": "/getDevice"
526
+ },
527
+ "task": false
528
+ },
529
+ {
530
+ "name": "getDevicesFiltered",
531
+ "summary": "Get Appliances that match the filter",
532
+ "description": "Get Appliances that match the filter",
533
+ "input": [
534
+ {
535
+ "name": "options",
536
+ "type": "object",
537
+ "info": "options - e.g. { 'start': 1, 'limit': 20, 'filter': { 'name': 'abc123' } }",
538
+ "required": true,
539
+ "schema": {
540
+ "title": "options",
541
+ "type": "object"
542
+ }
543
+ }
544
+ ],
545
+ "output": {
546
+ "name": "result",
547
+ "type": "array",
548
+ "description": "A JSON Object containing status, code and the result",
549
+ "schema": {
550
+ "title": "result",
551
+ "type": "array"
552
+ }
553
+ },
554
+ "roles": [
555
+ "admin"
556
+ ],
557
+ "route": {
558
+ "verb": "POST",
559
+ "path": "/getDevicesFiltered"
560
+ },
561
+ "task": false
562
+ },
563
+ {
564
+ "name": "isAlive",
565
+ "summary": "Checks the status for the provided Appliance",
566
+ "description": "Checks the status for the provided Appliance",
567
+ "input": [
568
+ {
569
+ "name": "deviceName",
570
+ "type": "string",
571
+ "info": "An Appliance Device Name",
572
+ "required": true,
573
+ "schema": {
574
+ "title": "deviceName",
575
+ "type": "string"
576
+ }
577
+ }
578
+ ],
579
+ "output": {
580
+ "name": "result",
581
+ "type": "boolean",
582
+ "description": "A JSON Object containing status, code and the result",
583
+ "schema": {
584
+ "title": "result",
585
+ "type": "boolean"
586
+ }
169
587
  },
170
588
  "roles": [
171
589
  "admin"
172
590
  ],
173
591
  "route": {
174
592
  "verb": "POST",
175
- "path": "/runHealthcheck"
593
+ "path": "/isAlive"
176
594
  },
177
- "task": true
595
+ "task": false
178
596
  },
179
597
  {
180
- "name": "runConnectivity",
181
- "summary": "Runs connectivity check script for adapter",
182
- "description": "Runs connectivity check script for adapter",
183
- "input": [],
598
+ "name": "getConfig",
599
+ "summary": "Gets a config for the provided Appliance",
600
+ "description": "Gets a config for the provided Appliance",
601
+ "input": [
602
+ {
603
+ "name": "deviceName",
604
+ "type": "string",
605
+ "info": "An Appliance Device Name",
606
+ "required": true,
607
+ "schema": {
608
+ "title": "deviceName",
609
+ "type": "string"
610
+ }
611
+ },
612
+ {
613
+ "name": "format",
614
+ "type": "string",
615
+ "info": "The format to be returned - this is ignored as we always return json",
616
+ "required": false,
617
+ "schema": {
618
+ "title": "format",
619
+ "type": "string"
620
+ }
621
+ }
622
+ ],
184
623
  "output": {
185
624
  "name": "result",
186
625
  "type": "object",
187
- "description": "A JSON Object containing the test results",
626
+ "description": "A JSON Object containing status, code and the result",
188
627
  "schema": {
189
628
  "title": "result",
190
629
  "type": "object"
@@ -195,19 +634,19 @@
195
634
  ],
196
635
  "route": {
197
636
  "verb": "POST",
198
- "path": "/runConnectivity"
637
+ "path": "/getConfig"
199
638
  },
200
- "task": true
639
+ "task": false
201
640
  },
202
641
  {
203
- "name": "runBasicGet",
204
- "summary": "Runs basicGet script for adapter",
205
- "description": "Runs basicGet script for adapter",
642
+ "name": "iapGetDeviceCount",
643
+ "summary": "Gets a device count from the system",
644
+ "description": "Gets a device count from the system",
206
645
  "input": [],
207
646
  "output": {
208
647
  "name": "result",
209
648
  "type": "object",
210
- "description": "A JSON Object containing the test results",
649
+ "description": "A JSON Object containing status, code and the result",
211
650
  "schema": {
212
651
  "title": "result",
213
652
  "type": "object"
@@ -218,35 +657,97 @@
218
657
  ],
219
658
  "route": {
220
659
  "verb": "POST",
221
- "path": "/runBasicGet"
660
+ "path": "/iapGetDeviceCount"
222
661
  },
223
- "task": true
662
+ "task": false
224
663
  },
225
664
  {
226
- "name": "suspend",
227
- "summary": "Suspends the adapter",
228
- "description": "Suspends the adapter",
665
+ "name": "iapExpandedGenericAdapterRequest",
666
+ "summary": "Makes the requested generic call with additional options",
667
+ "description": "Makes the requested generic call with additional options via metadata",
229
668
  "input": [
230
669
  {
231
- "name": "mode",
232
- "type": "enum",
233
- "enumerals": [
234
- "pause",
235
- "error"
236
- ],
237
- "info": "How incoming requests are handled. Defaults to 'pause'",
238
- "description": "How incoming requests are handled. Defaults to 'pause'",
670
+ "name": "metadata",
671
+ "type": "object",
672
+ "info": "metadata for the call (optional)",
673
+ "description": "metadata for the call - allows for many enhancements (optional)",
239
674
  "schema": {
240
- "title": "mode",
675
+ "title": "metadata",
676
+ "type": "object"
677
+ },
678
+ "required": false
679
+ },
680
+ {
681
+ "name": "uriPath",
682
+ "type": "string",
683
+ "info": "the path of the api call - do not include the host, port, base path or version",
684
+ "description": "the path of the api call",
685
+ "schema": {
686
+ "title": "uriPath",
687
+ "type": "string"
688
+ },
689
+ "required": false
690
+ },
691
+ {
692
+ "name": "restMethod",
693
+ "type": "string",
694
+ "info": "the rest method (GET, POST, PUT, PATCH, DELETE)",
695
+ "description": "the rest method (GET, POST, PUT, PATCH, DELETE)",
696
+ "schema": {
697
+ "title": "restMethod",
241
698
  "type": "string"
242
699
  },
243
700
  "required": false
701
+ },
702
+ {
703
+ "name": "pathVars",
704
+ "type": "object",
705
+ "info": "the parameters to be put within the url path (optional)",
706
+ "description": "the parameters to be put within the url path (optional)",
707
+ "schema": {
708
+ "title": "pathVars",
709
+ "type": "object"
710
+ },
711
+ "required": false
712
+ },
713
+ {
714
+ "name": "queryData",
715
+ "type": "object",
716
+ "info": "the query parameters to be put on the url (optional)",
717
+ "description": "the query parameters to be put on the url (optional)",
718
+ "schema": {
719
+ "title": "queryData",
720
+ "type": "object"
721
+ },
722
+ "required": false
723
+ },
724
+ {
725
+ "name": "requestBody",
726
+ "type": "object",
727
+ "info": "the payload to be sent with the request (optional)",
728
+ "description": "the payload to be sent with the request (optional)",
729
+ "schema": {
730
+ "title": "requestBody",
731
+ "type": "object"
732
+ },
733
+ "required": false
734
+ },
735
+ {
736
+ "name": "addlHeaders",
737
+ "type": "object",
738
+ "info": "additional headers to be put on the call (optional)",
739
+ "description": "additional headers to be put on the call (optional)",
740
+ "schema": {
741
+ "title": "addlHeaders",
742
+ "type": "object"
743
+ },
744
+ "required": false
244
745
  }
245
746
  ],
246
747
  "output": {
247
748
  "name": "result",
248
749
  "type": "object",
249
- "description": "A JSON Object containing the adapter suspended status",
750
+ "description": "A JSON Object containing status, code and the result",
250
751
  "schema": {
251
752
  "title": "result",
252
753
  "type": "object"
@@ -257,42 +758,75 @@
257
758
  ],
258
759
  "route": {
259
760
  "verb": "POST",
260
- "path": "/suspend"
761
+ "path": "/iapExpandedGenericAdapterRequest"
261
762
  },
262
763
  "task": true
263
764
  },
264
765
  {
265
- "name": "unsuspend",
266
- "summary": "Unsuspends the adapter",
267
- "description": "Unsuspends the adapter",
268
- "input": [],
269
- "output": {
270
- "name": "result",
271
- "type": "object",
272
- "description": "A JSON Object containing the adapter suspended status",
273
- "schema": {
274
- "title": "result",
275
- "type": "object"
766
+ "name": "genericAdapterRequest",
767
+ "summary": "Makes the requested generic call",
768
+ "description": "Makes the requested generic call",
769
+ "input": [
770
+ {
771
+ "name": "uriPath",
772
+ "type": "string",
773
+ "info": "the path of the api call - do not include the host, port, base path or version",
774
+ "description": "the path of the api call",
775
+ "schema": {
776
+ "title": "uriPath",
777
+ "type": "string"
778
+ },
779
+ "required": true
780
+ },
781
+ {
782
+ "name": "restMethod",
783
+ "type": "string",
784
+ "info": "the rest method (GET, POST, PUT, PATCH, DELETE)",
785
+ "description": "the rest method (GET, POST, PUT, PATCH, DELETE)",
786
+ "schema": {
787
+ "title": "restMethod",
788
+ "type": "string"
789
+ },
790
+ "required": true
791
+ },
792
+ {
793
+ "name": "queryData",
794
+ "type": "object",
795
+ "info": "the query parameters to be put on the url (optional)",
796
+ "description": "the query parameters to be put on the url (optional)",
797
+ "schema": {
798
+ "title": "queryData",
799
+ "type": "object"
800
+ },
801
+ "required": false
802
+ },
803
+ {
804
+ "name": "requestBody",
805
+ "type": "object",
806
+ "info": "the payload to be sent with the request (optional)",
807
+ "description": "the payload to be sent with the request (optional)",
808
+ "schema": {
809
+ "title": "requestBody",
810
+ "type": "object"
811
+ },
812
+ "required": false
813
+ },
814
+ {
815
+ "name": "addlHeaders",
816
+ "type": "object",
817
+ "info": "additional headers to be put on the call (optional)",
818
+ "description": "additional headers to be put on the call (optional)",
819
+ "schema": {
820
+ "title": "addlHeaders",
821
+ "type": "object"
822
+ },
823
+ "required": false
276
824
  }
277
- },
278
- "roles": [
279
- "admin"
280
825
  ],
281
- "route": {
282
- "verb": "POST",
283
- "path": "/unsuspend"
284
- },
285
- "task": true
286
- },
287
- {
288
- "name": "getQueue",
289
- "summary": "Return the requests that are waiting in the queue if throttling is enabled",
290
- "description": "Return the requests that are waiting in the queue if throttling is enabled",
291
- "input": [],
292
826
  "output": {
293
827
  "name": "result",
294
828
  "type": "object",
295
- "description": "A JSON Object containing the adapter queue",
829
+ "description": "A JSON Object containing status, code and the result",
296
830
  "schema": {
297
831
  "title": "result",
298
832
  "type": "object"
@@ -303,12 +837,12 @@
303
837
  ],
304
838
  "route": {
305
839
  "verb": "POST",
306
- "path": "/getQueue"
840
+ "path": "/genericAdapterRequest"
307
841
  },
308
842
  "task": true
309
843
  },
310
844
  {
311
- "name": "genericAdapterRequest",
845
+ "name": "genericAdapterRequestNoBasePath",
312
846
  "summary": "Makes the requested generic call",
313
847
  "description": "Makes the requested generic call",
314
848
  "input": [
@@ -382,7 +916,76 @@
382
916
  ],
383
917
  "route": {
384
918
  "verb": "POST",
385
- "path": "/genericAdapterRequest"
919
+ "path": "/genericAdapterRequestNoBasePath"
920
+ },
921
+ "task": true
922
+ },
923
+ {
924
+ "name": "iapRunAdapterLint",
925
+ "summary": "Run the adapter lint script to return the results",
926
+ "description": "Run the adapter lint script to return the results",
927
+ "input": [],
928
+ "output": {
929
+ "name": "result",
930
+ "type": "string",
931
+ "description": "A string containing the run results",
932
+ "schema": {
933
+ "title": "result",
934
+ "type": "string"
935
+ }
936
+ },
937
+ "roles": [
938
+ "admin"
939
+ ],
940
+ "route": {
941
+ "verb": "GET",
942
+ "path": "/iapRunAdapterLint"
943
+ },
944
+ "task": true
945
+ },
946
+ {
947
+ "name": "iapRunAdapterTests",
948
+ "summary": "Run the adapter test scripts (baseunit and unit) to return the results",
949
+ "description": "Run the adapter test scripts (baseunit and unit) to return the results",
950
+ "input": [],
951
+ "output": {
952
+ "name": "result",
953
+ "type": "object",
954
+ "description": "A JSON Object containing status, code and the result",
955
+ "schema": {
956
+ "title": "result",
957
+ "type": "object"
958
+ }
959
+ },
960
+ "roles": [
961
+ "admin"
962
+ ],
963
+ "route": {
964
+ "verb": "GET",
965
+ "path": "/iapRunAdapterTests"
966
+ },
967
+ "task": true
968
+ },
969
+ {
970
+ "name": "iapGetAdapterInventory",
971
+ "summary": "Provide inventory information abbout the adapter",
972
+ "description": "Provide inventory information abbout the adapter",
973
+ "input": [],
974
+ "output": {
975
+ "name": "result",
976
+ "type": "object",
977
+ "description": "A JSON Object containing status, code and the result",
978
+ "schema": {
979
+ "title": "result",
980
+ "type": "object"
981
+ }
982
+ },
983
+ "roles": [
984
+ "admin"
985
+ ],
986
+ "route": {
987
+ "verb": "GET",
988
+ "path": "/iapGetAdapterInventory"
386
989
  },
387
990
  "task": true
388
991
  },
@@ -3337,7 +3940,7 @@
3337
3940
  "task": true
3338
3941
  },
3339
3942
  {
3340
- "name": "getDevicesFiltered",
3943
+ "name": "getSevDevicesFiltered",
3341
3944
  "summary": "get devices filtered",
3342
3945
  "description": "This method will get devices from SevOne based on the information provided",
3343
3946
  "input": [
@@ -3376,7 +3979,7 @@
3376
3979
  ],
3377
3980
  "route": {
3378
3981
  "verb": "POST",
3379
- "path": "/getDevicesFiltered"
3982
+ "path": "/getSevDevicesFiltered"
3380
3983
  },
3381
3984
  "task": true
3382
3985
  },