npm package diff
Package: @forge/util
Versions: 1.4.10-next.0 - 1.4.10-next.0-experimental-effab31
File: package/packages/ari/chunk-LCSUZOTX.mjs
Index: package/packages/ari/chunk-LCSUZOTX.mjs
===================================================================
--- package/packages/ari/chunk-LCSUZOTX.mjs
+++ package/packages/ari/chunk-LCSUZOTX.mjs
@@ -1,66 +0,0 @@
-import {
- TownsquareProjectAriResourceOwner,
- TownsquareProjectAriResourceType
-} from "./chunk-ICBJW6N7.mjs";
-import {
- RegisteredAri
-} from "./chunk-CLQNXEWF.mjs";
-import {
- AriParser
-} from "./chunk-HNZGDVUS.mjs";
-
-// src/townsquare/project/manifest.ts
-var townsquareProjectAriStaticOpts = {
- qualifier: "ari",
- platformQualifier: "cloud",
- cloudId: new RegExp("^[a-zA-Z0-9-]+$"),
- resourceOwner: TownsquareProjectAriResourceOwner,
- resourceType: TownsquareProjectAriResourceType,
- resourceIdSlug: "{projectUuid}",
- resourceIdSegmentFormats: {
- projectUuid: /[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}/
- // eslint-disable-line no-useless-escape
- }
-};
-
-// src/townsquare/project/index.ts
-var TownsquareProjectAri = class _TownsquareProjectAri extends RegisteredAri {
- constructor(opts) {
- super(opts);
- this._siteId = opts.cloudId || "", this._projectUuid = opts.resourceIdSegmentValues.projectUuid;
- }
- get siteId() {
- return this._siteId;
- }
- get projectUuid() {
- return this._projectUuid;
- }
- static create(opts) {
- let derivedOpts = {
- qualifier: townsquareProjectAriStaticOpts.qualifier,
- platformQualifier: townsquareProjectAriStaticOpts.platformQualifier,
- cloudId: opts.siteId,
- resourceOwner: townsquareProjectAriStaticOpts.resourceOwner,
- resourceType: townsquareProjectAriStaticOpts.resourceType,
- resourceId: `${opts.projectUuid}`,
- resourceIdSegmentValues: {
- projectUuid: opts.projectUuid
- }
- }, ariOpts = AriParser.fromOpts(derivedOpts, townsquareProjectAriStaticOpts);
- return new _TownsquareProjectAri(ariOpts);
- }
- static parse(maybeAri) {
- let opts = AriParser.fromString(maybeAri, townsquareProjectAriStaticOpts);
- return new _TownsquareProjectAri(opts);
- }
- getVariables() {
- return {
- siteId: this.siteId,
- projectUuid: this.projectUuid
- };
- }
-};
-
-export {
- TownsquareProjectAri
-};