universal-parcel-scraper 0.1287.1-main.8607 → 0.1289.0-main.8613

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.
Files changed (34) hide show
  1. package/README.md +3 -3
  2. package/data/catalog.json +33 -1
  3. package/data/coverage-summary.json +2 -2
  4. package/data/detection-golden.json +22 -0
  5. package/dist/browser/scraper.js +33 -2
  6. package/dist/carriers/gzyl/service.js +1 -1
  7. package/dist/carriers/jetspeed/adapter.d.ts +13 -0
  8. package/dist/carriers/jetspeed/adapter.js +47 -0
  9. package/dist/carriers/jetspeed/carrier.json +25 -6
  10. package/dist/carriers/jetspeed/numbers.json +23 -1
  11. package/dist/carriers/jetspeed/parser.d.ts +13 -0
  12. package/dist/carriers/jetspeed/parser.js +61 -0
  13. package/dist/carriers/jetspeed/status.d.ts +6 -0
  14. package/dist/carriers/jetspeed/status.js +29 -0
  15. package/dist/carriers/jetspeed/statuses.json +86 -1
  16. package/dist/carriers/qlgj/adapter.d.ts +6 -0
  17. package/dist/carriers/qlgj/adapter.js +13 -0
  18. package/dist/carriers/qlgj/carrier.json +102 -0
  19. package/dist/carriers/qlgj/numbers.json +17 -0
  20. package/dist/carriers/qlgj/parser.d.ts +4 -0
  21. package/dist/carriers/qlgj/parser.js +18 -0
  22. package/dist/carriers/qlgj/status.d.ts +7 -0
  23. package/dist/carriers/qlgj/status.js +12 -0
  24. package/dist/carriers/qlgj/statuses.json +53 -0
  25. package/dist/carriers/shouwu/statuses.json +1 -0
  26. package/dist/core/catalog/statusMaps.js +4 -2
  27. package/dist/data/catalog.json +33 -1
  28. package/dist/generated/catalog.d.ts +1 -1
  29. package/dist/generated/catalog.js +35 -1
  30. package/dist/generated/recognition.js +2 -0
  31. package/dist/generated/registry.js +6 -1
  32. package/dist/providers/shared/result.js +4 -0
  33. package/dist/server/openapi.json +1 -1
  34. package/package.json +1 -1
@@ -1,4 +1,89 @@
1
1
  {
2
2
  "carrier": "jetspeed",
3
- "entries": []
3
+ "entries": [
4
+ {
5
+ "wording": "Shipment entered the local delivery network.",
6
+ "stage": "in_transit",
7
+ "language": "en",
8
+ "confirmedBy": "live",
9
+ "firstSeen": "2026-11-22"
10
+ },
11
+ {
12
+ "wording": "Shipment arrived at the local warehouse; inbound processing is in progress.",
13
+ "stage": "in_transit",
14
+ "language": "en",
15
+ "confirmedBy": "live",
16
+ "firstSeen": "2026-11-22"
17
+ },
18
+ {
19
+ "wording": "Shipment transferred to the carrier.",
20
+ "stage": "in_transit",
21
+ "language": "en",
22
+ "confirmedBy": "live",
23
+ "firstSeen": "2026-11-22"
24
+ },
25
+ {
26
+ "wording": "Destination processing completed.",
27
+ "stage": "in_transit",
28
+ "language": "en",
29
+ "confirmedBy": "live",
30
+ "firstSeen": "2026-11-22"
31
+ },
32
+ {
33
+ "wording": "Arrival processing is in progress.",
34
+ "stage": "in_transit",
35
+ "language": "en",
36
+ "confirmedBy": "live",
37
+ "firstSeen": "2026-11-22"
38
+ },
39
+ {
40
+ "wording": "Shipment information has been received for destination processing. .",
41
+ "stage": "in_transit",
42
+ "language": "en",
43
+ "confirmedBy": "live",
44
+ "firstSeen": "2026-11-22"
45
+ },
46
+ {
47
+ "wording": "Shipment arrived at the FR destination processing facility.",
48
+ "stage": "in_transit",
49
+ "language": "en",
50
+ "confirmedBy": "live",
51
+ "firstSeen": "2026-11-22"
52
+ },
53
+ {
54
+ "wording": "Shipment arrived at FR Airport",
55
+ "stage": "in_transit",
56
+ "language": "en",
57
+ "confirmedBy": "live",
58
+ "firstSeen": "2026-11-22"
59
+ },
60
+ {
61
+ "wording": "Shipment departed the origin airport; international line-haul transit is in progress.",
62
+ "stage": "in_transit",
63
+ "language": "en",
64
+ "confirmedBy": "live",
65
+ "firstSeen": "2026-11-22"
66
+ },
67
+ {
68
+ "wording": "Shipment handed over to the air carrier at the departure airport.",
69
+ "stage": "in_transit",
70
+ "language": "en",
71
+ "confirmedBy": "live",
72
+ "firstSeen": "2026-11-22"
73
+ },
74
+ {
75
+ "wording": "Shipment arrived at the departure airport cargo facility.",
76
+ "stage": "in_transit",
77
+ "language": "en",
78
+ "confirmedBy": "live",
79
+ "firstSeen": "2026-11-22"
80
+ },
81
+ {
82
+ "wording": "Shipment is ready for transfer to the departure airport.",
83
+ "stage": "in_transit",
84
+ "language": "en",
85
+ "confirmedBy": "live",
86
+ "firstSeen": "2026-11-22"
87
+ }
88
+ ]
4
89
  }
@@ -0,0 +1,6 @@
1
+ import type { AdapterFactory } from '../../core/adapter/index.js';
2
+ import { HualeiTracker } from '../gzyl/hualei.js';
3
+ export declare class QlgjTracker extends HualeiTracker {
4
+ constructor(options?: ConstructorParameters<typeof HualeiTracker>[1]);
5
+ }
6
+ export declare const adapter: AdapterFactory;
@@ -0,0 +1,13 @@
1
+ import { HualeiTracker } from '../gzyl/hualei.js';
2
+ import { QLGJ } from './parser.js';
3
+ export class QlgjTracker extends HualeiTracker {
4
+ constructor(options = {}) { super(QLGJ, options); }
5
+ }
6
+ export const adapter = (environment) => {
7
+ const tracker = new QlgjTracker({ fetcher: environment.fetcher, recorder: environment.recorder, userAgent: environment.userAgent });
8
+ return {
9
+ id: 'qlgj', recordsSteps: true, steps: ['direct', 'retry'],
10
+ track: (input, context) => tracker.fetch(input.number, context),
11
+ recognize: (number, context) => tracker.recognize(number, context),
12
+ };
13
+ };
@@ -0,0 +1,102 @@
1
+ {
2
+ "id": "qlgj",
3
+ "displayName": "Qilin International",
4
+ "aliases": [
5
+ "QLGJ",
6
+ "Qi Lin Guo ji",
7
+ "琪林国际",
8
+ "琪林国际物流",
9
+ "广州市琪林国际物流有限公司",
10
+ "Qilin International Logistics"
11
+ ],
12
+ "region": {
13
+ "countries": [
14
+ "CN"
15
+ ]
16
+ },
17
+ "brand": {
18
+ "color": "#1F6BD6"
19
+ },
20
+ "selectable": true,
21
+ "timezone": "Asia/Shanghai",
22
+ "tracking": {
23
+ "mode": "automatic",
24
+ "adapter": "qlgj",
25
+ "steps": [
26
+ "direct",
27
+ "retry"
28
+ ],
29
+ "recognition": {
30
+ "rank": 32
31
+ }
32
+ },
33
+ "capabilities": [
34
+ "history",
35
+ "location",
36
+ "service_name",
37
+ "destination_country",
38
+ "canonical_tracking_number",
39
+ "delivery_partner",
40
+ "delivery_tracking_number"
41
+ ],
42
+ "portal": {
43
+ "canaryUrl": "https://t.17track.net/",
44
+ "shows": [
45
+ "status",
46
+ "history",
47
+ "location",
48
+ "service_name",
49
+ "destination_country",
50
+ "canonical_tracking_number",
51
+ "delivery_partner",
52
+ "delivery_tracking_number",
53
+ "parcel_count",
54
+ "weight",
55
+ "customer_reference",
56
+ "sender_name",
57
+ "recipient_name",
58
+ "recipient_address",
59
+ "postcodes",
60
+ "signatory",
61
+ "signature",
62
+ "proof_of_delivery",
63
+ "payment_details"
64
+ ],
65
+ "scraped": [
66
+ "status",
67
+ "history",
68
+ "location",
69
+ "service_name",
70
+ "destination_country",
71
+ "canonical_tracking_number",
72
+ "delivery_partner",
73
+ "delivery_tracking_number"
74
+ ],
75
+ "discarded": [
76
+ "parcel_count",
77
+ "weight",
78
+ "customer_reference",
79
+ "sender_name",
80
+ "recipient_name",
81
+ "recipient_address",
82
+ "postcodes",
83
+ "signatory",
84
+ "signature",
85
+ "proof_of_delivery",
86
+ "payment_details"
87
+ ],
88
+ "unavailable": [
89
+ "eta",
90
+ "delivered_at",
91
+ "offset_timestamps"
92
+ ]
93
+ },
94
+ "links": [],
95
+ "detection": [
96
+ {
97
+ "id": "qlgj-1",
98
+ "pattern": "^QL\\d{13}YQ$",
99
+ "confidence": "high"
100
+ }
101
+ ]
102
+ }
@@ -0,0 +1,17 @@
1
+ {
2
+ "carrier": "qlgj",
3
+ "records": [
4
+ {
5
+ "number": "QL0000000271828YQ",
6
+ "role": "shipment",
7
+ "evidence": "synthetic",
8
+ "derivedFrom": "donated_real",
9
+ "shapeConfirmed": "2026-11-22",
10
+ "expect": {
11
+ "carrier": "qlgj",
12
+ "confidence": "high"
13
+ },
14
+ "note": "Made-up number in the shape of parcels the app tracked, which universal providers filed under Qilin International and its tracker answered."
15
+ }
16
+ ]
17
+ }
@@ -0,0 +1,4 @@
1
+ import type { HualeiTenant } from '../gzyl/hualei.js';
2
+ export declare const PROVIDER = "Qilin International";
3
+ export declare const QLGJ_ORIGIN = "http://www.qlgj168.com:8082";
4
+ export declare const QLGJ: HualeiTenant;
@@ -0,0 +1,18 @@
1
+ import { qlgjEnglish, qlgjStage } from './status.js';
2
+ export const PROVIDER = 'Qilin International';
3
+ export const QLGJ_ORIGIN = 'http://www.qlgj168.com:8082';
4
+ const CHINESE = /[一-鿿]/;
5
+ // The places in China the tracker writes in Latin letters, spaced or not ("shen zhen", "shanghai").
6
+ const CHINA = /^(?:shen ?zhen|shang ?hai|guang ?zhou|cn|china)$/i;
7
+ /**
8
+ * Rows in China, placed there or nowhere, are on the platform's Beijing clock. A row placed
9
+ * abroad, such as the flight's arrival at its airport, keeps its wall clock: its zone is not stated.
10
+ */
11
+ function qlgjClock({ location }) {
12
+ const place = location.trim();
13
+ return !place || CHINESE.test(place) || CHINA.test(place) ? 'platform' : 'wall';
14
+ }
15
+ export const QLGJ = {
16
+ carrier: 'qlgj', provider: PROVIDER, origin: QLGJ_ORIGIN, stage: qlgjStage, english: qlgjEnglish,
17
+ ownNumber: /^QL\d{13}YQ$/, unlabelledPartners: ['dhl'], clock: qlgjClock,
18
+ };
@@ -0,0 +1,7 @@
1
+ import type { Stage } from '../../core/status/index.js';
2
+ import type { CarrierStatusMap } from '../../core/status/statusMap.js';
3
+ /** The stage Qilin's map gives a row, by its `normalizeStatusWording` wording. A row's kind code decides nothing. */
4
+ export declare function qlgjStage(_code: string | null, wording: string): Stage | undefined;
5
+ /** The English the adapter shows for a row the line words only in Chinese. */
6
+ export declare function qlgjEnglish(_code: string | null, wording: string): string | undefined;
7
+ export declare const statusMap: CarrierStatusMap;
@@ -0,0 +1,12 @@
1
+ import { statusWordings } from '../../core/status/english.js';
2
+ import statuses from './statuses.json' with { type: 'json' };
3
+ const WORDINGS = statusWordings(statuses.entries);
4
+ /** The stage Qilin's map gives a row, by its `normalizeStatusWording` wording. A row's kind code decides nothing. */
5
+ export function qlgjStage(_code, wording) {
6
+ return WORDINGS.stage(wording);
7
+ }
8
+ /** The English the adapter shows for a row the line words only in Chinese. */
9
+ export function qlgjEnglish(_code, wording) {
10
+ return WORDINGS.english(wording);
11
+ }
12
+ export const statusMap = { stage: qlgjStage, gaps: [] };
@@ -0,0 +1,53 @@
1
+ {
2
+ "carrier": "qlgj",
3
+ "entries": [
4
+ {
5
+ "wording": "Inbound in sorting center",
6
+ "language": "en",
7
+ "stage": "accepted",
8
+ "confirmedBy": "live",
9
+ "firstSeen": "2026-11-22",
10
+ "note": "The sorting centre's first scan of the parcel, in Shenzhen."
11
+ },
12
+ {
13
+ "wording": "SZX, START SITE TRANSPORT SHIPMENT",
14
+ "language": "en",
15
+ "stage": "in_transit",
16
+ "confirmedBy": "live",
17
+ "firstSeen": "2026-11-22",
18
+ "note": "The parcel leaves the Shenzhen site for the airport."
19
+ },
20
+ {
21
+ "wording": "exit customs clearance complete",
22
+ "language": "en",
23
+ "stage": "in_transit",
24
+ "confirmedBy": "live",
25
+ "firstSeen": "2026-11-22",
26
+ "note": "Export clearance in China."
27
+ },
28
+ {
29
+ "wording": "Wait for a flight",
30
+ "language": "en",
31
+ "stage": "in_transit",
32
+ "confirmedBy": "live",
33
+ "firstSeen": "2026-11-22"
34
+ },
35
+ {
36
+ "wording": "抵达航司已起飞",
37
+ "language": "zh",
38
+ "english": "Handed to the airline, flight departed",
39
+ "stage": "in_transit",
40
+ "confirmedBy": "live",
41
+ "firstSeen": "2026-11-22"
42
+ },
43
+ {
44
+ "wording": "航班已抵达",
45
+ "language": "zh",
46
+ "english": "Flight arrived",
47
+ "stage": "in_transit",
48
+ "confirmedBy": "live",
49
+ "firstSeen": "2026-11-22",
50
+ "note": "Placed at the destination airport (AMS)."
51
+ }
52
+ ]
53
+ }
@@ -1288,6 +1288,7 @@
1288
1288
  {"wording": "Arrive at the delivery location Picked up by Shipping Partner", "language": "en", "stage": "accepted", "confirmedBy": "live", "firstSeen": "2026-11-21", "note": "The partner collecting the parcel in China after the order data and before its operation centre: the first scan in its hands, though it names a delivery location."},
1289
1289
  {"wording": "Cargo leaving the operation center", "language": "en", "stage": "in_transit", "confirmedBy": "live", "firstSeen": "2026-11-21", "note": "Worded like \"Goods leaving the operation center\": the operation centre sending the parcel on towards its flight."},
1290
1290
  {"wording": "Flight departed, package in transit", "language": "en", "stage": "in_transit", "confirmedBy": "live", "firstSeen": "2026-11-21", "note": "The flight leaving with the parcel, after China's export clearance."},
1291
+ {"wording": "Processing at Origin Facility", "language": "en", "stage": "in_transit", "confirmedBy": "live", "firstSeen": "2026-11-22", "note": "On a line into the United States, two days after the destination's customs released the parcel: the last mile's first facility handling it, still on the way."},
1291
1292
  {"wording": "International flight has arrived", "language": "en", "stage": "in_transit", "confirmedBy": "live"},
1292
1293
  {"wording": "Parcel arrived at exchange office", "language": "en", "stage": "in_transit", "confirmedBy": "live"},
1293
1294
  {"wording": "Shipment picked up", "language": "en", "stage": "accepted", "confirmedBy": "live"},
@@ -142,6 +142,7 @@ import { statusMap as nepalPost } from '../../carriers/nepal-post/status.js';
142
142
  import { statusMap as wpGround } from '../../carriers/wp-ground/status.js';
143
143
  import { statusMap as logisticsSolution } from '../../carriers/logistics-solution/status.js';
144
144
  import { statusMap as qatarPost } from '../../carriers/qatar-post/status.js';
145
+ import { statusMap as qlgj } from '../../carriers/qlgj/status.js';
145
146
  import { statusMap as quickFort } from '../../carriers/quick-fort/status.js';
146
147
  import { statusMap as russianPost } from '../../carriers/russian-post/status.js';
147
148
  import { statusMap as suratKargo } from '../../carriers/surat-kargo/status.js';
@@ -483,6 +484,7 @@ import { statusMap as jerseyPost } from '../../carriers/jersey-post/status.js';
483
484
  import { statusMap as jetLogistic } from '../../carriers/jet-logistic/status.js';
484
485
  import { statusMap as jetlineCouriers } from '../../carriers/jetline-couriers/status.js';
485
486
  import { statusMap as jetizz } from '../../carriers/jetizz/status.js';
487
+ import { statusMap as jetspeed } from '../../carriers/jetspeed/status.js';
486
488
  import { statusMap as jhgj } from '../../carriers/jhgj/status.js';
487
489
  import { statusMap as jiayang } from '../../carriers/jiayang/status.js';
488
490
  import { statusMap as jifan } from '../../carriers/jifan/status.js';
@@ -1106,7 +1108,7 @@ export const STATUS_MAPS = {
1106
1108
  'shipglobal-us': shipglobalUs,
1107
1109
  'royale-international': royaleInternational,
1108
1110
  'direct-freight-express': directFreightExpress, 'disu-logistics': disuLogistics,
1109
- 'qatar-post': qatarPost, 'nepal-post': nepalPost, 'wp-ground': wpGround, 'logistics-solution': logisticsSolution, 'quick-fort': quickFort, pasarex, 'russian-post': russianPost, 'surat-kargo': suratKargo,
1111
+ 'qatar-post': qatarPost, qlgj, 'nepal-post': nepalPost, 'wp-ground': wpGround, 'logistics-solution': logisticsSolution, 'quick-fort': quickFort, pasarex, 'russian-post': russianPost, 'surat-kargo': suratKargo,
1110
1112
  '17feia': seventeenFeia, '2go': twoGo, '4-72': fourSeventyTwo, '4sides': fourSides, '5post': fivePost, '99minutos': ninetynineMinutos,
1111
1113
  'aaa-cooper': aaaCooper, 'a-duie-pyle': aDuiePyle, 'a-tu-hora-express': aTuHoraExpress, 'a1-post': a1Post, 'ab-courier': abCourier, 'abf-freight': abfFreight, 'aci-express-kr': aciExpressKr,
1112
1114
  'acs-courier': acsCourier, 'aex-paraguay': aexParaguay, 'airpak-express': airpakExpress, 'ait-worldwide': aitWorldwide, ajex,
@@ -1146,7 +1148,7 @@ export const STATUS_MAPS = {
1146
1148
  'icc-worldwide': iccWorldwide, 'ics-courier': icsCourier, 'ids-logistik': idsLogistik, 'ilyang-logis': ilyangLogis, imile,
1147
1149
  'indah-logistik': indahLogistik, 'india-post': indiaPost, inpost, instabox, 'integral-pack': integralPack, 'intel-valley': intelValley, intelcom, 'internet-express': internetExpress, interrapidisimo,
1148
1150
  'intex-paketdienst': intexPaketdienst, 'israel-post': israelPost, 'j-and-t': jAndT, 'j-and-t-au': jAndTAu, 'j-and-t-de': jAndTDe, 'j-and-t-uk': jAndTUk, 'j-and-t-cargo': jntCargo,
1149
- 'j-and-t-middle-east': jAndTMiddleEast, 'j-and-t-mx': jAndTMx, 'j-and-t-cn': jAndTCn, jadlog, janio, 'japan-post': japanPost, jcex, jch, 'jd-logistics': jdLogistics, jeebly, 'jersey-post': jerseyPost, 'jet-logistic': jetLogistic, 'jetline-couriers': jetlineCouriers, jetizz,
1151
+ 'j-and-t-middle-east': jAndTMiddleEast, 'j-and-t-mx': jAndTMx, 'j-and-t-cn': jAndTCn, jadlog, janio, 'japan-post': japanPost, jcex, jch, 'jd-logistics': jdLogistics, jeebly, 'jersey-post': jerseyPost, 'jet-logistic': jetLogistic, 'jetline-couriers': jetlineCouriers, jetizz, jetspeed,
1150
1152
  jhgj, jiayang, jifan, 'jingguang-logistics': jingguangLogistics, jitsu, jne, 'jordan-post': jordanPost, jrt, 'js-express': jsExpress, jumppoint, 'jumppoint-international': jumppointInternational, 'flash-courier': flashCourier, kazpost, 'kec-ecommerce': kecEcommerce, kex, 'kex-express-hk': kexExpressHk,
1151
1153
  'kit-tk': kitTk, 'komon-express': komonExpress, 'korea-post': koreaPost, 'kolay-gelsin': kolayGelsin, 'kuayuan-express': kuayuanExpress, 'kuehne-nagel': kuehneNagel, 'kun-express': kunExpress, kunyoung, kyoungdong, 'kyrgyz-post': kyrgyzPost, 'l-post': lPost, 'la-poste': laPoste,
1152
1154
  'la-poste-burkina-faso': laPosteBurkinaFaso, 'la-poste-senegal': laPosteSenegal, 'laar-courier': laarCourier, labaih,
@@ -36727,7 +36727,9 @@
36727
36727
  "timezone": "Asia/Shanghai",
36728
36728
  "tracking": {
36729
36729
  "mode": "automatic",
36730
- "adapter": "universal"
36730
+ "adapter": "jetspeed",
36731
+ "recognitionRank": 34,
36732
+ "localClocks": true
36731
36733
  },
36732
36734
  "canaryUrl": "https://www.jetspeed-express.com/",
36733
36735
  "trackingUrlTemplate": "https://www.jetspeed-express.com/search_kuai_di/search/orderid/{trackingNumber}",
@@ -52290,6 +52292,36 @@
52290
52292
  ],
52291
52293
  "detectionRules": []
52292
52294
  },
52295
+ "qlgj": {
52296
+ "displayName": "Qilin International",
52297
+ "color": "#1F6BD6",
52298
+ "aliases": [
52299
+ "QLGJ",
52300
+ "Qi Lin Guo ji",
52301
+ "琪林国际",
52302
+ "琪林国际物流",
52303
+ "广州市琪林国际物流有限公司",
52304
+ "Qilin International Logistics"
52305
+ ],
52306
+ "countries": [
52307
+ "CN"
52308
+ ],
52309
+ "selectable": true,
52310
+ "timezone": "Asia/Shanghai",
52311
+ "tracking": {
52312
+ "mode": "automatic",
52313
+ "adapter": "qlgj",
52314
+ "recognitionRank": 32
52315
+ },
52316
+ "canaryUrl": "https://t.17track.net/",
52317
+ "linkRules": [],
52318
+ "detectionRules": [
52319
+ {
52320
+ "pattern": "^QL\\d{13}YQ$",
52321
+ "confidence": "high"
52322
+ }
52323
+ ]
52324
+ },
52293
52325
  "qls-quince": {
52294
52326
  "displayName": "QLS",
52295
52327
  "color": "#0a1e3d",