feat: manage waitlist and remove group members
- Add group-waitlist module (list/promote/remove entries) - Remove attendee with optional atomic promotion from waitlist - Block removal when attendee has payments (attendee_has_payments) - Waitlist detail modal matching members UI; optimistic add-to-waitlist - Responsive tweaks for the members/waitlist tabs
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { z } from 'zod';
|
||||
import { createPageSchema, createPageSizeSchema, createPaginationSchema } from './pagination.js';
|
||||
import { GroupWaitlistEntryDtoSchema } from './waitlist.js';
|
||||
|
||||
const isoDateTimeSchema = z.string().datetime();
|
||||
const pageSchema = createPageSchema();
|
||||
@@ -92,4 +93,20 @@ export const BulkCreateAttendeesResultSchema = z.object({
|
||||
message: z.string(),
|
||||
created: z.array(AttendeeDtoSchema),
|
||||
});
|
||||
export type BulkCreateAttendeesResult = z.output<typeof BulkCreateAttendeesResultSchema>;
|
||||
export type BulkCreateAttendeesResult = z.output<typeof BulkCreateAttendeesResultSchema>;
|
||||
|
||||
export const PromoteGroupWaitlistEntryResultSchema = z.object({
|
||||
attendee: AttendeeDtoSchema,
|
||||
});
|
||||
export type PromoteGroupWaitlistEntryResult = z.output<typeof PromoteGroupWaitlistEntryResultSchema>;
|
||||
|
||||
export const RemoveAttendeeQuerySchema = z.object({
|
||||
promoteFromWaitlist: z.coerce.boolean().optional(),
|
||||
});
|
||||
export type RemoveAttendeeQuery = z.output<typeof RemoveAttendeeQuerySchema>;
|
||||
|
||||
export const RemoveAttendeeResultSchema = z.object({
|
||||
removedAttendeeId: z.string(),
|
||||
promoted: GroupWaitlistEntryDtoSchema.nullable(),
|
||||
});
|
||||
export type RemoveAttendeeResult = z.output<typeof RemoveAttendeeResultSchema>;
|
||||
Reference in New Issue
Block a user