@northern.tech/store 0.31.0 → 0.33.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 +7 -2
- package/dist/actions.d.ts +7 -2
- 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 +1 -1
- package/dist/appSlice/constants.cjs.map +1 -1
- package/dist/appSlice/constants.js +2 -2
- package/dist/appSlice/constants.js.map +1 -1
- package/dist/appSlice/index.cjs.map +1 -1
- package/dist/appSlice/index.js.map +1 -1
- 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/auth.cjs +1 -1
- package/dist/auth.cjs.map +1 -1
- package/dist/auth.js.map +1 -1
- package/dist/commonSelectors.cjs +1 -1
- package/dist/commonSelectors.cjs.map +1 -1
- package/dist/commonSelectors.d.cts +2 -2
- package/dist/commonSelectors.d.ts +2 -2
- package/dist/commonSelectors.js.map +1 -1
- package/dist/constants.cjs.map +1 -1
- 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 +2 -2
- package/dist/deploymentsSlice/selectors.d.ts +2 -2
- package/dist/deploymentsSlice/selectors.js.map +1 -1
- package/dist/deploymentsSlice/thunks.d.cts +1 -1
- package/dist/deploymentsSlice/thunks.d.ts +1 -1
- package/dist/devicesSlice/index.cjs.map +1 -1
- package/dist/devicesSlice/index.js.map +1 -1
- package/dist/devicesSlice/selectors.cjs.map +1 -1
- package/dist/devicesSlice/selectors.d.cts +2 -2
- package/dist/devicesSlice/selectors.d.ts +2 -2
- package/dist/devicesSlice/selectors.js.map +1 -1
- package/dist/devicesSlice/thunks.d.cts +1 -1
- package/dist/devicesSlice/thunks.d.ts +1 -1
- package/dist/{index-WXwgRjLt.d.cts → index-SwHfGav1.d.cts} +29 -6
- package/dist/{index-CQo3yTUa.d.ts → index-uxdvFzzE.d.ts} +29 -6
- 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.map +1 -1
- package/dist/locationutils.js.map +1 -1
- package/dist/monitorSlice/index.cjs.map +1 -1
- package/dist/monitorSlice/index.js.map +1 -1
- package/dist/monitorSlice/mocks.cjs.map +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 +1 -1
- package/dist/monitorSlice/thunks.d.ts +1 -1
- 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 +1 -1
- package/dist/onboardingSlice/thunks.d.ts +1 -1
- package/dist/organizationSlice/index.cjs.map +1 -1
- package/dist/organizationSlice/index.js.map +1 -1
- package/dist/organizationSlice/selectors.cjs.map +1 -1
- package/dist/organizationSlice/selectors.d.cts +2 -2
- package/dist/organizationSlice/selectors.d.ts +2 -2
- package/dist/organizationSlice/selectors.js.map +1 -1
- package/dist/organizationSlice/thunks.d.cts +1 -1
- package/dist/organizationSlice/thunks.d.ts +1 -1
- package/dist/releasesSlice/index.cjs +45 -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 +45 -2
- package/dist/releasesSlice/index.js.map +1 -1
- package/dist/releasesSlice/mocks.cjs +28 -0
- package/dist/releasesSlice/mocks.cjs.map +1 -1
- package/dist/releasesSlice/mocks.d.cts +30 -1
- package/dist/releasesSlice/mocks.d.ts +30 -1
- package/dist/releasesSlice/mocks.js +28 -0
- package/dist/releasesSlice/mocks.js.map +1 -1
- package/dist/releasesSlice/selectors.cjs +32 -7
- package/dist/releasesSlice/selectors.cjs.map +1 -1
- package/dist/releasesSlice/selectors.d.cts +316 -18
- package/dist/releasesSlice/selectors.d.ts +316 -18
- package/dist/releasesSlice/selectors.js +25 -8
- package/dist/releasesSlice/selectors.js.map +1 -1
- package/dist/releasesSlice/thunks.cjs +212 -18
- package/dist/releasesSlice/thunks.cjs.map +1 -1
- package/dist/releasesSlice/thunks.d.cts +127 -8
- package/dist/releasesSlice/thunks.d.ts +127 -8
- package/dist/releasesSlice/thunks.js +204 -20
- package/dist/releasesSlice/thunks.js.map +1 -1
- package/dist/selectors.cjs +8 -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-NOBz-rVZ.d.cts → store-BC3rDsIH.d.cts} +2 -2
- package/dist/{store-Boqp1x2t.d.ts → store-BjVukDvt.d.ts} +2 -2
- package/dist/store.cjs.map +1 -1
- package/dist/store.d.cts +1 -1
- package/dist/store.d.ts +1 -1
- 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 +1 -1
- package/dist/storehooks.d.ts +1 -1
- package/dist/storehooks.js.map +1 -1
- package/dist/thunks.cjs +21 -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/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.js.map +1 -1
- package/dist/usersSlice/selectors.cjs.map +1 -1
- package/dist/usersSlice/selectors.d.cts +2 -2
- package/dist/usersSlice/selectors.d.ts +2 -2
- package/dist/usersSlice/selectors.js.map +1 -1
- package/dist/usersSlice/thunks.d.cts +1 -1
- package/dist/usersSlice/thunks.d.ts +1 -1
- package/dist/utils.cjs.map +1 -1
- package/dist/utils.js.map +1 -1
- package/package.json +8 -8
|
@@ -1,23 +1,111 @@
|
|
|
1
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-
|
|
2
|
+
import { a as ReleasesList, i as ReleaseSliceType, n as ManifestsList, r as Release, s as SoftwareList } from "../index-uxdvFzzE.js";
|
|
3
3
|
import { n as OnboardingSliceType } from "../index-CJkrL0oA.js";
|
|
4
4
|
import { o as DeploymentsSliceType } from "../index-CkwVnIqd.js";
|
|
5
5
|
import { s as DeviceSliceType } from "../index-BI9O8JWe.js";
|
|
6
6
|
import { t as AppSliceType } from "../index-Bp1WpATs.js";
|
|
7
7
|
import { t as MonitorSliceType } from "../index-DUvrw_Ed.js";
|
|
8
8
|
import { t as OrganizationSliceType } from "../index-C6wNUfiV.js";
|
|
9
|
-
import { r as RootState } from "../store-
|
|
9
|
+
import { r as RootState } from "../store-BjVukDvt.js";
|
|
10
10
|
import * as _$_northern_tech_utils_constants0 from "@northern.tech/utils/constants";
|
|
11
|
-
import { Manifest, ReleaseV2 } from "@northern.tech/types/MenderTypes";
|
|
11
|
+
import { Manifest, ReleaseV2, Software } 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
16
|
declare const getActiveTab: (state: RootState) => "releases" | "delta" | "manifests" | undefined;
|
|
17
17
|
declare const getReleasesById: (state: RootState) => Record<string, Release>;
|
|
18
|
-
declare const getReleaseTags: (state: RootState) => string[];
|
|
19
18
|
declare const getReleaseListState: (state: RootState) => ReleasesList;
|
|
20
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
|
+
};
|
|
21
109
|
declare const getReleasesList: ((state: {
|
|
22
110
|
app: AppSliceType;
|
|
23
111
|
devices: DeviceSliceType;
|
|
@@ -48,6 +136,36 @@ declare const getReleasesList: ((state: {
|
|
|
48
136
|
memoize: typeof _$reselect.weakMapMemoize;
|
|
49
137
|
argsMemoize: typeof _$reselect.weakMapMemoize;
|
|
50
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
|
+
};
|
|
51
169
|
declare const getReleaseTagsById: ((state: {
|
|
52
170
|
app: AppSliceType;
|
|
53
171
|
devices: DeviceSliceType;
|
|
@@ -57,19 +175,48 @@ declare const getReleaseTagsById: ((state: {
|
|
|
57
175
|
organization: OrganizationSliceType;
|
|
58
176
|
releases: ReleaseSliceType;
|
|
59
177
|
users: UserSliceType;
|
|
60
|
-
}) =>
|
|
178
|
+
}) => any) & {
|
|
61
179
|
clearCache: () => void;
|
|
62
180
|
resultsCount: () => number;
|
|
63
181
|
resetResultsCount: () => void;
|
|
64
182
|
} & {
|
|
65
|
-
resultFunc: (resultFuncArgs_0:
|
|
66
|
-
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) & {
|
|
67
185
|
clearCache: () => void;
|
|
68
186
|
resultsCount: () => number;
|
|
69
187
|
resetResultsCount: () => void;
|
|
70
188
|
};
|
|
71
|
-
lastResult: () =>
|
|
72
|
-
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
|
+
}];
|
|
73
220
|
recomputations: () => number;
|
|
74
221
|
resetRecomputations: () => void;
|
|
75
222
|
dependencyRecomputations: () => number;
|
|
@@ -87,18 +234,18 @@ declare const getHasReleases: ((state: {
|
|
|
87
234
|
organization: OrganizationSliceType;
|
|
88
235
|
releases: ReleaseSliceType;
|
|
89
236
|
users: UserSliceType;
|
|
90
|
-
}) => boolean) & {
|
|
237
|
+
}) => number | boolean) & {
|
|
91
238
|
clearCache: () => void;
|
|
92
239
|
resultsCount: () => number;
|
|
93
240
|
resetResultsCount: () => void;
|
|
94
241
|
} & {
|
|
95
|
-
resultFunc: (resultFuncArgs_0: ReleasesList, resultFuncArgs_1: Record<string, Release>) => boolean;
|
|
96
|
-
memoizedResultFunc: ((resultFuncArgs_0: ReleasesList, resultFuncArgs_1: Record<string, Release>) => boolean) & {
|
|
242
|
+
resultFunc: (resultFuncArgs_0: ReleasesList, resultFuncArgs_1: Record<string, Release>) => number | boolean;
|
|
243
|
+
memoizedResultFunc: ((resultFuncArgs_0: ReleasesList, resultFuncArgs_1: Record<string, Release>) => number | boolean) & {
|
|
97
244
|
clearCache: () => void;
|
|
98
245
|
resultsCount: () => number;
|
|
99
246
|
resetResultsCount: () => void;
|
|
100
247
|
};
|
|
101
|
-
lastResult: () => boolean;
|
|
248
|
+
lastResult: () => number | boolean;
|
|
102
249
|
dependencies: [(state: RootState) => ReleasesList, (state: RootState) => Record<string, Release>];
|
|
103
250
|
recomputations: () => number;
|
|
104
251
|
resetRecomputations: () => void;
|
|
@@ -346,6 +493,95 @@ declare const getSelectedJob: ((state: {
|
|
|
346
493
|
memoize: typeof _$reselect.weakMapMemoize;
|
|
347
494
|
argsMemoize: typeof _$reselect.weakMapMemoize;
|
|
348
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
|
+
};
|
|
349
585
|
declare const getManifestsById: (state: RootState) => Record<string, Manifest>;
|
|
350
586
|
declare const getManifestsListState: (state: RootState) => ManifestsList;
|
|
351
587
|
declare const getManifestsList: ((state: {
|
|
@@ -387,18 +623,18 @@ declare const getHasManifests: ((state: {
|
|
|
387
623
|
organization: OrganizationSliceType;
|
|
388
624
|
releases: ReleaseSliceType;
|
|
389
625
|
users: UserSliceType;
|
|
390
|
-
}) => boolean) & {
|
|
626
|
+
}) => number | boolean) & {
|
|
391
627
|
clearCache: () => void;
|
|
392
628
|
resultsCount: () => number;
|
|
393
629
|
resetResultsCount: () => void;
|
|
394
630
|
} & {
|
|
395
|
-
resultFunc: (resultFuncArgs_0: ManifestsList, resultFuncArgs_1: Record<string, Manifest>) => boolean;
|
|
396
|
-
memoizedResultFunc: ((resultFuncArgs_0: ManifestsList, resultFuncArgs_1: Record<string, Manifest>) => boolean) & {
|
|
631
|
+
resultFunc: (resultFuncArgs_0: ManifestsList, resultFuncArgs_1: Record<string, Manifest>) => number | boolean;
|
|
632
|
+
memoizedResultFunc: ((resultFuncArgs_0: ManifestsList, resultFuncArgs_1: Record<string, Manifest>) => number | boolean) & {
|
|
397
633
|
clearCache: () => void;
|
|
398
634
|
resultsCount: () => number;
|
|
399
635
|
resetResultsCount: () => void;
|
|
400
636
|
};
|
|
401
|
-
lastResult: () => boolean;
|
|
637
|
+
lastResult: () => number | boolean;
|
|
402
638
|
dependencies: [(state: RootState) => ManifestsList, (state: RootState) => Record<string, Manifest>];
|
|
403
639
|
recomputations: () => number;
|
|
404
640
|
resetRecomputations: () => void;
|
|
@@ -497,6 +733,68 @@ declare const getSelectedManifests: ((state: {
|
|
|
497
733
|
memoize: typeof _$reselect.weakMapMemoize;
|
|
498
734
|
argsMemoize: typeof _$reselect.weakMapMemoize;
|
|
499
735
|
};
|
|
736
|
+
declare const getSoftwareById: (state: RootState) => Record<string, Software>;
|
|
737
|
+
declare const getSoftwareListState: (state: RootState) => SoftwareList;
|
|
738
|
+
declare const getSoftwareList: ((state: {
|
|
739
|
+
app: AppSliceType;
|
|
740
|
+
devices: DeviceSliceType;
|
|
741
|
+
deployments: DeploymentsSliceType;
|
|
742
|
+
monitor: MonitorSliceType;
|
|
743
|
+
onboarding: OnboardingSliceType;
|
|
744
|
+
organization: OrganizationSliceType;
|
|
745
|
+
releases: ReleaseSliceType;
|
|
746
|
+
users: UserSliceType;
|
|
747
|
+
}) => Software[]) & {
|
|
748
|
+
clearCache: () => void;
|
|
749
|
+
resultsCount: () => number;
|
|
750
|
+
resetResultsCount: () => void;
|
|
751
|
+
} & {
|
|
752
|
+
resultFunc: (resultFuncArgs_0: Record<string, Software>, resultFuncArgs_1: string[], resultFuncArgs_2: {}) => Software[];
|
|
753
|
+
memoizedResultFunc: ((resultFuncArgs_0: Record<string, Software>, resultFuncArgs_1: string[], resultFuncArgs_2: {}) => Software[]) & {
|
|
754
|
+
clearCache: () => void;
|
|
755
|
+
resultsCount: () => number;
|
|
756
|
+
resetResultsCount: () => void;
|
|
757
|
+
};
|
|
758
|
+
lastResult: () => Software[];
|
|
759
|
+
dependencies: [(state: RootState) => Record<string, Software>, (state: RootState) => string[], () => {}];
|
|
760
|
+
recomputations: () => number;
|
|
761
|
+
resetRecomputations: () => void;
|
|
762
|
+
dependencyRecomputations: () => number;
|
|
763
|
+
resetDependencyRecomputations: () => void;
|
|
764
|
+
} & {
|
|
765
|
+
memoize: typeof _$reselect.weakMapMemoize;
|
|
766
|
+
argsMemoize: typeof _$reselect.weakMapMemoize;
|
|
767
|
+
};
|
|
768
|
+
declare const getHasSoftware: ((state: {
|
|
769
|
+
app: AppSliceType;
|
|
770
|
+
devices: DeviceSliceType;
|
|
771
|
+
deployments: DeploymentsSliceType;
|
|
772
|
+
monitor: MonitorSliceType;
|
|
773
|
+
onboarding: OnboardingSliceType;
|
|
774
|
+
organization: OrganizationSliceType;
|
|
775
|
+
releases: ReleaseSliceType;
|
|
776
|
+
users: UserSliceType;
|
|
777
|
+
}) => number | boolean) & {
|
|
778
|
+
clearCache: () => void;
|
|
779
|
+
resultsCount: () => number;
|
|
780
|
+
resetResultsCount: () => void;
|
|
781
|
+
} & {
|
|
782
|
+
resultFunc: (resultFuncArgs_0: SoftwareList, resultFuncArgs_1: Record<string, Software>) => number | boolean;
|
|
783
|
+
memoizedResultFunc: ((resultFuncArgs_0: SoftwareList, resultFuncArgs_1: Record<string, Software>) => number | boolean) & {
|
|
784
|
+
clearCache: () => void;
|
|
785
|
+
resultsCount: () => number;
|
|
786
|
+
resetResultsCount: () => void;
|
|
787
|
+
};
|
|
788
|
+
lastResult: () => number | boolean;
|
|
789
|
+
dependencies: [(state: RootState) => SoftwareList, (state: RootState) => Record<string, Software>];
|
|
790
|
+
recomputations: () => number;
|
|
791
|
+
resetRecomputations: () => void;
|
|
792
|
+
dependencyRecomputations: () => number;
|
|
793
|
+
resetDependencyRecomputations: () => void;
|
|
794
|
+
} & {
|
|
795
|
+
memoize: typeof _$reselect.weakMapMemoize;
|
|
796
|
+
argsMemoize: typeof _$reselect.weakMapMemoize;
|
|
797
|
+
};
|
|
500
798
|
//#endregion
|
|
501
|
-
export { getActiveTab, getDeltaJobById, getDeltaJobsById, getDeltaJobsListState, getHasManifests, getHasReleases, getManifestsById, getManifestsList, getManifestsListState, getReleaseListState, getReleaseTags, getReleaseTagsById, getReleasesById, getReleasesList, getSelectedJob, getSelectedManifest, getSelectedManifests, getSelectedRelease, getSelectedReleases, getUpdateTypes };
|
|
799
|
+
export { getActiveTab, getDeltaJobById, getDeltaJobsById, getDeltaJobsListState, getHasManifests, getHasReleases, getHasSoftware, getManifestTags, getManifestTagsById, getManifestsById, getManifestsList, getManifestsListState, getReleaseListState, getReleaseTags, getReleaseTagsById, getReleasesById, getReleasesList, getSelectedJob, getSelectedManifest, getSelectedManifests, getSelectedRelease, getSelectedReleases, getSoftwareById, getSoftwareList, getSoftwareListState, getSoftwareTags, getSoftwareTagsById, getUpdateTypes };
|
|
502
800
|
//# sourceMappingURL=selectors.d.ts.map
|
|
@@ -1,25 +1,29 @@
|
|
|
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
|
+
}), {});
|
|
4
8
|
const getActiveTab = (state) => state.releases.tab;
|
|
5
9
|
const getSelectedReleaseId = (state) => state.releases.selectedRelease;
|
|
6
10
|
const getReleasesById = (state) => state.releases.byId;
|
|
7
|
-
const
|
|
11
|
+
const getTags = (state) => state.releases.tags;
|
|
8
12
|
const getReleaseListState = (state) => state.releases.releasesList;
|
|
9
13
|
const getListedReleases = (state) => state.releases.releasesList.releaseIds;
|
|
10
14
|
const getUpdateTypes = (state) => state.releases.updateTypes;
|
|
11
15
|
const releaseDefaults = {};
|
|
12
16
|
const getReleaseMappingDefaults = () => releaseDefaults;
|
|
17
|
+
const getSoftwareTags = createSelector([getTags], ({ software }) => software);
|
|
18
|
+
const getSoftwareTagsById = createSelector([getSoftwareTags], transformToId);
|
|
13
19
|
const getReleasesList = createSelector([
|
|
14
20
|
getReleasesById,
|
|
15
21
|
getListedReleases,
|
|
16
22
|
getReleaseMappingDefaults
|
|
17
23
|
], listItemMapper);
|
|
18
|
-
const
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}), {}));
|
|
22
|
-
const getHasReleases = createSelector([getReleaseListState, getReleasesById], ({ searchTotal, total }, byId) => !!(Object.keys(byId).length || total || searchTotal));
|
|
24
|
+
const getReleaseTags = createSelector([getTags], ({ releases }) => releases);
|
|
25
|
+
const getReleaseTagsById = createSelector([getReleaseTags], transformToId);
|
|
26
|
+
const getHasReleases = createSelector([getReleaseListState, getReleasesById], ({ searchTotal, total }, byId) => total || searchTotal || !!Object.keys(byId).length);
|
|
23
27
|
const getSelectedRelease = createSelector([getReleasesById, getSelectedReleaseId], (byId, id) => byId[id || ""] ?? {});
|
|
24
28
|
const getSelectedReleases = createSelector([getReleaseListState, getReleasesList], ({ selection }, releases) => selection.map((index) => releases[index]));
|
|
25
29
|
const getDeltaJobsListState = (state) => state.releases.deltaJobsList;
|
|
@@ -28,6 +32,8 @@ const getDeltaJobById = createSelector([getDeltaJobsById, (_, jobId) => jobId],
|
|
|
28
32
|
const getSelectedJobId = (state) => state.releases.selectedJob;
|
|
29
33
|
const getSelectedJob = createSelector([getDeltaJobsById, getSelectedJobId], (byId, jobId) => byId[jobId || ""]);
|
|
30
34
|
const getSelectedManifestId = (state) => state.releases.selectedManifest;
|
|
35
|
+
const getManifestTags = createSelector([getTags], ({ manifests }) => manifests);
|
|
36
|
+
const getManifestTagsById = createSelector([getManifestTags], transformToId);
|
|
31
37
|
const getManifestsById = (state) => state.releases.manifestsById;
|
|
32
38
|
const getManifestsListState = (state) => state.releases.manifestsList;
|
|
33
39
|
const getListedManifests = (state) => state.releases.manifestsList.manifestIds;
|
|
@@ -38,10 +44,21 @@ const getManifestsList = createSelector([
|
|
|
38
44
|
getListedManifests,
|
|
39
45
|
getManifestMappingDefaults
|
|
40
46
|
], listItemMapper);
|
|
41
|
-
const getHasManifests = createSelector([getManifestsListState, getManifestsById], ({ searchTotal, total }, byId) => !!
|
|
47
|
+
const getHasManifests = createSelector([getManifestsListState, getManifestsById], ({ searchTotal, total }, byId) => total || searchTotal || !!Object.keys(byId).length);
|
|
42
48
|
const getSelectedManifest = createSelector([getManifestsById, getSelectedManifestId], (byId, id) => byId[id || ""] ?? {});
|
|
43
49
|
const getSelectedManifests = createSelector([getManifestsListState, getManifestsList], ({ selection }, manifests) => selection.map((index) => manifests[index]));
|
|
50
|
+
const getSoftwareById = (state) => state.releases.softwareById;
|
|
51
|
+
const getSoftwareListState = (state) => state.releases.softwareList;
|
|
52
|
+
const getListedSoftware = (state) => state.releases.softwareList.softwareIds;
|
|
53
|
+
const softwareDefaults = {};
|
|
54
|
+
const getSoftwareMappingDefaults = () => softwareDefaults;
|
|
55
|
+
const getSoftwareList = createSelector([
|
|
56
|
+
getSoftwareById,
|
|
57
|
+
getListedSoftware,
|
|
58
|
+
getSoftwareMappingDefaults
|
|
59
|
+
], listItemMapper);
|
|
60
|
+
const getHasSoftware = createSelector([getSoftwareListState, getSoftwareById], ({ searchTotal, total }, byId) => total || searchTotal || !!Object.keys(byId).length);
|
|
44
61
|
//#endregion
|
|
45
|
-
export { getActiveTab, getDeltaJobById, getDeltaJobsById, getDeltaJobsListState, getHasManifests, getHasReleases, getManifestsById, getManifestsList, getManifestsListState, getReleaseListState, getReleaseTags, getReleaseTagsById, getReleasesById, getReleasesList, getSelectedJob, getSelectedManifest, getSelectedManifests, getSelectedRelease, getSelectedReleases, getUpdateTypes };
|
|
62
|
+
export { getActiveTab, getDeltaJobById, getDeltaJobsById, getDeltaJobsListState, getHasManifests, getHasReleases, getHasSoftware, getManifestTags, getManifestTagsById, getManifestsById, getManifestsList, getManifestsListState, getReleaseListState, getReleaseTags, getReleaseTagsById, getReleasesById, getReleasesList, getSelectedJob, getSelectedManifest, getSelectedManifests, getSelectedRelease, getSelectedReleases, getSoftwareById, getSoftwareList, getSoftwareListState, getSoftwareTags, getSoftwareTagsById, getUpdateTypes };
|
|
46
63
|
|
|
47
64
|
//# 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 { Manifest, ReleaseV2 } from '@northern.tech/types/MenderTypes';\nimport { createSelector } from '@reduxjs/toolkit';\n\nimport type { RootState } from '../store';\nimport { listItemMapper } from '../utils';\n\nexport const getActiveTab = (state: RootState) => state.releases.tab;\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, Software } 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) => total || searchTotal || !!Object.keys(byId).length\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) => total || searchTotal || !!Object.keys(byId).length\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\nexport const getSoftwareById = (state: RootState) => state.releases.softwareById;\nexport const getSoftwareListState = (state: RootState) => state.releases.softwareList;\nconst getListedSoftware = (state: RootState) => state.releases.softwareList.softwareIds;\nconst softwareDefaults = {};\nconst getSoftwareMappingDefaults = () => softwareDefaults;\nexport const getSoftwareList = createSelector([getSoftwareById, getListedSoftware, getSoftwareMappingDefaults], listItemMapper<Software>);\n\nexport const getHasSoftware = createSelector(\n [getSoftwareListState, getSoftwareById],\n ({ searchTotal, total }, byId) => total || searchTotal || !!Object.keys(byId).length\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,SAAS,eAAe,CAAC,CAAC,OAAO,KAAK,KAAK,CAAC,OAC/E;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,SAAS,eAAe,CAAC,CAAC,OAAO,KAAK,KAAK,CAAC,OAC/E;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;AAED,MAAa,mBAAmB,UAAqB,MAAM,SAAS;AACpE,MAAa,wBAAwB,UAAqB,MAAM,SAAS;AACzE,MAAM,qBAAqB,UAAqB,MAAM,SAAS,aAAa;AAC5E,MAAM,mBAAmB,EAAE;AAC3B,MAAM,mCAAmC;AACzC,MAAa,kBAAkB,eAAe;CAAC;CAAiB;CAAmB;CAA2B,EAAE,eAAyB;AAEzI,MAAa,iBAAiB,eAC5B,CAAC,sBAAsB,gBAAgB,GACtC,EAAE,aAAa,SAAS,SAAS,SAAS,eAAe,CAAC,CAAC,OAAO,KAAK,KAAK,CAAC,OAC/E"}
|