@forge/api 2.23.0-next.0 → 3.0.0-experimental-6adbba3
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 +102 -0
- package/out/api/ari.d.ts +17 -0
- package/out/api/ari.d.ts.map +1 -0
- package/out/api/ari.js +24 -0
- package/out/api/fetch.d.ts +3 -3
- package/out/api/fetch.d.ts.map +1 -1
- package/out/api/index.d.ts +1 -1
- package/out/api/index.d.ts.map +1 -1
- package/out/api/runtime.d.ts +18 -4
- package/out/api/runtime.d.ts.map +1 -1
- package/out/api/runtime.js +18 -4
- package/out/authorization/index.js +1 -1
- package/out/index.d.ts +10 -9
- package/out/index.d.ts.map +1 -1
- package/out/index.js +3 -2
- package/out/privacy/index.d.ts +2 -2
- package/out/privacy/index.d.ts.map +1 -1
- package/out/runtime/fetch-and-storage.d.ts.map +1 -1
- package/out/runtime/fetch-and-storage.js +1 -2
- package/out/safeUrl.d.ts +1 -1
- package/out/safeUrl.d.ts.map +1 -1
- package/out/webTrigger.js +2 -2
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,107 @@
|
|
|
1
1
|
# @forge/api
|
|
2
2
|
|
|
3
|
+
## 3.0.0-experimental-6adbba3
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 6a6312e: feat: introduces bulkSet operation
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [6a6312e]
|
|
12
|
+
- @forge/storage@1.5.14-experimental-6adbba3
|
|
13
|
+
|
|
14
|
+
## 3.0.0
|
|
15
|
+
|
|
16
|
+
### Major Changes
|
|
17
|
+
|
|
18
|
+
- b3245a7: - Add environmentType, invocationId, installationId in runtime V2 context
|
|
19
|
+
- Rename getRuntime to \_\_getRuntime in @forge/api
|
|
20
|
+
- Add new method getAppContext in @forge/api to retrieve app context data
|
|
21
|
+
- Replace @atlassian/cs-ari package with @atlassian/ari
|
|
22
|
+
|
|
23
|
+
### Minor Changes
|
|
24
|
+
|
|
25
|
+
- ace184d: Add requestConnectedData() to call Teamwork Graph APIs
|
|
26
|
+
- b04283b: Add serialize function for InstallationAri
|
|
27
|
+
- f3ca9bf: Update export type for InstallationAri and EnvironmentAri
|
|
28
|
+
|
|
29
|
+
### Patch Changes
|
|
30
|
+
|
|
31
|
+
- 73e1aac: Bumping dependencies via Renovate:
|
|
32
|
+
|
|
33
|
+
- nock
|
|
34
|
+
|
|
35
|
+
- 579c6a2: send metrics with the same name but different tags separately
|
|
36
|
+
- 16a7cf5: Bumping dependencies via Renovate:
|
|
37
|
+
|
|
38
|
+
- @types/node-fetch
|
|
39
|
+
|
|
40
|
+
- Updated dependencies [b3245a7]
|
|
41
|
+
- Updated dependencies [c714732]
|
|
42
|
+
- Updated dependencies [16a7cf5]
|
|
43
|
+
- @forge/util@1.4.0
|
|
44
|
+
- @forge/egress@1.2.12
|
|
45
|
+
- @forge/storage@1.5.14
|
|
46
|
+
|
|
47
|
+
## 3.0.0-next.7
|
|
48
|
+
|
|
49
|
+
### Patch Changes
|
|
50
|
+
|
|
51
|
+
- 73e1aac: Bumping dependencies via Renovate:
|
|
52
|
+
|
|
53
|
+
- nock
|
|
54
|
+
|
|
55
|
+
## 3.0.0-next.6
|
|
56
|
+
|
|
57
|
+
### Patch Changes
|
|
58
|
+
|
|
59
|
+
- Updated dependencies [c714732]
|
|
60
|
+
- @forge/egress@1.2.12-next.0
|
|
61
|
+
|
|
62
|
+
## 3.0.0-next.5
|
|
63
|
+
|
|
64
|
+
### Minor Changes
|
|
65
|
+
|
|
66
|
+
- b04283b: Add serialize function for InstallationAri
|
|
67
|
+
|
|
68
|
+
## 3.0.0-next.4
|
|
69
|
+
|
|
70
|
+
### Patch Changes
|
|
71
|
+
|
|
72
|
+
- 16a7cf5: Bumping dependencies via Renovate:
|
|
73
|
+
|
|
74
|
+
- @types/node-fetch
|
|
75
|
+
|
|
76
|
+
- Updated dependencies [16a7cf5]
|
|
77
|
+
- @forge/storage@1.5.14-next.0
|
|
78
|
+
|
|
79
|
+
## 3.0.0-next.3
|
|
80
|
+
|
|
81
|
+
### Minor Changes
|
|
82
|
+
|
|
83
|
+
- f3ca9bf: Update export type for InstallationAri and EnvironmentAri
|
|
84
|
+
|
|
85
|
+
## 3.0.0-next.2
|
|
86
|
+
|
|
87
|
+
### Patch Changes
|
|
88
|
+
|
|
89
|
+
- 579c6a2: send metrics with the same name but different tags separately
|
|
90
|
+
|
|
91
|
+
## 3.0.0-next.1
|
|
92
|
+
|
|
93
|
+
### Major Changes
|
|
94
|
+
|
|
95
|
+
- b3245a7: - Add environmentType, invocationId, installationId in runtime V2 context
|
|
96
|
+
- Rename getRuntime to \_\_getRuntime in @forge/api
|
|
97
|
+
- Add new method getAppContext in @forge/api to retrieve app context data
|
|
98
|
+
- Replace @atlassian/cs-ari package with @atlassian/ari
|
|
99
|
+
|
|
100
|
+
### Patch Changes
|
|
101
|
+
|
|
102
|
+
- Updated dependencies [b3245a7]
|
|
103
|
+
- @forge/util@1.4.0-next.0
|
|
104
|
+
|
|
3
105
|
## 2.23.0-next.0
|
|
4
106
|
|
|
5
107
|
### Minor Changes
|
package/out/api/ari.d.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
interface Ari {
|
|
2
|
+
toString: () => string;
|
|
3
|
+
}
|
|
4
|
+
export declare type AppAri = Ari & {
|
|
5
|
+
appId: string;
|
|
6
|
+
};
|
|
7
|
+
export declare const getAppAri: (appId: string) => AppAri;
|
|
8
|
+
export declare type EnvironmentAri = Ari & {
|
|
9
|
+
environmentId: string;
|
|
10
|
+
};
|
|
11
|
+
export declare const getEnvironmentAri: (appId: string, environmentId: string) => EnvironmentAri;
|
|
12
|
+
export declare type InstallationAri = Ari & {
|
|
13
|
+
installationId: string;
|
|
14
|
+
};
|
|
15
|
+
export declare const getInstallationAri: (installationId: string) => InstallationAri;
|
|
16
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=ari.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ari.d.ts","sourceRoot":"","sources":["../../src/api/ari.ts"],"names":[],"mappings":"AAEA,UAAU,GAAG;IACX,QAAQ,EAAE,MAAM,MAAM,CAAC;CACxB;AAED,oBAAY,MAAM,GAAG,GAAG,GAAG;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAC7C,eAAO,MAAM,SAAS,UAAW,MAAM,KAAG,MAA2C,CAAC;AAEtF,oBAAY,cAAc,GAAG,GAAG,GAAG;IAAE,aAAa,EAAE,MAAM,CAAA;CAAE,CAAC;AAC7D,eAAO,MAAM,iBAAiB,UAAW,MAAM,iBAAiB,MAAM,KAAG,cACf,CAAC;AAE3D,oBAAY,eAAe,GAAG,GAAG,GAAG;IAAE,cAAc,EAAE,MAAM,CAAA;CAAE,CAAC;AAsB/D,eAAO,MAAM,kBAAkB,mBAAoB,MAAM,KAAG,eAA0D,CAAC"}
|
package/out/api/ari.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getInstallationAri = exports.getEnvironmentAri = exports.getAppAri = void 0;
|
|
4
|
+
const ari_1 = require("@forge/util/packages/ari");
|
|
5
|
+
const getAppAri = (appId) => ari_1.EcosystemAppAri.create({ appId });
|
|
6
|
+
exports.getAppAri = getAppAri;
|
|
7
|
+
const getEnvironmentAri = (appId, environmentId) => ari_1.EcosystemEnvironmentAri.create({ appId, environmentId });
|
|
8
|
+
exports.getEnvironmentAri = getEnvironmentAri;
|
|
9
|
+
class InstallationAriImpl {
|
|
10
|
+
constructor(installationId) {
|
|
11
|
+
this._installationId = installationId;
|
|
12
|
+
}
|
|
13
|
+
get installationId() {
|
|
14
|
+
return this._installationId;
|
|
15
|
+
}
|
|
16
|
+
toString() {
|
|
17
|
+
return `ari:cloud:ecosystem::installation/${this._installationId}`;
|
|
18
|
+
}
|
|
19
|
+
toJSON() {
|
|
20
|
+
return this.toString();
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
const getInstallationAri = (installationId) => new InstallationAriImpl(installationId);
|
|
24
|
+
exports.getInstallationAri = getInstallationAri;
|
package/out/api/fetch.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { RequestInit } from 'node-fetch';
|
|
2
2
|
import { FetchAPI, FetchMethod } from '..';
|
|
3
|
-
type AuthProvider = 'app' | 'user' | 'none';
|
|
4
|
-
type RemoteAPI = 'jira' | 'confluence' | 'stargate' | 'bitbucket';
|
|
5
|
-
type FetchArgs = {
|
|
3
|
+
declare type AuthProvider = 'app' | 'user' | 'none';
|
|
4
|
+
declare type RemoteAPI = 'jira' | 'confluence' | 'stargate' | 'bitbucket';
|
|
5
|
+
declare type FetchArgs = {
|
|
6
6
|
provider: AuthProvider;
|
|
7
7
|
remote: RemoteAPI;
|
|
8
8
|
};
|
package/out/api/fetch.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch.d.ts","sourceRoot":"","sources":["../../src/api/fetch.ts"],"names":[],"mappings":"AAEA,OAAc,EAAE,WAAW,EAAY,MAAM,YAAY,CAAC;AAS1D,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,IAAI,CAAC;AAI3C,
|
|
1
|
+
{"version":3,"file":"fetch.d.ts","sourceRoot":"","sources":["../../src/api/fetch.ts"],"names":[],"mappings":"AAEA,OAAc,EAAE,WAAW,EAAY,MAAM,YAAY,CAAC;AAS1D,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,IAAI,CAAC;AAI3C,aAAK,YAAY,GAAG,KAAK,GAAG,MAAM,GAAG,MAAM,CAAC;AAC5C,aAAK,SAAS,GAAG,MAAM,GAAG,YAAY,GAAG,UAAU,GAAG,WAAW,CAAC;AAElE,aAAK,SAAS,GAAG;IAAE,QAAQ,EAAE,YAAY,CAAC;IAAC,MAAM,EAAE,SAAS,CAAA;CAAE,CAAC;AAS/D,wBAAgB,YAAY,CAAC,IAAI,EAAE,SAAS,GAAG,WAAW,CAkBzD;AAgCD,eAAO,MAAM,aAAa,EAAE,CAAC,IAAI,CAAC,EAAE,WAAW,KAAK,WAGlD,CAAC;AAOH,wBAAgB,iBAAiB,IAAI,QAAQ,CAsB5C;AAED,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,GAAG,GAAG,QAAQ,CAEvD"}
|
package/out/api/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RequestInfo, RequestInit } from 'node-fetch';
|
|
2
2
|
import { FetchAPI, FetchMethod, RequestProductMethod, FetchMethodAllowingRoute, APIResponse } from '..';
|
|
3
|
-
export type FetchWrapper = (fetchApi: Function) => (url: RequestInfo, init?: RequestInit) => Promise<APIResponse>;
|
|
3
|
+
export declare type FetchWrapper = (fetchApi: Function) => (url: RequestInfo, init?: RequestInit) => Promise<APIResponse>;
|
|
4
4
|
export declare const wrapRequestGraph: (requestGraphApi: FetchMethod) => (query: string, variables?: any, headers?: {}) => Promise<APIResponse>;
|
|
5
5
|
export declare const wrapRequestConnectedData: (x: FetchMethod) => RequestProductMethod;
|
|
6
6
|
export declare const wrapRequestProduct: (x: FetchMethod) => RequestProductMethod;
|
package/out/api/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AACtD,OAAO,EACL,QAAQ,EACR,WAAW,EACX,oBAAoB,EACpB,wBAAwB,EAExB,WAAW,EAGZ,MAAM,IAAI,CAAC;AAIZ,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AACtD,OAAO,EACL,QAAQ,EACR,WAAW,EACX,oBAAoB,EACpB,wBAAwB,EAExB,WAAW,EAGZ,MAAM,IAAI,CAAC;AAIZ,oBAAY,YAAY,GAAG,CAAC,QAAQ,EAAE,QAAQ,KAAK,CAAC,GAAG,EAAE,WAAW,EAAE,IAAI,CAAC,EAAE,WAAW,KAAK,OAAO,CAAC,WAAW,CAAC,CAAC;AAElH,eAAO,MAAM,gBAAgB,oBACT,WAAW,aACrB,MAAM,cAAc,GAAG,uCAQ3B,CAAC;AAEP,eAAO,MAAM,wBAAwB,EAAE,CAAC,CAAC,EAAE,WAAW,KAAK,oBAG1D,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,CAAC,CAAC,EAAE,WAAW,KAAK,oBAGpD,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,CAAC,CAAC,EAAE,WAAW,KAAK,wBAGxD,CAAC;AAEF,eAAO,MAAM,mBAAmB,QAAS,GAAG,aAAa,YAAY,KAAG,QAoCvE,CAAC"}
|
package/out/api/runtime.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import type { Metrics, Tags } from '@forge/util/packages/metrics-interface';
|
|
2
|
-
|
|
2
|
+
import { AppAri, EnvironmentAri, InstallationAri } from './ari';
|
|
3
|
+
export declare type ProxyInfo = {
|
|
3
4
|
token: string;
|
|
4
5
|
url: string;
|
|
5
6
|
host?: string;
|
|
6
7
|
};
|
|
7
|
-
export type ForgeRuntime = {
|
|
8
|
+
export declare type ForgeRuntime = {
|
|
8
9
|
proxy: ProxyInfo;
|
|
9
10
|
contextAri: string;
|
|
10
11
|
container: {
|
|
@@ -14,8 +15,11 @@ export type ForgeRuntime = {
|
|
|
14
15
|
};
|
|
15
16
|
appContext: {
|
|
16
17
|
appId: string;
|
|
17
|
-
environmentId: string;
|
|
18
18
|
appVersion: string;
|
|
19
|
+
environmentId: string;
|
|
20
|
+
environmentType: string;
|
|
21
|
+
invocationId: string;
|
|
22
|
+
installationId: string;
|
|
19
23
|
functionKey: string;
|
|
20
24
|
moduleType: string;
|
|
21
25
|
moduleKey: string;
|
|
@@ -35,7 +39,17 @@ export type ForgeRuntime = {
|
|
|
35
39
|
host: string;
|
|
36
40
|
};
|
|
37
41
|
};
|
|
38
|
-
export declare
|
|
42
|
+
export declare type AppContext = {
|
|
43
|
+
appAri: AppAri;
|
|
44
|
+
appVersion: string;
|
|
45
|
+
environmentAri: EnvironmentAri;
|
|
46
|
+
environmentType: string;
|
|
47
|
+
invocationId: string;
|
|
48
|
+
installationAri: InstallationAri;
|
|
49
|
+
moduleKey: string;
|
|
50
|
+
};
|
|
51
|
+
export declare function __getRuntime(): ForgeRuntime;
|
|
52
|
+
export declare function getAppContext(): AppContext;
|
|
39
53
|
export declare function wrapInMetrics<Args extends unknown[], Ret>(name: string, fn: (...args: Args) => Promise<Ret>, { tags }?: {
|
|
40
54
|
tags?: Tags;
|
|
41
55
|
}): (...args: Args) => Promise<Ret>;
|
package/out/api/runtime.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../../src/api/runtime.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,wCAAwC,CAAC;
|
|
1
|
+
{"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../../src/api/runtime.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,wCAAwC,CAAC;AAG5E,OAAO,EAAoD,MAAM,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,OAAO,CAAC;AAQlH,oBAAY,SAAS,GAAG;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,oBAAY,YAAY,GAAG;IACzB,KAAK,EAAE,SAA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AM,EACZ,EAAE,EAAE,CAAC,GAAG,IAAI,EAAE,IAAI,KAAK,OAAO,CAAC,GAAG,CAAC,EACnC,EAAE,IAAI,EAAE,GAAE;IAAE,IAAI,CAAC,EAAE,IAAI,CAAA;CAAO,GAC7B,CAAC,GAAG,IAAI,EAAE,IAAI,KAAK,OAAO,CAAC,GAAG,CAAC,CAiBjC"}
|
package/out/api/runtime.js
CHANGED
|
@@ -1,19 +1,33 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.wrapInMetrics = exports.
|
|
3
|
+
exports.wrapInMetrics = exports.getAppContext = exports.__getRuntime = void 0;
|
|
4
4
|
const errors_1 = require("./errors");
|
|
5
5
|
const node_fetch_1 = require("node-fetch");
|
|
6
|
-
|
|
6
|
+
const ari_1 = require("./ari");
|
|
7
|
+
function __getRuntime() {
|
|
7
8
|
const runtime = global.__forge_runtime__;
|
|
8
9
|
if (!runtime) {
|
|
9
10
|
throw new Error('Forge runtime not found.');
|
|
10
11
|
}
|
|
11
12
|
return runtime;
|
|
12
13
|
}
|
|
13
|
-
exports.
|
|
14
|
+
exports.__getRuntime = __getRuntime;
|
|
15
|
+
function getAppContext() {
|
|
16
|
+
const { appId, appVersion, environmentId, environmentType, invocationId, installationId, moduleKey } = __getRuntime().appContext;
|
|
17
|
+
return {
|
|
18
|
+
appAri: (0, ari_1.getAppAri)(appId),
|
|
19
|
+
appVersion,
|
|
20
|
+
environmentAri: (0, ari_1.getEnvironmentAri)(appId, environmentId),
|
|
21
|
+
environmentType,
|
|
22
|
+
installationAri: (0, ari_1.getInstallationAri)(installationId),
|
|
23
|
+
invocationId,
|
|
24
|
+
moduleKey
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
exports.getAppContext = getAppContext;
|
|
14
28
|
function wrapInMetrics(name, fn, { tags } = {}) {
|
|
15
29
|
return async (...args) => {
|
|
16
|
-
const { metrics } =
|
|
30
|
+
const { metrics } = __getRuntime();
|
|
17
31
|
metrics.counter(name, tags).incr();
|
|
18
32
|
const timer = metrics.timing(name, tags).measure();
|
|
19
33
|
let success = true;
|
|
@@ -9,7 +9,7 @@ const authorize = () => {
|
|
|
9
9
|
accountId = process.env.__CURRENT_USER_ACCOUNT_ID;
|
|
10
10
|
}
|
|
11
11
|
else {
|
|
12
|
-
accountId = (0, __1.
|
|
12
|
+
accountId = (0, __1.__getRuntime)().aaid;
|
|
13
13
|
}
|
|
14
14
|
if (!accountId) {
|
|
15
15
|
throw new Error(`Couldn’t find the accountId of the invoking user. This API can only be used inside user-invoked modules.`);
|
package/out/index.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { RequestInit, Response } from 'node-fetch';
|
|
2
|
-
import { QueryApi, EntityStorageApi } from '@forge/storage';
|
|
2
|
+
import { QueryApi, EntityStorageApi, BulkItem, BulkResponse } from '@forge/storage';
|
|
3
3
|
import { authorize } from './authorization';
|
|
4
4
|
import { Route } from './safeUrl';
|
|
5
5
|
import { webTrigger } from './webTrigger';
|
|
6
6
|
import { createRequestStargateAsApp } from './runtime/fetch-and-storage';
|
|
7
|
-
export type APIResponse = Pick<Response, 'json' | 'text' | 'arrayBuffer' | 'ok' | 'status' | 'statusText' | 'headers'>;
|
|
8
|
-
export type FetchMethod = (url: string, init?: RequestInit) => Promise<APIResponse>;
|
|
9
|
-
export type FetchMethodAllowingRoute = (url: string | Route, init?: RequestInit) => Promise<APIResponse>;
|
|
10
|
-
export type RequestProductMethod = (url: Route, init?: RequestInit) => Promise<APIResponse>;
|
|
11
|
-
export type FetchOptions = RequestInit;
|
|
7
|
+
export declare type APIResponse = Pick<Response, 'json' | 'text' | 'arrayBuffer' | 'ok' | 'status' | 'statusText' | 'headers'>;
|
|
8
|
+
export declare type FetchMethod = (url: string, init?: RequestInit) => Promise<APIResponse>;
|
|
9
|
+
export declare type FetchMethodAllowingRoute = (url: string | Route, init?: RequestInit) => Promise<APIResponse>;
|
|
10
|
+
export declare type RequestProductMethod = (url: Route, init?: RequestInit) => Promise<APIResponse>;
|
|
11
|
+
export declare type FetchOptions = RequestInit;
|
|
12
12
|
export interface RequestProductMethods {
|
|
13
13
|
requestJira: RequestProductMethod;
|
|
14
14
|
requestConfluence: RequestProductMethod;
|
|
@@ -33,6 +33,7 @@ export interface StorageMethods {
|
|
|
33
33
|
get: (key: string) => Promise<any>;
|
|
34
34
|
set: (key: string, value: string | number | boolean | Record<string, any> | any[]) => Promise<void>;
|
|
35
35
|
delete: (key: string) => Promise<void>;
|
|
36
|
+
bulkSet: (items: BulkItem[]) => Promise<BulkResponse>;
|
|
36
37
|
}
|
|
37
38
|
export interface PropertiesAPI {
|
|
38
39
|
onJiraProject: (context: string) => StorageMethods;
|
|
@@ -53,8 +54,8 @@ export interface StoreAPI extends PropertiesAPI {
|
|
|
53
54
|
onConfluencePage: (context: string) => StorageMethods;
|
|
54
55
|
onConfluenceSpace: (context: string) => StorageMethods;
|
|
55
56
|
}
|
|
56
|
-
export type AsUserFetchMethods = RequestProductMethods & GraphQLFetchMethods & ConnectedDataFetchMethods & ExternalAuthFetchMethodsProvider;
|
|
57
|
-
export type AsAppFetchMethods = RequestProductMethods & GraphQLFetchMethods & ConnectedDataFetchMethods;
|
|
57
|
+
export declare type AsUserFetchMethods = RequestProductMethods & GraphQLFetchMethods & ConnectedDataFetchMethods & ExternalAuthFetchMethodsProvider;
|
|
58
|
+
export declare type AsAppFetchMethods = RequestProductMethods & GraphQLFetchMethods & ConnectedDataFetchMethods;
|
|
58
59
|
export interface FetchAPI extends RequestProductMethods {
|
|
59
60
|
asUser(): AsUserFetchMethods;
|
|
60
61
|
asApp(): AsAppFetchMethods;
|
|
@@ -80,6 +81,6 @@ export default API;
|
|
|
80
81
|
export { asUser, asApp, authorize, fetch, requestJira, requestConfluence, requestBitbucket, store, storage, properties, webTrigger, createRequestStargateAsApp };
|
|
81
82
|
export { QueryBuilder, QueryApi, EntityStorageApi, Condition, ListResult, Predicate, Result, Value, WherePredicate, FilterPredicate, startsWith, WhereConditions, FilterConditions, SortOrder } from '@forge/storage';
|
|
82
83
|
export { route, assumeTrustedRoute, routeFromAbsolute, Route } from './safeUrl';
|
|
83
|
-
export { ForgeRuntime,
|
|
84
|
+
export { ForgeRuntime, AppContext, getAppContext, __getRuntime } from './api/runtime';
|
|
84
85
|
export { NeedsAuthenticationError, ProxyRequestError, FetchError, ExternalEndpointNotAllowedError, ProductEndpointNotAllowedError, RequestProductNotAllowedError, NotAllowedError, InvalidWorkspaceRequestedError, HttpError, FUNCTION_ERR, isForgePlatformError, isHostedCodeError } from './api/errors';
|
|
85
86
|
//# sourceMappingURL=index.d.ts.map
|
package/out/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACnD,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACnD,OAAO,EAGL,QAAQ,EACR,gBAAgB,EAChB,QAAQ,EACR,YAAY,EACb,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAG5C,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAe,0BAA0B,EAAiB,MAAM,6BAA6B,CAAC;AAErG,oBAAY,WAAW,GAAG,IAAI,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,aAAa,GAAG,IAAI,GAAG,QAAQ,GAAG,YAAY,GAAG,SAAS,CAAC,CAAC;AACvH,oBAAY,WAAW,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,IA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f,UAAU,EACV,eAAe,EACf,gBAAgB,EAChB,SAAS,EACV,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAAE,KAAK,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAChF,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AACtF,OAAO,EACL,wBAAwB,EACxB,iBAAiB,EACjB,UAAU,EACV,+BAA+B,EAC/B,8BAA8B,EAC9B,6BAA6B,EAC7B,eAAe,EACf,8BAA8B,EAC9B,SAAS,EACT,YAAY,EACZ,oBAAoB,EACpB,iBAAiB,EAClB,MAAM,cAAc,CAAC"}
|
package/out/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
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.
|
|
3
|
+
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.__getRuntime = exports.getAppContext = exports.routeFromAbsolute = exports.assumeTrustedRoute = exports.route = exports.SortOrder = exports.FilterConditions = exports.WhereConditions = exports.startsWith = exports.createRequestStargateAsApp = exports.webTrigger = exports.properties = exports.storage = exports.store = exports.requestBitbucket = exports.requestConfluence = exports.requestJira = exports.fetch = exports.authorize = exports.asApp = exports.asUser = exports.privacy = void 0;
|
|
4
4
|
const storage_1 = require("@forge/storage");
|
|
5
5
|
const authorization_1 = require("./authorization");
|
|
6
6
|
Object.defineProperty(exports, "authorize", { enumerable: true, get: function () { return authorization_1.authorize; } });
|
|
@@ -59,7 +59,8 @@ Object.defineProperty(exports, "route", { enumerable: true, get: function () { r
|
|
|
59
59
|
Object.defineProperty(exports, "assumeTrustedRoute", { enumerable: true, get: function () { return safeUrl_1.assumeTrustedRoute; } });
|
|
60
60
|
Object.defineProperty(exports, "routeFromAbsolute", { enumerable: true, get: function () { return safeUrl_1.routeFromAbsolute; } });
|
|
61
61
|
var runtime_1 = require("./api/runtime");
|
|
62
|
-
Object.defineProperty(exports, "
|
|
62
|
+
Object.defineProperty(exports, "getAppContext", { enumerable: true, get: function () { return runtime_1.getAppContext; } });
|
|
63
|
+
Object.defineProperty(exports, "__getRuntime", { enumerable: true, get: function () { return runtime_1.__getRuntime; } });
|
|
63
64
|
var errors_1 = require("./api/errors");
|
|
64
65
|
Object.defineProperty(exports, "NeedsAuthenticationError", { enumerable: true, get: function () { return errors_1.NeedsAuthenticationError; } });
|
|
65
66
|
Object.defineProperty(exports, "ProxyRequestError", { enumerable: true, get: function () { return errors_1.ProxyRequestError; } });
|
package/out/privacy/index.d.ts
CHANGED
|
@@ -2,11 +2,11 @@ import { RequestInit } from 'node-fetch';
|
|
|
2
2
|
import { APIResponse } from '../';
|
|
3
3
|
export declare const URL = "/app/report-accounts";
|
|
4
4
|
export declare const LIMIT = 90;
|
|
5
|
-
export type Account = {
|
|
5
|
+
export declare type Account = {
|
|
6
6
|
accountId: string;
|
|
7
7
|
updatedAt: string;
|
|
8
8
|
};
|
|
9
|
-
export type AccountUpdate = {
|
|
9
|
+
export declare type AccountUpdate = {
|
|
10
10
|
accountId: string;
|
|
11
11
|
status: 'updated' | 'closed';
|
|
12
12
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/privacy/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,KAAK,CAAC;AAElC,eAAO,MAAM,GAAG,yBAAyB,CAAC;AAC1C,eAAO,MAAM,KAAK,KAAK,CAAC;AAExB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/privacy/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,KAAK,CAAC;AAElC,eAAO,MAAM,GAAG,yBAAyB,CAAC;AAC1C,eAAO,MAAM,KAAK,KAAK,CAAC;AAExB,oBAAY,OAAO,GAAG;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,CAAC;AAC/D,oBAAY,aAAa,GAAG;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,SAAS,GAAG,QAAQ,CAAA;CAAE,CAAC;AAEhF,eAAO,MAAM,wBAAwB,2BACX,MAAM,QAAQ,WAAW,KAAK,QAAQ,WAAW,CAAC,gBAEnC,OAAO,EAAE,KAAG,QAAQ,aAAa,EAAE,CAqB3E,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch-and-storage.d.ts","sourceRoot":"","sources":["../../src/runtime/fetch-and-storage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,IAAI,CAAC;AAIjC,eAAO,MAAM,0BAA0B,EAAE,MAAM,WAC2D,CAAC;AAE3G,eAAO,MAAM,aAAa,
|
|
1
|
+
{"version":3,"file":"fetch-and-storage.d.ts","sourceRoot":"","sources":["../../src/runtime/fetch-and-storage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,IAAI,CAAC;AAIjC,eAAO,MAAM,0BAA0B,EAAE,MAAM,WAC2D,CAAC;AAE3G,eAAO,MAAM,aAAa,WAOzB,CAAC;AAEF,eAAO,MAAM,WAAW,6BAOvB,CAAC"}
|
package/out/safeUrl.d.ts
CHANGED
package/out/safeUrl.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"safeUrl.d.ts","sourceRoot":"","sources":["../src/safeUrl.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"safeUrl.d.ts","sourceRoot":"","sources":["../src/safeUrl.ts"],"names":[],"mappings":"AAAA,oBAAY,KAAK,GAAG;IAClB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACxB,CAAC;AAcF,wBAAgB,OAAO,CAAC,CAAC,EAAE,OAAO,GAAG,CAAC,IAAI,KAAK,CAE9C;AAED,wBAAgB,iBAAiB,CAAC,YAAY,EAAE,MAAM,GAAG,KAAK,CAG7D;AA6DD,wBAAgB,KAAK,CACnB,QAAQ,EAAE,oBAAoB,EAC9B,GAAG,UAAU,EAAE,CAAC,MAAM,GAAG,MAAM,GAAG,eAAe,GAAG,KAAK,CAAC,EAAE,GAC3D,KAAK,CAoBP;AAED,wBAAgB,cAAc,CAAC,GAAG,EAAE,OAAO,GAAG,KAAK,CASlD;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,CAEvD"}
|
package/out/webTrigger.js
CHANGED
|
@@ -5,7 +5,7 @@ const runtime_1 = require("./api/runtime");
|
|
|
5
5
|
const fetch_and_storage_1 = require("./runtime/fetch-and-storage");
|
|
6
6
|
const proxyGetWebTriggerURL = (0, runtime_1.wrapInMetrics)('api.getWebTriggerUrl', async (webTriggerModuleKey, forceCreate) => {
|
|
7
7
|
var _a, _b;
|
|
8
|
-
const runtime = (0, runtime_1.
|
|
8
|
+
const runtime = (0, runtime_1.__getRuntime)();
|
|
9
9
|
const response = await (0, fetch_and_storage_1.createRequestStargateAsApp)()('/graphql', {
|
|
10
10
|
method: 'POST',
|
|
11
11
|
headers: { 'Content-Type': 'application/json' },
|
|
@@ -73,7 +73,7 @@ const proxyDeleteWebTriggerURL = (0, runtime_1.wrapInMetrics)('api.deleteWebTrig
|
|
|
73
73
|
});
|
|
74
74
|
const proxyGetWebTriggerUrlIds = (0, runtime_1.wrapInMetrics)('api.getWebTriggerUrlIds', async (webTriggerUrl) => {
|
|
75
75
|
var _a;
|
|
76
|
-
const runtime = (0, runtime_1.
|
|
76
|
+
const runtime = (0, runtime_1.__getRuntime)();
|
|
77
77
|
const response = await (0, fetch_and_storage_1.createRequestStargateAsApp)()('/graphql', {
|
|
78
78
|
method: 'POST',
|
|
79
79
|
headers: { 'Content-Type': 'application/json' },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forge/api",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0-experimental-6adbba3",
|
|
4
4
|
"description": "Forge API methods",
|
|
5
5
|
"author": "Atlassian",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -12,18 +12,18 @@
|
|
|
12
12
|
"compile": "tsc -b -v"
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
|
-
"@forge/runtime": "5.
|
|
15
|
+
"@forge/runtime": "5.3.0",
|
|
16
16
|
"@types/node": "14.18.63",
|
|
17
17
|
"expect-type": "^0.17.3",
|
|
18
18
|
"jest-matcher-specific-error": "^1.0.0",
|
|
19
|
-
"nock": "13.
|
|
19
|
+
"nock": "13.4.0"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@forge/auth": "0.0.5",
|
|
23
|
-
"@forge/egress": "1.2.
|
|
24
|
-
"@forge/storage": "1.5.
|
|
25
|
-
"@forge/util": "1.
|
|
26
|
-
"@types/node-fetch": "^2.6.
|
|
23
|
+
"@forge/egress": "1.2.12",
|
|
24
|
+
"@forge/storage": "1.5.14-experimental-6adbba3",
|
|
25
|
+
"@forge/util": "1.4.0",
|
|
26
|
+
"@types/node-fetch": "^2.6.10",
|
|
27
27
|
"node-fetch": "2.7.0"
|
|
28
28
|
}
|
|
29
29
|
}
|