summaryrefslogtreecommitdiff
path: root/src-migrate/common/types
diff options
context:
space:
mode:
authortrisusilo48 <tri.susilo@altama.co.id>2024-07-10 15:58:51 +0700
committertrisusilo48 <tri.susilo@altama.co.id>2024-07-10 15:58:51 +0700
commit2e3c726bc8217f3960cfecec44b81303b03de72b (patch)
tree1b85ced7f61f3e4c3f1f27b577b37aa161615065 /src-migrate/common/types
parent2b3bd9c0a454dbad69ce29cee877bfb1fca5dfa6 (diff)
parenta99bf6480eea556e53b85e6db45f3b8c2361e693 (diff)
Merge branch 'release' into development
# Conflicts: # src/pages/shop/product/variant/[slug].jsx
Diffstat (limited to 'src-migrate/common/types')
-rw-r--r--src-migrate/common/types/auth.ts58
-rw-r--r--src-migrate/common/types/nav.ts4
-rw-r--r--src-migrate/common/types/odoo.ts6
-rw-r--r--src-migrate/common/types/pageContent.ts5
4 files changed, 0 insertions, 73 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;
-};
diff --git a/src-migrate/common/types/nav.ts b/src-migrate/common/types/nav.ts
deleted file mode 100644
index ba97b1bf..00000000
--- a/src-migrate/common/types/nav.ts
+++ /dev/null
@@ -1,4 +0,0 @@
-export type SecondaryNavItemProps = {
- label: string
- href: string
-}
diff --git a/src-migrate/common/types/odoo.ts b/src-migrate/common/types/odoo.ts
deleted file mode 100644
index b34bc667..00000000
--- a/src-migrate/common/types/odoo.ts
+++ /dev/null
@@ -1,6 +0,0 @@
-export type OdooApiProps = {
- status: {
- code: number;
- description: string;
- };
-};
diff --git a/src-migrate/common/types/pageContent.ts b/src-migrate/common/types/pageContent.ts
deleted file mode 100644
index 4361deb7..00000000
--- a/src-migrate/common/types/pageContent.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-export type PageContentProps = {
- id: number;
- url_path: string;
- content: string;
-} | null;