@forge/api 6.2.1-next.1 → 6.3.0-next.2

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,11 @@
1
1
  # @forge/api
2
2
 
3
+ ## 6.3.0-next.2
4
+
5
+ ### Minor Changes
6
+
7
+ - def4ec3: add `requestTwg` helper for Teamwork Graph API
8
+
3
9
  ## 6.2.1-next.1
4
10
 
5
11
  ### Patch Changes
@@ -19,6 +19,7 @@ export declare function fetchRemote(args: ExternalAuthFetchArgs): FetchMethod;
19
19
  export declare const getForgeProxyError: (response: Response) => string | null;
20
20
  export declare const handleProxyResponseErrors: (response: Response) => void;
21
21
  export declare const wrapRequestGraph: (requestGraphApi: FetchMethod) => (query: string, variables?: any, headers?: {}) => Promise<Response>;
22
+ export declare const wrapRequestTeamworkGraph: (requestGraphApi: FetchMethod) => (query: string, variables?: any, operationName?: string, extensions?: any, headers?: {}) => Promise<Response>;
22
23
  export declare const wrapRequestConnectedData: (x: FetchMethod) => RequestProductMethod;
23
24
  export declare function getFetchAPI(): FetchAPI;
24
25
  export declare const __requestAtlassianAsApp: FetchMethod;
@@ -1 +1 @@
1
- {"version":3,"file":"fetch.d.ts","sourceRoot":"","sources":["../../src/api/fetch.ts"],"names":[],"mappings":"AACA,OAAO,EAIL,QAAQ,EACR,WAAW,EAGX,oBAAoB,EACpB,QAAQ,EACT,MAAM,IAAI,CAAC;AAIZ,oBAAY,YAAY,GAAG,KAAK,GAAG,MAAM,GAAG,MAAM,CAAC;AACnD,aAAK,SAAS,GAAG,MAAM,GAAG,YAAY,GAAG,UAAU,GAAG,WAAW,GAAG,KAAK,GAAG,IAAI,GAAG,eAAe,CAAC;AAEnG,aAAK,oBAAoB,GAAG,MAAM,CAAC;AACnC,aAAK,kBAAkB,GAAG,MAAM,CAAC;AAEjC,aAAK,SAAS,GAAG;IACf,QAAQ,EAAE,YAAY,CAAC;IACvB,MAAM,EA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,GAAG;IACf,QAAQ,EAAE,YAAY,CAAC;IACvB,MAAM,EAAE,SAAS,CAAC;IAClB,IAAI,EAAE,KAAK,GAAG,KAAK,GAAG,IAAI,GAAG,eAAe,CAAC;IAC7C,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AACF,aAAK,qBAAqB,GAAG;IAAE,QAAQ,EAAE,oBAAoB,CAAC;IAAC,MAAM,EAAE,kBAAkB,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC;AAuB7G,wBAAgB,cAAc,CAAC,IAAI,EAAE,SAAS,GAAG,WAAW,CAe3D;AAED,wBAAgB,WAAW,CAAC,IAAI,EAAE,qBAAqB,GAAG,WAAW,CAgBpE;AAyBD,eAAO,MAAM,kBAAkB,aAAc,QAAQ,kBAA8C,CAAC;AACpG,eAAO,MAAM,yBAAyB,aAAc,QAAQ,KAAG,IAa9D,CAAC;AA2GF,eAAO,MAAM,gBAAgB,oBACT,WAAW,aACrB,MAAM,cAAc,GAAG,oCAQ3B,CAAC;AAEP,eAAO,MAAM,wBAAwB,oBACjB,WAAW,aACrB,MAAM,cAAc,GAAG,kBAAkB,MAAM,eAAe,GAAG,oCAUrE,CAAC;AAEP,eAAO,MAAM,wBAAwB,EAAE,CAAC,CAAC,EAAE,WAAW,KAAK,oBAG1D,CAAC;AAEF,wBAAgB,WAAW,IAAI,QAAQ,CAgDtC;AAUD,eAAO,MAAM,uBAAuB,EAAE,WAAuC,CAAC;AAC9E,eAAO,MAAM,wBAAwB,EAAE,WAAwC,CAAC"}
package/out/api/fetch.js CHANGED
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.__requestAtlassianAsUser = exports.__requestAtlassianAsApp = exports.getFetchAPI = exports.wrapRequestConnectedData = exports.wrapRequestGraph = exports.handleProxyResponseErrors = exports.getForgeProxyError = exports.fetchRemote = exports.__fetchProduct = void 0;
3
+ exports.__requestAtlassianAsUser = exports.__requestAtlassianAsApp = exports.getFetchAPI = exports.wrapRequestConnectedData = exports.wrapRequestTeamworkGraph = exports.wrapRequestGraph = exports.handleProxyResponseErrors = exports.getForgeProxyError = exports.fetchRemote = exports.__fetchProduct = void 0;
4
4
  const safeUrl_1 = require("../safeUrl");
5
- const runtime_1 = require("./runtime");
6
5
  const errors_1 = require("./errors");
6
+ const runtime_1 = require("./runtime");
7
7
  async function wrapInMetrics(options, cb) {
8
8
  const metrics = (0, runtime_1.__getRuntime)().metrics;
9
9
  metrics.counter(options.name, options.tags).incr();
@@ -148,6 +148,17 @@ const wrapRequestGraph = (requestGraphApi) => (query, variables, headers = {}) =
148
148
  })
149
149
  });
150
150
  exports.wrapRequestGraph = wrapRequestGraph;
151
+ const wrapRequestTeamworkGraph = (requestGraphApi) => (query, variables, operationName, extensions, headers = {}) => requestGraphApi('/graphql/twg', {
152
+ method: 'POST',
153
+ headers: { ...headers, 'Content-Type': 'application/json' },
154
+ body: JSON.stringify({
155
+ query,
156
+ ...(variables ? { variables } : {}),
157
+ ...(operationName ? { operationName } : {}),
158
+ ...(extensions ? { extensions } : {})
159
+ })
160
+ });
161
+ exports.wrapRequestTeamworkGraph = wrapRequestTeamworkGraph;
151
162
  const wrapRequestConnectedData = (fetch) => (path, init) => {
152
163
  const safeUrl = (0, safeUrl_1.requireSafeUrl)(path);
153
164
  return fetch(`/connected-data/${safeUrl.value.replace(/^\/+/, '')}`, init);
@@ -169,6 +180,7 @@ function getFetchAPI() {
169
180
  requestConfluence: wrapRequestProduct(__fetchProduct({ provider: 'user', remote: 'confluence', type: 'fpp', accountId: userId })),
170
181
  requestBitbucket: wrapRequestProduct(__fetchProduct({ provider: 'user', remote: 'bitbucket', type: 'fpp', accountId: userId })),
171
182
  requestGraph: (0, exports.wrapRequestGraph)(__fetchProduct({ provider: 'user', remote: 'stargate', type: 'fpp', accountId: userId })),
183
+ requestTeamworkGraph: (0, exports.wrapRequestTeamworkGraph)(__fetchProduct({ provider: 'user', remote: 'stargate', type: 'fpp', accountId: userId })),
172
184
  requestConnectedData: (0, exports.wrapRequestConnectedData)(__fetchProduct({ provider: 'user', remote: 'stargate', type: 'fpp' })),
173
185
  requestAtlassian: wrapRequestProduct(__fetchProduct({ provider: 'user', remote: 'stargate', type: 'fpp', accountId: userId })),
174
186
  withProvider
package/out/index.d.ts CHANGED
@@ -1,9 +1,9 @@
1
- import { QueryApi, EntityStorageApi } from '@forge/storage';
2
- import { authorize } from './authorization';
3
- import { Route } from './safeUrl';
4
- import { webTrigger, WebTriggerResponse, WebTriggerRequest, WebTriggerMethod, WebTriggerContext } from './webTrigger';
1
+ import { EntityStorageApi, QueryApi } from '@forge/storage';
5
2
  import { invokeRemote, invokeService } from './api/endpoint';
6
3
  import { __fetchProduct, __requestAtlassianAsApp, __requestAtlassianAsUser } from './api/fetch';
4
+ import { authorize } from './authorization';
5
+ import { Route } from './safeUrl';
6
+ import { webTrigger, WebTriggerContext, WebTriggerMethod, WebTriggerRequest, WebTriggerResponse } from './webTrigger';
7
7
  export interface RequestInit {
8
8
  body?: ArrayBuffer | string | URLSearchParams;
9
9
  headers?: Record<string, string>;
@@ -41,6 +41,9 @@ export interface RequestProductMethods {
41
41
  export interface GraphQLFetchMethods {
42
42
  requestGraph: (query: string, variables?: any, headers?: Record<string, any>) => Promise<APIResponse>;
43
43
  }
44
+ export interface TeamworkGraphFetchMethods {
45
+ requestTeamworkGraph: (query: string, variables?: any, operationName?: string, extensions?: any, headers?: Record<string, any>) => Promise<APIResponse>;
46
+ }
44
47
  export interface ConnectedDataFetchMethods {
45
48
  requestConnectedData: RequestProductMethod;
46
49
  }
@@ -79,7 +82,7 @@ export interface ForgeStorageAPI extends StorageAPI {
79
82
  setSecret: (key: string, value: any) => Promise<void>;
80
83
  deleteSecret: (key: string) => Promise<void>;
81
84
  }
82
- declare type AsUserFetchMethods = RequestProductMethods & GraphQLFetchMethods & ConnectedDataFetchMethods & ExternalAuthFetchMethodsProvider & RequestAtlassianMethods;
85
+ declare type AsUserFetchMethods = RequestProductMethods & GraphQLFetchMethods & ConnectedDataFetchMethods & ExternalAuthFetchMethodsProvider & RequestAtlassianMethods & TeamworkGraphFetchMethods;
83
86
  declare type AsAppFetchMethods = RequestProductMethods & GraphQLFetchMethods & ConnectedDataFetchMethods & RequestAtlassianMethods;
84
87
  export interface FetchAPI extends RequestProductMethods {
85
88
  asUser(userId?: string): AsUserFetchMethods;
@@ -102,12 +105,12 @@ export declare const privacy: {
102
105
  reportPersonalData: (accounts: import("./privacy").Account[]) => Promise<import("./privacy").AccountUpdate[]>;
103
106
  };
104
107
  export default API;
105
- export { asUser, asApp, authorize, fetch, requestJira, requestConfluence, requestBitbucket, invokeRemote, invokeService, storage, webTrigger, WebTriggerRequest, WebTriggerResponse, WebTriggerMethod, WebTriggerContext, __requestAtlassianAsApp, __requestAtlassianAsUser, __fetchProduct };
108
+ export { __fetchProduct, __requestAtlassianAsApp, __requestAtlassianAsUser, asApp, asUser, authorize, fetch, invokeRemote, invokeService, requestBitbucket, requestConfluence, requestJira, storage, webTrigger, WebTriggerContext, WebTriggerMethod, WebTriggerRequest, WebTriggerResponse };
106
109
  export declare const createRequestStargateAsApp: () => FetchMethod;
107
- export { QueryBuilder, QueryApi, EntityStorageApi, Condition, ListResult, Predicate, Result, Value, WherePredicate, FilterPredicate, startsWith, WhereConditions, FilterConditions, SortOrder } from '@forge/storage';
108
- export { route, assumeTrustedRoute, routeFromAbsolute, Route } from './safeUrl';
109
- export { ForgeRuntime, AppContext, getAppContext, __getRuntime, bindInvocationContext } from './api/runtime';
110
- export { NeedsAuthenticationError, NeedsAuthenticationErrorOptions, ProxyRequestError, FetchError, ExternalEndpointNotAllowedError, ProductEndpointNotAllowedError, RequestProductNotAllowedError, NotAllowedError, InvalidWorkspaceRequestedError, HttpError, FUNCTION_ERR, isForgePlatformError, isHostedCodeError, isExpectedError } from './api/errors';
110
+ export { Condition, EntityStorageApi, FilterConditions, FilterPredicate, ListResult, Predicate, QueryApi, QueryBuilder, Result, SortOrder, startsWith, Value, WhereConditions, WherePredicate } from '@forge/storage';
111
+ export { ExternalEndpointNotAllowedError, FetchError, FUNCTION_ERR, HttpError, InvalidWorkspaceRequestedError, isExpectedError, isForgePlatformError, isHostedCodeError, NeedsAuthenticationError, NeedsAuthenticationErrorOptions, NotAllowedError, ProductEndpointNotAllowedError, ProxyRequestError, RequestProductNotAllowedError } from './api/errors';
112
+ export { __getRuntime, AppContext, bindInvocationContext, ForgeRuntime, getAppContext } from './api/runtime';
113
+ export { assumeTrustedRoute, route, Route, routeFromAbsolute } from './safeUrl';
111
114
  export { i18n, type TranslationFunction } from './api/i18n';
112
115
  export { permissions } from './api/permissions';
113
116
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAA8C,QAAQ,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAExG,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AACtH,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC7D,OAAO,EAAe,cAAc,EAAE,uBAAuB,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAC;AAK7G,MAAM,WAAW,WAAW;IAC1B,IAAI,CAAC,EAAE,WAAW,GAAG,MAAM,GAAG,eAAe,CAAC;IAC9C,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,eAAe,CAAC;IAC3B,MAAM,CAAC,EAAE,WAAW,CAAC;CACtB;AAED,MAAM,WAAW,OAAO;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AA8B,EAC9B,eAAe,EACf,oBAAoB,EACpB,iBAAiB,EACjB,wBAAwB,EACxB,+BAA+B,EAC/B,eAAe,EACf,8BAA8B,EAC9B,iBAAiB,EACjB,6BAA6B,EAC9B,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,qBAAqB,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC7G,OAAO,EAAE,kBAAkB,EAAE,KAAK,EAAE,KAAK,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAEhF,OAAO,EAAE,IAAI,EAAE,KAAK,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAE5D,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC"}
package/out/index.js CHANGED
@@ -1,12 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.permissions = exports.i18n = exports.isExpectedError = exports.isHostedCodeError = exports.isForgePlatformError = exports.FUNCTION_ERR = exports.HttpError = exports.InvalidWorkspaceRequestedError = exports.NotAllowedError = exports.RequestProductNotAllowedError = exports.ProductEndpointNotAllowedError = exports.ExternalEndpointNotAllowedError = exports.FetchError = exports.ProxyRequestError = exports.NeedsAuthenticationError = exports.bindInvocationContext = exports.__getRuntime = exports.getAppContext = exports.routeFromAbsolute = exports.assumeTrustedRoute = exports.route = exports.SortOrder = exports.FilterConditions = exports.WhereConditions = exports.startsWith = exports.createRequestStargateAsApp = exports.__fetchProduct = exports.__requestAtlassianAsUser = exports.__requestAtlassianAsApp = exports.webTrigger = exports.storage = exports.invokeService = exports.invokeRemote = exports.requestBitbucket = exports.requestConfluence = exports.requestJira = exports.fetch = exports.authorize = exports.asApp = exports.asUser = exports.privacy = void 0;
3
+ exports.permissions = exports.i18n = exports.routeFromAbsolute = exports.route = exports.assumeTrustedRoute = exports.getAppContext = exports.bindInvocationContext = exports.__getRuntime = exports.RequestProductNotAllowedError = exports.ProxyRequestError = exports.ProductEndpointNotAllowedError = exports.NotAllowedError = exports.NeedsAuthenticationError = exports.isHostedCodeError = exports.isForgePlatformError = exports.isExpectedError = exports.InvalidWorkspaceRequestedError = exports.HttpError = exports.FUNCTION_ERR = exports.FetchError = exports.ExternalEndpointNotAllowedError = exports.WhereConditions = exports.startsWith = exports.SortOrder = exports.FilterConditions = exports.createRequestStargateAsApp = exports.webTrigger = exports.storage = exports.requestJira = exports.requestConfluence = exports.requestBitbucket = exports.invokeService = exports.invokeRemote = exports.fetch = exports.authorize = exports.asUser = exports.asApp = exports.__requestAtlassianAsUser = exports.__requestAtlassianAsApp = exports.__fetchProduct = exports.privacy = void 0;
4
4
  const storage_1 = require("@forge/storage");
5
- const authorization_1 = require("./authorization");
6
- Object.defineProperty(exports, "authorize", { enumerable: true, get: function () { return authorization_1.authorize; } });
7
- const privacy_1 = require("./privacy");
8
- const webTrigger_1 = require("./webTrigger");
9
- Object.defineProperty(exports, "webTrigger", { enumerable: true, get: function () { return webTrigger_1.webTrigger; } });
10
5
  const endpoint_1 = require("./api/endpoint");
11
6
  Object.defineProperty(exports, "invokeRemote", { enumerable: true, get: function () { return endpoint_1.invokeRemote; } });
12
7
  Object.defineProperty(exports, "invokeService", { enumerable: true, get: function () { return endpoint_1.invokeService; } });
@@ -15,6 +10,11 @@ Object.defineProperty(exports, "__fetchProduct", { enumerable: true, get: functi
15
10
  Object.defineProperty(exports, "__requestAtlassianAsApp", { enumerable: true, get: function () { return fetch_1.__requestAtlassianAsApp; } });
16
11
  Object.defineProperty(exports, "__requestAtlassianAsUser", { enumerable: true, get: function () { return fetch_1.__requestAtlassianAsUser; } });
17
12
  const runtime_1 = require("./api/runtime");
13
+ const authorization_1 = require("./authorization");
14
+ Object.defineProperty(exports, "authorize", { enumerable: true, get: function () { return authorization_1.authorize; } });
15
+ const privacy_1 = require("./privacy");
16
+ const webTrigger_1 = require("./webTrigger");
17
+ Object.defineProperty(exports, "webTrigger", { enumerable: true, get: function () { return webTrigger_1.webTrigger; } });
18
18
  const fetchAPI = (0, fetch_1.getFetchAPI)();
19
19
  const asUser = fetchAPI.asUser;
20
20
  exports.asUser = asUser;
@@ -42,32 +42,32 @@ exports.default = API;
42
42
  const createRequestStargateAsApp = () => fetch_1.__requestAtlassianAsApp;
43
43
  exports.createRequestStargateAsApp = createRequestStargateAsApp;
44
44
  var storage_2 = require("@forge/storage");
45
- Object.defineProperty(exports, "startsWith", { enumerable: true, get: function () { return storage_2.startsWith; } });
46
- Object.defineProperty(exports, "WhereConditions", { enumerable: true, get: function () { return storage_2.WhereConditions; } });
47
45
  Object.defineProperty(exports, "FilterConditions", { enumerable: true, get: function () { return storage_2.FilterConditions; } });
48
46
  Object.defineProperty(exports, "SortOrder", { enumerable: true, get: function () { return storage_2.SortOrder; } });
49
- var safeUrl_1 = require("./safeUrl");
50
- Object.defineProperty(exports, "route", { enumerable: true, get: function () { return safeUrl_1.route; } });
51
- Object.defineProperty(exports, "assumeTrustedRoute", { enumerable: true, get: function () { return safeUrl_1.assumeTrustedRoute; } });
52
- Object.defineProperty(exports, "routeFromAbsolute", { enumerable: true, get: function () { return safeUrl_1.routeFromAbsolute; } });
53
- var runtime_2 = require("./api/runtime");
54
- Object.defineProperty(exports, "getAppContext", { enumerable: true, get: function () { return runtime_2.getAppContext; } });
55
- Object.defineProperty(exports, "__getRuntime", { enumerable: true, get: function () { return runtime_2.__getRuntime; } });
56
- Object.defineProperty(exports, "bindInvocationContext", { enumerable: true, get: function () { return runtime_2.bindInvocationContext; } });
47
+ Object.defineProperty(exports, "startsWith", { enumerable: true, get: function () { return storage_2.startsWith; } });
48
+ Object.defineProperty(exports, "WhereConditions", { enumerable: true, get: function () { return storage_2.WhereConditions; } });
57
49
  var errors_1 = require("./api/errors");
58
- Object.defineProperty(exports, "NeedsAuthenticationError", { enumerable: true, get: function () { return errors_1.NeedsAuthenticationError; } });
59
- Object.defineProperty(exports, "ProxyRequestError", { enumerable: true, get: function () { return errors_1.ProxyRequestError; } });
60
- Object.defineProperty(exports, "FetchError", { enumerable: true, get: function () { return errors_1.FetchError; } });
61
50
  Object.defineProperty(exports, "ExternalEndpointNotAllowedError", { enumerable: true, get: function () { return errors_1.ExternalEndpointNotAllowedError; } });
62
- Object.defineProperty(exports, "ProductEndpointNotAllowedError", { enumerable: true, get: function () { return errors_1.ProductEndpointNotAllowedError; } });
63
- Object.defineProperty(exports, "RequestProductNotAllowedError", { enumerable: true, get: function () { return errors_1.RequestProductNotAllowedError; } });
64
- Object.defineProperty(exports, "NotAllowedError", { enumerable: true, get: function () { return errors_1.NotAllowedError; } });
65
- Object.defineProperty(exports, "InvalidWorkspaceRequestedError", { enumerable: true, get: function () { return errors_1.InvalidWorkspaceRequestedError; } });
66
- Object.defineProperty(exports, "HttpError", { enumerable: true, get: function () { return errors_1.HttpError; } });
51
+ Object.defineProperty(exports, "FetchError", { enumerable: true, get: function () { return errors_1.FetchError; } });
67
52
  Object.defineProperty(exports, "FUNCTION_ERR", { enumerable: true, get: function () { return errors_1.FUNCTION_ERR; } });
53
+ Object.defineProperty(exports, "HttpError", { enumerable: true, get: function () { return errors_1.HttpError; } });
54
+ Object.defineProperty(exports, "InvalidWorkspaceRequestedError", { enumerable: true, get: function () { return errors_1.InvalidWorkspaceRequestedError; } });
55
+ Object.defineProperty(exports, "isExpectedError", { enumerable: true, get: function () { return errors_1.isExpectedError; } });
68
56
  Object.defineProperty(exports, "isForgePlatformError", { enumerable: true, get: function () { return errors_1.isForgePlatformError; } });
69
57
  Object.defineProperty(exports, "isHostedCodeError", { enumerable: true, get: function () { return errors_1.isHostedCodeError; } });
70
- Object.defineProperty(exports, "isExpectedError", { enumerable: true, get: function () { return errors_1.isExpectedError; } });
58
+ Object.defineProperty(exports, "NeedsAuthenticationError", { enumerable: true, get: function () { return errors_1.NeedsAuthenticationError; } });
59
+ Object.defineProperty(exports, "NotAllowedError", { enumerable: true, get: function () { return errors_1.NotAllowedError; } });
60
+ Object.defineProperty(exports, "ProductEndpointNotAllowedError", { enumerable: true, get: function () { return errors_1.ProductEndpointNotAllowedError; } });
61
+ Object.defineProperty(exports, "ProxyRequestError", { enumerable: true, get: function () { return errors_1.ProxyRequestError; } });
62
+ Object.defineProperty(exports, "RequestProductNotAllowedError", { enumerable: true, get: function () { return errors_1.RequestProductNotAllowedError; } });
63
+ var runtime_2 = require("./api/runtime");
64
+ Object.defineProperty(exports, "__getRuntime", { enumerable: true, get: function () { return runtime_2.__getRuntime; } });
65
+ Object.defineProperty(exports, "bindInvocationContext", { enumerable: true, get: function () { return runtime_2.bindInvocationContext; } });
66
+ Object.defineProperty(exports, "getAppContext", { enumerable: true, get: function () { return runtime_2.getAppContext; } });
67
+ var safeUrl_1 = require("./safeUrl");
68
+ Object.defineProperty(exports, "assumeTrustedRoute", { enumerable: true, get: function () { return safeUrl_1.assumeTrustedRoute; } });
69
+ Object.defineProperty(exports, "route", { enumerable: true, get: function () { return safeUrl_1.route; } });
70
+ Object.defineProperty(exports, "routeFromAbsolute", { enumerable: true, get: function () { return safeUrl_1.routeFromAbsolute; } });
71
71
  var i18n_1 = require("./api/i18n");
72
72
  Object.defineProperty(exports, "i18n", { enumerable: true, get: function () { return i18n_1.i18n; } });
73
73
  var permissions_1 = require("./api/permissions");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forge/api",
3
- "version": "6.2.1-next.1",
3
+ "version": "6.3.0-next.2",
4
4
  "description": "Forge API methods",
5
5
  "author": "Atlassian",
6
6
  "license": "SEE LICENSE IN LICENSE.txt",