@contrail/cli 3.6.0-alpha-8-alpha.694fd70 → 3.6.0-alpha.693d785
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 +45 -151
- package/dist/api/feature-flags.d.ts +3 -0
- package/dist/api/feature-flags.js +29 -0
- package/dist/api/types.d.ts +0 -35
- package/dist/api/types.js +1 -49
- package/dist/api/users.d.ts +1 -0
- package/dist/api/users.js +10 -1
- package/dist/auth/login.d.ts +4 -0
- package/dist/auth/login.js +167 -93
- package/dist/auth/login.spec.js +305 -0
- package/dist/auth/sso.d.ts +36 -0
- package/dist/auth/sso.js +168 -0
- package/dist/auth/sso.spec.js +138 -0
- package/dist/basecommand.d.ts +1 -3
- package/dist/basecommand.js +2 -2
- package/dist/commands/app/getApiKey.js +2 -2
- package/dist/commands/config/set.js +1 -1
- package/dist/commands/feature-flags/export.d.ts +19 -0
- package/dist/commands/feature-flags/export.js +66 -0
- package/dist/commands/feature-flags/export.spec.js +109 -0
- package/dist/commands/feature-flags/import.d.ts +42 -0
- package/dist/commands/feature-flags/import.js +191 -0
- package/dist/commands/feature-flags/import.spec.js +194 -0
- package/dist/commands/instance/export.d.ts +9 -0
- package/dist/commands/instance/export.js +18 -3
- package/dist/commands/instance/export.spec.js +32 -0
- package/dist/commands/instance/import.d.ts +3 -0
- package/dist/commands/instance/import.js +5 -0
- package/dist/commands/instance/import.spec.js +4 -0
- package/dist/commands/login.d.ts +12 -0
- package/dist/commands/login.js +25 -0
- package/dist/common.d.ts +1 -3
- package/dist/common.js +1 -13
- package/dist/helpers/config/config.d.ts +5 -4
- package/dist/helpers/config/config.js +10 -12
- package/dist/helpers/file-helpers.d.ts +0 -1
- package/dist/helpers/file-helpers.js +1 -18
- package/dist/logger.js +1 -4
- package/node_modules/@contrail/entity-compare/package.json +3 -6
- package/node_modules/@contrail/loader/lib/common/conditional-columns.js +1 -1
- package/node_modules/@contrail/loader/lib/constants.d.ts +8 -0
- package/node_modules/@contrail/loader/lib/constants.js +9 -1
- package/node_modules/@contrail/loader/lib/entities-v2/linesheet-v2/item-processor.d.ts +4 -0
- package/node_modules/@contrail/loader/lib/entities-v2/linesheet-v2/item-processor.js +57 -0
- package/node_modules/@contrail/loader/lib/entities-v2/linesheet-v2/item-processor.spec.js +492 -34
- package/node_modules/@contrail/loader/lib/pipeline/validate.js +2 -52
- package/node_modules/@contrail/loader/lib/pipeline/validate.spec.js +0 -85
- package/node_modules/@contrail/loader/package.json +2 -2
- package/node_modules/@contrail/sdk/.github/workflows/publish-to-npm.yml +4 -1
- package/node_modules/@contrail/sdk/lib/auth/login.js +1 -1
- package/node_modules/@contrail/sdk/lib/config/config.d.ts +0 -3
- package/node_modules/@contrail/sdk/lib/config/config.js +7 -13
- package/node_modules/@contrail/sdk/lib/core/request.js +2 -6
- package/node_modules/@contrail/sdk/lib/entities/entities.client.d.ts +0 -2
- package/node_modules/@contrail/sdk/lib/entities/entities.client.js +1 -3
- package/node_modules/@contrail/sdk/lib/entities/entity.resource.registry.js +0 -1
- package/node_modules/@contrail/sdk/package.json +1 -1
- package/oclif.manifest.json +75 -365
- package/package.json +15 -5
- package/dist/commands/entities/create.d.ts +0 -48
- package/dist/commands/entities/create.js +0 -639
- package/dist/commands/entities/create.spec.js +0 -541
- package/dist/commands/entities/delete.d.ts +0 -19
- package/dist/commands/entities/delete.js +0 -134
- package/dist/commands/entities/get.d.ts +0 -24
- package/dist/commands/entities/get.js +0 -273
- package/dist/commands/entities/grammar.spec.js +0 -80
- package/dist/commands/entities/output.spec.js +0 -72
- package/dist/commands/entities/update.d.ts +0 -31
- package/dist/commands/entities/update.js +0 -157
- package/dist/helpers/entities/assortment-items.d.ts +0 -10
- package/dist/helpers/entities/assortment-items.js +0 -84
- package/dist/helpers/entities/batchFetch.d.ts +0 -8
- package/dist/helpers/entities/batchFetch.js +0 -49
- package/dist/helpers/entities/index.d.ts +0 -3
- package/dist/helpers/entities/index.js +0 -6
- package/dist/helpers/entities/items.d.ts +0 -10
- package/dist/helpers/entities/items.js +0 -102
- package/dist/helpers/entities/project-items.d.ts +0 -3
- package/dist/helpers/entities/project-items.js +0 -65
- package/dist/helpers/propertySpecifications/dateRanges.d.ts +0 -38
- package/dist/helpers/propertySpecifications/dateRanges.js +0 -89
- package/dist/helpers/propertySpecifications/dateRanges.spec.js +0 -95
- package/dist/helpers/propertySpecifications/propertySpecifications.d.ts +0 -40
- package/dist/helpers/propertySpecifications/propertySpecifications.js +0 -109
- package/dist/helpers/propertySpecifications/propertySpecifications.spec.d.ts +0 -1
- package/dist/helpers/propertySpecifications/propertySpecifications.spec.js +0 -373
- package/dist/logger.spec.d.ts +0 -1
- package/dist/logger.spec.js +0 -12
- package/node_modules/@contrail/org-config-migration/node_modules/@contrail/sdk/.github/pull_request_template.md +0 -31
- package/node_modules/@contrail/org-config-migration/node_modules/@contrail/sdk/.github/workflows/check-code-formatting.yml +0 -34
- package/node_modules/@contrail/org-config-migration/node_modules/@contrail/sdk/.github/workflows/empty.yml +0 -10
- package/node_modules/@contrail/org-config-migration/node_modules/@contrail/sdk/.github/workflows/generate-sdk-docs.yml +0 -32
- package/node_modules/@contrail/org-config-migration/node_modules/@contrail/sdk/.github/workflows/publish-to-npm.yml +0 -117
- package/node_modules/@contrail/org-config-migration/node_modules/@contrail/sdk/.github/workflows/sdk-lib.yml +0 -27
- package/node_modules/@contrail/org-config-migration/node_modules/@contrail/sdk/.prettierrc.yaml +0 -2
- package/node_modules/@contrail/org-config-migration/node_modules/@contrail/sdk/README.md +0 -72
- package/node_modules/@contrail/org-config-migration/node_modules/@contrail/sdk/home-hero.svg +0 -11
- package/node_modules/@contrail/org-config-migration/node_modules/@contrail/sdk/lib/assets/assets.d.ts +0 -9
- package/node_modules/@contrail/org-config-migration/node_modules/@contrail/sdk/lib/assets/assets.js +0 -54
- package/node_modules/@contrail/org-config-migration/node_modules/@contrail/sdk/lib/assets/index.d.ts +0 -1
- package/node_modules/@contrail/org-config-migration/node_modules/@contrail/sdk/lib/assets/index.js +0 -17
- package/node_modules/@contrail/org-config-migration/node_modules/@contrail/sdk/lib/auth/auth.d.ts +0 -10
- package/node_modules/@contrail/org-config-migration/node_modules/@contrail/sdk/lib/auth/auth.js +0 -6
- package/node_modules/@contrail/org-config-migration/node_modules/@contrail/sdk/lib/auth/index.d.ts +0 -2
- package/node_modules/@contrail/org-config-migration/node_modules/@contrail/sdk/lib/auth/index.js +0 -18
- package/node_modules/@contrail/org-config-migration/node_modules/@contrail/sdk/lib/auth/login.d.ts +0 -10
- package/node_modules/@contrail/org-config-migration/node_modules/@contrail/sdk/lib/auth/login.js +0 -209
- package/node_modules/@contrail/org-config-migration/node_modules/@contrail/sdk/lib/config/config.d.ts +0 -48
- package/node_modules/@contrail/org-config-migration/node_modules/@contrail/sdk/lib/config/config.js +0 -42
- package/node_modules/@contrail/org-config-migration/node_modules/@contrail/sdk/lib/config/index.d.ts +0 -1
- package/node_modules/@contrail/org-config-migration/node_modules/@contrail/sdk/lib/config/index.js +0 -17
- package/node_modules/@contrail/org-config-migration/node_modules/@contrail/sdk/lib/content/content.d.ts +0 -12
- package/node_modules/@contrail/org-config-migration/node_modules/@contrail/sdk/lib/content/content.js +0 -70
- package/node_modules/@contrail/org-config-migration/node_modules/@contrail/sdk/lib/content/index.d.ts +0 -1
- package/node_modules/@contrail/org-config-migration/node_modules/@contrail/sdk/lib/content/index.js +0 -17
- package/node_modules/@contrail/org-config-migration/node_modules/@contrail/sdk/lib/core/index.d.ts +0 -1
- package/node_modules/@contrail/org-config-migration/node_modules/@contrail/sdk/lib/core/index.js +0 -17
- package/node_modules/@contrail/org-config-migration/node_modules/@contrail/sdk/lib/core/request.d.ts +0 -15
- package/node_modules/@contrail/org-config-migration/node_modules/@contrail/sdk/lib/core/request.js +0 -241
- package/node_modules/@contrail/org-config-migration/node_modules/@contrail/sdk/lib/entities/entities.client.d.ts +0 -101
- package/node_modules/@contrail/org-config-migration/node_modules/@contrail/sdk/lib/entities/entities.client.js +0 -306
- package/node_modules/@contrail/org-config-migration/node_modules/@contrail/sdk/lib/entities/entity-reference-expander.d.ts +0 -9
- package/node_modules/@contrail/org-config-migration/node_modules/@contrail/sdk/lib/entities/entity-reference-expander.js +0 -86
- package/node_modules/@contrail/org-config-migration/node_modules/@contrail/sdk/lib/entities/entity-reference.d.ts +0 -6
- package/node_modules/@contrail/org-config-migration/node_modules/@contrail/sdk/lib/entities/entity-reference.js +0 -19
- package/node_modules/@contrail/org-config-migration/node_modules/@contrail/sdk/lib/entities/entity.resource.registry.d.ts +0 -5
- package/node_modules/@contrail/org-config-migration/node_modules/@contrail/sdk/lib/entities/entity.resource.registry.js +0 -59
- package/node_modules/@contrail/org-config-migration/node_modules/@contrail/sdk/lib/entities/index.d.ts +0 -3
- package/node_modules/@contrail/org-config-migration/node_modules/@contrail/sdk/lib/entities/index.js +0 -19
- package/node_modules/@contrail/org-config-migration/node_modules/@contrail/sdk/lib/files/file-type-helper.d.ts +0 -3
- package/node_modules/@contrail/org-config-migration/node_modules/@contrail/sdk/lib/files/file-type-helper.js +0 -24
- package/node_modules/@contrail/org-config-migration/node_modules/@contrail/sdk/lib/files/files.d.ts +0 -19
- package/node_modules/@contrail/org-config-migration/node_modules/@contrail/sdk/lib/files/files.js +0 -151
- package/node_modules/@contrail/org-config-migration/node_modules/@contrail/sdk/lib/files/index.d.ts +0 -1
- package/node_modules/@contrail/org-config-migration/node_modules/@contrail/sdk/lib/files/index.js +0 -17
- package/node_modules/@contrail/org-config-migration/node_modules/@contrail/sdk/lib/index.d.ts +0 -10
- package/node_modules/@contrail/org-config-migration/node_modules/@contrail/sdk/lib/index.js +0 -26
- package/node_modules/@contrail/org-config-migration/node_modules/@contrail/sdk/lib/notifications/index.d.ts +0 -1
- package/node_modules/@contrail/org-config-migration/node_modules/@contrail/sdk/lib/notifications/index.js +0 -17
- package/node_modules/@contrail/org-config-migration/node_modules/@contrail/sdk/lib/notifications/notifications-dispatcher.d.ts +0 -16
- package/node_modules/@contrail/org-config-migration/node_modules/@contrail/sdk/lib/notifications/notifications-dispatcher.js +0 -37
- package/node_modules/@contrail/org-config-migration/node_modules/@contrail/sdk/lib/policies/index.d.ts +0 -1
- package/node_modules/@contrail/org-config-migration/node_modules/@contrail/sdk/lib/policies/index.js +0 -17
- package/node_modules/@contrail/org-config-migration/node_modules/@contrail/sdk/lib/policies/policies-cache.d.ts +0 -12
- package/node_modules/@contrail/org-config-migration/node_modules/@contrail/sdk/lib/policies/policies-cache.js +0 -55
- package/node_modules/@contrail/org-config-migration/node_modules/@contrail/sdk/lib/policies/policies.client.d.ts +0 -9
- package/node_modules/@contrail/org-config-migration/node_modules/@contrail/sdk/lib/policies/policies.client.js +0 -74
- package/node_modules/@contrail/org-config-migration/node_modules/@contrail/sdk/lib/types/index.d.ts +0 -2
- package/node_modules/@contrail/org-config-migration/node_modules/@contrail/sdk/lib/types/index.js +0 -18
- package/node_modules/@contrail/org-config-migration/node_modules/@contrail/sdk/lib/types/sub-types-helper.d.ts +0 -18
- package/node_modules/@contrail/org-config-migration/node_modules/@contrail/sdk/lib/types/sub-types-helper.js +0 -98
- package/node_modules/@contrail/org-config-migration/node_modules/@contrail/sdk/lib/types/types-cache.d.ts +0 -19
- package/node_modules/@contrail/org-config-migration/node_modules/@contrail/sdk/lib/types/types-cache.js +0 -73
- package/node_modules/@contrail/org-config-migration/node_modules/@contrail/sdk/lib/types/types.client.d.ts +0 -42
- package/node_modules/@contrail/org-config-migration/node_modules/@contrail/sdk/lib/types/types.client.js +0 -217
- package/node_modules/@contrail/org-config-migration/node_modules/@contrail/sdk/package.json +0 -64
- package/node_modules/@contrail/org-config-migration/node_modules/@contrail/sdk/scripts/replicate-bug.js +0 -69
- package/node_modules/@contrail/sdk/scripts/replicate-bug.js +0 -69
- /package/dist/{commands/entities/create.spec.d.ts → auth/sso.spec.d.ts} +0 -0
- /package/dist/commands/{entities/grammar.spec.d.ts → feature-flags/export.spec.d.ts} +0 -0
- /package/dist/commands/{entities/output.spec.d.ts → feature-flags/import.spec.d.ts} +0 -0
- /package/dist/{helpers/propertySpecifications/dateRanges.spec.d.ts → commands/instance/export.spec.d.ts} +0 -0
package/oclif.manifest.json
CHANGED
|
@@ -1,6 +1,55 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "3.6.0-alpha
|
|
2
|
+
"version": "3.6.0-alpha.693d785",
|
|
3
3
|
"commands": {
|
|
4
|
+
"login": {
|
|
5
|
+
"id": "login",
|
|
6
|
+
"description": "Sign in to VibeIQ with SSO or your email and password",
|
|
7
|
+
"strict": true,
|
|
8
|
+
"pluginName": "@contrail/cli",
|
|
9
|
+
"pluginAlias": "@contrail/cli",
|
|
10
|
+
"pluginType": "core",
|
|
11
|
+
"aliases": [],
|
|
12
|
+
"examples": [
|
|
13
|
+
"$ contrail login",
|
|
14
|
+
"$ contrail login --no-browser"
|
|
15
|
+
],
|
|
16
|
+
"flags": {
|
|
17
|
+
"logLevel": {
|
|
18
|
+
"name": "logLevel",
|
|
19
|
+
"type": "option",
|
|
20
|
+
"char": "l",
|
|
21
|
+
"description": "The Log Level",
|
|
22
|
+
"required": false,
|
|
23
|
+
"multiple": false,
|
|
24
|
+
"options": [
|
|
25
|
+
"error",
|
|
26
|
+
"warn",
|
|
27
|
+
"info",
|
|
28
|
+
"debug"
|
|
29
|
+
]
|
|
30
|
+
},
|
|
31
|
+
"alwaysConfirmEnv": {
|
|
32
|
+
"name": "alwaysConfirmEnv",
|
|
33
|
+
"type": "option",
|
|
34
|
+
"char": "e",
|
|
35
|
+
"description": "The Environment variables",
|
|
36
|
+
"required": false,
|
|
37
|
+
"multiple": false,
|
|
38
|
+
"options": [
|
|
39
|
+
"true",
|
|
40
|
+
"false"
|
|
41
|
+
],
|
|
42
|
+
"default": "true"
|
|
43
|
+
},
|
|
44
|
+
"browser": {
|
|
45
|
+
"name": "browser",
|
|
46
|
+
"type": "boolean",
|
|
47
|
+
"description": "Open a browser for SSO. Use --no-browser to paste a sign-in code instead.",
|
|
48
|
+
"allowNo": true
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"args": {}
|
|
52
|
+
},
|
|
4
53
|
"app:create": {
|
|
5
54
|
"id": "app:create",
|
|
6
55
|
"description": "Create a new app. The current organization will be set as the owner of the app",
|
|
@@ -604,8 +653,7 @@
|
|
|
604
653
|
"dev",
|
|
605
654
|
"development",
|
|
606
655
|
"prod",
|
|
607
|
-
"production"
|
|
608
|
-
"local"
|
|
656
|
+
"production"
|
|
609
657
|
]
|
|
610
658
|
},
|
|
611
659
|
"apiUserToken": {
|
|
@@ -673,24 +721,16 @@
|
|
|
673
721
|
}
|
|
674
722
|
}
|
|
675
723
|
},
|
|
676
|
-
"
|
|
677
|
-
"id": "
|
|
678
|
-
"description": "
|
|
679
|
-
"strict":
|
|
724
|
+
"feature-flags:export": {
|
|
725
|
+
"id": "feature-flags:export",
|
|
726
|
+
"description": "Export the enabled feature flags for your Org",
|
|
727
|
+
"strict": true,
|
|
680
728
|
"pluginName": "@contrail/cli",
|
|
681
729
|
"pluginAlias": "@contrail/cli",
|
|
682
730
|
"pluginType": "core",
|
|
683
731
|
"aliases": [],
|
|
684
732
|
"examples": [
|
|
685
|
-
"contrail
|
|
686
|
-
"contrail entities create color -- name=\"Electric Blue\" green=1 red=2 blue=3 # creates one color with specified properties only",
|
|
687
|
-
"contrail entities create custom-entities:franchise",
|
|
688
|
-
"contrail entities create project-item -n=1 -- projectId=abc # creates 10 project items within project ABC",
|
|
689
|
-
"contrail entities create color -g -r # creates a random color with a human readable ID",
|
|
690
|
-
"contrail entities create color -d -- name=test # simulates the creation of a color without actually creating it",
|
|
691
|
-
"contrail entities create custom-entity:franchise -s # creates an entity and the response does not contain hydrating relationships",
|
|
692
|
-
"contrail entities create color -g -- name=Electric Blue # creates a color with the name specified and other properties auto-generated",
|
|
693
|
-
"contrail entities create color -o /tmp/colors.json -- name=Blue green=1 red=2 blue=3 # creates a color and saves the output to /tmp/colors.json"
|
|
733
|
+
"$ contrail feature-flags export\n"
|
|
694
734
|
],
|
|
695
735
|
"flags": {
|
|
696
736
|
"logLevel": {
|
|
@@ -720,193 +760,36 @@
|
|
|
720
760
|
],
|
|
721
761
|
"default": "true"
|
|
722
762
|
},
|
|
723
|
-
"
|
|
724
|
-
"name": "
|
|
763
|
+
"outDir": {
|
|
764
|
+
"name": "outDir",
|
|
725
765
|
"type": "option",
|
|
726
|
-
"char": "n",
|
|
727
|
-
"description": "Number of random entities to create",
|
|
728
|
-
"required": false,
|
|
729
|
-
"multiple": false
|
|
730
|
-
},
|
|
731
|
-
"dryRun": {
|
|
732
|
-
"name": "dryRun",
|
|
733
|
-
"type": "boolean",
|
|
734
766
|
"char": "d",
|
|
735
|
-
"description": "
|
|
736
|
-
"required": false,
|
|
737
|
-
"allowNo": false
|
|
738
|
-
},
|
|
739
|
-
"inputFile": {
|
|
740
|
-
"name": "inputFile",
|
|
741
|
-
"type": "option",
|
|
742
|
-
"char": "i",
|
|
743
|
-
"description": "A file with a JSON array of objects where each object is one entity to create. Cannot be used with --count. Unless --generate-values is specified, only the properties in the file will be used.",
|
|
744
|
-
"required": false,
|
|
745
|
-
"multiple": false
|
|
746
|
-
},
|
|
747
|
-
"outputFile": {
|
|
748
|
-
"name": "outputFile",
|
|
749
|
-
"type": "option",
|
|
750
|
-
"char": "o",
|
|
751
|
-
"description": "File to save the output (optional)",
|
|
752
|
-
"required": false,
|
|
753
|
-
"multiple": false
|
|
754
|
-
},
|
|
755
|
-
"generateValues": {
|
|
756
|
-
"name": "generateValues",
|
|
757
|
-
"type": "boolean",
|
|
758
|
-
"char": "g",
|
|
759
|
-
"description": "If true, generates random values for properties that are not specified. By default, only specified properties are used.",
|
|
760
|
-
"required": false,
|
|
761
|
-
"allowNo": false
|
|
762
|
-
},
|
|
763
|
-
"readableIds": {
|
|
764
|
-
"name": "readableIds",
|
|
765
|
-
"type": "boolean",
|
|
766
|
-
"char": "r",
|
|
767
|
-
"description": "If true, uses readable IDs for the created entities",
|
|
768
|
-
"required": false,
|
|
769
|
-
"allowNo": false
|
|
770
|
-
},
|
|
771
|
-
"skipHydrateRelationships": {
|
|
772
|
-
"name": "skipHydrateRelationships",
|
|
773
|
-
"type": "boolean",
|
|
774
|
-
"char": "S",
|
|
775
|
-
"description": "If true, does not hydrate relationships for the created entities",
|
|
776
|
-
"required": false,
|
|
777
|
-
"allowNo": false
|
|
778
|
-
},
|
|
779
|
-
"suffix": {
|
|
780
|
-
"name": "suffix",
|
|
781
|
-
"type": "option",
|
|
782
|
-
"description": "Append a sub-route to the entity endpoint (e.g. --suffix=synchronous targets /<entities>/synchronous)",
|
|
783
|
-
"required": false,
|
|
784
|
-
"multiple": false
|
|
785
|
-
},
|
|
786
|
-
"apiVersion": {
|
|
787
|
-
"name": "apiVersion",
|
|
788
|
-
"type": "option",
|
|
789
|
-
"description": "Api-Version header to send; selects the V1 or V2 variant of the endpoint",
|
|
790
|
-
"required": false,
|
|
791
|
-
"multiple": false,
|
|
792
|
-
"options": [
|
|
793
|
-
"1",
|
|
794
|
-
"2"
|
|
795
|
-
]
|
|
796
|
-
}
|
|
797
|
-
},
|
|
798
|
-
"args": {
|
|
799
|
-
"path": {
|
|
800
|
-
"name": "path",
|
|
801
|
-
"description": "Path of the entity type to create",
|
|
802
|
-
"required": true
|
|
803
|
-
}
|
|
804
|
-
}
|
|
805
|
-
},
|
|
806
|
-
"entities:delete": {
|
|
807
|
-
"id": "entities:delete",
|
|
808
|
-
"description": "Delete entities by id",
|
|
809
|
-
"strict": false,
|
|
810
|
-
"pluginName": "@contrail/cli",
|
|
811
|
-
"pluginAlias": "@contrail/cli",
|
|
812
|
-
"pluginType": "core",
|
|
813
|
-
"aliases": [],
|
|
814
|
-
"examples": [
|
|
815
|
-
"contrail entities delete color 123",
|
|
816
|
-
"contrail entities delete color id1 id2 id3",
|
|
817
|
-
"contrail entities delete item -i ids.json"
|
|
818
|
-
],
|
|
819
|
-
"flags": {
|
|
820
|
-
"logLevel": {
|
|
821
|
-
"name": "logLevel",
|
|
822
|
-
"type": "option",
|
|
823
|
-
"char": "l",
|
|
824
|
-
"description": "The Log Level",
|
|
825
|
-
"required": false,
|
|
826
|
-
"multiple": false,
|
|
827
|
-
"options": [
|
|
828
|
-
"error",
|
|
829
|
-
"warn",
|
|
830
|
-
"info",
|
|
831
|
-
"debug"
|
|
832
|
-
]
|
|
833
|
-
},
|
|
834
|
-
"alwaysConfirmEnv": {
|
|
835
|
-
"name": "alwaysConfirmEnv",
|
|
836
|
-
"type": "option",
|
|
837
|
-
"char": "e",
|
|
838
|
-
"description": "The Environment variables",
|
|
767
|
+
"description": "The directory to which to export the feature flags. Defaults to the current directory",
|
|
839
768
|
"required": false,
|
|
840
769
|
"multiple": false,
|
|
841
|
-
"
|
|
842
|
-
"true",
|
|
843
|
-
"false"
|
|
844
|
-
],
|
|
845
|
-
"default": "true"
|
|
770
|
+
"default": "."
|
|
846
771
|
},
|
|
847
|
-
"
|
|
848
|
-
"name": "
|
|
772
|
+
"overwrite": {
|
|
773
|
+
"name": "overwrite",
|
|
849
774
|
"type": "boolean",
|
|
850
|
-
"char": "
|
|
851
|
-
"description": "
|
|
775
|
+
"char": "f",
|
|
776
|
+
"description": "Replaces any existing export files in outDir",
|
|
852
777
|
"required": false,
|
|
853
778
|
"allowNo": false
|
|
854
|
-
},
|
|
855
|
-
"inputFile": {
|
|
856
|
-
"name": "inputFile",
|
|
857
|
-
"type": "option",
|
|
858
|
-
"char": "i",
|
|
859
|
-
"description": "A file with a JSON array of objects; only each object's id is used. Deletes every entity in the file.",
|
|
860
|
-
"required": false,
|
|
861
|
-
"multiple": false
|
|
862
|
-
},
|
|
863
|
-
"suffix": {
|
|
864
|
-
"name": "suffix",
|
|
865
|
-
"type": "option",
|
|
866
|
-
"description": "Append a sub-route to the entity endpoint (e.g. --suffix=synchronous targets /<entities>/synchronous)",
|
|
867
|
-
"required": false,
|
|
868
|
-
"multiple": false
|
|
869
|
-
},
|
|
870
|
-
"apiVersion": {
|
|
871
|
-
"name": "apiVersion",
|
|
872
|
-
"type": "option",
|
|
873
|
-
"description": "Api-Version header to send; selects the V1 or V2 variant of the endpoint",
|
|
874
|
-
"required": false,
|
|
875
|
-
"multiple": false,
|
|
876
|
-
"options": [
|
|
877
|
-
"1",
|
|
878
|
-
"2"
|
|
879
|
-
]
|
|
880
779
|
}
|
|
881
780
|
},
|
|
882
|
-
"args": {
|
|
883
|
-
"entityName": {
|
|
884
|
-
"name": "entityName",
|
|
885
|
-
"description": "The name of the entity type to delete",
|
|
886
|
-
"required": true
|
|
887
|
-
},
|
|
888
|
-
"ids": {
|
|
889
|
-
"name": "ids",
|
|
890
|
-
"description": "One or more entity ids to delete",
|
|
891
|
-
"required": false
|
|
892
|
-
}
|
|
893
|
-
}
|
|
781
|
+
"args": {}
|
|
894
782
|
},
|
|
895
|
-
"
|
|
896
|
-
"id": "
|
|
897
|
-
"description": "
|
|
898
|
-
"strict":
|
|
783
|
+
"feature-flags:import": {
|
|
784
|
+
"id": "feature-flags:import",
|
|
785
|
+
"description": "Upload an extracted set of feature flags",
|
|
786
|
+
"strict": true,
|
|
899
787
|
"pluginName": "@contrail/cli",
|
|
900
788
|
"pluginAlias": "@contrail/cli",
|
|
901
789
|
"pluginType": "core",
|
|
902
790
|
"aliases": [],
|
|
903
791
|
"examples": [
|
|
904
|
-
"contrail
|
|
905
|
-
"contrail entities get color id1 id2 id3",
|
|
906
|
-
"contrail entities get color -- id=123",
|
|
907
|
-
"contrail entities get loader-processes -- createdOn=2025-09-15..2025-09-16",
|
|
908
|
-
"contrail entities get orders -- updatedAt=2025-09-15T04:00:00Z..",
|
|
909
|
-
"contrail entities get events -- timestamp=..2025-09-16T23:59:59Z"
|
|
792
|
+
"$ contrail feature-flags import\n"
|
|
910
793
|
],
|
|
911
794
|
"flags": {
|
|
912
795
|
"logLevel": {
|
|
@@ -936,190 +819,17 @@
|
|
|
936
819
|
],
|
|
937
820
|
"default": "true"
|
|
938
821
|
},
|
|
939
|
-
"
|
|
940
|
-
"name": "
|
|
941
|
-
"type": "option",
|
|
942
|
-
"char": "o",
|
|
943
|
-
"description": "File to save the output (optional)",
|
|
944
|
-
"required": false,
|
|
945
|
-
"multiple": false
|
|
946
|
-
},
|
|
947
|
-
"propertySlugs": {
|
|
948
|
-
"name": "propertySlugs",
|
|
949
|
-
"type": "option",
|
|
950
|
-
"char": "p",
|
|
951
|
-
"description": "Comma-separated list of property slugs to include in the output",
|
|
952
|
-
"required": false,
|
|
953
|
-
"multiple": false
|
|
954
|
-
},
|
|
955
|
-
"paginated": {
|
|
956
|
-
"name": "paginated",
|
|
957
|
-
"type": "boolean",
|
|
958
|
-
"char": "P",
|
|
959
|
-
"description": "If true, fetches all entities in a paginated manner",
|
|
960
|
-
"required": false,
|
|
961
|
-
"allowNo": false
|
|
962
|
-
},
|
|
963
|
-
"skip": {
|
|
964
|
-
"name": "skip",
|
|
965
|
-
"type": "option",
|
|
966
|
-
"char": "s",
|
|
967
|
-
"description": "Number of entities to skip (used with paginated fetch)",
|
|
968
|
-
"required": false,
|
|
969
|
-
"multiple": false
|
|
970
|
-
},
|
|
971
|
-
"skipHydrateRelationships": {
|
|
972
|
-
"name": "skipHydrateRelationships",
|
|
973
|
-
"type": "boolean",
|
|
974
|
-
"char": "S",
|
|
975
|
-
"description": "Skip hydrating relationships when fetching the entity",
|
|
976
|
-
"required": false,
|
|
977
|
-
"allowNo": false
|
|
978
|
-
},
|
|
979
|
-
"take": {
|
|
980
|
-
"name": "take",
|
|
981
|
-
"type": "option",
|
|
982
|
-
"char": "t",
|
|
983
|
-
"description": "Number of entities to fetch in a single request (default is 100)",
|
|
984
|
-
"required": false,
|
|
985
|
-
"multiple": false
|
|
986
|
-
},
|
|
987
|
-
"relations": {
|
|
988
|
-
"name": "relations",
|
|
989
|
-
"type": "option",
|
|
990
|
-
"char": "r",
|
|
991
|
-
"description": "Comma-separated list of relations to include in the output",
|
|
992
|
-
"required": false,
|
|
993
|
-
"multiple": false
|
|
994
|
-
},
|
|
995
|
-
"suffix": {
|
|
996
|
-
"name": "suffix",
|
|
997
|
-
"type": "option",
|
|
998
|
-
"description": "Append a sub-route to the entity endpoint (e.g. --suffix=synchronous targets /<entities>/synchronous)",
|
|
999
|
-
"required": false,
|
|
1000
|
-
"multiple": false
|
|
1001
|
-
},
|
|
1002
|
-
"apiVersion": {
|
|
1003
|
-
"name": "apiVersion",
|
|
1004
|
-
"type": "option",
|
|
1005
|
-
"description": "Api-Version header to send; selects the V1 or V2 variant of the endpoint",
|
|
1006
|
-
"required": false,
|
|
1007
|
-
"multiple": false,
|
|
1008
|
-
"options": [
|
|
1009
|
-
"1",
|
|
1010
|
-
"2"
|
|
1011
|
-
]
|
|
1012
|
-
}
|
|
1013
|
-
},
|
|
1014
|
-
"args": {
|
|
1015
|
-
"typePath": {
|
|
1016
|
-
"name": "typePath",
|
|
1017
|
-
"description": "The name of the entity type to fetch",
|
|
1018
|
-
"required": true
|
|
1019
|
-
},
|
|
1020
|
-
"ids": {
|
|
1021
|
-
"name": "ids",
|
|
1022
|
-
"description": "One or more entity ids; shorthand for the id/ids criteria",
|
|
1023
|
-
"required": false
|
|
1024
|
-
}
|
|
1025
|
-
}
|
|
1026
|
-
},
|
|
1027
|
-
"entities:update": {
|
|
1028
|
-
"id": "entities:update",
|
|
1029
|
-
"description": "Update an entity",
|
|
1030
|
-
"strict": false,
|
|
1031
|
-
"pluginName": "@contrail/cli",
|
|
1032
|
-
"pluginAlias": "@contrail/cli",
|
|
1033
|
-
"pluginType": "core",
|
|
1034
|
-
"aliases": [],
|
|
1035
|
-
"examples": [
|
|
1036
|
-
"contrail entities update color 123 -- name=obsidian hex=000000",
|
|
1037
|
-
"contrail entities update item id1 id2 id3 -- status=archived # apply the same change to several entities",
|
|
1038
|
-
"contrail entities update color 123 -- description= notes='\"\"' # Unset description, set notes to empty string"
|
|
1039
|
-
],
|
|
1040
|
-
"flags": {
|
|
1041
|
-
"logLevel": {
|
|
1042
|
-
"name": "logLevel",
|
|
1043
|
-
"type": "option",
|
|
1044
|
-
"char": "l",
|
|
1045
|
-
"description": "The Log Level",
|
|
1046
|
-
"required": false,
|
|
1047
|
-
"multiple": false,
|
|
1048
|
-
"options": [
|
|
1049
|
-
"error",
|
|
1050
|
-
"warn",
|
|
1051
|
-
"info",
|
|
1052
|
-
"debug"
|
|
1053
|
-
]
|
|
1054
|
-
},
|
|
1055
|
-
"alwaysConfirmEnv": {
|
|
1056
|
-
"name": "alwaysConfirmEnv",
|
|
822
|
+
"dir": {
|
|
823
|
+
"name": "dir",
|
|
1057
824
|
"type": "option",
|
|
1058
|
-
"char": "e",
|
|
1059
|
-
"description": "The Environment variables",
|
|
1060
|
-
"required": false,
|
|
1061
|
-
"multiple": false,
|
|
1062
|
-
"options": [
|
|
1063
|
-
"true",
|
|
1064
|
-
"false"
|
|
1065
|
-
],
|
|
1066
|
-
"default": "true"
|
|
1067
|
-
},
|
|
1068
|
-
"skipHydrateRelationships": {
|
|
1069
|
-
"name": "skipHydrateRelationships",
|
|
1070
|
-
"type": "boolean",
|
|
1071
|
-
"char": "S",
|
|
1072
|
-
"description": "Skip hydrating relationships when updating the entity",
|
|
1073
|
-
"required": false,
|
|
1074
|
-
"allowNo": false
|
|
1075
|
-
},
|
|
1076
|
-
"dryRun": {
|
|
1077
|
-
"name": "dryRun",
|
|
1078
|
-
"type": "boolean",
|
|
1079
825
|
"char": "d",
|
|
1080
|
-
"description": "
|
|
1081
|
-
"required": false,
|
|
1082
|
-
"allowNo": false
|
|
1083
|
-
},
|
|
1084
|
-
"inputFile": {
|
|
1085
|
-
"name": "inputFile",
|
|
1086
|
-
"type": "option",
|
|
1087
|
-
"char": "i",
|
|
1088
|
-
"description": "A file with a JSON array of {id, ...} objects; each object is one entity to update.",
|
|
1089
|
-
"required": false,
|
|
1090
|
-
"multiple": false
|
|
1091
|
-
},
|
|
1092
|
-
"suffix": {
|
|
1093
|
-
"name": "suffix",
|
|
1094
|
-
"type": "option",
|
|
1095
|
-
"description": "Append a sub-route to the entity endpoint (e.g. --suffix=synchronous targets /<entities>/synchronous)",
|
|
1096
|
-
"required": false,
|
|
1097
|
-
"multiple": false
|
|
1098
|
-
},
|
|
1099
|
-
"apiVersion": {
|
|
1100
|
-
"name": "apiVersion",
|
|
1101
|
-
"type": "option",
|
|
1102
|
-
"description": "Api-Version header to send; selects the V1 or V2 variant of the endpoint",
|
|
826
|
+
"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",
|
|
1103
827
|
"required": false,
|
|
1104
828
|
"multiple": false,
|
|
1105
|
-
"
|
|
1106
|
-
"1",
|
|
1107
|
-
"2"
|
|
1108
|
-
]
|
|
829
|
+
"default": "."
|
|
1109
830
|
}
|
|
1110
831
|
},
|
|
1111
|
-
"args": {
|
|
1112
|
-
"entityName": {
|
|
1113
|
-
"name": "entityName",
|
|
1114
|
-
"description": "The name of the entity type to update",
|
|
1115
|
-
"required": true
|
|
1116
|
-
},
|
|
1117
|
-
"ids": {
|
|
1118
|
-
"name": "ids",
|
|
1119
|
-
"description": "One or more entity ids to update",
|
|
1120
|
-
"required": false
|
|
1121
|
-
}
|
|
1122
|
-
}
|
|
832
|
+
"args": {}
|
|
1123
833
|
},
|
|
1124
834
|
"file:upload": {
|
|
1125
835
|
"id": "file:upload",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contrail/cli",
|
|
3
|
-
"version": "3.6.0-alpha
|
|
3
|
+
"version": "3.6.0-alpha.693d785",
|
|
4
4
|
"description": "VibeIQ's Contrail Platform CLI.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"contrail-cli": "./bin/run",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"/npm-shrinkwrap.json",
|
|
22
22
|
"/oclif.manifest.json"
|
|
23
23
|
],
|
|
24
|
-
"
|
|
24
|
+
"bundledDependencies": [
|
|
25
25
|
"@contrail/entity-types",
|
|
26
26
|
"@contrail/loader",
|
|
27
27
|
"@contrail/org-config-migration",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"@contrail/entity-types": "^1.6.1",
|
|
34
34
|
"@contrail/loader": "^2.0.9",
|
|
35
35
|
"@contrail/org-config-migration": "^1.2.0",
|
|
36
|
-
"@contrail/sdk": "1.
|
|
36
|
+
"@contrail/sdk": "^1.5.13",
|
|
37
37
|
"@contrail/types": "^3.1.5",
|
|
38
38
|
"@contrail/util": "^1.2.0",
|
|
39
39
|
"@oclif/core": "^2",
|
|
@@ -59,7 +59,6 @@
|
|
|
59
59
|
"ncp": "^2.0.0",
|
|
60
60
|
"pkg-install": "^1.0.0",
|
|
61
61
|
"semver": "^7.5.4",
|
|
62
|
-
"unique-names-generator": "^4.7.1",
|
|
63
62
|
"winston": "^3.10.0",
|
|
64
63
|
"zip-a-folder": "^1.1.5"
|
|
65
64
|
},
|
|
@@ -117,6 +116,9 @@
|
|
|
117
116
|
"org-config": {
|
|
118
117
|
"description": "Export and import org-level configuration"
|
|
119
118
|
},
|
|
119
|
+
"feature-flags": {
|
|
120
|
+
"description": "Export and import the org's enabled feature flags"
|
|
121
|
+
},
|
|
120
122
|
"webhooks": {
|
|
121
123
|
"description": "Manage VibeIQ webhooks"
|
|
122
124
|
},
|
|
@@ -159,5 +161,13 @@
|
|
|
159
161
|
},
|
|
160
162
|
"coverageDirectory": "../coverage",
|
|
161
163
|
"testEnvironment": "node"
|
|
162
|
-
}
|
|
164
|
+
},
|
|
165
|
+
"bundleDependencies": [
|
|
166
|
+
"@contrail/entity-types",
|
|
167
|
+
"@contrail/loader",
|
|
168
|
+
"@contrail/org-config-migration",
|
|
169
|
+
"@contrail/sdk",
|
|
170
|
+
"@contrail/types",
|
|
171
|
+
"@contrail/util"
|
|
172
|
+
]
|
|
163
173
|
}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { PropertyLevel, PropertyType } from '@contrail/types';
|
|
2
|
-
import { ColonDelimited, TypeProperty as ExtendedTypeProperty, TypeReferencesCacheByPath } from '../../api/types';
|
|
3
|
-
import { TypeWithProperties } from '../../api/types';
|
|
4
|
-
import { BaseCommand } from '../../basecommand';
|
|
5
|
-
import { Role } from '../../helpers/entities';
|
|
6
|
-
export default class CreateEntity extends BaseCommand {
|
|
7
|
-
static description: string;
|
|
8
|
-
static examples: string[];
|
|
9
|
-
static flags: {
|
|
10
|
-
count: import("@oclif/core/lib/interfaces").OptionFlag<number, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
11
|
-
dryRun: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
12
|
-
inputFile: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
13
|
-
outputFile: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
14
|
-
generateValues: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
15
|
-
readableIds: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
16
|
-
skipHydrateRelationships: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
17
|
-
suffix: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
18
|
-
apiVersion: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
19
|
-
alwaysConfirmEnv: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
20
|
-
logLevel: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
21
|
-
};
|
|
22
|
-
static args: {
|
|
23
|
-
path: import("@oclif/core/lib/interfaces/parser").Arg<string, Record<string, unknown>>;
|
|
24
|
-
};
|
|
25
|
-
static strict: boolean;
|
|
26
|
-
run(): Promise<void>;
|
|
27
|
-
}
|
|
28
|
-
export type CreateSummary = {
|
|
29
|
-
created: any[];
|
|
30
|
-
failed: {
|
|
31
|
-
input: any;
|
|
32
|
-
error: string;
|
|
33
|
-
}[];
|
|
34
|
-
};
|
|
35
|
-
export declare function summarizeSettledCreates(inputs: any[], settled: PromiseSettledResult<any>[]): CreateSummary;
|
|
36
|
-
export type WithId = {
|
|
37
|
-
id: string;
|
|
38
|
-
[key: string]: any;
|
|
39
|
-
};
|
|
40
|
-
export type ObjectReferenceCache = Map<string, WithId>;
|
|
41
|
-
type ObjectReferenceCachesByTypePath = Map<string, ObjectReferenceCache>;
|
|
42
|
-
export declare function pickRandomValueForProperty(property: ExtendedTypeProperty, objectReferencesCache: ObjectReferenceCachesByTypePath, typeReferencesCache: TypeReferencesCacheByPath): number | string | string[] | boolean | null;
|
|
43
|
-
export declare function castValueToPropertyType(value: string | number | string[] | number[], propertyType: PropertyType): any;
|
|
44
|
-
export declare function getReferencedObjectPaths(type: TypeWithProperties): ColonDelimited[];
|
|
45
|
-
export declare function buildObjectReferenceCache(entities: any[]): ObjectReferenceCache;
|
|
46
|
-
export declare function selectRandomObject(cache: ObjectReferenceCache): WithId;
|
|
47
|
-
export declare function doesPropertyLevelMatchRole(propertyLevel: PropertyLevel, role: Role): boolean;
|
|
48
|
-
export {};
|