@forge/util
2.0.12.0.1-experimental-7890858
packages/ari/chunk-U7KPIH7A.mjs−
packages/ari/chunk-U7KPIH7A.mjsDeleted−74
Index: package/packages/ari/chunk-U7KPIH7A.mjs
===================================================================
--- package/packages/ari/chunk-U7KPIH7A.mjs
+++ package/packages/ari/chunk-U7KPIH7A.mjs
@@ -1,74 +0,0 @@
-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
-};