From 26888a36301d91404a4ac4fa86836bee5e93f3c0 Mon Sep 17 00:00:00 2001 From: Agusti Fernandez Pardo Date: Wed, 18 May 2022 22:03:36 +0200 Subject: [PATCH] fix typeof schemaEventTypeReadPublic --- lib/types.ts | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/lib/types.ts b/lib/types.ts index 13670a0408..edd5b9f6c9 100644 --- a/lib/types.ts +++ b/lib/types.ts @@ -1,10 +1,8 @@ import { User, - ApiKey, Team, Credential, SelectedCalendar, - EventType, EventTypeCustomInput, Attendee, Availability, @@ -19,6 +17,8 @@ import { ReminderMail, } from "@calcom/prisma/client"; +import { schemaEventTypeReadPublic } from "@lib/validations/event-type"; + // Base response, used for all responses export type BaseResponse = { message?: string; @@ -124,17 +124,13 @@ export type EventTypeCustomInputResponse = BaseResponse & { export type EventTypeCustomInputsResponse = BaseResponse & { event_type_custom_inputs?: Partial[]; }; -export interface EventTypeMeta extends Omit { - locations: object | null; - metadata: object | null; - recurringEvent: object | null; -} + // EventType export type EventTypeResponse = BaseResponse & { - event_type?: Partial; + event_type?: Partial; }; export type EventTypesResponse = BaseResponse & { - event_types?: Partial[]; + event_types?: Partial[]; }; // Payment