npm package diff

Package: @forge/util

Versions: 1.4.10-next.0 - 1.4.10-next.0-experimental-effab31

File: package/packages/ari/chunk-UI5URWEI.mjs

Index: package/packages/ari/chunk-UI5URWEI.mjs
===================================================================
--- package/packages/ari/chunk-UI5URWEI.mjs
+++ package/packages/ari/chunk-UI5URWEI.mjs
@@ -1,73 +0,0 @@
-import {
-  BeaconAlertAriResourceOwner,
-  BeaconAlertAriResourceType
-} from "./chunk-TJOHF5RH.mjs";
-import {
-  RegisteredAri
-} from "./chunk-CLQNXEWF.mjs";
-import {
-  AriParser
-} from "./chunk-HNZGDVUS.mjs";
-
-// src/beacon/alert/manifest.ts
-var beaconAlertAriStaticOpts = {
-  qualifier: "ari",
-  platformQualifier: "cloud",
-  cloudId: new RegExp("^[a-zA-Z0-9-]+$"),
-  resourceOwner: BeaconAlertAriResourceOwner,
-  resourceType: BeaconAlertAriResourceType,
-  resourceIdSlug: "{workspaceId}/{alertId}",
-  resourceIdSegmentFormats: {
-    workspaceId: /[a-zA-Z0-9\-]+/,
-    // eslint-disable-line no-useless-escape
-    alertId: /[!a-zA-Z0-9\-_.~@:{}=]+(\/[!a-zA-Z0-9\-_.~@:{}=]+)*/
-    // eslint-disable-line no-useless-escape
-  }
-};
-
-// src/beacon/alert/index.ts
-var BeaconAlertAri = class _BeaconAlertAri extends RegisteredAri {
-  constructor(opts) {
-    super(opts);
-    this._siteId = opts.cloudId || "", this._workspaceId = opts.resourceIdSegmentValues.workspaceId, this._alertId = opts.resourceIdSegmentValues.alertId;
-  }
-  get siteId() {
-    return this._siteId;
-  }
-  get workspaceId() {
-    return this._workspaceId;
-  }
-  get alertId() {
-    return this._alertId;
-  }
-  static create(opts) {
-    let derivedOpts = {
-      qualifier: beaconAlertAriStaticOpts.qualifier,
-      platformQualifier: beaconAlertAriStaticOpts.platformQualifier,
-      cloudId: opts.siteId,
-      resourceOwner: beaconAlertAriStaticOpts.resourceOwner,
-      resourceType: beaconAlertAriStaticOpts.resourceType,
-      resourceId: `${opts.workspaceId}/${opts.alertId}`,
-      resourceIdSegmentValues: {
-        workspaceId: opts.workspaceId,
-        alertId: opts.alertId
-      }
-    }, ariOpts = AriParser.fromOpts(derivedOpts, beaconAlertAriStaticOpts);
-    return new _BeaconAlertAri(ariOpts);
-  }
-  static parse(maybeAri) {
-    let opts = AriParser.fromString(maybeAri, beaconAlertAriStaticOpts);
-    return new _BeaconAlertAri(opts);
-  }
-  getVariables() {
-    return {
-      siteId: this.siteId,
-      workspaceId: this.workspaceId,
-      alertId: this.alertId
-    };
-  }
-};
-
-export {
-  BeaconAlertAri
-};