@zeniai/client-epic-state 4.12.63 → 4.12.65
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/__mocks__/vendorStateMocks.js +1 -6
- package/lib/entity/vendor/vendorPayload.d.ts +1 -2
- package/lib/entity/vendor/vendorPayload.js +4 -6
- package/lib/entity/vendor/vendorState.d.ts +0 -1
- package/lib/entity/vendor/vendorType.d.ts +1 -2
- package/lib/epic.d.ts +2 -4
- package/lib/epic.js +2 -4
- package/lib/index.d.ts +8 -15
- package/lib/index.js +16 -31
- package/lib/reducer.d.ts +1 -4
- package/lib/reducer.js +1 -4
- package/lib/view/commonVendorView/vendorView/epics/fetchVendorDetailsEpic.js +2 -2
- package/lib/view/commonVendorView/vendorView/vendorViewPayload.d.ts +0 -6
- package/lib/view/commonVendorView/vendorsTabVendorView/epics/fetchVendorsTabVendorDetailPageViewEpic.d.ts +1 -2
- package/lib/view/commonVendorView/vendorsTabVendorView/epics/fetchVendorsTabVendorDetailPageViewEpic.js +1 -6
- package/lib/view/commonVendorView/vendorsTabVendorView/epics/fetchVendorsTabVendorEpic.d.ts +2 -3
- package/lib/view/commonVendorView/vendorsTabVendorView/epics/fetchVendorsTabVendorEpic.js +2 -4
- package/lib/view/commonVendorView/vendorsTabVendorView/epics/resetVendorsTabVendorDetailLocalDataEpic.js +1 -1
- package/lib/view/commonVendorView/vendorsTabVendorView/epics/vendorsTabVendorDetailLocalDataHelpers.d.ts +1 -3
- package/lib/view/commonVendorView/vendorsTabVendorView/epics/vendorsTabVendorDetailLocalDataHelpers.js +3 -14
- package/lib/view/commonVendorView/vendorsTabVendorView/vendorsTabVendorViewPayload.d.ts +0 -5
- package/lib/view/commonVendorView/vendorsTabVendorView/vendorsTabVendorViewPayload.js +1 -35
- package/lib/view/commonVendorView/vendorsTabVendorView/vendorsTabVendorViewReducer.d.ts +2 -7
- package/lib/view/commonVendorView/vendorsTabVendorView/vendorsTabVendorViewReducer.js +3 -23
- package/lib/view/commonVendorView/vendorsTabVendorView/vendorsTabVendorViewSelector.d.ts +1 -16
- package/lib/view/commonVendorView/vendorsTabVendorView/vendorsTabVendorViewSelector.js +7 -24
- package/lib/view/commonVendorView/vendorsTabVendorView/vendorsTabVendorViewState.d.ts +0 -16
- package/lib/view/commonVendorView/vendorsTabVendorView/vendorsTabVendorViewState.js +0 -3
- package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardListSelector.js +1 -1
- package/lib/view/spendManagement/chargeCards/chargeCardList/issueChargeCardEpic.js +9 -4
- package/lib/view/twoFactorAuthentication/sendOtpEpic.js +6 -9
- package/lib/view/{vendorFiling1099 → vendorFiling1099List}/__mock__/json/vendorFiling1099ListSuccess.json +1 -1
- package/lib/view/{vendorFiling1099 → vendorFiling1099List}/__mock__/vendorFiling1099ListMock.d.ts +3 -3
- package/lib/view/{vendorFiling1099 → vendorFiling1099List}/__mock__/vendorFiling1099ListMock.js +3 -17
- package/lib/view/{vendorFiling1099 → vendorFiling1099List}/__mock__/vendorFiling1099ListSelectorMock.d.ts +1 -1
- package/lib/view/{vendorFiling1099 → vendorFiling1099List}/__mock__/vendorFiling1099ListSelectorMock.js +1 -10
- package/lib/view/{vendorFiling1099/vendorFiling1099List → vendorFiling1099List}/fetchVendorsFiling1099ListEpic.d.ts +5 -5
- package/lib/view/{vendorFiling1099/vendorFiling1099List → vendorFiling1099List}/fetchVendorsFiling1099ListEpic.js +6 -6
- package/lib/view/{vendorFiling1099/vendorFiling1099List → vendorFiling1099List}/vendorFiling1099ListPayload.d.ts +3 -3
- package/lib/view/{vendorFiling1099/vendorFiling1099List → vendorFiling1099List}/vendorFiling1099ListReducer.d.ts +4 -8
- package/lib/view/{vendorFiling1099/vendorFiling1099List → vendorFiling1099List}/vendorFiling1099ListReducer.js +5 -18
- package/lib/view/{vendorFiling1099/vendorFiling1099List → vendorFiling1099List}/vendorFiling1099ListSelector.d.ts +6 -6
- package/lib/view/{vendorFiling1099/vendorFiling1099List → vendorFiling1099List}/vendorFiling1099ListSelector.js +3 -8
- package/lib/view/{vendorFiling1099/vendorFiling1099List → vendorFiling1099List}/vendorFiling1099ListState.d.ts +3 -3
- package/lib/view/{vendorFiling1099/vendorFiling1099List → vendorFiling1099List}/vendorFiling1099ListState.js +1 -1
- package/lib/view/vendorTabView/fetchVendorTabViewEpic.d.ts +1 -1
- package/lib/view/vendorTabView/fetchVendorTabViewEpic.js +2 -2
- package/package.json +1 -2
- package/lib/entity/vendor/__mocks__/vendorMock.d.ts +0 -7
- package/lib/entity/vendor/__mocks__/vendorMock.js +0 -339
- package/lib/view/addressView/__mocks__/addressViewMocks.d.ts +0 -34
- package/lib/view/addressView/__mocks__/addressViewMocks.js +0 -223
- package/lib/view/addressView/__mocks__/json/createAddressResponse.json +0 -23
- package/lib/view/addressView/__mocks__/json/createCompanyAddressSuccess.json +0 -218
- package/lib/view/addressView/__mocks__/json/createCompanyUserAddressSuccess.json +0 -345
- package/lib/view/addressView/__mocks__/json/fetchAddressResponse.json +0 -24
- package/lib/view/addressView/__mocks__/json/updateAddressResponse.json +0 -24
- package/lib/view/vendorFiling1099/__mock__/vendorFiling1099UploadDetailsMock.d.ts +0 -132
- package/lib/view/vendorFiling1099/__mock__/vendorFiling1099UploadDetailsMock.js +0 -146
- package/lib/view/vendorFiling1099/vendorFiling1099List/fetchVendorsFiling1099AllEpic.d.ts +0 -8
- package/lib/view/vendorFiling1099/vendorFiling1099List/fetchVendorsFiling1099AllEpic.js +0 -30
- package/lib/view/vendorFiling1099/vendorFiling1099UploadDetails/vendorFiling1099UploadDetailsPayload.d.ts +0 -20
- package/lib/view/vendorFiling1099/vendorFiling1099UploadDetails/vendorFiling1099UploadDetailsPayload.js +0 -48
- package/lib/view/vendorFiling1099/vendorFiling1099UploadDetails/vendorFiling1099UploadDetailsReducer.d.ts +0 -25
- package/lib/view/vendorFiling1099/vendorFiling1099UploadDetails/vendorFiling1099UploadDetailsReducer.js +0 -180
- package/lib/view/vendorFiling1099/vendorFiling1099UploadDetails/vendorFiling1099UploadDetailsSaveEpic.d.ts +0 -11
- package/lib/view/vendorFiling1099/vendorFiling1099UploadDetails/vendorFiling1099UploadDetailsSaveEpic.js +0 -58
- package/lib/view/vendorFiling1099/vendorFiling1099UploadDetails/vendorFiling1099UploadDetailsSelector.d.ts +0 -14
- package/lib/view/vendorFiling1099/vendorFiling1099UploadDetails/vendorFiling1099UploadDetailsSelector.js +0 -17
- package/lib/view/vendorFiling1099/vendorFiling1099UploadDetails/vendorFiling1099UploadDetailsState.d.ts +0 -26
- package/lib/view/vendorFiling1099/vendorFiling1099UploadDetails/vendorFiling1099UploadDetailsState.js +0 -2
- /package/lib/view/{vendorFiling1099/vendorFiling1099List → vendorFiling1099List}/vendorFiling1099ListPayload.js +0 -0
|
@@ -4,18 +4,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.sortedVendorFiling1099View = exports.getVendorFiling1099List = void 0;
|
|
7
|
-
const vendorSelector_1 = require("
|
|
7
|
+
const vendorSelector_1 = require("../../entity/vendor/vendorSelector");
|
|
8
8
|
const orderBy_1 = __importDefault(require("lodash/orderBy"));
|
|
9
|
-
const reduceFetchState_1 = require("../../../commonStateTypes/reduceFetchState");
|
|
10
9
|
const getVendorFiling1099List = (state) => {
|
|
11
10
|
var _a;
|
|
12
11
|
const { vendorFiling1099ListState, vendorState, vendorTypeListState } = state;
|
|
13
|
-
const targetIds = vendorFiling1099ListState.vendorIds;
|
|
14
|
-
const fetchStatus = (0, reduceFetchState_1.reduceFetchState)([
|
|
15
|
-
vendorFiling1099ListState,
|
|
16
|
-
vendorTypeListState,
|
|
17
|
-
]);
|
|
18
12
|
const vendorTypeList = vendorTypeListState.vendorTypes;
|
|
13
|
+
const targetIds = vendorFiling1099ListState.vendorIds;
|
|
19
14
|
const loweredSearchText = vendorFiling1099ListState.uiState.searchString
|
|
20
15
|
.trim()
|
|
21
16
|
.toLowerCase();
|
|
@@ -30,7 +25,7 @@ const getVendorFiling1099List = (state) => {
|
|
|
30
25
|
vendorTypeList: vendorTypeList,
|
|
31
26
|
isVendor1099Populated: (_a = vendorFiling1099ListState.isVendor1099Populated) !== null && _a !== void 0 ? _a : true,
|
|
32
27
|
uiState: vendorFiling1099ListState.uiState,
|
|
33
|
-
fetchState:
|
|
28
|
+
fetchState: vendorFiling1099ListState.fetchState,
|
|
34
29
|
lastRefreshSuccessTime: vendorFiling1099ListState.lastRefreshSuccessTime,
|
|
35
30
|
error: vendorFiling1099ListState.error,
|
|
36
31
|
version: 0,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { FetchedState, FetchState, ID } from '
|
|
2
|
-
import { SortOrder } from '
|
|
3
|
-
import { ZeniDate } from '
|
|
1
|
+
import { FetchedState, FetchState, ID } from '../../commonStateTypes/common';
|
|
2
|
+
import { SortOrder } from '../../commonStateTypes/selectorTypes/sortOrderTypes';
|
|
3
|
+
import { ZeniDate } from '../../zeniDayJS';
|
|
4
4
|
export interface VendorFiling1099ViewUIState {
|
|
5
5
|
sortKey: VendorFiling1099ListViewSortKey;
|
|
6
6
|
sortOrder: SortOrder;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const stringToUnion_1 = require("
|
|
3
|
+
const stringToUnion_1 = require("../../commonStateTypes/stringToUnion");
|
|
4
4
|
const VENDOR_FILING_1099_LIST_VIEW_SORT_KEYS = [
|
|
5
5
|
'vendor_name',
|
|
6
6
|
'tax_classification',
|
|
@@ -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 '../
|
|
8
|
+
import { fetchVendorsFiling1099List } from '../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("../
|
|
10
|
+
const vendorFiling1099ListReducer_1 = require("../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("../
|
|
15
|
+
const vendorFiling1099ListSelector_1 = require("../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.65",
|
|
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,6 @@
|
|
|
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",
|
|
92
91
|
"check-version": "ts-node ./scripts/check-version.ts",
|
|
93
92
|
"version": "git add -A src",
|
|
94
93
|
"postversion": "git push && git push --tags",
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { ID } from '../../../commonStateTypes/common';
|
|
2
|
-
import { VendorState } from '../vendorState';
|
|
3
|
-
import { VendorPayload } from '../vendorPayload';
|
|
4
|
-
export declare const vendorPaylod: VendorPayload[];
|
|
5
|
-
export declare const vendorStateWithVendors: VendorState;
|
|
6
|
-
export declare const vendorIdToBeRemoved: ID;
|
|
7
|
-
export declare const vendorStateAfterRemoval: VendorState;
|
|
@@ -1,339 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.vendorStateAfterRemoval = exports.vendorIdToBeRemoved = exports.vendorStateWithVendors = exports.vendorPaylod = void 0;
|
|
4
|
-
const vendorStateMocks_1 = require("./vendorStateMocks");
|
|
5
|
-
exports.vendorPaylod = [
|
|
6
|
-
{
|
|
7
|
-
vendor_id: 'vendor_j12jh1g2g12jg3jh12:12',
|
|
8
|
-
transaction_attachments: [],
|
|
9
|
-
qbo_id: '12',
|
|
10
|
-
vendor_name: 'Sample Vendor 1',
|
|
11
|
-
title: '',
|
|
12
|
-
suffix: '',
|
|
13
|
-
first_name: 'Sample',
|
|
14
|
-
middle_name: '',
|
|
15
|
-
last_name: 'Vendor',
|
|
16
|
-
vendor_type: 'individual',
|
|
17
|
-
logo: {
|
|
18
|
-
url: '',
|
|
19
|
-
base64: '',
|
|
20
|
-
},
|
|
21
|
-
year_to_date_spend: 0,
|
|
22
|
-
last_30_days_spend: 0,
|
|
23
|
-
last_90_days_spend: 0,
|
|
24
|
-
last_month_spend: 0,
|
|
25
|
-
last_3_months_spend: 0,
|
|
26
|
-
last_6_months_spend: 0,
|
|
27
|
-
last_12_months_spend: 0,
|
|
28
|
-
previous_year_spend: 0,
|
|
29
|
-
owner: null,
|
|
30
|
-
balance: 0,
|
|
31
|
-
is_deleted: false,
|
|
32
|
-
qbo_create_time: '2022-01-24T05:59:37.057383',
|
|
33
|
-
qbo_update_time: '2022-01-24T05:59:37.057383',
|
|
34
|
-
create_time: '2022-01-24T05:59:37.057383',
|
|
35
|
-
update_time: '2022-01-24T05:59:37.057383',
|
|
36
|
-
sync_token: '1',
|
|
37
|
-
email: '',
|
|
38
|
-
phone: '',
|
|
39
|
-
website_url: '',
|
|
40
|
-
currency_code: 'USD',
|
|
41
|
-
currency_symbol: '$',
|
|
42
|
-
country_code: 'US',
|
|
43
|
-
account: {
|
|
44
|
-
qbo_id: '12',
|
|
45
|
-
coa_id: '123',
|
|
46
|
-
labels: [],
|
|
47
|
-
account_id: 'Travel Meals',
|
|
48
|
-
account_name: 'Travel Meals',
|
|
49
|
-
},
|
|
50
|
-
accounting_class: {
|
|
51
|
-
accounting_class_id: 'class_e0f33254-2651-4d5c-9d57-2611788265ca',
|
|
52
|
-
accounting_class_name: 'product 500',
|
|
53
|
-
accounting_class_number: '4011',
|
|
54
|
-
fully_qualified_accounting_class_name: 'product 500',
|
|
55
|
-
qbo_id: '5100000000000040143',
|
|
56
|
-
},
|
|
57
|
-
contacts: [
|
|
58
|
-
{
|
|
59
|
-
full_name: 'Aniket Patil',
|
|
60
|
-
phone: '+91-8xxxxxxxx',
|
|
61
|
-
email: 'aniket@personalmail.com',
|
|
62
|
-
contact_id: 'contacts_f3881db1-35c0-4699-891c-6cca724e75d6',
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
full_name: 'Ankit Singh',
|
|
66
|
-
phone: '+91-8xxxxxxxx',
|
|
67
|
-
email: 'ankit@personalmail.com',
|
|
68
|
-
contact_id: 'contacts_6856c987-17ff-44a4-aad3-eef4b7696554',
|
|
69
|
-
},
|
|
70
|
-
],
|
|
71
|
-
billing_address: {
|
|
72
|
-
address_id: 'a_e3e99a8b-d400-42ac-ae09-e655bff1af97',
|
|
73
|
-
city: 'Bangalore',
|
|
74
|
-
country: 'India',
|
|
75
|
-
country_code: null,
|
|
76
|
-
create_time: '2022-02-01T15:47:44.681429',
|
|
77
|
-
hash_value: '2be1de50bedd7a2dfb8094846698b2b8bc86869bf903c27b69b74ae3e2651983',
|
|
78
|
-
latitude: null,
|
|
79
|
-
longitude: null,
|
|
80
|
-
postal_code: '560001',
|
|
81
|
-
state: 'Karnataka',
|
|
82
|
-
street: ['2nd lane', 'Opp Peter England showroom', 'Mg Road'],
|
|
83
|
-
update_time: '2022-02-01T15:47:44.681439',
|
|
84
|
-
},
|
|
85
|
-
address: {
|
|
86
|
-
address_id: 'a_e3e99a8b-d400-42ac-ae09-e655bff1af97',
|
|
87
|
-
city: 'Bangalore',
|
|
88
|
-
country: 'India',
|
|
89
|
-
country_code: null,
|
|
90
|
-
create_time: '2022-02-01T15:47:44.681429',
|
|
91
|
-
hash_value: '2be1de50bedd7a2dfb8094846698b2b8bc86869bf903c27b69b74ae3e2651983',
|
|
92
|
-
latitude: null,
|
|
93
|
-
longitude: null,
|
|
94
|
-
postal_code: '560001',
|
|
95
|
-
state: 'Karnataka',
|
|
96
|
-
street: ['2nd lane', 'Opp Peter England showroom', 'Mg Road'],
|
|
97
|
-
update_time: '2022-02-01T15:47:44.681439',
|
|
98
|
-
},
|
|
99
|
-
shipping_address: null,
|
|
100
|
-
bank_account_ids: [
|
|
101
|
-
'bank_adg67-asnds-a6sad-sdfgf8',
|
|
102
|
-
'bank_asghj-hags23-hgfjh-g3asfas',
|
|
103
|
-
],
|
|
104
|
-
bank_accounts: [
|
|
105
|
-
{
|
|
106
|
-
bank_account_id: 'bank_adg67-asnds-a6sad-sdfgf8',
|
|
107
|
-
bank_branch_id: 'HDFC000547',
|
|
108
|
-
bank_branch_name: 'Khadki',
|
|
109
|
-
bank_account_number: '201301203012013012',
|
|
110
|
-
bank_account_name: 'Person/Company Name',
|
|
111
|
-
bank_name: 'HDFC Bank',
|
|
112
|
-
bank_routing_number_ach: '210000000',
|
|
113
|
-
bank_routing_number_wire_transfer: '210000000',
|
|
114
|
-
note: '',
|
|
115
|
-
is_deleted: false,
|
|
116
|
-
update_time: '2022-02-01T15:47:44.681439',
|
|
117
|
-
create_time: '2022-02-01T15:47:44.681439',
|
|
118
|
-
bank_swift_code: null,
|
|
119
|
-
bank_account_iban: null,
|
|
120
|
-
bank_account_type: null,
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
bank_account_id: 'bank_asghj-hags23-hgfjh-g3asfas',
|
|
124
|
-
bank_branch_id: 'ICICI00004',
|
|
125
|
-
bank_branch_name: 'Baner',
|
|
126
|
-
bank_account_number: '20130120301286273826',
|
|
127
|
-
bank_account_name: 'Person/Company Name',
|
|
128
|
-
bank_name: 'ICICI Bank',
|
|
129
|
-
bank_routing_number_ach: '110000000',
|
|
130
|
-
bank_routing_number_wire_transfer: '110000000',
|
|
131
|
-
note: '',
|
|
132
|
-
is_deleted: false,
|
|
133
|
-
update_time: '2022-02-01T15:47:44.681439',
|
|
134
|
-
create_time: '2022-02-01T15:47:44.681439',
|
|
135
|
-
bank_swift_code: null,
|
|
136
|
-
bank_account_iban: null,
|
|
137
|
-
bank_account_type: null,
|
|
138
|
-
},
|
|
139
|
-
],
|
|
140
|
-
payment_instrument_ids: ['pay_inst_f3fc9b06-694a-4609-a710-b0e1d4de72d3'],
|
|
141
|
-
payment_instruments: [
|
|
142
|
-
{
|
|
143
|
-
account_source: 'email',
|
|
144
|
-
create_time: '2023-12-17T11:29:27.544391',
|
|
145
|
-
display_text: 'UPI ID - lgtextiles@okicici',
|
|
146
|
-
labels: [
|
|
147
|
-
{
|
|
148
|
-
key: 'Account Holder Name',
|
|
149
|
-
value: 'LG Textiles',
|
|
150
|
-
},
|
|
151
|
-
{
|
|
152
|
-
key: 'UPI ID',
|
|
153
|
-
value: 'lgtextiles@okicici',
|
|
154
|
-
},
|
|
155
|
-
{
|
|
156
|
-
key: 'Source',
|
|
157
|
-
value: 'email',
|
|
158
|
-
},
|
|
159
|
-
{
|
|
160
|
-
key: 'Type of account',
|
|
161
|
-
value: 'indian_upi',
|
|
162
|
-
},
|
|
163
|
-
],
|
|
164
|
-
max_valid_amount: 100000,
|
|
165
|
-
min_valid_amount: 0,
|
|
166
|
-
pi_display_number: 'lgtextiles@okicici',
|
|
167
|
-
update_time: '2023-12-17T11:29:27.544396',
|
|
168
|
-
zeni_payment_instrument_id: 'pay_inst_f3fc9b06-694a-4609-a710-b0e1d4de72d3',
|
|
169
|
-
},
|
|
170
|
-
],
|
|
171
|
-
vendor_currency_code: 'USD',
|
|
172
|
-
vendor_currency_symbol: '$',
|
|
173
|
-
vendor_1099_status: 'incomplete',
|
|
174
|
-
tin: { type: 'ein', value: '550258131' },
|
|
175
|
-
vendor_1099_ytd_total: 2287,
|
|
176
|
-
},
|
|
177
|
-
{
|
|
178
|
-
vendor_id: 'vendor_j12jh1g2g12jg3jh12:2',
|
|
179
|
-
transaction_attachments: [],
|
|
180
|
-
qbo_id: '13',
|
|
181
|
-
vendor_name: 'Sample Vendor 2',
|
|
182
|
-
title: '',
|
|
183
|
-
suffix: '',
|
|
184
|
-
first_name: 'Sample',
|
|
185
|
-
middle_name: '',
|
|
186
|
-
last_name: 'Vendor 3',
|
|
187
|
-
vendor_type: 'c_corporation',
|
|
188
|
-
logo: {
|
|
189
|
-
url: '',
|
|
190
|
-
base64: '',
|
|
191
|
-
},
|
|
192
|
-
last_month_spend: 0,
|
|
193
|
-
last_3_months_spend: 0,
|
|
194
|
-
last_6_months_spend: 0,
|
|
195
|
-
last_12_months_spend: 0,
|
|
196
|
-
previous_year_spend: 0,
|
|
197
|
-
owner: null,
|
|
198
|
-
balance: 0,
|
|
199
|
-
is_deleted: false,
|
|
200
|
-
qbo_create_time: '2022-01-24T05:59:37.057383',
|
|
201
|
-
qbo_update_time: '2022-01-24T05:59:37.057383',
|
|
202
|
-
create_time: '2022-01-24T05:59:37.057383',
|
|
203
|
-
update_time: '2022-01-24T05:59:37.057383',
|
|
204
|
-
sync_token: '1',
|
|
205
|
-
email: '',
|
|
206
|
-
phone: '',
|
|
207
|
-
website_url: '',
|
|
208
|
-
currency_code: 'USD',
|
|
209
|
-
currency_symbol: '$',
|
|
210
|
-
country_code: 'US',
|
|
211
|
-
contacts: [
|
|
212
|
-
{
|
|
213
|
-
full_name: 'Aniket Patil',
|
|
214
|
-
phone: '+91-8xxxxxxxx',
|
|
215
|
-
email: 'aniket@personalmail.com',
|
|
216
|
-
contact_id: 'contacts_f3881db1-35c0-4699-891c-6cca724e75d6',
|
|
217
|
-
},
|
|
218
|
-
{
|
|
219
|
-
full_name: 'Ankit Singh',
|
|
220
|
-
phone: '+91-8xxxxxxxx',
|
|
221
|
-
email: 'ankit@personalmail.com',
|
|
222
|
-
contact_id: 'contacts_6856c987-17ff-44a4-aad3-eef4b7696554',
|
|
223
|
-
},
|
|
224
|
-
],
|
|
225
|
-
account: {
|
|
226
|
-
qbo_id: '12',
|
|
227
|
-
coa_id: '123',
|
|
228
|
-
labels: [],
|
|
229
|
-
account_id: 'Travel Meals',
|
|
230
|
-
account_name: 'Travel Meals',
|
|
231
|
-
},
|
|
232
|
-
accounting_class: {
|
|
233
|
-
accounting_class_id: 'class_e0f33254-2651-4d5c-9d57-2611788265ca',
|
|
234
|
-
accounting_class_name: 'product 500',
|
|
235
|
-
accounting_class_number: '4011',
|
|
236
|
-
fully_qualified_accounting_class_name: 'product 500',
|
|
237
|
-
qbo_id: '5100000000000040143',
|
|
238
|
-
},
|
|
239
|
-
billing_address: {
|
|
240
|
-
address_id: 'a_e3e99a8b-ae09-42ac-d400-e3e99a8b',
|
|
241
|
-
city: 'Pune',
|
|
242
|
-
country: 'India',
|
|
243
|
-
country_code: null,
|
|
244
|
-
create_time: '2022-02-01T15:47:44.681429',
|
|
245
|
-
hash_value: '2be1de50bedd7a2dfb8094846698b2b8bc86869bf903c27b69b74ae3e2651983',
|
|
246
|
-
latitude: null,
|
|
247
|
-
longitude: null,
|
|
248
|
-
postal_code: '411045',
|
|
249
|
-
state: 'Maharashtra',
|
|
250
|
-
street: ['1st Street', 'Near Mitcon College', 'Balewadi'],
|
|
251
|
-
update_time: '2022-02-01T15:47:44.681439',
|
|
252
|
-
},
|
|
253
|
-
shipping_address: null,
|
|
254
|
-
bank_accounts: [
|
|
255
|
-
{
|
|
256
|
-
bank_account_id: 'bank_asghj-hgfjh-g3asfas-hags23',
|
|
257
|
-
bank_branch_id: 'SBINOOOO9765',
|
|
258
|
-
bank_branch_name: 'Wakad',
|
|
259
|
-
bank_account_number: '20130120301286273826',
|
|
260
|
-
bank_account_name: 'Person/Company Name',
|
|
261
|
-
bank_name: 'SBI Bank',
|
|
262
|
-
bank_routing_number_ach: '410000000',
|
|
263
|
-
bank_routing_number_wire_transfer: '310000000',
|
|
264
|
-
note: '',
|
|
265
|
-
is_deleted: false,
|
|
266
|
-
update_time: '2022-02-01T15:47:44.681439',
|
|
267
|
-
create_time: '2022-02-01T15:47:44.681439',
|
|
268
|
-
bank_swift_code: null,
|
|
269
|
-
bank_account_iban: null,
|
|
270
|
-
bank_account_type: null,
|
|
271
|
-
},
|
|
272
|
-
{
|
|
273
|
-
bank_account_id: 'bank_g3asfas-hags23-hgfjh-asghj',
|
|
274
|
-
bank_branch_id: 'UBI0014267',
|
|
275
|
-
bank_branch_name: 'SB Road',
|
|
276
|
-
bank_account_number: '20130120301286273826',
|
|
277
|
-
bank_account_name: 'Person/Company Name',
|
|
278
|
-
bank_name: 'SBI Bank',
|
|
279
|
-
bank_routing_number_ach: '510000000',
|
|
280
|
-
bank_routing_number_wire_transfer: '610000000',
|
|
281
|
-
note: '',
|
|
282
|
-
is_deleted: false,
|
|
283
|
-
update_time: '2022-02-01T15:47:44.681439',
|
|
284
|
-
create_time: '2022-02-01T15:47:44.681439',
|
|
285
|
-
bank_swift_code: null,
|
|
286
|
-
bank_account_iban: null,
|
|
287
|
-
bank_account_type: null,
|
|
288
|
-
},
|
|
289
|
-
],
|
|
290
|
-
payment_instrument_ids: ['pay_inst_f3fc9b06-694a-4609-a710-b0e1d4de72d3'],
|
|
291
|
-
payment_instruments: [
|
|
292
|
-
{
|
|
293
|
-
account_source: 'email',
|
|
294
|
-
create_time: '2023-12-17T11:29:27.544391',
|
|
295
|
-
display_text: 'UPI ID - lgtextiles@okicici',
|
|
296
|
-
labels: [
|
|
297
|
-
{
|
|
298
|
-
key: 'Account Holder Name',
|
|
299
|
-
value: 'LG Textiles',
|
|
300
|
-
},
|
|
301
|
-
{
|
|
302
|
-
key: 'UPI ID',
|
|
303
|
-
value: 'lgtextiles@okicici',
|
|
304
|
-
},
|
|
305
|
-
{
|
|
306
|
-
key: 'Source',
|
|
307
|
-
value: 'email',
|
|
308
|
-
},
|
|
309
|
-
{
|
|
310
|
-
key: 'Type of account',
|
|
311
|
-
value: 'indian_upi',
|
|
312
|
-
},
|
|
313
|
-
],
|
|
314
|
-
max_valid_amount: 100000,
|
|
315
|
-
min_valid_amount: 0,
|
|
316
|
-
pi_display_number: 'lgtextiles@okicici',
|
|
317
|
-
update_time: '2023-12-17T11:29:27.544396',
|
|
318
|
-
zeni_payment_instrument_id: 'pay_inst_f3fc9b06-694a-4609-a710-b0e1d4de72d3',
|
|
319
|
-
},
|
|
320
|
-
],
|
|
321
|
-
vendor_currency_code: 'USD',
|
|
322
|
-
vendor_currency_symbol: '$',
|
|
323
|
-
vendor_1099_status: 'incomplete',
|
|
324
|
-
tin: { type: 'ein', value: '550258131' },
|
|
325
|
-
vendor_1099_ytd_total: 2287,
|
|
326
|
-
},
|
|
327
|
-
];
|
|
328
|
-
exports.vendorStateWithVendors = {
|
|
329
|
-
vendorByID: {
|
|
330
|
-
'vendor_j12jh1g2g12jg3jh12:12': vendorStateMocks_1.vendorStateMock1,
|
|
331
|
-
'vendor_j12jh1g2g12jg3jh12:2': vendorStateMocks_1.vendorStateMock2,
|
|
332
|
-
},
|
|
333
|
-
};
|
|
334
|
-
exports.vendorIdToBeRemoved = 'vendor_j12jh1g2g12jg3jh12:2';
|
|
335
|
-
exports.vendorStateAfterRemoval = {
|
|
336
|
-
vendorByID: {
|
|
337
|
-
'vendor_j12jh1g2g12jg3jh12:12': vendorStateMocks_1.vendorStateMock1,
|
|
338
|
-
},
|
|
339
|
-
};
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { AddressUpdatableInfo, AddressViewState, NewAddressData } from '../addressViewState';
|
|
2
|
-
import { AddressesResponse } from '../addressViewPayload';
|
|
3
|
-
import { CompanyAddressCreateResponse, CompanyUserAddressCreateResponse } from '../../companyView/companyViewPayload';
|
|
4
|
-
declare const createAddressSuccessResponse: AddressesResponse;
|
|
5
|
-
declare const createAddressFailureResponse: AddressesResponse;
|
|
6
|
-
declare const updateAddressSuccessResponse: AddressesResponse;
|
|
7
|
-
declare const updateAddressFailureResponse: AddressesResponse;
|
|
8
|
-
declare const createCompanyAddressResponse: CompanyAddressCreateResponse;
|
|
9
|
-
declare const createCompanyAddressResponseFailure: CompanyAddressCreateResponse;
|
|
10
|
-
declare const createCompanyUserAddressResponse: CompanyUserAddressCreateResponse;
|
|
11
|
-
declare const createCompanyUserAddressResponseFailure: CompanyUserAddressCreateResponse;
|
|
12
|
-
declare const fetchAddressSuccessResponse: AddressesResponse;
|
|
13
|
-
declare const fetchAddressFailureResponse: AddressesResponse;
|
|
14
|
-
declare const createAddressData: AddressUpdatableInfo;
|
|
15
|
-
declare const createAddressChangeOnlyData: AddressUpdatableInfo;
|
|
16
|
-
declare const createAddressId = "a_72f1f8a4-1251-4445-8709-c1fd2f6effe7";
|
|
17
|
-
declare const companyId = "c_1ad773dc-2395-4fa7-9fbc-3f1c5f06a333";
|
|
18
|
-
declare const userId = "u_c8488936-ba06-4533-89a5-d40d12b36071";
|
|
19
|
-
declare const fetchAddressId = "a_8a1498b2-ab42-4c46-bda1-3bd946ec3cc3";
|
|
20
|
-
declare const updateAddressData: AddressUpdatableInfo;
|
|
21
|
-
declare const updateAddressId = "a_0bd3a94a-482c-430e-b5f2-10c16d3cee5c";
|
|
22
|
-
declare const fetchAddressInProgressState: AddressViewState;
|
|
23
|
-
declare const fetchAddressSuccessState: AddressViewState;
|
|
24
|
-
declare const fetchAddressFailureState: AddressViewState;
|
|
25
|
-
declare const createAddressInLocalStoreState: AddressViewState;
|
|
26
|
-
declare const addressesInLocalStoreState: AddressViewState;
|
|
27
|
-
declare const addressesInLocalStoreAfterResetState: AddressViewState;
|
|
28
|
-
declare const createVendorAddressInLocalStoreState: AddressViewState;
|
|
29
|
-
declare const createAddressInLocalStoreStateSaveInProgress: AddressViewState;
|
|
30
|
-
declare const createOfficial1AddressInLocalStoreState: AddressViewState;
|
|
31
|
-
declare const officer1AddressInLocalStoreStateCompleted: AddressViewState;
|
|
32
|
-
declare const createUserAddressInLocalStoreState: AddressViewState;
|
|
33
|
-
declare const addressSelectorNewAddress: NewAddressData;
|
|
34
|
-
export { userId, companyId, fetchAddressId, fetchAddressInProgressState, fetchAddressSuccessState, fetchAddressFailureState, fetchAddressSuccessResponse, fetchAddressFailureResponse, createAddressId, createAddressData, createAddressSuccessResponse, createAddressFailureResponse, updateAddressData, updateAddressId, updateAddressSuccessResponse, updateAddressFailureResponse, createAddressChangeOnlyData, createAddressInLocalStoreState, createVendorAddressInLocalStoreState, createCompanyAddressResponse, createCompanyAddressResponseFailure, createCompanyUserAddressResponse, createCompanyUserAddressResponseFailure, createOfficial1AddressInLocalStoreState, createAddressInLocalStoreStateSaveInProgress, addressSelectorNewAddress, officer1AddressInLocalStoreStateCompleted, createUserAddressInLocalStoreState, addressesInLocalStoreState, addressesInLocalStoreAfterResetState, };
|