@forge/cli-shared 8.23.0-next.2 → 8.23.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/ari/ari.d.ts +4 -0
- package/out/ari/ari.d.ts.map +1 -1
- package/out/ari/ari.js +13 -1
- package/out/graphql/graphql-types.d.ts +307 -3
- package/out/graphql/graphql-types.d.ts.map +1 -1
- package/out/graphql/graphql-types.js +71 -45
- package/out/ui/text.d.ts +2 -0
- package/out/ui/text.d.ts.map +1 -1
- package/out/ui/text.js +8 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @forge/cli-shared
|
|
2
2
|
|
|
3
|
+
## 8.23.0-next.4
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- a885062: Support a limit parameter in the version bulk-upgrade start command
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- 84d9930: adding option to include installation-id for uninstall flow
|
|
12
|
+
|
|
13
|
+
## 8.23.0-next.3
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- Updated dependencies [8d90f4f]
|
|
18
|
+
- @forge/manifest@12.8.0-next.3
|
|
19
|
+
|
|
3
20
|
## 8.23.0-next.2
|
|
4
21
|
|
|
5
22
|
### Minor Changes
|
package/out/ari/ari.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Ari, AnyAri, JiraWorkspaceAri, ConfluenceWorkspaceAri, CompassWorkspaceAri, GraphWorkspaceAri } from '@forge/util/packages/ari';
|
|
2
2
|
export declare const SITE_RESOURCE_TYPE = "site";
|
|
3
3
|
export declare const WORKSPACE_RESOURCE_TYPE = "workspace";
|
|
4
|
+
export declare const INSTALLATION_RESOURCE_TYPE = "installation";
|
|
4
5
|
export declare const TRELLO_RESOURCE_OWNER = "trello";
|
|
5
6
|
export declare const BITBUCKET_RESOURCE_OWNER = "bitbucket";
|
|
6
7
|
export declare function appIdToAriString(appId: string): string;
|
|
@@ -13,6 +14,9 @@ export declare class UnknownSiteWithoutResourceIdError extends Error {
|
|
|
13
14
|
export declare class UnknownWorkspaceWithoutResourceIdError extends Error {
|
|
14
15
|
constructor();
|
|
15
16
|
}
|
|
17
|
+
export declare class UnknownInstallationWithoutResourceIdError extends Error {
|
|
18
|
+
constructor();
|
|
19
|
+
}
|
|
16
20
|
export declare function parseInstallationContext(installationContext: string): AnyAri;
|
|
17
21
|
export declare const createWorkspaceAriByProduct: {
|
|
18
22
|
jira: (siteId: string, activationId: string) => JiraWorkspaceAri;
|
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,GAAG,EACH,MAAM,EACN,gBAAgB,EAChB,sBAAsB,EACtB,mBAAmB,EACnB,iBAAiB,EAClB,MAAM,0BAA0B,CAAC;AAIlC,eAAO,MAAM,kBAAkB,SAAS,CAAC;AACzC,eAAO,MAAM,uBAAuB,cAAc,CAAC;AACnD,eAAO,MAAM,qBAAqB,WAAW,CAAC;AAC9C,eAAO,MAAM,wBAAwB,cAAc,CAAC;AAEpD,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;AACD,qBAAa,iCAAkC,SAAQ,KAAK;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
@@ -1,11 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createWorkspaceAriByProduct = exports.parseInstallationContext = exports.UnknownWorkspaceWithoutResourceIdError = exports.UnknownSiteWithoutResourceIdError = exports.encodeContext = exports.buildExtensionAri = exports.buildContextAri = exports.appIdToAriString = exports.BITBUCKET_RESOURCE_OWNER = exports.TRELLO_RESOURCE_OWNER = exports.WORKSPACE_RESOURCE_TYPE = exports.SITE_RESOURCE_TYPE = void 0;
|
|
3
|
+
exports.createWorkspaceAriByProduct = exports.parseInstallationContext = exports.UnknownInstallationWithoutResourceIdError = exports.UnknownWorkspaceWithoutResourceIdError = exports.UnknownSiteWithoutResourceIdError = exports.encodeContext = exports.buildExtensionAri = exports.buildContextAri = exports.appIdToAriString = exports.BITBUCKET_RESOURCE_OWNER = exports.TRELLO_RESOURCE_OWNER = exports.INSTALLATION_RESOURCE_TYPE = exports.WORKSPACE_RESOURCE_TYPE = exports.SITE_RESOURCE_TYPE = void 0;
|
|
4
4
|
const ari_1 = require("@forge/util/packages/ari");
|
|
5
5
|
const shared_1 = require("../shared");
|
|
6
6
|
const ui_1 = require("../ui");
|
|
7
7
|
exports.SITE_RESOURCE_TYPE = 'site';
|
|
8
8
|
exports.WORKSPACE_RESOURCE_TYPE = 'workspace';
|
|
9
|
+
exports.INSTALLATION_RESOURCE_TYPE = 'installation';
|
|
9
10
|
exports.TRELLO_RESOURCE_OWNER = 'trello';
|
|
10
11
|
exports.BITBUCKET_RESOURCE_OWNER = 'bitbucket';
|
|
11
12
|
function appIdToAriString(appId) {
|
|
@@ -45,6 +46,12 @@ class UnknownWorkspaceWithoutResourceIdError extends Error {
|
|
|
45
46
|
}
|
|
46
47
|
}
|
|
47
48
|
exports.UnknownWorkspaceWithoutResourceIdError = UnknownWorkspaceWithoutResourceIdError;
|
|
49
|
+
class UnknownInstallationWithoutResourceIdError extends Error {
|
|
50
|
+
constructor() {
|
|
51
|
+
super(ui_1.Text.installList.noResourceIdInInstallation);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
exports.UnknownInstallationWithoutResourceIdError = UnknownInstallationWithoutResourceIdError;
|
|
48
55
|
function parseInstallationContext(installationContext) {
|
|
49
56
|
const context = ari_1.AnyAri.parse(installationContext);
|
|
50
57
|
switch (context.resourceType) {
|
|
@@ -58,6 +65,11 @@ function parseInstallationContext(installationContext) {
|
|
|
58
65
|
throw new UnknownWorkspaceWithoutResourceIdError();
|
|
59
66
|
}
|
|
60
67
|
break;
|
|
68
|
+
case exports.INSTALLATION_RESOURCE_TYPE:
|
|
69
|
+
if (!context.resourceId) {
|
|
70
|
+
throw new UnknownInstallationWithoutResourceIdError();
|
|
71
|
+
}
|
|
72
|
+
break;
|
|
61
73
|
default:
|
|
62
74
|
throw new Error('Unknown resource type');
|
|
63
75
|
}
|