colibris-types 1.0.42 → 2.0.0
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/imports/assets.d.ts +376 -0
- package/lib/imports/assets.js +162 -0
- package/lib/imports/history.d.ts +32 -0
- package/lib/imports/history.js +33 -0
- package/lib/imports/index.d.ts +471 -0
- package/lib/imports/index.js +17 -0
- package/lib/imports/organization.d.ts +146 -0
- package/lib/imports/organization.js +53 -0
- package/lib/{telecom.d.ts → imports/telecom.d.ts} +306 -7
- package/lib/imports/telecom.js +382 -0
- package/lib/index.d.ts +2 -1397
- package/lib/index.js +14 -13
- package/lib/notification.d.ts +37 -0
- package/lib/notification.js +39 -0
- package/package.json +33 -17
- package/README.md +0 -2
- package/lib/base.d.ts +0 -9
- package/lib/base.js +0 -3
- package/lib/cars.d.ts +0 -206
- package/lib/cars.js +0 -44
- package/lib/computers.d.ts +0 -1138
- package/lib/computers.js +0 -221
- package/lib/licenses.d.ts +0 -96
- package/lib/licenses.js +0 -21
- package/lib/org.d.ts +0 -633
- package/lib/org.js +0 -120
- package/lib/telecom.js +0 -186
|
@@ -0,0 +1,376 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const ComputerUploadRowSchema: z.ZodObject<{
|
|
3
|
+
ID: z.ZodString;
|
|
4
|
+
"N\u00B0 de s\u00E9rie": z.ZodOptional<z.ZodString>;
|
|
5
|
+
"N\u00B0 Interne": z.ZodOptional<z.ZodString>;
|
|
6
|
+
Propriétaire: z.ZodOptional<z.ZodString>;
|
|
7
|
+
Type: z.ZodOptional<z.ZodString>;
|
|
8
|
+
Constructeur: z.ZodOptional<z.ZodString>;
|
|
9
|
+
"Code produit": z.ZodOptional<z.ZodString>;
|
|
10
|
+
Label: z.ZodString;
|
|
11
|
+
CPU: z.ZodOptional<z.ZodString>;
|
|
12
|
+
OS: z.ZodOptional<z.ZodString>;
|
|
13
|
+
RAM: z.ZodOptional<z.ZodString>;
|
|
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
|
+
"Date d'entr\u00E9e": z.ZodOptional<z.ZodString>;
|
|
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
|
+
Grade: z.ZodOptional<z.ZodString>;
|
|
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
|
+
Avenant: z.ZodOptional<z.ZodString>;
|
|
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
|
+
Matricule: z.ZodOptional<z.ZodString>;
|
|
35
|
+
Statut: z.ZodOptional<z.ZodString>;
|
|
36
|
+
Site: z.ZodOptional<z.ZodString>;
|
|
37
|
+
Filiale: z.ZodOptional<z.ZodString>;
|
|
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
|
+
Loyer: z.ZodOptional<z.ZodPipeline<z.ZodEffects<z.ZodString, number, string>, z.ZodNumber>>;
|
|
41
|
+
"B\u00E9n\u00E9ficiaire du Don": z.ZodOptional<z.ZodString>;
|
|
42
|
+
"Date du Don": z.ZodOptional<z.ZodString>;
|
|
43
|
+
}, "strip", z.ZodTypeAny, {
|
|
44
|
+
ID: string;
|
|
45
|
+
Label: string;
|
|
46
|
+
Matricule?: string | undefined;
|
|
47
|
+
Filiale?: string | undefined;
|
|
48
|
+
"N\u00B0 de s\u00E9rie"?: string | undefined;
|
|
49
|
+
"N\u00B0 Interne"?: string | undefined;
|
|
50
|
+
Propriétaire?: string | undefined;
|
|
51
|
+
Type?: string | undefined;
|
|
52
|
+
Constructeur?: string | undefined;
|
|
53
|
+
"Code produit"?: string | undefined;
|
|
54
|
+
CPU?: string | undefined;
|
|
55
|
+
OS?: string | undefined;
|
|
56
|
+
RAM?: string | undefined;
|
|
57
|
+
"M\u00E9moire Disque"?: string | undefined;
|
|
58
|
+
"Adresse IP"?: string | undefined;
|
|
59
|
+
"N\u00B0 de Commande"?: string | undefined;
|
|
60
|
+
"Date de la Commande"?: string | undefined;
|
|
61
|
+
"Date de livraison"?: string | undefined;
|
|
62
|
+
"Date d'entr\u00E9e"?: string | undefined;
|
|
63
|
+
"Date pr\u00E9vi"?: string | undefined;
|
|
64
|
+
"Date de sortie"?: string | undefined;
|
|
65
|
+
"Motif de sortie"?: string | undefined;
|
|
66
|
+
"Montant de la valorisation"?: number | undefined;
|
|
67
|
+
"Co\u00FBts de r\u00E9trologistique"?: number | undefined;
|
|
68
|
+
Grade?: string | undefined;
|
|
69
|
+
"Montant Remboursement Assurance"?: number | undefined;
|
|
70
|
+
"Montant de la franchise"?: number | undefined;
|
|
71
|
+
"Date de Remboursement Assurance"?: string | undefined;
|
|
72
|
+
"Date de facture"?: string | undefined;
|
|
73
|
+
"N\u00B0 Facture"?: string | undefined;
|
|
74
|
+
Avenant?: string | undefined;
|
|
75
|
+
"Prix unitaire"?: number | undefined;
|
|
76
|
+
"Valeur Nette R\u00E9siduelle Comptable"?: number | undefined;
|
|
77
|
+
Statut?: string | undefined;
|
|
78
|
+
Site?: string | undefined;
|
|
79
|
+
"Montant R\u00E9paration"?: number | undefined;
|
|
80
|
+
"N\u00B0 de PV"?: string | undefined;
|
|
81
|
+
Loyer?: number | undefined;
|
|
82
|
+
"B\u00E9n\u00E9ficiaire du Don"?: string | undefined;
|
|
83
|
+
"Date du Don"?: string | undefined;
|
|
84
|
+
}, {
|
|
85
|
+
ID: string;
|
|
86
|
+
Label: string;
|
|
87
|
+
Matricule?: string | undefined;
|
|
88
|
+
Filiale?: string | undefined;
|
|
89
|
+
"N\u00B0 de s\u00E9rie"?: string | undefined;
|
|
90
|
+
"N\u00B0 Interne"?: string | undefined;
|
|
91
|
+
Propriétaire?: string | undefined;
|
|
92
|
+
Type?: string | undefined;
|
|
93
|
+
Constructeur?: string | undefined;
|
|
94
|
+
"Code produit"?: string | undefined;
|
|
95
|
+
CPU?: string | undefined;
|
|
96
|
+
OS?: string | undefined;
|
|
97
|
+
RAM?: string | undefined;
|
|
98
|
+
"M\u00E9moire Disque"?: string | undefined;
|
|
99
|
+
"Adresse IP"?: string | undefined;
|
|
100
|
+
"N\u00B0 de Commande"?: string | undefined;
|
|
101
|
+
"Date de la Commande"?: string | undefined;
|
|
102
|
+
"Date de livraison"?: string | undefined;
|
|
103
|
+
"Date d'entr\u00E9e"?: string | undefined;
|
|
104
|
+
"Date pr\u00E9vi"?: string | undefined;
|
|
105
|
+
"Date de sortie"?: string | undefined;
|
|
106
|
+
"Motif de sortie"?: string | undefined;
|
|
107
|
+
"Montant de la valorisation"?: string | undefined;
|
|
108
|
+
"Co\u00FBts de r\u00E9trologistique"?: string | undefined;
|
|
109
|
+
Grade?: string | undefined;
|
|
110
|
+
"Montant Remboursement Assurance"?: string | undefined;
|
|
111
|
+
"Montant de la franchise"?: string | undefined;
|
|
112
|
+
"Date de Remboursement Assurance"?: string | undefined;
|
|
113
|
+
"Date de facture"?: string | undefined;
|
|
114
|
+
"N\u00B0 Facture"?: string | undefined;
|
|
115
|
+
Avenant?: string | undefined;
|
|
116
|
+
"Prix unitaire"?: string | undefined;
|
|
117
|
+
"Valeur Nette R\u00E9siduelle Comptable"?: string | undefined;
|
|
118
|
+
Statut?: string | undefined;
|
|
119
|
+
Site?: string | undefined;
|
|
120
|
+
"Montant R\u00E9paration"?: string | undefined;
|
|
121
|
+
"N\u00B0 de PV"?: string | undefined;
|
|
122
|
+
Loyer?: string | undefined;
|
|
123
|
+
"B\u00E9n\u00E9ficiaire du Don"?: string | undefined;
|
|
124
|
+
"Date du Don"?: string | undefined;
|
|
125
|
+
}>;
|
|
126
|
+
export declare const ComputerUploadSchema: z.ZodArray<z.ZodObject<{
|
|
127
|
+
ID: z.ZodString;
|
|
128
|
+
"N\u00B0 de s\u00E9rie": z.ZodOptional<z.ZodString>;
|
|
129
|
+
"N\u00B0 Interne": z.ZodOptional<z.ZodString>;
|
|
130
|
+
Propriétaire: z.ZodOptional<z.ZodString>;
|
|
131
|
+
Type: z.ZodOptional<z.ZodString>;
|
|
132
|
+
Constructeur: z.ZodOptional<z.ZodString>;
|
|
133
|
+
"Code produit": z.ZodOptional<z.ZodString>;
|
|
134
|
+
Label: z.ZodString;
|
|
135
|
+
CPU: z.ZodOptional<z.ZodString>;
|
|
136
|
+
OS: z.ZodOptional<z.ZodString>;
|
|
137
|
+
RAM: z.ZodOptional<z.ZodString>;
|
|
138
|
+
"M\u00E9moire Disque": z.ZodOptional<z.ZodString>;
|
|
139
|
+
"Adresse IP": z.ZodOptional<z.ZodString>;
|
|
140
|
+
"N\u00B0 de Commande": z.ZodOptional<z.ZodString>;
|
|
141
|
+
"Date de la Commande": z.ZodOptional<z.ZodString>;
|
|
142
|
+
"Date de livraison": z.ZodOptional<z.ZodString>;
|
|
143
|
+
"Date d'entr\u00E9e": z.ZodOptional<z.ZodString>;
|
|
144
|
+
"Date pr\u00E9vi": z.ZodOptional<z.ZodString>;
|
|
145
|
+
"Date de sortie": z.ZodOptional<z.ZodString>;
|
|
146
|
+
"Motif de sortie": z.ZodOptional<z.ZodString>;
|
|
147
|
+
"Montant de la valorisation": z.ZodOptional<z.ZodPipeline<z.ZodEffects<z.ZodString, number, string>, z.ZodNumber>>;
|
|
148
|
+
"Co\u00FBts de r\u00E9trologistique": z.ZodOptional<z.ZodPipeline<z.ZodEffects<z.ZodString, number, string>, z.ZodNumber>>;
|
|
149
|
+
Grade: z.ZodOptional<z.ZodString>;
|
|
150
|
+
"Montant Remboursement Assurance": z.ZodOptional<z.ZodPipeline<z.ZodEffects<z.ZodString, number, string>, z.ZodNumber>>;
|
|
151
|
+
"Montant de la franchise": z.ZodOptional<z.ZodPipeline<z.ZodEffects<z.ZodString, number, string>, z.ZodNumber>>;
|
|
152
|
+
"Date de Remboursement Assurance": z.ZodOptional<z.ZodString>;
|
|
153
|
+
"Date de facture": z.ZodOptional<z.ZodString>;
|
|
154
|
+
"N\u00B0 Facture": z.ZodOptional<z.ZodString>;
|
|
155
|
+
Avenant: z.ZodOptional<z.ZodString>;
|
|
156
|
+
"Prix unitaire": z.ZodOptional<z.ZodPipeline<z.ZodEffects<z.ZodString, number, string>, z.ZodNumber>>;
|
|
157
|
+
"Valeur Nette R\u00E9siduelle Comptable": z.ZodOptional<z.ZodPipeline<z.ZodEffects<z.ZodString, number, string>, z.ZodNumber>>;
|
|
158
|
+
Matricule: z.ZodOptional<z.ZodString>;
|
|
159
|
+
Statut: z.ZodOptional<z.ZodString>;
|
|
160
|
+
Site: z.ZodOptional<z.ZodString>;
|
|
161
|
+
Filiale: z.ZodOptional<z.ZodString>;
|
|
162
|
+
"Montant R\u00E9paration": z.ZodOptional<z.ZodPipeline<z.ZodEffects<z.ZodString, number, string>, z.ZodNumber>>;
|
|
163
|
+
"N\u00B0 de PV": z.ZodOptional<z.ZodString>;
|
|
164
|
+
Loyer: z.ZodOptional<z.ZodPipeline<z.ZodEffects<z.ZodString, number, string>, z.ZodNumber>>;
|
|
165
|
+
"B\u00E9n\u00E9ficiaire du Don": z.ZodOptional<z.ZodString>;
|
|
166
|
+
"Date du Don": z.ZodOptional<z.ZodString>;
|
|
167
|
+
}, "strip", z.ZodTypeAny, {
|
|
168
|
+
ID: string;
|
|
169
|
+
Label: string;
|
|
170
|
+
Matricule?: string | undefined;
|
|
171
|
+
Filiale?: string | undefined;
|
|
172
|
+
"N\u00B0 de s\u00E9rie"?: string | undefined;
|
|
173
|
+
"N\u00B0 Interne"?: string | undefined;
|
|
174
|
+
Propriétaire?: string | undefined;
|
|
175
|
+
Type?: string | undefined;
|
|
176
|
+
Constructeur?: string | undefined;
|
|
177
|
+
"Code produit"?: string | undefined;
|
|
178
|
+
CPU?: string | undefined;
|
|
179
|
+
OS?: string | undefined;
|
|
180
|
+
RAM?: string | undefined;
|
|
181
|
+
"M\u00E9moire Disque"?: string | undefined;
|
|
182
|
+
"Adresse IP"?: string | undefined;
|
|
183
|
+
"N\u00B0 de Commande"?: string | undefined;
|
|
184
|
+
"Date de la Commande"?: string | undefined;
|
|
185
|
+
"Date de livraison"?: string | undefined;
|
|
186
|
+
"Date d'entr\u00E9e"?: string | undefined;
|
|
187
|
+
"Date pr\u00E9vi"?: string | undefined;
|
|
188
|
+
"Date de sortie"?: string | undefined;
|
|
189
|
+
"Motif de sortie"?: string | undefined;
|
|
190
|
+
"Montant de la valorisation"?: number | undefined;
|
|
191
|
+
"Co\u00FBts de r\u00E9trologistique"?: number | undefined;
|
|
192
|
+
Grade?: string | undefined;
|
|
193
|
+
"Montant Remboursement Assurance"?: number | undefined;
|
|
194
|
+
"Montant de la franchise"?: number | undefined;
|
|
195
|
+
"Date de Remboursement Assurance"?: string | undefined;
|
|
196
|
+
"Date de facture"?: string | undefined;
|
|
197
|
+
"N\u00B0 Facture"?: string | undefined;
|
|
198
|
+
Avenant?: string | undefined;
|
|
199
|
+
"Prix unitaire"?: number | undefined;
|
|
200
|
+
"Valeur Nette R\u00E9siduelle Comptable"?: number | undefined;
|
|
201
|
+
Statut?: string | undefined;
|
|
202
|
+
Site?: string | undefined;
|
|
203
|
+
"Montant R\u00E9paration"?: number | undefined;
|
|
204
|
+
"N\u00B0 de PV"?: string | undefined;
|
|
205
|
+
Loyer?: number | undefined;
|
|
206
|
+
"B\u00E9n\u00E9ficiaire du Don"?: string | undefined;
|
|
207
|
+
"Date du Don"?: string | undefined;
|
|
208
|
+
}, {
|
|
209
|
+
ID: string;
|
|
210
|
+
Label: string;
|
|
211
|
+
Matricule?: string | undefined;
|
|
212
|
+
Filiale?: string | undefined;
|
|
213
|
+
"N\u00B0 de s\u00E9rie"?: string | undefined;
|
|
214
|
+
"N\u00B0 Interne"?: string | undefined;
|
|
215
|
+
Propriétaire?: string | undefined;
|
|
216
|
+
Type?: string | undefined;
|
|
217
|
+
Constructeur?: string | undefined;
|
|
218
|
+
"Code produit"?: string | undefined;
|
|
219
|
+
CPU?: string | undefined;
|
|
220
|
+
OS?: string | undefined;
|
|
221
|
+
RAM?: string | undefined;
|
|
222
|
+
"M\u00E9moire Disque"?: string | undefined;
|
|
223
|
+
"Adresse IP"?: string | undefined;
|
|
224
|
+
"N\u00B0 de Commande"?: string | undefined;
|
|
225
|
+
"Date de la Commande"?: string | undefined;
|
|
226
|
+
"Date de livraison"?: string | undefined;
|
|
227
|
+
"Date d'entr\u00E9e"?: string | undefined;
|
|
228
|
+
"Date pr\u00E9vi"?: string | undefined;
|
|
229
|
+
"Date de sortie"?: string | undefined;
|
|
230
|
+
"Motif de sortie"?: string | undefined;
|
|
231
|
+
"Montant de la valorisation"?: string | undefined;
|
|
232
|
+
"Co\u00FBts de r\u00E9trologistique"?: string | undefined;
|
|
233
|
+
Grade?: string | undefined;
|
|
234
|
+
"Montant Remboursement Assurance"?: string | undefined;
|
|
235
|
+
"Montant de la franchise"?: string | undefined;
|
|
236
|
+
"Date de Remboursement Assurance"?: string | undefined;
|
|
237
|
+
"Date de facture"?: string | undefined;
|
|
238
|
+
"N\u00B0 Facture"?: string | undefined;
|
|
239
|
+
Avenant?: string | undefined;
|
|
240
|
+
"Prix unitaire"?: string | undefined;
|
|
241
|
+
"Valeur Nette R\u00E9siduelle Comptable"?: string | undefined;
|
|
242
|
+
Statut?: string | undefined;
|
|
243
|
+
Site?: string | undefined;
|
|
244
|
+
"Montant R\u00E9paration"?: string | undefined;
|
|
245
|
+
"N\u00B0 de PV"?: string | undefined;
|
|
246
|
+
Loyer?: string | undefined;
|
|
247
|
+
"B\u00E9n\u00E9ficiaire du Don"?: string | undefined;
|
|
248
|
+
"Date du Don"?: string | undefined;
|
|
249
|
+
}>, "many">;
|
|
250
|
+
export type ComputerUpload = z.infer<typeof ComputerUploadSchema>;
|
|
251
|
+
export declare const assetDefinitions: {
|
|
252
|
+
computer_upload: z.ZodArray<z.ZodObject<{
|
|
253
|
+
ID: z.ZodString;
|
|
254
|
+
"N\u00B0 de s\u00E9rie": z.ZodOptional<z.ZodString>;
|
|
255
|
+
"N\u00B0 Interne": z.ZodOptional<z.ZodString>;
|
|
256
|
+
Propriétaire: z.ZodOptional<z.ZodString>;
|
|
257
|
+
Type: z.ZodOptional<z.ZodString>;
|
|
258
|
+
Constructeur: z.ZodOptional<z.ZodString>;
|
|
259
|
+
"Code produit": z.ZodOptional<z.ZodString>;
|
|
260
|
+
Label: z.ZodString;
|
|
261
|
+
CPU: z.ZodOptional<z.ZodString>;
|
|
262
|
+
OS: z.ZodOptional<z.ZodString>;
|
|
263
|
+
RAM: z.ZodOptional<z.ZodString>;
|
|
264
|
+
"M\u00E9moire Disque": z.ZodOptional<z.ZodString>;
|
|
265
|
+
"Adresse IP": z.ZodOptional<z.ZodString>;
|
|
266
|
+
"N\u00B0 de Commande": z.ZodOptional<z.ZodString>;
|
|
267
|
+
"Date de la Commande": z.ZodOptional<z.ZodString>;
|
|
268
|
+
"Date de livraison": z.ZodOptional<z.ZodString>;
|
|
269
|
+
"Date d'entr\u00E9e": z.ZodOptional<z.ZodString>;
|
|
270
|
+
"Date pr\u00E9vi": z.ZodOptional<z.ZodString>;
|
|
271
|
+
"Date de sortie": z.ZodOptional<z.ZodString>;
|
|
272
|
+
"Motif de sortie": z.ZodOptional<z.ZodString>;
|
|
273
|
+
"Montant de la valorisation": z.ZodOptional<z.ZodPipeline<z.ZodEffects<z.ZodString, number, string>, z.ZodNumber>>;
|
|
274
|
+
"Co\u00FBts de r\u00E9trologistique": z.ZodOptional<z.ZodPipeline<z.ZodEffects<z.ZodString, number, string>, z.ZodNumber>>;
|
|
275
|
+
Grade: z.ZodOptional<z.ZodString>;
|
|
276
|
+
"Montant Remboursement Assurance": z.ZodOptional<z.ZodPipeline<z.ZodEffects<z.ZodString, number, string>, z.ZodNumber>>;
|
|
277
|
+
"Montant de la franchise": z.ZodOptional<z.ZodPipeline<z.ZodEffects<z.ZodString, number, string>, z.ZodNumber>>;
|
|
278
|
+
"Date de Remboursement Assurance": z.ZodOptional<z.ZodString>;
|
|
279
|
+
"Date de facture": z.ZodOptional<z.ZodString>;
|
|
280
|
+
"N\u00B0 Facture": z.ZodOptional<z.ZodString>;
|
|
281
|
+
Avenant: z.ZodOptional<z.ZodString>;
|
|
282
|
+
"Prix unitaire": z.ZodOptional<z.ZodPipeline<z.ZodEffects<z.ZodString, number, string>, z.ZodNumber>>;
|
|
283
|
+
"Valeur Nette R\u00E9siduelle Comptable": z.ZodOptional<z.ZodPipeline<z.ZodEffects<z.ZodString, number, string>, z.ZodNumber>>;
|
|
284
|
+
Matricule: z.ZodOptional<z.ZodString>;
|
|
285
|
+
Statut: z.ZodOptional<z.ZodString>;
|
|
286
|
+
Site: z.ZodOptional<z.ZodString>;
|
|
287
|
+
Filiale: z.ZodOptional<z.ZodString>;
|
|
288
|
+
"Montant R\u00E9paration": z.ZodOptional<z.ZodPipeline<z.ZodEffects<z.ZodString, number, string>, z.ZodNumber>>;
|
|
289
|
+
"N\u00B0 de PV": z.ZodOptional<z.ZodString>;
|
|
290
|
+
Loyer: z.ZodOptional<z.ZodPipeline<z.ZodEffects<z.ZodString, number, string>, z.ZodNumber>>;
|
|
291
|
+
"B\u00E9n\u00E9ficiaire du Don": z.ZodOptional<z.ZodString>;
|
|
292
|
+
"Date du Don": z.ZodOptional<z.ZodString>;
|
|
293
|
+
}, "strip", z.ZodTypeAny, {
|
|
294
|
+
ID: string;
|
|
295
|
+
Label: string;
|
|
296
|
+
Matricule?: string | undefined;
|
|
297
|
+
Filiale?: string | undefined;
|
|
298
|
+
"N\u00B0 de s\u00E9rie"?: string | undefined;
|
|
299
|
+
"N\u00B0 Interne"?: string | undefined;
|
|
300
|
+
Propriétaire?: string | undefined;
|
|
301
|
+
Type?: string | undefined;
|
|
302
|
+
Constructeur?: string | undefined;
|
|
303
|
+
"Code produit"?: string | undefined;
|
|
304
|
+
CPU?: string | undefined;
|
|
305
|
+
OS?: string | undefined;
|
|
306
|
+
RAM?: string | undefined;
|
|
307
|
+
"M\u00E9moire Disque"?: string | undefined;
|
|
308
|
+
"Adresse IP"?: string | undefined;
|
|
309
|
+
"N\u00B0 de Commande"?: string | undefined;
|
|
310
|
+
"Date de la Commande"?: string | undefined;
|
|
311
|
+
"Date de livraison"?: string | undefined;
|
|
312
|
+
"Date d'entr\u00E9e"?: string | undefined;
|
|
313
|
+
"Date pr\u00E9vi"?: string | undefined;
|
|
314
|
+
"Date de sortie"?: string | undefined;
|
|
315
|
+
"Motif de sortie"?: string | undefined;
|
|
316
|
+
"Montant de la valorisation"?: number | undefined;
|
|
317
|
+
"Co\u00FBts de r\u00E9trologistique"?: number | undefined;
|
|
318
|
+
Grade?: string | undefined;
|
|
319
|
+
"Montant Remboursement Assurance"?: number | undefined;
|
|
320
|
+
"Montant de la franchise"?: number | undefined;
|
|
321
|
+
"Date de Remboursement Assurance"?: string | undefined;
|
|
322
|
+
"Date de facture"?: string | undefined;
|
|
323
|
+
"N\u00B0 Facture"?: string | undefined;
|
|
324
|
+
Avenant?: string | undefined;
|
|
325
|
+
"Prix unitaire"?: number | undefined;
|
|
326
|
+
"Valeur Nette R\u00E9siduelle Comptable"?: number | undefined;
|
|
327
|
+
Statut?: string | undefined;
|
|
328
|
+
Site?: string | undefined;
|
|
329
|
+
"Montant R\u00E9paration"?: number | undefined;
|
|
330
|
+
"N\u00B0 de PV"?: string | undefined;
|
|
331
|
+
Loyer?: number | undefined;
|
|
332
|
+
"B\u00E9n\u00E9ficiaire du Don"?: string | undefined;
|
|
333
|
+
"Date du Don"?: string | undefined;
|
|
334
|
+
}, {
|
|
335
|
+
ID: string;
|
|
336
|
+
Label: string;
|
|
337
|
+
Matricule?: string | undefined;
|
|
338
|
+
Filiale?: string | undefined;
|
|
339
|
+
"N\u00B0 de s\u00E9rie"?: string | undefined;
|
|
340
|
+
"N\u00B0 Interne"?: string | undefined;
|
|
341
|
+
Propriétaire?: string | undefined;
|
|
342
|
+
Type?: string | undefined;
|
|
343
|
+
Constructeur?: string | undefined;
|
|
344
|
+
"Code produit"?: string | undefined;
|
|
345
|
+
CPU?: string | undefined;
|
|
346
|
+
OS?: string | undefined;
|
|
347
|
+
RAM?: string | undefined;
|
|
348
|
+
"M\u00E9moire Disque"?: string | undefined;
|
|
349
|
+
"Adresse IP"?: string | undefined;
|
|
350
|
+
"N\u00B0 de Commande"?: string | undefined;
|
|
351
|
+
"Date de la Commande"?: string | undefined;
|
|
352
|
+
"Date de livraison"?: string | undefined;
|
|
353
|
+
"Date d'entr\u00E9e"?: string | undefined;
|
|
354
|
+
"Date pr\u00E9vi"?: string | undefined;
|
|
355
|
+
"Date de sortie"?: string | undefined;
|
|
356
|
+
"Motif de sortie"?: string | undefined;
|
|
357
|
+
"Montant de la valorisation"?: string | undefined;
|
|
358
|
+
"Co\u00FBts de r\u00E9trologistique"?: string | undefined;
|
|
359
|
+
Grade?: string | undefined;
|
|
360
|
+
"Montant Remboursement Assurance"?: string | undefined;
|
|
361
|
+
"Montant de la franchise"?: string | undefined;
|
|
362
|
+
"Date de Remboursement Assurance"?: string | undefined;
|
|
363
|
+
"Date de facture"?: string | undefined;
|
|
364
|
+
"N\u00B0 Facture"?: string | undefined;
|
|
365
|
+
Avenant?: string | undefined;
|
|
366
|
+
"Prix unitaire"?: string | undefined;
|
|
367
|
+
"Valeur Nette R\u00E9siduelle Comptable"?: string | undefined;
|
|
368
|
+
Statut?: string | undefined;
|
|
369
|
+
Site?: string | undefined;
|
|
370
|
+
"Montant R\u00E9paration"?: string | undefined;
|
|
371
|
+
"N\u00B0 de PV"?: string | undefined;
|
|
372
|
+
Loyer?: string | undefined;
|
|
373
|
+
"B\u00E9n\u00E9ficiaire du Don"?: string | undefined;
|
|
374
|
+
"Date du Don"?: string | undefined;
|
|
375
|
+
}>, "many">;
|
|
376
|
+
};
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { extendZodWithOpenApi } from "@asteasolutions/zod-to-openapi";
|
|
3
|
+
extendZodWithOpenApi(z);
|
|
4
|
+
const DATE_REGEX = /^\d{2}\/\d{2}\/\d{4}$/;
|
|
5
|
+
const parseDecimal = (v) => parseFloat(v.replace(",", "."));
|
|
6
|
+
export const ComputerUploadRowSchema = z
|
|
7
|
+
.object({
|
|
8
|
+
ID: z.string().openapi({ description: "Computer identifier" }),
|
|
9
|
+
"N° de série": z
|
|
10
|
+
.string()
|
|
11
|
+
.optional()
|
|
12
|
+
.openapi({ description: "Serial number" }),
|
|
13
|
+
"N° Interne": z
|
|
14
|
+
.string()
|
|
15
|
+
.optional()
|
|
16
|
+
.openapi({ description: "Internal number" }),
|
|
17
|
+
Propriétaire: z
|
|
18
|
+
.string()
|
|
19
|
+
.max(100)
|
|
20
|
+
.optional()
|
|
21
|
+
.openapi({ description: "Owner company name" }),
|
|
22
|
+
Type: z.string().optional().openapi({ description: "Asset type" }),
|
|
23
|
+
Constructeur: z.string().optional().openapi({ description: "Manufacturer" }),
|
|
24
|
+
"Code produit": z
|
|
25
|
+
.string()
|
|
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
|
|
47
|
+
.string()
|
|
48
|
+
.regex(DATE_REGEX)
|
|
49
|
+
.optional()
|
|
50
|
+
.openapi({ description: "Delivery date (DD/MM/YYYY)" }),
|
|
51
|
+
"Date d'entrée": z
|
|
52
|
+
.string()
|
|
53
|
+
.regex(DATE_REGEX)
|
|
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
|
|
71
|
+
.string()
|
|
72
|
+
.transform(parseDecimal)
|
|
73
|
+
.pipe(z.number())
|
|
74
|
+
.optional()
|
|
75
|
+
.openapi({ description: "Valuation amount" }),
|
|
76
|
+
"Coûts de rétrologistique": z
|
|
77
|
+
.string()
|
|
78
|
+
.transform(parseDecimal)
|
|
79
|
+
.pipe(z.number())
|
|
80
|
+
.optional()
|
|
81
|
+
.openapi({ description: "Retro-logistics costs" }),
|
|
82
|
+
Grade: z.string().optional().openapi({ description: "Condition grade" }),
|
|
83
|
+
"Montant Remboursement Assurance": z
|
|
84
|
+
.string()
|
|
85
|
+
.transform(parseDecimal)
|
|
86
|
+
.pipe(z.number())
|
|
87
|
+
.optional()
|
|
88
|
+
.openapi({ description: "Insurance refund amount" }),
|
|
89
|
+
"Montant de la franchise": z
|
|
90
|
+
.string()
|
|
91
|
+
.transform(parseDecimal)
|
|
92
|
+
.pipe(z.number())
|
|
93
|
+
.optional()
|
|
94
|
+
.openapi({ description: "Franchise amount" }),
|
|
95
|
+
"Date de Remboursement Assurance": z
|
|
96
|
+
.string()
|
|
97
|
+
.regex(DATE_REGEX)
|
|
98
|
+
.optional()
|
|
99
|
+
.openapi({ description: "Insurance refund date (DD/MM/YYYY)" }),
|
|
100
|
+
"Date de facture": z
|
|
101
|
+
.string()
|
|
102
|
+
.regex(DATE_REGEX)
|
|
103
|
+
.optional()
|
|
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
|
|
111
|
+
.string()
|
|
112
|
+
.transform(parseDecimal)
|
|
113
|
+
.pipe(z.number())
|
|
114
|
+
.optional()
|
|
115
|
+
.openapi({ description: "Unit price" }),
|
|
116
|
+
"Valeur Nette Résiduelle Comptable": z
|
|
117
|
+
.string()
|
|
118
|
+
.transform(parseDecimal)
|
|
119
|
+
.pipe(z.number())
|
|
120
|
+
.optional()
|
|
121
|
+
.openapi({ description: "Net residual book value" }),
|
|
122
|
+
Matricule: z
|
|
123
|
+
.string()
|
|
124
|
+
.optional()
|
|
125
|
+
.openapi({ description: "Assigned employee ID" }),
|
|
126
|
+
Statut: z.string().optional().openapi({ description: "Asset status" }),
|
|
127
|
+
Site: z.string().optional().openapi({ description: "Site name" }),
|
|
128
|
+
Filiale: z.string().optional().openapi({ description: "Subsidiary name" }),
|
|
129
|
+
"Montant Réparation": z
|
|
130
|
+
.string()
|
|
131
|
+
.transform(parseDecimal)
|
|
132
|
+
.pipe(z.number())
|
|
133
|
+
.optional()
|
|
134
|
+
.openapi({ description: "Repair amount" }),
|
|
135
|
+
"N° de PV": z
|
|
136
|
+
.string()
|
|
137
|
+
.max(50)
|
|
138
|
+
.optional()
|
|
139
|
+
.openapi({ description: "Report number" }),
|
|
140
|
+
Loyer: z
|
|
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)
|
|
153
|
+
.optional()
|
|
154
|
+
.openapi({ description: "Donation date (DD/MM/YYYY)" }),
|
|
155
|
+
})
|
|
156
|
+
.openapi("ComputerUploadRow");
|
|
157
|
+
export const ComputerUploadSchema = z
|
|
158
|
+
.array(ComputerUploadRowSchema)
|
|
159
|
+
.openapi("ComputerUpload");
|
|
160
|
+
export const assetDefinitions = {
|
|
161
|
+
computer_upload: ComputerUploadSchema,
|
|
162
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const ImportsHistoryTypeSchema: z.ZodEnum<["import_assets", "import_telecom_lines", "import_people", "import_subsidiaries"]>;
|
|
3
|
+
export declare const ImportsHistoryStatusSchema: z.ZodEnum<["success", "error", "pending"]>;
|
|
4
|
+
export declare const ImportsHistorySchema: z.ZodObject<{
|
|
5
|
+
companyName: z.ZodString;
|
|
6
|
+
id: z.ZodString;
|
|
7
|
+
type: z.ZodEnum<["import_assets", "import_telecom_lines", "import_people", "import_subsidiaries"]>;
|
|
8
|
+
params: z.ZodArray<z.ZodString, "many">;
|
|
9
|
+
status: z.ZodEnum<["success", "error", "pending"]>;
|
|
10
|
+
srcUrls: z.ZodArray<z.ZodString, "many">;
|
|
11
|
+
date: z.ZodString;
|
|
12
|
+
error: z.ZodOptional<z.ZodString>;
|
|
13
|
+
}, "strip", z.ZodTypeAny, {
|
|
14
|
+
type: "import_assets" | "import_telecom_lines" | "import_people" | "import_subsidiaries";
|
|
15
|
+
date: string;
|
|
16
|
+
params: string[];
|
|
17
|
+
status: "success" | "error" | "pending";
|
|
18
|
+
id: string;
|
|
19
|
+
companyName: string;
|
|
20
|
+
srcUrls: string[];
|
|
21
|
+
error?: string | undefined;
|
|
22
|
+
}, {
|
|
23
|
+
type: "import_assets" | "import_telecom_lines" | "import_people" | "import_subsidiaries";
|
|
24
|
+
date: string;
|
|
25
|
+
params: string[];
|
|
26
|
+
status: "success" | "error" | "pending";
|
|
27
|
+
id: string;
|
|
28
|
+
companyName: string;
|
|
29
|
+
srcUrls: string[];
|
|
30
|
+
error?: string | undefined;
|
|
31
|
+
}>;
|
|
32
|
+
export type ImportsHistory = z.infer<typeof ImportsHistorySchema>;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { extendZodWithOpenApi } from "@asteasolutions/zod-to-openapi";
|
|
3
|
+
extendZodWithOpenApi(z);
|
|
4
|
+
export const ImportsHistoryTypeSchema = z
|
|
5
|
+
.enum([
|
|
6
|
+
"import_assets",
|
|
7
|
+
"import_telecom_lines",
|
|
8
|
+
"import_people",
|
|
9
|
+
"import_subsidiaries",
|
|
10
|
+
])
|
|
11
|
+
.openapi({ description: "Type of import operation" });
|
|
12
|
+
export const ImportsHistoryStatusSchema = z
|
|
13
|
+
.enum(["success", "error", "pending"])
|
|
14
|
+
.openapi({ description: "Status of the import operation" });
|
|
15
|
+
export const ImportsHistorySchema = z
|
|
16
|
+
.object({
|
|
17
|
+
companyName: z.string().openapi({ description: "Name of the company" }),
|
|
18
|
+
id: z.string().openapi({ description: "Unique import identifier" }),
|
|
19
|
+
type: ImportsHistoryTypeSchema,
|
|
20
|
+
params: z
|
|
21
|
+
.array(z.string())
|
|
22
|
+
.openapi({ description: "Import parameters" }),
|
|
23
|
+
status: ImportsHistoryStatusSchema,
|
|
24
|
+
srcUrls: z
|
|
25
|
+
.array(z.string())
|
|
26
|
+
.openapi({ description: "Source file URLs" }),
|
|
27
|
+
date: z.string().openapi({ description: "ISO 8601 timestamp of import" }),
|
|
28
|
+
error: z
|
|
29
|
+
.string()
|
|
30
|
+
.optional()
|
|
31
|
+
.openapi({ description: "Error message if import failed" }),
|
|
32
|
+
})
|
|
33
|
+
.openapi("ImportsHistory");
|