@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.
- 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/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/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/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/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,45 @@
|
|
|
1
|
+
import * as yup from 'yup';
|
|
2
|
+
import { EMAIL_REGEX } from '../../constants';
|
|
3
|
+
const displayName = t => yup.string().required(t('commons.displayNameRequired')).label(t('commons.displayNameRequired'));
|
|
4
|
+
const businessName = t => yup.string().required(t('commons.businessNameRequired')).label(t('commons.businessName'));
|
|
5
|
+
const emailForLogin = t => yup.string().required(t('commons.requiredEmailForLogin')).matches(EMAIL_REGEX, t('commons.validEmail')).label(t('commons.email'));
|
|
6
|
+
const emailForSignup = t => yup.string().required(t('commons.requiredEmailForSignUp')).matches(EMAIL_REGEX, t('commons.validEmail')).label(t('commons.email'));
|
|
7
|
+
const phoneNumber = t => yup.string().required(t('commons.requiredPhoneNumber')).label(t('commons.phoneNumber'));
|
|
8
|
+
const password = t => yup.string().required(t('commons.requiredPassword')).label(t('commons.password'));
|
|
9
|
+
const newPassword = t => yup.string().required().min(8, t('commons.minLength')).matches(/[a-z]/, t('commons.1lowerChar')).matches(/[A-Z]/, t('commons.1upperChar')).matches(/[0-9]/, t('commons.1number')).matches(/[!@#$%^&*(),.?":{}|<>]/, t('commons.1special')).label(t('commons.password'));
|
|
10
|
+
const code = yup.string().required().min(6);
|
|
11
|
+
export const signUpValidationSchemaWithBusinessName = t => yup.object().shape({
|
|
12
|
+
displayName: displayName(t),
|
|
13
|
+
email: emailForSignup(t),
|
|
14
|
+
phoneNumber: phoneNumber(t),
|
|
15
|
+
name: businessName(t)
|
|
16
|
+
});
|
|
17
|
+
export const signUpValidationSchemaWithoutBusinessName = t => yup.object().shape({
|
|
18
|
+
displayName: displayName(t),
|
|
19
|
+
email: emailForSignup(t),
|
|
20
|
+
phoneNumber: phoneNumber(t)
|
|
21
|
+
});
|
|
22
|
+
export const loginValidationSchema = t => yup.object().shape({
|
|
23
|
+
email: emailForLogin(t),
|
|
24
|
+
password: password(t)
|
|
25
|
+
});
|
|
26
|
+
export const loginWithPhoneNumberValidationSchema = ({
|
|
27
|
+
t,
|
|
28
|
+
isUSNumber
|
|
29
|
+
}) => yup.object().shape({
|
|
30
|
+
phoneNumber: isUSNumber ? phoneNumber(t).transform(number => number.replaceAll(' ', '')).length(10) : phoneNumber(t)
|
|
31
|
+
});
|
|
32
|
+
export const resetPasswordValidationSchema = t => yup.object().shape({
|
|
33
|
+
email: emailForLogin(t)
|
|
34
|
+
});
|
|
35
|
+
export const verificationValidationSchema = yup.object().shape({
|
|
36
|
+
code
|
|
37
|
+
});
|
|
38
|
+
export const passwordVerificationSchema = t => yup.object().shape({
|
|
39
|
+
password: newPassword(t)
|
|
40
|
+
});
|
|
41
|
+
export const changePasswordSchema = t => yup.object().shape({
|
|
42
|
+
currentPassword: password(t),
|
|
43
|
+
newPassword: newPassword(t)
|
|
44
|
+
});
|
|
45
|
+
//# sourceMappingURL=validators.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["yup","EMAIL_REGEX","displayName","t","string","required","label","businessName","emailForLogin","matches","emailForSignup","phoneNumber","password","newPassword","min","code","signUpValidationSchemaWithBusinessName","object","shape","email","name","signUpValidationSchemaWithoutBusinessName","loginValidationSchema","loginWithPhoneNumberValidationSchema","isUSNumber","transform","number","replaceAll","length","resetPasswordValidationSchema","verificationValidationSchema","passwordVerificationSchema","changePasswordSchema","currentPassword"],"sourceRoot":"../../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
const onDeleteCard = () => {
|
|
21
21
|
Alert.show({
|
|
22
|
-
title: t('
|
|
23
|
-
description: t('
|
|
22
|
+
title: t('commons.confirmCardDelete'),
|
|
23
|
+
description: t('commons.cardDeleteDesc', {
|
|
24
24
|
card: card.cardDetails.last4
|
|
25
25
|
}),
|
|
26
26
|
buttons: [{
|
|
27
|
-
label: t('delete'),
|
|
27
|
+
label: t('commons.delete'),
|
|
28
28
|
textColor: theme.colors.error,
|
|
29
29
|
onPress: () => onDelete(card.id)
|
|
30
30
|
}, {
|
|
31
|
-
label: t('cancel'),
|
|
31
|
+
label: t('commons.cancel'),
|
|
32
32
|
textColor: theme.colors.onSurface
|
|
33
33
|
}]
|
|
34
34
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","Alert","Card","IconButton","Text","View","RadioButton","useTheme","useTranslation","getCardName","CardRow","card","onDelete","onSelect","isSelectable","isSelected","isDisabled","name","t","theme","onDeleteCard","show","title","description","cardDetails","last4","buttons","label","textColor","colors","error","onPress","id","onSurface","createElement","_extends","disabled","mode","borderRadius","mb","linkedObjectId","flexDirection","px","alignItems","justifyContent","Android","value","status","paddingStart","flex","variant","icon","bg"],"sourceRoot":"../../../../src","sources":["screens/SavedCards/CardRow.tsx"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,KAAK,EAAEC,IAAI,EAAEC,UAAU,EAAEC,IAAI,EAAEC,IAAI,QAAQ,kBAAkB;AACtE,SAASC,WAAW,EAAEC,QAAQ,QAAQ,oBAAoB;AAC1D,SAASC,cAAc,QAAQ,eAAe;AAC9C,SAASC,WAAW,QAAQ,sBAAsB;AAGlD,OAAO,MAAMC,OAAO,GAAGA,CAAC;EACtBC,IAAI;EACJC,QAAQ;EACRC,QAAQ;EACRC,YAAY;EACZC,UAAU;EACVC;AAQF,CAAC,KAAK;EACJ,MAAMC,IAAI,GAAGR,WAAW,CAACE,IAAI,CAAC;EAC9B,MAAM;IAAEO;EAAE,CAAC,GAAGV,cAAc,CAAC,CAAC;EAC9B,MAAMW,KAAK,GAAGZ,QAAQ,CAAC,CAAC;EAExB,MAAMa,YAAY,GAAGA,CAAA,KAAM;IACzBnB,KAAK,CAACoB,IAAI,CAAC;MACTC,KAAK,EAAEJ,CAAC,CAAC,
|
|
1
|
+
{"version":3,"names":["React","Alert","Card","IconButton","Text","View","RadioButton","useTheme","useTranslation","getCardName","CardRow","card","onDelete","onSelect","isSelectable","isSelected","isDisabled","name","t","theme","onDeleteCard","show","title","description","cardDetails","last4","buttons","label","textColor","colors","error","onPress","id","onSurface","createElement","_extends","disabled","mode","borderRadius","mb","linkedObjectId","flexDirection","px","alignItems","justifyContent","Android","value","status","paddingStart","flex","variant","icon","bg"],"sourceRoot":"../../../../src","sources":["screens/SavedCards/CardRow.tsx"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,KAAK,EAAEC,IAAI,EAAEC,UAAU,EAAEC,IAAI,EAAEC,IAAI,QAAQ,kBAAkB;AACtE,SAASC,WAAW,EAAEC,QAAQ,QAAQ,oBAAoB;AAC1D,SAASC,cAAc,QAAQ,eAAe;AAC9C,SAASC,WAAW,QAAQ,sBAAsB;AAGlD,OAAO,MAAMC,OAAO,GAAGA,CAAC;EACtBC,IAAI;EACJC,QAAQ;EACRC,QAAQ;EACRC,YAAY;EACZC,UAAU;EACVC;AAQF,CAAC,KAAK;EACJ,MAAMC,IAAI,GAAGR,WAAW,CAACE,IAAI,CAAC;EAC9B,MAAM;IAAEO;EAAE,CAAC,GAAGV,cAAc,CAAC,CAAC;EAC9B,MAAMW,KAAK,GAAGZ,QAAQ,CAAC,CAAC;EAExB,MAAMa,YAAY,GAAGA,CAAA,KAAM;IACzBnB,KAAK,CAACoB,IAAI,CAAC;MACTC,KAAK,EAAEJ,CAAC,CAAC,2BAA2B,CAAC;MACrCK,WAAW,EAAEL,CAAC,CAAC,wBAAwB,EAAE;QACvCP,IAAI,EAAEA,IAAI,CAACa,WAAW,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;EAAe,gBAE9B5C,KAAA,CAAAkC,aAAA,CAAC9B,IAAI;IAAC8C,OAAO,EAAC;EAAY,GAAEjC,IAAW,CAAC,eACxCjB,KAAA,CAAAkC,aAAA,CAAC/B,UAAU;IACTiC,QAAQ,EAAEpB,UAAW;IACrBmC,IAAI,EAAC,mBAAmB;IACxBC,EAAE,EAAC,YAAY;IACfrB,OAAO,EAAEX;EAAa,CACvB,CACG,CACF,CACF,CAAC;AAEX,CAAC"}
|
|
@@ -57,7 +57,7 @@ export const SavedCards = ({
|
|
|
57
57
|
});
|
|
58
58
|
}, () => {});
|
|
59
59
|
};
|
|
60
|
-
const label = cards.length > 0 ? t('
|
|
60
|
+
const label = cards.length > 0 ? t('commons.payAndPlaceOrder') : t('commons.payByCard');
|
|
61
61
|
if (isLoading) {
|
|
62
62
|
return /*#__PURE__*/React.createElement(ActivityIndicator, null);
|
|
63
63
|
}
|
|
@@ -129,10 +129,10 @@ export const SavedCards = ({
|
|
|
129
129
|
ListHeaderComponent: /*#__PURE__*/React.createElement(React.Fragment, null, cards.length > 0 ? /*#__PURE__*/React.createElement(Text, {
|
|
130
130
|
mb: "8",
|
|
131
131
|
variant: "titleMedium"
|
|
132
|
-
}, t('
|
|
132
|
+
}, t('commons.paymentMethods')) : /*#__PURE__*/React.createElement(Text, {
|
|
133
133
|
variant: "bodyLarge",
|
|
134
134
|
color: "outline"
|
|
135
|
-
}, t('
|
|
135
|
+
}, t('commons.noSavedCards'))),
|
|
136
136
|
ListFooterComponent: /*#__PURE__*/React.createElement(View, {
|
|
137
137
|
alignItems: "flex-start"
|
|
138
138
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
@@ -141,7 +141,7 @@ export const SavedCards = ({
|
|
|
141
141
|
onPress: onAddPress,
|
|
142
142
|
icon: "plus",
|
|
143
143
|
mode: "text"
|
|
144
|
-
}, t('
|
|
144
|
+
}, t('commons.addCard')))
|
|
145
145
|
})), !!onCheckout && /*#__PURE__*/React.createElement(View, {
|
|
146
146
|
bg: "secondaryContainer",
|
|
147
147
|
height: 84,
|
|
@@ -152,7 +152,7 @@ export const SavedCards = ({
|
|
|
152
152
|
}, /*#__PURE__*/React.createElement(View, null, /*#__PURE__*/React.createElement(Text, {
|
|
153
153
|
variant: "bodyLarge",
|
|
154
154
|
color: "onSurface"
|
|
155
|
-
}, t('
|
|
155
|
+
}, t('commons.total')), /*#__PURE__*/React.createElement(Text, {
|
|
156
156
|
variant: "titleLarge",
|
|
157
157
|
color: "onSurface"
|
|
158
158
|
}, total)), /*#__PURE__*/React.createElement(Button, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useEffect","useState","Alert","Button","LineLoader","RefreshControl","Text","View","ActivityIndicator","useTheme","uuid","useTranslation","FlatList","onStartCardEntry","useCustomerQueries","useCheckCustomer","CardRow","SavedCards","onCheckout","total","t","theme","customer","useSaveCustomerCard","useFetchSavedCards","useDisableCard","useUpdateCustomer","saveCard","saveCardLoading","disableCard","disableCardLoading","selectedPaymentId","onSelectPaymentId","updateCustomer","updateCustomerLoading","paymentId","data","cards","isFetching","isLoading","refetch","onAddPress","cardDetails","sourceId","nonce","idempotentKey","v4","label","length","createElement","onUseCard","show","title","selectedCard","find","card","linkedObjectId","flex","px","bg","extraData","refreshControl","refreshing","onRefresh","showsVerticalScrollIndicator","renderItem","item","index","isDisabled","isSelected","isSelectable","key","onDelete","id","onSelect","addressId","squareCustomerId","ListHeaderComponent","Fragment","mb","variant","color","ListFooterComponent","alignItems","pt","loading","onPress","icon","mode","height","padding","justifyContent","flexDirection","width","alignSelf","labelStyle","colors","background"],"sourceRoot":"../../../../src","sources":["screens/SavedCards/SavedCards.tsx"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,SAAS,EAAEC,QAAQ,QAAQ,OAAO;AAClD,SACEC,KAAK,EACLC,MAAM,EACNC,UAAU,EACVC,cAAc,EACdC,IAAI,EACJC,IAAI,QACC,kBAAkB;AACzB,SAASC,iBAAiB,EAAEC,QAAQ,QA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U,GAAGA,CAAA,KAAM;IACvB5B,gBAAgB,CACb6B,WAAW,IAAK;MACff,QAAQ,CAAC;QACPgB,QAAQ,EAAED,WAAW,CAACE,KAAK;QAC3BC,aAAa,EAAEnC,IAAI,CAACoC,EAAE,CAAC;MACzB,CAAC,CAAC;IACJ,CAAC,EACD,MAAM,CAAC,CACT,CAAC;EACH,CAAC;EAED,MAAMC,KAAK,GACTV,KAAK,CAACW,MAAM,GAAG,CAAC,GAAG5B,CAAC,CAAC,
|
|
1
|
+
{"version":3,"names":["React","useEffect","useState","Alert","Button","LineLoader","RefreshControl","Text","View","ActivityIndicator","useTheme","uuid","useTranslation","FlatList","onStartCardEntry","useCustomerQueries","useCheckCustomer","CardRow","SavedCards","onCheckout","total","t","theme","customer","useSaveCustomerCard","useFetchSavedCards","useDisableCard","useUpdateCustomer","saveCard","saveCardLoading","disableCard","disableCardLoading","selectedPaymentId","onSelectPaymentId","updateCustomer","updateCustomerLoading","paymentId","data","cards","isFetching","isLoading","refetch","onAddPress","cardDetails","sourceId","nonce","idempotentKey","v4","label","length","createElement","onUseCard","show","title","selectedCard","find","card","linkedObjectId","flex","px","bg","extraData","refreshControl","refreshing","onRefresh","showsVerticalScrollIndicator","renderItem","item","index","isDisabled","isSelected","isSelectable","key","onDelete","id","onSelect","addressId","squareCustomerId","ListHeaderComponent","Fragment","mb","variant","color","ListFooterComponent","alignItems","pt","loading","onPress","icon","mode","height","padding","justifyContent","flexDirection","width","alignSelf","labelStyle","colors","background"],"sourceRoot":"../../../../src","sources":["screens/SavedCards/SavedCards.tsx"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,SAAS,EAAEC,QAAQ,QAAQ,OAAO;AAClD,SACEC,KAAK,EACLC,MAAM,EACNC,UAAU,EACVC,cAAc,EACdC,IAAI,EACJC,IAAI,QACC,kBAAkB;AACzB,SAASC,iBAAiB,EAAEC,QAAQ,QAAQ,oBAAoB;AAChE,OAAOC,IAAI,MAAM,mBAAmB;AACpC,SAASC,cAAc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AAC,SAAS;IACZoC,UAAU,EAAE,CACV;MACEd,KAAK,EAAE5D,KAAK,CAAC2E,MAAM,CAACC;IACtB,CAAC,CACD;IACFX,OAAO,EAAEpC;EAAU,GAElBH,KACK,CACJ,CAEJ,CAAC;AAEX,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
2
|
import React, { forwardRef, useEffect, useRef, useState } from 'react';
|
|
3
|
-
import { Text, Button, KeyboardAvoidingView, TextInput, View, BottomSheet } from '
|
|
3
|
+
import { Text, Button, KeyboardAvoidingView, TextInput, View, BottomSheet } from '../../components';
|
|
4
4
|
import { BottomSheetTextInput } from '@gorhom/bottom-sheet';
|
|
5
5
|
import { useTranslation } from 'react-i18next';
|
|
6
|
-
import { useCreateBusiness } from '
|
|
6
|
+
import { useCreateBusiness } from '../../hooks';
|
|
7
7
|
export const CreateBusinessBottomSheet = /*#__PURE__*/forwardRef(({
|
|
8
8
|
isVisible,
|
|
9
9
|
close
|
|
@@ -42,7 +42,7 @@ export const CreateBusinessBottomSheet = /*#__PURE__*/forwardRef(({
|
|
|
42
42
|
}, /*#__PURE__*/React.createElement(Text, {
|
|
43
43
|
pt: "16",
|
|
44
44
|
variant: "titleLarge"
|
|
45
|
-
}, t('
|
|
45
|
+
}, t('commons.createBusiness')), /*#__PURE__*/React.createElement(KeyboardAvoidingView, null, /*#__PURE__*/React.createElement(TextInput, {
|
|
46
46
|
render: props => {
|
|
47
47
|
return /*#__PURE__*/React.createElement(BottomSheetTextInput, _extends({}, props, {
|
|
48
48
|
ref: textInputRef
|
|
@@ -52,7 +52,7 @@ export const CreateBusinessBottomSheet = /*#__PURE__*/forwardRef(({
|
|
|
52
52
|
mode: "outlined",
|
|
53
53
|
onChangeText: setName,
|
|
54
54
|
value: name,
|
|
55
|
-
label: t('
|
|
55
|
+
label: t('commons.businessName')
|
|
56
56
|
}), /*#__PURE__*/React.createElement(View, {
|
|
57
57
|
mt: "16",
|
|
58
58
|
flexDirection: "row",
|
|
@@ -60,11 +60,11 @@ export const CreateBusinessBottomSheet = /*#__PURE__*/forwardRef(({
|
|
|
60
60
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
61
61
|
mode: "text",
|
|
62
62
|
onPress: close
|
|
63
|
-
}, t('cancel')), /*#__PURE__*/React.createElement(Button, {
|
|
63
|
+
}, t('commons.cancel')), /*#__PURE__*/React.createElement(Button, {
|
|
64
64
|
loading: isLoading,
|
|
65
65
|
disabled: isLoading || name.trim().length === 0,
|
|
66
66
|
mode: "text",
|
|
67
67
|
onPress: onCreate
|
|
68
|
-
}, t('create'))))));
|
|
68
|
+
}, t('commons.create'))))));
|
|
69
69
|
});
|
|
70
70
|
//# sourceMappingURL=CreateBusinessBottomSheet.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","forwardRef","useEffect","useRef","useState","Text","Button","KeyboardAvoidingView","TextInput","View","BottomSheet","BottomSheetTextInput","useTranslation","useCreateBusiness","CreateBusinessBottomSheet","isVisible","close","ref","name","setName","mutate","createNewMenuGroup","isLoading","onSuccess","t","textInputRef","onCreate","trim","current","focus","createElement","pressBehavior","px","bg","flex","pt","variant","render","props","_extends","mt","mode","onChangeText","value","label","flexDirection","justifyContent","onPress","loading","disabled","length"],"sourceRoot":"../../../../src","sources":["screens/SelectBusiness/CreateBusinessBottomSheet.tsx"],"mappings":";AAAA,OAAOA,KAAK,IAAIC,UAAU,EAAEC,SAAS,EAAEC,MAAM,EAAEC,QAAQ,QAAQ,OAAO;AACtE,SACEC,IAAI,EACJC,MAAM,EACNC,oBAAoB,EACpBC,SAAS,EACTC,IAAI,EACJC,WAAW,QACN,kBAAkB;AACzB,SAASC,oBAAoB,QAAQ,sBAAsB;AAC3D,SA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CAAA8B,aAAA,CAACtB,SAAS;IACR6B,MAAM,EAAGC,KAAK,IAAK;MACjB,oBAAOtC,KAAA,CAAA8B,aAAA,CAACnB,oBAAoB,EAAA4B,QAAA,KAAKD,KAAK;QAAErB,GAAG,EAAEQ;MAAa,EAAE,CAAC;IAC/D,CAAE;IACFe,EAAE,EAAC,IAAI;IACPC,IAAI,EAAC,UAAU;IACfC,YAAY,EAAEvB,OAAQ;IACtBwB,KAAK,EAAEzB,IAAK;IACZ0B,KAAK,EAAEpB,CAAC,CAAC,sBAAsB;EAAE,CAClC,CAAC,eACFxB,KAAA,CAAA8B,aAAA,CAACrB,IAAI;IAAC+B,EAAE,EAAC,IAAI;IAACK,aAAa,EAAC,KAAK;IAACC,cAAc,EAAC;EAAU,gBACzD9C,KAAA,CAAA8B,aAAA,CAACxB,MAAM;IAACmC,IAAI,EAAC,MAAM;IAACM,OAAO,EAAE/B;EAAM,GAChCQ,CAAC,CAAC,gBAAgB,CACb,CAAC,eACTxB,KAAA,CAAA8B,aAAA,CAACxB,MAAM;IACL0C,OAAO,EAAE1B,SAAU;IACnB2B,QAAQ,EAAE3B,SAAS,IAAIJ,IAAI,CAACS,IAAI,CAAC,CAAC,CAACuB,MAAM,KAAK,CAAE;IAChDT,IAAI,EAAC,MAAM;IACXM,OAAO,EAAErB;EAAS,GAEjBF,CAAC,CAAC,gBAAgB,CACb,CACJ,CACc,CAClB,CACK,CAAC;AAElB,CACF,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useEffect, useState } from 'react';
|
|
2
|
-
import { Card, FAB, Header, LineLoader, ParentView, RefreshControl, Searchbar, Text, View, LinkButton } from '
|
|
2
|
+
import { Card, FAB, Header, LineLoader, ParentView, RefreshControl, Searchbar, Text, View, LinkButton } from '../../components';
|
|
3
3
|
import { FlashList } from '@shopify/flash-list';
|
|
4
4
|
import { useTranslation } from 'react-i18next';
|
|
5
5
|
import { ActivityIndicator, useTheme } from 'react-native-paper';
|
|
@@ -7,11 +7,10 @@ import { useMMKVString } from 'react-native-mmkv';
|
|
|
7
7
|
import { useNavigation } from '@react-navigation/native';
|
|
8
8
|
import { useQueryClient } from '@tanstack/react-query';
|
|
9
9
|
import { CreateBusinessBottomSheet } from './CreateBusinessBottomSheet';
|
|
10
|
-
import { useBusinesses } from '
|
|
11
|
-
import { MMKV_KEYS } from '
|
|
12
|
-
import { useSingleSnapBottomSheetRef } from '
|
|
13
|
-
import Tick from '
|
|
14
|
-
import { useLogout } from '../auth/hooks/useLogout';
|
|
10
|
+
import { useBusinesses, useLogout } from '../../hooks';
|
|
11
|
+
import { MMKV_KEYS } from '../../constants';
|
|
12
|
+
import { useSingleSnapBottomSheetRef } from '../../utils';
|
|
13
|
+
import Tick from '../../assets/icons/tick.svg';
|
|
15
14
|
const BusinessCard = ({
|
|
16
15
|
business,
|
|
17
16
|
isSelectedBusiness,
|
|
@@ -80,7 +79,7 @@ export const SelectBusiness = () => {
|
|
|
80
79
|
flex: 1,
|
|
81
80
|
backgroundColor: "background"
|
|
82
81
|
}, /*#__PURE__*/React.createElement(Header, {
|
|
83
|
-
title: t('
|
|
82
|
+
title: t('commons.selectBusiness')
|
|
84
83
|
}), searchText.length === 0 && !isFetching && businesses?.length === 0 && /*#__PURE__*/React.createElement(View, {
|
|
85
84
|
position: "absolute",
|
|
86
85
|
height: '100%',
|
|
@@ -89,7 +88,7 @@ export const SelectBusiness = () => {
|
|
|
89
88
|
justifyContent: 'center'
|
|
90
89
|
}, /*#__PURE__*/React.createElement(Text, {
|
|
91
90
|
alignSelf: 'center'
|
|
92
|
-
}, t('
|
|
91
|
+
}, t('commons.noBusiness'))), /*#__PURE__*/React.createElement(View, {
|
|
93
92
|
px: "16",
|
|
94
93
|
flex: 1
|
|
95
94
|
}, /*#__PURE__*/React.createElement(LineLoader, {
|
|
@@ -98,7 +97,7 @@ export const SelectBusiness = () => {
|
|
|
98
97
|
mb: "12",
|
|
99
98
|
bg: "inverseOnSurface",
|
|
100
99
|
value: searchText,
|
|
101
|
-
placeholder: t('
|
|
100
|
+
placeholder: t('commons.searchBusiness'),
|
|
102
101
|
onChangeText: setSearchText
|
|
103
102
|
}), !isFetching && /*#__PURE__*/React.createElement(FlashList, {
|
|
104
103
|
refreshControl: /*#__PURE__*/React.createElement(RefreshControl, {
|
|
@@ -135,7 +134,7 @@ export const SelectBusiness = () => {
|
|
|
135
134
|
mode: "text",
|
|
136
135
|
onPress: handleLogout,
|
|
137
136
|
alignSelf: 'center'
|
|
138
|
-
}, t('
|
|
137
|
+
}, t('commons.logout')))), /*#__PURE__*/React.createElement(CreateBusinessBottomSheet, {
|
|
139
138
|
isVisible: createBusinessBottomSheet.isVisible,
|
|
140
139
|
ref: createBusinessBottomSheet.ref,
|
|
141
140
|
close: createBusinessBottomSheet.close
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","useEffect","useState","Card","FAB","Header","LineLoader","ParentView","RefreshControl","Searchbar","Text","View","LinkButton","FlashList","useTranslation","ActivityIndicator","useTheme","useMMKVString","useNavigation","useQueryClient","CreateBusinessBottomSheet","useBusinesses","useLogout","MMKV_KEYS","useSingleSnapBottomSheetRef","Tick","BusinessCard","business","isSelectedBusiness","onSelect","theme","createElement","bg","p","height","mx","mb","mt","onPress","flexDirection","justifyContent","alignItems","variant","name","width","fill","colors","onBackground","SelectBusiness","t","selectedBusinessId","setBusinessId","BUSINESS_ID","searchText","setSearchText","data","isLoading","isFetching","isRefetching","refetch","handleLogout","navigation","queryClient","createBusinessBottomSheet","businesses","setBusinesses","length","filteredBusinesses","filter","toLowerCase","search","trim","id","flex","backgroundColor","title","position","alignSelf","px","value","placeholder","onChangeText","refreshControl","refreshing","onRefresh","showsVerticalScrollIndicator","renderItem","item","canGoBack","goBack","clear","estimatedItemSize","bottom","right","icon","expand","mode","isVisible","ref","close"],"sourceRoot":"../../../../src","sources":["screens/SelectBusiness/SelectBusiness.tsx"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,SAAS,E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,EAAC,MAAM;IACXxD,OAAO,EAAEyB,yBAAyB,CAACgC;EAAO,CAC3C,CAEC,CAAC,EACN,CAAC7C,kBAAkB,iBAClBlD,KAAA,CAAA+B,aAAA,CAACpB,IAAI;IAAC6B,cAAc,EAAC;EAAU,gBAC7BxC,KAAA,CAAA+B,aAAA,CAACnB,UAAU;IAACoF,IAAI,EAAC,MAAM;IAAC1D,OAAO,EAAEsB,YAAa;IAACiB,SAAS,EAAE;EAAS,GAChE5B,CAAC,CAAC,gBAAgB,CACT,CACR,CAEJ,CAAC,eACPjD,KAAA,CAAA+B,aAAA,CAACX,yBAAyB;IACxB6E,SAAS,EAAElC,yBAAyB,CAACkC,SAAU;IAC/CC,GAAG,EAAEnC,yBAAyB,CAACmC,GAAI;IACnCC,KAAK,EAAEpC,yBAAyB,CAACoC;EAAM,CACxC,CACS,CAAC;AAEjB,CAAC"}
|
|
@@ -4,10 +4,10 @@ import { useTranslation } from 'react-i18next';
|
|
|
4
4
|
import { ActivityIndicator, useTheme } from 'react-native-paper';
|
|
5
5
|
import WebView from 'react-native-webview';
|
|
6
6
|
import { StyleSheet } from 'react-native';
|
|
7
|
-
import { useTermsOfService } from '../hooks/useTermsOfService';
|
|
8
7
|
import { TERMS_OF_SERVICE } from '../../constants';
|
|
9
|
-
import { useLogout } from '../hooks/useLogout';
|
|
10
8
|
import { useSingleSnapBottomSheetRef } from '../../utils/useSingleSnapBottomSheetRef';
|
|
9
|
+
import { useLogout } from '../../hooks/useLogout';
|
|
10
|
+
import { useTermsOfService } from '../../hooks';
|
|
11
11
|
export const CloseBottomSheet = ({
|
|
12
12
|
bottomSheetRef
|
|
13
13
|
}) => {
|
|
@@ -28,18 +28,18 @@ export const CloseBottomSheet = ({
|
|
|
28
28
|
my: "16"
|
|
29
29
|
}, /*#__PURE__*/React.createElement(Text, {
|
|
30
30
|
variant: "titleLarge"
|
|
31
|
-
}, t('
|
|
31
|
+
}, t('commons.termsOfServiceModal.title')), /*#__PURE__*/React.createElement(Text, {
|
|
32
32
|
pt: "16",
|
|
33
33
|
variant: "bodyMedium",
|
|
34
34
|
color: "secondary"
|
|
35
|
-
}, t('
|
|
35
|
+
}, t('commons.termsOfServiceModal.description')), /*#__PURE__*/React.createElement(Button, {
|
|
36
36
|
mode: "contained",
|
|
37
37
|
my: "16",
|
|
38
38
|
onPress: bottomSheetRef.close
|
|
39
|
-
}, t('
|
|
39
|
+
}, t('commons.termsOfServiceModal.review')), /*#__PURE__*/React.createElement(Button, {
|
|
40
40
|
mode: "outlined",
|
|
41
41
|
onPress: handleLogout
|
|
42
|
-
}, t('
|
|
42
|
+
}, t('commons.logout'))));
|
|
43
43
|
};
|
|
44
44
|
export const TermsOfService = () => {
|
|
45
45
|
const {
|
|
@@ -70,7 +70,7 @@ export const TermsOfService = () => {
|
|
|
70
70
|
onPress: bottomSheetRef.expand
|
|
71
71
|
}), /*#__PURE__*/React.createElement(Text, {
|
|
72
72
|
variant: "labelLarge"
|
|
73
|
-
}, t('
|
|
73
|
+
}, t('commons.termsTitle'))), /*#__PURE__*/React.createElement(View, {
|
|
74
74
|
style: styles.view,
|
|
75
75
|
mx: "16",
|
|
76
76
|
flex: 1,
|
|
@@ -102,7 +102,7 @@ export const TermsOfService = () => {
|
|
|
102
102
|
height: 40,
|
|
103
103
|
onPress: () => agreeTermsOfService(),
|
|
104
104
|
loading: isLoading
|
|
105
|
-
}, t('
|
|
105
|
+
}, t('commons.acceptTerms')), /*#__PURE__*/React.createElement(CloseBottomSheet, {
|
|
106
106
|
bottomSheetRef: bottomSheetRef
|
|
107
107
|
}));
|
|
108
108
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["BottomSheet","Button","IconButton","ParentView","Text","View","React","useTranslation","ActivityIndicator","useTheme","WebView","StyleSheet","TERMS_OF_SERVICE","useSingleSnapBottomSheetRef","useLogout","useTermsOfService","CloseBottomSheet","bottomSheetRef","t","handleLogout","createElement","close","pressBehavior","ref","px","bg","flex","my","variant","pt","color","mode","onPress","TermsOfService","useAgreeTermsOfService","useTermsOfServiceURL","mutate","agreeTermsOfService","isLoading","theme","data","url","flexDirection","alignItems","iconColor","colors","onSurfaceVariant","backgroundColor","icon","expand","style","styles","view","mx","borderWidth","borderColor","borderRadius","padding","startInLoadingState","renderLoading","bottom","justifyContent","left","position","right","top","size","javaScriptEnabled","source","uri","height","loading","create"],"sourceRoot":"../../../../src","sources":["screens/TermsOfService/TermsOfService.tsx"],"mappings":"AAAA,SACEA,WAAW,EACXC,MAAM,EACNC,UAAU,EACVC,UAAU,EACVC,IAAI,EACJC,IAAI,QACC,kBAAkB;AACzB,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,cAAc,QAAQ,eAAe;AAC9C,SAASC,iBAAiB,EAAEC,QAAQ,QAAQ,oBAAoB;AAChE,OAAOC,OAAO,MAAM,sBAAsB;AAC1C,SAASC,UAAU,QAAQ,cAAc;AACzC,SAASC,gBAAgB,QAAQ,iBAAiB;AAClD,SAEEC,2BAA2B,QACtB,yCAAyC;AAChD,SAASC,SAAS,QAAQ,uBAAuB;AACjD,SAASC,iBAAiB,QAAQ,aAAa;AAM/C,OAAO,MAAMC,gBAAgB,GAAGA,CAAC;EAAEC;AAAsC,CAAC,KAAK;EAC7E,MAAM;IAAEC;EAAE,CAAC,GAAGX,cAAc,CAAC,CAAC;EAC9B,MAAM;IAAEY;EAAa,CAAC,GAAGL,SAAS,CAAC,CAAC;EAEpC,oBACER,KAAA,CAAAc,aAAA,CAACpB,WAAW;IACVqB,KAAK,EAAEJ,cAAc,CAACI,KAAM;IAC5BC,aAAa,EAAC,OAAO;IACrBC,GAAG,EAAEN,cAAc,CAACM;EAAI,gBAExBjB,KAAA,CAAAc,aAAA,CAACf,IAAI;IAACmB,EAAE,EAAC,IAAI;IAACC,EAAE,EAAC,YAAY;IAACC,IAAI,EAAE,CAAE;IAACC,EAAE,EAAC;EAAI,gBAC5CrB,KAAA,CAAAc,aAAA,CAAChB,IAAI;IAACwB,OAAO,E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CAACJ,gBAAgB;IAACC,cAAc,EAAEA;EAAe,CAAE,CACzC,CAAC;AAEjB,CAAC;AAED,MAAMkC,MAAM,GAAGxC,UAAU,CAAC6D,MAAM,CAAC;EAC/BpB,IAAI,EAAE;IAAEL,eAAe,EAAE;EAAQ;AACnC,CAAC,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.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["SavedCards","SelectBusiness","TermsOfService","renderAuthNavigator","renderAppNavigator"],"sourceRoot":"../../../src","sources":["screens/index.ts"],"mappings":"AAAA,SAASA,UAAU,QAAQ,yBAAyB;AACpD,SAASC,cAAc,QAAQ,iCAAiC;AAChE,SAASC,cAAc,QAAQ,iCAAiC;AAChE,SAASC,mBAAmB,EAAEC,kBAAkB,QAAQ,mBAAmB"}
|
|
@@ -10,4 +10,8 @@ export const getCurrentTimestamp = () => {
|
|
|
10
10
|
const formattedTimestamp = firestoreTimestamp.toISOString();
|
|
11
11
|
return formattedTimestamp;
|
|
12
12
|
};
|
|
13
|
+
export { analytics, Analytics } from './analytics';
|
|
14
|
+
export { Currency } from './currency';
|
|
15
|
+
export { useMultiSnapBottomSheetRef } from './useMultiSnapBottomSheetRef';
|
|
16
|
+
export { useSingleSnapBottomSheetRef } from './useSingleSnapBottomSheetRef';
|
|
13
17
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["Dimensions","initialWindowMetrics","firestore","getPercentageFromHeight","height","totalHeight","get","insets","top","bottom","Math","ceil","getCurrentTimestamp","firestoreTimestamp","Timestamp","now","toDate","formattedTimestamp","toISOString"],"sourceRoot":"../../../src","sources":["utils/index.ts"],"mappings":"AAAA,SAASA,UAAU,QAAQ,cAAc;AACzC,SAASC,oBAAoB,QAAQ,gCAAgC;AACrE,OAAOC,SAAS,MAAM,kCAAkC;AAExD,OAAO,MAAMC,uBAAuB,GAAIC,MAAc,IAAa;EACjE,MAAMC,WAAW,GACfL,UAAU,CAACM,GAAG,CAAC,QAAQ,CAAC,CAACF,MAAM,IAC9BH,oBAAoB,EAAEM,MAAM,EAAEC,GAAG,IAAI,CAAC,CAAC,IACvCP,oBAAoB,EAAEM,MAAM,EAAEE,MAAM,IAAI,CAAC,CAAC;EAE7C,OAAOC,IAAI,CAACC,IAAI,CAAEP,MAAM,GAAGC,WAAW,GAAI,GAAG,CAAC,GAAG,GAAG;AACtD,CAAC;AAED,OAAO,MAAMO,mBAAmB,GAAGA,CAAA,KAAM;EACvC,MAAMC,kBAAkB,GAAGX,SAAS,CAACY,SAAS,CAACC,GAAG,CAAC,CAAC,CAACC,MAAM,CAAC,CAAC;EAC7D,MAAMC,kBAAkB,GAAGJ,kBAAkB,CAACK,WAAW,CAAC,CAAC;EAE3D,OAAOD,kBAAkB;AAC3B,CAAC"}
|
|
1
|
+
{"version":3,"names":["Dimensions","initialWindowMetrics","firestore","getPercentageFromHeight","height","totalHeight","get","insets","top","bottom","Math","ceil","getCurrentTimestamp","firestoreTimestamp","Timestamp","now","toDate","formattedTimestamp","toISOString","analytics","Analytics","Currency","useMultiSnapBottomSheetRef","useSingleSnapBottomSheetRef"],"sourceRoot":"../../../src","sources":["utils/index.ts"],"mappings":"AAAA,SAASA,UAAU,QAAQ,cAAc;AACzC,SAASC,oBAAoB,QAAQ,gCAAgC;AACrE,OAAOC,SAAS,MAAM,kCAAkC;AAExD,OAAO,MAAMC,uBAAuB,GAAIC,MAAc,IAAa;EACjE,MAAMC,WAAW,GACfL,UAAU,CAACM,GAAG,CAAC,QAAQ,CAAC,CAACF,MAAM,IAC9BH,oBAAoB,EAAEM,MAAM,EAAEC,GAAG,IAAI,CAAC,CAAC,IACvCP,oBAAoB,EAAEM,MAAM,EAAEE,MAAM,IAAI,CAAC,CAAC;EAE7C,OAAOC,IAAI,CAACC,IAAI,CAAEP,MAAM,GAAGC,WAAW,GAAI,GAAG,CAAC,GAAG,GAAG;AACtD,CAAC;AAED,OAAO,MAAMO,mBAAmB,GAAGA,CAAA,KAAM;EACvC,MAAMC,kBAAkB,GAAGX,SAAS,CAACY,SAAS,CAACC,GAAG,CAAC,CAAC,CAACC,MAAM,CAAC,CAAC;EAC7D,MAAMC,kBAAkB,GAAGJ,kBAAkB,CAACK,WAAW,CAAC,CAAC;EAE3D,OAAOD,kBAAkB;AAC3B,CAAC;AAED,SAASE,SAAS,EAAEC,SAAS,QAAQ,aAAa;AAClD,SAASC,QAAQ,QAAQ,YAAY;AACrC,SAEEC,0BAA0B,QACrB,8BAA8B;AACrC,SAEEC,2BAA2B,QACtB,+BAA+B"}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export declare const signUpAPI: (payload: {
|
|
2
|
+
displayName: string;
|
|
3
|
+
email: string;
|
|
4
|
+
phoneNumber: string;
|
|
5
|
+
name?: string;
|
|
6
|
+
}) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
3
7
|
export declare const checkIsRegisteredAPI: (payload: {
|
|
4
8
|
displayName?: string;
|
|
5
9
|
email?: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"authentication.d.ts","sourceRoot":"","sources":["../../../../src/api/authentication.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS,YAAa;IACjC,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,qDAEA,CAAC;AAEF,eAAO,MAAM,oBAAoB,YAAa;IAC5C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,qDAKA,CAAC;AAEF,eAAO,MAAM,aAAa,wDAEzB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Address, ConnectSquareCustomerRequest,
|
|
1
|
+
import { Address, ConnectSquareCustomerRequest, SaveCardRequest } from '@kiosinc/commons-types';
|
|
2
2
|
export declare const getCustomer: (userId: string) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
3
3
|
export declare const createCustomer: ({ uid, address, }: {
|
|
4
4
|
uid: string;
|
|
@@ -6,7 +6,11 @@ export declare const createCustomer: ({ uid, address, }: {
|
|
|
6
6
|
}) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
7
7
|
export declare const updateCustomerProfile: ({ uid, props, }: {
|
|
8
8
|
uid: string;
|
|
9
|
-
props:
|
|
9
|
+
props: {
|
|
10
|
+
addressId: string | null;
|
|
11
|
+
paymentId: string | null;
|
|
12
|
+
squareCustomerId: string | null;
|
|
13
|
+
};
|
|
10
14
|
}) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
11
15
|
export declare const saveCustomerAddress: ({ uid, address, }: {
|
|
12
16
|
uid: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customer.d.ts","sourceRoot":"","sources":["../../../../src/api/customer.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,EACP,4BAA4B,EAC5B,
|
|
1
|
+
{"version":3,"file":"customer.d.ts","sourceRoot":"","sources":["../../../../src/api/customer.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,EACP,4BAA4B,EAC5B,eAAe,EAChB,MAAM,wBAAwB,CAAC;AAIhC,eAAO,MAAM,WAAW,WAAkB,MAAM,qDAE/C,CAAC;AAEF,eAAO,MAAM,cAAc;SAIpB,MAAM;;sDASZ,CAAC;AAEF,eAAO,MAAM,qBAAqB;SAI3B,MAAM;WACJ;QACL,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;QACzB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;QACzB,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;KACjC;sDAQF,CAAC;AAEF,eAAO,MAAM,mBAAmB;SAIzB,MAAM;aACF,OAAO;sDAQjB,CAAC;AAEF,eAAO,MAAM,gBAAgB;SAItB,MAAM;WACJ,eAAe;sDAQvB,CAAC;AAEF,eAAO,MAAM,oBAAoB,QAC1B,MAAM,SACJ,4BAA4B,qDAQpC,CAAC;AAEF,eAAO,MAAM,qBAAqB,QAC3B,MAAM,SACJ,4BAA4B,qDAQpC,CAAC;AAEF,eAAO,MAAM,kBAAkB,QAAe,MAAM,cAAc,MAAM,qDAOvE,CAAC;AAEF,eAAO,MAAM,mBAAmB,eAAsB,MAAM,qDAI3D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/helpers/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
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';
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -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"}
|