universal-parcel-scraper 0.1314.1-main.8856 → 0.1315.4

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.
package/README.md CHANGED
@@ -164,7 +164,7 @@ the command line's `track --source ParcelsApp` does the same.
164
164
  <!-- GENERATED:stages -->
165
165
  <img src="docs/assets/stages.svg" alt="DHL: Die Sendung wurde in das Zustellfahrzeug geladen.; Mondial Relay: En cours de livraison; Correios Brazil: Objeto saiu para entrega ao destinatário; Correos Express: EN REPARTO; Yamato Transport: 配達中; La Poste / Colissimo: DISTOU. All are filed under out_for_delivery." width="760">
166
166
 
167
- The carrier folders record 24,418 such statuses, each filed under one stage.
167
+ The carrier folders record 24,423 such statuses, each filed under one stage.
168
168
  <!-- /GENERATED:stages -->
169
169
 
170
170
  Wording nobody recorded yet goes through a classifier that reads seven European languages.
package/data/catalog.json CHANGED
@@ -60406,7 +60406,12 @@
60406
60406
  "trackingUrlTemplate": "https://www.suhusupplychain.com/",
60407
60407
  "trackingSearchUrl": "https://www.suhusupplychain.com/",
60408
60408
  "linkRules": [],
60409
- "detectionRules": []
60409
+ "detectionRules": [
60410
+ {
60411
+ "pattern": "^TGE\\d{13}SH$",
60412
+ "confidence": "low"
60413
+ }
60414
+ ]
60410
60415
  },
60411
60416
  "sumxpress": {
60412
60417
  "displayName": "Sumxpress",
@@ -116436,6 +116436,17 @@
116436
116436
  "confidence": "none",
116437
116437
  "candidates": []
116438
116438
  },
116439
+ {
116440
+ "input": "TGE9999999999999SH",
116441
+ "carrier": "unknown",
116442
+ "confidence": "low",
116443
+ "candidates": [
116444
+ "suhu"
116445
+ ],
116446
+ "asked": [
116447
+ "suhu"
116448
+ ]
116449
+ },
116439
116450
  {
116440
116451
  "input": "TGFL003384",
116441
116452
  "carrier": "unknown",
@@ -46386,7 +46386,10 @@ var t = {
46386
46386
  trackingUrlTemplate: "https://www.suhusupplychain.com/",
46387
46387
  trackingSearchUrl: "https://www.suhusupplychain.com/",
46388
46388
  linkRules: [],
46389
- detectionRules: []
46389
+ detectionRules: [{
46390
+ pattern: "^TGE\\d{13}SH$",
46391
+ confidence: "low"
46392
+ }]
46390
46393
  },
46391
46394
  sumxpress: {
46392
46395
  displayName: "Sumxpress",
@@ -57205,7 +57208,7 @@ var t = {
57205
57208
  "straightship-ca",
57206
57209
  "straightship-2"
57207
57210
  ],
57208
- suhu: [],
57211
+ suhu: ["suhu-1"],
57209
57212
  sumxpress: [],
57210
57213
  "sundarban-courier": [],
57211
57214
  "suning-logistics": [],
@@ -3,6 +3,8 @@ const wording = {
3
3
  'The shipment has been delivered': { status: 'delivered', stage: 'delivered' },
4
4
  "An Aramex Delivery Champion has the shipment and is expected to reach the customer's doorstep shortly": { status: 'out_for_delivery', stage: 'out_for_delivery' },
5
5
  "We've attempted to deliver the shipment, but the customer was not available at the time. Not to worry, the delivery has been rescheduled": { status: 'exception', stage: 'failed_attempt' },
6
+ // The attempt, worded without its reason.
7
+ "We've attempted to deliver the shipment": { status: 'exception', stage: 'failed_attempt' },
6
8
  'Updated delivery address required from customer': { status: 'exception', stage: 'exception' },
7
9
  'The shipment is currently going through customs inspection': { status: 'in_transit', stage: 'customs' },
8
10
  'The shipment is on its way to our Aramex facility': { status: 'in_transit', stage: 'in_transit' },
@@ -14,6 +16,10 @@ const wording = {
14
16
  // The label before Aramex has the parcel, then its origin office's receipt: the first scan.
15
17
  'Shipper generated a new shipment label, but the shipment has not been handed over to Aramex, yet. Shipment will be updated once collected from shipper and received in Aramex offices': { status: 'pending', stage: 'registered' },
16
18
  'The shipment has been received at our Aramex origin office and will continue its journey to the destination country': { status: 'in_transit', stage: 'accepted' },
19
+ // The same receipt, worded without the country.
20
+ 'The shipment has been received at our Aramex origin office and will continue its journey to the destination': { status: 'in_transit', stage: 'accepted' },
21
+ // The departure from the origin office.
22
+ 'The shipment has left the Aramex origin office and is on its way to the destination office': { status: 'in_transit', stage: 'in_transit' },
17
23
  // The last-mile carrier's label, put on while the parcel moves between Aramex's offices.
18
24
  'Label added to shipment, shipment now waiting to be handed to the last mile courier.': { status: 'in_transit', stage: 'in_transit' },
19
25
  // Collection or delivery is still to come.
@@ -31,6 +37,8 @@ const notes = new Set([
31
37
  'One of our Aramex delivery champion has contacted the customer and they have responded',
32
38
  'The customer contacted one of our Aramex delivery champion and contact was made successfully',
33
39
  'Customer ID received',
40
+ // The customer's delivery instructions, before the parcel left the origin office.
41
+ 'The customer has shared new delivery instructions and the status will be updated once shipment is out for delivery',
34
42
  'Shipment charges paid',
35
43
  'The value of the shipment has been successfully confirmed',
36
44
  'The status of the shipment\\delivery is currently being reviewed',
@@ -53,6 +53,30 @@
53
53
  "firstSeen": "2026-11-18",
54
54
  "note": "The origin office's receipt after the label: Aramex's first scan of the parcel."
55
55
  },
56
+ {
57
+ "wording": "The shipment has been received at our Aramex origin office and will continue its journey to the destination",
58
+ "language": "en",
59
+ "stage": "accepted",
60
+ "confirmedBy": "live",
61
+ "firstSeen": "2026-11-23",
62
+ "note": "The origin office's receipt, worded without the country."
63
+ },
64
+ {
65
+ "wording": "The shipment has left the Aramex origin office and is on its way to the destination office",
66
+ "language": "en",
67
+ "stage": "in_transit",
68
+ "confirmedBy": "live",
69
+ "firstSeen": "2026-11-23",
70
+ "note": "The departure from the origin office."
71
+ },
72
+ {
73
+ "wording": "We've attempted to deliver the shipment",
74
+ "language": "en",
75
+ "stage": "failed_attempt",
76
+ "confirmedBy": "live",
77
+ "firstSeen": "2026-11-23",
78
+ "note": "The attempt, worded without its reason, between two delivery rounds."
79
+ },
56
80
  {
57
81
  "wording": "Label added to shipment, shipment now waiting to be handed to the last mile courier.",
58
82
  "language": "en",
@@ -223,6 +223,8 @@ const RELAYED_STAGES = [
223
223
  // station, within the country, or at the destination with where ("目的地转运【…】", as Track123 relays it).
224
224
  [/^(?:干线中转|中转站转运中|邮件在该国内转运中|目的地转运(?:【[^【】]+】)?)$/u, 'in_transit'],
225
225
  [/^(?:承运商接收|抵达)$/u, 'in_transit'],
226
+ // The departure from the office of posting, after the acceptance, as Track123 relays it with the office in brackets.
227
+ [/^离开收寄点(?:【[^【】]+】)?$/u, 'in_transit'],
226
228
  [/^送交出口海关$/u, 'customs'],
227
229
  [/^出口海关\/放行$/u, 'in_transit'],
228
230
  [/^送交境外进口海关$/u, 'customs'],
@@ -194,6 +194,8 @@ const PATTERNS = [
194
194
  [/^拆板清关中[;;]/, 'customs'],
195
195
  // The destination's customs inspecting the parcel and holding it, in Chinese, and the hold in English between them.
196
196
  [/^目的国海关查验$/, 'customs'],
197
+ // Import clearance in progress ("parcel in clearance"), after the arrival in the destination country.
198
+ [/^包裹清关中$/, 'customs'],
197
199
  [/^海关扣关$/, 'customs'],
198
200
  [/^package has been detained\.?$/, 'customs'],
199
201
  [/^清关完成[,,]交仓中/, 'in_transit'],
@@ -118,6 +118,7 @@
118
118
  {"wording": "Arrive at Shenzhen Transit Center, Shanghai", "stage": "in_transit", "language": "en", "confirmedBy": "live", "firstSeen": "2026-11-10", "note": "A line's transit centre on the way to the airport; matched on its words, any city."},
119
119
  {"wording": "Customs clearance completed CN", "stage": "in_transit", "language": "en", "confirmedBy": "live", "firstSeen": "2026-11-10", "note": "China's export clearance, minutes after the hand-over to the airline."},
120
120
  {"wording": "Terminal, arrival terminal, mail in transit", "stage": "in_transit", "language": "en", "confirmedBy": "live", "firstSeen": "2026-11-10", "note": "The airport terminal holding the mail before the flight, repeated daily until it leaves."},
121
+ {"wording": "包裹清关中", "stage": "customs", "language": "zh", "confirmedBy": "live", "firstSeen": "2026-11-23", "note": "Import clearance in progress, after the arrival in the destination country (AD001)."},
121
122
  {"wording": "目的国海关查验", "stage": "customs", "language": "zh", "confirmedBy": "live", "firstSeen": "2026-11-16", "note": "The destination country's customs inspecting the parcel after import clearance."},
122
123
  {"code": "YC001", "wording": "Package has been detained", "stage": "customs", "language": "en", "confirmedBy": "live", "firstSeen": "2026-11-16", "note": "The hold the day after the destination customs' inspection; 海关扣关 names it in Chinese."},
123
124
  {"wording": "海关扣关", "stage": "customs", "language": "zh", "confirmedBy": "live", "firstSeen": "2026-11-16", "note": "Customs detained the parcel."},
@@ -20,6 +20,8 @@ const CODES = new Map([
20
20
  ['CXCCAP', MOVING],
21
21
  ['CXCCOE', MOVING],
22
22
  ['CXLHDP', MOVING],
23
+ // A note between the departure from the origin port and the arrival at the destination's: the flight.
24
+ ['1045', MOVING],
23
25
  ['CXLHAP', MOVING],
24
26
  ['CCL', { status: 'in_transit', stage: 'customs' }],
25
27
  // Clearance completed: the parcel moves on.
@@ -121,6 +121,15 @@
121
121
  "confirmedBy": "live",
122
122
  "firstSeen": "2026-11-01"
123
123
  },
124
+ {
125
+ "code": "1045",
126
+ "wording": "Your package is in transit. Please wait patiently.",
127
+ "language": "en",
128
+ "stage": "in_transit",
129
+ "confirmedBy": "live",
130
+ "firstSeen": "2026-11-23",
131
+ "note": "Between the departure from the origin port and the arrival at the destination's: the flight."
132
+ },
124
133
  {
125
134
  "code": "CXLHAP",
126
135
  "wording": "Arrive at destination port",
@@ -248,15 +248,19 @@ function domesticText(value) {
248
248
  }
249
249
  /**
250
250
  * The delivery estimate in the domestic reply's `eta`: a slot (`Specific`, start and end with
251
- * offsets) or a day (`WholeDay`). Other types go to `unread_estimates`. `minutesOverdue` is the
252
- * time since the slot's end when PostNL answers (34 at 14:09Z for a slot that ended at 13:35Z, the
253
- * driver still on the way), so it says nothing the slot does not; beside another type it is unread.
251
+ * offsets), a day (`WholeDay`) or days (`MultipleDaySpan`, from the first day's midnight to the
252
+ * last day's 23:59:59), read by their days as PostNL's calendar writes them. Other types go to
253
+ * `unread_estimates`. `minutesOverdue` is the time since the slot's end when PostNL answers (34 at
254
+ * 14:09Z for a slot that ended at 13:35Z, the driver still on the way), so it says nothing the slot
255
+ * does not; beside another type it is unread.
254
256
  */
255
257
  function domesticEstimate(collo) {
256
258
  const eta = record(collo.eta);
257
259
  const kind = text(eta.type).trim();
260
+ const day = (value) => text(value).trim().slice(0, 10);
258
261
  const estimate = kind === 'Specific' ? windowEstimate(eta.start, eta.end)
259
- : kind === 'WholeDay' ? windowEstimate(null, eta.start) : { expected_delivery: null };
262
+ : kind === 'WholeDay' ? windowEstimate(null, eta.start)
263
+ : kind === 'MultipleDaySpan' ? windowEstimate(day(eta.start), day(eta.end)) : { expected_delivery: null };
260
264
  return { estimate, unread: unreadEstimates({ eta: estimate.expected_delivery ? null : collo.eta,
261
265
  'eta.minutesOverdue': estimate.expected_delivery ? null : eta.minutesOverdue }) };
262
266
  }
@@ -75,5 +75,11 @@
75
75
  ]
76
76
  },
77
77
  "links": [],
78
- "detection": []
78
+ "detection": [
79
+ {
80
+ "id": "suhu-1",
81
+ "pattern": "^TGE\\d{13}SH$",
82
+ "confidence": "low"
83
+ }
84
+ ]
79
85
  }
@@ -12,6 +12,21 @@
12
12
  "confidence": "none"
13
13
  },
14
14
  "note": "Made-up number in the shape of a parcel the app tracked, which a universal provider reported from suhu supply chain and Suhu's tracker answered: three letters, thirteen digits and two letters."
15
+ },
16
+ {
17
+ "number": "TGE9999999999999SH",
18
+ "role": "shipment",
19
+ "evidence": "synthetic",
20
+ "derivedFrom": "donated_real",
21
+ "shapeConfirmed": "2026-11-23",
22
+ "expect": {
23
+ "carrier": "unknown",
24
+ "confidence": "low",
25
+ "candidates": [
26
+ "suhu"
27
+ ]
28
+ },
29
+ "note": "Made-up number in the shape of the parcel Suhu's tracker answered: TGE, thirteen digits and SH. Its serial sits far beyond the range in use."
15
30
  }
16
31
  ]
17
32
  }
@@ -60406,7 +60406,12 @@
60406
60406
  "trackingUrlTemplate": "https://www.suhusupplychain.com/",
60407
60407
  "trackingSearchUrl": "https://www.suhusupplychain.com/",
60408
60408
  "linkRules": [],
60409
- "detectionRules": []
60409
+ "detectionRules": [
60410
+ {
60411
+ "pattern": "^TGE\\d{13}SH$",
60412
+ "confidence": "low"
60413
+ }
60414
+ ]
60410
60415
  },
60411
60416
  "sumxpress": {
60412
60417
  "displayName": "Sumxpress",
@@ -60407,7 +60407,12 @@ export const CARRIER_CATALOG = {
60407
60407
  "trackingUrlTemplate": "https://www.suhusupplychain.com/",
60408
60408
  "trackingSearchUrl": "https://www.suhusupplychain.com/",
60409
60409
  "linkRules": [],
60410
- "detectionRules": []
60410
+ "detectionRules": [
60411
+ {
60412
+ "pattern": "^TGE\\d{13}SH$",
60413
+ "confidence": "low"
60414
+ }
60415
+ ]
60411
60416
  },
60412
60417
  "sumxpress": {
60413
60418
  "displayName": "Sumxpress",
@@ -75450,7 +75455,7 @@ export const DETECTION_RULE_IDS = {
75450
75455
  "stone3pl": ["stone3pl-s18"],
75451
75456
  "stop-start": [],
75452
75457
  "straightship": ["straightship-1", "straightship-ca", "straightship-2"],
75453
- "suhu": [],
75458
+ "suhu": ["suhu-1"],
75454
75459
  "sumxpress": [],
75455
75460
  "sundarban-courier": [],
75456
75461
  "suning-logistics": [],
@@ -2,7 +2,7 @@
2
2
  "openapi": "3.1.0",
3
3
  "info": {
4
4
  "title": "Universal Parcel Scraper",
5
- "version": "0.1314.1-main.8856"
5
+ "version": "0.1315.4"
6
6
  },
7
7
  "paths": {
8
8
  "/health": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "universal-parcel-scraper",
3
- "version": "0.1314.1-main.8856",
3
+ "version": "0.1315.4",
4
4
  "description": "Self-hosted parcel tracking: carrier detection, dedicated scrapers and optional universal providers.",
5
5
  "type": "module",
6
6
  "license": "PolyForm-Noncommercial-1.0.0",