@deepintel-ltd/farmpro-contracts 1.7.4 → 1.7.5

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.
@@ -0,0 +1,4061 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * Livestock schemas - JSON:API compliant
4
+ */
5
+ export declare const livestockCategorySchema: z.ZodEnum<["CATTLE", "POULTRY", "SHEEP", "GOAT", "PIG", "FISH", "RABBIT", "OTHER"]>;
6
+ export declare const livestockSexSchema: z.ZodEnum<["MALE", "FEMALE", "UNKNOWN"]>;
7
+ export declare const livestockStatusSchema: z.ZodEnum<["ACTIVE", "SOLD", "DECEASED", "TRANSFERRED", "QUARANTINE"]>;
8
+ export declare const healthRecordTypeSchema: z.ZodEnum<["vaccination", "treatment", "checkup", "deworming", "surgery", "other"]>;
9
+ export declare const movementTypeSchema: z.ZodEnum<["transfer_in", "transfer_out", "sale", "purchase", "death", "birth"]>;
10
+ export declare const acquisitionTypeSchema: z.ZodEnum<["born", "purchased", "transferred", "gifted"]>;
11
+ export declare const weightRecordAttributesSchema: z.ZodObject<{
12
+ id: z.ZodString;
13
+ recordDate: z.ZodString;
14
+ weight: z.ZodNumber;
15
+ weightUnit: z.ZodDefault<z.ZodString>;
16
+ notes: z.ZodNullable<z.ZodString>;
17
+ }, "strip", z.ZodTypeAny, {
18
+ id: string;
19
+ notes: string | null;
20
+ weight: number;
21
+ recordDate: string;
22
+ weightUnit: string;
23
+ }, {
24
+ id: string;
25
+ notes: string | null;
26
+ weight: number;
27
+ recordDate: string;
28
+ weightUnit?: string | undefined;
29
+ }>;
30
+ export declare const healthRecordAttributesSchema: z.ZodObject<{
31
+ id: z.ZodString;
32
+ recordDate: z.ZodString;
33
+ recordType: z.ZodEnum<["vaccination", "treatment", "checkup", "deworming", "surgery", "other"]>;
34
+ description: z.ZodString;
35
+ diagnosis: z.ZodNullable<z.ZodString>;
36
+ treatment: z.ZodNullable<z.ZodString>;
37
+ medication: z.ZodNullable<z.ZodString>;
38
+ dosage: z.ZodNullable<z.ZodString>;
39
+ administeredBy: z.ZodNullable<z.ZodString>;
40
+ vaccineName: z.ZodNullable<z.ZodString>;
41
+ batchNumber: z.ZodNullable<z.ZodString>;
42
+ nextDueDate: z.ZodNullable<z.ZodString>;
43
+ cost: z.ZodNullable<z.ZodNumber>;
44
+ currency: z.ZodDefault<z.ZodString>;
45
+ followUpRequired: z.ZodDefault<z.ZodBoolean>;
46
+ followUpDate: z.ZodNullable<z.ZodString>;
47
+ followUpNotes: z.ZodNullable<z.ZodString>;
48
+ notes: z.ZodNullable<z.ZodString>;
49
+ }, "strip", z.ZodTypeAny, {
50
+ id: string;
51
+ description: string;
52
+ currency: string;
53
+ notes: string | null;
54
+ cost: number | null;
55
+ treatment: string | null;
56
+ recordDate: string;
57
+ recordType: "other" | "vaccination" | "treatment" | "checkup" | "deworming" | "surgery";
58
+ diagnosis: string | null;
59
+ medication: string | null;
60
+ dosage: string | null;
61
+ administeredBy: string | null;
62
+ vaccineName: string | null;
63
+ batchNumber: string | null;
64
+ nextDueDate: string | null;
65
+ followUpRequired: boolean;
66
+ followUpDate: string | null;
67
+ followUpNotes: string | null;
68
+ }, {
69
+ id: string;
70
+ description: string;
71
+ notes: string | null;
72
+ cost: number | null;
73
+ treatment: string | null;
74
+ recordDate: string;
75
+ recordType: "other" | "vaccination" | "treatment" | "checkup" | "deworming" | "surgery";
76
+ diagnosis: string | null;
77
+ medication: string | null;
78
+ dosage: string | null;
79
+ administeredBy: string | null;
80
+ vaccineName: string | null;
81
+ batchNumber: string | null;
82
+ nextDueDate: string | null;
83
+ followUpDate: string | null;
84
+ followUpNotes: string | null;
85
+ currency?: string | undefined;
86
+ followUpRequired?: boolean | undefined;
87
+ }>;
88
+ export declare const movementRecordAttributesSchema: z.ZodObject<{
89
+ id: z.ZodString;
90
+ movementDate: z.ZodString;
91
+ movementType: z.ZodEnum<["transfer_in", "transfer_out", "sale", "purchase", "death", "birth"]>;
92
+ fromLocation: z.ZodNullable<z.ZodString>;
93
+ toLocation: z.ZodNullable<z.ZodString>;
94
+ reason: z.ZodNullable<z.ZodString>;
95
+ transactionValue: z.ZodNullable<z.ZodNumber>;
96
+ currency: z.ZodDefault<z.ZodString>;
97
+ buyerSeller: z.ZodNullable<z.ZodString>;
98
+ documentRef: z.ZodNullable<z.ZodString>;
99
+ notes: z.ZodNullable<z.ZodString>;
100
+ }, "strip", z.ZodTypeAny, {
101
+ id: string;
102
+ currency: string;
103
+ notes: string | null;
104
+ reason: string | null;
105
+ movementDate: string;
106
+ movementType: "purchase" | "transfer_in" | "transfer_out" | "sale" | "death" | "birth";
107
+ fromLocation: string | null;
108
+ toLocation: string | null;
109
+ transactionValue: number | null;
110
+ buyerSeller: string | null;
111
+ documentRef: string | null;
112
+ }, {
113
+ id: string;
114
+ notes: string | null;
115
+ reason: string | null;
116
+ movementDate: string;
117
+ movementType: "purchase" | "transfer_in" | "transfer_out" | "sale" | "death" | "birth";
118
+ fromLocation: string | null;
119
+ toLocation: string | null;
120
+ transactionValue: number | null;
121
+ buyerSeller: string | null;
122
+ documentRef: string | null;
123
+ currency?: string | undefined;
124
+ }>;
125
+ export declare const livestockAttributesSchema: z.ZodObject<{
126
+ farmId: z.ZodString;
127
+ tagId: z.ZodString;
128
+ name: z.ZodNullable<z.ZodString>;
129
+ category: z.ZodEnum<["CATTLE", "POULTRY", "SHEEP", "GOAT", "PIG", "FISH", "RABBIT", "OTHER"]>;
130
+ breed: z.ZodNullable<z.ZodString>;
131
+ sex: z.ZodEnum<["MALE", "FEMALE", "UNKNOWN"]>;
132
+ dateOfBirth: z.ZodNullable<z.ZodString>;
133
+ acquisitionDate: z.ZodString;
134
+ acquisitionType: z.ZodEnum<["born", "purchased", "transferred", "gifted"]>;
135
+ color: z.ZodNullable<z.ZodString>;
136
+ weight: z.ZodNullable<z.ZodNumber>;
137
+ weightUnit: z.ZodDefault<z.ZodString>;
138
+ lastWeighDate: z.ZodNullable<z.ZodString>;
139
+ sireId: z.ZodNullable<z.ZodString>;
140
+ damId: z.ZodNullable<z.ZodString>;
141
+ sireName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
142
+ damName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
143
+ status: z.ZodEnum<["ACTIVE", "SOLD", "DECEASED", "TRANSFERRED", "QUARANTINE"]>;
144
+ statusDate: z.ZodString;
145
+ statusNote: z.ZodNullable<z.ZodString>;
146
+ location: z.ZodNullable<z.ZodString>;
147
+ groupId: z.ZodNullable<z.ZodString>;
148
+ purchasePrice: z.ZodNullable<z.ZodNumber>;
149
+ currentValue: z.ZodNullable<z.ZodNumber>;
150
+ currency: z.ZodDefault<z.ZodString>;
151
+ notes: z.ZodNullable<z.ZodString>;
152
+ healthRecords: z.ZodOptional<z.ZodArray<z.ZodObject<{
153
+ id: z.ZodString;
154
+ recordDate: z.ZodString;
155
+ recordType: z.ZodEnum<["vaccination", "treatment", "checkup", "deworming", "surgery", "other"]>;
156
+ description: z.ZodString;
157
+ diagnosis: z.ZodNullable<z.ZodString>;
158
+ treatment: z.ZodNullable<z.ZodString>;
159
+ medication: z.ZodNullable<z.ZodString>;
160
+ dosage: z.ZodNullable<z.ZodString>;
161
+ administeredBy: z.ZodNullable<z.ZodString>;
162
+ vaccineName: z.ZodNullable<z.ZodString>;
163
+ batchNumber: z.ZodNullable<z.ZodString>;
164
+ nextDueDate: z.ZodNullable<z.ZodString>;
165
+ cost: z.ZodNullable<z.ZodNumber>;
166
+ currency: z.ZodDefault<z.ZodString>;
167
+ followUpRequired: z.ZodDefault<z.ZodBoolean>;
168
+ followUpDate: z.ZodNullable<z.ZodString>;
169
+ followUpNotes: z.ZodNullable<z.ZodString>;
170
+ notes: z.ZodNullable<z.ZodString>;
171
+ }, "strip", z.ZodTypeAny, {
172
+ id: string;
173
+ description: string;
174
+ currency: string;
175
+ notes: string | null;
176
+ cost: number | null;
177
+ treatment: string | null;
178
+ recordDate: string;
179
+ recordType: "other" | "vaccination" | "treatment" | "checkup" | "deworming" | "surgery";
180
+ diagnosis: string | null;
181
+ medication: string | null;
182
+ dosage: string | null;
183
+ administeredBy: string | null;
184
+ vaccineName: string | null;
185
+ batchNumber: string | null;
186
+ nextDueDate: string | null;
187
+ followUpRequired: boolean;
188
+ followUpDate: string | null;
189
+ followUpNotes: string | null;
190
+ }, {
191
+ id: string;
192
+ description: string;
193
+ notes: string | null;
194
+ cost: number | null;
195
+ treatment: string | null;
196
+ recordDate: string;
197
+ recordType: "other" | "vaccination" | "treatment" | "checkup" | "deworming" | "surgery";
198
+ diagnosis: string | null;
199
+ medication: string | null;
200
+ dosage: string | null;
201
+ administeredBy: string | null;
202
+ vaccineName: string | null;
203
+ batchNumber: string | null;
204
+ nextDueDate: string | null;
205
+ followUpDate: string | null;
206
+ followUpNotes: string | null;
207
+ currency?: string | undefined;
208
+ followUpRequired?: boolean | undefined;
209
+ }>, "many">>;
210
+ weightRecords: z.ZodOptional<z.ZodArray<z.ZodObject<{
211
+ id: z.ZodString;
212
+ recordDate: z.ZodString;
213
+ weight: z.ZodNumber;
214
+ weightUnit: z.ZodDefault<z.ZodString>;
215
+ notes: z.ZodNullable<z.ZodString>;
216
+ }, "strip", z.ZodTypeAny, {
217
+ id: string;
218
+ notes: string | null;
219
+ weight: number;
220
+ recordDate: string;
221
+ weightUnit: string;
222
+ }, {
223
+ id: string;
224
+ notes: string | null;
225
+ weight: number;
226
+ recordDate: string;
227
+ weightUnit?: string | undefined;
228
+ }>, "many">>;
229
+ recentMovements: z.ZodOptional<z.ZodArray<z.ZodObject<{
230
+ id: z.ZodString;
231
+ movementDate: z.ZodString;
232
+ movementType: z.ZodEnum<["transfer_in", "transfer_out", "sale", "purchase", "death", "birth"]>;
233
+ fromLocation: z.ZodNullable<z.ZodString>;
234
+ toLocation: z.ZodNullable<z.ZodString>;
235
+ reason: z.ZodNullable<z.ZodString>;
236
+ transactionValue: z.ZodNullable<z.ZodNumber>;
237
+ currency: z.ZodDefault<z.ZodString>;
238
+ buyerSeller: z.ZodNullable<z.ZodString>;
239
+ documentRef: z.ZodNullable<z.ZodString>;
240
+ notes: z.ZodNullable<z.ZodString>;
241
+ }, "strip", z.ZodTypeAny, {
242
+ id: string;
243
+ currency: string;
244
+ notes: string | null;
245
+ reason: string | null;
246
+ movementDate: string;
247
+ movementType: "purchase" | "transfer_in" | "transfer_out" | "sale" | "death" | "birth";
248
+ fromLocation: string | null;
249
+ toLocation: string | null;
250
+ transactionValue: number | null;
251
+ buyerSeller: string | null;
252
+ documentRef: string | null;
253
+ }, {
254
+ id: string;
255
+ notes: string | null;
256
+ reason: string | null;
257
+ movementDate: string;
258
+ movementType: "purchase" | "transfer_in" | "transfer_out" | "sale" | "death" | "birth";
259
+ fromLocation: string | null;
260
+ toLocation: string | null;
261
+ transactionValue: number | null;
262
+ buyerSeller: string | null;
263
+ documentRef: string | null;
264
+ currency?: string | undefined;
265
+ }>, "many">>;
266
+ } & {
267
+ createdAt: z.ZodString;
268
+ updatedAt: z.ZodString;
269
+ }, "strip", z.ZodTypeAny, {
270
+ status: "ACTIVE" | "SOLD" | "DECEASED" | "TRANSFERRED" | "QUARANTINE";
271
+ createdAt: string;
272
+ updatedAt: string;
273
+ name: string | null;
274
+ location: string | null;
275
+ currency: string;
276
+ farmId: string;
277
+ category: "OTHER" | "CATTLE" | "POULTRY" | "SHEEP" | "GOAT" | "PIG" | "FISH" | "RABBIT";
278
+ notes: string | null;
279
+ purchasePrice: number | null;
280
+ currentValue: number | null;
281
+ weight: number | null;
282
+ color: string | null;
283
+ weightUnit: string;
284
+ tagId: string;
285
+ breed: string | null;
286
+ sex: "MALE" | "FEMALE" | "UNKNOWN";
287
+ dateOfBirth: string | null;
288
+ acquisitionDate: string;
289
+ acquisitionType: "born" | "purchased" | "transferred" | "gifted";
290
+ lastWeighDate: string | null;
291
+ sireId: string | null;
292
+ damId: string | null;
293
+ statusDate: string;
294
+ statusNote: string | null;
295
+ groupId: string | null;
296
+ sireName?: string | null | undefined;
297
+ damName?: string | null | undefined;
298
+ healthRecords?: {
299
+ id: string;
300
+ description: string;
301
+ currency: string;
302
+ notes: string | null;
303
+ cost: number | null;
304
+ treatment: string | null;
305
+ recordDate: string;
306
+ recordType: "other" | "vaccination" | "treatment" | "checkup" | "deworming" | "surgery";
307
+ diagnosis: string | null;
308
+ medication: string | null;
309
+ dosage: string | null;
310
+ administeredBy: string | null;
311
+ vaccineName: string | null;
312
+ batchNumber: string | null;
313
+ nextDueDate: string | null;
314
+ followUpRequired: boolean;
315
+ followUpDate: string | null;
316
+ followUpNotes: string | null;
317
+ }[] | undefined;
318
+ weightRecords?: {
319
+ id: string;
320
+ notes: string | null;
321
+ weight: number;
322
+ recordDate: string;
323
+ weightUnit: string;
324
+ }[] | undefined;
325
+ recentMovements?: {
326
+ id: string;
327
+ currency: string;
328
+ notes: string | null;
329
+ reason: string | null;
330
+ movementDate: string;
331
+ movementType: "purchase" | "transfer_in" | "transfer_out" | "sale" | "death" | "birth";
332
+ fromLocation: string | null;
333
+ toLocation: string | null;
334
+ transactionValue: number | null;
335
+ buyerSeller: string | null;
336
+ documentRef: string | null;
337
+ }[] | undefined;
338
+ }, {
339
+ status: "ACTIVE" | "SOLD" | "DECEASED" | "TRANSFERRED" | "QUARANTINE";
340
+ createdAt: string;
341
+ updatedAt: string;
342
+ name: string | null;
343
+ location: string | null;
344
+ farmId: string;
345
+ category: "OTHER" | "CATTLE" | "POULTRY" | "SHEEP" | "GOAT" | "PIG" | "FISH" | "RABBIT";
346
+ notes: string | null;
347
+ purchasePrice: number | null;
348
+ currentValue: number | null;
349
+ weight: number | null;
350
+ color: string | null;
351
+ tagId: string;
352
+ breed: string | null;
353
+ sex: "MALE" | "FEMALE" | "UNKNOWN";
354
+ dateOfBirth: string | null;
355
+ acquisitionDate: string;
356
+ acquisitionType: "born" | "purchased" | "transferred" | "gifted";
357
+ lastWeighDate: string | null;
358
+ sireId: string | null;
359
+ damId: string | null;
360
+ statusDate: string;
361
+ statusNote: string | null;
362
+ groupId: string | null;
363
+ currency?: string | undefined;
364
+ weightUnit?: string | undefined;
365
+ sireName?: string | null | undefined;
366
+ damName?: string | null | undefined;
367
+ healthRecords?: {
368
+ id: string;
369
+ description: string;
370
+ notes: string | null;
371
+ cost: number | null;
372
+ treatment: string | null;
373
+ recordDate: string;
374
+ recordType: "other" | "vaccination" | "treatment" | "checkup" | "deworming" | "surgery";
375
+ diagnosis: string | null;
376
+ medication: string | null;
377
+ dosage: string | null;
378
+ administeredBy: string | null;
379
+ vaccineName: string | null;
380
+ batchNumber: string | null;
381
+ nextDueDate: string | null;
382
+ followUpDate: string | null;
383
+ followUpNotes: string | null;
384
+ currency?: string | undefined;
385
+ followUpRequired?: boolean | undefined;
386
+ }[] | undefined;
387
+ weightRecords?: {
388
+ id: string;
389
+ notes: string | null;
390
+ weight: number;
391
+ recordDate: string;
392
+ weightUnit?: string | undefined;
393
+ }[] | undefined;
394
+ recentMovements?: {
395
+ id: string;
396
+ notes: string | null;
397
+ reason: string | null;
398
+ movementDate: string;
399
+ movementType: "purchase" | "transfer_in" | "transfer_out" | "sale" | "death" | "birth";
400
+ fromLocation: string | null;
401
+ toLocation: string | null;
402
+ transactionValue: number | null;
403
+ buyerSeller: string | null;
404
+ documentRef: string | null;
405
+ currency?: string | undefined;
406
+ }[] | undefined;
407
+ }>;
408
+ export declare const createLivestockAttributesSchema: z.ZodObject<{
409
+ tagId: z.ZodString;
410
+ name: z.ZodOptional<z.ZodString>;
411
+ category: z.ZodEnum<["CATTLE", "POULTRY", "SHEEP", "GOAT", "PIG", "FISH", "RABBIT", "OTHER"]>;
412
+ breed: z.ZodOptional<z.ZodString>;
413
+ sex: z.ZodDefault<z.ZodEnum<["MALE", "FEMALE", "UNKNOWN"]>>;
414
+ dateOfBirth: z.ZodOptional<z.ZodString>;
415
+ acquisitionDate: z.ZodOptional<z.ZodString>;
416
+ acquisitionType: z.ZodDefault<z.ZodEnum<["born", "purchased", "transferred", "gifted"]>>;
417
+ color: z.ZodOptional<z.ZodString>;
418
+ weight: z.ZodOptional<z.ZodNumber>;
419
+ weightUnit: z.ZodDefault<z.ZodString>;
420
+ sireId: z.ZodOptional<z.ZodString>;
421
+ damId: z.ZodOptional<z.ZodString>;
422
+ status: z.ZodDefault<z.ZodEnum<["ACTIVE", "SOLD", "DECEASED", "TRANSFERRED", "QUARANTINE"]>>;
423
+ statusNote: z.ZodOptional<z.ZodString>;
424
+ location: z.ZodOptional<z.ZodString>;
425
+ groupId: z.ZodOptional<z.ZodString>;
426
+ purchasePrice: z.ZodOptional<z.ZodNumber>;
427
+ currentValue: z.ZodOptional<z.ZodNumber>;
428
+ currency: z.ZodDefault<z.ZodString>;
429
+ notes: z.ZodOptional<z.ZodString>;
430
+ }, "strip", z.ZodTypeAny, {
431
+ status: "ACTIVE" | "SOLD" | "DECEASED" | "TRANSFERRED" | "QUARANTINE";
432
+ currency: string;
433
+ category: "OTHER" | "CATTLE" | "POULTRY" | "SHEEP" | "GOAT" | "PIG" | "FISH" | "RABBIT";
434
+ weightUnit: string;
435
+ tagId: string;
436
+ sex: "MALE" | "FEMALE" | "UNKNOWN";
437
+ acquisitionType: "born" | "purchased" | "transferred" | "gifted";
438
+ name?: string | undefined;
439
+ location?: string | undefined;
440
+ notes?: string | undefined;
441
+ purchasePrice?: number | undefined;
442
+ currentValue?: number | undefined;
443
+ weight?: number | undefined;
444
+ color?: string | undefined;
445
+ breed?: string | undefined;
446
+ dateOfBirth?: string | undefined;
447
+ acquisitionDate?: string | undefined;
448
+ sireId?: string | undefined;
449
+ damId?: string | undefined;
450
+ statusNote?: string | undefined;
451
+ groupId?: string | undefined;
452
+ }, {
453
+ category: "OTHER" | "CATTLE" | "POULTRY" | "SHEEP" | "GOAT" | "PIG" | "FISH" | "RABBIT";
454
+ tagId: string;
455
+ status?: "ACTIVE" | "SOLD" | "DECEASED" | "TRANSFERRED" | "QUARANTINE" | undefined;
456
+ name?: string | undefined;
457
+ location?: string | undefined;
458
+ currency?: string | undefined;
459
+ notes?: string | undefined;
460
+ purchasePrice?: number | undefined;
461
+ currentValue?: number | undefined;
462
+ weight?: number | undefined;
463
+ color?: string | undefined;
464
+ weightUnit?: string | undefined;
465
+ breed?: string | undefined;
466
+ sex?: "MALE" | "FEMALE" | "UNKNOWN" | undefined;
467
+ dateOfBirth?: string | undefined;
468
+ acquisitionDate?: string | undefined;
469
+ acquisitionType?: "born" | "purchased" | "transferred" | "gifted" | undefined;
470
+ sireId?: string | undefined;
471
+ damId?: string | undefined;
472
+ statusNote?: string | undefined;
473
+ groupId?: string | undefined;
474
+ }>;
475
+ export declare const updateLivestockAttributesSchema: z.ZodObject<{
476
+ tagId: z.ZodOptional<z.ZodString>;
477
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
478
+ category: z.ZodOptional<z.ZodEnum<["CATTLE", "POULTRY", "SHEEP", "GOAT", "PIG", "FISH", "RABBIT", "OTHER"]>>;
479
+ breed: z.ZodOptional<z.ZodNullable<z.ZodString>>;
480
+ sex: z.ZodOptional<z.ZodEnum<["MALE", "FEMALE", "UNKNOWN"]>>;
481
+ dateOfBirth: z.ZodOptional<z.ZodNullable<z.ZodString>>;
482
+ color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
483
+ weight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
484
+ weightUnit: z.ZodOptional<z.ZodString>;
485
+ sireId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
486
+ damId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
487
+ status: z.ZodOptional<z.ZodEnum<["ACTIVE", "SOLD", "DECEASED", "TRANSFERRED", "QUARANTINE"]>>;
488
+ statusNote: z.ZodOptional<z.ZodNullable<z.ZodString>>;
489
+ location: z.ZodOptional<z.ZodNullable<z.ZodString>>;
490
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
491
+ purchasePrice: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
492
+ currentValue: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
493
+ currency: z.ZodOptional<z.ZodString>;
494
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
495
+ }, "strip", z.ZodTypeAny, {
496
+ status?: "ACTIVE" | "SOLD" | "DECEASED" | "TRANSFERRED" | "QUARANTINE" | undefined;
497
+ name?: string | null | undefined;
498
+ location?: string | null | undefined;
499
+ currency?: string | undefined;
500
+ category?: "OTHER" | "CATTLE" | "POULTRY" | "SHEEP" | "GOAT" | "PIG" | "FISH" | "RABBIT" | undefined;
501
+ notes?: string | null | undefined;
502
+ purchasePrice?: number | null | undefined;
503
+ currentValue?: number | null | undefined;
504
+ weight?: number | null | undefined;
505
+ color?: string | null | undefined;
506
+ weightUnit?: string | undefined;
507
+ tagId?: string | undefined;
508
+ breed?: string | null | undefined;
509
+ sex?: "MALE" | "FEMALE" | "UNKNOWN" | undefined;
510
+ dateOfBirth?: string | null | undefined;
511
+ sireId?: string | null | undefined;
512
+ damId?: string | null | undefined;
513
+ statusNote?: string | null | undefined;
514
+ groupId?: string | null | undefined;
515
+ }, {
516
+ status?: "ACTIVE" | "SOLD" | "DECEASED" | "TRANSFERRED" | "QUARANTINE" | undefined;
517
+ name?: string | null | undefined;
518
+ location?: string | null | undefined;
519
+ currency?: string | undefined;
520
+ category?: "OTHER" | "CATTLE" | "POULTRY" | "SHEEP" | "GOAT" | "PIG" | "FISH" | "RABBIT" | undefined;
521
+ notes?: string | null | undefined;
522
+ purchasePrice?: number | null | undefined;
523
+ currentValue?: number | null | undefined;
524
+ weight?: number | null | undefined;
525
+ color?: string | null | undefined;
526
+ weightUnit?: string | undefined;
527
+ tagId?: string | undefined;
528
+ breed?: string | null | undefined;
529
+ sex?: "MALE" | "FEMALE" | "UNKNOWN" | undefined;
530
+ dateOfBirth?: string | null | undefined;
531
+ sireId?: string | null | undefined;
532
+ damId?: string | null | undefined;
533
+ statusNote?: string | null | undefined;
534
+ groupId?: string | null | undefined;
535
+ }>;
536
+ export declare const createHealthRecordAttributesSchema: z.ZodObject<{
537
+ recordDate: z.ZodString;
538
+ recordType: z.ZodEnum<["vaccination", "treatment", "checkup", "deworming", "surgery", "other"]>;
539
+ description: z.ZodString;
540
+ diagnosis: z.ZodOptional<z.ZodString>;
541
+ treatment: z.ZodOptional<z.ZodString>;
542
+ medication: z.ZodOptional<z.ZodString>;
543
+ dosage: z.ZodOptional<z.ZodString>;
544
+ administeredBy: z.ZodOptional<z.ZodString>;
545
+ vaccineName: z.ZodOptional<z.ZodString>;
546
+ batchNumber: z.ZodOptional<z.ZodString>;
547
+ nextDueDate: z.ZodOptional<z.ZodString>;
548
+ cost: z.ZodOptional<z.ZodNumber>;
549
+ currency: z.ZodDefault<z.ZodString>;
550
+ followUpRequired: z.ZodDefault<z.ZodBoolean>;
551
+ followUpDate: z.ZodOptional<z.ZodString>;
552
+ followUpNotes: z.ZodOptional<z.ZodString>;
553
+ notes: z.ZodOptional<z.ZodString>;
554
+ }, "strip", z.ZodTypeAny, {
555
+ description: string;
556
+ currency: string;
557
+ recordDate: string;
558
+ recordType: "other" | "vaccination" | "treatment" | "checkup" | "deworming" | "surgery";
559
+ followUpRequired: boolean;
560
+ notes?: string | undefined;
561
+ cost?: number | undefined;
562
+ treatment?: string | undefined;
563
+ diagnosis?: string | undefined;
564
+ medication?: string | undefined;
565
+ dosage?: string | undefined;
566
+ administeredBy?: string | undefined;
567
+ vaccineName?: string | undefined;
568
+ batchNumber?: string | undefined;
569
+ nextDueDate?: string | undefined;
570
+ followUpDate?: string | undefined;
571
+ followUpNotes?: string | undefined;
572
+ }, {
573
+ description: string;
574
+ recordDate: string;
575
+ recordType: "other" | "vaccination" | "treatment" | "checkup" | "deworming" | "surgery";
576
+ currency?: string | undefined;
577
+ notes?: string | undefined;
578
+ cost?: number | undefined;
579
+ treatment?: string | undefined;
580
+ diagnosis?: string | undefined;
581
+ medication?: string | undefined;
582
+ dosage?: string | undefined;
583
+ administeredBy?: string | undefined;
584
+ vaccineName?: string | undefined;
585
+ batchNumber?: string | undefined;
586
+ nextDueDate?: string | undefined;
587
+ followUpRequired?: boolean | undefined;
588
+ followUpDate?: string | undefined;
589
+ followUpNotes?: string | undefined;
590
+ }>;
591
+ export declare const createWeightRecordAttributesSchema: z.ZodObject<{
592
+ recordDate: z.ZodString;
593
+ weight: z.ZodNumber;
594
+ weightUnit: z.ZodDefault<z.ZodString>;
595
+ notes: z.ZodOptional<z.ZodString>;
596
+ }, "strip", z.ZodTypeAny, {
597
+ weight: number;
598
+ recordDate: string;
599
+ weightUnit: string;
600
+ notes?: string | undefined;
601
+ }, {
602
+ weight: number;
603
+ recordDate: string;
604
+ notes?: string | undefined;
605
+ weightUnit?: string | undefined;
606
+ }>;
607
+ export declare const createMovementRecordAttributesSchema: z.ZodObject<{
608
+ movementDate: z.ZodString;
609
+ movementType: z.ZodEnum<["transfer_in", "transfer_out", "sale", "purchase", "death", "birth"]>;
610
+ fromLocation: z.ZodOptional<z.ZodString>;
611
+ toLocation: z.ZodOptional<z.ZodString>;
612
+ reason: z.ZodOptional<z.ZodString>;
613
+ transactionValue: z.ZodOptional<z.ZodNumber>;
614
+ currency: z.ZodDefault<z.ZodString>;
615
+ buyerSeller: z.ZodOptional<z.ZodString>;
616
+ documentRef: z.ZodOptional<z.ZodString>;
617
+ notes: z.ZodOptional<z.ZodString>;
618
+ }, "strip", z.ZodTypeAny, {
619
+ currency: string;
620
+ movementDate: string;
621
+ movementType: "purchase" | "transfer_in" | "transfer_out" | "sale" | "death" | "birth";
622
+ notes?: string | undefined;
623
+ reason?: string | undefined;
624
+ fromLocation?: string | undefined;
625
+ toLocation?: string | undefined;
626
+ transactionValue?: number | undefined;
627
+ buyerSeller?: string | undefined;
628
+ documentRef?: string | undefined;
629
+ }, {
630
+ movementDate: string;
631
+ movementType: "purchase" | "transfer_in" | "transfer_out" | "sale" | "death" | "birth";
632
+ currency?: string | undefined;
633
+ notes?: string | undefined;
634
+ reason?: string | undefined;
635
+ fromLocation?: string | undefined;
636
+ toLocation?: string | undefined;
637
+ transactionValue?: number | undefined;
638
+ buyerSeller?: string | undefined;
639
+ documentRef?: string | undefined;
640
+ }>;
641
+ export declare const createLivestockSchema: z.ZodObject<{
642
+ type: z.ZodLiteral<"livestock">;
643
+ attributes: z.ZodObject<{
644
+ tagId: z.ZodString;
645
+ name: z.ZodOptional<z.ZodString>;
646
+ category: z.ZodEnum<["CATTLE", "POULTRY", "SHEEP", "GOAT", "PIG", "FISH", "RABBIT", "OTHER"]>;
647
+ breed: z.ZodOptional<z.ZodString>;
648
+ sex: z.ZodDefault<z.ZodEnum<["MALE", "FEMALE", "UNKNOWN"]>>;
649
+ dateOfBirth: z.ZodOptional<z.ZodString>;
650
+ acquisitionDate: z.ZodOptional<z.ZodString>;
651
+ acquisitionType: z.ZodDefault<z.ZodEnum<["born", "purchased", "transferred", "gifted"]>>;
652
+ color: z.ZodOptional<z.ZodString>;
653
+ weight: z.ZodOptional<z.ZodNumber>;
654
+ weightUnit: z.ZodDefault<z.ZodString>;
655
+ sireId: z.ZodOptional<z.ZodString>;
656
+ damId: z.ZodOptional<z.ZodString>;
657
+ status: z.ZodDefault<z.ZodEnum<["ACTIVE", "SOLD", "DECEASED", "TRANSFERRED", "QUARANTINE"]>>;
658
+ statusNote: z.ZodOptional<z.ZodString>;
659
+ location: z.ZodOptional<z.ZodString>;
660
+ groupId: z.ZodOptional<z.ZodString>;
661
+ purchasePrice: z.ZodOptional<z.ZodNumber>;
662
+ currentValue: z.ZodOptional<z.ZodNumber>;
663
+ currency: z.ZodDefault<z.ZodString>;
664
+ notes: z.ZodOptional<z.ZodString>;
665
+ }, "strip", z.ZodTypeAny, {
666
+ status: "ACTIVE" | "SOLD" | "DECEASED" | "TRANSFERRED" | "QUARANTINE";
667
+ currency: string;
668
+ category: "OTHER" | "CATTLE" | "POULTRY" | "SHEEP" | "GOAT" | "PIG" | "FISH" | "RABBIT";
669
+ weightUnit: string;
670
+ tagId: string;
671
+ sex: "MALE" | "FEMALE" | "UNKNOWN";
672
+ acquisitionType: "born" | "purchased" | "transferred" | "gifted";
673
+ name?: string | undefined;
674
+ location?: string | undefined;
675
+ notes?: string | undefined;
676
+ purchasePrice?: number | undefined;
677
+ currentValue?: number | undefined;
678
+ weight?: number | undefined;
679
+ color?: string | undefined;
680
+ breed?: string | undefined;
681
+ dateOfBirth?: string | undefined;
682
+ acquisitionDate?: string | undefined;
683
+ sireId?: string | undefined;
684
+ damId?: string | undefined;
685
+ statusNote?: string | undefined;
686
+ groupId?: string | undefined;
687
+ }, {
688
+ category: "OTHER" | "CATTLE" | "POULTRY" | "SHEEP" | "GOAT" | "PIG" | "FISH" | "RABBIT";
689
+ tagId: string;
690
+ status?: "ACTIVE" | "SOLD" | "DECEASED" | "TRANSFERRED" | "QUARANTINE" | undefined;
691
+ name?: string | undefined;
692
+ location?: string | undefined;
693
+ currency?: string | undefined;
694
+ notes?: string | undefined;
695
+ purchasePrice?: number | undefined;
696
+ currentValue?: number | undefined;
697
+ weight?: number | undefined;
698
+ color?: string | undefined;
699
+ weightUnit?: string | undefined;
700
+ breed?: string | undefined;
701
+ sex?: "MALE" | "FEMALE" | "UNKNOWN" | undefined;
702
+ dateOfBirth?: string | undefined;
703
+ acquisitionDate?: string | undefined;
704
+ acquisitionType?: "born" | "purchased" | "transferred" | "gifted" | undefined;
705
+ sireId?: string | undefined;
706
+ damId?: string | undefined;
707
+ statusNote?: string | undefined;
708
+ groupId?: string | undefined;
709
+ }>;
710
+ }, "strip", z.ZodTypeAny, {
711
+ type: "livestock";
712
+ attributes: {
713
+ status: "ACTIVE" | "SOLD" | "DECEASED" | "TRANSFERRED" | "QUARANTINE";
714
+ currency: string;
715
+ category: "OTHER" | "CATTLE" | "POULTRY" | "SHEEP" | "GOAT" | "PIG" | "FISH" | "RABBIT";
716
+ weightUnit: string;
717
+ tagId: string;
718
+ sex: "MALE" | "FEMALE" | "UNKNOWN";
719
+ acquisitionType: "born" | "purchased" | "transferred" | "gifted";
720
+ name?: string | undefined;
721
+ location?: string | undefined;
722
+ notes?: string | undefined;
723
+ purchasePrice?: number | undefined;
724
+ currentValue?: number | undefined;
725
+ weight?: number | undefined;
726
+ color?: string | undefined;
727
+ breed?: string | undefined;
728
+ dateOfBirth?: string | undefined;
729
+ acquisitionDate?: string | undefined;
730
+ sireId?: string | undefined;
731
+ damId?: string | undefined;
732
+ statusNote?: string | undefined;
733
+ groupId?: string | undefined;
734
+ };
735
+ }, {
736
+ type: "livestock";
737
+ attributes: {
738
+ category: "OTHER" | "CATTLE" | "POULTRY" | "SHEEP" | "GOAT" | "PIG" | "FISH" | "RABBIT";
739
+ tagId: string;
740
+ status?: "ACTIVE" | "SOLD" | "DECEASED" | "TRANSFERRED" | "QUARANTINE" | undefined;
741
+ name?: string | undefined;
742
+ location?: string | undefined;
743
+ currency?: string | undefined;
744
+ notes?: string | undefined;
745
+ purchasePrice?: number | undefined;
746
+ currentValue?: number | undefined;
747
+ weight?: number | undefined;
748
+ color?: string | undefined;
749
+ weightUnit?: string | undefined;
750
+ breed?: string | undefined;
751
+ sex?: "MALE" | "FEMALE" | "UNKNOWN" | undefined;
752
+ dateOfBirth?: string | undefined;
753
+ acquisitionDate?: string | undefined;
754
+ acquisitionType?: "born" | "purchased" | "transferred" | "gifted" | undefined;
755
+ sireId?: string | undefined;
756
+ damId?: string | undefined;
757
+ statusNote?: string | undefined;
758
+ groupId?: string | undefined;
759
+ };
760
+ }>;
761
+ export declare const updateLivestockSchema: z.ZodObject<{
762
+ type: z.ZodLiteral<"livestock">;
763
+ id: z.ZodString;
764
+ attributes: z.ZodObject<{
765
+ tagId: z.ZodOptional<z.ZodString>;
766
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
767
+ category: z.ZodOptional<z.ZodEnum<["CATTLE", "POULTRY", "SHEEP", "GOAT", "PIG", "FISH", "RABBIT", "OTHER"]>>;
768
+ breed: z.ZodOptional<z.ZodNullable<z.ZodString>>;
769
+ sex: z.ZodOptional<z.ZodEnum<["MALE", "FEMALE", "UNKNOWN"]>>;
770
+ dateOfBirth: z.ZodOptional<z.ZodNullable<z.ZodString>>;
771
+ color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
772
+ weight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
773
+ weightUnit: z.ZodOptional<z.ZodString>;
774
+ sireId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
775
+ damId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
776
+ status: z.ZodOptional<z.ZodEnum<["ACTIVE", "SOLD", "DECEASED", "TRANSFERRED", "QUARANTINE"]>>;
777
+ statusNote: z.ZodOptional<z.ZodNullable<z.ZodString>>;
778
+ location: z.ZodOptional<z.ZodNullable<z.ZodString>>;
779
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
780
+ purchasePrice: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
781
+ currentValue: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
782
+ currency: z.ZodOptional<z.ZodString>;
783
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
784
+ }, "strip", z.ZodTypeAny, {
785
+ status?: "ACTIVE" | "SOLD" | "DECEASED" | "TRANSFERRED" | "QUARANTINE" | undefined;
786
+ name?: string | null | undefined;
787
+ location?: string | null | undefined;
788
+ currency?: string | undefined;
789
+ category?: "OTHER" | "CATTLE" | "POULTRY" | "SHEEP" | "GOAT" | "PIG" | "FISH" | "RABBIT" | undefined;
790
+ notes?: string | null | undefined;
791
+ purchasePrice?: number | null | undefined;
792
+ currentValue?: number | null | undefined;
793
+ weight?: number | null | undefined;
794
+ color?: string | null | undefined;
795
+ weightUnit?: string | undefined;
796
+ tagId?: string | undefined;
797
+ breed?: string | null | undefined;
798
+ sex?: "MALE" | "FEMALE" | "UNKNOWN" | undefined;
799
+ dateOfBirth?: string | null | undefined;
800
+ sireId?: string | null | undefined;
801
+ damId?: string | null | undefined;
802
+ statusNote?: string | null | undefined;
803
+ groupId?: string | null | undefined;
804
+ }, {
805
+ status?: "ACTIVE" | "SOLD" | "DECEASED" | "TRANSFERRED" | "QUARANTINE" | undefined;
806
+ name?: string | null | undefined;
807
+ location?: string | null | undefined;
808
+ currency?: string | undefined;
809
+ category?: "OTHER" | "CATTLE" | "POULTRY" | "SHEEP" | "GOAT" | "PIG" | "FISH" | "RABBIT" | undefined;
810
+ notes?: string | null | undefined;
811
+ purchasePrice?: number | null | undefined;
812
+ currentValue?: number | null | undefined;
813
+ weight?: number | null | undefined;
814
+ color?: string | null | undefined;
815
+ weightUnit?: string | undefined;
816
+ tagId?: string | undefined;
817
+ breed?: string | null | undefined;
818
+ sex?: "MALE" | "FEMALE" | "UNKNOWN" | undefined;
819
+ dateOfBirth?: string | null | undefined;
820
+ sireId?: string | null | undefined;
821
+ damId?: string | null | undefined;
822
+ statusNote?: string | null | undefined;
823
+ groupId?: string | null | undefined;
824
+ }>;
825
+ }, "strip", z.ZodTypeAny, {
826
+ type: "livestock";
827
+ id: string;
828
+ attributes: {
829
+ status?: "ACTIVE" | "SOLD" | "DECEASED" | "TRANSFERRED" | "QUARANTINE" | undefined;
830
+ name?: string | null | undefined;
831
+ location?: string | null | undefined;
832
+ currency?: string | undefined;
833
+ category?: "OTHER" | "CATTLE" | "POULTRY" | "SHEEP" | "GOAT" | "PIG" | "FISH" | "RABBIT" | undefined;
834
+ notes?: string | null | undefined;
835
+ purchasePrice?: number | null | undefined;
836
+ currentValue?: number | null | undefined;
837
+ weight?: number | null | undefined;
838
+ color?: string | null | undefined;
839
+ weightUnit?: string | undefined;
840
+ tagId?: string | undefined;
841
+ breed?: string | null | undefined;
842
+ sex?: "MALE" | "FEMALE" | "UNKNOWN" | undefined;
843
+ dateOfBirth?: string | null | undefined;
844
+ sireId?: string | null | undefined;
845
+ damId?: string | null | undefined;
846
+ statusNote?: string | null | undefined;
847
+ groupId?: string | null | undefined;
848
+ };
849
+ }, {
850
+ type: "livestock";
851
+ id: string;
852
+ attributes: {
853
+ status?: "ACTIVE" | "SOLD" | "DECEASED" | "TRANSFERRED" | "QUARANTINE" | undefined;
854
+ name?: string | null | undefined;
855
+ location?: string | null | undefined;
856
+ currency?: string | undefined;
857
+ category?: "OTHER" | "CATTLE" | "POULTRY" | "SHEEP" | "GOAT" | "PIG" | "FISH" | "RABBIT" | undefined;
858
+ notes?: string | null | undefined;
859
+ purchasePrice?: number | null | undefined;
860
+ currentValue?: number | null | undefined;
861
+ weight?: number | null | undefined;
862
+ color?: string | null | undefined;
863
+ weightUnit?: string | undefined;
864
+ tagId?: string | undefined;
865
+ breed?: string | null | undefined;
866
+ sex?: "MALE" | "FEMALE" | "UNKNOWN" | undefined;
867
+ dateOfBirth?: string | null | undefined;
868
+ sireId?: string | null | undefined;
869
+ damId?: string | null | undefined;
870
+ statusNote?: string | null | undefined;
871
+ groupId?: string | null | undefined;
872
+ };
873
+ }>;
874
+ export declare const createHealthRecordSchema: z.ZodObject<{
875
+ type: z.ZodLiteral<"livestock-health-records">;
876
+ attributes: z.ZodObject<{
877
+ recordDate: z.ZodString;
878
+ recordType: z.ZodEnum<["vaccination", "treatment", "checkup", "deworming", "surgery", "other"]>;
879
+ description: z.ZodString;
880
+ diagnosis: z.ZodOptional<z.ZodString>;
881
+ treatment: z.ZodOptional<z.ZodString>;
882
+ medication: z.ZodOptional<z.ZodString>;
883
+ dosage: z.ZodOptional<z.ZodString>;
884
+ administeredBy: z.ZodOptional<z.ZodString>;
885
+ vaccineName: z.ZodOptional<z.ZodString>;
886
+ batchNumber: z.ZodOptional<z.ZodString>;
887
+ nextDueDate: z.ZodOptional<z.ZodString>;
888
+ cost: z.ZodOptional<z.ZodNumber>;
889
+ currency: z.ZodDefault<z.ZodString>;
890
+ followUpRequired: z.ZodDefault<z.ZodBoolean>;
891
+ followUpDate: z.ZodOptional<z.ZodString>;
892
+ followUpNotes: z.ZodOptional<z.ZodString>;
893
+ notes: z.ZodOptional<z.ZodString>;
894
+ }, "strip", z.ZodTypeAny, {
895
+ description: string;
896
+ currency: string;
897
+ recordDate: string;
898
+ recordType: "other" | "vaccination" | "treatment" | "checkup" | "deworming" | "surgery";
899
+ followUpRequired: boolean;
900
+ notes?: string | undefined;
901
+ cost?: number | undefined;
902
+ treatment?: string | undefined;
903
+ diagnosis?: string | undefined;
904
+ medication?: string | undefined;
905
+ dosage?: string | undefined;
906
+ administeredBy?: string | undefined;
907
+ vaccineName?: string | undefined;
908
+ batchNumber?: string | undefined;
909
+ nextDueDate?: string | undefined;
910
+ followUpDate?: string | undefined;
911
+ followUpNotes?: string | undefined;
912
+ }, {
913
+ description: string;
914
+ recordDate: string;
915
+ recordType: "other" | "vaccination" | "treatment" | "checkup" | "deworming" | "surgery";
916
+ currency?: string | undefined;
917
+ notes?: string | undefined;
918
+ cost?: number | undefined;
919
+ treatment?: string | undefined;
920
+ diagnosis?: string | undefined;
921
+ medication?: string | undefined;
922
+ dosage?: string | undefined;
923
+ administeredBy?: string | undefined;
924
+ vaccineName?: string | undefined;
925
+ batchNumber?: string | undefined;
926
+ nextDueDate?: string | undefined;
927
+ followUpRequired?: boolean | undefined;
928
+ followUpDate?: string | undefined;
929
+ followUpNotes?: string | undefined;
930
+ }>;
931
+ }, "strip", z.ZodTypeAny, {
932
+ type: "livestock-health-records";
933
+ attributes: {
934
+ description: string;
935
+ currency: string;
936
+ recordDate: string;
937
+ recordType: "other" | "vaccination" | "treatment" | "checkup" | "deworming" | "surgery";
938
+ followUpRequired: boolean;
939
+ notes?: string | undefined;
940
+ cost?: number | undefined;
941
+ treatment?: string | undefined;
942
+ diagnosis?: string | undefined;
943
+ medication?: string | undefined;
944
+ dosage?: string | undefined;
945
+ administeredBy?: string | undefined;
946
+ vaccineName?: string | undefined;
947
+ batchNumber?: string | undefined;
948
+ nextDueDate?: string | undefined;
949
+ followUpDate?: string | undefined;
950
+ followUpNotes?: string | undefined;
951
+ };
952
+ }, {
953
+ type: "livestock-health-records";
954
+ attributes: {
955
+ description: string;
956
+ recordDate: string;
957
+ recordType: "other" | "vaccination" | "treatment" | "checkup" | "deworming" | "surgery";
958
+ currency?: string | undefined;
959
+ notes?: string | undefined;
960
+ cost?: number | undefined;
961
+ treatment?: string | undefined;
962
+ diagnosis?: string | undefined;
963
+ medication?: string | undefined;
964
+ dosage?: string | undefined;
965
+ administeredBy?: string | undefined;
966
+ vaccineName?: string | undefined;
967
+ batchNumber?: string | undefined;
968
+ nextDueDate?: string | undefined;
969
+ followUpRequired?: boolean | undefined;
970
+ followUpDate?: string | undefined;
971
+ followUpNotes?: string | undefined;
972
+ };
973
+ }>;
974
+ export declare const createWeightRecordSchema: z.ZodObject<{
975
+ type: z.ZodLiteral<"livestock-weight-records">;
976
+ attributes: z.ZodObject<{
977
+ recordDate: z.ZodString;
978
+ weight: z.ZodNumber;
979
+ weightUnit: z.ZodDefault<z.ZodString>;
980
+ notes: z.ZodOptional<z.ZodString>;
981
+ }, "strip", z.ZodTypeAny, {
982
+ weight: number;
983
+ recordDate: string;
984
+ weightUnit: string;
985
+ notes?: string | undefined;
986
+ }, {
987
+ weight: number;
988
+ recordDate: string;
989
+ notes?: string | undefined;
990
+ weightUnit?: string | undefined;
991
+ }>;
992
+ }, "strip", z.ZodTypeAny, {
993
+ type: "livestock-weight-records";
994
+ attributes: {
995
+ weight: number;
996
+ recordDate: string;
997
+ weightUnit: string;
998
+ notes?: string | undefined;
999
+ };
1000
+ }, {
1001
+ type: "livestock-weight-records";
1002
+ attributes: {
1003
+ weight: number;
1004
+ recordDate: string;
1005
+ notes?: string | undefined;
1006
+ weightUnit?: string | undefined;
1007
+ };
1008
+ }>;
1009
+ export declare const createMovementRecordSchema: z.ZodObject<{
1010
+ type: z.ZodLiteral<"livestock-movements">;
1011
+ attributes: z.ZodObject<{
1012
+ movementDate: z.ZodString;
1013
+ movementType: z.ZodEnum<["transfer_in", "transfer_out", "sale", "purchase", "death", "birth"]>;
1014
+ fromLocation: z.ZodOptional<z.ZodString>;
1015
+ toLocation: z.ZodOptional<z.ZodString>;
1016
+ reason: z.ZodOptional<z.ZodString>;
1017
+ transactionValue: z.ZodOptional<z.ZodNumber>;
1018
+ currency: z.ZodDefault<z.ZodString>;
1019
+ buyerSeller: z.ZodOptional<z.ZodString>;
1020
+ documentRef: z.ZodOptional<z.ZodString>;
1021
+ notes: z.ZodOptional<z.ZodString>;
1022
+ }, "strip", z.ZodTypeAny, {
1023
+ currency: string;
1024
+ movementDate: string;
1025
+ movementType: "purchase" | "transfer_in" | "transfer_out" | "sale" | "death" | "birth";
1026
+ notes?: string | undefined;
1027
+ reason?: string | undefined;
1028
+ fromLocation?: string | undefined;
1029
+ toLocation?: string | undefined;
1030
+ transactionValue?: number | undefined;
1031
+ buyerSeller?: string | undefined;
1032
+ documentRef?: string | undefined;
1033
+ }, {
1034
+ movementDate: string;
1035
+ movementType: "purchase" | "transfer_in" | "transfer_out" | "sale" | "death" | "birth";
1036
+ currency?: string | undefined;
1037
+ notes?: string | undefined;
1038
+ reason?: string | undefined;
1039
+ fromLocation?: string | undefined;
1040
+ toLocation?: string | undefined;
1041
+ transactionValue?: number | undefined;
1042
+ buyerSeller?: string | undefined;
1043
+ documentRef?: string | undefined;
1044
+ }>;
1045
+ }, "strip", z.ZodTypeAny, {
1046
+ type: "livestock-movements";
1047
+ attributes: {
1048
+ currency: string;
1049
+ movementDate: string;
1050
+ movementType: "purchase" | "transfer_in" | "transfer_out" | "sale" | "death" | "birth";
1051
+ notes?: string | undefined;
1052
+ reason?: string | undefined;
1053
+ fromLocation?: string | undefined;
1054
+ toLocation?: string | undefined;
1055
+ transactionValue?: number | undefined;
1056
+ buyerSeller?: string | undefined;
1057
+ documentRef?: string | undefined;
1058
+ };
1059
+ }, {
1060
+ type: "livestock-movements";
1061
+ attributes: {
1062
+ movementDate: string;
1063
+ movementType: "purchase" | "transfer_in" | "transfer_out" | "sale" | "death" | "birth";
1064
+ currency?: string | undefined;
1065
+ notes?: string | undefined;
1066
+ reason?: string | undefined;
1067
+ fromLocation?: string | undefined;
1068
+ toLocation?: string | undefined;
1069
+ transactionValue?: number | undefined;
1070
+ buyerSeller?: string | undefined;
1071
+ documentRef?: string | undefined;
1072
+ };
1073
+ }>;
1074
+ export declare const livestockResourceSchema: z.ZodObject<{
1075
+ type: z.ZodLiteral<string>;
1076
+ id: z.ZodString;
1077
+ attributes: z.ZodObject<{
1078
+ farmId: z.ZodString;
1079
+ tagId: z.ZodString;
1080
+ name: z.ZodNullable<z.ZodString>;
1081
+ category: z.ZodEnum<["CATTLE", "POULTRY", "SHEEP", "GOAT", "PIG", "FISH", "RABBIT", "OTHER"]>;
1082
+ breed: z.ZodNullable<z.ZodString>;
1083
+ sex: z.ZodEnum<["MALE", "FEMALE", "UNKNOWN"]>;
1084
+ dateOfBirth: z.ZodNullable<z.ZodString>;
1085
+ acquisitionDate: z.ZodString;
1086
+ acquisitionType: z.ZodEnum<["born", "purchased", "transferred", "gifted"]>;
1087
+ color: z.ZodNullable<z.ZodString>;
1088
+ weight: z.ZodNullable<z.ZodNumber>;
1089
+ weightUnit: z.ZodDefault<z.ZodString>;
1090
+ lastWeighDate: z.ZodNullable<z.ZodString>;
1091
+ sireId: z.ZodNullable<z.ZodString>;
1092
+ damId: z.ZodNullable<z.ZodString>;
1093
+ sireName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1094
+ damName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1095
+ status: z.ZodEnum<["ACTIVE", "SOLD", "DECEASED", "TRANSFERRED", "QUARANTINE"]>;
1096
+ statusDate: z.ZodString;
1097
+ statusNote: z.ZodNullable<z.ZodString>;
1098
+ location: z.ZodNullable<z.ZodString>;
1099
+ groupId: z.ZodNullable<z.ZodString>;
1100
+ purchasePrice: z.ZodNullable<z.ZodNumber>;
1101
+ currentValue: z.ZodNullable<z.ZodNumber>;
1102
+ currency: z.ZodDefault<z.ZodString>;
1103
+ notes: z.ZodNullable<z.ZodString>;
1104
+ healthRecords: z.ZodOptional<z.ZodArray<z.ZodObject<{
1105
+ id: z.ZodString;
1106
+ recordDate: z.ZodString;
1107
+ recordType: z.ZodEnum<["vaccination", "treatment", "checkup", "deworming", "surgery", "other"]>;
1108
+ description: z.ZodString;
1109
+ diagnosis: z.ZodNullable<z.ZodString>;
1110
+ treatment: z.ZodNullable<z.ZodString>;
1111
+ medication: z.ZodNullable<z.ZodString>;
1112
+ dosage: z.ZodNullable<z.ZodString>;
1113
+ administeredBy: z.ZodNullable<z.ZodString>;
1114
+ vaccineName: z.ZodNullable<z.ZodString>;
1115
+ batchNumber: z.ZodNullable<z.ZodString>;
1116
+ nextDueDate: z.ZodNullable<z.ZodString>;
1117
+ cost: z.ZodNullable<z.ZodNumber>;
1118
+ currency: z.ZodDefault<z.ZodString>;
1119
+ followUpRequired: z.ZodDefault<z.ZodBoolean>;
1120
+ followUpDate: z.ZodNullable<z.ZodString>;
1121
+ followUpNotes: z.ZodNullable<z.ZodString>;
1122
+ notes: z.ZodNullable<z.ZodString>;
1123
+ }, "strip", z.ZodTypeAny, {
1124
+ id: string;
1125
+ description: string;
1126
+ currency: string;
1127
+ notes: string | null;
1128
+ cost: number | null;
1129
+ treatment: string | null;
1130
+ recordDate: string;
1131
+ recordType: "other" | "vaccination" | "treatment" | "checkup" | "deworming" | "surgery";
1132
+ diagnosis: string | null;
1133
+ medication: string | null;
1134
+ dosage: string | null;
1135
+ administeredBy: string | null;
1136
+ vaccineName: string | null;
1137
+ batchNumber: string | null;
1138
+ nextDueDate: string | null;
1139
+ followUpRequired: boolean;
1140
+ followUpDate: string | null;
1141
+ followUpNotes: string | null;
1142
+ }, {
1143
+ id: string;
1144
+ description: string;
1145
+ notes: string | null;
1146
+ cost: number | null;
1147
+ treatment: string | null;
1148
+ recordDate: string;
1149
+ recordType: "other" | "vaccination" | "treatment" | "checkup" | "deworming" | "surgery";
1150
+ diagnosis: string | null;
1151
+ medication: string | null;
1152
+ dosage: string | null;
1153
+ administeredBy: string | null;
1154
+ vaccineName: string | null;
1155
+ batchNumber: string | null;
1156
+ nextDueDate: string | null;
1157
+ followUpDate: string | null;
1158
+ followUpNotes: string | null;
1159
+ currency?: string | undefined;
1160
+ followUpRequired?: boolean | undefined;
1161
+ }>, "many">>;
1162
+ weightRecords: z.ZodOptional<z.ZodArray<z.ZodObject<{
1163
+ id: z.ZodString;
1164
+ recordDate: z.ZodString;
1165
+ weight: z.ZodNumber;
1166
+ weightUnit: z.ZodDefault<z.ZodString>;
1167
+ notes: z.ZodNullable<z.ZodString>;
1168
+ }, "strip", z.ZodTypeAny, {
1169
+ id: string;
1170
+ notes: string | null;
1171
+ weight: number;
1172
+ recordDate: string;
1173
+ weightUnit: string;
1174
+ }, {
1175
+ id: string;
1176
+ notes: string | null;
1177
+ weight: number;
1178
+ recordDate: string;
1179
+ weightUnit?: string | undefined;
1180
+ }>, "many">>;
1181
+ recentMovements: z.ZodOptional<z.ZodArray<z.ZodObject<{
1182
+ id: z.ZodString;
1183
+ movementDate: z.ZodString;
1184
+ movementType: z.ZodEnum<["transfer_in", "transfer_out", "sale", "purchase", "death", "birth"]>;
1185
+ fromLocation: z.ZodNullable<z.ZodString>;
1186
+ toLocation: z.ZodNullable<z.ZodString>;
1187
+ reason: z.ZodNullable<z.ZodString>;
1188
+ transactionValue: z.ZodNullable<z.ZodNumber>;
1189
+ currency: z.ZodDefault<z.ZodString>;
1190
+ buyerSeller: z.ZodNullable<z.ZodString>;
1191
+ documentRef: z.ZodNullable<z.ZodString>;
1192
+ notes: z.ZodNullable<z.ZodString>;
1193
+ }, "strip", z.ZodTypeAny, {
1194
+ id: string;
1195
+ currency: string;
1196
+ notes: string | null;
1197
+ reason: string | null;
1198
+ movementDate: string;
1199
+ movementType: "purchase" | "transfer_in" | "transfer_out" | "sale" | "death" | "birth";
1200
+ fromLocation: string | null;
1201
+ toLocation: string | null;
1202
+ transactionValue: number | null;
1203
+ buyerSeller: string | null;
1204
+ documentRef: string | null;
1205
+ }, {
1206
+ id: string;
1207
+ notes: string | null;
1208
+ reason: string | null;
1209
+ movementDate: string;
1210
+ movementType: "purchase" | "transfer_in" | "transfer_out" | "sale" | "death" | "birth";
1211
+ fromLocation: string | null;
1212
+ toLocation: string | null;
1213
+ transactionValue: number | null;
1214
+ buyerSeller: string | null;
1215
+ documentRef: string | null;
1216
+ currency?: string | undefined;
1217
+ }>, "many">>;
1218
+ } & {
1219
+ createdAt: z.ZodString;
1220
+ updatedAt: z.ZodString;
1221
+ }, "strip", z.ZodTypeAny, {
1222
+ status: "ACTIVE" | "SOLD" | "DECEASED" | "TRANSFERRED" | "QUARANTINE";
1223
+ createdAt: string;
1224
+ updatedAt: string;
1225
+ name: string | null;
1226
+ location: string | null;
1227
+ currency: string;
1228
+ farmId: string;
1229
+ category: "OTHER" | "CATTLE" | "POULTRY" | "SHEEP" | "GOAT" | "PIG" | "FISH" | "RABBIT";
1230
+ notes: string | null;
1231
+ purchasePrice: number | null;
1232
+ currentValue: number | null;
1233
+ weight: number | null;
1234
+ color: string | null;
1235
+ weightUnit: string;
1236
+ tagId: string;
1237
+ breed: string | null;
1238
+ sex: "MALE" | "FEMALE" | "UNKNOWN";
1239
+ dateOfBirth: string | null;
1240
+ acquisitionDate: string;
1241
+ acquisitionType: "born" | "purchased" | "transferred" | "gifted";
1242
+ lastWeighDate: string | null;
1243
+ sireId: string | null;
1244
+ damId: string | null;
1245
+ statusDate: string;
1246
+ statusNote: string | null;
1247
+ groupId: string | null;
1248
+ sireName?: string | null | undefined;
1249
+ damName?: string | null | undefined;
1250
+ healthRecords?: {
1251
+ id: string;
1252
+ description: string;
1253
+ currency: string;
1254
+ notes: string | null;
1255
+ cost: number | null;
1256
+ treatment: string | null;
1257
+ recordDate: string;
1258
+ recordType: "other" | "vaccination" | "treatment" | "checkup" | "deworming" | "surgery";
1259
+ diagnosis: string | null;
1260
+ medication: string | null;
1261
+ dosage: string | null;
1262
+ administeredBy: string | null;
1263
+ vaccineName: string | null;
1264
+ batchNumber: string | null;
1265
+ nextDueDate: string | null;
1266
+ followUpRequired: boolean;
1267
+ followUpDate: string | null;
1268
+ followUpNotes: string | null;
1269
+ }[] | undefined;
1270
+ weightRecords?: {
1271
+ id: string;
1272
+ notes: string | null;
1273
+ weight: number;
1274
+ recordDate: string;
1275
+ weightUnit: string;
1276
+ }[] | undefined;
1277
+ recentMovements?: {
1278
+ id: string;
1279
+ currency: string;
1280
+ notes: string | null;
1281
+ reason: string | null;
1282
+ movementDate: string;
1283
+ movementType: "purchase" | "transfer_in" | "transfer_out" | "sale" | "death" | "birth";
1284
+ fromLocation: string | null;
1285
+ toLocation: string | null;
1286
+ transactionValue: number | null;
1287
+ buyerSeller: string | null;
1288
+ documentRef: string | null;
1289
+ }[] | undefined;
1290
+ }, {
1291
+ status: "ACTIVE" | "SOLD" | "DECEASED" | "TRANSFERRED" | "QUARANTINE";
1292
+ createdAt: string;
1293
+ updatedAt: string;
1294
+ name: string | null;
1295
+ location: string | null;
1296
+ farmId: string;
1297
+ category: "OTHER" | "CATTLE" | "POULTRY" | "SHEEP" | "GOAT" | "PIG" | "FISH" | "RABBIT";
1298
+ notes: string | null;
1299
+ purchasePrice: number | null;
1300
+ currentValue: number | null;
1301
+ weight: number | null;
1302
+ color: string | null;
1303
+ tagId: string;
1304
+ breed: string | null;
1305
+ sex: "MALE" | "FEMALE" | "UNKNOWN";
1306
+ dateOfBirth: string | null;
1307
+ acquisitionDate: string;
1308
+ acquisitionType: "born" | "purchased" | "transferred" | "gifted";
1309
+ lastWeighDate: string | null;
1310
+ sireId: string | null;
1311
+ damId: string | null;
1312
+ statusDate: string;
1313
+ statusNote: string | null;
1314
+ groupId: string | null;
1315
+ currency?: string | undefined;
1316
+ weightUnit?: string | undefined;
1317
+ sireName?: string | null | undefined;
1318
+ damName?: string | null | undefined;
1319
+ healthRecords?: {
1320
+ id: string;
1321
+ description: string;
1322
+ notes: string | null;
1323
+ cost: number | null;
1324
+ treatment: string | null;
1325
+ recordDate: string;
1326
+ recordType: "other" | "vaccination" | "treatment" | "checkup" | "deworming" | "surgery";
1327
+ diagnosis: string | null;
1328
+ medication: string | null;
1329
+ dosage: string | null;
1330
+ administeredBy: string | null;
1331
+ vaccineName: string | null;
1332
+ batchNumber: string | null;
1333
+ nextDueDate: string | null;
1334
+ followUpDate: string | null;
1335
+ followUpNotes: string | null;
1336
+ currency?: string | undefined;
1337
+ followUpRequired?: boolean | undefined;
1338
+ }[] | undefined;
1339
+ weightRecords?: {
1340
+ id: string;
1341
+ notes: string | null;
1342
+ weight: number;
1343
+ recordDate: string;
1344
+ weightUnit?: string | undefined;
1345
+ }[] | undefined;
1346
+ recentMovements?: {
1347
+ id: string;
1348
+ notes: string | null;
1349
+ reason: string | null;
1350
+ movementDate: string;
1351
+ movementType: "purchase" | "transfer_in" | "transfer_out" | "sale" | "death" | "birth";
1352
+ fromLocation: string | null;
1353
+ toLocation: string | null;
1354
+ transactionValue: number | null;
1355
+ buyerSeller: string | null;
1356
+ documentRef: string | null;
1357
+ currency?: string | undefined;
1358
+ }[] | undefined;
1359
+ }>;
1360
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1361
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1362
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1363
+ }, "strip", z.ZodTypeAny, {
1364
+ type: string;
1365
+ id: string;
1366
+ attributes: {
1367
+ status: "ACTIVE" | "SOLD" | "DECEASED" | "TRANSFERRED" | "QUARANTINE";
1368
+ createdAt: string;
1369
+ updatedAt: string;
1370
+ name: string | null;
1371
+ location: string | null;
1372
+ currency: string;
1373
+ farmId: string;
1374
+ category: "OTHER" | "CATTLE" | "POULTRY" | "SHEEP" | "GOAT" | "PIG" | "FISH" | "RABBIT";
1375
+ notes: string | null;
1376
+ purchasePrice: number | null;
1377
+ currentValue: number | null;
1378
+ weight: number | null;
1379
+ color: string | null;
1380
+ weightUnit: string;
1381
+ tagId: string;
1382
+ breed: string | null;
1383
+ sex: "MALE" | "FEMALE" | "UNKNOWN";
1384
+ dateOfBirth: string | null;
1385
+ acquisitionDate: string;
1386
+ acquisitionType: "born" | "purchased" | "transferred" | "gifted";
1387
+ lastWeighDate: string | null;
1388
+ sireId: string | null;
1389
+ damId: string | null;
1390
+ statusDate: string;
1391
+ statusNote: string | null;
1392
+ groupId: string | null;
1393
+ sireName?: string | null | undefined;
1394
+ damName?: string | null | undefined;
1395
+ healthRecords?: {
1396
+ id: string;
1397
+ description: string;
1398
+ currency: string;
1399
+ notes: string | null;
1400
+ cost: number | null;
1401
+ treatment: string | null;
1402
+ recordDate: string;
1403
+ recordType: "other" | "vaccination" | "treatment" | "checkup" | "deworming" | "surgery";
1404
+ diagnosis: string | null;
1405
+ medication: string | null;
1406
+ dosage: string | null;
1407
+ administeredBy: string | null;
1408
+ vaccineName: string | null;
1409
+ batchNumber: string | null;
1410
+ nextDueDate: string | null;
1411
+ followUpRequired: boolean;
1412
+ followUpDate: string | null;
1413
+ followUpNotes: string | null;
1414
+ }[] | undefined;
1415
+ weightRecords?: {
1416
+ id: string;
1417
+ notes: string | null;
1418
+ weight: number;
1419
+ recordDate: string;
1420
+ weightUnit: string;
1421
+ }[] | undefined;
1422
+ recentMovements?: {
1423
+ id: string;
1424
+ currency: string;
1425
+ notes: string | null;
1426
+ reason: string | null;
1427
+ movementDate: string;
1428
+ movementType: "purchase" | "transfer_in" | "transfer_out" | "sale" | "death" | "birth";
1429
+ fromLocation: string | null;
1430
+ toLocation: string | null;
1431
+ transactionValue: number | null;
1432
+ buyerSeller: string | null;
1433
+ documentRef: string | null;
1434
+ }[] | undefined;
1435
+ };
1436
+ relationships?: Record<string, unknown> | undefined;
1437
+ links?: Record<string, string> | undefined;
1438
+ meta?: Record<string, unknown> | undefined;
1439
+ }, {
1440
+ type: string;
1441
+ id: string;
1442
+ attributes: {
1443
+ status: "ACTIVE" | "SOLD" | "DECEASED" | "TRANSFERRED" | "QUARANTINE";
1444
+ createdAt: string;
1445
+ updatedAt: string;
1446
+ name: string | null;
1447
+ location: string | null;
1448
+ farmId: string;
1449
+ category: "OTHER" | "CATTLE" | "POULTRY" | "SHEEP" | "GOAT" | "PIG" | "FISH" | "RABBIT";
1450
+ notes: string | null;
1451
+ purchasePrice: number | null;
1452
+ currentValue: number | null;
1453
+ weight: number | null;
1454
+ color: string | null;
1455
+ tagId: string;
1456
+ breed: string | null;
1457
+ sex: "MALE" | "FEMALE" | "UNKNOWN";
1458
+ dateOfBirth: string | null;
1459
+ acquisitionDate: string;
1460
+ acquisitionType: "born" | "purchased" | "transferred" | "gifted";
1461
+ lastWeighDate: string | null;
1462
+ sireId: string | null;
1463
+ damId: string | null;
1464
+ statusDate: string;
1465
+ statusNote: string | null;
1466
+ groupId: string | null;
1467
+ currency?: string | undefined;
1468
+ weightUnit?: string | undefined;
1469
+ sireName?: string | null | undefined;
1470
+ damName?: string | null | undefined;
1471
+ healthRecords?: {
1472
+ id: string;
1473
+ description: string;
1474
+ notes: string | null;
1475
+ cost: number | null;
1476
+ treatment: string | null;
1477
+ recordDate: string;
1478
+ recordType: "other" | "vaccination" | "treatment" | "checkup" | "deworming" | "surgery";
1479
+ diagnosis: string | null;
1480
+ medication: string | null;
1481
+ dosage: string | null;
1482
+ administeredBy: string | null;
1483
+ vaccineName: string | null;
1484
+ batchNumber: string | null;
1485
+ nextDueDate: string | null;
1486
+ followUpDate: string | null;
1487
+ followUpNotes: string | null;
1488
+ currency?: string | undefined;
1489
+ followUpRequired?: boolean | undefined;
1490
+ }[] | undefined;
1491
+ weightRecords?: {
1492
+ id: string;
1493
+ notes: string | null;
1494
+ weight: number;
1495
+ recordDate: string;
1496
+ weightUnit?: string | undefined;
1497
+ }[] | undefined;
1498
+ recentMovements?: {
1499
+ id: string;
1500
+ notes: string | null;
1501
+ reason: string | null;
1502
+ movementDate: string;
1503
+ movementType: "purchase" | "transfer_in" | "transfer_out" | "sale" | "death" | "birth";
1504
+ fromLocation: string | null;
1505
+ toLocation: string | null;
1506
+ transactionValue: number | null;
1507
+ buyerSeller: string | null;
1508
+ documentRef: string | null;
1509
+ currency?: string | undefined;
1510
+ }[] | undefined;
1511
+ };
1512
+ relationships?: Record<string, unknown> | undefined;
1513
+ links?: Record<string, string> | undefined;
1514
+ meta?: Record<string, unknown> | undefined;
1515
+ }>;
1516
+ export declare const healthRecordResourceSchema: z.ZodObject<{
1517
+ type: z.ZodLiteral<string>;
1518
+ id: z.ZodString;
1519
+ attributes: z.ZodObject<{
1520
+ id: z.ZodString;
1521
+ recordDate: z.ZodString;
1522
+ recordType: z.ZodEnum<["vaccination", "treatment", "checkup", "deworming", "surgery", "other"]>;
1523
+ description: z.ZodString;
1524
+ diagnosis: z.ZodNullable<z.ZodString>;
1525
+ treatment: z.ZodNullable<z.ZodString>;
1526
+ medication: z.ZodNullable<z.ZodString>;
1527
+ dosage: z.ZodNullable<z.ZodString>;
1528
+ administeredBy: z.ZodNullable<z.ZodString>;
1529
+ vaccineName: z.ZodNullable<z.ZodString>;
1530
+ batchNumber: z.ZodNullable<z.ZodString>;
1531
+ nextDueDate: z.ZodNullable<z.ZodString>;
1532
+ cost: z.ZodNullable<z.ZodNumber>;
1533
+ currency: z.ZodDefault<z.ZodString>;
1534
+ followUpRequired: z.ZodDefault<z.ZodBoolean>;
1535
+ followUpDate: z.ZodNullable<z.ZodString>;
1536
+ followUpNotes: z.ZodNullable<z.ZodString>;
1537
+ notes: z.ZodNullable<z.ZodString>;
1538
+ }, "strip", z.ZodTypeAny, {
1539
+ id: string;
1540
+ description: string;
1541
+ currency: string;
1542
+ notes: string | null;
1543
+ cost: number | null;
1544
+ treatment: string | null;
1545
+ recordDate: string;
1546
+ recordType: "other" | "vaccination" | "treatment" | "checkup" | "deworming" | "surgery";
1547
+ diagnosis: string | null;
1548
+ medication: string | null;
1549
+ dosage: string | null;
1550
+ administeredBy: string | null;
1551
+ vaccineName: string | null;
1552
+ batchNumber: string | null;
1553
+ nextDueDate: string | null;
1554
+ followUpRequired: boolean;
1555
+ followUpDate: string | null;
1556
+ followUpNotes: string | null;
1557
+ }, {
1558
+ id: string;
1559
+ description: string;
1560
+ notes: string | null;
1561
+ cost: number | null;
1562
+ treatment: string | null;
1563
+ recordDate: string;
1564
+ recordType: "other" | "vaccination" | "treatment" | "checkup" | "deworming" | "surgery";
1565
+ diagnosis: string | null;
1566
+ medication: string | null;
1567
+ dosage: string | null;
1568
+ administeredBy: string | null;
1569
+ vaccineName: string | null;
1570
+ batchNumber: string | null;
1571
+ nextDueDate: string | null;
1572
+ followUpDate: string | null;
1573
+ followUpNotes: string | null;
1574
+ currency?: string | undefined;
1575
+ followUpRequired?: boolean | undefined;
1576
+ }>;
1577
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1578
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1579
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1580
+ }, "strip", z.ZodTypeAny, {
1581
+ type: string;
1582
+ id: string;
1583
+ attributes: {
1584
+ id: string;
1585
+ description: string;
1586
+ currency: string;
1587
+ notes: string | null;
1588
+ cost: number | null;
1589
+ treatment: string | null;
1590
+ recordDate: string;
1591
+ recordType: "other" | "vaccination" | "treatment" | "checkup" | "deworming" | "surgery";
1592
+ diagnosis: string | null;
1593
+ medication: string | null;
1594
+ dosage: string | null;
1595
+ administeredBy: string | null;
1596
+ vaccineName: string | null;
1597
+ batchNumber: string | null;
1598
+ nextDueDate: string | null;
1599
+ followUpRequired: boolean;
1600
+ followUpDate: string | null;
1601
+ followUpNotes: string | null;
1602
+ };
1603
+ relationships?: Record<string, unknown> | undefined;
1604
+ links?: Record<string, string> | undefined;
1605
+ meta?: Record<string, unknown> | undefined;
1606
+ }, {
1607
+ type: string;
1608
+ id: string;
1609
+ attributes: {
1610
+ id: string;
1611
+ description: string;
1612
+ notes: string | null;
1613
+ cost: number | null;
1614
+ treatment: string | null;
1615
+ recordDate: string;
1616
+ recordType: "other" | "vaccination" | "treatment" | "checkup" | "deworming" | "surgery";
1617
+ diagnosis: string | null;
1618
+ medication: string | null;
1619
+ dosage: string | null;
1620
+ administeredBy: string | null;
1621
+ vaccineName: string | null;
1622
+ batchNumber: string | null;
1623
+ nextDueDate: string | null;
1624
+ followUpDate: string | null;
1625
+ followUpNotes: string | null;
1626
+ currency?: string | undefined;
1627
+ followUpRequired?: boolean | undefined;
1628
+ };
1629
+ relationships?: Record<string, unknown> | undefined;
1630
+ links?: Record<string, string> | undefined;
1631
+ meta?: Record<string, unknown> | undefined;
1632
+ }>;
1633
+ export declare const weightRecordResourceSchema: z.ZodObject<{
1634
+ type: z.ZodLiteral<string>;
1635
+ id: z.ZodString;
1636
+ attributes: z.ZodObject<{
1637
+ id: z.ZodString;
1638
+ recordDate: z.ZodString;
1639
+ weight: z.ZodNumber;
1640
+ weightUnit: z.ZodDefault<z.ZodString>;
1641
+ notes: z.ZodNullable<z.ZodString>;
1642
+ }, "strip", z.ZodTypeAny, {
1643
+ id: string;
1644
+ notes: string | null;
1645
+ weight: number;
1646
+ recordDate: string;
1647
+ weightUnit: string;
1648
+ }, {
1649
+ id: string;
1650
+ notes: string | null;
1651
+ weight: number;
1652
+ recordDate: string;
1653
+ weightUnit?: string | undefined;
1654
+ }>;
1655
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1656
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1657
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1658
+ }, "strip", z.ZodTypeAny, {
1659
+ type: string;
1660
+ id: string;
1661
+ attributes: {
1662
+ id: string;
1663
+ notes: string | null;
1664
+ weight: number;
1665
+ recordDate: string;
1666
+ weightUnit: string;
1667
+ };
1668
+ relationships?: Record<string, unknown> | undefined;
1669
+ links?: Record<string, string> | undefined;
1670
+ meta?: Record<string, unknown> | undefined;
1671
+ }, {
1672
+ type: string;
1673
+ id: string;
1674
+ attributes: {
1675
+ id: string;
1676
+ notes: string | null;
1677
+ weight: number;
1678
+ recordDate: string;
1679
+ weightUnit?: string | undefined;
1680
+ };
1681
+ relationships?: Record<string, unknown> | undefined;
1682
+ links?: Record<string, string> | undefined;
1683
+ meta?: Record<string, unknown> | undefined;
1684
+ }>;
1685
+ export declare const movementRecordResourceSchema: z.ZodObject<{
1686
+ type: z.ZodLiteral<string>;
1687
+ id: z.ZodString;
1688
+ attributes: z.ZodObject<{
1689
+ id: z.ZodString;
1690
+ movementDate: z.ZodString;
1691
+ movementType: z.ZodEnum<["transfer_in", "transfer_out", "sale", "purchase", "death", "birth"]>;
1692
+ fromLocation: z.ZodNullable<z.ZodString>;
1693
+ toLocation: z.ZodNullable<z.ZodString>;
1694
+ reason: z.ZodNullable<z.ZodString>;
1695
+ transactionValue: z.ZodNullable<z.ZodNumber>;
1696
+ currency: z.ZodDefault<z.ZodString>;
1697
+ buyerSeller: z.ZodNullable<z.ZodString>;
1698
+ documentRef: z.ZodNullable<z.ZodString>;
1699
+ notes: z.ZodNullable<z.ZodString>;
1700
+ }, "strip", z.ZodTypeAny, {
1701
+ id: string;
1702
+ currency: string;
1703
+ notes: string | null;
1704
+ reason: string | null;
1705
+ movementDate: string;
1706
+ movementType: "purchase" | "transfer_in" | "transfer_out" | "sale" | "death" | "birth";
1707
+ fromLocation: string | null;
1708
+ toLocation: string | null;
1709
+ transactionValue: number | null;
1710
+ buyerSeller: string | null;
1711
+ documentRef: string | null;
1712
+ }, {
1713
+ id: string;
1714
+ notes: string | null;
1715
+ reason: string | null;
1716
+ movementDate: string;
1717
+ movementType: "purchase" | "transfer_in" | "transfer_out" | "sale" | "death" | "birth";
1718
+ fromLocation: string | null;
1719
+ toLocation: string | null;
1720
+ transactionValue: number | null;
1721
+ buyerSeller: string | null;
1722
+ documentRef: string | null;
1723
+ currency?: string | undefined;
1724
+ }>;
1725
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1726
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1727
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1728
+ }, "strip", z.ZodTypeAny, {
1729
+ type: string;
1730
+ id: string;
1731
+ attributes: {
1732
+ id: string;
1733
+ currency: string;
1734
+ notes: string | null;
1735
+ reason: string | null;
1736
+ movementDate: string;
1737
+ movementType: "purchase" | "transfer_in" | "transfer_out" | "sale" | "death" | "birth";
1738
+ fromLocation: string | null;
1739
+ toLocation: string | null;
1740
+ transactionValue: number | null;
1741
+ buyerSeller: string | null;
1742
+ documentRef: string | null;
1743
+ };
1744
+ relationships?: Record<string, unknown> | undefined;
1745
+ links?: Record<string, string> | undefined;
1746
+ meta?: Record<string, unknown> | undefined;
1747
+ }, {
1748
+ type: string;
1749
+ id: string;
1750
+ attributes: {
1751
+ id: string;
1752
+ notes: string | null;
1753
+ reason: string | null;
1754
+ movementDate: string;
1755
+ movementType: "purchase" | "transfer_in" | "transfer_out" | "sale" | "death" | "birth";
1756
+ fromLocation: string | null;
1757
+ toLocation: string | null;
1758
+ transactionValue: number | null;
1759
+ buyerSeller: string | null;
1760
+ documentRef: string | null;
1761
+ currency?: string | undefined;
1762
+ };
1763
+ relationships?: Record<string, unknown> | undefined;
1764
+ links?: Record<string, string> | undefined;
1765
+ meta?: Record<string, unknown> | undefined;
1766
+ }>;
1767
+ export declare const livestockResponseSchema: z.ZodObject<{
1768
+ data: z.ZodObject<{
1769
+ type: z.ZodLiteral<string>;
1770
+ id: z.ZodString;
1771
+ attributes: z.ZodObject<{
1772
+ farmId: z.ZodString;
1773
+ tagId: z.ZodString;
1774
+ name: z.ZodNullable<z.ZodString>;
1775
+ category: z.ZodEnum<["CATTLE", "POULTRY", "SHEEP", "GOAT", "PIG", "FISH", "RABBIT", "OTHER"]>;
1776
+ breed: z.ZodNullable<z.ZodString>;
1777
+ sex: z.ZodEnum<["MALE", "FEMALE", "UNKNOWN"]>;
1778
+ dateOfBirth: z.ZodNullable<z.ZodString>;
1779
+ acquisitionDate: z.ZodString;
1780
+ acquisitionType: z.ZodEnum<["born", "purchased", "transferred", "gifted"]>;
1781
+ color: z.ZodNullable<z.ZodString>;
1782
+ weight: z.ZodNullable<z.ZodNumber>;
1783
+ weightUnit: z.ZodDefault<z.ZodString>;
1784
+ lastWeighDate: z.ZodNullable<z.ZodString>;
1785
+ sireId: z.ZodNullable<z.ZodString>;
1786
+ damId: z.ZodNullable<z.ZodString>;
1787
+ sireName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1788
+ damName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1789
+ status: z.ZodEnum<["ACTIVE", "SOLD", "DECEASED", "TRANSFERRED", "QUARANTINE"]>;
1790
+ statusDate: z.ZodString;
1791
+ statusNote: z.ZodNullable<z.ZodString>;
1792
+ location: z.ZodNullable<z.ZodString>;
1793
+ groupId: z.ZodNullable<z.ZodString>;
1794
+ purchasePrice: z.ZodNullable<z.ZodNumber>;
1795
+ currentValue: z.ZodNullable<z.ZodNumber>;
1796
+ currency: z.ZodDefault<z.ZodString>;
1797
+ notes: z.ZodNullable<z.ZodString>;
1798
+ healthRecords: z.ZodOptional<z.ZodArray<z.ZodObject<{
1799
+ id: z.ZodString;
1800
+ recordDate: z.ZodString;
1801
+ recordType: z.ZodEnum<["vaccination", "treatment", "checkup", "deworming", "surgery", "other"]>;
1802
+ description: z.ZodString;
1803
+ diagnosis: z.ZodNullable<z.ZodString>;
1804
+ treatment: z.ZodNullable<z.ZodString>;
1805
+ medication: z.ZodNullable<z.ZodString>;
1806
+ dosage: z.ZodNullable<z.ZodString>;
1807
+ administeredBy: z.ZodNullable<z.ZodString>;
1808
+ vaccineName: z.ZodNullable<z.ZodString>;
1809
+ batchNumber: z.ZodNullable<z.ZodString>;
1810
+ nextDueDate: z.ZodNullable<z.ZodString>;
1811
+ cost: z.ZodNullable<z.ZodNumber>;
1812
+ currency: z.ZodDefault<z.ZodString>;
1813
+ followUpRequired: z.ZodDefault<z.ZodBoolean>;
1814
+ followUpDate: z.ZodNullable<z.ZodString>;
1815
+ followUpNotes: z.ZodNullable<z.ZodString>;
1816
+ notes: z.ZodNullable<z.ZodString>;
1817
+ }, "strip", z.ZodTypeAny, {
1818
+ id: string;
1819
+ description: string;
1820
+ currency: string;
1821
+ notes: string | null;
1822
+ cost: number | null;
1823
+ treatment: string | null;
1824
+ recordDate: string;
1825
+ recordType: "other" | "vaccination" | "treatment" | "checkup" | "deworming" | "surgery";
1826
+ diagnosis: string | null;
1827
+ medication: string | null;
1828
+ dosage: string | null;
1829
+ administeredBy: string | null;
1830
+ vaccineName: string | null;
1831
+ batchNumber: string | null;
1832
+ nextDueDate: string | null;
1833
+ followUpRequired: boolean;
1834
+ followUpDate: string | null;
1835
+ followUpNotes: string | null;
1836
+ }, {
1837
+ id: string;
1838
+ description: string;
1839
+ notes: string | null;
1840
+ cost: number | null;
1841
+ treatment: string | null;
1842
+ recordDate: string;
1843
+ recordType: "other" | "vaccination" | "treatment" | "checkup" | "deworming" | "surgery";
1844
+ diagnosis: string | null;
1845
+ medication: string | null;
1846
+ dosage: string | null;
1847
+ administeredBy: string | null;
1848
+ vaccineName: string | null;
1849
+ batchNumber: string | null;
1850
+ nextDueDate: string | null;
1851
+ followUpDate: string | null;
1852
+ followUpNotes: string | null;
1853
+ currency?: string | undefined;
1854
+ followUpRequired?: boolean | undefined;
1855
+ }>, "many">>;
1856
+ weightRecords: z.ZodOptional<z.ZodArray<z.ZodObject<{
1857
+ id: z.ZodString;
1858
+ recordDate: z.ZodString;
1859
+ weight: z.ZodNumber;
1860
+ weightUnit: z.ZodDefault<z.ZodString>;
1861
+ notes: z.ZodNullable<z.ZodString>;
1862
+ }, "strip", z.ZodTypeAny, {
1863
+ id: string;
1864
+ notes: string | null;
1865
+ weight: number;
1866
+ recordDate: string;
1867
+ weightUnit: string;
1868
+ }, {
1869
+ id: string;
1870
+ notes: string | null;
1871
+ weight: number;
1872
+ recordDate: string;
1873
+ weightUnit?: string | undefined;
1874
+ }>, "many">>;
1875
+ recentMovements: z.ZodOptional<z.ZodArray<z.ZodObject<{
1876
+ id: z.ZodString;
1877
+ movementDate: z.ZodString;
1878
+ movementType: z.ZodEnum<["transfer_in", "transfer_out", "sale", "purchase", "death", "birth"]>;
1879
+ fromLocation: z.ZodNullable<z.ZodString>;
1880
+ toLocation: z.ZodNullable<z.ZodString>;
1881
+ reason: z.ZodNullable<z.ZodString>;
1882
+ transactionValue: z.ZodNullable<z.ZodNumber>;
1883
+ currency: z.ZodDefault<z.ZodString>;
1884
+ buyerSeller: z.ZodNullable<z.ZodString>;
1885
+ documentRef: z.ZodNullable<z.ZodString>;
1886
+ notes: z.ZodNullable<z.ZodString>;
1887
+ }, "strip", z.ZodTypeAny, {
1888
+ id: string;
1889
+ currency: string;
1890
+ notes: string | null;
1891
+ reason: string | null;
1892
+ movementDate: string;
1893
+ movementType: "purchase" | "transfer_in" | "transfer_out" | "sale" | "death" | "birth";
1894
+ fromLocation: string | null;
1895
+ toLocation: string | null;
1896
+ transactionValue: number | null;
1897
+ buyerSeller: string | null;
1898
+ documentRef: string | null;
1899
+ }, {
1900
+ id: string;
1901
+ notes: string | null;
1902
+ reason: string | null;
1903
+ movementDate: string;
1904
+ movementType: "purchase" | "transfer_in" | "transfer_out" | "sale" | "death" | "birth";
1905
+ fromLocation: string | null;
1906
+ toLocation: string | null;
1907
+ transactionValue: number | null;
1908
+ buyerSeller: string | null;
1909
+ documentRef: string | null;
1910
+ currency?: string | undefined;
1911
+ }>, "many">>;
1912
+ } & {
1913
+ createdAt: z.ZodString;
1914
+ updatedAt: z.ZodString;
1915
+ }, "strip", z.ZodTypeAny, {
1916
+ status: "ACTIVE" | "SOLD" | "DECEASED" | "TRANSFERRED" | "QUARANTINE";
1917
+ createdAt: string;
1918
+ updatedAt: string;
1919
+ name: string | null;
1920
+ location: string | null;
1921
+ currency: string;
1922
+ farmId: string;
1923
+ category: "OTHER" | "CATTLE" | "POULTRY" | "SHEEP" | "GOAT" | "PIG" | "FISH" | "RABBIT";
1924
+ notes: string | null;
1925
+ purchasePrice: number | null;
1926
+ currentValue: number | null;
1927
+ weight: number | null;
1928
+ color: string | null;
1929
+ weightUnit: string;
1930
+ tagId: string;
1931
+ breed: string | null;
1932
+ sex: "MALE" | "FEMALE" | "UNKNOWN";
1933
+ dateOfBirth: string | null;
1934
+ acquisitionDate: string;
1935
+ acquisitionType: "born" | "purchased" | "transferred" | "gifted";
1936
+ lastWeighDate: string | null;
1937
+ sireId: string | null;
1938
+ damId: string | null;
1939
+ statusDate: string;
1940
+ statusNote: string | null;
1941
+ groupId: string | null;
1942
+ sireName?: string | null | undefined;
1943
+ damName?: string | null | undefined;
1944
+ healthRecords?: {
1945
+ id: string;
1946
+ description: string;
1947
+ currency: string;
1948
+ notes: string | null;
1949
+ cost: number | null;
1950
+ treatment: string | null;
1951
+ recordDate: string;
1952
+ recordType: "other" | "vaccination" | "treatment" | "checkup" | "deworming" | "surgery";
1953
+ diagnosis: string | null;
1954
+ medication: string | null;
1955
+ dosage: string | null;
1956
+ administeredBy: string | null;
1957
+ vaccineName: string | null;
1958
+ batchNumber: string | null;
1959
+ nextDueDate: string | null;
1960
+ followUpRequired: boolean;
1961
+ followUpDate: string | null;
1962
+ followUpNotes: string | null;
1963
+ }[] | undefined;
1964
+ weightRecords?: {
1965
+ id: string;
1966
+ notes: string | null;
1967
+ weight: number;
1968
+ recordDate: string;
1969
+ weightUnit: string;
1970
+ }[] | undefined;
1971
+ recentMovements?: {
1972
+ id: string;
1973
+ currency: string;
1974
+ notes: string | null;
1975
+ reason: string | null;
1976
+ movementDate: string;
1977
+ movementType: "purchase" | "transfer_in" | "transfer_out" | "sale" | "death" | "birth";
1978
+ fromLocation: string | null;
1979
+ toLocation: string | null;
1980
+ transactionValue: number | null;
1981
+ buyerSeller: string | null;
1982
+ documentRef: string | null;
1983
+ }[] | undefined;
1984
+ }, {
1985
+ status: "ACTIVE" | "SOLD" | "DECEASED" | "TRANSFERRED" | "QUARANTINE";
1986
+ createdAt: string;
1987
+ updatedAt: string;
1988
+ name: string | null;
1989
+ location: string | null;
1990
+ farmId: string;
1991
+ category: "OTHER" | "CATTLE" | "POULTRY" | "SHEEP" | "GOAT" | "PIG" | "FISH" | "RABBIT";
1992
+ notes: string | null;
1993
+ purchasePrice: number | null;
1994
+ currentValue: number | null;
1995
+ weight: number | null;
1996
+ color: string | null;
1997
+ tagId: string;
1998
+ breed: string | null;
1999
+ sex: "MALE" | "FEMALE" | "UNKNOWN";
2000
+ dateOfBirth: string | null;
2001
+ acquisitionDate: string;
2002
+ acquisitionType: "born" | "purchased" | "transferred" | "gifted";
2003
+ lastWeighDate: string | null;
2004
+ sireId: string | null;
2005
+ damId: string | null;
2006
+ statusDate: string;
2007
+ statusNote: string | null;
2008
+ groupId: string | null;
2009
+ currency?: string | undefined;
2010
+ weightUnit?: string | undefined;
2011
+ sireName?: string | null | undefined;
2012
+ damName?: string | null | undefined;
2013
+ healthRecords?: {
2014
+ id: string;
2015
+ description: string;
2016
+ notes: string | null;
2017
+ cost: number | null;
2018
+ treatment: string | null;
2019
+ recordDate: string;
2020
+ recordType: "other" | "vaccination" | "treatment" | "checkup" | "deworming" | "surgery";
2021
+ diagnosis: string | null;
2022
+ medication: string | null;
2023
+ dosage: string | null;
2024
+ administeredBy: string | null;
2025
+ vaccineName: string | null;
2026
+ batchNumber: string | null;
2027
+ nextDueDate: string | null;
2028
+ followUpDate: string | null;
2029
+ followUpNotes: string | null;
2030
+ currency?: string | undefined;
2031
+ followUpRequired?: boolean | undefined;
2032
+ }[] | undefined;
2033
+ weightRecords?: {
2034
+ id: string;
2035
+ notes: string | null;
2036
+ weight: number;
2037
+ recordDate: string;
2038
+ weightUnit?: string | undefined;
2039
+ }[] | undefined;
2040
+ recentMovements?: {
2041
+ id: string;
2042
+ notes: string | null;
2043
+ reason: string | null;
2044
+ movementDate: string;
2045
+ movementType: "purchase" | "transfer_in" | "transfer_out" | "sale" | "death" | "birth";
2046
+ fromLocation: string | null;
2047
+ toLocation: string | null;
2048
+ transactionValue: number | null;
2049
+ buyerSeller: string | null;
2050
+ documentRef: string | null;
2051
+ currency?: string | undefined;
2052
+ }[] | undefined;
2053
+ }>;
2054
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2055
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2056
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2057
+ }, "strip", z.ZodTypeAny, {
2058
+ type: string;
2059
+ id: string;
2060
+ attributes: {
2061
+ status: "ACTIVE" | "SOLD" | "DECEASED" | "TRANSFERRED" | "QUARANTINE";
2062
+ createdAt: string;
2063
+ updatedAt: string;
2064
+ name: string | null;
2065
+ location: string | null;
2066
+ currency: string;
2067
+ farmId: string;
2068
+ category: "OTHER" | "CATTLE" | "POULTRY" | "SHEEP" | "GOAT" | "PIG" | "FISH" | "RABBIT";
2069
+ notes: string | null;
2070
+ purchasePrice: number | null;
2071
+ currentValue: number | null;
2072
+ weight: number | null;
2073
+ color: string | null;
2074
+ weightUnit: string;
2075
+ tagId: string;
2076
+ breed: string | null;
2077
+ sex: "MALE" | "FEMALE" | "UNKNOWN";
2078
+ dateOfBirth: string | null;
2079
+ acquisitionDate: string;
2080
+ acquisitionType: "born" | "purchased" | "transferred" | "gifted";
2081
+ lastWeighDate: string | null;
2082
+ sireId: string | null;
2083
+ damId: string | null;
2084
+ statusDate: string;
2085
+ statusNote: string | null;
2086
+ groupId: string | null;
2087
+ sireName?: string | null | undefined;
2088
+ damName?: string | null | undefined;
2089
+ healthRecords?: {
2090
+ id: string;
2091
+ description: string;
2092
+ currency: string;
2093
+ notes: string | null;
2094
+ cost: number | null;
2095
+ treatment: string | null;
2096
+ recordDate: string;
2097
+ recordType: "other" | "vaccination" | "treatment" | "checkup" | "deworming" | "surgery";
2098
+ diagnosis: string | null;
2099
+ medication: string | null;
2100
+ dosage: string | null;
2101
+ administeredBy: string | null;
2102
+ vaccineName: string | null;
2103
+ batchNumber: string | null;
2104
+ nextDueDate: string | null;
2105
+ followUpRequired: boolean;
2106
+ followUpDate: string | null;
2107
+ followUpNotes: string | null;
2108
+ }[] | undefined;
2109
+ weightRecords?: {
2110
+ id: string;
2111
+ notes: string | null;
2112
+ weight: number;
2113
+ recordDate: string;
2114
+ weightUnit: string;
2115
+ }[] | undefined;
2116
+ recentMovements?: {
2117
+ id: string;
2118
+ currency: string;
2119
+ notes: string | null;
2120
+ reason: string | null;
2121
+ movementDate: string;
2122
+ movementType: "purchase" | "transfer_in" | "transfer_out" | "sale" | "death" | "birth";
2123
+ fromLocation: string | null;
2124
+ toLocation: string | null;
2125
+ transactionValue: number | null;
2126
+ buyerSeller: string | null;
2127
+ documentRef: string | null;
2128
+ }[] | undefined;
2129
+ };
2130
+ relationships?: Record<string, unknown> | undefined;
2131
+ links?: Record<string, string> | undefined;
2132
+ meta?: Record<string, unknown> | undefined;
2133
+ }, {
2134
+ type: string;
2135
+ id: string;
2136
+ attributes: {
2137
+ status: "ACTIVE" | "SOLD" | "DECEASED" | "TRANSFERRED" | "QUARANTINE";
2138
+ createdAt: string;
2139
+ updatedAt: string;
2140
+ name: string | null;
2141
+ location: string | null;
2142
+ farmId: string;
2143
+ category: "OTHER" | "CATTLE" | "POULTRY" | "SHEEP" | "GOAT" | "PIG" | "FISH" | "RABBIT";
2144
+ notes: string | null;
2145
+ purchasePrice: number | null;
2146
+ currentValue: number | null;
2147
+ weight: number | null;
2148
+ color: string | null;
2149
+ tagId: string;
2150
+ breed: string | null;
2151
+ sex: "MALE" | "FEMALE" | "UNKNOWN";
2152
+ dateOfBirth: string | null;
2153
+ acquisitionDate: string;
2154
+ acquisitionType: "born" | "purchased" | "transferred" | "gifted";
2155
+ lastWeighDate: string | null;
2156
+ sireId: string | null;
2157
+ damId: string | null;
2158
+ statusDate: string;
2159
+ statusNote: string | null;
2160
+ groupId: string | null;
2161
+ currency?: string | undefined;
2162
+ weightUnit?: string | undefined;
2163
+ sireName?: string | null | undefined;
2164
+ damName?: string | null | undefined;
2165
+ healthRecords?: {
2166
+ id: string;
2167
+ description: string;
2168
+ notes: string | null;
2169
+ cost: number | null;
2170
+ treatment: string | null;
2171
+ recordDate: string;
2172
+ recordType: "other" | "vaccination" | "treatment" | "checkup" | "deworming" | "surgery";
2173
+ diagnosis: string | null;
2174
+ medication: string | null;
2175
+ dosage: string | null;
2176
+ administeredBy: string | null;
2177
+ vaccineName: string | null;
2178
+ batchNumber: string | null;
2179
+ nextDueDate: string | null;
2180
+ followUpDate: string | null;
2181
+ followUpNotes: string | null;
2182
+ currency?: string | undefined;
2183
+ followUpRequired?: boolean | undefined;
2184
+ }[] | undefined;
2185
+ weightRecords?: {
2186
+ id: string;
2187
+ notes: string | null;
2188
+ weight: number;
2189
+ recordDate: string;
2190
+ weightUnit?: string | undefined;
2191
+ }[] | undefined;
2192
+ recentMovements?: {
2193
+ id: string;
2194
+ notes: string | null;
2195
+ reason: string | null;
2196
+ movementDate: string;
2197
+ movementType: "purchase" | "transfer_in" | "transfer_out" | "sale" | "death" | "birth";
2198
+ fromLocation: string | null;
2199
+ toLocation: string | null;
2200
+ transactionValue: number | null;
2201
+ buyerSeller: string | null;
2202
+ documentRef: string | null;
2203
+ currency?: string | undefined;
2204
+ }[] | undefined;
2205
+ };
2206
+ relationships?: Record<string, unknown> | undefined;
2207
+ links?: Record<string, string> | undefined;
2208
+ meta?: Record<string, unknown> | undefined;
2209
+ }>;
2210
+ included: z.ZodOptional<z.ZodArray<z.ZodObject<{
2211
+ type: z.ZodString;
2212
+ id: z.ZodString;
2213
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2214
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2215
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2216
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2217
+ }, "strip", z.ZodTypeAny, {
2218
+ type: string;
2219
+ id: string;
2220
+ attributes?: Record<string, unknown> | undefined;
2221
+ relationships?: Record<string, unknown> | undefined;
2222
+ links?: Record<string, string> | undefined;
2223
+ meta?: Record<string, unknown> | undefined;
2224
+ }, {
2225
+ type: string;
2226
+ id: string;
2227
+ attributes?: Record<string, unknown> | undefined;
2228
+ relationships?: Record<string, unknown> | undefined;
2229
+ links?: Record<string, string> | undefined;
2230
+ meta?: Record<string, unknown> | undefined;
2231
+ }>, "many">>;
2232
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2233
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2234
+ }, "strip", z.ZodTypeAny, {
2235
+ data: {
2236
+ type: string;
2237
+ id: string;
2238
+ attributes: {
2239
+ status: "ACTIVE" | "SOLD" | "DECEASED" | "TRANSFERRED" | "QUARANTINE";
2240
+ createdAt: string;
2241
+ updatedAt: string;
2242
+ name: string | null;
2243
+ location: string | null;
2244
+ currency: string;
2245
+ farmId: string;
2246
+ category: "OTHER" | "CATTLE" | "POULTRY" | "SHEEP" | "GOAT" | "PIG" | "FISH" | "RABBIT";
2247
+ notes: string | null;
2248
+ purchasePrice: number | null;
2249
+ currentValue: number | null;
2250
+ weight: number | null;
2251
+ color: string | null;
2252
+ weightUnit: string;
2253
+ tagId: string;
2254
+ breed: string | null;
2255
+ sex: "MALE" | "FEMALE" | "UNKNOWN";
2256
+ dateOfBirth: string | null;
2257
+ acquisitionDate: string;
2258
+ acquisitionType: "born" | "purchased" | "transferred" | "gifted";
2259
+ lastWeighDate: string | null;
2260
+ sireId: string | null;
2261
+ damId: string | null;
2262
+ statusDate: string;
2263
+ statusNote: string | null;
2264
+ groupId: string | null;
2265
+ sireName?: string | null | undefined;
2266
+ damName?: string | null | undefined;
2267
+ healthRecords?: {
2268
+ id: string;
2269
+ description: string;
2270
+ currency: string;
2271
+ notes: string | null;
2272
+ cost: number | null;
2273
+ treatment: string | null;
2274
+ recordDate: string;
2275
+ recordType: "other" | "vaccination" | "treatment" | "checkup" | "deworming" | "surgery";
2276
+ diagnosis: string | null;
2277
+ medication: string | null;
2278
+ dosage: string | null;
2279
+ administeredBy: string | null;
2280
+ vaccineName: string | null;
2281
+ batchNumber: string | null;
2282
+ nextDueDate: string | null;
2283
+ followUpRequired: boolean;
2284
+ followUpDate: string | null;
2285
+ followUpNotes: string | null;
2286
+ }[] | undefined;
2287
+ weightRecords?: {
2288
+ id: string;
2289
+ notes: string | null;
2290
+ weight: number;
2291
+ recordDate: string;
2292
+ weightUnit: string;
2293
+ }[] | undefined;
2294
+ recentMovements?: {
2295
+ id: string;
2296
+ currency: string;
2297
+ notes: string | null;
2298
+ reason: string | null;
2299
+ movementDate: string;
2300
+ movementType: "purchase" | "transfer_in" | "transfer_out" | "sale" | "death" | "birth";
2301
+ fromLocation: string | null;
2302
+ toLocation: string | null;
2303
+ transactionValue: number | null;
2304
+ buyerSeller: string | null;
2305
+ documentRef: string | null;
2306
+ }[] | undefined;
2307
+ };
2308
+ relationships?: Record<string, unknown> | undefined;
2309
+ links?: Record<string, string> | undefined;
2310
+ meta?: Record<string, unknown> | undefined;
2311
+ };
2312
+ links?: Record<string, string> | undefined;
2313
+ meta?: Record<string, unknown> | undefined;
2314
+ included?: {
2315
+ type: string;
2316
+ id: string;
2317
+ attributes?: Record<string, unknown> | undefined;
2318
+ relationships?: Record<string, unknown> | undefined;
2319
+ links?: Record<string, string> | undefined;
2320
+ meta?: Record<string, unknown> | undefined;
2321
+ }[] | undefined;
2322
+ }, {
2323
+ data: {
2324
+ type: string;
2325
+ id: string;
2326
+ attributes: {
2327
+ status: "ACTIVE" | "SOLD" | "DECEASED" | "TRANSFERRED" | "QUARANTINE";
2328
+ createdAt: string;
2329
+ updatedAt: string;
2330
+ name: string | null;
2331
+ location: string | null;
2332
+ farmId: string;
2333
+ category: "OTHER" | "CATTLE" | "POULTRY" | "SHEEP" | "GOAT" | "PIG" | "FISH" | "RABBIT";
2334
+ notes: string | null;
2335
+ purchasePrice: number | null;
2336
+ currentValue: number | null;
2337
+ weight: number | null;
2338
+ color: string | null;
2339
+ tagId: string;
2340
+ breed: string | null;
2341
+ sex: "MALE" | "FEMALE" | "UNKNOWN";
2342
+ dateOfBirth: string | null;
2343
+ acquisitionDate: string;
2344
+ acquisitionType: "born" | "purchased" | "transferred" | "gifted";
2345
+ lastWeighDate: string | null;
2346
+ sireId: string | null;
2347
+ damId: string | null;
2348
+ statusDate: string;
2349
+ statusNote: string | null;
2350
+ groupId: string | null;
2351
+ currency?: string | undefined;
2352
+ weightUnit?: string | undefined;
2353
+ sireName?: string | null | undefined;
2354
+ damName?: string | null | undefined;
2355
+ healthRecords?: {
2356
+ id: string;
2357
+ description: string;
2358
+ notes: string | null;
2359
+ cost: number | null;
2360
+ treatment: string | null;
2361
+ recordDate: string;
2362
+ recordType: "other" | "vaccination" | "treatment" | "checkup" | "deworming" | "surgery";
2363
+ diagnosis: string | null;
2364
+ medication: string | null;
2365
+ dosage: string | null;
2366
+ administeredBy: string | null;
2367
+ vaccineName: string | null;
2368
+ batchNumber: string | null;
2369
+ nextDueDate: string | null;
2370
+ followUpDate: string | null;
2371
+ followUpNotes: string | null;
2372
+ currency?: string | undefined;
2373
+ followUpRequired?: boolean | undefined;
2374
+ }[] | undefined;
2375
+ weightRecords?: {
2376
+ id: string;
2377
+ notes: string | null;
2378
+ weight: number;
2379
+ recordDate: string;
2380
+ weightUnit?: string | undefined;
2381
+ }[] | undefined;
2382
+ recentMovements?: {
2383
+ id: string;
2384
+ notes: string | null;
2385
+ reason: string | null;
2386
+ movementDate: string;
2387
+ movementType: "purchase" | "transfer_in" | "transfer_out" | "sale" | "death" | "birth";
2388
+ fromLocation: string | null;
2389
+ toLocation: string | null;
2390
+ transactionValue: number | null;
2391
+ buyerSeller: string | null;
2392
+ documentRef: string | null;
2393
+ currency?: string | undefined;
2394
+ }[] | undefined;
2395
+ };
2396
+ relationships?: Record<string, unknown> | undefined;
2397
+ links?: Record<string, string> | undefined;
2398
+ meta?: Record<string, unknown> | undefined;
2399
+ };
2400
+ links?: Record<string, string> | undefined;
2401
+ meta?: Record<string, unknown> | undefined;
2402
+ included?: {
2403
+ type: string;
2404
+ id: string;
2405
+ attributes?: Record<string, unknown> | undefined;
2406
+ relationships?: Record<string, unknown> | undefined;
2407
+ links?: Record<string, string> | undefined;
2408
+ meta?: Record<string, unknown> | undefined;
2409
+ }[] | undefined;
2410
+ }>;
2411
+ export declare const livestockListResponseSchema: z.ZodObject<{
2412
+ data: z.ZodArray<z.ZodObject<{
2413
+ type: z.ZodLiteral<string>;
2414
+ id: z.ZodString;
2415
+ attributes: z.ZodObject<{
2416
+ farmId: z.ZodString;
2417
+ tagId: z.ZodString;
2418
+ name: z.ZodNullable<z.ZodString>;
2419
+ category: z.ZodEnum<["CATTLE", "POULTRY", "SHEEP", "GOAT", "PIG", "FISH", "RABBIT", "OTHER"]>;
2420
+ breed: z.ZodNullable<z.ZodString>;
2421
+ sex: z.ZodEnum<["MALE", "FEMALE", "UNKNOWN"]>;
2422
+ dateOfBirth: z.ZodNullable<z.ZodString>;
2423
+ acquisitionDate: z.ZodString;
2424
+ acquisitionType: z.ZodEnum<["born", "purchased", "transferred", "gifted"]>;
2425
+ color: z.ZodNullable<z.ZodString>;
2426
+ weight: z.ZodNullable<z.ZodNumber>;
2427
+ weightUnit: z.ZodDefault<z.ZodString>;
2428
+ lastWeighDate: z.ZodNullable<z.ZodString>;
2429
+ sireId: z.ZodNullable<z.ZodString>;
2430
+ damId: z.ZodNullable<z.ZodString>;
2431
+ sireName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2432
+ damName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2433
+ status: z.ZodEnum<["ACTIVE", "SOLD", "DECEASED", "TRANSFERRED", "QUARANTINE"]>;
2434
+ statusDate: z.ZodString;
2435
+ statusNote: z.ZodNullable<z.ZodString>;
2436
+ location: z.ZodNullable<z.ZodString>;
2437
+ groupId: z.ZodNullable<z.ZodString>;
2438
+ purchasePrice: z.ZodNullable<z.ZodNumber>;
2439
+ currentValue: z.ZodNullable<z.ZodNumber>;
2440
+ currency: z.ZodDefault<z.ZodString>;
2441
+ notes: z.ZodNullable<z.ZodString>;
2442
+ healthRecords: z.ZodOptional<z.ZodArray<z.ZodObject<{
2443
+ id: z.ZodString;
2444
+ recordDate: z.ZodString;
2445
+ recordType: z.ZodEnum<["vaccination", "treatment", "checkup", "deworming", "surgery", "other"]>;
2446
+ description: z.ZodString;
2447
+ diagnosis: z.ZodNullable<z.ZodString>;
2448
+ treatment: z.ZodNullable<z.ZodString>;
2449
+ medication: z.ZodNullable<z.ZodString>;
2450
+ dosage: z.ZodNullable<z.ZodString>;
2451
+ administeredBy: z.ZodNullable<z.ZodString>;
2452
+ vaccineName: z.ZodNullable<z.ZodString>;
2453
+ batchNumber: z.ZodNullable<z.ZodString>;
2454
+ nextDueDate: z.ZodNullable<z.ZodString>;
2455
+ cost: z.ZodNullable<z.ZodNumber>;
2456
+ currency: z.ZodDefault<z.ZodString>;
2457
+ followUpRequired: z.ZodDefault<z.ZodBoolean>;
2458
+ followUpDate: z.ZodNullable<z.ZodString>;
2459
+ followUpNotes: z.ZodNullable<z.ZodString>;
2460
+ notes: z.ZodNullable<z.ZodString>;
2461
+ }, "strip", z.ZodTypeAny, {
2462
+ id: string;
2463
+ description: string;
2464
+ currency: string;
2465
+ notes: string | null;
2466
+ cost: number | null;
2467
+ treatment: string | null;
2468
+ recordDate: string;
2469
+ recordType: "other" | "vaccination" | "treatment" | "checkup" | "deworming" | "surgery";
2470
+ diagnosis: string | null;
2471
+ medication: string | null;
2472
+ dosage: string | null;
2473
+ administeredBy: string | null;
2474
+ vaccineName: string | null;
2475
+ batchNumber: string | null;
2476
+ nextDueDate: string | null;
2477
+ followUpRequired: boolean;
2478
+ followUpDate: string | null;
2479
+ followUpNotes: string | null;
2480
+ }, {
2481
+ id: string;
2482
+ description: string;
2483
+ notes: string | null;
2484
+ cost: number | null;
2485
+ treatment: string | null;
2486
+ recordDate: string;
2487
+ recordType: "other" | "vaccination" | "treatment" | "checkup" | "deworming" | "surgery";
2488
+ diagnosis: string | null;
2489
+ medication: string | null;
2490
+ dosage: string | null;
2491
+ administeredBy: string | null;
2492
+ vaccineName: string | null;
2493
+ batchNumber: string | null;
2494
+ nextDueDate: string | null;
2495
+ followUpDate: string | null;
2496
+ followUpNotes: string | null;
2497
+ currency?: string | undefined;
2498
+ followUpRequired?: boolean | undefined;
2499
+ }>, "many">>;
2500
+ weightRecords: z.ZodOptional<z.ZodArray<z.ZodObject<{
2501
+ id: z.ZodString;
2502
+ recordDate: z.ZodString;
2503
+ weight: z.ZodNumber;
2504
+ weightUnit: z.ZodDefault<z.ZodString>;
2505
+ notes: z.ZodNullable<z.ZodString>;
2506
+ }, "strip", z.ZodTypeAny, {
2507
+ id: string;
2508
+ notes: string | null;
2509
+ weight: number;
2510
+ recordDate: string;
2511
+ weightUnit: string;
2512
+ }, {
2513
+ id: string;
2514
+ notes: string | null;
2515
+ weight: number;
2516
+ recordDate: string;
2517
+ weightUnit?: string | undefined;
2518
+ }>, "many">>;
2519
+ recentMovements: z.ZodOptional<z.ZodArray<z.ZodObject<{
2520
+ id: z.ZodString;
2521
+ movementDate: z.ZodString;
2522
+ movementType: z.ZodEnum<["transfer_in", "transfer_out", "sale", "purchase", "death", "birth"]>;
2523
+ fromLocation: z.ZodNullable<z.ZodString>;
2524
+ toLocation: z.ZodNullable<z.ZodString>;
2525
+ reason: z.ZodNullable<z.ZodString>;
2526
+ transactionValue: z.ZodNullable<z.ZodNumber>;
2527
+ currency: z.ZodDefault<z.ZodString>;
2528
+ buyerSeller: z.ZodNullable<z.ZodString>;
2529
+ documentRef: z.ZodNullable<z.ZodString>;
2530
+ notes: z.ZodNullable<z.ZodString>;
2531
+ }, "strip", z.ZodTypeAny, {
2532
+ id: string;
2533
+ currency: string;
2534
+ notes: string | null;
2535
+ reason: string | null;
2536
+ movementDate: string;
2537
+ movementType: "purchase" | "transfer_in" | "transfer_out" | "sale" | "death" | "birth";
2538
+ fromLocation: string | null;
2539
+ toLocation: string | null;
2540
+ transactionValue: number | null;
2541
+ buyerSeller: string | null;
2542
+ documentRef: string | null;
2543
+ }, {
2544
+ id: string;
2545
+ notes: string | null;
2546
+ reason: string | null;
2547
+ movementDate: string;
2548
+ movementType: "purchase" | "transfer_in" | "transfer_out" | "sale" | "death" | "birth";
2549
+ fromLocation: string | null;
2550
+ toLocation: string | null;
2551
+ transactionValue: number | null;
2552
+ buyerSeller: string | null;
2553
+ documentRef: string | null;
2554
+ currency?: string | undefined;
2555
+ }>, "many">>;
2556
+ } & {
2557
+ createdAt: z.ZodString;
2558
+ updatedAt: z.ZodString;
2559
+ }, "strip", z.ZodTypeAny, {
2560
+ status: "ACTIVE" | "SOLD" | "DECEASED" | "TRANSFERRED" | "QUARANTINE";
2561
+ createdAt: string;
2562
+ updatedAt: string;
2563
+ name: string | null;
2564
+ location: string | null;
2565
+ currency: string;
2566
+ farmId: string;
2567
+ category: "OTHER" | "CATTLE" | "POULTRY" | "SHEEP" | "GOAT" | "PIG" | "FISH" | "RABBIT";
2568
+ notes: string | null;
2569
+ purchasePrice: number | null;
2570
+ currentValue: number | null;
2571
+ weight: number | null;
2572
+ color: string | null;
2573
+ weightUnit: string;
2574
+ tagId: string;
2575
+ breed: string | null;
2576
+ sex: "MALE" | "FEMALE" | "UNKNOWN";
2577
+ dateOfBirth: string | null;
2578
+ acquisitionDate: string;
2579
+ acquisitionType: "born" | "purchased" | "transferred" | "gifted";
2580
+ lastWeighDate: string | null;
2581
+ sireId: string | null;
2582
+ damId: string | null;
2583
+ statusDate: string;
2584
+ statusNote: string | null;
2585
+ groupId: string | null;
2586
+ sireName?: string | null | undefined;
2587
+ damName?: string | null | undefined;
2588
+ healthRecords?: {
2589
+ id: string;
2590
+ description: string;
2591
+ currency: string;
2592
+ notes: string | null;
2593
+ cost: number | null;
2594
+ treatment: string | null;
2595
+ recordDate: string;
2596
+ recordType: "other" | "vaccination" | "treatment" | "checkup" | "deworming" | "surgery";
2597
+ diagnosis: string | null;
2598
+ medication: string | null;
2599
+ dosage: string | null;
2600
+ administeredBy: string | null;
2601
+ vaccineName: string | null;
2602
+ batchNumber: string | null;
2603
+ nextDueDate: string | null;
2604
+ followUpRequired: boolean;
2605
+ followUpDate: string | null;
2606
+ followUpNotes: string | null;
2607
+ }[] | undefined;
2608
+ weightRecords?: {
2609
+ id: string;
2610
+ notes: string | null;
2611
+ weight: number;
2612
+ recordDate: string;
2613
+ weightUnit: string;
2614
+ }[] | undefined;
2615
+ recentMovements?: {
2616
+ id: string;
2617
+ currency: string;
2618
+ notes: string | null;
2619
+ reason: string | null;
2620
+ movementDate: string;
2621
+ movementType: "purchase" | "transfer_in" | "transfer_out" | "sale" | "death" | "birth";
2622
+ fromLocation: string | null;
2623
+ toLocation: string | null;
2624
+ transactionValue: number | null;
2625
+ buyerSeller: string | null;
2626
+ documentRef: string | null;
2627
+ }[] | undefined;
2628
+ }, {
2629
+ status: "ACTIVE" | "SOLD" | "DECEASED" | "TRANSFERRED" | "QUARANTINE";
2630
+ createdAt: string;
2631
+ updatedAt: string;
2632
+ name: string | null;
2633
+ location: string | null;
2634
+ farmId: string;
2635
+ category: "OTHER" | "CATTLE" | "POULTRY" | "SHEEP" | "GOAT" | "PIG" | "FISH" | "RABBIT";
2636
+ notes: string | null;
2637
+ purchasePrice: number | null;
2638
+ currentValue: number | null;
2639
+ weight: number | null;
2640
+ color: string | null;
2641
+ tagId: string;
2642
+ breed: string | null;
2643
+ sex: "MALE" | "FEMALE" | "UNKNOWN";
2644
+ dateOfBirth: string | null;
2645
+ acquisitionDate: string;
2646
+ acquisitionType: "born" | "purchased" | "transferred" | "gifted";
2647
+ lastWeighDate: string | null;
2648
+ sireId: string | null;
2649
+ damId: string | null;
2650
+ statusDate: string;
2651
+ statusNote: string | null;
2652
+ groupId: string | null;
2653
+ currency?: string | undefined;
2654
+ weightUnit?: string | undefined;
2655
+ sireName?: string | null | undefined;
2656
+ damName?: string | null | undefined;
2657
+ healthRecords?: {
2658
+ id: string;
2659
+ description: string;
2660
+ notes: string | null;
2661
+ cost: number | null;
2662
+ treatment: string | null;
2663
+ recordDate: string;
2664
+ recordType: "other" | "vaccination" | "treatment" | "checkup" | "deworming" | "surgery";
2665
+ diagnosis: string | null;
2666
+ medication: string | null;
2667
+ dosage: string | null;
2668
+ administeredBy: string | null;
2669
+ vaccineName: string | null;
2670
+ batchNumber: string | null;
2671
+ nextDueDate: string | null;
2672
+ followUpDate: string | null;
2673
+ followUpNotes: string | null;
2674
+ currency?: string | undefined;
2675
+ followUpRequired?: boolean | undefined;
2676
+ }[] | undefined;
2677
+ weightRecords?: {
2678
+ id: string;
2679
+ notes: string | null;
2680
+ weight: number;
2681
+ recordDate: string;
2682
+ weightUnit?: string | undefined;
2683
+ }[] | undefined;
2684
+ recentMovements?: {
2685
+ id: string;
2686
+ notes: string | null;
2687
+ reason: string | null;
2688
+ movementDate: string;
2689
+ movementType: "purchase" | "transfer_in" | "transfer_out" | "sale" | "death" | "birth";
2690
+ fromLocation: string | null;
2691
+ toLocation: string | null;
2692
+ transactionValue: number | null;
2693
+ buyerSeller: string | null;
2694
+ documentRef: string | null;
2695
+ currency?: string | undefined;
2696
+ }[] | undefined;
2697
+ }>;
2698
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2699
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2700
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2701
+ }, "strip", z.ZodTypeAny, {
2702
+ type: string;
2703
+ id: string;
2704
+ attributes: {
2705
+ status: "ACTIVE" | "SOLD" | "DECEASED" | "TRANSFERRED" | "QUARANTINE";
2706
+ createdAt: string;
2707
+ updatedAt: string;
2708
+ name: string | null;
2709
+ location: string | null;
2710
+ currency: string;
2711
+ farmId: string;
2712
+ category: "OTHER" | "CATTLE" | "POULTRY" | "SHEEP" | "GOAT" | "PIG" | "FISH" | "RABBIT";
2713
+ notes: string | null;
2714
+ purchasePrice: number | null;
2715
+ currentValue: number | null;
2716
+ weight: number | null;
2717
+ color: string | null;
2718
+ weightUnit: string;
2719
+ tagId: string;
2720
+ breed: string | null;
2721
+ sex: "MALE" | "FEMALE" | "UNKNOWN";
2722
+ dateOfBirth: string | null;
2723
+ acquisitionDate: string;
2724
+ acquisitionType: "born" | "purchased" | "transferred" | "gifted";
2725
+ lastWeighDate: string | null;
2726
+ sireId: string | null;
2727
+ damId: string | null;
2728
+ statusDate: string;
2729
+ statusNote: string | null;
2730
+ groupId: string | null;
2731
+ sireName?: string | null | undefined;
2732
+ damName?: string | null | undefined;
2733
+ healthRecords?: {
2734
+ id: string;
2735
+ description: string;
2736
+ currency: string;
2737
+ notes: string | null;
2738
+ cost: number | null;
2739
+ treatment: string | null;
2740
+ recordDate: string;
2741
+ recordType: "other" | "vaccination" | "treatment" | "checkup" | "deworming" | "surgery";
2742
+ diagnosis: string | null;
2743
+ medication: string | null;
2744
+ dosage: string | null;
2745
+ administeredBy: string | null;
2746
+ vaccineName: string | null;
2747
+ batchNumber: string | null;
2748
+ nextDueDate: string | null;
2749
+ followUpRequired: boolean;
2750
+ followUpDate: string | null;
2751
+ followUpNotes: string | null;
2752
+ }[] | undefined;
2753
+ weightRecords?: {
2754
+ id: string;
2755
+ notes: string | null;
2756
+ weight: number;
2757
+ recordDate: string;
2758
+ weightUnit: string;
2759
+ }[] | undefined;
2760
+ recentMovements?: {
2761
+ id: string;
2762
+ currency: string;
2763
+ notes: string | null;
2764
+ reason: string | null;
2765
+ movementDate: string;
2766
+ movementType: "purchase" | "transfer_in" | "transfer_out" | "sale" | "death" | "birth";
2767
+ fromLocation: string | null;
2768
+ toLocation: string | null;
2769
+ transactionValue: number | null;
2770
+ buyerSeller: string | null;
2771
+ documentRef: string | null;
2772
+ }[] | undefined;
2773
+ };
2774
+ relationships?: Record<string, unknown> | undefined;
2775
+ links?: Record<string, string> | undefined;
2776
+ meta?: Record<string, unknown> | undefined;
2777
+ }, {
2778
+ type: string;
2779
+ id: string;
2780
+ attributes: {
2781
+ status: "ACTIVE" | "SOLD" | "DECEASED" | "TRANSFERRED" | "QUARANTINE";
2782
+ createdAt: string;
2783
+ updatedAt: string;
2784
+ name: string | null;
2785
+ location: string | null;
2786
+ farmId: string;
2787
+ category: "OTHER" | "CATTLE" | "POULTRY" | "SHEEP" | "GOAT" | "PIG" | "FISH" | "RABBIT";
2788
+ notes: string | null;
2789
+ purchasePrice: number | null;
2790
+ currentValue: number | null;
2791
+ weight: number | null;
2792
+ color: string | null;
2793
+ tagId: string;
2794
+ breed: string | null;
2795
+ sex: "MALE" | "FEMALE" | "UNKNOWN";
2796
+ dateOfBirth: string | null;
2797
+ acquisitionDate: string;
2798
+ acquisitionType: "born" | "purchased" | "transferred" | "gifted";
2799
+ lastWeighDate: string | null;
2800
+ sireId: string | null;
2801
+ damId: string | null;
2802
+ statusDate: string;
2803
+ statusNote: string | null;
2804
+ groupId: string | null;
2805
+ currency?: string | undefined;
2806
+ weightUnit?: string | undefined;
2807
+ sireName?: string | null | undefined;
2808
+ damName?: string | null | undefined;
2809
+ healthRecords?: {
2810
+ id: string;
2811
+ description: string;
2812
+ notes: string | null;
2813
+ cost: number | null;
2814
+ treatment: string | null;
2815
+ recordDate: string;
2816
+ recordType: "other" | "vaccination" | "treatment" | "checkup" | "deworming" | "surgery";
2817
+ diagnosis: string | null;
2818
+ medication: string | null;
2819
+ dosage: string | null;
2820
+ administeredBy: string | null;
2821
+ vaccineName: string | null;
2822
+ batchNumber: string | null;
2823
+ nextDueDate: string | null;
2824
+ followUpDate: string | null;
2825
+ followUpNotes: string | null;
2826
+ currency?: string | undefined;
2827
+ followUpRequired?: boolean | undefined;
2828
+ }[] | undefined;
2829
+ weightRecords?: {
2830
+ id: string;
2831
+ notes: string | null;
2832
+ weight: number;
2833
+ recordDate: string;
2834
+ weightUnit?: string | undefined;
2835
+ }[] | undefined;
2836
+ recentMovements?: {
2837
+ id: string;
2838
+ notes: string | null;
2839
+ reason: string | null;
2840
+ movementDate: string;
2841
+ movementType: "purchase" | "transfer_in" | "transfer_out" | "sale" | "death" | "birth";
2842
+ fromLocation: string | null;
2843
+ toLocation: string | null;
2844
+ transactionValue: number | null;
2845
+ buyerSeller: string | null;
2846
+ documentRef: string | null;
2847
+ currency?: string | undefined;
2848
+ }[] | undefined;
2849
+ };
2850
+ relationships?: Record<string, unknown> | undefined;
2851
+ links?: Record<string, string> | undefined;
2852
+ meta?: Record<string, unknown> | undefined;
2853
+ }>, "many">;
2854
+ included: z.ZodOptional<z.ZodArray<z.ZodObject<{
2855
+ type: z.ZodString;
2856
+ id: z.ZodString;
2857
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2858
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2859
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2860
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2861
+ }, "strip", z.ZodTypeAny, {
2862
+ type: string;
2863
+ id: string;
2864
+ attributes?: Record<string, unknown> | undefined;
2865
+ relationships?: Record<string, unknown> | undefined;
2866
+ links?: Record<string, string> | undefined;
2867
+ meta?: Record<string, unknown> | undefined;
2868
+ }, {
2869
+ type: string;
2870
+ id: string;
2871
+ attributes?: Record<string, unknown> | undefined;
2872
+ relationships?: Record<string, unknown> | undefined;
2873
+ links?: Record<string, string> | undefined;
2874
+ meta?: Record<string, unknown> | undefined;
2875
+ }>, "many">>;
2876
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2877
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2878
+ }, "strip", z.ZodTypeAny, {
2879
+ data: {
2880
+ type: string;
2881
+ id: string;
2882
+ attributes: {
2883
+ status: "ACTIVE" | "SOLD" | "DECEASED" | "TRANSFERRED" | "QUARANTINE";
2884
+ createdAt: string;
2885
+ updatedAt: string;
2886
+ name: string | null;
2887
+ location: string | null;
2888
+ currency: string;
2889
+ farmId: string;
2890
+ category: "OTHER" | "CATTLE" | "POULTRY" | "SHEEP" | "GOAT" | "PIG" | "FISH" | "RABBIT";
2891
+ notes: string | null;
2892
+ purchasePrice: number | null;
2893
+ currentValue: number | null;
2894
+ weight: number | null;
2895
+ color: string | null;
2896
+ weightUnit: string;
2897
+ tagId: string;
2898
+ breed: string | null;
2899
+ sex: "MALE" | "FEMALE" | "UNKNOWN";
2900
+ dateOfBirth: string | null;
2901
+ acquisitionDate: string;
2902
+ acquisitionType: "born" | "purchased" | "transferred" | "gifted";
2903
+ lastWeighDate: string | null;
2904
+ sireId: string | null;
2905
+ damId: string | null;
2906
+ statusDate: string;
2907
+ statusNote: string | null;
2908
+ groupId: string | null;
2909
+ sireName?: string | null | undefined;
2910
+ damName?: string | null | undefined;
2911
+ healthRecords?: {
2912
+ id: string;
2913
+ description: string;
2914
+ currency: string;
2915
+ notes: string | null;
2916
+ cost: number | null;
2917
+ treatment: string | null;
2918
+ recordDate: string;
2919
+ recordType: "other" | "vaccination" | "treatment" | "checkup" | "deworming" | "surgery";
2920
+ diagnosis: string | null;
2921
+ medication: string | null;
2922
+ dosage: string | null;
2923
+ administeredBy: string | null;
2924
+ vaccineName: string | null;
2925
+ batchNumber: string | null;
2926
+ nextDueDate: string | null;
2927
+ followUpRequired: boolean;
2928
+ followUpDate: string | null;
2929
+ followUpNotes: string | null;
2930
+ }[] | undefined;
2931
+ weightRecords?: {
2932
+ id: string;
2933
+ notes: string | null;
2934
+ weight: number;
2935
+ recordDate: string;
2936
+ weightUnit: string;
2937
+ }[] | undefined;
2938
+ recentMovements?: {
2939
+ id: string;
2940
+ currency: string;
2941
+ notes: string | null;
2942
+ reason: string | null;
2943
+ movementDate: string;
2944
+ movementType: "purchase" | "transfer_in" | "transfer_out" | "sale" | "death" | "birth";
2945
+ fromLocation: string | null;
2946
+ toLocation: string | null;
2947
+ transactionValue: number | null;
2948
+ buyerSeller: string | null;
2949
+ documentRef: string | null;
2950
+ }[] | undefined;
2951
+ };
2952
+ relationships?: Record<string, unknown> | undefined;
2953
+ links?: Record<string, string> | undefined;
2954
+ meta?: Record<string, unknown> | undefined;
2955
+ }[];
2956
+ links?: Record<string, string> | undefined;
2957
+ meta?: Record<string, unknown> | undefined;
2958
+ included?: {
2959
+ type: string;
2960
+ id: string;
2961
+ attributes?: Record<string, unknown> | undefined;
2962
+ relationships?: Record<string, unknown> | undefined;
2963
+ links?: Record<string, string> | undefined;
2964
+ meta?: Record<string, unknown> | undefined;
2965
+ }[] | undefined;
2966
+ }, {
2967
+ data: {
2968
+ type: string;
2969
+ id: string;
2970
+ attributes: {
2971
+ status: "ACTIVE" | "SOLD" | "DECEASED" | "TRANSFERRED" | "QUARANTINE";
2972
+ createdAt: string;
2973
+ updatedAt: string;
2974
+ name: string | null;
2975
+ location: string | null;
2976
+ farmId: string;
2977
+ category: "OTHER" | "CATTLE" | "POULTRY" | "SHEEP" | "GOAT" | "PIG" | "FISH" | "RABBIT";
2978
+ notes: string | null;
2979
+ purchasePrice: number | null;
2980
+ currentValue: number | null;
2981
+ weight: number | null;
2982
+ color: string | null;
2983
+ tagId: string;
2984
+ breed: string | null;
2985
+ sex: "MALE" | "FEMALE" | "UNKNOWN";
2986
+ dateOfBirth: string | null;
2987
+ acquisitionDate: string;
2988
+ acquisitionType: "born" | "purchased" | "transferred" | "gifted";
2989
+ lastWeighDate: string | null;
2990
+ sireId: string | null;
2991
+ damId: string | null;
2992
+ statusDate: string;
2993
+ statusNote: string | null;
2994
+ groupId: string | null;
2995
+ currency?: string | undefined;
2996
+ weightUnit?: string | undefined;
2997
+ sireName?: string | null | undefined;
2998
+ damName?: string | null | undefined;
2999
+ healthRecords?: {
3000
+ id: string;
3001
+ description: string;
3002
+ notes: string | null;
3003
+ cost: number | null;
3004
+ treatment: string | null;
3005
+ recordDate: string;
3006
+ recordType: "other" | "vaccination" | "treatment" | "checkup" | "deworming" | "surgery";
3007
+ diagnosis: string | null;
3008
+ medication: string | null;
3009
+ dosage: string | null;
3010
+ administeredBy: string | null;
3011
+ vaccineName: string | null;
3012
+ batchNumber: string | null;
3013
+ nextDueDate: string | null;
3014
+ followUpDate: string | null;
3015
+ followUpNotes: string | null;
3016
+ currency?: string | undefined;
3017
+ followUpRequired?: boolean | undefined;
3018
+ }[] | undefined;
3019
+ weightRecords?: {
3020
+ id: string;
3021
+ notes: string | null;
3022
+ weight: number;
3023
+ recordDate: string;
3024
+ weightUnit?: string | undefined;
3025
+ }[] | undefined;
3026
+ recentMovements?: {
3027
+ id: string;
3028
+ notes: string | null;
3029
+ reason: string | null;
3030
+ movementDate: string;
3031
+ movementType: "purchase" | "transfer_in" | "transfer_out" | "sale" | "death" | "birth";
3032
+ fromLocation: string | null;
3033
+ toLocation: string | null;
3034
+ transactionValue: number | null;
3035
+ buyerSeller: string | null;
3036
+ documentRef: string | null;
3037
+ currency?: string | undefined;
3038
+ }[] | undefined;
3039
+ };
3040
+ relationships?: Record<string, unknown> | undefined;
3041
+ links?: Record<string, string> | undefined;
3042
+ meta?: Record<string, unknown> | undefined;
3043
+ }[];
3044
+ links?: Record<string, string> | undefined;
3045
+ meta?: Record<string, unknown> | undefined;
3046
+ included?: {
3047
+ type: string;
3048
+ id: string;
3049
+ attributes?: Record<string, unknown> | undefined;
3050
+ relationships?: Record<string, unknown> | undefined;
3051
+ links?: Record<string, string> | undefined;
3052
+ meta?: Record<string, unknown> | undefined;
3053
+ }[] | undefined;
3054
+ }>;
3055
+ export declare const healthRecordResponseSchema: z.ZodObject<{
3056
+ data: z.ZodObject<{
3057
+ type: z.ZodLiteral<string>;
3058
+ id: z.ZodString;
3059
+ attributes: z.ZodObject<{
3060
+ id: z.ZodString;
3061
+ recordDate: z.ZodString;
3062
+ recordType: z.ZodEnum<["vaccination", "treatment", "checkup", "deworming", "surgery", "other"]>;
3063
+ description: z.ZodString;
3064
+ diagnosis: z.ZodNullable<z.ZodString>;
3065
+ treatment: z.ZodNullable<z.ZodString>;
3066
+ medication: z.ZodNullable<z.ZodString>;
3067
+ dosage: z.ZodNullable<z.ZodString>;
3068
+ administeredBy: z.ZodNullable<z.ZodString>;
3069
+ vaccineName: z.ZodNullable<z.ZodString>;
3070
+ batchNumber: z.ZodNullable<z.ZodString>;
3071
+ nextDueDate: z.ZodNullable<z.ZodString>;
3072
+ cost: z.ZodNullable<z.ZodNumber>;
3073
+ currency: z.ZodDefault<z.ZodString>;
3074
+ followUpRequired: z.ZodDefault<z.ZodBoolean>;
3075
+ followUpDate: z.ZodNullable<z.ZodString>;
3076
+ followUpNotes: z.ZodNullable<z.ZodString>;
3077
+ notes: z.ZodNullable<z.ZodString>;
3078
+ }, "strip", z.ZodTypeAny, {
3079
+ id: string;
3080
+ description: string;
3081
+ currency: string;
3082
+ notes: string | null;
3083
+ cost: number | null;
3084
+ treatment: string | null;
3085
+ recordDate: string;
3086
+ recordType: "other" | "vaccination" | "treatment" | "checkup" | "deworming" | "surgery";
3087
+ diagnosis: string | null;
3088
+ medication: string | null;
3089
+ dosage: string | null;
3090
+ administeredBy: string | null;
3091
+ vaccineName: string | null;
3092
+ batchNumber: string | null;
3093
+ nextDueDate: string | null;
3094
+ followUpRequired: boolean;
3095
+ followUpDate: string | null;
3096
+ followUpNotes: string | null;
3097
+ }, {
3098
+ id: string;
3099
+ description: string;
3100
+ notes: string | null;
3101
+ cost: number | null;
3102
+ treatment: string | null;
3103
+ recordDate: string;
3104
+ recordType: "other" | "vaccination" | "treatment" | "checkup" | "deworming" | "surgery";
3105
+ diagnosis: string | null;
3106
+ medication: string | null;
3107
+ dosage: string | null;
3108
+ administeredBy: string | null;
3109
+ vaccineName: string | null;
3110
+ batchNumber: string | null;
3111
+ nextDueDate: string | null;
3112
+ followUpDate: string | null;
3113
+ followUpNotes: string | null;
3114
+ currency?: string | undefined;
3115
+ followUpRequired?: boolean | undefined;
3116
+ }>;
3117
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3118
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3119
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3120
+ }, "strip", z.ZodTypeAny, {
3121
+ type: string;
3122
+ id: string;
3123
+ attributes: {
3124
+ id: string;
3125
+ description: string;
3126
+ currency: string;
3127
+ notes: string | null;
3128
+ cost: number | null;
3129
+ treatment: string | null;
3130
+ recordDate: string;
3131
+ recordType: "other" | "vaccination" | "treatment" | "checkup" | "deworming" | "surgery";
3132
+ diagnosis: string | null;
3133
+ medication: string | null;
3134
+ dosage: string | null;
3135
+ administeredBy: string | null;
3136
+ vaccineName: string | null;
3137
+ batchNumber: string | null;
3138
+ nextDueDate: string | null;
3139
+ followUpRequired: boolean;
3140
+ followUpDate: string | null;
3141
+ followUpNotes: string | null;
3142
+ };
3143
+ relationships?: Record<string, unknown> | undefined;
3144
+ links?: Record<string, string> | undefined;
3145
+ meta?: Record<string, unknown> | undefined;
3146
+ }, {
3147
+ type: string;
3148
+ id: string;
3149
+ attributes: {
3150
+ id: string;
3151
+ description: string;
3152
+ notes: string | null;
3153
+ cost: number | null;
3154
+ treatment: string | null;
3155
+ recordDate: string;
3156
+ recordType: "other" | "vaccination" | "treatment" | "checkup" | "deworming" | "surgery";
3157
+ diagnosis: string | null;
3158
+ medication: string | null;
3159
+ dosage: string | null;
3160
+ administeredBy: string | null;
3161
+ vaccineName: string | null;
3162
+ batchNumber: string | null;
3163
+ nextDueDate: string | null;
3164
+ followUpDate: string | null;
3165
+ followUpNotes: string | null;
3166
+ currency?: string | undefined;
3167
+ followUpRequired?: boolean | undefined;
3168
+ };
3169
+ relationships?: Record<string, unknown> | undefined;
3170
+ links?: Record<string, string> | undefined;
3171
+ meta?: Record<string, unknown> | undefined;
3172
+ }>;
3173
+ included: z.ZodOptional<z.ZodArray<z.ZodObject<{
3174
+ type: z.ZodString;
3175
+ id: z.ZodString;
3176
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3177
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3178
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3179
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3180
+ }, "strip", z.ZodTypeAny, {
3181
+ type: string;
3182
+ id: string;
3183
+ attributes?: Record<string, unknown> | undefined;
3184
+ relationships?: Record<string, unknown> | undefined;
3185
+ links?: Record<string, string> | undefined;
3186
+ meta?: Record<string, unknown> | undefined;
3187
+ }, {
3188
+ type: string;
3189
+ id: string;
3190
+ attributes?: Record<string, unknown> | undefined;
3191
+ relationships?: Record<string, unknown> | undefined;
3192
+ links?: Record<string, string> | undefined;
3193
+ meta?: Record<string, unknown> | undefined;
3194
+ }>, "many">>;
3195
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3196
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3197
+ }, "strip", z.ZodTypeAny, {
3198
+ data: {
3199
+ type: string;
3200
+ id: string;
3201
+ attributes: {
3202
+ id: string;
3203
+ description: string;
3204
+ currency: string;
3205
+ notes: string | null;
3206
+ cost: number | null;
3207
+ treatment: string | null;
3208
+ recordDate: string;
3209
+ recordType: "other" | "vaccination" | "treatment" | "checkup" | "deworming" | "surgery";
3210
+ diagnosis: string | null;
3211
+ medication: string | null;
3212
+ dosage: string | null;
3213
+ administeredBy: string | null;
3214
+ vaccineName: string | null;
3215
+ batchNumber: string | null;
3216
+ nextDueDate: string | null;
3217
+ followUpRequired: boolean;
3218
+ followUpDate: string | null;
3219
+ followUpNotes: string | null;
3220
+ };
3221
+ relationships?: Record<string, unknown> | undefined;
3222
+ links?: Record<string, string> | undefined;
3223
+ meta?: Record<string, unknown> | undefined;
3224
+ };
3225
+ links?: Record<string, string> | undefined;
3226
+ meta?: Record<string, unknown> | undefined;
3227
+ included?: {
3228
+ type: string;
3229
+ id: string;
3230
+ attributes?: Record<string, unknown> | undefined;
3231
+ relationships?: Record<string, unknown> | undefined;
3232
+ links?: Record<string, string> | undefined;
3233
+ meta?: Record<string, unknown> | undefined;
3234
+ }[] | undefined;
3235
+ }, {
3236
+ data: {
3237
+ type: string;
3238
+ id: string;
3239
+ attributes: {
3240
+ id: string;
3241
+ description: string;
3242
+ notes: string | null;
3243
+ cost: number | null;
3244
+ treatment: string | null;
3245
+ recordDate: string;
3246
+ recordType: "other" | "vaccination" | "treatment" | "checkup" | "deworming" | "surgery";
3247
+ diagnosis: string | null;
3248
+ medication: string | null;
3249
+ dosage: string | null;
3250
+ administeredBy: string | null;
3251
+ vaccineName: string | null;
3252
+ batchNumber: string | null;
3253
+ nextDueDate: string | null;
3254
+ followUpDate: string | null;
3255
+ followUpNotes: string | null;
3256
+ currency?: string | undefined;
3257
+ followUpRequired?: boolean | undefined;
3258
+ };
3259
+ relationships?: Record<string, unknown> | undefined;
3260
+ links?: Record<string, string> | undefined;
3261
+ meta?: Record<string, unknown> | undefined;
3262
+ };
3263
+ links?: Record<string, string> | undefined;
3264
+ meta?: Record<string, unknown> | undefined;
3265
+ included?: {
3266
+ type: string;
3267
+ id: string;
3268
+ attributes?: Record<string, unknown> | undefined;
3269
+ relationships?: Record<string, unknown> | undefined;
3270
+ links?: Record<string, string> | undefined;
3271
+ meta?: Record<string, unknown> | undefined;
3272
+ }[] | undefined;
3273
+ }>;
3274
+ export declare const healthRecordListResponseSchema: z.ZodObject<{
3275
+ data: z.ZodArray<z.ZodObject<{
3276
+ type: z.ZodLiteral<string>;
3277
+ id: z.ZodString;
3278
+ attributes: z.ZodObject<{
3279
+ id: z.ZodString;
3280
+ recordDate: z.ZodString;
3281
+ recordType: z.ZodEnum<["vaccination", "treatment", "checkup", "deworming", "surgery", "other"]>;
3282
+ description: z.ZodString;
3283
+ diagnosis: z.ZodNullable<z.ZodString>;
3284
+ treatment: z.ZodNullable<z.ZodString>;
3285
+ medication: z.ZodNullable<z.ZodString>;
3286
+ dosage: z.ZodNullable<z.ZodString>;
3287
+ administeredBy: z.ZodNullable<z.ZodString>;
3288
+ vaccineName: z.ZodNullable<z.ZodString>;
3289
+ batchNumber: z.ZodNullable<z.ZodString>;
3290
+ nextDueDate: z.ZodNullable<z.ZodString>;
3291
+ cost: z.ZodNullable<z.ZodNumber>;
3292
+ currency: z.ZodDefault<z.ZodString>;
3293
+ followUpRequired: z.ZodDefault<z.ZodBoolean>;
3294
+ followUpDate: z.ZodNullable<z.ZodString>;
3295
+ followUpNotes: z.ZodNullable<z.ZodString>;
3296
+ notes: z.ZodNullable<z.ZodString>;
3297
+ }, "strip", z.ZodTypeAny, {
3298
+ id: string;
3299
+ description: string;
3300
+ currency: string;
3301
+ notes: string | null;
3302
+ cost: number | null;
3303
+ treatment: string | null;
3304
+ recordDate: string;
3305
+ recordType: "other" | "vaccination" | "treatment" | "checkup" | "deworming" | "surgery";
3306
+ diagnosis: string | null;
3307
+ medication: string | null;
3308
+ dosage: string | null;
3309
+ administeredBy: string | null;
3310
+ vaccineName: string | null;
3311
+ batchNumber: string | null;
3312
+ nextDueDate: string | null;
3313
+ followUpRequired: boolean;
3314
+ followUpDate: string | null;
3315
+ followUpNotes: string | null;
3316
+ }, {
3317
+ id: string;
3318
+ description: string;
3319
+ notes: string | null;
3320
+ cost: number | null;
3321
+ treatment: string | null;
3322
+ recordDate: string;
3323
+ recordType: "other" | "vaccination" | "treatment" | "checkup" | "deworming" | "surgery";
3324
+ diagnosis: string | null;
3325
+ medication: string | null;
3326
+ dosage: string | null;
3327
+ administeredBy: string | null;
3328
+ vaccineName: string | null;
3329
+ batchNumber: string | null;
3330
+ nextDueDate: string | null;
3331
+ followUpDate: string | null;
3332
+ followUpNotes: string | null;
3333
+ currency?: string | undefined;
3334
+ followUpRequired?: boolean | undefined;
3335
+ }>;
3336
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3337
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3338
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3339
+ }, "strip", z.ZodTypeAny, {
3340
+ type: string;
3341
+ id: string;
3342
+ attributes: {
3343
+ id: string;
3344
+ description: string;
3345
+ currency: string;
3346
+ notes: string | null;
3347
+ cost: number | null;
3348
+ treatment: string | null;
3349
+ recordDate: string;
3350
+ recordType: "other" | "vaccination" | "treatment" | "checkup" | "deworming" | "surgery";
3351
+ diagnosis: string | null;
3352
+ medication: string | null;
3353
+ dosage: string | null;
3354
+ administeredBy: string | null;
3355
+ vaccineName: string | null;
3356
+ batchNumber: string | null;
3357
+ nextDueDate: string | null;
3358
+ followUpRequired: boolean;
3359
+ followUpDate: string | null;
3360
+ followUpNotes: string | null;
3361
+ };
3362
+ relationships?: Record<string, unknown> | undefined;
3363
+ links?: Record<string, string> | undefined;
3364
+ meta?: Record<string, unknown> | undefined;
3365
+ }, {
3366
+ type: string;
3367
+ id: string;
3368
+ attributes: {
3369
+ id: string;
3370
+ description: string;
3371
+ notes: string | null;
3372
+ cost: number | null;
3373
+ treatment: string | null;
3374
+ recordDate: string;
3375
+ recordType: "other" | "vaccination" | "treatment" | "checkup" | "deworming" | "surgery";
3376
+ diagnosis: string | null;
3377
+ medication: string | null;
3378
+ dosage: string | null;
3379
+ administeredBy: string | null;
3380
+ vaccineName: string | null;
3381
+ batchNumber: string | null;
3382
+ nextDueDate: string | null;
3383
+ followUpDate: string | null;
3384
+ followUpNotes: string | null;
3385
+ currency?: string | undefined;
3386
+ followUpRequired?: boolean | undefined;
3387
+ };
3388
+ relationships?: Record<string, unknown> | undefined;
3389
+ links?: Record<string, string> | undefined;
3390
+ meta?: Record<string, unknown> | undefined;
3391
+ }>, "many">;
3392
+ included: z.ZodOptional<z.ZodArray<z.ZodObject<{
3393
+ type: z.ZodString;
3394
+ id: z.ZodString;
3395
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3396
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3397
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3398
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3399
+ }, "strip", z.ZodTypeAny, {
3400
+ type: string;
3401
+ id: string;
3402
+ attributes?: Record<string, unknown> | undefined;
3403
+ relationships?: Record<string, unknown> | undefined;
3404
+ links?: Record<string, string> | undefined;
3405
+ meta?: Record<string, unknown> | undefined;
3406
+ }, {
3407
+ type: string;
3408
+ id: string;
3409
+ attributes?: Record<string, unknown> | undefined;
3410
+ relationships?: Record<string, unknown> | undefined;
3411
+ links?: Record<string, string> | undefined;
3412
+ meta?: Record<string, unknown> | undefined;
3413
+ }>, "many">>;
3414
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3415
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3416
+ }, "strip", z.ZodTypeAny, {
3417
+ data: {
3418
+ type: string;
3419
+ id: string;
3420
+ attributes: {
3421
+ id: string;
3422
+ description: string;
3423
+ currency: string;
3424
+ notes: string | null;
3425
+ cost: number | null;
3426
+ treatment: string | null;
3427
+ recordDate: string;
3428
+ recordType: "other" | "vaccination" | "treatment" | "checkup" | "deworming" | "surgery";
3429
+ diagnosis: string | null;
3430
+ medication: string | null;
3431
+ dosage: string | null;
3432
+ administeredBy: string | null;
3433
+ vaccineName: string | null;
3434
+ batchNumber: string | null;
3435
+ nextDueDate: string | null;
3436
+ followUpRequired: boolean;
3437
+ followUpDate: string | null;
3438
+ followUpNotes: string | null;
3439
+ };
3440
+ relationships?: Record<string, unknown> | undefined;
3441
+ links?: Record<string, string> | undefined;
3442
+ meta?: Record<string, unknown> | undefined;
3443
+ }[];
3444
+ links?: Record<string, string> | undefined;
3445
+ meta?: Record<string, unknown> | undefined;
3446
+ included?: {
3447
+ type: string;
3448
+ id: string;
3449
+ attributes?: Record<string, unknown> | undefined;
3450
+ relationships?: Record<string, unknown> | undefined;
3451
+ links?: Record<string, string> | undefined;
3452
+ meta?: Record<string, unknown> | undefined;
3453
+ }[] | undefined;
3454
+ }, {
3455
+ data: {
3456
+ type: string;
3457
+ id: string;
3458
+ attributes: {
3459
+ id: string;
3460
+ description: string;
3461
+ notes: string | null;
3462
+ cost: number | null;
3463
+ treatment: string | null;
3464
+ recordDate: string;
3465
+ recordType: "other" | "vaccination" | "treatment" | "checkup" | "deworming" | "surgery";
3466
+ diagnosis: string | null;
3467
+ medication: string | null;
3468
+ dosage: string | null;
3469
+ administeredBy: string | null;
3470
+ vaccineName: string | null;
3471
+ batchNumber: string | null;
3472
+ nextDueDate: string | null;
3473
+ followUpDate: string | null;
3474
+ followUpNotes: string | null;
3475
+ currency?: string | undefined;
3476
+ followUpRequired?: boolean | undefined;
3477
+ };
3478
+ relationships?: Record<string, unknown> | undefined;
3479
+ links?: Record<string, string> | undefined;
3480
+ meta?: Record<string, unknown> | undefined;
3481
+ }[];
3482
+ links?: Record<string, string> | undefined;
3483
+ meta?: Record<string, unknown> | undefined;
3484
+ included?: {
3485
+ type: string;
3486
+ id: string;
3487
+ attributes?: Record<string, unknown> | undefined;
3488
+ relationships?: Record<string, unknown> | undefined;
3489
+ links?: Record<string, string> | undefined;
3490
+ meta?: Record<string, unknown> | undefined;
3491
+ }[] | undefined;
3492
+ }>;
3493
+ export declare const weightRecordResponseSchema: z.ZodObject<{
3494
+ data: z.ZodObject<{
3495
+ type: z.ZodLiteral<string>;
3496
+ id: z.ZodString;
3497
+ attributes: z.ZodObject<{
3498
+ id: z.ZodString;
3499
+ recordDate: z.ZodString;
3500
+ weight: z.ZodNumber;
3501
+ weightUnit: z.ZodDefault<z.ZodString>;
3502
+ notes: z.ZodNullable<z.ZodString>;
3503
+ }, "strip", z.ZodTypeAny, {
3504
+ id: string;
3505
+ notes: string | null;
3506
+ weight: number;
3507
+ recordDate: string;
3508
+ weightUnit: string;
3509
+ }, {
3510
+ id: string;
3511
+ notes: string | null;
3512
+ weight: number;
3513
+ recordDate: string;
3514
+ weightUnit?: string | undefined;
3515
+ }>;
3516
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3517
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3518
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3519
+ }, "strip", z.ZodTypeAny, {
3520
+ type: string;
3521
+ id: string;
3522
+ attributes: {
3523
+ id: string;
3524
+ notes: string | null;
3525
+ weight: number;
3526
+ recordDate: string;
3527
+ weightUnit: string;
3528
+ };
3529
+ relationships?: Record<string, unknown> | undefined;
3530
+ links?: Record<string, string> | undefined;
3531
+ meta?: Record<string, unknown> | undefined;
3532
+ }, {
3533
+ type: string;
3534
+ id: string;
3535
+ attributes: {
3536
+ id: string;
3537
+ notes: string | null;
3538
+ weight: number;
3539
+ recordDate: string;
3540
+ weightUnit?: string | undefined;
3541
+ };
3542
+ relationships?: Record<string, unknown> | undefined;
3543
+ links?: Record<string, string> | undefined;
3544
+ meta?: Record<string, unknown> | undefined;
3545
+ }>;
3546
+ included: z.ZodOptional<z.ZodArray<z.ZodObject<{
3547
+ type: z.ZodString;
3548
+ id: z.ZodString;
3549
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3550
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3551
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3552
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3553
+ }, "strip", z.ZodTypeAny, {
3554
+ type: string;
3555
+ id: string;
3556
+ attributes?: Record<string, unknown> | undefined;
3557
+ relationships?: Record<string, unknown> | undefined;
3558
+ links?: Record<string, string> | undefined;
3559
+ meta?: Record<string, unknown> | undefined;
3560
+ }, {
3561
+ type: string;
3562
+ id: string;
3563
+ attributes?: Record<string, unknown> | undefined;
3564
+ relationships?: Record<string, unknown> | undefined;
3565
+ links?: Record<string, string> | undefined;
3566
+ meta?: Record<string, unknown> | undefined;
3567
+ }>, "many">>;
3568
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3569
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3570
+ }, "strip", z.ZodTypeAny, {
3571
+ data: {
3572
+ type: string;
3573
+ id: string;
3574
+ attributes: {
3575
+ id: string;
3576
+ notes: string | null;
3577
+ weight: number;
3578
+ recordDate: string;
3579
+ weightUnit: string;
3580
+ };
3581
+ relationships?: Record<string, unknown> | undefined;
3582
+ links?: Record<string, string> | undefined;
3583
+ meta?: Record<string, unknown> | undefined;
3584
+ };
3585
+ links?: Record<string, string> | undefined;
3586
+ meta?: Record<string, unknown> | undefined;
3587
+ included?: {
3588
+ type: string;
3589
+ id: string;
3590
+ attributes?: Record<string, unknown> | undefined;
3591
+ relationships?: Record<string, unknown> | undefined;
3592
+ links?: Record<string, string> | undefined;
3593
+ meta?: Record<string, unknown> | undefined;
3594
+ }[] | undefined;
3595
+ }, {
3596
+ data: {
3597
+ type: string;
3598
+ id: string;
3599
+ attributes: {
3600
+ id: string;
3601
+ notes: string | null;
3602
+ weight: number;
3603
+ recordDate: string;
3604
+ weightUnit?: string | undefined;
3605
+ };
3606
+ relationships?: Record<string, unknown> | undefined;
3607
+ links?: Record<string, string> | undefined;
3608
+ meta?: Record<string, unknown> | undefined;
3609
+ };
3610
+ links?: Record<string, string> | undefined;
3611
+ meta?: Record<string, unknown> | undefined;
3612
+ included?: {
3613
+ type: string;
3614
+ id: string;
3615
+ attributes?: Record<string, unknown> | undefined;
3616
+ relationships?: Record<string, unknown> | undefined;
3617
+ links?: Record<string, string> | undefined;
3618
+ meta?: Record<string, unknown> | undefined;
3619
+ }[] | undefined;
3620
+ }>;
3621
+ export declare const movementRecordResponseSchema: z.ZodObject<{
3622
+ data: z.ZodObject<{
3623
+ type: z.ZodLiteral<string>;
3624
+ id: z.ZodString;
3625
+ attributes: z.ZodObject<{
3626
+ id: z.ZodString;
3627
+ movementDate: z.ZodString;
3628
+ movementType: z.ZodEnum<["transfer_in", "transfer_out", "sale", "purchase", "death", "birth"]>;
3629
+ fromLocation: z.ZodNullable<z.ZodString>;
3630
+ toLocation: z.ZodNullable<z.ZodString>;
3631
+ reason: z.ZodNullable<z.ZodString>;
3632
+ transactionValue: z.ZodNullable<z.ZodNumber>;
3633
+ currency: z.ZodDefault<z.ZodString>;
3634
+ buyerSeller: z.ZodNullable<z.ZodString>;
3635
+ documentRef: z.ZodNullable<z.ZodString>;
3636
+ notes: z.ZodNullable<z.ZodString>;
3637
+ }, "strip", z.ZodTypeAny, {
3638
+ id: string;
3639
+ currency: string;
3640
+ notes: string | null;
3641
+ reason: string | null;
3642
+ movementDate: string;
3643
+ movementType: "purchase" | "transfer_in" | "transfer_out" | "sale" | "death" | "birth";
3644
+ fromLocation: string | null;
3645
+ toLocation: string | null;
3646
+ transactionValue: number | null;
3647
+ buyerSeller: string | null;
3648
+ documentRef: string | null;
3649
+ }, {
3650
+ id: string;
3651
+ notes: string | null;
3652
+ reason: string | null;
3653
+ movementDate: string;
3654
+ movementType: "purchase" | "transfer_in" | "transfer_out" | "sale" | "death" | "birth";
3655
+ fromLocation: string | null;
3656
+ toLocation: string | null;
3657
+ transactionValue: number | null;
3658
+ buyerSeller: string | null;
3659
+ documentRef: string | null;
3660
+ currency?: string | undefined;
3661
+ }>;
3662
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3663
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3664
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3665
+ }, "strip", z.ZodTypeAny, {
3666
+ type: string;
3667
+ id: string;
3668
+ attributes: {
3669
+ id: string;
3670
+ currency: string;
3671
+ notes: string | null;
3672
+ reason: string | null;
3673
+ movementDate: string;
3674
+ movementType: "purchase" | "transfer_in" | "transfer_out" | "sale" | "death" | "birth";
3675
+ fromLocation: string | null;
3676
+ toLocation: string | null;
3677
+ transactionValue: number | null;
3678
+ buyerSeller: string | null;
3679
+ documentRef: string | null;
3680
+ };
3681
+ relationships?: Record<string, unknown> | undefined;
3682
+ links?: Record<string, string> | undefined;
3683
+ meta?: Record<string, unknown> | undefined;
3684
+ }, {
3685
+ type: string;
3686
+ id: string;
3687
+ attributes: {
3688
+ id: string;
3689
+ notes: string | null;
3690
+ reason: string | null;
3691
+ movementDate: string;
3692
+ movementType: "purchase" | "transfer_in" | "transfer_out" | "sale" | "death" | "birth";
3693
+ fromLocation: string | null;
3694
+ toLocation: string | null;
3695
+ transactionValue: number | null;
3696
+ buyerSeller: string | null;
3697
+ documentRef: string | null;
3698
+ currency?: string | undefined;
3699
+ };
3700
+ relationships?: Record<string, unknown> | undefined;
3701
+ links?: Record<string, string> | undefined;
3702
+ meta?: Record<string, unknown> | undefined;
3703
+ }>;
3704
+ included: z.ZodOptional<z.ZodArray<z.ZodObject<{
3705
+ type: z.ZodString;
3706
+ id: z.ZodString;
3707
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3708
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3709
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3710
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3711
+ }, "strip", z.ZodTypeAny, {
3712
+ type: string;
3713
+ id: string;
3714
+ attributes?: Record<string, unknown> | undefined;
3715
+ relationships?: Record<string, unknown> | undefined;
3716
+ links?: Record<string, string> | undefined;
3717
+ meta?: Record<string, unknown> | undefined;
3718
+ }, {
3719
+ type: string;
3720
+ id: string;
3721
+ attributes?: Record<string, unknown> | undefined;
3722
+ relationships?: Record<string, unknown> | undefined;
3723
+ links?: Record<string, string> | undefined;
3724
+ meta?: Record<string, unknown> | undefined;
3725
+ }>, "many">>;
3726
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3727
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3728
+ }, "strip", z.ZodTypeAny, {
3729
+ data: {
3730
+ type: string;
3731
+ id: string;
3732
+ attributes: {
3733
+ id: string;
3734
+ currency: string;
3735
+ notes: string | null;
3736
+ reason: string | null;
3737
+ movementDate: string;
3738
+ movementType: "purchase" | "transfer_in" | "transfer_out" | "sale" | "death" | "birth";
3739
+ fromLocation: string | null;
3740
+ toLocation: string | null;
3741
+ transactionValue: number | null;
3742
+ buyerSeller: string | null;
3743
+ documentRef: string | null;
3744
+ };
3745
+ relationships?: Record<string, unknown> | undefined;
3746
+ links?: Record<string, string> | undefined;
3747
+ meta?: Record<string, unknown> | undefined;
3748
+ };
3749
+ links?: Record<string, string> | undefined;
3750
+ meta?: Record<string, unknown> | undefined;
3751
+ included?: {
3752
+ type: string;
3753
+ id: string;
3754
+ attributes?: Record<string, unknown> | undefined;
3755
+ relationships?: Record<string, unknown> | undefined;
3756
+ links?: Record<string, string> | undefined;
3757
+ meta?: Record<string, unknown> | undefined;
3758
+ }[] | undefined;
3759
+ }, {
3760
+ data: {
3761
+ type: string;
3762
+ id: string;
3763
+ attributes: {
3764
+ id: string;
3765
+ notes: string | null;
3766
+ reason: string | null;
3767
+ movementDate: string;
3768
+ movementType: "purchase" | "transfer_in" | "transfer_out" | "sale" | "death" | "birth";
3769
+ fromLocation: string | null;
3770
+ toLocation: string | null;
3771
+ transactionValue: number | null;
3772
+ buyerSeller: string | null;
3773
+ documentRef: string | null;
3774
+ currency?: string | undefined;
3775
+ };
3776
+ relationships?: Record<string, unknown> | undefined;
3777
+ links?: Record<string, string> | undefined;
3778
+ meta?: Record<string, unknown> | undefined;
3779
+ };
3780
+ links?: Record<string, string> | undefined;
3781
+ meta?: Record<string, unknown> | undefined;
3782
+ included?: {
3783
+ type: string;
3784
+ id: string;
3785
+ attributes?: Record<string, unknown> | undefined;
3786
+ relationships?: Record<string, unknown> | undefined;
3787
+ links?: Record<string, string> | undefined;
3788
+ meta?: Record<string, unknown> | undefined;
3789
+ }[] | undefined;
3790
+ }>;
3791
+ export declare const movementRecordListResponseSchema: z.ZodObject<{
3792
+ data: z.ZodArray<z.ZodObject<{
3793
+ type: z.ZodLiteral<string>;
3794
+ id: z.ZodString;
3795
+ attributes: z.ZodObject<{
3796
+ id: z.ZodString;
3797
+ movementDate: z.ZodString;
3798
+ movementType: z.ZodEnum<["transfer_in", "transfer_out", "sale", "purchase", "death", "birth"]>;
3799
+ fromLocation: z.ZodNullable<z.ZodString>;
3800
+ toLocation: z.ZodNullable<z.ZodString>;
3801
+ reason: z.ZodNullable<z.ZodString>;
3802
+ transactionValue: z.ZodNullable<z.ZodNumber>;
3803
+ currency: z.ZodDefault<z.ZodString>;
3804
+ buyerSeller: z.ZodNullable<z.ZodString>;
3805
+ documentRef: z.ZodNullable<z.ZodString>;
3806
+ notes: z.ZodNullable<z.ZodString>;
3807
+ }, "strip", z.ZodTypeAny, {
3808
+ id: string;
3809
+ currency: string;
3810
+ notes: string | null;
3811
+ reason: string | null;
3812
+ movementDate: string;
3813
+ movementType: "purchase" | "transfer_in" | "transfer_out" | "sale" | "death" | "birth";
3814
+ fromLocation: string | null;
3815
+ toLocation: string | null;
3816
+ transactionValue: number | null;
3817
+ buyerSeller: string | null;
3818
+ documentRef: string | null;
3819
+ }, {
3820
+ id: string;
3821
+ notes: string | null;
3822
+ reason: string | null;
3823
+ movementDate: string;
3824
+ movementType: "purchase" | "transfer_in" | "transfer_out" | "sale" | "death" | "birth";
3825
+ fromLocation: string | null;
3826
+ toLocation: string | null;
3827
+ transactionValue: number | null;
3828
+ buyerSeller: string | null;
3829
+ documentRef: string | null;
3830
+ currency?: string | undefined;
3831
+ }>;
3832
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3833
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3834
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3835
+ }, "strip", z.ZodTypeAny, {
3836
+ type: string;
3837
+ id: string;
3838
+ attributes: {
3839
+ id: string;
3840
+ currency: string;
3841
+ notes: string | null;
3842
+ reason: string | null;
3843
+ movementDate: string;
3844
+ movementType: "purchase" | "transfer_in" | "transfer_out" | "sale" | "death" | "birth";
3845
+ fromLocation: string | null;
3846
+ toLocation: string | null;
3847
+ transactionValue: number | null;
3848
+ buyerSeller: string | null;
3849
+ documentRef: string | null;
3850
+ };
3851
+ relationships?: Record<string, unknown> | undefined;
3852
+ links?: Record<string, string> | undefined;
3853
+ meta?: Record<string, unknown> | undefined;
3854
+ }, {
3855
+ type: string;
3856
+ id: string;
3857
+ attributes: {
3858
+ id: string;
3859
+ notes: string | null;
3860
+ reason: string | null;
3861
+ movementDate: string;
3862
+ movementType: "purchase" | "transfer_in" | "transfer_out" | "sale" | "death" | "birth";
3863
+ fromLocation: string | null;
3864
+ toLocation: string | null;
3865
+ transactionValue: number | null;
3866
+ buyerSeller: string | null;
3867
+ documentRef: string | null;
3868
+ currency?: string | undefined;
3869
+ };
3870
+ relationships?: Record<string, unknown> | undefined;
3871
+ links?: Record<string, string> | undefined;
3872
+ meta?: Record<string, unknown> | undefined;
3873
+ }>, "many">;
3874
+ included: z.ZodOptional<z.ZodArray<z.ZodObject<{
3875
+ type: z.ZodString;
3876
+ id: z.ZodString;
3877
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3878
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3879
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3880
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3881
+ }, "strip", z.ZodTypeAny, {
3882
+ type: string;
3883
+ id: string;
3884
+ attributes?: Record<string, unknown> | undefined;
3885
+ relationships?: Record<string, unknown> | undefined;
3886
+ links?: Record<string, string> | undefined;
3887
+ meta?: Record<string, unknown> | undefined;
3888
+ }, {
3889
+ type: string;
3890
+ id: string;
3891
+ attributes?: Record<string, unknown> | undefined;
3892
+ relationships?: Record<string, unknown> | undefined;
3893
+ links?: Record<string, string> | undefined;
3894
+ meta?: Record<string, unknown> | undefined;
3895
+ }>, "many">>;
3896
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3897
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3898
+ }, "strip", z.ZodTypeAny, {
3899
+ data: {
3900
+ type: string;
3901
+ id: string;
3902
+ attributes: {
3903
+ id: string;
3904
+ currency: string;
3905
+ notes: string | null;
3906
+ reason: string | null;
3907
+ movementDate: string;
3908
+ movementType: "purchase" | "transfer_in" | "transfer_out" | "sale" | "death" | "birth";
3909
+ fromLocation: string | null;
3910
+ toLocation: string | null;
3911
+ transactionValue: number | null;
3912
+ buyerSeller: string | null;
3913
+ documentRef: string | null;
3914
+ };
3915
+ relationships?: Record<string, unknown> | undefined;
3916
+ links?: Record<string, string> | undefined;
3917
+ meta?: Record<string, unknown> | undefined;
3918
+ }[];
3919
+ links?: Record<string, string> | undefined;
3920
+ meta?: Record<string, unknown> | undefined;
3921
+ included?: {
3922
+ type: string;
3923
+ id: string;
3924
+ attributes?: Record<string, unknown> | undefined;
3925
+ relationships?: Record<string, unknown> | undefined;
3926
+ links?: Record<string, string> | undefined;
3927
+ meta?: Record<string, unknown> | undefined;
3928
+ }[] | undefined;
3929
+ }, {
3930
+ data: {
3931
+ type: string;
3932
+ id: string;
3933
+ attributes: {
3934
+ id: string;
3935
+ notes: string | null;
3936
+ reason: string | null;
3937
+ movementDate: string;
3938
+ movementType: "purchase" | "transfer_in" | "transfer_out" | "sale" | "death" | "birth";
3939
+ fromLocation: string | null;
3940
+ toLocation: string | null;
3941
+ transactionValue: number | null;
3942
+ buyerSeller: string | null;
3943
+ documentRef: string | null;
3944
+ currency?: string | undefined;
3945
+ };
3946
+ relationships?: Record<string, unknown> | undefined;
3947
+ links?: Record<string, string> | undefined;
3948
+ meta?: Record<string, unknown> | undefined;
3949
+ }[];
3950
+ links?: Record<string, string> | undefined;
3951
+ meta?: Record<string, unknown> | undefined;
3952
+ included?: {
3953
+ type: string;
3954
+ id: string;
3955
+ attributes?: Record<string, unknown> | undefined;
3956
+ relationships?: Record<string, unknown> | undefined;
3957
+ links?: Record<string, string> | undefined;
3958
+ meta?: Record<string, unknown> | undefined;
3959
+ }[] | undefined;
3960
+ }>;
3961
+ export declare const livestockStatsSchema: z.ZodObject<{
3962
+ totalCount: z.ZodNumber;
3963
+ byCategory: z.ZodRecord<z.ZodEnum<["CATTLE", "POULTRY", "SHEEP", "GOAT", "PIG", "FISH", "RABBIT", "OTHER"]>, z.ZodNumber>;
3964
+ byStatus: z.ZodRecord<z.ZodEnum<["ACTIVE", "SOLD", "DECEASED", "TRANSFERRED", "QUARANTINE"]>, z.ZodNumber>;
3965
+ bySex: z.ZodRecord<z.ZodEnum<["MALE", "FEMALE", "UNKNOWN"]>, z.ZodNumber>;
3966
+ totalValue: z.ZodNumber;
3967
+ currency: z.ZodString;
3968
+ }, "strip", z.ZodTypeAny, {
3969
+ currency: string;
3970
+ totalValue: number;
3971
+ byStatus: Partial<Record<"ACTIVE" | "SOLD" | "DECEASED" | "TRANSFERRED" | "QUARANTINE", number>>;
3972
+ totalCount: number;
3973
+ byCategory: Partial<Record<"OTHER" | "CATTLE" | "POULTRY" | "SHEEP" | "GOAT" | "PIG" | "FISH" | "RABBIT", number>>;
3974
+ bySex: Partial<Record<"MALE" | "FEMALE" | "UNKNOWN", number>>;
3975
+ }, {
3976
+ currency: string;
3977
+ totalValue: number;
3978
+ byStatus: Partial<Record<"ACTIVE" | "SOLD" | "DECEASED" | "TRANSFERRED" | "QUARANTINE", number>>;
3979
+ totalCount: number;
3980
+ byCategory: Partial<Record<"OTHER" | "CATTLE" | "POULTRY" | "SHEEP" | "GOAT" | "PIG" | "FISH" | "RABBIT", number>>;
3981
+ bySex: Partial<Record<"MALE" | "FEMALE" | "UNKNOWN", number>>;
3982
+ }>;
3983
+ export declare const livestockStatsResponseSchema: z.ZodObject<{
3984
+ data: z.ZodObject<{
3985
+ totalCount: z.ZodNumber;
3986
+ byCategory: z.ZodRecord<z.ZodEnum<["CATTLE", "POULTRY", "SHEEP", "GOAT", "PIG", "FISH", "RABBIT", "OTHER"]>, z.ZodNumber>;
3987
+ byStatus: z.ZodRecord<z.ZodEnum<["ACTIVE", "SOLD", "DECEASED", "TRANSFERRED", "QUARANTINE"]>, z.ZodNumber>;
3988
+ bySex: z.ZodRecord<z.ZodEnum<["MALE", "FEMALE", "UNKNOWN"]>, z.ZodNumber>;
3989
+ totalValue: z.ZodNumber;
3990
+ currency: z.ZodString;
3991
+ }, "strip", z.ZodTypeAny, {
3992
+ currency: string;
3993
+ totalValue: number;
3994
+ byStatus: Partial<Record<"ACTIVE" | "SOLD" | "DECEASED" | "TRANSFERRED" | "QUARANTINE", number>>;
3995
+ totalCount: number;
3996
+ byCategory: Partial<Record<"OTHER" | "CATTLE" | "POULTRY" | "SHEEP" | "GOAT" | "PIG" | "FISH" | "RABBIT", number>>;
3997
+ bySex: Partial<Record<"MALE" | "FEMALE" | "UNKNOWN", number>>;
3998
+ }, {
3999
+ currency: string;
4000
+ totalValue: number;
4001
+ byStatus: Partial<Record<"ACTIVE" | "SOLD" | "DECEASED" | "TRANSFERRED" | "QUARANTINE", number>>;
4002
+ totalCount: number;
4003
+ byCategory: Partial<Record<"OTHER" | "CATTLE" | "POULTRY" | "SHEEP" | "GOAT" | "PIG" | "FISH" | "RABBIT", number>>;
4004
+ bySex: Partial<Record<"MALE" | "FEMALE" | "UNKNOWN", number>>;
4005
+ }>;
4006
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4007
+ }, "strip", z.ZodTypeAny, {
4008
+ data: {
4009
+ currency: string;
4010
+ totalValue: number;
4011
+ byStatus: Partial<Record<"ACTIVE" | "SOLD" | "DECEASED" | "TRANSFERRED" | "QUARANTINE", number>>;
4012
+ totalCount: number;
4013
+ byCategory: Partial<Record<"OTHER" | "CATTLE" | "POULTRY" | "SHEEP" | "GOAT" | "PIG" | "FISH" | "RABBIT", number>>;
4014
+ bySex: Partial<Record<"MALE" | "FEMALE" | "UNKNOWN", number>>;
4015
+ };
4016
+ meta?: Record<string, unknown> | undefined;
4017
+ }, {
4018
+ data: {
4019
+ currency: string;
4020
+ totalValue: number;
4021
+ byStatus: Partial<Record<"ACTIVE" | "SOLD" | "DECEASED" | "TRANSFERRED" | "QUARANTINE", number>>;
4022
+ totalCount: number;
4023
+ byCategory: Partial<Record<"OTHER" | "CATTLE" | "POULTRY" | "SHEEP" | "GOAT" | "PIG" | "FISH" | "RABBIT", number>>;
4024
+ bySex: Partial<Record<"MALE" | "FEMALE" | "UNKNOWN", number>>;
4025
+ };
4026
+ meta?: Record<string, unknown> | undefined;
4027
+ }>;
4028
+ export type LivestockCategory = z.infer<typeof livestockCategorySchema>;
4029
+ export type LivestockSex = z.infer<typeof livestockSexSchema>;
4030
+ export type LivestockStatus = z.infer<typeof livestockStatusSchema>;
4031
+ export type HealthRecordType = z.infer<typeof healthRecordTypeSchema>;
4032
+ export type MovementType = z.infer<typeof movementTypeSchema>;
4033
+ export type AcquisitionType = z.infer<typeof acquisitionTypeSchema>;
4034
+ export type WeightRecordAttributes = z.infer<typeof weightRecordAttributesSchema>;
4035
+ export type HealthRecordAttributes = z.infer<typeof healthRecordAttributesSchema>;
4036
+ export type MovementRecordAttributes = z.infer<typeof movementRecordAttributesSchema>;
4037
+ export type LivestockAttributes = z.infer<typeof livestockAttributesSchema>;
4038
+ export type CreateLivestockAttributes = z.infer<typeof createLivestockAttributesSchema>;
4039
+ export type UpdateLivestockAttributes = z.infer<typeof updateLivestockAttributesSchema>;
4040
+ export type CreateHealthRecordAttributes = z.infer<typeof createHealthRecordAttributesSchema>;
4041
+ export type CreateWeightRecordAttributes = z.infer<typeof createWeightRecordAttributesSchema>;
4042
+ export type CreateMovementRecordAttributes = z.infer<typeof createMovementRecordAttributesSchema>;
4043
+ export type CreateLivestockInput = z.infer<typeof createLivestockSchema>;
4044
+ export type UpdateLivestockInput = z.infer<typeof updateLivestockSchema>;
4045
+ export type CreateHealthRecordInput = z.infer<typeof createHealthRecordSchema>;
4046
+ export type CreateWeightRecordInput = z.infer<typeof createWeightRecordSchema>;
4047
+ export type CreateMovementRecordInput = z.infer<typeof createMovementRecordSchema>;
4048
+ export type LivestockResource = z.infer<typeof livestockResourceSchema>;
4049
+ export type HealthRecordResource = z.infer<typeof healthRecordResourceSchema>;
4050
+ export type WeightRecordResource = z.infer<typeof weightRecordResourceSchema>;
4051
+ export type MovementRecordResource = z.infer<typeof movementRecordResourceSchema>;
4052
+ export type LivestockResponse = z.infer<typeof livestockResponseSchema>;
4053
+ export type LivestockListResponse = z.infer<typeof livestockListResponseSchema>;
4054
+ export type HealthRecordResponse = z.infer<typeof healthRecordResponseSchema>;
4055
+ export type HealthRecordListResponse = z.infer<typeof healthRecordListResponseSchema>;
4056
+ export type WeightRecordResponse = z.infer<typeof weightRecordResponseSchema>;
4057
+ export type MovementRecordResponse = z.infer<typeof movementRecordResponseSchema>;
4058
+ export type MovementRecordListResponse = z.infer<typeof movementRecordListResponseSchema>;
4059
+ export type LivestockStats = z.infer<typeof livestockStatsSchema>;
4060
+ export type LivestockStatsResponse = z.infer<typeof livestockStatsResponseSchema>;
4061
+ //# sourceMappingURL=livestock.schemas.d.ts.map