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