Tests, UX improvements.
This commit is contained in:
parent
4e6f5d36b8
commit
0ae18f495e
63 changed files with 1384 additions and 2330 deletions
|
|
@ -57,13 +57,6 @@ export const eventRegistrationSchema = z.object({
|
|||
dietary: z.boolean().optional()
|
||||
})
|
||||
|
||||
export const updateCreateSchema = z.object({
|
||||
content: z.string().min(1).max(50000),
|
||||
images: z.array(z.string().url()).max(20).optional(),
|
||||
privacy: z.enum(['public', 'members', 'private']).optional(),
|
||||
commentsEnabled: z.boolean().optional()
|
||||
})
|
||||
|
||||
export const paymentVerifySchema = z.object({
|
||||
cardToken: z.string().min(1),
|
||||
customerId: z.union([z.string(), z.number()]).transform(String)
|
||||
|
|
@ -179,15 +172,6 @@ export const peerSupportUpdateSchema = z.object({
|
|||
slackUsername: z.string().max(200).optional()
|
||||
})
|
||||
|
||||
// --- Update schemas ---
|
||||
|
||||
export const updatePatchSchema = z.object({
|
||||
content: z.string().min(1).max(50000).optional(),
|
||||
images: z.array(z.string().url()).max(20).optional(),
|
||||
privacy: z.enum(['public', 'members', 'private']).optional(),
|
||||
commentsEnabled: z.boolean().optional()
|
||||
})
|
||||
|
||||
// --- Series ticket schemas ---
|
||||
|
||||
export const seriesTicketPurchaseSchema = z.object({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue