interface IWebhookDispatcher<IListingCandidateApplied> {
uuid: string;
operation: string;
subdomain: string;
language: string;
createdAt: Date;
data: IListingCandidateApplied;
}
interface IListingCandidateApplied {
id: string;
candidateSource: CANDIDATE_SOURCE;
email: string;
firstName: string;
lastName: 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;
};
};
}