@forge/cli-shared 6.5.5-next.1 → 6.6.0-next.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.
- package/CHANGELOG.md +6 -0
- package/out/graphql/graphql-types.d.ts +215 -0
- package/out/graphql/graphql-types.d.ts.map +1 -1
- package/out/shared/product.d.ts +7 -4
- package/out/shared/product.d.ts.map +1 -1
- package/out/shared/product.js +5 -2
- package/out/ui/text.d.ts +2 -1
- package/out/ui/text.d.ts.map +1 -1
- package/out/ui/text.js +5 -4
- package/package.json +1 -1
package/out/shared/product.d.ts
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
declare const SUPPORTED_PRODUCTS: readonly ["Jira", "Confluence", "Compass"];
|
|
2
|
+
export declare const WORKSPACE_PRODUCTS: readonly ["Bitbucket"];
|
|
3
|
+
export declare type SupportedProduct = (typeof SUPPORTED_PRODUCTS)[number] | (typeof WORKSPACE_PRODUCTS)[number];
|
|
2
4
|
export declare function getSupportedProducts({ enableAtlas }?: {
|
|
3
5
|
enableAtlas?: boolean;
|
|
4
|
-
}):
|
|
6
|
+
}): (SupportedProduct | "Atlas")[];
|
|
5
7
|
export declare function productDisplayName(ariResourceOwner: string): string;
|
|
6
8
|
export declare function ariResourceOwner(productDisplayName: string): string;
|
|
7
|
-
export declare const isWorkspaceProduct: (product: string) =>
|
|
9
|
+
export declare const isWorkspaceProduct: (product: string) => product is "Bitbucket";
|
|
8
10
|
export declare const isBitbucketProduct: (product: string) => boolean;
|
|
9
|
-
export declare const isSupportedProduct: (product: string) =>
|
|
11
|
+
export declare const isSupportedProduct: (product: string) => product is SupportedProduct;
|
|
12
|
+
export {};
|
|
10
13
|
//# sourceMappingURL=product.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product.d.ts","sourceRoot":"","sources":["../../src/shared/product.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"product.d.ts","sourceRoot":"","sources":["../../src/shared/product.ts"],"names":[],"mappings":"AAGA,QAAA,MAAM,kBAAkB,4CAA6C,CAAC;AACtE,eAAO,MAAM,kBAAkB,wBAAyB,CAAC;AACzD,oBAAY,gBAAgB,GAAG,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,CAAC,CAAC;AAUzG,wBAAgB,oBAAoB,CAAC,EAAE,WAAmB,EAAE,GAAE;IAAE,WAAW,CAAC,EAAE,OAAO,CAAA;CAAO,kCAQ3F;AAED,wBAAgB,kBAAkB,CAAC,gBAAgB,EAAE,MAAM,GAAG,MAAM,CAEnE;AAED,wBAAgB,gBAAgB,CAAC,kBAAkB,EAAE,MAAM,GAAG,MAAM,CAEnE;AAED,eAAO,MAAM,kBAAkB,YAAa,MAAM,2BAEjD,CAAC;AAEF,eAAO,MAAM,kBAAkB,YAAa,MAAM,KAAG,OAEpD,CAAC;AAEF,eAAO,MAAM,kBAAkB,YAAa,MAAM,gCAEjD,CAAC"}
|
package/out/shared/product.js
CHANGED
|
@@ -27,7 +27,7 @@ function ariResourceOwner(productDisplayName) {
|
|
|
27
27
|
}
|
|
28
28
|
exports.ariResourceOwner = ariResourceOwner;
|
|
29
29
|
const isWorkspaceProduct = (product) => {
|
|
30
|
-
return exports.WORKSPACE_PRODUCTS
|
|
30
|
+
return isSupported(exports.WORKSPACE_PRODUCTS, productDisplayName(product));
|
|
31
31
|
};
|
|
32
32
|
exports.isWorkspaceProduct = isWorkspaceProduct;
|
|
33
33
|
const isBitbucketProduct = (product) => {
|
|
@@ -35,6 +35,9 @@ const isBitbucketProduct = (product) => {
|
|
|
35
35
|
};
|
|
36
36
|
exports.isBitbucketProduct = isBitbucketProduct;
|
|
37
37
|
const isSupportedProduct = (product) => {
|
|
38
|
-
return SUPPORTED_PRODUCTS
|
|
38
|
+
return isSupported(SUPPORTED_PRODUCTS, productDisplayName(product)) || (0, exports.isWorkspaceProduct)(product);
|
|
39
39
|
};
|
|
40
40
|
exports.isSupportedProduct = isSupportedProduct;
|
|
41
|
+
function isSupported(arr, e) {
|
|
42
|
+
return arr.includes(e);
|
|
43
|
+
}
|
package/out/ui/text.d.ts
CHANGED
|
@@ -21,6 +21,7 @@ export declare const Text: {
|
|
|
21
21
|
invalidProduct: string;
|
|
22
22
|
invalidSite: string;
|
|
23
23
|
invalidWorkspace: string;
|
|
24
|
+
invalidInstallationContext: string;
|
|
24
25
|
invalidTokenInKeytar: string;
|
|
25
26
|
invalidTokenInEnv: (instructionsUrl: string, emailVar: string, tokenVar: string) => string;
|
|
26
27
|
promptInputRequired: string;
|
|
@@ -47,6 +48,7 @@ export declare const Text: {
|
|
|
47
48
|
countSize: (maxSizeOfUsersWithAccess: number) => string;
|
|
48
49
|
licenseModeRequired: string;
|
|
49
50
|
};
|
|
51
|
+
multipleMatchingInstallations: string;
|
|
50
52
|
};
|
|
51
53
|
warning: {
|
|
52
54
|
plaintextCredentialsFound: (url: string) => string;
|
|
@@ -620,7 +622,6 @@ export declare const Text: {
|
|
|
620
622
|
cmd: string;
|
|
621
623
|
copy: (url: string) => string;
|
|
622
624
|
optionFuncKey: string;
|
|
623
|
-
installationId: string;
|
|
624
625
|
overviewFuncKey: string;
|
|
625
626
|
promptFuncKey: string;
|
|
626
627
|
overViewInstallationTable: string;
|
package/out/ui/text.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../src/ui/text.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAI1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAK9D,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,0BAA0B,CAAC,EAAE,OAAO,CAAC;CACtC;AA2BD,eAAO,MAAM,UAAU,SAAU,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6 +64,7 @@ exports.Text = {
|
|
|
64
64
|
invalidProduct: 'Invalid product. Rerun the command with a valid product.',
|
|
65
65
|
invalidSite: 'The site you entered is not an Atlassian site. Rerun the command with the URL to an Atlassian site to install the app.',
|
|
66
66
|
invalidWorkspace: 'The workspace you entered is not a valid workspace. Rerun the command with the URL to a valid workspace to install the app.',
|
|
67
|
+
invalidInstallationContext: 'Could not find an installation for the provided context',
|
|
67
68
|
invalidTokenInKeytar: `Your API token is no longer valid. Run ${forge('login')} to reset your login credentials.`,
|
|
68
69
|
invalidTokenInEnv: (instructionsUrl, emailVar, tokenVar) => `The API token on your machine is no longer valid.` +
|
|
69
70
|
`\n 1) Get a new API token: ${instructionsUrl}` +
|
|
@@ -91,7 +92,8 @@ exports.Text = {
|
|
|
91
92
|
empty: '--users-with-access option list is empty. Provide a space-separated list of Atlassian Account IDs(aaid). \nFor example: install --license-modes user_access --users-with-access aaid1 aaid2',
|
|
92
93
|
countSize: (maxSizeOfUsersWithAccess) => `User limit exceeded. The --users-with-access option allows a maximum of ${maxSizeOfUsersWithAccess} users.`,
|
|
93
94
|
licenseModeRequired: '--license-modes option is required when specifying --users-with-access option'
|
|
94
|
-
}
|
|
95
|
+
},
|
|
96
|
+
multipleMatchingInstallations: 'Multiple matching installations found for the provided context when only one was expected'
|
|
95
97
|
},
|
|
96
98
|
warning: {
|
|
97
99
|
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)}.`,
|
|
@@ -750,7 +752,7 @@ Debugging in Google Chrome:
|
|
|
750
752
|
progressInfo: `To uninstall your app from a site or workspace, select it from the list.\nPress Ctrl+C to cancel.`,
|
|
751
753
|
done: `\n${log_symbols_1.default.success} Apps uninstalled`
|
|
752
754
|
},
|
|
753
|
-
info: 'Uninstalling the app
|
|
755
|
+
info: 'Uninstalling the app from the provided context.',
|
|
754
756
|
done: (product, domain, environment, isMulti) => `${isMulti ? log_symbols_1.default.info : log_symbols_1.default.success} Uninstalled from the ${(0, environment_1.environmentToOption)(environment)} environment in ${product} on ${buildTerminalLink(domain)}.`,
|
|
755
757
|
failed: (product, domain, environment) => `Failed to uninstall the app from the ${(0, environment_1.environmentToOption)(environment)} environment in ${product} on ${buildTerminalLink(domain)}. Try rerunning the command, or ask for help if you continue to see this error.`,
|
|
756
758
|
missingUninstallTask: `Cannot uninstall the app: something went wrong with starting the uninstall task.`
|
|
@@ -759,8 +761,7 @@ Debugging in Google Chrome:
|
|
|
759
761
|
cmd: 'get a web trigger URL',
|
|
760
762
|
copy: (url) => `\nCopy your web trigger URL below to start using it:\n\n${buildTerminalLink(url)}`,
|
|
761
763
|
optionFuncKey: 'web trigger key from the manifest.yml file',
|
|
762
|
-
|
|
763
|
-
overviewFuncKey: `\nGetting the web trigger URL by installation ID.\n\nPress Ctrl+C to cancel.\n`,
|
|
764
|
+
overviewFuncKey: `\nGetting the web trigger URL for the provided context.\n\nPress Ctrl+C to cancel.\n`,
|
|
764
765
|
promptFuncKey: 'Select a web trigger:',
|
|
765
766
|
overViewInstallationTable: `\nGetting the web trigger URL by an app installation.\n\nPress Ctrl+C to cancel.\n`,
|
|
766
767
|
promptInstallationTable: 'Select an installation:',
|