exnet-routing 1.1.20 → 1.1.22
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/@test/routes/admin.test.js +5 -5
- package/dist/models/_banniere.d.ts +18 -18
- package/dist/models/_banniere.js +6 -6
- package/dist/models/_emballage.d.ts +7 -7
- package/dist/models/_shipping_emballage.d.ts +21 -21
- package/dist/models/_type_diagnobag.d.ts +9 -9
- package/dist/models/_type_diagnobag.js +3 -3
- package/dist/models/_type_emballage.d.ts +9 -9
- package/dist/models/_type_emballage.js +3 -3
- package/dist/models/_type_sonde.d.ts +9 -9
- package/dist/models/_type_sonde.js +3 -3
- package/dist/routes/admin.d.ts +150 -150
- package/dist/routes/user.d.ts +10 -10
- package/package.json +1 -1
|
@@ -70,8 +70,8 @@ describe("Admin Routes", () => {
|
|
|
70
70
|
const banniereData = {
|
|
71
71
|
libelle: "Test Banner",
|
|
72
72
|
contenus: "Test Content",
|
|
73
|
-
|
|
74
|
-
|
|
73
|
+
isActive: true,
|
|
74
|
+
isWithImage: false,
|
|
75
75
|
};
|
|
76
76
|
const mockResponse = {
|
|
77
77
|
success: true,
|
|
@@ -1343,7 +1343,7 @@ describe("Admin Routes", () => {
|
|
|
1343
1343
|
await api
|
|
1344
1344
|
.setHeaders({ Authorization: `Bearer ${authToken}` })
|
|
1345
1345
|
.routes()
|
|
1346
|
-
.admin.typeDiagnobag.update({ queryParams: { id: typeDiagnobagId.toString() }, body: {
|
|
1346
|
+
.admin.typeDiagnobag.update({ queryParams: { id: typeDiagnobagId.toString() }, body: { isActive: false } });
|
|
1347
1347
|
});
|
|
1348
1348
|
});
|
|
1349
1349
|
describe("typeEmballage", () => {
|
|
@@ -1462,7 +1462,7 @@ describe("Admin Routes", () => {
|
|
|
1462
1462
|
await api
|
|
1463
1463
|
.setHeaders({ Authorization: `Bearer ${authToken}` })
|
|
1464
1464
|
.routes()
|
|
1465
|
-
.admin.typeEmballage.update({ queryParams: { id: typeEmballageId.toString() }, body: {
|
|
1465
|
+
.admin.typeEmballage.update({ queryParams: { id: typeEmballageId.toString() }, body: { isActive: false } });
|
|
1466
1466
|
});
|
|
1467
1467
|
});
|
|
1468
1468
|
describe("typeSonde", () => {
|
|
@@ -1581,7 +1581,7 @@ describe("Admin Routes", () => {
|
|
|
1581
1581
|
await api
|
|
1582
1582
|
.setHeaders({ Authorization: `Bearer ${authToken}` })
|
|
1583
1583
|
.routes()
|
|
1584
|
-
.admin.typeSonde.update({ queryParams: { id: typeSondeId.toString() }, body: {
|
|
1584
|
+
.admin.typeSonde.update({ queryParams: { id: typeSondeId.toString() }, body: { isActive: false } });
|
|
1585
1585
|
});
|
|
1586
1586
|
});
|
|
1587
1587
|
describe("typeTransport", () => {
|
|
@@ -7,8 +7,8 @@ export declare const BanniereSchema: z.ZodObject<{
|
|
|
7
7
|
libelle: z.ZodNullable<z.ZodString>;
|
|
8
8
|
contenus: z.ZodNullable<z.ZodString>;
|
|
9
9
|
imageUrl: z.ZodNullable<z.ZodString>;
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
isActive: z.ZodBoolean;
|
|
11
|
+
isWithImage: z.ZodBoolean;
|
|
12
12
|
}, "strip", z.ZodTypeAny, {
|
|
13
13
|
id: number;
|
|
14
14
|
createdAt: DateTime<true> | DateTime<false>;
|
|
@@ -16,8 +16,8 @@ export declare const BanniereSchema: z.ZodObject<{
|
|
|
16
16
|
libelle: string | null;
|
|
17
17
|
contenus: string | null;
|
|
18
18
|
imageUrl: string | null;
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
isActive: boolean;
|
|
20
|
+
isWithImage: boolean;
|
|
21
21
|
}, {
|
|
22
22
|
id: number;
|
|
23
23
|
createdAt: Date;
|
|
@@ -25,45 +25,45 @@ export declare const BanniereSchema: z.ZodObject<{
|
|
|
25
25
|
libelle: string | null;
|
|
26
26
|
contenus: string | null;
|
|
27
27
|
imageUrl: string | null;
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
isActive: boolean;
|
|
29
|
+
isWithImage: boolean;
|
|
30
30
|
}>;
|
|
31
31
|
export declare const BanniereCreateSchema: z.ZodObject<{
|
|
32
32
|
libelle: z.ZodString;
|
|
33
33
|
contenus: z.ZodString;
|
|
34
34
|
image: z.ZodOptional<z.ZodAny>;
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
isActive: z.ZodBoolean;
|
|
36
|
+
isWithImage: z.ZodBoolean;
|
|
37
37
|
}, "strip", z.ZodTypeAny, {
|
|
38
38
|
libelle: string;
|
|
39
39
|
contenus: string;
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
isActive: boolean;
|
|
41
|
+
isWithImage: boolean;
|
|
42
42
|
image?: any;
|
|
43
43
|
}, {
|
|
44
44
|
libelle: string;
|
|
45
45
|
contenus: string;
|
|
46
|
-
|
|
47
|
-
|
|
46
|
+
isActive: boolean;
|
|
47
|
+
isWithImage: boolean;
|
|
48
48
|
image?: any;
|
|
49
49
|
}>;
|
|
50
50
|
export declare const BanniereUpdateSchema: z.ZodObject<{
|
|
51
51
|
libelle: z.ZodOptional<z.ZodString>;
|
|
52
52
|
contenus: z.ZodOptional<z.ZodString>;
|
|
53
53
|
image: z.ZodOptional<z.ZodAny>;
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
isActive: z.ZodOptional<z.ZodBoolean>;
|
|
55
|
+
isWithImage: z.ZodOptional<z.ZodBoolean>;
|
|
56
56
|
}, "strip", z.ZodTypeAny, {
|
|
57
57
|
libelle?: string | undefined;
|
|
58
58
|
contenus?: string | undefined;
|
|
59
|
-
|
|
60
|
-
|
|
59
|
+
isActive?: boolean | undefined;
|
|
60
|
+
isWithImage?: boolean | undefined;
|
|
61
61
|
image?: any;
|
|
62
62
|
}, {
|
|
63
63
|
libelle?: string | undefined;
|
|
64
64
|
contenus?: string | undefined;
|
|
65
|
-
|
|
66
|
-
|
|
65
|
+
isActive?: boolean | undefined;
|
|
66
|
+
isWithImage?: boolean | undefined;
|
|
67
67
|
image?: any;
|
|
68
68
|
}>;
|
|
69
69
|
export type IBanniere = z.infer<typeof BanniereSchema>;
|
package/dist/models/_banniere.js
CHANGED
|
@@ -10,20 +10,20 @@ exports.BanniereSchema = zod_1.z.object({
|
|
|
10
10
|
libelle: zod_1.z.string().nullable(),
|
|
11
11
|
contenus: zod_1.z.string().nullable(),
|
|
12
12
|
imageUrl: zod_1.z.string().nullable(),
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
isActive: zod_1.z.boolean(),
|
|
14
|
+
isWithImage: zod_1.z.boolean(),
|
|
15
15
|
});
|
|
16
16
|
exports.BanniereCreateSchema = zod_1.z.object({
|
|
17
17
|
libelle: zod_1.z.string(),
|
|
18
18
|
contenus: zod_1.z.string(),
|
|
19
19
|
image: zod_1.z.any().optional(), // Pour le file upload
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
isActive: zod_1.z.boolean(),
|
|
21
|
+
isWithImage: zod_1.z.boolean(),
|
|
22
22
|
});
|
|
23
23
|
exports.BanniereUpdateSchema = zod_1.z.object({
|
|
24
24
|
libelle: zod_1.z.string().optional(),
|
|
25
25
|
contenus: zod_1.z.string().optional(),
|
|
26
26
|
image: zod_1.z.any().optional(), // Pour le file upload
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
isActive: zod_1.z.boolean().optional(),
|
|
28
|
+
isWithImage: zod_1.z.boolean().optional(),
|
|
29
29
|
});
|
|
@@ -21,25 +21,24 @@ export declare const EmballageSchema: z.ZodObject<{
|
|
|
21
21
|
createdAt: z.ZodEffects<z.ZodDate, DateTime<true> | DateTime<false>, Date>;
|
|
22
22
|
updatedAt: z.ZodEffects<z.ZodDate, DateTime<true> | DateTime<false>, Date>;
|
|
23
23
|
libelle: z.ZodString;
|
|
24
|
-
|
|
24
|
+
isActive: z.ZodBoolean;
|
|
25
25
|
}, "strip", z.ZodTypeAny, {
|
|
26
26
|
id: number;
|
|
27
27
|
createdAt: DateTime<true> | DateTime<false>;
|
|
28
28
|
updatedAt: DateTime<true> | DateTime<false>;
|
|
29
29
|
libelle: string;
|
|
30
|
-
|
|
30
|
+
isActive: boolean;
|
|
31
31
|
}, {
|
|
32
32
|
id: number;
|
|
33
33
|
createdAt: Date;
|
|
34
34
|
updatedAt: Date;
|
|
35
35
|
libelle: string;
|
|
36
|
-
|
|
36
|
+
isActive: boolean;
|
|
37
37
|
}>>>;
|
|
38
38
|
}, "strip", z.ZodTypeAny, {
|
|
39
39
|
id: number;
|
|
40
40
|
createdAt: DateTime<true> | DateTime<false>;
|
|
41
41
|
updatedAt: DateTime<true> | DateTime<false>;
|
|
42
|
-
active: boolean;
|
|
43
42
|
nomProduit: string;
|
|
44
43
|
dimensionsExterieuresLongueur: number;
|
|
45
44
|
dimensionsExterieuresLargeur: number;
|
|
@@ -50,19 +49,19 @@ export declare const EmballageSchema: z.ZodObject<{
|
|
|
50
49
|
volumeUtile: number;
|
|
51
50
|
poids: number;
|
|
52
51
|
autonomie: number;
|
|
52
|
+
active: boolean;
|
|
53
53
|
typeEmballageId: number;
|
|
54
54
|
typeEmballage?: {
|
|
55
55
|
id: number;
|
|
56
56
|
createdAt: DateTime<true> | DateTime<false>;
|
|
57
57
|
updatedAt: DateTime<true> | DateTime<false>;
|
|
58
58
|
libelle: string;
|
|
59
|
-
|
|
59
|
+
isActive: boolean;
|
|
60
60
|
} | undefined;
|
|
61
61
|
}, {
|
|
62
62
|
id: number;
|
|
63
63
|
createdAt: Date;
|
|
64
64
|
updatedAt: Date;
|
|
65
|
-
active: boolean;
|
|
66
65
|
nomProduit: string;
|
|
67
66
|
dimensionsExterieuresLongueur: number;
|
|
68
67
|
dimensionsExterieuresLargeur: number;
|
|
@@ -73,13 +72,14 @@ export declare const EmballageSchema: z.ZodObject<{
|
|
|
73
72
|
volumeUtile: number;
|
|
74
73
|
poids: number;
|
|
75
74
|
autonomie: number;
|
|
75
|
+
active: boolean;
|
|
76
76
|
typeEmballageId: number;
|
|
77
77
|
typeEmballage?: {
|
|
78
78
|
id: number;
|
|
79
79
|
createdAt: Date;
|
|
80
80
|
updatedAt: Date;
|
|
81
81
|
libelle: string;
|
|
82
|
-
|
|
82
|
+
isActive: boolean;
|
|
83
83
|
} | undefined;
|
|
84
84
|
}>;
|
|
85
85
|
export type IEmballage = z.infer<typeof EmballageSchema>;
|
|
@@ -1673,25 +1673,24 @@ export declare const ShippingEmballageSchema: z.ZodObject<{
|
|
|
1673
1673
|
createdAt: z.ZodEffects<z.ZodDate, DateTime<true> | DateTime<false>, Date>;
|
|
1674
1674
|
updatedAt: z.ZodEffects<z.ZodDate, DateTime<true> | DateTime<false>, Date>;
|
|
1675
1675
|
libelle: z.ZodString;
|
|
1676
|
-
|
|
1676
|
+
isActive: z.ZodBoolean;
|
|
1677
1677
|
}, "strip", z.ZodTypeAny, {
|
|
1678
1678
|
id: number;
|
|
1679
1679
|
createdAt: DateTime<true> | DateTime<false>;
|
|
1680
1680
|
updatedAt: DateTime<true> | DateTime<false>;
|
|
1681
1681
|
libelle: string;
|
|
1682
|
-
|
|
1682
|
+
isActive: boolean;
|
|
1683
1683
|
}, {
|
|
1684
1684
|
id: number;
|
|
1685
1685
|
createdAt: Date;
|
|
1686
1686
|
updatedAt: Date;
|
|
1687
1687
|
libelle: string;
|
|
1688
|
-
|
|
1688
|
+
isActive: boolean;
|
|
1689
1689
|
}>>>;
|
|
1690
1690
|
}, "strip", z.ZodTypeAny, {
|
|
1691
1691
|
id: number;
|
|
1692
1692
|
createdAt: DateTime<true> | DateTime<false>;
|
|
1693
1693
|
updatedAt: DateTime<true> | DateTime<false>;
|
|
1694
|
-
active: boolean;
|
|
1695
1694
|
nomProduit: string;
|
|
1696
1695
|
dimensionsExterieuresLongueur: number;
|
|
1697
1696
|
dimensionsExterieuresLargeur: number;
|
|
@@ -1702,19 +1701,19 @@ export declare const ShippingEmballageSchema: z.ZodObject<{
|
|
|
1702
1701
|
volumeUtile: number;
|
|
1703
1702
|
poids: number;
|
|
1704
1703
|
autonomie: number;
|
|
1704
|
+
active: boolean;
|
|
1705
1705
|
typeEmballageId: number;
|
|
1706
1706
|
typeEmballage?: {
|
|
1707
1707
|
id: number;
|
|
1708
1708
|
createdAt: DateTime<true> | DateTime<false>;
|
|
1709
1709
|
updatedAt: DateTime<true> | DateTime<false>;
|
|
1710
1710
|
libelle: string;
|
|
1711
|
-
|
|
1711
|
+
isActive: boolean;
|
|
1712
1712
|
} | undefined;
|
|
1713
1713
|
}, {
|
|
1714
1714
|
id: number;
|
|
1715
1715
|
createdAt: Date;
|
|
1716
1716
|
updatedAt: Date;
|
|
1717
|
-
active: boolean;
|
|
1718
1717
|
nomProduit: string;
|
|
1719
1718
|
dimensionsExterieuresLongueur: number;
|
|
1720
1719
|
dimensionsExterieuresLargeur: number;
|
|
@@ -1725,13 +1724,14 @@ export declare const ShippingEmballageSchema: z.ZodObject<{
|
|
|
1725
1724
|
volumeUtile: number;
|
|
1726
1725
|
poids: number;
|
|
1727
1726
|
autonomie: number;
|
|
1727
|
+
active: boolean;
|
|
1728
1728
|
typeEmballageId: number;
|
|
1729
1729
|
typeEmballage?: {
|
|
1730
1730
|
id: number;
|
|
1731
1731
|
createdAt: Date;
|
|
1732
1732
|
updatedAt: Date;
|
|
1733
1733
|
libelle: string;
|
|
1734
|
-
|
|
1734
|
+
isActive: boolean;
|
|
1735
1735
|
} | undefined;
|
|
1736
1736
|
}>>>;
|
|
1737
1737
|
typesonde: z.ZodOptional<z.ZodLazy<z.ZodObject<{
|
|
@@ -1739,26 +1739,26 @@ export declare const ShippingEmballageSchema: z.ZodObject<{
|
|
|
1739
1739
|
createdAt: z.ZodEffects<z.ZodDate, DateTime<true> | DateTime<false>, Date>;
|
|
1740
1740
|
updatedAt: z.ZodEffects<z.ZodDate, DateTime<true> | DateTime<false>, Date>;
|
|
1741
1741
|
libelle: z.ZodString;
|
|
1742
|
-
|
|
1742
|
+
isActive: z.ZodBoolean;
|
|
1743
1743
|
}, "strip", z.ZodTypeAny, {
|
|
1744
1744
|
id: number;
|
|
1745
1745
|
createdAt: DateTime<true> | DateTime<false>;
|
|
1746
1746
|
updatedAt: DateTime<true> | DateTime<false>;
|
|
1747
1747
|
libelle: string;
|
|
1748
|
-
|
|
1748
|
+
isActive: boolean;
|
|
1749
1749
|
}, {
|
|
1750
1750
|
id: number;
|
|
1751
1751
|
createdAt: Date;
|
|
1752
1752
|
updatedAt: Date;
|
|
1753
1753
|
libelle: string;
|
|
1754
|
-
|
|
1754
|
+
isActive: boolean;
|
|
1755
1755
|
}>>>;
|
|
1756
1756
|
typediagnobag: z.ZodOptional<z.ZodLazy<z.ZodObject<{
|
|
1757
1757
|
id: z.ZodNumber;
|
|
1758
1758
|
createdAt: z.ZodEffects<z.ZodDate, DateTime<true> | DateTime<false>, Date>;
|
|
1759
1759
|
updatedAt: z.ZodEffects<z.ZodDate, DateTime<true> | DateTime<false>, Date>;
|
|
1760
1760
|
libelle: z.ZodString;
|
|
1761
|
-
|
|
1761
|
+
isActive: z.ZodBoolean;
|
|
1762
1762
|
longueur: z.ZodNumber;
|
|
1763
1763
|
largeur: z.ZodNumber;
|
|
1764
1764
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1766,7 +1766,7 @@ export declare const ShippingEmballageSchema: z.ZodObject<{
|
|
|
1766
1766
|
createdAt: DateTime<true> | DateTime<false>;
|
|
1767
1767
|
updatedAt: DateTime<true> | DateTime<false>;
|
|
1768
1768
|
libelle: string;
|
|
1769
|
-
|
|
1769
|
+
isActive: boolean;
|
|
1770
1770
|
longueur: number;
|
|
1771
1771
|
largeur: number;
|
|
1772
1772
|
}, {
|
|
@@ -1774,7 +1774,7 @@ export declare const ShippingEmballageSchema: z.ZodObject<{
|
|
|
1774
1774
|
createdAt: Date;
|
|
1775
1775
|
updatedAt: Date;
|
|
1776
1776
|
libelle: string;
|
|
1777
|
-
|
|
1777
|
+
isActive: boolean;
|
|
1778
1778
|
longueur: number;
|
|
1779
1779
|
largeur: number;
|
|
1780
1780
|
}>>>;
|
|
@@ -2092,7 +2092,6 @@ export declare const ShippingEmballageSchema: z.ZodObject<{
|
|
|
2092
2092
|
id: number;
|
|
2093
2093
|
createdAt: DateTime<true> | DateTime<false>;
|
|
2094
2094
|
updatedAt: DateTime<true> | DateTime<false>;
|
|
2095
|
-
active: boolean;
|
|
2096
2095
|
nomProduit: string;
|
|
2097
2096
|
dimensionsExterieuresLongueur: number;
|
|
2098
2097
|
dimensionsExterieuresLargeur: number;
|
|
@@ -2103,13 +2102,14 @@ export declare const ShippingEmballageSchema: z.ZodObject<{
|
|
|
2103
2102
|
volumeUtile: number;
|
|
2104
2103
|
poids: number;
|
|
2105
2104
|
autonomie: number;
|
|
2105
|
+
active: boolean;
|
|
2106
2106
|
typeEmballageId: number;
|
|
2107
2107
|
typeEmballage?: {
|
|
2108
2108
|
id: number;
|
|
2109
2109
|
createdAt: DateTime<true> | DateTime<false>;
|
|
2110
2110
|
updatedAt: DateTime<true> | DateTime<false>;
|
|
2111
2111
|
libelle: string;
|
|
2112
|
-
|
|
2112
|
+
isActive: boolean;
|
|
2113
2113
|
} | undefined;
|
|
2114
2114
|
} | undefined;
|
|
2115
2115
|
typesonde?: {
|
|
@@ -2117,14 +2117,14 @@ export declare const ShippingEmballageSchema: z.ZodObject<{
|
|
|
2117
2117
|
createdAt: DateTime<true> | DateTime<false>;
|
|
2118
2118
|
updatedAt: DateTime<true> | DateTime<false>;
|
|
2119
2119
|
libelle: string;
|
|
2120
|
-
|
|
2120
|
+
isActive: boolean;
|
|
2121
2121
|
} | undefined;
|
|
2122
2122
|
typediagnobag?: {
|
|
2123
2123
|
id: number;
|
|
2124
2124
|
createdAt: DateTime<true> | DateTime<false>;
|
|
2125
2125
|
updatedAt: DateTime<true> | DateTime<false>;
|
|
2126
2126
|
libelle: string;
|
|
2127
|
-
|
|
2127
|
+
isActive: boolean;
|
|
2128
2128
|
longueur: number;
|
|
2129
2129
|
largeur: number;
|
|
2130
2130
|
} | undefined;
|
|
@@ -2442,7 +2442,6 @@ export declare const ShippingEmballageSchema: z.ZodObject<{
|
|
|
2442
2442
|
id: number;
|
|
2443
2443
|
createdAt: Date;
|
|
2444
2444
|
updatedAt: Date;
|
|
2445
|
-
active: boolean;
|
|
2446
2445
|
nomProduit: string;
|
|
2447
2446
|
dimensionsExterieuresLongueur: number;
|
|
2448
2447
|
dimensionsExterieuresLargeur: number;
|
|
@@ -2453,13 +2452,14 @@ export declare const ShippingEmballageSchema: z.ZodObject<{
|
|
|
2453
2452
|
volumeUtile: number;
|
|
2454
2453
|
poids: number;
|
|
2455
2454
|
autonomie: number;
|
|
2455
|
+
active: boolean;
|
|
2456
2456
|
typeEmballageId: number;
|
|
2457
2457
|
typeEmballage?: {
|
|
2458
2458
|
id: number;
|
|
2459
2459
|
createdAt: Date;
|
|
2460
2460
|
updatedAt: Date;
|
|
2461
2461
|
libelle: string;
|
|
2462
|
-
|
|
2462
|
+
isActive: boolean;
|
|
2463
2463
|
} | undefined;
|
|
2464
2464
|
} | undefined;
|
|
2465
2465
|
typesonde?: {
|
|
@@ -2467,14 +2467,14 @@ export declare const ShippingEmballageSchema: z.ZodObject<{
|
|
|
2467
2467
|
createdAt: Date;
|
|
2468
2468
|
updatedAt: Date;
|
|
2469
2469
|
libelle: string;
|
|
2470
|
-
|
|
2470
|
+
isActive: boolean;
|
|
2471
2471
|
} | undefined;
|
|
2472
2472
|
typediagnobag?: {
|
|
2473
2473
|
id: number;
|
|
2474
2474
|
createdAt: Date;
|
|
2475
2475
|
updatedAt: Date;
|
|
2476
2476
|
libelle: string;
|
|
2477
|
-
|
|
2477
|
+
isActive: boolean;
|
|
2478
2478
|
longueur: number;
|
|
2479
2479
|
largeur: number;
|
|
2480
2480
|
} | undefined;
|
|
@@ -5,7 +5,7 @@ export declare const TypeDiagnobagSchema: z.ZodObject<{
|
|
|
5
5
|
createdAt: z.ZodEffects<z.ZodDate, DateTime<true> | DateTime<false>, Date>;
|
|
6
6
|
updatedAt: z.ZodEffects<z.ZodDate, DateTime<true> | DateTime<false>, Date>;
|
|
7
7
|
libelle: z.ZodString;
|
|
8
|
-
|
|
8
|
+
isActive: z.ZodBoolean;
|
|
9
9
|
longueur: z.ZodNumber;
|
|
10
10
|
largeur: z.ZodNumber;
|
|
11
11
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -13,7 +13,7 @@ export declare const TypeDiagnobagSchema: z.ZodObject<{
|
|
|
13
13
|
createdAt: DateTime<true> | DateTime<false>;
|
|
14
14
|
updatedAt: DateTime<true> | DateTime<false>;
|
|
15
15
|
libelle: string;
|
|
16
|
-
|
|
16
|
+
isActive: boolean;
|
|
17
17
|
longueur: number;
|
|
18
18
|
largeur: number;
|
|
19
19
|
}, {
|
|
@@ -21,39 +21,39 @@ export declare const TypeDiagnobagSchema: z.ZodObject<{
|
|
|
21
21
|
createdAt: Date;
|
|
22
22
|
updatedAt: Date;
|
|
23
23
|
libelle: string;
|
|
24
|
-
|
|
24
|
+
isActive: boolean;
|
|
25
25
|
longueur: number;
|
|
26
26
|
largeur: number;
|
|
27
27
|
}>;
|
|
28
28
|
export declare const TypeDiagnobagCreateSchema: z.ZodObject<{
|
|
29
29
|
libelle: z.ZodString;
|
|
30
|
-
|
|
30
|
+
isActive: z.ZodBoolean;
|
|
31
31
|
longueur: z.ZodNumber;
|
|
32
32
|
largeur: z.ZodNumber;
|
|
33
33
|
}, "strip", z.ZodTypeAny, {
|
|
34
34
|
libelle: string;
|
|
35
|
-
|
|
35
|
+
isActive: boolean;
|
|
36
36
|
longueur: number;
|
|
37
37
|
largeur: number;
|
|
38
38
|
}, {
|
|
39
39
|
libelle: string;
|
|
40
|
-
|
|
40
|
+
isActive: boolean;
|
|
41
41
|
longueur: number;
|
|
42
42
|
largeur: number;
|
|
43
43
|
}>;
|
|
44
44
|
export declare const TypeDiagnobagUpdateSchema: z.ZodObject<{
|
|
45
45
|
libelle: z.ZodOptional<z.ZodString>;
|
|
46
|
-
|
|
46
|
+
isActive: z.ZodOptional<z.ZodBoolean>;
|
|
47
47
|
longueur: z.ZodOptional<z.ZodNumber>;
|
|
48
48
|
largeur: z.ZodOptional<z.ZodNumber>;
|
|
49
49
|
}, "strip", z.ZodTypeAny, {
|
|
50
50
|
libelle?: string | undefined;
|
|
51
|
-
|
|
51
|
+
isActive?: boolean | undefined;
|
|
52
52
|
longueur?: number | undefined;
|
|
53
53
|
largeur?: number | undefined;
|
|
54
54
|
}, {
|
|
55
55
|
libelle?: string | undefined;
|
|
56
|
-
|
|
56
|
+
isActive?: boolean | undefined;
|
|
57
57
|
longueur?: number | undefined;
|
|
58
58
|
largeur?: number | undefined;
|
|
59
59
|
}>;
|
|
@@ -8,19 +8,19 @@ exports.TypeDiagnobagSchema = zod_1.z.object({
|
|
|
8
8
|
createdAt: zod_1.z.date().transform((date) => luxon_1.DateTime.fromJSDate(date)),
|
|
9
9
|
updatedAt: zod_1.z.date().transform((date) => luxon_1.DateTime.fromJSDate(date)),
|
|
10
10
|
libelle: zod_1.z.string(),
|
|
11
|
-
|
|
11
|
+
isActive: zod_1.z.boolean(),
|
|
12
12
|
longueur: zod_1.z.number(),
|
|
13
13
|
largeur: zod_1.z.number(),
|
|
14
14
|
});
|
|
15
15
|
exports.TypeDiagnobagCreateSchema = zod_1.z.object({
|
|
16
16
|
libelle: zod_1.z.string(),
|
|
17
|
-
|
|
17
|
+
isActive: zod_1.z.boolean(),
|
|
18
18
|
longueur: zod_1.z.number(),
|
|
19
19
|
largeur: zod_1.z.number(),
|
|
20
20
|
});
|
|
21
21
|
exports.TypeDiagnobagUpdateSchema = zod_1.z.object({
|
|
22
22
|
libelle: zod_1.z.string().optional(),
|
|
23
|
-
|
|
23
|
+
isActive: zod_1.z.boolean().optional(),
|
|
24
24
|
longueur: zod_1.z.number().optional(),
|
|
25
25
|
largeur: zod_1.z.number().optional(),
|
|
26
26
|
});
|
|
@@ -5,39 +5,39 @@ export declare const TypeEmballageSchema: z.ZodObject<{
|
|
|
5
5
|
createdAt: z.ZodEffects<z.ZodDate, DateTime<true> | DateTime<false>, Date>;
|
|
6
6
|
updatedAt: z.ZodEffects<z.ZodDate, DateTime<true> | DateTime<false>, Date>;
|
|
7
7
|
libelle: z.ZodString;
|
|
8
|
-
|
|
8
|
+
isActive: z.ZodBoolean;
|
|
9
9
|
}, "strip", z.ZodTypeAny, {
|
|
10
10
|
id: number;
|
|
11
11
|
createdAt: DateTime<true> | DateTime<false>;
|
|
12
12
|
updatedAt: DateTime<true> | DateTime<false>;
|
|
13
13
|
libelle: string;
|
|
14
|
-
|
|
14
|
+
isActive: boolean;
|
|
15
15
|
}, {
|
|
16
16
|
id: number;
|
|
17
17
|
createdAt: Date;
|
|
18
18
|
updatedAt: Date;
|
|
19
19
|
libelle: string;
|
|
20
|
-
|
|
20
|
+
isActive: boolean;
|
|
21
21
|
}>;
|
|
22
22
|
export declare const TypeEmballageCreateSchema: z.ZodObject<{
|
|
23
23
|
libelle: z.ZodString;
|
|
24
|
-
|
|
24
|
+
isActive: z.ZodBoolean;
|
|
25
25
|
}, "strip", z.ZodTypeAny, {
|
|
26
26
|
libelle: string;
|
|
27
|
-
|
|
27
|
+
isActive: boolean;
|
|
28
28
|
}, {
|
|
29
29
|
libelle: string;
|
|
30
|
-
|
|
30
|
+
isActive: boolean;
|
|
31
31
|
}>;
|
|
32
32
|
export declare const TypeEmballageUpdateSchema: z.ZodObject<{
|
|
33
33
|
libelle: z.ZodOptional<z.ZodString>;
|
|
34
|
-
|
|
34
|
+
isActive: z.ZodOptional<z.ZodBoolean>;
|
|
35
35
|
}, "strip", z.ZodTypeAny, {
|
|
36
36
|
libelle?: string | undefined;
|
|
37
|
-
|
|
37
|
+
isActive?: boolean | undefined;
|
|
38
38
|
}, {
|
|
39
39
|
libelle?: string | undefined;
|
|
40
|
-
|
|
40
|
+
isActive?: boolean | undefined;
|
|
41
41
|
}>;
|
|
42
42
|
export type ITypeEmballage = z.infer<typeof TypeEmballageSchema>;
|
|
43
43
|
export type ITypeEmballageCreate = z.infer<typeof TypeEmballageCreateSchema>;
|
|
@@ -8,13 +8,13 @@ exports.TypeEmballageSchema = zod_1.z.object({
|
|
|
8
8
|
createdAt: zod_1.z.date().transform((date) => luxon_1.DateTime.fromJSDate(date)),
|
|
9
9
|
updatedAt: zod_1.z.date().transform((date) => luxon_1.DateTime.fromJSDate(date)),
|
|
10
10
|
libelle: zod_1.z.string(),
|
|
11
|
-
|
|
11
|
+
isActive: zod_1.z.boolean(),
|
|
12
12
|
});
|
|
13
13
|
exports.TypeEmballageCreateSchema = zod_1.z.object({
|
|
14
14
|
libelle: zod_1.z.string(),
|
|
15
|
-
|
|
15
|
+
isActive: zod_1.z.boolean(),
|
|
16
16
|
});
|
|
17
17
|
exports.TypeEmballageUpdateSchema = zod_1.z.object({
|
|
18
18
|
libelle: zod_1.z.string().optional(),
|
|
19
|
-
|
|
19
|
+
isActive: zod_1.z.boolean().optional(),
|
|
20
20
|
});
|
|
@@ -5,39 +5,39 @@ export declare const TypeSondeSchema: z.ZodObject<{
|
|
|
5
5
|
createdAt: z.ZodEffects<z.ZodDate, DateTime<true> | DateTime<false>, Date>;
|
|
6
6
|
updatedAt: z.ZodEffects<z.ZodDate, DateTime<true> | DateTime<false>, Date>;
|
|
7
7
|
libelle: z.ZodString;
|
|
8
|
-
|
|
8
|
+
isActive: z.ZodBoolean;
|
|
9
9
|
}, "strip", z.ZodTypeAny, {
|
|
10
10
|
id: number;
|
|
11
11
|
createdAt: DateTime<true> | DateTime<false>;
|
|
12
12
|
updatedAt: DateTime<true> | DateTime<false>;
|
|
13
13
|
libelle: string;
|
|
14
|
-
|
|
14
|
+
isActive: boolean;
|
|
15
15
|
}, {
|
|
16
16
|
id: number;
|
|
17
17
|
createdAt: Date;
|
|
18
18
|
updatedAt: Date;
|
|
19
19
|
libelle: string;
|
|
20
|
-
|
|
20
|
+
isActive: boolean;
|
|
21
21
|
}>;
|
|
22
22
|
export declare const TypeSondeCreateSchema: z.ZodObject<{
|
|
23
23
|
libelle: z.ZodString;
|
|
24
|
-
|
|
24
|
+
isActive: z.ZodBoolean;
|
|
25
25
|
}, "strip", z.ZodTypeAny, {
|
|
26
26
|
libelle: string;
|
|
27
|
-
|
|
27
|
+
isActive: boolean;
|
|
28
28
|
}, {
|
|
29
29
|
libelle: string;
|
|
30
|
-
|
|
30
|
+
isActive: boolean;
|
|
31
31
|
}>;
|
|
32
32
|
export declare const TypeSondeUpdateSchema: z.ZodObject<{
|
|
33
33
|
libelle: z.ZodOptional<z.ZodString>;
|
|
34
|
-
|
|
34
|
+
isActive: z.ZodOptional<z.ZodBoolean>;
|
|
35
35
|
}, "strip", z.ZodTypeAny, {
|
|
36
36
|
libelle?: string | undefined;
|
|
37
|
-
|
|
37
|
+
isActive?: boolean | undefined;
|
|
38
38
|
}, {
|
|
39
39
|
libelle?: string | undefined;
|
|
40
|
-
|
|
40
|
+
isActive?: boolean | undefined;
|
|
41
41
|
}>;
|
|
42
42
|
export type ITypeSonde = z.infer<typeof TypeSondeSchema>;
|
|
43
43
|
export type ITypeSondeCreate = z.infer<typeof TypeSondeCreateSchema>;
|
|
@@ -8,13 +8,13 @@ exports.TypeSondeSchema = zod_1.z.object({
|
|
|
8
8
|
createdAt: zod_1.z.date().transform((date) => luxon_1.DateTime.fromJSDate(date)),
|
|
9
9
|
updatedAt: zod_1.z.date().transform((date) => luxon_1.DateTime.fromJSDate(date)),
|
|
10
10
|
libelle: zod_1.z.string(),
|
|
11
|
-
|
|
11
|
+
isActive: zod_1.z.boolean(),
|
|
12
12
|
});
|
|
13
13
|
exports.TypeSondeCreateSchema = zod_1.z.object({
|
|
14
14
|
libelle: zod_1.z.string(),
|
|
15
|
-
|
|
15
|
+
isActive: zod_1.z.boolean(),
|
|
16
16
|
});
|
|
17
17
|
exports.TypeSondeUpdateSchema = zod_1.z.object({
|
|
18
18
|
libelle: zod_1.z.string().optional(),
|
|
19
|
-
|
|
19
|
+
isActive: zod_1.z.boolean().optional(),
|
|
20
20
|
});
|