This commit is contained in:
2024-11-26 13:19:48 +07:00
commit df875117b0
31 changed files with 1273 additions and 0 deletions

3
src/types/error.ts Normal file
View File

@ -0,0 +1,3 @@
export type ErrorType = 'General' | 'Raw' | 'Validation' | 'Unauthorized';
export type ErrorValidation = { [key: string]: string };

8
src/types/paging.ts Normal file
View File

@ -0,0 +1,8 @@
export interface Paging {
page: number,
limit: number,
filter: any,
with_deleted: boolean,
order_field: string,
order_direction: 'ASC' | 'DESC'
}

1
src/types/role.ts Normal file
View File

@ -0,0 +1 @@
export type Role = 'ADMINISTRATOR' | 'HR' | 'STAFF';

4
src/types/status.ts Normal file
View File

@ -0,0 +1,4 @@
export enum Status {
"Active" = "Y",
"Not Active" = "N"
};