@makakwastaken/ts-edifact
Version:
Edifact parser library
102 lines (101 loc) • 3.68 kB
JSON
[
{
"content": "UNH",
"mandatory": true,
"repetition": 1,
"data": ["D01B", "AUTHOR"],
"section": "header"
},
{ "content": "BGM", "mandatory": true, "repetition": 1 },
{ "content": "DTM", "mandatory": false, "repetition": 1 },
{ "content": "BUS", "mandatory": false, "repetition": 1 },
{
"content": [
{ "content": "RFF", "mandatory": true, "repetition": 1 },
{ "content": "DTM", "mandatory": false, "repetition": 1 }
],
"mandatory": false,
"repetition": 2,
"name": "Segment group 1"
},
{
"content": [
{ "content": "FII", "mandatory": true, "repetition": 1 },
{ "content": "CTA", "mandatory": false, "repetition": 1 },
{ "content": "COM", "mandatory": false, "repetition": 5 }
],
"mandatory": false,
"repetition": 5,
"name": "Segment group 2"
},
{
"content": [
{ "content": "NAD", "mandatory": true, "repetition": 1 },
{ "content": "CTA", "mandatory": false, "repetition": 1 },
{ "content": "COM", "mandatory": false, "repetition": 5 }
],
"mandatory": false,
"repetition": 3,
"name": "Segment group 3"
},
{
"content": [
{ "content": "LIN", "mandatory": true, "repetition": 1 },
{
"content": [
{ "content": "RFF", "mandatory": true, "repetition": 1 },
{ "content": "DTM", "mandatory": false, "repetition": 1 }
],
"mandatory": false,
"repetition": 5,
"name": "Segment group 5"
},
{
"content": [
{ "content": "SEQ", "mandatory": true, "repetition": 1 },
{ "content": "GIS", "mandatory": true, "repetition": 1 },
{ "content": "DTM", "mandatory": false, "repetition": 2 },
{ "content": "MOA", "mandatory": false, "repetition": 1 },
{ "content": "DOC", "mandatory": false, "repetition": 5 }
],
"mandatory": false,
"repetition": 9999,
"name": "Segment group 6"
},
{
"content": [
{ "content": "FII", "mandatory": true, "repetition": 1 },
{ "content": "CTA", "mandatory": false, "repetition": 1 },
{ "content": "COM", "mandatory": false, "repetition": 5 }
],
"mandatory": false,
"repetition": 2,
"name": "Segment group 7"
},
{
"content": [
{ "content": "NAD", "mandatory": true, "repetition": 1 },
{ "content": "CTA", "mandatory": false, "repetition": 1 },
{ "content": "COM", "mandatory": false, "repetition": 5 }
],
"mandatory": false,
"repetition": 2,
"name": "Segment group 8"
}
],
"mandatory": true,
"repetition": 9999,
"name": "Segment group 4"
},
{ "content": "CNT", "mandatory": false, "repetition": 5 },
{
"content": [
{ "content": "AUT", "mandatory": true, "repetition": 1 },
{ "content": "DTM", "mandatory": false, "repetition": 1 }
],
"mandatory": false,
"repetition": 5,
"name": "Segment group 9"
},
{ "content": "UNT", "mandatory": true, "repetition": 1 }
]