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-04 22:56:18 +02:00
2026-05-02 23:11:52 +02:00
2026-04-29 13:59:03 +02:00
2026-04-28 19:46:29 +02:00
2026-05-05 03:03:29 +02:00
2026-05-11 14:38:45 +02:00
2026-05-11 14:04:28 +02:00
2026-05-05 03:03:29 +02:00
2026-04-26 13:48:06 +02:00
2026-05-11 12:44:48 +02:00
2026-03-26 11:52:51 +01:00
2026-03-26 12:29:55 +01:00
2026-05-03 20:55:53 +02:00
2026-03-26 11:52:51 +01:00
2026-05-01 23:33:53 +02:00
2026-04-29 03:28:31 +02:00
2026-05-11 14:02:26 +02:00
2026-05-11 13:01:47 +02:00
2026-05-11 14:02:26 +02:00
2026-05-10 16:53:51 +02:00
2026-05-05 03:38:47 +02:00
2026-03-26 11:52:51 +01:00
2026-03-26 12:29:55 +01:00
2026-04-28 18:13:08 +02:00
2026-04-28 18:13:08 +02:00
2026-04-28 18:13:08 +02:00
2026-04-28 18:13:08 +02:00
2026-05-05 20:18:05 +02:00
2026-05-05 05:51:39 +02:00
2026-03-26 11:52:51 +01:00
2026-05-05 03:38:47 +02:00
2026-04-28 18:48:22 +02:00
2026-05-05 14:12:59 +02:00
2026-03-26 11:52:51 +01:00
2026-03-26 11:52:51 +01:00
2026-03-26 11:52:51 +01:00
2026-03-26 11:52:51 +01:00
2026-05-01 23:33:53 +02:00
2026-04-24 12:56:47 +02:00
2026-04-29 03:15:39 +02:00
2026-05-04 22:52:33 +02:00
2026-05-04 22:52:33 +02:00