ordering-ui-react-native 0.23.96 → 0.23.98
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/themes/original/index.tsx +214 -218
- package/themes/original/src/components/Checkout/index.tsx +27 -10
- package/themes/original/src/components/Help/functions.tsx +76 -0
- package/themes/original/src/components/Help/index.tsx +74 -29
- package/themes/original/src/components/Help/styles.tsx +4 -1
- package/themes/original/src/components/HelpOptions/index.tsx +44 -0
- package/themes/original/src/components/MultiCheckout/index.tsx +22 -10
- package/themes/original/src/components/NotFoundSource/index.tsx +40 -39
- package/themes/original/src/components/NotFoundSource/styles.tsx +18 -9
- package/themes/original/src/components/PaymentOptions/index.tsx +10 -1
- package/themes/original/src/types/index.tsx +699 -699
- package/themes/original/src/components/HelpAccountAndPayment/index.tsx +0 -62
- package/themes/original/src/components/HelpAccountAndPayment/styles.tsx +0 -12
- package/themes/original/src/components/HelpGuide/index.tsx +0 -68
- package/themes/original/src/components/HelpGuide/styles.tsx +0 -12
- package/themes/original/src/components/HelpOrder/index.tsx +0 -71
- package/themes/original/src/components/HelpOrder/styles.tsx +0 -13
|
@@ -1,840 +1,840 @@
|
|
|
1
1
|
import { TextInputProps, ViewStyle } from 'react-native';
|
|
2
2
|
export interface LoginParams {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
3
|
+
navigation?: any;
|
|
4
|
+
formState?: any;
|
|
5
|
+
useLoginByEmail?: boolean;
|
|
6
|
+
useLoginByCellphone?: boolean;
|
|
7
|
+
loginTab?: string;
|
|
8
|
+
handleChangeTab?: any;
|
|
9
|
+
loginButtonText?: string;
|
|
10
|
+
onNavigationRedirect?: any;
|
|
11
|
+
registerButtonText?: string;
|
|
12
|
+
forgotButtonText?: string;
|
|
13
|
+
verifyPhoneState?: any;
|
|
14
|
+
checkPhoneCodeState?: any;
|
|
15
|
+
setCheckPhoneCodeState?: any;
|
|
16
|
+
handleButtonLoginClick?: any;
|
|
17
|
+
handleSendVerifyCode?: any;
|
|
18
|
+
handleCheckPhoneCode?: any;
|
|
19
|
+
notificationState?: any;
|
|
20
|
+
handleReCaptcha?: any;
|
|
21
|
+
enableReCaptcha?: any;
|
|
22
|
+
isGuest?: any;
|
|
23
|
+
otpType?: string,
|
|
24
|
+
setOtpType: (type: string) => void,
|
|
25
|
+
generateOtpCode: (values?: any) => void,
|
|
26
|
+
useLoginOtpEmail?: boolean,
|
|
27
|
+
useLoginOtpCellphone?: boolean,
|
|
28
|
+
useLoginOtp?: boolean,
|
|
29
|
+
setCellphoneStartZero?: any
|
|
30
30
|
}
|
|
31
31
|
export interface ProfileParams {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
32
|
+
navigation?: any;
|
|
33
|
+
isEdit?: boolean;
|
|
34
|
+
formState?: any;
|
|
35
|
+
toggleIsEdit?: any;
|
|
36
|
+
cleanFormState?: any;
|
|
37
|
+
setFormState?: any;
|
|
38
|
+
handleChangeInput?: any;
|
|
39
|
+
handleButtonUpdateClick?: any;
|
|
40
|
+
handlechangeImage?: any;
|
|
41
|
+
validationFields?: any;
|
|
42
|
+
showField?: any;
|
|
43
|
+
isRequiredField?: any;
|
|
44
|
+
handleSendVerifyCode?: any;
|
|
45
|
+
handleCheckPhoneCode?: any;
|
|
46
|
+
checkPhoneCodeState?: any;
|
|
47
|
+
verifyPhoneState?: any;
|
|
48
|
+
setCheckPhoneCodeState?: any;
|
|
49
|
+
isVerifiedPhone?: any;
|
|
50
|
+
handleRemoveAccount?: any;
|
|
51
|
+
removeAccountState?: any;
|
|
52
|
+
handleChangePromotions?: any;
|
|
53
|
+
notificationsGroup?: any;
|
|
54
|
+
appVersion?: string
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
export interface AddressListParams {
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
58
|
+
navigation?: any;
|
|
59
|
+
addressList?: any;
|
|
60
|
+
isFromProfile?: boolean;
|
|
61
|
+
nopadding?: boolean;
|
|
62
|
+
userId?: any;
|
|
63
|
+
handleDelete?: any;
|
|
64
|
+
handleSetDefault?: any;
|
|
65
|
+
setAddressList?: any;
|
|
66
|
+
isGoBack?: boolean;
|
|
67
|
+
route?: any;
|
|
68
|
+
actionStatus?: any;
|
|
69
|
+
isFromBusinesses?: boolean;
|
|
70
|
+
isFromProductsList?: boolean;
|
|
71
|
+
afterSignup?: boolean;
|
|
72
|
+
isFromCheckout?: boolean
|
|
73
|
+
loadAddresses: () => void
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
export interface AddressFormParams {
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
77
|
+
navigation?: any,
|
|
78
|
+
updateChanges?: any,
|
|
79
|
+
address?: any,
|
|
80
|
+
formState?: any,
|
|
81
|
+
isEditing?: boolean,
|
|
82
|
+
handleChangeInput?: any,
|
|
83
|
+
addressState?: any,
|
|
84
|
+
addressesList?: any,
|
|
85
|
+
saveAddress?: any,
|
|
86
|
+
userCustomerSetup?: boolean,
|
|
87
|
+
isRequiredField?: (field: string) => {},
|
|
88
|
+
showField?: (field: string) => {},
|
|
89
|
+
isGuestUser?: boolean,
|
|
90
|
+
useValidationFileds?: boolean,
|
|
91
|
+
isSelectedAfterAdd?: boolean,
|
|
92
|
+
onSaveAddress?: any,
|
|
93
|
+
isFromProductsList?: boolean,
|
|
94
|
+
hasAddressDefault?: any,
|
|
95
|
+
isFromCheckout?: boolean
|
|
96
|
+
afterSignup?: boolean
|
|
97
|
+
isGuestFromStore?: boolean,
|
|
98
|
+
businessSlug?: number | string
|
|
99
99
|
}
|
|
100
100
|
export interface SignupParams {
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
101
|
+
navigation?: any;
|
|
102
|
+
loginButtonText?: string;
|
|
103
|
+
signupButtonText?: string;
|
|
104
|
+
onNavigationRedirect?: any;
|
|
105
|
+
formState?: any;
|
|
106
|
+
validationFields?: any;
|
|
107
|
+
showField?: any;
|
|
108
|
+
isRequiredField?: any;
|
|
109
|
+
useChekoutFileds?: boolean;
|
|
110
|
+
useSignupByEmail?: boolean;
|
|
111
|
+
useSignupByCellphone?: boolean;
|
|
112
|
+
handleSuccessSignup?: any;
|
|
113
|
+
handleButtonSignupClick?: any;
|
|
114
|
+
verifyPhoneState?: any;
|
|
115
|
+
checkPhoneCodeState?: any;
|
|
116
|
+
setCheckPhoneCodeState?: any;
|
|
117
|
+
handleSendVerifyCode?: any;
|
|
118
|
+
handleCheckPhoneCode?: any;
|
|
119
|
+
notificationState?: any;
|
|
120
|
+
signUpTab?: string;
|
|
121
|
+
useSignUpFullDetails?: boolean;
|
|
122
|
+
useSignUpOtpEmail?: boolean;
|
|
123
|
+
useSignUpOtpCellphone?: boolean;
|
|
124
|
+
willVerifyOtpState?: boolean;
|
|
125
|
+
isGuest?: any;
|
|
126
|
+
numOtpInputs?: number;
|
|
127
|
+
handleChangePromotions: () => void;
|
|
128
|
+
handleChangeInput?: (in1: any, in2: any) => void;
|
|
129
|
+
enableReCaptcha?: boolean;
|
|
130
|
+
generateOtpCode?: (in1?: any) => void;
|
|
131
|
+
handleReCaptcha?: (token?: any) => void;
|
|
132
|
+
setSignUpTab?: (in1: string) => void;
|
|
133
|
+
setWillVerifyOtpState?: (in1: boolean) => void;
|
|
134
|
+
setOtpState?: (in1: string) => void;
|
|
135
|
+
setCellphoneStartZero?: any
|
|
136
136
|
}
|
|
137
137
|
|
|
138
138
|
export interface PhoneInputParams {
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
139
|
+
data?: any;
|
|
140
|
+
handleData?: any;
|
|
141
|
+
defaultValue?: any;
|
|
142
|
+
defaultCode?: number | null;
|
|
143
|
+
forwardRef?: any;
|
|
144
|
+
textInputProps?: TextInputProps;
|
|
145
|
+
boxStyle?: any;
|
|
146
|
+
inputStyle?: any;
|
|
147
|
+
textStyle?: any;
|
|
148
|
+
noDropIcon?: boolean;
|
|
149
|
+
flagStyle?: any;
|
|
150
|
+
isDisabled?: any;
|
|
151
|
+
isStartValidation?: any;
|
|
152
|
+
changeCountry?: any;
|
|
153
|
+
updateStateWithSubmit?: boolean,
|
|
154
|
+
defaultCodeFallback?: number
|
|
155
155
|
}
|
|
156
156
|
|
|
157
157
|
export interface LanguageSelectorParams {
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
158
|
+
languagesState?: any;
|
|
159
|
+
currentLanguage?: string;
|
|
160
|
+
handleChangeLanguage?: any;
|
|
161
|
+
iconColor?: any;
|
|
162
|
+
pickerStyle?: any;
|
|
163
163
|
}
|
|
164
164
|
export interface BusinessesListingParams {
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
165
|
+
navigation?: any;
|
|
166
|
+
businessesList: { businesses: Array<any>, loading: boolean, error: null | string };
|
|
167
|
+
searchValue: string;
|
|
168
|
+
getBusinesses: (newFetch?: boolean) => void;
|
|
169
|
+
handleChangeBusinessType?: any;
|
|
170
|
+
handleBusinessClick?: void;
|
|
171
|
+
paginationProps?: any;
|
|
172
|
+
handleChangeSearch?: any;
|
|
173
|
+
images?: any;
|
|
174
|
+
businessTypes?: any;
|
|
175
|
+
defaultBusinessType?: any;
|
|
176
|
+
franchiseId?: any;
|
|
177
|
+
businessId?: any;
|
|
178
|
+
isGuestUser?: any;
|
|
179
|
+
handleUpdateBusinessList?: any;
|
|
180
|
+
priceLevelSelected?: any;
|
|
181
|
+
handleChangePriceLevel?: any;
|
|
182
|
+
businessTypeSelected?: any;
|
|
183
|
+
logosLayout?: boolean;
|
|
184
|
+
isCustomLayout?: boolean;
|
|
185
|
+
citiesState?: any;
|
|
186
|
+
actualSlug?: any;
|
|
187
187
|
}
|
|
188
188
|
export interface HighestRatedBusinessesParams {
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
189
|
+
businessesList: { businesses: Array<any>, loading: boolean, error: null | string };
|
|
190
|
+
onBusinessClick?: void;
|
|
191
|
+
navigation?: any;
|
|
192
|
+
isLoading?: boolean;
|
|
193
|
+
getBusinesses: (newFetch: boolean) => void,
|
|
194
|
+
favoriteIds?: any,
|
|
195
|
+
setFavoriteIds?: any,
|
|
196
|
+
handleUpdateBusinessList?: any
|
|
197
197
|
}
|
|
198
198
|
export interface BusinessTypeFilterParams {
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
199
|
+
businessTypes?: Array<any>;
|
|
200
|
+
handleChangeBusinessType: any;
|
|
201
|
+
currentTypeSelected?: string | null;
|
|
202
|
+
defaultBusinessType?: string | null;
|
|
203
|
+
images?: any
|
|
204
|
+
typesState?: any
|
|
205
|
+
setBusinessTypes?: any,
|
|
206
|
+
isAppoint?: boolean | undefined
|
|
207
207
|
}
|
|
208
208
|
export interface BusinessControllerParams {
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
209
|
+
key?: string | number;
|
|
210
|
+
business?: any;
|
|
211
|
+
handleCustomClick?: any;
|
|
212
|
+
orderType?: any;
|
|
213
|
+
handleClick?: any;
|
|
214
|
+
isBusinessOpen?: boolean;
|
|
215
|
+
businessWillCloseSoonMinutes?: number
|
|
216
|
+
isBusinessClose?: number,
|
|
217
|
+
navigation?: any,
|
|
218
|
+
style?: ViewStyle,
|
|
219
|
+
businessHeader?: string,
|
|
220
|
+
businessFeatured?: boolean,
|
|
221
|
+
businessLogo?: string,
|
|
222
|
+
businessReviews?: any,
|
|
223
|
+
businessDeliveryPrice?: number,
|
|
224
|
+
businessDeliveryTime?: string,
|
|
225
|
+
businessPickupTime?: string,
|
|
226
|
+
businessDistance?: number,
|
|
227
|
+
favoriteIds?: number[],
|
|
228
|
+
handleFavoriteBusiness?: any,
|
|
229
|
+
setFavoriteIds?: any;
|
|
230
|
+
handleUpdateBusinessList?: any;
|
|
231
|
+
enableIntersection?: boolean;
|
|
232
|
+
isCustomLayout?: boolean;
|
|
233
|
+
getBusinessOffer?: any;
|
|
234
|
+
handleCustomUpdate?: (businessId: number, changes: any) => {};
|
|
235
235
|
}
|
|
236
236
|
export interface BusinessProductsListingParams {
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
237
|
+
navigation?: any;
|
|
238
|
+
errors: any;
|
|
239
|
+
businessState: { business: any, loading: boolean, error: null };
|
|
240
|
+
categoryState: any;
|
|
241
|
+
searchValue?: string;
|
|
242
|
+
featuredProducts: boolean;
|
|
243
|
+
handleChangeSearch?: any;
|
|
244
|
+
categorySelected: any;
|
|
245
|
+
handleSearchRedirect: any;
|
|
246
|
+
errorQuantityProducts?: boolean;
|
|
247
|
+
header?: any;
|
|
248
|
+
logo?: any;
|
|
249
|
+
productModal?: any;
|
|
250
|
+
alertState?: { open: boolean, content: any[] };
|
|
251
|
+
setAlertState?: any;
|
|
252
|
+
multiRemoveProducts?: (in1: any, in2: any) => {};
|
|
253
|
+
getNextProducts?: () => {};
|
|
254
|
+
handleChangeCategory: (value: any) => {};
|
|
255
|
+
setProductLogin?: () => {};
|
|
256
|
+
updateProductModal?: (value: any) => {};
|
|
257
|
+
handleUpdateProducts?: any;
|
|
258
|
+
professionalSelected?: any;
|
|
259
|
+
handleChangeProfessionalSelected?: any;
|
|
260
|
+
handleUpdateProfessionals?: any;
|
|
261
|
+
onBusinessClick?: any;
|
|
262
|
+
onNavigationRedirect?: any;
|
|
263
|
+
businessSingleId?: number | string
|
|
264
|
+
fromMulti?: boolean
|
|
265
265
|
}
|
|
266
266
|
export interface BusinessBasicInformationParams {
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
267
|
+
navigation?: any;
|
|
268
|
+
businessState?: any;
|
|
269
|
+
openBusinessInformation?: any;
|
|
270
|
+
isBusinessInfoShow?: boolean;
|
|
271
|
+
header?: any;
|
|
272
|
+
logo?: any;
|
|
273
|
+
isPreOrder?: boolean;
|
|
274
274
|
}
|
|
275
275
|
export interface BusinessProductsCategoriesParams {
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
276
|
+
categories: Array<any>;
|
|
277
|
+
// handlerClickCategory: any;
|
|
278
|
+
onClickCategory: any;
|
|
279
|
+
openBusinessInformation: any;
|
|
280
|
+
categorySelected: any;
|
|
281
|
+
featured: boolean;
|
|
282
|
+
loading?: any;
|
|
283
|
+
scrollViewRef?: any;
|
|
284
|
+
productListLayout?: any;
|
|
285
|
+
categoriesLayout?: any;
|
|
286
|
+
selectedCategoryId?: any;
|
|
287
|
+
lazyLoadProductsRecommended?: any;
|
|
288
|
+
setSelectedCategoryId?: any
|
|
289
|
+
setCategoryClicked?: any
|
|
290
290
|
}
|
|
291
291
|
export interface BusinessProductsListParams {
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
292
|
+
errors?: any;
|
|
293
|
+
businessId?: number;
|
|
294
|
+
category?: any;
|
|
295
|
+
categories: Array<any>;
|
|
296
|
+
categoryState?: any;
|
|
297
|
+
onProductClick?: any;
|
|
298
|
+
handleSearchRedirect?: () => {};
|
|
299
|
+
featured?: any;
|
|
300
|
+
searchValue?: any;
|
|
301
|
+
handleClearSearch?: (value: any) => {};
|
|
302
|
+
isBusinessLoading?: any,
|
|
303
|
+
errorQuantityProducts?: boolean,
|
|
304
|
+
handleCancelSearch?: () => void,
|
|
305
|
+
categoriesLayout?: any,
|
|
306
|
+
setCategoriesLayout?: any,
|
|
307
|
+
currentCart?: any,
|
|
308
|
+
setSubcategoriesSelected?: any,
|
|
309
|
+
subcategoriesSelected?: any,
|
|
310
|
+
onClickCategory?: any,
|
|
311
|
+
lazyLoadProductsRecommended?: boolean,
|
|
312
|
+
isFiltMode?: boolean,
|
|
313
|
+
handleUpdateProducts?: any,
|
|
314
|
+
navigation?: any;
|
|
315
|
+
previouslyProducts?: any;
|
|
316
|
+
businessSingleId?: number | string
|
|
317
317
|
}
|
|
318
318
|
export interface SingleProductCardParams {
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
319
|
+
businessId: any;
|
|
320
|
+
product: any;
|
|
321
|
+
isSoldOut: boolean;
|
|
322
|
+
onProductClick: any;
|
|
323
|
+
productAddedToCartLength: number;
|
|
324
|
+
style?: ViewStyle;
|
|
325
|
+
categoryState?: any;
|
|
326
|
+
handleFavoriteProduct?: any;
|
|
327
|
+
handleUpdateProducts?: any;
|
|
328
|
+
enableIntersection?: boolean;
|
|
329
|
+
navigation?: any;
|
|
330
|
+
isPreviously?: any;
|
|
331
|
+
isProductId?: any;
|
|
332
|
+
viewString?: string;
|
|
333
|
+
businessSingleId?: number
|
|
334
334
|
}
|
|
335
335
|
export interface BusinessInformationParams {
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
336
|
+
navigation?: any,
|
|
337
|
+
businessState?: any;
|
|
338
|
+
businessSchedule?: Array<any>;
|
|
339
|
+
businessLocation?: any
|
|
340
|
+
business?: any
|
|
341
341
|
}
|
|
342
342
|
export interface BusinessReviewsParams {
|
|
343
|
-
|
|
344
|
-
|
|
343
|
+
businessState: { business: any, loading: boolean, error: null };
|
|
344
|
+
reviewsList: { reviews: any, loading: boolean, error: null };
|
|
345
345
|
}
|
|
346
346
|
export interface SearchBarParams {
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
347
|
+
searchValue?: any;
|
|
348
|
+
lazyLoad?: boolean;
|
|
349
|
+
placeholder: string;
|
|
350
|
+
isCancelButtonShow?: boolean;
|
|
351
|
+
noBorderShow?: boolean;
|
|
352
|
+
onSearch: (value: any) => {};
|
|
353
|
+
onCancel?: any;
|
|
354
354
|
}
|
|
355
355
|
export interface NotFoundSourceParams {
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
356
|
+
image?: any,
|
|
357
|
+
content?: string,
|
|
358
|
+
btnTitle?: string,
|
|
359
|
+
conditioned?: boolean,
|
|
360
|
+
onClickButton?: any,
|
|
361
|
+
children?: any
|
|
362
|
+
hideImage?: any
|
|
363
|
+
btnStyle?: any
|
|
364
|
+
simple?: boolean
|
|
364
365
|
}
|
|
365
366
|
export interface OrdersOptionParams {
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
367
|
+
orderList?: any,
|
|
368
|
+
franchiseId?: any,
|
|
369
|
+
activeOrders?: boolean,
|
|
370
|
+
pastOrders?: boolean,
|
|
371
|
+
pagination?: any,
|
|
372
|
+
titleContent?: string,
|
|
373
|
+
customArray?: Array<any>,
|
|
374
|
+
loadMoreOrders?: any,
|
|
375
|
+
onNavigationRedirect?: any,
|
|
376
|
+
orderStatus?: any,
|
|
377
|
+
navigation?: any,
|
|
378
|
+
loadOrders?: any,
|
|
379
|
+
setOrderList?: any,
|
|
380
|
+
preOrders?: boolean,
|
|
381
|
+
reorderState?: any,
|
|
382
|
+
handleReorder?: (orderId: number) => {},
|
|
383
|
+
setOrdersLength?: ({ activeOrdersLength, previousOrdersLength, preordersLength }: { activeOrdersLength: number, previousOrdersLength: number, preordersLength: number }) => void,
|
|
384
|
+
ordersLength: { activeOrdersLength: number, previousOrdersLength: number, preordersLength: number },
|
|
385
|
+
setSelectedOrderId?: any,
|
|
386
|
+
setOpenMessges?: any,
|
|
387
|
+
loadMoreStatus?: boolean,
|
|
388
|
+
refreshOrders?: boolean,
|
|
389
|
+
setRefreshOrders?: (value: boolean) => void,
|
|
390
|
+
handleUpdateOrderList?: (orderId: number, changes: any) => {},
|
|
391
|
+
handleUpdateProducts?: (productId: number, changes: any) => {},
|
|
392
|
+
handleUpdateBusinesses?: (businessId: number, changes: any) => {},
|
|
393
|
+
isBusiness?: boolean,
|
|
394
|
+
isProducts?: boolean,
|
|
395
|
+
businessOrderIds?: any,
|
|
396
|
+
products?: any,
|
|
397
|
+
businessesSearchList?: any,
|
|
398
|
+
hideOrders?: boolean,
|
|
399
|
+
BusinessControllerSkeletons?: any,
|
|
400
|
+
businessPaginationProps?: any,
|
|
401
|
+
businesses?: any
|
|
402
|
+
businessId?: any;
|
|
402
403
|
}
|
|
403
404
|
export interface ActiveOrdersParams {
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
405
|
+
orders?: any,
|
|
406
|
+
pagination?: any,
|
|
407
|
+
getOrderStatus?: any,
|
|
408
|
+
reorderLoading?: boolean,
|
|
409
|
+
customArray?: Array<any>
|
|
410
|
+
setScreen?: any,
|
|
411
|
+
screen?: any,
|
|
412
|
+
loadMoreOrders?: () => {},
|
|
413
|
+
onNavigationRedirect?: (route: string, params?: any) => {},
|
|
414
|
+
isMessageView?: boolean,
|
|
415
|
+
handleClickOrder?: any,
|
|
416
|
+
handleUpdateOrderList?: (orderId: number, changes: any) => {}
|
|
416
417
|
}
|
|
417
418
|
export interface PreviousOrdersParams {
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
419
|
+
orders?: any,
|
|
420
|
+
pagination?: any,
|
|
421
|
+
getOrderStatus?: any,
|
|
422
|
+
orderID?: number
|
|
423
|
+
reorderLoading?: boolean,
|
|
424
|
+
loading?: boolean,
|
|
425
|
+
loadMoreOrders?: () => {},
|
|
426
|
+
handleReorder?: (orderId: number) => {},
|
|
427
|
+
onNavigationRedirect?: (route: string, params?: any) => {}
|
|
428
|
+
handleUpdateOrderList?: (orderId: number, changes: any) => {}
|
|
428
429
|
}
|
|
429
430
|
export interface OrderDetailsParams {
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
431
|
+
navigation?: any,
|
|
432
|
+
messagesReadList?: any,
|
|
433
|
+
urlToShare?: string,
|
|
434
|
+
messages?: any,
|
|
435
|
+
order?: any,
|
|
436
|
+
handleOrderRedirect?: () => {},
|
|
437
|
+
setMessages?: () => {},
|
|
438
|
+
readMessages?: () => {},
|
|
439
|
+
isFromCheckout?: boolean,
|
|
440
|
+
driverLocation?: any,
|
|
441
|
+
isFromRoot?: any,
|
|
442
|
+
goToBusinessList?: boolean,
|
|
443
|
+
onNavigationRedirect?: any,
|
|
444
|
+
reorderState?: any,
|
|
445
|
+
handleReorder?: any,
|
|
446
|
+
hideViaText?: boolean,
|
|
446
447
|
}
|
|
447
448
|
export interface ProductItemAccordionParams {
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
449
|
+
key?: any;
|
|
450
|
+
isCartPending?: boolean,
|
|
451
|
+
isCartProduct?: boolean,
|
|
452
|
+
product?: any,
|
|
453
|
+
getProductMax?: any,
|
|
454
|
+
changeQuantity?: (product: any, quantity: number) => {},
|
|
455
|
+
onDeleteProduct?: (product: any) => void,
|
|
456
|
+
onEditProduct?: (product: any) => void,
|
|
457
|
+
offsetDisabled?: any,
|
|
458
|
+
isFromCheckout?: any,
|
|
459
|
+
isDisabledEdit?: any,
|
|
460
|
+
productInfo?: any
|
|
460
461
|
}
|
|
461
462
|
export interface ReviewOrderParams {
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
463
|
+
order?: { id: number, business_id: number, logo: string, driver: any, products: Array<any>, review: any, user_review: any };
|
|
464
|
+
stars?: any;
|
|
465
|
+
defaultStar?: number;
|
|
466
|
+
handleChangeInput?: any;
|
|
467
|
+
handleChangeRating?: any;
|
|
468
|
+
handleSendReview?: any;
|
|
469
|
+
formState?: any;
|
|
470
|
+
navigation?: any;
|
|
471
|
+
setIsReviewed?: (isReviewed: boolean) => void;
|
|
472
|
+
handleReviewState?: any;
|
|
473
|
+
setStars?: any;
|
|
474
|
+
onNavigationRedirect?: any;
|
|
474
475
|
}
|
|
475
476
|
export interface ReviewProductParams {
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
477
|
+
navigation?: any,
|
|
478
|
+
onNavigationRedirect?: any,
|
|
479
|
+
order?: { orderId: number, business_id: number, logo: string, driver: any, products: Array<any>, review: any, user_review: any },
|
|
480
|
+
formState?: any,
|
|
481
|
+
handleChangeFormState?: any,
|
|
482
|
+
handleSendProductReview?: any;
|
|
482
483
|
}
|
|
483
484
|
export interface SingleProductReviewParams {
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
485
|
+
product: any,
|
|
486
|
+
formState?: any,
|
|
487
|
+
handleChangeFormState?: any,
|
|
487
488
|
}
|
|
488
489
|
export interface ReviewDriverParams {
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
490
|
+
navigation?: any,
|
|
491
|
+
onNavigationRedirect?: any,
|
|
492
|
+
order?: { orderId: number, business_id: number, logo: string, driver: any, products: Array<any>, review: any, user_review: any },
|
|
493
|
+
formState?: any,
|
|
494
|
+
setIsDriverReviewed?: (isReviewed: boolean) => {},
|
|
495
|
+
dirverReviews?: any,
|
|
496
|
+
setDriverReviews?: any,
|
|
497
|
+
handleSendDriverReview?: any;
|
|
497
498
|
}
|
|
498
499
|
export interface MessagesParams {
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
500
|
+
type?: string,
|
|
501
|
+
order?: any,
|
|
502
|
+
orderId?: number,
|
|
503
|
+
messages?: any,
|
|
504
|
+
message?: string,
|
|
505
|
+
image?: string,
|
|
506
|
+
messagesToShow?: any,
|
|
507
|
+
sendMessage?: any,
|
|
508
|
+
handleSend?: () => {},
|
|
509
|
+
setImage?: (image: string | null) => {},
|
|
510
|
+
setMessage?: (comment: string) => {},
|
|
511
|
+
setMessages?: (image: any | null) => {},
|
|
512
|
+
readMessages?: () => {},
|
|
513
|
+
onClose?: () => void,
|
|
514
|
+
isMeesageListing?: boolean,
|
|
515
|
+
setCanRead?: any,
|
|
516
|
+
business?: boolean,
|
|
517
|
+
driver?: boolean,
|
|
518
|
+
onMessages?: any
|
|
518
519
|
}
|
|
519
520
|
export interface ViewInterface {
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
521
|
+
navigation?: any;
|
|
522
|
+
onLogin?: any;
|
|
523
|
+
title?: string;
|
|
524
|
+
subTitle?: string;
|
|
525
|
+
backgroundColor?: string;
|
|
526
|
+
wrapperStyle?: ViewStyle;
|
|
527
|
+
borderRadius?: any;
|
|
528
|
+
border?: string;
|
|
529
|
+
placeHolderColor?: string;
|
|
530
|
+
buttonBackground?: string;
|
|
531
|
+
inputMargin?: string;
|
|
532
|
+
loginButtonText?: string;
|
|
533
|
+
loginButtonBackground?: string;
|
|
534
|
+
loginButtonBorder?: string;
|
|
535
|
+
buttonBorder?: string;
|
|
536
|
+
registerButtonText?: string;
|
|
537
|
+
registerButtonBackground?: string;
|
|
538
|
+
registerButtonBorderColor?: string;
|
|
539
|
+
loginButtonBorderColor?: string;
|
|
540
|
+
onRegister?: any;
|
|
541
|
+
onForgot?: any;
|
|
542
|
+
forgotButtonText?: string;
|
|
542
543
|
}
|
|
543
544
|
export interface FloatingButtonParams {
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
545
|
+
btnLeftValue?: string;
|
|
546
|
+
btnRightValue?: string;
|
|
547
|
+
btnText: string
|
|
548
|
+
handleButtonClick?: any;
|
|
549
|
+
disabled?: boolean;
|
|
550
|
+
isSecondaryBtn?: boolean;
|
|
551
|
+
btnLeftValueShow?: boolean;
|
|
552
|
+
btnRightValueShow?: boolean;
|
|
553
|
+
handleClick?: any;
|
|
554
|
+
handleEmpty?: any;
|
|
555
|
+
iosBottom?: number
|
|
555
556
|
}
|
|
556
557
|
export interface MomentOptionParams {
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
558
|
+
navigation: any;
|
|
559
|
+
nopadding?: boolean;
|
|
560
|
+
datesList: Array<any>;
|
|
561
|
+
hoursList: Array<any>;
|
|
562
|
+
dateSelected?: any;
|
|
563
|
+
timeSelected?: any;
|
|
564
|
+
isAsap?: boolean;
|
|
565
|
+
cateringPreorder?: boolean,
|
|
566
|
+
isCart?: boolean,
|
|
567
|
+
preorderLeadTime?: number,
|
|
568
|
+
business?: any,
|
|
569
|
+
getActualSchedule?: any,
|
|
570
|
+
preorderMaximumDays?: number,
|
|
571
|
+
preorderMinimumDays?: number,
|
|
572
|
+
isPage?: boolean,
|
|
573
|
+
handleAsap: () => {};
|
|
574
|
+
handleChangeDate: (value: any) => {};
|
|
575
|
+
handleChangeTime: (value: any) => {};
|
|
575
576
|
}
|
|
576
577
|
export interface BusinessPreorderParams {
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
578
|
+
navigation?: any;
|
|
579
|
+
datesList: Array<any>;
|
|
580
|
+
hoursList: Array<any>;
|
|
581
|
+
dateSelected?: any;
|
|
582
|
+
timeSelected?: any;
|
|
583
|
+
isAsap?: boolean;
|
|
584
|
+
handleAsap?: () => {};
|
|
585
|
+
handleChangeDate: (value: any) => {};
|
|
586
|
+
handleChangeTime: (value: any) => {};
|
|
587
|
+
goToBack: any;
|
|
588
|
+
business: any;
|
|
589
|
+
handleBusinessClick: (value: any) => {};
|
|
590
|
+
getActualSchedule?: any;
|
|
591
|
+
cateringPreorder?: boolean;
|
|
592
|
+
preorderLeadTime?: number
|
|
592
593
|
}
|
|
593
594
|
export interface BusinessMenuListParams {
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
595
|
+
menu: any;
|
|
596
|
+
businessMenuList: any;
|
|
597
|
+
setMenu: (value: any) => {};
|
|
597
598
|
}
|
|
598
599
|
export interface OrderTypeSelectParams {
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
600
|
+
navigation?: any;
|
|
601
|
+
handleChangeOrderType: (value: any) => {};
|
|
602
|
+
typeSelected?: number;
|
|
603
|
+
defaultValue?: number;
|
|
604
|
+
configTypes?: Array<any>;
|
|
605
|
+
orderTypes: Array<any>;
|
|
606
|
+
setOrderTypeValue?: (value: number) => any,
|
|
607
|
+
isChewLayout?: boolean;
|
|
608
|
+
chewOrderTypes?: any;
|
|
608
609
|
}
|
|
609
610
|
export interface UpsellingProductsParams {
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
611
|
+
isCustomMode?: boolean;
|
|
612
|
+
upsellingProducts?: any;
|
|
613
|
+
business?: any;
|
|
614
|
+
businessId?: number;
|
|
615
|
+
cartProducts?: Array<any>;
|
|
616
|
+
handleUpsellingPage: (cart?: any) => void;
|
|
617
|
+
openUpselling: boolean;
|
|
618
|
+
canOpenUpselling?: boolean;
|
|
619
|
+
setCanOpenUpselling?: (value: any) => void;
|
|
620
|
+
cart?: any;
|
|
621
|
+
handleCloseUpsellingPage: () => void;
|
|
622
|
+
isFromCart?: boolean;
|
|
623
|
+
isPage?: boolean;
|
|
624
|
+
products?: any;
|
|
625
|
+
onNavigationRedirect?: any;
|
|
626
|
+
onGoBack?: any;
|
|
627
|
+
singleBusiness?: any;
|
|
628
|
+
isFranchiseApp?: any;
|
|
628
629
|
}
|
|
629
630
|
|
|
630
631
|
export interface GoogleMapsParams {
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
autoCompleteAddress?: boolean,
|
|
649
|
-
setAutoCompleteAddress?: (val: boolean) => void,
|
|
632
|
+
location: { lat: number, lng: number }
|
|
633
|
+
handleChangeAddressMap?: (address: any, details: any) => void
|
|
634
|
+
setErrors?: (error: string) => void
|
|
635
|
+
maxLimitLocation?: number
|
|
636
|
+
readOnly?: boolean
|
|
637
|
+
markerTitle?: string,
|
|
638
|
+
saveLocation?: boolean,
|
|
639
|
+
isSetInputs?: boolean,
|
|
640
|
+
locations?: Array<any>,
|
|
641
|
+
setSaveLocation?: (val: boolean) => void,
|
|
642
|
+
handleToggleMap?: () => void,
|
|
643
|
+
isIntGeoCoder: boolean,
|
|
644
|
+
businessZones?: any
|
|
645
|
+
delta?: number,
|
|
646
|
+
manualZoom?: boolean
|
|
647
|
+
autoCompleteAddress?: boolean,
|
|
648
|
+
setAutoCompleteAddress?: (val: boolean) => void,
|
|
650
649
|
}
|
|
651
650
|
|
|
652
651
|
export interface HelpParams {
|
|
653
|
-
|
|
654
|
-
|
|
652
|
+
navigation: any;
|
|
653
|
+
businessId?: any;
|
|
654
|
+
cmsState?: any
|
|
655
655
|
}
|
|
656
656
|
|
|
657
657
|
export interface LastOrdersParams {
|
|
658
|
-
|
|
659
|
-
|
|
658
|
+
orderList?: any,
|
|
659
|
+
onRedirect?: any,
|
|
660
660
|
}
|
|
661
661
|
|
|
662
662
|
export interface HelpOrderParams {
|
|
663
|
-
|
|
663
|
+
navigation: any;
|
|
664
664
|
}
|
|
665
665
|
|
|
666
666
|
export interface HelpGuideParams {
|
|
667
|
-
|
|
667
|
+
navigation: any;
|
|
668
668
|
}
|
|
669
669
|
|
|
670
670
|
export interface HelpAccountAndPaymentParams {
|
|
671
|
-
|
|
671
|
+
navigation: any;
|
|
672
672
|
}
|
|
673
673
|
|
|
674
674
|
export interface MessageListingParams {
|
|
675
|
-
|
|
676
|
-
|
|
675
|
+
navigation: any;
|
|
676
|
+
franchiseId?: any;
|
|
677
677
|
}
|
|
678
678
|
|
|
679
679
|
export interface BusinessSearchParams {
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
680
|
+
navigation: any,
|
|
681
|
+
businessesSearchList: any,
|
|
682
|
+
onBusinessClick: any,
|
|
683
|
+
handleChangeTermValue: (term: string) => void,
|
|
684
|
+
termValue: string,
|
|
685
|
+
paginationProps: any,
|
|
686
|
+
handleSearchbusinessAndProducts: (newFetch?: boolean) => void,
|
|
687
|
+
handleChangeFilters: (prop: string, value: any) => void,
|
|
688
|
+
filters: any,
|
|
689
|
+
businessTypes: Array<number>,
|
|
690
|
+
setFilters: (filters: any) => void,
|
|
691
|
+
lazySearch?: boolean,
|
|
692
|
+
brandList?: any;
|
|
693
|
+
onNavigationRedirect?: any,
|
|
694
|
+
handleUpdateProducts: any,
|
|
695
|
+
handleUpdateBusinessList?: any;
|
|
696
|
+
brandId?: number
|
|
697
697
|
}
|
|
698
698
|
|
|
699
699
|
export interface NoNetworkParams {
|
|
700
|
-
|
|
700
|
+
image?: any,
|
|
701
701
|
}
|
|
702
702
|
|
|
703
703
|
export interface PlaceSpotParams {
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
704
|
+
isCheckout?: any,
|
|
705
|
+
isInputMode?: any,
|
|
706
|
+
cart?: any,
|
|
707
|
+
spotNumberDefault?: any,
|
|
708
|
+
vehicleDefault?: any,
|
|
709
|
+
spotNumber?: any,
|
|
710
|
+
setSpotNumber?: any,
|
|
711
|
+
orderTypes?: any,
|
|
712
|
+
placesState?: any,
|
|
713
|
+
handleChangePlace?: any,
|
|
714
|
+
spotState?: any,
|
|
715
|
+
vehicle?: any,
|
|
716
|
+
setVehicle?: any,
|
|
717
|
+
handleChangeSpot?: any
|
|
718
|
+
setPlaceSpotNumber?: any
|
|
719
719
|
}
|
|
720
720
|
|
|
721
721
|
export interface PromotionParams {
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
722
|
+
navigation: any,
|
|
723
|
+
offersState: any,
|
|
724
|
+
handleSearchValue: any,
|
|
725
|
+
searchValue: string,
|
|
726
|
+
offerSelected: any,
|
|
727
|
+
setOfferSelected: any,
|
|
728
|
+
loadOffers: any
|
|
729
729
|
}
|
|
730
730
|
export interface SessionsParams {
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
731
|
+
navigation: any,
|
|
732
|
+
sessionsList: any,
|
|
733
|
+
actionState: any,
|
|
734
|
+
handleDeleteSession: any,
|
|
735
|
+
handleDeleteAllSessions: any
|
|
736
736
|
}
|
|
737
737
|
|
|
738
738
|
export interface otpParams {
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
739
|
+
willVerifyOtpState: boolean,
|
|
740
|
+
setWillVerifyOtpState: (val: boolean) => void,
|
|
741
|
+
onSubmit: () => void,
|
|
742
|
+
handleLoginOtp: (code: string) => void,
|
|
743
|
+
setAlertState: any;
|
|
744
|
+
pinCount: number;
|
|
745
|
+
otpError: any,
|
|
746
|
+
setOtpError: any
|
|
747
|
+
isCheckingCode: boolean
|
|
748
|
+
setCheckingCode: (value: boolean) => void
|
|
749
749
|
}
|
|
750
750
|
|
|
751
751
|
export interface FavoriteParams {
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
752
|
+
favoriteList: any,
|
|
753
|
+
handleUpdateFavoriteList: (id: number, changes: any) => {},
|
|
754
|
+
pagination: any,
|
|
755
|
+
getFavoriteList: (value: number) => {},
|
|
756
|
+
navigation?: any,
|
|
757
|
+
onNavigationRedirect?: (route: string, params?: any) => {},
|
|
758
|
+
reorderState?: any,
|
|
759
|
+
handleReorder?: (orderId: number) => {},
|
|
760
|
+
isOrder?: boolean,
|
|
761
|
+
isProduct?: boolean,
|
|
762
|
+
isBusiness?: boolean
|
|
763
763
|
}
|
|
764
764
|
|
|
765
765
|
export interface SingleOrderCardParams {
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
766
|
+
order: any,
|
|
767
|
+
reorderLoading: any,
|
|
768
|
+
handleReorder?: (value: any) => {},
|
|
769
|
+
getOrderStatus: any,
|
|
770
|
+
handleFavoriteOrder?: (value: boolean) => {},
|
|
771
|
+
onNavigationRedirect?: (route: string, params?: any) => {},
|
|
772
|
+
pastOrders: any,
|
|
773
|
+
isMessageView?: any,
|
|
774
|
+
handleClickOrder: (value: any) => {},
|
|
775
|
+
handleRemoveCart: (value: any) => {},
|
|
776
|
+
cartState: any
|
|
777
777
|
}
|
|
778
778
|
|
|
779
779
|
export interface PreviousBusinessOrderedParams {
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
780
|
+
navigation?: any,
|
|
781
|
+
businessesList?: any,
|
|
782
|
+
setBusinessLoading?: any,
|
|
783
|
+
businessId?: number,
|
|
784
|
+
onNavigationRedirect?: any,
|
|
785
|
+
isBusinessesSearchList?: any,
|
|
786
|
+
businessLoading?: boolean,
|
|
787
|
+
businesses?: any
|
|
788
|
+
handleUpdateBusinesses?: (businessId: number, changes: any) => {},
|
|
789
789
|
}
|
|
790
790
|
|
|
791
791
|
export interface ServiceFormParams {
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
792
|
+
navigation?: any,
|
|
793
|
+
professionalSelected: any,
|
|
794
|
+
product: any,
|
|
795
|
+
handleSave: (value?: any) => {}
|
|
796
|
+
productCart?: any
|
|
797
|
+
isSoldOut: boolean,
|
|
798
|
+
maxProductQuantity: any,
|
|
799
|
+
businessSlug?: string,
|
|
800
|
+
onClose: any,
|
|
801
|
+
professionalList: any,
|
|
802
|
+
productObject?: any,
|
|
803
|
+
professionalListState?: any,
|
|
804
|
+
isCartProduct?: any,
|
|
805
|
+
actionStatus?: any,
|
|
806
|
+
handleCreateGuestUser?: any
|
|
807
807
|
}
|
|
808
808
|
|
|
809
809
|
export interface ProfessionalFilterParams {
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
810
|
+
professionals?: any,
|
|
811
|
+
professionalSelected?: any,
|
|
812
|
+
handleChangeProfessionalSelected: any,
|
|
813
|
+
handleUpdateProfessionals?: any
|
|
814
814
|
}
|
|
815
815
|
|
|
816
816
|
export interface ProfessionalProfileParams {
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
817
|
+
professional: any,
|
|
818
|
+
handleChangeProfessionalSelected: any,
|
|
819
|
+
onClose: any
|
|
820
820
|
}
|
|
821
821
|
|
|
822
822
|
export interface OrderItAgainParams {
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
823
|
+
onProductClick: any,
|
|
824
|
+
productList: any,
|
|
825
|
+
businessId: any,
|
|
826
|
+
categoryState: any,
|
|
827
|
+
currentCart: any,
|
|
828
|
+
handleUpdateProducts: any,
|
|
829
|
+
navigation: any,
|
|
830
|
+
searchValue?: string,
|
|
831
|
+
businessSingleId?: number | string
|
|
832
832
|
}
|
|
833
833
|
|
|
834
834
|
export interface PreviousProductsOrderedParams {
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
835
|
+
products?: any,
|
|
836
|
+
isProductId?: boolean
|
|
837
|
+
onProductClick?: any,
|
|
838
|
+
isBusinessesSearchList?: boolean
|
|
839
|
+
handleUpdateProducts?: any
|
|
840
840
|
}
|