Merge branch 'development' of gitlab.com:mbugroup/lti-web-client into dev/restu

This commit is contained in:
rstubryan
2025-10-20 10:10:30 +07:00
8 changed files with 254 additions and 2 deletions
+38
View File
@@ -24,6 +24,36 @@ export type LogoutResponse = BaseApiResponse;
export type GetMeResponse = BaseApiResponse<UserWithRoles>;
export type Client = {
id: number;
name: stirng;
alias: string;
created_at: string;
updated_at: string;
};
export type Permission = {
id: number;
name: string;
action: string;
client: Omit<Client, 'created_at' | 'updated_at'>;
created_at: string;
updated_at: string;
};
export type Role = {
id: number;
key: string;
name: string;
client: Omit<Client, 'created_at' | 'updated_at'>;
created_at: string;
updated_at: string;
};
export type RoleWithPermissions = Omit<Role, 'created_at' | 'updated_at'> & {
permissions: Omit<Permission, 'created_at' | 'updated_at'>[];
};
export type User = {
id: number;
email: string;
@@ -66,3 +96,11 @@ export type flags =
| 'STARTER'
| 'FINISHER'
| 'OVK';
export type ApprovalsLine = {
action_by?: string;
date?: string;
notes?: string;
role?: string;
status: 'approved' | 'rejected' | 'waiting';
}[];