@forge/cli 6.1.0 → 6.2.0-next.1

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 (37) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/npm-shrinkwrap.json +21 -5700
  3. package/out/analytics-client/analytics-client.d.ts +10 -1
  4. package/out/analytics-client/analytics-client.d.ts.map +1 -1
  5. package/out/analytics-client/analytics-client.js +40 -6
  6. package/out/command-line/command.d.ts +1 -3
  7. package/out/command-line/command.d.ts.map +1 -1
  8. package/out/command-line/command.js +30 -7
  9. package/out/command-line/controller/deploy-controller.d.ts +5 -4
  10. package/out/command-line/controller/deploy-controller.d.ts.map +1 -1
  11. package/out/command-line/controller/deploy-controller.js +8 -6
  12. package/out/command-line/controller/pre-command-controller.d.ts +2 -2
  13. package/out/command-line/controller/pre-command-controller.d.ts.map +1 -1
  14. package/out/command-line/controller/pre-command-controller.js +1 -1
  15. package/out/command-line/register-authentication-command.js +3 -3
  16. package/out/command-line/view/tunnel-view.d.ts +3 -1
  17. package/out/command-line/view/tunnel-view.d.ts.map +1 -1
  18. package/out/command-line/view/tunnel-view.js +5 -2
  19. package/out/deploy/deployer/deployer.d.ts +9 -3
  20. package/out/deploy/deployer/deployer.d.ts.map +1 -1
  21. package/out/deploy/deployer/deployer.js +22 -8
  22. package/out/deploy/deployer/trigger-deploy-graphql-client.d.ts.map +1 -1
  23. package/out/deploy/deployer/trigger-deploy-graphql-client.js +1 -1
  24. package/out/deploy/uploader/artifact-graphql-client.d.ts.map +1 -1
  25. package/out/deploy/uploader/artifact-graphql-client.js +2 -2
  26. package/out/environment-variables/graphql-client.d.ts +2 -2
  27. package/out/environment-variables/graphql-client.d.ts.map +1 -1
  28. package/out/environment-variables/graphql-client.js +3 -3
  29. package/out/installations/graphql-client.d.ts +11 -8
  30. package/out/installations/graphql-client.d.ts.map +1 -1
  31. package/out/installations/graphql-client.js +27 -17
  32. package/out/installations/site-translation/cloudid-products.d.ts +2 -2
  33. package/out/installations/site-translation/cloudid-products.d.ts.map +1 -1
  34. package/out/installations/site-translation/cloudid-products.js +1 -1
  35. package/out/providers/graphql-client.d.ts.map +1 -1
  36. package/out/providers/graphql-client.js +1 -1
  37. package/package.json +4 -4
@@ -1,4 +1,4 @@
1
- import { AppEnvironment, AppUninstallationInput, GraphQLClient, GraphQlMutationError, Pause } from '@forge/cli-shared';
1
+ import { AppEnvironment, AppUninstallationInput, GraphQLClient, GraphQlMutationError, Pause, BaseError, UserError } from '@forge/cli-shared';
2
2
  import { AppInstallSiteDetails, InstallAppClient } from './install-app-site';
3
3
  import { Installation, ListAppInstallationsClient, UpgradeAppInstallationsClient } from '../service/installation-service';
4
4
  import { UninstallAppClient, UninstallAppOutput } from './uninstall-app';
@@ -6,30 +6,33 @@ import { SiteTranslator } from './site-translation';
6
6
  export declare const UNINSTALLATION_EVENT_POLL_INTERVAL = 500;
7
7
  export declare const ALREADY_UPGRADED_CODE = "INSTALLATION_ALREADY_UPGRADED";
8
8
  export declare class PermissionDeniedError extends GraphQlMutationError {
9
- constructor(requestId?: string, appId?: string);
9
+ constructor(requestId: string | undefined, appId: string | undefined, statusCode: number | undefined);
10
10
  }
11
11
  export declare class AlreadyInstalledError extends GraphQlMutationError {
12
- constructor();
12
+ constructor(statusCode: number | undefined);
13
13
  }
14
14
  export declare class InstallationError extends GraphQlMutationError {
15
- constructor(message: string, code: string | undefined);
15
+ constructor(message: string, code: string | undefined, statusCode: number | undefined);
16
16
  }
17
17
  export declare class UpgradeError extends GraphQlMutationError {
18
- constructor(message: string, code: string | undefined);
18
+ constructor(message: string, code: string | undefined, statusCode: number | undefined);
19
19
  }
20
20
  export declare class EnvironmentNotFoundError extends Error {
21
21
  }
22
22
  export declare class MissingTaskIdError extends Error {
23
23
  }
24
- export declare class InstallationRequestFailedError extends Error {
24
+ export declare class InstallationRequestFailedError extends BaseError {
25
+ private readonly userError;
26
+ constructor(userError: boolean, message?: string);
27
+ isUserError(): boolean;
25
28
  }
26
- export declare class MissingAppError extends Error {
29
+ export declare class MissingAppError extends UserError {
27
30
  }
28
31
  export declare class MissingAppEnvironmentError extends Error {
29
32
  }
30
33
  export declare class MissingAppUninstallTask extends Error {
31
34
  }
32
- export declare class InstallationNotFoundError extends Error {
35
+ export declare class InstallationNotFoundError extends UserError {
33
36
  }
34
37
  export declare class UnknownSiteWithoutResourceIdError extends Error {
35
38
  constructor();
@@ -1 +1 @@
1
- {"version":3,"file":"graphql-client.d.ts","sourceRoot":"","sources":["../../src/installations/graphql-client.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,cAAc,EAId,sBAAsB,EAItB,aAAa,EACb,oBAAoB,EAMpB,KAAK,EAGN,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC7E,OAAO,EACL,YAAY,EACZ,0BAA0B,EAC1B,6BAA6B,EAC9B,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAEzE,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,eAAO,MAAM,kCAAkC,MAAM,CAAC;AAiBtD,eAAO,MAAM,qBAAqB,kCAAkC,CAAC;AAMrE,qBAAa,qBAAsB,SAAQ,oBAAoB;gBACjD,SAAS,SAAY,EAAE,KAAK,SAAY;CAGrD;AAED,qBAAa,qBAAsB,SAAQ,oBAAoB;;CAI9D;AAED,qBAAa,iBAAkB,SAAQ,oBAAoB;gBAC7C,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,SAAS;CAGtD;AAED,qBAAa,YAAa,SAAQ,oBAAoB;gBACxC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,SAAS;CAGtD;AAED,qBAAa,wBAAyB,SAAQ,KAAK;CAAG;AAEtD,qBAAa,kBAAmB,SAAQ,KAAK;CAAG;AAEhD,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AAE,OAAO,EAAE,cAAc,EAAE,KAAK,EAAE,EAAE,qBAAqB;YA6ClF,0BAA0B;IAiB3B,YAAY,CAAC,KAAK,EAAE,sBAAsB,GAAG,OAAO,CAAC,OAAO,CAAC;IAoC7D,qBAAqB,CAAC,IAAI,EAAE,sBAAsB,EAAE,GAAG,OAAO,CAAC,OAAO,CAAC,kBAAkB,CAAC,EAAE,CAAC;IAmB7F,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,EAAE,CAAC;IAKzD,eAAe,CAAC,KAAK,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC;YAS5E,sBAAsB;YA8BtB,mBAAmB;IAiBjC,OAAO,CAAC,yBAAyB;YAOnB,sBAAsB;YAoBtB,6BAA6B;YAkC7B,mBAAmB;IAoEpB,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,SAAI,GAAG,OAAO,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC;CAqCjH"}
@@ -8,26 +8,26 @@ exports.ALREADY_UPGRADED_CODE = 'INSTALLATION_ALREADY_UPGRADED';
8
8
  const ALREADY_INSTALLED_CODE = 'APP_ALREADY_INSTALLED';
9
9
  const PERMISSION_DENIED = 'PERMISSION_DENIED';
10
10
  class PermissionDeniedError extends cli_shared_1.GraphQlMutationError {
11
- constructor(requestId = 'unknown', appId = 'unknown') {
12
- super(cli_shared_1.Text.install.error.permissionsDeniedInstructions(requestId, appId), PERMISSION_DENIED);
11
+ constructor(requestId = 'unknown', appId = 'unknown', statusCode) {
12
+ super(cli_shared_1.Text.install.error.permissionsDeniedInstructions(requestId, appId), PERMISSION_DENIED, statusCode);
13
13
  }
14
14
  }
15
15
  exports.PermissionDeniedError = PermissionDeniedError;
16
16
  class AlreadyInstalledError extends cli_shared_1.GraphQlMutationError {
17
- constructor() {
18
- super(cli_shared_1.Text.install.error.alreadyInstalledError, ALREADY_INSTALLED_CODE);
17
+ constructor(statusCode) {
18
+ super(cli_shared_1.Text.install.error.alreadyInstalledError, ALREADY_INSTALLED_CODE, statusCode);
19
19
  }
20
20
  }
21
21
  exports.AlreadyInstalledError = AlreadyInstalledError;
22
22
  class InstallationError extends cli_shared_1.GraphQlMutationError {
23
- constructor(message, code) {
24
- super(cli_shared_1.Text.install.error.serverSideInstallationError(message), code);
23
+ constructor(message, code, statusCode) {
24
+ super(cli_shared_1.Text.install.error.serverSideInstallationError(message), code, statusCode);
25
25
  }
26
26
  }
27
27
  exports.InstallationError = InstallationError;
28
28
  class UpgradeError extends cli_shared_1.GraphQlMutationError {
29
- constructor(message, code) {
30
- super(cli_shared_1.Text.upgrade.error.serverSideInstallationError(message), code);
29
+ constructor(message, code, statusCode) {
30
+ super(cli_shared_1.Text.upgrade.error.serverSideInstallationError(message), code, statusCode);
31
31
  }
32
32
  }
33
33
  exports.UpgradeError = UpgradeError;
@@ -37,10 +37,17 @@ exports.EnvironmentNotFoundError = EnvironmentNotFoundError;
37
37
  class MissingTaskIdError extends Error {
38
38
  }
39
39
  exports.MissingTaskIdError = MissingTaskIdError;
40
- class InstallationRequestFailedError extends Error {
40
+ class InstallationRequestFailedError extends cli_shared_1.BaseError {
41
+ constructor(userError, message) {
42
+ super(message);
43
+ this.userError = userError;
44
+ }
45
+ isUserError() {
46
+ return this.userError;
47
+ }
41
48
  }
42
49
  exports.InstallationRequestFailedError = InstallationRequestFailedError;
43
- class MissingAppError extends Error {
50
+ class MissingAppError extends cli_shared_1.UserError {
44
51
  }
45
52
  exports.MissingAppError = MissingAppError;
46
53
  class MissingAppEnvironmentError extends Error {
@@ -49,7 +56,7 @@ exports.MissingAppEnvironmentError = MissingAppEnvironmentError;
49
56
  class MissingAppUninstallTask extends Error {
50
57
  }
51
58
  exports.MissingAppUninstallTask = MissingAppUninstallTask;
52
- class InstallationNotFoundError extends Error {
59
+ class InstallationNotFoundError extends cli_shared_1.UserError {
53
60
  }
54
61
  exports.InstallationNotFoundError = InstallationNotFoundError;
55
62
  class UnknownSiteWithoutResourceIdError extends Error {
@@ -113,12 +120,12 @@ class InstallationsGraphqlClient {
113
120
  const error = (0, cli_shared_1.getError)(errors);
114
121
  if (!success) {
115
122
  if (error.code === ALREADY_INSTALLED_CODE) {
116
- throw new AlreadyInstalledError();
123
+ throw new AlreadyInstalledError(error.statusCode);
117
124
  }
118
125
  if (error.code === PERMISSION_DENIED) {
119
- throw new PermissionDeniedError(requestId, (0, cs_ari_1.parse)(appId).resourceId);
126
+ throw new PermissionDeniedError(requestId, (0, cs_ari_1.parse)(appId).resourceId, error.statusCode);
120
127
  }
121
- throw new InstallationError(`${error.message} (requestId: ${requestId || 'unknown'})`, error.code);
128
+ throw new InstallationError(`${error.message} (requestId: ${requestId || 'unknown'})`, error.code, error.statusCode);
122
129
  }
123
130
  if (!taskId) {
124
131
  throw new MissingTaskIdError(error.message);
@@ -152,7 +159,7 @@ class InstallationsGraphqlClient {
152
159
  const { response: { upgradeApp: { success, errors, taskId } }, requestId } = await this.graphqlClient.mutate(query, variables);
153
160
  const error = (0, cli_shared_1.getError)(errors);
154
161
  if (!success) {
155
- throw new UpgradeError(`${error.message} (requestId: ${requestId || 'unknown'})`, error.code);
162
+ throw new UpgradeError(`${error.message} (requestId: ${requestId || 'unknown'})`, error.code, error.statusCode);
156
163
  }
157
164
  if (!taskId) {
158
165
  throw new MissingTaskIdError(error.message);
@@ -160,12 +167,15 @@ class InstallationsGraphqlClient {
160
167
  await this.monitorAppInstallOrUpgrade(taskId);
161
168
  }
162
169
  async monitorAppInstallOrUpgrade(taskId) {
170
+ var _a;
163
171
  let status = cli_shared_1.AppTaskState.Pending;
164
172
  while (status !== cli_shared_1.AppTaskState.Complete) {
165
173
  const { state, errors } = await this.getAppInstallationTask(taskId);
166
174
  status = state;
167
175
  if (status === cli_shared_1.AppTaskState.Failed) {
168
- throw new InstallationRequestFailedError((errors === null || errors === void 0 ? void 0 : errors[0].message) || undefined);
176
+ const statusCode = (_a = errors === null || errors === void 0 ? void 0 : errors[0].extensions) === null || _a === void 0 ? void 0 : _a.statusCode;
177
+ const isUserError = statusCode && statusCode >= 400 && statusCode < 500 ? true : false;
178
+ throw new InstallationRequestFailedError(isUserError, (errors === null || errors === void 0 ? void 0 : errors[0].message) || undefined);
169
179
  }
170
180
  if (status !== cli_shared_1.AppTaskState.Complete)
171
181
  await this.pause(exports.UNINSTALLATION_EVENT_POLL_INTERVAL);
@@ -189,7 +199,7 @@ class InstallationsGraphqlClient {
189
199
  const { response: { uninstallApp: { success, errors, taskId } }, requestId } = await this.graphqlClient.mutate(query, { input });
190
200
  const error = (0, cli_shared_1.getError)(errors);
191
201
  if (!success) {
192
- throw new cli_shared_1.GraphQlMutationError(`${error.message} (requestId: ${requestId || 'unknown'})`, error.code);
202
+ throw new cli_shared_1.GraphQlMutationError(`${error.message} (requestId: ${requestId || 'unknown'})`, error.code, error.statusCode);
193
203
  }
194
204
  return this.monitorUninstallApp(taskId);
195
205
  }
@@ -2,8 +2,8 @@
2
2
  import { SiteTranslator, ResourcefulAri } from './site-translation';
3
3
  import { URL } from 'url';
4
4
  import { Ari } from '@forge/util/packages/cs-ari';
5
- import { GraphQLClient } from '@forge/cli-shared';
6
- export declare class InvalidAtlassianSiteError extends Error {
5
+ import { GraphQLClient, UserError } from '@forge/cli-shared';
6
+ export declare class InvalidAtlassianSiteError extends UserError {
7
7
  constructor(url: URL);
8
8
  }
9
9
  export declare class CloudIdTranslator implements SiteTranslator {
@@ -1 +1 @@
1
- {"version":3,"file":"cloudid-products.d.ts","sourceRoot":"","sources":["../../../src/installations/site-translation/cloudid-products.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpE,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,OAAO,EAAE,GAAG,EAAsB,MAAM,6BAA6B,CAAC;AACtE,OAAO,EAAE,aAAa,EAA8B,MAAM,mBAAmB,CAAC;AAE9E,qBAAa,yBAA0B,SAAQ,KAAK;gBACtC,GAAG,EAAE,GAAG;CAGrB;AAyBD,qBAAa,iBAAkB,YAAW,cAAc;IAC1C,OAAO,CAAC,aAAa;gBAAb,aAAa,EAAE,aAAa;IAEzC,mBAAmB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO;IAI3C,wBAAwB,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC;IAUlE,uBAAuB,CAAC,IAAI,EAAE,cAAc,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;YA6C/E,UAAU;CAezB"}
1
+ {"version":3,"file":"cloudid-products.d.ts","sourceRoot":"","sources":["../../../src/installations/site-translation/cloudid-products.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpE,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,OAAO,EAAE,GAAG,EAAsB,MAAM,6BAA6B,CAAC;AACtE,OAAO,EAAE,aAAa,EAA8B,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAEzF,qBAAa,yBAA0B,SAAQ,SAAS;gBAC1C,GAAG,EAAE,GAAG;CAGrB;AAyBD,qBAAa,iBAAkB,YAAW,cAAc;IAC1C,OAAO,CAAC,aAAa;gBAAb,aAAa,EAAE,aAAa;IAEzC,mBAAmB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO;IAI3C,wBAAwB,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC;IAUlE,uBAAuB,CAAC,IAAI,EAAE,cAAc,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;YA6C/E,UAAU;CAezB"}
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CloudIdTranslator = exports.InvalidAtlassianSiteError = void 0;
4
4
  const cs_ari_1 = require("@forge/util/packages/cs-ari");
5
5
  const cli_shared_1 = require("@forge/cli-shared");
6
- class InvalidAtlassianSiteError extends Error {
6
+ class InvalidAtlassianSiteError extends cli_shared_1.UserError {
7
7
  constructor(url) {
8
8
  super(cli_shared_1.Text.install.error.invalidAtlassianSite(url));
9
9
  }
@@ -1 +1 @@
1
- {"version":3,"file":"graphql-client.d.ts","sourceRoot":"","sources":["../../src/providers/graphql-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,aAAa,EAAwB,MAAM,mBAAmB,CAAC;AAElF,OAAO,EAAE,kBAAkB,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAEnF,qBAAa,eAAgB,SAAQ,KAAK;CAAG;AAC7C,qBAAa,0BAA2B,SAAQ,KAAK;CAAG;AAExD,qBAAa,aAAc,YAAW,uBAAuB;IAC/C,OAAO,CAAC,QAAQ,CAAC,aAAa;gBAAb,aAAa,EAAE,aAAa;IAE5C,iBAAiB,CAAC,OAAO,EAAE,kBAAkB;CA0C3D"}
1
+ {"version":3,"file":"graphql-client.d.ts","sourceRoot":"","sources":["../../src/providers/graphql-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,aAAa,EAAwB,MAAM,mBAAmB,CAAC;AAElF,OAAO,EAAE,kBAAkB,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAEnF,qBAAa,eAAgB,SAAQ,KAAK;CAAG;AAC7C,qBAAa,0BAA2B,SAAQ,KAAK;CAAG;AAExD,qBAAa,aAAc,YAAW,uBAAuB;IAC/C,OAAO,CAAC,QAAQ,CAAC,aAAa;gBAAb,aAAa,EAAE,aAAa;IAE5C,iBAAiB,CAAC,OAAO,EAAE,kBAAkB;CA8C3D"}
@@ -40,7 +40,7 @@ class GraphqlClient {
40
40
  });
41
41
  const error = (0, cli_shared_1.getError)(errors);
42
42
  if (!success) {
43
- throw new cli_shared_1.GraphQlMutationError(`${error.message} (requestId: ${requestId || 'unknown'})`, error.code);
43
+ throw new cli_shared_1.GraphQlMutationError(`${error.message} (requestId: ${requestId || 'unknown'})`, error.code, error.statusCode);
44
44
  }
45
45
  }
46
46
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forge/cli",
3
- "version": "6.1.0",
3
+ "version": "6.2.0-next.1",
4
4
  "description": "A command line interface for managing Atlassian-hosted apps",
5
5
  "author": "Atlassian",
6
6
  "license": "UNLICENSED",
@@ -18,10 +18,10 @@
18
18
  "postinstall": "node -e \"process.exitCode = fs.existsSync('./out/bin/postinstall.js')\" || node ./out/bin/postinstall.js"
19
19
  },
20
20
  "dependencies": {
21
- "@forge/bundler": "4.0.1",
22
- "@forge/cli-shared": "3.2.3",
21
+ "@forge/bundler": "4.0.2-next.0",
22
+ "@forge/cli-shared": "3.3.0-next.0",
23
23
  "@forge/egress": "^1.1.1",
24
- "@forge/lint": "3.2.9",
24
+ "@forge/lint": "3.2.10-next.0",
25
25
  "@forge/manifest": "4.5.0",
26
26
  "@forge/util": "1.2.0",
27
27
  "ajv": "^6.12.5",