@itentialopensource/adapter-metaswitch 0.4.6 → 0.5.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 (45) hide show
  1. package/.eslintrc.js +1 -0
  2. package/AUTH.md +4 -4
  3. package/BROKER.md +4 -4
  4. package/CALLS.md +9 -9
  5. package/ENHANCE.md +3 -3
  6. package/PROPERTIES.md +24 -9
  7. package/README.md +24 -23
  8. package/SUMMARY.md +2 -2
  9. package/SYSTEMINFO.md +1 -1
  10. package/TAB1.md +2 -2
  11. package/TAB2.md +9 -5
  12. package/TROUBLESHOOT.md +10 -1
  13. package/UTILITIES.md +473 -0
  14. package/adapter.js +5 -5
  15. package/adapterBase.js +52 -16
  16. package/package.json +24 -28
  17. package/pronghorn.json +15 -13
  18. package/propertiesSchema.json +68 -7
  19. package/report/adapterInfo.json +7 -7
  20. package/report/auto-adapter-openapi.json +830 -0
  21. package/report/updateReport1748551714536.json +120 -0
  22. package/sampleProperties.json +4 -0
  23. package/test/integration/adapterTestBasicGet.js +88 -54
  24. package/test/integration/adapterTestConnectivity.js +15 -16
  25. package/test/integration/adapterTestIntegration.js +1 -38
  26. package/test/unit/adapterBaseTestUnit.js +641 -39
  27. package/test/unit/adapterTestUnit.js +17 -54
  28. package/utils/adapterInfo.js +114 -164
  29. package/utils/argParser.js +44 -0
  30. package/utils/checkMigrate.js +77 -38
  31. package/utils/entitiesToDB.js +53 -42
  32. package/utils/logger.js +26 -0
  33. package/utils/modify.js +56 -55
  34. package/utils/mongoDbConnection.js +79 -0
  35. package/utils/mongoUtils.js +162 -0
  36. package/utils/taskMover.js +31 -32
  37. package/utils/tbScript.js +36 -172
  38. package/utils/tbUtils.js +84 -226
  39. package/utils/troubleshootingAdapter.js +68 -84
  40. package/utils/updateAdapterConfig.js +158 -0
  41. package/utils/addAuth.js +0 -94
  42. package/utils/artifactize.js +0 -146
  43. package/utils/basicGet.js +0 -50
  44. package/utils/packModificationScript.js +0 -35
  45. package/utils/patches2bundledDeps.js +0 -90
@@ -0,0 +1,830 @@
1
+ {
2
+ "openapi": "3.1.0",
3
+ "info": {
4
+ "title": "",
5
+ "version": "1.0.0"
6
+ },
7
+ "paths": {
8
+ "/wsd/services/ShService": {
9
+ "post": {
10
+ "tags": [
11
+ "EAS"
12
+ ],
13
+ "operationId": "postMetaSphereEAS",
14
+ "description": "The parameters and request body are for method: postMetaSphereEAS. Same endpoint also used in methods:",
15
+ "responses": {
16
+ "200": {
17
+ "description": "Successful operation",
18
+ "content": {
19
+ "application/json": {
20
+ "schema": {
21
+ "type": "object",
22
+ "properties": {
23
+ "ShPullResponse": {
24
+ "type": "object",
25
+ "properties": {
26
+ "ResultCode": {
27
+ "type": "number"
28
+ },
29
+ "ExtendedResult": {
30
+ "type": "object",
31
+ "properties": {
32
+ "ExtendedResultCode": {
33
+ "type": "number"
34
+ },
35
+ "ExtendedResultDetail": {
36
+ "type": "string"
37
+ },
38
+ "ExtendedSubResults": {
39
+ "type": "object",
40
+ "properties": {
41
+ "SubResult": {
42
+ "type": "array",
43
+ "items": {
44
+ "type": "object",
45
+ "properties": {
46
+ "SubResultCode": {
47
+ "type": "number"
48
+ },
49
+ "SubResultDetail": {
50
+ "type": "string"
51
+ },
52
+ "SubResultSource": {
53
+ "type": "string"
54
+ },
55
+ "SubResultSystem": {
56
+ "type": "string"
57
+ }
58
+ }
59
+ }
60
+ }
61
+ }
62
+ },
63
+ "ExtendedResultSystem": {
64
+ "type": "string"
65
+ }
66
+ }
67
+ },
68
+ "UserData": {
69
+ "type": "string"
70
+ }
71
+ }
72
+ }
73
+ }
74
+ },
75
+ "example": {
76
+ "ShPullResponse": {
77
+ "ResultCode": 8,
78
+ "ExtendedResult": {
79
+ "ExtendedResultCode": 4,
80
+ "ExtendedResultDetail": "string",
81
+ "ExtendedSubResults": {
82
+ "SubResult": [
83
+ {
84
+ "SubResultCode": 10,
85
+ "SubResultDetail": "string",
86
+ "SubResultSource": "string",
87
+ "SubResultSystem": "string"
88
+ },
89
+ {
90
+ "SubResultCode": 1,
91
+ "SubResultDetail": "string",
92
+ "SubResultSource": "string",
93
+ "SubResultSystem": "string"
94
+ },
95
+ {
96
+ "SubResultCode": 4,
97
+ "SubResultDetail": "string",
98
+ "SubResultSource": "string",
99
+ "SubResultSystem": "string"
100
+ },
101
+ {
102
+ "SubResultCode": 8,
103
+ "SubResultDetail": "string",
104
+ "SubResultSource": "string",
105
+ "SubResultSystem": "string"
106
+ }
107
+ ]
108
+ },
109
+ "ExtendedResultSystem": "string"
110
+ },
111
+ "UserData": "string"
112
+ }
113
+ }
114
+ }
115
+ }
116
+ }
117
+ },
118
+ "requestBody": {
119
+ "description": "indeterminate body object",
120
+ "content": {
121
+ "application/json": {
122
+ "schema": {
123
+ "type": "object"
124
+ }
125
+ }
126
+ }
127
+ }
128
+ }
129
+ },
130
+ "/axis2/services/ShService": {
131
+ "post": {
132
+ "tags": [
133
+ "NSeries"
134
+ ],
135
+ "operationId": "postNSeries",
136
+ "description": "The parameters and request body are for method: postNSeries. Same endpoint also used in methods:",
137
+ "responses": {
138
+ "200": {
139
+ "description": "Successful operation",
140
+ "content": {
141
+ "application/json": {
142
+ "schema": {
143
+ "type": "object",
144
+ "properties": {
145
+ "ShPullResponse": {
146
+ "type": "object",
147
+ "properties": {
148
+ "ResultCode": {
149
+ "type": "number"
150
+ },
151
+ "ExtendedResult": {
152
+ "type": "object",
153
+ "properties": {
154
+ "ExtendedResultCode": {
155
+ "type": "number"
156
+ },
157
+ "ExtendedResultDetail": {
158
+ "type": "string"
159
+ },
160
+ "ExtendedSubResults": {
161
+ "type": "object",
162
+ "properties": {
163
+ "SubResult": {
164
+ "type": "array",
165
+ "items": {
166
+ "type": "object",
167
+ "properties": {
168
+ "SubResultCode": {
169
+ "type": "number"
170
+ },
171
+ "SubResultDetail": {
172
+ "type": "string"
173
+ },
174
+ "SubResultSource": {
175
+ "type": "string"
176
+ }
177
+ }
178
+ }
179
+ }
180
+ }
181
+ }
182
+ }
183
+ },
184
+ "UserData": {
185
+ "type": "object"
186
+ }
187
+ }
188
+ }
189
+ }
190
+ },
191
+ "example": {
192
+ "ShPullResponse": {
193
+ "ResultCode": 4,
194
+ "ExtendedResult": {
195
+ "ExtendedResultCode": 1,
196
+ "ExtendedResultDetail": "string",
197
+ "ExtendedSubResults": {
198
+ "SubResult": [
199
+ {
200
+ "SubResultCode": 5,
201
+ "SubResultDetail": "string",
202
+ "SubResultSource": "string"
203
+ },
204
+ {
205
+ "SubResultCode": 7,
206
+ "SubResultDetail": "string",
207
+ "SubResultSource": "string"
208
+ },
209
+ {
210
+ "SubResultCode": 7,
211
+ "SubResultDetail": "string",
212
+ "SubResultSource": "string"
213
+ },
214
+ {
215
+ "SubResultCode": 10,
216
+ "SubResultDetail": "string",
217
+ "SubResultSource": "string"
218
+ },
219
+ {
220
+ "SubResultCode": 10,
221
+ "SubResultDetail": "string",
222
+ "SubResultSource": "string"
223
+ },
224
+ {
225
+ "SubResultCode": 5,
226
+ "SubResultDetail": "string",
227
+ "SubResultSource": "string"
228
+ },
229
+ {
230
+ "SubResultCode": 2,
231
+ "SubResultDetail": "string",
232
+ "SubResultSource": "string"
233
+ },
234
+ {
235
+ "SubResultCode": 4,
236
+ "SubResultDetail": "string",
237
+ "SubResultSource": "string"
238
+ }
239
+ ]
240
+ }
241
+ },
242
+ "UserData": {}
243
+ }
244
+ }
245
+ }
246
+ }
247
+ }
248
+ },
249
+ "requestBody": {
250
+ "description": "indeterminate body object",
251
+ "content": {
252
+ "application/json": {
253
+ "schema": {
254
+ "type": "object"
255
+ }
256
+ }
257
+ }
258
+ }
259
+ }
260
+ },
261
+ "/services/ShService": {
262
+ "post": {
263
+ "tags": [
264
+ "Metaview"
265
+ ],
266
+ "operationId": "postMetaview",
267
+ "description": "The parameters and request body are for method: postMetaview. Same endpoint also used in methods:",
268
+ "responses": {
269
+ "200": {
270
+ "description": "Successful operation",
271
+ "content": {
272
+ "application/json": {
273
+ "schema": {
274
+ "type": "object",
275
+ "properties": {
276
+ "ShPullResponse": {
277
+ "type": "object",
278
+ "properties": {
279
+ "ResultCode": {
280
+ "type": "number"
281
+ },
282
+ "ExtendedResult": {
283
+ "type": "object",
284
+ "properties": {
285
+ "ExtendedResultCode": {
286
+ "type": "number"
287
+ },
288
+ "ExtendedResultDetail": {
289
+ "type": "string"
290
+ },
291
+ "ExtendedSubResults": {
292
+ "type": "object",
293
+ "properties": {
294
+ "SubResult": {
295
+ "type": "array",
296
+ "items": {
297
+ "type": "object",
298
+ "properties": {
299
+ "SubResultCode": {
300
+ "type": "number"
301
+ },
302
+ "SubResultDetail": {
303
+ "type": "string"
304
+ },
305
+ "SubResultSource": {
306
+ "type": "string"
307
+ },
308
+ "SubResultSystem": {
309
+ "type": "array",
310
+ "items": {
311
+ "type": "object",
312
+ "properties": {
313
+ "type": {
314
+ "type": "string"
315
+ }
316
+ }
317
+ }
318
+ }
319
+ }
320
+ }
321
+ }
322
+ }
323
+ },
324
+ "ExtendedResultSystem": {
325
+ "type": "array",
326
+ "items": {
327
+ "type": "object",
328
+ "properties": {
329
+ "type": {
330
+ "type": "string"
331
+ }
332
+ }
333
+ }
334
+ }
335
+ }
336
+ },
337
+ "UserData": {
338
+ "type": "object"
339
+ }
340
+ }
341
+ }
342
+ }
343
+ },
344
+ "example": {
345
+ "ShPullResponse": {
346
+ "ResultCode": 3,
347
+ "ExtendedResult": {
348
+ "ExtendedResultCode": 5,
349
+ "ExtendedResultDetail": "string",
350
+ "ExtendedSubResults": {
351
+ "SubResult": [
352
+ {
353
+ "SubResultCode": 6,
354
+ "SubResultDetail": "string",
355
+ "SubResultSource": "string",
356
+ "SubResultSystem": [
357
+ {
358
+ "type": "string"
359
+ },
360
+ {
361
+ "type": "string"
362
+ },
363
+ {
364
+ "type": "string"
365
+ },
366
+ {
367
+ "type": "string"
368
+ },
369
+ {
370
+ "type": "string"
371
+ },
372
+ {
373
+ "type": "string"
374
+ },
375
+ {
376
+ "type": "string"
377
+ },
378
+ {
379
+ "type": "string"
380
+ }
381
+ ]
382
+ },
383
+ {
384
+ "SubResultCode": 4,
385
+ "SubResultDetail": "string",
386
+ "SubResultSource": "string",
387
+ "SubResultSystem": [
388
+ {
389
+ "type": "string"
390
+ },
391
+ {
392
+ "type": "string"
393
+ },
394
+ {
395
+ "type": "string"
396
+ },
397
+ {
398
+ "type": "string"
399
+ }
400
+ ]
401
+ },
402
+ {
403
+ "SubResultCode": 7,
404
+ "SubResultDetail": "string",
405
+ "SubResultSource": "string",
406
+ "SubResultSystem": [
407
+ {
408
+ "type": "string"
409
+ },
410
+ {
411
+ "type": "string"
412
+ },
413
+ {
414
+ "type": "string"
415
+ },
416
+ {
417
+ "type": "string"
418
+ },
419
+ {
420
+ "type": "string"
421
+ },
422
+ {
423
+ "type": "string"
424
+ },
425
+ {
426
+ "type": "string"
427
+ }
428
+ ]
429
+ },
430
+ {
431
+ "SubResultCode": 1,
432
+ "SubResultDetail": "string",
433
+ "SubResultSource": "string",
434
+ "SubResultSystem": [
435
+ {
436
+ "type": "string"
437
+ },
438
+ {
439
+ "type": "string"
440
+ },
441
+ {
442
+ "type": "string"
443
+ },
444
+ {
445
+ "type": "string"
446
+ },
447
+ {
448
+ "type": "string"
449
+ },
450
+ {
451
+ "type": "string"
452
+ }
453
+ ]
454
+ },
455
+ {
456
+ "SubResultCode": 8,
457
+ "SubResultDetail": "string",
458
+ "SubResultSource": "string",
459
+ "SubResultSystem": [
460
+ {
461
+ "type": "string"
462
+ },
463
+ {
464
+ "type": "string"
465
+ },
466
+ {
467
+ "type": "string"
468
+ },
469
+ {
470
+ "type": "string"
471
+ },
472
+ {
473
+ "type": "string"
474
+ },
475
+ {
476
+ "type": "string"
477
+ },
478
+ {
479
+ "type": "string"
480
+ }
481
+ ]
482
+ }
483
+ ]
484
+ },
485
+ "ExtendedResultSystem": [
486
+ {
487
+ "type": "string"
488
+ },
489
+ {
490
+ "type": "string"
491
+ },
492
+ {
493
+ "type": "string"
494
+ },
495
+ {
496
+ "type": "string"
497
+ },
498
+ {
499
+ "type": "string"
500
+ },
501
+ {
502
+ "type": "string"
503
+ },
504
+ {
505
+ "type": "string"
506
+ },
507
+ {
508
+ "type": "string"
509
+ },
510
+ {
511
+ "type": "string"
512
+ }
513
+ ]
514
+ },
515
+ "UserData": {}
516
+ }
517
+ }
518
+ }
519
+ }
520
+ }
521
+ },
522
+ "requestBody": {
523
+ "description": "indeterminate body object",
524
+ "content": {
525
+ "application/json": {
526
+ "schema": {
527
+ "type": "object"
528
+ }
529
+ }
530
+ }
531
+ }
532
+ }
533
+ },
534
+ "/mvweb/services/ShService": {
535
+ "post": {
536
+ "tags": [
537
+ "NWSAP"
538
+ ],
539
+ "operationId": "postNWSAP",
540
+ "description": "The parameters and request body are for method: postNWSAP. Same endpoint also used in methods:",
541
+ "responses": {
542
+ "200": {
543
+ "description": "Successful operation",
544
+ "content": {
545
+ "application/json": {
546
+ "schema": {
547
+ "type": "object",
548
+ "properties": {
549
+ "ShPullResponse": {
550
+ "type": "object",
551
+ "properties": {
552
+ "ResultCode": {
553
+ "type": "number"
554
+ },
555
+ "ExtendedResult": {
556
+ "type": "object",
557
+ "properties": {
558
+ "ExtendedResultCode": {
559
+ "type": "number"
560
+ },
561
+ "ExtendedResultDetail": {
562
+ "type": "string"
563
+ },
564
+ "ExtendedSubResults": {
565
+ "type": "object",
566
+ "properties": {
567
+ "SubResult": {
568
+ "type": "array",
569
+ "items": {
570
+ "type": "object",
571
+ "properties": {
572
+ "SubResultCode": {
573
+ "type": "number"
574
+ },
575
+ "SubResultDetail": {
576
+ "type": "string"
577
+ },
578
+ "SubResultSource": {
579
+ "type": "string"
580
+ },
581
+ "SubResultSystem": {
582
+ "type": "array",
583
+ "items": {
584
+ "type": "object",
585
+ "properties": {
586
+ "type": {
587
+ "type": "string"
588
+ }
589
+ }
590
+ }
591
+ }
592
+ }
593
+ }
594
+ }
595
+ }
596
+ },
597
+ "ExtendedResultSystem": {
598
+ "type": "array",
599
+ "items": {
600
+ "type": "object",
601
+ "properties": {
602
+ "type": {
603
+ "type": "string"
604
+ }
605
+ }
606
+ }
607
+ }
608
+ }
609
+ },
610
+ "UserData": {
611
+ "type": "object"
612
+ }
613
+ }
614
+ }
615
+ }
616
+ },
617
+ "example": {
618
+ "ShPullResponse": {
619
+ "ResultCode": 7,
620
+ "ExtendedResult": {
621
+ "ExtendedResultCode": 7,
622
+ "ExtendedResultDetail": "string",
623
+ "ExtendedSubResults": {
624
+ "SubResult": [
625
+ {
626
+ "SubResultCode": 2,
627
+ "SubResultDetail": "string",
628
+ "SubResultSource": "string",
629
+ "SubResultSystem": [
630
+ {
631
+ "type": "string"
632
+ },
633
+ {
634
+ "type": "string"
635
+ },
636
+ {
637
+ "type": "string"
638
+ },
639
+ {
640
+ "type": "string"
641
+ },
642
+ {
643
+ "type": "string"
644
+ },
645
+ {
646
+ "type": "string"
647
+ },
648
+ {
649
+ "type": "string"
650
+ },
651
+ {
652
+ "type": "string"
653
+ },
654
+ {
655
+ "type": "string"
656
+ },
657
+ {
658
+ "type": "string"
659
+ }
660
+ ]
661
+ },
662
+ {
663
+ "SubResultCode": 4,
664
+ "SubResultDetail": "string",
665
+ "SubResultSource": "string",
666
+ "SubResultSystem": [
667
+ {
668
+ "type": "string"
669
+ },
670
+ {
671
+ "type": "string"
672
+ },
673
+ {
674
+ "type": "string"
675
+ },
676
+ {
677
+ "type": "string"
678
+ },
679
+ {
680
+ "type": "string"
681
+ }
682
+ ]
683
+ },
684
+ {
685
+ "SubResultCode": 9,
686
+ "SubResultDetail": "string",
687
+ "SubResultSource": "string",
688
+ "SubResultSystem": [
689
+ {
690
+ "type": "string"
691
+ },
692
+ {
693
+ "type": "string"
694
+ },
695
+ {
696
+ "type": "string"
697
+ },
698
+ {
699
+ "type": "string"
700
+ },
701
+ {
702
+ "type": "string"
703
+ },
704
+ {
705
+ "type": "string"
706
+ },
707
+ {
708
+ "type": "string"
709
+ },
710
+ {
711
+ "type": "string"
712
+ }
713
+ ]
714
+ },
715
+ {
716
+ "SubResultCode": 5,
717
+ "SubResultDetail": "string",
718
+ "SubResultSource": "string",
719
+ "SubResultSystem": [
720
+ {
721
+ "type": "string"
722
+ },
723
+ {
724
+ "type": "string"
725
+ },
726
+ {
727
+ "type": "string"
728
+ }
729
+ ]
730
+ },
731
+ {
732
+ "SubResultCode": 1,
733
+ "SubResultDetail": "string",
734
+ "SubResultSource": "string",
735
+ "SubResultSystem": [
736
+ {
737
+ "type": "string"
738
+ },
739
+ {
740
+ "type": "string"
741
+ },
742
+ {
743
+ "type": "string"
744
+ },
745
+ {
746
+ "type": "string"
747
+ },
748
+ {
749
+ "type": "string"
750
+ }
751
+ ]
752
+ },
753
+ {
754
+ "SubResultCode": 10,
755
+ "SubResultDetail": "string",
756
+ "SubResultSource": "string",
757
+ "SubResultSystem": [
758
+ {
759
+ "type": "string"
760
+ },
761
+ {
762
+ "type": "string"
763
+ },
764
+ {
765
+ "type": "string"
766
+ },
767
+ {
768
+ "type": "string"
769
+ },
770
+ {
771
+ "type": "string"
772
+ },
773
+ {
774
+ "type": "string"
775
+ },
776
+ {
777
+ "type": "string"
778
+ },
779
+ {
780
+ "type": "string"
781
+ }
782
+ ]
783
+ }
784
+ ]
785
+ },
786
+ "ExtendedResultSystem": [
787
+ {
788
+ "type": "string"
789
+ },
790
+ {
791
+ "type": "string"
792
+ },
793
+ {
794
+ "type": "string"
795
+ },
796
+ {
797
+ "type": "string"
798
+ },
799
+ {
800
+ "type": "string"
801
+ },
802
+ {
803
+ "type": "string"
804
+ }
805
+ ]
806
+ },
807
+ "UserData": {}
808
+ }
809
+ }
810
+ }
811
+ }
812
+ }
813
+ },
814
+ "requestBody": {
815
+ "description": "indeterminate body object",
816
+ "content": {
817
+ "application/json": {
818
+ "schema": {
819
+ "type": "object"
820
+ }
821
+ }
822
+ }
823
+ }
824
+ }
825
+ }
826
+ },
827
+ "components": {
828
+ "schemas": {}
829
+ }
830
+ }