@contrail/cli 3.6.0-alpha-8-alpha.c613d8e → 3.6.0-alpha-8-alpha.2ba81bf
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 +58 -31
- package/dist/auth/login.js +9 -8
- package/dist/basecommand.js +2 -2
- package/dist/commands/app/getApiKey.js +2 -2
- package/dist/commands/entities/create.d.ts +13 -1
- package/dist/commands/entities/create.js +98 -31
- package/dist/commands/entities/create.spec.js +32 -3
- package/dist/commands/entities/delete.d.ts +6 -2
- package/dist/commands/entities/delete.js +72 -53
- package/dist/commands/entities/get.d.ts +4 -0
- package/dist/commands/entities/get.js +66 -15
- package/dist/commands/entities/grammar.spec.d.ts +1 -0
- package/dist/commands/entities/grammar.spec.js +80 -0
- package/dist/commands/entities/output.spec.d.ts +1 -0
- package/dist/commands/entities/output.spec.js +72 -0
- package/dist/commands/entities/update.d.ts +15 -2
- package/dist/commands/entities/update.js +80 -44
- package/dist/common.d.ts +3 -0
- package/dist/common.js +18 -1
- package/dist/helpers/entities/assortment-items.d.ts +4 -2
- package/dist/helpers/entities/assortment-items.js +4 -1
- package/dist/helpers/file-helpers.js +2 -2
- package/dist/helpers/propertySpecifications/propertySpecifications.d.ts +8 -0
- package/dist/helpers/propertySpecifications/propertySpecifications.js +21 -9
- package/dist/helpers/propertySpecifications/propertySpecifications.spec.js +20 -10
- package/dist/logger.js +4 -1
- package/dist/logger.spec.d.ts +1 -0
- package/dist/logger.spec.js +12 -0
- package/oclif.manifest.json +99 -27
- package/package.json +1 -1
package/oclif.manifest.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "3.6.0-alpha-8-alpha.
|
|
2
|
+
"version": "3.6.0-alpha-8-alpha.2ba81bf",
|
|
3
3
|
"commands": {
|
|
4
4
|
"app:create": {
|
|
5
5
|
"id": "app:create",
|
|
@@ -675,7 +675,7 @@
|
|
|
675
675
|
},
|
|
676
676
|
"entities:create": {
|
|
677
677
|
"id": "entities:create",
|
|
678
|
-
"description": "
|
|
678
|
+
"description": "Create entities",
|
|
679
679
|
"strict": false,
|
|
680
680
|
"pluginName": "@contrail/cli",
|
|
681
681
|
"pluginAlias": "@contrail/cli",
|
|
@@ -771,10 +771,28 @@
|
|
|
771
771
|
"skipHydrateRelationships": {
|
|
772
772
|
"name": "skipHydrateRelationships",
|
|
773
773
|
"type": "boolean",
|
|
774
|
-
"char": "
|
|
774
|
+
"char": "S",
|
|
775
775
|
"description": "If true, does not hydrate relationships for the created entities",
|
|
776
776
|
"required": false,
|
|
777
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
|
+
]
|
|
778
796
|
}
|
|
779
797
|
},
|
|
780
798
|
"args": {
|
|
@@ -787,14 +805,16 @@
|
|
|
787
805
|
},
|
|
788
806
|
"entities:delete": {
|
|
789
807
|
"id": "entities:delete",
|
|
790
|
-
"description": "
|
|
791
|
-
"strict":
|
|
808
|
+
"description": "Delete entities by id",
|
|
809
|
+
"strict": false,
|
|
792
810
|
"pluginName": "@contrail/cli",
|
|
793
811
|
"pluginAlias": "@contrail/cli",
|
|
794
812
|
"pluginType": "core",
|
|
795
813
|
"aliases": [],
|
|
796
814
|
"examples": [
|
|
797
|
-
"contrail entities delete color 123"
|
|
815
|
+
"contrail entities delete color 123",
|
|
816
|
+
"contrail entities delete color id1 id2 id3",
|
|
817
|
+
"contrail entities delete item -i ids.json"
|
|
798
818
|
],
|
|
799
819
|
"flags": {
|
|
800
820
|
"logLevel": {
|
|
@@ -828,24 +848,35 @@
|
|
|
828
848
|
"name": "dryRun",
|
|
829
849
|
"type": "boolean",
|
|
830
850
|
"char": "d",
|
|
831
|
-
"description": "If true, does not delete the
|
|
851
|
+
"description": "If true, does not delete the entities but simulates the deletion",
|
|
832
852
|
"required": false,
|
|
833
853
|
"allowNo": false
|
|
834
854
|
},
|
|
835
|
-
"
|
|
836
|
-
"name": "
|
|
855
|
+
"inputFile": {
|
|
856
|
+
"name": "inputFile",
|
|
837
857
|
"type": "option",
|
|
838
858
|
"char": "i",
|
|
839
|
-
"description": "A JSON array of objects
|
|
859
|
+
"description": "A file with a JSON array of objects; only each object's id is used. Deletes every entity in the file.",
|
|
840
860
|
"required": false,
|
|
841
861
|
"multiple": false
|
|
842
862
|
},
|
|
843
|
-
"
|
|
844
|
-
"name": "
|
|
863
|
+
"suffix": {
|
|
864
|
+
"name": "suffix",
|
|
845
865
|
"type": "option",
|
|
846
|
-
"description": "
|
|
866
|
+
"description": "Append a sub-route to the entity endpoint (e.g. --suffix=synchronous targets /<entities>/synchronous)",
|
|
847
867
|
"required": false,
|
|
848
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
|
+
]
|
|
849
880
|
}
|
|
850
881
|
},
|
|
851
882
|
"args": {
|
|
@@ -853,18 +884,25 @@
|
|
|
853
884
|
"name": "entityName",
|
|
854
885
|
"description": "The name of the entity type to delete",
|
|
855
886
|
"required": true
|
|
887
|
+
},
|
|
888
|
+
"ids": {
|
|
889
|
+
"name": "ids",
|
|
890
|
+
"description": "One or more entity ids to delete",
|
|
891
|
+
"required": false
|
|
856
892
|
}
|
|
857
893
|
}
|
|
858
894
|
},
|
|
859
895
|
"entities:get": {
|
|
860
896
|
"id": "entities:get",
|
|
861
|
-
"description": "
|
|
897
|
+
"description": "Get an entity",
|
|
862
898
|
"strict": false,
|
|
863
899
|
"pluginName": "@contrail/cli",
|
|
864
900
|
"pluginAlias": "@contrail/cli",
|
|
865
901
|
"pluginType": "core",
|
|
866
902
|
"aliases": [],
|
|
867
903
|
"examples": [
|
|
904
|
+
"contrail entities get color 123",
|
|
905
|
+
"contrail entities get color id1 id2 id3",
|
|
868
906
|
"contrail entities get color -- id=123",
|
|
869
907
|
"contrail entities get loader-processes -- createdOn=2025-09-15..2025-09-16",
|
|
870
908
|
"contrail entities get orders -- updatedAt=2025-09-15T04:00:00Z..",
|
|
@@ -953,6 +991,24 @@
|
|
|
953
991
|
"description": "Comma-separated list of relations to include in the output",
|
|
954
992
|
"required": false,
|
|
955
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
|
+
]
|
|
956
1012
|
}
|
|
957
1013
|
},
|
|
958
1014
|
"args": {
|
|
@@ -960,12 +1016,17 @@
|
|
|
960
1016
|
"name": "typePath",
|
|
961
1017
|
"description": "The name of the entity type to fetch",
|
|
962
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
|
|
963
1024
|
}
|
|
964
1025
|
}
|
|
965
1026
|
},
|
|
966
1027
|
"entities:update": {
|
|
967
1028
|
"id": "entities:update",
|
|
968
|
-
"description": "
|
|
1029
|
+
"description": "Update an entity",
|
|
969
1030
|
"strict": false,
|
|
970
1031
|
"pluginName": "@contrail/cli",
|
|
971
1032
|
"pluginAlias": "@contrail/cli",
|
|
@@ -973,6 +1034,7 @@
|
|
|
973
1034
|
"aliases": [],
|
|
974
1035
|
"examples": [
|
|
975
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",
|
|
976
1038
|
"contrail entities update color 123 -- description= notes='\"\"' # Unset description, set notes to empty string"
|
|
977
1039
|
],
|
|
978
1040
|
"flags": {
|
|
@@ -1006,7 +1068,7 @@
|
|
|
1006
1068
|
"skipHydrateRelationships": {
|
|
1007
1069
|
"name": "skipHydrateRelationships",
|
|
1008
1070
|
"type": "boolean",
|
|
1009
|
-
"char": "
|
|
1071
|
+
"char": "S",
|
|
1010
1072
|
"description": "Skip hydrating relationships when updating the entity",
|
|
1011
1073
|
"required": false,
|
|
1012
1074
|
"allowNo": false
|
|
@@ -1015,7 +1077,7 @@
|
|
|
1015
1077
|
"name": "dryRun",
|
|
1016
1078
|
"type": "boolean",
|
|
1017
1079
|
"char": "d",
|
|
1018
|
-
"description": "If true, does not
|
|
1080
|
+
"description": "If true, does not update the entities but simulates the update",
|
|
1019
1081
|
"required": false,
|
|
1020
1082
|
"allowNo": false
|
|
1021
1083
|
},
|
|
@@ -1023,17 +1085,27 @@
|
|
|
1023
1085
|
"name": "inputFile",
|
|
1024
1086
|
"type": "option",
|
|
1025
1087
|
"char": "i",
|
|
1026
|
-
"description": "
|
|
1088
|
+
"description": "A file with a JSON array of {id, ...} objects; each object is one entity to update.",
|
|
1027
1089
|
"required": false,
|
|
1028
1090
|
"multiple": false
|
|
1029
1091
|
},
|
|
1030
|
-
"
|
|
1031
|
-
"name": "
|
|
1032
|
-
"type": "
|
|
1033
|
-
"
|
|
1034
|
-
"description": "Force update without validation. Internal use only",
|
|
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)",
|
|
1035
1096
|
"required": false,
|
|
1036
|
-
"
|
|
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",
|
|
1103
|
+
"required": false,
|
|
1104
|
+
"multiple": false,
|
|
1105
|
+
"options": [
|
|
1106
|
+
"1",
|
|
1107
|
+
"2"
|
|
1108
|
+
]
|
|
1037
1109
|
}
|
|
1038
1110
|
},
|
|
1039
1111
|
"args": {
|
|
@@ -1042,9 +1114,9 @@
|
|
|
1042
1114
|
"description": "The name of the entity type to update",
|
|
1043
1115
|
"required": true
|
|
1044
1116
|
},
|
|
1045
|
-
"
|
|
1046
|
-
"name": "
|
|
1047
|
-
"description": "
|
|
1117
|
+
"ids": {
|
|
1118
|
+
"name": "ids",
|
|
1119
|
+
"description": "One or more entity ids to update",
|
|
1048
1120
|
"required": false
|
|
1049
1121
|
}
|
|
1050
1122
|
}
|