@@ -6,13 +6,12 @@ import {
66 MIN_EVENT_DURATION_MINUTES ,
77} from "@calcom/lib/constants" ;
88import slugify from "@calcom/lib/slugify" ;
9- import { customInputSchema , eventTypeBookingFields } from "@calcom/prisma/zod-utils" ;
9+ import { eventTypeBookingFields } from "@calcom/prisma/zod-utils" ;
1010import { EventTypeSchema } from "@calcom/prisma/zod/modelSchema/EventTypeSchema" ;
1111import { HostSchema } from "@calcom/prisma/zod/modelSchema/HostSchema" ;
1212
1313import { Frequency } from "~/lib/types" ;
1414
15- import { jsonSchema } from "./shared/jsonSchema" ;
1615import { schemaQueryUserId } from "./shared/queryUserId" ;
1716import { timeZone } from "./shared/timeZone" ;
1817
@@ -118,67 +117,3 @@ const schemaEventTypeEditParams = z
118117 . strict ( ) ;
119118
120119export const schemaEventTypeEditBodyParams = schemaEventTypeBaseBodyParams . merge ( schemaEventTypeEditParams ) ;
121- export const schemaEventTypeReadPublic = EventTypeSchema . pick ( {
122- id : true ,
123- title : true ,
124- slug : true ,
125- length : true ,
126- hidden : true ,
127- position : true ,
128- userId : true ,
129- teamId : true ,
130- scheduleId : true ,
131- eventName : true ,
132- timeZone : true ,
133- periodType : true ,
134- periodStartDate : true ,
135- periodEndDate : true ,
136- periodDays : true ,
137- periodCountCalendarDays : true ,
138- requiresConfirmation : true ,
139- recurringEvent : true ,
140- disableGuests : true ,
141- hideCalendarNotes : true ,
142- minimumBookingNotice : true ,
143- beforeEventBuffer : true ,
144- afterEventBuffer : true ,
145- schedulingType : true ,
146- price : true ,
147- currency : true ,
148- slotInterval : true ,
149- parentId : true ,
150- successRedirectUrl : true ,
151- description : true ,
152- locations : true ,
153- metadata : true ,
154- seatsPerTimeSlot : true ,
155- seatsShowAttendees : true ,
156- seatsShowAvailabilityCount : true ,
157- bookingFields : true ,
158- bookingLimits : true ,
159- onlyShowFirstAvailableSlot : true ,
160- durationLimits : true ,
161- } ) . merge (
162- z . object ( {
163- children : z . array ( childrenSchema ) . optional ( ) . default ( [ ] ) ,
164- hosts : z . array ( hostSchema ) . optional ( ) . default ( [ ] ) ,
165- locations : z
166- . array (
167- z . object ( {
168- link : z . string ( ) . optional ( ) ,
169- address : z . string ( ) . optional ( ) ,
170- hostPhoneNumber : z . string ( ) . optional ( ) ,
171- type : z . any ( ) . optional ( ) ,
172- } )
173- )
174- . nullable ( ) ,
175- metadata : jsonSchema . nullable ( ) ,
176- customInputs : customInputSchema . array ( ) . optional ( ) ,
177- link : z . string ( ) . optional ( ) ,
178- hashedLink : z
179- . array ( z . object ( { link : z . string ( ) } ) )
180- . optional ( )
181- . default ( [ ] ) ,
182- bookingFields : eventTypeBookingFields . optional ( ) . nullable ( ) ,
183- } )
184- ) ;
0 commit comments