@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.js
CHANGED
package/dist/thunks.cjs
CHANGED
|
@@ -3856,8 +3856,9 @@ var getDeviceConnect = (0, import_toolkit19.createAsyncThunk)(
|
|
|
3856
3856
|
)
|
|
3857
3857
|
);
|
|
3858
3858
|
var getSessionDetails = (0, import_toolkit19.createAsyncThunk)(`${sliceName3}/getSessionDetails`, ({ sessionId, deviceId, userId, startDate, endDate }) => {
|
|
3859
|
-
const
|
|
3860
|
-
const
|
|
3859
|
+
const { start: startUnix, end: endUnix } = (0, import_helpers9.dateRangeToUnix)(startDate, endDate);
|
|
3860
|
+
const createdAfter = startDate ? `&created_after=${startUnix}` : "";
|
|
3861
|
+
const createdBefore = endDate ? `&created_before=${endUnix}` : "";
|
|
3861
3862
|
const objectSearch = `&object_id=${deviceId}`;
|
|
3862
3863
|
return general_api_default.get(`${auditLogsApiUrl}/logs?per_page=500${createdAfter}${createdBefore}&actor_id=${userId}${objectSearch}`).then(
|
|
3863
3864
|
({ data: auditLogEntries }) => {
|
|
@@ -4366,8 +4367,9 @@ var completeUpgrade = (0, import_toolkit22.createAsyncThunk)(
|
|
|
4366
4367
|
var prepareAuditlogQuery = ({ startDate, endDate, user: userFilter, type, detail: detailFilter, sort = {} }) => {
|
|
4367
4368
|
const userId = userFilter?.id || userFilter;
|
|
4368
4369
|
const detail = detailFilter?.id || detailFilter;
|
|
4369
|
-
const
|
|
4370
|
-
const
|
|
4370
|
+
const { start: startUnix, end: endUnix } = (0, import_helpers11.dateRangeToUnix)(startDate, endDate);
|
|
4371
|
+
const createdAfter = startDate ? `&created_after=${startUnix}` : "";
|
|
4372
|
+
const createdBefore = endDate ? `&created_before=${endUnix}` : "";
|
|
4371
4373
|
const typeSearch = type ? `&object_type=${type.value}`.toLowerCase() : "";
|
|
4372
4374
|
const userSearch = userId ? `&actor_id=${userId}` : "";
|
|
4373
4375
|
const objectSearch = type && detail ? `&${type.queryParameter}=${encodeURIComponent(detail)}` : "";
|