@forge/cli-shared 5.0.0-next.5 → 5.0.0-next.6

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.
Files changed (49) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/out/app-logs/graphql-client.js +9 -2
  3. package/out/app-logs/view-logs.js +4 -0
  4. package/out/apps/app-config.js +4 -1
  5. package/out/apps/create-an-app.js +3 -0
  6. package/out/apps/create-app-graphql-client.js +1 -0
  7. package/out/apps/get-app-owner.js +2 -0
  8. package/out/apps/package-installer.js +1 -0
  9. package/out/apps/register-app.js +8 -1
  10. package/out/apps/template.js +5 -0
  11. package/out/auth/personal/credential-store.js +7 -2
  12. package/out/auth/personal/login.js +8 -2
  13. package/out/auth/personal/logout.js +1 -0
  14. package/out/auth/personal/me-graphql-client.js +2 -0
  15. package/out/auth/personal/token-authenticator.js +1 -0
  16. package/out/cache/cached-conf.js +1 -0
  17. package/out/config/config-file-section-reader.js +4 -0
  18. package/out/config/config-file-section-writer.js +2 -0
  19. package/out/config/config-file.d.ts +2 -2
  20. package/out/config/config-file.d.ts.map +1 -1
  21. package/out/config/config-file.js +48 -55
  22. package/out/config/config-section.js +1 -0
  23. package/out/file-system/file-system-reader.js +2 -2
  24. package/out/graphql/app-environment-graphql-client.js +1 -0
  25. package/out/graphql/app-oauth-client-id-graphql-client.js +1 -0
  26. package/out/graphql/debugging-graphql-runner.js +3 -0
  27. package/out/graphql/get-mutation-error.js +4 -5
  28. package/out/graphql/graphql-types.d.ts +91 -0
  29. package/out/graphql/graphql-types.d.ts.map +1 -1
  30. package/out/graphql/graphql-types.js +14 -7
  31. package/out/graphql/minimal-graphql-runner.js +30 -22
  32. package/out/graphql/mutation-aware-graphql-client.js +14 -10
  33. package/out/http-client/feedback-post-client.js +1 -3
  34. package/out/http-client/file-uploader.js +1 -0
  35. package/out/http-client/global-edge-http-client.js +1 -0
  36. package/out/http-client/trace.js +1 -2
  37. package/out/runtimes/helper.js +1 -1
  38. package/out/service/bridge-script-service.js +1 -0
  39. package/out/service/feature-flag-service.js +51 -48
  40. package/out/service/iframe-resizer-script-service.js +1 -0
  41. package/out/shared/cli-details.js +2 -2
  42. package/out/shared/error-handling.js +5 -3
  43. package/out/shared/product.js +2 -4
  44. package/out/shared/read-app-config-files.js +7 -5
  45. package/out/shared/validate.js +1 -1
  46. package/out/ui/command-line-ui.js +14 -8
  47. package/out/ui/multiple-table-prompt.js +1 -1
  48. package/out/ui/table-prompt.js +8 -1
  49. package/package.json +2 -2
@@ -6,13 +6,13 @@ exports.EcosystemAppsInstalledInContextsSortKey = exports.EcosystemAppsInstalled
6
6
  exports.GraphQueryMetadataSortEnum = exports.GraphQueryMetadataServiceLinkedIncidentInputToJiraServiceManagementIncidentPriorityEnum = exports.GraphQueryMetadataSecurityContainerAssociatedToVulnerabilityInputToVulnerabilityTypeEnum = exports.GraphQueryMetadataSecurityContainerAssociatedToVulnerabilityInputToVulnerabilityStatusEnum = exports.GraphQueryMetadataSecurityContainerAssociatedToVulnerabilityInputToVulnerabilitySeverityEnum = exports.GraphQueryMetadataProjectHasIssueInputRelationshipArimatchTypeEnum = exports.GraphQueryMetadataProjectAssociatedVulnerabilityInputToVulnerabilityTypeEnum = exports.GraphQueryMetadataProjectAssociatedVulnerabilityInputToVulnerabilityStatusEnum = exports.GraphQueryMetadataProjectAssociatedVulnerabilityInputToVulnerabilitySeverityEnum = exports.GraphQueryMetadataProjectAssociatedPrInputToReviewermatchTypeEnum = exports.GraphQueryMetadataProjectAssociatedPrInputToReviewerReviewerStatusEnum = exports.GraphQueryMetadataProjectAssociatedPrInputToPullRequestStatusEnum = exports.GraphQueryMetadataProjectAssociatedDeploymentInputToEnvironmentTypeEnum = exports.GraphQueryMetadataProjectAssociatedDeploymentInputToDeploymentStateEnum = exports.GraphQueryMetadataProjectAssociatedBuildInputToBuildStateEnum = exports.GraphCreateMetadataSprintContainsIssueJiraIssueOutputStatusCategoryEnum = exports.GraphCreateMetadataSprintContainsIssueJiraIssueInputStatusCategoryEnum = exports.GraphCreateMetadataSprintAssociatedVulnerabilityOutputStatusCategoryEnum = exports.GraphCreateMetadataSprintAssociatedVulnerabilityJiraVulnerabilityOutputVulnerabilityStatusEnum = exports.GraphCreateMetadataSprintAssociatedVulnerabilityJiraVulnerabilityOutputVulnerabilitySeverityEnum = exports.GraphCreateMetadataSprintAssociatedPrJiraPullRequestOutputReviewerReviewerStatusEnum = exports.GraphCreateMetadataSprintAssociatedPrJiraPullRequestOutputPullRequestStatusEnum = exports.GraphCreateMetadataSprintAssociatedDeploymentJiraDeploymentOutputDeploymentStateEnum = exports.GraphCreateMetadataSprintAssociatedBuildJiraBuildOutputBuildStateEnum = exports.GraphCreateMetadataProjectAssociatedVulnerabilityJiraVulnerabilityOutputVulnerabilityTypeEnum = exports.GraphCreateMetadataProjectAssociatedVulnerabilityJiraVulnerabilityOutputVulnerabilityStatusEnum = exports.GraphCreateMetadataProjectAssociatedVulnerabilityJiraVulnerabilityOutputVulnerabilitySeverityEnum = exports.GraphCreateMetadataProjectAssociatedPrJiraPullRequestOutputReviewerReviewerStatusEnum = exports.GraphCreateMetadataProjectAssociatedPrJiraPullRequestOutputPullRequestStatusEnum = exports.GraphCreateMetadataProjectAssociatedDeploymentJiraDeploymentOutputEnvironmentTypeEnum = exports.GraphCreateMetadataProjectAssociatedDeploymentJiraDeploymentOutputDeploymentStateEnum = exports.GraphCreateMetadataProjectAssociatedBuildJiraBuildOutputBuildStateEnum = exports.GrantCheckProduct = exports.FunctionTriggerType = exports.FortifiedMetricsResolutionUnit = exports.FormStatus = exports.ForgeMetricsSiteFilterCategory = exports.ForgeMetricsResolutionUnit = exports.ForgeMetricsLabels = exports.ForgeMetricsGroupByDimensions = exports.ForgeMetricsDataType = exports.ForgeMetricsChartName = exports.ForgeMetricsApiRequestType = exports.ForgeMetricsApiRequestStatus = exports.ForgeMetricsApiRequestGroupByDimensions = exports.ForgeAuditLogsActionType = exports.ForgeAlertsStatus = exports.ForgeAlertsActivityType = exports.ExtensionContextsFilterType = exports.EstimationType = void 0;
7
7
  exports.GraphStoreFullSprintAssociatedVulnerabilityVulnerabilityStatusOutput = exports.GraphStoreFullSprintAssociatedVulnerabilityVulnerabilitySeverityOutput = exports.GraphStoreFullSprintAssociatedVulnerabilityStatusCategoryOutput = exports.GraphStoreFullSprintAssociatedPrReviewerReviewerStatusOutput = exports.GraphStoreFullSprintAssociatedPrPullRequestStatusOutput = exports.GraphStoreFullSprintAssociatedDeploymentEnvironmentTypeOutput = exports.GraphStoreFullSprintAssociatedDeploymentDeploymentStateOutput = exports.GraphStoreFullSprintAssociatedBuildBuildStateOutput = exports.GraphStoreFullServiceLinkedIncidentJiraServiceManagementIncidentStatusOutput = exports.GraphStoreFullServiceLinkedIncidentJiraServiceManagementIncidentPriorityOutput = exports.GraphStoreFullSecurityContainerAssociatedToVulnerabilityVulnerabilityTypeOutput = exports.GraphStoreFullSecurityContainerAssociatedToVulnerabilityVulnerabilityStatusOutput = exports.GraphStoreFullSecurityContainerAssociatedToVulnerabilityVulnerabilitySeverityOutput = exports.GraphStoreFullProjectAssociatedVulnerabilityVulnerabilityTypeOutput = exports.GraphStoreFullProjectAssociatedVulnerabilityVulnerabilityStatusOutput = exports.GraphStoreFullProjectAssociatedVulnerabilityVulnerabilitySeverityOutput = exports.GraphStoreFullProjectAssociatedPrReviewerReviewerStatusOutput = exports.GraphStoreFullProjectAssociatedPrPullRequestStatusOutput = exports.GraphStoreFullProjectAssociatedDeploymentEnvironmentTypeOutput = exports.GraphStoreFullProjectAssociatedDeploymentDeploymentStateOutput = exports.GraphStoreFullProjectAssociatedBuildBuildStateOutput = exports.GraphStoreFullParentDocumentHasChildDocumentCategoryOutput = exports.GraphStoreFullJswProjectAssociatedIncidentJiraIncidentStatusOutput = exports.GraphStoreFullJswProjectAssociatedIncidentJiraIncidentPriorityOutput = exports.GraphStoreFullIssueAssociatedPrReviewerReviewerStatusOutput = exports.GraphStoreFullIssueAssociatedPrPullRequestStatusOutput = exports.GraphStoreFullIssueAssociatedIssueRemoteLinkLinkRelationshipOutput = exports.GraphStoreFullIssueAssociatedIssueRemoteLinkLinkApplicationTypeOutput = exports.GraphStoreFullIssueAssociatedDesignDesignTypeOutput = exports.GraphStoreFullIssueAssociatedDesignDesignStatusOutput = exports.GraphStoreFullIssueAssociatedDeploymentEnvironmentTypeOutput = exports.GraphStoreFullIssueAssociatedDeploymentDeploymentStateOutput = exports.GraphStoreFullIssueAssociatedBuildBuildStateOutput = exports.GraphStoreFullComponentImpactedByIncidentJiraIncidentStatusOutput = exports.GraphStoreFullComponentImpactedByIncidentJiraIncidentPriorityOutput = exports.GraphStoreCreateVulnerabilityAssociatedIssueVulnerabilityTypeInput = exports.GraphStoreCreateVulnerabilityAssociatedIssueVulnerabilityStatusInput = exports.GraphStoreCreateVulnerabilityAssociatedIssueVulnerabilitySeverityInput = exports.GraphStoreCreateComponentImpactedByIncidentJiraIncidentStatusInput = exports.GraphStoreCreateComponentImpactedByIncidentJiraIncidentPriorityInput = exports.GraphQueryMetadataSprintContainsIssueInputToStatusCategoryEnum = exports.GraphQueryMetadataSprintAssociatedVulnerabilityInputToVulnerabilityStatusEnum = exports.GraphQueryMetadataSprintAssociatedVulnerabilityInputToVulnerabilitySeverityEnum = exports.GraphQueryMetadataSprintAssociatedVulnerabilityInputRelationshipStatusCategoryEnum = exports.GraphQueryMetadataSprintAssociatedPrInputToReviewermatchTypeEnum = exports.GraphQueryMetadataSprintAssociatedPrInputToReviewerReviewerStatusEnum = exports.GraphQueryMetadataSprintAssociatedPrInputToPullRequestStatusEnum = exports.GraphQueryMetadataSprintAssociatedDeploymentInputToEnvironmentTypeEnum = exports.GraphQueryMetadataSprintAssociatedDeploymentInputToDeploymentStateEnum = exports.GraphQueryMetadataSprintAssociatedBuildInputToBuildStateEnum = void 0;
8
8
  exports.HelpObjectStoreSearchableEntityType = exports.HelpObjectStoreSearchEntityType = exports.HelpObjectStoreSearchBackend = exports.HelpObjectStoreSearchAlgorithm = exports.HelpObjectStoreJsmEntityType = exports.HelpObjectStoreHelpObjectType = exports.HelpLayoutVerticalAlignment = exports.HelpLayoutHorizontalAlignment = exports.HelpLayoutHeadingType = exports.HelpLayoutElementKey = exports.HelpLayoutElementCategory = exports.HelpLayoutCompositeElementKey = exports.HelpLayoutAtomicElementKey = exports.HelpExternalResourceLinkResourceType = exports.HelpCenterType = exports.HelpCenterSortOrder = exports.HelpCenterPortalsType = exports.HelpCenterPortalsSortOrder = exports.HelpCenterMediaConfigOperationType = exports.HelpCenterDescriptionType = exports.HelpCenterConversationFailureMessageType = exports.GraphStoreVersionAssociatedDesignDesignType = exports.GraphStoreVersionAssociatedDesignDesignStatus = exports.GraphStoreSprintContainsIssueStatusCategory = exports.GraphStoreSprintAssociatedVulnerabilityVulnerabilityStatus = exports.GraphStoreSprintAssociatedVulnerabilityVulnerabilitySeverity = exports.GraphStoreSprintAssociatedVulnerabilityStatusCategory = exports.GraphStoreSprintAssociatedPrReviewerReviewerStatus = exports.GraphStoreSprintAssociatedPrPullRequestStatus = exports.GraphStoreSprintAssociatedDeploymentEnvironmentType = exports.GraphStoreSprintAssociatedDeploymentDeploymentState = exports.GraphStoreSprintAssociatedBuildBuildState = exports.GraphStoreServiceLinkedIncidentJiraServiceManagementIncidentStatus = exports.GraphStoreServiceLinkedIncidentJiraServiceManagementIncidentPriority = exports.GraphStoreProjectAssociatedVulnerabilityVulnerabilityType = exports.GraphStoreProjectAssociatedVulnerabilityVulnerabilityStatus = exports.GraphStoreProjectAssociatedVulnerabilityVulnerabilitySeverity = exports.GraphStoreProjectAssociatedPrReviewerReviewerStatus = exports.GraphStoreProjectAssociatedPrPullRequestStatus = exports.GraphStoreProjectAssociatedDeploymentEnvironmentType = exports.GraphStoreProjectAssociatedDeploymentDeploymentState = exports.GraphStoreProjectAssociatedBuildBuildState = exports.GraphStoreJswProjectAssociatedIncidentJiraIncidentStatus = exports.GraphStoreJswProjectAssociatedIncidentJiraIncidentPriority = exports.GraphStoreFullVulnerabilityAssociatedIssueVulnerabilityTypeOutput = exports.GraphStoreFullVulnerabilityAssociatedIssueVulnerabilityStatusOutput = exports.GraphStoreFullVulnerabilityAssociatedIssueVulnerabilitySeverityOutput = exports.GraphStoreFullVersionAssociatedDesignDesignTypeOutput = exports.GraphStoreFullVersionAssociatedDesignDesignStatusOutput = exports.GraphStoreFullSprintContainsIssueStatusCategoryOutput = void 0;
9
- exports.JiraDevOpsInContextConfigPromptLocation = exports.JiraDevOpsCapability = exports.JiraDevInfoConfigErrorType = exports.JiraDeploymentsFeaturePrecondition = exports.JiraCustomIssueSearchErrorType = exports.JiraContactOrgAdminToEnableAtlassianIntelligenceState = exports.JiraConfigStateProviderType = exports.JiraConfigStateConfigurationStatus = 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.JiraBitbucketWorkspaceApprovalState = exports.JiraAutofixStatus = exports.JiraAutofixJobType = exports.JiraAutodevStatus = exports.JiraAutodevState = exports.JiraAttachmentsPermissions = exports.JiraAttachmentSortField = exports.JiraAtlassianIntelligenceFeatureEnum = exports.JiraApprovalDecision = 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 = void 0;
10
- exports.JiraProjectDateTimeFormat = exports.JiraProjectAndRepositoryRelationshipSortBy = exports.JiraProjectActionType = exports.JiraProductEnum = 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.JiraJqlBuilderSearchMode = exports.JiraIteration = exports.JiraIssueViewTimestampDisplayMode = exports.JiraIssueViewAttachmentPanelViewMode = exports.JiraIssueViewActivityFeedSortOrder = exports.JiraIssueTransitionLayoutMessageType = exports.JiraIssueTransitionCommentType = exports.JiraIssueSearchFieldSetSelectedState = exports.JiraIssueNavigatorSearchLayout = exports.JiraIssueLinkDirection = exports.JiraIssueLifecycleState = exports.JiraIssueItemSystemContainerType = exports.JiraIssueItemLayoutItemLocationRuleType = exports.JiraIssueDeploymentEnvironmentState = exports.JiraInstallDeploymentsBannerPrecondition = exports.JiraIncidentPriority = exports.JiraHomePageType = exports.JiraGroupsContext = exports.JiraGrantTypeKeyEnum = exports.JiraGoalStatus = exports.JiraGlobalIssueCreateView = exports.JiraFieldOptionIdsFilterOperation = exports.JiraFavouriteType = exports.JiraEmailMimeType = exports.JiraDevOpsUpdateAssociationsEntityType = exports.JiraDevOpsIssuePanelState = exports.JiraDevOpsIssuePanelBannerType = void 0;
11
- 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.JiraSoftwareSimpleNavigationItemEnum = 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.JiraScaledConfigurationPermission = exports.JiraReviewState = exports.JiraResourceUsageRecommendationStatus = exports.JiraResourceUsageCustomFieldRecommendationAction = exports.JiraReleasesIssueReleaseStatusFilter = exports.JiraReleasesEpicReleaseStatusFilter = exports.JiraReleaseNotesIssueKeyConfig = exports.JiraRecommendationCategory = exports.JiraRankMutationEdge = exports.JiraPullRequestState = exports.JiraProjectType = exports.JiraProjectStyle = exports.JiraProjectStatus = exports.JiraProjectSortField = exports.JiraProjectShortcutType = exports.JiraProjectRoleActorUserStatus = exports.JiraProjectRoleActorRecommendationAction = exports.JiraProjectPermissionCategoryEnum = exports.JiraProjectNotificationConfigurationState = exports.JiraProjectListRightPanelState = void 0;
12
- exports.MercuryGoalStatus = exports.MercuryGoalPhase = exports.MercuryFocusAreaSortField = exports.MercuryFocusAreaHealthColor = exports.MembershipState = exports.MembershipSetting = exports.MembershipRole = exports.MarketplaceStorePartnerSupportAvailabilityDay = exports.MarketplaceStorePartnerEnrollmentProgramValue = exports.MarketplaceStorePartnerEnrollmentProgram = exports.MarketplaceStoreInstallationTargetProduct = exports.MarketplaceStoreInstallAppStatus = exports.MarketplaceStoreHomePageHighlightedSectionVariation = exports.MarketplaceStoreDeveloperSpaceStatus = exports.MarketplaceProgramStatus = exports.MarketplacePricingTierType = exports.MarketplacePricingTierPolicy = exports.MarketplacePricingTierMode = exports.MarketplacePricingPlanStatus = exports.MarketplacePartnerType = exports.MarketplacePartnerTierType = exports.MarketplacePartnerSupportHolidayFrequency = exports.MarketplaceLocation = exports.MarketplaceListingStatus = exports.MarketplaceEntityStatus = exports.MarketplaceCloudFortifiedStatus = exports.MarketplaceBillingCycle = exports.MarketplaceAppVersionVisibility = exports.MarketplaceAppPaymentModel = exports.LifecycleStage = exports.LicenseOverrideState = exports.KnowledgeDiscoveryTopicType = exports.KnowledgeDiscoverySearchQueryClassification = exports.KnowledgeDiscoveryKeyPhraseInputTextFormat = exports.KnowledgeDiscoveryEntityType = exports.KnowledgeDiscoveryDefinitionScope = exports.JsmChatMessageType = exports.JsmChatMessageSource = exports.JsmChatConnectedApps = exports.JsmChatChannelType = exports.JiraWorklogAdjustmentEstimateOperation = exports.JiraWorkManagementUserLicenseSeatEdition = exports.JiraWorkManagementBackgroundType = exports.JiraWatchesOperations = exports.JiraVotesOperations = exports.JiraVersionWarningConfigState = exports.JiraVersionWarningCategories = exports.JiraVersionStatus = exports.JiraVersionSortField = exports.JiraVersionReleaseNotesType = void 0;
13
- 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.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.PeapdcpProduct = exports.NlpSearchResultType = exports.NlpSearchResultFormat = exports.NlpGetKeywordsTextFormat = exports.NlpErrorState = exports.NlpDisclaimer = exports.NadelHydrationTemplate = exports.MercuryMetricType = exports.MercuryGoalType = exports.MercuryGoalTargetDateType = void 0;
14
- exports.TownsquareProjectSortEnum = exports.TownsquareGoalStateValue = exports.TownsquareGoalSortEnum = exports.ToolchainSyncState = exports.ToolchainProviderType = exports.TeamStateV2 = exports.TeamState = exports.TeamSortOrder = exports.TeamSortField = 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.ShepherdRemediationActionType = 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.ShepherdActorOrgStatus = exports.ShepherdActionType = exports.SearchThirdPartyRangeField = exports.SearchSortOrder = exports.SearchResultType = exports.SearchProjectType = exports.SearchIssueStatusCategory = exports.SearchContainerStatus = void 0;
15
- exports.SourceBillingType = exports.WorkSuggestionsVulnerabilityStatus = exports.WorkSuggestionsUserPersona = exports.WorkSuggestionsEnvironmentType = exports.WorkSuggestionsApprovalStatus = exports.WorkSuggestionsAction = exports.VirtualAgentIntentTemplateType = exports.VirtualAgentConversationState = exports.VirtualAgentConversationCsatOptionType = exports.VirtualAgentConversationActionType = exports.UserInstallationRuleValue = exports.TrelloWorkspaceTier = exports.TrelloWorkspaceMembershipType = exports.TrelloPowerUpDataScope = exports.TrelloPowerUpDataAccess = exports.TrelloCardRole = exports.TrelloCardExternalSource = exports.TrelloCardCoverSize = exports.TrelloCardCoverColor = exports.TrelloCardCoverBrightness = exports.TrelloBoardMembershipType = exports.TownsquareTargetDateType = exports.TownsquareProjectStateValue = void 0;
9
+ exports.JiraDevOpsCapability = exports.JiraDevInfoConfigErrorType = exports.JiraDeploymentsFeaturePrecondition = exports.JiraCustomIssueSearchErrorType = exports.JiraContactOrgAdminToEnableAtlassianIntelligenceState = exports.JiraConfigStateProviderType = exports.JiraConfigStateConfigurationStatus = 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.JiraBitbucketWorkspaceApprovalState = exports.JiraAutofixStatus = exports.JiraAutofixJobType = exports.JiraAutodevStatus = exports.JiraAutodevState = exports.JiraAttachmentsPermissions = exports.JiraAttachmentSortField = 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 = void 0;
10
+ exports.JiraProjectAndRepositoryRelationshipSortBy = exports.JiraProjectActionType = exports.JiraProductEnum = 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.JiraJqlBuilderSearchMode = exports.JiraIteration = exports.JiraIssueViewTimestampDisplayMode = exports.JiraIssueViewAttachmentPanelViewMode = exports.JiraIssueViewActivityFeedSortOrder = exports.JiraIssueTransitionLayoutMessageType = exports.JiraIssueTransitionCommentType = exports.JiraIssueSearchFieldSetSelectedState = exports.JiraIssueNavigatorSearchLayout = exports.JiraIssueLinkDirection = exports.JiraIssueLifecycleState = exports.JiraIssueItemSystemContainerType = exports.JiraIssueItemLayoutItemLocationRuleType = exports.JiraIssueDeploymentEnvironmentState = exports.JiraInstallDeploymentsBannerPrecondition = exports.JiraIncidentPriority = exports.JiraHomePageType = exports.JiraGroupsContext = exports.JiraGrantTypeKeyEnum = exports.JiraGoalStatus = exports.JiraGlobalIssueCreateView = exports.JiraFieldOptionIdsFilterOperation = exports.JiraFavouriteType = exports.JiraEmailMimeType = exports.JiraDevOpsUpdateAssociationsEntityType = exports.JiraDevOpsIssuePanelState = exports.JiraDevOpsIssuePanelBannerType = exports.JiraDevOpsInContextConfigPromptLocation = void 0;
11
+ 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.JiraSoftwareSimpleNavigationItemEnum = 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.JiraScaledConfigurationPermission = exports.JiraReviewState = exports.JiraResourceUsageRecommendationStatus = exports.JiraResourceUsageCustomFieldRecommendationAction = exports.JiraReleasesIssueReleaseStatusFilter = exports.JiraReleasesEpicReleaseStatusFilter = exports.JiraReleaseNotesIssueKeyConfig = exports.JiraRecommendationCategory = exports.JiraRankMutationEdge = exports.JiraPullRequestState = exports.JiraProjectType = exports.JiraProjectStyle = exports.JiraProjectStatus = exports.JiraProjectSortField = exports.JiraProjectShortcutType = exports.JiraProjectRoleActorUserStatus = exports.JiraProjectRoleActorRecommendationAction = exports.JiraProjectPermissionCategoryEnum = exports.JiraProjectNotificationConfigurationState = exports.JiraProjectListRightPanelState = exports.JiraProjectDateTimeFormat = void 0;
12
+ exports.MercuryGoalPhase = exports.MercuryFocusAreaSortField = exports.MercuryFocusAreaHealthColor = exports.MembershipState = exports.MembershipSetting = exports.MembershipRole = exports.MarketplaceStorePartnerSupportAvailabilityDay = exports.MarketplaceStorePartnerEnrollmentProgramValue = exports.MarketplaceStorePartnerEnrollmentProgram = exports.MarketplaceStoreInstallationTargetProduct = exports.MarketplaceStoreInstallAppStatus = exports.MarketplaceStoreHomePageHighlightedSectionVariation = exports.MarketplaceStoreDeveloperSpaceStatus = exports.MarketplaceProgramStatus = exports.MarketplacePricingTierType = exports.MarketplacePricingTierPolicy = exports.MarketplacePricingTierMode = exports.MarketplacePricingPlanStatus = exports.MarketplacePartnerType = exports.MarketplacePartnerTierType = exports.MarketplacePartnerSupportHolidayFrequency = exports.MarketplaceLocation = exports.MarketplaceListingStatus = exports.MarketplaceEntityStatus = exports.MarketplaceCloudFortifiedStatus = exports.MarketplaceBillingCycle = exports.MarketplaceAppVersionVisibility = exports.MarketplaceAppPaymentModel = exports.LifecycleStage = exports.LicenseOverrideState = exports.KnowledgeDiscoveryTopicType = exports.KnowledgeDiscoverySearchQueryClassification = exports.KnowledgeDiscoveryKeyPhraseInputTextFormat = exports.KnowledgeDiscoveryEntityType = exports.KnowledgeDiscoveryDefinitionScope = exports.JsmChatMessageType = exports.JsmChatMessageSource = exports.JsmChatConnectedApps = exports.JsmChatChannelType = exports.JiraWorklogAdjustmentEstimateOperation = exports.JiraWorkManagementUserLicenseSeatEdition = exports.JiraWorkManagementBackgroundType = exports.JiraWatchesOperations = exports.JiraVotesOperations = exports.JiraVersionWarningConfigState = exports.JiraVersionWarningCategories = exports.JiraVersionStatus = exports.JiraVersionSortField = exports.JiraVersionReleaseNotesType = exports.JiraVersionRelatedWorkType = void 0;
13
+ 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.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.PeapdcpProduct = exports.NlpSearchResultType = exports.NlpSearchResultFormat = exports.NlpGetKeywordsTextFormat = exports.NlpErrorState = exports.NlpDisclaimer = exports.NadelHydrationTemplate = exports.MercuryMetricType = exports.MercuryGoalType = exports.MercuryGoalTargetDateType = exports.MercuryGoalStatus = void 0;
14
+ exports.TownsquareGoalStateValue = exports.TownsquareGoalSortEnum = exports.ToolchainSyncState = exports.ToolchainProviderType = exports.TeamStateV2 = exports.TeamState = exports.TeamSortOrder = exports.TeamSortField = 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.ShepherdRemediationActionType = 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.ShepherdActorOrgStatus = exports.ShepherdActionType = exports.SearchThirdPartyRangeField = exports.SearchSortOrder = exports.SearchResultType = exports.SearchProjectType = exports.SearchIssueStatusCategory = exports.SearchContainerStatus = exports.SearchConfluenceRangeField = void 0;
15
+ exports.SourceBillingType = exports.WorkSuggestionsVulnerabilityStatus = exports.WorkSuggestionsUserPersona = exports.WorkSuggestionsEnvironmentType = exports.WorkSuggestionsApprovalStatus = exports.WorkSuggestionsAction = exports.VirtualAgentIntentTemplateType = exports.VirtualAgentConversationState = exports.VirtualAgentConversationCsatOptionType = exports.VirtualAgentConversationActionType = exports.UserInstallationRuleValue = exports.TrelloWorkspaceTier = exports.TrelloWorkspaceMembershipType = exports.TrelloPowerUpDataScope = exports.TrelloPowerUpDataAccess = exports.TrelloCardRole = exports.TrelloCardExternalSource = exports.TrelloCardCoverSize = exports.TrelloCardCoverColor = exports.TrelloCardCoverBrightness = exports.TrelloBoardMembershipType = exports.TownsquareTargetDateType = exports.TownsquareProjectStateValue = exports.TownsquareProjectSortEnum = void 0;
16
16
  var AcceptableResponse;
17
17
  (function (AcceptableResponse) {
18
18
  AcceptableResponse["False"] = "FALSE";
@@ -2476,6 +2476,13 @@ var JiraAppType;
2476
2476
  JiraAppType["Connect"] = "CONNECT";
2477
2477
  JiraAppType["Forge"] = "FORGE";
2478
2478
  })(JiraAppType = exports.JiraAppType || (exports.JiraAppType = {}));
2479
+ var JiraApplicationKey;
2480
+ (function (JiraApplicationKey) {
2481
+ JiraApplicationKey["JiraCore"] = "JIRA_CORE";
2482
+ JiraApplicationKey["JiraProductDiscovery"] = "JIRA_PRODUCT_DISCOVERY";
2483
+ JiraApplicationKey["JiraServiceDesk"] = "JIRA_SERVICE_DESK";
2484
+ JiraApplicationKey["JiraSoftware"] = "JIRA_SOFTWARE";
2485
+ })(JiraApplicationKey = exports.JiraApplicationKey || (exports.JiraApplicationKey = {}));
2479
2486
  var JiraApprovalDecision;
2480
2487
  (function (JiraApprovalDecision) {
2481
2488
  JiraApprovalDecision["Approved"] = "APPROVED";
@@ -8,7 +8,7 @@ const ui_1 = require("../ui");
8
8
  class GraphQLAuthenticationError extends shared_1.UserError {
9
9
  }
10
10
  exports.GraphQLAuthenticationError = GraphQLAuthenticationError;
11
- const isOutdatedClientVersionError = (error) => { var _a; return (_a = error.message) === null || _a === void 0 ? void 0 : _a.includes('client version is outdated'); };
11
+ const isOutdatedClientVersionError = (error) => error.message?.includes('client version is outdated');
12
12
  class OutdatedClientVersionError extends shared_1.UserError {
13
13
  constructor() {
14
14
  super(ui_1.Text.graphQL.outdatedClientVersion);
@@ -16,23 +16,27 @@ class OutdatedClientVersionError extends shared_1.UserError {
16
16
  }
17
17
  exports.OutdatedClientVersionError = OutdatedClientVersionError;
18
18
  class GraphQLProviderServiceError extends shared_1.BaseError {
19
+ userError;
20
+ code;
21
+ statusCode;
22
+ requestId;
19
23
  constructor(userError, requestId, errors) {
20
24
  const { message, code, statusCode } = (0, index_1.getError)(errors);
21
25
  super(requestId, `${message} (requestId: ${requestId || 'unknown'})`);
22
26
  this.userError = userError;
23
- this.getCode = () => {
24
- return this.code;
25
- };
26
- this.getStatusCode = () => {
27
- return this.statusCode;
28
- };
29
- this.getRequestId = () => {
30
- return this.requestId;
31
- };
32
27
  this.code = code;
33
28
  this.statusCode = statusCode;
34
29
  this.requestId = requestId;
35
30
  }
31
+ getCode = () => {
32
+ return this.code;
33
+ };
34
+ getStatusCode = () => {
35
+ return this.statusCode;
36
+ };
37
+ getRequestId = () => {
38
+ return this.requestId;
39
+ };
36
40
  isUserError() {
37
41
  return this.userError;
38
42
  }
@@ -45,6 +49,9 @@ class GraphqlError extends Error {
45
49
  }
46
50
  exports.GraphqlError = GraphqlError;
47
51
  class MinimalGraphQLRunner {
52
+ authenticator;
53
+ endpoint;
54
+ cliDetails;
48
55
  constructor(authenticator, endpoint, cliDetails) {
49
56
  this.authenticator = authenticator;
50
57
  this.endpoint = endpoint;
@@ -64,18 +71,20 @@ class MinimalGraphQLRunner {
64
71
  });
65
72
  }
66
73
  getHeaders(authorizationHeader) {
67
- return Object.assign(Object.assign(Object.assign({}, authorizationHeader), (this.cliDetails ? { 'user-agent': `${this.getClientName()}/${this.getClientVersion()}` } : {})), {
68
- 'atl-client-name': `${this.getClientName()}`,
69
- 'atl-client-version': `${this.getClientVersion()}`
70
- });
74
+ return {
75
+ ...authorizationHeader,
76
+ ...(this.cliDetails ? { 'user-agent': `${this.getClientName()}/${this.getClientVersion()}` } : {}),
77
+ ...{
78
+ 'atl-client-name': `${this.getClientName()}`,
79
+ 'atl-client-version': `${this.getClientVersion()}`
80
+ }
81
+ };
71
82
  }
72
83
  getClientName() {
73
- var _a;
74
- return ((_a = this.cliDetails) === null || _a === void 0 ? void 0 : _a.name) || index_1.FORGE_CLI_PACKAGE;
84
+ return this.cliDetails?.name || index_1.FORGE_CLI_PACKAGE;
75
85
  }
76
86
  getClientVersion() {
77
- var _a;
78
- return ((_a = this.cliDetails) === null || _a === void 0 ? void 0 : _a.version) || 'unknown';
87
+ return this.cliDetails?.version || 'unknown';
79
88
  }
80
89
  async rawRequestWithoutClientError(query, variables) {
81
90
  const authorizationHeader = await this.authenticator.getAuthorizationHeader();
@@ -107,10 +116,9 @@ class MinimalGraphQLRunner {
107
116
  }
108
117
  }
109
118
  getRequestId(extensions, headers) {
110
- var _a;
111
- return (((_a = extensions === null || extensions === void 0 ? void 0 : extensions.gateway) === null || _a === void 0 ? void 0 : _a.request_id) ||
112
- (headers === null || headers === void 0 ? void 0 : headers.get('x-request-id')) ||
113
- (headers === null || headers === void 0 ? void 0 : headers.get('x-trace-id')) ||
119
+ return (extensions?.gateway?.request_id ||
120
+ headers?.get('x-request-id') ||
121
+ headers?.get('x-trace-id') ||
114
122
  undefined);
115
123
  }
116
124
  }
@@ -6,27 +6,31 @@ class UnexpectedGraphQlResponseError extends shared_1.BaseError {
6
6
  }
7
7
  exports.UnexpectedGraphQlResponseError = UnexpectedGraphQlResponseError;
8
8
  class GraphQlMutationError extends UnexpectedGraphQlResponseError {
9
+ code;
10
+ statusCode;
11
+ requestId;
9
12
  constructor(message, { requestId, code, statusCode }) {
10
13
  super(requestId, message);
11
- this.getCode = () => {
12
- return this.code;
13
- };
14
- this.getStatusCode = () => {
15
- return this.statusCode;
16
- };
17
- this.getRequestId = () => {
18
- return this.requestId;
19
- };
20
14
  this.code = code || 'GENERIC_GRAPHQL_MUTATION_ERROR';
21
15
  this.statusCode = statusCode;
22
16
  this.requestId = requestId;
23
17
  }
18
+ getCode = () => {
19
+ return this.code;
20
+ };
21
+ getStatusCode = () => {
22
+ return this.statusCode;
23
+ };
24
+ getRequestId = () => {
25
+ return this.requestId;
26
+ };
24
27
  isUserError() {
25
28
  return Boolean(this.statusCode && this.statusCode >= 400 && this.statusCode < 500);
26
29
  }
27
30
  }
28
31
  exports.GraphQlMutationError = GraphQlMutationError;
29
32
  class MutationAwareGraphQLClient {
33
+ runner;
30
34
  constructor(runner) {
31
35
  this.runner = runner;
32
36
  }
@@ -50,7 +54,7 @@ class MutationAwareGraphQLClient {
50
54
  }
51
55
  async query(query, variables) {
52
56
  const { response, requestId } = await this.runner.run(query, variables);
53
- return Object.assign(Object.assign({}, response), { requestId });
57
+ return { ...response, requestId };
54
58
  }
55
59
  }
56
60
  exports.MutationAwareGraphQLClient = MutationAwareGraphQLClient;
@@ -22,9 +22,7 @@ const prepareRequestBody = (feedback) => {
22
22
  };
23
23
  };
24
24
  class HttpsFeedbackPostClient {
25
- constructor() {
26
- this.forgeFeedbackCollectorUrl = 'https://jsd-widget.atlassian.com/api/embeddable/b8a921af-5e55-4b6f-a219-590251ab908f/request?requestTypeId=326';
27
- }
25
+ forgeFeedbackCollectorUrl = 'https://jsd-widget.atlassian.com/api/embeddable/b8a921af-5e55-4b6f-a219-590251ab908f/request?requestTypeId=326';
28
26
  async sendFeedback(feedback) {
29
27
  return (0, node_fetch_1.default)(this.forgeFeedbackCollectorUrl, {
30
28
  method: 'POST',
@@ -28,6 +28,7 @@ const checkResponse = async (response) => {
28
28
  }
29
29
  };
30
30
  class HttpFileUploader {
31
+ fileSystem;
31
32
  constructor(fileSystem) {
32
33
  this.fileSystem = fileSystem;
33
34
  }
@@ -16,6 +16,7 @@ class InvalidResponseError extends Error {
16
16
  }
17
17
  exports.InvalidResponseError = InvalidResponseError;
18
18
  class GlobalEdgeHttpClient {
19
+ fetchClient;
19
20
  constructor(fetchClient) {
20
21
  this.fetchClient = fetchClient;
21
22
  }
@@ -2,7 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getAtlassianTraceId = void 0;
4
4
  function getAtlassianTraceId(headers) {
5
- var _a;
6
- return (_a = headers.get('atl-traceid')) !== null && _a !== void 0 ? _a : undefined;
5
+ return headers.get('atl-traceid') ?? undefined;
7
6
  }
8
7
  exports.getAtlassianTraceId = getAtlassianTraceId;
@@ -7,7 +7,7 @@ var RuntimeType;
7
7
  RuntimeType["nodejs"] = "nodejs";
8
8
  })(RuntimeType = exports.RuntimeType || (exports.RuntimeType = {}));
9
9
  function isNodeRuntime(identifier) {
10
- return /^nodejs\d+\.x$/.test(identifier !== null && identifier !== void 0 ? identifier : '');
10
+ return /^nodejs\d+\.x$/.test(identifier ?? '');
11
11
  }
12
12
  function getRuntimeType(identifier) {
13
13
  if (isNodeRuntime(identifier)) {
@@ -7,6 +7,7 @@ const gateway_1 = require("../graphql/gateway");
7
7
  const BRIDGE_CORE_CDN_PATH = 'global-bridge.js';
8
8
  const GLOBAL_FORGE_INSTALL_ID = 'forge';
9
9
  class BridgeScriptService {
10
+ env;
10
11
  constructor(env = (0, gateway_1.getEnvironment)(gateway_1.CDNEnvironments)) {
11
12
  this.env = env;
12
13
  }
@@ -6,16 +6,13 @@ const launchdarkly_node_client_sdk_1 = tslib_1.__importStar(require("launchdarkl
6
6
  const graphql_1 = require("../graphql");
7
7
  class FeatureFlagReader {
8
8
  async isAtlasProductSupported() {
9
- var _a;
10
- return (_a = (await this.readFlag('forge-cli-enable-atlas-product-support'))) !== null && _a !== void 0 ? _a : false;
9
+ return (await this.readFlag('forge-cli-enable-atlas-product-support')) ?? false;
11
10
  }
12
11
  async isCloudflareTunnelEnabled() {
13
- var _a;
14
- return (_a = (await this.readFlag('forge-cli-use-cloudflare-tunnel'))) !== null && _a !== void 0 ? _a : true;
12
+ return (await this.readFlag('forge-cli-use-cloudflare-tunnel')) ?? true;
15
13
  }
16
14
  async shouldDisplayErrorsForHarmonizedApps() {
17
- var _a;
18
- return (_a = (await this.readFlag('forge-cli-enable-errors-for-connect-on-forge-apps'))) !== null && _a !== void 0 ? _a : false;
15
+ return (await this.readFlag('forge-cli-enable-errors-for-connect-on-forge-apps')) ?? false;
19
16
  }
20
17
  }
21
18
  exports.FeatureFlagReader = FeatureFlagReader;
@@ -41,6 +38,12 @@ function cachedMethod(getter) {
41
38
  }
42
39
  exports.cachedMethod = cachedMethod;
43
40
  class FeatureFlagService extends FeatureFlagReader {
41
+ logger;
42
+ cliDetails;
43
+ credentialStore;
44
+ appConfigReader;
45
+ getEnvironmentFn;
46
+ initializeLD;
44
47
  constructor(logger, cliDetails, credentialStore, appConfigReader, getEnvironmentFn = graphql_1.getEnvironment, initializeLD = launchdarkly_node_client_sdk_1.default.initialize) {
45
48
  super();
46
49
  this.logger = logger;
@@ -49,47 +52,47 @@ class FeatureFlagService extends FeatureFlagReader {
49
52
  this.appConfigReader = appConfigReader;
50
53
  this.getEnvironmentFn = getEnvironmentFn;
51
54
  this.initializeLD = initializeLD;
52
- this.appID = cachedMethod(async () => {
53
- try {
54
- const config = await this.appConfigReader.readConfigSection();
55
- return config == 'missing' || config == 'invalid' ? null : config.id;
56
- }
57
- catch (e) {
58
- return null;
59
- }
60
- });
61
- this.context = cachedMethod(async () => {
62
- const context = {
63
- kind: 'user',
64
- anonymous: true,
65
- key: 'anonymous'
66
- };
67
- try {
68
- const { accountId } = await this.credentialStore.getCredentials();
69
- if (accountId) {
70
- context.key = accountId;
71
- }
72
- }
73
- catch (_a) { }
74
- const appID = await this.appID();
75
- if (appID) {
76
- context.appID = appID.split('/')[1];
77
- }
78
- if (this.cliDetails) {
79
- context.version = this.cliDetails.version;
80
- }
81
- return context;
82
- });
83
- this.client = cachedMethod(async () => {
84
- const clientSideID = this.getEnvironmentFn(CLIENT_SIDE_ID);
85
- const context = await this.context();
86
- const options = {
87
- logger: (0, launchdarkly_node_client_sdk_1.basicLogger)({ level: 'error' }),
88
- sendEvents: false
89
- };
90
- return this.initializeLD(clientSideID, context, options);
91
- });
92
55
  }
56
+ appID = cachedMethod(async () => {
57
+ try {
58
+ const config = await this.appConfigReader.readConfigSection();
59
+ return config == 'missing' || config == 'invalid' ? null : config.id;
60
+ }
61
+ catch (e) {
62
+ return null;
63
+ }
64
+ });
65
+ context = cachedMethod(async () => {
66
+ const context = {
67
+ kind: 'user',
68
+ anonymous: true,
69
+ key: 'anonymous'
70
+ };
71
+ try {
72
+ const { accountId } = await this.credentialStore.getCredentials();
73
+ if (accountId) {
74
+ context.key = accountId;
75
+ }
76
+ }
77
+ catch { }
78
+ const appID = await this.appID();
79
+ if (appID) {
80
+ context.appID = appID.split('/')[1];
81
+ }
82
+ if (this.cliDetails) {
83
+ context.version = this.cliDetails.version;
84
+ }
85
+ return context;
86
+ });
87
+ client = cachedMethod(async () => {
88
+ const clientSideID = this.getEnvironmentFn(CLIENT_SIDE_ID);
89
+ const context = await this.context();
90
+ const options = {
91
+ logger: (0, launchdarkly_node_client_sdk_1.basicLogger)({ level: 'error' }),
92
+ sendEvents: false
93
+ };
94
+ return this.initializeLD(clientSideID, context, options);
95
+ });
93
96
  async readFlag(flag) {
94
97
  if ((0, graphql_1.isFedrampEnv)()) {
95
98
  this.logger.debug(`Feature flag ${flag} is not available in FedRAMP environments.`);
@@ -108,13 +111,13 @@ class FeatureFlagService extends FeatureFlagReader {
108
111
  }
109
112
  exports.FeatureFlagService = FeatureFlagService;
110
113
  class MockFeatureFlagReader extends FeatureFlagReader {
114
+ featureFlags;
111
115
  constructor(featureFlags = undefined) {
112
116
  super();
113
117
  this.featureFlags = featureFlags;
114
118
  }
115
119
  async readFlag(flag) {
116
- var _a;
117
- return ((_a = this.featureFlags) === null || _a === void 0 ? void 0 : _a[flag]) || null;
120
+ return this.featureFlags?.[flag] || null;
118
121
  }
119
122
  }
120
123
  exports.MockFeatureFlagReader = MockFeatureFlagReader;
@@ -7,6 +7,7 @@ const gateway_1 = require("../graphql/gateway");
7
7
  const IFRAME_RESIZER_CDN_PATH = 'iframeResizer.contentWindow.min.js';
8
8
  const GLOBAL_FORGE_INSTALL_ID = 'forge';
9
9
  class IframeResizerScriptService {
10
+ env;
10
11
  constructor(env = (0, gateway_1.getEnvironment)(gateway_1.CDNEnvironments)) {
11
12
  this.env = env;
12
13
  }
@@ -5,8 +5,8 @@ const tslib_1 = require("tslib");
5
5
  const semver_1 = tslib_1.__importDefault(require("semver"));
6
6
  exports.FORGE_CLI_PACKAGE = '@forge/cli';
7
7
  const isLatestCLIVersion = (cliDetails) => {
8
- const version = semver_1.default.valid(cliDetails === null || cliDetails === void 0 ? void 0 : cliDetails.version);
9
- const latest = semver_1.default.valid(cliDetails === null || cliDetails === void 0 ? void 0 : cliDetails.latest);
8
+ const version = semver_1.default.valid(cliDetails?.version);
9
+ const latest = semver_1.default.valid(cliDetails?.latest);
10
10
  if (!version || !latest) {
11
11
  return false;
12
12
  }
@@ -8,11 +8,10 @@ function isErrorWithAnalytics(e) {
8
8
  return e.getAttributes !== undefined;
9
9
  }
10
10
  function isUserError(e) {
11
- var _a, _b;
12
11
  if (isErrorWithAnalytics(e)) {
13
- return (_a = e.getAttributes().isUserError) !== null && _a !== void 0 ? _a : false;
12
+ return e.getAttributes().isUserError ?? false;
14
13
  }
15
- if (((_b = e.constructor) === null || _b === void 0 ? void 0 : _b.name) === 'FetchError') {
14
+ if (e.constructor?.name === 'FetchError') {
16
15
  if (e.type === 'system') {
17
16
  return true;
18
17
  }
@@ -30,6 +29,7 @@ function getErrorAttributes(e) {
30
29
  }
31
30
  exports.getErrorAttributes = getErrorAttributes;
32
31
  class BaseError extends Error {
32
+ requestId;
33
33
  constructor(requestId, message) {
34
34
  super(message);
35
35
  this.requestId = requestId;
@@ -108,6 +108,7 @@ class BundlerTSError extends UserError {
108
108
  }
109
109
  exports.BundlerTSError = BundlerTSError;
110
110
  class ApplicationCompileError extends UserError {
111
+ error;
111
112
  constructor(error) {
112
113
  super(error.message);
113
114
  this.error = error;
@@ -115,6 +116,7 @@ class ApplicationCompileError extends UserError {
115
116
  }
116
117
  exports.ApplicationCompileError = ApplicationCompileError;
117
118
  class UIPromptError extends BaseError {
119
+ isTtyError;
118
120
  constructor(message, isTtyError = false) {
119
121
  super(undefined, message);
120
122
  this.isTtyError = isTtyError;
@@ -19,13 +19,11 @@ function getSupportedProducts({ enableAtlas = false } = {}) {
19
19
  }
20
20
  exports.getSupportedProducts = getSupportedProducts;
21
21
  function productDisplayName(ariResourceOwner) {
22
- var _a;
23
- return (_a = PRODUCT_DISPLAY_NAME_MAPPING[ariResourceOwner]) !== null && _a !== void 0 ? _a : (0, case_1.capital)(ariResourceOwner);
22
+ return PRODUCT_DISPLAY_NAME_MAPPING[ariResourceOwner] ?? (0, case_1.capital)(ariResourceOwner);
24
23
  }
25
24
  exports.productDisplayName = productDisplayName;
26
25
  function ariResourceOwner(productDisplayName) {
27
- var _a;
28
- return (_a = PRODUCT_ARI_MAPPING[productDisplayName]) !== null && _a !== void 0 ? _a : productDisplayName.toLowerCase();
26
+ return PRODUCT_ARI_MAPPING[productDisplayName] ?? productDisplayName.toLowerCase();
29
27
  }
30
28
  exports.ariResourceOwner = ariResourceOwner;
31
29
  const isWorkspaceProduct = (product) => {
@@ -6,9 +6,11 @@ const path_1 = tslib_1.__importDefault(require("path"));
6
6
  const array_prototype_flatmap_1 = tslib_1.__importDefault(require("array.prototype.flatmap"));
7
7
  const typescript_1 = require("typescript");
8
8
  const listGitIgnoreFiles = async (fileSystemReader, gitIgnorePath = '.gitignore') => {
9
- var _a;
10
- const gitignoreContents = ((_a = fileSystemReader
11
- .readFile(gitIgnorePath)) === null || _a === void 0 ? void 0 : _a.trim().split('\n').filter((glob) => glob.trim() !== '')) || [];
9
+ const gitignoreContents = fileSystemReader
10
+ .readFile(gitIgnorePath)
11
+ ?.trim()
12
+ .split('\n')
13
+ .filter((glob) => glob.trim() !== '') || [];
12
14
  return (0, array_prototype_flatmap_1.default)(await Promise.all(gitignoreContents.map((pattern) => {
13
15
  if (fileSystemReader.hasGlobSpecialChars(pattern)) {
14
16
  return fileSystemReader.readGlob({ pattern });
@@ -32,8 +34,8 @@ const listTSConfigIncludeExclude = async (fileSystemReader, tsConfigPath = 'tsco
32
34
  return { include: [], exclude: [] };
33
35
  }
34
36
  return {
35
- include: await processTSConfigGlobList(fileSystemReader, config === null || config === void 0 ? void 0 : config.include),
36
- exclude: await processTSConfigGlobList(fileSystemReader, config === null || config === void 0 ? void 0 : config.exclude)
37
+ include: await processTSConfigGlobList(fileSystemReader, config?.include),
38
+ exclude: await processTSConfigGlobList(fileSystemReader, config?.exclude)
37
39
  };
38
40
  };
39
41
  exports.listTSConfigIncludeExclude = listTSConfigIncludeExclude;
@@ -16,7 +16,7 @@ const validateSite = (site, product) => {
16
16
  urlObj.pathname = '/';
17
17
  return urlObj;
18
18
  }
19
- catch (_a) {
19
+ catch {
20
20
  }
21
21
  }
22
22
  throw new error_handling_1.ValidationError(ui_1.Text.error.invalidSite);
@@ -20,22 +20,25 @@ var ProgressLogType;
20
20
  ProgressLogType[ProgressLogType["other"] = 2] = "other";
21
21
  })(ProgressLogType || (ProgressLogType = {}));
22
22
  class CommandLineUI {
23
+ verbose;
24
+ logger;
25
+ spinner;
26
+ promptInternal;
27
+ insideProgress = false;
28
+ addedProgressPadding = false;
23
29
  constructor(verbose, spinner, logger) {
24
30
  this.verbose = verbose;
25
- this.insideProgress = false;
26
- this.addedProgressPadding = false;
27
31
  this.spinner = spinner || (0, ora_1.default)({ discardStdin: false });
28
32
  this.logger = logger || console;
29
33
  this.promptInternal = inquirer_1.default.createPromptModule({ skipTTYChecks: false });
30
34
  this.registerCustomUIElements();
31
35
  }
32
36
  async prompt(questions, initialAnswers) {
33
- var _a;
34
37
  try {
35
38
  return await this.promptInternal(questions, initialAnswers);
36
39
  }
37
40
  catch (e) {
38
- throw new shared_1.UIPromptError(e.message, (_a = e.isTtyError) !== null && _a !== void 0 ? _a : false);
41
+ throw new shared_1.UIPromptError(e.message, e.isTtyError ?? false);
39
42
  }
40
43
  }
41
44
  get traceEnabled() {
@@ -159,7 +162,7 @@ class CommandLineUI {
159
162
  return this.promptForString(message, true);
160
163
  }
161
164
  async promptForList(message, choices, config) {
162
- const formattedChoices = (config === null || config === void 0 ? void 0 : config.format) ? choices.map((choice) => { var _a; return (_a = config === null || config === void 0 ? void 0 : config.format) === null || _a === void 0 ? void 0 : _a.call(config, choice); }) : choices;
165
+ const formattedChoices = config?.format ? choices.map((choice) => config?.format?.(choice)) : choices;
163
166
  const { choice } = await this.prompt([
164
167
  {
165
168
  type: 'list',
@@ -168,7 +171,7 @@ class CommandLineUI {
168
171
  message
169
172
  }
170
173
  ]);
171
- const formattedChoice = (config === null || config === void 0 ? void 0 : config.format) ? choices[formattedChoices.indexOf(choice)] : choice;
174
+ const formattedChoice = config?.format ? choices[formattedChoices.indexOf(choice)] : choice;
172
175
  return formattedChoice;
173
176
  }
174
177
  async promptForTable(message, infoMessage, columns, choices) {
@@ -230,13 +233,16 @@ class CommandLineUI {
230
233
  return formattedValue !== prevFormattedValue;
231
234
  }
232
235
  logTable(head, data, { format, groupRows }) {
233
- const table = new cli_table3_1.default(Object.assign(Object.assign({}, log_color_1.TableStyle.default), { head: head.map(([, heading]) => heading) }));
236
+ const table = new cli_table3_1.default({
237
+ ...log_color_1.TableStyle.default,
238
+ head: head.map(([, heading]) => heading)
239
+ });
234
240
  if (data) {
235
241
  const rowSpanByKey = {};
236
242
  for (let i = data.length - 1; i >= 0; i--) {
237
243
  const tableRow = [];
238
244
  head.forEach(([key]) => {
239
- rowSpanByKey[key] || (rowSpanByKey[key] = 1);
245
+ rowSpanByKey[key] ||= 1;
240
246
  const row = data[i];
241
247
  const value = row[key];
242
248
  const formattedValue = this.formatTableValue(key, value, format);
@@ -25,9 +25,9 @@ const getRowFormatFn = (isDone, isHover, isSelected) => {
25
25
  };
26
26
  exports.getRowFormatFn = getRowFormatFn;
27
27
  class MultipleChoiceTablePrompt extends table_prompt_1.TablePrompt {
28
+ selectedIndexes = new Set();
28
29
  constructor(questions, readline, answers) {
29
30
  super(questions, readline, answers);
30
- this.selectedIndexes = new Set();
31
31
  }
32
32
  handleSpaceKey({ pointer, hasMultipleChoices }) {
33
33
  if (hasMultipleChoices) {