@forge/cli-shared 8.22.1-next.0 → 8.23.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 +23 -0
- package/out/apps/create-an-app.d.ts +3 -1
- package/out/apps/create-an-app.d.ts.map +1 -1
- package/out/apps/create-an-app.js +3 -2
- package/out/apps/register-app.d.ts +3 -1
- package/out/apps/register-app.d.ts.map +1 -1
- package/out/apps/register-app.js +2 -1
- package/out/graphql/graphql-types.d.ts +1416 -156
- package/out/graphql/graphql-types.d.ts.map +1 -1
- package/out/graphql/graphql-types.js +181 -67
- package/out/ui/text.d.ts +10 -0
- package/out/ui/text.d.ts.map +1 -1
- package/out/ui/text.js +10 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# @forge/cli-shared
|
|
2
2
|
|
|
3
|
+
## 8.23.0-next.2
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 808adbd: Grouped commands in CLI help and commander.js version bump
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [55991a3]
|
|
12
|
+
- @forge/manifest@12.8.0-next.2
|
|
13
|
+
|
|
14
|
+
## 8.22.1-next.1
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- 2c85db9: Add option to create global app
|
|
19
|
+
- Updated dependencies [0e45239]
|
|
20
|
+
- Updated dependencies [2e44a71]
|
|
21
|
+
- Updated dependencies [c775d3d]
|
|
22
|
+
- Updated dependencies [c99451e]
|
|
23
|
+
- Updated dependencies [f80e7b3]
|
|
24
|
+
- @forge/manifest@12.8.0-next.1
|
|
25
|
+
|
|
3
26
|
## 8.22.1-next.0
|
|
4
27
|
|
|
5
28
|
### Patch Changes
|
|
@@ -2,10 +2,12 @@ import { CreateAppClientInput, RegisterAppCommand, RegisterAppResult } from './r
|
|
|
2
2
|
import { Templater } from './template';
|
|
3
3
|
import { PackageInstaller } from './package-installer';
|
|
4
4
|
import { StatsigService } from '../service';
|
|
5
|
+
import { InstallationTarget } from '../graphql';
|
|
5
6
|
export interface CreateAppCommandInput extends CreateAppClientInput {
|
|
6
7
|
template: string;
|
|
7
8
|
directory: string;
|
|
8
9
|
requiredProduct?: string;
|
|
10
|
+
installationTarget?: InstallationTarget;
|
|
9
11
|
}
|
|
10
12
|
export declare class NoTemplatesError extends Error {
|
|
11
13
|
constructor();
|
|
@@ -21,7 +23,7 @@ export declare class CreateAppCommand {
|
|
|
21
23
|
private readonly packageInstaller;
|
|
22
24
|
private readonly statsig;
|
|
23
25
|
constructor(templater: Templater, registerAppCommand: RegisterAppCommand, packageInstaller: PackageInstaller, statsig: StatsigService);
|
|
24
|
-
execute({ name, description, template, directory, requiredProduct, developerSpaceId, billingConsent }: CreateAppCommandInput): Promise<CreateAppCommandResult>;
|
|
26
|
+
execute({ name, description, template, directory, requiredProduct, installationTarget, developerSpaceId, billingConsent }: CreateAppCommandInput): Promise<CreateAppCommandResult>;
|
|
25
27
|
getAvailableTemplates(): Promise<string[]>;
|
|
26
28
|
filterAvailableProducts<T extends string>(products: T[], teamworkGraph: T, crossContext: T): Promise<T[]>;
|
|
27
29
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-an-app.d.ts","sourceRoot":"","sources":["../../src/apps/create-an-app.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAC7F,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"create-an-app.d.ts","sourceRoot":"","sources":["../../src/apps/create-an-app.ts"],"names":[],"mappings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YAAY,EAAE,CAAC,GACd,OAAO,CAAC,CAAC,EAAE,CAAC;CAchB"}
|
|
@@ -19,11 +19,12 @@ class CreateAppCommand {
|
|
|
19
19
|
this.packageInstaller = packageInstaller;
|
|
20
20
|
this.statsig = statsig;
|
|
21
21
|
}
|
|
22
|
-
async execute({ name, description, template, directory, requiredProduct, developerSpaceId, billingConsent }) {
|
|
22
|
+
async execute({ name, description, template, directory, requiredProduct, installationTarget, developerSpaceId, billingConsent }) {
|
|
23
23
|
await this.templater.downloadAndExtract(template, directory);
|
|
24
24
|
const result = await this.registerAppCommand.registerApp({ name, description, developerSpaceId, billingConsent }, directory, {
|
|
25
25
|
shouldPrependAppName: true,
|
|
26
|
-
requiredProduct
|
|
26
|
+
requiredProduct,
|
|
27
|
+
installationTarget
|
|
27
28
|
});
|
|
28
29
|
await this.packageInstaller.install(directory);
|
|
29
30
|
return {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ConfigFile, ConfigSectionReader, ConfigSectionWriter, NO_VALIDATION_TYPE } from '../config';
|
|
2
|
+
import { InstallationTarget } from '../graphql';
|
|
2
3
|
import { Logger } from '../ui';
|
|
3
4
|
import { AppDetails } from './app-config';
|
|
4
5
|
export interface CreateAppClientInput {
|
|
@@ -33,9 +34,10 @@ export declare class RegisterAppCommand {
|
|
|
33
34
|
execute(input: CreateAppClientInput, { shouldPrependAppName }?: {
|
|
34
35
|
shouldPrependAppName?: boolean | undefined;
|
|
35
36
|
}): Promise<RegisterAppResult>;
|
|
36
|
-
registerApp(input: CreateAppClientInput, directory: string, { shouldPrependAppName, requiredProduct }: {
|
|
37
|
+
registerApp(input: CreateAppClientInput, directory: string, { shouldPrependAppName, requiredProduct, installationTarget }: {
|
|
37
38
|
shouldPrependAppName: boolean;
|
|
38
39
|
requiredProduct?: string;
|
|
40
|
+
installationTarget?: InstallationTarget;
|
|
39
41
|
}): Promise<CreateAppResult>;
|
|
40
42
|
}
|
|
41
43
|
//# sourceMappingURL=register-app.d.ts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,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,UAAU;gBAJV,SAAS,EAAE,eAAe,EAC1B,eAAe,EAAE,mBAAmB,CAAC,kBAAkB,CAAC,EACxD,eAAe,EAAE,mBAAmB,CAAC,UAAU,CAAC,EAChD,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,UAAU;IAG5B,OAAO,CAAC,KAAK,EAAE,oBAAoB,EAAE,EAAE,oBAA4B,EAAE;;KAAK,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAQvG,WAAW,CACtB,KAAK,EAAE,oBAAoB,EAC3B,SAAS,EAAE,MAAM,EACjB,EACE,oBAAoB,EACpB,eAAe,EACf,kBAAkB,EACnB,EAAE;QACD,oBAAoB,EAAE,OAAO,CAAC;QAC9B,eAAe,CAAC,EAAE,MAAM,CAAC;QACzB,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;KACzC,GACA,OAAO,CAAC,eAAe,CAAC;CAwC5B"}
|
package/out/apps/register-app.js
CHANGED
|
@@ -24,7 +24,7 @@ class RegisterAppCommand {
|
|
|
24
24
|
environments: result.environments.map((env) => env.key)
|
|
25
25
|
};
|
|
26
26
|
}
|
|
27
|
-
async registerApp(input, directory, { shouldPrependAppName, requiredProduct }) {
|
|
27
|
+
async registerApp(input, directory, { shouldPrependAppName, requiredProduct, installationTarget }) {
|
|
28
28
|
this.logger.info(ui_1.Text.create.taskRegister);
|
|
29
29
|
const result = await this.appClient.createApp(input);
|
|
30
30
|
await (0, file_system_1.inDirectory)(directory, async () => {
|
|
@@ -38,6 +38,7 @@ class RegisterAppCommand {
|
|
|
38
38
|
const section = await this.appConfigReader.readConfigSection();
|
|
39
39
|
let newAppDetails = {
|
|
40
40
|
id: result.id,
|
|
41
|
+
...(installationTarget && { installationTarget }),
|
|
41
42
|
...(requiredProduct && {
|
|
42
43
|
compatibility: {
|
|
43
44
|
[requiredProduct]: {
|