npm package diff
Package: @forge/util
Versions: 1.4.10-next.0 - 1.4.10-next.0-experimental-effab31
File: package/packages/ari/chunk-GAH4FAWJ.mjs
Index: package/packages/ari/chunk-GAH4FAWJ.mjs
===================================================================
--- package/packages/ari/chunk-GAH4FAWJ.mjs
+++ package/packages/ari/chunk-GAH4FAWJ.mjs
@@ -1,80 +0,0 @@
-import {
- JiraSoftwareBoardFeatureAriResourceOwner,
- JiraSoftwareBoardFeatureAriResourceType
-} from "./chunk-E24RP2LJ.mjs";
-import {
- RegisteredAri
-} from "./chunk-CLQNXEWF.mjs";
-import {
- AriParser
-} from "./chunk-HNZGDVUS.mjs";
-
-// src/jira-software/board-feature/manifest.ts
-var jiraSoftwareBoardFeatureAriStaticOpts = {
- qualifier: "ari",
- platformQualifier: "cloud",
- cloudId: new RegExp("^[a-zA-Z0-9-]+$"),
- resourceOwner: JiraSoftwareBoardFeatureAriResourceOwner,
- resourceType: JiraSoftwareBoardFeatureAriResourceType,
- resourceIdSlug: "activation/{activationId}/{boardId}/featureKey/{featureKey}",
- resourceIdSegmentFormats: {
- activationId: /[a-zA-Z0-9\-]+/,
- // eslint-disable-line no-useless-escape
- boardId: /[!a-zA-Z0-9\-_.~@:{}=]+(\/[!a-zA-Z0-9\-_.~@:{}=]+)*/,
- // eslint-disable-line no-useless-escape
- featureKey: /[!a-zA-Z0-9\-_.~@:{}=]+(\/[!a-zA-Z0-9\-_.~@:{}=]+)*/
- // eslint-disable-line no-useless-escape
- }
-};
-
-// src/jira-software/board-feature/index.ts
-var JiraSoftwareBoardFeatureAri = class _JiraSoftwareBoardFeatureAri extends RegisteredAri {
- constructor(opts) {
- super(opts);
- this._siteId = opts.cloudId || "", this._activationId = opts.resourceIdSegmentValues.activationId, this._boardId = opts.resourceIdSegmentValues.boardId, this._featureKey = opts.resourceIdSegmentValues.featureKey;
- }
- get siteId() {
- return this._siteId;
- }
- get activationId() {
- return this._activationId;
- }
- get boardId() {
- return this._boardId;
- }
- get featureKey() {
- return this._featureKey;
- }
- static create(opts) {
- let derivedOpts = {
- qualifier: jiraSoftwareBoardFeatureAriStaticOpts.qualifier,
- platformQualifier: jiraSoftwareBoardFeatureAriStaticOpts.platformQualifier,
- cloudId: opts.siteId,
- resourceOwner: jiraSoftwareBoardFeatureAriStaticOpts.resourceOwner,
- resourceType: jiraSoftwareBoardFeatureAriStaticOpts.resourceType,
- resourceId: `activation/${opts.activationId}/${opts.boardId}/featureKey/${opts.featureKey}`,
- resourceIdSegmentValues: {
- activationId: opts.activationId,
- boardId: opts.boardId,
- featureKey: opts.featureKey
- }
- }, ariOpts = AriParser.fromOpts(derivedOpts, jiraSoftwareBoardFeatureAriStaticOpts);
- return new _JiraSoftwareBoardFeatureAri(ariOpts);
- }
- static parse(maybeAri) {
- let opts = AriParser.fromString(maybeAri, jiraSoftwareBoardFeatureAriStaticOpts);
- return new _JiraSoftwareBoardFeatureAri(opts);
- }
- getVariables() {
- return {
- siteId: this.siteId,
- activationId: this.activationId,
- boardId: this.boardId,
- featureKey: this.featureKey
- };
- }
-};
-
-export {
- JiraSoftwareBoardFeatureAri
-};