@northern.tech/store 0.46.1 → 0.46.3
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.d.cts +3 -3
- package/dist/api/general-api.d.ts +3 -3
- 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 +2 -3
- package/dist/appSlice/mocks.d.ts +2 -3
- package/dist/appSlice/selectors.cjs +1 -2
- package/dist/appSlice/selectors.cjs.map +1 -1
- package/dist/appSlice/selectors.d.cts +26 -27
- package/dist/appSlice/selectors.d.ts +26 -27
- package/dist/appSlice/selectors.js +1 -2
- package/dist/appSlice/selectors.js.map +1 -1
- package/dist/appSlice/thunks.d.cts +5 -6
- package/dist/appSlice/thunks.d.ts +5 -6
- package/dist/auth.d.cts +6 -7
- package/dist/auth.d.ts +6 -7
- package/dist/auth.js +1 -1
- package/dist/commonConstants.d.cts +1 -1
- package/dist/commonConstants.d.ts +1 -1
- package/dist/commonConstants.js +1 -1
- package/dist/commonSelectors.d.cts +30 -31
- package/dist/commonSelectors.d.ts +30 -31
- package/dist/commonSelectors.js +1 -1
- package/dist/{constants-B_H4squx.d.ts → constants-BJuY-ODE.d.ts} +3 -3
- package/dist/{constants-Rl3FJzFf.d.cts → constants-C2O55iZu.d.cts} +3 -3
- package/dist/{constants-eWaA3HCq.js → constants-D5hACLhF.js} +3 -3
- package/dist/{constants-eWaA3HCq.js.map → constants-D5hACLhF.js.map} +1 -1
- package/dist/constants.cjs +1 -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.js +1 -1
- package/dist/deploymentsSlice/index.js +1 -1
- package/dist/deploymentsSlice/mocks.d.cts +1 -2
- package/dist/deploymentsSlice/mocks.d.ts +1 -2
- package/dist/deploymentsSlice/selectors.d.cts +15 -16
- package/dist/deploymentsSlice/selectors.d.ts +15 -16
- package/dist/deploymentsSlice/selectors.js +1 -1
- package/dist/deploymentsSlice/thunks.d.cts +20 -21
- package/dist/deploymentsSlice/thunks.d.ts +20 -21
- 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.d.cts +1 -2
- package/dist/devicesSlice/mocks.d.ts +1 -2
- package/dist/devicesSlice/mocks.js +1 -1
- package/dist/devicesSlice/selectors.cjs +4 -3
- package/dist/devicesSlice/selectors.cjs.map +1 -1
- package/dist/devicesSlice/selectors.d.cts +34 -35
- package/dist/devicesSlice/selectors.d.ts +34 -35
- package/dist/devicesSlice/selectors.js +5 -4
- package/dist/devicesSlice/selectors.js.map +1 -1
- package/dist/devicesSlice/thunks.d.cts +52 -53
- package/dist/devicesSlice/thunks.d.ts +52 -53
- package/dist/{index-DgiMpzq3.d.ts → index--SKVGToc.d.ts} +2 -2
- package/dist/{index-DeOpb2oK.d.cts → index-BKU1G9-x.d.cts} +2 -2
- package/dist/{index-CGT1O9T5.d.ts → index-BMsafOyJ.d.ts} +2 -2
- package/dist/{index-ChKTa1aL.d.ts → index-BVNS-Aut.d.ts} +2 -2
- package/dist/{index-Ctj2r57a.d.cts → index-BfmRpbiJ.d.cts} +2 -2
- package/dist/{index-BAGyeC-q.d.ts → index-CRqnH_go.d.ts} +2 -2
- package/dist/{index-Cf6_W5Y7.d.cts → index-CqhXqGLt.d.cts} +2 -2
- package/dist/{index-BpamudGf.d.ts → index-D9GJhX1I.d.ts} +2 -2
- package/dist/{index-C_LGDJN2.d.cts → index-HjOSTTGF.d.cts} +2 -2
- package/dist/{index-DnKVKM0G.d.cts → index-KxRmyFLr.d.cts} +2 -2
- package/dist/{index-ExguKUh-.d.cts → index-fGVC5s1C.d.cts} +2 -2
- package/dist/{index-Bs0c1-WY.d.ts → index-xxqlerg5.d.ts} +2 -2
- package/dist/liststatehook.d.cts +2 -3
- package/dist/liststatehook.d.ts +2 -3
- package/dist/locationutils.d.cts +29 -30
- package/dist/locationutils.d.ts +29 -30
- package/dist/locationutils.js +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 +2 -3
- package/dist/monitorSlice/mocks.d.ts +2 -3
- package/dist/monitorSlice/mocks.js +1 -1
- package/dist/monitorSlice/selectors.d.cts +2 -3
- package/dist/monitorSlice/selectors.d.ts +2 -3
- package/dist/monitorSlice/thunks.d.cts +9 -10
- package/dist/monitorSlice/thunks.d.ts +9 -10
- package/dist/monitorSlice/thunks.js +1 -1
- package/dist/onboardingSlice/mocks.d.cts +1 -2
- package/dist/onboardingSlice/mocks.d.ts +1 -2
- package/dist/onboardingSlice/selectors.d.cts +2 -3
- package/dist/onboardingSlice/selectors.d.ts +2 -3
- package/dist/onboardingSlice/thunks.d.cts +9 -10
- package/dist/onboardingSlice/thunks.d.ts +9 -10
- package/dist/organizationSlice/constants.js +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 +3 -4
- package/dist/organizationSlice/mocks.d.ts +3 -4
- package/dist/organizationSlice/mocks.js +1 -1
- package/dist/organizationSlice/selectors.cjs +6 -6
- package/dist/organizationSlice/selectors.cjs.map +1 -1
- package/dist/organizationSlice/selectors.d.cts +33 -34
- package/dist/organizationSlice/selectors.d.ts +33 -34
- package/dist/organizationSlice/selectors.js +7 -7
- package/dist/organizationSlice/selectors.js.map +1 -1
- package/dist/organizationSlice/thunks.d.cts +60 -59
- package/dist/organizationSlice/thunks.d.ts +60 -59
- 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.d.cts +1 -2
- package/dist/releasesSlice/mocks.d.ts +1 -2
- package/dist/releasesSlice/mocks.js +1 -1
- package/dist/releasesSlice/selectors.d.cts +35 -36
- package/dist/releasesSlice/selectors.d.ts +35 -36
- package/dist/releasesSlice/thunks.d.cts +40 -41
- package/dist/releasesSlice/thunks.d.ts +40 -41
- package/dist/releasesSlice/thunks.js +1 -1
- package/dist/selectors.cjs +1 -1
- package/dist/selectors.d.cts +2 -2
- package/dist/selectors.d.ts +2 -2
- package/dist/selectors.js +2 -2
- package/dist/sockethook.d.cts +1 -2
- package/dist/sockethook.d.ts +1 -2
- package/dist/sockethook.js +1 -1
- package/dist/{store-CmvNnqoc.d.ts → store-DLp6ajT8.d.ts} +9 -9
- package/dist/{store-C-W8nPdd.d.cts → store-Dw8Uo_Df.d.cts} +9 -9
- package/dist/store.d.cts +1 -1
- package/dist/store.d.ts +1 -1
- package/dist/store.js +1 -1
- package/dist/storehooks.d.cts +5 -6
- package/dist/storehooks.d.ts +5 -6
- package/dist/storehooks.js +1 -1
- package/dist/thunks.cjs +17 -13
- package/dist/thunks.cjs.map +1 -1
- package/dist/thunks.js +18 -14
- package/dist/thunks.js.map +1 -1
- package/dist/{types-B80ckxiy.d.cts → types-B67YW1jV.d.cts} +2 -2
- package/dist/{types-B3qGQoMx.d.ts → types-DY0J79yF.d.ts} +2 -2
- package/dist/useDeploymentDevice.d.cts +1 -2
- package/dist/useDeploymentDevice.d.ts +1 -2
- package/dist/usersSlice/constants.js +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 +2 -3
- package/dist/usersSlice/mocks.d.ts +2 -3
- package/dist/usersSlice/mocks.js +1 -1
- package/dist/usersSlice/selectors.d.cts +27 -28
- package/dist/usersSlice/selectors.d.ts +27 -28
- package/dist/usersSlice/selectors.js +1 -1
- package/dist/usersSlice/thunks.d.cts +82 -83
- package/dist/usersSlice/thunks.d.ts +48 -49
- package/dist/utils.d.cts +1 -1
- package/dist/utils.d.ts +1 -1
- package/dist/utils.js +1 -1
- package/package.json +6 -5
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { T as SortOptions } from "../constants-
|
|
1
|
+
import { T as SortOptions } from "../constants-BJuY-ODE.js";
|
|
2
2
|
import { c as SelectionListState, i as DeploymentConfig, l as SelectionState, r as DeploymentByStatusKey, t as Deployment } from "../index-B8td4-rY.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-D9GJhX1I.js";
|
|
4
|
+
import { i as SnackbarContent } from "../index-xxqlerg5.js";
|
|
5
|
+
import { r as RootState, t as AppDispatch } from "../store-DLp6ajT8.js";
|
|
6
6
|
import { DeploymentV1, DeploymentV2, NewDeploymentForGroup, NewDeploymentTypeManagement, NewDeploymentV2TypeManagement } from "@northern.tech/types/MenderTypes";
|
|
7
7
|
//#region src/deploymentsSlice/thunks.d.ts
|
|
8
|
-
declare const deriveDeploymentGroup: ({ filter, group, groups, name }: Deployment) => string | undefined;
|
|
8
|
+
export declare const deriveDeploymentGroup: ({ filter, group, groups, name }: Deployment) => string | undefined;
|
|
9
9
|
type ReceivedDeployment = DeploymentV1 | DeploymentV2;
|
|
10
|
-
declare const transformDeployments: (deployments: ReceivedDeployment[], deploymentsById: Record<string, Deployment>) => {
|
|
10
|
+
export declare const transformDeployments: (deployments: ReceivedDeployment[], deploymentsById: Record<string, Deployment>) => {
|
|
11
11
|
deploymentIds: string[];
|
|
12
12
|
deployments: Record<string, Deployment>;
|
|
13
13
|
};
|
|
14
|
-
type GetDeploymentsByStatusPayload = Partial<SelectionListState> & {
|
|
14
|
+
export type GetDeploymentsByStatusPayload = Partial<SelectionListState> & {
|
|
15
15
|
group?: string;
|
|
16
16
|
shouldSelect?: boolean;
|
|
17
17
|
sort?: SortOptions;
|
|
18
18
|
status: DeploymentByStatusKey;
|
|
19
19
|
};
|
|
20
|
-
declare const getDeploymentsByStatus: import("@reduxjs/toolkit").AsyncThunk<unknown[], GetDeploymentsByStatusPayload, {
|
|
20
|
+
export declare const getDeploymentsByStatus: import("@reduxjs/toolkit").AsyncThunk<unknown[], GetDeploymentsByStatusPayload, {
|
|
21
21
|
dispatch: AppDispatch;
|
|
22
22
|
state: RootState;
|
|
23
23
|
extra?: unknown;
|
|
@@ -27,7 +27,7 @@ declare const getDeploymentsByStatus: import("@reduxjs/toolkit").AsyncThunk<unkn
|
|
|
27
27
|
fulfilledMeta?: unknown;
|
|
28
28
|
rejectedMeta?: unknown;
|
|
29
29
|
}>;
|
|
30
|
-
declare const createDeployment: import("@reduxjs/toolkit").AsyncThunk<any, {
|
|
30
|
+
export declare const createDeployment: import("@reduxjs/toolkit").AsyncThunk<any, {
|
|
31
31
|
newDeployment: NewDeploymentTypeManagement | (NewDeploymentForGroup & {
|
|
32
32
|
group: string;
|
|
33
33
|
}) | NewDeploymentV2TypeManagement;
|
|
@@ -41,7 +41,7 @@ declare const createDeployment: import("@reduxjs/toolkit").AsyncThunk<any, {
|
|
|
41
41
|
fulfilledMeta?: unknown;
|
|
42
42
|
rejectedMeta?: unknown;
|
|
43
43
|
}>;
|
|
44
|
-
declare const getDeploymentDevices: import("@reduxjs/toolkit").AsyncThunk<unknown[], {
|
|
44
|
+
export declare const getDeploymentDevices: import("@reduxjs/toolkit").AsyncThunk<unknown[], {
|
|
45
45
|
id: string;
|
|
46
46
|
page?: number;
|
|
47
47
|
perPage?: number;
|
|
@@ -61,7 +61,7 @@ type GetDeviceDeploymentsPayload = {
|
|
|
61
61
|
page?: number;
|
|
62
62
|
perPage?: number;
|
|
63
63
|
};
|
|
64
|
-
declare const getDeviceDeployments: import("@reduxjs/toolkit").AsyncThunk<{
|
|
64
|
+
export declare const getDeviceDeployments: import("@reduxjs/toolkit").AsyncThunk<{
|
|
65
65
|
payload: {
|
|
66
66
|
id: string;
|
|
67
67
|
} & Partial<Device$1>;
|
|
@@ -76,7 +76,7 @@ declare const getDeviceDeployments: import("@reduxjs/toolkit").AsyncThunk<{
|
|
|
76
76
|
fulfilledMeta?: unknown;
|
|
77
77
|
rejectedMeta?: unknown;
|
|
78
78
|
}>;
|
|
79
|
-
declare const resetDeviceDeployments: import("@reduxjs/toolkit").AsyncThunk<import("@reduxjs/toolkit").PayloadAction<{
|
|
79
|
+
export declare const resetDeviceDeployments: import("@reduxjs/toolkit").AsyncThunk<import("@reduxjs/toolkit").PayloadAction<{
|
|
80
80
|
payload: {
|
|
81
81
|
id: string;
|
|
82
82
|
} & Partial<Device$1>;
|
|
@@ -105,7 +105,7 @@ declare const resetDeviceDeployments: import("@reduxjs/toolkit").AsyncThunk<impo
|
|
|
105
105
|
fulfilledMeta?: unknown;
|
|
106
106
|
rejectedMeta?: unknown;
|
|
107
107
|
}>;
|
|
108
|
-
declare const getSingleDeployment: import("@reduxjs/toolkit").AsyncThunk<{
|
|
108
|
+
export declare const getSingleDeployment: import("@reduxjs/toolkit").AsyncThunk<{
|
|
109
109
|
payload: Deployment;
|
|
110
110
|
type: "deployments/receivedDeployment";
|
|
111
111
|
}, string, {
|
|
@@ -118,7 +118,7 @@ declare const getSingleDeployment: import("@reduxjs/toolkit").AsyncThunk<{
|
|
|
118
118
|
fulfilledMeta?: unknown;
|
|
119
119
|
rejectedMeta?: unknown;
|
|
120
120
|
}>;
|
|
121
|
-
declare const getDeviceLog: import("@reduxjs/toolkit").AsyncThunk<[{
|
|
121
|
+
export declare const getDeviceLog: import("@reduxjs/toolkit").AsyncThunk<[{
|
|
122
122
|
payload: {
|
|
123
123
|
deviceId: string;
|
|
124
124
|
id: string;
|
|
@@ -138,7 +138,7 @@ declare const getDeviceLog: import("@reduxjs/toolkit").AsyncThunk<[{
|
|
|
138
138
|
fulfilledMeta?: unknown;
|
|
139
139
|
rejectedMeta?: unknown;
|
|
140
140
|
}>;
|
|
141
|
-
declare const abortDeployment: import("@reduxjs/toolkit").AsyncThunk<[{
|
|
141
|
+
export declare const abortDeployment: import("@reduxjs/toolkit").AsyncThunk<[{
|
|
142
142
|
payload: Record<string, Deployment>;
|
|
143
143
|
type: "deployments/receivedDeployments";
|
|
144
144
|
}, {
|
|
@@ -164,7 +164,7 @@ declare const abortDeployment: import("@reduxjs/toolkit").AsyncThunk<[{
|
|
|
164
164
|
fulfilledMeta?: unknown;
|
|
165
165
|
rejectedMeta?: unknown;
|
|
166
166
|
}>;
|
|
167
|
-
declare const updateDeploymentControlMap: import("@reduxjs/toolkit").AsyncThunk<import("@reduxjs/toolkit").PayloadAction<unknown, string, {
|
|
167
|
+
export declare const updateDeploymentControlMap: import("@reduxjs/toolkit").AsyncThunk<import("@reduxjs/toolkit").PayloadAction<unknown, string, {
|
|
168
168
|
arg: string;
|
|
169
169
|
requestId: string;
|
|
170
170
|
requestStatus: "rejected";
|
|
@@ -199,7 +199,7 @@ type SetDeploymentsStatePayload = DeepPartial<SelectionState> & {
|
|
|
199
199
|
page?: number;
|
|
200
200
|
perPage?: number;
|
|
201
201
|
};
|
|
202
|
-
declare const setDeploymentsState: import("@reduxjs/toolkit").AsyncThunk<unknown[], SetDeploymentsStatePayload, {
|
|
202
|
+
export declare const setDeploymentsState: import("@reduxjs/toolkit").AsyncThunk<unknown[], SetDeploymentsStatePayload, {
|
|
203
203
|
dispatch: AppDispatch;
|
|
204
204
|
state: RootState;
|
|
205
205
|
extra?: unknown;
|
|
@@ -209,7 +209,7 @@ declare const setDeploymentsState: import("@reduxjs/toolkit").AsyncThunk<unknown
|
|
|
209
209
|
fulfilledMeta?: unknown;
|
|
210
210
|
rejectedMeta?: unknown;
|
|
211
211
|
}>;
|
|
212
|
-
declare const getDeploymentsConfig: import("@reduxjs/toolkit").AsyncThunk<{
|
|
212
|
+
export declare const getDeploymentsConfig: import("@reduxjs/toolkit").AsyncThunk<{
|
|
213
213
|
payload: DeploymentConfig;
|
|
214
214
|
type: "deployments/setDeploymentsConfig";
|
|
215
215
|
}, void, {
|
|
@@ -222,7 +222,7 @@ declare const getDeploymentsConfig: import("@reduxjs/toolkit").AsyncThunk<{
|
|
|
222
222
|
fulfilledMeta?: unknown;
|
|
223
223
|
rejectedMeta?: unknown;
|
|
224
224
|
}>;
|
|
225
|
-
declare const saveDeltaDeploymentsConfig: import("@reduxjs/toolkit").AsyncThunk<unknown, {
|
|
225
|
+
export declare const saveDeltaDeploymentsConfig: import("@reduxjs/toolkit").AsyncThunk<unknown, {
|
|
226
226
|
compressionLevel: number;
|
|
227
227
|
disableChecksum: boolean;
|
|
228
228
|
disableDecompression: boolean;
|
|
@@ -241,7 +241,7 @@ declare const saveDeltaDeploymentsConfig: import("@reduxjs/toolkit").AsyncThunk<
|
|
|
241
241
|
fulfilledMeta?: unknown;
|
|
242
242
|
rejectedMeta?: unknown;
|
|
243
243
|
}>;
|
|
244
|
-
declare const generateDeploymentLogAnalysis: import("@reduxjs/toolkit").AsyncThunk<string | undefined, {
|
|
244
|
+
export declare const generateDeploymentLogAnalysis: import("@reduxjs/toolkit").AsyncThunk<string | undefined, {
|
|
245
245
|
deploymentId: string;
|
|
246
246
|
deviceId: string;
|
|
247
247
|
}, {
|
|
@@ -255,5 +255,4 @@ declare const generateDeploymentLogAnalysis: import("@reduxjs/toolkit").AsyncThu
|
|
|
255
255
|
rejectedMeta?: unknown;
|
|
256
256
|
}>;
|
|
257
257
|
//#endregion
|
|
258
|
-
export { GetDeploymentsByStatusPayload, abortDeployment, createDeployment, deriveDeploymentGroup, generateDeploymentLogAnalysis, getDeploymentDevices, getDeploymentsByStatus, getDeploymentsConfig, getDeviceDeployments, getDeviceLog, getSingleDeployment, resetDeviceDeployments, saveDeltaDeploymentsConfig, setDeploymentsState, transformDeployments, updateDeploymentControlMap };
|
|
259
258
|
//# sourceMappingURL=thunks.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _t as emptyFilter, dt as DEVICE_CONNECT_STATES, ft as DEVICE_DISMISSAL_STATE, gt as REPORT_CHART_SIZE_LIMIT, ht as DeviceAuthState, mt as DEVICE_MESSAGE_TYPES, pt as DEVICE_MESSAGE_PROTOCOLS, vt as geoAttributes } from "../constants-
|
|
1
|
+
import { _t as emptyFilter, dt as DEVICE_CONNECT_STATES, ft as DEVICE_DISMISSAL_STATE, gt as REPORT_CHART_SIZE_LIMIT, ht as DeviceAuthState, mt as DEVICE_MESSAGE_TYPES, pt as DEVICE_MESSAGE_PROTOCOLS, vt as geoAttributes } from "../constants-C2O55iZu.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 emptyFilter, dt as DEVICE_CONNECT_STATES, ft as DEVICE_DISMISSAL_STATE, gt as REPORT_CHART_SIZE_LIMIT, ht as DeviceAuthState, mt as DEVICE_MESSAGE_TYPES, pt as DEVICE_MESSAGE_PROTOCOLS, vt as geoAttributes } from "../constants-
|
|
1
|
+
import { _t as emptyFilter, dt as DEVICE_CONNECT_STATES, ft as DEVICE_DISMISSAL_STATE, gt as REPORT_CHART_SIZE_LIMIT, ht as DeviceAuthState, mt as DEVICE_MESSAGE_TYPES, pt as DEVICE_MESSAGE_PROTOCOLS, vt as geoAttributes } from "../constants-BJuY-ODE.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_CONNECT_STATES, dt as DEVICE_MESSAGE_TYPES, ft as REPORT_CHART_SIZE_LIMIT, lt as DEVICE_DISMISSAL_STATE, mt as geoAttributes, pt as emptyFilter, ut as DEVICE_MESSAGE_PROTOCOLS } from "../constants-
|
|
1
|
+
import { ct as DEVICE_CONNECT_STATES, dt as DEVICE_MESSAGE_TYPES, ft as REPORT_CHART_SIZE_LIMIT, lt as DEVICE_DISMISSAL_STATE, mt as geoAttributes, pt as emptyFilter, ut as DEVICE_MESSAGE_PROTOCOLS } from "../constants-D5hACLhF.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 DeviceGroups, c as DeviceSliceType, d as _default, f as actions, h as sliceName, i as DeviceGroup, l as DeviceTierLimits, m as initialState, n as DeviceComponents, o as DeviceListState, p as devicesSlice, r as DeviceFilter, s as DeviceSelectedAttribute, t as Device, u as InventoryAttributes } from "../index-
|
|
1
|
+
import { a as DeviceGroups, c as DeviceSliceType, d as _default, f as actions, h as sliceName, i as DeviceGroup, l as DeviceTierLimits, m as initialState, n as DeviceComponents, o as DeviceListState, p as devicesSlice, r as DeviceFilter, s as DeviceSelectedAttribute, t as Device, u as InventoryAttributes } from "../index-KxRmyFLr.cjs";
|
|
2
2
|
export { Device, DeviceComponents, DeviceFilter, DeviceGroup, DeviceGroups, DeviceListState, DeviceSelectedAttribute, DeviceSliceType, DeviceTierLimits, InventoryAttributes, actions, _default as default, devicesSlice, initialState, sliceName };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as DeviceGroups, c as DeviceSliceType, d as _default, f as actions, h as sliceName, i as DeviceGroup, l as DeviceTierLimits, m as initialState, n as DeviceComponents, o as DeviceListState, p as devicesSlice, r as DeviceFilter, s as DeviceSelectedAttribute, t as Device, u as InventoryAttributes } from "../index-
|
|
1
|
+
import { a as DeviceGroups, c as DeviceSliceType, d as _default, f as actions, h as sliceName, i as DeviceGroup, l as DeviceTierLimits, m as initialState, n as DeviceComponents, o as DeviceListState, p as devicesSlice, r as DeviceFilter, s as DeviceSelectedAttribute, t as Device, u as InventoryAttributes } from "../index-D9GJhX1I.js";
|
|
2
2
|
export { Device, DeviceComponents, DeviceFilter, DeviceGroup, DeviceGroups, DeviceListState, DeviceSelectedAttribute, DeviceSliceType, DeviceTierLimits, 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-D5hACLhF.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,5 +1,5 @@
|
|
|
1
1
|
//#region src/devicesSlice/mocks.d.ts
|
|
2
|
-
declare const mockState: {
|
|
2
|
+
export declare const mockState: {
|
|
3
3
|
byId: {
|
|
4
4
|
a1: {
|
|
5
5
|
id: string;
|
|
@@ -166,5 +166,4 @@ declare const mockState: {
|
|
|
166
166
|
total: number;
|
|
167
167
|
};
|
|
168
168
|
//#endregion
|
|
169
|
-
export { mockState };
|
|
170
169
|
//# sourceMappingURL=mocks.d.cts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region src/devicesSlice/mocks.d.ts
|
|
2
|
-
declare const mockState: {
|
|
2
|
+
export declare const mockState: {
|
|
3
3
|
byId: {
|
|
4
4
|
a1: {
|
|
5
5
|
id: string;
|
|
@@ -166,5 +166,4 @@ declare const mockState: {
|
|
|
166
166
|
total: number;
|
|
167
167
|
};
|
|
168
168
|
//#endregion
|
|
169
|
-
export { mockState };
|
|
170
169
|
//# sourceMappingURL=mocks.d.ts.map
|
|
@@ -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-D5hACLhF.js";
|
|
2
2
|
import { initialState } from "./index.js";
|
|
3
3
|
//#region src/devicesSlice/mocks.ts
|
|
4
4
|
const deviceTypes = { qemu: "qemux86-64" };
|
|
@@ -87,9 +87,10 @@ const getGroups = (0, _reduxjs_toolkit.createSelector)([getGroupsById], (groupsB
|
|
|
87
87
|
groupId: name,
|
|
88
88
|
name: groupname
|
|
89
89
|
};
|
|
90
|
-
if ((group.filters ?? []).length > 0)
|
|
91
|
-
|
|
92
|
-
|
|
90
|
+
if ((group.filters ?? []).length > 0) {
|
|
91
|
+
if (groupname !== require_constants.UNGROUPED_GROUP.id) accu.dynamic.push(groupItem);
|
|
92
|
+
else accu.ungrouped.push(groupItem);
|
|
93
|
+
} else accu.static.push(groupItem);
|
|
93
94
|
return accu;
|
|
94
95
|
}, {
|
|
95
96
|
dynamic: [],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"selectors.cjs","names":["createSelector","DEVICE_STATES","UNGROUPED_GROUP","duplicateFilter"],"sources":["../../src/devicesSlice/selectors.ts"],"sourcesContent":["// Copyright 2023 Northern.tech AS\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { duplicateFilter } from '@northern.tech/utils/helpers';\nimport { createSelector } from '@reduxjs/toolkit';\n\nimport type { DeviceFilter, DeviceGroup } from '.';\nimport type { DeviceAuthState } from '../constants';\nimport { DEVICE_STATES, UNGROUPED_GROUP } from '../constants';\nimport type { RootState } from '../store';\n\nexport const getAcceptedDevices = (state: RootState) => state.devices.byStatus.accepted;\nexport const getDevicesByStatus = (state: RootState) => state.devices.byStatus;\nexport const getDevicesById = (state: RootState) => state.devices.byId;\nexport const getDeviceReports = (state: RootState) => state.devices.reports;\nexport const getGroupsById = (state: RootState) => state.devices.groups.byId;\nexport const getSelectedGroup = (state: RootState) => state.devices.groups.selectedGroup;\n\nexport const getDeviceListState = (state: RootState) => state.devices.deviceList;\nexport const getListedDevices = (state: RootState) => state.devices.deviceList.deviceIds;\nexport const getFilteringAttributes = (state: RootState) => state.devices.filteringAttributes;\nexport const getDeviceFilters = (state: RootState) => state.devices.filters || [];\nexport const getTestDeviceLimit = (state: RootState) => state.devices.testDeviceLimit;\nconst getFilteringAttributesFromConfig = (state: RootState) => state.devices.filteringAttributesConfig.attributes;\nexport const getSortedFilteringAttributes = createSelector([getFilteringAttributes], filteringAttributes => ({\n ...filteringAttributes,\n identityAttributes: [...filteringAttributes.identityAttributes, 'id']\n}));\nexport const getDeviceLimits = (state: RootState) => state.devices.limits;\nexport const getTestDeviceCount = (state: RootState) => state.devices.testDeviceCount;\nconst getFilteringAttributesLimit = (state: RootState) => state.devices.filteringAttributesLimit;\n\nexport const getDeviceIdentityAttributes = createSelector(\n [getFilteringAttributes, getFilteringAttributesLimit],\n ({ identityAttributes }, filteringAttributesLimit) => {\n // limit the selection of the available attribute to AVAILABLE_ATTRIBUTE_LIMIT\n const attributes = identityAttributes.slice(0, filteringAttributesLimit);\n return attributes.reduce(\n (accu, value) => {\n accu.push({ value, label: value, scope: 'identity' });\n return accu;\n },\n [\n { value: 'name', label: 'Name', scope: 'tags' },\n { value: 'id', label: 'Device ID', scope: 'identity' }\n ]\n );\n }\n);\n\nexport const getDeviceCountsByStatus = createSelector([getDevicesByStatus], byStatus =>\n Object.values(DEVICE_STATES).reduce<Record<DeviceAuthState, number>>(\n (accu, deviceState) => {\n const { counts } = byStatus[deviceState];\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n const { total, ...tieredCounts } = counts;\n const count = Object.values(tieredCounts).reduce((accu, countPerTier) => accu + countPerTier, 0);\n accu[deviceState] = count;\n accu.total = accu.total + count;\n return accu;\n },\n { total: 0 }\n )\n);\n\nexport const getDeviceById = createSelector([getDevicesById, (_, deviceId) => deviceId], (devicesById, deviceId = '') => devicesById[deviceId] ?? {});\n\nexport const getSelectedGroupInfo = createSelector(\n [getDeviceCountsByStatus, getGroupsById, getSelectedGroup],\n ({ accepted: acceptedDeviceTotal }, groupsById, selectedGroup) => {\n let groupCount = acceptedDeviceTotal;\n let groupFilters: DeviceFilter[] = [];\n if (selectedGroup && groupsById[selectedGroup]) {\n groupCount = groupsById[selectedGroup].total || 0;\n groupFilters = groupsById[selectedGroup].filters || [];\n }\n return { groupCount, selectedGroup, groupFilters };\n }\n);\n\nexport const getCombinedLimit = createSelector(\n [getDeviceLimits],\n deviceLimits => Object.values(deviceLimits).reduce((accu, limit) => accu + Math.max(limit ?? 0, 0), 0) // limit might be -1 for unlimited devices\n);\n\nexport const getLimitMaxed = createSelector(\n [getDeviceCountsByStatus, getCombinedLimit],\n ({ accepted: acceptedDevices }, combinedLimit) => !!combinedLimit && combinedLimit <= acceptedDevices\n);\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport const getGroupsByIdWithoutUngrouped = createSelector([getGroupsById], ({ [UNGROUPED_GROUP.id]: ungrouped, ...groups }) => groups);\n\nexport const getGroupData = createSelector([getGroupsByIdWithoutUngrouped], groups => {\n const createdGroup = Object.keys(groups).length ? Object.keys(groups)[0] : undefined;\n const hasDynamicGroups = Object.values(groups).some(group => !!group.id);\n return { createdGroup, hasDynamicGroups, groups };\n});\n\ntype SelectorGroup = DeviceGroup & { groupId: string };\ntype SelectorGroups = { dynamic: SelectorGroup[]; static: SelectorGroup[]; ungrouped: SelectorGroup[] };\n\nexport const getGroups = createSelector([getGroupsById], groupsById => {\n const groupNames = Object.keys(groupsById).sort();\n const groupedGroups = Object.entries(groupsById)\n .sort((a, b) => a[0].localeCompare(b[0]))\n .reduce<SelectorGroups>(\n (accu, [groupname, group]) => {\n const name = groupname === UNGROUPED_GROUP.id ? UNGROUPED_GROUP.name : groupname;\n const groupItem = { ...group, groupId: name, name: groupname };\n if ((group.filters ?? []).length > 0) {\n if (groupname !== UNGROUPED_GROUP.id) {\n accu.dynamic.push(groupItem);\n } else {\n accu.ungrouped.push(groupItem);\n }\n } else {\n accu.static.push(groupItem);\n }\n return accu;\n },\n { dynamic: [], static: [], ungrouped: [] }\n );\n return { groupNames, ...groupedGroups };\n});\nexport const getAttributesList = createSelector(\n [getFilteringAttributes, getFilteringAttributesFromConfig],\n ({ identityAttributes = [], inventoryAttributes = [] }, { identity = [], inventory = [] }) =>\n [...identityAttributes, ...inventoryAttributes, ...identity, ...inventory].filter(duplicateFilter)\n);\nconst getEnabledTierLimits = createSelector([getDeviceLimits], limits => Object.entries(limits).filter(([, limit]) => limit !== 0));\n\nexport const getEnabledTiers = createSelector([getEnabledTierLimits], enabledTierLimits => enabledTierLimits.map(([type]) => type));\n\nexport const getDeviceLimitStats = createSelector([getEnabledTierLimits, getAcceptedDevices], (enabledTierLimits, accepted) => {\n const { counts } = accepted;\n return enabledTierLimits.map(([type, limit]) => ({\n type,\n limit,\n total: counts[type] || 0\n }));\n});\n\nexport const getDeviceTypes = createSelector([getAcceptedDevices, getDevicesById], ({ deviceIds = [] }, devicesById) =>\n Object.keys(\n deviceIds.slice(0, 200).reduce((accu, item) => {\n const { device_type: deviceTypes = [] } = devicesById[item] ? devicesById[item].attributes : {};\n accu = deviceTypes.reduce((deviceTypeAccu, deviceType) => {\n if (deviceType.length > 1) {\n deviceTypeAccu[deviceType] = deviceTypeAccu[deviceType] ? deviceTypeAccu[deviceType] + 1 : 1;\n }\n return deviceTypeAccu;\n }, accu);\n return accu;\n }, {})\n )\n);\n"],"mappings":";;;;;;AAqBA,MAAa,sBAAsB,UAAqB,MAAM,QAAQ,SAAS;AAC/E,MAAa,sBAAsB,UAAqB,MAAM,QAAQ;AACtE,MAAa,kBAAkB,UAAqB,MAAM,QAAQ;AAClE,MAAa,oBAAoB,UAAqB,MAAM,QAAQ;AACpE,MAAa,iBAAiB,UAAqB,MAAM,QAAQ,OAAO;AACxE,MAAa,oBAAoB,UAAqB,MAAM,QAAQ,OAAO;AAE3E,MAAa,sBAAsB,UAAqB,MAAM,QAAQ;AACtE,MAAa,oBAAoB,UAAqB,MAAM,QAAQ,WAAW;AAC/E,MAAa,0BAA0B,UAAqB,MAAM,QAAQ;AAC1E,MAAa,oBAAoB,UAAqB,MAAM,QAAQ,WAAW,CAAC;AAChF,MAAa,sBAAsB,UAAqB,MAAM,QAAQ;AACtE,MAAM,oCAAoC,UAAqB,MAAM,QAAQ,0BAA0B;AACvG,MAAa,gCAAA,GAA+BA,iBAAAA,eAAAA,CAAe,CAAC,sBAAsB,IAAG,yBAAwB;CAC3G,GAAG;CACH,oBAAoB,CAAC,GAAG,oBAAoB,oBAAoB,IAAI;AACtE,EAAE;AACF,MAAa,mBAAmB,UAAqB,MAAM,QAAQ;AACnE,MAAa,sBAAsB,UAAqB,MAAM,QAAQ;AACtE,MAAM,+BAA+B,UAAqB,MAAM,QAAQ;AAExE,MAAa,+BAAA,GAA8BA,iBAAAA,eAAAA,CACzC,CAAC,wBAAwB,2BAA2B,IACnD,EAAE,sBAAsB,6BAA6B;CAGpD,OADmB,mBAAmB,MAAM,GAAG,wBAC/B,CAAC,CAAC,QACf,MAAM,UAAU;EACf,KAAK,KAAK;GAAE;GAAO,OAAO;GAAO,OAAO;EAAW,CAAC;EACpD,OAA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ources":["../../src/devicesSlice/selectors.ts"],"sourcesContent":["// Copyright 2023 Northern.tech AS\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { duplicateFilter } from '@northern.tech/utils/helpers';\nimport { createSelector } from '@reduxjs/toolkit';\n\nimport type { DeviceFilter, DeviceGroup } from '.';\nimport type { DeviceAuthState } from '../constants';\nimport { DEVICE_STATES, UNGROUPED_GROUP } from '../constants';\nimport type { RootState } from '../store';\n\nexport const getAcceptedDevices = (state: RootState) => state.devices.byStatus.accepted;\nexport const getDevicesByStatus = (state: RootState) => state.devices.byStatus;\nexport const getDevicesById = (state: RootState) => state.devices.byId;\nexport const getDeviceReports = (state: RootState) => state.devices.reports;\nexport const getGroupsById = (state: RootState) => state.devices.groups.byId;\nexport const getSelectedGroup = (state: RootState) => state.devices.groups.selectedGroup;\n\nexport const getDeviceListState = (state: RootState) => state.devices.deviceList;\nexport const getListedDevices = (state: RootState) => state.devices.deviceList.deviceIds;\nexport const getFilteringAttributes = (state: RootState) => state.devices.filteringAttributes;\nexport const getDeviceFilters = (state: RootState) => state.devices.filters || [];\nexport const getTestDeviceLimit = (state: RootState) => state.devices.testDeviceLimit;\nconst getFilteringAttributesFromConfig = (state: RootState) => state.devices.filteringAttributesConfig.attributes;\nexport const getSortedFilteringAttributes = createSelector([getFilteringAttributes], filteringAttributes => ({\n ...filteringAttributes,\n identityAttributes: [...filteringAttributes.identityAttributes, 'id']\n}));\nexport const getDeviceLimits = (state: RootState) => state.devices.limits;\nexport const getTestDeviceCount = (state: RootState) => state.devices.testDeviceCount;\nconst getFilteringAttributesLimit = (state: RootState) => state.devices.filteringAttributesLimit;\n\nexport const getDeviceIdentityAttributes = createSelector(\n [getFilteringAttributes, getFilteringAttributesLimit],\n ({ identityAttributes }, filteringAttributesLimit) => {\n // limit the selection of the available attribute to AVAILABLE_ATTRIBUTE_LIMIT\n const attributes = identityAttributes.slice(0, filteringAttributesLimit);\n return attributes.reduce(\n (accu, value) => {\n accu.push({ value, label: value, scope: 'identity' });\n return accu;\n },\n [\n { value: 'name', label: 'Name', scope: 'tags' },\n { value: 'id', label: 'Device ID', scope: 'identity' }\n ]\n );\n }\n);\n\nexport const getDeviceCountsByStatus = createSelector([getDevicesByStatus], byStatus =>\n Object.values(DEVICE_STATES).reduce<Record<DeviceAuthState, number>>(\n (accu, deviceState) => {\n const { counts } = byStatus[deviceState];\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n const { total, ...tieredCounts } = counts;\n const count = Object.values(tieredCounts).reduce((accu, countPerTier) => accu + countPerTier, 0);\n accu[deviceState] = count;\n accu.total = accu.total + count;\n return accu;\n },\n { total: 0 }\n )\n);\n\nexport const getDeviceById = createSelector([getDevicesById, (_, deviceId) => deviceId], (devicesById, deviceId = '') => devicesById[deviceId] ?? {});\n\nexport const getSelectedGroupInfo = createSelector(\n [getDeviceCountsByStatus, getGroupsById, getSelectedGroup],\n ({ accepted: acceptedDeviceTotal }, groupsById, selectedGroup) => {\n let groupCount = acceptedDeviceTotal;\n let groupFilters: DeviceFilter[] = [];\n if (selectedGroup && groupsById[selectedGroup]) {\n groupCount = groupsById[selectedGroup].total || 0;\n groupFilters = groupsById[selectedGroup].filters || [];\n }\n return { groupCount, selectedGroup, groupFilters };\n }\n);\n\nexport const getCombinedLimit = createSelector(\n [getDeviceLimits],\n deviceLimits => Object.values(deviceLimits).reduce((accu, limit) => accu + Math.max(limit ?? 0, 0), 0) // limit might be -1 for unlimited devices\n);\n\nexport const getLimitMaxed = createSelector(\n [getDeviceCountsByStatus, getCombinedLimit],\n ({ accepted: acceptedDevices }, combinedLimit) => !!combinedLimit && combinedLimit <= acceptedDevices\n);\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport const getGroupsByIdWithoutUngrouped = createSelector([getGroupsById], ({ [UNGROUPED_GROUP.id]: ungrouped, ...groups }) => groups);\n\nexport const getGroupData = createSelector([getGroupsByIdWithoutUngrouped], groups => {\n const createdGroup = Object.keys(groups).length ? Object.keys(groups)[0] : undefined;\n const hasDynamicGroups = Object.values(groups).some(group => !!group.id);\n return { createdGroup, hasDynamicGroups, groups };\n});\n\ntype SelectorGroup = DeviceGroup & { groupId: string };\ntype SelectorGroups = { dynamic: SelectorGroup[]; static: SelectorGroup[]; ungrouped: SelectorGroup[] };\n\nexport const getGroups = createSelector([getGroupsById], groupsById => {\n const groupNames = Object.keys(groupsById).sort();\n const groupedGroups = Object.entries(groupsById)\n .sort((a, b) => a[0].localeCompare(b[0]))\n .reduce<SelectorGroups>(\n (accu, [groupname, group]) => {\n const name = groupname === UNGROUPED_GROUP.id ? UNGROUPED_GROUP.name : groupname;\n const groupItem = { ...group, groupId: name, name: groupname };\n if ((group.filters ?? []).length > 0) {\n if (groupname !== UNGROUPED_GROUP.id) {\n accu.dynamic.push(groupItem);\n } else {\n accu.ungrouped.push(groupItem);\n }\n } else {\n accu.static.push(groupItem);\n }\n return accu;\n },\n { dynamic: [], static: [], ungrouped: [] }\n );\n return { groupNames, ...groupedGroups };\n});\nexport const getAttributesList = createSelector(\n [getFilteringAttributes, getFilteringAttributesFromConfig],\n ({ identityAttributes = [], inventoryAttributes = [] }, { identity = [], inventory = [] }) =>\n [...identityAttributes, ...inventoryAttributes, ...identity, ...inventory].filter(duplicateFilter)\n);\nconst getEnabledTierLimits = createSelector([getDeviceLimits], limits => Object.entries(limits).filter(([, limit]) => limit !== 0));\n\nexport const getEnabledTiers = createSelector([getEnabledTierLimits], enabledTierLimits => enabledTierLimits.map(([type]) => type));\n\nexport const getDeviceLimitStats = createSelector([getEnabledTierLimits, getAcceptedDevices], (enabledTierLimits, accepted) => {\n const { counts } = accepted;\n return enabledTierLimits.map(([type, limit]) => ({\n type,\n limit,\n total: counts[type] || 0\n }));\n});\n\nexport const getDeviceTypes = createSelector([getAcceptedDevices, getDevicesById], ({ deviceIds = [] }, devicesById) =>\n Object.keys(\n deviceIds.slice(0, 200).reduce((accu, item) => {\n const { device_type: deviceTypes = [] } = devicesById[item] ? devicesById[item].attributes : {};\n accu = deviceTypes.reduce((deviceTypeAccu, deviceType) => {\n if (deviceType.length > 1) {\n deviceTypeAccu[deviceType] = deviceTypeAccu[deviceType] ? deviceTypeAccu[deviceType] + 1 : 1;\n }\n return deviceTypeAccu;\n }, accu);\n return accu;\n }, {})\n )\n);\n"],"mappings":";;;;;;AAqBA,MAAa,sBAAsB,UAAqB,MAAM,QAAQ,SAAS;AAC/E,MAAa,sBAAsB,UAAqB,MAAM,QAAQ;AACtE,MAAa,kBAAkB,UAAqB,MAAM,QAAQ;AAClE,MAAa,oBAAoB,UAAqB,MAAM,QAAQ;AACpE,MAAa,iBAAiB,UAAqB,MAAM,QAAQ,OAAO;AACxE,MAAa,oBAAoB,UAAqB,MAAM,QAAQ,OAAO;AAE3E,MAAa,sBAAsB,UAAqB,MAAM,QAAQ;AACtE,MAAa,oBAAoB,UAAqB,MAAM,QAAQ,WAAW;AAC/E,MAAa,0BAA0B,UAAqB,MAAM,QAAQ;AAC1E,MAAa,oBAAoB,UAAqB,MAAM,QAAQ,WAAW,CAAC;AAChF,MAAa,sBAAsB,UAAqB,MAAM,QAAQ;AACtE,MAAM,oCAAoC,UAAqB,MAAM,QAAQ,0BAA0B;AACvG,MAAa,gCAAA,GAA+BA,iBAAAA,eAAAA,CAAe,CAAC,sBAAsB,IAAG,yBAAwB;CAC3G,GAAG;CACH,oBAAoB,CAAC,GAAG,oBAAoB,oBAAoB,IAAI;AACtE,EAAE;AACF,MAAa,mBAAmB,UAAqB,MAAM,QAAQ;AACnE,MAAa,sBAAsB,UAAqB,MAAM,QAAQ;AACtE,MAAM,+BAA+B,UAAqB,MAAM,QAAQ;AAExE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gBAAgB,eAAe;EACxD,IAAI,WAAW,SAAS,GACtB,eAAe,cAAc,eAAe,cAAc,eAAe,cAAc,IAAI;EAE7F,OAAO;CACT,GAAG,IAAI;CACP,OAAO;AACT,GAAG,CAAC,CAAC,CACP,CACF"}
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { o as UserSliceType } from "../index-
|
|
2
|
-
import { a as ReleaseSliceType } from "../index-
|
|
1
|
+
import { o as UserSliceType } from "../index-CqhXqGLt.cjs";
|
|
2
|
+
import { a as ReleaseSliceType } from "../index-fGVC5s1C.cjs";
|
|
3
3
|
import { n as OnboardingSliceType } from "../index-CoObjWL4.cjs";
|
|
4
4
|
import { o as DeploymentsSliceType } from "../index-mvxjivTJ.cjs";
|
|
5
|
-
import { c as DeviceSliceType, i as DeviceGroup, l as DeviceTierLimits, o as DeviceListState, r as DeviceFilter, 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 { c as DeviceSliceType, i as DeviceGroup, l as DeviceTierLimits, o as DeviceListState, r as DeviceFilter, t as Device } from "../index-KxRmyFLr.cjs";
|
|
6
|
+
import { t as AppSliceType } from "../index-BKU1G9-x.cjs";
|
|
7
|
+
import { t as MonitorSliceType } from "../index-BfmRpbiJ.cjs";
|
|
8
|
+
import { t as OrganizationSliceType } from "../index-HjOSTTGF.cjs";
|
|
9
|
+
import { r as RootState } from "../store-Dw8Uo_Df.cjs";
|
|
10
10
|
//#region src/devicesSlice/selectors.d.ts
|
|
11
|
-
declare const getAcceptedDevices: (state: RootState) => {
|
|
11
|
+
export declare const getAcceptedDevices: (state: RootState) => {
|
|
12
12
|
counts: DeviceTierLimits & {
|
|
13
13
|
total: number;
|
|
14
14
|
};
|
|
15
15
|
deviceIds: string[];
|
|
16
16
|
};
|
|
17
|
-
declare const getDevicesByStatus: (state: RootState) => Record<string, {
|
|
17
|
+
export declare const getDevicesByStatus: (state: RootState) => Record<string, {
|
|
18
18
|
counts: DeviceTierLimits & {
|
|
19
19
|
total: number;
|
|
20
20
|
};
|
|
21
21
|
deviceIds: string[];
|
|
22
22
|
}>;
|
|
23
|
-
declare const getDevicesById: (state: RootState) => Record<string, Device>;
|
|
24
|
-
declare const getDeviceReports: (state: RootState) => {
|
|
23
|
+
export declare const getDevicesById: (state: RootState) => Record<string, Device>;
|
|
24
|
+
export declare const getDeviceReports: (state: RootState) => {
|
|
25
25
|
items: {
|
|
26
26
|
count: number;
|
|
27
27
|
key: string;
|
|
@@ -29,19 +29,19 @@ declare const getDeviceReports: (state: RootState) => {
|
|
|
29
29
|
otherCount: number;
|
|
30
30
|
total: number;
|
|
31
31
|
}[];
|
|
32
|
-
declare const getGroupsById: (state: RootState) => Record<string, DeviceGroup>;
|
|
33
|
-
declare const getSelectedGroup: (state: RootState) => string | undefined;
|
|
34
|
-
declare const getDeviceListState: (state: RootState) => DeviceListState;
|
|
35
|
-
declare const getListedDevices: (state: RootState) => string[];
|
|
36
|
-
declare const getFilteringAttributes: (state: RootState) => {
|
|
32
|
+
export declare const getGroupsById: (state: RootState) => Record<string, DeviceGroup>;
|
|
33
|
+
export declare const getSelectedGroup: (state: RootState) => string | undefined;
|
|
34
|
+
export declare const getDeviceListState: (state: RootState) => DeviceListState;
|
|
35
|
+
export declare const getListedDevices: (state: RootState) => string[];
|
|
36
|
+
export declare const getFilteringAttributes: (state: RootState) => {
|
|
37
37
|
identityAttributes: string[];
|
|
38
38
|
inventoryAttributes: string[];
|
|
39
39
|
systemAttributes: string[];
|
|
40
40
|
tagAttributes: string[];
|
|
41
41
|
};
|
|
42
|
-
declare const getDeviceFilters: (state: RootState) => DeviceFilter[];
|
|
43
|
-
declare const getTestDeviceLimit: (state: RootState) => number;
|
|
44
|
-
declare const getSortedFilteringAttributes: ((state: {
|
|
42
|
+
export declare const getDeviceFilters: (state: RootState) => DeviceFilter[];
|
|
43
|
+
export declare const getTestDeviceLimit: (state: RootState) => number;
|
|
44
|
+
export declare const getSortedFilteringAttributes: ((state: {
|
|
45
45
|
app: AppSliceType;
|
|
46
46
|
devices: DeviceSliceType;
|
|
47
47
|
deployments: DeploymentsSliceType;
|
|
@@ -106,9 +106,9 @@ declare const getSortedFilteringAttributes: ((state: {
|
|
|
106
106
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
107
107
|
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
108
108
|
};
|
|
109
|
-
declare const getDeviceLimits: (state: RootState) => DeviceTierLimits;
|
|
110
|
-
declare const getTestDeviceCount: (state: RootState) => number;
|
|
111
|
-
declare const getDeviceIdentityAttributes: ((state: {
|
|
109
|
+
export declare const getDeviceLimits: (state: RootState) => DeviceTierLimits;
|
|
110
|
+
export declare const getTestDeviceCount: (state: RootState) => number;
|
|
111
|
+
export declare const getDeviceIdentityAttributes: ((state: {
|
|
112
112
|
app: AppSliceType;
|
|
113
113
|
devices: DeviceSliceType;
|
|
114
114
|
deployments: DeploymentsSliceType;
|
|
@@ -169,7 +169,7 @@ declare const getDeviceIdentityAttributes: ((state: {
|
|
|
169
169
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
170
170
|
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
171
171
|
};
|
|
172
|
-
declare const getDeviceCountsByStatus: ((state: {
|
|
172
|
+
export declare const getDeviceCountsByStatus: ((state: {
|
|
173
173
|
app: AppSliceType;
|
|
174
174
|
devices: DeviceSliceType;
|
|
175
175
|
deployments: DeploymentsSliceType;
|
|
@@ -214,7 +214,7 @@ declare const getDeviceCountsByStatus: ((state: {
|
|
|
214
214
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
215
215
|
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
216
216
|
};
|
|
217
|
-
declare const getDeviceById: ((state: any, deviceId: any) => Device) & {
|
|
217
|
+
export declare const getDeviceById: ((state: any, deviceId: any) => Device) & {
|
|
218
218
|
clearCache: () => void;
|
|
219
219
|
resultsCount: () => number;
|
|
220
220
|
resetResultsCount: () => void;
|
|
@@ -235,7 +235,7 @@ declare const getDeviceById: ((state: any, deviceId: any) => Device) & {
|
|
|
235
235
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
236
236
|
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
237
237
|
};
|
|
238
|
-
declare const getSelectedGroupInfo: ((state: {
|
|
238
|
+
export declare const getSelectedGroupInfo: ((state: {
|
|
239
239
|
app: AppSliceType;
|
|
240
240
|
devices: DeviceSliceType;
|
|
241
241
|
deployments: DeploymentsSliceType;
|
|
@@ -325,7 +325,7 @@ declare const getSelectedGroupInfo: ((state: {
|
|
|
325
325
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
326
326
|
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
327
327
|
};
|
|
328
|
-
declare const getCombinedLimit: ((state: {
|
|
328
|
+
export declare const getCombinedLimit: ((state: {
|
|
329
329
|
app: AppSliceType;
|
|
330
330
|
devices: DeviceSliceType;
|
|
331
331
|
deployments: DeploymentsSliceType;
|
|
@@ -355,7 +355,7 @@ declare const getCombinedLimit: ((state: {
|
|
|
355
355
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
356
356
|
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
357
357
|
};
|
|
358
|
-
declare const getLimitMaxed: ((state: {
|
|
358
|
+
export declare const getLimitMaxed: ((state: {
|
|
359
359
|
app: AppSliceType;
|
|
360
360
|
devices: DeviceSliceType;
|
|
361
361
|
deployments: DeploymentsSliceType;
|
|
@@ -458,7 +458,7 @@ declare const getLimitMaxed: ((state: {
|
|
|
458
458
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
459
459
|
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
460
460
|
};
|
|
461
|
-
declare const getGroupsByIdWithoutUngrouped: ((state: {
|
|
461
|
+
export declare const getGroupsByIdWithoutUngrouped: ((state: {
|
|
462
462
|
app: AppSliceType;
|
|
463
463
|
devices: DeviceSliceType;
|
|
464
464
|
deployments: DeploymentsSliceType;
|
|
@@ -496,7 +496,7 @@ declare const getGroupsByIdWithoutUngrouped: ((state: {
|
|
|
496
496
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
497
497
|
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
498
498
|
};
|
|
499
|
-
declare const getGroupData: ((state: {
|
|
499
|
+
export declare const getGroupData: ((state: {
|
|
500
500
|
app: AppSliceType;
|
|
501
501
|
devices: DeviceSliceType;
|
|
502
502
|
deployments: DeploymentsSliceType;
|
|
@@ -594,7 +594,7 @@ declare const getGroupData: ((state: {
|
|
|
594
594
|
type SelectorGroup = DeviceGroup & {
|
|
595
595
|
groupId: string;
|
|
596
596
|
};
|
|
597
|
-
declare const getGroups: ((state: {
|
|
597
|
+
export declare const getGroups: ((state: {
|
|
598
598
|
app: AppSliceType;
|
|
599
599
|
devices: DeviceSliceType;
|
|
600
600
|
deployments: DeploymentsSliceType;
|
|
@@ -644,7 +644,7 @@ declare const getGroups: ((state: {
|
|
|
644
644
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
645
645
|
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
646
646
|
};
|
|
647
|
-
declare const getAttributesList: ((state: {
|
|
647
|
+
export declare const getAttributesList: ((state: {
|
|
648
648
|
app: AppSliceType;
|
|
649
649
|
devices: DeviceSliceType;
|
|
650
650
|
deployments: DeploymentsSliceType;
|
|
@@ -689,7 +689,7 @@ declare const getAttributesList: ((state: {
|
|
|
689
689
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
690
690
|
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
691
691
|
};
|
|
692
|
-
declare const getEnabledTiers: ((state: {
|
|
692
|
+
export declare const getEnabledTiers: ((state: {
|
|
693
693
|
app: AppSliceType;
|
|
694
694
|
devices: DeviceSliceType;
|
|
695
695
|
deployments: DeploymentsSliceType;
|
|
@@ -748,7 +748,7 @@ declare const getEnabledTiers: ((state: {
|
|
|
748
748
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
749
749
|
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
750
750
|
};
|
|
751
|
-
declare const getDeviceLimitStats: ((state: {
|
|
751
|
+
export declare const getDeviceLimitStats: ((state: {
|
|
752
752
|
app: AppSliceType;
|
|
753
753
|
devices: DeviceSliceType;
|
|
754
754
|
deployments: DeploymentsSliceType;
|
|
@@ -838,7 +838,7 @@ declare const getDeviceLimitStats: ((state: {
|
|
|
838
838
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
839
839
|
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
840
840
|
};
|
|
841
|
-
declare const getDeviceTypes: ((state: {
|
|
841
|
+
export declare const getDeviceTypes: ((state: {
|
|
842
842
|
app: AppSliceType;
|
|
843
843
|
devices: DeviceSliceType;
|
|
844
844
|
deployments: DeploymentsSliceType;
|
|
@@ -884,5 +884,4 @@ declare const getDeviceTypes: ((state: {
|
|
|
884
884
|
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
885
885
|
};
|
|
886
886
|
//#endregion
|
|
887
|
-
export { getAcceptedDevices, getAttributesList, getCombinedLimit, getDeviceById, getDeviceCountsByStatus, getDeviceFilters, getDeviceIdentityAttributes, getDeviceLimitStats, getDeviceLimits, getDeviceListState, getDeviceReports, getDeviceTypes, getDevicesById, getDevicesByStatus, getEnabledTiers, getFilteringAttributes, getGroupData, getGroups, getGroupsById, getGroupsByIdWithoutUngrouped, getLimitMaxed, getListedDevices, getSelectedGroup, getSelectedGroupInfo, getSortedFilteringAttributes, getTestDeviceCount, getTestDeviceLimit };
|
|
888
887
|
//# sourceMappingURL=selectors.d.cts.map
|