@forge/cli-shared 6.6.0 → 6.6.1-next.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -22,8 +22,8 @@ exports.NlpSearchResultType = exports.NlpSearchResultFormat = exports.NlpGetKeyw
22
22
  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 = exports.PageAnalyticsCountType = exports.PageActivityActionSubject = exports.PageActivityAction = exports.PtGraphQlPageStatus = exports.PeapProgramStatus = exports.OutputDeviceType = exports.Operation = exports.NumberUserInputType = exports.NotificationAction = void 0;
23
23
  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 = exports.PushNotificationSettingGroup = exports.PushNotificationGroupInputType = exports.PublicLinksByCriteriaOrder = exports.PublicLinkStatus = exports.PublicLinkSpacesByCriteriaOrder = exports.PublicLinkSpaceStatus = exports.PublicLinkSiteStatus = exports.PublicLinkPermissionsType = exports.PublicLinkPermissionsObjectType = void 0;
24
24
  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 = exports.ShareType = exports.Segment = exports.SearchesByTermPeriod = exports.SearchesByTermColumns = exports.SearchThirdPartyRangeField = exports.SearchSortOrder = exports.SearchResultType = exports.SearchProjectType = exports.SearchIssueStatusCategory = void 0;
25
- exports.TrelloCheckItemState = exports.TrelloCardRole = exports.TrelloCardExternalSource = exports.TrelloCardCoverSize = exports.TrelloCardCoverColor = exports.TrelloCardCoverBrightness = exports.TrelloCardActionType = 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 = exports.SupportRequestUserType = exports.SupportRequestStatusCategory = exports.SupportRequestQueryStatusCategory = exports.SupportRequestQueryOwnership = exports.SupportRequestNamedContactOperation = exports.SupportRequestFieldDataType = exports.SummaryType = exports.StringUserInputType = exports.StalePagesSortingType = 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 = exports.TrelloWorkspaceMembershipType = exports.TrelloSupportedPlannerProviders = exports.TrelloPowerUpDataScope = exports.TrelloPowerUpDataAccess = exports.TrelloPlannerCalendarEventVisibility = exports.TrelloPlannerCalendarEventType = exports.TrelloPlannerCalendarEventStatus = exports.TrelloPlannerCalendarColor = exports.TrelloListType = exports.TrelloDataSourceHandler = void 0;
25
+ exports.TrelloCardRole = exports.TrelloCardExternalSource = exports.TrelloCardCoverSize = exports.TrelloCardCoverColor = exports.TrelloCardCoverBrightness = exports.TrelloCardActionType = exports.TrelloBoardMembershipType = exports.TownsquareUpdateType = exports.TownsquareUnshardedCapabilityContainer = exports.TownsquareUnshardedAccessControlCapability = exports.TownsquareTargetDateType = exports.TownsquareProjectStateValue = exports.TownsquareProjectSortEnum = exports.TownsquareProjectPhase = 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 = exports.SupportRequestUserType = exports.SupportRequestStatusCategory = exports.SupportRequestQueryStatusCategory = exports.SupportRequestQueryOwnership = exports.SupportRequestNamedContactOperation = exports.SupportRequestFieldDataType = exports.SummaryType = exports.StringUserInputType = exports.StalePagesSortingType = 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 = exports.TrelloWorkspaceMembershipType = exports.TrelloSupportedPlannerProviders = exports.TrelloPowerUpDataScope = exports.TrelloPowerUpDataAccess = exports.TrelloPlannerCalendarEventVisibility = exports.TrelloPlannerCalendarEventType = exports.TrelloPlannerCalendarEventStatus = exports.TrelloPlannerCalendarColor = exports.TrelloListType = exports.TrelloDataSourceHandler = exports.TrelloCheckItemState = void 0;
27
27
  var AcceptableResponse;
28
28
  (function (AcceptableResponse) {
29
29
  AcceptableResponse["False"] = "FALSE";
@@ -8745,6 +8745,13 @@ var TownsquareGoalTypeState;
8745
8745
  TownsquareGoalTypeState["Disabled"] = "DISABLED";
8746
8746
  TownsquareGoalTypeState["Enabled"] = "ENABLED";
8747
8747
  })(TownsquareGoalTypeState = exports.TownsquareGoalTypeState || (exports.TownsquareGoalTypeState = {}));
8748
+ var TownsquareProjectPhase;
8749
+ (function (TownsquareProjectPhase) {
8750
+ TownsquareProjectPhase["Done"] = "done";
8751
+ TownsquareProjectPhase["InProgress"] = "in_progress";
8752
+ TownsquareProjectPhase["Paused"] = "paused";
8753
+ TownsquareProjectPhase["Pending"] = "pending";
8754
+ })(TownsquareProjectPhase = exports.TownsquareProjectPhase || (exports.TownsquareProjectPhase = {}));
8748
8755
  var TownsquareProjectSortEnum;
8749
8756
  (function (TownsquareProjectSortEnum) {
8750
8757
  TownsquareProjectSortEnum["CreationDateAsc"] = "CREATION_DATE_ASC";
@@ -5,6 +5,7 @@ import { ProductDisplayName } from '../shared';
5
5
  declare const SUPPORTED_PRODUCTS_ALL: readonly ["Jira", "Confluence", "Compass", "Teamwork Graph", "Atlas", "Bitbucket"];
6
6
  export declare const TEST_ONLY_EXPORTS: {
7
7
  SITED_PRODUCTS_ALL: readonly ["Jira", "Confluence", "Compass", "Teamwork Graph", "Atlas"];
8
+ SITED_PRODUCTS_ALWAYS_ENABLED: readonly ["Jira", "Confluence", "Compass"];
8
9
  WORKSPACE_PRODUCTS_ALL: readonly ["Bitbucket"];
9
10
  SUPPORTED_PRODUCTS_ALWAYS_ENABLED: readonly ["Jira", "Confluence", "Compass", "Bitbucket"];
10
11
  };
@@ -17,7 +18,7 @@ export declare class SupportedProductsService {
17
18
  private getFeatureGatedProducts;
18
19
  private getProductsEnabledByFeatureGate;
19
20
  private ensureProductDisplayName;
20
- getSupportedProducts(): Promise<SupportedProduct[]>;
21
+ getSupportedProducts(primaryProduct?: string): Promise<SupportedProduct[]>;
21
22
  private getSupportedWorkspaceProducts;
22
23
  validateSupportedProduct(productNameInput: string): Promise<SupportedProduct>;
23
24
  isWorkspaceProduct(product: string): Promise<boolean>;
@@ -1 +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"}
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;;;;;CAK7B,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,CAAC,cAAc,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,EAAE,CAAC;YAYzE,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"}
@@ -20,6 +20,7 @@ const SUPPORTED_PRODUCTS_ALWAYS_ENABLED = [
20
20
  const SUPPORTED_PRODUCTS_ALL = [...SITED_PRODUCTS_ALL, ...WORKSPACE_PRODUCTS_ALL];
21
21
  exports.TEST_ONLY_EXPORTS = {
22
22
  SITED_PRODUCTS_ALL,
23
+ SITED_PRODUCTS_ALWAYS_ENABLED,
23
24
  WORKSPACE_PRODUCTS_ALL,
24
25
  SUPPORTED_PRODUCTS_ALWAYS_ENABLED
25
26
  };
@@ -62,7 +63,10 @@ class SupportedProductsService {
62
63
  return (0, shared_1.productDisplayName)(product);
63
64
  }
64
65
  }
65
- async getSupportedProducts() {
66
+ async getSupportedProducts(primaryProduct) {
67
+ if (primaryProduct) {
68
+ return [...SITED_PRODUCTS_ALWAYS_ENABLED.filter((product) => product !== primaryProduct)];
69
+ }
66
70
  return [
67
71
  ...SITED_PRODUCTS_ALWAYS_ENABLED,
68
72
  ...WORKSPACE_PRODUCTS_ALWAYS_ENABLED,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forge/cli-shared",
3
- "version": "6.6.0",
3
+ "version": "6.6.1-next.0",
4
4
  "description": "Common functionality for Forge CLI",
5
5
  "author": "Atlassian",
6
6
  "license": "SEE LICENSE IN LICENSE.txt",