diff options
| author | Rafi Zadanly <zadanlyr@gmail.com> | 2023-10-25 17:27:32 +0700 |
|---|---|---|
| committer | Rafi Zadanly <zadanlyr@gmail.com> | 2023-10-25 17:27:32 +0700 |
| commit | cf6da809621b4ebe8c9acedb035b689e7e1b60b1 (patch) | |
| tree | 5b5a80f7b13066bf3a2342242d6e4fce4b25b5b2 /src-migrate/common/types/auth.ts | |
| parent | 90710579ba1c12060877f6ec2d26103f9c31058d (diff) | |
Update register page
Diffstat (limited to 'src-migrate/common/types/auth.ts')
| -rw-r--r-- | src-migrate/common/types/auth.ts | 31 |
1 files changed, 26 insertions, 5 deletions
diff --git a/src-migrate/common/types/auth.ts b/src-migrate/common/types/auth.ts index 63fac6e0..3d9ffee4 100644 --- a/src-migrate/common/types/auth.ts +++ b/src-migrate/common/types/auth.ts @@ -22,11 +22,32 @@ export type RegisterProps = { email: string; password: string; company: string; + phone: string; +}; + +export type RegisterResApiProps = { + register: boolean; + reason: 'EMAIL_USED' | null; +}; + +type ActivationResProps = { + activation: boolean; + user: AuthProps | null; +}; + +export type ActivationTokenProps = { + token: string; +}; + +export type ActivationTokenResApiProps = ActivationResProps & { + reason: 'INVALID_TOKEN' | null; +}; + +export type ActivationOtpProps = { + email: string; + otp: string; }; -export type RegisterApiProps = OdooApiProps & { - result: { - register: boolean; - reason?: 'EMAIL_USED'; - }; +export type ActivationOtpResApiProps = ActivationResProps & { + reason: 'INVALID_OTP' | null; }; |
