UNPKG

@makakwastaken/ts-edifact

Version:
615 lines (614 loc) 25.3 kB
[ { "content": "UNH", "mandatory": true, "repetition": 1, "data": ["D01B", "ORDERS"], "section": "header" }, { "content": "BGM", "mandatory": true, "repetition": 1 }, { "content": "DTM", "mandatory": true, "repetition": 35 }, { "content": "PAI", "mandatory": false, "repetition": 1 }, { "content": "ALI", "mandatory": false, "repetition": 5 }, { "content": "IMD", "mandatory": false, "repetition": 999 }, { "content": "FTX", "mandatory": false, "repetition": 99 }, { "content": "GIR", "mandatory": false, "repetition": 10 }, { "content": [ { "content": "RFF", "mandatory": true, "repetition": 1 }, { "content": "DTM", "mandatory": false, "repetition": 5 } ], "mandatory": false, "repetition": 9999, "name": "Segment group 1" }, { "content": [ { "content": "NAD", "mandatory": true, "repetition": 1 }, { "content": "LOC", "mandatory": false, "repetition": 99 }, { "content": "FII", "mandatory": false, "repetition": 5 }, { "content": [ { "content": "RFF", "mandatory": true, "repetition": 1 }, { "content": "DTM", "mandatory": false, "repetition": 5 } ], "mandatory": false, "repetition": 99, "name": "Segment group 3" }, { "content": [ { "content": "DOC", "mandatory": true, "repetition": 1 }, { "content": "DTM", "mandatory": false, "repetition": 5 } ], "mandatory": false, "repetition": 5, "name": "Segment group 4" }, { "content": [ { "content": "CTA", "mandatory": true, "repetition": 1 }, { "content": "COM", "mandatory": false, "repetition": 5 } ], "mandatory": false, "repetition": 5, "name": "Segment group 5" } ], "mandatory": false, "repetition": 99, "name": "Segment group 2" }, { "content": [ { "content": "TAX", "mandatory": true, "repetition": 1 }, { "content": "MOA", "mandatory": false, "repetition": 1 }, { "content": "LOC", "mandatory": false, "repetition": 9 } ], "mandatory": false, "repetition": 5, "name": "Segment group 6" }, { "content": [ { "content": "CUX", "mandatory": true, "repetition": 1 }, { "content": "PCD", "mandatory": false, "repetition": 5 }, { "content": "DTM", "mandatory": false, "repetition": 5 } ], "mandatory": false, "repetition": 5, "name": "Segment group 7" }, { "content": [ { "content": "PAT", "mandatory": true, "repetition": 1 }, { "content": "DTM", "mandatory": false, "repetition": 5 }, { "content": "PCD", "mandatory": false, "repetition": 1 }, { "content": [ { "content": "MOA", "mandatory": true, "repetition": 1 }, { "content": "GIR", "mandatory": false, "repetition": 9 }, { "content": "RJL", "mandatory": false, "repetition": 99 } ], "mandatory": false, "repetition": 9999, "name": "Segment group 9" } ], "mandatory": false, "repetition": 10, "name": "Segment group 8" }, { "content": [ { "content": "TDT", "mandatory": true, "repetition": 1 }, { "content": [ { "content": "LOC", "mandatory": true, "repetition": 1 }, { "content": "DTM", "mandatory": false, "repetition": 5 } ], "mandatory": false, "repetition": 10, "name": "Segment group 11" } ], "mandatory": false, "repetition": 10, "name": "Segment group 10" }, { "content": [ { "content": "TOD", "mandatory": true, "repetition": 1 }, { "content": "LOC", "mandatory": false, "repetition": 2 } ], "mandatory": false, "repetition": 5, "name": "Segment group 12" }, { "content": [ { "content": "PAC", "mandatory": true, "repetition": 1 }, { "content": "MEA", "mandatory": false, "repetition": 5 }, { "content": [ { "content": "PCI", "mandatory": true, "repetition": 1 }, { "content": "RFF", "mandatory": false, "repetition": 1 }, { "content": "DTM", "mandatory": false, "repetition": 5 }, { "content": "GIN", "mandatory": false, "repetition": 10 } ], "mandatory": false, "repetition": 5, "name": "Segment group 14" } ], "mandatory": false, "repetition": 99, "name": "Segment group 13" }, { "content": [ { "content": "EQD", "mandatory": true, "repetition": 1 }, { "content": "HAN", "mandatory": false, "repetition": 5 }, { "content": "MEA", "mandatory": false, "repetition": 5 }, { "content": "FTX", "mandatory": false, "repetition": 5 } ], "mandatory": false, "repetition": 10, "name": "Segment group 15" }, { "content": [ { "content": "SCC", "mandatory": true, "repetition": 1 }, { "content": "FTX", "mandatory": false, "repetition": 5 }, { "content": "RFF", "mandatory": false, "repetition": 5 }, { "content": [ { "content": "QTY", "mandatory": true, "repetition": 1 }, { "content": "DTM", "mandatory": false, "repetition": 5 } ], "mandatory": false, "repetition": 10, "name": "Segment group 17" } ], "mandatory": false, "repetition": 10, "name": "Segment group 16" }, { "content": [ { "content": "APR", "mandatory": true, "repetition": 1 }, { "content": "DTM", "mandatory": false, "repetition": 5 }, { "content": "RNG", "mandatory": false, "repetition": 1 } ], "mandatory": false, "repetition": 25, "name": "Segment group 18" }, { "content": [ { "content": "ALC", "mandatory": true, "repetition": 1 }, { "content": "ALI", "mandatory": false, "repetition": 5 }, { "content": "DTM", "mandatory": false, "repetition": 5 }, { "content": [ { "content": "QTY", "mandatory": true, "repetition": 1 }, { "content": "RNG", "mandatory": false, "repetition": 1 } ], "mandatory": false, "repetition": 1, "name": "Segment group 20" }, { "content": [ { "content": "PCD", "mandatory": true, "repetition": 1 }, { "content": "RNG", "mandatory": false, "repetition": 1 } ], "mandatory": false, "repetition": 1, "name": "Segment group 21" }, { "content": [ { "content": "MOA", "mandatory": true, "repetition": 1 }, { "content": "RNG", "mandatory": false, "repetition": 1 } ], "mandatory": false, "repetition": 2, "name": "Segment group 22" }, { "content": [ { "content": "RTE", "mandatory": true, "repetition": 1 }, { "content": "RNG", "mandatory": false, "repetition": 1 } ], "mandatory": false, "repetition": 1, "name": "Segment group 23" }, { "content": [ { "content": "TAX", "mandatory": true, "repetition": 1 }, { "content": "MOA", "mandatory": false, "repetition": 1 } ], "mandatory": false, "repetition": 5, "name": "Segment group 24" } ], "mandatory": false, "repetition": 99, "name": "Segment group 19" }, { "content": [ { "content": "RCS", "mandatory": true, "repetition": 1 }, { "content": "RFF", "mandatory": false, "repetition": 5 }, { "content": "DTM", "mandatory": false, "repetition": 5 }, { "content": "FTX", "mandatory": false, "repetition": 99999 } ], "mandatory": false, "repetition": 999, "name": "Segment group 25" }, { "content": [ { "content": "DGS", "mandatory": true, "repetition": 1 }, { "content": "FTX", "mandatory": false, "repetition": 5 }, { "content": [ { "content": "CTA", "mandatory": true, "repetition": 1 }, { "content": "COM", "mandatory": false, "repetition": 5 } ], "mandatory": false, "repetition": 99, "name": "Segment group 27" } ], "mandatory": false, "repetition": 999, "name": "Segment group 26" }, { "content": [ { "content": "LIN", "mandatory": true, "repetition": 1 }, { "content": "PIA", "mandatory": false, "repetition": 25 }, { "content": "IMD", "mandatory": false, "repetition": 99 }, { "content": "MEA", "mandatory": false, "repetition": 99 }, { "content": "QTY", "mandatory": false, "repetition": 99 }, { "content": "PCD", "mandatory": false, "repetition": 5 }, { "content": "ALI", "mandatory": false, "repetition": 5 }, { "content": "DTM", "mandatory": false, "repetition": 35 }, { "content": "MOA", "mandatory": false, "repetition": 10 }, { "content": "GIS", "mandatory": false, "repetition": 99 }, { "content": "GIN", "mandatory": false, "repetition": 1000 }, { "content": "GIR", "mandatory": false, "repetition": 1000 }, { "content": "QVR", "mandatory": false, "repetition": 1 }, { "content": "DOC", "mandatory": false, "repetition": 99 }, { "content": "PAI", "mandatory": false, "repetition": 1 }, { "content": "MTD", "mandatory": false, "repetition": 99 }, { "content": "FTX", "mandatory": false, "repetition": 99 }, { "content": [ { "content": "CCI", "mandatory": true, "repetition": 1 }, { "content": "CAV", "mandatory": false, "repetition": 10 }, { "content": "MEA", "mandatory": false, "repetition": 10 } ], "mandatory": false, "repetition": 999, "name": "Segment group 29" }, { "content": [ { "content": "PAT", "mandatory": true, "repetition": 1 }, { "content": "DTM", "mandatory": false, "repetition": 5 }, { "content": "PCD", "mandatory": false, "repetition": 1 }, { "content": [ { "content": "MOA", "mandatory": true, "repetition": 1 }, { "content": "GIR", "mandatory": false, "repetition": 9 } ], "mandatory": false, "repetition": 9999, "name": "Segment group 31" } ], "mandatory": false, "repetition": 10, "name": "Segment group 30" }, { "content": [ { "content": "PRI", "mandatory": true, "repetition": 1 }, { "content": "CUX", "mandatory": false, "repetition": 1 }, { "content": "APR", "mandatory": false, "repetition": 99 }, { "content": "RNG", "mandatory": false, "repetition": 1 }, { "content": "DTM", "mandatory": false, "repetition": 5 } ], "mandatory": false, "repetition": 25, "name": "Segment group 32" }, { "content": [ { "content": "RFF", "mandatory": true, "repetition": 1 }, { "content": "DTM", "mandatory": false, "repetition": 5 }, { "content": "GIS", "mandatory": false, "repetition": 99 }, { "content": "MOA", "mandatory": false, "repetition": 99 } ], "mandatory": false, "repetition": 9999, "name": "Segment group 33" }, { "content": [ { "content": "PAC", "mandatory": true, "repetition": 1 }, { "content": "MEA", "mandatory": false, "repetition": 5 }, { "content": "QTY", "mandatory": false, "repetition": 5 }, { "content": "DTM", "mandatory": false, "repetition": 5 }, { "content": [ { "content": "RFF", "mandatory": true, "repetition": 1 }, { "content": "DTM", "mandatory": false, "repetition": 5 } ], "mandatory": false, "repetition": 1, "name": "Segment group 35" }, { "content": [ { "content": "PCI", "mandatory": true, "repetition": 1 }, { "content": "RFF", "mandatory": false, "repetition": 1 }, { "content": "DTM", "mandatory": false, "repetition": 5 }, { "content": "GIN", "mandatory": false, "repetition": 10 } ], "mandatory": false, "repetition": 5, "name": "Segment group 36" } ], "mandatory": false, "repetition": 99, "name": "Segment group 34" }, { "content": [ { "content": "LOC", "mandatory": true, "repetition": 1 }, { "content": "QTY", "mandatory": false, "repetition": 1 }, { "content": "PCD", "mandatory": false, "repetition": 1 }, { "content": "DTM", "mandatory": false, "repetition": 5 } ], "mandatory": false, "repetition": 9999, "name": "Segment group 37" }, { "content": [ { "content": "TAX", "mandatory": true, "repetition": 1 }, { "content": "MOA", "mandatory": false, "repetition": 1 }, { "content": "LOC", "mandatory": false, "repetition": 5 } ], "mandatory": false, "repetition": 10, "name": "Segment group 38" }, { "content": [ { "content": "NAD", "mandatory": true, "repetition": 1 }, { "content": "LOC", "mandatory": false, "repetition": 5 }, { "content": "FII", "mandatory": false, "repetition": 5 }, { "content": [ { "content": "RFF", "mandatory": true, "repetition": 1 }, { "content": "DTM", "mandatory": false, "repetition": 5 } ], "mandatory": false, "repetition": 99, "name": "Segment group 40" }, { "content": [ { "content": "DOC", "mandatory": true, "repetition": 1 }, { "content": "DTM", "mandatory": false, "repetition": 5 } ], "mandatory": false, "repetition": 5, "name": "Segment group 41" }, { "content": [ { "content": "CTA", "mandatory": true, "repetition": 1 }, { "content": "COM", "mandatory": false, "repetition": 5 } ], "mandatory": false, "repetition": 5, "name": "Segment group 42" } ], "mandatory": false, "repetition": 999, "name": "Segment group 39" }, { "content": [ { "content": "ALC", "mandatory": true, "repetition": 1 }, { "content": "ALI", "mandatory": false, "repetition": 5 }, { "content": "DTM", "mandatory": false, "repetition": 5 }, { "content": [ { "content": "QTY", "mandatory": true, "repetition": 1 }, { "content": "RNG", "mandatory": false, "repetition": 1 } ], "mandatory": false, "repetition": 1, "name": "Segment group 44" }, { "content": [ { "content": "PCD", "mandatory": true, "repetition": 1 }, { "content": "RNG", "mandatory": false, "repetition": 1 } ], "mandatory": false, "repetition": 1, "name": "Segment group 45" }, { "content": [ { "content": "MOA", "mandatory": true, "repetition": 1 }, { "content": "RNG", "mandatory": false, "repetition": 1 } ], "mandatory": false, "repetition": 2, "name": "Segment group 46" }, { "content": [ { "content": "RTE", "mandatory": true, "repetition": 1 }, { "content": "RNG", "mandatory": false, "repetition": 1 } ], "mandatory": false, "repetition": 1, "name": "Segment group 47" }, { "content": [ { "content": "TAX", "mandatory": true, "repetition": 1 }, { "content": "MOA", "mandatory": false, "repetition": 1 } ], "mandatory": false, "repetition": 5, "name": "Segment group 48" } ], "mandatory": false, "repetition": 99, "name": "Segment group 43" }, { "content": [ { "content": "TDT", "mandatory": true, "repetition": 1 }, { "content": [ { "content": "LOC", "mandatory": true, "repetition": 1 }, { "content": "DTM", "mandatory": false, "repetition": 5 } ], "mandatory": false, "repetition": 10, "name": "Segment group 50" } ], "mandatory": false, "repetition": 10, "name": "Segment group 49" }, { "content": [ { "content": "TOD", "mandatory": true, "repetition": 1 }, { "content": "LOC", "mandatory": false, "repetition": 2 } ], "mandatory": false, "repetition": 5, "name": "Segment group 51" }, { "content": [ { "content": "EQD", "mandatory": true, "repetition": 1 }, { "content": "HAN", "mandatory": false, "repetition": 5 }, { "content": "MEA", "mandatory": false, "repetition": 5 }, { "content": "FTX", "mandatory": false, "repetition": 5 } ], "mandatory": false, "repetition": 10, "name": "Segment group 52" }, { "content": [ { "content": "SCC", "mandatory": true, "repetition": 1 }, { "content": "FTX", "mandatory": false, "repetition": 5 }, { "content": "RFF", "mandatory": false, "repetition": 5 }, { "content": [ { "content": "QTY", "mandatory": true, "repetition": 1 }, { "content": "DTM", "mandatory": false, "repetition": 5 } ], "mandatory": false, "repetition": 10, "name": "Segment group 54" } ], "mandatory": false, "repetition": 100, "name": "Segment group 53" }, { "content": [ { "content": "RCS", "mandatory": true, "repetition": 1 }, { "content": "RFF", "mandatory": false, "repetition": 5 }, { "content": "DTM", "mandatory": false, "repetition": 5 }, { "content": "FTX", "mandatory": false, "repetition": 99999 } ], "mandatory": false, "repetition": 999, "name": "Segment group 55" }, { "content": [ { "content": "STG", "mandatory": true, "repetition": 1 }, { "content": [ { "content": "QTY", "mandatory": true, "repetition": 1 }, { "content": "MOA", "mandatory": false, "repetition": 1 } ], "mandatory": false, "repetition": 3, "name": "Segment group 57" } ], "mandatory": false, "repetition": 10, "name": "Segment group 56" }, { "content": [ { "content": "DGS", "mandatory": true, "repetition": 1 }, { "content": "FTX", "mandatory": false, "repetition": 5 }, { "content": [ { "content": "CTA", "mandatory": true, "repetition": 1 }, { "content": "COM", "mandatory": false, "repetition": 5 } ], "mandatory": false, "repetition": 99, "name": "Segment group 59" } ], "mandatory": false, "repetition": 999, "name": "Segment group 58" } ], "mandatory": false, "repetition": 200000, "name": "Segment group 28", "section": "detail" }, { "content": "UNS", "mandatory": true, "repetition": 1, "section": "summary" }, { "content": "MOA", "mandatory": false, "repetition": 99 }, { "content": "CNT", "mandatory": false, "repetition": 10 }, { "content": [ { "content": "ALC", "mandatory": true, "repetition": 1 }, { "content": "ALI", "mandatory": false, "repetition": 1 }, { "content": "MOA", "mandatory": true, "repetition": 2 } ], "mandatory": false, "repetition": 10, "name": "Segment group 60" }, { "content": "UNT", "mandatory": true, "repetition": 1 } ]