@forge/cli-shared 3.2.2-next.0 → 3.2.2

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 (56) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/out/app-logs/view-logs.js +3 -3
  3. package/out/apps/app-config.d.ts.map +1 -1
  4. package/out/apps/app-config.js +3 -2
  5. package/out/apps/create-app-graphql-client.js +1 -1
  6. package/out/apps/package-installer.js +1 -1
  7. package/out/apps/register-app.js +1 -1
  8. package/out/apps/template.js +12 -12
  9. package/out/auth/personal/credential-store.js +5 -5
  10. package/out/auth/personal/me-graphql-client.js +1 -1
  11. package/out/auth/personal/token-authenticator.js +1 -1
  12. package/out/config/config-file-section-reader.js +2 -1
  13. package/out/config/config-file-section-writer.js +2 -1
  14. package/out/config/config-file.d.ts +1 -1
  15. package/out/config/config-file.d.ts.map +1 -1
  16. package/out/config/config-file.js +6 -7
  17. package/out/config/config-section.js +2 -1
  18. package/out/config/config.js +4 -2
  19. package/out/file-system/file-system-reader.d.ts +1 -0
  20. package/out/file-system/file-system-reader.d.ts.map +1 -1
  21. package/out/file-system/file-system-reader.js +7 -7
  22. package/out/file-system/file-system-writer.js +1 -1
  23. package/out/file-system/zip-accessor.js +1 -1
  24. package/out/graphql/gateway.js +5 -3
  25. package/out/graphql/graphql-types.d.ts +171 -80
  26. package/out/graphql/graphql-types.d.ts.map +1 -1
  27. package/out/graphql/graphql-types.js +28 -1
  28. package/out/graphql/mutation-aware-graphql-client.d.ts +2 -2
  29. package/out/graphql/mutation-aware-graphql-client.d.ts.map +1 -1
  30. package/out/http-client/feedback-post-client.js +1 -1
  31. package/out/http-client/file-uploader.js +1 -1
  32. package/out/service/bridge-script-service.d.ts +2 -0
  33. package/out/service/bridge-script-service.d.ts.map +1 -1
  34. package/out/service/bridge-script-service.js +4 -2
  35. package/out/service/feature-flag-service.js +3 -3
  36. package/out/service/iframe-resizer-script-service.d.ts +2 -0
  37. package/out/service/iframe-resizer-script-service.d.ts.map +1 -1
  38. package/out/service/iframe-resizer-script-service.js +4 -2
  39. package/out/shared/error-handling.d.ts +1 -1
  40. package/out/shared/error-handling.d.ts.map +1 -1
  41. package/out/shared/error-handling.js +6 -3
  42. package/out/shared/index.js +1 -1
  43. package/out/shared/pause.js +2 -1
  44. package/out/shared/product.js +8 -5
  45. package/out/shared/read-app-config-files.d.ts.map +1 -1
  46. package/out/shared/read-app-config-files.js +7 -5
  47. package/out/shared/validate.js +3 -2
  48. package/out/ui/command-line-ui.js +3 -3
  49. package/out/ui/multiple-table-prompt.js +4 -2
  50. package/out/ui/runtime-log.js +1 -1
  51. package/out/ui/single-table-prompt.js +4 -2
  52. package/out/ui/table-prompt.js +1 -1
  53. package/out/ui/text.d.ts +1 -1
  54. package/out/ui/text.d.ts.map +1 -1
  55. package/out/ui/text.js +5 -4
  56. package/package.json +4 -4
@@ -1,6 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SourceBillingType = exports.UserInstallationRuleValue = exports.TownsquareTargetDateType = exports.TownsquareProjectStateValue = exports.TownsquareProjectSortEnum = exports.TownsquareHelpPointerType = exports.TownsquareGoalStateValue = exports.TownsquareGoalSortEnum = exports.TestingActivityEventType = exports.TeamState = exports.SwimlaneStrategy = exports.SupportRequestUserType = exports.SupportRequestStatusCategory = exports.SupportRequestQueryStatusCategory = exports.SupportRequestQueryOwnership = exports.SupportRequestNamedContactOperation = exports.SupportRequestFieldDataType = exports.SprintState = exports.SprintReportsEstimationStatisticType = exports.SortDirection = exports.SoftwareCardsDestinationEnum = exports.ShepherdWebhookType = exports.ShepherdSubscriptionStatus = exports.ShepherdQueryErrorType = exports.ShepherdAlertTemplateType = exports.ShepherdAlertStatus = exports.ShepherdAlertSeverity = exports.ShepherdAlertDescriptionType = exports.ShepherdActionType = exports.SearchResultType = exports.SearchProjectType = exports.SearchContainerStatus = exports.SearchConfluenceRangeField = exports.SearchBoardProductType = exports.Scope = exports.RoadmapVersionStatus = exports.RoadmapTimelineMode = exports.RoadmapSprintState = exports.RoadmapRankPosition = exports.RoadmapPaletteColor = exports.RoadmapLevelOneView = exports.RoadmapEpicView = exports.RateLimitingCurrency = exports.PolarisVisualizationType = exports.PolarisViewSortMode = exports.PolarisViewSetType = exports.PolarisViewFilterOperator = exports.PolarisViewFilterKind = exports.PolarisValueOperator = exports.PolarisTimelineMode = exports.PolarisSortOrder = exports.PolarisSnippetPropertyKind = exports.PolarisResolvedObjectAuthType = exports.PolarisRefreshError = exports.PolarisPlayKind = exports.PolarisFieldType = exports.PolarisCommentKind = exports.NadelHydrationTemplate = exports.MembershipState = exports.MembershipSetting = exports.MembershipRole = exports.MarketplaceProgramStatus = exports.MarketplacePricingTierType = exports.MarketplacePricingTierPolicy = exports.MarketplacePricingTierMode = exports.MarketplacePricingPlanStatus = exports.MarketplacePartnerType = exports.MarketplacePartnerTierType = exports.MarketplacePartnerSupportHolidayFrequency = exports.MarketplaceLocation = exports.MarketplaceListingStatus = exports.MarketplaceEntityStatus = exports.MarketplaceCloudFortifiedStatus = exports.MarketplaceBillingCycle = exports.MarketplaceAppVersionVisibility = exports.MarketplaceAppPermission = exports.MarketplaceAppPaymentModel = exports.LifecycleStage = exports.LicenseOverrideState = exports.JiraVersionWarningConfigState = exports.JiraVersionStatus = exports.JiraVersionIssuesFilter = exports.JiraTimeUnit = exports.JiraTimeFormat = exports.JiraStatusCategoryColor = exports.JiraSprintState = exports.JiraSingleValueFieldOperations = exports.JiraShareableEntityGrant = exports.JiraServiceManagementPractice = exports.JiraServiceManagementMajorIncident = exports.JiraServiceManagementCommentVisibility = exports.JiraServiceManagementApprovalState = exports.JiraServiceManagementApprovalDecisionResponseType = exports.JiraReviewState = exports.JiraReleasesIssueReleaseStatusFilter = exports.JiraReleasesEpicReleaseStatusFilter = exports.JiraReleaseNotesIssueKeyConfig = exports.JiraPullRequestState = exports.JiraProjectType = exports.JiraProjectStyle = exports.JiraProjectStatus = exports.JiraProjectSortField = exports.JiraProjectPermissionCategoryEnum = exports.JiraProjectAndRepositoryRelationshipSortBy = exports.JiraProjectActionType = exports.JiraPermissionTagEnum = exports.JiraPermissionMessageTypeEnum = exports.JiraMultiValueFieldOperations = exports.JiraJqlSyntaxError = exports.JiraJqlOperator = exports.JiraJqlClauseType = exports.JiraJqlBuilderMode = exports.JiraJqlAutocompleteType = exports.JiraIssueSearchFieldSetSelectedState = exports.JiraIssueLinkDirection = exports.JiraIssueLifecycleState = exports.JiraIssueItemSystemContainerType = exports.JiraIssueItemLayoutItemLocationRuleType = exports.JiraIssueDeploymentEnvironmentState = exports.JiraInstallDeploymentsBannerPrecondition = exports.JiraGrantTypeKeyEnum = exports.JiraFavouriteType = exports.JiraDevOpsIssuePanelState = exports.JiraDevOpsIssuePanelBannerType = exports.JiraDevOpsCapability = exports.JiraDevInfoConfigErrorType = exports.JiraDeploymentsFeaturePrecondition = exports.JiraCmdbAttributeType = exports.JiraCascadingSelectOptionType = exports.JiraAttachmentsPermissions = exports.IssueDevOpsPullRequestStatus = exports.IssueDevOpsDeploymentState = exports.IssueDevOpsDeploymentEnvironmentType = exports.IssueDevOpsCommitChangeType = exports.HelpObjectStoreJsmEntityType = exports.HelpObjectStoreHelpObjectType = exports.GrantCheckProduct = exports.FunctionTriggerType = exports.FortifiedMetricsResolutionUnit = exports.ForgeMetricsSiteFilterCategory = exports.ForgeMetricsResolutionUnit = exports.ForgeMetricsGroupByDimensions = exports.ForgeMetricsDataType = exports.ForgeAlertsStatus = exports.ForgeAlertsActivityType = exports.EventMatchingStrategies = exports.EventKnownAvIs = exports.DevStatusActivity = exports.DevOpsToolSortOrder = exports.DevOpsToolNavbarConnectionStateTab = exports.DevOpsToolIntegrationType = exports.DevOpsToolConnectionState = exports.DevOpsServiceRelationshipType = exports.DevOpsServiceAndRepositoryRelationshipSortBy = exports.DevOpsServiceAndJiraProjectRelationshipType = exports.DevOpsRepositoryHostingProviderFilter = exports.DevOpsRelationshipCertaintyFilter = exports.DevOpsRelationshipCertainty = exports.DevOpsPullRequestStatus = exports.DevOpsPullRequestApprovalStatus = exports.DevOpsMetricsRollupOption = exports.DevOpsMetricsResolutionUnit = exports.DevOpsMetricsCycleTimePhase = exports.DevOpsJiraProjectType = exports.DevOpsEnvironmentCategory = exports.DeploymentState = exports.ConfluenceUserType = exports.ConfluenceSpaceType = exports.ConfluenceSpaceStatus = exports.ConfluenceSpaceSettingEditorVersion = exports.ConfluencePageStatus = exports.ConfluenceOperationTarget = exports.ConfluenceOperationName = exports.ConfluenceMutationContentStatus = exports.ConfluenceInlineTaskStatus = exports.ConfluenceInlineCommentResolutionStatus = exports.ConfluenceContributionStatus = exports.ConfluenceContentType = exports.ConfluenceContentRepresentation = exports.ConfluenceCommentType = exports.ConfluenceCommentStatus = exports.ConfluenceCollaborativeEditingService = exports.ConfluenceBodyRepresentation = exports.ConfluenceBlogPostStatus = exports.ComponentSyncEventStatus = exports.CompassScorecardImportance = exports.CompassRelationshipType = exports.CompassRelationshipDirection = exports.CompassQuerySortOrder = exports.CompassMetricDefinitionType = exports.CompassLinkType = exports.CompassLifecycleEventStage = exports.CompassIncidentEventState = exports.CompassIncidentEventSeverityLevel = exports.CompassFieldType = exports.CompassEventType = exports.CompassDeploymentEventState = exports.CompassDeploymentEventEnvironmentCategory = exports.CompassCustomEventIcon = exports.CompassCriteriaNumberComparatorOptions = exports.CompassCriteriaBooleanComparatorOptions = exports.CompassComponentType = exports.CompassBuildEventState = exports.Classification = exports.CardHierarchyLevelEnumType = exports.BuiltinPolarisIdeaField = exports.BoardFeatureToggleStatus = exports.BoardFeatureStatus = exports.BitbucketPermission = exports.AtlassianProductHostingType = exports.AriGraphRelationshipsSortDirection = exports.AppTaskState = exports.AppStoredEntityCondition = exports.AppSecurityPoliciesPermissionTypeExtension = exports.AppSecurityPoliciesPermissionType = exports.AppNetworkPermissionTypeExtension = exports.AppNetworkPermissionType = exports.AppEnvironmentType = exports.AppDeploymentStepStatus = exports.AppDeploymentStatus = exports.AppDeploymentEventLogLevel = exports.ApiGroup = exports.ApiContext = exports.ActivityProduct = exports.ActivityObjectType = exports.ActivityEventType = exports.ActivitiesObjectType = exports.ActivitiesFilterType = exports.ActivitiesContainerType = exports.AccountStatus = void 0;
3
+ exports.ConfluenceCommentStatus = exports.ConfluenceCollaborativeEditingService = exports.ConfluenceBodyRepresentation = exports.ConfluenceBlogPostStatus = exports.ComponentSyncEventStatus = exports.CompassScorecardImportance = exports.CompassRelationshipType = exports.CompassRelationshipDirection = exports.CompassQuerySortOrder = exports.CompassMetricDefinitionType = exports.CompassLinkType = exports.CompassLifecycleEventStage = exports.CompassIncidentEventState = exports.CompassIncidentEventSeverityLevel = exports.CompassFieldType = exports.CompassEventType = exports.CompassDeploymentEventState = exports.CompassDeploymentEventEnvironmentCategory = exports.CompassCustomEventIcon = exports.CompassCriteriaNumberComparatorOptions = exports.CompassCriteriaBooleanComparatorOptions = exports.CompassComponentType = exports.CompassBuildEventState = exports.Classification = exports.CardHierarchyLevelEnumType = exports.BuiltinPolarisIdeaField = exports.BoardFeatureToggleStatus = exports.BoardFeatureStatus = exports.BitbucketPermission = exports.AtlassianProductHostingType = exports.AriGraphRelationshipsSortDirection = exports.AppTaskState = exports.AppStoredEntityCondition = exports.AppSecurityPoliciesPermissionTypeExtension = exports.AppSecurityPoliciesPermissionType = exports.AppNetworkPermissionTypeExtension = exports.AppNetworkPermissionType = exports.AppEnvironmentType = exports.AppDeploymentStepStatus = exports.AppDeploymentStatus = exports.AppDeploymentEventLogLevel = exports.ApiGroup = exports.ApiContext = exports.ActivityProduct = exports.ActivityObjectType = exports.ActivityEventType = exports.ActivitiesObjectType = exports.ActivitiesFilterType = exports.ActivitiesContainerType = exports.AccountStatus = void 0;
4
+ exports.HelpObjectStoreJsmEntityType = exports.HelpObjectStoreHelpObjectType = exports.GrantCheckProduct = exports.FunctionTriggerType = exports.FortifiedMetricsResolutionUnit = exports.ForgeMetricsSiteFilterCategory = exports.ForgeMetricsResolutionUnit = exports.ForgeMetricsGroupByDimensions = exports.ForgeMetricsDataType = exports.ForgeAlertsStatus = exports.ForgeAlertsActivityType = exports.EventMatchingStrategies = exports.EventKnownAvIs = exports.DevStatusActivity = exports.DevOpsToolSortOrder = exports.DevOpsToolNavbarConnectionStateTab = exports.DevOpsToolIntegrationType = exports.DevOpsToolConnectionState = exports.DevOpsServiceRelationshipType = exports.DevOpsServiceAndRepositoryRelationshipSortBy = exports.DevOpsServiceAndJiraProjectRelationshipType = exports.DevOpsRepositoryHostingProviderFilter = exports.DevOpsRelationshipCertaintyFilter = exports.DevOpsRelationshipCertainty = exports.DevOpsPullRequestStatus = exports.DevOpsPullRequestApprovalStatus = exports.DevOpsMetricsRollupOption = exports.DevOpsMetricsResolutionUnit = exports.DevOpsMetricsCycleTimePhase = exports.DevOpsJiraProjectType = exports.DevOpsEnvironmentCategory = exports.DeploymentState = exports.ContentPlatformSearchTypes = exports.ContentPlatformOperators = exports.ContentPlatformFieldNames = exports.ContentPlatformBooleanOperators = exports.ConfluenceUserType = exports.ConfluenceSpaceType = exports.ConfluenceSpaceStatus = exports.ConfluenceSpaceSettingEditorVersion = exports.ConfluencePageStatus = exports.ConfluenceOperationTarget = exports.ConfluenceOperationName = exports.ConfluenceMutationContentStatus = exports.ConfluenceInlineTaskStatus = exports.ConfluenceInlineCommentResolutionStatus = exports.ConfluenceContributionStatus = exports.ConfluenceContentType = exports.ConfluenceContentRepresentation = exports.ConfluenceCommentType = void 0;
5
+ exports.JiraStatusCategoryColor = exports.JiraSprintState = exports.JiraSingleValueFieldOperations = exports.JiraShareableEntityGrant = exports.JiraServiceManagementPractice = exports.JiraServiceManagementMajorIncident = exports.JiraServiceManagementCommentVisibility = exports.JiraServiceManagementApprovalState = exports.JiraServiceManagementApprovalDecisionResponseType = exports.JiraReviewState = exports.JiraReleasesIssueReleaseStatusFilter = exports.JiraReleasesEpicReleaseStatusFilter = exports.JiraReleaseNotesIssueKeyConfig = exports.JiraPullRequestState = exports.JiraProjectType = exports.JiraProjectStyle = exports.JiraProjectStatus = exports.JiraProjectSortField = exports.JiraProjectPermissionCategoryEnum = exports.JiraProjectAndRepositoryRelationshipSortBy = exports.JiraProjectActionType = exports.JiraPermissionTagEnum = exports.JiraPermissionMessageTypeEnum = exports.JiraMultiValueFieldOperations = exports.JiraJqlSyntaxError = exports.JiraJqlOperator = exports.JiraJqlClauseType = exports.JiraJqlBuilderMode = exports.JiraJqlAutocompleteType = exports.JiraIssueSearchFieldSetSelectedState = exports.JiraIssueLinkDirection = exports.JiraIssueLifecycleState = exports.JiraIssueItemSystemContainerType = exports.JiraIssueItemLayoutItemLocationRuleType = exports.JiraIssueDeploymentEnvironmentState = exports.JiraInstallDeploymentsBannerPrecondition = exports.JiraGrantTypeKeyEnum = exports.JiraFavouriteType = exports.JiraDevOpsIssuePanelState = exports.JiraDevOpsIssuePanelBannerType = exports.JiraDevOpsCapability = exports.JiraDevInfoConfigErrorType = exports.JiraDeploymentsFeaturePrecondition = exports.JiraCmdbAttributeType = exports.JiraCascadingSelectOptionType = exports.JiraAttachmentsPermissions = exports.IssueDevOpsPullRequestStatus = exports.IssueDevOpsDeploymentState = exports.IssueDevOpsDeploymentEnvironmentType = exports.IssueDevOpsCommitChangeType = void 0;
6
+ exports.Scope = exports.RoadmapVersionStatus = exports.RoadmapTimelineMode = exports.RoadmapSprintState = exports.RoadmapRankPosition = exports.RoadmapPaletteColor = exports.RoadmapLevelOneView = exports.RoadmapEpicView = exports.RateLimitingCurrency = exports.PolarisVisualizationType = exports.PolarisViewSortMode = exports.PolarisViewSetType = exports.PolarisViewFilterOperator = exports.PolarisViewFilterKind = exports.PolarisValueOperator = exports.PolarisTimelineMode = exports.PolarisSortOrder = exports.PolarisSnippetPropertyKind = exports.PolarisResolvedObjectAuthType = exports.PolarisRefreshError = exports.PolarisPlayKind = exports.PolarisFieldType = exports.PolarisCommentKind = exports.NadelHydrationTemplate = exports.MembershipState = exports.MembershipSetting = exports.MembershipRole = exports.MarketplaceProgramStatus = exports.MarketplacePricingTierType = exports.MarketplacePricingTierPolicy = exports.MarketplacePricingTierMode = exports.MarketplacePricingPlanStatus = exports.MarketplacePartnerType = exports.MarketplacePartnerTierType = exports.MarketplacePartnerSupportHolidayFrequency = exports.MarketplaceLocation = exports.MarketplaceListingStatus = exports.MarketplaceEntityStatus = exports.MarketplaceCloudFortifiedStatus = exports.MarketplaceBillingCycle = exports.MarketplaceAppVersionVisibility = exports.MarketplaceAppPermission = exports.MarketplaceAppPaymentModel = exports.LifecycleStage = exports.LicenseOverrideState = exports.JiraVersionWarningConfigState = exports.JiraVersionStatus = exports.JiraVersionIssuesFilter = exports.JiraTimeUnit = exports.JiraTimeFormat = void 0;
7
+ exports.SourceBillingType = exports.UserInstallationRuleValue = exports.TownsquareTargetDateType = exports.TownsquareProjectStateValue = exports.TownsquareProjectSortEnum = exports.TownsquareHelpPointerType = exports.TownsquareGoalStateValue = exports.TownsquareGoalSortEnum = exports.TestingActivityEventType = exports.TeamState = exports.SwimlaneStrategy = exports.SupportRequestUserType = exports.SupportRequestStatusCategory = exports.SupportRequestQueryStatusCategory = exports.SupportRequestQueryOwnership = exports.SupportRequestNamedContactOperation = exports.SupportRequestFieldDataType = exports.SprintState = exports.SprintReportsEstimationStatisticType = exports.SortDirection = exports.SoftwareCardsDestinationEnum = exports.ShepherdWebhookType = exports.ShepherdSubscriptionStatus = exports.ShepherdQueryErrorType = exports.ShepherdAlertTemplateType = exports.ShepherdAlertStatus = exports.ShepherdAlertSeverity = exports.ShepherdAlertDescriptionType = exports.ShepherdActionType = exports.SearchResultType = exports.SearchProjectType = exports.SearchContainerStatus = exports.SearchConfluenceRangeField = exports.SearchBoardProductType = void 0;
4
8
  var AccountStatus;
5
9
  (function (AccountStatus) {
6
10
  AccountStatus["Active"] = "active";
@@ -486,6 +490,26 @@ var ConfluenceUserType;
486
490
  ConfluenceUserType["Anonymous"] = "ANONYMOUS";
487
491
  ConfluenceUserType["Known"] = "KNOWN";
488
492
  })(ConfluenceUserType = exports.ConfluenceUserType || (exports.ConfluenceUserType = {}));
493
+ var ContentPlatformBooleanOperators;
494
+ (function (ContentPlatformBooleanOperators) {
495
+ ContentPlatformBooleanOperators["And"] = "AND";
496
+ ContentPlatformBooleanOperators["Or"] = "OR";
497
+ })(ContentPlatformBooleanOperators = exports.ContentPlatformBooleanOperators || (exports.ContentPlatformBooleanOperators = {}));
498
+ var ContentPlatformFieldNames;
499
+ (function (ContentPlatformFieldNames) {
500
+ ContentPlatformFieldNames["Title"] = "TITLE";
501
+ ContentPlatformFieldNames["Description"] = "DESCRIPTION";
502
+ })(ContentPlatformFieldNames = exports.ContentPlatformFieldNames || (exports.ContentPlatformFieldNames = {}));
503
+ var ContentPlatformOperators;
504
+ (function (ContentPlatformOperators) {
505
+ ContentPlatformOperators["Any"] = "ANY";
506
+ ContentPlatformOperators["All"] = "ALL";
507
+ })(ContentPlatformOperators = exports.ContentPlatformOperators || (exports.ContentPlatformOperators = {}));
508
+ var ContentPlatformSearchTypes;
509
+ (function (ContentPlatformSearchTypes) {
510
+ ContentPlatformSearchTypes["Contains"] = "CONTAINS";
511
+ ContentPlatformSearchTypes["ExactMatch"] = "EXACT_MATCH";
512
+ })(ContentPlatformSearchTypes = exports.ContentPlatformSearchTypes || (exports.ContentPlatformSearchTypes = {}));
489
513
  var DeploymentState;
490
514
  (function (DeploymentState) {
491
515
  DeploymentState["Pending"] = "PENDING";
@@ -1815,6 +1839,8 @@ var ShepherdAlertTemplateType;
1815
1839
  ShepherdAlertTemplateType["EnableScimSync"] = "ENABLE_SCIM_SYNC";
1816
1840
  ShepherdAlertTemplateType["ExportedOrgeventscsv"] = "EXPORTED_ORGEVENTSCSV";
1817
1841
  ShepherdAlertTemplateType["InitiatedGsyncConnection"] = "INITIATED_GSYNC_CONNECTION";
1842
+ ShepherdAlertTemplateType["JiraIssueCrawling"] = "JIRA_ISSUE_CRAWLING";
1843
+ ShepherdAlertTemplateType["OrgLoggedInAsUser"] = "ORG_LOGGED_IN_AS_USER";
1818
1844
  ShepherdAlertTemplateType["RotateScimDirectoryToken"] = "ROTATE_SCIM_DIRECTORY_TOKEN";
1819
1845
  ShepherdAlertTemplateType["TokenCreated"] = "TOKEN_CREATED";
1820
1846
  ShepherdAlertTemplateType["UpdatedAuthPolicy"] = "UPDATED_AUTH_POLICY";
@@ -1837,6 +1863,7 @@ var ShepherdSubscriptionStatus;
1837
1863
  var ShepherdWebhookType;
1838
1864
  (function (ShepherdWebhookType) {
1839
1865
  ShepherdWebhookType["Custom"] = "CUSTOM";
1866
+ ShepherdWebhookType["MicrosoftTeams"] = "MICROSOFT_TEAMS";
1840
1867
  ShepherdWebhookType["Slack"] = "SLACK";
1841
1868
  })(ShepherdWebhookType = exports.ShepherdWebhookType || (exports.ShepherdWebhookType = {}));
1842
1869
  var SoftwareCardsDestinationEnum;
@@ -1,5 +1,5 @@
1
1
  import { GraphQLClient } from './index';
2
- import { AvailableMutations, GraphQLRunner } from './graphql-client';
2
+ import { AvailableMutations, GraphQLRunner, MutationResult } from './graphql-client';
3
3
  export declare class UnexpectedGraphQlResponseError extends Error {
4
4
  }
5
5
  export declare class GraphQlMutationError extends UnexpectedGraphQlResponseError {
@@ -11,7 +11,7 @@ export declare class MutationAwareGraphQLClient implements GraphQLClient {
11
11
  private readonly runner;
12
12
  constructor(runner: GraphQLRunner);
13
13
  mutate<TLabel extends keyof AvailableMutations, TVariables>(query: string, variables: TVariables): Promise<{
14
- response: Record<TLabel, NonNullable<Required<Pick<import("./graphql-types").Mutation, "customerSupport" | "devOps" | "jira" | "confluence" | "polaris" | "compass" | "mercury" | "shepherd" | "directory" | "helpObjectStore" | "jsw" | "roadmaps" | "virtualAgent" | "ecosystem" | "jiraOAuthApps" | "helpCenter" | "createJiraProjectAndDevOpsToolRelationship" | "deleteJiraProjectAndDevOpsToolRelationship" | "deleteDevOpsToolRelationshipsForJiraProject" | "createReleaseNote" | "publishReleaseNote" | "updateReleaseNote" | "createDevOpsServiceAndOpsgenieTeamRelationship" | "updateDevOpsServiceAndOpsgenieTeamRelationship" | "deleteDevOpsServiceAndOpsgenieTeamRelationship" | "updateDevOpsContainerRelationshipEntityProperties" | "deleteDevOpsContainerRelationshipEntityProperties" | "createDevOpsServiceAndJiraProjectRelationship" | "updateDevOpsServiceAndJiraProjectRelationship" | "deleteDevOpsServiceAndJiraProjectRelationship" | "createDevOpsServiceAndRepositoryRelationship" | "updateDevOpsServiceAndRepositoryRelationship" | "deleteDevOpsServiceAndRepositoryRelationship" | "createJiraProjectAndOpsgenieTeamRelationship" | "updateJiraProjectAndOpsgenieTeamRelationship" | "deleteJiraProjectAndOpsgenieTeamRelationship" | "createJiraProjectAndRepositoryRelationship" | "updateJiraProjectAndRepositoryRelationship" | "deleteJiraProjectAndRepositoryRelationship" | "appStorage" | "updatePolarisTermsConsent" | "createPolarisAnonymousVisitorHash" | "deletePolarisAnonymousVisitorHash" | "resolvePolarisObject" | "invokePolarisObject" | "createPolarisComment" | "updatePolarisComment" | "createPolarisStandardField" | "createPolarisCalculatedField" | "updatePolarisCalculatedField" | "updatePolarisFieldDescription" | "updatePolarisFieldEmoji" | "deletePolarisField" | "updatePolarisFieldOptionWeight" | "deletePolarisFieldOption" | "createPolarisDecoration" | "updatePolarisDecoration" | "deletePolarisDecoration" | "createPolarisIdeaTemplate" | "updatePolarisIdeaTemplate" | "deletePolarisIdeaTemplate" | "updatePolarisIdea" | "createPolarisInsight" | "updatePolarisInsight" | "deletePolarisInsight" | "copyPolarisInsights" | "archivePolarisInsights" | "unarchivePolarisInsights" | "createPolarisPlay" | "updatePolarisPlay" | "createPolarisPlayContribution" | "updatePolarisPlayContribution" | "deletePolarisPlayContribution" | "createPolarisInsightFromPlayContribution" | "configurePolarisRefresh" | "applyPolarisProjectTemplate" | "setPolarisProjectOnboarded" | "setPolarisSelectedDeliveryProject" | "refreshPolarisSnippets" | "setPolarisSnippetPropertiesConfig" | "createPolarisView" | "updatePolarisView" | "updatePolarisViewRankV2" | "updatePolarisViewArrangementInfo" | "deletePolarisView" | "updatePolarisViewLastViewedTimestamp" | "createPolarisViewSet" | "updatePolarisViewSet" | "deletePolarisViewSet" | "createAppTunnels" | "deleteAppTunnels" | "invokeExtension" | "invokeAuxEffects" | "userAuthTokenForExtension" | "createWebTriggerUrl" | "deleteWebTriggerUrl" | "watchMarketplaceApp" | "unwatchMarketplaceApp" | "createColumn" | "setColumnName" | "rankColumn" | "setColumnLimit" | "deleteColumn" | "startSprint" | "createSprint" | "completeSprint" | "deleteSprint" | "moveSprintUp" | "moveSprintDown" | "editSprint" | "setUserSwimlaneStrategy" | "setSwimlaneStrategy" | "setEstimationType" | "createCustomFilter" | "updateCustomFilter" | "deleteCustomFilter" | "boardCardMove" | "assignIssueParent" | "unassignIssueParent" | "createCardParent" | "rankCardParent" | "setIssueMediaVisibility" | "toggleBoardFeature" | "setBoardEstimationType" | "createApp" | "updateAppDetails" | "deleteApp" | "updateAtlassianOAuthClient" | "updateNavbarConnectionStateTabSeen" | "createDevOpsService" | "updateDevOpsService" | "deleteDevOpsService" | "createDevOpsServiceRelationship" | "updateDevOpsServiceRelationship" | "deleteDevOpsServiceRelationship" | "updateDevOpsServiceEntityProperties" | "deleteDevOpsServiceEntityProperties" | "updateDeveloperLogAccess" | "installApp" | "uninstallApp" | "upgradeApp" | "subscribeToApp" | "unsubscribeFromApp" | "createAppDeploymentUrl" | "createHostedResourceUploadUrl" | "setExternalAuthCredentials" | "setAppEnvironmentVariable" | "deleteAppEnvironmentVariable" | "createAppDeployment" | "deleteConfluenceSpaceRelationshipsForJiraProject">>[TLabel]>>;
14
+ response: MutationResult<TLabel>;
15
15
  requestId: string | undefined;
16
16
  }>;
17
17
  query<TVariables, TResponse>(query: string, variables: TVariables): Promise<TResponse>;
@@ -1 +1 @@
1
- {"version":3,"file":"mutation-aware-graphql-client.d.ts","sourceRoot":"","sources":["../../src/graphql/mutation-aware-graphql-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAA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AAK,CAAC,UAAU,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,UAAU;CAI/E"}
@@ -26,7 +26,7 @@ class HttpsFeedbackPostClient {
26
26
  this.forgeFeedbackCollectorUrl = 'https://jsd-widget.atlassian.com/api/embeddable/b8a921af-5e55-4b6f-a219-590251ab908f/request?requestTypeId=326';
27
27
  }
28
28
  async sendFeedback(feedback) {
29
- return node_fetch_1.default(this.forgeFeedbackCollectorUrl, {
29
+ return (0, node_fetch_1.default)(this.forgeFeedbackCollectorUrl, {
30
30
  method: 'POST',
31
31
  headers: {
32
32
  'Content-Type': 'application/json'
@@ -34,7 +34,7 @@ class HttpFileUploader {
34
34
  async uploadFromPath(url, filePath) {
35
35
  const fileContents = this.fileSystem.readBinaryFile(filePath);
36
36
  const validFileContents = validateFileContents(filePath, fileContents);
37
- const response = await node_fetch_1.default(url, {
37
+ const response = await (0, node_fetch_1.default)(url, {
38
38
  method: 'PUT',
39
39
  headers: {
40
40
  'Content-Type': 'application/zip',
@@ -1,5 +1,7 @@
1
1
  /// <reference types="node" />
2
2
  export declare class BridgeScriptService {
3
+ private readonly env;
4
+ constructor(env?: string);
3
5
  private createBridgeCoreScriptTag;
4
6
  injectBridgeCore(content: Buffer, onError: () => void): Buffer;
5
7
  }
@@ -1 +1 @@
1
- {"version":3,"file":"bridge-script-service.d.ts","sourceRoot":"","sources":["../../src/service/bridge-script-service.ts"],"names":[],"mappings":";AAMA,qBAAa,mBAAmB;IAC9B,OAAO,CAAC,yBAAyB;IAK1B,gBAAgB,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,IAAI,GAAG,MAAM;CAYtE"}
1
+ {"version":3,"file":"bridge-script-service.d.ts","sourceRoot":"","sources":["../../src/service/bridge-script-service.ts"],"names":[],"mappings":";AAMA,qBAAa,mBAAmB;IAClB,OAAO,CAAC,QAAQ,CAAC,GAAG;gBAAH,GAAG,SAAkC;IAElE,OAAO,CAAC,yBAAyB;IAI1B,gBAAgB,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,IAAI,GAAG,MAAM;CAYtE"}
@@ -7,9 +7,11 @@ 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
+ constructor(env = (0, gateway_1.getEnvironment)(gateway_1.CDNEnvironments)) {
11
+ this.env = env;
12
+ }
10
13
  createBridgeCoreScriptTag() {
11
- const env = gateway_1.getEnvironment(gateway_1.CDNEnvironments);
12
- return `<script src="https://${GLOBAL_FORGE_INSTALL_ID}.cdn.${env}.atlassian-dev.net/${BRIDGE_CORE_CDN_PATH}"></script>`;
14
+ return `<script src="https://${GLOBAL_FORGE_INSTALL_ID}.cdn.${this.env}.atlassian-dev.net/${BRIDGE_CORE_CDN_PATH}"></script>`;
13
15
  }
14
16
  injectBridgeCore(content, onError) {
15
17
  const $ = cheerio_1.default.load(content);
@@ -64,10 +64,10 @@ class FeatureFlagService {
64
64
  this.client = cachedMethod(async () => {
65
65
  const clientSideID = this.getEnvironmentFn(CLIENT_SIDE_ID);
66
66
  const user = await this.user();
67
- const cachePath = env_paths_1.default('@forge/cli').cache;
68
- await util_1.promisify(fs_1.mkdir)(cachePath, { recursive: true });
67
+ const cachePath = (0, env_paths_1.default)('@forge/cli').cache;
68
+ await (0, util_1.promisify)(fs_1.mkdir)(cachePath, { recursive: true });
69
69
  const options = {
70
- logger: launchdarkly_node_client_sdk_1.basicLogger({ level: 'error' }),
70
+ logger: (0, launchdarkly_node_client_sdk_1.basicLogger)({ level: 'error' }),
71
71
  sendEvents: false
72
72
  };
73
73
  return this.initializeLD(clientSideID, user, options);
@@ -1,5 +1,7 @@
1
1
  /// <reference types="node" />
2
2
  export declare class IframeResizerScriptService {
3
+ private readonly env;
4
+ constructor(env?: string);
3
5
  private createIframeResizerScriptTag;
4
6
  injectIframeResizer(content: Buffer, onError: () => void): Buffer;
5
7
  }
@@ -1 +1 @@
1
- {"version":3,"file":"iframe-resizer-script-service.d.ts","sourceRoot":"","sources":["../../src/service/iframe-resizer-script-service.ts"],"names":[],"mappings":";AAMA,qBAAa,0BAA0B;IACrC,OAAO,CAAC,4BAA4B;IAK7B,mBAAmB,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,IAAI,GAAG,MAAM;CAYzE"}
1
+ {"version":3,"file":"iframe-resizer-script-service.d.ts","sourceRoot":"","sources":["../../src/service/iframe-resizer-script-service.ts"],"names":[],"mappings":";AAMA,qBAAa,0BAA0B;IACzB,OAAO,CAAC,QAAQ,CAAC,GAAG;gBAAH,GAAG,SAAkC;IAElE,OAAO,CAAC,4BAA4B;IAI7B,mBAAmB,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,IAAI,GAAG,MAAM;CAYzE"}
@@ -7,9 +7,11 @@ 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
+ constructor(env = (0, gateway_1.getEnvironment)(gateway_1.CDNEnvironments)) {
11
+ this.env = env;
12
+ }
10
13
  createIframeResizerScriptTag() {
11
- const env = gateway_1.getEnvironment(gateway_1.CDNEnvironments);
12
- return `<script async src="https://${GLOBAL_FORGE_INSTALL_ID}.cdn.${env}.atlassian-dev.net/${IFRAME_RESIZER_CDN_PATH}"></script>`;
14
+ return `<script async src="https://${GLOBAL_FORGE_INSTALL_ID}.cdn.${this.env}.atlassian-dev.net/${IFRAME_RESIZER_CDN_PATH}"></script>`;
13
15
  }
14
16
  injectIframeResizer(content, onError) {
15
17
  const $ = cheerio_1.default.load(content);
@@ -1,7 +1,7 @@
1
1
  import { Logger } from '../ui';
2
2
  export declare class HiddenError extends Error {
3
3
  }
4
- export declare const exitOnError: (logger: Logger, error?: Error | undefined, hint?: string | null | undefined) => never;
4
+ export declare const exitOnError: (logger: Logger, error?: Error, hint?: string | null) => never;
5
5
  export declare const wrapError: (error: unknown) => Error;
6
6
  export declare const assertIsError: (error: unknown) => asserts error is Error;
7
7
  //# sourceMappingURL=error-handling.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"error-handling.d.ts","sourceRoot":"","sources":["../../src/shared/error-handling.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAG/B,qBAAa,WAAY,SAAQ,KAAK;CAAG;AAgBzC,eAAO,MAAM,WAAW,WAAY,MAAM,kEAAwC,KAgBjF,CAAC;AAOF,eAAO,MAAM,SAAS,UAAW,OAAO,KAAG,KAK1C,CAAC;AAMF,eAAO,MAAM,aAAa,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,OAAO,CAAC,KAAK,IAAI,KAIhE,CAAC"}
1
+ {"version":3,"file":"error-handling.d.ts","sourceRoot":"","sources":["../../src/shared/error-handling.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAG/B,qBAAa,WAAY,SAAQ,KAAK;CAAG;AAgBzC,eAAO,MAAM,WAAW,WAAY,MAAM,UAAU,KAAK,SAAS,MAAM,GAAG,IAAI,KAAG,KAgBjF,CAAC;AAOF,eAAO,MAAM,SAAS,UAAW,OAAO,KAAG,KAK1C,CAAC;AAMF,eAAO,MAAM,aAAa,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,OAAO,CAAC,KAAK,IAAI,KAIhE,CAAC"}
@@ -11,7 +11,7 @@ function removePrefixFromErrorMessage(message) {
11
11
  }
12
12
  return message;
13
13
  }
14
- exports.exitOnError = (logger, error, hint) => {
14
+ const exitOnError = (logger, error, hint) => {
15
15
  if (error) {
16
16
  error.message = removePrefixFromErrorMessage(error.message);
17
17
  if (!(error instanceof HiddenError))
@@ -26,14 +26,17 @@ exports.exitOnError = (logger, error, hint) => {
26
26
  }
27
27
  return process.exit(0);
28
28
  };
29
- exports.wrapError = (error) => {
29
+ exports.exitOnError = exitOnError;
30
+ const wrapError = (error) => {
30
31
  if (error instanceof Error) {
31
32
  return error;
32
33
  }
33
34
  return new Error(JSON.stringify(error));
34
35
  };
35
- exports.assertIsError = (error) => {
36
+ exports.wrapError = wrapError;
37
+ const assertIsError = (error) => {
36
38
  if (!(error instanceof Error)) {
37
39
  throw new Error(`A non Error type object ${JSON.stringify(error)} of type '${typeof error}' was thrown.`);
38
40
  }
39
41
  };
42
+ exports.assertIsError = assertIsError;
@@ -12,5 +12,5 @@ tslib_1.__exportStar(require("./validate"), exports);
12
12
  tslib_1.__exportStar(require("./read-app-config-files"), exports);
13
13
  const array_prototype_flatmap_1 = tslib_1.__importDefault(require("array.prototype.flatmap"));
14
14
  exports.flatMap = array_prototype_flatmap_1.default;
15
- const flat = (array) => array_prototype_flatmap_1.default(array, (x) => x);
15
+ const flat = (array) => (0, array_prototype_flatmap_1.default)(array, (x) => x);
16
16
  exports.flat = flat;
@@ -1,4 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.pause = void 0;
4
- exports.pause = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
4
+ const pause = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
5
+ exports.pause = pause;
@@ -5,15 +5,18 @@ const case_1 = require("case");
5
5
  exports.SUPPORTED_PRODUCTS = ['Jira', 'Confluence', 'Compass'];
6
6
  exports.WORKSPACE_PRODUCTS = ['Bitbucket'];
7
7
  function capitalizeProduct(product) {
8
- return case_1.capital(product);
8
+ return (0, case_1.capital)(product);
9
9
  }
10
10
  exports.capitalizeProduct = capitalizeProduct;
11
- exports.isWorkspaceProduct = (product) => {
11
+ const isWorkspaceProduct = (product) => {
12
12
  return exports.WORKSPACE_PRODUCTS.includes(capitalizeProduct(product));
13
13
  };
14
- exports.isBitbucketProduct = (product) => {
14
+ exports.isWorkspaceProduct = isWorkspaceProduct;
15
+ const isBitbucketProduct = (product) => {
15
16
  return capitalizeProduct(product) === 'Bitbucket';
16
17
  };
17
- exports.isSupportedProduct = (product) => {
18
- return exports.SUPPORTED_PRODUCTS.includes(capitalizeProduct(product)) || exports.isWorkspaceProduct(product);
18
+ exports.isBitbucketProduct = isBitbucketProduct;
19
+ const isSupportedProduct = (product) => {
20
+ return exports.SUPPORTED_PRODUCTS.includes(capitalizeProduct(product)) || (0, exports.isWorkspaceProduct)(product);
19
21
  };
22
+ exports.isSupportedProduct = isSupportedProduct;
@@ -1 +1 @@
1
- {"version":3,"file":"read-app-config-files.d.ts","sourceRoot":"","sources":["../../src/shared/read-app-config-files.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAKlD,eAAO,MAAM,kBAAkB,qBACX,IAAI,CAAC,gBAAgB,EAAE,UAAU,GAAG,UAAU,GAAG,qBAAqB,CAAC,6BAExF,OAAO,CAAC,MAAM,EAAE,CAmBlB,CAAC;AAgBF,eAAO,MAAM,0BAA0B,qBACnB,IAAI,CAAC,gBAAgB,EAAE,UAAU,GAAG,UAAU,CAAC,4BAEhE,OAAO,CAAC;IAAE,OAAO,EAAE,MAAM,EAAE,CAAC;IAAC,OAAO,EAAE,MAAM,EAAE,CAAA;CAAE,CAUlD,CAAC"}
1
+ {"version":3,"file":"read-app-config-files.d.ts","sourceRoot":"","sources":["../../src/shared/read-app-config-files.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAKlD,eAAO,MAAM,kBAAkB,qBACX,KAAK,gBAAgB,EAAE,UAAU,GAAG,UAAU,GAAG,qBAAqB,CAAC,6BAExF,QAAQ,MAAM,EAAE,CAmBlB,CAAC;AAgBF,eAAO,MAAM,0BAA0B,qBACnB,KAAK,gBAAgB,EAAE,UAAU,GAAG,UAAU,CAAC,4BAEhE,QAAQ;IAAE,OAAO,EAAE,MAAM,EAAE,CAAC;IAAC,OAAO,EAAE,MAAM,EAAE,CAAA;CAAE,CAUlD,CAAC"}
@@ -5,11 +5,11 @@ const tslib_1 = require("tslib");
5
5
  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
- exports.listGitIgnoreFiles = async (fileSystemReader, gitIgnorePath = '.gitignore') => {
8
+ const listGitIgnoreFiles = async (fileSystemReader, gitIgnorePath = '.gitignore') => {
9
9
  var _a;
10
10
  const gitignoreContents = ((_a = fileSystemReader
11
11
  .readFile(gitIgnorePath)) === null || _a === void 0 ? void 0 : _a.trim().split('\n').filter((glob) => glob !== '')) || [];
12
- return array_prototype_flatmap_1.default(await Promise.all(gitignoreContents.map((glob) => {
12
+ return (0, array_prototype_flatmap_1.default)(await Promise.all(gitignoreContents.map((glob) => {
13
13
  if (fileSystemReader.hasGlobSpecialChars(glob)) {
14
14
  return fileSystemReader.readGlob(glob);
15
15
  }
@@ -18,15 +18,16 @@ exports.listGitIgnoreFiles = async (fileSystemReader, gitIgnorePath = '.gitignor
18
18
  }
19
19
  })), (x) => x);
20
20
  };
21
+ exports.listGitIgnoreFiles = listGitIgnoreFiles;
21
22
  const processTSConfigGlobList = async (fileSystemReader, globList) => {
22
23
  if (!globList) {
23
24
  return [];
24
25
  }
25
26
  const relativePaths = await Promise.all(globList.map((glob) => fileSystemReader.readGlob(glob)));
26
- return array_prototype_flatmap_1.default(relativePaths, (pathsFromSingleGlob) => pathsFromSingleGlob.map((relativePath) => path_1.default.resolve('./', relativePath)));
27
+ return (0, array_prototype_flatmap_1.default)(relativePaths, (pathsFromSingleGlob) => pathsFromSingleGlob.map((relativePath) => path_1.default.resolve('./', relativePath)));
27
28
  };
28
- exports.listTSConfigIncludeExclude = async (fileSystemReader, tsConfigPath = 'tsconfig.json') => {
29
- const { config } = typescript_1.readConfigFile(tsConfigPath, fileSystemReader.readFile);
29
+ const listTSConfigIncludeExclude = async (fileSystemReader, tsConfigPath = 'tsconfig.json') => {
30
+ const { config } = (0, typescript_1.readConfigFile)(tsConfigPath, fileSystemReader.readFile);
30
31
  if (!config) {
31
32
  return { include: [], exclude: [] };
32
33
  }
@@ -35,3 +36,4 @@ exports.listTSConfigIncludeExclude = async (fileSystemReader, tsConfigPath = 'ts
35
36
  exclude: await processTSConfigGlobList(fileSystemReader, config === null || config === void 0 ? void 0 : config.exclude)
36
37
  };
37
38
  };
39
+ exports.listTSConfigIncludeExclude = listTSConfigIncludeExclude;
@@ -5,12 +5,12 @@ const url_1 = require("url");
5
5
  const ui_1 = require("../ui");
6
6
  const ui_2 = require("../ui");
7
7
  const product_1 = require("./product");
8
- exports.validateSite = (site, product) => {
8
+ const validateSite = (site, product) => {
9
9
  const trySites = [site, `https://${site}`];
10
10
  for (const trySite of trySites) {
11
11
  try {
12
12
  const urlObj = new url_1.URL(trySite);
13
- if (product && product_1.isWorkspaceProduct(product)) {
13
+ if (product && (0, product_1.isWorkspaceProduct)(product)) {
14
14
  return urlObj;
15
15
  }
16
16
  urlObj.pathname = '/';
@@ -21,3 +21,4 @@ exports.validateSite = (site, product) => {
21
21
  }
22
22
  throw new ui_2.ValidationError(ui_1.Text.error.invalidSite);
23
23
  };
24
+ exports.validateSite = validateSite;
@@ -23,7 +23,7 @@ class CommandLineUI {
23
23
  this.verbose = verbose;
24
24
  this.insideProgress = false;
25
25
  this.addedProgressPadding = false;
26
- this.spinner = spinner || ora_1.default({ discardStdin: false });
26
+ this.spinner = spinner || (0, ora_1.default)({ discardStdin: false });
27
27
  this.logger = logger || console;
28
28
  this.registerCustomUIElements();
29
29
  }
@@ -112,7 +112,7 @@ class CommandLineUI {
112
112
  this.log(msg);
113
113
  }
114
114
  error(error, { pad = true } = {}) {
115
- const message = logger_1.errorMessage(error);
115
+ const message = (0, logger_1.errorMessage)(error);
116
116
  const color = log_color_1.LogColor.error(message);
117
117
  let msg = '\n' + log_color_1.LogColor.errorPrefix + color + '\n';
118
118
  if (!pad) {
@@ -124,7 +124,7 @@ class CommandLineUI {
124
124
  }
125
125
  }
126
126
  snapshotLog(message, level = 'INFO') {
127
- const logMessage = runtime_log_1.formatRuntimeLogLevel(level) + ' ' + runtime_log_1.formatRuntimeLogArgs([message]);
127
+ const logMessage = (0, runtime_log_1.formatRuntimeLogLevel)(level) + ' ' + (0, runtime_log_1.formatRuntimeLogArgs)([message]);
128
128
  this.log(logMessage);
129
129
  }
130
130
  emptyLine() {
@@ -6,7 +6,7 @@ const chalk_1 = tslib_1.__importDefault(require("chalk"));
6
6
  const figures_1 = tslib_1.__importDefault(require("figures"));
7
7
  const text_1 = require("./text");
8
8
  const table_prompt_1 = require("./table-prompt");
9
- exports.getRowSymbol = (isDone, isHover, isSelected) => {
9
+ const getRowSymbol = (isDone, isHover, isSelected) => {
10
10
  if (isDone) {
11
11
  return isSelected ? figures_1.default.circleFilled : figures_1.default.circle;
12
12
  }
@@ -14,7 +14,8 @@ exports.getRowSymbol = (isDone, isHover, isSelected) => {
14
14
  return isHover ? figures_1.default.pointer : isSelected ? figures_1.default.circleFilled : figures_1.default.circle;
15
15
  }
16
16
  };
17
- exports.getRowFormatFn = (isDone, isHover, isSelected) => {
17
+ exports.getRowSymbol = getRowSymbol;
18
+ const getRowFormatFn = (isDone, isHover, isSelected) => {
18
19
  if (isDone) {
19
20
  return isSelected ? chalk_1.default.cyan : chalk_1.default.white;
20
21
  }
@@ -22,6 +23,7 @@ exports.getRowFormatFn = (isDone, isHover, isSelected) => {
22
23
  return isHover || isSelected ? chalk_1.default.cyan : chalk_1.default.white;
23
24
  }
24
25
  };
26
+ exports.getRowFormatFn = getRowFormatFn;
25
27
  class MultipleChoiceTablePrompt extends table_prompt_1.TablePrompt {
26
28
  constructor(questions, readline, answers) {
27
29
  super(questions, readline, answers);
@@ -45,7 +45,7 @@ function formatIfFunctionError(arg) {
45
45
  return arg;
46
46
  }
47
47
  function formatRuntimeLogArgs(args) {
48
- const string = util_1.format(...args.map(formatIfFunctionError));
48
+ const string = (0, util_1.format)(...args.map(formatIfFunctionError));
49
49
  const formattedString = `${string.match(/[{[]]\n.+/) ? '\n' : ''}${string}`;
50
50
  return formattedString;
51
51
  }
@@ -6,12 +6,14 @@ const chalk_1 = tslib_1.__importDefault(require("chalk"));
6
6
  const figures_1 = tslib_1.__importDefault(require("figures"));
7
7
  const text_1 = require("./text");
8
8
  const table_prompt_1 = require("./table-prompt");
9
- exports.getRowSymbol = (_, isHover) => {
9
+ const getRowSymbol = (_, isHover) => {
10
10
  return isHover ? figures_1.default.pointer : ' ';
11
11
  };
12
- exports.getRowFormatFn = (_, isHover) => {
12
+ exports.getRowSymbol = getRowSymbol;
13
+ const getRowFormatFn = (_, isHover) => {
13
14
  return isHover ? chalk_1.default.cyan : chalk_1.default.white;
14
15
  };
16
+ exports.getRowFormatFn = getRowFormatFn;
15
17
  class SingleChoiceTablePrompt extends table_prompt_1.TablePrompt {
16
18
  constructor(questions, readline, answers) {
17
19
  super(questions, readline, answers);
@@ -25,7 +25,7 @@ class TablePrompt extends base_1.default {
25
25
  return this;
26
26
  }
27
27
  attachEventHandlers() {
28
- const events = events_1.default(this.rl);
28
+ const events = (0, events_1.default)(this.rl);
29
29
  void this.handleSubmitEvents(events.line).success.forEach(this.onSubmit.bind(this));
30
30
  void events.normalizedUpKey.forEach(this.onUpKey.bind(this));
31
31
  void events.normalizedDownKey.forEach(this.onDownKey.bind(this));
package/out/ui/text.d.ts CHANGED
@@ -54,7 +54,7 @@ export declare const Text: {
54
54
  deprecate: (newCommand: string) => string;
55
55
  graphQL: {
56
56
  request: (url: string, query: string, variables: string) => string;
57
- response: (result: string, requestId?: string | undefined) => string;
57
+ response: (result: string, requestId?: string) => string;
58
58
  error: string;
59
59
  outdatedClientVersion: string;
60
60
  };
@@ -1 +1 @@
1
- {"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../src/ui/text.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAA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AAsB,MAAM,KAAG,MAAM;;sBAUvD,MAAM,UAAU,MAAM,WAAW,MAAM,aAAa,MAAM,KAAG,MAAM;6BAE5D,MAAM,eAAe,MAAM,oBAAoB,MAAM,sBAAsB,MAAM,KAAG,MAAM;gCAevF,MAAM,oBAAoB,MAAM,sBAAsB,MAAM,KAAG,MAAM;wBAc7E,MAAM,UAAU,MAAM,WAAW,MAAM,aAAa,MAAM,KAAG,MAAM;;;yBAKlE,MAAM,WAAW,MAAM;;;;qCAQb,MAAM;qCACN,MAAM,gBAAgB,OAAO;;;yCAMzB,MAAM;qCACV,MAAM;;;;;;;;;;;;;;;;+BAwBZ,MAAM,SAAS,MAAM;;;;;;;;;;;;6CAaP,MAAM,mBAAmB,MAAM,EAAE;;;;CAOvE,CAAC"}
package/out/ui/text.js CHANGED
@@ -11,13 +11,14 @@ const ctrlC = 'Press Ctrl+C to cancel.';
11
11
  const gettingStartedDACLink = 'https://go.atlassian.com/dac/platform/forge/getting-started/#log-in-with-an-atlassian-api-token';
12
12
  const encryptedValue = '****';
13
13
  const greenTick = `${chalk_1.default.bold(chalk_1.default.green('✔'))}`;
14
- const buildTerminalLink = (text) => terminal_link_1.default(chalk_1.default.bold(text), text, { fallback: () => chalk_1.default.underline.bold(text) });
14
+ const buildTerminalLink = (text) => (0, terminal_link_1.default)(chalk_1.default.bold(text), text, { fallback: () => chalk_1.default.underline.bold(text) });
15
15
  const autoSpaceSentences = (...sentences) => sentences
16
16
  .filter((sentence) => sentence.length > 0)
17
17
  .join(' ');
18
18
  const fatalError = (message) => chalk_1.default.bold(chalk_1.default.red(message));
19
19
  const keytarAccessErrorBase = (message) => `Keytar error detected: ${message}`;
20
- exports.capitalise = (word) => word.charAt(0).toUpperCase() + word.slice(1);
20
+ const capitalise = (word) => word.charAt(0).toUpperCase() + word.slice(1);
21
+ exports.capitalise = capitalise;
21
22
  const getLintMessage = (line, column, message, level, colourFunction, reference) => `${chalk_1.default.dim(`${line}:${column}`.padEnd(7))} ${colourFunction(level.padEnd(8))} ${message} ${chalk_1.default.dim(reference)}\n`;
22
23
  const checkLintTotalPlurals = (numErrors, numWarnings, numFixableErrors, numFixableWarnings) => ({
23
24
  pluralCheckedErrors: `${numErrors} ${numErrors === 1 ? 'error' : 'errors'}`,
@@ -427,9 +428,9 @@ What do you like or don't like about Forge? Share your feedback below or press C
427
428
  listEgressAddresses: (egressAddresses) => `Your app will exchange data with the following urls:\n${egressAddresses.map((url) => `- ${url}`).join('\n')}\n`,
428
429
  permissionsMismatch: (environment) => `The scopes or egress URLs in the manifest are different from the scopes in your most recent deployment to ${environment}. Try running ${chalk_1.default.bold(`forge deploy -e ${environment}`)} before installing.\n`,
429
430
  multiProductScopesDetected: (productsToInstall, productsToUpgrade, site, environment, environmentToOption) => `\nWe detected your app requires scopes across multiple products.\nRun ${chalk_1.default.bold('forge install')} for each of the following:\n${productsToUpgrade
430
- .map((product) => `- forge install --upgrade -p ${case_1.capital(product)} -s ${site} -e ${environmentToOption(environment)}`)
431
+ .map((product) => `- forge install --upgrade -p ${(0, case_1.capital)(product)} -s ${site} -e ${environmentToOption(environment)}`)
431
432
  .join('\n')}${productsToUpgrade.length !== 0 && productsToInstall.length !== 0 ? '\n' : ''}${productsToInstall
432
- .map((product) => `- forge install -p ${case_1.capital(product)} -s ${site} -e ${environmentToOption(environment)}`)
433
+ .map((product) => `- forge install -p ${(0, case_1.capital)(product)} -s ${site} -e ${environmentToOption(environment)}`)
433
434
  .join('\n')}`,
434
435
  promptForPermissionsConfirmation: (permissionsMismatchInDevelopment) => permissionsMismatchInDevelopment
435
436
  ? 'Are you sure you want to continue installing the app?'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forge/cli-shared",
3
- "version": "3.2.2-next.0",
3
+ "version": "3.2.2",
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": "4.4.1-next.0",
15
+ "@forge/manifest": "4.4.1",
16
16
  "@forge/util": "1.2.0",
17
17
  "array.prototype.flatmap": "^1.2.3",
18
18
  "case": "^1.6.2",
@@ -39,7 +39,7 @@
39
39
  "recursive-readdir": "^2.2.2",
40
40
  "terminal-link": "^2.1.1",
41
41
  "tmp": "^0.1.0",
42
- "typescript": "^3.9.7",
42
+ "typescript": "^4.8.4",
43
43
  "unzipper": "^0.10.8",
44
44
  "yaml": "^1.10.0"
45
45
  },
@@ -55,7 +55,7 @@
55
55
  "@types/get-folder-size": "^2.0.0",
56
56
  "@types/ignore-walk": "^3.0.1",
57
57
  "@types/inquirer": "^6.5.0",
58
- "@types/jest": "^26.0.0",
58
+ "@types/jest": "^29.1.2",
59
59
  "@types/js-yaml": "^3.12.2",
60
60
  "@types/node-fetch": "^2.5.7",
61
61
  "@types/recursive-readdir": "^2.2.0",