Skip to content

listing-import-finished

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

DomainChannelsRecipients
———
SourceContext
apps/worker/src/listing-import.ts:164notifyAgent
export interface ListingImportFinishedData {
batchId: string;
/** DONE | PARTIAL | FAILED */
status: string;
imported: number;
failed: number;
total: number;
fileName: string;
resultsUrl: string;
}

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