mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-26 01:06:23 +02:00
feat: add updateMembership request/response schemas
This commit is contained in:
parent
289cbc627c
commit
39c64103ab
1 changed files with 15 additions and 0 deletions
|
|
@ -123,6 +123,19 @@ export const getMembersRequest = z.object({
|
|||
|
||||
export const getMembersResponse = z.array(membership);
|
||||
|
||||
/**
|
||||
* Update membership
|
||||
*/
|
||||
export const updateMembershipRequest = z.object({
|
||||
search_space_id: z.number(),
|
||||
membership_id: z.number(),
|
||||
data: z.object({
|
||||
role_id: z.number(),
|
||||
}),
|
||||
});
|
||||
|
||||
export const updateMembershipResponse = membership;
|
||||
|
||||
export type Role = z.infer<typeof role>;
|
||||
export type Membership = z.infer<typeof membership>;
|
||||
export type Invite = z.infer<typeof invite>;
|
||||
|
|
@ -140,3 +153,5 @@ export type DeleteRoleRequest = z.infer<typeof deleteRoleRequest>;
|
|||
export type DeleteRoleResponse = z.infer<typeof deleteRoleResponse>;
|
||||
export type GetMembersRequest = z.infer<typeof getMembersRequest>;
|
||||
export type GetMembersResponse = z.infer<typeof getMembersResponse>;
|
||||
export type UpdateMembershipRequest = z.infer<typeof updateMembershipRequest>;
|
||||
export type UpdateMembershipResponse = z.infer<typeof updateMembershipResponse>;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue