fix: handle collective multiple host on destinationCalendar (#10967)
This commit is contained in:
1 parent
500bfb4d82
commit
c4e5d168a5
22 files changed
+371
-219
No files matched your search
Vendored
+4
-2
@@ -8,6 +8,7 @@ import type z from "zod";
|
||||
import type { bookingResponse } from "@calcom/features/bookings/lib/getBookingResponsesSchema";
|
||||
import type { Calendar } from "@calcom/features/calendars/weeklyview";
|
||||
import type { TimeFormat } from "@calcom/lib/timeFormat";
|
||||
import type { SchedulingType } from "@calcom/prisma/enums";
|
||||
import type { Frequency } from "@calcom/prisma/zod-utils";
|
||||
import type { CredentialPayload } from "@calcom/types/Credential";
|
||||
|
||||
@@ -167,7 +168,7 @@ export interface CalendarEvent {
|
||||
videoCallData?: VideoCallData;
|
||||
paymentInfo?: PaymentInfo | null;
|
||||
requiresConfirmation?: boolean | null;
|
||||
destinationCalendar?: DestinationCalendar | null;
|
||||
destinationCalendar?: DestinationCalendar[] | null;
|
||||
cancellationReason?: string | null;
|
||||
rejectionReason?: string | null;
|
||||
hideCalendarNotes?: boolean;
|
||||
@@ -178,6 +179,7 @@ export interface CalendarEvent {
|
||||
seatsShowAttendees?: boolean | null;
|
||||
attendeeSeatId?: string;
|
||||
seatsPerTimeSlot?: number | null;
|
||||
schedulingType?: SchedulingType | null;
|
||||
iCalUID?: string | null;
|
||||
|
||||
// It has responses to all the fields(system + user)
|
||||
@@ -216,7 +218,7 @@ export interface IntegrationCalendar extends Ensure<Partial<SelectedCalendar>, "
|
||||
}
|
||||
|
||||
export interface Calendar {
|
||||
createEvent(event: CalendarEvent): Promise<NewCalendarEventType>;
|
||||
createEvent(event: CalendarEvent, credentialId: number): Promise<NewCalendarEventType>;
|
||||
|
||||
updateEvent(
|
||||
uid: string,
|
||||
|
||||
Vendored
+1
@@ -23,6 +23,7 @@ export interface EventResult<T> {
|
||||
calError?: string;
|
||||
calWarnings?: string[];
|
||||
credentialId?: number;
|
||||
externalId?: string | null;
|
||||
}
|
||||
|
||||
export interface CreateUpdateResult {
|
||||
|
||||
Reference in new issue
Block a user