@forge/util
2.0.1-experimental-78908582.0.1-experimental-04cc2b9
packages/ari/chunk-LQYMFBVT.mjs−
packages/ari/chunk-LQYMFBVT.mjsDeleted−71
Index: package/packages/ari/chunk-LQYMFBVT.mjs
===================================================================
--- package/packages/ari/chunk-LQYMFBVT.mjs
+++ package/packages/ari/chunk-LQYMFBVT.mjs
@@ -1,71 +0,0 @@
-import {
- MercuryInvestmentCategoryAriResourceOwner,
- MercuryInvestmentCategoryAriResourceType
-} from "./chunk-E7IBCE4Q.mjs";
-import {
- RegisteredAri
-} from "./chunk-AB4PPISI.mjs";
-import {
- AriParser
-} from "./chunk-S7RIZVFI.mjs";
-
-// src/mercury/investment-category/manifest.ts
-var mercuryInvestmentCategoryAriStaticOpts = {
- qualifier: "ari",
- platformQualifier: "cloud",
- cloudId: new RegExp("^[a-zA-Z0-9_\\-.]{1,255}$"),
- resourceOwner: MercuryInvestmentCategoryAriResourceOwner,
- resourceType: MercuryInvestmentCategoryAriResourceType,
- resourceIdSlug: "workspace/{workspaceId}/{investmentCategoryId}",
- resourceIdSegmentFormats: {
- workspaceId: /[a-zA-Z0-9\-]+/,
- // eslint-disable-line no-useless-escape
- investmentCategoryId: /[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}/
- }
-};
-
-// src/mercury/investment-category/index.ts
-var MercuryInvestmentCategoryAri = class _MercuryInvestmentCategoryAri extends RegisteredAri {
- constructor(opts) {
- super(opts), this._siteId = opts.cloudId || "", this._workspaceId = opts.resourceIdSegmentValues.workspaceId, this._investmentCategoryId = opts.resourceIdSegmentValues.investmentCategoryId;
- }
- get siteId() {
- return this._siteId;
- }
- get workspaceId() {
- return this._workspaceId;
- }
- get investmentCategoryId() {
- return this._investmentCategoryId;
- }
- static create(opts) {
- let derivedOpts = {
- qualifier: mercuryInvestmentCategoryAriStaticOpts.qualifier,
- platformQualifier: mercuryInvestmentCategoryAriStaticOpts.platformQualifier,
- cloudId: opts.siteId,
- resourceOwner: mercuryInvestmentCategoryAriStaticOpts.resourceOwner,
- resourceType: mercuryInvestmentCategoryAriStaticOpts.resourceType,
- resourceId: `workspace/${opts.workspaceId}/${opts.investmentCategoryId}`,
- resourceIdSegmentValues: {
- workspaceId: opts.workspaceId,
- investmentCategoryId: opts.investmentCategoryId
- }
- }, ariOpts = AriParser.fromOpts(derivedOpts, mercuryInvestmentCategoryAriStaticOpts);
- return new _MercuryInvestmentCategoryAri(ariOpts);
- }
- static parse(maybeAri) {
- let opts = AriParser.fromString(maybeAri, mercuryInvestmentCategoryAriStaticOpts);
- return new _MercuryInvestmentCategoryAri(opts);
- }
- getVariables() {
- return {
- siteId: this.siteId,
- workspaceId: this.workspaceId,
- investmentCategoryId: this.investmentCategoryId
- };
- }
-};
-
-export {
- MercuryInvestmentCategoryAri
-};