mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-06-10 20:35:17 +02:00
feat: add getInvites request/response schemas
This commit is contained in:
parent
bec21a7207
commit
a74e69fdc5
1 changed files with 11 additions and 0 deletions
|
|
@ -174,6 +174,15 @@ export const createInviteRequest = z.object({
|
|||
|
||||
export const createInviteResponse = invite;
|
||||
|
||||
/**
|
||||
* Get invites
|
||||
*/
|
||||
export const getInvitesRequest = z.object({
|
||||
search_space_id: z.number(),
|
||||
});
|
||||
|
||||
export const getInvitesResponse = z.array(invite);
|
||||
|
||||
export type Role = z.infer<typeof role>;
|
||||
export type Membership = z.infer<typeof membership>;
|
||||
export type Invite = z.infer<typeof invite>;
|
||||
|
|
@ -199,3 +208,5 @@ export type LeaveSearchSpaceRequest = z.infer<typeof leaveSearchSpaceRequest>;
|
|||
export type LeaveSearchSpaceResponse = z.infer<typeof leaveSearchSpaceResponse>;
|
||||
export type CreateInviteRequest = z.infer<typeof createInviteRequest>;
|
||||
export type CreateInviteResponse = z.infer<typeof createInviteResponse>;
|
||||
export type GetInvitesRequest = z.infer<typeof getInvitesRequest>;
|
||||
export type GetInvitesResponse = z.infer<typeof getInvitesResponse>;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue