@forge/util
2.0.12.0.1-experimental-7890858
packages/ari/chunk-Z74YSRRM.mjs+
packages/ari/chunk-Z74YSRRM.mjsNew file+71
Index: package/packages/ari/chunk-Z74YSRRM.mjs
===================================================================
--- package/packages/ari/chunk-Z74YSRRM.mjs
+++ package/packages/ari/chunk-Z74YSRRM.mjs
@@ -0,0 +1,71 @@
+import {
+ MercuryInvestmentCategorySetAriResourceOwner,
+ MercuryInvestmentCategorySetAriResourceType
+} from "./chunk-HEEZWLAI.mjs";
+import {
+ RegisteredAri
+} from "./chunk-AB4PPISI.mjs";
+import {
+ AriParser
+} from "./chunk-S7RIZVFI.mjs";
+
+// src/mercury/investment-category-set/manifest.ts
+var mercuryInvestmentCategorySetAriStaticOpts = {
+ qualifier: "ari",
+ platformQualifier: "cloud",
+ cloudId: new RegExp("^[a-zA-Z0-9_\\-.]{1,255}$"),
+ resourceOwner: MercuryInvestmentCategorySetAriResourceOwner,
+ resourceType: MercuryInvestmentCategorySetAriResourceType,
+ resourceIdSlug: "workspace/{workspaceId}/{investmentCategorySetId}",
+ resourceIdSegmentFormats: {
+ workspaceId: /[a-zA-Z0-9\-]+/,
+ // eslint-disable-line no-useless-escape
+ investmentCategorySetId: /[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-set/index.ts
+var MercuryInvestmentCategorySetAri = class _MercuryInvestmentCategorySetAri extends RegisteredAri {
+ constructor(opts) {
+ super(opts), this._siteId = opts.cloudId || "", this._workspaceId = opts.resourceIdSegmentValues.workspaceId, this._investmentCategorySetId = opts.resourceIdSegmentValues.investmentCategorySetId;
+ }
+ get siteId() {
+ return this._siteId;
+ }
+ get workspaceId() {
+ return this._workspaceId;
+ }
+ get investmentCategorySetId() {
+ return this._investmentCategorySetId;
+ }
+ static create(opts) {
+ let derivedOpts = {
+ qualifier: mercuryInvestmentCategorySetAriStaticOpts.qualifier,
+ platformQualifier: mercuryInvestmentCategorySetAriStaticOpts.platformQualifier,
+ cloudId: opts.siteId,
+ resourceOwner: mercuryInvestmentCategorySetAriStaticOpts.resourceOwner,
+ resourceType: mercuryInvestmentCategorySetAriStaticOpts.resourceType,
+ resourceId: `workspace/${opts.workspaceId}/${opts.investmentCategorySetId}`,
+ resourceIdSegmentValues: {
+ workspaceId: opts.workspaceId,
+ investmentCategorySetId: opts.investmentCategorySetId
+ }
+ }, ariOpts = AriParser.fromOpts(derivedOpts, mercuryInvestmentCategorySetAriStaticOpts);
+ return new _MercuryInvestmentCategorySetAri(ariOpts);
+ }
+ static parse(maybeAri) {
+ let opts = AriParser.fromString(maybeAri, mercuryInvestmentCategorySetAriStaticOpts);
+ return new _MercuryInvestmentCategorySetAri(opts);
+ }
+ getVariables() {
+ return {
+ siteId: this.siteId,
+ workspaceId: this.workspaceId,
+ investmentCategorySetId: this.investmentCategorySetId
+ };
+ }
+};
+
+export {
+ MercuryInvestmentCategorySetAri
+};