exnet-routing 1.2.8 → 1.2.9
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 +154 -0
- package/dist/models/_billing_center.js +53 -1
- package/dist/models/_calcul_range_price.d.ts +22 -0
- package/dist/models/_calcul_range_price.js +9 -1
- package/dist/models/_calcul_weight_price.d.ts +25 -0
- package/dist/models/_calcul_weight_price.js +10 -1
- package/dist/models/_chat.d.ts +38 -2516
- package/dist/models/_chat.js +13 -3
- package/dist/models/_chat_message.d.ts +38 -3168
- package/dist/models/_chat_message.js +11 -1
- package/dist/models/_contact.d.ts +77 -0
- package/dist/models/_contact.js +26 -1
- package/dist/models/_contact_visible.d.ts +19 -0
- package/dist/models/_contact_visible.js +8 -1
- package/dist/models/_emballage.d.ts +49 -0
- package/dist/models/_emballage.js +18 -1
- package/dist/models/_facturation_line.d.ts +6 -6
- package/dist/models/_facture.d.ts +105 -3036
- package/dist/models/_facture.js +29 -2
- package/dist/models/_facture_line.d.ts +334 -8317
- package/dist/models/_facture_line.js +3 -5
- package/dist/models/_historique_action.d.ts +34 -1969
- package/dist/models/_historique_action.js +12 -2
- package/dist/models/_information_chauffeur.d.ts +61 -0
- package/dist/models/_information_chauffeur.js +22 -1
- package/dist/models/_information_importante.d.ts +26 -1967
- package/dist/models/_information_importante.js +10 -2
- package/dist/models/_livraison_chauffeur.d.ts +26 -1967
- package/dist/models/_livraison_chauffeur.js +10 -2
- package/dist/models/_prise_de_poste.d.ts +124 -0
- package/dist/models/_prise_de_poste.js +43 -1
- package/dist/models/_ramassage_chauffeur.d.ts +46 -1969
- package/dist/models/_ramassage_chauffeur.js +16 -2
- package/dist/models/_ref_import_export_price.d.ts +31 -0
- package/dist/models/_ref_import_export_price.js +12 -1
- package/dist/models/_shipping.d.ts +1512 -1187
- package/dist/models/_shipping.js +103 -3
- package/dist/models/_shipping_affected.d.ts +23 -1967
- package/dist/models/_shipping_affected.js +9 -2
- package/dist/models/_shipping_classification.d.ts +68 -1967
- package/dist/models/_shipping_classification.js +24 -2
- package/dist/models/_shipping_comment.d.ts +26 -1967
- package/dist/models/_shipping_comment.js +10 -2
- package/dist/models/_shipping_course.d.ts +48 -1971
- package/dist/models/_shipping_course.js +16 -2
- package/dist/models/_shipping_detail.d.ts +64 -1969
- package/dist/models/_shipping_detail.js +21 -2
- package/dist/models/_shipping_detail_info_supplementaire.d.ts +83 -1967
- package/dist/models/_shipping_detail_info_supplementaire.js +29 -2
- package/dist/models/_shipping_document.d.ts +32 -1967
- package/dist/models/_shipping_document.js +12 -2
- package/dist/models/_shipping_emballage.d.ts +52 -1975
- package/dist/models/_shipping_emballage.js +16 -2
- package/dist/models/_shipping_manifest.d.ts +93 -2037
- package/dist/models/_shipping_manifest.js +9 -2
- package/dist/models/_shipping_package.d.ts +83 -1979
- package/dist/models/_shipping_package.js +25 -2
- package/dist/models/_shipping_pod.d.ts +37 -1969
- package/dist/models/_shipping_pod.js +13 -2
- package/dist/models/_shipping_proforma.d.ts +41 -1967
- package/dist/models/_shipping_proforma.js +15 -2
- package/dist/models/_shipping_proforma_line.d.ts +43 -2459
- package/dist/models/_shipping_proforma_line.js +14 -1
- package/dist/models/_shipping_tracking.d.ts +74 -1967
- package/dist/models/_shipping_tracking.js +29 -2
- package/dist/models/_tracking_visible.d.ts +19 -0
- package/dist/models/_tracking_visible.js +8 -1
- package/dist/models/_user.d.ts +187 -0
- package/dist/models/_user.js +64 -1
- package/dist/models/_user_billing_center.d.ts +133 -114
- package/dist/models/_user_billing_center.js +8 -1
- package/dist/models/_user_login_historie.d.ts +34 -0
- package/dist/models/_user_login_historie.js +13 -1
- package/dist/models/_vehicule.d.ts +40 -0
- package/dist/models/_vehicule.js +15 -1
- package/dist/models/_vehicule_affected.d.ts +19 -0
- package/dist/models/_vehicule_affected.js +8 -1
- package/dist/routes/admin.d.ts +31424 -54208
- package/dist/routes/ops.d.ts +88423 -106783
- package/dist/routes/user.d.ts +31448 -25989
- package/package.json +2 -2
|
@@ -407,6 +407,160 @@ export declare const BillingCenterSchema: z.ZodObject<{
|
|
|
407
407
|
numeroSiret: string | null;
|
|
408
408
|
} | undefined;
|
|
409
409
|
}>;
|
|
410
|
+
export declare const BillingCenterSchemaSimple: z.ZodObject<{
|
|
411
|
+
id: z.ZodNumber;
|
|
412
|
+
createdAt: z.ZodEffects<z.ZodDate, DateTime<true> | DateTime<false>, Date>;
|
|
413
|
+
updatedAt: z.ZodEffects<z.ZodDate, DateTime<true> | DateTime<false>, Date>;
|
|
414
|
+
billingCenterName: z.ZodString;
|
|
415
|
+
numeroEori: z.ZodNullable<z.ZodString>;
|
|
416
|
+
numeroSiren: z.ZodNullable<z.ZodString>;
|
|
417
|
+
country: z.ZodString;
|
|
418
|
+
address: z.ZodString;
|
|
419
|
+
addressTwo: z.ZodNullable<z.ZodString>;
|
|
420
|
+
postalCode: z.ZodString;
|
|
421
|
+
city: z.ZodString;
|
|
422
|
+
telephoneOne: z.ZodString;
|
|
423
|
+
telephoneTwo: z.ZodNullable<z.ZodString>;
|
|
424
|
+
invoiceMailOne: z.ZodString;
|
|
425
|
+
invoiceMailTwo: z.ZodNullable<z.ZodString>;
|
|
426
|
+
dafResponsibleName: z.ZodNullable<z.ZodString>;
|
|
427
|
+
telephone: z.ZodNullable<z.ZodString>;
|
|
428
|
+
email: z.ZodNullable<z.ZodString>;
|
|
429
|
+
intraVatNumber: z.ZodNullable<z.ZodString>;
|
|
430
|
+
isSubmittedToFrenchVat: z.ZodBoolean;
|
|
431
|
+
comments: z.ZodNullable<z.ZodString>;
|
|
432
|
+
numCodeOne: z.ZodNullable<z.ZodString>;
|
|
433
|
+
numCodeTwo: z.ZodNullable<z.ZodString>;
|
|
434
|
+
isActiveMailInstruction: z.ZodBoolean;
|
|
435
|
+
isActif: z.ZodBoolean;
|
|
436
|
+
isActiveVariation: z.ZodBoolean;
|
|
437
|
+
isMailing: z.ZodBoolean;
|
|
438
|
+
isParis: z.ZodBoolean;
|
|
439
|
+
isMedical: z.ZodBoolean;
|
|
440
|
+
isService: z.ZodBoolean;
|
|
441
|
+
deuxBordereaux: z.ZodNullable<z.ZodString>;
|
|
442
|
+
dirigeant: z.ZodNullable<z.ZodString>;
|
|
443
|
+
dirigeantTel: z.ZodNullable<z.ZodString>;
|
|
444
|
+
dirigeantEmail: z.ZodNullable<z.ZodString>;
|
|
445
|
+
responsableComptable: z.ZodNullable<z.ZodString>;
|
|
446
|
+
responsableComptableTel: z.ZodNullable<z.ZodString>;
|
|
447
|
+
responsableComptableEmail: z.ZodNullable<z.ZodString>;
|
|
448
|
+
responsableDaf: z.ZodNullable<z.ZodString>;
|
|
449
|
+
responsableDafTel: z.ZodNullable<z.ZodString>;
|
|
450
|
+
responsableDafEmail: z.ZodNullable<z.ZodString>;
|
|
451
|
+
emailFacturation: z.ZodNullable<z.ZodString>;
|
|
452
|
+
logo: z.ZodNullable<z.ZodString>;
|
|
453
|
+
header: z.ZodNullable<z.ZodString>;
|
|
454
|
+
footer: z.ZodNullable<z.ZodString>;
|
|
455
|
+
emailOne: z.ZodNullable<z.ZodString>;
|
|
456
|
+
emailTwo: z.ZodNullable<z.ZodString>;
|
|
457
|
+
emailThree: z.ZodNullable<z.ZodString>;
|
|
458
|
+
eori: z.ZodNullable<z.ZodString>;
|
|
459
|
+
tva: z.ZodNullable<z.ZodString>;
|
|
460
|
+
customerId: z.ZodNullable<z.ZodNumber>;
|
|
461
|
+
}, "strip", z.ZodTypeAny, {
|
|
462
|
+
id: number;
|
|
463
|
+
createdAt: DateTime<true> | DateTime<false>;
|
|
464
|
+
updatedAt: DateTime<true> | DateTime<false>;
|
|
465
|
+
country: string;
|
|
466
|
+
address: string;
|
|
467
|
+
addressTwo: string | null;
|
|
468
|
+
postalCode: string;
|
|
469
|
+
city: string;
|
|
470
|
+
telephoneOne: string;
|
|
471
|
+
telephoneTwo: string | null;
|
|
472
|
+
dafResponsibleName: string | null;
|
|
473
|
+
telephone: string | null;
|
|
474
|
+
email: string | null;
|
|
475
|
+
intraVatNumber: string | null;
|
|
476
|
+
numeroEori: string | null;
|
|
477
|
+
comments: string | null;
|
|
478
|
+
numCodeOne: string | null;
|
|
479
|
+
numCodeTwo: string | null;
|
|
480
|
+
isActif: boolean;
|
|
481
|
+
isParis: boolean;
|
|
482
|
+
isMedical: boolean;
|
|
483
|
+
isService: boolean;
|
|
484
|
+
dirigeant: string | null;
|
|
485
|
+
dirigeantTel: string | null;
|
|
486
|
+
dirigeantEmail: string | null;
|
|
487
|
+
responsableComptable: string | null;
|
|
488
|
+
responsableComptableTel: string | null;
|
|
489
|
+
responsableComptableEmail: string | null;
|
|
490
|
+
responsableDaf: string | null;
|
|
491
|
+
responsableDafTel: string | null;
|
|
492
|
+
responsableDafEmail: string | null;
|
|
493
|
+
emailFacturation: string | null;
|
|
494
|
+
logo: string | null;
|
|
495
|
+
header: string | null;
|
|
496
|
+
footer: string | null;
|
|
497
|
+
emailOne: string | null;
|
|
498
|
+
emailTwo: string | null;
|
|
499
|
+
emailThree: string | null;
|
|
500
|
+
eori: string | null;
|
|
501
|
+
tva: string | null;
|
|
502
|
+
billingCenterName: string;
|
|
503
|
+
numeroSiren: string | null;
|
|
504
|
+
invoiceMailOne: string;
|
|
505
|
+
invoiceMailTwo: string | null;
|
|
506
|
+
isSubmittedToFrenchVat: boolean;
|
|
507
|
+
isActiveMailInstruction: boolean;
|
|
508
|
+
isActiveVariation: boolean;
|
|
509
|
+
isMailing: boolean;
|
|
510
|
+
deuxBordereaux: string | null;
|
|
511
|
+
customerId: number | null;
|
|
512
|
+
}, {
|
|
513
|
+
id: number;
|
|
514
|
+
createdAt: Date;
|
|
515
|
+
updatedAt: Date;
|
|
516
|
+
country: string;
|
|
517
|
+
address: string;
|
|
518
|
+
addressTwo: string | null;
|
|
519
|
+
postalCode: string;
|
|
520
|
+
city: string;
|
|
521
|
+
telephoneOne: string;
|
|
522
|
+
telephoneTwo: string | null;
|
|
523
|
+
dafResponsibleName: string | null;
|
|
524
|
+
telephone: string | null;
|
|
525
|
+
email: string | null;
|
|
526
|
+
intraVatNumber: string | null;
|
|
527
|
+
numeroEori: string | null;
|
|
528
|
+
comments: string | null;
|
|
529
|
+
numCodeOne: string | null;
|
|
530
|
+
numCodeTwo: string | null;
|
|
531
|
+
isActif: boolean;
|
|
532
|
+
isParis: boolean;
|
|
533
|
+
isMedical: boolean;
|
|
534
|
+
isService: boolean;
|
|
535
|
+
dirigeant: string | null;
|
|
536
|
+
dirigeantTel: string | null;
|
|
537
|
+
dirigeantEmail: string | null;
|
|
538
|
+
responsableComptable: string | null;
|
|
539
|
+
responsableComptableTel: string | null;
|
|
540
|
+
responsableComptableEmail: string | null;
|
|
541
|
+
responsableDaf: string | null;
|
|
542
|
+
responsableDafTel: string | null;
|
|
543
|
+
responsableDafEmail: string | null;
|
|
544
|
+
emailFacturation: string | null;
|
|
545
|
+
logo: string | null;
|
|
546
|
+
header: string | null;
|
|
547
|
+
footer: string | null;
|
|
548
|
+
emailOne: string | null;
|
|
549
|
+
emailTwo: string | null;
|
|
550
|
+
emailThree: string | null;
|
|
551
|
+
eori: string | null;
|
|
552
|
+
tva: string | null;
|
|
553
|
+
billingCenterName: string;
|
|
554
|
+
numeroSiren: string | null;
|
|
555
|
+
invoiceMailOne: string;
|
|
556
|
+
invoiceMailTwo: string | null;
|
|
557
|
+
isSubmittedToFrenchVat: boolean;
|
|
558
|
+
isActiveMailInstruction: boolean;
|
|
559
|
+
isActiveVariation: boolean;
|
|
560
|
+
isMailing: boolean;
|
|
561
|
+
deuxBordereaux: string | null;
|
|
562
|
+
customerId: number | null;
|
|
563
|
+
}>;
|
|
410
564
|
export declare const BillingCenterCreateSchema: z.ZodObject<{
|
|
411
565
|
billingCenterName: z.ZodString;
|
|
412
566
|
numeroEori: z.ZodOptional<z.ZodString>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BillingCenterUpdateSchema = exports.BillingCenterCreateSchema = exports.BillingCenterSchema = void 0;
|
|
3
|
+
exports.BillingCenterUpdateSchema = exports.BillingCenterCreateSchema = exports.BillingCenterSchemaSimple = exports.BillingCenterSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const luxon_1 = require("luxon");
|
|
6
6
|
const _customer_1 = require("./_customer");
|
|
@@ -57,6 +57,58 @@ exports.BillingCenterSchema = zod_1.z.object({
|
|
|
57
57
|
customerId: zod_1.z.number().nullable(),
|
|
58
58
|
customer: zod_1.z.lazy(() => _customer_1.CustomerSchema).optional(),
|
|
59
59
|
});
|
|
60
|
+
exports.BillingCenterSchemaSimple = zod_1.z.object({
|
|
61
|
+
id: zod_1.z.number(),
|
|
62
|
+
createdAt: zod_1.z.date().transform((date) => luxon_1.DateTime.fromJSDate(date)),
|
|
63
|
+
updatedAt: zod_1.z.date().transform((date) => luxon_1.DateTime.fromJSDate(date)),
|
|
64
|
+
billingCenterName: zod_1.z.string(),
|
|
65
|
+
numeroEori: zod_1.z.string().nullable(),
|
|
66
|
+
numeroSiren: zod_1.z.string().nullable(),
|
|
67
|
+
country: zod_1.z.string(),
|
|
68
|
+
address: zod_1.z.string(),
|
|
69
|
+
addressTwo: zod_1.z.string().nullable(),
|
|
70
|
+
postalCode: zod_1.z.string(),
|
|
71
|
+
city: zod_1.z.string(),
|
|
72
|
+
telephoneOne: zod_1.z.string(),
|
|
73
|
+
telephoneTwo: zod_1.z.string().nullable(),
|
|
74
|
+
invoiceMailOne: zod_1.z.string(),
|
|
75
|
+
invoiceMailTwo: zod_1.z.string().nullable(),
|
|
76
|
+
dafResponsibleName: zod_1.z.string().nullable(),
|
|
77
|
+
telephone: zod_1.z.string().nullable(),
|
|
78
|
+
email: zod_1.z.string().nullable(),
|
|
79
|
+
intraVatNumber: zod_1.z.string().nullable(),
|
|
80
|
+
isSubmittedToFrenchVat: zod_1.z.boolean(),
|
|
81
|
+
comments: zod_1.z.string().nullable(),
|
|
82
|
+
numCodeOne: zod_1.z.string().nullable(),
|
|
83
|
+
numCodeTwo: zod_1.z.string().nullable(),
|
|
84
|
+
isActiveMailInstruction: zod_1.z.boolean(),
|
|
85
|
+
isActif: zod_1.z.boolean(),
|
|
86
|
+
isActiveVariation: zod_1.z.boolean(),
|
|
87
|
+
isMailing: zod_1.z.boolean(),
|
|
88
|
+
isParis: zod_1.z.boolean(),
|
|
89
|
+
isMedical: zod_1.z.boolean(),
|
|
90
|
+
isService: zod_1.z.boolean(),
|
|
91
|
+
deuxBordereaux: zod_1.z.string().nullable(),
|
|
92
|
+
dirigeant: zod_1.z.string().nullable(),
|
|
93
|
+
dirigeantTel: zod_1.z.string().nullable(),
|
|
94
|
+
dirigeantEmail: zod_1.z.string().nullable(),
|
|
95
|
+
responsableComptable: zod_1.z.string().nullable(),
|
|
96
|
+
responsableComptableTel: zod_1.z.string().nullable(),
|
|
97
|
+
responsableComptableEmail: zod_1.z.string().nullable(),
|
|
98
|
+
responsableDaf: zod_1.z.string().nullable(),
|
|
99
|
+
responsableDafTel: zod_1.z.string().nullable(),
|
|
100
|
+
responsableDafEmail: zod_1.z.string().nullable(),
|
|
101
|
+
emailFacturation: zod_1.z.string().nullable(),
|
|
102
|
+
logo: zod_1.z.string().nullable(),
|
|
103
|
+
header: zod_1.z.string().nullable(),
|
|
104
|
+
footer: zod_1.z.string().nullable(),
|
|
105
|
+
emailOne: zod_1.z.string().nullable(),
|
|
106
|
+
emailTwo: zod_1.z.string().nullable(),
|
|
107
|
+
emailThree: zod_1.z.string().nullable(),
|
|
108
|
+
eori: zod_1.z.string().nullable(),
|
|
109
|
+
tva: zod_1.z.string().nullable(),
|
|
110
|
+
customerId: zod_1.z.number().nullable(),
|
|
111
|
+
});
|
|
60
112
|
exports.BillingCenterCreateSchema = zod_1.z.object({
|
|
61
113
|
billingCenterName: zod_1.z.string(),
|
|
62
114
|
numeroEori: zod_1.z.string().optional(),
|
|
@@ -93,4 +93,26 @@ export declare const CalculRangePriceSchema: z.ZodObject<{
|
|
|
93
93
|
maxRange: number | null;
|
|
94
94
|
} | undefined;
|
|
95
95
|
}>;
|
|
96
|
+
export declare const CalculRangePriceSchemaSingle: z.ZodObject<{
|
|
97
|
+
id: z.ZodNumber;
|
|
98
|
+
createdAt: z.ZodEffects<z.ZodDate, DateTime<true> | DateTime<false>, Date>;
|
|
99
|
+
updatedAt: z.ZodEffects<z.ZodDate, DateTime<true> | DateTime<false>, Date>;
|
|
100
|
+
valueRangePrice: z.ZodNumber;
|
|
101
|
+
countryId: z.ZodNullable<z.ZodNumber>;
|
|
102
|
+
calculRangeId: z.ZodNullable<z.ZodNumber>;
|
|
103
|
+
}, "strip", z.ZodTypeAny, {
|
|
104
|
+
id: number;
|
|
105
|
+
createdAt: DateTime<true> | DateTime<false>;
|
|
106
|
+
updatedAt: DateTime<true> | DateTime<false>;
|
|
107
|
+
valueRangePrice: number;
|
|
108
|
+
countryId: number | null;
|
|
109
|
+
calculRangeId: number | null;
|
|
110
|
+
}, {
|
|
111
|
+
id: number;
|
|
112
|
+
createdAt: Date;
|
|
113
|
+
updatedAt: Date;
|
|
114
|
+
valueRangePrice: number;
|
|
115
|
+
countryId: number | null;
|
|
116
|
+
calculRangeId: number | null;
|
|
117
|
+
}>;
|
|
96
118
|
export type ICalculRangePrice = z.infer<typeof CalculRangePriceSchema>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CalculRangePriceSchema = void 0;
|
|
3
|
+
exports.CalculRangePriceSchemaSingle = exports.CalculRangePriceSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const luxon_1 = require("luxon");
|
|
6
6
|
const _country_1 = require("./_country");
|
|
@@ -15,3 +15,11 @@ exports.CalculRangePriceSchema = zod_1.z.object({
|
|
|
15
15
|
country: zod_1.z.lazy(() => _country_1.CountrySchema).optional(),
|
|
16
16
|
calculRange: zod_1.z.lazy(() => _calcul_range_1.CalculRangeSchema).optional(),
|
|
17
17
|
});
|
|
18
|
+
exports.CalculRangePriceSchemaSingle = zod_1.z.object({
|
|
19
|
+
id: zod_1.z.number(),
|
|
20
|
+
createdAt: zod_1.z.date().transform((date) => luxon_1.DateTime.fromJSDate(date)),
|
|
21
|
+
updatedAt: zod_1.z.date().transform((date) => luxon_1.DateTime.fromJSDate(date)),
|
|
22
|
+
valueRangePrice: zod_1.z.number(),
|
|
23
|
+
countryId: zod_1.z.number().nullable(),
|
|
24
|
+
calculRangeId: zod_1.z.number().nullable(),
|
|
25
|
+
});
|
|
@@ -96,4 +96,29 @@ export declare const CalculWeightPriceSchema: z.ZodObject<{
|
|
|
96
96
|
maxRange: number | null;
|
|
97
97
|
} | undefined;
|
|
98
98
|
}>;
|
|
99
|
+
export declare const CalculWeightPriceSchemaSingle: z.ZodObject<{
|
|
100
|
+
id: z.ZodNumber;
|
|
101
|
+
createdAt: z.ZodEffects<z.ZodDate, DateTime<true> | DateTime<false>, Date>;
|
|
102
|
+
updatedAt: z.ZodEffects<z.ZodDate, DateTime<true> | DateTime<false>, Date>;
|
|
103
|
+
valueWeightPrice: z.ZodNumber;
|
|
104
|
+
addValue: z.ZodNumber;
|
|
105
|
+
countryId: z.ZodNullable<z.ZodNumber>;
|
|
106
|
+
calculRangeId: z.ZodNullable<z.ZodNumber>;
|
|
107
|
+
}, "strip", z.ZodTypeAny, {
|
|
108
|
+
id: number;
|
|
109
|
+
createdAt: DateTime<true> | DateTime<false>;
|
|
110
|
+
updatedAt: DateTime<true> | DateTime<false>;
|
|
111
|
+
countryId: number | null;
|
|
112
|
+
calculRangeId: number | null;
|
|
113
|
+
valueWeightPrice: number;
|
|
114
|
+
addValue: number;
|
|
115
|
+
}, {
|
|
116
|
+
id: number;
|
|
117
|
+
createdAt: Date;
|
|
118
|
+
updatedAt: Date;
|
|
119
|
+
countryId: number | null;
|
|
120
|
+
calculRangeId: number | null;
|
|
121
|
+
valueWeightPrice: number;
|
|
122
|
+
addValue: number;
|
|
123
|
+
}>;
|
|
99
124
|
export type ICalculWeightPrice = z.infer<typeof CalculWeightPriceSchema>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CalculWeightPriceSchema = void 0;
|
|
3
|
+
exports.CalculWeightPriceSchemaSingle = exports.CalculWeightPriceSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const luxon_1 = require("luxon");
|
|
6
6
|
const _country_1 = require("./_country");
|
|
@@ -16,3 +16,12 @@ exports.CalculWeightPriceSchema = zod_1.z.object({
|
|
|
16
16
|
country: zod_1.z.lazy(() => _country_1.CountrySchema).optional(),
|
|
17
17
|
calculRange: zod_1.z.lazy(() => _calcul_range_1.CalculRangeSchema).optional(),
|
|
18
18
|
});
|
|
19
|
+
exports.CalculWeightPriceSchemaSingle = zod_1.z.object({
|
|
20
|
+
id: zod_1.z.number(),
|
|
21
|
+
createdAt: zod_1.z.date().transform((date) => luxon_1.DateTime.fromJSDate(date)),
|
|
22
|
+
updatedAt: zod_1.z.date().transform((date) => luxon_1.DateTime.fromJSDate(date)),
|
|
23
|
+
valueWeightPrice: zod_1.z.number(),
|
|
24
|
+
addValue: zod_1.z.number(),
|
|
25
|
+
countryId: zod_1.z.number().nullable(),
|
|
26
|
+
calculRangeId: zod_1.z.number().nullable(),
|
|
27
|
+
});
|