Typed event contract for AppointmentUpdatedEvent; fields below describe the payload.
interface AppointmentUpdatedEvent {
oldData: Appointment
newData: Appointment
}| Field | Meaning |
|---|---|
| oldData | Previous record. |
| newData | Proposed new record. |
import type { AppointmentUpdatedEvent } from '@tekocloud.de/tecexpress'
const example: AppointmentUpdatedEvent = { oldData: { id: 1, text: 'Meeting', startDate: '2026-10-28T09:00', endDate: '2026-10-28T10:00' }, newData: { id: 1, text: 'Meeting', startDate: '2026-10-28T09:00', endDate: '2026-10-28T10:00' } }
console.log(example)