@northern.tech/store 0.41.0 → 0.41.2
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/actions.d.cts +6 -6
- package/dist/actions.d.ts +6 -6
- package/dist/api/general-api.cjs +1 -1
- package/dist/api/general-api.js +1 -1
- package/dist/appSlice/index.d.cts +1 -1
- package/dist/appSlice/index.d.ts +1 -1
- package/dist/appSlice/index.js +1 -1
- package/dist/appSlice/mocks.d.cts +1 -1
- package/dist/appSlice/mocks.d.ts +1 -1
- package/dist/appSlice/selectors.d.cts +7 -7
- package/dist/appSlice/selectors.d.ts +7 -7
- package/dist/appSlice/thunks.d.cts +2 -2
- package/dist/appSlice/thunks.d.ts +2 -2
- package/dist/auth.cjs +1 -1
- package/dist/auth.d.cts +1 -1
- package/dist/auth.d.ts +1 -1
- package/dist/auth.js +1 -1
- package/dist/commonConstants.cjs +3 -1
- package/dist/commonConstants.d.cts +2 -2
- package/dist/commonConstants.d.ts +2 -2
- package/dist/commonConstants.js +2 -2
- package/dist/commonSelectors.cjs +18 -12
- package/dist/commonSelectors.cjs.map +1 -1
- package/dist/commonSelectors.d.cts +9 -9
- package/dist/commonSelectors.d.ts +9 -9
- package/dist/commonSelectors.js +19 -13
- package/dist/commonSelectors.js.map +1 -1
- package/dist/{constants-CNZ5L0A0.cjs → constants-C_SC_VKE.cjs} +18 -1
- package/dist/constants-C_SC_VKE.cjs.map +1 -0
- package/dist/{constants-OcdoVk6f.d.ts → constants-CzjK2gV-.d.ts} +7 -2
- package/dist/{constants-_p6w8uEp.d.cts → constants-DAi2zOZN.d.cts} +7 -2
- package/dist/{constants-Cj2kp3Iy.js → constants-xpheFFkA.js} +7 -2
- package/dist/constants-xpheFFkA.js.map +1 -0
- package/dist/constants.cjs +3 -1
- package/dist/constants.d.cts +2 -2
- package/dist/constants.d.ts +2 -2
- package/dist/constants.js +2 -2
- package/dist/deploymentsSlice/constants.cjs +1 -1
- package/dist/deploymentsSlice/constants.js +1 -1
- package/dist/deploymentsSlice/index.cjs +1 -1
- package/dist/deploymentsSlice/index.js +1 -1
- package/dist/deploymentsSlice/selectors.cjs +1 -1
- package/dist/deploymentsSlice/selectors.d.cts +7 -7
- package/dist/deploymentsSlice/selectors.d.ts +7 -7
- package/dist/deploymentsSlice/selectors.js +1 -1
- package/dist/deploymentsSlice/thunks.d.cts +4 -4
- package/dist/deploymentsSlice/thunks.d.ts +4 -4
- package/dist/devicesSlice/constants.cjs +1 -1
- package/dist/devicesSlice/constants.d.cts +1 -1
- package/dist/devicesSlice/constants.d.ts +1 -1
- package/dist/devicesSlice/constants.js +1 -1
- package/dist/devicesSlice/index.d.cts +1 -1
- package/dist/devicesSlice/index.d.ts +1 -1
- package/dist/devicesSlice/index.js +1 -1
- package/dist/devicesSlice/mocks.js +1 -1
- package/dist/devicesSlice/selectors.cjs +1 -1
- package/dist/devicesSlice/selectors.d.cts +7 -7
- package/dist/devicesSlice/selectors.d.ts +7 -7
- package/dist/devicesSlice/selectors.js +1 -1
- package/dist/devicesSlice/thunks.d.cts +4 -4
- package/dist/devicesSlice/thunks.d.ts +4 -4
- package/dist/{index-Cf81vLTi.d.ts → index-BCErsO5h.d.ts} +2 -2
- package/dist/{index-5Q-iI4EB.d.cts → index-BQCnJ5gh.d.cts} +2 -2
- package/dist/{index-BqJuhvO_.d.ts → index-BtGhTFBc.d.ts} +2 -2
- package/dist/{index-ByfjrTdH.d.ts → index-C5oQrJGU.d.ts} +2 -2
- package/dist/{index-Bj3OArhr.d.cts → index-CSOj22xK.d.cts} +2 -2
- package/dist/{index-CSk4ENmk.d.cts → index-CgPgKMve.d.cts} +2 -2
- package/dist/{index-BLvjQfGj.d.ts → index-CnH51JfB.d.ts} +2 -2
- package/dist/{index-C8QadAm7.d.cts → index-Dn1SqQYh.d.cts} +2 -2
- package/dist/{index-BBsUj1a8.d.ts → index-H9zg_3UV.d.ts} +2 -2
- package/dist/{index-Zs9RnVoR.d.cts → index-VEayiYkv.d.cts} +2 -2
- package/dist/{index-DLDY7bNT.d.ts → index-m1c0qk2s.d.ts} +2 -2
- package/dist/{index-Doc_1P_Y.d.cts → index-vXsWdis1.d.cts} +2 -2
- package/dist/locationutils.cjs +29 -37
- package/dist/locationutils.cjs.map +1 -1
- package/dist/locationutils.d.cts +2 -2
- package/dist/locationutils.d.ts +2 -2
- package/dist/locationutils.js +29 -37
- package/dist/locationutils.js.map +1 -1
- package/dist/monitorSlice/constants.d.cts +1 -1
- package/dist/monitorSlice/constants.d.ts +1 -1
- package/dist/monitorSlice/index.d.cts +1 -1
- package/dist/monitorSlice/index.d.ts +1 -1
- package/dist/monitorSlice/index.js +1 -1
- package/dist/monitorSlice/mocks.d.cts +1 -1
- package/dist/monitorSlice/mocks.d.ts +1 -1
- package/dist/monitorSlice/mocks.js +1 -1
- package/dist/monitorSlice/selectors.d.cts +1 -1
- package/dist/monitorSlice/selectors.d.ts +1 -1
- package/dist/monitorSlice/thunks.cjs +1 -1
- package/dist/monitorSlice/thunks.d.cts +4 -4
- package/dist/monitorSlice/thunks.d.ts +4 -4
- package/dist/monitorSlice/thunks.js +1 -1
- package/dist/onboardingSlice/selectors.d.cts +1 -1
- package/dist/onboardingSlice/selectors.d.ts +1 -1
- package/dist/onboardingSlice/thunks.d.cts +2 -2
- package/dist/onboardingSlice/thunks.d.ts +2 -2
- package/dist/organizationSlice/constants.cjs +1 -1
- package/dist/organizationSlice/constants.js +1 -1
- package/dist/organizationSlice/index.cjs +1 -1
- package/dist/organizationSlice/index.d.cts +1 -1
- package/dist/organizationSlice/index.d.ts +1 -1
- package/dist/organizationSlice/index.js +1 -1
- package/dist/organizationSlice/mocks.d.cts +1 -1
- package/dist/organizationSlice/mocks.d.ts +1 -1
- package/dist/organizationSlice/mocks.js +1 -1
- package/dist/organizationSlice/selectors.cjs +1 -1
- package/dist/organizationSlice/selectors.d.cts +8 -8
- package/dist/organizationSlice/selectors.d.ts +8 -8
- package/dist/organizationSlice/selectors.js +1 -1
- package/dist/organizationSlice/thunks.d.cts +4 -4
- package/dist/organizationSlice/thunks.d.ts +4 -4
- package/dist/organizationSlice/types.d.cts +1 -1
- package/dist/organizationSlice/types.d.ts +1 -1
- package/dist/releasesSlice/index.d.cts +1 -1
- package/dist/releasesSlice/index.d.ts +1 -1
- package/dist/releasesSlice/index.js +1 -1
- package/dist/releasesSlice/mocks.js +1 -1
- package/dist/releasesSlice/selectors.d.cts +7 -7
- package/dist/releasesSlice/selectors.d.ts +7 -7
- package/dist/releasesSlice/thunks.cjs +1 -1
- package/dist/releasesSlice/thunks.d.cts +4 -4
- package/dist/releasesSlice/thunks.d.ts +4 -4
- package/dist/releasesSlice/thunks.js +1 -1
- package/dist/sockethook.cjs +8 -6
- package/dist/sockethook.cjs.map +1 -1
- package/dist/sockethook.js +8 -5
- package/dist/sockethook.js.map +1 -1
- package/dist/{store-B5-0USDz.d.cts → store-CGP5pCH8.d.cts} +18 -10
- package/dist/{store-CmiiLjxd.d.ts → store-CkgokFlk.d.ts} +18 -10
- package/dist/store.cjs +1 -1
- package/dist/store.d.cts +1 -1
- package/dist/store.d.ts +1 -1
- package/dist/store.js +1 -1
- package/dist/storehooks.cjs +1 -1
- package/dist/storehooks.d.cts +2 -2
- package/dist/storehooks.d.ts +2 -2
- package/dist/storehooks.js +1 -1
- package/dist/thunks.cjs +7 -2
- package/dist/thunks.cjs.map +1 -1
- package/dist/thunks.js +7 -2
- package/dist/thunks.js.map +1 -1
- package/dist/{types-BjtmX60L.d.ts → types-uHmaedGU.d.ts} +2 -2
- package/dist/{types-B33vKVhi.d.cts → types-yQ0ypHMZ.d.cts} +2 -2
- package/dist/usersSlice/constants.cjs +1 -1
- package/dist/usersSlice/constants.js +1 -1
- package/dist/usersSlice/index.cjs +1 -1
- package/dist/usersSlice/index.d.cts +1 -1
- package/dist/usersSlice/index.d.ts +1 -1
- package/dist/usersSlice/index.js +1 -1
- package/dist/usersSlice/mocks.d.cts +1 -1
- package/dist/usersSlice/mocks.d.ts +1 -1
- package/dist/usersSlice/mocks.js +1 -1
- package/dist/usersSlice/selectors.cjs +1 -1
- package/dist/usersSlice/selectors.d.cts +7 -7
- package/dist/usersSlice/selectors.d.ts +7 -7
- package/dist/usersSlice/selectors.js +1 -1
- package/dist/usersSlice/thunks.d.cts +4 -4
- package/dist/usersSlice/thunks.d.ts +4 -4
- package/dist/utils.cjs +9 -1
- package/dist/utils.cjs.map +1 -1
- package/dist/utils.d.cts +2 -2
- package/dist/utils.d.ts +2 -2
- package/dist/utils.js +8 -2
- package/dist/utils.js.map +1 -1
- package/package.json +2 -2
- package/dist/constants-CNZ5L0A0.cjs.map +0 -1
- package/dist/constants-Cj2kp3Iy.js.map +0 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { o as UserSliceType } from "../index-
|
|
2
|
-
import { i as ReleaseSliceType } from "../index-
|
|
1
|
+
import { o as UserSliceType } from "../index-BCErsO5h.js";
|
|
2
|
+
import { i as ReleaseSliceType } from "../index-m1c0qk2s.js";
|
|
3
3
|
import { n as OnboardingSliceType } from "../index-DBUt8xVc.js";
|
|
4
4
|
import { l as SelectionState, n as DeploymentByStatus, o as DeploymentsSliceType, t as Deployment } from "../index-Bb4yvvgG.js";
|
|
5
|
-
import { s as DeviceSliceType } from "../index-
|
|
6
|
-
import { t as AppSliceType } from "../index-
|
|
7
|
-
import { t as MonitorSliceType } from "../index-
|
|
8
|
-
import { t as OrganizationSliceType } from "../index-
|
|
9
|
-
import { r as RootState } from "../store-
|
|
5
|
+
import { s as DeviceSliceType } from "../index-BtGhTFBc.js";
|
|
6
|
+
import { t as AppSliceType } from "../index-CnH51JfB.js";
|
|
7
|
+
import { t as MonitorSliceType } from "../index-C5oQrJGU.js";
|
|
8
|
+
import { t as OrganizationSliceType } from "../index-H9zg_3UV.js";
|
|
9
|
+
import { r as RootState } from "../store-CkgokFlk.js";
|
|
10
10
|
|
|
11
11
|
//#region src/deploymentsSlice/selectors.d.ts
|
|
12
12
|
declare const getDeploymentsById: (state: RootState) => Record<string, Deployment>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { gt as DEPLOYMENT_STATES } from "../constants-
|
|
1
|
+
import { gt as DEPLOYMENT_STATES } from "../constants-xpheFFkA.js";
|
|
2
2
|
import { createSelector } from "@reduxjs/toolkit";
|
|
3
3
|
//#region src/deploymentsSlice/selectors.ts
|
|
4
4
|
const getDeploymentsById = (state) => state.deployments.byId;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { T as SortOptions } from "../constants-
|
|
1
|
+
import { T as SortOptions } from "../constants-DAi2zOZN.cjs";
|
|
2
2
|
import { c as SelectionListState, i as DeploymentConfig, l as SelectionState, r as DeploymentByStatusKey, t as Deployment } from "../index-EPmsL6Lb.cjs";
|
|
3
|
-
import { t as Device$1 } from "../index-
|
|
4
|
-
import { i as SnackbarContent } from "../index-
|
|
5
|
-
import { r as RootState, t as AppDispatch } from "../store-
|
|
3
|
+
import { t as Device$1 } from "../index-vXsWdis1.cjs";
|
|
4
|
+
import { i as SnackbarContent } from "../index-Dn1SqQYh.cjs";
|
|
5
|
+
import { r as RootState, t as AppDispatch } from "../store-CGP5pCH8.cjs";
|
|
6
6
|
import { DeploymentV1, DeploymentV2, NewDeploymentForGroup, NewDeploymentTypeManagement, NewDeploymentV2TypeManagement } from "@northern.tech/types/MenderTypes";
|
|
7
7
|
|
|
8
8
|
//#region src/deploymentsSlice/thunks.d.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { T as SortOptions } from "../constants-
|
|
1
|
+
import { T as SortOptions } from "../constants-CzjK2gV-.js";
|
|
2
2
|
import { c as SelectionListState, i as DeploymentConfig, l as SelectionState, r as DeploymentByStatusKey, t as Deployment } from "../index-Bb4yvvgG.js";
|
|
3
|
-
import { t as Device$1 } from "../index-
|
|
4
|
-
import { i as SnackbarContent } from "../index-
|
|
5
|
-
import { r as RootState, t as AppDispatch } from "../store-
|
|
3
|
+
import { t as Device$1 } from "../index-BtGhTFBc.js";
|
|
4
|
+
import { i as SnackbarContent } from "../index-CnH51JfB.js";
|
|
5
|
+
import { r as RootState, t as AppDispatch } from "../store-CkgokFlk.js";
|
|
6
6
|
import { DeploymentV1, DeploymentV2, NewDeploymentForGroup, NewDeploymentTypeManagement, NewDeploymentV2TypeManagement } from "@northern.tech/types/MenderTypes";
|
|
7
7
|
|
|
8
8
|
//#region src/deploymentsSlice/thunks.d.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_constants = require("../constants-
|
|
2
|
+
const require_constants = require("../constants-C_SC_VKE.cjs");
|
|
3
3
|
exports.DEVICE_CONNECT_STATES = require_constants.DEVICE_CONNECT_STATES;
|
|
4
4
|
exports.DEVICE_DISMISSAL_STATE = require_constants.DEVICE_DISMISSAL_STATE;
|
|
5
5
|
exports.DEVICE_MESSAGE_PROTOCOLS = require_constants.DEVICE_MESSAGE_PROTOCOLS;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _t as geoAttributes, dt as DEVICE_DISMISSAL_STATE, ft as DEVICE_MESSAGE_PROTOCOLS, gt as emptyFilter, ht as REPORT_CHART_SIZE_LIMIT, mt as DeviceAuthState, pt as DEVICE_MESSAGE_TYPES, ut as DEVICE_CONNECT_STATES } from "../constants-
|
|
1
|
+
import { _t as geoAttributes, dt as DEVICE_DISMISSAL_STATE, ft as DEVICE_MESSAGE_PROTOCOLS, gt as emptyFilter, ht as REPORT_CHART_SIZE_LIMIT, mt as DeviceAuthState, pt as DEVICE_MESSAGE_TYPES, ut as DEVICE_CONNECT_STATES } from "../constants-DAi2zOZN.cjs";
|
|
2
2
|
export { DEVICE_CONNECT_STATES, DEVICE_DISMISSAL_STATE, DEVICE_MESSAGE_PROTOCOLS, DEVICE_MESSAGE_TYPES, DeviceAuthState, REPORT_CHART_SIZE_LIMIT, emptyFilter, geoAttributes };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _t as geoAttributes, dt as DEVICE_DISMISSAL_STATE, ft as DEVICE_MESSAGE_PROTOCOLS, gt as emptyFilter, ht as REPORT_CHART_SIZE_LIMIT, mt as DeviceAuthState, pt as DEVICE_MESSAGE_TYPES, ut as DEVICE_CONNECT_STATES } from "../constants-
|
|
1
|
+
import { _t as geoAttributes, dt as DEVICE_DISMISSAL_STATE, ft as DEVICE_MESSAGE_PROTOCOLS, gt as emptyFilter, ht as REPORT_CHART_SIZE_LIMIT, mt as DeviceAuthState, pt as DEVICE_MESSAGE_TYPES, ut as DEVICE_CONNECT_STATES } from "../constants-CzjK2gV-.js";
|
|
2
2
|
export { DEVICE_CONNECT_STATES, DEVICE_DISMISSAL_STATE, DEVICE_MESSAGE_PROTOCOLS, DEVICE_MESSAGE_TYPES, DeviceAuthState, REPORT_CHART_SIZE_LIMIT, emptyFilter, geoAttributes };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ct as DEVICE_DISMISSAL_STATE, dt as REPORT_CHART_SIZE_LIMIT, ft as emptyFilter, lt as DEVICE_MESSAGE_PROTOCOLS, pt as geoAttributes, st as DEVICE_CONNECT_STATES, ut as DEVICE_MESSAGE_TYPES } from "../constants-
|
|
1
|
+
import { ct as DEVICE_DISMISSAL_STATE, dt as REPORT_CHART_SIZE_LIMIT, ft as emptyFilter, lt as DEVICE_MESSAGE_PROTOCOLS, pt as geoAttributes, st as DEVICE_CONNECT_STATES, ut as DEVICE_MESSAGE_TYPES } from "../constants-xpheFFkA.js";
|
|
2
2
|
export { DEVICE_CONNECT_STATES, DEVICE_DISMISSAL_STATE, DEVICE_MESSAGE_PROTOCOLS, DEVICE_MESSAGE_TYPES, REPORT_CHART_SIZE_LIMIT, emptyFilter, geoAttributes };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as DeviceListState, c as InventoryAttributes, d as devicesSlice, f as initialState, i as DeviceGroups, l as _default, n as DeviceFilter, o as DeviceSelectedAttribute, p as sliceName, r as DeviceGroup, s as DeviceSliceType, t as Device, u as actions } from "../index-
|
|
1
|
+
import { a as DeviceListState, c as InventoryAttributes, d as devicesSlice, f as initialState, i as DeviceGroups, l as _default, n as DeviceFilter, o as DeviceSelectedAttribute, p as sliceName, r as DeviceGroup, s as DeviceSliceType, t as Device, u as actions } from "../index-vXsWdis1.cjs";
|
|
2
2
|
export { Device, DeviceFilter, DeviceGroup, DeviceGroups, DeviceListState, DeviceSelectedAttribute, DeviceSliceType, InventoryAttributes, actions, _default as default, devicesSlice, initialState, sliceName };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as DeviceListState, c as InventoryAttributes, d as devicesSlice, f as initialState, i as DeviceGroups, l as _default, n as DeviceFilter, o as DeviceSelectedAttribute, p as sliceName, r as DeviceGroup, s as DeviceSliceType, t as Device, u as actions } from "../index-
|
|
1
|
+
import { a as DeviceListState, c as InventoryAttributes, d as devicesSlice, f as initialState, i as DeviceGroups, l as _default, n as DeviceFilter, o as DeviceSelectedAttribute, p as sliceName, r as DeviceGroup, s as DeviceSliceType, t as Device, u as actions } from "../index-BtGhTFBc.js";
|
|
2
2
|
export { Device, DeviceFilter, DeviceGroup, DeviceGroups, DeviceListState, DeviceSelectedAttribute, DeviceSliceType, InventoryAttributes, actions, _default as default, devicesSlice, initialState, sliceName };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { f as SORTING_OPTIONS, l as DEVICE_LIST_DEFAULTS, u as DEVICE_STATES } from "../constants-
|
|
1
|
+
import { f as SORTING_OPTIONS, l as DEVICE_LIST_DEFAULTS, u as DEVICE_STATES } from "../constants-xpheFFkA.js";
|
|
2
2
|
import { createSlice } from "@reduxjs/toolkit";
|
|
3
3
|
import { deepCompare, duplicateFilter } from "@northern.tech/utils/helpers";
|
|
4
4
|
//#region src/devicesSlice/index.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { f as SORTING_OPTIONS, u as DEVICE_STATES } from "../constants-
|
|
1
|
+
import { f as SORTING_OPTIONS, u as DEVICE_STATES } from "../constants-xpheFFkA.js";
|
|
2
2
|
import { initialState } from "./index.js";
|
|
3
3
|
//#region src/devicesSlice/mocks.ts
|
|
4
4
|
const deviceTypes = { qemu: "qemux86-64" };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_constants = require("../constants-
|
|
2
|
+
const require_constants = require("../constants-C_SC_VKE.cjs");
|
|
3
3
|
let _reduxjs_toolkit = require("@reduxjs/toolkit");
|
|
4
4
|
let _northern_tech_utils_helpers = require("@northern.tech/utils/helpers");
|
|
5
5
|
let _northern_tech_utils_constants = require("@northern.tech/utils/constants");
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { o as UserSliceType } from "../index-
|
|
2
|
-
import { i as ReleaseSliceType } from "../index-
|
|
1
|
+
import { o as UserSliceType } from "../index-CgPgKMve.cjs";
|
|
2
|
+
import { i as ReleaseSliceType } from "../index-VEayiYkv.cjs";
|
|
3
3
|
import { n as OnboardingSliceType } from "../index-DBUt8xVc.cjs";
|
|
4
4
|
import { o as DeploymentsSliceType } from "../index-EPmsL6Lb.cjs";
|
|
5
|
-
import { a as DeviceListState, n as DeviceFilter, r as DeviceGroup, s as DeviceSliceType, t as Device } from "../index-
|
|
6
|
-
import { t as AppSliceType } from "../index-
|
|
7
|
-
import { t as MonitorSliceType } from "../index-
|
|
8
|
-
import { t as OrganizationSliceType } from "../index-
|
|
9
|
-
import { r as RootState } from "../store-
|
|
5
|
+
import { a as DeviceListState, n as DeviceFilter, r as DeviceGroup, s as DeviceSliceType, t as Device } from "../index-vXsWdis1.cjs";
|
|
6
|
+
import { t as AppSliceType } from "../index-Dn1SqQYh.cjs";
|
|
7
|
+
import { t as MonitorSliceType } from "../index-BQCnJ5gh.cjs";
|
|
8
|
+
import { t as OrganizationSliceType } from "../index-CSOj22xK.cjs";
|
|
9
|
+
import { r as RootState } from "../store-CGP5pCH8.cjs";
|
|
10
10
|
|
|
11
11
|
//#region src/devicesSlice/selectors.d.ts
|
|
12
12
|
declare const getAcceptedDevices: (state: RootState) => {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { o as UserSliceType } from "../index-
|
|
2
|
-
import { i as ReleaseSliceType } from "../index-
|
|
1
|
+
import { o as UserSliceType } from "../index-BCErsO5h.js";
|
|
2
|
+
import { i as ReleaseSliceType } from "../index-m1c0qk2s.js";
|
|
3
3
|
import { n as OnboardingSliceType } from "../index-DBUt8xVc.js";
|
|
4
4
|
import { o as DeploymentsSliceType } from "../index-Bb4yvvgG.js";
|
|
5
|
-
import { a as DeviceListState, n as DeviceFilter, r as DeviceGroup, s as DeviceSliceType, t as Device } from "../index-
|
|
6
|
-
import { t as AppSliceType } from "../index-
|
|
7
|
-
import { t as MonitorSliceType } from "../index-
|
|
8
|
-
import { t as OrganizationSliceType } from "../index-
|
|
9
|
-
import { r as RootState } from "../store-
|
|
5
|
+
import { a as DeviceListState, n as DeviceFilter, r as DeviceGroup, s as DeviceSliceType, t as Device } from "../index-BtGhTFBc.js";
|
|
6
|
+
import { t as AppSliceType } from "../index-CnH51JfB.js";
|
|
7
|
+
import { t as MonitorSliceType } from "../index-C5oQrJGU.js";
|
|
8
|
+
import { t as OrganizationSliceType } from "../index-H9zg_3UV.js";
|
|
9
|
+
import { r as RootState } from "../store-CkgokFlk.js";
|
|
10
10
|
|
|
11
11
|
//#region src/devicesSlice/selectors.d.ts
|
|
12
12
|
declare const getAcceptedDevices: (state: RootState) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Pt as UNGROUPED_GROUP, u as DEVICE_STATES } from "../constants-xpheFFkA.js";
|
|
2
2
|
import { createSelector } from "@reduxjs/toolkit";
|
|
3
3
|
import { duplicateFilter } from "@northern.tech/utils/helpers";
|
|
4
4
|
//#region src/devicesSlice/selectors.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { m as DeviceIssueOptionKey, mt as DeviceAuthState } from "../constants-
|
|
2
|
-
import { a as DeviceListState, n as DeviceFilter, o as DeviceSelectedAttribute, r as DeviceGroup, t as Device$1 } from "../index-
|
|
3
|
-
import { i as SnackbarContent, n as SearchState } from "../index-
|
|
4
|
-
import { r as RootState, t as AppDispatch } from "../store-
|
|
1
|
+
import { m as DeviceIssueOptionKey, mt as DeviceAuthState } from "../constants-DAi2zOZN.cjs";
|
|
2
|
+
import { a as DeviceListState, n as DeviceFilter, o as DeviceSelectedAttribute, r as DeviceGroup, t as Device$1 } from "../index-vXsWdis1.cjs";
|
|
3
|
+
import { i as SnackbarContent, n as SearchState } from "../index-Dn1SqQYh.cjs";
|
|
4
|
+
import { r as RootState, t as AppDispatch } from "../store-CGP5pCH8.cjs";
|
|
5
5
|
import { ConnectionState, Device, DeviceConfiguration, DeviceInventoryResponse, DeviceTierLimits, DeviceWithImage, Filter, Integration, ManagementApiConfiguration, NewConfigurationDeployment, PreAuthSet, SortCriteria, Status } from "@northern.tech/types/MenderTypes";
|
|
6
6
|
|
|
7
7
|
//#region src/devicesSlice/thunks.d.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { m as DeviceIssueOptionKey, mt as DeviceAuthState } from "../constants-
|
|
2
|
-
import { a as DeviceListState, n as DeviceFilter, o as DeviceSelectedAttribute, r as DeviceGroup, t as Device$1 } from "../index-
|
|
3
|
-
import { i as SnackbarContent, n as SearchState } from "../index-
|
|
4
|
-
import { r as RootState, t as AppDispatch } from "../store-
|
|
1
|
+
import { m as DeviceIssueOptionKey, mt as DeviceAuthState } from "../constants-CzjK2gV-.js";
|
|
2
|
+
import { a as DeviceListState, n as DeviceFilter, o as DeviceSelectedAttribute, r as DeviceGroup, t as Device$1 } from "../index-BtGhTFBc.js";
|
|
3
|
+
import { i as SnackbarContent, n as SearchState } from "../index-CnH51JfB.js";
|
|
4
|
+
import { r as RootState, t as AppDispatch } from "../store-CkgokFlk.js";
|
|
5
5
|
import { ConnectionState, Device, DeviceConfiguration, DeviceInventoryResponse, DeviceTierLimits, DeviceWithImage, Filter, Integration, ManagementApiConfiguration, NewConfigurationDeployment, PreAuthSet, SortCriteria, Status } from "@northern.tech/types/MenderTypes";
|
|
6
6
|
|
|
7
7
|
//#region src/devicesSlice/thunks.d.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as Role,
|
|
1
|
+
import { S as Role, St as FilterOperator, v as PermissionSet } from "./constants-CzjK2gV-.js";
|
|
2
2
|
import { i as ReadState } from "./constants-Sn4gnNA3.js";
|
|
3
3
|
import { PayloadAction } from "@reduxjs/toolkit";
|
|
4
4
|
import { DeploymentPhase, TenantInfo, TenantsIdName, User } from "@northern.tech/types/MenderTypes";
|
|
@@ -146,4 +146,4 @@ declare const actions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
|
146
146
|
declare const _default: import("redux").Reducer<UserSliceType>;
|
|
147
147
|
//#endregion
|
|
148
148
|
export { UserSettings as a, actions as c, usersSlice as d, UserSession as i, initialState as l, GlobalSettings as n, UserSliceType as o, User$1 as r, _default as s, CustomColumn as t, sliceName as u };
|
|
149
|
-
//# sourceMappingURL=index-
|
|
149
|
+
//# sourceMappingURL=index-BCErsO5h.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { lt as AlertChannelKey, m as DeviceIssueOptionKey } from "./constants-
|
|
1
|
+
import { lt as AlertChannelKey, m as DeviceIssueOptionKey } from "./constants-DAi2zOZN.cjs";
|
|
2
2
|
import { Alert } from "@northern.tech/types/MenderTypes";
|
|
3
3
|
import { PayloadAction } from "@reduxjs/toolkit";
|
|
4
4
|
|
|
@@ -89,4 +89,4 @@ declare const actions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
|
89
89
|
declare const _default: import("redux").Reducer<MonitorSliceType>;
|
|
90
90
|
//#endregion
|
|
91
91
|
export { monitorSlice as a, initialState as i, _default as n, sliceName as o, actions as r, MonitorSliceType as t };
|
|
92
|
-
//# sourceMappingURL=index-
|
|
92
|
+
//# sourceMappingURL=index-BQCnJ5gh.d.cts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { T as SortOptions, m as DeviceIssueOptionKey, mt as DeviceAuthState, n as ALL_DEVICE_STATES
|
|
1
|
+
import { St as FilterOperator, T as SortOptions, m as DeviceIssueOptionKey, mt as DeviceAuthState, n as ALL_DEVICE_STATES } from "./constants-CzjK2gV-.js";
|
|
2
2
|
import { s as DeviceDeployment } from "./index-Bb4yvvgG.js";
|
|
3
3
|
import { PayloadAction } from "@reduxjs/toolkit";
|
|
4
4
|
import { ConnectionState, Device, DeviceConfiguration, DeviceState, DeviceTierLimits, MonitorConfiguration, Scope, SortCriteria, Status } from "@northern.tech/types/MenderTypes";
|
|
@@ -202,4 +202,4 @@ declare const actions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
|
202
202
|
declare const _default: import("redux").Reducer<DeviceSliceType>;
|
|
203
203
|
//#endregion
|
|
204
204
|
export { DeviceListState as a, InventoryAttributes as c, devicesSlice as d, initialState as f, DeviceGroups as i, _default as l, DeviceFilter as n, DeviceSelectedAttribute as o, sliceName as p, DeviceGroup as r, DeviceSliceType as s, Device$1 as t, actions as u };
|
|
205
|
-
//# sourceMappingURL=index-
|
|
205
|
+
//# sourceMappingURL=index-BtGhTFBc.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { lt as AlertChannelKey, m as DeviceIssueOptionKey } from "./constants-
|
|
1
|
+
import { lt as AlertChannelKey, m as DeviceIssueOptionKey } from "./constants-CzjK2gV-.js";
|
|
2
2
|
import { PayloadAction } from "@reduxjs/toolkit";
|
|
3
3
|
import { Alert } from "@northern.tech/types/MenderTypes";
|
|
4
4
|
|
|
@@ -89,4 +89,4 @@ declare const actions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
|
89
89
|
declare const _default: import("redux").Reducer<MonitorSliceType>;
|
|
90
90
|
//#endregion
|
|
91
91
|
export { monitorSlice as a, initialState as i, _default as n, sliceName as o, actions as r, MonitorSliceType as t };
|
|
92
|
-
//# sourceMappingURL=index-
|
|
92
|
+
//# sourceMappingURL=index-C5oQrJGU.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as TenantList, f as Webhook, i as Organization, l as SSOConfig, n as AuditLogSelectionState, o as ProductConfig, r as Card, t as AuditLog$1 } from "./types-
|
|
1
|
+
import { d as TenantList, f as Webhook, i as Organization, l as SSOConfig, n as AuditLogSelectionState, o as ProductConfig, r as Card, t as AuditLog$1 } from "./types-yQ0ypHMZ.cjs";
|
|
2
2
|
import { AuditLog, BillingProfile, Event, Integration } from "@northern.tech/types/MenderTypes";
|
|
3
3
|
import { PayloadAction } from "@reduxjs/toolkit";
|
|
4
4
|
|
|
@@ -65,4 +65,4 @@ declare const actions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
|
65
65
|
declare const _default: import("redux").Reducer<OrganizationSliceType>;
|
|
66
66
|
//#endregion
|
|
67
67
|
export { organizationSlice as a, initialState as i, _default as n, sliceName as o, actions as r, OrganizationSliceType as t };
|
|
68
|
-
//# sourceMappingURL=index-
|
|
68
|
+
//# sourceMappingURL=index-CSOj22xK.d.cts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as Role,
|
|
1
|
+
import { S as Role, St as FilterOperator, v as PermissionSet } from "./constants-DAi2zOZN.cjs";
|
|
2
2
|
import { i as ReadState } from "./constants-Sn4gnNA3.cjs";
|
|
3
3
|
import { DeploymentPhase, TenantInfo, TenantsIdName, User } from "@northern.tech/types/MenderTypes";
|
|
4
4
|
import { PayloadAction } from "@reduxjs/toolkit";
|
|
@@ -146,4 +146,4 @@ declare const actions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
|
146
146
|
declare const _default: import("redux").Reducer<UserSliceType>;
|
|
147
147
|
//#endregion
|
|
148
148
|
export { UserSettings as a, actions as c, usersSlice as d, UserSession as i, initialState as l, GlobalSettings as n, UserSliceType as o, User$1 as r, _default as s, CustomColumn as t, sliceName as u };
|
|
149
|
-
//# sourceMappingURL=index-
|
|
149
|
+
//# sourceMappingURL=index-CgPgKMve.d.cts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { T as SortOptions } from "./constants-
|
|
1
|
+
import { T as SortOptions } from "./constants-CzjK2gV-.js";
|
|
2
2
|
import { PayloadAction } from "@reduxjs/toolkit";
|
|
3
3
|
import { SnackbarProps } from "@mui/material";
|
|
4
4
|
|
|
@@ -116,4 +116,4 @@ declare const actions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
|
116
116
|
declare const _default: import("redux").Reducer<AppSliceType>;
|
|
117
117
|
//#endregion
|
|
118
118
|
export { Upload as a, appSlice as c, SnackbarContent as i, initialState as l, SearchState as n, _default as o, SentryConfig as r, actions as s, AppSliceType as t, sliceName as u };
|
|
119
|
-
//# sourceMappingURL=index-
|
|
119
|
+
//# sourceMappingURL=index-CnH51JfB.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { T as SortOptions } from "./constants-
|
|
1
|
+
import { T as SortOptions } from "./constants-DAi2zOZN.cjs";
|
|
2
2
|
import { PayloadAction } from "@reduxjs/toolkit";
|
|
3
3
|
import { SnackbarProps } from "@mui/material";
|
|
4
4
|
|
|
@@ -116,4 +116,4 @@ declare const actions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
|
116
116
|
declare const _default: import("redux").Reducer<AppSliceType>;
|
|
117
117
|
//#endregion
|
|
118
118
|
export { Upload as a, appSlice as c, SnackbarContent as i, initialState as l, SearchState as n, _default as o, SentryConfig as r, actions as s, AppSliceType as t, sliceName as u };
|
|
119
|
-
//# sourceMappingURL=index-
|
|
119
|
+
//# sourceMappingURL=index-Dn1SqQYh.d.cts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as TenantList, f as Webhook, i as Organization, l as SSOConfig, n as AuditLogSelectionState, o as ProductConfig, r as Card, t as AuditLog$1 } from "./types-
|
|
1
|
+
import { d as TenantList, f as Webhook, i as Organization, l as SSOConfig, n as AuditLogSelectionState, o as ProductConfig, r as Card, t as AuditLog$1 } from "./types-uHmaedGU.js";
|
|
2
2
|
import { PayloadAction } from "@reduxjs/toolkit";
|
|
3
3
|
import { AuditLog, BillingProfile, Event, Integration } from "@northern.tech/types/MenderTypes";
|
|
4
4
|
|
|
@@ -65,4 +65,4 @@ declare const actions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
|
65
65
|
declare const _default: import("redux").Reducer<OrganizationSliceType>;
|
|
66
66
|
//#endregion
|
|
67
67
|
export { organizationSlice as a, initialState as i, _default as n, sliceName as o, actions as r, OrganizationSliceType as t };
|
|
68
|
-
//# sourceMappingURL=index-
|
|
68
|
+
//# sourceMappingURL=index-H9zg_3UV.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { T as SortOptions } from "./constants-
|
|
1
|
+
import { T as SortOptions } from "./constants-DAi2zOZN.cjs";
|
|
2
2
|
import { ArtifactV1, ArtifactV2, DeltaJobDetailsItem, DeltaJobsListItem, Manifest, ReleaseV1, ReleaseV2, Software, Tags, Update } from "@northern.tech/types/MenderTypes";
|
|
3
3
|
import { PayloadAction } from "@reduxjs/toolkit";
|
|
4
4
|
|
|
@@ -162,4 +162,4 @@ declare const actions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
|
162
162
|
declare const _default: import("redux").Reducer<ReleaseSliceType>;
|
|
163
163
|
//#endregion
|
|
164
164
|
export { ReleasesList as a, _default as c, releaseSlice as d, sliceName as f, ReleaseSliceType as i, actions as l, ManifestsList as n, SoftwareKind as o, Release as r, SoftwareList as s, Artifact as t, initialState as u };
|
|
165
|
-
//# sourceMappingURL=index-
|
|
165
|
+
//# sourceMappingURL=index-VEayiYkv.d.cts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { T as SortOptions } from "./constants-
|
|
1
|
+
import { T as SortOptions } from "./constants-CzjK2gV-.js";
|
|
2
2
|
import { PayloadAction } from "@reduxjs/toolkit";
|
|
3
3
|
import { ArtifactV1, ArtifactV2, DeltaJobDetailsItem, DeltaJobsListItem, Manifest, ReleaseV1, ReleaseV2, Software, Tags, Update } from "@northern.tech/types/MenderTypes";
|
|
4
4
|
|
|
@@ -162,4 +162,4 @@ declare const actions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
|
162
162
|
declare const _default: import("redux").Reducer<ReleaseSliceType>;
|
|
163
163
|
//#endregion
|
|
164
164
|
export { ReleasesList as a, _default as c, releaseSlice as d, sliceName as f, ReleaseSliceType as i, actions as l, ManifestsList as n, SoftwareKind as o, Release as r, SoftwareList as s, Artifact as t, initialState as u };
|
|
165
|
-
//# sourceMappingURL=index-
|
|
165
|
+
//# sourceMappingURL=index-m1c0qk2s.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { T as SortOptions, m as DeviceIssueOptionKey, mt as DeviceAuthState, n as ALL_DEVICE_STATES
|
|
1
|
+
import { St as FilterOperator, T as SortOptions, m as DeviceIssueOptionKey, mt as DeviceAuthState, n as ALL_DEVICE_STATES } from "./constants-DAi2zOZN.cjs";
|
|
2
2
|
import { s as DeviceDeployment } from "./index-EPmsL6Lb.cjs";
|
|
3
3
|
import { ConnectionState, Device, DeviceConfiguration, DeviceState, DeviceTierLimits, MonitorConfiguration, Scope, SortCriteria, Status } from "@northern.tech/types/MenderTypes";
|
|
4
4
|
import { PayloadAction } from "@reduxjs/toolkit";
|
|
@@ -202,4 +202,4 @@ declare const actions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
|
202
202
|
declare const _default: import("redux").Reducer<DeviceSliceType>;
|
|
203
203
|
//#endregion
|
|
204
204
|
export { DeviceListState as a, InventoryAttributes as c, devicesSlice as d, initialState as f, DeviceGroups as i, _default as l, DeviceFilter as n, DeviceSelectedAttribute as o, sliceName as p, DeviceGroup as r, DeviceSliceType as s, Device$1 as t, actions as u };
|
|
205
|
-
//# sourceMappingURL=index-
|
|
205
|
+
//# sourceMappingURL=index-vXsWdis1.d.cts.map
|
package/dist/locationutils.cjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_constants = require("./constants-
|
|
2
|
+
const require_constants = require("./constants-C_SC_VKE.cjs");
|
|
3
|
+
const require_utils = require("./utils.cjs");
|
|
3
4
|
let _northern_tech_utils_helpers = require("@northern.tech/utils/helpers");
|
|
4
5
|
let _northern_tech_utils_constants = require("@northern.tech/utils/constants");
|
|
5
6
|
//#region src/locationutils.ts
|
|
@@ -32,27 +33,11 @@ const commonFields = {
|
|
|
32
33
|
target: "open"
|
|
33
34
|
}
|
|
34
35
|
};
|
|
35
|
-
const
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
inventory: {
|
|
41
|
-
delimiter: "inventory",
|
|
42
|
-
filters: []
|
|
43
|
-
},
|
|
44
|
-
monitor: {
|
|
45
|
-
delimiter: "monitor",
|
|
46
|
-
filters: []
|
|
47
|
-
},
|
|
48
|
-
system: {
|
|
49
|
-
delimiter: "system",
|
|
50
|
-
filters: []
|
|
51
|
-
},
|
|
52
|
-
tags: {
|
|
53
|
-
delimiter: "tags",
|
|
54
|
-
filters: []
|
|
55
|
-
}
|
|
36
|
+
const filterScopeParams = [...Object.values(_northern_tech_utils_constants.ATTRIBUTE_SCOPES), require_constants.ATTRIBUTE_SCOPE_LABELS.default];
|
|
37
|
+
const scopeFromParam = (param, key) => {
|
|
38
|
+
if (param === require_constants.ATTRIBUTE_SCOPE_LABELS.default) return _northern_tech_utils_constants.ATTRIBUTE_SCOPES.system;
|
|
39
|
+
if (param === require_constants.ATTRIBUTE_SCOPE_LABELS.system) return key.startsWith("mender-orchestrator-manifest.") ? _northern_tech_utils_constants.ATTRIBUTE_SCOPES.inventory : _northern_tech_utils_constants.ATTRIBUTE_SCOPES.system;
|
|
40
|
+
return param;
|
|
56
41
|
};
|
|
57
42
|
const commonProcessor = (searchParams) => {
|
|
58
43
|
const params = new URLSearchParams(searchParams);
|
|
@@ -88,10 +73,13 @@ const commonProcessor = (searchParams) => {
|
|
|
88
73
|
};
|
|
89
74
|
const legacyDeviceQueryParse = (searchParams, filteringAttributes) => {
|
|
90
75
|
const params = new URLSearchParams(searchParams);
|
|
91
|
-
const result =
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
76
|
+
const result = {
|
|
77
|
+
identity: [],
|
|
78
|
+
inventory: [],
|
|
79
|
+
monitor: [],
|
|
80
|
+
system: [],
|
|
81
|
+
tags: []
|
|
82
|
+
};
|
|
95
83
|
if (params.get("group")) {
|
|
96
84
|
result.inventory.push({
|
|
97
85
|
...require_constants.emptyFilter,
|
|
@@ -124,18 +112,18 @@ const legacyDeviceQueryParse = (searchParams, filteringAttributes) => {
|
|
|
124
112
|
};
|
|
125
113
|
const scopedFilterParse = (searchParams) => {
|
|
126
114
|
const params = new URLSearchParams(searchParams);
|
|
127
|
-
const filters =
|
|
128
|
-
|
|
129
|
-
if (!params.has(scope)) return accu;
|
|
130
|
-
accu[scope] = params.getAll(scope).map((scopedQuery) => {
|
|
115
|
+
const filters = filterScopeParams.reduce((accu, param) => {
|
|
116
|
+
params.getAll(param).forEach((scopedQuery) => {
|
|
131
117
|
const items = scopedQuery.split(SEPARATOR);
|
|
132
|
-
|
|
118
|
+
const key = items[0];
|
|
119
|
+
const scope = scopeFromParam(param, key);
|
|
120
|
+
accu[scope].push({
|
|
133
121
|
...require_constants.emptyFilter,
|
|
134
122
|
scope,
|
|
135
|
-
key
|
|
123
|
+
key,
|
|
136
124
|
operator: `$${items[1]}`,
|
|
137
125
|
value: items.slice(2).join(SEPARATOR)
|
|
138
|
-
};
|
|
126
|
+
});
|
|
139
127
|
});
|
|
140
128
|
return accu;
|
|
141
129
|
}, {
|
|
@@ -145,7 +133,7 @@ const scopedFilterParse = (searchParams) => {
|
|
|
145
133
|
system: [],
|
|
146
134
|
tags: []
|
|
147
135
|
});
|
|
148
|
-
|
|
136
|
+
filterScopeParams.forEach((param) => params.delete(param));
|
|
149
137
|
return {
|
|
150
138
|
filters,
|
|
151
139
|
params
|
|
@@ -156,7 +144,7 @@ const parseDeviceQuery = (searchParams, extraProps = {}) => {
|
|
|
156
144
|
const { filteringAttributes = {}, pageState = {} } = extraProps;
|
|
157
145
|
const pageStateExtension = pageState.id?.length === 1 ? { open: true } : {};
|
|
158
146
|
let scopedFilters;
|
|
159
|
-
if (Object.values(filteringAttributes).some((scopeValues) => scopeValues.some((scopedValue) => queryParams.get(scopedValue))) && !
|
|
147
|
+
if (Object.values(filteringAttributes).some((scopeValues) => scopeValues.some((scopedValue) => queryParams.get(scopedValue))) && !filterScopeParams.some((param) => queryParams.get(param)) || queryParams.get("group")) {
|
|
160
148
|
const { filters, params } = legacyDeviceQueryParse(queryParams, filteringAttributes);
|
|
161
149
|
scopedFilters = filters;
|
|
162
150
|
queryParams = params;
|
|
@@ -208,9 +196,13 @@ const stripFilterOperator = (operator) => operator.replaceAll("$", "");
|
|
|
208
196
|
const formatFilters = (filters) => {
|
|
209
197
|
const result = filters.reduce((accu, filter) => {
|
|
210
198
|
const { scope = _northern_tech_utils_constants.ATTRIBUTE_SCOPES.inventory, operator = "$eq" } = filter;
|
|
211
|
-
|
|
199
|
+
const param = require_utils.getAttributeScopeLabel({
|
|
200
|
+
key: filter.key,
|
|
201
|
+
scope
|
|
202
|
+
});
|
|
203
|
+
accu[param].add(`${param}=${filter.key}${SEPARATOR}${stripFilterOperator(operator)}${SEPARATOR}${encodeURIComponent(filter.value)}`);
|
|
212
204
|
return accu;
|
|
213
|
-
},
|
|
205
|
+
}, filterScopeParams.reduce((accu, item) => ({
|
|
214
206
|
...accu,
|
|
215
207
|
[item]: /* @__PURE__ */ new Set()
|
|
216
208
|
}), {}));
|