@forge/cli-shared

9.2.0-next.99.2.0-next.8-experimental-28c9ab7
~

Modified (8 files)

Index: package/out/apps/app-config.js
===================================================================
--- package/out/apps/app-config.js
+++ package/out/apps/app-config.js
@@ -1,13 +1,15 @@
 "use strict";
 Object.defineProperty(exports, "__esModule", { value: true });
 exports.assertiveAppConfigProvider = exports.appConfigKey = exports.appConfigShape = void 0;
 exports.adjustLegacyAppId = adjustLegacyAppId;
+exports.isPersonalApp = isPersonalApp;
 const tslib_1 = require("tslib");
 const t = tslib_1.__importStar(require("io-ts"));
 const ari_1 = require("../ari");
 const config_1 = require("../config");
 const ui_1 = require("../ui");
+const graphql_1 = require("../graphql");
 exports.appConfigShape = t.type({
     id: t.string
 });
 exports.appConfigKey = 'app';
@@ -23,4 +25,7 @@
 const assertiveAppConfigProvider = (appConfigReader) => () => (0, config_1.assertive)(appConfigReader)
     .readConfigSectionOrThrow(ui_1.Text.config.missing, ui_1.Text.config.invalid)
     .then(adjustLegacyAppId);
 exports.assertiveAppConfigProvider = assertiveAppConfigProvider;
+function isPersonalApp(appFeatures) {
+    return appFeatures?.some((feature) => feature.key === graphql_1.AppFeatureKey.IsPersonalApp && feature.value) ?? false;
+}
File too large for inline diff
Index: package/package.json
===================================================================
--- package/package.json
+++ package/package.json
@@ -1,7 +1,7 @@
 {
   "name": "@forge/cli-shared",
-  "version": "9.2.0-next.9",
+  "version": "9.2.0-next.8-experimental-28c9ab7",
   "description": "Common functionality for Forge CLI",
   "author": "Atlassian",
   "license": "SEE LICENSE IN LICENSE.txt",
   "main": "out/index.js",
@@ -11,9 +11,9 @@
     "compile": "tsc -b -v",
     "generate-graphql-types": "graphql-codegen --config src/graphql/codegen.yml"
   },
   "dependencies": {
-    "@forge/manifest": "13.2.0-next.5",
+    "@forge/manifest": "13.2.0-next.4-experimental-28c9ab7",
     "@forge/util": "3.0.0",
     "@forge/i18n": "1.0.0",
     "@sentry/node": "7.106.0",
     "@vercel/detect-agent": "^1.2.3",
Index: package/out/apps/app-config.d.ts.map
===================================================================
--- package/out/apps/app-config.d.ts.map
+++ package/out/apps/app-config.d.ts.map
@@ -1,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"}
\ No newline at end of file
+{"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"}
\ No newline at end of file
File too large for inline diff
File too large for inline diff
Index: package/out/apps/app-config.d.ts
===================================================================
--- package/out/apps/app-config.d.ts
+++ package/out/apps/app-config.d.ts
@@ -1,6 +1,7 @@
 import * as t from 'io-ts';
 import { ConfigSectionReader } from '../config';
+import { AppFeature } from '../graphql';
 export declare const appConfigShape: t.TypeC<{
     id: t.StringC;
 }>;
 export type AppDetails = t.TypeOf<typeof appConfigShape>;
@@ -9,5 +10,6 @@
 export declare function adjustLegacyAppId(legacyAppDetails: AppDetails): {
     id: string;
 };
 export declare const assertiveAppConfigProvider: (appConfigReader: ConfigSectionReader<AppDetails>) => AppConfigProvider;
+export declare function isPersonalApp(appFeatures?: AppFeature[]): boolean;
 //# sourceMappingURL=app-config.d.ts.map
\ No newline at end of file
File too large for inline diff