summaryrefslogtreecommitdiff
path: root/src-migrate/common/types
diff options
context:
space:
mode:
Diffstat (limited to 'src-migrate/common/types')
-rw-r--r--src-migrate/common/types/auth.ts31
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;
};