exnet-routing 1.2.26 → 1.2.28
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/dist/models/_chat.d.ts +5 -0
- package/dist/models/_chat_message.d.ts +7 -0
- package/dist/models/_facture_line.d.ts +5 -0
- package/dist/models/_historique_action.d.ts +5 -0
- package/dist/models/_information_importante.d.ts +5 -0
- package/dist/models/_livraison_chauffeur.d.ts +5 -0
- package/dist/models/_public_tracking.d.ts +152 -0
- package/dist/models/_public_tracking.js +35 -0
- package/dist/models/_ramassage_chauffeur.d.ts +5 -0
- package/dist/models/_shipping.d.ts +6 -0
- package/dist/models/_shipping.js +2 -0
- package/dist/models/_shipping_affected.d.ts +5 -0
- package/dist/models/_shipping_classification.d.ts +5 -0
- package/dist/models/_shipping_comment.d.ts +5 -0
- package/dist/models/_shipping_course.d.ts +5 -0
- package/dist/models/_shipping_detail.d.ts +5 -0
- package/dist/models/_shipping_detail_info_supplementaire.d.ts +5 -0
- package/dist/models/_shipping_document.d.ts +5 -0
- package/dist/models/_shipping_emballage.d.ts +5 -0
- package/dist/models/_shipping_manifest.d.ts +5 -0
- package/dist/models/_shipping_package.d.ts +5 -0
- package/dist/models/_shipping_pod.d.ts +5 -0
- package/dist/models/_shipping_proforma.d.ts +5 -0
- package/dist/models/_shipping_proforma_line.d.ts +7 -0
- package/dist/models/_shipping_tracking.d.ts +5 -0
- package/dist/models/_user.js +8 -2
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/dist/routes/admin.d.ts +58 -0
- package/dist/routes/ops.d.ts +226 -0
- package/dist/routes/public.d.ts +302 -0
- package/dist/routes/public.js +10 -0
- package/dist/routes/user.d.ts +73 -0
- package/package.json +1 -1
package/dist/models/_chat.d.ts
CHANGED
|
@@ -33,6 +33,7 @@ export declare const ChatSchema: z.ZodObject<{
|
|
|
33
33
|
pickupTime: z.ZodNullable<z.ZodString>;
|
|
34
34
|
deliveryTime: z.ZodNullable<z.ZodString>;
|
|
35
35
|
ref: z.ZodNullable<z.ZodNumber>;
|
|
36
|
+
trackingNumber: z.ZodNullable<z.ZodString>;
|
|
36
37
|
classifications: z.ZodNullable<z.ZodString>;
|
|
37
38
|
userName: z.ZodNullable<z.ZodString>;
|
|
38
39
|
transportType: z.ZodNullable<z.ZodString>;
|
|
@@ -90,6 +91,7 @@ export declare const ChatSchema: z.ZodObject<{
|
|
|
90
91
|
pickupTime: string | null;
|
|
91
92
|
deliveryTime: string | null;
|
|
92
93
|
ref: number | null;
|
|
94
|
+
trackingNumber: string | null;
|
|
93
95
|
classifications: string | null;
|
|
94
96
|
userName: string | null;
|
|
95
97
|
transportType: string | null;
|
|
@@ -139,6 +141,7 @@ export declare const ChatSchema: z.ZodObject<{
|
|
|
139
141
|
pickupTime: string | null;
|
|
140
142
|
deliveryTime: string | null;
|
|
141
143
|
ref: number | null;
|
|
144
|
+
trackingNumber: string | null;
|
|
142
145
|
classifications: string | null;
|
|
143
146
|
userName: string | null;
|
|
144
147
|
transportType: string | null;
|
|
@@ -452,6 +455,7 @@ export declare const ChatSchema: z.ZodObject<{
|
|
|
452
455
|
pickupTime: string | null;
|
|
453
456
|
deliveryTime: string | null;
|
|
454
457
|
ref: number | null;
|
|
458
|
+
trackingNumber: string | null;
|
|
455
459
|
classifications: string | null;
|
|
456
460
|
userName: string | null;
|
|
457
461
|
transportType: string | null;
|
|
@@ -575,6 +579,7 @@ export declare const ChatSchema: z.ZodObject<{
|
|
|
575
579
|
pickupTime: string | null;
|
|
576
580
|
deliveryTime: string | null;
|
|
577
581
|
ref: number | null;
|
|
582
|
+
trackingNumber: string | null;
|
|
578
583
|
classifications: string | null;
|
|
579
584
|
userName: string | null;
|
|
580
585
|
transportType: string | null;
|
|
@@ -36,6 +36,7 @@ export declare const ChatMessageSchema: z.ZodObject<{
|
|
|
36
36
|
pickupTime: z.ZodNullable<z.ZodString>;
|
|
37
37
|
deliveryTime: z.ZodNullable<z.ZodString>;
|
|
38
38
|
ref: z.ZodNullable<z.ZodNumber>;
|
|
39
|
+
trackingNumber: z.ZodNullable<z.ZodString>;
|
|
39
40
|
classifications: z.ZodNullable<z.ZodString>;
|
|
40
41
|
userName: z.ZodNullable<z.ZodString>;
|
|
41
42
|
transportType: z.ZodNullable<z.ZodString>;
|
|
@@ -93,6 +94,7 @@ export declare const ChatMessageSchema: z.ZodObject<{
|
|
|
93
94
|
pickupTime: string | null;
|
|
94
95
|
deliveryTime: string | null;
|
|
95
96
|
ref: number | null;
|
|
97
|
+
trackingNumber: string | null;
|
|
96
98
|
classifications: string | null;
|
|
97
99
|
userName: string | null;
|
|
98
100
|
transportType: string | null;
|
|
@@ -142,6 +144,7 @@ export declare const ChatMessageSchema: z.ZodObject<{
|
|
|
142
144
|
pickupTime: string | null;
|
|
143
145
|
deliveryTime: string | null;
|
|
144
146
|
ref: number | null;
|
|
147
|
+
trackingNumber: string | null;
|
|
145
148
|
classifications: string | null;
|
|
146
149
|
userName: string | null;
|
|
147
150
|
transportType: string | null;
|
|
@@ -455,6 +458,7 @@ export declare const ChatMessageSchema: z.ZodObject<{
|
|
|
455
458
|
pickupTime: string | null;
|
|
456
459
|
deliveryTime: string | null;
|
|
457
460
|
ref: number | null;
|
|
461
|
+
trackingNumber: string | null;
|
|
458
462
|
classifications: string | null;
|
|
459
463
|
userName: string | null;
|
|
460
464
|
transportType: string | null;
|
|
@@ -578,6 +582,7 @@ export declare const ChatMessageSchema: z.ZodObject<{
|
|
|
578
582
|
pickupTime: string | null;
|
|
579
583
|
deliveryTime: string | null;
|
|
580
584
|
ref: number | null;
|
|
585
|
+
trackingNumber: string | null;
|
|
581
586
|
classifications: string | null;
|
|
582
587
|
userName: string | null;
|
|
583
588
|
transportType: string | null;
|
|
@@ -1693,6 +1698,7 @@ export declare const ChatMessageSchema: z.ZodObject<{
|
|
|
1693
1698
|
pickupTime: string | null;
|
|
1694
1699
|
deliveryTime: string | null;
|
|
1695
1700
|
ref: number | null;
|
|
1701
|
+
trackingNumber: string | null;
|
|
1696
1702
|
classifications: string | null;
|
|
1697
1703
|
userName: string | null;
|
|
1698
1704
|
transportType: string | null;
|
|
@@ -2007,6 +2013,7 @@ export declare const ChatMessageSchema: z.ZodObject<{
|
|
|
2007
2013
|
pickupTime: string | null;
|
|
2008
2014
|
deliveryTime: string | null;
|
|
2009
2015
|
ref: number | null;
|
|
2016
|
+
trackingNumber: string | null;
|
|
2010
2017
|
classifications: string | null;
|
|
2011
2018
|
userName: string | null;
|
|
2012
2019
|
transportType: string | null;
|
|
@@ -988,6 +988,7 @@ export declare const FactureLineSchema: z.ZodObject<{
|
|
|
988
988
|
pickupTime: z.ZodNullable<z.ZodString>;
|
|
989
989
|
deliveryTime: z.ZodNullable<z.ZodString>;
|
|
990
990
|
ref: z.ZodNullable<z.ZodNumber>;
|
|
991
|
+
trackingNumber: z.ZodNullable<z.ZodString>;
|
|
991
992
|
classifications: z.ZodNullable<z.ZodString>;
|
|
992
993
|
userName: z.ZodNullable<z.ZodString>;
|
|
993
994
|
transportType: z.ZodNullable<z.ZodString>;
|
|
@@ -1045,6 +1046,7 @@ export declare const FactureLineSchema: z.ZodObject<{
|
|
|
1045
1046
|
pickupTime: string | null;
|
|
1046
1047
|
deliveryTime: string | null;
|
|
1047
1048
|
ref: number | null;
|
|
1049
|
+
trackingNumber: string | null;
|
|
1048
1050
|
classifications: string | null;
|
|
1049
1051
|
userName: string | null;
|
|
1050
1052
|
transportType: string | null;
|
|
@@ -1094,6 +1096,7 @@ export declare const FactureLineSchema: z.ZodObject<{
|
|
|
1094
1096
|
pickupTime: string | null;
|
|
1095
1097
|
deliveryTime: string | null;
|
|
1096
1098
|
ref: number | null;
|
|
1099
|
+
trackingNumber: string | null;
|
|
1097
1100
|
classifications: string | null;
|
|
1098
1101
|
userName: string | null;
|
|
1099
1102
|
transportType: string | null;
|
|
@@ -1249,6 +1252,7 @@ export declare const FactureLineSchema: z.ZodObject<{
|
|
|
1249
1252
|
pickupTime: string | null;
|
|
1250
1253
|
deliveryTime: string | null;
|
|
1251
1254
|
ref: number | null;
|
|
1255
|
+
trackingNumber: string | null;
|
|
1252
1256
|
classifications: string | null;
|
|
1253
1257
|
userName: string | null;
|
|
1254
1258
|
transportType: string | null;
|
|
@@ -1521,6 +1525,7 @@ export declare const FactureLineSchema: z.ZodObject<{
|
|
|
1521
1525
|
pickupTime: string | null;
|
|
1522
1526
|
deliveryTime: string | null;
|
|
1523
1527
|
ref: number | null;
|
|
1528
|
+
trackingNumber: string | null;
|
|
1524
1529
|
classifications: string | null;
|
|
1525
1530
|
userName: string | null;
|
|
1526
1531
|
transportType: string | null;
|
|
@@ -825,6 +825,7 @@ export declare const HistoriqueActionSchema: z.ZodObject<{
|
|
|
825
825
|
pickupTime: z.ZodNullable<z.ZodString>;
|
|
826
826
|
deliveryTime: z.ZodNullable<z.ZodString>;
|
|
827
827
|
ref: z.ZodNullable<z.ZodNumber>;
|
|
828
|
+
trackingNumber: z.ZodNullable<z.ZodString>;
|
|
828
829
|
classifications: z.ZodNullable<z.ZodString>;
|
|
829
830
|
userName: z.ZodNullable<z.ZodString>;
|
|
830
831
|
transportType: z.ZodNullable<z.ZodString>;
|
|
@@ -882,6 +883,7 @@ export declare const HistoriqueActionSchema: z.ZodObject<{
|
|
|
882
883
|
pickupTime: string | null;
|
|
883
884
|
deliveryTime: string | null;
|
|
884
885
|
ref: number | null;
|
|
886
|
+
trackingNumber: string | null;
|
|
885
887
|
classifications: string | null;
|
|
886
888
|
userName: string | null;
|
|
887
889
|
transportType: string | null;
|
|
@@ -931,6 +933,7 @@ export declare const HistoriqueActionSchema: z.ZodObject<{
|
|
|
931
933
|
pickupTime: string | null;
|
|
932
934
|
deliveryTime: string | null;
|
|
933
935
|
ref: number | null;
|
|
936
|
+
trackingNumber: string | null;
|
|
934
937
|
classifications: string | null;
|
|
935
938
|
userName: string | null;
|
|
936
939
|
transportType: string | null;
|
|
@@ -1171,6 +1174,7 @@ export declare const HistoriqueActionSchema: z.ZodObject<{
|
|
|
1171
1174
|
pickupTime: string | null;
|
|
1172
1175
|
deliveryTime: string | null;
|
|
1173
1176
|
ref: number | null;
|
|
1177
|
+
trackingNumber: string | null;
|
|
1174
1178
|
classifications: string | null;
|
|
1175
1179
|
userName: string | null;
|
|
1176
1180
|
transportType: string | null;
|
|
@@ -1411,6 +1415,7 @@ export declare const HistoriqueActionSchema: z.ZodObject<{
|
|
|
1411
1415
|
pickupTime: string | null;
|
|
1412
1416
|
deliveryTime: string | null;
|
|
1413
1417
|
ref: number | null;
|
|
1418
|
+
trackingNumber: string | null;
|
|
1414
1419
|
classifications: string | null;
|
|
1415
1420
|
userName: string | null;
|
|
1416
1421
|
transportType: string | null;
|
|
@@ -822,6 +822,7 @@ export declare const InformationImportanteSchema: z.ZodObject<{
|
|
|
822
822
|
pickupTime: z.ZodNullable<z.ZodString>;
|
|
823
823
|
deliveryTime: z.ZodNullable<z.ZodString>;
|
|
824
824
|
ref: z.ZodNullable<z.ZodNumber>;
|
|
825
|
+
trackingNumber: z.ZodNullable<z.ZodString>;
|
|
825
826
|
classifications: z.ZodNullable<z.ZodString>;
|
|
826
827
|
userName: z.ZodNullable<z.ZodString>;
|
|
827
828
|
transportType: z.ZodNullable<z.ZodString>;
|
|
@@ -879,6 +880,7 @@ export declare const InformationImportanteSchema: z.ZodObject<{
|
|
|
879
880
|
pickupTime: string | null;
|
|
880
881
|
deliveryTime: string | null;
|
|
881
882
|
ref: number | null;
|
|
883
|
+
trackingNumber: string | null;
|
|
882
884
|
classifications: string | null;
|
|
883
885
|
userName: string | null;
|
|
884
886
|
transportType: string | null;
|
|
@@ -928,6 +930,7 @@ export declare const InformationImportanteSchema: z.ZodObject<{
|
|
|
928
930
|
pickupTime: string | null;
|
|
929
931
|
deliveryTime: string | null;
|
|
930
932
|
ref: number | null;
|
|
933
|
+
trackingNumber: string | null;
|
|
931
934
|
classifications: string | null;
|
|
932
935
|
userName: string | null;
|
|
933
936
|
transportType: string | null;
|
|
@@ -1166,6 +1169,7 @@ export declare const InformationImportanteSchema: z.ZodObject<{
|
|
|
1166
1169
|
pickupTime: string | null;
|
|
1167
1170
|
deliveryTime: string | null;
|
|
1168
1171
|
ref: number | null;
|
|
1172
|
+
trackingNumber: string | null;
|
|
1169
1173
|
classifications: string | null;
|
|
1170
1174
|
userName: string | null;
|
|
1171
1175
|
transportType: string | null;
|
|
@@ -1404,6 +1408,7 @@ export declare const InformationImportanteSchema: z.ZodObject<{
|
|
|
1404
1408
|
pickupTime: string | null;
|
|
1405
1409
|
deliveryTime: string | null;
|
|
1406
1410
|
ref: number | null;
|
|
1411
|
+
trackingNumber: string | null;
|
|
1407
1412
|
classifications: string | null;
|
|
1408
1413
|
userName: string | null;
|
|
1409
1414
|
transportType: string | null;
|
|
@@ -822,6 +822,7 @@ export declare const LivraisonChauffeurSchema: z.ZodObject<{
|
|
|
822
822
|
pickupTime: z.ZodNullable<z.ZodString>;
|
|
823
823
|
deliveryTime: z.ZodNullable<z.ZodString>;
|
|
824
824
|
ref: z.ZodNullable<z.ZodNumber>;
|
|
825
|
+
trackingNumber: z.ZodNullable<z.ZodString>;
|
|
825
826
|
classifications: z.ZodNullable<z.ZodString>;
|
|
826
827
|
userName: z.ZodNullable<z.ZodString>;
|
|
827
828
|
transportType: z.ZodNullable<z.ZodString>;
|
|
@@ -879,6 +880,7 @@ export declare const LivraisonChauffeurSchema: z.ZodObject<{
|
|
|
879
880
|
pickupTime: string | null;
|
|
880
881
|
deliveryTime: string | null;
|
|
881
882
|
ref: number | null;
|
|
883
|
+
trackingNumber: string | null;
|
|
882
884
|
classifications: string | null;
|
|
883
885
|
userName: string | null;
|
|
884
886
|
transportType: string | null;
|
|
@@ -928,6 +930,7 @@ export declare const LivraisonChauffeurSchema: z.ZodObject<{
|
|
|
928
930
|
pickupTime: string | null;
|
|
929
931
|
deliveryTime: string | null;
|
|
930
932
|
ref: number | null;
|
|
933
|
+
trackingNumber: string | null;
|
|
931
934
|
classifications: string | null;
|
|
932
935
|
userName: string | null;
|
|
933
936
|
transportType: string | null;
|
|
@@ -1166,6 +1169,7 @@ export declare const LivraisonChauffeurSchema: z.ZodObject<{
|
|
|
1166
1169
|
pickupTime: string | null;
|
|
1167
1170
|
deliveryTime: string | null;
|
|
1168
1171
|
ref: number | null;
|
|
1172
|
+
trackingNumber: string | null;
|
|
1169
1173
|
classifications: string | null;
|
|
1170
1174
|
userName: string | null;
|
|
1171
1175
|
transportType: string | null;
|
|
@@ -1404,6 +1408,7 @@ export declare const LivraisonChauffeurSchema: z.ZodObject<{
|
|
|
1404
1408
|
pickupTime: string | null;
|
|
1405
1409
|
deliveryTime: string | null;
|
|
1406
1410
|
ref: number | null;
|
|
1411
|
+
trackingNumber: string | null;
|
|
1407
1412
|
classifications: string | null;
|
|
1408
1413
|
userName: string | null;
|
|
1409
1414
|
transportType: string | null;
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const PublicTrackingItemSchema: z.ZodObject<{
|
|
3
|
+
date: z.ZodString;
|
|
4
|
+
time: z.ZodString;
|
|
5
|
+
details: z.ZodString;
|
|
6
|
+
location: z.ZodNullable<z.ZodString>;
|
|
7
|
+
status: z.ZodNullable<z.ZodString>;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
status: string | null;
|
|
10
|
+
date: string;
|
|
11
|
+
details: string;
|
|
12
|
+
location: string | null;
|
|
13
|
+
time: string;
|
|
14
|
+
}, {
|
|
15
|
+
status: string | null;
|
|
16
|
+
date: string;
|
|
17
|
+
details: string;
|
|
18
|
+
location: string | null;
|
|
19
|
+
time: string;
|
|
20
|
+
}>;
|
|
21
|
+
export declare const PublicLocationSchema: z.ZodObject<{
|
|
22
|
+
city: z.ZodNullable<z.ZodString>;
|
|
23
|
+
country: z.ZodNullable<z.ZodString>;
|
|
24
|
+
postalCode: z.ZodNullable<z.ZodString>;
|
|
25
|
+
}, "strip", z.ZodTypeAny, {
|
|
26
|
+
postalCode: string | null;
|
|
27
|
+
city: string | null;
|
|
28
|
+
country: string | null;
|
|
29
|
+
}, {
|
|
30
|
+
postalCode: string | null;
|
|
31
|
+
city: string | null;
|
|
32
|
+
country: string | null;
|
|
33
|
+
}>;
|
|
34
|
+
export declare const PublicTrackingResponseSchema: z.ZodObject<{
|
|
35
|
+
trackingNumber: z.ZodString;
|
|
36
|
+
customerRef: z.ZodNullable<z.ZodString>;
|
|
37
|
+
status: z.ZodEnum<["pending", "in_transit", "delivered"]>;
|
|
38
|
+
category: z.ZodString;
|
|
39
|
+
typeExpedition: z.ZodString;
|
|
40
|
+
pickupDate: z.ZodNullable<z.ZodString>;
|
|
41
|
+
deliveryDate: z.ZodNullable<z.ZodString>;
|
|
42
|
+
pickupTime: z.ZodNullable<z.ZodString>;
|
|
43
|
+
deliveryTime: z.ZodNullable<z.ZodString>;
|
|
44
|
+
expeditor: z.ZodNullable<z.ZodObject<{
|
|
45
|
+
city: z.ZodNullable<z.ZodString>;
|
|
46
|
+
country: z.ZodNullable<z.ZodString>;
|
|
47
|
+
postalCode: z.ZodNullable<z.ZodString>;
|
|
48
|
+
}, "strip", z.ZodTypeAny, {
|
|
49
|
+
postalCode: string | null;
|
|
50
|
+
city: string | null;
|
|
51
|
+
country: string | null;
|
|
52
|
+
}, {
|
|
53
|
+
postalCode: string | null;
|
|
54
|
+
city: string | null;
|
|
55
|
+
country: string | null;
|
|
56
|
+
}>>;
|
|
57
|
+
receiver: z.ZodNullable<z.ZodObject<{
|
|
58
|
+
city: z.ZodNullable<z.ZodString>;
|
|
59
|
+
country: z.ZodNullable<z.ZodString>;
|
|
60
|
+
postalCode: z.ZodNullable<z.ZodString>;
|
|
61
|
+
}, "strip", z.ZodTypeAny, {
|
|
62
|
+
postalCode: string | null;
|
|
63
|
+
city: string | null;
|
|
64
|
+
country: string | null;
|
|
65
|
+
}, {
|
|
66
|
+
postalCode: string | null;
|
|
67
|
+
city: string | null;
|
|
68
|
+
country: string | null;
|
|
69
|
+
}>>;
|
|
70
|
+
trackings: z.ZodArray<z.ZodObject<{
|
|
71
|
+
date: z.ZodString;
|
|
72
|
+
time: z.ZodString;
|
|
73
|
+
details: z.ZodString;
|
|
74
|
+
location: z.ZodNullable<z.ZodString>;
|
|
75
|
+
status: z.ZodNullable<z.ZodString>;
|
|
76
|
+
}, "strip", z.ZodTypeAny, {
|
|
77
|
+
status: string | null;
|
|
78
|
+
date: string;
|
|
79
|
+
details: string;
|
|
80
|
+
location: string | null;
|
|
81
|
+
time: string;
|
|
82
|
+
}, {
|
|
83
|
+
status: string | null;
|
|
84
|
+
date: string;
|
|
85
|
+
details: string;
|
|
86
|
+
location: string | null;
|
|
87
|
+
time: string;
|
|
88
|
+
}>, "many">;
|
|
89
|
+
hasDeliveryProof: z.ZodBoolean;
|
|
90
|
+
deliveredAt: z.ZodNullable<z.ZodString>;
|
|
91
|
+
}, "strip", z.ZodTypeAny, {
|
|
92
|
+
status: "delivered" | "pending" | "in_transit";
|
|
93
|
+
customerRef: string | null;
|
|
94
|
+
pickupDate: string | null;
|
|
95
|
+
deliveryDate: string | null;
|
|
96
|
+
pickupTime: string | null;
|
|
97
|
+
deliveryTime: string | null;
|
|
98
|
+
trackingNumber: string;
|
|
99
|
+
category: string;
|
|
100
|
+
typeExpedition: string;
|
|
101
|
+
expeditor: {
|
|
102
|
+
postalCode: string | null;
|
|
103
|
+
city: string | null;
|
|
104
|
+
country: string | null;
|
|
105
|
+
} | null;
|
|
106
|
+
receiver: {
|
|
107
|
+
postalCode: string | null;
|
|
108
|
+
city: string | null;
|
|
109
|
+
country: string | null;
|
|
110
|
+
} | null;
|
|
111
|
+
trackings: {
|
|
112
|
+
status: string | null;
|
|
113
|
+
date: string;
|
|
114
|
+
details: string;
|
|
115
|
+
location: string | null;
|
|
116
|
+
time: string;
|
|
117
|
+
}[];
|
|
118
|
+
hasDeliveryProof: boolean;
|
|
119
|
+
deliveredAt: string | null;
|
|
120
|
+
}, {
|
|
121
|
+
status: "delivered" | "pending" | "in_transit";
|
|
122
|
+
customerRef: string | null;
|
|
123
|
+
pickupDate: string | null;
|
|
124
|
+
deliveryDate: string | null;
|
|
125
|
+
pickupTime: string | null;
|
|
126
|
+
deliveryTime: string | null;
|
|
127
|
+
trackingNumber: string;
|
|
128
|
+
category: string;
|
|
129
|
+
typeExpedition: string;
|
|
130
|
+
expeditor: {
|
|
131
|
+
postalCode: string | null;
|
|
132
|
+
city: string | null;
|
|
133
|
+
country: string | null;
|
|
134
|
+
} | null;
|
|
135
|
+
receiver: {
|
|
136
|
+
postalCode: string | null;
|
|
137
|
+
city: string | null;
|
|
138
|
+
country: string | null;
|
|
139
|
+
} | null;
|
|
140
|
+
trackings: {
|
|
141
|
+
status: string | null;
|
|
142
|
+
date: string;
|
|
143
|
+
details: string;
|
|
144
|
+
location: string | null;
|
|
145
|
+
time: string;
|
|
146
|
+
}[];
|
|
147
|
+
hasDeliveryProof: boolean;
|
|
148
|
+
deliveredAt: string | null;
|
|
149
|
+
}>;
|
|
150
|
+
export type IPublicTrackingItem = z.infer<typeof PublicTrackingItemSchema>;
|
|
151
|
+
export type IPublicLocation = z.infer<typeof PublicLocationSchema>;
|
|
152
|
+
export type IPublicTrackingResponse = z.infer<typeof PublicTrackingResponseSchema>;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PublicTrackingResponseSchema = exports.PublicLocationSchema = exports.PublicTrackingItemSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
// Schema for public tracking item (visible trackings only)
|
|
6
|
+
exports.PublicTrackingItemSchema = zod_1.z.object({
|
|
7
|
+
date: zod_1.z.string(),
|
|
8
|
+
time: zod_1.z.string(),
|
|
9
|
+
details: zod_1.z.string(),
|
|
10
|
+
location: zod_1.z.string().nullable(),
|
|
11
|
+
status: zod_1.z.string().nullable(),
|
|
12
|
+
});
|
|
13
|
+
// Schema for public location info (city, country, postalCode only)
|
|
14
|
+
exports.PublicLocationSchema = zod_1.z.object({
|
|
15
|
+
city: zod_1.z.string().nullable(),
|
|
16
|
+
country: zod_1.z.string().nullable(),
|
|
17
|
+
postalCode: zod_1.z.string().nullable(),
|
|
18
|
+
});
|
|
19
|
+
// Schema for public tracking response (sanitized shipping data)
|
|
20
|
+
exports.PublicTrackingResponseSchema = zod_1.z.object({
|
|
21
|
+
trackingNumber: zod_1.z.string(),
|
|
22
|
+
customerRef: zod_1.z.string().nullable(),
|
|
23
|
+
status: zod_1.z.enum(["pending", "in_transit", "delivered"]),
|
|
24
|
+
category: zod_1.z.string(),
|
|
25
|
+
typeExpedition: zod_1.z.string(),
|
|
26
|
+
pickupDate: zod_1.z.string().nullable(),
|
|
27
|
+
deliveryDate: zod_1.z.string().nullable(),
|
|
28
|
+
pickupTime: zod_1.z.string().nullable(),
|
|
29
|
+
deliveryTime: zod_1.z.string().nullable(),
|
|
30
|
+
expeditor: exports.PublicLocationSchema.nullable(),
|
|
31
|
+
receiver: exports.PublicLocationSchema.nullable(),
|
|
32
|
+
trackings: zod_1.z.array(exports.PublicTrackingItemSchema),
|
|
33
|
+
hasDeliveryProof: zod_1.z.boolean(),
|
|
34
|
+
deliveredAt: zod_1.z.string().nullable(),
|
|
35
|
+
});
|
|
@@ -828,6 +828,7 @@ export declare const RamassageChauffeurSchema: z.ZodObject<{
|
|
|
828
828
|
pickupTime: z.ZodNullable<z.ZodString>;
|
|
829
829
|
deliveryTime: z.ZodNullable<z.ZodString>;
|
|
830
830
|
ref: z.ZodNullable<z.ZodNumber>;
|
|
831
|
+
trackingNumber: z.ZodNullable<z.ZodString>;
|
|
831
832
|
classifications: z.ZodNullable<z.ZodString>;
|
|
832
833
|
userName: z.ZodNullable<z.ZodString>;
|
|
833
834
|
transportType: z.ZodNullable<z.ZodString>;
|
|
@@ -885,6 +886,7 @@ export declare const RamassageChauffeurSchema: z.ZodObject<{
|
|
|
885
886
|
pickupTime: string | null;
|
|
886
887
|
deliveryTime: string | null;
|
|
887
888
|
ref: number | null;
|
|
889
|
+
trackingNumber: string | null;
|
|
888
890
|
classifications: string | null;
|
|
889
891
|
userName: string | null;
|
|
890
892
|
transportType: string | null;
|
|
@@ -934,6 +936,7 @@ export declare const RamassageChauffeurSchema: z.ZodObject<{
|
|
|
934
936
|
pickupTime: string | null;
|
|
935
937
|
deliveryTime: string | null;
|
|
936
938
|
ref: number | null;
|
|
939
|
+
trackingNumber: string | null;
|
|
937
940
|
classifications: string | null;
|
|
938
941
|
userName: string | null;
|
|
939
942
|
transportType: string | null;
|
|
@@ -1178,6 +1181,7 @@ export declare const RamassageChauffeurSchema: z.ZodObject<{
|
|
|
1178
1181
|
pickupTime: string | null;
|
|
1179
1182
|
deliveryTime: string | null;
|
|
1180
1183
|
ref: number | null;
|
|
1184
|
+
trackingNumber: string | null;
|
|
1181
1185
|
classifications: string | null;
|
|
1182
1186
|
userName: string | null;
|
|
1183
1187
|
transportType: string | null;
|
|
@@ -1422,6 +1426,7 @@ export declare const RamassageChauffeurSchema: z.ZodObject<{
|
|
|
1422
1426
|
pickupTime: string | null;
|
|
1423
1427
|
deliveryTime: string | null;
|
|
1424
1428
|
ref: number | null;
|
|
1429
|
+
trackingNumber: string | null;
|
|
1425
1430
|
classifications: string | null;
|
|
1426
1431
|
userName: string | null;
|
|
1427
1432
|
transportType: string | null;
|
|
@@ -28,6 +28,7 @@ export declare const ShippingSchema: z.ZodObject<{
|
|
|
28
28
|
pickupTime: z.ZodNullable<z.ZodString>;
|
|
29
29
|
deliveryTime: z.ZodNullable<z.ZodString>;
|
|
30
30
|
ref: z.ZodNullable<z.ZodNumber>;
|
|
31
|
+
trackingNumber: z.ZodNullable<z.ZodString>;
|
|
31
32
|
classifications: z.ZodNullable<z.ZodString>;
|
|
32
33
|
userName: z.ZodNullable<z.ZodString>;
|
|
33
34
|
transportType: z.ZodNullable<z.ZodString>;
|
|
@@ -1088,6 +1089,7 @@ export declare const ShippingSchema: z.ZodObject<{
|
|
|
1088
1089
|
pickupTime: string | null;
|
|
1089
1090
|
deliveryTime: string | null;
|
|
1090
1091
|
ref: number | null;
|
|
1092
|
+
trackingNumber: string | null;
|
|
1091
1093
|
classifications: string | null;
|
|
1092
1094
|
userName: string | null;
|
|
1093
1095
|
transportType: string | null;
|
|
@@ -1483,6 +1485,7 @@ export declare const ShippingSchema: z.ZodObject<{
|
|
|
1483
1485
|
pickupTime: string | null;
|
|
1484
1486
|
deliveryTime: string | null;
|
|
1485
1487
|
ref: number | null;
|
|
1488
|
+
trackingNumber: string | null;
|
|
1486
1489
|
classifications: string | null;
|
|
1487
1490
|
userName: string | null;
|
|
1488
1491
|
transportType: string | null;
|
|
@@ -1879,6 +1882,7 @@ export declare const ShippingSchemaSimple: z.ZodObject<{
|
|
|
1879
1882
|
pickupTime: z.ZodNullable<z.ZodString>;
|
|
1880
1883
|
deliveryTime: z.ZodNullable<z.ZodString>;
|
|
1881
1884
|
ref: z.ZodNullable<z.ZodNumber>;
|
|
1885
|
+
trackingNumber: z.ZodNullable<z.ZodString>;
|
|
1882
1886
|
classifications: z.ZodNullable<z.ZodString>;
|
|
1883
1887
|
userName: z.ZodNullable<z.ZodString>;
|
|
1884
1888
|
transportType: z.ZodNullable<z.ZodString>;
|
|
@@ -1936,6 +1940,7 @@ export declare const ShippingSchemaSimple: z.ZodObject<{
|
|
|
1936
1940
|
pickupTime: string | null;
|
|
1937
1941
|
deliveryTime: string | null;
|
|
1938
1942
|
ref: number | null;
|
|
1943
|
+
trackingNumber: string | null;
|
|
1939
1944
|
classifications: string | null;
|
|
1940
1945
|
userName: string | null;
|
|
1941
1946
|
transportType: string | null;
|
|
@@ -1985,6 +1990,7 @@ export declare const ShippingSchemaSimple: z.ZodObject<{
|
|
|
1985
1990
|
pickupTime: string | null;
|
|
1986
1991
|
deliveryTime: string | null;
|
|
1987
1992
|
ref: number | null;
|
|
1993
|
+
trackingNumber: string | null;
|
|
1988
1994
|
classifications: string | null;
|
|
1989
1995
|
userName: string | null;
|
|
1990
1996
|
transportType: string | null;
|
package/dist/models/_shipping.js
CHANGED
|
@@ -54,6 +54,7 @@ exports.ShippingSchema = zod_1.z.object({
|
|
|
54
54
|
pickupTime: zod_1.z.string().nullable(),
|
|
55
55
|
deliveryTime: zod_1.z.string().nullable(),
|
|
56
56
|
ref: zod_1.z.number().nullable(),
|
|
57
|
+
trackingNumber: zod_1.z.string().nullable(),
|
|
57
58
|
classifications: zod_1.z.string().nullable(),
|
|
58
59
|
userName: zod_1.z.string().nullable(),
|
|
59
60
|
transportType: zod_1.z.string().nullable(),
|
|
@@ -141,6 +142,7 @@ exports.ShippingSchemaSimple = zod_1.z.object({
|
|
|
141
142
|
pickupTime: zod_1.z.string().nullable(),
|
|
142
143
|
deliveryTime: zod_1.z.string().nullable(),
|
|
143
144
|
ref: zod_1.z.number().nullable(),
|
|
145
|
+
trackingNumber: zod_1.z.string().nullable(),
|
|
144
146
|
classifications: zod_1.z.string().nullable(),
|
|
145
147
|
userName: zod_1.z.string().nullable(),
|
|
146
148
|
transportType: zod_1.z.string().nullable(),
|
|
@@ -821,6 +821,7 @@ export declare const ShippingAffectedSchema: z.ZodObject<{
|
|
|
821
821
|
pickupTime: z.ZodNullable<z.ZodString>;
|
|
822
822
|
deliveryTime: z.ZodNullable<z.ZodString>;
|
|
823
823
|
ref: z.ZodNullable<z.ZodNumber>;
|
|
824
|
+
trackingNumber: z.ZodNullable<z.ZodString>;
|
|
824
825
|
classifications: z.ZodNullable<z.ZodString>;
|
|
825
826
|
userName: z.ZodNullable<z.ZodString>;
|
|
826
827
|
transportType: z.ZodNullable<z.ZodString>;
|
|
@@ -878,6 +879,7 @@ export declare const ShippingAffectedSchema: z.ZodObject<{
|
|
|
878
879
|
pickupTime: string | null;
|
|
879
880
|
deliveryTime: string | null;
|
|
880
881
|
ref: number | null;
|
|
882
|
+
trackingNumber: string | null;
|
|
881
883
|
classifications: string | null;
|
|
882
884
|
userName: string | null;
|
|
883
885
|
transportType: string | null;
|
|
@@ -927,6 +929,7 @@ export declare const ShippingAffectedSchema: z.ZodObject<{
|
|
|
927
929
|
pickupTime: string | null;
|
|
928
930
|
deliveryTime: string | null;
|
|
929
931
|
ref: number | null;
|
|
932
|
+
trackingNumber: string | null;
|
|
930
933
|
classifications: string | null;
|
|
931
934
|
userName: string | null;
|
|
932
935
|
transportType: string | null;
|
|
@@ -1164,6 +1167,7 @@ export declare const ShippingAffectedSchema: z.ZodObject<{
|
|
|
1164
1167
|
pickupTime: string | null;
|
|
1165
1168
|
deliveryTime: string | null;
|
|
1166
1169
|
ref: number | null;
|
|
1170
|
+
trackingNumber: string | null;
|
|
1167
1171
|
classifications: string | null;
|
|
1168
1172
|
userName: string | null;
|
|
1169
1173
|
transportType: string | null;
|
|
@@ -1401,6 +1405,7 @@ export declare const ShippingAffectedSchema: z.ZodObject<{
|
|
|
1401
1405
|
pickupTime: string | null;
|
|
1402
1406
|
deliveryTime: string | null;
|
|
1403
1407
|
ref: number | null;
|
|
1408
|
+
trackingNumber: string | null;
|
|
1404
1409
|
classifications: string | null;
|
|
1405
1410
|
userName: string | null;
|
|
1406
1411
|
transportType: string | null;
|
|
@@ -35,6 +35,7 @@ export declare const ShippingClassificationSchema: z.ZodObject<{
|
|
|
35
35
|
pickupTime: z.ZodNullable<z.ZodString>;
|
|
36
36
|
deliveryTime: z.ZodNullable<z.ZodString>;
|
|
37
37
|
ref: z.ZodNullable<z.ZodNumber>;
|
|
38
|
+
trackingNumber: z.ZodNullable<z.ZodString>;
|
|
38
39
|
classifications: z.ZodNullable<z.ZodString>;
|
|
39
40
|
userName: z.ZodNullable<z.ZodString>;
|
|
40
41
|
transportType: z.ZodNullable<z.ZodString>;
|
|
@@ -92,6 +93,7 @@ export declare const ShippingClassificationSchema: z.ZodObject<{
|
|
|
92
93
|
pickupTime: string | null;
|
|
93
94
|
deliveryTime: string | null;
|
|
94
95
|
ref: number | null;
|
|
96
|
+
trackingNumber: string | null;
|
|
95
97
|
classifications: string | null;
|
|
96
98
|
userName: string | null;
|
|
97
99
|
transportType: string | null;
|
|
@@ -141,6 +143,7 @@ export declare const ShippingClassificationSchema: z.ZodObject<{
|
|
|
141
143
|
pickupTime: string | null;
|
|
142
144
|
deliveryTime: string | null;
|
|
143
145
|
ref: number | null;
|
|
146
|
+
trackingNumber: string | null;
|
|
144
147
|
classifications: string | null;
|
|
145
148
|
userName: string | null;
|
|
146
149
|
transportType: string | null;
|
|
@@ -212,6 +215,7 @@ export declare const ShippingClassificationSchema: z.ZodObject<{
|
|
|
212
215
|
pickupTime: string | null;
|
|
213
216
|
deliveryTime: string | null;
|
|
214
217
|
ref: number | null;
|
|
218
|
+
trackingNumber: string | null;
|
|
215
219
|
classifications: string | null;
|
|
216
220
|
userName: string | null;
|
|
217
221
|
transportType: string | null;
|
|
@@ -283,6 +287,7 @@ export declare const ShippingClassificationSchema: z.ZodObject<{
|
|
|
283
287
|
pickupTime: string | null;
|
|
284
288
|
deliveryTime: string | null;
|
|
285
289
|
ref: number | null;
|
|
290
|
+
trackingNumber: string | null;
|
|
286
291
|
classifications: string | null;
|
|
287
292
|
userName: string | null;
|
|
288
293
|
transportType: string | null;
|
|
@@ -822,6 +822,7 @@ export declare const ShippingCommentSchema: z.ZodObject<{
|
|
|
822
822
|
pickupTime: z.ZodNullable<z.ZodString>;
|
|
823
823
|
deliveryTime: z.ZodNullable<z.ZodString>;
|
|
824
824
|
ref: z.ZodNullable<z.ZodNumber>;
|
|
825
|
+
trackingNumber: z.ZodNullable<z.ZodString>;
|
|
825
826
|
classifications: z.ZodNullable<z.ZodString>;
|
|
826
827
|
userName: z.ZodNullable<z.ZodString>;
|
|
827
828
|
transportType: z.ZodNullable<z.ZodString>;
|
|
@@ -879,6 +880,7 @@ export declare const ShippingCommentSchema: z.ZodObject<{
|
|
|
879
880
|
pickupTime: string | null;
|
|
880
881
|
deliveryTime: string | null;
|
|
881
882
|
ref: number | null;
|
|
883
|
+
trackingNumber: string | null;
|
|
882
884
|
classifications: string | null;
|
|
883
885
|
userName: string | null;
|
|
884
886
|
transportType: string | null;
|
|
@@ -928,6 +930,7 @@ export declare const ShippingCommentSchema: z.ZodObject<{
|
|
|
928
930
|
pickupTime: string | null;
|
|
929
931
|
deliveryTime: string | null;
|
|
930
932
|
ref: number | null;
|
|
933
|
+
trackingNumber: string | null;
|
|
931
934
|
classifications: string | null;
|
|
932
935
|
userName: string | null;
|
|
933
936
|
transportType: string | null;
|
|
@@ -1166,6 +1169,7 @@ export declare const ShippingCommentSchema: z.ZodObject<{
|
|
|
1166
1169
|
pickupTime: string | null;
|
|
1167
1170
|
deliveryTime: string | null;
|
|
1168
1171
|
ref: number | null;
|
|
1172
|
+
trackingNumber: string | null;
|
|
1169
1173
|
classifications: string | null;
|
|
1170
1174
|
userName: string | null;
|
|
1171
1175
|
transportType: string | null;
|
|
@@ -1404,6 +1408,7 @@ export declare const ShippingCommentSchema: z.ZodObject<{
|
|
|
1404
1408
|
pickupTime: string | null;
|
|
1405
1409
|
deliveryTime: string | null;
|
|
1406
1410
|
ref: number | null;
|
|
1411
|
+
trackingNumber: string | null;
|
|
1407
1412
|
classifications: string | null;
|
|
1408
1413
|
userName: string | null;
|
|
1409
1414
|
transportType: string | null;
|