mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-07-04 22:02:16 +02:00
fix: update invite schemas to match backend and fix cache key reference
This commit is contained in:
parent
f8ec87c7f2
commit
1c00e6f12e
2 changed files with 41 additions and 10 deletions
|
|
@ -77,11 +77,10 @@ export const getInviteInfoRequest = z.object({
|
|||
});
|
||||
|
||||
export const getInviteInfoResponse = z.object({
|
||||
invite_code: z.string(),
|
||||
search_space_name: z.string(),
|
||||
role_name: z.string().nullable(),
|
||||
expires_at: z.string().nullable(),
|
||||
is_valid: z.boolean(),
|
||||
message: z.string().nullable(),
|
||||
});
|
||||
|
||||
/**
|
||||
|
|
@ -94,6 +93,8 @@ export const acceptInviteRequest = z.object({
|
|||
export const acceptInviteResponse = z.object({
|
||||
message: z.string(),
|
||||
search_space_id: z.number(),
|
||||
search_space_name: z.string(),
|
||||
role_name: z.string().nullable(),
|
||||
});
|
||||
|
||||
export type Invite = z.infer<typeof invite>;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue