@forge/cli-shared 6.6.0-next.7 → 6.6.0-next.9
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 +14 -0
- package/out/ari/ari.d.ts +4 -9
- package/out/ari/ari.d.ts.map +1 -1
- package/out/ari/ari.js +8 -22
- package/out/graphql/graphql-types.d.ts +48 -1
- package/out/graphql/graphql-types.d.ts.map +1 -1
- package/out/graphql/graphql-types.js +16 -8
- package/out/service/index.d.ts +1 -0
- package/out/service/index.d.ts.map +1 -1
- package/out/service/index.js +1 -0
- package/out/service/statsig-service.d.ts +2 -1
- package/out/service/statsig-service.d.ts.map +1 -1
- package/out/service/statsig-service.js +3 -0
- package/out/service/supported-products-service.d.ts +28 -0
- package/out/service/supported-products-service.d.ts.map +1 -0
- package/out/service/supported-products-service.js +112 -0
- package/out/shared/index.d.ts +0 -1
- package/out/shared/index.d.ts.map +1 -1
- package/out/shared/index.js +0 -1
- package/out/shared/product.d.ts +3 -11
- package/out/shared/product.d.ts.map +1 -1
- package/out/shared/product.js +18 -32
- package/out/ui/text.d.ts +1 -1
- package/out/ui/text.js +1 -1
- package/package.json +2 -2
- package/out/shared/validate.d.ts +0 -3
- package/out/shared/validate.d.ts.map +0 -1
- package/out/shared/validate.js +0 -24
|
@@ -16,14 +16,14 @@ exports.JiraAtlassianIntelligenceFeatureEnum = exports.JiraApprovalDecision = ex
|
|
|
16
16
|
exports.JiraFormattingSingleValueOperator = exports.JiraFormattingNoValueOperator = exports.JiraFormattingMultipleValueOperator = exports.JiraFormattingColor = exports.JiraFormattingArea = exports.JiraForgeEnvironmentType = exports.JiraFieldOptionIdsFilterOperation = exports.JiraFavouriteType = exports.JiraEntityScope = exports.JiraEmailMimeType = exports.JiraDevOpsUpdateAssociationsEntityType = exports.JiraDevOpsIssuePanelState = exports.JiraDevOpsIssuePanelBannerType = exports.JiraDevOpsInContextConfigPromptLocation = exports.JiraDevOpsCapability = exports.JiraDevInfoConfigErrorType = exports.JiraDeploymentsFeaturePrecondition = exports.JiraCustomIssueSearchErrorType = exports.JiraContactOrgAdminToEnableAtlassianIntelligenceState = exports.JiraConfigStateProviderType = exports.JiraConfigStateConfigurationStatus = exports.JiraConfigFieldType = exports.JiraCommentSortField = exports.JiraColorSchemeThemeSetting = exports.JiraCmdbAttributeType = exports.JiraClassificationLevelType = exports.JiraClassificationLevelStatus = exports.JiraClassificationLevelSource = exports.JiraCascadingSelectOptionType = exports.JiraCannedResponseSortOrder = exports.JiraCannedResponseScope = exports.JiraCalendarWeekStart = exports.JiraCalendarPermissionKey = exports.JiraCalendarMode = exports.JiraBulkOperationType = exports.JiraBulkEditMultiSelectFieldOptions = exports.JiraBoardType = exports.JiraBoardLocationType = exports.JiraBitbucketWorkspaceApprovalState = exports.JiraBatchWindowPreference = exports.JiraBackgroundType = exports.JiraAutofixStatus = exports.JiraAutofixJobType = exports.JiraAutodevStatus = exports.JiraAutodevState = exports.JiraAutodevPhase = exports.JiraAutodevCodeChangeEnumType = exports.JiraAttachmentsPermissions = exports.JiraAttachmentSortField = exports.JiraAttachmentParentName = void 0;
|
|
17
17
|
exports.JiraPermissionTagEnum = exports.JiraPermissionMessageTypeEnum = exports.JiraOverviewPlanMigrationChangeboardingStatus = exports.JiraOrganizationApprovalLocation = exports.JiraOAuthAppsInstallationStatus = exports.JiraNotificationType = exports.JiraNotificationChannelType = exports.JiraNotificationCategoryType = exports.JiraNavigationItemTypeKey = exports.JiraMultiValueFieldOperations = exports.JiraLongRunningTaskStatus = exports.JiraLinkIssuesToIncidentIssueLinkTypeName = exports.JiraJqlViewContext = exports.JiraJqlSyntaxError = exports.JiraJqlOperator = exports.JiraJqlFunctionStatus = exports.JiraJqlClauseType = exports.JiraJqlBuilderMode = exports.JiraJqlAutocompleteType = exports.JiraJourneyTriggerType = exports.JiraJourneyStatusDependencyType = exports.JiraJourneyStatus = exports.JiraJourneyParentIssueType = exports.JiraJqlBuilderSearchMode = exports.JiraIteration = exports.JiraIssueViewTimestampDisplayMode = exports.JiraIssueViewAttachmentPanelViewMode = exports.JiraIssueViewActivityLayout = exports.JiraIssueViewActivityFeedSortOrder = exports.JiraIssueTransitionLayoutMessageType = exports.JiraIssueTransitionCommentType = exports.JiraIssueSearchOperationScope = exports.JiraIssueSearchFieldSetSelectedState = exports.JiraIssueNavigatorSearchLayout = exports.JiraIssueModuleType = exports.JiraIssueLinkDirection = exports.JiraIssueLifecycleState = exports.JiraIssueItemSystemContainerType = exports.JiraIssueItemLayoutItemLocationRuleType = exports.JiraIssueExportType = exports.JiraIssueDeploymentEnvironmentState = exports.JiraInstallDeploymentsBannerPrecondition = exports.JiraIncidentPriority = exports.JiraHomePageType = exports.JiraGroupsContext = exports.JiraGrantTypeKeyEnum = exports.JiraGoalStatus = exports.JiraGlobalPermissionType = exports.JiraGlobalIssueCreateView = exports.JiraFormattingTwoValueOperator = void 0;
|
|
18
18
|
exports.JiraServiceManagementRequestTypeCategoryStatus = exports.JiraServiceManagementRequestTypeCategoryRestriction = exports.JiraServiceManagementRendererType = exports.JiraServiceManagementPractice = exports.JiraServiceManagementMajorIncident = exports.JiraServiceManagementCreateRequestTypeFromTemplateWorkflowInputType = exports.JiraServiceManagementCreateRequestTypeFromTemplateWorkflowAction = exports.JiraServiceManagementCreateRequestTypeFromTemplateRequestFormInputType = exports.JiraServiceManagementCommentVisibility = exports.JiraServiceManagementApprovalState = exports.JiraServiceManagementApprovalDecisionResponseType = exports.JiraSearchableEntityType = exports.JiraScenarioType = exports.JiraReviewState = exports.JiraResourceUsageRecommendationStatus = exports.JiraResourceUsageCustomFieldRecommendationAction = exports.JiraReorderBoardViewColumnPosition = exports.JiraReleasesIssueReleaseStatusFilter = exports.JiraReleasesEpicReleaseStatusFilter = exports.JiraReleaseNotesIssueKeyConfig = exports.JiraRedactionSortField = exports.JiraRecommendationCategory = exports.JiraRankMutationEdge = exports.JiraPullRequestState = exports.JiraProjectsHelpCenterMappingStatus = exports.JiraProjectType = exports.JiraProjectStyle = exports.JiraProjectStatus = exports.JiraProjectSortField = exports.JiraProjectShortcutType = exports.JiraProjectRoleActorUserStatus = exports.JiraProjectRoleActorRecommendationAction = exports.JiraProjectPermissionType = exports.JiraProjectPermissionCategoryEnum = exports.JiraProjectNotificationConfigurationState = exports.JiraProjectListRightPanelState = exports.JiraProjectDateTimeFormat = exports.JiraProjectCleanupTaskStatusType = exports.JiraProjectCleanupRecommendationStaleSince = exports.JiraProjectCleanupRecommendationAction = exports.JiraProjectActionType = exports.JiraProductEnum = exports.JiraPlaybooksSortBy = exports.JiraPlaybookStepType = exports.JiraPlaybookStepRunStatus = exports.JiraPlaybookStateField = exports.JiraPlaybookScopeType = exports.JiraPlaybookIssueFilterType = exports.JiraPlanStatus = exports.JiraPermissionType = void 0;
|
|
19
|
-
exports.
|
|
20
|
-
exports.
|
|
21
|
-
exports.
|
|
22
|
-
exports.
|
|
23
|
-
exports.
|
|
24
|
-
exports.
|
|
25
|
-
exports.
|
|
26
|
-
exports.SourceBillingType = exports.WorkSuggestionsVulnerabilityStatus = exports.WorkSuggestionsUserPersona = exports.WorkSuggestionsTargetAudience = exports.WorkSuggestionsEnvironmentType = exports.WorkSuggestionsAutoDevJobState = exports.WorkSuggestionsApprovalStatus = exports.WorkSuggestionsAction = exports.VirtualAgentIntentTemplateType = exports.VirtualAgentIntentStatus = exports.VirtualAgentConversationState = exports.VirtualAgentConversationCsatOptionType = exports.VirtualAgentConversationChannel = exports.VirtualAgentConversationActionType = exports.UserInstallationRuleValue = exports.UnifiedSortDirection = exports.UnifiedLearningCertificationType = exports.UnifiedLearningCertificationStatus = exports.UnifiedLearningCertificationSortField = void 0;
|
|
19
|
+
exports.KnowledgeDiscoveryKeyPhraseCategory = exports.KnowledgeDiscoveryEntityType = exports.KnowledgeDiscoveryDefinitionScope = exports.KnowledgeDiscoveryBookmarkState = exports.KnowledgeBaseSpacePermissionType = exports.JsmChatWebInteractionType = exports.JsmChatWebConversationUserRole = exports.JsmChatWebConversationMessageContentType = exports.JsmChatWebConversationActions = exports.JsmChatWebChannelExperienceId = exports.JsmChatMessageType = exports.JsmChatMessageSource = exports.JsmChatCreateWebConversationUserRole = exports.JsmChatCreateWebConversationMessageContentType = exports.JsmChatConversationChannelType = exports.JsmChatConversationAnalyticsEvent = exports.JsmChatConnectedApps = exports.JsmChatChannelType = exports.JsmChatChannelExperienceId = exports.JiraWorklogAdjustmentEstimateOperation = exports.JiraWorkManagementUserLicenseSeatEdition = exports.JiraWorkManagementBackgroundType = exports.JiraWatchesOperations = exports.JiraVotesOperations = exports.JiraVisibilityControlMechanism = exports.JiraVersionWarningConfigState = exports.JiraVersionWarningCategories = exports.JiraVersionStatus = exports.JiraVersionSortField = exports.JiraVersionReleaseNotesType = exports.JiraVersionRelatedWorkType = exports.JiraVersionIssuesStatusCategories = exports.JiraVersionIssuesSortField = exports.JiraVersionIssuesFilter = exports.JiraVersionIssueTableColumn = exports.JiraVersionDetailsCollapsedUi = exports.JiraVersionApproverStatus = exports.JiraUiModificationsViewType = exports.JiraTransitionSortOption = exports.JiraTimeUnit = exports.JiraTimeFormat = exports.JiraSyntheticFieldCardOptionType = exports.JiraSuggestedIssueFieldValueError = exports.JiraSuggestedIssueErrorType = exports.JiraSuggestedChildIssueStatusType = exports.JiraStatusCategoryColor = exports.JiraSprintState = exports.JiraSoftwareIssueSearchCustomInputContext = exports.JiraSingleValueFieldOperations = exports.JiraShareableEntityGrant = void 0;
|
|
20
|
+
exports.MarketplaceStoreDeveloperSpaceStatus = exports.MarketplaceStoreBillingSystem = exports.MarketplaceStoreAtlassianProductHostingType = exports.MarketplaceProgramStatus = exports.MarketplacePricingTierType = exports.MarketplacePricingTierPolicy = exports.MarketplacePricingTierMode = exports.MarketplacePricingPlanStatus = exports.MarketplacePartnerType = exports.MarketplacePartnerTierType = exports.MarketplacePartnerSupportHolidayFrequency = exports.MarketplaceLocation = exports.MarketplaceListingStatus = exports.MarketplaceEntityStatus = exports.MarketplaceConsolePricingPlanStatus = exports.MarketplaceConsolePricingCurrency = exports.MarketplaceConsolePluginFrameworkType = exports.MarketplaceConsolePaymentModel = exports.MarketplaceConsoleParentSoftwareState = exports.MarketplaceConsoleLegacyMongoStatus = exports.MarketplaceConsoleLegacyMongoPluginHiddenIn = exports.MarketplaceConsoleHosting = exports.MarketplaceConsoleEditionsActivationStatus = exports.MarketplaceConsoleEditionType = exports.MarketplaceConsoleDevSpaceTier = exports.MarketplaceConsoleDevSpaceProgram = exports.MarketplaceConsoleAppSoftwareVersionState = exports.MarketplaceConsoleAppSoftwareVersionLicenseTypeId = exports.MarketplaceConsoleAsvlLegacyVersionStatus = exports.MarketplaceConsoleAsvlLegacyVersionApprovalStatus = exports.MarketplaceCloudFortifiedStatus = exports.MarketplaceBillingCycle = exports.MarketplaceAppVersionVisibility = exports.MarketplaceAppPaymentModel = exports.LpSortOrder = exports.LpCourseStatus = exports.LpCourseSortField = exports.LpCertType = exports.LpCertStatus = exports.LpCertSortField = exports.LoomUserStatus = exports.LoomMeetingSource = exports.LifecycleStage = exports.LicenseStatus = exports.LicenseOverrideState = exports.KnowledgeDiscoveryTopicType = exports.KnowledgeDiscoverySearchQueryClassificationSubtype = exports.KnowledgeDiscoverySearchQueryClassification = exports.KnowledgeDiscoveryRelatedEntityActionType = exports.KnowledgeDiscoveryKeyPhraseInputTextFormat = void 0;
|
|
21
|
+
exports.PageAnalyticsCountType = exports.PageActivityActionSubject = exports.PageActivityAction = exports.PtGraphQlPageStatus = exports.PeapProgramStatus = exports.OutputDeviceType = exports.Operation = exports.NumberUserInputType = exports.NotificationAction = exports.NlpSearchResultType = exports.NlpSearchResultFormat = exports.NlpGetKeywordsTextFormat = exports.NlpErrorState = exports.NlpDisclaimer = exports.NadelHydrationTemplate = exports.MobilePlatform = exports.MissionControlMetricSuggestion = exports.MissionControlFeatureDiscoverySuggestion = exports.MigrationEventType = exports.MigrationEventStatus = exports.MercuryTeamSortField = exports.MercuryTeamFocusAreaAllocationSortField = exports.MercuryTargetDateType = exports.MercuryProviderWorkTargetDateType = exports.MercuryProviderWorkStatusColor = exports.MercuryProviderWorkErrorType = exports.MercuryProviderConfigurationStatus = exports.MercuryProjectTargetDateType = exports.MercuryProjectStatusColor = exports.MercuryFocusAreaTeamAllocationAggregationSortField = exports.MercuryFocusAreaSortField = exports.MercuryFocusAreaHierarchySortField = exports.MercuryFocusAreaHealthColor = exports.MercuryEventType = exports.MercuryEntityType = exports.MercuryAggregatedHeadcountSortField = exports.MembershipState = exports.MembershipSetting = exports.MembershipRole = exports.MarketplaceStoreReviewsSorting = exports.MarketplaceStorePricingCurrency = exports.MarketplaceStorePartnerSupportAvailabilityDay = exports.MarketplaceStorePartnerEnrollmentProgramValue = exports.MarketplaceStorePartnerEnrollmentProgram = exports.MarketplaceStoreInstallationTargetProduct = exports.MarketplaceStoreInstallAppStatus = exports.MarketplaceStoreHostInstanceType = exports.MarketplaceStoreHomePageHighlightedSectionVariation = exports.MarketplaceStoreEnterpriseProduct = exports.MarketplaceStoreEditionType = void 0;
|
|
22
|
+
exports.PushNotificationSettingGroup = exports.PushNotificationGroupInputType = exports.PublicLinksByCriteriaOrder = exports.PublicLinkStatus = exports.PublicLinkSpacesByCriteriaOrder = exports.PublicLinkSpaceStatus = exports.PublicLinkSiteStatus = exports.PublicLinkPermissionsType = exports.PublicLinkPermissionsObjectType = exports.PublicLinkPageStatus = exports.PublicLinkDefaultSpaceStatus = exports.PublicLinkAdminAction = exports.Product = exports.PrincipalType = exports.PrincipalFilterType = 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.PolarisFilterEnumType = exports.PolarisFieldType = exports.PolarisCommentKind = exports.Platform = exports.PlanModeDestination = exports.PermsReportTargetType = exports.PermissionDisplayType = exports.PaywallStatus = exports.PathType = exports.PartnerInvoiceJsonCurrency = exports.PartnerCurrency = exports.PartnerCloudLicenseType = exports.PartnerBtfLicenseType = exports.PagesSortOrder = exports.PagesSortField = exports.PagesDisplayPersistenceOption = exports.PageUpdateTrigger = exports.PageStatusInput = exports.PageCopyRestrictionValidationStatus = exports.PageCardInPageTreeHoverPreference = exports.PageAnalyticsTimeseriesCountType = void 0;
|
|
23
|
+
exports.ShareType = exports.Segment = exports.SearchesByTermPeriod = exports.SearchesByTermColumns = exports.SearchThirdPartyRangeField = exports.SearchSortOrder = exports.SearchResultType = exports.SearchProjectType = exports.SearchIssueStatusCategory = exports.SearchContainerStatus = exports.SearchConfluenceRangeField = exports.SearchConfluenceDocumentStatus = exports.SearchBoardProductType = exports.Scope = exports.SandboxEventType = exports.SandboxEventStatus = exports.SandboxEventSource = exports.SandboxEventResult = exports.RoleAssignmentPrincipalType = exports.RoadmapVersionStatus = exports.RoadmapTimelineMode = exports.RoadmapSprintState = exports.RoadmapRankPosition = exports.RoadmapPaletteColor = exports.RoadmapLevelOneView = exports.RoadmapEpicView = exports.RoadmapChildIssuePlanningMode = exports.RevertToLegacyEditorResult = exports.ReverseTrialCohort = exports.ResponseType = exports.ResourceType = exports.ResourceAccessType = exports.RelevantUsersSortOrder = exports.RelevantUserFilter = exports.RelationType = exports.RelationTargetType = exports.RelationSourceType = exports.RecommendedPagesSpaceBehavior = exports.ReclassificationFilterScope = exports.RecentFilter = exports.RateLimitingCurrency = exports.RadarStatusAppearance = exports.RadarNumericAppearance = exports.RadarFunctionId = exports.RadarFilterPlurality = exports.RadarFilterOperators = exports.RadarFilterInputType = exports.RadarFieldType = exports.RadarEntityType = exports.QueryType = void 0;
|
|
24
|
+
exports.SupportRequestUserType = exports.SupportRequestStatusCategory = exports.SupportRequestQueryStatusCategory = exports.SupportRequestQueryOwnership = exports.SupportRequestNamedContactOperation = exports.SupportRequestFieldDataType = exports.SummaryType = exports.StringUserInputType = exports.StalePagesSortingType = exports.StalePageStatus = exports.SprintState = exports.SprintReportsEstimationStatisticType = exports.SpaceViewsPersistenceOption = exports.SpaceSidebarLinkType = exports.SpaceRoleType = exports.SpacePermissionType = exports.SpaceManagerOwnerType = exports.SpaceManagerOrderDirection = exports.SpaceManagerOrderColumn = exports.SpaceManagerFilterType = exports.SortOrder = exports.SortDirection = exports.SoftwareCardsDestinationEnum = exports.SitePermissionTypeFilter = exports.SitePermissionType = exports.SitePermissionOperationType = exports.ShepherdWebhookType = exports.ShepherdWebhookDestinationType = exports.ShepherdVortexModeStatus = exports.ShepherdSubscriptionStatus = exports.ShepherdSearchOrigin = exports.ShepherdRemediationActionType = exports.ShepherdRedactionStatus = exports.ShepherdRedactedContentStatus = exports.ShepherdRateThresholdValue = exports.ShepherdQueryErrorType = exports.ShepherdMutationErrorType = exports.ShepherdLoginDeviceType = exports.ShepherdDetectionScanningFrequency = exports.ShepherdCustomScanningMatchType = exports.ShepherdClassificationStatus = exports.ShepherdClassificationLevelColor = exports.ShepherdAtlassianProduct = exports.ShepherdAlertTemplateType = exports.ShepherdAlertStatus = exports.ShepherdAlertSnippetRedactionStatus = exports.ShepherdAlertDetectionCategory = exports.ShepherdAlertAction = exports.ShepherdActorOrgStatus = exports.ShepherdActionType = void 0;
|
|
25
|
+
exports.TrelloWorkspaceMembershipType = exports.TrelloSupportedPlannerProviders = exports.TrelloPowerUpDataScope = exports.TrelloPowerUpDataAccess = exports.TrelloPlannerCalendarEventVisibility = exports.TrelloPlannerCalendarEventType = exports.TrelloPlannerCalendarEventStatus = exports.TrelloPlannerCalendarColor = exports.TrelloListType = exports.TrelloDataSourceHandler = exports.TrelloCheckItemState = exports.TrelloCardRole = exports.TrelloCardExternalSource = exports.TrelloCardCoverSize = exports.TrelloCardCoverColor = exports.TrelloCardCoverBrightness = exports.TrelloBoardMembershipType = exports.TownsquareUpdateType = exports.TownsquareUnshardedCapabilityContainer = exports.TownsquareUnshardedAccessControlCapability = exports.TownsquareTargetDateType = exports.TownsquareProjectStateValue = exports.TownsquareProjectSortEnum = exports.TownsquareGoalTypeState = exports.TownsquareGoalStateValue = exports.TownsquareGoalSortEnum = exports.TownsquareGoalIconKey = exports.TownsquareGoalIconAppearance = exports.TownsquareCapabilityContainer = exports.TownsquareAccessControlCapability = exports.ToolchainWorkspaceConnectionErrorCode = exports.ToolchainProviderType = exports.ToolchainDisassociateEntitiesErrorCode = exports.ToolchainCreateContainerErrorCode = exports.ToolchainContainerConnectionErrorCode = exports.ToolchainCheckAuthErrorCode = exports.ToolchainAssociateEntitiesErrorCode = exports.TeamStateV2 = exports.TeamState = exports.TeamSortOrder = exports.TeamSortField = exports.TeamSearchField = exports.TeamRole = exports.TeamMembershipState = exports.TeamMembershipSettings = exports.TeamMembershipRole = exports.TeamCalendarDayOfWeek = exports.TaskStatus = exports.SystemSpaceHomepageTemplate = exports.SwimlaneStrategy = void 0;
|
|
26
|
+
exports.SourceBillingType = exports.WorkSuggestionsVulnerabilityStatus = exports.WorkSuggestionsUserPersona = exports.WorkSuggestionsTargetAudience = exports.WorkSuggestionsEnvironmentType = exports.WorkSuggestionsAutoDevJobState = exports.WorkSuggestionsApprovalStatus = exports.WorkSuggestionsAction = exports.VirtualAgentIntentTemplateType = exports.VirtualAgentIntentStatus = exports.VirtualAgentConversationState = exports.VirtualAgentConversationCsatOptionType = exports.VirtualAgentConversationChannel = exports.VirtualAgentConversationActionType = exports.UserInstallationRuleValue = exports.UnifiedSortDirection = exports.UnifiedLearningCertificationType = exports.UnifiedLearningCertificationStatus = exports.UnifiedLearningCertificationSortField = exports.TrelloWorkspaceTier = void 0;
|
|
27
27
|
var AcceptableResponse;
|
|
28
28
|
(function (AcceptableResponse) {
|
|
29
29
|
AcceptableResponse["False"] = "FALSE";
|
|
@@ -4850,6 +4850,8 @@ var JiraBulkOperationType;
|
|
|
4850
4850
|
JiraBulkOperationType["BulkDelete"] = "BULK_DELETE";
|
|
4851
4851
|
JiraBulkOperationType["BulkEdit"] = "BULK_EDIT";
|
|
4852
4852
|
JiraBulkOperationType["BulkTransition"] = "BULK_TRANSITION";
|
|
4853
|
+
JiraBulkOperationType["BulkUnwatch"] = "BULK_UNWATCH";
|
|
4854
|
+
JiraBulkOperationType["BulkWatch"] = "BULK_WATCH";
|
|
4853
4855
|
})(JiraBulkOperationType = exports.JiraBulkOperationType || (exports.JiraBulkOperationType = {}));
|
|
4854
4856
|
var JiraCalendarMode;
|
|
4855
4857
|
(function (JiraCalendarMode) {
|
|
@@ -6216,6 +6218,11 @@ var KnowledgeBaseSpacePermissionType;
|
|
|
6216
6218
|
KnowledgeBaseSpacePermissionType["ConfluenceLicensedUsers"] = "CONFLUENCE_LICENSED_USERS";
|
|
6217
6219
|
KnowledgeBaseSpacePermissionType["ConfluenceUnlicensedUsers"] = "CONFLUENCE_UNLICENSED_USERS";
|
|
6218
6220
|
})(KnowledgeBaseSpacePermissionType = exports.KnowledgeBaseSpacePermissionType || (exports.KnowledgeBaseSpacePermissionType = {}));
|
|
6221
|
+
var KnowledgeDiscoveryBookmarkState;
|
|
6222
|
+
(function (KnowledgeDiscoveryBookmarkState) {
|
|
6223
|
+
KnowledgeDiscoveryBookmarkState["Active"] = "ACTIVE";
|
|
6224
|
+
KnowledgeDiscoveryBookmarkState["Suggested"] = "SUGGESTED";
|
|
6225
|
+
})(KnowledgeDiscoveryBookmarkState = exports.KnowledgeDiscoveryBookmarkState || (exports.KnowledgeDiscoveryBookmarkState = {}));
|
|
6219
6226
|
var KnowledgeDiscoveryDefinitionScope;
|
|
6220
6227
|
(function (KnowledgeDiscoveryDefinitionScope) {
|
|
6221
6228
|
KnowledgeDiscoveryDefinitionScope["Blogpost"] = "BLOGPOST";
|
|
@@ -6257,6 +6264,7 @@ var KnowledgeDiscoverySearchQueryClassification;
|
|
|
6257
6264
|
(function (KnowledgeDiscoverySearchQueryClassification) {
|
|
6258
6265
|
KnowledgeDiscoverySearchQueryClassification["KeywordOrAcronym"] = "KEYWORD_OR_ACRONYM";
|
|
6259
6266
|
KnowledgeDiscoverySearchQueryClassification["NaturalLanguageQuery"] = "NATURAL_LANGUAGE_QUERY";
|
|
6267
|
+
KnowledgeDiscoverySearchQueryClassification["Navigational"] = "NAVIGATIONAL";
|
|
6260
6268
|
KnowledgeDiscoverySearchQueryClassification["None"] = "NONE";
|
|
6261
6269
|
KnowledgeDiscoverySearchQueryClassification["Person"] = "PERSON";
|
|
6262
6270
|
KnowledgeDiscoverySearchQueryClassification["Team"] = "TEAM";
|
package/out/service/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/service/index.ts"],"names":[],"mappings":"AAEA,cAAc,yBAAyB,CAAC;AACxC,cAAc,iCAAiC,CAAC;AAChD,cAAc,wBAAwB,CAAC;AACvC,cAAc,kCAAkC,CAAC;AACjD,cAAc,mBAAmB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/service/index.ts"],"names":[],"mappings":"AAEA,cAAc,yBAAyB,CAAC;AACxC,cAAc,iCAAiC,CAAC;AAChD,cAAc,wBAAwB,CAAC;AACvC,cAAc,kCAAkC,CAAC;AACjD,cAAc,mBAAmB,CAAC;AAClC,cAAc,8BAA8B,CAAC"}
|
package/out/service/index.js
CHANGED
|
@@ -6,3 +6,4 @@ tslib_1.__exportStar(require("./iframe-resizer-script-service"), exports);
|
|
|
6
6
|
tslib_1.__exportStar(require("./feature-flag-service"), exports);
|
|
7
7
|
tslib_1.__exportStar(require("./i18n-resource-bundling-service"), exports);
|
|
8
8
|
tslib_1.__exportStar(require("./statsig-service"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./supported-products-service"), exports);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CLIDetails, ConfigSectionReader, CredentialGetter, getEnvironmentConfig, Logger } from '../index';
|
|
2
|
-
export declare type FeatureGate = 'forge-cli-test-gate' | 'is-logs-v-2-api-enabled' | 'forge-cli-bundle-runtime-loader' | 'forge-cli-enable-atlas-product-support' | 'forge-cli-enable-xpa-installation';
|
|
2
|
+
export declare type FeatureGate = 'forge-cli-test-gate' | 'is-logs-v-2-api-enabled' | 'forge-cli-bundle-runtime-loader' | 'forge-cli-enable-atlas-product-support' | 'forge-cli-enable-teamwork-graph-product-support' | 'forge-cli-enable-xpa-installation';
|
|
3
3
|
export declare type DynamicConfig = {
|
|
4
4
|
'forge-cli-test-dynamic-configs': {
|
|
5
5
|
value: string[];
|
|
@@ -13,6 +13,7 @@ export declare abstract class StatsigReader {
|
|
|
13
13
|
getForgeCliTestDynamicConfig(): Promise<any>;
|
|
14
14
|
isLogsV2ApiEnabled(): Promise<boolean>;
|
|
15
15
|
isAtlasProductSupported(): Promise<boolean>;
|
|
16
|
+
isTeamworkGraphProductSupported(): Promise<boolean>;
|
|
16
17
|
testForgeCliBundleRuntimeLoaderGate(): Promise<boolean>;
|
|
17
18
|
enableCrossProductAppInstallation(): Promise<boolean>;
|
|
18
19
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"statsig-service.d.ts","sourceRoot":"","sources":["../../src/service/statsig-service.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,mBAAmB,EACnB,gBAAgB,EAChB,oBAAoB,EAEpB,MAAM,EACP,MAAM,UAAU,CAAC;AAElB,oBAAY,WAAW,GACnB,qBAAqB,GACrB,yBAAyB,GACzB,iCAAiC,GACjC,wCAAwC,GACxC,mCAAmC,CAAC;AAExC,oBAAY,aAAa,GAAG;IAC1B,gCAAgC,EAAE;QAAE,KAAK,EAAE,MAAM,EAAE,CAAA;KAAE,CAAC;CACvD,CAAC;AAEF,oBAAY,gBAAgB,GAAG,MAAM,aAAa,CAAC;AAEnD,8BAAsB,aAAa;IACjC,QAAQ,CAAC,SAAS,CAAC,CAAC,SAAS,WAAW,EACtC,IAAI,EAAE,CAAC,EACP,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GACxC,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC;IAE1B,QAAQ,CAAC,gBAAgB,CAAC,CAAC,SAAS,gBAAgB,EAClD,IAAI,EAAE,CAAC,EACP,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAChC,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC;IAE7B,oBAAoB,IAAI,OAAO,CAAC,OAAO,CAAC;IAIxC,4BAA4B,IAAI,OAAO,CAAC,GAAG,CAAC;IAI5C,kBAAkB,IAAI,OAAO,CAAC,OAAO,CAAC;IAItC,uBAAuB,IAAI,OAAO,CAAC,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"statsig-service.d.ts","sourceRoot":"","sources":["../../src/service/statsig-service.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,mBAAmB,EACnB,gBAAgB,EAChB,oBAAoB,EAEpB,MAAM,EACP,MAAM,UAAU,CAAC;AAElB,oBAAY,WAAW,GACnB,qBAAqB,GACrB,yBAAyB,GACzB,iCAAiC,GACjC,wCAAwC,GACxC,iDAAiD,GACjD,mCAAmC,CAAC;AAExC,oBAAY,aAAa,GAAG;IAC1B,gCAAgC,EAAE;QAAE,KAAK,EAAE,MAAM,EAAE,CAAA;KAAE,CAAC;CACvD,CAAC;AAEF,oBAAY,gBAAgB,GAAG,MAAM,aAAa,CAAC;AAEnD,8BAAsB,aAAa;IACjC,QAAQ,CAAC,SAAS,CAAC,CAAC,SAAS,WAAW,EACtC,IAAI,EAAE,CAAC,EACP,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GACxC,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC;IAE1B,QAAQ,CAAC,gBAAgB,CAAC,CAAC,SAAS,gBAAgB,EAClD,IAAI,EAAE,CAAC,EACP,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAChC,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC;IAE7B,oBAAoB,IAAI,OAAO,CAAC,OAAO,CAAC;IAIxC,4BAA4B,IAAI,OAAO,CAAC,GAAG,CAAC;IAI5C,kBAAkB,IAAI,OAAO,CAAC,OAAO,CAAC;IAItC,uBAAuB,IAAI,OAAO,CAAC,OAAO,CAAC;IAI3C,+BAA+B,IAAI,OAAO,CAAC,OAAO,CAAC;IAI5C,mCAAmC,IAAI,OAAO,CAAC,OAAO,CAAC;IAIvD,iCAAiC,IAAI,OAAO,CAAC,OAAO,CAAC;CAGnE;AAkBD,wBAAgB,kBAAkB,CAAC,CAAC,EAAE,CAAC,EACrC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,OAAO,CAAC,CAAC,CAAC,GAC9C,CAAC,IAAI,EAAE,CAAC,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,OAAO,CAAC,CAAC,CAAC,CAYzC;AAED,qBAAa,cAAe,SAAQ,aAAa;IAE7C,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,UAAU;IAC3B,OAAO,CAAC,QAAQ,CAAC,eAAe;IAChC,OAAO,CAAC,QAAQ,CAAC,eAAe;IAChC,OAAO,CAAC,QAAQ,CAAC,gBAAgB;gBAJhB,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,IAAI,CAAC,UAAU,EAAE,SAAS,CAAC,GAAG,SAAS,EACnD,eAAe,EAAE,gBAAgB,EACjC,eAAe,EAAE,mBAAmB,CAAC;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC,EACpD,gBAAgB,GAAE,OAAO,oBAA2C;IAKvF,OAAO,CAAC,KAAK,CAOV;IAEH,OAAO,CAAC,OAAO,CAkBb;IAEF,OAAO,CAAC,UAAU,CA+BhB;IAEF,OAAO,CAAC,mBAAmB,CA+BzB;IAEF,OAAO,CAAC,WAAW,CAGhB;IAEH,OAAO,CAAC,mBAAmB,CAGxB;IAEG,SAAS,CAAC,CAAC,SAAS,WAAW,EACnC,IAAI,EAAE,CAAC,EACP,gBAAgB,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAM,GAC5C,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC;IAcpB,gBAAgB,CAAC,CAAC,SAAS,gBAAgB,EAC/C,aAAa,EAAE,CAAC,EAChB,QAAQ,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAM,GACpC,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC;CAapC"}
|
|
@@ -15,6 +15,9 @@ class StatsigReader {
|
|
|
15
15
|
async isAtlasProductSupported() {
|
|
16
16
|
return (await this.checkGate('forge-cli-enable-atlas-product-support')) ?? false;
|
|
17
17
|
}
|
|
18
|
+
async isTeamworkGraphProductSupported() {
|
|
19
|
+
return (await this.checkGate('forge-cli-enable-teamwork-graph-product-support')) ?? false;
|
|
20
|
+
}
|
|
18
21
|
async testForgeCliBundleRuntimeLoaderGate() {
|
|
19
22
|
return (await this.checkGate('forge-cli-bundle-runtime-loader')) ?? false;
|
|
20
23
|
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { StatsigService } from './statsig-service';
|
|
3
|
+
import { URL } from 'url';
|
|
4
|
+
import { ProductDisplayName } from '../shared';
|
|
5
|
+
declare const SUPPORTED_PRODUCTS_ALL: readonly ["Jira", "Confluence", "Compass", "Teamwork Graph", "Atlas", "Bitbucket"];
|
|
6
|
+
export declare const TEST_ONLY_EXPORTS: {
|
|
7
|
+
SITED_PRODUCTS_ALL: readonly ["Jira", "Confluence", "Compass", "Teamwork Graph", "Atlas"];
|
|
8
|
+
WORKSPACE_PRODUCTS_ALL: readonly ["Bitbucket"];
|
|
9
|
+
SUPPORTED_PRODUCTS_ALWAYS_ENABLED: readonly ["Jira", "Confluence", "Compass", "Bitbucket"];
|
|
10
|
+
};
|
|
11
|
+
export declare type SupportedProduct = (typeof SUPPORTED_PRODUCTS_ALL)[number] & ProductDisplayName;
|
|
12
|
+
export declare class SupportedProductsService {
|
|
13
|
+
private readonly statsigService;
|
|
14
|
+
private featureGatedProductsCache;
|
|
15
|
+
constructor(statsigService: StatsigService);
|
|
16
|
+
private buildFeatureGatedProduct;
|
|
17
|
+
private getFeatureGatedProducts;
|
|
18
|
+
private getProductsEnabledByFeatureGate;
|
|
19
|
+
private ensureProductDisplayName;
|
|
20
|
+
getSupportedProducts(): Promise<SupportedProduct[]>;
|
|
21
|
+
private getSupportedWorkspaceProducts;
|
|
22
|
+
validateSupportedProduct(productNameInput: string): Promise<SupportedProduct>;
|
|
23
|
+
isWorkspaceProduct(product: string): Promise<boolean>;
|
|
24
|
+
validateSite(site: string, product: ProductDisplayName | undefined): Promise<URL>;
|
|
25
|
+
}
|
|
26
|
+
export declare const isBitbucketProduct: (product: string) => boolean;
|
|
27
|
+
export {};
|
|
28
|
+
//# sourceMappingURL=supported-products-service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"supported-products-service.d.ts","sourceRoot":"","sources":["../../src/service/supported-products-service.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAuC,MAAM,WAAW,CAAC;AAgCpF,QAAA,MAAM,sBAAsB,oFAA8D,CAAC;AAO3F,eAAO,MAAM,iBAAiB;;;;CAI7B,CAAC;AAGF,oBAAY,gBAAgB,GAAG,CAAC,OAAO,sBAAsB,CAAC,CAAC,MAAM,CAAC,GAAG,kBAAkB,CAAC;AAa5F,qBAAa,wBAAwB;IAGvB,OAAO,CAAC,QAAQ,CAAC,cAAc;IAF3C,OAAO,CAAC,yBAAyB,CAAsC;gBAE1C,cAAc,EAAE,cAAc;YAE7C,wBAAwB;YAYxB,uBAAuB;YAUvB,+BAA+B;IAS7C,OAAO,CAAC,wBAAwB;IAWnB,oBAAoB,IAAI,OAAO,CAAC,gBAAgB,EAAE,CAAC;YAQlD,6BAA6B;IAO9B,wBAAwB,CAAC,gBAAgB,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAW7E,kBAAkB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAIrD,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,kBAAkB,GAAG,SAAS,GAAG,OAAO,CAAC,GAAG,CAAC;CAmB/F;AAID,eAAO,MAAM,kBAAkB,YAAa,MAAM,KAAG,OAEpD,CAAC"}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isBitbucketProduct = exports.SupportedProductsService = exports.TEST_ONLY_EXPORTS = void 0;
|
|
4
|
+
const url_1 = require("url");
|
|
5
|
+
const shared_1 = require("../shared");
|
|
6
|
+
const ui_1 = require("../ui");
|
|
7
|
+
const SITED_PRODUCTS_ALWAYS_ENABLED = ['Jira', 'Confluence', 'Compass'];
|
|
8
|
+
const SITED_PRODUCTS_UNDER_FEATURE_FLAG = ['Teamwork Graph', 'Atlas'];
|
|
9
|
+
const WORKSPACE_PRODUCTS_ALWAYS_ENABLED = ['Bitbucket'];
|
|
10
|
+
const WORKSPACE_PRODUCTS_UNDER_FEATURE_FLAG = [];
|
|
11
|
+
const SITED_PRODUCTS_ALL = [...SITED_PRODUCTS_ALWAYS_ENABLED, ...SITED_PRODUCTS_UNDER_FEATURE_FLAG];
|
|
12
|
+
const WORKSPACE_PRODUCTS_ALL = [
|
|
13
|
+
...WORKSPACE_PRODUCTS_ALWAYS_ENABLED,
|
|
14
|
+
...WORKSPACE_PRODUCTS_UNDER_FEATURE_FLAG
|
|
15
|
+
];
|
|
16
|
+
const SUPPORTED_PRODUCTS_ALWAYS_ENABLED = [
|
|
17
|
+
...SITED_PRODUCTS_ALWAYS_ENABLED,
|
|
18
|
+
...WORKSPACE_PRODUCTS_ALWAYS_ENABLED
|
|
19
|
+
];
|
|
20
|
+
const SUPPORTED_PRODUCTS_ALL = [...SITED_PRODUCTS_ALL, ...WORKSPACE_PRODUCTS_ALL];
|
|
21
|
+
exports.TEST_ONLY_EXPORTS = {
|
|
22
|
+
SITED_PRODUCTS_ALL,
|
|
23
|
+
WORKSPACE_PRODUCTS_ALL,
|
|
24
|
+
SUPPORTED_PRODUCTS_ALWAYS_ENABLED
|
|
25
|
+
};
|
|
26
|
+
function arrayContains(arr, e) {
|
|
27
|
+
return arr.includes(e);
|
|
28
|
+
}
|
|
29
|
+
class SupportedProductsService {
|
|
30
|
+
statsigService;
|
|
31
|
+
featureGatedProductsCache = null;
|
|
32
|
+
constructor(statsigService) {
|
|
33
|
+
this.statsigService = statsigService;
|
|
34
|
+
}
|
|
35
|
+
async buildFeatureGatedProduct(productName, productType, isEnabledPromise) {
|
|
36
|
+
return {
|
|
37
|
+
productName,
|
|
38
|
+
productType,
|
|
39
|
+
isEnabled: await isEnabledPromise
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
async getFeatureGatedProducts() {
|
|
43
|
+
if (this.featureGatedProductsCache === null) {
|
|
44
|
+
this.featureGatedProductsCache = await Promise.all([
|
|
45
|
+
this.buildFeatureGatedProduct('Teamwork Graph', 'sited', this.statsigService.isTeamworkGraphProductSupported()),
|
|
46
|
+
this.buildFeatureGatedProduct('Atlas', 'sited', this.statsigService.isAtlasProductSupported())
|
|
47
|
+
]);
|
|
48
|
+
}
|
|
49
|
+
return this.featureGatedProductsCache;
|
|
50
|
+
}
|
|
51
|
+
async getProductsEnabledByFeatureGate(filter = () => true) {
|
|
52
|
+
const featureGatedProducts = await this.getFeatureGatedProducts();
|
|
53
|
+
return featureGatedProducts
|
|
54
|
+
.filter((gatedProductInfo) => gatedProductInfo.isEnabled && filter(gatedProductInfo))
|
|
55
|
+
.map((product) => product.productName);
|
|
56
|
+
}
|
|
57
|
+
ensureProductDisplayName(product) {
|
|
58
|
+
if (arrayContains(SUPPORTED_PRODUCTS_ALL, product)) {
|
|
59
|
+
return product;
|
|
60
|
+
}
|
|
61
|
+
else {
|
|
62
|
+
return (0, shared_1.productDisplayName)(product);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
async getSupportedProducts() {
|
|
66
|
+
return [
|
|
67
|
+
...SITED_PRODUCTS_ALWAYS_ENABLED,
|
|
68
|
+
...WORKSPACE_PRODUCTS_ALWAYS_ENABLED,
|
|
69
|
+
...(await this.getProductsEnabledByFeatureGate())
|
|
70
|
+
];
|
|
71
|
+
}
|
|
72
|
+
async getSupportedWorkspaceProducts() {
|
|
73
|
+
return [
|
|
74
|
+
...WORKSPACE_PRODUCTS_ALWAYS_ENABLED,
|
|
75
|
+
...(await this.getProductsEnabledByFeatureGate((product) => product.productType == 'workspace'))
|
|
76
|
+
];
|
|
77
|
+
}
|
|
78
|
+
async validateSupportedProduct(productNameInput) {
|
|
79
|
+
const productName = (0, shared_1.productDisplayName)(productNameInput);
|
|
80
|
+
const supportedProducts = await this.getSupportedProducts();
|
|
81
|
+
if (arrayContains(supportedProducts, productName)) {
|
|
82
|
+
return productName;
|
|
83
|
+
}
|
|
84
|
+
else {
|
|
85
|
+
throw new shared_1.ValidationError(ui_1.Text.error.invalidProduct);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
async isWorkspaceProduct(product) {
|
|
89
|
+
return arrayContains(await this.getSupportedWorkspaceProducts(), this.ensureProductDisplayName(product));
|
|
90
|
+
}
|
|
91
|
+
async validateSite(site, product) {
|
|
92
|
+
const trySites = [site, `https://${site}`];
|
|
93
|
+
for (const trySite of trySites) {
|
|
94
|
+
try {
|
|
95
|
+
const urlObj = new url_1.URL(trySite);
|
|
96
|
+
if (product && (await this.isWorkspaceProduct(product))) {
|
|
97
|
+
return urlObj;
|
|
98
|
+
}
|
|
99
|
+
urlObj.pathname = '/';
|
|
100
|
+
return urlObj;
|
|
101
|
+
}
|
|
102
|
+
catch {
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
throw new shared_1.ValidationError(ui_1.Text.error.invalidSite);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
exports.SupportedProductsService = SupportedProductsService;
|
|
109
|
+
const isBitbucketProduct = (product) => {
|
|
110
|
+
return (0, shared_1.productDisplayName)(product) === 'Bitbucket';
|
|
111
|
+
};
|
|
112
|
+
exports.isBitbucketProduct = isBitbucketProduct;
|
package/out/shared/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/shared/index.ts"],"names":[],"mappings":"AAEA,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/shared/index.ts"],"names":[],"mappings":"AAEA,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,yBAAyB,CAAC;AACxC,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AAEpC,OAAO,OAAO,MAAM,yBAAyB,CAAC;AAC9C,QAAA,MAAM,IAAI,0BAAqD,CAAC;AAChE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC"}
|
package/out/shared/index.js
CHANGED
|
@@ -8,7 +8,6 @@ tslib_1.__exportStar(require("./error-handling"), exports);
|
|
|
8
8
|
tslib_1.__exportStar(require("./mock-logger"), exports);
|
|
9
9
|
tslib_1.__exportStar(require("./pause"), exports);
|
|
10
10
|
tslib_1.__exportStar(require("./product"), exports);
|
|
11
|
-
tslib_1.__exportStar(require("./validate"), exports);
|
|
12
11
|
tslib_1.__exportStar(require("./read-app-config-files"), exports);
|
|
13
12
|
tslib_1.__exportStar(require("./cli-details"), exports);
|
|
14
13
|
tslib_1.__exportStar(require("./assertUnreachable"), exports);
|
package/out/shared/product.d.ts
CHANGED
|
@@ -1,13 +1,5 @@
|
|
|
1
|
-
declare
|
|
2
|
-
export declare
|
|
3
|
-
export declare
|
|
4
|
-
export declare function getSupportedProducts({ enableAtlas }?: {
|
|
5
|
-
enableAtlas?: boolean;
|
|
6
|
-
}): (SupportedProduct | "Atlas")[];
|
|
7
|
-
export declare function productDisplayName(ariResourceOwner: string): string;
|
|
1
|
+
export declare type ProductDisplayName = string;
|
|
2
|
+
export declare function productsDisplayName(primaryResourceOwner: string, secondaryResourceOwners?: string[]): string;
|
|
3
|
+
export declare function productDisplayName(ariResourceOwnerOrUserProvidedProductName: string): ProductDisplayName;
|
|
8
4
|
export declare function ariResourceOwner(productDisplayName: string): string;
|
|
9
|
-
export declare const isWorkspaceProduct: (product: string) => product is "Bitbucket";
|
|
10
|
-
export declare const isBitbucketProduct: (product: string) => boolean;
|
|
11
|
-
export declare const isSupportedProduct: (product: string) => product is SupportedProduct;
|
|
12
|
-
export {};
|
|
13
5
|
//# sourceMappingURL=product.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product.d.ts","sourceRoot":"","sources":["../../src/shared/product.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"product.d.ts","sourceRoot":"","sources":["../../src/shared/product.ts"],"names":[],"mappings":"AAeA,oBAAY,kBAAkB,GAAG,MAAM,CAAC;AAiBxC,wBAAgB,mBAAmB,CAAC,oBAAoB,EAAE,MAAM,EAAE,uBAAuB,GAAE,MAAM,EAAO,GAAG,MAAM,CAOhH;AAED,wBAAgB,kBAAkB,CAAC,yCAAyC,EAAE,MAAM,GAAG,kBAAkB,CAGxG;AAED,wBAAgB,gBAAgB,CAAC,kBAAkB,EAAE,MAAM,GAAG,MAAM,CAEnE"}
|
package/out/shared/product.js
CHANGED
|
@@ -1,43 +1,29 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.ariResourceOwner = exports.productDisplayName = exports.productsDisplayName = void 0;
|
|
4
4
|
const case_1 = require("case");
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
Atlas: 'townsquare'
|
|
5
|
+
const RESOURCE_OWNER_TO_PRODUCT_DISPLAY_NAME = {
|
|
6
|
+
townsquare: 'Atlas',
|
|
7
|
+
graph: 'Teamwork Graph'
|
|
9
8
|
};
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
if (
|
|
16
|
-
|
|
9
|
+
const PRODUCT_DISPLAY_NAME_TO_RESOURCE_OWNER = Object.entries(RESOURCE_OWNER_TO_PRODUCT_DISPLAY_NAME).reduce((acc, [key, value]) => {
|
|
10
|
+
acc[value] = key;
|
|
11
|
+
return acc;
|
|
12
|
+
}, {});
|
|
13
|
+
function productsDisplayName(primaryResourceOwner, secondaryResourceOwners = []) {
|
|
14
|
+
if (secondaryResourceOwners.length === 0) {
|
|
15
|
+
return productDisplayName(primaryResourceOwner);
|
|
17
16
|
}
|
|
18
|
-
|
|
17
|
+
const primaryProduct = `${productDisplayName(primaryResourceOwner)} (Primary)`;
|
|
18
|
+
return [primaryProduct, ...secondaryResourceOwners.map(productDisplayName)].join(', ');
|
|
19
19
|
}
|
|
20
|
-
exports.
|
|
21
|
-
function productDisplayName(
|
|
22
|
-
|
|
20
|
+
exports.productsDisplayName = productsDisplayName;
|
|
21
|
+
function productDisplayName(ariResourceOwnerOrUserProvidedProductName) {
|
|
22
|
+
const resourceOwner = ariResourceOwnerOrUserProvidedProductName.toLowerCase();
|
|
23
|
+
return RESOURCE_OWNER_TO_PRODUCT_DISPLAY_NAME[resourceOwner] ?? (0, case_1.capital)(ariResourceOwnerOrUserProvidedProductName);
|
|
23
24
|
}
|
|
24
25
|
exports.productDisplayName = productDisplayName;
|
|
25
26
|
function ariResourceOwner(productDisplayName) {
|
|
26
|
-
return
|
|
27
|
+
return PRODUCT_DISPLAY_NAME_TO_RESOURCE_OWNER[productDisplayName] ?? productDisplayName.toLowerCase();
|
|
27
28
|
}
|
|
28
29
|
exports.ariResourceOwner = ariResourceOwner;
|
|
29
|
-
const isWorkspaceProduct = (product) => {
|
|
30
|
-
return isSupported(exports.WORKSPACE_PRODUCTS, productDisplayName(product));
|
|
31
|
-
};
|
|
32
|
-
exports.isWorkspaceProduct = isWorkspaceProduct;
|
|
33
|
-
const isBitbucketProduct = (product) => {
|
|
34
|
-
return productDisplayName(product) === 'Bitbucket';
|
|
35
|
-
};
|
|
36
|
-
exports.isBitbucketProduct = isBitbucketProduct;
|
|
37
|
-
const isSupportedProduct = (product) => {
|
|
38
|
-
return isSupported(SUPPORTED_PRODUCTS, productDisplayName(product)) || (0, exports.isWorkspaceProduct)(product);
|
|
39
|
-
};
|
|
40
|
-
exports.isSupportedProduct = isSupportedProduct;
|
|
41
|
-
function isSupported(arr, e) {
|
|
42
|
-
return arr.includes(e);
|
|
43
|
-
}
|
package/out/ui/text.d.ts
CHANGED
package/out/ui/text.js
CHANGED
|
@@ -804,7 +804,7 @@ ${buildTerminalLink(link)}\n`,
|
|
|
804
804
|
banner: `\nShowing all the current installations of your app:`,
|
|
805
805
|
noResourceId: 'Unknown site with no resource ID',
|
|
806
806
|
noCloudId: 'Unknown workspace with no cloud ID',
|
|
807
|
-
|
|
807
|
+
noResourceIdInWorkspace: 'Unknown workspace with no resource ID',
|
|
808
808
|
noInstallations: `The app is not installed anywhere.\nRun ${forge('install')} to install your app on an Atlassian site.\n`
|
|
809
809
|
},
|
|
810
810
|
tunnel: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forge/cli-shared",
|
|
3
|
-
"version": "6.6.0-next.
|
|
3
|
+
"version": "6.6.0-next.9",
|
|
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": "8.6.1-next.
|
|
15
|
+
"@forge/manifest": "8.6.1-next.2",
|
|
16
16
|
"@forge/util": "1.4.7-next.1",
|
|
17
17
|
"@forge/i18n": "0.0.3-next.1",
|
|
18
18
|
"@sentry/node": "7.106.0",
|
package/out/shared/validate.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"validate.d.ts","sourceRoot":"","sources":["../../src/shared/validate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAK1B,eAAO,MAAM,YAAY,SAAU,MAAM,WAAW,MAAM,GAAG,SAAS,KAAG,GAkBxE,CAAC"}
|
package/out/shared/validate.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.validateSite = void 0;
|
|
4
|
-
const url_1 = require("url");
|
|
5
|
-
const ui_1 = require("../ui");
|
|
6
|
-
const error_handling_1 = require("./error-handling");
|
|
7
|
-
const product_1 = require("./product");
|
|
8
|
-
const validateSite = (site, product) => {
|
|
9
|
-
const trySites = [site, `https://${site}`];
|
|
10
|
-
for (const trySite of trySites) {
|
|
11
|
-
try {
|
|
12
|
-
const urlObj = new url_1.URL(trySite);
|
|
13
|
-
if (product && (0, product_1.isWorkspaceProduct)(product)) {
|
|
14
|
-
return urlObj;
|
|
15
|
-
}
|
|
16
|
-
urlObj.pathname = '/';
|
|
17
|
-
return urlObj;
|
|
18
|
-
}
|
|
19
|
-
catch {
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
throw new error_handling_1.ValidationError(ui_1.Text.error.invalidSite);
|
|
23
|
-
};
|
|
24
|
-
exports.validateSite = validateSite;
|