@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/storehooks.cjs
CHANGED
|
@@ -3715,8 +3715,9 @@ var getDeviceConnect = (0, import_toolkit19.createAsyncThunk)(
|
|
|
3715
3715
|
)
|
|
3716
3716
|
);
|
|
3717
3717
|
var getSessionDetails = (0, import_toolkit19.createAsyncThunk)(`${sliceName3}/getSessionDetails`, ({ sessionId, deviceId, userId, startDate, endDate }) => {
|
|
3718
|
-
const
|
|
3719
|
-
const
|
|
3718
|
+
const { start: startUnix, end: endUnix } = (0, import_helpers9.dateRangeToUnix)(startDate, endDate);
|
|
3719
|
+
const createdAfter = startDate ? `&created_after=${startUnix}` : "";
|
|
3720
|
+
const createdBefore = endDate ? `&created_before=${endUnix}` : "";
|
|
3720
3721
|
const objectSearch = `&object_id=${deviceId}`;
|
|
3721
3722
|
return general_api_default.get(`${auditLogsApiUrl}/logs?per_page=500${createdAfter}${createdBefore}&actor_id=${userId}${objectSearch}`).then(
|
|
3722
3723
|
({ data: auditLogEntries }) => {
|
|
@@ -4225,8 +4226,9 @@ var completeUpgrade = (0, import_toolkit22.createAsyncThunk)(
|
|
|
4225
4226
|
var prepareAuditlogQuery = ({ startDate, endDate, user: userFilter, type, detail: detailFilter, sort = {} }) => {
|
|
4226
4227
|
const userId = userFilter?.id || userFilter;
|
|
4227
4228
|
const detail = detailFilter?.id || detailFilter;
|
|
4228
|
-
const
|
|
4229
|
-
const
|
|
4229
|
+
const { start: startUnix, end: endUnix } = (0, import_helpers11.dateRangeToUnix)(startDate, endDate);
|
|
4230
|
+
const createdAfter = startDate ? `&created_after=${startUnix}` : "";
|
|
4231
|
+
const createdBefore = endDate ? `&created_before=${endUnix}` : "";
|
|
4230
4232
|
const typeSearch = type ? `&object_type=${type.value}`.toLowerCase() : "";
|
|
4231
4233
|
const userSearch = userId ? `&actor_id=${userId}` : "";
|
|
4232
4234
|
const objectSearch = type && detail ? `&${type.queryParameter}=${encodeURIComponent(detail)}` : "";
|