@contrail/cli 3.6.0-alpha.eec506e → 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 (91) hide show
  1. package/README.md +182 -26
  2. package/dist/api/types.d.ts +35 -0
  3. package/dist/api/types.js +49 -1
  4. package/dist/auth/login.d.ts +0 -4
  5. package/dist/auth/login.js +52 -115
  6. package/dist/auth/login.spec.js +0 -100
  7. package/dist/basecommand.js +2 -2
  8. package/dist/commands/app/getApiKey.js +2 -2
  9. package/dist/commands/entities/create.d.ts +49 -0
  10. package/dist/commands/entities/create.js +618 -0
  11. package/dist/commands/entities/create.spec.js +581 -0
  12. package/dist/commands/entities/delete.d.ts +20 -0
  13. package/dist/commands/entities/delete.js +146 -0
  14. package/dist/commands/entities/get.d.ts +25 -0
  15. package/dist/commands/entities/get.js +298 -0
  16. package/dist/commands/entities/grammar.spec.d.ts +1 -0
  17. package/dist/commands/entities/grammar.spec.js +79 -0
  18. package/dist/commands/entities/output.spec.d.ts +1 -0
  19. package/dist/commands/entities/output.spec.js +72 -0
  20. package/dist/commands/entities/update.d.ts +32 -0
  21. package/dist/commands/entities/update.js +212 -0
  22. package/dist/commands/webhooks/delete.js +2 -3
  23. package/dist/common.d.ts +10 -1
  24. package/dist/common.js +37 -1
  25. package/dist/common.spec.d.ts +1 -0
  26. package/dist/common.spec.js +40 -0
  27. package/dist/helpers/config/config.d.ts +3 -3
  28. package/dist/helpers/config/config.js +3 -3
  29. package/dist/helpers/entities/assortment-items.d.ts +11 -0
  30. package/dist/helpers/entities/assortment-items.js +76 -0
  31. package/dist/helpers/entities/batchFetch.d.ts +11 -0
  32. package/dist/helpers/entities/batchFetch.js +50 -0
  33. package/dist/helpers/entities/index.d.ts +3 -0
  34. package/dist/helpers/entities/index.js +6 -0
  35. package/dist/helpers/entities/items.d.ts +6 -0
  36. package/dist/helpers/entities/items.js +60 -0
  37. package/dist/helpers/entities/items.spec.d.ts +1 -0
  38. package/dist/helpers/entities/items.spec.js +19 -0
  39. package/dist/helpers/entities/project-items.d.ts +2 -0
  40. package/dist/helpers/entities/project-items.js +44 -0
  41. package/dist/helpers/file-helpers.d.ts +1 -0
  42. package/dist/helpers/file-helpers.js +20 -3
  43. package/dist/helpers/propertySpecifications/dateRanges.d.ts +34 -0
  44. package/dist/helpers/propertySpecifications/dateRanges.js +91 -0
  45. package/dist/helpers/propertySpecifications/dateRanges.spec.d.ts +1 -0
  46. package/dist/helpers/propertySpecifications/dateRanges.spec.js +97 -0
  47. package/dist/helpers/propertySpecifications/propertySpecifications.d.ts +39 -0
  48. package/dist/helpers/propertySpecifications/propertySpecifications.js +102 -0
  49. package/dist/helpers/propertySpecifications/propertySpecifications.spec.d.ts +1 -0
  50. package/dist/helpers/propertySpecifications/propertySpecifications.spec.js +387 -0
  51. package/dist/helpers/propertySpecifications/propertyValues.d.ts +31 -0
  52. package/dist/helpers/propertySpecifications/propertyValues.js +132 -0
  53. package/dist/helpers/propertySpecifications/propertyValues.spec.d.ts +1 -0
  54. package/dist/helpers/propertySpecifications/propertyValues.spec.js +156 -0
  55. package/dist/logger.js +4 -1
  56. package/dist/logger.spec.d.ts +1 -0
  57. package/dist/logger.spec.js +12 -0
  58. package/node_modules/@contrail/entity-compare/package.json +6 -3
  59. package/node_modules/@contrail/loader/lib/common/conditional-columns.js +1 -1
  60. package/node_modules/@contrail/loader/lib/constants.d.ts +0 -8
  61. package/node_modules/@contrail/loader/lib/constants.js +1 -9
  62. package/node_modules/@contrail/loader/lib/entities-v2/linesheet-v2/item-processor.d.ts +0 -4
  63. package/node_modules/@contrail/loader/lib/entities-v2/linesheet-v2/item-processor.js +0 -57
  64. package/node_modules/@contrail/loader/lib/entities-v2/linesheet-v2/item-processor.spec.js +34 -492
  65. package/node_modules/@contrail/loader/lib/pipeline/validate.js +52 -2
  66. package/node_modules/@contrail/loader/lib/pipeline/validate.spec.js +85 -0
  67. package/node_modules/@contrail/loader/package.json +2 -2
  68. package/node_modules/@contrail/sdk/.github/workflows/publish-to-npm.yml +1 -4
  69. package/node_modules/@contrail/sdk/lib/auth/login.js +1 -1
  70. package/node_modules/@contrail/sdk/lib/config/config.d.ts +3 -0
  71. package/node_modules/@contrail/sdk/lib/config/config.js +13 -7
  72. package/node_modules/@contrail/sdk/lib/core/request.js +6 -2
  73. package/node_modules/@contrail/sdk/lib/entities/entities.client.d.ts +2 -0
  74. package/node_modules/@contrail/sdk/lib/entities/entities.client.js +3 -1
  75. package/node_modules/@contrail/sdk/lib/entities/entity.resource.registry.js +1 -0
  76. package/node_modules/@contrail/sdk/lib/image-search/image-search.d.ts +34 -0
  77. package/node_modules/@contrail/sdk/lib/image-search/image-search.js +42 -0
  78. package/node_modules/@contrail/sdk/lib/image-search/index.d.ts +1 -0
  79. package/node_modules/@contrail/sdk/lib/image-search/index.js +17 -0
  80. package/node_modules/@contrail/sdk/lib/index.d.ts +1 -0
  81. package/node_modules/@contrail/sdk/lib/index.js +1 -0
  82. package/node_modules/@contrail/sdk/package.json +1 -1
  83. package/node_modules/@contrail/sdk/scripts/replicate-bug.js +69 -0
  84. package/oclif.manifest.json +449 -50
  85. package/package.json +6 -12
  86. package/dist/auth/sso.d.ts +0 -36
  87. package/dist/auth/sso.js +0 -174
  88. package/dist/auth/sso.spec.js +0 -148
  89. package/dist/commands/login.d.ts +0 -12
  90. package/dist/commands/login.js +0 -25
  91. /package/dist/{auth/sso.spec.d.ts → commands/entities/create.spec.d.ts} +0 -0
@@ -1,55 +1,6 @@
1
1
  {
2
- "version": "3.6.0-alpha.eec506e",
2
+ "version": "3.6.0",
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
- },
53
4
  "app:create": {
54
5
  "id": "app:create",
55
6
  "description": "Create a new app. The current organization will be set as the owner of the app",
@@ -721,6 +672,454 @@
721
672
  }
722
673
  }
723
674
  },
675
+ "entities:create": {
676
+ "id": "entities:create",
677
+ "description": "Create entities",
678
+ "strict": false,
679
+ "pluginName": "@contrail/cli",
680
+ "pluginAlias": "@contrail/cli",
681
+ "pluginType": "core",
682
+ "aliases": [],
683
+ "examples": [
684
+ "contrail entities create color -g -n=10 # creates 10 random colors",
685
+ "contrail entities create color -- name=\"Electric Blue\" green=1 red=2 blue=3 # creates one color with specified properties only",
686
+ "contrail entities create custom-entity:franchise",
687
+ "contrail entities create project-item -n=10 -- projectId=abc # creates 10 project items within project ABC",
688
+ "contrail entities create color -g -r # creates a random color with a human readable ID",
689
+ "contrail entities create color -d -- name=test # simulates the creation of a color without actually creating it",
690
+ "contrail entities create custom-entity:franchise -S # creates an entity and the response does not contain hydrated relationships",
691
+ "contrail entities create color -g -- name=\"Electric Blue\" # creates a color with the name specified and other properties auto-generated",
692
+ "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"
693
+ ],
694
+ "flags": {
695
+ "logLevel": {
696
+ "name": "logLevel",
697
+ "type": "option",
698
+ "char": "l",
699
+ "description": "The Log Level",
700
+ "required": false,
701
+ "multiple": false,
702
+ "options": [
703
+ "error",
704
+ "warn",
705
+ "info",
706
+ "debug"
707
+ ]
708
+ },
709
+ "alwaysConfirmEnv": {
710
+ "name": "alwaysConfirmEnv",
711
+ "type": "option",
712
+ "char": "e",
713
+ "description": "The Environment variables",
714
+ "required": false,
715
+ "multiple": false,
716
+ "options": [
717
+ "true",
718
+ "false"
719
+ ],
720
+ "default": "true"
721
+ },
722
+ "count": {
723
+ "name": "count",
724
+ "type": "option",
725
+ "char": "n",
726
+ "description": "Number of random entities to create",
727
+ "required": false,
728
+ "multiple": false
729
+ },
730
+ "dryRun": {
731
+ "name": "dryRun",
732
+ "type": "boolean",
733
+ "char": "d",
734
+ "description": "If true, does not create the entity but simulates the creation",
735
+ "required": false,
736
+ "allowNo": false
737
+ },
738
+ "inputFile": {
739
+ "name": "inputFile",
740
+ "type": "option",
741
+ "char": "i",
742
+ "description": "A file with a JSON array of objects where each object is one entity to create. Cannot be used with --count. Unless --generateValues is specified, only the properties in the file will be used.",
743
+ "required": false,
744
+ "multiple": false
745
+ },
746
+ "outputFile": {
747
+ "name": "outputFile",
748
+ "type": "option",
749
+ "char": "o",
750
+ "description": "File to save the output (optional)",
751
+ "required": false,
752
+ "multiple": false
753
+ },
754
+ "generateValues": {
755
+ "name": "generateValues",
756
+ "type": "boolean",
757
+ "char": "g",
758
+ "description": "If true, generates random values for properties that are not specified. By default, only specified properties are used.",
759
+ "required": false,
760
+ "allowNo": false
761
+ },
762
+ "readableIds": {
763
+ "name": "readableIds",
764
+ "type": "boolean",
765
+ "char": "r",
766
+ "description": "If true, uses readable IDs for the created entities",
767
+ "required": false,
768
+ "allowNo": false
769
+ },
770
+ "skipHydrateRelationships": {
771
+ "name": "skipHydrateRelationships",
772
+ "type": "boolean",
773
+ "char": "S",
774
+ "description": "If true, does not hydrate relationships for the created entities",
775
+ "required": false,
776
+ "allowNo": false
777
+ },
778
+ "suffix": {
779
+ "name": "suffix",
780
+ "type": "option",
781
+ "description": "Append a sub-route to the entity endpoint (e.g. --suffix=synchronous targets /<entities>/synchronous)",
782
+ "required": false,
783
+ "multiple": false
784
+ },
785
+ "apiVersion": {
786
+ "name": "apiVersion",
787
+ "type": "option",
788
+ "description": "Api-Version header to send; selects the V1 or V2 variant of the endpoint",
789
+ "required": false,
790
+ "multiple": false,
791
+ "options": [
792
+ "1",
793
+ "2"
794
+ ]
795
+ }
796
+ },
797
+ "args": {
798
+ "typePath": {
799
+ "name": "typePath",
800
+ "description": "The type path of the entity to create (e.g. color, custom-entity:franchise)",
801
+ "required": true
802
+ }
803
+ }
804
+ },
805
+ "entities:delete": {
806
+ "id": "entities:delete",
807
+ "description": "Delete entities by id",
808
+ "strict": false,
809
+ "pluginName": "@contrail/cli",
810
+ "pluginAlias": "@contrail/cli",
811
+ "pluginType": "core",
812
+ "aliases": [],
813
+ "examples": [
814
+ "contrail entities delete color 123",
815
+ "contrail entities delete color id1 id2 id3",
816
+ "contrail entities delete item -i ids.json"
817
+ ],
818
+ "flags": {
819
+ "logLevel": {
820
+ "name": "logLevel",
821
+ "type": "option",
822
+ "char": "l",
823
+ "description": "The Log Level",
824
+ "required": false,
825
+ "multiple": false,
826
+ "options": [
827
+ "error",
828
+ "warn",
829
+ "info",
830
+ "debug"
831
+ ]
832
+ },
833
+ "alwaysConfirmEnv": {
834
+ "name": "alwaysConfirmEnv",
835
+ "type": "option",
836
+ "char": "e",
837
+ "description": "The Environment variables",
838
+ "required": false,
839
+ "multiple": false,
840
+ "options": [
841
+ "true",
842
+ "false"
843
+ ],
844
+ "default": "true"
845
+ },
846
+ "dryRun": {
847
+ "name": "dryRun",
848
+ "type": "boolean",
849
+ "char": "d",
850
+ "description": "If true, does not delete the entities but simulates the deletion",
851
+ "required": false,
852
+ "allowNo": false
853
+ },
854
+ "inputFile": {
855
+ "name": "inputFile",
856
+ "type": "option",
857
+ "char": "i",
858
+ "description": "A file with a JSON array of objects; only each object's id is used. Deletes every entity in the file.",
859
+ "required": false,
860
+ "multiple": false
861
+ },
862
+ "suffix": {
863
+ "name": "suffix",
864
+ "type": "option",
865
+ "description": "Append a sub-route to the entity endpoint (e.g. --suffix=synchronous targets /<entities>/synchronous)",
866
+ "required": false,
867
+ "multiple": false
868
+ },
869
+ "apiVersion": {
870
+ "name": "apiVersion",
871
+ "type": "option",
872
+ "description": "Api-Version header to send; selects the V1 or V2 variant of the endpoint",
873
+ "required": false,
874
+ "multiple": false,
875
+ "options": [
876
+ "1",
877
+ "2"
878
+ ]
879
+ }
880
+ },
881
+ "args": {
882
+ "entityName": {
883
+ "name": "entityName",
884
+ "description": "The name of the entity type to delete (type paths are not supported)",
885
+ "required": true
886
+ },
887
+ "ids": {
888
+ "name": "ids",
889
+ "description": "One or more entity ids to delete",
890
+ "required": false
891
+ }
892
+ }
893
+ },
894
+ "entities:get": {
895
+ "id": "entities:get",
896
+ "description": "Get an entity",
897
+ "strict": false,
898
+ "pluginName": "@contrail/cli",
899
+ "pluginAlias": "@contrail/cli",
900
+ "pluginType": "core",
901
+ "aliases": [],
902
+ "examples": [
903
+ "contrail entities get color 123",
904
+ "contrail entities get color id1 id2 id3",
905
+ "contrail entities get color -- id=123",
906
+ "contrail entities get loader-process -- createdOn=2026-09-01..2026-09-11",
907
+ "contrail entities get loader-process -- createdOn=2026-09-05..",
908
+ "contrail entities get loader-process -- createdOn=..2026-09-05"
909
+ ],
910
+ "flags": {
911
+ "logLevel": {
912
+ "name": "logLevel",
913
+ "type": "option",
914
+ "char": "l",
915
+ "description": "The Log Level",
916
+ "required": false,
917
+ "multiple": false,
918
+ "options": [
919
+ "error",
920
+ "warn",
921
+ "info",
922
+ "debug"
923
+ ]
924
+ },
925
+ "alwaysConfirmEnv": {
926
+ "name": "alwaysConfirmEnv",
927
+ "type": "option",
928
+ "char": "e",
929
+ "description": "The Environment variables",
930
+ "required": false,
931
+ "multiple": false,
932
+ "options": [
933
+ "true",
934
+ "false"
935
+ ],
936
+ "default": "true"
937
+ },
938
+ "outputFile": {
939
+ "name": "outputFile",
940
+ "type": "option",
941
+ "char": "o",
942
+ "description": "File to save the output (optional)",
943
+ "required": false,
944
+ "multiple": false
945
+ },
946
+ "propertySlugs": {
947
+ "name": "propertySlugs",
948
+ "type": "option",
949
+ "char": "p",
950
+ "description": "Comma-separated list of property slugs to include in the output. Only some entity types support this; the rest return full records.",
951
+ "required": false,
952
+ "multiple": false
953
+ },
954
+ "paginated": {
955
+ "name": "paginated",
956
+ "type": "boolean",
957
+ "char": "P",
958
+ "description": "If true, fetches all entities in a paginated manner",
959
+ "required": false,
960
+ "allowNo": false
961
+ },
962
+ "skip": {
963
+ "name": "skip",
964
+ "type": "option",
965
+ "char": "s",
966
+ "description": "Number of entities to skip",
967
+ "required": false,
968
+ "multiple": false
969
+ },
970
+ "skipHydrateRelationships": {
971
+ "name": "skipHydrateRelationships",
972
+ "type": "boolean",
973
+ "char": "S",
974
+ "description": "Skip hydrating relationships when fetching the entity",
975
+ "required": false,
976
+ "allowNo": false
977
+ },
978
+ "take": {
979
+ "name": "take",
980
+ "type": "option",
981
+ "char": "t",
982
+ "description": "Number of entities to fetch in a single request (default is 100)",
983
+ "required": false,
984
+ "multiple": false
985
+ },
986
+ "relations": {
987
+ "name": "relations",
988
+ "type": "option",
989
+ "char": "r",
990
+ "description": "Comma-separated list of relations to include in the output",
991
+ "required": false,
992
+ "multiple": false
993
+ },
994
+ "suffix": {
995
+ "name": "suffix",
996
+ "type": "option",
997
+ "description": "Append a sub-route to the entity endpoint (e.g. --suffix=synchronous targets /<entities>/synchronous)",
998
+ "required": false,
999
+ "multiple": false
1000
+ },
1001
+ "apiVersion": {
1002
+ "name": "apiVersion",
1003
+ "type": "option",
1004
+ "description": "Api-Version header to send; selects the V1 or V2 variant of the endpoint",
1005
+ "required": false,
1006
+ "multiple": false,
1007
+ "options": [
1008
+ "1",
1009
+ "2"
1010
+ ]
1011
+ }
1012
+ },
1013
+ "args": {
1014
+ "entityName": {
1015
+ "name": "entityName",
1016
+ "description": "The name of the entity type to fetch (type paths are not supported)",
1017
+ "required": true
1018
+ },
1019
+ "ids": {
1020
+ "name": "ids",
1021
+ "description": "One or more entity ids; shorthand for the id/ids criteria",
1022
+ "required": false
1023
+ }
1024
+ }
1025
+ },
1026
+ "entities:update": {
1027
+ "id": "entities:update",
1028
+ "description": "Update an entity",
1029
+ "strict": false,
1030
+ "pluginName": "@contrail/cli",
1031
+ "pluginAlias": "@contrail/cli",
1032
+ "pluginType": "core",
1033
+ "aliases": [],
1034
+ "examples": [
1035
+ "contrail entities update color 123 -- name=obsidian hex=000000",
1036
+ "contrail entities update item id1 id2 id3 -- colorName=obsidian # apply the same change to several entities",
1037
+ "contrail entities update color 123 -- federatedId= name='\"\"' # Unset federatedId, set name to empty string"
1038
+ ],
1039
+ "flags": {
1040
+ "logLevel": {
1041
+ "name": "logLevel",
1042
+ "type": "option",
1043
+ "char": "l",
1044
+ "description": "The Log Level",
1045
+ "required": false,
1046
+ "multiple": false,
1047
+ "options": [
1048
+ "error",
1049
+ "warn",
1050
+ "info",
1051
+ "debug"
1052
+ ]
1053
+ },
1054
+ "alwaysConfirmEnv": {
1055
+ "name": "alwaysConfirmEnv",
1056
+ "type": "option",
1057
+ "char": "e",
1058
+ "description": "The Environment variables",
1059
+ "required": false,
1060
+ "multiple": false,
1061
+ "options": [
1062
+ "true",
1063
+ "false"
1064
+ ],
1065
+ "default": "true"
1066
+ },
1067
+ "skipHydrateRelationships": {
1068
+ "name": "skipHydrateRelationships",
1069
+ "type": "boolean",
1070
+ "char": "S",
1071
+ "description": "Skip hydrating relationships when updating the entity",
1072
+ "required": false,
1073
+ "allowNo": false
1074
+ },
1075
+ "dryRun": {
1076
+ "name": "dryRun",
1077
+ "type": "boolean",
1078
+ "char": "d",
1079
+ "description": "If true, does not update the entities but simulates the update",
1080
+ "required": false,
1081
+ "allowNo": false
1082
+ },
1083
+ "inputFile": {
1084
+ "name": "inputFile",
1085
+ "type": "option",
1086
+ "char": "i",
1087
+ "description": "A file with a JSON array of {id, ...} objects; each object is one entity to update.",
1088
+ "required": false,
1089
+ "multiple": false
1090
+ },
1091
+ "suffix": {
1092
+ "name": "suffix",
1093
+ "type": "option",
1094
+ "description": "Append a sub-route to the entity endpoint (e.g. --suffix=synchronous targets /<entities>/synchronous)",
1095
+ "required": false,
1096
+ "multiple": false
1097
+ },
1098
+ "apiVersion": {
1099
+ "name": "apiVersion",
1100
+ "type": "option",
1101
+ "description": "Api-Version header to send; selects the V1 or V2 variant of the endpoint",
1102
+ "required": false,
1103
+ "multiple": false,
1104
+ "options": [
1105
+ "1",
1106
+ "2"
1107
+ ]
1108
+ }
1109
+ },
1110
+ "args": {
1111
+ "entityName": {
1112
+ "name": "entityName",
1113
+ "description": "The name of the entity type to update (type paths are not supported)",
1114
+ "required": true
1115
+ },
1116
+ "ids": {
1117
+ "name": "ids",
1118
+ "description": "One or more entity ids to update",
1119
+ "required": false
1120
+ }
1121
+ }
1122
+ },
724
1123
  "feature-flags:export": {
725
1124
  "id": "feature-flags:export",
726
1125
  "description": "Export the enabled feature flags for your Org",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrail/cli",
3
- "version": "3.6.0-alpha.eec506e",
3
+ "version": "3.6.0",
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
- "bundledDependencies": [
24
+ "bundleDependencies": [
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.5.13",
36
+ "@contrail/sdk": "^1.6.0",
37
37
  "@contrail/types": "^3.1.5",
38
38
  "@contrail/util": "^1.2.0",
39
39
  "@oclif/core": "^2",
@@ -57,8 +57,10 @@
57
57
  "listr": "^0.14.3",
58
58
  "lodash": "^4.17.21",
59
59
  "ncp": "^2.0.0",
60
+ "p-limit": "^3.1.0",
60
61
  "pkg-install": "^1.0.0",
61
62
  "semver": "^7.5.4",
63
+ "unique-names-generator": "^4.7.1",
62
64
  "winston": "^3.10.0",
63
65
  "zip-a-folder": "^1.1.5"
64
66
  },
@@ -161,13 +163,5 @@
161
163
  },
162
164
  "coverageDirectory": "../coverage",
163
165
  "testEnvironment": "node"
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
- ]
166
+ }
173
167
  }
@@ -1,36 +0,0 @@
1
- /// <reference types="node" />
2
- export declare const LOOPBACK_PORT = 7731;
3
- export declare const LOOPBACK_CALLBACK_URL: string;
4
- export interface SsoClient {
5
- domain: string;
6
- clientId: string;
7
- }
8
- export interface SsoTokens {
9
- accessToken: string;
10
- refreshToken: string;
11
- }
12
- export interface PkceChallenge {
13
- verifier: string;
14
- challenge: string;
15
- state: string;
16
- }
17
- export type SsoDomainCheck = {
18
- kind: 'cognito';
19
- identityProvider: string;
20
- } | {
21
- kind: 'legacy';
22
- } | {
23
- kind: 'none';
24
- };
25
- export declare function fetchSsoDomainCheck(email: string, apiGateway: string): Promise<SsoDomainCheck>;
26
- export declare function createPkceChallenge(): PkceChallenge;
27
- export declare function buildAuthorizeUrl(client: SsoClient, identityProvider: string, redirectUri: string, pkce: PkceChallenge): string;
28
- export declare function parsePastedSignInCode(pasted: string, expectedState: string): string;
29
- export interface LoopbackListener {
30
- code: Promise<string>;
31
- }
32
- export declare function listenForLoopbackCode(expectedState: string): Promise<LoopbackListener>;
33
- export declare function canOpenBrowser(env?: NodeJS.ProcessEnv, platform?: NodeJS.Platform): boolean;
34
- export declare function openBrowser(url: string): Promise<void>;
35
- export declare function exchangeCodeForTokens(client: SsoClient, code: string, redirectUri: string, verifier: string): Promise<SsoTokens>;
36
- export declare function refreshSsoAccessToken(client: SsoClient, refreshToken: string): Promise<string>;