eCourt-note/app/api/documents/versions
Suphonchai Phoonsawat cdae1ceedd Refactor document versioning to extract fields from uploaded .docx files on the server side
- Removed the `fields` parameter from the version upload form, as it is now extracted from the uploaded .docx file using the `extractContentControls` function.
- Updated related types and interfaces to reflect the new structure of version fields.
- Modified the OpenAPI specification to document the changes in the versioning process.
- Adjusted tests to ensure compliance with the new behavior, including validation for the absence of the `fields` parameter.
- Implemented a new function `extractDocumentSnapshot` to handle the extraction of content controls and document properties from .docx files.
- Updated metadata and versioning services to align with the new extraction logic.
2026-10-31 10:21:17 +07:00
..
[versionId]/download-link feat(docver): derive docId from fid claim and drop [docId] URL segment 2026-10-26 10:05:01 +07:00
route.ts Refactor document versioning to extract fields from uploaded .docx files on the server side 2026-10-31 10:21:17 +07:00