@forge/util
2.0.1-experimental-78908582.0.1-experimental-04cc2b9
packages/ari/chunk-FGFYXWBG.mjs−
packages/ari/chunk-FGFYXWBG.mjsDeleted−71
Index: package/packages/ari/chunk-FGFYXWBG.mjs
===================================================================
--- package/packages/ari/chunk-FGFYXWBG.mjs
+++ package/packages/ari/chunk-FGFYXWBG.mjs
@@ -1,71 +0,0 @@
-import {
- CfoPageViewedAriResourceOwner,
- CfoPageViewedAriResourceType
-} from "./chunk-7GMPWLIX.mjs";
-import {
- RegisteredAri
-} from "./chunk-AB4PPISI.mjs";
-import {
- AriParser
-} from "./chunk-S7RIZVFI.mjs";
-
-// src/cfo/page-viewed/manifest.ts
-var cfoPageViewedAriStaticOpts = {
- qualifier: "ari",
- platformQualifier: "cloud",
- cloudId: new RegExp("^[a-zA-Z0-9_\\-.]{1,255}$"),
- resourceOwner: "cfo",
- resourceType: CfoPageViewedAriResourceType,
- resourceIdSlug: "activation/{activationId}/{eventId}",
- resourceIdSegmentFormats: {
- activationId: /[a-zA-Z0-9\-]+/,
- // eslint-disable-line no-useless-escape
- eventId: /[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}/
- }
-};
-
-// src/cfo/page-viewed/index.ts
-var CfoPageViewedAri = class _CfoPageViewedAri extends RegisteredAri {
- constructor(opts) {
- super(opts), this._siteId = opts.cloudId || "", this._activationId = opts.resourceIdSegmentValues.activationId, this._eventId = opts.resourceIdSegmentValues.eventId;
- }
- get siteId() {
- return this._siteId;
- }
- get activationId() {
- return this._activationId;
- }
- get eventId() {
- return this._eventId;
- }
- static create(opts) {
- let derivedOpts = {
- qualifier: cfoPageViewedAriStaticOpts.qualifier,
- platformQualifier: cfoPageViewedAriStaticOpts.platformQualifier,
- cloudId: opts.siteId,
- resourceOwner: cfoPageViewedAriStaticOpts.resourceOwner,
- resourceType: cfoPageViewedAriStaticOpts.resourceType,
- resourceId: `activation/${opts.activationId}/${opts.eventId}`,
- resourceIdSegmentValues: {
- activationId: opts.activationId,
- eventId: opts.eventId
- }
- }, ariOpts = AriParser.fromOpts(derivedOpts, cfoPageViewedAriStaticOpts);
- return new _CfoPageViewedAri(ariOpts);
- }
- static parse(maybeAri) {
- let opts = AriParser.fromString(maybeAri, cfoPageViewedAriStaticOpts);
- return new _CfoPageViewedAri(opts);
- }
- getVariables() {
- return {
- siteId: this.siteId,
- activationId: this.activationId,
- eventId: this.eventId
- };
- }
-};
-
-export {
- CfoPageViewedAri
-};