@northern.tech/store 0.5.3 → 0.6.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.cjs.map +1 -1
- package/dist/actions.d.cts +8 -13
- package/dist/actions.d.ts +8 -13
- package/dist/actions.js +10 -10
- package/dist/api/general-api.cjs +4 -5
- package/dist/api/general-api.cjs.map +1 -1
- package/dist/api/general-api.js +4 -4
- package/dist/api/users-api.cjs +4 -5
- package/dist/api/users-api.cjs.map +1 -1
- package/dist/api/users-api.js +5 -5
- package/dist/appSlice/constants.cjs +1 -1
- package/dist/appSlice/constants.cjs.map +1 -1
- package/dist/appSlice/constants.d.cts +1 -1
- package/dist/appSlice/constants.d.ts +1 -1
- package/dist/appSlice/constants.js +1 -1
- package/dist/appSlice/index.js +3 -3
- package/dist/appSlice/mocks.js +3 -3
- package/dist/appSlice/selectors.d.cts +9 -9
- package/dist/appSlice/selectors.d.ts +9 -9
- package/dist/appSlice/thunks.cjs +8 -7
- package/dist/appSlice/thunks.cjs.map +1 -1
- package/dist/appSlice/thunks.d.cts +1 -1
- package/dist/appSlice/thunks.d.ts +1 -1
- package/dist/appSlice/thunks.js +26 -26
- package/dist/auth.cjs +4 -5
- package/dist/auth.cjs.map +1 -1
- package/dist/auth.js +3 -3
- package/dist/{chunk-DYN7AU7R.js → chunk-2ASLHSBV.js} +9 -9
- package/dist/{chunk-HLTP624H.js → chunk-2M5W3IDP.js} +2 -2
- package/dist/{chunk-J74LNK6P.js → chunk-3ECSADAW.js} +13 -13
- package/dist/{chunk-W37ETKI6.js → chunk-67GS7ERY.js} +2 -2
- package/dist/{chunk-CWZKWW74.js → chunk-7BKDELUQ.js} +2 -2
- package/dist/{chunk-ZZ3YDCYZ.js → chunk-B7GXA42G.js} +3 -3
- package/dist/{chunk-AVCIWAZB.js → chunk-CEH2D355.js} +2 -2
- package/dist/{chunk-5HYHE4HO.js → chunk-EIIFEV62.js} +2 -2
- package/dist/chunk-EIIFEV62.js.map +1 -0
- package/dist/{chunk-DE25YP6N.js → chunk-GN2HC6HW.js} +29 -28
- package/dist/chunk-GN2HC6HW.js.map +1 -0
- package/dist/{chunk-IY76MO6R.js → chunk-MVK6W7ZH.js} +2 -2
- package/dist/chunk-MVK6W7ZH.js.map +1 -0
- package/dist/{chunk-PY6ID7TL.js → chunk-N3XU7WJM.js} +2 -2
- package/dist/chunk-N3XU7WJM.js.map +1 -0
- package/dist/{chunk-DXJ2WS3N.js → chunk-PB36MEEN.js} +2 -2
- package/dist/{chunk-I6JE3OLT.js → chunk-PTQS3JDZ.js} +10 -10
- package/dist/{chunk-JOK26PI7.js → chunk-QPHDDTQC.js} +14 -13
- package/dist/chunk-QPHDDTQC.js.map +1 -0
- package/dist/{chunk-4DOSYAJY.js → chunk-RRL7OZHU.js} +2 -2
- package/dist/{chunk-KGSJ7CSA.js → chunk-RWGVRDFG.js} +2 -2
- package/dist/chunk-RWGVRDFG.js.map +1 -0
- package/dist/{chunk-BNSSPYCA.js → chunk-TL6KSTZZ.js} +3 -3
- package/dist/{chunk-VCTZ25Q5.js → chunk-TU4IVT3M.js} +14 -14
- package/dist/{chunk-4UJXT6RF.js → chunk-VIV6U46F.js} +6 -4
- package/dist/chunk-VIV6U46F.js.map +1 -0
- package/dist/{chunk-66NK2ZV2.js → chunk-W2RDUU5Q.js} +2 -2
- package/dist/{chunk-KJJ47UIO.js → chunk-WD7MIPCO.js} +2 -2
- package/dist/chunk-WD7MIPCO.js.map +1 -0
- package/dist/{chunk-JZXNRDO2.js → chunk-XLXLFSZA.js} +2 -2
- package/dist/{chunk-CEEXZF5E.js → chunk-XZDCXV4H.js} +3 -3
- package/dist/chunk-XZDCXV4H.js.map +1 -0
- package/dist/{chunk-MRXTMI6O.js → chunk-YEQ7D6AW.js} +5 -6
- package/dist/chunk-YEQ7D6AW.js.map +1 -0
- package/dist/{chunk-GRVTVLIZ.js → chunk-ZABYTBKG.js} +2 -2
- package/dist/commonConstants.cjs +4 -5
- package/dist/commonConstants.cjs.map +1 -1
- package/dist/commonConstants.d.cts +8 -8
- package/dist/commonConstants.d.ts +8 -8
- package/dist/commonConstants.js +2 -2
- package/dist/commonSelectors.cjs +6 -7
- package/dist/commonSelectors.cjs.map +1 -1
- package/dist/commonSelectors.d.cts +127 -138
- package/dist/commonSelectors.d.ts +127 -138
- package/dist/commonSelectors.js +10 -10
- package/dist/constants.cjs +5 -6
- package/dist/constants.cjs.map +1 -1
- package/dist/constants.js +2 -2
- package/dist/deploymentsSlice/constants.cjs.map +1 -1
- package/dist/deploymentsSlice/constants.d.cts +2 -2
- package/dist/deploymentsSlice/constants.d.ts +2 -2
- package/dist/deploymentsSlice/constants.js +2 -2
- package/dist/deploymentsSlice/index.cjs.map +1 -1
- package/dist/deploymentsSlice/index.d.cts +5 -4
- package/dist/deploymentsSlice/index.d.ts +5 -4
- package/dist/deploymentsSlice/index.js +3 -3
- package/dist/deploymentsSlice/mocks.cjs.map +1 -1
- package/dist/deploymentsSlice/mocks.js +3 -3
- package/dist/deploymentsSlice/selectors.cjs.map +1 -1
- package/dist/deploymentsSlice/selectors.d.cts +3 -3
- package/dist/deploymentsSlice/selectors.d.ts +3 -3
- package/dist/deploymentsSlice/selectors.js +3 -3
- package/dist/deploymentsSlice/thunks.cjs +8 -7
- package/dist/deploymentsSlice/thunks.cjs.map +1 -1
- package/dist/deploymentsSlice/thunks.d.cts +3 -3
- package/dist/deploymentsSlice/thunks.d.ts +3 -3
- package/dist/deploymentsSlice/thunks.js +26 -26
- package/dist/devicesSlice/constants.js +2 -2
- package/dist/devicesSlice/index.cjs.map +1 -1
- package/dist/devicesSlice/index.d.cts +4 -4
- package/dist/devicesSlice/index.d.ts +4 -4
- package/dist/devicesSlice/index.js +3 -3
- package/dist/devicesSlice/mocks.cjs +4 -4
- package/dist/devicesSlice/mocks.cjs.map +1 -1
- package/dist/devicesSlice/mocks.js +7 -7
- package/dist/devicesSlice/mocks.js.map +1 -1
- package/dist/devicesSlice/selectors.cjs +4 -5
- package/dist/devicesSlice/selectors.cjs.map +1 -1
- package/dist/devicesSlice/selectors.d.cts +23 -23
- package/dist/devicesSlice/selectors.d.ts +23 -23
- package/dist/devicesSlice/selectors.js +3 -3
- package/dist/devicesSlice/thunks.cjs +8 -7
- package/dist/devicesSlice/thunks.cjs.map +1 -1
- package/dist/devicesSlice/thunks.d.cts +5 -5
- package/dist/devicesSlice/thunks.d.ts +5 -5
- package/dist/devicesSlice/thunks.js +26 -26
- package/dist/liststatehook.cjs +4 -5
- package/dist/liststatehook.cjs.map +1 -1
- package/dist/liststatehook.js +3 -3
- package/dist/locationutils.cjs +4 -5
- package/dist/locationutils.cjs.map +1 -1
- package/dist/locationutils.js +3 -3
- package/dist/monitorSlice/index.js +3 -3
- package/dist/monitorSlice/mocks.js +3 -3
- package/dist/monitorSlice/thunks.cjs +6 -7
- package/dist/monitorSlice/thunks.cjs.map +1 -1
- package/dist/monitorSlice/thunks.d.cts +1 -1
- package/dist/monitorSlice/thunks.d.ts +1 -1
- package/dist/monitorSlice/thunks.js +22 -22
- package/dist/onboardingSlice/thunks.cjs +8 -7
- package/dist/onboardingSlice/thunks.cjs.map +1 -1
- package/dist/onboardingSlice/thunks.d.cts +1 -1
- package/dist/onboardingSlice/thunks.d.ts +1 -1
- package/dist/onboardingSlice/thunks.js +26 -26
- package/dist/organizationSlice/constants.js +2 -2
- package/dist/organizationSlice/index.js +3 -3
- package/dist/organizationSlice/mocks.d.cts +2 -2
- package/dist/organizationSlice/mocks.d.ts +2 -2
- package/dist/organizationSlice/mocks.js +3 -3
- package/dist/organizationSlice/selectors.cjs +4 -5
- package/dist/organizationSlice/selectors.cjs.map +1 -1
- package/dist/organizationSlice/selectors.d.cts +44 -48
- package/dist/organizationSlice/selectors.d.ts +44 -48
- package/dist/organizationSlice/selectors.js +3 -3
- package/dist/organizationSlice/thunks.cjs +10 -10
- package/dist/organizationSlice/thunks.cjs.map +1 -1
- package/dist/organizationSlice/thunks.d.cts +1 -1
- package/dist/organizationSlice/thunks.d.ts +1 -1
- package/dist/organizationSlice/thunks.js +26 -26
- package/dist/organizationSlice/types.cjs.map +1 -1
- package/dist/organizationSlice/types.d.cts +8 -30
- package/dist/organizationSlice/types.d.ts +8 -30
- package/dist/releasesSlice/index.cjs.map +1 -1
- package/dist/releasesSlice/index.d.cts +7 -5
- package/dist/releasesSlice/index.d.ts +7 -5
- package/dist/releasesSlice/index.js +3 -3
- package/dist/releasesSlice/mocks.cjs.map +1 -1
- package/dist/releasesSlice/mocks.d.cts +1 -3
- package/dist/releasesSlice/mocks.d.ts +1 -3
- package/dist/releasesSlice/mocks.js +3 -3
- package/dist/releasesSlice/selectors.cjs +4 -5
- package/dist/releasesSlice/selectors.cjs.map +1 -1
- package/dist/releasesSlice/selectors.d.cts +39 -41
- package/dist/releasesSlice/selectors.d.ts +39 -41
- package/dist/releasesSlice/selectors.js +4 -4
- package/dist/releasesSlice/thunks.cjs +10 -10
- package/dist/releasesSlice/thunks.cjs.map +1 -1
- package/dist/releasesSlice/thunks.d.cts +3 -3
- package/dist/releasesSlice/thunks.d.ts +3 -3
- package/dist/releasesSlice/thunks.js +23 -23
- package/dist/selectors.cjs +10 -8
- package/dist/selectors.cjs.map +1 -1
- package/dist/selectors.d.cts +2 -18
- package/dist/selectors.d.ts +2 -18
- package/dist/selectors.js +21 -19
- package/dist/sockethook.cjs +4 -5
- package/dist/sockethook.cjs.map +1 -1
- package/dist/sockethook.js +2 -2
- package/dist/store.cjs.map +1 -1
- package/dist/store.d.cts +11 -11
- package/dist/store.d.ts +11 -11
- package/dist/store.js +12 -12
- package/dist/storehooks.cjs +14 -13
- package/dist/storehooks.cjs.map +1 -1
- package/dist/storehooks.js +26 -26
- package/dist/thunks.cjs +14 -13
- package/dist/thunks.cjs.map +1 -1
- package/dist/thunks.d.cts +1 -1
- package/dist/thunks.d.ts +1 -1
- package/dist/thunks.js +26 -26
- package/dist/useDeploymentDevice.cjs +8 -7
- package/dist/useDeploymentDevice.cjs.map +1 -1
- package/dist/useDeploymentDevice.js +26 -26
- package/dist/usersSlice/constants.js +2 -2
- package/dist/usersSlice/index.js +3 -3
- package/dist/usersSlice/mocks.cjs +1 -0
- package/dist/usersSlice/mocks.cjs.map +1 -1
- package/dist/usersSlice/mocks.d.cts +3 -3
- package/dist/usersSlice/mocks.d.ts +3 -3
- package/dist/usersSlice/mocks.js +4 -3
- package/dist/usersSlice/mocks.js.map +1 -1
- package/dist/usersSlice/selectors.cjs +8 -6
- package/dist/usersSlice/selectors.cjs.map +1 -1
- package/dist/usersSlice/selectors.d.cts +33 -34
- package/dist/usersSlice/selectors.d.ts +33 -34
- package/dist/usersSlice/selectors.js +6 -4
- package/dist/usersSlice/thunks.cjs +8 -7
- package/dist/usersSlice/thunks.cjs.map +1 -1
- package/dist/usersSlice/thunks.d.cts +1 -1
- package/dist/usersSlice/thunks.d.ts +1 -1
- package/dist/usersSlice/thunks.js +26 -26
- package/dist/utils.cjs +4 -5
- package/dist/utils.cjs.map +1 -1
- package/dist/utils.js +3 -3
- package/package.json +1 -1
- package/dist/chunk-4UJXT6RF.js.map +0 -1
- package/dist/chunk-5HYHE4HO.js.map +0 -1
- package/dist/chunk-CEEXZF5E.js.map +0 -1
- package/dist/chunk-DE25YP6N.js.map +0 -1
- package/dist/chunk-IY76MO6R.js.map +0 -1
- package/dist/chunk-JOK26PI7.js.map +0 -1
- package/dist/chunk-KGSJ7CSA.js.map +0 -1
- package/dist/chunk-KJJ47UIO.js.map +0 -1
- package/dist/chunk-MRXTMI6O.js.map +0 -1
- package/dist/chunk-PY6ID7TL.js.map +0 -1
- /package/dist/{chunk-DYN7AU7R.js.map → chunk-2ASLHSBV.js.map} +0 -0
- /package/dist/{chunk-HLTP624H.js.map → chunk-2M5W3IDP.js.map} +0 -0
- /package/dist/{chunk-J74LNK6P.js.map → chunk-3ECSADAW.js.map} +0 -0
- /package/dist/{chunk-W37ETKI6.js.map → chunk-67GS7ERY.js.map} +0 -0
- /package/dist/{chunk-CWZKWW74.js.map → chunk-7BKDELUQ.js.map} +0 -0
- /package/dist/{chunk-ZZ3YDCYZ.js.map → chunk-B7GXA42G.js.map} +0 -0
- /package/dist/{chunk-AVCIWAZB.js.map → chunk-CEH2D355.js.map} +0 -0
- /package/dist/{chunk-DXJ2WS3N.js.map → chunk-PB36MEEN.js.map} +0 -0
- /package/dist/{chunk-I6JE3OLT.js.map → chunk-PTQS3JDZ.js.map} +0 -0
- /package/dist/{chunk-4DOSYAJY.js.map → chunk-RRL7OZHU.js.map} +0 -0
- /package/dist/{chunk-BNSSPYCA.js.map → chunk-TL6KSTZZ.js.map} +0 -0
- /package/dist/{chunk-VCTZ25Q5.js.map → chunk-TU4IVT3M.js.map} +0 -0
- /package/dist/{chunk-66NK2ZV2.js.map → chunk-W2RDUU5Q.js.map} +0 -0
- /package/dist/{chunk-JZXNRDO2.js.map → chunk-XLXLFSZA.js.map} +0 -0
- /package/dist/{chunk-GRVTVLIZ.js.map → chunk-ZABYTBKG.js.map} +0 -0
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import * as _northern_tech_types_RolePermission from '@northern.tech/types/RolePermission';
|
|
2
|
-
import * as _northern_tech_types_PermissionSetWithScope from '@northern.tech/types/PermissionSetWithScope';
|
|
3
1
|
import * as reselect from 'reselect';
|
|
4
2
|
import { ReleaseSliceType } from '../releasesSlice/index.cjs';
|
|
5
3
|
import { OrganizationState } from '../organizationSlice/types.cjs';
|
|
6
4
|
import { OnboardingApproach } from '../onboardingSlice/index.cjs';
|
|
7
|
-
import * as
|
|
5
|
+
import * as _northern_tech_types_types_gen from '@northern.tech/types/types.gen';
|
|
8
6
|
import { Deployment, DeploymentByStatus, DeploymentConfig, SelectionState } from '../deploymentsSlice/index.cjs';
|
|
9
7
|
import { DeviceSliceType } from '../devicesSlice/index.cjs';
|
|
10
8
|
import { SearchState, SentryConfig, SnackbarContent, Upload } from '../appSlice/index.cjs';
|
|
@@ -30,6 +28,7 @@ declare const getTooltipsById: (state: RootState) => Record<string, {
|
|
|
30
28
|
readState: ReadState;
|
|
31
29
|
}>;
|
|
32
30
|
declare const getGlobalSettings: (state: RootState) => GlobalSettings;
|
|
31
|
+
declare const getGlobalSettingsInitialized: (state: RootState) => boolean;
|
|
33
32
|
declare const getUserSettingsInitialized: (state: RootState) => boolean;
|
|
34
33
|
declare const getUsersById: (state: RootState) => Record<string, User>;
|
|
35
34
|
declare const getUsersList: ((state: {
|
|
@@ -83,10 +82,10 @@ declare const getUsersList: ((state: {
|
|
|
83
82
|
total: number;
|
|
84
83
|
};
|
|
85
84
|
byDeviceId: {
|
|
86
|
-
alerts?: Record<string,
|
|
85
|
+
alerts?: Record<string, _northern_tech_types_types_gen.Alert & {
|
|
87
86
|
fullName?: string;
|
|
88
87
|
}>;
|
|
89
|
-
latest?: Record<string,
|
|
88
|
+
latest?: Record<string, _northern_tech_types_types_gen.Alert & {
|
|
90
89
|
fullName?: string;
|
|
91
90
|
}>;
|
|
92
91
|
};
|
|
@@ -237,10 +236,10 @@ declare const getCurrentUser: ((state: {
|
|
|
237
236
|
total: number;
|
|
238
237
|
};
|
|
239
238
|
byDeviceId: {
|
|
240
|
-
alerts?: Record<string,
|
|
239
|
+
alerts?: Record<string, _northern_tech_types_types_gen.Alert & {
|
|
241
240
|
fullName?: string;
|
|
242
241
|
}>;
|
|
243
|
-
latest?: Record<string,
|
|
242
|
+
latest?: Record<string, _northern_tech_types_types_gen.Alert & {
|
|
244
243
|
fullName?: string;
|
|
245
244
|
}>;
|
|
246
245
|
};
|
|
@@ -392,10 +391,10 @@ declare const getSelectedDeviceAttribute: ((state: {
|
|
|
392
391
|
total: number;
|
|
393
392
|
};
|
|
394
393
|
byDeviceId: {
|
|
395
|
-
alerts?: Record<string,
|
|
394
|
+
alerts?: Record<string, _northern_tech_types_types_gen.Alert & {
|
|
396
395
|
fullName?: string;
|
|
397
396
|
}>;
|
|
398
|
-
latest?: Record<string,
|
|
397
|
+
latest?: Record<string, _northern_tech_types_types_gen.Alert & {
|
|
399
398
|
fullName?: string;
|
|
400
399
|
}>;
|
|
401
400
|
};
|
|
@@ -558,10 +557,10 @@ declare const getIsDarkMode: ((state: {
|
|
|
558
557
|
total: number;
|
|
559
558
|
};
|
|
560
559
|
byDeviceId: {
|
|
561
|
-
alerts?: Record<string,
|
|
560
|
+
alerts?: Record<string, _northern_tech_types_types_gen.Alert & {
|
|
562
561
|
fullName?: string;
|
|
563
562
|
}>;
|
|
564
|
-
latest?: Record<string,
|
|
563
|
+
latest?: Record<string, _northern_tech_types_types_gen.Alert & {
|
|
565
564
|
fullName?: string;
|
|
566
565
|
}>;
|
|
567
566
|
};
|
|
@@ -712,10 +711,10 @@ declare const getReadAllHelptips: ((state: {
|
|
|
712
711
|
total: number;
|
|
713
712
|
};
|
|
714
713
|
byDeviceId: {
|
|
715
|
-
alerts?: Record<string,
|
|
714
|
+
alerts?: Record<string, _northern_tech_types_types_gen.Alert & {
|
|
716
715
|
fullName?: string;
|
|
717
716
|
}>;
|
|
718
|
-
latest?: Record<string,
|
|
717
|
+
latest?: Record<string, _northern_tech_types_types_gen.Alert & {
|
|
719
718
|
fullName?: string;
|
|
720
719
|
}>;
|
|
721
720
|
};
|
|
@@ -872,10 +871,10 @@ declare const getTooltipsState: ((state: {
|
|
|
872
871
|
total: number;
|
|
873
872
|
};
|
|
874
873
|
byDeviceId: {
|
|
875
|
-
alerts?: Record<string,
|
|
874
|
+
alerts?: Record<string, _northern_tech_types_types_gen.Alert & {
|
|
876
875
|
fullName?: string;
|
|
877
876
|
}>;
|
|
878
|
-
latest?: Record<string,
|
|
877
|
+
latest?: Record<string, _northern_tech_types_types_gen.Alert & {
|
|
879
878
|
fullName?: string;
|
|
880
879
|
}>;
|
|
881
880
|
};
|
|
@@ -1032,10 +1031,10 @@ declare const getHas2FA: ((state: {
|
|
|
1032
1031
|
total: number;
|
|
1033
1032
|
};
|
|
1034
1033
|
byDeviceId: {
|
|
1035
|
-
alerts?: Record<string,
|
|
1034
|
+
alerts?: Record<string, _northern_tech_types_types_gen.Alert & {
|
|
1036
1035
|
fullName?: string;
|
|
1037
1036
|
}>;
|
|
1038
|
-
latest?: Record<string,
|
|
1037
|
+
latest?: Record<string, _northern_tech_types_types_gen.Alert & {
|
|
1039
1038
|
fullName?: string;
|
|
1040
1039
|
}>;
|
|
1041
1040
|
};
|
|
@@ -1177,10 +1176,10 @@ declare const getHas2FA: ((state: {
|
|
|
1177
1176
|
total: number;
|
|
1178
1177
|
};
|
|
1179
1178
|
byDeviceId: {
|
|
1180
|
-
alerts?: Record<string,
|
|
1179
|
+
alerts?: Record<string, _northern_tech_types_types_gen.Alert & {
|
|
1181
1180
|
fullName?: string;
|
|
1182
1181
|
}>;
|
|
1183
|
-
latest?: Record<string,
|
|
1182
|
+
latest?: Record<string, _northern_tech_types_types_gen.Alert & {
|
|
1184
1183
|
fullName?: string;
|
|
1185
1184
|
}>;
|
|
1186
1185
|
};
|
|
@@ -1339,10 +1338,10 @@ declare const getIdAttribute: ((state: {
|
|
|
1339
1338
|
total: number;
|
|
1340
1339
|
};
|
|
1341
1340
|
byDeviceId: {
|
|
1342
|
-
alerts?: Record<string,
|
|
1341
|
+
alerts?: Record<string, _northern_tech_types_types_gen.Alert & {
|
|
1343
1342
|
fullName?: string;
|
|
1344
1343
|
}>;
|
|
1345
|
-
latest?: Record<string,
|
|
1344
|
+
latest?: Record<string, _northern_tech_types_types_gen.Alert & {
|
|
1346
1345
|
fullName?: string;
|
|
1347
1346
|
}>;
|
|
1348
1347
|
};
|
|
@@ -1505,10 +1504,10 @@ declare const getOfflineThresholdSettings: ((state: {
|
|
|
1505
1504
|
total: number;
|
|
1506
1505
|
};
|
|
1507
1506
|
byDeviceId: {
|
|
1508
|
-
alerts?: Record<string,
|
|
1507
|
+
alerts?: Record<string, _northern_tech_types_types_gen.Alert & {
|
|
1509
1508
|
fullName?: string;
|
|
1510
1509
|
}>;
|
|
1511
|
-
latest?: Record<string,
|
|
1510
|
+
latest?: Record<string, _northern_tech_types_types_gen.Alert & {
|
|
1512
1511
|
fullName?: string;
|
|
1513
1512
|
}>;
|
|
1514
1513
|
};
|
|
@@ -1671,10 +1670,10 @@ declare const getRolesList: ((state: {
|
|
|
1671
1670
|
total: number;
|
|
1672
1671
|
};
|
|
1673
1672
|
byDeviceId: {
|
|
1674
|
-
alerts?: Record<string,
|
|
1673
|
+
alerts?: Record<string, _northern_tech_types_types_gen.Alert & {
|
|
1675
1674
|
fullName?: string;
|
|
1676
1675
|
}>;
|
|
1677
|
-
latest?: Record<string,
|
|
1676
|
+
latest?: Record<string, _northern_tech_types_types_gen.Alert & {
|
|
1678
1677
|
fullName?: string;
|
|
1679
1678
|
}>;
|
|
1680
1679
|
};
|
|
@@ -1756,8 +1755,8 @@ declare const getRolesList: ((state: {
|
|
|
1756
1755
|
}) => {
|
|
1757
1756
|
name: string;
|
|
1758
1757
|
description?: string;
|
|
1759
|
-
permission_sets_with_scope?: Array<
|
|
1760
|
-
permissions?: Array<
|
|
1758
|
+
permission_sets_with_scope?: Array<_northern_tech_types_types_gen.PermissionSetWithScope>;
|
|
1759
|
+
permissions?: Array<_northern_tech_types_types_gen.RolePermission> | undefined;
|
|
1761
1760
|
editable?: boolean;
|
|
1762
1761
|
isCustom?: boolean;
|
|
1763
1762
|
uiPermissions: Readonly<{
|
|
@@ -1777,8 +1776,8 @@ declare const getRolesList: ((state: {
|
|
|
1777
1776
|
resultFunc: (resultFuncArgs_0: Record<string, _northern_tech_utils_constants.Role>) => {
|
|
1778
1777
|
name: string;
|
|
1779
1778
|
description?: string;
|
|
1780
|
-
permission_sets_with_scope?: Array<
|
|
1781
|
-
permissions?: Array<
|
|
1779
|
+
permission_sets_with_scope?: Array<_northern_tech_types_types_gen.PermissionSetWithScope>;
|
|
1780
|
+
permissions?: Array<_northern_tech_types_types_gen.RolePermission> | undefined;
|
|
1782
1781
|
editable?: boolean;
|
|
1783
1782
|
isCustom?: boolean;
|
|
1784
1783
|
uiPermissions: Readonly<{
|
|
@@ -1794,8 +1793,8 @@ declare const getRolesList: ((state: {
|
|
|
1794
1793
|
memoizedResultFunc: ((resultFuncArgs_0: Record<string, _northern_tech_utils_constants.Role>) => {
|
|
1795
1794
|
name: string;
|
|
1796
1795
|
description?: string;
|
|
1797
|
-
permission_sets_with_scope?: Array<
|
|
1798
|
-
permissions?: Array<
|
|
1796
|
+
permission_sets_with_scope?: Array<_northern_tech_types_types_gen.PermissionSetWithScope>;
|
|
1797
|
+
permissions?: Array<_northern_tech_types_types_gen.RolePermission> | undefined;
|
|
1799
1798
|
editable?: boolean;
|
|
1800
1799
|
isCustom?: boolean;
|
|
1801
1800
|
uiPermissions: Readonly<{
|
|
@@ -1815,8 +1814,8 @@ declare const getRolesList: ((state: {
|
|
|
1815
1814
|
lastResult: () => {
|
|
1816
1815
|
name: string;
|
|
1817
1816
|
description?: string;
|
|
1818
|
-
permission_sets_with_scope?: Array<
|
|
1819
|
-
permissions?: Array<
|
|
1817
|
+
permission_sets_with_scope?: Array<_northern_tech_types_types_gen.PermissionSetWithScope>;
|
|
1818
|
+
permissions?: Array<_northern_tech_types_types_gen.RolePermission> | undefined;
|
|
1820
1819
|
editable?: boolean;
|
|
1821
1820
|
isCustom?: boolean;
|
|
1822
1821
|
uiPermissions: Readonly<{
|
|
@@ -1841,4 +1840,4 @@ declare const getRolesList: ((state: {
|
|
|
1841
1840
|
declare const getCurrentSession: (state: RootState) => object | UserSession | undefined;
|
|
1842
1841
|
declare const getRolesInitialized: (state: RootState) => boolean;
|
|
1843
1842
|
|
|
1844
|
-
export { getCurrentSession, getCurrentUser, getGlobalSettings, getHas2FA, getIdAttribute, getIsDarkMode, getOfflineThresholdSettings, getReadAllHelptips, getRolesById, getRolesInitialized, getRolesList, getSelectedDeviceAttribute, getTooltipsById, getTooltipsState, getUserSettings, getUserSettingsInitialized, getUsersById, getUsersList };
|
|
1843
|
+
export { getCurrentSession, getCurrentUser, getGlobalSettings, getGlobalSettingsInitialized, getHas2FA, getIdAttribute, getIsDarkMode, getOfflineThresholdSettings, getReadAllHelptips, getRolesById, getRolesInitialized, getRolesList, getSelectedDeviceAttribute, getTooltipsById, getTooltipsState, getUserSettings, getUserSettingsInitialized, getUsersById, getUsersList };
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import * as _northern_tech_types_RolePermission from '@northern.tech/types/RolePermission';
|
|
2
|
-
import * as _northern_tech_types_PermissionSetWithScope from '@northern.tech/types/PermissionSetWithScope';
|
|
3
1
|
import * as reselect from 'reselect';
|
|
4
2
|
import { ReleaseSliceType } from '../releasesSlice/index.js';
|
|
5
3
|
import { OrganizationState } from '../organizationSlice/types.js';
|
|
6
4
|
import { OnboardingApproach } from '../onboardingSlice/index.js';
|
|
7
|
-
import * as
|
|
5
|
+
import * as _northern_tech_types_types_gen from '@northern.tech/types/types.gen';
|
|
8
6
|
import { Deployment, DeploymentByStatus, DeploymentConfig, SelectionState } from '../deploymentsSlice/index.js';
|
|
9
7
|
import { DeviceSliceType } from '../devicesSlice/index.js';
|
|
10
8
|
import { SearchState, SentryConfig, SnackbarContent, Upload } from '../appSlice/index.js';
|
|
@@ -30,6 +28,7 @@ declare const getTooltipsById: (state: RootState) => Record<string, {
|
|
|
30
28
|
readState: ReadState;
|
|
31
29
|
}>;
|
|
32
30
|
declare const getGlobalSettings: (state: RootState) => GlobalSettings;
|
|
31
|
+
declare const getGlobalSettingsInitialized: (state: RootState) => boolean;
|
|
33
32
|
declare const getUserSettingsInitialized: (state: RootState) => boolean;
|
|
34
33
|
declare const getUsersById: (state: RootState) => Record<string, User>;
|
|
35
34
|
declare const getUsersList: ((state: {
|
|
@@ -83,10 +82,10 @@ declare const getUsersList: ((state: {
|
|
|
83
82
|
total: number;
|
|
84
83
|
};
|
|
85
84
|
byDeviceId: {
|
|
86
|
-
alerts?: Record<string,
|
|
85
|
+
alerts?: Record<string, _northern_tech_types_types_gen.Alert & {
|
|
87
86
|
fullName?: string;
|
|
88
87
|
}>;
|
|
89
|
-
latest?: Record<string,
|
|
88
|
+
latest?: Record<string, _northern_tech_types_types_gen.Alert & {
|
|
90
89
|
fullName?: string;
|
|
91
90
|
}>;
|
|
92
91
|
};
|
|
@@ -237,10 +236,10 @@ declare const getCurrentUser: ((state: {
|
|
|
237
236
|
total: number;
|
|
238
237
|
};
|
|
239
238
|
byDeviceId: {
|
|
240
|
-
alerts?: Record<string,
|
|
239
|
+
alerts?: Record<string, _northern_tech_types_types_gen.Alert & {
|
|
241
240
|
fullName?: string;
|
|
242
241
|
}>;
|
|
243
|
-
latest?: Record<string,
|
|
242
|
+
latest?: Record<string, _northern_tech_types_types_gen.Alert & {
|
|
244
243
|
fullName?: string;
|
|
245
244
|
}>;
|
|
246
245
|
};
|
|
@@ -392,10 +391,10 @@ declare const getSelectedDeviceAttribute: ((state: {
|
|
|
392
391
|
total: number;
|
|
393
392
|
};
|
|
394
393
|
byDeviceId: {
|
|
395
|
-
alerts?: Record<string,
|
|
394
|
+
alerts?: Record<string, _northern_tech_types_types_gen.Alert & {
|
|
396
395
|
fullName?: string;
|
|
397
396
|
}>;
|
|
398
|
-
latest?: Record<string,
|
|
397
|
+
latest?: Record<string, _northern_tech_types_types_gen.Alert & {
|
|
399
398
|
fullName?: string;
|
|
400
399
|
}>;
|
|
401
400
|
};
|
|
@@ -558,10 +557,10 @@ declare const getIsDarkMode: ((state: {
|
|
|
558
557
|
total: number;
|
|
559
558
|
};
|
|
560
559
|
byDeviceId: {
|
|
561
|
-
alerts?: Record<string,
|
|
560
|
+
alerts?: Record<string, _northern_tech_types_types_gen.Alert & {
|
|
562
561
|
fullName?: string;
|
|
563
562
|
}>;
|
|
564
|
-
latest?: Record<string,
|
|
563
|
+
latest?: Record<string, _northern_tech_types_types_gen.Alert & {
|
|
565
564
|
fullName?: string;
|
|
566
565
|
}>;
|
|
567
566
|
};
|
|
@@ -712,10 +711,10 @@ declare const getReadAllHelptips: ((state: {
|
|
|
712
711
|
total: number;
|
|
713
712
|
};
|
|
714
713
|
byDeviceId: {
|
|
715
|
-
alerts?: Record<string,
|
|
714
|
+
alerts?: Record<string, _northern_tech_types_types_gen.Alert & {
|
|
716
715
|
fullName?: string;
|
|
717
716
|
}>;
|
|
718
|
-
latest?: Record<string,
|
|
717
|
+
latest?: Record<string, _northern_tech_types_types_gen.Alert & {
|
|
719
718
|
fullName?: string;
|
|
720
719
|
}>;
|
|
721
720
|
};
|
|
@@ -872,10 +871,10 @@ declare const getTooltipsState: ((state: {
|
|
|
872
871
|
total: number;
|
|
873
872
|
};
|
|
874
873
|
byDeviceId: {
|
|
875
|
-
alerts?: Record<string,
|
|
874
|
+
alerts?: Record<string, _northern_tech_types_types_gen.Alert & {
|
|
876
875
|
fullName?: string;
|
|
877
876
|
}>;
|
|
878
|
-
latest?: Record<string,
|
|
877
|
+
latest?: Record<string, _northern_tech_types_types_gen.Alert & {
|
|
879
878
|
fullName?: string;
|
|
880
879
|
}>;
|
|
881
880
|
};
|
|
@@ -1032,10 +1031,10 @@ declare const getHas2FA: ((state: {
|
|
|
1032
1031
|
total: number;
|
|
1033
1032
|
};
|
|
1034
1033
|
byDeviceId: {
|
|
1035
|
-
alerts?: Record<string,
|
|
1034
|
+
alerts?: Record<string, _northern_tech_types_types_gen.Alert & {
|
|
1036
1035
|
fullName?: string;
|
|
1037
1036
|
}>;
|
|
1038
|
-
latest?: Record<string,
|
|
1037
|
+
latest?: Record<string, _northern_tech_types_types_gen.Alert & {
|
|
1039
1038
|
fullName?: string;
|
|
1040
1039
|
}>;
|
|
1041
1040
|
};
|
|
@@ -1177,10 +1176,10 @@ declare const getHas2FA: ((state: {
|
|
|
1177
1176
|
total: number;
|
|
1178
1177
|
};
|
|
1179
1178
|
byDeviceId: {
|
|
1180
|
-
alerts?: Record<string,
|
|
1179
|
+
alerts?: Record<string, _northern_tech_types_types_gen.Alert & {
|
|
1181
1180
|
fullName?: string;
|
|
1182
1181
|
}>;
|
|
1183
|
-
latest?: Record<string,
|
|
1182
|
+
latest?: Record<string, _northern_tech_types_types_gen.Alert & {
|
|
1184
1183
|
fullName?: string;
|
|
1185
1184
|
}>;
|
|
1186
1185
|
};
|
|
@@ -1339,10 +1338,10 @@ declare const getIdAttribute: ((state: {
|
|
|
1339
1338
|
total: number;
|
|
1340
1339
|
};
|
|
1341
1340
|
byDeviceId: {
|
|
1342
|
-
alerts?: Record<string,
|
|
1341
|
+
alerts?: Record<string, _northern_tech_types_types_gen.Alert & {
|
|
1343
1342
|
fullName?: string;
|
|
1344
1343
|
}>;
|
|
1345
|
-
latest?: Record<string,
|
|
1344
|
+
latest?: Record<string, _northern_tech_types_types_gen.Alert & {
|
|
1346
1345
|
fullName?: string;
|
|
1347
1346
|
}>;
|
|
1348
1347
|
};
|
|
@@ -1505,10 +1504,10 @@ declare const getOfflineThresholdSettings: ((state: {
|
|
|
1505
1504
|
total: number;
|
|
1506
1505
|
};
|
|
1507
1506
|
byDeviceId: {
|
|
1508
|
-
alerts?: Record<string,
|
|
1507
|
+
alerts?: Record<string, _northern_tech_types_types_gen.Alert & {
|
|
1509
1508
|
fullName?: string;
|
|
1510
1509
|
}>;
|
|
1511
|
-
latest?: Record<string,
|
|
1510
|
+
latest?: Record<string, _northern_tech_types_types_gen.Alert & {
|
|
1512
1511
|
fullName?: string;
|
|
1513
1512
|
}>;
|
|
1514
1513
|
};
|
|
@@ -1671,10 +1670,10 @@ declare const getRolesList: ((state: {
|
|
|
1671
1670
|
total: number;
|
|
1672
1671
|
};
|
|
1673
1672
|
byDeviceId: {
|
|
1674
|
-
alerts?: Record<string,
|
|
1673
|
+
alerts?: Record<string, _northern_tech_types_types_gen.Alert & {
|
|
1675
1674
|
fullName?: string;
|
|
1676
1675
|
}>;
|
|
1677
|
-
latest?: Record<string,
|
|
1676
|
+
latest?: Record<string, _northern_tech_types_types_gen.Alert & {
|
|
1678
1677
|
fullName?: string;
|
|
1679
1678
|
}>;
|
|
1680
1679
|
};
|
|
@@ -1756,8 +1755,8 @@ declare const getRolesList: ((state: {
|
|
|
1756
1755
|
}) => {
|
|
1757
1756
|
name: string;
|
|
1758
1757
|
description?: string;
|
|
1759
|
-
permission_sets_with_scope?: Array<
|
|
1760
|
-
permissions?: Array<
|
|
1758
|
+
permission_sets_with_scope?: Array<_northern_tech_types_types_gen.PermissionSetWithScope>;
|
|
1759
|
+
permissions?: Array<_northern_tech_types_types_gen.RolePermission> | undefined;
|
|
1761
1760
|
editable?: boolean;
|
|
1762
1761
|
isCustom?: boolean;
|
|
1763
1762
|
uiPermissions: Readonly<{
|
|
@@ -1777,8 +1776,8 @@ declare const getRolesList: ((state: {
|
|
|
1777
1776
|
resultFunc: (resultFuncArgs_0: Record<string, _northern_tech_utils_constants.Role>) => {
|
|
1778
1777
|
name: string;
|
|
1779
1778
|
description?: string;
|
|
1780
|
-
permission_sets_with_scope?: Array<
|
|
1781
|
-
permissions?: Array<
|
|
1779
|
+
permission_sets_with_scope?: Array<_northern_tech_types_types_gen.PermissionSetWithScope>;
|
|
1780
|
+
permissions?: Array<_northern_tech_types_types_gen.RolePermission> | undefined;
|
|
1782
1781
|
editable?: boolean;
|
|
1783
1782
|
isCustom?: boolean;
|
|
1784
1783
|
uiPermissions: Readonly<{
|
|
@@ -1794,8 +1793,8 @@ declare const getRolesList: ((state: {
|
|
|
1794
1793
|
memoizedResultFunc: ((resultFuncArgs_0: Record<string, _northern_tech_utils_constants.Role>) => {
|
|
1795
1794
|
name: string;
|
|
1796
1795
|
description?: string;
|
|
1797
|
-
permission_sets_with_scope?: Array<
|
|
1798
|
-
permissions?: Array<
|
|
1796
|
+
permission_sets_with_scope?: Array<_northern_tech_types_types_gen.PermissionSetWithScope>;
|
|
1797
|
+
permissions?: Array<_northern_tech_types_types_gen.RolePermission> | undefined;
|
|
1799
1798
|
editable?: boolean;
|
|
1800
1799
|
isCustom?: boolean;
|
|
1801
1800
|
uiPermissions: Readonly<{
|
|
@@ -1815,8 +1814,8 @@ declare const getRolesList: ((state: {
|
|
|
1815
1814
|
lastResult: () => {
|
|
1816
1815
|
name: string;
|
|
1817
1816
|
description?: string;
|
|
1818
|
-
permission_sets_with_scope?: Array<
|
|
1819
|
-
permissions?: Array<
|
|
1817
|
+
permission_sets_with_scope?: Array<_northern_tech_types_types_gen.PermissionSetWithScope>;
|
|
1818
|
+
permissions?: Array<_northern_tech_types_types_gen.RolePermission> | undefined;
|
|
1820
1819
|
editable?: boolean;
|
|
1821
1820
|
isCustom?: boolean;
|
|
1822
1821
|
uiPermissions: Readonly<{
|
|
@@ -1841,4 +1840,4 @@ declare const getRolesList: ((state: {
|
|
|
1841
1840
|
declare const getCurrentSession: (state: RootState) => object | UserSession | undefined;
|
|
1842
1841
|
declare const getRolesInitialized: (state: RootState) => boolean;
|
|
1843
1842
|
|
|
1844
|
-
export { getCurrentSession, getCurrentUser, getGlobalSettings, getHas2FA, getIdAttribute, getIsDarkMode, getOfflineThresholdSettings, getReadAllHelptips, getRolesById, getRolesInitialized, getRolesList, getSelectedDeviceAttribute, getTooltipsById, getTooltipsState, getUserSettings, getUserSettingsInitialized, getUsersById, getUsersList };
|
|
1843
|
+
export { getCurrentSession, getCurrentUser, getGlobalSettings, getGlobalSettingsInitialized, getHas2FA, getIdAttribute, getIsDarkMode, getOfflineThresholdSettings, getReadAllHelptips, getRolesById, getRolesInitialized, getRolesList, getSelectedDeviceAttribute, getTooltipsById, getTooltipsState, getUserSettings, getUserSettingsInitialized, getUsersById, getUsersList };
|
|
@@ -2,6 +2,7 @@ import {
|
|
|
2
2
|
getCurrentSession,
|
|
3
3
|
getCurrentUser,
|
|
4
4
|
getGlobalSettings,
|
|
5
|
+
getGlobalSettingsInitialized,
|
|
5
6
|
getHas2FA,
|
|
6
7
|
getIdAttribute,
|
|
7
8
|
getIsDarkMode,
|
|
@@ -17,17 +18,18 @@ import {
|
|
|
17
18
|
getUserSettingsInitialized,
|
|
18
19
|
getUsersById,
|
|
19
20
|
getUsersList
|
|
20
|
-
} from "../chunk-
|
|
21
|
-
import "../chunk-
|
|
22
|
-
import "../chunk-
|
|
21
|
+
} from "../chunk-VIV6U46F.js";
|
|
22
|
+
import "../chunk-XZDCXV4H.js";
|
|
23
|
+
import "../chunk-YEQ7D6AW.js";
|
|
23
24
|
import "../chunk-2DYA3X77.js";
|
|
24
25
|
import "../chunk-FAJ3I2UQ.js";
|
|
25
26
|
import "../chunk-ZKAH3APE.js";
|
|
26
|
-
import "../chunk-
|
|
27
|
+
import "../chunk-N3XU7WJM.js";
|
|
27
28
|
export {
|
|
28
29
|
getCurrentSession,
|
|
29
30
|
getCurrentUser,
|
|
30
31
|
getGlobalSettings,
|
|
32
|
+
getGlobalSettingsInitialized,
|
|
31
33
|
getHas2FA,
|
|
32
34
|
getIdAttribute,
|
|
33
35
|
getIsDarkMode,
|
|
@@ -209,7 +209,6 @@ var DARK_MODE = "dark";
|
|
|
209
209
|
|
|
210
210
|
// src/commonConstants.tsx
|
|
211
211
|
var import_js = require("@mdi/js");
|
|
212
|
-
var import_MenderTypes = require("@northern.tech/types/MenderTypes");
|
|
213
212
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
214
213
|
var timeUnits = {
|
|
215
214
|
days: "days",
|
|
@@ -233,9 +232,9 @@ var TIMEOUTS = {
|
|
|
233
232
|
var DEVICE_ONLINE_CUTOFF = { interval: 1, intervalName: timeUnits.days };
|
|
234
233
|
var defaultIdAttribute = Object.freeze({ attribute: "id", scope: import_constants5.ATTRIBUTE_SCOPES.identity });
|
|
235
234
|
var credentialTypes = {
|
|
236
|
-
aws:
|
|
237
|
-
http:
|
|
238
|
-
sas:
|
|
235
|
+
aws: "aws",
|
|
236
|
+
http: "http",
|
|
237
|
+
sas: "sas",
|
|
239
238
|
x509: "x509"
|
|
240
239
|
};
|
|
241
240
|
var EXTERNAL_PROVIDER = {
|
|
@@ -283,7 +282,7 @@ var EXTERNAL_PROVIDER = {
|
|
|
283
282
|
};
|
|
284
283
|
var emptyWebhook = {
|
|
285
284
|
description: "",
|
|
286
|
-
provider:
|
|
285
|
+
provider: "webhook",
|
|
287
286
|
credentials: {
|
|
288
287
|
type: EXTERNAL_PROVIDER.webhook.credentialsType,
|
|
289
288
|
[EXTERNAL_PROVIDER.webhook.credentialsType]: {
|
|
@@ -1819,9 +1818,9 @@ var getIsUploading = (0, import_toolkit9.createSelector)([getUploads], (uploadsB
|
|
|
1819
1818
|
var getSearchedDevices = (0, import_toolkit9.createSelector)([getSearchState], ({ deviceIds }) => deviceIds);
|
|
1820
1819
|
var getVersionInformation = (0, import_toolkit9.createSelector)(
|
|
1821
1820
|
[getFullVersionInformation, getFeatures],
|
|
1822
|
-
({ Integration
|
|
1821
|
+
({ Integration, ...remainder }, { isHosted }) => isHosted && Integration !== "next" ? remainder : { ...remainder, Integration }
|
|
1823
1822
|
);
|
|
1824
|
-
var getIsPreview = (0, import_toolkit9.createSelector)([getFullVersionInformation], ({ Integration
|
|
1823
|
+
var getIsPreview = (0, import_toolkit9.createSelector)([getFullVersionInformation], ({ Integration }) => (0, import_helpers2.versionCompare)(Integration, "next") > -1);
|
|
1825
1824
|
|
|
1826
1825
|
// src/commonSelectors.ts
|
|
1827
1826
|
var import_helpers5 = require("@northern.tech/utils/helpers");
|
|
@@ -2619,6 +2618,8 @@ var transformDeployments = (deployments, deploymentsById) => deployments.sort((0
|
|
|
2619
2618
|
...deploymentPrototype,
|
|
2620
2619
|
...deploymentsById[item.id],
|
|
2621
2620
|
...item,
|
|
2621
|
+
// TODO: explicitly set filter term types to address scope type mismatch in deployment specs
|
|
2622
|
+
// @ts-expect-error: type misalignment in filter terms type
|
|
2622
2623
|
filter: filter ? { ...filter, name: filter.name ?? filter.id, filters: mapTermsToFilters(filter.terms) } : void 0,
|
|
2623
2624
|
name: decodeURIComponent(item.name)
|
|
2624
2625
|
};
|