@kiosinc/commons-rn 0.1.84 → 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.
- package/lib/commonjs/api/authentication.js.map +1 -0
- package/lib/commonjs/api/customer.js.map +1 -1
- package/lib/commonjs/assets/icons/alert.svg +4 -0
- package/lib/commonjs/components/Alert.js +1 -1
- package/lib/commonjs/components/Alert.js.map +1 -1
- package/lib/commonjs/components/DelayedRender.js +4 -2
- package/lib/commonjs/components/DelayedRender.js.map +1 -1
- package/lib/commonjs/components/SelectionDialog.js +1 -1
- package/lib/commonjs/components/SelectionDialog.js.map +1 -1
- package/lib/commonjs/components/Snackbar.js +1 -1
- package/lib/commonjs/components/Snackbar.js.map +1 -1
- package/lib/commonjs/helpers/index.js +13 -0
- package/lib/commonjs/helpers/index.js.map +1 -0
- package/lib/commonjs/hooks/index.js +69 -0
- package/lib/commonjs/hooks/index.js.map +1 -0
- package/lib/commonjs/hooks/queryKeys.js.map +1 -0
- package/lib/commonjs/hooks/useAppVersionCheck.js +9 -5
- package/lib/commonjs/hooks/useAppVersionCheck.js.map +1 -1
- package/lib/commonjs/{auth/hooks/useAuthentication.js → hooks/useAuth.js} +18 -18
- package/lib/commonjs/hooks/useAuth.js.map +1 -0
- package/lib/commonjs/{auth/hooks → hooks}/useAuthenticateRequests.js +1 -1
- package/lib/commonjs/hooks/useAuthenticateRequests.js.map +1 -0
- package/lib/commonjs/hooks/useBusinesses.js.map +1 -0
- package/lib/commonjs/{selectBusiness → hooks}/useCreateBusiness.js +1 -1
- package/lib/commonjs/hooks/useCreateBusiness.js.map +1 -0
- package/lib/commonjs/hooks/useCustomer.js +1 -1
- package/lib/commonjs/hooks/useCustomer.js.map +1 -1
- package/lib/commonjs/{auth/hooks → hooks}/useDeactivateAccount.js +3 -3
- package/lib/commonjs/hooks/useDeactivateAccount.js.map +1 -0
- package/lib/commonjs/{auth/hooks → hooks}/useLogout.js +3 -3
- package/lib/commonjs/hooks/useLogout.js.map +1 -0
- package/lib/commonjs/{auth/hooks → hooks}/useTermsOfService.js +4 -5
- package/lib/commonjs/hooks/useTermsOfService.js.map +1 -0
- package/lib/commonjs/index.js +50 -97
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/localization/index.js +12 -0
- package/lib/commonjs/localization/index.js.map +1 -0
- package/lib/commonjs/localization/translations/en.json +87 -0
- package/lib/commonjs/providers/authentication/AuthenticationProvider.js.map +1 -0
- package/lib/commonjs/providers/authentication/actions/authentication.actions.js.map +1 -0
- package/lib/commonjs/providers/authentication/reducer/authentication.reducer.js.map +1 -0
- package/lib/commonjs/providers/authentication/types/authentication.types.js.map +1 -0
- package/lib/commonjs/providers/index.js +32 -0
- package/lib/commonjs/providers/index.js.map +1 -0
- package/lib/commonjs/{auth/screens → screens/Auth}/ChangePassword.js +9 -9
- package/lib/commonjs/{auth/screens → screens/Auth}/ChangePassword.js.map +1 -1
- package/lib/commonjs/{auth/screens → screens/Auth}/Login.js +2 -2
- package/lib/commonjs/{auth/screens → screens/Auth}/Login.js.map +1 -1
- package/lib/commonjs/{auth/screens → screens/Auth}/LoginWithEmail.js +7 -7
- package/lib/commonjs/{auth/screens → screens/Auth}/LoginWithEmail.js.map +1 -1
- package/lib/commonjs/{auth/screens → screens/Auth}/LoginWithPhoneNumber.js +5 -5
- package/lib/commonjs/screens/Auth/LoginWithPhoneNumber.js.map +1 -0
- package/lib/commonjs/{auth/screens → screens/Auth}/ResetPassword.js +41 -9
- package/lib/commonjs/screens/Auth/ResetPassword.js.map +1 -0
- package/lib/commonjs/{auth/screens → screens/Auth}/ResetPasswordInstructionsSent.js +2 -2
- package/lib/commonjs/{auth/screens → screens/Auth}/ResetPasswordInstructionsSent.js.map +1 -1
- package/lib/commonjs/{auth/screens → screens/Auth}/SignUp.js +12 -13
- package/lib/commonjs/screens/Auth/SignUp.js.map +1 -0
- package/lib/commonjs/{auth/screens → screens/Auth}/SignUpPassword.js +7 -7
- package/lib/commonjs/screens/Auth/SignUpPassword.js.map +1 -0
- package/lib/commonjs/{auth/screens → screens/Auth}/VerifyPhoneNumber.js +6 -6
- package/lib/commonjs/screens/Auth/VerifyPhoneNumber.js.map +1 -0
- package/lib/commonjs/{auth/screens → screens/Auth}/VerifyPhoneNumberForLogin.js +6 -6
- package/lib/commonjs/screens/Auth/VerifyPhoneNumberForLogin.js.map +1 -0
- package/lib/commonjs/{auth/screens/index.js → screens/Auth/navigators.js} +1 -1
- package/lib/commonjs/screens/Auth/navigators.js.map +1 -0
- package/lib/commonjs/{auth/screens → screens/Auth}/validators.js +7 -7
- package/lib/commonjs/screens/Auth/validators.js.map +1 -0
- package/lib/commonjs/screens/SavedCards/CardRow.js +4 -4
- package/lib/commonjs/screens/SavedCards/CardRow.js.map +1 -1
- package/lib/commonjs/screens/SavedCards/SavedCards.js +5 -5
- package/lib/commonjs/screens/SavedCards/SavedCards.js.map +1 -1
- package/lib/commonjs/{selectBusiness → screens/SelectBusiness}/CreateBusinessBottomSheet.js +7 -7
- package/lib/commonjs/screens/SelectBusiness/CreateBusinessBottomSheet.js.map +1 -0
- package/lib/commonjs/{selectBusiness → screens/SelectBusiness}/SelectBusiness.js +12 -13
- package/lib/commonjs/screens/SelectBusiness/SelectBusiness.js.map +1 -0
- package/lib/commonjs/{auth/screens → screens/TermsOfService}/TermsOfService.js +9 -9
- package/lib/commonjs/screens/TermsOfService/TermsOfService.js.map +1 -0
- package/lib/commonjs/screens/index.js +40 -0
- package/lib/commonjs/screens/index.js.map +1 -0
- package/lib/commonjs/utils/index.js +34 -0
- package/lib/commonjs/utils/index.js.map +1 -1
- package/lib/module/api/authentication.js.map +1 -0
- package/lib/module/api/customer.js.map +1 -1
- package/lib/module/assets/icons/alert.svg +4 -0
- package/lib/module/components/Alert.js +1 -1
- package/lib/module/components/Alert.js.map +1 -1
- package/lib/module/components/DelayedRender.js +2 -2
- package/lib/module/components/DelayedRender.js.map +1 -1
- package/lib/module/components/SelectionDialog.js +1 -1
- package/lib/module/components/SelectionDialog.js.map +1 -1
- package/lib/module/components/Snackbar.js +1 -1
- package/lib/module/components/Snackbar.js.map +1 -1
- package/lib/module/helpers/index.js +2 -0
- package/lib/module/helpers/index.js.map +1 -0
- package/lib/module/hooks/index.js +10 -0
- package/lib/module/hooks/index.js.map +1 -0
- package/lib/module/hooks/queryKeys.js.map +1 -0
- package/lib/module/hooks/useAppVersionCheck.js +9 -5
- package/lib/module/hooks/useAppVersionCheck.js.map +1 -1
- package/lib/module/{auth/hooks/useAuthentication.js → hooks/useAuth.js} +10 -10
- package/lib/module/hooks/useAuth.js.map +1 -0
- package/lib/module/{auth/hooks → hooks}/useAuthenticateRequests.js +1 -1
- package/lib/module/hooks/useAuthenticateRequests.js.map +1 -0
- package/lib/module/hooks/useBusinesses.js.map +1 -0
- package/lib/module/{selectBusiness → hooks}/useCreateBusiness.js +1 -1
- package/lib/module/hooks/useCreateBusiness.js.map +1 -0
- package/lib/module/hooks/useCustomer.js +1 -1
- package/lib/module/hooks/useCustomer.js.map +1 -1
- package/lib/module/{auth/hooks → hooks}/useDeactivateAccount.js +3 -3
- package/lib/module/hooks/useDeactivateAccount.js.map +1 -0
- package/lib/module/{auth/hooks → hooks}/useLogout.js +2 -2
- package/lib/module/hooks/useLogout.js.map +1 -0
- package/lib/module/{auth/hooks → hooks}/useTermsOfService.js +4 -4
- package/lib/module/hooks/useTermsOfService.js.map +1 -0
- package/lib/module/index.js +6 -11
- package/lib/module/index.js.map +1 -1
- package/lib/module/localization/index.js +5 -0
- package/lib/module/localization/index.js.map +1 -0
- package/lib/module/localization/translations/en.json +87 -0
- package/lib/module/providers/authentication/AuthenticationProvider.js.map +1 -0
- package/lib/module/providers/authentication/actions/authentication.actions.js.map +1 -0
- package/lib/module/providers/authentication/reducer/authentication.reducer.js.map +1 -0
- package/lib/module/providers/authentication/types/authentication.types.js.map +1 -0
- package/lib/module/providers/index.js +3 -0
- package/lib/module/providers/index.js.map +1 -0
- package/lib/module/{auth/screens → screens/Auth}/ChangePassword.js +9 -9
- package/lib/module/{auth/screens → screens/Auth}/ChangePassword.js.map +1 -1
- package/lib/module/{auth/screens → screens/Auth}/Login.js +2 -2
- package/lib/module/{auth/screens → screens/Auth}/Login.js.map +1 -1
- package/lib/module/{auth/screens → screens/Auth}/LoginWithEmail.js +7 -7
- package/lib/module/{auth/screens → screens/Auth}/LoginWithEmail.js.map +1 -1
- package/lib/module/{auth/screens → screens/Auth}/LoginWithPhoneNumber.js +5 -5
- package/lib/module/screens/Auth/LoginWithPhoneNumber.js.map +1 -0
- package/lib/module/{auth/screens → screens/Auth}/ResetPassword.js +43 -11
- package/lib/module/screens/Auth/ResetPassword.js.map +1 -0
- package/lib/module/{auth/screens → screens/Auth}/ResetPasswordInstructionsSent.js +2 -2
- package/lib/module/{auth/screens → screens/Auth}/ResetPasswordInstructionsSent.js.map +1 -1
- package/lib/module/{auth/screens → screens/Auth}/SignUp.js +11 -12
- package/lib/module/screens/Auth/SignUp.js.map +1 -0
- package/lib/module/{auth/screens → screens/Auth}/SignUpPassword.js +7 -7
- package/lib/module/screens/Auth/SignUpPassword.js.map +1 -0
- package/lib/module/{auth/screens → screens/Auth}/VerifyPhoneNumber.js +6 -6
- package/lib/module/screens/Auth/VerifyPhoneNumber.js.map +1 -0
- package/lib/module/{auth/screens → screens/Auth}/VerifyPhoneNumberForLogin.js +6 -6
- package/lib/module/screens/Auth/VerifyPhoneNumberForLogin.js.map +1 -0
- package/lib/module/{auth/screens/index.js → screens/Auth/navigators.js} +1 -1
- package/lib/module/screens/Auth/navigators.js.map +1 -0
- package/lib/module/screens/Auth/validators.js +45 -0
- package/lib/module/screens/Auth/validators.js.map +1 -0
- package/lib/module/screens/SavedCards/CardRow.js +4 -4
- package/lib/module/screens/SavedCards/CardRow.js.map +1 -1
- package/lib/module/screens/SavedCards/SavedCards.js +5 -5
- package/lib/module/screens/SavedCards/SavedCards.js.map +1 -1
- package/lib/module/{selectBusiness → screens/SelectBusiness}/CreateBusinessBottomSheet.js +6 -6
- package/lib/module/screens/SelectBusiness/CreateBusinessBottomSheet.js.map +1 -0
- package/lib/module/{selectBusiness → screens/SelectBusiness}/SelectBusiness.js +9 -10
- package/lib/module/screens/SelectBusiness/SelectBusiness.js.map +1 -0
- package/lib/module/{auth/screens → screens/TermsOfService}/TermsOfService.js +8 -8
- package/lib/module/screens/TermsOfService/TermsOfService.js.map +1 -0
- package/lib/module/screens/index.js +5 -0
- package/lib/module/screens/index.js.map +1 -0
- package/lib/module/utils/index.js +4 -0
- package/lib/module/utils/index.js.map +1 -1
- package/lib/typescript/src/{auth/api → api}/authentication.d.ts +6 -2
- package/lib/typescript/src/api/authentication.d.ts.map +1 -0
- package/lib/typescript/src/api/customer.d.ts +6 -2
- package/lib/typescript/src/api/customer.d.ts.map +1 -1
- package/lib/typescript/src/components/DelayedRender.d.ts +2 -2
- package/lib/typescript/src/components/DelayedRender.d.ts.map +1 -1
- package/lib/typescript/src/helpers/index.d.ts +2 -0
- package/lib/typescript/src/helpers/index.d.ts.map +1 -0
- package/lib/typescript/src/hooks/index.d.ts +10 -0
- package/lib/typescript/src/hooks/index.d.ts.map +1 -0
- package/lib/typescript/src/hooks/queryKeys.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useAppVersionCheck.d.ts.map +1 -1
- package/lib/typescript/src/{auth/hooks/useAuthentication.d.ts → hooks/useAuth.d.ts} +2 -2
- package/lib/typescript/src/hooks/useAuth.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useAuthenticateRequests.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useBusinesses.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useCreateBusiness.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useCustomer.d.ts +6 -2
- package/lib/typescript/src/hooks/useCustomer.d.ts.map +1 -1
- package/lib/typescript/src/hooks/useDeactivateAccount.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useLogout.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useTermsOfService.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +6 -11
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/localization/index.d.ts +90 -0
- package/lib/typescript/src/localization/index.d.ts.map +1 -0
- package/lib/typescript/src/providers/authentication/AuthenticationProvider.d.ts.map +1 -0
- package/lib/typescript/src/providers/authentication/actions/authentication.actions.d.ts.map +1 -0
- package/lib/typescript/src/providers/authentication/reducer/authentication.reducer.d.ts.map +1 -0
- package/lib/typescript/src/providers/authentication/types/authentication.types.d.ts.map +1 -0
- package/lib/typescript/src/providers/index.d.ts +3 -0
- package/lib/typescript/src/providers/index.d.ts.map +1 -0
- package/lib/typescript/src/{auth/screens → screens/Auth}/ChangePassword.d.ts.map +1 -1
- package/lib/typescript/src/screens/Auth/Login.d.ts.map +1 -0
- package/lib/typescript/src/screens/Auth/LoginWithEmail.d.ts.map +1 -0
- package/lib/typescript/src/{auth/screens → screens/Auth}/LoginWithPhoneNumber.d.ts.map +1 -1
- package/lib/typescript/src/screens/Auth/ResetPassword.d.ts.map +1 -0
- package/lib/typescript/src/{auth/screens → screens/Auth}/ResetPasswordInstructionsSent.d.ts.map +1 -1
- package/lib/typescript/src/screens/Auth/SignUp.d.ts.map +1 -0
- package/lib/typescript/src/{auth/screens → screens/Auth}/SignUpPassword.d.ts.map +1 -1
- package/lib/typescript/src/{auth/screens → screens/Auth}/VerifyPhoneNumber.d.ts.map +1 -1
- package/lib/typescript/src/{auth/screens → screens/Auth}/VerifyPhoneNumberForLogin.d.ts.map +1 -1
- package/lib/typescript/src/{auth/screens/index.d.ts → screens/Auth/navigators.d.ts} +1 -1
- package/lib/typescript/src/screens/Auth/navigators.d.ts.map +1 -0
- package/lib/typescript/src/{auth/screens → screens/Auth}/validators.d.ts.map +1 -1
- package/lib/typescript/src/screens/SavedCards/CardRow.d.ts +1 -1
- package/lib/typescript/src/screens/SavedCards/CardRow.d.ts.map +1 -1
- package/lib/typescript/src/screens/SavedCards/SavedCards.d.ts +1 -1
- package/lib/typescript/src/screens/SavedCards/SavedCards.d.ts.map +1 -1
- package/lib/typescript/src/screens/SelectBusiness/CreateBusinessBottomSheet.d.ts.map +1 -0
- package/lib/typescript/src/screens/SelectBusiness/SelectBusiness.d.ts.map +1 -0
- package/lib/typescript/src/screens/TermsOfService/TermsOfService.d.ts.map +1 -0
- package/lib/typescript/src/screens/index.d.ts +5 -0
- package/lib/typescript/src/screens/index.d.ts.map +1 -0
- package/lib/typescript/src/utils/checkout.d.ts +1 -1
- package/lib/typescript/src/utils/checkout.d.ts.map +1 -1
- package/lib/typescript/src/utils/index.d.ts +4 -0
- package/lib/typescript/src/utils/index.d.ts.map +1 -1
- package/package.json +2 -1
- package/src/{auth/api → api}/authentication.ts +6 -2
- package/src/api/customer.ts +6 -4
- package/src/assets/icons/alert.svg +4 -0
- package/src/components/Alert.tsx +1 -1
- package/src/components/DelayedRender.tsx +2 -2
- package/src/components/SelectionDialog.tsx +1 -1
- package/src/components/Snackbar.tsx +1 -1
- package/src/helpers/index.ts +1 -0
- package/src/hooks/index.ts +9 -0
- package/src/hooks/useAppVersionCheck.ts +7 -6
- package/src/{auth/hooks/useAuthentication.ts → hooks/useAuth.ts} +9 -12
- package/src/{auth/hooks → hooks}/useAuthenticateRequests.ts +1 -1
- package/src/{selectBusiness → hooks}/useCreateBusiness.ts +1 -1
- package/src/hooks/useCustomer.ts +7 -7
- package/src/{auth/hooks → hooks}/useDeactivateAccount.ts +3 -3
- package/src/{auth/hooks → hooks}/useLogout.ts +2 -2
- package/src/{auth/hooks → hooks}/useTermsOfService.ts +4 -4
- package/src/index.tsx +6 -22
- package/src/localization/index.ts +4 -0
- package/src/localization/translations/en.json +87 -0
- package/src/providers/index.ts +6 -0
- package/src/{auth/screens → screens/Auth}/ChangePassword.tsx +13 -14
- package/src/{auth/screens → screens/Auth}/Login.tsx +2 -2
- package/src/{auth/screens → screens/Auth}/LoginWithEmail.tsx +7 -7
- package/src/{auth/screens → screens/Auth}/LoginWithPhoneNumber.tsx +5 -5
- package/src/{auth/screens → screens/Auth}/ResetPassword.tsx +46 -8
- package/src/{auth/screens → screens/Auth}/ResetPasswordInstructionsSent.tsx +2 -2
- package/src/{auth/screens → screens/Auth}/SignUp.tsx +11 -12
- package/src/{auth/screens → screens/Auth}/SignUpPassword.tsx +11 -11
- package/src/{auth/screens → screens/Auth}/VerifyPhoneNumber.tsx +6 -6
- package/src/{auth/screens → screens/Auth}/VerifyPhoneNumberForLogin.tsx +6 -7
- package/src/{auth/screens → screens/Auth}/validators.ts +20 -20
- package/src/screens/SavedCards/CardRow.tsx +5 -5
- package/src/screens/SavedCards/SavedCards.tsx +6 -6
- package/src/{selectBusiness → screens/SelectBusiness}/CreateBusinessBottomSheet.tsx +6 -6
- package/src/{selectBusiness → screens/SelectBusiness}/SelectBusiness.tsx +9 -10
- package/src/{auth/screens → screens/TermsOfService}/TermsOfService.tsx +10 -8
- package/src/screens/index.ts +4 -0
- package/src/utils/checkout.ts +1 -1
- package/src/utils/index.ts +11 -0
- package/lib/commonjs/auth/api/authentication.js.map +0 -1
- package/lib/commonjs/auth/hooks/useAuthenticateRequests.js.map +0 -1
- package/lib/commonjs/auth/hooks/useAuthentication.js.map +0 -1
- package/lib/commonjs/auth/hooks/useDeactivateAccount.js.map +0 -1
- package/lib/commonjs/auth/hooks/useLogout.js.map +0 -1
- package/lib/commonjs/auth/hooks/useTermsOfService.js.map +0 -1
- package/lib/commonjs/auth/index.js +0 -65
- package/lib/commonjs/auth/index.js.map +0 -1
- package/lib/commonjs/auth/providers/authentication/AuthenticationProvider.js.map +0 -1
- package/lib/commonjs/auth/providers/authentication/actions/authentication.actions.js.map +0 -1
- package/lib/commonjs/auth/providers/authentication/index.js +0 -50
- package/lib/commonjs/auth/providers/authentication/index.js.map +0 -1
- package/lib/commonjs/auth/providers/authentication/reducer/authentication.reducer.js.map +0 -1
- package/lib/commonjs/auth/providers/authentication/types/authentication.types.js.map +0 -1
- package/lib/commonjs/auth/screens/LoginWithPhoneNumber.js.map +0 -1
- package/lib/commonjs/auth/screens/ResetPassword.js.map +0 -1
- package/lib/commonjs/auth/screens/SignUp.js.map +0 -1
- package/lib/commonjs/auth/screens/SignUpPassword.js.map +0 -1
- package/lib/commonjs/auth/screens/TermsOfService.js.map +0 -1
- package/lib/commonjs/auth/screens/VerifyPhoneNumber.js.map +0 -1
- package/lib/commonjs/auth/screens/VerifyPhoneNumberForLogin.js.map +0 -1
- package/lib/commonjs/auth/screens/index.js.map +0 -1
- package/lib/commonjs/auth/screens/validators.js.map +0 -1
- package/lib/commonjs/selectBusiness/CreateBusinessBottomSheet.js.map +0 -1
- package/lib/commonjs/selectBusiness/SelectBusiness.js.map +0 -1
- package/lib/commonjs/selectBusiness/index.js +0 -20
- package/lib/commonjs/selectBusiness/index.js.map +0 -1
- package/lib/commonjs/selectBusiness/queryKeys.js.map +0 -1
- package/lib/commonjs/selectBusiness/useBusinesses.js.map +0 -1
- package/lib/commonjs/selectBusiness/useCreateBusiness.js.map +0 -1
- package/lib/commonjs/types/customer.d.js +0 -7
- package/lib/commonjs/types/customer.d.js.map +0 -1
- package/lib/module/auth/api/authentication.js.map +0 -1
- package/lib/module/auth/hooks/useAuthenticateRequests.js.map +0 -1
- package/lib/module/auth/hooks/useAuthentication.js.map +0 -1
- package/lib/module/auth/hooks/useDeactivateAccount.js.map +0 -1
- package/lib/module/auth/hooks/useLogout.js.map +0 -1
- package/lib/module/auth/hooks/useTermsOfService.js.map +0 -1
- package/lib/module/auth/index.js +0 -7
- package/lib/module/auth/index.js.map +0 -1
- package/lib/module/auth/providers/authentication/AuthenticationProvider.js.map +0 -1
- package/lib/module/auth/providers/authentication/actions/authentication.actions.js.map +0 -1
- package/lib/module/auth/providers/authentication/index.js +0 -5
- package/lib/module/auth/providers/authentication/index.js.map +0 -1
- package/lib/module/auth/providers/authentication/reducer/authentication.reducer.js.map +0 -1
- package/lib/module/auth/providers/authentication/types/authentication.types.js.map +0 -1
- package/lib/module/auth/screens/LoginWithPhoneNumber.js.map +0 -1
- package/lib/module/auth/screens/ResetPassword.js.map +0 -1
- package/lib/module/auth/screens/SignUp.js.map +0 -1
- package/lib/module/auth/screens/SignUpPassword.js.map +0 -1
- package/lib/module/auth/screens/TermsOfService.js.map +0 -1
- package/lib/module/auth/screens/VerifyPhoneNumber.js.map +0 -1
- package/lib/module/auth/screens/VerifyPhoneNumberForLogin.js.map +0 -1
- package/lib/module/auth/screens/index.js.map +0 -1
- package/lib/module/auth/screens/validators.js +0 -45
- package/lib/module/auth/screens/validators.js.map +0 -1
- package/lib/module/selectBusiness/CreateBusinessBottomSheet.js.map +0 -1
- package/lib/module/selectBusiness/SelectBusiness.js.map +0 -1
- package/lib/module/selectBusiness/index.js +0 -3
- package/lib/module/selectBusiness/index.js.map +0 -1
- package/lib/module/selectBusiness/queryKeys.js.map +0 -1
- package/lib/module/selectBusiness/useBusinesses.js.map +0 -1
- package/lib/module/selectBusiness/useCreateBusiness.js.map +0 -1
- package/lib/module/types/customer.d.js +0 -5
- package/lib/module/types/customer.d.js.map +0 -1
- package/lib/typescript/src/auth/api/authentication.d.ts.map +0 -1
- package/lib/typescript/src/auth/hooks/useAuthenticateRequests.d.ts.map +0 -1
- package/lib/typescript/src/auth/hooks/useAuthentication.d.ts.map +0 -1
- package/lib/typescript/src/auth/hooks/useDeactivateAccount.d.ts.map +0 -1
- package/lib/typescript/src/auth/hooks/useLogout.d.ts.map +0 -1
- package/lib/typescript/src/auth/hooks/useTermsOfService.d.ts.map +0 -1
- package/lib/typescript/src/auth/index.d.ts +0 -7
- package/lib/typescript/src/auth/index.d.ts.map +0 -1
- package/lib/typescript/src/auth/providers/authentication/AuthenticationProvider.d.ts.map +0 -1
- package/lib/typescript/src/auth/providers/authentication/actions/authentication.actions.d.ts.map +0 -1
- package/lib/typescript/src/auth/providers/authentication/index.d.ts +0 -5
- package/lib/typescript/src/auth/providers/authentication/index.d.ts.map +0 -1
- package/lib/typescript/src/auth/providers/authentication/reducer/authentication.reducer.d.ts.map +0 -1
- package/lib/typescript/src/auth/providers/authentication/types/authentication.types.d.ts.map +0 -1
- package/lib/typescript/src/auth/screens/Login.d.ts.map +0 -1
- package/lib/typescript/src/auth/screens/LoginWithEmail.d.ts.map +0 -1
- package/lib/typescript/src/auth/screens/ResetPassword.d.ts.map +0 -1
- package/lib/typescript/src/auth/screens/SignUp.d.ts.map +0 -1
- package/lib/typescript/src/auth/screens/TermsOfService.d.ts.map +0 -1
- package/lib/typescript/src/auth/screens/index.d.ts.map +0 -1
- package/lib/typescript/src/selectBusiness/CreateBusinessBottomSheet.d.ts.map +0 -1
- package/lib/typescript/src/selectBusiness/SelectBusiness.d.ts.map +0 -1
- package/lib/typescript/src/selectBusiness/index.d.ts +0 -3
- package/lib/typescript/src/selectBusiness/index.d.ts.map +0 -1
- package/lib/typescript/src/selectBusiness/queryKeys.d.ts.map +0 -1
- package/lib/typescript/src/selectBusiness/useBusinesses.d.ts.map +0 -1
- package/lib/typescript/src/selectBusiness/useCreateBusiness.d.ts.map +0 -1
- package/src/auth/index.ts +0 -10
- package/src/auth/providers/authentication/index.ts +0 -4
- package/src/selectBusiness/index.ts +0 -2
- package/src/types/customer.d.ts +0 -70
- /package/lib/commonjs/{auth/api → api}/authentication.js +0 -0
- /package/lib/commonjs/{selectBusiness → hooks}/queryKeys.js +0 -0
- /package/lib/commonjs/{selectBusiness → hooks}/useBusinesses.js +0 -0
- /package/lib/commonjs/{auth/providers → providers}/authentication/AuthenticationProvider.js +0 -0
- /package/lib/commonjs/{auth/providers → providers}/authentication/actions/authentication.actions.js +0 -0
- /package/lib/commonjs/{auth/providers → providers}/authentication/reducer/authentication.reducer.js +0 -0
- /package/lib/commonjs/{auth/providers → providers}/authentication/types/authentication.types.js +0 -0
- /package/lib/module/{auth/api → api}/authentication.js +0 -0
- /package/lib/module/{selectBusiness → hooks}/queryKeys.js +0 -0
- /package/lib/module/{selectBusiness → hooks}/useBusinesses.js +0 -0
- /package/lib/module/{auth/providers → providers}/authentication/AuthenticationProvider.js +0 -0
- /package/lib/module/{auth/providers → providers}/authentication/actions/authentication.actions.js +0 -0
- /package/lib/module/{auth/providers → providers}/authentication/reducer/authentication.reducer.js +0 -0
- /package/lib/module/{auth/providers → providers}/authentication/types/authentication.types.js +0 -0
- /package/lib/typescript/src/{selectBusiness → hooks}/queryKeys.d.ts +0 -0
- /package/lib/typescript/src/{auth/hooks → hooks}/useAuthenticateRequests.d.ts +0 -0
- /package/lib/typescript/src/{selectBusiness → hooks}/useBusinesses.d.ts +0 -0
- /package/lib/typescript/src/{selectBusiness → hooks}/useCreateBusiness.d.ts +0 -0
- /package/lib/typescript/src/{auth/hooks → hooks}/useDeactivateAccount.d.ts +0 -0
- /package/lib/typescript/src/{auth/hooks → hooks}/useLogout.d.ts +0 -0
- /package/lib/typescript/src/{auth/hooks → hooks}/useTermsOfService.d.ts +0 -0
- /package/lib/typescript/src/{auth/providers → providers}/authentication/AuthenticationProvider.d.ts +0 -0
- /package/lib/typescript/src/{auth/providers → providers}/authentication/actions/authentication.actions.d.ts +0 -0
- /package/lib/typescript/src/{auth/providers → providers}/authentication/reducer/authentication.reducer.d.ts +0 -0
- /package/lib/typescript/src/{auth/providers → providers}/authentication/types/authentication.types.d.ts +0 -0
- /package/lib/typescript/src/{auth/screens → screens/Auth}/ChangePassword.d.ts +0 -0
- /package/lib/typescript/src/{auth/screens → screens/Auth}/Login.d.ts +0 -0
- /package/lib/typescript/src/{auth/screens → screens/Auth}/LoginWithEmail.d.ts +0 -0
- /package/lib/typescript/src/{auth/screens → screens/Auth}/LoginWithPhoneNumber.d.ts +0 -0
- /package/lib/typescript/src/{auth/screens → screens/Auth}/ResetPassword.d.ts +0 -0
- /package/lib/typescript/src/{auth/screens → screens/Auth}/ResetPasswordInstructionsSent.d.ts +0 -0
- /package/lib/typescript/src/{auth/screens → screens/Auth}/SignUp.d.ts +0 -0
- /package/lib/typescript/src/{auth/screens → screens/Auth}/SignUpPassword.d.ts +0 -0
- /package/lib/typescript/src/{auth/screens → screens/Auth}/VerifyPhoneNumber.d.ts +0 -0
- /package/lib/typescript/src/{auth/screens → screens/Auth}/VerifyPhoneNumberForLogin.d.ts +0 -0
- /package/lib/typescript/src/{auth/screens → screens/Auth}/validators.d.ts +0 -0
- /package/lib/typescript/src/{selectBusiness → screens/SelectBusiness}/CreateBusinessBottomSheet.d.ts +0 -0
- /package/lib/typescript/src/{selectBusiness → screens/SelectBusiness}/SelectBusiness.d.ts +0 -0
- /package/lib/typescript/src/{auth/screens → screens/TermsOfService}/TermsOfService.d.ts +0 -0
- /package/src/{selectBusiness → hooks}/queryKeys.ts +0 -0
- /package/src/{selectBusiness → hooks}/useBusinesses.ts +0 -0
- /package/src/{auth/providers → providers}/authentication/AuthenticationProvider.tsx +0 -0
- /package/src/{auth/providers → providers}/authentication/actions/authentication.actions.ts +0 -0
- /package/src/{auth/providers → providers}/authentication/reducer/authentication.reducer.ts +0 -0
- /package/src/{auth/providers → providers}/authentication/types/authentication.types.ts +0 -0
- /package/src/{auth/screens/index.tsx → screens/Auth/navigators.tsx} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"queryKeys.d.ts","sourceRoot":"","sources":["../../../../src/hooks/queryKeys.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS;;;;;;;;;CASrB,CAAC;AAEF,eAAO,MAAM,kBAAkB,QAAmB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAppVersionCheck.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useAppVersionCheck.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,IAAI,gBAAgB,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"useAppVersionCheck.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useAppVersionCheck.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,IAAI,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAG1D,eAAO,MAAM,kBAAkB;WAGtB,uBAAuB;UAiF/B,CAAC"}
|
|
@@ -5,7 +5,7 @@ export type TUserData = {
|
|
|
5
5
|
name: string;
|
|
6
6
|
password: string;
|
|
7
7
|
};
|
|
8
|
-
export declare const
|
|
8
|
+
export declare const useAuth: () => {
|
|
9
9
|
useSignUp: () => import("@tanstack/react-query").UseMutationResult<void, Error, {
|
|
10
10
|
params: TUserData;
|
|
11
11
|
code: string;
|
|
@@ -27,4 +27,4 @@ export declare const useAuthentication: () => {
|
|
|
27
27
|
email: string;
|
|
28
28
|
}, unknown>;
|
|
29
29
|
};
|
|
30
|
-
//# sourceMappingURL=
|
|
30
|
+
//# sourceMappingURL=useAuth.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAuth.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useAuth.ts"],"names":[],"mappings":"AAmBA,MAAM,MAAM,SAAS,GAAG;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,eAAO,MAAM,OAAO;;gBAQuB,SAAS;cAAQ,MAAM;;;;;;;;;cAuDvB,MAAM;;;qBAUQ,MAAM;;;;eAmClB,MAAM;;CAqBlD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAuthenticateRequests.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useAuthenticateRequests.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,uBAAuB,aACxB,MAAM,QAAQ,MAAM,GAAG,IAAI,CAAC,SAoDvC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useBusinesses.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useBusinesses.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,eAAe,wDAE3B,CAAC;AAEF,eAAO,MAAM,aAAa;QAOd,MAAM;UACJ,MAAM;aAmBnB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useCreateBusiness.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useCreateBusiness.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,iBAAiB;eAAgC,MAAM,IAAI;oFAavE,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Address,
|
|
1
|
+
import { Address, SaveCardRequest } from '@kiosinc/commons-types';
|
|
2
2
|
export declare const useCustomerQueries: () => {
|
|
3
3
|
useFetchCustomer: () => import("@tanstack/react-query").UseQueryResult<any, unknown>;
|
|
4
4
|
useCreateCustomer: () => {
|
|
@@ -12,7 +12,11 @@ export declare const useCustomerQueries: () => {
|
|
|
12
12
|
updateCustomer: import("@tanstack/react-query").UseMutateFunction<void, {
|
|
13
13
|
code: string;
|
|
14
14
|
message: string;
|
|
15
|
-
},
|
|
15
|
+
}, {
|
|
16
|
+
addressId: string | null;
|
|
17
|
+
paymentId: string | null;
|
|
18
|
+
squareCustomerId: string | null;
|
|
19
|
+
}, unknown>;
|
|
16
20
|
updateCustomerLoading: boolean;
|
|
17
21
|
};
|
|
18
22
|
useSaveCustomerAddress: () => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCustomer.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useCustomer.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useCustomer.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useCustomer.ts"],"names":[],"mappings":"AAqBA,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAElE,eAAO,MAAM,kBAAkB;;;;kBAyCE,MAAM;qBAAW,MAAM;;;;;;kBAgCvB,MAAM;qBAAW,MAAM;;uBAhBnC,MAAM,GAAG,IAAI;uBACb,MAAM,GAAG,IAAI;8BACN,MAAM,GAAG,IAAI;;;;;;kBA0CR,MAAM;qBAAW,MAAM;;;;;2CAsCb,MAAM;2CAwBN,MAAM;;;kBA0BhB,MAAM;qBAAW,MAAM;;;;;;kBA6BvB,MAAM;qBAAW,MAAM;;;;;;kBA4BvB,MAAM;qBAAW,MAAM;;;;;;kBA4BvB,MAAM;qBAAW,MAAM;;;;;CA+BvD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDeactivateAccount.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useDeactivateAccount.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,oBAAoB,sFAehC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useLogout.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useLogout.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,SAAS;;CAiBrB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useTermsOfService.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useTermsOfService.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,iBAAiB;;;;CA0E7B,CAAC"}
|
|
@@ -1,13 +1,8 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export { Currency } from './utils/currency';
|
|
4
|
-
export { useCustomerQueries } from './hooks/useCustomer';
|
|
5
|
-
export { useCheckCustomer } from './hooks/useCheckCustomer';
|
|
6
|
-
export { SavedCards } from './screens/SavedCards/SavedCards';
|
|
7
|
-
export { useMultiSnapBottomSheetRef, TMultiSnapBottomSheetRef, } from './utils/useMultiSnapBottomSheetRef';
|
|
8
|
-
export { useSingleSnapBottomSheetRef, TSingleSnapBottomSheetRef, } from './utils/useSingleSnapBottomSheetRef';
|
|
1
|
+
export * from './hooks';
|
|
2
|
+
export * from './screens';
|
|
9
3
|
export * from './components';
|
|
10
|
-
export * from './
|
|
11
|
-
export * from './
|
|
12
|
-
export
|
|
4
|
+
export * from './localization';
|
|
5
|
+
export * from './utils';
|
|
6
|
+
export * from './helpers';
|
|
7
|
+
export * from './providers';
|
|
13
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
export declare const translations: {
|
|
2
|
+
en: {
|
|
3
|
+
commons: {
|
|
4
|
+
ok: string;
|
|
5
|
+
close: string;
|
|
6
|
+
create: string;
|
|
7
|
+
update: string;
|
|
8
|
+
cancel: string;
|
|
9
|
+
delete: string;
|
|
10
|
+
continue: string;
|
|
11
|
+
logIn: string;
|
|
12
|
+
forgotPassword: string;
|
|
13
|
+
newToApp: string;
|
|
14
|
+
signUp: string;
|
|
15
|
+
email: string;
|
|
16
|
+
password: string;
|
|
17
|
+
requiredPassword: string;
|
|
18
|
+
enterYour: string;
|
|
19
|
+
resetPassword: string;
|
|
20
|
+
resetPasswordInstructionSent: string;
|
|
21
|
+
backToLogin: string;
|
|
22
|
+
createAccountTitle: string;
|
|
23
|
+
createAccount: string;
|
|
24
|
+
businessName: string;
|
|
25
|
+
businessNameRequired: string;
|
|
26
|
+
displayName: string;
|
|
27
|
+
displayNameRequired: string;
|
|
28
|
+
phoneNumber: string;
|
|
29
|
+
requiredPhoneNumber: string;
|
|
30
|
+
passwordMustContain: string;
|
|
31
|
+
minLength: string;
|
|
32
|
+
"1lowerChar": string;
|
|
33
|
+
"1upperChar": string;
|
|
34
|
+
"1number": string;
|
|
35
|
+
"1special": string;
|
|
36
|
+
validEmail: string;
|
|
37
|
+
requiredEmailForLogin: string;
|
|
38
|
+
requiredEmailForSignUp: string;
|
|
39
|
+
byContinue: string;
|
|
40
|
+
termsAndConditions: string;
|
|
41
|
+
and: string;
|
|
42
|
+
privacyPolicy: string;
|
|
43
|
+
createPassword: string;
|
|
44
|
+
verifyYourNumber: string;
|
|
45
|
+
loginWithNumber: string;
|
|
46
|
+
codeSent: string;
|
|
47
|
+
resendCode: string;
|
|
48
|
+
userDoesNotExist: string;
|
|
49
|
+
wrongCredentials: string;
|
|
50
|
+
deactivationSuccess: string;
|
|
51
|
+
wrongOTP: string;
|
|
52
|
+
passwordChangeSuccess: string;
|
|
53
|
+
newPassword: string;
|
|
54
|
+
currentPassword: string;
|
|
55
|
+
changePassword: string;
|
|
56
|
+
wrongPassword: string;
|
|
57
|
+
wrongPasswordDesc: string;
|
|
58
|
+
resetPasswordWarningAlert: {
|
|
59
|
+
title: string;
|
|
60
|
+
description: string;
|
|
61
|
+
};
|
|
62
|
+
appUpdateAlert: {
|
|
63
|
+
title: string;
|
|
64
|
+
description: string;
|
|
65
|
+
};
|
|
66
|
+
addCard: string;
|
|
67
|
+
noSavedCards: string;
|
|
68
|
+
paymentMethods: string;
|
|
69
|
+
payment: string;
|
|
70
|
+
payAndPlaceOrder: string;
|
|
71
|
+
payByCard: string;
|
|
72
|
+
confirmCardDelete: string;
|
|
73
|
+
cardDeleteDesc: string;
|
|
74
|
+
total: string;
|
|
75
|
+
createBusiness: string;
|
|
76
|
+
selectBusiness: string;
|
|
77
|
+
searchBusiness: string;
|
|
78
|
+
noBusiness: string;
|
|
79
|
+
logout: string;
|
|
80
|
+
termsOfServiceModal: {
|
|
81
|
+
title: string;
|
|
82
|
+
description: string;
|
|
83
|
+
review: string;
|
|
84
|
+
};
|
|
85
|
+
termsTitle: string;
|
|
86
|
+
acceptTerms: string;
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/localization/index.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAExB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AuthenticationProvider.d.ts","sourceRoot":"","sources":["../../../../../src/providers/authentication/AuthenticationProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAGZ,KAAK,EAAE,EAKR,MAAM,OAAO,CAAC;AAGf,OAAO,EACL,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACzB,MAAM,8BAA8B,CAAC;AAQtC,eAAO,MAAM,iBAAiB,2BAC4B,CAAC;AAC3D,eAAO,MAAM,yBAAyB,4CACuC,CAAC;AAE9E,eAAO,MAAM,sBAAsB,EAAE,EAAE,CAAC;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,CAyCpE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"authentication.actions.d.ts","sourceRoot":"","sources":["../../../../../../src/providers/authentication/actions/authentication.actions.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,oBAAoB,EAEzB,KAAK,IAAI,EACV,MAAM,+BAA+B,CAAC;AAEvC,eAAO,MAAM,UAAU,SAAU,IAAI,GAAG,IAAI,KAAG,oBAG7C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"authentication.reducer.d.ts","sourceRoot":"","sources":["../../../../../../src/providers/authentication/reducer/authentication.reducer.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,oBAAoB,EAEzB,KAAK,mBAAmB,EACzB,MAAM,+BAA+B,CAAC;AAoBvC,eAAO,MAAM,qBAAqB,UACzB,mBAAmB,UAClB,oBAAoB,KAC3B,mBAYF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"authentication.types.d.ts","sourceRoot":"","sources":["../../../../../../src/providers/authentication/types/authentication.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAChE,MAAM,MAAM,kBAAkB,GAAG,iBAAiB,CAAC,kBAAkB,CAAC;AACtE,MAAM,MAAM,IAAI,GAAG,iBAAiB,CAAC,IAAI,CAAC;AAE1C,oBAAY,wBAAwB;IAClC,UAAU,eAAe;CAC1B;AAED,MAAM,MAAM,oBAAoB,GAAG;IACjC,IAAI,EAAE,wBAAwB,CAAC,UAAU,CAAC;IAC1C,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;CACnB,CAAC;AAEF,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;IAClB,YAAY,EAAE,OAAO,CAAC;IACtB,UAAU,EAAE,OAAO,CAAC;CACrB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/providers/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iDAAiD,CAAC;AAC7E,OAAO,EACL,iBAAiB,EACjB,yBAAyB,EACzB,sBAAsB,GACvB,MAAM,yCAAyC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChangePassword.d.ts","sourceRoot":"","sources":["../../../../../src/
|
|
1
|
+
{"version":3,"file":"ChangePassword.d.ts","sourceRoot":"","sources":["../../../../../src/screens/Auth/ChangePassword.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAgBxC,OAAO,EAAE,SAAS,EAAiB,MAAM,0BAA0B,CAAC;AAGpE,MAAM,MAAM,aAAa,GAAG;IAC1B,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,KAAK,mBAAmB,GAAG;IACzB,KAAK,EAAE,SAAS,CAAC,aAAa,EAAE,gBAAgB,CAAC,CAAC;CACnD,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAoJxD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Login.d.ts","sourceRoot":"","sources":["../../../../../src/screens/Auth/Login.tsx"],"names":[],"mappings":";AAkCA,eAAO,MAAM,KAAK,mBAsEjB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LoginWithEmail.d.ts","sourceRoot":"","sources":["../../../../../src/screens/Auth/LoginWithEmail.tsx"],"names":[],"mappings":";AAyBA,eAAO,MAAM,cAAc,mBAyH1B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LoginWithPhoneNumber.d.ts","sourceRoot":"","sources":["../../../../../src/
|
|
1
|
+
{"version":3,"file":"LoginWithPhoneNumber.d.ts","sourceRoot":"","sources":["../../../../../src/screens/Auth/LoginWithPhoneNumber.tsx"],"names":[],"mappings":";AAiBA,eAAO,MAAM,oBAAoB,mBAmFhC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ResetPassword.d.ts","sourceRoot":"","sources":["../../../../../src/screens/Auth/ResetPassword.tsx"],"names":[],"mappings":";AA4BA,eAAO,MAAM,aAAa,mBAiGzB,CAAC"}
|
package/lib/typescript/src/{auth/screens → screens/Auth}/ResetPasswordInstructionsSent.d.ts.map
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResetPasswordInstructionsSent.d.ts","sourceRoot":"","sources":["../../../../../src/
|
|
1
|
+
{"version":3,"file":"ResetPasswordInstructionsSent.d.ts","sourceRoot":"","sources":["../../../../../src/screens/Auth/ResetPasswordInstructionsSent.tsx"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,SAAS,EAEf,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,KAAK,iCAAiC,GAAG;IACvC,KAAK,EAAE,SAAS,CAAC,aAAa,EAAE,8BAA8B,CAAC,CAAC;CACjE,CAAC;AAEF,eAAO,MAAM,4BAA4B,EAAE,KAAK,CAAC,EAAE,CACjD,iCAAiC,CAsBlC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SignUp.d.ts","sourceRoot":"","sources":["../../../../../src/screens/Auth/SignUp.tsx"],"names":[],"mappings":";AA0BA,MAAM,MAAM,SAAS,GAAG;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,eAAO,MAAM,MAAM,mBAwJlB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SignUpPassword.d.ts","sourceRoot":"","sources":["../../../../../src/
|
|
1
|
+
{"version":3,"file":"SignUpPassword.d.ts","sourceRoot":"","sources":["../../../../../src/screens/Auth/SignUpPassword.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,KAAK,MAAM,OAAO,CAAC;AAW1B,KAAK,mBAAmB,GAAG;IACzB,KAAK,EAAE,SAAS,CAAC,aAAa,EAAE,gBAAgB,CAAC,CAAC;CACnD,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAyGxD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VerifyPhoneNumber.d.ts","sourceRoot":"","sources":["../../../../../src/
|
|
1
|
+
{"version":3,"file":"VerifyPhoneNumber.d.ts","sourceRoot":"","sources":["../../../../../src/screens/Auth/VerifyPhoneNumber.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,KAAK,MAAM,OAAO,CAAC;AAW1B,KAAK,sBAAsB,GAAG;IAC5B,KAAK,EAAE,SAAS,CAAC,aAAa,EAAE,mBAAmB,CAAC,CAAC;CACtD,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CAmF9D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VerifyPhoneNumberForLogin.d.ts","sourceRoot":"","sources":["../../../../../src/
|
|
1
|
+
{"version":3,"file":"VerifyPhoneNumberForLogin.d.ts","sourceRoot":"","sources":["../../../../../src/screens/Auth/VerifyPhoneNumberForLogin.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,KAAK,MAAM,OAAO,CAAC;AAW1B,KAAK,8BAA8B,GAAG;IACpC,KAAK,EAAE,SAAS,CAAC,aAAa,EAAE,2BAA2B,CAAC,CAAC;CAC9D,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,KAAK,CAAC,EAAE,CAC9C,8BAA8B,CAmF/B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"navigators.d.ts","sourceRoot":"","sources":["../../../../../src/screens/Auth/navigators.tsx"],"names":[],"mappings":";AAUA,eAAO,MAAM,mBAAmB,cAAe,GAAG,gBAqBjD,CAAC;AAEF,eAAO,MAAM,kBAAkB,cAAe,GAAG,gBAMhD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validators.d.ts","sourceRoot":"","sources":["../../../../../src/
|
|
1
|
+
{"version":3,"file":"validators.d.ts","sourceRoot":"","sources":["../../../../../src/screens/Auth/validators.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,KAAK,CAAC;AAE3B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAqDzC,eAAO,MAAM,sCAAsC,MAAO,SAAS;;;;;;;;;;MAM/D,CAAC;AAEL,eAAO,MAAM,yCAAyC,MAAO,SAAS;;;;;;;;MAKlE,CAAC;AAEL,eAAO,MAAM,qBAAqB,MAAO,SAAS;;;;;;MAI9C,CAAC;AAEL,eAAO,MAAM,oCAAoC;OAI5C,SAAS;gBACA,OAAO;;;;;MAQjB,CAAC;AAEL,eAAO,MAAM,6BAA6B,MAAO,SAAS;;;;MAGtD,CAAC;AAEL,eAAO,MAAM,4BAA4B;;;;MAEvC,CAAC;AAEH,eAAO,MAAM,0BAA0B,MAAO,SAAS;;;;MAGnD,CAAC;AAEL,eAAO,MAAM,oBAAoB,MAAO,SAAS;;;;;;MAI7C,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { CustomerCardPayment } from '
|
|
2
|
+
import { CustomerCardPayment } from '@kiosinc/commons-types';
|
|
3
3
|
export declare const CardRow: ({ card, onDelete, onSelect, isSelectable, isSelected, isDisabled, }: {
|
|
4
4
|
card: CustomerCardPayment;
|
|
5
5
|
onDelete: (id: string) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CardRow.d.ts","sourceRoot":"","sources":["../../../../../src/screens/SavedCards/CardRow.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAE,mBAAmB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"CardRow.d.ts","sourceRoot":"","sources":["../../../../../src/screens/SavedCards/CardRow.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAE7D,eAAO,MAAM,OAAO;UAQZ,mBAAmB;mBACV,MAAM,KAAK,IAAI;+BACH,MAAM,KAAK,IAAI;kBAC5B,OAAO;gBACT,OAAO;gBACP,OAAO;iBAyEpB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { CustomerCardPayment } from '
|
|
2
|
+
import { CustomerCardPayment } from '@kiosinc/commons-types';
|
|
3
3
|
export declare const SavedCards: ({ onCheckout, total, }: {
|
|
4
4
|
onCheckout?: ((selectedCard: CustomerCardPayment) => void) | undefined;
|
|
5
5
|
total?: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SavedCards.d.ts","sourceRoot":"","sources":["../../../../../src/screens/SavedCards/SavedCards.tsx"],"names":[],"mappings":";AAiBA,OAAO,EAAE,mBAAmB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"SavedCards.d.ts","sourceRoot":"","sources":["../../../../../src/screens/SavedCards/SavedCards.tsx"],"names":[],"mappings":";AAiBA,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAE7D,eAAO,MAAM,UAAU;iCAIO,mBAAmB,KAAK,IAAI;;iBA6KzD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CreateBusinessBottomSheet.d.ts","sourceRoot":"","sources":["../../../../../src/screens/SelectBusiness/CreateBusinessBottomSheet.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkD,MAAM,OAAO,CAAC;AAavE,KAAK,8BAA8B,GAAG;IACpC,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB,CAAC;AAEF,eAAO,MAAM,yBAAyB,gGA2DrC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SelectBusiness.d.ts","sourceRoot":"","sources":["../../../../../src/screens/SelectBusiness/SelectBusiness.tsx"],"names":[],"mappings":";AA4DA,eAAO,MAAM,cAAc,mBA8H1B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TermsOfService.d.ts","sourceRoot":"","sources":["../../../../../src/screens/TermsOfService/TermsOfService.tsx"],"names":[],"mappings":";AAcA,OAAO,EACL,yBAAyB,EAE1B,MAAM,yCAAyC,CAAC;AAIjD,KAAK,qBAAqB,GAAG;IAC3B,cAAc,EAAE,yBAAyB,CAAC;CAC3C,CAAC;AAEF,eAAO,MAAM,gBAAgB,uBAAwB,qBAAqB,gBA0BzE,CAAC;AAEF,eAAO,MAAM,cAAc,mBA8D1B,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
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';
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/screens/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACjE,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACjE,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkout.d.ts","sourceRoot":"","sources":["../../../../src/utils/checkout.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"checkout.d.ts","sourceRoot":"","sources":["../../../../src/utils/checkout.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAE7D,eAAO,MAAM,WAAW,SAAU,mBAAmB,WAEpD,CAAC"}
|
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
export declare const getPercentageFromHeight: (height: number) => string;
|
|
2
2
|
export declare const getCurrentTimestamp: () => any;
|
|
3
|
+
export { analytics, Analytics } from './analytics';
|
|
4
|
+
export { Currency } from './currency';
|
|
5
|
+
export { type TMultiSnapBottomSheetRef, useMultiSnapBottomSheetRef, } from './useMultiSnapBottomSheetRef';
|
|
6
|
+
export { type TSingleSnapBottomSheetRef, useSingleSnapBottomSheetRef, } from './useSingleSnapBottomSheetRef';
|
|
3
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/utils/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,uBAAuB,WAAY,MAAM,KAAG,MAOxD,CAAC;AAEF,eAAO,MAAM,mBAAmB,WAK/B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/utils/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,uBAAuB,WAAY,MAAM,KAAG,MAOxD,CAAC;AAEF,eAAO,MAAM,mBAAmB,WAK/B,CAAC;AAEF,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EACL,KAAK,wBAAwB,EAC7B,0BAA0B,GAC3B,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,KAAK,yBAAyB,EAC9B,2BAA2B,GAC5B,MAAM,+BAA+B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kiosinc/commons-rn",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.86",
|
|
4
4
|
"description": "Common Code",
|
|
5
5
|
"main": "lib/commonjs/index",
|
|
6
6
|
"module": "lib/module/index",
|
|
@@ -186,6 +186,7 @@
|
|
|
186
186
|
"dependencies": {
|
|
187
187
|
"@gorhom/bottom-sheet": "^4.6.1",
|
|
188
188
|
"@hookform/resolvers": "^3.3.2",
|
|
189
|
+
"@kiosinc/commons-types": "^0.0.17",
|
|
189
190
|
"@react-native-firebase/firestore": "^20.3.0",
|
|
190
191
|
"@react-native-firebase/storage": "^20.3.0",
|
|
191
192
|
"@react-navigation/material-top-tabs": "^6.6.13",
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import axios from 'axios';
|
|
2
|
-
import type { TUserForm } from '../screens/SignUp';
|
|
3
2
|
|
|
4
|
-
export const signUpAPI = (payload:
|
|
3
|
+
export const signUpAPI = (payload: {
|
|
4
|
+
displayName: string;
|
|
5
|
+
email: string;
|
|
6
|
+
phoneNumber: string;
|
|
7
|
+
name?: string;
|
|
8
|
+
}) => {
|
|
5
9
|
return axios.post('/business', payload);
|
|
6
10
|
};
|
|
7
11
|
|
package/src/api/customer.ts
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Address,
|
|
3
3
|
ConnectSquareCustomerRequest,
|
|
4
|
-
CustomerProfileProps,
|
|
5
4
|
SaveCardRequest,
|
|
6
|
-
} from '
|
|
7
|
-
|
|
5
|
+
} from '@kiosinc/commons-types';
|
|
8
6
|
import axios from 'axios';
|
|
9
7
|
import Config from 'react-native-config';
|
|
10
8
|
|
|
@@ -32,7 +30,11 @@ export const updateCustomerProfile = async ({
|
|
|
32
30
|
props,
|
|
33
31
|
}: {
|
|
34
32
|
uid: string;
|
|
35
|
-
props:
|
|
33
|
+
props: {
|
|
34
|
+
addressId: string | null;
|
|
35
|
+
paymentId: string | null;
|
|
36
|
+
squareCustomerId: string | null;
|
|
37
|
+
};
|
|
36
38
|
}) => {
|
|
37
39
|
return await axios.post(
|
|
38
40
|
`${Config.CHILDS_SERVER_ENV}/customers/${uid}/update`,
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M12 16C12.2652 16 12.5196 16.1054 12.7071 16.2929C12.8946 16.4804 13 16.7348 13 17C13 17.2652 12.8946 17.5196 12.7071 17.7071C12.5196 17.8946 12.2652 18 12 18C11.7348 18 11.4804 17.8946 11.2929 17.7071C11.1054 17.5196 11 17.2652 11 17C11 16.7348 11.1054 16.4804 11.2929 16.2929C11.4804 16.1054 11.7348 16 12 16ZM12 7C12.2652 7 12.5196 7.10536 12.7071 7.29289C12.8946 7.48043 13 7.73478 13 8V14C13 14.2652 12.8946 14.5196 12.7071 14.7071C12.5196 14.8946 12.2652 15 12 15C11.7348 15 11.4804 14.8946 11.2929 14.7071C11.1054 14.5196 11 14.2652 11 14V8C11 7.73478 11.1054 7.48043 11.2929 7.29289C11.4804 7.10536 11.7348 7 12 7Z"/>
|
|
3
|
+
<path d="M22.6857 17.5885L14.0973 3.16095C13.8826 2.80748 13.5763 2.51441 13.2085 2.31077C12.8407 2.10713 12.4243 2 12.0005 2C11.5767 2 11.1603 2.10713 10.7925 2.31077C10.4247 2.51441 10.1183 2.80748 9.90372 3.16095L1.31532 17.5885C1.10882 17.9303 1 18.3192 1 18.7151C1 19.1111 1.10882 19.5 1.31532 19.8418C1.52719 20.1974 1.83305 20.4921 2.20153 20.6956C2.57 20.8991 2.98781 21.0041 3.41209 20.9999H20.5889C21.0128 21.0038 21.4302 20.8986 21.7983 20.6951C22.1664 20.4916 22.472 20.1972 22.6837 19.8418C22.8905 19.5001 22.9997 19.1114 23 18.7154C23.0003 18.3194 22.8919 17.9305 22.6857 17.5885ZM21.3235 19.0809C21.2486 19.2044 21.1411 19.3065 21.012 19.3766C20.883 19.4467 20.7369 19.4824 20.5889 19.4799H3.41209C3.26407 19.4824 3.11802 19.4467 2.98894 19.3766C2.85985 19.3065 2.75236 19.2044 2.67749 19.0809C2.60967 18.9698 2.57389 18.8432 2.57389 18.7142C2.57389 18.5852 2.60967 18.4586 2.67749 18.3475L11.2659 3.91999C11.3423 3.79704 11.4502 3.6953 11.5793 3.62466C11.7084 3.55403 11.8542 3.51691 12.0025 3.51691C12.1507 3.51691 12.2965 3.55403 12.4256 3.62466C12.5547 3.6953 12.6626 3.79704 12.739 3.91999L21.3274 18.3475C21.3946 18.4589 21.4297 18.5857 21.4291 18.7147C21.4284 18.8437 21.3919 18.9702 21.3235 19.0809Z"/>
|
|
4
|
+
</svg>
|
package/src/components/Alert.tsx
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useEffect, useState } from 'react';
|
|
1
|
+
import React, { useEffect, useState } from 'react';
|
|
2
2
|
import { InteractionManager } from 'react-native';
|
|
3
3
|
|
|
4
4
|
export const DelayedRender = ({ children }: { children: React.ReactNode }) => {
|
|
@@ -14,5 +14,5 @@ export const DelayedRender = ({ children }: { children: React.ReactNode }) => {
|
|
|
14
14
|
return null;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
return children
|
|
17
|
+
return <>{children}</>;
|
|
18
18
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { AssetManager } from './AssetManager';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { useDeactivateAccount } from './useDeactivateAccount';
|
|
2
|
+
export { useTermsOfService } from './useTermsOfService';
|
|
3
|
+
export { useAuth } from './useAuth';
|
|
4
|
+
export { useCustomerQueries } from './useCustomer';
|
|
5
|
+
export { useCheckCustomer } from './useCheckCustomer';
|
|
6
|
+
export { useAppVersionCheck } from './useAppVersionCheck';
|
|
7
|
+
export { useBusinesses } from './useBusinesses';
|
|
8
|
+
export { useLogout } from './useLogout';
|
|
9
|
+
export { useCreateBusiness } from './useCreateBusiness';
|
|
@@ -6,12 +6,14 @@ import { getVersion } from 'react-native-device-info';
|
|
|
6
6
|
import { useEffect } from 'react';
|
|
7
7
|
import semver from 'semver';
|
|
8
8
|
import { Alert as AlertFromLibrary } from '../components';
|
|
9
|
+
import { useTranslation } from 'react-i18next';
|
|
9
10
|
|
|
10
11
|
export const useAppVersionCheck = ({
|
|
11
12
|
Alert,
|
|
12
13
|
}: {
|
|
13
14
|
Alert: typeof AlertFromLibrary;
|
|
14
15
|
}) => {
|
|
16
|
+
const { t } = useTranslation();
|
|
15
17
|
const storeUrl =
|
|
16
18
|
Platform.OS === 'android' ? Config.PLAY_STORE_URL : Config.APP_STORE_URL;
|
|
17
19
|
|
|
@@ -50,22 +52,21 @@ export const useAppVersionCheck = ({
|
|
|
50
52
|
if (isRequiredUpdate || isOptionalUpdate) {
|
|
51
53
|
Alert.show({
|
|
52
54
|
isDismissable: !isRequiredUpdate, // Allow dismissal only if the update is not required
|
|
53
|
-
title: '
|
|
54
|
-
description:
|
|
55
|
-
'A new version of the app is available. Please update to the latest version for the best experience.',
|
|
55
|
+
title: t('commons.appUpdateAlert.title'),
|
|
56
|
+
description: t('commons.appUpdateAlert.description'),
|
|
56
57
|
buttons: isRequiredUpdate
|
|
57
58
|
? [
|
|
58
59
|
{
|
|
59
|
-
label: '
|
|
60
|
+
label: t('commons.update'),
|
|
60
61
|
onPress: () => storeUrl && Linking.openURL(storeUrl),
|
|
61
62
|
},
|
|
62
63
|
]
|
|
63
64
|
: [
|
|
64
65
|
{
|
|
65
|
-
label: '
|
|
66
|
+
label: t('commons.cancel'),
|
|
66
67
|
},
|
|
67
68
|
{
|
|
68
|
-
label: '
|
|
69
|
+
label: t('commons.update'),
|
|
69
70
|
onPress: () => storeUrl && Linking.openURL(storeUrl),
|
|
70
71
|
},
|
|
71
72
|
],
|
|
@@ -1,22 +1,19 @@
|
|
|
1
1
|
import { useMutation } from '@tanstack/react-query';
|
|
2
2
|
|
|
3
3
|
import auth, { FirebaseAuthTypes } from '@react-native-firebase/auth';
|
|
4
|
-
import {
|
|
5
|
-
changeUser,
|
|
6
|
-
useAuthenticationDispatch,
|
|
7
|
-
} from '../providers/authentication';
|
|
4
|
+
import { changeUser, useAuthenticationDispatch } from '../providers';
|
|
8
5
|
import {
|
|
9
6
|
type NavigationProp,
|
|
10
7
|
StackActions,
|
|
11
8
|
useNavigation,
|
|
12
9
|
} from '@react-navigation/native';
|
|
13
10
|
import { useTranslation } from 'react-i18next';
|
|
14
|
-
import { Alert } from '
|
|
11
|
+
import { Alert } from '../components';
|
|
15
12
|
import { checkIsRegisteredAPI, signUpAPI } from '../api/authentication';
|
|
16
13
|
import Config from 'react-native-config';
|
|
17
|
-
import { analytics } from '
|
|
18
|
-
import { analyticsKeys } from '
|
|
19
|
-
import { createCustomer } from '
|
|
14
|
+
import { analytics } from '../utils/analytics';
|
|
15
|
+
import { analyticsKeys } from '../constants/analyticsKeys';
|
|
16
|
+
import { createCustomer } from '../api/customer';
|
|
20
17
|
|
|
21
18
|
let confirmationResult: FirebaseAuthTypes.ConfirmationResult;
|
|
22
19
|
|
|
@@ -28,7 +25,7 @@ export type TUserData = {
|
|
|
28
25
|
password: string;
|
|
29
26
|
};
|
|
30
27
|
|
|
31
|
-
export const
|
|
28
|
+
export const useAuth = () => {
|
|
32
29
|
const dispatch = useAuthenticationDispatch();
|
|
33
30
|
const navigation = useNavigation<NavigationProp<RootStackType>>();
|
|
34
31
|
const { t } = useTranslation();
|
|
@@ -43,7 +40,7 @@ export const useAuthentication = () => {
|
|
|
43
40
|
{
|
|
44
41
|
onError: (error: Error) => {
|
|
45
42
|
Alert.show({
|
|
46
|
-
title: t('
|
|
43
|
+
title: t('commons.wrongOTP'),
|
|
47
44
|
});
|
|
48
45
|
console.log('error in useSignUp', error);
|
|
49
46
|
},
|
|
@@ -112,7 +109,7 @@ export const useAuthentication = () => {
|
|
|
112
109
|
navigation.navigate('VerifyPhoneNumberForLogin', { phoneNumber });
|
|
113
110
|
} else {
|
|
114
111
|
Alert.show({
|
|
115
|
-
description: t('
|
|
112
|
+
description: t('commons.userDoesNotExist', {
|
|
116
113
|
emailOrPhoneNumber: phoneNumber,
|
|
117
114
|
}),
|
|
118
115
|
});
|
|
@@ -150,7 +147,7 @@ export const useAuthentication = () => {
|
|
|
150
147
|
});
|
|
151
148
|
} catch {
|
|
152
149
|
Alert.show({
|
|
153
|
-
description: t('
|
|
150
|
+
description: t('commons.userDoesNotExist', {
|
|
154
151
|
emailOrPhoneNumber: email,
|
|
155
152
|
}),
|
|
156
153
|
});
|