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
@@ -65,7 +65,8 @@ const notif: TranslationStrings = {
'notif.mail_booking_pending.title': 'حجوزات مُعاد توجيهها للمراجعة',
'notif.mail_booking_pending.text': 'حجوزات مُعاد توجيهها بانتظارك: {count}',
'notif.mail_ingest_paused.title': 'تم إيقاف استيراد البريد مؤقتًا',
'notif.mail_ingest_paused.text': 'لا تُقبل رسائل الحجز المُعاد توجيهها في الوقت الحالي. تبقى عناوينك وستعمل مجددًا عند عودة الاستيراد.',
'notif.mail_ingest_paused.text':
'لا تُقبل رسائل الحجز المُعاد توجيهها في الوقت الحالي. تبقى عناوينك وستعمل مجددًا عند عودة الاستيراد.',
'notif.action.undo': 'تراجع',
'notif.action.keep': 'إبقاء',
'notif.action.review': 'مراجعة',
+2 -1
View File
@@ -62,7 +62,8 @@ const notif: TranslationStrings = {
'notif.mail_booking_pending.title': 'Yoxlanılacaq yönləndirilmiş rezervasiyalar',
'notif.mail_booking_pending.text': 'Sizi gözləyən yönləndirilmiş rezervasiyalar: {count}',
'notif.mail_ingest_paused.title': 'Poçt idxalı dayandırılıb',
'notif.mail_ingest_paused.text': 'Yönləndirilmiş rezervasiya məktubları hələlik qəbul edilmir. Ünvanlarınız qalır və idxal geri qayıdanda yenidən işləyəcək.',
'notif.mail_ingest_paused.text':
'Yönləndirilmiş rezervasiya məktubları hələlik qəbul edilmir. Ünvanlarınız qalır və idxal geri qayıdanda yenidən işləyəcək.',
'notif.action.undo': 'Geri al',
'notif.action.keep': 'Saxla',
'notif.action.review': 'Yoxla',
+2 -1
View File
@@ -61,7 +61,8 @@ const notif: TranslationStrings = {
'notif.mail_booking_pending.title': 'Reservas encaminhadas para revisar',
'notif.mail_booking_pending.text': 'Reservas encaminhadas aguardando você: {count}',
'notif.mail_ingest_paused.title': 'Importação de e-mails pausada',
'notif.mail_ingest_paused.text': 'Por enquanto, os e-mails de reserva encaminhados não são aceitos. Seus endereços continuam e voltam a funcionar quando a importação voltar.',
'notif.mail_ingest_paused.text':
'Por enquanto, os e-mails de reserva encaminhados não são aceitos. Seus endereços continuam e voltam a funcionar quando a importação voltar.',
'notif.action.undo': 'Desfazer',
'notif.action.keep': 'Manter',
'notif.action.review': 'Revisar',
+2 -1
View File
@@ -66,7 +66,8 @@ const notif: TranslationStrings = {
'notif.mail_booking_pending.title': 'Reserves reenviades per revisar',
'notif.mail_booking_pending.text': 'Reserves reenviades pendents: {count}',
'notif.mail_ingest_paused.title': 'Importació de correus en pausa',
'notif.mail_ingest_paused.text': 'De moment no s’accepten els correus de reserva reenviats. Les teves adreces es mantenen i tornaran a funcionar quan torni la importació.',
'notif.mail_ingest_paused.text':
'De moment no s’accepten els correus de reserva reenviats. Les teves adreces es mantenen i tornaran a funcionar quan torni la importació.',
'notif.action.undo': 'Desfés',
'notif.action.keep': 'Conserva',
'notif.action.review': 'Revisa',
+2 -1
View File
@@ -62,7 +62,8 @@ const notif: TranslationStrings = {
'notif.mail_booking_pending.title': 'Přeposlané rezervace ke kontrole',
'notif.mail_booking_pending.text': 'Přeposlané rezervace čekající na vás: {count}',
'notif.mail_ingest_paused.title': 'Import e-mailů pozastaven',
'notif.mail_ingest_paused.text': 'Přeposlané e-maily s rezervacemi se zatím nepřijímají. Vaše adresy zůstávají a znovu budou fungovat, až se import vrátí.',
'notif.mail_ingest_paused.text':
'Přeposlané e-maily s rezervacemi se zatím nepřijímají. Vaše adresy zůstávají a znovu budou fungovat, až se import vrátí.',
'notif.action.undo': 'Vrátit zpět',
'notif.action.keep': 'Ponechat',
'notif.action.review': 'Zkontrolovat',
+2 -1
View File
@@ -61,7 +61,8 @@ const notif: TranslationStrings = {
'notif.mail_booking_pending.title': 'Weitergeleitete Buchungen prüfen',
'notif.mail_booking_pending.text': 'Weitergeleitete Buchungen warten auf dich: {count}',
'notif.mail_ingest_paused.title': 'Mail-Import pausiert',
'notif.mail_ingest_paused.text': 'Weitergeleitete Buchungsmails werden vorerst nicht angenommen. Deine Adressen bleiben und funktionieren wieder, sobald der Import zurück ist.',
'notif.mail_ingest_paused.text':
'Weitergeleitete Buchungsmails werden vorerst nicht angenommen. Deine Adressen bleiben und funktionieren wieder, sobald der Import zurück ist.',
'notif.action.undo': 'Rückgängig',
'notif.action.keep': 'Behalten',
'notif.action.review': 'Prüfen',
+2 -1
View File
@@ -61,7 +61,8 @@ const notif: TranslationStrings = {
'notif.mail_booking_pending.title': 'Forwarded bookings to review',
'notif.mail_booking_pending.text': 'Forwarded bookings waiting for you: {count}',
'notif.mail_ingest_paused.title': 'Mail import paused',
'notif.mail_ingest_paused.text': 'Forwarded booking mails are not taken in for now. Your addresses stay and work again once the import is back.',
'notif.mail_ingest_paused.text':
'Forwarded booking mails are not taken in for now. Your addresses stay and work again once the import is back.',
'notif.action.undo': 'Undo',
'notif.action.keep': 'Keep',
'notif.action.review': 'Review',
+2 -1
View File
@@ -61,7 +61,8 @@ const notif: TranslationStrings = {
'notif.mail_booking_pending.title': 'Reservas reenviadas por revisar',
'notif.mail_booking_pending.text': 'Reservas reenviadas pendientes: {count}',
'notif.mail_ingest_paused.title': 'Importación de correos en pausa',
'notif.mail_ingest_paused.text': 'Por ahora no se aceptan los correos de reserva reenviados. Tus direcciones se mantienen y volverán a funcionar cuando vuelva la importación.',
'notif.mail_ingest_paused.text':
'Por ahora no se aceptan los correos de reserva reenviados. Tus direcciones se mantienen y volverán a funcionar cuando vuelva la importación.',
'notif.action.undo': 'Deshacer',
'notif.action.keep': 'Mantener',
'notif.action.review': 'Revisar',
+2 -1
View File
@@ -61,7 +61,8 @@ const notif: TranslationStrings = {
'notif.mail_booking_pending.title': 'Ülevaatamist ootavad edastatud broneeringud',
'notif.mail_booking_pending.text': 'Sind ootavad edastatud broneeringud: {count}',
'notif.mail_ingest_paused.title': 'Kirjade import on peatatud',
'notif.mail_ingest_paused.text': 'Edastatud broneeringukirju praegu vastu ei võeta. Sinu aadressid jäävad alles ja töötavad uuesti, kui import tagasi on.',
'notif.mail_ingest_paused.text':
'Edastatud broneeringukirju praegu vastu ei võeta. Sinu aadressid jäävad alles ja töötavad uuesti, kui import tagasi on.',
'notif.action.undo': 'Võta tagasi',
'notif.action.keep': 'Jäta alles',
'notif.action.review': 'Vaata üle',
+2 -1
View File
@@ -61,7 +61,8 @@ const notif: TranslationStrings = {
'notif.mail_booking_pending.title': 'Réservations transférées à vérifier',
'notif.mail_booking_pending.text': 'Réservations transférées en attente : {count}',
'notif.mail_ingest_paused.title': 'Import des e-mails en pause',
'notif.mail_ingest_paused.text': 'Les e-mails de réservation transférés ne sont pas acceptés pour le moment. Vos adresses restent et fonctionneront de nouveau au retour de l’import.',
'notif.mail_ingest_paused.text':
'Les e-mails de réservation transférés ne sont pas acceptés pour le moment. Vos adresses restent et fonctionneront de nouveau au retour de l’import.',
'notif.action.undo': 'Annuler',
'notif.action.keep': 'Garder',
'notif.action.review': 'Vérifier',
+2 -1
View File
@@ -61,7 +61,8 @@ const notif: TranslationStrings = {
'notif.mail_booking_pending.title': 'Προωθημένες κρατήσεις για έλεγχο',
'notif.mail_booking_pending.text': 'Προωθημένες κρατήσεις σε αναμονή: {count}',
'notif.mail_ingest_paused.title': 'Η εισαγωγή email σε παύση',
'notif.mail_ingest_paused.text': 'Τα προωθημένα email κρατήσεων δεν γίνονται δεκτά προς το παρόν. Οι διευθύνσεις σου μένουν και θα λειτουργήσουν ξανά όταν επιστρέψει η εισαγωγή.',
'notif.mail_ingest_paused.text':
'Τα προωθημένα email κρατήσεων δεν γίνονται δεκτά προς το παρόν. Οι διευθύνσεις σου μένουν και θα λειτουργήσουν ξανά όταν επιστρέψει η εισαγωγή.',
'notif.action.undo': 'Αναίρεση',
'notif.action.keep': 'Διατήρηση',
'notif.action.review': 'Έλεγχος',
+2 -1
View File
@@ -62,7 +62,8 @@ const notif: TranslationStrings = {
'notif.mail_booking_pending.title': 'הזמנות שהועברו לבדיקה',
'notif.mail_booking_pending.text': 'הזמנות שהועברו וממתינות לכם: {count}',
'notif.mail_ingest_paused.title': 'ייבוא הדואר מושהה',
'notif.mail_ingest_paused.text': 'הודעות הזמנה שהועברו אינן מתקבלות כרגע. הכתובות שלכם נשמרות ויעבדו שוב כשהייבוא יחזור.',
'notif.mail_ingest_paused.text':
'הודעות הזמנה שהועברו אינן מתקבלות כרגע. הכתובות שלכם נשמרות ויעבדו שוב כשהייבוא יחזור.',
'notif.action.undo': 'ביטול',
'notif.action.keep': 'השארה',
'notif.action.review': 'בדיקה',
+2 -1
View File
@@ -61,7 +61,8 @@ const notif: TranslationStrings = {
'notif.mail_booking_pending.title': 'Ellenőrizendő továbbított foglalások',
'notif.mail_booking_pending.text': 'Rád váró továbbított foglalások: {count}',
'notif.mail_ingest_paused.title': 'E-mail-importálás szüneteltetve',
'notif.mail_ingest_paused.text': 'A továbbított foglalási e-maileket egyelőre nem fogadjuk. A címeid megmaradnak, és újra működnek, amint az importálás visszatér.',
'notif.mail_ingest_paused.text':
'A továbbított foglalási e-maileket egyelőre nem fogadjuk. A címeid megmaradnak, és újra működnek, amint az importálás visszatér.',
'notif.action.undo': 'Visszavonás',
'notif.action.keep': 'Megtartás',
'notif.action.review': 'Ellenőrzés',
+2 -1
View File
@@ -60,7 +60,8 @@ const notif: TranslationStrings = {
'notif.mail_booking_pending.title': 'Pemesanan terusan untuk ditinjau',
'notif.mail_booking_pending.text': 'Pemesanan terusan yang menunggumu: {count}',
'notif.mail_ingest_paused.title': 'Impor email dijeda',
'notif.mail_ingest_paused.text': 'Email pemesanan yang diteruskan untuk sementara tidak diterima. Alamatmu tetap ada dan akan berfungsi lagi saat impor kembali.',
'notif.mail_ingest_paused.text':
'Email pemesanan yang diteruskan untuk sementara tidak diterima. Alamatmu tetap ada dan akan berfungsi lagi saat impor kembali.',
'notif.action.undo': 'Urungkan',
'notif.action.keep': 'Simpan',
'notif.action.review': 'Tinjau',
+2 -1
View File
@@ -61,7 +61,8 @@ const notif: TranslationStrings = {
'notif.mail_booking_pending.title': 'Prenotazioni inoltrate da controllare',
'notif.mail_booking_pending.text': 'Prenotazioni inoltrate in attesa: {count}',
'notif.mail_ingest_paused.title': 'Importazione email in pausa',
'notif.mail_ingest_paused.text': 'Per ora le email di prenotazione inoltrate non vengono accettate. I tuoi indirizzi restano e funzioneranno di nuovo quando l’importazione tornerà.',
'notif.mail_ingest_paused.text':
'Per ora le email di prenotazione inoltrate non vengono accettate. I tuoi indirizzi restano e funzioneranno di nuovo quando l’importazione tornerà.',
'notif.action.undo': 'Annulla',
'notif.action.keep': 'Mantieni',
'notif.action.review': 'Controlla',
+2 -1
View File
@@ -60,7 +60,8 @@ const notif: TranslationStrings = {
'notif.mail_booking_pending.title': '確認待ちの転送予約',
'notif.mail_booking_pending.text': '確認待ちの転送予約: {count} 件',
'notif.mail_ingest_paused.title': 'メール取り込みを一時停止中',
'notif.mail_ingest_paused.text': '転送された予約メールは現在受け付けていません。アドレスはそのまま残り、取り込みが再開されると再び使えます。',
'notif.mail_ingest_paused.text':
'転送された予約メールは現在受け付けていません。アドレスはそのまま残り、取り込みが再開されると再び使えます。',
'notif.action.undo': '元に戻す',
'notif.action.keep': '残す',
'notif.action.review': '確認',
+2 -1
View File
@@ -60,7 +60,8 @@ const notif: TranslationStrings = {
'notif.mail_booking_pending.title': '검토할 전달된 예약',
'notif.mail_booking_pending.text': '검토를 기다리는 전달된 예약: {count}개',
'notif.mail_ingest_paused.title': '메일 가져오기 일시 중지됨',
'notif.mail_ingest_paused.text': '전달된 예약 메일은 당분간 받지 않습니다. 주소는 그대로 유지되며 가져오기가 다시 시작되면 다시 작동합니다.',
'notif.mail_ingest_paused.text':
'전달된 예약 메일은 당분간 받지 않습니다. 주소는 그대로 유지되며 가져오기가 다시 시작되면 다시 작동합니다.',
'notif.action.undo': '실행 취소',
'notif.action.keep': '유지',
'notif.action.review': '검토',
+2 -1
View File
@@ -61,7 +61,8 @@ const notif: TranslationStrings = {
'notif.mail_booking_pending.title': 'Doorgestuurde boekingen om te controleren',
'notif.mail_booking_pending.text': 'Doorgestuurde boekingen wachten op je: {count}',
'notif.mail_ingest_paused.title': 'Mailimport gepauzeerd',
'notif.mail_ingest_paused.text': 'Doorgestuurde boekingsmails worden voorlopig niet aangenomen. Je adressen blijven en werken weer zodra de import terug is.',
'notif.mail_ingest_paused.text':
'Doorgestuurde boekingsmails worden voorlopig niet aangenomen. Je adressen blijven en werken weer zodra de import terug is.',
'notif.action.undo': 'Ongedaan maken',
'notif.action.keep': 'Behouden',
'notif.action.review': 'Controleren',
+2 -1
View File
@@ -63,7 +63,8 @@ const notif: TranslationStrings = {
'notif.mail_booking_pending.title': 'Przekazane rezerwacje do sprawdzenia',
'notif.mail_booking_pending.text': 'Przekazane rezerwacje czekające na Ciebie: {count}',
'notif.mail_ingest_paused.title': 'Import e-maili wstrzymany',
'notif.mail_ingest_paused.text': 'Przekazane e-maile z rezerwacjami nie są na razie przyjmowane. Twoje adresy zostają i znów zadziałają, gdy import wróci.',
'notif.mail_ingest_paused.text':
'Przekazane e-maile z rezerwacjami nie są na razie przyjmowane. Twoje adresy zostają i znów zadziałają, gdy import wróci.',
'notif.action.undo': 'Cofnij',
'notif.action.keep': 'Zachowaj',
'notif.action.review': 'Sprawdź',
+2 -1
View File
@@ -63,7 +63,8 @@ const notif: TranslationStrings = {
'notif.mail_booking_pending.title': 'Пересланные бронирования для проверки',
'notif.mail_booking_pending.text': 'Пересланных бронирований ждёт вас: {count}',
'notif.mail_ingest_paused.title': 'Импорт писем приостановлен',
'notif.mail_ingest_paused.text': 'Пересланные письма с бронированиями пока не принимаются. Ваши адреса сохраняются и снова заработают, когда импорт вернётся.',
'notif.mail_ingest_paused.text':
'Пересланные письма с бронированиями пока не принимаются. Ваши адреса сохраняются и снова заработают, когда импорт вернётся.',
'notif.action.undo': 'Отменить',
'notif.action.keep': 'Оставить',
'notif.action.review': 'Проверить',
+2 -1
View File
@@ -62,7 +62,8 @@ const notif: TranslationStrings = {
'notif.mail_booking_pending.title': 'Preposlané rezervácie na kontrolu',
'notif.mail_booking_pending.text': 'Preposlané rezervácie čakajúce na vás: {count}',
'notif.mail_ingest_paused.title': 'Import e-mailov pozastavený',
'notif.mail_ingest_paused.text': 'Preposlané e-maily s rezerváciami sa zatiaľ neprijímajú. Vaše adresy zostávajú a znova budú fungovať, keď sa import vráti.',
'notif.mail_ingest_paused.text':
'Preposlané e-maily s rezerváciami sa zatiaľ neprijímajú. Vaše adresy zostávajú a znova budú fungovať, keď sa import vráti.',
'notif.action.undo': 'Vrátiť späť',
'notif.action.keep': 'Ponechať',
'notif.action.review': 'Skontrolovať',
+2 -1
View File
@@ -61,7 +61,8 @@ const notif: TranslationStrings = {
'notif.mail_booking_pending.title': 'Vidarebefordrade bokningar att granska',
'notif.mail_booking_pending.text': 'Vidarebefordrade bokningar som väntar på dig: {count}',
'notif.mail_ingest_paused.title': 'Mejlimport pausad',
'notif.mail_ingest_paused.text': 'Vidarebefordrade bokningsmejl tas inte emot just nu. Dina adresser finns kvar och fungerar igen när importen är tillbaka.',
'notif.mail_ingest_paused.text':
'Vidarebefordrade bokningsmejl tas inte emot just nu. Dina adresser finns kvar och fungerar igen när importen är tillbaka.',
'notif.action.undo': 'Ångra',
'notif.action.keep': 'Behåll',
'notif.action.review': 'Granska',
+2 -1
View File
@@ -60,7 +60,8 @@ const notif: TranslationStrings = {
'notif.mail_booking_pending.title': 'การจองที่ส่งต่อซึ่งรอตรวจสอบ',
'notif.mail_booking_pending.text': 'การจองที่ส่งต่อซึ่งรอคุณอยู่: {count}',
'notif.mail_ingest_paused.title': 'หยุดการนำเข้าอีเมลชั่วคราว',
'notif.mail_ingest_paused.text': 'ขณะนี้ยังไม่รับอีเมลการจองที่ส่งต่อมา ที่อยู่ของคุณยังคงอยู่และจะใช้งานได้อีกครั้งเมื่อการนำเข้ากลับมา',
'notif.mail_ingest_paused.text':
'ขณะนี้ยังไม่รับอีเมลการจองที่ส่งต่อมา ที่อยู่ของคุณยังคงอยู่และจะใช้งานได้อีกครั้งเมื่อการนำเข้ากลับมา',
'notif.action.undo': 'เลิกทำ',
'notif.action.keep': 'เก็บไว้',
'notif.action.review': 'ตรวจสอบ',
+2 -1
View File
@@ -62,7 +62,8 @@ const notif: TranslationStrings = {
'notif.mail_booking_pending.title': 'İncelenecek iletilen rezervasyonlar',
'notif.mail_booking_pending.text': 'Seni bekleyen iletilen rezervasyonlar: {count}',
'notif.mail_ingest_paused.title': 'E-posta içe aktarımı duraklatıldı',
'notif.mail_ingest_paused.text': 'İletilen rezervasyon e-postaları şimdilik kabul edilmiyor. Adreslerin kalıyor ve içe aktarım geri geldiğinde yeniden çalışacak.',
'notif.mail_ingest_paused.text':
'İletilen rezervasyon e-postaları şimdilik kabul edilmiyor. Adreslerin kalıyor ve içe aktarım geri geldiğinde yeniden çalışacak.',
'notif.action.undo': 'Geri al',
'notif.action.keep': 'Tut',
'notif.action.review': 'İncele',
+2 -1
View File
@@ -63,7 +63,8 @@ const notif: TranslationStrings = {
'notif.mail_booking_pending.title': 'Переслані бронювання для перевірки',
'notif.mail_booking_pending.text': 'Пересланих бронювань чекає на вас: {count}',
'notif.mail_ingest_paused.title': 'Імпорт листів призупинено',
'notif.mail_ingest_paused.text': 'Переслані листи з бронюваннями поки що не приймаються. Ваші адреси зберігаються й знову працюватимуть, коли імпорт повернеться.',
'notif.mail_ingest_paused.text':
'Переслані листи з бронюваннями поки що не приймаються. Ваші адреси зберігаються й знову працюватимуть, коли імпорт повернеться.',
'notif.action.undo': 'Скасувати',
'notif.action.keep': 'Залишити',
'notif.action.review': 'Перевірити',
+2 -1
View File
@@ -60,7 +60,8 @@ const notif: TranslationStrings = {
'notif.mail_booking_pending.title': 'Đặt chỗ chuyển tiếp cần xem lại',
'notif.mail_booking_pending.text': 'Đặt chỗ chuyển tiếp đang chờ bạn: {count}',
'notif.mail_ingest_paused.title': 'Đã tạm dừng nhập email',
'notif.mail_ingest_paused.text': 'Hiện tại email đặt chỗ được chuyển tiếp chưa được nhận. Địa chỉ của bạn vẫn được giữ và sẽ hoạt động lại khi tính năng nhập quay lại.',
'notif.mail_ingest_paused.text':
'Hiện tại email đặt chỗ được chuyển tiếp chưa được nhận. Địa chỉ của bạn vẫn được giữ và sẽ hoạt động lại khi tính năng nhập quay lại.',
'notif.action.undo': 'Hoàn tác',
'notif.action.keep': 'Giữ lại',
'notif.action.review': 'Xem lại',
@@ -140,10 +140,14 @@ describe('mail-ingest rows', () => {
});
it('MAILC-016: the connection test names its transport and what failed', () => {
expect(mailIngestAdminTestResponseSchema.safeParse({ transport: 'imap', ok: true, error: null }).success).toBe(true);
expect(mailIngestAdminTestResponseSchema.safeParse({ transport: 'imap', ok: true, error: null }).success).toBe(
true,
);
const failed = { transport: 'webhook', ok: false, error: 'No webhook secret is set' };
expect(mailIngestAdminTestResponseSchema.safeParse(failed).success).toBe(true);
expect(mailIngestAdminTestResponseSchema.safeParse({ transport: 'smtp', ok: true, error: null }).success).toBe(false);
expect(mailIngestAdminTestResponseSchema.safeParse({ transport: 'smtp', ok: true, error: null }).success).toBe(
false,
);
});
});