@forge/util

2.0.1-experimental-78908582.0.1-experimental-04cc2b9
packages/ari/avp/index.js
~packages/ari/avp/index.jsModified
+67−33
Index: package/packages/ari/avp/index.js
===================================================================
--- package/packages/ari/avp/index.js
+++ package/packages/ari/avp/index.js
@@ -285,29 +285,32 @@
   }
 };
 
 // src/avp/chart/types.ts
-var AvpChartAriResourceType = "chart";
+var AvpChartAriResourceOwner = "avp", AvpChartAriResourceType = "chart";
 
 // src/avp/chart/manifest.ts
 var avpChartAriStaticOpts = {
   qualifier: "ari",
   platformQualifier: "cloud",
   cloudId: new RegExp("^[a-zA-Z0-9_\\-.]{1,255}$"),
-  resourceOwner: "avp",
+  // eslint-disable-line no-useless-escape
+  resourceOwner: AvpChartAriResourceOwner,
   resourceType: AvpChartAriResourceType,
   resourceIdSlug: "activation/{activationId}/{chartId}",
   resourceIdSegmentFormats: {
     activationId: /[a-zA-Z0-9\-]+/,
     // eslint-disable-line no-useless-escape
     chartId: /[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/avp/chart/index.ts
 var AvpChartAri = class _AvpChartAri extends RegisteredAri {
   constructor(opts) {
-    super(opts), this._siteId = opts.cloudId || "", this._activationId = opts.resourceIdSegmentValues.activationId, this._chartId = opts.resourceIdSegmentValues.chartId;
+    super(opts);
+    this._siteId = opts.cloudId || "", this._activationId = opts.resourceIdSegmentValues.activationId, this._chartId = opts.resourceIdSegmentValues.chartId;
   }
   get siteId() {
     return this._siteId;
   }
@@ -345,29 +348,32 @@
   }
 };
 
 // src/avp/control/types.ts
-var AvpControlAriResourceType = "control";
+var AvpControlAriResourceOwner = "avp", AvpControlAriResourceType = "control";
 
 // src/avp/control/manifest.ts
 var avpControlAriStaticOpts = {
   qualifier: "ari",
   platformQualifier: "cloud",
   cloudId: new RegExp("^[a-zA-Z0-9_\\-.]{1,255}$"),
-  resourceOwner: "avp",
+  // eslint-disable-line no-useless-escape
+  resourceOwner: AvpControlAriResourceOwner,
   resourceType: AvpControlAriResourceType,
   resourceIdSlug: "activation/{activationId}/{controlId}",
   resourceIdSegmentFormats: {
     activationId: /[a-zA-Z0-9\-]+/,
     // eslint-disable-line no-useless-escape
     controlId: /[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/avp/control/index.ts
 var AvpControlAri = class _AvpControlAri extends RegisteredAri {
   constructor(opts) {
-    super(opts), this._siteId = opts.cloudId || "", this._activationId = opts.resourceIdSegmentValues.activationId, this._controlId = opts.resourceIdSegmentValues.controlId;
+    super(opts);
+    this._siteId = opts.cloudId || "", this._activationId = opts.resourceIdSegmentValues.activationId, this._controlId = opts.resourceIdSegmentValues.controlId;
   }
   get siteId() {
     return this._siteId;
   }
@@ -405,29 +411,32 @@
   }
 };
 
 // src/avp/dashboard/types.ts
-var AvpDashboardAriResourceType = "dashboard";
+var AvpDashboardAriResourceOwner = "avp", AvpDashboardAriResourceType = "dashboard";
 
 // src/avp/dashboard/manifest.ts
 var avpDashboardAriStaticOpts = {
   qualifier: "ari",
   platformQualifier: "cloud",
   cloudId: new RegExp("^[a-zA-Z0-9_\\-.]{1,255}$"),
-  resourceOwner: "avp",
+  // eslint-disable-line no-useless-escape
+  resourceOwner: AvpDashboardAriResourceOwner,
   resourceType: AvpDashboardAriResourceType,
   resourceIdSlug: "activation/{activationId}/{dashboardId}",
   resourceIdSegmentFormats: {
     activationId: /[a-zA-Z0-9\-]+/,
     // eslint-disable-line no-useless-escape
     dashboardId: /[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/avp/dashboard/index.ts
 var AvpDashboardAri = class _AvpDashboardAri extends RegisteredAri {
   constructor(opts) {
-    super(opts), this._siteId = opts.cloudId || "", this._activationId = opts.resourceIdSegmentValues.activationId, this._dashboardId = opts.resourceIdSegmentValues.dashboardId;
+    super(opts);
+    this._siteId = opts.cloudId || "", this._activationId = opts.resourceIdSegmentValues.activationId, this._dashboardId = opts.resourceIdSegmentValues.dashboardId;
   }
   get siteId() {
     return this._siteId;
   }
@@ -465,30 +474,34 @@
   }
 };
 
 // src/avp/dashboard-chart/types.ts
-var AvpDashboardChartAriResourceType = "dashboard-chart";
+var AvpDashboardChartAriResourceOwner = "avp", AvpDashboardChartAriResourceType = "dashboard-chart";
 
 // src/avp/dashboard-chart/manifest.ts
 var avpDashboardChartAriStaticOpts = {
   qualifier: "ari",
   platformQualifier: "cloud",
   cloudId: new RegExp("^[a-zA-Z0-9_\\-.]{1,255}$"),
-  resourceOwner: "avp",
+  // eslint-disable-line no-useless-escape
+  resourceOwner: AvpDashboardChartAriResourceOwner,
   resourceType: AvpDashboardChartAriResourceType,
   resourceIdSlug: "activation/{activationId}/dashboard/{dashboardId}/{chartId}",
   resourceIdSegmentFormats: {
     activationId: /[a-zA-Z0-9\-]+/,
     // eslint-disable-line no-useless-escape
     dashboardId: /[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
     chartId: /[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/avp/dashboard-chart/index.ts
 var AvpDashboardChartAri = class _AvpDashboardChartAri extends RegisteredAri {
   constructor(opts) {
-    super(opts), this._siteId = opts.cloudId || "", this._activationId = opts.resourceIdSegmentValues.activationId, this._dashboardId = opts.resourceIdSegmentValues.dashboardId, this._chartId = opts.resourceIdSegmentValues.chartId;
+    super(opts);
+    this._siteId = opts.cloudId || "", this._activationId = opts.resourceIdSegmentValues.activationId, this._dashboardId = opts.resourceIdSegmentValues.dashboardId, this._chartId = opts.resourceIdSegmentValues.chartId;
   }
   get siteId() {
     return this._siteId;
   }
@@ -531,29 +544,32 @@
   }
 };
 
 // src/avp/data-share/types.ts
-var AvpDataShareAriResourceType = "data-share";
+var AvpDataShareAriResourceOwner = "avp", AvpDataShareAriResourceType = "data-share";
 
 // src/avp/data-share/manifest.ts
 var avpDataShareAriStaticOpts = {
   qualifier: "ari",
   platformQualifier: "cloud",
   cloudId: new RegExp("^[a-zA-Z0-9_\\-.]{1,255}$"),
-  resourceOwner: "avp",
+  // eslint-disable-line no-useless-escape
+  resourceOwner: AvpDataShareAriResourceOwner,
   resourceType: AvpDataShareAriResourceType,
   resourceIdSlug: "activation/{activationId}/{datashareId}",
   resourceIdSegmentFormats: {
     activationId: /[a-zA-Z0-9\-]+/,
     // eslint-disable-line no-useless-escape
     datashareId: /[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/avp/data-share/index.ts
 var AvpDataShareAri = class _AvpDataShareAri extends RegisteredAri {
   constructor(opts) {
-    super(opts), this._siteId = opts.cloudId || "", this._activationId = opts.resourceIdSegmentValues.activationId, this._datashareId = opts.resourceIdSegmentValues.datashareId;
+    super(opts);
+    this._siteId = opts.cloudId || "", this._activationId = opts.resourceIdSegmentValues.activationId, this._datashareId = opts.resourceIdSegmentValues.datashareId;
   }
   get siteId() {
     return this._siteId;
   }
@@ -591,29 +607,32 @@
   }
 };
 
 // src/avp/datasource/types.ts
-var AvpDatasourceAriResourceType = "datasource";
+var AvpDatasourceAriResourceOwner = "avp", AvpDatasourceAriResourceType = "datasource";
 
 // src/avp/datasource/manifest.ts
 var avpDatasourceAriStaticOpts = {
   qualifier: "ari",
   platformQualifier: "cloud",
   cloudId: new RegExp("^[a-zA-Z0-9_\\-.]{1,255}$"),
-  resourceOwner: "avp",
+  // eslint-disable-line no-useless-escape
+  resourceOwner: AvpDatasourceAriResourceOwner,
   resourceType: AvpDatasourceAriResourceType,
   resourceIdSlug: "activation/{activationId}/{datasourceId}",
   resourceIdSegmentFormats: {
     activationId: /[a-zA-Z0-9\-]+/,
     // eslint-disable-line no-useless-escape
     datasourceId: /[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/avp/datasource/index.ts
 var AvpDatasourceAri = class _AvpDatasourceAri extends RegisteredAri {
   constructor(opts) {
-    super(opts), this._siteId = opts.cloudId || "", this._activationId = opts.resourceIdSegmentValues.activationId, this._datasourceId = opts.resourceIdSegmentValues.datasourceId;
+    super(opts);
+    this._siteId = opts.cloudId || "", this._activationId = opts.resourceIdSegmentValues.activationId, this._datasourceId = opts.resourceIdSegmentValues.datasourceId;
   }
   get siteId() {
     return this._siteId;
   }
@@ -651,30 +670,34 @@
   }
 };
 
 // src/avp/pipeline-query/types.ts
-var AvpPipelineQueryAriResourceType = "pipeline-query";
+var AvpPipelineQueryAriResourceOwner = "avp", AvpPipelineQueryAriResourceType = "pipeline-query";
 
 // src/avp/pipeline-query/manifest.ts
 var avpPipelineQueryAriStaticOpts = {
   qualifier: "ari",
   platformQualifier: "cloud",
   cloudId: new RegExp("^[a-zA-Z0-9_\\-.]{1,255}$"),
-  resourceOwner: "avp",
+  // eslint-disable-line no-useless-escape
+  resourceOwner: AvpPipelineQueryAriResourceOwner,
   resourceType: AvpPipelineQueryAriResourceType,
   resourceIdSlug: "activation/{activationId}/pipeline/{pipelineId}/{pipelineQueryId}",
   resourceIdSegmentFormats: {
     activationId: /[a-zA-Z0-9\-]+/,
     // eslint-disable-line no-useless-escape
     pipelineId: /[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
     pipelineQueryId: /[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/avp/pipeline-query/index.ts
 var AvpPipelineQueryAri = class _AvpPipelineQueryAri extends RegisteredAri {
   constructor(opts) {
-    super(opts), this._siteId = opts.cloudId || "", this._activationId = opts.resourceIdSegmentValues.activationId, this._pipelineId = opts.resourceIdSegmentValues.pipelineId, this._pipelineQueryId = opts.resourceIdSegmentValues.pipelineQueryId;
+    super(opts);
+    this._siteId = opts.cloudId || "", this._activationId = opts.resourceIdSegmentValues.activationId, this._pipelineId = opts.resourceIdSegmentValues.pipelineId, this._pipelineQueryId = opts.resourceIdSegmentValues.pipelineQueryId;
   }
   get siteId() {
     return this._siteId;
   }
@@ -717,27 +740,30 @@
   }
 };
 
 // src/avp/role/types.ts
-var AvpRoleAriResourceType = "role";
+var AvpRoleAriResourceOwner = "avp", AvpRoleAriResourceType = "role";
 
 // src/avp/role/manifest.ts
 var avpRoleAriStaticOpts = {
   qualifier: "ari",
   platformQualifier: "cloud",
   cloudId: new RegExp("^$"),
-  resourceOwner: "avp",
+  // eslint-disable-line no-useless-escape
+  resourceOwner: AvpRoleAriResourceOwner,
   resourceType: AvpRoleAriResourceType,
   resourceIdSlug: "{roleId}",
   resourceIdSegmentFormats: {
     roleId: /[!a-zA-Z0-9\-_.~@:;{}=]+(\/[!a-zA-Z0-9\-_.~@:;{}=]+)*/
+    // eslint-disable-line no-useless-escape
   }
 };
 
 // src/avp/role/index.ts
 var AvpRoleAri = class _AvpRoleAri extends RegisteredAri {
   constructor(opts) {
-    super(opts), this._roleId = opts.resourceIdSegmentValues.roleId;
+    super(opts);
+    this._roleId = opts.resourceIdSegmentValues.roleId;
   }
   get roleId() {
     return this._roleId;
   }
@@ -766,27 +792,30 @@
   }
 };
 
 // src/avp/site/types.ts
-var AvpSiteAriResourceType = "site";
+var AvpSiteAriResourceOwner = "avp", AvpSiteAriResourceType = "site";
 
 // src/avp/site/manifest.ts
 var avpSiteAriStaticOpts = {
   qualifier: "ari",
   platformQualifier: "cloud",
   cloudId: new RegExp("^$"),
-  resourceOwner: "avp",
+  // eslint-disable-line no-useless-escape
+  resourceOwner: AvpSiteAriResourceOwner,
   resourceType: AvpSiteAriResourceType,
   resourceIdSlug: "{siteId}",
   resourceIdSegmentFormats: {
     siteId: /[a-zA-Z0-9_\-.]{1,255}/
+    // eslint-disable-line no-useless-escape
   }
 };
 
 // src/avp/site/index.ts
 var AvpSiteAri = class _AvpSiteAri extends RegisteredAri {
   constructor(opts) {
-    super(opts), this._siteId = opts.resourceIdSegmentValues.siteId;
+    super(opts);
+    this._siteId = opts.resourceIdSegmentValues.siteId;
   }
   get siteId() {
     return this._siteId;
   }
@@ -815,29 +844,32 @@
   }
 };
 
 // src/avp/subscription/types.ts
-var AvpSubscriptionAriResourceType = "subscription";
+var AvpSubscriptionAriResourceOwner = "avp", AvpSubscriptionAriResourceType = "subscription";
 
 // src/avp/subscription/manifest.ts
 var avpSubscriptionAriStaticOpts = {
   qualifier: "ari",
   platformQualifier: "cloud",
   cloudId: new RegExp("^[a-zA-Z0-9_\\-.]{1,255}$"),
-  resourceOwner: "avp",
+  // eslint-disable-line no-useless-escape
+  resourceOwner: AvpSubscriptionAriResourceOwner,
   resourceType: AvpSubscriptionAriResourceType,
   resourceIdSlug: "activation/{activationId}/{subscriptionId}",
   resourceIdSegmentFormats: {
     activationId: /[a-zA-Z0-9\-]+/,
     // eslint-disable-line no-useless-escape
     subscriptionId: /[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/avp/subscription/index.ts
 var AvpSubscriptionAri = class _AvpSubscriptionAri extends RegisteredAri {
   constructor(opts) {
-    super(opts), this._siteId = opts.cloudId || "", this._activationId = opts.resourceIdSegmentValues.activationId, this._subscriptionId = opts.resourceIdSegmentValues.subscriptionId;
+    super(opts);
+    this._siteId = opts.cloudId || "", this._activationId = opts.resourceIdSegmentValues.activationId, this._subscriptionId = opts.resourceIdSegmentValues.subscriptionId;
   }
   get siteId() {
     return this._siteId;
   }
@@ -875,16 +907,17 @@
   }
 };
 
 // src/avp/workspace/types.ts
-var AvpWorkspaceAriResourceType = "workspace";
+var AvpWorkspaceAriResourceOwner = "avp", AvpWorkspaceAriResourceType = "workspace";
 
 // src/avp/workspace/manifest.ts
 var avpWorkspaceAriStaticOpts = {
   qualifier: "ari",
   platformQualifier: "cloud",
   cloudId: new RegExp("^[a-zA-Z0-9_\\-.]{1,255}$"),
-  resourceOwner: "avp",
+  // eslint-disable-line no-useless-escape
+  resourceOwner: AvpWorkspaceAriResourceOwner,
   resourceType: AvpWorkspaceAriResourceType,
   resourceIdSlug: "{workspaceId}",
   resourceIdSegmentFormats: {
     workspaceId: /[a-zA-Z0-9\-]+/
@@ -894,9 +927,10 @@
 
 // src/avp/workspace/index.ts
 var AvpWorkspaceAri = class _AvpWorkspaceAri 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;
   }