@makakwastaken/ts-edifact
Version:
Edifact parser library
136 lines (135 loc) • 6.56 kB
JSON
[
{
"content": "UNH",
"mandatory": true,
"repetition": 1,
"data": ["D01B", "VATDEC"],
"section": "header"
},
{ "content": "BGM", "mandatory": true, "repetition": 1 },
{ "content": "DTM", "mandatory": false, "repetition": 1 },
{ "content": "LOC", "mandatory": false, "repetition": 1 },
{
"content": [
{ "content": "NAD", "mandatory": true, "repetition": 1 },
{
"content": [
{ "content": "CTA", "mandatory": true, "repetition": 1 },
{ "content": "COM", "mandatory": false, "repetition": 9 }
],
"mandatory": false,
"repetition": 9,
"name": "Segment group 2"
},
{
"content": [
{ "content": "RFF", "mandatory": true, "repetition": 1 },
{ "content": "FTX", "mandatory": false, "repetition": 9 }
],
"mandatory": false,
"repetition": 9,
"name": "Segment group 3"
},
{ "content": "FII", "mandatory": false, "repetition": 9 },
{ "content": "PAI", "mandatory": false, "repetition": 9 },
{ "content": "GIS", "mandatory": false, "repetition": 9 },
{ "content": "LOC", "mandatory": false, "repetition": 9 },
{
"content": [
{ "content": "DTM", "mandatory": true, "repetition": 1 },
{ "content": "GIS", "mandatory": false, "repetition": 9 },
{ "content": "MEA", "mandatory": false, "repetition": 9 },
{
"content": [
{ "content": "DMS", "mandatory": true, "repetition": 1 },
{ "content": "MOA", "mandatory": false, "repetition": 1 },
{ "content": "MEA", "mandatory": false, "repetition": 1 },
{ "content": "PCD", "mandatory": false, "repetition": 1 },
{ "content": "GIS", "mandatory": false, "repetition": 1 }
],
"mandatory": false,
"repetition": 9,
"name": "Segment group 5"
},
{
"content": [
{ "content": "LIN", "mandatory": true, "repetition": 1 },
{
"content": [
{ "content": "NAD", "mandatory": true, "repetition": 1 },
{
"content": [
{ "content": "CTA", "mandatory": true, "repetition": 1 },
{ "content": "COM", "mandatory": false, "repetition": 9 }
],
"mandatory": false,
"repetition": 9999,
"name": "Segment group 8"
},
{ "content": "RFF", "mandatory": false, "repetition": 9 },
{ "content": "FII", "mandatory": false, "repetition": 1 }
],
"mandatory": false,
"repetition": 9999,
"name": "Segment group 7"
},
{ "content": "GIS", "mandatory": false, "repetition": 9 },
{
"content": [
{ "content": "MOA", "mandatory": true, "repetition": 1 },
{ "content": "ARD", "mandatory": false, "repetition": 1 },
{ "content": "PCD", "mandatory": false, "repetition": 1 },
{ "content": "GIS", "mandatory": false, "repetition": 9 },
{
"content": [
{ "content": "DMS", "mandatory": true, "repetition": 1 },
{ "content": "MOA", "mandatory": false, "repetition": 1 },
{ "content": "MEA", "mandatory": false, "repetition": 1 },
{ "content": "PCD", "mandatory": false, "repetition": 1 },
{ "content": "GIS", "mandatory": true, "repetition": 1 }
],
"mandatory": false,
"repetition": 9,
"name": "Segment group 10"
}
],
"mandatory": true,
"repetition": 9999,
"name": "Segment group 9"
}
],
"mandatory": true,
"repetition": 9999,
"name": "Segment group 6"
},
{
"content": [
{ "content": "CNT", "mandatory": true, "repetition": 1 },
{ "content": "MOA", "mandatory": true, "repetition": 1 }
],
"mandatory": false,
"repetition": 1,
"name": "Segment group 11"
}
],
"mandatory": false,
"repetition": 99,
"name": "Segment group 4"
}
],
"mandatory": true,
"repetition": 9999,
"name": "Segment group 1"
},
{
"content": [
{ "content": "AUT", "mandatory": true, "repetition": 1 },
{ "content": "DTM", "mandatory": false, "repetition": 1 },
{ "content": "RFF", "mandatory": false, "repetition": 1 }
],
"mandatory": false,
"repetition": 1,
"name": "Segment group 12"
},
{ "content": "UNT", "mandatory": true, "repetition": 1 }
]