interface IWebhookDispatcher<IListingTimeslotBookingAction> {
uuid: string;
operation: string;
subdomain: string;
language: string;
createdAt: Date;
data: IListingTimeslotBookingAction;
}
interface IListingTimeslotBookingAction {
bookingId: string;
invitationId: string;
listing: {
id: string;
property: {
id: string;
objectId: string;
type: PROPERTY_TYPE;
address: {
zip: string;
city: string;
streetNumber: string;
streetName: string;
placeId: string;
location?: {
lat?: number;
lng?: number;
};
};
};
unit: {
id: string;
objectId: string;
name: string;
type: UNIT_TYPE;
};
};
candidate: {
id: string;
email: string;
};
timeslot: {
id: string;
startDate: DateOrString;
duration: number;
responsibleUser: {
id: string;
email: string;
firstName: string;
lastName: string;
}
};
}