medusajs-documents-plugin 1.1.32 → 1.1.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.medusa/server/src/admin/index.js +510 -84
- package/.medusa/server/src/admin/index.mjs +510 -84
- package/.medusa/server/src/api/admin/documents/templates/preview/route.js +104 -34
- package/.medusa/server/src/api/documents/templates/preview/route.js +104 -34
- package/.medusa/server/src/services/pdfkit-generator.js +218 -48
- package/CHANGELOG.md +10 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
---
|
|
9
9
|
|
|
10
|
+
## [1.1.33] - 2026-11-01
|
|
11
|
+
|
|
12
|
+
### Certificate Document Consistent Header, Rich Editable Fillers, and Repair Ticket Autofill
|
|
13
|
+
- **Consistent Certificate Header**: Standardized the header across all certificate documents (Warranty Certificate, Service Completion Certificate, Certificate of Destruction, Diagnostic Inspection Report, etc.) to match invoice and quote templates (enlarged company logo on top left `[155, 54]`, company contact details positioned directly under the logo, document title on top right with date and document reference `#...`).
|
|
14
|
+
- **Dedicated Certificate Renderer & Routing**: Added dedicated `renderCertificateDocument` renderer in `PDFKitGenerator` with modern 2-column client & equipment specifications card, declaration statement box, itemized scope table, notes & terms, and dual signature blocks. Routed all custom and certificate documents seamlessly to this renderer.
|
|
15
|
+
- **Unpriced Job Card Intake Form**: Completely removed item pricing, Unit Cost column, Total column, and 'Est. Total' row from `renderJobCardDocument`, ensuring repair intake job cards function strictly as non-financial equipment check-in records.
|
|
16
|
+
- **Rich Realistic Default Fillers**: Pre-populated realistic specifications, technical scopes, bullet points, and warranty/destruction terms across all 8 custom document presets in the admin UI and template preview routes (`warranty`, `service_completion`, `destruction`, `diagnostic`, `handover`, `proforma`, `trade_in`, `generic`).
|
|
17
|
+
- **Repair Ticket Selector & Autofill**: Added a "Link / Load from Repair Ticket" selector in the "Create Custom Document & Send Email" modal (`page.tsx`) that fetches available repair tickets from `/admin/repairs` and active documents hub, automatically populating customer contact details (name, email, phone, company), device specifications (model, serial/IMEI, accessories, technician), ticket reference, and services.
|
|
18
|
+
- **Editable Custom Fields & Notes**: Added key-value specification editor with dynamic row additions/deletions and a terms/notes textarea to the custom document modal, fully passed to backend `/admin/documents/custom` and persisted in document record metadata.
|
|
19
|
+
|
|
10
20
|
## [1.1.31] - 2026-11-01
|
|
11
21
|
|
|
12
22
|
### HTTP HEAD Request Handling, Accept-Ranges Byte Streaming & Order Fallback
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "medusajs-documents-plugin",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.34",
|
|
4
4
|
"description": "Comprehensive document generation and management module for Medusa v2 with Zoho Books integration, PDFKit fallback, QR codes, shortlinks, multi-channel notifications and unified admin hub.",
|
|
5
5
|
"author": "Urban Device Care <info@urbandevicecare.co.uk>",
|
|
6
6
|
"license": "MIT",
|