@forge/util

2.0.1-experimental-78908582.0.1-experimental-04cc2b9
packages/ari/chunk-3UZY62Y3.mjs
packages/ari/chunk-3UZY62Y3.mjsDeleted
−67
Index: package/packages/ari/chunk-3UZY62Y3.mjs
===================================================================
--- package/packages/ari/chunk-3UZY62Y3.mjs
+++ package/packages/ari/chunk-3UZY62Y3.mjs
@@ -1,67 +0,0 @@
-import {
-  GrowthPlatformContentEvaluationCriteriaAriResourceOwner,
-  GrowthPlatformContentEvaluationCriteriaAriResourceType
-} from "./chunk-UEGPDI6T.mjs";
-import {
-  RegisteredAri
-} from "./chunk-AB4PPISI.mjs";
-import {
-  AriParser
-} from "./chunk-S7RIZVFI.mjs";
-
-// src/growth-platform/content-evaluation-criteria/manifest.ts
-var growthPlatformContentEvaluationCriteriaAriStaticOpts = {
-  qualifier: "ari",
-  platformQualifier: "cloud",
-  cloudId: new RegExp("^$"),
-  resourceOwner: GrowthPlatformContentEvaluationCriteriaAriResourceOwner,
-  resourceType: GrowthPlatformContentEvaluationCriteriaAriResourceType,
-  resourceIdSlug: "activation/{activationId}/{contentId}",
-  resourceIdSegmentFormats: {
-    activationId: /[a-zA-Z0-9\-]+/,
-    // eslint-disable-line no-useless-escape
-    contentId: /[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}/
-  }
-};
-
-// src/growth-platform/content-evaluation-criteria/index.ts
-var GrowthPlatformContentEvaluationCriteriaAri = class _GrowthPlatformContentEvaluationCriteriaAri extends RegisteredAri {
-  constructor(opts) {
-    super(opts), this._activationId = opts.resourceIdSegmentValues.activationId, this._contentId = opts.resourceIdSegmentValues.contentId;
-  }
-  get activationId() {
-    return this._activationId;
-  }
-  get contentId() {
-    return this._contentId;
-  }
-  static create(opts) {
-    let derivedOpts = {
-      qualifier: growthPlatformContentEvaluationCriteriaAriStaticOpts.qualifier,
-      platformQualifier: growthPlatformContentEvaluationCriteriaAriStaticOpts.platformQualifier,
-      cloudId: void 0,
-      resourceOwner: growthPlatformContentEvaluationCriteriaAriStaticOpts.resourceOwner,
-      resourceType: growthPlatformContentEvaluationCriteriaAriStaticOpts.resourceType,
-      resourceId: `activation/${opts.activationId}/${opts.contentId}`,
-      resourceIdSegmentValues: {
-        activationId: opts.activationId,
-        contentId: opts.contentId
-      }
-    }, ariOpts = AriParser.fromOpts(derivedOpts, growthPlatformContentEvaluationCriteriaAriStaticOpts);
-    return new _GrowthPlatformContentEvaluationCriteriaAri(ariOpts);
-  }
-  static parse(maybeAri) {
-    let opts = AriParser.fromString(maybeAri, growthPlatformContentEvaluationCriteriaAriStaticOpts);
-    return new _GrowthPlatformContentEvaluationCriteriaAri(opts);
-  }
-  getVariables() {
-    return {
-      activationId: this.activationId,
-      contentId: this.contentId
-    };
-  }
-};
-
-export {
-  GrowthPlatformContentEvaluationCriteriaAri
-};