mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-06-06 20:15:17 +02:00
feat: add deleteRole request/response schemas
This commit is contained in:
parent
6eaf37589d
commit
c51612867d
1 changed files with 14 additions and 0 deletions
|
|
@ -102,6 +102,18 @@ export const updateRoleRequest = z.object({
|
|||
|
||||
export const updateRoleResponse = role;
|
||||
|
||||
/**
|
||||
* Delete role
|
||||
*/
|
||||
export const deleteRoleRequest = z.object({
|
||||
search_space_id: z.number(),
|
||||
role_id: z.number(),
|
||||
});
|
||||
|
||||
export const deleteRoleResponse = z.object({
|
||||
message: z.string(),
|
||||
});
|
||||
|
||||
export type Role = z.infer<typeof role>;
|
||||
export type Membership = z.infer<typeof membership>;
|
||||
export type Invite = z.infer<typeof invite>;
|
||||
|
|
@ -115,3 +127,5 @@ export type GetRoleByIdRequest = z.infer<typeof getRoleByIdRequest>;
|
|||
export type GetRoleByIdResponse = z.infer<typeof getRoleByIdResponse>;
|
||||
export type UpdateRoleRequest = z.infer<typeof updateRoleRequest>;
|
||||
export type UpdateRoleResponse = z.infer<typeof updateRoleResponse>;
|
||||
export type DeleteRoleRequest = z.infer<typeof deleteRoleRequest>;
|
||||
export type DeleteRoleResponse = z.infer<typeof deleteRoleResponse>;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue