initial
This commit is contained in:
3
src/types/error.ts
Normal file
3
src/types/error.ts
Normal 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
8
src/types/paging.ts
Normal 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
1
src/types/role.ts
Normal file
@ -0,0 +1 @@
|
||||
export type Role = 'ADMINISTRATOR' | 'HR' | 'STAFF';
|
||||
4
src/types/status.ts
Normal file
4
src/types/status.ts
Normal file
@ -0,0 +1,4 @@
|
||||
export enum Status {
|
||||
"Active" = "Y",
|
||||
"Not Active" = "N"
|
||||
};
|
||||
Reference in New Issue
Block a user