@forge/util

2.0.12.0.1-experimental-7890858
packages/ari/chunk-5IA44YBW.mjs
+packages/ari/chunk-5IA44YBW.mjsNew file
+60
Index: package/packages/ari/chunk-5IA44YBW.mjs
===================================================================
--- package/packages/ari/chunk-5IA44YBW.mjs
+++ package/packages/ari/chunk-5IA44YBW.mjs
@@ -0,0 +1,60 @@
+import {
+  PlatformEnterpriseJiraSoftwareAriResourceOwner,
+  PlatformEnterpriseJiraSoftwareAriResourceType
+} from "./chunk-QJDWLFJZ.mjs";
+import {
+  RegisteredAri
+} from "./chunk-AB4PPISI.mjs";
+import {
+  AriParser
+} from "./chunk-S7RIZVFI.mjs";
+
+// src/platform/enterprise-jira-software/manifest.ts
+var platformEnterpriseJiraSoftwareAriStaticOpts = {
+  qualifier: "ari",
+  platformQualifier: "cloud",
+  cloudId: new RegExp("^$"),
+  resourceOwner: PlatformEnterpriseJiraSoftwareAriResourceOwner,
+  resourceType: PlatformEnterpriseJiraSoftwareAriResourceType,
+  resourceIdSlug: "{productEntityId}",
+  resourceIdSegmentFormats: {
+    productEntityId: /[!a-zA-Z0-9\-_.~@:;{}=]+(\/[!a-zA-Z0-9\-_.~@:;{}=]+)*/
+  }
+};
+
+// src/platform/enterprise-jira-software/index.ts
+var PlatformEnterpriseJiraSoftwareAri = class _PlatformEnterpriseJiraSoftwareAri extends RegisteredAri {
+  constructor(opts) {
+    super(opts), this._productEntityId = opts.resourceIdSegmentValues.productEntityId;
+  }
+  get productEntityId() {
+    return this._productEntityId;
+  }
+  static create(opts) {
+    let derivedOpts = {
+      qualifier: platformEnterpriseJiraSoftwareAriStaticOpts.qualifier,
+      platformQualifier: platformEnterpriseJiraSoftwareAriStaticOpts.platformQualifier,
+      cloudId: void 0,
+      resourceOwner: platformEnterpriseJiraSoftwareAriStaticOpts.resourceOwner,
+      resourceType: platformEnterpriseJiraSoftwareAriStaticOpts.resourceType,
+      resourceId: `${opts.productEntityId}`,
+      resourceIdSegmentValues: {
+        productEntityId: opts.productEntityId
+      }
+    }, ariOpts = AriParser.fromOpts(derivedOpts, platformEnterpriseJiraSoftwareAriStaticOpts);
+    return new _PlatformEnterpriseJiraSoftwareAri(ariOpts);
+  }
+  static parse(maybeAri) {
+    let opts = AriParser.fromString(maybeAri, platformEnterpriseJiraSoftwareAriStaticOpts);
+    return new _PlatformEnterpriseJiraSoftwareAri(opts);
+  }
+  getVariables() {
+    return {
+      productEntityId: this.productEntityId
+    };
+  }
+};
+
+export {
+  PlatformEnterpriseJiraSoftwareAri
+};