This commit is contained in:
ValdiANS
2025-09-26 11:06:31 +07:00
parent a5524686a6
commit 2e1b0fef2b
36 changed files with 8716 additions and 79 deletions
+35
View File
@@ -0,0 +1,35 @@
type ErrorApiResponse = {
code: number;
status: 'error';
message: string;
errors?: { [key: string]: string };
};
type SuccessApiResponse<T = unknown> = {
code: number;
status: 'success';
message: string;
meta?: {
page: number;
limit: number;
total_pages: number;
total_results: number;
};
data: T;
};
type BaseApiResponse<T = unknown> = ErrorApiResponse | SuccessApiResponse<T>;
export type User = {
id: number;
email: string;
npk: string;
name: string;
image?: string | null;
created_at: string;
updated_at: string;
};
export type UserWithRoles = User & {
roles: RoleWithPermissions[];
};
+1
View File
@@ -0,0 +1 @@
export type UIStore = {};
+11
View File
@@ -0,0 +1,11 @@
type Color =
| 'primary'
| 'secondary'
| 'accent'
| 'neutral'
| 'info'
| 'success'
| 'warning'
| 'error';
export { Color };