@northern.tech/store 0.42.0 → 0.43.0
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 +2 -2
- package/dist/actions.d.ts +2 -2
- package/dist/appSlice/selectors.d.cts +2 -2
- package/dist/appSlice/selectors.d.ts +2 -2
- package/dist/appSlice/thunks.d.cts +1 -1
- package/dist/appSlice/thunks.d.ts +1 -1
- package/dist/commonSelectors.d.cts +2 -2
- package/dist/commonSelectors.d.ts +2 -2
- package/dist/deploymentsSlice/selectors.d.cts +2 -2
- package/dist/deploymentsSlice/selectors.d.ts +2 -2
- package/dist/deploymentsSlice/thunks.d.cts +2 -2
- package/dist/deploymentsSlice/thunks.d.ts +2 -2
- package/dist/devicesSlice/index.cjs +4 -1
- package/dist/devicesSlice/index.cjs.map +1 -1
- package/dist/devicesSlice/index.d.cts +2 -2
- package/dist/devicesSlice/index.d.ts +2 -2
- package/dist/devicesSlice/index.js +4 -1
- package/dist/devicesSlice/index.js.map +1 -1
- package/dist/devicesSlice/mocks.d.cts +1 -0
- package/dist/devicesSlice/mocks.d.ts +1 -0
- package/dist/devicesSlice/selectors.cjs +2 -0
- package/dist/devicesSlice/selectors.cjs.map +1 -1
- package/dist/devicesSlice/selectors.d.cts +34 -33
- package/dist/devicesSlice/selectors.d.ts +34 -33
- package/dist/devicesSlice/selectors.js +2 -1
- package/dist/devicesSlice/selectors.js.map +1 -1
- package/dist/devicesSlice/thunks.d.cts +4 -4
- package/dist/devicesSlice/thunks.d.ts +4 -4
- package/dist/{index-Bvyf8OO6.d.ts → index-BpamudGf.d.ts} +8 -6
- package/dist/{index-CiQ95u1W.d.cts → index-DnKVKM0G.d.cts} +8 -6
- package/dist/locationutils.d.cts +1 -1
- package/dist/locationutils.d.ts +1 -1
- package/dist/monitorSlice/selectors.d.cts +1 -1
- package/dist/monitorSlice/selectors.d.ts +1 -1
- package/dist/monitorSlice/thunks.d.cts +2 -2
- package/dist/monitorSlice/thunks.d.ts +2 -2
- package/dist/onboardingSlice/selectors.d.cts +1 -1
- package/dist/onboardingSlice/selectors.d.ts +1 -1
- package/dist/onboardingSlice/thunks.d.cts +1 -1
- package/dist/onboardingSlice/thunks.d.ts +1 -1
- package/dist/organizationSlice/selectors.d.cts +2 -2
- package/dist/organizationSlice/selectors.d.ts +2 -2
- package/dist/organizationSlice/thunks.d.cts +1 -1
- package/dist/organizationSlice/thunks.d.ts +1 -1
- package/dist/releasesSlice/selectors.d.cts +2 -2
- package/dist/releasesSlice/selectors.d.ts +2 -2
- package/dist/releasesSlice/thunks.d.cts +1 -1
- package/dist/releasesSlice/thunks.d.ts +1 -1
- package/dist/selectors.cjs +1 -0
- package/dist/selectors.d.cts +2 -2
- package/dist/selectors.d.ts +2 -2
- package/dist/selectors.js +2 -2
- package/dist/{store-CPptM5Ts.d.ts → store-B2_hrsgP.d.ts} +2 -2
- package/dist/{store-CUUm1GTI.d.cts → store-DquBGT7j.d.cts} +2 -2
- package/dist/store.d.cts +1 -1
- package/dist/store.d.ts +1 -1
- package/dist/storehooks.cjs +2 -1
- package/dist/storehooks.cjs.map +1 -1
- package/dist/storehooks.d.cts +1 -1
- package/dist/storehooks.d.ts +1 -1
- package/dist/storehooks.js +2 -1
- package/dist/storehooks.js.map +1 -1
- package/dist/thunks.cjs.map +1 -1
- package/dist/thunks.js.map +1 -1
- package/dist/usersSlice/selectors.d.cts +2 -2
- package/dist/usersSlice/selectors.d.ts +2 -2
- package/dist/usersSlice/thunks.d.cts +1 -1
- package/dist/usersSlice/thunks.d.ts +1 -1
- package/dist/utils.d.cts +1 -1
- package/dist/utils.d.ts +1 -1
- package/package.json +1 -1
|
@@ -2,20 +2,20 @@ import { o as UserSliceType } from "../index-BgF6rhXn.cjs";
|
|
|
2
2
|
import { i as ReleaseSliceType } from "../index-DiAjzARZ.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, o as DeviceListState, r as DeviceFilter, t as Device } from "../index-
|
|
5
|
+
import { c as DeviceSliceType, i as DeviceGroup, l as DeviceTierLimits, o as DeviceListState, r as DeviceFilter, t as Device } from "../index-DnKVKM0G.cjs";
|
|
6
6
|
import { t as AppSliceType } from "../index-DeOpb2oK.cjs";
|
|
7
7
|
import { t as MonitorSliceType } from "../index-Ctj2r57a.cjs";
|
|
8
8
|
import { t as OrganizationSliceType } from "../index-C_LGDJN2.cjs";
|
|
9
|
-
import { r as RootState } from "../store-
|
|
9
|
+
import { r as RootState } from "../store-DquBGT7j.cjs";
|
|
10
10
|
//#region src/devicesSlice/selectors.d.ts
|
|
11
11
|
declare const getAcceptedDevices: (state: RootState) => {
|
|
12
|
-
counts:
|
|
12
|
+
counts: DeviceTierLimits & {
|
|
13
13
|
total: number;
|
|
14
14
|
};
|
|
15
15
|
deviceIds: string[];
|
|
16
16
|
};
|
|
17
17
|
declare const getDevicesByStatus: (state: RootState) => Record<string, {
|
|
18
|
-
counts:
|
|
18
|
+
counts: DeviceTierLimits & {
|
|
19
19
|
total: number;
|
|
20
20
|
};
|
|
21
21
|
deviceIds: string[];
|
|
@@ -40,6 +40,7 @@ declare const getFilteringAttributes: (state: RootState) => {
|
|
|
40
40
|
tagAttributes: string[];
|
|
41
41
|
};
|
|
42
42
|
declare const getDeviceFilters: (state: RootState) => DeviceFilter[];
|
|
43
|
+
declare const getTestDeviceLimit: (state: RootState) => number;
|
|
43
44
|
declare const getSortedFilteringAttributes: ((state: {
|
|
44
45
|
app: AppSliceType;
|
|
45
46
|
devices: DeviceSliceType;
|
|
@@ -105,7 +106,7 @@ declare const getSortedFilteringAttributes: ((state: {
|
|
|
105
106
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
106
107
|
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
107
108
|
};
|
|
108
|
-
declare const getDeviceLimits: (state: RootState) =>
|
|
109
|
+
declare const getDeviceLimits: (state: RootState) => DeviceTierLimits;
|
|
109
110
|
declare const getTestDeviceCount: (state: RootState) => number;
|
|
110
111
|
declare const getDeviceIdentityAttributes: ((state: {
|
|
111
112
|
app: AppSliceType;
|
|
@@ -183,13 +184,13 @@ declare const getDeviceCountsByStatus: ((state: {
|
|
|
183
184
|
resetResultsCount: () => void;
|
|
184
185
|
} & {
|
|
185
186
|
resultFunc: (resultFuncArgs_0: Record<string, {
|
|
186
|
-
counts:
|
|
187
|
+
counts: DeviceTierLimits & {
|
|
187
188
|
total: number;
|
|
188
189
|
};
|
|
189
190
|
deviceIds: string[];
|
|
190
191
|
}>) => Record<string, number>;
|
|
191
192
|
memoizedResultFunc: ((resultFuncArgs_0: Record<string, {
|
|
192
|
-
counts:
|
|
193
|
+
counts: DeviceTierLimits & {
|
|
193
194
|
total: number;
|
|
194
195
|
};
|
|
195
196
|
deviceIds: string[];
|
|
@@ -200,7 +201,7 @@ declare const getDeviceCountsByStatus: ((state: {
|
|
|
200
201
|
};
|
|
201
202
|
lastResult: () => Record<string, number>;
|
|
202
203
|
dependencies: [(state: RootState) => Record<string, {
|
|
203
|
-
counts:
|
|
204
|
+
counts: DeviceTierLimits & {
|
|
204
205
|
total: number;
|
|
205
206
|
};
|
|
206
207
|
deviceIds: string[];
|
|
@@ -286,13 +287,13 @@ declare const getSelectedGroupInfo: ((state: {
|
|
|
286
287
|
resetResultsCount: () => void;
|
|
287
288
|
} & {
|
|
288
289
|
resultFunc: (resultFuncArgs_0: Record<string, {
|
|
289
|
-
counts:
|
|
290
|
+
counts: DeviceTierLimits & {
|
|
290
291
|
total: number;
|
|
291
292
|
};
|
|
292
293
|
deviceIds: string[];
|
|
293
294
|
}>) => Record<string, number>;
|
|
294
295
|
memoizedResultFunc: ((resultFuncArgs_0: Record<string, {
|
|
295
|
-
counts:
|
|
296
|
+
counts: DeviceTierLimits & {
|
|
296
297
|
total: number;
|
|
297
298
|
};
|
|
298
299
|
deviceIds: string[];
|
|
@@ -303,7 +304,7 @@ declare const getSelectedGroupInfo: ((state: {
|
|
|
303
304
|
};
|
|
304
305
|
lastResult: () => Record<string, number>;
|
|
305
306
|
dependencies: [(state: RootState) => Record<string, {
|
|
306
|
-
counts:
|
|
307
|
+
counts: DeviceTierLimits & {
|
|
307
308
|
total: number;
|
|
308
309
|
};
|
|
309
310
|
deviceIds: string[];
|
|
@@ -338,14 +339,14 @@ declare const getCombinedLimit: ((state: {
|
|
|
338
339
|
resultsCount: () => number;
|
|
339
340
|
resetResultsCount: () => void;
|
|
340
341
|
} & {
|
|
341
|
-
resultFunc: (resultFuncArgs_0:
|
|
342
|
-
memoizedResultFunc: ((resultFuncArgs_0:
|
|
342
|
+
resultFunc: (resultFuncArgs_0: DeviceTierLimits) => number;
|
|
343
|
+
memoizedResultFunc: ((resultFuncArgs_0: DeviceTierLimits) => number) & {
|
|
343
344
|
clearCache: () => void;
|
|
344
345
|
resultsCount: () => number;
|
|
345
346
|
resetResultsCount: () => void;
|
|
346
347
|
};
|
|
347
348
|
lastResult: () => number;
|
|
348
|
-
dependencies: [(state: RootState) =>
|
|
349
|
+
dependencies: [(state: RootState) => DeviceTierLimits];
|
|
349
350
|
recomputations: () => number;
|
|
350
351
|
resetRecomputations: () => void;
|
|
351
352
|
dependencyRecomputations: () => number;
|
|
@@ -390,13 +391,13 @@ declare const getLimitMaxed: ((state: {
|
|
|
390
391
|
resetResultsCount: () => void;
|
|
391
392
|
} & {
|
|
392
393
|
resultFunc: (resultFuncArgs_0: Record<string, {
|
|
393
|
-
counts:
|
|
394
|
+
counts: DeviceTierLimits & {
|
|
394
395
|
total: number;
|
|
395
396
|
};
|
|
396
397
|
deviceIds: string[];
|
|
397
398
|
}>) => Record<string, number>;
|
|
398
399
|
memoizedResultFunc: ((resultFuncArgs_0: Record<string, {
|
|
399
|
-
counts:
|
|
400
|
+
counts: DeviceTierLimits & {
|
|
400
401
|
total: number;
|
|
401
402
|
};
|
|
402
403
|
deviceIds: string[];
|
|
@@ -407,7 +408,7 @@ declare const getLimitMaxed: ((state: {
|
|
|
407
408
|
};
|
|
408
409
|
lastResult: () => Record<string, number>;
|
|
409
410
|
dependencies: [(state: RootState) => Record<string, {
|
|
410
|
-
counts:
|
|
411
|
+
counts: DeviceTierLimits & {
|
|
411
412
|
total: number;
|
|
412
413
|
};
|
|
413
414
|
deviceIds: string[];
|
|
@@ -433,14 +434,14 @@ declare const getLimitMaxed: ((state: {
|
|
|
433
434
|
resultsCount: () => number;
|
|
434
435
|
resetResultsCount: () => void;
|
|
435
436
|
} & {
|
|
436
|
-
resultFunc: (resultFuncArgs_0:
|
|
437
|
-
memoizedResultFunc: ((resultFuncArgs_0:
|
|
437
|
+
resultFunc: (resultFuncArgs_0: DeviceTierLimits) => number;
|
|
438
|
+
memoizedResultFunc: ((resultFuncArgs_0: DeviceTierLimits) => number) & {
|
|
438
439
|
clearCache: () => void;
|
|
439
440
|
resultsCount: () => number;
|
|
440
441
|
resetResultsCount: () => void;
|
|
441
442
|
};
|
|
442
443
|
lastResult: () => number;
|
|
443
|
-
dependencies: [(state: RootState) =>
|
|
444
|
+
dependencies: [(state: RootState) => DeviceTierLimits];
|
|
444
445
|
recomputations: () => number;
|
|
445
446
|
resetRecomputations: () => void;
|
|
446
447
|
dependencyRecomputations: () => number;
|
|
@@ -723,14 +724,14 @@ declare const getEnabledTiers: ((state: {
|
|
|
723
724
|
resultsCount: () => number;
|
|
724
725
|
resetResultsCount: () => void;
|
|
725
726
|
} & {
|
|
726
|
-
resultFunc: (resultFuncArgs_0:
|
|
727
|
-
memoizedResultFunc: ((resultFuncArgs_0:
|
|
727
|
+
resultFunc: (resultFuncArgs_0: DeviceTierLimits) => [string, number][];
|
|
728
|
+
memoizedResultFunc: ((resultFuncArgs_0: DeviceTierLimits) => [string, number][]) & {
|
|
728
729
|
clearCache: () => void;
|
|
729
730
|
resultsCount: () => number;
|
|
730
731
|
resetResultsCount: () => void;
|
|
731
732
|
};
|
|
732
733
|
lastResult: () => [string, number][];
|
|
733
|
-
dependencies: [(state: RootState) =>
|
|
734
|
+
dependencies: [(state: RootState) => DeviceTierLimits];
|
|
734
735
|
recomputations: () => number;
|
|
735
736
|
resetRecomputations: () => void;
|
|
736
737
|
dependencyRecomputations: () => number;
|
|
@@ -766,7 +767,7 @@ declare const getDeviceLimitStats: ((state: {
|
|
|
766
767
|
resetResultsCount: () => void;
|
|
767
768
|
} & {
|
|
768
769
|
resultFunc: (resultFuncArgs_0: [string, number][], resultFuncArgs_1: {
|
|
769
|
-
counts:
|
|
770
|
+
counts: DeviceTierLimits & {
|
|
770
771
|
total: number;
|
|
771
772
|
};
|
|
772
773
|
deviceIds: string[];
|
|
@@ -776,7 +777,7 @@ declare const getDeviceLimitStats: ((state: {
|
|
|
776
777
|
total: any;
|
|
777
778
|
}[];
|
|
778
779
|
memoizedResultFunc: ((resultFuncArgs_0: [string, number][], resultFuncArgs_1: {
|
|
779
|
-
counts:
|
|
780
|
+
counts: DeviceTierLimits & {
|
|
780
781
|
total: number;
|
|
781
782
|
};
|
|
782
783
|
deviceIds: string[];
|
|
@@ -808,14 +809,14 @@ declare const getDeviceLimitStats: ((state: {
|
|
|
808
809
|
resultsCount: () => number;
|
|
809
810
|
resetResultsCount: () => void;
|
|
810
811
|
} & {
|
|
811
|
-
resultFunc: (resultFuncArgs_0:
|
|
812
|
-
memoizedResultFunc: ((resultFuncArgs_0:
|
|
812
|
+
resultFunc: (resultFuncArgs_0: DeviceTierLimits) => [string, number][];
|
|
813
|
+
memoizedResultFunc: ((resultFuncArgs_0: DeviceTierLimits) => [string, number][]) & {
|
|
813
814
|
clearCache: () => void;
|
|
814
815
|
resultsCount: () => number;
|
|
815
816
|
resetResultsCount: () => void;
|
|
816
817
|
};
|
|
817
818
|
lastResult: () => [string, number][];
|
|
818
|
-
dependencies: [(state: RootState) =>
|
|
819
|
+
dependencies: [(state: RootState) => DeviceTierLimits];
|
|
819
820
|
recomputations: () => number;
|
|
820
821
|
resetRecomputations: () => void;
|
|
821
822
|
dependencyRecomputations: () => number;
|
|
@@ -824,7 +825,7 @@ declare const getDeviceLimitStats: ((state: {
|
|
|
824
825
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
825
826
|
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
826
827
|
}, (state: RootState) => {
|
|
827
|
-
counts:
|
|
828
|
+
counts: DeviceTierLimits & {
|
|
828
829
|
total: number;
|
|
829
830
|
};
|
|
830
831
|
deviceIds: string[];
|
|
@@ -852,13 +853,13 @@ declare const getDeviceTypes: ((state: {
|
|
|
852
853
|
resetResultsCount: () => void;
|
|
853
854
|
} & {
|
|
854
855
|
resultFunc: (resultFuncArgs_0: {
|
|
855
|
-
counts:
|
|
856
|
+
counts: DeviceTierLimits & {
|
|
856
857
|
total: number;
|
|
857
858
|
};
|
|
858
859
|
deviceIds: string[];
|
|
859
860
|
}, resultFuncArgs_1: Record<string, Device>) => string[];
|
|
860
861
|
memoizedResultFunc: ((resultFuncArgs_0: {
|
|
861
|
-
counts:
|
|
862
|
+
counts: DeviceTierLimits & {
|
|
862
863
|
total: number;
|
|
863
864
|
};
|
|
864
865
|
deviceIds: string[];
|
|
@@ -869,7 +870,7 @@ declare const getDeviceTypes: ((state: {
|
|
|
869
870
|
};
|
|
870
871
|
lastResult: () => string[];
|
|
871
872
|
dependencies: [(state: RootState) => {
|
|
872
|
-
counts:
|
|
873
|
+
counts: DeviceTierLimits & {
|
|
873
874
|
total: number;
|
|
874
875
|
};
|
|
875
876
|
deviceIds: string[];
|
|
@@ -883,5 +884,5 @@ declare const getDeviceTypes: ((state: {
|
|
|
883
884
|
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
884
885
|
};
|
|
885
886
|
//#endregion
|
|
886
|
-
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 };
|
|
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 };
|
|
887
888
|
//# sourceMappingURL=selectors.d.cts.map
|
|
@@ -2,20 +2,20 @@ import { o as UserSliceType } from "../index-CpfhQHfg.js";
|
|
|
2
2
|
import { i as ReleaseSliceType } from "../index-C8uiyxnb.js";
|
|
3
3
|
import { n as OnboardingSliceType } from "../index-CoObjWL4.js";
|
|
4
4
|
import { o as DeploymentsSliceType } from "../index-B8td4-rY.js";
|
|
5
|
-
import { c as DeviceSliceType, i as DeviceGroup, o as DeviceListState, r as DeviceFilter, t as Device } from "../index-
|
|
5
|
+
import { c as DeviceSliceType, i as DeviceGroup, l as DeviceTierLimits, o as DeviceListState, r as DeviceFilter, t as Device } from "../index-BpamudGf.js";
|
|
6
6
|
import { t as AppSliceType } from "../index-Bs0c1-WY.js";
|
|
7
7
|
import { t as MonitorSliceType } from "../index-BAGyeC-q.js";
|
|
8
8
|
import { t as OrganizationSliceType } from "../index-ChKTa1aL.js";
|
|
9
|
-
import { r as RootState } from "../store-
|
|
9
|
+
import { r as RootState } from "../store-B2_hrsgP.js";
|
|
10
10
|
//#region src/devicesSlice/selectors.d.ts
|
|
11
11
|
declare const getAcceptedDevices: (state: RootState) => {
|
|
12
|
-
counts:
|
|
12
|
+
counts: DeviceTierLimits & {
|
|
13
13
|
total: number;
|
|
14
14
|
};
|
|
15
15
|
deviceIds: string[];
|
|
16
16
|
};
|
|
17
17
|
declare const getDevicesByStatus: (state: RootState) => Record<string, {
|
|
18
|
-
counts:
|
|
18
|
+
counts: DeviceTierLimits & {
|
|
19
19
|
total: number;
|
|
20
20
|
};
|
|
21
21
|
deviceIds: string[];
|
|
@@ -40,6 +40,7 @@ declare const getFilteringAttributes: (state: RootState) => {
|
|
|
40
40
|
tagAttributes: string[];
|
|
41
41
|
};
|
|
42
42
|
declare const getDeviceFilters: (state: RootState) => DeviceFilter[];
|
|
43
|
+
declare const getTestDeviceLimit: (state: RootState) => number;
|
|
43
44
|
declare const getSortedFilteringAttributes: ((state: {
|
|
44
45
|
app: AppSliceType;
|
|
45
46
|
devices: DeviceSliceType;
|
|
@@ -105,7 +106,7 @@ declare const getSortedFilteringAttributes: ((state: {
|
|
|
105
106
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
106
107
|
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
107
108
|
};
|
|
108
|
-
declare const getDeviceLimits: (state: RootState) =>
|
|
109
|
+
declare const getDeviceLimits: (state: RootState) => DeviceTierLimits;
|
|
109
110
|
declare const getTestDeviceCount: (state: RootState) => number;
|
|
110
111
|
declare const getDeviceIdentityAttributes: ((state: {
|
|
111
112
|
app: AppSliceType;
|
|
@@ -183,13 +184,13 @@ declare const getDeviceCountsByStatus: ((state: {
|
|
|
183
184
|
resetResultsCount: () => void;
|
|
184
185
|
} & {
|
|
185
186
|
resultFunc: (resultFuncArgs_0: Record<string, {
|
|
186
|
-
counts:
|
|
187
|
+
counts: DeviceTierLimits & {
|
|
187
188
|
total: number;
|
|
188
189
|
};
|
|
189
190
|
deviceIds: string[];
|
|
190
191
|
}>) => Record<string, number>;
|
|
191
192
|
memoizedResultFunc: ((resultFuncArgs_0: Record<string, {
|
|
192
|
-
counts:
|
|
193
|
+
counts: DeviceTierLimits & {
|
|
193
194
|
total: number;
|
|
194
195
|
};
|
|
195
196
|
deviceIds: string[];
|
|
@@ -200,7 +201,7 @@ declare const getDeviceCountsByStatus: ((state: {
|
|
|
200
201
|
};
|
|
201
202
|
lastResult: () => Record<string, number>;
|
|
202
203
|
dependencies: [(state: RootState) => Record<string, {
|
|
203
|
-
counts:
|
|
204
|
+
counts: DeviceTierLimits & {
|
|
204
205
|
total: number;
|
|
205
206
|
};
|
|
206
207
|
deviceIds: string[];
|
|
@@ -286,13 +287,13 @@ declare const getSelectedGroupInfo: ((state: {
|
|
|
286
287
|
resetResultsCount: () => void;
|
|
287
288
|
} & {
|
|
288
289
|
resultFunc: (resultFuncArgs_0: Record<string, {
|
|
289
|
-
counts:
|
|
290
|
+
counts: DeviceTierLimits & {
|
|
290
291
|
total: number;
|
|
291
292
|
};
|
|
292
293
|
deviceIds: string[];
|
|
293
294
|
}>) => Record<string, number>;
|
|
294
295
|
memoizedResultFunc: ((resultFuncArgs_0: Record<string, {
|
|
295
|
-
counts:
|
|
296
|
+
counts: DeviceTierLimits & {
|
|
296
297
|
total: number;
|
|
297
298
|
};
|
|
298
299
|
deviceIds: string[];
|
|
@@ -303,7 +304,7 @@ declare const getSelectedGroupInfo: ((state: {
|
|
|
303
304
|
};
|
|
304
305
|
lastResult: () => Record<string, number>;
|
|
305
306
|
dependencies: [(state: RootState) => Record<string, {
|
|
306
|
-
counts:
|
|
307
|
+
counts: DeviceTierLimits & {
|
|
307
308
|
total: number;
|
|
308
309
|
};
|
|
309
310
|
deviceIds: string[];
|
|
@@ -338,14 +339,14 @@ declare const getCombinedLimit: ((state: {
|
|
|
338
339
|
resultsCount: () => number;
|
|
339
340
|
resetResultsCount: () => void;
|
|
340
341
|
} & {
|
|
341
|
-
resultFunc: (resultFuncArgs_0:
|
|
342
|
-
memoizedResultFunc: ((resultFuncArgs_0:
|
|
342
|
+
resultFunc: (resultFuncArgs_0: DeviceTierLimits) => number;
|
|
343
|
+
memoizedResultFunc: ((resultFuncArgs_0: DeviceTierLimits) => number) & {
|
|
343
344
|
clearCache: () => void;
|
|
344
345
|
resultsCount: () => number;
|
|
345
346
|
resetResultsCount: () => void;
|
|
346
347
|
};
|
|
347
348
|
lastResult: () => number;
|
|
348
|
-
dependencies: [(state: RootState) =>
|
|
349
|
+
dependencies: [(state: RootState) => DeviceTierLimits];
|
|
349
350
|
recomputations: () => number;
|
|
350
351
|
resetRecomputations: () => void;
|
|
351
352
|
dependencyRecomputations: () => number;
|
|
@@ -390,13 +391,13 @@ declare const getLimitMaxed: ((state: {
|
|
|
390
391
|
resetResultsCount: () => void;
|
|
391
392
|
} & {
|
|
392
393
|
resultFunc: (resultFuncArgs_0: Record<string, {
|
|
393
|
-
counts:
|
|
394
|
+
counts: DeviceTierLimits & {
|
|
394
395
|
total: number;
|
|
395
396
|
};
|
|
396
397
|
deviceIds: string[];
|
|
397
398
|
}>) => Record<string, number>;
|
|
398
399
|
memoizedResultFunc: ((resultFuncArgs_0: Record<string, {
|
|
399
|
-
counts:
|
|
400
|
+
counts: DeviceTierLimits & {
|
|
400
401
|
total: number;
|
|
401
402
|
};
|
|
402
403
|
deviceIds: string[];
|
|
@@ -407,7 +408,7 @@ declare const getLimitMaxed: ((state: {
|
|
|
407
408
|
};
|
|
408
409
|
lastResult: () => Record<string, number>;
|
|
409
410
|
dependencies: [(state: RootState) => Record<string, {
|
|
410
|
-
counts:
|
|
411
|
+
counts: DeviceTierLimits & {
|
|
411
412
|
total: number;
|
|
412
413
|
};
|
|
413
414
|
deviceIds: string[];
|
|
@@ -433,14 +434,14 @@ declare const getLimitMaxed: ((state: {
|
|
|
433
434
|
resultsCount: () => number;
|
|
434
435
|
resetResultsCount: () => void;
|
|
435
436
|
} & {
|
|
436
|
-
resultFunc: (resultFuncArgs_0:
|
|
437
|
-
memoizedResultFunc: ((resultFuncArgs_0:
|
|
437
|
+
resultFunc: (resultFuncArgs_0: DeviceTierLimits) => number;
|
|
438
|
+
memoizedResultFunc: ((resultFuncArgs_0: DeviceTierLimits) => number) & {
|
|
438
439
|
clearCache: () => void;
|
|
439
440
|
resultsCount: () => number;
|
|
440
441
|
resetResultsCount: () => void;
|
|
441
442
|
};
|
|
442
443
|
lastResult: () => number;
|
|
443
|
-
dependencies: [(state: RootState) =>
|
|
444
|
+
dependencies: [(state: RootState) => DeviceTierLimits];
|
|
444
445
|
recomputations: () => number;
|
|
445
446
|
resetRecomputations: () => void;
|
|
446
447
|
dependencyRecomputations: () => number;
|
|
@@ -723,14 +724,14 @@ declare const getEnabledTiers: ((state: {
|
|
|
723
724
|
resultsCount: () => number;
|
|
724
725
|
resetResultsCount: () => void;
|
|
725
726
|
} & {
|
|
726
|
-
resultFunc: (resultFuncArgs_0:
|
|
727
|
-
memoizedResultFunc: ((resultFuncArgs_0:
|
|
727
|
+
resultFunc: (resultFuncArgs_0: DeviceTierLimits) => [string, number][];
|
|
728
|
+
memoizedResultFunc: ((resultFuncArgs_0: DeviceTierLimits) => [string, number][]) & {
|
|
728
729
|
clearCache: () => void;
|
|
729
730
|
resultsCount: () => number;
|
|
730
731
|
resetResultsCount: () => void;
|
|
731
732
|
};
|
|
732
733
|
lastResult: () => [string, number][];
|
|
733
|
-
dependencies: [(state: RootState) =>
|
|
734
|
+
dependencies: [(state: RootState) => DeviceTierLimits];
|
|
734
735
|
recomputations: () => number;
|
|
735
736
|
resetRecomputations: () => void;
|
|
736
737
|
dependencyRecomputations: () => number;
|
|
@@ -766,7 +767,7 @@ declare const getDeviceLimitStats: ((state: {
|
|
|
766
767
|
resetResultsCount: () => void;
|
|
767
768
|
} & {
|
|
768
769
|
resultFunc: (resultFuncArgs_0: [string, number][], resultFuncArgs_1: {
|
|
769
|
-
counts:
|
|
770
|
+
counts: DeviceTierLimits & {
|
|
770
771
|
total: number;
|
|
771
772
|
};
|
|
772
773
|
deviceIds: string[];
|
|
@@ -776,7 +777,7 @@ declare const getDeviceLimitStats: ((state: {
|
|
|
776
777
|
total: any;
|
|
777
778
|
}[];
|
|
778
779
|
memoizedResultFunc: ((resultFuncArgs_0: [string, number][], resultFuncArgs_1: {
|
|
779
|
-
counts:
|
|
780
|
+
counts: DeviceTierLimits & {
|
|
780
781
|
total: number;
|
|
781
782
|
};
|
|
782
783
|
deviceIds: string[];
|
|
@@ -808,14 +809,14 @@ declare const getDeviceLimitStats: ((state: {
|
|
|
808
809
|
resultsCount: () => number;
|
|
809
810
|
resetResultsCount: () => void;
|
|
810
811
|
} & {
|
|
811
|
-
resultFunc: (resultFuncArgs_0:
|
|
812
|
-
memoizedResultFunc: ((resultFuncArgs_0:
|
|
812
|
+
resultFunc: (resultFuncArgs_0: DeviceTierLimits) => [string, number][];
|
|
813
|
+
memoizedResultFunc: ((resultFuncArgs_0: DeviceTierLimits) => [string, number][]) & {
|
|
813
814
|
clearCache: () => void;
|
|
814
815
|
resultsCount: () => number;
|
|
815
816
|
resetResultsCount: () => void;
|
|
816
817
|
};
|
|
817
818
|
lastResult: () => [string, number][];
|
|
818
|
-
dependencies: [(state: RootState) =>
|
|
819
|
+
dependencies: [(state: RootState) => DeviceTierLimits];
|
|
819
820
|
recomputations: () => number;
|
|
820
821
|
resetRecomputations: () => void;
|
|
821
822
|
dependencyRecomputations: () => number;
|
|
@@ -824,7 +825,7 @@ declare const getDeviceLimitStats: ((state: {
|
|
|
824
825
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
825
826
|
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
826
827
|
}, (state: RootState) => {
|
|
827
|
-
counts:
|
|
828
|
+
counts: DeviceTierLimits & {
|
|
828
829
|
total: number;
|
|
829
830
|
};
|
|
830
831
|
deviceIds: string[];
|
|
@@ -852,13 +853,13 @@ declare const getDeviceTypes: ((state: {
|
|
|
852
853
|
resetResultsCount: () => void;
|
|
853
854
|
} & {
|
|
854
855
|
resultFunc: (resultFuncArgs_0: {
|
|
855
|
-
counts:
|
|
856
|
+
counts: DeviceTierLimits & {
|
|
856
857
|
total: number;
|
|
857
858
|
};
|
|
858
859
|
deviceIds: string[];
|
|
859
860
|
}, resultFuncArgs_1: Record<string, Device>) => string[];
|
|
860
861
|
memoizedResultFunc: ((resultFuncArgs_0: {
|
|
861
|
-
counts:
|
|
862
|
+
counts: DeviceTierLimits & {
|
|
862
863
|
total: number;
|
|
863
864
|
};
|
|
864
865
|
deviceIds: string[];
|
|
@@ -869,7 +870,7 @@ declare const getDeviceTypes: ((state: {
|
|
|
869
870
|
};
|
|
870
871
|
lastResult: () => string[];
|
|
871
872
|
dependencies: [(state: RootState) => {
|
|
872
|
-
counts:
|
|
873
|
+
counts: DeviceTierLimits & {
|
|
873
874
|
total: number;
|
|
874
875
|
};
|
|
875
876
|
deviceIds: string[];
|
|
@@ -883,5 +884,5 @@ declare const getDeviceTypes: ((state: {
|
|
|
883
884
|
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
884
885
|
};
|
|
885
886
|
//#endregion
|
|
886
|
-
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 };
|
|
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 };
|
|
887
888
|
//# sourceMappingURL=selectors.d.ts.map
|
|
@@ -12,6 +12,7 @@ const getDeviceListState = (state) => state.devices.deviceList;
|
|
|
12
12
|
const getListedDevices = (state) => state.devices.deviceList.deviceIds;
|
|
13
13
|
const getFilteringAttributes = (state) => state.devices.filteringAttributes;
|
|
14
14
|
const getDeviceFilters = (state) => state.devices.filters || [];
|
|
15
|
+
const getTestDeviceLimit = (state) => state.devices.testDeviceLimit;
|
|
15
16
|
const getFilteringAttributesFromConfig = (state) => state.devices.filteringAttributesConfig.attributes;
|
|
16
17
|
const getSortedFilteringAttributes = createSelector([getFilteringAttributes], (filteringAttributes) => ({
|
|
17
18
|
...filteringAttributes,
|
|
@@ -120,6 +121,6 @@ const getDeviceTypes = createSelector([getAcceptedDevices, getDevicesById], ({ d
|
|
|
120
121
|
return accu;
|
|
121
122
|
}, {})));
|
|
122
123
|
//#endregion
|
|
123
|
-
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 };
|
|
124
|
+
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 };
|
|
124
125
|
|
|
125
126
|
//# sourceMappingURL=selectors.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"selectors.js","names":[],"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 || [];\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,MAAM,oCAAoC,UAAqB,MAAM,QAAQ,0BAA0B;AACvG,MAAa,+BAA+B,eAAe,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,8BAA8B,eACzC,CAAC,wBAAwB,2BAA2B,IACnD,EAAE,sBAAsB,6BAA6B;CAGpD,OADmB,mBAAmB,MAAM,GAAG,wBAC/B,C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AAG;CAAU,GAAG;AAAS,CAAC,CAAC,OAAO,eAAe,CACrG;AACA,MAAM,uBAAuB,eAAe,CAAC,eAAe,IAAG,WAAU,OAAO,QAAQ,MAAM,CAAC,CAAC,QAAQ,GAAG,WAAW,UAAU,CAAC,CAAC;AAElI,MAAa,kBAAkB,eAAe,CAAC,oBAAoB,IAAG,sBAAqB,kBAAkB,KAAK,CAAC,UAAU,IAAI,CAAC;AAElI,MAAa,sBAAsB,eAAe,CAAC,sBAAsB,kBAAkB,IAAI,mBAAmB,aAAa;CAC7H,MAAM,EAAE,WAAW;CACnB,OAAO,kBAAkB,KAAK,CAAC,MAAM,YAAY;EAC/C;EACA;EACA,OAAO,OAAO,SAAS;CACzB,EAAE;AACJ,CAAC;AAED,MAAa,iBAAiB,eAAe,CAAC,oBAAoB,cAAc,IAAI,EAAE,YAAY,CAAC,KAAK,gBACtG,OAAO,KACL,UAAU,MAAM,GAAG,GAAG,CAAC,CAAC,QAAQ,MAAM,SAAS;CAC7C,MAAM,EAAE,aAAa,cAAc,CAAC,MAAM,YAAY,QAAQ,YAAY,KAAK,CAAC,aAAa,CAAC;CAC9F,OAAO,YAAY,QAAQ,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
|
+
{"version":3,"file":"selectors.js","names":[],"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] = deviceTypeA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AG,sBAAqB,kBAAkB,KAAK,CAAC,UAAU,IAAI,CAAC;AAElI,MAAa,sBAAsB,eAAe,CAAC,sBAAsB,kBAAkB,IAAI,mBAAmB,aAAa;CAC7H,MAAM,EAAE,WAAW;CACnB,OAAO,kBAAkB,KAAK,CAAC,MAAM,YAAY;EAC/C;EACA;EACA,OAAO,OAAO,SAAS;CACzB,EAAE;AACJ,CAAC;AAED,MAAa,iBAAiB,eAAe,CAAC,oBAAoB,cAAc,IAAI,EAAE,YAAY,CAAC,KAAK,gBACtG,OAAO,KACL,UAAU,MAAM,GAAG,GAAG,CAAC,CAAC,QAAQ,MAAM,SAAS;CAC7C,MAAM,EAAE,aAAa,cAAc,CAAC,MAAM,YAAY,QAAQ,YAAY,KAAK,CAAC,aAAa,CAAC;CAC9F,OAAO,YAAY,QAAQ,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,8 +1,8 @@
|
|
|
1
1
|
import { ht as DeviceAuthState, m as DeviceIssueOptionKey } from "../constants-Rl3FJzFf.cjs";
|
|
2
|
-
import { i as DeviceGroup, o as DeviceListState, r as DeviceFilter, s as DeviceSelectedAttribute, t as Device$1 } from "../index-
|
|
2
|
+
import { i as DeviceGroup, o as DeviceListState, r as DeviceFilter, s as DeviceSelectedAttribute, t as Device$1 } from "../index-DnKVKM0G.cjs";
|
|
3
3
|
import { i as SnackbarContent, n as SearchState } from "../index-DeOpb2oK.cjs";
|
|
4
|
-
import { r as RootState, t as AppDispatch } from "../store-
|
|
5
|
-
import { ConnectionState, Device, DeviceConfiguration, DeviceInventoryResponse,
|
|
4
|
+
import { r as RootState, t as AppDispatch } from "../store-DquBGT7j.cjs";
|
|
5
|
+
import { ConnectionState, Device, DeviceConfiguration, DeviceInventoryResponse, DeviceWithImage, Filter, Integration, ManagementApiConfiguration, NewConfigurationDeployment, PreAuthSet, SortCriteria, Status } from "@northern.tech/types/MenderTypes";
|
|
6
6
|
//#region src/devicesSlice/thunks.d.ts
|
|
7
7
|
declare const getGroups: import("@reduxjs/toolkit").AsyncThunk<{
|
|
8
8
|
payload: {
|
|
@@ -307,7 +307,7 @@ declare const getAllDeviceCounts: import("@reduxjs/toolkit").AsyncThunk<void, vo
|
|
|
307
307
|
rejectedMeta?: unknown;
|
|
308
308
|
}>;
|
|
309
309
|
declare const getDeviceLimits: import("@reduxjs/toolkit").AsyncThunk<{
|
|
310
|
-
payload: DeviceTierLimits;
|
|
310
|
+
payload: import("@northern.tech/types/types.gen").DeviceTierLimits;
|
|
311
311
|
type: "devices/setDeviceLimits";
|
|
312
312
|
}, void, {
|
|
313
313
|
dispatch: AppDispatch;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ht as DeviceAuthState, m as DeviceIssueOptionKey } from "../constants-B_H4squx.js";
|
|
2
|
-
import { i as DeviceGroup, o as DeviceListState, r as DeviceFilter, s as DeviceSelectedAttribute, t as Device$1 } from "../index-
|
|
2
|
+
import { i as DeviceGroup, o as DeviceListState, r as DeviceFilter, s as DeviceSelectedAttribute, t as Device$1 } from "../index-BpamudGf.js";
|
|
3
3
|
import { i as SnackbarContent, n as SearchState } from "../index-Bs0c1-WY.js";
|
|
4
|
-
import { r as RootState, t as AppDispatch } from "../store-
|
|
5
|
-
import { ConnectionState, Device, DeviceConfiguration, DeviceInventoryResponse,
|
|
4
|
+
import { r as RootState, t as AppDispatch } from "../store-B2_hrsgP.js";
|
|
5
|
+
import { ConnectionState, Device, DeviceConfiguration, DeviceInventoryResponse, DeviceWithImage, Filter, Integration, ManagementApiConfiguration, NewConfigurationDeployment, PreAuthSet, SortCriteria, Status } from "@northern.tech/types/MenderTypes";
|
|
6
6
|
//#region src/devicesSlice/thunks.d.ts
|
|
7
7
|
declare const getGroups: import("@reduxjs/toolkit").AsyncThunk<{
|
|
8
8
|
payload: {
|
|
@@ -307,7 +307,7 @@ declare const getAllDeviceCounts: import("@reduxjs/toolkit").AsyncThunk<void, vo
|
|
|
307
307
|
rejectedMeta?: unknown;
|
|
308
308
|
}>;
|
|
309
309
|
declare const getDeviceLimits: import("@reduxjs/toolkit").AsyncThunk<{
|
|
310
|
-
payload: DeviceTierLimits;
|
|
310
|
+
payload: import("@northern.tech/types/types.gen").DeviceTierLimits;
|
|
311
311
|
type: "devices/setDeviceLimits";
|
|
312
312
|
}, void, {
|
|
313
313
|
dispatch: AppDispatch;
|