@forge/util

2.0.12.0.1-experimental-7890858
packages/ari/chunk-Z2GE2KC6.mjs
+packages/ari/chunk-Z2GE2KC6.mjsNew file
+66
Index: package/packages/ari/chunk-Z2GE2KC6.mjs
===================================================================
--- package/packages/ari/chunk-Z2GE2KC6.mjs
+++ package/packages/ari/chunk-Z2GE2KC6.mjs
@@ -0,0 +1,66 @@
+import {
+  GoogleGoogleDriveCommentAriResourceOwner,
+  GoogleGoogleDriveCommentAriResourceType
+} from "./chunk-66PT5AOJ.mjs";
+import {
+  RegisteredAri
+} from "./chunk-AB4PPISI.mjs";
+import {
+  AriParser
+} from "./chunk-S7RIZVFI.mjs";
+
+// src/google.google-drive/comment/manifest.ts
+var googleGoogleDriveCommentAriStaticOpts = {
+  qualifier: "ari",
+  platformQualifier: "third-party",
+  cloudId: new RegExp("^$"),
+  resourceOwner: GoogleGoogleDriveCommentAriResourceOwner,
+  resourceType: GoogleGoogleDriveCommentAriResourceType,
+  resourceIdSlug: "document/{documentId}/comment/{commentId}",
+  resourceIdSegmentFormats: {
+    documentId: /[a-zA-Z0-9_-]+/,
+    commentId: /[a-zA-Z0-9_-]+/
+  }
+};
+
+// src/google.google-drive/comment/index.ts
+var GoogleGoogleDriveCommentAri = class _GoogleGoogleDriveCommentAri extends RegisteredAri {
+  constructor(opts) {
+    super(opts), this._documentId = opts.resourceIdSegmentValues.documentId, this._commentId = opts.resourceIdSegmentValues.commentId;
+  }
+  get documentId() {
+    return this._documentId;
+  }
+  get commentId() {
+    return this._commentId;
+  }
+  static create(opts) {
+    let derivedOpts = {
+      qualifier: googleGoogleDriveCommentAriStaticOpts.qualifier,
+      platformQualifier: googleGoogleDriveCommentAriStaticOpts.platformQualifier,
+      cloudId: void 0,
+      resourceOwner: googleGoogleDriveCommentAriStaticOpts.resourceOwner,
+      resourceType: googleGoogleDriveCommentAriStaticOpts.resourceType,
+      resourceId: `document/${opts.documentId}/comment/${opts.commentId}`,
+      resourceIdSegmentValues: {
+        documentId: opts.documentId,
+        commentId: opts.commentId
+      }
+    }, ariOpts = AriParser.fromOpts(derivedOpts, googleGoogleDriveCommentAriStaticOpts);
+    return new _GoogleGoogleDriveCommentAri(ariOpts);
+  }
+  static parse(maybeAri) {
+    let opts = AriParser.fromString(maybeAri, googleGoogleDriveCommentAriStaticOpts);
+    return new _GoogleGoogleDriveCommentAri(opts);
+  }
+  getVariables() {
+    return {
+      documentId: this.documentId,
+      commentId: this.commentId
+    };
+  }
+};
+
+export {
+  GoogleGoogleDriveCommentAri
+};