@forge/util

2.0.12.0.1-experimental-7890858
packages/ari/chunk-A7QELJAV.mjs
+packages/ari/chunk-A7QELJAV.mjsNew file
+71
Index: package/packages/ari/chunk-A7QELJAV.mjs
===================================================================
--- package/packages/ari/chunk-A7QELJAV.mjs
+++ package/packages/ari/chunk-A7QELJAV.mjs
@@ -0,0 +1,71 @@
+import {
+  LoomCommentReplyAriResourceOwner,
+  LoomCommentReplyAriResourceType
+} from "./chunk-MTV3UIOK.mjs";
+import {
+  RegisteredAri
+} from "./chunk-AB4PPISI.mjs";
+import {
+  AriParser
+} from "./chunk-S7RIZVFI.mjs";
+
+// src/loom/comment-reply/manifest.ts
+var loomCommentReplyAriStaticOpts = {
+  qualifier: "ari",
+  platformQualifier: "cloud",
+  cloudId: new RegExp("^[a-zA-Z0-9_\\-.]{1,255}$"),
+  resourceOwner: LoomCommentReplyAriResourceOwner,
+  resourceType: LoomCommentReplyAriResourceType,
+  resourceIdSlug: "activation/{activationId}/{commentReplyId}",
+  resourceIdSegmentFormats: {
+    activationId: /[a-zA-Z0-9\-]+/,
+    // eslint-disable-line no-useless-escape
+    commentReplyId: /(?:[0-9]+|[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12})/
+  }
+};
+
+// src/loom/comment-reply/index.ts
+var LoomCommentReplyAri = class _LoomCommentReplyAri extends RegisteredAri {
+  constructor(opts) {
+    super(opts), this._siteId = opts.cloudId || "", this._activationId = opts.resourceIdSegmentValues.activationId, this._commentReplyId = opts.resourceIdSegmentValues.commentReplyId;
+  }
+  get siteId() {
+    return this._siteId;
+  }
+  get activationId() {
+    return this._activationId;
+  }
+  get commentReplyId() {
+    return this._commentReplyId;
+  }
+  static create(opts) {
+    let derivedOpts = {
+      qualifier: loomCommentReplyAriStaticOpts.qualifier,
+      platformQualifier: loomCommentReplyAriStaticOpts.platformQualifier,
+      cloudId: opts.siteId,
+      resourceOwner: loomCommentReplyAriStaticOpts.resourceOwner,
+      resourceType: loomCommentReplyAriStaticOpts.resourceType,
+      resourceId: `activation/${opts.activationId}/${opts.commentReplyId}`,
+      resourceIdSegmentValues: {
+        activationId: opts.activationId,
+        commentReplyId: opts.commentReplyId
+      }
+    }, ariOpts = AriParser.fromOpts(derivedOpts, loomCommentReplyAriStaticOpts);
+    return new _LoomCommentReplyAri(ariOpts);
+  }
+  static parse(maybeAri) {
+    let opts = AriParser.fromString(maybeAri, loomCommentReplyAriStaticOpts);
+    return new _LoomCommentReplyAri(opts);
+  }
+  getVariables() {
+    return {
+      siteId: this.siteId,
+      activationId: this.activationId,
+      commentReplyId: this.commentReplyId
+    };
+  }
+};
+
+export {
+  LoomCommentReplyAri
+};