@forge/cli-shared 8.0.1-next.3 → 8.0.1-next.3-experimental-4048b4a
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 +15 -0
- package/out/apps/create-an-app.d.ts +1 -1
- package/out/apps/create-an-app.d.ts.map +1 -1
- package/out/apps/create-an-app.js +4 -1
- package/out/apps/template.js +1 -1
- package/out/graphql/graphql-types.d.ts +11 -0
- package/out/graphql/graphql-types.d.ts.map +1 -1
- package/out/service/statsig-service.d.ts +2 -1
- package/out/service/statsig-service.d.ts.map +1 -1
- package/out/service/statsig-service.js +3 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @forge/cli-shared
|
|
2
2
|
|
|
3
|
+
## 8.0.1-next.3-experimental-4048b4a
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 4048b4a: Added support for Dashboards context for app creation
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- 25a3da2: Update attribution header
|
|
12
|
+
- Updated dependencies [4b15e26]
|
|
13
|
+
- Updated dependencies [b9574d4]
|
|
14
|
+
- Updated dependencies [1479d2d]
|
|
15
|
+
- Updated dependencies [5ab2c49]
|
|
16
|
+
- @forge/manifest@10.0.1-next.3-experimental-4048b4a
|
|
17
|
+
|
|
3
18
|
## 8.0.1-next.3
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -23,6 +23,6 @@ export declare class CreateAppCommand {
|
|
|
23
23
|
constructor(templater: Templater, registerAppCommand: RegisterAppCommand, packageInstaller: PackageInstaller, statsig: StatsigService);
|
|
24
24
|
execute({ name, description, template, directory, requiredProduct }: CreateAppCommandInput): Promise<CreateAppCommandResult>;
|
|
25
25
|
getAvailableTemplates(): Promise<string[]>;
|
|
26
|
-
filterAvailableProducts<T extends string>(products: T[], teamworkGraph: T, crossContext: T): Promise<T[]>;
|
|
26
|
+
filterAvailableProducts<T extends string>(products: T[], teamworkGraph: T, crossContext: T, dashboards: T): Promise<T[]>;
|
|
27
27
|
}
|
|
28
28
|
//# sourceMappingURL=create-an-app.d.ts.map
|
|
@@ -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;AAE5C,MAAM,WAAW,qBAAsB,SAAQ,oBAAoB;IACjE,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,qBAAa,gBAAiB,SAAQ,KAAK;;CAI1C;AAED,oBAAY,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,EAChB,EAAE,qBAAqB,GAAG,OAAO,CAAC,sBAAsB,CAAC;IAa7C,qBAAqB,IAAI,OAAO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AS1C,uBAAuB,CAAC,CAAC,SAAS,MAAM,EACnD,QAAQ,EAAE,CAAC,EAAE,EACb,aAAa,EAAE,CAAC,EAChB,YAAY,EAAE,CAAC,EACf,UAAU,EAAE,CAAC,GACZ,OAAO,CAAC,CAAC,EAAE,CAAC;CAkBhB"}
|
|
@@ -38,15 +38,18 @@ class CreateAppCommand {
|
|
|
38
38
|
}
|
|
39
39
|
return availableTemplates;
|
|
40
40
|
}
|
|
41
|
-
async filterAvailableProducts(products, teamworkGraph, crossContext) {
|
|
41
|
+
async filterAvailableProducts(products, teamworkGraph, crossContext, dashboards) {
|
|
42
42
|
const useTeamworkGraph = await this.statsig.isTeamworkGraphProductSupported();
|
|
43
43
|
const useCrossProduct = await this.statsig.enableCrossProductAppInstallation();
|
|
44
|
+
const useDashboards = await this.statsig.isDashboardsContextSupported();
|
|
44
45
|
return products.filter((product) => {
|
|
45
46
|
switch (product) {
|
|
46
47
|
case teamworkGraph:
|
|
47
48
|
return useTeamworkGraph;
|
|
48
49
|
case crossContext:
|
|
49
50
|
return useCrossProduct;
|
|
51
|
+
case dashboards:
|
|
52
|
+
return useDashboards;
|
|
50
53
|
default:
|
|
51
54
|
return true;
|
|
52
55
|
}
|
package/out/apps/template.js
CHANGED
|
@@ -10,7 +10,7 @@ const tmp_1 = tslib_1.__importDefault(require("tmp"));
|
|
|
10
10
|
const url_1 = require("url");
|
|
11
11
|
const error_handling_1 = require("../shared/error-handling");
|
|
12
12
|
const ui_1 = require("../ui");
|
|
13
|
-
const TEMPLATE_SERVICE_URL = 'https://forge-templates.
|
|
13
|
+
const TEMPLATE_SERVICE_URL = 'https://forge-templates.ap-southeast-2.dev.public.atl-paas.net';
|
|
14
14
|
const TEMPLATE_MAP = 'templates.json';
|
|
15
15
|
class NoTemplateError extends error_handling_1.UserError {
|
|
16
16
|
constructor(template) {
|
|
@@ -62270,6 +62270,10 @@ export declare type JiraFieldSchemeAssociatedFieldsInput = {
|
|
|
62270
62270
|
nameOrDescriptionFilter?: InputMaybe<Scalars['String']['input']>;
|
|
62271
62271
|
schemeId: Scalars['ID']['input'];
|
|
62272
62272
|
};
|
|
62273
|
+
export declare type JiraFieldSchemeAvailableFieldsInput = {
|
|
62274
|
+
nameFilter?: InputMaybe<Scalars['String']['input']>;
|
|
62275
|
+
schemeId: Scalars['ID']['input'];
|
|
62276
|
+
};
|
|
62273
62277
|
export declare type JiraFieldSchemePayload = Payload & {
|
|
62274
62278
|
__typename?: 'JiraFieldSchemePayload';
|
|
62275
62279
|
errors?: Maybe<Array<MutationError>>;
|
|
@@ -89876,6 +89880,7 @@ export declare type Query = {
|
|
|
89876
89880
|
jira_categoryField?: Maybe<JiraJqlField>;
|
|
89877
89881
|
jira_creatableGlobalCustomFieldTypes?: Maybe<JiraCustomFieldTypeConnection>;
|
|
89878
89882
|
jira_fieldSchemeAssociatedFields?: Maybe<JiraFieldSchemeAssociatedFieldsConnection>;
|
|
89883
|
+
jira_fieldSchemeAvailableFields?: Maybe<JiraFieldConnection>;
|
|
89879
89884
|
jira_fieldSchemes?: Maybe<JiraFieldConfigSchemesConnection>;
|
|
89880
89885
|
jira_isRovoLLMEnabled?: Maybe<Scalars['Boolean']['output']>;
|
|
89881
89886
|
jira_issueSearchViewsByIds?: Maybe<Array<Maybe<JiraIssueSearchView>>>;
|
|
@@ -92222,6 +92227,12 @@ export declare type QueryJira_FieldSchemeAssociatedFieldsArgs = {
|
|
|
92222
92227
|
first?: InputMaybe<Scalars['Int']['input']>;
|
|
92223
92228
|
input?: InputMaybe<JiraFieldSchemeAssociatedFieldsInput>;
|
|
92224
92229
|
};
|
|
92230
|
+
export declare type QueryJira_FieldSchemeAvailableFieldsArgs = {
|
|
92231
|
+
after?: InputMaybe<Scalars['String']['input']>;
|
|
92232
|
+
cloudId: Scalars['ID']['input'];
|
|
92233
|
+
first?: InputMaybe<Scalars['Int']['input']>;
|
|
92234
|
+
input?: InputMaybe<JiraFieldSchemeAvailableFieldsInput>;
|
|
92235
|
+
};
|
|
92225
92236
|
export declare type QueryJira_FieldSchemesArgs = {
|
|
92226
92237
|
after?: InputMaybe<Scalars['String']['input']>;
|
|
92227
92238
|
cloudId: Scalars['ID']['input'];
|