@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
|
@@ -4,6 +4,7 @@ import { PayloadAction } from "@reduxjs/toolkit";
|
|
|
4
4
|
import { AttributeResponse, ConnectionState, Device, DeviceConfiguration, DeviceState, DeviceTierLimits, MonitorConfiguration, Scope, SortCriteria, Status } from "@northern.tech/types/MenderTypes";
|
|
5
5
|
//#region src/devicesSlice/index.d.ts
|
|
6
6
|
declare const sliceName = "devices";
|
|
7
|
+
type DeviceTierLimits$1 = Omit<DeviceTierLimits, 'test'>;
|
|
7
8
|
type DeviceSelectedAttribute = {
|
|
8
9
|
attribute: string;
|
|
9
10
|
scope: string;
|
|
@@ -96,7 +97,7 @@ type DeviceGroups = {
|
|
|
96
97
|
type DeviceSliceType = {
|
|
97
98
|
byId: Record<string, Device$1>;
|
|
98
99
|
byStatus: Record<DeviceAuthState, {
|
|
99
|
-
counts: DeviceTierLimits & {
|
|
100
|
+
counts: DeviceTierLimits$1 & {
|
|
100
101
|
total: number;
|
|
101
102
|
};
|
|
102
103
|
deviceIds: string[];
|
|
@@ -107,9 +108,10 @@ type DeviceSliceType = {
|
|
|
107
108
|
filteringAttributesLimit: number;
|
|
108
109
|
filters: DeviceFilter[];
|
|
109
110
|
groups: DeviceGroups;
|
|
110
|
-
limits: DeviceTierLimits;
|
|
111
|
+
limits: DeviceTierLimits$1;
|
|
111
112
|
reports: DeviceReport[];
|
|
112
113
|
testDeviceCount: number;
|
|
114
|
+
testDeviceLimit: number;
|
|
113
115
|
total: number;
|
|
114
116
|
};
|
|
115
117
|
declare const initialState: DeviceSliceType;
|
|
@@ -141,7 +143,7 @@ declare const devicesSlice: import("@reduxjs/toolkit").Slice<DeviceSliceType, {
|
|
|
141
143
|
total: number;
|
|
142
144
|
}>) => void;
|
|
143
145
|
setDevicesCountByStatus: (state: import("immer").WritableDraft<DeviceSliceType>, action: PayloadAction<{
|
|
144
|
-
countsPerTier: DeviceTierLimits;
|
|
146
|
+
countsPerTier: DeviceTierLimits$1;
|
|
145
147
|
status: DeviceAuthState;
|
|
146
148
|
}>) => void;
|
|
147
149
|
setDeviceLimits: (state: import("immer").WritableDraft<DeviceSliceType>, action: PayloadAction<DeviceTierLimits>) => void;
|
|
@@ -182,7 +184,7 @@ declare const actions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
|
182
184
|
total: number;
|
|
183
185
|
}>) => void;
|
|
184
186
|
setDevicesCountByStatus: (state: import("immer").WritableDraft<DeviceSliceType>, action: PayloadAction<{
|
|
185
|
-
countsPerTier: DeviceTierLimits;
|
|
187
|
+
countsPerTier: DeviceTierLimits$1;
|
|
186
188
|
status: DeviceAuthState;
|
|
187
189
|
}>) => void;
|
|
188
190
|
setDeviceLimits: (state: import("immer").WritableDraft<DeviceSliceType>, action: PayloadAction<DeviceTierLimits>) => void;
|
|
@@ -197,5 +199,5 @@ declare const actions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
|
197
199
|
}, "devices">;
|
|
198
200
|
declare const _default: import("redux").Reducer<DeviceSliceType>;
|
|
199
201
|
//#endregion
|
|
200
|
-
export { DeviceGroups as a, DeviceSliceType as c,
|
|
201
|
-
//# sourceMappingURL=index-
|
|
202
|
+
export { DeviceGroups as a, DeviceSliceType as c, _default as d, actions as f, sliceName as h, DeviceGroup as i, DeviceTierLimits$1 as l, initialState as m, DeviceComponents as n, DeviceListState as o, devicesSlice as p, DeviceFilter as r, DeviceSelectedAttribute as s, Device$1 as t, InventoryAttributes as u };
|
|
203
|
+
//# sourceMappingURL=index-BpamudGf.d.ts.map
|
|
@@ -4,6 +4,7 @@ import { AttributeResponse, ConnectionState, Device, DeviceConfiguration, Device
|
|
|
4
4
|
import { PayloadAction } from "@reduxjs/toolkit";
|
|
5
5
|
//#region src/devicesSlice/index.d.ts
|
|
6
6
|
declare const sliceName = "devices";
|
|
7
|
+
type DeviceTierLimits$1 = Omit<DeviceTierLimits, 'test'>;
|
|
7
8
|
type DeviceSelectedAttribute = {
|
|
8
9
|
attribute: string;
|
|
9
10
|
scope: string;
|
|
@@ -96,7 +97,7 @@ type DeviceGroups = {
|
|
|
96
97
|
type DeviceSliceType = {
|
|
97
98
|
byId: Record<string, Device$1>;
|
|
98
99
|
byStatus: Record<DeviceAuthState, {
|
|
99
|
-
counts: DeviceTierLimits & {
|
|
100
|
+
counts: DeviceTierLimits$1 & {
|
|
100
101
|
total: number;
|
|
101
102
|
};
|
|
102
103
|
deviceIds: string[];
|
|
@@ -107,9 +108,10 @@ type DeviceSliceType = {
|
|
|
107
108
|
filteringAttributesLimit: number;
|
|
108
109
|
filters: DeviceFilter[];
|
|
109
110
|
groups: DeviceGroups;
|
|
110
|
-
limits: DeviceTierLimits;
|
|
111
|
+
limits: DeviceTierLimits$1;
|
|
111
112
|
reports: DeviceReport[];
|
|
112
113
|
testDeviceCount: number;
|
|
114
|
+
testDeviceLimit: number;
|
|
113
115
|
total: number;
|
|
114
116
|
};
|
|
115
117
|
declare const initialState: DeviceSliceType;
|
|
@@ -141,7 +143,7 @@ declare const devicesSlice: import("@reduxjs/toolkit").Slice<DeviceSliceType, {
|
|
|
141
143
|
total: number;
|
|
142
144
|
}>) => void;
|
|
143
145
|
setDevicesCountByStatus: (state: import("immer").WritableDraft<DeviceSliceType>, action: PayloadAction<{
|
|
144
|
-
countsPerTier: DeviceTierLimits;
|
|
146
|
+
countsPerTier: DeviceTierLimits$1;
|
|
145
147
|
status: DeviceAuthState;
|
|
146
148
|
}>) => void;
|
|
147
149
|
setDeviceLimits: (state: import("immer").WritableDraft<DeviceSliceType>, action: PayloadAction<DeviceTierLimits>) => void;
|
|
@@ -182,7 +184,7 @@ declare const actions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
|
182
184
|
total: number;
|
|
183
185
|
}>) => void;
|
|
184
186
|
setDevicesCountByStatus: (state: import("immer").WritableDraft<DeviceSliceType>, action: PayloadAction<{
|
|
185
|
-
countsPerTier: DeviceTierLimits;
|
|
187
|
+
countsPerTier: DeviceTierLimits$1;
|
|
186
188
|
status: DeviceAuthState;
|
|
187
189
|
}>) => void;
|
|
188
190
|
setDeviceLimits: (state: import("immer").WritableDraft<DeviceSliceType>, action: PayloadAction<DeviceTierLimits>) => void;
|
|
@@ -197,5 +199,5 @@ declare const actions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
|
197
199
|
}, "devices">;
|
|
198
200
|
declare const _default: import("redux").Reducer<DeviceSliceType>;
|
|
199
201
|
//#endregion
|
|
200
|
-
export { DeviceGroups as a, DeviceSliceType as c,
|
|
201
|
-
//# sourceMappingURL=index-
|
|
202
|
+
export { DeviceGroups as a, DeviceSliceType as c, _default as d, actions as f, sliceName as h, DeviceGroup as i, DeviceTierLimits$1 as l, initialState as m, DeviceComponents as n, DeviceListState as o, devicesSlice as p, DeviceFilter as r, DeviceSelectedAttribute as s, Device$1 as t, InventoryAttributes as u };
|
|
203
|
+
//# sourceMappingURL=index-DnKVKM0G.d.cts.map
|
package/dist/locationutils.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { T as SortOptions, g as PaginationOptions } from "./constants-Rl3FJzFf.cjs";
|
|
2
2
|
import { t as AUDIT_LOGS_TYPES } from "./constants-OZiiFKiA.cjs";
|
|
3
|
-
import { r as DeviceFilter } from "./index-
|
|
3
|
+
import { r as DeviceFilter } from "./index-DnKVKM0G.cjs";
|
|
4
4
|
//#region src/locationutils.d.ts
|
|
5
5
|
type PageState = Partial<PaginationOptions> & {
|
|
6
6
|
[key: string]: unknown;
|
package/dist/locationutils.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { T as SortOptions, g as PaginationOptions } from "./constants-B_H4squx.js";
|
|
2
2
|
import { t as AUDIT_LOGS_TYPES } from "./constants-OZiiFKiA.js";
|
|
3
|
-
import { r as DeviceFilter } from "./index-
|
|
3
|
+
import { r as DeviceFilter } from "./index-BpamudGf.js";
|
|
4
4
|
//#region src/locationutils.d.ts
|
|
5
5
|
type PageState = Partial<PaginationOptions> & {
|
|
6
6
|
[key: string]: unknown;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { m as DeviceIssueOptionKey, ut as AlertChannelKey } from "../constants-Rl3FJzFf.cjs";
|
|
2
|
-
import { r as DeviceFilter, t as Device } from "../index-
|
|
2
|
+
import { r as DeviceFilter, t as Device } from "../index-DnKVKM0G.cjs";
|
|
3
3
|
import { i as SnackbarContent } from "../index-DeOpb2oK.cjs";
|
|
4
|
-
import { r as RootState, t as AppDispatch } from "../store-
|
|
4
|
+
import { r as RootState, t as AppDispatch } from "../store-DquBGT7j.cjs";
|
|
5
5
|
//#region src/monitorSlice/thunks.d.ts
|
|
6
6
|
interface GetDeviceAlertsPayload {
|
|
7
7
|
config?: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { m as DeviceIssueOptionKey, ut as AlertChannelKey } from "../constants-B_H4squx.js";
|
|
2
|
-
import { r as DeviceFilter, t as Device } from "../index-
|
|
2
|
+
import { r as DeviceFilter, t as Device } from "../index-BpamudGf.js";
|
|
3
3
|
import { i as SnackbarContent } from "../index-Bs0c1-WY.js";
|
|
4
|
-
import { r as RootState, t as AppDispatch } from "../store-
|
|
4
|
+
import { r as RootState, t as AppDispatch } from "../store-B2_hrsgP.js";
|
|
5
5
|
//#region src/monitorSlice/thunks.d.ts
|
|
6
6
|
interface GetDeviceAlertsPayload {
|
|
7
7
|
config?: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as OnboardingSliceType } from "../index-CoObjWL4.cjs";
|
|
2
|
-
import { r as RootState } from "../store-
|
|
2
|
+
import { r as RootState } from "../store-DquBGT7j.cjs";
|
|
3
3
|
//#region src/onboardingSlice/selectors.d.ts
|
|
4
4
|
declare const getOnboarding: (state: RootState) => OnboardingSliceType;
|
|
5
5
|
//#endregion
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as OnboardingSliceType } from "../index-CoObjWL4.js";
|
|
2
|
-
import { r as RootState } from "../store-
|
|
2
|
+
import { r as RootState } from "../store-B2_hrsgP.js";
|
|
3
3
|
//#region src/onboardingSlice/selectors.d.ts
|
|
4
4
|
declare const getOnboarding: (state: RootState) => OnboardingSliceType;
|
|
5
5
|
//#endregion
|
|
@@ -2,7 +2,7 @@ import "../constants-Rl3FJzFf.cjs";
|
|
|
2
2
|
import { t as OnboardingStep } from "../constants-Db_RBdlV.cjs";
|
|
3
3
|
import { a as UserSettings } from "../index-BgF6rhXn.cjs";
|
|
4
4
|
import { n as OnboardingSliceType, t as OnboardingApproach } from "../index-CoObjWL4.cjs";
|
|
5
|
-
import { r as RootState, t as AppDispatch } from "../store-
|
|
5
|
+
import { r as RootState, t as AppDispatch } from "../store-DquBGT7j.cjs";
|
|
6
6
|
//#region src/onboardingSlice/thunks.d.ts
|
|
7
7
|
declare const getOnboardingState: import("@reduxjs/toolkit").AsyncThunk<[{
|
|
8
8
|
payload: boolean;
|
|
@@ -2,7 +2,7 @@ import "../constants-B_H4squx.js";
|
|
|
2
2
|
import { t as OnboardingStep } from "../constants-Db_RBdlV.js";
|
|
3
3
|
import { a as UserSettings } from "../index-CpfhQHfg.js";
|
|
4
4
|
import { n as OnboardingSliceType, t as OnboardingApproach } from "../index-CoObjWL4.js";
|
|
5
|
-
import { r as RootState, t as AppDispatch } from "../store-
|
|
5
|
+
import { r as RootState, t as AppDispatch } from "../store-B2_hrsgP.js";
|
|
6
6
|
//#region src/onboardingSlice/thunks.d.ts
|
|
7
7
|
declare const getOnboardingState: import("@reduxjs/toolkit").AsyncThunk<[{
|
|
8
8
|
payload: boolean;
|
|
@@ -3,11 +3,11 @@ import { i as ReleaseSliceType } from "../index-DiAjzARZ.cjs";
|
|
|
3
3
|
import { d as TenantList, i as Organization, l as SSOConfig, n as AuditLogSelectionState, o as ProductConfig, r as Card, u as Tenant } from "../types-B80ckxiy.cjs";
|
|
4
4
|
import { n as OnboardingSliceType } from "../index-CoObjWL4.cjs";
|
|
5
5
|
import { o as DeploymentsSliceType } from "../index-mvxjivTJ.cjs";
|
|
6
|
-
import { c as DeviceSliceType } from "../index-
|
|
6
|
+
import { c as DeviceSliceType } from "../index-DnKVKM0G.cjs";
|
|
7
7
|
import { t as AppSliceType } from "../index-DeOpb2oK.cjs";
|
|
8
8
|
import { t as MonitorSliceType } from "../index-Ctj2r57a.cjs";
|
|
9
9
|
import { t as OrganizationSliceType } from "../index-C_LGDJN2.cjs";
|
|
10
|
-
import { r as RootState } from "../store-
|
|
10
|
+
import { r as RootState } from "../store-DquBGT7j.cjs";
|
|
11
11
|
//#region src/organizationSlice/selectors.d.ts
|
|
12
12
|
declare const getOrganization: (state: RootState) => Partial<Organization>;
|
|
13
13
|
declare const getProducts: (state: RootState) => ProductConfig | undefined;
|
|
@@ -3,11 +3,11 @@ import { i as ReleaseSliceType } from "../index-C8uiyxnb.js";
|
|
|
3
3
|
import { d as TenantList, i as Organization, l as SSOConfig, n as AuditLogSelectionState, o as ProductConfig, r as Card, u as Tenant } from "../types-B3qGQoMx.js";
|
|
4
4
|
import { n as OnboardingSliceType } from "../index-CoObjWL4.js";
|
|
5
5
|
import { o as DeploymentsSliceType } from "../index-B8td4-rY.js";
|
|
6
|
-
import { c as DeviceSliceType } from "../index-
|
|
6
|
+
import { c as DeviceSliceType } from "../index-BpamudGf.js";
|
|
7
7
|
import { t as AppSliceType } from "../index-Bs0c1-WY.js";
|
|
8
8
|
import { t as MonitorSliceType } from "../index-BAGyeC-q.js";
|
|
9
9
|
import { t as OrganizationSliceType } from "../index-ChKTa1aL.js";
|
|
10
|
-
import { r as RootState } from "../store-
|
|
10
|
+
import { r as RootState } from "../store-B2_hrsgP.js";
|
|
11
11
|
//#region src/organizationSlice/selectors.d.ts
|
|
12
12
|
declare const getOrganization: (state: RootState) => Partial<Organization>;
|
|
13
13
|
declare const getProducts: (state: RootState) => ProductConfig | undefined;
|
|
@@ -3,7 +3,7 @@ import { T as SortOptions, g as PaginationOptions } from "../constants-Rl3FJzFf.
|
|
|
3
3
|
import { n as ContentType } from "../constants-OZiiFKiA.cjs";
|
|
4
4
|
import { d as TenantList, l as SSOConfig, n as AuditLogSelectionState, o as ProductConfig, r as Card } from "../types-B80ckxiy.cjs";
|
|
5
5
|
import { i as SnackbarContent } from "../index-DeOpb2oK.cjs";
|
|
6
|
-
import { r as RootState, t as AppDispatch } from "../store-
|
|
6
|
+
import { r as RootState, t as AppDispatch } from "../store-DquBGT7j.cjs";
|
|
7
7
|
import { BillingProfile, Integration, NewTenantTypeManagement, PreviewRequest, Product, ProductInfo, Subscription, SupportRequest, UpdateChildTenant } from "@northern.tech/types/MenderTypes";
|
|
8
8
|
//#region src/organizationSlice/thunks.d.ts
|
|
9
9
|
declare const cancelRequest: import("@reduxjs/toolkit").AsyncThunk<{
|
|
@@ -3,7 +3,7 @@ import { T as SortOptions, g as PaginationOptions } from "../constants-B_H4squx.
|
|
|
3
3
|
import { n as ContentType } from "../constants-OZiiFKiA.js";
|
|
4
4
|
import { d as TenantList, l as SSOConfig, n as AuditLogSelectionState, o as ProductConfig, r as Card } from "../types-B3qGQoMx.js";
|
|
5
5
|
import { i as SnackbarContent } from "../index-Bs0c1-WY.js";
|
|
6
|
-
import { r as RootState, t as AppDispatch } from "../store-
|
|
6
|
+
import { r as RootState, t as AppDispatch } from "../store-B2_hrsgP.js";
|
|
7
7
|
import { BillingProfile, Integration, NewTenantTypeManagement, PreviewRequest, Product, ProductInfo, Subscription, SupportRequest, UpdateChildTenant } from "@northern.tech/types/MenderTypes";
|
|
8
8
|
//#region src/organizationSlice/thunks.d.ts
|
|
9
9
|
declare const cancelRequest: import("@reduxjs/toolkit").AsyncThunk<{
|
|
@@ -2,11 +2,11 @@ import { o as UserSliceType } from "../index-BgF6rhXn.cjs";
|
|
|
2
2
|
import { a as ReleasesList, i as ReleaseSliceType, n as ManifestsList, r as Release, s as SoftwareList } 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 } from "../index-
|
|
5
|
+
import { c as DeviceSliceType } 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
|
import { Manifest, ReleaseV2, Software } from "@northern.tech/types/MenderTypes";
|
|
11
11
|
//#region src/releasesSlice/selectors.d.ts
|
|
12
12
|
declare const getActiveTab: (state: RootState) => "releases" | "delta" | "manifests" | undefined;
|
|
@@ -2,11 +2,11 @@ import { o as UserSliceType } from "../index-CpfhQHfg.js";
|
|
|
2
2
|
import { a as ReleasesList, i as ReleaseSliceType, n as ManifestsList, r as Release, s as SoftwareList } 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 } from "../index-
|
|
5
|
+
import { c as DeviceSliceType } 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
|
import { Manifest, ReleaseV2, Software } from "@northern.tech/types/MenderTypes";
|
|
11
11
|
//#region src/releasesSlice/selectors.d.ts
|
|
12
12
|
declare const getActiveTab: (state: RootState) => "releases" | "delta" | "manifests" | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { T as SortOptions } from "../constants-Rl3FJzFf.cjs";
|
|
2
2
|
import { a as ReleasesList, n as ManifestsList, r as Release, s as SoftwareList } from "../index-DiAjzARZ.cjs";
|
|
3
3
|
import { i as SnackbarContent } from "../index-DeOpb2oK.cjs";
|
|
4
|
-
import { r as RootState, t as AppDispatch } from "../store-
|
|
4
|
+
import { r as RootState, t as AppDispatch } from "../store-DquBGT7j.cjs";
|
|
5
5
|
import { ArtifactUpdateV1, DeltaJobsListItem, Manifest, ManifestUpdate, ReleaseUpdate, Software, Tags } from "@northern.tech/types/MenderTypes";
|
|
6
6
|
//#region src/releasesSlice/thunks.d.ts
|
|
7
7
|
declare const getArtifactInstallCount: import("@reduxjs/toolkit").AsyncThunk<{
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { T as SortOptions } from "../constants-B_H4squx.js";
|
|
2
2
|
import { a as ReleasesList, n as ManifestsList, r as Release, s as SoftwareList } from "../index-C8uiyxnb.js";
|
|
3
3
|
import { i as SnackbarContent } from "../index-Bs0c1-WY.js";
|
|
4
|
-
import { r as RootState, t as AppDispatch } from "../store-
|
|
4
|
+
import { r as RootState, t as AppDispatch } from "../store-B2_hrsgP.js";
|
|
5
5
|
import { ArtifactUpdateV1, DeltaJobsListItem, Manifest, ManifestUpdate, ReleaseUpdate, Software, Tags } from "@northern.tech/types/MenderTypes";
|
|
6
6
|
//#region src/releasesSlice/thunks.d.ts
|
|
7
7
|
declare const getArtifactInstallCount: import("@reduxjs/toolkit").AsyncThunk<{
|
package/dist/selectors.cjs
CHANGED
|
@@ -133,6 +133,7 @@ exports.getTenantCapabilities = require_commonSelectors.getTenantCapabilities;
|
|
|
133
133
|
exports.getTenantListWithLimits = require_organizationSlice_selectors.getTenantListWithLimits;
|
|
134
134
|
exports.getTenantsList = require_organizationSlice_selectors.getTenantsList;
|
|
135
135
|
exports.getTestDeviceCount = require_devicesSlice_selectors.getTestDeviceCount;
|
|
136
|
+
exports.getTestDeviceLimit = require_devicesSlice_selectors.getTestDeviceLimit;
|
|
136
137
|
exports.getTooltipsById = require_usersSlice_selectors.getTooltipsById;
|
|
137
138
|
exports.getTooltipsState = require_usersSlice_selectors.getTooltipsState;
|
|
138
139
|
exports.getTrackerCode = require_appSlice_selectors.getTrackerCode;
|
package/dist/selectors.d.cts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { getAppInitDone, getCommit, getDocsVersion, getFeatures, getFeedbackProbability, getHostAddress, getHostedAnnouncement, getIsFirstLogin, getIsPreview, getIsUploading, getRecaptchaKey, getSearchState, getSearchedDevices, getSentryConfig, getSnackbar, getStripeKey, getTrackerCode, getUploads, getVersionInformation } from "./appSlice/selectors.cjs";
|
|
2
2
|
import { getAuditlogDevice, getAvailableIssueOptionsByType, getDemoDeviceAddress, getDeploymentRelease, getDeviceConfigDeployment, getDeviceReportsForUser, getFilterAttributes, getGroupNames, getIsEnterprise, getMappedDevicesList, getOnboardingState, getRelevantRoles, getSelectedDeploymentData, getShowSecurityAlert, getTenantCapabilities, getUserCapabilities, getUserRoles } from "./commonSelectors.cjs";
|
|
3
3
|
import { DEPLOYMENT_CUTOFF, getDeploymentById, getDeploymentsById, getDeploymentsByStatus, getDeploymentsSelectionState, getMappedDeploymentSelection, getRecentDeployments, getSelectedDeploymentDeviceIds } from "./deploymentsSlice/selectors.cjs";
|
|
4
|
-
import { 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 } from "./devicesSlice/selectors.cjs";
|
|
4
|
+
import { 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 } from "./devicesSlice/selectors.cjs";
|
|
5
5
|
import { getIssueCountsByType } from "./monitorSlice/selectors.cjs";
|
|
6
6
|
import { getOnboarding } from "./onboardingSlice/selectors.cjs";
|
|
7
7
|
import { getAuditLog, getAuditLogEntry, getAuditLogSelectionState, getAuditlogState, getBillingProfile, getCard, getDeviceTwinIntegrations, getDisabledTiers, getExternalIntegrations, getIsServiceProvider, getOrganization, getProducts, getSpLimits, getSsoConfig, getSubscription, getTenantListWithLimits, getTenantsList, getWebhookEventInfo, getWebhookEventTotal, getWebhookEvents, getWebhooks } from "./organizationSlice/selectors.cjs";
|
|
8
8
|
import { 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 } from "./releasesSlice/selectors.cjs";
|
|
9
9
|
import { getCurrentSession, getCurrentUser, getGlobalSettings, getGlobalSettingsInitialized, getHas2FA, getIdAttribute, getIsDarkMode, getOfflineThresholdSettings, getReadAllHelptips, getRolesById, getRolesInitialized, getRolesList, getSecurityAlertDismissedTimestamp, getSelectedDeviceAttribute, getTooltipsById, getTooltipsState, getUserSettings, getUserSettingsInitialized, getUsersById, getUsersList } from "./usersSlice/selectors.cjs";
|
|
10
|
-
export { DEPLOYMENT_CUTOFF, getAcceptedDevices, getActiveTab, getAppInitDone, getAttributesList, getAuditLog, getAuditLogEntry, getAuditLogSelectionState, getAuditlogDevice, getAuditlogState, getAvailableIssueOptionsByType, getBillingProfile, getCard, getCombinedLimit, getCommit, getCurrentSession, getCurrentUser, getDeltaJobById, getDeltaJobsById, getDeltaJobsListState, getDemoDeviceAddress, getDeploymentById, getDeploymentRelease, getDeploymentsById, getDeploymentsByStatus, getDeploymentsSelectionState, getDeviceById, getDeviceConfigDeployment, getDeviceCountsByStatus, getDeviceFilters, getDeviceIdentityAttributes, getDeviceLimitStats, getDeviceLimits, getDeviceListState, getDeviceReports, getDeviceReportsForUser, getDeviceTwinIntegrations, getDeviceTypes, getDevicesById, getDevicesByStatus, getDisabledTiers, getDocsVersion, getEnabledTiers, getExternalIntegrations, getFeatures, getFeedbackProbability, getFilterAttributes, getFilteringAttributes, getGlobalSettings, getGlobalSettingsInitialized, getGroupData, getGroupNames, getGroups, getGroupsById, getGroupsByIdWithoutUngrouped, getHas2FA, getHasManifests, getHasReleases, getHasSoftware, getHostAddress, getHostedAnnouncement, getIdAttribute, getIsDarkMode, getIsEnterprise, getIsFirstLogin, getIsPreview, getIsServiceProvider, getIsUploading, getIssueCountsByType, getLimitMaxed, getListedDevices, getManifestTags, getManifestTagsById, getManifestsById, getManifestsList, getManifestsListState, getMappedDeploymentSelection, getMappedDevicesList, getOfflineThresholdSettings, getOnboarding, getOnboardingState, getOrganization, getProducts, getReadAllHelptips, getRecaptchaKey, getRecentDeployments, getReleaseListState, getReleaseTags, getReleaseTagsById, getReleasesById, getReleasesList, getRelevantRoles, getRolesById, getRolesInitialized, getRolesList, getSearchState, getSearchedDevices, getSecurityAlertDismissedTimestamp, getSelectedDeploymentData, getSelectedDeploymentDeviceIds, getSelectedDeviceAttribute, getSelectedGroup, getSelectedGroupInfo, getSelectedJob, getSelectedManifest, getSelectedManifests, getSelectedRelease, getSelectedReleases, getSentryConfig, getShowSecurityAlert, getSnackbar, getSoftwareById, getSoftwareList, getSoftwareListState, getSoftwareTags, getSoftwareTagsById, getSortedFilteringAttributes, getSpLimits, getSsoConfig, getStripeKey, getSubscription, getTenantCapabilities, getTenantListWithLimits, getTenantsList, getTestDeviceCount, getTooltipsById, getTooltipsState, getTrackerCode, getUpdateTypes, getUploads, getUserCapabilities, getUserRoles, getUserSettings, getUserSettingsInitialized, getUsersById, getUsersList, getVersionInformation, getWebhookEventInfo, getWebhookEventTotal, getWebhookEvents, getWebhooks };
|
|
10
|
+
export { DEPLOYMENT_CUTOFF, getAcceptedDevices, getActiveTab, getAppInitDone, getAttributesList, getAuditLog, getAuditLogEntry, getAuditLogSelectionState, getAuditlogDevice, getAuditlogState, getAvailableIssueOptionsByType, getBillingProfile, getCard, getCombinedLimit, getCommit, getCurrentSession, getCurrentUser, getDeltaJobById, getDeltaJobsById, getDeltaJobsListState, getDemoDeviceAddress, getDeploymentById, getDeploymentRelease, getDeploymentsById, getDeploymentsByStatus, getDeploymentsSelectionState, getDeviceById, getDeviceConfigDeployment, getDeviceCountsByStatus, getDeviceFilters, getDeviceIdentityAttributes, getDeviceLimitStats, getDeviceLimits, getDeviceListState, getDeviceReports, getDeviceReportsForUser, getDeviceTwinIntegrations, getDeviceTypes, getDevicesById, getDevicesByStatus, getDisabledTiers, getDocsVersion, getEnabledTiers, getExternalIntegrations, getFeatures, getFeedbackProbability, getFilterAttributes, getFilteringAttributes, getGlobalSettings, getGlobalSettingsInitialized, getGroupData, getGroupNames, getGroups, getGroupsById, getGroupsByIdWithoutUngrouped, getHas2FA, getHasManifests, getHasReleases, getHasSoftware, getHostAddress, getHostedAnnouncement, getIdAttribute, getIsDarkMode, getIsEnterprise, getIsFirstLogin, getIsPreview, getIsServiceProvider, getIsUploading, getIssueCountsByType, getLimitMaxed, getListedDevices, getManifestTags, getManifestTagsById, getManifestsById, getManifestsList, getManifestsListState, getMappedDeploymentSelection, getMappedDevicesList, getOfflineThresholdSettings, getOnboarding, getOnboardingState, getOrganization, getProducts, getReadAllHelptips, getRecaptchaKey, getRecentDeployments, getReleaseListState, getReleaseTags, getReleaseTagsById, getReleasesById, getReleasesList, getRelevantRoles, getRolesById, getRolesInitialized, getRolesList, getSearchState, getSearchedDevices, getSecurityAlertDismissedTimestamp, getSelectedDeploymentData, getSelectedDeploymentDeviceIds, getSelectedDeviceAttribute, getSelectedGroup, getSelectedGroupInfo, getSelectedJob, getSelectedManifest, getSelectedManifests, getSelectedRelease, getSelectedReleases, getSentryConfig, getShowSecurityAlert, getSnackbar, getSoftwareById, getSoftwareList, getSoftwareListState, getSoftwareTags, getSoftwareTagsById, getSortedFilteringAttributes, getSpLimits, getSsoConfig, getStripeKey, getSubscription, getTenantCapabilities, getTenantListWithLimits, getTenantsList, getTestDeviceCount, getTestDeviceLimit, getTooltipsById, getTooltipsState, getTrackerCode, getUpdateTypes, getUploads, getUserCapabilities, getUserRoles, getUserSettings, getUserSettingsInitialized, getUsersById, getUsersList, getVersionInformation, getWebhookEventInfo, getWebhookEventTotal, getWebhookEvents, getWebhooks };
|
package/dist/selectors.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { getAppInitDone, getCommit, getDocsVersion, getFeatures, getFeedbackProbability, getHostAddress, getHostedAnnouncement, getIsFirstLogin, getIsPreview, getIsUploading, getRecaptchaKey, getSearchState, getSearchedDevices, getSentryConfig, getSnackbar, getStripeKey, getTrackerCode, getUploads, getVersionInformation } from "./appSlice/selectors.js";
|
|
2
2
|
import { getAuditlogDevice, getAvailableIssueOptionsByType, getDemoDeviceAddress, getDeploymentRelease, getDeviceConfigDeployment, getDeviceReportsForUser, getFilterAttributes, getGroupNames, getIsEnterprise, getMappedDevicesList, getOnboardingState, getRelevantRoles, getSelectedDeploymentData, getShowSecurityAlert, getTenantCapabilities, getUserCapabilities, getUserRoles } from "./commonSelectors.js";
|
|
3
3
|
import { DEPLOYMENT_CUTOFF, getDeploymentById, getDeploymentsById, getDeploymentsByStatus, getDeploymentsSelectionState, getMappedDeploymentSelection, getRecentDeployments, getSelectedDeploymentDeviceIds } from "./deploymentsSlice/selectors.js";
|
|
4
|
-
import { 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 } from "./devicesSlice/selectors.js";
|
|
4
|
+
import { 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 } from "./devicesSlice/selectors.js";
|
|
5
5
|
import { getIssueCountsByType } from "./monitorSlice/selectors.js";
|
|
6
6
|
import { getOnboarding } from "./onboardingSlice/selectors.js";
|
|
7
7
|
import { getAuditLog, getAuditLogEntry, getAuditLogSelectionState, getAuditlogState, getBillingProfile, getCard, getDeviceTwinIntegrations, getDisabledTiers, getExternalIntegrations, getIsServiceProvider, getOrganization, getProducts, getSpLimits, getSsoConfig, getSubscription, getTenantListWithLimits, getTenantsList, getWebhookEventInfo, getWebhookEventTotal, getWebhookEvents, getWebhooks } from "./organizationSlice/selectors.js";
|
|
8
8
|
import { 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 } from "./releasesSlice/selectors.js";
|
|
9
9
|
import { getCurrentSession, getCurrentUser, getGlobalSettings, getGlobalSettingsInitialized, getHas2FA, getIdAttribute, getIsDarkMode, getOfflineThresholdSettings, getReadAllHelptips, getRolesById, getRolesInitialized, getRolesList, getSecurityAlertDismissedTimestamp, getSelectedDeviceAttribute, getTooltipsById, getTooltipsState, getUserSettings, getUserSettingsInitialized, getUsersById, getUsersList } from "./usersSlice/selectors.js";
|
|
10
|
-
export { DEPLOYMENT_CUTOFF, getAcceptedDevices, getActiveTab, getAppInitDone, getAttributesList, getAuditLog, getAuditLogEntry, getAuditLogSelectionState, getAuditlogDevice, getAuditlogState, getAvailableIssueOptionsByType, getBillingProfile, getCard, getCombinedLimit, getCommit, getCurrentSession, getCurrentUser, getDeltaJobById, getDeltaJobsById, getDeltaJobsListState, getDemoDeviceAddress, getDeploymentById, getDeploymentRelease, getDeploymentsById, getDeploymentsByStatus, getDeploymentsSelectionState, getDeviceById, getDeviceConfigDeployment, getDeviceCountsByStatus, getDeviceFilters, getDeviceIdentityAttributes, getDeviceLimitStats, getDeviceLimits, getDeviceListState, getDeviceReports, getDeviceReportsForUser, getDeviceTwinIntegrations, getDeviceTypes, getDevicesById, getDevicesByStatus, getDisabledTiers, getDocsVersion, getEnabledTiers, getExternalIntegrations, getFeatures, getFeedbackProbability, getFilterAttributes, getFilteringAttributes, getGlobalSettings, getGlobalSettingsInitialized, getGroupData, getGroupNames, getGroups, getGroupsById, getGroupsByIdWithoutUngrouped, getHas2FA, getHasManifests, getHasReleases, getHasSoftware, getHostAddress, getHostedAnnouncement, getIdAttribute, getIsDarkMode, getIsEnterprise, getIsFirstLogin, getIsPreview, getIsServiceProvider, getIsUploading, getIssueCountsByType, getLimitMaxed, getListedDevices, getManifestTags, getManifestTagsById, getManifestsById, getManifestsList, getManifestsListState, getMappedDeploymentSelection, getMappedDevicesList, getOfflineThresholdSettings, getOnboarding, getOnboardingState, getOrganization, getProducts, getReadAllHelptips, getRecaptchaKey, getRecentDeployments, getReleaseListState, getReleaseTags, getReleaseTagsById, getReleasesById, getReleasesList, getRelevantRoles, getRolesById, getRolesInitialized, getRolesList, getSearchState, getSearchedDevices, getSecurityAlertDismissedTimestamp, getSelectedDeploymentData, getSelectedDeploymentDeviceIds, getSelectedDeviceAttribute, getSelectedGroup, getSelectedGroupInfo, getSelectedJob, getSelectedManifest, getSelectedManifests, getSelectedRelease, getSelectedReleases, getSentryConfig, getShowSecurityAlert, getSnackbar, getSoftwareById, getSoftwareList, getSoftwareListState, getSoftwareTags, getSoftwareTagsById, getSortedFilteringAttributes, getSpLimits, getSsoConfig, getStripeKey, getSubscription, getTenantCapabilities, getTenantListWithLimits, getTenantsList, getTestDeviceCount, getTooltipsById, getTooltipsState, getTrackerCode, getUpdateTypes, getUploads, getUserCapabilities, getUserRoles, getUserSettings, getUserSettingsInitialized, getUsersById, getUsersList, getVersionInformation, getWebhookEventInfo, getWebhookEventTotal, getWebhookEvents, getWebhooks };
|
|
10
|
+
export { DEPLOYMENT_CUTOFF, getAcceptedDevices, getActiveTab, getAppInitDone, getAttributesList, getAuditLog, getAuditLogEntry, getAuditLogSelectionState, getAuditlogDevice, getAuditlogState, getAvailableIssueOptionsByType, getBillingProfile, getCard, getCombinedLimit, getCommit, getCurrentSession, getCurrentUser, getDeltaJobById, getDeltaJobsById, getDeltaJobsListState, getDemoDeviceAddress, getDeploymentById, getDeploymentRelease, getDeploymentsById, getDeploymentsByStatus, getDeploymentsSelectionState, getDeviceById, getDeviceConfigDeployment, getDeviceCountsByStatus, getDeviceFilters, getDeviceIdentityAttributes, getDeviceLimitStats, getDeviceLimits, getDeviceListState, getDeviceReports, getDeviceReportsForUser, getDeviceTwinIntegrations, getDeviceTypes, getDevicesById, getDevicesByStatus, getDisabledTiers, getDocsVersion, getEnabledTiers, getExternalIntegrations, getFeatures, getFeedbackProbability, getFilterAttributes, getFilteringAttributes, getGlobalSettings, getGlobalSettingsInitialized, getGroupData, getGroupNames, getGroups, getGroupsById, getGroupsByIdWithoutUngrouped, getHas2FA, getHasManifests, getHasReleases, getHasSoftware, getHostAddress, getHostedAnnouncement, getIdAttribute, getIsDarkMode, getIsEnterprise, getIsFirstLogin, getIsPreview, getIsServiceProvider, getIsUploading, getIssueCountsByType, getLimitMaxed, getListedDevices, getManifestTags, getManifestTagsById, getManifestsById, getManifestsList, getManifestsListState, getMappedDeploymentSelection, getMappedDevicesList, getOfflineThresholdSettings, getOnboarding, getOnboardingState, getOrganization, getProducts, getReadAllHelptips, getRecaptchaKey, getRecentDeployments, getReleaseListState, getReleaseTags, getReleaseTagsById, getReleasesById, getReleasesList, getRelevantRoles, getRolesById, getRolesInitialized, getRolesList, getSearchState, getSearchedDevices, getSecurityAlertDismissedTimestamp, getSelectedDeploymentData, getSelectedDeploymentDeviceIds, getSelectedDeviceAttribute, getSelectedGroup, getSelectedGroupInfo, getSelectedJob, getSelectedManifest, getSelectedManifests, getSelectedRelease, getSelectedReleases, getSentryConfig, getShowSecurityAlert, getSnackbar, getSoftwareById, getSoftwareList, getSoftwareListState, getSoftwareTags, getSoftwareTagsById, getSortedFilteringAttributes, getSpLimits, getSsoConfig, getStripeKey, getSubscription, getTenantCapabilities, getTenantListWithLimits, getTenantsList, getTestDeviceCount, getTestDeviceLimit, getTooltipsById, getTooltipsState, getTrackerCode, getUpdateTypes, getUploads, getUserCapabilities, getUserRoles, getUserSettings, getUserSettingsInitialized, getUsersById, getUsersList, getVersionInformation, getWebhookEventInfo, getWebhookEventTotal, getWebhookEvents, getWebhooks };
|
package/dist/selectors.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { getAppInitDone, getCommit, getDocsVersion, getFeatures, getFeedbackProbability, getHostAddress, getHostedAnnouncement, getIsFirstLogin, getIsPreview, getIsUploading, getRecaptchaKey, getSearchState, getSearchedDevices, getSentryConfig, getSnackbar, getStripeKey, getTrackerCode, getUploads, getVersionInformation } from "./appSlice/selectors.js";
|
|
2
2
|
import { DEPLOYMENT_CUTOFF, getDeploymentById, getDeploymentsById, getDeploymentsByStatus, getDeploymentsSelectionState, getMappedDeploymentSelection, getRecentDeployments, getSelectedDeploymentDeviceIds } from "./deploymentsSlice/selectors.js";
|
|
3
|
-
import { 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 } from "./devicesSlice/selectors.js";
|
|
3
|
+
import { 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 } from "./devicesSlice/selectors.js";
|
|
4
4
|
import { getIssueCountsByType } from "./monitorSlice/selectors.js";
|
|
5
5
|
import { getOnboarding } from "./onboardingSlice/selectors.js";
|
|
6
6
|
import { getAuditLog, getAuditLogEntry, getAuditLogSelectionState, getAuditlogState, getBillingProfile, getCard, getDeviceTwinIntegrations, getDisabledTiers, getExternalIntegrations, getIsServiceProvider, getOrganization, getProducts, getSpLimits, getSsoConfig, getSubscription, getTenantListWithLimits, getTenantsList, getWebhookEventInfo, getWebhookEventTotal, getWebhookEvents, getWebhooks } from "./organizationSlice/selectors.js";
|
|
7
7
|
import { 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 } from "./releasesSlice/selectors.js";
|
|
8
8
|
import { getCurrentSession, getCurrentUser, getGlobalSettings, getGlobalSettingsInitialized, getHas2FA, getIdAttribute, getIsDarkMode, getOfflineThresholdSettings, getReadAllHelptips, getRolesById, getRolesInitialized, getRolesList, getSecurityAlertDismissedTimestamp, getSelectedDeviceAttribute, getTooltipsById, getTooltipsState, getUserSettings, getUserSettingsInitialized, getUsersById, getUsersList } from "./usersSlice/selectors.js";
|
|
9
9
|
import { getAuditlogDevice, getAvailableIssueOptionsByType, getDemoDeviceAddress, getDeploymentRelease, getDeviceConfigDeployment, getDeviceReportsForUser, getFilterAttributes, getGroupNames, getIsEnterprise, getMappedDevicesList, getOnboardingState, getRelevantRoles, getSelectedDeploymentData, getShowSecurityAlert, getTenantCapabilities, getUserCapabilities, getUserRoles } from "./commonSelectors.js";
|
|
10
|
-
export { DEPLOYMENT_CUTOFF, getAcceptedDevices, getActiveTab, getAppInitDone, getAttributesList, getAuditLog, getAuditLogEntry, getAuditLogSelectionState, getAuditlogDevice, getAuditlogState, getAvailableIssueOptionsByType, getBillingProfile, getCard, getCombinedLimit, getCommit, getCurrentSession, getCurrentUser, getDeltaJobById, getDeltaJobsById, getDeltaJobsListState, getDemoDeviceAddress, getDeploymentById, getDeploymentRelease, getDeploymentsById, getDeploymentsByStatus, getDeploymentsSelectionState, getDeviceById, getDeviceConfigDeployment, getDeviceCountsByStatus, getDeviceFilters, getDeviceIdentityAttributes, getDeviceLimitStats, getDeviceLimits, getDeviceListState, getDeviceReports, getDeviceReportsForUser, getDeviceTwinIntegrations, getDeviceTypes, getDevicesById, getDevicesByStatus, getDisabledTiers, getDocsVersion, getEnabledTiers, getExternalIntegrations, getFeatures, getFeedbackProbability, getFilterAttributes, getFilteringAttributes, getGlobalSettings, getGlobalSettingsInitialized, getGroupData, getGroupNames, getGroups, getGroupsById, getGroupsByIdWithoutUngrouped, getHas2FA, getHasManifests, getHasReleases, getHasSoftware, getHostAddress, getHostedAnnouncement, getIdAttribute, getIsDarkMode, getIsEnterprise, getIsFirstLogin, getIsPreview, getIsServiceProvider, getIsUploading, getIssueCountsByType, getLimitMaxed, getListedDevices, getManifestTags, getManifestTagsById, getManifestsById, getManifestsList, getManifestsListState, getMappedDeploymentSelection, getMappedDevicesList, getOfflineThresholdSettings, getOnboarding, getOnboardingState, getOrganization, getProducts, getReadAllHelptips, getRecaptchaKey, getRecentDeployments, getReleaseListState, getReleaseTags, getReleaseTagsById, getReleasesById, getReleasesList, getRelevantRoles, getRolesById, getRolesInitialized, getRolesList, getSearchState, getSearchedDevices, getSecurityAlertDismissedTimestamp, getSelectedDeploymentData, getSelectedDeploymentDeviceIds, getSelectedDeviceAttribute, getSelectedGroup, getSelectedGroupInfo, getSelectedJob, getSelectedManifest, getSelectedManifests, getSelectedRelease, getSelectedReleases, getSentryConfig, getShowSecurityAlert, getSnackbar, getSoftwareById, getSoftwareList, getSoftwareListState, getSoftwareTags, getSoftwareTagsById, getSortedFilteringAttributes, getSpLimits, getSsoConfig, getStripeKey, getSubscription, getTenantCapabilities, getTenantListWithLimits, getTenantsList, getTestDeviceCount, getTooltipsById, getTooltipsState, getTrackerCode, getUpdateTypes, getUploads, getUserCapabilities, getUserRoles, getUserSettings, getUserSettingsInitialized, getUsersById, getUsersList, getVersionInformation, getWebhookEventInfo, getWebhookEventTotal, getWebhookEvents, getWebhooks };
|
|
10
|
+
export { DEPLOYMENT_CUTOFF, getAcceptedDevices, getActiveTab, getAppInitDone, getAttributesList, getAuditLog, getAuditLogEntry, getAuditLogSelectionState, getAuditlogDevice, getAuditlogState, getAvailableIssueOptionsByType, getBillingProfile, getCard, getCombinedLimit, getCommit, getCurrentSession, getCurrentUser, getDeltaJobById, getDeltaJobsById, getDeltaJobsListState, getDemoDeviceAddress, getDeploymentById, getDeploymentRelease, getDeploymentsById, getDeploymentsByStatus, getDeploymentsSelectionState, getDeviceById, getDeviceConfigDeployment, getDeviceCountsByStatus, getDeviceFilters, getDeviceIdentityAttributes, getDeviceLimitStats, getDeviceLimits, getDeviceListState, getDeviceReports, getDeviceReportsForUser, getDeviceTwinIntegrations, getDeviceTypes, getDevicesById, getDevicesByStatus, getDisabledTiers, getDocsVersion, getEnabledTiers, getExternalIntegrations, getFeatures, getFeedbackProbability, getFilterAttributes, getFilteringAttributes, getGlobalSettings, getGlobalSettingsInitialized, getGroupData, getGroupNames, getGroups, getGroupsById, getGroupsByIdWithoutUngrouped, getHas2FA, getHasManifests, getHasReleases, getHasSoftware, getHostAddress, getHostedAnnouncement, getIdAttribute, getIsDarkMode, getIsEnterprise, getIsFirstLogin, getIsPreview, getIsServiceProvider, getIsUploading, getIssueCountsByType, getLimitMaxed, getListedDevices, getManifestTags, getManifestTagsById, getManifestsById, getManifestsList, getManifestsListState, getMappedDeploymentSelection, getMappedDevicesList, getOfflineThresholdSettings, getOnboarding, getOnboardingState, getOrganization, getProducts, getReadAllHelptips, getRecaptchaKey, getRecentDeployments, getReleaseListState, getReleaseTags, getReleaseTagsById, getReleasesById, getReleasesList, getRelevantRoles, getRolesById, getRolesInitialized, getRolesList, getSearchState, getSearchedDevices, getSecurityAlertDismissedTimestamp, getSelectedDeploymentData, getSelectedDeploymentDeviceIds, getSelectedDeviceAttribute, getSelectedGroup, getSelectedGroupInfo, getSelectedJob, getSelectedManifest, getSelectedManifests, getSelectedRelease, getSelectedReleases, getSentryConfig, getShowSecurityAlert, getSnackbar, getSoftwareById, getSoftwareList, getSoftwareListState, getSoftwareTags, getSoftwareTagsById, getSortedFilteringAttributes, getSpLimits, getSsoConfig, getStripeKey, getSubscription, getTenantCapabilities, getTenantListWithLimits, getTenantsList, getTestDeviceCount, getTestDeviceLimit, getTooltipsById, getTooltipsState, getTrackerCode, getUpdateTypes, getUploads, getUserCapabilities, getUserRoles, getUserSettings, getUserSettingsInitialized, getUsersById, getUsersList, getVersionInformation, getWebhookEventInfo, getWebhookEventTotal, getWebhookEvents, getWebhooks };
|
|
@@ -4,7 +4,7 @@ import { i as ReleaseSliceType } from "./index-C8uiyxnb.js";
|
|
|
4
4
|
import { a as PricePreview } from "./types-B3qGQoMx.js";
|
|
5
5
|
import { n as OnboardingSliceType } from "./index-CoObjWL4.js";
|
|
6
6
|
import { o as DeploymentsSliceType, t as Deployment } from "./index-B8td4-rY.js";
|
|
7
|
-
import { c as DeviceSliceType, i as DeviceGroup,
|
|
7
|
+
import { c as DeviceSliceType, i as DeviceGroup, r as DeviceFilter, u as InventoryAttributes } from "./index-BpamudGf.js";
|
|
8
8
|
import { t as AppSliceType } from "./index-Bs0c1-WY.js";
|
|
9
9
|
import { t as MonitorSliceType } from "./index-BAGyeC-q.js";
|
|
10
10
|
import { t as OrganizationSliceType } from "./index-ChKTa1aL.js";
|
|
@@ -321,4 +321,4 @@ declare const createAppAsyncThunk: import("@reduxjs/toolkit").CreateAsyncThunkFu
|
|
|
321
321
|
};
|
|
322
322
|
//#endregion
|
|
323
323
|
export { mapTermsToFilters as A, getDeploymentState as C, listItemMapper as D, isDarkMode as E, statCollector as F, stringToBoolean as I, stripOrchestratorManifestPrefix as L, mergePermissions as M, parseSubscriptionPreview as N, mapDeviceAttributes as O, progress as P, stripUndefined as R, getAttributeScopeLabel as S, groupDeploymentStats as T, dispatchDelayed as _, commonErrorHandler as a, filtersFilter as b, sessionReducer as c, useAppSelector as d, DeploymentStats as f, convertToBackendSPLimits as g, convertDeviceListStateToFilters as h, commonErrorFallback as i, mapUserRolesToUiPermissions as j, mapFiltersToTerms as k, store as l, FilterTerm as m, MenderEnvironment as n, createAppAsyncThunk as o, ErrorWithResponse as p, RootState as r, getConfiguredStore as s, AppDispatch as t, useAppDispatch as u, ensureVersionString as v, groupDeploymentDevicesStats as w, generateDeploymentGroupDetails as x, extractErrorMessage as y };
|
|
324
|
-
//# sourceMappingURL=store-
|
|
324
|
+
//# sourceMappingURL=store-B2_hrsgP.d.ts.map
|
|
@@ -4,7 +4,7 @@ import { i as ReleaseSliceType } from "./index-DiAjzARZ.cjs";
|
|
|
4
4
|
import { a as PricePreview } from "./types-B80ckxiy.cjs";
|
|
5
5
|
import { n as OnboardingSliceType } from "./index-CoObjWL4.cjs";
|
|
6
6
|
import { o as DeploymentsSliceType, t as Deployment } from "./index-mvxjivTJ.cjs";
|
|
7
|
-
import { c as DeviceSliceType, i as DeviceGroup,
|
|
7
|
+
import { c as DeviceSliceType, i as DeviceGroup, r as DeviceFilter, u as InventoryAttributes } from "./index-DnKVKM0G.cjs";
|
|
8
8
|
import { t as AppSliceType } from "./index-DeOpb2oK.cjs";
|
|
9
9
|
import { t as MonitorSliceType } from "./index-Ctj2r57a.cjs";
|
|
10
10
|
import { t as OrganizationSliceType } from "./index-C_LGDJN2.cjs";
|
|
@@ -321,4 +321,4 @@ declare const createAppAsyncThunk: import("@reduxjs/toolkit").CreateAsyncThunkFu
|
|
|
321
321
|
};
|
|
322
322
|
//#endregion
|
|
323
323
|
export { mapTermsToFilters as A, getDeploymentState as C, listItemMapper as D, isDarkMode as E, statCollector as F, stringToBoolean as I, stripOrchestratorManifestPrefix as L, mergePermissions as M, parseSubscriptionPreview as N, mapDeviceAttributes as O, progress as P, stripUndefined as R, getAttributeScopeLabel as S, groupDeploymentStats as T, dispatchDelayed as _, commonErrorHandler as a, filtersFilter as b, sessionReducer as c, useAppSelector as d, DeploymentStats as f, convertToBackendSPLimits as g, convertDeviceListStateToFilters as h, commonErrorFallback as i, mapUserRolesToUiPermissions as j, mapFiltersToTerms as k, store as l, FilterTerm as m, MenderEnvironment as n, createAppAsyncThunk as o, ErrorWithResponse as p, RootState as r, getConfiguredStore as s, AppDispatch as t, useAppDispatch as u, ensureVersionString as v, groupDeploymentDevicesStats as w, generateDeploymentGroupDetails as x, extractErrorMessage as y };
|
|
324
|
-
//# sourceMappingURL=store-
|
|
324
|
+
//# sourceMappingURL=store-DquBGT7j.d.cts.map
|
package/dist/store.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as commonErrorHandler, c as sessionReducer, d as useAppSelector, i as commonErrorFallback, l as store, n as MenderEnvironment, o as createAppAsyncThunk, p as ErrorWithResponse, r as RootState, s as getConfiguredStore, t as AppDispatch, u as useAppDispatch } from "./store-
|
|
1
|
+
import { a as commonErrorHandler, c as sessionReducer, d as useAppSelector, i as commonErrorFallback, l as store, n as MenderEnvironment, o as createAppAsyncThunk, p as ErrorWithResponse, r as RootState, s as getConfiguredStore, t as AppDispatch, u as useAppDispatch } from "./store-DquBGT7j.cjs";
|
|
2
2
|
export { AppDispatch, type ErrorWithResponse, MenderEnvironment, RootState, commonErrorFallback, commonErrorHandler, createAppAsyncThunk, getConfiguredStore, sessionReducer, store, useAppDispatch, useAppSelector };
|
package/dist/store.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as commonErrorHandler, c as sessionReducer, d as useAppSelector, i as commonErrorFallback, l as store, n as MenderEnvironment, o as createAppAsyncThunk, p as ErrorWithResponse, r as RootState, s as getConfiguredStore, t as AppDispatch, u as useAppDispatch } from "./store-
|
|
1
|
+
import { a as commonErrorHandler, c as sessionReducer, d as useAppSelector, i as commonErrorFallback, l as store, n as MenderEnvironment, o as createAppAsyncThunk, p as ErrorWithResponse, r as RootState, s as getConfiguredStore, t as AppDispatch, u as useAppDispatch } from "./store-B2_hrsgP.js";
|
|
2
2
|
export { AppDispatch, type ErrorWithResponse, MenderEnvironment, RootState, commonErrorFallback, commonErrorHandler, createAppAsyncThunk, getConfiguredStore, sessionReducer, store, useAppDispatch, useAppSelector };
|
package/dist/storehooks.cjs
CHANGED
package/dist/storehooks.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storehooks.cjs","names":["Cookies","durationDayJs","storeActions","locations","createAppAsyncThunk","getOnboardingStateSelector","stringToBoolean","getSessionInfo","getUserOrganization","getFeatures","DEVICE_STATES","getDeviceById","useAppDispatch","useState","useAppSelector","getDevicesByStatusSelector","getUserSettingsSelector","getUserCapabilities","getOfflineThresholdSettings","getGlobalSettingsSelector","getSortedFilteringAttributes","getIsServiceProvider","useRef","useCallback","getUserSettings","getGlobalSettings","getRoles","getDeviceAttributes","getDeploymentsByStatus","DEPLOYMENT_STATES","getDevicesByStatus","getDynamicGroups","getGroups","getIntegrations","getReleases","getAllDeviceCounts","getDeviceLimits","actions","saveUserSettings","timeUnits","TIMEOUTS","saveGlobalSettings","extractErrorMessage","getOnboardingState"],"sources":["../src/storehooks.ts"],"sourcesContent":["// Copyright 2024 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 { useCallback, useEffect, useRef, useState } from 'react';\n\nimport { extractErrorMessage } from '@northern.tech/utils/helpers';\nimport dayjs from 'dayjs';\nimport durationDayJs from 'dayjs/plugin/duration.js';\nimport Cookies from 'universal-cookie';\n\nimport storeActions from './actions';\nimport actions from './actions';\nimport { getSessionInfo } from './auth';\nimport { DEPLOYMENT_STATES, DEVICE_STATES, TIMEOUTS, locations, timeUnits } from './constants';\nimport type { DeviceSliceType } from './devicesSlice';\nimport {\n getDevicesByStatus as getDevicesByStatusSelector,\n getFeatures,\n getGlobalSettings as getGlobalSettingsSelector,\n getIsServiceProvider,\n getOfflineThresholdSettings,\n getOnboardingState as getOnboardingStateSelector,\n getSortedFilteringAttributes,\n getUserCapabilities,\n getUserSettings as getUserSettingsSelector\n} from './selectors';\nimport { createAppAsyncThunk, useAppDispatch, useAppSelector } from './store';\nimport type { AppDispatch } from './store';\nimport {\n getAllDeviceCounts,\n getDeploymentsByStatus,\n getDeviceAttributes,\n getDeviceById,\n getDeviceLimits,\n getDevicesByStatus,\n getDynamicGroups,\n getGlobalSettings,\n getGroups,\n getIntegrations,\n getOnboardingState,\n getReleases,\n getRoles,\n getUserOrganization,\n getUserSettings,\n saveGlobalSettings,\n saveUserSettings\n} from './thunks';\nimport type { UserSettings, UserSliceType } from './usersSlice';\nimport { stringToBoolean } from './utils';\n\nconst cookies = new Cookies();\ndayjs.extend(durationDayJs);\n\nconst { setDeviceListState, setFirstLoginAfterSignup, setTooltipsState, setShowStartupNotification } = storeActions;\n\n// a host is hosted when it is one of the known hosted domains or a subdomain of one (e.g. staging.hosted.mender.io),\n// except for per-PR preview deployments whose leading label looks like <component>-pr-<number> (e.g. os-pr-2012.staging.hosted.mender.io)\nconst hostedDomains = Object.values(locations).map(({ location }) => location);\nconst isPreviewDeployment = (hostname: string) => /^[^.]+-pr-\\d+\\./.test(hostname);\nconst isHostedHostname = (hostname: string) =>\n !isPreviewDeployment(hostname) && hostedDomains.some(domain => hostname === domain || hostname.endsWith(`.${domain}`));\n\nconst featureFlags = [\n 'hasAiEnabled',\n 'hasAuditlogs',\n 'hasMultitenancy',\n 'hasDeltaProgress',\n 'hasDeviceConfig',\n 'hasDeviceConnect',\n 'hasDeviceFlags',\n 'hasFeedbackEnabled',\n 'hasManifestsEnabled',\n 'hasMonitor',\n 'hasMCUEnabled',\n 'isEnterprise'\n] as const;\n\nconst environmentDatas = [\n 'commit',\n 'feedbackProbability',\n 'hostAddress',\n 'hostedAnnouncement',\n 'recaptchaSiteKey',\n 'sentry',\n 'stripeAPIKey',\n 'trackerCode'\n] as const;\n\ntype VersionInfo = {\n docsVersion?: string;\n version?: string;\n};\n\ntype FeatureFlagsState = Record<string, boolean>;\n\nexport const parseEnvironmentInfo = createAppAsyncThunk(`app/parseEnvironmentInfo`, (_, { dispatch, getState }) => {\n const state = getState();\n let onboardingComplete = getOnboardingStateSelector(state).complete || !!JSON.parse(window.localStorage.getItem('onboardingComplete') ?? 'false');\n let demoArtifactPort = 85;\n let environmentData: Record<string, unknown> = {};\n let environmentFeatures: FeatureFlagsState = {};\n let versionInfo: VersionInfo = {};\n const mender_environment = window.mender_environment;\n if (mender_environment) {\n const { features = {}, demoArtifactPort: port, disableOnboarding, version } = mender_environment;\n demoArtifactPort = Number(port) || demoArtifactPort;\n const appState = state.app;\n environmentData = environmentDatas.reduce((accu, flag) => ({ ...accu, [flag]: mender_environment[flag] || appState[flag as keyof typeof appState] }), {});\n environmentFeatures = {\n ...featureFlags.reduce<FeatureFlagsState>((accu, flag) => ({ ...accu, [flag]: stringToBoolean(features[flag]) }), {}),\n isHosted: stringToBoolean(features.isHosted) || isHostedHostname(window.location.hostname)\n };\n onboardingComplete = !environmentFeatures.isHosted || stringToBoolean(disableOnboarding) || onboardingComplete;\n versionInfo = {\n docsVersion: isNaN(parseInt(version.charAt(0))) ? '' : version.split('.').slice(0, 2).join('.'),\n version\n };\n }\n return Promise.all([\n dispatch(storeActions.successfullyLoggedIn(getSessionInfo())),\n dispatch(storeActions.setOnboardingComplete(onboardingComplete)),\n dispatch(storeActions.setDemoArtifactPort(demoArtifactPort)),\n dispatch(storeActions.setFeatures(environmentFeatures)),\n dispatch(storeActions.setVersionInformation(versionInfo)),\n dispatch(storeActions.setEnvironmentData(environmentData))\n ]);\n});\n\n// probes the organization endpoint to classify the deployment: reaching it means the deployment is multitenant,\n// which - when not hosted - identifies an on-prem enterprise installation, while an unreachable endpoint identifies\n// a single-tenant OS installation. hosted deployments keep their plan-derived enterprise status (getIsEnterprise).\n// must run after parseEnvironmentInfo so the final isHosted value is available in the store.\nexport const probeOrganizationCapabilities = createAppAsyncThunk(`app/probeOrganizationCapabilities`, (_, { dispatch, getState }) =>\n dispatch(getUserOrganization())\n .unwrap()\n .then(() => {\n if (!getFeatures(getState()).isHosted) {\n dispatch(storeActions.setFeatures({ hasMultitenancy: true, isEnterprise: true }));\n }\n })\n .catch(() => {\n if (!getFeatures(getState()).isHosted) {\n dispatch(storeActions.setFeatures({ hasMultitenancy: false, isEnterprise: false }));\n }\n })\n);\n\ntype OnboardingState = {\n complete?: boolean;\n showTips?: boolean | null;\n};\n\ntype MaybeAddOnboardingTasksParams = {\n devicesByStatus: DeviceSliceType['byStatus'];\n dispatch: AppDispatch;\n onboardingState: OnboardingState;\n tasks: Promise<unknown>[];\n};\n\nconst maybeAddOnboardingTasks = ({ devicesByStatus, dispatch, onboardingState, tasks }: MaybeAddOnboardingTasksParams): Promise<unknown>[] => {\n if (!onboardingState.showTips || onboardingState.complete) {\n return tasks;\n }\n // try to retrieve full device details for onboarding devices to ensure ips etc. are available\n // we only load the first few/ 20 devices, as it is possible the onboarding is left dangling\n // and a lot of devices are present and we don't want to flood the backend for this\n return devicesByStatus[DEVICE_STATES.accepted].deviceIds.reduce<Promise<unknown>[]>((accu, id) => {\n accu.push(dispatch(getDeviceById(id)));\n return accu;\n }, tasks);\n};\n\nexport const useAppInit = (userId: string | undefined): { coreInitDone: boolean } => {\n const dispatch = useAppDispatch();\n const [coreInitDone, setCoreInitDone] = useState(false);\n const { hasMultitenancy } = useAppSelector(getFeatures);\n const devicesByStatus = useAppSelector(getDevicesByStatusSelector);\n const onboardingState = useAppSelector(getOnboardingStateSelector);\n const { columnSelection = [], trackingConsentGiven: hasTrackingEnabled, tooltips = {} } = useAppSelector(getUserSettingsSelector);\n const { canManageUsers } = useAppSelector(getUserCapabilities);\n const { interval, intervalUnit } = useAppSelector(getOfflineThresholdSettings);\n const { id_attribute } = useAppSelector(getGlobalSettingsSelector);\n const { identityAttributes } = useAppSelector(getSortedFilteringAttributes);\n const isServiceProvider = useAppSelector(getIsServiceProvider);\n const coreInitRunning = useRef(false);\n const fullInitRunning = useRef(false);\n\n const retrieveCoreData = useCallback(\n (): Promise<unknown[]> =>\n Promise.all([\n // parse the environment first so isHosted is set before the organization probe classifies the deployment type\n dispatch(parseEnvironmentInfo())\n .unwrap()\n .then(() => dispatch(probeOrganizationCapabilities()).unwrap()),\n dispatch(getUserSettings()).unwrap(),\n dispatch(getGlobalSettings()).unwrap(),\n Promise.resolve(dispatch(setFirstLoginAfterSignup(stringToBoolean(cookies.get('firstLoginAfterSignup')))))\n ]),\n [dispatch]\n );\n\n const retrieveAppData = useCallback((): Promise<unknown[] | unknown> => {\n if (isServiceProvider) {\n return Promise.resolve(dispatch(getRoles()));\n }\n const tasks: Promise<unknown>[] = [\n dispatch(getDeviceAttributes()),\n dispatch(getDeploymentsByStatus({ status: DEPLOYMENT_STATES.finished, shouldSelect: false })),\n dispatch(getDeploymentsByStatus({ status: DEPLOYMENT_STATES.inprogress })),\n dispatch(getDevicesByStatus({ status: DEVICE_STATES.accepted })),\n dispatch(getDevicesByStatus({ status: DEVICE_STATES.pending })),\n dispatch(getDevicesByStatus({ status: DEVICE_STATES.preauth })),\n dispatch(getDevicesByStatus({ status: DEVICE_STATES.rejected })),\n dispatch(getDynamicGroups()),\n dispatch(getGroups()),\n dispatch(getIntegrations()),\n dispatch(getReleases()),\n dispatch(getAllDeviceCounts()).unwrap()\n ];\n if (hasMultitenancy) {\n tasks.push(dispatch(getDeviceLimits()));\n tasks.push(dispatch(getRoles()));\n } else {\n tasks.push(Promise.resolve(dispatch(actions.setDeviceLimits({ micro: 0, standard: -1, system: 0 }))));\n }\n return Promise.all(tasks);\n }, [dispatch, hasMultitenancy, isServiceProvider]);\n\n const interpretAppData = useCallback((): Promise<unknown[]> => {\n const settings: Partial<UserSettings> = {};\n if (cookies.get('_ga') && typeof hasTrackingEnabled === 'undefined') {\n settings.trackingConsentGiven = true;\n }\n let tasks: Promise<unknown>[] = [\n Promise.resolve(dispatch(setDeviceListState({ selectedAttributes: columnSelection.map(column => ({ attribute: column.key, scope: column.scope })) }))),\n Promise.resolve(dispatch(setTooltipsState(tooltips as UserSliceType['tooltips']['byId']))), // tooltips read state is primarily trusted from the redux store, except on app init - here user settings are the reference\n dispatch(saveUserSettings(settings)).unwrap()\n ];\n // checks if user id is set and if cookie for helptips exists for that user\n tasks = maybeAddOnboardingTasks({ devicesByStatus, dispatch, tasks, onboardingState });\n\n if (canManageUsers && intervalUnit && intervalUnit !== timeUnits.days) {\n const duration = dayjs.duration(interval, intervalUnit as keyof typeof timeUnits);\n const days = duration.asDays();\n if (days < 1) {\n tasks.push(Promise.resolve(setTimeout(() => dispatch(setShowStartupNotification(true)), TIMEOUTS.fiveSeconds)));\n } else {\n const roundedDays = Math.max(1, Math.round(days));\n tasks.push(dispatch(saveGlobalSettings({ offlineThreshold: { interval: roundedDays, intervalUnit: timeUnits.days } })));\n }\n }\n\n // the following is used as a migration and initialization of the stored identity attribute\n // changing the default device attribute to the first non-deviceId attribute, unless a stored\n // id attribute setting exists\n const identityOptions = identityAttributes.filter(attribute => !['id', 'Device ID', 'status'].includes(attribute));\n if (!id_attribute && identityOptions.length) {\n tasks.push(dispatch(saveGlobalSettings({ id_attribute: { attribute: identityOptions[0], scope: 'identity' } })));\n } else if (typeof id_attribute === 'string') {\n // Legacy migration path: id_attribute used to be a plain string\n let attribute: string = id_attribute;\n if (attribute === 'Device ID') {\n attribute = 'id';\n }\n tasks.push(dispatch(saveGlobalSettings({ id_attribute: { attribute, scope: 'identity' } })));\n }\n tasks.push(Promise.resolve(dispatch(storeActions.setAppInitDone())));\n return Promise.all(tasks);\n }, [\n columnSelection,\n dispatch,\n identityAttributes,\n hasTrackingEnabled,\n canManageUsers,\n devicesByStatus,\n id_attribute,\n interval,\n intervalUnit,\n onboardingState,\n tooltips\n ]);\n\n const initializeAppData = useCallback(\n (): Promise<unknown> =>\n retrieveAppData()\n .then(interpretAppData)\n // this is allowed to fail if no user information are available\n .catch(err => console.log(extractErrorMessage(err)))\n .then(() => dispatch(getOnboardingState())),\n [dispatch, retrieveAppData, interpretAppData]\n );\n\n useEffect(() => {\n if (!userId || coreInitRunning.current) {\n return;\n }\n coreInitRunning.current = true;\n retrieveCoreData().then(() => setCoreInitDone(true));\n }, [userId, retrieveCoreData]);\n\n useEffect(() => {\n if (fullInitRunning.current || !coreInitDone) {\n return;\n }\n fullInitRunning.current = true;\n initializeAppData();\n }, [initialize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ASE,eAAAA,mBAAmB,EAAE,cAAc;GAAE,WAAW,gBAAgB;GAAI,OAAO;EAAW,EAAE,CAAC,CAAC,CAAC;OAC1G,IAAI,OAAO,iBAAiB,UAAU;GAE3C,IAAI,YAAoB;GACxB,IAAI,cAAc,aAChB,YAAY;GAEd,MAAM,KAAK,SAASA,eAAAA,mBAAmB,EAAE,cAAc;IAAE;IAAW,OAAO;GAAW,EAAE,CAAC,CAAC,CAAC;EAC7F;EACA,MAAM,KAAK,QAAQ,QAAQ,SAASvC,gBAAa,eAAe,CAAC,CAAC,CAAC;EACnE,OAAO,QAAQ,IAAI,KAAK;CAC1B,GAAG;EACD;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACF,CAAC;CAED,MAAM,qBAAA,GAAoBqB,MAAAA,YAAAA,OAEtB,gBAAgB,CAAC,CACd,KAAK,gBAAgB,CAAC,CAEtB,OAAM,QAAO,QAAQ,KAAA,GAAImB,6BAAAA,oBAAAA,CAAoB,GAAG,CAAC,CAAC,CAAC,CACnD,WAAW,SAASC,eAAAA,mBAAmB,CAAC,CAAC,GAC9C;EAAC;EAAU;EAAiB;CAAgB,CAC9C;CAEA,CAAA,GAAA,MAAA,UAAA,OAAgB;EACd,IAAI,CAAC,UAAU,gBAAgB,SAC7B;EAEF,gBAAgB,UAAU;EAC1B,iBAAiB,CAAC,CAAC,WAAW,gBAAgB,IAAI,CAAC;CACrD,GAAG,CAAC,QAAQ,gBAAgB,CAAC;CAE7B,CAAA,GAAA,MAAA,UAAA,OAAgB;EACd,IAAI,gBAAgB,WAAW,CAAC,cAC9B;EAEF,gBAAgB,UAAU;EAC1B,kBAAkB;CACpB,GAAG,CAAC,mBAAmB,YAAY,CAAC;CAEpC,OAAO,EAAE,aAAa;AACxB"}
|
|
1
|
+
{"version":3,"file":"storehooks.cjs","names":["Cookies","durationDayJs","storeActions","locations","createAppAsyncThunk","getOnboardingStateSelector","stringToBoolean","getSessionInfo","getUserOrganization","getFeatures","DEVICE_STATES","getDeviceById","useAppDispatch","useState","useAppSelector","getDevicesByStatusSelector","getUserSettingsSelector","getUserCapabilities","getOfflineThresholdSettings","getGlobalSettingsSelector","getSortedFilteringAttributes","getIsServiceProvider","useRef","useCallback","getUserSettings","getGlobalSettings","getRoles","getDeviceAttributes","getDeploymentsByStatus","DEPLOYMENT_STATES","getDevicesByStatus","getDynamicGroups","getGroups","getIntegrations","getReleases","getAllDeviceCounts","getDeviceLimits","actions","saveUserSettings","timeUnits","TIMEOUTS","saveGlobalSettings","extractErrorMessage","getOnboardingState"],"sources":["../src/storehooks.ts"],"sourcesContent":["// Copyright 2024 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 { useCallback, useEffect, useRef, useState } from 'react';\n\nimport { extractErrorMessage } from '@northern.tech/utils/helpers';\nimport dayjs from 'dayjs';\nimport durationDayJs from 'dayjs/plugin/duration.js';\nimport Cookies from 'universal-cookie';\n\nimport storeActions from './actions';\nimport actions from './actions';\nimport { getSessionInfo } from './auth';\nimport { DEPLOYMENT_STATES, DEVICE_STATES, TIMEOUTS, locations, timeUnits } from './constants';\nimport type { DeviceSliceType } from './devicesSlice';\nimport {\n getDevicesByStatus as getDevicesByStatusSelector,\n getFeatures,\n getGlobalSettings as getGlobalSettingsSelector,\n getIsServiceProvider,\n getOfflineThresholdSettings,\n getOnboardingState as getOnboardingStateSelector,\n getSortedFilteringAttributes,\n getUserCapabilities,\n getUserSettings as getUserSettingsSelector\n} from './selectors';\nimport { createAppAsyncThunk, useAppDispatch, useAppSelector } from './store';\nimport type { AppDispatch } from './store';\nimport {\n getAllDeviceCounts,\n getDeploymentsByStatus,\n getDeviceAttributes,\n getDeviceById,\n getDeviceLimits,\n getDevicesByStatus,\n getDynamicGroups,\n getGlobalSettings,\n getGroups,\n getIntegrations,\n getOnboardingState,\n getReleases,\n getRoles,\n getUserOrganization,\n getUserSettings,\n saveGlobalSettings,\n saveUserSettings\n} from './thunks';\nimport type { UserSettings, UserSliceType } from './usersSlice';\nimport { stringToBoolean } from './utils';\n\nconst cookies = new Cookies();\ndayjs.extend(durationDayJs);\n\nconst { setDeviceListState, setFirstLoginAfterSignup, setTooltipsState, setShowStartupNotification } = storeActions;\n\n// a host is hosted when it is one of the known hosted domains or a subdomain of one (e.g. staging.hosted.mender.io),\n// except for per-PR preview deployments whose leading label looks like <component>-pr-<number> (e.g. os-pr-2012.staging.hosted.mender.io)\nconst hostedDomains = Object.values(locations).map(({ location }) => location);\nconst isPreviewDeployment = (hostname: string) => /^[^.]+-pr-\\d+\\./.test(hostname);\nconst isHostedHostname = (hostname: string) =>\n !isPreviewDeployment(hostname) && hostedDomains.some(domain => hostname === domain || hostname.endsWith(`.${domain}`));\n\nconst featureFlags = [\n 'hasAiEnabled',\n 'hasAuditlogs',\n 'hasMultitenancy',\n 'hasDeltaProgress',\n 'hasDeviceConfig',\n 'hasDeviceConnect',\n 'hasDeviceFlags',\n 'hasFeedbackEnabled',\n 'hasManifestsEnabled',\n 'hasMonitor',\n 'hasMCUEnabled',\n 'isEnterprise'\n] as const;\n\nconst environmentDatas = [\n 'commit',\n 'feedbackProbability',\n 'hostAddress',\n 'hostedAnnouncement',\n 'recaptchaSiteKey',\n 'sentry',\n 'stripeAPIKey',\n 'trackerCode'\n] as const;\n\ntype VersionInfo = {\n docsVersion?: string;\n version?: string;\n};\n\ntype FeatureFlagsState = Record<string, boolean>;\n\nexport const parseEnvironmentInfo = createAppAsyncThunk(`app/parseEnvironmentInfo`, (_, { dispatch, getState }) => {\n const state = getState();\n let onboardingComplete = getOnboardingStateSelector(state).complete || !!JSON.parse(window.localStorage.getItem('onboardingComplete') ?? 'false');\n let demoArtifactPort = 85;\n let environmentData: Record<string, unknown> = {};\n let environmentFeatures: FeatureFlagsState = {};\n let versionInfo: VersionInfo = {};\n const mender_environment = window.mender_environment;\n if (mender_environment) {\n const { features = {}, demoArtifactPort: port, disableOnboarding, version } = mender_environment;\n demoArtifactPort = Number(port) || demoArtifactPort;\n const appState = state.app;\n environmentData = environmentDatas.reduce((accu, flag) => ({ ...accu, [flag]: mender_environment[flag] || appState[flag as keyof typeof appState] }), {});\n environmentFeatures = {\n ...featureFlags.reduce<FeatureFlagsState>((accu, flag) => ({ ...accu, [flag]: stringToBoolean(features[flag]) }), {}),\n isHosted: stringToBoolean(features.isHosted) || isHostedHostname(window.location.hostname)\n };\n onboardingComplete = !environmentFeatures.isHosted || stringToBoolean(disableOnboarding) || onboardingComplete;\n versionInfo = {\n docsVersion: isNaN(parseInt(version.charAt(0))) ? '' : version.split('.').slice(0, 2).join('.'),\n version\n };\n }\n return Promise.all([\n dispatch(storeActions.successfullyLoggedIn(getSessionInfo())),\n dispatch(storeActions.setOnboardingComplete(onboardingComplete)),\n dispatch(storeActions.setDemoArtifactPort(demoArtifactPort)),\n dispatch(storeActions.setFeatures(environmentFeatures)),\n dispatch(storeActions.setVersionInformation(versionInfo)),\n dispatch(storeActions.setEnvironmentData(environmentData))\n ]);\n});\n\n// probes the organization endpoint to classify the deployment: reaching it means the deployment is multitenant,\n// which - when not hosted - identifies an on-prem enterprise installation, while an unreachable endpoint identifies\n// a single-tenant OS installation. hosted deployments keep their plan-derived enterprise status (getIsEnterprise).\n// must run after parseEnvironmentInfo so the final isHosted value is available in the store.\nexport const probeOrganizationCapabilities = createAppAsyncThunk(`app/probeOrganizationCapabilities`, (_, { dispatch, getState }) =>\n dispatch(getUserOrganization())\n .unwrap()\n .then(() => {\n if (!getFeatures(getState()).isHosted) {\n dispatch(storeActions.setFeatures({ hasMultitenancy: true, isEnterprise: true }));\n }\n })\n .catch(() => {\n if (!getFeatures(getState()).isHosted) {\n dispatch(storeActions.setFeatures({ hasMultitenancy: false, isEnterprise: false }));\n }\n })\n);\n\ntype OnboardingState = {\n complete?: boolean;\n showTips?: boolean | null;\n};\n\ntype MaybeAddOnboardingTasksParams = {\n devicesByStatus: DeviceSliceType['byStatus'];\n dispatch: AppDispatch;\n onboardingState: OnboardingState;\n tasks: Promise<unknown>[];\n};\n\nconst maybeAddOnboardingTasks = ({ devicesByStatus, dispatch, onboardingState, tasks }: MaybeAddOnboardingTasksParams): Promise<unknown>[] => {\n if (!onboardingState.showTips || onboardingState.complete) {\n return tasks;\n }\n // try to retrieve full device details for onboarding devices to ensure ips etc. are available\n // we only load the first few/ 20 devices, as it is possible the onboarding is left dangling\n // and a lot of devices are present and we don't want to flood the backend for this\n return devicesByStatus[DEVICE_STATES.accepted].deviceIds.reduce<Promise<unknown>[]>((accu, id) => {\n accu.push(dispatch(getDeviceById(id)));\n return accu;\n }, tasks);\n};\n\nexport const useAppInit = (userId: string | undefined): { coreInitDone: boolean } => {\n const dispatch = useAppDispatch();\n const [coreInitDone, setCoreInitDone] = useState(false);\n const { hasMultitenancy } = useAppSelector(getFeatures);\n const devicesByStatus = useAppSelector(getDevicesByStatusSelector);\n const onboardingState = useAppSelector(getOnboardingStateSelector);\n const { columnSelection = [], trackingConsentGiven: hasTrackingEnabled, tooltips = {} } = useAppSelector(getUserSettingsSelector);\n const { canManageUsers } = useAppSelector(getUserCapabilities);\n const { interval, intervalUnit } = useAppSelector(getOfflineThresholdSettings);\n const { id_attribute } = useAppSelector(getGlobalSettingsSelector);\n const { identityAttributes } = useAppSelector(getSortedFilteringAttributes);\n const isServiceProvider = useAppSelector(getIsServiceProvider);\n const coreInitRunning = useRef(false);\n const fullInitRunning = useRef(false);\n\n const retrieveCoreData = useCallback(\n (): Promise<unknown[]> =>\n Promise.all([\n // parse the environment first so isHosted is set before the organization probe classifies the deployment type\n dispatch(parseEnvironmentInfo())\n .unwrap()\n .then(() => dispatch(probeOrganizationCapabilities()).unwrap()),\n dispatch(getUserSettings()).unwrap(),\n dispatch(getGlobalSettings()).unwrap(),\n Promise.resolve(dispatch(setFirstLoginAfterSignup(stringToBoolean(cookies.get('firstLoginAfterSignup')))))\n ]),\n [dispatch]\n );\n\n const retrieveAppData = useCallback((): Promise<unknown[] | unknown> => {\n if (isServiceProvider) {\n return Promise.resolve(dispatch(getRoles()));\n }\n const tasks: Promise<unknown>[] = [\n dispatch(getDeviceAttributes()),\n dispatch(getDeploymentsByStatus({ status: DEPLOYMENT_STATES.finished, shouldSelect: false })),\n dispatch(getDeploymentsByStatus({ status: DEPLOYMENT_STATES.inprogress })),\n dispatch(getDevicesByStatus({ status: DEVICE_STATES.accepted })),\n dispatch(getDevicesByStatus({ status: DEVICE_STATES.pending })),\n dispatch(getDevicesByStatus({ status: DEVICE_STATES.preauth })),\n dispatch(getDevicesByStatus({ status: DEVICE_STATES.rejected })),\n dispatch(getDynamicGroups()),\n dispatch(getGroups()),\n dispatch(getIntegrations()),\n dispatch(getReleases()),\n dispatch(getAllDeviceCounts()).unwrap()\n ];\n if (hasMultitenancy) {\n tasks.push(dispatch(getDeviceLimits()));\n tasks.push(dispatch(getRoles()));\n } else {\n // OS users have unlimited standard and test devices\n tasks.push(Promise.resolve(dispatch(actions.setDeviceLimits({ micro: 0, standard: -1, system: 0, test: -1 }))));\n }\n return Promise.all(tasks);\n }, [dispatch, hasMultitenancy, isServiceProvider]);\n\n const interpretAppData = useCallback((): Promise<unknown[]> => {\n const settings: Partial<UserSettings> = {};\n if (cookies.get('_ga') && typeof hasTrackingEnabled === 'undefined') {\n settings.trackingConsentGiven = true;\n }\n let tasks: Promise<unknown>[] = [\n Promise.resolve(dispatch(setDeviceListState({ selectedAttributes: columnSelection.map(column => ({ attribute: column.key, scope: column.scope })) }))),\n Promise.resolve(dispatch(setTooltipsState(tooltips as UserSliceType['tooltips']['byId']))), // tooltips read state is primarily trusted from the redux store, except on app init - here user settings are the reference\n dispatch(saveUserSettings(settings)).unwrap()\n ];\n // checks if user id is set and if cookie for helptips exists for that user\n tasks = maybeAddOnboardingTasks({ devicesByStatus, dispatch, tasks, onboardingState });\n\n if (canManageUsers && intervalUnit && intervalUnit !== timeUnits.days) {\n const duration = dayjs.duration(interval, intervalUnit as keyof typeof timeUnits);\n const days = duration.asDays();\n if (days < 1) {\n tasks.push(Promise.resolve(setTimeout(() => dispatch(setShowStartupNotification(true)), TIMEOUTS.fiveSeconds)));\n } else {\n const roundedDays = Math.max(1, Math.round(days));\n tasks.push(dispatch(saveGlobalSettings({ offlineThreshold: { interval: roundedDays, intervalUnit: timeUnits.days } })));\n }\n }\n\n // the following is used as a migration and initialization of the stored identity attribute\n // changing the default device attribute to the first non-deviceId attribute, unless a stored\n // id attribute setting exists\n const identityOptions = identityAttributes.filter(attribute => !['id', 'Device ID', 'status'].includes(attribute));\n if (!id_attribute && identityOptions.length) {\n tasks.push(dispatch(saveGlobalSettings({ id_attribute: { attribute: identityOptions[0], scope: 'identity' } })));\n } else if (typeof id_attribute === 'string') {\n // Legacy migration path: id_attribute used to be a plain string\n let attribute: string = id_attribute;\n if (attribute === 'Device ID') {\n attribute = 'id';\n }\n tasks.push(dispatch(saveGlobalSettings({ id_attribute: { attribute, scope: 'identity' } })));\n }\n tasks.push(Promise.resolve(dispatch(storeActions.setAppInitDone())));\n return Promise.all(tasks);\n }, [\n columnSelection,\n dispatch,\n identityAttributes,\n hasTrackingEnabled,\n canManageUsers,\n devicesByStatus,\n id_attribute,\n interval,\n intervalUnit,\n onboardingState,\n tooltips\n ]);\n\n const initializeAppData = useCallback(\n (): Promise<unknown> =>\n retrieveAppData()\n .then(interpretAppData)\n // this is allowed to fail if no user information are available\n .catch(err => console.log(extractErrorMessage(err)))\n .then(() => dispatch(getOnboardingState())),\n [dispatch, retrieveAppData, interpretAppData]\n );\n\n useEffect(() => {\n if (!userId || coreInitRunning.current) {\n return;\n }\n coreInitRunning.current = true;\n retrieveCoreData().then(() => setCoreInitDone(true));\n }, [userId, retrieveCoreData]);\n\n useEffect(() => {\n if (fullInitRunning.current || !coreInitDone) {\n return;\n }\n fullInitRunning.current = true;\n initializeAppData();\n }, [initializeAppData, coreInitDone]);\n\n return { coreInitDone };\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AA4DA,MAAM,UAAU,IAAIA,iBAAAA,QAAQ;AAC5B,MAAA,QAAM,OAAOC,yBAAAA,OAAa;AAE1B,MAAM,EAAE,oBAAoB,0BAA0B,kBAAkB,+BAA+BC;AAIvG,MAAM,gBAAgB,OAAO,OAAOC,2BAAAA,SAAS,CAAC,CAAC,KAAK,EAAE,eAAe,QAAQ;AAC7E,MAAM,uBAAuB,aAAqB,kBAAkB,KAAK,QAAQ;AACjF,MAAM,oBAAoB,aACxB,CAAC,oBAAoB,QAAQ,KAAK,cAAc,MAAK,WAAU,aAAa,UAAU,SAAS,SAAS,IAAI,QAAQ,CAAC;AAEvH,MAAM,eAAe;CACnB;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF;AAEA,MAAM,mBAAmB;CACvB;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF;AASA,MAAa,uBAAuBC,cAAAA,oBAAoB,6BAA6B,GAAG,EAAE,UAAU,eAAe;CACjH,MAAM,QAAQ,SAAS;CACvB,IAAI,qBAAqBC,wBAAAA,mBAA2B,KAAK,CAAC,CAAC,YAAY,CAAC,CAAC,KAAK,MAAM,OAAO,aAAa,QAAQ,oBAAoB,KAAK,OAAO;CAChJ,IAAI,mBAAmB;CACvB,IAAI,kBAA2C,CAAC;CAChD,IAAI,sBAAyC,CAAC;CAC9C,IAAI,cAA2B,CAAC;CAChC,MAAM,qBAAqB,OAAO;CAClC,IAAI,oBAAoB;EACtB,MAAM,EAAE,WAAW,CAAC,GAAG,kBAAkB,MAAM,mBAAmB,YAAY;EAC9E,mBAAmB,OAAO,IAAI,KAAK;EACnC,MAAM,WAAW,MAAM;EACvB,kBAAkB,iBAAiB,QAAQ,MAAM,UAAU;GAAE,G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5 +1,5 @@
|
|
|
1
1
|
import { i as UserSession } from "./index-BgF6rhXn.cjs";
|
|
2
|
-
import { r as RootState, t as AppDispatch } from "./store-
|
|
2
|
+
import { r as RootState, t as AppDispatch } from "./store-DquBGT7j.cjs";
|
|
3
3
|
//#region src/storehooks.d.ts
|
|
4
4
|
declare const parseEnvironmentInfo: import("@reduxjs/toolkit").AsyncThunk<[{
|
|
5
5
|
payload: UserSession;
|
package/dist/storehooks.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as UserSession } from "./index-CpfhQHfg.js";
|
|
2
|
-
import { r as RootState, t as AppDispatch } from "./store-
|
|
2
|
+
import { r as RootState, t as AppDispatch } from "./store-B2_hrsgP.js";
|
|
3
3
|
//#region src/storehooks.d.ts
|
|
4
4
|
declare const parseEnvironmentInfo: import("@reduxjs/toolkit").AsyncThunk<[{
|
|
5
5
|
payload: UserSession;
|