@forge/cli-shared 9.2.0-next.11 → 9.2.0-next.13

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,18 @@
1
1
  # @forge/cli-shared
2
2
 
3
+ ## 9.2.0-next.13
4
+
5
+ ### Patch Changes
6
+
7
+ - 794aa2a: Skip warning for internal sites for personal apps
8
+
9
+ ## 9.2.0-next.12
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies [119be75]
14
+ - @forge/manifest@13.2.0-next.6
15
+
3
16
  ## 9.2.0-next.11
4
17
 
5
18
  ### Minor Changes
@@ -1,5 +1,6 @@
1
1
  import * as t from 'io-ts';
2
2
  import { ConfigSectionReader } from '../config';
3
+ import { AppFeature } from '../graphql';
3
4
  export declare const appConfigShape: t.TypeC<{
4
5
  id: t.StringC;
5
6
  }>;
@@ -10,4 +11,5 @@ export declare function adjustLegacyAppId(legacyAppDetails: AppDetails): {
10
11
  id: string;
11
12
  };
12
13
  export declare const assertiveAppConfigProvider: (appConfigReader: ConfigSectionReader<AppDetails>) => AppConfigProvider;
14
+ export declare function isPersonalApp(appFeatures?: AppFeature[]): boolean;
13
15
  //# sourceMappingURL=app-config.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"app-config.d.ts","sourceRoot":"","sources":["../../src/apps/app-config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;AAG3B,OAAO,EAAa,mBAAmB,EAAE,MAAM,WAAW,CAAC;AAG3D,eAAO,MAAM,cAAc;;EAEzB,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,cAAc,CAAC,CAAC;AACzD,eAAO,MAAM,YAAY,QAAQ,CAAC;AAElC,MAAM,MAAM,iBAAiB,GAAG,MAAM,OAAO,CAAC,UAAU,CAAC,CAAC;AAE1D,wBAAgB,iBAAiB,CAAC,gBAAgB,EAAE,UAAU;;EAQ7D;AAED,eAAO,MAAM,0BAA0B,GACpC,iBAAiB,mBAAmB,CAAC,UAAU,CAAC,KAAG,iBAIxB,CAAC"}
1
+ {"version":3,"file":"app-config.d.ts","sourceRoot":"","sources":["../../src/apps/app-config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,OAAO,CAAC;AAG3B,OAAO,EAAa,mBAAmB,EAAE,MAAM,WAAW,CAAC;AAE3D,OAAO,EAAE,UAAU,EAAiB,MAAM,YAAY,CAAC;AAEvD,eAAO,MAAM,cAAc;;EAEzB,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,cAAc,CAAC,CAAC;AACzD,eAAO,MAAM,YAAY,QAAQ,CAAC;AAElC,MAAM,MAAM,iBAAiB,GAAG,MAAM,OAAO,CAAC,UAAU,CAAC,CAAC;AAE1D,wBAAgB,iBAAiB,CAAC,gBAAgB,EAAE,UAAU;;EAQ7D;AAED,eAAO,MAAM,0BAA0B,GACpC,iBAAiB,mBAAmB,CAAC,UAAU,CAAC,KAAG,iBAIxB,CAAC;AAE/B,wBAAgB,aAAa,CAAC,WAAW,CAAC,EAAE,UAAU,EAAE,GAAG,OAAO,CAEjE"}
@@ -2,11 +2,13 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.assertiveAppConfigProvider = exports.appConfigKey = exports.appConfigShape = void 0;
4
4
  exports.adjustLegacyAppId = adjustLegacyAppId;
5
+ exports.isPersonalApp = isPersonalApp;
5
6
  const tslib_1 = require("tslib");
6
7
  const t = tslib_1.__importStar(require("io-ts"));
7
8
  const ari_1 = require("../ari");
8
9
  const config_1 = require("../config");
9
10
  const ui_1 = require("../ui");
11
+ const graphql_1 = require("../graphql");
10
12
  exports.appConfigShape = t.type({
11
13
  id: t.string
12
14
  });
@@ -24,3 +26,6 @@ const assertiveAppConfigProvider = (appConfigReader) => () => (0, config_1.asser
24
26
  .readConfigSectionOrThrow(ui_1.Text.config.missing, ui_1.Text.config.invalid)
25
27
  .then(adjustLegacyAppId);
26
28
  exports.assertiveAppConfigProvider = assertiveAppConfigProvider;
29
+ function isPersonalApp(appFeatures) {
30
+ return appFeatures?.some((feature) => feature.key === graphql_1.AppFeatureKey.IsPersonalApp && feature.value) ?? false;
31
+ }