@forge/cli 6.18.0-next.33 → 6.18.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,149 @@
1
1
  # @forge/cli
2
2
 
3
+ ## 6.18.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 7aba0598: Remove contributor-related commands
8
+ - bd192806: Added ngrok config option to tunnel
9
+
10
+ ### Patch Changes
11
+
12
+ - f232da40: Bumping dependencies via Renovate:
13
+
14
+ - @sentry/node
15
+
16
+ - 641b0551: Bumping dependencies via Renovate:
17
+
18
+ - @types/node-fetch
19
+
20
+ - 4fc8a79b: Bumping dependencies via Renovate:
21
+
22
+ - jest
23
+
24
+ - 63838e1a: Bumping dependencies via Renovate:
25
+
26
+ - form-data
27
+
28
+ - fcac793f: Bumping dependencies via Renovate:
29
+
30
+ - @types/archiver
31
+
32
+ - daaa9434: Use unique container names to avoid clashes
33
+ - efffc256: Bumping dependencies via Renovate:
34
+
35
+ - @types/node
36
+
37
+ - dee98164: Bumping dependencies via Renovate:
38
+
39
+ - @types/hidefile
40
+
41
+ - c6347594: Update postinstall and node-pty for node 20
42
+ - c1c5fb59: Bumping dependencies via Renovate:
43
+
44
+ - @types/node
45
+
46
+ - bff722d9: Refactor tunnel setup
47
+ - 6f4e2f01: Bumping dependencies via Renovate:
48
+
49
+ - @types/jest
50
+
51
+ - 2788f46a: Bumping dependencies via Renovate:
52
+
53
+ - @types/semver
54
+
55
+ - 764d4c0f: Bumping dependencies via Renovate:
56
+
57
+ - fs-extra
58
+ - @types/fs-extra
59
+
60
+ - 6ec038fe: Bumping dependencies via Renovate:
61
+
62
+ - chalk
63
+
64
+ - cbba9bd4: Bumping dependencies via Renovate:
65
+
66
+ - fs-extra
67
+
68
+ - 9d9361e8: Bumping dependencies via Renovate:
69
+
70
+ - @types/js-yaml
71
+
72
+ - 4523b9cc: Bumping dependencies via Renovate:
73
+
74
+ - @types/fs-extra
75
+
76
+ - fe74dfbd: Bumping dependencies via Renovate:
77
+
78
+ - @sentry/node
79
+
80
+ - cd438e75: Bumping dependencies via Renovate:
81
+
82
+ - dayjs
83
+
84
+ - 2c1ee248: Bumping dependencies via Renovate:
85
+
86
+ - @types/tmp
87
+
88
+ - Updated dependencies [31dc4c57]
89
+ - Updated dependencies [342f87ac]
90
+ - Updated dependencies [0160dc8c]
91
+ - Updated dependencies [b6d6adbe]
92
+ - Updated dependencies [00a6d9d6]
93
+ - Updated dependencies [3a516891]
94
+ - Updated dependencies [f232da40]
95
+ - Updated dependencies [3994557a]
96
+ - Updated dependencies [641b0551]
97
+ - Updated dependencies [4fc8a79b]
98
+ - Updated dependencies [083a487e]
99
+ - Updated dependencies [7aba0598]
100
+ - Updated dependencies [4ccdaa4e]
101
+ - Updated dependencies [efffc256]
102
+ - Updated dependencies [feb7bf63]
103
+ - Updated dependencies [521fda43]
104
+ - Updated dependencies [5540b552]
105
+ - Updated dependencies [c1c5fb59]
106
+ - Updated dependencies [1b9404d0]
107
+ - Updated dependencies [6f4e2f01]
108
+ - Updated dependencies [c02dfc6e]
109
+ - Updated dependencies [764d4c0f]
110
+ - Updated dependencies [6ec038fe]
111
+ - Updated dependencies [0a747ea2]
112
+ - Updated dependencies [4268a819]
113
+ - Updated dependencies [7d3fb7aa]
114
+ - Updated dependencies [3d8ad494]
115
+ - Updated dependencies [cbba9bd4]
116
+ - Updated dependencies [9d9361e8]
117
+ - Updated dependencies [4523b9cc]
118
+ - Updated dependencies [e6d5a27f]
119
+ - Updated dependencies [9e921628]
120
+ - Updated dependencies [fe74dfbd]
121
+ - Updated dependencies [be07192e]
122
+ - Updated dependencies [bd192806]
123
+ - Updated dependencies [2c1ee248]
124
+ - @forge/bundler@4.12.1
125
+ - @forge/manifest@4.20.1
126
+ - @forge/cli-shared@3.19.0
127
+ - @forge/runtime@5.1.0
128
+ - @forge/node-runtime@0.2.0
129
+ - @forge/tunnel@3.8.0
130
+ - @forge/lint@3.6.7
131
+ - @forge/egress@1.2.5
132
+
133
+ ## 6.18.0-next.34
134
+
135
+ ### Minor Changes
136
+
137
+ - 7aba0598: Remove contributor-related commands
138
+
139
+ ### Patch Changes
140
+
141
+ - Updated dependencies [7aba0598]
142
+ - @forge/cli-shared@3.19.0-next.22
143
+ - @forge/bundler@4.12.1-next.28
144
+ - @forge/lint@3.6.7-next.22
145
+ - @forge/tunnel@3.8.0-next.29
146
+
3
147
  ## 6.18.0-next.33
4
148
 
5
149
  ### Patch Changes
@@ -1,23 +1,23 @@
1
1
  {
2
2
  "name": "@forge/cli",
3
- "version": "6.18.0-next.33",
3
+ "version": "6.18.0",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@forge/cli",
9
- "version": "6.18.0-next.33",
9
+ "version": "6.18.0",
10
10
  "hasInstallScript": true,
11
11
  "license": "UNLICENSED",
12
12
  "dependencies": {
13
- "@forge/bundler": "4.12.1-next.27",
14
- "@forge/cli-shared": "3.19.0-next.21",
15
- "@forge/egress": "1.2.5-next.2",
16
- "@forge/lint": "3.6.7-next.21",
17
- "@forge/manifest": "4.20.1-next.10",
18
- "@forge/node-runtime": "0.2.0-next.8",
19
- "@forge/runtime": "5.1.0-next.7",
20
- "@forge/tunnel": "3.8.0-next.28",
13
+ "@forge/bundler": "4.12.1",
14
+ "@forge/cli-shared": "3.19.0",
15
+ "@forge/egress": "1.2.5",
16
+ "@forge/lint": "3.6.7",
17
+ "@forge/manifest": "4.20.1",
18
+ "@forge/node-runtime": "0.2.0",
19
+ "@forge/runtime": "5.1.0",
20
+ "@forge/tunnel": "3.8.0",
21
21
  "@forge/util": "1.3.1",
22
22
  "@sentry/node": "^7.70.0",
23
23
  "ajv": "^8.12.0",
@@ -847,6 +847,19 @@
847
847
  "node": ">=10.0.0"
848
848
  }
849
849
  },
850
+ "node_modules/@forge/api": {
851
+ "version": "2.19.1",
852
+ "resolved": "https://registry.npmjs.org/@forge/api/-/api-2.19.1.tgz",
853
+ "integrity": "sha512-cRb2I3pq+AJ2Kx9aF4b5H+xHcbqJSWLrQxVYIjpN7fPE6TcHNULuAo/YqySMWM0Ezhhixb4MB6bA+gVsa/zGwA==",
854
+ "dependencies": {
855
+ "@forge/auth": "0.0.5",
856
+ "@forge/egress": "1.2.5",
857
+ "@forge/storage": "1.5.9",
858
+ "@forge/util": "1.3.1",
859
+ "@types/node-fetch": "^2.6.5",
860
+ "node-fetch": "2.7.0"
861
+ }
862
+ },
850
863
  "node_modules/@forge/auth": {
851
864
  "version": "0.0.5",
852
865
  "resolved": "https://registry.npmjs.org/@forge/auth/-/auth-0.0.5.tgz",
@@ -856,14 +869,14 @@
856
869
  }
857
870
  },
858
871
  "node_modules/@forge/babel-plugin-transform-ui": {
859
- "version": "1.1.8-next.1",
860
- "resolved": "https://registry.npmjs.org/@forge/babel-plugin-transform-ui/-/babel-plugin-transform-ui-1.1.8-next.1.tgz",
861
- "integrity": "sha512-U6fmVRFuZihG6i+PnGMkX0U9EfElvSVWJ1ga3nSIHU7RnuFc42W9bcHHogyps22NDHYVPdtGehnloiIItdOnxQ=="
872
+ "version": "1.1.8",
873
+ "resolved": "https://registry.npmjs.org/@forge/babel-plugin-transform-ui/-/babel-plugin-transform-ui-1.1.8.tgz",
874
+ "integrity": "sha512-eA+ey60yaUH6Y5CRKEN/M8eJ7xRNmpHNVtEI7Yd8z2SJv4w5ezbI4IMZP2fDCjIwwlOctSFcuLA1X/IWcsfjjg=="
862
875
  },
863
876
  "node_modules/@forge/bundler": {
864
- "version": "4.12.1-next.27",
865
- "resolved": "https://registry.npmjs.org/@forge/bundler/-/bundler-4.12.1-next.27.tgz",
866
- "integrity": "sha512-v63VNZdmqosjDMPZiwdvLS1G8r5mG56nKUmelxV+FS4+8I0FIkg8NbFSwNZH7Ad6+Sp286wyWRUneB0QI3EP5g==",
877
+ "version": "4.12.1",
878
+ "resolved": "https://registry.npmjs.org/@forge/bundler/-/bundler-4.12.1.tgz",
879
+ "integrity": "sha512-kNbNYs9CEcdEtVq7NKp7CzOqgKnv7Z3/BaT0WZrRjmxMqbzd684xfeO2Bn6MeFXVzpAaJbmn7wWCMvdGfBlbUw==",
867
880
  "dependencies": {
868
881
  "@babel/core": "^7.22.20",
869
882
  "@babel/plugin-transform-class-properties": "^7.22.5",
@@ -872,11 +885,11 @@
872
885
  "@babel/plugin-transform-optional-chaining": "^7.22.15",
873
886
  "@babel/plugin-transform-react-jsx": "^7.22.15",
874
887
  "@babel/preset-typescript": "^7.22.15",
875
- "@forge/api": "2.19.1-next.3",
876
- "@forge/babel-plugin-transform-ui": "1.1.8-next.1",
877
- "@forge/cli-shared": "3.19.0-next.21",
878
- "@forge/lint": "3.6.7-next.21",
879
- "@forge/node-runtime": "0.2.0-next.8",
888
+ "@forge/api": "2.19.1",
889
+ "@forge/babel-plugin-transform-ui": "1.1.8",
890
+ "@forge/cli-shared": "3.19.0",
891
+ "@forge/lint": "3.6.7",
892
+ "@forge/node-runtime": "0.2.0",
880
893
  "@forge/util": "1.3.1",
881
894
  "assert": "^2.1.0",
882
895
  "babel-loader": "^8.3.0",
@@ -914,30 +927,12 @@
914
927
  "node": ">=12.13.1"
915
928
  }
916
929
  },
917
- "node_modules/@forge/bundler/node_modules/@forge/api": {
918
- "version": "2.19.1-next.3",
919
- "resolved": "https://registry.npmjs.org/@forge/api/-/api-2.19.1-next.3.tgz",
920
- "integrity": "sha512-K2JbSenc74VdHta83MX/RFGXKQzeeTnSmYzxqNY8yCxD1ar0d4OUS4JnG87ReWCIZblE85XgJ9kMtDu+Kk9B1Q==",
921
- "dependencies": {
922
- "@forge/auth": "0.0.5",
923
- "@forge/egress": "1.2.5-next.2",
924
- "@forge/storage": "1.5.9-next.2",
925
- "@forge/util": "1.3.1",
926
- "@types/node-fetch": "^2.6.5",
927
- "node-fetch": "2.7.0"
928
- }
929
- },
930
- "node_modules/@forge/bundler/node_modules/@forge/storage": {
931
- "version": "1.5.9-next.2",
932
- "resolved": "https://registry.npmjs.org/@forge/storage/-/storage-1.5.9-next.2.tgz",
933
- "integrity": "sha512-TMRJnVgilZA47BqJQetc1VOmttkHg8YzbfRtvVcIVSwzg3WJYOAgRrQEDvkgD5xwJlhk3Iz3HvuBMKN1KB39GA=="
934
- },
935
930
  "node_modules/@forge/cli-shared": {
936
- "version": "3.19.0-next.21",
937
- "resolved": "https://registry.npmjs.org/@forge/cli-shared/-/cli-shared-3.19.0-next.21.tgz",
938
- "integrity": "sha512-2t0ySyYi1Zda9QP9gZau1CPfBQ2QrZ3TAX8hz3CONkEBtqFoTByMmPwQ+4Va2FSFXNt9WSFqZkDewdPCgpxCUw==",
931
+ "version": "3.19.0",
932
+ "resolved": "https://registry.npmjs.org/@forge/cli-shared/-/cli-shared-3.19.0.tgz",
933
+ "integrity": "sha512-Yva8GmyKHkUrN6Kt7b5AoxPrxYd9ifwaExiGkyCQJhjE2PVphCLrUBwG714UMXJeDtSO0ikErSR7aohg1N6SwQ==",
939
934
  "dependencies": {
940
- "@forge/manifest": "4.20.1-next.10",
935
+ "@forge/manifest": "4.20.1",
941
936
  "@forge/util": "1.3.1",
942
937
  "@sentry/node": "^7.70.0",
943
938
  "adm-zip": "^0.5.10",
@@ -972,30 +967,30 @@
972
967
  }
973
968
  },
974
969
  "node_modules/@forge/csp": {
975
- "version": "2.2.2-next.3",
976
- "resolved": "https://registry.npmjs.org/@forge/csp/-/csp-2.2.2-next.3.tgz",
977
- "integrity": "sha512-pER2dqY8SQrVygWBKR+I705+5F/KU3xe/xmlf+tmktag06rGwiEolPCMzE7HzJqu9GR+RDjr0kX/D1syjm6E5Q==",
970
+ "version": "2.2.2",
971
+ "resolved": "https://registry.npmjs.org/@forge/csp/-/csp-2.2.2.tgz",
972
+ "integrity": "sha512-6Tpwmqp2O26YSrwQhvxlCrj2NjN3lzbUfA/Efi4HE1xIRTi1n7v9YkJ98FWGP2pgL1LK7q2Jlg8ZfSevOZ0GOQ==",
978
973
  "dependencies": {
979
974
  "cheerio": "^0.22.0",
980
975
  "content-security-policy-parser": "^0.4.1"
981
976
  }
982
977
  },
983
978
  "node_modules/@forge/egress": {
984
- "version": "1.2.5-next.2",
985
- "resolved": "https://registry.npmjs.org/@forge/egress/-/egress-1.2.5-next.2.tgz",
986
- "integrity": "sha512-K5OiNJ01olEEW7tYlP734uZ5wDFMM0GF3c9F96yROHf6JixA8WZqE6ci8D0SkCUBnp3b4O70h571I8gv9KBuMA==",
979
+ "version": "1.2.5",
980
+ "resolved": "https://registry.npmjs.org/@forge/egress/-/egress-1.2.5.tgz",
981
+ "integrity": "sha512-Il8TkfLGHKfsmML67cqdcdQuzXY1p0+lGKEP825T0k8pbgPfwly/S00mAfv2hvOWt2vUOyCtThRCojAQXXEO7Q==",
987
982
  "dependencies": {
988
983
  "minimatch": "^5.1.0"
989
984
  }
990
985
  },
991
986
  "node_modules/@forge/lint": {
992
- "version": "3.6.7-next.21",
993
- "resolved": "https://registry.npmjs.org/@forge/lint/-/lint-3.6.7-next.21.tgz",
994
- "integrity": "sha512-YalWS/vwyMC5Bnm/Wru07bswIDoqjuXBiQO72lJxWvjPkJ6nHks8qWv2o1Bq20aoNvHXWuh+l8vizzmqQnQ1CQ==",
987
+ "version": "3.6.7",
988
+ "resolved": "https://registry.npmjs.org/@forge/lint/-/lint-3.6.7.tgz",
989
+ "integrity": "sha512-6UUeyo39v/gSZlpXzbTY8uljiaxpvAVMS1Qug+C9Qba/TG7lir/KtU3li5BAZv4YvY3g5Oi74nYn6/LmemDVcQ==",
995
990
  "dependencies": {
996
- "@forge/cli-shared": "3.19.0-next.21",
997
- "@forge/egress": "1.2.5-next.2",
998
- "@forge/manifest": "4.20.1-next.10",
991
+ "@forge/cli-shared": "3.19.0",
992
+ "@forge/egress": "1.2.5",
993
+ "@forge/manifest": "4.20.1",
999
994
  "@typescript-eslint/typescript-estree": "^5.62.0",
1000
995
  "array.prototype.flatmap": "^1.3.2",
1001
996
  "atlassian-openapi": "^1.0.17",
@@ -1004,9 +999,9 @@
1004
999
  }
1005
1000
  },
1006
1001
  "node_modules/@forge/manifest": {
1007
- "version": "4.20.1-next.10",
1008
- "resolved": "https://registry.npmjs.org/@forge/manifest/-/manifest-4.20.1-next.10.tgz",
1009
- "integrity": "sha512-6qp66cLmFEO+LlpcRpyuolOgyjqttR1yiJ8N2j4/S44jtSFNEWmnCpCi/1yMT3asGV9TXzftDAOFh7idUf6pUQ==",
1002
+ "version": "4.20.1",
1003
+ "resolved": "https://registry.npmjs.org/@forge/manifest/-/manifest-4.20.1.tgz",
1004
+ "integrity": "sha512-4i3O9/uGnDQPnQc7CLKCvQUdmZRycXHeTQ8JMcFFXGTyhvn5zhdkZwk3BnHdgHk5Px5pYjjaAAGrXUKIa8sHrA==",
1010
1005
  "dependencies": {
1011
1006
  "@forge/util": "1.3.1",
1012
1007
  "ajv": "^8.12.0",
@@ -1020,37 +1015,19 @@
1020
1015
  }
1021
1016
  },
1022
1017
  "node_modules/@forge/node-runtime": {
1023
- "version": "0.2.0-next.8",
1024
- "resolved": "https://registry.npmjs.org/@forge/node-runtime/-/node-runtime-0.2.0-next.8.tgz",
1025
- "integrity": "sha512-MCGN0Ng1ab/P+KWVKbM33GRu/ztBC8hsmvxLxOyQ/m+QOIXNmdVQHZ58fmdvIJRnlUa4mR/zG1ySrXilWrbprQ==",
1018
+ "version": "0.2.0",
1019
+ "resolved": "https://registry.npmjs.org/@forge/node-runtime/-/node-runtime-0.2.0.tgz",
1020
+ "integrity": "sha512-ktuBkY5gYikuZci4QYPoYZTj428ZwmIUDvN9F2V4AFK7YW/YsueNJjD0D7TmHvZkgyszz2l5ajDDaiYDtBTiPg==",
1026
1021
  "dependencies": {
1027
- "@forge/api": "2.19.1-next.3",
1028
- "@forge/runtime": "5.1.0-next.7",
1022
+ "@forge/api": "2.19.1",
1023
+ "@forge/runtime": "5.1.0",
1029
1024
  "uuid": "^3.4.0"
1030
1025
  }
1031
1026
  },
1032
- "node_modules/@forge/node-runtime/node_modules/@forge/api": {
1033
- "version": "2.19.1-next.3",
1034
- "resolved": "https://registry.npmjs.org/@forge/api/-/api-2.19.1-next.3.tgz",
1035
- "integrity": "sha512-K2JbSenc74VdHta83MX/RFGXKQzeeTnSmYzxqNY8yCxD1ar0d4OUS4JnG87ReWCIZblE85XgJ9kMtDu+Kk9B1Q==",
1036
- "dependencies": {
1037
- "@forge/auth": "0.0.5",
1038
- "@forge/egress": "1.2.5-next.2",
1039
- "@forge/storage": "1.5.9-next.2",
1040
- "@forge/util": "1.3.1",
1041
- "@types/node-fetch": "^2.6.5",
1042
- "node-fetch": "2.7.0"
1043
- }
1044
- },
1045
- "node_modules/@forge/node-runtime/node_modules/@forge/storage": {
1046
- "version": "1.5.9-next.2",
1047
- "resolved": "https://registry.npmjs.org/@forge/storage/-/storage-1.5.9-next.2.tgz",
1048
- "integrity": "sha512-TMRJnVgilZA47BqJQetc1VOmttkHg8YzbfRtvVcIVSwzg3WJYOAgRrQEDvkgD5xwJlhk3Iz3HvuBMKN1KB39GA=="
1049
- },
1050
1027
  "node_modules/@forge/runtime": {
1051
- "version": "5.1.0-next.7",
1052
- "resolved": "https://registry.npmjs.org/@forge/runtime/-/runtime-5.1.0-next.7.tgz",
1053
- "integrity": "sha512-eP02UD7PQhR7TFhfOixKwv3MDzciu/dPrrjhNNz/L1T1AXQN+fa7HfqUVgsdk4yX8QL8TvW0SjJLS+ZF7kljYg==",
1028
+ "version": "5.1.0",
1029
+ "resolved": "https://registry.npmjs.org/@forge/runtime/-/runtime-5.1.0.tgz",
1030
+ "integrity": "sha512-9shlVNWxtyVHqyZIFEcXAuz2u7ZPNaKQgS4cBDVv1h+RPimlXcIOV01OUJlw1MoiqVomFv+wUAcHZW1HXf9AJg==",
1054
1031
  "dependencies": {
1055
1032
  "@forge/util": "1.3.1",
1056
1033
  "fp-ts": "^2.16.1",
@@ -1062,15 +1039,20 @@
1062
1039
  "ws": "^7.5.9"
1063
1040
  }
1064
1041
  },
1042
+ "node_modules/@forge/storage": {
1043
+ "version": "1.5.9",
1044
+ "resolved": "https://registry.npmjs.org/@forge/storage/-/storage-1.5.9.tgz",
1045
+ "integrity": "sha512-2e5pIFBcpUXEx3sx7M+cz0d5Dp2GnuOz7orzn0IpfyU/2W76mjNuGsGhqwMOXg6Yh5Gc6AchDbpRytU5SF1mKQ=="
1046
+ },
1065
1047
  "node_modules/@forge/tunnel": {
1066
- "version": "3.8.0-next.28",
1067
- "resolved": "https://registry.npmjs.org/@forge/tunnel/-/tunnel-3.8.0-next.28.tgz",
1068
- "integrity": "sha512-ZWLBC8aO9BVNj2qYZUhiIxR5IWdpWs4AX1rRAX+o6vWhq7cDUyYZx1tD+zO+7zeeSfpbw32x0aqLDZMW1UD65Q==",
1069
- "dependencies": {
1070
- "@forge/bundler": "4.12.1-next.27",
1071
- "@forge/cli-shared": "3.19.0-next.21",
1072
- "@forge/csp": "2.2.2-next.3",
1073
- "@forge/runtime": "5.1.0-next.7",
1048
+ "version": "3.8.0",
1049
+ "resolved": "https://registry.npmjs.org/@forge/tunnel/-/tunnel-3.8.0.tgz",
1050
+ "integrity": "sha512-VkCm3kqC4M9mExixcJVpBBe/pZYXuEHtWU36u/37M6XCSZYWR8yF1LIE0m00IIKFmKfeTj5KmX4nMCpDVxMT2A==",
1051
+ "dependencies": {
1052
+ "@forge/bundler": "4.12.1",
1053
+ "@forge/cli-shared": "3.19.0",
1054
+ "@forge/csp": "2.2.2",
1055
+ "@forge/runtime": "5.1.0",
1074
1056
  "express": "^4.18.2",
1075
1057
  "express-intercept": "^1.1.0",
1076
1058
  "http-proxy-middleware": "^1.3.1",
@@ -63,14 +63,6 @@
63
63
  "requireUserArg": false
64
64
  }
65
65
  },
66
- "contributors": {
67
- "--verbose": {
68
- "requireUserArg": false
69
- },
70
- "--help": {
71
- "requireUserArg": false
72
- }
73
- },
74
66
  "deploy": {
75
67
  "--verbose": {
76
68
  "requireUserArg": false
@@ -5,9 +5,6 @@ import { DeleteEnvironmentVariableCommand } from '../environment-variables/delet
5
5
  import { ListEnvironmentVariablesCommand } from '../environment-variables/list-environment-variables';
6
6
  import { SetEnvironmentVariableCommand } from '../environment-variables/set-environment-variable';
7
7
  import { ConfigureProviderCommand } from '../providers/configure-provider';
8
- import { AddContributorCommand } from '../contributors/add-contributor';
9
- import { ListContributorsCommand } from '../contributors/list-contributors';
10
- import { RemoveContributorsCommand } from '../contributors/remove-contributors';
11
8
  import { ListEntitiesIndexesCommand } from '../entities/list-indexes';
12
9
  import { CreateEnvironmentCommand } from '../environment/create-environment';
13
10
  import { ListEnvironmentCommand } from '../environment/list-environment';
@@ -53,9 +50,6 @@ export declare const getDependencies: (cliDetails: CLIDetails | undefined) => Pr
53
50
  deleteEnvironmentVariableCommand: DeleteEnvironmentVariableCommand;
54
51
  listEnvironmentVariablesCommand: ListEnvironmentVariablesCommand;
55
52
  configureProviderCommand: ConfigureProviderCommand;
56
- addContributorCommand: AddContributorCommand;
57
- listContributorCommand: ListContributorsCommand;
58
- removeContributorsCommand: RemoveContributorsCommand;
59
53
  createEnvironmentCommand: CreateEnvironmentCommand;
60
54
  listEnvironmentCommand: ListEnvironmentCommand;
61
55
  deleteEnvironmentCommand: DeleteEnvironmentCommand;
@@ -1 +1 @@
1
- {"version":3,"file":"dependency-injection.d.ts","sourceRoot":"","sources":["../../src/command-line/dependency-injection.ts"],"names":[],"mappings":"AAIA,OAAO,EASL,UAAU,EACV,aAAa,EAEb,UAAU,EAGV,gBAAgB,EAGhB,kBAAkB,EAGlB,gBAAgB,EAQhB,YAAY,EACZ,aAAa,EAOb,kBAAkB,EAIlB,kBAAkB,EAGnB,MAAM,mBAAmB,CAAC;AAc3B,OAAO,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AAE/E,OAAO,EAML,0BAA0B,EAG3B,MAAM,WAAW,CAAC;AAEnB,OAAO,EAAE,gCAAgC,EAAE,MAAM,sDAAsD,CAAC;AAExG,OAAO,EAAE,+BAA+B,EAAE,MAAM,qDAAqD,CAAC;AACtG,OAAO,EAAE,6BAA6B,EAAE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;EAuVvE,CAAC;AAGF,KAAK,WAAW,CAAC,CAAC,IAAI,CAAC,SAAS,OAAO,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC;AAC3D,MAAM,MAAM,YAAY,GAAG,WAAW,CAAC,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC,CAAC"}
@@ -17,17 +17,13 @@ const set_environment_variable_1 = require("../environment-variables/set-environ
17
17
  const graphql_client_2 = require("../migration-keys/graphql-client");
18
18
  const configure_provider_1 = require("../providers/configure-provider");
19
19
  const graphql_client_3 = require("../providers/graphql-client");
20
- const add_contributor_1 = require("../contributors/add-contributor");
21
- const list_contributors_1 = require("../contributors/list-contributors");
22
- const remove_contributors_1 = require("../contributors/remove-contributors");
23
- const graphql_client_4 = require("../contributors/graphql-client");
24
20
  const list_indexes_1 = require("../entities/list-indexes");
25
- const graphql_client_5 = require("../entities/graphql-client");
21
+ const graphql_client_4 = require("../entities/graphql-client");
26
22
  const create_environment_1 = require("../environment/create-environment");
27
23
  const list_environment_1 = require("../environment/list-environment");
28
24
  const delete_environment_1 = require("../environment/delete-environment");
29
- const graphql_client_6 = require("../environment/graphql-client");
30
- const graphql_client_7 = require("../installations/graphql-client");
25
+ const graphql_client_5 = require("../environment/graphql-client");
26
+ const graphql_client_6 = require("../installations/graphql-client");
31
27
  const site_translation_1 = require("../installations/site-translation");
32
28
  const install_app_site_1 = require("../installations/install-app-site");
33
29
  const uninstall_app_1 = require("../installations/uninstall-app");
@@ -63,7 +59,7 @@ const lint_view_1 = require("./view/lint-view");
63
59
  const lite_lint_view_1 = require("./view/lite-lint-view");
64
60
  const settings_view_1 = require("./view/settings-view");
65
61
  const tunnel_view_1 = require("./view/tunnel-view");
66
- const graphql_client_8 = require("../webtrigger/graphql-client");
62
+ const graphql_client_7 = require("../webtrigger/graphql-client");
67
63
  const stubController_1 = require("./controller/stubController");
68
64
  const prerequisites_controller_1 = require("./controller/prerequisites-controller");
69
65
  const runtime_bundler_1 = require("../deploy/packager/runtime-bundler");
@@ -121,11 +117,7 @@ const getDependencies = async (cliDetails) => {
121
117
  const listEnvironmentVariablesCommand = new list_environment_variables_1.ListEnvironmentVariablesCommand(environmentVariablesClient, assertiveAppConfigReader);
122
118
  const providerClient = new graphql_client_3.GraphqlClient(graphQLClient);
123
119
  const configureProviderCommand = new configure_provider_1.ConfigureProviderCommand(providerClient, assertiveAppConfigReader);
124
- const contributorClient = new graphql_client_4.GraphqlClient(graphQLClient);
125
- const addContributorCommand = new add_contributor_1.AddContributorCommand(contributorClient, assertiveAppConfigReader);
126
- const listContributorCommand = new list_contributors_1.ListContributorsCommand(contributorClient, assertiveAppConfigReader);
127
- const removeContributorsCommand = new remove_contributors_1.RemoveContributorsCommand(contributorClient, assertiveAppConfigReader);
128
- const environmentClient = new graphql_client_6.GraphqlClient(graphQLClient);
120
+ const environmentClient = new graphql_client_5.GraphqlClient(graphQLClient);
129
121
  const createEnvironmentCommand = new create_environment_1.CreateEnvironmentCommand(environmentClient, assertiveAppConfigReader);
130
122
  const listEnvironmentCommand = new list_environment_1.ListEnvironmentCommand(environmentClient, assertiveAppConfigReader);
131
123
  const deleteEnvironmentCommand = new delete_environment_1.DeleteEnvironmentCommand(environmentClient, assertiveAppConfigReader);
@@ -137,16 +129,16 @@ const getDependencies = async (cliDetails) => {
137
129
  const logsClient = new cli_shared_1.LogsGraphQLClient(graphQLClient);
138
130
  const viewAppLogsCommand = new cli_shared_1.ViewAppLogsCommand(assertiveAppConfigReader, appEnvironmentClient, globalEdgeClient, logsClient);
139
131
  const appOauthClientGraphql = new cli_shared_1.AppOauthClientGraphqlClient(graphQLClient);
140
- const entitiesClient = new graphql_client_5.EntitiesGraphqlClient(graphQLClient);
132
+ const entitiesClient = new graphql_client_4.EntitiesGraphqlClient(graphQLClient);
141
133
  const customEntitiesService = new custom_entities_service_1.CustomEntitiesService(assertiveAppConfigReader, appOauthClientGraphql, entitiesClient);
142
134
  const listEntitiesIndexesCommand = new list_indexes_1.ListEntitiesIndexesCommand(customEntitiesService);
143
135
  const bitbucketTranslation = new site_translation_1.BitbucketTranslator();
144
136
  const cloudProductTranslation = new site_translation_1.CloudIdTranslator(graphQLClient);
145
- const installationsClient = new graphql_client_7.InstallationsGraphqlClient(graphQLClient, cloudProductTranslation, bitbucketTranslation, cli_shared_1.pause);
137
+ const installationsClient = new graphql_client_6.InstallationsGraphqlClient(graphQLClient, cloudProductTranslation, bitbucketTranslation, cli_shared_1.pause);
146
138
  const installAppSiteCommand = new install_app_site_1.InstallAppSiteCommand(assertiveAppConfigReader, installationsClient);
147
139
  const uninstallAppCommand = new uninstall_app_1.UninstallAppCommand(assertiveAppConfigReader, installationsClient);
148
140
  const deployMonitorClient = new deploy_1.DeployMonitorGraphqlClient(graphQLClient);
149
- const webTriggerGraphqlClient = new graphql_client_8.WebTriggerGraphQLClient(graphQLClient);
141
+ const webTriggerGraphqlClient = new graphql_client_7.WebTriggerGraphQLClient(graphQLClient);
150
142
  const archiverFactory = () => new deploy_1.ZipArchiver(ui);
151
143
  const uploaderArtifactClient = new deploy_1.ArtifactGraphQLClient(graphQLClient);
152
144
  const triggerDeployClient = new deploy_1.TriggerDeployGraphQLClient(graphQLClient);
@@ -214,9 +206,6 @@ const getDependencies = async (cliDetails) => {
214
206
  deleteEnvironmentVariableCommand,
215
207
  listEnvironmentVariablesCommand,
216
208
  configureProviderCommand,
217
- addContributorCommand,
218
- listContributorCommand,
219
- removeContributorsCommand,
220
209
  createEnvironmentCommand,
221
210
  listEnvironmentCommand,
222
211
  deleteEnvironmentCommand,
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/command-line/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAmB,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAoBvE,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,YAAY,QAiBlD;AAQD,eAAO,MAAM,IAAI,QAAa,QAAQ,IAAI,CAUzC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/command-line/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAmB,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAmBvE,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,YAAY,QAgBlD;AAQD,eAAO,MAAM,IAAI,QAAa,QAAQ,IAAI,CAUzC,CAAC"}
@@ -17,14 +17,12 @@ const register_webtrigger_commands_1 = require("./register-webtrigger-commands")
17
17
  const register_feedback_commands_1 = require("./register-feedback-commands");
18
18
  const register_settings_commands_1 = require("./register-settings-commands");
19
19
  const register_providers_commands_1 = require("./register-providers-commands");
20
- const register_contributors_commands_1 = require("./register-contributors-commands");
21
20
  const register_environments_commands_1 = require("./register-environments-commands");
22
21
  const register_storage_commands_1 = require("./register-storage-commands");
23
22
  function registerCommands(deps) {
24
23
  (0, register_autocomplete_commands_1.registerCommands)(deps);
25
24
  (0, register_authentication_command_1.registerCommands)(deps);
26
25
  (0, register_app_commands_1.registerCommands)(deps);
27
- (0, register_contributors_commands_1.registerCommands)(deps);
28
26
  (0, register_deployment_commands_1.registerCommands)(deps);
29
27
  (0, register_installation_commands_1.registerCommands)(deps);
30
28
  (0, register_environments_commands_1.registerCommands)(deps);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forge/cli",
3
- "version": "6.18.0-next.33",
3
+ "version": "6.18.0",
4
4
  "description": "A command line interface for managing Atlassian-hosted apps",
5
5
  "author": "Atlassian",
6
6
  "license": "UNLICENSED",
@@ -18,14 +18,14 @@
18
18
  "postinstall": "node -e \"fs.existsSync('./out/bin/postinstall.js') && require('./out/bin/postinstall.js')\""
19
19
  },
20
20
  "dependencies": {
21
- "@forge/bundler": "4.12.1-next.27",
22
- "@forge/cli-shared": "3.19.0-next.21",
23
- "@forge/egress": "1.2.5-next.2",
24
- "@forge/lint": "3.6.7-next.21",
25
- "@forge/manifest": "4.20.1-next.10",
26
- "@forge/node-runtime": "0.2.0-next.8",
27
- "@forge/runtime": "5.1.0-next.7",
28
- "@forge/tunnel": "3.8.0-next.28",
21
+ "@forge/bundler": "4.12.1",
22
+ "@forge/cli-shared": "3.19.0",
23
+ "@forge/egress": "1.2.5",
24
+ "@forge/lint": "3.6.7",
25
+ "@forge/manifest": "4.20.1",
26
+ "@forge/node-runtime": "0.2.0",
27
+ "@forge/runtime": "5.1.0",
28
+ "@forge/tunnel": "3.8.0",
29
29
  "@forge/util": "1.3.1",
30
30
  "@sentry/node": "^7.70.0",
31
31
  "ajv": "^8.12.0",
@@ -1,3 +0,0 @@
1
- import { Dependencies } from './dependency-injection';
2
- export declare const registerCommands: (deps: Dependencies) => void;
3
- //# sourceMappingURL=register-contributors-commands.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"register-contributors-commands.d.ts","sourceRoot":"","sources":["../../src/command-line/register-contributors-commands.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAgLtD,eAAO,MAAM,gBAAgB,SAAU,YAAY,KAAG,IAOrD,CAAC"}
@@ -1,137 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.registerCommands = void 0;
4
- const tslib_1 = require("tslib");
5
- const cli_shared_1 = require("@forge/cli-shared");
6
- const chalk_1 = tslib_1.__importDefault(require("chalk"));
7
- const COMMAND_NAME = 'contributors';
8
- const registerAddContributorCommand = (parent, { ui, commands: { addContributorCommand } }) => {
9
- parent
10
- .command('add')
11
- .requireAppId()
12
- .description(cli_shared_1.Text.addContributor.cmd.desc)
13
- .option('-u, --email [email]', cli_shared_1.Text.addContributor.optionContributorEmail)
14
- .option('--confirm-add-contributor', cli_shared_1.Text.addContributor.optionSkipConfirmation)
15
- .nonInteractiveOption('--email')
16
- .action(async ({ email, confirmAddContributor, nonInteractive }) => {
17
- ui.info(cli_shared_1.Text.addContributor.overview);
18
- ui.info(cli_shared_1.Text.ctrlC);
19
- ui.emptyLine();
20
- if (!email) {
21
- ui.info(cli_shared_1.Text.addContributor.contributorEmailInfo);
22
- ui.emptyLine();
23
- email = await ui.promptForText(cli_shared_1.Text.addContributor.promptContributorEmail);
24
- ui.emptyLine();
25
- }
26
- if (nonInteractive) {
27
- confirmAddContributor = true;
28
- }
29
- if (!confirmAddContributor) {
30
- ui.info(cli_shared_1.Text.addContributor.confirmationInfo);
31
- ui.emptyLine();
32
- ui.info(cli_shared_1.Text.addContributor.learnMore);
33
- ui.emptyLine();
34
- confirmAddContributor = await ui.confirm(cli_shared_1.Text.addContributor.promptConfirmation);
35
- if (confirmAddContributor)
36
- ui.emptyLine();
37
- }
38
- const args = { email };
39
- if (confirmAddContributor) {
40
- await ui.displayProgress(() => addContributorCommand.execute(args), cli_shared_1.Text.addContributor.cmd.start, cli_shared_1.Text.addContributor.cmd.success);
41
- }
42
- });
43
- };
44
- const registerListContributorsCommand = (parent, { ui, commands: { listContributorCommand } }) => {
45
- parent
46
- .command('list')
47
- .requireAppId()
48
- .description(cli_shared_1.Text.listContributors.cmd.desc)
49
- .action(async () => {
50
- const contributors = await listContributorCommand.execute();
51
- ui.table([
52
- ['name', 'Name'],
53
- ['email', 'Email']
54
- ], contributors.map((contributor) => {
55
- var _a;
56
- const name = [contributor.publicName];
57
- if (contributor.isOwner) {
58
- name.push(cli_shared_1.Text.listContributors.appOwner);
59
- }
60
- if (contributor.accountStatus !== 'active') {
61
- name.push(cli_shared_1.Text.listContributors.userInactive);
62
- }
63
- return {
64
- name: name.join(' '),
65
- email: (_a = contributor.email) !== null && _a !== void 0 ? _a : 'Email Not Visible'
66
- };
67
- }), {
68
- emptyMessage: cli_shared_1.Text.listContributors.noContributors,
69
- preMessage: cli_shared_1.Text.listContributors.banner
70
- });
71
- });
72
- };
73
- const registerRemoveContributorsCommand = (parent, { ui, commands: { listContributorCommand, removeContributorsCommand } }) => {
74
- parent
75
- .command('remove')
76
- .requireAppId()
77
- .description(cli_shared_1.Text.removeContributors.cmd.desc)
78
- .option('-u, --email [emails...]', cli_shared_1.Text.removeContributors.optionContributorEmail)
79
- .option('--confirm-remove-contributors', cli_shared_1.Text.removeContributors.optionSkipConfirmation)
80
- .nonInteractiveOption('--email')
81
- .action(async ({ email, confirmRemoveContributors, nonInteractive }) => {
82
- let accountIds;
83
- let accountReferences = email;
84
- if (!email) {
85
- const contributors = await listContributorCommand.execute();
86
- const nonOwners = contributors.filter((contributor) => !contributor.isOwner);
87
- if (nonOwners.length === 0) {
88
- ui.info(cli_shared_1.Text.removeContributors.addContributorMessage);
89
- ui.emptyLine();
90
- return;
91
- }
92
- const selectedContributorsIndexes = await ui.promptForTable(cli_shared_1.Text.removeContributors.promptContributorEmail, cli_shared_1.Text.removeContributors.overview, ['Name', 'Email'], nonOwners.map((contributor) => {
93
- var _a;
94
- const name = [contributor.publicName];
95
- if (contributor.accountStatus !== 'active') {
96
- name.push(cli_shared_1.Text.listContributors.userInactive);
97
- }
98
- return {
99
- names: [name.join(' '), (_a = contributor.email) !== null && _a !== void 0 ? _a : 'Email Not Visible'],
100
- value: contributor.accountId
101
- };
102
- }));
103
- accountIds = selectedContributorsIndexes.map((index) => nonOwners[index].accountId);
104
- accountReferences = selectedContributorsIndexes.map((index) => nonOwners[index].publicName);
105
- }
106
- if (!accountReferences) {
107
- return;
108
- }
109
- if (nonInteractive) {
110
- confirmRemoveContributors = true;
111
- }
112
- if (!confirmRemoveContributors) {
113
- ui.info(cli_shared_1.Text.removeContributors.confirmationInfo);
114
- ui.emptyLine();
115
- accountReferences.forEach((name) => {
116
- ui.info(chalk_1.default.grey(name));
117
- });
118
- ui.emptyLine();
119
- confirmRemoveContributors = await ui.confirm(cli_shared_1.Text.removeContributors.promptConfirmation);
120
- if (confirmRemoveContributors)
121
- ui.emptyLine();
122
- }
123
- if (confirmRemoveContributors) {
124
- await ui.displayProgress(() => removeContributorsCommand.execute({ emails: email, accountIds }), cli_shared_1.Text.removeContributors.cmd.start, cli_shared_1.Text.removeContributors.cmd.success);
125
- ui.emptyLine();
126
- ui.info(cli_shared_1.Text.removeContributors.commandSuccessMessage(accountReferences));
127
- }
128
- });
129
- };
130
- const registerCommands = (deps) => {
131
- const { cmd } = deps;
132
- const contributors = cmd.command(COMMAND_NAME).description(cli_shared_1.Text.contributors.desc);
133
- registerAddContributorCommand(contributors, deps);
134
- registerListContributorsCommand(contributors, deps);
135
- registerRemoveContributorsCommand(contributors, deps);
136
- };
137
- exports.registerCommands = registerCommands;
@@ -1,17 +0,0 @@
1
- import { AppConfigProvider } from '@forge/cli-shared';
2
- export interface ContributorDetails {
3
- email: string;
4
- }
5
- export interface AppContributorDetails extends ContributorDetails {
6
- appId: string;
7
- }
8
- export interface AddContributorClient {
9
- addContributor(details: AppContributorDetails): Promise<void>;
10
- }
11
- export declare class AddContributorCommand {
12
- private readonly client;
13
- private readonly getAppConfig;
14
- constructor(client: AddContributorClient, getAppConfig: AppConfigProvider);
15
- execute(details: ContributorDetails): Promise<void>;
16
- }
17
- //# sourceMappingURL=add-contributor.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"add-contributor.d.ts","sourceRoot":"","sources":["../../src/contributors/add-contributor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAEtD,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,qBAAsB,SAAQ,kBAAkB;IAC/D,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,oBAAoB;IACnC,cAAc,CAAC,OAAO,EAAE,qBAAqB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC/D;AAED,qBAAa,qBAAqB;IAE9B,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,YAAY;gBADZ,MAAM,EAAE,oBAAoB,EAC5B,YAAY,EAAE,iBAAiB;IAGrC,OAAO,CAAC,OAAO,EAAE,kBAAkB;CAOjD"}
@@ -1,14 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AddContributorCommand = void 0;
4
- class AddContributorCommand {
5
- constructor(client, getAppConfig) {
6
- this.client = client;
7
- this.getAppConfig = getAppConfig;
8
- }
9
- async execute(details) {
10
- const { id: appId } = await this.getAppConfig();
11
- await this.client.addContributor(Object.assign(Object.assign({}, details), { appId }));
12
- }
13
- }
14
- exports.AddContributorCommand = AddContributorCommand;
@@ -1,12 +0,0 @@
1
- import { GraphQLClient } from '@forge/cli-shared';
2
- import { AppContributorDetails, AddContributorClient } from './add-contributor';
3
- import { Contributor, ListContributorsClient } from './list-contributors';
4
- import { RemoveContributorsDetails, RemoveContributorsClient } from './remove-contributors';
5
- export declare class GraphqlClient implements AddContributorClient, ListContributorsClient, RemoveContributorsClient {
6
- private readonly graphqlClient;
7
- constructor(graphqlClient: GraphQLClient);
8
- addContributor(details: AppContributorDetails): Promise<void>;
9
- listContributors(appId: string): Promise<Contributor[]>;
10
- removeContributors(details: RemoveContributorsDetails): Promise<void>;
11
- }
12
- //# sourceMappingURL=graphql-client.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"graphql-client.d.ts","sourceRoot":"","sources":["../../src/contributors/graphql-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAOL,aAAa,EAGd,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAChF,OAAO,EAAE,WAAW,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAC1E,OAAO,EAAE,yBAAyB,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AAE5F,qBAAa,aAAc,YAAW,oBAAoB,EAAE,sBAAsB,EAAE,wBAAwB;IAC9F,OAAO,CAAC,QAAQ,CAAC,aAAa;gBAAb,aAAa,EAAE,aAAa;IAE5C,cAAc,CAAC,OAAO,EAAE,qBAAqB;IAoD7C,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC;IAkCvD,kBAAkB,CAAC,OAAO,EAAE,yBAAyB;CAmDnE"}
@@ -1,121 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GraphqlClient = void 0;
4
- const cli_shared_1 = require("@forge/cli-shared");
5
- class GraphqlClient {
6
- constructor(graphqlClient) {
7
- this.graphqlClient = graphqlClient;
8
- }
9
- async addContributor(details) {
10
- const mutation = `
11
- mutation forge_cli_addContributor($input: AddAppContributorInput!) {
12
- ecosystem {
13
- addAppContributor(input: $input) {
14
- success
15
- errors {
16
- message
17
- extensions {
18
- errorType
19
- statusCode
20
- }
21
- }
22
- }
23
- }
24
- }
25
- `;
26
- const { response: { ecosystem: { addAppContributor } }, requestId } = await this.graphqlClient.mutate(mutation, {
27
- input: {
28
- appId: details.appId,
29
- newContributorEmail: details.email,
30
- role: cli_shared_1.AppContributorRole.Admin
31
- }
32
- });
33
- if (!addAppContributor) {
34
- throw new cli_shared_1.GraphQlMutationError(`Unable to get a response (requestId: ${requestId || 'unknown'})`, { requestId });
35
- }
36
- const { success, errors } = addAppContributor;
37
- const error = (0, cli_shared_1.getError)(errors);
38
- if (!success) {
39
- if (error.code === cli_shared_1.APP_NOT_IN_EAP) {
40
- throw new cli_shared_1.AppNotInMUAOEAPError(requestId);
41
- }
42
- throw new cli_shared_1.GraphQlMutationError(`${error.message} (requestId: ${requestId || 'unknown'})`, {
43
- requestId,
44
- code: error.code,
45
- statusCode: error.statusCode
46
- });
47
- }
48
- }
49
- async listContributors(appId) {
50
- const query = `
51
- query forge_cli_listContributors($id: ID!) {
52
- appContributors(id: $id) {
53
- accountId
54
- email
55
- status
56
- isOwner
57
- publicName
58
- }
59
- }
60
- `;
61
- try {
62
- const { appContributors } = await this.graphqlClient.query(query, {
63
- id: appId
64
- });
65
- return appContributors.map((contributor) => ({
66
- accountId: contributor.accountId,
67
- email: contributor.email,
68
- isOwner: contributor.isOwner,
69
- publicName: contributor.publicName,
70
- accountStatus: contributor.status
71
- }));
72
- }
73
- catch (e) {
74
- if (e instanceof cli_shared_1.GraphQLProviderServiceError && e.getCode() === cli_shared_1.APP_NOT_IN_EAP) {
75
- throw new cli_shared_1.AppNotInMUAOEAPError(e.requestId);
76
- }
77
- throw e;
78
- }
79
- }
80
- async removeContributors(details) {
81
- const mutation = `
82
- mutation forge_cli_removeContributors($input: RemoveAppContributorsInput!) {
83
- ecosystem {
84
- removeAppContributors(input: $input) {
85
- success
86
- errors {
87
- message
88
- extensions {
89
- errorType
90
- statusCode
91
- }
92
- }
93
- }
94
- }
95
- }
96
- `;
97
- const { response: { ecosystem: { removeAppContributors } }, requestId } = await this.graphqlClient.mutate(mutation, {
98
- input: {
99
- appId: details.appId,
100
- emails: details.emails,
101
- accountIds: details.accountIds
102
- }
103
- });
104
- if (!removeAppContributors) {
105
- throw new cli_shared_1.GraphQlMutationError(`Unable to get a response (requestId: ${requestId || 'unknown'})`, { requestId });
106
- }
107
- const { success, errors } = removeAppContributors;
108
- const error = (0, cli_shared_1.getError)(errors);
109
- if (!success) {
110
- if (error.code === cli_shared_1.APP_NOT_IN_EAP) {
111
- throw new cli_shared_1.AppNotInMUAOEAPError(requestId);
112
- }
113
- throw new cli_shared_1.GraphQlMutationError(`${error.message} (requestId: ${requestId || 'unknown'})`, {
114
- requestId,
115
- code: error.code,
116
- statusCode: error.statusCode
117
- });
118
- }
119
- }
120
- }
121
- exports.GraphqlClient = GraphqlClient;
@@ -1,18 +0,0 @@
1
- import { AppConfigProvider } from '@forge/cli-shared';
2
- export interface Contributor {
3
- accountId: string;
4
- email?: string | null;
5
- accountStatus: string;
6
- publicName: string;
7
- isOwner?: boolean | null;
8
- }
9
- export interface ListContributorsClient {
10
- listContributors(appId: string): Promise<Contributor[]>;
11
- }
12
- export declare class ListContributorsCommand {
13
- private readonly client;
14
- private readonly getAppConfig;
15
- constructor(client: ListContributorsClient, getAppConfig: AppConfigProvider);
16
- execute(): Promise<Contributor[]>;
17
- }
18
- //# sourceMappingURL=list-contributors.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"list-contributors.d.ts","sourceRoot":"","sources":["../../src/contributors/list-contributors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAEtD,MAAM,WAAW,WAAW;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;CAC1B;AAED,MAAM,WAAW,sBAAsB;IACrC,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC,CAAC;CACzD;AAED,qBAAa,uBAAuB;IAEhC,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,YAAY;gBADZ,MAAM,EAAE,sBAAsB,EAC9B,YAAY,EAAE,iBAAiB;IAGrC,OAAO,IAAI,OAAO,CAAC,WAAW,EAAE,CAAC;CAI/C"}
@@ -1,14 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ListContributorsCommand = void 0;
4
- class ListContributorsCommand {
5
- constructor(client, getAppConfig) {
6
- this.client = client;
7
- this.getAppConfig = getAppConfig;
8
- }
9
- async execute() {
10
- const { id: appId } = await this.getAppConfig();
11
- return await this.client.listContributors(appId);
12
- }
13
- }
14
- exports.ListContributorsCommand = ListContributorsCommand;
@@ -1,18 +0,0 @@
1
- import { AppConfigProvider } from '@forge/cli-shared';
2
- export interface ContributorDetails {
3
- emails?: string[];
4
- accountIds?: string[];
5
- }
6
- export interface RemoveContributorsDetails extends ContributorDetails {
7
- appId: string;
8
- }
9
- export interface RemoveContributorsClient {
10
- removeContributors(details: RemoveContributorsDetails): Promise<void>;
11
- }
12
- export declare class RemoveContributorsCommand {
13
- private readonly client;
14
- private readonly getAppConfig;
15
- constructor(client: RemoveContributorsClient, getAppConfig: AppConfigProvider);
16
- execute(details: ContributorDetails): Promise<void>;
17
- }
18
- //# sourceMappingURL=remove-contributors.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"remove-contributors.d.ts","sourceRoot":"","sources":["../../src/contributors/remove-contributors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAEtD,MAAM,WAAW,kBAAkB;IACjC,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;CACvB;AAED,MAAM,WAAW,yBAA0B,SAAQ,kBAAkB;IACnE,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,wBAAwB;IACvC,kBAAkB,CAAC,OAAO,EAAE,yBAAyB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACvE;AAED,qBAAa,yBAAyB;IAElC,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,YAAY;gBADZ,MAAM,EAAE,wBAAwB,EAChC,YAAY,EAAE,iBAAiB;IAGrC,OAAO,CAAC,OAAO,EAAE,kBAAkB;CAOjD"}
@@ -1,14 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RemoveContributorsCommand = void 0;
4
- class RemoveContributorsCommand {
5
- constructor(client, getAppConfig) {
6
- this.client = client;
7
- this.getAppConfig = getAppConfig;
8
- }
9
- async execute(details) {
10
- const { id: appId } = await this.getAppConfig();
11
- await this.client.removeContributors(Object.assign(Object.assign({}, details), { appId }));
12
- }
13
- }
14
- exports.RemoveContributorsCommand = RemoveContributorsCommand;