@forge/cli-shared 6.6.1-next.8 → 6.6.1
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 +146 -0
- package/out/graphql/graphql-types.d.ts +1880 -413
- package/out/graphql/graphql-types.d.ts.map +1 -1
- package/out/graphql/graphql-types.js +143 -51
- 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 -76
- 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 -4
- package/out/ui/command-line-ui.d.ts.map +1 -1
- package/out/ui/command-line-ui.js +6 -22
- 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 +6 -3
- package/out/ui/text.d.ts.map +1 -1
- package/out/ui/text.js +16 -10
- package/out/ui/ui.d.ts +2 -4
- package/out/ui/ui.d.ts.map +1 -1
- package/package.json +9 -6
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)}.`,
|
|
@@ -692,19 +693,23 @@ What do you like or don't like about Forge? Share your feedback below or press C
|
|
|
692
693
|
install: {
|
|
693
694
|
cmd: {
|
|
694
695
|
description: 'manage app installations',
|
|
695
|
-
start: (envKey, envType) =>
|
|
696
|
-
|
|
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!`
|
|
697
701
|
},
|
|
698
|
-
booleanToScope: (isLatest) => (isLatest ? `Latest` : `Out-of-date`),
|
|
699
|
-
alreadyInstalledInRequiredProduct: (product) => `\nYou have already installed this app into your required product
|
|
700
|
-
installingToRequiredProduct: (product) => `\nYour app will be installed into your required product
|
|
701
|
-
installingToOptionalProduct:
|
|
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`,
|
|
702
707
|
bannerSite: `\nInstalling your app onto an Atlassian site.\n${ctrlC}\n`,
|
|
703
708
|
bannerWorkspace: `\nInstalling your app onto the selected workspace.\n${ctrlC}\n`,
|
|
704
709
|
optionConfirmScopes: 'skip confirmation of scopes for the app before installing or upgrading the app',
|
|
705
710
|
optionUpgrade: 'upgrade an existing installation',
|
|
706
711
|
optionLicense: 'specify the license value for the app (allowed values: active, inactive, and trial)',
|
|
707
|
-
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)',
|
|
708
713
|
optionUsersWithAccess: '[This feature is under development] specify the list of Atlassian Account IDs(aaid) for users who have access to the app',
|
|
709
714
|
listScopes: (scopes) => `Your app will be installed with the following scopes:\n${scopes
|
|
710
715
|
.map(({ name, requiresInteractiveConsent }) => `- ${name}${requiresInteractiveConsent ? ' (requires user consent)' : ''}`)
|
|
@@ -739,6 +744,7 @@ What do you like or don't like about Forge? Share your feedback below or press C
|
|
|
739
744
|
'in the developer console and share it with the site admin: ' +
|
|
740
745
|
`https://developer.atlassian.com/console/myapps/${appId}/distribution`
|
|
741
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)}.`,
|
|
742
748
|
security: {
|
|
743
749
|
banner: (site) => `\n${chalk_1.default.gray('=== ')}Security questions\n
|
|
744
750
|
Forge apps installed on ${site} must comply with our corporate security guidelines.
|
package/out/ui/ui.d.ts
CHANGED
|
@@ -7,10 +7,7 @@ export interface Prompt {
|
|
|
7
7
|
promptForList<T extends string>(message: string, choices: T[], config?: {
|
|
8
8
|
format?: (choice: T) => string;
|
|
9
9
|
}): Promise<T>;
|
|
10
|
-
|
|
11
|
-
format?: (choice: T) => string;
|
|
12
|
-
}): Promise<T[]>;
|
|
13
|
-
promptForTable(message: string, infoMessage: string, columns: string[], choices: object[]): Promise<number[]>;
|
|
10
|
+
promptForTable(message: string, infoMessage: string, columns: string[], choices: object[], isBorderless?: boolean): Promise<number[]>;
|
|
14
11
|
promptForSingleChoiceTable(message: string, infoMessage: string, columns: string[], choices: object[]): Promise<number>;
|
|
15
12
|
}
|
|
16
13
|
export declare type TableCell = string | boolean | null | undefined;
|
|
@@ -30,6 +27,7 @@ export interface UI extends Logger, Prompt {
|
|
|
30
27
|
emptyLine(): void;
|
|
31
28
|
displayProgress<Result>(progress: () => Promise<Result>, startText: string, successText: string | ((result: Result) => string | ProgressResult)): Promise<Result>;
|
|
32
29
|
displayTemporaryMessage<Result>(progress: () => Promise<Result>, waitText: string): Promise<Result>;
|
|
30
|
+
clearSpinner(): void;
|
|
33
31
|
table<Key extends string>(head: [Key, string][], data: Record<Key, TableCell>[] | undefined | null, options?: TableOptions<Key>): void;
|
|
34
32
|
}
|
|
35
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/ui.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,MAAM,WAAW,MAAM;IACrB,OAAO,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAC3C,aAAa,CAAC,OAAO,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,MAAM,GAAG,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AAG,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
|
|
3
|
+
"version": "6.6.1",
|
|
4
4
|
"description": "Common functionality for Forge CLI",
|
|
5
5
|
"author": "Atlassian",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
"generate-graphql-types": "graphql-codegen --config src/graphql/codegen.yml"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@forge/manifest": "8.7.0
|
|
16
|
-
"@forge/util": "1.4.8
|
|
17
|
-
"@forge/i18n": "0.0.
|
|
15
|
+
"@forge/manifest": "8.7.0",
|
|
16
|
+
"@forge/util": "1.4.8",
|
|
17
|
+
"@forge/i18n": "0.0.4",
|
|
18
18
|
"@sentry/node": "7.106.0",
|
|
19
19
|
"adm-zip": "^0.5.10",
|
|
20
20
|
"array.prototype.flatmap": "^1.3.2",
|
|
@@ -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",
|
|
@@ -67,5 +67,8 @@
|
|
|
67
67
|
"jest-fixtures": "^0.6.0",
|
|
68
68
|
"jest-matcher-specific-error": "^1.0.0",
|
|
69
69
|
"jest-fetch-mock": "^3.0.3"
|
|
70
|
+
},
|
|
71
|
+
"publishConfig": {
|
|
72
|
+
"registry": "https://packages.atlassian.com/api/npm/npm-public/"
|
|
70
73
|
}
|
|
71
|
-
}
|
|
74
|
+
}
|