Skip to content

tour-cancelled

Source of truth: packages/notifications/src/translations.ts

DomainChannelsRecipients
SourceContext
packages/api/src/services/tours.ts:636updateTourStatus
interface TourCancelledData {
actorName: string;
propertyAddress: string;
scheduledAt: string;
calendarUrl: string;
}

The caller invokes triggerWorkflow('tour-cancelled', recipientIds, data) where data is the TourCancelledData shape above. The server pre-translates the payload via getTranslatedPayload('tour-cancelled', recipientLocale, data) from @repo/notifications before sending, producing { inAppBody, emailSubject, emailBody } for the dashboard templates to render.