@contrail/cli 3.5.4-alpha.2a94b1c → 3.5.4-alpha.3c3e1b7

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/README.md +63 -23
  2. package/dist/api/org-config.d.ts +3 -0
  3. package/dist/api/org-config.js +28 -0
  4. package/dist/auth/login.js +28 -18
  5. package/dist/auth/login.spec.js +77 -0
  6. package/dist/commands/groups/export.js +1 -13
  7. package/dist/commands/groups/import.js +2 -15
  8. package/dist/commands/instance/import.d.ts +14 -0
  9. package/dist/commands/instance/import.js +27 -5
  10. package/dist/commands/instance/import.spec.d.ts +1 -0
  11. package/dist/commands/instance/import.spec.js +57 -0
  12. package/dist/commands/org-config/export.d.ts +13 -0
  13. package/dist/commands/org-config/export.js +74 -0
  14. package/dist/commands/org-config/import.d.ts +12 -0
  15. package/dist/commands/org-config/import.js +63 -0
  16. package/dist/commands/types/getAll.js +2 -0
  17. package/dist/commands/types/loadAll.d.ts +13 -1
  18. package/dist/commands/types/loadAll.js +41 -4
  19. package/dist/commands/types/loadAll.spec.d.ts +1 -0
  20. package/dist/commands/types/loadAll.spec.js +77 -0
  21. package/dist/commands/types/mergeOptionSets.js +2 -9
  22. package/dist/commands/types/mergeTypeProperties.js +2 -6
  23. package/dist/commands/types/parseOptionSetsLocalFiles.js +3 -7
  24. package/dist/commands/types/uploadTypeOverrides.d.ts +10 -0
  25. package/dist/commands/types/uploadTypeOverrides.js +19 -8
  26. package/dist/commands/types/uploadTypeOverrides.spec.d.ts +1 -0
  27. package/dist/commands/types/uploadTypeOverrides.spec.js +60 -0
  28. package/dist/commands/users/export.js +1 -13
  29. package/dist/commands/users/import.js +2 -15
  30. package/dist/commands/workflow-templates/export.d.ts +2 -3
  31. package/dist/commands/workflow-templates/export.js +23 -122
  32. package/dist/commands/workflow-templates/load.d.ts +0 -2
  33. package/dist/commands/workflow-templates/load.js +6 -63
  34. package/dist/helpers/error-helpers.d.ts +9 -0
  35. package/dist/helpers/error-helpers.js +35 -0
  36. package/dist/helpers/file-helpers.d.ts +2 -0
  37. package/dist/helpers/file-helpers.js +25 -1
  38. package/dist/helpers/projects/helpers.js +2 -6
  39. package/dist/helpers/types/type-parser.js +9 -15
  40. package/dist/helpers/workflow-templates/helper.d.ts +0 -1
  41. package/dist/helpers/workflow-templates/helper.js +3 -28
  42. package/dist/interfaces.d.ts +1 -1
  43. package/oclif.manifest.json +126 -30
  44. package/package.json +4 -1
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "3.5.4-alpha.2a94b1c",
2
+ "version": "3.5.4-alpha.3c3e1b7",
3
3
  "commands": {
4
4
  "app:create": {
5
5
  "id": "app:create",
@@ -1239,6 +1239,116 @@
1239
1239
  }
1240
1240
  }
1241
1241
  },
1242
+ "org-config:export": {
1243
+ "id": "org-config:export",
1244
+ "description": "Export the org config for your Org",
1245
+ "strict": true,
1246
+ "pluginName": "@contrail/cli",
1247
+ "pluginAlias": "@contrail/cli",
1248
+ "pluginType": "core",
1249
+ "aliases": [],
1250
+ "examples": [
1251
+ "$ contrail org-config export\n"
1252
+ ],
1253
+ "flags": {
1254
+ "logLevel": {
1255
+ "name": "logLevel",
1256
+ "type": "option",
1257
+ "char": "l",
1258
+ "description": "The Log Level",
1259
+ "required": false,
1260
+ "multiple": false,
1261
+ "options": [
1262
+ "error",
1263
+ "warn",
1264
+ "info",
1265
+ "debug"
1266
+ ]
1267
+ },
1268
+ "alwaysConfirmEnv": {
1269
+ "name": "alwaysConfirmEnv",
1270
+ "type": "option",
1271
+ "char": "e",
1272
+ "description": "The Environment variables",
1273
+ "required": false,
1274
+ "multiple": false,
1275
+ "options": [
1276
+ "true",
1277
+ "false"
1278
+ ],
1279
+ "default": "true"
1280
+ },
1281
+ "outDir": {
1282
+ "name": "outDir",
1283
+ "type": "option",
1284
+ "char": "d",
1285
+ "description": "The directory to which to export the org config data. Defaults to the current directory",
1286
+ "required": false,
1287
+ "multiple": false,
1288
+ "default": "."
1289
+ },
1290
+ "overwrite": {
1291
+ "name": "overwrite",
1292
+ "type": "boolean",
1293
+ "char": "f",
1294
+ "description": "Replaces any existing export files in outDir",
1295
+ "required": false,
1296
+ "allowNo": false
1297
+ }
1298
+ },
1299
+ "args": {}
1300
+ },
1301
+ "org-config:import": {
1302
+ "id": "org-config:import",
1303
+ "description": "Upload an extracted org config",
1304
+ "strict": true,
1305
+ "pluginName": "@contrail/cli",
1306
+ "pluginAlias": "@contrail/cli",
1307
+ "pluginType": "core",
1308
+ "aliases": [],
1309
+ "examples": [
1310
+ "$ contrail org-config import\n"
1311
+ ],
1312
+ "flags": {
1313
+ "logLevel": {
1314
+ "name": "logLevel",
1315
+ "type": "option",
1316
+ "char": "l",
1317
+ "description": "The Log Level",
1318
+ "required": false,
1319
+ "multiple": false,
1320
+ "options": [
1321
+ "error",
1322
+ "warn",
1323
+ "info",
1324
+ "debug"
1325
+ ]
1326
+ },
1327
+ "alwaysConfirmEnv": {
1328
+ "name": "alwaysConfirmEnv",
1329
+ "type": "option",
1330
+ "char": "e",
1331
+ "description": "The Environment variables",
1332
+ "required": false,
1333
+ "multiple": false,
1334
+ "options": [
1335
+ "true",
1336
+ "false"
1337
+ ],
1338
+ "default": "true"
1339
+ },
1340
+ "dir": {
1341
+ "name": "dir",
1342
+ "type": "option",
1343
+ "char": "d",
1344
+ "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",
1345
+ "required": false,
1346
+ "multiple": false,
1347
+ "default": "."
1348
+ }
1349
+ },
1350
+ "args": {}
1351
+ },
1242
1352
  "projects:export": {
1243
1353
  "id": "projects:export",
1244
1354
  "description": "Export a project.",
@@ -1593,6 +1703,13 @@
1593
1703
  "required": false,
1594
1704
  "multiple": false,
1595
1705
  "default": "."
1706
+ },
1707
+ "orgConfig": {
1708
+ "name": "orgConfig",
1709
+ "type": "boolean",
1710
+ "description": "Also load org config data from this directory. If not specified, you will be prompted.",
1711
+ "required": false,
1712
+ "allowNo": true
1596
1713
  }
1597
1714
  },
1598
1715
  "args": {}
@@ -2956,16 +3073,14 @@
2956
3073
  },
2957
3074
  "workflow-templates:export": {
2958
3075
  "id": "workflow-templates:export",
2959
- "description": "Export all workflows in the org. By default exports one file per app to the current directory.",
3076
+ "description": "Export all workflows in the org.",
2960
3077
  "strict": true,
2961
3078
  "pluginName": "@contrail/cli",
2962
3079
  "pluginAlias": "@contrail/cli",
2963
3080
  "pluginType": "core",
2964
3081
  "aliases": [],
2965
3082
  "examples": [
2966
- "$ contrail workflow-templates export",
2967
- "$ contrail workflow-templates export --dir ./workflows",
2968
- "$ contrail workflow-templates export --outFile workflows.yml"
3083
+ "$ contrail workflow-templates export\n"
2969
3084
  ],
2970
3085
  "flags": {
2971
3086
  "logLevel": {
@@ -2999,18 +3114,10 @@
2999
3114
  "name": "outFile",
3000
3115
  "type": "option",
3001
3116
  "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",
3117
+ "description": "The location for the file to be saved",
3011
3118
  "required": false,
3012
3119
  "multiple": false,
3013
- "default": "."
3120
+ "default": "workflows.yml"
3014
3121
  },
3015
3122
  "overwrite": {
3016
3123
  "name": "overwrite",
@@ -3066,16 +3173,14 @@
3066
3173
  },
3067
3174
  "workflow-templates:load": {
3068
3175
  "id": "workflow-templates:load",
3069
- "description": "Load workflow templates from a file or scan a directory for per-app workflow files",
3176
+ "description": "Loads your workflow from a local file",
3070
3177
  "strict": true,
3071
3178
  "pluginName": "@contrail/cli",
3072
3179
  "pluginAlias": "@contrail/cli",
3073
3180
  "pluginType": "core",
3074
3181
  "aliases": [],
3075
3182
  "examples": [
3076
- "$ contrail workflow-templates load <FILE_LOCATION>",
3077
- "$ contrail workflow-templates load",
3078
- "$ contrail workflow-templates load --dir ./workflows"
3183
+ "$ contrail workflow-templates load <FILE_LOCATION>\n"
3079
3184
  ],
3080
3185
  "flags": {
3081
3186
  "logLevel": {
@@ -3104,22 +3209,13 @@
3104
3209
  "false"
3105
3210
  ],
3106
3211
  "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
3212
  }
3117
3213
  },
3118
3214
  "args": {
3119
3215
  "fileLocation": {
3120
3216
  "name": "fileLocation",
3121
- "description": "A specific workflow template file to load",
3122
- "required": false
3217
+ "description": "The workflow template file to load",
3218
+ "required": true
3123
3219
  }
3124
3220
  }
3125
3221
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrail/cli",
3
- "version": "3.5.4-alpha.2a94b1c",
3
+ "version": "3.5.4-alpha.3c3e1b7",
4
4
  "description": "VibeIQ's Contrail Platform CLI.",
5
5
  "bin": {
6
6
  "contrail-cli": "./bin/run",
@@ -113,6 +113,9 @@
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
+ },
116
119
  "webhooks": {
117
120
  "description": "Manage VibeIQ webhooks"
118
121
  },