fix(mail-ingest): type errors and formatting after joining the flight work

The cron callbacks hand back nothing; the cursor's lookup is findCursor so it
no longer shadows the base repository's find(); the draft's suggested trip
uses the shared contract's type; endpoints spell out their optional columns;
the relay page's running count is typed. Prettier over every new file outside
the generated entities.
This commit is contained in:
Maurice
2026-11-13 18:03:14 +01:00
parent b19bd8e709
commit bd11cd347d
65 changed files with 440 additions and 195 deletions
+2 -1
View File
@@ -24,7 +24,8 @@ export const mailIngestApi = {
inbox: (params: { status?: 'open' | 'resolved'; before?: number; limit?: number }): Promise<unknown> =>
apiClient.get('/mail-ingest/inbox', { params }).then(data),
inboxCount: (): Promise<unknown> => apiClient.get('/mail-ingest/inbox/count').then(data),
preview: (messageId: number): Promise<unknown> => apiClient.get(`/mail-ingest/messages/${messageId}/preview`).then(data),
preview: (messageId: number): Promise<unknown> =>
apiClient.get(`/mail-ingest/messages/${messageId}/preview`).then(data),
prefill: (candidateId: number): Promise<unknown> =>
apiClient.get(`/mail-ingest/candidates/${candidateId}/prefill`).then(data),