diff --git a/frontend/src/lib/api-types.ts b/frontend/src/lib/api-types.ts index 9d45a9f7..205da1d5 100644 --- a/frontend/src/lib/api-types.ts +++ b/frontend/src/lib/api-types.ts @@ -233,7 +233,7 @@ export interface paths { }; /** * Export Parcel Forecast - * @description Экспорт §22-форсайта — Markdown / JSON / DOCX / PPTX (файл) или TG-сводка (#959). + * @description Экспорт §22-форсайта — Markdown / JSON / DOCX / PPTX / PDF (файл) или TG-сводка (#959). * * Читает ПОСЛЕДНИЙ §22-ран schema_version "1.0" (тот же блоб, что отдаёт GET * /{cad}/forecast inline) и отдаёт его в нужной форме. @@ -243,6 +243,8 @@ export interface paths { * зеркало содержания md/pdf; python-docx). * • format=pptx → `render_report_pptx(run.result)` — attachment (.pptx, презентация, * сжатое зеркало содержания docx; python-pptx). + * • format=pdf → `export_report_pdf(run.result)` — attachment (.pdf, §13-отчёт, + * зеркало содержания md/docx; WeasyPrint). * • format=tg → `render_report_telegram_summary(run.result)` — КРАТКАЯ plain-text сводка * для копипаста в Telegram, INLINE (без Content-Disposition: это сниппет читать/копировать * и отправить, а не файл-download). @@ -254,10 +256,10 @@ export interface paths { * * Args: * cad_num: кадастровый номер участка (в имени файла `:` → `_`). - * format: "md" (default) | "json" | "tg" | "docx" | "pptx". + * format: "md" (default) | "json" | "tg" | "docx" | "pptx" | "pdf". * * Returns: - * Response — для md/json/docx/pptx attachment с Content-Disposition (имя + * Response — для md/json/docx/pptx/pdf attachment с Content-Disposition (имя * `gendesign_forecast__.`); для tg — inline text/plain сводка. */ get: operations["export_parcel_forecast_api_v1_parcels__cad_num__forecast_export_get"]; @@ -4911,8 +4913,8 @@ export interface operations { export_parcel_forecast_api_v1_parcels__cad_num__forecast_export_get: { parameters: { query?: { - /** @description Формат выгрузки: md (Markdown) | json (сырой отчёт) | tg (сводка) | docx (Word-документ) | pptx (презентация) */ - format?: "md" | "json" | "tg" | "docx" | "pptx"; + /** @description Формат выгрузки: md (Markdown) | json (сырой отчёт) | tg (сводка) | docx (Word-документ) | pptx (презентация) | pdf (PDF-отчёт) */ + format?: "md" | "json" | "tg" | "docx" | "pptx" | "pdf"; }; header?: never; path: {