@zeniai/client-epic-state 4.12.92 → 4.12.94

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.
Files changed (91) hide show
  1. package/lib/commonPayloadTypes/commonPayload.d.ts +7 -0
  2. package/lib/commonStateTypes/fileType.d.ts +2 -2
  3. package/lib/commonStateTypes/fileType.js +1 -1
  4. package/lib/entity/company/companyPayload.d.ts +4 -0
  5. package/lib/entity/company/companyPayload.js +8 -3
  6. package/lib/entity/company/companyReducer.d.ts +4 -1
  7. package/lib/entity/company/companyReducer.js +6 -2
  8. package/lib/entity/company/companyStateTypes.d.ts +4 -0
  9. package/lib/entity/file/fileState.d.ts +3 -3
  10. package/lib/entity/file/fileState.js +2 -0
  11. package/lib/entity/tenant/clearAllEpic.d.ts +3 -1
  12. package/lib/entity/tenant/clearAllEpic.js +4 -0
  13. package/lib/entity/user/userPayload.d.ts +1 -0
  14. package/lib/entity/user/userReducer.js +9 -8
  15. package/lib/entity/user/userState.d.ts +1 -0
  16. package/lib/epic.d.ts +6 -1
  17. package/lib/epic.js +6 -1
  18. package/lib/index.d.ts +14 -6
  19. package/lib/index.js +15 -6
  20. package/lib/reducer.d.ts +6 -0
  21. package/lib/reducer.js +6 -0
  22. package/lib/view/addressView/__mocks__/json/createCompanyAddressSuccess.json +7 -1
  23. package/lib/view/addressView/__mocks__/json/createCompanyUserAddressSuccess.json +7 -1
  24. package/lib/view/addressView/addressViewState.d.ts +1 -1
  25. package/lib/view/addressView/toAddressViewLocalData.js +5 -0
  26. package/lib/view/commonVendorView/vendorView/vendorViewSelector.d.ts +1 -1
  27. package/lib/view/companyView/epic/companyPassport/updateCompanyPassportLocalStoreDataEpic.js +1 -6
  28. package/lib/view/companyView/selectorHelpers/getCompanyView.js +4 -0
  29. package/lib/view/companyView/types/companyPassport/companyUsersLocalData.d.ts +2 -0
  30. package/lib/view/companyView/types/companyPassport/companyUsersLocalData.js +7 -1
  31. package/lib/view/companyView/types/companyView.d.ts +1 -0
  32. package/lib/view/countryList/countryListReducer.d.ts +17 -0
  33. package/lib/view/countryList/countryListReducer.js +58 -0
  34. package/lib/view/countryList/countryListSelector.d.ts +7 -0
  35. package/lib/view/countryList/countryListSelector.js +13 -0
  36. package/lib/view/countryList/countryListState.d.ts +12 -0
  37. package/lib/view/countryList/countryListState.js +2 -0
  38. package/lib/view/countryList/epics/fetchCountryListEpic.d.ts +6 -0
  39. package/lib/view/countryList/epics/fetchCountryListEpic.js +19 -0
  40. package/lib/view/countryList/epics/fetchNationalityCountryListEpic.d.ts +7 -0
  41. package/lib/view/countryList/epics/fetchNationalityCountryListEpic.js +38 -0
  42. package/lib/view/countryList/payloads/countryListPayload.d.ts +6 -0
  43. package/lib/view/countryList/payloads/countryListPayload.js +10 -0
  44. package/lib/view/countryList/payloads/nationalityCountryListPayload.d.ts +11 -0
  45. package/lib/view/countryList/payloads/nationalityCountryListPayload.js +2 -0
  46. package/lib/view/onboardingView/customerView/epic/customerDetails/fetchOnboardingCustomerViewEpic.d.ts +8 -1
  47. package/lib/view/onboardingView/customerView/epic/customerDetails/fetchOnboardingCustomerViewEpic.js +3 -1
  48. package/lib/view/onboardingView/customerView/epic/customerDetails/updateOnboardingCustomerViewEpic.js +5 -4
  49. package/lib/view/onboardingView/customerView/onboardingCustomerViewSelector.d.ts +2 -0
  50. package/lib/view/onboardingView/customerView/onboardingCustomerViewSelector.js +6 -3
  51. package/lib/view/scheduleView/scheduleListView/scheduleListTypes.d.ts +1 -1
  52. package/lib/view/spendManagement/billPay/billPayConfig/billPayConfigState.d.ts +1 -4
  53. package/lib/view/spendManagement/billPay/editBillView/editBillViewSelector.d.ts +2 -0
  54. package/lib/view/spendManagement/billPay/editBillView/editBillViewSelector.js +3 -0
  55. package/lib/view/spendManagement/billPay/internationalWire/internationalWireSelector.d.ts +2 -1
  56. package/lib/view/spendManagement/billPay/internationalWireVerification/epics/fetchIntlVerificationFormEpic.d.ts +7 -0
  57. package/lib/view/spendManagement/billPay/internationalWireVerification/epics/fetchIntlVerificationFormEpic.js +36 -0
  58. package/lib/view/spendManagement/billPay/internationalWireVerification/epics/initializeIntlVerificationFormEpic.d.ts +6 -0
  59. package/lib/view/spendManagement/billPay/internationalWireVerification/epics/initializeIntlVerificationFormEpic.js +28 -0
  60. package/lib/view/spendManagement/billPay/internationalWireVerification/epics/submitIntlVerificationEpic.d.ts +9 -0
  61. package/lib/view/spendManagement/billPay/internationalWireVerification/epics/submitIntlVerificationEpic.js +67 -0
  62. package/lib/view/spendManagement/billPay/internationalWireVerification/internationalWireVerificationPayload.d.ts +26 -0
  63. package/lib/view/spendManagement/billPay/internationalWireVerification/internationalWireVerificationPayload.js +22 -0
  64. package/lib/view/spendManagement/billPay/internationalWireVerification/internationalWireVerificationReducer.d.ts +22 -0
  65. package/lib/view/spendManagement/billPay/internationalWireVerification/internationalWireVerificationReducer.js +89 -0
  66. package/lib/view/spendManagement/billPay/internationalWireVerification/internationalWireVerificationSelector.d.ts +15 -0
  67. package/lib/view/spendManagement/billPay/internationalWireVerification/internationalWireVerificationSelector.js +30 -0
  68. package/lib/view/spendManagement/billPay/internationalWireVerification/internationalWireVerificationState.d.ts +20 -0
  69. package/lib/view/spendManagement/billPay/internationalWireVerification/internationalWireVerificationState.js +2 -0
  70. package/lib/view/spendManagement/commonSetup/epic/setup/updateBusinessVerificationDetailsEpic.d.ts +1 -1
  71. package/lib/view/spendManagement/commonSetup/epic/setup/updateBusinessVerificationDetailsEpic.js +31 -6
  72. package/lib/view/spendManagement/commonSetup/epic/setup/updateSetupViewLocalStoreDataEpic.d.ts +2 -2
  73. package/lib/view/spendManagement/commonSetup/epic/setup/updateSetupViewLocalStoreDataEpic.js +5 -2
  74. package/lib/view/spendManagement/commonSetup/setupViewSelector.d.ts +4 -1
  75. package/lib/view/spendManagement/commonSetup/setupViewSelector.js +6 -2
  76. package/lib/view/spendManagement/commonSetup/setupViewState.d.ts +1 -0
  77. package/lib/view/spendManagement/commonSetup/types/businessVerification.d.ts +4 -0
  78. package/lib/view/vendorFiling1099/__mock__/vendorFiling1099ListMock.js +70 -0
  79. package/lib/view/vendorFiling1099/vendorFiling1099List/fetchVendorFiling1099DownloadEpic.d.ts +7 -0
  80. package/lib/view/vendorFiling1099/vendorFiling1099List/fetchVendorFiling1099DownloadEpic.js +35 -0
  81. package/lib/view/vendorFiling1099/vendorFiling1099List/vendorFiling1099ListPayload.d.ts +22 -0
  82. package/lib/view/vendorFiling1099/vendorFiling1099List/vendorFiling1099ListReducer.d.ts +5 -1
  83. package/lib/view/vendorFiling1099/vendorFiling1099List/vendorFiling1099ListReducer.js +29 -2
  84. package/lib/view/vendorFiling1099/vendorFiling1099List/vendorFiling1099ListSelector.d.ts +2 -0
  85. package/lib/view/vendorFiling1099/vendorFiling1099List/vendorFiling1099ListSelector.js +5 -1
  86. package/lib/view/vendorFiling1099/vendorFiling1099List/vendorFiling1099ListState.d.ts +2 -0
  87. package/package.json +2 -2
  88. package/lib/commonPayloadTypes/v2/getSumOfBalancesGroupedByPeriod.d.ts +0 -0
  89. package/lib/commonPayloadTypes/v2/getSumOfBalancesGroupedByPeriod.js +0 -1
  90. package/lib/commonStateTypes/selectorTypes/pickAndMergeForecastSectionWithAcOnly.d.ts +0 -0
  91. package/lib/commonStateTypes/selectorTypes/pickAndMergeForecastSectionWithAcOnly.js +0 -1
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getIntlWireVerificationView = void 0;
4
+ const fileSelector_1 = require("../../../../entity/file/fileSelector");
5
+ const fileViewSelector_1 = require("../../../fileView/fileViewSelector");
6
+ const getIntlWireVerificationView = (state) => {
7
+ const deleteFileStatusById = {};
8
+ const updateFileStatusById = {};
9
+ // field with type = file
10
+ const fileField = state.internationalWireVerificationState.verificationFormFields.find((field) => field.type === 'file');
11
+ let fileId;
12
+ if (fileField != null) {
13
+ fileId = state.internationalWireVerificationState.verificationFormLocalData[fileField.name];
14
+ }
15
+ if (fileId != null) {
16
+ deleteFileStatusById[fileId] = (0, fileViewSelector_1.getFileDeleteStatusById)(state, fileId);
17
+ updateFileStatusById[fileId] = (0, fileViewSelector_1.getFileUpdateNameStatusById)(state, fileId);
18
+ }
19
+ let userFiles = [];
20
+ if (fileId != null) {
21
+ userFiles = (0, fileSelector_1.getFilesByFileIds)(state.fileState, [fileId]);
22
+ }
23
+ const fetchState = state.internationalWireVerificationState.verificationFormFetchState
24
+ .fetchState;
25
+ return Object.assign(Object.assign({}, state.internationalWireVerificationState), { deleteFileStatusById,
26
+ updateFileStatusById,
27
+ userFiles,
28
+ fetchState });
29
+ };
30
+ exports.getIntlWireVerificationView = getIntlWireVerificationView;
@@ -0,0 +1,20 @@
1
+ import { FetchStateAndError } from '../../../../commonStateTypes/common';
2
+ export interface InternationalWireVerificationState {
3
+ verificationFormFetchState: FetchStateAndError;
4
+ verificationFormFields: VerificationFormField[];
5
+ verificationFormLocalData: VerificationFormLocalData;
6
+ verificationFormSubmitState: FetchStateAndError;
7
+ }
8
+ export declare type VerificationFormLocalData = Record<string, string | string[]>;
9
+ export interface FieldValueType {
10
+ code: string;
11
+ description: string;
12
+ }
13
+ export interface VerificationFormField {
14
+ name: string;
15
+ label: string;
16
+ placeholder: string;
17
+ fieldValues: FieldValueType[];
18
+ isMultipleValuesAllowed: boolean;
19
+ type: string;
20
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -16,6 +16,6 @@ import { CompanyDetailsVerificationPayload, CompanyOfficerVerificationPayload, N
16
16
  import { CompanyDetailsLocalData, CompanyOfficerLocalData, PrimaryContactLocalData } from '../../setupViewState';
17
17
  export declare type ActionType = ReturnType<typeof updateBusinessVerificationDetails> | ReturnType<typeof updateAllUsers> | ReturnType<typeof updateUserRoles> | ReturnType<typeof updateCompanies> | ReturnType<typeof updateAddresses> | ReturnType<typeof updateFiles> | ReturnType<typeof updateAccounts> | ReturnType<typeof updatePaymentAccounts> | ReturnType<typeof updateSetupViewLocalStoreData> | ReturnType<typeof updateSelectedCompanyOfficer> | ReturnType<typeof openSnackbar> | ReturnType<typeof updateBusinessVerificationDetailsSuccess> | ReturnType<typeof updateBusinessVerificationDetailsFailure>;
18
18
  export declare const updateBusinessVerificationDetailsEpic: (actions$: ActionsObservable<ActionType>, state$: StateObservable<RootState>, zeniAPI: ZeniAPI) => Observable<ActionType>;
19
- export declare const toBusinessVerificationCompanyDataPayload: (companyLocalData: CompanyDetailsLocalData, sendForVerification: boolean, companyAddressData?: AddressUpdatableInfo | undefined) => Partial<CompanyDetailsVerificationPayload>;
19
+ export declare const toBusinessVerificationCompanyDataPayload: (companyLocalData: CompanyDetailsLocalData, sendForVerification: boolean, companyAddressData?: AddressUpdatableInfo | undefined, registeredAddressData?: AddressUpdatableInfo | undefined) => Partial<CompanyDetailsVerificationPayload>;
20
20
  export declare const toBusinessVerificationPrimaryContactDataPayload: (primaryContact: PrimaryContactLocalData, isNewPrimaryContactUser: boolean) => Partial<PrimaryContactVerificationPayload>;
21
21
  export declare const toBusinessVerificationOfficerDataPayload: (companyOfficer: CompanyOfficerLocalData, isSubmittingAdditionalDocuments: boolean, companyOfficerAddressData?: AddressUpdatableInfo | undefined) => Partial<CompanyOfficerVerificationPayload> | Partial<NewCompanyOfficerVerificationPayload>;
@@ -1,4 +1,7 @@
1
1
  "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
2
5
  Object.defineProperty(exports, "__esModule", { value: true });
3
6
  exports.toBusinessVerificationOfficerDataPayload = exports.toBusinessVerificationPrimaryContactDataPayload = exports.toBusinessVerificationCompanyDataPayload = exports.updateBusinessVerificationDetailsEpic = void 0;
4
7
  const rxjs_1 = require("rxjs");
@@ -15,8 +18,10 @@ const paymentAccountReducer_1 = require("../../../../../entity/paymentAccount/pa
15
18
  const addressViewPayload_1 = require("../../../../addressView/addressViewPayload");
16
19
  const getCompanyView_1 = require("../../../../companyView/selectorHelpers/getCompanyView");
17
20
  const setupViewReducer_1 = require("../../setupViewReducer");
21
+ const addressViewSelector_1 = require("../../../../addressView/addressViewSelector");
22
+ const isEqual_1 = __importDefault(require("lodash/isEqual"));
18
23
  const updateBusinessVerificationDetailsEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(setupViewReducer_1.updateBusinessVerificationDetails.match), (0, operators_1.mergeMap)((action) => {
19
- var _a, _b, _c;
24
+ var _a, _b, _c, _d;
20
25
  const { companyId, officerType, setupViewType, sendForVerification, fromBillListScreen, isSubmittingAdditionalDocuments, } = action.payload;
21
26
  const { setupViewState } = state$.value;
22
27
  const companyLocalData = setupViewState.companyDetails.localData;
@@ -26,14 +31,15 @@ const updateBusinessVerificationDetailsEpic = (actions$, state$, zeniAPI) => act
26
31
  const companyView = (0, getCompanyView_1.getCompanyView)(state$.value, companyId, []);
27
32
  const { newAddressState } = state$.value.addressViewState;
28
33
  const companyAddressToCreate = (_a = newAddressState === null || newAddressState === void 0 ? void 0 : newAddressState.company_address) === null || _a === void 0 ? void 0 : _a.addressToCreate;
34
+ const registeredAddressToCreate = (_b = newAddressState === null || newAddressState === void 0 ? void 0 : newAddressState.company_registered_address) === null || _b === void 0 ? void 0 : _b.addressToCreate;
29
35
  const addressType = officerType
30
36
  .toLowerCase()
31
37
  .concat('_address');
32
- const companyOfficerAddressToCreate = (_b = newAddressState === null || newAddressState === void 0 ? void 0 : newAddressState[addressType]) === null || _b === void 0 ? void 0 : _b.addressToCreate;
38
+ const companyOfficerAddressToCreate = (_c = newAddressState === null || newAddressState === void 0 ? void 0 : newAddressState[addressType]) === null || _c === void 0 ? void 0 : _c.addressToCreate;
33
39
  const isNewPrimaryContactUser = (primaryContactLocalData === null || primaryContactLocalData === void 0 ? void 0 : primaryContactLocalData.userId) == null ||
34
40
  (primaryContactLocalData === null || primaryContactLocalData === void 0 ? void 0 : primaryContactLocalData.email) !==
35
- ((_c = companyView === null || companyView === void 0 ? void 0 : companyView.primaryContact) === null || _c === void 0 ? void 0 : _c.user.email);
36
- const company = (0, exports.toBusinessVerificationCompanyDataPayload)(companyLocalData, sendForVerification, companyAddressToCreate);
41
+ ((_d = companyView === null || companyView === void 0 ? void 0 : companyView.primaryContact) === null || _d === void 0 ? void 0 : _d.user.email);
42
+ const company = (0, exports.toBusinessVerificationCompanyDataPayload)(companyLocalData, sendForVerification, companyAddressToCreate, registeredAddressToCreate);
37
43
  const primary_contact_user = primaryContactLocalData != null &&
38
44
  Boolean(primaryContactLocalData.email) === true // Don't save Empty Primary Contact details
39
45
  ? (0, exports.toBusinessVerificationPrimaryContactDataPayload)(primaryContactLocalData, isNewPrimaryContactUser)
@@ -104,7 +110,7 @@ const updateBusinessVerificationDetailsEpic = (actions$, state$, zeniAPI) => act
104
110
  }
105
111
  }));
106
112
  exports.updateBusinessVerificationDetailsEpic = updateBusinessVerificationDetailsEpic;
107
- const toBusinessVerificationCompanyDataPayload = (companyLocalData, sendForVerification, companyAddressData) => {
113
+ const toBusinessVerificationCompanyDataPayload = (companyLocalData, sendForVerification, companyAddressData, registeredAddressData) => {
108
114
  const { companyDescription, companyLegalName, companyIndustry, website, incDate, taxIdOrEIN, phone, syncToken, fileIds, typeOfIncorporation, } = companyLocalData;
109
115
  const company = {
110
116
  is_ready_for_verification: sendForVerification,
@@ -113,6 +119,19 @@ const toBusinessVerificationCompanyDataPayload = (companyLocalData, sendForVerif
113
119
  const companyAddressPayload = companyAddressData != null
114
120
  ? (0, addressViewPayload_1.toAddressUpdatableInfoPayload)(companyAddressData)
115
121
  : undefined;
122
+ const registeredAddressPayload = registeredAddressData != null
123
+ ? (0, addressViewPayload_1.toAddressUpdatableInfoPayload)(registeredAddressData)
124
+ : undefined;
125
+ if ((0, isEqual_1.default)(companyAddressData != null
126
+ ? (0, addressViewSelector_1.getFormattedAddress)(companyAddressData)
127
+ : companyAddressData, registeredAddressData != null
128
+ ? (0, addressViewSelector_1.getFormattedAddress)(registeredAddressData)
129
+ : registeredAddressData)) {
130
+ company['is_registered_address_same_as_company_address'] = true;
131
+ }
132
+ else {
133
+ company['is_registered_address_same_as_company_address'] = false;
134
+ }
116
135
  if (companyDescription != null) {
117
136
  company['company_description'] = companyDescription;
118
137
  }
@@ -137,6 +156,9 @@ const toBusinessVerificationCompanyDataPayload = (companyLocalData, sendForVerif
137
156
  if (companyAddressPayload != null) {
138
157
  company['address'] = companyAddressPayload;
139
158
  }
159
+ if (registeredAddressPayload != null) {
160
+ company['registered_address'] = registeredAddressPayload;
161
+ }
140
162
  if (typeOfIncorporation != null) {
141
163
  company['company_inc_type'] = typeOfIncorporation;
142
164
  }
@@ -163,7 +185,7 @@ const toBusinessVerificationPrimaryContactDataPayload = (primaryContact, isNewPr
163
185
  };
164
186
  exports.toBusinessVerificationPrimaryContactDataPayload = toBusinessVerificationPrimaryContactDataPayload;
165
187
  const toBusinessVerificationOfficerDataPayload = (companyOfficer, isSubmittingAdditionalDocuments, companyOfficerAddressData) => {
166
- const { firstName, lastName, userId, email, syncToken: userSyncToken, ssn, birthday, phone: userPhone, otpChallenge, isPhoneVerified, titleAtCompany, ownershipInCompany, documentTypeSelectedForVerification, fileIds: userFileIds, additionalSubmittedDocumentsForVerificationFileIds, } = companyOfficer;
188
+ const { firstName, lastName, userId, email, syncToken: userSyncToken, ssn, birthday, nationalityCountryCode, phone: userPhone, otpChallenge, isPhoneVerified, titleAtCompany, ownershipInCompany, documentTypeSelectedForVerification, fileIds: userFileIds, additionalSubmittedDocumentsForVerificationFileIds, } = companyOfficer;
167
189
  const company_officer = {
168
190
  first_name: firstName,
169
191
  last_name: lastName,
@@ -194,6 +216,9 @@ const toBusinessVerificationOfficerDataPayload = (companyOfficer, isSubmittingAd
194
216
  if (birthday != null) {
195
217
  company_officer['birthday'] = birthday.format('YYYY-MM-DD');
196
218
  }
219
+ if (nationalityCountryCode != null) {
220
+ company_officer['nationality_country_code'] = nationalityCountryCode;
221
+ }
197
222
  if (userPhone != null) {
198
223
  company_officer['phone'] = userPhone;
199
224
  }
@@ -5,8 +5,8 @@ import { Company } from '../../../../../entity/company/companyStateTypes';
5
5
  import { clearSetupViewDataInLocalStore, saveSetupViewDataInLocalStore, updateSetupViewLocalStoreData } from '../../setupViewReducer';
6
6
  import { SetupViewLocalData } from '../../setupViewState';
7
7
  import { UserRole } from '../../../../../entity/userRole/userRoleState';
8
- import { newAddressInLocalStore, resetNewAddressesInLocalStore } from '../../../../addressView/addressViewReducer';
9
- export declare type ActionType = ReturnType<typeof updateSetupViewLocalStoreData> | ReturnType<typeof saveSetupViewDataInLocalStore> | ReturnType<typeof clearSetupViewDataInLocalStore> | ReturnType<typeof resetNewAddressesInLocalStore> | ReturnType<typeof newAddressInLocalStore>;
8
+ import { newAddressInLocalStore, resetNewAddressDataInLocalStoreForAddressTypes } from '../../../../addressView/addressViewReducer';
9
+ export declare type ActionType = ReturnType<typeof updateSetupViewLocalStoreData> | ReturnType<typeof saveSetupViewDataInLocalStore> | ReturnType<typeof clearSetupViewDataInLocalStore> | ReturnType<typeof resetNewAddressDataInLocalStoreForAddressTypes> | ReturnType<typeof newAddressInLocalStore>;
10
10
  export declare const updateSetupViewLocalStoreDataEpic: (actions$: ActionsObservable<ActionType>, state$: StateObservable<RootState>) => import("rxjs").Observable<ActionType>;
11
11
  /**
12
12
  * Helpers
@@ -29,7 +29,8 @@ const updateSetupViewLocalStoreDataEpic = (actions$, state$) => actions$.pipe((0
29
29
  const fetchActions = [];
30
30
  if (company != null) {
31
31
  const setupViewLocalData = toSetupViewLocalData(company, companyOfficers, companyOfficerRoles, primaryContact);
32
- fetchActions.push((0, setupViewReducer_1.clearSetupViewDataInLocalStore)(), (0, setupViewReducer_1.saveSetupViewDataInLocalStore)(setupViewLocalData), (0, addressViewReducer_1.resetNewAddressesInLocalStore)());
32
+ fetchActions.push((0, setupViewReducer_1.clearSetupViewDataInLocalStore)(), (0, setupViewReducer_1.saveSetupViewDataInLocalStore)(setupViewLocalData));
33
+ fetchActions.push((0, addressViewReducer_1.resetNewAddressDataInLocalStoreForAddressTypes)(companyUsersLocalData_1.AllCompanyPassportAddressTypes));
33
34
  }
34
35
  if (companyView != null) {
35
36
  const addresses = (0, toAddressViewLocalData_1.toAddressViewLocalData)(companyView);
@@ -90,7 +91,7 @@ function toSetupViewLocalData(company, users, userRoles, primaryContact) {
90
91
  }
91
92
  const officers = companyOfficers.map((user, index) => {
92
93
  var _a, _b, _c, _d, _e;
93
- const { userId, firstName, lastName, birthday, email, phone: userPhone, isPhoneVerified, ssn, syncToken, } = user;
94
+ const { userId, firstName, lastName, birthday, email, nationalityCountryCode, phone: userPhone, isPhoneVerified, ssn, syncToken, } = user;
94
95
  const userRole = userRoles.find((userRole) => userRole.userId === userId);
95
96
  return {
96
97
  officerType: `Officer_${index + 1}`,
@@ -99,6 +100,7 @@ function toSetupViewLocalData(company, users, userRoles, primaryContact) {
99
100
  lastName,
100
101
  birthday,
101
102
  email,
103
+ nationalityCountryCode,
102
104
  phone: userPhone,
103
105
  isPhoneVerified,
104
106
  ssn,
@@ -122,6 +124,7 @@ function toSetupViewLocalData(company, users, userRoles, primaryContact) {
122
124
  firstName: '',
123
125
  lastName: '',
124
126
  email: '',
127
+ nationalityCountryCode: undefined,
125
128
  fileIds: [],
126
129
  isSelectedForVerification: false,
127
130
  additionalDocumentTypesRequestedForVerification: [],
@@ -16,6 +16,7 @@ import { DepositAccount } from '../../../entity/depositAccount/depositAccount';
16
16
  import { AllowedValueWithCode } from '../../../commonStateTypes/allowedValue';
17
17
  import { Amount } from '../../../commonStateTypes/amount';
18
18
  import { BalanceChange } from '../../../commonStateTypes/balance';
19
+ import { Country } from '../../countryList/countryListState';
19
20
  export interface SetupView {
20
21
  allFundingAccounts: FundingAccount[];
21
22
  allBankAccounts: AccountBase[];
@@ -72,6 +73,7 @@ export interface CompanyDetails {
72
73
  incDate?: ZeniDate;
73
74
  syncToken?: string;
74
75
  addressStatus?: NewAddressData;
76
+ registeredAddressStatus?: NewAddressData;
75
77
  primaryContactLocalData?: PrimaryContactLocalData;
76
78
  typeOfIncorporation?: string;
77
79
  }
@@ -80,8 +82,9 @@ interface CompanyAndOfficerLocalData {
80
82
  companyOfficerLocalData: Record<CompanyOfficerType, CompanyOfficersDetails | undefined>;
81
83
  }
82
84
  export interface BusinessVerificationDetails extends CompanyAndOfficerLocalData {
83
- companyView?: CompanyView;
84
85
  updateStatus: FetchStateAndError;
86
+ allNationalityCountries: Country[];
87
+ companyView?: CompanyView;
85
88
  }
86
89
  export declare function getCommonSetupViewDetails(state: RootState, companyId: ID, setupViewType: SetupViewType, plaidAccountKeyType: PlaidAccountKeyType): SetupView;
87
90
  export declare function getBusinessVerificationDetails(state: RootState, companyId: ID): BusinessVerificationDetails;
@@ -82,7 +82,7 @@ function getPrimaryAccountForTheProduct(state, companyId, setupViewType) {
82
82
  return primaryFundingAccount;
83
83
  }
84
84
  function getBusinessVerificationDetails(state, companyId) {
85
- const { setupViewState } = state;
85
+ const { setupViewState, countryListState } = state;
86
86
  const { companyDetails, companyOfficerUpdateStatus, primaryContactDetails, updateStatus, } = setupViewState;
87
87
  const companyView = (0, getCompanyView_1.getCompanyView)(state, companyId, []);
88
88
  const { companyDetailsLocalData, companyOfficerLocalData } = (0, exports.getCompanyAndIdentityDetails)(state, companyId, {
@@ -90,16 +90,18 @@ function getBusinessVerificationDetails(state, companyId) {
90
90
  companyOfficerUpdateStatus,
91
91
  primaryContactDetails,
92
92
  });
93
+ const allNationalityCountries = countryListState.byCountryListCode.nationalityCountryList.countries;
93
94
  return {
94
95
  companyDetailsLocalData,
95
96
  companyOfficerLocalData,
96
97
  companyView,
97
98
  updateStatus,
99
+ allNationalityCountries,
98
100
  };
99
101
  }
100
102
  exports.getBusinessVerificationDetails = getBusinessVerificationDetails;
101
103
  const getCompanyAndIdentityDetails = (state, companyId, companyAndIdentityDetails) => {
102
- var _a;
104
+ var _a, _b;
103
105
  const { companyDetails, companyOfficerUpdateStatus, primaryContactDetails } = companyAndIdentityDetails;
104
106
  const { fileState, addressViewState } = state;
105
107
  const { localData: primaryContactLocalData } = primaryContactDetails;
@@ -115,6 +117,7 @@ const getCompanyAndIdentityDetails = (state, companyId, companyAndIdentityDetail
115
117
  updateFileStatusById[fileId] = (0, fileViewSelector_1.getFileUpdateNameStatusById)(state, fileId);
116
118
  });
117
119
  const companyAddress = (_a = addressViewState.newAddressState) === null || _a === void 0 ? void 0 : _a.company_address;
120
+ const registeredCompanyAddress = (_b = addressViewState.newAddressState) === null || _b === void 0 ? void 0 : _b.company_registered_address;
118
121
  companyDetailsLocalData = {
119
122
  companyId,
120
123
  companyDescription,
@@ -129,6 +132,7 @@ const getCompanyAndIdentityDetails = (state, companyId, companyAndIdentityDetail
129
132
  deleteFileStatusById,
130
133
  updateFileStatusById,
131
134
  addressStatus: companyAddress,
135
+ registeredAddressStatus: registeredCompanyAddress,
132
136
  primaryContactLocalData,
133
137
  typeOfIncorporation,
134
138
  };
@@ -35,6 +35,7 @@ export interface CompanyOfficerLocalData {
35
35
  firstName: string;
36
36
  lastName: string;
37
37
  email: string;
38
+ nationalityCountryCode?: string;
38
39
  ssn?: string;
39
40
  phone?: string;
40
41
  isPhoneVerified?: boolean;
@@ -8,6 +8,7 @@ export interface CompanyOfficerVerificationPayload {
8
8
  sync_token: string;
9
9
  ssn: string;
10
10
  birthday: string;
11
+ nationality_country_code: string;
11
12
  title_at_company: string;
12
13
  company_ownership: number;
13
14
  document_type_for_verification: string;
@@ -31,6 +32,7 @@ export interface NewCompanyOfficerVerificationPayload {
31
32
  title_at_company: string;
32
33
  company_ownership: number;
33
34
  document_type_for_verification: string;
35
+ nationality_country_code: string;
34
36
  file_ids: ID[];
35
37
  address: AddressUpdatableInfoPayload;
36
38
  phone_verification?: {
@@ -55,6 +57,8 @@ export interface CompanyDetailsVerificationPayload {
55
57
  file_ids: ID[];
56
58
  sync_token: string;
57
59
  address: AddressUpdatableInfoPayload;
60
+ registered_address: AddressUpdatableInfoPayload;
61
+ is_registered_address_same_as_company_address: boolean;
58
62
  company_inc_type: string;
59
63
  company_inc_date: string | null;
60
64
  is_new_company_industry_verified: boolean;
@@ -28,6 +28,20 @@ exports.vendorFiling1099ListInProgressState = {
28
28
  hasValidState: vendorFiling1099ListReducer_1.initialState.hasValidState,
29
29
  lastRefreshSuccessTime: undefined,
30
30
  isVendor1099Populated: true,
31
+ vendorFiling1099DownloadData: {
32
+ nec: {
33
+ data: [],
34
+ customHeaders: [],
35
+ },
36
+ misc: {
37
+ data: [],
38
+ customHeaders: [],
39
+ },
40
+ int: {
41
+ data: [],
42
+ customHeaders: [],
43
+ },
44
+ },
31
45
  };
32
46
  exports.vendorFiling1099ListInProgressInitialState = {
33
47
  vendorIds: [],
@@ -43,6 +57,20 @@ exports.vendorFiling1099ListInProgressInitialState = {
43
57
  hasValidState: vendorFiling1099ListReducer_1.initialState.hasValidState,
44
58
  lastRefreshSuccessTime: undefined,
45
59
  isVendor1099Populated: false,
60
+ vendorFiling1099DownloadData: {
61
+ nec: {
62
+ data: [],
63
+ customHeaders: [],
64
+ },
65
+ misc: {
66
+ data: [],
67
+ customHeaders: [],
68
+ },
69
+ int: {
70
+ data: [],
71
+ customHeaders: [],
72
+ },
73
+ },
46
74
  };
47
75
  exports.vendorFiling1099ListSuccessState = {
48
76
  vendorIds: ['vendor_j12jh1g2g12jg3jh12:12'],
@@ -58,6 +86,20 @@ exports.vendorFiling1099ListSuccessState = {
58
86
  hasValidState: vendorFiling1099ListReducer_1.initialState.hasValidState,
59
87
  lastRefreshSuccessTime: (0, zeniDayJS_1.date)('2024-09-26T07:44:02.150Z'),
60
88
  isVendor1099Populated: true,
89
+ vendorFiling1099DownloadData: {
90
+ nec: {
91
+ data: [],
92
+ customHeaders: [],
93
+ },
94
+ misc: {
95
+ data: [],
96
+ customHeaders: [],
97
+ },
98
+ int: {
99
+ data: [],
100
+ customHeaders: [],
101
+ },
102
+ },
61
103
  };
62
104
  exports.vendorFiling1099ListFailureState = {
63
105
  vendorIds: [],
@@ -76,6 +118,20 @@ exports.vendorFiling1099ListFailureState = {
76
118
  },
77
119
  hasValidState: vendorFiling1099ListReducer_1.initialState.hasValidState,
78
120
  isVendor1099Populated: false,
121
+ vendorFiling1099DownloadData: {
122
+ nec: {
123
+ data: [],
124
+ customHeaders: [],
125
+ },
126
+ misc: {
127
+ data: [],
128
+ customHeaders: [],
129
+ },
130
+ int: {
131
+ data: [],
132
+ customHeaders: [],
133
+ },
134
+ },
79
135
  };
80
136
  exports.rootStateWithVendorFiling1099List = Object.assign({}, reducer_1.initialRootState, {
81
137
  vendorState: {
@@ -97,6 +153,20 @@ exports.rootStateWithVendorFiling1099List = Object.assign({}, reducer_1.initialR
97
153
  lastRefreshSuccessTime: undefined,
98
154
  hasValidState: vendorFiling1099ListReducer_1.initialState.hasValidState,
99
155
  isVendor1099Populated: true,
156
+ vendorFiling1099DownloadData: {
157
+ nec: {
158
+ data: [],
159
+ customHeaders: [],
160
+ },
161
+ misc: {
162
+ data: [],
163
+ customHeaders: [],
164
+ },
165
+ int: {
166
+ data: [],
167
+ customHeaders: [],
168
+ },
169
+ },
100
170
  },
101
171
  vendorTypeListState: {
102
172
  fetchState: 'Completed',
@@ -0,0 +1,7 @@
1
+ import { ActionsObservable, StateObservable } from 'redux-observable';
2
+ import { Observable } from 'rxjs';
3
+ import { ZeniAPI } from '../../../zeniAPI';
4
+ import { RootState } from '../../../reducer';
5
+ import { fetchVendorFiling1099Download, updateVendorFiling1099DownloadData } from './vendorFiling1099ListReducer';
6
+ export declare type ActionType = ReturnType<typeof fetchVendorFiling1099Download> | ReturnType<typeof updateVendorFiling1099DownloadData>;
7
+ export declare const fetchVendorFiling1099DownloadEpic: (actions$: ActionsObservable<ActionType>, _state$: StateObservable<RootState>, zeniAPI: ZeniAPI) => Observable<ActionType>;
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.fetchVendorFiling1099DownloadEpic = void 0;
4
+ const rxjs_1 = require("rxjs");
5
+ const operators_1 = require("rxjs/operators");
6
+ const responsePayload_1 = require("../../../responsePayload");
7
+ const vendorFiling1099ListReducer_1 = require("./vendorFiling1099ListReducer");
8
+ const fetchVendorFiling1099DownloadEpic = (actions$, _state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(vendorFiling1099ListReducer_1.fetchVendorFiling1099Download.match), (0, operators_1.switchMap)(() => {
9
+ const apiUrl = `${zeniAPI.apiEndPoints.accountMicroServiceBaseUrl}/2.0/reports/vendor_1099`;
10
+ return zeniAPI.getJSON(apiUrl).pipe((0, operators_1.switchMap)((response) => {
11
+ if ((0, responsePayload_1.isSuccessResponse)(response) && response.data != null) {
12
+ const actions = [];
13
+ actions.push((0, vendorFiling1099ListReducer_1.updateVendorFiling1099DownloadData)({
14
+ response: response,
15
+ downloadState: 'Completed',
16
+ }));
17
+ return actions;
18
+ }
19
+ else {
20
+ return (0, rxjs_1.of)((0, vendorFiling1099ListReducer_1.updateVendorFiling1099DownloadData)({
21
+ response: response,
22
+ downloadState: 'Error',
23
+ }));
24
+ }
25
+ }), (0, operators_1.catchError)((error) => {
26
+ return (0, rxjs_1.of)((0, vendorFiling1099ListReducer_1.updateVendorFiling1099DownloadData)({
27
+ response: {
28
+ status: (0, responsePayload_1.createZeniAPIStatus)('Error', 'Fetch vendors 1099 list REST API call failed' +
29
+ JSON.stringify(error)),
30
+ },
31
+ downloadState: 'Error',
32
+ }));
33
+ }));
34
+ }));
35
+ exports.fetchVendorFiling1099DownloadEpic = fetchVendorFiling1099DownloadEpic;
@@ -11,3 +11,25 @@ export interface ReportVendorFiling1099Payload extends ReportPayload {
11
11
  is_vendor_1099_populated: boolean;
12
12
  }
13
13
  export declare type VendorFiling1099ListResponse = ZeniAPIResponse<FetchVendorFiling1099Payload>;
14
+ export interface VendorFiling1099DownloadData {
15
+ nec?: {
16
+ data: DownloadData[];
17
+ customHeaders: CustomHeader[];
18
+ };
19
+ misc?: {
20
+ data: DownloadData[];
21
+ customHeaders: CustomHeader[];
22
+ };
23
+ int?: {
24
+ data: DownloadData[];
25
+ customHeaders: CustomHeader[];
26
+ };
27
+ }
28
+ export interface CustomHeader {
29
+ label: string;
30
+ key: string;
31
+ }
32
+ export interface DownloadData {
33
+ [key: string]: string | number;
34
+ }
35
+ export declare type VendorFiling1099DownloadResponse = ZeniAPIResponse<VendorFiling1099DownloadData>;
@@ -1,7 +1,8 @@
1
1
  import { SortOrder } from '../../../commonStateTypes/selectorTypes/sortOrderTypes';
2
2
  import { ZeniAPIStatus } from '../../../responsePayload';
3
- import { VendorFiling1099ListResponse } from './vendorFiling1099ListPayload';
3
+ import { VendorFiling1099DownloadResponse, VendorFiling1099ListResponse } from './vendorFiling1099ListPayload';
4
4
  import { VendorFiling1099ListState, VendorFiling1099ListViewSortKey } from './vendorFiling1099ListState';
5
+ import { FetchState } from '../../../commonStateTypes/common';
5
6
  export declare const initialState: VendorFiling1099ListState;
6
7
  export declare const fetchVendorsFiling1099All: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[cacheOverride: boolean], {
7
8
  cacheOverride: boolean;
@@ -18,6 +19,9 @@ export declare const fetchVendorsFiling1099All: import("@reduxjs/toolkit").Actio
18
19
  sortKey: VendorFiling1099ListViewSortKey;
19
20
  }, string>, updateFiling1099SearchUIState: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
20
21
  searchString: string;
22
+ }, string>, fetchVendorFiling1099Download: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, updateVendorFiling1099DownloadData: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
23
+ response: VendorFiling1099DownloadResponse;
24
+ downloadState: FetchState;
21
25
  }, string>;
22
26
  declare const _default: import("@reduxjs/toolkit").Reducer<VendorFiling1099ListState, import("@reduxjs/toolkit").AnyAction>;
23
27
  export default _default;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  var _a;
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.updateFiling1099SearchUIState = exports.updateFiling1099SortUIState = exports.updateFiling1099ScrollYOffset = exports.clearVendorsFiling1099List = exports.updateVendorFiling1099ListFailure = exports.updateVendorsFiling1099List = exports.fetchVendorsFiling1099List = exports.fetchVendorsFiling1099All = exports.initialState = void 0;
4
+ exports.updateVendorFiling1099DownloadData = exports.fetchVendorFiling1099Download = exports.updateFiling1099SearchUIState = exports.updateFiling1099SortUIState = exports.updateFiling1099ScrollYOffset = exports.clearVendorsFiling1099List = exports.updateVendorFiling1099ListFailure = exports.updateVendorsFiling1099List = exports.fetchVendorsFiling1099List = exports.fetchVendorsFiling1099All = exports.initialState = void 0;
5
5
  const toolkit_1 = require("@reduxjs/toolkit");
6
6
  const zeniDayJS_1 = require("../../../zeniDayJS");
7
7
  exports.initialState = {
@@ -20,6 +20,20 @@ exports.initialState = {
20
20
  downloadState: 'Not-Started',
21
21
  searchString: '',
22
22
  },
23
+ vendorFiling1099DownloadData: {
24
+ nec: {
25
+ data: [],
26
+ customHeaders: [],
27
+ },
28
+ misc: {
29
+ data: [],
30
+ customHeaders: [],
31
+ },
32
+ int: {
33
+ data: [],
34
+ customHeaders: [],
35
+ },
36
+ },
23
37
  };
24
38
  const vendorFiling1099List = (0, toolkit_1.createSlice)({
25
39
  name: 'vendorFiling1099List',
@@ -74,10 +88,23 @@ const vendorFiling1099List = (0, toolkit_1.createSlice)({
74
88
  draft.fetchState = 'Error';
75
89
  draft.error = action.payload.status;
76
90
  },
91
+ //Reducers for VendorFiling1099Download
92
+ fetchVendorFiling1099Download(draft) {
93
+ draft.uiState.downloadState = 'In-Progress';
94
+ },
95
+ updateVendorFiling1099DownloadData(draft, action) {
96
+ var _a, _b, _c;
97
+ draft.vendorFiling1099DownloadData.nec =
98
+ (_a = action.payload.response.data) === null || _a === void 0 ? void 0 : _a.nec;
99
+ draft.vendorFiling1099DownloadData.misc =
100
+ (_b = action.payload.response.data) === null || _b === void 0 ? void 0 : _b.misc;
101
+ draft.vendorFiling1099DownloadData.int =
102
+ (_c = action.payload.response.data) === null || _c === void 0 ? void 0 : _c.int;
103
+ },
77
104
  clearVendorsFiling1099List(draft) {
78
105
  Object.assign(draft, exports.initialState);
79
106
  },
80
107
  },
81
108
  });
82
- _a = vendorFiling1099List.actions, exports.fetchVendorsFiling1099All = _a.fetchVendorsFiling1099All, exports.fetchVendorsFiling1099List = _a.fetchVendorsFiling1099List, exports.updateVendorsFiling1099List = _a.updateVendorsFiling1099List, exports.updateVendorFiling1099ListFailure = _a.updateVendorFiling1099ListFailure, exports.clearVendorsFiling1099List = _a.clearVendorsFiling1099List, exports.updateFiling1099ScrollYOffset = _a.updateFiling1099ScrollYOffset, exports.updateFiling1099SortUIState = _a.updateFiling1099SortUIState, exports.updateFiling1099SearchUIState = _a.updateFiling1099SearchUIState;
109
+ _a = vendorFiling1099List.actions, exports.fetchVendorsFiling1099All = _a.fetchVendorsFiling1099All, exports.fetchVendorsFiling1099List = _a.fetchVendorsFiling1099List, exports.updateVendorsFiling1099List = _a.updateVendorsFiling1099List, exports.updateVendorFiling1099ListFailure = _a.updateVendorFiling1099ListFailure, exports.clearVendorsFiling1099List = _a.clearVendorsFiling1099List, exports.updateFiling1099ScrollYOffset = _a.updateFiling1099ScrollYOffset, exports.updateFiling1099SortUIState = _a.updateFiling1099SortUIState, exports.updateFiling1099SearchUIState = _a.updateFiling1099SearchUIState, exports.fetchVendorFiling1099Download = _a.fetchVendorFiling1099Download, exports.updateVendorFiling1099DownloadData = _a.updateVendorFiling1099DownloadData;
83
110
  exports.default = vendorFiling1099List.reducer;
@@ -5,6 +5,7 @@ import { ZeniDate } from '../../../zeniDayJS';
5
5
  import { VendorFiling1099ListViewSortKey, VendorFiling1099ViewUIState } from './vendorFiling1099ListState';
6
6
  import { SortOrder } from '../../../commonStateTypes/selectorTypes/sortOrderTypes';
7
7
  import { VendorType } from '../../vendorTypeList/vendorTypeListPayload';
8
+ import { VendorFiling1099DownloadData } from './vendorFiling1099ListPayload';
8
9
  export interface VendorFiling1099ListSelectorView extends SelectorView {
9
10
  vendors: Vendor[];
10
11
  vendorTypeList: VendorType[];
@@ -15,3 +16,4 @@ export interface VendorFiling1099ListSelectorView extends SelectorView {
15
16
  }
16
17
  export declare const getVendorFiling1099List: (state: RootState) => VendorFiling1099ListSelectorView;
17
18
  export declare const sortedVendorFiling1099View: (vendorFiling1099List: Vendor[], sortKey: VendorFiling1099ListViewSortKey, sortOrder: SortOrder) => Vendor[];
19
+ export declare const getVendorFiling1099DownloadData: (state: RootState) => VendorFiling1099DownloadData;
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.sortedVendorFiling1099View = exports.getVendorFiling1099List = void 0;
6
+ exports.getVendorFiling1099DownloadData = exports.sortedVendorFiling1099View = exports.getVendorFiling1099List = void 0;
7
7
  const vendorSelector_1 = require("../../../entity/vendor/vendorSelector");
8
8
  const orderBy_1 = __importDefault(require("lodash/orderBy"));
9
9
  const reduceFetchState_1 = require("../../../commonStateTypes/reduceFetchState");
@@ -63,3 +63,7 @@ const sortedVendorFiling1099View = (vendorFiling1099List, sortKey, sortOrder) =>
63
63
  }, sortOrder === 'ascending' ? 'asc' : 'desc');
64
64
  };
65
65
  exports.sortedVendorFiling1099View = sortedVendorFiling1099View;
66
+ const getVendorFiling1099DownloadData = (state) => {
67
+ return state.vendorFiling1099ListState.vendorFiling1099DownloadData;
68
+ };
69
+ exports.getVendorFiling1099DownloadData = getVendorFiling1099DownloadData;
@@ -1,6 +1,7 @@
1
1
  import { FetchedState, FetchState, ID } from '../../../commonStateTypes/common';
2
2
  import { SortOrder } from '../../../commonStateTypes/selectorTypes/sortOrderTypes';
3
3
  import { ZeniDate } from '../../../zeniDayJS';
4
+ import { VendorFiling1099DownloadData } from './vendorFiling1099ListPayload';
4
5
  export interface VendorFiling1099ViewUIState {
5
6
  sortKey: VendorFiling1099ListViewSortKey;
6
7
  sortOrder: SortOrder;
@@ -12,6 +13,7 @@ export interface VendorFiling1099ListState extends FetchedState {
12
13
  vendorIds: ID[];
13
14
  uiState: VendorFiling1099ViewUIState;
14
15
  isVendor1099Populated: boolean;
16
+ vendorFiling1099DownloadData: VendorFiling1099DownloadData;
15
17
  lastRefreshSuccessTime?: ZeniDate;
16
18
  }
17
19
  export interface VendorFiling1099ListQuery {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeniai/client-epic-state",
3
- "version": "4.12.92",
3
+ "version": "4.12.94",
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",
@@ -88,7 +88,7 @@
88
88
  "build": "concurrently --kill-others-on-fail \"eslint . --ext .js,.jsx,.ts,.tsx\" \"tsc\" \"jest --config jest.config.json\"",
89
89
  "onlybuild": "concurrently --kill-others-on-fail \"eslint . --ext .js,.jsx,.ts,.tsx\" \"tsc\"",
90
90
  "format": "prettier --write --ignore-unknown \"src/**/*\"",
91
- "format-watch": "git diff --name-only --cached --diff-filter=ACM | grep -E '\\.(ts|tsx)$' | xargs prettier --write",
91
+ "format-watch": "(git diff --name-only --diff-filter=ACM && git ls-files --others --exclude-standard) | grep -E '\\.(ts|tsx)$' | xargs prettier --write",
92
92
  "check-version": "ts-node ./scripts/check-version.ts",
93
93
  "version": "git add -A src",
94
94
  "postversion": "git push && git push --tags",