@zeniai/client-epic-state 4.11.79 → 4.11.81
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/view/companyHealthMetricView/companyHealthMetricViewSelector.d.ts +1 -0
- package/lib/view/companyHealthMetricView/companyHealthMetricViewSelector.js +2 -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),
|
|
@@ -28,6 +28,7 @@ export interface CompanyHealthMetricViewSelector extends SelectorView {
|
|
|
28
28
|
companies: CompanyDetailWithHealthMetric[];
|
|
29
29
|
companyHealthMetricDropDownOptions: CompanyHealthMetricDropDownOption[];
|
|
30
30
|
uiState: CompanyHealthViewUIState;
|
|
31
|
+
unfilteredCompanyCount: number;
|
|
31
32
|
localFormDataAndStatusByCompanyId?: EditCompanyHealthMetrics;
|
|
32
33
|
selectedCompanyId: ID | undefined;
|
|
33
34
|
selectedCompanyDetail: CompanyDetailWithHealthMetric | undefined;
|
|
@@ -88,6 +88,7 @@ const getCompanyHealthMetricView = (state) => {
|
|
|
88
88
|
const orderedZeniUsers = (0, orderBy_1.default)(zeniUsers, (user) => (0, userSelector_1.getUserName)(user), 'asc');
|
|
89
89
|
return {
|
|
90
90
|
uiState: uiState,
|
|
91
|
+
unfilteredCompanyCount: companiesHealthMetrics.length,
|
|
91
92
|
version: '1.0',
|
|
92
93
|
selectedCompanyId: companyHealthMetricViewState.selectedCompanyId,
|
|
93
94
|
fetchState: companyHealthMetricViewState.fetchState,
|
|
@@ -477,7 +478,7 @@ const sortAndFilterCompanies = (sortKey, sortOrder, filterText, filters, compani
|
|
|
477
478
|
? Infinity
|
|
478
479
|
: (_b = (_a = company.companyHealthMetric.runway) === null || _a === void 0 ? void 0 : _a.runwayMonths) !== null && _b !== void 0 ? _b : 0;
|
|
479
480
|
case 'lastReportSent':
|
|
480
|
-
return (
|
|
481
|
+
return (_c = company.managegmentInfo.lastReportSentDate) !== null && _c !== void 0 ? _c : DEFAULT_DATE;
|
|
481
482
|
case 'renewalDate':
|
|
482
483
|
return ((_d = company.companyHealthMetric.subscriptionRenewalDate) !== null && _d !== void 0 ? _d : DEFAULT_DATE);
|
|
483
484
|
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.81",
|
|
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",
|