colibris-types 2.1.0 → 2.2.1
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/lib/chart-settings.d.ts +111 -0
- package/lib/chart-settings.js +24 -0
- package/lib/imports/assets.d.ts +226 -217
- package/lib/imports/assets.js +57 -119
- package/lib/imports/index.d.ts +75 -72
- package/lib/index.d.ts +1 -0
- package/lib/index.js +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const ChartRefLineSchema: z.ZodObject<{
|
|
3
|
+
key: z.ZodString;
|
|
4
|
+
tabKey: z.ZodOptional<z.ZodString>;
|
|
5
|
+
value: z.ZodOptional<z.ZodNumber>;
|
|
6
|
+
alert: z.ZodOptional<z.ZodObject<{
|
|
7
|
+
direction: z.ZodEnum<["up", "down"]>;
|
|
8
|
+
apiEndpoint: z.ZodString;
|
|
9
|
+
metricKey: z.ZodString;
|
|
10
|
+
aggregation: z.ZodEnum<["last", "sum"]>;
|
|
11
|
+
}, "strip", z.ZodTypeAny, {
|
|
12
|
+
direction: "up" | "down";
|
|
13
|
+
apiEndpoint: string;
|
|
14
|
+
metricKey: string;
|
|
15
|
+
aggregation: "last" | "sum";
|
|
16
|
+
}, {
|
|
17
|
+
direction: "up" | "down";
|
|
18
|
+
apiEndpoint: string;
|
|
19
|
+
metricKey: string;
|
|
20
|
+
aggregation: "last" | "sum";
|
|
21
|
+
}>>;
|
|
22
|
+
}, "strip", z.ZodTypeAny, {
|
|
23
|
+
key: string;
|
|
24
|
+
value?: number | undefined;
|
|
25
|
+
tabKey?: string | undefined;
|
|
26
|
+
alert?: {
|
|
27
|
+
direction: "up" | "down";
|
|
28
|
+
apiEndpoint: string;
|
|
29
|
+
metricKey: string;
|
|
30
|
+
aggregation: "last" | "sum";
|
|
31
|
+
} | undefined;
|
|
32
|
+
}, {
|
|
33
|
+
key: string;
|
|
34
|
+
value?: number | undefined;
|
|
35
|
+
tabKey?: string | undefined;
|
|
36
|
+
alert?: {
|
|
37
|
+
direction: "up" | "down";
|
|
38
|
+
apiEndpoint: string;
|
|
39
|
+
metricKey: string;
|
|
40
|
+
aggregation: "last" | "sum";
|
|
41
|
+
} | undefined;
|
|
42
|
+
}>;
|
|
43
|
+
export declare const ChartSettingsSchema: z.ZodObject<{
|
|
44
|
+
charts: z.ZodArray<z.ZodObject<{
|
|
45
|
+
key: z.ZodString;
|
|
46
|
+
tabKey: z.ZodOptional<z.ZodString>;
|
|
47
|
+
value: z.ZodOptional<z.ZodNumber>;
|
|
48
|
+
alert: z.ZodOptional<z.ZodObject<{
|
|
49
|
+
direction: z.ZodEnum<["up", "down"]>;
|
|
50
|
+
apiEndpoint: z.ZodString;
|
|
51
|
+
metricKey: z.ZodString;
|
|
52
|
+
aggregation: z.ZodEnum<["last", "sum"]>;
|
|
53
|
+
}, "strip", z.ZodTypeAny, {
|
|
54
|
+
direction: "up" | "down";
|
|
55
|
+
apiEndpoint: string;
|
|
56
|
+
metricKey: string;
|
|
57
|
+
aggregation: "last" | "sum";
|
|
58
|
+
}, {
|
|
59
|
+
direction: "up" | "down";
|
|
60
|
+
apiEndpoint: string;
|
|
61
|
+
metricKey: string;
|
|
62
|
+
aggregation: "last" | "sum";
|
|
63
|
+
}>>;
|
|
64
|
+
}, "strip", z.ZodTypeAny, {
|
|
65
|
+
key: string;
|
|
66
|
+
value?: number | undefined;
|
|
67
|
+
tabKey?: string | undefined;
|
|
68
|
+
alert?: {
|
|
69
|
+
direction: "up" | "down";
|
|
70
|
+
apiEndpoint: string;
|
|
71
|
+
metricKey: string;
|
|
72
|
+
aggregation: "last" | "sum";
|
|
73
|
+
} | undefined;
|
|
74
|
+
}, {
|
|
75
|
+
key: string;
|
|
76
|
+
value?: number | undefined;
|
|
77
|
+
tabKey?: string | undefined;
|
|
78
|
+
alert?: {
|
|
79
|
+
direction: "up" | "down";
|
|
80
|
+
apiEndpoint: string;
|
|
81
|
+
metricKey: string;
|
|
82
|
+
aggregation: "last" | "sum";
|
|
83
|
+
} | undefined;
|
|
84
|
+
}>, "many">;
|
|
85
|
+
}, "strip", z.ZodTypeAny, {
|
|
86
|
+
charts: {
|
|
87
|
+
key: string;
|
|
88
|
+
value?: number | undefined;
|
|
89
|
+
tabKey?: string | undefined;
|
|
90
|
+
alert?: {
|
|
91
|
+
direction: "up" | "down";
|
|
92
|
+
apiEndpoint: string;
|
|
93
|
+
metricKey: string;
|
|
94
|
+
aggregation: "last" | "sum";
|
|
95
|
+
} | undefined;
|
|
96
|
+
}[];
|
|
97
|
+
}, {
|
|
98
|
+
charts: {
|
|
99
|
+
key: string;
|
|
100
|
+
value?: number | undefined;
|
|
101
|
+
tabKey?: string | undefined;
|
|
102
|
+
alert?: {
|
|
103
|
+
direction: "up" | "down";
|
|
104
|
+
apiEndpoint: string;
|
|
105
|
+
metricKey: string;
|
|
106
|
+
aggregation: "last" | "sum";
|
|
107
|
+
} | undefined;
|
|
108
|
+
}[];
|
|
109
|
+
}>;
|
|
110
|
+
export type ChartRefLine = z.infer<typeof ChartRefLineSchema>;
|
|
111
|
+
export type ChartSettings = z.infer<typeof ChartSettingsSchema>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { extendZodWithOpenApi } from "@asteasolutions/zod-to-openapi";
|
|
3
|
+
extendZodWithOpenApi(z);
|
|
4
|
+
export const ChartRefLineSchema = z
|
|
5
|
+
.object({
|
|
6
|
+
key: z.string().openapi({ description: "Chart identifier for notification navigation" }),
|
|
7
|
+
tabKey: z.string().optional().openapi({ description: "Tab identifier for multi-tab charts" }),
|
|
8
|
+
value: z.number().optional().openapi({ description: "Threshold value" }),
|
|
9
|
+
alert: z
|
|
10
|
+
.object({
|
|
11
|
+
direction: z.enum(["up", "down"]).openapi({ description: "Alert direction" }),
|
|
12
|
+
apiEndpoint: z.string().openapi({ description: "API endpoint to fetch metric" }),
|
|
13
|
+
metricKey: z.string().openapi({ description: "Metric key to compare" }),
|
|
14
|
+
aggregation: z.enum(["last", "sum"]).openapi({ description: "Aggregation method" }),
|
|
15
|
+
})
|
|
16
|
+
.optional()
|
|
17
|
+
.openapi({ description: "Alert configuration" }),
|
|
18
|
+
})
|
|
19
|
+
.openapi("ChartRefLine");
|
|
20
|
+
export const ChartSettingsSchema = z
|
|
21
|
+
.object({
|
|
22
|
+
charts: z.array(ChartRefLineSchema).openapi({ description: "User chart reference lines" }),
|
|
23
|
+
})
|
|
24
|
+
.openapi("ChartSettings");
|
package/lib/imports/assets.d.ts
CHANGED
|
@@ -1,376 +1,385 @@
|
|
|
1
|
-
import { z } from
|
|
1
|
+
import { z } from 'zod';
|
|
2
2
|
export declare const ComputerUploadRowSchema: z.ZodObject<{
|
|
3
3
|
ID: z.ZodString;
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
'N\u00B0 de s\u00E9rie': z.ZodOptional<z.ZodString>;
|
|
5
|
+
'N\u00B0 Interne': z.ZodOptional<z.ZodString>;
|
|
6
6
|
Propriétaire: z.ZodOptional<z.ZodString>;
|
|
7
7
|
Type: z.ZodOptional<z.ZodString>;
|
|
8
8
|
Constructeur: z.ZodOptional<z.ZodString>;
|
|
9
|
-
|
|
9
|
+
'Code produit': z.ZodOptional<z.ZodString>;
|
|
10
10
|
Label: z.ZodString;
|
|
11
11
|
CPU: z.ZodOptional<z.ZodString>;
|
|
12
12
|
OS: z.ZodOptional<z.ZodString>;
|
|
13
13
|
RAM: z.ZodOptional<z.ZodString>;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
14
|
+
'M\u00E9moire Disque': z.ZodOptional<z.ZodString>;
|
|
15
|
+
'Adresse IP': z.ZodOptional<z.ZodString>;
|
|
16
|
+
'N\u00B0 de Commande': z.ZodOptional<z.ZodString>;
|
|
17
|
+
'Date de la Commande': z.ZodOptional<z.ZodString>;
|
|
18
|
+
'Date de livraison': z.ZodOptional<z.ZodString>;
|
|
19
19
|
"Date d'entr\u00E9e": z.ZodOptional<z.ZodString>;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
20
|
+
'Date pr\u00E9vi': z.ZodOptional<z.ZodString>;
|
|
21
|
+
'Date de sortie': z.ZodOptional<z.ZodString>;
|
|
22
|
+
'Motif de sortie': z.ZodOptional<z.ZodString>;
|
|
23
|
+
'Montant de la valorisation': z.ZodOptional<z.ZodPipeline<z.ZodEffects<z.ZodString, number, string>, z.ZodNumber>>;
|
|
24
|
+
'Co\u00FBts de r\u00E9trologistique': z.ZodOptional<z.ZodPipeline<z.ZodEffects<z.ZodString, number, string>, z.ZodNumber>>;
|
|
25
25
|
Grade: z.ZodOptional<z.ZodString>;
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
26
|
+
'Montant Remboursement Assurance': z.ZodOptional<z.ZodPipeline<z.ZodEffects<z.ZodString, number, string>, z.ZodNumber>>;
|
|
27
|
+
'Montant de la franchise': z.ZodOptional<z.ZodPipeline<z.ZodEffects<z.ZodString, number, string>, z.ZodNumber>>;
|
|
28
|
+
'Date de Remboursement Assurance': z.ZodOptional<z.ZodString>;
|
|
29
|
+
'Date de facture': z.ZodOptional<z.ZodString>;
|
|
30
|
+
'N\u00B0 Facture': z.ZodOptional<z.ZodString>;
|
|
31
31
|
Avenant: z.ZodOptional<z.ZodString>;
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
'Prix unitaire': z.ZodOptional<z.ZodPipeline<z.ZodEffects<z.ZodString, number, string>, z.ZodNumber>>;
|
|
33
|
+
'Valeur Nette R\u00E9siduelle Comptable': z.ZodOptional<z.ZodPipeline<z.ZodEffects<z.ZodString, number, string>, z.ZodNumber>>;
|
|
34
34
|
Matricule: z.ZodOptional<z.ZodString>;
|
|
35
35
|
Statut: z.ZodOptional<z.ZodString>;
|
|
36
36
|
Site: z.ZodOptional<z.ZodString>;
|
|
37
37
|
Filiale: z.ZodOptional<z.ZodString>;
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
'Montant R\u00E9paration': z.ZodOptional<z.ZodPipeline<z.ZodEffects<z.ZodString, number, string>, z.ZodNumber>>;
|
|
39
|
+
'N\u00B0 de PV': z.ZodOptional<z.ZodString>;
|
|
40
40
|
Loyer: z.ZodOptional<z.ZodPipeline<z.ZodEffects<z.ZodString, number, string>, z.ZodNumber>>;
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
'B\u00E9n\u00E9ficiaire du Don': z.ZodOptional<z.ZodString>;
|
|
42
|
+
'Date du Don': z.ZodOptional<z.ZodString>;
|
|
43
|
+
'Etat Acquisition': z.ZodOptional<z.ZodEnum<["NEUF", "RECONDITIONNÉ", "REMANUFACTURÉ"]>>;
|
|
43
44
|
}, "strip", z.ZodTypeAny, {
|
|
44
45
|
ID: string;
|
|
45
46
|
Label: string;
|
|
46
47
|
Matricule?: string | undefined;
|
|
47
48
|
Filiale?: string | undefined;
|
|
48
|
-
|
|
49
|
-
|
|
49
|
+
'N\u00B0 de s\u00E9rie'?: string | undefined;
|
|
50
|
+
'N\u00B0 Interne'?: string | undefined;
|
|
50
51
|
Propriétaire?: string | undefined;
|
|
51
52
|
Type?: string | undefined;
|
|
52
53
|
Constructeur?: string | undefined;
|
|
53
|
-
|
|
54
|
+
'Code produit'?: string | undefined;
|
|
54
55
|
CPU?: string | undefined;
|
|
55
56
|
OS?: string | undefined;
|
|
56
57
|
RAM?: string | undefined;
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
58
|
+
'M\u00E9moire Disque'?: string | undefined;
|
|
59
|
+
'Adresse IP'?: string | undefined;
|
|
60
|
+
'N\u00B0 de Commande'?: string | undefined;
|
|
61
|
+
'Date de la Commande'?: string | undefined;
|
|
62
|
+
'Date de livraison'?: string | undefined;
|
|
62
63
|
"Date d'entr\u00E9e"?: string | undefined;
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
64
|
+
'Date pr\u00E9vi'?: string | undefined;
|
|
65
|
+
'Date de sortie'?: string | undefined;
|
|
66
|
+
'Motif de sortie'?: string | undefined;
|
|
67
|
+
'Montant de la valorisation'?: number | undefined;
|
|
68
|
+
'Co\u00FBts de r\u00E9trologistique'?: number | undefined;
|
|
68
69
|
Grade?: string | undefined;
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
70
|
+
'Montant Remboursement Assurance'?: number | undefined;
|
|
71
|
+
'Montant de la franchise'?: number | undefined;
|
|
72
|
+
'Date de Remboursement Assurance'?: string | undefined;
|
|
73
|
+
'Date de facture'?: string | undefined;
|
|
74
|
+
'N\u00B0 Facture'?: string | undefined;
|
|
74
75
|
Avenant?: string | undefined;
|
|
75
|
-
|
|
76
|
-
|
|
76
|
+
'Prix unitaire'?: number | undefined;
|
|
77
|
+
'Valeur Nette R\u00E9siduelle Comptable'?: number | undefined;
|
|
77
78
|
Statut?: string | undefined;
|
|
78
79
|
Site?: string | undefined;
|
|
79
|
-
|
|
80
|
-
|
|
80
|
+
'Montant R\u00E9paration'?: number | undefined;
|
|
81
|
+
'N\u00B0 de PV'?: string | undefined;
|
|
81
82
|
Loyer?: number | undefined;
|
|
82
|
-
|
|
83
|
-
|
|
83
|
+
'B\u00E9n\u00E9ficiaire du Don'?: string | undefined;
|
|
84
|
+
'Date du Don'?: string | undefined;
|
|
85
|
+
'Etat Acquisition'?: "NEUF" | "RECONDITIONNÉ" | "REMANUFACTURÉ" | undefined;
|
|
84
86
|
}, {
|
|
85
87
|
ID: string;
|
|
86
88
|
Label: string;
|
|
87
89
|
Matricule?: string | undefined;
|
|
88
90
|
Filiale?: string | undefined;
|
|
89
|
-
|
|
90
|
-
|
|
91
|
+
'N\u00B0 de s\u00E9rie'?: string | undefined;
|
|
92
|
+
'N\u00B0 Interne'?: string | undefined;
|
|
91
93
|
Propriétaire?: string | undefined;
|
|
92
94
|
Type?: string | undefined;
|
|
93
95
|
Constructeur?: string | undefined;
|
|
94
|
-
|
|
96
|
+
'Code produit'?: string | undefined;
|
|
95
97
|
CPU?: string | undefined;
|
|
96
98
|
OS?: string | undefined;
|
|
97
99
|
RAM?: string | undefined;
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
100
|
+
'M\u00E9moire Disque'?: string | undefined;
|
|
101
|
+
'Adresse IP'?: string | undefined;
|
|
102
|
+
'N\u00B0 de Commande'?: string | undefined;
|
|
103
|
+
'Date de la Commande'?: string | undefined;
|
|
104
|
+
'Date de livraison'?: string | undefined;
|
|
103
105
|
"Date d'entr\u00E9e"?: string | undefined;
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
106
|
+
'Date pr\u00E9vi'?: string | undefined;
|
|
107
|
+
'Date de sortie'?: string | undefined;
|
|
108
|
+
'Motif de sortie'?: string | undefined;
|
|
109
|
+
'Montant de la valorisation'?: string | undefined;
|
|
110
|
+
'Co\u00FBts de r\u00E9trologistique'?: string | undefined;
|
|
109
111
|
Grade?: string | undefined;
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
112
|
+
'Montant Remboursement Assurance'?: string | undefined;
|
|
113
|
+
'Montant de la franchise'?: string | undefined;
|
|
114
|
+
'Date de Remboursement Assurance'?: string | undefined;
|
|
115
|
+
'Date de facture'?: string | undefined;
|
|
116
|
+
'N\u00B0 Facture'?: string | undefined;
|
|
115
117
|
Avenant?: string | undefined;
|
|
116
|
-
|
|
117
|
-
|
|
118
|
+
'Prix unitaire'?: string | undefined;
|
|
119
|
+
'Valeur Nette R\u00E9siduelle Comptable'?: string | undefined;
|
|
118
120
|
Statut?: string | undefined;
|
|
119
121
|
Site?: string | undefined;
|
|
120
|
-
|
|
121
|
-
|
|
122
|
+
'Montant R\u00E9paration'?: string | undefined;
|
|
123
|
+
'N\u00B0 de PV'?: string | undefined;
|
|
122
124
|
Loyer?: string | undefined;
|
|
123
|
-
|
|
124
|
-
|
|
125
|
+
'B\u00E9n\u00E9ficiaire du Don'?: string | undefined;
|
|
126
|
+
'Date du Don'?: string | undefined;
|
|
127
|
+
'Etat Acquisition'?: "NEUF" | "RECONDITIONNÉ" | "REMANUFACTURÉ" | undefined;
|
|
125
128
|
}>;
|
|
126
129
|
export declare const ComputerUploadSchema: z.ZodArray<z.ZodObject<{
|
|
127
130
|
ID: z.ZodString;
|
|
128
|
-
|
|
129
|
-
|
|
131
|
+
'N\u00B0 de s\u00E9rie': z.ZodOptional<z.ZodString>;
|
|
132
|
+
'N\u00B0 Interne': z.ZodOptional<z.ZodString>;
|
|
130
133
|
Propriétaire: z.ZodOptional<z.ZodString>;
|
|
131
134
|
Type: z.ZodOptional<z.ZodString>;
|
|
132
135
|
Constructeur: z.ZodOptional<z.ZodString>;
|
|
133
|
-
|
|
136
|
+
'Code produit': z.ZodOptional<z.ZodString>;
|
|
134
137
|
Label: z.ZodString;
|
|
135
138
|
CPU: z.ZodOptional<z.ZodString>;
|
|
136
139
|
OS: z.ZodOptional<z.ZodString>;
|
|
137
140
|
RAM: z.ZodOptional<z.ZodString>;
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
141
|
+
'M\u00E9moire Disque': z.ZodOptional<z.ZodString>;
|
|
142
|
+
'Adresse IP': z.ZodOptional<z.ZodString>;
|
|
143
|
+
'N\u00B0 de Commande': z.ZodOptional<z.ZodString>;
|
|
144
|
+
'Date de la Commande': z.ZodOptional<z.ZodString>;
|
|
145
|
+
'Date de livraison': z.ZodOptional<z.ZodString>;
|
|
143
146
|
"Date d'entr\u00E9e": z.ZodOptional<z.ZodString>;
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
147
|
+
'Date pr\u00E9vi': z.ZodOptional<z.ZodString>;
|
|
148
|
+
'Date de sortie': z.ZodOptional<z.ZodString>;
|
|
149
|
+
'Motif de sortie': z.ZodOptional<z.ZodString>;
|
|
150
|
+
'Montant de la valorisation': z.ZodOptional<z.ZodPipeline<z.ZodEffects<z.ZodString, number, string>, z.ZodNumber>>;
|
|
151
|
+
'Co\u00FBts de r\u00E9trologistique': z.ZodOptional<z.ZodPipeline<z.ZodEffects<z.ZodString, number, string>, z.ZodNumber>>;
|
|
149
152
|
Grade: z.ZodOptional<z.ZodString>;
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
153
|
+
'Montant Remboursement Assurance': z.ZodOptional<z.ZodPipeline<z.ZodEffects<z.ZodString, number, string>, z.ZodNumber>>;
|
|
154
|
+
'Montant de la franchise': z.ZodOptional<z.ZodPipeline<z.ZodEffects<z.ZodString, number, string>, z.ZodNumber>>;
|
|
155
|
+
'Date de Remboursement Assurance': z.ZodOptional<z.ZodString>;
|
|
156
|
+
'Date de facture': z.ZodOptional<z.ZodString>;
|
|
157
|
+
'N\u00B0 Facture': z.ZodOptional<z.ZodString>;
|
|
155
158
|
Avenant: z.ZodOptional<z.ZodString>;
|
|
156
|
-
|
|
157
|
-
|
|
159
|
+
'Prix unitaire': z.ZodOptional<z.ZodPipeline<z.ZodEffects<z.ZodString, number, string>, z.ZodNumber>>;
|
|
160
|
+
'Valeur Nette R\u00E9siduelle Comptable': z.ZodOptional<z.ZodPipeline<z.ZodEffects<z.ZodString, number, string>, z.ZodNumber>>;
|
|
158
161
|
Matricule: z.ZodOptional<z.ZodString>;
|
|
159
162
|
Statut: z.ZodOptional<z.ZodString>;
|
|
160
163
|
Site: z.ZodOptional<z.ZodString>;
|
|
161
164
|
Filiale: z.ZodOptional<z.ZodString>;
|
|
162
|
-
|
|
163
|
-
|
|
165
|
+
'Montant R\u00E9paration': z.ZodOptional<z.ZodPipeline<z.ZodEffects<z.ZodString, number, string>, z.ZodNumber>>;
|
|
166
|
+
'N\u00B0 de PV': z.ZodOptional<z.ZodString>;
|
|
164
167
|
Loyer: z.ZodOptional<z.ZodPipeline<z.ZodEffects<z.ZodString, number, string>, z.ZodNumber>>;
|
|
165
|
-
|
|
166
|
-
|
|
168
|
+
'B\u00E9n\u00E9ficiaire du Don': z.ZodOptional<z.ZodString>;
|
|
169
|
+
'Date du Don': z.ZodOptional<z.ZodString>;
|
|
170
|
+
'Etat Acquisition': z.ZodOptional<z.ZodEnum<["NEUF", "RECONDITIONNÉ", "REMANUFACTURÉ"]>>;
|
|
167
171
|
}, "strip", z.ZodTypeAny, {
|
|
168
172
|
ID: string;
|
|
169
173
|
Label: string;
|
|
170
174
|
Matricule?: string | undefined;
|
|
171
175
|
Filiale?: string | undefined;
|
|
172
|
-
|
|
173
|
-
|
|
176
|
+
'N\u00B0 de s\u00E9rie'?: string | undefined;
|
|
177
|
+
'N\u00B0 Interne'?: string | undefined;
|
|
174
178
|
Propriétaire?: string | undefined;
|
|
175
179
|
Type?: string | undefined;
|
|
176
180
|
Constructeur?: string | undefined;
|
|
177
|
-
|
|
181
|
+
'Code produit'?: string | undefined;
|
|
178
182
|
CPU?: string | undefined;
|
|
179
183
|
OS?: string | undefined;
|
|
180
184
|
RAM?: string | undefined;
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
185
|
+
'M\u00E9moire Disque'?: string | undefined;
|
|
186
|
+
'Adresse IP'?: string | undefined;
|
|
187
|
+
'N\u00B0 de Commande'?: string | undefined;
|
|
188
|
+
'Date de la Commande'?: string | undefined;
|
|
189
|
+
'Date de livraison'?: string | undefined;
|
|
186
190
|
"Date d'entr\u00E9e"?: string | undefined;
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
191
|
+
'Date pr\u00E9vi'?: string | undefined;
|
|
192
|
+
'Date de sortie'?: string | undefined;
|
|
193
|
+
'Motif de sortie'?: string | undefined;
|
|
194
|
+
'Montant de la valorisation'?: number | undefined;
|
|
195
|
+
'Co\u00FBts de r\u00E9trologistique'?: number | undefined;
|
|
192
196
|
Grade?: string | undefined;
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
197
|
+
'Montant Remboursement Assurance'?: number | undefined;
|
|
198
|
+
'Montant de la franchise'?: number | undefined;
|
|
199
|
+
'Date de Remboursement Assurance'?: string | undefined;
|
|
200
|
+
'Date de facture'?: string | undefined;
|
|
201
|
+
'N\u00B0 Facture'?: string | undefined;
|
|
198
202
|
Avenant?: string | undefined;
|
|
199
|
-
|
|
200
|
-
|
|
203
|
+
'Prix unitaire'?: number | undefined;
|
|
204
|
+
'Valeur Nette R\u00E9siduelle Comptable'?: number | undefined;
|
|
201
205
|
Statut?: string | undefined;
|
|
202
206
|
Site?: string | undefined;
|
|
203
|
-
|
|
204
|
-
|
|
207
|
+
'Montant R\u00E9paration'?: number | undefined;
|
|
208
|
+
'N\u00B0 de PV'?: string | undefined;
|
|
205
209
|
Loyer?: number | undefined;
|
|
206
|
-
|
|
207
|
-
|
|
210
|
+
'B\u00E9n\u00E9ficiaire du Don'?: string | undefined;
|
|
211
|
+
'Date du Don'?: string | undefined;
|
|
212
|
+
'Etat Acquisition'?: "NEUF" | "RECONDITIONNÉ" | "REMANUFACTURÉ" | undefined;
|
|
208
213
|
}, {
|
|
209
214
|
ID: string;
|
|
210
215
|
Label: string;
|
|
211
216
|
Matricule?: string | undefined;
|
|
212
217
|
Filiale?: string | undefined;
|
|
213
|
-
|
|
214
|
-
|
|
218
|
+
'N\u00B0 de s\u00E9rie'?: string | undefined;
|
|
219
|
+
'N\u00B0 Interne'?: string | undefined;
|
|
215
220
|
Propriétaire?: string | undefined;
|
|
216
221
|
Type?: string | undefined;
|
|
217
222
|
Constructeur?: string | undefined;
|
|
218
|
-
|
|
223
|
+
'Code produit'?: string | undefined;
|
|
219
224
|
CPU?: string | undefined;
|
|
220
225
|
OS?: string | undefined;
|
|
221
226
|
RAM?: string | undefined;
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
+
'M\u00E9moire Disque'?: string | undefined;
|
|
228
|
+
'Adresse IP'?: string | undefined;
|
|
229
|
+
'N\u00B0 de Commande'?: string | undefined;
|
|
230
|
+
'Date de la Commande'?: string | undefined;
|
|
231
|
+
'Date de livraison'?: string | undefined;
|
|
227
232
|
"Date d'entr\u00E9e"?: string | undefined;
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
+
'Date pr\u00E9vi'?: string | undefined;
|
|
234
|
+
'Date de sortie'?: string | undefined;
|
|
235
|
+
'Motif de sortie'?: string | undefined;
|
|
236
|
+
'Montant de la valorisation'?: string | undefined;
|
|
237
|
+
'Co\u00FBts de r\u00E9trologistique'?: string | undefined;
|
|
233
238
|
Grade?: string | undefined;
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
+
'Montant Remboursement Assurance'?: string | undefined;
|
|
240
|
+
'Montant de la franchise'?: string | undefined;
|
|
241
|
+
'Date de Remboursement Assurance'?: string | undefined;
|
|
242
|
+
'Date de facture'?: string | undefined;
|
|
243
|
+
'N\u00B0 Facture'?: string | undefined;
|
|
239
244
|
Avenant?: string | undefined;
|
|
240
|
-
|
|
241
|
-
|
|
245
|
+
'Prix unitaire'?: string | undefined;
|
|
246
|
+
'Valeur Nette R\u00E9siduelle Comptable'?: string | undefined;
|
|
242
247
|
Statut?: string | undefined;
|
|
243
248
|
Site?: string | undefined;
|
|
244
|
-
|
|
245
|
-
|
|
249
|
+
'Montant R\u00E9paration'?: string | undefined;
|
|
250
|
+
'N\u00B0 de PV'?: string | undefined;
|
|
246
251
|
Loyer?: string | undefined;
|
|
247
|
-
|
|
248
|
-
|
|
252
|
+
'B\u00E9n\u00E9ficiaire du Don'?: string | undefined;
|
|
253
|
+
'Date du Don'?: string | undefined;
|
|
254
|
+
'Etat Acquisition'?: "NEUF" | "RECONDITIONNÉ" | "REMANUFACTURÉ" | undefined;
|
|
249
255
|
}>, "many">;
|
|
250
256
|
export type ComputerUpload = z.infer<typeof ComputerUploadSchema>;
|
|
251
257
|
export declare const assetDefinitions: {
|
|
252
258
|
computer_upload: z.ZodArray<z.ZodObject<{
|
|
253
259
|
ID: z.ZodString;
|
|
254
|
-
|
|
255
|
-
|
|
260
|
+
'N\u00B0 de s\u00E9rie': z.ZodOptional<z.ZodString>;
|
|
261
|
+
'N\u00B0 Interne': z.ZodOptional<z.ZodString>;
|
|
256
262
|
Propriétaire: z.ZodOptional<z.ZodString>;
|
|
257
263
|
Type: z.ZodOptional<z.ZodString>;
|
|
258
264
|
Constructeur: z.ZodOptional<z.ZodString>;
|
|
259
|
-
|
|
265
|
+
'Code produit': z.ZodOptional<z.ZodString>;
|
|
260
266
|
Label: z.ZodString;
|
|
261
267
|
CPU: z.ZodOptional<z.ZodString>;
|
|
262
268
|
OS: z.ZodOptional<z.ZodString>;
|
|
263
269
|
RAM: z.ZodOptional<z.ZodString>;
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
270
|
+
'M\u00E9moire Disque': z.ZodOptional<z.ZodString>;
|
|
271
|
+
'Adresse IP': z.ZodOptional<z.ZodString>;
|
|
272
|
+
'N\u00B0 de Commande': z.ZodOptional<z.ZodString>;
|
|
273
|
+
'Date de la Commande': z.ZodOptional<z.ZodString>;
|
|
274
|
+
'Date de livraison': z.ZodOptional<z.ZodString>;
|
|
269
275
|
"Date d'entr\u00E9e": z.ZodOptional<z.ZodString>;
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
276
|
+
'Date pr\u00E9vi': z.ZodOptional<z.ZodString>;
|
|
277
|
+
'Date de sortie': z.ZodOptional<z.ZodString>;
|
|
278
|
+
'Motif de sortie': z.ZodOptional<z.ZodString>;
|
|
279
|
+
'Montant de la valorisation': z.ZodOptional<z.ZodPipeline<z.ZodEffects<z.ZodString, number, string>, z.ZodNumber>>;
|
|
280
|
+
'Co\u00FBts de r\u00E9trologistique': z.ZodOptional<z.ZodPipeline<z.ZodEffects<z.ZodString, number, string>, z.ZodNumber>>;
|
|
275
281
|
Grade: z.ZodOptional<z.ZodString>;
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
282
|
+
'Montant Remboursement Assurance': z.ZodOptional<z.ZodPipeline<z.ZodEffects<z.ZodString, number, string>, z.ZodNumber>>;
|
|
283
|
+
'Montant de la franchise': z.ZodOptional<z.ZodPipeline<z.ZodEffects<z.ZodString, number, string>, z.ZodNumber>>;
|
|
284
|
+
'Date de Remboursement Assurance': z.ZodOptional<z.ZodString>;
|
|
285
|
+
'Date de facture': z.ZodOptional<z.ZodString>;
|
|
286
|
+
'N\u00B0 Facture': z.ZodOptional<z.ZodString>;
|
|
281
287
|
Avenant: z.ZodOptional<z.ZodString>;
|
|
282
|
-
|
|
283
|
-
|
|
288
|
+
'Prix unitaire': z.ZodOptional<z.ZodPipeline<z.ZodEffects<z.ZodString, number, string>, z.ZodNumber>>;
|
|
289
|
+
'Valeur Nette R\u00E9siduelle Comptable': z.ZodOptional<z.ZodPipeline<z.ZodEffects<z.ZodString, number, string>, z.ZodNumber>>;
|
|
284
290
|
Matricule: z.ZodOptional<z.ZodString>;
|
|
285
291
|
Statut: z.ZodOptional<z.ZodString>;
|
|
286
292
|
Site: z.ZodOptional<z.ZodString>;
|
|
287
293
|
Filiale: z.ZodOptional<z.ZodString>;
|
|
288
|
-
|
|
289
|
-
|
|
294
|
+
'Montant R\u00E9paration': z.ZodOptional<z.ZodPipeline<z.ZodEffects<z.ZodString, number, string>, z.ZodNumber>>;
|
|
295
|
+
'N\u00B0 de PV': z.ZodOptional<z.ZodString>;
|
|
290
296
|
Loyer: z.ZodOptional<z.ZodPipeline<z.ZodEffects<z.ZodString, number, string>, z.ZodNumber>>;
|
|
291
|
-
|
|
292
|
-
|
|
297
|
+
'B\u00E9n\u00E9ficiaire du Don': z.ZodOptional<z.ZodString>;
|
|
298
|
+
'Date du Don': z.ZodOptional<z.ZodString>;
|
|
299
|
+
'Etat Acquisition': z.ZodOptional<z.ZodEnum<["NEUF", "RECONDITIONNÉ", "REMANUFACTURÉ"]>>;
|
|
293
300
|
}, "strip", z.ZodTypeAny, {
|
|
294
301
|
ID: string;
|
|
295
302
|
Label: string;
|
|
296
303
|
Matricule?: string | undefined;
|
|
297
304
|
Filiale?: string | undefined;
|
|
298
|
-
|
|
299
|
-
|
|
305
|
+
'N\u00B0 de s\u00E9rie'?: string | undefined;
|
|
306
|
+
'N\u00B0 Interne'?: string | undefined;
|
|
300
307
|
Propriétaire?: string | undefined;
|
|
301
308
|
Type?: string | undefined;
|
|
302
309
|
Constructeur?: string | undefined;
|
|
303
|
-
|
|
310
|
+
'Code produit'?: string | undefined;
|
|
304
311
|
CPU?: string | undefined;
|
|
305
312
|
OS?: string | undefined;
|
|
306
313
|
RAM?: string | undefined;
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
314
|
+
'M\u00E9moire Disque'?: string | undefined;
|
|
315
|
+
'Adresse IP'?: string | undefined;
|
|
316
|
+
'N\u00B0 de Commande'?: string | undefined;
|
|
317
|
+
'Date de la Commande'?: string | undefined;
|
|
318
|
+
'Date de livraison'?: string | undefined;
|
|
312
319
|
"Date d'entr\u00E9e"?: string | undefined;
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
320
|
+
'Date pr\u00E9vi'?: string | undefined;
|
|
321
|
+
'Date de sortie'?: string | undefined;
|
|
322
|
+
'Motif de sortie'?: string | undefined;
|
|
323
|
+
'Montant de la valorisation'?: number | undefined;
|
|
324
|
+
'Co\u00FBts de r\u00E9trologistique'?: number | undefined;
|
|
318
325
|
Grade?: string | undefined;
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
326
|
+
'Montant Remboursement Assurance'?: number | undefined;
|
|
327
|
+
'Montant de la franchise'?: number | undefined;
|
|
328
|
+
'Date de Remboursement Assurance'?: string | undefined;
|
|
329
|
+
'Date de facture'?: string | undefined;
|
|
330
|
+
'N\u00B0 Facture'?: string | undefined;
|
|
324
331
|
Avenant?: string | undefined;
|
|
325
|
-
|
|
326
|
-
|
|
332
|
+
'Prix unitaire'?: number | undefined;
|
|
333
|
+
'Valeur Nette R\u00E9siduelle Comptable'?: number | undefined;
|
|
327
334
|
Statut?: string | undefined;
|
|
328
335
|
Site?: string | undefined;
|
|
329
|
-
|
|
330
|
-
|
|
336
|
+
'Montant R\u00E9paration'?: number | undefined;
|
|
337
|
+
'N\u00B0 de PV'?: string | undefined;
|
|
331
338
|
Loyer?: number | undefined;
|
|
332
|
-
|
|
333
|
-
|
|
339
|
+
'B\u00E9n\u00E9ficiaire du Don'?: string | undefined;
|
|
340
|
+
'Date du Don'?: string | undefined;
|
|
341
|
+
'Etat Acquisition'?: "NEUF" | "RECONDITIONNÉ" | "REMANUFACTURÉ" | undefined;
|
|
334
342
|
}, {
|
|
335
343
|
ID: string;
|
|
336
344
|
Label: string;
|
|
337
345
|
Matricule?: string | undefined;
|
|
338
346
|
Filiale?: string | undefined;
|
|
339
|
-
|
|
340
|
-
|
|
347
|
+
'N\u00B0 de s\u00E9rie'?: string | undefined;
|
|
348
|
+
'N\u00B0 Interne'?: string | undefined;
|
|
341
349
|
Propriétaire?: string | undefined;
|
|
342
350
|
Type?: string | undefined;
|
|
343
351
|
Constructeur?: string | undefined;
|
|
344
|
-
|
|
352
|
+
'Code produit'?: string | undefined;
|
|
345
353
|
CPU?: string | undefined;
|
|
346
354
|
OS?: string | undefined;
|
|
347
355
|
RAM?: string | undefined;
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
356
|
+
'M\u00E9moire Disque'?: string | undefined;
|
|
357
|
+
'Adresse IP'?: string | undefined;
|
|
358
|
+
'N\u00B0 de Commande'?: string | undefined;
|
|
359
|
+
'Date de la Commande'?: string | undefined;
|
|
360
|
+
'Date de livraison'?: string | undefined;
|
|
353
361
|
"Date d'entr\u00E9e"?: string | undefined;
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
362
|
+
'Date pr\u00E9vi'?: string | undefined;
|
|
363
|
+
'Date de sortie'?: string | undefined;
|
|
364
|
+
'Motif de sortie'?: string | undefined;
|
|
365
|
+
'Montant de la valorisation'?: string | undefined;
|
|
366
|
+
'Co\u00FBts de r\u00E9trologistique'?: string | undefined;
|
|
359
367
|
Grade?: string | undefined;
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
368
|
+
'Montant Remboursement Assurance'?: string | undefined;
|
|
369
|
+
'Montant de la franchise'?: string | undefined;
|
|
370
|
+
'Date de Remboursement Assurance'?: string | undefined;
|
|
371
|
+
'Date de facture'?: string | undefined;
|
|
372
|
+
'N\u00B0 Facture'?: string | undefined;
|
|
365
373
|
Avenant?: string | undefined;
|
|
366
|
-
|
|
367
|
-
|
|
374
|
+
'Prix unitaire'?: string | undefined;
|
|
375
|
+
'Valeur Nette R\u00E9siduelle Comptable'?: string | undefined;
|
|
368
376
|
Statut?: string | undefined;
|
|
369
377
|
Site?: string | undefined;
|
|
370
|
-
|
|
371
|
-
|
|
378
|
+
'Montant R\u00E9paration'?: string | undefined;
|
|
379
|
+
'N\u00B0 de PV'?: string | undefined;
|
|
372
380
|
Loyer?: string | undefined;
|
|
373
|
-
|
|
374
|
-
|
|
381
|
+
'B\u00E9n\u00E9ficiaire du Don'?: string | undefined;
|
|
382
|
+
'Date du Don'?: string | undefined;
|
|
383
|
+
'Etat Acquisition'?: "NEUF" | "RECONDITIONNÉ" | "REMANUFACTURÉ" | undefined;
|
|
375
384
|
}>, "many">;
|
|
376
385
|
};
|
package/lib/imports/assets.js
CHANGED
|
@@ -1,162 +1,100 @@
|
|
|
1
|
-
import { z } from
|
|
2
|
-
import { extendZodWithOpenApi } from
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { extendZodWithOpenApi } from '@asteasolutions/zod-to-openapi';
|
|
3
3
|
extendZodWithOpenApi(z);
|
|
4
4
|
const DATE_REGEX = /^\d{2}\/\d{2}\/\d{4}$/;
|
|
5
|
-
const parseDecimal = (v) => parseFloat(v.replace(
|
|
5
|
+
const parseDecimal = (v) => parseFloat(v.replace(',', '.'));
|
|
6
6
|
export const ComputerUploadRowSchema = z
|
|
7
7
|
.object({
|
|
8
|
-
ID: z.string().openapi({ description:
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
"
|
|
25
|
-
|
|
26
|
-
.optional()
|
|
27
|
-
.openapi({ description: "Product code" }),
|
|
28
|
-
Label: z.string().openapi({ description: "Computer label/description" }),
|
|
29
|
-
CPU: z.string().optional().openapi({ description: "Processor" }),
|
|
30
|
-
OS: z.string().optional().openapi({ description: "Operating system" }),
|
|
31
|
-
RAM: z.string().optional().openapi({ description: "RAM" }),
|
|
32
|
-
"Mémoire Disque": z
|
|
33
|
-
.string()
|
|
34
|
-
.optional()
|
|
35
|
-
.openapi({ description: "Disk storage" }),
|
|
36
|
-
"Adresse IP": z.string().optional().openapi({ description: "IP address" }),
|
|
37
|
-
"N° de Commande": z
|
|
38
|
-
.string()
|
|
39
|
-
.optional()
|
|
40
|
-
.openapi({ description: "Order number" }),
|
|
41
|
-
"Date de la Commande": z
|
|
42
|
-
.string()
|
|
43
|
-
.regex(DATE_REGEX)
|
|
44
|
-
.optional()
|
|
45
|
-
.openapi({ description: "Order date (DD/MM/YYYY)" }),
|
|
46
|
-
"Date de livraison": z
|
|
8
|
+
ID: z.string().openapi({ description: 'Computer identifier' }),
|
|
9
|
+
'N° de série': z.string().optional().openapi({ description: 'Serial number' }),
|
|
10
|
+
'N° Interne': z.string().optional().openapi({ description: 'Internal number' }),
|
|
11
|
+
Propriétaire: z.string().max(100).optional().openapi({ description: 'Owner company name' }),
|
|
12
|
+
Type: z.string().optional().openapi({ description: 'Asset type' }),
|
|
13
|
+
Constructeur: z.string().optional().openapi({ description: 'Manufacturer' }),
|
|
14
|
+
'Code produit': z.string().optional().openapi({ description: 'Product code' }),
|
|
15
|
+
Label: z.string().openapi({ description: 'Computer label/description' }),
|
|
16
|
+
CPU: z.string().optional().openapi({ description: 'Processor' }),
|
|
17
|
+
OS: z.string().optional().openapi({ description: 'Operating system' }),
|
|
18
|
+
RAM: z.string().optional().openapi({ description: 'RAM' }),
|
|
19
|
+
'Mémoire Disque': z.string().optional().openapi({ description: 'Disk storage' }),
|
|
20
|
+
'Adresse IP': z.string().optional().openapi({ description: 'IP address' }),
|
|
21
|
+
'N° de Commande': z.string().optional().openapi({ description: 'Order number' }),
|
|
22
|
+
'Date de la Commande': z.string().regex(DATE_REGEX).optional().openapi({ description: 'Order date (DD/MM/YYYY)' }),
|
|
23
|
+
'Date de livraison': z.string().regex(DATE_REGEX).optional().openapi({ description: 'Delivery date (DD/MM/YYYY)' }),
|
|
24
|
+
"Date d'entrée": z.string().regex(DATE_REGEX).optional().openapi({ description: 'Entry date (DD/MM/YYYY)' }),
|
|
25
|
+
'Date prévi': z
|
|
47
26
|
.string()
|
|
48
27
|
.regex(DATE_REGEX)
|
|
49
28
|
.optional()
|
|
50
|
-
.openapi({ description:
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
.optional()
|
|
55
|
-
.openapi({ description: "Entry date (DD/MM/YYYY)" }),
|
|
56
|
-
"Date prévi": z
|
|
57
|
-
.string()
|
|
58
|
-
.regex(DATE_REGEX)
|
|
59
|
-
.optional()
|
|
60
|
-
.openapi({ description: "Expected replacement date (DD/MM/YYYY)" }),
|
|
61
|
-
"Date de sortie": z
|
|
62
|
-
.string()
|
|
63
|
-
.regex(DATE_REGEX)
|
|
64
|
-
.optional()
|
|
65
|
-
.openapi({ description: "Exit date (DD/MM/YYYY)" }),
|
|
66
|
-
"Motif de sortie": z
|
|
67
|
-
.string()
|
|
68
|
-
.optional()
|
|
69
|
-
.openapi({ description: "Exit reason" }),
|
|
70
|
-
"Montant de la valorisation": z
|
|
29
|
+
.openapi({ description: 'Expected replacement date (DD/MM/YYYY)' }),
|
|
30
|
+
'Date de sortie': z.string().regex(DATE_REGEX).optional().openapi({ description: 'Exit date (DD/MM/YYYY)' }),
|
|
31
|
+
'Motif de sortie': z.string().optional().openapi({ description: 'Exit reason' }),
|
|
32
|
+
'Montant de la valorisation': z
|
|
71
33
|
.string()
|
|
72
34
|
.transform(parseDecimal)
|
|
73
35
|
.pipe(z.number())
|
|
74
36
|
.optional()
|
|
75
|
-
.openapi({ description:
|
|
76
|
-
|
|
37
|
+
.openapi({ description: 'Valuation amount' }),
|
|
38
|
+
'Coûts de rétrologistique': z
|
|
77
39
|
.string()
|
|
78
40
|
.transform(parseDecimal)
|
|
79
41
|
.pipe(z.number())
|
|
80
42
|
.optional()
|
|
81
|
-
.openapi({ description:
|
|
82
|
-
Grade: z.string().optional().openapi({ description:
|
|
83
|
-
|
|
43
|
+
.openapi({ description: 'Retro-logistics costs' }),
|
|
44
|
+
Grade: z.string().optional().openapi({ description: 'Condition grade' }),
|
|
45
|
+
'Montant Remboursement Assurance': z
|
|
84
46
|
.string()
|
|
85
47
|
.transform(parseDecimal)
|
|
86
48
|
.pipe(z.number())
|
|
87
49
|
.optional()
|
|
88
|
-
.openapi({ description:
|
|
89
|
-
|
|
50
|
+
.openapi({ description: 'Insurance refund amount' }),
|
|
51
|
+
'Montant de la franchise': z
|
|
90
52
|
.string()
|
|
91
53
|
.transform(parseDecimal)
|
|
92
54
|
.pipe(z.number())
|
|
93
55
|
.optional()
|
|
94
|
-
.openapi({ description:
|
|
95
|
-
|
|
56
|
+
.openapi({ description: 'Franchise amount' }),
|
|
57
|
+
'Date de Remboursement Assurance': z
|
|
96
58
|
.string()
|
|
97
59
|
.regex(DATE_REGEX)
|
|
98
60
|
.optional()
|
|
99
|
-
.openapi({ description:
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
.openapi({ description: "Invoice date (DD/MM/YYYY)" }),
|
|
105
|
-
"N° Facture": z
|
|
106
|
-
.string()
|
|
107
|
-
.optional()
|
|
108
|
-
.openapi({ description: "Invoice number" }),
|
|
109
|
-
Avenant: z.string().optional().openapi({ description: "Amendment" }),
|
|
110
|
-
"Prix unitaire": z
|
|
61
|
+
.openapi({ description: 'Insurance refund date (DD/MM/YYYY)' }),
|
|
62
|
+
'Date de facture': z.string().regex(DATE_REGEX).optional().openapi({ description: 'Invoice date (DD/MM/YYYY)' }),
|
|
63
|
+
'N° Facture': z.string().optional().openapi({ description: 'Invoice number' }),
|
|
64
|
+
Avenant: z.string().optional().openapi({ description: 'Amendment' }),
|
|
65
|
+
'Prix unitaire': z
|
|
111
66
|
.string()
|
|
112
67
|
.transform(parseDecimal)
|
|
113
68
|
.pipe(z.number())
|
|
114
69
|
.optional()
|
|
115
|
-
.openapi({ description:
|
|
116
|
-
|
|
70
|
+
.openapi({ description: 'Unit price' }),
|
|
71
|
+
'Valeur Nette Résiduelle Comptable': z
|
|
117
72
|
.string()
|
|
118
73
|
.transform(parseDecimal)
|
|
119
74
|
.pipe(z.number())
|
|
120
75
|
.optional()
|
|
121
|
-
.openapi({ description:
|
|
122
|
-
Matricule: z
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
Site: z.string().optional().openapi({ description: "Site name" }),
|
|
128
|
-
Filiale: z.string().optional().openapi({ description: "Subsidiary name" }),
|
|
129
|
-
"Montant Réparation": z
|
|
76
|
+
.openapi({ description: 'Net residual book value' }),
|
|
77
|
+
Matricule: z.string().optional().openapi({ description: 'Assigned employee ID' }),
|
|
78
|
+
Statut: z.string().optional().openapi({ description: 'Asset status' }),
|
|
79
|
+
Site: z.string().optional().openapi({ description: 'Site name' }),
|
|
80
|
+
Filiale: z.string().optional().openapi({ description: 'Subsidiary name' }),
|
|
81
|
+
'Montant Réparation': z
|
|
130
82
|
.string()
|
|
131
83
|
.transform(parseDecimal)
|
|
132
84
|
.pipe(z.number())
|
|
133
85
|
.optional()
|
|
134
|
-
.openapi({ description:
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
.string()
|
|
142
|
-
.transform(parseDecimal)
|
|
143
|
-
.pipe(z.number())
|
|
144
|
-
.optional()
|
|
145
|
-
.openapi({ description: "Rent amount" }),
|
|
146
|
-
"Bénéficiaire du Don": z
|
|
147
|
-
.string()
|
|
148
|
-
.optional()
|
|
149
|
-
.openapi({ description: "Donation beneficiary" }),
|
|
150
|
-
"Date du Don": z
|
|
151
|
-
.string()
|
|
152
|
-
.regex(DATE_REGEX)
|
|
86
|
+
.openapi({ description: 'Repair amount' }),
|
|
87
|
+
'N° de PV': z.string().max(50).optional().openapi({ description: 'Report number' }),
|
|
88
|
+
Loyer: z.string().transform(parseDecimal).pipe(z.number()).optional().openapi({ description: 'Rent amount' }),
|
|
89
|
+
'Bénéficiaire du Don': z.string().optional().openapi({ description: 'Donation beneficiary' }),
|
|
90
|
+
'Date du Don': z.string().regex(DATE_REGEX).optional().openapi({ description: 'Donation date (DD/MM/YYYY)' }),
|
|
91
|
+
'Etat Acquisition': z
|
|
92
|
+
.enum(['NEUF', 'RECONDITIONNÉ', 'REMANUFACTURÉ'])
|
|
153
93
|
.optional()
|
|
154
|
-
.openapi({ description:
|
|
94
|
+
.openapi({ description: 'Acquisition state' }),
|
|
155
95
|
})
|
|
156
|
-
.openapi(
|
|
157
|
-
export const ComputerUploadSchema = z
|
|
158
|
-
.array(ComputerUploadRowSchema)
|
|
159
|
-
.openapi("ComputerUpload");
|
|
96
|
+
.openapi('ComputerUploadRow');
|
|
97
|
+
export const ComputerUploadSchema = z.array(ComputerUploadRowSchema).openapi('ComputerUpload');
|
|
160
98
|
export const assetDefinitions = {
|
|
161
99
|
computer_upload: ComputerUploadSchema,
|
|
162
100
|
};
|
package/lib/imports/index.d.ts
CHANGED
|
@@ -299,127 +299,130 @@ export declare const schemasDefinitions: {
|
|
|
299
299
|
}>, "many">;
|
|
300
300
|
computer_upload: import("zod").ZodArray<import("zod").ZodObject<{
|
|
301
301
|
ID: import("zod").ZodString;
|
|
302
|
-
|
|
303
|
-
|
|
302
|
+
'N\u00B0 de s\u00E9rie': import("zod").ZodOptional<import("zod").ZodString>;
|
|
303
|
+
'N\u00B0 Interne': import("zod").ZodOptional<import("zod").ZodString>;
|
|
304
304
|
Propriétaire: import("zod").ZodOptional<import("zod").ZodString>;
|
|
305
305
|
Type: import("zod").ZodOptional<import("zod").ZodString>;
|
|
306
306
|
Constructeur: import("zod").ZodOptional<import("zod").ZodString>;
|
|
307
|
-
|
|
307
|
+
'Code produit': import("zod").ZodOptional<import("zod").ZodString>;
|
|
308
308
|
Label: import("zod").ZodString;
|
|
309
309
|
CPU: import("zod").ZodOptional<import("zod").ZodString>;
|
|
310
310
|
OS: import("zod").ZodOptional<import("zod").ZodString>;
|
|
311
311
|
RAM: import("zod").ZodOptional<import("zod").ZodString>;
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
312
|
+
'M\u00E9moire Disque': import("zod").ZodOptional<import("zod").ZodString>;
|
|
313
|
+
'Adresse IP': import("zod").ZodOptional<import("zod").ZodString>;
|
|
314
|
+
'N\u00B0 de Commande': import("zod").ZodOptional<import("zod").ZodString>;
|
|
315
|
+
'Date de la Commande': import("zod").ZodOptional<import("zod").ZodString>;
|
|
316
|
+
'Date de livraison': import("zod").ZodOptional<import("zod").ZodString>;
|
|
317
317
|
"Date d'entr\u00E9e": import("zod").ZodOptional<import("zod").ZodString>;
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
318
|
+
'Date pr\u00E9vi': import("zod").ZodOptional<import("zod").ZodString>;
|
|
319
|
+
'Date de sortie': import("zod").ZodOptional<import("zod").ZodString>;
|
|
320
|
+
'Motif de sortie': import("zod").ZodOptional<import("zod").ZodString>;
|
|
321
|
+
'Montant de la valorisation': import("zod").ZodOptional<import("zod").ZodPipeline<import("zod").ZodEffects<import("zod").ZodString, number, string>, import("zod").ZodNumber>>;
|
|
322
|
+
'Co\u00FBts de r\u00E9trologistique': import("zod").ZodOptional<import("zod").ZodPipeline<import("zod").ZodEffects<import("zod").ZodString, number, string>, import("zod").ZodNumber>>;
|
|
323
323
|
Grade: import("zod").ZodOptional<import("zod").ZodString>;
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
324
|
+
'Montant Remboursement Assurance': import("zod").ZodOptional<import("zod").ZodPipeline<import("zod").ZodEffects<import("zod").ZodString, number, string>, import("zod").ZodNumber>>;
|
|
325
|
+
'Montant de la franchise': import("zod").ZodOptional<import("zod").ZodPipeline<import("zod").ZodEffects<import("zod").ZodString, number, string>, import("zod").ZodNumber>>;
|
|
326
|
+
'Date de Remboursement Assurance': import("zod").ZodOptional<import("zod").ZodString>;
|
|
327
|
+
'Date de facture': import("zod").ZodOptional<import("zod").ZodString>;
|
|
328
|
+
'N\u00B0 Facture': import("zod").ZodOptional<import("zod").ZodString>;
|
|
329
329
|
Avenant: import("zod").ZodOptional<import("zod").ZodString>;
|
|
330
|
-
|
|
331
|
-
|
|
330
|
+
'Prix unitaire': import("zod").ZodOptional<import("zod").ZodPipeline<import("zod").ZodEffects<import("zod").ZodString, number, string>, import("zod").ZodNumber>>;
|
|
331
|
+
'Valeur Nette R\u00E9siduelle Comptable': import("zod").ZodOptional<import("zod").ZodPipeline<import("zod").ZodEffects<import("zod").ZodString, number, string>, import("zod").ZodNumber>>;
|
|
332
332
|
Matricule: import("zod").ZodOptional<import("zod").ZodString>;
|
|
333
333
|
Statut: import("zod").ZodOptional<import("zod").ZodString>;
|
|
334
334
|
Site: import("zod").ZodOptional<import("zod").ZodString>;
|
|
335
335
|
Filiale: import("zod").ZodOptional<import("zod").ZodString>;
|
|
336
|
-
|
|
337
|
-
|
|
336
|
+
'Montant R\u00E9paration': import("zod").ZodOptional<import("zod").ZodPipeline<import("zod").ZodEffects<import("zod").ZodString, number, string>, import("zod").ZodNumber>>;
|
|
337
|
+
'N\u00B0 de PV': import("zod").ZodOptional<import("zod").ZodString>;
|
|
338
338
|
Loyer: import("zod").ZodOptional<import("zod").ZodPipeline<import("zod").ZodEffects<import("zod").ZodString, number, string>, import("zod").ZodNumber>>;
|
|
339
|
-
|
|
340
|
-
|
|
339
|
+
'B\u00E9n\u00E9ficiaire du Don': import("zod").ZodOptional<import("zod").ZodString>;
|
|
340
|
+
'Date du Don': import("zod").ZodOptional<import("zod").ZodString>;
|
|
341
|
+
'Etat Acquisition': import("zod").ZodOptional<import("zod").ZodEnum<["NEUF", "RECONDITIONNÉ", "REMANUFACTURÉ"]>>;
|
|
341
342
|
}, "strip", import("zod").ZodTypeAny, {
|
|
342
343
|
ID: string;
|
|
343
344
|
Label: string;
|
|
344
345
|
Matricule?: string | undefined;
|
|
345
346
|
Filiale?: string | undefined;
|
|
346
|
-
|
|
347
|
-
|
|
347
|
+
'N\u00B0 de s\u00E9rie'?: string | undefined;
|
|
348
|
+
'N\u00B0 Interne'?: string | undefined;
|
|
348
349
|
Propriétaire?: string | undefined;
|
|
349
350
|
Type?: string | undefined;
|
|
350
351
|
Constructeur?: string | undefined;
|
|
351
|
-
|
|
352
|
+
'Code produit'?: string | undefined;
|
|
352
353
|
CPU?: string | undefined;
|
|
353
354
|
OS?: string | undefined;
|
|
354
355
|
RAM?: string | undefined;
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
356
|
+
'M\u00E9moire Disque'?: string | undefined;
|
|
357
|
+
'Adresse IP'?: string | undefined;
|
|
358
|
+
'N\u00B0 de Commande'?: string | undefined;
|
|
359
|
+
'Date de la Commande'?: string | undefined;
|
|
360
|
+
'Date de livraison'?: string | undefined;
|
|
360
361
|
"Date d'entr\u00E9e"?: string | undefined;
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
362
|
+
'Date pr\u00E9vi'?: string | undefined;
|
|
363
|
+
'Date de sortie'?: string | undefined;
|
|
364
|
+
'Motif de sortie'?: string | undefined;
|
|
365
|
+
'Montant de la valorisation'?: number | undefined;
|
|
366
|
+
'Co\u00FBts de r\u00E9trologistique'?: number | undefined;
|
|
366
367
|
Grade?: string | undefined;
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
368
|
+
'Montant Remboursement Assurance'?: number | undefined;
|
|
369
|
+
'Montant de la franchise'?: number | undefined;
|
|
370
|
+
'Date de Remboursement Assurance'?: string | undefined;
|
|
371
|
+
'Date de facture'?: string | undefined;
|
|
372
|
+
'N\u00B0 Facture'?: string | undefined;
|
|
372
373
|
Avenant?: string | undefined;
|
|
373
|
-
|
|
374
|
-
|
|
374
|
+
'Prix unitaire'?: number | undefined;
|
|
375
|
+
'Valeur Nette R\u00E9siduelle Comptable'?: number | undefined;
|
|
375
376
|
Statut?: string | undefined;
|
|
376
377
|
Site?: string | undefined;
|
|
377
|
-
|
|
378
|
-
|
|
378
|
+
'Montant R\u00E9paration'?: number | undefined;
|
|
379
|
+
'N\u00B0 de PV'?: string | undefined;
|
|
379
380
|
Loyer?: number | undefined;
|
|
380
|
-
|
|
381
|
-
|
|
381
|
+
'B\u00E9n\u00E9ficiaire du Don'?: string | undefined;
|
|
382
|
+
'Date du Don'?: string | undefined;
|
|
383
|
+
'Etat Acquisition'?: "NEUF" | "RECONDITIONNÉ" | "REMANUFACTURÉ" | undefined;
|
|
382
384
|
}, {
|
|
383
385
|
ID: string;
|
|
384
386
|
Label: string;
|
|
385
387
|
Matricule?: string | undefined;
|
|
386
388
|
Filiale?: string | undefined;
|
|
387
|
-
|
|
388
|
-
|
|
389
|
+
'N\u00B0 de s\u00E9rie'?: string | undefined;
|
|
390
|
+
'N\u00B0 Interne'?: string | undefined;
|
|
389
391
|
Propriétaire?: string | undefined;
|
|
390
392
|
Type?: string | undefined;
|
|
391
393
|
Constructeur?: string | undefined;
|
|
392
|
-
|
|
394
|
+
'Code produit'?: string | undefined;
|
|
393
395
|
CPU?: string | undefined;
|
|
394
396
|
OS?: string | undefined;
|
|
395
397
|
RAM?: string | undefined;
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
398
|
+
'M\u00E9moire Disque'?: string | undefined;
|
|
399
|
+
'Adresse IP'?: string | undefined;
|
|
400
|
+
'N\u00B0 de Commande'?: string | undefined;
|
|
401
|
+
'Date de la Commande'?: string | undefined;
|
|
402
|
+
'Date de livraison'?: string | undefined;
|
|
401
403
|
"Date d'entr\u00E9e"?: string | undefined;
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
404
|
+
'Date pr\u00E9vi'?: string | undefined;
|
|
405
|
+
'Date de sortie'?: string | undefined;
|
|
406
|
+
'Motif de sortie'?: string | undefined;
|
|
407
|
+
'Montant de la valorisation'?: string | undefined;
|
|
408
|
+
'Co\u00FBts de r\u00E9trologistique'?: string | undefined;
|
|
407
409
|
Grade?: string | undefined;
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
410
|
+
'Montant Remboursement Assurance'?: string | undefined;
|
|
411
|
+
'Montant de la franchise'?: string | undefined;
|
|
412
|
+
'Date de Remboursement Assurance'?: string | undefined;
|
|
413
|
+
'Date de facture'?: string | undefined;
|
|
414
|
+
'N\u00B0 Facture'?: string | undefined;
|
|
413
415
|
Avenant?: string | undefined;
|
|
414
|
-
|
|
415
|
-
|
|
416
|
+
'Prix unitaire'?: string | undefined;
|
|
417
|
+
'Valeur Nette R\u00E9siduelle Comptable'?: string | undefined;
|
|
416
418
|
Statut?: string | undefined;
|
|
417
419
|
Site?: string | undefined;
|
|
418
|
-
|
|
419
|
-
|
|
420
|
+
'Montant R\u00E9paration'?: string | undefined;
|
|
421
|
+
'N\u00B0 de PV'?: string | undefined;
|
|
420
422
|
Loyer?: string | undefined;
|
|
421
|
-
|
|
422
|
-
|
|
423
|
+
'B\u00E9n\u00E9ficiaire du Don'?: string | undefined;
|
|
424
|
+
'Date du Don'?: string | undefined;
|
|
425
|
+
'Etat Acquisition'?: "NEUF" | "RECONDITIONNÉ" | "REMANUFACTURÉ" | undefined;
|
|
423
426
|
}>, "many">;
|
|
424
427
|
people_upload: import("zod").ZodArray<import("zod").ZodObject<{
|
|
425
428
|
Matricule: import("zod").ZodString;
|
package/lib/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export { NotificationSchema, NotificationTypeSchema, type Notification, } from "./notification.js";
|
|
2
2
|
export { NotificationTypePreferenceSchema, NotificationPreferencesSchema, type NotificationTypePreference, type NotificationPreferences, } from "./notification-settings.js";
|
|
3
3
|
export { ImportsHistorySchema, ImportsHistoryTypeSchema, ImportsHistoryStatusSchema, type ImportsHistory, PeopleUploadSchema, PeopleUploadRowSchema, SubsidiaryUploadSchema, SubsidiaryUploadRowSchema, organizationDefinitions, type PeopleUpload, type SubsidiaryUpload, ComputerUploadSchema, ComputerUploadRowSchema, assetDefinitions, type ComputerUpload, BouyguesGlobalInvoiceUploadSchema, BouyguesGlobalInvoiceUploadRowSchema, BouyguesDetailedInvoiceUploadSchema, BouyguesDetailedInvoiceUploadRowSchema, BouyguesFleetUploadSchema, BouyguesFleetUploadRowSchema, OrangeDetailedInvoiceUploadSchema, OrangeDetailedInvoiceUploadRowSchema, OrangeFleetUploadSchema, OrangeFleetUploadRowSchema, SfrDetailedInvoiceUploadSchema, SfrDetailedInvoiceUploadRowSchema, telecomDefinitions, type BouyguesGlobalInvoiceUpload, type BouyguesDetailedInvoiceUpload, type BouyguesFleetUpload, type OrangeDetailedInvoiceUpload, type OrangeFleetUpload, type SfrDetailedInvoiceUpload, schemasDefinitions, } from "./imports/index.js";
|
|
4
|
+
export { ChartRefLineSchema, ChartSettingsSchema, type ChartRefLine, type ChartSettings, } from "./chart-settings.js";
|
package/lib/index.js
CHANGED
|
@@ -14,3 +14,5 @@ ComputerUploadSchema, ComputerUploadRowSchema, assetDefinitions,
|
|
|
14
14
|
BouyguesGlobalInvoiceUploadSchema, BouyguesGlobalInvoiceUploadRowSchema, BouyguesDetailedInvoiceUploadSchema, BouyguesDetailedInvoiceUploadRowSchema, BouyguesFleetUploadSchema, BouyguesFleetUploadRowSchema, OrangeDetailedInvoiceUploadSchema, OrangeDetailedInvoiceUploadRowSchema, OrangeFleetUploadSchema, OrangeFleetUploadRowSchema, SfrDetailedInvoiceUploadSchema, SfrDetailedInvoiceUploadRowSchema, telecomDefinitions,
|
|
15
15
|
// Consolidated definitions
|
|
16
16
|
schemasDefinitions, } from "./imports/index.js";
|
|
17
|
+
// Chart Settings (user chart reference lines & thresholds)
|
|
18
|
+
export { ChartRefLineSchema, ChartSettingsSchema, } from "./chart-settings.js";
|