ordering-ui-react-native 0.15.86 → 0.15.87-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.
Files changed (239) hide show
  1. package/package.json +7 -3
  2. package/src/DeliveryApp.tsx +43 -1
  3. package/src/components/ActiveOrders/index.tsx +61 -63
  4. package/src/components/ActiveOrders/styles.tsx +1 -1
  5. package/src/components/AddressForm/index.tsx +18 -2
  6. package/src/components/BusinessBasicInformation/index.tsx +11 -19
  7. package/src/components/BusinessController/index.tsx +16 -8
  8. package/src/components/BusinessInformation/index.tsx +14 -0
  9. package/src/components/BusinessTypeFilter/index.tsx +1 -2
  10. package/src/components/BusinessesListing/index.tsx +1 -1
  11. package/src/components/Checkout/index.tsx +25 -3
  12. package/src/components/DriverTips/index.tsx +11 -6
  13. package/src/components/LanguageSelector/index.tsx +21 -16
  14. package/src/components/LoginForm/index.tsx +120 -30
  15. package/src/components/LoginForm/styles.tsx +6 -0
  16. package/src/components/Messages/index.tsx +2 -2
  17. package/src/components/NotificationSetting/index.tsx +85 -0
  18. package/src/components/OrderDetails/index.tsx +7 -21
  19. package/src/components/PaymentOptions/index.tsx +335 -365
  20. package/src/components/PaymentOptionsWebView/index.tsx +120 -121
  21. package/src/components/ReviewDriver/index.tsx +1 -1
  22. package/src/components/ReviewOrder/index.tsx +2 -1
  23. package/src/components/ReviewProducts/index.tsx +11 -0
  24. package/src/components/SignupForm/index.tsx +145 -61
  25. package/src/components/SingleProductCard/index.tsx +16 -4
  26. package/src/components/SingleProductReview/index.tsx +1 -1
  27. package/src/components/StripeElementsForm/index.tsx +25 -16
  28. package/src/components/StripeMethodForm/index.tsx +22 -24
  29. package/src/components/UpsellingProducts/index.tsx +1 -1
  30. package/src/components/UserProfileForm/index.tsx +63 -6
  31. package/src/components/UserProfileForm/styles.tsx +8 -0
  32. package/src/components/VerifyPhone/styles.tsx +1 -2
  33. package/src/components/shared/OBottomPopup.tsx +6 -2
  34. package/src/components/shared/OModal.tsx +1 -1
  35. package/src/index.tsx +2 -0
  36. package/src/navigators/CheckoutNavigator.tsx +6 -0
  37. package/src/navigators/HomeNavigator.tsx +6 -0
  38. package/src/pages/BusinessesListing.tsx +7 -6
  39. package/src/pages/MultiCheckout.tsx +31 -0
  40. package/src/pages/MultiOrdersDetails.tsx +27 -0
  41. package/src/pages/OrderDetails.tsx +1 -1
  42. package/src/pages/ReviewDriver.tsx +2 -2
  43. package/src/pages/ReviewOrder.tsx +2 -2
  44. package/src/theme.json +0 -1
  45. package/src/types/index.tsx +18 -11
  46. package/src/utils/index.tsx +28 -29
  47. package/themes/business/index.tsx +4 -0
  48. package/themes/business/src/components/AcceptOrRejectOrder/index.tsx +100 -60
  49. package/themes/business/src/components/AcceptOrRejectOrder/styles.tsx +1 -0
  50. package/themes/business/src/components/Chat/index.tsx +52 -92
  51. package/themes/business/src/components/DriverMap/index.tsx +6 -5
  52. package/themes/business/src/components/DriverSchedule/index.tsx +71 -0
  53. package/themes/business/src/components/DriverSchedule/styles.tsx +6 -0
  54. package/themes/business/src/components/LoginForm/index.tsx +89 -2
  55. package/themes/business/src/components/LoginForm/styles.tsx +6 -0
  56. package/themes/business/src/components/LogoutButton/index.tsx +1 -1
  57. package/themes/business/src/components/MapView/index.tsx +1 -1
  58. package/themes/business/src/components/MessagesOption/index.tsx +11 -1
  59. package/themes/business/src/components/NewOrderNotification/index.tsx +26 -13
  60. package/themes/business/src/components/OrderDetails/Business.tsx +1 -1
  61. package/themes/business/src/components/OrderDetails/Delivery.tsx +17 -7
  62. package/themes/business/src/components/OrderDetails/OrderContentComponent.tsx +26 -18
  63. package/themes/business/src/components/OrdersListManager/index.tsx +11 -4
  64. package/themes/business/src/components/OrdersOption/index.tsx +66 -20
  65. package/themes/business/src/components/OrdersOption/styles.tsx +5 -1
  66. package/themes/business/src/components/OrdersOptionBusiness/index.tsx +15 -1
  67. package/themes/business/src/components/OrdersOptionCity/index.tsx +15 -1
  68. package/themes/business/src/components/OrdersOptionDate/index.tsx +19 -6
  69. package/themes/business/src/components/OrdersOptionDelivery/index.tsx +15 -1
  70. package/themes/business/src/components/OrdersOptionDriver/index.tsx +15 -1
  71. package/themes/business/src/components/OrdersOptionPaymethod/index.tsx +15 -1
  72. package/themes/business/src/components/OrdersOptionStatus/index.tsx +10 -1
  73. package/themes/business/src/components/PreviousMessages/index.tsx +1 -0
  74. package/themes/business/src/components/PreviousOrders/index.tsx +7 -7
  75. package/themes/business/src/components/ProductItemAccordion/index.tsx +5 -4
  76. package/themes/business/src/components/ScheduleBlocked/index.tsx +53 -0
  77. package/themes/business/src/components/UserFormDetails/index.tsx +5 -2
  78. package/themes/business/src/components/UserProfileForm/index.tsx +28 -4
  79. package/themes/business/src/components/shared/ODropDown.tsx +42 -8
  80. package/themes/business/src/components/shared/ODropDownCalendar.tsx +36 -7
  81. package/themes/business/src/components/shared/OModal.tsx +41 -38
  82. package/themes/business/src/types/index.tsx +15 -7
  83. package/themes/doordash/src/components/BusinessesListing/index.tsx +1 -1
  84. package/themes/doordash/src/components/LoginForm/index.tsx +1 -2
  85. package/themes/instacart/src/components/BusinessesListing/index.tsx +1 -1
  86. package/themes/kiosk/src/components/BusinessMenu/index.tsx +25 -26
  87. package/themes/kiosk/src/components/BusinessesListing/index.tsx +2 -3
  88. package/themes/kiosk/src/components/Cart/index.tsx +10 -11
  89. package/themes/kiosk/src/components/CartBottomSheet/index.tsx +9 -2
  90. package/themes/kiosk/src/components/CartContent/index.tsx +0 -11
  91. package/themes/kiosk/src/components/CartItem/index.tsx +4 -3
  92. package/themes/kiosk/src/components/CategoriesMenu/index.tsx +107 -62
  93. package/themes/kiosk/src/components/Checkout/index.tsx +40 -22
  94. package/themes/kiosk/src/components/CustomerName/index.tsx +0 -6
  95. package/themes/kiosk/src/components/DrawerView/index.tsx +1 -0
  96. package/themes/kiosk/src/components/DrawerView/styles.tsx +2 -2
  97. package/themes/kiosk/src/components/NavBar/index.tsx +14 -14
  98. package/themes/kiosk/src/components/OptionCard/index.tsx +1 -1
  99. package/themes/kiosk/src/components/OrderDetails/index.tsx +2 -2
  100. package/themes/kiosk/src/components/OrderTypeCardSelector/index.tsx +9 -11
  101. package/themes/kiosk/src/components/PaymentOptions/index.tsx +55 -53
  102. package/themes/kiosk/src/components/ProductForm/index.tsx +6 -7
  103. package/themes/kiosk/src/components/ProductOptionSubOption/index.tsx +3 -1
  104. package/themes/kiosk/src/components/UpsellingProducts/index.tsx +16 -5
  105. package/themes/kiosk/src/components/shared/OButton.tsx +5 -18
  106. package/themes/kiosk/src/types/index.d.ts +1 -0
  107. package/themes/original/index.tsx +22 -0
  108. package/themes/original/src/components/ActiveOrders/index.tsx +15 -132
  109. package/themes/original/src/components/ActiveOrders/styles.tsx +0 -54
  110. package/themes/original/src/components/AddressForm/index.tsx +26 -33
  111. package/themes/original/src/components/AddressList/index.tsx +2 -2
  112. package/themes/original/src/components/AppleLogin/index.tsx +6 -8
  113. package/themes/original/src/components/BusinessBasicInformation/index.tsx +302 -160
  114. package/themes/original/src/components/BusinessBasicInformation/styles.tsx +6 -2
  115. package/themes/original/src/components/BusinessController/index.tsx +179 -96
  116. package/themes/original/src/components/BusinessController/styles.tsx +5 -0
  117. package/themes/original/src/components/BusinessItemAccordion/index.tsx +11 -8
  118. package/themes/original/src/components/BusinessItemAccordion/styles.tsx +3 -1
  119. package/themes/original/src/components/BusinessListingSearch/BusinessControllerSkeletons/index.tsx +57 -0
  120. package/themes/original/src/components/BusinessListingSearch/MaxSectionItem/index.tsx +59 -0
  121. package/themes/original/src/components/BusinessListingSearch/MaxSectionItem/styles.tsx +13 -0
  122. package/themes/original/src/components/BusinessListingSearch/index.tsx +217 -127
  123. package/themes/original/src/components/BusinessListingSearch/styles.tsx +29 -11
  124. package/themes/original/src/components/BusinessPreorder/index.tsx +1 -1
  125. package/themes/original/src/components/BusinessProductsCategories/index.tsx +2 -2
  126. package/themes/original/src/components/BusinessProductsList/CategoryDescription/index.tsx +44 -0
  127. package/themes/original/src/components/BusinessProductsList/SubcategoriesComponent/index.tsx +87 -0
  128. package/themes/original/src/components/BusinessProductsList/SubcategoriesComponent/styles.tsx +12 -0
  129. package/themes/original/src/components/BusinessProductsList/index.tsx +66 -73
  130. package/themes/original/src/components/BusinessProductsList/styles.tsx +0 -3
  131. package/themes/original/src/components/BusinessProductsListing/index.tsx +296 -178
  132. package/themes/original/src/components/BusinessProductsListing/styles.tsx +18 -0
  133. package/themes/original/src/components/BusinessReviews/index.tsx +6 -1
  134. package/themes/original/src/components/BusinessTypeFilter/index.tsx +106 -38
  135. package/themes/original/src/components/BusinessTypeFilter/styles.tsx +2 -0
  136. package/themes/original/src/components/BusinessesListing/Layout/Appointment/index.tsx +561 -0
  137. package/themes/original/src/components/BusinessesListing/{styles.tsx → Layout/Appointment/styles.tsx} +24 -2
  138. package/themes/original/src/components/BusinessesListing/Layout/Original/index.tsx +673 -0
  139. package/themes/original/src/components/BusinessesListing/Layout/Original/styles.tsx +137 -0
  140. package/themes/original/src/components/BusinessesListing/index.tsx +104 -462
  141. package/themes/original/src/components/Cart/index.tsx +83 -38
  142. package/themes/original/src/components/Cart/styles.tsx +4 -0
  143. package/themes/original/src/components/CartContent/index.tsx +3 -3
  144. package/themes/original/src/components/Checkout/index.tsx +128 -67
  145. package/themes/original/src/components/Checkout/styles.tsx +0 -1
  146. package/themes/original/src/components/DriverTips/index.tsx +17 -12
  147. package/themes/original/src/components/Favorite/index.tsx +92 -0
  148. package/themes/original/src/components/Favorite/styles.tsx +22 -0
  149. package/themes/original/src/components/FavoriteList/index.tsx +298 -0
  150. package/themes/original/src/components/FavoriteList/styles.tsx +5 -0
  151. package/themes/original/src/components/ForgotPasswordForm/index.tsx +13 -4
  152. package/themes/original/src/components/GPSButton/index.tsx +25 -17
  153. package/themes/original/src/components/GoogleMap/index.tsx +11 -11
  154. package/themes/original/src/components/Help/index.tsx +21 -4
  155. package/themes/original/src/components/HelpAccountAndPayment/index.tsx +8 -3
  156. package/themes/original/src/components/HelpGuide/index.tsx +8 -3
  157. package/themes/original/src/components/HelpOrder/index.tsx +8 -3
  158. package/themes/original/src/components/HighestRatedBusinesses/index.tsx +18 -1
  159. package/themes/original/src/components/LastOrders/index.tsx +12 -1
  160. package/themes/original/src/components/LoginForm/Otp/index.tsx +3 -3
  161. package/themes/original/src/components/LoginForm/index.tsx +52 -13
  162. package/themes/original/src/components/LoginForm/styles.tsx +1 -3
  163. package/themes/original/src/components/Messages/index.tsx +17 -17
  164. package/themes/original/src/components/MomentSelector/index.tsx +197 -0
  165. package/themes/original/src/components/MomentSelector/styles.tsx +6 -0
  166. package/themes/original/src/components/MultiCartsPaymethodsAndWallets/index.tsx +243 -0
  167. package/themes/original/src/components/MultiCartsPaymethodsAndWallets/styles.tsx +46 -0
  168. package/themes/original/src/components/MultiCheckout/index.tsx +304 -0
  169. package/themes/original/src/components/MultiCheckout/styles.tsx +59 -0
  170. package/themes/original/src/components/MultiOrdersDetails/SingleOrderCard.tsx +372 -0
  171. package/themes/original/src/components/MultiOrdersDetails/index.tsx +262 -0
  172. package/themes/original/src/components/MultiOrdersDetails/styles.tsx +50 -0
  173. package/themes/original/src/components/MyOrders/index.tsx +132 -27
  174. package/themes/original/src/components/MyOrders/styles.tsx +8 -1
  175. package/themes/original/src/components/NavBar/index.tsx +11 -5
  176. package/themes/original/src/components/OrderDetails/OrderHistory.tsx +167 -0
  177. package/themes/original/src/components/OrderDetails/index.tsx +153 -77
  178. package/themes/original/src/components/OrderDetails/styles.tsx +5 -2
  179. package/themes/original/src/components/OrderItAgain/index.tsx +73 -0
  180. package/themes/original/src/components/OrderItAgain/styles.tsx +10 -0
  181. package/themes/original/src/components/OrderProgress/index.tsx +8 -2
  182. package/themes/original/src/components/OrderSummary/index.tsx +2 -35
  183. package/themes/original/src/components/OrderTypeSelector/index.tsx +84 -36
  184. package/themes/original/src/components/OrderTypeSelector/styles.tsx +19 -1
  185. package/themes/original/src/components/OrdersOption/PreviousBusinessOrdered/index.tsx +140 -0
  186. package/themes/original/src/components/OrdersOption/PreviousBusinessOrdered/styles.tsx +6 -0
  187. package/themes/original/src/components/OrdersOption/PreviousProductsOrdered/index.tsx +53 -0
  188. package/themes/original/src/components/OrdersOption/PreviousProductsOrdered/styles.tsx +6 -0
  189. package/themes/original/src/components/OrdersOption/index.tsx +138 -46
  190. package/themes/original/src/components/OrdersOption/styles.tsx +4 -1
  191. package/themes/original/src/components/PaymentOptionCash/index.tsx +2 -2
  192. package/themes/original/src/components/PaymentOptionWallet/index.tsx +15 -22
  193. package/themes/original/src/components/PaymentOptions/index.tsx +57 -37
  194. package/themes/original/src/components/PhoneInputNumber/index.tsx +4 -10
  195. package/themes/original/src/components/PlaceSpot/index.tsx +243 -47
  196. package/themes/original/src/components/PlaceSpot/styles.tsx +0 -2
  197. package/themes/original/src/components/PreviousOrders/index.tsx +18 -147
  198. package/themes/original/src/components/ProductForm/index.tsx +737 -682
  199. package/themes/original/src/components/ProductForm/styles.tsx +9 -7
  200. package/themes/original/src/components/ProductItemAccordion/index.tsx +2 -2
  201. package/themes/original/src/components/ProductOption/index.tsx +1 -1
  202. package/themes/original/src/components/ProductOptionSubOption/index.tsx +13 -9
  203. package/themes/original/src/components/ProfessionalFilter/index.tsx +128 -0
  204. package/themes/original/src/components/ProfessionalFilter/styles.tsx +0 -0
  205. package/themes/original/src/components/ProfessionalProfile/index.tsx +298 -0
  206. package/themes/original/src/components/ProfessionalProfile/styles.tsx +46 -0
  207. package/themes/original/src/components/Promotions/index.tsx +22 -6
  208. package/themes/original/src/components/ReviewDriver/index.tsx +6 -6
  209. package/themes/original/src/components/ReviewOrder/index.tsx +1 -1
  210. package/themes/original/src/components/ReviewTrigger/index.tsx +118 -0
  211. package/themes/original/src/components/ReviewTrigger/styles.tsx +34 -0
  212. package/themes/original/src/components/SearchBar/index.tsx +13 -5
  213. package/themes/original/src/components/ServiceForm/index.tsx +579 -0
  214. package/themes/original/src/components/ServiceForm/styles.tsx +50 -0
  215. package/themes/original/src/components/SignupForm/index.tsx +237 -126
  216. package/themes/original/src/components/SingleOrderCard/index.tsx +316 -0
  217. package/themes/original/src/components/SingleOrderCard/styles.tsx +54 -0
  218. package/themes/original/src/components/SingleProductCard/index.tsx +197 -95
  219. package/themes/original/src/components/SingleProductCard/styles.tsx +2 -2
  220. package/themes/original/src/components/StripeElementsForm/index.tsx +25 -9
  221. package/themes/original/src/components/StripeElementsForm/naked.tsx +2 -2
  222. package/themes/original/src/components/UpsellingProducts/index.tsx +7 -3
  223. package/themes/original/src/components/UserDetails/index.tsx +32 -18
  224. package/themes/original/src/components/UserFormDetails/index.tsx +108 -74
  225. package/themes/original/src/components/UserProfile/index.tsx +5 -1
  226. package/themes/original/src/components/UserProfileForm/index.tsx +15 -10
  227. package/themes/original/src/components/UserVerification/index.tsx +178 -192
  228. package/themes/original/src/components/WalletTransactions/index.tsx +76 -0
  229. package/themes/original/src/components/WalletTransactions/styles.tsx +13 -0
  230. package/themes/original/src/components/Wallets/index.tsx +177 -163
  231. package/themes/original/src/components/Wallets/styles.tsx +10 -8
  232. package/themes/original/src/components/shared/OBottomPopup.tsx +47 -14
  233. package/themes/original/src/components/shared/OButton.tsx +10 -3
  234. package/themes/original/src/components/shared/OInput.tsx +3 -2
  235. package/themes/original/src/components/shared/OModal.tsx +4 -2
  236. package/themes/original/src/layouts/FloatingBottomContainer.tsx +5 -1
  237. package/themes/original/src/types/index.tsx +199 -48
  238. package/themes/original/src/utils/index.tsx +77 -0
  239. package/themes/uber-eats/src/components/BusinessesListing/index.tsx +1 -1
@@ -18,10 +18,10 @@ export interface LoginParams {
18
18
  handleCheckPhoneCode?: any;
19
19
  notificationState?: any;
20
20
  handleReCaptcha?: any;
21
- enableReCaptcha?: any;
21
+ enableReCaptcha?: any;
22
22
  otpType?: string,
23
- setOtpType: (type : string) => void,
24
- generateOtpCode: (values ?: any) => void,
23
+ setOtpType: (type: string) => void,
24
+ generateOtpCode: (values?: any) => void,
25
25
  useLoginOtpEmail?: boolean,
26
26
  useLoginOtpCellphone?: boolean,
27
27
  useLoginOtp?: boolean
@@ -110,9 +110,20 @@ export interface SignupParams {
110
110
  handleSendVerifyCode?: any;
111
111
  handleCheckPhoneCode?: any;
112
112
  notificationState?: any;
113
+ signUpTab?: string;
114
+ useSignUpFullDetails?: boolean;
115
+ useSignUpOtpEmail?: boolean;
116
+ useSignUpOtpCellphone?: boolean;
117
+ willVerifyOtpState?: boolean;
118
+ numOtpInputs?: number;
113
119
  handleChangePromotions: () => void;
120
+ handleChangeInput?: (in1: any, in2: any) => void;
114
121
  enableReCaptcha?: boolean;
115
- handleReCaptcha?: () => void;
122
+ generateOtpCode?: (in1?: any) => void;
123
+ handleReCaptcha?: (token?: any) => void;
124
+ setSignUpTab?: (in1: string) => void;
125
+ setWillVerifyOtpState?: (in1: boolean) => void;
126
+ setOtpState?: (in1: string) => void;
116
127
  }
117
128
 
118
129
  export interface PhoneInputParams {
@@ -153,13 +164,22 @@ export interface BusinessesListingParams {
153
164
  defaultBusinessType?: any;
154
165
  franchiseId?: any;
155
166
  businessId?: any;
167
+ isGuestUser?: any;
168
+ handleUpdateBusinessList?: any;
169
+ priceLevelSelected?: any;
170
+ handleChangePriceLevel?: any;
171
+ businessTypeSelected?: any;
172
+ logosLayout?: boolean;
156
173
  }
157
174
  export interface HighestRatedBusinessesParams {
158
175
  businessesList: { businesses: Array<any>, loading: boolean, error: null | string };
159
176
  onBusinessClick?: void;
160
177
  navigation?: any;
161
178
  isLoading?: boolean;
162
- getBusinesses: (newFetch: boolean) => void
179
+ getBusinesses: (newFetch: boolean) => void,
180
+ favoriteIds?: any,
181
+ setFavoriteIds?: any,
182
+ handleUpdateBusinessList?: any
163
183
  }
164
184
  export interface BusinessTypeFilterParams {
165
185
  businessTypes?: Array<any>;
@@ -168,7 +188,8 @@ export interface BusinessTypeFilterParams {
168
188
  defaultBusinessType?: string | null;
169
189
  images?: any
170
190
  typesState?: any
171
- setBusinessTypes?: any
191
+ setBusinessTypes?: any,
192
+ isAppoint?: boolean | undefined
172
193
  }
173
194
  export interface BusinessControllerParams {
174
195
  key?: string | number;
@@ -188,7 +209,12 @@ export interface BusinessControllerParams {
188
209
  businessDeliveryPrice?: number,
189
210
  businessDeliveryTime?: string,
190
211
  businessPickupTime?: string,
191
- businessDistance?: number
212
+ businessDistance?: number,
213
+ favoriteIds?: number[],
214
+ handleFavoriteBusiness?: any,
215
+ setFavoriteIds?: any;
216
+ handleUpdateBusinessList?: any;
217
+ enableIntersection?: boolean;
192
218
  }
193
219
  export interface BusinessProductsListingParams {
194
220
  navigation?: any;
@@ -211,6 +237,9 @@ export interface BusinessProductsListingParams {
211
237
  handleChangeCategory: (value: any) => {};
212
238
  setProductLogin?: () => {};
213
239
  updateProductModal?: (value: any) => {};
240
+ handleUpdateProducts?: any;
241
+ professionalSelected?: any;
242
+ handleChangeProfessionalSelected?: any;
214
243
  }
215
244
  export interface BusinessBasicInformationParams {
216
245
  navigation?: any;
@@ -255,18 +284,27 @@ export interface BusinessProductsListParams {
255
284
  setCategoriesLayout?: any,
256
285
  currentCart?: any,
257
286
  setSubcategoriesSelected?: any,
258
- subcategoriesSelected?: any,
259
- onClickCategory?: any,
260
- lazyLoadProductsRecommended?: boolean,
261
- isFiltMode?: boolean
287
+ subcategoriesSelected?: any,
288
+ onClickCategory?: any,
289
+ lazyLoadProductsRecommended?: boolean,
290
+ isFiltMode?: boolean,
291
+ handleUpdateProducts?: any,
292
+ navigation?: any;
293
+ previouslyProducts?: any;
262
294
  }
263
295
  export interface SingleProductCardParams {
264
- businessId: any,
296
+ businessId: any;
265
297
  product: any;
266
298
  isSoldOut: boolean;
267
299
  onProductClick: any;
268
300
  productAddedToCartLength: number;
269
- style?: ViewStyle
301
+ style?: ViewStyle;
302
+ categoryState?: any;
303
+ handleFavoriteProduct?: any;
304
+ handleUpdateProducts?: any;
305
+ enableIntersection?: boolean;
306
+ navigation?: any;
307
+ isPreviously?: any;
270
308
  }
271
309
  export interface BusinessInformationParams {
272
310
  navigation?: any,
@@ -300,6 +338,7 @@ export interface OrdersOptionParams {
300
338
  orderList?: any,
301
339
  franchiseId?: any,
302
340
  activeOrders?: boolean,
341
+ pastOrders?: boolean,
303
342
  pagination?: any,
304
343
  titleContent?: string,
305
344
  customArray?: Array<any>,
@@ -310,13 +349,25 @@ export interface OrdersOptionParams {
310
349
  loadOrders?: any,
311
350
  setOrderList?: any,
312
351
  preOrders?: boolean,
352
+ reorderState?: any,
353
+ handleReorder?: (orderId: number) => {},
313
354
  setOrdersLength?: ({ activeOrdersLength, previousOrdersLength }: { activeOrdersLength: number, previousOrdersLength: number }) => void,
314
355
  ordersLength: { activeOrdersLength: number, previousOrdersLength: number },
315
356
  setSelectedOrderId?: any,
316
357
  setOpenMessges?: any,
317
358
  loadMoreStatus?: boolean,
318
359
  refreshOrders?: boolean,
319
- setRefreshOrders?: (value : boolean) => void
360
+ setRefreshOrders?: (value: boolean) => void,
361
+ handleUpdateOrderList?: (orderId: number, changes: any) => {},
362
+ isBusiness?: boolean,
363
+ isProducts?: boolean,
364
+ businessOrderIds?: any,
365
+ products?: any,
366
+ businessesSearchList?: any,
367
+ hideOrders?: boolean,
368
+ BusinessControllerSkeletons?: any,
369
+ businessPaginationProps?: any,
370
+ businesses?: any
320
371
  }
321
372
  export interface ActiveOrdersParams {
322
373
  orders?: any,
@@ -329,7 +380,8 @@ export interface ActiveOrdersParams {
329
380
  loadMoreOrders?: () => {},
330
381
  onNavigationRedirect?: (route: string, params?: any) => {},
331
382
  isMessageView?: boolean,
332
- handleClickOrder?: any
383
+ handleClickOrder?: any,
384
+ handleUpdateOrderList?: (orderId: number, changes: any) => {}
333
385
  }
334
386
  export interface PreviousOrdersParams {
335
387
  orders?: any,
@@ -338,8 +390,9 @@ export interface PreviousOrdersParams {
338
390
  orderID?: number
339
391
  reorderLoading?: boolean,
340
392
  loadMoreOrders?: () => {},
341
- handleReorder: (order: any) => {},
393
+ handleReorder?: (orderId: number) => {},
342
394
  onNavigationRedirect?: (route: string, params?: any) => {}
395
+ handleUpdateOrderList?: (orderId: number, changes: any) => {}
343
396
  }
344
397
  export interface OrderDetailsParams {
345
398
  navigation?: any,
@@ -371,25 +424,26 @@ export interface ProductItemAccordionParams {
371
424
  isFromCheckout?: any
372
425
  }
373
426
  export interface ReviewOrderParams {
374
- order?: { id: number, businessId: number, logo: string, driver: any, products: Array<any>, review: any, user_review: any },
375
- stars?: any,
376
- handleChangeInput?: any,
377
- handleChangeRating?: any,
378
- handleSendReview?: any,
379
- formState?: any,
380
- navigation?: any,
381
- setIsReviewed?: (isReviewed: boolean) => {},
382
- handleReviewState?: any,
383
- setStars?: any,
384
- onNavigationRedirect?: any
427
+ order?: { id: number, business_id: number, logo: string, driver: any, products: Array<any>, review: any, user_review: any };
428
+ stars?: any;
429
+ defaultStar?: number;
430
+ handleChangeInput?: any;
431
+ handleChangeRating?: any;
432
+ handleSendReview?: any;
433
+ formState?: any;
434
+ navigation?: any;
435
+ setIsReviewed?: (isReviewed: boolean) => void;
436
+ handleReviewState?: any;
437
+ setStars?: any;
438
+ onNavigationRedirect?: any;
385
439
  }
386
440
  export interface ReviewProductParams {
387
441
  navigation?: any,
388
442
  onNavigationRedirect?: any,
389
- order?: { orderId: number, businessId: number, logo: string, driver: any, products: Array<any>, review: any, user_review: any },
443
+ order?: { orderId: number, business_id: number, logo: string, driver: any, products: Array<any>, review: any, user_review: any },
390
444
  formState?: any,
391
445
  handleChangeFormState?: any,
392
- handleSendProductReview?: any
446
+ handleSendProductReview?: any;
393
447
  }
394
448
  export interface SingleProductReviewParams {
395
449
  product: any,
@@ -399,12 +453,12 @@ export interface SingleProductReviewParams {
399
453
  export interface ReviewDriverParams {
400
454
  navigation?: any,
401
455
  onNavigationRedirect?: any,
402
- order?: { orderId: number, businessId: number, logo: string, driver: any, products: Array<any>, review: any, user_review: any },
456
+ order?: { orderId: number, business_id: number, logo: string, driver: any, products: Array<any>, review: any, user_review: any },
403
457
  formState?: any,
404
458
  setIsDriverReviewed?: (isReviewed: boolean) => {},
405
459
  dirverReviews?: any,
406
460
  setDriverReviews?: any,
407
- handleSendDriverReview?: any
461
+ handleSendDriverReview?: any;
408
462
  }
409
463
  export interface MessagesParams {
410
464
  type?: string,
@@ -502,7 +556,9 @@ export interface OrderTypeSelectParams {
502
556
  defaultValue?: number;
503
557
  configTypes?: Array<any>;
504
558
  orderTypes: Array<any>;
505
- setOrderTypeValue?: (value : number) => any
559
+ setOrderTypeValue?: (value: number) => any,
560
+ isChewLayout?: boolean;
561
+ chewOrderTypes?: any;
506
562
  }
507
563
  export interface UpsellingProductsParams {
508
564
  isCustomMode?: boolean;
@@ -576,7 +632,11 @@ export interface BusinessSearchParams {
576
632
  filters: any,
577
633
  businessTypes: Array<number>,
578
634
  setFilters: (filters: any) => void,
579
- lazySearch?: boolean
635
+ lazySearch?: boolean,
636
+ brandList?: any;
637
+ onNavigationRedirect?: any,
638
+ handleUpdateProducts: any,
639
+ handleUpdateBusinessList?: any;
580
640
  }
581
641
 
582
642
  export interface NoNetworkParams {
@@ -584,34 +644,125 @@ export interface NoNetworkParams {
584
644
  }
585
645
 
586
646
  export interface PlaceSpotParams {
587
- isOpenPlaceSpot?: boolean,
647
+ isCheckout?: any,
648
+ isInputMode?: any,
588
649
  cart?: any,
650
+ spotNumberDefault?: any,
651
+ vehicleDefault?: any,
652
+ spotNumber?: any,
653
+ setSpotNumber?: any,
654
+ orderTypes?: any,
589
655
  placesState?: any,
590
- handleChangePlace?: any,
591
- getPlacesList?: any,
592
- setOpenPlaceModal?: any
656
+ handleChangePlace? : any,
657
+ spotState?: any,
658
+ vehicle?: any,
659
+ setVehicle?: any,
660
+ handleChangeSpot?: any
593
661
  }
594
662
 
595
663
  export interface PromotionParams {
596
664
  navigation: any,
597
- offersState: any,
598
- handleSearchValue: any,
599
- searchValue: string,
600
- offerSelected: any,
601
- setOfferSelected: any,
665
+ offersState: any,
666
+ handleSearchValue: any,
667
+ searchValue: string,
668
+ offerSelected: any,
669
+ setOfferSelected: any,
670
+ loadOffers: any
602
671
  }
603
672
  export interface SessionsParams {
604
673
  navigation: any,
605
674
  sessionsList: any,
606
- actionState: any,
607
- handleDeleteSession: any,
608
- handleDeleteAllSessions: any
675
+ actionState: any,
676
+ handleDeleteSession: any,
677
+ handleDeleteAllSessions: any
609
678
  }
610
679
 
611
680
  export interface otpParams {
612
681
  willVerifyOtpState: boolean,
613
- setWillVerifyOtpState: (val : boolean) => void,
682
+ setWillVerifyOtpState: (val: boolean) => void,
614
683
  onSubmit: () => void,
615
- handleLoginOtp: (code : string) => void,
616
- setAlertState: any
684
+ handleLoginOtp: (code: string) => void,
685
+ setAlertState: any;
686
+ pinCount: number;
687
+ }
688
+
689
+ export interface FavoriteParams {
690
+ favoriteList: any,
691
+ handleUpdateFavoriteList: (id: number, changes: any) => {},
692
+ pagination: any,
693
+ getFavoriteList: (value: number) => {},
694
+ navigation?: any,
695
+ onNavigationRedirect?: (route: string, params?: any) => {},
696
+ reorderState?: any,
697
+ handleReorder?: (orderId: number) => {},
698
+ isOrder?: boolean,
699
+ isProduct?: boolean,
700
+ isBusiness?: boolean
701
+ }
702
+
703
+ export interface SingleOrderCardParams {
704
+ order: any,
705
+ reorderLoading: any,
706
+ handleReorder?: (value: any) => {},
707
+ getOrderStatus: any,
708
+ handleFavoriteOrder?: (value: boolean) => {},
709
+ onNavigationRedirect?: (route: string, params?: any) => {},
710
+ pastOrders: any,
711
+ isMessageView?: any,
712
+ handleClickOrder: (value: any) => {},
713
+ handleRemoveCart: () => {},
714
+ cartState: any
715
+ }
716
+
717
+ export interface PreviousBusinessOrderedParams {
718
+ navigation?: any,
719
+ businessesList?: any,
720
+ setBusinessLoading?: any,
721
+ businessId?: number,
722
+ onNavigationRedirect?: any,
723
+ isBusinessesSearchList?: any,
724
+ businessLoading?: boolean,
725
+ businesses?: any
726
+ }
727
+
728
+ export interface ServiceFormParams {
729
+ navigation?: any,
730
+ professionalSelected: any,
731
+ product: any,
732
+ handleSave: (value?: any) => {}
733
+ productCart?: any
734
+ isSoldOut: boolean,
735
+ maxProductQuantity: any,
736
+ businessSlug?: string,
737
+ onClose: any,
738
+ professionalList: any
739
+ }
740
+
741
+ export interface ProfessionalFilterParams {
742
+ professionals?: any,
743
+ professionalSelected?: any,
744
+ handleChangeProfessionalSelected: any
745
+ }
746
+
747
+ export interface ProfessionalProfileParams {
748
+ professional: any,
749
+ handleChangeProfessionalSelected: any,
750
+ onClose: any
751
+ }
752
+
753
+ export interface OrderItAgainParams {
754
+ onProductClick: any,
755
+ productList: any,
756
+ businessId: any,
757
+ categoryState: any,
758
+ currentCart: any,
759
+ handleUpdateProducts: any,
760
+ navigation: any,
761
+ searchValue?: string
762
+ }
763
+
764
+ export interface PreviousProductsOrderedParams {
765
+ products?: any,
766
+ onProductClick?: any,
767
+ isBusinessesSearchList?: boolean
617
768
  }
@@ -40,6 +40,72 @@ export const getTraduction = (key: string) => {
40
40
  return keyList[key] ? t(key, keyList[key]) : t(key)
41
41
  }
42
42
 
43
+ /**
44
+ * Change local moment variables
45
+ */
46
+ export const setLocalMoment = (moment : any, t : any) => {
47
+ moment.locale('custom', {
48
+ months: [
49
+ t('MONTH1','January'),
50
+ t('MONTH2','February'),
51
+ t('MONTH3','March'),
52
+ t('MONTH4','April'),
53
+ t('MONTH5','May'),
54
+ t('MONTH6','June'),
55
+ t('MONTH7','July'),
56
+ t('MONTH8','August'),
57
+ t('MONTH9','September'),
58
+ t('MONTH10','October'),
59
+ t('MONTH11','November'),
60
+ t('MONTH12','December')
61
+ ],
62
+ monthsShort: [
63
+ t('MONTHSHORT1','Jan'),
64
+ t('MONTHSHORT2','Feb'),
65
+ t('MONTHSHORT3','Mar'),
66
+ t('MONTHSHORT4','Apr'),
67
+ t('MONTHSHORT5','May'),
68
+ t('MONTHSHORT6','Jun'),
69
+ t('MONTHSHORT7','Jul'),
70
+ t('MONTHSHORT8','Aug'),
71
+ t('MONTHSHORT9','Sep'),
72
+ t('MONTHSHORT10','Oct'),
73
+ t('MONTHSHORT11','Nov'),
74
+ t('MONTHSHORT12','Dec')
75
+ ],
76
+ weekdays: [
77
+ t('DAY7','Sunday'),
78
+ t('DAY1','Monday'),
79
+ t('DAY2','Tuesday'),
80
+ t('DAY3','Wednesday'),
81
+ t('DAY4','Thursday'),
82
+ t('DAY5','Friday'),
83
+ t('DAY6','Saturday')
84
+ ],
85
+ weekdaysShort: [
86
+ t('DAYSHORT7','Sun'),
87
+ t('DAYSHORT1','Mon'),
88
+ t('DAYSHORT2','Tue'),
89
+ t('DAYSHORT3','Wed'),
90
+ t('DAYSHORT4','Thu'),
91
+ t('DAYSHORT5','Fri'),
92
+ t('DAYSHORT6','Sat')
93
+ ],
94
+ weekdaysMin: [
95
+ t('DAYMIN7','Su'),
96
+ t('DAYMIN1','Mo'),
97
+ t('DAYMIN2','Tu'),
98
+ t('DAYMIN3','We'),
99
+ t('DAYMIN4','Th'),
100
+ t('DAYMIN5','Fr'),
101
+ t('DAYMIN6','Sa')
102
+ ],
103
+ meridiem : function (hours : any) {
104
+ return hours < 12 ? t('AM', 'AM') : t('PM','PM');
105
+ }
106
+ })
107
+ }
108
+
43
109
  /**
44
110
  * Function to convert delivery time in minutes
45
111
  * @param {string} time business delivery time
@@ -229,3 +295,14 @@ export const formatSeconds = (seconds : number) => {
229
295
  ret += '' + secs
230
296
  return ret
231
297
  }
298
+
299
+ /**
300
+ * List of price to filter businesses
301
+ */
302
+ export const priceList = [
303
+ { level: '1', content: '$' },
304
+ { level: '2', content: '$$' },
305
+ { level: '3', content: '$$$' },
306
+ { level: '4', content: '$$$$' },
307
+ { level: '5', content: '$$$$$' }
308
+ ]
@@ -144,7 +144,7 @@ const BusinessesListingUI = (props: BusinessesListingParams) => {
144
144
  {isFarAway && (
145
145
  <FarAwayMessage style={styles.farAwayMsg}>
146
146
  <Ionicons name='md-warning-outline' style={styles.iconStyle} />
147
- <OText size={12} numberOfLines={1} ellipsizeMode={'tail'} color={theme.colors.textNormal}>{t('YOU_ARE_FAR_FROM_ADDRESS', 'You are far from this address')}</OText>
147
+ <OText size={12} numberOfLines={1} ellipsizeMode={'tail'} color={theme.colors.textNormal}>{t('YOU_ARE_FAR_FROM_ADDRESS', 'Your are far from this address')}</OText>
148
148
  </FarAwayMessage>
149
149
  )}
150
150
  <View style={styles.wrapperOrderOptions}>