@northern.tech/store 0.30.2 → 0.32.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 +16 -7
- package/dist/actions.d.ts +16 -7
- package/dist/api/general-api.cjs +2 -2
- package/dist/api/general-api.cjs.map +1 -1
- package/dist/api/general-api.js.map +1 -1
- package/dist/api/users-api.cjs +1 -1
- package/dist/api/users-api.cjs.map +1 -1
- package/dist/api/users-api.js.map +1 -1
- package/dist/appSlice/constants.cjs +6 -1
- package/dist/appSlice/constants.cjs.map +1 -1
- package/dist/appSlice/constants.d.cts +1 -1
- package/dist/appSlice/constants.d.ts +1 -1
- package/dist/appSlice/constants.js +7 -2
- package/dist/appSlice/constants.js.map +1 -1
- package/dist/appSlice/index.cjs.map +1 -1
- package/dist/appSlice/index.d.cts +1 -1
- package/dist/appSlice/index.d.ts +1 -1
- package/dist/appSlice/index.js.map +1 -1
- package/dist/appSlice/mocks.d.cts +1 -1
- package/dist/appSlice/mocks.d.ts +1 -1
- package/dist/appSlice/selectors.d.cts +7 -7
- package/dist/appSlice/selectors.d.ts +7 -7
- package/dist/appSlice/thunks.d.cts +2 -2
- package/dist/appSlice/thunks.d.ts +2 -2
- package/dist/auth.cjs +1 -1
- package/dist/auth.cjs.map +1 -1
- package/dist/auth.d.cts +1 -1
- package/dist/auth.d.ts +1 -1
- package/dist/auth.js.map +1 -1
- package/dist/commonConstants.d.cts +1 -1
- package/dist/commonConstants.d.ts +1 -1
- package/dist/commonSelectors.cjs +1 -1
- package/dist/commonSelectors.cjs.map +1 -1
- package/dist/commonSelectors.d.cts +10 -10
- package/dist/commonSelectors.d.ts +10 -10
- package/dist/commonSelectors.js.map +1 -1
- package/dist/{constants-DPLHhjVN.d.cts → constants-BFTS6mge.d.cts} +6 -1
- package/dist/{constants-C5AU0mCY.d.ts → constants-BIIEMVoG.d.ts} +6 -1
- package/dist/{constants-MPLfugsi.d.cts → constants-BrGIx40B.d.cts} +3 -3
- package/dist/{constants-DrwXHsJ1.d.ts → constants-CjO3_FOH.d.ts} +3 -3
- package/dist/constants.cjs +1 -0
- package/dist/constants.cjs.map +1 -1
- package/dist/constants.d.cts +3 -3
- package/dist/constants.d.ts +3 -3
- package/dist/constants.js +2 -2
- package/dist/constants.js.map +1 -1
- package/dist/deploymentsSlice/index.cjs.map +1 -1
- package/dist/deploymentsSlice/index.js.map +1 -1
- package/dist/deploymentsSlice/selectors.cjs.map +1 -1
- package/dist/deploymentsSlice/selectors.d.cts +7 -7
- package/dist/deploymentsSlice/selectors.d.ts +7 -7
- package/dist/deploymentsSlice/selectors.js.map +1 -1
- package/dist/deploymentsSlice/thunks.d.cts +4 -4
- package/dist/deploymentsSlice/thunks.d.ts +4 -4
- package/dist/devicesSlice/constants.d.cts +1 -1
- package/dist/devicesSlice/constants.d.ts +1 -1
- package/dist/devicesSlice/index.cjs.map +1 -1
- package/dist/devicesSlice/index.d.cts +1 -1
- package/dist/devicesSlice/index.d.ts +1 -1
- package/dist/devicesSlice/index.js.map +1 -1
- package/dist/devicesSlice/selectors.cjs.map +1 -1
- package/dist/devicesSlice/selectors.d.cts +7 -7
- package/dist/devicesSlice/selectors.d.ts +7 -7
- 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-Lz5JsJ6O.d.cts → index-B64X5ozM.d.cts} +2 -2
- package/dist/{index-4eaLEXy_.d.cts → index-BFlHWzjv.d.cts} +2 -2
- package/dist/{index-DqyY6oZ3.d.ts → index-BI9O8JWe.d.ts} +2 -2
- package/dist/{index-Bwx9jEiL.d.cts → index-BbaS7MzW.d.cts} +2 -2
- package/dist/{index-Dv3Hfxk_.d.ts → index-Bp1WpATs.d.ts} +2 -2
- package/dist/{index-FyYBBeN-.d.cts → index-C-q632wO.d.cts} +41 -8
- package/dist/{index-DJSlDPRX.d.ts → index-C6wNUfiV.d.ts} +2 -2
- package/dist/{index-BEVkIiNa.d.cts → index-CT5hgXm9.d.cts} +2 -2
- package/dist/{index-Cvkvcz4r.d.ts → index-CyokFK2e.d.ts} +41 -8
- package/dist/{index-CO-py5d4.d.ts → index-DUvrw_Ed.d.ts} +2 -2
- package/dist/{index-CTt-eIY8.d.cts → index-DwACbyUg.d.cts} +2 -2
- package/dist/{index-DtePEQPT.d.ts → index-ez3oxfRo.d.ts} +2 -2
- package/dist/liststatehook.cjs +5 -3
- package/dist/liststatehook.cjs.map +1 -1
- package/dist/liststatehook.js +5 -3
- package/dist/liststatehook.js.map +1 -1
- package/dist/locationutils.cjs +3 -0
- package/dist/locationutils.cjs.map +1 -1
- package/dist/locationutils.d.cts +3 -2
- package/dist/locationutils.d.ts +3 -2
- package/dist/locationutils.js +3 -0
- package/dist/locationutils.js.map +1 -1
- package/dist/monitorSlice/constants.d.cts +1 -1
- package/dist/monitorSlice/constants.d.ts +1 -1
- package/dist/monitorSlice/index.cjs.map +1 -1
- package/dist/monitorSlice/index.d.cts +1 -1
- package/dist/monitorSlice/index.d.ts +1 -1
- package/dist/monitorSlice/index.js.map +1 -1
- package/dist/monitorSlice/mocks.cjs.map +1 -1
- package/dist/monitorSlice/mocks.d.cts +1 -1
- package/dist/monitorSlice/mocks.d.ts +1 -1
- package/dist/monitorSlice/mocks.js.map +1 -1
- package/dist/monitorSlice/selectors.d.cts +1 -1
- package/dist/monitorSlice/selectors.d.ts +1 -1
- package/dist/monitorSlice/thunks.cjs.map +1 -1
- package/dist/monitorSlice/thunks.d.cts +4 -4
- package/dist/monitorSlice/thunks.d.ts +4 -4
- package/dist/monitorSlice/thunks.js.map +1 -1
- package/dist/onboardingSlice/index.cjs.map +1 -1
- package/dist/onboardingSlice/index.js.map +1 -1
- package/dist/onboardingSlice/mocks.cjs.map +1 -1
- package/dist/onboardingSlice/selectors.d.cts +1 -1
- package/dist/onboardingSlice/selectors.d.ts +1 -1
- package/dist/onboardingSlice/thunks.d.cts +2 -2
- package/dist/onboardingSlice/thunks.d.ts +2 -2
- package/dist/organizationSlice/index.cjs.map +1 -1
- package/dist/organizationSlice/index.d.cts +1 -1
- package/dist/organizationSlice/index.d.ts +1 -1
- package/dist/organizationSlice/index.js.map +1 -1
- package/dist/organizationSlice/mocks.d.cts +2 -2
- package/dist/organizationSlice/mocks.d.ts +2 -2
- package/dist/organizationSlice/selectors.cjs.map +1 -1
- package/dist/organizationSlice/selectors.d.cts +8 -8
- package/dist/organizationSlice/selectors.d.ts +8 -8
- package/dist/organizationSlice/selectors.js.map +1 -1
- package/dist/organizationSlice/thunks.d.cts +5 -5
- package/dist/organizationSlice/thunks.d.ts +5 -5
- package/dist/organizationSlice/types.d.cts +1 -1
- package/dist/organizationSlice/types.d.ts +1 -1
- package/dist/releasesSlice/index.cjs +63 -2
- package/dist/releasesSlice/index.cjs.map +1 -1
- package/dist/releasesSlice/index.d.cts +2 -2
- package/dist/releasesSlice/index.d.ts +2 -2
- package/dist/releasesSlice/index.js +63 -2
- package/dist/releasesSlice/index.js.map +1 -1
- package/dist/releasesSlice/mocks.cjs +34 -0
- package/dist/releasesSlice/mocks.cjs.map +1 -1
- package/dist/releasesSlice/mocks.d.cts +44 -1
- package/dist/releasesSlice/mocks.d.ts +44 -1
- package/dist/releasesSlice/mocks.js +34 -0
- package/dist/releasesSlice/mocks.js.map +1 -1
- package/dist/releasesSlice/selectors.cjs +37 -5
- package/dist/releasesSlice/selectors.cjs.map +1 -1
- package/dist/releasesSlice/selectors.d.cts +403 -15
- package/dist/releasesSlice/selectors.d.ts +403 -15
- package/dist/releasesSlice/selectors.js +27 -6
- package/dist/releasesSlice/selectors.js.map +1 -1
- package/dist/releasesSlice/thunks.cjs +210 -2
- package/dist/releasesSlice/thunks.cjs.map +1 -1
- package/dist/releasesSlice/thunks.d.cts +144 -10
- package/dist/releasesSlice/thunks.d.ts +144 -10
- package/dist/releasesSlice/thunks.js +201 -4
- package/dist/releasesSlice/thunks.js.map +1 -1
- package/dist/selectors.cjs +11 -0
- package/dist/selectors.d.cts +2 -2
- package/dist/selectors.d.ts +2 -2
- package/dist/selectors.js +2 -2
- package/dist/sockethook.cjs +2 -2
- package/dist/sockethook.cjs.map +1 -1
- package/dist/sockethook.js.map +1 -1
- package/dist/{store-BQxOSRC1.d.ts → store-D-xvZXiY.d.ts} +7 -7
- package/dist/{store-BiIA0r0A.d.cts → store-b5cF2WB5.d.cts} +7 -7
- package/dist/store.cjs.map +1 -1
- package/dist/store.d.cts +2 -2
- package/dist/store.d.ts +2 -2
- package/dist/store.js.map +1 -1
- package/dist/storehooks.cjs +3 -3
- package/dist/storehooks.cjs.map +1 -1
- package/dist/storehooks.d.cts +2 -2
- package/dist/storehooks.d.ts +2 -2
- package/dist/storehooks.js.map +1 -1
- package/dist/thunks.cjs +22 -10
- package/dist/thunks.cjs.map +1 -1
- package/dist/thunks.d.cts +2 -2
- package/dist/thunks.d.ts +2 -2
- package/dist/thunks.js +8 -6
- package/dist/thunks.js.map +1 -1
- package/dist/{types-B2NRQLFw.d.ts → types-BPyM8Inu.d.ts} +3 -3
- package/dist/{types-ClEfo0dK.d.cts → types-COdPU2QQ.d.cts} +3 -3
- package/dist/useDeploymentDevice.cjs +1 -1
- package/dist/useDeploymentDevice.cjs.map +1 -1
- package/dist/useDeploymentDevice.js.map +1 -1
- package/dist/usersSlice/index.cjs.map +1 -1
- package/dist/usersSlice/index.d.cts +1 -1
- package/dist/usersSlice/index.d.ts +1 -1
- package/dist/usersSlice/index.js.map +1 -1
- package/dist/usersSlice/mocks.d.cts +1 -1
- package/dist/usersSlice/mocks.d.ts +1 -1
- package/dist/usersSlice/selectors.cjs.map +1 -1
- package/dist/usersSlice/selectors.d.cts +7 -7
- package/dist/usersSlice/selectors.d.ts +7 -7
- package/dist/usersSlice/selectors.js.map +1 -1
- package/dist/usersSlice/thunks.d.cts +4 -4
- package/dist/usersSlice/thunks.d.ts +4 -4
- package/dist/{utils-CO_CpGFP.d.ts → utils-CHBWS_tH.d.ts} +4 -4
- package/dist/{utils-CpPfqW0Q.d.cts → utils-Do9z5TL1.d.cts} +4 -4
- package/dist/utils.cjs.map +1 -1
- package/dist/utils.d.cts +1 -1
- package/dist/utils.d.ts +1 -1
- package/dist/utils.js.map +1 -1
- package/package.json +7 -7
|
@@ -1,22 +1,111 @@
|
|
|
1
|
-
import { o as UserSliceType } from "../index-
|
|
2
|
-
import {
|
|
1
|
+
import { o as UserSliceType } from "../index-ez3oxfRo.js";
|
|
2
|
+
import { a as ReleasesList, i as ReleaseSliceType, n as ManifestsList, r as Release } from "../index-CyokFK2e.js";
|
|
3
3
|
import { n as OnboardingSliceType } from "../index-CJkrL0oA.js";
|
|
4
4
|
import { o as DeploymentsSliceType } from "../index-CkwVnIqd.js";
|
|
5
|
-
import { s as DeviceSliceType } from "../index-
|
|
6
|
-
import { t as AppSliceType } from "../index-
|
|
7
|
-
import { t as MonitorSliceType } from "../index-
|
|
8
|
-
import { t as OrganizationSliceType } from "../index-
|
|
9
|
-
import { r as RootState } from "../store-
|
|
5
|
+
import { s as DeviceSliceType } from "../index-BI9O8JWe.js";
|
|
6
|
+
import { t as AppSliceType } from "../index-Bp1WpATs.js";
|
|
7
|
+
import { t as MonitorSliceType } from "../index-DUvrw_Ed.js";
|
|
8
|
+
import { t as OrganizationSliceType } from "../index-C6wNUfiV.js";
|
|
9
|
+
import { r as RootState } from "../store-D-xvZXiY.js";
|
|
10
10
|
import * as _$_northern_tech_utils_constants0 from "@northern.tech/utils/constants";
|
|
11
|
-
import { ReleaseV2 } from "@northern.tech/types/MenderTypes";
|
|
11
|
+
import { Manifest, ReleaseV2 } from "@northern.tech/types/MenderTypes";
|
|
12
12
|
import * as _$_northern_tech_types_types_gen0 from "@northern.tech/types/types.gen";
|
|
13
13
|
import * as _$reselect from "reselect";
|
|
14
14
|
|
|
15
15
|
//#region src/releasesSlice/selectors.d.ts
|
|
16
|
+
declare const getActiveTab: (state: RootState) => "releases" | "delta" | "manifests" | undefined;
|
|
16
17
|
declare const getReleasesById: (state: RootState) => Record<string, Release>;
|
|
17
|
-
declare const getReleaseTags: (state: RootState) => string[];
|
|
18
18
|
declare const getReleaseListState: (state: RootState) => ReleasesList;
|
|
19
19
|
declare const getUpdateTypes: (state: RootState) => string[];
|
|
20
|
+
declare const getSoftwareTags: ((state: {
|
|
21
|
+
app: AppSliceType;
|
|
22
|
+
devices: DeviceSliceType;
|
|
23
|
+
deployments: DeploymentsSliceType;
|
|
24
|
+
monitor: MonitorSliceType;
|
|
25
|
+
onboarding: OnboardingSliceType;
|
|
26
|
+
organization: OrganizationSliceType;
|
|
27
|
+
releases: ReleaseSliceType;
|
|
28
|
+
users: UserSliceType;
|
|
29
|
+
}) => _$_northern_tech_types_types_gen0.Tags) & {
|
|
30
|
+
clearCache: () => void;
|
|
31
|
+
resultsCount: () => number;
|
|
32
|
+
resetResultsCount: () => void;
|
|
33
|
+
} & {
|
|
34
|
+
resultFunc: (resultFuncArgs_0: Record<"software" | "releases" | "manifests", _$_northern_tech_types_types_gen0.Tags>) => _$_northern_tech_types_types_gen0.Tags;
|
|
35
|
+
memoizedResultFunc: ((resultFuncArgs_0: Record<"software" | "releases" | "manifests", _$_northern_tech_types_types_gen0.Tags>) => _$_northern_tech_types_types_gen0.Tags) & {
|
|
36
|
+
clearCache: () => void;
|
|
37
|
+
resultsCount: () => number;
|
|
38
|
+
resetResultsCount: () => void;
|
|
39
|
+
};
|
|
40
|
+
lastResult: () => _$_northern_tech_types_types_gen0.Tags;
|
|
41
|
+
dependencies: [(state: RootState) => Record<"software" | "releases" | "manifests", _$_northern_tech_types_types_gen0.Tags>];
|
|
42
|
+
recomputations: () => number;
|
|
43
|
+
resetRecomputations: () => void;
|
|
44
|
+
dependencyRecomputations: () => number;
|
|
45
|
+
resetDependencyRecomputations: () => void;
|
|
46
|
+
} & {
|
|
47
|
+
memoize: typeof _$reselect.weakMapMemoize;
|
|
48
|
+
argsMemoize: typeof _$reselect.weakMapMemoize;
|
|
49
|
+
};
|
|
50
|
+
declare const getSoftwareTagsById: ((state: {
|
|
51
|
+
app: AppSliceType;
|
|
52
|
+
devices: DeviceSliceType;
|
|
53
|
+
deployments: DeploymentsSliceType;
|
|
54
|
+
monitor: MonitorSliceType;
|
|
55
|
+
onboarding: OnboardingSliceType;
|
|
56
|
+
organization: OrganizationSliceType;
|
|
57
|
+
releases: ReleaseSliceType;
|
|
58
|
+
users: UserSliceType;
|
|
59
|
+
}) => any) & {
|
|
60
|
+
clearCache: () => void;
|
|
61
|
+
resultsCount: () => number;
|
|
62
|
+
resetResultsCount: () => void;
|
|
63
|
+
} & {
|
|
64
|
+
resultFunc: (resultFuncArgs_0: _$_northern_tech_types_types_gen0.Tags) => any;
|
|
65
|
+
memoizedResultFunc: ((resultFuncArgs_0: _$_northern_tech_types_types_gen0.Tags) => any) & {
|
|
66
|
+
clearCache: () => void;
|
|
67
|
+
resultsCount: () => number;
|
|
68
|
+
resetResultsCount: () => void;
|
|
69
|
+
};
|
|
70
|
+
lastResult: () => any;
|
|
71
|
+
dependencies: [((state: {
|
|
72
|
+
app: AppSliceType;
|
|
73
|
+
devices: DeviceSliceType;
|
|
74
|
+
deployments: DeploymentsSliceType;
|
|
75
|
+
monitor: MonitorSliceType;
|
|
76
|
+
onboarding: OnboardingSliceType;
|
|
77
|
+
organization: OrganizationSliceType;
|
|
78
|
+
releases: ReleaseSliceType;
|
|
79
|
+
users: UserSliceType;
|
|
80
|
+
}) => _$_northern_tech_types_types_gen0.Tags) & {
|
|
81
|
+
clearCache: () => void;
|
|
82
|
+
resultsCount: () => number;
|
|
83
|
+
resetResultsCount: () => void;
|
|
84
|
+
} & {
|
|
85
|
+
resultFunc: (resultFuncArgs_0: Record<"software" | "releases" | "manifests", _$_northern_tech_types_types_gen0.Tags>) => _$_northern_tech_types_types_gen0.Tags;
|
|
86
|
+
memoizedResultFunc: ((resultFuncArgs_0: Record<"software" | "releases" | "manifests", _$_northern_tech_types_types_gen0.Tags>) => _$_northern_tech_types_types_gen0.Tags) & {
|
|
87
|
+
clearCache: () => void;
|
|
88
|
+
resultsCount: () => number;
|
|
89
|
+
resetResultsCount: () => void;
|
|
90
|
+
};
|
|
91
|
+
lastResult: () => _$_northern_tech_types_types_gen0.Tags;
|
|
92
|
+
dependencies: [(state: RootState) => Record<"software" | "releases" | "manifests", _$_northern_tech_types_types_gen0.Tags>];
|
|
93
|
+
recomputations: () => number;
|
|
94
|
+
resetRecomputations: () => void;
|
|
95
|
+
dependencyRecomputations: () => number;
|
|
96
|
+
resetDependencyRecomputations: () => void;
|
|
97
|
+
} & {
|
|
98
|
+
memoize: typeof _$reselect.weakMapMemoize;
|
|
99
|
+
argsMemoize: typeof _$reselect.weakMapMemoize;
|
|
100
|
+
}];
|
|
101
|
+
recomputations: () => number;
|
|
102
|
+
resetRecomputations: () => void;
|
|
103
|
+
dependencyRecomputations: () => number;
|
|
104
|
+
resetDependencyRecomputations: () => void;
|
|
105
|
+
} & {
|
|
106
|
+
memoize: typeof _$reselect.weakMapMemoize;
|
|
107
|
+
argsMemoize: typeof _$reselect.weakMapMemoize;
|
|
108
|
+
};
|
|
20
109
|
declare const getReleasesList: ((state: {
|
|
21
110
|
app: AppSliceType;
|
|
22
111
|
devices: DeviceSliceType;
|
|
@@ -47,6 +136,36 @@ declare const getReleasesList: ((state: {
|
|
|
47
136
|
memoize: typeof _$reselect.weakMapMemoize;
|
|
48
137
|
argsMemoize: typeof _$reselect.weakMapMemoize;
|
|
49
138
|
};
|
|
139
|
+
declare const getReleaseTags: ((state: {
|
|
140
|
+
app: AppSliceType;
|
|
141
|
+
devices: DeviceSliceType;
|
|
142
|
+
deployments: DeploymentsSliceType;
|
|
143
|
+
monitor: MonitorSliceType;
|
|
144
|
+
onboarding: OnboardingSliceType;
|
|
145
|
+
organization: OrganizationSliceType;
|
|
146
|
+
releases: ReleaseSliceType;
|
|
147
|
+
users: UserSliceType;
|
|
148
|
+
}) => _$_northern_tech_types_types_gen0.Tags) & {
|
|
149
|
+
clearCache: () => void;
|
|
150
|
+
resultsCount: () => number;
|
|
151
|
+
resetResultsCount: () => void;
|
|
152
|
+
} & {
|
|
153
|
+
resultFunc: (resultFuncArgs_0: Record<"software" | "releases" | "manifests", _$_northern_tech_types_types_gen0.Tags>) => _$_northern_tech_types_types_gen0.Tags;
|
|
154
|
+
memoizedResultFunc: ((resultFuncArgs_0: Record<"software" | "releases" | "manifests", _$_northern_tech_types_types_gen0.Tags>) => _$_northern_tech_types_types_gen0.Tags) & {
|
|
155
|
+
clearCache: () => void;
|
|
156
|
+
resultsCount: () => number;
|
|
157
|
+
resetResultsCount: () => void;
|
|
158
|
+
};
|
|
159
|
+
lastResult: () => _$_northern_tech_types_types_gen0.Tags;
|
|
160
|
+
dependencies: [(state: RootState) => Record<"software" | "releases" | "manifests", _$_northern_tech_types_types_gen0.Tags>];
|
|
161
|
+
recomputations: () => number;
|
|
162
|
+
resetRecomputations: () => void;
|
|
163
|
+
dependencyRecomputations: () => number;
|
|
164
|
+
resetDependencyRecomputations: () => void;
|
|
165
|
+
} & {
|
|
166
|
+
memoize: typeof _$reselect.weakMapMemoize;
|
|
167
|
+
argsMemoize: typeof _$reselect.weakMapMemoize;
|
|
168
|
+
};
|
|
50
169
|
declare const getReleaseTagsById: ((state: {
|
|
51
170
|
app: AppSliceType;
|
|
52
171
|
devices: DeviceSliceType;
|
|
@@ -56,19 +175,48 @@ declare const getReleaseTagsById: ((state: {
|
|
|
56
175
|
organization: OrganizationSliceType;
|
|
57
176
|
releases: ReleaseSliceType;
|
|
58
177
|
users: UserSliceType;
|
|
59
|
-
}) =>
|
|
178
|
+
}) => any) & {
|
|
60
179
|
clearCache: () => void;
|
|
61
180
|
resultsCount: () => number;
|
|
62
181
|
resetResultsCount: () => void;
|
|
63
182
|
} & {
|
|
64
|
-
resultFunc: (resultFuncArgs_0:
|
|
65
|
-
memoizedResultFunc: ((resultFuncArgs_0:
|
|
183
|
+
resultFunc: (resultFuncArgs_0: _$_northern_tech_types_types_gen0.Tags) => any;
|
|
184
|
+
memoizedResultFunc: ((resultFuncArgs_0: _$_northern_tech_types_types_gen0.Tags) => any) & {
|
|
66
185
|
clearCache: () => void;
|
|
67
186
|
resultsCount: () => number;
|
|
68
187
|
resetResultsCount: () => void;
|
|
69
188
|
};
|
|
70
|
-
lastResult: () =>
|
|
71
|
-
dependencies: [(state:
|
|
189
|
+
lastResult: () => any;
|
|
190
|
+
dependencies: [((state: {
|
|
191
|
+
app: AppSliceType;
|
|
192
|
+
devices: DeviceSliceType;
|
|
193
|
+
deployments: DeploymentsSliceType;
|
|
194
|
+
monitor: MonitorSliceType;
|
|
195
|
+
onboarding: OnboardingSliceType;
|
|
196
|
+
organization: OrganizationSliceType;
|
|
197
|
+
releases: ReleaseSliceType;
|
|
198
|
+
users: UserSliceType;
|
|
199
|
+
}) => _$_northern_tech_types_types_gen0.Tags) & {
|
|
200
|
+
clearCache: () => void;
|
|
201
|
+
resultsCount: () => number;
|
|
202
|
+
resetResultsCount: () => void;
|
|
203
|
+
} & {
|
|
204
|
+
resultFunc: (resultFuncArgs_0: Record<"software" | "releases" | "manifests", _$_northern_tech_types_types_gen0.Tags>) => _$_northern_tech_types_types_gen0.Tags;
|
|
205
|
+
memoizedResultFunc: ((resultFuncArgs_0: Record<"software" | "releases" | "manifests", _$_northern_tech_types_types_gen0.Tags>) => _$_northern_tech_types_types_gen0.Tags) & {
|
|
206
|
+
clearCache: () => void;
|
|
207
|
+
resultsCount: () => number;
|
|
208
|
+
resetResultsCount: () => void;
|
|
209
|
+
};
|
|
210
|
+
lastResult: () => _$_northern_tech_types_types_gen0.Tags;
|
|
211
|
+
dependencies: [(state: RootState) => Record<"software" | "releases" | "manifests", _$_northern_tech_types_types_gen0.Tags>];
|
|
212
|
+
recomputations: () => number;
|
|
213
|
+
resetRecomputations: () => void;
|
|
214
|
+
dependencyRecomputations: () => number;
|
|
215
|
+
resetDependencyRecomputations: () => void;
|
|
216
|
+
} & {
|
|
217
|
+
memoize: typeof _$reselect.weakMapMemoize;
|
|
218
|
+
argsMemoize: typeof _$reselect.weakMapMemoize;
|
|
219
|
+
}];
|
|
72
220
|
recomputations: () => number;
|
|
73
221
|
resetRecomputations: () => void;
|
|
74
222
|
dependencyRecomputations: () => number;
|
|
@@ -345,6 +493,246 @@ declare const getSelectedJob: ((state: {
|
|
|
345
493
|
memoize: typeof _$reselect.weakMapMemoize;
|
|
346
494
|
argsMemoize: typeof _$reselect.weakMapMemoize;
|
|
347
495
|
};
|
|
496
|
+
declare const getManifestTags: ((state: {
|
|
497
|
+
app: AppSliceType;
|
|
498
|
+
devices: DeviceSliceType;
|
|
499
|
+
deployments: DeploymentsSliceType;
|
|
500
|
+
monitor: MonitorSliceType;
|
|
501
|
+
onboarding: OnboardingSliceType;
|
|
502
|
+
organization: OrganizationSliceType;
|
|
503
|
+
releases: ReleaseSliceType;
|
|
504
|
+
users: UserSliceType;
|
|
505
|
+
}) => _$_northern_tech_types_types_gen0.Tags) & {
|
|
506
|
+
clearCache: () => void;
|
|
507
|
+
resultsCount: () => number;
|
|
508
|
+
resetResultsCount: () => void;
|
|
509
|
+
} & {
|
|
510
|
+
resultFunc: (resultFuncArgs_0: Record<"software" | "releases" | "manifests", _$_northern_tech_types_types_gen0.Tags>) => _$_northern_tech_types_types_gen0.Tags;
|
|
511
|
+
memoizedResultFunc: ((resultFuncArgs_0: Record<"software" | "releases" | "manifests", _$_northern_tech_types_types_gen0.Tags>) => _$_northern_tech_types_types_gen0.Tags) & {
|
|
512
|
+
clearCache: () => void;
|
|
513
|
+
resultsCount: () => number;
|
|
514
|
+
resetResultsCount: () => void;
|
|
515
|
+
};
|
|
516
|
+
lastResult: () => _$_northern_tech_types_types_gen0.Tags;
|
|
517
|
+
dependencies: [(state: RootState) => Record<"software" | "releases" | "manifests", _$_northern_tech_types_types_gen0.Tags>];
|
|
518
|
+
recomputations: () => number;
|
|
519
|
+
resetRecomputations: () => void;
|
|
520
|
+
dependencyRecomputations: () => number;
|
|
521
|
+
resetDependencyRecomputations: () => void;
|
|
522
|
+
} & {
|
|
523
|
+
memoize: typeof _$reselect.weakMapMemoize;
|
|
524
|
+
argsMemoize: typeof _$reselect.weakMapMemoize;
|
|
525
|
+
};
|
|
526
|
+
declare const getManifestTagsById: ((state: {
|
|
527
|
+
app: AppSliceType;
|
|
528
|
+
devices: DeviceSliceType;
|
|
529
|
+
deployments: DeploymentsSliceType;
|
|
530
|
+
monitor: MonitorSliceType;
|
|
531
|
+
onboarding: OnboardingSliceType;
|
|
532
|
+
organization: OrganizationSliceType;
|
|
533
|
+
releases: ReleaseSliceType;
|
|
534
|
+
users: UserSliceType;
|
|
535
|
+
}) => any) & {
|
|
536
|
+
clearCache: () => void;
|
|
537
|
+
resultsCount: () => number;
|
|
538
|
+
resetResultsCount: () => void;
|
|
539
|
+
} & {
|
|
540
|
+
resultFunc: (resultFuncArgs_0: _$_northern_tech_types_types_gen0.Tags) => any;
|
|
541
|
+
memoizedResultFunc: ((resultFuncArgs_0: _$_northern_tech_types_types_gen0.Tags) => any) & {
|
|
542
|
+
clearCache: () => void;
|
|
543
|
+
resultsCount: () => number;
|
|
544
|
+
resetResultsCount: () => void;
|
|
545
|
+
};
|
|
546
|
+
lastResult: () => any;
|
|
547
|
+
dependencies: [((state: {
|
|
548
|
+
app: AppSliceType;
|
|
549
|
+
devices: DeviceSliceType;
|
|
550
|
+
deployments: DeploymentsSliceType;
|
|
551
|
+
monitor: MonitorSliceType;
|
|
552
|
+
onboarding: OnboardingSliceType;
|
|
553
|
+
organization: OrganizationSliceType;
|
|
554
|
+
releases: ReleaseSliceType;
|
|
555
|
+
users: UserSliceType;
|
|
556
|
+
}) => _$_northern_tech_types_types_gen0.Tags) & {
|
|
557
|
+
clearCache: () => void;
|
|
558
|
+
resultsCount: () => number;
|
|
559
|
+
resetResultsCount: () => void;
|
|
560
|
+
} & {
|
|
561
|
+
resultFunc: (resultFuncArgs_0: Record<"software" | "releases" | "manifests", _$_northern_tech_types_types_gen0.Tags>) => _$_northern_tech_types_types_gen0.Tags;
|
|
562
|
+
memoizedResultFunc: ((resultFuncArgs_0: Record<"software" | "releases" | "manifests", _$_northern_tech_types_types_gen0.Tags>) => _$_northern_tech_types_types_gen0.Tags) & {
|
|
563
|
+
clearCache: () => void;
|
|
564
|
+
resultsCount: () => number;
|
|
565
|
+
resetResultsCount: () => void;
|
|
566
|
+
};
|
|
567
|
+
lastResult: () => _$_northern_tech_types_types_gen0.Tags;
|
|
568
|
+
dependencies: [(state: RootState) => Record<"software" | "releases" | "manifests", _$_northern_tech_types_types_gen0.Tags>];
|
|
569
|
+
recomputations: () => number;
|
|
570
|
+
resetRecomputations: () => void;
|
|
571
|
+
dependencyRecomputations: () => number;
|
|
572
|
+
resetDependencyRecomputations: () => void;
|
|
573
|
+
} & {
|
|
574
|
+
memoize: typeof _$reselect.weakMapMemoize;
|
|
575
|
+
argsMemoize: typeof _$reselect.weakMapMemoize;
|
|
576
|
+
}];
|
|
577
|
+
recomputations: () => number;
|
|
578
|
+
resetRecomputations: () => void;
|
|
579
|
+
dependencyRecomputations: () => number;
|
|
580
|
+
resetDependencyRecomputations: () => void;
|
|
581
|
+
} & {
|
|
582
|
+
memoize: typeof _$reselect.weakMapMemoize;
|
|
583
|
+
argsMemoize: typeof _$reselect.weakMapMemoize;
|
|
584
|
+
};
|
|
585
|
+
declare const getManifestsById: (state: RootState) => Record<string, Manifest>;
|
|
586
|
+
declare const getManifestsListState: (state: RootState) => ManifestsList;
|
|
587
|
+
declare const getManifestsList: ((state: {
|
|
588
|
+
app: AppSliceType;
|
|
589
|
+
devices: DeviceSliceType;
|
|
590
|
+
deployments: DeploymentsSliceType;
|
|
591
|
+
monitor: MonitorSliceType;
|
|
592
|
+
onboarding: OnboardingSliceType;
|
|
593
|
+
organization: OrganizationSliceType;
|
|
594
|
+
releases: ReleaseSliceType;
|
|
595
|
+
users: UserSliceType;
|
|
596
|
+
}) => Manifest[]) & {
|
|
597
|
+
clearCache: () => void;
|
|
598
|
+
resultsCount: () => number;
|
|
599
|
+
resetResultsCount: () => void;
|
|
600
|
+
} & {
|
|
601
|
+
resultFunc: (resultFuncArgs_0: Record<string, Manifest>, resultFuncArgs_1: string[], resultFuncArgs_2: {}) => Manifest[];
|
|
602
|
+
memoizedResultFunc: ((resultFuncArgs_0: Record<string, Manifest>, resultFuncArgs_1: string[], resultFuncArgs_2: {}) => Manifest[]) & {
|
|
603
|
+
clearCache: () => void;
|
|
604
|
+
resultsCount: () => number;
|
|
605
|
+
resetResultsCount: () => void;
|
|
606
|
+
};
|
|
607
|
+
lastResult: () => Manifest[];
|
|
608
|
+
dependencies: [(state: RootState) => Record<string, Manifest>, (state: RootState) => string[], () => {}];
|
|
609
|
+
recomputations: () => number;
|
|
610
|
+
resetRecomputations: () => void;
|
|
611
|
+
dependencyRecomputations: () => number;
|
|
612
|
+
resetDependencyRecomputations: () => void;
|
|
613
|
+
} & {
|
|
614
|
+
memoize: typeof _$reselect.weakMapMemoize;
|
|
615
|
+
argsMemoize: typeof _$reselect.weakMapMemoize;
|
|
616
|
+
};
|
|
617
|
+
declare const getHasManifests: ((state: {
|
|
618
|
+
app: AppSliceType;
|
|
619
|
+
devices: DeviceSliceType;
|
|
620
|
+
deployments: DeploymentsSliceType;
|
|
621
|
+
monitor: MonitorSliceType;
|
|
622
|
+
onboarding: OnboardingSliceType;
|
|
623
|
+
organization: OrganizationSliceType;
|
|
624
|
+
releases: ReleaseSliceType;
|
|
625
|
+
users: UserSliceType;
|
|
626
|
+
}) => boolean) & {
|
|
627
|
+
clearCache: () => void;
|
|
628
|
+
resultsCount: () => number;
|
|
629
|
+
resetResultsCount: () => void;
|
|
630
|
+
} & {
|
|
631
|
+
resultFunc: (resultFuncArgs_0: ManifestsList, resultFuncArgs_1: Record<string, Manifest>) => boolean;
|
|
632
|
+
memoizedResultFunc: ((resultFuncArgs_0: ManifestsList, resultFuncArgs_1: Record<string, Manifest>) => boolean) & {
|
|
633
|
+
clearCache: () => void;
|
|
634
|
+
resultsCount: () => number;
|
|
635
|
+
resetResultsCount: () => void;
|
|
636
|
+
};
|
|
637
|
+
lastResult: () => boolean;
|
|
638
|
+
dependencies: [(state: RootState) => ManifestsList, (state: RootState) => Record<string, Manifest>];
|
|
639
|
+
recomputations: () => number;
|
|
640
|
+
resetRecomputations: () => void;
|
|
641
|
+
dependencyRecomputations: () => number;
|
|
642
|
+
resetDependencyRecomputations: () => void;
|
|
643
|
+
} & {
|
|
644
|
+
memoize: typeof _$reselect.weakMapMemoize;
|
|
645
|
+
argsMemoize: typeof _$reselect.weakMapMemoize;
|
|
646
|
+
};
|
|
647
|
+
declare const getSelectedManifest: ((state: {
|
|
648
|
+
app: AppSliceType;
|
|
649
|
+
devices: DeviceSliceType;
|
|
650
|
+
deployments: DeploymentsSliceType;
|
|
651
|
+
monitor: MonitorSliceType;
|
|
652
|
+
onboarding: OnboardingSliceType;
|
|
653
|
+
organization: OrganizationSliceType;
|
|
654
|
+
releases: ReleaseSliceType;
|
|
655
|
+
users: UserSliceType;
|
|
656
|
+
}) => Manifest) & {
|
|
657
|
+
clearCache: () => void;
|
|
658
|
+
resultsCount: () => number;
|
|
659
|
+
resetResultsCount: () => void;
|
|
660
|
+
} & {
|
|
661
|
+
resultFunc: (resultFuncArgs_0: Record<string, Manifest>, resultFuncArgs_1: string | null) => Manifest;
|
|
662
|
+
memoizedResultFunc: ((resultFuncArgs_0: Record<string, Manifest>, resultFuncArgs_1: string | null) => Manifest) & {
|
|
663
|
+
clearCache: () => void;
|
|
664
|
+
resultsCount: () => number;
|
|
665
|
+
resetResultsCount: () => void;
|
|
666
|
+
};
|
|
667
|
+
lastResult: () => Manifest;
|
|
668
|
+
dependencies: [(state: RootState) => Record<string, Manifest>, (state: RootState) => string | null];
|
|
669
|
+
recomputations: () => number;
|
|
670
|
+
resetRecomputations: () => void;
|
|
671
|
+
dependencyRecomputations: () => number;
|
|
672
|
+
resetDependencyRecomputations: () => void;
|
|
673
|
+
} & {
|
|
674
|
+
memoize: typeof _$reselect.weakMapMemoize;
|
|
675
|
+
argsMemoize: typeof _$reselect.weakMapMemoize;
|
|
676
|
+
};
|
|
677
|
+
declare const getSelectedManifests: ((state: {
|
|
678
|
+
app: AppSliceType;
|
|
679
|
+
devices: DeviceSliceType;
|
|
680
|
+
deployments: DeploymentsSliceType;
|
|
681
|
+
monitor: MonitorSliceType;
|
|
682
|
+
onboarding: OnboardingSliceType;
|
|
683
|
+
organization: OrganizationSliceType;
|
|
684
|
+
releases: ReleaseSliceType;
|
|
685
|
+
users: UserSliceType;
|
|
686
|
+
}) => Manifest[]) & {
|
|
687
|
+
clearCache: () => void;
|
|
688
|
+
resultsCount: () => number;
|
|
689
|
+
resetResultsCount: () => void;
|
|
690
|
+
} & {
|
|
691
|
+
resultFunc: (resultFuncArgs_0: ManifestsList, resultFuncArgs_1: Manifest[]) => Manifest[];
|
|
692
|
+
memoizedResultFunc: ((resultFuncArgs_0: ManifestsList, resultFuncArgs_1: Manifest[]) => Manifest[]) & {
|
|
693
|
+
clearCache: () => void;
|
|
694
|
+
resultsCount: () => number;
|
|
695
|
+
resetResultsCount: () => void;
|
|
696
|
+
};
|
|
697
|
+
lastResult: () => Manifest[];
|
|
698
|
+
dependencies: [(state: RootState) => ManifestsList, ((state: {
|
|
699
|
+
app: AppSliceType;
|
|
700
|
+
devices: DeviceSliceType;
|
|
701
|
+
deployments: DeploymentsSliceType;
|
|
702
|
+
monitor: MonitorSliceType;
|
|
703
|
+
onboarding: OnboardingSliceType;
|
|
704
|
+
organization: OrganizationSliceType;
|
|
705
|
+
releases: ReleaseSliceType;
|
|
706
|
+
users: UserSliceType;
|
|
707
|
+
}) => Manifest[]) & {
|
|
708
|
+
clearCache: () => void;
|
|
709
|
+
resultsCount: () => number;
|
|
710
|
+
resetResultsCount: () => void;
|
|
711
|
+
} & {
|
|
712
|
+
resultFunc: (resultFuncArgs_0: Record<string, Manifest>, resultFuncArgs_1: string[], resultFuncArgs_2: {}) => Manifest[];
|
|
713
|
+
memoizedResultFunc: ((resultFuncArgs_0: Record<string, Manifest>, resultFuncArgs_1: string[], resultFuncArgs_2: {}) => Manifest[]) & {
|
|
714
|
+
clearCache: () => void;
|
|
715
|
+
resultsCount: () => number;
|
|
716
|
+
resetResultsCount: () => void;
|
|
717
|
+
};
|
|
718
|
+
lastResult: () => Manifest[];
|
|
719
|
+
dependencies: [(state: RootState) => Record<string, Manifest>, (state: RootState) => string[], () => {}];
|
|
720
|
+
recomputations: () => number;
|
|
721
|
+
resetRecomputations: () => void;
|
|
722
|
+
dependencyRecomputations: () => number;
|
|
723
|
+
resetDependencyRecomputations: () => void;
|
|
724
|
+
} & {
|
|
725
|
+
memoize: typeof _$reselect.weakMapMemoize;
|
|
726
|
+
argsMemoize: typeof _$reselect.weakMapMemoize;
|
|
727
|
+
}];
|
|
728
|
+
recomputations: () => number;
|
|
729
|
+
resetRecomputations: () => void;
|
|
730
|
+
dependencyRecomputations: () => number;
|
|
731
|
+
resetDependencyRecomputations: () => void;
|
|
732
|
+
} & {
|
|
733
|
+
memoize: typeof _$reselect.weakMapMemoize;
|
|
734
|
+
argsMemoize: typeof _$reselect.weakMapMemoize;
|
|
735
|
+
};
|
|
348
736
|
//#endregion
|
|
349
|
-
export { getDeltaJobById, getDeltaJobsById, getDeltaJobsListState, getHasReleases, getReleaseListState, getReleaseTags, getReleaseTagsById, getReleasesById, getReleasesList, getSelectedJob, getSelectedRelease, getSelectedReleases, getUpdateTypes };
|
|
737
|
+
export { getActiveTab, getDeltaJobById, getDeltaJobsById, getDeltaJobsListState, getHasManifests, getHasReleases, getManifestTags, getManifestTagsById, getManifestsById, getManifestsList, getManifestsListState, getReleaseListState, getReleaseTags, getReleaseTagsById, getReleasesById, getReleasesList, getSelectedJob, getSelectedManifest, getSelectedManifests, getSelectedRelease, getSelectedReleases, getSoftwareTags, getSoftwareTagsById, getUpdateTypes };
|
|
350
738
|
//# sourceMappingURL=selectors.d.ts.map
|
|
@@ -1,23 +1,28 @@
|
|
|
1
1
|
import { listItemMapper } from "../utils.js";
|
|
2
2
|
import { createSelector } from "@reduxjs/toolkit";
|
|
3
3
|
//#region src/releasesSlice/selectors.ts
|
|
4
|
+
const transformToId = (tags) => tags.reduce((accu, key) => ({
|
|
5
|
+
...accu,
|
|
6
|
+
[key]: key
|
|
7
|
+
}), {});
|
|
8
|
+
const getActiveTab = (state) => state.releases.tab;
|
|
4
9
|
const getSelectedReleaseId = (state) => state.releases.selectedRelease;
|
|
5
10
|
const getReleasesById = (state) => state.releases.byId;
|
|
6
|
-
const
|
|
11
|
+
const getTags = (state) => state.releases.tags;
|
|
7
12
|
const getReleaseListState = (state) => state.releases.releasesList;
|
|
8
13
|
const getListedReleases = (state) => state.releases.releasesList.releaseIds;
|
|
9
14
|
const getUpdateTypes = (state) => state.releases.updateTypes;
|
|
10
15
|
const releaseDefaults = {};
|
|
11
16
|
const getReleaseMappingDefaults = () => releaseDefaults;
|
|
17
|
+
const getSoftwareTags = createSelector([getTags], ({ software }) => software);
|
|
18
|
+
const getSoftwareTagsById = createSelector([getSoftwareTags], transformToId);
|
|
12
19
|
const getReleasesList = createSelector([
|
|
13
20
|
getReleasesById,
|
|
14
21
|
getListedReleases,
|
|
15
22
|
getReleaseMappingDefaults
|
|
16
23
|
], listItemMapper);
|
|
17
|
-
const
|
|
18
|
-
|
|
19
|
-
[key]: key
|
|
20
|
-
}), {}));
|
|
24
|
+
const getReleaseTags = createSelector([getTags], ({ releases }) => releases);
|
|
25
|
+
const getReleaseTagsById = createSelector([getReleaseTags], transformToId);
|
|
21
26
|
const getHasReleases = createSelector([getReleaseListState, getReleasesById], ({ searchTotal, total }, byId) => !!(Object.keys(byId).length || total || searchTotal));
|
|
22
27
|
const getSelectedRelease = createSelector([getReleasesById, getSelectedReleaseId], (byId, id) => byId[id || ""] ?? {});
|
|
23
28
|
const getSelectedReleases = createSelector([getReleaseListState, getReleasesList], ({ selection }, releases) => selection.map((index) => releases[index]));
|
|
@@ -26,7 +31,23 @@ const getDeltaJobsById = (state) => state.releases.deltaJobs;
|
|
|
26
31
|
const getDeltaJobById = createSelector([getDeltaJobsById, (_, jobId) => jobId], (byId, jobId) => byId[jobId]);
|
|
27
32
|
const getSelectedJobId = (state) => state.releases.selectedJob;
|
|
28
33
|
const getSelectedJob = createSelector([getDeltaJobsById, getSelectedJobId], (byId, jobId) => byId[jobId || ""]);
|
|
34
|
+
const getSelectedManifestId = (state) => state.releases.selectedManifest;
|
|
35
|
+
const getManifestTags = createSelector([getTags], ({ manifests }) => manifests);
|
|
36
|
+
const getManifestTagsById = createSelector([getManifestTags], transformToId);
|
|
37
|
+
const getManifestsById = (state) => state.releases.manifestsById;
|
|
38
|
+
const getManifestsListState = (state) => state.releases.manifestsList;
|
|
39
|
+
const getListedManifests = (state) => state.releases.manifestsList.manifestIds;
|
|
40
|
+
const manifestDefaults = {};
|
|
41
|
+
const getManifestMappingDefaults = () => manifestDefaults;
|
|
42
|
+
const getManifestsList = createSelector([
|
|
43
|
+
getManifestsById,
|
|
44
|
+
getListedManifests,
|
|
45
|
+
getManifestMappingDefaults
|
|
46
|
+
], listItemMapper);
|
|
47
|
+
const getHasManifests = createSelector([getManifestsListState, getManifestsById], ({ searchTotal, total }, byId) => !!(Object.keys(byId).length || total || searchTotal));
|
|
48
|
+
const getSelectedManifest = createSelector([getManifestsById, getSelectedManifestId], (byId, id) => byId[id || ""] ?? {});
|
|
49
|
+
const getSelectedManifests = createSelector([getManifestsListState, getManifestsList], ({ selection }, manifests) => selection.map((index) => manifests[index]));
|
|
29
50
|
//#endregion
|
|
30
|
-
export { getDeltaJobById, getDeltaJobsById, getDeltaJobsListState, getHasReleases, getReleaseListState, getReleaseTags, getReleaseTagsById, getReleasesById, getReleasesList, getSelectedJob, getSelectedRelease, getSelectedReleases, getUpdateTypes };
|
|
51
|
+
export { getActiveTab, getDeltaJobById, getDeltaJobsById, getDeltaJobsListState, getHasManifests, getHasReleases, getManifestTags, getManifestTagsById, getManifestsById, getManifestsList, getManifestsListState, getReleaseListState, getReleaseTags, getReleaseTagsById, getReleasesById, getReleasesList, getSelectedJob, getSelectedManifest, getSelectedManifests, getSelectedRelease, getSelectedReleases, getSoftwareTags, getSoftwareTagsById, getUpdateTypes };
|
|
31
52
|
|
|
32
53
|
//# sourceMappingURL=selectors.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"selectors.js","names":[],"sources":["../../src/releasesSlice/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 type { ReleaseV2 } from '@northern.tech/types/MenderTypes';\nimport { createSelector } from '@reduxjs/toolkit';\n\nimport type { RootState } from '../store';\nimport { listItemMapper } from '../utils';\n\nconst getSelectedReleaseId = (state: RootState) => state.releases.selectedRelease;\nexport const getReleasesById = (state: RootState) => state.releases.byId;\
|
|
1
|
+
{"version":3,"file":"selectors.js","names":[],"sources":["../../src/releasesSlice/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 type { Manifest, ReleaseV2 } from '@northern.tech/types/MenderTypes';\nimport { createSelector } from '@reduxjs/toolkit';\n\nimport type { RootState } from '../store';\nimport { listItemMapper } from '../utils';\n\nconst transformToId = tags => tags.reduce((accu, key) => ({ ...accu, [key]: key }), {});\n\nexport const getActiveTab = (state: RootState) => state.releases.tab;\nconst getSelectedReleaseId = (state: RootState) => state.releases.selectedRelease;\nexport const getReleasesById = (state: RootState) => state.releases.byId;\nconst getTags = (state: RootState) => state.releases.tags;\nexport const getReleaseListState = (state: RootState) => state.releases.releasesList;\nconst getListedReleases = (state: RootState) => state.releases.releasesList.releaseIds;\nexport const getUpdateTypes = (state: RootState) => state.releases.updateTypes;\nconst releaseDefaults = {};\nconst getReleaseMappingDefaults = () => releaseDefaults;\nexport const getSoftwareTags = createSelector([getTags], ({ software }) => software);\nexport const getSoftwareTagsById = createSelector([getSoftwareTags], transformToId);\nexport const getReleasesList = createSelector([getReleasesById, getListedReleases, getReleaseMappingDefaults], listItemMapper<ReleaseV2>);\n\nexport const getReleaseTags = createSelector([getTags], ({ releases }) => releases);\nexport const getReleaseTagsById = createSelector([getReleaseTags], transformToId);\nexport const getHasReleases = createSelector(\n [getReleaseListState, getReleasesById],\n ({ searchTotal, total }, byId) => !!(Object.keys(byId).length || total || searchTotal)\n);\n\nexport const getSelectedRelease = createSelector([getReleasesById, getSelectedReleaseId], (byId, id) => byId[id || ''] ?? {});\n\nexport const getSelectedReleases = createSelector([getReleaseListState, getReleasesList], ({ selection }, releases) => selection.map(index => releases[index]));\n\nexport const getDeltaJobsListState = (state: RootState) => state.releases.deltaJobsList;\nexport const getDeltaJobsById = (state: RootState) => state.releases.deltaJobs;\nexport const getDeltaJobById = createSelector([getDeltaJobsById, (_, jobId) => jobId], (byId, jobId: string) => byId[jobId]);\nconst getSelectedJobId = (state: RootState) => state.releases.selectedJob;\nexport const getSelectedJob = createSelector([getDeltaJobsById, getSelectedJobId], (byId, jobId) => byId[jobId || '']);\n\nconst getSelectedManifestId = (state: RootState) => state.releases.selectedManifest;\nexport const getManifestTags = createSelector([getTags], ({ manifests }) => manifests);\nexport const getManifestTagsById = createSelector([getManifestTags], transformToId);\nexport const getManifestsById = (state: RootState) => state.releases.manifestsById;\nexport const getManifestsListState = (state: RootState) => state.releases.manifestsList;\nconst getListedManifests = (state: RootState) => state.releases.manifestsList.manifestIds;\nconst manifestDefaults = {};\nconst getManifestMappingDefaults = () => manifestDefaults;\nexport const getManifestsList = createSelector([getManifestsById, getListedManifests, getManifestMappingDefaults], listItemMapper<Manifest>);\n\nexport const getHasManifests = createSelector(\n [getManifestsListState, getManifestsById],\n ({ searchTotal, total }, byId) => !!(Object.keys(byId).length || total || searchTotal)\n);\n\nexport const getSelectedManifest = createSelector([getManifestsById, getSelectedManifestId], (byId, id) => byId[id || ''] ?? {});\n\nexport const getSelectedManifests = createSelector([getManifestsListState, getManifestsList], ({ selection }, manifests) =>\n selection.map(index => manifests[index])\n);\n"],"mappings":";;;AAmBA,MAAM,iBAAgB,SAAQ,KAAK,QAAQ,MAAM,SAAS;CAAE,GAAG;EAAO,MAAM;CAAK,GAAG,EAAE,CAAC;AAEvF,MAAa,gBAAgB,UAAqB,MAAM,SAAS;AACjE,MAAM,wBAAwB,UAAqB,MAAM,SAAS;AAClE,MAAa,mBAAmB,UAAqB,MAAM,SAAS;AACpE,MAAM,WAAW,UAAqB,MAAM,SAAS;AACrD,MAAa,uBAAuB,UAAqB,MAAM,SAAS;AACxE,MAAM,qBAAqB,UAAqB,MAAM,SAAS,aAAa;AAC5E,MAAa,kBAAkB,UAAqB,MAAM,SAAS;AACnE,MAAM,kBAAkB,EAAE;AAC1B,MAAM,kCAAkC;AACxC,MAAa,kBAAkB,eAAe,CAAC,QAAQ,GAAG,EAAE,eAAe,SAAS;AACpF,MAAa,sBAAsB,eAAe,CAAC,gBAAgB,EAAE,cAAc;AACnF,MAAa,kBAAkB,eAAe;CAAC;CAAiB;CAAmB;CAA0B,EAAE,eAA0B;AAEzI,MAAa,iBAAiB,eAAe,CAAC,QAAQ,GAAG,EAAE,eAAe,SAAS;AACnF,MAAa,qBAAqB,eAAe,CAAC,eAAe,EAAE,cAAc;AACjF,MAAa,iBAAiB,eAC5B,CAAC,qBAAqB,gBAAgB,GACrC,EAAE,aAAa,SAAS,SAAS,CAAC,EAAE,OAAO,KAAK,KAAK,CAAC,UAAU,SAAS,aAC3E;AAED,MAAa,qBAAqB,eAAe,CAAC,iBAAiB,qBAAqB,GAAG,MAAM,OAAO,KAAK,MAAM,OAAO,EAAE,CAAC;AAE7H,MAAa,sBAAsB,eAAe,CAAC,qBAAqB,gBAAgB,GAAG,EAAE,aAAa,aAAa,UAAU,KAAI,UAAS,SAAS,OAAO,CAAC;AAE/J,MAAa,yBAAyB,UAAqB,MAAM,SAAS;AAC1E,MAAa,oBAAoB,UAAqB,MAAM,SAAS;AACrE,MAAa,kBAAkB,eAAe,CAAC,mBAAmB,GAAG,UAAU,MAAM,GAAG,MAAM,UAAkB,KAAK,OAAO;AAC5H,MAAM,oBAAoB,UAAqB,MAAM,SAAS;AAC9D,MAAa,iBAAiB,eAAe,CAAC,kBAAkB,iBAAiB,GAAG,MAAM,UAAU,KAAK,SAAS,IAAI;AAEtH,MAAM,yBAAyB,UAAqB,MAAM,SAAS;AACnE,MAAa,kBAAkB,eAAe,CAAC,QAAQ,GAAG,EAAE,gBAAgB,UAAU;AACtF,MAAa,sBAAsB,eAAe,CAAC,gBAAgB,EAAE,cAAc;AACnF,MAAa,oBAAoB,UAAqB,MAAM,SAAS;AACrE,MAAa,yBAAyB,UAAqB,MAAM,SAAS;AAC1E,MAAM,sBAAsB,UAAqB,MAAM,SAAS,cAAc;AAC9E,MAAM,mBAAmB,EAAE;AAC3B,MAAM,mCAAmC;AACzC,MAAa,mBAAmB,eAAe;CAAC;CAAkB;CAAoB;CAA2B,EAAE,eAAyB;AAE5I,MAAa,kBAAkB,eAC7B,CAAC,uBAAuB,iBAAiB,GACxC,EAAE,aAAa,SAAS,SAAS,CAAC,EAAE,OAAO,KAAK,KAAK,CAAC,UAAU,SAAS,aAC3E;AAED,MAAa,sBAAsB,eAAe,CAAC,kBAAkB,sBAAsB,GAAG,MAAM,OAAO,KAAK,MAAM,OAAO,EAAE,CAAC;AAEhI,MAAa,uBAAuB,eAAe,CAAC,uBAAuB,iBAAiB,GAAG,EAAE,aAAa,cAC5G,UAAU,KAAI,UAAS,UAAU,OAAO,CACzC"}
|