@zeniai/client-epic-state 4.12.68 → 4.12.69

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 (93) hide show
  1. package/lib/entity/paymentAccount/paymentAccountPayload.d.ts +1 -1
  2. package/lib/entity/paymentAccount/paymentAccountPayload.js +7 -7
  3. package/lib/entity/tenant/clearAllEpic.d.ts +1 -1
  4. package/lib/entity/tenant/clearAllEpic.js +1 -1
  5. package/lib/entity/vendor/__mocks__/vendorMock.d.ts +7 -0
  6. package/lib/entity/vendor/__mocks__/vendorMock.js +339 -0
  7. package/lib/entity/vendor/__mocks__/vendorStateMocks.js +6 -1
  8. package/lib/entity/vendor/vendorPayload.d.ts +2 -1
  9. package/lib/entity/vendor/vendorPayload.js +6 -4
  10. package/lib/entity/vendor/vendorState.d.ts +1 -0
  11. package/lib/entity/vendor/vendorType.d.ts +2 -1
  12. package/lib/epic.d.ts +5 -2
  13. package/lib/epic.js +5 -2
  14. package/lib/index.d.ts +15 -8
  15. package/lib/index.js +31 -16
  16. package/lib/reducer.d.ts +4 -1
  17. package/lib/reducer.js +4 -1
  18. package/lib/view/addressView/__mocks__/addressViewMocks.d.ts +34 -0
  19. package/lib/view/addressView/__mocks__/addressViewMocks.js +223 -0
  20. package/lib/view/addressView/__mocks__/json/createAddressResponse.json +23 -0
  21. package/lib/view/addressView/__mocks__/json/createCompanyAddressSuccess.json +218 -0
  22. package/lib/view/addressView/__mocks__/json/createCompanyUserAddressSuccess.json +345 -0
  23. package/lib/view/addressView/__mocks__/json/fetchAddressResponse.json +24 -0
  24. package/lib/view/addressView/__mocks__/json/updateAddressResponse.json +24 -0
  25. package/lib/view/commonVendorView/vendorView/epics/fetchVendorDetailsEpic.js +2 -2
  26. package/lib/view/commonVendorView/vendorView/vendorViewPayload.d.ts +6 -0
  27. package/lib/view/commonVendorView/vendorsTabVendorView/epics/fetchVendorsTabVendorDetailPageViewEpic.d.ts +2 -1
  28. package/lib/view/commonVendorView/vendorsTabVendorView/epics/fetchVendorsTabVendorDetailPageViewEpic.js +6 -1
  29. package/lib/view/commonVendorView/vendorsTabVendorView/epics/fetchVendorsTabVendorEpic.d.ts +3 -2
  30. package/lib/view/commonVendorView/vendorsTabVendorView/epics/fetchVendorsTabVendorEpic.js +4 -2
  31. package/lib/view/commonVendorView/vendorsTabVendorView/epics/resetVendorsTabVendorDetailLocalDataEpic.js +1 -1
  32. package/lib/view/commonVendorView/vendorsTabVendorView/epics/vendorsTabVendorDetailLocalDataHelpers.d.ts +3 -1
  33. package/lib/view/commonVendorView/vendorsTabVendorView/epics/vendorsTabVendorDetailLocalDataHelpers.js +14 -3
  34. package/lib/view/commonVendorView/vendorsTabVendorView/vendorsTabVendorViewPayload.d.ts +5 -0
  35. package/lib/view/commonVendorView/vendorsTabVendorView/vendorsTabVendorViewPayload.js +35 -1
  36. package/lib/view/commonVendorView/vendorsTabVendorView/vendorsTabVendorViewReducer.d.ts +7 -2
  37. package/lib/view/commonVendorView/vendorsTabVendorView/vendorsTabVendorViewReducer.js +23 -3
  38. package/lib/view/commonVendorView/vendorsTabVendorView/vendorsTabVendorViewSelector.d.ts +16 -1
  39. package/lib/view/commonVendorView/vendorsTabVendorView/vendorsTabVendorViewSelector.js +24 -7
  40. package/lib/view/commonVendorView/vendorsTabVendorView/vendorsTabVendorViewState.d.ts +16 -0
  41. package/lib/view/commonVendorView/vendorsTabVendorView/vendorsTabVendorViewState.js +3 -0
  42. package/lib/view/settingsView/settingsViewSelector.js +1 -1
  43. package/lib/view/spendManagement/billPay/billDetailView/billDetailViewSelector.js +2 -2
  44. package/lib/view/spendManagement/billPay/billDetailView/epics/retryOrRefundBillEpic.js +21 -17
  45. package/lib/view/spendManagement/billPay/billPayReview/billPayReviewSelector.d.ts +2 -1
  46. package/lib/view/spendManagement/billPay/billPayReview/billPayReviewSelector.js +4 -1
  47. package/lib/view/spendManagement/billPay/editBillView/editBillViewSelector.js +5 -5
  48. package/lib/view/spendManagement/commonSetup/setupViewSelector.d.ts +11 -4
  49. package/lib/view/spendManagement/commonSetup/setupViewSelector.js +16 -7
  50. package/lib/view/spendManagement/zeniAccounts/paymentAccountList/fetchPaymentAccountBalanceEpic.d.ts +9 -0
  51. package/lib/view/spendManagement/zeniAccounts/paymentAccountList/fetchPaymentAccountBalanceEpic.js +48 -0
  52. package/lib/view/spendManagement/zeniAccounts/paymentAccountList/fetchPaymentAccountListEpic.d.ts +2 -2
  53. package/lib/view/spendManagement/zeniAccounts/paymentAccountList/fetchPaymentAccountListEpic.js +12 -6
  54. package/lib/view/spendManagement/zeniAccounts/paymentAccountList/paymentAccountList.d.ts +1 -0
  55. package/lib/view/spendManagement/zeniAccounts/paymentAccountList/paymentAccountListReducer.d.ts +6 -0
  56. package/lib/view/spendManagement/zeniAccounts/paymentAccountList/paymentAccountListReducer.js +25 -2
  57. package/lib/view/spendManagement/zeniAccounts/paymentAccountList/paymentAccountListSelector.d.ts +1 -0
  58. package/lib/view/spendManagement/zeniAccounts/paymentAccountList/paymentAccountListSelector.js +1 -0
  59. package/lib/view/spendManagement/zeniAccounts/transferDetail/transferDetailReducer.js +8 -0
  60. package/lib/view/spendManagement/zeniAccounts/transferDetail/transferDetailSelector.js +1 -1
  61. package/lib/view/twoFactorAuthentication/sendOtpEpic.js +9 -6
  62. package/lib/view/{vendorFiling1099List → vendorFiling1099}/__mock__/json/vendorFiling1099ListSuccess.json +1 -1
  63. package/lib/view/{vendorFiling1099List → vendorFiling1099}/__mock__/vendorFiling1099ListMock.d.ts +3 -3
  64. package/lib/view/{vendorFiling1099List → vendorFiling1099}/__mock__/vendorFiling1099ListMock.js +17 -3
  65. package/lib/view/{vendorFiling1099List → vendorFiling1099}/__mock__/vendorFiling1099ListSelectorMock.d.ts +1 -1
  66. package/lib/view/{vendorFiling1099List → vendorFiling1099}/__mock__/vendorFiling1099ListSelectorMock.js +10 -1
  67. package/lib/view/vendorFiling1099/__mock__/vendorFiling1099UploadDetailsMock.d.ts +132 -0
  68. package/lib/view/vendorFiling1099/__mock__/vendorFiling1099UploadDetailsMock.js +146 -0
  69. package/lib/view/vendorFiling1099/vendorFiling1099List/fetchVendorsFiling1099AllEpic.d.ts +8 -0
  70. package/lib/view/vendorFiling1099/vendorFiling1099List/fetchVendorsFiling1099AllEpic.js +30 -0
  71. package/lib/view/{vendorFiling1099List → vendorFiling1099/vendorFiling1099List}/fetchVendorsFiling1099ListEpic.d.ts +5 -5
  72. package/lib/view/{vendorFiling1099List → vendorFiling1099/vendorFiling1099List}/fetchVendorsFiling1099ListEpic.js +6 -6
  73. package/lib/view/{vendorFiling1099List → vendorFiling1099/vendorFiling1099List}/vendorFiling1099ListPayload.d.ts +3 -3
  74. package/lib/view/{vendorFiling1099List → vendorFiling1099/vendorFiling1099List}/vendorFiling1099ListReducer.d.ts +8 -4
  75. package/lib/view/{vendorFiling1099List → vendorFiling1099/vendorFiling1099List}/vendorFiling1099ListReducer.js +18 -5
  76. package/lib/view/{vendorFiling1099List → vendorFiling1099/vendorFiling1099List}/vendorFiling1099ListSelector.d.ts +6 -6
  77. package/lib/view/{vendorFiling1099List → vendorFiling1099/vendorFiling1099List}/vendorFiling1099ListSelector.js +8 -3
  78. package/lib/view/{vendorFiling1099List → vendorFiling1099/vendorFiling1099List}/vendorFiling1099ListState.d.ts +3 -3
  79. package/lib/view/{vendorFiling1099List → vendorFiling1099/vendorFiling1099List}/vendorFiling1099ListState.js +1 -1
  80. package/lib/view/vendorFiling1099/vendorFiling1099UploadDetails/vendorFiling1099UploadDetailsPayload.d.ts +20 -0
  81. package/lib/view/vendorFiling1099/vendorFiling1099UploadDetails/vendorFiling1099UploadDetailsPayload.js +48 -0
  82. package/lib/view/vendorFiling1099/vendorFiling1099UploadDetails/vendorFiling1099UploadDetailsReducer.d.ts +25 -0
  83. package/lib/view/vendorFiling1099/vendorFiling1099UploadDetails/vendorFiling1099UploadDetailsReducer.js +184 -0
  84. package/lib/view/vendorFiling1099/vendorFiling1099UploadDetails/vendorFiling1099UploadDetailsSaveEpic.d.ts +11 -0
  85. package/lib/view/vendorFiling1099/vendorFiling1099UploadDetails/vendorFiling1099UploadDetailsSaveEpic.js +58 -0
  86. package/lib/view/vendorFiling1099/vendorFiling1099UploadDetails/vendorFiling1099UploadDetailsSelector.d.ts +14 -0
  87. package/lib/view/vendorFiling1099/vendorFiling1099UploadDetails/vendorFiling1099UploadDetailsSelector.js +17 -0
  88. package/lib/view/vendorFiling1099/vendorFiling1099UploadDetails/vendorFiling1099UploadDetailsState.d.ts +26 -0
  89. package/lib/view/vendorFiling1099/vendorFiling1099UploadDetails/vendorFiling1099UploadDetailsState.js +2 -0
  90. package/lib/view/vendorTabView/fetchVendorTabViewEpic.d.ts +1 -1
  91. package/lib/view/vendorTabView/fetchVendorTabViewEpic.js +2 -2
  92. package/package.json +2 -1
  93. /package/lib/view/{vendorFiling1099List → vendorFiling1099/vendorFiling1099List}/vendorFiling1099ListPayload.js +0 -0
@@ -0,0 +1,26 @@
1
+ import { FetchedState, FetchStateAndError, ID } from '../../../commonStateTypes/common';
2
+ import { Attachment } from '../../../entity/transaction/stateTypes/attachment';
3
+ import { Filing1099TinType } from '../../../entity/vendor/vendorType';
4
+ export interface VendorFiling1099UploadDetailsState extends FetchedState {
5
+ w9FormUploadStatus: FetchStateAndError;
6
+ vendor1099DetailsLocalData: VendorsFiling1099UploadDetailsLocalData;
7
+ vendor1099DetailsSaveStatus: FetchStateAndError;
8
+ vendor1099DetailsAutoFilledValues?: Vendor1099DetailsAutoFilledValues;
9
+ }
10
+ export interface VendorsFiling1099UploadDetailsLocalData {
11
+ vendorId: ID;
12
+ legalName: string;
13
+ email: string;
14
+ phone: string;
15
+ taxClassification: string;
16
+ tin: Filing1099TinType;
17
+ w9Documents?: Attachment[];
18
+ }
19
+ export interface Vendor1099DetailsAutoFilledValues {
20
+ tin: {
21
+ type: boolean;
22
+ value: boolean;
23
+ };
24
+ legalName: boolean;
25
+ taxClassification: boolean;
26
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -5,6 +5,6 @@ import { fetchVendorTabView } from './vendorTabViewReducer';
5
5
  import { fetchAccruedScheduleList, fetchScheduleList } from '../scheduleView/scheduleListView/scheduleListReducer';
6
6
  import { fetchOpExByVendor } from '../opExByVendor/opExByVendorReducer';
7
7
  import { fetchVendorsList } from '../vendorList/vendorListReducer';
8
- import { fetchVendorsFiling1099List } from '../vendorFiling1099List/vendorFiling1099ListReducer';
8
+ import { fetchVendorsFiling1099List } from '../vendorFiling1099/vendorFiling1099List/vendorFiling1099ListReducer';
9
9
  export declare type ActionType = ReturnType<typeof fetchVendorTabView> | ReturnType<typeof fetchOpExByVendor> | ReturnType<typeof fetchVendorsList> | ReturnType<typeof fetchAccruedScheduleList> | ReturnType<typeof fetchScheduleList> | ReturnType<typeof fetchVendorsFiling1099List>;
10
10
  export declare const fetchVendorTabViewEpic: (actions$: ActionsObservable<ActionType>, state$: StateObservable<RootState>) => Observable<ActionType>;
@@ -7,12 +7,12 @@ const vendorTabViewReducer_1 = require("./vendorTabViewReducer");
7
7
  const scheduleListReducer_1 = require("../scheduleView/scheduleListView/scheduleListReducer");
8
8
  const opExByVendorReducer_1 = require("../opExByVendor/opExByVendorReducer");
9
9
  const vendorListReducer_1 = require("../vendorList/vendorListReducer");
10
- const vendorFiling1099ListReducer_1 = require("../vendorFiling1099List/vendorFiling1099ListReducer");
10
+ const vendorFiling1099ListReducer_1 = require("../vendorFiling1099/vendorFiling1099List/vendorFiling1099ListReducer");
11
11
  const scheduleListSelector_1 = require("../scheduleView/scheduleListView/scheduleListSelector");
12
12
  const scheduleListHelper_1 = require("../scheduleView/scheduleListView/scheduleListHelper");
13
13
  const opExByVendorSelector_1 = require("../opExByVendor/opExByVendorSelector");
14
14
  const vendorListSelector_1 = require("../vendorList/vendorListSelector");
15
- const vendorFiling1099ListSelector_1 = require("../vendorFiling1099List/vendorFiling1099ListSelector");
15
+ const vendorFiling1099ListSelector_1 = require("../vendorFiling1099/vendorFiling1099List/vendorFiling1099ListSelector");
16
16
  const fetchVendorTabViewEpic = (actions$, state$) => actions$.pipe((0, operators_1.filter)(vendorTabViewReducer_1.fetchVendorTabView.match), (0, operators_1.switchMap)((action) => {
17
17
  const { shouldFetchAccruedExpenses, shouldFetchFixedAssets, shouldFetchOpexByVendor, shouldFetchPrepaidExpenses, shouldFetchVendorsList, shouldFetchFiling1099Vendor, } = action.payload;
18
18
  const state = state$.value;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeniai/client-epic-state",
3
- "version": "4.12.68",
3
+ "version": "4.12.69",
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,6 +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 --diff-filter=d | grep -E '\\.(ts|tsx)$' | xargs prettier --write",
91
92
  "check-version": "ts-node ./scripts/check-version.ts",
92
93
  "version": "git add -A src",
93
94
  "postversion": "git push && git push --tags",