summaryrefslogtreecommitdiff
path: root/src-migrate/types
diff options
context:
space:
mode:
Diffstat (limited to 'src-migrate/types')
-rw-r--r--src-migrate/types/auth.ts4
-rw-r--r--src-migrate/types/category.ts4
-rw-r--r--src-migrate/types/odoo.ts5
3 files changed, 9 insertions, 4 deletions
diff --git a/src-migrate/types/auth.ts b/src-migrate/types/auth.ts
index 4f69bb96..02e3623d 100644
--- a/src-migrate/types/auth.ts
+++ b/src-migrate/types/auth.ts
@@ -1,5 +1,5 @@
import { registerSchema } from '~/validations/auth';
-import { OdooApiProps } from './odoo';
+import { OdooApiRes } from './odoo';
import { z } from 'zod';
export type AuthProps = {
@@ -17,7 +17,7 @@ export type AuthProps = {
token: string;
};
-export type AuthApiProps = OdooApiProps & { result: AuthProps };
+export type AuthApiProps = OdooApiRes<AuthProps>;
export type RegisterProps = z.infer<typeof registerSchema>;
diff --git a/src-migrate/types/category.ts b/src-migrate/types/category.ts
new file mode 100644
index 00000000..1037b5f9
--- /dev/null
+++ b/src-migrate/types/category.ts
@@ -0,0 +1,4 @@
+export interface ICategoryBreadcrumb {
+ id: number;
+ name: string;
+}
diff --git a/src-migrate/types/odoo.ts b/src-migrate/types/odoo.ts
index b34bc667..73a029e9 100644
--- a/src-migrate/types/odoo.ts
+++ b/src-migrate/types/odoo.ts
@@ -1,6 +1,7 @@
-export type OdooApiProps = {
+export interface OdooApiRes<T> {
status: {
code: number;
description: string;
};
-};
+ result: T;
+}