@zeniai/client-epic-state 4.12.6 → 4.12.8
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/commonStateTypes/viewAndReport/viewAndReport.js +1 -5
- package/lib/entity/customer/customerSelector.d.ts +2 -2
- package/lib/view/balanceSheet/balanceSheetSelectorTypes.js +1 -3
- package/lib/view/cardPayment/cardPaymentViewTypes.js +1 -4
- package/lib/view/onboardingView/cockpitView/onboardingCockpitViewPayload.js +3 -0
- package/lib/view/scheduleView/scheduleListView/scheduleListTypes.js +1 -6
- package/lib/view/spendManagement/billPay/billPayConfig/billPayConfigState.js +1 -4
- package/lib/view/spendManagement/reimbursement/remiDetailView/epics/fetchDuplicateReimbursementEpic.js +3 -5
- package/package.json +1 -1
|
@@ -56,10 +56,6 @@ exports.ALL_REPORT_IDS = [
|
|
|
56
56
|
];
|
|
57
57
|
const toReportID = (v) => (0, stringToUnion_1.stringToUnion)(v, exports.ALL_REPORT_IDS);
|
|
58
58
|
exports.toReportID = toReportID;
|
|
59
|
-
const ALL_REPORT_FORMAT = [
|
|
60
|
-
'summary',
|
|
61
|
-
'detailed',
|
|
62
|
-
'more_detailed',
|
|
63
|
-
];
|
|
59
|
+
const ALL_REPORT_FORMAT = ['summary', 'detailed', 'more_detailed'];
|
|
64
60
|
const toReportFormatStrict = (v) => { var _a; return (0, stringToUnion_1.stringToUnionStrict)((_a = v === null || v === void 0 ? void 0 : v.toLocaleLowerCase()) !== null && _a !== void 0 ? _a : '', ALL_REPORT_FORMAT); };
|
|
65
61
|
exports.toReportFormatStrict = toReportFormatStrict;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { ID } from
|
|
2
|
-
import { Customer, CustomerState } from
|
|
1
|
+
import { ID } from '../../commonStateTypes/common';
|
|
2
|
+
import { Customer, CustomerState } from './customerState';
|
|
3
3
|
export declare function getCustomer(customerState: CustomerState, cutomerId: ID): Customer | undefined;
|
|
@@ -23,9 +23,7 @@ const ALL_BALANCE_SHEET_REPORT_VIEW_LIABILITY_SECTION_IDS = [
|
|
|
23
23
|
'longTermLiabilities',
|
|
24
24
|
];
|
|
25
25
|
const toBalanceSheetReportViewLiabilitySectionID = (v) => (0, stringToUnion_1.stringToUnion)(v, ALL_BALANCE_SHEET_REPORT_VIEW_LIABILITY_SECTION_IDS);
|
|
26
|
-
const ALL_BALANCE_SHEET_REPORT_VIEW_EQUITY_SECTION_IDS = [
|
|
27
|
-
'equity',
|
|
28
|
-
];
|
|
26
|
+
const ALL_BALANCE_SHEET_REPORT_VIEW_EQUITY_SECTION_IDS = ['equity'];
|
|
29
27
|
const toBalanceSheetReportViewEquitySectionID = (v) => (0, stringToUnion_1.stringToUnion)(v, ALL_BALANCE_SHEET_REPORT_VIEW_EQUITY_SECTION_IDS);
|
|
30
28
|
exports.ALL_BALANCE_SHEET_REPORT_VIEW_SECTION_IDS = [
|
|
31
29
|
...ALL_BALANCE_SHEET_REPORT_VIEW_ASSET_SECTION_IDS,
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const stringToUnion_1 = require("../../commonStateTypes/stringToUnion");
|
|
4
|
-
const ALL_ADD_SOURCE_CARD_PAYMENT_TYPE = [
|
|
5
|
-
'card',
|
|
6
|
-
'direct_debit',
|
|
7
|
-
];
|
|
4
|
+
const ALL_ADD_SOURCE_CARD_PAYMENT_TYPE = ['card', 'direct_debit'];
|
|
8
5
|
const ADD_SOURCE_CARD_PAYMENT_TYPE = [
|
|
9
6
|
...ALL_ADD_SOURCE_CARD_PAYMENT_TYPE,
|
|
10
7
|
];
|
|
@@ -87,6 +87,9 @@ const updateCustomerCreationPayload = (onboardingCustomer, onboardingCustomerPay
|
|
|
87
87
|
if (Boolean(qboRealmId) && qboRealmId !== (tenant === null || tenant === void 0 ? void 0 : tenant.qboRealmId)) {
|
|
88
88
|
onboardingCustomerPayload.qbo_realm_id = qboRealmId;
|
|
89
89
|
}
|
|
90
|
+
else if (Boolean(qboRealmId) === false && (tenant === null || tenant === void 0 ? void 0 : tenant.qboRealmId) != null) {
|
|
91
|
+
onboardingCustomerPayload.qbo_realm_id = '';
|
|
92
|
+
}
|
|
90
93
|
if (isSubsidiary != null &&
|
|
91
94
|
(company == null ||
|
|
92
95
|
(company != null &&
|
|
@@ -11,12 +11,7 @@ const toScheduleListTabsFileTypeStrict = (v) => {
|
|
|
11
11
|
exports.toScheduleListTabsFileTypeStrict = toScheduleListTabsFileTypeStrict;
|
|
12
12
|
const getScheduleListKey = (selectedCategory, selectedTimeframe) => `${selectedCategory}-${selectedTimeframe.startDate.format(formatZeniDateFY_1.DAY_MONTH_YEAR_FORMAT)}--${selectedTimeframe.endDate.format(formatZeniDateFY_1.DAY_MONTH_YEAR_FORMAT)}`;
|
|
13
13
|
exports.getScheduleListKey = getScheduleListKey;
|
|
14
|
-
const ALL_SCHEDULES_SUB_TABS = [
|
|
15
|
-
'all',
|
|
16
|
-
'new',
|
|
17
|
-
'ongoing',
|
|
18
|
-
'completed',
|
|
19
|
-
];
|
|
14
|
+
const ALL_SCHEDULES_SUB_TABS = ['all', 'new', 'ongoing', 'completed'];
|
|
20
15
|
const toScheduleSubTabType = (v) => (0, stringToUnion_1.stringToUnion)(v, ALL_SCHEDULES_SUB_TABS);
|
|
21
16
|
exports.toScheduleSubTabType = toScheduleSubTabType;
|
|
22
17
|
const ALL_SCHEDULES_PAY_SORT_KEYS = [
|
|
@@ -49,10 +49,7 @@ exports.INTERNATIONAL_CODES = [
|
|
|
49
49
|
'usd-to-usd',
|
|
50
50
|
];
|
|
51
51
|
const toInternationalWireMethodCodeType = (v) => (0, stringToUnion_1.stringToUnion)(v, exports.INTERNATIONAL_CODES);
|
|
52
|
-
const INTERNATIONAL_CODES_KEYS = [
|
|
53
|
-
'usdToLocalCurrency',
|
|
54
|
-
'usdToUsd',
|
|
55
|
-
];
|
|
52
|
+
const INTERNATIONAL_CODES_KEYS = ['usdToLocalCurrency', 'usdToUsd'];
|
|
56
53
|
const toInternationalWireMethodCodeKeyType = (v) => (0, stringToUnion_1.stringToUnion)(v, INTERNATIONAL_CODES_KEYS);
|
|
57
54
|
exports.INTERNATIONAL_SUB_CODES = ['swift_our', 'swift_sha'];
|
|
58
55
|
const toInternationalSubMethodCodeType = (v) => (0, stringToUnion_1.stringToUnion)(v, exports.INTERNATIONAL_SUB_CODES);
|
|
@@ -12,7 +12,9 @@ const fetchDuplicateReimbursementEpic = (actions$, state$, zeniAPI) => actions$.
|
|
|
12
12
|
const { reimbursementId, signedInUserId, isManuallyTriggered } = action.payload;
|
|
13
13
|
const { editRemiDetailViewState, reimbursementState } = state$.value;
|
|
14
14
|
let lines = [];
|
|
15
|
-
|
|
15
|
+
const createdByUserId = reimbursementId != null
|
|
16
|
+
? (_a = reimbursementState.reimbursementById[reimbursementId]) === null || _a === void 0 ? void 0 : _a.createdBy
|
|
17
|
+
: signedInUserId;
|
|
16
18
|
//edit reimbursememnt case
|
|
17
19
|
if (isManuallyTriggered === true) {
|
|
18
20
|
//get lines detail from editRemiDetailViewState
|
|
@@ -23,10 +25,6 @@ const fetchDuplicateReimbursementEpic = (actions$, state$, zeniAPI) => actions$.
|
|
|
23
25
|
.remiDetailLocalData.updatesByLineId).filter((value) => value != null)
|
|
24
26
|
: Object.values(editRemiDetailViewState.newRemiState.remiDetailLocalData
|
|
25
27
|
.updatesByLineId).filter((value) => value != null);
|
|
26
|
-
createdByUserId =
|
|
27
|
-
reimbursementId != null
|
|
28
|
-
? (_a = reimbursementState.reimbursementById[reimbursementId]) === null || _a === void 0 ? void 0 : _a.createdBy
|
|
29
|
-
: signedInUserId;
|
|
30
28
|
}
|
|
31
29
|
//reimbursement detail page case
|
|
32
30
|
else if (reimbursementId != null) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeniai/client-epic-state",
|
|
3
|
-
"version": "4.12.
|
|
3
|
+
"version": "4.12.8",
|
|
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",
|