@forge/cli-shared 6.5.5-next.1 → 6.6.0-next.11

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 CHANGED
@@ -1,5 +1,74 @@
1
1
  # @forge/cli-shared
2
2
 
3
+ ## 6.6.0-next.11
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [9eb7594]
8
+ - @forge/manifest@8.6.1-next.4
9
+
10
+ ## 6.6.0-next.10
11
+
12
+ ### Patch Changes
13
+
14
+ - a5e7647: Update license for Forge public packages
15
+ - Updated dependencies [a5e7647]
16
+ - @forge/manifest@8.6.1-next.3
17
+ - @forge/i18n@0.0.3-next.2
18
+ - @forge/util@1.4.7-next.2
19
+
20
+ ## 6.6.0-next.9
21
+
22
+ ### Patch Changes
23
+
24
+ - 385907a: list secondary products in installations
25
+ - Updated dependencies [87ae208]
26
+ - @forge/manifest@8.6.1-next.2
27
+
28
+ ## 6.6.0-next.8
29
+
30
+ ### Minor Changes
31
+
32
+ - 1a76049: Added support for Teamwork Graph.
33
+
34
+ ## 6.6.0-next.7
35
+
36
+ ### Patch Changes
37
+
38
+ - 951f3f0: Improved installation check when executing forge deploy command
39
+
40
+ ## 6.6.0-next.6
41
+
42
+ ### Patch Changes
43
+
44
+ - Updated dependencies [eb52ac8]
45
+ - @forge/util@1.4.7-next.1
46
+
47
+ ## 6.6.0-next.5
48
+
49
+ ### Patch Changes
50
+
51
+ - Updated dependencies [be59c90]
52
+ - @forge/util@1.4.7-next.0
53
+
54
+ ## 6.6.0-next.4
55
+
56
+ ### Patch Changes
57
+
58
+ - 0954fcd: Added new feature gate forge-cli-enable-xpa-installation defaulting to false
59
+
60
+ ## 6.6.0-next.3
61
+
62
+ ### Minor Changes
63
+
64
+ - e5cca82: Added command for app versions details
65
+
66
+ ## 6.6.0-next.2
67
+
68
+ ### Minor Changes
69
+
70
+ - f8e2503: Removed support of an installation id inplace of a site, product and environment installation context for the command
71
+
3
72
  ## 6.5.5-next.1
4
73
 
5
74
  ### Patch Changes
package/LICENSE.txt ADDED
@@ -0,0 +1,7 @@
1
+ Copyright (c) 2025 Atlassian
2
+ Permission is hereby granted to use this software in accordance with the terms
3
+ and conditions outlined in the Atlassian Developer Terms, which can be found
4
+ at the following URL:
5
+ https://developer.atlassian.com/platform/marketplace/atlassian-developer-terms/
6
+ By using this software, you agree to comply with these terms and conditions.
7
+ If you do not agree with these terms, you are not permitted to use this software.
package/out/ari/ari.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Ari, AnyAri, JiraWorkspaceAri, ConfluenceWorkspaceAri, CompassWorkspaceAri } from '@forge/util/packages/ari';
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
4
  export declare const TRELLO_RESOURCE_OWNER = "trello";
@@ -10,19 +10,14 @@ export declare function encodeContext(context: Ari, extension: Ari): string;
10
10
  export declare class UnknownSiteWithoutResourceIdError extends Error {
11
11
  constructor();
12
12
  }
13
- export declare class UnknownWorkspaceWithoutCloudIdError extends Error {
13
+ export declare class UnknownWorkspaceWithoutResourceIdError extends Error {
14
14
  constructor();
15
15
  }
16
- export declare class UnknownBBWorkspaceWithoutResourceIdError extends Error {
17
- constructor();
18
- }
19
- export interface EnrichedAri extends AnyAri {
20
- derivedCloudId: string;
21
- }
22
- export declare function parseInstallationContext(installationContext: string): EnrichedAri;
16
+ export declare function parseInstallationContext(installationContext: string): AnyAri;
23
17
  export declare const createWorkspaceAriByProduct: {
24
18
  jira: (siteId: string, activationId: string) => JiraWorkspaceAri;
25
19
  confluence: (siteId: string, activationId: string) => ConfluenceWorkspaceAri;
26
20
  compass: (siteId: string, workspaceId: string) => CompassWorkspaceAri;
21
+ graph: (_siteId: string, activationId: string) => GraphWorkspaceAri;
27
22
  };
28
23
  //# sourceMappingURL=ari.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ari.d.ts","sourceRoot":"","sources":["../../src/ari/ari.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAItH,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;;CAI3D;AACD,qBAAa,mCAAoC,SAAQ,KAAK;;CAI7D;AAED,qBAAa,wCAAyC,SAAQ,KAAK;;CAIlE;AASD,MAAM,WAAW,WAAY,SAAQ,MAAM;IACzC,cAAc,EAAE,MAAM,CAAC;CACxB;AACD,wBAAgB,wBAAwB,CAAC,mBAAmB,EAAE,MAAM,GAAG,WAAW,CAyBjF;AAED,eAAO,MAAM,2BAA2B;mBACvB,MAAM,gBAAgB,MAAM;yBACtB,MAAM,gBAAgB,MAAM;sBAC/B,MAAM,eAAe,MAAM;CAC9C,CAAC"}
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;;CAI3D;AACD,qBAAa,sCAAuC,SAAQ,KAAK;;CAIhE;AASD,wBAAgB,wBAAwB,CAAC,mBAAmB,EAAE,MAAM,GAAG,MAAM,CAoB5E;AAGD,eAAO,MAAM,2BAA2B;mBACvB,MAAM,gBAAgB,MAAM;yBACtB,MAAM,gBAAgB,MAAM;sBAC/B,MAAM,eAAe,MAAM;qBAC5B,MAAM,gBAAgB,MAAM;CAC9C,CAAC"}
package/out/ari/ari.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createWorkspaceAriByProduct = exports.parseInstallationContext = exports.UnknownBBWorkspaceWithoutResourceIdError = exports.UnknownWorkspaceWithoutCloudIdError = 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.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;
4
4
  const ari_1 = require("@forge/util/packages/ari");
5
5
  const shared_1 = require("../shared");
6
6
  const ui_1 = require("../ui");
@@ -39,18 +39,12 @@ class UnknownSiteWithoutResourceIdError extends Error {
39
39
  }
40
40
  }
41
41
  exports.UnknownSiteWithoutResourceIdError = UnknownSiteWithoutResourceIdError;
42
- class UnknownWorkspaceWithoutCloudIdError extends Error {
42
+ class UnknownWorkspaceWithoutResourceIdError extends Error {
43
43
  constructor() {
44
- super(ui_1.Text.installList.noCloudId);
44
+ super(ui_1.Text.installList.noResourceIdInWorkspace);
45
45
  }
46
46
  }
47
- exports.UnknownWorkspaceWithoutCloudIdError = UnknownWorkspaceWithoutCloudIdError;
48
- class UnknownBBWorkspaceWithoutResourceIdError extends Error {
49
- constructor() {
50
- super(ui_1.Text.installList.bbNoResourceId);
51
- }
52
- }
53
- exports.UnknownBBWorkspaceWithoutResourceIdError = UnknownBBWorkspaceWithoutResourceIdError;
47
+ exports.UnknownWorkspaceWithoutResourceIdError = UnknownWorkspaceWithoutResourceIdError;
54
48
  function parseInstallationContext(installationContext) {
55
49
  const context = ari_1.AnyAri.parse(installationContext);
56
50
  switch (context.resourceType) {
@@ -58,20 +52,11 @@ function parseInstallationContext(installationContext) {
58
52
  if (!context.resourceId) {
59
53
  throw new UnknownSiteWithoutResourceIdError();
60
54
  }
61
- context.derivedCloudId = context.resourceId;
62
55
  break;
63
56
  case exports.WORKSPACE_RESOURCE_TYPE:
64
- if (context.resourceOwner === exports.BITBUCKET_RESOURCE_OWNER) {
65
- if (!context.resourceId) {
66
- throw new UnknownBBWorkspaceWithoutResourceIdError();
67
- }
68
- context.derivedCloudId = context.resourceId;
69
- break;
70
- }
71
- else if (!context.cloudId) {
72
- throw new UnknownWorkspaceWithoutCloudIdError();
57
+ if (!context.resourceId) {
58
+ throw new UnknownWorkspaceWithoutResourceIdError();
73
59
  }
74
- context.derivedCloudId = context.cloudId;
75
60
  break;
76
61
  default:
77
62
  throw new Error('Unknown resource type');
@@ -82,5 +67,6 @@ exports.parseInstallationContext = parseInstallationContext;
82
67
  exports.createWorkspaceAriByProduct = {
83
68
  jira: (siteId, activationId) => ari_1.JiraWorkspaceAri.create({ siteId, activationId }),
84
69
  confluence: (siteId, activationId) => ari_1.ConfluenceWorkspaceAri.create({ siteId, activationId }),
85
- compass: (siteId, workspaceId) => ari_1.CompassWorkspaceAri.create({ siteId, workspaceId })
70
+ compass: (siteId, workspaceId) => ari_1.CompassWorkspaceAri.create({ siteId, workspaceId }),
71
+ graph: (_siteId, activationId) => ari_1.GraphWorkspaceAri.create({ workspaceId: activationId })
86
72
  };