2022-02-17 18:26:53 +00:00
|
|
|
import * as z from "zod"
|
|
|
|
import * as imports from "../zod-utils"
|
|
|
|
import { CompleteBooking, BookingModel } from "./index"
|
2022-01-21 21:35:31 +00:00
|
|
|
|
|
|
|
export const _AttendeeModel = z.object({
|
|
|
|
id: z.number().int(),
|
|
|
|
email: z.string(),
|
|
|
|
name: z.string(),
|
|
|
|
timeZone: z.string(),
|
2022-01-27 20:32:53 +00:00
|
|
|
locale: z.string().nullish(),
|
2022-01-21 21:35:31 +00:00
|
|
|
bookingId: z.number().int().nullish(),
|
2022-02-17 18:26:53 +00:00
|
|
|
})
|
2022-01-21 21:35:31 +00:00
|
|
|
|
|
|
|
export interface CompleteAttendee extends z.infer<typeof _AttendeeModel> {
|
2022-02-17 18:26:53 +00:00
|
|
|
booking?: CompleteBooking | null
|
2022-01-21 21:35:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* AttendeeModel contains all relations on your model in addition to the scalars
|
|
|
|
*
|
|
|
|
* NOTE: Lazy required in case of potential circular dependencies within schema
|
|
|
|
*/
|
2022-02-17 18:26:53 +00:00
|
|
|
export const AttendeeModel: z.ZodSchema<CompleteAttendee> = z.lazy(() => _AttendeeModel.extend({
|
|
|
|
booking: BookingModel.nullish(),
|
|
|
|
}))
|