@kiosinc/commons-rn 0.1.85 → 0.1.86

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 (398) hide show
  1. package/lib/commonjs/api/authentication.js.map +1 -0
  2. package/lib/commonjs/api/customer.js.map +1 -1
  3. package/lib/commonjs/assets/icons/alert.svg +4 -0
  4. package/lib/commonjs/components/Alert.js +1 -1
  5. package/lib/commonjs/components/Alert.js.map +1 -1
  6. package/lib/commonjs/components/SelectionDialog.js +1 -1
  7. package/lib/commonjs/components/SelectionDialog.js.map +1 -1
  8. package/lib/commonjs/components/Snackbar.js +1 -1
  9. package/lib/commonjs/components/Snackbar.js.map +1 -1
  10. package/lib/commonjs/helpers/index.js +13 -0
  11. package/lib/commonjs/helpers/index.js.map +1 -0
  12. package/lib/commonjs/hooks/index.js +69 -0
  13. package/lib/commonjs/hooks/index.js.map +1 -0
  14. package/lib/commonjs/hooks/queryKeys.js.map +1 -0
  15. package/lib/commonjs/hooks/useAppVersionCheck.js +9 -5
  16. package/lib/commonjs/hooks/useAppVersionCheck.js.map +1 -1
  17. package/lib/commonjs/{auth/hooks/useAuthentication.js → hooks/useAuth.js} +18 -18
  18. package/lib/commonjs/hooks/useAuth.js.map +1 -0
  19. package/lib/commonjs/{auth/hooks → hooks}/useAuthenticateRequests.js +1 -1
  20. package/lib/commonjs/hooks/useAuthenticateRequests.js.map +1 -0
  21. package/lib/commonjs/hooks/useBusinesses.js.map +1 -0
  22. package/lib/commonjs/{selectBusiness → hooks}/useCreateBusiness.js +1 -1
  23. package/lib/commonjs/hooks/useCreateBusiness.js.map +1 -0
  24. package/lib/commonjs/hooks/useCustomer.js +1 -1
  25. package/lib/commonjs/hooks/useCustomer.js.map +1 -1
  26. package/lib/commonjs/{auth/hooks → hooks}/useDeactivateAccount.js +3 -3
  27. package/lib/commonjs/hooks/useDeactivateAccount.js.map +1 -0
  28. package/lib/commonjs/{auth/hooks → hooks}/useLogout.js +3 -3
  29. package/lib/commonjs/hooks/useLogout.js.map +1 -0
  30. package/lib/commonjs/{auth/hooks → hooks}/useTermsOfService.js +4 -5
  31. package/lib/commonjs/hooks/useTermsOfService.js.map +1 -0
  32. package/lib/commonjs/index.js +50 -97
  33. package/lib/commonjs/index.js.map +1 -1
  34. package/lib/commonjs/localization/index.js +12 -0
  35. package/lib/commonjs/localization/index.js.map +1 -0
  36. package/lib/commonjs/localization/translations/en.json +87 -0
  37. package/lib/commonjs/providers/authentication/AuthenticationProvider.js.map +1 -0
  38. package/lib/commonjs/providers/authentication/actions/authentication.actions.js.map +1 -0
  39. package/lib/commonjs/providers/authentication/reducer/authentication.reducer.js.map +1 -0
  40. package/lib/commonjs/providers/authentication/types/authentication.types.js.map +1 -0
  41. package/lib/commonjs/providers/index.js +32 -0
  42. package/lib/commonjs/providers/index.js.map +1 -0
  43. package/lib/commonjs/{auth/screens → screens/Auth}/ChangePassword.js +9 -9
  44. package/lib/commonjs/{auth/screens → screens/Auth}/ChangePassword.js.map +1 -1
  45. package/lib/commonjs/{auth/screens → screens/Auth}/Login.js +2 -2
  46. package/lib/commonjs/{auth/screens → screens/Auth}/Login.js.map +1 -1
  47. package/lib/commonjs/{auth/screens → screens/Auth}/LoginWithEmail.js +7 -7
  48. package/lib/commonjs/{auth/screens → screens/Auth}/LoginWithEmail.js.map +1 -1
  49. package/lib/commonjs/{auth/screens → screens/Auth}/LoginWithPhoneNumber.js +5 -5
  50. package/lib/commonjs/screens/Auth/LoginWithPhoneNumber.js.map +1 -0
  51. package/lib/commonjs/{auth/screens → screens/Auth}/ResetPassword.js +41 -9
  52. package/lib/commonjs/screens/Auth/ResetPassword.js.map +1 -0
  53. package/lib/commonjs/{auth/screens → screens/Auth}/ResetPasswordInstructionsSent.js +2 -2
  54. package/lib/commonjs/{auth/screens → screens/Auth}/ResetPasswordInstructionsSent.js.map +1 -1
  55. package/lib/commonjs/{auth/screens → screens/Auth}/SignUp.js +12 -13
  56. package/lib/commonjs/screens/Auth/SignUp.js.map +1 -0
  57. package/lib/commonjs/{auth/screens → screens/Auth}/SignUpPassword.js +7 -7
  58. package/lib/commonjs/screens/Auth/SignUpPassword.js.map +1 -0
  59. package/lib/commonjs/{auth/screens → screens/Auth}/VerifyPhoneNumber.js +6 -6
  60. package/lib/commonjs/screens/Auth/VerifyPhoneNumber.js.map +1 -0
  61. package/lib/commonjs/{auth/screens → screens/Auth}/VerifyPhoneNumberForLogin.js +6 -6
  62. package/lib/commonjs/screens/Auth/VerifyPhoneNumberForLogin.js.map +1 -0
  63. package/lib/commonjs/{auth/screens/index.js → screens/Auth/navigators.js} +1 -1
  64. package/lib/commonjs/screens/Auth/navigators.js.map +1 -0
  65. package/lib/commonjs/{auth/screens → screens/Auth}/validators.js +7 -7
  66. package/lib/commonjs/screens/Auth/validators.js.map +1 -0
  67. package/lib/commonjs/screens/SavedCards/CardRow.js +4 -4
  68. package/lib/commonjs/screens/SavedCards/CardRow.js.map +1 -1
  69. package/lib/commonjs/screens/SavedCards/SavedCards.js +5 -5
  70. package/lib/commonjs/screens/SavedCards/SavedCards.js.map +1 -1
  71. package/lib/commonjs/{selectBusiness → screens/SelectBusiness}/CreateBusinessBottomSheet.js +7 -7
  72. package/lib/commonjs/screens/SelectBusiness/CreateBusinessBottomSheet.js.map +1 -0
  73. package/lib/commonjs/{selectBusiness → screens/SelectBusiness}/SelectBusiness.js +12 -13
  74. package/lib/commonjs/screens/SelectBusiness/SelectBusiness.js.map +1 -0
  75. package/lib/commonjs/{auth/screens → screens/TermsOfService}/TermsOfService.js +9 -9
  76. package/lib/commonjs/screens/TermsOfService/TermsOfService.js.map +1 -0
  77. package/lib/commonjs/screens/index.js +40 -0
  78. package/lib/commonjs/screens/index.js.map +1 -0
  79. package/lib/commonjs/utils/index.js +34 -0
  80. package/lib/commonjs/utils/index.js.map +1 -1
  81. package/lib/module/api/authentication.js.map +1 -0
  82. package/lib/module/api/customer.js.map +1 -1
  83. package/lib/module/assets/icons/alert.svg +4 -0
  84. package/lib/module/components/Alert.js +1 -1
  85. package/lib/module/components/Alert.js.map +1 -1
  86. package/lib/module/components/SelectionDialog.js +1 -1
  87. package/lib/module/components/SelectionDialog.js.map +1 -1
  88. package/lib/module/components/Snackbar.js +1 -1
  89. package/lib/module/components/Snackbar.js.map +1 -1
  90. package/lib/module/helpers/index.js +2 -0
  91. package/lib/module/helpers/index.js.map +1 -0
  92. package/lib/module/hooks/index.js +10 -0
  93. package/lib/module/hooks/index.js.map +1 -0
  94. package/lib/module/hooks/queryKeys.js.map +1 -0
  95. package/lib/module/hooks/useAppVersionCheck.js +9 -5
  96. package/lib/module/hooks/useAppVersionCheck.js.map +1 -1
  97. package/lib/module/{auth/hooks/useAuthentication.js → hooks/useAuth.js} +10 -10
  98. package/lib/module/hooks/useAuth.js.map +1 -0
  99. package/lib/module/{auth/hooks → hooks}/useAuthenticateRequests.js +1 -1
  100. package/lib/module/hooks/useAuthenticateRequests.js.map +1 -0
  101. package/lib/module/hooks/useBusinesses.js.map +1 -0
  102. package/lib/module/{selectBusiness → hooks}/useCreateBusiness.js +1 -1
  103. package/lib/module/hooks/useCreateBusiness.js.map +1 -0
  104. package/lib/module/hooks/useCustomer.js +1 -1
  105. package/lib/module/hooks/useCustomer.js.map +1 -1
  106. package/lib/module/{auth/hooks → hooks}/useDeactivateAccount.js +3 -3
  107. package/lib/module/hooks/useDeactivateAccount.js.map +1 -0
  108. package/lib/module/{auth/hooks → hooks}/useLogout.js +2 -2
  109. package/lib/module/hooks/useLogout.js.map +1 -0
  110. package/lib/module/{auth/hooks → hooks}/useTermsOfService.js +4 -4
  111. package/lib/module/hooks/useTermsOfService.js.map +1 -0
  112. package/lib/module/index.js +6 -11
  113. package/lib/module/index.js.map +1 -1
  114. package/lib/module/localization/index.js +5 -0
  115. package/lib/module/localization/index.js.map +1 -0
  116. package/lib/module/localization/translations/en.json +87 -0
  117. package/lib/module/providers/authentication/AuthenticationProvider.js.map +1 -0
  118. package/lib/module/providers/authentication/actions/authentication.actions.js.map +1 -0
  119. package/lib/module/providers/authentication/reducer/authentication.reducer.js.map +1 -0
  120. package/lib/module/providers/authentication/types/authentication.types.js.map +1 -0
  121. package/lib/module/providers/index.js +3 -0
  122. package/lib/module/providers/index.js.map +1 -0
  123. package/lib/module/{auth/screens → screens/Auth}/ChangePassword.js +9 -9
  124. package/lib/module/{auth/screens → screens/Auth}/ChangePassword.js.map +1 -1
  125. package/lib/module/{auth/screens → screens/Auth}/Login.js +2 -2
  126. package/lib/module/{auth/screens → screens/Auth}/Login.js.map +1 -1
  127. package/lib/module/{auth/screens → screens/Auth}/LoginWithEmail.js +7 -7
  128. package/lib/module/{auth/screens → screens/Auth}/LoginWithEmail.js.map +1 -1
  129. package/lib/module/{auth/screens → screens/Auth}/LoginWithPhoneNumber.js +5 -5
  130. package/lib/module/screens/Auth/LoginWithPhoneNumber.js.map +1 -0
  131. package/lib/module/{auth/screens → screens/Auth}/ResetPassword.js +43 -11
  132. package/lib/module/screens/Auth/ResetPassword.js.map +1 -0
  133. package/lib/module/{auth/screens → screens/Auth}/ResetPasswordInstructionsSent.js +2 -2
  134. package/lib/module/{auth/screens → screens/Auth}/ResetPasswordInstructionsSent.js.map +1 -1
  135. package/lib/module/{auth/screens → screens/Auth}/SignUp.js +11 -12
  136. package/lib/module/screens/Auth/SignUp.js.map +1 -0
  137. package/lib/module/{auth/screens → screens/Auth}/SignUpPassword.js +7 -7
  138. package/lib/module/screens/Auth/SignUpPassword.js.map +1 -0
  139. package/lib/module/{auth/screens → screens/Auth}/VerifyPhoneNumber.js +6 -6
  140. package/lib/module/screens/Auth/VerifyPhoneNumber.js.map +1 -0
  141. package/lib/module/{auth/screens → screens/Auth}/VerifyPhoneNumberForLogin.js +6 -6
  142. package/lib/module/screens/Auth/VerifyPhoneNumberForLogin.js.map +1 -0
  143. package/lib/module/{auth/screens/index.js → screens/Auth/navigators.js} +1 -1
  144. package/lib/module/screens/Auth/navigators.js.map +1 -0
  145. package/lib/module/screens/Auth/validators.js +45 -0
  146. package/lib/module/screens/Auth/validators.js.map +1 -0
  147. package/lib/module/screens/SavedCards/CardRow.js +4 -4
  148. package/lib/module/screens/SavedCards/CardRow.js.map +1 -1
  149. package/lib/module/screens/SavedCards/SavedCards.js +5 -5
  150. package/lib/module/screens/SavedCards/SavedCards.js.map +1 -1
  151. package/lib/module/{selectBusiness → screens/SelectBusiness}/CreateBusinessBottomSheet.js +6 -6
  152. package/lib/module/screens/SelectBusiness/CreateBusinessBottomSheet.js.map +1 -0
  153. package/lib/module/{selectBusiness → screens/SelectBusiness}/SelectBusiness.js +9 -10
  154. package/lib/module/screens/SelectBusiness/SelectBusiness.js.map +1 -0
  155. package/lib/module/{auth/screens → screens/TermsOfService}/TermsOfService.js +8 -8
  156. package/lib/module/screens/TermsOfService/TermsOfService.js.map +1 -0
  157. package/lib/module/screens/index.js +5 -0
  158. package/lib/module/screens/index.js.map +1 -0
  159. package/lib/module/utils/index.js +4 -0
  160. package/lib/module/utils/index.js.map +1 -1
  161. package/lib/typescript/src/{auth/api → api}/authentication.d.ts +6 -2
  162. package/lib/typescript/src/api/authentication.d.ts.map +1 -0
  163. package/lib/typescript/src/api/customer.d.ts +6 -2
  164. package/lib/typescript/src/api/customer.d.ts.map +1 -1
  165. package/lib/typescript/src/helpers/index.d.ts +2 -0
  166. package/lib/typescript/src/helpers/index.d.ts.map +1 -0
  167. package/lib/typescript/src/hooks/index.d.ts +10 -0
  168. package/lib/typescript/src/hooks/index.d.ts.map +1 -0
  169. package/lib/typescript/src/hooks/queryKeys.d.ts.map +1 -0
  170. package/lib/typescript/src/hooks/useAppVersionCheck.d.ts.map +1 -1
  171. package/lib/typescript/src/{auth/hooks/useAuthentication.d.ts → hooks/useAuth.d.ts} +2 -2
  172. package/lib/typescript/src/hooks/useAuth.d.ts.map +1 -0
  173. package/lib/typescript/src/hooks/useAuthenticateRequests.d.ts.map +1 -0
  174. package/lib/typescript/src/hooks/useBusinesses.d.ts.map +1 -0
  175. package/lib/typescript/src/hooks/useCreateBusiness.d.ts.map +1 -0
  176. package/lib/typescript/src/hooks/useCustomer.d.ts +6 -2
  177. package/lib/typescript/src/hooks/useCustomer.d.ts.map +1 -1
  178. package/lib/typescript/src/hooks/useDeactivateAccount.d.ts.map +1 -0
  179. package/lib/typescript/src/hooks/useLogout.d.ts.map +1 -0
  180. package/lib/typescript/src/hooks/useTermsOfService.d.ts.map +1 -0
  181. package/lib/typescript/src/index.d.ts +6 -11
  182. package/lib/typescript/src/index.d.ts.map +1 -1
  183. package/lib/typescript/src/localization/index.d.ts +90 -0
  184. package/lib/typescript/src/localization/index.d.ts.map +1 -0
  185. package/lib/typescript/src/providers/authentication/AuthenticationProvider.d.ts.map +1 -0
  186. package/lib/typescript/src/providers/authentication/actions/authentication.actions.d.ts.map +1 -0
  187. package/lib/typescript/src/providers/authentication/reducer/authentication.reducer.d.ts.map +1 -0
  188. package/lib/typescript/src/providers/authentication/types/authentication.types.d.ts.map +1 -0
  189. package/lib/typescript/src/providers/index.d.ts +3 -0
  190. package/lib/typescript/src/providers/index.d.ts.map +1 -0
  191. package/lib/typescript/src/{auth/screens → screens/Auth}/ChangePassword.d.ts.map +1 -1
  192. package/lib/typescript/src/screens/Auth/Login.d.ts.map +1 -0
  193. package/lib/typescript/src/screens/Auth/LoginWithEmail.d.ts.map +1 -0
  194. package/lib/typescript/src/{auth/screens → screens/Auth}/LoginWithPhoneNumber.d.ts.map +1 -1
  195. package/lib/typescript/src/screens/Auth/ResetPassword.d.ts.map +1 -0
  196. package/lib/typescript/src/{auth/screens → screens/Auth}/ResetPasswordInstructionsSent.d.ts.map +1 -1
  197. package/lib/typescript/src/screens/Auth/SignUp.d.ts.map +1 -0
  198. package/lib/typescript/src/{auth/screens → screens/Auth}/SignUpPassword.d.ts.map +1 -1
  199. package/lib/typescript/src/{auth/screens → screens/Auth}/VerifyPhoneNumber.d.ts.map +1 -1
  200. package/lib/typescript/src/{auth/screens → screens/Auth}/VerifyPhoneNumberForLogin.d.ts.map +1 -1
  201. package/lib/typescript/src/{auth/screens/index.d.ts → screens/Auth/navigators.d.ts} +1 -1
  202. package/lib/typescript/src/screens/Auth/navigators.d.ts.map +1 -0
  203. package/lib/typescript/src/{auth/screens → screens/Auth}/validators.d.ts.map +1 -1
  204. package/lib/typescript/src/screens/SavedCards/CardRow.d.ts +1 -1
  205. package/lib/typescript/src/screens/SavedCards/CardRow.d.ts.map +1 -1
  206. package/lib/typescript/src/screens/SavedCards/SavedCards.d.ts +1 -1
  207. package/lib/typescript/src/screens/SavedCards/SavedCards.d.ts.map +1 -1
  208. package/lib/typescript/src/screens/SelectBusiness/CreateBusinessBottomSheet.d.ts.map +1 -0
  209. package/lib/typescript/src/screens/SelectBusiness/SelectBusiness.d.ts.map +1 -0
  210. package/lib/typescript/src/screens/TermsOfService/TermsOfService.d.ts.map +1 -0
  211. package/lib/typescript/src/screens/index.d.ts +5 -0
  212. package/lib/typescript/src/screens/index.d.ts.map +1 -0
  213. package/lib/typescript/src/utils/checkout.d.ts +1 -1
  214. package/lib/typescript/src/utils/checkout.d.ts.map +1 -1
  215. package/lib/typescript/src/utils/index.d.ts +4 -0
  216. package/lib/typescript/src/utils/index.d.ts.map +1 -1
  217. package/package.json +2 -1
  218. package/src/{auth/api → api}/authentication.ts +6 -2
  219. package/src/api/customer.ts +6 -4
  220. package/src/assets/icons/alert.svg +4 -0
  221. package/src/components/Alert.tsx +1 -1
  222. package/src/components/SelectionDialog.tsx +1 -1
  223. package/src/components/Snackbar.tsx +1 -1
  224. package/src/helpers/index.ts +1 -0
  225. package/src/hooks/index.ts +9 -0
  226. package/src/hooks/useAppVersionCheck.ts +7 -6
  227. package/src/{auth/hooks/useAuthentication.ts → hooks/useAuth.ts} +9 -12
  228. package/src/{auth/hooks → hooks}/useAuthenticateRequests.ts +1 -1
  229. package/src/{selectBusiness → hooks}/useCreateBusiness.ts +1 -1
  230. package/src/hooks/useCustomer.ts +7 -7
  231. package/src/{auth/hooks → hooks}/useDeactivateAccount.ts +3 -3
  232. package/src/{auth/hooks → hooks}/useLogout.ts +2 -2
  233. package/src/{auth/hooks → hooks}/useTermsOfService.ts +4 -4
  234. package/src/index.tsx +6 -22
  235. package/src/localization/index.ts +4 -0
  236. package/src/localization/translations/en.json +87 -0
  237. package/src/providers/index.ts +6 -0
  238. package/src/{auth/screens → screens/Auth}/ChangePassword.tsx +13 -14
  239. package/src/{auth/screens → screens/Auth}/Login.tsx +2 -2
  240. package/src/{auth/screens → screens/Auth}/LoginWithEmail.tsx +7 -7
  241. package/src/{auth/screens → screens/Auth}/LoginWithPhoneNumber.tsx +5 -5
  242. package/src/{auth/screens → screens/Auth}/ResetPassword.tsx +46 -8
  243. package/src/{auth/screens → screens/Auth}/ResetPasswordInstructionsSent.tsx +2 -2
  244. package/src/{auth/screens → screens/Auth}/SignUp.tsx +11 -12
  245. package/src/{auth/screens → screens/Auth}/SignUpPassword.tsx +11 -11
  246. package/src/{auth/screens → screens/Auth}/VerifyPhoneNumber.tsx +6 -6
  247. package/src/{auth/screens → screens/Auth}/VerifyPhoneNumberForLogin.tsx +6 -7
  248. package/src/{auth/screens → screens/Auth}/validators.ts +20 -20
  249. package/src/screens/SavedCards/CardRow.tsx +5 -5
  250. package/src/screens/SavedCards/SavedCards.tsx +6 -6
  251. package/src/{selectBusiness → screens/SelectBusiness}/CreateBusinessBottomSheet.tsx +6 -6
  252. package/src/{selectBusiness → screens/SelectBusiness}/SelectBusiness.tsx +9 -10
  253. package/src/{auth/screens → screens/TermsOfService}/TermsOfService.tsx +10 -8
  254. package/src/screens/index.ts +4 -0
  255. package/src/utils/checkout.ts +1 -1
  256. package/src/utils/index.ts +11 -0
  257. package/lib/commonjs/auth/api/authentication.js.map +0 -1
  258. package/lib/commonjs/auth/hooks/useAuthenticateRequests.js.map +0 -1
  259. package/lib/commonjs/auth/hooks/useAuthentication.js.map +0 -1
  260. package/lib/commonjs/auth/hooks/useDeactivateAccount.js.map +0 -1
  261. package/lib/commonjs/auth/hooks/useLogout.js.map +0 -1
  262. package/lib/commonjs/auth/hooks/useTermsOfService.js.map +0 -1
  263. package/lib/commonjs/auth/index.js +0 -65
  264. package/lib/commonjs/auth/index.js.map +0 -1
  265. package/lib/commonjs/auth/providers/authentication/AuthenticationProvider.js.map +0 -1
  266. package/lib/commonjs/auth/providers/authentication/actions/authentication.actions.js.map +0 -1
  267. package/lib/commonjs/auth/providers/authentication/index.js +0 -50
  268. package/lib/commonjs/auth/providers/authentication/index.js.map +0 -1
  269. package/lib/commonjs/auth/providers/authentication/reducer/authentication.reducer.js.map +0 -1
  270. package/lib/commonjs/auth/providers/authentication/types/authentication.types.js.map +0 -1
  271. package/lib/commonjs/auth/screens/LoginWithPhoneNumber.js.map +0 -1
  272. package/lib/commonjs/auth/screens/ResetPassword.js.map +0 -1
  273. package/lib/commonjs/auth/screens/SignUp.js.map +0 -1
  274. package/lib/commonjs/auth/screens/SignUpPassword.js.map +0 -1
  275. package/lib/commonjs/auth/screens/TermsOfService.js.map +0 -1
  276. package/lib/commonjs/auth/screens/VerifyPhoneNumber.js.map +0 -1
  277. package/lib/commonjs/auth/screens/VerifyPhoneNumberForLogin.js.map +0 -1
  278. package/lib/commonjs/auth/screens/index.js.map +0 -1
  279. package/lib/commonjs/auth/screens/validators.js.map +0 -1
  280. package/lib/commonjs/selectBusiness/CreateBusinessBottomSheet.js.map +0 -1
  281. package/lib/commonjs/selectBusiness/SelectBusiness.js.map +0 -1
  282. package/lib/commonjs/selectBusiness/index.js +0 -20
  283. package/lib/commonjs/selectBusiness/index.js.map +0 -1
  284. package/lib/commonjs/selectBusiness/queryKeys.js.map +0 -1
  285. package/lib/commonjs/selectBusiness/useBusinesses.js.map +0 -1
  286. package/lib/commonjs/selectBusiness/useCreateBusiness.js.map +0 -1
  287. package/lib/commonjs/types/customer.d.js +0 -7
  288. package/lib/commonjs/types/customer.d.js.map +0 -1
  289. package/lib/module/auth/api/authentication.js.map +0 -1
  290. package/lib/module/auth/hooks/useAuthenticateRequests.js.map +0 -1
  291. package/lib/module/auth/hooks/useAuthentication.js.map +0 -1
  292. package/lib/module/auth/hooks/useDeactivateAccount.js.map +0 -1
  293. package/lib/module/auth/hooks/useLogout.js.map +0 -1
  294. package/lib/module/auth/hooks/useTermsOfService.js.map +0 -1
  295. package/lib/module/auth/index.js +0 -7
  296. package/lib/module/auth/index.js.map +0 -1
  297. package/lib/module/auth/providers/authentication/AuthenticationProvider.js.map +0 -1
  298. package/lib/module/auth/providers/authentication/actions/authentication.actions.js.map +0 -1
  299. package/lib/module/auth/providers/authentication/index.js +0 -5
  300. package/lib/module/auth/providers/authentication/index.js.map +0 -1
  301. package/lib/module/auth/providers/authentication/reducer/authentication.reducer.js.map +0 -1
  302. package/lib/module/auth/providers/authentication/types/authentication.types.js.map +0 -1
  303. package/lib/module/auth/screens/LoginWithPhoneNumber.js.map +0 -1
  304. package/lib/module/auth/screens/ResetPassword.js.map +0 -1
  305. package/lib/module/auth/screens/SignUp.js.map +0 -1
  306. package/lib/module/auth/screens/SignUpPassword.js.map +0 -1
  307. package/lib/module/auth/screens/TermsOfService.js.map +0 -1
  308. package/lib/module/auth/screens/VerifyPhoneNumber.js.map +0 -1
  309. package/lib/module/auth/screens/VerifyPhoneNumberForLogin.js.map +0 -1
  310. package/lib/module/auth/screens/index.js.map +0 -1
  311. package/lib/module/auth/screens/validators.js +0 -45
  312. package/lib/module/auth/screens/validators.js.map +0 -1
  313. package/lib/module/selectBusiness/CreateBusinessBottomSheet.js.map +0 -1
  314. package/lib/module/selectBusiness/SelectBusiness.js.map +0 -1
  315. package/lib/module/selectBusiness/index.js +0 -3
  316. package/lib/module/selectBusiness/index.js.map +0 -1
  317. package/lib/module/selectBusiness/queryKeys.js.map +0 -1
  318. package/lib/module/selectBusiness/useBusinesses.js.map +0 -1
  319. package/lib/module/selectBusiness/useCreateBusiness.js.map +0 -1
  320. package/lib/module/types/customer.d.js +0 -5
  321. package/lib/module/types/customer.d.js.map +0 -1
  322. package/lib/typescript/src/auth/api/authentication.d.ts.map +0 -1
  323. package/lib/typescript/src/auth/hooks/useAuthenticateRequests.d.ts.map +0 -1
  324. package/lib/typescript/src/auth/hooks/useAuthentication.d.ts.map +0 -1
  325. package/lib/typescript/src/auth/hooks/useDeactivateAccount.d.ts.map +0 -1
  326. package/lib/typescript/src/auth/hooks/useLogout.d.ts.map +0 -1
  327. package/lib/typescript/src/auth/hooks/useTermsOfService.d.ts.map +0 -1
  328. package/lib/typescript/src/auth/index.d.ts +0 -7
  329. package/lib/typescript/src/auth/index.d.ts.map +0 -1
  330. package/lib/typescript/src/auth/providers/authentication/AuthenticationProvider.d.ts.map +0 -1
  331. package/lib/typescript/src/auth/providers/authentication/actions/authentication.actions.d.ts.map +0 -1
  332. package/lib/typescript/src/auth/providers/authentication/index.d.ts +0 -5
  333. package/lib/typescript/src/auth/providers/authentication/index.d.ts.map +0 -1
  334. package/lib/typescript/src/auth/providers/authentication/reducer/authentication.reducer.d.ts.map +0 -1
  335. package/lib/typescript/src/auth/providers/authentication/types/authentication.types.d.ts.map +0 -1
  336. package/lib/typescript/src/auth/screens/Login.d.ts.map +0 -1
  337. package/lib/typescript/src/auth/screens/LoginWithEmail.d.ts.map +0 -1
  338. package/lib/typescript/src/auth/screens/ResetPassword.d.ts.map +0 -1
  339. package/lib/typescript/src/auth/screens/SignUp.d.ts.map +0 -1
  340. package/lib/typescript/src/auth/screens/TermsOfService.d.ts.map +0 -1
  341. package/lib/typescript/src/auth/screens/index.d.ts.map +0 -1
  342. package/lib/typescript/src/selectBusiness/CreateBusinessBottomSheet.d.ts.map +0 -1
  343. package/lib/typescript/src/selectBusiness/SelectBusiness.d.ts.map +0 -1
  344. package/lib/typescript/src/selectBusiness/index.d.ts +0 -3
  345. package/lib/typescript/src/selectBusiness/index.d.ts.map +0 -1
  346. package/lib/typescript/src/selectBusiness/queryKeys.d.ts.map +0 -1
  347. package/lib/typescript/src/selectBusiness/useBusinesses.d.ts.map +0 -1
  348. package/lib/typescript/src/selectBusiness/useCreateBusiness.d.ts.map +0 -1
  349. package/src/auth/index.ts +0 -10
  350. package/src/auth/providers/authentication/index.ts +0 -4
  351. package/src/selectBusiness/index.ts +0 -2
  352. package/src/types/customer.d.ts +0 -70
  353. /package/lib/commonjs/{auth/api → api}/authentication.js +0 -0
  354. /package/lib/commonjs/{selectBusiness → hooks}/queryKeys.js +0 -0
  355. /package/lib/commonjs/{selectBusiness → hooks}/useBusinesses.js +0 -0
  356. /package/lib/commonjs/{auth/providers → providers}/authentication/AuthenticationProvider.js +0 -0
  357. /package/lib/commonjs/{auth/providers → providers}/authentication/actions/authentication.actions.js +0 -0
  358. /package/lib/commonjs/{auth/providers → providers}/authentication/reducer/authentication.reducer.js +0 -0
  359. /package/lib/commonjs/{auth/providers → providers}/authentication/types/authentication.types.js +0 -0
  360. /package/lib/module/{auth/api → api}/authentication.js +0 -0
  361. /package/lib/module/{selectBusiness → hooks}/queryKeys.js +0 -0
  362. /package/lib/module/{selectBusiness → hooks}/useBusinesses.js +0 -0
  363. /package/lib/module/{auth/providers → providers}/authentication/AuthenticationProvider.js +0 -0
  364. /package/lib/module/{auth/providers → providers}/authentication/actions/authentication.actions.js +0 -0
  365. /package/lib/module/{auth/providers → providers}/authentication/reducer/authentication.reducer.js +0 -0
  366. /package/lib/module/{auth/providers → providers}/authentication/types/authentication.types.js +0 -0
  367. /package/lib/typescript/src/{selectBusiness → hooks}/queryKeys.d.ts +0 -0
  368. /package/lib/typescript/src/{auth/hooks → hooks}/useAuthenticateRequests.d.ts +0 -0
  369. /package/lib/typescript/src/{selectBusiness → hooks}/useBusinesses.d.ts +0 -0
  370. /package/lib/typescript/src/{selectBusiness → hooks}/useCreateBusiness.d.ts +0 -0
  371. /package/lib/typescript/src/{auth/hooks → hooks}/useDeactivateAccount.d.ts +0 -0
  372. /package/lib/typescript/src/{auth/hooks → hooks}/useLogout.d.ts +0 -0
  373. /package/lib/typescript/src/{auth/hooks → hooks}/useTermsOfService.d.ts +0 -0
  374. /package/lib/typescript/src/{auth/providers → providers}/authentication/AuthenticationProvider.d.ts +0 -0
  375. /package/lib/typescript/src/{auth/providers → providers}/authentication/actions/authentication.actions.d.ts +0 -0
  376. /package/lib/typescript/src/{auth/providers → providers}/authentication/reducer/authentication.reducer.d.ts +0 -0
  377. /package/lib/typescript/src/{auth/providers → providers}/authentication/types/authentication.types.d.ts +0 -0
  378. /package/lib/typescript/src/{auth/screens → screens/Auth}/ChangePassword.d.ts +0 -0
  379. /package/lib/typescript/src/{auth/screens → screens/Auth}/Login.d.ts +0 -0
  380. /package/lib/typescript/src/{auth/screens → screens/Auth}/LoginWithEmail.d.ts +0 -0
  381. /package/lib/typescript/src/{auth/screens → screens/Auth}/LoginWithPhoneNumber.d.ts +0 -0
  382. /package/lib/typescript/src/{auth/screens → screens/Auth}/ResetPassword.d.ts +0 -0
  383. /package/lib/typescript/src/{auth/screens → screens/Auth}/ResetPasswordInstructionsSent.d.ts +0 -0
  384. /package/lib/typescript/src/{auth/screens → screens/Auth}/SignUp.d.ts +0 -0
  385. /package/lib/typescript/src/{auth/screens → screens/Auth}/SignUpPassword.d.ts +0 -0
  386. /package/lib/typescript/src/{auth/screens → screens/Auth}/VerifyPhoneNumber.d.ts +0 -0
  387. /package/lib/typescript/src/{auth/screens → screens/Auth}/VerifyPhoneNumberForLogin.d.ts +0 -0
  388. /package/lib/typescript/src/{auth/screens → screens/Auth}/validators.d.ts +0 -0
  389. /package/lib/typescript/src/{selectBusiness → screens/SelectBusiness}/CreateBusinessBottomSheet.d.ts +0 -0
  390. /package/lib/typescript/src/{selectBusiness → screens/SelectBusiness}/SelectBusiness.d.ts +0 -0
  391. /package/lib/typescript/src/{auth/screens → screens/TermsOfService}/TermsOfService.d.ts +0 -0
  392. /package/src/{selectBusiness → hooks}/queryKeys.ts +0 -0
  393. /package/src/{selectBusiness → hooks}/useBusinesses.ts +0 -0
  394. /package/src/{auth/providers → providers}/authentication/AuthenticationProvider.tsx +0 -0
  395. /package/src/{auth/providers → providers}/authentication/actions/authentication.actions.ts +0 -0
  396. /package/src/{auth/providers → providers}/authentication/reducer/authentication.reducer.ts +0 -0
  397. /package/src/{auth/providers → providers}/authentication/types/authentication.types.ts +0 -0
  398. /package/src/{auth/screens/index.tsx → screens/Auth/navigators.tsx} +0 -0
@@ -14,7 +14,7 @@ import { useTranslation } from 'react-i18next';
14
14
  import { Controller, useForm } from 'react-hook-form';
15
15
  import { yupResolver } from '@hookform/resolvers/yup';
16
16
  import { verificationValidationSchema } from './validators';
17
- import { useAuthentication } from '../hooks/useAuthentication';
17
+ import { useAuth } from '../../hooks';
18
18
 
19
19
  type FormData = {
20
20
  code: string;
@@ -29,8 +29,7 @@ export const VerifyPhoneNumberForLogin: React.FC<
29
29
  > = ({ route }) => {
30
30
  const params = route.params as any;
31
31
  const { t } = useTranslation();
32
- const { useVerifyPhoneNumberForLogin, useConfirmPhoneNumber } =
33
- useAuthentication();
32
+ const { useVerifyPhoneNumberForLogin, useConfirmPhoneNumber } = useAuth();
34
33
 
35
34
  const { mutate: confirmCode, isLoading: isConfirmingCode } =
36
35
  useConfirmPhoneNumber();
@@ -59,7 +58,7 @@ export const VerifyPhoneNumberForLogin: React.FC<
59
58
  >
60
59
  <View alignItems="center">
61
60
  <Text pt="48" pb="8" textAlign="center" variant="titleLarge">
62
- {t('authentication.loginWithNumber')}
61
+ {t('commons.loginWithNumber')}
63
62
  </Text>
64
63
  <Text
65
64
  color="onSurfaceVariant"
@@ -67,7 +66,7 @@ export const VerifyPhoneNumberForLogin: React.FC<
67
66
  textAlign="center"
68
67
  variant="bodyLarge"
69
68
  >
70
- {t('authentication.codeSent', {
69
+ {t('commons.codeSent', {
71
70
  phoneNumber: params.phoneNumber,
72
71
  })}
73
72
  </Text>
@@ -92,7 +91,7 @@ export const VerifyPhoneNumberForLogin: React.FC<
92
91
  mode="contained"
93
92
  onPress={handleSubmit(onSubmit)}
94
93
  >
95
- {t('continue')}
94
+ {t('commons.continue')}
96
95
  </Button>
97
96
  <LinkButton
98
97
  disabled={isResendingCode || isConfirmingCode}
@@ -103,7 +102,7 @@ export const VerifyPhoneNumberForLogin: React.FC<
103
102
  resendCode(params as any);
104
103
  }}
105
104
  >
106
- {t('authentication.resendCode')}
105
+ {t('commons.resendCode')}
107
106
  </LinkButton>
108
107
  </KeyboardAvoidingView>
109
108
  </View>
@@ -5,51 +5,51 @@ import type { TFunction } from 'i18next';
5
5
  const displayName = (t: TFunction) =>
6
6
  yup
7
7
  .string()
8
- .required(t('authentication.displayNameRequired'))
9
- .label(t('authentication.displayNameRequired'));
8
+ .required(t('commons.displayNameRequired'))
9
+ .label(t('commons.displayNameRequired'));
10
10
 
11
11
  const businessName = (t: TFunction) =>
12
12
  yup
13
13
  .string()
14
- .required(t('authentication.businessNameRequired'))
15
- .label(t('authentication.businessName'));
14
+ .required(t('commons.businessNameRequired'))
15
+ .label(t('commons.businessName'));
16
16
 
17
17
  const emailForLogin = (t: TFunction) =>
18
18
  yup
19
19
  .string()
20
- .required(t('authentication.requiredEmailForLogin'))
21
- .matches(EMAIL_REGEX, t('authentication.validEmail'))
22
- .label(t('authentication.email'));
20
+ .required(t('commons.requiredEmailForLogin'))
21
+ .matches(EMAIL_REGEX, t('commons.validEmail'))
22
+ .label(t('commons.email'));
23
23
 
24
24
  const emailForSignup = (t: TFunction) =>
25
25
  yup
26
26
  .string()
27
- .required(t('authentication.requiredEmailForSignUp'))
28
- .matches(EMAIL_REGEX, t('authentication.validEmail'))
29
- .label(t('authentication.email'));
27
+ .required(t('commons.requiredEmailForSignUp'))
28
+ .matches(EMAIL_REGEX, t('commons.validEmail'))
29
+ .label(t('commons.email'));
30
30
 
31
31
  const phoneNumber = (t: TFunction) =>
32
32
  yup
33
33
  .string()
34
- .required(t('authentication.requiredPhoneNumber'))
35
- .label(t('authentication.phoneNumber'));
34
+ .required(t('commons.requiredPhoneNumber'))
35
+ .label(t('commons.phoneNumber'));
36
36
 
37
37
  const password = (t: TFunction) =>
38
38
  yup
39
39
  .string()
40
- .required(t('authentication.requiredPassword'))
41
- .label(t('authentication.password'));
40
+ .required(t('commons.requiredPassword'))
41
+ .label(t('commons.password'));
42
42
 
43
43
  const newPassword = (t: TFunction) =>
44
44
  yup
45
45
  .string()
46
46
  .required()
47
- .min(8, t('authentication.minLength'))
48
- .matches(/[a-z]/, t('authentication.1lowerChar'))
49
- .matches(/[A-Z]/, t('authentication.1upperChar'))
50
- .matches(/[0-9]/, t('authentication.1number'))
51
- .matches(/[!@#$%^&*(),.?":{}|<>]/, t('authentication.1special'))
52
- .label(t('authentication.password'));
47
+ .min(8, t('commons.minLength'))
48
+ .matches(/[a-z]/, t('commons.1lowerChar'))
49
+ .matches(/[A-Z]/, t('commons.1upperChar'))
50
+ .matches(/[0-9]/, t('commons.1number'))
51
+ .matches(/[!@#$%^&*(),.?":{}|<>]/, t('commons.1special'))
52
+ .label(t('commons.password'));
53
53
 
54
54
  const code = yup.string().required().min(6);
55
55
 
@@ -3,7 +3,7 @@ import { Alert, Card, IconButton, Text, View } from '../../components';
3
3
  import { RadioButton, useTheme } from 'react-native-paper';
4
4
  import { useTranslation } from 'react-i18next';
5
5
  import { getCardName } from '../../utils/checkout';
6
- import { CustomerCardPayment } from '../../types/customer';
6
+ import { CustomerCardPayment } from '@kiosinc/commons-types';
7
7
 
8
8
  export const CardRow = ({
9
9
  card,
@@ -26,18 +26,18 @@ export const CardRow = ({
26
26
 
27
27
  const onDeleteCard = () => {
28
28
  Alert.show({
29
- title: t('checkout.confirmCardDelete'),
30
- description: t('checkout.cardDeleteDesc', {
29
+ title: t('commons.confirmCardDelete'),
30
+ description: t('commons.cardDeleteDesc', {
31
31
  card: card.cardDetails.last4,
32
32
  }),
33
33
  buttons: [
34
34
  {
35
- label: t('delete'),
35
+ label: t('commons.delete'),
36
36
  textColor: theme.colors.error,
37
37
  onPress: () => onDelete(card.id),
38
38
  },
39
39
  {
40
- label: t('cancel'),
40
+ label: t('commons.cancel'),
41
41
  textColor: theme.colors.onSurface,
42
42
  },
43
43
  ],
@@ -15,7 +15,7 @@ import { onStartCardEntry } from '../../utils/square';
15
15
  import { useCustomerQueries } from '../../hooks/useCustomer';
16
16
  import { useCheckCustomer } from '../../hooks/useCheckCustomer';
17
17
  import { CardRow } from './CardRow';
18
- import { CustomerCardPayment } from '../../types/customer';
18
+ import { CustomerCardPayment } from '@kiosinc/commons-types';
19
19
 
20
20
  export const SavedCards = ({
21
21
  onCheckout,
@@ -64,7 +64,7 @@ export const SavedCards = ({
64
64
  };
65
65
 
66
66
  const label =
67
- cards.length > 0 ? t('checkout.payAndPlaceOrder') : t('checkout.payByCard');
67
+ cards.length > 0 ? t('commons.payAndPlaceOrder') : t('commons.payByCard');
68
68
 
69
69
  if (isLoading) {
70
70
  return <ActivityIndicator />;
@@ -134,11 +134,11 @@ export const SavedCards = ({
134
134
  <>
135
135
  {cards.length > 0 ? (
136
136
  <Text mb="8" variant="titleMedium">
137
- {t('checkout.paymentMethods')}
137
+ {t('commons.paymentMethods')}
138
138
  </Text>
139
139
  ) : (
140
140
  <Text variant="bodyLarge" color="outline">
141
- {t('checkout.noSavedCards')}
141
+ {t('commons.noSavedCards')}
142
142
  </Text>
143
143
  )}
144
144
  </>
@@ -152,7 +152,7 @@ export const SavedCards = ({
152
152
  icon="plus"
153
153
  mode="text"
154
154
  >
155
- {t('checkout.addCard')}
155
+ {t('commons.addCard')}
156
156
  </Button>
157
157
  </View>
158
158
  }
@@ -169,7 +169,7 @@ export const SavedCards = ({
169
169
  >
170
170
  <View>
171
171
  <Text variant="bodyLarge" color="onSurface">
172
- {t('order.total')}
172
+ {t('commons.total')}
173
173
  </Text>
174
174
  <Text variant="titleLarge" color="onSurface">
175
175
  {total}
@@ -6,10 +6,10 @@ import {
6
6
  TextInput,
7
7
  View,
8
8
  BottomSheet,
9
- } from '../components';
9
+ } from '../../components';
10
10
  import { BottomSheetTextInput } from '@gorhom/bottom-sheet';
11
11
  import { useTranslation } from 'react-i18next';
12
- import { useCreateBusiness } from './useCreateBusiness';
12
+ import { useCreateBusiness } from '../../hooks';
13
13
 
14
14
  type CreateBusinessBottomSheetProps = {
15
15
  isVisible: boolean;
@@ -44,7 +44,7 @@ export const CreateBusinessBottomSheet = forwardRef(
44
44
  <BottomSheet pressBehavior="close" ref={ref as any}>
45
45
  <View px="16" bg="background" flex={1}>
46
46
  <Text pt="16" variant="titleLarge">
47
- {t('home.createBusiness')}
47
+ {t('commons.createBusiness')}
48
48
  </Text>
49
49
  <KeyboardAvoidingView>
50
50
  <TextInput
@@ -55,11 +55,11 @@ export const CreateBusinessBottomSheet = forwardRef(
55
55
  mode="outlined"
56
56
  onChangeText={setName}
57
57
  value={name}
58
- label={t('home.businessName')}
58
+ label={t('commons.businessName')}
59
59
  />
60
60
  <View mt="16" flexDirection="row" justifyContent="flex-end">
61
61
  <Button mode="text" onPress={close}>
62
- {t('cancel')}
62
+ {t('commons.cancel')}
63
63
  </Button>
64
64
  <Button
65
65
  loading={isLoading}
@@ -67,7 +67,7 @@ export const CreateBusinessBottomSheet = forwardRef(
67
67
  mode="text"
68
68
  onPress={onCreate}
69
69
  >
70
- {t('create')}
70
+ {t('commons.create')}
71
71
  </Button>
72
72
  </View>
73
73
  </KeyboardAvoidingView>
@@ -10,7 +10,7 @@ import {
10
10
  Text,
11
11
  View,
12
12
  LinkButton,
13
- } from '../components';
13
+ } from '../../components';
14
14
  import { FlashList } from '@shopify/flash-list';
15
15
  import { useTranslation } from 'react-i18next';
16
16
  import { ActivityIndicator, useTheme } from 'react-native-paper';
@@ -18,11 +18,10 @@ import { useMMKVString } from 'react-native-mmkv';
18
18
  import { type NavigationProp, useNavigation } from '@react-navigation/native';
19
19
  import { useQueryClient } from '@tanstack/react-query';
20
20
  import { CreateBusinessBottomSheet } from './CreateBusinessBottomSheet';
21
- import { useBusinesses } from './useBusinesses';
22
- import { MMKV_KEYS } from '../constants';
23
- import { useSingleSnapBottomSheetRef } from '../utils/useSingleSnapBottomSheetRef';
24
- import Tick from '../assets/icons/tick.svg';
25
- import { useLogout } from '../auth/hooks/useLogout';
21
+ import { useBusinesses, useLogout } from '../../hooks';
22
+ import { MMKV_KEYS } from '../../constants';
23
+ import { useSingleSnapBottomSheetRef } from '../../utils';
24
+ import Tick from '../../assets/icons/tick.svg';
26
25
 
27
26
  const BusinessCard = ({
28
27
  business,
@@ -116,7 +115,7 @@ export const SelectBusiness = () => {
116
115
 
117
116
  return (
118
117
  <ParentView flex={1} backgroundColor="background">
119
- <Header title={t('home.selectBusiness')} />
118
+ <Header title={t('commons.selectBusiness')} />
120
119
  {searchText.length === 0 && !isFetching && businesses?.length === 0 && (
121
120
  <View
122
121
  position="absolute"
@@ -125,7 +124,7 @@ export const SelectBusiness = () => {
125
124
  alignItems={'center'}
126
125
  justifyContent={'center'}
127
126
  >
128
- <Text alignSelf={'center'}>{t('home.noBusiness')}</Text>
127
+ <Text alignSelf={'center'}>{t('commons.noBusiness')}</Text>
129
128
  </View>
130
129
  )}
131
130
  <View px="16" flex={1}>
@@ -134,7 +133,7 @@ export const SelectBusiness = () => {
134
133
  mb="12"
135
134
  bg="inverseOnSurface"
136
135
  value={searchText}
137
- placeholder={t('home.searchBusiness')}
136
+ placeholder={t('commons.searchBusiness')}
138
137
  onChangeText={setSearchText}
139
138
  />
140
139
  {!isFetching && (
@@ -173,7 +172,7 @@ export const SelectBusiness = () => {
173
172
  {!selectedBusinessId && (
174
173
  <View justifyContent="flex-end">
175
174
  <LinkButton mode="text" onPress={handleLogout} alignSelf={'center'}>
176
- {t('profile.logout')}
175
+ {t('commons.logout')}
177
176
  </LinkButton>
178
177
  </View>
179
178
  )}
@@ -11,13 +11,13 @@ import { useTranslation } from 'react-i18next';
11
11
  import { ActivityIndicator, useTheme } from 'react-native-paper';
12
12
  import WebView from 'react-native-webview';
13
13
  import { StyleSheet } from 'react-native';
14
- import { useTermsOfService } from '../hooks/useTermsOfService';
15
14
  import { TERMS_OF_SERVICE } from '../../constants';
16
- import { useLogout } from '../hooks/useLogout';
17
15
  import {
18
16
  TSingleSnapBottomSheetRef,
19
17
  useSingleSnapBottomSheetRef,
20
18
  } from '../../utils/useSingleSnapBottomSheetRef';
19
+ import { useLogout } from '../../hooks/useLogout';
20
+ import { useTermsOfService } from '../../hooks';
21
21
 
22
22
  type CloseBottomSheetProps = {
23
23
  bottomSheetRef: TSingleSnapBottomSheetRef;
@@ -34,15 +34,17 @@ export const CloseBottomSheet = ({ bottomSheetRef }: CloseBottomSheetProps) => {
34
34
  ref={bottomSheetRef.ref}
35
35
  >
36
36
  <View px="16" bg="background" flex={1} my="16">
37
- <Text variant="titleLarge">{t('home.termsOfServiceModal.title')}</Text>
37
+ <Text variant="titleLarge">
38
+ {t('commons.termsOfServiceModal.title')}
39
+ </Text>
38
40
  <Text pt="16" variant="bodyMedium" color="secondary">
39
- {t('home.termsOfServiceModal.description')}
41
+ {t('commons.termsOfServiceModal.description')}
40
42
  </Text>
41
43
  <Button mode="contained" my="16" onPress={bottomSheetRef.close}>
42
- {t('home.termsOfServiceModal.review')}
44
+ {t('commons.termsOfServiceModal.review')}
43
45
  </Button>
44
46
  <Button mode="outlined" onPress={handleLogout}>
45
- {t('profile.logout')}
47
+ {t('commons.logout')}
46
48
  </Button>
47
49
  </View>
48
50
  </BottomSheet>
@@ -66,7 +68,7 @@ export const TermsOfService = () => {
66
68
  icon="close"
67
69
  onPress={bottomSheetRef.expand}
68
70
  />
69
- <Text variant="labelLarge">{t('home.termsTitle')}</Text>
71
+ <Text variant="labelLarge">{t('commons.termsTitle')}</Text>
70
72
  </View>
71
73
  <View
72
74
  style={styles.view}
@@ -106,7 +108,7 @@ export const TermsOfService = () => {
106
108
  onPress={() => agreeTermsOfService()}
107
109
  loading={isLoading}
108
110
  >
109
- {t('home.acceptTerms')}
111
+ {t('commons.acceptTerms')}
110
112
  </Button>
111
113
  <CloseBottomSheet bottomSheetRef={bottomSheetRef} />
112
114
  </ParentView>
@@ -0,0 +1,4 @@
1
+ export { SavedCards } from './SavedCards/SavedCards';
2
+ export { SelectBusiness } from './SelectBusiness/SelectBusiness';
3
+ export { TermsOfService } from './TermsOfService/TermsOfService';
4
+ export { renderAuthNavigator, renderAppNavigator } from './Auth/navigators';
@@ -1,4 +1,4 @@
1
- import { CustomerCardPayment } from '../types/customer';
1
+ import { CustomerCardPayment } from '@kiosinc/commons-types';
2
2
 
3
3
  export const getCardName = (card: CustomerCardPayment) => {
4
4
  return card.cardDetails.cardBrand + ' **** ' + card.cardDetails.last4;
@@ -17,3 +17,14 @@ export const getCurrentTimestamp = () => {
17
17
 
18
18
  return formattedTimestamp;
19
19
  };
20
+
21
+ export { analytics, Analytics } from './analytics';
22
+ export { Currency } from './currency';
23
+ export {
24
+ type TMultiSnapBottomSheetRef,
25
+ useMultiSnapBottomSheetRef,
26
+ } from './useMultiSnapBottomSheetRef';
27
+ export {
28
+ type TSingleSnapBottomSheetRef,
29
+ useSingleSnapBottomSheetRef,
30
+ } from './useSingleSnapBottomSheetRef';
@@ -1 +0,0 @@
1
- {"version":3,"names":["_axios","_interopRequireDefault","require","obj","__esModule","default","signUpAPI","payload","axios","post","exports","checkIsRegisteredAPI","email","phoneNumber","deactivateAPI","delete"],"sourceRoot":"../../../../src","sources":["auth/api/authentication.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAA0B,SAAAD,uBAAAE,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAGnB,MAAMG,SAAS,GAAIC,OAAkB,IAAK;EAC/C,OAAOC,cAAK,CAACC,IAAI,CAAC,WAAW,EAAEF,OAAO,CAAC;AACzC,CAAC;AAACG,OAAA,CAAAJ,SAAA,GAAAA,SAAA;AAEK,MAAMK,oBAAoB,GAAIJ,OAKpC,IAAK;EACJ,OAAOC,cAAK,CAACC,IAAI,CAAC,yBAAyB,EAAE;IAC3CG,KAAK,EAAEL,OAAO,CAACK,KAAK;IACpBC,WAAW,EAAEN,OAAO,CAACM;EACvB,CAAC,CAAC;AACJ,CAAC;AAACH,OAAA,CAAAC,oBAAA,GAAAA,oBAAA;AAEK,MAAMG,aAAa,GAAGA,CAAA,KAAM;EACjC,OAAON,cAAK,CAACO,MAAM,CAAC,kBAAkB,CAAC;AACzC,CAAC;AAACL,OAAA,CAAAI,aAAA,GAAAA,aAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"names":["_components","require","_axios","_interopRequireDefault","_react","_reactNative","_reactNativeConfig","obj","__esModule","default","useAuthenticateRequests","getToken","useEffect","requestInterceptor","axios","interceptors","request","use","config","token","headers","Authorization","defaults","baseURL","Config","BASE_URL","Platform","OS","DEBUG","replace","common","accept","responseInterceptor","response","error","data","message","Alert","show","title","Promise","reject","eject","exports"],"sourceRoot":"../../../../src","sources":["auth/hooks/useAuthenticateRequests.ts"],"mappings":";;;;;;AAAA,IAAAA,WAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,MAAA,GAAAH,OAAA;AACA,IAAAI,YAAA,GAAAJ,OAAA;AACA,IAAAK,kBAAA,GAAAH,sBAAA,CAAAF,OAAA;AAAyC,SAAAE,uBAAAI,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAElC,MAAMG,uBAAuB,GAClCC,QAAsC,IACnC;EACH,IAAAC,gBAAS,EAAC,MAAM;IACd,MAAMC,kBAAkB,GAAGC,cAAK,CAACC,YAAY,CAACC,OAAO,CAACC,GAAG,CACvD,MAAOC,MAAM,IAAK;MAChB,MAAMC,KAAK,GAAG,MAAMR,QAAQ,CAAC,CAAC;MAC9B,IAAIQ,KAAK,EAAE;QACT,IAAI,CAACD,MAAM,CAACE,OAAO,EAAE;UACnB;UACAF,MAAM,CAACE,OAAO,GAAG,CAAC,CAAC;QACrB;QACAF,MAAM,CAACE,OAAO,CAACC,aAAa,GAAI,UAASF,KAAM,EAAC;MAClD;MACA,OAAOD,MAAM;IACf,CACF,CAAC;IACDJ,cAAK,CAACQ,QAAQ,CAACC,OAAO,GAAGC,0BAAM,CAACC,QAAQ;;IAExC;IACA,IAAIC,qBAAQ,CAACC,EAAE,KAAK,SAAS,IAAIH,0BAAM,CAACI,KAAK,KAAK,IAAI,EAAE;MACtDd,cAAK,CAACQ,QAAQ,CAACC,OAAO,GAAGT,cAAK,CAACQ,QAAQ,CAACC,OAAO,EAAEM,OAAO,CACtD,WAAW,EACX,UACF,CAAC;IACH;IACAf,cAAK,CAACQ,QAAQ,CAACF,OAAO,CAACU,MAAM,GAAG;MAC9BC,MAAM,EAAE;IACV,CAAC;IAED,MAAMC,mBAAmB,GAAGlB,cAAK,CAACC,YAAY,CAACkB,QAAQ,CAAChB,GAAG,CACxDgB,QAAQ,IAAK;MACZ,OAAOA,QAAQ;IACjB,CAAC,EACAC,KAAK,IAAK;MACT,IAAIA,KAAK,CAACD,QAAQ,CAACE,IAAI,CAACC,OAAO,EAAE;QAC/BC,iBAAK,CAACC,IAAI,CAAC;UACTC,KAAK,EAAEL,KAAK,CAACD,QAAQ,CAACE,IAAI,CAACC;QAC7B,CAAC,CAAC;MACJ,CAAC,MAAM;QACLC,iBAAK,CAACC,IAAI,CAAC;UACTC,KAAK,EAAE;QACT,CAAC,CAAC;MACJ;MACA,OAAOC,OAAO,CAACC,MAAM,CAACP,KAAK,CAAC;IAC9B,CACF,CAAC;IAED,OAAO,MAAM;MACXpB,cAAK,CAACC,YAAY,CAACC,OAAO,CAAC0B,KAAK,CAAC7B,kBAAkB,CAAC;MACpDC,cAAK,CAACC,YAAY,CAACkB,QAAQ,CAACS,KAAK,CAACV,mBAAmB,CAAC;IACxD,CAAC;EACH,CAAC,EAAE,CAACrB,QAAQ,CAAC,CAAC;AAChB,CAAC;AAACgC,OAAA,CAAAjC,uBAAA,GAAAA,uBAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"names":["_reactQuery","require","_auth","_interopRequireDefault","_authentication","_native","_reactI18next","_components","_authentication2","_reactNativeConfig","_analytics","_analyticsKeys","_customer","obj","__esModule","default","confirmationResult","useAuthentication","dispatch","useAuthenticationDispatch","navigation","useNavigation","t","useTranslation","useSignUp","useMutation","params","code","confirm","signUpAPI","onError","error","Alert","show","title","console","log","onSuccess","_","payload","credential","auth","EmailAuthProvider","email","password","currentUser","reauthenticateWithCredential","reload","changeUser","analytics","identify","uid","now","Date","toISOString","profile","set","analyticsKeys","registrationDate","app","Config","URL_SCHEME","track","eventName","createCustomer","signOut","catch","StackActions","popToTop","useIsCheckRegistered","checkIsRegisteredAPI","response","data","isRegistered","navigate","useConfirmPhoneNumber","properties","method","useVerifyPhoneNumberForLogin","phoneNumber","signInWithPhoneNumber","description","emailOrPhoneNumber","message","useVerifyPhoneNumber","useResetPassword","sendPasswordResetEmail","exports"],"sourceRoot":"../../../../src","sources":["auth/hooks/useAuthentication.ts"],"mappings":";;;;;;AAAA,IAAAA,WAAA,GAAAC,OAAA;AAEA,IAAAC,KAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,eAAA,GAAAH,OAAA;AAIA,IAAAI,OAAA,GAAAJ,OAAA;AAKA,IAAAK,aAAA,GAAAL,OAAA;AACA,IAAAM,WAAA,GAAAN,OAAA;AACA,IAAAO,gBAAA,GAAAP,OAAA;AACA,IAAAQ,kBAAA,GAAAN,sBAAA,CAAAF,OAAA;AACA,IAAAS,UAAA,GAAAT,OAAA;AACA,IAAAU,cAAA,GAAAV,OAAA;AACA,IAAAW,SAAA,GAAAX,OAAA;AAAoD,SAAAE,uBAAAU,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAEpD,IAAIG,kBAAwD;AAUrD,MAAMC,iBAAiB,GAAGA,CAAA,KAAM;EACrC,MAAMC,QAAQ,GAAG,IAAAC,yCAAyB,EAAC,CAAC;EAC5C,MAAMC,UAAU,GAAG,IAAAC,qBAAa,EAAgC,CAAC;EACjE,MAAM;IAAEC;EAAE,C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AAC,iCAAiC,EAAEL,KAAK,CAAC;MACvD;IACF,CAAC,CAAC;IACJsD,gBAAgB,EAAEA,CAAA,KAChB,IAAA5D,uBAAW,EAAC,OAAO;MAAEkB;IAAyB,CAAC,KAAmB;MAChE,IAAI;QACF,MAAM,IAAAF,aAAI,EAAC,CAAC,CAAC6C,sBAAsB,CAAC3C,KAAK,CAAC;QAC1CvB,UAAU,CAACsD,QAAQ,CAAC,8BAA8B,EAAE;UAClD/B,KAAK,EAAEA;QACT,CAAC,CAAC;QACFM,oBAAS,CAACa,KAAK,CAAC;UACdC,SAAS,EAAE,0BAA0B;UACrCa,UAAU,EAAE;YACVjC;UACF;QACF,CAAC,CAAC;MACJ,CAAC,CAAC,MAAM;QACNX,iBAAK,CAACC,IAAI,CAAC;UACTgD,WAAW,EAAE3D,CAAC,CAAC,iCAAiC,EAAE;YAChD4D,kBAAkB,EAAEvC;UACtB,CAAC;QACH,CAAC,CAAC;MACJ;IACF,CAAC;EACL,CAAC;AACH,CAAC;AAAC4C,OAAA,CAAAtE,iBAAA,GAAAA,iBAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"names":["_reactQuery","require","_components","_authentication","_reactI18next","_auth","_interopRequireDefault","obj","__esModule","default","useDeactivateAccount","t","useTranslation","useMutation","deactivateAPI","onSuccess","auth","signOut","Alert","show","description","exports"],"sourceRoot":"../../../../src","sources":["auth/hooks/useDeactivateAccount.ts"],"mappings":";;;;;;AAAA,IAAAA,WAAA,GAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AACA,IAAAE,eAAA,GAAAF,OAAA;AACA,IAAAG,aAAA,GAAAH,OAAA;AACA,IAAAI,KAAA,GAAAC,sBAAA,CAAAL,OAAA;AAA+C,SAAAK,uBAAAC,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAExC,MAAMG,oBAAoB,GAAGA,CAAA,KAAM;EACxC,MAAM;IAAEC;EAAE,CAAC,GAAG,IAAAC,4BAAc,EAAC,CAAC;EAC9B,OAAO,IAAAC,uBAAW,EAChB,YAA0B;IACxB,IAAAC,6BAAa,EAAC,CAAC;EACjB,CAAC,EACD;IACEC,SAAS,EAAEA,CAAA,KAAM;MACf,IAAAC,aAAI,EAAC,CAAC,CAACC,OAAO,CAAC,CAAC;MAChBC,iBAAK,CAACC,IAAI,CAAC;QACTC,WAAW,EAAET,CAAC,CAAC,oCAAoC;MACrD,CAAC,CAAC;IACJ;EACF,CACF,CAAC;AACH,CAAC;AAACU,OAAA,CAAAX,oBAAA,GAAAA,oBAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"names":["_auth","_interopRequireDefault","require","_reactQuery","_react","_reactNativeFastImage","_reactNativeMmkv","_constants","_analytics","_reactNativeConfig","obj","__esModule","default","useLogout","_","setBusinessId","useMMKVString","MMKV_KEYS","BUSINESS_ID","queryClient","useQueryClient","handleLogout","useCallback","analytics","reset","auth","signOut","finally","Config","APP_NAME","clear","FastImage","clearMemoryCache","clearDiskCache","undefined","exports"],"sourceRoot":"../../../../src","sources":["auth/hooks/useLogout.ts"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AACA,IAAAG,qBAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,gBAAA,GAAAJ,OAAA;AACA,IAAAK,UAAA,GAAAL,OAAA;AACA,IAAAM,UAAA,GAAAN,OAAA;AACA,IAAAO,kBAAA,GAAAR,sBAAA,CAAAC,OAAA;AAAyC,SAAAD,uBAAAS,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAElC,MAAMG,SAAS,GAAGA,CAAA,KAAM;EAC7B,MAAM,CAACC,CAAC,EAAEC,aAAa,CAAC,GAAG,IAAAC,8BAAa,EAACC,oBAAS,CAACC,WAAW,CAAC;EAC/D,MAAMC,WAAW,GAAG,IAAAC,0BAAc,EAAC,CAAC;EAEpC,MAAMC,YAAY,GAAG,IAAAC,kBAAW,EAAC,MAAM;IACrCC,oBAAS,CAACC,KAAK,CAAC,CAAC;IACjB,IAAAC,aAAI,EAAC,CAAC,CACHC,OAAO,CAAC,CAAC,CACTC,OAAO,CAAC,MAAM;MACbC,0BAAM,CAACC,QAAQ,KAAK,SAAS,IAAIV,WAAW,CAACW,KAAK,CAAC,CAAC;MACpDC,6BAAS,CAACC,gBAAgB,CAAC,CAAC;MAC5BD,6BAAS,CAACE,cAAc,CAAC,CAAC;MAC1BL,0BAAM,CAACC,QAAQ,KAAK,SAAS,IAAId,aAAa,CAACmB,SAAS,CAAC;IAC3D,CAAC,CAAC;EACN,CAAC,EAAE,CAACf,WAAW,EAAEJ,aAAa,CAAC,CAAC;EAEhC,OAAO;IAAEM;EAAa,CAAC;AACzB,CAAC;AAACc,OAAA,CAAAtB,SAAA,GAAAA,SAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"names":["_reactQuery","require","_firestore","_interopRequireDefault","_queryKeys","_utils","_analytics","_customer","_auth","obj","__esModule","default","useTermsOfService","queryClient","useQueryClient","user","firebase","currentUser","useTermsOfServiceURL","useQuery","queryKeys","TERMS_AND_CONDITIONS_URL","system","firestore","doc","get","data","url","staleTime","Infinity","useShouldShowTermsOfService","uid","TERMS_AND_CONDITIONS","customerSnapshot","exists","customer","agreementsUpdated","Date","updated","DEFAULT_STALE_TIME","useAgreeTermsOfService","useMutation","query","createCustomer","update","getCurrentTimestamp","toISOString","analytics","track","eventName","invalidateQueries","exports"],"sourceRoot":"../../../../src","sources":["auth/hooks/useTermsOfService.ts"],"mappings":";;;;;;AAAA,IAAAA,WAAA,GAAAC,OAAA;AACA,IAAAC,UAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,UAAA,GAAAH,OAAA;AACA,IAAAI,MAAA,GAAAJ,OAAA;AACA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,GAAAA,iBAAA"}
@@ -1,65 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- Object.defineProperty(exports, "AuthenticationProvider", {
7
- enumerable: true,
8
- get: function () {
9
- return _authentication.AuthenticationProvider;
10
- }
11
- });
12
- Object.defineProperty(exports, "TermsOfService", {
13
- enumerable: true,
14
- get: function () {
15
- return _TermsOfService.TermsOfService;
16
- }
17
- });
18
- Object.defineProperty(exports, "changeUser", {
19
- enumerable: true,
20
- get: function () {
21
- return _authentication.changeUser;
22
- }
23
- });
24
- Object.defineProperty(exports, "renderAppNavigator", {
25
- enumerable: true,
26
- get: function () {
27
- return _screens.renderAppNavigator;
28
- }
29
- });
30
- Object.defineProperty(exports, "renderAuthNavigator", {
31
- enumerable: true,
32
- get: function () {
33
- return _screens.renderAuthNavigator;
34
- }
35
- });
36
- Object.defineProperty(exports, "useAuthentication", {
37
- enumerable: true,
38
- get: function () {
39
- return _authentication.useAuthentication;
40
- }
41
- });
42
- Object.defineProperty(exports, "useAuthenticationDispatch", {
43
- enumerable: true,
44
- get: function () {
45
- return _authentication.useAuthenticationDispatch;
46
- }
47
- });
48
- Object.defineProperty(exports, "useDeactivateAccount", {
49
- enumerable: true,
50
- get: function () {
51
- return _useDeactivateAccount.useDeactivateAccount;
52
- }
53
- });
54
- Object.defineProperty(exports, "useTermsOfService", {
55
- enumerable: true,
56
- get: function () {
57
- return _useTermsOfService.useTermsOfService;
58
- }
59
- });
60
- var _screens = require("./screens");
61
- var _authentication = require("./providers/authentication");
62
- var _useDeactivateAccount = require("./hooks/useDeactivateAccount");
63
- var _useTermsOfService = require("./hooks/useTermsOfService");
64
- var _TermsOfService = require("./screens/TermsOfService");
65
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_screens","require","_authentication","_useDeactivateAccount","_useTermsOfService","_TermsOfService"],"sourceRoot":"../../../src","sources":["auth/index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,QAAA,GAAAC,OAAA;AACA,IAAAC,eAAA,GAAAD,OAAA;AAMA,IAAAE,qBAAA,GAAAF,OAAA;AACA,IAAAG,kBAAA,GAAAH,OAAA;AACA,IAAAI,eAAA,GAAAJ,OAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"names":["_react","_interopRequireWildcard","require","_auth","_interopRequireDefault","_authentication","_useAuthenticateRequests","_authentication2","obj","__esModule","default","_getRequireWildcardCache","e","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","AuthenticationContext","createContext","AuthenticationDispatchContext","useAuthentication","useContext","exports","useAuthenticationDispatch","AuthenticationProvider","children","authentication","dispatch","useReducer","authenticationReducer","initializing","user","isSignedIn","getToken","useCallback","getIdToken","isAnonymous","useAuthenticateRequests","useEffect","auth","signInAnonymously","onAuthStateChanged","changeUser","subscriber","createElement","Provider","value"],"sourceRoot":"../../../../../src","sources":["auth/providers/authentication/AuthenticationProvider.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AASA,IAAAC,KAAA,GAAAC,sBAAA,CAAAF,OAAA;AAMA,IAAAG,eAAA,GAAAH,OAAA;AACA,IAAAI,wBAAA,GAAAJ,OAAA;AACA,IAAAK,gBAAA,GAAAL,OAAA;AAA8D,SAAAE,uBAAAI,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAAA,SAAAG,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAX,wBAAAW,CAAA,EAAAE,CAAA,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AU,OAAA,CAAA+C,aAAA,CAACzB,6BAA6B,CAAC0B,QAAQ;IAACC,KAAK,EAAEnB;EAAS,GACrDF,QACqC,CACV,CAAC;AAErC,CAAC;AAACH,OAAA,CAAAE,sBAAA,GAAAA,sBAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"names":["_authentication","require","changeUser","user","type","AuthenticationActionType","ChangeUser","exports"],"sourceRoot":"../../../../../../src","sources":["auth/providers/authentication/actions/authentication.actions.ts"],"mappings":";;;;;;AAAA,IAAAA,eAAA,GAAAC,OAAA;AAMO,MAAMC,UAAU,GAAIC,IAAiB,KAA4B;EACtEC,IAAI,EAAEC,wCAAwB,CAACC,UAAU;EACzCH;AACF,CAAC,CAAC;AAACI,OAAA,CAAAL,UAAA,GAAAA,UAAA"}
@@ -1,50 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- var _authentication = require("./types/authentication.types");
7
- Object.keys(_authentication).forEach(function (key) {
8
- if (key === "default" || key === "__esModule") return;
9
- if (key in exports && exports[key] === _authentication[key]) return;
10
- Object.defineProperty(exports, key, {
11
- enumerable: true,
12
- get: function () {
13
- return _authentication[key];
14
- }
15
- });
16
- });
17
- var _authentication2 = require("./actions/authentication.actions");
18
- Object.keys(_authentication2).forEach(function (key) {
19
- if (key === "default" || key === "__esModule") return;
20
- if (key in exports && exports[key] === _authentication2[key]) return;
21
- Object.defineProperty(exports, key, {
22
- enumerable: true,
23
- get: function () {
24
- return _authentication2[key];
25
- }
26
- });
27
- });
28
- var _authentication3 = require("./reducer/authentication.reducer");
29
- Object.keys(_authentication3).forEach(function (key) {
30
- if (key === "default" || key === "__esModule") return;
31
- if (key in exports && exports[key] === _authentication3[key]) return;
32
- Object.defineProperty(exports, key, {
33
- enumerable: true,
34
- get: function () {
35
- return _authentication3[key];
36
- }
37
- });
38
- });
39
- var _AuthenticationProvider = require("./AuthenticationProvider");
40
- Object.keys(_AuthenticationProvider).forEach(function (key) {
41
- if (key === "default" || key === "__esModule") return;
42
- if (key in exports && exports[key] === _AuthenticationProvider[key]) return;
43
- Object.defineProperty(exports, key, {
44
- enumerable: true,
45
- get: function () {
46
- return _AuthenticationProvider[key];
47
- }
48
- });
49
- });
50
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_authentication","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_authentication2","_authentication3","_AuthenticationProvider"],"sourceRoot":"../../../../../src","sources":["auth/providers/authentication/index.ts"],"mappings":";;;;;AAAA,IAAAA,eAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,eAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,eAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,eAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,gBAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,gBAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAK,gBAAA,CAAAL,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAC,gBAAA,CAAAL,GAAA;IAAA;EAAA;AAAA;AACA,IAAAM,gBAAA,GAAAV,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAQ,gBAAA,EAAAP,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAM,gBAAA,CAAAN,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAE,gBAAA,CAAAN,GAAA;IAAA;EAAA;AAAA;AACA,IAAAO,uBAAA,GAAAX,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAS,uBAAA,EAAAR,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAO,uBAAA,CAAAP,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAG,uBAAA,CAAAP,GAAA;IAAA;EAAA;AAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"names":["_authentication","require","isSignedIn","user","isAnonymous","email","phoneNumber","authenticationReducer","state","action","type","AuthenticationActionType","ChangeUser","initializing","exports"],"sourceRoot":"../../../../../../src","sources":["auth/providers/authentication/reducer/authentication.reducer.ts"],"mappings":";;;;;;AACA,IAAAA,eAAA,GAAAC,OAAA;AAMA,MAAMC,UAAU,GAAIC,IAA4B,IAAK;EACnD,IAAIA,IAAI,CAACC,WAAW,EAAE;IACpB;IACA,OAAO,KAAK;EACd,CAAC,MAAM,IAAID,IAAI,CAACE,KAAK,EAAE;IACrB;IACA,IAAIF,IAAI,CAACG,WAAW,EAAE;MACpB,OAAO,IAAI;IACb,CAAC,MAAM;MACL,OAAO,KAAK;IACd;EACF,CAAC,MAAM,IAAIH,IAAI,CAACG,WAAW,EAAE;IAC3B;IACA,OAAO,IAAI;EACb;EACA,OAAO,KAAK;AACd,CAAC;AAEM,MAAMC,qBAAqB,GAAGA,CACnCC,KAA0B,EAC1BC,MAA4B,KACJ;EACxB,QAAQA,MAAM,CAACC,IAAI;IACjB,KAAKC,wCAAwB,CAACC,UAAU;MACtC,OAAO;QACL,GAAGJ,KAAK;QACRK,YAAY,EAAE,KAAK;QACnBV,IAAI,EAAEM,MAAM,CAACN,IAAI;QACjBD,UAAU,EAAEO,MAAM,CAACN,IAAI,GAAGD,UAAU,CAACO,MAAM,CAACN,IAAI,CAAC,GAAG;MACtD,CAAC;IACH;MACE,OAAOK,KAAK;EAChB;AACF,CAAC;AAACM,OAAA,CAAAP,qBAAA,GAAAA,qBAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"names":["AuthenticationActionType","exports"],"sourceRoot":"../../../../../../src","sources":["auth/providers/authentication/types/authentication.types.ts"],"mappings":";;;;;;IAIYA,wBAAwB,GAAAC,OAAA,CAAAD,wBAAA,0BAAxBA,wBAAwB;EAAxBA,wBAAwB;EAAA,OAAxBA,wBAAwB;AAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"names":["_components","require","_react","_interopRequireWildcard","_reactI18next","_reactHookForm","_yup","_validators","_useAuthentication","_reactNative","_reactNativeConfig","_interopRequireDefault","_analytics","_native","obj","__esModule","default","_getRequireWildcardCache","e","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","LoginWithPhoneNumber","useTranslation","useVerifyPhoneNumberForLogin","useAuthentication","mutate","sendCode","isLoading","isSendingCode","selectedCountry","setSelectedCountry","useState","handleSubmit","control","formState","errors","useForm","resolver","yupResolver","loginWithPhoneNumberValidationSchema","isUSNumber","callingCode","defaultValues","phoneNumber","navigation","useNavigation","onSubmit","data","Keyboard","dismiss","replaceAll","createElement","View","paddingTop","minHeight","Controller","render","field","onChange","onBlur","value","PhoneInput","placeholder","onChangePhoneNumber","defaultCountry","errorMessage","message","onChangeSelectedCountry","name","Button","loading","mode","onPress","Config","APP_NAME","alignItems","justifyContent","pt","flexDirection","Text","variant","LinkButton","analytics","track","eventName","navigate","exports"],"sourceRoot":"../../../../src","sources":["auth/screens/LoginWithPho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AAI;IACHuB,UAAU,EAAC,QAAQ;IACnBC,cAAc,EAAC,QAAQ;IACvBC,EAAE,EAAC,GAAG;IACNC,aAAa,EAAC;EAAK,gBAEnB3F,MAAA,CAAAc,OAAA,CAAAkD,aAAA,CAAClE,WAAA,CAAA8F,IAAI;IAACC,OAAO,EAAC;EAAY,GAAE1E,CAAC,CAAC,yBAAyB,CAAQ,CAAC,eAChEnB,MAAA,CAAAc,OAAA,CAAAkD,aAAA,CAAClE,WAAA,CAAAgG,UAAU;IACTV,IAAI,EAAC,MAAM;IACXC,OAAO,EAAEA,CAAA,KAAM;MACbU,oBAAS,CAACC,KAAK,CAAC;QAAEC,SAAS,EAAE;MAAkB,CAAC,CAAC;MACjDxC,UAAU,CAACyC,QAAQ,CAAC,QAAQ,CAAC;IAC/B;EAAE,GAED/E,CAAC,CAAC,uBAAuB,CAChB,CACR,CAEJ,CAAC;AAEX,CAAC;AAACgF,OAAA,CAAAjE,oBAAA,GAAAA,oBAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"names":["_components","require","_native","_react","_interopRequireDefault","_reactI18next","_reactHookForm","_yup","_validators","_useAuthentication","obj","__esModule","default","ResetPassword","t","useTranslation","navigation","useNavigation","useResetPassword","useAuthentication","mutate","resetPassword","isLoading","handleSubmit","control","formState","errors","useForm","resolver","yupResolver","resetPasswordValidationSchema","defaultValues","email","onSubmit","data","createElement","ParentView","px","Header","left","position","zIndex","KeyboardAvoidingView","alignSelf","justifyContent","width","phone","tablet","Text","py","textAlign","variant","Controller","render","field","onChange","onBlur","value","TextInput","autoFocus","keyboardType","autoCapitalize","mode","autoComplete","error","message","errorMessage","onChangeText","label","name","Button","loading","mt","onPress","goBack","exports"],"sourceRoot":"../../../../src","sources":["auth/screens/ResetPassword.tsx"],"mappings":";;;;;;AAAA,IAAAA,WAAA,GAAAC,OAAA;AAQA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,aA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