Add authentification
This commit is contained in:
@@ -1,15 +1,27 @@
|
||||
import type { Product } from "@/services/resources/products";
|
||||
|
||||
export type UserLogged = {
|
||||
logged: boolean;
|
||||
user?: User;
|
||||
};
|
||||
|
||||
export type Role = {
|
||||
id: number;
|
||||
name: string;
|
||||
};
|
||||
|
||||
export type User = {
|
||||
id: number;
|
||||
name: string;
|
||||
email: string;
|
||||
products: Product[];
|
||||
roles: Role[];
|
||||
};
|
||||
|
||||
export type UserInputs = {
|
||||
email: string;
|
||||
name: string;
|
||||
role_names: string[];
|
||||
};
|
||||
|
||||
export type UserCreate = {
|
||||
|
||||
Reference in New Issue
Block a user