@makakwastaken/ts-edifact
Version:
Edifact parser library
467 lines (466 loc) • 20.1 kB
JSON
[
{
"content": "UNH",
"mandatory": true,
"repetition": 1,
"data": ["D01B", "IFTMIN"],
"section": "header"
},
{ "content": "BGM", "mandatory": true, "repetition": 1 },
{ "content": "CTA", "mandatory": false, "repetition": 1 },
{ "content": "COM", "mandatory": false, "repetition": 9 },
{ "content": "DTM", "mandatory": false, "repetition": 9 },
{ "content": "TSR", "mandatory": false, "repetition": 9 },
{ "content": "CUX", "mandatory": false, "repetition": 9 },
{ "content": "MOA", "mandatory": false, "repetition": 99 },
{ "content": "FTX", "mandatory": false, "repetition": 99 },
{ "content": "CNT", "mandatory": false, "repetition": 9 },
{ "content": "DOC", "mandatory": false, "repetition": 9 },
{ "content": "GDS", "mandatory": false, "repetition": 9 },
{
"content": [
{ "content": "LOC", "mandatory": true, "repetition": 1 },
{ "content": "DTM", "mandatory": false, "repetition": 9 }
],
"mandatory": false,
"repetition": 99,
"name": "Segment group 1"
},
{
"content": [
{ "content": "TOD", "mandatory": true, "repetition": 1 },
{ "content": "LOC", "mandatory": false, "repetition": 9 }
],
"mandatory": false,
"repetition": 2,
"name": "Segment group 2"
},
{
"content": [
{ "content": "RFF", "mandatory": true, "repetition": 1 },
{ "content": "DTM", "mandatory": false, "repetition": 9 }
],
"mandatory": false,
"repetition": 999,
"name": "Segment group 3"
},
{
"content": [
{ "content": "GOR", "mandatory": true, "repetition": 1 },
{ "content": "DTM", "mandatory": false, "repetition": 9 },
{ "content": "LOC", "mandatory": false, "repetition": 9 },
{ "content": "SEL", "mandatory": false, "repetition": 9 },
{ "content": "FTX", "mandatory": false, "repetition": 9 },
{
"content": [
{ "content": "DOC", "mandatory": true, "repetition": 1 },
{ "content": "DTM", "mandatory": false, "repetition": 1 }
],
"mandatory": false,
"repetition": 9,
"name": "Segment group 5"
}
],
"mandatory": false,
"repetition": 9,
"name": "Segment group 4"
},
{
"content": [
{ "content": "CPI", "mandatory": true, "repetition": 1 },
{ "content": "RFF", "mandatory": false, "repetition": 99 },
{ "content": "CUX", "mandatory": false, "repetition": 1 },
{ "content": "LOC", "mandatory": false, "repetition": 9 },
{ "content": "MOA", "mandatory": false, "repetition": 9 }
],
"mandatory": false,
"repetition": 9,
"name": "Segment group 6"
},
{
"content": [
{ "content": "TCC", "mandatory": true, "repetition": 1 },
{ "content": "LOC", "mandatory": false, "repetition": 1 },
{ "content": "FTX", "mandatory": false, "repetition": 1 },
{ "content": "CUX", "mandatory": false, "repetition": 1 },
{ "content": "PRI", "mandatory": false, "repetition": 1 },
{ "content": "EQN", "mandatory": false, "repetition": 1 },
{ "content": "PCD", "mandatory": false, "repetition": 1 },
{ "content": "MOA", "mandatory": false, "repetition": 9 },
{ "content": "QTY", "mandatory": false, "repetition": 9 }
],
"mandatory": false,
"repetition": 99,
"name": "Segment group 7"
},
{
"content": [
{ "content": "TDT", "mandatory": true, "repetition": 1 },
{ "content": "DTM", "mandatory": false, "repetition": 9 },
{ "content": "TSR", "mandatory": false, "repetition": 9 },
{
"content": [
{ "content": "LOC", "mandatory": true, "repetition": 1 },
{ "content": "DTM", "mandatory": false, "repetition": 9 }
],
"mandatory": false,
"repetition": 99,
"name": "Segment group 9"
},
{
"content": [
{ "content": "RFF", "mandatory": true, "repetition": 1 },
{ "content": "DTM", "mandatory": false, "repetition": 1 }
],
"mandatory": false,
"repetition": 9,
"name": "Segment group 10"
}
],
"mandatory": false,
"repetition": 99,
"name": "Segment group 8"
},
{
"content": [
{ "content": "NAD", "mandatory": true, "repetition": 1 },
{ "content": "LOC", "mandatory": false, "repetition": 9 },
{ "content": "MOA", "mandatory": false, "repetition": 9 },
{
"content": [
{ "content": "CTA", "mandatory": true, "repetition": 1 },
{ "content": "COM", "mandatory": false, "repetition": 9 }
],
"mandatory": false,
"repetition": 9,
"name": "Segment group 12"
},
{
"content": [
{ "content": "DOC", "mandatory": true, "repetition": 1 },
{ "content": "DTM", "mandatory": false, "repetition": 1 }
],
"mandatory": false,
"repetition": 9,
"name": "Segment group 13"
},
{
"content": [
{ "content": "TCC", "mandatory": true, "repetition": 1 },
{ "content": "CUX", "mandatory": false, "repetition": 1 },
{ "content": "PRI", "mandatory": false, "repetition": 1 },
{ "content": "EQN", "mandatory": false, "repetition": 1 },
{ "content": "PCD", "mandatory": false, "repetition": 1 },
{ "content": "MOA", "mandatory": false, "repetition": 9 },
{ "content": "QTY", "mandatory": false, "repetition": 9 }
],
"mandatory": false,
"repetition": 99,
"name": "Segment group 14"
},
{
"content": [
{ "content": "RFF", "mandatory": true, "repetition": 1 },
{ "content": "DTM", "mandatory": false, "repetition": 9 }
],
"mandatory": false,
"repetition": 9,
"name": "Segment group 15"
},
{
"content": [
{ "content": "CPI", "mandatory": true, "repetition": 1 },
{ "content": "RFF", "mandatory": false, "repetition": 99 },
{ "content": "CUX", "mandatory": false, "repetition": 1 },
{ "content": "LOC", "mandatory": false, "repetition": 9 },
{ "content": "MOA", "mandatory": false, "repetition": 9 }
],
"mandatory": false,
"repetition": 9,
"name": "Segment group 16"
},
{
"content": [
{ "content": "TSR", "mandatory": true, "repetition": 1 },
{ "content": "RFF", "mandatory": false, "repetition": 1 },
{ "content": "LOC", "mandatory": false, "repetition": 1 },
{ "content": "TPL", "mandatory": false, "repetition": 1 },
{ "content": "FTX", "mandatory": false, "repetition": 9 }
],
"mandatory": false,
"repetition": 99,
"name": "Segment group 17"
}
],
"mandatory": true,
"repetition": 99,
"name": "Segment group 11"
},
{
"content": [
{ "content": "GID", "mandatory": true, "repetition": 1 },
{ "content": "HAN", "mandatory": false, "repetition": 99 },
{ "content": "TMP", "mandatory": false, "repetition": 1 },
{ "content": "RNG", "mandatory": false, "repetition": 1 },
{ "content": "TMD", "mandatory": false, "repetition": 1 },
{ "content": "LOC", "mandatory": false, "repetition": 9 },
{ "content": "MOA", "mandatory": false, "repetition": 9 },
{ "content": "PIA", "mandatory": false, "repetition": 9 },
{ "content": "FTX", "mandatory": false, "repetition": 99 },
{ "content": "PCD", "mandatory": false, "repetition": 9 },
{
"content": [
{ "content": "NAD", "mandatory": true, "repetition": 1 },
{ "content": "DTM", "mandatory": false, "repetition": 1 },
{ "content": "LOC", "mandatory": false, "repetition": 9 }
],
"mandatory": false,
"repetition": 9,
"name": "Segment group 19"
},
{ "content": "GDS", "mandatory": false, "repetition": 9 },
{
"content": [
{ "content": "MEA", "mandatory": true, "repetition": 1 },
{ "content": "EQN", "mandatory": false, "repetition": 1 }
],
"mandatory": false,
"repetition": 99,
"name": "Segment group 20"
},
{
"content": [
{ "content": "DIM", "mandatory": true, "repetition": 1 },
{ "content": "EQN", "mandatory": false, "repetition": 1 }
],
"mandatory": false,
"repetition": 99,
"name": "Segment group 21"
},
{
"content": [
{ "content": "RFF", "mandatory": true, "repetition": 1 },
{ "content": "DTM", "mandatory": false, "repetition": 9 }
],
"mandatory": false,
"repetition": 9,
"name": "Segment group 22"
},
{
"content": [
{ "content": "PCI", "mandatory": true, "repetition": 1 },
{ "content": "RFF", "mandatory": false, "repetition": 1 },
{ "content": "DTM", "mandatory": false, "repetition": 1 },
{ "content": "GIN", "mandatory": false, "repetition": 10 }
],
"mandatory": false,
"repetition": 999,
"name": "Segment group 23"
},
{
"content": [
{ "content": "DOC", "mandatory": true, "repetition": 1 },
{ "content": "DTM", "mandatory": false, "repetition": 9 }
],
"mandatory": false,
"repetition": 9,
"name": "Segment group 24"
},
{
"content": [
{ "content": "GOR", "mandatory": true, "repetition": 1 },
{ "content": "DTM", "mandatory": false, "repetition": 9 },
{ "content": "LOC", "mandatory": false, "repetition": 9 },
{ "content": "SEL", "mandatory": false, "repetition": 9 },
{ "content": "FTX", "mandatory": false, "repetition": 9 },
{
"content": [
{ "content": "DOC", "mandatory": true, "repetition": 1 },
{ "content": "DTM", "mandatory": false, "repetition": 1 }
],
"mandatory": false,
"repetition": 9,
"name": "Segment group 26"
}
],
"mandatory": false,
"repetition": 9,
"name": "Segment group 25"
},
{
"content": [
{ "content": "TPL", "mandatory": true, "repetition": 1 },
{
"content": [
{ "content": "MEA", "mandatory": true, "repetition": 1 },
{ "content": "EQN", "mandatory": false, "repetition": 1 }
],
"mandatory": false,
"repetition": 9,
"name": "Segment group 28"
}
],
"mandatory": false,
"repetition": 9,
"name": "Segment group 27"
},
{
"content": [
{ "content": "SGP", "mandatory": true, "repetition": 1 },
{
"content": [
{ "content": "MEA", "mandatory": true, "repetition": 1 },
{ "content": "EQN", "mandatory": false, "repetition": 1 }
],
"mandatory": false,
"repetition": 9,
"name": "Segment group 30"
}
],
"mandatory": false,
"repetition": 999,
"name": "Segment group 29"
},
{
"content": [
{ "content": "TCC", "mandatory": true, "repetition": 1 },
{ "content": "CUX", "mandatory": false, "repetition": 1 },
{ "content": "PRI", "mandatory": false, "repetition": 1 },
{ "content": "EQN", "mandatory": false, "repetition": 1 },
{ "content": "PCD", "mandatory": false, "repetition": 1 },
{ "content": "MOA", "mandatory": false, "repetition": 9 },
{ "content": "QTY", "mandatory": false, "repetition": 9 },
{ "content": "LOC", "mandatory": false, "repetition": 9 }
],
"mandatory": false,
"repetition": 99,
"name": "Segment group 31"
},
{
"content": [
{ "content": "DGS", "mandatory": true, "repetition": 1 },
{ "content": "FTX", "mandatory": false, "repetition": 99 },
{
"content": [
{ "content": "CTA", "mandatory": true, "repetition": 1 },
{ "content": "COM", "mandatory": false, "repetition": 9 }
],
"mandatory": false,
"repetition": 9,
"name": "Segment group 33"
},
{
"content": [
{ "content": "MEA", "mandatory": true, "repetition": 1 },
{ "content": "EQN", "mandatory": false, "repetition": 1 }
],
"mandatory": false,
"repetition": 9,
"name": "Segment group 34"
},
{
"content": [
{ "content": "SGP", "mandatory": true, "repetition": 1 },
{
"content": [
{ "content": "MEA", "mandatory": true, "repetition": 1 },
{ "content": "EQN", "mandatory": false, "repetition": 1 }
],
"mandatory": false,
"repetition": 9,
"name": "Segment group 36"
}
],
"mandatory": false,
"repetition": 999,
"name": "Segment group 35"
}
],
"mandatory": false,
"repetition": 99,
"name": "Segment group 32"
}
],
"mandatory": false,
"repetition": 999,
"name": "Segment group 18"
},
{
"content": [
{ "content": "EQD", "mandatory": true, "repetition": 1 },
{ "content": "EQN", "mandatory": false, "repetition": 1 },
{ "content": "TMD", "mandatory": false, "repetition": 1 },
{ "content": "MEA", "mandatory": false, "repetition": 9 },
{ "content": "DIM", "mandatory": false, "repetition": 9 },
{ "content": "SEL", "mandatory": false, "repetition": 99 },
{ "content": "TPL", "mandatory": false, "repetition": 9 },
{ "content": "HAN", "mandatory": false, "repetition": 1 },
{ "content": "TMP", "mandatory": false, "repetition": 1 },
{ "content": "FTX", "mandatory": false, "repetition": 9 },
{ "content": "RFF", "mandatory": false, "repetition": 9 },
{
"content": [
{ "content": "TCC", "mandatory": true, "repetition": 1 },
{ "content": "CUX", "mandatory": false, "repetition": 1 },
{ "content": "PRI", "mandatory": false, "repetition": 1 },
{ "content": "EQN", "mandatory": false, "repetition": 1 },
{ "content": "PCD", "mandatory": false, "repetition": 1 },
{ "content": "MOA", "mandatory": false, "repetition": 9 },
{ "content": "QTY", "mandatory": false, "repetition": 9 }
],
"mandatory": false,
"repetition": 99,
"name": "Segment group 38"
},
{
"content": [
{ "content": "NAD", "mandatory": true, "repetition": 1 },
{ "content": "DTM", "mandatory": false, "repetition": 1 },
{
"content": [
{ "content": "CTA", "mandatory": true, "repetition": 1 },
{ "content": "COM", "mandatory": false, "repetition": 9 }
],
"mandatory": false,
"repetition": 9,
"name": "Segment group 40"
}
],
"mandatory": false,
"repetition": 9,
"name": "Segment group 39"
},
{
"content": [
{ "content": "EQA", "mandatory": true, "repetition": 1 },
{ "content": "EQN", "mandatory": false, "repetition": 1 }
],
"mandatory": false,
"repetition": 99,
"name": "Segment group 41"
},
{
"content": [
{ "content": "DGS", "mandatory": true, "repetition": 1 },
{ "content": "FTX", "mandatory": false, "repetition": 9 },
{
"content": [
{ "content": "CTA", "mandatory": true, "repetition": 1 },
{ "content": "COM", "mandatory": false, "repetition": 9 }
],
"mandatory": false,
"repetition": 9,
"name": "Segment group 43"
}
],
"mandatory": false,
"repetition": 99,
"name": "Segment group 42"
}
],
"mandatory": false,
"repetition": 999,
"name": "Segment group 37"
},
{ "content": "UNT", "mandatory": true, "repetition": 1 }
]