@forge/cli-shared 3.2.3 → 3.3.0-next.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 (35) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/out/apps/create-app-graphql-client.d.ts.map +1 -1
  3. package/out/apps/create-app-graphql-client.js +1 -1
  4. package/out/auth/personal/credential-store.d.ts +2 -1
  5. package/out/auth/personal/credential-store.d.ts.map +1 -1
  6. package/out/auth/personal/credential-store.js +1 -1
  7. package/out/auth/personal/me-graphql-client.d.ts +2 -1
  8. package/out/auth/personal/me-graphql-client.d.ts.map +1 -1
  9. package/out/auth/personal/me-graphql-client.js +2 -1
  10. package/out/config/config-file.d.ts.map +1 -1
  11. package/out/config/config-file.js +3 -2
  12. package/out/graphql/get-mutation-error.d.ts +1 -0
  13. package/out/graphql/get-mutation-error.d.ts.map +1 -1
  14. package/out/graphql/get-mutation-error.js +3 -2
  15. package/out/graphql/graphql-types.d.ts +106 -2
  16. package/out/graphql/graphql-types.d.ts.map +1 -1
  17. package/out/graphql/graphql-types.js +1 -0
  18. package/out/graphql/minimal-graphql-runner.d.ts +7 -4
  19. package/out/graphql/minimal-graphql-runner.d.ts.map +1 -1
  20. package/out/graphql/minimal-graphql-runner.js +11 -5
  21. package/out/graphql/mutation-aware-graphql-client.d.ts +6 -2
  22. package/out/graphql/mutation-aware-graphql-client.d.ts.map +1 -1
  23. package/out/graphql/mutation-aware-graphql-client.js +10 -2
  24. package/out/shared/error-handling.d.ts +13 -1
  25. package/out/shared/error-handling.d.ts.map +1 -1
  26. package/out/shared/error-handling.js +22 -2
  27. package/out/shared/installationId.js +2 -2
  28. package/out/shared/validate.js +2 -2
  29. package/out/ui/index.d.ts +0 -1
  30. package/out/ui/index.d.ts.map +1 -1
  31. package/out/ui/index.js +0 -1
  32. package/package.json +1 -1
  33. package/out/ui/validation-error.d.ts +0 -3
  34. package/out/ui/validation-error.d.ts.map +0 -1
  35. package/out/ui/validation-error.js +0 -6
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @forge/cli-shared
2
2
 
3
+ ## 3.3.0-next.0
4
+
5
+ ### Minor Changes
6
+
7
+ - c6e4bec0: Error handling changes in forge CLI to track user realted errors for analytics
8
+
3
9
  ## 3.2.3
4
10
 
5
11
  ### Patch Changes
@@ -1 +1 @@
1
- {"version":3,"file":"create-app-graphql-client.d.ts","sourceRoot":"","sources":["../../src/apps/create-app-graphql-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,aAAa,EAA+C,MAAM,YAAY,CAAC;AAGlG,OAAO,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAEvE,qBAAa,oBAAqB,SAAQ,KAAK;CAAG;AAElD,qBAAa,sBAAuB,YAAW,eAAe;IAChD,OAAO,CAAC,QAAQ,CAAC,aAAa;gBAAb,aAAa,EAAE,aAAa;IAE5C,SAAS,CAAC,KAAK,EAAE,oBAAoB,GAAG,OAAO,CAAC,MAAM,CAAC;CAsCrE"}
1
+ {"version":3,"file":"create-app-graphql-client.d.ts","sourceRoot":"","sources":["../../src/apps/create-app-graphql-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,aAAa,EAA+C,MAAM,YAAY,CAAC;AAGlG,OAAO,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAEvE,qBAAa,oBAAqB,SAAQ,KAAK;CAAG;AAElD,qBAAa,sBAAuB,YAAW,eAAe;IAChD,OAAO,CAAC,QAAQ,CAAC,aAAa;gBAAb,aAAa,EAAE,aAAa;IAE5C,SAAS,CAAC,KAAK,EAAE,oBAAoB,GAAG,OAAO,CAAC,MAAM,CAAC;CA0CrE"}
@@ -32,7 +32,7 @@ class CreateAppGraphQLClient {
32
32
  });
33
33
  const error = (0, graphql_1.getError)(errors);
34
34
  if (!success) {
35
- throw new graphql_1.GraphQlMutationError(`${error.message} (requestId: ${requestId || 'unknown'})`, error.code);
35
+ throw new graphql_1.GraphQlMutationError(`${error.message} (requestId: ${requestId || 'unknown'})`, error.code, error.statusCode);
36
36
  }
37
37
  if (!app) {
38
38
  throw new CannotCreateAppError(ui_1.Text.create.error.app.creation);
@@ -1,6 +1,7 @@
1
1
  import * as t from 'io-ts';
2
2
  import { Logger } from '../../ui';
3
3
  import { CachedConf } from '../../cache';
4
+ import { UserError } from '../../shared';
4
5
  export declare const EMAIL_KEY = "FORGE_EMAIL";
5
6
  export declare const API_TOKEN_KEY = "FORGE_API_TOKEN";
6
7
  export interface Keytar {
@@ -19,7 +20,7 @@ export declare const personalApiCredentialsValidatedShape: t.TypeC<{
19
20
  }>;
20
21
  export declare type PersonalApiCredentials = t.TypeOf<typeof personalApiCredentialsShape>;
21
22
  export declare type PersonalApiCredentialsValidated = t.TypeOf<typeof personalApiCredentialsValidatedShape>;
22
- export declare class NoTokenInStoreError extends Error {
23
+ export declare class NoTokenInStoreError extends UserError {
23
24
  constructor();
24
25
  }
25
26
  export interface CredentialGetter {
@@ -1 +1 @@
1
- {"version":3,"file":"credential-store.d.ts","sourceRoot":"","sources":["../../../src/auth/personal/credential-store.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;AAC3B,OAAO,EAAE,MAAM,EAAQ,MAAM,UAAU,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAKzC,eAAO,MAAM,SAAS,gBAAgB,CAAC;AACvC,eAAO,MAAM,aAAa,oBAAoB,CAAC;AAa/C,MAAM,WAAW,MAAM;IACrB,WAAW,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IACtE,WAAW,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC/E,cAAc,CAAC,OAAO,EAAE,M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TokenInStoreError extends Error {
42
+ class NoTokenInStoreError extends shared_1.UserError {
43
43
  constructor() {
44
44
  super(ui_1.Text.error.noTokenStored);
45
45
  }
@@ -1,6 +1,7 @@
1
1
  import { GraphQLClient, User } from '../../graphql';
2
+ import { UserError } from '../../shared';
2
3
  import { Logger } from '../../ui';
3
- export declare class UserNotFoundError extends Error {
4
+ export declare class UserNotFoundError extends UserError {
4
5
  }
5
6
  export declare class MeGraphqlClient {
6
7
  private readonly graphqlClient;
@@ -1 +1 @@
1
- {"version":3,"file":"me-graphql-client.d.ts","sourceRoot":"","sources":["../../../src/auth/personal/me-graphql-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EAAgB,MAAM,EAAE,MAAM,UAAU,CAAC;AAEhD,qBAAa,iBAAkB,SAAQ,KAAK;CAAG;AAE/C,qBAAa,eAAe;IACd,OAAO,CAAC,QAAQ,CAAC,aAAa;IAAiB,OAAO,CAAC,QAAQ,CAAC,MAAM;gBAArD,aAAa,EAAE,aAAa,EAAmB,MAAM,EAAE,MAAM;IAE7E,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;CAwBtC"}
1
+ {"version":3,"file":"me-graphql-client.d.ts","sourceRoot":"","sources":["../../../src/auth/personal/me-graphql-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAgB,MAAM,EAAE,MAAM,UAAU,CAAC;AAEhD,qBAAa,iBAAkB,SAAQ,SAAS;CAAG;AAEnD,qBAAa,eAAe;IACd,OAAO,CAAC,QAAQ,CAAC,aAAa;IAAiB,OAAO,CAAC,QAAQ,CAAC,MAAM;gBAArD,aAAa,EAAE,aAAa,EAAmB,MAAM,EAAE,MAAM;IAE7E,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;CAwBtC"}
@@ -1,8 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.MeGraphqlClient = exports.UserNotFoundError = void 0;
4
+ const shared_1 = require("../../shared");
4
5
  const ui_1 = require("../../ui");
5
- class UserNotFoundError extends Error {
6
+ class UserNotFoundError extends shared_1.UserError {
6
7
  }
7
8
  exports.UserNotFoundError = UserNotFoundError;
8
9
  class MeGraphqlClient {
@@ -1 +1 @@
1
- {"version":3,"file":"config-file.d.ts","sourceRoot":"","sources":["../../src/config/config-file.ts"],"names":[],"mappings":"AAAA,OAAa,EAAwB,QAAQ,EAAE,MAAM,MAAM,CAAC;AAI5D,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAGpE,OAAO,EAAE,YAAY,EAAE,YAAY,EAAoB,MAAM,IAAI,CAAC;AAGlE,OAAO,EAEL,cAAc,EACd,SAAS,EAOV,MAAM,qCAAqC,CAAC;AAE7C,qBAAa,8BAA+B,SAAQ,KAAK;gBAC3C,SAAS,EAAE,MAAM,EAAE;CAGhC;AAED,MAAM,WAAW,gBAAgB;IAC/B,cAAc,IAAI,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC;IACzC,gBAAgB,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;CACtC;AAED,oBAAY,QAAQ,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;AACpC,oBAAY,YAAY,GAAG,UAAU,GAAG,UAAU,GAAG,SAAS,CAAC;AAC/D,MAAM,WAAW,eAAgB,SAAQ,QAAQ;IAC/C,YAAY,EAAE,YAAY,CAAC;CAC5B;AAED,qBAAa,UAAW,YAAW,YAAY,EAAE,YAAY,EAAE,gBAAgB;IACjE,OAAO,CAAC,QAAQ,CAAC,UAAU;IAAoB,OAAO,CAAC,QAAQ,CAAC,UAAU;gBAAzD,UAAU,EAAE,gBAAgB,EAAmB,UAAU,EAAE,gBAAgB;IAE3F,cA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,oBAAoB,IAAI,OAAO,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,EAAE,GAAG,SAAS,CAAA;KAAE,EAAE,CAAC;IAoClF,gBAAgB,IAAI,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAe1E,YAAY,IAAI,OAAO,CAAC,eAAe,EAAE,CAAC;IAgB1C,aAAa,IAAI,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;IAKzD,OAAO,CAAC,eAAe;CAcxB"}
@@ -9,6 +9,7 @@ const _1 = require("./");
9
9
  const case_1 = tslib_1.__importDefault(require("case"));
10
10
  const config_1 = require("./config");
11
11
  const url_1 = require("url");
12
+ const shared_1 = require("../shared");
12
13
  class ResourceDefinitionMissingError extends Error {
13
14
  constructor(resources) {
14
15
  super(ui_1.Text.error.resourceDefinitionMissing(resources));
@@ -36,7 +37,7 @@ class ConfigFile {
36
37
  return (0, yaml_1.parse)(manifestFileContents);
37
38
  }
38
39
  catch (_a) {
39
- throw new ui_1.ValidationError(ui_1.Text.artifact.error.invalidYaml(_1.manifestFileName));
40
+ throw new shared_1.ValidationError(ui_1.Text.artifact.error.invalidYaml(_1.manifestFileName));
40
41
  }
41
42
  }
42
43
  async readConfigToDocument() {
@@ -46,7 +47,7 @@ class ConfigFile {
46
47
  return (0, yaml_1.parseDocument)(manifestFileContents);
47
48
  }
48
49
  catch (_a) {
49
- throw new ui_1.ValidationError(ui_1.Text.artifact.error.invalidYaml(_1.manifestFileName));
50
+ throw new shared_1.ValidationError(ui_1.Text.artifact.error.invalidYaml(_1.manifestFileName));
50
51
  }
51
52
  }
52
53
  }
@@ -2,5 +2,6 @@ import { Maybe, MutationError } from './graphql-types';
2
2
  export declare function getError(errors: Maybe<MutationError[]> | undefined): {
3
3
  code: string | undefined;
4
4
  message: string | undefined;
5
+ statusCode: number | undefined;
5
6
  };
6
7
  //# sourceMappingURL=get-mutation-error.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-mutation-error.d.ts","sourceRoot":"","sources":["../../src/graphql/get-mutation-error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEvD,wBAAgB,QAAQ,CAAC,MAAM,EAAE,KAAK,CAAC,aAAa,EAAE,CAAC,GAAG,SAAS;;;EAOlE"}
1
+ {"version":3,"file":"get-mutation-error.d.ts","sourceRoot":"","sources":["../../src/graphql/get-mutation-error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEvD,wBAAgB,QAAQ,CAAC,MAAM,EAAE,KAAK,CAAC,aAAa,EAAE,CAAC,GAAG,SAAS;;;;EAQlE"}
@@ -2,11 +2,12 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getError = void 0;
4
4
  function getError(errors) {
5
- var _a;
5
+ var _a, _b;
6
6
  const error = errors === null || errors === void 0 ? void 0 : errors[0];
7
7
  return {
8
8
  code: ((_a = error === null || error === void 0 ? void 0 : error.extensions) === null || _a === void 0 ? void 0 : _a.errorType) || undefined,
9
- message: (error === null || error === void 0 ? void 0 : error.message) || undefined
9
+ message: (error === null || error === void 0 ? void 0 : error.message) || undefined,
10
+ statusCode: ((_b = error === null || error === void 0 ? void 0 : error.extensions) === null || _b === void 0 ? void 0 : _b.statusCode) || undefined
10
11
  };
11
12
  }
12
13
  exports.getError = getError;
@@ -11421,6 +11421,8 @@ export declare type JiraProject = Node & {
11421
11421
  isFavourite?: Maybe<Scalars['Boolean']>;
11422
11422
  devOpsToolRelationships?: Maybe<JiraProjectAndDevOpsToolRelationshipConnection>;
11423
11423
  devOpsEntityRelationships?: Maybe<AriGraphRelationshipConnection>;
11424
+ linkedSecurityContainers?: Maybe<AriGraphRelationshipConnection>;
11425
+ linkedSecurityVulnerabilities?: Maybe<AriGraphRelationshipConnection>;
11424
11426
  repositoryRelationships?: Maybe<JiraProjectAndRepositoryRelationshipConnection>;
11425
11427
  devOpsServiceRelationships?: Maybe<DevOpsServiceAndJiraProjectRelationshipConnection>;
11426
11428
  opsgenieTeamRelationships?: Maybe<JiraProjectAndOpsgenieTeamRelationshipConnection>;
@@ -11444,6 +11446,16 @@ export declare type JiraProjectDevOpsEntityRelationshipsArgs = {
11444
11446
  after?: Maybe<Scalars['String']>;
11445
11447
  sort?: Maybe<AriGraphRelationshipsSort>;
11446
11448
  };
11449
+ export declare type JiraProjectLinkedSecurityContainersArgs = {
11450
+ first?: Maybe<Scalars['Int']>;
11451
+ after?: Maybe<Scalars['String']>;
11452
+ type?: Maybe<Scalars['String']>;
11453
+ };
11454
+ export declare type JiraProjectLinkedSecurityVulnerabilitiesArgs = {
11455
+ first?: Maybe<Scalars['Int']>;
11456
+ after?: Maybe<Scalars['String']>;
11457
+ type?: Maybe<Scalars['String']>;
11458
+ };
11447
11459
  export declare type JiraProjectRepositoryRelationshipsArgs = {
11448
11460
  first?: Maybe<Scalars['Int']>;
11449
11461
  after?: Maybe<Scalars['String']>;
@@ -13934,6 +13946,7 @@ export declare type MarketplaceAppWatchersInfo = {
13934
13946
  watchersCount: Scalars['Int'];
13935
13947
  };
13936
13948
  export declare type MarketplaceAppsFilter = {
13949
+ includePrivate?: Maybe<Scalars['Boolean']>;
13937
13950
  productHostingOptions?: Maybe<Array<AtlassianProductHostingType>>;
13938
13951
  cloudFortifiedStatus?: Maybe<Array<MarketplaceProgramStatus>>;
13939
13952
  };
@@ -14197,6 +14210,10 @@ export declare type MercuryAddGoalsToStrategyInput = {
14197
14210
  strategyId: Scalars['ID'];
14198
14211
  goals?: Maybe<Array<MercuryLinkGoalInput>>;
14199
14212
  };
14213
+ export declare type MercuryAllocateTeamCapacityInput = {
14214
+ teamAllocationId: Scalars['ID'];
14215
+ teamAllocationEntries: Array<Maybe<MercuryTeamAllocationEntryInput>>;
14216
+ };
14200
14217
  export declare type MercuryAtlasGoal = Node & {
14201
14218
  __typename?: 'MercuryAtlasGoal';
14202
14219
  id: Scalars['ID'];
@@ -14220,6 +14237,10 @@ export declare type MercuryCreateStrategyInput = {
14220
14237
  contentId?: Maybe<Scalars['String']>;
14221
14238
  spaceKey?: Maybe<Scalars['String']>;
14222
14239
  };
14240
+ export declare type MercuryCreateTeamAllocationInput = {
14241
+ teamId: Scalars['ID'];
14242
+ teamAllocationEntries: Array<Maybe<MercuryTeamAllocationEntryInput>>;
14243
+ };
14223
14244
  export declare type MercuryCreateTeamInput = {
14224
14245
  name: Scalars['String'];
14225
14246
  teamsServiceTeamId: Scalars['ID'];
@@ -14231,6 +14252,9 @@ export declare type MercuryDeleteJobFunctionInput = {
14231
14252
  export declare type MercuryDeleteStrategyInput = {
14232
14253
  strategyId: Scalars['ID'];
14233
14254
  };
14255
+ export declare type MercuryDeleteTeamAllocationInput = {
14256
+ id: Scalars['ID'];
14257
+ };
14234
14258
  export declare type MercuryDeleteTeamInput = {
14235
14259
  teamId: Scalars['ID'];
14236
14260
  };
@@ -14292,6 +14316,9 @@ export declare type MercuryMutationApi = {
14292
14316
  createTeam?: Maybe<MercuryTeamMutationPayload>;
14293
14317
  updateTeam?: Maybe<MercuryTeamMutationPayload>;
14294
14318
  deleteTeam?: Maybe<MercuryTeamDeletePayload>;
14319
+ createTeamAllocation?: Maybe<MercuryTeamAllocationMutationPayload>;
14320
+ deleteTeamAllocation?: Maybe<MercuryTeamAllocationDeletePayload>;
14321
+ allocateTeamCapacity?: Maybe<MercuryTeamAllocationMutationPayload>;
14295
14322
  };
14296
14323
  export declare type MercuryMutationApiCreateStrategyArgs = {
14297
14324
  input: MercuryCreateStrategyInput;
@@ -14326,6 +14353,15 @@ export declare type MercuryMutationApiUpdateTeamArgs = {
14326
14353
  export declare type MercuryMutationApiDeleteTeamArgs = {
14327
14354
  input: MercuryDeleteTeamInput;
14328
14355
  };
14356
+ export declare type MercuryMutationApiCreateTeamAllocationArgs = {
14357
+ input?: Maybe<MercuryCreateTeamAllocationInput>;
14358
+ };
14359
+ export declare type MercuryMutationApiDeleteTeamAllocationArgs = {
14360
+ input?: Maybe<MercuryDeleteTeamAllocationInput>;
14361
+ };
14362
+ export declare type MercuryMutationApiAllocateTeamCapacityArgs = {
14363
+ input?: Maybe<MercuryAllocateTeamCapacityInput>;
14364
+ };
14329
14365
  export declare type MercuryQueryApi = {
14330
14366
  __typename?: 'MercuryQueryApi';
14331
14367
  strategies?: Maybe<MercuryStrategyConnection>;
@@ -14337,6 +14373,7 @@ export declare type MercuryQueryApi = {
14337
14373
  team?: Maybe<MercuryTeam>;
14338
14374
  initiative?: Maybe<MercuryInitiative>;
14339
14375
  initiatives?: Maybe<MercuryInitiativeConnection>;
14376
+ teamAllocation?: Maybe<MercuryTeamAllocation>;
14340
14377
  };
14341
14378
  export declare type MercuryQueryApiStrategiesArgs = {
14342
14379
  first?: Maybe<Scalars['Int']>;
@@ -14366,6 +14403,9 @@ export declare type MercuryQueryApiInitiativesArgs = {
14366
14403
  first?: Maybe<Scalars['Int']>;
14367
14404
  after?: Maybe<Scalars['String']>;
14368
14405
  };
14406
+ export declare type MercuryQueryApiTeamAllocationArgs = {
14407
+ teamId: Scalars['ID'];
14408
+ };
14369
14409
  export declare type MercuryRemoveGoalsFromStrategyInput = {
14370
14410
  strategyId: Scalars['ID'];
14371
14411
  goals?: Maybe<Array<MercuryLinkGoalInput>>;
@@ -14413,6 +14453,39 @@ export declare type MercuryTeam = Node & {
14413
14453
  name: Scalars['String'];
14414
14454
  active?: Maybe<Scalars['Boolean']>;
14415
14455
  };
14456
+ export declare type MercuryTeamAllocation = {
14457
+ __typename?: 'MercuryTeamAllocation';
14458
+ id: Scalars['ID'];
14459
+ teamId: Scalars['ID'];
14460
+ teamAllocationEntries: Array<Maybe<MercuryTeamAllocationEntry>>;
14461
+ };
14462
+ export declare type MercuryTeamAllocationDeletePayload = Payload & {
14463
+ __typename?: 'MercuryTeamAllocationDeletePayload';
14464
+ deletedTeamAllocationId?: Maybe<Scalars['ID']>;
14465
+ success: Scalars['Boolean'];
14466
+ errors?: Maybe<Array<MutationError>>;
14467
+ statusCode: Scalars['Int'];
14468
+ message: Scalars['String'];
14469
+ };
14470
+ export declare type MercuryTeamAllocationEntry = {
14471
+ __typename?: 'MercuryTeamAllocationEntry';
14472
+ initiativeId: Scalars['String'];
14473
+ craftTypeId: Scalars['ID'];
14474
+ value?: Maybe<Scalars['Float']>;
14475
+ };
14476
+ export declare type MercuryTeamAllocationEntryInput = {
14477
+ initiativeId: Scalars['String'];
14478
+ craftTypeId: Scalars['ID'];
14479
+ value?: Maybe<Scalars['Float']>;
14480
+ };
14481
+ export declare type MercuryTeamAllocationMutationPayload = Payload & {
14482
+ __typename?: 'MercuryTeamAllocationMutationPayload';
14483
+ teamAllocation: MercuryTeamAllocation;
14484
+ success: Scalars['Boolean'];
14485
+ errors?: Maybe<Array<MutationError>>;
14486
+ statusCode: Scalars['Int'];
14487
+ message: Scalars['String'];
14488
+ };
14416
14489
  export declare type MercuryTeamConnection = {
14417
14490
  __typename?: 'MercuryTeamConnection';
14418
14491
  edges?: Maybe<Array<Maybe<MercuryTeamEdge>>>;
@@ -18208,6 +18281,16 @@ export declare enum ShepherdActionType {
18208
18281
  Read = "READ",
18209
18282
  Update = "UPDATE"
18210
18283
  }
18284
+ export declare type ShepherdActivity = ShepherdResourceActivity;
18285
+ export declare type ShepherdActivityConnection = {
18286
+ __typename?: 'ShepherdActivityConnection';
18287
+ edges?: Maybe<Array<Maybe<ShepherdActivityEdge>>>;
18288
+ pageInfo: PageInfo;
18289
+ };
18290
+ export declare type ShepherdActivityEdge = {
18291
+ __typename?: 'ShepherdActivityEdge';
18292
+ node?: Maybe<ShepherdActivity>;
18293
+ };
18211
18294
  export declare type ShepherdActivityHighlight = {
18212
18295
  __typename?: 'ShepherdActivityHighlight';
18213
18296
  action?: Maybe<ShepherdActionType>;
@@ -18221,6 +18304,7 @@ export declare type ShepherdActivityHighlightInput = {
18221
18304
  subject?: Maybe<ShepherdSubjectInput>;
18222
18305
  time: ShepherdTimeInput;
18223
18306
  };
18307
+ export declare type ShepherdActivityResult = QueryError | ShepherdActivityConnection;
18224
18308
  export declare type ShepherdAlert = Node & {
18225
18309
  __typename?: 'ShepherdAlert';
18226
18310
  assignee?: Maybe<ShepherdUser>;
@@ -18268,6 +18352,7 @@ export declare enum ShepherdAlertTemplateType {
18268
18352
  ConfluencePageExports = "CONFLUENCE_PAGE_EXPORTS",
18269
18353
  ConfluenceSpaceExports = "CONFLUENCE_SPACE_EXPORTS",
18270
18354
  CreatedAuthPolicy = "CREATED_AUTH_POLICY",
18355
+ CreatedInstallation = "CREATED_INSTALLATION",
18271
18356
  CreatedPolicy = "CREATED_POLICY",
18272
18357
  CreatedSamlConfig = "CREATED_SAML_CONFIG",
18273
18358
  CreatedTunnel = "CREATED_TUNNEL",
@@ -18311,7 +18396,7 @@ export declare type ShepherdCreateAlertInput = {
18311
18396
  assignee?: Maybe<Scalars['ID']>;
18312
18397
  cloudId?: Maybe<Scalars['ID']>;
18313
18398
  highlight?: Maybe<ShepherdHighlightInput>;
18314
- orgId: Scalars['ID'];
18399
+ orgId?: Maybe<Scalars['ID']>;
18315
18400
  status?: Maybe<ShepherdAlertStatus>;
18316
18401
  template?: Maybe<ShepherdAlertTemplateType>;
18317
18402
  title: Scalars['String'];
@@ -18327,7 +18412,8 @@ export declare type ShepherdCreateEmailInput = {
18327
18412
  status?: Maybe<ShepherdSubscriptionStatus>;
18328
18413
  };
18329
18414
  export declare type ShepherdCreateExampleAlertInput = {
18330
- orgId: Scalars['ID'];
18415
+ cloudId?: Maybe<Scalars['ID']>;
18416
+ orgId?: Maybe<Scalars['ID']>;
18331
18417
  };
18332
18418
  export declare type ShepherdCreateExampleAlertPayload = Payload & {
18333
18419
  __typename?: 'ShepherdCreateExampleAlertPayload';
@@ -18460,6 +18546,7 @@ export declare type ShepherdOrganization = {
18460
18546
  export declare type ShepherdOrganizationResult = QueryError | ShepherdOrganization;
18461
18547
  export declare type ShepherdQuery = {
18462
18548
  __typename?: 'ShepherdQuery';
18549
+ shepherdActivity?: Maybe<ShepherdActivityResult>;
18463
18550
  shepherdAlert?: Maybe<ShepherdAlertResult>;
18464
18551
  shepherdAlerts?: Maybe<ShepherdAlertsResult>;
18465
18552
  shepherdAppInfo: ShepherdAppInfo;
@@ -18468,6 +18555,15 @@ export declare type ShepherdQuery = {
18468
18555
  shepherdSubscriptions?: Maybe<ShepherdSubscriptionsResult>;
18469
18556
  shepherdUser?: Maybe<ShepherdUser>;
18470
18557
  };
18558
+ export declare type ShepherdQueryShepherdActivityArgs = {
18559
+ actions?: Maybe<Array<Maybe<ShepherdActionType>>>;
18560
+ actor?: Maybe<Scalars['ID']>;
18561
+ after?: Maybe<Scalars['String']>;
18562
+ endTime?: Maybe<Scalars['DateTime']>;
18563
+ first: Scalars['Int'];
18564
+ startTime?: Maybe<Scalars['DateTime']>;
18565
+ subject?: Maybe<ShepherdSubjectInput>;
18566
+ };
18471
18567
  export declare type ShepherdQueryShepherdAlertArgs = {
18472
18568
  id: Scalars['ID'];
18473
18569
  };
@@ -18488,6 +18584,14 @@ export declare enum ShepherdQueryErrorType {
18488
18584
  NoProductAccess = "NO_PRODUCT_ACCESS",
18489
18585
  Unauthorized = "UNAUTHORIZED"
18490
18586
  }
18587
+ export declare type ShepherdResourceActivity = {
18588
+ __typename?: 'ShepherdResourceActivity';
18589
+ action: ShepherdActionType;
18590
+ actor: ShepherdUser;
18591
+ id?: Maybe<Scalars['String']>;
18592
+ resourceAri: Scalars['String'];
18593
+ time: Scalars['DateTime'];
18594
+ };
18491
18595
  export declare type ShepherdSlackEdge = ShepherdSubscriptionEdge & {
18492
18596
  __typename?: 'ShepherdSlackEdge';
18493
18597
  cursor?: Maybe<Scalars['String']>;