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