@forge/cli-shared 3.8.0-next.5 → 3.8.0-next.6

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,11 @@
1
1
  # @forge/cli-shared
2
2
 
3
+ ## 3.8.0-next.6
4
+
5
+ ### Minor Changes
6
+
7
+ - 149ebb5: Introduced command to list custom entities indexes
8
+
3
9
  ## 3.8.0-next.5
4
10
 
5
11
  ### Patch Changes
@@ -0,0 +1,18 @@
1
+ import { AppEnvironmentType, GraphQLClient } from './index';
2
+ export interface AppOauthClientDetails {
3
+ appAri: string;
4
+ name: string;
5
+ environmentType: AppEnvironmentType;
6
+ environmentKey: string;
7
+ oauthClientId: string;
8
+ environmentId: string;
9
+ }
10
+ export interface AppOauthClientIdClient {
11
+ getAppOauthClientIdDetails: (appId: string, environmentKey: string) => Promise<AppOauthClientDetails>;
12
+ }
13
+ export declare class AppOauthClientGraphqlClient implements AppOauthClientIdClient {
14
+ private readonly graphqlClient;
15
+ constructor(graphqlClient: GraphQLClient);
16
+ getAppOauthClientIdDetails(appAri: string, environmentKey: string): Promise<AppOauthClientDetails>;
17
+ }
18
+ //# sourceMappingURL=app-oauth-client-id-graphql-client.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app-oauth-client-id-graphql-client.d.ts","sourceRoot":"","sources":["../../src/graphql/app-oauth-client-id-graphql-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAA+C,MAAM,SAAS,CAAC;AAEzG,MAAM,WAAW,qBAAqB;IACpC,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,eAAe,EAAE,kBAAkB,CAAC;IACpC,cAAc,EAAE,MAAM,CAAC;IACvB,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,sBAAsB;IACrC,0BAA0B,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,KAAK,OAAO,CAAC,qBAAqB,CAAC,CAAC;CACvG;AAED,qBAAa,2BAA4B,YAAW,sBAAsB;IAC5D,OAAO,CAAC,QAAQ,CAAC,aAAa;gBAAb,aAAa,EAAE,aAAa;IAE5C,0BAA0B,CAAC,MAAM,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,qBAAqB,CAAC;CAsChH"}
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AppOauthClientGraphqlClient = void 0;
4
+ const index_1 = require("./index");
5
+ class AppOauthClientGraphqlClient {
6
+ constructor(graphqlClient) {
7
+ this.graphqlClient = graphqlClient;
8
+ }
9
+ async getAppOauthClientIdDetails(appAri, environmentKey) {
10
+ const query = `
11
+ query forge_cli_getAppOauthClientIdDetails($id: ID!, $key: String!) {
12
+ app(id: $id) {
13
+ name
14
+ environmentByKey(key: $key) {
15
+ id
16
+ type
17
+ oauthClient {
18
+ clientID
19
+ }
20
+ }
21
+ }
22
+ }
23
+ `;
24
+ const result = await this.graphqlClient.query(query, {
25
+ id: appAri,
26
+ key: environmentKey
27
+ });
28
+ if (!result.app) {
29
+ throw new index_1.MissingAppError();
30
+ }
31
+ if (!result.app.environmentByKey) {
32
+ throw new index_1.MissingAppEnvironmentError(environmentKey);
33
+ }
34
+ return {
35
+ name: result.app.name,
36
+ appAri,
37
+ environmentKey,
38
+ environmentType: result.app.environmentByKey.type,
39
+ environmentId: result.app.environmentByKey.id,
40
+ oauthClientId: result.app.environmentByKey.oauthClient.clientID
41
+ };
42
+ }
43
+ }
44
+ exports.AppOauthClientGraphqlClient = AppOauthClientGraphqlClient;
@@ -7325,6 +7325,7 @@ export declare type EcosystemQuery = {
7325
7325
  fortifiedMetrics?: Maybe<FortifiedMetricsQuery>;
7326
7326
  appEnvironmentsByOAuthClientIds?: Maybe<Array<AppEnvironment>>;
7327
7327
  forgeMetrics?: Maybe<ForgeMetricsQuery>;
7328
+ forgeAuditLogs?: Maybe<ForgeAuditLogsQuery>;
7328
7329
  forgeAlerts?: Maybe<ForgeAlertsQuery>;
7329
7330
  };
7330
7331
  export declare type EcosystemQueryUserGrantsArgs = {
@@ -7362,6 +7363,9 @@ export declare type EcosystemQueryAppEnvironmentsByOAuthClientIdsArgs = {
7362
7363
  export declare type EcosystemQueryForgeMetricsArgs = {
7363
7364
  appId: Scalars['ID'];
7364
7365
  };
7366
+ export declare type EcosystemQueryForgeAuditLogsArgs = {
7367
+ appId: Scalars['ID'];
7368
+ };
7365
7369
  export declare type EcosystemQueryForgeAlertsArgs = {
7366
7370
  appId: Scalars['ID'];
7367
7371
  };
@@ -7656,6 +7660,46 @@ export declare type ForgeAlertsUpdateConfigInput = {
7656
7660
  alertName?: Maybe<Scalars['String']>;
7657
7661
  triggerValue?: Maybe<Scalars['Float']>;
7658
7662
  };
7663
+ export declare type ForgeAuditLog = {
7664
+ __typename?: 'ForgeAuditLog';
7665
+ action: ForgeAuditLogsActionType;
7666
+ actorId: Scalars['ID'];
7667
+ actorName: Scalars['String'];
7668
+ contributor?: Maybe<User>;
7669
+ timestamp: Scalars['String'];
7670
+ };
7671
+ export declare type ForgeAuditLogEdge = {
7672
+ __typename?: 'ForgeAuditLogEdge';
7673
+ cursor: Scalars['String'];
7674
+ node?: Maybe<ForgeAuditLog>;
7675
+ };
7676
+ export declare enum ForgeAuditLogsActionType {
7677
+ ContributorAdded = "CONTRIBUTOR_ADDED",
7678
+ ContributorRemoved = "CONTRIBUTOR_REMOVED"
7679
+ }
7680
+ export declare type ForgeAuditLogsConnection = {
7681
+ __typename?: 'ForgeAuditLogsConnection';
7682
+ edges: Array<ForgeAuditLogEdge>;
7683
+ nodes: Array<ForgeAuditLog>;
7684
+ pageInfo: PageInfo;
7685
+ };
7686
+ export declare type ForgeAuditLogsQuery = {
7687
+ __typename?: 'ForgeAuditLogsQuery';
7688
+ appId: Scalars['ID'];
7689
+ auditLogs?: Maybe<ForgeAuditLogsResult>;
7690
+ };
7691
+ export declare type ForgeAuditLogsQueryAuditLogsArgs = {
7692
+ input: ForgeAuditLogsQueryInput;
7693
+ };
7694
+ export declare type ForgeAuditLogsQueryInput = {
7695
+ startTime?: Maybe<Scalars['String']>;
7696
+ endTime?: Maybe<Scalars['String']>;
7697
+ contributorIds?: Maybe<Array<Scalars['ID']>>;
7698
+ actions?: Maybe<Array<ForgeAuditLogsActionType>>;
7699
+ after?: Maybe<Scalars['String']>;
7700
+ first?: Maybe<Scalars['Int']>;
7701
+ };
7702
+ export declare type ForgeAuditLogsResult = ForgeAuditLogsConnection | QueryError;
7659
7703
  export declare type ForgeContextToken = {
7660
7704
  __typename?: 'ForgeContextToken';
7661
7705
  jwt: Scalars['String'];
@@ -11293,6 +11337,7 @@ export declare type JiraJqlField = {
11293
11337
  __typename?: 'JiraJqlField';
11294
11338
  jqlTerm: Scalars['ID'];
11295
11339
  displayName?: Maybe<Scalars['String']>;
11340
+ type?: Maybe<Scalars['String']>;
11296
11341
  dataTypes?: Maybe<Array<Maybe<Scalars['String']>>>;
11297
11342
  allowedClauseTypes: Array<JiraJqlClauseType>;
11298
11343
  operators: Array<JiraJqlOperator>;
@@ -11870,7 +11915,11 @@ export declare type JiraMutation = {
11870
11915
  updateVersionDescription?: Maybe<JiraUpdateVersionPayload>;
11871
11916
  updateVersionStartDate?: Maybe<JiraUpdateVersionPayload>;
11872
11917
  updateVersionReleaseDate?: Maybe<JiraUpdateVersionPayload>;
11918
+ updateVersionReleasedStatus?: Maybe<JiraUpdateVersionPayload>;
11919
+ updateVersionArchivedStatus?: Maybe<JiraUpdateVersionPayload>;
11873
11920
  saveVersionIssueTableColumnHiddenState?: Maybe<JiraVersionIssueTableColumnHiddenStatePayload>;
11921
+ createJiraVersion?: Maybe<JiraUpdateVersionPayload>;
11922
+ updateJiraVersion?: Maybe<JiraUpdateVersionPayload>;
11874
11923
  replaceIssueSearchViewFieldSets?: Maybe<JiraIssueSearchViewPayload>;
11875
11924
  userPreferences?: Maybe<JiraUserPreferencesMutation>;
11876
11925
  updateReleaseNotesConfiguration?: Maybe<JiraUpdateReleaseNotesConfigurationPayload>;
@@ -11942,9 +11991,21 @@ export declare type JiraMutationUpdateVersionStartDateArgs = {
11942
11991
  export declare type JiraMutationUpdateVersionReleaseDateArgs = {
11943
11992
  input: JiraUpdateVersionReleaseDateInput;
11944
11993
  };
11994
+ export declare type JiraMutationUpdateVersionReleasedStatusArgs = {
11995
+ input: JiraUpdateVersionReleasedStatusInput;
11996
+ };
11997
+ export declare type JiraMutationUpdateVersionArchivedStatusArgs = {
11998
+ input: JiraUpdateVersionArchivedStatusInput;
11999
+ };
11945
12000
  export declare type JiraMutationSaveVersionIssueTableColumnHiddenStateArgs = {
11946
12001
  input: JiraVersionIssueTableColumnHiddenStateInput;
11947
12002
  };
12003
+ export declare type JiraMutationCreateJiraVersionArgs = {
12004
+ input: JiraVersionCreateMutationInput;
12005
+ };
12006
+ export declare type JiraMutationUpdateJiraVersionArgs = {
12007
+ input: JiraVersionUpdateMutationInput;
12008
+ };
11948
12009
  export declare type JiraMutationReplaceIssueSearchViewFieldSetsArgs = {
11949
12010
  id: Scalars['ID'];
11950
12011
  input: JiraReplaceIssueSearchViewFieldSetsInput;
@@ -12614,6 +12675,7 @@ export declare type JiraProject = Node & {
12614
12675
  navigationMetadata?: Maybe<JiraProjectNavigationMetadata>;
12615
12676
  action?: Maybe<JiraProjectAction>;
12616
12677
  virtualAgentConfiguration?: Maybe<VirtualAgentConfigurationResult>;
12678
+ virtualAgentProjectSettings?: Maybe<VirtualAgentProjectSettingsResult>;
12617
12679
  isFavourite?: Maybe<Scalars['Boolean']>;
12618
12680
  favouriteValue?: Maybe<JiraFavouriteValue>;
12619
12681
  lead?: Maybe<User>;
@@ -13085,6 +13147,7 @@ export declare type JiraQuery = {
13085
13147
  resourceUsageMetric?: Maybe<JiraResourceUsageMetric>;
13086
13148
  resourceUsageMetrics?: Maybe<JiraResourceUsageMetricConnection>;
13087
13149
  userPreferences?: Maybe<JiraUserPreferences>;
13150
+ jsmProjectTeamType?: Maybe<JiraServiceManagementProjectTeamType>;
13088
13151
  timeTrackingSettings?: Maybe<JiraGlobalTimeTrackingSettings>;
13089
13152
  filter?: Maybe<JiraFilter>;
13090
13153
  favouriteFilters?: Maybe<JiraFilterConnection>;
@@ -13267,6 +13330,9 @@ export declare type JiraQueryResourceUsageMetricsArgs = {
13267
13330
  export declare type JiraQueryUserPreferencesArgs = {
13268
13331
  cloudId: Scalars['ID'];
13269
13332
  };
13333
+ export declare type JiraQueryJsmProjectTeamTypeArgs = {
13334
+ projectId: Scalars['ID'];
13335
+ };
13270
13336
  export declare type JiraQueryTimeTrackingSettingsArgs = {
13271
13337
  cloudId: Scalars['ID'];
13272
13338
  };
@@ -14261,6 +14327,10 @@ export declare type JiraServiceManagementProjectNavigationMetadata = {
14261
14327
  queueId: Scalars['ID'];
14262
14328
  queueName: Scalars['String'];
14263
14329
  };
14330
+ export declare type JiraServiceManagementProjectTeamType = {
14331
+ __typename?: 'JiraServiceManagementProjectTeamType';
14332
+ teamType?: Maybe<Scalars['String']>;
14333
+ };
14264
14334
  export declare type JiraServiceManagementRequestFeedbackField = Node & JiraIssueField & JiraIssueFieldConfiguration & JiraUserIssueFieldConfiguration & {
14265
14335
  __typename?: 'JiraServiceManagementRequestFeedbackField';
14266
14336
  id: Scalars['ID'];
@@ -15064,6 +15134,10 @@ export declare type JiraUpdateUrlFieldInput = {
15064
15134
  id: Scalars['ID'];
15065
15135
  operation: JiraUrlFieldOperationInput;
15066
15136
  };
15137
+ export declare type JiraUpdateVersionArchivedStatusInput = {
15138
+ id: Scalars['ID'];
15139
+ isArchived: Scalars['Boolean'];
15140
+ };
15067
15141
  export declare type JiraUpdateVersionDescriptionInput = {
15068
15142
  id: Scalars['ID'];
15069
15143
  description?: Maybe<Scalars['String']>;
@@ -15095,6 +15169,10 @@ export declare type JiraUpdateVersionReleaseDateInput = {
15095
15169
  id: Scalars['ID'];
15096
15170
  releaseDate?: Maybe<Scalars['DateTime']>;
15097
15171
  };
15172
+ export declare type JiraUpdateVersionReleasedStatusInput = {
15173
+ id: Scalars['ID'];
15174
+ isReleased: Scalars['Boolean'];
15175
+ };
15098
15176
  export declare type JiraUpdateVersionStartDateInput = {
15099
15177
  id: Scalars['ID'];
15100
15178
  startDate?: Maybe<Scalars['DateTime']>;
@@ -15312,6 +15390,14 @@ export declare type JiraVersionConnection = {
15312
15390
  edges?: Maybe<Array<Maybe<JiraVersionEdge>>>;
15313
15391
  errors?: Maybe<Array<QueryError>>;
15314
15392
  };
15393
+ export declare type JiraVersionCreateMutationInput = {
15394
+ projectId: Scalars['ID'];
15395
+ name: Scalars['String'];
15396
+ description?: Maybe<Scalars['String']>;
15397
+ startDate?: Maybe<Scalars['DateTime']>;
15398
+ releaseDate?: Maybe<Scalars['DateTime']>;
15399
+ driver?: Maybe<Scalars['ID']>;
15400
+ };
15315
15401
  export declare type JiraVersionDetailPage = {
15316
15402
  __typename?: 'JiraVersionDetailPage';
15317
15403
  warningConfig?: Maybe<JiraVersionWarningConfig>;
@@ -15474,6 +15560,14 @@ export declare enum JiraVersionStatus {
15474
15560
  Unreleased = "UNRELEASED",
15475
15561
  Archived = "ARCHIVED"
15476
15562
  }
15563
+ export declare type JiraVersionUpdateMutationInput = {
15564
+ id: Scalars['ID'];
15565
+ name: Scalars['String'];
15566
+ description?: Maybe<Scalars['String']>;
15567
+ startDate?: Maybe<Scalars['DateTime']>;
15568
+ releaseDate?: Maybe<Scalars['DateTime']>;
15569
+ driver?: Maybe<Scalars['ID']>;
15570
+ };
15477
15571
  export declare type JiraVersionUpdatedWarningConfigInput = {
15478
15572
  isOpenPullRequestEnabled?: Maybe<Scalars['Boolean']>;
15479
15573
  isOpenReviewEnabled?: Maybe<Scalars['Boolean']>;
@@ -19215,6 +19309,7 @@ export declare enum RateLimitingCurrency {
19215
19309
  ForgeMetricsCurrency = "FORGE_METRICS_CURRENCY",
19216
19310
  DevopsServiceReadCurrency = "DEVOPS_SERVICE_READ_CURRENCY",
19217
19311
  DevopsServiceWriteCurrency = "DEVOPS_SERVICE_WRITE_CURRENCY",
19312
+ ForgeAuditLogsCurrency = "FORGE_AUDIT_LOGS_CURRENCY",
19218
19313
  HelpCenterCurrency = "HELP_CENTER_CURRENCY",
19219
19314
  ForgeAlertsCurrency = "FORGE_ALERTS_CURRENCY"
19220
19315
  }
@@ -22540,9 +22635,7 @@ export declare type TownsquareQueryApi = {
22540
22635
  project?: Maybe<TownsquareProject>;
22541
22636
  goal?: Maybe<TownsquareGoal>;
22542
22637
  projectsByAri?: Maybe<Array<Maybe<TownsquareProject>>>;
22543
- projectByKey?: Maybe<TownsquareProject>;
22544
22638
  goalsByAri?: Maybe<Array<Maybe<TownsquareGoal>>>;
22545
- goalByKey?: Maybe<TownsquareGoal>;
22546
22639
  commentsByAri?: Maybe<Array<Maybe<TownsquareComment>>>;
22547
22640
  projectSearch?: Maybe<TownsquareProjectConnection>;
22548
22641
  goalSearch?: Maybe<TownsquareGoalConnection>;
@@ -22558,15 +22651,9 @@ export declare type TownsquareQueryApiGoalArgs = {
22558
22651
  export declare type TownsquareQueryApiProjectsByAriArgs = {
22559
22652
  aris?: Maybe<Array<Maybe<Scalars['String']>>>;
22560
22653
  };
22561
- export declare type TownsquareQueryApiProjectByKeyArgs = {
22562
- key: Scalars['String'];
22563
- };
22564
22654
  export declare type TownsquareQueryApiGoalsByAriArgs = {
22565
22655
  aris?: Maybe<Array<Maybe<Scalars['String']>>>;
22566
22656
  };
22567
- export declare type TownsquareQueryApiGoalByKeyArgs = {
22568
- key: Scalars['String'];
22569
- };
22570
22657
  export declare type TownsquareQueryApiCommentsByAriArgs = {
22571
22658
  aris?: Maybe<Array<Maybe<Scalars['String']>>>;
22572
22659
  };
@@ -22649,7 +22736,7 @@ export declare type TrelloBoard = {
22649
22736
  id: Scalars['ID'];
22650
22737
  lastActivityAt?: Maybe<Scalars['DateTime']>;
22651
22738
  name: Scalars['String'];
22652
- objectId: Scalars['String'];
22739
+ objectId: Scalars['ID'];
22653
22740
  prefs: TrelloBoardPrefs;
22654
22741
  shortLink: Scalars['TrelloShortLink'];
22655
22742
  viewer?: Maybe<TrelloBoardViewer>;
@@ -23613,14 +23700,32 @@ export declare type VirtualAgentMutationApiHandleFlowEditorActionsArgs = {
23613
23700
  virtualAgentFlowEditorId: Scalars['ID'];
23614
23701
  input: VirtualAgentFlowEditorActionInput;
23615
23702
  };
23703
+ export declare type VirtualAgentProjectSettings = {
23704
+ __typename?: 'VirtualAgentProjectSettings';
23705
+ halpConnectivityState?: Maybe<Scalars['String']>;
23706
+ setupLink?: Maybe<Scalars['String']>;
23707
+ triageChannel?: Maybe<VirtualAgentSlackChannel>;
23708
+ testChannel?: Maybe<VirtualAgentSlackChannel>;
23709
+ errorMessage?: Maybe<Scalars['String']>;
23710
+ };
23711
+ export declare type VirtualAgentProjectSettingsQueryError = {
23712
+ __typename?: 'VirtualAgentProjectSettingsQueryError';
23713
+ message?: Maybe<Scalars['String']>;
23714
+ extensions?: Maybe<Array<QueryErrorExtension>>;
23715
+ };
23716
+ export declare type VirtualAgentProjectSettingsResult = VirtualAgentProjectSettings | VirtualAgentProjectSettingsQueryError;
23616
23717
  export declare type VirtualAgentQueryApi = {
23617
23718
  __typename?: 'VirtualAgentQueryApi';
23618
23719
  virtualAgentConfigurationByProjectId?: Maybe<VirtualAgentConfigurationResult>;
23720
+ virtualAgentProjectSettingsByProjectId?: Maybe<VirtualAgentProjectSettingsResult>;
23619
23721
  intentRuleProjections?: Maybe<VirtualAgentIntentRuleProjectionsConnection>;
23620
23722
  };
23621
23723
  export declare type VirtualAgentQueryApiVirtualAgentConfigurationByProjectIdArgs = {
23622
23724
  jiraProjectId: Scalars['ID'];
23623
23725
  };
23726
+ export declare type VirtualAgentQueryApiVirtualAgentProjectSettingsByProjectIdArgs = {
23727
+ jiraProjectId: Scalars['ID'];
23728
+ };
23624
23729
  export declare type VirtualAgentQueryApiIntentRuleProjectionsArgs = {
23625
23730
  first?: Maybe<Scalars['Int']>;
23626
23731
  after?: Maybe<Scalars['String']>;
@@ -23632,6 +23737,15 @@ export declare type VirtualAgentQueryError = {
23632
23737
  message?: Maybe<Scalars['String']>;
23633
23738
  extensions?: Maybe<Array<QueryErrorExtension>>;
23634
23739
  };
23740
+ export declare type VirtualAgentSlackChannel = {
23741
+ __typename?: 'VirtualAgentSlackChannel';
23742
+ id?: Maybe<Scalars['ID']>;
23743
+ slackChannelId?: Maybe<Scalars['String']>;
23744
+ channelName?: Maybe<Scalars['String']>;
23745
+ isVirtualAgentChannel?: Maybe<Scalars['Boolean']>;
23746
+ isVirtualAgentTestChannel?: Maybe<Scalars['Boolean']>;
23747
+ channelLink?: Maybe<Scalars['String']>;
23748
+ };
23635
23749
  export declare type VirtualAgentStatisticsPercentageChangeProjection = {
23636
23750
  __typename?: 'VirtualAgentStatisticsPercentageChangeProjection';
23637
23751
  traffic?: Maybe<Scalars['Float']>;