@northern.tech/store 0.11.0 → 0.13.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 +22 -17
- package/dist/actions.cjs.map +1 -1
- package/dist/actions.d.cts +7 -22
- package/dist/actions.d.ts +7 -22
- package/dist/actions.js +9 -9
- package/dist/api/general-api.js +1 -1
- package/dist/api/users-api.js +1 -1
- package/dist/appSlice/index.cjs.map +1 -1
- package/dist/appSlice/index.d.cts +1 -1
- package/dist/appSlice/index.d.ts +1 -1
- package/dist/appSlice/index.js +2 -2
- package/dist/appSlice/mocks.cjs.map +1 -1
- package/dist/appSlice/mocks.js +2 -2
- package/dist/appSlice/selectors.d.cts +34 -528
- package/dist/appSlice/selectors.d.ts +34 -528
- package/dist/appSlice/thunks.cjs +49 -42
- package/dist/appSlice/thunks.cjs.map +1 -1
- package/dist/appSlice/thunks.d.cts +5 -3
- package/dist/appSlice/thunks.d.ts +5 -3
- package/dist/appSlice/thunks.js +18 -18
- package/dist/auth.js +1 -1
- package/dist/{chunk-QOFVCPRW.js → chunk-5PUF4LA5.js} +1 -1
- package/dist/chunk-5PUF4LA5.js.map +1 -0
- package/dist/{chunk-X3NF4KNC.js → chunk-6KAV62BW.js} +6 -6
- package/dist/{chunk-OFGCC3GM.js → chunk-7MTM3BDT.js} +1 -1
- package/dist/chunk-7MTM3BDT.js.map +1 -0
- package/dist/{chunk-4FNSLYK5.js → chunk-AR4FTKSL.js} +14 -14
- package/dist/{chunk-6KNRR7A5.js → chunk-BZAXFAGT.js} +4 -4
- package/dist/{chunk-ZNAJKEP2.js → chunk-CQXDAXQF.js} +1 -1
- package/dist/chunk-CQXDAXQF.js.map +1 -0
- package/dist/{chunk-I3H5EFZK.js → chunk-EOZ665GA.js} +15 -15
- package/dist/{chunk-NVNO3I3K.js → chunk-ETZVJXPD.js} +36 -41
- package/dist/chunk-ETZVJXPD.js.map +1 -0
- package/dist/{chunk-RFF52JYU.js → chunk-KJ4BPXMB.js} +3 -2
- package/dist/chunk-KJ4BPXMB.js.map +1 -0
- package/dist/{chunk-C2LGE3P6.js → chunk-OLKM53RL.js} +1 -1
- package/dist/chunk-OLKM53RL.js.map +1 -0
- package/dist/{chunk-HLX5L3IM.js → chunk-PVCHKW35.js} +1 -1
- package/dist/chunk-PVCHKW35.js.map +1 -0
- package/dist/{chunk-REZWSU22.js → chunk-VODRLEDP.js} +21 -17
- package/dist/chunk-VODRLEDP.js.map +1 -0
- package/dist/{chunk-MH5WPYQI.js → chunk-X7NEALMI.js} +16 -9
- package/dist/chunk-X7NEALMI.js.map +1 -0
- package/dist/{chunk-CUU3N6KW.js → chunk-YFAIYNQG.js} +16 -16
- package/dist/commonConstants.js +1 -1
- package/dist/commonSelectors.cjs +15 -8
- package/dist/commonSelectors.cjs.map +1 -1
- package/dist/commonSelectors.d.cts +178 -3523
- package/dist/commonSelectors.d.ts +178 -3523
- package/dist/commonSelectors.js +6 -6
- package/dist/constants.js +1 -1
- package/dist/deploymentsSlice/constants.js +1 -1
- package/dist/deploymentsSlice/index.cjs.map +1 -1
- package/dist/deploymentsSlice/index.d.cts +1 -1
- package/dist/deploymentsSlice/index.d.ts +1 -1
- package/dist/deploymentsSlice/index.js +2 -2
- package/dist/deploymentsSlice/mocks.cjs.map +1 -1
- package/dist/deploymentsSlice/mocks.js +2 -2
- package/dist/deploymentsSlice/selectors.d.cts +16 -138
- package/dist/deploymentsSlice/selectors.d.ts +16 -138
- package/dist/deploymentsSlice/selectors.js +1 -1
- package/dist/deploymentsSlice/thunks.cjs +49 -42
- package/dist/deploymentsSlice/thunks.cjs.map +1 -1
- package/dist/deploymentsSlice/thunks.d.cts +4 -2
- package/dist/deploymentsSlice/thunks.d.ts +4 -2
- package/dist/deploymentsSlice/thunks.js +18 -18
- package/dist/devicesSlice/constants.js +1 -1
- package/dist/devicesSlice/index.cjs +20 -16
- package/dist/devicesSlice/index.cjs.map +1 -1
- package/dist/devicesSlice/index.d.cts +11 -20
- package/dist/devicesSlice/index.d.ts +11 -20
- package/dist/devicesSlice/index.js +2 -2
- package/dist/devicesSlice/mocks.cjs +24 -22
- package/dist/devicesSlice/mocks.cjs.map +1 -1
- package/dist/devicesSlice/mocks.d.cts +20 -12
- package/dist/devicesSlice/mocks.d.ts +20 -12
- package/dist/devicesSlice/mocks.js +6 -8
- package/dist/devicesSlice/mocks.js.map +1 -1
- package/dist/devicesSlice/selectors.cjs +15 -8
- package/dist/devicesSlice/selectors.cjs.map +1 -1
- package/dist/devicesSlice/selectors.d.cts +207 -1730
- package/dist/devicesSlice/selectors.d.ts +207 -1730
- package/dist/devicesSlice/selectors.js +2 -2
- package/dist/devicesSlice/thunks.cjs +49 -44
- package/dist/devicesSlice/thunks.cjs.map +1 -1
- package/dist/devicesSlice/thunks.d.cts +12 -46
- package/dist/devicesSlice/thunks.d.ts +12 -46
- package/dist/devicesSlice/thunks.js +18 -20
- package/dist/liststatehook.js +1 -1
- package/dist/locationutils.js +1 -1
- package/dist/monitorSlice/index.cjs.map +1 -1
- package/dist/monitorSlice/index.d.cts +1 -1
- package/dist/monitorSlice/index.d.ts +1 -1
- package/dist/monitorSlice/index.js +2 -2
- package/dist/monitorSlice/mocks.cjs.map +1 -1
- package/dist/monitorSlice/mocks.js +2 -2
- package/dist/monitorSlice/thunks.cjs +37 -25
- package/dist/monitorSlice/thunks.cjs.map +1 -1
- package/dist/monitorSlice/thunks.d.cts +3 -2
- package/dist/monitorSlice/thunks.d.ts +3 -2
- package/dist/monitorSlice/thunks.js +16 -16
- package/dist/onboardingSlice/index.cjs.map +1 -1
- package/dist/onboardingSlice/index.d.cts +1 -1
- package/dist/onboardingSlice/index.d.ts +1 -1
- package/dist/onboardingSlice/index.js +1 -1
- package/dist/onboardingSlice/mocks.cjs.map +1 -1
- package/dist/onboardingSlice/mocks.js +1 -1
- package/dist/onboardingSlice/thunks.cjs +49 -42
- package/dist/onboardingSlice/thunks.cjs.map +1 -1
- package/dist/onboardingSlice/thunks.d.cts +7 -15
- package/dist/onboardingSlice/thunks.d.ts +7 -15
- package/dist/onboardingSlice/thunks.js +18 -18
- package/dist/organizationSlice/constants.js +1 -1
- package/dist/organizationSlice/index.cjs.map +1 -1
- package/dist/organizationSlice/index.d.cts +41 -31
- package/dist/organizationSlice/index.d.ts +41 -31
- package/dist/organizationSlice/index.js +2 -2
- package/dist/organizationSlice/mocks.cjs.map +1 -1
- package/dist/organizationSlice/mocks.js +2 -2
- package/dist/organizationSlice/selectors.d.cts +42 -659
- package/dist/organizationSlice/selectors.d.ts +42 -659
- package/dist/organizationSlice/selectors.js +1 -1
- package/dist/organizationSlice/thunks.cjs +51 -44
- package/dist/organizationSlice/thunks.cjs.map +1 -1
- package/dist/organizationSlice/thunks.d.cts +4 -1
- package/dist/organizationSlice/thunks.d.ts +4 -1
- package/dist/organizationSlice/thunks.js +18 -18
- package/dist/organizationSlice/types.cjs.map +1 -1
- package/dist/organizationSlice/types.d.cts +2 -12
- package/dist/organizationSlice/types.d.ts +2 -12
- package/dist/releasesSlice/index.js +1 -1
- package/dist/releasesSlice/mocks.d.cts +7 -1
- package/dist/releasesSlice/mocks.d.ts +7 -1
- package/dist/releasesSlice/mocks.js +1 -1
- package/dist/releasesSlice/selectors.d.cts +155 -930
- package/dist/releasesSlice/selectors.d.ts +155 -930
- package/dist/releasesSlice/selectors.js +1 -1
- package/dist/releasesSlice/thunks.cjs +37 -25
- package/dist/releasesSlice/thunks.cjs.map +1 -1
- package/dist/releasesSlice/thunks.d.cts +4 -2
- package/dist/releasesSlice/thunks.d.ts +4 -2
- package/dist/releasesSlice/thunks.js +16 -16
- package/dist/selectors.cjs +15 -8
- package/dist/selectors.cjs.map +1 -1
- package/dist/selectors.d.cts +6 -3
- package/dist/selectors.d.ts +6 -3
- package/dist/selectors.js +33 -33
- package/dist/sockethook.cjs +1 -1
- package/dist/sockethook.cjs.map +1 -1
- package/dist/sockethook.js +2 -2
- package/dist/sockethook.js.map +1 -1
- package/dist/store.cjs +22 -17
- package/dist/store.cjs.map +1 -1
- package/dist/store.d.cts +40 -658
- package/dist/store.d.ts +40 -658
- package/dist/store.js +10 -10
- package/dist/storehooks.cjs +52 -45
- package/dist/storehooks.cjs.map +1 -1
- package/dist/storehooks.js +19 -19
- package/dist/thunks.cjs +49 -44
- package/dist/thunks.cjs.map +1 -1
- package/dist/thunks.d.cts +7 -5
- package/dist/thunks.d.ts +7 -5
- package/dist/thunks.js +18 -20
- package/dist/useDeploymentDevice.cjs +49 -42
- package/dist/useDeploymentDevice.cjs.map +1 -1
- package/dist/useDeploymentDevice.js +19 -19
- package/dist/usersSlice/constants.js +1 -1
- package/dist/usersSlice/index.cjs +2 -1
- package/dist/usersSlice/index.cjs.map +1 -1
- package/dist/usersSlice/index.d.cts +47 -46
- package/dist/usersSlice/index.d.ts +47 -46
- package/dist/usersSlice/index.js +2 -2
- package/dist/usersSlice/mocks.cjs +2 -1
- package/dist/usersSlice/mocks.cjs.map +1 -1
- package/dist/usersSlice/mocks.js +2 -2
- package/dist/usersSlice/selectors.d.cts +75 -1436
- package/dist/usersSlice/selectors.d.ts +75 -1436
- package/dist/usersSlice/selectors.js +1 -1
- package/dist/usersSlice/thunks.cjs +49 -42
- package/dist/usersSlice/thunks.cjs.map +1 -1
- package/dist/usersSlice/thunks.d.cts +3 -1
- package/dist/usersSlice/thunks.d.ts +3 -1
- package/dist/usersSlice/thunks.js +18 -18
- package/dist/utils.js +1 -1
- package/package.json +4 -4
- package/dist/chunk-C2LGE3P6.js.map +0 -1
- package/dist/chunk-HLX5L3IM.js.map +0 -1
- package/dist/chunk-MH5WPYQI.js.map +0 -1
- package/dist/chunk-NVNO3I3K.js.map +0 -1
- package/dist/chunk-OFGCC3GM.js.map +0 -1
- package/dist/chunk-QOFVCPRW.js.map +0 -1
- package/dist/chunk-REZWSU22.js.map +0 -1
- package/dist/chunk-RFF52JYU.js.map +0 -1
- package/dist/chunk-ZNAJKEP2.js.map +0 -1
- /package/dist/{chunk-X3NF4KNC.js.map → chunk-6KAV62BW.js.map} +0 -0
- /package/dist/{chunk-4FNSLYK5.js.map → chunk-AR4FTKSL.js.map} +0 -0
- /package/dist/{chunk-6KNRR7A5.js.map → chunk-BZAXFAGT.js.map} +0 -0
- /package/dist/{chunk-I3H5EFZK.js.map → chunk-EOZ665GA.js.map} +0 -0
- /package/dist/{chunk-CUU3N6KW.js.map → chunk-YFAIYNQG.js.map} +0 -0
package/dist/thunks.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { getLatestReleaseInfo, setFirstLoginAfterSignup, setOfflineThreshold, setSearchState } from './appSlice/thunks.cjs';
|
|
2
2
|
export { GetDeploymentsByStatusPayload, abortDeployment, createDeployment, deriveDeploymentGroup, generateDeploymentLogAnalysis, getDeploymentDevices, getDeploymentsByStatus, getDeploymentsConfig, getDeviceDeployments, getDeviceLog, getSingleDeployment, resetDeviceDeployments, saveDeltaDeploymentsConfig, setDeploymentsState, updateDeploymentControlMap } from './deploymentsSlice/thunks.cjs';
|
|
3
|
-
export { addDevicesToGroup, addDynamicGroup, addStaticGroup, applyDeviceConfig, decommissionDevice, deleteAuthset, deviceFileUpload, getAllDeviceCounts, getAllDevicesByStatus, getAllDynamicGroupDevices, getAllGroupDevices, getDeviceAttributes, getDeviceAuth, getDeviceById, getDeviceConfig, getDeviceConnect,
|
|
3
|
+
export { addDevicesToGroup, addDynamicGroup, addStaticGroup, applyDeviceConfig, decommissionDevice, deleteAuthset, deviceFileUpload, getAllDeviceCounts, getAllDevicesByStatus, getAllDynamicGroupDevices, getAllGroupDevices, getDeviceAttributes, getDeviceAuth, getDeviceById, getDeviceConfig, getDeviceConnect, getDeviceFileDownloadLink, getDeviceInfo, getDeviceLimits, getDeviceTwin, getDevicesByStatus, getDevicesWithAuth, getDynamicGroups, getGatewayDevices, getGroupDevices, getGroups, getReportDataWithoutBackendSupport, getSessionDetails, getSystemDevices, preauthDevice, removeDevicesFromGroup, removeDynamicGroup, removeStaticGroup, searchDevices, selectGroup, setDeviceConfig, setDeviceListState, setDeviceTags, setDeviceTwin, triggerDeviceUpdate, updateDeviceAuth, updateDevicesAuth, updateDynamicGroup, updateReportData } from './devicesSlice/thunks.cjs';
|
|
4
4
|
export { changeNotificationSetting, getDeviceAlerts, getDeviceMonitorConfig, getIssueCountsByType, getLatestDeviceAlerts } from './monitorSlice/thunks.cjs';
|
|
5
5
|
export { advanceOnboarding, getOnboardingState, setOnboardingApproach, setOnboardingCanceled, setOnboardingComplete, setOnboardingDeviceType } from './onboardingSlice/thunks.cjs';
|
|
6
6
|
export { addTenant, cancelRequest, cancelUpgrade, changeIntegration, changeSsoConfig, completeUpgrade, confirmCardUpdate, createBillingProfile, createIntegration, createOrganizationTrial, deleteIntegration, deleteSsoConfig, downloadLicenseReport, editBillingProfile, editTenantDeviceLimit, getAuditLogs, getAuditLogsCsvLink, getBillingPreview, getCurrentCard, getCurrentSubscription, getIntegrations, getSsoConfigById, getSsoConfigs, getTargetLocation, getTenants, getUserBilling, getUserOrganization, getUserSubscription, getWebhookEvents, removeTenant, requestPlanChange, requestPlanUpgrade, sendSupportMessage, setAuditlogsState, setTenantsListState, startCardUpdate, startUpgrade, storeSsoConfig, tenantDataDivergedMessage } from './organizationSlice/thunks.cjs';
|
|
@@ -10,25 +10,27 @@ import '@reduxjs/toolkit';
|
|
|
10
10
|
import './store.cjs';
|
|
11
11
|
import 'redux-thunk';
|
|
12
12
|
import 'redux';
|
|
13
|
-
import '@northern.tech/utils/constants';
|
|
14
|
-
import './usersSlice/constants.cjs';
|
|
15
13
|
import './usersSlice/index.cjs';
|
|
16
14
|
import 'immer';
|
|
17
15
|
import '@northern.tech/types/MenderTypes';
|
|
16
|
+
import '@northern.tech/utils/constants';
|
|
18
17
|
import './commonConstants.cjs';
|
|
19
18
|
import 'react/jsx-runtime';
|
|
19
|
+
import './usersSlice/constants.cjs';
|
|
20
20
|
import './releasesSlice/index.cjs';
|
|
21
|
+
import './organizationSlice/index.cjs';
|
|
21
22
|
import './organizationSlice/types.cjs';
|
|
22
23
|
import './appSlice/constants.cjs';
|
|
23
24
|
import '@mui/material/OverridableComponent';
|
|
24
25
|
import '@mui/material';
|
|
25
26
|
import './organizationSlice/constants.cjs';
|
|
26
27
|
import './onboardingSlice/index.cjs';
|
|
27
|
-
import '
|
|
28
|
+
import './monitorSlice/index.cjs';
|
|
29
|
+
import './monitorSlice/constants.cjs';
|
|
28
30
|
import './deploymentsSlice/index.cjs';
|
|
29
31
|
import './devicesSlice/index.cjs';
|
|
30
32
|
import './devicesSlice/constants.cjs';
|
|
31
33
|
import './appSlice/index.cjs';
|
|
32
|
-
import './monitorSlice/constants.cjs';
|
|
33
34
|
import './onboardingSlice/constants.cjs';
|
|
35
|
+
import '@northern.tech/types/types.gen';
|
|
34
36
|
import 'axios';
|
package/dist/thunks.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { getLatestReleaseInfo, setFirstLoginAfterSignup, setOfflineThreshold, setSearchState } from './appSlice/thunks.js';
|
|
2
2
|
export { GetDeploymentsByStatusPayload, abortDeployment, createDeployment, deriveDeploymentGroup, generateDeploymentLogAnalysis, getDeploymentDevices, getDeploymentsByStatus, getDeploymentsConfig, getDeviceDeployments, getDeviceLog, getSingleDeployment, resetDeviceDeployments, saveDeltaDeploymentsConfig, setDeploymentsState, updateDeploymentControlMap } from './deploymentsSlice/thunks.js';
|
|
3
|
-
export { addDevicesToGroup, addDynamicGroup, addStaticGroup, applyDeviceConfig, decommissionDevice, deleteAuthset, deviceFileUpload, getAllDeviceCounts, getAllDevicesByStatus, getAllDynamicGroupDevices, getAllGroupDevices, getDeviceAttributes, getDeviceAuth, getDeviceById, getDeviceConfig, getDeviceConnect,
|
|
3
|
+
export { addDevicesToGroup, addDynamicGroup, addStaticGroup, applyDeviceConfig, decommissionDevice, deleteAuthset, deviceFileUpload, getAllDeviceCounts, getAllDevicesByStatus, getAllDynamicGroupDevices, getAllGroupDevices, getDeviceAttributes, getDeviceAuth, getDeviceById, getDeviceConfig, getDeviceConnect, getDeviceFileDownloadLink, getDeviceInfo, getDeviceLimits, getDeviceTwin, getDevicesByStatus, getDevicesWithAuth, getDynamicGroups, getGatewayDevices, getGroupDevices, getGroups, getReportDataWithoutBackendSupport, getSessionDetails, getSystemDevices, preauthDevice, removeDevicesFromGroup, removeDynamicGroup, removeStaticGroup, searchDevices, selectGroup, setDeviceConfig, setDeviceListState, setDeviceTags, setDeviceTwin, triggerDeviceUpdate, updateDeviceAuth, updateDevicesAuth, updateDynamicGroup, updateReportData } from './devicesSlice/thunks.js';
|
|
4
4
|
export { changeNotificationSetting, getDeviceAlerts, getDeviceMonitorConfig, getIssueCountsByType, getLatestDeviceAlerts } from './monitorSlice/thunks.js';
|
|
5
5
|
export { advanceOnboarding, getOnboardingState, setOnboardingApproach, setOnboardingCanceled, setOnboardingComplete, setOnboardingDeviceType } from './onboardingSlice/thunks.js';
|
|
6
6
|
export { addTenant, cancelRequest, cancelUpgrade, changeIntegration, changeSsoConfig, completeUpgrade, confirmCardUpdate, createBillingProfile, createIntegration, createOrganizationTrial, deleteIntegration, deleteSsoConfig, downloadLicenseReport, editBillingProfile, editTenantDeviceLimit, getAuditLogs, getAuditLogsCsvLink, getBillingPreview, getCurrentCard, getCurrentSubscription, getIntegrations, getSsoConfigById, getSsoConfigs, getTargetLocation, getTenants, getUserBilling, getUserOrganization, getUserSubscription, getWebhookEvents, removeTenant, requestPlanChange, requestPlanUpgrade, sendSupportMessage, setAuditlogsState, setTenantsListState, startCardUpdate, startUpgrade, storeSsoConfig, tenantDataDivergedMessage } from './organizationSlice/thunks.js';
|
|
@@ -10,25 +10,27 @@ import '@reduxjs/toolkit';
|
|
|
10
10
|
import './store.js';
|
|
11
11
|
import 'redux-thunk';
|
|
12
12
|
import 'redux';
|
|
13
|
-
import '@northern.tech/utils/constants';
|
|
14
|
-
import './usersSlice/constants.js';
|
|
15
13
|
import './usersSlice/index.js';
|
|
16
14
|
import 'immer';
|
|
17
15
|
import '@northern.tech/types/MenderTypes';
|
|
16
|
+
import '@northern.tech/utils/constants';
|
|
18
17
|
import './commonConstants.js';
|
|
19
18
|
import 'react/jsx-runtime';
|
|
19
|
+
import './usersSlice/constants.js';
|
|
20
20
|
import './releasesSlice/index.js';
|
|
21
|
+
import './organizationSlice/index.js';
|
|
21
22
|
import './organizationSlice/types.js';
|
|
22
23
|
import './appSlice/constants.js';
|
|
23
24
|
import '@mui/material/OverridableComponent';
|
|
24
25
|
import '@mui/material';
|
|
25
26
|
import './organizationSlice/constants.js';
|
|
26
27
|
import './onboardingSlice/index.js';
|
|
27
|
-
import '
|
|
28
|
+
import './monitorSlice/index.js';
|
|
29
|
+
import './monitorSlice/constants.js';
|
|
28
30
|
import './deploymentsSlice/index.js';
|
|
29
31
|
import './devicesSlice/index.js';
|
|
30
32
|
import './devicesSlice/constants.js';
|
|
31
33
|
import './appSlice/index.js';
|
|
32
|
-
import './monitorSlice/constants.js';
|
|
33
34
|
import './onboardingSlice/constants.js';
|
|
35
|
+
import '@northern.tech/types/types.gen';
|
|
34
36
|
import 'axios';
|
package/dist/thunks.js
CHANGED
|
@@ -53,7 +53,6 @@ import {
|
|
|
53
53
|
getDeviceById,
|
|
54
54
|
getDeviceConfig,
|
|
55
55
|
getDeviceConnect,
|
|
56
|
-
getDeviceCount,
|
|
57
56
|
getDeviceDeployments,
|
|
58
57
|
getDeviceFileDownloadLink,
|
|
59
58
|
getDeviceInfo,
|
|
@@ -144,7 +143,7 @@ import {
|
|
|
144
143
|
verify2FA,
|
|
145
144
|
verifyEmailComplete,
|
|
146
145
|
verifyEmailStart
|
|
147
|
-
} from "./chunk-
|
|
146
|
+
} from "./chunk-ETZVJXPD.js";
|
|
148
147
|
import {
|
|
149
148
|
cancelFileUpload,
|
|
150
149
|
createArtifact,
|
|
@@ -167,43 +166,43 @@ import {
|
|
|
167
166
|
setSingleReleaseTags,
|
|
168
167
|
updateReleaseInfo,
|
|
169
168
|
uploadArtifact
|
|
170
|
-
} from "./chunk-
|
|
169
|
+
} from "./chunk-BZAXFAGT.js";
|
|
171
170
|
import {
|
|
172
171
|
changeNotificationSetting,
|
|
173
172
|
getDeviceAlerts,
|
|
174
173
|
getDeviceMonitorConfig,
|
|
175
174
|
getIssueCountsByType,
|
|
176
175
|
getLatestDeviceAlerts
|
|
177
|
-
} from "./chunk-
|
|
178
|
-
import "./chunk-
|
|
176
|
+
} from "./chunk-6KAV62BW.js";
|
|
177
|
+
import "./chunk-YFAIYNQG.js";
|
|
179
178
|
import "./chunk-Y3DJIMEN.js";
|
|
180
179
|
import "./chunk-5M6EUVNO.js";
|
|
181
|
-
import "./chunk-
|
|
182
|
-
import "./chunk-C2LGE3P6.js";
|
|
183
|
-
import "./chunk-RFF52JYU.js";
|
|
180
|
+
import "./chunk-AR4FTKSL.js";
|
|
184
181
|
import "./chunk-TRKA7XYU.js";
|
|
185
|
-
import "./chunk-
|
|
186
|
-
import "./chunk-
|
|
187
|
-
import "./chunk-
|
|
188
|
-
import "./chunk-
|
|
189
|
-
import "./chunk-
|
|
182
|
+
import "./chunk-KJ4BPXMB.js";
|
|
183
|
+
import "./chunk-5PUF4LA5.js";
|
|
184
|
+
import "./chunk-PVCHKW35.js";
|
|
185
|
+
import "./chunk-CQXDAXQF.js";
|
|
186
|
+
import "./chunk-VODRLEDP.js";
|
|
187
|
+
import "./chunk-7MTM3BDT.js";
|
|
188
|
+
import "./chunk-OLKM53RL.js";
|
|
190
189
|
import "./chunk-FDSMCFV5.js";
|
|
191
190
|
import "./chunk-53W2NRSL.js";
|
|
192
191
|
import "./chunk-NMAXZ3ZY.js";
|
|
193
|
-
import "./chunk-
|
|
194
|
-
import "./chunk-WR6RQKF5.js";
|
|
195
|
-
import "./chunk-7QKCBSFU.js";
|
|
192
|
+
import "./chunk-EOZ665GA.js";
|
|
196
193
|
import "./chunk-GGBE6KJV.js";
|
|
197
|
-
import "./chunk-
|
|
194
|
+
import "./chunk-7QKCBSFU.js";
|
|
198
195
|
import "./chunk-3NOV7X4M.js";
|
|
199
|
-
import "./chunk-MH5WPYQI.js";
|
|
200
196
|
import "./chunk-YO22XLHI.js";
|
|
197
|
+
import "./chunk-JIS4PA3R.js";
|
|
198
|
+
import "./chunk-WR6RQKF5.js";
|
|
199
|
+
import "./chunk-X7NEALMI.js";
|
|
201
200
|
import "./chunk-BYUPW7RA.js";
|
|
202
201
|
import "./chunk-GX2TWNLC.js";
|
|
203
202
|
import "./chunk-WWED74SG.js";
|
|
204
203
|
import "./chunk-2DYA3X77.js";
|
|
205
|
-
import "./chunk-ZKAH3APE.js";
|
|
206
204
|
import "./chunk-FAJ3I2UQ.js";
|
|
205
|
+
import "./chunk-ZKAH3APE.js";
|
|
207
206
|
import "./chunk-OWWCFJZ5.js";
|
|
208
207
|
export {
|
|
209
208
|
abortDeployment,
|
|
@@ -269,7 +268,6 @@ export {
|
|
|
269
268
|
getDeviceById,
|
|
270
269
|
getDeviceConfig,
|
|
271
270
|
getDeviceConnect,
|
|
272
|
-
getDeviceCount,
|
|
273
271
|
getDeviceDeployments,
|
|
274
272
|
getDeviceFileDownloadLink,
|
|
275
273
|
getDeviceInfo,
|
|
@@ -853,15 +853,22 @@ var getDeviceIdentityAttributes = (0, import_toolkit3.createSelector)(
|
|
|
853
853
|
);
|
|
854
854
|
var getDeviceCountsByStatus = (0, import_toolkit3.createSelector)(
|
|
855
855
|
[getDevicesByStatus],
|
|
856
|
-
(byStatus) => Object.values(import_constants4.DEVICE_STATES).reduce(
|
|
857
|
-
accu
|
|
858
|
-
|
|
859
|
-
|
|
856
|
+
(byStatus) => Object.values(import_constants4.DEVICE_STATES).reduce(
|
|
857
|
+
(accu, deviceState) => {
|
|
858
|
+
const { counts } = byStatus[deviceState];
|
|
859
|
+
const { total, ...tieredCounts } = counts;
|
|
860
|
+
const count = Object.values(tieredCounts).reduce((accu2, countPerTier) => accu2 + countPerTier, 0);
|
|
861
|
+
accu[deviceState] = count;
|
|
862
|
+
accu.total = accu.total + count;
|
|
863
|
+
return accu;
|
|
864
|
+
},
|
|
865
|
+
{ total: 0 }
|
|
866
|
+
)
|
|
860
867
|
);
|
|
861
868
|
var getDeviceById = (0, import_toolkit3.createSelector)([getDevicesById, (_, deviceId) => deviceId], (devicesById, deviceId = "") => devicesById[deviceId] ?? {});
|
|
862
869
|
var getSelectedGroupInfo = (0, import_toolkit3.createSelector)(
|
|
863
|
-
[
|
|
864
|
-
({
|
|
870
|
+
[getDeviceCountsByStatus, getGroupsById, getSelectedGroup],
|
|
871
|
+
({ accepted: acceptedDeviceTotal }, groupsById, selectedGroup) => {
|
|
865
872
|
let groupCount = acceptedDeviceTotal;
|
|
866
873
|
let groupFilters = [];
|
|
867
874
|
if (selectedGroup && groupsById[selectedGroup]) {
|
|
@@ -877,8 +884,8 @@ var getCombinedLimit = (0, import_toolkit3.createSelector)(
|
|
|
877
884
|
// limit might be -1 for unlimited devices
|
|
878
885
|
);
|
|
879
886
|
var getLimitMaxed = (0, import_toolkit3.createSelector)(
|
|
880
|
-
[
|
|
881
|
-
({
|
|
887
|
+
[getDeviceCountsByStatus, getCombinedLimit],
|
|
888
|
+
({ accepted: acceptedDevices }, combinedLimit) => !!combinedLimit && combinedLimit <= acceptedDevices
|
|
882
889
|
);
|
|
883
890
|
var getGroupsByIdWithoutUngrouped = (0, import_toolkit3.createSelector)([getGroupsById], ({ [UNGROUPED_GROUP.id]: ungrouped, ...groups }) => groups);
|
|
884
891
|
var getGroupData = (0, import_toolkit3.createSelector)([getGroupsByIdWithoutUngrouped], (groups) => {
|
|
@@ -1638,12 +1645,10 @@ var initialState3 = {
|
|
|
1638
1645
|
// }
|
|
1639
1646
|
},
|
|
1640
1647
|
byStatus: {
|
|
1641
|
-
[import_constants4.DEVICE_STATES.accepted]: { deviceIds: [], total: 0 },
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
[import_constants4.DEVICE_STATES.
|
|
1645
|
-
[import_constants4.DEVICE_STATES.preauth]: { deviceIds: [], total: 0 },
|
|
1646
|
-
[import_constants4.DEVICE_STATES.rejected]: { deviceIds: [], total: 0 }
|
|
1648
|
+
[import_constants4.DEVICE_STATES.accepted]: { deviceIds: [], counts: { standard: 0, micro: 0, system: 0, total: 0 } },
|
|
1649
|
+
[import_constants4.DEVICE_STATES.pending]: { deviceIds: [], counts: { standard: 0, micro: 0, system: 0, total: 0 } },
|
|
1650
|
+
[import_constants4.DEVICE_STATES.preauth]: { deviceIds: [], counts: { standard: 0, micro: 0, system: 0, total: 0 } },
|
|
1651
|
+
[import_constants4.DEVICE_STATES.rejected]: { deviceIds: [], counts: { standard: 0, micro: 0, system: 0, total: 0 } }
|
|
1647
1652
|
},
|
|
1648
1653
|
deviceList: {
|
|
1649
1654
|
deviceIds: [],
|
|
@@ -1773,21 +1778,19 @@ var devicesSlice = (0, import_toolkit10.createSlice)({
|
|
|
1773
1778
|
}
|
|
1774
1779
|
state.filters = action.payload.filter((filter) => filter.key && filter.operator && filter.scope && typeof filter.value !== "undefined");
|
|
1775
1780
|
},
|
|
1776
|
-
setInactiveDevices: (state, action) => {
|
|
1777
|
-
const { activeDeviceTotal, inactiveDeviceTotal } = action.payload;
|
|
1778
|
-
state.byStatus.active.total = activeDeviceTotal;
|
|
1779
|
-
state.byStatus.inactive.total = inactiveDeviceTotal;
|
|
1780
|
-
},
|
|
1781
1781
|
setDeviceReports: (state, action) => {
|
|
1782
1782
|
state.reports = action.payload;
|
|
1783
1783
|
},
|
|
1784
1784
|
setDevicesByStatus: (state, action) => {
|
|
1785
|
-
const {
|
|
1786
|
-
|
|
1785
|
+
const { status, total, deviceIds } = action.payload;
|
|
1786
|
+
if (total) {
|
|
1787
|
+
state.byStatus[status].deviceIds = deviceIds;
|
|
1788
|
+
state.byStatus[status].counts.total = total;
|
|
1789
|
+
}
|
|
1787
1790
|
},
|
|
1788
1791
|
setDevicesCountByStatus: (state, action) => {
|
|
1789
|
-
const {
|
|
1790
|
-
state.byStatus[status].
|
|
1792
|
+
const { countsPerTier, status } = action.payload;
|
|
1793
|
+
state.byStatus[status].counts = { ...countsPerTier, total: Object.values(countsPerTier).reduce((accu, tieredCount) => accu += tieredCount, 0) };
|
|
1791
1794
|
},
|
|
1792
1795
|
setDeviceLimits: (state, action) => {
|
|
1793
1796
|
state.limits = action.payload;
|
|
@@ -1804,7 +1807,15 @@ var devicesSlice = (0, import_toolkit10.createSlice)({
|
|
|
1804
1807
|
const hasMultipleAuthSets = authId && device.auth_sets ? device.auth_sets.filter((authset) => authset.id !== authId).length > 0 : false;
|
|
1805
1808
|
if (!hasMultipleAuthSets && Object.values(import_constants4.DEVICE_STATES).includes(device.status)) {
|
|
1806
1809
|
const deviceIds = state.byStatus[device.status].deviceIds.filter((id) => id !== deviceId);
|
|
1807
|
-
|
|
1810
|
+
const deviceTier = device.attributes.tier || "standard";
|
|
1811
|
+
state.byStatus[device.status] = {
|
|
1812
|
+
deviceIds,
|
|
1813
|
+
counts: {
|
|
1814
|
+
...state.byStatus[device.status].counts,
|
|
1815
|
+
[deviceTier]: Math.max(0, state.byStatus[device.status].counts[deviceTier] - 1),
|
|
1816
|
+
total: Math.max(0, state.byStatus[device.status].counts.total - 1)
|
|
1817
|
+
}
|
|
1818
|
+
};
|
|
1808
1819
|
}
|
|
1809
1820
|
}
|
|
1810
1821
|
}
|
|
@@ -2180,7 +2191,8 @@ var initialState8 = {
|
|
|
2180
2191
|
},
|
|
2181
2192
|
userSettings: {
|
|
2182
2193
|
columnSelection: [],
|
|
2183
|
-
onboarding: {}
|
|
2194
|
+
onboarding: {},
|
|
2195
|
+
firstLoginTimestamp: null
|
|
2184
2196
|
},
|
|
2185
2197
|
userSettingsInitialized: false
|
|
2186
2198
|
};
|
|
@@ -3319,21 +3331,13 @@ var getDeviceInfo = createAppAsyncThunk(`${sliceName3}/getDeviceInfo`, (deviceId
|
|
|
3319
3331
|
}
|
|
3320
3332
|
return Promise.all(tasks);
|
|
3321
3333
|
});
|
|
3322
|
-
var getDeviceCount = createAppAsyncThunk(
|
|
3323
|
-
`${sliceName3}/getDeviceCount`,
|
|
3324
|
-
(status, { dispatch, getState }) => general_api_default.post(getSearchEndpoint(getState()), {
|
|
3325
|
-
page: 1,
|
|
3326
|
-
per_page: 1,
|
|
3327
|
-
filters: mapFiltersToTerms([{ key: "status", value: status, operator: import_constants4.DEVICE_FILTERING_OPTIONS.$eq.key, scope: "identity" }]),
|
|
3328
|
-
attributes: defaultAttributes
|
|
3329
|
-
}).then((response) => {
|
|
3330
|
-
const count = Number(response.headers[import_constants4.headerNames.total]);
|
|
3331
|
-
return dispatch(actions3.setDevicesCountByStatus({ count, status }));
|
|
3332
|
-
})
|
|
3333
|
-
);
|
|
3334
3334
|
var getAllDeviceCounts = createAppAsyncThunk(
|
|
3335
3335
|
`${sliceName3}/getAllDeviceCounts`,
|
|
3336
|
-
(_, { dispatch }) =>
|
|
3336
|
+
(_, { dispatch }) => general_api_default.get(`${import_constants4.inventoryApiUrlV2}/statistics`).then(({ data }) => {
|
|
3337
|
+
const { devices_by_status } = data;
|
|
3338
|
+
Object.entries(devices_by_status).map(([status, countsPerTier]) => dispatch(actions3.setDevicesCountByStatus({ countsPerTier, status })));
|
|
3339
|
+
return;
|
|
3340
|
+
})
|
|
3337
3341
|
);
|
|
3338
3342
|
var getDeviceLimits2 = createAppAsyncThunk(
|
|
3339
3343
|
`${sliceName3}/getDeviceLimit`,
|
|
@@ -3405,7 +3409,7 @@ var getDevicesByStatus2 = createAppAsyncThunk(
|
|
|
3405
3409
|
const state2 = getState();
|
|
3406
3410
|
const deviceAccu = reduceReceivedDevices(response.data, [], state2, status);
|
|
3407
3411
|
let total = !applicableFilters.length ? Number(response.headers[import_constants4.headerNames.total]) : 0;
|
|
3408
|
-
if (status && state2.devices.byStatus[status].total === deviceAccu.ids.length) {
|
|
3412
|
+
if (status && state2.devices.byStatus[status].counts.total === deviceAccu.ids.length) {
|
|
3409
3413
|
total = deviceAccu.ids.length;
|
|
3410
3414
|
}
|
|
3411
3415
|
const tasks = [dispatch(actions3.receivedDevices(deviceAccu.devicesById))];
|
|
@@ -3512,8 +3516,8 @@ var updateReportData = createAppAsyncThunk(`${sliceName3}/updateReportData`, (re
|
|
|
3512
3516
|
const { group = "" } = report;
|
|
3513
3517
|
const devicesById = getDevicesById(getState());
|
|
3514
3518
|
const groups = getGroupsById(getState());
|
|
3515
|
-
const
|
|
3516
|
-
const totalDeviceCount = groups[group] ? groups[group].total :
|
|
3519
|
+
const { accepted: acceptedDevicesCount } = getDeviceCountsByStatus(getState());
|
|
3520
|
+
const totalDeviceCount = groups[group] ? groups[group].total : acceptedDevicesCount;
|
|
3517
3521
|
const reportsData = getDeviceReports(getState());
|
|
3518
3522
|
const newReports = [...reportsData];
|
|
3519
3523
|
newReports[reportIndex] = initializeDistributionData(report, groups, devicesById, totalDeviceCount);
|
|
@@ -3531,6 +3535,7 @@ var getReportDataWithoutBackendSupport = createAppAsyncThunk(
|
|
|
3531
3535
|
const effectiveAttribute = software ? software : attribute;
|
|
3532
3536
|
const devicesById = getDevicesById(getState());
|
|
3533
3537
|
const acceptedDevices = getAcceptedDevices(getState());
|
|
3538
|
+
const { accepted: acceptedDevicesCount } = getDeviceCountsByStatus(getState());
|
|
3534
3539
|
const groups = getGroupsById(getState());
|
|
3535
3540
|
const { deviceIds = [], filters = [], total = 0 } = groups[group] || {};
|
|
3536
3541
|
let groupDevicesRequest = Promise.resolve({
|
|
@@ -3538,7 +3543,7 @@ var getReportDataWithoutBackendSupport = createAppAsyncThunk(
|
|
|
3538
3543
|
});
|
|
3539
3544
|
if (group && (!(deviceIds.length && total) || deviceIds.length !== total || !deviceIds.every((id) => !!devicesById[id]))) {
|
|
3540
3545
|
groupDevicesRequest = filters.length ? dispatch(getAllDynamicGroupDevices({ group, attribute: effectiveAttribute })).unwrap() : dispatch(getAllGroupDevices({ group, attribute: effectiveAttribute })).unwrap();
|
|
3541
|
-
} else if (!group && (acceptedDevices.deviceIds.length !==
|
|
3546
|
+
} else if (!group && (acceptedDevices.deviceIds.length !== acceptedDevicesCount || !acceptedDevices.deviceIds.every((id) => !!devicesById[id]))) {
|
|
3542
3547
|
groupDevicesRequest = dispatch(getAllDevicesByStatus({ status: import_constants4.DEVICE_STATES.accepted, attribute: effectiveAttribute })).unwrap();
|
|
3543
3548
|
}
|
|
3544
3549
|
return groupDevicesRequest.then(() => dispatch(updateReportData(reportIndex)));
|
|
@@ -3893,6 +3898,7 @@ var changeNotificationSetting = createAppAsyncThunk(
|
|
|
3893
3898
|
// src/usersSlice/thunks.ts
|
|
3894
3899
|
var import_helpers10 = require("@northern.tech/utils/helpers");
|
|
3895
3900
|
var import_retrytimer = require("@northern.tech/utils/retrytimer");
|
|
3901
|
+
var import_dayjs = __toESM(require("dayjs"), 1);
|
|
3896
3902
|
var import_md5 = __toESM(require("md5"), 1);
|
|
3897
3903
|
var import_universal_cookie3 = __toESM(require("universal-cookie"), 1);
|
|
3898
3904
|
|
|
@@ -4477,6 +4483,7 @@ var saveUserSettings = createAppAsyncThunk(
|
|
|
4477
4483
|
const updatedSettings = {
|
|
4478
4484
|
...userSettings,
|
|
4479
4485
|
...settings,
|
|
4486
|
+
firstLoginTimestamp: userSettings.firstLoginTimestamp ?? (0, import_dayjs.default)().format(),
|
|
4480
4487
|
onboarding: {
|
|
4481
4488
|
...onboardingState,
|
|
4482
4489
|
...settings.onboarding
|