@northern.tech/store 0.5.0 → 0.5.1

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.
@@ -38,7 +38,7 @@ import {
38
38
  startUpgrade,
39
39
  storeSsoConfig,
40
40
  tenantDataDivergedMessage
41
- } from "../chunk-DA6QVCOG.js";
41
+ } from "../chunk-FQW72QFK.js";
42
42
  import "../chunk-YWHRAPDQ.js";
43
43
  import "../chunk-ZIUUV35J.js";
44
44
  import "../chunk-MPYYSFPL.js";
@@ -2549,10 +2549,11 @@ var setSearchState = createAppAsyncThunk(`${sliceName}/setSearchState`, (searchS
2549
2549
  // src/deploymentsSlice/thunks.ts
2550
2550
  var import_helpers8 = require("@northern.tech/utils/helpers");
2551
2551
  var import_tracking = __toESM(require("@northern.tech/utils/tracking"), 1);
2552
- var import_validator = require("validator");
2552
+ var import_validator = __toESM(require("validator"), 1);
2553
+ var { isUUID } = import_validator.default;
2553
2554
  var { receivedDevice, setSnackbar: setSnackbar2 } = actions_default;
2554
2555
  var { page: defaultPage, perPage: defaultPerPage } = import_constants5.DEVICE_LIST_DEFAULTS;
2555
- var deriveDeploymentGroup = ({ filter, group, groups = [], name }) => group || groups.length === 1 && !(0, import_validator.isUUID)(name) ? groups[0] : filter?.name;
2556
+ var deriveDeploymentGroup = ({ filter, group, groups = [], name }) => group || groups.length === 1 && !isUUID(name) ? groups[0] : filter?.name;
2556
2557
  var transformDeployments = (deployments, deploymentsById) => deployments.sort((0, import_helpers8.customSort)(true, "created")).reduce(
2557
2558
  (accu, item) => {
2558
2559
  const filter = item.filter;
@@ -4218,7 +4219,7 @@ var requestPlanChange = createAppAsyncThunk(
4218
4219
  );
4219
4220
  var downloadLicenseReport = createAppAsyncThunk(
4220
4221
  `${sliceName6}/downloadLicenseReport`,
4221
- (_, { dispatch }) => general_api_default.get(`${import_constants5.deviceAuthV2}/reports/devices`).catch((err) => commonErrorHandler(err, "There was an error downloading the report", dispatch, commonErrorFallback)).then((res) => res.data)
4222
+ (_, { dispatch }) => general_api_default.get(`${import_constants5.deviceAuthV2}/license`).catch((err) => commonErrorHandler(err, "There was an error downloading the report", dispatch, commonErrorFallback)).then((res) => res.data)
4222
4223
  );
4223
4224
  var createIntegration = createAppAsyncThunk(
4224
4225
  `${sliceName6}/createIntegration`,