@northern.tech/store 0.46.1 → 0.46.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions.d.cts +6 -6
- package/dist/actions.d.ts +6 -6
- package/dist/api/general-api.d.cts +3 -3
- package/dist/api/general-api.d.ts +3 -3
- package/dist/api/general-api.js +1 -1
- package/dist/appSlice/index.d.cts +1 -1
- package/dist/appSlice/index.d.ts +1 -1
- package/dist/appSlice/index.js +1 -1
- package/dist/appSlice/mocks.d.cts +2 -3
- package/dist/appSlice/mocks.d.ts +2 -3
- package/dist/appSlice/selectors.cjs +1 -2
- package/dist/appSlice/selectors.cjs.map +1 -1
- package/dist/appSlice/selectors.d.cts +26 -27
- package/dist/appSlice/selectors.d.ts +26 -27
- package/dist/appSlice/selectors.js +1 -2
- package/dist/appSlice/selectors.js.map +1 -1
- package/dist/appSlice/thunks.d.cts +5 -6
- package/dist/appSlice/thunks.d.ts +5 -6
- package/dist/auth.d.cts +6 -7
- package/dist/auth.d.ts +6 -7
- package/dist/auth.js +1 -1
- package/dist/commonConstants.d.cts +1 -1
- package/dist/commonConstants.d.ts +1 -1
- package/dist/commonConstants.js +1 -1
- package/dist/commonSelectors.d.cts +30 -31
- package/dist/commonSelectors.d.ts +30 -31
- package/dist/commonSelectors.js +1 -1
- package/dist/{constants-B_H4squx.d.ts → constants-BJuY-ODE.d.ts} +3 -3
- package/dist/{constants-Rl3FJzFf.d.cts → constants-C2O55iZu.d.cts} +3 -3
- package/dist/{constants-eWaA3HCq.js → constants-D5hACLhF.js} +3 -3
- package/dist/{constants-eWaA3HCq.js.map → constants-D5hACLhF.js.map} +1 -1
- package/dist/constants.cjs +1 -1
- package/dist/constants.d.cts +2 -2
- package/dist/constants.d.ts +2 -2
- package/dist/constants.js +2 -2
- package/dist/deploymentsSlice/constants.js +1 -1
- package/dist/deploymentsSlice/index.js +1 -1
- package/dist/deploymentsSlice/mocks.d.cts +1 -2
- package/dist/deploymentsSlice/mocks.d.ts +1 -2
- package/dist/deploymentsSlice/selectors.d.cts +15 -16
- package/dist/deploymentsSlice/selectors.d.ts +15 -16
- package/dist/deploymentsSlice/selectors.js +1 -1
- package/dist/deploymentsSlice/thunks.d.cts +20 -21
- package/dist/deploymentsSlice/thunks.d.ts +20 -21
- package/dist/devicesSlice/constants.d.cts +1 -1
- package/dist/devicesSlice/constants.d.ts +1 -1
- package/dist/devicesSlice/constants.js +1 -1
- package/dist/devicesSlice/index.d.cts +1 -1
- package/dist/devicesSlice/index.d.ts +1 -1
- package/dist/devicesSlice/index.js +1 -1
- package/dist/devicesSlice/mocks.d.cts +1 -2
- package/dist/devicesSlice/mocks.d.ts +1 -2
- package/dist/devicesSlice/mocks.js +1 -1
- package/dist/devicesSlice/selectors.cjs +4 -3
- package/dist/devicesSlice/selectors.cjs.map +1 -1
- package/dist/devicesSlice/selectors.d.cts +34 -35
- package/dist/devicesSlice/selectors.d.ts +34 -35
- package/dist/devicesSlice/selectors.js +5 -4
- package/dist/devicesSlice/selectors.js.map +1 -1
- package/dist/devicesSlice/thunks.d.cts +52 -53
- package/dist/devicesSlice/thunks.d.ts +52 -53
- package/dist/{index-DgiMpzq3.d.ts → index--SKVGToc.d.ts} +2 -2
- package/dist/{index-DeOpb2oK.d.cts → index-BKU1G9-x.d.cts} +2 -2
- package/dist/{index-CGT1O9T5.d.ts → index-BMsafOyJ.d.ts} +2 -2
- package/dist/{index-ChKTa1aL.d.ts → index-BVNS-Aut.d.ts} +2 -2
- package/dist/{index-Ctj2r57a.d.cts → index-BfmRpbiJ.d.cts} +2 -2
- package/dist/{index-BAGyeC-q.d.ts → index-CRqnH_go.d.ts} +2 -2
- package/dist/{index-Cf6_W5Y7.d.cts → index-CqhXqGLt.d.cts} +2 -2
- package/dist/{index-BpamudGf.d.ts → index-D9GJhX1I.d.ts} +2 -2
- package/dist/{index-C_LGDJN2.d.cts → index-HjOSTTGF.d.cts} +2 -2
- package/dist/{index-DnKVKM0G.d.cts → index-KxRmyFLr.d.cts} +2 -2
- package/dist/{index-ExguKUh-.d.cts → index-fGVC5s1C.d.cts} +2 -2
- package/dist/{index-Bs0c1-WY.d.ts → index-xxqlerg5.d.ts} +2 -2
- package/dist/liststatehook.d.cts +2 -3
- package/dist/liststatehook.d.ts +2 -3
- package/dist/locationutils.d.cts +29 -30
- package/dist/locationutils.d.ts +29 -30
- package/dist/locationutils.js +1 -1
- package/dist/monitorSlice/constants.d.cts +1 -1
- package/dist/monitorSlice/constants.d.ts +1 -1
- package/dist/monitorSlice/index.d.cts +1 -1
- package/dist/monitorSlice/index.d.ts +1 -1
- package/dist/monitorSlice/index.js +1 -1
- package/dist/monitorSlice/mocks.d.cts +2 -3
- package/dist/monitorSlice/mocks.d.ts +2 -3
- package/dist/monitorSlice/mocks.js +1 -1
- package/dist/monitorSlice/selectors.d.cts +2 -3
- package/dist/monitorSlice/selectors.d.ts +2 -3
- package/dist/monitorSlice/thunks.d.cts +9 -10
- package/dist/monitorSlice/thunks.d.ts +9 -10
- package/dist/monitorSlice/thunks.js +1 -1
- package/dist/onboardingSlice/mocks.d.cts +1 -2
- package/dist/onboardingSlice/mocks.d.ts +1 -2
- package/dist/onboardingSlice/selectors.d.cts +2 -3
- package/dist/onboardingSlice/selectors.d.ts +2 -3
- package/dist/onboardingSlice/thunks.d.cts +9 -10
- package/dist/onboardingSlice/thunks.d.ts +9 -10
- package/dist/organizationSlice/constants.js +1 -1
- package/dist/organizationSlice/index.d.cts +1 -1
- package/dist/organizationSlice/index.d.ts +1 -1
- package/dist/organizationSlice/index.js +1 -1
- package/dist/organizationSlice/mocks.d.cts +3 -4
- package/dist/organizationSlice/mocks.d.ts +3 -4
- package/dist/organizationSlice/mocks.js +1 -1
- package/dist/organizationSlice/selectors.cjs +6 -6
- package/dist/organizationSlice/selectors.cjs.map +1 -1
- package/dist/organizationSlice/selectors.d.cts +33 -34
- package/dist/organizationSlice/selectors.d.ts +33 -34
- package/dist/organizationSlice/selectors.js +7 -7
- package/dist/organizationSlice/selectors.js.map +1 -1
- package/dist/organizationSlice/thunks.d.cts +60 -59
- package/dist/organizationSlice/thunks.d.ts +60 -59
- package/dist/organizationSlice/types.d.cts +1 -1
- package/dist/organizationSlice/types.d.ts +1 -1
- package/dist/releasesSlice/index.d.cts +1 -1
- package/dist/releasesSlice/index.d.ts +1 -1
- package/dist/releasesSlice/index.js +1 -1
- package/dist/releasesSlice/mocks.d.cts +1 -2
- package/dist/releasesSlice/mocks.d.ts +1 -2
- package/dist/releasesSlice/mocks.js +1 -1
- package/dist/releasesSlice/selectors.d.cts +35 -36
- package/dist/releasesSlice/selectors.d.ts +35 -36
- package/dist/releasesSlice/thunks.d.cts +40 -41
- package/dist/releasesSlice/thunks.d.ts +40 -41
- package/dist/releasesSlice/thunks.js +1 -1
- package/dist/selectors.cjs +1 -1
- package/dist/selectors.d.cts +2 -2
- package/dist/selectors.d.ts +2 -2
- package/dist/selectors.js +2 -2
- package/dist/sockethook.d.cts +1 -2
- package/dist/sockethook.d.ts +1 -2
- package/dist/sockethook.js +1 -1
- package/dist/{store-CmvNnqoc.d.ts → store-DLp6ajT8.d.ts} +9 -9
- package/dist/{store-C-W8nPdd.d.cts → store-Dw8Uo_Df.d.cts} +9 -9
- package/dist/store.d.cts +1 -1
- package/dist/store.d.ts +1 -1
- package/dist/store.js +1 -1
- package/dist/storehooks.d.cts +5 -6
- package/dist/storehooks.d.ts +5 -6
- package/dist/storehooks.js +1 -1
- package/dist/thunks.cjs +17 -13
- package/dist/thunks.cjs.map +1 -1
- package/dist/thunks.js +18 -14
- package/dist/thunks.js.map +1 -1
- package/dist/{types-B80ckxiy.d.cts → types-B67YW1jV.d.cts} +2 -2
- package/dist/{types-B3qGQoMx.d.ts → types-DY0J79yF.d.ts} +2 -2
- package/dist/useDeploymentDevice.d.cts +1 -2
- package/dist/useDeploymentDevice.d.ts +1 -2
- package/dist/usersSlice/constants.js +1 -1
- package/dist/usersSlice/index.d.cts +1 -1
- package/dist/usersSlice/index.d.ts +1 -1
- package/dist/usersSlice/index.js +1 -1
- package/dist/usersSlice/mocks.d.cts +2 -3
- package/dist/usersSlice/mocks.d.ts +2 -3
- package/dist/usersSlice/mocks.js +1 -1
- package/dist/usersSlice/selectors.d.cts +27 -28
- package/dist/usersSlice/selectors.d.ts +27 -28
- package/dist/usersSlice/selectors.js +1 -1
- package/dist/usersSlice/thunks.d.cts +82 -83
- package/dist/usersSlice/thunks.d.ts +48 -49
- package/dist/utils.d.cts +1 -1
- package/dist/utils.d.ts +1 -1
- package/dist/utils.js +1 -1
- package/package.json +6 -5
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import "../constants-
|
|
1
|
+
import "../constants-C2O55iZu.cjs";
|
|
2
2
|
import { t as OnboardingStep } from "../constants-Db_RBdlV.cjs";
|
|
3
|
-
import { a as UserSettings } from "../index-
|
|
3
|
+
import { a as UserSettings } from "../index-CqhXqGLt.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-Dw8Uo_Df.cjs";
|
|
6
6
|
//#region src/onboardingSlice/thunks.d.ts
|
|
7
|
-
declare const getOnboardingState: import("@reduxjs/toolkit").AsyncThunk<[{
|
|
7
|
+
export declare const getOnboardingState: import("@reduxjs/toolkit").AsyncThunk<[{
|
|
8
8
|
payload: boolean;
|
|
9
9
|
type: "onboarding/setOnboardingComplete";
|
|
10
10
|
}, {
|
|
@@ -34,7 +34,7 @@ declare const getOnboardingState: import("@reduxjs/toolkit").AsyncThunk<[{
|
|
|
34
34
|
fulfilledMeta?: unknown;
|
|
35
35
|
rejectedMeta?: unknown;
|
|
36
36
|
}>;
|
|
37
|
-
declare const setOnboardingDeviceType: import("@reduxjs/toolkit").AsyncThunk<[{
|
|
37
|
+
export declare const setOnboardingDeviceType: import("@reduxjs/toolkit").AsyncThunk<[{
|
|
38
38
|
payload: string | string[];
|
|
39
39
|
type: "onboarding/setOnboardingDeviceType";
|
|
40
40
|
}, import("@reduxjs/toolkit").PayloadAction<unknown, string, {
|
|
@@ -61,7 +61,7 @@ declare const setOnboardingDeviceType: import("@reduxjs/toolkit").AsyncThunk<[{
|
|
|
61
61
|
fulfilledMeta?: unknown;
|
|
62
62
|
rejectedMeta?: unknown;
|
|
63
63
|
}>;
|
|
64
|
-
declare const setOnboardingApproach: import("@reduxjs/toolkit").AsyncThunk<[{
|
|
64
|
+
export declare const setOnboardingApproach: import("@reduxjs/toolkit").AsyncThunk<[{
|
|
65
65
|
payload: OnboardingApproach;
|
|
66
66
|
type: "onboarding/setOnboardingApproach";
|
|
67
67
|
}, import("@reduxjs/toolkit").PayloadAction<unknown, string, {
|
|
@@ -88,7 +88,7 @@ declare const setOnboardingApproach: import("@reduxjs/toolkit").AsyncThunk<[{
|
|
|
88
88
|
fulfilledMeta?: unknown;
|
|
89
89
|
rejectedMeta?: unknown;
|
|
90
90
|
}>;
|
|
91
|
-
declare const setOnboardingComplete: import("@reduxjs/toolkit").AsyncThunk<unknown[], boolean, {
|
|
91
|
+
export declare const setOnboardingComplete: import("@reduxjs/toolkit").AsyncThunk<unknown[], boolean, {
|
|
92
92
|
dispatch: AppDispatch;
|
|
93
93
|
state: RootState;
|
|
94
94
|
extra?: unknown;
|
|
@@ -98,7 +98,7 @@ declare const setOnboardingComplete: import("@reduxjs/toolkit").AsyncThunk<unkno
|
|
|
98
98
|
fulfilledMeta?: unknown;
|
|
99
99
|
rejectedMeta?: unknown;
|
|
100
100
|
}>;
|
|
101
|
-
declare const setOnboardingCanceled: import("@reduxjs/toolkit").AsyncThunk<void, void, {
|
|
101
|
+
export declare const setOnboardingCanceled: import("@reduxjs/toolkit").AsyncThunk<void, void, {
|
|
102
102
|
dispatch: AppDispatch;
|
|
103
103
|
state: RootState;
|
|
104
104
|
extra?: unknown;
|
|
@@ -108,7 +108,7 @@ declare const setOnboardingCanceled: import("@reduxjs/toolkit").AsyncThunk<void,
|
|
|
108
108
|
fulfilledMeta?: unknown;
|
|
109
109
|
rejectedMeta?: unknown;
|
|
110
110
|
}>;
|
|
111
|
-
declare const advanceOnboarding: import("@reduxjs/toolkit").AsyncThunk<[{
|
|
111
|
+
export declare const advanceOnboarding: import("@reduxjs/toolkit").AsyncThunk<[{
|
|
112
112
|
payload: string;
|
|
113
113
|
type: "onboarding/setOnboardingProgress";
|
|
114
114
|
}, import("@reduxjs/toolkit").PayloadAction<unknown, string, {
|
|
@@ -136,5 +136,4 @@ declare const advanceOnboarding: import("@reduxjs/toolkit").AsyncThunk<[{
|
|
|
136
136
|
rejectedMeta?: unknown;
|
|
137
137
|
}>;
|
|
138
138
|
//#endregion
|
|
139
|
-
export { advanceOnboarding, getOnboardingState, setOnboardingApproach, setOnboardingCanceled, setOnboardingComplete, setOnboardingDeviceType };
|
|
140
139
|
//# sourceMappingURL=thunks.d.cts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import "../constants-
|
|
1
|
+
import "../constants-BJuY-ODE.js";
|
|
2
2
|
import { t as OnboardingStep } from "../constants-Db_RBdlV.js";
|
|
3
|
-
import { a as UserSettings } from "../index
|
|
3
|
+
import { a as UserSettings } from "../index--SKVGToc.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-DLp6ajT8.js";
|
|
6
6
|
//#region src/onboardingSlice/thunks.d.ts
|
|
7
|
-
declare const getOnboardingState: import("@reduxjs/toolkit").AsyncThunk<[{
|
|
7
|
+
export declare const getOnboardingState: import("@reduxjs/toolkit").AsyncThunk<[{
|
|
8
8
|
payload: boolean;
|
|
9
9
|
type: "onboarding/setOnboardingComplete";
|
|
10
10
|
}, {
|
|
@@ -34,7 +34,7 @@ declare const getOnboardingState: import("@reduxjs/toolkit").AsyncThunk<[{
|
|
|
34
34
|
fulfilledMeta?: unknown;
|
|
35
35
|
rejectedMeta?: unknown;
|
|
36
36
|
}>;
|
|
37
|
-
declare const setOnboardingDeviceType: import("@reduxjs/toolkit").AsyncThunk<[{
|
|
37
|
+
export declare const setOnboardingDeviceType: import("@reduxjs/toolkit").AsyncThunk<[{
|
|
38
38
|
payload: string | string[];
|
|
39
39
|
type: "onboarding/setOnboardingDeviceType";
|
|
40
40
|
}, import("@reduxjs/toolkit").PayloadAction<unknown, string, {
|
|
@@ -61,7 +61,7 @@ declare const setOnboardingDeviceType: import("@reduxjs/toolkit").AsyncThunk<[{
|
|
|
61
61
|
fulfilledMeta?: unknown;
|
|
62
62
|
rejectedMeta?: unknown;
|
|
63
63
|
}>;
|
|
64
|
-
declare const setOnboardingApproach: import("@reduxjs/toolkit").AsyncThunk<[{
|
|
64
|
+
export declare const setOnboardingApproach: import("@reduxjs/toolkit").AsyncThunk<[{
|
|
65
65
|
payload: OnboardingApproach;
|
|
66
66
|
type: "onboarding/setOnboardingApproach";
|
|
67
67
|
}, import("@reduxjs/toolkit").PayloadAction<unknown, string, {
|
|
@@ -88,7 +88,7 @@ declare const setOnboardingApproach: import("@reduxjs/toolkit").AsyncThunk<[{
|
|
|
88
88
|
fulfilledMeta?: unknown;
|
|
89
89
|
rejectedMeta?: unknown;
|
|
90
90
|
}>;
|
|
91
|
-
declare const setOnboardingComplete: import("@reduxjs/toolkit").AsyncThunk<unknown[], boolean, {
|
|
91
|
+
export declare const setOnboardingComplete: import("@reduxjs/toolkit").AsyncThunk<unknown[], boolean, {
|
|
92
92
|
dispatch: AppDispatch;
|
|
93
93
|
state: RootState;
|
|
94
94
|
extra?: unknown;
|
|
@@ -98,7 +98,7 @@ declare const setOnboardingComplete: import("@reduxjs/toolkit").AsyncThunk<unkno
|
|
|
98
98
|
fulfilledMeta?: unknown;
|
|
99
99
|
rejectedMeta?: unknown;
|
|
100
100
|
}>;
|
|
101
|
-
declare const setOnboardingCanceled: import("@reduxjs/toolkit").AsyncThunk<void, void, {
|
|
101
|
+
export declare const setOnboardingCanceled: import("@reduxjs/toolkit").AsyncThunk<void, void, {
|
|
102
102
|
dispatch: AppDispatch;
|
|
103
103
|
state: RootState;
|
|
104
104
|
extra?: unknown;
|
|
@@ -108,7 +108,7 @@ declare const setOnboardingCanceled: import("@reduxjs/toolkit").AsyncThunk<void,
|
|
|
108
108
|
fulfilledMeta?: unknown;
|
|
109
109
|
rejectedMeta?: unknown;
|
|
110
110
|
}>;
|
|
111
|
-
declare const advanceOnboarding: import("@reduxjs/toolkit").AsyncThunk<[{
|
|
111
|
+
export declare const advanceOnboarding: import("@reduxjs/toolkit").AsyncThunk<[{
|
|
112
112
|
payload: string;
|
|
113
113
|
type: "onboarding/setOnboardingProgress";
|
|
114
114
|
}, import("@reduxjs/toolkit").PayloadAction<unknown, string, {
|
|
@@ -136,5 +136,4 @@ declare const advanceOnboarding: import("@reduxjs/toolkit").AsyncThunk<[{
|
|
|
136
136
|
rejectedMeta?: unknown;
|
|
137
137
|
}>;
|
|
138
138
|
//#endregion
|
|
139
|
-
export { advanceOnboarding, getOnboardingState, setOnboardingApproach, setOnboardingCanceled, setOnboardingComplete, setOnboardingDeviceType };
|
|
140
139
|
//# sourceMappingURL=thunks.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as AUDIT_LOGS_TYPES, at as auditlogTypes, et as JSON_METADATA_FORMAT, it as XML_METADATA_FORMAT, nt as SSO_TYPES, ot as getOidcStartUrl, rt as TENANT_LIST_DEFAULT, st as getSamlStartUrl, tt as SP_AUDIT_LOGS_TYPES } from "../constants-
|
|
1
|
+
import { $ as AUDIT_LOGS_TYPES, at as auditlogTypes, et as JSON_METADATA_FORMAT, it as XML_METADATA_FORMAT, nt as SSO_TYPES, ot as getOidcStartUrl, rt as TENANT_LIST_DEFAULT, st as getSamlStartUrl, tt as SP_AUDIT_LOGS_TYPES } from "../constants-D5hACLhF.js";
|
|
2
2
|
export { AUDIT_LOGS_TYPES, JSON_METADATA_FORMAT, SP_AUDIT_LOGS_TYPES, SSO_TYPES, TENANT_LIST_DEFAULT, XML_METADATA_FORMAT, auditlogTypes, getOidcStartUrl, getSamlStartUrl };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as organizationSlice, i as initialState, n as _default, o as sliceName, r as actions, t as OrganizationSliceType } from "../index-
|
|
1
|
+
import { a as organizationSlice, i as initialState, n as _default, o as sliceName, r as actions, t as OrganizationSliceType } from "../index-HjOSTTGF.cjs";
|
|
2
2
|
export { OrganizationSliceType, actions, _default as default, initialState, organizationSlice, sliceName };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as organizationSlice, i as initialState, n as _default, o as sliceName, r as actions, t as OrganizationSliceType } from "../index-
|
|
1
|
+
import { a as organizationSlice, i as initialState, n as _default, o as sliceName, r as actions, t as OrganizationSliceType } from "../index-BVNS-Aut.js";
|
|
2
2
|
export { OrganizationSliceType, actions, _default as default, initialState, organizationSlice, sliceName };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { f as SORTING_OPTIONS, l as DEVICE_LIST_DEFAULTS, rt as TENANT_LIST_DEFAULT } from "../constants-
|
|
1
|
+
import { f as SORTING_OPTIONS, l as DEVICE_LIST_DEFAULTS, rt as TENANT_LIST_DEFAULT } from "../constants-D5hACLhF.js";
|
|
2
2
|
import { createSlice } from "@reduxjs/toolkit";
|
|
3
3
|
//#region src/organizationSlice/index.ts
|
|
4
4
|
const sliceName = "organization";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { a as AvailablePlans } from "../constants-nKSWZ8oD.cjs";
|
|
2
|
-
import "../constants-
|
|
3
|
-
import { d as TenantList, f as Webhook, l as SSOConfig } from "../types-
|
|
2
|
+
import "../constants-C2O55iZu.cjs";
|
|
3
|
+
import { d as TenantList, f as Webhook, l as SSOConfig } from "../types-B67YW1jV.cjs";
|
|
4
4
|
//#region src/organizationSlice/mocks.d.ts
|
|
5
5
|
declare const basicPlanId: AvailablePlans;
|
|
6
6
|
declare const professionalPlanId: AvailablePlans;
|
|
7
|
-
declare const mockState: {
|
|
7
|
+
export declare const mockState: {
|
|
8
8
|
card: {
|
|
9
9
|
brand: string;
|
|
10
10
|
last4: string;
|
|
@@ -218,5 +218,4 @@ declare const mockState: {
|
|
|
218
218
|
webhooks: Webhook;
|
|
219
219
|
};
|
|
220
220
|
//#endregion
|
|
221
|
-
export { mockState };
|
|
222
221
|
//# sourceMappingURL=mocks.d.cts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { a as AvailablePlans } from "../constants-nKSWZ8oD.js";
|
|
2
|
-
import "../constants-
|
|
3
|
-
import { d as TenantList, f as Webhook, l as SSOConfig } from "../types-
|
|
2
|
+
import "../constants-BJuY-ODE.js";
|
|
3
|
+
import { d as TenantList, f as Webhook, l as SSOConfig } from "../types-DY0J79yF.js";
|
|
4
4
|
//#region src/organizationSlice/mocks.d.ts
|
|
5
5
|
declare const basicPlanId: AvailablePlans;
|
|
6
6
|
declare const professionalPlanId: AvailablePlans;
|
|
7
|
-
declare const mockState: {
|
|
7
|
+
export declare const mockState: {
|
|
8
8
|
card: {
|
|
9
9
|
brand: string;
|
|
10
10
|
last4: string;
|
|
@@ -218,5 +218,4 @@ declare const mockState: {
|
|
|
218
218
|
webhooks: Webhook;
|
|
219
219
|
};
|
|
220
220
|
//#endregion
|
|
221
|
-
export { mockState };
|
|
222
221
|
//# sourceMappingURL=mocks.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PLANS } from "../appSlice/constants.js";
|
|
2
|
-
import { l as DEVICE_LIST_DEFAULTS } from "../constants-
|
|
2
|
+
import { l as DEVICE_LIST_DEFAULTS } from "../constants-D5hACLhF.js";
|
|
3
3
|
import { initialState } from "./index.js";
|
|
4
4
|
//#region src/organizationSlice/mocks.ts
|
|
5
5
|
const basicPlanId = PLANS.os.id;
|
|
@@ -14,20 +14,20 @@ const getCard = (state) => state.organization.card;
|
|
|
14
14
|
const getSsoConfig = ({ organization: { ssoConfigs = [] } }) => ssoConfigs[0];
|
|
15
15
|
const getTenantsList = (state) => state.organization.tenantList;
|
|
16
16
|
const getWebhookEvents = (state) => state.organization.webhooks.events;
|
|
17
|
-
const
|
|
17
|
+
const getWebhookEventsTotal = (state) => state.organization.webhooks.eventsTotal;
|
|
18
18
|
const getDeviceTwinIntegrations = (0, _reduxjs_toolkit.createSelector)([getExternalIntegrations], (integrations) => integrations.filter((integration) => integration.id && require_constants.EXTERNAL_PROVIDER[integration.provider]?.deviceTwin));
|
|
19
19
|
const getIsServiceProvider = (state) => state.organization.organization.service_provider;
|
|
20
20
|
const getWebhooks = (0, _reduxjs_toolkit.createSelector)([getExternalIntegrations], (integrations) => integrations.filter((integration) => integration.id && integration.provider === require_constants.EXTERNAL_PROVIDER.webhook.provider));
|
|
21
21
|
const getWebhookEventInfo = (0, _reduxjs_toolkit.createSelector)([
|
|
22
22
|
getWebhooks,
|
|
23
23
|
getWebhookEvents,
|
|
24
|
-
|
|
25
|
-
], (webhooks, events,
|
|
24
|
+
getWebhookEventsTotal
|
|
25
|
+
], (webhooks, events, eventsTotal) => webhooks.length ? {
|
|
26
26
|
events,
|
|
27
|
-
|
|
27
|
+
eventsTotal
|
|
28
28
|
} : {
|
|
29
29
|
events: [],
|
|
30
|
-
|
|
30
|
+
eventsTotal: 0
|
|
31
31
|
});
|
|
32
32
|
const getAuditLogEntry = (0, _reduxjs_toolkit.createSelector)([getAuditLog, getAuditLogSelectionState], (events, { selectedId }) => {
|
|
33
33
|
if (!selectedId) return;
|
|
@@ -94,8 +94,8 @@ exports.getSubscription = getSubscription;
|
|
|
94
94
|
exports.getTenantListWithLimits = getTenantListWithLimits;
|
|
95
95
|
exports.getTenantsList = getTenantsList;
|
|
96
96
|
exports.getWebhookEventInfo = getWebhookEventInfo;
|
|
97
|
-
exports.getWebhookEventTotal = getWebhookEventTotal;
|
|
98
97
|
exports.getWebhookEvents = getWebhookEvents;
|
|
98
|
+
exports.getWebhookEventsTotal = getWebhookEventsTotal;
|
|
99
99
|
exports.getWebhooks = getWebhooks;
|
|
100
100
|
|
|
101
101
|
//# sourceMappingURL=selectors.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"selectors.cjs","names":["createSelector","EXTERNAL_PROVIDER","productOrder"],"sources":["../../src/organizationSlice/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 { Tenant } from '@northern.tech/types/MenderTypes';\nimport { createSelector } from '@reduxjs/toolkit';\n\nimport { EXTERNAL_PROVIDER, productOrder } from '../constants';\nimport type { RootState } from '../store';\n\nexport const getOrganization = (state: RootState) => state.organization.organization;\nexport const getProducts = (state: RootState) => state.organization.products;\nexport const getExternalIntegrations = (state: RootState) => state.organization.externalDeviceIntegrations;\nexport const getAuditlogState = (state: RootState) => state.organization.auditlog.selectionState;\nexport const getAuditLog = (state: RootState) => state.organization.auditlog.events;\nexport const getAuditLogSelectionState = (state: RootState) => state.organization.auditlog.selectionState;\nexport const getBillingProfile = (state: RootState) => state.organization.organization.billing_profile;\nexport const getSubscription = (state: RootState) => state.organization.organization.subscription;\nexport const getCard = (state: RootState) => state.organization.card;\nexport const getSsoConfig = ({ organization: { ssoConfigs = [] } }: RootState) => ssoConfigs[0];\nexport const getTenantsList = (state: RootState) => state.organization.tenantList;\nexport const getWebhookEvents = (state: RootState) => state.organization.webhooks.events;\nexport const
|
|
1
|
+
{"version":3,"file":"selectors.cjs","names":["createSelector","EXTERNAL_PROVIDER","productOrder"],"sources":["../../src/organizationSlice/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 { Tenant } from '@northern.tech/types/MenderTypes';\nimport { createSelector } from '@reduxjs/toolkit';\n\nimport { EXTERNAL_PROVIDER, productOrder } from '../constants';\nimport type { RootState } from '../store';\n\nexport const getOrganization = (state: RootState) => state.organization.organization;\nexport const getProducts = (state: RootState) => state.organization.products;\nexport const getExternalIntegrations = (state: RootState) => state.organization.externalDeviceIntegrations;\nexport const getAuditlogState = (state: RootState) => state.organization.auditlog.selectionState;\nexport const getAuditLog = (state: RootState) => state.organization.auditlog.events;\nexport const getAuditLogSelectionState = (state: RootState) => state.organization.auditlog.selectionState;\nexport const getBillingProfile = (state: RootState) => state.organization.organization.billing_profile;\nexport const getSubscription = (state: RootState) => state.organization.organization.subscription;\nexport const getCard = (state: RootState) => state.organization.card;\nexport const getSsoConfig = ({ organization: { ssoConfigs = [] } }: RootState) => ssoConfigs[0];\nexport const getTenantsList = (state: RootState) => state.organization.tenantList;\nexport const getWebhookEvents = (state: RootState) => state.organization.webhooks.events;\nexport const getWebhookEventsTotal = (state: RootState) => state.organization.webhooks.eventsTotal;\n\nexport const getDeviceTwinIntegrations = createSelector([getExternalIntegrations], integrations =>\n integrations.filter(integration => integration.id && EXTERNAL_PROVIDER[integration.provider]?.deviceTwin)\n);\nexport const getIsServiceProvider = (state: RootState) => state.organization.organization.service_provider;\n\nexport const getWebhooks = createSelector([getExternalIntegrations], integrations =>\n integrations.filter(integration => integration.id && integration.provider === EXTERNAL_PROVIDER.webhook.provider)\n);\nexport const getWebhookEventInfo = createSelector([getWebhooks, getWebhookEvents, getWebhookEventsTotal], (webhooks, events, eventsTotal) =>\n webhooks.length ? { events, eventsTotal } : { events: [], eventsTotal: 0 }\n);\n\nexport const getAuditLogEntry = createSelector([getAuditLog, getAuditLogSelectionState], (events, { selectedId }) => {\n if (!selectedId) {\n return;\n }\n const [eventAction, eventTime] = atob(selectedId).split('|');\n return events.find(item => item.action === eventAction && item.time === eventTime);\n});\n\nconst toTierName = (key: string) => key.replace(/max_|_?devices/g, '') || 'standard';\nconst processDeviceLimits = (deviceLimits: Tenant['device_limits'], skipFilter = false) => {\n const result: { disabled: string[]; limits: Record<string, object> } = { limits: {}, disabled: [] };\n if (!deviceLimits) return result;\n const tiersByName = Object.fromEntries(Object.entries(deviceLimits).map(([key, limit]) => [toTierName(key), { key, limit }]));\n return productOrder.reduce((accu, tierName) => {\n const entry = tiersByName[tierName];\n if (!entry) return accu;\n const { key, limit } = entry;\n if (limit.value === 0) {\n accu.disabled.push(tierName);\n if (!skipFilter) return accu;\n }\n accu.limits[tierName] = {\n id: tierName,\n backendId: key,\n limit: limit.value,\n current: limit.current_value,\n name: tierName,\n quotaLeft: Math.max(limit.value - limit.current_value, 0),\n limitReached: limit.value !== -1 && limit.value <= limit.current_value\n };\n return accu;\n }, result);\n};\nconst getDeviceLimitsInfo = createSelector([getOrganization], ({ device_limits }) => processDeviceLimits(device_limits));\nexport const getDisabledTiers = createSelector([getDeviceLimitsInfo], ({ disabled }) => disabled);\nexport const getSpLimits = createSelector([getDeviceLimitsInfo], ({ limits }) => limits);\nexport const getTenantListWithLimits = createSelector([getTenantsList], tenantList => ({\n ...tenantList,\n tenants: tenantList.tenants.map(tenant => ({\n ...tenant,\n device_limits: processDeviceLimits(tenant.device_limits, true).limits\n }))\n}));\n"],"mappings":"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"}
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { o as UserSliceType } from "../index-
|
|
2
|
-
import { a as ReleaseSliceType } from "../index-
|
|
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-
|
|
1
|
+
import { o as UserSliceType } from "../index-CqhXqGLt.cjs";
|
|
2
|
+
import { a as ReleaseSliceType } from "../index-fGVC5s1C.cjs";
|
|
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-B67YW1jV.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-
|
|
7
|
-
import { t as AppSliceType } from "../index-
|
|
8
|
-
import { t as MonitorSliceType } from "../index-
|
|
9
|
-
import { t as OrganizationSliceType } from "../index-
|
|
10
|
-
import { r as RootState } from "../store-
|
|
6
|
+
import { c as DeviceSliceType } from "../index-KxRmyFLr.cjs";
|
|
7
|
+
import { t as AppSliceType } from "../index-BKU1G9-x.cjs";
|
|
8
|
+
import { t as MonitorSliceType } from "../index-BfmRpbiJ.cjs";
|
|
9
|
+
import { t as OrganizationSliceType } from "../index-HjOSTTGF.cjs";
|
|
10
|
+
import { r as RootState } from "../store-Dw8Uo_Df.cjs";
|
|
11
11
|
//#region src/organizationSlice/selectors.d.ts
|
|
12
|
-
declare const getOrganization: (state: RootState) => Partial<Organization>;
|
|
13
|
-
declare const getProducts: (state: RootState) => ProductConfig | undefined;
|
|
14
|
-
declare const getExternalIntegrations: (state: RootState) => import("@northern.tech/types/types.gen").Integration[];
|
|
15
|
-
declare const getAuditlogState: (state: RootState) => AuditLogSelectionState;
|
|
16
|
-
declare const getAuditLog: (state: RootState) => import("@northern.tech/types/types.gen").AuditLog[];
|
|
17
|
-
declare const getAuditLogSelectionState: (state: RootState) => AuditLogSelectionState;
|
|
18
|
-
declare const getBillingProfile: (state: RootState) => import("@northern.tech/types/types.gen").BillingProfile | undefined;
|
|
19
|
-
declare const getSubscription: (state: RootState) => import("@northern.tech/types/types.gen").SubscriptionData | undefined;
|
|
20
|
-
declare const getCard: (state: RootState) => Card;
|
|
21
|
-
declare const getSsoConfig: ({ organization: { ssoConfigs } }: RootState) => SSOConfig;
|
|
22
|
-
declare const getTenantsList: (state: RootState) => TenantList;
|
|
23
|
-
declare const getWebhookEvents: (state: RootState) => import("@northern.tech/types/types.gen").Event[];
|
|
24
|
-
declare const
|
|
25
|
-
declare const getDeviceTwinIntegrations: ((state: {
|
|
12
|
+
export declare const getOrganization: (state: RootState) => Partial<Organization>;
|
|
13
|
+
export declare const getProducts: (state: RootState) => ProductConfig | undefined;
|
|
14
|
+
export declare const getExternalIntegrations: (state: RootState) => import("@northern.tech/types/types.gen").Integration[];
|
|
15
|
+
export declare const getAuditlogState: (state: RootState) => AuditLogSelectionState;
|
|
16
|
+
export declare const getAuditLog: (state: RootState) => import("@northern.tech/types/types.gen").AuditLog[];
|
|
17
|
+
export declare const getAuditLogSelectionState: (state: RootState) => AuditLogSelectionState;
|
|
18
|
+
export declare const getBillingProfile: (state: RootState) => import("@northern.tech/types/types.gen").BillingProfile | undefined;
|
|
19
|
+
export declare const getSubscription: (state: RootState) => import("@northern.tech/types/types.gen").SubscriptionData | undefined;
|
|
20
|
+
export declare const getCard: (state: RootState) => Card;
|
|
21
|
+
export declare const getSsoConfig: ({ organization: { ssoConfigs } }: RootState) => SSOConfig;
|
|
22
|
+
export declare const getTenantsList: (state: RootState) => TenantList;
|
|
23
|
+
export declare const getWebhookEvents: (state: RootState) => import("@northern.tech/types/types.gen").Event[];
|
|
24
|
+
export declare const getWebhookEventsTotal: (state: RootState) => number;
|
|
25
|
+
export declare const getDeviceTwinIntegrations: ((state: {
|
|
26
26
|
app: AppSliceType;
|
|
27
27
|
devices: DeviceSliceType;
|
|
28
28
|
deployments: DeploymentsSliceType;
|
|
@@ -52,8 +52,8 @@ declare const getDeviceTwinIntegrations: ((state: {
|
|
|
52
52
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
53
53
|
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
54
54
|
};
|
|
55
|
-
declare const getIsServiceProvider: (state: RootState) => boolean | undefined;
|
|
56
|
-
declare const getWebhooks: ((state: {
|
|
55
|
+
export declare const getIsServiceProvider: (state: RootState) => boolean | undefined;
|
|
56
|
+
export declare const getWebhooks: ((state: {
|
|
57
57
|
app: AppSliceType;
|
|
58
58
|
devices: DeviceSliceType;
|
|
59
59
|
deployments: DeploymentsSliceType;
|
|
@@ -83,7 +83,7 @@ declare const getWebhooks: ((state: {
|
|
|
83
83
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
84
84
|
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
85
85
|
};
|
|
86
|
-
declare const getWebhookEventInfo: ((state: {
|
|
86
|
+
export declare const getWebhookEventInfo: ((state: {
|
|
87
87
|
app: AppSliceType;
|
|
88
88
|
devices: DeviceSliceType;
|
|
89
89
|
deployments: DeploymentsSliceType;
|
|
@@ -94,7 +94,7 @@ declare const getWebhookEventInfo: ((state: {
|
|
|
94
94
|
users: UserSliceType;
|
|
95
95
|
}) => {
|
|
96
96
|
events: import("@northern.tech/types/types.gen").Event[];
|
|
97
|
-
|
|
97
|
+
eventsTotal: number;
|
|
98
98
|
}) & {
|
|
99
99
|
clearCache: () => void;
|
|
100
100
|
resultsCount: () => number;
|
|
@@ -102,11 +102,11 @@ declare const getWebhookEventInfo: ((state: {
|
|
|
102
102
|
} & {
|
|
103
103
|
resultFunc: (resultFuncArgs_0: import("@northern.tech/types/types.gen").Integration[], resultFuncArgs_1: import("@northern.tech/types/types.gen").Event[], resultFuncArgs_2: number) => {
|
|
104
104
|
events: import("@northern.tech/types/types.gen").Event[];
|
|
105
|
-
|
|
105
|
+
eventsTotal: number;
|
|
106
106
|
};
|
|
107
107
|
memoizedResultFunc: ((resultFuncArgs_0: import("@northern.tech/types/types.gen").Integration[], resultFuncArgs_1: import("@northern.tech/types/types.gen").Event[], resultFuncArgs_2: number) => {
|
|
108
108
|
events: import("@northern.tech/types/types.gen").Event[];
|
|
109
|
-
|
|
109
|
+
eventsTotal: number;
|
|
110
110
|
}) & {
|
|
111
111
|
clearCache: () => void;
|
|
112
112
|
resultsCount: () => number;
|
|
@@ -114,7 +114,7 @@ declare const getWebhookEventInfo: ((state: {
|
|
|
114
114
|
};
|
|
115
115
|
lastResult: () => {
|
|
116
116
|
events: import("@northern.tech/types/types.gen").Event[];
|
|
117
|
-
|
|
117
|
+
eventsTotal: number;
|
|
118
118
|
};
|
|
119
119
|
dependencies: [((state: {
|
|
120
120
|
app: AppSliceType;
|
|
@@ -154,7 +154,7 @@ declare const getWebhookEventInfo: ((state: {
|
|
|
154
154
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
155
155
|
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
156
156
|
};
|
|
157
|
-
declare const getAuditLogEntry: ((state: {
|
|
157
|
+
export declare const getAuditLogEntry: ((state: {
|
|
158
158
|
app: AppSliceType;
|
|
159
159
|
devices: DeviceSliceType;
|
|
160
160
|
deployments: DeploymentsSliceType;
|
|
@@ -184,7 +184,7 @@ declare const getAuditLogEntry: ((state: {
|
|
|
184
184
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
185
185
|
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
186
186
|
};
|
|
187
|
-
declare const getDisabledTiers: ((state: {
|
|
187
|
+
export declare const getDisabledTiers: ((state: {
|
|
188
188
|
app: AppSliceType;
|
|
189
189
|
devices: DeviceSliceType;
|
|
190
190
|
deployments: DeploymentsSliceType;
|
|
@@ -261,7 +261,7 @@ declare const getDisabledTiers: ((state: {
|
|
|
261
261
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
262
262
|
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
263
263
|
};
|
|
264
|
-
declare const getSpLimits: ((state: {
|
|
264
|
+
export declare const getSpLimits: ((state: {
|
|
265
265
|
app: AppSliceType;
|
|
266
266
|
devices: DeviceSliceType;
|
|
267
267
|
deployments: DeploymentsSliceType;
|
|
@@ -338,7 +338,7 @@ declare const getSpLimits: ((state: {
|
|
|
338
338
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
339
339
|
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
340
340
|
};
|
|
341
|
-
declare const getTenantListWithLimits: ((state: {
|
|
341
|
+
export declare const getTenantListWithLimits: ((state: {
|
|
342
342
|
app: AppSliceType;
|
|
343
343
|
devices: DeviceSliceType;
|
|
344
344
|
deployments: DeploymentsSliceType;
|
|
@@ -469,5 +469,4 @@ declare const getTenantListWithLimits: ((state: {
|
|
|
469
469
|
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
470
470
|
};
|
|
471
471
|
//#endregion
|
|
472
|
-
export { getAuditLog, getAuditLogEntry, getAuditLogSelectionState, getAuditlogState, getBillingProfile, getCard, getDeviceTwinIntegrations, getDisabledTiers, getExternalIntegrations, getIsServiceProvider, getOrganization, getProducts, getSpLimits, getSsoConfig, getSubscription, getTenantListWithLimits, getTenantsList, getWebhookEventInfo, getWebhookEventTotal, getWebhookEvents, getWebhooks };
|
|
473
472
|
//# sourceMappingURL=selectors.d.cts.map
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { o as UserSliceType } from "../index
|
|
2
|
-
import { a as ReleaseSliceType } from "../index-
|
|
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-
|
|
1
|
+
import { o as UserSliceType } from "../index--SKVGToc.js";
|
|
2
|
+
import { a as ReleaseSliceType } from "../index-BMsafOyJ.js";
|
|
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-DY0J79yF.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-
|
|
7
|
-
import { t as AppSliceType } from "../index-
|
|
8
|
-
import { t as MonitorSliceType } from "../index-
|
|
9
|
-
import { t as OrganizationSliceType } from "../index-
|
|
10
|
-
import { r as RootState } from "../store-
|
|
6
|
+
import { c as DeviceSliceType } from "../index-D9GJhX1I.js";
|
|
7
|
+
import { t as AppSliceType } from "../index-xxqlerg5.js";
|
|
8
|
+
import { t as MonitorSliceType } from "../index-CRqnH_go.js";
|
|
9
|
+
import { t as OrganizationSliceType } from "../index-BVNS-Aut.js";
|
|
10
|
+
import { r as RootState } from "../store-DLp6ajT8.js";
|
|
11
11
|
//#region src/organizationSlice/selectors.d.ts
|
|
12
|
-
declare const getOrganization: (state: RootState) => Partial<Organization>;
|
|
13
|
-
declare const getProducts: (state: RootState) => ProductConfig | undefined;
|
|
14
|
-
declare const getExternalIntegrations: (state: RootState) => import("@northern.tech/types/types.gen").Integration[];
|
|
15
|
-
declare const getAuditlogState: (state: RootState) => AuditLogSelectionState;
|
|
16
|
-
declare const getAuditLog: (state: RootState) => import("@northern.tech/types/types.gen").AuditLog[];
|
|
17
|
-
declare const getAuditLogSelectionState: (state: RootState) => AuditLogSelectionState;
|
|
18
|
-
declare const getBillingProfile: (state: RootState) => import("@northern.tech/types/types.gen").BillingProfile | undefined;
|
|
19
|
-
declare const getSubscription: (state: RootState) => import("@northern.tech/types/types.gen").SubscriptionData | undefined;
|
|
20
|
-
declare const getCard: (state: RootState) => Card;
|
|
21
|
-
declare const getSsoConfig: ({ organization: { ssoConfigs } }: RootState) => SSOConfig;
|
|
22
|
-
declare const getTenantsList: (state: RootState) => TenantList;
|
|
23
|
-
declare const getWebhookEvents: (state: RootState) => import("@northern.tech/types/types.gen").Event[];
|
|
24
|
-
declare const
|
|
25
|
-
declare const getDeviceTwinIntegrations: ((state: {
|
|
12
|
+
export declare const getOrganization: (state: RootState) => Partial<Organization>;
|
|
13
|
+
export declare const getProducts: (state: RootState) => ProductConfig | undefined;
|
|
14
|
+
export declare const getExternalIntegrations: (state: RootState) => import("@northern.tech/types/types.gen").Integration[];
|
|
15
|
+
export declare const getAuditlogState: (state: RootState) => AuditLogSelectionState;
|
|
16
|
+
export declare const getAuditLog: (state: RootState) => import("@northern.tech/types/types.gen").AuditLog[];
|
|
17
|
+
export declare const getAuditLogSelectionState: (state: RootState) => AuditLogSelectionState;
|
|
18
|
+
export declare const getBillingProfile: (state: RootState) => import("@northern.tech/types/types.gen").BillingProfile | undefined;
|
|
19
|
+
export declare const getSubscription: (state: RootState) => import("@northern.tech/types/types.gen").SubscriptionData | undefined;
|
|
20
|
+
export declare const getCard: (state: RootState) => Card;
|
|
21
|
+
export declare const getSsoConfig: ({ organization: { ssoConfigs } }: RootState) => SSOConfig;
|
|
22
|
+
export declare const getTenantsList: (state: RootState) => TenantList;
|
|
23
|
+
export declare const getWebhookEvents: (state: RootState) => import("@northern.tech/types/types.gen").Event[];
|
|
24
|
+
export declare const getWebhookEventsTotal: (state: RootState) => number;
|
|
25
|
+
export declare const getDeviceTwinIntegrations: ((state: {
|
|
26
26
|
app: AppSliceType;
|
|
27
27
|
devices: DeviceSliceType;
|
|
28
28
|
deployments: DeploymentsSliceType;
|
|
@@ -52,8 +52,8 @@ declare const getDeviceTwinIntegrations: ((state: {
|
|
|
52
52
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
53
53
|
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
54
54
|
};
|
|
55
|
-
declare const getIsServiceProvider: (state: RootState) => boolean | undefined;
|
|
56
|
-
declare const getWebhooks: ((state: {
|
|
55
|
+
export declare const getIsServiceProvider: (state: RootState) => boolean | undefined;
|
|
56
|
+
export declare const getWebhooks: ((state: {
|
|
57
57
|
app: AppSliceType;
|
|
58
58
|
devices: DeviceSliceType;
|
|
59
59
|
deployments: DeploymentsSliceType;
|
|
@@ -83,7 +83,7 @@ declare const getWebhooks: ((state: {
|
|
|
83
83
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
84
84
|
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
85
85
|
};
|
|
86
|
-
declare const getWebhookEventInfo: ((state: {
|
|
86
|
+
export declare const getWebhookEventInfo: ((state: {
|
|
87
87
|
app: AppSliceType;
|
|
88
88
|
devices: DeviceSliceType;
|
|
89
89
|
deployments: DeploymentsSliceType;
|
|
@@ -94,7 +94,7 @@ declare const getWebhookEventInfo: ((state: {
|
|
|
94
94
|
users: UserSliceType;
|
|
95
95
|
}) => {
|
|
96
96
|
events: import("@northern.tech/types/types.gen").Event[];
|
|
97
|
-
|
|
97
|
+
eventsTotal: number;
|
|
98
98
|
}) & {
|
|
99
99
|
clearCache: () => void;
|
|
100
100
|
resultsCount: () => number;
|
|
@@ -102,11 +102,11 @@ declare const getWebhookEventInfo: ((state: {
|
|
|
102
102
|
} & {
|
|
103
103
|
resultFunc: (resultFuncArgs_0: import("@northern.tech/types/types.gen").Integration[], resultFuncArgs_1: import("@northern.tech/types/types.gen").Event[], resultFuncArgs_2: number) => {
|
|
104
104
|
events: import("@northern.tech/types/types.gen").Event[];
|
|
105
|
-
|
|
105
|
+
eventsTotal: number;
|
|
106
106
|
};
|
|
107
107
|
memoizedResultFunc: ((resultFuncArgs_0: import("@northern.tech/types/types.gen").Integration[], resultFuncArgs_1: import("@northern.tech/types/types.gen").Event[], resultFuncArgs_2: number) => {
|
|
108
108
|
events: import("@northern.tech/types/types.gen").Event[];
|
|
109
|
-
|
|
109
|
+
eventsTotal: number;
|
|
110
110
|
}) & {
|
|
111
111
|
clearCache: () => void;
|
|
112
112
|
resultsCount: () => number;
|
|
@@ -114,7 +114,7 @@ declare const getWebhookEventInfo: ((state: {
|
|
|
114
114
|
};
|
|
115
115
|
lastResult: () => {
|
|
116
116
|
events: import("@northern.tech/types/types.gen").Event[];
|
|
117
|
-
|
|
117
|
+
eventsTotal: number;
|
|
118
118
|
};
|
|
119
119
|
dependencies: [((state: {
|
|
120
120
|
app: AppSliceType;
|
|
@@ -154,7 +154,7 @@ declare const getWebhookEventInfo: ((state: {
|
|
|
154
154
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
155
155
|
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
156
156
|
};
|
|
157
|
-
declare const getAuditLogEntry: ((state: {
|
|
157
|
+
export declare const getAuditLogEntry: ((state: {
|
|
158
158
|
app: AppSliceType;
|
|
159
159
|
devices: DeviceSliceType;
|
|
160
160
|
deployments: DeploymentsSliceType;
|
|
@@ -184,7 +184,7 @@ declare const getAuditLogEntry: ((state: {
|
|
|
184
184
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
185
185
|
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
186
186
|
};
|
|
187
|
-
declare const getDisabledTiers: ((state: {
|
|
187
|
+
export declare const getDisabledTiers: ((state: {
|
|
188
188
|
app: AppSliceType;
|
|
189
189
|
devices: DeviceSliceType;
|
|
190
190
|
deployments: DeploymentsSliceType;
|
|
@@ -261,7 +261,7 @@ declare const getDisabledTiers: ((state: {
|
|
|
261
261
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
262
262
|
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
263
263
|
};
|
|
264
|
-
declare const getSpLimits: ((state: {
|
|
264
|
+
export declare const getSpLimits: ((state: {
|
|
265
265
|
app: AppSliceType;
|
|
266
266
|
devices: DeviceSliceType;
|
|
267
267
|
deployments: DeploymentsSliceType;
|
|
@@ -338,7 +338,7 @@ declare const getSpLimits: ((state: {
|
|
|
338
338
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
339
339
|
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
340
340
|
};
|
|
341
|
-
declare const getTenantListWithLimits: ((state: {
|
|
341
|
+
export declare const getTenantListWithLimits: ((state: {
|
|
342
342
|
app: AppSliceType;
|
|
343
343
|
devices: DeviceSliceType;
|
|
344
344
|
deployments: DeploymentsSliceType;
|
|
@@ -469,5 +469,4 @@ declare const getTenantListWithLimits: ((state: {
|
|
|
469
469
|
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
470
470
|
};
|
|
471
471
|
//#endregion
|
|
472
|
-
export { getAuditLog, getAuditLogEntry, getAuditLogSelectionState, getAuditlogState, getBillingProfile, getCard, getDeviceTwinIntegrations, getDisabledTiers, getExternalIntegrations, getIsServiceProvider, getOrganization, getProducts, getSpLimits, getSsoConfig, getSubscription, getTenantListWithLimits, getTenantsList, getWebhookEventInfo, getWebhookEventTotal, getWebhookEvents, getWebhooks };
|
|
473
472
|
//# sourceMappingURL=selectors.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Bt as productOrder, jt as EXTERNAL_PROVIDER } from "../constants-
|
|
1
|
+
import { Bt as productOrder, jt as EXTERNAL_PROVIDER } from "../constants-D5hACLhF.js";
|
|
2
2
|
import { createSelector } from "@reduxjs/toolkit";
|
|
3
3
|
//#region src/organizationSlice/selectors.ts
|
|
4
4
|
const getOrganization = (state) => state.organization.organization;
|
|
@@ -13,20 +13,20 @@ const getCard = (state) => state.organization.card;
|
|
|
13
13
|
const getSsoConfig = ({ organization: { ssoConfigs = [] } }) => ssoConfigs[0];
|
|
14
14
|
const getTenantsList = (state) => state.organization.tenantList;
|
|
15
15
|
const getWebhookEvents = (state) => state.organization.webhooks.events;
|
|
16
|
-
const
|
|
16
|
+
const getWebhookEventsTotal = (state) => state.organization.webhooks.eventsTotal;
|
|
17
17
|
const getDeviceTwinIntegrations = createSelector([getExternalIntegrations], (integrations) => integrations.filter((integration) => integration.id && EXTERNAL_PROVIDER[integration.provider]?.deviceTwin));
|
|
18
18
|
const getIsServiceProvider = (state) => state.organization.organization.service_provider;
|
|
19
19
|
const getWebhooks = createSelector([getExternalIntegrations], (integrations) => integrations.filter((integration) => integration.id && integration.provider === EXTERNAL_PROVIDER.webhook.provider));
|
|
20
20
|
const getWebhookEventInfo = createSelector([
|
|
21
21
|
getWebhooks,
|
|
22
22
|
getWebhookEvents,
|
|
23
|
-
|
|
24
|
-
], (webhooks, events,
|
|
23
|
+
getWebhookEventsTotal
|
|
24
|
+
], (webhooks, events, eventsTotal) => webhooks.length ? {
|
|
25
25
|
events,
|
|
26
|
-
|
|
26
|
+
eventsTotal
|
|
27
27
|
} : {
|
|
28
28
|
events: [],
|
|
29
|
-
|
|
29
|
+
eventsTotal: 0
|
|
30
30
|
});
|
|
31
31
|
const getAuditLogEntry = createSelector([getAuditLog, getAuditLogSelectionState], (events, { selectedId }) => {
|
|
32
32
|
if (!selectedId) return;
|
|
@@ -75,6 +75,6 @@ const getTenantListWithLimits = createSelector([getTenantsList], (tenantList) =>
|
|
|
75
75
|
}))
|
|
76
76
|
}));
|
|
77
77
|
//#endregion
|
|
78
|
-
export { getAuditLog, getAuditLogEntry, getAuditLogSelectionState, getAuditlogState, getBillingProfile, getCard, getDeviceTwinIntegrations, getDisabledTiers, getExternalIntegrations, getIsServiceProvider, getOrganization, getProducts, getSpLimits, getSsoConfig, getSubscription, getTenantListWithLimits, getTenantsList, getWebhookEventInfo,
|
|
78
|
+
export { getAuditLog, getAuditLogEntry, getAuditLogSelectionState, getAuditlogState, getBillingProfile, getCard, getDeviceTwinIntegrations, getDisabledTiers, getExternalIntegrations, getIsServiceProvider, getOrganization, getProducts, getSpLimits, getSsoConfig, getSubscription, getTenantListWithLimits, getTenantsList, getWebhookEventInfo, getWebhookEvents, getWebhookEventsTotal, getWebhooks };
|
|
79
79
|
|
|
80
80
|
//# sourceMappingURL=selectors.js.map
|