@itentialopensource/adapter-microsoft_graph 1.0.2 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- package/.eslintignore +0 -1
- package/.jshintrc +3 -0
- package/AUTH.md +20 -16
- package/CALLS.md +69 -28
- package/CHANGELOG.md +16 -0
- package/CONTRIBUTING.md +1 -160
- package/ENHANCE.md +2 -2
- package/README.md +31 -22
- package/SUMMARY.md +2 -2
- package/SYSTEMINFO.md +15 -5
- package/adapter.js +248 -330
- package/adapterBase.js +538 -873
- package/changelogs/changelog.md +6 -0
- package/entities/Mail/action.json +20 -0
- package/entities/Mail/schema.json +1 -0
- package/metadata.json +52 -0
- package/package.json +22 -25
- package/pronghorn.json +550 -144
- package/propertiesSchema.json +444 -40
- package/refs?service=git-upload-pack +0 -0
- package/report/adapter-openapi.json +14709 -0
- package/report/adapter-openapi.yaml +9744 -0
- package/report/adapterInfo.json +8 -8
- package/report/updateReport1691507370664.json +120 -0
- package/report/updateReport1692202407231.json +120 -0
- package/report/updateReport1694460353234.json +120 -0
- package/report/updateReport1695667793473.json +120 -0
- package/sampleProperties.json +63 -2
- package/test/integration/adapterTestBasicGet.js +1 -1
- package/test/integration/adapterTestConnectivity.js +91 -42
- package/test/integration/adapterTestIntegration.js +130 -2
- package/test/unit/adapterBaseTestUnit.js +395 -292
- package/test/unit/adapterTestUnit.js +306 -109
- package/utils/adapterInfo.js +1 -1
- package/utils/addAuth.js +1 -1
- package/utils/artifactize.js +1 -1
- package/utils/checkMigrate.js +1 -1
- package/utils/entitiesToDB.js +1 -0
- package/utils/findPath.js +1 -1
- package/utils/methodDocumentor.js +57 -22
- package/utils/modify.js +13 -15
- package/utils/packModificationScript.js +1 -1
- package/utils/taskMover.js +309 -0
- package/utils/tbScript.js +3 -10
- package/utils/tbUtils.js +2 -3
- package/utils/testRunner.js +1 -1
- package/utils/troubleshootingAdapter.js +1 -3
- package/workflows/README.md +0 -3
package/pronghorn.json
CHANGED
@@ -62,47 +62,22 @@
|
|
62
62
|
"title": "action",
|
63
63
|
"type": "string"
|
64
64
|
}
|
65
|
-
}
|
66
|
-
],
|
67
|
-
"output": {
|
68
|
-
"name": "result",
|
69
|
-
"type": "object",
|
70
|
-
"description": "A JSON Object containing status, code and the result",
|
71
|
-
"schema": {
|
72
|
-
"title": "result",
|
73
|
-
"type": "object"
|
74
|
-
}
|
75
|
-
},
|
76
|
-
"roles": [
|
77
|
-
"admin"
|
78
|
-
],
|
79
|
-
"route": {
|
80
|
-
"verb": "POST",
|
81
|
-
"path": "/iapUpdateAdapterConfiguration"
|
82
|
-
},
|
83
|
-
"task": true
|
84
|
-
},
|
85
|
-
{
|
86
|
-
"name": "iapFindAdapterPath",
|
87
|
-
"summary": "Provides the ability to see if a particular API path is supported by the adapter",
|
88
|
-
"description": "Provides the ability to see if a particular API path is supported by the adapter",
|
89
|
-
"input": [
|
65
|
+
},
|
90
66
|
{
|
91
|
-
"name": "
|
92
|
-
"type": "
|
93
|
-
"info": "
|
94
|
-
"
|
67
|
+
"name" : "replace",
|
68
|
+
"type": "boolean",
|
69
|
+
"info": "True to replace entire mock data, false to merge/append",
|
70
|
+
"required": false,
|
95
71
|
"schema": {
|
96
|
-
"title": "
|
97
|
-
"type": "
|
98
|
-
}
|
99
|
-
"required": true
|
72
|
+
"title": "replace",
|
73
|
+
"type" : "boolean"
|
74
|
+
}
|
100
75
|
}
|
101
76
|
],
|
102
77
|
"output": {
|
103
78
|
"name": "result",
|
104
79
|
"type": "object",
|
105
|
-
"description": "A JSON Object containing the result",
|
80
|
+
"description": "A JSON Object containing status, code and the result",
|
106
81
|
"schema": {
|
107
82
|
"title": "result",
|
108
83
|
"type": "object"
|
@@ -113,7 +88,7 @@
|
|
113
88
|
],
|
114
89
|
"route": {
|
115
90
|
"verb": "POST",
|
116
|
-
"path": "/
|
91
|
+
"path": "/iapUpdateAdapterConfiguration"
|
117
92
|
},
|
118
93
|
"task": true
|
119
94
|
},
|
@@ -202,6 +177,41 @@
|
|
202
177
|
},
|
203
178
|
"task": true
|
204
179
|
},
|
180
|
+
{
|
181
|
+
"name": "iapFindAdapterPath",
|
182
|
+
"summary": "Provides the ability to see if a particular API path is supported by the adapter",
|
183
|
+
"description": "Provides the ability to see if a particular API path is supported by the adapter",
|
184
|
+
"input": [
|
185
|
+
{
|
186
|
+
"name": "apiPath",
|
187
|
+
"type": "string",
|
188
|
+
"info": "The API Path you want to check - make sure to not include base path and version",
|
189
|
+
"description": "The API Path you want to check - make sure to not include base path and version",
|
190
|
+
"schema": {
|
191
|
+
"title": "apiPath",
|
192
|
+
"type": "string"
|
193
|
+
},
|
194
|
+
"required": true
|
195
|
+
}
|
196
|
+
],
|
197
|
+
"output": {
|
198
|
+
"name": "result",
|
199
|
+
"type": "object",
|
200
|
+
"description": "A JSON Object containing the result",
|
201
|
+
"schema": {
|
202
|
+
"title": "result",
|
203
|
+
"type": "object"
|
204
|
+
}
|
205
|
+
},
|
206
|
+
"roles": [
|
207
|
+
"admin"
|
208
|
+
],
|
209
|
+
"route": {
|
210
|
+
"verb": "POST",
|
211
|
+
"path": "/iapFindAdapterPath"
|
212
|
+
},
|
213
|
+
"task": true
|
214
|
+
},
|
205
215
|
{
|
206
216
|
"name": "iapTroubleshootAdapter",
|
207
217
|
"summary": "Runs troubleshoot script for adapter",
|
@@ -221,7 +231,11 @@
|
|
221
231
|
"name": "persistFlag",
|
222
232
|
"type": "boolean",
|
223
233
|
"info": "Whether the input properties should be saved",
|
224
|
-
"required": true
|
234
|
+
"required": true,
|
235
|
+
"schema": {
|
236
|
+
"title": "persistFlag",
|
237
|
+
"type": "boolean"
|
238
|
+
}
|
225
239
|
}
|
226
240
|
],
|
227
241
|
"output": {
|
@@ -250,7 +264,11 @@
|
|
250
264
|
"output": {
|
251
265
|
"name": "result",
|
252
266
|
"type": "boolean",
|
253
|
-
"description": "Whether healthcheck passed or failed"
|
267
|
+
"description": "Whether healthcheck passed or failed",
|
268
|
+
"schema": {
|
269
|
+
"title": "result",
|
270
|
+
"type": "boolean"
|
271
|
+
}
|
254
272
|
},
|
255
273
|
"roles": [
|
256
274
|
"admin"
|
@@ -313,11 +331,324 @@
|
|
313
331
|
"description": "Moves entities from an adapter into the IAP database",
|
314
332
|
"input": [],
|
315
333
|
"output": {
|
316
|
-
"name": "res",
|
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
|
+
}
|
587
|
+
},
|
588
|
+
"roles": [
|
589
|
+
"admin"
|
590
|
+
],
|
591
|
+
"route": {
|
592
|
+
"verb": "POST",
|
593
|
+
"path": "/isAlive"
|
594
|
+
},
|
595
|
+
"task": false
|
596
|
+
},
|
597
|
+
{
|
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
|
+
],
|
623
|
+
"output": {
|
624
|
+
"name": "result",
|
625
|
+
"type": "object",
|
626
|
+
"description": "A JSON Object containing status, code and the result",
|
627
|
+
"schema": {
|
628
|
+
"title": "result",
|
629
|
+
"type": "object"
|
630
|
+
}
|
631
|
+
},
|
632
|
+
"roles": [
|
633
|
+
"admin"
|
634
|
+
],
|
635
|
+
"route": {
|
636
|
+
"verb": "POST",
|
637
|
+
"path": "/getConfig"
|
638
|
+
},
|
639
|
+
"task": false
|
640
|
+
},
|
641
|
+
{
|
642
|
+
"name": "iapGetDeviceCount",
|
643
|
+
"summary": "Gets a device count from the system",
|
644
|
+
"description": "Gets a device count from the system",
|
645
|
+
"input": [],
|
646
|
+
"output": {
|
647
|
+
"name": "result",
|
317
648
|
"type": "object",
|
318
|
-
"description": "A JSON Object containing status, code and the
|
649
|
+
"description": "A JSON Object containing status, code and the result",
|
319
650
|
"schema": {
|
320
|
-
"title": "
|
651
|
+
"title": "result",
|
321
652
|
"type": "object"
|
322
653
|
}
|
323
654
|
},
|
@@ -326,15 +657,26 @@
|
|
326
657
|
],
|
327
658
|
"route": {
|
328
659
|
"verb": "POST",
|
329
|
-
"path": "/
|
660
|
+
"path": "/iapGetDeviceCount"
|
330
661
|
},
|
331
|
-
"task":
|
662
|
+
"task": false
|
332
663
|
},
|
333
664
|
{
|
334
|
-
"name": "
|
335
|
-
"summary": "Makes the requested generic call",
|
336
|
-
"description": "Makes the requested generic call",
|
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",
|
337
668
|
"input": [
|
669
|
+
{
|
670
|
+
"name": "metadata",
|
671
|
+
"type": "object",
|
672
|
+
"info": "metadata for the call (optional)",
|
673
|
+
"description": "metadata for the call - allows for many enhancements (optional)",
|
674
|
+
"schema": {
|
675
|
+
"title": "metadata",
|
676
|
+
"type": "object"
|
677
|
+
},
|
678
|
+
"required": false
|
679
|
+
},
|
338
680
|
{
|
339
681
|
"name": "uriPath",
|
340
682
|
"type": "string",
|
@@ -344,7 +686,7 @@
|
|
344
686
|
"title": "uriPath",
|
345
687
|
"type": "string"
|
346
688
|
},
|
347
|
-
"required":
|
689
|
+
"required": false
|
348
690
|
},
|
349
691
|
{
|
350
692
|
"name": "restMethod",
|
@@ -355,7 +697,18 @@
|
|
355
697
|
"title": "restMethod",
|
356
698
|
"type": "string"
|
357
699
|
},
|
358
|
-
"required":
|
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
|
359
712
|
},
|
360
713
|
{
|
361
714
|
"name": "queryData",
|
@@ -405,12 +758,12 @@
|
|
405
758
|
],
|
406
759
|
"route": {
|
407
760
|
"verb": "POST",
|
408
|
-
"path": "/
|
761
|
+
"path": "/iapExpandedGenericAdapterRequest"
|
409
762
|
},
|
410
763
|
"task": true
|
411
764
|
},
|
412
765
|
{
|
413
|
-
"name": "
|
766
|
+
"name": "genericAdapterRequest",
|
414
767
|
"summary": "Makes the requested generic call",
|
415
768
|
"description": "Makes the requested generic call",
|
416
769
|
"input": [
|
@@ -484,67 +837,78 @@
|
|
484
837
|
],
|
485
838
|
"route": {
|
486
839
|
"verb": "POST",
|
487
|
-
"path": "/
|
840
|
+
"path": "/genericAdapterRequest"
|
488
841
|
},
|
489
842
|
"task": true
|
490
843
|
},
|
491
844
|
{
|
492
|
-
"name": "
|
493
|
-
"summary": "
|
494
|
-
"description": "
|
845
|
+
"name": "genericAdapterRequestNoBasePath",
|
846
|
+
"summary": "Makes the requested generic call",
|
847
|
+
"description": "Makes the requested generic call",
|
495
848
|
"input": [
|
496
849
|
{
|
497
|
-
"name": "
|
850
|
+
"name": "uriPath",
|
498
851
|
"type": "string",
|
499
|
-
"info": "
|
500
|
-
"
|
852
|
+
"info": "the path of the api call - do not include the host, port, base path or version",
|
853
|
+
"description": "the path of the api call",
|
501
854
|
"schema": {
|
502
|
-
"title": "
|
855
|
+
"title": "uriPath",
|
503
856
|
"type": "string"
|
504
|
-
}
|
505
|
-
|
506
|
-
|
507
|
-
"output": {
|
508
|
-
"name": "result",
|
509
|
-
"type": "object",
|
510
|
-
"description": "A JSON Object containing status, code and the result",
|
511
|
-
"schema": {
|
512
|
-
"title": "result",
|
513
|
-
"type": "object"
|
514
|
-
}
|
515
|
-
},
|
516
|
-
"roles": [
|
517
|
-
"admin"
|
518
|
-
],
|
519
|
-
"route": {
|
520
|
-
"verb": "POST",
|
521
|
-
"path": "/getDevice"
|
522
|
-
},
|
523
|
-
"task": true
|
524
|
-
},
|
525
|
-
{
|
526
|
-
"name": "getDevicesFiltered",
|
527
|
-
"summary": "Get Appliances that match the filter",
|
528
|
-
"description": "Get Appliances that match the filter",
|
529
|
-
"input": [
|
857
|
+
},
|
858
|
+
"required": true
|
859
|
+
},
|
530
860
|
{
|
531
|
-
"name": "
|
861
|
+
"name": "restMethod",
|
862
|
+
"type": "string",
|
863
|
+
"info": "the rest method (GET, POST, PUT, PATCH, DELETE)",
|
864
|
+
"description": "the rest method (GET, POST, PUT, PATCH, DELETE)",
|
865
|
+
"schema": {
|
866
|
+
"title": "restMethod",
|
867
|
+
"type": "string"
|
868
|
+
},
|
869
|
+
"required": true
|
870
|
+
},
|
871
|
+
{
|
872
|
+
"name": "queryData",
|
532
873
|
"type": "object",
|
533
|
-
"info": "
|
534
|
-
"
|
874
|
+
"info": "the query parameters to be put on the url (optional)",
|
875
|
+
"description": "the query parameters to be put on the url (optional)",
|
535
876
|
"schema": {
|
536
|
-
"title": "
|
877
|
+
"title": "queryData",
|
537
878
|
"type": "object"
|
538
|
-
}
|
879
|
+
},
|
880
|
+
"required": false
|
881
|
+
},
|
882
|
+
{
|
883
|
+
"name": "requestBody",
|
884
|
+
"type": "object",
|
885
|
+
"info": "the payload to be sent with the request (optional)",
|
886
|
+
"description": "the payload to be sent with the request (optional)",
|
887
|
+
"schema": {
|
888
|
+
"title": "requestBody",
|
889
|
+
"type": "object"
|
890
|
+
},
|
891
|
+
"required": false
|
892
|
+
},
|
893
|
+
{
|
894
|
+
"name": "addlHeaders",
|
895
|
+
"type": "object",
|
896
|
+
"info": "additional headers to be put on the call (optional)",
|
897
|
+
"description": "additional headers to be put on the call (optional)",
|
898
|
+
"schema": {
|
899
|
+
"title": "addlHeaders",
|
900
|
+
"type": "object"
|
901
|
+
},
|
902
|
+
"required": false
|
539
903
|
}
|
540
904
|
],
|
541
905
|
"output": {
|
542
906
|
"name": "result",
|
543
|
-
"type": "
|
907
|
+
"type": "object",
|
544
908
|
"description": "A JSON Object containing status, code and the result",
|
545
909
|
"schema": {
|
546
910
|
"title": "result",
|
547
|
-
"type": "
|
911
|
+
"type": "object"
|
548
912
|
}
|
549
913
|
},
|
550
914
|
"roles": [
|
@@ -552,70 +916,38 @@
|
|
552
916
|
],
|
553
917
|
"route": {
|
554
918
|
"verb": "POST",
|
555
|
-
"path": "/
|
919
|
+
"path": "/genericAdapterRequestNoBasePath"
|
556
920
|
},
|
557
921
|
"task": true
|
558
922
|
},
|
559
923
|
{
|
560
|
-
"name": "
|
561
|
-
"summary": "
|
562
|
-
"description": "
|
563
|
-
"input": [
|
564
|
-
{
|
565
|
-
"name": "deviceName",
|
566
|
-
"type": "string",
|
567
|
-
"info": "An Appliance Device Name",
|
568
|
-
"required": true,
|
569
|
-
"schema": {
|
570
|
-
"title": "deviceName",
|
571
|
-
"type": "string"
|
572
|
-
}
|
573
|
-
}
|
574
|
-
],
|
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": [],
|
575
928
|
"output": {
|
576
929
|
"name": "result",
|
577
|
-
"type": "
|
578
|
-
"description": "A
|
930
|
+
"type": "string",
|
931
|
+
"description": "A string containing the run results",
|
579
932
|
"schema": {
|
580
933
|
"title": "result",
|
581
|
-
"type": "
|
934
|
+
"type": "string"
|
582
935
|
}
|
583
936
|
},
|
584
937
|
"roles": [
|
585
938
|
"admin"
|
586
939
|
],
|
587
940
|
"route": {
|
588
|
-
"verb": "
|
589
|
-
"path": "/
|
941
|
+
"verb": "GET",
|
942
|
+
"path": "/iapRunAdapterLint"
|
590
943
|
},
|
591
944
|
"task": true
|
592
945
|
},
|
593
946
|
{
|
594
|
-
"name": "
|
595
|
-
"summary": "
|
596
|
-
"description": "
|
597
|
-
"input": [
|
598
|
-
{
|
599
|
-
"name": "deviceName",
|
600
|
-
"type": "string",
|
601
|
-
"info": "An Appliance Device Name",
|
602
|
-
"required": true,
|
603
|
-
"schema": {
|
604
|
-
"title": "deviceName",
|
605
|
-
"type": "string"
|
606
|
-
}
|
607
|
-
},
|
608
|
-
{
|
609
|
-
"name": "format",
|
610
|
-
"type": "string",
|
611
|
-
"info": "The format to be returned - this is ignored as we always return json",
|
612
|
-
"required": false,
|
613
|
-
"schema": {
|
614
|
-
"title": "format",
|
615
|
-
"type": "string"
|
616
|
-
}
|
617
|
-
}
|
618
|
-
],
|
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": [],
|
619
951
|
"output": {
|
620
952
|
"name": "result",
|
621
953
|
"type": "object",
|
@@ -629,15 +961,15 @@
|
|
629
961
|
"admin"
|
630
962
|
],
|
631
963
|
"route": {
|
632
|
-
"verb": "
|
633
|
-
"path": "/
|
964
|
+
"verb": "GET",
|
965
|
+
"path": "/iapRunAdapterTests"
|
634
966
|
},
|
635
967
|
"task": true
|
636
968
|
},
|
637
969
|
{
|
638
|
-
"name": "
|
639
|
-
"summary": "
|
640
|
-
"description": "
|
970
|
+
"name": "iapGetAdapterInventory",
|
971
|
+
"summary": "Provide inventory information abbout the adapter",
|
972
|
+
"description": "Provide inventory information abbout the adapter",
|
641
973
|
"input": [],
|
642
974
|
"output": {
|
643
975
|
"name": "result",
|
@@ -652,11 +984,11 @@
|
|
652
984
|
"admin"
|
653
985
|
],
|
654
986
|
"route": {
|
655
|
-
"verb": "
|
656
|
-
"path": "/
|
987
|
+
"verb": "GET",
|
988
|
+
"path": "/iapGetAdapterInventory"
|
657
989
|
},
|
658
990
|
"task": true
|
659
|
-
},
|
991
|
+
},
|
660
992
|
{
|
661
993
|
"name": "getapplications",
|
662
994
|
"summary": "Get applications",
|
@@ -3487,6 +3819,80 @@
|
|
3487
3819
|
},
|
3488
3820
|
"task": true
|
3489
3821
|
},
|
3822
|
+
{
|
3823
|
+
"name": "sendmailApplication",
|
3824
|
+
"summary": "Send mail with client credentials",
|
3825
|
+
"description": "Send mail with client credentials",
|
3826
|
+
"input": [
|
3827
|
+
{
|
3828
|
+
"name": "body",
|
3829
|
+
"type": "object",
|
3830
|
+
"info": ": object",
|
3831
|
+
"required": true,
|
3832
|
+
"schema": {
|
3833
|
+
"allOf": [
|
3834
|
+
{
|
3835
|
+
"type": "object"
|
3836
|
+
},
|
3837
|
+
{
|
3838
|
+
"example": {
|
3839
|
+
"message": {
|
3840
|
+
"subject": "Meet for lunch?",
|
3841
|
+
"body": {
|
3842
|
+
"contentType": "Text",
|
3843
|
+
"content": "The new cafeteria is open."
|
3844
|
+
},
|
3845
|
+
"toRecipients": [
|
3846
|
+
{
|
3847
|
+
"emailAddress": {
|
3848
|
+
"address": "{{UserName}}"
|
3849
|
+
}
|
3850
|
+
}
|
3851
|
+
],
|
3852
|
+
"ccRecipients": [
|
3853
|
+
{
|
3854
|
+
"emailAddress": {
|
3855
|
+
"address": "{{UserName}}"
|
3856
|
+
}
|
3857
|
+
}
|
3858
|
+
]
|
3859
|
+
},
|
3860
|
+
"saveToSentItems": "false"
|
3861
|
+
}
|
3862
|
+
}
|
3863
|
+
],
|
3864
|
+
"definitions": {}
|
3865
|
+
}
|
3866
|
+
},
|
3867
|
+
{
|
3868
|
+
"name": "userId",
|
3869
|
+
"type": "string",
|
3870
|
+
"info": ": string",
|
3871
|
+
"required": true,
|
3872
|
+
"schema": {
|
3873
|
+
"title": "userId",
|
3874
|
+
"type": "string"
|
3875
|
+
}
|
3876
|
+
}
|
3877
|
+
],
|
3878
|
+
"output": {
|
3879
|
+
"name": "result",
|
3880
|
+
"type": "object",
|
3881
|
+
"description": "A JSON Object containing status, code and the result",
|
3882
|
+
"schema": {
|
3883
|
+
"title": "result",
|
3884
|
+
"type": "object"
|
3885
|
+
}
|
3886
|
+
},
|
3887
|
+
"roles": [
|
3888
|
+
"admin"
|
3889
|
+
],
|
3890
|
+
"route": {
|
3891
|
+
"verb": "POST",
|
3892
|
+
"path": "/sendmailApplication"
|
3893
|
+
},
|
3894
|
+
"task": true
|
3895
|
+
},
|
3490
3896
|
{
|
3491
3897
|
"name": "getmailboxsettings",
|
3492
3898
|
"summary": "Get mailbox settings",
|