@forge/util
2.0.12.0.1-experimental-7890858
packages/ari/chunk-7WK2J226.mjs−
packages/ari/chunk-7WK2J226.mjsDeleted−81
Index: package/packages/ari/chunk-7WK2J226.mjs
===================================================================
--- package/packages/ari/chunk-7WK2J226.mjs
+++ package/packages/ari/chunk-7WK2J226.mjs
@@ -1,81 +0,0 @@
-import {
- PassionfruitDependencyCommentAriResourceOwner,
- PassionfruitDependencyCommentAriResourceType
-} from "./chunk-UK4TPXGH.mjs";
-import {
- RegisteredAri
-} from "./chunk-AB4PPISI.mjs";
-import {
- AriParser
-} from "./chunk-S7RIZVFI.mjs";
-
-// src/passionfruit/dependency-comment/manifest.ts
-var passionfruitDependencyCommentAriStaticOpts = {
- qualifier: "ari",
- platformQualifier: "cloud",
- cloudId: new RegExp("^[a-zA-Z0-9_\\-.]{1,255}$"),
- // eslint-disable-line no-useless-escape
- resourceOwner: PassionfruitDependencyCommentAriResourceOwner,
- resourceType: PassionfruitDependencyCommentAriResourceType,
- resourceIdSlug: "workspace/{activationId}/{dependencyId}/{commentId}",
- resourceIdSegmentFormats: {
- activationId: /[a-zA-Z0-9\-]+/,
- // eslint-disable-line no-useless-escape
- dependencyId: /[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/,
- // eslint-disable-line no-useless-escape
- commentId: /[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/
- // eslint-disable-line no-useless-escape
- }
-};
-
-// src/passionfruit/dependency-comment/index.ts
-var PassionfruitDependencyCommentAri = class _PassionfruitDependencyCommentAri extends RegisteredAri {
- constructor(opts) {
- super(opts);
- this._siteId = opts.cloudId || "", this._activationId = opts.resourceIdSegmentValues.activationId, this._dependencyId = opts.resourceIdSegmentValues.dependencyId, this._commentId = opts.resourceIdSegmentValues.commentId;
- }
- get siteId() {
- return this._siteId;
- }
- get activationId() {
- return this._activationId;
- }
- get dependencyId() {
- return this._dependencyId;
- }
- get commentId() {
- return this._commentId;
- }
- static create(opts) {
- let derivedOpts = {
- qualifier: passionfruitDependencyCommentAriStaticOpts.qualifier,
- platformQualifier: passionfruitDependencyCommentAriStaticOpts.platformQualifier,
- cloudId: opts.siteId,
- resourceOwner: passionfruitDependencyCommentAriStaticOpts.resourceOwner,
- resourceType: passionfruitDependencyCommentAriStaticOpts.resourceType,
- resourceId: `workspace/${opts.activationId}/${opts.dependencyId}/${opts.commentId}`,
- resourceIdSegmentValues: {
- activationId: opts.activationId,
- dependencyId: opts.dependencyId,
- commentId: opts.commentId
- }
- }, ariOpts = AriParser.fromOpts(derivedOpts, passionfruitDependencyCommentAriStaticOpts);
- return new _PassionfruitDependencyCommentAri(ariOpts);
- }
- static parse(maybeAri) {
- let opts = AriParser.fromString(maybeAri, passionfruitDependencyCommentAriStaticOpts);
- return new _PassionfruitDependencyCommentAri(opts);
- }
- getVariables() {
- return {
- siteId: this.siteId,
- activationId: this.activationId,
- dependencyId: this.dependencyId,
- commentId: this.commentId
- };
- }
-};
-
-export {
- PassionfruitDependencyCommentAri
-};