Skip to content

tour-completed

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

DomainChannelsRecipients
SourceContext
packages/api/src/services/tours.ts:605updateTourStatus
interface TourCompletedData {
propertyAddress: string;
scheduledAt: string;
listingUrl: string;
}

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