npm package diff

Package: @forge/util

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

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

Index: package/packages/ari/chunk-IAJNKEZT.mjs
===================================================================
--- package/packages/ari/chunk-IAJNKEZT.mjs
+++ package/packages/ari/chunk-IAJNKEZT.mjs
@@ -1,69 +0,0 @@
-import {
-  HelpRequestFormAriResourceOwner,
-  HelpRequestFormAriResourceType
-} from "./chunk-QF6HVRWR.mjs";
-import {
-  RegisteredAri
-} from "./chunk-CLQNXEWF.mjs";
-import {
-  AriParser
-} from "./chunk-HNZGDVUS.mjs";
-
-// src/help/request-form/manifest.ts
-var helpRequestFormAriStaticOpts = {
-  qualifier: "ari",
-  platformQualifier: "cloud",
-  cloudId: new RegExp("^$"),
-  resourceOwner: HelpRequestFormAriResourceOwner,
-  resourceType: HelpRequestFormAriResourceType,
-  resourceIdSlug: "{activationId}/{helpObjectId}",
-  resourceIdSegmentFormats: {
-    activationId: /[a-zA-Z0-9\-]+/,
-    // eslint-disable-line no-useless-escape
-    helpObjectId: /[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}/
-    // eslint-disable-line no-useless-escape
-  }
-};
-
-// src/help/request-form/index.ts
-var HelpRequestFormAri = class _HelpRequestFormAri extends RegisteredAri {
-  constructor(opts) {
-    super(opts);
-    this._activationId = opts.resourceIdSegmentValues.activationId, this._helpObjectId = opts.resourceIdSegmentValues.helpObjectId;
-  }
-  get activationId() {
-    return this._activationId;
-  }
-  get helpObjectId() {
-    return this._helpObjectId;
-  }
-  static create(opts) {
-    let derivedOpts = {
-      qualifier: helpRequestFormAriStaticOpts.qualifier,
-      platformQualifier: helpRequestFormAriStaticOpts.platformQualifier,
-      cloudId: void 0,
-      resourceOwner: helpRequestFormAriStaticOpts.resourceOwner,
-      resourceType: helpRequestFormAriStaticOpts.resourceType,
-      resourceId: `${opts.activationId}/${opts.helpObjectId}`,
-      resourceIdSegmentValues: {
-        activationId: opts.activationId,
-        helpObjectId: opts.helpObjectId
-      }
-    }, ariOpts = AriParser.fromOpts(derivedOpts, helpRequestFormAriStaticOpts);
-    return new _HelpRequestFormAri(ariOpts);
-  }
-  static parse(maybeAri) {
-    let opts = AriParser.fromString(maybeAri, helpRequestFormAriStaticOpts);
-    return new _HelpRequestFormAri(opts);
-  }
-  getVariables() {
-    return {
-      activationId: this.activationId,
-      helpObjectId: this.helpObjectId
-    };
-  }
-};
-
-export {
-  HelpRequestFormAri
-};