@forge/cli-shared 3.8.0-next.5 → 3.8.0-next.7
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 +17 -0
- package/out/graphql/app-oauth-client-id-graphql-client.d.ts +18 -0
- package/out/graphql/app-oauth-client-id-graphql-client.d.ts.map +1 -0
- package/out/graphql/app-oauth-client-id-graphql-client.js +44 -0
- package/out/graphql/graphql-types.d.ts +175 -60
- package/out/graphql/graphql-types.d.ts.map +1 -1
- package/out/graphql/graphql-types.js +11 -4
- package/out/graphql/index.d.ts +1 -0
- package/out/graphql/index.d.ts.map +1 -1
- package/out/graphql/index.js +1 -0
- package/out/service/feature-flag-service.d.ts +2 -0
- package/out/service/feature-flag-service.d.ts.map +1 -1
- package/out/service/feature-flag-service.js +4 -0
- package/out/ui/text.d.ts +23 -2
- package/out/ui/text.d.ts.map +1 -1
- package/out/ui/text.js +24 -2
- package/package.json +2 -2
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CompassRelationshipType = exports.CompassRelationshipDirection = exports.CompassQuerySortOrder = exports.CompassMetricDefinitionType = exports.CompassLinkType = exports.CompassLifecycleEventStage = exports.CompassIncidentEventState = exports.CompassIncidentEventSeverityLevel = exports.CompassFieldType = exports.CompassEventType = exports.CompassDeploymentEventState = exports.CompassDeploymentEventEnvironmentCategory = exports.CompassCustomEventIcon = exports.CompassCriteriaTextComparatorOptions = exports.CompassCriteriaNumberComparatorOptions = exports.CompassCriteriaBooleanComparatorOptions = exports.CompassComponentType = exports.CompassBuildEventState = exports.Classification = exports.CardHierarchyLevelEnumType = exports.BuiltinPolarisIdeaField = exports.BoardFeatureToggleStatus = exports.BoardFeatureStatus = exports.BitbucketPermission = exports.AtlassianProductHostingType = exports.AriGraphRelationshipsSortDirection = exports.AppTrustInformationState = exports.AppTaskState = exports.AppStoredEntityCondition = exports.AppStoredCustomEntityRangeCondition = exports.AppStoredCustomEntityFilterCondition = exports.AppSecurityPoliciesPermissionTypeExtension = exports.AppSecurityPoliciesPermissionType = exports.AppNetworkPermissionTypeExtension = exports.AppNetworkPermissionType = exports.AppEnvironmentType = exports.AppDeploymentStepStatus = exports.AppDeploymentStatus = exports.AppDeploymentEventLogLevel = exports.AppContributorRole = exports.ApiGroup = exports.ApiContext = exports.ActivityProduct = exports.ActivityObjectType = exports.ActivityEventType = exports.ActivitiesObjectType = exports.ActivitiesFilterType = exports.ActivitiesContainerType = exports.AccountStatus = exports.AcceptableResponse = void 0;
|
|
4
4
|
exports.EventMatchingStrategies = exports.EventKnownAvIs = exports.DevStatusActivity = exports.DevOpsToolSortOrder = exports.DevOpsToolIntegrationType = exports.DevOpsServiceRelationshipType = exports.DevOpsServiceAndRepositoryRelationshipSortBy = exports.DevOpsServiceAndJiraProjectRelationshipType = exports.DevOpsSecurityVulnerabilityStatus = exports.DevOpsSecurityVulnerabilitySeverity = exports.DevOpsRepositoryHostingProviderFilter = exports.DevOpsRelationshipCertaintyFilter = exports.DevOpsRelationshipCertainty = exports.DevOpsPullRequestStatus = exports.DevOpsPullRequestApprovalStatus = exports.DevOpsProviderType = exports.DevOpsMetricsRollupOption = exports.DevOpsMetricsResolutionUnit = exports.DevOpsMetricsCycleTimePhase = exports.DevOpsJiraProjectType = exports.DevOpsEnvironmentCategory = exports.DeploymentState = exports.DataResidencyResponse = exports.CustomEntityStatus = exports.CustomEntityIndexStatus = exports.CustomEntityAttributeType = exports.ContentPlatformSearchTypes = exports.ContentPlatformOperators = exports.ContentPlatformFieldNames = exports.ContentPlatformBooleanOperators = exports.ConfluenceUserType = exports.ConfluenceSpaceType = exports.ConfluenceSpaceStatus = exports.ConfluenceSpaceSettingEditorVersion = exports.ConfluencePageStatus = exports.ConfluenceOperationTarget = exports.ConfluenceOperationName = exports.ConfluenceMutationContentStatus = exports.ConfluenceInlineTaskStatus = exports.ConfluenceInlineCommentResolutionStatus = exports.ConfluenceContributionStatus = exports.ConfluenceContentType = exports.ConfluenceContentRepresentation = exports.ConfluenceCommentType = exports.ConfluenceCommentStatus = exports.ConfluenceCollaborativeEditingService = exports.ConfluenceBodyRepresentation = exports.ConfluenceBlogPostStatus = exports.ComponentSyncEventStatus = exports.CompassScorecardImportance = void 0;
|
|
5
|
-
exports.
|
|
6
|
-
exports.
|
|
7
|
-
exports.
|
|
8
|
-
exports.SourceBillingType = exports.UserInstallationRuleValue = exports.TownsquareTargetDateType = exports.TownsquareProjectStateValue = exports.TownsquareProjectSortEnum = exports.TownsquareGoalStateValue = exports.TownsquareGoalSortEnum = exports.TestingActivityEventType = exports.TeamState = exports.TeamSortOrder = exports.TeamSortField = exports.SwimlaneStrategy = exports.SupportRequestUserType = exports.SupportRequestStatusCategory = exports.SupportRequestQueryStatusCategory = exports.SupportRequestQueryOwnership = exports.SupportRequestNamedContactOperation = exports.SupportRequestFieldDataType = exports.SubscriptionEventSources = exports.SprintState = exports.SprintReportsEstimationStatisticType = exports.SortOrder = exports.SortDirection = exports.SoftwareCardsDestinationEnum = exports.ShepherdWebhookType = exports.ShepherdWebhookDestinationType = exports.ShepherdSubscriptionStatus = exports.ShepherdRateThresholdValue = exports.ShepherdQueryErrorType = exports.ShepherdMutationErrorType = exports.ShepherdDetectionScanningFrequency = exports.ShepherdAtlassianProduct = exports.ShepherdAlertTemplateType = exports.ShepherdAlertStatus = exports.ShepherdActionType = exports.SearchResultType = exports.SearchProjectType = void 0;
|
|
5
|
+
exports.JiraJqlSyntaxError = exports.JiraJqlOperator = exports.JiraJqlFunctionStatus = exports.JiraJqlClauseType = exports.JiraJqlBuilderMode = exports.JiraJqlAutocompleteType = exports.JiraJqlBuilderSearchMode = exports.JiraIssueViewTimestampDisplayMode = exports.JiraIssueViewAttachmentPanelViewMode = exports.JiraIssueViewActivityFeedSortOrder = exports.JiraIssueSearchFieldSetSelectedState = exports.JiraIssueNavigatorSearchLayout = exports.JiraIssueLinkDirection = exports.JiraIssueLifecycleState = exports.JiraIssueItemSystemContainerType = exports.JiraIssueItemLayoutItemLocationRuleType = exports.JiraIssueDeploymentEnvironmentState = exports.JiraInstallDeploymentsBannerPrecondition = exports.JiraHomePageType = exports.JiraGrantTypeKeyEnum = exports.JiraFavouriteType = exports.JiraDevOpsIssuePanelState = exports.JiraDevOpsIssuePanelBannerType = exports.JiraDevOpsCapability = exports.JiraDevInfoConfigErrorType = exports.JiraDeploymentsFeaturePrecondition = exports.JiraCmdbAttributeType = exports.JiraCascadingSelectOptionType = exports.JiraCannedResponseSortOrder = exports.JiraCannedResponseScope = exports.JiraAttachmentsPermissions = exports.JiraActionType = exports.IssueDevOpsPullRequestStatus = exports.IssueDevOpsDeploymentState = exports.IssueDevOpsDeploymentEnvironmentType = exports.IssueDevOpsCommitChangeType = exports.HelpObjectStoreJsmEntityType = exports.HelpObjectStoreHelpObjectType = exports.GrantCheckProduct = exports.FunctionTriggerType = exports.FortifiedMetricsResolutionUnit = exports.FormStatus = exports.ForgeMetricsSiteFilterCategory = exports.ForgeMetricsResolutionUnit = exports.ForgeMetricsGroupByDimensions = exports.ForgeMetricsDataType = exports.ForgeAuditLogsActionType = exports.ForgeAlertsStatus = exports.ForgeAlertsActivityType = exports.ExtensionContextsFilterType = void 0;
|
|
6
|
+
exports.MarketplaceBillingCycle = exports.MarketplaceAppVersionVisibility = exports.MarketplaceAppPermission = exports.MarketplaceAppPaymentModel = exports.LifecycleStage = exports.LicenseOverrideState = exports.JiraWatchesOperations = exports.JiraVotesOperations = exports.JiraVersionWarningConfigState = exports.JiraVersionWarningCategories = exports.JiraVersionStatus = exports.JiraVersionRelatedWorkType = exports.JiraVersionIssuesStatusCategories = exports.JiraVersionIssuesSortField = exports.JiraVersionIssuesFilter = exports.JiraVersionIssueTableColumn = exports.JiraTimeUnit = exports.JiraTimeFormat = exports.JiraStatusCategoryColor = exports.JiraSprintState = exports.JiraSingleValueFieldOperations = exports.JiraShareableEntityGrant = exports.JiraServiceManagementPractice = exports.JiraServiceManagementMajorIncident = exports.JiraServiceManagementCreateRequestTypeFromTemplateWorkflowInputType = exports.JiraServiceManagementCreateRequestTypeFromTemplateWorkflowAction = exports.JiraServiceManagementCreateRequestTypeFromTemplateRequestFormInputType = exports.JiraServiceManagementCommentVisibility = exports.JiraServiceManagementApprovalState = exports.JiraServiceManagementApprovalDecisionResponseType = exports.JiraReviewState = exports.JiraReleasesIssueReleaseStatusFilter = exports.JiraReleasesEpicReleaseStatusFilter = exports.JiraReleaseNotesIssueKeyConfig = exports.JiraPullRequestState = exports.JiraProjectType = exports.JiraProjectStyle = exports.JiraProjectStatus = exports.JiraProjectSortField = exports.JiraProjectShortcutType = exports.JiraProjectPermissionCategoryEnum = exports.JiraProjectDateTimeFormat = exports.JiraProjectAndRepositoryRelationshipSortBy = exports.JiraProjectActionType = exports.JiraPermissionType = exports.JiraPermissionTagEnum = exports.JiraPermissionMessageTypeEnum = exports.JiraMultiValueFieldOperations = exports.JiraLongRunningTaskStatus = exports.JiraJqlViewContext = void 0;
|
|
7
|
+
exports.SearchConfluenceRangeField = exports.SearchConfluenceDocumentStatus = exports.SearchBoardProductType = exports.Scope = exports.RoadmapVersionStatus = exports.RoadmapTimelineMode = exports.RoadmapSprintState = exports.RoadmapRankPosition = exports.RoadmapPaletteColor = exports.RoadmapLevelOneView = exports.RoadmapEpicView = exports.RoadmapChildIssuePlanningMode = exports.RateLimitingCurrency = exports.PrincipalType = exports.PolarisVisualizationType = exports.PolarisViewSortMode = exports.PolarisViewSetType = exports.PolarisViewLayoutType = exports.PolarisViewFilterOperator = exports.PolarisViewFilterKind = exports.PolarisViewFieldRollupType = exports.PolarisValueOperator = exports.PolarisTimelineMode = exports.PolarisSortOrder = exports.PolarisSnippetPropertyKind = exports.PolarisResolvedObjectAuthType = exports.PolarisRefreshError = exports.PolarisPlayKind = exports.PolarisFieldType = exports.PolarisCommentKind = exports.PlanModeDestination = exports.PartnerCurrency = exports.PartnerCloudLicenseType = exports.PartnerBtfLicenseType = exports.NadelHydrationTemplate = exports.MembershipState = exports.MembershipSetting = exports.MembershipRole = exports.MarketplaceProgramStatus = exports.MarketplacePricingTierType = exports.MarketplacePricingTierPolicy = exports.MarketplacePricingTierMode = exports.MarketplacePricingPlanStatus = exports.MarketplacePartnerType = exports.MarketplacePartnerTierType = exports.MarketplacePartnerSupportHolidayFrequency = exports.MarketplaceLocation = exports.MarketplaceListingStatus = exports.MarketplaceEntityStatus = exports.MarketplaceCloudFortifiedStatus = void 0;
|
|
8
|
+
exports.SourceBillingType = exports.UserInstallationRuleValue = exports.TownsquareTargetDateType = exports.TownsquareProjectStateValue = exports.TownsquareProjectSortEnum = exports.TownsquareGoalStateValue = exports.TownsquareGoalSortEnum = exports.TestingActivityEventType = exports.TeamState = exports.TeamSortOrder = exports.TeamSortField = exports.SwimlaneStrategy = exports.SupportRequestUserType = exports.SupportRequestStatusCategory = exports.SupportRequestQueryStatusCategory = exports.SupportRequestQueryOwnership = exports.SupportRequestNamedContactOperation = exports.SupportRequestFieldDataType = exports.SubscriptionEventSources = exports.SprintState = exports.SprintReportsEstimationStatisticType = exports.SortOrder = exports.SortDirection = exports.SoftwareCardsDestinationEnum = exports.ShepherdWebhookType = exports.ShepherdWebhookDestinationType = exports.ShepherdSubscriptionStatus = exports.ShepherdRateThresholdValue = exports.ShepherdQueryErrorType = exports.ShepherdMutationErrorType = exports.ShepherdDetectionScanningFrequency = exports.ShepherdAtlassianProduct = exports.ShepherdAlertTemplateType = exports.ShepherdAlertStatus = exports.ShepherdActionType = exports.SearchResultType = exports.SearchProjectType = exports.SearchContainerStatus = void 0;
|
|
9
9
|
var AcceptableResponse;
|
|
10
10
|
(function (AcceptableResponse) {
|
|
11
11
|
AcceptableResponse["NotApplicable"] = "NOT_APPLICABLE";
|
|
@@ -764,6 +764,11 @@ var ForgeAlertsStatus;
|
|
|
764
764
|
ForgeAlertsStatus["Firing"] = "FIRING";
|
|
765
765
|
ForgeAlertsStatus["Resolved"] = "RESOLVED";
|
|
766
766
|
})(ForgeAlertsStatus = exports.ForgeAlertsStatus || (exports.ForgeAlertsStatus = {}));
|
|
767
|
+
var ForgeAuditLogsActionType;
|
|
768
|
+
(function (ForgeAuditLogsActionType) {
|
|
769
|
+
ForgeAuditLogsActionType["ContributorAdded"] = "CONTRIBUTOR_ADDED";
|
|
770
|
+
ForgeAuditLogsActionType["ContributorRemoved"] = "CONTRIBUTOR_REMOVED";
|
|
771
|
+
})(ForgeAuditLogsActionType = exports.ForgeAuditLogsActionType || (exports.ForgeAuditLogsActionType = {}));
|
|
767
772
|
var ForgeMetricsDataType;
|
|
768
773
|
(function (ForgeMetricsDataType) {
|
|
769
774
|
ForgeMetricsDataType["DateTime"] = "DATE_TIME";
|
|
@@ -1144,6 +1149,7 @@ var JiraPermissionTagEnum;
|
|
|
1144
1149
|
var JiraPermissionType;
|
|
1145
1150
|
(function (JiraPermissionType) {
|
|
1146
1151
|
JiraPermissionType["BrowseProjects"] = "BROWSE_PROJECTS";
|
|
1152
|
+
JiraPermissionType["BulkChange"] = "BULK_CHANGE";
|
|
1147
1153
|
})(JiraPermissionType = exports.JiraPermissionType || (exports.JiraPermissionType = {}));
|
|
1148
1154
|
var JiraProjectActionType;
|
|
1149
1155
|
(function (JiraProjectActionType) {
|
|
@@ -1695,6 +1701,7 @@ var RateLimitingCurrency;
|
|
|
1695
1701
|
RateLimitingCurrency["ForgeMetricsCurrency"] = "FORGE_METRICS_CURRENCY";
|
|
1696
1702
|
RateLimitingCurrency["DevopsServiceReadCurrency"] = "DEVOPS_SERVICE_READ_CURRENCY";
|
|
1697
1703
|
RateLimitingCurrency["DevopsServiceWriteCurrency"] = "DEVOPS_SERVICE_WRITE_CURRENCY";
|
|
1704
|
+
RateLimitingCurrency["ForgeAuditLogsCurrency"] = "FORGE_AUDIT_LOGS_CURRENCY";
|
|
1698
1705
|
RateLimitingCurrency["HelpCenterCurrency"] = "HELP_CENTER_CURRENCY";
|
|
1699
1706
|
RateLimitingCurrency["ForgeAlertsCurrency"] = "FORGE_ALERTS_CURRENCY";
|
|
1700
1707
|
})(RateLimitingCurrency = exports.RateLimitingCurrency || (exports.RateLimitingCurrency = {}));
|
package/out/graphql/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/graphql/index.ts"],"names":[],"mappings":"AAEA,cAAc,kCAAkC,CAAC;AACjD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,WAAW,CAAC;AAC1B,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,0BAA0B,CAAC;AACzC,cAAc,iCAAiC,CAAC;AAChD,cAAc,sBAAsB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/graphql/index.ts"],"names":[],"mappings":"AAEA,cAAc,kCAAkC,CAAC;AACjD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,WAAW,CAAC;AAC1B,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,0BAA0B,CAAC;AACzC,cAAc,iCAAiC,CAAC;AAChD,cAAc,sBAAsB,CAAC;AACrC,cAAc,sCAAsC,CAAC"}
|
package/out/graphql/index.js
CHANGED
|
@@ -9,3 +9,4 @@ tslib_1.__exportStar(require("./graphql-types"), exports);
|
|
|
9
9
|
tslib_1.__exportStar(require("./minimal-graphql-runner"), exports);
|
|
10
10
|
tslib_1.__exportStar(require("./mutation-aware-graphql-client"), exports);
|
|
11
11
|
tslib_1.__exportStar(require("./get-mutation-error"), exports);
|
|
12
|
+
tslib_1.__exportStar(require("./app-oauth-client-id-graphql-client"), exports);
|
|
@@ -12,12 +12,14 @@ declare type FeatureFlagType = {
|
|
|
12
12
|
'forge-cli-enable-sentry': boolean;
|
|
13
13
|
'xls-do-not-automatically-add-read-me-scope': boolean;
|
|
14
14
|
'forge-cli-enable-concurrent-development': boolean;
|
|
15
|
+
'xis-allow-automatic-user-consent': boolean;
|
|
15
16
|
};
|
|
16
17
|
export declare type FeatureFlag = keyof FeatureFlagType;
|
|
17
18
|
export declare abstract class FeatureFlagReader {
|
|
18
19
|
abstract readFlag<F extends FeatureFlag>(flag: F): Promise<FeatureFlagType[F] | null>;
|
|
19
20
|
isNodeRuntime(): Promise<boolean>;
|
|
20
21
|
readMeScopeAddedByXLS(): Promise<boolean>;
|
|
22
|
+
isAutoConsentAllowed(): Promise<boolean>;
|
|
21
23
|
}
|
|
22
24
|
declare type ILaunchDarkly = Pick<LDClient, 'variation' | 'waitUntilReady'>;
|
|
23
25
|
declare type LaunchDarklyInitialize = (envKey: string, user: LDUser, options?: LDOptions) => ILaunchDarkly;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"feature-flag-service.d.ts","sourceRoot":"","sources":["../../src/service/feature-flag-service.ts"],"names":[],"mappings":"AAAA,OAAqB,EAAe,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AAKtG,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAyB/B,aAAK,eAAe,GAAG;IACrB,qBAAqB,EAAE,OAAO,GAAG,QAAQ,GAAG,QAAQ,GAAG,YAAY,CAAC;IACpE,2BAA2B,EAAE,MAAM,CAAC;IACpC,oBAAoB,EAAE,MAAM,CAAC;IAC7B,uBAAuB,EAAE,OAAO,CAAC;IACjC,yBAAyB,EAAE,OAAO,CAAC;IACnC,4CAA4C,EAAE,OAAO,CAAC;IACtD,yCAAyC,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"feature-flag-service.d.ts","sourceRoot":"","sources":["../../src/service/feature-flag-service.ts"],"names":[],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
|
17
17
|
const doNotAddReadMeScope = (_a = (await this.readFlag('xls-do-not-automatically-add-read-me-scope'))) !== null && _a !== void 0 ? _a : false;
|
|
18
18
|
return !doNotAddReadMeScope;
|
|
19
19
|
}
|
|
20
|
+
async isAutoConsentAllowed() {
|
|
21
|
+
var _a;
|
|
22
|
+
return (_a = (await this.readFlag('xis-allow-automatic-user-consent'))) !== null && _a !== void 0 ? _a : false;
|
|
23
|
+
}
|
|
20
24
|
}
|
|
21
25
|
exports.FeatureFlagReader = FeatureFlagReader;
|
|
22
26
|
var CLIENT_SIDE_ID;
|
package/out/ui/text.d.ts
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { URL } from 'url';
|
|
2
2
|
import { AppEnvironmentType } from '../graphql/graphql-types';
|
|
3
3
|
declare type EnvironmentToOption = (environment: string) => string;
|
|
4
|
+
export interface AddedScope {
|
|
5
|
+
name: string;
|
|
6
|
+
requiresInteractiveConsent?: boolean;
|
|
7
|
+
}
|
|
4
8
|
export declare const capitalise: (word: string) => string;
|
|
5
9
|
export declare const Text: {
|
|
6
10
|
error: {
|
|
@@ -271,6 +275,22 @@ export declare const Text: {
|
|
|
271
275
|
};
|
|
272
276
|
overview: string;
|
|
273
277
|
};
|
|
278
|
+
storage: {
|
|
279
|
+
cmd: {
|
|
280
|
+
desc: string;
|
|
281
|
+
};
|
|
282
|
+
};
|
|
283
|
+
entitiesIndexes: {
|
|
284
|
+
cmd: {
|
|
285
|
+
desc: string;
|
|
286
|
+
};
|
|
287
|
+
};
|
|
288
|
+
entitiesIndexesList: {
|
|
289
|
+
cmd: {
|
|
290
|
+
desc: string;
|
|
291
|
+
};
|
|
292
|
+
missingEntities: string;
|
|
293
|
+
};
|
|
274
294
|
contributors: {
|
|
275
295
|
desc: string;
|
|
276
296
|
};
|
|
@@ -373,6 +393,7 @@ export declare const Text: {
|
|
|
373
393
|
notFound: string;
|
|
374
394
|
};
|
|
375
395
|
outdatedInstallations: string;
|
|
396
|
+
listIndexes: (environment: string) => string;
|
|
376
397
|
egressURL: {
|
|
377
398
|
invalidURLError: (cause: string) => string;
|
|
378
399
|
tooManyURLCharactersError: (cause: string) => string;
|
|
@@ -389,7 +410,7 @@ export declare const Text: {
|
|
|
389
410
|
banner: string;
|
|
390
411
|
optionConfirmScopes: string;
|
|
391
412
|
optionUpgrade: string;
|
|
392
|
-
listScopes: (scopes:
|
|
413
|
+
listScopes: (scopes: AddedScope[]) => string;
|
|
393
414
|
listEgressAddresses: (egressAddresses: string[]) => string;
|
|
394
415
|
permissionsMismatch: (environment: string) => string;
|
|
395
416
|
multiProductScopesDetected: (productsToInstall: string[], productsToUpgrade: string[], site: string, environment: string, environmentToOption: EnvironmentToOption) => string;
|
|
@@ -429,7 +450,7 @@ export declare const Text: {
|
|
|
429
450
|
end: (displayTick: boolean) => string;
|
|
430
451
|
error: string;
|
|
431
452
|
};
|
|
432
|
-
listScopes: (scopes:
|
|
453
|
+
listScopes: (scopes: AddedScope[]) => string;
|
|
433
454
|
listEgressAddresses: (egressAddresses: string[]) => string;
|
|
434
455
|
permissionsMismatch: (environment: string) => string;
|
|
435
456
|
promptForPermissionsConfirmation: (permissionsMismatchInDevelopment: boolean) => string;
|
package/out/ui/text.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../src/ui/text.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAI1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAG9D,aAAK,mBAAmB,GAAG,CAAC,WAAW,EAAE,MAAM,KAAK,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../src/ui/text.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAI1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAG9D,aAA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Y3F,MAAM;;;;;;;qCAUS,MAAM;;;;;;;;;oCAWL,MAAM;;;;;;;;;;;;oCAYN,MAAM,WAAW,MAAM;kCAMzB,MAAM,sBAAsB,MAAM,KAAG,MAAM;;sBAUvD,MAAM,UAAU,MAAM,WAAW,MAAM,aAAa,MAAM,KAAG,MAAM;6BAE5D,MAAM,eAAe,MAAM,oBAAoB,MAAM,sBAAsB,MAAM,KAAG,MAAM;gCAevF,MAAM,oBAAoB,MAAM,sBAAsB,MAAM,KAAG,MAAM;wBAc7E,MAAM,UAAU,MAAM,WAAW,MAAM,aAAa,MAAM,KAAG,MAAM;;;yBAKlE,MAAM,WAAW,MAAM;;;;qCAQb,MAAM;qCACN,MAAM,gBAAgB,OAAO;;;yCAMzB,MAAM;qCACV,MAAM;;;;;;;;;;;;;;;;+BAwBZ,MAAM,SAAS,MAAM;;;;;;;;;;;;6CAaP,MAAM,mBAAmB,MAAM,EAAE;;;;CAOvE,CAAC"}
|
package/out/ui/text.js
CHANGED
|
@@ -333,6 +333,22 @@ What do you like or don't like about Forge? Share your feedback below or press C
|
|
|
333
333
|
},
|
|
334
334
|
overview: 'Showing all environments of the app:\n'
|
|
335
335
|
},
|
|
336
|
+
storage: {
|
|
337
|
+
cmd: {
|
|
338
|
+
desc: 'manage storage for your app'
|
|
339
|
+
}
|
|
340
|
+
},
|
|
341
|
+
entitiesIndexes: {
|
|
342
|
+
cmd: {
|
|
343
|
+
desc: 'manage indexes for custom entities present in your app'
|
|
344
|
+
}
|
|
345
|
+
},
|
|
346
|
+
entitiesIndexesList: {
|
|
347
|
+
cmd: {
|
|
348
|
+
desc: 'List indexes for all custom entities present in your app'
|
|
349
|
+
},
|
|
350
|
+
missingEntities: 'No entities were declared in manifest'
|
|
351
|
+
},
|
|
336
352
|
contributors: {
|
|
337
353
|
desc: 'manage who has access to your app'
|
|
338
354
|
},
|
|
@@ -444,6 +460,10 @@ What do you like or don't like about Forge? Share your feedback below or press C
|
|
|
444
460
|
},
|
|
445
461
|
outdatedInstallations: `We've detected new scopes or egress URLs in your app.\n` +
|
|
446
462
|
`Run ${chalk_1.default.bold('forge install --upgrade')} and restart your tunnel to put them into effect.`,
|
|
463
|
+
listIndexes: (environment) => {
|
|
464
|
+
const indexCommand = chalk_1.default.bold(`forge storage entities indexes list -e ${environment}`);
|
|
465
|
+
return (`Run ${indexCommand} to check the status of the indexes.`);
|
|
466
|
+
},
|
|
447
467
|
egressURL: {
|
|
448
468
|
invalidURLError: (cause) => {
|
|
449
469
|
const urls = cause
|
|
@@ -495,7 +515,9 @@ What do you like or don't like about Forge? Share your feedback below or press C
|
|
|
495
515
|
banner: `\nInstalling your app onto an Atlassian site.\n${ctrlC}\n`,
|
|
496
516
|
optionConfirmScopes: 'skip confirmation of scopes for the app before installing or upgrading the app',
|
|
497
517
|
optionUpgrade: 'upgrade an existing installation',
|
|
498
|
-
listScopes: (scopes) => `Your app will be installed with the following scopes:\n${scopes
|
|
518
|
+
listScopes: (scopes) => `Your app will be installed with the following scopes:\n${scopes
|
|
519
|
+
.map(({ name, requiresInteractiveConsent }) => `- ${name}${requiresInteractiveConsent ? ' (requires interactive consent)' : ''}`)
|
|
520
|
+
.join('\n')}\n`,
|
|
499
521
|
listEgressAddresses: (egressAddresses) => `Your app will exchange data with the following urls:\n${egressAddresses.map((url) => `- ${url}`).join('\n')}\n`,
|
|
500
522
|
permissionsMismatch: (environment) => `The scopes or egress URLs in the manifest are different from the scopes in your most recent deployment to ${environment}. Try running ${chalk_1.default.bold(`forge deploy -e ${environment}`)} before installing.\n`,
|
|
501
523
|
multiProductScopesDetected: (productsToInstall, productsToUpgrade, site, environment, environmentToOption) => `\nWe detected your app requires scopes across multiple products.\nRun ${chalk_1.default.bold('forge install')} for each of the following:\n${productsToUpgrade
|
|
@@ -561,7 +583,7 @@ ${buildTerminalLink(link)}\n`,
|
|
|
561
583
|
error: `Upgrade failed`
|
|
562
584
|
},
|
|
563
585
|
listScopes: (scopes) => `Your app will be upgraded with the following additional scopes:\n${scopes
|
|
564
|
-
.map((
|
|
586
|
+
.map(({ name, requiresInteractiveConsent }) => `- ${name}${requiresInteractiveConsent ? ' (requires interactive consent)' : ''}`)
|
|
565
587
|
.join('\n')}\n`,
|
|
566
588
|
listEgressAddresses: (egressAddresses) => `Your app will exchange data with the following urls:\n${egressAddresses.map((url) => `- ${url}`).join('\n')}\n`,
|
|
567
589
|
permissionsMismatch: (environment) => `The scopes or egress URLs in the manifest are different from the scopes in your most recent deployment to ${environment}. Try running ${chalk_1.default.bold(`forge deploy -e ${environment}`)} before upgrading.\n`,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forge/cli-shared",
|
|
3
|
-
"version": "3.8.0-next.
|
|
3
|
+
"version": "3.8.0-next.7",
|
|
4
4
|
"description": "Common functionality for Forge CLI",
|
|
5
5
|
"author": "Atlassian",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"generate-graphql-types": "graphql-codegen --config src/graphql/codegen.yml"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@forge/manifest": "4.8.0-next.
|
|
15
|
+
"@forge/manifest": "4.8.0-next.3",
|
|
16
16
|
"@forge/util": "1.2.2-next.0",
|
|
17
17
|
"@sentry/node": "^7.29.0",
|
|
18
18
|
"array.prototype.flatmap": "^1.2.3",
|