@makakwastaken/ts-edifact
Version:
Edifact parser library
280 lines (279 loc) • 12.8 kB
JSON
[
{
"content": "UNH",
"mandatory": true,
"repetition": 1,
"data": ["D01B", "DESADV"],
"section": "header"
},
{ "content": "BGM", "mandatory": true, "repetition": 1 },
{ "content": "DTM", "mandatory": false, "repetition": 10 },
{ "content": "ALI", "mandatory": false, "repetition": 5 },
{ "content": "MEA", "mandatory": false, "repetition": 5 },
{ "content": "MOA", "mandatory": false, "repetition": 5 },
{ "content": "CUX", "mandatory": false, "repetition": 9 },
{
"content": [
{ "content": "RFF", "mandatory": true, "repetition": 1 },
{ "content": "DTM", "mandatory": false, "repetition": 1 }
],
"mandatory": false,
"repetition": 10,
"name": "Segment group 1"
},
{
"content": [
{ "content": "NAD", "mandatory": true, "repetition": 1 },
{ "content": "LOC", "mandatory": false, "repetition": 10 },
{
"content": [
{ "content": "RFF", "mandatory": true, "repetition": 1 },
{ "content": "DTM", "mandatory": false, "repetition": 1 }
],
"mandatory": false,
"repetition": 10,
"name": "Segment group 3"
},
{
"content": [
{ "content": "CTA", "mandatory": true, "repetition": 1 },
{ "content": "COM", "mandatory": false, "repetition": 5 }
],
"mandatory": false,
"repetition": 10,
"name": "Segment group 4"
}
],
"mandatory": false,
"repetition": 99,
"name": "Segment group 2"
},
{
"content": [
{ "content": "TOD", "mandatory": true, "repetition": 1 },
{ "content": "LOC", "mandatory": false, "repetition": 5 },
{ "content": "FTX", "mandatory": false, "repetition": 5 }
],
"mandatory": false,
"repetition": 10,
"name": "Segment group 5"
},
{
"content": [
{ "content": "TDT", "mandatory": true, "repetition": 1 },
{ "content": "PCD", "mandatory": false, "repetition": 6 },
{ "content": "TMD", "mandatory": false, "repetition": 1 },
{
"content": [
{ "content": "LOC", "mandatory": true, "repetition": 1 },
{ "content": "DTM", "mandatory": false, "repetition": 10 }
],
"mandatory": false,
"repetition": 10,
"name": "Segment group 7"
}
],
"mandatory": false,
"repetition": 10,
"name": "Segment group 6"
},
{
"content": [
{ "content": "EQD", "mandatory": true, "repetition": 1 },
{ "content": "MEA", "mandatory": false, "repetition": 5 },
{ "content": "SEL", "mandatory": false, "repetition": 25 },
{ "content": "EQA", "mandatory": false, "repetition": 5 },
{
"content": [
{ "content": "HAN", "mandatory": true, "repetition": 1 },
{ "content": "FTX", "mandatory": false, "repetition": 10 }
],
"mandatory": false,
"repetition": 10,
"name": "Segment group 9"
}
],
"mandatory": false,
"repetition": 10,
"name": "Segment group 8"
},
{
"content": [
{ "content": "CPS", "mandatory": true, "repetition": 1 },
{ "content": "FTX", "mandatory": false, "repetition": 5 },
{ "content": "QVR", "mandatory": false, "repetition": 9 },
{
"content": [
{ "content": "PAC", "mandatory": true, "repetition": 1 },
{ "content": "MEA", "mandatory": false, "repetition": 10 },
{ "content": "QTY", "mandatory": false, "repetition": 10 },
{
"content": [
{ "content": "HAN", "mandatory": true, "repetition": 1 },
{ "content": "FTX", "mandatory": false, "repetition": 10 }
],
"mandatory": false,
"repetition": 10,
"name": "Segment group 12"
},
{
"content": [
{ "content": "PCI", "mandatory": true, "repetition": 1 },
{ "content": "RFF", "mandatory": false, "repetition": 1 },
{ "content": "DTM", "mandatory": false, "repetition": 5 },
{
"content": [
{ "content": "GIR", "mandatory": true, "repetition": 1 },
{ "content": "DTM", "mandatory": false, "repetition": 5 }
],
"mandatory": false,
"repetition": 99,
"name": "Segment group 14"
},
{
"content": [
{ "content": "GIN", "mandatory": true, "repetition": 1 },
{ "content": "DLM", "mandatory": false, "repetition": 10 }
],
"mandatory": false,
"repetition": 99,
"name": "Segment group 15"
},
{
"content": [
{ "content": "COD", "mandatory": true, "repetition": 1 },
{ "content": "MEA", "mandatory": false, "repetition": 9 },
{ "content": "QTY", "mandatory": false, "repetition": 9 },
{ "content": "PCD", "mandatory": false, "repetition": 9 }
],
"mandatory": false,
"repetition": 99,
"name": "Segment group 16"
}
],
"mandatory": false,
"repetition": 1000,
"name": "Segment group 13"
}
],
"mandatory": false,
"repetition": 9999,
"name": "Segment group 11"
},
{
"content": [
{ "content": "LIN", "mandatory": true, "repetition": 1 },
{ "content": "PIA", "mandatory": false, "repetition": 10 },
{ "content": "IMD", "mandatory": false, "repetition": 25 },
{ "content": "MEA", "mandatory": false, "repetition": 10 },
{ "content": "QTY", "mandatory": false, "repetition": 10 },
{ "content": "ALI", "mandatory": false, "repetition": 10 },
{ "content": "GIN", "mandatory": false, "repetition": 100 },
{ "content": "GIR", "mandatory": false, "repetition": 100 },
{ "content": "DLM", "mandatory": false, "repetition": 100 },
{ "content": "DTM", "mandatory": false, "repetition": 5 },
{ "content": "NAD", "mandatory": false, "repetition": 99 },
{ "content": "TDT", "mandatory": false, "repetition": 1 },
{ "content": "TMD", "mandatory": false, "repetition": 1 },
{ "content": "HAN", "mandatory": false, "repetition": 20 },
{ "content": "FTX", "mandatory": false, "repetition": 99 },
{ "content": "MOA", "mandatory": false, "repetition": 5 },
{
"content": [
{ "content": "RFF", "mandatory": true, "repetition": 1 },
{ "content": "NAD", "mandatory": false, "repetition": 1 },
{ "content": "CTA", "mandatory": false, "repetition": 1 },
{ "content": "DTM", "mandatory": false, "repetition": 1 }
],
"mandatory": false,
"repetition": 99,
"name": "Segment group 18"
},
{
"content": [
{ "content": "DGS", "mandatory": true, "repetition": 1 },
{ "content": "QTY", "mandatory": false, "repetition": 1 },
{ "content": "FTX", "mandatory": false, "repetition": 5 }
],
"mandatory": false,
"repetition": 9999,
"name": "Segment group 19"
},
{
"content": [
{ "content": "LOC", "mandatory": true, "repetition": 1 },
{ "content": "NAD", "mandatory": false, "repetition": 1 },
{ "content": "DTM", "mandatory": false, "repetition": 1 },
{ "content": "QTY", "mandatory": false, "repetition": 10 }
],
"mandatory": false,
"repetition": 100,
"name": "Segment group 20"
},
{
"content": [
{ "content": "SGP", "mandatory": true, "repetition": 1 },
{ "content": "QTY", "mandatory": false, "repetition": 10 }
],
"mandatory": false,
"repetition": 1000,
"name": "Segment group 21"
},
{
"content": [
{ "content": "PCI", "mandatory": true, "repetition": 1 },
{ "content": "DTM", "mandatory": false, "repetition": 5 },
{ "content": "MEA", "mandatory": false, "repetition": 10 },
{ "content": "QTY", "mandatory": false, "repetition": 1 },
{
"content": [
{ "content": "GIN", "mandatory": true, "repetition": 1 },
{ "content": "DLM", "mandatory": false, "repetition": 100 }
],
"mandatory": false,
"repetition": 10,
"name": "Segment group 23"
},
{
"content": [
{ "content": "HAN", "mandatory": true, "repetition": 1 },
{ "content": "FTX", "mandatory": false, "repetition": 5 },
{ "content": "GIN", "mandatory": false, "repetition": 1000 }
],
"mandatory": false,
"repetition": 10,
"name": "Segment group 24"
}
],
"mandatory": false,
"repetition": 9999,
"name": "Segment group 22"
},
{
"content": [
{ "content": "QVR", "mandatory": true, "repetition": 1 },
{ "content": "DTM", "mandatory": false, "repetition": 5 }
],
"mandatory": false,
"repetition": 10,
"name": "Segment group 25"
}
],
"mandatory": false,
"repetition": 9999,
"name": "Segment group 17"
}
],
"mandatory": false,
"repetition": 9999,
"name": "Segment group 10",
"section": "detail"
},
{
"content": "CNT",
"mandatory": false,
"repetition": 5,
"section": "summary"
},
{ "content": "UNT", "mandatory": true, "repetition": 1 }
]