I’ve discovered a problem with the @nylas/react and @nylas/web-elements packages.
We have a configuration that stores multiple participants. We need to use the nylas-scheduling wizard to check availability using the participant list from our configuration, but only book for the organizer and the guest who provided their details.
When using your API directly (/v3/scheduling/bookings), we can pass a parameter called “participants” that allows us to explicitly specify users from our configuration who should be part of the event.
The problem is that your Scheduler UI packages don’t support this parameter, even though they use the same endpoint (/v3/scheduling/bookings) that enables this functionality.
When using the nylas-scheduling component, we can pass custom events through eventOverrides, where we can call connector.scheduler.bookTimeslot. I can pass the information I need to this method, but not the ‘participants’ parameter.
Here’s a types for connector.scheduler.bookTimeslot:
bookTimeslot(data?: NylasSchedulerBookingDataWithFlatFields & {
timeslot?: Timeslot;
}): Promise<NylasSchedulerResponse<NylasEvent>>;
Types definition for
NylasSchedulerBookingDataWithFlatFields and NylasSchedulerBookingData:
export type NylasSchedulerBookingData = {
primaryParticipant: NylasSchedulerBookingParticipant;
startTime?: Date;
endTime?: Date;
timezone?: string;
language?: string;
guests?: NylasSchedulerBookingParticipant[];
additionalFields?: Record<string, {
value: string;
type?: string;
readOnly?: boolean;
}>;
};
export type NylasSchedulerBookingDataWithFlatFields = Omit<NylasSchedulerBookingData, 'additionalFields'> & {
additionalFields?: Record<string, string>;
location?: string;
booking_ref?: string;
};
Type definition for TimeSlot:
export type Timeslot = {
start_time: Date;
end_time: Date;
emails?: string[];
capacity?: number;
event_id?: string;
master_id?: string;
calendar_id?: string;
};
How can this issue be resolved? I believe this is a bug on your side that can be resolved quickly