@forge/cli-shared 9.2.0-next.6 → 9.2.0-next.7
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 +12 -0
- package/out/apps/create-an-app.d.ts +4 -4
- package/out/apps/create-an-app.d.ts.map +1 -1
- package/out/apps/create-an-app.js +8 -2
- package/out/apps/register-app.d.ts +2 -1
- package/out/apps/register-app.d.ts.map +1 -1
- package/out/graphql/graphql-types.d.ts +358 -10
- package/out/graphql/graphql-types.d.ts.map +1 -1
- package/out/graphql/graphql-types.js +92 -48
- package/out/ui/text.d.ts +4 -1
- package/out/ui/text.d.ts.map +1 -1
- package/out/ui/text.js +7 -4
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @forge/cli-shared
|
|
2
2
|
|
|
3
|
+
## 9.2.0-next.7
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 8826ca3: add personal apps support for Forge app creation
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [8826ca3]
|
|
12
|
+
- Updated dependencies [c67b720]
|
|
13
|
+
- @forge/manifest@13.2.0-next.3
|
|
14
|
+
|
|
3
15
|
## 9.2.0-next.6
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { InstallationTarget } from '../graphql';
|
|
2
|
+
import { StatsigService } from '../service';
|
|
3
|
+
import { PackageInstaller } from './package-installer';
|
|
1
4
|
import { CreateAppClientInput, RegisterAppCommand, RegisterAppResult } from './register-app';
|
|
2
5
|
import { Templater } from './template';
|
|
3
|
-
import { PackageInstaller } from './package-installer';
|
|
4
|
-
import { StatsigService } from '../service';
|
|
5
|
-
import { InstallationTarget } from '../graphql';
|
|
6
6
|
export interface CreateAppCommandInput extends CreateAppClientInput {
|
|
7
7
|
template: string;
|
|
8
8
|
directory: string;
|
|
@@ -23,7 +23,7 @@ export declare class CreateAppCommand {
|
|
|
23
23
|
private readonly packageInstaller;
|
|
24
24
|
private readonly statsig;
|
|
25
25
|
constructor(templater: Templater, registerAppCommand: RegisterAppCommand, packageInstaller: PackageInstaller, statsig: StatsigService);
|
|
26
|
-
execute({ name, description, template, directory, requiredProduct, installationTarget, developerSpaceId, billingConsent }: CreateAppCommandInput): Promise<CreateAppCommandResult>;
|
|
26
|
+
execute({ name, description, template, directory, requiredProduct, installationTarget, developerSpaceId, billingConsent, appFeatures }: CreateAppCommandInput): Promise<CreateAppCommandResult>;
|
|
27
27
|
getAvailableTemplates(): Promise<string[]>;
|
|
28
28
|
filterAvailableProducts<T extends string>(products: T[], teamworkGraph: T, crossContext: T): Promise<T[]>;
|
|
29
29
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-an-app.d.ts","sourceRoot":"","sources":["../../src/apps/create-an-app.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-an-app.d.ts","sourceRoot":"","sources":["../../src/apps/create-an-app.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAE5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAC7F,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,MAAM,WAAW,qBAAsB,SAAQ,oBAAoB;IACjE,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;CACzC;AAED,qBAAa,gBAAiB,SAAQ,KAAK;;CAI1C;AAED,MAAM,MAAM,sBAAsB,GAAG,iBAAiB,GAAG;IACvD,SAAS,EAAE;QACT,QAAQ,EAAE,MAAM,CAAC;KAClB,CAAC;CACH,CAAC;AAEF,qBAAa,gBAAgB;IAEzB,OAAO,CAAC,QAAQ,CAAC,SAAS;IAC1B,OAAO,CAAC,QAAQ,CAAC,kBAAkB;IACnC,OAAO,CAAC,QAAQ,CAAC,gBAAgB;IACjC,OAAO,CAAC,QAAQ,CAAC,OAAO;gBAHP,SAAS,EAAE,SAAS,EACpB,kBAAkB,EAAE,kBAAkB,EACtC,gBAAgB,EAAE,gBAAgB,EAClC,OAAO,EAAE,cAAc;IAG7B,OAAO,CAAC,EACnB,IAAI,EACJ,WAAW,EACX,QAAQ,EACR,SAAS,EACT,eAAe,EACf,kBAAkB,EAClB,gBAAgB,EAChB,cAAc,EACd,WAAW,EACZ,EAAE,qBAAqB,GAAG,OAAO,CAAC,sBAAsB,CAAC;IAwB7C,qBAAqB,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC;IAS1C,uBAAuB,CAAC,CAAC,SAAS,MAAM,EACnD,QAAQ,EAAE,CAAC,EAAE,EACb,aAAa,EAAE,CAAC,EAChB,YAAY,EAAE,CAAC,GACd,OAAO,CAAC,CAAC,EAAE,CAAC;CAchB"}
|
|
@@ -19,9 +19,15 @@ class CreateAppCommand {
|
|
|
19
19
|
this.packageInstaller = packageInstaller;
|
|
20
20
|
this.statsig = statsig;
|
|
21
21
|
}
|
|
22
|
-
async execute({ name, description, template, directory, requiredProduct, installationTarget, developerSpaceId, billingConsent }) {
|
|
22
|
+
async execute({ name, description, template, directory, requiredProduct, installationTarget, developerSpaceId, billingConsent, appFeatures }) {
|
|
23
23
|
await this.templater.downloadAndExtract(template, directory);
|
|
24
|
-
const result = await this.registerAppCommand.registerApp({
|
|
24
|
+
const result = await this.registerAppCommand.registerApp({
|
|
25
|
+
name,
|
|
26
|
+
description,
|
|
27
|
+
developerSpaceId,
|
|
28
|
+
billingConsent,
|
|
29
|
+
...(appFeatures && { appFeatures })
|
|
30
|
+
}, directory, {
|
|
25
31
|
shouldPrependAppName: true,
|
|
26
32
|
requiredProduct,
|
|
27
33
|
installationTarget
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ConfigFile, ConfigSectionReader, ConfigSectionWriter, NO_VALIDATION_TYPE } from '../config';
|
|
2
|
-
import { InstallationTarget } from '../graphql';
|
|
2
|
+
import { CreateAppInput, InstallationTarget } from '../graphql';
|
|
3
3
|
import { Logger } from '../ui';
|
|
4
4
|
import { AppDetails } from './app-config';
|
|
5
5
|
export interface CreateAppClientInput {
|
|
@@ -7,6 +7,7 @@ export interface CreateAppClientInput {
|
|
|
7
7
|
description?: string;
|
|
8
8
|
developerSpaceId?: string;
|
|
9
9
|
billingConsent?: boolean;
|
|
10
|
+
appFeatures?: CreateAppInput['appFeatures'];
|
|
10
11
|
}
|
|
11
12
|
export interface CreateAppResult {
|
|
12
13
|
id: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"register-app.d.ts","sourceRoot":"","sources":["../../src/apps/register-app.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,mBAAmB,EAAE,mBAAmB,EAAqB,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAExH,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"register-app.d.ts","sourceRoot":"","sources":["../../src/apps/register-app.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,mBAAmB,EAAE,mBAAmB,EAAqB,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAExH,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAChE,OAAO,EAAE,MAAM,EAAQ,MAAM,OAAO,CAAC;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CA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