@zeniai/client-epic-state 4.14.81 → 4.14.83

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.
@@ -216,22 +216,14 @@ const toBusinessVerificationOfficerDataPayload = (companyOfficer, isSubmittingAd
216
216
  if (birthday != null) {
217
217
  company_officer['birthday'] = birthday.format('YYYY-MM-DD');
218
218
  }
219
- if (nationalityCountryCode != null) {
220
- company_officer['nationality_country_code'] = nationalityCountryCode;
221
- }
222
219
  if (userPhone != null) {
223
220
  company_officer['phone'] = userPhone;
224
221
  }
225
- if (titleAtCompany != null) {
226
- company_officer['title_at_company'] = titleAtCompany;
227
- }
228
- if (ownershipInCompany != null) {
229
- company_officer['company_ownership'] = ownershipInCompany;
230
- }
231
- if (documentTypeSelectedForVerification != null) {
232
- company_officer['document_type_for_verification'] =
233
- documentTypeSelectedForVerification;
234
- }
222
+ company_officer['title_at_company'] = titleAtCompany !== null && titleAtCompany !== void 0 ? titleAtCompany : '';
223
+ company_officer['company_ownership'] = ownershipInCompany !== null && ownershipInCompany !== void 0 ? ownershipInCompany : null;
224
+ company_officer['document_type_for_verification'] =
225
+ documentTypeSelectedForVerification !== null && documentTypeSelectedForVerification !== void 0 ? documentTypeSelectedForVerification : '';
226
+ company_officer['nationality_country_code'] = nationalityCountryCode !== null && nationalityCountryCode !== void 0 ? nationalityCountryCode : '';
235
227
  if (companyOfficerAddressPayload != null) {
236
228
  company_officer['address'] = companyOfficerAddressPayload;
237
229
  }
@@ -10,7 +10,7 @@ export interface CompanyOfficerVerificationPayload {
10
10
  birthday: string;
11
11
  nationality_country_code: string;
12
12
  title_at_company: string;
13
- company_ownership: number;
13
+ company_ownership: number | null;
14
14
  document_type_for_verification: string;
15
15
  are_additional_documents_submitted_for_verification: boolean;
16
16
  additional_submitted_documents_for_verification_file_ids: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeniai/client-epic-state",
3
- "version": "4.14.81",
3
+ "version": "4.14.83",
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",