chore(frontend): regenerate api-types.ts for forecast pdf export (#1739)
Some checks failed
CI / changes (pull_request) Successful in 8s
CI / changes (push) Successful in 10s
CI / frontend-tests (pull_request) Failing after 1m47s
CI / frontend-tests (push) Failing after 1m55s
CI / openapi-codegen-check (pull_request) Successful in 3m11s
CI / openapi-codegen-check (push) Successful in 3m1s
CI / backend-tests (pull_request) Successful in 10m29s
CI / backend-tests (push) Successful in 10m41s
Some checks failed
CI / changes (pull_request) Successful in 8s
CI / changes (push) Successful in 10s
CI / frontend-tests (pull_request) Failing after 1m47s
CI / frontend-tests (push) Failing after 1m55s
CI / openapi-codegen-check (pull_request) Successful in 3m11s
CI / openapi-codegen-check (push) Successful in 3m1s
CI / backend-tests (pull_request) Successful in 10m29s
CI / backend-tests (push) Successful in 10m41s
#1748 added format=pdf to the forecast export endpoint but didn't regenerate the frontend OpenAPI types, failing CI openapi-codegen-check. Regenerated via the CI recipe (app.openapi() dump -> openapi-typescript -> prettier).
This commit is contained in:
parent
b1c0ea1268
commit
e7342d9f98
1 changed files with 7 additions and 5 deletions
|
|
@ -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_<cad>_<YYYY-MM-DD>.<ext>`); для 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: {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue