@forge/cli-shared 3.22.1 → 3.23.0-next.1
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 +22 -0
- package/out/app-logs/view-logs.d.ts +1 -1
- package/out/app-logs/view-logs.d.ts.map +1 -1
- package/out/app-logs/view-logs.js +4 -6
- package/out/ari/ari.d.ts +1 -1
- package/out/ari/ari.d.ts.map +1 -1
- package/out/ari/ari.js +3 -3
- package/out/graphql/graphql-types.d.ts +1140 -197
- package/out/graphql/graphql-types.d.ts.map +1 -1
- package/out/graphql/graphql-types.js +349 -7
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @forge/cli-shared
|
|
2
2
|
|
|
3
|
+
## 3.23.0-next.1
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- b3245a7: - Add environmentType, invocationId, installationId in runtime V2 context
|
|
8
|
+
- Rename getRuntime to \_\_getRuntime in @forge/api
|
|
9
|
+
- Add new method getAppContext in @forge/api to retrieve app context data
|
|
10
|
+
- Replace @atlassian/cs-ari package with @atlassian/ari
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies [b3245a7]
|
|
15
|
+
- @forge/util@1.4.0-next.0
|
|
16
|
+
- @forge/manifest@5.4.1-next.1
|
|
17
|
+
|
|
18
|
+
## 3.22.2-next.0
|
|
19
|
+
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- Updated dependencies [9d7a0c4]
|
|
23
|
+
- @forge/manifest@5.4.1-next.0
|
|
24
|
+
|
|
3
25
|
## 3.22.1
|
|
4
26
|
|
|
5
27
|
### Patch Changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"view-logs.d.ts","sourceRoot":"","sources":["../../src/app-logs/view-logs.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,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AAC,EAAE,GAAG,CAAC;CACb;AAED,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,iBAAiB,EAAE,CAAC;IAC1B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,iBAAiB;IAChC,WAAW,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,UAAU,EAAE,CAAC,CAAC;IAC5D,kBAAkB,CAAC,OAAO,EAAE,wBAAwB,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;CAC5E;AAED,qBAAa,kBAAkB;IAK3B,OAAO,CAAC,QAAQ,CAAC,YAAY;IAC7B,OAAO,CAAC,QAAQ,CAAC,oBAAoB;IACrC,OAAO,CAAC,QAAQ,CAAC,gBAAgB;IACjC,OAAO,CAAC,QAAQ,CAAC,UAAU;gBAHV,YAAY,EAAE,iBAAiB,EAC/B,oBAAoB,EAAE,oBAAoB,EAC1C,gBAAgB,EAAE,gBAAgB,EAClC,UAAU,EAAE,iBAAiB;IAGnC,MAAM,CAAC,EAAE,cAAc,EAAE,KAAK,EAAE,OAAO,EAAE,SAAgB,EAAE,EAAE,YAAY,GAAG,OAAO,CAAC,UAAU,EAAE,CAAC;IAmBjG,MAAM,CAAC,OAAO,EAAE,sBAAsB,GAAG,OAAO,CAAC,UAAU,CAAC;CAI1E"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ViewAppLogsCommand = void 0;
|
|
4
|
-
const
|
|
5
|
-
const
|
|
4
|
+
const ari_1 = require("@forge/util/packages/ari");
|
|
5
|
+
const ari_2 = require("../ari");
|
|
6
6
|
class ViewAppLogsCommand {
|
|
7
7
|
constructor(getAppConfig, appEnvironmentClient, globalEdgeClient, logsClient) {
|
|
8
8
|
this.getAppConfig = getAppConfig;
|
|
@@ -16,11 +16,9 @@ class ViewAppLogsCommand {
|
|
|
16
16
|
this.appEnvironmentClient.getAppEnvironmentId(appId, environmentKey),
|
|
17
17
|
context ? this.globalEdgeClient.getCloudId(context.site) : undefined
|
|
18
18
|
]);
|
|
19
|
-
const contextAri = cloudId ? (0,
|
|
20
|
-
const ari = (0, cs_ari_1.parse)(appId);
|
|
21
|
-
const appAri = (0, cs_ari_1.parseAppAri)(ari);
|
|
19
|
+
const contextAri = cloudId ? (0, ari_2.buildContextAri)(cloudId, context.product) : undefined;
|
|
22
20
|
return this.logsClient.viewAppLogs({
|
|
23
|
-
appId:
|
|
21
|
+
appId: ari_1.EcosystemAppAri.parse(appId).appId,
|
|
24
22
|
environmentId,
|
|
25
23
|
limit,
|
|
26
24
|
startTime,
|
package/out/ari/ari.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Ari } from '@forge/util/packages/
|
|
1
|
+
import { Ari } from '@forge/util/packages/ari';
|
|
2
2
|
export declare function appIdToAriString(appId: string): string;
|
|
3
3
|
export declare function buildContextAri(cloudId: string, product: string): Ari;
|
|
4
4
|
export declare function buildExtensionAri(appId: string, environmentId: string, functionKey: string): Ari;
|
package/out/ari/ari.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ari.d.ts","sourceRoot":"","sources":["../../src/ari/ari.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,
|
|
1
|
+
{"version":3,"file":"ari.d.ts","sourceRoot":"","sources":["../../src/ari/ari.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAU,MAAM,0BAA0B,CAAC;AAGvD,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAEtD;AAID,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,GAAG,CAMrE;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,GAAG,CAMhG;AAGD,wBAAgB,aAAa,CAAC,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,GAAG,GAAG,MAAM,CAKlE"}
|
package/out/ari/ari.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.encodeContext = exports.buildExtensionAri = exports.buildContextAri = exports.appIdToAriString = void 0;
|
|
4
|
-
const
|
|
4
|
+
const ari_1 = require("@forge/util/packages/ari");
|
|
5
5
|
const shared_1 = require("../shared");
|
|
6
6
|
function appIdToAriString(appId) {
|
|
7
7
|
return `ari:cloud:ecosystem::app/${appId}`;
|
|
8
8
|
}
|
|
9
9
|
exports.appIdToAriString = appIdToAriString;
|
|
10
10
|
function buildContextAri(cloudId, product) {
|
|
11
|
-
return
|
|
11
|
+
return ari_1.AnyAri.create({
|
|
12
12
|
resourceOwner: (0, shared_1.ariResourceOwner)(product),
|
|
13
13
|
resourceType: 'site',
|
|
14
14
|
resourceId: cloudId
|
|
@@ -16,7 +16,7 @@ function buildContextAri(cloudId, product) {
|
|
|
16
16
|
}
|
|
17
17
|
exports.buildContextAri = buildContextAri;
|
|
18
18
|
function buildExtensionAri(appId, environmentId, functionKey) {
|
|
19
|
-
return
|
|
19
|
+
return ari_1.AnyAri.create({
|
|
20
20
|
resourceOwner: 'ecosystem',
|
|
21
21
|
resourceType: 'extension',
|
|
22
22
|
resourceId: `${appId}/${environmentId}/static/${functionKey}`
|