@forge/util

2.0.1-experimental-78908582.0.1-experimental-04cc2b9
packages/ari/chunk-H2MZ4LLS.mjs
packages/ari/chunk-H2MZ4LLS.mjsDeleted
−71
Index: package/packages/ari/chunk-H2MZ4LLS.mjs
===================================================================
--- package/packages/ari/chunk-H2MZ4LLS.mjs
+++ package/packages/ari/chunk-H2MZ4LLS.mjs
@@ -1,71 +0,0 @@
-import {
-  MercuryCostPeriodValueAriResourceOwner,
-  MercuryCostPeriodValueAriResourceType
-} from "./chunk-IPBX4SM3.mjs";
-import {
-  RegisteredAri
-} from "./chunk-AB4PPISI.mjs";
-import {
-  AriParser
-} from "./chunk-S7RIZVFI.mjs";
-
-// src/mercury/cost-period-value/manifest.ts
-var mercuryCostPeriodValueAriStaticOpts = {
-  qualifier: "ari",
-  platformQualifier: "cloud",
-  cloudId: new RegExp("^[a-zA-Z0-9_\\-.]{1,255}$"),
-  resourceOwner: MercuryCostPeriodValueAriResourceOwner,
-  resourceType: MercuryCostPeriodValueAriResourceType,
-  resourceIdSlug: "workspace/{workspaceId}/{costPeriodValueId}",
-  resourceIdSegmentFormats: {
-    workspaceId: /[a-zA-Z0-9\-]+/,
-    // eslint-disable-line no-useless-escape
-    costPeriodValueId: /[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}/
-  }
-};
-
-// src/mercury/cost-period-value/index.ts
-var MercuryCostPeriodValueAri = class _MercuryCostPeriodValueAri extends RegisteredAri {
-  constructor(opts) {
-    super(opts), this._siteId = opts.cloudId || "", this._workspaceId = opts.resourceIdSegmentValues.workspaceId, this._costPeriodValueId = opts.resourceIdSegmentValues.costPeriodValueId;
-  }
-  get siteId() {
-    return this._siteId;
-  }
-  get workspaceId() {
-    return this._workspaceId;
-  }
-  get costPeriodValueId() {
-    return this._costPeriodValueId;
-  }
-  static create(opts) {
-    let derivedOpts = {
-      qualifier: mercuryCostPeriodValueAriStaticOpts.qualifier,
-      platformQualifier: mercuryCostPeriodValueAriStaticOpts.platformQualifier,
-      cloudId: opts.siteId,
-      resourceOwner: mercuryCostPeriodValueAriStaticOpts.resourceOwner,
-      resourceType: mercuryCostPeriodValueAriStaticOpts.resourceType,
-      resourceId: `workspace/${opts.workspaceId}/${opts.costPeriodValueId}`,
-      resourceIdSegmentValues: {
-        workspaceId: opts.workspaceId,
-        costPeriodValueId: opts.costPeriodValueId
-      }
-    }, ariOpts = AriParser.fromOpts(derivedOpts, mercuryCostPeriodValueAriStaticOpts);
-    return new _MercuryCostPeriodValueAri(ariOpts);
-  }
-  static parse(maybeAri) {
-    let opts = AriParser.fromString(maybeAri, mercuryCostPeriodValueAriStaticOpts);
-    return new _MercuryCostPeriodValueAri(opts);
-  }
-  getVariables() {
-    return {
-      siteId: this.siteId,
-      workspaceId: this.workspaceId,
-      costPeriodValueId: this.costPeriodValueId
-    };
-  }
-};
-
-export {
-  MercuryCostPeriodValueAri
-};