@zeniai/client-epic-state 4.9.47 → 4.9.49
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/lib/entity/jeSchedules/jeSchedulesPayload.js +1 -0
- package/lib/entity/jeSchedules/jeSchedulesSelector.d.ts +1 -0
- package/lib/entity/jeSchedules/jeSchedulesState.d.ts +1 -0
- package/lib/view/scheduleView/scheduleDetailView/scheduleDetailPayload.js +5 -2
- package/lib/view/scheduleView/scheduleListView/scheduleListReducer.d.ts +1 -0
- package/lib/view/scheduleView/scheduleListView/scheduleListReducer.js +12 -2
- package/package.json +1 -1
|
@@ -42,6 +42,7 @@ function toScheduledJournalEntryState(payload, currency_code, currency_symbol) {
|
|
|
42
42
|
isPlatformGenerated: (_d = payload.is_platform_generated) !== null && _d !== void 0 ? _d : undefined,
|
|
43
43
|
createTime: payload.create_time != null ? (0, zeniDayJS_1.date)(payload.create_time) : undefined,
|
|
44
44
|
updateTime: payload.update_time != null ? (0, zeniDayJS_1.date)(payload.update_time) : undefined,
|
|
45
|
+
syncToken: payload.update_time != null ? payload.update_time : undefined,
|
|
45
46
|
currencyCode: currency_code,
|
|
46
47
|
currencySymbol: currency_symbol,
|
|
47
48
|
};
|
|
@@ -55,8 +55,11 @@ const mapJEScheduleLocalDataToScheduleDetailPayload = (jeScheduleDetails, jeSche
|
|
|
55
55
|
je_schedule_id: (currentScheduleJournalEntry === null || currentScheduleJournalEntry === void 0 ? void 0 : currentScheduleJournalEntry.jeScheduleId) != null
|
|
56
56
|
? currentScheduleJournalEntry.jeScheduleId
|
|
57
57
|
: null,
|
|
58
|
-
update_time:
|
|
59
|
-
|
|
58
|
+
update_time:
|
|
59
|
+
// This is used from the platform as a synctoken and hence has to be
|
|
60
|
+
// passed as is.
|
|
61
|
+
(currentScheduleJournalEntry === null || currentScheduleJournalEntry === void 0 ? void 0 : currentScheduleJournalEntry.syncToken) != null
|
|
62
|
+
? currentScheduleJournalEntry.syncToken
|
|
60
63
|
: null,
|
|
61
64
|
create_time: (currentScheduleJournalEntry === null || currentScheduleJournalEntry === void 0 ? void 0 : currentScheduleJournalEntry.createTime) != null
|
|
62
65
|
? currentScheduleJournalEntry.createTime.format(formatZeniDateFY_1.DEFAULT_DATE_FORMAT)
|
|
@@ -9,6 +9,7 @@ import { ScheduleTypes } from '../../../entity/jeSchedules/jeSchedulesTypes';
|
|
|
9
9
|
export declare const initialUIState: ScheduleListUIState;
|
|
10
10
|
export declare const initialJESchedulesForTypeState: JESchedulesForTypeState;
|
|
11
11
|
export declare const initialScheduleListStateByType: ScheduleListForTypeState;
|
|
12
|
+
export declare const initialFixedAssetsScheduleListStateByType: ScheduleListForTypeState;
|
|
12
13
|
export declare const initialState: ScheduleListViewState;
|
|
13
14
|
export declare const fetchDownloadSchedules: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[scheduleType: "prepaid_expenses" | "fixed_assets" | "accrued_expenses" | "deferred_revenue", timeframeAndCategory: {
|
|
14
15
|
selectedTimeframe: TimeframeTick;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var _a;
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.getState = exports.clearScheduleList = exports.updateScheduleListDownloadState = exports.updateScheduleListSearchText = exports.updateScheduleListLocalData = exports.updateScheduleListSortState = exports.updateScheduleListScrollState = exports.updateScheduleListSubTab = exports.updateDownloadScheduleSuccess = exports.updateDownloadScheduleFailure = exports.updateScheduleListFailure = exports.updateScheduleListSuccess = exports.fetchSchedulesAccount = exports.fetchScheduleList = exports.fetchDownloadSchedules = exports.initialState = exports.initialScheduleListStateByType = exports.initialJESchedulesForTypeState = exports.initialUIState = void 0;
|
|
4
|
+
exports.getState = exports.clearScheduleList = exports.updateScheduleListDownloadState = exports.updateScheduleListSearchText = exports.updateScheduleListLocalData = exports.updateScheduleListSortState = exports.updateScheduleListScrollState = exports.updateScheduleListSubTab = exports.updateDownloadScheduleSuccess = exports.updateDownloadScheduleFailure = exports.updateScheduleListFailure = exports.updateScheduleListSuccess = exports.fetchSchedulesAccount = exports.fetchScheduleList = exports.fetchDownloadSchedules = exports.initialState = exports.initialFixedAssetsScheduleListStateByType = exports.initialScheduleListStateByType = exports.initialJESchedulesForTypeState = exports.initialUIState = void 0;
|
|
5
5
|
const toolkit_1 = require("@reduxjs/toolkit");
|
|
6
6
|
const zeniDayJS_1 = require("../../../zeniDayJS");
|
|
7
7
|
const transactionIDPayload_1 = require("../../../entity/transaction/payloadTypes/transactionIDPayload");
|
|
@@ -47,10 +47,20 @@ exports.initialScheduleListStateByType = {
|
|
|
47
47
|
},
|
|
48
48
|
uiState: exports.initialUIState,
|
|
49
49
|
};
|
|
50
|
+
exports.initialFixedAssetsScheduleListStateByType = Object.assign(Object.assign({}, exports.initialScheduleListStateByType), { scheduleListLocalData: {
|
|
51
|
+
selectedCategoryId: 'all',
|
|
52
|
+
selectedTimeframe: {
|
|
53
|
+
startDate: (0, zeniDayJS_1.dateNow)().subtract(7, 'year'),
|
|
54
|
+
endDate: (0, zeniDayJS_1.dateNow)(),
|
|
55
|
+
},
|
|
56
|
+
}, selectedTimeframe: {
|
|
57
|
+
startDate: (0, zeniDayJS_1.dateNow)().subtract(7, 'year'),
|
|
58
|
+
endDate: (0, zeniDayJS_1.dateNow)(),
|
|
59
|
+
} });
|
|
50
60
|
exports.initialState = {
|
|
51
61
|
listByScheduleType: {
|
|
52
62
|
prepaid_expenses: exports.initialScheduleListStateByType,
|
|
53
|
-
fixed_assets: exports.
|
|
63
|
+
fixed_assets: exports.initialFixedAssetsScheduleListStateByType,
|
|
54
64
|
deferred_revenue: exports.initialScheduleListStateByType,
|
|
55
65
|
accrued_expenses: exports.initialScheduleListStateByType,
|
|
56
66
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeniai/client-epic-state",
|
|
3
|
-
"version": "4.9.
|
|
3
|
+
"version": "4.9.49",
|
|
4
4
|
"description": "Shared module between Web & Mobile containing required abstractions for state management, async network communication. ",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|