@forge/util

2.0.1-experimental-78908582.0.1-experimental-04cc2b9
packages/ari/chunk-WEFHN67D.mjs
packages/ari/chunk-WEFHN67D.mjsDeleted
−71
Index: package/packages/ari/chunk-WEFHN67D.mjs
===================================================================
--- package/packages/ari/chunk-WEFHN67D.mjs
+++ package/packages/ari/chunk-WEFHN67D.mjs
@@ -1,71 +0,0 @@
-import {
-  CfoAggregateMetricAriResourceOwner,
-  CfoAggregateMetricAriResourceType
-} from "./chunk-3RBVQLLU.mjs";
-import {
-  RegisteredAri
-} from "./chunk-AB4PPISI.mjs";
-import {
-  AriParser
-} from "./chunk-S7RIZVFI.mjs";
-
-// src/cfo/aggregate-metric/manifest.ts
-var cfoAggregateMetricAriStaticOpts = {
-  qualifier: "ari",
-  platformQualifier: "cloud",
-  cloudId: new RegExp("^[a-zA-Z0-9_\\-.]{1,255}$"),
-  resourceOwner: "cfo",
-  resourceType: CfoAggregateMetricAriResourceType,
-  resourceIdSlug: "activation/{activationId}/{aggregateMetricId}",
-  resourceIdSegmentFormats: {
-    activationId: /[a-zA-Z0-9\-]+/,
-    // eslint-disable-line no-useless-escape
-    aggregateMetricId: /[a-fA-F0-9]{64}/
-  }
-};
-
-// src/cfo/aggregate-metric/index.ts
-var CfoAggregateMetricAri = class _CfoAggregateMetricAri extends RegisteredAri {
-  constructor(opts) {
-    super(opts), this._siteId = opts.cloudId || "", this._activationId = opts.resourceIdSegmentValues.activationId, this._aggregateMetricId = opts.resourceIdSegmentValues.aggregateMetricId;
-  }
-  get siteId() {
-    return this._siteId;
-  }
-  get activationId() {
-    return this._activationId;
-  }
-  get aggregateMetricId() {
-    return this._aggregateMetricId;
-  }
-  static create(opts) {
-    let derivedOpts = {
-      qualifier: cfoAggregateMetricAriStaticOpts.qualifier,
-      platformQualifier: cfoAggregateMetricAriStaticOpts.platformQualifier,
-      cloudId: opts.siteId,
-      resourceOwner: cfoAggregateMetricAriStaticOpts.resourceOwner,
-      resourceType: cfoAggregateMetricAriStaticOpts.resourceType,
-      resourceId: `activation/${opts.activationId}/${opts.aggregateMetricId}`,
-      resourceIdSegmentValues: {
-        activationId: opts.activationId,
-        aggregateMetricId: opts.aggregateMetricId
-      }
-    }, ariOpts = AriParser.fromOpts(derivedOpts, cfoAggregateMetricAriStaticOpts);
-    return new _CfoAggregateMetricAri(ariOpts);
-  }
-  static parse(maybeAri) {
-    let opts = AriParser.fromString(maybeAri, cfoAggregateMetricAriStaticOpts);
-    return new _CfoAggregateMetricAri(opts);
-  }
-  getVariables() {
-    return {
-      siteId: this.siteId,
-      activationId: this.activationId,
-      aggregateMetricId: this.aggregateMetricId
-    };
-  }
-};
-
-export {
-  CfoAggregateMetricAri
-};