@sw-tsdk/plugin-connector 3.4.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.
Files changed (36) hide show
  1. package/README.md +116 -39
  2. package/lib/commands/component/create.d.ts +2 -0
  3. package/lib/commands/component/create.js +30 -6
  4. package/lib/commands/component/create.js.map +1 -1
  5. package/lib/commands/component/logo.js +4 -4
  6. package/lib/commands/component/logo.js.map +1 -1
  7. package/lib/commands/component/ssp.js +2 -2
  8. package/lib/commands/component/ssp.js.map +1 -1
  9. package/lib/commands/connector/create/openapi.js +4 -3
  10. package/lib/commands/connector/create/openapi.js.map +1 -1
  11. package/lib/commands/connector/create.js +9 -3
  12. package/lib/commands/connector/create.js.map +1 -1
  13. package/lib/commands/description/component.js +2 -2
  14. package/lib/commands/description/component.js.map +1 -1
  15. package/lib/commands/playbook/create.d.ts +34 -0
  16. package/lib/commands/playbook/create.js +183 -0
  17. package/lib/commands/playbook/create.js.map +1 -0
  18. package/lib/commands/playbook/logo.d.ts +12 -0
  19. package/lib/commands/playbook/logo.js +67 -0
  20. package/lib/commands/playbook/logo.js.map +1 -0
  21. package/lib/commands/playbook/ssp.d.ts +11 -0
  22. package/lib/commands/playbook/ssp.js +60 -0
  23. package/lib/commands/playbook/ssp.js.map +1 -0
  24. package/lib/commands/solution/create.d.ts +2 -0
  25. package/lib/commands/solution/create.js +23 -3
  26. package/lib/commands/solution/create.js.map +1 -1
  27. package/lib/commands/solution/logo.js +4 -4
  28. package/lib/commands/solution/logo.js.map +1 -1
  29. package/lib/commands/solution/ssp.js +2 -2
  30. package/lib/commands/solution/ssp.js.map +1 -1
  31. package/lib/common.d.ts +3 -2
  32. package/lib/common.js +10 -5
  33. package/lib/common.js.map +1 -1
  34. package/lib/types/connector-types.d.ts +17 -2
  35. package/oclif.manifest.json +189 -1
  36. 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.4.0 linux-x64 node-v16.20.2
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
@@ -47,6 +47,9 @@ USAGE
47
47
  * [`sw-tsdk-connector description:actions`](#sw-tsdk-connector-descriptionactions)
48
48
  * [`sw-tsdk-connector description:component`](#sw-tsdk-connector-descriptioncomponent)
49
49
  * [`sw-tsdk-connector description:connector`](#sw-tsdk-connector-descriptionconnector)
50
+ * [`sw-tsdk-connector playbook:create`](#sw-tsdk-connector-playbookcreate)
51
+ * [`sw-tsdk-connector playbook:logo`](#sw-tsdk-connector-playbooklogo)
52
+ * [`sw-tsdk-connector playbook:ssp`](#sw-tsdk-connector-playbookssp)
50
53
  * [`sw-tsdk-connector solution:create`](#sw-tsdk-connector-solutioncreate)
51
54
  * [`sw-tsdk-connector solution:logo`](#sw-tsdk-connector-solutionlogo)
52
55
  * [`sw-tsdk-connector solution:ssp`](#sw-tsdk-connector-solutionssp)
@@ -69,7 +72,7 @@ DESCRIPTION
69
72
  Update a connector action.
70
73
  ```
71
74
 
72
- _See code: [lib/commands/action/add.js](https://github.com/swimlane/turbine-sdk/blob/v3.4.0/lib/commands/action/add.js)_
75
+ _See code: [lib/commands/action/add.js](https://github.com/swimlane/turbine-sdk/blob/v3.6.0/lib/commands/action/add.js)_
73
76
 
74
77
  ## `sw-tsdk-connector action:generate:data`
75
78
 
@@ -94,7 +97,7 @@ DESCRIPTION
94
97
  Use to test a task in an integration
95
98
  ```
96
99
 
97
- _See code: [lib/commands/action/generate/data.js](https://github.com/swimlane/turbine-sdk/blob/v3.4.0/lib/commands/action/generate/data.js)_
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)_
98
101
 
99
102
  ## `sw-tsdk-connector action:generate:input`
100
103
 
@@ -119,7 +122,7 @@ DESCRIPTION
119
122
  Update action input schema.
120
123
  ```
121
124
 
122
- _See code: [lib/commands/action/generate/input.js](https://github.com/swimlane/turbine-sdk/blob/v3.4.0/lib/commands/action/generate/input.js)_
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)_
123
126
 
124
127
  ## `sw-tsdk-connector action:generate:output`
125
128
 
@@ -143,7 +146,7 @@ DESCRIPTION
143
146
  Update a connector action.
144
147
  ```
145
148
 
146
- _See code: [lib/commands/action/generate/output.js](https://github.com/swimlane/turbine-sdk/blob/v3.4.0/lib/commands/action/generate/output.js)_
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)_
147
150
 
148
151
  ## `sw-tsdk-connector action:run:local`
149
152
 
@@ -172,7 +175,7 @@ DESCRIPTION
172
175
  Runs a connector action. (Defaults to current image version in local repository).
173
176
  ```
174
177
 
175
- _See code: [lib/commands/action/run/local.js](https://github.com/swimlane/turbine-sdk/blob/v3.4.0/lib/commands/action/run/local.js)_
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)_
176
179
 
177
180
  ## `sw-tsdk-connector asset:add`
178
181
 
@@ -193,7 +196,7 @@ DESCRIPTION
193
196
  Update a connector action.
194
197
  ```
195
198
 
196
- _See code: [lib/commands/asset/add.js](https://github.com/swimlane/turbine-sdk/blob/v3.4.0/lib/commands/asset/add.js)_
199
+ _See code: [lib/commands/asset/add.js](https://github.com/swimlane/turbine-sdk/blob/v3.6.0/lib/commands/asset/add.js)_
197
200
 
198
201
  ## `sw-tsdk-connector component:create`
199
202
 
@@ -203,7 +206,8 @@ Scaffold a new Component
203
206
  USAGE
204
207
  $ sw-tsdk-connector component:create [-d <value>] [--componentUseCaseType <value>] [--componentFamily <value>]
205
208
  [--vendor <value>] [--componentName <value>] [--keywords <value>] [--description <value>] [--logoPath <value>]
206
- [--sspPath <value>] [--author <value>] [--authorEmail <value>] [--homepage <value>] [-h]
209
+ [--overviewImagePath <value>] [--sspPath <value>] [--author <value>] [--authorEmail <value>] [--homepage <value>]
210
+ [-h]
207
211
 
208
212
  FLAGS
209
213
  -d, --directory=<value> [default: ./] root directory for where to store Component.
@@ -217,6 +221,7 @@ FLAGS
217
221
  --homepage=<value> Component Author Support URL
218
222
  --keywords=<value> Enter keywords
219
223
  --logoPath=<value> URL or absolute path to logo file
224
+ --overviewImagePath=<value> URL or absolute path to overview image file
220
225
  --sspPath=<value> absolute path to .ssp file
221
226
  --vendor=<value> Vendor (e.g. CrowdStrike)
222
227
 
@@ -224,7 +229,7 @@ DESCRIPTION
224
229
  Scaffold a new Component
225
230
  ```
226
231
 
227
- _See code: [lib/commands/component/create.js](https://github.com/swimlane/turbine-sdk/blob/v3.4.0/lib/commands/component/create.js)_
232
+ _See code: [lib/commands/component/create.js](https://github.com/swimlane/turbine-sdk/blob/v3.6.0/lib/commands/component/create.js)_
228
233
 
229
234
  ## `sw-tsdk-connector component:logo`
230
235
 
@@ -245,7 +250,7 @@ DESCRIPTION
245
250
  Update a Component logo.
246
251
  ```
247
252
 
248
- _See code: [lib/commands/component/logo.js](https://github.com/swimlane/turbine-sdk/blob/v3.4.0/lib/commands/component/logo.js)_
253
+ _See code: [lib/commands/component/logo.js](https://github.com/swimlane/turbine-sdk/blob/v3.6.0/lib/commands/component/logo.js)_
249
254
 
250
255
  ## `sw-tsdk-connector component:ssp`
251
256
 
@@ -266,7 +271,7 @@ DESCRIPTION
266
271
  Update an SSP.
267
272
  ```
268
273
 
269
- _See code: [lib/commands/component/ssp.js](https://github.com/swimlane/turbine-sdk/blob/v3.4.0/lib/commands/component/ssp.js)_
274
+ _See code: [lib/commands/component/ssp.js](https://github.com/swimlane/turbine-sdk/blob/v3.6.0/lib/commands/component/ssp.js)_
270
275
 
271
276
  ## `sw-tsdk-connector connector:build`
272
277
 
@@ -296,7 +301,7 @@ DESCRIPTION
296
301
  Builds a local docker image of the connector.
297
302
  ```
298
303
 
299
- _See code: [lib/commands/connector/build.js](https://github.com/swimlane/turbine-sdk/blob/v3.4.0/lib/commands/connector/build.js)_
304
+ _See code: [lib/commands/connector/build.js](https://github.com/swimlane/turbine-sdk/blob/v3.6.0/lib/commands/connector/build.js)_
300
305
 
301
306
  ## `sw-tsdk-connector connector:create`
302
307
 
@@ -330,7 +335,7 @@ DESCRIPTION
330
335
  Scaffold a new connector
331
336
  ```
332
337
 
333
- _See code: [lib/commands/connector/create.js](https://github.com/swimlane/turbine-sdk/blob/v3.4.0/lib/commands/connector/create.js)_
338
+ _See code: [lib/commands/connector/create.js](https://github.com/swimlane/turbine-sdk/blob/v3.6.0/lib/commands/connector/create.js)_
334
339
 
335
340
  ## `sw-tsdk-connector connector:create:openapi`
336
341
 
@@ -359,7 +364,7 @@ DESCRIPTION
359
364
  Scaffold a new connector
360
365
  ```
361
366
 
362
- _See code: [lib/commands/connector/create/openapi.js](https://github.com/swimlane/turbine-sdk/blob/v3.4.0/lib/commands/connector/create/openapi.js)_
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)_
363
368
 
364
369
  ## `sw-tsdk-connector connector:create:source`
365
370
 
@@ -377,7 +382,7 @@ DESCRIPTION
377
382
  Generates 11x source from 10x
378
383
  ```
379
384
 
380
- _See code: [lib/commands/connector/create/source.js](https://github.com/swimlane/turbine-sdk/blob/v3.4.0/lib/commands/connector/create/source.js)_
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)_
381
386
 
382
387
  ## `sw-tsdk-connector connector:lint`
383
388
 
@@ -400,7 +405,7 @@ DESCRIPTION
400
405
  Use to lint the connector
401
406
  ```
402
407
 
403
- _See code: [lib/commands/connector/lint.js](https://github.com/swimlane/turbine-sdk/blob/v3.4.0/lib/commands/connector/lint.js)_
408
+ _See code: [lib/commands/connector/lint.js](https://github.com/swimlane/turbine-sdk/blob/v3.6.0/lib/commands/connector/lint.js)_
404
409
 
405
410
  ## `sw-tsdk-connector connector:logo`
406
411
 
@@ -419,7 +424,7 @@ DESCRIPTION
419
424
  Update a connector.
420
425
  ```
421
426
 
422
- _See code: [lib/commands/connector/logo.js](https://github.com/swimlane/turbine-sdk/blob/v3.4.0/lib/commands/connector/logo.js)_
427
+ _See code: [lib/commands/connector/logo.js](https://github.com/swimlane/turbine-sdk/blob/v3.6.0/lib/commands/connector/logo.js)_
423
428
 
424
429
  ## `sw-tsdk-connector connector:sign`
425
430
 
@@ -444,7 +449,7 @@ DESCRIPTION
444
449
  Builds a local docker image of the connector.
445
450
  ```
446
451
 
447
- _See code: [lib/commands/connector/sign.js](https://github.com/swimlane/turbine-sdk/blob/v3.4.0/lib/commands/connector/sign.js)_
452
+ _See code: [lib/commands/connector/sign.js](https://github.com/swimlane/turbine-sdk/blob/v3.6.0/lib/commands/connector/sign.js)_
448
453
 
449
454
  ## `sw-tsdk-connector connector:update`
450
455
 
@@ -464,7 +469,7 @@ DESCRIPTION
464
469
  Update a connector.
465
470
  ```
466
471
 
467
- _See code: [lib/commands/connector/update.js](https://github.com/swimlane/turbine-sdk/blob/v3.4.0/lib/commands/connector/update.js)_
472
+ _See code: [lib/commands/connector/update.js](https://github.com/swimlane/turbine-sdk/blob/v3.6.0/lib/commands/connector/update.js)_
468
473
 
469
474
  ## `sw-tsdk-connector connector:validate`
470
475
 
@@ -487,7 +492,7 @@ DESCRIPTION
487
492
  Use to validate an integration
488
493
  ```
489
494
 
490
- _See code: [lib/commands/connector/validate.js](https://github.com/swimlane/turbine-sdk/blob/v3.4.0/lib/commands/connector/validate.js)_
495
+ _See code: [lib/commands/connector/validate.js](https://github.com/swimlane/turbine-sdk/blob/v3.6.0/lib/commands/connector/validate.js)_
491
496
 
492
497
  ## `sw-tsdk-connector description:action`
493
498
 
@@ -508,7 +513,7 @@ DESCRIPTION
508
513
  Use to generate action description
509
514
  ```
510
515
 
511
- _See code: [lib/commands/description/action.js](https://github.com/swimlane/turbine-sdk/blob/v3.4.0/lib/commands/description/action.js)_
516
+ _See code: [lib/commands/description/action.js](https://github.com/swimlane/turbine-sdk/blob/v3.6.0/lib/commands/description/action.js)_
512
517
 
513
518
  ## `sw-tsdk-connector description:actions`
514
519
 
@@ -528,7 +533,7 @@ DESCRIPTION
528
533
  Use to generate description for all actions
529
534
  ```
530
535
 
531
- _See code: [lib/commands/description/actions.js](https://github.com/swimlane/turbine-sdk/blob/v3.4.0/lib/commands/description/actions.js)_
536
+ _See code: [lib/commands/description/actions.js](https://github.com/swimlane/turbine-sdk/blob/v3.6.0/lib/commands/description/actions.js)_
532
537
 
533
538
  ## `sw-tsdk-connector description:component`
534
539
 
@@ -551,7 +556,7 @@ DESCRIPTION
551
556
  Use to generate component descriptions
552
557
  ```
553
558
 
554
- _See code: [lib/commands/description/component.js](https://github.com/swimlane/turbine-sdk/blob/v3.4.0/lib/commands/description/component.js)_
559
+ _See code: [lib/commands/description/component.js](https://github.com/swimlane/turbine-sdk/blob/v3.6.0/lib/commands/description/component.js)_
555
560
 
556
561
  ## `sw-tsdk-connector description:connector`
557
562
 
@@ -571,7 +576,78 @@ DESCRIPTION
571
576
  Use to generate connector descriptions
572
577
  ```
573
578
 
574
- _See code: [lib/commands/description/connector.js](https://github.com/swimlane/turbine-sdk/blob/v3.4.0/lib/commands/description/connector.js)_
579
+ _See code: [lib/commands/description/connector.js](https://github.com/swimlane/turbine-sdk/blob/v3.6.0/lib/commands/description/connector.js)_
580
+
581
+ ## `sw-tsdk-connector playbook:create`
582
+
583
+ Scaffold a new playbook
584
+
585
+ ```
586
+ USAGE
587
+ $ sw-tsdk-connector playbook:create [-d <value>] [--playbookFamily <value>] [--playbookName <value>] [--keywords
588
+ <value>] [--description <value>] [--logoPath <value>] [--overviewImagePath <value>] [--sspPath <value>] [--author
589
+ <value>] [--authorEmail <value>] [--homepage <value>] [-h]
590
+
591
+ FLAGS
592
+ -d, --directory=<value> [default: ./] root directory for where to store Playbook.
593
+ -h, --help Show CLI help.
594
+ --author=<value> Playbook Author
595
+ --authorEmail=<value> Playbook Author Email
596
+ --description=<value> Description (e.g. Text Aggregator Description)
597
+ --homepage=<value> Playbook Author Support URL
598
+ --keywords=<value> Enter keywords
599
+ --logoPath=<value> URL or absolute path to logo file
600
+ --overviewImagePath=<value> URL or absolute path to overview image file
601
+ --playbookFamily=<value> Playbook Family (e.g. classic | canvas)
602
+ --playbookName=<value> Playbook Name (e.g. Text Aggregator)
603
+ --sspPath=<value> absolute path to .ssp file
604
+
605
+ DESCRIPTION
606
+ Scaffold a new playbook
607
+ ```
608
+
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)_
631
+
632
+ ## `sw-tsdk-connector playbook:ssp`
633
+
634
+ Update an SSP
635
+
636
+ ```
637
+ USAGE
638
+ $ sw-tsdk-connector playbook:ssp [-d <value>] [-n <value>] [-p <value>] [-h]
639
+
640
+ FLAGS
641
+ -d, --directory=<value> [default: ./] root directory of the playbook folder.
642
+ -h, --help Show CLI help.
643
+ -n, --playbookName=<value> Playbook Name (e.g. text_aggregator)
644
+ -p, --sspPath=<value> Absolute path to .SSP file
645
+
646
+ DESCRIPTION
647
+ Update an SSP
648
+ ```
649
+
650
+ _See code: [lib/commands/playbook/ssp.js](https://github.com/swimlane/turbine-sdk/blob/v3.6.0/lib/commands/playbook/ssp.js)_
575
651
 
576
652
  ## `sw-tsdk-connector solution:create`
577
653
 
@@ -580,26 +656,27 @@ Scaffold a new Solution
580
656
  ```
581
657
  USAGE
582
658
  $ sw-tsdk-connector solution:create [-d <value>] [--solutionFamily <value>] [--solutionName <value>] [--description
583
- <value>] [--logoPath <value>] [--sspPath <value>] [--author <value>] [--authorEmail <value>] [--homepage <value>]
584
- [-h]
659
+ <value>] [--logoPath <value>] [--overviewImagePath <value>] [--sspPath <value>] [--author <value>] [--authorEmail
660
+ <value>] [--homepage <value>] [-h]
585
661
 
586
662
  FLAGS
587
- -d, --directory=<value> [default: ./] root directory for where to store Solution.
588
- -h, --help Show CLI help.
589
- --author=<value> Solution Author
590
- --authorEmail=<value> Solution Author Email
591
- --description=<value> Description (e.g. SOC Solution Description)
592
- --homepage=<value> Solution Author Support URL
593
- --logoPath=<value> URL or absolute path to logo file
594
- --solutionFamily=<value> Solution Family (e.g. classic | canvas)
595
- --solutionName=<value> Solution Name (e.g. SOC Solution)
596
- --sspPath=<value> absolute path to .ssp file
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
597
674
 
598
675
  DESCRIPTION
599
676
  Scaffold a new Solution
600
677
  ```
601
678
 
602
- _See code: [lib/commands/solution/create.js](https://github.com/swimlane/turbine-sdk/blob/v3.4.0/lib/commands/solution/create.js)_
679
+ _See code: [lib/commands/solution/create.js](https://github.com/swimlane/turbine-sdk/blob/v3.6.0/lib/commands/solution/create.js)_
603
680
 
604
681
  ## `sw-tsdk-connector solution:logo`
605
682
 
@@ -620,7 +697,7 @@ DESCRIPTION
620
697
  Update a Solution logo.
621
698
  ```
622
699
 
623
- _See code: [lib/commands/solution/logo.js](https://github.com/swimlane/turbine-sdk/blob/v3.4.0/lib/commands/solution/logo.js)_
700
+ _See code: [lib/commands/solution/logo.js](https://github.com/swimlane/turbine-sdk/blob/v3.6.0/lib/commands/solution/logo.js)_
624
701
 
625
702
  ## `sw-tsdk-connector solution:ssp`
626
703
 
@@ -641,5 +718,5 @@ DESCRIPTION
641
718
  Update an SSP.
642
719
  ```
643
720
 
644
- _See code: [lib/commands/solution/ssp.js](https://github.com/swimlane/turbine-sdk/blob/v3.4.0/lib/commands/solution/ssp.js)_
721
+ _See code: [lib/commands/solution/ssp.js](https://github.com/swimlane/turbine-sdk/blob/v3.6.0/lib/commands/solution/ssp.js)_
645
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: 'list',
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: 'input',
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.split(',').map(x => x.trim()),
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('Invalid logo file provided');
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,yCAA6F;AAoB7F,qCAAqC;AACrC,MAAa,MAAO,SAAQ,WAAI;IAwB9B,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,O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mCAAmC,EAAC,CAAC;IAC1E,iBAAiB,EAAE,YAAK,CAAC,MAAM,CAAC,EAAC,WAAW,EAAE,6CAA6C,EAAC,CAAC;IAC7F,OAAO,EAAE,YAAK,CAAC,MAAM,CAAC,EAAC,WAAW,EAAE,4BAA4B,EAAC,CAAC;IAClE,MAAM,EAAE,YAAK,CAAC,MAAM,CAAC,EAAC,WAAW,EAAE,kBAAkB,EAAC,CAAC;IACvD,WAAW,EAAE,YAAK,CAAC,MAAM,CAAC,EAAC,WAAW,EAAE,wBAAwB,EAAC,CAAC;IAClE,QAAQ,EAAE,YAAK,CAAC,MAAM,CAAC,EAAC,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.chooseComponentType)();
25
- const componentNameSelected = await (0, common_1.chooseComponentName)(directory, componentTypeSelected);
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('Invalid logo file provided');
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":";;;;AA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AM,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.chooseComponentType)();
26
- const componentNameSelected = await (0, common_1.chooseComponentName)(directory, componentTypeSelected);
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,yCAAqE;AAGrE,qCAAqC;AACrC,MAAa,IAAK,SAAQ,WAAI;IAyB5B,KAAK,CAAC,GAAG;QACP,MAAM,EAAC,KAAK,EAAC,GAAG,MAAM,IAAI,CAAC,KAAK,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G;KACV,CAAC;IACF,aAAa,EAAE,YAAK,CAAC,MAAM,CAAC;QAC1B,WAAW,EAAE,8CAA8C;QAC3D,IAAI,EAAE,GAAG;KACV,CAAC;IACF,OAAO,EAAE,YAAK,CAAC,MAAM,CAAC;QACpB,IAAI,EAAE,GAAG;QACT,WAAW,EAAE,4BAA4B;KAC1C,CAAC;IACF,IAAI,EAAE,YAAK,CAAC,IAAI,CAAC,EAAC,IAAI,EAAE,GAAG,EAAC,CAAC;CAC9B,CAAA"}
@@ -42,7 +42,7 @@ class OpenAPI extends core_2.Base {
42
42
  message: 'Product (e.g. Falcon)',
43
43
  },
44
44
  {
45
- type: 'list',
45
+ type: 'checkbox',
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: 'input',
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: [answers.keywords],
106
+ keywords: answers.keywords,
106
107
  license: 'AGPL-3.0',
107
108
  meta: {
108
109
  imageRepository: `quay.io/swimlane-connectors/${name}`,