@northern.tech/store 0.19.0 → 0.19.2
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.js +1 -1
- package/dist/api/general-api.cjs +13 -9
- package/dist/api/general-api.cjs.map +1 -1
- package/dist/api/general-api.js +3 -3
- package/dist/api/users-api.cjs +13 -9
- package/dist/api/users-api.cjs.map +1 -1
- package/dist/api/users-api.js +4 -4
- package/dist/appSlice/constants.cjs +8 -4
- 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 +1 -1
- package/dist/appSlice/mocks.js +1 -1
- package/dist/appSlice/thunks.cjs +37 -21
- package/dist/appSlice/thunks.cjs.map +1 -1
- package/dist/appSlice/thunks.js +12 -12
- package/dist/auth.cjs +7 -9
- package/dist/auth.cjs.map +1 -1
- package/dist/auth.js +2 -2
- package/dist/{chunk-GEQ2QQEE.js → chunk-42GZ6FGV.js} +2 -2
- package/dist/{chunk-QL6FN2JC.js → chunk-43ZBO3JW.js} +2 -2
- package/dist/{chunk-GAHFKM3N.js → chunk-45BHMNX6.js} +5 -5
- package/dist/{chunk-EL672W25.js → chunk-AJ6DIDO4.js} +9 -5
- package/dist/chunk-AJ6DIDO4.js.map +1 -0
- package/dist/{chunk-XC7DABLM.js → chunk-AV7SRATY.js} +6 -6
- package/dist/{chunk-U5TPV5X5.js → chunk-B3C6H2PR.js} +2 -2
- package/dist/{chunk-5M6EUVNO.js → chunk-IRQRV552.js} +8 -2
- package/dist/chunk-IRQRV552.js.map +1 -0
- package/dist/{chunk-QFYSFHAF.js → chunk-KJ2SUFAU.js} +19 -10
- package/dist/chunk-KJ2SUFAU.js.map +1 -0
- package/dist/{chunk-FDSMCFV5.js → chunk-UVTLZV34.js} +8 -10
- package/dist/chunk-UVTLZV34.js.map +1 -0
- package/dist/{chunk-Y3DJIMEN.js → chunk-XJLZK4QY.js} +3 -3
- package/dist/{chunk-TJBX7YHM.js → chunk-XOASGJZU.js} +5 -5
- package/dist/{chunk-RVAERI6U.js → chunk-ZAZTNDSY.js} +2 -2
- package/dist/commonConstants.js +1 -1
- package/dist/commonSelectors.cjs +8 -4
- package/dist/commonSelectors.cjs.map +1 -1
- package/dist/commonSelectors.js +5 -5
- package/dist/constants.cjs +8 -4
- package/dist/constants.cjs.map +1 -1
- package/dist/constants.js +1 -1
- package/dist/deploymentsSlice/constants.js +1 -1
- package/dist/deploymentsSlice/index.js +1 -1
- package/dist/deploymentsSlice/mocks.js +1 -1
- package/dist/deploymentsSlice/selectors.js +1 -1
- package/dist/deploymentsSlice/thunks.cjs +37 -21
- package/dist/deploymentsSlice/thunks.cjs.map +1 -1
- package/dist/deploymentsSlice/thunks.js +12 -12
- package/dist/devicesSlice/constants.js +1 -1
- package/dist/devicesSlice/index.js +1 -1
- package/dist/devicesSlice/mocks.js +1 -1
- package/dist/devicesSlice/selectors.js +1 -1
- package/dist/devicesSlice/thunks.cjs +39 -21
- package/dist/devicesSlice/thunks.cjs.map +1 -1
- package/dist/devicesSlice/thunks.d.cts +41 -3
- package/dist/devicesSlice/thunks.d.ts +41 -3
- package/dist/devicesSlice/thunks.js +14 -12
- package/dist/liststatehook.js +1 -1
- package/dist/locationutils.js +1 -1
- package/dist/monitorSlice/index.js +1 -1
- package/dist/monitorSlice/mocks.js +1 -1
- package/dist/monitorSlice/thunks.cjs +21 -13
- package/dist/monitorSlice/thunks.cjs.map +1 -1
- package/dist/monitorSlice/thunks.js +9 -9
- package/dist/onboardingSlice/thunks.cjs +40 -24
- package/dist/onboardingSlice/thunks.cjs.map +1 -1
- package/dist/onboardingSlice/thunks.js +12 -12
- package/dist/organizationSlice/constants.js +1 -1
- package/dist/organizationSlice/index.js +1 -1
- package/dist/organizationSlice/mocks.js +1 -1
- package/dist/organizationSlice/selectors.js +1 -1
- package/dist/organizationSlice/thunks.cjs +43 -27
- package/dist/organizationSlice/thunks.cjs.map +1 -1
- package/dist/organizationSlice/thunks.js +12 -12
- package/dist/releasesSlice/index.js +1 -1
- package/dist/releasesSlice/mocks.js +1 -1
- package/dist/releasesSlice/selectors.js +3 -3
- package/dist/releasesSlice/thunks.cjs +21 -13
- package/dist/releasesSlice/thunks.cjs.map +1 -1
- package/dist/releasesSlice/thunks.js +9 -9
- package/dist/selectors.cjs +8 -4
- package/dist/selectors.cjs.map +1 -1
- package/dist/selectors.js +5 -5
- package/dist/sockethook.js +1 -1
- package/dist/store.cjs +7 -9
- package/dist/store.cjs.map +1 -1
- package/dist/store.js +3 -3
- package/dist/storehooks.cjs +50 -34
- package/dist/storehooks.cjs.map +1 -1
- package/dist/storehooks.js +12 -12
- package/dist/thunks.cjs +48 -30
- 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 +14 -12
- package/dist/useDeploymentDevice.cjs +37 -21
- package/dist/useDeploymentDevice.cjs.map +1 -1
- package/dist/useDeploymentDevice.js +12 -12
- package/dist/usersSlice/constants.js +1 -1
- package/dist/usersSlice/index.js +1 -1
- package/dist/usersSlice/mocks.js +1 -1
- package/dist/usersSlice/selectors.cjs +8 -4
- package/dist/usersSlice/selectors.cjs.map +1 -1
- package/dist/usersSlice/selectors.js +3 -3
- package/dist/usersSlice/thunks.cjs +37 -21
- package/dist/usersSlice/thunks.cjs.map +1 -1
- package/dist/usersSlice/thunks.js +12 -12
- package/dist/utils.cjs +8 -4
- package/dist/utils.cjs.map +1 -1
- package/dist/utils.js +2 -2
- package/package.json +3 -3
- package/dist/chunk-5M6EUVNO.js.map +0 -1
- package/dist/chunk-EL672W25.js.map +0 -1
- package/dist/chunk-FDSMCFV5.js.map +0 -1
- package/dist/chunk-QFYSFHAF.js.map +0 -1
- /package/dist/{chunk-GEQ2QQEE.js.map → chunk-42GZ6FGV.js.map} +0 -0
- /package/dist/{chunk-QL6FN2JC.js.map → chunk-43ZBO3JW.js.map} +0 -0
- /package/dist/{chunk-GAHFKM3N.js.map → chunk-45BHMNX6.js.map} +0 -0
- /package/dist/{chunk-XC7DABLM.js.map → chunk-AV7SRATY.js.map} +0 -0
- /package/dist/{chunk-U5TPV5X5.js.map → chunk-B3C6H2PR.js.map} +0 -0
- /package/dist/{chunk-Y3DJIMEN.js.map → chunk-XJLZK4QY.js.map} +0 -0
- /package/dist/{chunk-TJBX7YHM.js.map → chunk-XOASGJZU.js.map} +0 -0
- /package/dist/{chunk-RVAERI6U.js.map → chunk-ZAZTNDSY.js.map} +0 -0
|
@@ -120,10 +120,34 @@ declare const addStaticGroup: _reduxjs_toolkit.AsyncThunk<[_reduxjs_toolkit.Payl
|
|
|
120
120
|
fulfilledMeta?: unknown;
|
|
121
121
|
rejectedMeta?: unknown;
|
|
122
122
|
}>;
|
|
123
|
+
declare const removeReportsByGroupName: _reduxjs_toolkit.AsyncThunk<void | undefined, string, {
|
|
124
|
+
dispatch: AppDispatch;
|
|
125
|
+
state: RootState;
|
|
126
|
+
extra?: unknown;
|
|
127
|
+
rejectValue?: unknown;
|
|
128
|
+
serializedErrorType?: unknown;
|
|
129
|
+
pendingMeta?: unknown;
|
|
130
|
+
fulfilledMeta?: unknown;
|
|
131
|
+
rejectedMeta?: unknown;
|
|
132
|
+
}>;
|
|
123
133
|
declare const removeStaticGroup: _reduxjs_toolkit.AsyncThunk<[{
|
|
124
134
|
payload: string;
|
|
125
135
|
type: "devices/removeGroup";
|
|
126
|
-
}, _reduxjs_toolkit.PayloadAction<
|
|
136
|
+
}, _reduxjs_toolkit.PayloadAction<unknown, string, {
|
|
137
|
+
arg: string;
|
|
138
|
+
requestId: string;
|
|
139
|
+
requestStatus: "rejected";
|
|
140
|
+
aborted: boolean;
|
|
141
|
+
condition: boolean;
|
|
142
|
+
} & ({
|
|
143
|
+
rejectedWithValue: true;
|
|
144
|
+
} | ({
|
|
145
|
+
rejectedWithValue: false;
|
|
146
|
+
} & {})), _reduxjs_toolkit.SerializedError> | _reduxjs_toolkit.PayloadAction<void | undefined, string, {
|
|
147
|
+
arg: string;
|
|
148
|
+
requestId: string;
|
|
149
|
+
requestStatus: "fulfilled";
|
|
150
|
+
}, never>, _reduxjs_toolkit.PayloadAction<any, string, {
|
|
127
151
|
arg: void;
|
|
128
152
|
requestId: string;
|
|
129
153
|
requestStatus: "fulfilled";
|
|
@@ -215,7 +239,21 @@ declare const updateDynamicGroup: _reduxjs_toolkit.AsyncThunk<any, {
|
|
|
215
239
|
declare const removeDynamicGroup: _reduxjs_toolkit.AsyncThunk<[{
|
|
216
240
|
payload: string;
|
|
217
241
|
type: "devices/removeGroup";
|
|
218
|
-
}, {
|
|
242
|
+
}, _reduxjs_toolkit.PayloadAction<unknown, string, {
|
|
243
|
+
arg: string;
|
|
244
|
+
requestId: string;
|
|
245
|
+
requestStatus: "rejected";
|
|
246
|
+
aborted: boolean;
|
|
247
|
+
condition: boolean;
|
|
248
|
+
} & ({
|
|
249
|
+
rejectedWithValue: true;
|
|
250
|
+
} | ({
|
|
251
|
+
rejectedWithValue: false;
|
|
252
|
+
} & {})), _reduxjs_toolkit.SerializedError> | _reduxjs_toolkit.PayloadAction<void | undefined, string, {
|
|
253
|
+
arg: string;
|
|
254
|
+
requestId: string;
|
|
255
|
+
requestStatus: "fulfilled";
|
|
256
|
+
}, never>, {
|
|
219
257
|
payload: string | SnackbarContent;
|
|
220
258
|
type: "app/setSnackbar";
|
|
221
259
|
}], string, {
|
|
@@ -798,4 +836,4 @@ declare const getGatewayDevices: _reduxjs_toolkit.AsyncThunk<any[], string, {
|
|
|
798
836
|
rejectedMeta?: unknown;
|
|
799
837
|
}>;
|
|
800
838
|
|
|
801
|
-
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 };
|
|
839
|
+
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, removeReportsByGroupName, removeStaticGroup, searchDevices, selectGroup, setDeviceConfig, setDeviceListState, setDeviceTags, setDeviceTwin, triggerDeviceUpdate, updateDeviceAuth, updateDevicesAuth, updateDynamicGroup, updateReportData };
|
|
@@ -120,10 +120,34 @@ declare const addStaticGroup: _reduxjs_toolkit.AsyncThunk<[_reduxjs_toolkit.Payl
|
|
|
120
120
|
fulfilledMeta?: unknown;
|
|
121
121
|
rejectedMeta?: unknown;
|
|
122
122
|
}>;
|
|
123
|
+
declare const removeReportsByGroupName: _reduxjs_toolkit.AsyncThunk<void | undefined, string, {
|
|
124
|
+
dispatch: AppDispatch;
|
|
125
|
+
state: RootState;
|
|
126
|
+
extra?: unknown;
|
|
127
|
+
rejectValue?: unknown;
|
|
128
|
+
serializedErrorType?: unknown;
|
|
129
|
+
pendingMeta?: unknown;
|
|
130
|
+
fulfilledMeta?: unknown;
|
|
131
|
+
rejectedMeta?: unknown;
|
|
132
|
+
}>;
|
|
123
133
|
declare const removeStaticGroup: _reduxjs_toolkit.AsyncThunk<[{
|
|
124
134
|
payload: string;
|
|
125
135
|
type: "devices/removeGroup";
|
|
126
|
-
}, _reduxjs_toolkit.PayloadAction<
|
|
136
|
+
}, _reduxjs_toolkit.PayloadAction<unknown, string, {
|
|
137
|
+
arg: string;
|
|
138
|
+
requestId: string;
|
|
139
|
+
requestStatus: "rejected";
|
|
140
|
+
aborted: boolean;
|
|
141
|
+
condition: boolean;
|
|
142
|
+
} & ({
|
|
143
|
+
rejectedWithValue: true;
|
|
144
|
+
} | ({
|
|
145
|
+
rejectedWithValue: false;
|
|
146
|
+
} & {})), _reduxjs_toolkit.SerializedError> | _reduxjs_toolkit.PayloadAction<void | undefined, string, {
|
|
147
|
+
arg: string;
|
|
148
|
+
requestId: string;
|
|
149
|
+
requestStatus: "fulfilled";
|
|
150
|
+
}, never>, _reduxjs_toolkit.PayloadAction<any, string, {
|
|
127
151
|
arg: void;
|
|
128
152
|
requestId: string;
|
|
129
153
|
requestStatus: "fulfilled";
|
|
@@ -215,7 +239,21 @@ declare const updateDynamicGroup: _reduxjs_toolkit.AsyncThunk<any, {
|
|
|
215
239
|
declare const removeDynamicGroup: _reduxjs_toolkit.AsyncThunk<[{
|
|
216
240
|
payload: string;
|
|
217
241
|
type: "devices/removeGroup";
|
|
218
|
-
}, {
|
|
242
|
+
}, _reduxjs_toolkit.PayloadAction<unknown, string, {
|
|
243
|
+
arg: string;
|
|
244
|
+
requestId: string;
|
|
245
|
+
requestStatus: "rejected";
|
|
246
|
+
aborted: boolean;
|
|
247
|
+
condition: boolean;
|
|
248
|
+
} & ({
|
|
249
|
+
rejectedWithValue: true;
|
|
250
|
+
} | ({
|
|
251
|
+
rejectedWithValue: false;
|
|
252
|
+
} & {})), _reduxjs_toolkit.SerializedError> | _reduxjs_toolkit.PayloadAction<void | undefined, string, {
|
|
253
|
+
arg: string;
|
|
254
|
+
requestId: string;
|
|
255
|
+
requestStatus: "fulfilled";
|
|
256
|
+
}, never>, {
|
|
219
257
|
payload: string | SnackbarContent;
|
|
220
258
|
type: "app/setSnackbar";
|
|
221
259
|
}], string, {
|
|
@@ -798,4 +836,4 @@ declare const getGatewayDevices: _reduxjs_toolkit.AsyncThunk<any[], string, {
|
|
|
798
836
|
rejectedMeta?: unknown;
|
|
799
837
|
}>;
|
|
800
838
|
|
|
801
|
-
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 };
|
|
839
|
+
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, removeReportsByGroupName, removeStaticGroup, searchDevices, selectGroup, setDeviceConfig, setDeviceListState, setDeviceTags, setDeviceTwin, triggerDeviceUpdate, updateDeviceAuth, updateDevicesAuth, updateDynamicGroup, updateReportData };
|
|
@@ -31,6 +31,7 @@ import {
|
|
|
31
31
|
preauthDevice,
|
|
32
32
|
removeDevicesFromGroup,
|
|
33
33
|
removeDynamicGroup,
|
|
34
|
+
removeReportsByGroupName,
|
|
34
35
|
removeStaticGroup,
|
|
35
36
|
searchDevices,
|
|
36
37
|
selectGroup,
|
|
@@ -43,12 +44,12 @@ import {
|
|
|
43
44
|
updateDevicesAuth,
|
|
44
45
|
updateDynamicGroup,
|
|
45
46
|
updateReportData
|
|
46
|
-
} from "../chunk-
|
|
47
|
-
import "../chunk-
|
|
48
|
-
import "../chunk-
|
|
49
|
-
import "../chunk-
|
|
50
|
-
import "../chunk-
|
|
51
|
-
import "../chunk-
|
|
47
|
+
} from "../chunk-KJ2SUFAU.js";
|
|
48
|
+
import "../chunk-AV7SRATY.js";
|
|
49
|
+
import "../chunk-45BHMNX6.js";
|
|
50
|
+
import "../chunk-ZAZTNDSY.js";
|
|
51
|
+
import "../chunk-XJLZK4QY.js";
|
|
52
|
+
import "../chunk-IRQRV552.js";
|
|
52
53
|
import "../chunk-RJRZXDVT.js";
|
|
53
54
|
import "../chunk-TRKA7XYU.js";
|
|
54
55
|
import "../chunk-YR65C62H.js";
|
|
@@ -58,24 +59,24 @@ import "../chunk-CQXDAXQF.js";
|
|
|
58
59
|
import "../chunk-VODRLEDP.js";
|
|
59
60
|
import "../chunk-6WJI4MOP.js";
|
|
60
61
|
import "../chunk-OLKM53RL.js";
|
|
61
|
-
import "../chunk-
|
|
62
|
+
import "../chunk-UVTLZV34.js";
|
|
62
63
|
import "../chunk-53W2NRSL.js";
|
|
63
64
|
import "../chunk-NMAXZ3ZY.js";
|
|
64
|
-
import "../chunk-
|
|
65
|
-
import "../chunk-
|
|
66
|
-
import "../chunk-
|
|
65
|
+
import "../chunk-XOASGJZU.js";
|
|
66
|
+
import "../chunk-42GZ6FGV.js";
|
|
67
|
+
import "../chunk-43ZBO3JW.js";
|
|
67
68
|
import "../chunk-3NOV7X4M.js";
|
|
68
69
|
import "../chunk-YO22XLHI.js";
|
|
69
70
|
import "../chunk-JIS4PA3R.js";
|
|
70
71
|
import "../chunk-WR6RQKF5.js";
|
|
71
72
|
import "../chunk-O7DR57RN.js";
|
|
72
73
|
import "../chunk-4BHM6WVX.js";
|
|
73
|
-
import "../chunk-
|
|
74
|
+
import "../chunk-B3C6H2PR.js";
|
|
74
75
|
import "../chunk-WWED74SG.js";
|
|
75
76
|
import "../chunk-2DYA3X77.js";
|
|
76
77
|
import "../chunk-FAJ3I2UQ.js";
|
|
77
78
|
import "../chunk-ZKAH3APE.js";
|
|
78
|
-
import "../chunk-
|
|
79
|
+
import "../chunk-AJ6DIDO4.js";
|
|
79
80
|
export {
|
|
80
81
|
addDevicesToGroup,
|
|
81
82
|
addDynamicGroup,
|
|
@@ -109,6 +110,7 @@ export {
|
|
|
109
110
|
preauthDevice,
|
|
110
111
|
removeDevicesFromGroup,
|
|
111
112
|
removeDynamicGroup,
|
|
113
|
+
removeReportsByGroupName,
|
|
112
114
|
removeStaticGroup,
|
|
113
115
|
searchDevices,
|
|
114
116
|
selectGroup,
|
package/dist/liststatehook.js
CHANGED
|
@@ -20,7 +20,7 @@ import "./chunk-WWED74SG.js";
|
|
|
20
20
|
import "./chunk-2DYA3X77.js";
|
|
21
21
|
import "./chunk-FAJ3I2UQ.js";
|
|
22
22
|
import "./chunk-ZKAH3APE.js";
|
|
23
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-AJ6DIDO4.js";
|
|
24
24
|
|
|
25
25
|
// src/liststatehook.ts
|
|
26
26
|
import { useCallback, useMemo } from "react";
|
package/dist/locationutils.js
CHANGED
|
@@ -93,7 +93,7 @@ var ADDONS = {
|
|
|
93
93
|
configure: {
|
|
94
94
|
id: "configure",
|
|
95
95
|
title: "Configure",
|
|
96
|
-
description: "
|
|
96
|
+
description: "Seamlessly configure applications and devices remotely \u2013 configure each device to its environment.",
|
|
97
97
|
needs: ["hasDeviceConfig"],
|
|
98
98
|
os: {
|
|
99
99
|
price: "$11/month",
|
|
@@ -108,7 +108,7 @@ var ADDONS = {
|
|
|
108
108
|
monitor: {
|
|
109
109
|
id: "monitor",
|
|
110
110
|
title: "Monitor",
|
|
111
|
-
description: "
|
|
111
|
+
description: "Detect and analyze health issues of devices, services and applications. Set up alerts so you can act quickly.",
|
|
112
112
|
needs: ["hasMonitor"],
|
|
113
113
|
os: {
|
|
114
114
|
price: "-",
|
|
@@ -123,7 +123,7 @@ var ADDONS = {
|
|
|
123
123
|
troubleshoot: {
|
|
124
124
|
id: "troubleshoot",
|
|
125
125
|
title: "Troubleshoot",
|
|
126
|
-
description: "
|
|
126
|
+
description: "Secure, remote access to your devices \u2013 quickly diagnose and fix issues in real time.",
|
|
127
127
|
needs: ["hasDeviceConnect"],
|
|
128
128
|
os: {
|
|
129
129
|
price: "$27/month",
|
|
@@ -137,7 +137,11 @@ var ADDONS = {
|
|
|
137
137
|
}
|
|
138
138
|
};
|
|
139
139
|
var BENEFITS = {
|
|
140
|
-
auditlog: {
|
|
140
|
+
auditlog: {
|
|
141
|
+
id: "auditlog",
|
|
142
|
+
benefit: "gain access to logs for important events such as changes to devices, deployments and user management, as well as remote terminal session replays",
|
|
143
|
+
requiredPlan: PLANS.enterprise.id
|
|
144
|
+
},
|
|
141
145
|
dashboard: { id: "dashboard", benefit: "actionable insights into the devices you are updating with Mender", requiredPlan: PLANS.enterprise.id },
|
|
142
146
|
deltaGeneration: {
|
|
143
147
|
id: "deltaGeneration",
|
|
@@ -1650,6 +1654,7 @@ var actions_default = {
|
|
|
1650
1654
|
|
|
1651
1655
|
// src/api/general-api.ts
|
|
1652
1656
|
var import_axios = __toESM(require("axios"), 1);
|
|
1657
|
+
var import_universal_cookie2 = __toESM(require("universal-cookie"), 1);
|
|
1653
1658
|
|
|
1654
1659
|
// src/auth.ts
|
|
1655
1660
|
var import_universal_cookie = __toESM(require("universal-cookie"), 1);
|
|
@@ -1662,19 +1667,17 @@ var getSessionInfo = () => {
|
|
|
1662
1667
|
sessionInfo = JSON.parse(window.localStorage.getItem("JWT") ?? "");
|
|
1663
1668
|
} catch {
|
|
1664
1669
|
}
|
|
1670
|
+
const jwtTokenFromCookie = cookies.get("JWT", { doNotParse: true }) ?? "";
|
|
1671
|
+
if (jwtTokenFromCookie) {
|
|
1672
|
+
setSessionInfo({ token: jwtTokenFromCookie });
|
|
1673
|
+
cookies.remove("JWT");
|
|
1674
|
+
cookies.remove("JWT", { path: "/" });
|
|
1675
|
+
return { token: jwtTokenFromCookie, expiresAt: void 0 };
|
|
1676
|
+
}
|
|
1665
1677
|
if (sessionInfo.expiresAt && new Date(sessionInfo.expiresAt) < /* @__PURE__ */ new Date()) {
|
|
1666
1678
|
cleanUp();
|
|
1667
1679
|
return { ...emptySession };
|
|
1668
1680
|
}
|
|
1669
|
-
if (!sessionInfo.token) {
|
|
1670
|
-
const jwtTokenFromCookie = cookies.get("JWT", { doNotParse: true }) ?? "";
|
|
1671
|
-
if (jwtTokenFromCookie) {
|
|
1672
|
-
setSessionInfo({ token: jwtTokenFromCookie });
|
|
1673
|
-
sessionInfo.token = jwtTokenFromCookie;
|
|
1674
|
-
cookies.remove("JWT");
|
|
1675
|
-
cookies.remove("JWT", { path: "/" });
|
|
1676
|
-
}
|
|
1677
|
-
}
|
|
1678
1681
|
sessionInfo.token = sessionInfo.token || "";
|
|
1679
1682
|
tokenCache = sessionInfo.token;
|
|
1680
1683
|
return sessionInfo;
|
|
@@ -1693,8 +1696,13 @@ var cleanUp = () => {
|
|
|
1693
1696
|
};
|
|
1694
1697
|
|
|
1695
1698
|
// src/api/general-api.ts
|
|
1699
|
+
var cookies2 = new import_universal_cookie2.default();
|
|
1696
1700
|
var unauthorizedRedirect = (error) => {
|
|
1697
1701
|
if (!(0, import_axios.isCancel)(error) && error.response?.status === 401 && getToken() && !window.location.pathname.endsWith("/subscription")) {
|
|
1702
|
+
if (cookies2.get("JWT", { doNotParse: true })) {
|
|
1703
|
+
window.location.reload();
|
|
1704
|
+
return Promise.reject(error);
|
|
1705
|
+
}
|
|
1698
1706
|
cleanUp();
|
|
1699
1707
|
window.location.replace("/ui/");
|
|
1700
1708
|
}
|