@itentialopensource/adapter-algosec_fireflow 0.3.8 → 0.4.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 (44) 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 +8 -4
  12. package/TROUBLESHOOT.md +10 -1
  13. package/UTILITIES.md +473 -0
  14. package/adapter.js +14 -15
  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/auto-adapter-openapi.json +511 -0
  20. package/report/updateReport1748551736677.json +120 -0
  21. package/sampleProperties.json +4 -0
  22. package/test/integration/adapterTestBasicGet.js +88 -54
  23. package/test/integration/adapterTestConnectivity.js +15 -16
  24. package/test/integration/adapterTestIntegration.js +12 -45
  25. package/test/unit/adapterBaseTestUnit.js +641 -39
  26. package/test/unit/adapterTestUnit.js +28 -61
  27. package/utils/adapterInfo.js +114 -164
  28. package/utils/argParser.js +44 -0
  29. package/utils/checkMigrate.js +77 -38
  30. package/utils/entitiesToDB.js +53 -42
  31. package/utils/logger.js +26 -0
  32. package/utils/modify.js +56 -55
  33. package/utils/mongoDbConnection.js +79 -0
  34. package/utils/mongoUtils.js +162 -0
  35. package/utils/taskMover.js +31 -32
  36. package/utils/tbScript.js +36 -172
  37. package/utils/tbUtils.js +84 -226
  38. package/utils/troubleshootingAdapter.js +68 -84
  39. package/utils/updateAdapterConfig.js +158 -0
  40. package/utils/addAuth.js +0 -94
  41. package/utils/artifactize.js +0 -146
  42. package/utils/basicGet.js +0 -50
  43. package/utils/packModificationScript.js +0 -35
  44. package/utils/patches2bundledDeps.js +0 -90
@@ -0,0 +1,511 @@
1
+ {
2
+ "openapi": "3.1.0",
3
+ "info": {
4
+ "title": "",
5
+ "version": "1.0.0"
6
+ },
7
+ "paths": {
8
+ "/authentication/authenticate": {
9
+ "post": {
10
+ "tags": [
11
+ "AuthenticationExternalController"
12
+ ],
13
+ "operationId": "authenticateUsingPOST",
14
+ "description": "The parameters and request body are for method: authenticateUsingPOST. Same endpoint also used in methods:",
15
+ "responses": {
16
+ "200": {
17
+ "description": "Successful operation",
18
+ "content": {
19
+ "application/json": {
20
+ "schema": {
21
+ "title": "result",
22
+ "type": "object"
23
+ }
24
+ }
25
+ }
26
+ }
27
+ },
28
+ "requestBody": {
29
+ "content": {
30
+ "application/json": {
31
+ "schema": {
32
+ "type": "string"
33
+ },
34
+ "example": "authenticationData"
35
+ }
36
+ }
37
+ }
38
+ }
39
+ },
40
+ "/change-request/traffic/{changeRequestId}/work-order/calculate": {
41
+ "post": {
42
+ "tags": [
43
+ "WorkOrderExternalController"
44
+ ],
45
+ "operationId": "calculateWorkOrderUsingPOST",
46
+ "description": "The parameters and request body are for method: calculateWorkOrderUsingPOST. Same endpoint also used in methods:",
47
+ "responses": {
48
+ "200": {
49
+ "description": "Successful operation",
50
+ "content": {
51
+ "application/json": {
52
+ "schema": {
53
+ "title": "result",
54
+ "type": "object"
55
+ }
56
+ }
57
+ }
58
+ }
59
+ },
60
+ "parameters": [
61
+ {
62
+ "name": "changeRequestId",
63
+ "in": "path",
64
+ "required": true,
65
+ "schema": {
66
+ "title": "changeRequestId",
67
+ "type": "number"
68
+ }
69
+ }
70
+ ],
71
+ "requestBody": {
72
+ "content": {
73
+ "application/json": {
74
+ "schema": {
75
+ "type": "object"
76
+ },
77
+ "example": {}
78
+ }
79
+ }
80
+ }
81
+ }
82
+ },
83
+ "/change-request/traffic/{changeRequestId}/work-order/calculation/status": {
84
+ "get": {
85
+ "tags": [
86
+ "WorkOrderExternalController"
87
+ ],
88
+ "operationId": "getWorkOrderCalculationStatusUsingGET",
89
+ "description": "The parameters and request body are for method: getWorkOrderCalculationStatusUsingGET. Same endpoint also used in methods:",
90
+ "responses": {
91
+ "200": {
92
+ "description": "Successful operation",
93
+ "content": {
94
+ "application/json": {
95
+ "schema": {
96
+ "title": "result",
97
+ "type": "object"
98
+ }
99
+ }
100
+ }
101
+ }
102
+ },
103
+ "parameters": [
104
+ {
105
+ "name": "changeRequestId",
106
+ "in": "path",
107
+ "required": true,
108
+ "schema": {
109
+ "title": "changeRequestId",
110
+ "type": "number"
111
+ }
112
+ }
113
+ ],
114
+ "requestBody": {
115
+ "content": {
116
+ "application/json": {
117
+ "schema": {
118
+ "type": "object"
119
+ },
120
+ "example": {}
121
+ }
122
+ }
123
+ }
124
+ }
125
+ },
126
+ "/change-requests/rule-removal": {
127
+ "post": {
128
+ "tags": [
129
+ "RuleRemovalChangeRequestExternalController"
130
+ ],
131
+ "operationId": "createRuleRemovalRequestUsingPOST",
132
+ "description": "The parameters and request body are for method: createRuleRemovalRequestUsingPOST. Same endpoint also used in methods:",
133
+ "responses": {
134
+ "200": {
135
+ "description": "Successful operation",
136
+ "content": {
137
+ "application/json": {
138
+ "schema": {
139
+ "title": "result",
140
+ "type": "object"
141
+ }
142
+ }
143
+ }
144
+ }
145
+ },
146
+ "requestBody": {
147
+ "content": {
148
+ "application/json": {
149
+ "schema": {
150
+ "type": "string"
151
+ },
152
+ "example": "ruleRemovalChangeRequest"
153
+ }
154
+ }
155
+ }
156
+ }
157
+ },
158
+ "/change-requests/traffic": {
159
+ "post": {
160
+ "tags": [
161
+ "TrafficChangeRequestExternalController"
162
+ ],
163
+ "operationId": "createTrafficChangeRequestUsingPOST",
164
+ "description": "The parameters and request body are for method: createTrafficChangeRequestUsingPOST. Same endpoint also used in methods:",
165
+ "responses": {
166
+ "200": {
167
+ "description": "Successful operation",
168
+ "content": {
169
+ "application/json": {
170
+ "schema": {
171
+ "title": "result",
172
+ "type": "object"
173
+ }
174
+ }
175
+ }
176
+ }
177
+ },
178
+ "requestBody": {
179
+ "content": {
180
+ "application/json": {
181
+ "schema": {
182
+ "type": "string"
183
+ },
184
+ "example": "trafficChangeRequest"
185
+ }
186
+ }
187
+ }
188
+ }
189
+ },
190
+ "/change-requests/traffic/{changeRequestId}": {
191
+ "get": {
192
+ "tags": [
193
+ "TrafficChangeRequestExternalController"
194
+ ],
195
+ "operationId": "getTicketUsingGET",
196
+ "description": "The parameters and request body are for method: getTicketUsingGET. Same endpoint also used in methods:",
197
+ "responses": {
198
+ "200": {
199
+ "description": "Successful operation",
200
+ "content": {
201
+ "application/json": {
202
+ "schema": {
203
+ "title": "result",
204
+ "type": "object"
205
+ }
206
+ }
207
+ }
208
+ }
209
+ },
210
+ "parameters": [
211
+ {
212
+ "name": "changeRequestId",
213
+ "in": "path",
214
+ "required": true,
215
+ "schema": {
216
+ "title": "changeRequestId",
217
+ "type": "number"
218
+ }
219
+ }
220
+ ],
221
+ "requestBody": {
222
+ "content": {
223
+ "application/json": {
224
+ "schema": {
225
+ "type": "object"
226
+ },
227
+ "example": {}
228
+ }
229
+ }
230
+ }
231
+ }
232
+ },
233
+ "/change-requests/traffic/{changeRequestId}/fields": {
234
+ "put": {
235
+ "tags": [
236
+ "TrafficChangeRequestExternalController"
237
+ ],
238
+ "operationId": "updateTrafficChangeRequestCustomFieldsUsingPUT",
239
+ "description": "The parameters and request body are for method: updateTrafficChangeRequestCustomFieldsUsingPUT. Same endpoint also used in methods:",
240
+ "responses": {
241
+ "200": {
242
+ "description": "Successful operation",
243
+ "content": {
244
+ "application/json": {
245
+ "schema": {
246
+ "title": "result",
247
+ "type": "object"
248
+ }
249
+ }
250
+ }
251
+ }
252
+ },
253
+ "parameters": [
254
+ {
255
+ "name": "changeRequestId",
256
+ "in": "path",
257
+ "required": true,
258
+ "schema": {
259
+ "title": "changeRequestId",
260
+ "type": "number"
261
+ }
262
+ }
263
+ ],
264
+ "requestBody": {
265
+ "content": {
266
+ "application/json": {
267
+ "schema": {
268
+ "type": "object",
269
+ "properties": {
270
+ "trafficChangeRequestFields": {
271
+ "type": "string"
272
+ }
273
+ }
274
+ },
275
+ "example": {
276
+ "trafficChangeRequestFields": "trafficChangeRequestFields"
277
+ }
278
+ }
279
+ }
280
+ }
281
+ }
282
+ },
283
+ "/change-requests/traffic/{changeRequestId}/work-order/implement": {
284
+ "post": {
285
+ "tags": [
286
+ "ActiveChangeExternalController"
287
+ ],
288
+ "operationId": "calculateActiveChangeUsingPOST",
289
+ "description": "The parameters and request body are for method: calculateActiveChangeUsingPOST. Same endpoint also used in methods:",
290
+ "responses": {
291
+ "200": {
292
+ "description": "Successful operation",
293
+ "content": {
294
+ "application/json": {
295
+ "schema": {
296
+ "title": "result",
297
+ "type": "object"
298
+ }
299
+ }
300
+ }
301
+ }
302
+ },
303
+ "parameters": [
304
+ {
305
+ "name": "changeRequestId",
306
+ "in": "path",
307
+ "required": true,
308
+ "schema": {
309
+ "title": "changeRequestId",
310
+ "type": "number"
311
+ }
312
+ }
313
+ ],
314
+ "requestBody": {
315
+ "content": {
316
+ "application/json": {
317
+ "schema": {
318
+ "type": "object"
319
+ },
320
+ "example": {}
321
+ }
322
+ }
323
+ }
324
+ }
325
+ },
326
+ "/change-requests/traffic/{changeRequestId}/work-order/implementation/result": {
327
+ "get": {
328
+ "tags": [
329
+ "ActiveChangeExternalController"
330
+ ],
331
+ "operationId": "getActiveChangeStatusUsingGET",
332
+ "description": "The parameters and request body are for method: getActiveChangeStatusUsingGET. Same endpoint also used in methods:",
333
+ "responses": {
334
+ "200": {
335
+ "description": "Successful operation",
336
+ "content": {
337
+ "application/json": {
338
+ "schema": {
339
+ "title": "result",
340
+ "type": "object"
341
+ }
342
+ }
343
+ }
344
+ }
345
+ },
346
+ "parameters": [
347
+ {
348
+ "name": "changeRequestId",
349
+ "in": "path",
350
+ "required": true,
351
+ "schema": {
352
+ "title": "changeRequestId",
353
+ "type": "number"
354
+ }
355
+ }
356
+ ],
357
+ "requestBody": {
358
+ "content": {
359
+ "application/json": {
360
+ "schema": {
361
+ "type": "object"
362
+ },
363
+ "example": {}
364
+ }
365
+ }
366
+ }
367
+ }
368
+ },
369
+ "/request/object": {
370
+ "post": {
371
+ "tags": [
372
+ "ObjectChangeRequestExternalController"
373
+ ],
374
+ "operationId": "createObjectChangeRequestUsingPOST",
375
+ "description": "The parameters and request body are for method: createObjectChangeRequestUsingPOST. Same endpoint also used in methods:",
376
+ "responses": {
377
+ "200": {
378
+ "description": "Successful operation",
379
+ "content": {
380
+ "application/json": {
381
+ "schema": {
382
+ "title": "result",
383
+ "type": "object"
384
+ }
385
+ }
386
+ }
387
+ }
388
+ },
389
+ "requestBody": {
390
+ "content": {
391
+ "application/json": {
392
+ "schema": {
393
+ "type": "string"
394
+ },
395
+ "example": "objectChangeRequestDetails"
396
+ }
397
+ }
398
+ }
399
+ }
400
+ },
401
+ "/savedsearch": {
402
+ "get": {
403
+ "tags": [
404
+ "SavedSearchController"
405
+ ],
406
+ "operationId": "getSavedSearchByNameProxyUsingGET",
407
+ "description": "The parameters and request body are for method: getSavedSearchByNameProxyUsingGET. Same endpoint also used in methods:",
408
+ "responses": {
409
+ "200": {
410
+ "description": "Successful operation",
411
+ "content": {
412
+ "application/json": {
413
+ "schema": {
414
+ "title": "result",
415
+ "type": "object"
416
+ }
417
+ }
418
+ }
419
+ }
420
+ },
421
+ "parameters": [
422
+ {
423
+ "name": "savedSearchName",
424
+ "in": "query",
425
+ "required": true,
426
+ "schema": {
427
+ "type": "string"
428
+ }
429
+ }
430
+ ],
431
+ "requestBody": {
432
+ "content": {
433
+ "application/json": {
434
+ "schema": {
435
+ "type": "object"
436
+ },
437
+ "example": {}
438
+ }
439
+ }
440
+ }
441
+ }
442
+ },
443
+ "/session": {
444
+ "get": {
445
+ "tags": [
446
+ "SessionExternalController"
447
+ ],
448
+ "operationId": "verifySessionStatusUsingGET",
449
+ "description": "The parameters and request body are for method: verifySessionStatusUsingGET. Same endpoint also used in methods:",
450
+ "responses": {
451
+ "200": {
452
+ "description": "Successful operation",
453
+ "content": {
454
+ "application/json": {
455
+ "schema": {
456
+ "title": "result",
457
+ "type": "object"
458
+ }
459
+ }
460
+ }
461
+ }
462
+ },
463
+ "requestBody": {
464
+ "content": {
465
+ "application/json": {
466
+ "schema": {
467
+ "type": "object"
468
+ },
469
+ "example": {}
470
+ }
471
+ }
472
+ }
473
+ }
474
+ },
475
+ "/templates": {
476
+ "get": {
477
+ "tags": [
478
+ "RequestTemplateExternalController"
479
+ ],
480
+ "operationId": "getTemplatesUsingGET",
481
+ "description": "The parameters and request body are for method: getTemplatesUsingGET. Same endpoint also used in methods:",
482
+ "responses": {
483
+ "200": {
484
+ "description": "Successful operation",
485
+ "content": {
486
+ "application/json": {
487
+ "schema": {
488
+ "title": "result",
489
+ "type": "object"
490
+ }
491
+ }
492
+ }
493
+ }
494
+ },
495
+ "requestBody": {
496
+ "content": {
497
+ "application/json": {
498
+ "schema": {
499
+ "type": "object"
500
+ },
501
+ "example": {}
502
+ }
503
+ }
504
+ }
505
+ }
506
+ }
507
+ },
508
+ "components": {
509
+ "schemas": {}
510
+ }
511
+ }
@@ -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": 15
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": 19
33
+ },
34
+ {
35
+ "owner": "packageJson",
36
+ "description": "Runtime Library dependency",
37
+ "value": "5.10.16"
38
+ },
39
+ {
40
+ "owner": "propertiesSchemaJson",
41
+ "description": "Adapter properties defined in the propertiesSchema file",
42
+ "value": 79
43
+ },
44
+ {
45
+ "owner": "markdown",
46
+ "description": "Number of lines in the README.md",
47
+ "value": 345
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": 662
58
+ },
59
+ {
60
+ "owner": "markdown",
61
+ "description": "Number of lines in the TROUBLESHOOT.md",
62
+ "value": 57
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": 1834
78
+ },
79
+ {
80
+ "owner": "unitTestJS",
81
+ "description": "Number of unit tests",
82
+ "value": 93
83
+ },
84
+ {
85
+ "owner": "integrationTestJS",
86
+ "description": "Number of lines of code in integration tests",
87
+ "value": 855
88
+ },
89
+ {
90
+ "owner": "integrationTestJS",
91
+ "description": "Number of integration tests",
92
+ "value": 22
93
+ },
94
+ {
95
+ "owner": "staticFile",
96
+ "description": "Number of lines of code in adapterBase.js",
97
+ "value": 1489
98
+ },
99
+ {
100
+ "owner": "staticFile",
101
+ "description": "Number of static files added",
102
+ "value": 37
103
+ },
104
+ {
105
+ "owner": "Overall",
106
+ "description": "Total lines of Code",
107
+ "value": 4178
108
+ },
109
+ {
110
+ "owner": "Overall",
111
+ "description": "Total Tests",
112
+ "value": 115
113
+ },
114
+ {
115
+ "owner": "Overall",
116
+ "description": "Total Files",
117
+ "value": 6
118
+ }
119
+ ]
120
+ }
@@ -95,18 +95,22 @@
95
95
  "enabled": false,
96
96
  "accept_invalid_cert": false,
97
97
  "ca_file": "",
98
+ "ca_file_content": "",
98
99
  "key_file": "",
99
100
  "cert_file": "",
100
101
  "secure_protocol": "",
101
102
  "ciphers": ""
102
103
  },
103
104
  "mongo": {
105
+ "url": "",
104
106
  "host": "",
105
107
  "port": 0,
106
108
  "database": "",
109
+ "dbAuth": false,
107
110
  "username": "",
108
111
  "password": "",
109
112
  "replSet": "",
113
+ "addSrv": false,
110
114
  "db_ssl": {
111
115
  "enabled": false,
112
116
  "accept_invalid_cert": false,