@prefixcheck/edi-mcp 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,99 @@
1
+ // ============================================================
2
+ // @prefixcheck/edi · sample messages for demos, tests, and docs
3
+ //
4
+ // Real-shape SMDG D.00B CODECO + COPRAR messages with valid
5
+ // ISO 6346 container check digits. The container number
6
+ // MSCU1234566 appears in both so that `reconcile()` against
7
+ // them produces a clean cross-match in tests and examples.
8
+ // ============================================================
9
+ /**
10
+ * A complete SMDG-shape CODECO message: gate-in report from
11
+ * terminal ECT Rotterdam to carrier MSC, one full 40-foot
12
+ * high-cube container (MSCU1234566) bound for New York.
13
+ */
14
+ export const SAMPLE_CODECO = `UNA:+.? '
15
+ UNB+UNOA:2+TERMINAL01:ZZZ+MSCU:ZZZ+260524:1430+CDC00012345'
16
+ UNH+CDC0001+CODECO:D:00B:UN:SMDG21'
17
+ BGM+34:::TRANSPORT EQUIPMENT GATE IN REPORT+CDC0001+9'
18
+ DTM+137:202605241430:203'
19
+ TDT+20+251NB+3+31+MSCU:172:20'
20
+ LOC+9+NLRTM:139:6+ECT:TER:ZZZ'
21
+ DTM+178:202605241425:203'
22
+ NAD+CF+MSC:160:20'
23
+ NAD+TR+ECT:160:20'
24
+ NAD+CA+MSCU:172:20'
25
+ EQD+CN+MSCU1234566+45G1:102:5++2+4'
26
+ RFF+BN:BKG778899'
27
+ RFF+BM:MSCUNLRTM0042'
28
+ RFF+EQ:MSCU1234566'
29
+ DTM+178:202605241425:203'
30
+ LOC+9+NLRTM:139:6+ECT:TER:ZZZ'
31
+ LOC+11+USNYC:139:6'
32
+ LOC+165+USNYC:139:6'
33
+ MEA+AAE+AET+KGM:28450'
34
+ MEA+AAL++KGM:3920'
35
+ MEA+VGM++KGM:28450'
36
+ SEL+CN789456+CA'
37
+ SEL+TR556677+TR'
38
+ FTX+AAA+++FULL CONTAINER GATE IN'
39
+ EQA+CH+CHSU0099887'
40
+ STS+1+2'
41
+ DTM+178:202605241430:203'
42
+ CNT+16:1'
43
+ UNT+28+CDC0001'
44
+ UNZ+1+CDC00012345'`;
45
+ /**
46
+ * A complete SMDG-shape COPRAR Load order: carrier MSC instructs
47
+ * terminal ECT Rotterdam to load three containers on vessel
48
+ * MSC MAYA (voyage 251NB) bound for New York. The first container
49
+ * (MSCU1234566) matches the CODECO sample above so the pair
50
+ * cross-reconciles cleanly. Container 3 is a frozen reefer.
51
+ */
52
+ export const SAMPLE_COPRAR = `UNA:+.? '
53
+ UNB+UNOA:2+MSCU:ZZZ+TERMINAL01:ZZZ+260524:1200+CPR00098765'
54
+ UNH+CPR0001+COPRAR:D:00B:UN:SMDG21'
55
+ BGM+45+CPR0001+9'
56
+ DTM+137:202605241200:203'
57
+ RFF+XXX:VOY-251NB-LOAD'
58
+ TDT+20+251NB+1+13+MSCU:172:20+++9876543:146:11::MSC MAYA'
59
+ LOC+9+NLRTM:139:6+ECT:TER:ZZZ'
60
+ DTM+133:202605260800:203'
61
+ LOC+11+USNYC:139:6'
62
+ DTM+132:202606051400:203'
63
+ NAD+CA+MSCU:172:20'
64
+ NAD+CF+MSC:160:20'
65
+ NAD+TR+ECT:160:20'
66
+ EQD+CN+MSCU1234566+45G1:102:5++4+4'
67
+ RFF+BN:BKG778899'
68
+ RFF+BM:MSCUNLRTM0042'
69
+ LOC+9+NLRTM:139:6'
70
+ LOC+11+USNYC:139:6'
71
+ MEA+AAE++KGM:28450'
72
+ MEA+AAL++KGM:3920'
73
+ MEA+VGM++KGM:28450'
74
+ TPL+++147:021082'
75
+ EQD+CN+MSCU2345672+22G1:102:5++4+4'
76
+ RFF+BN:BKG778900'
77
+ RFF+BM:MSCUNLRTM0043'
78
+ LOC+9+NLRTM:139:6'
79
+ LOC+11+USNYC:139:6'
80
+ MEA+AAE++KGM:18200'
81
+ MEA+AAL++KGM:2230'
82
+ MEA+VGM++KGM:18200'
83
+ TPL+++147:019084'
84
+ EQD+CN+MSCU3456789+45R1:102:5++4+4'
85
+ RFF+BN:BKG778901'
86
+ RFF+BM:MSCUNLRTM0044'
87
+ LOC+9+NLRTM:139:6'
88
+ LOC+11+USNYC:139:6'
89
+ TMP+2+-018:CEL'
90
+ RNG+5+CEL:-020:-015'
91
+ MEA+AAE++KGM:27800'
92
+ MEA+AAL++KGM:4500'
93
+ MEA+VGM++KGM:27800'
94
+ EQA+RG+MSCG0001122'
95
+ TPL+++147:023086'
96
+ CNT+16:3'
97
+ CNT+7:5'
98
+ UNT+46+CPR0001'
99
+ UNZ+1+CPR00098765'`;