@forge/cli-shared 3.13.0 → 3.14.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @forge/cli-shared
2
2
 
3
+ ## 3.14.0-next.0
4
+
5
+ ### Minor Changes
6
+
7
+ - fb00b34f: CLI selects bundler based on runtime type specified in manifest
8
+
3
9
  ## 3.13.0
4
10
 
5
11
  ### Minor Changes
@@ -3,6 +3,7 @@ import { FileSystemReader, FileSystemWriter } from '../file-system';
3
3
  import { ConfigReader, ConfigWriter } from './';
4
4
  import { ManifestSchema, Resources } from '@forge/manifest';
5
5
  import { UserError } from '../shared';
6
+ import { RuntimeType } from '../runtimes';
6
7
  export declare class ResourceDefinitionMissingError extends UserError {
7
8
  constructor(resources: string[]);
8
9
  }
@@ -27,6 +28,7 @@ export declare class ConfigFile implements ConfigReader, ConfigWriter, ConfigInt
27
28
  readConfig(): Promise<ManifestSchema>;
28
29
  readConfigToDocument(): Promise<Document.Parsed | undefined>;
29
30
  snapshotsEnabled(): Promise<boolean>;
31
+ runtimeType(): Promise<RuntimeType>;
30
32
  private makeManifestUnique;
31
33
  prependAppNameToModules(name: string): Promise<void>;
32
34
  writeToConfigFile<K extends string, V extends object>(configKey: K, config: V): Promise<void>;
@@ -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,EAAW,cAAc,EAAE,SAAS,EAAkB,MAAM,iBAAiB,CAAC;AAGrF,OAAO,EAAE,SAAS,EAAmB,MAAM,WAAW,CAAC;AACvD,qBA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Ae1E,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"}
@@ -10,6 +10,7 @@ const case_1 = tslib_1.__importDefault(require("case"));
10
10
  const config_1 = require("./config");
11
11
  const url_1 = require("url");
12
12
  const shared_1 = require("../shared");
13
+ const runtimes_1 = require("../runtimes");
13
14
  class ResourceDefinitionMissingError extends shared_1.UserError {
14
15
  constructor(resources) {
15
16
  super(ui_1.Text.error.resourceDefinitionMissing(resources));
@@ -62,6 +63,12 @@ class ConfigFile {
62
63
  const entry = (_b = (_a = config.app) === null || _a === void 0 ? void 0 : _a.runtime) === null || _b === void 0 ? void 0 : _b.snapshots;
63
64
  return entry || entry === undefined;
64
65
  }
66
+ async runtimeType() {
67
+ var _a, _b;
68
+ const config = await this.readConfig();
69
+ const runtimeName = (_b = (_a = config.app) === null || _a === void 0 ? void 0 : _a.runtime) === null || _b === void 0 ? void 0 : _b.name;
70
+ return (0, runtimes_1.getRuntimeType)(runtimeName);
71
+ }
65
72
  makeManifestUnique(modules, appName) {
66
73
  const actualModules = {};
67
74
  for (const [moduleKey, moduleArray] of Object.entries(modules)) {
@@ -8334,7 +8334,8 @@ export declare type ForgeAuditLogEdge = {
8334
8334
  };
8335
8335
  export declare enum ForgeAuditLogsActionType {
8336
8336
  ContributorAdded = "CONTRIBUTOR_ADDED",
8337
- ContributorRemoved = "CONTRIBUTOR_REMOVED"
8337
+ ContributorRemoved = "CONTRIBUTOR_REMOVED",
8338
+ OwnershipTransferred = "OWNERSHIP_TRANSFERRED"
8338
8339
  }
8339
8340
  export declare type ForgeAuditLogsAppContributor = {
8340
8341
  __typename?: 'ForgeAuditLogsAppContributor';
@@ -11076,6 +11077,13 @@ export declare type JiraDeleteShortcutInput = {
11076
11077
  projectId: Scalars['ID'];
11077
11078
  shortcutId: Scalars['ID'];
11078
11079
  };
11080
+ export declare type JiraDeploymentApp = {
11081
+ __typename?: 'JiraDeploymentApp';
11082
+ appKey: Scalars['String'];
11083
+ };
11084
+ export declare type JiraDeploymentAppInput = {
11085
+ appKey: Scalars['String'];
11086
+ };
11079
11087
  export declare enum JiraDeploymentsFeaturePrecondition {
11080
11088
  NotAvailable = "NOT_AVAILABLE",
11081
11089
  DeploymentsEmptyState = "DEPLOYMENTS_EMPTY_STATE",
@@ -11143,6 +11151,7 @@ export declare type JiraDevOpsMutation = {
11143
11151
  __typename?: 'JiraDevOpsMutation';
11144
11152
  optoutOfDevOpsIssuePanelNotConnectedState?: Maybe<JiraOptoutDevOpsIssuePanelNotConnectedPayload>;
11145
11153
  dismissDevOpsIssuePanelBanner?: Maybe<JiraDismissDevOpsIssuePanelBannerPayload>;
11154
+ setProjectSelectedDeploymentAppsProperty?: Maybe<JiraSetProjectSelectedDeploymentAppsPropertyPayload>;
11146
11155
  };
11147
11156
  export declare type JiraDevOpsMutationOptoutOfDevOpsIssuePanelNotConnectedStateArgs = {
11148
11157
  input: JiraOptoutDevOpsIssuePanelNotConnectedInput;
@@ -11150,6 +11159,9 @@ export declare type JiraDevOpsMutationOptoutOfDevOpsIssuePanelNotConnectedStateA
11150
11159
  export declare type JiraDevOpsMutationDismissDevOpsIssuePanelBannerArgs = {
11151
11160
  input: JiraDismissDevOpsIssuePanelBannerInput;
11152
11161
  };
11162
+ export declare type JiraDevOpsMutationSetProjectSelectedDeploymentAppsPropertyArgs = {
11163
+ input: JiraSetProjectSelectedDeploymentAppsPropertyInput;
11164
+ };
11153
11165
  export declare type JiraDevOpsProvider = {
11154
11166
  displayName?: Maybe<Scalars['String']>;
11155
11167
  webUrl?: Maybe<Scalars['URL']>;
@@ -13228,7 +13240,6 @@ export declare type JiraMutation = {
13228
13240
  assignRelatedWorkToUser?: Maybe<JiraAssignRelatedWorkPayload>;
13229
13241
  linkIssueToVersionRelatedWork?: Maybe<JiraLinkIssueToVersionRelatedWorkPayload>;
13230
13242
  jiraFilterMutation?: Maybe<JiraFilterMutation>;
13231
- setUserBroadcastMessageDismissed?: Maybe<JiraUserBroadcastMessageActionPayload>;
13232
13243
  setEntityIsFavourite?: Maybe<JiraSetIsFavouritePayload>;
13233
13244
  bulkCreateRequestTypeFromTemplate?: Maybe<JiraServiceManagementCreateRequestTypeFromTemplatePayload>;
13234
13245
  grantGlobalPermission?: Maybe<JiraGlobalPermissionAddGroupGrantPayload>;
@@ -13339,10 +13350,6 @@ export declare type JiraMutationAssignRelatedWorkToUserArgs = {
13339
13350
  export declare type JiraMutationLinkIssueToVersionRelatedWorkArgs = {
13340
13351
  input: JiraLinkIssueToVersionRelatedWorkInput;
13341
13352
  };
13342
- export declare type JiraMutationSetUserBroadcastMessageDismissedArgs = {
13343
- cloudId: Scalars['ID'];
13344
- id: Scalars['ID'];
13345
- };
13346
13353
  export declare type JiraMutationSetEntityIsFavouriteArgs = {
13347
13354
  input: JiraSetIsFavouriteInput;
13348
13355
  };
@@ -14039,6 +14046,7 @@ export declare type JiraProject = Node & {
14039
14046
  opsgenieTeamsAvailableToLinkWith?: Maybe<OpsgenieTeamConnection>;
14040
14047
  suggestedDriversForJiraVersion?: Maybe<JiraVersionDriverConnection>;
14041
14048
  suggestedApproversForJiraVersion?: Maybe<JiraVersionSuggestedApproverConnection>;
14049
+ selectedDeploymentAppsProperty?: Maybe<Array<JiraDeploymentApp>>;
14042
14050
  softwareBoards?: Maybe<BoardScopeConnection>;
14043
14051
  confluenceSpaceRelationships?: Maybe<JiraProjectAndConfluenceSpaceRelationshipConnection>;
14044
14052
  };
@@ -14514,7 +14522,6 @@ export declare type JiraQuery = {
14514
14522
  filter?: Maybe<JiraFilter>;
14515
14523
  favouriteFilters?: Maybe<JiraFilterConnection>;
14516
14524
  systemFilters?: Maybe<JiraSystemFilterConnection>;
14517
- allJiraUserBroadcastMessages?: Maybe<JiraUserBroadcastMessageConnection>;
14518
14525
  devOpsProviders?: Maybe<Array<Maybe<JiraDevOpsProvider>>>;
14519
14526
  issueContainersByType?: Maybe<JiraIssueItemContainersResult>;
14520
14527
  issueContainersByTypeByKey?: Maybe<JiraIssueItemContainersResult>;
@@ -14734,13 +14741,6 @@ export declare type JiraQuerySystemFiltersArgs = {
14734
14741
  last?: Maybe<Scalars['Int']>;
14735
14742
  before?: Maybe<Scalars['String']>;
14736
14743
  };
14737
- export declare type JiraQueryAllJiraUserBroadcastMessagesArgs = {
14738
- cloudId: Scalars['ID'];
14739
- first?: Maybe<Scalars['Int']>;
14740
- last?: Maybe<Scalars['Int']>;
14741
- after?: Maybe<Scalars['String']>;
14742
- before?: Maybe<Scalars['String']>;
14743
- };
14744
14744
  export declare type JiraQueryDevOpsProvidersArgs = {
14745
14745
  cloudId: Scalars['ID'];
14746
14746
  filter?: Maybe<Array<JiraDevOpsCapability>>;
@@ -15919,6 +15919,16 @@ export declare type JiraSetIsFavouritePayload = Payload & {
15919
15919
  errors?: Maybe<Array<MutationError>>;
15920
15920
  favouriteValue?: Maybe<JiraFavouriteValue>;
15921
15921
  };
15922
+ export declare type JiraSetProjectSelectedDeploymentAppsPropertyInput = {
15923
+ projectId: Scalars['ID'];
15924
+ deploymentApps?: Maybe<Array<JiraDeploymentAppInput>>;
15925
+ };
15926
+ export declare type JiraSetProjectSelectedDeploymentAppsPropertyPayload = Payload & {
15927
+ __typename?: 'JiraSetProjectSelectedDeploymentAppsPropertyPayload';
15928
+ success: Scalars['Boolean'];
15929
+ errors?: Maybe<Array<MutationError>>;
15930
+ deploymentApps?: Maybe<Array<JiraDeploymentApp>>;
15931
+ };
15922
15932
  export declare type JiraShareableEntityAnonymousAccessGrant = {
15923
15933
  __typename?: 'JiraShareableEntityAnonymousAccessGrant';
15924
15934
  type?: Maybe<JiraShareableEntityGrant>;
@@ -16637,30 +16647,6 @@ export declare type JiraUser = {
16637
16647
  avatarUrl?: Maybe<Scalars['String']>;
16638
16648
  email?: Maybe<Scalars['String']>;
16639
16649
  };
16640
- export declare type JiraUserBroadcastMessage = Node & {
16641
- __typename?: 'JiraUserBroadcastMessage';
16642
- id: Scalars['ID'];
16643
- shouldDisplay?: Maybe<Scalars['Boolean']>;
16644
- isDismissed?: Maybe<Scalars['Boolean']>;
16645
- isUserTargeted?: Maybe<Scalars['Boolean']>;
16646
- };
16647
- export declare type JiraUserBroadcastMessageActionPayload = Payload & {
16648
- __typename?: 'JiraUserBroadcastMessageActionPayload';
16649
- userBroadcastMessage?: Maybe<JiraUserBroadcastMessage>;
16650
- success: Scalars['Boolean'];
16651
- errors?: Maybe<Array<MutationError>>;
16652
- };
16653
- export declare type JiraUserBroadcastMessageConnection = HasTotal & HasPageInfo & {
16654
- __typename?: 'JiraUserBroadcastMessageConnection';
16655
- totalCount?: Maybe<Scalars['Int']>;
16656
- pageInfo: PageInfo;
16657
- edges?: Maybe<Array<Maybe<JiraUserBroadcastMessageEdge>>>;
16658
- };
16659
- export declare type JiraUserBroadcastMessageEdge = {
16660
- __typename?: 'JiraUserBroadcastMessageEdge';
16661
- node?: Maybe<JiraUserBroadcastMessage>;
16662
- cursor: Scalars['String'];
16663
- };
16664
16650
  export declare type JiraUserConnection = {
16665
16651
  __typename?: 'JiraUserConnection';
16666
16652
  pageInfo: PageInfo;
@@ -25547,6 +25533,12 @@ export declare type VirtualAgentDeleteIntentRuleProjectionPayload = Payload & {
25547
25533
  success: Scalars['Boolean'];
25548
25534
  errors?: Maybe<Array<MutationError>>;
25549
25535
  };
25536
+ export declare type VirtualAgentFeatures = {
25537
+ __typename?: 'VirtualAgentFeatures';
25538
+ isVirtualAgentAvailable?: Maybe<Scalars['Boolean']>;
25539
+ isAiEnabledInAdminHub?: Maybe<Scalars['Boolean']>;
25540
+ };
25541
+ export declare type VirtualAgentFeaturesResult = VirtualAgentFeatures | VirtualAgentQueryError;
25550
25542
  export declare type VirtualAgentFlowEditor = Node & {
25551
25543
  __typename?: 'VirtualAgentFlowEditor';
25552
25544
  id: Scalars['ID'];
@@ -25758,6 +25750,7 @@ export declare type VirtualAgentQueryApi = {
25758
25750
  virtualAgentConfigurationByProjectId?: Maybe<VirtualAgentConfigurationResult>;
25759
25751
  intentRuleProjections?: Maybe<VirtualAgentIntentRuleProjectionsConnection>;
25760
25752
  validateRequestType?: Maybe<VirtualAgentRequestTypeConnectionStatus>;
25753
+ virtualAgentFeatures?: Maybe<VirtualAgentFeaturesResult>;
25761
25754
  intentTemplatesByProjectId?: Maybe<VirtualAgentIntentTemplatesConnection>;
25762
25755
  };
25763
25756
  export declare type VirtualAgentQueryApiVirtualAgentConfigurationByProjectIdArgs = {
@@ -25772,6 +25765,9 @@ export declare type VirtualAgentQueryApiValidateRequestTypeArgs = {
25772
25765
  jiraProjectId: Scalars['ID'];
25773
25766
  requestTypeId: Scalars['String'];
25774
25767
  };
25768
+ export declare type VirtualAgentQueryApiVirtualAgentFeaturesArgs = {
25769
+ cloudId: Scalars['ID'];
25770
+ };
25775
25771
  export declare type VirtualAgentQueryApiIntentTemplatesByProjectIdArgs = {
25776
25772
  jiraProjectId: Scalars['ID'];
25777
25773
  first?: Maybe<Scalars['Int']>;