@forge/util
2.0.12.0.1-experimental-7890858
packages/ari/rovo/index.js~
packages/ari/rovo/index.jsModified+7−24
Index: package/packages/ari/rovo/index.js
===================================================================
--- package/packages/ari/rovo/index.js
+++ package/packages/ari/rovo/index.js
@@ -288,9 +288,8 @@
var rovoAgentAriStaticOpts = {
qualifier: "ari",
platformQualifier: "cloud",
cloudId: new RegExp("^$"),
- // eslint-disable-line no-useless-escape
resourceOwner: RovoAgentAriResourceOwner,
resourceType: RovoAgentAriResourceType,
resourceIdSlug: "activation/{activationId}/{agentId}",
resourceIdSegmentFormats: {
@@ -303,10 +302,9 @@
// src/rovo/agent/index.ts
var RovoAgentAri = class _RovoAgentAri extends RegisteredAri {
constructor(opts) {
- super(opts);
- this._activationId = opts.resourceIdSegmentValues.activationId, this._agentId = opts.resourceIdSegmentValues.agentId;
+ super(opts), this._activationId = opts.resourceIdSegmentValues.activationId, this._agentId = opts.resourceIdSegmentValues.agentId;
}
get activationId() {
return this._activationId;
}
@@ -347,9 +345,8 @@
var rovoCustomActionAriStaticOpts = {
qualifier: "ari",
platformQualifier: "cloud",
cloudId: new RegExp("^$"),
- // eslint-disable-line no-useless-escape
resourceOwner: RovoCustomActionAriResourceOwner,
resourceType: RovoCustomActionAriResourceType,
resourceIdSlug: "activation/{activationId}/{customActionId}",
resourceIdSegmentFormats: {
@@ -362,10 +359,9 @@
// src/rovo/custom-action/index.ts
var RovoCustomActionAri = class _RovoCustomActionAri extends RegisteredAri {
constructor(opts) {
- super(opts);
- this._activationId = opts.resourceIdSegmentValues.activationId, this._customActionId = opts.resourceIdSegmentValues.customActionId;
+ super(opts), this._activationId = opts.resourceIdSegmentValues.activationId, this._customActionId = opts.resourceIdSegmentValues.customActionId;
}
get activationId() {
return this._activationId;
}
@@ -406,25 +402,22 @@
var rovoFileAriStaticOpts = {
qualifier: "ari",
platformQualifier: "cloud",
cloudId: new RegExp("^[a-zA-Z0-9_\\-.]{1,255}$"),
- // eslint-disable-line no-useless-escape
resourceOwner: RovoFileAriResourceOwner,
resourceType: RovoFileAriResourceType,
resourceIdSlug: "activation/{activationId}/{fileUploadId}",
resourceIdSegmentFormats: {
activationId: /[a-zA-Z0-9\-]+/,
// eslint-disable-line no-useless-escape
fileUploadId: /[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/rovo/file/index.ts
var RovoFileAri = class _RovoFileAri extends RegisteredAri {
constructor(opts) {
- super(opts);
- this._siteId = opts.cloudId || "", this._activationId = opts.resourceIdSegmentValues.activationId, this._fileUploadId = opts.resourceIdSegmentValues.fileUploadId;
+ super(opts), this._siteId = opts.cloudId || "", this._activationId = opts.resourceIdSegmentValues.activationId, this._fileUploadId = opts.resourceIdSegmentValues.fileUploadId;
}
get siteId() {
return this._siteId;
}
@@ -469,25 +462,22 @@
var rovoMessageAriStaticOpts = {
qualifier: "ari",
platformQualifier: "cloud",
cloudId: new RegExp("^[a-zA-Z0-9_\\-.]{1,255}$"),
- // eslint-disable-line no-useless-escape
resourceOwner: RovoMessageAriResourceOwner,
resourceType: RovoMessageAriResourceType,
resourceIdSlug: "activation/{activationId}/{uuid}",
resourceIdSegmentFormats: {
activationId: /[a-zA-Z0-9\-]+/,
// eslint-disable-line no-useless-escape
uuid: /[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/rovo/message/index.ts
var RovoMessageAri = class _RovoMessageAri extends RegisteredAri {
constructor(opts) {
- super(opts);
- this._siteId = opts.cloudId || "", this._activationId = opts.resourceIdSegmentValues.activationId, this._uuid = opts.resourceIdSegmentValues.uuid;
+ super(opts), this._siteId = opts.cloudId || "", this._activationId = opts.resourceIdSegmentValues.activationId, this._uuid = opts.resourceIdSegmentValues.uuid;
}
get siteId() {
return this._siteId;
}
@@ -532,9 +522,8 @@
var rovoScenarioAriStaticOpts = {
qualifier: "ari",
platformQualifier: "cloud",
cloudId: new RegExp("^$"),
- // eslint-disable-line no-useless-escape
resourceOwner: RovoScenarioAriResourceOwner,
resourceType: RovoScenarioAriResourceType,
resourceIdSlug: "activation/{activationId}/{scenarioId}",
resourceIdSegmentFormats: {
@@ -547,10 +536,9 @@
// src/rovo/scenario/index.ts
var RovoScenarioAri = class _RovoScenarioAri extends RegisteredAri {
constructor(opts) {
- super(opts);
- this._activationId = opts.resourceIdSegmentValues.activationId, this._scenarioId = opts.resourceIdSegmentValues.scenarioId;
+ super(opts), this._activationId = opts.resourceIdSegmentValues.activationId, this._scenarioId = opts.resourceIdSegmentValues.scenarioId;
}
get activationId() {
return this._activationId;
}
@@ -591,23 +579,20 @@
var rovoSiteAriStaticOpts = {
qualifier: "ari",
platformQualifier: "cloud",
cloudId: new RegExp("^$"),
- // eslint-disable-line no-useless-escape
resourceOwner: RovoSiteAriResourceOwner,
resourceType: RovoSiteAriResourceType,
resourceIdSlug: "{siteId}",
resourceIdSegmentFormats: {
siteId: /[a-zA-Z0-9_\-.]{1,255}/
- // eslint-disable-line no-useless-escape
}
};
// src/rovo/site/index.ts
var RovoSiteAri = class _RovoSiteAri extends RegisteredAri {
constructor(opts) {
- super(opts);
- this._siteId = opts.resourceIdSegmentValues.siteId;
+ super(opts), this._siteId = opts.resourceIdSegmentValues.siteId;
}
get siteId() {
return this._siteId;
}
@@ -643,9 +628,8 @@
var rovoWorkspaceAriStaticOpts = {
qualifier: "ari",
platformQualifier: "cloud",
cloudId: new RegExp("^$"),
- // eslint-disable-line no-useless-escape
resourceOwner: RovoWorkspaceAriResourceOwner,
resourceType: RovoWorkspaceAriResourceType,
resourceIdSlug: "{activationId}",
resourceIdSegmentFormats: {
@@ -656,10 +640,9 @@
// src/rovo/workspace/index.ts
var RovoWorkspaceAri = class _RovoWorkspaceAri extends RegisteredAri {
constructor(opts) {
- super(opts);
- this._activationId = opts.resourceIdSegmentValues.activationId;
+ super(opts), this._activationId = opts.resourceIdSegmentValues.activationId;
}
get activationId() {
return this._activationId;
}