@zeniai/client-epic-state 4.11.78 → 4.11.80
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/company/companyPayload.d.ts +0 -2
- package/lib/entity/company/companyPayload.js +0 -2
- package/lib/entity/company/companyStateTypes.d.ts +0 -2
- package/lib/entity/paymentAccount/paymentAccountPayload.d.ts +0 -1
- package/lib/entity/paymentAccount/paymentAccountPayload.js +0 -1
- package/lib/entity/paymentAccount/paymentAccountState.d.ts +0 -1
- package/lib/entity/tenant/tenantReducer.js +1 -1
- package/lib/view/companyHealthMetricView/companyHealthMetricViewSelector.js +1 -1
- package/lib/view/spendManagement/commonSetup/setupViewSelector.js +0 -1
- package/package.json +1 -1
|
@@ -73,11 +73,9 @@ export interface CompanyBillPayInfoDataPayload {
|
|
|
73
73
|
bill_pay_tos_acceptance_user_agent: string | null;
|
|
74
74
|
bill_pay_tos_acceptance_time: string | null;
|
|
75
75
|
bill_pay_tos_acceptance_ip: string | null;
|
|
76
|
-
bill_payment_account_ids: string[];
|
|
77
76
|
is_bill_pay_tos_accepted: boolean;
|
|
78
77
|
is_bill_pay_enabled: boolean;
|
|
79
78
|
is_business_verified: boolean;
|
|
80
|
-
is_bill_payment_account_setup: boolean;
|
|
81
79
|
is_bill_pay_approval_enabled: boolean;
|
|
82
80
|
is_vendor_magic_link_feature_enabled: boolean;
|
|
83
81
|
is_international_wires_verified?: boolean | null;
|
|
@@ -130,11 +130,9 @@ const toCompanyBillPayInfo = (payload) => {
|
|
|
130
130
|
? (0, zeniDayJS_1.date)(payload.bill_pay_tos_acceptance_time)
|
|
131
131
|
: undefined,
|
|
132
132
|
billPayTOSAcceptanceIp: (_c = payload.bill_pay_tos_acceptance_ip) !== null && _c !== void 0 ? _c : undefined,
|
|
133
|
-
billPaymentAccountIds: payload.bill_payment_account_ids,
|
|
134
133
|
isBillPayTOSAccepted: payload.is_bill_pay_tos_accepted,
|
|
135
134
|
isBillPayEnabled: payload.is_bill_pay_enabled,
|
|
136
135
|
isBusinessVerified: payload.is_business_verified,
|
|
137
|
-
isBillPaymentAccountSetup: payload.is_bill_payment_account_setup,
|
|
138
136
|
isInternationalWiresVerified: payload.is_international_wires_verified != null
|
|
139
137
|
? payload.is_international_wires_verified
|
|
140
138
|
: false,
|
|
@@ -155,11 +155,9 @@ export interface CompanyBillPayInfo {
|
|
|
155
155
|
billPayTOSAcceptanceUserAgent?: string;
|
|
156
156
|
billPayTOSAcceptanceTime?: ZeniDate;
|
|
157
157
|
billPayTOSAcceptanceIp?: string;
|
|
158
|
-
billPaymentAccountIds: ID[];
|
|
159
158
|
isBillPayTOSAccepted: boolean;
|
|
160
159
|
isBillPayEnabled: boolean;
|
|
161
160
|
isBusinessVerified?: boolean;
|
|
162
|
-
isBillPaymentAccountSetup?: boolean;
|
|
163
161
|
isBillPayApprovalEnabled?: boolean;
|
|
164
162
|
usersSelectedForVerification: ID[];
|
|
165
163
|
isInternationalWiresVerified: boolean;
|
|
@@ -38,7 +38,6 @@ const toPaymentAccount = (payload) => {
|
|
|
38
38
|
: undefined,
|
|
39
39
|
}
|
|
40
40
|
: undefined,
|
|
41
|
-
isVerified: payload.is_verified,
|
|
42
41
|
zeniAccountId: (_a = payload.zeni_mapped_account_id) !== null && _a !== void 0 ? _a : '',
|
|
43
42
|
bankAccountId: (_b = payload.bank_account_id) !== null && _b !== void 0 ? _b : undefined,
|
|
44
43
|
updateTime: (0, zeniDayJS_1.date)(payload.update_time),
|
|
@@ -67,7 +67,7 @@ const tenant = (0, toolkit_1.createSlice)({
|
|
|
67
67
|
(newTenant != null && action.payload.tenantUpdated)) {
|
|
68
68
|
// Note: If tenant data already exists, save it if the new data is the latest one.
|
|
69
69
|
// we dont want to overwrite the user related data since that has not come in the output
|
|
70
|
-
draft.
|
|
70
|
+
draft.onboardingTenantsById[tenantPayload.tenant_id] = newTenant;
|
|
71
71
|
}
|
|
72
72
|
});
|
|
73
73
|
},
|
|
@@ -477,7 +477,7 @@ const sortAndFilterCompanies = (sortKey, sortOrder, filterText, filters, compani
|
|
|
477
477
|
? Infinity
|
|
478
478
|
: (_b = (_a = company.companyHealthMetric.runway) === null || _a === void 0 ? void 0 : _a.runwayMonths) !== null && _b !== void 0 ? _b : 0;
|
|
479
479
|
case 'lastReportSent':
|
|
480
|
-
return (
|
|
480
|
+
return (_c = company.managegmentInfo.lastReportSentDate) !== null && _c !== void 0 ? _c : DEFAULT_DATE;
|
|
481
481
|
case 'renewalDate':
|
|
482
482
|
return ((_d = company.companyHealthMetric.subscriptionRenewalDate) !== null && _d !== void 0 ? _d : DEFAULT_DATE);
|
|
483
483
|
case 'subscriptionDate':
|
|
@@ -221,7 +221,6 @@ const mapPaymentAccToFundingAccount = (paymentAcc) => {
|
|
|
221
221
|
institutionDetails: paymentAcc.institutionDetails,
|
|
222
222
|
accountSubType: paymentAcc.accountSubType,
|
|
223
223
|
isLoginRequired: paymentAcc.isLoginRequired,
|
|
224
|
-
isVerified: paymentAcc.isVerified,
|
|
225
224
|
providerAccountId: paymentAcc.providerAccountId,
|
|
226
225
|
providerVerificationStatus: paymentAcc.providerVerificationStatus,
|
|
227
226
|
label: Boolean(paymentAcc.institutionDetails.institutionName) === true
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeniai/client-epic-state",
|
|
3
|
-
"version": "4.11.
|
|
3
|
+
"version": "4.11.80",
|
|
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",
|