@forge/util
2.0.1-experimental-78908582.0.1-experimental-04cc2b9
packages/ari/chunk-6XJH3QMT.mjs−
packages/ari/chunk-6XJH3QMT.mjsDeleted−95
Index: package/packages/ari/chunk-6XJH3QMT.mjs
===================================================================
--- package/packages/ari/chunk-6XJH3QMT.mjs
+++ package/packages/ari/chunk-6XJH3QMT.mjs
@@ -1,95 +0,0 @@
-import {
- JiraBoardCellAriResourceOwner,
- JiraBoardCellAriResourceType
-} from "./chunk-YSCPEWLR.mjs";
-import {
- RegisteredAri
-} from "./chunk-AB4PPISI.mjs";
-import {
- AriParser
-} from "./chunk-S7RIZVFI.mjs";
-
-// src/jira/board-cell/manifest.ts
-var jiraBoardCellAriStaticOpts = {
- qualifier: "ari",
- platformQualifier: "cloud",
- cloudId: new RegExp("^[a-zA-Z0-9_\\-.]{1,255}$"),
- resourceOwner: JiraBoardCellAriResourceOwner,
- resourceType: JiraBoardCellAriResourceType,
- resourceIdSlug: "activation/{activationId}/{containerType}/{containerId}/view/{viewId}/layout/{layoutType}/{cellId}",
- resourceIdSegmentFormats: {
- activationId: /[a-zA-Z0-9\-]+/,
- // eslint-disable-line no-useless-escape
- containerType: /(board|project)/,
- containerId: /[!a-zA-Z0-9\-_.~@:;{}=]+(\/[!a-zA-Z0-9\-_.~@:;{}=]+)*/,
- viewId: /[!a-zA-Z0-9\-_.~@:;{}=]+(\/[!a-zA-Z0-9\-_.~@:;{}=]+)*/,
- layoutType: /(column|swimlane)/,
- cellId: /[!a-zA-Z0-9\-_.~@:;{}=]+(\/[!a-zA-Z0-9\-_.~@:;{}=]+)*/
- }
-};
-
-// src/jira/board-cell/index.ts
-var JiraBoardCellAri = class _JiraBoardCellAri extends RegisteredAri {
- constructor(opts) {
- super(opts), this._siteId = opts.cloudId || "", this._activationId = opts.resourceIdSegmentValues.activationId, this._containerType = opts.resourceIdSegmentValues.containerType, this._containerId = opts.resourceIdSegmentValues.containerId, this._viewId = opts.resourceIdSegmentValues.viewId, this._layoutType = opts.resourceIdSegmentValues.layoutType, this._cellId = opts.resourceIdSegmentValues.cellId;
- }
- get siteId() {
- return this._siteId;
- }
- get activationId() {
- return this._activationId;
- }
- get containerType() {
- return this._containerType;
- }
- get containerId() {
- return this._containerId;
- }
- get viewId() {
- return this._viewId;
- }
- get layoutType() {
- return this._layoutType;
- }
- get cellId() {
- return this._cellId;
- }
- static create(opts) {
- let derivedOpts = {
- qualifier: jiraBoardCellAriStaticOpts.qualifier,
- platformQualifier: jiraBoardCellAriStaticOpts.platformQualifier,
- cloudId: opts.siteId,
- resourceOwner: jiraBoardCellAriStaticOpts.resourceOwner,
- resourceType: jiraBoardCellAriStaticOpts.resourceType,
- resourceId: `activation/${opts.activationId}/${opts.containerType}/${opts.containerId}/view/${opts.viewId}/layout/${opts.layoutType}/${opts.cellId}`,
- resourceIdSegmentValues: {
- activationId: opts.activationId,
- containerType: opts.containerType,
- containerId: opts.containerId,
- viewId: opts.viewId,
- layoutType: opts.layoutType,
- cellId: opts.cellId
- }
- }, ariOpts = AriParser.fromOpts(derivedOpts, jiraBoardCellAriStaticOpts);
- return new _JiraBoardCellAri(ariOpts);
- }
- static parse(maybeAri) {
- let opts = AriParser.fromString(maybeAri, jiraBoardCellAriStaticOpts);
- return new _JiraBoardCellAri(opts);
- }
- getVariables() {
- return {
- siteId: this.siteId,
- activationId: this.activationId,
- containerType: this.containerType,
- containerId: this.containerId,
- viewId: this.viewId,
- layoutType: this.layoutType,
- cellId: this.cellId
- };
- }
-};
-
-export {
- JiraBoardCellAri
-};