mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-22 06:15:47 +00:00
Merge branch 'development' of gitlab.com:mbugroup/lti-web-client into dev/restu
This commit is contained in:
Vendored
+38
@@ -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';
|
||||
}[];
|
||||
|
||||
Reference in New Issue
Block a user