Matt
d597e158fe
feat(documenso): full v2 endpoint coverage + sequential signing + redirectUrl
Wire up the remaining version-aware paths so a port pointed at Documenso 2.x
takes the v2 endpoint on every CRUD operation, with two new v2-only settings
exposed in admin UI.
documenso-client.ts:
- createDocument: v2 multipart /envelope/create + getDocument follow-up to
return the full doc shape (v1 path unchanged)
- sendDocument: v2 /envelope/distribute (returns per-recipient signingUrl in
the same response — eliminates the v1 separate-GET round-trip)
- sendReminder: v2 /envelope/redistribute with recipientIds filter
- downloadSignedPdf: v2 /envelope/{id}/download
- CreateDocumentMeta type: { subject, message, redirectUrl, signingOrder }
threaded through v1 + v2 paths (v1 ignores signingOrder)
port-config.ts:
- New settings: documenso_signing_order (PARALLEL/SEQUENTIAL, v2-only),
documenso_redirect_url (both versions honour)
- PortDocumensoConfig gains signingOrder + redirectUrl
documenso-payload.ts:
- DocumensoTemplatePayload.meta gains signingOrder
- buildDocumensoPayload reads from options.signingOrder, omits when null
document-templates.ts (EOI template flow):
- Pass docCfg.signingOrder + docCfg.redirectUrl into buildDocumensoPayload
documents.service.ts (sendForSigning uploaded-doc flow):
- Pass portId to documensoCreate + documensoSend (was missing)
- Thread signingOrder + redirectUrl via the new meta param
Admin Documenso settings page:
- v2 benefits card updated: now lists envelope CRUD, one-call send,
sequential enforcement, post-sign redirect as wired (was roadmap)
- Roadmap callout pruned to the three remaining deferred items:
template/use migration, /envelope/update, non-SIGNER recipient roles
- New "v2 signing behaviour" SettingsFormCard with the two new settings
Template flow stays on /api/v1/templates/{id}/generate-document by design —
Documenso 2.x accepts v1 endpoints via backward compat; full migration to
v2 /template/use requires per-template field-ID capture (admin schema work,
deferred).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-11 14:38:45 +02:00
..
2026-05-07 21:02:12 +02:00
2026-04-08 19:45:56 -04:00
2026-05-07 21:02:12 +02:00
2026-05-07 21:02:12 +02:00
2026-05-05 03:38:47 +02:00
2026-03-26 11:52:51 +01:00
2026-05-11 14:38:45 +02:00
2026-05-03 14:59:04 +02:00
2026-05-05 03:38:47 +02:00
2026-05-06 14:58:17 +02:00
2026-05-05 14:12:59 +02:00
2026-04-27 21:54:32 +02:00
2026-05-06 14:58:17 +02:00
2026-05-06 14:58:17 +02:00
2026-05-01 12:57:52 +02:00
2026-03-26 11:52:51 +01:00
2026-04-28 17:21:55 +02:00
2026-05-07 21:02:12 +02:00
2026-04-08 15:53:33 -04:00
2026-05-07 21:02:12 +02:00
2026-05-06 14:58:17 +02:00
2026-05-07 21:02:12 +02:00
2026-04-08 15:47:11 -04:00
2026-05-06 14:58:17 +02:00
2026-04-08 15:53:33 -04:00
2026-05-05 03:15:59 +02:00
2026-03-26 11:52:51 +01:00
2026-03-26 11:52:51 +01:00
2026-04-08 15:47:11 -04:00
2026-05-09 18:36:53 +02:00
2026-05-06 14:59:27 +02:00
2026-05-04 22:53:06 +02:00
2026-05-02 23:00:42 +02:00
2026-05-09 18:36:53 +02:00