feat: enhance document management by adding attachments support

- Updated DocumentEditForm to include attachments in the document data.
- Modified getDocumentWithDetailsById to fetch attachments.
- Updated ZDocumentSchema to validate attachments.
- Enhanced AddSettingsFormPartial to handle attachments with default values and updated field names.
This commit is contained in:
Catalin Documenso
2025-04-29 14:11:11 +03:00
parent 7ac48cb3f5
commit 396a7db587
4 changed files with 17 additions and 3 deletions

View File

@ -27,6 +27,7 @@ export const getDocumentWithDetailsById = async ({
documentMeta: true,
recipients: true,
fields: true,
attachments: true,
},
});