@ediflow/edifact-d96a
v0.2.1
Published
EDIFACT D.96A (1996) Standard Definitions - 7 Message Types
Maintainers
Readme
@ediflow/edifact-d96a
EDIFACT D.96A (1996) Standard Definitions
EDIFACT D.96A • 7 Message Types • MIT Licensed • Free
📦 What is this?
This package contains EDIFACT D.96A (1996) standard definitions for use with @ediflow/core.
Includes:
- Message structures (7 message types)
- Segment definitions
- Element definitions
- Composite definitions
- Code lists
Version: D.96A (1996) - Early EDIFACT standard
🚀 Installation
# Install core library (required)
npm install @ediflow/core
# Install this standard package
npm install @ediflow/edifact-d96a📊 Supported Message Types (7)
| Message Type | Description | Use Case | |--------------|-------------|----------| | DESADV | Despatch Advice | Shipping notifications | | INVOIC | Invoice | Billing documents | | ORDERS | Purchase Order | Order placement | | ORDRSP | Order Response | Order confirmations | | PRICAT | Price Catalogue | Product pricing | | RECADV | Receiving Advice | Goods receipt | | SLSRPT | Sales Report | Sales data |
📖 Usage Example
import { DIContainer } from '@ediflow/core';
const container = DIContainer.getInstance();
const parseUseCase = container.resolve('ParseEDIUseCase');
const validateUseCase = container.resolve('ValidateMessageUseCase');
// Parse EDIFACT message
const parsed = parseUseCase.execute({
message: edifactString,
standard: 'EDIFACT'
});
// Validate against D.96A structure
const validation = validateUseCase.execute({
message: parsed.message,
messageType: 'ORDERS',
version: 'D96A',
repositoryPath: './node_modules/@ediflow/edifact-d96a/data'
});
if (validation.success) {
console.log('✅ Valid D.96A ORDERS message!');
}📁 Package Contents
@ediflow/edifact-d96a/
└── data/
├── codes/ # Code lists
├── composites.json # Composite elements
├── elements.json # Data elements
├── messages/ # Message structures (7 types)
│ ├── DESADV.json
│ ├── INVOIC.json
│ ├── ORDERS.json
│ ├── ORDRSP.json
│ ├── PRICAT.json
│ ├── RECADV.json
│ └── SLSRPT.json
└── segments.json # Segment definitionsPackage Size: ~0.32 MB
🎯 When to Use D.96A
Use D.96A if:
- ✅ Trading partner requires D.96A specifically
- ✅ Legacy system integration (1996-2000 era)
- ✅ Early EDIFACT adopter
- ✅ Automotive industry (early implementations)
Consider newer versions if:
- 🔄 D.20B - Latest standard (2020) - More message types
- 🔄 D.12A - Comprehensive (196 message types)
- 🔄 D.01B - Intermediate standard (2001)
📦 Related Packages
Core:
@ediflow/core- Core library (REQUIRED)
Other EDIFACT Standards:
@ediflow/edifact-d01b- D.01B (2001) - 4 messages@ediflow/edifact-d20b- D.20B (2020) - 7 messages@ediflow/edifact-d12a- D.12A (2012) - 196 messages
📚 Documentation
🤝 Contributing
Data corrections or additional message types? We welcome contributions!
📄 License
MIT License - see LICENSE
🔗 Links
- GitHub: ediflow-lib/core
- NPM: @ediflow/edifact-d96a
- Core Package: @ediflow/core
Made with ❤️ for the EDI community
