@forge/cli-shared 3.13.0-next.1 → 3.13.0-next.3
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 +12 -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 +34 -30
- package/out/ui/text.d.ts.map +1 -1
- package/out/ui/text.js +43 -37
- package/package.json +1 -1
|
@@ -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,28 +194,33 @@ 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;
|
|
211
|
+
warn: {
|
|
212
|
+
envWillBeCreated: (envKey: string) => string;
|
|
213
|
+
};
|
|
214
|
+
confirm: string;
|
|
212
215
|
};
|
|
213
216
|
defaultEnv: {
|
|
214
217
|
info: string;
|
|
215
218
|
prompt: string;
|
|
216
219
|
warn: string;
|
|
217
220
|
confirm: string;
|
|
218
|
-
setSuccess: (envKey: string, envType: AppEnvironmentType
|
|
219
|
-
createAndSetSuccess: (envKey: string, envType: AppEnvironmentType
|
|
221
|
+
setSuccess: (envKey: string, envType: AppEnvironmentType) => string;
|
|
222
|
+
createAndSetSuccess: (envKey: string, envType: AppEnvironmentType) => string;
|
|
223
|
+
settingsInfo: string;
|
|
220
224
|
};
|
|
221
225
|
varsSet: {
|
|
222
226
|
cmd: {
|
|
@@ -224,7 +228,7 @@ export declare const Text: {
|
|
|
224
228
|
start: string;
|
|
225
229
|
success: string;
|
|
226
230
|
};
|
|
227
|
-
overview: (environment: string, environmentType: AppEnvironmentType
|
|
231
|
+
overview: (environment: string, environmentType: AppEnvironmentType) => string;
|
|
228
232
|
encryptInfo: string;
|
|
229
233
|
promptEncrypt: string;
|
|
230
234
|
keyInfo: string;
|
|
@@ -237,16 +241,16 @@ export declare const Text: {
|
|
|
237
241
|
varsUnset: {
|
|
238
242
|
cmd: {
|
|
239
243
|
desc: string;
|
|
240
|
-
start: (environment: string, envType: AppEnvironmentType
|
|
244
|
+
start: (environment: string, envType: AppEnvironmentType) => string;
|
|
241
245
|
success: (key: string) => string;
|
|
242
246
|
};
|
|
243
247
|
};
|
|
244
248
|
varsList: {
|
|
245
249
|
hint: string;
|
|
246
250
|
cmd: string;
|
|
247
|
-
empty: (environment: string, envType: AppEnvironmentType
|
|
251
|
+
empty: (environment: string, envType: AppEnvironmentType) => string;
|
|
248
252
|
encryptedValue: string;
|
|
249
|
-
overview: (environment: string, envType: AppEnvironmentType
|
|
253
|
+
overview: (environment: string, envType: AppEnvironmentType) => string;
|
|
250
254
|
postfix: string;
|
|
251
255
|
};
|
|
252
256
|
providers: {
|
|
@@ -258,7 +262,7 @@ export declare const Text: {
|
|
|
258
262
|
start: string;
|
|
259
263
|
success: string;
|
|
260
264
|
};
|
|
261
|
-
overview: (environment: string
|
|
265
|
+
overview: (environment: string) => string;
|
|
262
266
|
providerKeyInfo: string;
|
|
263
267
|
noProviders: string;
|
|
264
268
|
promptProviderKey: string;
|
|
@@ -272,7 +276,7 @@ export declare const Text: {
|
|
|
272
276
|
cmd: {
|
|
273
277
|
desc: string;
|
|
274
278
|
start: string;
|
|
275
|
-
success: (envKey: string, envType: AppEnvironmentType
|
|
279
|
+
success: (envKey: string, envType: AppEnvironmentType) => string;
|
|
276
280
|
};
|
|
277
281
|
overview: string;
|
|
278
282
|
promptEnvironmentKey: string;
|
|
@@ -295,12 +299,12 @@ export declare const Text: {
|
|
|
295
299
|
prompt: string;
|
|
296
300
|
confirmationInfo: string;
|
|
297
301
|
promptConfirmation: string;
|
|
298
|
-
individualSuccessMessage: (envKey: string, envType: AppEnvironmentType
|
|
302
|
+
individualSuccessMessage: (envKey: string, envType: AppEnvironmentType) => string;
|
|
299
303
|
successMessage: string;
|
|
300
304
|
optionEnvironmentKey: string;
|
|
301
305
|
warningMessage: string;
|
|
302
306
|
noEnvironmentMessage: string;
|
|
303
|
-
hasInstallationError: (envKey: string
|
|
307
|
+
hasInstallationError: (envKey: string) => string;
|
|
304
308
|
};
|
|
305
309
|
storage: {
|
|
306
310
|
cmd: {
|
|
@@ -382,10 +386,10 @@ export declare const Text: {
|
|
|
382
386
|
deploy: {
|
|
383
387
|
cmd: {
|
|
384
388
|
desc: string;
|
|
385
|
-
start1: (envKey: string,
|
|
386
|
-
start2: (appName: string, envKey: string, envType: AppEnvironmentType
|
|
389
|
+
start1: (envKey: string, envType: AppEnvironmentType) => string;
|
|
390
|
+
start2: (appName: string, envKey: string, envType: AppEnvironmentType) => string;
|
|
387
391
|
success: string;
|
|
388
|
-
successDetails: (appName: string, envKey: string, envType: AppEnvironmentType
|
|
392
|
+
successDetails: (appName: string, envKey: string, envType: AppEnvironmentType) => string;
|
|
389
393
|
distributePageLink: (appId: string) => string;
|
|
390
394
|
};
|
|
391
395
|
taskLint: {
|
|
@@ -433,7 +437,7 @@ export declare const Text: {
|
|
|
433
437
|
install: {
|
|
434
438
|
cmd: {
|
|
435
439
|
description: string;
|
|
436
|
-
start: (envKey: string, envType: AppEnvironmentType
|
|
440
|
+
start: (envKey: string, envType: AppEnvironmentType) => string;
|
|
437
441
|
end: (displayTick: boolean) => string;
|
|
438
442
|
};
|
|
439
443
|
booleanToScope: (isLatest: boolean) => string;
|
|
@@ -442,11 +446,12 @@ export declare const Text: {
|
|
|
442
446
|
optionUpgrade: string;
|
|
443
447
|
listScopes: (scopes: AddedScope[]) => string;
|
|
444
448
|
listEgressAddresses: (egressAddresses: string[]) => string;
|
|
449
|
+
permissionMismatchCommandSuggestion: (environment: string) => string;
|
|
445
450
|
permissionsMismatch: (environment: string) => string;
|
|
446
|
-
multiProductScopesDetected: (productsToInstall: string[], productsToUpgrade: string[], site: string, environment: string
|
|
451
|
+
multiProductScopesDetected: (productsToInstall: string[], productsToUpgrade: string[], site: string, environment: string) => string;
|
|
447
452
|
promptForPermissionsConfirmation: (permissionsMismatchInDevelopment: boolean) => string;
|
|
448
453
|
success: {
|
|
449
|
-
banner: (envKey: string, envType: AppEnvironmentType,
|
|
454
|
+
banner: (envKey: string, envType: AppEnvironmentType, product: string, site: string) => string;
|
|
450
455
|
};
|
|
451
456
|
error: {
|
|
452
457
|
invalidAtlassianSite: (url: URL) => string;
|
|
@@ -455,7 +460,7 @@ export declare const Text: {
|
|
|
455
460
|
site: (url: string) => string;
|
|
456
461
|
alreadyInstalledError: string;
|
|
457
462
|
serverSideInstallationError: (message: string) => string;
|
|
458
|
-
noDeploymentFound: (
|
|
463
|
+
noDeploymentFound: (environment: string) => string;
|
|
459
464
|
permissionsDeniedInstructions: (requestId: string, appId: string) => string;
|
|
460
465
|
};
|
|
461
466
|
security: {
|
|
@@ -476,7 +481,7 @@ export declare const Text: {
|
|
|
476
481
|
upgrade: {
|
|
477
482
|
banner: string;
|
|
478
483
|
cmd: {
|
|
479
|
-
start: (envKey: string, envType: AppEnvironmentType
|
|
484
|
+
start: (envKey: string, envType: AppEnvironmentType) => string;
|
|
480
485
|
end: (displayTick: boolean) => string;
|
|
481
486
|
error: string;
|
|
482
487
|
};
|
|
@@ -485,11 +490,11 @@ export declare const Text: {
|
|
|
485
490
|
permissionsMismatch: (environment: string) => string;
|
|
486
491
|
promptForPermissionsConfirmation: (permissionsMismatchInDevelopment: boolean) => string;
|
|
487
492
|
success: {
|
|
488
|
-
banner: (envKey: string, envType: AppEnvironmentType,
|
|
493
|
+
banner: (envKey: string, envType: AppEnvironmentType, product: string, site: string) => string;
|
|
489
494
|
};
|
|
490
495
|
alreadyUpdated: {
|
|
491
496
|
spinner: string;
|
|
492
|
-
banner: (environment: string,
|
|
497
|
+
banner: (environment: string, product: string, site: string) => string;
|
|
493
498
|
};
|
|
494
499
|
error: {
|
|
495
500
|
serverSideInstallationError: (message: string) => string;
|
|
@@ -505,7 +510,7 @@ export declare const Text: {
|
|
|
505
510
|
cmd: string;
|
|
506
511
|
optionDebugger: string;
|
|
507
512
|
preamble: string;
|
|
508
|
-
startingTunnel: (environmentKey: string, envType: AppEnvironmentType
|
|
513
|
+
startingTunnel: (environmentKey: string, envType: AppEnvironmentType) => string;
|
|
509
514
|
startedServer: (port: number, isDebug: boolean) => string;
|
|
510
515
|
startedTunnel: (tunnelUrl: string) => string;
|
|
511
516
|
stoppingTunnel: string;
|
|
@@ -567,8 +572,8 @@ export declare const Text: {
|
|
|
567
572
|
done: string;
|
|
568
573
|
};
|
|
569
574
|
info: string;
|
|
570
|
-
done: (product: string, domain: string, environment: string,
|
|
571
|
-
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;
|
|
572
577
|
missingUninstallTask: string;
|
|
573
578
|
};
|
|
574
579
|
webtrigger: {
|
|
@@ -655,5 +660,4 @@ export declare const Text: {
|
|
|
655
660
|
};
|
|
656
661
|
};
|
|
657
662
|
};
|
|
658
|
-
export {};
|
|
659
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,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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;;;;;;;;;;;;;;;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,28 +255,33 @@ 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);
|
|
271
|
-
}
|
|
270
|
+
return (0, environment_1.environmentToOption)(envKey);
|
|
271
|
+
},
|
|
272
|
+
warn: {
|
|
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.`
|
|
274
|
+
},
|
|
275
|
+
confirm: 'Do you want to continue?'
|
|
272
276
|
},
|
|
273
277
|
defaultEnv: {
|
|
274
278
|
info: 'You do not currently have a default development environment set. A default development environment is required to run commands without specifying an environment.',
|
|
275
279
|
prompt: 'Enter a name for your default development environment:',
|
|
276
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.`,
|
|
277
281
|
confirm: 'Do you want to continue?',
|
|
278
|
-
setSuccess: (envKey, envType
|
|
279
|
-
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
|
+
settingsInfo: `You can change your default development environment later by running ${chalk_1.default.bold('forge settings set')}.`
|
|
280
285
|
},
|
|
281
286
|
varsSet: {
|
|
282
287
|
cmd: {
|
|
@@ -284,7 +289,7 @@ What do you like or don't like about Forge? Share your feedback below or press C
|
|
|
284
289
|
start: 'Setting environment variable...',
|
|
285
290
|
success: 'Environment variable set.'
|
|
286
291
|
},
|
|
287
|
-
overview: (environment, environmentType
|
|
292
|
+
overview: (environment, environmentType) => `Setting the value of a variable in the ${exports.Text.env.displayEnvironment(environment, environmentType)} environment.`,
|
|
288
293
|
encryptInfo: 'Encrypting a variable means that the value will not be shown in the terminal.',
|
|
289
294
|
promptEncrypt: `Select if you want the value encrypted:`,
|
|
290
295
|
keyInfo: 'Use a new key to create a variable, or use an existing key to override a variable.',
|
|
@@ -297,16 +302,16 @@ What do you like or don't like about Forge? Share your feedback below or press C
|
|
|
297
302
|
varsUnset: {
|
|
298
303
|
cmd: {
|
|
299
304
|
desc: 'remove an environment variable',
|
|
300
|
-
start: (environment, envType
|
|
305
|
+
start: (environment, envType) => `Unsetting the variable in the ${exports.Text.env.displayEnvironment(environment, envType)} environment.`,
|
|
301
306
|
success: (key) => `\n${greenTick} ${key} variable removed.`
|
|
302
307
|
}
|
|
303
308
|
},
|
|
304
309
|
varsList: {
|
|
305
310
|
hint: `\nRun ${chalk_1.default.bold('forge variables list')} to see your environment variables.\n`,
|
|
306
311
|
cmd: 'list the environment variables',
|
|
307
|
-
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`,
|
|
308
313
|
encryptedValue,
|
|
309
|
-
overview: (environment, envType
|
|
314
|
+
overview: (environment, envType) => `Showing variables from the ${exports.Text.env.displayEnvironment(environment, envType)} environment:\n`,
|
|
310
315
|
postfix: `\nNote, the values of encrypted variables are shown as ${encryptedValue}.\n`
|
|
311
316
|
},
|
|
312
317
|
providers: {
|
|
@@ -318,7 +323,7 @@ What do you like or don't like about Forge? Share your feedback below or press C
|
|
|
318
323
|
start: 'Configuring provider credentials...',
|
|
319
324
|
success: 'oauth provider credentials configuration is finished.'
|
|
320
325
|
},
|
|
321
|
-
overview: (environment
|
|
326
|
+
overview: (environment) => `Configuring provider in the ${(0, environment_1.environmentToOption)(environment)} environment.`,
|
|
322
327
|
providerKeyInfo: 'Use a provider key from the list for configuration.',
|
|
323
328
|
noProviders: "Count't find providers in the manifest file. Add one.",
|
|
324
329
|
promptProviderKey: 'Select provider to configure:',
|
|
@@ -332,7 +337,7 @@ What do you like or don't like about Forge? Share your feedback below or press C
|
|
|
332
337
|
cmd: {
|
|
333
338
|
desc: 'create a new development environment',
|
|
334
339
|
start: 'Creating environment...',
|
|
335
|
-
success: (envKey, envType
|
|
340
|
+
success: (envKey, envType) => `Created ${exports.Text.env.displayEnvironment(envKey, envType)}`
|
|
336
341
|
},
|
|
337
342
|
overview: 'Create a new development environment.',
|
|
338
343
|
promptEnvironmentKey: 'Enter a name for your environment:',
|
|
@@ -355,12 +360,12 @@ What do you like or don't like about Forge? Share your feedback below or press C
|
|
|
355
360
|
prompt: 'Select development environment:',
|
|
356
361
|
confirmationInfo: 'You are deleting the following environment(s):',
|
|
357
362
|
promptConfirmation: 'Do you want to continue?',
|
|
358
|
-
individualSuccessMessage: (envKey, envType
|
|
363
|
+
individualSuccessMessage: (envKey, envType) => `${log_symbols_1.default.info} ${exports.Text.env.displayEnvironment(envKey, envType)} deleted successfully.`,
|
|
359
364
|
successMessage: 'Environment(s) deleted.',
|
|
360
365
|
optionEnvironmentKey: 'specify the environment to delete',
|
|
361
366
|
warningMessage: `${chalk_1.default.bold('Warning:')} When deleting a development environment, you may impact in progress deployments or tunnels.`,
|
|
362
367
|
noEnvironmentMessage: 'There are no development environments to delete.',
|
|
363
|
-
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')}.`
|
|
364
369
|
},
|
|
365
370
|
storage: {
|
|
366
371
|
cmd: {
|
|
@@ -442,10 +447,10 @@ What do you like or don't like about Forge? Share your feedback below or press C
|
|
|
442
447
|
deploy: {
|
|
443
448
|
cmd: {
|
|
444
449
|
desc: 'deploy your app to an environment',
|
|
445
|
-
start1: (envKey,
|
|
446
|
-
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)}...`,
|
|
447
452
|
success: 'Deployed\n',
|
|
448
|
-
successDetails: (appName, envKey, envType
|
|
453
|
+
successDetails: (appName, envKey, envType) => `Deployed ${appName} to the ${exports.Text.env.displayEnvironment(envKey, envType)} environment.`,
|
|
449
454
|
distributePageLink: (appId) => `To install on a site that you're an admin of, run ${chalk_1.default.bold('forge install')}.\n` +
|
|
450
455
|
'To install on any other site, generate an installation link in the developer console and share it with the site admin: ' +
|
|
451
456
|
`https://developer.atlassian.com/console/myapps/${appId}/distribution`
|
|
@@ -493,7 +498,7 @@ What do you like or don't like about Forge? Share your feedback below or press C
|
|
|
493
498
|
outdatedInstallations: `We've detected new scopes or egress URLs in your app.\n` +
|
|
494
499
|
`Run ${chalk_1.default.bold('forge install --upgrade')} and restart your tunnel to put them into effect.`,
|
|
495
500
|
listIndexes: (environment) => {
|
|
496
|
-
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)}`);
|
|
497
502
|
return (`Run ${indexCommand} to check the status of the indexes.`);
|
|
498
503
|
},
|
|
499
504
|
egressURL: {
|
|
@@ -540,7 +545,7 @@ What do you like or don't like about Forge? Share your feedback below or press C
|
|
|
540
545
|
install: {
|
|
541
546
|
cmd: {
|
|
542
547
|
description: 'manage app installations',
|
|
543
|
-
start: (envKey, envType
|
|
548
|
+
start: (envKey, envType) => `Installing your app on to ${exports.Text.env.displayEnvironment(envKey, envType)}...`,
|
|
544
549
|
end: (displayTick) => `${displayTick ? greenTick + ' ' : ''}Install complete!`
|
|
545
550
|
},
|
|
546
551
|
booleanToScope: (isLatest) => (isLatest ? `Latest` : `Out-of-date`),
|
|
@@ -551,17 +556,18 @@ What do you like or don't like about Forge? Share your feedback below or press C
|
|
|
551
556
|
.map(({ name, requiresInteractiveConsent }) => `- ${name}${requiresInteractiveConsent ? ' (requires interactive consent)' : ''}`)
|
|
552
557
|
.join('\n')}\n`,
|
|
553
558
|
listEgressAddresses: (egressAddresses) => `Your app will exchange data with the following urls:\n${egressAddresses.map((url) => `- ${url}`).join('\n')}\n`,
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
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)}`)
|
|
557
563
|
.join('\n')}${productsToUpgrade.length !== 0 && productsToInstall.length !== 0 ? '\n' : ''}${productsToInstall
|
|
558
|
-
.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)}`)
|
|
559
565
|
.join('\n')}`,
|
|
560
566
|
promptForPermissionsConfirmation: (permissionsMismatchInDevelopment) => permissionsMismatchInDevelopment
|
|
561
567
|
? 'Are you sure you want to continue installing the app?'
|
|
562
568
|
: 'Do you want to continue?',
|
|
563
569
|
success: {
|
|
564
|
-
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)}`
|
|
565
571
|
},
|
|
566
572
|
error: {
|
|
567
573
|
invalidAtlassianSite: (url) => `The URL you entered doesn't belong to an Atlassian site: ` +
|
|
@@ -574,7 +580,7 @@ What do you like or don't like about Forge? Share your feedback below or press C
|
|
|
574
580
|
site: (url) => `Site is invalid: ${url}`,
|
|
575
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.`,
|
|
576
582
|
serverSideInstallationError: (message) => `Installation error: ${message}`,
|
|
577
|
-
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)}`)}.`,
|
|
578
584
|
permissionsDeniedInstructions: (requestId, appId) => `Insufficient permissions to install app (requestId: ${requestId})` +
|
|
579
585
|
'\n\nTo install the app on this site, generate an installation link ' +
|
|
580
586
|
'in the developer console and share it with the site admin: ' +
|
|
@@ -610,7 +616,7 @@ ${buildTerminalLink(link)}\n`,
|
|
|
610
616
|
upgrade: {
|
|
611
617
|
banner: `\nUpgrading your app on the Atlassian site.\n`,
|
|
612
618
|
cmd: {
|
|
613
|
-
start: (envKey, envType
|
|
619
|
+
start: (envKey, envType) => `Upgrading your app in ${exports.Text.env.displayEnvironment(envKey, envType)}...`,
|
|
614
620
|
end: (displayTick) => `${displayTick ? greenTick + ' ' : ''}Upgrade complete!`,
|
|
615
621
|
error: `Upgrade failed`
|
|
616
622
|
},
|
|
@@ -623,11 +629,11 @@ ${buildTerminalLink(link)}\n`,
|
|
|
623
629
|
? 'Are you sure you want to continue upgrading the app?'
|
|
624
630
|
: 'Do you want to continue?',
|
|
625
631
|
success: {
|
|
626
|
-
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)}.`
|
|
627
633
|
},
|
|
628
634
|
alreadyUpdated: {
|
|
629
635
|
spinner: 'Site is already at the latest version',
|
|
630
|
-
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)}.`
|
|
631
637
|
},
|
|
632
638
|
error: {
|
|
633
639
|
serverSideInstallationError: (message) => `Upgrade error: ${message}`
|
|
@@ -643,7 +649,7 @@ ${buildTerminalLink(link)}\n`,
|
|
|
643
649
|
cmd: 'start a tunnel to connect your local code with the app running in the development environment',
|
|
644
650
|
optionDebugger: 'enable debugger mode',
|
|
645
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.',
|
|
646
|
-
startingTunnel: (environmentKey, envType
|
|
652
|
+
startingTunnel: (environmentKey, envType) => `Tunnelling to: ${exports.Text.env.displayEnvironment(environmentKey, envType)}`,
|
|
647
653
|
startedServer: (port, isDebug) => `Listening for requests${isDebug ? ' on local port ' + port : ''}...`,
|
|
648
654
|
startedTunnel: (tunnelUrl) => `Started tunnel at address: ${tunnelUrl}`,
|
|
649
655
|
stoppingTunnel: 'Stopping tunnel...',
|
|
@@ -713,8 +719,8 @@ Debugging in Google Chrome:
|
|
|
713
719
|
done: `\n${log_symbols_1.default.success} Apps uninstalled`
|
|
714
720
|
},
|
|
715
721
|
info: 'Uninstalling the app by installation ID.',
|
|
716
|
-
done: (product, domain, environment,
|
|
717
|
-
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.`,
|
|
718
724
|
missingUninstallTask: `Cannot uninstall the app: something went wrong with starting the uninstall task.`
|
|
719
725
|
},
|
|
720
726
|
webtrigger: {
|