@forge/cli-shared 6.6.1-next.2 → 6.6.1-next.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +121 -0
- package/out/graphql/graphql-types.d.ts +2318 -242
- package/out/graphql/graphql-types.d.ts.map +1 -1
- package/out/graphql/graphql-types.js +226 -49
- package/out/service/supported-products-service.d.ts +28 -19
- package/out/service/supported-products-service.d.ts.map +1 -1
- package/out/service/supported-products-service.js +104 -73
- package/out/shared/error-handling.d.ts +3 -0
- package/out/shared/error-handling.d.ts.map +1 -1
- package/out/shared/error-handling.js +7 -1
- package/out/shared/product.d.ts +1 -1
- package/out/shared/product.d.ts.map +1 -1
- package/out/shared/product.js +5 -5
- package/out/ui/command-line-ui.d.ts +2 -1
- package/out/ui/command-line-ui.d.ts.map +1 -1
- package/out/ui/command-line-ui.js +6 -2
- package/out/ui/table-prompt.d.ts +2 -0
- package/out/ui/table-prompt.d.ts.map +1 -1
- package/out/ui/table-prompt.js +23 -2
- package/out/ui/text.d.ts +9 -2
- package/out/ui/text.d.ts.map +1 -1
- package/out/ui/text.js +17 -7
- package/out/ui/ui.d.ts +5 -4
- package/out/ui/ui.d.ts.map +1 -1
- package/package.json +5 -5
package/out/ui/text.js
CHANGED
|
@@ -84,8 +84,8 @@ exports.Text = {
|
|
|
84
84
|
},
|
|
85
85
|
licenseModesOverrideErrors: {
|
|
86
86
|
prodEnvNotSupported: '--license-modes and --users-with-access options are not supported in production environments',
|
|
87
|
-
empty: '--license-modes option list is empty. Provide a space-separated list of license mode. Supported
|
|
88
|
-
invalid: 'Invalid --license-modes option value. Supported
|
|
87
|
+
empty: '--license-modes option list is empty. Provide a space-separated list of license mode. Supported values are user_access and agent. \nFor example: install --license-modes user_access --users-with-access aaid1',
|
|
88
|
+
invalid: 'Invalid --license-modes option value. Supported values are user_access and agent',
|
|
89
89
|
userWithAccessRequired: '--users-with-access option is required when specifying --license-modes option'
|
|
90
90
|
},
|
|
91
91
|
userWithAccessOverrideErrors: {
|
|
@@ -94,7 +94,8 @@ exports.Text = {
|
|
|
94
94
|
countSize: (maxSizeOfUsersWithAccess) => `User limit exceeded. The --users-with-access option allows a maximum of ${maxSizeOfUsersWithAccess} users.`,
|
|
95
95
|
licenseModeRequired: '--license-modes option is required when specifying --users-with-access option'
|
|
96
96
|
},
|
|
97
|
-
multipleMatchingInstallations: 'Multiple matching installations found for the provided context when only one was expected'
|
|
97
|
+
multipleMatchingInstallations: 'Multiple matching installations found for the provided context when only one was expected',
|
|
98
|
+
partialInstallation: (failedProductInstallations) => `Failed to install the app for the following products: ${failedProductInstallations.join(', ')}.`
|
|
98
99
|
},
|
|
99
100
|
warning: {
|
|
100
101
|
plaintextCredentialsFound: (url) => `Your credentials were stored in plaintext by a previous version of the Forge CLI. For additional security, revoke your existing API token by visting this URL ${buildTerminalLink(url)}.`,
|
|
@@ -112,6 +113,7 @@ exports.Text = {
|
|
|
112
113
|
installationContext: {
|
|
113
114
|
overviewProduct: 'Select the product your app uses.\n',
|
|
114
115
|
promptProduct: 'Select a product:',
|
|
116
|
+
promptOptionalProducts: 'Select optional products:',
|
|
115
117
|
overviewSite: '\nEnter your site. For example, your-domain.atlassian.net\n',
|
|
116
118
|
overviewWorkspace: '\nEnter your workspace. For example, bitbucket.org/your-workspace\n',
|
|
117
119
|
promptSite: 'Enter the site URL:',
|
|
@@ -691,16 +693,23 @@ What do you like or don't like about Forge? Share your feedback below or press C
|
|
|
691
693
|
install: {
|
|
692
694
|
cmd: {
|
|
693
695
|
description: 'manage app installations',
|
|
694
|
-
start: (envKey, envType) =>
|
|
695
|
-
|
|
696
|
+
start: (envKey, envType, product) => {
|
|
697
|
+
const productText = product ? `in ${product} ` : '';
|
|
698
|
+
return `Installing your app ${productText}on to ${exports.Text.env.displayEnvironment(envKey, envType)}...`;
|
|
699
|
+
},
|
|
700
|
+
end: (displayTick, product) => `${displayTick ? greenTick + ' ' : ''}Install in ${product} complete!`
|
|
696
701
|
},
|
|
697
|
-
booleanToScope: (isLatest) => (isLatest ? `Latest` : `Out-of-date`),
|
|
702
|
+
booleanToScope: (isLatest) => (isLatest ? `(Latest)` : `(Out-of-date)`),
|
|
703
|
+
alreadyInstalledInRequiredProduct: (product) => `\nYou have already installed this app into your required product, ${chalk_1.default.bold(product)}.`,
|
|
704
|
+
installingToRequiredProduct: (product) => `\nYour app will be installed into your required product, ${chalk_1.default.bold(product)}. Once this is done, you can install your app into any optional products.\n`,
|
|
705
|
+
installingToOptionalProduct: (product) => `\nThis app will be installed as an optional product on ${product}.\n`,
|
|
706
|
+
installConfirmation: (product, site) => `Installing your app onto ${product} on ${site}.\n${ctrlC}\n`,
|
|
698
707
|
bannerSite: `\nInstalling your app onto an Atlassian site.\n${ctrlC}\n`,
|
|
699
708
|
bannerWorkspace: `\nInstalling your app onto the selected workspace.\n${ctrlC}\n`,
|
|
700
709
|
optionConfirmScopes: 'skip confirmation of scopes for the app before installing or upgrading the app',
|
|
701
710
|
optionUpgrade: 'upgrade an existing installation',
|
|
702
711
|
optionLicense: 'specify the license value for the app (allowed values: active, inactive, and trial)',
|
|
703
|
-
optionLicenseModes: '[This feature is under development] specify the list of license mode value for the app (allowed values: user-access)',
|
|
712
|
+
optionLicenseModes: '[This feature is under development] specify the list of license mode value for the app (allowed values: user-access, agent)',
|
|
704
713
|
optionUsersWithAccess: '[This feature is under development] specify the list of Atlassian Account IDs(aaid) for users who have access to the app',
|
|
705
714
|
listScopes: (scopes) => `Your app will be installed with the following scopes:\n${scopes
|
|
706
715
|
.map(({ name, requiresInteractiveConsent }) => `- ${name}${requiresInteractiveConsent ? ' (requires user consent)' : ''}`)
|
|
@@ -735,6 +744,7 @@ What do you like or don't like about Forge? Share your feedback below or press C
|
|
|
735
744
|
'in the developer console and share it with the site admin: ' +
|
|
736
745
|
`https://developer.atlassian.com/console/myapps/${appId}/distribution`
|
|
737
746
|
},
|
|
747
|
+
failedAll: (site, environment) => `Your app in ${(0, environment_1.environmentToOption)(environment)} was not installed to any products on ${chalk_1.default.bold(site)}.`,
|
|
738
748
|
security: {
|
|
739
749
|
banner: (site) => `\n${chalk_1.default.gray('=== ')}Security questions\n
|
|
740
750
|
Forge apps installed on ${site} must comply with our corporate security guidelines.
|
package/out/ui/ui.d.ts
CHANGED
|
@@ -4,10 +4,10 @@ export interface Prompt {
|
|
|
4
4
|
confirm(message: string): Promise<boolean>;
|
|
5
5
|
promptForText(message: string, defaultValue?: string): Promise<string>;
|
|
6
6
|
promptForSecret(message: string): Promise<string>;
|
|
7
|
-
promptForList(message: string, choices:
|
|
8
|
-
format?: (
|
|
9
|
-
}): Promise<
|
|
10
|
-
promptForTable(message: string, infoMessage: string, columns: string[], choices: object[]): Promise<number[]>;
|
|
7
|
+
promptForList<T extends string>(message: string, choices: T[], config?: {
|
|
8
|
+
format?: (choice: T) => string;
|
|
9
|
+
}): Promise<T>;
|
|
10
|
+
promptForTable(message: string, infoMessage: string, columns: string[], choices: object[], isBorderless?: boolean): Promise<number[]>;
|
|
11
11
|
promptForSingleChoiceTable(message: string, infoMessage: string, columns: string[], choices: object[]): Promise<number>;
|
|
12
12
|
}
|
|
13
13
|
export declare type TableCell = string | boolean | null | undefined;
|
|
@@ -27,6 +27,7 @@ export interface UI extends Logger, Prompt {
|
|
|
27
27
|
emptyLine(): void;
|
|
28
28
|
displayProgress<Result>(progress: () => Promise<Result>, startText: string, successText: string | ((result: Result) => string | ProgressResult)): Promise<Result>;
|
|
29
29
|
displayTemporaryMessage<Result>(progress: () => Promise<Result>, waitText: string): Promise<Result>;
|
|
30
|
+
clearSpinner(): void;
|
|
30
31
|
table<Key extends string>(head: [Key, string][], data: Record<Key, TableCell>[] | undefined | null, options?: TableOptions<Key>): void;
|
|
31
32
|
}
|
|
32
33
|
//# sourceMappingURL=ui.d.ts.map
|
package/out/ui/ui.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui.d.ts","sourceRoot":"","sources":["../../src/ui/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,MAAM,CAAC,EAAE,EACrB,IAAI,EAAE,MAAM,CAAC,GAAG,EAAE,SAAS,CAAC,EAAE,GAAG,SAAS,GAAG,IAAI,EACjD,OAAO,CAAC,EAAE,YAAY,CAAC,GAAG,CAAC,GAC1B,IAAI,CAAC;CACT"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forge/cli-shared",
|
|
3
|
-
"version": "6.6.1-next.
|
|
3
|
+
"version": "6.6.1-next.20",
|
|
4
4
|
"description": "Common functionality for Forge CLI",
|
|
5
5
|
"author": "Atlassian",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
"generate-graphql-types": "graphql-codegen --config src/graphql/codegen.yml"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@forge/manifest": "8.7.0-next.
|
|
16
|
-
"@forge/util": "1.4.
|
|
15
|
+
"@forge/manifest": "8.7.0-next.9",
|
|
16
|
+
"@forge/util": "1.4.8-next.0",
|
|
17
17
|
"@forge/i18n": "0.0.3",
|
|
18
18
|
"@sentry/node": "7.106.0",
|
|
19
19
|
"adm-zip": "^0.5.10",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"cheerio": "^0.22.0",
|
|
24
24
|
"cli-table3": "^0.6.3",
|
|
25
25
|
"conf": "^10.2.0",
|
|
26
|
-
"cross-spawn": "^7.0.
|
|
26
|
+
"cross-spawn": "^7.0.5",
|
|
27
27
|
"env-paths": "^2.2.1",
|
|
28
28
|
"figures": "^3.2.0",
|
|
29
29
|
"fp-ts": "^2.16.2",
|
|
@@ -68,4 +68,4 @@
|
|
|
68
68
|
"jest-matcher-specific-error": "^1.0.0",
|
|
69
69
|
"jest-fetch-mock": "^3.0.3"
|
|
70
70
|
}
|
|
71
|
-
}
|
|
71
|
+
}
|