1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
//! # edifact-mapper
//!
//! EDIFACT to BO4E bidirectional conversion for the German energy market.
//!
//! This crate provides a high-level [`Mapper`] API that loads precompiled
//! [`DataBundle`] files and exposes [`ConversionService`] and [`MappingEngine`]
//! instances for specific format versions, message variants, and PIDs.
//!
//! # Quick Start
//!
//! ```ignore
//! use edifact_mapper::{DataDir, Mapper};
//!
//! // Auto-detect data directory ($EDIFACT_DATA_DIR or ~/.edifact/data)
//! let mapper = Mapper::from_data_dir(DataDir::auto())?;
//!
//! // Or explicit path with eager loading
//! let mapper = Mapper::from_data_dir(
//! DataDir::path("/opt/edifact/data").eager(&["FV2504"])
//! )?;
//!
//! // Get a conversion service for EDIFACT parsing + MIG assembly
//! let cs = mapper.conversion_service("FV2504", "UTILMD_Strom")?;
//!
//! // Get a mapping engine for a specific PID
//! let engine = mapper.engine("FV2504", "UTILMD_Strom", "55001")?;
//! ```
//!
//! # Mid-level Access
//!
//! For advanced use cases, key types from internal crates are re-exported:
//!
//! - [`ConversionService`] — tokenize EDIFACT input and assemble MIG trees
//! - [`MappingEngine`] — convert between MIG trees and BO4E JSON
//! - [`DataBundle`] / [`VariantCache`] — precompiled mapping data
//! - [`edifact_parser`] — standalone EDIFACT parser (no BO4E dependency)
pub use validate_with_conditions;
pub use DataDir;
pub use MapperError;
pub use ;
// Re-export key types from internal crates for mid-level access.
pub use AssembledTree;
pub use ConversionService;
pub use ;
pub use MappingEngine;
// Re-export PID validation types.
pub use ;
// Re-export reverse pipeline types for BO4E → EDIFACT conversion.
pub use EdifactDelimiters;
pub use Disassembler;
pub use filter_mig_for_pid;
pub use render_edifact;
pub use ;
// Re-export the parser for standalone use.
pub use edifact_parser;