exnet-routing 1.2.16 → 1.2.19
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/_billing_center.d.ts +36 -12
- package/dist/models/_billing_center.js +12 -4
- package/dist/models/_dashboard.d.ts +319 -0
- package/dist/models/_dashboard.js +73 -0
- package/dist/models/_facture.d.ts +15 -5
- package/dist/models/_facture_line.d.ts +21 -7
- package/dist/models/_shipping.d.ts +15 -5
- package/dist/models/_user_billing_center.d.ts +15 -5
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/dist/routes/admin.d.ts +1392 -72
- package/dist/routes/admin.js +38 -0
- package/dist/routes/ops.d.ts +936 -312
- package/dist/routes/user.d.ts +306 -102
- package/package.json +3 -4
|
@@ -31,7 +31,9 @@ export declare const BillingCenterSchema: z.ZodObject<{
|
|
|
31
31
|
isParis: z.ZodBoolean;
|
|
32
32
|
isMedical: z.ZodBoolean;
|
|
33
33
|
isService: z.ZodBoolean;
|
|
34
|
-
|
|
34
|
+
isShowSecondBordereaux: z.ZodBoolean;
|
|
35
|
+
isShowCustomerName: z.ZodBoolean;
|
|
36
|
+
isShowCommercialValue: z.ZodBoolean;
|
|
35
37
|
dirigeant: z.ZodNullable<z.ZodString>;
|
|
36
38
|
dirigeantTel: z.ZodNullable<z.ZodString>;
|
|
37
39
|
dirigeantEmail: z.ZodNullable<z.ZodString>;
|
|
@@ -317,7 +319,9 @@ export declare const BillingCenterSchema: z.ZodObject<{
|
|
|
317
319
|
isSubmittedToFrenchVat: boolean;
|
|
318
320
|
isActiveMailInstruction: boolean;
|
|
319
321
|
isActiveVariation: boolean;
|
|
320
|
-
|
|
322
|
+
isShowSecondBordereaux: boolean;
|
|
323
|
+
isShowCustomerName: boolean;
|
|
324
|
+
isShowCommercialValue: boolean;
|
|
321
325
|
customerId: number | null;
|
|
322
326
|
country?: {
|
|
323
327
|
id: number;
|
|
@@ -437,7 +441,9 @@ export declare const BillingCenterSchema: z.ZodObject<{
|
|
|
437
441
|
isSubmittedToFrenchVat: boolean;
|
|
438
442
|
isActiveMailInstruction: boolean;
|
|
439
443
|
isActiveVariation: boolean;
|
|
440
|
-
|
|
444
|
+
isShowSecondBordereaux: boolean;
|
|
445
|
+
isShowCustomerName: boolean;
|
|
446
|
+
isShowCommercialValue: boolean;
|
|
441
447
|
customerId: number | null;
|
|
442
448
|
country?: {
|
|
443
449
|
id: number;
|
|
@@ -540,7 +546,9 @@ export declare const BillingCenterSchemaSimple: z.ZodObject<{
|
|
|
540
546
|
isParis: z.ZodBoolean;
|
|
541
547
|
isMedical: z.ZodBoolean;
|
|
542
548
|
isService: z.ZodBoolean;
|
|
543
|
-
|
|
549
|
+
isShowSecondBordereaux: z.ZodBoolean;
|
|
550
|
+
isShowCustomerName: z.ZodBoolean;
|
|
551
|
+
isShowCommercialValue: z.ZodBoolean;
|
|
544
552
|
dirigeant: z.ZodNullable<z.ZodString>;
|
|
545
553
|
dirigeantTel: z.ZodNullable<z.ZodString>;
|
|
546
554
|
dirigeantEmail: z.ZodNullable<z.ZodString>;
|
|
@@ -609,7 +617,9 @@ export declare const BillingCenterSchemaSimple: z.ZodObject<{
|
|
|
609
617
|
isSubmittedToFrenchVat: boolean;
|
|
610
618
|
isActiveMailInstruction: boolean;
|
|
611
619
|
isActiveVariation: boolean;
|
|
612
|
-
|
|
620
|
+
isShowSecondBordereaux: boolean;
|
|
621
|
+
isShowCustomerName: boolean;
|
|
622
|
+
isShowCommercialValue: boolean;
|
|
613
623
|
customerId: number | null;
|
|
614
624
|
}, {
|
|
615
625
|
id: number;
|
|
@@ -660,7 +670,9 @@ export declare const BillingCenterSchemaSimple: z.ZodObject<{
|
|
|
660
670
|
isSubmittedToFrenchVat: boolean;
|
|
661
671
|
isActiveMailInstruction: boolean;
|
|
662
672
|
isActiveVariation: boolean;
|
|
663
|
-
|
|
673
|
+
isShowSecondBordereaux: boolean;
|
|
674
|
+
isShowCustomerName: boolean;
|
|
675
|
+
isShowCommercialValue: boolean;
|
|
664
676
|
customerId: number | null;
|
|
665
677
|
}>;
|
|
666
678
|
export declare const BillingCenterCreateSchema: z.ZodObject<{
|
|
@@ -692,7 +704,9 @@ export declare const BillingCenterCreateSchema: z.ZodObject<{
|
|
|
692
704
|
isParis: z.ZodBoolean;
|
|
693
705
|
isMedical: z.ZodBoolean;
|
|
694
706
|
isService: z.ZodBoolean;
|
|
695
|
-
|
|
707
|
+
isShowSecondBordereaux: z.ZodOptional<z.ZodBoolean>;
|
|
708
|
+
isShowCustomerName: z.ZodOptional<z.ZodBoolean>;
|
|
709
|
+
isShowCommercialValue: z.ZodOptional<z.ZodBoolean>;
|
|
696
710
|
dirigeant: z.ZodOptional<z.ZodString>;
|
|
697
711
|
dirigeantTel: z.ZodOptional<z.ZodString>;
|
|
698
712
|
dirigeantEmail: z.ZodOptional<z.ZodString>;
|
|
@@ -760,7 +774,9 @@ export declare const BillingCenterCreateSchema: z.ZodObject<{
|
|
|
760
774
|
tva?: string | undefined;
|
|
761
775
|
numeroSiren?: string | undefined;
|
|
762
776
|
invoiceMailTwo?: string | undefined;
|
|
763
|
-
|
|
777
|
+
isShowSecondBordereaux?: boolean | undefined;
|
|
778
|
+
isShowCustomerName?: boolean | undefined;
|
|
779
|
+
isShowCommercialValue?: boolean | undefined;
|
|
764
780
|
}, {
|
|
765
781
|
countryId: number;
|
|
766
782
|
address: string;
|
|
@@ -809,7 +825,9 @@ export declare const BillingCenterCreateSchema: z.ZodObject<{
|
|
|
809
825
|
tva?: string | undefined;
|
|
810
826
|
numeroSiren?: string | undefined;
|
|
811
827
|
invoiceMailTwo?: string | undefined;
|
|
812
|
-
|
|
828
|
+
isShowSecondBordereaux?: boolean | undefined;
|
|
829
|
+
isShowCustomerName?: boolean | undefined;
|
|
830
|
+
isShowCommercialValue?: boolean | undefined;
|
|
813
831
|
}>;
|
|
814
832
|
export declare const BillingCenterUpdateSchema: z.ZodObject<{
|
|
815
833
|
billingCenterName: z.ZodOptional<z.ZodString>;
|
|
@@ -840,7 +858,9 @@ export declare const BillingCenterUpdateSchema: z.ZodObject<{
|
|
|
840
858
|
isParis: z.ZodOptional<z.ZodBoolean>;
|
|
841
859
|
isMedical: z.ZodOptional<z.ZodBoolean>;
|
|
842
860
|
isService: z.ZodOptional<z.ZodBoolean>;
|
|
843
|
-
|
|
861
|
+
isShowSecondBordereaux: z.ZodOptional<z.ZodBoolean>;
|
|
862
|
+
isShowCustomerName: z.ZodOptional<z.ZodBoolean>;
|
|
863
|
+
isShowCommercialValue: z.ZodOptional<z.ZodBoolean>;
|
|
844
864
|
dirigeant: z.ZodOptional<z.ZodString>;
|
|
845
865
|
dirigeantTel: z.ZodOptional<z.ZodString>;
|
|
846
866
|
dirigeantEmail: z.ZodOptional<z.ZodString>;
|
|
@@ -906,7 +926,9 @@ export declare const BillingCenterUpdateSchema: z.ZodObject<{
|
|
|
906
926
|
isSubmittedToFrenchVat?: boolean | undefined;
|
|
907
927
|
isActiveMailInstruction?: boolean | undefined;
|
|
908
928
|
isActiveVariation?: boolean | undefined;
|
|
909
|
-
|
|
929
|
+
isShowSecondBordereaux?: boolean | undefined;
|
|
930
|
+
isShowCustomerName?: boolean | undefined;
|
|
931
|
+
isShowCommercialValue?: boolean | undefined;
|
|
910
932
|
customerId?: number | undefined;
|
|
911
933
|
activeVariation?: boolean | undefined;
|
|
912
934
|
}, {
|
|
@@ -955,7 +977,9 @@ export declare const BillingCenterUpdateSchema: z.ZodObject<{
|
|
|
955
977
|
isSubmittedToFrenchVat?: boolean | undefined;
|
|
956
978
|
isActiveMailInstruction?: boolean | undefined;
|
|
957
979
|
isActiveVariation?: boolean | undefined;
|
|
958
|
-
|
|
980
|
+
isShowSecondBordereaux?: boolean | undefined;
|
|
981
|
+
isShowCustomerName?: boolean | undefined;
|
|
982
|
+
isShowCommercialValue?: boolean | undefined;
|
|
959
983
|
customerId?: number | undefined;
|
|
960
984
|
activeVariation?: boolean | undefined;
|
|
961
985
|
}>;
|
|
@@ -36,7 +36,9 @@ exports.BillingCenterSchema = zod_1.z.object({
|
|
|
36
36
|
isParis: zod_1.z.boolean(),
|
|
37
37
|
isMedical: zod_1.z.boolean(),
|
|
38
38
|
isService: zod_1.z.boolean(),
|
|
39
|
-
|
|
39
|
+
isShowSecondBordereaux: zod_1.z.boolean(),
|
|
40
|
+
isShowCustomerName: zod_1.z.boolean(),
|
|
41
|
+
isShowCommercialValue: zod_1.z.boolean(),
|
|
40
42
|
dirigeant: zod_1.z.string().nullable(),
|
|
41
43
|
dirigeantTel: zod_1.z.string().nullable(),
|
|
42
44
|
dirigeantEmail: zod_1.z.string().nullable(),
|
|
@@ -90,7 +92,9 @@ exports.BillingCenterSchemaSimple = zod_1.z.object({
|
|
|
90
92
|
isParis: zod_1.z.boolean(),
|
|
91
93
|
isMedical: zod_1.z.boolean(),
|
|
92
94
|
isService: zod_1.z.boolean(),
|
|
93
|
-
|
|
95
|
+
isShowSecondBordereaux: zod_1.z.boolean(),
|
|
96
|
+
isShowCustomerName: zod_1.z.boolean(),
|
|
97
|
+
isShowCommercialValue: zod_1.z.boolean(),
|
|
94
98
|
dirigeant: zod_1.z.string().nullable(),
|
|
95
99
|
dirigeantTel: zod_1.z.string().nullable(),
|
|
96
100
|
dirigeantEmail: zod_1.z.string().nullable(),
|
|
@@ -140,7 +144,9 @@ exports.BillingCenterCreateSchema = zod_1.z.object({
|
|
|
140
144
|
isParis: zod_1.z.boolean(),
|
|
141
145
|
isMedical: zod_1.z.boolean(),
|
|
142
146
|
isService: zod_1.z.boolean(),
|
|
143
|
-
|
|
147
|
+
isShowSecondBordereaux: zod_1.z.boolean().optional(),
|
|
148
|
+
isShowCustomerName: zod_1.z.boolean().optional(),
|
|
149
|
+
isShowCommercialValue: zod_1.z.boolean().optional(),
|
|
144
150
|
dirigeant: zod_1.z.string().optional(),
|
|
145
151
|
dirigeantTel: zod_1.z.string().optional(),
|
|
146
152
|
dirigeantEmail: zod_1.z.string().optional(),
|
|
@@ -190,7 +196,9 @@ exports.BillingCenterUpdateSchema = zod_1.z.object({
|
|
|
190
196
|
isParis: zod_1.z.boolean().optional(),
|
|
191
197
|
isMedical: zod_1.z.boolean().optional(),
|
|
192
198
|
isService: zod_1.z.boolean().optional(),
|
|
193
|
-
|
|
199
|
+
isShowSecondBordereaux: zod_1.z.boolean().optional(),
|
|
200
|
+
isShowCustomerName: zod_1.z.boolean().optional(),
|
|
201
|
+
isShowCommercialValue: zod_1.z.boolean().optional(),
|
|
194
202
|
dirigeant: zod_1.z.string().optional(),
|
|
195
203
|
dirigeantTel: zod_1.z.string().optional(),
|
|
196
204
|
dirigeantEmail: zod_1.z.string().optional(),
|
|
@@ -0,0 +1,319 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const DashboardKpiSchema: z.ZodObject<{
|
|
3
|
+
value: z.ZodNumber;
|
|
4
|
+
trend: z.ZodNumber;
|
|
5
|
+
}, "strip", z.ZodTypeAny, {
|
|
6
|
+
value: number;
|
|
7
|
+
trend: number;
|
|
8
|
+
}, {
|
|
9
|
+
value: number;
|
|
10
|
+
trend: number;
|
|
11
|
+
}>;
|
|
12
|
+
export declare const DashboardSummarySchema: z.ZodObject<{
|
|
13
|
+
kpis: z.ZodObject<{
|
|
14
|
+
customers: z.ZodObject<{
|
|
15
|
+
value: z.ZodNumber;
|
|
16
|
+
trend: z.ZodNumber;
|
|
17
|
+
}, "strip", z.ZodTypeAny, {
|
|
18
|
+
value: number;
|
|
19
|
+
trend: number;
|
|
20
|
+
}, {
|
|
21
|
+
value: number;
|
|
22
|
+
trend: number;
|
|
23
|
+
}>;
|
|
24
|
+
shippings: z.ZodObject<{
|
|
25
|
+
value: z.ZodNumber;
|
|
26
|
+
trend: z.ZodNumber;
|
|
27
|
+
}, "strip", z.ZodTypeAny, {
|
|
28
|
+
value: number;
|
|
29
|
+
trend: number;
|
|
30
|
+
}, {
|
|
31
|
+
value: number;
|
|
32
|
+
trend: number;
|
|
33
|
+
}>;
|
|
34
|
+
delivered: z.ZodObject<{
|
|
35
|
+
value: z.ZodNumber;
|
|
36
|
+
trend: z.ZodNumber;
|
|
37
|
+
}, "strip", z.ZodTypeAny, {
|
|
38
|
+
value: number;
|
|
39
|
+
trend: number;
|
|
40
|
+
}, {
|
|
41
|
+
value: number;
|
|
42
|
+
trend: number;
|
|
43
|
+
}>;
|
|
44
|
+
}, "strip", z.ZodTypeAny, {
|
|
45
|
+
customers: {
|
|
46
|
+
value: number;
|
|
47
|
+
trend: number;
|
|
48
|
+
};
|
|
49
|
+
shippings: {
|
|
50
|
+
value: number;
|
|
51
|
+
trend: number;
|
|
52
|
+
};
|
|
53
|
+
delivered: {
|
|
54
|
+
value: number;
|
|
55
|
+
trend: number;
|
|
56
|
+
};
|
|
57
|
+
}, {
|
|
58
|
+
customers: {
|
|
59
|
+
value: number;
|
|
60
|
+
trend: number;
|
|
61
|
+
};
|
|
62
|
+
shippings: {
|
|
63
|
+
value: number;
|
|
64
|
+
trend: number;
|
|
65
|
+
};
|
|
66
|
+
delivered: {
|
|
67
|
+
value: number;
|
|
68
|
+
trend: number;
|
|
69
|
+
};
|
|
70
|
+
}>;
|
|
71
|
+
counters: z.ZodObject<{
|
|
72
|
+
activeCustomers: z.ZodNumber;
|
|
73
|
+
billingCenters: z.ZodNumber;
|
|
74
|
+
ops: z.ZodNumber;
|
|
75
|
+
admins: z.ZodNumber;
|
|
76
|
+
drivers: z.ZodNumber;
|
|
77
|
+
users: z.ZodNumber;
|
|
78
|
+
}, "strip", z.ZodTypeAny, {
|
|
79
|
+
ops: number;
|
|
80
|
+
users: number;
|
|
81
|
+
activeCustomers: number;
|
|
82
|
+
billingCenters: number;
|
|
83
|
+
admins: number;
|
|
84
|
+
drivers: number;
|
|
85
|
+
}, {
|
|
86
|
+
ops: number;
|
|
87
|
+
users: number;
|
|
88
|
+
activeCustomers: number;
|
|
89
|
+
billingCenters: number;
|
|
90
|
+
admins: number;
|
|
91
|
+
drivers: number;
|
|
92
|
+
}>;
|
|
93
|
+
}, "strip", z.ZodTypeAny, {
|
|
94
|
+
kpis: {
|
|
95
|
+
customers: {
|
|
96
|
+
value: number;
|
|
97
|
+
trend: number;
|
|
98
|
+
};
|
|
99
|
+
shippings: {
|
|
100
|
+
value: number;
|
|
101
|
+
trend: number;
|
|
102
|
+
};
|
|
103
|
+
delivered: {
|
|
104
|
+
value: number;
|
|
105
|
+
trend: number;
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
counters: {
|
|
109
|
+
ops: number;
|
|
110
|
+
users: number;
|
|
111
|
+
activeCustomers: number;
|
|
112
|
+
billingCenters: number;
|
|
113
|
+
admins: number;
|
|
114
|
+
drivers: number;
|
|
115
|
+
};
|
|
116
|
+
}, {
|
|
117
|
+
kpis: {
|
|
118
|
+
customers: {
|
|
119
|
+
value: number;
|
|
120
|
+
trend: number;
|
|
121
|
+
};
|
|
122
|
+
shippings: {
|
|
123
|
+
value: number;
|
|
124
|
+
trend: number;
|
|
125
|
+
};
|
|
126
|
+
delivered: {
|
|
127
|
+
value: number;
|
|
128
|
+
trend: number;
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
counters: {
|
|
132
|
+
ops: number;
|
|
133
|
+
users: number;
|
|
134
|
+
activeCustomers: number;
|
|
135
|
+
billingCenters: number;
|
|
136
|
+
admins: number;
|
|
137
|
+
drivers: number;
|
|
138
|
+
};
|
|
139
|
+
}>;
|
|
140
|
+
export declare const DashboardShippingsByStatusSchema: z.ZodObject<{
|
|
141
|
+
pending: z.ZodNumber;
|
|
142
|
+
inProgress: z.ZodNumber;
|
|
143
|
+
delivered: z.ZodNumber;
|
|
144
|
+
archived: z.ZodNumber;
|
|
145
|
+
cancelled: z.ZodNumber;
|
|
146
|
+
}, "strip", z.ZodTypeAny, {
|
|
147
|
+
delivered: number;
|
|
148
|
+
pending: number;
|
|
149
|
+
inProgress: number;
|
|
150
|
+
archived: number;
|
|
151
|
+
cancelled: number;
|
|
152
|
+
}, {
|
|
153
|
+
delivered: number;
|
|
154
|
+
pending: number;
|
|
155
|
+
inProgress: number;
|
|
156
|
+
archived: number;
|
|
157
|
+
cancelled: number;
|
|
158
|
+
}>;
|
|
159
|
+
export declare const DashboardShippingsByMonthItemSchema: z.ZodObject<{
|
|
160
|
+
month: z.ZodString;
|
|
161
|
+
total: z.ZodNumber;
|
|
162
|
+
delivered: z.ZodNumber;
|
|
163
|
+
cancelled: z.ZodNumber;
|
|
164
|
+
}, "strip", z.ZodTypeAny, {
|
|
165
|
+
month: string;
|
|
166
|
+
total: number;
|
|
167
|
+
delivered: number;
|
|
168
|
+
cancelled: number;
|
|
169
|
+
}, {
|
|
170
|
+
month: string;
|
|
171
|
+
total: number;
|
|
172
|
+
delivered: number;
|
|
173
|
+
cancelled: number;
|
|
174
|
+
}>;
|
|
175
|
+
export declare const DashboardShippingsByMonthSchema: z.ZodArray<z.ZodObject<{
|
|
176
|
+
month: z.ZodString;
|
|
177
|
+
total: z.ZodNumber;
|
|
178
|
+
delivered: z.ZodNumber;
|
|
179
|
+
cancelled: z.ZodNumber;
|
|
180
|
+
}, "strip", z.ZodTypeAny, {
|
|
181
|
+
month: string;
|
|
182
|
+
total: number;
|
|
183
|
+
delivered: number;
|
|
184
|
+
cancelled: number;
|
|
185
|
+
}, {
|
|
186
|
+
month: string;
|
|
187
|
+
total: number;
|
|
188
|
+
delivered: number;
|
|
189
|
+
cancelled: number;
|
|
190
|
+
}>, "many">;
|
|
191
|
+
export declare const DashboardRevenueByMonthItemSchema: z.ZodObject<{
|
|
192
|
+
month: z.ZodString;
|
|
193
|
+
revenue: z.ZodNumber;
|
|
194
|
+
tax: z.ZodNumber;
|
|
195
|
+
invoicesCount: z.ZodNumber;
|
|
196
|
+
}, "strip", z.ZodTypeAny, {
|
|
197
|
+
month: string;
|
|
198
|
+
revenue: number;
|
|
199
|
+
tax: number;
|
|
200
|
+
invoicesCount: number;
|
|
201
|
+
}, {
|
|
202
|
+
month: string;
|
|
203
|
+
revenue: number;
|
|
204
|
+
tax: number;
|
|
205
|
+
invoicesCount: number;
|
|
206
|
+
}>;
|
|
207
|
+
export declare const DashboardRevenueByMonthSchema: z.ZodArray<z.ZodObject<{
|
|
208
|
+
month: z.ZodString;
|
|
209
|
+
revenue: z.ZodNumber;
|
|
210
|
+
tax: z.ZodNumber;
|
|
211
|
+
invoicesCount: z.ZodNumber;
|
|
212
|
+
}, "strip", z.ZodTypeAny, {
|
|
213
|
+
month: string;
|
|
214
|
+
revenue: number;
|
|
215
|
+
tax: number;
|
|
216
|
+
invoicesCount: number;
|
|
217
|
+
}, {
|
|
218
|
+
month: string;
|
|
219
|
+
revenue: number;
|
|
220
|
+
tax: number;
|
|
221
|
+
invoicesCount: number;
|
|
222
|
+
}>, "many">;
|
|
223
|
+
export declare const DashboardTopCustomerSchema: z.ZodObject<{
|
|
224
|
+
id: z.ZodNumber;
|
|
225
|
+
name: z.ZodString;
|
|
226
|
+
shippingsCount: z.ZodNumber;
|
|
227
|
+
totalRevenue: z.ZodNumber;
|
|
228
|
+
}, "strip", z.ZodTypeAny, {
|
|
229
|
+
id: number;
|
|
230
|
+
name: string;
|
|
231
|
+
shippingsCount: number;
|
|
232
|
+
totalRevenue: number;
|
|
233
|
+
}, {
|
|
234
|
+
id: number;
|
|
235
|
+
name: string;
|
|
236
|
+
shippingsCount: number;
|
|
237
|
+
totalRevenue: number;
|
|
238
|
+
}>;
|
|
239
|
+
export declare const DashboardTopCustomersSchema: z.ZodArray<z.ZodObject<{
|
|
240
|
+
id: z.ZodNumber;
|
|
241
|
+
name: z.ZodString;
|
|
242
|
+
shippingsCount: z.ZodNumber;
|
|
243
|
+
totalRevenue: z.ZodNumber;
|
|
244
|
+
}, "strip", z.ZodTypeAny, {
|
|
245
|
+
id: number;
|
|
246
|
+
name: string;
|
|
247
|
+
shippingsCount: number;
|
|
248
|
+
totalRevenue: number;
|
|
249
|
+
}, {
|
|
250
|
+
id: number;
|
|
251
|
+
name: string;
|
|
252
|
+
shippingsCount: number;
|
|
253
|
+
totalRevenue: number;
|
|
254
|
+
}>, "many">;
|
|
255
|
+
export declare const DashboardShippingsByInterfaceSchema: z.ZodObject<{
|
|
256
|
+
paris: z.ZodNumber;
|
|
257
|
+
medical: z.ZodNumber;
|
|
258
|
+
service: z.ZodNumber;
|
|
259
|
+
}, "strip", z.ZodTypeAny, {
|
|
260
|
+
paris: number;
|
|
261
|
+
medical: number;
|
|
262
|
+
service: number;
|
|
263
|
+
}, {
|
|
264
|
+
paris: number;
|
|
265
|
+
medical: number;
|
|
266
|
+
service: number;
|
|
267
|
+
}>;
|
|
268
|
+
export declare const DashboardRecentActivityItemSchema: z.ZodObject<{
|
|
269
|
+
id: z.ZodNumber;
|
|
270
|
+
ref: z.ZodString;
|
|
271
|
+
createdAt: z.ZodString;
|
|
272
|
+
isArchived: z.ZodBoolean;
|
|
273
|
+
isCancelled: z.ZodBoolean;
|
|
274
|
+
customerName: z.ZodNullable<z.ZodString>;
|
|
275
|
+
}, "strip", z.ZodTypeAny, {
|
|
276
|
+
id: number;
|
|
277
|
+
createdAt: string;
|
|
278
|
+
ref: string;
|
|
279
|
+
isArchived: boolean;
|
|
280
|
+
isCancelled: boolean;
|
|
281
|
+
customerName: string | null;
|
|
282
|
+
}, {
|
|
283
|
+
id: number;
|
|
284
|
+
createdAt: string;
|
|
285
|
+
ref: string;
|
|
286
|
+
isArchived: boolean;
|
|
287
|
+
isCancelled: boolean;
|
|
288
|
+
customerName: string | null;
|
|
289
|
+
}>;
|
|
290
|
+
export declare const DashboardRecentActivitySchema: z.ZodArray<z.ZodObject<{
|
|
291
|
+
id: z.ZodNumber;
|
|
292
|
+
ref: z.ZodString;
|
|
293
|
+
createdAt: z.ZodString;
|
|
294
|
+
isArchived: z.ZodBoolean;
|
|
295
|
+
isCancelled: z.ZodBoolean;
|
|
296
|
+
customerName: z.ZodNullable<z.ZodString>;
|
|
297
|
+
}, "strip", z.ZodTypeAny, {
|
|
298
|
+
id: number;
|
|
299
|
+
createdAt: string;
|
|
300
|
+
ref: string;
|
|
301
|
+
isArchived: boolean;
|
|
302
|
+
isCancelled: boolean;
|
|
303
|
+
customerName: string | null;
|
|
304
|
+
}, {
|
|
305
|
+
id: number;
|
|
306
|
+
createdAt: string;
|
|
307
|
+
ref: string;
|
|
308
|
+
isArchived: boolean;
|
|
309
|
+
isCancelled: boolean;
|
|
310
|
+
customerName: string | null;
|
|
311
|
+
}>, "many">;
|
|
312
|
+
export type IDashboardKpi = z.infer<typeof DashboardKpiSchema>;
|
|
313
|
+
export type IDashboardSummary = z.infer<typeof DashboardSummarySchema>;
|
|
314
|
+
export type IDashboardShippingsByStatus = z.infer<typeof DashboardShippingsByStatusSchema>;
|
|
315
|
+
export type IDashboardShippingsByMonthItem = z.infer<typeof DashboardShippingsByMonthItemSchema>;
|
|
316
|
+
export type IDashboardRevenueByMonthItem = z.infer<typeof DashboardRevenueByMonthItemSchema>;
|
|
317
|
+
export type IDashboardTopCustomer = z.infer<typeof DashboardTopCustomerSchema>;
|
|
318
|
+
export type IDashboardShippingsByInterface = z.infer<typeof DashboardShippingsByInterfaceSchema>;
|
|
319
|
+
export type IDashboardRecentActivityItem = z.infer<typeof DashboardRecentActivityItemSchema>;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DashboardRecentActivitySchema = exports.DashboardRecentActivityItemSchema = exports.DashboardShippingsByInterfaceSchema = exports.DashboardTopCustomersSchema = exports.DashboardTopCustomerSchema = exports.DashboardRevenueByMonthSchema = exports.DashboardRevenueByMonthItemSchema = exports.DashboardShippingsByMonthSchema = exports.DashboardShippingsByMonthItemSchema = exports.DashboardShippingsByStatusSchema = exports.DashboardSummarySchema = exports.DashboardKpiSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
// KPI avec tendance
|
|
6
|
+
exports.DashboardKpiSchema = zod_1.z.object({
|
|
7
|
+
value: zod_1.z.number(),
|
|
8
|
+
trend: zod_1.z.number(),
|
|
9
|
+
});
|
|
10
|
+
// Résumé du dashboard
|
|
11
|
+
exports.DashboardSummarySchema = zod_1.z.object({
|
|
12
|
+
kpis: zod_1.z.object({
|
|
13
|
+
customers: exports.DashboardKpiSchema,
|
|
14
|
+
shippings: exports.DashboardKpiSchema,
|
|
15
|
+
delivered: exports.DashboardKpiSchema,
|
|
16
|
+
}),
|
|
17
|
+
counters: zod_1.z.object({
|
|
18
|
+
activeCustomers: zod_1.z.number(),
|
|
19
|
+
billingCenters: zod_1.z.number(),
|
|
20
|
+
ops: zod_1.z.number(),
|
|
21
|
+
admins: zod_1.z.number(),
|
|
22
|
+
drivers: zod_1.z.number(),
|
|
23
|
+
users: zod_1.z.number(),
|
|
24
|
+
}),
|
|
25
|
+
});
|
|
26
|
+
// Distribution des expéditions par statut
|
|
27
|
+
exports.DashboardShippingsByStatusSchema = zod_1.z.object({
|
|
28
|
+
pending: zod_1.z.number(),
|
|
29
|
+
inProgress: zod_1.z.number(),
|
|
30
|
+
delivered: zod_1.z.number(),
|
|
31
|
+
archived: zod_1.z.number(),
|
|
32
|
+
cancelled: zod_1.z.number(),
|
|
33
|
+
});
|
|
34
|
+
// Expéditions par mois
|
|
35
|
+
exports.DashboardShippingsByMonthItemSchema = zod_1.z.object({
|
|
36
|
+
month: zod_1.z.string(),
|
|
37
|
+
total: zod_1.z.number(),
|
|
38
|
+
delivered: zod_1.z.number(),
|
|
39
|
+
cancelled: zod_1.z.number(),
|
|
40
|
+
});
|
|
41
|
+
exports.DashboardShippingsByMonthSchema = zod_1.z.array(exports.DashboardShippingsByMonthItemSchema);
|
|
42
|
+
// Revenus par mois
|
|
43
|
+
exports.DashboardRevenueByMonthItemSchema = zod_1.z.object({
|
|
44
|
+
month: zod_1.z.string(),
|
|
45
|
+
revenue: zod_1.z.number(),
|
|
46
|
+
tax: zod_1.z.number(),
|
|
47
|
+
invoicesCount: zod_1.z.number(),
|
|
48
|
+
});
|
|
49
|
+
exports.DashboardRevenueByMonthSchema = zod_1.z.array(exports.DashboardRevenueByMonthItemSchema);
|
|
50
|
+
// Top clients
|
|
51
|
+
exports.DashboardTopCustomerSchema = zod_1.z.object({
|
|
52
|
+
id: zod_1.z.number(),
|
|
53
|
+
name: zod_1.z.string(),
|
|
54
|
+
shippingsCount: zod_1.z.number(),
|
|
55
|
+
totalRevenue: zod_1.z.number(),
|
|
56
|
+
});
|
|
57
|
+
exports.DashboardTopCustomersSchema = zod_1.z.array(exports.DashboardTopCustomerSchema);
|
|
58
|
+
// Distribution par interface
|
|
59
|
+
exports.DashboardShippingsByInterfaceSchema = zod_1.z.object({
|
|
60
|
+
paris: zod_1.z.number(),
|
|
61
|
+
medical: zod_1.z.number(),
|
|
62
|
+
service: zod_1.z.number(),
|
|
63
|
+
});
|
|
64
|
+
// Activité récente
|
|
65
|
+
exports.DashboardRecentActivityItemSchema = zod_1.z.object({
|
|
66
|
+
id: zod_1.z.number(),
|
|
67
|
+
ref: zod_1.z.string(),
|
|
68
|
+
createdAt: zod_1.z.string(),
|
|
69
|
+
isArchived: zod_1.z.boolean(),
|
|
70
|
+
isCancelled: zod_1.z.boolean(),
|
|
71
|
+
customerName: zod_1.z.string().nullable(),
|
|
72
|
+
});
|
|
73
|
+
exports.DashboardRecentActivitySchema = zod_1.z.array(exports.DashboardRecentActivityItemSchema);
|
|
@@ -70,7 +70,9 @@ export declare const FactureSchema: z.ZodObject<{
|
|
|
70
70
|
isParis: z.ZodBoolean;
|
|
71
71
|
isMedical: z.ZodBoolean;
|
|
72
72
|
isService: z.ZodBoolean;
|
|
73
|
-
|
|
73
|
+
isShowSecondBordereaux: z.ZodBoolean;
|
|
74
|
+
isShowCustomerName: z.ZodBoolean;
|
|
75
|
+
isShowCommercialValue: z.ZodBoolean;
|
|
74
76
|
dirigeant: z.ZodNullable<z.ZodString>;
|
|
75
77
|
dirigeantTel: z.ZodNullable<z.ZodString>;
|
|
76
78
|
dirigeantEmail: z.ZodNullable<z.ZodString>;
|
|
@@ -356,7 +358,9 @@ export declare const FactureSchema: z.ZodObject<{
|
|
|
356
358
|
isSubmittedToFrenchVat: boolean;
|
|
357
359
|
isActiveMailInstruction: boolean;
|
|
358
360
|
isActiveVariation: boolean;
|
|
359
|
-
|
|
361
|
+
isShowSecondBordereaux: boolean;
|
|
362
|
+
isShowCustomerName: boolean;
|
|
363
|
+
isShowCommercialValue: boolean;
|
|
360
364
|
customerId: number | null;
|
|
361
365
|
country?: {
|
|
362
366
|
id: number;
|
|
@@ -476,7 +480,9 @@ export declare const FactureSchema: z.ZodObject<{
|
|
|
476
480
|
isSubmittedToFrenchVat: boolean;
|
|
477
481
|
isActiveMailInstruction: boolean;
|
|
478
482
|
isActiveVariation: boolean;
|
|
479
|
-
|
|
483
|
+
isShowSecondBordereaux: boolean;
|
|
484
|
+
isShowCustomerName: boolean;
|
|
485
|
+
isShowCommercialValue: boolean;
|
|
480
486
|
customerId: number | null;
|
|
481
487
|
country?: {
|
|
482
488
|
id: number;
|
|
@@ -710,7 +716,9 @@ export declare const FactureSchema: z.ZodObject<{
|
|
|
710
716
|
isSubmittedToFrenchVat: boolean;
|
|
711
717
|
isActiveMailInstruction: boolean;
|
|
712
718
|
isActiveVariation: boolean;
|
|
713
|
-
|
|
719
|
+
isShowSecondBordereaux: boolean;
|
|
720
|
+
isShowCustomerName: boolean;
|
|
721
|
+
isShowCommercialValue: boolean;
|
|
714
722
|
customerId: number | null;
|
|
715
723
|
country?: {
|
|
716
724
|
id: number;
|
|
@@ -879,7 +887,9 @@ export declare const FactureSchema: z.ZodObject<{
|
|
|
879
887
|
isSubmittedToFrenchVat: boolean;
|
|
880
888
|
isActiveMailInstruction: boolean;
|
|
881
889
|
isActiveVariation: boolean;
|
|
882
|
-
|
|
890
|
+
isShowSecondBordereaux: boolean;
|
|
891
|
+
isShowCustomerName: boolean;
|
|
892
|
+
isShowCommercialValue: boolean;
|
|
883
893
|
customerId: number | null;
|
|
884
894
|
country?: {
|
|
885
895
|
id: number;
|
|
@@ -77,7 +77,9 @@ export declare const FactureLineSchema: z.ZodObject<{
|
|
|
77
77
|
isParis: z.ZodBoolean;
|
|
78
78
|
isMedical: z.ZodBoolean;
|
|
79
79
|
isService: z.ZodBoolean;
|
|
80
|
-
|
|
80
|
+
isShowSecondBordereaux: z.ZodBoolean;
|
|
81
|
+
isShowCustomerName: z.ZodBoolean;
|
|
82
|
+
isShowCommercialValue: z.ZodBoolean;
|
|
81
83
|
dirigeant: z.ZodNullable<z.ZodString>;
|
|
82
84
|
dirigeantTel: z.ZodNullable<z.ZodString>;
|
|
83
85
|
dirigeantEmail: z.ZodNullable<z.ZodString>;
|
|
@@ -363,7 +365,9 @@ export declare const FactureLineSchema: z.ZodObject<{
|
|
|
363
365
|
isSubmittedToFrenchVat: boolean;
|
|
364
366
|
isActiveMailInstruction: boolean;
|
|
365
367
|
isActiveVariation: boolean;
|
|
366
|
-
|
|
368
|
+
isShowSecondBordereaux: boolean;
|
|
369
|
+
isShowCustomerName: boolean;
|
|
370
|
+
isShowCommercialValue: boolean;
|
|
367
371
|
customerId: number | null;
|
|
368
372
|
country?: {
|
|
369
373
|
id: number;
|
|
@@ -483,7 +487,9 @@ export declare const FactureLineSchema: z.ZodObject<{
|
|
|
483
487
|
isSubmittedToFrenchVat: boolean;
|
|
484
488
|
isActiveMailInstruction: boolean;
|
|
485
489
|
isActiveVariation: boolean;
|
|
486
|
-
|
|
490
|
+
isShowSecondBordereaux: boolean;
|
|
491
|
+
isShowCustomerName: boolean;
|
|
492
|
+
isShowCommercialValue: boolean;
|
|
487
493
|
customerId: number | null;
|
|
488
494
|
country?: {
|
|
489
495
|
id: number;
|
|
@@ -717,7 +723,9 @@ export declare const FactureLineSchema: z.ZodObject<{
|
|
|
717
723
|
isSubmittedToFrenchVat: boolean;
|
|
718
724
|
isActiveMailInstruction: boolean;
|
|
719
725
|
isActiveVariation: boolean;
|
|
720
|
-
|
|
726
|
+
isShowSecondBordereaux: boolean;
|
|
727
|
+
isShowCustomerName: boolean;
|
|
728
|
+
isShowCommercialValue: boolean;
|
|
721
729
|
customerId: number | null;
|
|
722
730
|
country?: {
|
|
723
731
|
id: number;
|
|
@@ -886,7 +894,9 @@ export declare const FactureLineSchema: z.ZodObject<{
|
|
|
886
894
|
isSubmittedToFrenchVat: boolean;
|
|
887
895
|
isActiveMailInstruction: boolean;
|
|
888
896
|
isActiveVariation: boolean;
|
|
889
|
-
|
|
897
|
+
isShowSecondBordereaux: boolean;
|
|
898
|
+
isShowCustomerName: boolean;
|
|
899
|
+
isShowCommercialValue: boolean;
|
|
890
900
|
customerId: number | null;
|
|
891
901
|
country?: {
|
|
892
902
|
id: number;
|
|
@@ -1367,7 +1377,9 @@ export declare const FactureLineSchema: z.ZodObject<{
|
|
|
1367
1377
|
isSubmittedToFrenchVat: boolean;
|
|
1368
1378
|
isActiveMailInstruction: boolean;
|
|
1369
1379
|
isActiveVariation: boolean;
|
|
1370
|
-
|
|
1380
|
+
isShowSecondBordereaux: boolean;
|
|
1381
|
+
isShowCustomerName: boolean;
|
|
1382
|
+
isShowCommercialValue: boolean;
|
|
1371
1383
|
customerId: number | null;
|
|
1372
1384
|
country?: {
|
|
1373
1385
|
id: number;
|
|
@@ -1636,7 +1648,9 @@ export declare const FactureLineSchema: z.ZodObject<{
|
|
|
1636
1648
|
isSubmittedToFrenchVat: boolean;
|
|
1637
1649
|
isActiveMailInstruction: boolean;
|
|
1638
1650
|
isActiveVariation: boolean;
|
|
1639
|
-
|
|
1651
|
+
isShowSecondBordereaux: boolean;
|
|
1652
|
+
isShowCustomerName: boolean;
|
|
1653
|
+
isShowCommercialValue: boolean;
|
|
1640
1654
|
customerId: number | null;
|
|
1641
1655
|
country?: {
|
|
1642
1656
|
id: number;
|