@forge/cli-shared

9.8.0-next.9-experimental-e03cc859.8.0-next.10
~

Modified (11 files)

Index: package/out/graphql/gateway.js
===================================================================
--- package/out/graphql/gateway.js
+++ package/out/graphql/gateway.js
@@ -1,12 +1,21 @@
 "use strict";
 Object.defineProperty(exports, "__esModule", { value: true });
-exports.isFedrampEnv = exports.getEnvironmentConfig = exports.CDNEnvironments = exports.Environments = exports.getGraphqlGateway = exports.DEFAULT_GRAPHQL_GATEWAY = void 0;
+exports.isFedrampEnv = exports.getEnvironmentConfig = exports.CDNEnvironments = exports.Environments = exports.isPathBasedRoutingEnabled = exports.isBluebirdEnabled = exports.STAGING_PRIVATE_GRAPHQL_GATEWAY = exports.getGraphqlGateway = exports.DEFAULT_GRAPHQL_GATEWAY = void 0;
 exports.DEFAULT_GRAPHQL_GATEWAY = 'https://api.atlassian.com/graphql';
 const getGraphqlGateway = () => {
     return process.env.FORGE_GRAPHQL_GATEWAY || exports.DEFAULT_GRAPHQL_GATEWAY;
 };
 exports.getGraphqlGateway = getGraphqlGateway;
+exports.STAGING_PRIVATE_GRAPHQL_GATEWAY = 'https://api-private.stg.atlassian.com/graphql';
+const isBluebirdEnabled = () => {
+    return (process.env.FORGE_BLUEBIRD_ENABLED ?? '').trim().toLowerCase() === 'true';
+};
+exports.isBluebirdEnabled = isBluebirdEnabled;
+const isPathBasedRoutingEnabled = () => {
+    return (0, exports.getGraphqlGateway)().trim() === exports.STAGING_PRIVATE_GRAPHQL_GATEWAY && (0, exports.isBluebirdEnabled)();
+};
+exports.isPathBasedRoutingEnabled = isPathBasedRoutingEnabled;
 var Environments;
 (function (Environments) {
     Environments["DEV"] = "dev";
     Environments["STG"] = "staging";
Index: package/out/graphql/index.js
===================================================================
--- package/out/graphql/index.js
+++ package/out/graphql/index.js
@@ -6,8 +6,9 @@
 Object.defineProperty(exports, "graphql", { enumerable: true, get: function () { return gql_1.graphql; } });
 tslib_1.__exportStar(require("./app-environment-graphql-client"), exports);
 tslib_1.__exportStar(require("./debugging-graphql-runner"), exports);
 tslib_1.__exportStar(require("./gateway"), exports);
+tslib_1.__exportStar(require("./path-based-graphql-client-resolver"), exports);
 tslib_1.__exportStar(require("./graphql-client"), exports);
 tslib_1.__exportStar(require("./graphql-runtime-enums"), exports);
 tslib_1.__exportStar(require("./graphql-domain-types"), exports);
 tslib_1.__exportStar(require("./minimal-graphql-runner"), exports);
Index: package/package.json
===================================================================
--- package/package.json
+++ package/package.json
@@ -1,7 +1,7 @@
 {
   "name": "@forge/cli-shared",
-  "version": "9.8.0-next.9-experimental-e03cc85",
+  "version": "9.8.0-next.10",
   "description": "Common functionality for Forge CLI",
   "author": "Atlassian",
   "license": "SEE LICENSE IN LICENSE.txt",
   "main": "out/index.js",
@@ -12,9 +12,9 @@
     "generate-graphql-types": "yarn --cwd ../.. generate-graphql-types",
     "prebuild": "yarn generate-graphql-types"
   },
   "dependencies": {
-    "@forge/manifest": "13.7.0-next.6-experimental-e03cc85",
+    "@forge/manifest": "13.7.0-next.6",
     "@forge/util": "3.0.0",
     "@forge/i18n": "1.0.0",
     "@sentry/node": "7.106.0",
     "@vercel/detect-agent": "^1.2.3",
Index: package/out/graphql/gateway.d.ts.map
===================================================================
--- package/out/graphql/gateway.d.ts.map
+++ package/out/graphql/gateway.d.ts.map
@@ -1,1 +1,1 @@
-{"version":3,"file":"gateway.d.ts","sourceRoot":"","sources":["../../src/graphql/gateway.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,uBAAuB,sCAAsC,CAAC;AAE3E,eAAO,MAAM,iBAAiB,QAAO,MAEpC,CAAC;AAEF,oBAAY,YAAY;IACtB,GAAG,QAAQ;IACX,GAAG,YAAY;IACf,IAAI,SAAS;IACb,wBAAwB,iBAAiB;IACzC,qBAAqB,cAAc;CACpC;AAED,MAAM,MAAM,kBAAkB,GAAG,MAAM,CAAC,MAAM,OAAO,YAAY,EAAE,MAAM,CAAC,CAAC;AAE3E,oBAAY,eAAe;IACzB,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,IAAI,SAAS;IACb,wBAAwB,iBAAiB;IACzC,qBAAqB,cAAc;CACpC;AAED,eAAO,MAAM,oBAAoB,GAAI,aAAY,kBAAiC,KAAG,MAgBpF,CAAC;AAEF,eAAO,MAAM,YAAY,QAAO,OAM/B,CAAC"}
\ No newline at end of file
+{"version":3,"file":"gateway.d.ts","sourceRoot":"","sources":["../../src/graphql/gateway.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,uBAAuB,sCAAsC,CAAC;AAE3E,eAAO,MAAM,iBAAiB,QAAO,MAEpC,CAAC;AAEF,eAAO,MAAM,+BAA+B,kDAAkD,CAAC;AAE/F,eAAO,MAAM,iBAAiB,QAAO,OAEpC,CAAC;AAQF,eAAO,MAAM,yBAAyB,QAAO,OAE5C,CAAC;AAEF,oBAAY,YAAY;IACtB,GAAG,QAAQ;IACX,GAAG,YAAY;IACf,IAAI,SAAS;IACb,wBAAwB,iBAAiB;IACzC,qBAAqB,cAAc;CACpC;AAED,MAAM,MAAM,kBAAkB,GAAG,MAAM,CAAC,MAAM,OAAO,YAAY,EAAE,MAAM,CAAC,CAAC;AAE3E,oBAAY,eAAe;IACzB,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,IAAI,SAAS;IACb,wBAAwB,iBAAiB;IACzC,qBAAqB,cAAc;CACpC;AAED,eAAO,MAAM,oBAAoB,GAAI,aAAY,kBAAiC,KAAG,MAgBpF,CAAC;AAEF,eAAO,MAAM,YAAY,QAAO,OAM/B,CAAC"}
\ No newline at end of file
Index: package/out/apps/get-app-owner.d.ts.map
===================================================================
--- package/out/apps/get-app-owner.d.ts.map
+++ package/out/apps/get-app-owner.d.ts.map
@@ -1,1 +1,1 @@
-{"version":3,"file":"get-app-owner.d.ts","sourceRoot":"","sources":["../../src/apps/get-app-owner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAA4B,MAAM,YAAY,CAAC;AAErE,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEjD,qBAAa,oBAAqB,SAAQ,KAAK;;CAI9C;AAED,eAAO,MAAM,aAAa;QAuCq83vG,8CAAc;GA9B3+3vG,CAAC;AAEH,qBAAa,gBAAgB;IAEzB,OAAO,CAAC,QAAQ,CAAC,aAAa;IAC9B,OAAO,CAAC,QAAQ,CAAC,YAAY;gBADZ,aAAa,EAAE,aAAa,EAC5B,YAAY,EAAE,iBAAiB;IAGrC,OAAO;;;;;;;;;;;;;YAMN,WAAW;CAe1B"}
\ No newline at end of file
+{"version":3,"file":"get-app-owner.d.ts","sourceRoot":"","sources":["../../src/apps/get-app-owner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAA4B,MAAM,YAAY,CAAC;AAErE,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEjD,qBAAa,oBAAqB,SAAQ,KAAK;;CAI9C;AAED,eAAO,MAAM,aAAa;QAuCin+vG,8CAAc;GA9Bvp+vG,CAAC;AAEH,qBAAa,gBAAgB;IAEzB,OAAO,CAAC,QAAQ,CAAC,aAAa;IAC9B,OAAO,CAAC,QAAQ,CAAC,YAAY;gBADZ,aAAa,EAAE,aAAa,EAC5B,YAAY,EAAE,iBAAiB;IAGrC,OAAO;;;;;;;;;;;;;YAMN,WAAW;CAe1B"}
\ No newline at end of file
File too large for inline diff
Index: package/out/graphql/index.d.ts.map
===================================================================
--- package/out/graphql/index.d.ts.map
+++ package/out/graphql/index.d.ts.map
@@ -1,1 +1,1 @@
-{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/graphql/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,cAAc,kCAAkC,CAAC;AACjD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,WAAW,CAAC;AAC1B,cAAc,kBAAkB,CAAC;AACjC,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,iCAAiC,CAAC;AAChD,cAAc,sBAAsB,CAAC;AACrC,cAAc,sCAAsC,CAAC"}
\ No newline at end of file
+{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/graphql/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,cAAc,kCAAkC,CAAC;AACjD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,WAAW,CAAC;AAC1B,cAAc,sCAAsC,CAAC;AACrD,cAAc,kBAAkB,CAAC;AACjC,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,iCAAiC,CAAC;AAChD,cAAc,sBAAsB,CAAC;AACrC,cAAc,sCAAsC,CAAC"}
\ No newline at end of file
File too large for inline diff
Index: package/out/graphql/gateway.d.ts
===================================================================
--- package/out/graphql/gateway.d.ts
+++ package/out/graphql/gateway.d.ts
@@ -1,6 +1,9 @@
 export declare const DEFAULT_GRAPHQL_GATEWAY = "https://api.atlassian.com/graphql";
 export declare const getGraphqlGateway: () => string;
+export declare const STAGING_PRIVATE_GRAPHQL_GATEWAY = "https://api-private.stg.atlassian.com/graphql";
+export declare const isBluebirdEnabled: () => boolean;
+export declare const isPathBasedRoutingEnabled: () => boolean;
 export declare enum Environments {
     DEV = "dev",
     STG = "staging",
     PROD = "prod",
File too large for inline diff
Index: package/out/graphql/index.d.ts
===================================================================
--- package/out/graphql/index.d.ts
+++ package/out/graphql/index.d.ts
@@ -1,8 +1,9 @@
 export { graphql } from './gql/gql';
 export * from './app-environment-graphql-client';
 export * from './debugging-graphql-runner';
 export * from './gateway';
+export * from './path-based-graphql-client-resolver';
 export * from './graphql-client';
 export * from './graphql-runtime-enums';
 export * from './graphql-domain-types';
 export * from './minimal-graphql-runner';