@forge/util
2.0.1-experimental-78908582.0.1-experimental-04cc2b9
packages/ari/goal/index.js~
packages/ari/goal/index.jsModified+15−4
Index: package/packages/ari/goal/index.js
===================================================================
--- package/packages/ari/goal/index.js
+++ package/packages/ari/goal/index.js
@@ -285,22 +285,25 @@
var goalGoalTypeAriStaticOpts = {
qualifier: "ari",
platformQualifier: "cloud",
cloudId: new RegExp("^[a-zA-Z0-9_\\-.]{1,255}$"),
+ // eslint-disable-line no-useless-escape
resourceOwner: GoalGoalTypeAriResourceOwner,
resourceType: GoalGoalTypeAriResourceType,
resourceIdSlug: "{activationId}/{goalTypeId}",
resourceIdSegmentFormats: {
activationId: /[a-zA-Z0-9\-]+/,
// eslint-disable-line no-useless-escape
goalTypeId: /[!a-zA-Z0-9\-_.~@:;{}=]+(\/[!a-zA-Z0-9\-_.~@:;{}=]+)*/
+ // eslint-disable-line no-useless-escape
}
};
// src/goal/goal-type/index.ts
var GoalGoalTypeAri = class _GoalGoalTypeAri extends RegisteredAri {
constructor(opts) {
- super(opts), this._siteId = opts.cloudId || "", this._activationId = opts.resourceIdSegmentValues.activationId, this._goalTypeId = opts.resourceIdSegmentValues.goalTypeId;
+ super(opts);
+ this._siteId = opts.cloudId || "", this._activationId = opts.resourceIdSegmentValues.activationId, this._goalTypeId = opts.resourceIdSegmentValues.goalTypeId;
}
get siteId() {
return this._siteId;
}
@@ -345,22 +348,25 @@
var goalMetricUpdateAriStaticOpts = {
qualifier: "ari",
platformQualifier: "cloud",
cloudId: new RegExp("^[a-zA-Z0-9_\\-.]{1,255}$"),
+ // eslint-disable-line no-useless-escape
resourceOwner: GoalMetricUpdateAriResourceOwner,
resourceType: GoalMetricUpdateAriResourceType,
resourceIdSlug: "{activationId}/{goalMetricUpdateId}",
resourceIdSegmentFormats: {
activationId: /[a-zA-Z0-9\-]+/,
// eslint-disable-line no-useless-escape
goalMetricUpdateId: /[!a-zA-Z0-9\-_.~@:;{}=]+(\/[!a-zA-Z0-9\-_.~@:;{}=]+)*/
+ // eslint-disable-line no-useless-escape
}
};
// src/goal/metric-update/index.ts
var GoalMetricUpdateAri = class _GoalMetricUpdateAri extends RegisteredAri {
constructor(opts) {
- super(opts), this._siteId = opts.cloudId || "", this._activationId = opts.resourceIdSegmentValues.activationId, this._goalMetricUpdateId = opts.resourceIdSegmentValues.goalMetricUpdateId;
+ super(opts);
+ this._siteId = opts.cloudId || "", this._activationId = opts.resourceIdSegmentValues.activationId, this._goalMetricUpdateId = opts.resourceIdSegmentValues.goalMetricUpdateId;
}
get siteId() {
return this._siteId;
}
@@ -405,20 +411,23 @@
var goalSiteAriStaticOpts = {
qualifier: "ari",
platformQualifier: "cloud",
cloudId: new RegExp("^$"),
+ // eslint-disable-line no-useless-escape
resourceOwner: GoalSiteAriResourceOwner,
resourceType: GoalSiteAriResourceType,
resourceIdSlug: "{siteId}",
resourceIdSegmentFormats: {
siteId: /[a-zA-Z0-9_\-.]{1,255}/
+ // eslint-disable-line no-useless-escape
}
};
// src/goal/site/index.ts
var GoalSiteAri = class _GoalSiteAri extends RegisteredAri {
constructor(opts) {
- super(opts), this._siteId = opts.resourceIdSegmentValues.siteId;
+ super(opts);
+ this._siteId = opts.resourceIdSegmentValues.siteId;
}
get siteId() {
return this._siteId;
}
@@ -454,8 +463,9 @@
var goalWorkspaceAriStaticOpts = {
qualifier: "ari",
platformQualifier: "cloud",
cloudId: new RegExp("^$"),
+ // eslint-disable-line no-useless-escape
resourceOwner: GoalWorkspaceAriResourceOwner,
resourceType: GoalWorkspaceAriResourceType,
resourceIdSlug: "{activationId}",
resourceIdSegmentFormats: {
@@ -466,9 +476,10 @@
// src/goal/workspace/index.ts
var GoalWorkspaceAri = class _GoalWorkspaceAri extends RegisteredAri {
constructor(opts) {
- super(opts), this._activationId = opts.resourceIdSegmentValues.activationId;
+ super(opts);
+ this._activationId = opts.resourceIdSegmentValues.activationId;
}
get activationId() {
return this._activationId;
}