@zeniai/client-epic-state 4.12.63 → 4.12.64
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/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
|
@@ -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.64",
|
|
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, };
|
|
@@ -1,223 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.addressesInLocalStoreAfterResetState = exports.addressesInLocalStoreState = exports.createUserAddressInLocalStoreState = exports.officer1AddressInLocalStoreStateCompleted = exports.addressSelectorNewAddress = exports.createAddressInLocalStoreStateSaveInProgress = exports.createOfficial1AddressInLocalStoreState = exports.createCompanyUserAddressResponseFailure = exports.createCompanyUserAddressResponse = exports.createCompanyAddressResponseFailure = exports.createCompanyAddressResponse = exports.createVendorAddressInLocalStoreState = exports.createAddressInLocalStoreState = exports.createAddressChangeOnlyData = exports.updateAddressFailureResponse = exports.updateAddressSuccessResponse = exports.updateAddressId = exports.updateAddressData = exports.createAddressFailureResponse = exports.createAddressSuccessResponse = exports.createAddressData = exports.createAddressId = exports.fetchAddressFailureResponse = exports.fetchAddressSuccessResponse = exports.fetchAddressFailureState = exports.fetchAddressSuccessState = exports.fetchAddressInProgressState = exports.fetchAddressId = exports.companyId = exports.userId = void 0;
|
|
7
|
-
const apiFailure_json_1 = __importDefault(require("../../../__testHelpers__/apiFailure.json"));
|
|
8
|
-
const addressViewReducer_1 = require("../addressViewReducer");
|
|
9
|
-
const createAddressResponse_json_1 = __importDefault(require("./json/createAddressResponse.json"));
|
|
10
|
-
const updateAddressResponse_json_1 = __importDefault(require("./json/updateAddressResponse.json"));
|
|
11
|
-
const createCompanyAddressSuccess_json_1 = __importDefault(require("./json/createCompanyAddressSuccess.json"));
|
|
12
|
-
const createCompanyUserAddressSuccess_json_1 = __importDefault(require("./json/createCompanyUserAddressSuccess.json"));
|
|
13
|
-
const fetchAddressResponse_json_1 = __importDefault(require("./json/fetchAddressResponse.json"));
|
|
14
|
-
const createAddressSuccessResponse = createAddressResponse_json_1.default;
|
|
15
|
-
exports.createAddressSuccessResponse = createAddressSuccessResponse;
|
|
16
|
-
const createAddressFailureResponse = apiFailure_json_1.default;
|
|
17
|
-
exports.createAddressFailureResponse = createAddressFailureResponse;
|
|
18
|
-
const updateAddressSuccessResponse = updateAddressResponse_json_1.default;
|
|
19
|
-
exports.updateAddressSuccessResponse = updateAddressSuccessResponse;
|
|
20
|
-
const updateAddressFailureResponse = apiFailure_json_1.default;
|
|
21
|
-
exports.updateAddressFailureResponse = updateAddressFailureResponse;
|
|
22
|
-
const createCompanyAddressResponse = createCompanyAddressSuccess_json_1.default;
|
|
23
|
-
exports.createCompanyAddressResponse = createCompanyAddressResponse;
|
|
24
|
-
const createCompanyAddressResponseFailure = apiFailure_json_1.default;
|
|
25
|
-
exports.createCompanyAddressResponseFailure = createCompanyAddressResponseFailure;
|
|
26
|
-
const createCompanyUserAddressResponse = createCompanyUserAddressSuccess_json_1.default;
|
|
27
|
-
exports.createCompanyUserAddressResponse = createCompanyUserAddressResponse;
|
|
28
|
-
const createCompanyUserAddressResponseFailure = apiFailure_json_1.default;
|
|
29
|
-
exports.createCompanyUserAddressResponseFailure = createCompanyUserAddressResponseFailure;
|
|
30
|
-
const fetchAddressSuccessResponse = fetchAddressResponse_json_1.default;
|
|
31
|
-
exports.fetchAddressSuccessResponse = fetchAddressSuccessResponse;
|
|
32
|
-
const fetchAddressFailureResponse = apiFailure_json_1.default;
|
|
33
|
-
exports.fetchAddressFailureResponse = fetchAddressFailureResponse;
|
|
34
|
-
const createAddressData = {
|
|
35
|
-
city: 'New York',
|
|
36
|
-
country: 'USA',
|
|
37
|
-
state: 'New York',
|
|
38
|
-
street: ['435 W 31st St', 'Suite 123'],
|
|
39
|
-
postalCode: '10001',
|
|
40
|
-
};
|
|
41
|
-
exports.createAddressData = createAddressData;
|
|
42
|
-
const createAddressChangeOnlyData = Object.assign({}, Object.assign(Object.assign({}, createAddressData), { isChangesInResponseOnly: true }));
|
|
43
|
-
exports.createAddressChangeOnlyData = createAddressChangeOnlyData;
|
|
44
|
-
const createAddressId = 'a_72f1f8a4-1251-4445-8709-c1fd2f6effe7';
|
|
45
|
-
exports.createAddressId = createAddressId;
|
|
46
|
-
const companyId = 'c_1ad773dc-2395-4fa7-9fbc-3f1c5f06a333';
|
|
47
|
-
exports.companyId = companyId;
|
|
48
|
-
const userId = 'u_c8488936-ba06-4533-89a5-d40d12b36071';
|
|
49
|
-
exports.userId = userId;
|
|
50
|
-
const fetchAddressId = 'a_8a1498b2-ab42-4c46-bda1-3bd946ec3cc3';
|
|
51
|
-
exports.fetchAddressId = fetchAddressId;
|
|
52
|
-
const updateAddressData = {
|
|
53
|
-
latitude: 37.786175,
|
|
54
|
-
longitude: -122.3898194,
|
|
55
|
-
city: 'San francisco',
|
|
56
|
-
country: 'USA',
|
|
57
|
-
state: 'California',
|
|
58
|
-
street: ['129 Bryant St', 'Suite 204'],
|
|
59
|
-
postalCode: '94105',
|
|
60
|
-
};
|
|
61
|
-
exports.updateAddressData = updateAddressData;
|
|
62
|
-
const updateAddressId = 'a_0bd3a94a-482c-430e-b5f2-10c16d3cee5c';
|
|
63
|
-
exports.updateAddressId = updateAddressId;
|
|
64
|
-
const fetchAddressInProgressState = Object.assign({}, addressViewReducer_1.initialState, {
|
|
65
|
-
fetchAddressState: {
|
|
66
|
-
[fetchAddressId]: {
|
|
67
|
-
fetchState: 'In-Progress',
|
|
68
|
-
error: undefined,
|
|
69
|
-
},
|
|
70
|
-
},
|
|
71
|
-
});
|
|
72
|
-
exports.fetchAddressInProgressState = fetchAddressInProgressState;
|
|
73
|
-
const fetchAddressSuccessState = Object.assign({}, addressViewReducer_1.initialState, {
|
|
74
|
-
fetchAddressState: {
|
|
75
|
-
[fetchAddressId]: {
|
|
76
|
-
fetchState: 'Completed',
|
|
77
|
-
error: undefined,
|
|
78
|
-
},
|
|
79
|
-
},
|
|
80
|
-
});
|
|
81
|
-
exports.fetchAddressSuccessState = fetchAddressSuccessState;
|
|
82
|
-
const fetchAddressFailureState = Object.assign({}, addressViewReducer_1.initialState, {
|
|
83
|
-
fetchAddressState: {
|
|
84
|
-
[fetchAddressId]: {
|
|
85
|
-
fetchState: 'Error',
|
|
86
|
-
error: fetchAddressFailureResponse.status,
|
|
87
|
-
},
|
|
88
|
-
},
|
|
89
|
-
});
|
|
90
|
-
exports.fetchAddressFailureState = fetchAddressFailureState;
|
|
91
|
-
const createAddressInLocalStoreState = Object.assign({}, addressViewReducer_1.initialState, {
|
|
92
|
-
newAddressState: {
|
|
93
|
-
company_address: {
|
|
94
|
-
addressToCreate: createAddressData,
|
|
95
|
-
addressType: 'company_address',
|
|
96
|
-
parentEntityId: undefined,
|
|
97
|
-
status: { fetchState: 'Not-Started', error: undefined },
|
|
98
|
-
newAddressId: undefined,
|
|
99
|
-
},
|
|
100
|
-
},
|
|
101
|
-
});
|
|
102
|
-
exports.createAddressInLocalStoreState = createAddressInLocalStoreState;
|
|
103
|
-
const addressesInLocalStoreState = Object.assign({}, addressViewReducer_1.initialState, {
|
|
104
|
-
newAddressState: {
|
|
105
|
-
company_address: {
|
|
106
|
-
addressToCreate: createAddressData,
|
|
107
|
-
addressType: 'company_address',
|
|
108
|
-
parentEntityId: undefined,
|
|
109
|
-
status: { fetchState: 'Not-Started', error: undefined },
|
|
110
|
-
newAddressId: undefined,
|
|
111
|
-
},
|
|
112
|
-
user_address: {
|
|
113
|
-
addressToCreate: createAddressData,
|
|
114
|
-
addressType: 'user_address',
|
|
115
|
-
parentEntityId: undefined,
|
|
116
|
-
status: { fetchState: 'Not-Started', error: undefined },
|
|
117
|
-
newAddressId: undefined,
|
|
118
|
-
},
|
|
119
|
-
},
|
|
120
|
-
});
|
|
121
|
-
exports.addressesInLocalStoreState = addressesInLocalStoreState;
|
|
122
|
-
const addressesInLocalStoreAfterResetState = Object.assign({}, addressViewReducer_1.initialState, {
|
|
123
|
-
newAddressState: {
|
|
124
|
-
company_address: {
|
|
125
|
-
addressToCreate: undefined,
|
|
126
|
-
addressType: 'company_address',
|
|
127
|
-
parentEntityId: undefined,
|
|
128
|
-
status: { fetchState: 'Not-Started', error: undefined },
|
|
129
|
-
newAddressId: undefined,
|
|
130
|
-
},
|
|
131
|
-
officer_1_address: {
|
|
132
|
-
addressToCreate: undefined,
|
|
133
|
-
},
|
|
134
|
-
user_address: {
|
|
135
|
-
addressToCreate: createAddressData,
|
|
136
|
-
addressType: 'user_address',
|
|
137
|
-
parentEntityId: undefined,
|
|
138
|
-
status: { fetchState: 'Not-Started', error: undefined },
|
|
139
|
-
newAddressId: undefined,
|
|
140
|
-
},
|
|
141
|
-
},
|
|
142
|
-
});
|
|
143
|
-
exports.addressesInLocalStoreAfterResetState = addressesInLocalStoreAfterResetState;
|
|
144
|
-
const createVendorAddressInLocalStoreState = Object.assign({}, addressViewReducer_1.initialState, {
|
|
145
|
-
newAddressState: {
|
|
146
|
-
vendor_address: {
|
|
147
|
-
addressToCreate: createAddressData,
|
|
148
|
-
addressType: 'vendor_address',
|
|
149
|
-
parentEntityId: undefined,
|
|
150
|
-
status: { fetchState: 'Not-Started', error: undefined },
|
|
151
|
-
newAddressId: undefined,
|
|
152
|
-
},
|
|
153
|
-
},
|
|
154
|
-
});
|
|
155
|
-
exports.createVendorAddressInLocalStoreState = createVendorAddressInLocalStoreState;
|
|
156
|
-
const createAddressInLocalStoreStateSaveInProgress = Object.assign({}, addressViewReducer_1.initialState, {
|
|
157
|
-
newAddressState: {
|
|
158
|
-
company_address: {
|
|
159
|
-
addressToCreate: createAddressData,
|
|
160
|
-
addressType: 'company_address',
|
|
161
|
-
parentEntityId: undefined,
|
|
162
|
-
newAddressId: undefined,
|
|
163
|
-
status: {
|
|
164
|
-
error: undefined,
|
|
165
|
-
fetchState: 'In-Progress',
|
|
166
|
-
},
|
|
167
|
-
},
|
|
168
|
-
},
|
|
169
|
-
});
|
|
170
|
-
exports.createAddressInLocalStoreStateSaveInProgress = createAddressInLocalStoreStateSaveInProgress;
|
|
171
|
-
const createOfficial1AddressInLocalStoreState = Object.assign({}, addressViewReducer_1.initialState, {
|
|
172
|
-
newAddressState: {
|
|
173
|
-
officer_1_address: {
|
|
174
|
-
addressToCreate: createAddressData,
|
|
175
|
-
addressType: 'officer_1_address',
|
|
176
|
-
parentEntityId: { id: userId, entityType: 'user' },
|
|
177
|
-
status: { fetchState: 'Not-Started', error: undefined },
|
|
178
|
-
newAddressId: undefined,
|
|
179
|
-
},
|
|
180
|
-
},
|
|
181
|
-
});
|
|
182
|
-
exports.createOfficial1AddressInLocalStoreState = createOfficial1AddressInLocalStoreState;
|
|
183
|
-
const officer1AddressInLocalStoreStateCompleted = Object.assign({}, addressViewReducer_1.initialState, {
|
|
184
|
-
newAddressState: {
|
|
185
|
-
officer_1_address: {
|
|
186
|
-
addressToCreate: createAddressData,
|
|
187
|
-
addressType: 'officer_1_address',
|
|
188
|
-
parentEntityId: { id: userId, entityType: 'user' },
|
|
189
|
-
status: { fetchState: 'Completed', error: undefined },
|
|
190
|
-
newAddressId: 'a_72f1f8a4-1251-4445-8709-c1fd2f6effe7',
|
|
191
|
-
},
|
|
192
|
-
},
|
|
193
|
-
});
|
|
194
|
-
exports.officer1AddressInLocalStoreStateCompleted = officer1AddressInLocalStoreStateCompleted;
|
|
195
|
-
const createUserAddressInLocalStoreState = Object.assign({}, addressViewReducer_1.initialState, {
|
|
196
|
-
newAddressState: {
|
|
197
|
-
user_address: {
|
|
198
|
-
addressToCreate: createAddressData,
|
|
199
|
-
addressType: 'user_address',
|
|
200
|
-
parentEntityId: { id: userId, entityType: 'user' },
|
|
201
|
-
status: { fetchState: 'Not-Started', error: undefined },
|
|
202
|
-
newAddressId: undefined,
|
|
203
|
-
},
|
|
204
|
-
},
|
|
205
|
-
});
|
|
206
|
-
exports.createUserAddressInLocalStoreState = createUserAddressInLocalStoreState;
|
|
207
|
-
const addressSelectorNewAddress = {
|
|
208
|
-
addressToCreate: {
|
|
209
|
-
city: 'New York',
|
|
210
|
-
country: 'USA',
|
|
211
|
-
state: 'New York',
|
|
212
|
-
street: ['435 W 31st St', 'Suite 123'],
|
|
213
|
-
postalCode: '10001',
|
|
214
|
-
},
|
|
215
|
-
addressType: 'officer_1_address',
|
|
216
|
-
parentEntityId: {
|
|
217
|
-
id: 'u_c8488936-ba06-4533-89a5-d40d12b36071',
|
|
218
|
-
entityType: 'user',
|
|
219
|
-
},
|
|
220
|
-
newAddressId: 'a_72f1f8a4-1251-4445-8709-c1fd2f6effe7',
|
|
221
|
-
status: { fetchState: 'Completed' },
|
|
222
|
-
};
|
|
223
|
-
exports.addressSelectorNewAddress = addressSelectorNewAddress;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"status": {
|
|
3
|
-
"message": "Successful",
|
|
4
|
-
"code": 200
|
|
5
|
-
},
|
|
6
|
-
"data": {
|
|
7
|
-
"addresses": [
|
|
8
|
-
{
|
|
9
|
-
"city": "New York",
|
|
10
|
-
"update_time": "2022-01-10T17:12:55.270640",
|
|
11
|
-
"country": "USA",
|
|
12
|
-
"address_id": "a_72f1f8a4-1251-4445-8709-c1fd2f6effe7",
|
|
13
|
-
"longitude": null,
|
|
14
|
-
"state": "New York",
|
|
15
|
-
"street": ["435 W 31st St", "Suite 123"],
|
|
16
|
-
"create_time": "2022-01-10T17:12:55.270633",
|
|
17
|
-
"country_code": null,
|
|
18
|
-
"latitude": null,
|
|
19
|
-
"postal_code": "10001"
|
|
20
|
-
}
|
|
21
|
-
]
|
|
22
|
-
}
|
|
23
|
-
}
|