@forge/util

2.0.12.0.1-experimental-7890858
packages/ari/chunk-7FZVY6O4.mjs
+packages/ari/chunk-7FZVY6O4.mjsNew file
+64
Index: package/packages/ari/chunk-7FZVY6O4.mjs
===================================================================
--- package/packages/ari/chunk-7FZVY6O4.mjs
+++ package/packages/ari/chunk-7FZVY6O4.mjs
@@ -0,0 +1,64 @@
+import {
+  ConfluenceUserPropertyAriResourceOwner,
+  ConfluenceUserPropertyAriResourceType
+} from "./chunk-NW7N5UEI.mjs";
+import {
+  RegisteredAri
+} from "./chunk-AB4PPISI.mjs";
+import {
+  AriParser
+} from "./chunk-S7RIZVFI.mjs";
+
+// src/confluence/user-property/manifest.ts
+var confluenceUserPropertyAriStaticOpts = {
+  qualifier: "ari",
+  platformQualifier: "cloud",
+  cloudId: new RegExp("^[a-zA-Z0-9_\\-.]{1,255}$"),
+  resourceOwner: ConfluenceUserPropertyAriResourceOwner,
+  resourceType: ConfluenceUserPropertyAriResourceType,
+  resourceIdSlug: "{userPropertyId}",
+  resourceIdSegmentFormats: {
+    userPropertyId: /[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}/
+  }
+};
+
+// src/confluence/user-property/index.ts
+var ConfluenceUserPropertyAri = class _ConfluenceUserPropertyAri extends RegisteredAri {
+  constructor(opts) {
+    super(opts), this._siteId = opts.cloudId || "", this._userPropertyId = opts.resourceIdSegmentValues.userPropertyId;
+  }
+  get siteId() {
+    return this._siteId;
+  }
+  get userPropertyId() {
+    return this._userPropertyId;
+  }
+  static create(opts) {
+    let derivedOpts = {
+      qualifier: confluenceUserPropertyAriStaticOpts.qualifier,
+      platformQualifier: confluenceUserPropertyAriStaticOpts.platformQualifier,
+      cloudId: opts.siteId,
+      resourceOwner: confluenceUserPropertyAriStaticOpts.resourceOwner,
+      resourceType: confluenceUserPropertyAriStaticOpts.resourceType,
+      resourceId: `${opts.userPropertyId}`,
+      resourceIdSegmentValues: {
+        userPropertyId: opts.userPropertyId
+      }
+    }, ariOpts = AriParser.fromOpts(derivedOpts, confluenceUserPropertyAriStaticOpts);
+    return new _ConfluenceUserPropertyAri(ariOpts);
+  }
+  static parse(maybeAri) {
+    let opts = AriParser.fromString(maybeAri, confluenceUserPropertyAriStaticOpts);
+    return new _ConfluenceUserPropertyAri(opts);
+  }
+  getVariables() {
+    return {
+      siteId: this.siteId,
+      userPropertyId: this.userPropertyId
+    };
+  }
+};
+
+export {
+  ConfluenceUserPropertyAri
+};