@doclo/schemas package includes pre-built schemas for common document types that you can use directly or extend.
Installation
Available Schemas
Bunker Delivery Note (BDN)
The BDN schema extracts comprehensive data from maritime fuel delivery notes.BDN Schema Fields
| Section | Fields |
|---|---|
| Reference | refNumber |
| Supplier | supplierName, supplierLegalName, supplierLicenseNumber, supplierAddress, supplierPhoneNumber1, supplierEmail1 |
| Vessels | receivingVessel.vesselName, receivingVessel.imoNumber, deliveringBarge.bargeName |
| Bunkering | deliveredQuantityMT, deliveryDate, port, anchorage |
| Product | productName, productGrade, sulphurContent |
Using BDN Schema from Registry
Schema Registry
Built-in schemas are automatically registered when you import@doclo/schemas. Access them using the registry functions:
Extending Built-in Schemas
Add custom fields to built-in schemas:Creating Custom Schemas
See Defining Schemas for how to create your own schemas for document types like invoices, receipts, contracts, and more.Next Steps
Defining Schemas
Create custom schemas
Extract Node
Use schemas with extraction