@forge/cli-shared 3.13.0-next.2 → 3.13.0-next.4
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 +13 -0
- package/out/graphql/app-environment-graphql-client.d.ts.map +1 -1
- package/out/graphql/app-environment-graphql-client.js +1 -2
- package/out/graphql/graphql-types.d.ts +89 -4
- package/out/graphql/graphql-types.d.ts.map +1 -1
- package/out/graphql/graphql-types.js +16 -6
- package/out/ui/text.d.ts +29 -30
- package/out/ui/text.d.ts.map +1 -1
- package/out/ui/text.js +37 -36
- package/package.json +2 -2
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
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.CcpSubscriptionStatus = exports.CcpSubscriptionScheduleAction = exports.CcpEntitlementStatus = exports.CcpDuration = 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
|
-
exports.
|
|
5
|
-
exports.
|
|
6
|
-
exports.
|
|
7
|
-
exports.
|
|
8
|
-
exports.
|
|
9
|
-
exports.SourceBillingType = exports.VirtualAgentIntentTemplateType = exports.UserInstallationRuleValue = exports.TrelloCardRole = exports.TrelloCardCoverSize = exports.TrelloCardCoverColor = exports.TrelloCardCoverBrightness = exports.TownsquareTargetDateType = exports.TownsquareProjectStateValue = exports.TownsquareProjectSortEnum = void 0;
|
|
4
|
+
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.DevOpsDocumentCategory = exports.DevOpsBuildState = 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 = exports.CompassRelationshipType = exports.CompassRelationshipDirection = exports.CompassQuerySortOrder = exports.CompassMetricDefinitionType = void 0;
|
|
5
|
+
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.JiraBulkEditMultiSelectFieldOptions = exports.JiraAttachmentsPermissions = exports.JiraActionType = exports.IssueDevOpsPullRequestStatus = exports.IssueDevOpsDeploymentState = exports.IssueDevOpsDeploymentEnvironmentType = exports.IssueDevOpsCommitChangeType = exports.HelpObjectStoreJsmEntityType = exports.HelpObjectStoreHelpObjectType = exports.HelpLayoutElementTypeName = exports.HelpLayoutElementTypeInput = exports.HelpCenterType = exports.GrantCheckProduct = exports.FunctionTriggerType = exports.FortifiedMetricsResolutionUnit = exports.FormStatus = exports.ForgeMetricsSiteFilterCategory = exports.ForgeMetricsResolutionUnit = exports.ForgeMetricsGroupByDimensions = exports.ForgeMetricsDataType = exports.ForgeAuditLogsActionType = exports.ForgeAlertsStatus = exports.ForgeAlertsActivityType = exports.ExtensionContextsFilterType = exports.EventMatchingStrategies = exports.EventKnownAvIs = exports.EstimationType = exports.DevStatusActivity = exports.DevOpsToolSortOrder = exports.DevOpsToolIntegrationType = exports.DevOpsServiceRelationshipType = void 0;
|
|
6
|
+
exports.JiraVersionIssuesFilter = exports.JiraVersionIssueTableColumn = exports.JiraVersionDetailsCollapsedUi = exports.JiraVersionApproverStatus = 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 = exports.JiraJqlSyntaxError = exports.JiraJqlOperator = exports.JiraJqlFunctionStatus = exports.JiraJqlClauseType = exports.JiraJqlBuilderMode = exports.JiraJqlAutocompleteType = exports.JiraJqlBuilderSearchMode = exports.JiraIteration = exports.JiraIssueViewTimestampDisplayMode = exports.JiraIssueViewAttachmentPanelViewMode = exports.JiraIssueViewActivityFeedSortOrder = exports.JiraIssueSearchFieldSetSelectedState = void 0;
|
|
7
|
+
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.NlpSearchResultType = exports.NlpErrorState = 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 = exports.MarketplaceBillingCycle = exports.MarketplaceAppVersionVisibility = exports.MarketplaceAppPermission = exports.MarketplaceAppPaymentModel = exports.LifecycleStage = exports.LicenseOverrideState = exports.JiraWatchesOperations = exports.JiraVotesOperations = exports.JiraVersionWarningConfigState = exports.JiraVersionWarningCategories = exports.JiraVersionStatus = exports.JiraVersionReleaseNotesType = exports.JiraVersionRelatedWorkType = exports.JiraVersionIssuesStatusCategories = exports.JiraVersionIssuesSortField = void 0;
|
|
8
|
+
exports.TownsquareGoalSortEnum = exports.ToolchainSyncState = 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.SearchIssueStatusCategory = exports.SearchContainerStatus = 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 = void 0;
|
|
9
|
+
exports.SourceBillingType = exports.VirtualAgentIntentTemplateType = exports.UserInstallationRuleValue = exports.TrelloCardRole = exports.TrelloCardCoverSize = exports.TrelloCardCoverColor = exports.TrelloCardCoverBrightness = exports.TownsquareTargetDateType = exports.TownsquareProjectStateValue = exports.TownsquareProjectSortEnum = exports.TownsquareGoalStateValue = void 0;
|
|
10
10
|
var AcceptableResponse;
|
|
11
11
|
(function (AcceptableResponse) {
|
|
12
12
|
AcceptableResponse["NotApplicable"] = "NOT_APPLICABLE";
|
|
@@ -628,6 +628,15 @@ var DeploymentState;
|
|
|
628
628
|
DeploymentState["RolledBack"] = "ROLLED_BACK";
|
|
629
629
|
DeploymentState["Unknown"] = "UNKNOWN";
|
|
630
630
|
})(DeploymentState = exports.DeploymentState || (exports.DeploymentState = {}));
|
|
631
|
+
var DevOpsBuildState;
|
|
632
|
+
(function (DevOpsBuildState) {
|
|
633
|
+
DevOpsBuildState["Pending"] = "PENDING";
|
|
634
|
+
DevOpsBuildState["InProgress"] = "IN_PROGRESS";
|
|
635
|
+
DevOpsBuildState["Successful"] = "SUCCESSFUL";
|
|
636
|
+
DevOpsBuildState["Failed"] = "FAILED";
|
|
637
|
+
DevOpsBuildState["Cancelled"] = "CANCELLED";
|
|
638
|
+
DevOpsBuildState["Unknown"] = "UNKNOWN";
|
|
639
|
+
})(DevOpsBuildState = exports.DevOpsBuildState || (exports.DevOpsBuildState = {}));
|
|
631
640
|
var DevOpsDocumentCategory;
|
|
632
641
|
(function (DevOpsDocumentCategory) {
|
|
633
642
|
DevOpsDocumentCategory["Folder"] = "FOLDER";
|
|
@@ -2314,6 +2323,7 @@ var ShepherdAlertTemplateType;
|
|
|
2314
2323
|
ShepherdAlertTemplateType["JiraIssueCrawling"] = "JIRA_ISSUE_CRAWLING";
|
|
2315
2324
|
ShepherdAlertTemplateType["OrgLoggedInAsUser"] = "ORG_LOGGED_IN_AS_USER";
|
|
2316
2325
|
ShepherdAlertTemplateType["RotateScimDirectoryToken"] = "ROTATE_SCIM_DIRECTORY_TOKEN";
|
|
2326
|
+
ShepherdAlertTemplateType["TestAlert"] = "TEST_ALERT";
|
|
2317
2327
|
ShepherdAlertTemplateType["TokenCreated"] = "TOKEN_CREATED";
|
|
2318
2328
|
ShepherdAlertTemplateType["UpdatedAuthPolicy"] = "UPDATED_AUTH_POLICY";
|
|
2319
2329
|
ShepherdAlertTemplateType["UpdatedPolicy"] = "UPDATED_POLICY";
|
package/out/ui/text.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { URL } from 'url';
|
|
2
2
|
import { AppEnvironmentType } from '../graphql/graphql-types';
|
|
3
|
-
declare type EnvironmentToOption = (environment: string) => string;
|
|
4
3
|
export interface AddedScope {
|
|
5
4
|
name: string;
|
|
6
5
|
requiresInteractiveConsent?: boolean;
|
|
@@ -147,7 +146,7 @@ export declare const Text: {
|
|
|
147
146
|
desc: string;
|
|
148
147
|
start: string;
|
|
149
148
|
success: (appName: string) => string;
|
|
150
|
-
successDetails: (directory: string, validEnvironmentOptions: string[]
|
|
149
|
+
successDetails: (directory: string, validEnvironmentOptions: string[]) => string;
|
|
151
150
|
};
|
|
152
151
|
intro: (givenDirectory: string) => string;
|
|
153
152
|
introWithCurrentDirectory: (currentDirectory: string) => string;
|
|
@@ -195,20 +194,20 @@ export declare const Text: {
|
|
|
195
194
|
desc: string;
|
|
196
195
|
start: string;
|
|
197
196
|
success: (appName: string) => string;
|
|
198
|
-
successDetails: (validEnvironmentOptions: string[]
|
|
197
|
+
successDetails: (validEnvironmentOptions: string[]) => string;
|
|
199
198
|
};
|
|
200
199
|
confirmQuestion: string;
|
|
201
200
|
};
|
|
202
201
|
env: {
|
|
203
202
|
option: string;
|
|
204
203
|
invalid: string;
|
|
205
|
-
developmentOnly: (envKey: string
|
|
204
|
+
developmentOnly: (envKey: string) => string;
|
|
206
205
|
error: {
|
|
207
206
|
appOwnerNotExist: string;
|
|
208
207
|
appNotExist: string;
|
|
209
|
-
envNotExist: (envKey: string
|
|
208
|
+
envNotExist: (envKey: string) => string;
|
|
210
209
|
};
|
|
211
|
-
displayEnvironment: (envKey: string, envType: AppEnvironmentType
|
|
210
|
+
displayEnvironment: (envKey: string, envType: AppEnvironmentType) => string;
|
|
212
211
|
warn: {
|
|
213
212
|
envWillBeCreated: (envKey: string) => string;
|
|
214
213
|
};
|
|
@@ -219,8 +218,8 @@ export declare const Text: {
|
|
|
219
218
|
prompt: string;
|
|
220
219
|
warn: string;
|
|
221
220
|
confirm: string;
|
|
222
|
-
setSuccess: (envKey: string, envType: AppEnvironmentType
|
|
223
|
-
createAndSetSuccess: (envKey: string, envType: AppEnvironmentType
|
|
221
|
+
setSuccess: (envKey: string, envType: AppEnvironmentType) => string;
|
|
222
|
+
createAndSetSuccess: (envKey: string, envType: AppEnvironmentType) => string;
|
|
224
223
|
settingsInfo: string;
|
|
225
224
|
};
|
|
226
225
|
varsSet: {
|
|
@@ -229,7 +228,7 @@ export declare const Text: {
|
|
|
229
228
|
start: string;
|
|
230
229
|
success: string;
|
|
231
230
|
};
|
|
232
|
-
overview: (environment: string, environmentType: AppEnvironmentType
|
|
231
|
+
overview: (environment: string, environmentType: AppEnvironmentType) => string;
|
|
233
232
|
encryptInfo: string;
|
|
234
233
|
promptEncrypt: string;
|
|
235
234
|
keyInfo: string;
|
|
@@ -242,16 +241,16 @@ export declare const Text: {
|
|
|
242
241
|
varsUnset: {
|
|
243
242
|
cmd: {
|
|
244
243
|
desc: string;
|
|
245
|
-
start: (environment: string, envType: AppEnvironmentType
|
|
244
|
+
start: (environment: string, envType: AppEnvironmentType) => string;
|
|
246
245
|
success: (key: string) => string;
|
|
247
246
|
};
|
|
248
247
|
};
|
|
249
248
|
varsList: {
|
|
250
249
|
hint: string;
|
|
251
250
|
cmd: string;
|
|
252
|
-
empty: (environment: string, envType: AppEnvironmentType
|
|
251
|
+
empty: (environment: string, envType: AppEnvironmentType) => string;
|
|
253
252
|
encryptedValue: string;
|
|
254
|
-
overview: (environment: string, envType: AppEnvironmentType
|
|
253
|
+
overview: (environment: string, envType: AppEnvironmentType) => string;
|
|
255
254
|
postfix: string;
|
|
256
255
|
};
|
|
257
256
|
providers: {
|
|
@@ -263,7 +262,7 @@ export declare const Text: {
|
|
|
263
262
|
start: string;
|
|
264
263
|
success: string;
|
|
265
264
|
};
|
|
266
|
-
overview: (environment: string
|
|
265
|
+
overview: (environment: string) => string;
|
|
267
266
|
providerKeyInfo: string;
|
|
268
267
|
noProviders: string;
|
|
269
268
|
promptProviderKey: string;
|
|
@@ -277,7 +276,7 @@ export declare const Text: {
|
|
|
277
276
|
cmd: {
|
|
278
277
|
desc: string;
|
|
279
278
|
start: string;
|
|
280
|
-
success: (envKey: string, envType: AppEnvironmentType
|
|
279
|
+
success: (envKey: string, envType: AppEnvironmentType) => string;
|
|
281
280
|
};
|
|
282
281
|
overview: string;
|
|
283
282
|
promptEnvironmentKey: string;
|
|
@@ -300,12 +299,12 @@ export declare const Text: {
|
|
|
300
299
|
prompt: string;
|
|
301
300
|
confirmationInfo: string;
|
|
302
301
|
promptConfirmation: string;
|
|
303
|
-
individualSuccessMessage: (envKey: string, envType: AppEnvironmentType
|
|
302
|
+
individualSuccessMessage: (envKey: string, envType: AppEnvironmentType) => string;
|
|
304
303
|
successMessage: string;
|
|
305
304
|
optionEnvironmentKey: string;
|
|
306
305
|
warningMessage: string;
|
|
307
306
|
noEnvironmentMessage: string;
|
|
308
|
-
hasInstallationError: (envKey: string
|
|
307
|
+
hasInstallationError: (envKey: string) => string;
|
|
309
308
|
};
|
|
310
309
|
storage: {
|
|
311
310
|
cmd: {
|
|
@@ -387,10 +386,10 @@ export declare const Text: {
|
|
|
387
386
|
deploy: {
|
|
388
387
|
cmd: {
|
|
389
388
|
desc: string;
|
|
390
|
-
start1: (envKey: string,
|
|
391
|
-
start2: (appName: string, envKey: string, envType: AppEnvironmentType
|
|
389
|
+
start1: (envKey: string, envType: AppEnvironmentType) => string;
|
|
390
|
+
start2: (appName: string, envKey: string, envType: AppEnvironmentType) => string;
|
|
392
391
|
success: string;
|
|
393
|
-
successDetails: (appName: string, envKey: string, envType: AppEnvironmentType
|
|
392
|
+
successDetails: (appName: string, envKey: string, envType: AppEnvironmentType) => string;
|
|
394
393
|
distributePageLink: (appId: string) => string;
|
|
395
394
|
};
|
|
396
395
|
taskLint: {
|
|
@@ -438,7 +437,7 @@ export declare const Text: {
|
|
|
438
437
|
install: {
|
|
439
438
|
cmd: {
|
|
440
439
|
description: string;
|
|
441
|
-
start: (envKey: string, envType: AppEnvironmentType
|
|
440
|
+
start: (envKey: string, envType: AppEnvironmentType) => string;
|
|
442
441
|
end: (displayTick: boolean) => string;
|
|
443
442
|
};
|
|
444
443
|
booleanToScope: (isLatest: boolean) => string;
|
|
@@ -447,11 +446,12 @@ export declare const Text: {
|
|
|
447
446
|
optionUpgrade: string;
|
|
448
447
|
listScopes: (scopes: AddedScope[]) => string;
|
|
449
448
|
listEgressAddresses: (egressAddresses: string[]) => string;
|
|
449
|
+
permissionMismatchCommandSuggestion: (environment: string) => string;
|
|
450
450
|
permissionsMismatch: (environment: string) => string;
|
|
451
|
-
multiProductScopesDetected: (productsToInstall: string[], productsToUpgrade: string[], site: string, environment: string
|
|
451
|
+
multiProductScopesDetected: (productsToInstall: string[], productsToUpgrade: string[], site: string, environment: string) => string;
|
|
452
452
|
promptForPermissionsConfirmation: (permissionsMismatchInDevelopment: boolean) => string;
|
|
453
453
|
success: {
|
|
454
|
-
banner: (envKey: string, envType: AppEnvironmentType,
|
|
454
|
+
banner: (envKey: string, envType: AppEnvironmentType, product: string, site: string) => string;
|
|
455
455
|
};
|
|
456
456
|
error: {
|
|
457
457
|
invalidAtlassianSite: (url: URL) => string;
|
|
@@ -460,7 +460,7 @@ export declare const Text: {
|
|
|
460
460
|
site: (url: string) => string;
|
|
461
461
|
alreadyInstalledError: string;
|
|
462
462
|
serverSideInstallationError: (message: string) => string;
|
|
463
|
-
noDeploymentFound: (
|
|
463
|
+
noDeploymentFound: (environment: string) => string;
|
|
464
464
|
permissionsDeniedInstructions: (requestId: string, appId: string) => string;
|
|
465
465
|
};
|
|
466
466
|
security: {
|
|
@@ -481,7 +481,7 @@ export declare const Text: {
|
|
|
481
481
|
upgrade: {
|
|
482
482
|
banner: string;
|
|
483
483
|
cmd: {
|
|
484
|
-
start: (envKey: string, envType: AppEnvironmentType
|
|
484
|
+
start: (envKey: string, envType: AppEnvironmentType) => string;
|
|
485
485
|
end: (displayTick: boolean) => string;
|
|
486
486
|
error: string;
|
|
487
487
|
};
|
|
@@ -490,11 +490,11 @@ export declare const Text: {
|
|
|
490
490
|
permissionsMismatch: (environment: string) => string;
|
|
491
491
|
promptForPermissionsConfirmation: (permissionsMismatchInDevelopment: boolean) => string;
|
|
492
492
|
success: {
|
|
493
|
-
banner: (envKey: string, envType: AppEnvironmentType,
|
|
493
|
+
banner: (envKey: string, envType: AppEnvironmentType, product: string, site: string) => string;
|
|
494
494
|
};
|
|
495
495
|
alreadyUpdated: {
|
|
496
496
|
spinner: string;
|
|
497
|
-
banner: (environment: string,
|
|
497
|
+
banner: (environment: string, product: string, site: string) => string;
|
|
498
498
|
};
|
|
499
499
|
error: {
|
|
500
500
|
serverSideInstallationError: (message: string) => string;
|
|
@@ -510,7 +510,7 @@ export declare const Text: {
|
|
|
510
510
|
cmd: string;
|
|
511
511
|
optionDebugger: string;
|
|
512
512
|
preamble: string;
|
|
513
|
-
startingTunnel: (environmentKey: string, envType: AppEnvironmentType
|
|
513
|
+
startingTunnel: (environmentKey: string, envType: AppEnvironmentType) => string;
|
|
514
514
|
startedServer: (port: number, isDebug: boolean) => string;
|
|
515
515
|
startedTunnel: (tunnelUrl: string) => string;
|
|
516
516
|
stoppingTunnel: string;
|
|
@@ -572,8 +572,8 @@ export declare const Text: {
|
|
|
572
572
|
done: string;
|
|
573
573
|
};
|
|
574
574
|
info: string;
|
|
575
|
-
done: (product: string, domain: string, environment: string,
|
|
576
|
-
failed: (product: string, domain: string, environment: string
|
|
575
|
+
done: (product: string, domain: string, environment: string, isMulti: boolean) => string;
|
|
576
|
+
failed: (product: string, domain: string, environment: string) => string;
|
|
577
577
|
missingUninstallTask: string;
|
|
578
578
|
};
|
|
579
579
|
webtrigger: {
|
|
@@ -660,5 +660,4 @@ export declare const Text: {
|
|
|
660
660
|
};
|
|
661
661
|
};
|
|
662
662
|
};
|
|
663
|
-
export {};
|
|
664
663
|
//# sourceMappingURL=text.d.ts.map
|
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,
|
|
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,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AAM,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;;;;;;;;;;;;;;;6CAgBP,MAAM,mBAAmB,MAAM,EAAE;;;;CAOvE,CAAC"}
|
package/out/ui/text.js
CHANGED
|
@@ -195,8 +195,8 @@ What do you like or don't like about Forge? Share your feedback below or press C
|
|
|
195
195
|
desc: 'create an app',
|
|
196
196
|
start: 'Creating app...',
|
|
197
197
|
success: (appName) => `Created ${appName}`,
|
|
198
|
-
successDetails: (directory, validEnvironmentOptions
|
|
199
|
-
.map(environmentToOption)
|
|
198
|
+
successDetails: (directory, validEnvironmentOptions) => `\nYour app is ready to work on, deploy, and install. We created ${validEnvironmentOptions.length} environments you can deploy to: ${validEnvironmentOptions
|
|
199
|
+
.map(environment_1.environmentToOption)
|
|
200
200
|
.join(', ')}.\n\nChange to directory ${chalk_1.default.bold(directory)} to see your app files.`
|
|
201
201
|
},
|
|
202
202
|
intro: (givenDirectory) => `Creating an app in directory ${chalk_1.default.bold(givenDirectory)}.\n`,
|
|
@@ -246,8 +246,8 @@ What do you like or don't like about Forge? Share your feedback below or press C
|
|
|
246
246
|
desc: "register an app you didn't create so you can run commands for it",
|
|
247
247
|
start: `Registering app...`,
|
|
248
248
|
success: (appName) => `Registered ${appName}`,
|
|
249
|
-
successDetails: (validEnvironmentOptions
|
|
250
|
-
.map(environmentToOption)
|
|
249
|
+
successDetails: (validEnvironmentOptions) => `\nYour app is ready to work on, deploy, and install. We created ${validEnvironmentOptions.length} environments you can deploy to: ${validEnvironmentOptions
|
|
250
|
+
.map(environment_1.environmentToOption)
|
|
251
251
|
.join(', ')}.\n\nUse ${chalk_1.default.bold('forge deploy')} to deploy your app to an environment.`
|
|
252
252
|
},
|
|
253
253
|
confirmQuestion: 'Are you sure you want to overwrite the existing app details?'
|
|
@@ -255,19 +255,19 @@ What do you like or don't like about Forge? Share your feedback below or press C
|
|
|
255
255
|
env: {
|
|
256
256
|
option: 'specify the environment (defaults to your development environment)',
|
|
257
257
|
invalid: 'Invalid environment name',
|
|
258
|
-
developmentOnly: (envKey
|
|
258
|
+
developmentOnly: (envKey) => `${(0, environment_1.environmentToOption)(envKey)} cannot be set as default environment. Only development environments can be used.`,
|
|
259
259
|
error: {
|
|
260
260
|
appOwnerNotExist: 'Missing app owner details',
|
|
261
261
|
appNotExist: `Your app could not be found. Make sure the app details in the manifest.yml file are correct before trying again.`,
|
|
262
|
-
envNotExist: (envKey
|
|
262
|
+
envNotExist: (envKey) => `Environment ${chalk_1.default.bold((0, environment_1.environmentToOption)(envKey))} does not exist. Check the environment name and try again.`
|
|
263
263
|
},
|
|
264
|
-
displayEnvironment: (envKey, envType
|
|
264
|
+
displayEnvironment: (envKey, envType) => {
|
|
265
265
|
if (envType === graphql_types_1.AppEnvironmentType.Development &&
|
|
266
266
|
envKey !== environment_1.DEFAULT_ENVIRONMENT_KEY &&
|
|
267
267
|
envKey !== environment_1.DEFAULT_ENVIRONMENT_OPTION) {
|
|
268
|
-
return `${chalk_1.default.gray('DEV')} ${environmentToOption(envKey)}`;
|
|
268
|
+
return `${chalk_1.default.gray('DEV')} ${(0, environment_1.environmentToOption)(envKey)}`;
|
|
269
269
|
}
|
|
270
|
-
return environmentToOption(envKey);
|
|
270
|
+
return (0, environment_1.environmentToOption)(envKey);
|
|
271
271
|
},
|
|
272
272
|
warn: {
|
|
273
273
|
envWillBeCreated: (envKey) => `${chalk_1.default.bold('Warning:')} Environment ${chalk_1.default.bold((0, environment_1.environmentToOption)(envKey))} does not exist. If you continue, this development environment will be created for you.`
|
|
@@ -279,8 +279,8 @@ What do you like or don't like about Forge? Share your feedback below or press C
|
|
|
279
279
|
prompt: 'Enter a name for your default development environment:',
|
|
280
280
|
warn: `${chalk_1.default.bold('Warning:')} A development environment with this name already exists. If you continue, you may be using the same environment as another contributor.`,
|
|
281
281
|
confirm: 'Do you want to continue?',
|
|
282
|
-
setSuccess: (envKey, envType
|
|
283
|
-
createAndSetSuccess: (envKey, envType
|
|
282
|
+
setSuccess: (envKey, envType) => `${exports.Text.env.displayEnvironment(envKey, envType)} has been set as your default development environment`,
|
|
283
|
+
createAndSetSuccess: (envKey, envType) => `${exports.Text.env.displayEnvironment(envKey, envType)} has been created and set as your default development environment`,
|
|
284
284
|
settingsInfo: `You can change your default development environment later by running ${chalk_1.default.bold('forge settings set')}.`
|
|
285
285
|
},
|
|
286
286
|
varsSet: {
|
|
@@ -289,7 +289,7 @@ What do you like or don't like about Forge? Share your feedback below or press C
|
|
|
289
289
|
start: 'Setting environment variable...',
|
|
290
290
|
success: 'Environment variable set.'
|
|
291
291
|
},
|
|
292
|
-
overview: (environment, environmentType
|
|
292
|
+
overview: (environment, environmentType) => `Setting the value of a variable in the ${exports.Text.env.displayEnvironment(environment, environmentType)} environment.`,
|
|
293
293
|
encryptInfo: 'Encrypting a variable means that the value will not be shown in the terminal.',
|
|
294
294
|
promptEncrypt: `Select if you want the value encrypted:`,
|
|
295
295
|
keyInfo: 'Use a new key to create a variable, or use an existing key to override a variable.',
|
|
@@ -302,16 +302,16 @@ What do you like or don't like about Forge? Share your feedback below or press C
|
|
|
302
302
|
varsUnset: {
|
|
303
303
|
cmd: {
|
|
304
304
|
desc: 'remove an environment variable',
|
|
305
|
-
start: (environment, envType
|
|
305
|
+
start: (environment, envType) => `Unsetting the variable in the ${exports.Text.env.displayEnvironment(environment, envType)} environment.`,
|
|
306
306
|
success: (key) => `\n${greenTick} ${key} variable removed.`
|
|
307
307
|
}
|
|
308
308
|
},
|
|
309
309
|
varsList: {
|
|
310
310
|
hint: `\nRun ${chalk_1.default.bold('forge variables list')} to see your environment variables.\n`,
|
|
311
311
|
cmd: 'list the environment variables',
|
|
312
|
-
empty: (environment, envType
|
|
312
|
+
empty: (environment, envType) => `There are no variables in the ${exports.Text.env.displayEnvironment(environment, envType)} environment.\n\nUse ${chalk_1.default.bold('forge variables set')} to create a variable.\n`,
|
|
313
313
|
encryptedValue,
|
|
314
|
-
overview: (environment, envType
|
|
314
|
+
overview: (environment, envType) => `Showing variables from the ${exports.Text.env.displayEnvironment(environment, envType)} environment:\n`,
|
|
315
315
|
postfix: `\nNote, the values of encrypted variables are shown as ${encryptedValue}.\n`
|
|
316
316
|
},
|
|
317
317
|
providers: {
|
|
@@ -323,7 +323,7 @@ What do you like or don't like about Forge? Share your feedback below or press C
|
|
|
323
323
|
start: 'Configuring provider credentials...',
|
|
324
324
|
success: 'oauth provider credentials configuration is finished.'
|
|
325
325
|
},
|
|
326
|
-
overview: (environment
|
|
326
|
+
overview: (environment) => `Configuring provider in the ${(0, environment_1.environmentToOption)(environment)} environment.`,
|
|
327
327
|
providerKeyInfo: 'Use a provider key from the list for configuration.',
|
|
328
328
|
noProviders: "Count't find providers in the manifest file. Add one.",
|
|
329
329
|
promptProviderKey: 'Select provider to configure:',
|
|
@@ -337,7 +337,7 @@ What do you like or don't like about Forge? Share your feedback below or press C
|
|
|
337
337
|
cmd: {
|
|
338
338
|
desc: 'create a new development environment',
|
|
339
339
|
start: 'Creating environment...',
|
|
340
|
-
success: (envKey, envType
|
|
340
|
+
success: (envKey, envType) => `Created ${exports.Text.env.displayEnvironment(envKey, envType)}`
|
|
341
341
|
},
|
|
342
342
|
overview: 'Create a new development environment.',
|
|
343
343
|
promptEnvironmentKey: 'Enter a name for your environment:',
|
|
@@ -360,12 +360,12 @@ What do you like or don't like about Forge? Share your feedback below or press C
|
|
|
360
360
|
prompt: 'Select development environment:',
|
|
361
361
|
confirmationInfo: 'You are deleting the following environment(s):',
|
|
362
362
|
promptConfirmation: 'Do you want to continue?',
|
|
363
|
-
individualSuccessMessage: (envKey, envType
|
|
363
|
+
individualSuccessMessage: (envKey, envType) => `${log_symbols_1.default.info} ${exports.Text.env.displayEnvironment(envKey, envType)} deleted successfully.`,
|
|
364
364
|
successMessage: 'Environment(s) deleted.',
|
|
365
365
|
optionEnvironmentKey: 'specify the environment to delete',
|
|
366
366
|
warningMessage: `${chalk_1.default.bold('Warning:')} When deleting a development environment, you may impact in progress deployments or tunnels.`,
|
|
367
367
|
noEnvironmentMessage: 'There are no development environments to delete.',
|
|
368
|
-
hasInstallationError: (envKey
|
|
368
|
+
hasInstallationError: (envKey) => `${(0, environment_1.environmentToOption)(envKey)} cannot be deleted because the environment is installed on a site. You can show all the current installations of your app by running ${chalk_1.default.bold('forge install list')}.`
|
|
369
369
|
},
|
|
370
370
|
storage: {
|
|
371
371
|
cmd: {
|
|
@@ -447,10 +447,10 @@ What do you like or don't like about Forge? Share your feedback below or press C
|
|
|
447
447
|
deploy: {
|
|
448
448
|
cmd: {
|
|
449
449
|
desc: 'deploy your app to an environment',
|
|
450
|
-
start1: (envKey,
|
|
451
|
-
start2: (appName, envKey, envType
|
|
450
|
+
start1: (envKey, envType) => `Deploying your app to the ${exports.Text.env.displayEnvironment(envKey, envType)} environment.\n${ctrlC}\n`,
|
|
451
|
+
start2: (appName, envKey, envType) => `Deploying ${appName} to ${exports.Text.env.displayEnvironment(envKey, envType)}...`,
|
|
452
452
|
success: 'Deployed\n',
|
|
453
|
-
successDetails: (appName, envKey, envType
|
|
453
|
+
successDetails: (appName, envKey, envType) => `Deployed ${appName} to the ${exports.Text.env.displayEnvironment(envKey, envType)} environment.`,
|
|
454
454
|
distributePageLink: (appId) => `To install on a site that you're an admin of, run ${chalk_1.default.bold('forge install')}.\n` +
|
|
455
455
|
'To install on any other site, generate an installation link in the developer console and share it with the site admin: ' +
|
|
456
456
|
`https://developer.atlassian.com/console/myapps/${appId}/distribution`
|
|
@@ -498,7 +498,7 @@ What do you like or don't like about Forge? Share your feedback below or press C
|
|
|
498
498
|
outdatedInstallations: `We've detected new scopes or egress URLs in your app.\n` +
|
|
499
499
|
`Run ${chalk_1.default.bold('forge install --upgrade')} and restart your tunnel to put them into effect.`,
|
|
500
500
|
listIndexes: (environment) => {
|
|
501
|
-
const indexCommand = chalk_1.default.bold(`forge storage entities indexes list -e ${environment}`);
|
|
501
|
+
const indexCommand = chalk_1.default.bold(`forge storage entities indexes list -e ${(0, environment_1.environmentToOption)(environment)}`);
|
|
502
502
|
return (`Run ${indexCommand} to check the status of the indexes.`);
|
|
503
503
|
},
|
|
504
504
|
egressURL: {
|
|
@@ -545,7 +545,7 @@ What do you like or don't like about Forge? Share your feedback below or press C
|
|
|
545
545
|
install: {
|
|
546
546
|
cmd: {
|
|
547
547
|
description: 'manage app installations',
|
|
548
|
-
start: (envKey, envType
|
|
548
|
+
start: (envKey, envType) => `Installing your app on to ${exports.Text.env.displayEnvironment(envKey, envType)}...`,
|
|
549
549
|
end: (displayTick) => `${displayTick ? greenTick + ' ' : ''}Install complete!`
|
|
550
550
|
},
|
|
551
551
|
booleanToScope: (isLatest) => (isLatest ? `Latest` : `Out-of-date`),
|
|
@@ -556,17 +556,18 @@ What do you like or don't like about Forge? Share your feedback below or press C
|
|
|
556
556
|
.map(({ name, requiresInteractiveConsent }) => `- ${name}${requiresInteractiveConsent ? ' (requires interactive consent)' : ''}`)
|
|
557
557
|
.join('\n')}\n`,
|
|
558
558
|
listEgressAddresses: (egressAddresses) => `Your app will exchange data with the following urls:\n${egressAddresses.map((url) => `- ${url}`).join('\n')}\n`,
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
559
|
+
permissionMismatchCommandSuggestion: (environment) => `forge deploy -e ${(0, environment_1.environmentToOption)(environment)}`,
|
|
560
|
+
permissionsMismatch: (environment) => `The scopes or egress URLs in the manifest are different from the scopes in your most recent deployment to ${(0, environment_1.environmentToOption)(environment)}. Try running ${chalk_1.default.bold(exports.Text.install.permissionMismatchCommandSuggestion(environment))} before installing.\n`,
|
|
561
|
+
multiProductScopesDetected: (productsToInstall, productsToUpgrade, site, environment) => `\nWe detected your app requires scopes across multiple products.\nRun ${chalk_1.default.bold('forge install')} for each of the following:\n${productsToUpgrade
|
|
562
|
+
.map((product) => `- forge install --upgrade -p ${(0, case_1.capital)(product)} -s ${site} -e ${(0, environment_1.environmentToOption)(environment)}`)
|
|
562
563
|
.join('\n')}${productsToUpgrade.length !== 0 && productsToInstall.length !== 0 ? '\n' : ''}${productsToInstall
|
|
563
|
-
.map((product) => `- forge install -p ${(0, case_1.capital)(product)} -s ${site} -e ${environmentToOption(environment)}`)
|
|
564
|
+
.map((product) => `- forge install -p ${(0, case_1.capital)(product)} -s ${site} -e ${(0, environment_1.environmentToOption)(environment)}`)
|
|
564
565
|
.join('\n')}`,
|
|
565
566
|
promptForPermissionsConfirmation: (permissionsMismatchInDevelopment) => permissionsMismatchInDevelopment
|
|
566
567
|
? 'Are you sure you want to continue installing the app?'
|
|
567
568
|
: 'Do you want to continue?',
|
|
568
569
|
success: {
|
|
569
|
-
banner: (envKey, envType,
|
|
570
|
+
banner: (envKey, envType, product, site) => `Your app in the ${exports.Text.env.displayEnvironment(envKey, envType)} environment is now installed in ${product} on ${buildTerminalLink(site)}`
|
|
570
571
|
},
|
|
571
572
|
error: {
|
|
572
573
|
invalidAtlassianSite: (url) => `The URL you entered doesn't belong to an Atlassian site: ` +
|
|
@@ -579,7 +580,7 @@ What do you like or don't like about Forge? Share your feedback below or press C
|
|
|
579
580
|
site: (url) => `Site is invalid: ${url}`,
|
|
580
581
|
alreadyInstalledError: `Installation error: App is already installed.\nIf you're trying to upgrade your app, use the ${chalk_1.default.bold('forge install --upgrade')} command.`,
|
|
581
582
|
serverSideInstallationError: (message) => `Installation error: ${message}`,
|
|
582
|
-
noDeploymentFound: (
|
|
583
|
+
noDeploymentFound: (environment) => `Forge apps must be deployed before installation. Deploy your app by running ${chalk_1.default.bold(`forge deploy -e ${(0, environment_1.environmentToOption)(environment)}`)}.`,
|
|
583
584
|
permissionsDeniedInstructions: (requestId, appId) => `Insufficient permissions to install app (requestId: ${requestId})` +
|
|
584
585
|
'\n\nTo install the app on this site, generate an installation link ' +
|
|
585
586
|
'in the developer console and share it with the site admin: ' +
|
|
@@ -615,7 +616,7 @@ ${buildTerminalLink(link)}\n`,
|
|
|
615
616
|
upgrade: {
|
|
616
617
|
banner: `\nUpgrading your app on the Atlassian site.\n`,
|
|
617
618
|
cmd: {
|
|
618
|
-
start: (envKey, envType
|
|
619
|
+
start: (envKey, envType) => `Upgrading your app in ${exports.Text.env.displayEnvironment(envKey, envType)}...`,
|
|
619
620
|
end: (displayTick) => `${displayTick ? greenTick + ' ' : ''}Upgrade complete!`,
|
|
620
621
|
error: `Upgrade failed`
|
|
621
622
|
},
|
|
@@ -628,11 +629,11 @@ ${buildTerminalLink(link)}\n`,
|
|
|
628
629
|
? 'Are you sure you want to continue upgrading the app?'
|
|
629
630
|
: 'Do you want to continue?',
|
|
630
631
|
success: {
|
|
631
|
-
banner: (envKey, envType,
|
|
632
|
+
banner: (envKey, envType, product, site) => `Your app in the ${exports.Text.env.displayEnvironment(envKey, envType)} environment is now the latest in ${product} on ${buildTerminalLink(site)}.`
|
|
632
633
|
},
|
|
633
634
|
alreadyUpdated: {
|
|
634
635
|
spinner: 'Site is already at the latest version',
|
|
635
|
-
banner: (environment,
|
|
636
|
+
banner: (environment, product, site) => `\nYour app in the ${(0, environment_1.environmentToOption)(environment)} environment is at the latest in ${product} on ${buildTerminalLink(site)}.`
|
|
636
637
|
},
|
|
637
638
|
error: {
|
|
638
639
|
serverSideInstallationError: (message) => `Upgrade error: ${message}`
|
|
@@ -648,7 +649,7 @@ ${buildTerminalLink(link)}\n`,
|
|
|
648
649
|
cmd: 'start a tunnel to connect your local code with the app running in the development environment',
|
|
649
650
|
optionDebugger: 'enable debugger mode',
|
|
650
651
|
preamble: 'Tunnel redirects requests you make to your local machine. This occurs for any Atlassian site where your app is installed in the specific development environment. You will not see requests from other users.',
|
|
651
|
-
startingTunnel: (environmentKey, envType
|
|
652
|
+
startingTunnel: (environmentKey, envType) => `Tunnelling to: ${exports.Text.env.displayEnvironment(environmentKey, envType)}`,
|
|
652
653
|
startedServer: (port, isDebug) => `Listening for requests${isDebug ? ' on local port ' + port : ''}...`,
|
|
653
654
|
startedTunnel: (tunnelUrl) => `Started tunnel at address: ${tunnelUrl}`,
|
|
654
655
|
stoppingTunnel: 'Stopping tunnel...',
|
|
@@ -718,8 +719,8 @@ Debugging in Google Chrome:
|
|
|
718
719
|
done: `\n${log_symbols_1.default.success} Apps uninstalled`
|
|
719
720
|
},
|
|
720
721
|
info: 'Uninstalling the app by installation ID.',
|
|
721
|
-
done: (product, domain, environment,
|
|
722
|
-
failed: (product, domain, environment
|
|
722
|
+
done: (product, domain, environment, isMulti) => `${isMulti ? log_symbols_1.default.info : log_symbols_1.default.success} Uninstalled from the ${(0, environment_1.environmentToOption)(environment)} environment in ${product} on ${buildTerminalLink(domain)}.`,
|
|
723
|
+
failed: (product, domain, environment) => `Failed to uninstall the app from the ${(0, environment_1.environmentToOption)(environment)} environment in ${product} on ${buildTerminalLink(domain)}. Try rerunning the command, or ask for help if you continue to see this error.`,
|
|
723
724
|
missingUninstallTask: `Cannot uninstall the app: something went wrong with starting the uninstall task.`
|
|
724
725
|
},
|
|
725
726
|
webtrigger: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forge/cli-shared",
|
|
3
|
-
"version": "3.13.0-next.
|
|
3
|
+
"version": "3.13.0-next.4",
|
|
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.14.0-next.
|
|
15
|
+
"@forge/manifest": "4.14.0-next.1",
|
|
16
16
|
"@forge/util": "1.2.3",
|
|
17
17
|
"@sentry/node": "^7.29.0",
|
|
18
18
|
"array.prototype.flatmap": "^1.2.3",
|