@forge/cli-shared 6.0.0-next.16 → 6.0.0-next.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +17 -0
- package/out/graphql/graphql-types.d.ts +38 -33
- package/out/graphql/graphql-types.d.ts.map +1 -1
- package/out/graphql/graphql-types.js +9 -27
- package/out/service/feature-flag-service.d.ts +0 -2
- package/out/service/feature-flag-service.d.ts.map +1 -1
- 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 +34 -0
- package/out/service/statsig-service.d.ts.map +1 -0
- package/out/service/statsig-service.js +180 -0
- package/package.json +4 -3
|
@@ -13,12 +13,12 @@ exports.HelpLayoutCompositeElementKey = exports.HelpLayoutAtomicElementKey = exp
|
|
|
13
13
|
exports.JiraBitbucketWorkspaceApprovalState = exports.JiraBatchWindowPreference = exports.JiraBackgroundType = exports.JiraAutofixStatus = exports.JiraAutofixJobType = exports.JiraAutodevStatus = exports.JiraAutodevState = exports.JiraAutodevPhase = exports.JiraAutodevCodeChangeEnumType = exports.JiraAttachmentsPermissions = exports.JiraAttachmentSortField = exports.JiraAttachmentParentName = exports.JiraAtlassianIntelligenceFeatureEnum = exports.JiraApprovalDecision = exports.JiraApplicationKey = exports.JiraAppType = exports.JiraAnnouncementBannerVisibility = exports.JiraAddValueFieldOperations = exports.JiraActionType = exports.JsmMajorIncident = exports.JsmIncidentLinkDirection = exports.IssueDevOpsPullRequestStatus = exports.IssueDevOpsDeploymentState = exports.IssueDevOpsDeploymentEnvironmentType = exports.IssueDevOpsCommitChangeType = exports.InsightsVulnerabilityStatus = exports.InsightsTaskType = exports.InsightsRecommendationVisibility = exports.InsightsNextBestTaskAction = exports.InsightsEnvironmentType = exports.InsightsApprovalStatus = exports.InfluentsNotificationReadState = exports.InfluentsNotificationCategory = exports.InfluentsNotificationAppearance = exports.HelpObjectStoreSearchableEntityType = exports.HelpObjectStoreSearchEntityType = exports.HelpObjectStoreSearchBackend = exports.HelpObjectStoreSearchAlgorithm = exports.HelpObjectStoreJsmEntityType = exports.HelpObjectStoreHelpObjectType = exports.HelpLayoutVerticalAlignment = exports.HelpLayoutProjectType = exports.HelpLayoutHorizontalAlignment = exports.HelpLayoutHeadingType = exports.HelpLayoutForgeElementType = exports.HelpLayoutForgeElementPages = exports.HelpLayoutElementKey = exports.HelpLayoutElementCategory = exports.HelpLayoutConnectElementType = exports.HelpLayoutConnectElementPages = void 0;
|
|
14
14
|
exports.JiraIssueItemLayoutItemLocationRuleType = exports.JiraIssueExportType = exports.JiraIssueDeploymentEnvironmentState = exports.JiraInstallDeploymentsBannerPrecondition = exports.JiraIncidentPriority = exports.JiraHomePageType = exports.JiraGroupsContext = exports.JiraGrantTypeKeyEnum = exports.JiraGoalStatus = exports.JiraGlobalPermissionType = exports.JiraGlobalIssueCreateView = exports.JiraFormattingTwoValueOperator = 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 = void 0;
|
|
15
15
|
exports.JiraProjectShortcutType = exports.JiraProjectRoleActorUserStatus = exports.JiraProjectRoleActorRecommendationAction = exports.JiraProjectPermissionType = exports.JiraProjectPermissionCategoryEnum = exports.JiraProjectNotificationConfigurationState = exports.JiraProjectListRightPanelState = exports.JiraProjectDateTimeFormat = exports.JiraProjectCleanupTaskStatusType = exports.JiraProjectCleanupRecommendationStaleSince = exports.JiraProjectCleanupRecommendationAction = exports.JiraProjectAndRepositoryRelationshipSortBy = exports.JiraProjectActionType = exports.JiraProductEnum = exports.JiraPlanStatus = exports.JiraPermissionType = exports.JiraPermissionTagEnum = exports.JiraPermissionMessageTypeEnum = exports.JiraOverviewPlanMigrationChangeboardingStatus = exports.JiraOrganizationApprovalLocation = 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.JiraJourneyStatus = exports.JiraJourneyParentIssueType = exports.JiraJqlBuilderSearchMode = exports.JiraIteration = exports.JiraIssueViewTimestampDisplayMode = exports.JiraIssueViewAttachmentPanelViewMode = exports.JiraIssueViewActivityFeedSortOrder = exports.JiraIssueTransitionLayoutMessageType = exports.JiraIssueTransitionCommentType = exports.JiraIssueSearchFieldSetSelectedState = exports.JiraIssueNavigatorSearchLayout = exports.JiraIssueModuleType = exports.JiraIssueLinkDirection = exports.JiraIssueLifecycleState = exports.JiraIssueItemSystemContainerType = void 0;
|
|
16
|
-
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.JiraSuggestedIssueFieldValueError = exports.JiraSuggestedIssueErrorType = exports.JiraSuggestedChildIssueStatusType = exports.JiraStatusCategoryColor = exports.JiraSprintState = exports.
|
|
17
|
-
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.LifecycleStage = exports.LicenseOverrideState = exports.KnowledgeDiscoveryTopicType = exports.KnowledgeDiscoverySearchQueryClassification = exports.KnowledgeDiscoveryRelatedEntityActionType = exports.KnowledgeDiscoveryKeyPhraseInputTextFormat = exports.KnowledgeDiscoveryKeyPhraseCategory = exports.KnowledgeDiscoveryEntityType = exports.KnowledgeDiscoveryDefinitionScope = exports.KnowledgeBaseSpacePermissionType = exports.JsmChatWebInteractionType = exports.JsmChatWebConversationUserRole = exports.JsmChatWebConversationMessageContentType = exports.JsmChatMessageType = exports.JsmChatMessageSource = exports.JsmChatInteractionType = exports.JsmChatCreateWebConversationUserRole = exports.JsmChatCreateWebConversationMessageContentType = exports.JsmChatConversationUserRole = exports.JsmChatConversationMessageContentType = exports.JsmChatConversationChannelType = exports.JsmChatConversationAnalyticsEvent = exports.JsmChatConnectedApps = exports.JsmChatChannelType = exports.JsmChatChannelExperienceId = exports.JiraWorklogAdjustmentEstimateOperation = exports.JiraWorkManagementUserLicenseSeatEdition = exports.JiraWorkManagementBackgroundType = exports.JiraWatchesOperations = exports.JiraVotesOperations =
|
|
18
|
-
exports.NadelHydrationTemplate = exports.MigrationEventType = exports.MigrationEventStatus = exports.MercuryTeamSortField = exports.MercuryTeamFocusAreaAllocationSortField = exports.MercuryTargetDateType = exports.MercuryProviderWorkTargetDateType = exports.MercuryProviderWorkStatusColor = exports.MercuryProviderWorkErrorType = exports.MercuryProviderConfigurationStatus = 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.MarketplaceStoreHomePageHighlightedSectionVariation = exports.MarketplaceStoreEditionType = 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 =
|
|
19
|
-
exports.SearchConfluenceRangeField = exports.SearchConfluenceDocumentStatus = exports.SearchBoardProductType = exports.Scope = exports.SandboxEventType = exports.SandboxEventStatus = exports.SandboxEventSource = exports.SandboxEventResult = exports.RoadmapVersionStatus = exports.RoadmapTimelineMode = exports.RoadmapSprintState = exports.RoadmapRankPosition = exports.RoadmapPaletteColor = exports.RoadmapLevelOneView = exports.RoadmapEpicView = exports.RoadmapChildIssuePlanningMode = exports.RateLimitingCurrency = exports.RadarFilterPlurality = exports.RadarFilterOperators = exports.RadarFilterInputType = exports.RadarFieldType = exports.RadarEntityType = exports.PrincipalType = exports.PolarisVisualizationType = exports.PolarisViewSortMode = exports.PolarisViewSetType = exports.PolarisViewLayoutType = exports.PolarisViewFilterOperator = exports.PolarisViewFilterKind = exports.PolarisViewFieldRollupType = exports.PolarisValueOperator = exports.PolarisTimelineMode = exports.PolarisSortOrder = exports.PolarisSnippetPropertyKind = exports.PolarisResolvedObjectAuthType = exports.PolarisRefreshError = exports.PolarisPlayKind = exports.PolarisFieldType = exports.PolarisCommentKind = exports.PlanModeDestination = exports.PartnerInvoiceJsonCurrency = exports.PartnerCurrency = exports.PartnerCloudLicenseType = exports.PartnerBtfLicenseType = exports.PeapProgramStatus = exports.NlpSearchResultType = exports.NlpSearchResultFormat = exports.NlpGetKeywordsTextFormat = exports.NlpErrorState =
|
|
20
|
-
exports.TeamStateV2 = exports.TeamState = exports.TeamSortOrder = exports.TeamSortField = exports.TeamSearchField = exports.TeamRole = exports.TeamMembershipState = exports.TeamMembershipSettings = exports.TeamMembershipRole = exports.SwimlaneStrategy = exports.SupportRequestUserType = exports.SupportRequestStatusCategory = exports.SupportRequestQueryStatusCategory = exports.SupportRequestQueryOwnership = exports.SupportRequestNamedContactOperation = exports.SupportRequestFieldDataType = exports.SprintState = exports.SprintReportsEstimationStatisticType = exports.SortOrder = exports.SortDirection = exports.SoftwareCardsDestinationEnum = 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.ShepherdAlertDetectionCategory = exports.ShepherdAlertAction = exports.ShepherdActorOrgStatus = exports.ShepherdActionType = exports.SearchThirdPartyRangeField = exports.SearchSortOrder = exports.SearchResultType = exports.SearchProjectType = exports.SearchIssueStatusCategory =
|
|
21
|
-
exports.SourceBillingType = exports.WorkSuggestionsVulnerabilityStatus = exports.WorkSuggestionsUserPersona = exports.WorkSuggestionsTargetAudience = exports.WorkSuggestionsEnvironmentType = exports.WorkSuggestionsAutoDevJobState = exports.WorkSuggestionsApprovalStatus = exports.WorkSuggestionsAction = exports.VirtualAgentIntentTemplateType = exports.VirtualAgentConversationState = exports.VirtualAgentConversationCsatOptionType = exports.VirtualAgentConversationChannel = exports.VirtualAgentConversationActionType = exports.UserInstallationRuleValue = exports.TrelloWorkspaceTier = exports.TrelloWorkspaceMembershipType = exports.TrelloSupportedPlannerProviders = exports.TrelloPowerUpDataScope = exports.TrelloPowerUpDataAccess = exports.TrelloPlannerCalendarEventVisibility = exports.TrelloPlannerCalendarEventStatus = exports.TrelloPlannerCalendarColor = exports.TrelloCardRole = exports.TrelloCardExternalSource = exports.TrelloCardCoverSize = exports.TrelloCardCoverColor = exports.TrelloCardCoverBrightness = exports.TrelloBoardMembershipType = exports.TownsquareTargetDateType = exports.TownsquareProjectStateValue = exports.TownsquareProjectSortEnum = exports.TownsquareGoalTypeState = exports.TownsquareGoalTypeIconKey = exports.TownsquareGoalStateValue = exports.TownsquareGoalSortEnum = exports.TownsquareGoalIconAppearance = exports.ToolchainWorkspaceConnectionErrorCode = exports.ToolchainSyncState = exports.ToolchainProviderType = exports.ToolchainDisassociateEntitiesErrorCode = exports.ToolchainCreateContainerErrorCode = exports.ToolchainCheckAuthErrorCode =
|
|
16
|
+
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.JiraSuggestedIssueFieldValueError = exports.JiraSuggestedIssueErrorType = exports.JiraSuggestedChildIssueStatusType = exports.JiraStatusCategoryColor = exports.JiraSprintState = exports.JiraSoftwareIssueSearchCustomInputContext = exports.JiraSingleValueFieldOperations = exports.JiraShareableEntityGrant = 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.JiraReleasesIssueReleaseStatusFilter = exports.JiraReleasesEpicReleaseStatusFilter = exports.JiraReleaseNotesIssueKeyConfig = exports.JiraRecommendationCategory = exports.JiraRankMutationEdge = exports.JiraPullRequestState = exports.JiraProjectsHelpCenterMappingStatus = exports.JiraProjectType = exports.JiraProjectStyle = exports.JiraProjectStatus = exports.JiraProjectSortField = void 0;
|
|
17
|
+
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.LifecycleStage = exports.LicenseOverrideState = exports.KnowledgeDiscoveryTopicType = exports.KnowledgeDiscoverySearchQueryClassification = exports.KnowledgeDiscoveryRelatedEntityActionType = exports.KnowledgeDiscoveryKeyPhraseInputTextFormat = exports.KnowledgeDiscoveryKeyPhraseCategory = exports.KnowledgeDiscoveryEntityType = exports.KnowledgeDiscoveryDefinitionScope = exports.KnowledgeBaseSpacePermissionType = exports.JsmChatWebInteractionType = exports.JsmChatWebConversationUserRole = exports.JsmChatWebConversationMessageContentType = exports.JsmChatMessageType = exports.JsmChatMessageSource = exports.JsmChatInteractionType = exports.JsmChatCreateWebConversationUserRole = exports.JsmChatCreateWebConversationMessageContentType = exports.JsmChatConversationUserRole = exports.JsmChatConversationMessageContentType = exports.JsmChatConversationChannelType = exports.JsmChatConversationAnalyticsEvent = exports.JsmChatConnectedApps = exports.JsmChatChannelType = exports.JsmChatChannelExperienceId = exports.JiraWorklogAdjustmentEstimateOperation = exports.JiraWorkManagementUserLicenseSeatEdition = exports.JiraWorkManagementBackgroundType = exports.JiraWatchesOperations = exports.JiraVotesOperations = void 0;
|
|
18
|
+
exports.NlpDisclaimer = exports.NadelHydrationTemplate = exports.MigrationEventType = exports.MigrationEventStatus = exports.MercuryTeamSortField = exports.MercuryTeamFocusAreaAllocationSortField = exports.MercuryTargetDateType = exports.MercuryProviderWorkTargetDateType = exports.MercuryProviderWorkStatusColor = exports.MercuryProviderWorkErrorType = exports.MercuryProviderConfigurationStatus = 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.MarketplaceStoreHomePageHighlightedSectionVariation = exports.MarketplaceStoreEditionType = 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 = void 0;
|
|
19
|
+
exports.SearchContainerStatus = exports.SearchConfluenceRangeField = exports.SearchConfluenceDocumentStatus = exports.SearchBoardProductType = exports.Scope = exports.SandboxEventType = exports.SandboxEventStatus = exports.SandboxEventSource = exports.SandboxEventResult = exports.RoadmapVersionStatus = exports.RoadmapTimelineMode = exports.RoadmapSprintState = exports.RoadmapRankPosition = exports.RoadmapPaletteColor = exports.RoadmapLevelOneView = exports.RoadmapEpicView = exports.RoadmapChildIssuePlanningMode = exports.RateLimitingCurrency = exports.RadarFilterPlurality = exports.RadarFilterOperators = exports.RadarFilterInputType = exports.RadarFieldType = exports.RadarEntityType = exports.PrincipalType = exports.PolarisVisualizationType = exports.PolarisViewSortMode = exports.PolarisViewSetType = exports.PolarisViewLayoutType = exports.PolarisViewFilterOperator = exports.PolarisViewFilterKind = exports.PolarisViewFieldRollupType = exports.PolarisValueOperator = exports.PolarisTimelineMode = exports.PolarisSortOrder = exports.PolarisSnippetPropertyKind = exports.PolarisResolvedObjectAuthType = exports.PolarisRefreshError = exports.PolarisPlayKind = exports.PolarisFieldType = exports.PolarisCommentKind = exports.PlanModeDestination = exports.PartnerInvoiceJsonCurrency = exports.PartnerCurrency = exports.PartnerCloudLicenseType = exports.PartnerBtfLicenseType = exports.PeapProgramStatus = exports.NlpSearchResultType = exports.NlpSearchResultFormat = exports.NlpGetKeywordsTextFormat = exports.NlpErrorState = void 0;
|
|
20
|
+
exports.ToolchainAssociateEntitiesErrorCode = exports.TeamStateV2 = exports.TeamState = exports.TeamSortOrder = exports.TeamSortField = exports.TeamSearchField = exports.TeamRole = exports.TeamMembershipState = exports.TeamMembershipSettings = exports.TeamMembershipRole = exports.SwimlaneStrategy = exports.SupportRequestUserType = exports.SupportRequestStatusCategory = exports.SupportRequestQueryStatusCategory = exports.SupportRequestQueryOwnership = exports.SupportRequestNamedContactOperation = exports.SupportRequestFieldDataType = exports.SprintState = exports.SprintReportsEstimationStatisticType = exports.SortOrder = exports.SortDirection = exports.SoftwareCardsDestinationEnum = 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.ShepherdAlertDetectionCategory = exports.ShepherdAlertAction = exports.ShepherdActorOrgStatus = exports.ShepherdActionType = exports.SearchThirdPartyRangeField = exports.SearchSortOrder = exports.SearchResultType = exports.SearchProjectType = exports.SearchIssueStatusCategory = void 0;
|
|
21
|
+
exports.SourceBillingType = exports.WorkSuggestionsVulnerabilityStatus = exports.WorkSuggestionsUserPersona = exports.WorkSuggestionsTargetAudience = exports.WorkSuggestionsEnvironmentType = exports.WorkSuggestionsAutoDevJobState = exports.WorkSuggestionsApprovalStatus = exports.WorkSuggestionsAction = exports.VirtualAgentIntentTemplateType = exports.VirtualAgentConversationState = exports.VirtualAgentConversationCsatOptionType = exports.VirtualAgentConversationChannel = exports.VirtualAgentConversationActionType = exports.UserInstallationRuleValue = exports.TrelloWorkspaceTier = exports.TrelloWorkspaceMembershipType = exports.TrelloSupportedPlannerProviders = exports.TrelloPowerUpDataScope = exports.TrelloPowerUpDataAccess = exports.TrelloPlannerCalendarEventVisibility = exports.TrelloPlannerCalendarEventStatus = exports.TrelloPlannerCalendarColor = exports.TrelloCardRole = exports.TrelloCardExternalSource = exports.TrelloCardCoverSize = exports.TrelloCardCoverColor = exports.TrelloCardCoverBrightness = exports.TrelloBoardMembershipType = exports.TownsquareTargetDateType = exports.TownsquareProjectStateValue = exports.TownsquareProjectSortEnum = exports.TownsquareGoalTypeState = exports.TownsquareGoalTypeIconKey = exports.TownsquareGoalStateValue = exports.TownsquareGoalSortEnum = exports.TownsquareGoalIconAppearance = exports.ToolchainWorkspaceConnectionErrorCode = exports.ToolchainSyncState = exports.ToolchainProviderType = exports.ToolchainDisassociateEntitiesErrorCode = exports.ToolchainCreateContainerErrorCode = exports.ToolchainCheckAuthErrorCode = void 0;
|
|
22
22
|
var AcceptableResponse;
|
|
23
23
|
(function (AcceptableResponse) {
|
|
24
24
|
AcceptableResponse["False"] = "FALSE";
|
|
@@ -3667,6 +3667,7 @@ var GrowthUnifiedProfileProductType;
|
|
|
3667
3667
|
var GrowthUnifiedProfileTeamType;
|
|
3668
3668
|
(function (GrowthUnifiedProfileTeamType) {
|
|
3669
3669
|
GrowthUnifiedProfileTeamType["CustomerService"] = "CUSTOMER_SERVICE";
|
|
3670
|
+
GrowthUnifiedProfileTeamType["DataScience"] = "DATA_SCIENCE";
|
|
3670
3671
|
GrowthUnifiedProfileTeamType["Design"] = "DESIGN";
|
|
3671
3672
|
GrowthUnifiedProfileTeamType["Finance"] = "FINANCE";
|
|
3672
3673
|
GrowthUnifiedProfileTeamType["HumanResources"] = "HUMAN_RESOURCES";
|
|
@@ -3675,6 +3676,8 @@ var GrowthUnifiedProfileTeamType;
|
|
|
3675
3676
|
GrowthUnifiedProfileTeamType["Marketing"] = "MARKETING";
|
|
3676
3677
|
GrowthUnifiedProfileTeamType["Operations"] = "OPERATIONS";
|
|
3677
3678
|
GrowthUnifiedProfileTeamType["Other"] = "OTHER";
|
|
3679
|
+
GrowthUnifiedProfileTeamType["ProductManagement"] = "PRODUCT_MANAGEMENT";
|
|
3680
|
+
GrowthUnifiedProfileTeamType["ProjectManagement"] = "PROJECT_MANAGEMENT";
|
|
3678
3681
|
GrowthUnifiedProfileTeamType["Sales"] = "SALES";
|
|
3679
3682
|
GrowthUnifiedProfileTeamType["SoftwareDevelopment"] = "SOFTWARE_DEVELOPMENT";
|
|
3680
3683
|
})(GrowthUnifiedProfileTeamType = exports.GrowthUnifiedProfileTeamType || (exports.GrowthUnifiedProfileTeamType = {}));
|
|
@@ -5127,27 +5130,6 @@ var JiraSoftwareIssueSearchCustomInputContext;
|
|
|
5127
5130
|
JiraSoftwareIssueSearchCustomInputContext["Board"] = "BOARD";
|
|
5128
5131
|
JiraSoftwareIssueSearchCustomInputContext["None"] = "NONE";
|
|
5129
5132
|
})(JiraSoftwareIssueSearchCustomInputContext = exports.JiraSoftwareIssueSearchCustomInputContext || (exports.JiraSoftwareIssueSearchCustomInputContext = {}));
|
|
5130
|
-
var JiraSoftwareSimpleNavigationItemEnum;
|
|
5131
|
-
(function (JiraSoftwareSimpleNavigationItemEnum) {
|
|
5132
|
-
JiraSoftwareSimpleNavigationItemEnum["JswBacklog"] = "JSW_BACKLOG";
|
|
5133
|
-
JiraSoftwareSimpleNavigationItemEnum["JswBoard"] = "JSW_BOARD";
|
|
5134
|
-
JiraSoftwareSimpleNavigationItemEnum["JswCalendar"] = "JSW_CALENDAR";
|
|
5135
|
-
JiraSoftwareSimpleNavigationItemEnum["JswCode"] = "JSW_CODE";
|
|
5136
|
-
JiraSoftwareSimpleNavigationItemEnum["JswComponents"] = "JSW_COMPONENTS";
|
|
5137
|
-
JiraSoftwareSimpleNavigationItemEnum["JswDeployments"] = "JSW_DEPLOYMENTS";
|
|
5138
|
-
JiraSoftwareSimpleNavigationItemEnum["JswGoals"] = "JSW_GOALS";
|
|
5139
|
-
JiraSoftwareSimpleNavigationItemEnum["JswIncidents"] = "JSW_INCIDENTS";
|
|
5140
|
-
JiraSoftwareSimpleNavigationItemEnum["JswIssues"] = "JSW_ISSUES";
|
|
5141
|
-
JiraSoftwareSimpleNavigationItemEnum["JswList"] = "JSW_LIST";
|
|
5142
|
-
JiraSoftwareSimpleNavigationItemEnum["JswOnCall"] = "JSW_ON_CALL";
|
|
5143
|
-
JiraSoftwareSimpleNavigationItemEnum["JswPages"] = "JSW_PAGES";
|
|
5144
|
-
JiraSoftwareSimpleNavigationItemEnum["JswReleases"] = "JSW_RELEASES";
|
|
5145
|
-
JiraSoftwareSimpleNavigationItemEnum["JswReports"] = "JSW_REPORTS";
|
|
5146
|
-
JiraSoftwareSimpleNavigationItemEnum["JswRequests"] = "JSW_REQUESTS";
|
|
5147
|
-
JiraSoftwareSimpleNavigationItemEnum["JswSecurity"] = "JSW_SECURITY";
|
|
5148
|
-
JiraSoftwareSimpleNavigationItemEnum["JswShortcuts"] = "JSW_SHORTCUTS";
|
|
5149
|
-
JiraSoftwareSimpleNavigationItemEnum["JswTimeline"] = "JSW_TIMELINE";
|
|
5150
|
-
})(JiraSoftwareSimpleNavigationItemEnum = exports.JiraSoftwareSimpleNavigationItemEnum || (exports.JiraSoftwareSimpleNavigationItemEnum = {}));
|
|
5151
5133
|
var JiraSprintState;
|
|
5152
5134
|
(function (JiraSprintState) {
|
|
5153
5135
|
JiraSprintState["Active"] = "ACTIVE";
|
|
@@ -5,8 +5,6 @@ import { getEnvironmentConfig } from '../graphql';
|
|
|
5
5
|
import { CLIDetails } from '../shared';
|
|
6
6
|
import { Logger } from '../ui';
|
|
7
7
|
declare type FeatureFlagType = {
|
|
8
|
-
'forge-cli-test-flag': 'apple' | 'banana' | 'orange' | 'watermelon';
|
|
9
|
-
'forge-cli-startup-warning': string;
|
|
10
8
|
'forge-cli-enable-atlas-product-support': boolean;
|
|
11
9
|
'forge-cli-use-cloudflare-tunnel': boolean;
|
|
12
10
|
'is-logs-v-2-api-enabled': boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"feature-flag-service.d.ts","sourceRoot":"","sources":["../../src/service/feature-flag-service.ts"],"names":[],"mappings":"AAAA,OAAqB,EAAe,QAAQ,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AA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AG,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC;CAG7F"}
|
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"}
|
|
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"}
|
package/out/service/index.js
CHANGED
|
@@ -5,3 +5,4 @@ tslib_1.__exportStar(require("./bridge-script-service"), exports);
|
|
|
5
5
|
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
|
+
tslib_1.__exportStar(require("./statsig-service"), exports);
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { CLIDetails, ConfigSectionReader, CredentialGetter, getEnvironmentConfig, Logger } from '../index';
|
|
2
|
+
export declare type FeatureGate = 'forge-cli-test-gate';
|
|
3
|
+
export declare type DynamicConfig = {
|
|
4
|
+
'forge-cli-test-dynamic-configs': {
|
|
5
|
+
value: string[];
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
export declare type DynamicConfigKey = keyof DynamicConfig;
|
|
9
|
+
export declare abstract class StatsigReader {
|
|
10
|
+
abstract checkGate<F extends FeatureGate>(flag: F, customAttributes?: Record<string, string>): Promise<boolean | null>;
|
|
11
|
+
abstract getDynamicConfig<F extends DynamicConfigKey>(flag: F, metadata?: Record<string, string>): Promise<DynamicConfig[F] | null>;
|
|
12
|
+
testForgeCliTestGate(): Promise<boolean>;
|
|
13
|
+
getForgeCliTestDynamicConfig(): Promise<any>;
|
|
14
|
+
}
|
|
15
|
+
export declare function cacheStatsigResult<C, T>(getter: (this: C, ...args: any[]) => Promise<T>): (this: C, ...args: any[]) => Promise<T>;
|
|
16
|
+
export declare class StatsigService extends StatsigReader {
|
|
17
|
+
private readonly logger;
|
|
18
|
+
private readonly cliDetails;
|
|
19
|
+
private readonly credentialStore;
|
|
20
|
+
private readonly appConfigReader;
|
|
21
|
+
private readonly getEnvironmentFn;
|
|
22
|
+
constructor(logger: Logger, cliDetails: Pick<CLIDetails, 'version'> | undefined, credentialStore: CredentialGetter, appConfigReader: ConfigSectionReader<{
|
|
23
|
+
id: string;
|
|
24
|
+
}>, getEnvironmentFn?: typeof getEnvironmentConfig);
|
|
25
|
+
private appID;
|
|
26
|
+
private context;
|
|
27
|
+
private fetchGates;
|
|
28
|
+
private fetchDynamicConfigs;
|
|
29
|
+
private gatesClient;
|
|
30
|
+
private dynamicConfigClient;
|
|
31
|
+
checkGate<F extends FeatureGate>(gate: F, customAttributes?: Record<string, string>): Promise<boolean | null>;
|
|
32
|
+
getDynamicConfig<F extends DynamicConfigKey>(dynamicConfig: F, metadata?: Record<string, string>): Promise<DynamicConfig[F] | null>;
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=statsig-service.d.ts.map
|
|
@@ -0,0 +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,GAAG,qBAAqB,CAAC;AAEhD,oBAAY,aAAa,GAAG;IAC1B,gCAAgC,EAAE;QAAE,KAAK,EAAE,MAAM,EAAE,CAAA;KAAE,C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AC,EACpD,gBAAgB,GAAE,OAAO,oBAA2C;IAKvF,OAAO,CAAC,KAAK,CAOV;IAEH,OAAO,CAAC,OAAO,CAkBb;IAEF,OAAO,CAAC,UAAU,CA6BhB;IAEF,OAAO,CAAC,mBAAmB,CA6BzB;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"}
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StatsigService = exports.cacheStatsigResult = exports.StatsigReader = void 0;
|
|
4
|
+
const index_1 = require("../index");
|
|
5
|
+
class StatsigReader {
|
|
6
|
+
async testForgeCliTestGate() {
|
|
7
|
+
return (await this.checkGate('forge-cli-test-gate')) ?? false;
|
|
8
|
+
}
|
|
9
|
+
async getForgeCliTestDynamicConfig() {
|
|
10
|
+
return (await this.getDynamicConfig('forge-cli-test-dynamic-configs')) ?? { value: [] };
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
exports.StatsigReader = StatsigReader;
|
|
14
|
+
var STATSIG_API_KEYS;
|
|
15
|
+
(function (STATSIG_API_KEYS) {
|
|
16
|
+
STATSIG_API_KEYS["DEV"] = "8821cc19-368d-43d4-a20d-c6b8dca6b7ee";
|
|
17
|
+
STATSIG_API_KEYS["STG"] = "a821948e-f0a9-4fae-b211-7ea7a666ccc5";
|
|
18
|
+
STATSIG_API_KEYS["PROD"] = "b63235cf-e03e-460b-aa2c-f071b3986a0c";
|
|
19
|
+
STATSIG_API_KEYS["FEDRAMP_MODERATE_STAGING"] = "";
|
|
20
|
+
STATSIG_API_KEYS["FEDRAMP_MODERATE_PROD"] = "";
|
|
21
|
+
})(STATSIG_API_KEYS || (STATSIG_API_KEYS = {}));
|
|
22
|
+
var BASE_FEATURE_FLAG_SERVICE_URL;
|
|
23
|
+
(function (BASE_FEATURE_FLAG_SERVICE_URL) {
|
|
24
|
+
BASE_FEATURE_FLAG_SERVICE_URL["DEV"] = "https://api.stg.atlassian.com/flags/api/v2/";
|
|
25
|
+
BASE_FEATURE_FLAG_SERVICE_URL["STG"] = "https://api.stg.atlassian.com/flags/api/v2/";
|
|
26
|
+
BASE_FEATURE_FLAG_SERVICE_URL["PROD"] = "https://api.atlassian.com/flags/api/v2/";
|
|
27
|
+
BASE_FEATURE_FLAG_SERVICE_URL["FEDRAMP_MODERATE_STAGING"] = "";
|
|
28
|
+
BASE_FEATURE_FLAG_SERVICE_URL["FEDRAMP_MODERATE_PROD"] = "";
|
|
29
|
+
})(BASE_FEATURE_FLAG_SERVICE_URL || (BASE_FEATURE_FLAG_SERVICE_URL = {}));
|
|
30
|
+
function cacheStatsigResult(getter) {
|
|
31
|
+
const cacheDict = new Map();
|
|
32
|
+
return async function (...args) {
|
|
33
|
+
const relevantArgs = args.filter((arg) => arg !== undefined);
|
|
34
|
+
const cacheKey = JSON.stringify(relevantArgs);
|
|
35
|
+
if (cacheDict.has(cacheKey)) {
|
|
36
|
+
return cacheDict.get(cacheKey);
|
|
37
|
+
}
|
|
38
|
+
const value = await getter.apply(this, args);
|
|
39
|
+
cacheDict.set(cacheKey, value);
|
|
40
|
+
return value;
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
exports.cacheStatsigResult = cacheStatsigResult;
|
|
44
|
+
class StatsigService extends StatsigReader {
|
|
45
|
+
logger;
|
|
46
|
+
cliDetails;
|
|
47
|
+
credentialStore;
|
|
48
|
+
appConfigReader;
|
|
49
|
+
getEnvironmentFn;
|
|
50
|
+
constructor(logger, cliDetails, credentialStore, appConfigReader, getEnvironmentFn = index_1.getEnvironmentConfig) {
|
|
51
|
+
super();
|
|
52
|
+
this.logger = logger;
|
|
53
|
+
this.cliDetails = cliDetails;
|
|
54
|
+
this.credentialStore = credentialStore;
|
|
55
|
+
this.appConfigReader = appConfigReader;
|
|
56
|
+
this.getEnvironmentFn = getEnvironmentFn;
|
|
57
|
+
}
|
|
58
|
+
appID = cacheStatsigResult(async () => {
|
|
59
|
+
try {
|
|
60
|
+
const config = await this.appConfigReader.readConfigSection();
|
|
61
|
+
return config === 'missing' || config === 'invalid' ? null : config.id;
|
|
62
|
+
}
|
|
63
|
+
catch {
|
|
64
|
+
return null;
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
context = cacheStatsigResult(async () => {
|
|
68
|
+
const context = {};
|
|
69
|
+
try {
|
|
70
|
+
const { accountId } = await this.credentialStore.getCredentials();
|
|
71
|
+
if (accountId) {
|
|
72
|
+
context.accountId = accountId;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
catch { }
|
|
76
|
+
const appID = await this.appID();
|
|
77
|
+
if (appID) {
|
|
78
|
+
context.appId = appID.split('/')[1];
|
|
79
|
+
}
|
|
80
|
+
if (this.cliDetails) {
|
|
81
|
+
context.version = this.cliDetails.version;
|
|
82
|
+
}
|
|
83
|
+
return context;
|
|
84
|
+
});
|
|
85
|
+
fetchGates = async (customAttributes) => {
|
|
86
|
+
try {
|
|
87
|
+
const baseURL = this.getEnvironmentFn(BASE_FEATURE_FLAG_SERVICE_URL);
|
|
88
|
+
const apiKey = this.getEnvironmentFn(STATSIG_API_KEYS);
|
|
89
|
+
const context = await this.context();
|
|
90
|
+
const response = await fetch(`${baseURL}/frontend/gates`, {
|
|
91
|
+
headers: {
|
|
92
|
+
'x-api-key': apiKey,
|
|
93
|
+
'Content-Type': 'application/json'
|
|
94
|
+
},
|
|
95
|
+
method: 'POST',
|
|
96
|
+
body: JSON.stringify({
|
|
97
|
+
identifiers: {
|
|
98
|
+
atlassianAccountId: context.accountId
|
|
99
|
+
},
|
|
100
|
+
customAttributes: {
|
|
101
|
+
appId: context.appId,
|
|
102
|
+
version: context.version
|
|
103
|
+
},
|
|
104
|
+
targetApp: 'forge_cli'
|
|
105
|
+
})
|
|
106
|
+
});
|
|
107
|
+
return await response.json();
|
|
108
|
+
}
|
|
109
|
+
catch (error) {
|
|
110
|
+
this.logger.debug(`Failed to fetch gates: ${error}`);
|
|
111
|
+
return {};
|
|
112
|
+
}
|
|
113
|
+
};
|
|
114
|
+
fetchDynamicConfigs = async (metadata) => {
|
|
115
|
+
try {
|
|
116
|
+
const baseURL = this.getEnvironmentFn(BASE_FEATURE_FLAG_SERVICE_URL);
|
|
117
|
+
const apiKey = this.getEnvironmentFn(STATSIG_API_KEYS);
|
|
118
|
+
const context = await this.context();
|
|
119
|
+
const response = await fetch(`${baseURL}/configurations`, {
|
|
120
|
+
headers: {
|
|
121
|
+
'x-api-key': apiKey,
|
|
122
|
+
'Content-Type': 'application/json'
|
|
123
|
+
},
|
|
124
|
+
method: 'POST',
|
|
125
|
+
body: JSON.stringify({
|
|
126
|
+
identifiers: {
|
|
127
|
+
atlassianAccountId: context.accountId
|
|
128
|
+
},
|
|
129
|
+
metadata: {
|
|
130
|
+
appId: context.appId,
|
|
131
|
+
version: context.version
|
|
132
|
+
},
|
|
133
|
+
namespace: 'forge_cli'
|
|
134
|
+
})
|
|
135
|
+
});
|
|
136
|
+
return await response.json();
|
|
137
|
+
}
|
|
138
|
+
catch (error) {
|
|
139
|
+
this.logger.debug(`Failed to fetch dynamic configurations: ${error}`);
|
|
140
|
+
return { 'forge-cli-test-dynamic-configs': { value: [] } };
|
|
141
|
+
}
|
|
142
|
+
};
|
|
143
|
+
gatesClient = cacheStatsigResult(async (customAttributes) => {
|
|
144
|
+
const gates = await this.fetchGates(customAttributes);
|
|
145
|
+
return { gates };
|
|
146
|
+
});
|
|
147
|
+
dynamicConfigClient = cacheStatsigResult(async (metadata) => {
|
|
148
|
+
const dynamicConfigs = await this.fetchDynamicConfigs(metadata);
|
|
149
|
+
return { dynamicConfigs };
|
|
150
|
+
});
|
|
151
|
+
async checkGate(gate, customAttributes = {}) {
|
|
152
|
+
if ((0, index_1.isFedrampEnv)()) {
|
|
153
|
+
this.logger.debug(`Feature gates ${gate} is not available in FedRAMP environments.`);
|
|
154
|
+
return false;
|
|
155
|
+
}
|
|
156
|
+
try {
|
|
157
|
+
const { gates } = await this.gatesClient(customAttributes, {});
|
|
158
|
+
return gates[gate] ?? null;
|
|
159
|
+
}
|
|
160
|
+
catch (error) {
|
|
161
|
+
this.logger.error(new Error('Failed to read feature gates. Proceeding with defaults.'));
|
|
162
|
+
return null;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
async getDynamicConfig(dynamicConfig, metadata = {}) {
|
|
166
|
+
if ((0, index_1.isFedrampEnv)()) {
|
|
167
|
+
this.logger.debug(`Dynamic config ${dynamicConfig} is not available in FedRAMP environments.`);
|
|
168
|
+
return [];
|
|
169
|
+
}
|
|
170
|
+
try {
|
|
171
|
+
const { dynamicConfigs } = await this.dynamicConfigClient({}, metadata);
|
|
172
|
+
return dynamicConfigs[dynamicConfig] ?? null;
|
|
173
|
+
}
|
|
174
|
+
catch (error) {
|
|
175
|
+
this.logger.error(new Error('Failed to read dynamic configs. Proceeding with defaults.'));
|
|
176
|
+
return null;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
exports.StatsigService = StatsigService;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forge/cli-shared",
|
|
3
|
-
"version": "6.0.0-next.
|
|
3
|
+
"version": "6.0.0-next.18",
|
|
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": "7.9.0-next.
|
|
15
|
+
"@forge/manifest": "7.9.0-next.14",
|
|
16
16
|
"@forge/util": "1.4.4",
|
|
17
17
|
"@forge/i18n": "0.0.1",
|
|
18
18
|
"@sentry/node": "7.100.1",
|
|
@@ -65,6 +65,7 @@
|
|
|
65
65
|
"@types/recursive-readdir": "^2.2.4",
|
|
66
66
|
"@types/tmp": "^0.2.6",
|
|
67
67
|
"jest-fixtures": "^0.6.0",
|
|
68
|
-
"jest-matcher-specific-error": "^1.0.0"
|
|
68
|
+
"jest-matcher-specific-error": "^1.0.0",
|
|
69
|
+
"jest-fetch-mock": "^3.0.3"
|
|
69
70
|
}
|
|
70
71
|
}
|