@forge/api 3.0.0-next.2 → 3.0.0-next.4
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 +17 -0
- package/out/api/ari.d.ts +3 -7
- package/out/api/ari.d.ts.map +1 -1
- package/out/api/ari.js +3 -4
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @forge/api
|
|
2
2
|
|
|
3
|
+
## 3.0.0-next.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 16a7cf5: Bumping dependencies via Renovate:
|
|
8
|
+
|
|
9
|
+
- @types/node-fetch
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [16a7cf5]
|
|
12
|
+
- @forge/storage@1.5.14-next.0
|
|
13
|
+
|
|
14
|
+
## 3.0.0-next.3
|
|
15
|
+
|
|
16
|
+
### Minor Changes
|
|
17
|
+
|
|
18
|
+
- f3ca9bf: Update export type for InstallationAri and EnvironmentAri
|
|
19
|
+
|
|
3
20
|
## 3.0.0-next.2
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
package/out/api/ari.d.ts
CHANGED
|
@@ -6,16 +6,12 @@ export type AppAri = Ari & {
|
|
|
6
6
|
};
|
|
7
7
|
export declare const getAppAri: (appId: string) => AppAri;
|
|
8
8
|
export type EnvironmentAri = Ari & {
|
|
9
|
-
appId: string;
|
|
10
9
|
environmentId: string;
|
|
11
10
|
};
|
|
12
11
|
export declare const getEnvironmentAri: (appId: string, environmentId: string) => EnvironmentAri;
|
|
13
|
-
export
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
get installationId(): string;
|
|
17
|
-
toString(): string;
|
|
18
|
-
}
|
|
12
|
+
export type InstallationAri = Ari & {
|
|
13
|
+
installationId: string;
|
|
14
|
+
};
|
|
19
15
|
export declare const getInstallationAri: (installationId: string) => InstallationAri;
|
|
20
16
|
export {};
|
|
21
17
|
//# sourceMappingURL=ari.d.ts.map
|
package/out/api/ari.d.ts.map
CHANGED
|
@@ -1 +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,MAAM,MAAM,MAAM,GAAG,GAAG,GAAG;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAC7C,eAAO,MAAM,SAAS,UAAW,MAAM,KAAG,MAA2C,CAAC;AAEtF,MAAM,MAAM,cAAc,GAAG,GAAG,GAAG;IAAE,
|
|
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,MAAM,MAAM,MAAM,GAAG,GAAG,GAAG;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAC7C,eAAO,MAAM,SAAS,UAAW,MAAM,KAAG,MAA2C,CAAC;AAEtF,MAAM,MAAM,cAAc,GAAG,GAAG,GAAG;IAAE,aAAa,EAAE,MAAM,CAAA;CAAE,CAAC;AAC7D,eAAO,MAAM,iBAAiB,UAAW,MAAM,iBAAiB,MAAM,KAAG,cACf,CAAC;AAE3D,MAAM,MAAM,eAAe,GAAG,GAAG,GAAG;IAAE,cAAc,EAAE,MAAM,CAAA;CAAE,CAAC;AAkB/D,eAAO,MAAM,kBAAkB,mBAAoB,MAAM,KAAG,eAA0D,CAAC"}
|
package/out/api/ari.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getInstallationAri = exports.
|
|
3
|
+
exports.getInstallationAri = exports.getEnvironmentAri = exports.getAppAri = void 0;
|
|
4
4
|
const ari_1 = require("@forge/util/packages/ari");
|
|
5
5
|
const getAppAri = (appId) => ari_1.EcosystemAppAri.create({ appId });
|
|
6
6
|
exports.getAppAri = getAppAri;
|
|
7
7
|
const getEnvironmentAri = (appId, environmentId) => ari_1.EcosystemEnvironmentAri.create({ appId, environmentId });
|
|
8
8
|
exports.getEnvironmentAri = getEnvironmentAri;
|
|
9
|
-
class
|
|
9
|
+
class InstallationAriImpl {
|
|
10
10
|
constructor(installationId) {
|
|
11
11
|
this._installationId = installationId;
|
|
12
12
|
}
|
|
@@ -17,6 +17,5 @@ class InstallationAri {
|
|
|
17
17
|
return `ari:cloud:ecosystem::installation/${this._installationId}`;
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
|
-
|
|
21
|
-
const getInstallationAri = (installationId) => new InstallationAri(installationId);
|
|
20
|
+
const getInstallationAri = (installationId) => new InstallationAriImpl(installationId);
|
|
22
21
|
exports.getInstallationAri = getInstallationAri;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forge/api",
|
|
3
|
-
"version": "3.0.0-next.
|
|
3
|
+
"version": "3.0.0-next.4",
|
|
4
4
|
"description": "Forge API methods",
|
|
5
5
|
"author": "Atlassian",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"compile": "tsc -b -v"
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
|
-
"@forge/runtime": "5.3.0-next.
|
|
15
|
+
"@forge/runtime": "5.3.0-next.3",
|
|
16
16
|
"@types/node": "14.18.63",
|
|
17
17
|
"expect-type": "^0.17.3",
|
|
18
18
|
"jest-matcher-specific-error": "^1.0.0",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@forge/auth": "0.0.5",
|
|
23
23
|
"@forge/egress": "1.2.11",
|
|
24
|
-
"@forge/storage": "1.5.
|
|
24
|
+
"@forge/storage": "1.5.14-next.0",
|
|
25
25
|
"@forge/util": "1.4.0-next.0",
|
|
26
|
-
"@types/node-fetch": "^2.6.
|
|
26
|
+
"@types/node-fetch": "^2.6.10",
|
|
27
27
|
"node-fetch": "2.7.0"
|
|
28
28
|
}
|
|
29
29
|
}
|