@zeniai/client-epic-state 4.8.34 → 4.8.36
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.
|
@@ -46,6 +46,8 @@ export interface TenantMerchantPayload {
|
|
|
46
46
|
tenant_name: string;
|
|
47
47
|
tenant_id: string;
|
|
48
48
|
old_merchant_name: string;
|
|
49
|
+
account_name: string;
|
|
50
|
+
accounting_class_name: string;
|
|
49
51
|
merchant_type?: string | null;
|
|
50
52
|
logo: URLPayload | null;
|
|
51
53
|
last_updated_merchant_name_by_user: UserBasePayload | null;
|
|
@@ -130,6 +130,8 @@ const toTenantMerchant = (tenantMerchantPayload) => {
|
|
|
130
130
|
? (0, zeniUrl_1.toZeniUrlWithoutBaseURL)((_b = tenantMerchantPayload.logo) === null || _b === void 0 ? void 0 : _b.url)
|
|
131
131
|
: undefined,
|
|
132
132
|
lastUpdatedMerchantNameByUserId: (_c = tenantMerchantPayload.last_updated_merchant_name_by_user) === null || _c === void 0 ? void 0 : _c.user_id,
|
|
133
|
+
accountName: tenantMerchantPayload.account_name,
|
|
134
|
+
className: tenantMerchantPayload.accounting_class_name,
|
|
133
135
|
};
|
|
134
136
|
};
|
|
135
137
|
exports.toTenantMerchant = toTenantMerchant;
|
|
@@ -144,7 +144,9 @@ const transactionList = (0, toolkit_1.createSlice)({
|
|
|
144
144
|
}
|
|
145
145
|
},
|
|
146
146
|
prepare(entity, period, cacheOverride = false) {
|
|
147
|
-
return {
|
|
147
|
+
return {
|
|
148
|
+
payload: { entity, period, cacheOverride },
|
|
149
|
+
};
|
|
148
150
|
},
|
|
149
151
|
},
|
|
150
152
|
updateTransactionListByEntity(draft, action) {
|
|
@@ -293,13 +295,7 @@ const transactionList = (0, toolkit_1.createSlice)({
|
|
|
293
295
|
},
|
|
294
296
|
},
|
|
295
297
|
});
|
|
296
|
-
_a = transactionList.actions, exports.parallelFetchAccountTransactionList = _a.parallelFetchAccountTransactionList, exports.fetchAccountTransactionList = _a.fetchAccountTransactionList, exports.updateTransactionListByAccount = _a.updateTransactionListByAccount, exports.updateTransactionListByAccountFailure = _a.updateTransactionListByAccountFailure, exports.parallelFetchEntityTransactionList = _a.parallelFetchEntityTransactionList, exports.fetchEntityTransactionList = _a.fetchEntityTransactionList, exports.updateTransactionListByEntity = _a.updateTransactionListByEntity, exports.updateTransactionListByEntityFailure = _a.updateTransactionListByEntityFailure, exports.updateTransactionListByAccountUIState = _a.updateTransactionListByAccountUIState,
|
|
297
|
-
// parallelFetchMissingReceiptTransactionList,
|
|
298
|
-
// fetchMissingReceiptTransactionList,
|
|
299
|
-
// updateMissingReceiptTransactionList,
|
|
300
|
-
// updateMissingReceiptTransactionListUIState,
|
|
301
|
-
// updateMissingReceiptTransactionListFailure,
|
|
302
|
-
exports.parallelFetchClassTransactionList = _a.parallelFetchClassTransactionList, exports.fetchClassTransactionList = _a.fetchClassTransactionList, exports.updateTransactionListByClass = _a.updateTransactionListByClass, exports.updateTransactionListByClassUIState = _a.updateTransactionListByClassUIState, exports.updateTransactionListByClassFailure = _a.updateTransactionListByClassFailure, exports.parallelFetchTransactionListByCategoryType = _a.parallelFetchTransactionListByCategoryType, exports.fetchTransactionsListByCategoryType = _a.fetchTransactionsListByCategoryType, exports.updateTransactionListByCategoryType = _a.updateTransactionListByCategoryType, exports.updateTransactionsListByCategoryTypeFailure = _a.updateTransactionsListByCategoryTypeFailure, exports.updateTransactionListUIStateByCategoryType = _a.updateTransactionListUIStateByCategoryType, exports.clearTransactionList = _a.clearTransactionList, exports.updateLatestTransactionId = _a.updateLatestTransactionId;
|
|
298
|
+
_a = transactionList.actions, exports.parallelFetchAccountTransactionList = _a.parallelFetchAccountTransactionList, exports.fetchAccountTransactionList = _a.fetchAccountTransactionList, exports.updateTransactionListByAccount = _a.updateTransactionListByAccount, exports.updateTransactionListByAccountFailure = _a.updateTransactionListByAccountFailure, exports.parallelFetchEntityTransactionList = _a.parallelFetchEntityTransactionList, exports.fetchEntityTransactionList = _a.fetchEntityTransactionList, exports.updateTransactionListByEntity = _a.updateTransactionListByEntity, exports.updateTransactionListByEntityFailure = _a.updateTransactionListByEntityFailure, exports.updateTransactionListByAccountUIState = _a.updateTransactionListByAccountUIState, exports.parallelFetchClassTransactionList = _a.parallelFetchClassTransactionList, exports.fetchClassTransactionList = _a.fetchClassTransactionList, exports.updateTransactionListByClass = _a.updateTransactionListByClass, exports.updateTransactionListByClassUIState = _a.updateTransactionListByClassUIState, exports.updateTransactionListByClassFailure = _a.updateTransactionListByClassFailure, exports.parallelFetchTransactionListByCategoryType = _a.parallelFetchTransactionListByCategoryType, exports.fetchTransactionsListByCategoryType = _a.fetchTransactionsListByCategoryType, exports.updateTransactionListByCategoryType = _a.updateTransactionListByCategoryType, exports.updateTransactionsListByCategoryTypeFailure = _a.updateTransactionsListByCategoryTypeFailure, exports.updateTransactionListUIStateByCategoryType = _a.updateTransactionListUIStateByCategoryType, exports.clearTransactionList = _a.clearTransactionList, exports.updateLatestTransactionId = _a.updateLatestTransactionId;
|
|
303
299
|
exports.default = transactionList.reducer;
|
|
304
300
|
/**
|
|
305
301
|
* Helper functions
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeniai/client-epic-state",
|
|
3
|
-
"version": "4.8.
|
|
3
|
+
"version": "4.8.36",
|
|
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",
|