@forge/cli-shared 8.0.1-next.2 → 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 CHANGED
@@ -1,5 +1,27 @@
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
+
18
+ ## 8.0.1-next.3
19
+
20
+ ### Patch Changes
21
+
22
+ - Updated dependencies [1479d2d]
23
+ - @forge/manifest@10.0.1-next.3
24
+
3
25
  ## 8.0.1-next.2
4
26
 
5
27
  ### 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;A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,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,CAAC,MAAM,EAAE,CAAC;IAS1C,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
  }
@@ -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.us-west-2.prod.public.atl-paas.net/';
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) {