ordering-ui-react-native 0.15.93 → 0.15.94-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 (233) hide show
  1. package/package.json +8 -3
  2. package/src/DeliveryApp.tsx +43 -1
  3. package/src/components/ActiveOrders/index.tsx +61 -63
  4. package/src/components/ActiveOrders/styles.tsx +8 -14
  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 +2 -1
  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/OrdersOption/index.tsx +54 -56
  20. package/src/components/PaymentOptions/index.tsx +335 -365
  21. package/src/components/PaymentOptionsWebView/index.tsx +120 -121
  22. package/src/components/ReviewDriver/index.tsx +1 -1
  23. package/src/components/ReviewOrder/index.tsx +2 -1
  24. package/src/components/ReviewProducts/index.tsx +11 -0
  25. package/src/components/SignupForm/index.tsx +145 -61
  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/@fatnlazycat/react-native-recaptcha-v3/index.d.ts +1 -0
  46. package/src/types/index.tsx +18 -11
  47. package/src/utils/index.tsx +1 -2
  48. package/themes/business/index.tsx +4 -0
  49. package/themes/business/src/components/AcceptOrRejectOrder/index.tsx +1 -1
  50. package/themes/business/src/components/Chat/index.tsx +14 -6
  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 +110 -74
  55. package/themes/business/src/components/LogoutButton/index.tsx +1 -1
  56. package/themes/business/src/components/MapView/index.tsx +1 -1
  57. package/themes/business/src/components/MessagesOption/index.tsx +11 -1
  58. package/themes/business/src/components/OrderDetails/Business.tsx +1 -1
  59. package/themes/business/src/components/OrderDetails/Delivery.tsx +6 -4
  60. package/themes/business/src/components/OrderDetails/OrderContentComponent.tsx +25 -18
  61. package/themes/business/src/components/OrdersListManager/index.tsx +10 -3
  62. package/themes/business/src/components/OrdersOption/index.tsx +65 -21
  63. package/themes/business/src/components/OrdersOption/styles.tsx +5 -1
  64. package/themes/business/src/components/OrdersOptionBusiness/index.tsx +15 -1
  65. package/themes/business/src/components/OrdersOptionCity/index.tsx +15 -1
  66. package/themes/business/src/components/OrdersOptionDate/index.tsx +19 -6
  67. package/themes/business/src/components/OrdersOptionDelivery/index.tsx +15 -1
  68. package/themes/business/src/components/OrdersOptionDriver/index.tsx +15 -1
  69. package/themes/business/src/components/OrdersOptionPaymethod/index.tsx +15 -1
  70. package/themes/business/src/components/OrdersOptionStatus/index.tsx +10 -1
  71. package/themes/business/src/components/PreviousMessages/index.tsx +1 -0
  72. package/themes/business/src/components/PreviousOrders/index.tsx +7 -7
  73. package/themes/business/src/components/ProductItemAccordion/index.tsx +5 -4
  74. package/themes/business/src/components/ReviewCustomer/index.tsx +1 -1
  75. package/themes/business/src/components/ScheduleBlocked/index.tsx +53 -0
  76. package/themes/business/src/components/UserFormDetails/index.tsx +5 -2
  77. package/themes/business/src/components/UserProfileForm/index.tsx +28 -4
  78. package/themes/business/src/components/shared/ODropDown.tsx +42 -8
  79. package/themes/business/src/components/shared/ODropDownCalendar.tsx +36 -7
  80. package/themes/business/src/components/shared/OModal.tsx +41 -38
  81. package/themes/business/src/types/index.tsx +14 -9
  82. package/themes/doordash/src/components/BusinessesListing/index.tsx +1 -1
  83. package/themes/doordash/src/components/LoginForm/index.tsx +1 -2
  84. package/themes/instacart/src/components/BusinessesListing/index.tsx +1 -1
  85. package/themes/kiosk/src/components/BusinessMenu/index.tsx +2 -1
  86. package/themes/kiosk/src/components/CartBottomSheet/index.tsx +9 -2
  87. package/themes/kiosk/src/components/CartContent/index.tsx +0 -11
  88. package/themes/kiosk/src/components/CartItem/index.tsx +4 -3
  89. package/themes/kiosk/src/components/CategoriesMenu/index.tsx +70 -31
  90. package/themes/kiosk/src/components/Checkout/index.tsx +18 -3
  91. package/themes/kiosk/src/components/CustomerName/index.tsx +0 -6
  92. package/themes/kiosk/src/components/DrawerView/index.tsx +1 -0
  93. package/themes/kiosk/src/components/DrawerView/styles.tsx +2 -2
  94. package/themes/kiosk/src/components/LoginForm/index.tsx +121 -10
  95. package/themes/kiosk/src/components/LoginForm/styles.tsx +5 -0
  96. package/themes/kiosk/src/components/NavBar/index.tsx +14 -14
  97. package/themes/kiosk/src/components/OptionCard/index.tsx +1 -1
  98. package/themes/kiosk/src/components/OrderDetails/index.tsx +2 -2
  99. package/themes/kiosk/src/components/OrderTypeCardSelector/index.tsx +8 -10
  100. package/themes/kiosk/src/components/PaymentOptions/index.tsx +1 -1
  101. package/themes/kiosk/src/components/ProductForm/index.tsx +6 -7
  102. package/themes/kiosk/src/components/UpsellingProducts/index.tsx +16 -5
  103. package/themes/kiosk/src/components/shared/OButton.tsx +5 -18
  104. package/themes/kiosk/src/types/index.d.ts +3 -0
  105. package/themes/original/index.tsx +22 -0
  106. package/themes/original/src/components/ActiveOrders/index.tsx +15 -132
  107. package/themes/original/src/components/ActiveOrders/styles.tsx +0 -54
  108. package/themes/original/src/components/AddressForm/index.tsx +137 -134
  109. package/themes/original/src/components/AddressList/index.tsx +2 -2
  110. package/themes/original/src/components/AppleLogin/index.tsx +4 -4
  111. package/themes/original/src/components/BusinessBasicInformation/index.tsx +302 -160
  112. package/themes/original/src/components/BusinessBasicInformation/styles.tsx +6 -2
  113. package/themes/original/src/components/BusinessController/index.tsx +179 -96
  114. package/themes/original/src/components/BusinessController/styles.tsx +5 -0
  115. package/themes/original/src/components/BusinessItemAccordion/index.tsx +11 -8
  116. package/themes/original/src/components/BusinessItemAccordion/styles.tsx +3 -1
  117. package/themes/original/src/components/BusinessListingSearch/BusinessControllerSkeletons/index.tsx +57 -0
  118. package/themes/original/src/components/BusinessListingSearch/MaxSectionItem/index.tsx +59 -0
  119. package/themes/original/src/components/BusinessListingSearch/MaxSectionItem/styles.tsx +13 -0
  120. package/themes/original/src/components/BusinessListingSearch/index.tsx +106 -126
  121. package/themes/original/src/components/BusinessListingSearch/styles.tsx +18 -13
  122. package/themes/original/src/components/BusinessPreorder/index.tsx +1 -1
  123. package/themes/original/src/components/BusinessProductsCategories/index.tsx +2 -2
  124. package/themes/original/src/components/BusinessProductsList/CategoryDescription/index.tsx +44 -0
  125. package/themes/original/src/components/BusinessProductsList/SubcategoriesComponent/index.tsx +87 -0
  126. package/themes/original/src/components/BusinessProductsList/SubcategoriesComponent/styles.tsx +12 -0
  127. package/themes/original/src/components/BusinessProductsList/index.tsx +66 -73
  128. package/themes/original/src/components/BusinessProductsList/styles.tsx +0 -3
  129. package/themes/original/src/components/BusinessProductsListing/index.tsx +296 -178
  130. package/themes/original/src/components/BusinessProductsListing/styles.tsx +18 -0
  131. package/themes/original/src/components/BusinessReviews/index.tsx +6 -1
  132. package/themes/original/src/components/BusinessTypeFilter/index.tsx +106 -38
  133. package/themes/original/src/components/BusinessTypeFilter/styles.tsx +2 -0
  134. package/themes/original/src/components/BusinessesListing/Layout/Appointment/index.tsx +561 -0
  135. package/themes/original/src/components/BusinessesListing/{styles.tsx → Layout/Appointment/styles.tsx} +24 -2
  136. package/themes/original/src/components/BusinessesListing/Layout/Original/index.tsx +673 -0
  137. package/themes/original/src/components/BusinessesListing/Layout/Original/styles.tsx +137 -0
  138. package/themes/original/src/components/BusinessesListing/index.tsx +102 -464
  139. package/themes/original/src/components/Cart/index.tsx +82 -37
  140. package/themes/original/src/components/Cart/styles.tsx +4 -0
  141. package/themes/original/src/components/CartContent/index.tsx +22 -16
  142. package/themes/original/src/components/Checkout/index.tsx +107 -67
  143. package/themes/original/src/components/Checkout/styles.tsx +0 -1
  144. package/themes/original/src/components/DriverTips/index.tsx +11 -6
  145. package/themes/original/src/components/Favorite/index.tsx +92 -0
  146. package/themes/original/src/components/Favorite/styles.tsx +22 -0
  147. package/themes/original/src/components/FavoriteList/index.tsx +298 -0
  148. package/themes/original/src/components/FavoriteList/styles.tsx +5 -0
  149. package/themes/original/src/components/GPSButton/index.tsx +25 -17
  150. package/themes/original/src/components/GoogleMap/index.tsx +21 -12
  151. package/themes/original/src/components/HelpAccountAndPayment/index.tsx +8 -3
  152. package/themes/original/src/components/HelpGuide/index.tsx +8 -3
  153. package/themes/original/src/components/HelpOrder/index.tsx +8 -3
  154. package/themes/original/src/components/HighestRatedBusinesses/index.tsx +18 -1
  155. package/themes/original/src/components/LoginForm/Otp/index.tsx +3 -2
  156. package/themes/original/src/components/LoginForm/index.tsx +86 -43
  157. package/themes/original/src/components/Messages/index.tsx +17 -17
  158. package/themes/original/src/components/MomentSelector/index.tsx +197 -0
  159. package/themes/original/src/components/MomentSelector/styles.tsx +6 -0
  160. package/themes/original/src/components/MultiCartsPaymethodsAndWallets/index.tsx +243 -0
  161. package/themes/original/src/components/MultiCartsPaymethodsAndWallets/styles.tsx +46 -0
  162. package/themes/original/src/components/MultiCheckout/index.tsx +304 -0
  163. package/themes/original/src/components/MultiCheckout/styles.tsx +59 -0
  164. package/themes/original/src/components/MultiOrdersDetails/SingleOrderCard.tsx +372 -0
  165. package/themes/original/src/components/MultiOrdersDetails/index.tsx +262 -0
  166. package/themes/original/src/components/MultiOrdersDetails/styles.tsx +50 -0
  167. package/themes/original/src/components/MyOrders/index.tsx +132 -27
  168. package/themes/original/src/components/MyOrders/styles.tsx +8 -1
  169. package/themes/original/src/components/NavBar/index.tsx +11 -5
  170. package/themes/original/src/components/NotFoundSource/index.tsx +2 -1
  171. package/themes/original/src/components/OrderDetails/OrderHistory.tsx +167 -0
  172. package/themes/original/src/components/OrderDetails/index.tsx +138 -58
  173. package/themes/original/src/components/OrderDetails/styles.tsx +5 -2
  174. package/themes/original/src/components/OrderItAgain/index.tsx +73 -0
  175. package/themes/original/src/components/OrderItAgain/styles.tsx +10 -0
  176. package/themes/original/src/components/OrderProgress/index.tsx +8 -2
  177. package/themes/original/src/components/OrderSummary/index.tsx +2 -35
  178. package/themes/original/src/components/OrderTypeSelector/index.tsx +84 -36
  179. package/themes/original/src/components/OrderTypeSelector/styles.tsx +19 -1
  180. package/themes/original/src/components/OrdersOption/PreviousBusinessOrdered/index.tsx +140 -0
  181. package/themes/original/src/components/OrdersOption/PreviousBusinessOrdered/styles.tsx +6 -0
  182. package/themes/original/src/components/OrdersOption/PreviousProductsOrdered/index.tsx +53 -0
  183. package/themes/original/src/components/OrdersOption/PreviousProductsOrdered/styles.tsx +6 -0
  184. package/themes/original/src/components/OrdersOption/index.tsx +138 -46
  185. package/themes/original/src/components/OrdersOption/styles.tsx +4 -1
  186. package/themes/original/src/components/PaymentOptionCash/index.tsx +2 -2
  187. package/themes/original/src/components/PaymentOptionWallet/index.tsx +15 -23
  188. package/themes/original/src/components/PaymentOptions/index.tsx +57 -37
  189. package/themes/original/src/components/PhoneInputNumber/index.tsx +4 -10
  190. package/themes/original/src/components/PlaceSpot/index.tsx +243 -47
  191. package/themes/original/src/components/PlaceSpot/styles.tsx +0 -2
  192. package/themes/original/src/components/PreviousOrders/index.tsx +18 -147
  193. package/themes/original/src/components/ProductForm/index.tsx +694 -647
  194. package/themes/original/src/components/ProductForm/styles.tsx +9 -7
  195. package/themes/original/src/components/ProductItemAccordion/index.tsx +2 -2
  196. package/themes/original/src/components/ProductOption/index.tsx +1 -1
  197. package/themes/original/src/components/ProfessionalFilter/index.tsx +128 -0
  198. package/themes/original/src/components/ProfessionalFilter/styles.tsx +0 -0
  199. package/themes/original/src/components/ProfessionalProfile/index.tsx +298 -0
  200. package/themes/original/src/components/ProfessionalProfile/styles.tsx +46 -0
  201. package/themes/original/src/components/Promotions/index.tsx +4 -4
  202. package/themes/original/src/components/ReviewDriver/index.tsx +6 -6
  203. package/themes/original/src/components/ReviewOrder/index.tsx +1 -1
  204. package/themes/original/src/components/ReviewTrigger/index.tsx +118 -0
  205. package/themes/original/src/components/ReviewTrigger/styles.tsx +34 -0
  206. package/themes/original/src/components/SearchBar/index.tsx +13 -5
  207. package/themes/original/src/components/ServiceForm/index.tsx +579 -0
  208. package/themes/original/src/components/ServiceForm/styles.tsx +50 -0
  209. package/themes/original/src/components/SignupForm/index.tsx +307 -159
  210. package/themes/original/src/components/SingleOrderCard/index.tsx +316 -0
  211. package/themes/original/src/components/SingleOrderCard/styles.tsx +54 -0
  212. package/themes/original/src/components/SingleProductCard/index.tsx +204 -95
  213. package/themes/original/src/components/SingleProductCard/styles.tsx +2 -2
  214. package/themes/original/src/components/StripeElementsForm/index.tsx +25 -9
  215. package/themes/original/src/components/StripeElementsForm/naked.tsx +2 -2
  216. package/themes/original/src/components/UpsellingProducts/index.tsx +7 -3
  217. package/themes/original/src/components/UserDetails/index.tsx +32 -18
  218. package/themes/original/src/components/UserFormDetails/index.tsx +108 -74
  219. package/themes/original/src/components/UserProfile/index.tsx +4 -0
  220. package/themes/original/src/components/UserProfileForm/index.tsx +15 -10
  221. package/themes/original/src/components/UserVerification/index.tsx +178 -192
  222. package/themes/original/src/components/WalletTransactions/index.tsx +76 -0
  223. package/themes/original/src/components/WalletTransactions/styles.tsx +13 -0
  224. package/themes/original/src/components/Wallets/index.tsx +176 -162
  225. package/themes/original/src/components/Wallets/styles.tsx +10 -8
  226. package/themes/original/src/components/shared/OBottomPopup.tsx +47 -14
  227. package/themes/original/src/components/shared/OButton.tsx +10 -3
  228. package/themes/original/src/components/shared/OInput.tsx +3 -2
  229. package/themes/original/src/components/shared/OModal.tsx +4 -2
  230. package/themes/original/src/layouts/FloatingBottomContainer.tsx +5 -1
  231. package/themes/original/src/types/index.tsx +197 -47
  232. package/themes/original/src/utils/index.tsx +77 -0
  233. 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
@@ -80,6 +80,7 @@ export interface AddressFormParams {
80
80
  saveAddress?: any,
81
81
  userCustomerSetup?: boolean,
82
82
  isRequiredField?: (field: string) => {},
83
+ showField?: (field: string) => {},
83
84
  isGuestUser?: boolean,
84
85
  useValidationFileds?: boolean,
85
86
  isSelectedAfterAdd?: boolean,
@@ -110,9 +111,20 @@ export interface SignupParams {
110
111
  handleSendVerifyCode?: any;
111
112
  handleCheckPhoneCode?: any;
112
113
  notificationState?: any;
114
+ signUpTab?: string;
115
+ useSignUpFullDetails?: boolean;
116
+ useSignUpOtpEmail?: boolean;
117
+ useSignUpOtpCellphone?: boolean;
118
+ willVerifyOtpState?: boolean;
119
+ numOtpInputs?: number;
113
120
  handleChangePromotions: () => void;
121
+ handleChangeInput?: (in1: any, in2: any) => void;
114
122
  enableReCaptcha?: boolean;
115
- handleReCaptcha?: () => void;
123
+ generateOtpCode?: (in1?: any) => void;
124
+ handleReCaptcha?: (token?: any) => void;
125
+ setSignUpTab?: (in1: string) => void;
126
+ setWillVerifyOtpState?: (in1: boolean) => void;
127
+ setOtpState?: (in1: string) => void;
116
128
  }
117
129
 
118
130
  export interface PhoneInputParams {
@@ -154,13 +166,21 @@ export interface BusinessesListingParams {
154
166
  franchiseId?: any;
155
167
  businessId?: any;
156
168
  isGuestUser?: any;
169
+ handleUpdateBusinessList?: any;
170
+ priceLevelSelected?: any;
171
+ handleChangePriceLevel?: any;
172
+ businessTypeSelected?: any;
173
+ logosLayout?: boolean;
157
174
  }
158
175
  export interface HighestRatedBusinessesParams {
159
176
  businessesList: { businesses: Array<any>, loading: boolean, error: null | string };
160
177
  onBusinessClick?: void;
161
178
  navigation?: any;
162
179
  isLoading?: boolean;
163
- getBusinesses: (newFetch: boolean) => void
180
+ getBusinesses: (newFetch: boolean) => void,
181
+ favoriteIds?: any,
182
+ setFavoriteIds?: any,
183
+ handleUpdateBusinessList?: any
164
184
  }
165
185
  export interface BusinessTypeFilterParams {
166
186
  businessTypes?: Array<any>;
@@ -169,7 +189,8 @@ export interface BusinessTypeFilterParams {
169
189
  defaultBusinessType?: string | null;
170
190
  images?: any
171
191
  typesState?: any
172
- setBusinessTypes?: any
192
+ setBusinessTypes?: any,
193
+ isAppoint?: boolean | undefined
173
194
  }
174
195
  export interface BusinessControllerParams {
175
196
  key?: string | number;
@@ -189,7 +210,12 @@ export interface BusinessControllerParams {
189
210
  businessDeliveryPrice?: number,
190
211
  businessDeliveryTime?: string,
191
212
  businessPickupTime?: string,
192
- businessDistance?: number
213
+ businessDistance?: number,
214
+ favoriteIds?: number[],
215
+ handleFavoriteBusiness?: any,
216
+ setFavoriteIds?: any;
217
+ handleUpdateBusinessList?: any;
218
+ enableIntersection?: boolean;
193
219
  }
194
220
  export interface BusinessProductsListingParams {
195
221
  navigation?: any;
@@ -212,6 +238,9 @@ export interface BusinessProductsListingParams {
212
238
  handleChangeCategory: (value: any) => {};
213
239
  setProductLogin?: () => {};
214
240
  updateProductModal?: (value: any) => {};
241
+ handleUpdateProducts?: any;
242
+ professionalSelected?: any;
243
+ handleChangeProfessionalSelected?: any;
215
244
  }
216
245
  export interface BusinessBasicInformationParams {
217
246
  navigation?: any;
@@ -256,18 +285,27 @@ export interface BusinessProductsListParams {
256
285
  setCategoriesLayout?: any,
257
286
  currentCart?: any,
258
287
  setSubcategoriesSelected?: any,
259
- subcategoriesSelected?: any,
260
- onClickCategory?: any,
261
- lazyLoadProductsRecommended?: boolean,
262
- isFiltMode?: boolean
288
+ subcategoriesSelected?: any,
289
+ onClickCategory?: any,
290
+ lazyLoadProductsRecommended?: boolean,
291
+ isFiltMode?: boolean,
292
+ handleUpdateProducts?: any,
293
+ navigation?: any;
294
+ previouslyProducts?: any;
263
295
  }
264
296
  export interface SingleProductCardParams {
265
- businessId: any,
297
+ businessId: any;
266
298
  product: any;
267
299
  isSoldOut: boolean;
268
300
  onProductClick: any;
269
301
  productAddedToCartLength: number;
270
- style?: ViewStyle
302
+ style?: ViewStyle;
303
+ categoryState?: any;
304
+ handleFavoriteProduct?: any;
305
+ handleUpdateProducts?: any;
306
+ enableIntersection?: boolean;
307
+ navigation?: any;
308
+ isPreviously?: any;
271
309
  }
272
310
  export interface BusinessInformationParams {
273
311
  navigation?: any,
@@ -301,6 +339,7 @@ export interface OrdersOptionParams {
301
339
  orderList?: any,
302
340
  franchiseId?: any,
303
341
  activeOrders?: boolean,
342
+ pastOrders?: boolean,
304
343
  pagination?: any,
305
344
  titleContent?: string,
306
345
  customArray?: Array<any>,
@@ -311,13 +350,25 @@ export interface OrdersOptionParams {
311
350
  loadOrders?: any,
312
351
  setOrderList?: any,
313
352
  preOrders?: boolean,
353
+ reorderState?: any,
354
+ handleReorder?: (orderId: number) => {},
314
355
  setOrdersLength?: ({ activeOrdersLength, previousOrdersLength }: { activeOrdersLength: number, previousOrdersLength: number }) => void,
315
356
  ordersLength: { activeOrdersLength: number, previousOrdersLength: number },
316
357
  setSelectedOrderId?: any,
317
358
  setOpenMessges?: any,
318
359
  loadMoreStatus?: boolean,
319
360
  refreshOrders?: boolean,
320
- setRefreshOrders?: (value : boolean) => void
361
+ setRefreshOrders?: (value: boolean) => void,
362
+ handleUpdateOrderList?: (orderId: number, changes: any) => {},
363
+ isBusiness?: boolean,
364
+ isProducts?: boolean,
365
+ businessOrderIds?: any,
366
+ products?: any,
367
+ businessesSearchList?: any,
368
+ hideOrders?: boolean,
369
+ BusinessControllerSkeletons?: any,
370
+ businessPaginationProps?: any,
371
+ businesses?: any
321
372
  }
322
373
  export interface ActiveOrdersParams {
323
374
  orders?: any,
@@ -330,7 +381,8 @@ export interface ActiveOrdersParams {
330
381
  loadMoreOrders?: () => {},
331
382
  onNavigationRedirect?: (route: string, params?: any) => {},
332
383
  isMessageView?: boolean,
333
- handleClickOrder?: any
384
+ handleClickOrder?: any,
385
+ handleUpdateOrderList?: (orderId: number, changes: any) => {}
334
386
  }
335
387
  export interface PreviousOrdersParams {
336
388
  orders?: any,
@@ -339,8 +391,9 @@ export interface PreviousOrdersParams {
339
391
  orderID?: number
340
392
  reorderLoading?: boolean,
341
393
  loadMoreOrders?: () => {},
342
- handleReorder: (order: any) => {},
394
+ handleReorder?: (orderId: number) => {},
343
395
  onNavigationRedirect?: (route: string, params?: any) => {}
396
+ handleUpdateOrderList?: (orderId: number, changes: any) => {}
344
397
  }
345
398
  export interface OrderDetailsParams {
346
399
  navigation?: any,
@@ -372,25 +425,26 @@ export interface ProductItemAccordionParams {
372
425
  isFromCheckout?: any
373
426
  }
374
427
  export interface ReviewOrderParams {
375
- order?: { id: number, businessId: number, logo: string, driver: any, products: Array<any>, review: any, user_review: any },
376
- stars?: any,
377
- handleChangeInput?: any,
378
- handleChangeRating?: any,
379
- handleSendReview?: any,
380
- formState?: any,
381
- navigation?: any,
382
- setIsReviewed?: (isReviewed: boolean) => {},
383
- handleReviewState?: any,
384
- setStars?: any,
385
- onNavigationRedirect?: any
428
+ order?: { id: number, business_id: number, logo: string, driver: any, products: Array<any>, review: any, user_review: any };
429
+ stars?: any;
430
+ defaultStar?: number;
431
+ handleChangeInput?: any;
432
+ handleChangeRating?: any;
433
+ handleSendReview?: any;
434
+ formState?: any;
435
+ navigation?: any;
436
+ setIsReviewed?: (isReviewed: boolean) => void;
437
+ handleReviewState?: any;
438
+ setStars?: any;
439
+ onNavigationRedirect?: any;
386
440
  }
387
441
  export interface ReviewProductParams {
388
442
  navigation?: any,
389
443
  onNavigationRedirect?: any,
390
- order?: { orderId: number, businessId: number, logo: string, driver: any, products: Array<any>, review: any, user_review: any },
444
+ order?: { orderId: number, business_id: number, logo: string, driver: any, products: Array<any>, review: any, user_review: any },
391
445
  formState?: any,
392
446
  handleChangeFormState?: any,
393
- handleSendProductReview?: any
447
+ handleSendProductReview?: any;
394
448
  }
395
449
  export interface SingleProductReviewParams {
396
450
  product: any,
@@ -400,12 +454,12 @@ export interface SingleProductReviewParams {
400
454
  export interface ReviewDriverParams {
401
455
  navigation?: any,
402
456
  onNavigationRedirect?: any,
403
- order?: { orderId: number, businessId: number, logo: string, driver: any, products: Array<any>, review: any, user_review: any },
457
+ order?: { orderId: number, business_id: number, logo: string, driver: any, products: Array<any>, review: any, user_review: any },
404
458
  formState?: any,
405
459
  setIsDriverReviewed?: (isReviewed: boolean) => {},
406
460
  dirverReviews?: any,
407
461
  setDriverReviews?: any,
408
- handleSendDriverReview?: any
462
+ handleSendDriverReview?: any;
409
463
  }
410
464
  export interface MessagesParams {
411
465
  type?: string,
@@ -503,7 +557,9 @@ export interface OrderTypeSelectParams {
503
557
  defaultValue?: number;
504
558
  configTypes?: Array<any>;
505
559
  orderTypes: Array<any>;
506
- setOrderTypeValue?: (value : number) => any
560
+ setOrderTypeValue?: (value: number) => any,
561
+ isChewLayout?: boolean;
562
+ chewOrderTypes?: any;
507
563
  }
508
564
  export interface UpsellingProductsParams {
509
565
  isCustomMode?: boolean;
@@ -579,6 +635,9 @@ export interface BusinessSearchParams {
579
635
  setFilters: (filters: any) => void,
580
636
  lazySearch?: boolean,
581
637
  brandList?: any;
638
+ onNavigationRedirect?: any,
639
+ handleUpdateProducts: any,
640
+ handleUpdateBusinessList?: any;
582
641
  }
583
642
 
584
643
  export interface NoNetworkParams {
@@ -586,34 +645,125 @@ export interface NoNetworkParams {
586
645
  }
587
646
 
588
647
  export interface PlaceSpotParams {
589
- isOpenPlaceSpot?: boolean,
648
+ isCheckout?: any,
649
+ isInputMode?: any,
590
650
  cart?: any,
651
+ spotNumberDefault?: any,
652
+ vehicleDefault?: any,
653
+ spotNumber?: any,
654
+ setSpotNumber?: any,
655
+ orderTypes?: any,
591
656
  placesState?: any,
592
- handleChangePlace?: any,
593
- getPlacesList?: any,
594
- setOpenPlaceModal?: any
657
+ handleChangePlace? : any,
658
+ spotState?: any,
659
+ vehicle?: any,
660
+ setVehicle?: any,
661
+ handleChangeSpot?: any
595
662
  }
596
663
 
597
664
  export interface PromotionParams {
598
665
  navigation: any,
599
- offersState: any,
600
- handleSearchValue: any,
601
- searchValue: string,
602
- offerSelected: any,
603
- setOfferSelected: any,
666
+ offersState: any,
667
+ handleSearchValue: any,
668
+ searchValue: string,
669
+ offerSelected: any,
670
+ setOfferSelected: any,
671
+ loadOffers: any
604
672
  }
605
673
  export interface SessionsParams {
606
674
  navigation: any,
607
675
  sessionsList: any,
608
- actionState: any,
609
- handleDeleteSession: any,
610
- handleDeleteAllSessions: any
676
+ actionState: any,
677
+ handleDeleteSession: any,
678
+ handleDeleteAllSessions: any
611
679
  }
612
680
 
613
681
  export interface otpParams {
614
682
  willVerifyOtpState: boolean,
615
- setWillVerifyOtpState: (val : boolean) => void,
683
+ setWillVerifyOtpState: (val: boolean) => void,
616
684
  onSubmit: () => void,
617
- handleLoginOtp: (code : string) => void,
618
- setAlertState: any
685
+ handleLoginOtp: (code: string) => void,
686
+ setAlertState: any;
687
+ pinCount: number;
688
+ }
689
+
690
+ export interface FavoriteParams {
691
+ favoriteList: any,
692
+ handleUpdateFavoriteList: (id: number, changes: any) => {},
693
+ pagination: any,
694
+ getFavoriteList: (value: number) => {},
695
+ navigation?: any,
696
+ onNavigationRedirect?: (route: string, params?: any) => {},
697
+ reorderState?: any,
698
+ handleReorder?: (orderId: number) => {},
699
+ isOrder?: boolean,
700
+ isProduct?: boolean,
701
+ isBusiness?: boolean
702
+ }
703
+
704
+ export interface SingleOrderCardParams {
705
+ order: any,
706
+ reorderLoading: any,
707
+ handleReorder?: (value: any) => {},
708
+ getOrderStatus: any,
709
+ handleFavoriteOrder?: (value: boolean) => {},
710
+ onNavigationRedirect?: (route: string, params?: any) => {},
711
+ pastOrders: any,
712
+ isMessageView?: any,
713
+ handleClickOrder: (value: any) => {},
714
+ handleRemoveCart: () => {},
715
+ cartState: any
716
+ }
717
+
718
+ export interface PreviousBusinessOrderedParams {
719
+ navigation?: any,
720
+ businessesList?: any,
721
+ setBusinessLoading?: any,
722
+ businessId?: number,
723
+ onNavigationRedirect?: any,
724
+ isBusinessesSearchList?: any,
725
+ businessLoading?: boolean,
726
+ businesses?: any
727
+ }
728
+
729
+ export interface ServiceFormParams {
730
+ navigation?: any,
731
+ professionalSelected: any,
732
+ product: any,
733
+ handleSave: (value?: any) => {}
734
+ productCart?: any
735
+ isSoldOut: boolean,
736
+ maxProductQuantity: any,
737
+ businessSlug?: string,
738
+ onClose: any,
739
+ professionalList: any
740
+ }
741
+
742
+ export interface ProfessionalFilterParams {
743
+ professionals?: any,
744
+ professionalSelected?: any,
745
+ handleChangeProfessionalSelected: any
746
+ }
747
+
748
+ export interface ProfessionalProfileParams {
749
+ professional: any,
750
+ handleChangeProfessionalSelected: any,
751
+ onClose: any
752
+ }
753
+
754
+ export interface OrderItAgainParams {
755
+ onProductClick: any,
756
+ productList: any,
757
+ businessId: any,
758
+ categoryState: any,
759
+ currentCart: any,
760
+ handleUpdateProducts: any,
761
+ navigation: any,
762
+ searchValue?: string
763
+ }
764
+
765
+ export interface PreviousProductsOrderedParams {
766
+ products?: any,
767
+ onProductClick?: any,
768
+ isBusinessesSearchList?: boolean
619
769
  }
@@ -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}>