@sw-tsdk/plugin-connector 3.5.0 → 3.6.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.
- package/README.md +66 -41
- package/lib/commands/component/create.d.ts +2 -0
- package/lib/commands/component/create.js +30 -6
- package/lib/commands/component/create.js.map +1 -1
- package/lib/commands/component/logo.js +4 -4
- package/lib/commands/component/logo.js.map +1 -1
- package/lib/commands/component/ssp.js +2 -2
- package/lib/commands/component/ssp.js.map +1 -1
- package/lib/commands/connector/create/openapi.js +4 -3
- package/lib/commands/connector/create/openapi.js.map +1 -1
- package/lib/commands/connector/create.js +9 -3
- package/lib/commands/connector/create.js.map +1 -1
- package/lib/commands/description/component.js +2 -2
- package/lib/commands/description/component.js.map +1 -1
- package/lib/commands/playbook/create.js +17 -14
- package/lib/commands/playbook/create.js.map +1 -1
- package/lib/commands/playbook/logo.d.ts +12 -0
- package/lib/commands/playbook/logo.js +67 -0
- package/lib/commands/playbook/logo.js.map +1 -0
- package/lib/commands/playbook/ssp.js +1 -1
- package/lib/commands/playbook/ssp.js.map +1 -1
- package/lib/commands/solution/create.d.ts +2 -0
- package/lib/commands/solution/create.js +23 -3
- package/lib/commands/solution/create.js.map +1 -1
- package/lib/commands/solution/logo.js +4 -4
- package/lib/commands/solution/logo.js.map +1 -1
- package/lib/commands/solution/ssp.js +2 -2
- package/lib/commands/solution/ssp.js.map +1 -1
- package/lib/common.d.ts +3 -2
- package/lib/common.js +10 -5
- package/lib/common.js.map +1 -1
- package/lib/types/connector-types.d.ts +5 -2
- package/oclif.manifest.json +61 -1
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -16,7 +16,7 @@ $ npm install -g @sw-tsdk/plugin-connector
|
|
|
16
16
|
$ sw-tsdk-connector COMMAND
|
|
17
17
|
running command...
|
|
18
18
|
$ sw-tsdk-connector (--version)
|
|
19
|
-
@sw-tsdk/plugin-connector/3.
|
|
19
|
+
@sw-tsdk/plugin-connector/3.6.0 linux-x64 node-v16.20.2
|
|
20
20
|
$ sw-tsdk-connector --help [COMMAND]
|
|
21
21
|
USAGE
|
|
22
22
|
$ sw-tsdk-connector COMMAND
|
|
@@ -48,6 +48,7 @@ USAGE
|
|
|
48
48
|
* [`sw-tsdk-connector description:component`](#sw-tsdk-connector-descriptioncomponent)
|
|
49
49
|
* [`sw-tsdk-connector description:connector`](#sw-tsdk-connector-descriptionconnector)
|
|
50
50
|
* [`sw-tsdk-connector playbook:create`](#sw-tsdk-connector-playbookcreate)
|
|
51
|
+
* [`sw-tsdk-connector playbook:logo`](#sw-tsdk-connector-playbooklogo)
|
|
51
52
|
* [`sw-tsdk-connector playbook:ssp`](#sw-tsdk-connector-playbookssp)
|
|
52
53
|
* [`sw-tsdk-connector solution:create`](#sw-tsdk-connector-solutioncreate)
|
|
53
54
|
* [`sw-tsdk-connector solution:logo`](#sw-tsdk-connector-solutionlogo)
|
|
@@ -71,7 +72,7 @@ DESCRIPTION
|
|
|
71
72
|
Update a connector action.
|
|
72
73
|
```
|
|
73
74
|
|
|
74
|
-
_See code: [lib/commands/action/add.js](https://github.com/swimlane/turbine-sdk/blob/v3.
|
|
75
|
+
_See code: [lib/commands/action/add.js](https://github.com/swimlane/turbine-sdk/blob/v3.6.0/lib/commands/action/add.js)_
|
|
75
76
|
|
|
76
77
|
## `sw-tsdk-connector action:generate:data`
|
|
77
78
|
|
|
@@ -96,7 +97,7 @@ DESCRIPTION
|
|
|
96
97
|
Use to test a task in an integration
|
|
97
98
|
```
|
|
98
99
|
|
|
99
|
-
_See code: [lib/commands/action/generate/data.js](https://github.com/swimlane/turbine-sdk/blob/v3.
|
|
100
|
+
_See code: [lib/commands/action/generate/data.js](https://github.com/swimlane/turbine-sdk/blob/v3.6.0/lib/commands/action/generate/data.js)_
|
|
100
101
|
|
|
101
102
|
## `sw-tsdk-connector action:generate:input`
|
|
102
103
|
|
|
@@ -121,7 +122,7 @@ DESCRIPTION
|
|
|
121
122
|
Update action input schema.
|
|
122
123
|
```
|
|
123
124
|
|
|
124
|
-
_See code: [lib/commands/action/generate/input.js](https://github.com/swimlane/turbine-sdk/blob/v3.
|
|
125
|
+
_See code: [lib/commands/action/generate/input.js](https://github.com/swimlane/turbine-sdk/blob/v3.6.0/lib/commands/action/generate/input.js)_
|
|
125
126
|
|
|
126
127
|
## `sw-tsdk-connector action:generate:output`
|
|
127
128
|
|
|
@@ -145,7 +146,7 @@ DESCRIPTION
|
|
|
145
146
|
Update a connector action.
|
|
146
147
|
```
|
|
147
148
|
|
|
148
|
-
_See code: [lib/commands/action/generate/output.js](https://github.com/swimlane/turbine-sdk/blob/v3.
|
|
149
|
+
_See code: [lib/commands/action/generate/output.js](https://github.com/swimlane/turbine-sdk/blob/v3.6.0/lib/commands/action/generate/output.js)_
|
|
149
150
|
|
|
150
151
|
## `sw-tsdk-connector action:run:local`
|
|
151
152
|
|
|
@@ -174,7 +175,7 @@ DESCRIPTION
|
|
|
174
175
|
Runs a connector action. (Defaults to current image version in local repository).
|
|
175
176
|
```
|
|
176
177
|
|
|
177
|
-
_See code: [lib/commands/action/run/local.js](https://github.com/swimlane/turbine-sdk/blob/v3.
|
|
178
|
+
_See code: [lib/commands/action/run/local.js](https://github.com/swimlane/turbine-sdk/blob/v3.6.0/lib/commands/action/run/local.js)_
|
|
178
179
|
|
|
179
180
|
## `sw-tsdk-connector asset:add`
|
|
180
181
|
|
|
@@ -195,7 +196,7 @@ DESCRIPTION
|
|
|
195
196
|
Update a connector action.
|
|
196
197
|
```
|
|
197
198
|
|
|
198
|
-
_See code: [lib/commands/asset/add.js](https://github.com/swimlane/turbine-sdk/blob/v3.
|
|
199
|
+
_See code: [lib/commands/asset/add.js](https://github.com/swimlane/turbine-sdk/blob/v3.6.0/lib/commands/asset/add.js)_
|
|
199
200
|
|
|
200
201
|
## `sw-tsdk-connector component:create`
|
|
201
202
|
|
|
@@ -205,7 +206,8 @@ Scaffold a new Component
|
|
|
205
206
|
USAGE
|
|
206
207
|
$ sw-tsdk-connector component:create [-d <value>] [--componentUseCaseType <value>] [--componentFamily <value>]
|
|
207
208
|
[--vendor <value>] [--componentName <value>] [--keywords <value>] [--description <value>] [--logoPath <value>]
|
|
208
|
-
[--sspPath <value>] [--author <value>] [--authorEmail <value>] [--homepage <value>]
|
|
209
|
+
[--overviewImagePath <value>] [--sspPath <value>] [--author <value>] [--authorEmail <value>] [--homepage <value>]
|
|
210
|
+
[-h]
|
|
209
211
|
|
|
210
212
|
FLAGS
|
|
211
213
|
-d, --directory=<value> [default: ./] root directory for where to store Component.
|
|
@@ -219,6 +221,7 @@ FLAGS
|
|
|
219
221
|
--homepage=<value> Component Author Support URL
|
|
220
222
|
--keywords=<value> Enter keywords
|
|
221
223
|
--logoPath=<value> URL or absolute path to logo file
|
|
224
|
+
--overviewImagePath=<value> URL or absolute path to overview image file
|
|
222
225
|
--sspPath=<value> absolute path to .ssp file
|
|
223
226
|
--vendor=<value> Vendor (e.g. CrowdStrike)
|
|
224
227
|
|
|
@@ -226,7 +229,7 @@ DESCRIPTION
|
|
|
226
229
|
Scaffold a new Component
|
|
227
230
|
```
|
|
228
231
|
|
|
229
|
-
_See code: [lib/commands/component/create.js](https://github.com/swimlane/turbine-sdk/blob/v3.
|
|
232
|
+
_See code: [lib/commands/component/create.js](https://github.com/swimlane/turbine-sdk/blob/v3.6.0/lib/commands/component/create.js)_
|
|
230
233
|
|
|
231
234
|
## `sw-tsdk-connector component:logo`
|
|
232
235
|
|
|
@@ -247,7 +250,7 @@ DESCRIPTION
|
|
|
247
250
|
Update a Component logo.
|
|
248
251
|
```
|
|
249
252
|
|
|
250
|
-
_See code: [lib/commands/component/logo.js](https://github.com/swimlane/turbine-sdk/blob/v3.
|
|
253
|
+
_See code: [lib/commands/component/logo.js](https://github.com/swimlane/turbine-sdk/blob/v3.6.0/lib/commands/component/logo.js)_
|
|
251
254
|
|
|
252
255
|
## `sw-tsdk-connector component:ssp`
|
|
253
256
|
|
|
@@ -268,7 +271,7 @@ DESCRIPTION
|
|
|
268
271
|
Update an SSP.
|
|
269
272
|
```
|
|
270
273
|
|
|
271
|
-
_See code: [lib/commands/component/ssp.js](https://github.com/swimlane/turbine-sdk/blob/v3.
|
|
274
|
+
_See code: [lib/commands/component/ssp.js](https://github.com/swimlane/turbine-sdk/blob/v3.6.0/lib/commands/component/ssp.js)_
|
|
272
275
|
|
|
273
276
|
## `sw-tsdk-connector connector:build`
|
|
274
277
|
|
|
@@ -298,7 +301,7 @@ DESCRIPTION
|
|
|
298
301
|
Builds a local docker image of the connector.
|
|
299
302
|
```
|
|
300
303
|
|
|
301
|
-
_See code: [lib/commands/connector/build.js](https://github.com/swimlane/turbine-sdk/blob/v3.
|
|
304
|
+
_See code: [lib/commands/connector/build.js](https://github.com/swimlane/turbine-sdk/blob/v3.6.0/lib/commands/connector/build.js)_
|
|
302
305
|
|
|
303
306
|
## `sw-tsdk-connector connector:create`
|
|
304
307
|
|
|
@@ -332,7 +335,7 @@ DESCRIPTION
|
|
|
332
335
|
Scaffold a new connector
|
|
333
336
|
```
|
|
334
337
|
|
|
335
|
-
_See code: [lib/commands/connector/create.js](https://github.com/swimlane/turbine-sdk/blob/v3.
|
|
338
|
+
_See code: [lib/commands/connector/create.js](https://github.com/swimlane/turbine-sdk/blob/v3.6.0/lib/commands/connector/create.js)_
|
|
336
339
|
|
|
337
340
|
## `sw-tsdk-connector connector:create:openapi`
|
|
338
341
|
|
|
@@ -361,7 +364,7 @@ DESCRIPTION
|
|
|
361
364
|
Scaffold a new connector
|
|
362
365
|
```
|
|
363
366
|
|
|
364
|
-
_See code: [lib/commands/connector/create/openapi.js](https://github.com/swimlane/turbine-sdk/blob/v3.
|
|
367
|
+
_See code: [lib/commands/connector/create/openapi.js](https://github.com/swimlane/turbine-sdk/blob/v3.6.0/lib/commands/connector/create/openapi.js)_
|
|
365
368
|
|
|
366
369
|
## `sw-tsdk-connector connector:create:source`
|
|
367
370
|
|
|
@@ -379,7 +382,7 @@ DESCRIPTION
|
|
|
379
382
|
Generates 11x source from 10x
|
|
380
383
|
```
|
|
381
384
|
|
|
382
|
-
_See code: [lib/commands/connector/create/source.js](https://github.com/swimlane/turbine-sdk/blob/v3.
|
|
385
|
+
_See code: [lib/commands/connector/create/source.js](https://github.com/swimlane/turbine-sdk/blob/v3.6.0/lib/commands/connector/create/source.js)_
|
|
383
386
|
|
|
384
387
|
## `sw-tsdk-connector connector:lint`
|
|
385
388
|
|
|
@@ -402,7 +405,7 @@ DESCRIPTION
|
|
|
402
405
|
Use to lint the connector
|
|
403
406
|
```
|
|
404
407
|
|
|
405
|
-
_See code: [lib/commands/connector/lint.js](https://github.com/swimlane/turbine-sdk/blob/v3.
|
|
408
|
+
_See code: [lib/commands/connector/lint.js](https://github.com/swimlane/turbine-sdk/blob/v3.6.0/lib/commands/connector/lint.js)_
|
|
406
409
|
|
|
407
410
|
## `sw-tsdk-connector connector:logo`
|
|
408
411
|
|
|
@@ -421,7 +424,7 @@ DESCRIPTION
|
|
|
421
424
|
Update a connector.
|
|
422
425
|
```
|
|
423
426
|
|
|
424
|
-
_See code: [lib/commands/connector/logo.js](https://github.com/swimlane/turbine-sdk/blob/v3.
|
|
427
|
+
_See code: [lib/commands/connector/logo.js](https://github.com/swimlane/turbine-sdk/blob/v3.6.0/lib/commands/connector/logo.js)_
|
|
425
428
|
|
|
426
429
|
## `sw-tsdk-connector connector:sign`
|
|
427
430
|
|
|
@@ -446,7 +449,7 @@ DESCRIPTION
|
|
|
446
449
|
Builds a local docker image of the connector.
|
|
447
450
|
```
|
|
448
451
|
|
|
449
|
-
_See code: [lib/commands/connector/sign.js](https://github.com/swimlane/turbine-sdk/blob/v3.
|
|
452
|
+
_See code: [lib/commands/connector/sign.js](https://github.com/swimlane/turbine-sdk/blob/v3.6.0/lib/commands/connector/sign.js)_
|
|
450
453
|
|
|
451
454
|
## `sw-tsdk-connector connector:update`
|
|
452
455
|
|
|
@@ -466,7 +469,7 @@ DESCRIPTION
|
|
|
466
469
|
Update a connector.
|
|
467
470
|
```
|
|
468
471
|
|
|
469
|
-
_See code: [lib/commands/connector/update.js](https://github.com/swimlane/turbine-sdk/blob/v3.
|
|
472
|
+
_See code: [lib/commands/connector/update.js](https://github.com/swimlane/turbine-sdk/blob/v3.6.0/lib/commands/connector/update.js)_
|
|
470
473
|
|
|
471
474
|
## `sw-tsdk-connector connector:validate`
|
|
472
475
|
|
|
@@ -489,7 +492,7 @@ DESCRIPTION
|
|
|
489
492
|
Use to validate an integration
|
|
490
493
|
```
|
|
491
494
|
|
|
492
|
-
_See code: [lib/commands/connector/validate.js](https://github.com/swimlane/turbine-sdk/blob/v3.
|
|
495
|
+
_See code: [lib/commands/connector/validate.js](https://github.com/swimlane/turbine-sdk/blob/v3.6.0/lib/commands/connector/validate.js)_
|
|
493
496
|
|
|
494
497
|
## `sw-tsdk-connector description:action`
|
|
495
498
|
|
|
@@ -510,7 +513,7 @@ DESCRIPTION
|
|
|
510
513
|
Use to generate action description
|
|
511
514
|
```
|
|
512
515
|
|
|
513
|
-
_See code: [lib/commands/description/action.js](https://github.com/swimlane/turbine-sdk/blob/v3.
|
|
516
|
+
_See code: [lib/commands/description/action.js](https://github.com/swimlane/turbine-sdk/blob/v3.6.0/lib/commands/description/action.js)_
|
|
514
517
|
|
|
515
518
|
## `sw-tsdk-connector description:actions`
|
|
516
519
|
|
|
@@ -530,7 +533,7 @@ DESCRIPTION
|
|
|
530
533
|
Use to generate description for all actions
|
|
531
534
|
```
|
|
532
535
|
|
|
533
|
-
_See code: [lib/commands/description/actions.js](https://github.com/swimlane/turbine-sdk/blob/v3.
|
|
536
|
+
_See code: [lib/commands/description/actions.js](https://github.com/swimlane/turbine-sdk/blob/v3.6.0/lib/commands/description/actions.js)_
|
|
534
537
|
|
|
535
538
|
## `sw-tsdk-connector description:component`
|
|
536
539
|
|
|
@@ -553,7 +556,7 @@ DESCRIPTION
|
|
|
553
556
|
Use to generate component descriptions
|
|
554
557
|
```
|
|
555
558
|
|
|
556
|
-
_See code: [lib/commands/description/component.js](https://github.com/swimlane/turbine-sdk/blob/v3.
|
|
559
|
+
_See code: [lib/commands/description/component.js](https://github.com/swimlane/turbine-sdk/blob/v3.6.0/lib/commands/description/component.js)_
|
|
557
560
|
|
|
558
561
|
## `sw-tsdk-connector description:connector`
|
|
559
562
|
|
|
@@ -573,7 +576,7 @@ DESCRIPTION
|
|
|
573
576
|
Use to generate connector descriptions
|
|
574
577
|
```
|
|
575
578
|
|
|
576
|
-
_See code: [lib/commands/description/connector.js](https://github.com/swimlane/turbine-sdk/blob/v3.
|
|
579
|
+
_See code: [lib/commands/description/connector.js](https://github.com/swimlane/turbine-sdk/blob/v3.6.0/lib/commands/description/connector.js)_
|
|
577
580
|
|
|
578
581
|
## `sw-tsdk-connector playbook:create`
|
|
579
582
|
|
|
@@ -603,7 +606,28 @@ DESCRIPTION
|
|
|
603
606
|
Scaffold a new playbook
|
|
604
607
|
```
|
|
605
608
|
|
|
606
|
-
_See code: [lib/commands/playbook/create.js](https://github.com/swimlane/turbine-sdk/blob/v3.
|
|
609
|
+
_See code: [lib/commands/playbook/create.js](https://github.com/swimlane/turbine-sdk/blob/v3.6.0/lib/commands/playbook/create.js)_
|
|
610
|
+
|
|
611
|
+
## `sw-tsdk-connector playbook:logo`
|
|
612
|
+
|
|
613
|
+
Update a Playbook logo.
|
|
614
|
+
|
|
615
|
+
```
|
|
616
|
+
USAGE
|
|
617
|
+
$ sw-tsdk-connector playbook:logo [-d <value>] [-t <value>] [-n <value>] [-p <value>] [-h]
|
|
618
|
+
|
|
619
|
+
FLAGS
|
|
620
|
+
-d, --directory=<value> [default: ./] root directory of the playbook folder.
|
|
621
|
+
-h, --help Show CLI help.
|
|
622
|
+
-n, --componentName=<value> Playbook Name (e.g. google_alert_ingestion)
|
|
623
|
+
-p, --logoPath=<value> path or URL to product logo in PNG format.
|
|
624
|
+
-t, --componentType=<value> Playbook Type (e.g. classic)
|
|
625
|
+
|
|
626
|
+
DESCRIPTION
|
|
627
|
+
Update a Playbook logo.
|
|
628
|
+
```
|
|
629
|
+
|
|
630
|
+
_See code: [lib/commands/playbook/logo.js](https://github.com/swimlane/turbine-sdk/blob/v3.6.0/lib/commands/playbook/logo.js)_
|
|
607
631
|
|
|
608
632
|
## `sw-tsdk-connector playbook:ssp`
|
|
609
633
|
|
|
@@ -623,7 +647,7 @@ DESCRIPTION
|
|
|
623
647
|
Update an SSP
|
|
624
648
|
```
|
|
625
649
|
|
|
626
|
-
_See code: [lib/commands/playbook/ssp.js](https://github.com/swimlane/turbine-sdk/blob/v3.
|
|
650
|
+
_See code: [lib/commands/playbook/ssp.js](https://github.com/swimlane/turbine-sdk/blob/v3.6.0/lib/commands/playbook/ssp.js)_
|
|
627
651
|
|
|
628
652
|
## `sw-tsdk-connector solution:create`
|
|
629
653
|
|
|
@@ -632,26 +656,27 @@ Scaffold a new Solution
|
|
|
632
656
|
```
|
|
633
657
|
USAGE
|
|
634
658
|
$ sw-tsdk-connector solution:create [-d <value>] [--solutionFamily <value>] [--solutionName <value>] [--description
|
|
635
|
-
<value>] [--logoPath <value>] [--
|
|
636
|
-
[-h]
|
|
659
|
+
<value>] [--logoPath <value>] [--overviewImagePath <value>] [--sspPath <value>] [--author <value>] [--authorEmail
|
|
660
|
+
<value>] [--homepage <value>] [-h]
|
|
637
661
|
|
|
638
662
|
FLAGS
|
|
639
|
-
-d, --directory=<value>
|
|
640
|
-
-h, --help
|
|
641
|
-
--author=<value>
|
|
642
|
-
--authorEmail=<value>
|
|
643
|
-
--description=<value>
|
|
644
|
-
--homepage=<value>
|
|
645
|
-
--logoPath=<value>
|
|
646
|
-
--
|
|
647
|
-
--
|
|
648
|
-
--
|
|
663
|
+
-d, --directory=<value> [default: ./] root directory for where to store Solution.
|
|
664
|
+
-h, --help Show CLI help.
|
|
665
|
+
--author=<value> Solution Author
|
|
666
|
+
--authorEmail=<value> Solution Author Email
|
|
667
|
+
--description=<value> Description (e.g. SOC Solution Description)
|
|
668
|
+
--homepage=<value> Solution Author Support URL
|
|
669
|
+
--logoPath=<value> URL or absolute path to logo file
|
|
670
|
+
--overviewImagePath=<value> URL or absolute path to overview image file
|
|
671
|
+
--solutionFamily=<value> Solution Family (e.g. classic | canvas)
|
|
672
|
+
--solutionName=<value> Solution Name (e.g. SOC Solution)
|
|
673
|
+
--sspPath=<value> absolute path to .ssp file
|
|
649
674
|
|
|
650
675
|
DESCRIPTION
|
|
651
676
|
Scaffold a new Solution
|
|
652
677
|
```
|
|
653
678
|
|
|
654
|
-
_See code: [lib/commands/solution/create.js](https://github.com/swimlane/turbine-sdk/blob/v3.
|
|
679
|
+
_See code: [lib/commands/solution/create.js](https://github.com/swimlane/turbine-sdk/blob/v3.6.0/lib/commands/solution/create.js)_
|
|
655
680
|
|
|
656
681
|
## `sw-tsdk-connector solution:logo`
|
|
657
682
|
|
|
@@ -672,7 +697,7 @@ DESCRIPTION
|
|
|
672
697
|
Update a Solution logo.
|
|
673
698
|
```
|
|
674
699
|
|
|
675
|
-
_See code: [lib/commands/solution/logo.js](https://github.com/swimlane/turbine-sdk/blob/v3.
|
|
700
|
+
_See code: [lib/commands/solution/logo.js](https://github.com/swimlane/turbine-sdk/blob/v3.6.0/lib/commands/solution/logo.js)_
|
|
676
701
|
|
|
677
702
|
## `sw-tsdk-connector solution:ssp`
|
|
678
703
|
|
|
@@ -693,5 +718,5 @@ DESCRIPTION
|
|
|
693
718
|
Update an SSP.
|
|
694
719
|
```
|
|
695
720
|
|
|
696
|
-
_See code: [lib/commands/solution/ssp.js](https://github.com/swimlane/turbine-sdk/blob/v3.
|
|
721
|
+
_See code: [lib/commands/solution/ssp.js](https://github.com/swimlane/turbine-sdk/blob/v3.6.0/lib/commands/solution/ssp.js)_
|
|
697
722
|
<!-- commandsstop -->
|
|
@@ -6,6 +6,7 @@ export interface ComponentManifest {
|
|
|
6
6
|
author: string;
|
|
7
7
|
bugs: string;
|
|
8
8
|
iconImage: string;
|
|
9
|
+
overviewImage: string;
|
|
9
10
|
description: string;
|
|
10
11
|
homepage: string;
|
|
11
12
|
license: string;
|
|
@@ -27,6 +28,7 @@ export declare class Create extends Base {
|
|
|
27
28
|
keywords: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
28
29
|
description: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
29
30
|
logoPath: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
31
|
+
overviewImagePath: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
30
32
|
sspPath: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
31
33
|
author: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
32
34
|
authorEmail: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
@@ -48,7 +48,7 @@ class Create extends core_2.Base {
|
|
|
48
48
|
message: 'Description (e.g. CrowdStrike Alert Ingestion Component)',
|
|
49
49
|
},
|
|
50
50
|
{
|
|
51
|
-
type: '
|
|
51
|
+
type: 'checkbox',
|
|
52
52
|
name: 'keywords',
|
|
53
53
|
message: 'Choose a category (Comma-separated)',
|
|
54
54
|
choices: common_1.connectorCategories,
|
|
@@ -64,16 +64,22 @@ class Create extends core_2.Base {
|
|
|
64
64
|
name: 'logoPath',
|
|
65
65
|
message: 'URL or absolute path to logo file',
|
|
66
66
|
},
|
|
67
|
+
{
|
|
68
|
+
type: 'input',
|
|
69
|
+
name: 'overviewImagePath',
|
|
70
|
+
message: 'URL or absolute path to overview image file (optional)',
|
|
71
|
+
},
|
|
67
72
|
{
|
|
68
73
|
type: 'input',
|
|
69
74
|
name: 'sspPath',
|
|
70
75
|
message: 'Absolute path to .ssp file',
|
|
71
76
|
},
|
|
72
77
|
{
|
|
73
|
-
type: '
|
|
78
|
+
type: 'list',
|
|
74
79
|
name: 'author',
|
|
75
80
|
message: 'Integration Author',
|
|
76
81
|
default: 'Swimlane',
|
|
82
|
+
choices: common_1.integrationAuthors,
|
|
77
83
|
},
|
|
78
84
|
{
|
|
79
85
|
type: 'input',
|
|
@@ -108,6 +114,7 @@ class Create extends core_2.Base {
|
|
|
108
114
|
author: answers.author,
|
|
109
115
|
bugs: '',
|
|
110
116
|
iconImage: '../image/logo.png',
|
|
117
|
+
overviewImage: '../image/overview.png',
|
|
111
118
|
description: answers.description,
|
|
112
119
|
homepage: answers.homepage,
|
|
113
120
|
license: 'AGPL-3.0',
|
|
@@ -116,23 +123,39 @@ class Create extends core_2.Base {
|
|
|
116
123
|
componentUseCaseType: answers.componentUseCaseType,
|
|
117
124
|
componentFamily: answers.componentFamily,
|
|
118
125
|
componentUseCaseData: await (0, connector_1.titleCaseString)(`${title} ${answers.componentUseCaseType}`),
|
|
119
|
-
keywords: answers.keywords
|
|
126
|
+
keywords: answers.keywords,
|
|
120
127
|
};
|
|
121
128
|
core_1.ux.action.start('Generating folder structure.');
|
|
122
129
|
await (0, fs_extra_1.writeFile)((0, node_path_1.join)(componentDirectory, 'external.yml'), '', 'utf8');
|
|
123
130
|
await (0, fs_extra_1.writeFile)((0, node_path_1.join)(componentDirectory, 'README.md'), 'Description will be updated shortly.', 'utf8');
|
|
124
131
|
await (0, fs_extra_1.writeFile)((0, node_path_1.join)(componentDirectory, 'EXTERNAL_README.md'), 'Description will be updated shortly.', 'utf8');
|
|
125
132
|
await (0, fs_extra_1.writeFile)((0, node_path_1.join)(componentDirectory, 'documentation.README.md'), 'Description will be updated shortly.', 'utf8');
|
|
133
|
+
core_1.ux.action.start('Processing Categories');
|
|
134
|
+
if (answers.keywords.length === 0) {
|
|
135
|
+
core_1.ux.action.stop();
|
|
136
|
+
return this.error('Categories are required. Press <space> to select the category.');
|
|
137
|
+
}
|
|
126
138
|
core_1.ux.action.start('Processing Logo');
|
|
127
139
|
try {
|
|
128
140
|
if (!answers.logoPath) {
|
|
129
141
|
throw new Error('Invalid image path.');
|
|
130
142
|
}
|
|
131
|
-
await (0, connector_1.updateImage)(componentDirectory, answers.logoPath);
|
|
143
|
+
await (0, connector_1.updateImage)(componentDirectory, answers.logoPath, 'logo');
|
|
132
144
|
}
|
|
133
|
-
catch {
|
|
145
|
+
catch (error) {
|
|
146
|
+
core_1.ux.action.stop();
|
|
147
|
+
errors.push(error.message);
|
|
148
|
+
}
|
|
149
|
+
core_1.ux.action.stop();
|
|
150
|
+
core_1.ux.action.start('Processing Overview Image');
|
|
151
|
+
try {
|
|
152
|
+
if (answers.overviewImagePath) {
|
|
153
|
+
await (0, connector_1.updateImage)(componentDirectory, answers.overviewImagePath, 'overview');
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
catch (error) {
|
|
134
157
|
core_1.ux.action.stop();
|
|
135
|
-
errors.push(
|
|
158
|
+
errors.push(error.message);
|
|
136
159
|
}
|
|
137
160
|
core_1.ux.action.stop();
|
|
138
161
|
if (answers.sspPath?.endsWith('.ssp')) {
|
|
@@ -172,6 +195,7 @@ Create.flags = {
|
|
|
172
195
|
keywords: core_1.Flags.string({ description: 'Enter keywords' }),
|
|
173
196
|
description: core_1.Flags.string({ description: 'Description (e.g. CrowdStrike Alert Ingestion Component)' }),
|
|
174
197
|
logoPath: core_1.Flags.string({ description: 'URL or absolute path to logo file' }),
|
|
198
|
+
overviewImagePath: core_1.Flags.string({ description: 'URL or absolute path to overview image file' }),
|
|
175
199
|
sspPath: core_1.Flags.string({ description: 'absolute path to .ssp file' }),
|
|
176
200
|
author: core_1.Flags.string({ description: 'Component Author' }),
|
|
177
201
|
authorEmail: core_1.Flags.string({ description: 'Component Author Email' }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create.js","sourceRoot":"","sources":["../../../src/commands/component/create.ts"],"names":[],"mappings":";;;;AAAA,sCAAqC;AACrC,kDAA+D;AAC/D,wCAAkC;AAClC,uCAA6C;AAC7C,gEAA+B;AAC/B,8DAA0B;AAC1B,oDAA6B;AAC7B,qCAAgC;AAChC,wDAAiC;AACjC,yCAAuC;AACvC,2CAAoC;AACpC,
|
|
1
|
+
{"version":3,"file":"create.js","sourceRoot":"","sources":["../../../src/commands/component/create.ts"],"names":[],"mappings":";;;;AAAA,sCAAqC;AACrC,kDAA+D;AAC/D,wCAAkC;AAClC,uCAA6C;AAC7C,gEAA+B;AAC/B,8DAA0B;AAC1B,oDAA6B;AAC7B,qCAAgC;AAChC,wDAAiC;AACjC,yCAAuC;AACvC,2CAAoC;AACpC,yCAAiH;AAqBjH,qCAAqC;AACrC,MAAa,MAAO,SAAQ,WAAI;IAyB9B,KAAK,CAAC,GAAG;QACP,MAAM,EAAC,KAAK,EAAC,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAA;QAExC,IAAI,EAAC,SAAS,EAAC,GAAG,KAAK,CAAA;QACvB,SAAS,GAAG,IAAA,mBAAO,EAAC,SAAS,IAAI,OAAO,CAAC,GAAG,EAAE,CAAC,CAAA;QAE/C,IAAI;YACF,MAAM,kBAAQ,CAAC,MAAM,CAAC,SAAS,CAAC,CAAA;SACjC;QAAC,MAAM;YACN,IAAI,CAAC,KAAK,CAAC,oBAAoB,SAAS,EAAE,CAAC,CAAA;SAC5C;QAED,MAAM,eAAe,GAAG,CAAC;gBACvB,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,iBAAiB;gBACvB,OAAO,EAAE,qCAAqC;gBAC9C,OAAO,EAAE,0BAAiB;aAC3B;YACD;gBACE,IAAI,EAAE,OAAO;gBACb,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,2BAA2B;aACrC;YACD;gBACE,IAAI,EAAE,OAAO;gBACb,IAAI,EAAE,eAAe;gBACrB,OAAO,EAAE,uCAAuC;aACjD;YACD;gBACE,IAAI,EAAE,OAAO;gBACb,I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AC,WAAW,EAAE,8BAA8B,EAAC,CAAC;IACrE,IAAI,EAAE,YAAK,CAAC,IAAI,CAAC,EAAC,IAAI,EAAE,GAAG,EAAC,CAAC;CAC9B,CAAA"}
|
|
@@ -21,8 +21,8 @@ class Logo extends core_2.Base {
|
|
|
21
21
|
message: 'URL or absolute path to logo file',
|
|
22
22
|
},
|
|
23
23
|
];
|
|
24
|
-
const componentTypeSelected = await (0, common_1.
|
|
25
|
-
const componentNameSelected = await (0, common_1.
|
|
24
|
+
const componentTypeSelected = await (0, common_1.chooseContentType)();
|
|
25
|
+
const componentNameSelected = await (0, common_1.chooseContentName)(directory, componentTypeSelected);
|
|
26
26
|
const filteredQuestions = masterQuestions.filter(q => !flags[q.name]);
|
|
27
27
|
const answers = Object.assign(await inquirer_1.default.prompt(filteredQuestions), flags);
|
|
28
28
|
const componentDirectory = (0, node_path_1.join)(directory, componentTypeSelected, componentNameSelected);
|
|
@@ -33,9 +33,9 @@ class Logo extends core_2.Base {
|
|
|
33
33
|
}
|
|
34
34
|
await (0, connector_1.updateImage)(componentDirectory, answers.logoPath);
|
|
35
35
|
}
|
|
36
|
-
catch {
|
|
36
|
+
catch (error) {
|
|
37
37
|
core_1.ux.action.stop();
|
|
38
|
-
this.error(
|
|
38
|
+
this.error(error);
|
|
39
39
|
}
|
|
40
40
|
core_1.ux.action.stop();
|
|
41
41
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logo.js","sourceRoot":"","sources":["../../../src/commands/component/logo.ts"],"names":[],"mappings":";;;;AAAA,sCAAqC;AACrC,kDAA8C;AAC9C,wCAAkC;AAClC,gEAA+B;AAC/B,yCAAuC;AAEvC,
|
|
1
|
+
{"version":3,"file":"logo.js","sourceRoot":"","sources":["../../../src/commands/component/logo.ts"],"names":[],"mappings":";;;;AAAA,sCAAqC;AACrC,kDAA8C;AAC9C,wCAAkC;AAClC,gEAA+B;AAC/B,yCAAuC;AAEvC,yCAAiE;AAGjE,qCAAqC;AAC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,KAAK,CAAC,KAAK,CAAC,CAAA;SAClB;QAED,SAAE,CAAC,MAAM,CAAC,IAAI,EAAE,CAAA;IAClB,CAAC;;AA5DL,oBA6DC;AA5DU,gBAAW,GAAG,0BAA0B,CAAA;AAExC,UAAK,GAAG;IACb,GAAG,WAAI,CAAC,KAAK;IACb,SAAS,EAAE,YAAK,CAAC,MAAM,CAAC;QACtB,IAAI,EAAE,GAAG;QACT,WAAW,EAAE,yCAAyC;QACtD,OAAO,EAAE,IAAI;KACd,CAAC;IACF,aAAa,EAAE,YAAK,CAAC,MAAM,CAAC;QAC1B,WAAW,EAAE,+BAA+B;QAC5C,IAAI,EAAE,GAAG;KACV,CAAC;IACF,aAAa,EAAE,YAAK,CAAC,MAAM,CAAC;QAC1B,WAAW,EAAE,8CAA8C;QAC3D,IAAI,EAAE,GAAG;KACV,CAAC;IACF,QAAQ,EAAE,YAAK,CAAC,MAAM,CAAC;QACrB,IAAI,EAAE,GAAG;QACT,WAAW,EAAE,4CAA4C;KAC1D,CAAC;IACF,IAAI,EAAE,YAAK,CAAC,IAAI,CAAC,EAAC,IAAI,EAAE,GAAG,EAAC,CAAC;CAC9B,CAAA"}
|
|
@@ -22,8 +22,8 @@ class Logo extends core_2.Base {
|
|
|
22
22
|
message: 'Absolute path to .SSP file',
|
|
23
23
|
},
|
|
24
24
|
];
|
|
25
|
-
const componentTypeSelected = await (0, common_1.
|
|
26
|
-
const componentNameSelected = await (0, common_1.
|
|
25
|
+
const componentTypeSelected = await (0, common_1.chooseContentType)();
|
|
26
|
+
const componentNameSelected = await (0, common_1.chooseContentName)(directory, componentTypeSelected);
|
|
27
27
|
const filteredQuestions = masterQuestions.filter(q => !flags[q.name]);
|
|
28
28
|
const answers = Object.assign(await inquirer_1.default.prompt(filteredQuestions), flags);
|
|
29
29
|
const componentDirectory = (0, node_path_1.join)(directory, componentTypeSelected, componentNameSelected);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ssp.js","sourceRoot":"","sources":["../../../src/commands/component/ssp.ts"],"names":[],"mappings":";;;;AAAA,sCAAqC;AACrC,wCAAkC;AAClC,gEAA+B;AAC/B,oDAA6B;AAC7B,wDAAiC;AACjC,yCAAuC;AACvC,
|
|
1
|
+
{"version":3,"file":"ssp.js","sourceRoot":"","sources":["../../../src/commands/component/ssp.ts"],"names":[],"mappings":";;;;AAAA,sCAAqC;AACrC,wCAAkC;AAClC,gEAA+B;AAC/B,oDAA6B;AAC7B,wDAAiC;AACjC,yCAAuC;AACvC,yCAAiE;AAGjE,qCAAqC;AACrC,MAAa,IAAK,SAAQ,WAAI;IAyB5B,KAAK,CAAC,GAAG;QACP,MAAM,EAAC,KAAK,EAAC,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAA;QAEtC,IAAI,EAAC,SAAS,EAAC,GAAG,KAAK,CAAA;QACvB,SAAS,GAAG,IAAA,mBAAO,EAAC,SAAS,IAAI,OAAO,CAAC,GAAG,EAAE,CAAC,CAAA;QAE/C,MAAM,eAAe,GAAG;YACtB;gBACE,IAAI,EAAE,OAAO;gBACb,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,4BAA4B;aACtC;SACF,CAAA;QAED,MAAM,qBAAqB,GAAG,MAAM,IAAA,0BAAiB,GAAE,CAAA;QACvD,MAAM,qBAAqB,GAAG,MAAM,IAAA,0BAAiB,EAAC,SAAS,EAAE,qBAAqB,CAAC,CAAA;QACvF,MAAM,iBAAiB,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAE,KAA6B,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAA;QAC9F,MAAM,OAAO,GAAqB,MAAM,CAAC,MAAM,CAAC,MAAM,kBAAQ,CAAC,MAAM,CAAC,iBAAiB,CAAC,EAAE,KAAK,CAAC,CAAA;QAEhG,MAAM,kBAAkB,GAAG,IAAA,gBAAI,EAAC,SAAS,EAAE,qBAAqB,EAAE,qBAAqB,CAAC,CAAA;Q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46
46
|
name: 'keywords',
|
|
47
47
|
message: 'Choose a category',
|
|
48
48
|
choices: common_1.connectorCategories,
|
|
@@ -58,10 +58,11 @@ class OpenAPI extends core_2.Base {
|
|
|
58
58
|
message: 'URL or absolute path to logo file',
|
|
59
59
|
},
|
|
60
60
|
{
|
|
61
|
-
type: '
|
|
61
|
+
type: 'list',
|
|
62
62
|
name: 'author',
|
|
63
63
|
message: 'Integration Author',
|
|
64
64
|
default: 'Swimlane',
|
|
65
|
+
choices: common_1.integrationAuthors,
|
|
65
66
|
},
|
|
66
67
|
{
|
|
67
68
|
type: 'input',
|
|
@@ -102,7 +103,7 @@ class OpenAPI extends core_2.Base {
|
|
|
102
103
|
iconImage: '../image/logo.png',
|
|
103
104
|
description: answers.description,
|
|
104
105
|
homepage: answers.homepage,
|
|
105
|
-
keywords:
|
|
106
|
+
keywords: answers.keywords,
|
|
106
107
|
license: 'AGPL-3.0',
|
|
107
108
|
meta: {
|
|
108
109
|
imageRepository: `quay.io/swimlane-connectors/${name}`,
|