add reusable per-user contract signatures with profile prefill and approval

This commit is contained in:
Marshal
2026-06-16 13:34:04 +00:00
parent 62ce2dc64f
commit 524d3b6418
12 changed files with 307 additions and 3 deletions

View File

@@ -342,8 +342,12 @@ export class BookingsController {
@Get(':id/contract/view')
@ApiOkResponse({ type: ContractViewDto })
@ApiOperation({ summary: 'Contract HTML view for portal and backoffice' })
getContractView(@Param('id', ParseUUIDPipe) id: string) {
return this.contractService.getContractView(id);
getContractView(
@Param('id', ParseUUIDPipe) id: string,
@Request() req: { user?: { id?: string; sub?: string } },
) {
const userId = req.user?.id ?? req.user?.sub;
return this.contractService.getContractView(id, userId);
}
@Get(':id/contract/document')