| 
									
										
										
										
											2021-12-03 10:15:20 +00:00
										 |  |  | import { Attendee, Booking } from "@prisma/client"; | 
					
						
							| 
									
										
										
										
											2021-09-22 19:52:38 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-10-26 16:17:24 +00:00
										 |  |  | export type BookingConfirmBody = { | 
					
						
							|  |  |  |   confirmed: boolean; | 
					
						
							|  |  |  |   id: number; | 
					
						
							|  |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-09-22 18:36:13 +00:00
										 |  |  | export type BookingCreateBody = { | 
					
						
							|  |  |  |   email: string; | 
					
						
							|  |  |  |   end: string; | 
					
						
							|  |  |  |   eventTypeId: number; | 
					
						
							| 
									
										
										
										
											2021-12-03 10:15:20 +00:00
										 |  |  |   guests?: string[]; | 
					
						
							|  |  |  |   location: string; | 
					
						
							| 
									
										
										
										
											2021-09-22 18:36:13 +00:00
										 |  |  |   name: string; | 
					
						
							| 
									
										
										
										
											2021-12-03 10:15:20 +00:00
										 |  |  |   notes?: string; | 
					
						
							| 
									
										
										
										
											2021-09-22 18:36:13 +00:00
										 |  |  |   rescheduleUid?: string; | 
					
						
							|  |  |  |   start: string; | 
					
						
							|  |  |  |   timeZone: string; | 
					
						
							| 
									
										
										
										
											2021-12-03 16:18:31 +00:00
										 |  |  |   user?: string | string[]; | 
					
						
							| 
									
										
										
										
											2021-10-25 13:05:21 +00:00
										 |  |  |   language: string; | 
					
						
							| 
									
										
										
										
											2021-12-03 10:15:20 +00:00
										 |  |  |   customInputs: { label: string; value: string }[]; | 
					
						
							|  |  |  |   metadata: { | 
					
						
							|  |  |  |     [key: string]: string; | 
					
						
							|  |  |  |   }; | 
					
						
							| 
									
										
										
										
											2021-09-22 18:36:13 +00:00
										 |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | export type BookingResponse = Booking & { | 
					
						
							|  |  |  |   paymentUid?: string; | 
					
						
							| 
									
										
										
										
											2021-12-03 10:15:20 +00:00
										 |  |  |   attendees: Attendee[]; | 
					
						
							| 
									
										
										
										
											2021-09-22 18:36:13 +00:00
										 |  |  | }; |