npm package diff
Package: @forge/util
Versions: 1.4.10-next.0 - 1.4.10-next.0-experimental-effab31
File: package/packages/ari/chunk-U7KPIH7A.mjs
Index: package/packages/ari/chunk-U7KPIH7A.mjs
===================================================================
--- package/packages/ari/chunk-U7KPIH7A.mjs
+++ package/packages/ari/chunk-U7KPIH7A.mjs
@@ -0,0 +1,74 @@
+import {
+ JiraPostIncidentReviewAriResourceOwner,
+ JiraPostIncidentReviewAriResourceType
+} from "./chunk-D5S55TXO.mjs";
+import {
+ RegisteredAri
+} from "./chunk-AB4PPISI.mjs";
+import {
+ AriParser
+} from "./chunk-S7RIZVFI.mjs";
+
+// src/jira/post-incident-review/manifest.ts
+var jiraPostIncidentReviewAriStaticOpts = {
+ qualifier: "ari",
+ platformQualifier: "cloud",
+ cloudId: new RegExp("^[a-zA-Z0-9_\\-.]{1,255}$"),
+ // eslint-disable-line no-useless-escape
+ resourceOwner: JiraPostIncidentReviewAriResourceOwner,
+ resourceType: JiraPostIncidentReviewAriResourceType,
+ resourceIdSlug: "activation/{activationId}/{postIncidentReviewId}",
+ resourceIdSegmentFormats: {
+ activationId: /[a-zA-Z0-9\-]+/,
+ // eslint-disable-line no-useless-escape
+ postIncidentReviewId: /[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/jira/post-incident-review/index.ts
+var JiraPostIncidentReviewAri = class _JiraPostIncidentReviewAri extends RegisteredAri {
+ constructor(opts) {
+ super(opts);
+ this._siteId = opts.cloudId || "", this._activationId = opts.resourceIdSegmentValues.activationId, this._postIncidentReviewId = opts.resourceIdSegmentValues.postIncidentReviewId;
+ }
+ get siteId() {
+ return this._siteId;
+ }
+ get activationId() {
+ return this._activationId;
+ }
+ get postIncidentReviewId() {
+ return this._postIncidentReviewId;
+ }
+ static create(opts) {
+ let derivedOpts = {
+ qualifier: jiraPostIncidentReviewAriStaticOpts.qualifier,
+ platformQualifier: jiraPostIncidentReviewAriStaticOpts.platformQualifier,
+ cloudId: opts.siteId,
+ resourceOwner: jiraPostIncidentReviewAriStaticOpts.resourceOwner,
+ resourceType: jiraPostIncidentReviewAriStaticOpts.resourceType,
+ resourceId: `activation/${opts.activationId}/${opts.postIncidentReviewId}`,
+ resourceIdSegmentValues: {
+ activationId: opts.activationId,
+ postIncidentReviewId: opts.postIncidentReviewId
+ }
+ }, ariOpts = AriParser.fromOpts(derivedOpts, jiraPostIncidentReviewAriStaticOpts);
+ return new _JiraPostIncidentReviewAri(ariOpts);
+ }
+ static parse(maybeAri) {
+ let opts = AriParser.fromString(maybeAri, jiraPostIncidentReviewAriStaticOpts);
+ return new _JiraPostIncidentReviewAri(opts);
+ }
+ getVariables() {
+ return {
+ siteId: this.siteId,
+ activationId: this.activationId,
+ postIncidentReviewId: this.postIncidentReviewId
+ };
+ }
+};
+
+export {
+ JiraPostIncidentReviewAri
+};