@qrvey/cd-package-registry 1.0.24-1517 → 1.0.26-1554

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cjs/index.js CHANGED
@@ -4361,12 +4361,13 @@ __name(_DatasetFetchClient, "DatasetFetchClient");
4361
4361
  var DatasetFetchClient = _DatasetFetchClient;
4362
4362
  var _DashboardFetchClient = class _DashboardFetchClient extends BaseFetchClient {
4363
4363
  static async getDashboard(params, options) {
4364
- var _a3;
4364
+ var _a3, _b;
4365
4365
  const url = `/dx/v1/dashboard/${params.dashboardId}?userId=${params.userId}`;
4366
4366
  params.released = (_a3 = params.released) != null ? _a3 : true;
4367
4367
  const requestOptions = _DashboardFetchClient.fetchOptions(options);
4368
- if (params.released) requestOptions.queryParameters = __spreadProps(__spreadValues({}, requestOptions.queryParameters), {
4369
- version: "RELEASED"
4368
+ const version = (_b = params.version) != null ? _b : params.released ? "RELEASED" : "";
4369
+ if (version) requestOptions.queryParameters = __spreadProps(__spreadValues({}, requestOptions.queryParameters), {
4370
+ version
4370
4371
  });
4371
4372
  requestOptions.headers = __spreadProps(__spreadValues({}, requestOptions.headers), {
4372
4373
  "auth-user-id": params.userId
@@ -4935,7 +4936,8 @@ Metric ID: ${(_l = input.itemData) == null ? void 0 : _l.metricId}`
4935
4936
  const dashboards = await Promise.all(params.map((param) => DashboardFetchClient.getDashboard({
4936
4937
  userId: this.params.userId,
4937
4938
  appId: this.params.appId,
4938
- dashboardId: param.dashboardId
4939
+ dashboardId: param.dashboardId,
4940
+ version: "AUTO"
4939
4941
  }, this.options)));
4940
4942
  return dashboards;
4941
4943
  }