@contrail/cli 3.5.4-alpha.f60c4df → 3.5.5-alpha.5c010ac

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 (54) hide show
  1. package/README.md +112 -23
  2. package/dist/api/feature-flags.d.ts +3 -0
  3. package/dist/api/feature-flags.js +29 -0
  4. package/dist/api/org-config.d.ts +3 -0
  5. package/dist/api/org-config.js +28 -0
  6. package/dist/api/users.d.ts +1 -0
  7. package/dist/api/users.js +10 -1
  8. package/dist/commands/feature-flags/export.d.ts +19 -0
  9. package/dist/commands/feature-flags/export.js +66 -0
  10. package/dist/commands/feature-flags/export.spec.d.ts +1 -0
  11. package/dist/commands/feature-flags/export.spec.js +109 -0
  12. package/dist/commands/feature-flags/import.d.ts +28 -0
  13. package/dist/commands/feature-flags/import.js +151 -0
  14. package/dist/commands/feature-flags/import.spec.d.ts +1 -0
  15. package/dist/commands/feature-flags/import.spec.js +125 -0
  16. package/dist/commands/groups/export.js +1 -13
  17. package/dist/commands/groups/import.js +2 -15
  18. package/dist/commands/instance/import.d.ts +14 -0
  19. package/dist/commands/instance/import.js +27 -5
  20. package/dist/commands/instance/import.spec.d.ts +1 -0
  21. package/dist/commands/instance/import.spec.js +57 -0
  22. package/dist/commands/org-config/export.d.ts +13 -0
  23. package/dist/commands/org-config/export.js +74 -0
  24. package/dist/commands/org-config/import.d.ts +12 -0
  25. package/dist/commands/org-config/import.js +63 -0
  26. package/dist/commands/types/getAll.js +2 -0
  27. package/dist/commands/types/loadAll.d.ts +13 -1
  28. package/dist/commands/types/loadAll.js +41 -4
  29. package/dist/commands/types/loadAll.spec.d.ts +1 -0
  30. package/dist/commands/types/loadAll.spec.js +77 -0
  31. package/dist/commands/types/mergeOptionSets.js +2 -9
  32. package/dist/commands/types/mergeTypeProperties.js +2 -6
  33. package/dist/commands/types/parseOptionSetsLocalFiles.js +3 -7
  34. package/dist/commands/types/uploadTypeOverrides.d.ts +10 -0
  35. package/dist/commands/types/uploadTypeOverrides.js +19 -8
  36. package/dist/commands/types/uploadTypeOverrides.spec.d.ts +1 -0
  37. package/dist/commands/types/uploadTypeOverrides.spec.js +60 -0
  38. package/dist/commands/users/export.js +1 -13
  39. package/dist/commands/users/import.js +2 -15
  40. package/dist/commands/workflow-templates/export.d.ts +2 -3
  41. package/dist/commands/workflow-templates/export.js +23 -122
  42. package/dist/commands/workflow-templates/load.d.ts +0 -2
  43. package/dist/commands/workflow-templates/load.js +6 -63
  44. package/dist/helpers/error-helpers.d.ts +9 -0
  45. package/dist/helpers/error-helpers.js +35 -0
  46. package/dist/helpers/file-helpers.d.ts +2 -0
  47. package/dist/helpers/file-helpers.js +25 -1
  48. package/dist/helpers/projects/helpers.js +2 -6
  49. package/dist/helpers/types/type-parser.js +9 -15
  50. package/dist/helpers/workflow-templates/helper.d.ts +1 -2
  51. package/dist/helpers/workflow-templates/helper.js +6 -36
  52. package/dist/interfaces.d.ts +1 -1
  53. package/oclif.manifest.json +236 -30
  54. package/package.json +7 -1
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "3.5.4-alpha.f60c4df",
2
+ "version": "3.5.5-alpha.5c010ac",
3
3
  "commands": {
4
4
  "app:create": {
5
5
  "id": "app:create",
@@ -672,6 +672,116 @@
672
672
  }
673
673
  }
674
674
  },
675
+ "feature-flags:export": {
676
+ "id": "feature-flags:export",
677
+ "description": "Export the enabled feature flags for your Org",
678
+ "strict": true,
679
+ "pluginName": "@contrail/cli",
680
+ "pluginAlias": "@contrail/cli",
681
+ "pluginType": "core",
682
+ "aliases": [],
683
+ "examples": [
684
+ "$ contrail feature-flags export\n"
685
+ ],
686
+ "flags": {
687
+ "logLevel": {
688
+ "name": "logLevel",
689
+ "type": "option",
690
+ "char": "l",
691
+ "description": "The Log Level",
692
+ "required": false,
693
+ "multiple": false,
694
+ "options": [
695
+ "error",
696
+ "warn",
697
+ "info",
698
+ "debug"
699
+ ]
700
+ },
701
+ "alwaysConfirmEnv": {
702
+ "name": "alwaysConfirmEnv",
703
+ "type": "option",
704
+ "char": "e",
705
+ "description": "The Environment variables",
706
+ "required": false,
707
+ "multiple": false,
708
+ "options": [
709
+ "true",
710
+ "false"
711
+ ],
712
+ "default": "true"
713
+ },
714
+ "outDir": {
715
+ "name": "outDir",
716
+ "type": "option",
717
+ "char": "d",
718
+ "description": "The directory to which to export the feature flags. Defaults to the current directory",
719
+ "required": false,
720
+ "multiple": false,
721
+ "default": "."
722
+ },
723
+ "overwrite": {
724
+ "name": "overwrite",
725
+ "type": "boolean",
726
+ "char": "f",
727
+ "description": "Replaces any existing export files in outDir",
728
+ "required": false,
729
+ "allowNo": false
730
+ }
731
+ },
732
+ "args": {}
733
+ },
734
+ "feature-flags:import": {
735
+ "id": "feature-flags:import",
736
+ "description": "Upload an extracted set of feature flags",
737
+ "strict": true,
738
+ "pluginName": "@contrail/cli",
739
+ "pluginAlias": "@contrail/cli",
740
+ "pluginType": "core",
741
+ "aliases": [],
742
+ "examples": [
743
+ "$ contrail feature-flags import\n"
744
+ ],
745
+ "flags": {
746
+ "logLevel": {
747
+ "name": "logLevel",
748
+ "type": "option",
749
+ "char": "l",
750
+ "description": "The Log Level",
751
+ "required": false,
752
+ "multiple": false,
753
+ "options": [
754
+ "error",
755
+ "warn",
756
+ "info",
757
+ "debug"
758
+ ]
759
+ },
760
+ "alwaysConfirmEnv": {
761
+ "name": "alwaysConfirmEnv",
762
+ "type": "option",
763
+ "char": "e",
764
+ "description": "The Environment variables",
765
+ "required": false,
766
+ "multiple": false,
767
+ "options": [
768
+ "true",
769
+ "false"
770
+ ],
771
+ "default": "true"
772
+ },
773
+ "dir": {
774
+ "name": "dir",
775
+ "type": "option",
776
+ "char": "d",
777
+ "description": "The directory from which to import the feature flags. Defaults to the current directory. The feature flags will be loaded from $dir/feature-flags.yml",
778
+ "required": false,
779
+ "multiple": false,
780
+ "default": "."
781
+ }
782
+ },
783
+ "args": {}
784
+ },
675
785
  "file:upload": {
676
786
  "id": "file:upload",
677
787
  "description": "Uploads a file to the VibeIQ platform",
@@ -1239,6 +1349,116 @@
1239
1349
  }
1240
1350
  }
1241
1351
  },
1352
+ "org-config:export": {
1353
+ "id": "org-config:export",
1354
+ "description": "Export the org config for your Org",
1355
+ "strict": true,
1356
+ "pluginName": "@contrail/cli",
1357
+ "pluginAlias": "@contrail/cli",
1358
+ "pluginType": "core",
1359
+ "aliases": [],
1360
+ "examples": [
1361
+ "$ contrail org-config export\n"
1362
+ ],
1363
+ "flags": {
1364
+ "logLevel": {
1365
+ "name": "logLevel",
1366
+ "type": "option",
1367
+ "char": "l",
1368
+ "description": "The Log Level",
1369
+ "required": false,
1370
+ "multiple": false,
1371
+ "options": [
1372
+ "error",
1373
+ "warn",
1374
+ "info",
1375
+ "debug"
1376
+ ]
1377
+ },
1378
+ "alwaysConfirmEnv": {
1379
+ "name": "alwaysConfirmEnv",
1380
+ "type": "option",
1381
+ "char": "e",
1382
+ "description": "The Environment variables",
1383
+ "required": false,
1384
+ "multiple": false,
1385
+ "options": [
1386
+ "true",
1387
+ "false"
1388
+ ],
1389
+ "default": "true"
1390
+ },
1391
+ "outDir": {
1392
+ "name": "outDir",
1393
+ "type": "option",
1394
+ "char": "d",
1395
+ "description": "The directory to which to export the org config data. Defaults to the current directory",
1396
+ "required": false,
1397
+ "multiple": false,
1398
+ "default": "."
1399
+ },
1400
+ "overwrite": {
1401
+ "name": "overwrite",
1402
+ "type": "boolean",
1403
+ "char": "f",
1404
+ "description": "Replaces any existing export files in outDir",
1405
+ "required": false,
1406
+ "allowNo": false
1407
+ }
1408
+ },
1409
+ "args": {}
1410
+ },
1411
+ "org-config:import": {
1412
+ "id": "org-config:import",
1413
+ "description": "Upload an extracted org config",
1414
+ "strict": true,
1415
+ "pluginName": "@contrail/cli",
1416
+ "pluginAlias": "@contrail/cli",
1417
+ "pluginType": "core",
1418
+ "aliases": [],
1419
+ "examples": [
1420
+ "$ contrail org-config import\n"
1421
+ ],
1422
+ "flags": {
1423
+ "logLevel": {
1424
+ "name": "logLevel",
1425
+ "type": "option",
1426
+ "char": "l",
1427
+ "description": "The Log Level",
1428
+ "required": false,
1429
+ "multiple": false,
1430
+ "options": [
1431
+ "error",
1432
+ "warn",
1433
+ "info",
1434
+ "debug"
1435
+ ]
1436
+ },
1437
+ "alwaysConfirmEnv": {
1438
+ "name": "alwaysConfirmEnv",
1439
+ "type": "option",
1440
+ "char": "e",
1441
+ "description": "The Environment variables",
1442
+ "required": false,
1443
+ "multiple": false,
1444
+ "options": [
1445
+ "true",
1446
+ "false"
1447
+ ],
1448
+ "default": "true"
1449
+ },
1450
+ "dir": {
1451
+ "name": "dir",
1452
+ "type": "option",
1453
+ "char": "d",
1454
+ "description": "The directory from which to import the org config data. Defaults to the current directory. The org config data will be loaded from $dir/org-config.yml",
1455
+ "required": false,
1456
+ "multiple": false,
1457
+ "default": "."
1458
+ }
1459
+ },
1460
+ "args": {}
1461
+ },
1242
1462
  "projects:export": {
1243
1463
  "id": "projects:export",
1244
1464
  "description": "Export a project.",
@@ -1593,6 +1813,13 @@
1593
1813
  "required": false,
1594
1814
  "multiple": false,
1595
1815
  "default": "."
1816
+ },
1817
+ "orgConfig": {
1818
+ "name": "orgConfig",
1819
+ "type": "boolean",
1820
+ "description": "Also load org config data from this directory. If not specified, you will be prompted.",
1821
+ "required": false,
1822
+ "allowNo": true
1596
1823
  }
1597
1824
  },
1598
1825
  "args": {}
@@ -2956,16 +3183,14 @@
2956
3183
  },
2957
3184
  "workflow-templates:export": {
2958
3185
  "id": "workflow-templates:export",
2959
- "description": "Export all workflows in the org. By default exports one file per app to the current directory.",
3186
+ "description": "Export all workflows in the org.",
2960
3187
  "strict": true,
2961
3188
  "pluginName": "@contrail/cli",
2962
3189
  "pluginAlias": "@contrail/cli",
2963
3190
  "pluginType": "core",
2964
3191
  "aliases": [],
2965
3192
  "examples": [
2966
- "$ contrail workflow-templates export",
2967
- "$ contrail workflow-templates export --dir ./workflows",
2968
- "$ contrail workflow-templates export --outFile workflows.yml"
3193
+ "$ contrail workflow-templates export\n"
2969
3194
  ],
2970
3195
  "flags": {
2971
3196
  "logLevel": {
@@ -2999,18 +3224,10 @@
2999
3224
  "name": "outFile",
3000
3225
  "type": "option",
3001
3226
  "char": "f",
3002
- "description": "Export all workflows to a single file at this path (overrides per-app export)",
3003
- "required": false,
3004
- "multiple": false
3005
- },
3006
- "dir": {
3007
- "name": "dir",
3008
- "type": "option",
3009
- "char": "d",
3010
- "description": "Directory to write per-app workflow files",
3227
+ "description": "The location for the file to be saved",
3011
3228
  "required": false,
3012
3229
  "multiple": false,
3013
- "default": "."
3230
+ "default": "workflows.yml"
3014
3231
  },
3015
3232
  "overwrite": {
3016
3233
  "name": "overwrite",
@@ -3066,16 +3283,14 @@
3066
3283
  },
3067
3284
  "workflow-templates:load": {
3068
3285
  "id": "workflow-templates:load",
3069
- "description": "Load workflow templates from a file or scan a directory for per-app workflow files",
3286
+ "description": "Loads your workflow from a local file",
3070
3287
  "strict": true,
3071
3288
  "pluginName": "@contrail/cli",
3072
3289
  "pluginAlias": "@contrail/cli",
3073
3290
  "pluginType": "core",
3074
3291
  "aliases": [],
3075
3292
  "examples": [
3076
- "$ contrail workflow-templates load <FILE_LOCATION>",
3077
- "$ contrail workflow-templates load",
3078
- "$ contrail workflow-templates load --dir ./workflows"
3293
+ "$ contrail workflow-templates load <FILE_LOCATION>\n"
3079
3294
  ],
3080
3295
  "flags": {
3081
3296
  "logLevel": {
@@ -3104,22 +3319,13 @@
3104
3319
  "false"
3105
3320
  ],
3106
3321
  "default": "true"
3107
- },
3108
- "dir": {
3109
- "name": "dir",
3110
- "type": "option",
3111
- "char": "d",
3112
- "description": "Directory to scan for workflow files when no file argument is given",
3113
- "required": false,
3114
- "multiple": false,
3115
- "default": "."
3116
3322
  }
3117
3323
  },
3118
3324
  "args": {
3119
3325
  "fileLocation": {
3120
3326
  "name": "fileLocation",
3121
- "description": "A specific workflow template file to load",
3122
- "required": false
3327
+ "description": "The workflow template file to load",
3328
+ "required": true
3123
3329
  }
3124
3330
  }
3125
3331
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrail/cli",
3
- "version": "3.5.4-alpha.f60c4df",
3
+ "version": "3.5.5-alpha.5c010ac",
4
4
  "description": "VibeIQ's Contrail Platform CLI.",
5
5
  "bin": {
6
6
  "contrail-cli": "./bin/run",
@@ -113,6 +113,12 @@
113
113
  "groups": {
114
114
  "description": "Export and import user groups"
115
115
  },
116
+ "org-config": {
117
+ "description": "Export and import org-level configuration"
118
+ },
119
+ "feature-flags": {
120
+ "description": "Export and import the org's enabled feature flags"
121
+ },
116
122
  "webhooks": {
117
123
  "description": "Manage VibeIQ webhooks"
118
124
  },