@forge/cli-shared 9.7.0-next.7 → 9.7.0-next.9
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 +12 -0
- package/out/ari/ari.d.ts +5 -0
- package/out/ari/ari.d.ts.map +1 -1
- package/out/ari/ari.js +13 -1
- package/out/graphql/graphql-types.d.ts +438 -44
- package/out/graphql/graphql-types.d.ts.map +1 -1
- package/out/graphql/graphql-types.js +80 -29
- package/out/ui/command-line-ui.d.ts +6 -3
- package/out/ui/command-line-ui.d.ts.map +1 -1
- package/out/ui/command-line-ui.js +39 -11
- package/out/ui/text.d.ts +3 -5
- package/out/ui/text.d.ts.map +1 -1
- package/out/ui/text.js +3 -5
- package/out/ui/ui.d.ts +5 -1
- package/out/ui/ui.d.ts.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @forge/cli-shared
|
|
2
2
|
|
|
3
|
+
## 9.7.0-next.9
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 988dff5: Replace the `--shard` option on the `forge show` commands with `--placement`, which takes a bare placement ID such as `ic-dr6` or `us-east-1`. The `appContainerServices` query now filters on `PLACEMENT` using a fully qualified `EcosystemAppPlacementAri`, with the placement type derived from the ID.
|
|
8
|
+
|
|
9
|
+
## 9.7.0-next.8
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- 9d391ab: `forge show services` and `forge show containers` now read every placement the app is deployed to, by paginating the `appContainerServices` query instead of reading only the first placement. Both commands report which placement each service and container runs in, so a service deployed to more than one placement is no longer collapsed into a single row.
|
|
14
|
+
|
|
3
15
|
## 9.7.0-next.7
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
package/out/ari/ari.d.ts
CHANGED
|
@@ -6,7 +6,12 @@ export declare const INSTALLATION_RESOURCE_TYPE = "installation";
|
|
|
6
6
|
export declare const UNIT_RESOURCE_TYPE = "unit";
|
|
7
7
|
export declare const TRELLO_RESOURCE_OWNER = "trello";
|
|
8
8
|
export declare const BITBUCKET_RESOURCE_OWNER = "bitbucket";
|
|
9
|
+
export declare const APP_PLACEMENT_RESOURCE_TYPE = "app-placement";
|
|
10
|
+
export declare const ISOLATION_CONTEXT_PLACEMENT_TYPE = "isolation-context";
|
|
11
|
+
export declare const REGION_PLACEMENT_TYPE = "region";
|
|
9
12
|
export declare function appIdToAriString(appId: string): string;
|
|
13
|
+
export declare function placementIdToPlacementType(placementId: string): string;
|
|
14
|
+
export declare function placementIdToAriString(placementId: string): string;
|
|
10
15
|
export declare function buildContextAri(cloudId: string, product: string): Ari;
|
|
11
16
|
export declare function buildExtensionAri(appId: string, environmentId: string, functionKey: string): Ari;
|
|
12
17
|
export declare function encodeContext(context: Ari, extension: Ari): string;
|
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,EACL,MAAM,EACN,GAAG,EACH,mBAAmB,EACnB,sBAAsB,EACtB,iBAAiB,EACjB,gBAAgB,EACjB,MAAM,0BAA0B,CAAC;AAIlC,eAAO,MAAM,kBAAkB,SAAS,CAAC;AACzC,eAAO,MAAM,uBAAuB,cAAc,CAAC;AACnD,eAAO,MAAM,4BAA4B,mBAAmB,CAAC;AAC7D,eAAO,MAAM,0BAA0B,iBAAiB,CAAC;AACzD,eAAO,MAAM,kBAAkB,SAAS,CAAC;AACzC,eAAO,MAAM,qBAAqB,WAAW,CAAC;AAC9C,eAAO,MAAM,wBAAwB,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"ari.d.ts","sourceRoot":"","sources":["../../src/ari/ari.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,MAAM,EACN,GAAG,EACH,mBAAmB,EACnB,sBAAsB,EACtB,iBAAiB,EACjB,g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AAM,eAAe,MAAM;CAC7C,CAAC"}
|
package/out/ari/ari.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createWorkspaceAriByProduct = exports.UnknownInstallationWithoutResourceIdError = exports.UnknownWorkspaceWithoutResourceIdError = exports.UnknownSiteWithoutResourceIdError = exports.BITBUCKET_RESOURCE_OWNER = exports.TRELLO_RESOURCE_OWNER = exports.UNIT_RESOURCE_TYPE = exports.INSTALLATION_RESOURCE_TYPE = exports.WORKSPACE_USER_RESOURCE_TYPE = exports.WORKSPACE_RESOURCE_TYPE = exports.SITE_RESOURCE_TYPE = void 0;
|
|
3
|
+
exports.createWorkspaceAriByProduct = exports.UnknownInstallationWithoutResourceIdError = exports.UnknownWorkspaceWithoutResourceIdError = exports.UnknownSiteWithoutResourceIdError = exports.REGION_PLACEMENT_TYPE = exports.ISOLATION_CONTEXT_PLACEMENT_TYPE = exports.APP_PLACEMENT_RESOURCE_TYPE = exports.BITBUCKET_RESOURCE_OWNER = exports.TRELLO_RESOURCE_OWNER = exports.UNIT_RESOURCE_TYPE = exports.INSTALLATION_RESOURCE_TYPE = exports.WORKSPACE_USER_RESOURCE_TYPE = exports.WORKSPACE_RESOURCE_TYPE = exports.SITE_RESOURCE_TYPE = void 0;
|
|
4
4
|
exports.appIdToAriString = appIdToAriString;
|
|
5
|
+
exports.placementIdToPlacementType = placementIdToPlacementType;
|
|
6
|
+
exports.placementIdToAriString = placementIdToAriString;
|
|
5
7
|
exports.buildContextAri = buildContextAri;
|
|
6
8
|
exports.buildExtensionAri = buildExtensionAri;
|
|
7
9
|
exports.encodeContext = encodeContext;
|
|
@@ -16,9 +18,19 @@ exports.INSTALLATION_RESOURCE_TYPE = 'installation';
|
|
|
16
18
|
exports.UNIT_RESOURCE_TYPE = 'unit';
|
|
17
19
|
exports.TRELLO_RESOURCE_OWNER = 'trello';
|
|
18
20
|
exports.BITBUCKET_RESOURCE_OWNER = 'bitbucket';
|
|
21
|
+
exports.APP_PLACEMENT_RESOURCE_TYPE = 'app-placement';
|
|
22
|
+
exports.ISOLATION_CONTEXT_PLACEMENT_TYPE = 'isolation-context';
|
|
23
|
+
exports.REGION_PLACEMENT_TYPE = 'region';
|
|
24
|
+
const ISOLATION_CONTEXT_ID_PATTERN = /^ic-[a-z0-9]+$/;
|
|
19
25
|
function appIdToAriString(appId) {
|
|
20
26
|
return `ari:cloud:ecosystem::app/${appId}`;
|
|
21
27
|
}
|
|
28
|
+
function placementIdToPlacementType(placementId) {
|
|
29
|
+
return ISOLATION_CONTEXT_ID_PATTERN.test(placementId) ? exports.ISOLATION_CONTEXT_PLACEMENT_TYPE : exports.REGION_PLACEMENT_TYPE;
|
|
30
|
+
}
|
|
31
|
+
function placementIdToAriString(placementId) {
|
|
32
|
+
return `ari:cloud:ecosystem::${exports.APP_PLACEMENT_RESOURCE_TYPE}/${placementIdToPlacementType(placementId)}/${placementId}`;
|
|
33
|
+
}
|
|
22
34
|
function buildContextAri(cloudId, product) {
|
|
23
35
|
return ari_1.AnyAri.create({
|
|
24
36
|
resourceOwner: (0, shared_1.ariResourceOwner)(product),
|