* Migrate legacy api endpoints to tRPC II (#3865) * fix: delete api route /api/availability/day * fix: delete api route /api/availability/eventtype (#3573) * fix: delete api route /api/event-type (#3573) * migrate /api/book/confirm to viewer.bookings.confirm * Merge branch 'main' into pr/3865 Co-authored-by: hussamkhatib <[email protected]> Co-authored-by: Peer Richelsen <[email protected]> Co-authored-by: zomars <[email protected]> * Import fixes * Import fixes Co-authored-by: mohammed hussam <[email protected]> Co-authored-by: hussamkhatib <[email protected]> Co-authored-by: Peer Richelsen <[email protected]>
This commit is contained in:
10 files changed
+391
-821
No files matched your search
@@ -89,6 +89,13 @@ export const bookingCreateBodySchema = z.object({
|
||||
|
||||
export type BookingCreateBody = z.input<typeof bookingCreateBodySchema>;
|
||||
|
||||
export const bookingConfirmPatchBodySchema = z.object({
|
||||
bookingId: z.number(),
|
||||
confirmed: z.boolean(),
|
||||
recurringEventId: z.string().optional(),
|
||||
reason: z.string().optional(),
|
||||
});
|
||||
|
||||
export const extendedBookingCreateBody = bookingCreateBodySchema.merge(
|
||||
z.object({
|
||||
noEmail: z.boolean().optional(),
|
||||
|
||||
Reference in new issue
Block a user