@zeniai/client-epic-state 4.12.51 → 4.12.53
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/tenant/clearAllEpic.d.ts +1 -1
- package/lib/entity/tenant/clearAllEpic.js +1 -1
- package/lib/entity/vendor/vendorPayload.d.ts +1 -0
- package/lib/entity/vendor/vendorPayload.js +4 -4
- package/lib/entity/vendor/vendorState.d.ts +1 -0
- package/lib/epic.d.ts +3 -2
- package/lib/epic.js +3 -2
- package/lib/index.d.ts +8 -4
- package/lib/index.js +19 -9
- package/lib/reducer.d.ts +4 -1
- package/lib/reducer.js +4 -1
- package/lib/view/commonVendorView/vendorView/vendorViewPayload.d.ts +8 -0
- package/lib/view/{vendorFiling1099List → vendorFiling1099}/__mock__/vendorFiling1099ListMock.d.ts +2 -2
- package/lib/view/{vendorFiling1099List → vendorFiling1099}/__mock__/vendorFiling1099ListMock.js +1 -1
- package/lib/view/{vendorFiling1099List → vendorFiling1099}/__mock__/vendorFiling1099ListSelectorMock.d.ts +1 -1
- package/lib/view/vendorFiling1099/__mock__/vendorFiling1099UploadDetailsMock.d.ts +98 -0
- package/lib/view/vendorFiling1099/__mock__/vendorFiling1099UploadDetailsMock.js +101 -0
- package/lib/view/{vendorFiling1099List → vendorFiling1099/vendorFiling1099List}/fetchVendorsFiling1099ListEpic.d.ts +5 -5
- package/lib/view/{vendorFiling1099List → vendorFiling1099/vendorFiling1099List}/fetchVendorsFiling1099ListEpic.js +5 -5
- package/lib/view/{vendorFiling1099List → vendorFiling1099/vendorFiling1099List}/vendorFiling1099ListPayload.d.ts +3 -3
- package/lib/view/{vendorFiling1099List → vendorFiling1099/vendorFiling1099List}/vendorFiling1099ListReducer.d.ts +2 -2
- package/lib/view/{vendorFiling1099List → vendorFiling1099/vendorFiling1099List}/vendorFiling1099ListReducer.js +1 -1
- package/lib/view/{vendorFiling1099List → vendorFiling1099/vendorFiling1099List}/vendorFiling1099ListSelector.d.ts +6 -6
- package/lib/view/{vendorFiling1099List → vendorFiling1099/vendorFiling1099List}/vendorFiling1099ListSelector.js +1 -1
- package/lib/view/{vendorFiling1099List → vendorFiling1099/vendorFiling1099List}/vendorFiling1099ListState.d.ts +3 -3
- package/lib/view/{vendorFiling1099List → vendorFiling1099/vendorFiling1099List}/vendorFiling1099ListState.js +1 -1
- package/lib/view/vendorFiling1099/vendorFiling1099UploadDetails/vendorFiling1099UploadDetailsPayload.d.ts +41 -0
- package/lib/view/vendorFiling1099/vendorFiling1099UploadDetails/vendorFiling1099UploadDetailsPayload.js +40 -0
- package/lib/view/vendorFiling1099/vendorFiling1099UploadDetails/vendorFiling1099UploadDetailsReducer.d.ts +21 -0
- package/lib/view/vendorFiling1099/vendorFiling1099UploadDetails/vendorFiling1099UploadDetailsReducer.js +137 -0
- package/lib/view/vendorFiling1099/vendorFiling1099UploadDetails/vendorFiling1099UploadDetailsSaveEpic.d.ts +9 -0
- package/lib/view/vendorFiling1099/vendorFiling1099UploadDetails/vendorFiling1099UploadDetailsSaveEpic.js +51 -0
- package/lib/view/vendorFiling1099/vendorFiling1099UploadDetails/vendorFiling1099UploadDetailsSelector.d.ts +12 -0
- package/lib/view/vendorFiling1099/vendorFiling1099UploadDetails/vendorFiling1099UploadDetailsSelector.js +15 -0
- package/lib/view/vendorFiling1099/vendorFiling1099UploadDetails/vendorFiling1099UploadDetailsState.d.ts +20 -0
- package/lib/view/vendorFiling1099/vendorFiling1099UploadDetails/vendorFiling1099UploadDetailsState.js +2 -0
- package/lib/view/vendorTabView/fetchVendorTabViewEpic.d.ts +1 -1
- package/lib/view/vendorTabView/fetchVendorTabViewEpic.js +2 -2
- package/package.json +1 -1
- /package/lib/view/{vendorFiling1099List → vendorFiling1099}/__mock__/json/vendorFiling1099ListSuccess.json +0 -0
- /package/lib/view/{vendorFiling1099List → vendorFiling1099}/__mock__/vendorFiling1099ListSelectorMock.js +0 -0
- /package/lib/view/{vendorFiling1099List → vendorFiling1099/vendorFiling1099List}/vendorFiling1099ListPayload.js +0 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getVendorDetailbyVendorId = void 0;
|
|
4
|
+
const vendorSelector_1 = require("../../../entity/vendor/vendorSelector");
|
|
5
|
+
const getVendorDetailbyVendorId = (state, vendorId) => {
|
|
6
|
+
const vendor = (0, vendorSelector_1.getVendorsByVendorIds)(state.vendorState, [vendorId])[0];
|
|
7
|
+
const { vendorFiling1099UploadDetailsState, vendorTypeListState } = state;
|
|
8
|
+
return {
|
|
9
|
+
vendor,
|
|
10
|
+
vendorTypeList: vendorTypeListState.vendorTypes,
|
|
11
|
+
file: vendorFiling1099UploadDetailsState.w9FormFile,
|
|
12
|
+
fetchState: vendorFiling1099UploadDetailsState.fetchState,
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
exports.getVendorDetailbyVendorId = getVendorDetailbyVendorId;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { FetchedState, FetchStateAndError, ID } from '../../../commonStateTypes/common';
|
|
2
|
+
import { Attachment } from '../../../entity/transaction/stateTypes/attachment';
|
|
3
|
+
export interface VendorFiling1099UploadDetailsState extends FetchedState {
|
|
4
|
+
w9FormUploadStatus: FetchStateAndError;
|
|
5
|
+
w9FormFile?: Attachment;
|
|
6
|
+
vendor1099DetailsLocalData: VendorsFiling1099UploadDetailsLocalData;
|
|
7
|
+
vendor1099DetailsSaveStatus: FetchStateAndError;
|
|
8
|
+
}
|
|
9
|
+
export interface VendorsFiling1099UploadDetailsLocalData {
|
|
10
|
+
vendorId: ID;
|
|
11
|
+
legalName?: string;
|
|
12
|
+
email?: string;
|
|
13
|
+
w9Documents?: Attachment[];
|
|
14
|
+
phone?: string;
|
|
15
|
+
filing1099TaxClassification?: string;
|
|
16
|
+
tin?: {
|
|
17
|
+
type: string;
|
|
18
|
+
value: string;
|
|
19
|
+
};
|
|
20
|
+
}
|
|
@@ -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.
|
|
3
|
+
"version": "4.12.53",
|
|
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",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|