@forge/cli-shared 3.4.1-next.4 → 3.5.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,35 @@
1
1
  # @forge/cli-shared
2
2
 
3
+ ## 3.5.0
4
+
5
+ ### Minor Changes
6
+
7
+ - bbca9be: Forge CLI error handling and analytics changes
8
+
9
+ ### Patch Changes
10
+
11
+ - bae4bce: Explicitly state the supported node versions when using the CLI
12
+ - b7428f7: Update CLI copy for forge contributors add and remove
13
+ - a36488f: Bundle Node runtime wrapper using Webpack
14
+ - 6cda566: Add a way to inspect bundler output
15
+ - 8d0dc10: Use a single global to pass information from the runtime
16
+ - fed846f: Updated inquirer to version 8, fixed issues with inquirer table and testing
17
+ - Updated dependencies [4ac7253]
18
+ - Updated dependencies [8f01fae]
19
+ - @forge/manifest@4.5.3
20
+
21
+ ## 3.5.0-next.5
22
+
23
+ ### Minor Changes
24
+
25
+ - bbca9bed: Forge CLI error handling and analytics changes
26
+
27
+ ### Patch Changes
28
+
29
+ - b7428f75: Update CLI copy for forge contributors add and remove
30
+ - a36488fc: Bundle Node runtime wrapper using Webpack
31
+ - 8d0dc104: Use a single global to pass information from the runtime
32
+
3
33
  ## 3.4.1-next.4
4
34
 
5
35
  ### Patch Changes
@@ -23,6 +23,11 @@ export declare type PersonalApiCredentialsValidated = t.TypeOf<typeof personalAp
23
23
  export declare class NoTokenInStoreError extends UserError {
24
24
  constructor();
25
25
  }
26
+ export declare class NoKeytarError extends UserError {
27
+ constructor();
28
+ }
29
+ export declare class KeytarAccessError extends UserError {
30
+ }
26
31
  export interface CredentialGetter {
27
32
  getCredentials(): Promise<PersonalApiCredentialsValidated>;
28
33
  getInstructionsWhenInvalid(): string;
@@ -1 +1 @@
1
- {"version":3,"file":"credential-store.d.ts","sourceRoot":"","sources":["../../../src/auth/personal/credential-store.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,CAAC,MA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AU;IAK3C,OAAO,CAAC,eAAe;IAoBvB,iBAAiB,CAAC,iBAAiB,EAAE,MAAM,GAAG,IAAI,GAAG,+BAA+B;IAoB9E,oBAAoB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,+BAA+B,GAAG,SAAS,CAAC;IAehG,+BAA+B,IAAI,+BAA+B,GAAG,SAAS;IAS9E,kCAAkC,IAAI,IAAI;IAIpC,cAAc,IAAI,OAAO,CAAC,+BAA+B,CAAC;IA6B1D,cAAc,CAAC,WAAW,EAAE,+BAA+B,GAAG,OAAO,CAAC,IAAI,CAAC;IAY3E,iBAAiB,IAAI,OAAO,CAAC,IAAI,CAAC;IAYxC,0BAA0B,IAAI,MAAM;CAMrC;AAED,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,GAAG,eAAe,CAKlE"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getCredentialStore = exports.CredentialStoreImpl = exports.NoTokenInStoreError = exports.personalApiCredentialsValidatedShape = exports.personalApiCredentialsShape = exports.API_TOKEN_KEY = exports.EMAIL_KEY = void 0;
3
+ exports.getCredentialStore = exports.CredentialStoreImpl = exports.KeytarAccessError = exports.NoKeytarError = exports.NoTokenInStoreError = exports.personalApiCredentialsValidatedShape = exports.personalApiCredentialsShape = exports.API_TOKEN_KEY = exports.EMAIL_KEY = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const os_1 = require("os");
6
6
  const Either_1 = require("fp-ts/lib/Either");
@@ -45,6 +45,15 @@ class NoTokenInStoreError extends shared_1.UserError {
45
45
  }
46
46
  }
47
47
  exports.NoTokenInStoreError = NoTokenInStoreError;
48
+ class NoKeytarError extends shared_1.UserError {
49
+ constructor() {
50
+ super(ui_1.Text.error.noKeytar);
51
+ }
52
+ }
53
+ exports.NoKeytarError = NoKeytarError;
54
+ class KeytarAccessError extends shared_1.UserError {
55
+ }
56
+ exports.KeytarAccessError = KeytarAccessError;
48
57
  class CredentialStoreImpl {
49
58
  constructor(logger, instructionsURL, keytar, cachedConfig) {
50
59
  this.logger = logger;
@@ -70,7 +79,7 @@ class CredentialStoreImpl {
70
79
  default:
71
80
  error = ui_1.Text.error.keytarAccessError.other(message);
72
81
  }
73
- throw new Error(error);
82
+ throw new KeytarAccessError(error);
74
83
  }
75
84
  decodeCredentials(credentialsString) {
76
85
  if (!credentialsString) {
@@ -145,11 +154,11 @@ class CredentialStoreImpl {
145
154
  await this.keytar.setPassword(KEYTAR_SERVICE, this.keytarAccount, JSON.stringify(credentials));
146
155
  }
147
156
  catch (e) {
148
- throw new Error(ui_1.Text.error.noKeytar);
157
+ throw new NoKeytarError();
149
158
  }
150
159
  }
151
160
  else {
152
- throw new Error(ui_1.Text.error.noKeytar);
161
+ throw new NoKeytarError();
153
162
  }
154
163
  }
155
164
  async deleteCredentials() {
@@ -6,8 +6,12 @@ import { UserError } from '../shared';
6
6
  export declare class ResourceDefinitionMissingError extends UserError {
7
7
  constructor(resources: string[]);
8
8
  }
9
+ export interface Handler {
10
+ module: string;
11
+ func: string;
12
+ }
9
13
  export interface ConfigInteractor {
10
- getAppHandlers(): Promise<Array<string>>;
14
+ getAppHandlers(): Promise<Array<Handler>>;
11
15
  snapshotsEnabled(): Promise<boolean>;
12
16
  }
13
17
  export declare type Resource = Resources[0];
@@ -19,7 +23,7 @@ export declare class ConfigFile implements ConfigReader, ConfigWriter, ConfigInt
19
23
  private readonly fileReader;
20
24
  private readonly fileWriter;
21
25
  constructor(fileReader: FileSystemReader, fileWriter: FileSystemWriter);
22
- getAppHandlers(): Promise<Array<string>>;
26
+ getAppHandlers(): Promise<Array<Handler>>;
23
27
  readConfig(): Promise<ManifestSchema>;
24
28
  readConfigToDocument(): Promise<Document.Parsed | undefined>;
25
29
  snapshotsEnabled(): Promise<boolean>;
@@ -1 +1 @@
1
- {"version":3,"file":"config-file.d.ts","sourceRoot":"","sources":["../../src/config/config-file.ts"],"names":[],"mappings":"AAAA,OAA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AAC,MAAM,CAAC,MAAM,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAe1E,YAAY,CAAC,aAAa,CAAC,EAAE,YAAY,EAAE,GAAG,OAAO,CAAC,eAAe,EAAE,CAAC;IAqBxE,aAAa,IAAI,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;IAKzD,OAAO,CAAC,eAAe;CAcxB"}
@@ -22,13 +22,18 @@ class ConfigFile {
22
22
  this.fileWriter = fileWriter;
23
23
  }
24
24
  async getAppHandlers() {
25
- var _a;
25
+ var _a, _b;
26
26
  const config = await this.readConfig();
27
- const functions = (_a = config.modules) === null || _a === void 0 ? void 0 : _a.function;
28
- if (functions === undefined) {
29
- return [];
30
- }
31
- return functions.map((funcs) => funcs.handler.split('.')[0]);
27
+ const functions = (_b = (_a = config.modules) === null || _a === void 0 ? void 0 : _a.function) !== null && _b !== void 0 ? _b : [];
28
+ const handlers = Array.from(new Set(functions.map((f) => f.handler)));
29
+ return handlers.map((handler) => {
30
+ const parts = handler.split('.');
31
+ if (parts.length !== 2) {
32
+ throw new shared_1.ValidationError(ui_1.Text.error.handlerFormat(handler));
33
+ }
34
+ const [module, func] = parts;
35
+ return { module, func };
36
+ });
32
37
  }
33
38
  async readConfig() {
34
39
  const manifestFileContents = this.fileReader.readFile(_1.manifestFileName);
@@ -9547,6 +9547,35 @@ export declare type JiraForgeUsersFieldUsersArgs = {
9547
9547
  before?: Maybe<Scalars['String']>;
9548
9548
  suggested?: Maybe<Scalars['Boolean']>;
9549
9549
  };
9550
+ export declare type JiraGlobalPermission = {
9551
+ __typename?: 'JiraGlobalPermission';
9552
+ key: Scalars['String'];
9553
+ name: Scalars['String'];
9554
+ description: Scalars['String'];
9555
+ };
9556
+ export declare type JiraGlobalPermissionAddGroupGrantInput = {
9557
+ key: Scalars['String'];
9558
+ groupAris: Array<Scalars['ID']>;
9559
+ };
9560
+ export declare type JiraGlobalPermissionAddGroupGrantPayload = Payload & {
9561
+ __typename?: 'JiraGlobalPermissionAddGroupGrantPayload';
9562
+ success: Scalars['Boolean'];
9563
+ errors?: Maybe<Array<MutationError>>;
9564
+ };
9565
+ export declare type JiraGlobalPermissionDeleteGroupGrantInput = {
9566
+ key: Scalars['String'];
9567
+ groupAris: Array<Scalars['ID']>;
9568
+ };
9569
+ export declare type JiraGlobalPermissionDeleteGroupGrantPayload = Payload & {
9570
+ __typename?: 'JiraGlobalPermissionDeleteGroupGrantPayload';
9571
+ success: Scalars['Boolean'];
9572
+ errors?: Maybe<Array<MutationError>>;
9573
+ };
9574
+ export declare type JiraGlobalPermissionGrants = {
9575
+ __typename?: 'JiraGlobalPermissionGrants';
9576
+ permission: JiraGlobalPermission;
9577
+ groups?: Maybe<Array<JiraGroup>>;
9578
+ };
9550
9579
  export declare type JiraGlobalTimeTrackingSettings = {
9551
9580
  __typename?: 'JiraGlobalTimeTrackingSettings';
9552
9581
  isTimeTrackingEnabled: Scalars['Boolean'];
@@ -11067,6 +11096,8 @@ export declare type JiraMutation = {
11067
11096
  linkIssueToVersionRelatedWork?: Maybe<JiraLinkIssueToVersionRelatedWorkPayload>;
11068
11097
  jiraFilterMutation?: Maybe<JiraFilterMutation>;
11069
11098
  setApplicationProperties?: Maybe<JiraSetApplicationPropertiesPayload>;
11099
+ grantGlobalPermission?: Maybe<JiraGlobalPermissionAddGroupGrantPayload>;
11100
+ deleteGlobalPermissionGrant?: Maybe<JiraGlobalPermissionDeleteGroupGrantPayload>;
11070
11101
  updateLabelsField?: Maybe<JiraLabelsFieldPayload>;
11071
11102
  updateDateField?: Maybe<JiraDateFieldPayload>;
11072
11103
  updateDateTimeField?: Maybe<JiraDateTimeFieldPayload>;
@@ -11117,6 +11148,12 @@ export declare type JiraMutationSetApplicationPropertiesArgs = {
11117
11148
  cloudId: Scalars['ID'];
11118
11149
  input: Array<JiraSetApplicationPropertyInput>;
11119
11150
  };
11151
+ export declare type JiraMutationGrantGlobalPermissionArgs = {
11152
+ input: JiraGlobalPermissionAddGroupGrantInput;
11153
+ };
11154
+ export declare type JiraMutationDeleteGlobalPermissionGrantArgs = {
11155
+ input: JiraGlobalPermissionDeleteGroupGrantInput;
11156
+ };
11120
11157
  export declare type JiraMutationUpdateLabelsFieldArgs = {
11121
11158
  input: JiraUpdateLabelsFieldInput;
11122
11159
  };
@@ -12108,6 +12145,7 @@ export declare type JiraQuery = {
12108
12145
  screenIdByIssueKey?: Maybe<Scalars['Long']>;
12109
12146
  epicLinkFieldKey?: Maybe<Scalars['String']>;
12110
12147
  childIssuesLimit?: Maybe<Scalars['Long']>;
12148
+ getGlobalPermissionsAndGrants?: Maybe<Array<JiraGlobalPermissionGrants>>;
12111
12149
  allGrantTypeKeys?: Maybe<Array<JiraGrantTypeKey>>;
12112
12150
  grantTypeValues?: Maybe<JiraGrantTypeValueConnection>;
12113
12151
  viewPermissionScheme?: Maybe<JiraPermissionSchemeViewResult>;
@@ -12230,6 +12268,9 @@ export declare type JiraQueryScreenIdByIssueIdArgs = {
12230
12268
  export declare type JiraQueryScreenIdByIssueKeyArgs = {
12231
12269
  issueKey: Scalars['String'];
12232
12270
  };
12271
+ export declare type JiraQueryGetGlobalPermissionsAndGrantsArgs = {
12272
+ keys?: Maybe<Array<Scalars['String']>>;
12273
+ };
12233
12274
  export declare type JiraQueryAllGrantTypeKeysArgs = {
12234
12275
  cloudId: Scalars['ID'];
12235
12276
  };