Skip to content

Scheduling infrastructure for absolutely everyone.

fix add locations metadata and recurring events to eventtype response

Agusti Fernandez Pardoe7a7c8907108
diff --git a/lib/types.ts b/lib/types.ts
index 526950d121e..58d4b17a9c9 100644
--- a/lib/types.ts
+++ b/lib/types.ts
@@ -124,13 +124,17 @@ export type EventTypeCustomInputResponse = BaseResponse & {
export type EventTypeCustomInputsResponse = BaseResponse & {
event_type_custom_inputs?: Partial<EventTypeCustomInput>[];
};
-
+export type EventTypeWithMetadataLocations = EventType & {
+ locations?: object;
+ metadata?: object;
+ recurringEvent?: object;
+};
// EventType
export type EventTypeResponse = BaseResponse & {
- event_type?: Partial<EventType & { locations?: object[] }>;
+ event_type?: Partial<EventTypeWithMetadataLocations>;
};
export type EventTypesResponse = BaseResponse & {
- event_types?: Partial<EventType>[];
+ event_types?: Partial<EventTypeWithMetadataLocations>[];
};
// Payment