@zeniai/client-epic-state 4.12.96 → 4.12.98

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 (92) hide show
  1. package/lib/commonPayloadTypes/commonPayload.d.ts +0 -7
  2. package/lib/commonPayloadTypes/v2/getSumOfBalancesGroupedByPeriod.d.ts +0 -0
  3. package/lib/commonPayloadTypes/v2/getSumOfBalancesGroupedByPeriod.js +1 -0
  4. package/lib/commonStateTypes/fileType.d.ts +2 -2
  5. package/lib/commonStateTypes/fileType.js +1 -1
  6. package/lib/commonStateTypes/selectorTypes/pickAndMergeForecastSectionWithAcOnly.d.ts +0 -0
  7. package/lib/commonStateTypes/selectorTypes/pickAndMergeForecastSectionWithAcOnly.js +1 -0
  8. package/lib/entity/company/companyPayload.d.ts +0 -4
  9. package/lib/entity/company/companyPayload.js +3 -8
  10. package/lib/entity/company/companyReducer.d.ts +1 -4
  11. package/lib/entity/company/companyReducer.js +2 -6
  12. package/lib/entity/company/companyStateTypes.d.ts +0 -4
  13. package/lib/entity/file/fileState.d.ts +3 -3
  14. package/lib/entity/file/fileState.js +0 -2
  15. package/lib/entity/tenant/clearAllEpic.d.ts +1 -3
  16. package/lib/entity/tenant/clearAllEpic.js +0 -4
  17. package/lib/entity/user/userPayload.d.ts +0 -1
  18. package/lib/entity/user/userReducer.js +8 -9
  19. package/lib/entity/user/userState.d.ts +0 -1
  20. package/lib/epic.d.ts +1 -7
  21. package/lib/epic.js +1 -7
  22. package/lib/index.d.ts +8 -16
  23. package/lib/index.js +8 -20
  24. package/lib/reducer.d.ts +0 -6
  25. package/lib/reducer.js +0 -6
  26. package/lib/view/addressView/__mocks__/json/createCompanyAddressSuccess.json +1 -7
  27. package/lib/view/addressView/__mocks__/json/createCompanyUserAddressSuccess.json +1 -7
  28. package/lib/view/addressView/addressViewState.d.ts +1 -1
  29. package/lib/view/addressView/toAddressViewLocalData.js +0 -5
  30. package/lib/view/commonVendorView/vendorView/vendorViewSelector.d.ts +1 -1
  31. package/lib/view/companyView/epic/companyPassport/updateCompanyPassportLocalStoreDataEpic.js +6 -1
  32. package/lib/view/companyView/selectorHelpers/getCompanyView.js +0 -4
  33. package/lib/view/companyView/types/companyPassport/companyUsersLocalData.d.ts +0 -2
  34. package/lib/view/companyView/types/companyPassport/companyUsersLocalData.js +1 -7
  35. package/lib/view/companyView/types/companyView.d.ts +0 -1
  36. package/lib/view/onboardingView/customerView/epic/customerDetails/fetchOnboardingCustomerViewEpic.d.ts +1 -8
  37. package/lib/view/onboardingView/customerView/epic/customerDetails/fetchOnboardingCustomerViewEpic.js +1 -3
  38. package/lib/view/onboardingView/customerView/epic/customerDetails/updateOnboardingCustomerViewEpic.js +4 -5
  39. package/lib/view/onboardingView/customerView/onboardingCustomerViewSelector.d.ts +0 -2
  40. package/lib/view/onboardingView/customerView/onboardingCustomerViewSelector.js +3 -6
  41. package/lib/view/scheduleView/scheduleListView/scheduleListTypes.d.ts +1 -1
  42. package/lib/view/spendManagement/billPay/billPayConfig/billPayConfigState.d.ts +4 -1
  43. package/lib/view/spendManagement/billPay/editBillView/editBillViewSelector.d.ts +0 -2
  44. package/lib/view/spendManagement/billPay/editBillView/editBillViewSelector.js +0 -3
  45. package/lib/view/spendManagement/billPay/internationalWire/internationalWireSelector.d.ts +1 -2
  46. package/lib/view/spendManagement/commonSetup/epic/setup/updateBusinessVerificationDetailsEpic.d.ts +1 -1
  47. package/lib/view/spendManagement/commonSetup/epic/setup/updateBusinessVerificationDetailsEpic.js +6 -31
  48. package/lib/view/spendManagement/commonSetup/epic/setup/updateSetupViewLocalStoreDataEpic.d.ts +2 -2
  49. package/lib/view/spendManagement/commonSetup/epic/setup/updateSetupViewLocalStoreDataEpic.js +2 -5
  50. package/lib/view/spendManagement/commonSetup/setupViewSelector.d.ts +1 -4
  51. package/lib/view/spendManagement/commonSetup/setupViewSelector.js +2 -6
  52. package/lib/view/spendManagement/commonSetup/setupViewState.d.ts +0 -1
  53. package/lib/view/spendManagement/commonSetup/types/businessVerification.d.ts +0 -4
  54. package/lib/view/vendorFiling1099/__mock__/vendorFiling1099ListMock.js +0 -70
  55. package/lib/view/vendorFiling1099/vendorFiling1099List/vendorFiling1099ListPayload.d.ts +0 -22
  56. package/lib/view/vendorFiling1099/vendorFiling1099List/vendorFiling1099ListReducer.d.ts +1 -5
  57. package/lib/view/vendorFiling1099/vendorFiling1099List/vendorFiling1099ListReducer.js +2 -29
  58. package/lib/view/vendorFiling1099/vendorFiling1099List/vendorFiling1099ListSelector.d.ts +0 -2
  59. package/lib/view/vendorFiling1099/vendorFiling1099List/vendorFiling1099ListSelector.js +1 -5
  60. package/lib/view/vendorFiling1099/vendorFiling1099List/vendorFiling1099ListState.d.ts +0 -2
  61. package/lib/view/zeniAccountsPromoCard/zeniAccountsPromoCardReducer.js +3 -1
  62. package/package.json +2 -2
  63. package/lib/view/countryList/countryListReducer.d.ts +0 -17
  64. package/lib/view/countryList/countryListReducer.js +0 -58
  65. package/lib/view/countryList/countryListSelector.d.ts +0 -7
  66. package/lib/view/countryList/countryListSelector.js +0 -13
  67. package/lib/view/countryList/countryListState.d.ts +0 -12
  68. package/lib/view/countryList/countryListState.js +0 -2
  69. package/lib/view/countryList/epics/fetchCountryListEpic.d.ts +0 -6
  70. package/lib/view/countryList/epics/fetchCountryListEpic.js +0 -19
  71. package/lib/view/countryList/epics/fetchNationalityCountryListEpic.d.ts +0 -7
  72. package/lib/view/countryList/epics/fetchNationalityCountryListEpic.js +0 -38
  73. package/lib/view/countryList/payloads/countryListPayload.d.ts +0 -6
  74. package/lib/view/countryList/payloads/countryListPayload.js +0 -10
  75. package/lib/view/countryList/payloads/nationalityCountryListPayload.d.ts +0 -11
  76. package/lib/view/countryList/payloads/nationalityCountryListPayload.js +0 -2
  77. package/lib/view/spendManagement/billPay/internationalWireVerification/epics/fetchIntlVerificationFormEpic.d.ts +0 -7
  78. package/lib/view/spendManagement/billPay/internationalWireVerification/epics/fetchIntlVerificationFormEpic.js +0 -36
  79. package/lib/view/spendManagement/billPay/internationalWireVerification/epics/initializeIntlVerificationFormEpic.d.ts +0 -6
  80. package/lib/view/spendManagement/billPay/internationalWireVerification/epics/initializeIntlVerificationFormEpic.js +0 -28
  81. package/lib/view/spendManagement/billPay/internationalWireVerification/epics/submitIntlVerificationEpic.d.ts +0 -9
  82. package/lib/view/spendManagement/billPay/internationalWireVerification/epics/submitIntlVerificationEpic.js +0 -67
  83. package/lib/view/spendManagement/billPay/internationalWireVerification/internationalWireVerificationPayload.d.ts +0 -26
  84. package/lib/view/spendManagement/billPay/internationalWireVerification/internationalWireVerificationPayload.js +0 -22
  85. package/lib/view/spendManagement/billPay/internationalWireVerification/internationalWireVerificationReducer.d.ts +0 -22
  86. package/lib/view/spendManagement/billPay/internationalWireVerification/internationalWireVerificationReducer.js +0 -89
  87. package/lib/view/spendManagement/billPay/internationalWireVerification/internationalWireVerificationSelector.d.ts +0 -15
  88. package/lib/view/spendManagement/billPay/internationalWireVerification/internationalWireVerificationSelector.js +0 -30
  89. package/lib/view/spendManagement/billPay/internationalWireVerification/internationalWireVerificationState.d.ts +0 -20
  90. package/lib/view/spendManagement/billPay/internationalWireVerification/internationalWireVerificationState.js +0 -2
  91. package/lib/view/vendorFiling1099/vendorFiling1099List/fetchVendorsFiling1099DownloadEpic.d.ts +0 -7
  92. package/lib/view/vendorFiling1099/vendorFiling1099List/fetchVendorsFiling1099DownloadEpic.js +0 -35
@@ -1,30 +0,0 @@
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;
@@ -1,20 +0,0 @@
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
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +0,0 @@
1
- import { ActionsObservable, StateObservable } from 'redux-observable';
2
- import { Observable } from 'rxjs';
3
- import { ZeniAPI } from '../../../zeniAPI';
4
- import { RootState } from '../../../reducer';
5
- import { fetchVendorsFiling1099Download, updateVendorFiling1099DownloadData } from './vendorFiling1099ListReducer';
6
- export declare type ActionType = ReturnType<typeof fetchVendorsFiling1099Download> | ReturnType<typeof updateVendorFiling1099DownloadData>;
7
- export declare const fetchVendorsFiling1099DownloadEpic: (actions$: ActionsObservable<ActionType>, _state$: StateObservable<RootState>, zeniAPI: ZeniAPI) => Observable<ActionType>;
@@ -1,35 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.fetchVendorsFiling1099DownloadEpic = 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 fetchVendorsFiling1099DownloadEpic = (actions$, _state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(vendorFiling1099ListReducer_1.fetchVendorsFiling1099Download.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.fetchVendorsFiling1099DownloadEpic = fetchVendorsFiling1099DownloadEpic;