@forge/util

2.0.12.0.1-experimental-7890858
packages/ari/chunk-BYO6NU4L.mjs
packages/ari/chunk-BYO6NU4L.mjsDeleted
−74
Index: package/packages/ari/chunk-BYO6NU4L.mjs
===================================================================
--- package/packages/ari/chunk-BYO6NU4L.mjs
+++ package/packages/ari/chunk-BYO6NU4L.mjs
@@ -1,74 +0,0 @@
-import {
-  GoalMetricUpdateAriResourceOwner,
-  GoalMetricUpdateAriResourceType
-} from "./chunk-CIDEQG7W.mjs";
-import {
-  RegisteredAri
-} from "./chunk-AB4PPISI.mjs";
-import {
-  AriParser
-} from "./chunk-S7RIZVFI.mjs";
-
-// src/goal/metric-update/manifest.ts
-var goalMetricUpdateAriStaticOpts = {
-  qualifier: "ari",
-  platformQualifier: "cloud",
-  cloudId: new RegExp("^[a-zA-Z0-9_\\-.]{1,255}$"),
-  // eslint-disable-line no-useless-escape
-  resourceOwner: GoalMetricUpdateAriResourceOwner,
-  resourceType: GoalMetricUpdateAriResourceType,
-  resourceIdSlug: "{activationId}/{goalMetricUpdateId}",
-  resourceIdSegmentFormats: {
-    activationId: /[a-zA-Z0-9\-]+/,
-    // eslint-disable-line no-useless-escape
-    goalMetricUpdateId: /[!a-zA-Z0-9\-_.~@:;{}=]+(\/[!a-zA-Z0-9\-_.~@:;{}=]+)*/
-    // eslint-disable-line no-useless-escape
-  }
-};
-
-// src/goal/metric-update/index.ts
-var GoalMetricUpdateAri = class _GoalMetricUpdateAri extends RegisteredAri {
-  constructor(opts) {
-    super(opts);
-    this._siteId = opts.cloudId || "", this._activationId = opts.resourceIdSegmentValues.activationId, this._goalMetricUpdateId = opts.resourceIdSegmentValues.goalMetricUpdateId;
-  }
-  get siteId() {
-    return this._siteId;
-  }
-  get activationId() {
-    return this._activationId;
-  }
-  get goalMetricUpdateId() {
-    return this._goalMetricUpdateId;
-  }
-  static create(opts) {
-    let derivedOpts = {
-      qualifier: goalMetricUpdateAriStaticOpts.qualifier,
-      platformQualifier: goalMetricUpdateAriStaticOpts.platformQualifier,
-      cloudId: opts.siteId,
-      resourceOwner: goalMetricUpdateAriStaticOpts.resourceOwner,
-      resourceType: goalMetricUpdateAriStaticOpts.resourceType,
-      resourceId: `${opts.activationId}/${opts.goalMetricUpdateId}`,
-      resourceIdSegmentValues: {
-        activationId: opts.activationId,
-        goalMetricUpdateId: opts.goalMetricUpdateId
-      }
-    }, ariOpts = AriParser.fromOpts(derivedOpts, goalMetricUpdateAriStaticOpts);
-    return new _GoalMetricUpdateAri(ariOpts);
-  }
-  static parse(maybeAri) {
-    let opts = AriParser.fromString(maybeAri, goalMetricUpdateAriStaticOpts);
-    return new _GoalMetricUpdateAri(opts);
-  }
-  getVariables() {
-    return {
-      siteId: this.siteId,
-      activationId: this.activationId,
-      goalMetricUpdateId: this.goalMetricUpdateId
-    };
-  }
-};
-
-export {
-  GoalMetricUpdateAri
-};