summaryrefslogtreecommitdiff
path: root/src-migrate/common/types/auth.ts
diff options
context:
space:
mode:
authorIT Fixcomart <it@fixcomart.co.id>2024-01-19 02:32:43 +0000
committerIT Fixcomart <it@fixcomart.co.id>2024-01-19 02:32:43 +0000
commit8bcadf6d43a44169c422305522784424c30c7b02 (patch)
tree4666802b65784a949db4acad665a81de7297fc74 /src-migrate/common/types/auth.ts
parent065396828266e2de42cb0182c81ea2d7a5b00e2b (diff)
parent91086d8b1af2e1c0ca9db38d037f6331c9e6131a (diff)
Merged in Feature/perf/product-detail (pull request #127)
Feature/perf/product detail
Diffstat (limited to 'src-migrate/common/types/auth.ts')
-rw-r--r--src-migrate/common/types/auth.ts58
1 files changed, 0 insertions, 58 deletions
diff --git a/src-migrate/common/types/auth.ts b/src-migrate/common/types/auth.ts
deleted file mode 100644
index 65fd06c7..00000000
--- a/src-migrate/common/types/auth.ts
+++ /dev/null
@@ -1,58 +0,0 @@
-import { registerSchema } from '../validations/auth';
-import { OdooApiProps } from './odoo';
-import { z } from 'zod';
-
-export type AuthProps = {
- id: number;
- parent_id: number;
- parent_name: string;
- partner_id: number;
- name: string;
- email: string;
- phone: string;
- mobile: string;
- external: boolean;
- company: boolean;
- pricelist: string | null;
- token: string;
-};
-
-export type AuthApiProps = OdooApiProps & { result: AuthProps };
-
-export type RegisterProps = z.infer<typeof registerSchema>;
-
-export type RegisterResApiProps = {
- register: boolean;
- reason: 'EMAIL_USED' | 'NOT_ACTIVE' | 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 ActivationOtpResApiProps = ActivationResProps & {
- reason: 'INVALID_OTP' | null;
-};
-
-export type ActivationReqProps = {
- email: string;
-};
-
-export type ActivationReqResApiProps = {
- activation_request: boolean;
- reason: 'NOT_FOUND' | 'ACTIVE' | null;
-};