@forge/util
2.0.12.0.1-experimental-7890858
packages/ari/mercury/index.js~
packages/ari/mercury/index.jsModified+1019−59
Index: package/packages/ari/mercury/index.js
===================================================================
--- package/packages/ari/mercury/index.js
+++ package/packages/ari/mercury/index.js
@@ -19,14 +19,30 @@
__export(mercury_exports, {
MercuryChangeAri: () => MercuryChangeAri,
MercuryChangeProposalAri: () => MercuryChangeProposalAri,
MercuryChangeProposalStatusAri: () => MercuryChangeProposalStatusAri,
+ MercuryChangeProposalsViewAri: () => MercuryChangeProposalsViewAri,
MercuryCommentAri: () => MercuryCommentAri,
+ MercuryCostItemAri: () => MercuryCostItemAri,
+ MercuryCostLineItemAri: () => MercuryCostLineItemAri,
+ MercuryCostPeriodValueAri: () => MercuryCostPeriodValueAri,
+ MercuryCostSubtypeAri: () => MercuryCostSubtypeAri,
+ MercuryCostTypeAri: () => MercuryCostTypeAri,
+ MercuryCustomFieldAri: () => MercuryCustomFieldAri,
+ MercuryCustomFieldDefinitionAri: () => MercuryCustomFieldDefinitionAri,
+ MercuryExpenditureTypeAri: () => MercuryExpenditureTypeAri,
+ MercuryFinancialVersionAri: () => MercuryFinancialVersionAri,
+ MercuryFiscalCalendarConfigurationAri: () => MercuryFiscalCalendarConfigurationAri,
MercuryFocusAreaAri: () => MercuryFocusAreaAri,
+ MercuryFocusAreaHierarchyAri: () => MercuryFocusAreaHierarchyAri,
MercuryFocusAreaStatusUpdateAri: () => MercuryFocusAreaStatusUpdateAri,
MercuryFocusAreaTypeAri: () => MercuryFocusAreaTypeAri,
+ MercuryInvestmentCategoryAri: () => MercuryInvestmentCategoryAri,
+ MercuryInvestmentCategorySetAri: () => MercuryInvestmentCategorySetAri,
+ MercuryJiraWorkStatusMappingAri: () => MercuryJiraWorkStatusMappingAri,
MercuryProgramAri: () => MercuryProgramAri,
MercuryProgramStatusUpdateAri: () => MercuryProgramStatusUpdateAri,
+ MercuryRiskAri: () => MercuryRiskAri,
MercuryRoleAri: () => MercuryRoleAri,
MercurySiteAri: () => MercurySiteAri,
MercuryStrategicEventAri: () => MercuryStrategicEventAri,
MercuryStrategicEventStatusAri: () => MercuryStrategicEventStatusAri,
@@ -296,25 +312,22 @@
var mercuryChangeAriStaticOpts = {
qualifier: "ari",
platformQualifier: "cloud",
cloudId: new RegExp("^[a-zA-Z0-9_\\-.]{1,255}$"),
- // eslint-disable-line no-useless-escape
resourceOwner: MercuryChangeAriResourceOwner,
resourceType: MercuryChangeAriResourceType,
resourceIdSlug: "workspace/{workspaceId}/{changeId}",
resourceIdSegmentFormats: {
workspaceId: /[a-zA-Z0-9\-]+/,
// eslint-disable-line no-useless-escape
changeId: /[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}/
- // eslint-disable-line no-useless-escape
}
};
// src/mercury/change/index.ts
var MercuryChangeAri = class _MercuryChangeAri extends RegisteredAri {
constructor(opts) {
- super(opts);
- this._siteId = opts.cloudId || "", this._workspaceId = opts.resourceIdSegmentValues.workspaceId, this._changeId = opts.resourceIdSegmentValues.changeId;
+ super(opts), this._siteId = opts.cloudId || "", this._workspaceId = opts.resourceIdSegmentValues.workspaceId, this._changeId = opts.resourceIdSegmentValues.changeId;
}
get siteId() {
return this._siteId;
}
@@ -359,25 +372,22 @@
var mercuryChangeProposalAriStaticOpts = {
qualifier: "ari",
platformQualifier: "cloud",
cloudId: new RegExp("^[a-zA-Z0-9_\\-.]{1,255}$"),
- // eslint-disable-line no-useless-escape
resourceOwner: MercuryChangeProposalAriResourceOwner,
resourceType: MercuryChangeProposalAriResourceType,
resourceIdSlug: "workspace/{workspaceId}/{changeProposalId}",
resourceIdSegmentFormats: {
workspaceId: /[a-zA-Z0-9\-]+/,
// eslint-disable-line no-useless-escape
changeProposalId: /[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}/
- // eslint-disable-line no-useless-escape
}
};
// src/mercury/change-proposal/index.ts
var MercuryChangeProposalAri = class _MercuryChangeProposalAri extends RegisteredAri {
constructor(opts) {
- super(opts);
- this._siteId = opts.cloudId || "", this._workspaceId = opts.resourceIdSegmentValues.workspaceId, this._changeProposalId = opts.resourceIdSegmentValues.changeProposalId;
+ super(opts), this._siteId = opts.cloudId || "", this._workspaceId = opts.resourceIdSegmentValues.workspaceId, this._changeProposalId = opts.resourceIdSegmentValues.changeProposalId;
}
get siteId() {
return this._siteId;
}
@@ -422,25 +432,22 @@
var mercuryChangeProposalStatusAriStaticOpts = {
qualifier: "ari",
platformQualifier: "cloud",
cloudId: new RegExp("^[a-zA-Z0-9_\\-.]{1,255}$"),
- // eslint-disable-line no-useless-escape
resourceOwner: MercuryChangeProposalStatusAriResourceOwner,
resourceType: MercuryChangeProposalStatusAriResourceType,
resourceIdSlug: "workspace/{workspaceId}/{changeProposalStatusId}",
resourceIdSegmentFormats: {
workspaceId: /[a-zA-Z0-9\-]+/,
// eslint-disable-line no-useless-escape
changeProposalStatusId: /[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}/
- // eslint-disable-line no-useless-escape
}
};
// src/mercury/change-proposal-status/index.ts
var MercuryChangeProposalStatusAri = class _MercuryChangeProposalStatusAri extends RegisteredAri {
constructor(opts) {
- super(opts);
- this._siteId = opts.cloudId || "", this._workspaceId = opts.resourceIdSegmentValues.workspaceId, this._changeProposalStatusId = opts.resourceIdSegmentValues.changeProposalStatusId;
+ super(opts), this._siteId = opts.cloudId || "", this._workspaceId = opts.resourceIdSegmentValues.workspaceId, this._changeProposalStatusId = opts.resourceIdSegmentValues.changeProposalStatusId;
}
get siteId() {
return this._siteId;
}
@@ -477,33 +484,90 @@
};
}
};
+// src/mercury/change-proposals-view/types.ts
+var MercuryChangeProposalsViewAriResourceOwner = "mercury", MercuryChangeProposalsViewAriResourceType = "change-proposals-view";
+
+// src/mercury/change-proposals-view/manifest.ts
+var mercuryChangeProposalsViewAriStaticOpts = {
+ qualifier: "ari",
+ platformQualifier: "cloud",
+ cloudId: new RegExp("^[a-zA-Z0-9_\\-.]{1,255}$"),
+ resourceOwner: MercuryChangeProposalsViewAriResourceOwner,
+ resourceType: MercuryChangeProposalsViewAriResourceType,
+ resourceIdSlug: "workspace/{workspaceId}/{changeProposalsViewId}",
+ resourceIdSegmentFormats: {
+ workspaceId: /[a-zA-Z0-9\-]+/,
+ // eslint-disable-line no-useless-escape
+ changeProposalsViewId: /[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/change-proposals-view/index.ts
+var MercuryChangeProposalsViewAri = class _MercuryChangeProposalsViewAri extends RegisteredAri {
+ constructor(opts) {
+ super(opts), this._siteId = opts.cloudId || "", this._workspaceId = opts.resourceIdSegmentValues.workspaceId, this._changeProposalsViewId = opts.resourceIdSegmentValues.changeProposalsViewId;
+ }
+ get siteId() {
+ return this._siteId;
+ }
+ get workspaceId() {
+ return this._workspaceId;
+ }
+ get changeProposalsViewId() {
+ return this._changeProposalsViewId;
+ }
+ static create(opts) {
+ let derivedOpts = {
+ qualifier: mercuryChangeProposalsViewAriStaticOpts.qualifier,
+ platformQualifier: mercuryChangeProposalsViewAriStaticOpts.platformQualifier,
+ cloudId: opts.siteId,
+ resourceOwner: mercuryChangeProposalsViewAriStaticOpts.resourceOwner,
+ resourceType: mercuryChangeProposalsViewAriStaticOpts.resourceType,
+ resourceId: `workspace/${opts.workspaceId}/${opts.changeProposalsViewId}`,
+ resourceIdSegmentValues: {
+ workspaceId: opts.workspaceId,
+ changeProposalsViewId: opts.changeProposalsViewId
+ }
+ }, ariOpts = AriParser.fromOpts(derivedOpts, mercuryChangeProposalsViewAriStaticOpts);
+ return new _MercuryChangeProposalsViewAri(ariOpts);
+ }
+ static parse(maybeAri) {
+ let opts = AriParser.fromString(maybeAri, mercuryChangeProposalsViewAriStaticOpts);
+ return new _MercuryChangeProposalsViewAri(opts);
+ }
+ getVariables() {
+ return {
+ siteId: this.siteId,
+ workspaceId: this.workspaceId,
+ changeProposalsViewId: this.changeProposalsViewId
+ };
+ }
+};
+
// src/mercury/comment/types.ts
var MercuryCommentAriResourceOwner = "mercury", MercuryCommentAriResourceType = "comment";
// src/mercury/comment/manifest.ts
var mercuryCommentAriStaticOpts = {
qualifier: "ari",
platformQualifier: "cloud",
cloudId: new RegExp("^[a-zA-Z0-9_\\-.]{1,255}$"),
- // eslint-disable-line no-useless-escape
resourceOwner: MercuryCommentAriResourceOwner,
resourceType: MercuryCommentAriResourceType,
resourceIdSlug: "workspace/{workspaceId}/{commentUuid}",
resourceIdSegmentFormats: {
workspaceId: /[a-zA-Z0-9\-]+/,
// eslint-disable-line no-useless-escape
commentUuid: /[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}/
- // eslint-disable-line no-useless-escape
}
};
// src/mercury/comment/index.ts
var MercuryCommentAri = class _MercuryCommentAri extends RegisteredAri {
constructor(opts) {
- super(opts);
- this._siteId = opts.cloudId || "", this._workspaceId = opts.resourceIdSegmentValues.workspaceId, this._commentUuid = opts.resourceIdSegmentValues.commentUuid;
+ super(opts), this._siteId = opts.cloudId || "", this._workspaceId = opts.resourceIdSegmentValues.workspaceId, this._commentUuid = opts.resourceIdSegmentValues.commentUuid;
}
get siteId() {
return this._siteId;
}
@@ -540,33 +604,642 @@
};
}
};
+// src/mercury/cost-item/types.ts
+var MercuryCostItemAriResourceOwner = "mercury", MercuryCostItemAriResourceType = "cost-item";
+
+// src/mercury/cost-item/manifest.ts
+var mercuryCostItemAriStaticOpts = {
+ qualifier: "ari",
+ platformQualifier: "cloud",
+ cloudId: new RegExp("^[a-zA-Z0-9_\\-.]{1,255}$"),
+ resourceOwner: MercuryCostItemAriResourceOwner,
+ resourceType: MercuryCostItemAriResourceType,
+ resourceIdSlug: "workspace/{workspaceId}/{costItemId}",
+ resourceIdSegmentFormats: {
+ workspaceId: /[a-zA-Z0-9\-]+/,
+ // eslint-disable-line no-useless-escape
+ costItemId: /[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/cost-item/index.ts
+var MercuryCostItemAri = class _MercuryCostItemAri extends RegisteredAri {
+ constructor(opts) {
+ super(opts), this._siteId = opts.cloudId || "", this._workspaceId = opts.resourceIdSegmentValues.workspaceId, this._costItemId = opts.resourceIdSegmentValues.costItemId;
+ }
+ get siteId() {
+ return this._siteId;
+ }
+ get workspaceId() {
+ return this._workspaceId;
+ }
+ get costItemId() {
+ return this._costItemId;
+ }
+ static create(opts) {
+ let derivedOpts = {
+ qualifier: mercuryCostItemAriStaticOpts.qualifier,
+ platformQualifier: mercuryCostItemAriStaticOpts.platformQualifier,
+ cloudId: opts.siteId,
+ resourceOwner: mercuryCostItemAriStaticOpts.resourceOwner,
+ resourceType: mercuryCostItemAriStaticOpts.resourceType,
+ resourceId: `workspace/${opts.workspaceId}/${opts.costItemId}`,
+ resourceIdSegmentValues: {
+ workspaceId: opts.workspaceId,
+ costItemId: opts.costItemId
+ }
+ }, ariOpts = AriParser.fromOpts(derivedOpts, mercuryCostItemAriStaticOpts);
+ return new _MercuryCostItemAri(ariOpts);
+ }
+ static parse(maybeAri) {
+ let opts = AriParser.fromString(maybeAri, mercuryCostItemAriStaticOpts);
+ return new _MercuryCostItemAri(opts);
+ }
+ getVariables() {
+ return {
+ siteId: this.siteId,
+ workspaceId: this.workspaceId,
+ costItemId: this.costItemId
+ };
+ }
+};
+
+// src/mercury/cost-line-item/types.ts
+var MercuryCostLineItemAriResourceOwner = "mercury", MercuryCostLineItemAriResourceType = "cost-line-item";
+
+// src/mercury/cost-line-item/manifest.ts
+var mercuryCostLineItemAriStaticOpts = {
+ qualifier: "ari",
+ platformQualifier: "cloud",
+ cloudId: new RegExp("^[a-zA-Z0-9_\\-.]{1,255}$"),
+ resourceOwner: MercuryCostLineItemAriResourceOwner,
+ resourceType: MercuryCostLineItemAriResourceType,
+ resourceIdSlug: "workspace/{workspaceId}/{costLineItemId}",
+ resourceIdSegmentFormats: {
+ workspaceId: /[a-zA-Z0-9\-]+/,
+ // eslint-disable-line no-useless-escape
+ costLineItemId: /[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/cost-line-item/index.ts
+var MercuryCostLineItemAri = class _MercuryCostLineItemAri extends RegisteredAri {
+ constructor(opts) {
+ super(opts), this._siteId = opts.cloudId || "", this._workspaceId = opts.resourceIdSegmentValues.workspaceId, this._costLineItemId = opts.resourceIdSegmentValues.costLineItemId;
+ }
+ get siteId() {
+ return this._siteId;
+ }
+ get workspaceId() {
+ return this._workspaceId;
+ }
+ get costLineItemId() {
+ return this._costLineItemId;
+ }
+ static create(opts) {
+ let derivedOpts = {
+ qualifier: mercuryCostLineItemAriStaticOpts.qualifier,
+ platformQualifier: mercuryCostLineItemAriStaticOpts.platformQualifier,
+ cloudId: opts.siteId,
+ resourceOwner: mercuryCostLineItemAriStaticOpts.resourceOwner,
+ resourceType: mercuryCostLineItemAriStaticOpts.resourceType,
+ resourceId: `workspace/${opts.workspaceId}/${opts.costLineItemId}`,
+ resourceIdSegmentValues: {
+ workspaceId: opts.workspaceId,
+ costLineItemId: opts.costLineItemId
+ }
+ }, ariOpts = AriParser.fromOpts(derivedOpts, mercuryCostLineItemAriStaticOpts);
+ return new _MercuryCostLineItemAri(ariOpts);
+ }
+ static parse(maybeAri) {
+ let opts = AriParser.fromString(maybeAri, mercuryCostLineItemAriStaticOpts);
+ return new _MercuryCostLineItemAri(opts);
+ }
+ getVariables() {
+ return {
+ siteId: this.siteId,
+ workspaceId: this.workspaceId,
+ costLineItemId: this.costLineItemId
+ };
+ }
+};
+
+// src/mercury/cost-period-value/types.ts
+var MercuryCostPeriodValueAriResourceOwner = "mercury", MercuryCostPeriodValueAriResourceType = "cost-period-value";
+
+// src/mercury/cost-period-value/manifest.ts
+var mercuryCostPeriodValueAriStaticOpts = {
+ qualifier: "ari",
+ platformQualifier: "cloud",
+ cloudId: new RegExp("^[a-zA-Z0-9_\\-.]{1,255}$"),
+ resourceOwner: MercuryCostPeriodValueAriResourceOwner,
+ resourceType: MercuryCostPeriodValueAriResourceType,
+ resourceIdSlug: "workspace/{workspaceId}/{costPeriodValueId}",
+ resourceIdSegmentFormats: {
+ workspaceId: /[a-zA-Z0-9\-]+/,
+ // eslint-disable-line no-useless-escape
+ costPeriodValueId: /[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/cost-period-value/index.ts
+var MercuryCostPeriodValueAri = class _MercuryCostPeriodValueAri extends RegisteredAri {
+ constructor(opts) {
+ super(opts), this._siteId = opts.cloudId || "", this._workspaceId = opts.resourceIdSegmentValues.workspaceId, this._costPeriodValueId = opts.resourceIdSegmentValues.costPeriodValueId;
+ }
+ get siteId() {
+ return this._siteId;
+ }
+ get workspaceId() {
+ return this._workspaceId;
+ }
+ get costPeriodValueId() {
+ return this._costPeriodValueId;
+ }
+ static create(opts) {
+ let derivedOpts = {
+ qualifier: mercuryCostPeriodValueAriStaticOpts.qualifier,
+ platformQualifier: mercuryCostPeriodValueAriStaticOpts.platformQualifier,
+ cloudId: opts.siteId,
+ resourceOwner: mercuryCostPeriodValueAriStaticOpts.resourceOwner,
+ resourceType: mercuryCostPeriodValueAriStaticOpts.resourceType,
+ resourceId: `workspace/${opts.workspaceId}/${opts.costPeriodValueId}`,
+ resourceIdSegmentValues: {
+ workspaceId: opts.workspaceId,
+ costPeriodValueId: opts.costPeriodValueId
+ }
+ }, ariOpts = AriParser.fromOpts(derivedOpts, mercuryCostPeriodValueAriStaticOpts);
+ return new _MercuryCostPeriodValueAri(ariOpts);
+ }
+ static parse(maybeAri) {
+ let opts = AriParser.fromString(maybeAri, mercuryCostPeriodValueAriStaticOpts);
+ return new _MercuryCostPeriodValueAri(opts);
+ }
+ getVariables() {
+ return {
+ siteId: this.siteId,
+ workspaceId: this.workspaceId,
+ costPeriodValueId: this.costPeriodValueId
+ };
+ }
+};
+
+// src/mercury/cost-subtype/types.ts
+var MercuryCostSubtypeAriResourceOwner = "mercury", MercuryCostSubtypeAriResourceType = "cost-subtype";
+
+// src/mercury/cost-subtype/manifest.ts
+var mercuryCostSubtypeAriStaticOpts = {
+ qualifier: "ari",
+ platformQualifier: "cloud",
+ cloudId: new RegExp("^[a-zA-Z0-9_\\-.]{1,255}$"),
+ resourceOwner: MercuryCostSubtypeAriResourceOwner,
+ resourceType: MercuryCostSubtypeAriResourceType,
+ resourceIdSlug: "workspace/{workspaceId}/{costSubtypeId}",
+ resourceIdSegmentFormats: {
+ workspaceId: /[a-zA-Z0-9\-]+/,
+ // eslint-disable-line no-useless-escape
+ costSubtypeId: /[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/cost-subtype/index.ts
+var MercuryCostSubtypeAri = class _MercuryCostSubtypeAri extends RegisteredAri {
+ constructor(opts) {
+ super(opts), this._siteId = opts.cloudId || "", this._workspaceId = opts.resourceIdSegmentValues.workspaceId, this._costSubtypeId = opts.resourceIdSegmentValues.costSubtypeId;
+ }
+ get siteId() {
+ return this._siteId;
+ }
+ get workspaceId() {
+ return this._workspaceId;
+ }
+ get costSubtypeId() {
+ return this._costSubtypeId;
+ }
+ static create(opts) {
+ let derivedOpts = {
+ qualifier: mercuryCostSubtypeAriStaticOpts.qualifier,
+ platformQualifier: mercuryCostSubtypeAriStaticOpts.platformQualifier,
+ cloudId: opts.siteId,
+ resourceOwner: mercuryCostSubtypeAriStaticOpts.resourceOwner,
+ resourceType: mercuryCostSubtypeAriStaticOpts.resourceType,
+ resourceId: `workspace/${opts.workspaceId}/${opts.costSubtypeId}`,
+ resourceIdSegmentValues: {
+ workspaceId: opts.workspaceId,
+ costSubtypeId: opts.costSubtypeId
+ }
+ }, ariOpts = AriParser.fromOpts(derivedOpts, mercuryCostSubtypeAriStaticOpts);
+ return new _MercuryCostSubtypeAri(ariOpts);
+ }
+ static parse(maybeAri) {
+ let opts = AriParser.fromString(maybeAri, mercuryCostSubtypeAriStaticOpts);
+ return new _MercuryCostSubtypeAri(opts);
+ }
+ getVariables() {
+ return {
+ siteId: this.siteId,
+ workspaceId: this.workspaceId,
+ costSubtypeId: this.costSubtypeId
+ };
+ }
+};
+
+// src/mercury/cost-type/types.ts
+var MercuryCostTypeAriResourceOwner = "mercury", MercuryCostTypeAriResourceType = "cost-type";
+
+// src/mercury/cost-type/manifest.ts
+var mercuryCostTypeAriStaticOpts = {
+ qualifier: "ari",
+ platformQualifier: "cloud",
+ cloudId: new RegExp("^[a-zA-Z0-9_\\-.]{1,255}$"),
+ resourceOwner: MercuryCostTypeAriResourceOwner,
+ resourceType: MercuryCostTypeAriResourceType,
+ resourceIdSlug: "workspace/{workspaceId}/{costTypeId}",
+ resourceIdSegmentFormats: {
+ workspaceId: /[a-zA-Z0-9\-]+/,
+ // eslint-disable-line no-useless-escape
+ costTypeId: /[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/cost-type/index.ts
+var MercuryCostTypeAri = class _MercuryCostTypeAri extends RegisteredAri {
+ constructor(opts) {
+ super(opts), this._siteId = opts.cloudId || "", this._workspaceId = opts.resourceIdSegmentValues.workspaceId, this._costTypeId = opts.resourceIdSegmentValues.costTypeId;
+ }
+ get siteId() {
+ return this._siteId;
+ }
+ get workspaceId() {
+ return this._workspaceId;
+ }
+ get costTypeId() {
+ return this._costTypeId;
+ }
+ static create(opts) {
+ let derivedOpts = {
+ qualifier: mercuryCostTypeAriStaticOpts.qualifier,
+ platformQualifier: mercuryCostTypeAriStaticOpts.platformQualifier,
+ cloudId: opts.siteId,
+ resourceOwner: mercuryCostTypeAriStaticOpts.resourceOwner,
+ resourceType: mercuryCostTypeAriStaticOpts.resourceType,
+ resourceId: `workspace/${opts.workspaceId}/${opts.costTypeId}`,
+ resourceIdSegmentValues: {
+ workspaceId: opts.workspaceId,
+ costTypeId: opts.costTypeId
+ }
+ }, ariOpts = AriParser.fromOpts(derivedOpts, mercuryCostTypeAriStaticOpts);
+ return new _MercuryCostTypeAri(ariOpts);
+ }
+ static parse(maybeAri) {
+ let opts = AriParser.fromString(maybeAri, mercuryCostTypeAriStaticOpts);
+ return new _MercuryCostTypeAri(opts);
+ }
+ getVariables() {
+ return {
+ siteId: this.siteId,
+ workspaceId: this.workspaceId,
+ costTypeId: this.costTypeId
+ };
+ }
+};
+
+// src/mercury/custom-field/types.ts
+var MercuryCustomFieldAriResourceOwner = "mercury", MercuryCustomFieldAriResourceType = "custom-field";
+
+// src/mercury/custom-field/manifest.ts
+var mercuryCustomFieldAriStaticOpts = {
+ qualifier: "ari",
+ platformQualifier: "cloud",
+ cloudId: new RegExp("^[a-zA-Z0-9_\\-.]{1,255}$"),
+ resourceOwner: MercuryCustomFieldAriResourceOwner,
+ resourceType: MercuryCustomFieldAriResourceType,
+ resourceIdSlug: "{entityType}/workspace/{workspaceId}/{customFieldId}",
+ resourceIdSegmentFormats: {
+ entityType: /(change-proposal|focus-area)/,
+ workspaceId: /[a-zA-Z0-9\-]+/,
+ // eslint-disable-line no-useless-escape
+ customFieldId: /[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/custom-field/index.ts
+var MercuryCustomFieldAri = class _MercuryCustomFieldAri extends RegisteredAri {
+ constructor(opts) {
+ super(opts), this._siteId = opts.cloudId || "", this._entityType = opts.resourceIdSegmentValues.entityType, this._workspaceId = opts.resourceIdSegmentValues.workspaceId, this._customFieldId = opts.resourceIdSegmentValues.customFieldId;
+ }
+ get siteId() {
+ return this._siteId;
+ }
+ get entityType() {
+ return this._entityType;
+ }
+ get workspaceId() {
+ return this._workspaceId;
+ }
+ get customFieldId() {
+ return this._customFieldId;
+ }
+ static create(opts) {
+ let derivedOpts = {
+ qualifier: mercuryCustomFieldAriStaticOpts.qualifier,
+ platformQualifier: mercuryCustomFieldAriStaticOpts.platformQualifier,
+ cloudId: opts.siteId,
+ resourceOwner: mercuryCustomFieldAriStaticOpts.resourceOwner,
+ resourceType: mercuryCustomFieldAriStaticOpts.resourceType,
+ resourceId: `${opts.entityType}/workspace/${opts.workspaceId}/${opts.customFieldId}`,
+ resourceIdSegmentValues: {
+ entityType: opts.entityType,
+ workspaceId: opts.workspaceId,
+ customFieldId: opts.customFieldId
+ }
+ }, ariOpts = AriParser.fromOpts(derivedOpts, mercuryCustomFieldAriStaticOpts);
+ return new _MercuryCustomFieldAri(ariOpts);
+ }
+ static parse(maybeAri) {
+ let opts = AriParser.fromString(maybeAri, mercuryCustomFieldAriStaticOpts);
+ return new _MercuryCustomFieldAri(opts);
+ }
+ getVariables() {
+ return {
+ siteId: this.siteId,
+ entityType: this.entityType,
+ workspaceId: this.workspaceId,
+ customFieldId: this.customFieldId
+ };
+ }
+};
+
+// src/mercury/custom-field-definition/types.ts
+var MercuryCustomFieldDefinitionAriResourceOwner = "mercury", MercuryCustomFieldDefinitionAriResourceType = "custom-field-definition";
+
+// src/mercury/custom-field-definition/manifest.ts
+var mercuryCustomFieldDefinitionAriStaticOpts = {
+ qualifier: "ari",
+ platformQualifier: "cloud",
+ cloudId: new RegExp("^[a-zA-Z0-9_\\-.]{1,255}$"),
+ resourceOwner: MercuryCustomFieldDefinitionAriResourceOwner,
+ resourceType: MercuryCustomFieldDefinitionAriResourceType,
+ resourceIdSlug: "{entityType}/workspace/{workspaceId}/{customFieldDefinitionId}",
+ resourceIdSegmentFormats: {
+ entityType: /(change-proposal|focus-area)/,
+ workspaceId: /[a-zA-Z0-9\-]+/,
+ // eslint-disable-line no-useless-escape
+ customFieldDefinitionId: /[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/custom-field-definition/index.ts
+var MercuryCustomFieldDefinitionAri = class _MercuryCustomFieldDefinitionAri extends RegisteredAri {
+ constructor(opts) {
+ super(opts), this._siteId = opts.cloudId || "", this._entityType = opts.resourceIdSegmentValues.entityType, this._workspaceId = opts.resourceIdSegmentValues.workspaceId, this._customFieldDefinitionId = opts.resourceIdSegmentValues.customFieldDefinitionId;
+ }
+ get siteId() {
+ return this._siteId;
+ }
+ get entityType() {
+ return this._entityType;
+ }
+ get workspaceId() {
+ return this._workspaceId;
+ }
+ get customFieldDefinitionId() {
+ return this._customFieldDefinitionId;
+ }
+ static create(opts) {
+ let derivedOpts = {
+ qualifier: mercuryCustomFieldDefinitionAriStaticOpts.qualifier,
+ platformQualifier: mercuryCustomFieldDefinitionAriStaticOpts.platformQualifier,
+ cloudId: opts.siteId,
+ resourceOwner: mercuryCustomFieldDefinitionAriStaticOpts.resourceOwner,
+ resourceType: mercuryCustomFieldDefinitionAriStaticOpts.resourceType,
+ resourceId: `${opts.entityType}/workspace/${opts.workspaceId}/${opts.customFieldDefinitionId}`,
+ resourceIdSegmentValues: {
+ entityType: opts.entityType,
+ workspaceId: opts.workspaceId,
+ customFieldDefinitionId: opts.customFieldDefinitionId
+ }
+ }, ariOpts = AriParser.fromOpts(derivedOpts, mercuryCustomFieldDefinitionAriStaticOpts);
+ return new _MercuryCustomFieldDefinitionAri(ariOpts);
+ }
+ static parse(maybeAri) {
+ let opts = AriParser.fromString(maybeAri, mercuryCustomFieldDefinitionAriStaticOpts);
+ return new _MercuryCustomFieldDefinitionAri(opts);
+ }
+ getVariables() {
+ return {
+ siteId: this.siteId,
+ entityType: this.entityType,
+ workspaceId: this.workspaceId,
+ customFieldDefinitionId: this.customFieldDefinitionId
+ };
+ }
+};
+
+// src/mercury/expenditure-type/types.ts
+var MercuryExpenditureTypeAriResourceOwner = "mercury", MercuryExpenditureTypeAriResourceType = "expenditure-type";
+
+// src/mercury/expenditure-type/manifest.ts
+var mercuryExpenditureTypeAriStaticOpts = {
+ qualifier: "ari",
+ platformQualifier: "cloud",
+ cloudId: new RegExp("^[a-zA-Z0-9_\\-.]{1,255}$"),
+ resourceOwner: MercuryExpenditureTypeAriResourceOwner,
+ resourceType: MercuryExpenditureTypeAriResourceType,
+ resourceIdSlug: "workspace/{workspaceId}/{expenditureTypeId}",
+ resourceIdSegmentFormats: {
+ workspaceId: /[a-zA-Z0-9\-]+/,
+ // eslint-disable-line no-useless-escape
+ expenditureTypeId: /[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/expenditure-type/index.ts
+var MercuryExpenditureTypeAri = class _MercuryExpenditureTypeAri extends RegisteredAri {
+ constructor(opts) {
+ super(opts), this._siteId = opts.cloudId || "", this._workspaceId = opts.resourceIdSegmentValues.workspaceId, this._expenditureTypeId = opts.resourceIdSegmentValues.expenditureTypeId;
+ }
+ get siteId() {
+ return this._siteId;
+ }
+ get workspaceId() {
+ return this._workspaceId;
+ }
+ get expenditureTypeId() {
+ return this._expenditureTypeId;
+ }
+ static create(opts) {
+ let derivedOpts = {
+ qualifier: mercuryExpenditureTypeAriStaticOpts.qualifier,
+ platformQualifier: mercuryExpenditureTypeAriStaticOpts.platformQualifier,
+ cloudId: opts.siteId,
+ resourceOwner: mercuryExpenditureTypeAriStaticOpts.resourceOwner,
+ resourceType: mercuryExpenditureTypeAriStaticOpts.resourceType,
+ resourceId: `workspace/${opts.workspaceId}/${opts.expenditureTypeId}`,
+ resourceIdSegmentValues: {
+ workspaceId: opts.workspaceId,
+ expenditureTypeId: opts.expenditureTypeId
+ }
+ }, ariOpts = AriParser.fromOpts(derivedOpts, mercuryExpenditureTypeAriStaticOpts);
+ return new _MercuryExpenditureTypeAri(ariOpts);
+ }
+ static parse(maybeAri) {
+ let opts = AriParser.fromString(maybeAri, mercuryExpenditureTypeAriStaticOpts);
+ return new _MercuryExpenditureTypeAri(opts);
+ }
+ getVariables() {
+ return {
+ siteId: this.siteId,
+ workspaceId: this.workspaceId,
+ expenditureTypeId: this.expenditureTypeId
+ };
+ }
+};
+
+// src/mercury/financial-version/types.ts
+var MercuryFinancialVersionAriResourceOwner = "mercury", MercuryFinancialVersionAriResourceType = "financial-version";
+
+// src/mercury/financial-version/manifest.ts
+var mercuryFinancialVersionAriStaticOpts = {
+ qualifier: "ari",
+ platformQualifier: "cloud",
+ cloudId: new RegExp("^[a-zA-Z0-9_\\-.]{1,255}$"),
+ resourceOwner: MercuryFinancialVersionAriResourceOwner,
+ resourceType: MercuryFinancialVersionAriResourceType,
+ resourceIdSlug: "workspace/{workspaceId}/{financialVersionId}",
+ resourceIdSegmentFormats: {
+ workspaceId: /[a-zA-Z0-9\-]+/,
+ // eslint-disable-line no-useless-escape
+ financialVersionId: /[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/financial-version/index.ts
+var MercuryFinancialVersionAri = class _MercuryFinancialVersionAri extends RegisteredAri {
+ constructor(opts) {
+ super(opts), this._siteId = opts.cloudId || "", this._workspaceId = opts.resourceIdSegmentValues.workspaceId, this._financialVersionId = opts.resourceIdSegmentValues.financialVersionId;
+ }
+ get siteId() {
+ return this._siteId;
+ }
+ get workspaceId() {
+ return this._workspaceId;
+ }
+ get financialVersionId() {
+ return this._financialVersionId;
+ }
+ static create(opts) {
+ let derivedOpts = {
+ qualifier: mercuryFinancialVersionAriStaticOpts.qualifier,
+ platformQualifier: mercuryFinancialVersionAriStaticOpts.platformQualifier,
+ cloudId: opts.siteId,
+ resourceOwner: mercuryFinancialVersionAriStaticOpts.resourceOwner,
+ resourceType: mercuryFinancialVersionAriStaticOpts.resourceType,
+ resourceId: `workspace/${opts.workspaceId}/${opts.financialVersionId}`,
+ resourceIdSegmentValues: {
+ workspaceId: opts.workspaceId,
+ financialVersionId: opts.financialVersionId
+ }
+ }, ariOpts = AriParser.fromOpts(derivedOpts, mercuryFinancialVersionAriStaticOpts);
+ return new _MercuryFinancialVersionAri(ariOpts);
+ }
+ static parse(maybeAri) {
+ let opts = AriParser.fromString(maybeAri, mercuryFinancialVersionAriStaticOpts);
+ return new _MercuryFinancialVersionAri(opts);
+ }
+ getVariables() {
+ return {
+ siteId: this.siteId,
+ workspaceId: this.workspaceId,
+ financialVersionId: this.financialVersionId
+ };
+ }
+};
+
+// src/mercury/fiscal-calendar-configuration/types.ts
+var MercuryFiscalCalendarConfigurationAriResourceOwner = "mercury", MercuryFiscalCalendarConfigurationAriResourceType = "fiscal-calendar-configuration";
+
+// src/mercury/fiscal-calendar-configuration/manifest.ts
+var mercuryFiscalCalendarConfigurationAriStaticOpts = {
+ qualifier: "ari",
+ platformQualifier: "cloud",
+ cloudId: new RegExp("^[a-zA-Z0-9_\\-.]{1,255}$"),
+ resourceOwner: MercuryFiscalCalendarConfigurationAriResourceOwner,
+ resourceType: MercuryFiscalCalendarConfigurationAriResourceType,
+ resourceIdSlug: "workspace/{workspaceId}/{fiscalCalendarConfigurationId}",
+ resourceIdSegmentFormats: {
+ workspaceId: /[a-zA-Z0-9\-]+/,
+ // eslint-disable-line no-useless-escape
+ fiscalCalendarConfigurationId: /[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/fiscal-calendar-configuration/index.ts
+var MercuryFiscalCalendarConfigurationAri = class _MercuryFiscalCalendarConfigurationAri extends RegisteredAri {
+ constructor(opts) {
+ super(opts), this._siteId = opts.cloudId || "", this._workspaceId = opts.resourceIdSegmentValues.workspaceId, this._fiscalCalendarConfigurationId = opts.resourceIdSegmentValues.fiscalCalendarConfigurationId;
+ }
+ get siteId() {
+ return this._siteId;
+ }
+ get workspaceId() {
+ return this._workspaceId;
+ }
+ get fiscalCalendarConfigurationId() {
+ return this._fiscalCalendarConfigurationId;
+ }
+ static create(opts) {
+ let derivedOpts = {
+ qualifier: mercuryFiscalCalendarConfigurationAriStaticOpts.qualifier,
+ platformQualifier: mercuryFiscalCalendarConfigurationAriStaticOpts.platformQualifier,
+ cloudId: opts.siteId,
+ resourceOwner: mercuryFiscalCalendarConfigurationAriStaticOpts.resourceOwner,
+ resourceType: mercuryFiscalCalendarConfigurationAriStaticOpts.resourceType,
+ resourceId: `workspace/${opts.workspaceId}/${opts.fiscalCalendarConfigurationId}`,
+ resourceIdSegmentValues: {
+ workspaceId: opts.workspaceId,
+ fiscalCalendarConfigurationId: opts.fiscalCalendarConfigurationId
+ }
+ }, ariOpts = AriParser.fromOpts(derivedOpts, mercuryFiscalCalendarConfigurationAriStaticOpts);
+ return new _MercuryFiscalCalendarConfigurationAri(ariOpts);
+ }
+ static parse(maybeAri) {
+ let opts = AriParser.fromString(maybeAri, mercuryFiscalCalendarConfigurationAriStaticOpts);
+ return new _MercuryFiscalCalendarConfigurationAri(opts);
+ }
+ getVariables() {
+ return {
+ siteId: this.siteId,
+ workspaceId: this.workspaceId,
+ fiscalCalendarConfigurationId: this.fiscalCalendarConfigurationId
+ };
+ }
+};
+
// src/mercury/focus-area/types.ts
var MercuryFocusAreaAriResourceOwner = "mercury", MercuryFocusAreaAriResourceType = "focus-area";
// src/mercury/focus-area/manifest.ts
var mercuryFocusAreaAriStaticOpts = {
qualifier: "ari",
platformQualifier: "cloud",
cloudId: new RegExp("^[a-zA-Z0-9_\\-.]{1,255}$"),
- // eslint-disable-line no-useless-escape
resourceOwner: MercuryFocusAreaAriResourceOwner,
resourceType: MercuryFocusAreaAriResourceType,
resourceIdSlug: "workspace/{workspaceId}/{focusAreaId}",
resourceIdSegmentFormats: {
workspaceId: /[a-zA-Z0-9\-]+/,
// eslint-disable-line no-useless-escape
focusAreaId: /[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}/
- // eslint-disable-line no-useless-escape
}
};
// src/mercury/focus-area/index.ts
var MercuryFocusAreaAri = class _MercuryFocusAreaAri extends RegisteredAri {
constructor(opts) {
- super(opts);
- this._siteId = opts.cloudId || "", this._workspaceId = opts.resourceIdSegmentValues.workspaceId, this._focusAreaId = opts.resourceIdSegmentValues.focusAreaId;
+ super(opts), this._siteId = opts.cloudId || "", this._workspaceId = opts.resourceIdSegmentValues.workspaceId, this._focusAreaId = opts.resourceIdSegmentValues.focusAreaId;
}
get siteId() {
return this._siteId;
}
@@ -603,33 +1276,90 @@
};
}
};
+// src/mercury/focus-area-hierarchy/types.ts
+var MercuryFocusAreaHierarchyAriResourceOwner = "mercury", MercuryFocusAreaHierarchyAriResourceType = "focus-area-hierarchy";
+
+// src/mercury/focus-area-hierarchy/manifest.ts
+var mercuryFocusAreaHierarchyAriStaticOpts = {
+ qualifier: "ari",
+ platformQualifier: "cloud",
+ cloudId: new RegExp("^[a-zA-Z0-9_\\-.]{1,255}$"),
+ resourceOwner: MercuryFocusAreaHierarchyAriResourceOwner,
+ resourceType: MercuryFocusAreaHierarchyAriResourceType,
+ resourceIdSlug: "workspace/{workspaceId}/{focusAreaHierarchyId}",
+ resourceIdSegmentFormats: {
+ workspaceId: /[a-zA-Z0-9\-]+/,
+ // eslint-disable-line no-useless-escape
+ focusAreaHierarchyId: /[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/focus-area-hierarchy/index.ts
+var MercuryFocusAreaHierarchyAri = class _MercuryFocusAreaHierarchyAri extends RegisteredAri {
+ constructor(opts) {
+ super(opts), this._siteId = opts.cloudId || "", this._workspaceId = opts.resourceIdSegmentValues.workspaceId, this._focusAreaHierarchyId = opts.resourceIdSegmentValues.focusAreaHierarchyId;
+ }
+ get siteId() {
+ return this._siteId;
+ }
+ get workspaceId() {
+ return this._workspaceId;
+ }
+ get focusAreaHierarchyId() {
+ return this._focusAreaHierarchyId;
+ }
+ static create(opts) {
+ let derivedOpts = {
+ qualifier: mercuryFocusAreaHierarchyAriStaticOpts.qualifier,
+ platformQualifier: mercuryFocusAreaHierarchyAriStaticOpts.platformQualifier,
+ cloudId: opts.siteId,
+ resourceOwner: mercuryFocusAreaHierarchyAriStaticOpts.resourceOwner,
+ resourceType: mercuryFocusAreaHierarchyAriStaticOpts.resourceType,
+ resourceId: `workspace/${opts.workspaceId}/${opts.focusAreaHierarchyId}`,
+ resourceIdSegmentValues: {
+ workspaceId: opts.workspaceId,
+ focusAreaHierarchyId: opts.focusAreaHierarchyId
+ }
+ }, ariOpts = AriParser.fromOpts(derivedOpts, mercuryFocusAreaHierarchyAriStaticOpts);
+ return new _MercuryFocusAreaHierarchyAri(ariOpts);
+ }
+ static parse(maybeAri) {
+ let opts = AriParser.fromString(maybeAri, mercuryFocusAreaHierarchyAriStaticOpts);
+ return new _MercuryFocusAreaHierarchyAri(opts);
+ }
+ getVariables() {
+ return {
+ siteId: this.siteId,
+ workspaceId: this.workspaceId,
+ focusAreaHierarchyId: this.focusAreaHierarchyId
+ };
+ }
+};
+
// src/mercury/focus-area-status-update/types.ts
var MercuryFocusAreaStatusUpdateAriResourceOwner = "mercury", MercuryFocusAreaStatusUpdateAriResourceType = "focus-area-status-update";
// src/mercury/focus-area-status-update/manifest.ts
var mercuryFocusAreaStatusUpdateAriStaticOpts = {
qualifier: "ari",
platformQualifier: "cloud",
cloudId: new RegExp("^[a-zA-Z0-9_\\-.]{1,255}$"),
- // eslint-disable-line no-useless-escape
resourceOwner: MercuryFocusAreaStatusUpdateAriResourceOwner,
resourceType: MercuryFocusAreaStatusUpdateAriResourceType,
resourceIdSlug: "workspace/{workspaceId}/{focusAreaStatusUpdateId}",
resourceIdSegmentFormats: {
workspaceId: /[a-zA-Z0-9\-]+/,
// eslint-disable-line no-useless-escape
focusAreaStatusUpdateId: /[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}/
- // eslint-disable-line no-useless-escape
}
};
// src/mercury/focus-area-status-update/index.ts
var MercuryFocusAreaStatusUpdateAri = class _MercuryFocusAreaStatusUpdateAri extends RegisteredAri {
constructor(opts) {
- super(opts);
- this._siteId = opts.cloudId || "", this._workspaceId = opts.resourceIdSegmentValues.workspaceId, this._focusAreaStatusUpdateId = opts.resourceIdSegmentValues.focusAreaStatusUpdateId;
+ super(opts), this._siteId = opts.cloudId || "", this._workspaceId = opts.resourceIdSegmentValues.workspaceId, this._focusAreaStatusUpdateId = opts.resourceIdSegmentValues.focusAreaStatusUpdateId;
}
get siteId() {
return this._siteId;
}
@@ -674,25 +1404,22 @@
var mercuryFocusAreaTypeAriStaticOpts = {
qualifier: "ari",
platformQualifier: "cloud",
cloudId: new RegExp("^[a-zA-Z0-9_\\-.]{1,255}$"),
- // eslint-disable-line no-useless-escape
resourceOwner: MercuryFocusAreaTypeAriResourceOwner,
resourceType: MercuryFocusAreaTypeAriResourceType,
resourceIdSlug: "workspace/{workspaceId}/{focusAreaTypeId}",
resourceIdSegmentFormats: {
workspaceId: /[a-zA-Z0-9\-]+/,
// eslint-disable-line no-useless-escape
focusAreaTypeId: /[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}/
- // eslint-disable-line no-useless-escape
}
};
// src/mercury/focus-area-type/index.ts
var MercuryFocusAreaTypeAri = class _MercuryFocusAreaTypeAri extends RegisteredAri {
constructor(opts) {
- super(opts);
- this._siteId = opts.cloudId || "", this._workspaceId = opts.resourceIdSegmentValues.workspaceId, this._focusAreaTypeId = opts.resourceIdSegmentValues.focusAreaTypeId;
+ super(opts), this._siteId = opts.cloudId || "", this._workspaceId = opts.resourceIdSegmentValues.workspaceId, this._focusAreaTypeId = opts.resourceIdSegmentValues.focusAreaTypeId;
}
get siteId() {
return this._siteId;
}
@@ -729,33 +1456,210 @@
};
}
};
+// src/mercury/investment-category/types.ts
+var MercuryInvestmentCategoryAriResourceOwner = "mercury", MercuryInvestmentCategoryAriResourceType = "investment-category";
+
+// 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
+ };
+ }
+};
+
+// src/mercury/investment-category-set/types.ts
+var MercuryInvestmentCategorySetAriResourceOwner = "mercury", MercuryInvestmentCategorySetAriResourceType = "investment-category-set";
+
+// 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
+ };
+ }
+};
+
+// src/mercury/jira-work-status-mapping/types.ts
+var MercuryJiraWorkStatusMappingAriResourceOwner = "mercury", MercuryJiraWorkStatusMappingAriResourceType = "jira-work-status-mapping";
+
+// src/mercury/jira-work-status-mapping/manifest.ts
+var mercuryJiraWorkStatusMappingAriStaticOpts = {
+ qualifier: "ari",
+ platformQualifier: "cloud",
+ cloudId: new RegExp("^[a-zA-Z0-9_\\-.]{1,255}$"),
+ resourceOwner: MercuryJiraWorkStatusMappingAriResourceOwner,
+ resourceType: MercuryJiraWorkStatusMappingAriResourceType,
+ resourceIdSlug: "workspace/{workspaceId}/{jiraWorkStatusMappingId}",
+ resourceIdSegmentFormats: {
+ workspaceId: /[a-zA-Z0-9\-]+/,
+ // eslint-disable-line no-useless-escape
+ jiraWorkStatusMappingId: /[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/jira-work-status-mapping/index.ts
+var MercuryJiraWorkStatusMappingAri = class _MercuryJiraWorkStatusMappingAri extends RegisteredAri {
+ constructor(opts) {
+ super(opts), this._siteId = opts.cloudId || "", this._workspaceId = opts.resourceIdSegmentValues.workspaceId, this._jiraWorkStatusMappingId = opts.resourceIdSegmentValues.jiraWorkStatusMappingId;
+ }
+ get siteId() {
+ return this._siteId;
+ }
+ get workspaceId() {
+ return this._workspaceId;
+ }
+ get jiraWorkStatusMappingId() {
+ return this._jiraWorkStatusMappingId;
+ }
+ static create(opts) {
+ let derivedOpts = {
+ qualifier: mercuryJiraWorkStatusMappingAriStaticOpts.qualifier,
+ platformQualifier: mercuryJiraWorkStatusMappingAriStaticOpts.platformQualifier,
+ cloudId: opts.siteId,
+ resourceOwner: mercuryJiraWorkStatusMappingAriStaticOpts.resourceOwner,
+ resourceType: mercuryJiraWorkStatusMappingAriStaticOpts.resourceType,
+ resourceId: `workspace/${opts.workspaceId}/${opts.jiraWorkStatusMappingId}`,
+ resourceIdSegmentValues: {
+ workspaceId: opts.workspaceId,
+ jiraWorkStatusMappingId: opts.jiraWorkStatusMappingId
+ }
+ }, ariOpts = AriParser.fromOpts(derivedOpts, mercuryJiraWorkStatusMappingAriStaticOpts);
+ return new _MercuryJiraWorkStatusMappingAri(ariOpts);
+ }
+ static parse(maybeAri) {
+ let opts = AriParser.fromString(maybeAri, mercuryJiraWorkStatusMappingAriStaticOpts);
+ return new _MercuryJiraWorkStatusMappingAri(opts);
+ }
+ getVariables() {
+ return {
+ siteId: this.siteId,
+ workspaceId: this.workspaceId,
+ jiraWorkStatusMappingId: this.jiraWorkStatusMappingId
+ };
+ }
+};
+
// src/mercury/program/types.ts
var MercuryProgramAriResourceOwner = "mercury", MercuryProgramAriResourceType = "program";
// src/mercury/program/manifest.ts
var mercuryProgramAriStaticOpts = {
qualifier: "ari",
platformQualifier: "cloud",
cloudId: new RegExp("^[a-zA-Z0-9_\\-.]{1,255}$"),
- // eslint-disable-line no-useless-escape
resourceOwner: MercuryProgramAriResourceOwner,
resourceType: MercuryProgramAriResourceType,
resourceIdSlug: "workspace/{workspaceId}/{programId}",
resourceIdSegmentFormats: {
workspaceId: /[a-zA-Z0-9\-]+/,
// eslint-disable-line no-useless-escape
programId: /[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}/
- // eslint-disable-line no-useless-escape
}
};
// src/mercury/program/index.ts
var MercuryProgramAri = class _MercuryProgramAri extends RegisteredAri {
constructor(opts) {
- super(opts);
- this._siteId = opts.cloudId || "", this._workspaceId = opts.resourceIdSegmentValues.workspaceId, this._programId = opts.resourceIdSegmentValues.programId;
+ super(opts), this._siteId = opts.cloudId || "", this._workspaceId = opts.resourceIdSegmentValues.workspaceId, this._programId = opts.resourceIdSegmentValues.programId;
}
get siteId() {
return this._siteId;
}
@@ -800,25 +1704,22 @@
var mercuryProgramStatusUpdateAriStaticOpts = {
qualifier: "ari",
platformQualifier: "cloud",
cloudId: new RegExp("^[a-zA-Z0-9_\\-.]{1,255}$"),
- // eslint-disable-line no-useless-escape
resourceOwner: MercuryProgramStatusUpdateAriResourceOwner,
resourceType: MercuryProgramStatusUpdateAriResourceType,
resourceIdSlug: "workspace/{workspaceId}/{programStatusUpdateId}",
resourceIdSegmentFormats: {
workspaceId: /[a-zA-Z0-9\-]+/,
// eslint-disable-line no-useless-escape
programStatusUpdateId: /[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}/
- // eslint-disable-line no-useless-escape
}
};
// src/mercury/program-status-update/index.ts
var MercuryProgramStatusUpdateAri = class _MercuryProgramStatusUpdateAri extends RegisteredAri {
constructor(opts) {
- super(opts);
- this._siteId = opts.cloudId || "", this._workspaceId = opts.resourceIdSegmentValues.workspaceId, this._programStatusUpdateId = opts.resourceIdSegmentValues.programStatusUpdateId;
+ super(opts), this._siteId = opts.cloudId || "", this._workspaceId = opts.resourceIdSegmentValues.workspaceId, this._programStatusUpdateId = opts.resourceIdSegmentValues.programStatusUpdateId;
}
get siteId() {
return this._siteId;
}
@@ -855,31 +1756,88 @@
};
}
};
+// src/mercury/risk/types.ts
+var MercuryRiskAriResourceOwner = "mercury", MercuryRiskAriResourceType = "risk";
+
+// src/mercury/risk/manifest.ts
+var mercuryRiskAriStaticOpts = {
+ qualifier: "ari",
+ platformQualifier: "cloud",
+ cloudId: new RegExp("^[a-zA-Z0-9_\\-.]{1,255}$"),
+ resourceOwner: MercuryRiskAriResourceOwner,
+ resourceType: MercuryRiskAriResourceType,
+ resourceIdSlug: "workspace/{workspaceId}/{riskId}",
+ resourceIdSegmentFormats: {
+ workspaceId: /[a-zA-Z0-9\-]+/,
+ // eslint-disable-line no-useless-escape
+ riskId: /[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/risk/index.ts
+var MercuryRiskAri = class _MercuryRiskAri extends RegisteredAri {
+ constructor(opts) {
+ super(opts), this._siteId = opts.cloudId || "", this._workspaceId = opts.resourceIdSegmentValues.workspaceId, this._riskId = opts.resourceIdSegmentValues.riskId;
+ }
+ get siteId() {
+ return this._siteId;
+ }
+ get workspaceId() {
+ return this._workspaceId;
+ }
+ get riskId() {
+ return this._riskId;
+ }
+ static create(opts) {
+ let derivedOpts = {
+ qualifier: mercuryRiskAriStaticOpts.qualifier,
+ platformQualifier: mercuryRiskAriStaticOpts.platformQualifier,
+ cloudId: opts.siteId,
+ resourceOwner: mercuryRiskAriStaticOpts.resourceOwner,
+ resourceType: mercuryRiskAriStaticOpts.resourceType,
+ resourceId: `workspace/${opts.workspaceId}/${opts.riskId}`,
+ resourceIdSegmentValues: {
+ workspaceId: opts.workspaceId,
+ riskId: opts.riskId
+ }
+ }, ariOpts = AriParser.fromOpts(derivedOpts, mercuryRiskAriStaticOpts);
+ return new _MercuryRiskAri(ariOpts);
+ }
+ static parse(maybeAri) {
+ let opts = AriParser.fromString(maybeAri, mercuryRiskAriStaticOpts);
+ return new _MercuryRiskAri(opts);
+ }
+ getVariables() {
+ return {
+ siteId: this.siteId,
+ workspaceId: this.workspaceId,
+ riskId: this.riskId
+ };
+ }
+};
+
// src/mercury/role/types.ts
var MercuryRoleAriResourceOwner = "mercury", MercuryRoleAriResourceType = "role";
// src/mercury/role/manifest.ts
var mercuryRoleAriStaticOpts = {
qualifier: "ari",
platformQualifier: "cloud",
cloudId: new RegExp("^$"),
- // eslint-disable-line no-useless-escape
resourceOwner: MercuryRoleAriResourceOwner,
resourceType: MercuryRoleAriResourceType,
resourceIdSlug: "product/{roleType}",
resourceIdSegmentFormats: {
roleType: /(?:member|admin)/
- // eslint-disable-line no-useless-escape
}
};
// src/mercury/role/index.ts
var MercuryRoleAri = class _MercuryRoleAri extends RegisteredAri {
constructor(opts) {
- super(opts);
- this._roleType = opts.resourceIdSegmentValues.roleType;
+ super(opts), this._roleType = opts.resourceIdSegmentValues.roleType;
}
get roleType() {
return this._roleType;
}
@@ -915,23 +1873,20 @@
var mercurySiteAriStaticOpts = {
qualifier: "ari",
platformQualifier: "cloud",
cloudId: new RegExp("^$"),
- // eslint-disable-line no-useless-escape
resourceOwner: MercurySiteAriResourceOwner,
resourceType: MercurySiteAriResourceType,
resourceIdSlug: "{siteId}",
resourceIdSegmentFormats: {
siteId: /[a-zA-Z0-9_\-.]{1,255}/
- // eslint-disable-line no-useless-escape
}
};
// src/mercury/site/index.ts
var MercurySiteAri = class _MercurySiteAri extends RegisteredAri {
constructor(opts) {
- super(opts);
- this._siteId = opts.resourceIdSegmentValues.siteId;
+ super(opts), this._siteId = opts.resourceIdSegmentValues.siteId;
}
get siteId() {
return this._siteId;
}
@@ -967,25 +1922,22 @@
var mercuryStrategicEventAriStaticOpts = {
qualifier: "ari",
platformQualifier: "cloud",
cloudId: new RegExp("^[a-zA-Z0-9_\\-.]{1,255}$"),
- // eslint-disable-line no-useless-escape
resourceOwner: MercuryStrategicEventAriResourceOwner,
resourceType: MercuryStrategicEventAriResourceType,
resourceIdSlug: "workspace/{workspaceId}/{strategicEventId}",
resourceIdSegmentFormats: {
workspaceId: /[a-zA-Z0-9\-]+/,
// eslint-disable-line no-useless-escape
strategicEventId: /[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}/
- // eslint-disable-line no-useless-escape
}
};
// src/mercury/strategic-event/index.ts
var MercuryStrategicEventAri = class _MercuryStrategicEventAri extends RegisteredAri {
constructor(opts) {
- super(opts);
- this._siteId = opts.cloudId || "", this._workspaceId = opts.resourceIdSegmentValues.workspaceId, this._strategicEventId = opts.resourceIdSegmentValues.strategicEventId;
+ super(opts), this._siteId = opts.cloudId || "", this._workspaceId = opts.resourceIdSegmentValues.workspaceId, this._strategicEventId = opts.resourceIdSegmentValues.strategicEventId;
}
get siteId() {
return this._siteId;
}
@@ -1030,25 +1982,22 @@
var mercuryStrategicEventStatusAriStaticOpts = {
qualifier: "ari",
platformQualifier: "cloud",
cloudId: new RegExp("^[a-zA-Z0-9_\\-.]{1,255}$"),
- // eslint-disable-line no-useless-escape
resourceOwner: MercuryStrategicEventStatusAriResourceOwner,
resourceType: MercuryStrategicEventStatusAriResourceType,
resourceIdSlug: "workspace/{workspaceId}/{strategicEventStatusId}",
resourceIdSegmentFormats: {
workspaceId: /[a-zA-Z0-9\-]+/,
// eslint-disable-line no-useless-escape
strategicEventStatusId: /[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}/
- // eslint-disable-line no-useless-escape
}
};
// src/mercury/strategic-event-status/index.ts
var MercuryStrategicEventStatusAri = class _MercuryStrategicEventStatusAri extends RegisteredAri {
constructor(opts) {
- super(opts);
- this._siteId = opts.cloudId || "", this._workspaceId = opts.resourceIdSegmentValues.workspaceId, this._strategicEventStatusId = opts.resourceIdSegmentValues.strategicEventStatusId;
+ super(opts), this._siteId = opts.cloudId || "", this._workspaceId = opts.resourceIdSegmentValues.workspaceId, this._strategicEventStatusId = opts.resourceIdSegmentValues.strategicEventStatusId;
}
get siteId() {
return this._siteId;
}
@@ -1093,25 +2042,22 @@
var mercuryViewAriStaticOpts = {
qualifier: "ari",
platformQualifier: "cloud",
cloudId: new RegExp("^[a-zA-Z0-9_\\-.]{1,255}$"),
- // eslint-disable-line no-useless-escape
resourceOwner: MercuryViewAriResourceOwner,
resourceType: MercuryViewAriResourceType,
resourceIdSlug: "workspace/{workspaceId}/{viewId}",
resourceIdSegmentFormats: {
workspaceId: /[a-zA-Z0-9\-]+/,
// eslint-disable-line no-useless-escape
viewId: /[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}/
- // eslint-disable-line no-useless-escape
}
};
// src/mercury/view/index.ts
var MercuryViewAri = class _MercuryViewAri extends RegisteredAri {
constructor(opts) {
- super(opts);
- this._siteId = opts.cloudId || "", this._workspaceId = opts.resourceIdSegmentValues.workspaceId, this._viewId = opts.resourceIdSegmentValues.viewId;
+ super(opts), this._siteId = opts.cloudId || "", this._workspaceId = opts.resourceIdSegmentValues.workspaceId, this._viewId = opts.resourceIdSegmentValues.viewId;
}
get siteId() {
return this._siteId;
}
@@ -1156,9 +2102,8 @@
var mercuryWorkspaceAriStaticOpts = {
qualifier: "ari",
platformQualifier: "cloud",
cloudId: new RegExp("^[a-zA-Z0-9_\\-.]{1,255}$"),
- // eslint-disable-line no-useless-escape
resourceOwner: MercuryWorkspaceAriResourceOwner,
resourceType: MercuryWorkspaceAriResourceType,
resourceIdSlug: "{workspaceId}",
resourceIdSegmentFormats: {
@@ -1169,10 +2114,9 @@
// src/mercury/workspace/index.ts
var MercuryWorkspaceAri = class _MercuryWorkspaceAri extends RegisteredAri {
constructor(opts) {
- super(opts);
- this._siteId = opts.cloudId || "", this._workspaceId = opts.resourceIdSegmentValues.workspaceId;
+ super(opts), this._siteId = opts.cloudId || "", this._workspaceId = opts.resourceIdSegmentValues.workspaceId;
}
get siteId() {
return this._siteId;
}
@@ -1208,14 +2152,30 @@
0 && (module.exports = {
MercuryChangeAri,
MercuryChangeProposalAri,
MercuryChangeProposalStatusAri,
+ MercuryChangeProposalsViewAri,
MercuryCommentAri,
+ MercuryCostItemAri,
+ MercuryCostLineItemAri,
+ MercuryCostPeriodValueAri,
+ MercuryCostSubtypeAri,
+ MercuryCostTypeAri,
+ MercuryCustomFieldAri,
+ MercuryCustomFieldDefinitionAri,
+ MercuryExpenditureTypeAri,
+ MercuryFinancialVersionAri,
+ MercuryFiscalCalendarConfigurationAri,
MercuryFocusAreaAri,
+ MercuryFocusAreaHierarchyAri,
MercuryFocusAreaStatusUpdateAri,
MercuryFocusAreaTypeAri,
+ MercuryInvestmentCategoryAri,
+ MercuryInvestmentCategorySetAri,
+ MercuryJiraWorkStatusMappingAri,
MercuryProgramAri,
MercuryProgramStatusUpdateAri,
+ MercuryRiskAri,
MercuryRoleAri,
MercurySiteAri,
MercuryStrategicEventAri,
MercuryStrategicEventStatusAri,