From a83895bef3c3e0aa7c39259f8b9a1f30aa268df8 Mon Sep 17 00:00:00 2001 From: Matt Date: Wed, 9 Jul 2025 21:51:42 -0400 Subject: [PATCH] feat: Update Documenso configuration in .env.example and refactor generate-eoi-document to use environment variables for recipient IDs and template ID --- .env.example | 4 ++++ components/EOISection.vue | 2 +- server/api/email/generate-eoi-document.ts | 23 +++++++++++++---------- 3 files changed, 18 insertions(+), 11 deletions(-) diff --git a/.env.example b/.env.example index be8fd81..3508ded 100644 --- a/.env.example +++ b/.env.example @@ -17,6 +17,10 @@ NUXT_EMAIL_LOGO_URL=https://portnimara.com/Port_Nimara_Logo_2_Colour_New_Transpa # Documenso Configuration NUXT_DOCUMENSO_API_KEY=your_documenso_api_key_here NUXT_DOCUMENSO_BASE_URL=https://signatures.portnimara.dev +NUXT_DOCUMENSO_TEMPLATE_ID=1 +NUXT_DOCUMENSO_CLIENT_RECIPIENT_ID=1 +NUXT_DOCUMENSO_DAVID_RECIPIENT_ID=2 +NUXT_DOCUMENSO_APPROVAL_RECIPIENT_ID=3 # Webhook Configuration for Embedded Signing WEBHOOK_SECRET_SIGNING=96BQQRiKkTIN2w0rHbqo7yHggV/sT8702HtHih3uNSY= diff --git a/components/EOISection.vue b/components/EOISection.vue index 2cec518..51d9358 100644 --- a/components/EOISection.vue +++ b/components/EOISection.vue @@ -198,7 +198,7 @@ {{ getSignatureStatusText('cc') }} - Oscar Faragher + Approval