Skip to content

listing-import-extracted

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

DomainChannelsRecipients
———
SourceContext
apps/worker/src/ai-import-extraction.ts:643notifyExtracted
export interface ListingImportExtractedData {
batchId: string;
/** PREVIEW | FAILED */
status: string;
/** Rows waiting in the preview (0 on FAILED). */
listings: number;
/** Rows with a value read below the confidence threshold or another warning. */
warnings: number;
/** Pages the model could not read (the `pages_failed` banner). */
pagesFailed: number;
fileName: string;
reviewUrl: string;
}

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