@forge/api 3.0.0-next.2 → 3.0.0-next.3

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,11 @@
1
1
  # @forge/api
2
2
 
3
+ ## 3.0.0-next.3
4
+
5
+ ### Minor Changes
6
+
7
+ - f3ca9bf: Update export type for InstallationAri and EnvironmentAri
8
+
3
9
  ## 3.0.0-next.2
4
10
 
5
11
  ### 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 declare class InstallationAri implements Ari {
14
- constructor(installationId: string);
15
- private readonly _installationId;
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
@@ -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,KAAK,EAAE,MAAM,CAAC;IAAC,aAAa,EAAE,MAAM,CAAA;CAAE,CAAC;AAC5E,eAAO,MAAM,iBAAiB,UAAW,MAAM,iBAAiB,MAAM,KAAG,cACf,CAAC;AAI3D,qBAAa,eAAgB,YAAW,GAAG;gBAC7B,cAAc,EAAE,MAAM;IAIlC,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAS;IAEzC,IAAW,cAAc,IAAI,MAAM,CAElC;IAEM,QAAQ,IAAI,MAAM;CAG1B;AACD,eAAO,MAAM,kBAAkB,mBAAoB,MAAM,KAAG,eAAsD,CAAC"}
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.InstallationAri = exports.getEnvironmentAri = exports.getAppAri = void 0;
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 InstallationAri {
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
- exports.InstallationAri = InstallationAri;
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.2",
3
+ "version": "3.0.0-next.3",
4
4
  "description": "Forge API methods",
5
5
  "author": "Atlassian",
6
6
  "license": "UNLICENSED",