@northern.tech/store 0.3.1 → 0.3.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/appSlice/thunks.cjs +3 -2
- package/dist/appSlice/thunks.cjs.map +1 -1
- package/dist/appSlice/thunks.js +1 -1
- package/dist/{chunk-APHL4JZP.js → chunk-74OJIKXF.js} +9 -7
- package/dist/chunk-74OJIKXF.js.map +1 -0
- package/dist/deploymentdevicehook.cjs +3 -2
- package/dist/deploymentdevicehook.cjs.map +1 -1
- package/dist/deploymentdevicehook.js +1 -1
- package/dist/deploymentsSlice/thunks.cjs +3 -2
- package/dist/deploymentsSlice/thunks.cjs.map +1 -1
- package/dist/deploymentsSlice/thunks.js +1 -1
- package/dist/devicesSlice/thunks.cjs +3 -2
- package/dist/devicesSlice/thunks.cjs.map +1 -1
- package/dist/devicesSlice/thunks.js +1 -1
- package/dist/onboardingSlice/thunks.cjs +3 -2
- package/dist/onboardingSlice/thunks.cjs.map +1 -1
- package/dist/onboardingSlice/thunks.js +1 -1
- package/dist/organizationSlice/thunks.cjs +6 -4
- package/dist/organizationSlice/thunks.cjs.map +1 -1
- package/dist/organizationSlice/thunks.js +1 -1
- package/dist/storehooks.cjs +6 -4
- package/dist/storehooks.cjs.map +1 -1
- package/dist/storehooks.js +1 -1
- package/dist/thunks.cjs +6 -4
- package/dist/thunks.cjs.map +1 -1
- package/dist/thunks.js +1 -1
- package/dist/usersSlice/thunks.cjs +3 -2
- package/dist/usersSlice/thunks.cjs.map +1 -1
- package/dist/usersSlice/thunks.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-APHL4JZP.js.map +0 -1
package/dist/appSlice/thunks.js
CHANGED
|
@@ -484,7 +484,7 @@ var saveDeltaDeploymentsConfig = createAsyncThunk(`${sliceName2}/saveDeltaDeploy
|
|
|
484
484
|
|
|
485
485
|
// src/devicesSlice/thunks.tsx
|
|
486
486
|
import { Link } from "react-router-dom";
|
|
487
|
-
import { attributeDuplicateFilter, deepCompare as deepCompare2, extractErrorMessage, getSnackbarMessage } from "@northern.tech/utils/helpers";
|
|
487
|
+
import { attributeDuplicateFilter, dateRangeToUnix, deepCompare as deepCompare2, extractErrorMessage, getSnackbarMessage } from "@northern.tech/utils/helpers";
|
|
488
488
|
import { createAsyncThunk as createAsyncThunk2 } from "@reduxjs/toolkit";
|
|
489
489
|
import { isCancel } from "axios";
|
|
490
490
|
import pluralize from "pluralize";
|
|
@@ -1113,8 +1113,9 @@ var getDeviceConnect = createAsyncThunk2(
|
|
|
1113
1113
|
)
|
|
1114
1114
|
);
|
|
1115
1115
|
var getSessionDetails = createAsyncThunk2(`${sliceName3}/getSessionDetails`, ({ sessionId, deviceId, userId, startDate, endDate }) => {
|
|
1116
|
-
const
|
|
1117
|
-
const
|
|
1116
|
+
const { start: startUnix, end: endUnix } = dateRangeToUnix(startDate, endDate);
|
|
1117
|
+
const createdAfter = startDate ? `&created_after=${startUnix}` : "";
|
|
1118
|
+
const createdBefore = endDate ? `&created_before=${endUnix}` : "";
|
|
1118
1119
|
const objectSearch = `&object_id=${deviceId}`;
|
|
1119
1120
|
return general_api_default.get(`${auditLogsApiUrl}/logs?per_page=500${createdAfter}${createdBefore}&actor_id=${userId}${objectSearch}`).then(
|
|
1120
1121
|
({ data: auditLogEntries }) => {
|
|
@@ -1481,7 +1482,7 @@ var advanceOnboarding = createAsyncThunk3(`${sliceName4}/advanceOnboarding`, (st
|
|
|
1481
1482
|
});
|
|
1482
1483
|
|
|
1483
1484
|
// src/organizationSlice/thunks.ts
|
|
1484
|
-
import { deepCompare as deepCompare3 } from "@northern.tech/utils/helpers";
|
|
1485
|
+
import { dateRangeToUnix as dateRangeToUnix2, deepCompare as deepCompare3 } from "@northern.tech/utils/helpers";
|
|
1485
1486
|
import { createAsyncThunk as createAsyncThunk4 } from "@reduxjs/toolkit";
|
|
1486
1487
|
import { jwtDecode } from "jwt-decode";
|
|
1487
1488
|
import hashString from "md5";
|
|
@@ -1560,8 +1561,9 @@ var completeUpgrade = createAsyncThunk4(
|
|
|
1560
1561
|
var prepareAuditlogQuery = ({ startDate, endDate, user: userFilter, type, detail: detailFilter, sort = {} }) => {
|
|
1561
1562
|
const userId = userFilter?.id || userFilter;
|
|
1562
1563
|
const detail = detailFilter?.id || detailFilter;
|
|
1563
|
-
const
|
|
1564
|
-
const
|
|
1564
|
+
const { start: startUnix, end: endUnix } = dateRangeToUnix2(startDate, endDate);
|
|
1565
|
+
const createdAfter = startDate ? `&created_after=${startUnix}` : "";
|
|
1566
|
+
const createdBefore = endDate ? `&created_before=${endUnix}` : "";
|
|
1565
1567
|
const typeSearch = type ? `&object_type=${type.value}`.toLowerCase() : "";
|
|
1566
1568
|
const userSearch = userId ? `&actor_id=${userId}` : "";
|
|
1567
1569
|
const objectSearch = type && detail ? `&${type.queryParameter}=${encodeURIComponent(detail)}` : "";
|
|
@@ -2633,4 +2635,4 @@ export {
|
|
|
2633
2635
|
setAllTooltipsReadState,
|
|
2634
2636
|
submitFeedback
|
|
2635
2637
|
};
|
|
2636
|
-
//# sourceMappingURL=chunk-
|
|
2638
|
+
//# sourceMappingURL=chunk-74OJIKXF.js.map
|