@forge/util
2.0.12.0.1-experimental-7890858
packages/ari/chunk-VMDV35HO.mjs−
packages/ari/chunk-VMDV35HO.mjsDeleted−74
Index: package/packages/ari/chunk-VMDV35HO.mjs
===================================================================
--- package/packages/ari/chunk-VMDV35HO.mjs
+++ package/packages/ari/chunk-VMDV35HO.mjs
@@ -1,74 +0,0 @@
-import {
- MercuryCommentAriResourceOwner,
- MercuryCommentAriResourceType
-} from "./chunk-IP7NNLNW.mjs";
-import {
- RegisteredAri
-} from "./chunk-AB4PPISI.mjs";
-import {
- AriParser
-} from "./chunk-S7RIZVFI.mjs";
-
-// src/mercury/comment/manifest.ts
-var mercuryCommentAriStaticOpts = {
- qualifier: "ari",
- platformQualifier: "cloud",
- cloudId: new RegExp("^[a-zA-Z0-9_\\-.]{1,255}$"),
- // eslint-disable-line no-useless-escape
- resourceOwner: MercuryCommentAriResourceOwner,
- resourceType: MercuryCommentAriResourceType,
- resourceIdSlug: "workspace/{workspaceId}/{commentUuid}",
- resourceIdSegmentFormats: {
- workspaceId: /[a-zA-Z0-9\-]+/,
- // eslint-disable-line no-useless-escape
- commentUuid: /[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/mercury/comment/index.ts
-var MercuryCommentAri = class _MercuryCommentAri extends RegisteredAri {
- constructor(opts) {
- super(opts);
- this._siteId = opts.cloudId || "", this._workspaceId = opts.resourceIdSegmentValues.workspaceId, this._commentUuid = opts.resourceIdSegmentValues.commentUuid;
- }
- get siteId() {
- return this._siteId;
- }
- get workspaceId() {
- return this._workspaceId;
- }
- get commentUuid() {
- return this._commentUuid;
- }
- static create(opts) {
- let derivedOpts = {
- qualifier: mercuryCommentAriStaticOpts.qualifier,
- platformQualifier: mercuryCommentAriStaticOpts.platformQualifier,
- cloudId: opts.siteId,
- resourceOwner: mercuryCommentAriStaticOpts.resourceOwner,
- resourceType: mercuryCommentAriStaticOpts.resourceType,
- resourceId: `workspace/${opts.workspaceId}/${opts.commentUuid}`,
- resourceIdSegmentValues: {
- workspaceId: opts.workspaceId,
- commentUuid: opts.commentUuid
- }
- }, ariOpts = AriParser.fromOpts(derivedOpts, mercuryCommentAriStaticOpts);
- return new _MercuryCommentAri(ariOpts);
- }
- static parse(maybeAri) {
- let opts = AriParser.fromString(maybeAri, mercuryCommentAriStaticOpts);
- return new _MercuryCommentAri(opts);
- }
- getVariables() {
- return {
- siteId: this.siteId,
- workspaceId: this.workspaceId,
- commentUuid: this.commentUuid
- };
- }
-};
-
-export {
- MercuryCommentAri
-};