@deepintel-ltd/farmpro-contracts 1.25.2 → 1.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/routes/farm-enterprises.routes.d.ts +44 -44
- package/dist/routes/farms.routes.d.ts +9 -9
- package/dist/routes/geofences.routes.d.ts +2 -2
- package/dist/routes/livestock-groups.routes.d.ts +724 -54
- package/dist/routes/livestock-groups.routes.d.ts.map +1 -1
- package/dist/routes/livestock-groups.routes.js +17 -1
- package/dist/routes/livestock.routes.d.ts +3505 -42
- package/dist/routes/livestock.routes.d.ts.map +1 -1
- package/dist/routes/livestock.routes.js +111 -1
- package/dist/routes/organizations.routes.d.ts +112 -14
- package/dist/routes/organizations.routes.d.ts.map +1 -1
- package/dist/routes/team.routes.d.ts +44 -44
- package/dist/routes/trade-cash-events.routes.d.ts +7668 -559
- package/dist/routes/trade-cash-events.routes.d.ts.map +1 -1
- package/dist/routes/trade-cash-events.routes.js +148 -2
- package/dist/schemas/farm-enterprises.schemas.d.ts +58 -58
- package/dist/schemas/farm-enterprises.schemas.d.ts.map +1 -1
- package/dist/schemas/farm-enterprises.schemas.js +1 -0
- package/dist/schemas/farms.schemas.d.ts +12 -12
- package/dist/schemas/farms.schemas.js +1 -1
- package/dist/schemas/geofences.schemas.d.ts +4 -4
- package/dist/schemas/livestock-groups.schemas.d.ts +166 -40
- package/dist/schemas/livestock-groups.schemas.d.ts.map +1 -1
- package/dist/schemas/livestock-groups.schemas.js +25 -0
- package/dist/schemas/livestock.schemas.d.ts +1796 -36
- package/dist/schemas/livestock.schemas.d.ts.map +1 -1
- package/dist/schemas/livestock.schemas.js +129 -0
- package/dist/schemas/organizations.schemas.d.ts +104 -16
- package/dist/schemas/organizations.schemas.d.ts.map +1 -1
- package/dist/schemas/organizations.schemas.js +8 -1
- package/dist/schemas/team.schemas.d.ts +43 -43
- package/dist/schemas/team.schemas.d.ts.map +1 -1
- package/dist/schemas/team.schemas.js +1 -0
- package/dist/schemas/trade-cash-events.schemas.d.ts +2605 -68
- package/dist/schemas/trade-cash-events.schemas.d.ts.map +1 -1
- package/dist/schemas/trade-cash-events.schemas.js +204 -0
- package/package.json +1 -1
|
@@ -8,11 +8,14 @@ export declare const livestockStatusSchema: z.ZodEnum<["ACTIVE", "SOLD", "DECEAS
|
|
|
8
8
|
export declare const healthRecordTypeSchema: z.ZodEnum<["vaccination", "treatment", "checkup", "deworming", "surgery", "other"]>;
|
|
9
9
|
export declare const movementTypeSchema: z.ZodEnum<["transfer_in", "transfer_out", "sale", "purchase", "death", "birth"]>;
|
|
10
10
|
export declare const acquisitionTypeSchema: z.ZodEnum<["born", "purchased", "transferred", "gifted"]>;
|
|
11
|
+
export declare const weightEventTypeSchema: z.ZodEnum<["routine", "weaning"]>;
|
|
12
|
+
export declare const cullReasonSchema: z.ZodEnum<["poor_gain", "health", "age", "temperament", "other"]>;
|
|
11
13
|
export declare const weightRecordAttributesSchema: z.ZodObject<{
|
|
12
14
|
id: z.ZodString;
|
|
13
15
|
recordDate: z.ZodString;
|
|
14
16
|
weight: z.ZodNumber;
|
|
15
17
|
weightUnit: z.ZodDefault<z.ZodString>;
|
|
18
|
+
eventType: z.ZodDefault<z.ZodEnum<["routine", "weaning"]>>;
|
|
16
19
|
notes: z.ZodNullable<z.ZodString>;
|
|
17
20
|
}, "strip", z.ZodTypeAny, {
|
|
18
21
|
id: string;
|
|
@@ -20,12 +23,14 @@ export declare const weightRecordAttributesSchema: z.ZodObject<{
|
|
|
20
23
|
weight: number;
|
|
21
24
|
recordDate: string;
|
|
22
25
|
weightUnit: string;
|
|
26
|
+
eventType: "routine" | "weaning";
|
|
23
27
|
}, {
|
|
24
28
|
id: string;
|
|
25
29
|
notes: string | null;
|
|
26
30
|
weight: number;
|
|
27
31
|
recordDate: string;
|
|
28
32
|
weightUnit?: string | undefined;
|
|
33
|
+
eventType?: "routine" | "weaning" | undefined;
|
|
29
34
|
}>;
|
|
30
35
|
export declare const healthRecordAttributesSchema: z.ZodObject<{
|
|
31
36
|
id: z.ZodString;
|
|
@@ -40,6 +45,9 @@ export declare const healthRecordAttributesSchema: z.ZodObject<{
|
|
|
40
45
|
vaccineName: z.ZodNullable<z.ZodString>;
|
|
41
46
|
batchNumber: z.ZodNullable<z.ZodString>;
|
|
42
47
|
nextDueDate: z.ZodNullable<z.ZodString>;
|
|
48
|
+
withdrawalDays: z.ZodNullable<z.ZodNumber>;
|
|
49
|
+
withdrawalEndsAt: z.ZodNullable<z.ZodString>;
|
|
50
|
+
bcs: z.ZodNullable<z.ZodNumber>;
|
|
43
51
|
cost: z.ZodNullable<z.ZodNumber>;
|
|
44
52
|
currency: z.ZodDefault<z.ZodString>;
|
|
45
53
|
followUpRequired: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -62,6 +70,9 @@ export declare const healthRecordAttributesSchema: z.ZodObject<{
|
|
|
62
70
|
vaccineName: string | null;
|
|
63
71
|
batchNumber: string | null;
|
|
64
72
|
nextDueDate: string | null;
|
|
73
|
+
withdrawalDays: number | null;
|
|
74
|
+
withdrawalEndsAt: string | null;
|
|
75
|
+
bcs: number | null;
|
|
65
76
|
followUpRequired: boolean;
|
|
66
77
|
followUpDate: string | null;
|
|
67
78
|
followUpNotes: string | null;
|
|
@@ -80,6 +91,9 @@ export declare const healthRecordAttributesSchema: z.ZodObject<{
|
|
|
80
91
|
vaccineName: string | null;
|
|
81
92
|
batchNumber: string | null;
|
|
82
93
|
nextDueDate: string | null;
|
|
94
|
+
withdrawalDays: number | null;
|
|
95
|
+
withdrawalEndsAt: string | null;
|
|
96
|
+
bcs: number | null;
|
|
83
97
|
followUpDate: string | null;
|
|
84
98
|
followUpNotes: string | null;
|
|
85
99
|
currency?: string | undefined;
|
|
@@ -136,6 +150,9 @@ export declare const livestockAttributesSchema: z.ZodObject<{
|
|
|
136
150
|
weight: z.ZodNullable<z.ZodNumber>;
|
|
137
151
|
weightUnit: z.ZodDefault<z.ZodString>;
|
|
138
152
|
lastWeighDate: z.ZodNullable<z.ZodString>;
|
|
153
|
+
eid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
154
|
+
secondaryTagId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
155
|
+
photoUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
139
156
|
sireId: z.ZodNullable<z.ZodString>;
|
|
140
157
|
damId: z.ZodNullable<z.ZodString>;
|
|
141
158
|
sireName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -143,6 +160,7 @@ export declare const livestockAttributesSchema: z.ZodObject<{
|
|
|
143
160
|
status: z.ZodEnum<["ACTIVE", "SOLD", "DECEASED", "TRANSFERRED", "QUARANTINE"]>;
|
|
144
161
|
statusDate: z.ZodString;
|
|
145
162
|
statusNote: z.ZodNullable<z.ZodString>;
|
|
163
|
+
cullReason: z.ZodOptional<z.ZodNullable<z.ZodEnum<["poor_gain", "health", "age", "temperament", "other"]>>>;
|
|
146
164
|
location: z.ZodNullable<z.ZodString>;
|
|
147
165
|
groupId: z.ZodNullable<z.ZodString>;
|
|
148
166
|
purchasePrice: z.ZodNullable<z.ZodNumber>;
|
|
@@ -162,6 +180,9 @@ export declare const livestockAttributesSchema: z.ZodObject<{
|
|
|
162
180
|
vaccineName: z.ZodNullable<z.ZodString>;
|
|
163
181
|
batchNumber: z.ZodNullable<z.ZodString>;
|
|
164
182
|
nextDueDate: z.ZodNullable<z.ZodString>;
|
|
183
|
+
withdrawalDays: z.ZodNullable<z.ZodNumber>;
|
|
184
|
+
withdrawalEndsAt: z.ZodNullable<z.ZodString>;
|
|
185
|
+
bcs: z.ZodNullable<z.ZodNumber>;
|
|
165
186
|
cost: z.ZodNullable<z.ZodNumber>;
|
|
166
187
|
currency: z.ZodDefault<z.ZodString>;
|
|
167
188
|
followUpRequired: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -184,6 +205,9 @@ export declare const livestockAttributesSchema: z.ZodObject<{
|
|
|
184
205
|
vaccineName: string | null;
|
|
185
206
|
batchNumber: string | null;
|
|
186
207
|
nextDueDate: string | null;
|
|
208
|
+
withdrawalDays: number | null;
|
|
209
|
+
withdrawalEndsAt: string | null;
|
|
210
|
+
bcs: number | null;
|
|
187
211
|
followUpRequired: boolean;
|
|
188
212
|
followUpDate: string | null;
|
|
189
213
|
followUpNotes: string | null;
|
|
@@ -202,6 +226,9 @@ export declare const livestockAttributesSchema: z.ZodObject<{
|
|
|
202
226
|
vaccineName: string | null;
|
|
203
227
|
batchNumber: string | null;
|
|
204
228
|
nextDueDate: string | null;
|
|
229
|
+
withdrawalDays: number | null;
|
|
230
|
+
withdrawalEndsAt: string | null;
|
|
231
|
+
bcs: number | null;
|
|
205
232
|
followUpDate: string | null;
|
|
206
233
|
followUpNotes: string | null;
|
|
207
234
|
currency?: string | undefined;
|
|
@@ -212,6 +239,7 @@ export declare const livestockAttributesSchema: z.ZodObject<{
|
|
|
212
239
|
recordDate: z.ZodString;
|
|
213
240
|
weight: z.ZodNumber;
|
|
214
241
|
weightUnit: z.ZodDefault<z.ZodString>;
|
|
242
|
+
eventType: z.ZodDefault<z.ZodEnum<["routine", "weaning"]>>;
|
|
215
243
|
notes: z.ZodNullable<z.ZodString>;
|
|
216
244
|
}, "strip", z.ZodTypeAny, {
|
|
217
245
|
id: string;
|
|
@@ -219,12 +247,14 @@ export declare const livestockAttributesSchema: z.ZodObject<{
|
|
|
219
247
|
weight: number;
|
|
220
248
|
recordDate: string;
|
|
221
249
|
weightUnit: string;
|
|
250
|
+
eventType: "routine" | "weaning";
|
|
222
251
|
}, {
|
|
223
252
|
id: string;
|
|
224
253
|
notes: string | null;
|
|
225
254
|
weight: number;
|
|
226
255
|
recordDate: string;
|
|
227
256
|
weightUnit?: string | undefined;
|
|
257
|
+
eventType?: "routine" | "weaning" | undefined;
|
|
228
258
|
}>, "many">>;
|
|
229
259
|
recentMovements: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
230
260
|
id: z.ZodString;
|
|
@@ -275,7 +305,7 @@ export declare const livestockAttributesSchema: z.ZodObject<{
|
|
|
275
305
|
location: string | null;
|
|
276
306
|
currency: string;
|
|
277
307
|
notes: string | null;
|
|
278
|
-
category: "POULTRY" | "CATTLE" | "GOAT" | "
|
|
308
|
+
category: "POULTRY" | "CATTLE" | "GOAT" | "SHEEP" | "OTHER" | "PIG" | "FISH" | "RABBIT";
|
|
279
309
|
groupId: string | null;
|
|
280
310
|
purchasePrice: number | null;
|
|
281
311
|
currentValue: number | null;
|
|
@@ -293,8 +323,12 @@ export declare const livestockAttributesSchema: z.ZodObject<{
|
|
|
293
323
|
damId: string | null;
|
|
294
324
|
statusDate: string;
|
|
295
325
|
statusNote: string | null;
|
|
326
|
+
photoUrl?: string | null | undefined;
|
|
327
|
+
eid?: string | null | undefined;
|
|
328
|
+
secondaryTagId?: string | null | undefined;
|
|
296
329
|
sireName?: string | null | undefined;
|
|
297
330
|
damName?: string | null | undefined;
|
|
331
|
+
cullReason?: "other" | "poor_gain" | "health" | "age" | "temperament" | null | undefined;
|
|
298
332
|
healthRecords?: {
|
|
299
333
|
id: string;
|
|
300
334
|
description: string;
|
|
@@ -311,6 +345,9 @@ export declare const livestockAttributesSchema: z.ZodObject<{
|
|
|
311
345
|
vaccineName: string | null;
|
|
312
346
|
batchNumber: string | null;
|
|
313
347
|
nextDueDate: string | null;
|
|
348
|
+
withdrawalDays: number | null;
|
|
349
|
+
withdrawalEndsAt: string | null;
|
|
350
|
+
bcs: number | null;
|
|
314
351
|
followUpRequired: boolean;
|
|
315
352
|
followUpDate: string | null;
|
|
316
353
|
followUpNotes: string | null;
|
|
@@ -321,6 +358,7 @@ export declare const livestockAttributesSchema: z.ZodObject<{
|
|
|
321
358
|
weight: number;
|
|
322
359
|
recordDate: string;
|
|
323
360
|
weightUnit: string;
|
|
361
|
+
eventType: "routine" | "weaning";
|
|
324
362
|
}[] | undefined;
|
|
325
363
|
recentMovements?: {
|
|
326
364
|
id: string;
|
|
@@ -343,7 +381,7 @@ export declare const livestockAttributesSchema: z.ZodObject<{
|
|
|
343
381
|
farmId: string;
|
|
344
382
|
location: string | null;
|
|
345
383
|
notes: string | null;
|
|
346
|
-
category: "POULTRY" | "CATTLE" | "GOAT" | "
|
|
384
|
+
category: "POULTRY" | "CATTLE" | "GOAT" | "SHEEP" | "OTHER" | "PIG" | "FISH" | "RABBIT";
|
|
347
385
|
groupId: string | null;
|
|
348
386
|
purchasePrice: number | null;
|
|
349
387
|
currentValue: number | null;
|
|
@@ -361,9 +399,13 @@ export declare const livestockAttributesSchema: z.ZodObject<{
|
|
|
361
399
|
statusDate: string;
|
|
362
400
|
statusNote: string | null;
|
|
363
401
|
currency?: string | undefined;
|
|
402
|
+
photoUrl?: string | null | undefined;
|
|
364
403
|
weightUnit?: string | undefined;
|
|
404
|
+
eid?: string | null | undefined;
|
|
405
|
+
secondaryTagId?: string | null | undefined;
|
|
365
406
|
sireName?: string | null | undefined;
|
|
366
407
|
damName?: string | null | undefined;
|
|
408
|
+
cullReason?: "other" | "poor_gain" | "health" | "age" | "temperament" | null | undefined;
|
|
367
409
|
healthRecords?: {
|
|
368
410
|
id: string;
|
|
369
411
|
description: string;
|
|
@@ -379,6 +421,9 @@ export declare const livestockAttributesSchema: z.ZodObject<{
|
|
|
379
421
|
vaccineName: string | null;
|
|
380
422
|
batchNumber: string | null;
|
|
381
423
|
nextDueDate: string | null;
|
|
424
|
+
withdrawalDays: number | null;
|
|
425
|
+
withdrawalEndsAt: string | null;
|
|
426
|
+
bcs: number | null;
|
|
382
427
|
followUpDate: string | null;
|
|
383
428
|
followUpNotes: string | null;
|
|
384
429
|
currency?: string | undefined;
|
|
@@ -390,6 +435,7 @@ export declare const livestockAttributesSchema: z.ZodObject<{
|
|
|
390
435
|
weight: number;
|
|
391
436
|
recordDate: string;
|
|
392
437
|
weightUnit?: string | undefined;
|
|
438
|
+
eventType?: "routine" | "weaning" | undefined;
|
|
393
439
|
}[] | undefined;
|
|
394
440
|
recentMovements?: {
|
|
395
441
|
id: string;
|
|
@@ -417,6 +463,9 @@ export declare const createLivestockAttributesSchema: z.ZodObject<{
|
|
|
417
463
|
color: z.ZodOptional<z.ZodString>;
|
|
418
464
|
weight: z.ZodOptional<z.ZodNumber>;
|
|
419
465
|
weightUnit: z.ZodDefault<z.ZodString>;
|
|
466
|
+
eid: z.ZodOptional<z.ZodString>;
|
|
467
|
+
secondaryTagId: z.ZodOptional<z.ZodString>;
|
|
468
|
+
photoUrl: z.ZodOptional<z.ZodString>;
|
|
420
469
|
sireId: z.ZodOptional<z.ZodString>;
|
|
421
470
|
damId: z.ZodOptional<z.ZodString>;
|
|
422
471
|
status: z.ZodDefault<z.ZodEnum<["ACTIVE", "SOLD", "DECEASED", "TRANSFERRED", "QUARANTINE"]>>;
|
|
@@ -430,7 +479,7 @@ export declare const createLivestockAttributesSchema: z.ZodObject<{
|
|
|
430
479
|
}, "strip", z.ZodTypeAny, {
|
|
431
480
|
status: "ACTIVE" | "SOLD" | "DECEASED" | "TRANSFERRED" | "QUARANTINE";
|
|
432
481
|
currency: string;
|
|
433
|
-
category: "POULTRY" | "CATTLE" | "GOAT" | "
|
|
482
|
+
category: "POULTRY" | "CATTLE" | "GOAT" | "SHEEP" | "OTHER" | "PIG" | "FISH" | "RABBIT";
|
|
434
483
|
weightUnit: string;
|
|
435
484
|
tagId: string;
|
|
436
485
|
sex: "MALE" | "FEMALE" | "UNKNOWN";
|
|
@@ -441,16 +490,19 @@ export declare const createLivestockAttributesSchema: z.ZodObject<{
|
|
|
441
490
|
groupId?: string | undefined;
|
|
442
491
|
purchasePrice?: number | undefined;
|
|
443
492
|
currentValue?: number | undefined;
|
|
493
|
+
photoUrl?: string | undefined;
|
|
444
494
|
weight?: number | undefined;
|
|
445
495
|
color?: string | undefined;
|
|
446
496
|
breed?: string | undefined;
|
|
447
497
|
dateOfBirth?: string | undefined;
|
|
448
498
|
acquisitionDate?: string | undefined;
|
|
499
|
+
eid?: string | undefined;
|
|
500
|
+
secondaryTagId?: string | undefined;
|
|
449
501
|
sireId?: string | undefined;
|
|
450
502
|
damId?: string | undefined;
|
|
451
503
|
statusNote?: string | undefined;
|
|
452
504
|
}, {
|
|
453
|
-
category: "POULTRY" | "CATTLE" | "GOAT" | "
|
|
505
|
+
category: "POULTRY" | "CATTLE" | "GOAT" | "SHEEP" | "OTHER" | "PIG" | "FISH" | "RABBIT";
|
|
454
506
|
tagId: string;
|
|
455
507
|
status?: "ACTIVE" | "SOLD" | "DECEASED" | "TRANSFERRED" | "QUARANTINE" | undefined;
|
|
456
508
|
name?: string | undefined;
|
|
@@ -460,6 +512,7 @@ export declare const createLivestockAttributesSchema: z.ZodObject<{
|
|
|
460
512
|
groupId?: string | undefined;
|
|
461
513
|
purchasePrice?: number | undefined;
|
|
462
514
|
currentValue?: number | undefined;
|
|
515
|
+
photoUrl?: string | undefined;
|
|
463
516
|
weight?: number | undefined;
|
|
464
517
|
color?: string | undefined;
|
|
465
518
|
weightUnit?: string | undefined;
|
|
@@ -468,6 +521,8 @@ export declare const createLivestockAttributesSchema: z.ZodObject<{
|
|
|
468
521
|
dateOfBirth?: string | undefined;
|
|
469
522
|
acquisitionDate?: string | undefined;
|
|
470
523
|
acquisitionType?: "born" | "purchased" | "transferred" | "gifted" | undefined;
|
|
524
|
+
eid?: string | undefined;
|
|
525
|
+
secondaryTagId?: string | undefined;
|
|
471
526
|
sireId?: string | undefined;
|
|
472
527
|
damId?: string | undefined;
|
|
473
528
|
statusNote?: string | undefined;
|
|
@@ -482,10 +537,14 @@ export declare const updateLivestockAttributesSchema: z.ZodObject<{
|
|
|
482
537
|
color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
483
538
|
weight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
484
539
|
weightUnit: z.ZodOptional<z.ZodString>;
|
|
540
|
+
eid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
541
|
+
secondaryTagId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
542
|
+
photoUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
485
543
|
sireId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
486
544
|
damId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
487
545
|
status: z.ZodOptional<z.ZodEnum<["ACTIVE", "SOLD", "DECEASED", "TRANSFERRED", "QUARANTINE"]>>;
|
|
488
546
|
statusNote: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
547
|
+
cullReason: z.ZodOptional<z.ZodNullable<z.ZodEnum<["poor_gain", "health", "age", "temperament", "other"]>>>;
|
|
489
548
|
location: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
490
549
|
groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
491
550
|
purchasePrice: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -498,10 +557,11 @@ export declare const updateLivestockAttributesSchema: z.ZodObject<{
|
|
|
498
557
|
location?: string | null | undefined;
|
|
499
558
|
currency?: string | undefined;
|
|
500
559
|
notes?: string | null | undefined;
|
|
501
|
-
category?: "POULTRY" | "CATTLE" | "GOAT" | "
|
|
560
|
+
category?: "POULTRY" | "CATTLE" | "GOAT" | "SHEEP" | "OTHER" | "PIG" | "FISH" | "RABBIT" | undefined;
|
|
502
561
|
groupId?: string | null | undefined;
|
|
503
562
|
purchasePrice?: number | null | undefined;
|
|
504
563
|
currentValue?: number | null | undefined;
|
|
564
|
+
photoUrl?: string | null | undefined;
|
|
505
565
|
weight?: number | null | undefined;
|
|
506
566
|
color?: string | null | undefined;
|
|
507
567
|
weightUnit?: string | undefined;
|
|
@@ -509,19 +569,23 @@ export declare const updateLivestockAttributesSchema: z.ZodObject<{
|
|
|
509
569
|
breed?: string | null | undefined;
|
|
510
570
|
sex?: "MALE" | "FEMALE" | "UNKNOWN" | undefined;
|
|
511
571
|
dateOfBirth?: string | null | undefined;
|
|
572
|
+
eid?: string | null | undefined;
|
|
573
|
+
secondaryTagId?: string | null | undefined;
|
|
512
574
|
sireId?: string | null | undefined;
|
|
513
575
|
damId?: string | null | undefined;
|
|
514
576
|
statusNote?: string | null | undefined;
|
|
577
|
+
cullReason?: "other" | "poor_gain" | "health" | "age" | "temperament" | null | undefined;
|
|
515
578
|
}, {
|
|
516
579
|
status?: "ACTIVE" | "SOLD" | "DECEASED" | "TRANSFERRED" | "QUARANTINE" | undefined;
|
|
517
580
|
name?: string | null | undefined;
|
|
518
581
|
location?: string | null | undefined;
|
|
519
582
|
currency?: string | undefined;
|
|
520
583
|
notes?: string | null | undefined;
|
|
521
|
-
category?: "POULTRY" | "CATTLE" | "GOAT" | "
|
|
584
|
+
category?: "POULTRY" | "CATTLE" | "GOAT" | "SHEEP" | "OTHER" | "PIG" | "FISH" | "RABBIT" | undefined;
|
|
522
585
|
groupId?: string | null | undefined;
|
|
523
586
|
purchasePrice?: number | null | undefined;
|
|
524
587
|
currentValue?: number | null | undefined;
|
|
588
|
+
photoUrl?: string | null | undefined;
|
|
525
589
|
weight?: number | null | undefined;
|
|
526
590
|
color?: string | null | undefined;
|
|
527
591
|
weightUnit?: string | undefined;
|
|
@@ -529,9 +593,12 @@ export declare const updateLivestockAttributesSchema: z.ZodObject<{
|
|
|
529
593
|
breed?: string | null | undefined;
|
|
530
594
|
sex?: "MALE" | "FEMALE" | "UNKNOWN" | undefined;
|
|
531
595
|
dateOfBirth?: string | null | undefined;
|
|
596
|
+
eid?: string | null | undefined;
|
|
597
|
+
secondaryTagId?: string | null | undefined;
|
|
532
598
|
sireId?: string | null | undefined;
|
|
533
599
|
damId?: string | null | undefined;
|
|
534
600
|
statusNote?: string | null | undefined;
|
|
601
|
+
cullReason?: "other" | "poor_gain" | "health" | "age" | "temperament" | null | undefined;
|
|
535
602
|
}>;
|
|
536
603
|
export declare const createHealthRecordAttributesSchema: z.ZodObject<{
|
|
537
604
|
recordDate: z.ZodString;
|
|
@@ -545,6 +612,8 @@ export declare const createHealthRecordAttributesSchema: z.ZodObject<{
|
|
|
545
612
|
vaccineName: z.ZodOptional<z.ZodString>;
|
|
546
613
|
batchNumber: z.ZodOptional<z.ZodString>;
|
|
547
614
|
nextDueDate: z.ZodOptional<z.ZodString>;
|
|
615
|
+
withdrawalDays: z.ZodOptional<z.ZodNumber>;
|
|
616
|
+
bcs: z.ZodOptional<z.ZodNumber>;
|
|
548
617
|
cost: z.ZodOptional<z.ZodNumber>;
|
|
549
618
|
currency: z.ZodDefault<z.ZodString>;
|
|
550
619
|
followUpRequired: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -567,6 +636,8 @@ export declare const createHealthRecordAttributesSchema: z.ZodObject<{
|
|
|
567
636
|
vaccineName?: string | undefined;
|
|
568
637
|
batchNumber?: string | undefined;
|
|
569
638
|
nextDueDate?: string | undefined;
|
|
639
|
+
withdrawalDays?: number | undefined;
|
|
640
|
+
bcs?: number | undefined;
|
|
570
641
|
followUpDate?: string | undefined;
|
|
571
642
|
followUpNotes?: string | undefined;
|
|
572
643
|
}, {
|
|
@@ -584,6 +655,8 @@ export declare const createHealthRecordAttributesSchema: z.ZodObject<{
|
|
|
584
655
|
vaccineName?: string | undefined;
|
|
585
656
|
batchNumber?: string | undefined;
|
|
586
657
|
nextDueDate?: string | undefined;
|
|
658
|
+
withdrawalDays?: number | undefined;
|
|
659
|
+
bcs?: number | undefined;
|
|
587
660
|
followUpRequired?: boolean | undefined;
|
|
588
661
|
followUpDate?: string | undefined;
|
|
589
662
|
followUpNotes?: string | undefined;
|
|
@@ -592,17 +665,20 @@ export declare const createWeightRecordAttributesSchema: z.ZodObject<{
|
|
|
592
665
|
recordDate: z.ZodString;
|
|
593
666
|
weight: z.ZodNumber;
|
|
594
667
|
weightUnit: z.ZodDefault<z.ZodString>;
|
|
668
|
+
eventType: z.ZodDefault<z.ZodEnum<["routine", "weaning"]>>;
|
|
595
669
|
notes: z.ZodOptional<z.ZodString>;
|
|
596
670
|
}, "strip", z.ZodTypeAny, {
|
|
597
671
|
weight: number;
|
|
598
672
|
recordDate: string;
|
|
599
673
|
weightUnit: string;
|
|
674
|
+
eventType: "routine" | "weaning";
|
|
600
675
|
notes?: string | undefined;
|
|
601
676
|
}, {
|
|
602
677
|
weight: number;
|
|
603
678
|
recordDate: string;
|
|
604
679
|
notes?: string | undefined;
|
|
605
680
|
weightUnit?: string | undefined;
|
|
681
|
+
eventType?: "routine" | "weaning" | undefined;
|
|
606
682
|
}>;
|
|
607
683
|
export declare const createMovementRecordAttributesSchema: z.ZodObject<{
|
|
608
684
|
movementDate: z.ZodString;
|
|
@@ -638,6 +714,1374 @@ export declare const createMovementRecordAttributesSchema: z.ZodObject<{
|
|
|
638
714
|
buyerSeller?: string | undefined;
|
|
639
715
|
documentRef?: string | undefined;
|
|
640
716
|
}>;
|
|
717
|
+
export declare const breedingEventTypeSchema: z.ZodEnum<["heat", "serve", "pregnancy_check", "birth"]>;
|
|
718
|
+
export declare const breedingOutcomeSchema: z.ZodEnum<["open", "pregnant", "aborted", "live_birth", "stillbirth"]>;
|
|
719
|
+
export declare const breedingMethodSchema: z.ZodEnum<["natural", "AI"]>;
|
|
720
|
+
export declare const breedingEventAttributesSchema: z.ZodObject<{
|
|
721
|
+
farmId: z.ZodString;
|
|
722
|
+
damId: z.ZodString;
|
|
723
|
+
sireId: z.ZodNullable<z.ZodString>;
|
|
724
|
+
eventType: z.ZodEnum<["heat", "serve", "pregnancy_check", "birth"]>;
|
|
725
|
+
eventDate: z.ZodString;
|
|
726
|
+
outcome: z.ZodNullable<z.ZodEnum<["open", "pregnant", "aborted", "live_birth", "stillbirth"]>>;
|
|
727
|
+
method: z.ZodNullable<z.ZodEnum<["natural", "AI"]>>;
|
|
728
|
+
expectedDue: z.ZodNullable<z.ZodString>;
|
|
729
|
+
calfCount: z.ZodNullable<z.ZodNumber>;
|
|
730
|
+
notes: z.ZodNullable<z.ZodString>;
|
|
731
|
+
offspringIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
732
|
+
} & {
|
|
733
|
+
createdAt: z.ZodString;
|
|
734
|
+
updatedAt: z.ZodString;
|
|
735
|
+
}, "strip", z.ZodTypeAny, {
|
|
736
|
+
createdAt: string;
|
|
737
|
+
updatedAt: string;
|
|
738
|
+
method: "natural" | "AI" | null;
|
|
739
|
+
farmId: string;
|
|
740
|
+
notes: string | null;
|
|
741
|
+
outcome: "aborted" | "open" | "pregnant" | "live_birth" | "stillbirth" | null;
|
|
742
|
+
eventType: "birth" | "heat" | "serve" | "pregnancy_check";
|
|
743
|
+
sireId: string | null;
|
|
744
|
+
damId: string;
|
|
745
|
+
eventDate: string;
|
|
746
|
+
expectedDue: string | null;
|
|
747
|
+
calfCount: number | null;
|
|
748
|
+
offspringIds?: string[] | undefined;
|
|
749
|
+
}, {
|
|
750
|
+
createdAt: string;
|
|
751
|
+
updatedAt: string;
|
|
752
|
+
method: "natural" | "AI" | null;
|
|
753
|
+
farmId: string;
|
|
754
|
+
notes: string | null;
|
|
755
|
+
outcome: "aborted" | "open" | "pregnant" | "live_birth" | "stillbirth" | null;
|
|
756
|
+
eventType: "birth" | "heat" | "serve" | "pregnancy_check";
|
|
757
|
+
sireId: string | null;
|
|
758
|
+
damId: string;
|
|
759
|
+
eventDate: string;
|
|
760
|
+
expectedDue: string | null;
|
|
761
|
+
calfCount: number | null;
|
|
762
|
+
offspringIds?: string[] | undefined;
|
|
763
|
+
}>;
|
|
764
|
+
export declare const createBreedingEventAttributesSchema: z.ZodObject<{
|
|
765
|
+
eventType: z.ZodEnum<["heat", "serve", "pregnancy_check", "birth"]>;
|
|
766
|
+
eventDate: z.ZodString;
|
|
767
|
+
sireId: z.ZodOptional<z.ZodString>;
|
|
768
|
+
outcome: z.ZodOptional<z.ZodEnum<["open", "pregnant", "aborted", "live_birth", "stillbirth"]>>;
|
|
769
|
+
method: z.ZodOptional<z.ZodEnum<["natural", "AI"]>>;
|
|
770
|
+
expectedDue: z.ZodOptional<z.ZodString>;
|
|
771
|
+
calfCount: z.ZodOptional<z.ZodNumber>;
|
|
772
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
773
|
+
}, "strip", z.ZodTypeAny, {
|
|
774
|
+
eventType: "birth" | "heat" | "serve" | "pregnancy_check";
|
|
775
|
+
eventDate: string;
|
|
776
|
+
method?: "natural" | "AI" | undefined;
|
|
777
|
+
notes?: string | undefined;
|
|
778
|
+
outcome?: "aborted" | "open" | "pregnant" | "live_birth" | "stillbirth" | undefined;
|
|
779
|
+
sireId?: string | undefined;
|
|
780
|
+
expectedDue?: string | undefined;
|
|
781
|
+
calfCount?: number | undefined;
|
|
782
|
+
}, {
|
|
783
|
+
eventType: "birth" | "heat" | "serve" | "pregnancy_check";
|
|
784
|
+
eventDate: string;
|
|
785
|
+
method?: "natural" | "AI" | undefined;
|
|
786
|
+
notes?: string | undefined;
|
|
787
|
+
outcome?: "aborted" | "open" | "pregnant" | "live_birth" | "stillbirth" | undefined;
|
|
788
|
+
sireId?: string | undefined;
|
|
789
|
+
expectedDue?: string | undefined;
|
|
790
|
+
calfCount?: number | undefined;
|
|
791
|
+
}>;
|
|
792
|
+
export declare const createBreedingEventSchema: z.ZodObject<{
|
|
793
|
+
type: z.ZodLiteral<"livestock-breeding-events">;
|
|
794
|
+
attributes: z.ZodObject<{
|
|
795
|
+
eventType: z.ZodEnum<["heat", "serve", "pregnancy_check", "birth"]>;
|
|
796
|
+
eventDate: z.ZodString;
|
|
797
|
+
sireId: z.ZodOptional<z.ZodString>;
|
|
798
|
+
outcome: z.ZodOptional<z.ZodEnum<["open", "pregnant", "aborted", "live_birth", "stillbirth"]>>;
|
|
799
|
+
method: z.ZodOptional<z.ZodEnum<["natural", "AI"]>>;
|
|
800
|
+
expectedDue: z.ZodOptional<z.ZodString>;
|
|
801
|
+
calfCount: z.ZodOptional<z.ZodNumber>;
|
|
802
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
803
|
+
}, "strip", z.ZodTypeAny, {
|
|
804
|
+
eventType: "birth" | "heat" | "serve" | "pregnancy_check";
|
|
805
|
+
eventDate: string;
|
|
806
|
+
method?: "natural" | "AI" | undefined;
|
|
807
|
+
notes?: string | undefined;
|
|
808
|
+
outcome?: "aborted" | "open" | "pregnant" | "live_birth" | "stillbirth" | undefined;
|
|
809
|
+
sireId?: string | undefined;
|
|
810
|
+
expectedDue?: string | undefined;
|
|
811
|
+
calfCount?: number | undefined;
|
|
812
|
+
}, {
|
|
813
|
+
eventType: "birth" | "heat" | "serve" | "pregnancy_check";
|
|
814
|
+
eventDate: string;
|
|
815
|
+
method?: "natural" | "AI" | undefined;
|
|
816
|
+
notes?: string | undefined;
|
|
817
|
+
outcome?: "aborted" | "open" | "pregnant" | "live_birth" | "stillbirth" | undefined;
|
|
818
|
+
sireId?: string | undefined;
|
|
819
|
+
expectedDue?: string | undefined;
|
|
820
|
+
calfCount?: number | undefined;
|
|
821
|
+
}>;
|
|
822
|
+
}, "strip", z.ZodTypeAny, {
|
|
823
|
+
type: "livestock-breeding-events";
|
|
824
|
+
attributes: {
|
|
825
|
+
eventType: "birth" | "heat" | "serve" | "pregnancy_check";
|
|
826
|
+
eventDate: string;
|
|
827
|
+
method?: "natural" | "AI" | undefined;
|
|
828
|
+
notes?: string | undefined;
|
|
829
|
+
outcome?: "aborted" | "open" | "pregnant" | "live_birth" | "stillbirth" | undefined;
|
|
830
|
+
sireId?: string | undefined;
|
|
831
|
+
expectedDue?: string | undefined;
|
|
832
|
+
calfCount?: number | undefined;
|
|
833
|
+
};
|
|
834
|
+
}, {
|
|
835
|
+
type: "livestock-breeding-events";
|
|
836
|
+
attributes: {
|
|
837
|
+
eventType: "birth" | "heat" | "serve" | "pregnancy_check";
|
|
838
|
+
eventDate: string;
|
|
839
|
+
method?: "natural" | "AI" | undefined;
|
|
840
|
+
notes?: string | undefined;
|
|
841
|
+
outcome?: "aborted" | "open" | "pregnant" | "live_birth" | "stillbirth" | undefined;
|
|
842
|
+
sireId?: string | undefined;
|
|
843
|
+
expectedDue?: string | undefined;
|
|
844
|
+
calfCount?: number | undefined;
|
|
845
|
+
};
|
|
846
|
+
}>;
|
|
847
|
+
export declare const breedingEventResourceSchema: z.ZodObject<{
|
|
848
|
+
type: z.ZodLiteral<string>;
|
|
849
|
+
id: z.ZodString;
|
|
850
|
+
attributes: z.ZodObject<{
|
|
851
|
+
farmId: z.ZodString;
|
|
852
|
+
damId: z.ZodString;
|
|
853
|
+
sireId: z.ZodNullable<z.ZodString>;
|
|
854
|
+
eventType: z.ZodEnum<["heat", "serve", "pregnancy_check", "birth"]>;
|
|
855
|
+
eventDate: z.ZodString;
|
|
856
|
+
outcome: z.ZodNullable<z.ZodEnum<["open", "pregnant", "aborted", "live_birth", "stillbirth"]>>;
|
|
857
|
+
method: z.ZodNullable<z.ZodEnum<["natural", "AI"]>>;
|
|
858
|
+
expectedDue: z.ZodNullable<z.ZodString>;
|
|
859
|
+
calfCount: z.ZodNullable<z.ZodNumber>;
|
|
860
|
+
notes: z.ZodNullable<z.ZodString>;
|
|
861
|
+
offspringIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
862
|
+
} & {
|
|
863
|
+
createdAt: z.ZodString;
|
|
864
|
+
updatedAt: z.ZodString;
|
|
865
|
+
}, "strip", z.ZodTypeAny, {
|
|
866
|
+
createdAt: string;
|
|
867
|
+
updatedAt: string;
|
|
868
|
+
method: "natural" | "AI" | null;
|
|
869
|
+
farmId: string;
|
|
870
|
+
notes: string | null;
|
|
871
|
+
outcome: "aborted" | "open" | "pregnant" | "live_birth" | "stillbirth" | null;
|
|
872
|
+
eventType: "birth" | "heat" | "serve" | "pregnancy_check";
|
|
873
|
+
sireId: string | null;
|
|
874
|
+
damId: string;
|
|
875
|
+
eventDate: string;
|
|
876
|
+
expectedDue: string | null;
|
|
877
|
+
calfCount: number | null;
|
|
878
|
+
offspringIds?: string[] | undefined;
|
|
879
|
+
}, {
|
|
880
|
+
createdAt: string;
|
|
881
|
+
updatedAt: string;
|
|
882
|
+
method: "natural" | "AI" | null;
|
|
883
|
+
farmId: string;
|
|
884
|
+
notes: string | null;
|
|
885
|
+
outcome: "aborted" | "open" | "pregnant" | "live_birth" | "stillbirth" | null;
|
|
886
|
+
eventType: "birth" | "heat" | "serve" | "pregnancy_check";
|
|
887
|
+
sireId: string | null;
|
|
888
|
+
damId: string;
|
|
889
|
+
eventDate: string;
|
|
890
|
+
expectedDue: string | null;
|
|
891
|
+
calfCount: number | null;
|
|
892
|
+
offspringIds?: string[] | undefined;
|
|
893
|
+
}>;
|
|
894
|
+
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
895
|
+
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
896
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
897
|
+
}, "strip", z.ZodTypeAny, {
|
|
898
|
+
type: string;
|
|
899
|
+
id: string;
|
|
900
|
+
attributes: {
|
|
901
|
+
createdAt: string;
|
|
902
|
+
updatedAt: string;
|
|
903
|
+
method: "natural" | "AI" | null;
|
|
904
|
+
farmId: string;
|
|
905
|
+
notes: string | null;
|
|
906
|
+
outcome: "aborted" | "open" | "pregnant" | "live_birth" | "stillbirth" | null;
|
|
907
|
+
eventType: "birth" | "heat" | "serve" | "pregnancy_check";
|
|
908
|
+
sireId: string | null;
|
|
909
|
+
damId: string;
|
|
910
|
+
eventDate: string;
|
|
911
|
+
expectedDue: string | null;
|
|
912
|
+
calfCount: number | null;
|
|
913
|
+
offspringIds?: string[] | undefined;
|
|
914
|
+
};
|
|
915
|
+
relationships?: Record<string, unknown> | undefined;
|
|
916
|
+
links?: Record<string, string> | undefined;
|
|
917
|
+
meta?: Record<string, unknown> | undefined;
|
|
918
|
+
}, {
|
|
919
|
+
type: string;
|
|
920
|
+
id: string;
|
|
921
|
+
attributes: {
|
|
922
|
+
createdAt: string;
|
|
923
|
+
updatedAt: string;
|
|
924
|
+
method: "natural" | "AI" | null;
|
|
925
|
+
farmId: string;
|
|
926
|
+
notes: string | null;
|
|
927
|
+
outcome: "aborted" | "open" | "pregnant" | "live_birth" | "stillbirth" | null;
|
|
928
|
+
eventType: "birth" | "heat" | "serve" | "pregnancy_check";
|
|
929
|
+
sireId: string | null;
|
|
930
|
+
damId: string;
|
|
931
|
+
eventDate: string;
|
|
932
|
+
expectedDue: string | null;
|
|
933
|
+
calfCount: number | null;
|
|
934
|
+
offspringIds?: string[] | undefined;
|
|
935
|
+
};
|
|
936
|
+
relationships?: Record<string, unknown> | undefined;
|
|
937
|
+
links?: Record<string, string> | undefined;
|
|
938
|
+
meta?: Record<string, unknown> | undefined;
|
|
939
|
+
}>;
|
|
940
|
+
export declare const breedingEventResponseSchema: z.ZodObject<{
|
|
941
|
+
data: z.ZodObject<{
|
|
942
|
+
type: z.ZodLiteral<string>;
|
|
943
|
+
id: z.ZodString;
|
|
944
|
+
attributes: z.ZodObject<{
|
|
945
|
+
farmId: z.ZodString;
|
|
946
|
+
damId: z.ZodString;
|
|
947
|
+
sireId: z.ZodNullable<z.ZodString>;
|
|
948
|
+
eventType: z.ZodEnum<["heat", "serve", "pregnancy_check", "birth"]>;
|
|
949
|
+
eventDate: z.ZodString;
|
|
950
|
+
outcome: z.ZodNullable<z.ZodEnum<["open", "pregnant", "aborted", "live_birth", "stillbirth"]>>;
|
|
951
|
+
method: z.ZodNullable<z.ZodEnum<["natural", "AI"]>>;
|
|
952
|
+
expectedDue: z.ZodNullable<z.ZodString>;
|
|
953
|
+
calfCount: z.ZodNullable<z.ZodNumber>;
|
|
954
|
+
notes: z.ZodNullable<z.ZodString>;
|
|
955
|
+
offspringIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
956
|
+
} & {
|
|
957
|
+
createdAt: z.ZodString;
|
|
958
|
+
updatedAt: z.ZodString;
|
|
959
|
+
}, "strip", z.ZodTypeAny, {
|
|
960
|
+
createdAt: string;
|
|
961
|
+
updatedAt: string;
|
|
962
|
+
method: "natural" | "AI" | null;
|
|
963
|
+
farmId: string;
|
|
964
|
+
notes: string | null;
|
|
965
|
+
outcome: "aborted" | "open" | "pregnant" | "live_birth" | "stillbirth" | null;
|
|
966
|
+
eventType: "birth" | "heat" | "serve" | "pregnancy_check";
|
|
967
|
+
sireId: string | null;
|
|
968
|
+
damId: string;
|
|
969
|
+
eventDate: string;
|
|
970
|
+
expectedDue: string | null;
|
|
971
|
+
calfCount: number | null;
|
|
972
|
+
offspringIds?: string[] | undefined;
|
|
973
|
+
}, {
|
|
974
|
+
createdAt: string;
|
|
975
|
+
updatedAt: string;
|
|
976
|
+
method: "natural" | "AI" | null;
|
|
977
|
+
farmId: string;
|
|
978
|
+
notes: string | null;
|
|
979
|
+
outcome: "aborted" | "open" | "pregnant" | "live_birth" | "stillbirth" | null;
|
|
980
|
+
eventType: "birth" | "heat" | "serve" | "pregnancy_check";
|
|
981
|
+
sireId: string | null;
|
|
982
|
+
damId: string;
|
|
983
|
+
eventDate: string;
|
|
984
|
+
expectedDue: string | null;
|
|
985
|
+
calfCount: number | null;
|
|
986
|
+
offspringIds?: string[] | undefined;
|
|
987
|
+
}>;
|
|
988
|
+
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
989
|
+
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
990
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
991
|
+
}, "strip", z.ZodTypeAny, {
|
|
992
|
+
type: string;
|
|
993
|
+
id: string;
|
|
994
|
+
attributes: {
|
|
995
|
+
createdAt: string;
|
|
996
|
+
updatedAt: string;
|
|
997
|
+
method: "natural" | "AI" | null;
|
|
998
|
+
farmId: string;
|
|
999
|
+
notes: string | null;
|
|
1000
|
+
outcome: "aborted" | "open" | "pregnant" | "live_birth" | "stillbirth" | null;
|
|
1001
|
+
eventType: "birth" | "heat" | "serve" | "pregnancy_check";
|
|
1002
|
+
sireId: string | null;
|
|
1003
|
+
damId: string;
|
|
1004
|
+
eventDate: string;
|
|
1005
|
+
expectedDue: string | null;
|
|
1006
|
+
calfCount: number | null;
|
|
1007
|
+
offspringIds?: string[] | undefined;
|
|
1008
|
+
};
|
|
1009
|
+
relationships?: Record<string, unknown> | undefined;
|
|
1010
|
+
links?: Record<string, string> | undefined;
|
|
1011
|
+
meta?: Record<string, unknown> | undefined;
|
|
1012
|
+
}, {
|
|
1013
|
+
type: string;
|
|
1014
|
+
id: string;
|
|
1015
|
+
attributes: {
|
|
1016
|
+
createdAt: string;
|
|
1017
|
+
updatedAt: string;
|
|
1018
|
+
method: "natural" | "AI" | null;
|
|
1019
|
+
farmId: string;
|
|
1020
|
+
notes: string | null;
|
|
1021
|
+
outcome: "aborted" | "open" | "pregnant" | "live_birth" | "stillbirth" | null;
|
|
1022
|
+
eventType: "birth" | "heat" | "serve" | "pregnancy_check";
|
|
1023
|
+
sireId: string | null;
|
|
1024
|
+
damId: string;
|
|
1025
|
+
eventDate: string;
|
|
1026
|
+
expectedDue: string | null;
|
|
1027
|
+
calfCount: number | null;
|
|
1028
|
+
offspringIds?: string[] | undefined;
|
|
1029
|
+
};
|
|
1030
|
+
relationships?: Record<string, unknown> | undefined;
|
|
1031
|
+
links?: Record<string, string> | undefined;
|
|
1032
|
+
meta?: Record<string, unknown> | undefined;
|
|
1033
|
+
}>;
|
|
1034
|
+
included: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1035
|
+
type: z.ZodString;
|
|
1036
|
+
id: z.ZodString;
|
|
1037
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1038
|
+
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1039
|
+
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1040
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1041
|
+
}, "strip", z.ZodTypeAny, {
|
|
1042
|
+
type: string;
|
|
1043
|
+
id: string;
|
|
1044
|
+
attributes?: Record<string, unknown> | undefined;
|
|
1045
|
+
relationships?: Record<string, unknown> | undefined;
|
|
1046
|
+
links?: Record<string, string> | undefined;
|
|
1047
|
+
meta?: Record<string, unknown> | undefined;
|
|
1048
|
+
}, {
|
|
1049
|
+
type: string;
|
|
1050
|
+
id: string;
|
|
1051
|
+
attributes?: Record<string, unknown> | undefined;
|
|
1052
|
+
relationships?: Record<string, unknown> | undefined;
|
|
1053
|
+
links?: Record<string, string> | undefined;
|
|
1054
|
+
meta?: Record<string, unknown> | undefined;
|
|
1055
|
+
}>, "many">>;
|
|
1056
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1057
|
+
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1058
|
+
}, "strip", z.ZodTypeAny, {
|
|
1059
|
+
data: {
|
|
1060
|
+
type: string;
|
|
1061
|
+
id: string;
|
|
1062
|
+
attributes: {
|
|
1063
|
+
createdAt: string;
|
|
1064
|
+
updatedAt: string;
|
|
1065
|
+
method: "natural" | "AI" | null;
|
|
1066
|
+
farmId: string;
|
|
1067
|
+
notes: string | null;
|
|
1068
|
+
outcome: "aborted" | "open" | "pregnant" | "live_birth" | "stillbirth" | null;
|
|
1069
|
+
eventType: "birth" | "heat" | "serve" | "pregnancy_check";
|
|
1070
|
+
sireId: string | null;
|
|
1071
|
+
damId: string;
|
|
1072
|
+
eventDate: string;
|
|
1073
|
+
expectedDue: string | null;
|
|
1074
|
+
calfCount: number | null;
|
|
1075
|
+
offspringIds?: string[] | undefined;
|
|
1076
|
+
};
|
|
1077
|
+
relationships?: Record<string, unknown> | undefined;
|
|
1078
|
+
links?: Record<string, string> | undefined;
|
|
1079
|
+
meta?: Record<string, unknown> | undefined;
|
|
1080
|
+
};
|
|
1081
|
+
links?: Record<string, string> | undefined;
|
|
1082
|
+
meta?: Record<string, unknown> | undefined;
|
|
1083
|
+
included?: {
|
|
1084
|
+
type: string;
|
|
1085
|
+
id: string;
|
|
1086
|
+
attributes?: Record<string, unknown> | undefined;
|
|
1087
|
+
relationships?: Record<string, unknown> | undefined;
|
|
1088
|
+
links?: Record<string, string> | undefined;
|
|
1089
|
+
meta?: Record<string, unknown> | undefined;
|
|
1090
|
+
}[] | undefined;
|
|
1091
|
+
}, {
|
|
1092
|
+
data: {
|
|
1093
|
+
type: string;
|
|
1094
|
+
id: string;
|
|
1095
|
+
attributes: {
|
|
1096
|
+
createdAt: string;
|
|
1097
|
+
updatedAt: string;
|
|
1098
|
+
method: "natural" | "AI" | null;
|
|
1099
|
+
farmId: string;
|
|
1100
|
+
notes: string | null;
|
|
1101
|
+
outcome: "aborted" | "open" | "pregnant" | "live_birth" | "stillbirth" | null;
|
|
1102
|
+
eventType: "birth" | "heat" | "serve" | "pregnancy_check";
|
|
1103
|
+
sireId: string | null;
|
|
1104
|
+
damId: string;
|
|
1105
|
+
eventDate: string;
|
|
1106
|
+
expectedDue: string | null;
|
|
1107
|
+
calfCount: number | null;
|
|
1108
|
+
offspringIds?: string[] | undefined;
|
|
1109
|
+
};
|
|
1110
|
+
relationships?: Record<string, unknown> | undefined;
|
|
1111
|
+
links?: Record<string, string> | undefined;
|
|
1112
|
+
meta?: Record<string, unknown> | undefined;
|
|
1113
|
+
};
|
|
1114
|
+
links?: Record<string, string> | undefined;
|
|
1115
|
+
meta?: Record<string, unknown> | undefined;
|
|
1116
|
+
included?: {
|
|
1117
|
+
type: string;
|
|
1118
|
+
id: string;
|
|
1119
|
+
attributes?: Record<string, unknown> | undefined;
|
|
1120
|
+
relationships?: Record<string, unknown> | undefined;
|
|
1121
|
+
links?: Record<string, string> | undefined;
|
|
1122
|
+
meta?: Record<string, unknown> | undefined;
|
|
1123
|
+
}[] | undefined;
|
|
1124
|
+
}>;
|
|
1125
|
+
export declare const breedingEventListResponseSchema: z.ZodObject<{
|
|
1126
|
+
data: z.ZodArray<z.ZodObject<{
|
|
1127
|
+
type: z.ZodLiteral<string>;
|
|
1128
|
+
id: z.ZodString;
|
|
1129
|
+
attributes: z.ZodObject<{
|
|
1130
|
+
farmId: z.ZodString;
|
|
1131
|
+
damId: z.ZodString;
|
|
1132
|
+
sireId: z.ZodNullable<z.ZodString>;
|
|
1133
|
+
eventType: z.ZodEnum<["heat", "serve", "pregnancy_check", "birth"]>;
|
|
1134
|
+
eventDate: z.ZodString;
|
|
1135
|
+
outcome: z.ZodNullable<z.ZodEnum<["open", "pregnant", "aborted", "live_birth", "stillbirth"]>>;
|
|
1136
|
+
method: z.ZodNullable<z.ZodEnum<["natural", "AI"]>>;
|
|
1137
|
+
expectedDue: z.ZodNullable<z.ZodString>;
|
|
1138
|
+
calfCount: z.ZodNullable<z.ZodNumber>;
|
|
1139
|
+
notes: z.ZodNullable<z.ZodString>;
|
|
1140
|
+
offspringIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1141
|
+
} & {
|
|
1142
|
+
createdAt: z.ZodString;
|
|
1143
|
+
updatedAt: z.ZodString;
|
|
1144
|
+
}, "strip", z.ZodTypeAny, {
|
|
1145
|
+
createdAt: string;
|
|
1146
|
+
updatedAt: string;
|
|
1147
|
+
method: "natural" | "AI" | null;
|
|
1148
|
+
farmId: string;
|
|
1149
|
+
notes: string | null;
|
|
1150
|
+
outcome: "aborted" | "open" | "pregnant" | "live_birth" | "stillbirth" | null;
|
|
1151
|
+
eventType: "birth" | "heat" | "serve" | "pregnancy_check";
|
|
1152
|
+
sireId: string | null;
|
|
1153
|
+
damId: string;
|
|
1154
|
+
eventDate: string;
|
|
1155
|
+
expectedDue: string | null;
|
|
1156
|
+
calfCount: number | null;
|
|
1157
|
+
offspringIds?: string[] | undefined;
|
|
1158
|
+
}, {
|
|
1159
|
+
createdAt: string;
|
|
1160
|
+
updatedAt: string;
|
|
1161
|
+
method: "natural" | "AI" | null;
|
|
1162
|
+
farmId: string;
|
|
1163
|
+
notes: string | null;
|
|
1164
|
+
outcome: "aborted" | "open" | "pregnant" | "live_birth" | "stillbirth" | null;
|
|
1165
|
+
eventType: "birth" | "heat" | "serve" | "pregnancy_check";
|
|
1166
|
+
sireId: string | null;
|
|
1167
|
+
damId: string;
|
|
1168
|
+
eventDate: string;
|
|
1169
|
+
expectedDue: string | null;
|
|
1170
|
+
calfCount: number | null;
|
|
1171
|
+
offspringIds?: string[] | undefined;
|
|
1172
|
+
}>;
|
|
1173
|
+
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1174
|
+
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1175
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1176
|
+
}, "strip", z.ZodTypeAny, {
|
|
1177
|
+
type: string;
|
|
1178
|
+
id: string;
|
|
1179
|
+
attributes: {
|
|
1180
|
+
createdAt: string;
|
|
1181
|
+
updatedAt: string;
|
|
1182
|
+
method: "natural" | "AI" | null;
|
|
1183
|
+
farmId: string;
|
|
1184
|
+
notes: string | null;
|
|
1185
|
+
outcome: "aborted" | "open" | "pregnant" | "live_birth" | "stillbirth" | null;
|
|
1186
|
+
eventType: "birth" | "heat" | "serve" | "pregnancy_check";
|
|
1187
|
+
sireId: string | null;
|
|
1188
|
+
damId: string;
|
|
1189
|
+
eventDate: string;
|
|
1190
|
+
expectedDue: string | null;
|
|
1191
|
+
calfCount: number | null;
|
|
1192
|
+
offspringIds?: string[] | undefined;
|
|
1193
|
+
};
|
|
1194
|
+
relationships?: Record<string, unknown> | undefined;
|
|
1195
|
+
links?: Record<string, string> | undefined;
|
|
1196
|
+
meta?: Record<string, unknown> | undefined;
|
|
1197
|
+
}, {
|
|
1198
|
+
type: string;
|
|
1199
|
+
id: string;
|
|
1200
|
+
attributes: {
|
|
1201
|
+
createdAt: string;
|
|
1202
|
+
updatedAt: string;
|
|
1203
|
+
method: "natural" | "AI" | null;
|
|
1204
|
+
farmId: string;
|
|
1205
|
+
notes: string | null;
|
|
1206
|
+
outcome: "aborted" | "open" | "pregnant" | "live_birth" | "stillbirth" | null;
|
|
1207
|
+
eventType: "birth" | "heat" | "serve" | "pregnancy_check";
|
|
1208
|
+
sireId: string | null;
|
|
1209
|
+
damId: string;
|
|
1210
|
+
eventDate: string;
|
|
1211
|
+
expectedDue: string | null;
|
|
1212
|
+
calfCount: number | null;
|
|
1213
|
+
offspringIds?: string[] | undefined;
|
|
1214
|
+
};
|
|
1215
|
+
relationships?: Record<string, unknown> | undefined;
|
|
1216
|
+
links?: Record<string, string> | undefined;
|
|
1217
|
+
meta?: Record<string, unknown> | undefined;
|
|
1218
|
+
}>, "many">;
|
|
1219
|
+
included: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1220
|
+
type: z.ZodString;
|
|
1221
|
+
id: z.ZodString;
|
|
1222
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1223
|
+
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1224
|
+
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1225
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1226
|
+
}, "strip", z.ZodTypeAny, {
|
|
1227
|
+
type: string;
|
|
1228
|
+
id: string;
|
|
1229
|
+
attributes?: Record<string, unknown> | undefined;
|
|
1230
|
+
relationships?: Record<string, unknown> | undefined;
|
|
1231
|
+
links?: Record<string, string> | undefined;
|
|
1232
|
+
meta?: Record<string, unknown> | undefined;
|
|
1233
|
+
}, {
|
|
1234
|
+
type: string;
|
|
1235
|
+
id: string;
|
|
1236
|
+
attributes?: Record<string, unknown> | undefined;
|
|
1237
|
+
relationships?: Record<string, unknown> | undefined;
|
|
1238
|
+
links?: Record<string, string> | undefined;
|
|
1239
|
+
meta?: Record<string, unknown> | undefined;
|
|
1240
|
+
}>, "many">>;
|
|
1241
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1242
|
+
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1243
|
+
}, "strip", z.ZodTypeAny, {
|
|
1244
|
+
data: {
|
|
1245
|
+
type: string;
|
|
1246
|
+
id: string;
|
|
1247
|
+
attributes: {
|
|
1248
|
+
createdAt: string;
|
|
1249
|
+
updatedAt: string;
|
|
1250
|
+
method: "natural" | "AI" | null;
|
|
1251
|
+
farmId: string;
|
|
1252
|
+
notes: string | null;
|
|
1253
|
+
outcome: "aborted" | "open" | "pregnant" | "live_birth" | "stillbirth" | null;
|
|
1254
|
+
eventType: "birth" | "heat" | "serve" | "pregnancy_check";
|
|
1255
|
+
sireId: string | null;
|
|
1256
|
+
damId: string;
|
|
1257
|
+
eventDate: string;
|
|
1258
|
+
expectedDue: string | null;
|
|
1259
|
+
calfCount: number | null;
|
|
1260
|
+
offspringIds?: string[] | undefined;
|
|
1261
|
+
};
|
|
1262
|
+
relationships?: Record<string, unknown> | undefined;
|
|
1263
|
+
links?: Record<string, string> | undefined;
|
|
1264
|
+
meta?: Record<string, unknown> | undefined;
|
|
1265
|
+
}[];
|
|
1266
|
+
links?: Record<string, string> | undefined;
|
|
1267
|
+
meta?: Record<string, unknown> | undefined;
|
|
1268
|
+
included?: {
|
|
1269
|
+
type: string;
|
|
1270
|
+
id: string;
|
|
1271
|
+
attributes?: Record<string, unknown> | undefined;
|
|
1272
|
+
relationships?: Record<string, unknown> | undefined;
|
|
1273
|
+
links?: Record<string, string> | undefined;
|
|
1274
|
+
meta?: Record<string, unknown> | undefined;
|
|
1275
|
+
}[] | undefined;
|
|
1276
|
+
}, {
|
|
1277
|
+
data: {
|
|
1278
|
+
type: string;
|
|
1279
|
+
id: string;
|
|
1280
|
+
attributes: {
|
|
1281
|
+
createdAt: string;
|
|
1282
|
+
updatedAt: string;
|
|
1283
|
+
method: "natural" | "AI" | null;
|
|
1284
|
+
farmId: string;
|
|
1285
|
+
notes: string | null;
|
|
1286
|
+
outcome: "aborted" | "open" | "pregnant" | "live_birth" | "stillbirth" | null;
|
|
1287
|
+
eventType: "birth" | "heat" | "serve" | "pregnancy_check";
|
|
1288
|
+
sireId: string | null;
|
|
1289
|
+
damId: string;
|
|
1290
|
+
eventDate: string;
|
|
1291
|
+
expectedDue: string | null;
|
|
1292
|
+
calfCount: number | null;
|
|
1293
|
+
offspringIds?: string[] | undefined;
|
|
1294
|
+
};
|
|
1295
|
+
relationships?: Record<string, unknown> | undefined;
|
|
1296
|
+
links?: Record<string, string> | undefined;
|
|
1297
|
+
meta?: Record<string, unknown> | undefined;
|
|
1298
|
+
}[];
|
|
1299
|
+
links?: Record<string, string> | undefined;
|
|
1300
|
+
meta?: Record<string, unknown> | undefined;
|
|
1301
|
+
included?: {
|
|
1302
|
+
type: string;
|
|
1303
|
+
id: string;
|
|
1304
|
+
attributes?: Record<string, unknown> | undefined;
|
|
1305
|
+
relationships?: Record<string, unknown> | undefined;
|
|
1306
|
+
links?: Record<string, string> | undefined;
|
|
1307
|
+
meta?: Record<string, unknown> | undefined;
|
|
1308
|
+
}[] | undefined;
|
|
1309
|
+
}>;
|
|
1310
|
+
export declare const createSaleTicketAttributesSchema: z.ZodObject<{
|
|
1311
|
+
saleDate: z.ZodString;
|
|
1312
|
+
buyerName: z.ZodOptional<z.ZodString>;
|
|
1313
|
+
weightKg: z.ZodOptional<z.ZodNumber>;
|
|
1314
|
+
totalAmount: z.ZodNumber;
|
|
1315
|
+
currency: z.ZodDefault<z.ZodString>;
|
|
1316
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
1317
|
+
}, "strip", z.ZodTypeAny, {
|
|
1318
|
+
currency: string;
|
|
1319
|
+
totalAmount: number;
|
|
1320
|
+
saleDate: string;
|
|
1321
|
+
notes?: string | undefined;
|
|
1322
|
+
buyerName?: string | undefined;
|
|
1323
|
+
weightKg?: number | undefined;
|
|
1324
|
+
}, {
|
|
1325
|
+
totalAmount: number;
|
|
1326
|
+
saleDate: string;
|
|
1327
|
+
currency?: string | undefined;
|
|
1328
|
+
notes?: string | undefined;
|
|
1329
|
+
buyerName?: string | undefined;
|
|
1330
|
+
weightKg?: number | undefined;
|
|
1331
|
+
}>;
|
|
1332
|
+
export declare const createSaleTicketSchema: z.ZodObject<{
|
|
1333
|
+
type: z.ZodLiteral<"livestock-sale-tickets">;
|
|
1334
|
+
attributes: z.ZodObject<{
|
|
1335
|
+
saleDate: z.ZodString;
|
|
1336
|
+
buyerName: z.ZodOptional<z.ZodString>;
|
|
1337
|
+
weightKg: z.ZodOptional<z.ZodNumber>;
|
|
1338
|
+
totalAmount: z.ZodNumber;
|
|
1339
|
+
currency: z.ZodDefault<z.ZodString>;
|
|
1340
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
1341
|
+
}, "strip", z.ZodTypeAny, {
|
|
1342
|
+
currency: string;
|
|
1343
|
+
totalAmount: number;
|
|
1344
|
+
saleDate: string;
|
|
1345
|
+
notes?: string | undefined;
|
|
1346
|
+
buyerName?: string | undefined;
|
|
1347
|
+
weightKg?: number | undefined;
|
|
1348
|
+
}, {
|
|
1349
|
+
totalAmount: number;
|
|
1350
|
+
saleDate: string;
|
|
1351
|
+
currency?: string | undefined;
|
|
1352
|
+
notes?: string | undefined;
|
|
1353
|
+
buyerName?: string | undefined;
|
|
1354
|
+
weightKg?: number | undefined;
|
|
1355
|
+
}>;
|
|
1356
|
+
}, "strip", z.ZodTypeAny, {
|
|
1357
|
+
type: "livestock-sale-tickets";
|
|
1358
|
+
attributes: {
|
|
1359
|
+
currency: string;
|
|
1360
|
+
totalAmount: number;
|
|
1361
|
+
saleDate: string;
|
|
1362
|
+
notes?: string | undefined;
|
|
1363
|
+
buyerName?: string | undefined;
|
|
1364
|
+
weightKg?: number | undefined;
|
|
1365
|
+
};
|
|
1366
|
+
}, {
|
|
1367
|
+
type: "livestock-sale-tickets";
|
|
1368
|
+
attributes: {
|
|
1369
|
+
totalAmount: number;
|
|
1370
|
+
saleDate: string;
|
|
1371
|
+
currency?: string | undefined;
|
|
1372
|
+
notes?: string | undefined;
|
|
1373
|
+
buyerName?: string | undefined;
|
|
1374
|
+
weightKg?: number | undefined;
|
|
1375
|
+
};
|
|
1376
|
+
}>;
|
|
1377
|
+
export declare const saleTicketAttributesSchema: z.ZodObject<{
|
|
1378
|
+
livestockId: z.ZodString;
|
|
1379
|
+
movementId: z.ZodString;
|
|
1380
|
+
revenueId: z.ZodString;
|
|
1381
|
+
saleDate: z.ZodString;
|
|
1382
|
+
buyerName: z.ZodNullable<z.ZodString>;
|
|
1383
|
+
weightKg: z.ZodNullable<z.ZodNumber>;
|
|
1384
|
+
totalAmount: z.ZodNumber;
|
|
1385
|
+
currency: z.ZodString;
|
|
1386
|
+
status: z.ZodLiteral<"SOLD">;
|
|
1387
|
+
notes: z.ZodNullable<z.ZodString>;
|
|
1388
|
+
}, "strip", z.ZodTypeAny, {
|
|
1389
|
+
status: "SOLD";
|
|
1390
|
+
currency: string;
|
|
1391
|
+
notes: string | null;
|
|
1392
|
+
totalAmount: number;
|
|
1393
|
+
buyerName: string | null;
|
|
1394
|
+
saleDate: string;
|
|
1395
|
+
weightKg: number | null;
|
|
1396
|
+
livestockId: string;
|
|
1397
|
+
movementId: string;
|
|
1398
|
+
revenueId: string;
|
|
1399
|
+
}, {
|
|
1400
|
+
status: "SOLD";
|
|
1401
|
+
currency: string;
|
|
1402
|
+
notes: string | null;
|
|
1403
|
+
totalAmount: number;
|
|
1404
|
+
buyerName: string | null;
|
|
1405
|
+
saleDate: string;
|
|
1406
|
+
weightKg: number | null;
|
|
1407
|
+
livestockId: string;
|
|
1408
|
+
movementId: string;
|
|
1409
|
+
revenueId: string;
|
|
1410
|
+
}>;
|
|
1411
|
+
export declare const saleTicketResourceSchema: z.ZodObject<{
|
|
1412
|
+
type: z.ZodLiteral<string>;
|
|
1413
|
+
id: z.ZodString;
|
|
1414
|
+
attributes: z.ZodObject<{
|
|
1415
|
+
livestockId: z.ZodString;
|
|
1416
|
+
movementId: z.ZodString;
|
|
1417
|
+
revenueId: z.ZodString;
|
|
1418
|
+
saleDate: z.ZodString;
|
|
1419
|
+
buyerName: z.ZodNullable<z.ZodString>;
|
|
1420
|
+
weightKg: z.ZodNullable<z.ZodNumber>;
|
|
1421
|
+
totalAmount: z.ZodNumber;
|
|
1422
|
+
currency: z.ZodString;
|
|
1423
|
+
status: z.ZodLiteral<"SOLD">;
|
|
1424
|
+
notes: z.ZodNullable<z.ZodString>;
|
|
1425
|
+
}, "strip", z.ZodTypeAny, {
|
|
1426
|
+
status: "SOLD";
|
|
1427
|
+
currency: string;
|
|
1428
|
+
notes: string | null;
|
|
1429
|
+
totalAmount: number;
|
|
1430
|
+
buyerName: string | null;
|
|
1431
|
+
saleDate: string;
|
|
1432
|
+
weightKg: number | null;
|
|
1433
|
+
livestockId: string;
|
|
1434
|
+
movementId: string;
|
|
1435
|
+
revenueId: string;
|
|
1436
|
+
}, {
|
|
1437
|
+
status: "SOLD";
|
|
1438
|
+
currency: string;
|
|
1439
|
+
notes: string | null;
|
|
1440
|
+
totalAmount: number;
|
|
1441
|
+
buyerName: string | null;
|
|
1442
|
+
saleDate: string;
|
|
1443
|
+
weightKg: number | null;
|
|
1444
|
+
livestockId: string;
|
|
1445
|
+
movementId: string;
|
|
1446
|
+
revenueId: string;
|
|
1447
|
+
}>;
|
|
1448
|
+
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1449
|
+
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1450
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1451
|
+
}, "strip", z.ZodTypeAny, {
|
|
1452
|
+
type: string;
|
|
1453
|
+
id: string;
|
|
1454
|
+
attributes: {
|
|
1455
|
+
status: "SOLD";
|
|
1456
|
+
currency: string;
|
|
1457
|
+
notes: string | null;
|
|
1458
|
+
totalAmount: number;
|
|
1459
|
+
buyerName: string | null;
|
|
1460
|
+
saleDate: string;
|
|
1461
|
+
weightKg: number | null;
|
|
1462
|
+
livestockId: string;
|
|
1463
|
+
movementId: string;
|
|
1464
|
+
revenueId: string;
|
|
1465
|
+
};
|
|
1466
|
+
relationships?: Record<string, unknown> | undefined;
|
|
1467
|
+
links?: Record<string, string> | undefined;
|
|
1468
|
+
meta?: Record<string, unknown> | undefined;
|
|
1469
|
+
}, {
|
|
1470
|
+
type: string;
|
|
1471
|
+
id: string;
|
|
1472
|
+
attributes: {
|
|
1473
|
+
status: "SOLD";
|
|
1474
|
+
currency: string;
|
|
1475
|
+
notes: string | null;
|
|
1476
|
+
totalAmount: number;
|
|
1477
|
+
buyerName: string | null;
|
|
1478
|
+
saleDate: string;
|
|
1479
|
+
weightKg: number | null;
|
|
1480
|
+
livestockId: string;
|
|
1481
|
+
movementId: string;
|
|
1482
|
+
revenueId: string;
|
|
1483
|
+
};
|
|
1484
|
+
relationships?: Record<string, unknown> | undefined;
|
|
1485
|
+
links?: Record<string, string> | undefined;
|
|
1486
|
+
meta?: Record<string, unknown> | undefined;
|
|
1487
|
+
}>;
|
|
1488
|
+
export declare const saleTicketResponseSchema: z.ZodObject<{
|
|
1489
|
+
data: z.ZodObject<{
|
|
1490
|
+
type: z.ZodLiteral<string>;
|
|
1491
|
+
id: z.ZodString;
|
|
1492
|
+
attributes: z.ZodObject<{
|
|
1493
|
+
livestockId: z.ZodString;
|
|
1494
|
+
movementId: z.ZodString;
|
|
1495
|
+
revenueId: z.ZodString;
|
|
1496
|
+
saleDate: z.ZodString;
|
|
1497
|
+
buyerName: z.ZodNullable<z.ZodString>;
|
|
1498
|
+
weightKg: z.ZodNullable<z.ZodNumber>;
|
|
1499
|
+
totalAmount: z.ZodNumber;
|
|
1500
|
+
currency: z.ZodString;
|
|
1501
|
+
status: z.ZodLiteral<"SOLD">;
|
|
1502
|
+
notes: z.ZodNullable<z.ZodString>;
|
|
1503
|
+
}, "strip", z.ZodTypeAny, {
|
|
1504
|
+
status: "SOLD";
|
|
1505
|
+
currency: string;
|
|
1506
|
+
notes: string | null;
|
|
1507
|
+
totalAmount: number;
|
|
1508
|
+
buyerName: string | null;
|
|
1509
|
+
saleDate: string;
|
|
1510
|
+
weightKg: number | null;
|
|
1511
|
+
livestockId: string;
|
|
1512
|
+
movementId: string;
|
|
1513
|
+
revenueId: string;
|
|
1514
|
+
}, {
|
|
1515
|
+
status: "SOLD";
|
|
1516
|
+
currency: string;
|
|
1517
|
+
notes: string | null;
|
|
1518
|
+
totalAmount: number;
|
|
1519
|
+
buyerName: string | null;
|
|
1520
|
+
saleDate: string;
|
|
1521
|
+
weightKg: number | null;
|
|
1522
|
+
livestockId: string;
|
|
1523
|
+
movementId: string;
|
|
1524
|
+
revenueId: string;
|
|
1525
|
+
}>;
|
|
1526
|
+
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1527
|
+
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1528
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1529
|
+
}, "strip", z.ZodTypeAny, {
|
|
1530
|
+
type: string;
|
|
1531
|
+
id: string;
|
|
1532
|
+
attributes: {
|
|
1533
|
+
status: "SOLD";
|
|
1534
|
+
currency: string;
|
|
1535
|
+
notes: string | null;
|
|
1536
|
+
totalAmount: number;
|
|
1537
|
+
buyerName: string | null;
|
|
1538
|
+
saleDate: string;
|
|
1539
|
+
weightKg: number | null;
|
|
1540
|
+
livestockId: string;
|
|
1541
|
+
movementId: string;
|
|
1542
|
+
revenueId: string;
|
|
1543
|
+
};
|
|
1544
|
+
relationships?: Record<string, unknown> | undefined;
|
|
1545
|
+
links?: Record<string, string> | undefined;
|
|
1546
|
+
meta?: Record<string, unknown> | undefined;
|
|
1547
|
+
}, {
|
|
1548
|
+
type: string;
|
|
1549
|
+
id: string;
|
|
1550
|
+
attributes: {
|
|
1551
|
+
status: "SOLD";
|
|
1552
|
+
currency: string;
|
|
1553
|
+
notes: string | null;
|
|
1554
|
+
totalAmount: number;
|
|
1555
|
+
buyerName: string | null;
|
|
1556
|
+
saleDate: string;
|
|
1557
|
+
weightKg: number | null;
|
|
1558
|
+
livestockId: string;
|
|
1559
|
+
movementId: string;
|
|
1560
|
+
revenueId: string;
|
|
1561
|
+
};
|
|
1562
|
+
relationships?: Record<string, unknown> | undefined;
|
|
1563
|
+
links?: Record<string, string> | undefined;
|
|
1564
|
+
meta?: Record<string, unknown> | undefined;
|
|
1565
|
+
}>;
|
|
1566
|
+
included: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1567
|
+
type: z.ZodString;
|
|
1568
|
+
id: z.ZodString;
|
|
1569
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1570
|
+
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1571
|
+
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1572
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1573
|
+
}, "strip", z.ZodTypeAny, {
|
|
1574
|
+
type: string;
|
|
1575
|
+
id: string;
|
|
1576
|
+
attributes?: Record<string, unknown> | undefined;
|
|
1577
|
+
relationships?: Record<string, unknown> | undefined;
|
|
1578
|
+
links?: Record<string, string> | undefined;
|
|
1579
|
+
meta?: Record<string, unknown> | undefined;
|
|
1580
|
+
}, {
|
|
1581
|
+
type: string;
|
|
1582
|
+
id: string;
|
|
1583
|
+
attributes?: Record<string, unknown> | undefined;
|
|
1584
|
+
relationships?: Record<string, unknown> | undefined;
|
|
1585
|
+
links?: Record<string, string> | undefined;
|
|
1586
|
+
meta?: Record<string, unknown> | undefined;
|
|
1587
|
+
}>, "many">>;
|
|
1588
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1589
|
+
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1590
|
+
}, "strip", z.ZodTypeAny, {
|
|
1591
|
+
data: {
|
|
1592
|
+
type: string;
|
|
1593
|
+
id: string;
|
|
1594
|
+
attributes: {
|
|
1595
|
+
status: "SOLD";
|
|
1596
|
+
currency: string;
|
|
1597
|
+
notes: string | null;
|
|
1598
|
+
totalAmount: number;
|
|
1599
|
+
buyerName: string | null;
|
|
1600
|
+
saleDate: string;
|
|
1601
|
+
weightKg: number | null;
|
|
1602
|
+
livestockId: string;
|
|
1603
|
+
movementId: string;
|
|
1604
|
+
revenueId: string;
|
|
1605
|
+
};
|
|
1606
|
+
relationships?: Record<string, unknown> | undefined;
|
|
1607
|
+
links?: Record<string, string> | undefined;
|
|
1608
|
+
meta?: Record<string, unknown> | undefined;
|
|
1609
|
+
};
|
|
1610
|
+
links?: Record<string, string> | undefined;
|
|
1611
|
+
meta?: Record<string, unknown> | undefined;
|
|
1612
|
+
included?: {
|
|
1613
|
+
type: string;
|
|
1614
|
+
id: string;
|
|
1615
|
+
attributes?: Record<string, unknown> | undefined;
|
|
1616
|
+
relationships?: Record<string, unknown> | undefined;
|
|
1617
|
+
links?: Record<string, string> | undefined;
|
|
1618
|
+
meta?: Record<string, unknown> | undefined;
|
|
1619
|
+
}[] | undefined;
|
|
1620
|
+
}, {
|
|
1621
|
+
data: {
|
|
1622
|
+
type: string;
|
|
1623
|
+
id: string;
|
|
1624
|
+
attributes: {
|
|
1625
|
+
status: "SOLD";
|
|
1626
|
+
currency: string;
|
|
1627
|
+
notes: string | null;
|
|
1628
|
+
totalAmount: number;
|
|
1629
|
+
buyerName: string | null;
|
|
1630
|
+
saleDate: string;
|
|
1631
|
+
weightKg: number | null;
|
|
1632
|
+
livestockId: string;
|
|
1633
|
+
movementId: string;
|
|
1634
|
+
revenueId: string;
|
|
1635
|
+
};
|
|
1636
|
+
relationships?: Record<string, unknown> | undefined;
|
|
1637
|
+
links?: Record<string, string> | undefined;
|
|
1638
|
+
meta?: Record<string, unknown> | undefined;
|
|
1639
|
+
};
|
|
1640
|
+
links?: Record<string, string> | undefined;
|
|
1641
|
+
meta?: Record<string, unknown> | undefined;
|
|
1642
|
+
included?: {
|
|
1643
|
+
type: string;
|
|
1644
|
+
id: string;
|
|
1645
|
+
attributes?: Record<string, unknown> | undefined;
|
|
1646
|
+
relationships?: Record<string, unknown> | undefined;
|
|
1647
|
+
links?: Record<string, string> | undefined;
|
|
1648
|
+
meta?: Record<string, unknown> | undefined;
|
|
1649
|
+
}[] | undefined;
|
|
1650
|
+
}>;
|
|
1651
|
+
export declare const famachaAttributesSchema: z.ZodObject<{
|
|
1652
|
+
livestockId: z.ZodString;
|
|
1653
|
+
scoreDate: z.ZodString;
|
|
1654
|
+
score: z.ZodNumber;
|
|
1655
|
+
treat: z.ZodBoolean;
|
|
1656
|
+
product: z.ZodNullable<z.ZodString>;
|
|
1657
|
+
notes: z.ZodNullable<z.ZodString>;
|
|
1658
|
+
} & {
|
|
1659
|
+
createdAt: z.ZodString;
|
|
1660
|
+
}, "strip", z.ZodTypeAny, {
|
|
1661
|
+
createdAt: string;
|
|
1662
|
+
notes: string | null;
|
|
1663
|
+
score: number;
|
|
1664
|
+
livestockId: string;
|
|
1665
|
+
scoreDate: string;
|
|
1666
|
+
treat: boolean;
|
|
1667
|
+
product: string | null;
|
|
1668
|
+
}, {
|
|
1669
|
+
createdAt: string;
|
|
1670
|
+
notes: string | null;
|
|
1671
|
+
score: number;
|
|
1672
|
+
livestockId: string;
|
|
1673
|
+
scoreDate: string;
|
|
1674
|
+
treat: boolean;
|
|
1675
|
+
product: string | null;
|
|
1676
|
+
}>;
|
|
1677
|
+
export declare const createFamachaAttributesSchema: z.ZodObject<{
|
|
1678
|
+
scoreDate: z.ZodString;
|
|
1679
|
+
score: z.ZodNumber;
|
|
1680
|
+
treat: z.ZodDefault<z.ZodBoolean>;
|
|
1681
|
+
product: z.ZodOptional<z.ZodString>;
|
|
1682
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
1683
|
+
}, "strip", z.ZodTypeAny, {
|
|
1684
|
+
score: number;
|
|
1685
|
+
scoreDate: string;
|
|
1686
|
+
treat: boolean;
|
|
1687
|
+
notes?: string | undefined;
|
|
1688
|
+
product?: string | undefined;
|
|
1689
|
+
}, {
|
|
1690
|
+
score: number;
|
|
1691
|
+
scoreDate: string;
|
|
1692
|
+
notes?: string | undefined;
|
|
1693
|
+
treat?: boolean | undefined;
|
|
1694
|
+
product?: string | undefined;
|
|
1695
|
+
}>;
|
|
1696
|
+
export declare const createFamachaSchema: z.ZodObject<{
|
|
1697
|
+
type: z.ZodLiteral<"livestock-famacha-scores">;
|
|
1698
|
+
attributes: z.ZodObject<{
|
|
1699
|
+
scoreDate: z.ZodString;
|
|
1700
|
+
score: z.ZodNumber;
|
|
1701
|
+
treat: z.ZodDefault<z.ZodBoolean>;
|
|
1702
|
+
product: z.ZodOptional<z.ZodString>;
|
|
1703
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
1704
|
+
}, "strip", z.ZodTypeAny, {
|
|
1705
|
+
score: number;
|
|
1706
|
+
scoreDate: string;
|
|
1707
|
+
treat: boolean;
|
|
1708
|
+
notes?: string | undefined;
|
|
1709
|
+
product?: string | undefined;
|
|
1710
|
+
}, {
|
|
1711
|
+
score: number;
|
|
1712
|
+
scoreDate: string;
|
|
1713
|
+
notes?: string | undefined;
|
|
1714
|
+
treat?: boolean | undefined;
|
|
1715
|
+
product?: string | undefined;
|
|
1716
|
+
}>;
|
|
1717
|
+
}, "strip", z.ZodTypeAny, {
|
|
1718
|
+
type: "livestock-famacha-scores";
|
|
1719
|
+
attributes: {
|
|
1720
|
+
score: number;
|
|
1721
|
+
scoreDate: string;
|
|
1722
|
+
treat: boolean;
|
|
1723
|
+
notes?: string | undefined;
|
|
1724
|
+
product?: string | undefined;
|
|
1725
|
+
};
|
|
1726
|
+
}, {
|
|
1727
|
+
type: "livestock-famacha-scores";
|
|
1728
|
+
attributes: {
|
|
1729
|
+
score: number;
|
|
1730
|
+
scoreDate: string;
|
|
1731
|
+
notes?: string | undefined;
|
|
1732
|
+
treat?: boolean | undefined;
|
|
1733
|
+
product?: string | undefined;
|
|
1734
|
+
};
|
|
1735
|
+
}>;
|
|
1736
|
+
export declare const famachaResourceSchema: z.ZodObject<{
|
|
1737
|
+
type: z.ZodLiteral<string>;
|
|
1738
|
+
id: z.ZodString;
|
|
1739
|
+
attributes: z.ZodObject<{
|
|
1740
|
+
livestockId: z.ZodString;
|
|
1741
|
+
scoreDate: z.ZodString;
|
|
1742
|
+
score: z.ZodNumber;
|
|
1743
|
+
treat: z.ZodBoolean;
|
|
1744
|
+
product: z.ZodNullable<z.ZodString>;
|
|
1745
|
+
notes: z.ZodNullable<z.ZodString>;
|
|
1746
|
+
} & {
|
|
1747
|
+
createdAt: z.ZodString;
|
|
1748
|
+
}, "strip", z.ZodTypeAny, {
|
|
1749
|
+
createdAt: string;
|
|
1750
|
+
notes: string | null;
|
|
1751
|
+
score: number;
|
|
1752
|
+
livestockId: string;
|
|
1753
|
+
scoreDate: string;
|
|
1754
|
+
treat: boolean;
|
|
1755
|
+
product: string | null;
|
|
1756
|
+
}, {
|
|
1757
|
+
createdAt: string;
|
|
1758
|
+
notes: string | null;
|
|
1759
|
+
score: number;
|
|
1760
|
+
livestockId: string;
|
|
1761
|
+
scoreDate: string;
|
|
1762
|
+
treat: boolean;
|
|
1763
|
+
product: string | null;
|
|
1764
|
+
}>;
|
|
1765
|
+
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1766
|
+
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1767
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1768
|
+
}, "strip", z.ZodTypeAny, {
|
|
1769
|
+
type: string;
|
|
1770
|
+
id: string;
|
|
1771
|
+
attributes: {
|
|
1772
|
+
createdAt: string;
|
|
1773
|
+
notes: string | null;
|
|
1774
|
+
score: number;
|
|
1775
|
+
livestockId: string;
|
|
1776
|
+
scoreDate: string;
|
|
1777
|
+
treat: boolean;
|
|
1778
|
+
product: string | null;
|
|
1779
|
+
};
|
|
1780
|
+
relationships?: Record<string, unknown> | undefined;
|
|
1781
|
+
links?: Record<string, string> | undefined;
|
|
1782
|
+
meta?: Record<string, unknown> | undefined;
|
|
1783
|
+
}, {
|
|
1784
|
+
type: string;
|
|
1785
|
+
id: string;
|
|
1786
|
+
attributes: {
|
|
1787
|
+
createdAt: string;
|
|
1788
|
+
notes: string | null;
|
|
1789
|
+
score: number;
|
|
1790
|
+
livestockId: string;
|
|
1791
|
+
scoreDate: string;
|
|
1792
|
+
treat: boolean;
|
|
1793
|
+
product: string | null;
|
|
1794
|
+
};
|
|
1795
|
+
relationships?: Record<string, unknown> | undefined;
|
|
1796
|
+
links?: Record<string, string> | undefined;
|
|
1797
|
+
meta?: Record<string, unknown> | undefined;
|
|
1798
|
+
}>;
|
|
1799
|
+
export declare const famachaResponseSchema: z.ZodObject<{
|
|
1800
|
+
data: z.ZodObject<{
|
|
1801
|
+
type: z.ZodLiteral<string>;
|
|
1802
|
+
id: z.ZodString;
|
|
1803
|
+
attributes: z.ZodObject<{
|
|
1804
|
+
livestockId: z.ZodString;
|
|
1805
|
+
scoreDate: z.ZodString;
|
|
1806
|
+
score: z.ZodNumber;
|
|
1807
|
+
treat: z.ZodBoolean;
|
|
1808
|
+
product: z.ZodNullable<z.ZodString>;
|
|
1809
|
+
notes: z.ZodNullable<z.ZodString>;
|
|
1810
|
+
} & {
|
|
1811
|
+
createdAt: z.ZodString;
|
|
1812
|
+
}, "strip", z.ZodTypeAny, {
|
|
1813
|
+
createdAt: string;
|
|
1814
|
+
notes: string | null;
|
|
1815
|
+
score: number;
|
|
1816
|
+
livestockId: string;
|
|
1817
|
+
scoreDate: string;
|
|
1818
|
+
treat: boolean;
|
|
1819
|
+
product: string | null;
|
|
1820
|
+
}, {
|
|
1821
|
+
createdAt: string;
|
|
1822
|
+
notes: string | null;
|
|
1823
|
+
score: number;
|
|
1824
|
+
livestockId: string;
|
|
1825
|
+
scoreDate: string;
|
|
1826
|
+
treat: boolean;
|
|
1827
|
+
product: string | null;
|
|
1828
|
+
}>;
|
|
1829
|
+
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1830
|
+
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1831
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1832
|
+
}, "strip", z.ZodTypeAny, {
|
|
1833
|
+
type: string;
|
|
1834
|
+
id: string;
|
|
1835
|
+
attributes: {
|
|
1836
|
+
createdAt: string;
|
|
1837
|
+
notes: string | null;
|
|
1838
|
+
score: number;
|
|
1839
|
+
livestockId: string;
|
|
1840
|
+
scoreDate: string;
|
|
1841
|
+
treat: boolean;
|
|
1842
|
+
product: string | null;
|
|
1843
|
+
};
|
|
1844
|
+
relationships?: Record<string, unknown> | undefined;
|
|
1845
|
+
links?: Record<string, string> | undefined;
|
|
1846
|
+
meta?: Record<string, unknown> | undefined;
|
|
1847
|
+
}, {
|
|
1848
|
+
type: string;
|
|
1849
|
+
id: string;
|
|
1850
|
+
attributes: {
|
|
1851
|
+
createdAt: string;
|
|
1852
|
+
notes: string | null;
|
|
1853
|
+
score: number;
|
|
1854
|
+
livestockId: string;
|
|
1855
|
+
scoreDate: string;
|
|
1856
|
+
treat: boolean;
|
|
1857
|
+
product: string | null;
|
|
1858
|
+
};
|
|
1859
|
+
relationships?: Record<string, unknown> | undefined;
|
|
1860
|
+
links?: Record<string, string> | undefined;
|
|
1861
|
+
meta?: Record<string, unknown> | undefined;
|
|
1862
|
+
}>;
|
|
1863
|
+
included: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1864
|
+
type: z.ZodString;
|
|
1865
|
+
id: z.ZodString;
|
|
1866
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1867
|
+
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1868
|
+
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1869
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1870
|
+
}, "strip", z.ZodTypeAny, {
|
|
1871
|
+
type: string;
|
|
1872
|
+
id: string;
|
|
1873
|
+
attributes?: Record<string, unknown> | undefined;
|
|
1874
|
+
relationships?: Record<string, unknown> | undefined;
|
|
1875
|
+
links?: Record<string, string> | undefined;
|
|
1876
|
+
meta?: Record<string, unknown> | undefined;
|
|
1877
|
+
}, {
|
|
1878
|
+
type: string;
|
|
1879
|
+
id: string;
|
|
1880
|
+
attributes?: Record<string, unknown> | undefined;
|
|
1881
|
+
relationships?: Record<string, unknown> | undefined;
|
|
1882
|
+
links?: Record<string, string> | undefined;
|
|
1883
|
+
meta?: Record<string, unknown> | undefined;
|
|
1884
|
+
}>, "many">>;
|
|
1885
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1886
|
+
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1887
|
+
}, "strip", z.ZodTypeAny, {
|
|
1888
|
+
data: {
|
|
1889
|
+
type: string;
|
|
1890
|
+
id: string;
|
|
1891
|
+
attributes: {
|
|
1892
|
+
createdAt: string;
|
|
1893
|
+
notes: string | null;
|
|
1894
|
+
score: number;
|
|
1895
|
+
livestockId: string;
|
|
1896
|
+
scoreDate: string;
|
|
1897
|
+
treat: boolean;
|
|
1898
|
+
product: string | null;
|
|
1899
|
+
};
|
|
1900
|
+
relationships?: Record<string, unknown> | undefined;
|
|
1901
|
+
links?: Record<string, string> | undefined;
|
|
1902
|
+
meta?: Record<string, unknown> | undefined;
|
|
1903
|
+
};
|
|
1904
|
+
links?: Record<string, string> | undefined;
|
|
1905
|
+
meta?: Record<string, unknown> | undefined;
|
|
1906
|
+
included?: {
|
|
1907
|
+
type: string;
|
|
1908
|
+
id: string;
|
|
1909
|
+
attributes?: Record<string, unknown> | undefined;
|
|
1910
|
+
relationships?: Record<string, unknown> | undefined;
|
|
1911
|
+
links?: Record<string, string> | undefined;
|
|
1912
|
+
meta?: Record<string, unknown> | undefined;
|
|
1913
|
+
}[] | undefined;
|
|
1914
|
+
}, {
|
|
1915
|
+
data: {
|
|
1916
|
+
type: string;
|
|
1917
|
+
id: string;
|
|
1918
|
+
attributes: {
|
|
1919
|
+
createdAt: string;
|
|
1920
|
+
notes: string | null;
|
|
1921
|
+
score: number;
|
|
1922
|
+
livestockId: string;
|
|
1923
|
+
scoreDate: string;
|
|
1924
|
+
treat: boolean;
|
|
1925
|
+
product: string | null;
|
|
1926
|
+
};
|
|
1927
|
+
relationships?: Record<string, unknown> | undefined;
|
|
1928
|
+
links?: Record<string, string> | undefined;
|
|
1929
|
+
meta?: Record<string, unknown> | undefined;
|
|
1930
|
+
};
|
|
1931
|
+
links?: Record<string, string> | undefined;
|
|
1932
|
+
meta?: Record<string, unknown> | undefined;
|
|
1933
|
+
included?: {
|
|
1934
|
+
type: string;
|
|
1935
|
+
id: string;
|
|
1936
|
+
attributes?: Record<string, unknown> | undefined;
|
|
1937
|
+
relationships?: Record<string, unknown> | undefined;
|
|
1938
|
+
links?: Record<string, string> | undefined;
|
|
1939
|
+
meta?: Record<string, unknown> | undefined;
|
|
1940
|
+
}[] | undefined;
|
|
1941
|
+
}>;
|
|
1942
|
+
export declare const famachaListResponseSchema: z.ZodObject<{
|
|
1943
|
+
data: z.ZodArray<z.ZodObject<{
|
|
1944
|
+
type: z.ZodLiteral<string>;
|
|
1945
|
+
id: z.ZodString;
|
|
1946
|
+
attributes: z.ZodObject<{
|
|
1947
|
+
livestockId: z.ZodString;
|
|
1948
|
+
scoreDate: z.ZodString;
|
|
1949
|
+
score: z.ZodNumber;
|
|
1950
|
+
treat: z.ZodBoolean;
|
|
1951
|
+
product: z.ZodNullable<z.ZodString>;
|
|
1952
|
+
notes: z.ZodNullable<z.ZodString>;
|
|
1953
|
+
} & {
|
|
1954
|
+
createdAt: z.ZodString;
|
|
1955
|
+
}, "strip", z.ZodTypeAny, {
|
|
1956
|
+
createdAt: string;
|
|
1957
|
+
notes: string | null;
|
|
1958
|
+
score: number;
|
|
1959
|
+
livestockId: string;
|
|
1960
|
+
scoreDate: string;
|
|
1961
|
+
treat: boolean;
|
|
1962
|
+
product: string | null;
|
|
1963
|
+
}, {
|
|
1964
|
+
createdAt: string;
|
|
1965
|
+
notes: string | null;
|
|
1966
|
+
score: number;
|
|
1967
|
+
livestockId: string;
|
|
1968
|
+
scoreDate: string;
|
|
1969
|
+
treat: boolean;
|
|
1970
|
+
product: string | null;
|
|
1971
|
+
}>;
|
|
1972
|
+
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1973
|
+
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1974
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1975
|
+
}, "strip", z.ZodTypeAny, {
|
|
1976
|
+
type: string;
|
|
1977
|
+
id: string;
|
|
1978
|
+
attributes: {
|
|
1979
|
+
createdAt: string;
|
|
1980
|
+
notes: string | null;
|
|
1981
|
+
score: number;
|
|
1982
|
+
livestockId: string;
|
|
1983
|
+
scoreDate: string;
|
|
1984
|
+
treat: boolean;
|
|
1985
|
+
product: string | null;
|
|
1986
|
+
};
|
|
1987
|
+
relationships?: Record<string, unknown> | undefined;
|
|
1988
|
+
links?: Record<string, string> | undefined;
|
|
1989
|
+
meta?: Record<string, unknown> | undefined;
|
|
1990
|
+
}, {
|
|
1991
|
+
type: string;
|
|
1992
|
+
id: string;
|
|
1993
|
+
attributes: {
|
|
1994
|
+
createdAt: string;
|
|
1995
|
+
notes: string | null;
|
|
1996
|
+
score: number;
|
|
1997
|
+
livestockId: string;
|
|
1998
|
+
scoreDate: string;
|
|
1999
|
+
treat: boolean;
|
|
2000
|
+
product: string | null;
|
|
2001
|
+
};
|
|
2002
|
+
relationships?: Record<string, unknown> | undefined;
|
|
2003
|
+
links?: Record<string, string> | undefined;
|
|
2004
|
+
meta?: Record<string, unknown> | undefined;
|
|
2005
|
+
}>, "many">;
|
|
2006
|
+
included: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2007
|
+
type: z.ZodString;
|
|
2008
|
+
id: z.ZodString;
|
|
2009
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2010
|
+
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2011
|
+
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2012
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2013
|
+
}, "strip", z.ZodTypeAny, {
|
|
2014
|
+
type: string;
|
|
2015
|
+
id: string;
|
|
2016
|
+
attributes?: Record<string, unknown> | undefined;
|
|
2017
|
+
relationships?: Record<string, unknown> | undefined;
|
|
2018
|
+
links?: Record<string, string> | undefined;
|
|
2019
|
+
meta?: Record<string, unknown> | undefined;
|
|
2020
|
+
}, {
|
|
2021
|
+
type: string;
|
|
2022
|
+
id: string;
|
|
2023
|
+
attributes?: Record<string, unknown> | undefined;
|
|
2024
|
+
relationships?: Record<string, unknown> | undefined;
|
|
2025
|
+
links?: Record<string, string> | undefined;
|
|
2026
|
+
meta?: Record<string, unknown> | undefined;
|
|
2027
|
+
}>, "many">>;
|
|
2028
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2029
|
+
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2030
|
+
}, "strip", z.ZodTypeAny, {
|
|
2031
|
+
data: {
|
|
2032
|
+
type: string;
|
|
2033
|
+
id: string;
|
|
2034
|
+
attributes: {
|
|
2035
|
+
createdAt: string;
|
|
2036
|
+
notes: string | null;
|
|
2037
|
+
score: number;
|
|
2038
|
+
livestockId: string;
|
|
2039
|
+
scoreDate: string;
|
|
2040
|
+
treat: boolean;
|
|
2041
|
+
product: string | null;
|
|
2042
|
+
};
|
|
2043
|
+
relationships?: Record<string, unknown> | undefined;
|
|
2044
|
+
links?: Record<string, string> | undefined;
|
|
2045
|
+
meta?: Record<string, unknown> | undefined;
|
|
2046
|
+
}[];
|
|
2047
|
+
links?: Record<string, string> | undefined;
|
|
2048
|
+
meta?: Record<string, unknown> | undefined;
|
|
2049
|
+
included?: {
|
|
2050
|
+
type: string;
|
|
2051
|
+
id: string;
|
|
2052
|
+
attributes?: Record<string, unknown> | undefined;
|
|
2053
|
+
relationships?: Record<string, unknown> | undefined;
|
|
2054
|
+
links?: Record<string, string> | undefined;
|
|
2055
|
+
meta?: Record<string, unknown> | undefined;
|
|
2056
|
+
}[] | undefined;
|
|
2057
|
+
}, {
|
|
2058
|
+
data: {
|
|
2059
|
+
type: string;
|
|
2060
|
+
id: string;
|
|
2061
|
+
attributes: {
|
|
2062
|
+
createdAt: string;
|
|
2063
|
+
notes: string | null;
|
|
2064
|
+
score: number;
|
|
2065
|
+
livestockId: string;
|
|
2066
|
+
scoreDate: string;
|
|
2067
|
+
treat: boolean;
|
|
2068
|
+
product: string | null;
|
|
2069
|
+
};
|
|
2070
|
+
relationships?: Record<string, unknown> | undefined;
|
|
2071
|
+
links?: Record<string, string> | undefined;
|
|
2072
|
+
meta?: Record<string, unknown> | undefined;
|
|
2073
|
+
}[];
|
|
2074
|
+
links?: Record<string, string> | undefined;
|
|
2075
|
+
meta?: Record<string, unknown> | undefined;
|
|
2076
|
+
included?: {
|
|
2077
|
+
type: string;
|
|
2078
|
+
id: string;
|
|
2079
|
+
attributes?: Record<string, unknown> | undefined;
|
|
2080
|
+
relationships?: Record<string, unknown> | undefined;
|
|
2081
|
+
links?: Record<string, string> | undefined;
|
|
2082
|
+
meta?: Record<string, unknown> | undefined;
|
|
2083
|
+
}[] | undefined;
|
|
2084
|
+
}>;
|
|
641
2085
|
export declare const createLivestockSchema: z.ZodObject<{
|
|
642
2086
|
type: z.ZodLiteral<"livestock">;
|
|
643
2087
|
attributes: z.ZodObject<{
|
|
@@ -652,6 +2096,9 @@ export declare const createLivestockSchema: z.ZodObject<{
|
|
|
652
2096
|
color: z.ZodOptional<z.ZodString>;
|
|
653
2097
|
weight: z.ZodOptional<z.ZodNumber>;
|
|
654
2098
|
weightUnit: z.ZodDefault<z.ZodString>;
|
|
2099
|
+
eid: z.ZodOptional<z.ZodString>;
|
|
2100
|
+
secondaryTagId: z.ZodOptional<z.ZodString>;
|
|
2101
|
+
photoUrl: z.ZodOptional<z.ZodString>;
|
|
655
2102
|
sireId: z.ZodOptional<z.ZodString>;
|
|
656
2103
|
damId: z.ZodOptional<z.ZodString>;
|
|
657
2104
|
status: z.ZodDefault<z.ZodEnum<["ACTIVE", "SOLD", "DECEASED", "TRANSFERRED", "QUARANTINE"]>>;
|
|
@@ -665,7 +2112,7 @@ export declare const createLivestockSchema: z.ZodObject<{
|
|
|
665
2112
|
}, "strip", z.ZodTypeAny, {
|
|
666
2113
|
status: "ACTIVE" | "SOLD" | "DECEASED" | "TRANSFERRED" | "QUARANTINE";
|
|
667
2114
|
currency: string;
|
|
668
|
-
category: "POULTRY" | "CATTLE" | "GOAT" | "
|
|
2115
|
+
category: "POULTRY" | "CATTLE" | "GOAT" | "SHEEP" | "OTHER" | "PIG" | "FISH" | "RABBIT";
|
|
669
2116
|
weightUnit: string;
|
|
670
2117
|
tagId: string;
|
|
671
2118
|
sex: "MALE" | "FEMALE" | "UNKNOWN";
|
|
@@ -676,16 +2123,19 @@ export declare const createLivestockSchema: z.ZodObject<{
|
|
|
676
2123
|
groupId?: string | undefined;
|
|
677
2124
|
purchasePrice?: number | undefined;
|
|
678
2125
|
currentValue?: number | undefined;
|
|
2126
|
+
photoUrl?: string | undefined;
|
|
679
2127
|
weight?: number | undefined;
|
|
680
2128
|
color?: string | undefined;
|
|
681
2129
|
breed?: string | undefined;
|
|
682
2130
|
dateOfBirth?: string | undefined;
|
|
683
2131
|
acquisitionDate?: string | undefined;
|
|
2132
|
+
eid?: string | undefined;
|
|
2133
|
+
secondaryTagId?: string | undefined;
|
|
684
2134
|
sireId?: string | undefined;
|
|
685
2135
|
damId?: string | undefined;
|
|
686
2136
|
statusNote?: string | undefined;
|
|
687
2137
|
}, {
|
|
688
|
-
category: "POULTRY" | "CATTLE" | "GOAT" | "
|
|
2138
|
+
category: "POULTRY" | "CATTLE" | "GOAT" | "SHEEP" | "OTHER" | "PIG" | "FISH" | "RABBIT";
|
|
689
2139
|
tagId: string;
|
|
690
2140
|
status?: "ACTIVE" | "SOLD" | "DECEASED" | "TRANSFERRED" | "QUARANTINE" | undefined;
|
|
691
2141
|
name?: string | undefined;
|
|
@@ -695,6 +2145,7 @@ export declare const createLivestockSchema: z.ZodObject<{
|
|
|
695
2145
|
groupId?: string | undefined;
|
|
696
2146
|
purchasePrice?: number | undefined;
|
|
697
2147
|
currentValue?: number | undefined;
|
|
2148
|
+
photoUrl?: string | undefined;
|
|
698
2149
|
weight?: number | undefined;
|
|
699
2150
|
color?: string | undefined;
|
|
700
2151
|
weightUnit?: string | undefined;
|
|
@@ -703,6 +2154,8 @@ export declare const createLivestockSchema: z.ZodObject<{
|
|
|
703
2154
|
dateOfBirth?: string | undefined;
|
|
704
2155
|
acquisitionDate?: string | undefined;
|
|
705
2156
|
acquisitionType?: "born" | "purchased" | "transferred" | "gifted" | undefined;
|
|
2157
|
+
eid?: string | undefined;
|
|
2158
|
+
secondaryTagId?: string | undefined;
|
|
706
2159
|
sireId?: string | undefined;
|
|
707
2160
|
damId?: string | undefined;
|
|
708
2161
|
statusNote?: string | undefined;
|
|
@@ -712,7 +2165,7 @@ export declare const createLivestockSchema: z.ZodObject<{
|
|
|
712
2165
|
attributes: {
|
|
713
2166
|
status: "ACTIVE" | "SOLD" | "DECEASED" | "TRANSFERRED" | "QUARANTINE";
|
|
714
2167
|
currency: string;
|
|
715
|
-
category: "POULTRY" | "CATTLE" | "GOAT" | "
|
|
2168
|
+
category: "POULTRY" | "CATTLE" | "GOAT" | "SHEEP" | "OTHER" | "PIG" | "FISH" | "RABBIT";
|
|
716
2169
|
weightUnit: string;
|
|
717
2170
|
tagId: string;
|
|
718
2171
|
sex: "MALE" | "FEMALE" | "UNKNOWN";
|
|
@@ -723,11 +2176,14 @@ export declare const createLivestockSchema: z.ZodObject<{
|
|
|
723
2176
|
groupId?: string | undefined;
|
|
724
2177
|
purchasePrice?: number | undefined;
|
|
725
2178
|
currentValue?: number | undefined;
|
|
2179
|
+
photoUrl?: string | undefined;
|
|
726
2180
|
weight?: number | undefined;
|
|
727
2181
|
color?: string | undefined;
|
|
728
2182
|
breed?: string | undefined;
|
|
729
2183
|
dateOfBirth?: string | undefined;
|
|
730
2184
|
acquisitionDate?: string | undefined;
|
|
2185
|
+
eid?: string | undefined;
|
|
2186
|
+
secondaryTagId?: string | undefined;
|
|
731
2187
|
sireId?: string | undefined;
|
|
732
2188
|
damId?: string | undefined;
|
|
733
2189
|
statusNote?: string | undefined;
|
|
@@ -735,7 +2191,7 @@ export declare const createLivestockSchema: z.ZodObject<{
|
|
|
735
2191
|
}, {
|
|
736
2192
|
type: "livestock";
|
|
737
2193
|
attributes: {
|
|
738
|
-
category: "POULTRY" | "CATTLE" | "GOAT" | "
|
|
2194
|
+
category: "POULTRY" | "CATTLE" | "GOAT" | "SHEEP" | "OTHER" | "PIG" | "FISH" | "RABBIT";
|
|
739
2195
|
tagId: string;
|
|
740
2196
|
status?: "ACTIVE" | "SOLD" | "DECEASED" | "TRANSFERRED" | "QUARANTINE" | undefined;
|
|
741
2197
|
name?: string | undefined;
|
|
@@ -745,6 +2201,7 @@ export declare const createLivestockSchema: z.ZodObject<{
|
|
|
745
2201
|
groupId?: string | undefined;
|
|
746
2202
|
purchasePrice?: number | undefined;
|
|
747
2203
|
currentValue?: number | undefined;
|
|
2204
|
+
photoUrl?: string | undefined;
|
|
748
2205
|
weight?: number | undefined;
|
|
749
2206
|
color?: string | undefined;
|
|
750
2207
|
weightUnit?: string | undefined;
|
|
@@ -753,6 +2210,8 @@ export declare const createLivestockSchema: z.ZodObject<{
|
|
|
753
2210
|
dateOfBirth?: string | undefined;
|
|
754
2211
|
acquisitionDate?: string | undefined;
|
|
755
2212
|
acquisitionType?: "born" | "purchased" | "transferred" | "gifted" | undefined;
|
|
2213
|
+
eid?: string | undefined;
|
|
2214
|
+
secondaryTagId?: string | undefined;
|
|
756
2215
|
sireId?: string | undefined;
|
|
757
2216
|
damId?: string | undefined;
|
|
758
2217
|
statusNote?: string | undefined;
|
|
@@ -771,10 +2230,14 @@ export declare const updateLivestockSchema: z.ZodObject<{
|
|
|
771
2230
|
color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
772
2231
|
weight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
773
2232
|
weightUnit: z.ZodOptional<z.ZodString>;
|
|
2233
|
+
eid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2234
|
+
secondaryTagId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2235
|
+
photoUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
774
2236
|
sireId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
775
2237
|
damId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
776
2238
|
status: z.ZodOptional<z.ZodEnum<["ACTIVE", "SOLD", "DECEASED", "TRANSFERRED", "QUARANTINE"]>>;
|
|
777
2239
|
statusNote: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2240
|
+
cullReason: z.ZodOptional<z.ZodNullable<z.ZodEnum<["poor_gain", "health", "age", "temperament", "other"]>>>;
|
|
778
2241
|
location: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
779
2242
|
groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
780
2243
|
purchasePrice: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -787,10 +2250,11 @@ export declare const updateLivestockSchema: z.ZodObject<{
|
|
|
787
2250
|
location?: string | null | undefined;
|
|
788
2251
|
currency?: string | undefined;
|
|
789
2252
|
notes?: string | null | undefined;
|
|
790
|
-
category?: "POULTRY" | "CATTLE" | "GOAT" | "
|
|
2253
|
+
category?: "POULTRY" | "CATTLE" | "GOAT" | "SHEEP" | "OTHER" | "PIG" | "FISH" | "RABBIT" | undefined;
|
|
791
2254
|
groupId?: string | null | undefined;
|
|
792
2255
|
purchasePrice?: number | null | undefined;
|
|
793
2256
|
currentValue?: number | null | undefined;
|
|
2257
|
+
photoUrl?: string | null | undefined;
|
|
794
2258
|
weight?: number | null | undefined;
|
|
795
2259
|
color?: string | null | undefined;
|
|
796
2260
|
weightUnit?: string | undefined;
|
|
@@ -798,19 +2262,23 @@ export declare const updateLivestockSchema: z.ZodObject<{
|
|
|
798
2262
|
breed?: string | null | undefined;
|
|
799
2263
|
sex?: "MALE" | "FEMALE" | "UNKNOWN" | undefined;
|
|
800
2264
|
dateOfBirth?: string | null | undefined;
|
|
2265
|
+
eid?: string | null | undefined;
|
|
2266
|
+
secondaryTagId?: string | null | undefined;
|
|
801
2267
|
sireId?: string | null | undefined;
|
|
802
2268
|
damId?: string | null | undefined;
|
|
803
2269
|
statusNote?: string | null | undefined;
|
|
2270
|
+
cullReason?: "other" | "poor_gain" | "health" | "age" | "temperament" | null | undefined;
|
|
804
2271
|
}, {
|
|
805
2272
|
status?: "ACTIVE" | "SOLD" | "DECEASED" | "TRANSFERRED" | "QUARANTINE" | undefined;
|
|
806
2273
|
name?: string | null | undefined;
|
|
807
2274
|
location?: string | null | undefined;
|
|
808
2275
|
currency?: string | undefined;
|
|
809
2276
|
notes?: string | null | undefined;
|
|
810
|
-
category?: "POULTRY" | "CATTLE" | "GOAT" | "
|
|
2277
|
+
category?: "POULTRY" | "CATTLE" | "GOAT" | "SHEEP" | "OTHER" | "PIG" | "FISH" | "RABBIT" | undefined;
|
|
811
2278
|
groupId?: string | null | undefined;
|
|
812
2279
|
purchasePrice?: number | null | undefined;
|
|
813
2280
|
currentValue?: number | null | undefined;
|
|
2281
|
+
photoUrl?: string | null | undefined;
|
|
814
2282
|
weight?: number | null | undefined;
|
|
815
2283
|
color?: string | null | undefined;
|
|
816
2284
|
weightUnit?: string | undefined;
|
|
@@ -818,9 +2286,12 @@ export declare const updateLivestockSchema: z.ZodObject<{
|
|
|
818
2286
|
breed?: string | null | undefined;
|
|
819
2287
|
sex?: "MALE" | "FEMALE" | "UNKNOWN" | undefined;
|
|
820
2288
|
dateOfBirth?: string | null | undefined;
|
|
2289
|
+
eid?: string | null | undefined;
|
|
2290
|
+
secondaryTagId?: string | null | undefined;
|
|
821
2291
|
sireId?: string | null | undefined;
|
|
822
2292
|
damId?: string | null | undefined;
|
|
823
2293
|
statusNote?: string | null | undefined;
|
|
2294
|
+
cullReason?: "other" | "poor_gain" | "health" | "age" | "temperament" | null | undefined;
|
|
824
2295
|
}>;
|
|
825
2296
|
}, "strip", z.ZodTypeAny, {
|
|
826
2297
|
type: "livestock";
|
|
@@ -831,10 +2302,11 @@ export declare const updateLivestockSchema: z.ZodObject<{
|
|
|
831
2302
|
location?: string | null | undefined;
|
|
832
2303
|
currency?: string | undefined;
|
|
833
2304
|
notes?: string | null | undefined;
|
|
834
|
-
category?: "POULTRY" | "CATTLE" | "GOAT" | "
|
|
2305
|
+
category?: "POULTRY" | "CATTLE" | "GOAT" | "SHEEP" | "OTHER" | "PIG" | "FISH" | "RABBIT" | undefined;
|
|
835
2306
|
groupId?: string | null | undefined;
|
|
836
2307
|
purchasePrice?: number | null | undefined;
|
|
837
2308
|
currentValue?: number | null | undefined;
|
|
2309
|
+
photoUrl?: string | null | undefined;
|
|
838
2310
|
weight?: number | null | undefined;
|
|
839
2311
|
color?: string | null | undefined;
|
|
840
2312
|
weightUnit?: string | undefined;
|
|
@@ -842,9 +2314,12 @@ export declare const updateLivestockSchema: z.ZodObject<{
|
|
|
842
2314
|
breed?: string | null | undefined;
|
|
843
2315
|
sex?: "MALE" | "FEMALE" | "UNKNOWN" | undefined;
|
|
844
2316
|
dateOfBirth?: string | null | undefined;
|
|
2317
|
+
eid?: string | null | undefined;
|
|
2318
|
+
secondaryTagId?: string | null | undefined;
|
|
845
2319
|
sireId?: string | null | undefined;
|
|
846
2320
|
damId?: string | null | undefined;
|
|
847
2321
|
statusNote?: string | null | undefined;
|
|
2322
|
+
cullReason?: "other" | "poor_gain" | "health" | "age" | "temperament" | null | undefined;
|
|
848
2323
|
};
|
|
849
2324
|
}, {
|
|
850
2325
|
type: "livestock";
|
|
@@ -855,10 +2330,11 @@ export declare const updateLivestockSchema: z.ZodObject<{
|
|
|
855
2330
|
location?: string | null | undefined;
|
|
856
2331
|
currency?: string | undefined;
|
|
857
2332
|
notes?: string | null | undefined;
|
|
858
|
-
category?: "POULTRY" | "CATTLE" | "GOAT" | "
|
|
2333
|
+
category?: "POULTRY" | "CATTLE" | "GOAT" | "SHEEP" | "OTHER" | "PIG" | "FISH" | "RABBIT" | undefined;
|
|
859
2334
|
groupId?: string | null | undefined;
|
|
860
2335
|
purchasePrice?: number | null | undefined;
|
|
861
2336
|
currentValue?: number | null | undefined;
|
|
2337
|
+
photoUrl?: string | null | undefined;
|
|
862
2338
|
weight?: number | null | undefined;
|
|
863
2339
|
color?: string | null | undefined;
|
|
864
2340
|
weightUnit?: string | undefined;
|
|
@@ -866,9 +2342,12 @@ export declare const updateLivestockSchema: z.ZodObject<{
|
|
|
866
2342
|
breed?: string | null | undefined;
|
|
867
2343
|
sex?: "MALE" | "FEMALE" | "UNKNOWN" | undefined;
|
|
868
2344
|
dateOfBirth?: string | null | undefined;
|
|
2345
|
+
eid?: string | null | undefined;
|
|
2346
|
+
secondaryTagId?: string | null | undefined;
|
|
869
2347
|
sireId?: string | null | undefined;
|
|
870
2348
|
damId?: string | null | undefined;
|
|
871
2349
|
statusNote?: string | null | undefined;
|
|
2350
|
+
cullReason?: "other" | "poor_gain" | "health" | "age" | "temperament" | null | undefined;
|
|
872
2351
|
};
|
|
873
2352
|
}>;
|
|
874
2353
|
export declare const createHealthRecordSchema: z.ZodObject<{
|
|
@@ -885,6 +2364,8 @@ export declare const createHealthRecordSchema: z.ZodObject<{
|
|
|
885
2364
|
vaccineName: z.ZodOptional<z.ZodString>;
|
|
886
2365
|
batchNumber: z.ZodOptional<z.ZodString>;
|
|
887
2366
|
nextDueDate: z.ZodOptional<z.ZodString>;
|
|
2367
|
+
withdrawalDays: z.ZodOptional<z.ZodNumber>;
|
|
2368
|
+
bcs: z.ZodOptional<z.ZodNumber>;
|
|
888
2369
|
cost: z.ZodOptional<z.ZodNumber>;
|
|
889
2370
|
currency: z.ZodDefault<z.ZodString>;
|
|
890
2371
|
followUpRequired: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -907,6 +2388,8 @@ export declare const createHealthRecordSchema: z.ZodObject<{
|
|
|
907
2388
|
vaccineName?: string | undefined;
|
|
908
2389
|
batchNumber?: string | undefined;
|
|
909
2390
|
nextDueDate?: string | undefined;
|
|
2391
|
+
withdrawalDays?: number | undefined;
|
|
2392
|
+
bcs?: number | undefined;
|
|
910
2393
|
followUpDate?: string | undefined;
|
|
911
2394
|
followUpNotes?: string | undefined;
|
|
912
2395
|
}, {
|
|
@@ -924,6 +2407,8 @@ export declare const createHealthRecordSchema: z.ZodObject<{
|
|
|
924
2407
|
vaccineName?: string | undefined;
|
|
925
2408
|
batchNumber?: string | undefined;
|
|
926
2409
|
nextDueDate?: string | undefined;
|
|
2410
|
+
withdrawalDays?: number | undefined;
|
|
2411
|
+
bcs?: number | undefined;
|
|
927
2412
|
followUpRequired?: boolean | undefined;
|
|
928
2413
|
followUpDate?: string | undefined;
|
|
929
2414
|
followUpNotes?: string | undefined;
|
|
@@ -946,6 +2431,8 @@ export declare const createHealthRecordSchema: z.ZodObject<{
|
|
|
946
2431
|
vaccineName?: string | undefined;
|
|
947
2432
|
batchNumber?: string | undefined;
|
|
948
2433
|
nextDueDate?: string | undefined;
|
|
2434
|
+
withdrawalDays?: number | undefined;
|
|
2435
|
+
bcs?: number | undefined;
|
|
949
2436
|
followUpDate?: string | undefined;
|
|
950
2437
|
followUpNotes?: string | undefined;
|
|
951
2438
|
};
|
|
@@ -966,6 +2453,8 @@ export declare const createHealthRecordSchema: z.ZodObject<{
|
|
|
966
2453
|
vaccineName?: string | undefined;
|
|
967
2454
|
batchNumber?: string | undefined;
|
|
968
2455
|
nextDueDate?: string | undefined;
|
|
2456
|
+
withdrawalDays?: number | undefined;
|
|
2457
|
+
bcs?: number | undefined;
|
|
969
2458
|
followUpRequired?: boolean | undefined;
|
|
970
2459
|
followUpDate?: string | undefined;
|
|
971
2460
|
followUpNotes?: string | undefined;
|
|
@@ -977,17 +2466,20 @@ export declare const createWeightRecordSchema: z.ZodObject<{
|
|
|
977
2466
|
recordDate: z.ZodString;
|
|
978
2467
|
weight: z.ZodNumber;
|
|
979
2468
|
weightUnit: z.ZodDefault<z.ZodString>;
|
|
2469
|
+
eventType: z.ZodDefault<z.ZodEnum<["routine", "weaning"]>>;
|
|
980
2470
|
notes: z.ZodOptional<z.ZodString>;
|
|
981
2471
|
}, "strip", z.ZodTypeAny, {
|
|
982
2472
|
weight: number;
|
|
983
2473
|
recordDate: string;
|
|
984
2474
|
weightUnit: string;
|
|
2475
|
+
eventType: "routine" | "weaning";
|
|
985
2476
|
notes?: string | undefined;
|
|
986
2477
|
}, {
|
|
987
2478
|
weight: number;
|
|
988
2479
|
recordDate: string;
|
|
989
2480
|
notes?: string | undefined;
|
|
990
2481
|
weightUnit?: string | undefined;
|
|
2482
|
+
eventType?: "routine" | "weaning" | undefined;
|
|
991
2483
|
}>;
|
|
992
2484
|
}, "strip", z.ZodTypeAny, {
|
|
993
2485
|
type: "livestock-weight-records";
|
|
@@ -995,6 +2487,7 @@ export declare const createWeightRecordSchema: z.ZodObject<{
|
|
|
995
2487
|
weight: number;
|
|
996
2488
|
recordDate: string;
|
|
997
2489
|
weightUnit: string;
|
|
2490
|
+
eventType: "routine" | "weaning";
|
|
998
2491
|
notes?: string | undefined;
|
|
999
2492
|
};
|
|
1000
2493
|
}, {
|
|
@@ -1004,6 +2497,7 @@ export declare const createWeightRecordSchema: z.ZodObject<{
|
|
|
1004
2497
|
recordDate: string;
|
|
1005
2498
|
notes?: string | undefined;
|
|
1006
2499
|
weightUnit?: string | undefined;
|
|
2500
|
+
eventType?: "routine" | "weaning" | undefined;
|
|
1007
2501
|
};
|
|
1008
2502
|
}>;
|
|
1009
2503
|
export declare const createMovementRecordSchema: z.ZodObject<{
|
|
@@ -1088,6 +2582,9 @@ export declare const livestockResourceSchema: z.ZodObject<{
|
|
|
1088
2582
|
weight: z.ZodNullable<z.ZodNumber>;
|
|
1089
2583
|
weightUnit: z.ZodDefault<z.ZodString>;
|
|
1090
2584
|
lastWeighDate: z.ZodNullable<z.ZodString>;
|
|
2585
|
+
eid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2586
|
+
secondaryTagId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2587
|
+
photoUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1091
2588
|
sireId: z.ZodNullable<z.ZodString>;
|
|
1092
2589
|
damId: z.ZodNullable<z.ZodString>;
|
|
1093
2590
|
sireName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -1095,6 +2592,7 @@ export declare const livestockResourceSchema: z.ZodObject<{
|
|
|
1095
2592
|
status: z.ZodEnum<["ACTIVE", "SOLD", "DECEASED", "TRANSFERRED", "QUARANTINE"]>;
|
|
1096
2593
|
statusDate: z.ZodString;
|
|
1097
2594
|
statusNote: z.ZodNullable<z.ZodString>;
|
|
2595
|
+
cullReason: z.ZodOptional<z.ZodNullable<z.ZodEnum<["poor_gain", "health", "age", "temperament", "other"]>>>;
|
|
1098
2596
|
location: z.ZodNullable<z.ZodString>;
|
|
1099
2597
|
groupId: z.ZodNullable<z.ZodString>;
|
|
1100
2598
|
purchasePrice: z.ZodNullable<z.ZodNumber>;
|
|
@@ -1114,6 +2612,9 @@ export declare const livestockResourceSchema: z.ZodObject<{
|
|
|
1114
2612
|
vaccineName: z.ZodNullable<z.ZodString>;
|
|
1115
2613
|
batchNumber: z.ZodNullable<z.ZodString>;
|
|
1116
2614
|
nextDueDate: z.ZodNullable<z.ZodString>;
|
|
2615
|
+
withdrawalDays: z.ZodNullable<z.ZodNumber>;
|
|
2616
|
+
withdrawalEndsAt: z.ZodNullable<z.ZodString>;
|
|
2617
|
+
bcs: z.ZodNullable<z.ZodNumber>;
|
|
1117
2618
|
cost: z.ZodNullable<z.ZodNumber>;
|
|
1118
2619
|
currency: z.ZodDefault<z.ZodString>;
|
|
1119
2620
|
followUpRequired: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -1136,6 +2637,9 @@ export declare const livestockResourceSchema: z.ZodObject<{
|
|
|
1136
2637
|
vaccineName: string | null;
|
|
1137
2638
|
batchNumber: string | null;
|
|
1138
2639
|
nextDueDate: string | null;
|
|
2640
|
+
withdrawalDays: number | null;
|
|
2641
|
+
withdrawalEndsAt: string | null;
|
|
2642
|
+
bcs: number | null;
|
|
1139
2643
|
followUpRequired: boolean;
|
|
1140
2644
|
followUpDate: string | null;
|
|
1141
2645
|
followUpNotes: string | null;
|
|
@@ -1154,6 +2658,9 @@ export declare const livestockResourceSchema: z.ZodObject<{
|
|
|
1154
2658
|
vaccineName: string | null;
|
|
1155
2659
|
batchNumber: string | null;
|
|
1156
2660
|
nextDueDate: string | null;
|
|
2661
|
+
withdrawalDays: number | null;
|
|
2662
|
+
withdrawalEndsAt: string | null;
|
|
2663
|
+
bcs: number | null;
|
|
1157
2664
|
followUpDate: string | null;
|
|
1158
2665
|
followUpNotes: string | null;
|
|
1159
2666
|
currency?: string | undefined;
|
|
@@ -1164,6 +2671,7 @@ export declare const livestockResourceSchema: z.ZodObject<{
|
|
|
1164
2671
|
recordDate: z.ZodString;
|
|
1165
2672
|
weight: z.ZodNumber;
|
|
1166
2673
|
weightUnit: z.ZodDefault<z.ZodString>;
|
|
2674
|
+
eventType: z.ZodDefault<z.ZodEnum<["routine", "weaning"]>>;
|
|
1167
2675
|
notes: z.ZodNullable<z.ZodString>;
|
|
1168
2676
|
}, "strip", z.ZodTypeAny, {
|
|
1169
2677
|
id: string;
|
|
@@ -1171,12 +2679,14 @@ export declare const livestockResourceSchema: z.ZodObject<{
|
|
|
1171
2679
|
weight: number;
|
|
1172
2680
|
recordDate: string;
|
|
1173
2681
|
weightUnit: string;
|
|
2682
|
+
eventType: "routine" | "weaning";
|
|
1174
2683
|
}, {
|
|
1175
2684
|
id: string;
|
|
1176
2685
|
notes: string | null;
|
|
1177
2686
|
weight: number;
|
|
1178
2687
|
recordDate: string;
|
|
1179
2688
|
weightUnit?: string | undefined;
|
|
2689
|
+
eventType?: "routine" | "weaning" | undefined;
|
|
1180
2690
|
}>, "many">>;
|
|
1181
2691
|
recentMovements: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1182
2692
|
id: z.ZodString;
|
|
@@ -1227,7 +2737,7 @@ export declare const livestockResourceSchema: z.ZodObject<{
|
|
|
1227
2737
|
location: string | null;
|
|
1228
2738
|
currency: string;
|
|
1229
2739
|
notes: string | null;
|
|
1230
|
-
category: "POULTRY" | "CATTLE" | "GOAT" | "
|
|
2740
|
+
category: "POULTRY" | "CATTLE" | "GOAT" | "SHEEP" | "OTHER" | "PIG" | "FISH" | "RABBIT";
|
|
1231
2741
|
groupId: string | null;
|
|
1232
2742
|
purchasePrice: number | null;
|
|
1233
2743
|
currentValue: number | null;
|
|
@@ -1245,8 +2755,12 @@ export declare const livestockResourceSchema: z.ZodObject<{
|
|
|
1245
2755
|
damId: string | null;
|
|
1246
2756
|
statusDate: string;
|
|
1247
2757
|
statusNote: string | null;
|
|
2758
|
+
photoUrl?: string | null | undefined;
|
|
2759
|
+
eid?: string | null | undefined;
|
|
2760
|
+
secondaryTagId?: string | null | undefined;
|
|
1248
2761
|
sireName?: string | null | undefined;
|
|
1249
2762
|
damName?: string | null | undefined;
|
|
2763
|
+
cullReason?: "other" | "poor_gain" | "health" | "age" | "temperament" | null | undefined;
|
|
1250
2764
|
healthRecords?: {
|
|
1251
2765
|
id: string;
|
|
1252
2766
|
description: string;
|
|
@@ -1263,6 +2777,9 @@ export declare const livestockResourceSchema: z.ZodObject<{
|
|
|
1263
2777
|
vaccineName: string | null;
|
|
1264
2778
|
batchNumber: string | null;
|
|
1265
2779
|
nextDueDate: string | null;
|
|
2780
|
+
withdrawalDays: number | null;
|
|
2781
|
+
withdrawalEndsAt: string | null;
|
|
2782
|
+
bcs: number | null;
|
|
1266
2783
|
followUpRequired: boolean;
|
|
1267
2784
|
followUpDate: string | null;
|
|
1268
2785
|
followUpNotes: string | null;
|
|
@@ -1273,6 +2790,7 @@ export declare const livestockResourceSchema: z.ZodObject<{
|
|
|
1273
2790
|
weight: number;
|
|
1274
2791
|
recordDate: string;
|
|
1275
2792
|
weightUnit: string;
|
|
2793
|
+
eventType: "routine" | "weaning";
|
|
1276
2794
|
}[] | undefined;
|
|
1277
2795
|
recentMovements?: {
|
|
1278
2796
|
id: string;
|
|
@@ -1295,7 +2813,7 @@ export declare const livestockResourceSchema: z.ZodObject<{
|
|
|
1295
2813
|
farmId: string;
|
|
1296
2814
|
location: string | null;
|
|
1297
2815
|
notes: string | null;
|
|
1298
|
-
category: "POULTRY" | "CATTLE" | "GOAT" | "
|
|
2816
|
+
category: "POULTRY" | "CATTLE" | "GOAT" | "SHEEP" | "OTHER" | "PIG" | "FISH" | "RABBIT";
|
|
1299
2817
|
groupId: string | null;
|
|
1300
2818
|
purchasePrice: number | null;
|
|
1301
2819
|
currentValue: number | null;
|
|
@@ -1313,9 +2831,13 @@ export declare const livestockResourceSchema: z.ZodObject<{
|
|
|
1313
2831
|
statusDate: string;
|
|
1314
2832
|
statusNote: string | null;
|
|
1315
2833
|
currency?: string | undefined;
|
|
2834
|
+
photoUrl?: string | null | undefined;
|
|
1316
2835
|
weightUnit?: string | undefined;
|
|
2836
|
+
eid?: string | null | undefined;
|
|
2837
|
+
secondaryTagId?: string | null | undefined;
|
|
1317
2838
|
sireName?: string | null | undefined;
|
|
1318
2839
|
damName?: string | null | undefined;
|
|
2840
|
+
cullReason?: "other" | "poor_gain" | "health" | "age" | "temperament" | null | undefined;
|
|
1319
2841
|
healthRecords?: {
|
|
1320
2842
|
id: string;
|
|
1321
2843
|
description: string;
|
|
@@ -1331,6 +2853,9 @@ export declare const livestockResourceSchema: z.ZodObject<{
|
|
|
1331
2853
|
vaccineName: string | null;
|
|
1332
2854
|
batchNumber: string | null;
|
|
1333
2855
|
nextDueDate: string | null;
|
|
2856
|
+
withdrawalDays: number | null;
|
|
2857
|
+
withdrawalEndsAt: string | null;
|
|
2858
|
+
bcs: number | null;
|
|
1334
2859
|
followUpDate: string | null;
|
|
1335
2860
|
followUpNotes: string | null;
|
|
1336
2861
|
currency?: string | undefined;
|
|
@@ -1342,6 +2867,7 @@ export declare const livestockResourceSchema: z.ZodObject<{
|
|
|
1342
2867
|
weight: number;
|
|
1343
2868
|
recordDate: string;
|
|
1344
2869
|
weightUnit?: string | undefined;
|
|
2870
|
+
eventType?: "routine" | "weaning" | undefined;
|
|
1345
2871
|
}[] | undefined;
|
|
1346
2872
|
recentMovements?: {
|
|
1347
2873
|
id: string;
|
|
@@ -1372,7 +2898,7 @@ export declare const livestockResourceSchema: z.ZodObject<{
|
|
|
1372
2898
|
location: string | null;
|
|
1373
2899
|
currency: string;
|
|
1374
2900
|
notes: string | null;
|
|
1375
|
-
category: "POULTRY" | "CATTLE" | "GOAT" | "
|
|
2901
|
+
category: "POULTRY" | "CATTLE" | "GOAT" | "SHEEP" | "OTHER" | "PIG" | "FISH" | "RABBIT";
|
|
1376
2902
|
groupId: string | null;
|
|
1377
2903
|
purchasePrice: number | null;
|
|
1378
2904
|
currentValue: number | null;
|
|
@@ -1390,8 +2916,12 @@ export declare const livestockResourceSchema: z.ZodObject<{
|
|
|
1390
2916
|
damId: string | null;
|
|
1391
2917
|
statusDate: string;
|
|
1392
2918
|
statusNote: string | null;
|
|
2919
|
+
photoUrl?: string | null | undefined;
|
|
2920
|
+
eid?: string | null | undefined;
|
|
2921
|
+
secondaryTagId?: string | null | undefined;
|
|
1393
2922
|
sireName?: string | null | undefined;
|
|
1394
2923
|
damName?: string | null | undefined;
|
|
2924
|
+
cullReason?: "other" | "poor_gain" | "health" | "age" | "temperament" | null | undefined;
|
|
1395
2925
|
healthRecords?: {
|
|
1396
2926
|
id: string;
|
|
1397
2927
|
description: string;
|
|
@@ -1408,6 +2938,9 @@ export declare const livestockResourceSchema: z.ZodObject<{
|
|
|
1408
2938
|
vaccineName: string | null;
|
|
1409
2939
|
batchNumber: string | null;
|
|
1410
2940
|
nextDueDate: string | null;
|
|
2941
|
+
withdrawalDays: number | null;
|
|
2942
|
+
withdrawalEndsAt: string | null;
|
|
2943
|
+
bcs: number | null;
|
|
1411
2944
|
followUpRequired: boolean;
|
|
1412
2945
|
followUpDate: string | null;
|
|
1413
2946
|
followUpNotes: string | null;
|
|
@@ -1418,6 +2951,7 @@ export declare const livestockResourceSchema: z.ZodObject<{
|
|
|
1418
2951
|
weight: number;
|
|
1419
2952
|
recordDate: string;
|
|
1420
2953
|
weightUnit: string;
|
|
2954
|
+
eventType: "routine" | "weaning";
|
|
1421
2955
|
}[] | undefined;
|
|
1422
2956
|
recentMovements?: {
|
|
1423
2957
|
id: string;
|
|
@@ -1447,7 +2981,7 @@ export declare const livestockResourceSchema: z.ZodObject<{
|
|
|
1447
2981
|
farmId: string;
|
|
1448
2982
|
location: string | null;
|
|
1449
2983
|
notes: string | null;
|
|
1450
|
-
category: "POULTRY" | "CATTLE" | "GOAT" | "
|
|
2984
|
+
category: "POULTRY" | "CATTLE" | "GOAT" | "SHEEP" | "OTHER" | "PIG" | "FISH" | "RABBIT";
|
|
1451
2985
|
groupId: string | null;
|
|
1452
2986
|
purchasePrice: number | null;
|
|
1453
2987
|
currentValue: number | null;
|
|
@@ -1465,9 +2999,13 @@ export declare const livestockResourceSchema: z.ZodObject<{
|
|
|
1465
2999
|
statusDate: string;
|
|
1466
3000
|
statusNote: string | null;
|
|
1467
3001
|
currency?: string | undefined;
|
|
3002
|
+
photoUrl?: string | null | undefined;
|
|
1468
3003
|
weightUnit?: string | undefined;
|
|
3004
|
+
eid?: string | null | undefined;
|
|
3005
|
+
secondaryTagId?: string | null | undefined;
|
|
1469
3006
|
sireName?: string | null | undefined;
|
|
1470
3007
|
damName?: string | null | undefined;
|
|
3008
|
+
cullReason?: "other" | "poor_gain" | "health" | "age" | "temperament" | null | undefined;
|
|
1471
3009
|
healthRecords?: {
|
|
1472
3010
|
id: string;
|
|
1473
3011
|
description: string;
|
|
@@ -1483,6 +3021,9 @@ export declare const livestockResourceSchema: z.ZodObject<{
|
|
|
1483
3021
|
vaccineName: string | null;
|
|
1484
3022
|
batchNumber: string | null;
|
|
1485
3023
|
nextDueDate: string | null;
|
|
3024
|
+
withdrawalDays: number | null;
|
|
3025
|
+
withdrawalEndsAt: string | null;
|
|
3026
|
+
bcs: number | null;
|
|
1486
3027
|
followUpDate: string | null;
|
|
1487
3028
|
followUpNotes: string | null;
|
|
1488
3029
|
currency?: string | undefined;
|
|
@@ -1494,6 +3035,7 @@ export declare const livestockResourceSchema: z.ZodObject<{
|
|
|
1494
3035
|
weight: number;
|
|
1495
3036
|
recordDate: string;
|
|
1496
3037
|
weightUnit?: string | undefined;
|
|
3038
|
+
eventType?: "routine" | "weaning" | undefined;
|
|
1497
3039
|
}[] | undefined;
|
|
1498
3040
|
recentMovements?: {
|
|
1499
3041
|
id: string;
|
|
@@ -1529,6 +3071,9 @@ export declare const healthRecordResourceSchema: z.ZodObject<{
|
|
|
1529
3071
|
vaccineName: z.ZodNullable<z.ZodString>;
|
|
1530
3072
|
batchNumber: z.ZodNullable<z.ZodString>;
|
|
1531
3073
|
nextDueDate: z.ZodNullable<z.ZodString>;
|
|
3074
|
+
withdrawalDays: z.ZodNullable<z.ZodNumber>;
|
|
3075
|
+
withdrawalEndsAt: z.ZodNullable<z.ZodString>;
|
|
3076
|
+
bcs: z.ZodNullable<z.ZodNumber>;
|
|
1532
3077
|
cost: z.ZodNullable<z.ZodNumber>;
|
|
1533
3078
|
currency: z.ZodDefault<z.ZodString>;
|
|
1534
3079
|
followUpRequired: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -1551,6 +3096,9 @@ export declare const healthRecordResourceSchema: z.ZodObject<{
|
|
|
1551
3096
|
vaccineName: string | null;
|
|
1552
3097
|
batchNumber: string | null;
|
|
1553
3098
|
nextDueDate: string | null;
|
|
3099
|
+
withdrawalDays: number | null;
|
|
3100
|
+
withdrawalEndsAt: string | null;
|
|
3101
|
+
bcs: number | null;
|
|
1554
3102
|
followUpRequired: boolean;
|
|
1555
3103
|
followUpDate: string | null;
|
|
1556
3104
|
followUpNotes: string | null;
|
|
@@ -1569,6 +3117,9 @@ export declare const healthRecordResourceSchema: z.ZodObject<{
|
|
|
1569
3117
|
vaccineName: string | null;
|
|
1570
3118
|
batchNumber: string | null;
|
|
1571
3119
|
nextDueDate: string | null;
|
|
3120
|
+
withdrawalDays: number | null;
|
|
3121
|
+
withdrawalEndsAt: string | null;
|
|
3122
|
+
bcs: number | null;
|
|
1572
3123
|
followUpDate: string | null;
|
|
1573
3124
|
followUpNotes: string | null;
|
|
1574
3125
|
currency?: string | undefined;
|
|
@@ -1596,6 +3147,9 @@ export declare const healthRecordResourceSchema: z.ZodObject<{
|
|
|
1596
3147
|
vaccineName: string | null;
|
|
1597
3148
|
batchNumber: string | null;
|
|
1598
3149
|
nextDueDate: string | null;
|
|
3150
|
+
withdrawalDays: number | null;
|
|
3151
|
+
withdrawalEndsAt: string | null;
|
|
3152
|
+
bcs: number | null;
|
|
1599
3153
|
followUpRequired: boolean;
|
|
1600
3154
|
followUpDate: string | null;
|
|
1601
3155
|
followUpNotes: string | null;
|
|
@@ -1621,6 +3175,9 @@ export declare const healthRecordResourceSchema: z.ZodObject<{
|
|
|
1621
3175
|
vaccineName: string | null;
|
|
1622
3176
|
batchNumber: string | null;
|
|
1623
3177
|
nextDueDate: string | null;
|
|
3178
|
+
withdrawalDays: number | null;
|
|
3179
|
+
withdrawalEndsAt: string | null;
|
|
3180
|
+
bcs: number | null;
|
|
1624
3181
|
followUpDate: string | null;
|
|
1625
3182
|
followUpNotes: string | null;
|
|
1626
3183
|
currency?: string | undefined;
|
|
@@ -1638,6 +3195,7 @@ export declare const weightRecordResourceSchema: z.ZodObject<{
|
|
|
1638
3195
|
recordDate: z.ZodString;
|
|
1639
3196
|
weight: z.ZodNumber;
|
|
1640
3197
|
weightUnit: z.ZodDefault<z.ZodString>;
|
|
3198
|
+
eventType: z.ZodDefault<z.ZodEnum<["routine", "weaning"]>>;
|
|
1641
3199
|
notes: z.ZodNullable<z.ZodString>;
|
|
1642
3200
|
}, "strip", z.ZodTypeAny, {
|
|
1643
3201
|
id: string;
|
|
@@ -1645,12 +3203,14 @@ export declare const weightRecordResourceSchema: z.ZodObject<{
|
|
|
1645
3203
|
weight: number;
|
|
1646
3204
|
recordDate: string;
|
|
1647
3205
|
weightUnit: string;
|
|
3206
|
+
eventType: "routine" | "weaning";
|
|
1648
3207
|
}, {
|
|
1649
3208
|
id: string;
|
|
1650
3209
|
notes: string | null;
|
|
1651
3210
|
weight: number;
|
|
1652
3211
|
recordDate: string;
|
|
1653
3212
|
weightUnit?: string | undefined;
|
|
3213
|
+
eventType?: "routine" | "weaning" | undefined;
|
|
1654
3214
|
}>;
|
|
1655
3215
|
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1656
3216
|
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -1664,6 +3224,7 @@ export declare const weightRecordResourceSchema: z.ZodObject<{
|
|
|
1664
3224
|
weight: number;
|
|
1665
3225
|
recordDate: string;
|
|
1666
3226
|
weightUnit: string;
|
|
3227
|
+
eventType: "routine" | "weaning";
|
|
1667
3228
|
};
|
|
1668
3229
|
relationships?: Record<string, unknown> | undefined;
|
|
1669
3230
|
links?: Record<string, string> | undefined;
|
|
@@ -1677,6 +3238,7 @@ export declare const weightRecordResourceSchema: z.ZodObject<{
|
|
|
1677
3238
|
weight: number;
|
|
1678
3239
|
recordDate: string;
|
|
1679
3240
|
weightUnit?: string | undefined;
|
|
3241
|
+
eventType?: "routine" | "weaning" | undefined;
|
|
1680
3242
|
};
|
|
1681
3243
|
relationships?: Record<string, unknown> | undefined;
|
|
1682
3244
|
links?: Record<string, string> | undefined;
|
|
@@ -1782,6 +3344,9 @@ export declare const livestockResponseSchema: z.ZodObject<{
|
|
|
1782
3344
|
weight: z.ZodNullable<z.ZodNumber>;
|
|
1783
3345
|
weightUnit: z.ZodDefault<z.ZodString>;
|
|
1784
3346
|
lastWeighDate: z.ZodNullable<z.ZodString>;
|
|
3347
|
+
eid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3348
|
+
secondaryTagId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3349
|
+
photoUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1785
3350
|
sireId: z.ZodNullable<z.ZodString>;
|
|
1786
3351
|
damId: z.ZodNullable<z.ZodString>;
|
|
1787
3352
|
sireName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -1789,6 +3354,7 @@ export declare const livestockResponseSchema: z.ZodObject<{
|
|
|
1789
3354
|
status: z.ZodEnum<["ACTIVE", "SOLD", "DECEASED", "TRANSFERRED", "QUARANTINE"]>;
|
|
1790
3355
|
statusDate: z.ZodString;
|
|
1791
3356
|
statusNote: z.ZodNullable<z.ZodString>;
|
|
3357
|
+
cullReason: z.ZodOptional<z.ZodNullable<z.ZodEnum<["poor_gain", "health", "age", "temperament", "other"]>>>;
|
|
1792
3358
|
location: z.ZodNullable<z.ZodString>;
|
|
1793
3359
|
groupId: z.ZodNullable<z.ZodString>;
|
|
1794
3360
|
purchasePrice: z.ZodNullable<z.ZodNumber>;
|
|
@@ -1808,6 +3374,9 @@ export declare const livestockResponseSchema: z.ZodObject<{
|
|
|
1808
3374
|
vaccineName: z.ZodNullable<z.ZodString>;
|
|
1809
3375
|
batchNumber: z.ZodNullable<z.ZodString>;
|
|
1810
3376
|
nextDueDate: z.ZodNullable<z.ZodString>;
|
|
3377
|
+
withdrawalDays: z.ZodNullable<z.ZodNumber>;
|
|
3378
|
+
withdrawalEndsAt: z.ZodNullable<z.ZodString>;
|
|
3379
|
+
bcs: z.ZodNullable<z.ZodNumber>;
|
|
1811
3380
|
cost: z.ZodNullable<z.ZodNumber>;
|
|
1812
3381
|
currency: z.ZodDefault<z.ZodString>;
|
|
1813
3382
|
followUpRequired: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -1830,6 +3399,9 @@ export declare const livestockResponseSchema: z.ZodObject<{
|
|
|
1830
3399
|
vaccineName: string | null;
|
|
1831
3400
|
batchNumber: string | null;
|
|
1832
3401
|
nextDueDate: string | null;
|
|
3402
|
+
withdrawalDays: number | null;
|
|
3403
|
+
withdrawalEndsAt: string | null;
|
|
3404
|
+
bcs: number | null;
|
|
1833
3405
|
followUpRequired: boolean;
|
|
1834
3406
|
followUpDate: string | null;
|
|
1835
3407
|
followUpNotes: string | null;
|
|
@@ -1848,6 +3420,9 @@ export declare const livestockResponseSchema: z.ZodObject<{
|
|
|
1848
3420
|
vaccineName: string | null;
|
|
1849
3421
|
batchNumber: string | null;
|
|
1850
3422
|
nextDueDate: string | null;
|
|
3423
|
+
withdrawalDays: number | null;
|
|
3424
|
+
withdrawalEndsAt: string | null;
|
|
3425
|
+
bcs: number | null;
|
|
1851
3426
|
followUpDate: string | null;
|
|
1852
3427
|
followUpNotes: string | null;
|
|
1853
3428
|
currency?: string | undefined;
|
|
@@ -1858,6 +3433,7 @@ export declare const livestockResponseSchema: z.ZodObject<{
|
|
|
1858
3433
|
recordDate: z.ZodString;
|
|
1859
3434
|
weight: z.ZodNumber;
|
|
1860
3435
|
weightUnit: z.ZodDefault<z.ZodString>;
|
|
3436
|
+
eventType: z.ZodDefault<z.ZodEnum<["routine", "weaning"]>>;
|
|
1861
3437
|
notes: z.ZodNullable<z.ZodString>;
|
|
1862
3438
|
}, "strip", z.ZodTypeAny, {
|
|
1863
3439
|
id: string;
|
|
@@ -1865,12 +3441,14 @@ export declare const livestockResponseSchema: z.ZodObject<{
|
|
|
1865
3441
|
weight: number;
|
|
1866
3442
|
recordDate: string;
|
|
1867
3443
|
weightUnit: string;
|
|
3444
|
+
eventType: "routine" | "weaning";
|
|
1868
3445
|
}, {
|
|
1869
3446
|
id: string;
|
|
1870
3447
|
notes: string | null;
|
|
1871
3448
|
weight: number;
|
|
1872
3449
|
recordDate: string;
|
|
1873
3450
|
weightUnit?: string | undefined;
|
|
3451
|
+
eventType?: "routine" | "weaning" | undefined;
|
|
1874
3452
|
}>, "many">>;
|
|
1875
3453
|
recentMovements: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1876
3454
|
id: z.ZodString;
|
|
@@ -1921,7 +3499,7 @@ export declare const livestockResponseSchema: z.ZodObject<{
|
|
|
1921
3499
|
location: string | null;
|
|
1922
3500
|
currency: string;
|
|
1923
3501
|
notes: string | null;
|
|
1924
|
-
category: "POULTRY" | "CATTLE" | "GOAT" | "
|
|
3502
|
+
category: "POULTRY" | "CATTLE" | "GOAT" | "SHEEP" | "OTHER" | "PIG" | "FISH" | "RABBIT";
|
|
1925
3503
|
groupId: string | null;
|
|
1926
3504
|
purchasePrice: number | null;
|
|
1927
3505
|
currentValue: number | null;
|
|
@@ -1939,8 +3517,12 @@ export declare const livestockResponseSchema: z.ZodObject<{
|
|
|
1939
3517
|
damId: string | null;
|
|
1940
3518
|
statusDate: string;
|
|
1941
3519
|
statusNote: string | null;
|
|
3520
|
+
photoUrl?: string | null | undefined;
|
|
3521
|
+
eid?: string | null | undefined;
|
|
3522
|
+
secondaryTagId?: string | null | undefined;
|
|
1942
3523
|
sireName?: string | null | undefined;
|
|
1943
3524
|
damName?: string | null | undefined;
|
|
3525
|
+
cullReason?: "other" | "poor_gain" | "health" | "age" | "temperament" | null | undefined;
|
|
1944
3526
|
healthRecords?: {
|
|
1945
3527
|
id: string;
|
|
1946
3528
|
description: string;
|
|
@@ -1957,6 +3539,9 @@ export declare const livestockResponseSchema: z.ZodObject<{
|
|
|
1957
3539
|
vaccineName: string | null;
|
|
1958
3540
|
batchNumber: string | null;
|
|
1959
3541
|
nextDueDate: string | null;
|
|
3542
|
+
withdrawalDays: number | null;
|
|
3543
|
+
withdrawalEndsAt: string | null;
|
|
3544
|
+
bcs: number | null;
|
|
1960
3545
|
followUpRequired: boolean;
|
|
1961
3546
|
followUpDate: string | null;
|
|
1962
3547
|
followUpNotes: string | null;
|
|
@@ -1967,6 +3552,7 @@ export declare const livestockResponseSchema: z.ZodObject<{
|
|
|
1967
3552
|
weight: number;
|
|
1968
3553
|
recordDate: string;
|
|
1969
3554
|
weightUnit: string;
|
|
3555
|
+
eventType: "routine" | "weaning";
|
|
1970
3556
|
}[] | undefined;
|
|
1971
3557
|
recentMovements?: {
|
|
1972
3558
|
id: string;
|
|
@@ -1989,7 +3575,7 @@ export declare const livestockResponseSchema: z.ZodObject<{
|
|
|
1989
3575
|
farmId: string;
|
|
1990
3576
|
location: string | null;
|
|
1991
3577
|
notes: string | null;
|
|
1992
|
-
category: "POULTRY" | "CATTLE" | "GOAT" | "
|
|
3578
|
+
category: "POULTRY" | "CATTLE" | "GOAT" | "SHEEP" | "OTHER" | "PIG" | "FISH" | "RABBIT";
|
|
1993
3579
|
groupId: string | null;
|
|
1994
3580
|
purchasePrice: number | null;
|
|
1995
3581
|
currentValue: number | null;
|
|
@@ -2007,9 +3593,13 @@ export declare const livestockResponseSchema: z.ZodObject<{
|
|
|
2007
3593
|
statusDate: string;
|
|
2008
3594
|
statusNote: string | null;
|
|
2009
3595
|
currency?: string | undefined;
|
|
3596
|
+
photoUrl?: string | null | undefined;
|
|
2010
3597
|
weightUnit?: string | undefined;
|
|
3598
|
+
eid?: string | null | undefined;
|
|
3599
|
+
secondaryTagId?: string | null | undefined;
|
|
2011
3600
|
sireName?: string | null | undefined;
|
|
2012
3601
|
damName?: string | null | undefined;
|
|
3602
|
+
cullReason?: "other" | "poor_gain" | "health" | "age" | "temperament" | null | undefined;
|
|
2013
3603
|
healthRecords?: {
|
|
2014
3604
|
id: string;
|
|
2015
3605
|
description: string;
|
|
@@ -2025,6 +3615,9 @@ export declare const livestockResponseSchema: z.ZodObject<{
|
|
|
2025
3615
|
vaccineName: string | null;
|
|
2026
3616
|
batchNumber: string | null;
|
|
2027
3617
|
nextDueDate: string | null;
|
|
3618
|
+
withdrawalDays: number | null;
|
|
3619
|
+
withdrawalEndsAt: string | null;
|
|
3620
|
+
bcs: number | null;
|
|
2028
3621
|
followUpDate: string | null;
|
|
2029
3622
|
followUpNotes: string | null;
|
|
2030
3623
|
currency?: string | undefined;
|
|
@@ -2036,6 +3629,7 @@ export declare const livestockResponseSchema: z.ZodObject<{
|
|
|
2036
3629
|
weight: number;
|
|
2037
3630
|
recordDate: string;
|
|
2038
3631
|
weightUnit?: string | undefined;
|
|
3632
|
+
eventType?: "routine" | "weaning" | undefined;
|
|
2039
3633
|
}[] | undefined;
|
|
2040
3634
|
recentMovements?: {
|
|
2041
3635
|
id: string;
|
|
@@ -2066,7 +3660,7 @@ export declare const livestockResponseSchema: z.ZodObject<{
|
|
|
2066
3660
|
location: string | null;
|
|
2067
3661
|
currency: string;
|
|
2068
3662
|
notes: string | null;
|
|
2069
|
-
category: "POULTRY" | "CATTLE" | "GOAT" | "
|
|
3663
|
+
category: "POULTRY" | "CATTLE" | "GOAT" | "SHEEP" | "OTHER" | "PIG" | "FISH" | "RABBIT";
|
|
2070
3664
|
groupId: string | null;
|
|
2071
3665
|
purchasePrice: number | null;
|
|
2072
3666
|
currentValue: number | null;
|
|
@@ -2084,8 +3678,12 @@ export declare const livestockResponseSchema: z.ZodObject<{
|
|
|
2084
3678
|
damId: string | null;
|
|
2085
3679
|
statusDate: string;
|
|
2086
3680
|
statusNote: string | null;
|
|
3681
|
+
photoUrl?: string | null | undefined;
|
|
3682
|
+
eid?: string | null | undefined;
|
|
3683
|
+
secondaryTagId?: string | null | undefined;
|
|
2087
3684
|
sireName?: string | null | undefined;
|
|
2088
3685
|
damName?: string | null | undefined;
|
|
3686
|
+
cullReason?: "other" | "poor_gain" | "health" | "age" | "temperament" | null | undefined;
|
|
2089
3687
|
healthRecords?: {
|
|
2090
3688
|
id: string;
|
|
2091
3689
|
description: string;
|
|
@@ -2102,6 +3700,9 @@ export declare const livestockResponseSchema: z.ZodObject<{
|
|
|
2102
3700
|
vaccineName: string | null;
|
|
2103
3701
|
batchNumber: string | null;
|
|
2104
3702
|
nextDueDate: string | null;
|
|
3703
|
+
withdrawalDays: number | null;
|
|
3704
|
+
withdrawalEndsAt: string | null;
|
|
3705
|
+
bcs: number | null;
|
|
2105
3706
|
followUpRequired: boolean;
|
|
2106
3707
|
followUpDate: string | null;
|
|
2107
3708
|
followUpNotes: string | null;
|
|
@@ -2112,6 +3713,7 @@ export declare const livestockResponseSchema: z.ZodObject<{
|
|
|
2112
3713
|
weight: number;
|
|
2113
3714
|
recordDate: string;
|
|
2114
3715
|
weightUnit: string;
|
|
3716
|
+
eventType: "routine" | "weaning";
|
|
2115
3717
|
}[] | undefined;
|
|
2116
3718
|
recentMovements?: {
|
|
2117
3719
|
id: string;
|
|
@@ -2141,7 +3743,7 @@ export declare const livestockResponseSchema: z.ZodObject<{
|
|
|
2141
3743
|
farmId: string;
|
|
2142
3744
|
location: string | null;
|
|
2143
3745
|
notes: string | null;
|
|
2144
|
-
category: "POULTRY" | "CATTLE" | "GOAT" | "
|
|
3746
|
+
category: "POULTRY" | "CATTLE" | "GOAT" | "SHEEP" | "OTHER" | "PIG" | "FISH" | "RABBIT";
|
|
2145
3747
|
groupId: string | null;
|
|
2146
3748
|
purchasePrice: number | null;
|
|
2147
3749
|
currentValue: number | null;
|
|
@@ -2159,9 +3761,13 @@ export declare const livestockResponseSchema: z.ZodObject<{
|
|
|
2159
3761
|
statusDate: string;
|
|
2160
3762
|
statusNote: string | null;
|
|
2161
3763
|
currency?: string | undefined;
|
|
3764
|
+
photoUrl?: string | null | undefined;
|
|
2162
3765
|
weightUnit?: string | undefined;
|
|
3766
|
+
eid?: string | null | undefined;
|
|
3767
|
+
secondaryTagId?: string | null | undefined;
|
|
2163
3768
|
sireName?: string | null | undefined;
|
|
2164
3769
|
damName?: string | null | undefined;
|
|
3770
|
+
cullReason?: "other" | "poor_gain" | "health" | "age" | "temperament" | null | undefined;
|
|
2165
3771
|
healthRecords?: {
|
|
2166
3772
|
id: string;
|
|
2167
3773
|
description: string;
|
|
@@ -2177,6 +3783,9 @@ export declare const livestockResponseSchema: z.ZodObject<{
|
|
|
2177
3783
|
vaccineName: string | null;
|
|
2178
3784
|
batchNumber: string | null;
|
|
2179
3785
|
nextDueDate: string | null;
|
|
3786
|
+
withdrawalDays: number | null;
|
|
3787
|
+
withdrawalEndsAt: string | null;
|
|
3788
|
+
bcs: number | null;
|
|
2180
3789
|
followUpDate: string | null;
|
|
2181
3790
|
followUpNotes: string | null;
|
|
2182
3791
|
currency?: string | undefined;
|
|
@@ -2188,6 +3797,7 @@ export declare const livestockResponseSchema: z.ZodObject<{
|
|
|
2188
3797
|
weight: number;
|
|
2189
3798
|
recordDate: string;
|
|
2190
3799
|
weightUnit?: string | undefined;
|
|
3800
|
+
eventType?: "routine" | "weaning" | undefined;
|
|
2191
3801
|
}[] | undefined;
|
|
2192
3802
|
recentMovements?: {
|
|
2193
3803
|
id: string;
|
|
@@ -2244,7 +3854,7 @@ export declare const livestockResponseSchema: z.ZodObject<{
|
|
|
2244
3854
|
location: string | null;
|
|
2245
3855
|
currency: string;
|
|
2246
3856
|
notes: string | null;
|
|
2247
|
-
category: "POULTRY" | "CATTLE" | "GOAT" | "
|
|
3857
|
+
category: "POULTRY" | "CATTLE" | "GOAT" | "SHEEP" | "OTHER" | "PIG" | "FISH" | "RABBIT";
|
|
2248
3858
|
groupId: string | null;
|
|
2249
3859
|
purchasePrice: number | null;
|
|
2250
3860
|
currentValue: number | null;
|
|
@@ -2262,8 +3872,12 @@ export declare const livestockResponseSchema: z.ZodObject<{
|
|
|
2262
3872
|
damId: string | null;
|
|
2263
3873
|
statusDate: string;
|
|
2264
3874
|
statusNote: string | null;
|
|
3875
|
+
photoUrl?: string | null | undefined;
|
|
3876
|
+
eid?: string | null | undefined;
|
|
3877
|
+
secondaryTagId?: string | null | undefined;
|
|
2265
3878
|
sireName?: string | null | undefined;
|
|
2266
3879
|
damName?: string | null | undefined;
|
|
3880
|
+
cullReason?: "other" | "poor_gain" | "health" | "age" | "temperament" | null | undefined;
|
|
2267
3881
|
healthRecords?: {
|
|
2268
3882
|
id: string;
|
|
2269
3883
|
description: string;
|
|
@@ -2280,6 +3894,9 @@ export declare const livestockResponseSchema: z.ZodObject<{
|
|
|
2280
3894
|
vaccineName: string | null;
|
|
2281
3895
|
batchNumber: string | null;
|
|
2282
3896
|
nextDueDate: string | null;
|
|
3897
|
+
withdrawalDays: number | null;
|
|
3898
|
+
withdrawalEndsAt: string | null;
|
|
3899
|
+
bcs: number | null;
|
|
2283
3900
|
followUpRequired: boolean;
|
|
2284
3901
|
followUpDate: string | null;
|
|
2285
3902
|
followUpNotes: string | null;
|
|
@@ -2290,6 +3907,7 @@ export declare const livestockResponseSchema: z.ZodObject<{
|
|
|
2290
3907
|
weight: number;
|
|
2291
3908
|
recordDate: string;
|
|
2292
3909
|
weightUnit: string;
|
|
3910
|
+
eventType: "routine" | "weaning";
|
|
2293
3911
|
}[] | undefined;
|
|
2294
3912
|
recentMovements?: {
|
|
2295
3913
|
id: string;
|
|
@@ -2331,7 +3949,7 @@ export declare const livestockResponseSchema: z.ZodObject<{
|
|
|
2331
3949
|
farmId: string;
|
|
2332
3950
|
location: string | null;
|
|
2333
3951
|
notes: string | null;
|
|
2334
|
-
category: "POULTRY" | "CATTLE" | "GOAT" | "
|
|
3952
|
+
category: "POULTRY" | "CATTLE" | "GOAT" | "SHEEP" | "OTHER" | "PIG" | "FISH" | "RABBIT";
|
|
2335
3953
|
groupId: string | null;
|
|
2336
3954
|
purchasePrice: number | null;
|
|
2337
3955
|
currentValue: number | null;
|
|
@@ -2349,9 +3967,13 @@ export declare const livestockResponseSchema: z.ZodObject<{
|
|
|
2349
3967
|
statusDate: string;
|
|
2350
3968
|
statusNote: string | null;
|
|
2351
3969
|
currency?: string | undefined;
|
|
3970
|
+
photoUrl?: string | null | undefined;
|
|
2352
3971
|
weightUnit?: string | undefined;
|
|
3972
|
+
eid?: string | null | undefined;
|
|
3973
|
+
secondaryTagId?: string | null | undefined;
|
|
2353
3974
|
sireName?: string | null | undefined;
|
|
2354
3975
|
damName?: string | null | undefined;
|
|
3976
|
+
cullReason?: "other" | "poor_gain" | "health" | "age" | "temperament" | null | undefined;
|
|
2355
3977
|
healthRecords?: {
|
|
2356
3978
|
id: string;
|
|
2357
3979
|
description: string;
|
|
@@ -2367,6 +3989,9 @@ export declare const livestockResponseSchema: z.ZodObject<{
|
|
|
2367
3989
|
vaccineName: string | null;
|
|
2368
3990
|
batchNumber: string | null;
|
|
2369
3991
|
nextDueDate: string | null;
|
|
3992
|
+
withdrawalDays: number | null;
|
|
3993
|
+
withdrawalEndsAt: string | null;
|
|
3994
|
+
bcs: number | null;
|
|
2370
3995
|
followUpDate: string | null;
|
|
2371
3996
|
followUpNotes: string | null;
|
|
2372
3997
|
currency?: string | undefined;
|
|
@@ -2378,6 +4003,7 @@ export declare const livestockResponseSchema: z.ZodObject<{
|
|
|
2378
4003
|
weight: number;
|
|
2379
4004
|
recordDate: string;
|
|
2380
4005
|
weightUnit?: string | undefined;
|
|
4006
|
+
eventType?: "routine" | "weaning" | undefined;
|
|
2381
4007
|
}[] | undefined;
|
|
2382
4008
|
recentMovements?: {
|
|
2383
4009
|
id: string;
|
|
@@ -2426,6 +4052,9 @@ export declare const livestockListResponseSchema: z.ZodObject<{
|
|
|
2426
4052
|
weight: z.ZodNullable<z.ZodNumber>;
|
|
2427
4053
|
weightUnit: z.ZodDefault<z.ZodString>;
|
|
2428
4054
|
lastWeighDate: z.ZodNullable<z.ZodString>;
|
|
4055
|
+
eid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4056
|
+
secondaryTagId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4057
|
+
photoUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2429
4058
|
sireId: z.ZodNullable<z.ZodString>;
|
|
2430
4059
|
damId: z.ZodNullable<z.ZodString>;
|
|
2431
4060
|
sireName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -2433,6 +4062,7 @@ export declare const livestockListResponseSchema: z.ZodObject<{
|
|
|
2433
4062
|
status: z.ZodEnum<["ACTIVE", "SOLD", "DECEASED", "TRANSFERRED", "QUARANTINE"]>;
|
|
2434
4063
|
statusDate: z.ZodString;
|
|
2435
4064
|
statusNote: z.ZodNullable<z.ZodString>;
|
|
4065
|
+
cullReason: z.ZodOptional<z.ZodNullable<z.ZodEnum<["poor_gain", "health", "age", "temperament", "other"]>>>;
|
|
2436
4066
|
location: z.ZodNullable<z.ZodString>;
|
|
2437
4067
|
groupId: z.ZodNullable<z.ZodString>;
|
|
2438
4068
|
purchasePrice: z.ZodNullable<z.ZodNumber>;
|
|
@@ -2452,6 +4082,9 @@ export declare const livestockListResponseSchema: z.ZodObject<{
|
|
|
2452
4082
|
vaccineName: z.ZodNullable<z.ZodString>;
|
|
2453
4083
|
batchNumber: z.ZodNullable<z.ZodString>;
|
|
2454
4084
|
nextDueDate: z.ZodNullable<z.ZodString>;
|
|
4085
|
+
withdrawalDays: z.ZodNullable<z.ZodNumber>;
|
|
4086
|
+
withdrawalEndsAt: z.ZodNullable<z.ZodString>;
|
|
4087
|
+
bcs: z.ZodNullable<z.ZodNumber>;
|
|
2455
4088
|
cost: z.ZodNullable<z.ZodNumber>;
|
|
2456
4089
|
currency: z.ZodDefault<z.ZodString>;
|
|
2457
4090
|
followUpRequired: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -2474,6 +4107,9 @@ export declare const livestockListResponseSchema: z.ZodObject<{
|
|
|
2474
4107
|
vaccineName: string | null;
|
|
2475
4108
|
batchNumber: string | null;
|
|
2476
4109
|
nextDueDate: string | null;
|
|
4110
|
+
withdrawalDays: number | null;
|
|
4111
|
+
withdrawalEndsAt: string | null;
|
|
4112
|
+
bcs: number | null;
|
|
2477
4113
|
followUpRequired: boolean;
|
|
2478
4114
|
followUpDate: string | null;
|
|
2479
4115
|
followUpNotes: string | null;
|
|
@@ -2492,6 +4128,9 @@ export declare const livestockListResponseSchema: z.ZodObject<{
|
|
|
2492
4128
|
vaccineName: string | null;
|
|
2493
4129
|
batchNumber: string | null;
|
|
2494
4130
|
nextDueDate: string | null;
|
|
4131
|
+
withdrawalDays: number | null;
|
|
4132
|
+
withdrawalEndsAt: string | null;
|
|
4133
|
+
bcs: number | null;
|
|
2495
4134
|
followUpDate: string | null;
|
|
2496
4135
|
followUpNotes: string | null;
|
|
2497
4136
|
currency?: string | undefined;
|
|
@@ -2502,6 +4141,7 @@ export declare const livestockListResponseSchema: z.ZodObject<{
|
|
|
2502
4141
|
recordDate: z.ZodString;
|
|
2503
4142
|
weight: z.ZodNumber;
|
|
2504
4143
|
weightUnit: z.ZodDefault<z.ZodString>;
|
|
4144
|
+
eventType: z.ZodDefault<z.ZodEnum<["routine", "weaning"]>>;
|
|
2505
4145
|
notes: z.ZodNullable<z.ZodString>;
|
|
2506
4146
|
}, "strip", z.ZodTypeAny, {
|
|
2507
4147
|
id: string;
|
|
@@ -2509,12 +4149,14 @@ export declare const livestockListResponseSchema: z.ZodObject<{
|
|
|
2509
4149
|
weight: number;
|
|
2510
4150
|
recordDate: string;
|
|
2511
4151
|
weightUnit: string;
|
|
4152
|
+
eventType: "routine" | "weaning";
|
|
2512
4153
|
}, {
|
|
2513
4154
|
id: string;
|
|
2514
4155
|
notes: string | null;
|
|
2515
4156
|
weight: number;
|
|
2516
4157
|
recordDate: string;
|
|
2517
4158
|
weightUnit?: string | undefined;
|
|
4159
|
+
eventType?: "routine" | "weaning" | undefined;
|
|
2518
4160
|
}>, "many">>;
|
|
2519
4161
|
recentMovements: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2520
4162
|
id: z.ZodString;
|
|
@@ -2565,7 +4207,7 @@ export declare const livestockListResponseSchema: z.ZodObject<{
|
|
|
2565
4207
|
location: string | null;
|
|
2566
4208
|
currency: string;
|
|
2567
4209
|
notes: string | null;
|
|
2568
|
-
category: "POULTRY" | "CATTLE" | "GOAT" | "
|
|
4210
|
+
category: "POULTRY" | "CATTLE" | "GOAT" | "SHEEP" | "OTHER" | "PIG" | "FISH" | "RABBIT";
|
|
2569
4211
|
groupId: string | null;
|
|
2570
4212
|
purchasePrice: number | null;
|
|
2571
4213
|
currentValue: number | null;
|
|
@@ -2583,8 +4225,12 @@ export declare const livestockListResponseSchema: z.ZodObject<{
|
|
|
2583
4225
|
damId: string | null;
|
|
2584
4226
|
statusDate: string;
|
|
2585
4227
|
statusNote: string | null;
|
|
4228
|
+
photoUrl?: string | null | undefined;
|
|
4229
|
+
eid?: string | null | undefined;
|
|
4230
|
+
secondaryTagId?: string | null | undefined;
|
|
2586
4231
|
sireName?: string | null | undefined;
|
|
2587
4232
|
damName?: string | null | undefined;
|
|
4233
|
+
cullReason?: "other" | "poor_gain" | "health" | "age" | "temperament" | null | undefined;
|
|
2588
4234
|
healthRecords?: {
|
|
2589
4235
|
id: string;
|
|
2590
4236
|
description: string;
|
|
@@ -2601,6 +4247,9 @@ export declare const livestockListResponseSchema: z.ZodObject<{
|
|
|
2601
4247
|
vaccineName: string | null;
|
|
2602
4248
|
batchNumber: string | null;
|
|
2603
4249
|
nextDueDate: string | null;
|
|
4250
|
+
withdrawalDays: number | null;
|
|
4251
|
+
withdrawalEndsAt: string | null;
|
|
4252
|
+
bcs: number | null;
|
|
2604
4253
|
followUpRequired: boolean;
|
|
2605
4254
|
followUpDate: string | null;
|
|
2606
4255
|
followUpNotes: string | null;
|
|
@@ -2611,6 +4260,7 @@ export declare const livestockListResponseSchema: z.ZodObject<{
|
|
|
2611
4260
|
weight: number;
|
|
2612
4261
|
recordDate: string;
|
|
2613
4262
|
weightUnit: string;
|
|
4263
|
+
eventType: "routine" | "weaning";
|
|
2614
4264
|
}[] | undefined;
|
|
2615
4265
|
recentMovements?: {
|
|
2616
4266
|
id: string;
|
|
@@ -2633,7 +4283,7 @@ export declare const livestockListResponseSchema: z.ZodObject<{
|
|
|
2633
4283
|
farmId: string;
|
|
2634
4284
|
location: string | null;
|
|
2635
4285
|
notes: string | null;
|
|
2636
|
-
category: "POULTRY" | "CATTLE" | "GOAT" | "
|
|
4286
|
+
category: "POULTRY" | "CATTLE" | "GOAT" | "SHEEP" | "OTHER" | "PIG" | "FISH" | "RABBIT";
|
|
2637
4287
|
groupId: string | null;
|
|
2638
4288
|
purchasePrice: number | null;
|
|
2639
4289
|
currentValue: number | null;
|
|
@@ -2651,9 +4301,13 @@ export declare const livestockListResponseSchema: z.ZodObject<{
|
|
|
2651
4301
|
statusDate: string;
|
|
2652
4302
|
statusNote: string | null;
|
|
2653
4303
|
currency?: string | undefined;
|
|
4304
|
+
photoUrl?: string | null | undefined;
|
|
2654
4305
|
weightUnit?: string | undefined;
|
|
4306
|
+
eid?: string | null | undefined;
|
|
4307
|
+
secondaryTagId?: string | null | undefined;
|
|
2655
4308
|
sireName?: string | null | undefined;
|
|
2656
4309
|
damName?: string | null | undefined;
|
|
4310
|
+
cullReason?: "other" | "poor_gain" | "health" | "age" | "temperament" | null | undefined;
|
|
2657
4311
|
healthRecords?: {
|
|
2658
4312
|
id: string;
|
|
2659
4313
|
description: string;
|
|
@@ -2669,6 +4323,9 @@ export declare const livestockListResponseSchema: z.ZodObject<{
|
|
|
2669
4323
|
vaccineName: string | null;
|
|
2670
4324
|
batchNumber: string | null;
|
|
2671
4325
|
nextDueDate: string | null;
|
|
4326
|
+
withdrawalDays: number | null;
|
|
4327
|
+
withdrawalEndsAt: string | null;
|
|
4328
|
+
bcs: number | null;
|
|
2672
4329
|
followUpDate: string | null;
|
|
2673
4330
|
followUpNotes: string | null;
|
|
2674
4331
|
currency?: string | undefined;
|
|
@@ -2680,6 +4337,7 @@ export declare const livestockListResponseSchema: z.ZodObject<{
|
|
|
2680
4337
|
weight: number;
|
|
2681
4338
|
recordDate: string;
|
|
2682
4339
|
weightUnit?: string | undefined;
|
|
4340
|
+
eventType?: "routine" | "weaning" | undefined;
|
|
2683
4341
|
}[] | undefined;
|
|
2684
4342
|
recentMovements?: {
|
|
2685
4343
|
id: string;
|
|
@@ -2710,7 +4368,7 @@ export declare const livestockListResponseSchema: z.ZodObject<{
|
|
|
2710
4368
|
location: string | null;
|
|
2711
4369
|
currency: string;
|
|
2712
4370
|
notes: string | null;
|
|
2713
|
-
category: "POULTRY" | "CATTLE" | "GOAT" | "
|
|
4371
|
+
category: "POULTRY" | "CATTLE" | "GOAT" | "SHEEP" | "OTHER" | "PIG" | "FISH" | "RABBIT";
|
|
2714
4372
|
groupId: string | null;
|
|
2715
4373
|
purchasePrice: number | null;
|
|
2716
4374
|
currentValue: number | null;
|
|
@@ -2728,8 +4386,12 @@ export declare const livestockListResponseSchema: z.ZodObject<{
|
|
|
2728
4386
|
damId: string | null;
|
|
2729
4387
|
statusDate: string;
|
|
2730
4388
|
statusNote: string | null;
|
|
4389
|
+
photoUrl?: string | null | undefined;
|
|
4390
|
+
eid?: string | null | undefined;
|
|
4391
|
+
secondaryTagId?: string | null | undefined;
|
|
2731
4392
|
sireName?: string | null | undefined;
|
|
2732
4393
|
damName?: string | null | undefined;
|
|
4394
|
+
cullReason?: "other" | "poor_gain" | "health" | "age" | "temperament" | null | undefined;
|
|
2733
4395
|
healthRecords?: {
|
|
2734
4396
|
id: string;
|
|
2735
4397
|
description: string;
|
|
@@ -2746,6 +4408,9 @@ export declare const livestockListResponseSchema: z.ZodObject<{
|
|
|
2746
4408
|
vaccineName: string | null;
|
|
2747
4409
|
batchNumber: string | null;
|
|
2748
4410
|
nextDueDate: string | null;
|
|
4411
|
+
withdrawalDays: number | null;
|
|
4412
|
+
withdrawalEndsAt: string | null;
|
|
4413
|
+
bcs: number | null;
|
|
2749
4414
|
followUpRequired: boolean;
|
|
2750
4415
|
followUpDate: string | null;
|
|
2751
4416
|
followUpNotes: string | null;
|
|
@@ -2756,6 +4421,7 @@ export declare const livestockListResponseSchema: z.ZodObject<{
|
|
|
2756
4421
|
weight: number;
|
|
2757
4422
|
recordDate: string;
|
|
2758
4423
|
weightUnit: string;
|
|
4424
|
+
eventType: "routine" | "weaning";
|
|
2759
4425
|
}[] | undefined;
|
|
2760
4426
|
recentMovements?: {
|
|
2761
4427
|
id: string;
|
|
@@ -2785,7 +4451,7 @@ export declare const livestockListResponseSchema: z.ZodObject<{
|
|
|
2785
4451
|
farmId: string;
|
|
2786
4452
|
location: string | null;
|
|
2787
4453
|
notes: string | null;
|
|
2788
|
-
category: "POULTRY" | "CATTLE" | "GOAT" | "
|
|
4454
|
+
category: "POULTRY" | "CATTLE" | "GOAT" | "SHEEP" | "OTHER" | "PIG" | "FISH" | "RABBIT";
|
|
2789
4455
|
groupId: string | null;
|
|
2790
4456
|
purchasePrice: number | null;
|
|
2791
4457
|
currentValue: number | null;
|
|
@@ -2803,9 +4469,13 @@ export declare const livestockListResponseSchema: z.ZodObject<{
|
|
|
2803
4469
|
statusDate: string;
|
|
2804
4470
|
statusNote: string | null;
|
|
2805
4471
|
currency?: string | undefined;
|
|
4472
|
+
photoUrl?: string | null | undefined;
|
|
2806
4473
|
weightUnit?: string | undefined;
|
|
4474
|
+
eid?: string | null | undefined;
|
|
4475
|
+
secondaryTagId?: string | null | undefined;
|
|
2807
4476
|
sireName?: string | null | undefined;
|
|
2808
4477
|
damName?: string | null | undefined;
|
|
4478
|
+
cullReason?: "other" | "poor_gain" | "health" | "age" | "temperament" | null | undefined;
|
|
2809
4479
|
healthRecords?: {
|
|
2810
4480
|
id: string;
|
|
2811
4481
|
description: string;
|
|
@@ -2821,6 +4491,9 @@ export declare const livestockListResponseSchema: z.ZodObject<{
|
|
|
2821
4491
|
vaccineName: string | null;
|
|
2822
4492
|
batchNumber: string | null;
|
|
2823
4493
|
nextDueDate: string | null;
|
|
4494
|
+
withdrawalDays: number | null;
|
|
4495
|
+
withdrawalEndsAt: string | null;
|
|
4496
|
+
bcs: number | null;
|
|
2824
4497
|
followUpDate: string | null;
|
|
2825
4498
|
followUpNotes: string | null;
|
|
2826
4499
|
currency?: string | undefined;
|
|
@@ -2832,6 +4505,7 @@ export declare const livestockListResponseSchema: z.ZodObject<{
|
|
|
2832
4505
|
weight: number;
|
|
2833
4506
|
recordDate: string;
|
|
2834
4507
|
weightUnit?: string | undefined;
|
|
4508
|
+
eventType?: "routine" | "weaning" | undefined;
|
|
2835
4509
|
}[] | undefined;
|
|
2836
4510
|
recentMovements?: {
|
|
2837
4511
|
id: string;
|
|
@@ -2888,7 +4562,7 @@ export declare const livestockListResponseSchema: z.ZodObject<{
|
|
|
2888
4562
|
location: string | null;
|
|
2889
4563
|
currency: string;
|
|
2890
4564
|
notes: string | null;
|
|
2891
|
-
category: "POULTRY" | "CATTLE" | "GOAT" | "
|
|
4565
|
+
category: "POULTRY" | "CATTLE" | "GOAT" | "SHEEP" | "OTHER" | "PIG" | "FISH" | "RABBIT";
|
|
2892
4566
|
groupId: string | null;
|
|
2893
4567
|
purchasePrice: number | null;
|
|
2894
4568
|
currentValue: number | null;
|
|
@@ -2906,8 +4580,12 @@ export declare const livestockListResponseSchema: z.ZodObject<{
|
|
|
2906
4580
|
damId: string | null;
|
|
2907
4581
|
statusDate: string;
|
|
2908
4582
|
statusNote: string | null;
|
|
4583
|
+
photoUrl?: string | null | undefined;
|
|
4584
|
+
eid?: string | null | undefined;
|
|
4585
|
+
secondaryTagId?: string | null | undefined;
|
|
2909
4586
|
sireName?: string | null | undefined;
|
|
2910
4587
|
damName?: string | null | undefined;
|
|
4588
|
+
cullReason?: "other" | "poor_gain" | "health" | "age" | "temperament" | null | undefined;
|
|
2911
4589
|
healthRecords?: {
|
|
2912
4590
|
id: string;
|
|
2913
4591
|
description: string;
|
|
@@ -2924,6 +4602,9 @@ export declare const livestockListResponseSchema: z.ZodObject<{
|
|
|
2924
4602
|
vaccineName: string | null;
|
|
2925
4603
|
batchNumber: string | null;
|
|
2926
4604
|
nextDueDate: string | null;
|
|
4605
|
+
withdrawalDays: number | null;
|
|
4606
|
+
withdrawalEndsAt: string | null;
|
|
4607
|
+
bcs: number | null;
|
|
2927
4608
|
followUpRequired: boolean;
|
|
2928
4609
|
followUpDate: string | null;
|
|
2929
4610
|
followUpNotes: string | null;
|
|
@@ -2934,6 +4615,7 @@ export declare const livestockListResponseSchema: z.ZodObject<{
|
|
|
2934
4615
|
weight: number;
|
|
2935
4616
|
recordDate: string;
|
|
2936
4617
|
weightUnit: string;
|
|
4618
|
+
eventType: "routine" | "weaning";
|
|
2937
4619
|
}[] | undefined;
|
|
2938
4620
|
recentMovements?: {
|
|
2939
4621
|
id: string;
|
|
@@ -2975,7 +4657,7 @@ export declare const livestockListResponseSchema: z.ZodObject<{
|
|
|
2975
4657
|
farmId: string;
|
|
2976
4658
|
location: string | null;
|
|
2977
4659
|
notes: string | null;
|
|
2978
|
-
category: "POULTRY" | "CATTLE" | "GOAT" | "
|
|
4660
|
+
category: "POULTRY" | "CATTLE" | "GOAT" | "SHEEP" | "OTHER" | "PIG" | "FISH" | "RABBIT";
|
|
2979
4661
|
groupId: string | null;
|
|
2980
4662
|
purchasePrice: number | null;
|
|
2981
4663
|
currentValue: number | null;
|
|
@@ -2993,9 +4675,13 @@ export declare const livestockListResponseSchema: z.ZodObject<{
|
|
|
2993
4675
|
statusDate: string;
|
|
2994
4676
|
statusNote: string | null;
|
|
2995
4677
|
currency?: string | undefined;
|
|
4678
|
+
photoUrl?: string | null | undefined;
|
|
2996
4679
|
weightUnit?: string | undefined;
|
|
4680
|
+
eid?: string | null | undefined;
|
|
4681
|
+
secondaryTagId?: string | null | undefined;
|
|
2997
4682
|
sireName?: string | null | undefined;
|
|
2998
4683
|
damName?: string | null | undefined;
|
|
4684
|
+
cullReason?: "other" | "poor_gain" | "health" | "age" | "temperament" | null | undefined;
|
|
2999
4685
|
healthRecords?: {
|
|
3000
4686
|
id: string;
|
|
3001
4687
|
description: string;
|
|
@@ -3011,6 +4697,9 @@ export declare const livestockListResponseSchema: z.ZodObject<{
|
|
|
3011
4697
|
vaccineName: string | null;
|
|
3012
4698
|
batchNumber: string | null;
|
|
3013
4699
|
nextDueDate: string | null;
|
|
4700
|
+
withdrawalDays: number | null;
|
|
4701
|
+
withdrawalEndsAt: string | null;
|
|
4702
|
+
bcs: number | null;
|
|
3014
4703
|
followUpDate: string | null;
|
|
3015
4704
|
followUpNotes: string | null;
|
|
3016
4705
|
currency?: string | undefined;
|
|
@@ -3022,6 +4711,7 @@ export declare const livestockListResponseSchema: z.ZodObject<{
|
|
|
3022
4711
|
weight: number;
|
|
3023
4712
|
recordDate: string;
|
|
3024
4713
|
weightUnit?: string | undefined;
|
|
4714
|
+
eventType?: "routine" | "weaning" | undefined;
|
|
3025
4715
|
}[] | undefined;
|
|
3026
4716
|
recentMovements?: {
|
|
3027
4717
|
id: string;
|
|
@@ -3069,6 +4759,9 @@ export declare const healthRecordResponseSchema: z.ZodObject<{
|
|
|
3069
4759
|
vaccineName: z.ZodNullable<z.ZodString>;
|
|
3070
4760
|
batchNumber: z.ZodNullable<z.ZodString>;
|
|
3071
4761
|
nextDueDate: z.ZodNullable<z.ZodString>;
|
|
4762
|
+
withdrawalDays: z.ZodNullable<z.ZodNumber>;
|
|
4763
|
+
withdrawalEndsAt: z.ZodNullable<z.ZodString>;
|
|
4764
|
+
bcs: z.ZodNullable<z.ZodNumber>;
|
|
3072
4765
|
cost: z.ZodNullable<z.ZodNumber>;
|
|
3073
4766
|
currency: z.ZodDefault<z.ZodString>;
|
|
3074
4767
|
followUpRequired: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -3091,6 +4784,9 @@ export declare const healthRecordResponseSchema: z.ZodObject<{
|
|
|
3091
4784
|
vaccineName: string | null;
|
|
3092
4785
|
batchNumber: string | null;
|
|
3093
4786
|
nextDueDate: string | null;
|
|
4787
|
+
withdrawalDays: number | null;
|
|
4788
|
+
withdrawalEndsAt: string | null;
|
|
4789
|
+
bcs: number | null;
|
|
3094
4790
|
followUpRequired: boolean;
|
|
3095
4791
|
followUpDate: string | null;
|
|
3096
4792
|
followUpNotes: string | null;
|
|
@@ -3109,6 +4805,9 @@ export declare const healthRecordResponseSchema: z.ZodObject<{
|
|
|
3109
4805
|
vaccineName: string | null;
|
|
3110
4806
|
batchNumber: string | null;
|
|
3111
4807
|
nextDueDate: string | null;
|
|
4808
|
+
withdrawalDays: number | null;
|
|
4809
|
+
withdrawalEndsAt: string | null;
|
|
4810
|
+
bcs: number | null;
|
|
3112
4811
|
followUpDate: string | null;
|
|
3113
4812
|
followUpNotes: string | null;
|
|
3114
4813
|
currency?: string | undefined;
|
|
@@ -3136,6 +4835,9 @@ export declare const healthRecordResponseSchema: z.ZodObject<{
|
|
|
3136
4835
|
vaccineName: string | null;
|
|
3137
4836
|
batchNumber: string | null;
|
|
3138
4837
|
nextDueDate: string | null;
|
|
4838
|
+
withdrawalDays: number | null;
|
|
4839
|
+
withdrawalEndsAt: string | null;
|
|
4840
|
+
bcs: number | null;
|
|
3139
4841
|
followUpRequired: boolean;
|
|
3140
4842
|
followUpDate: string | null;
|
|
3141
4843
|
followUpNotes: string | null;
|
|
@@ -3161,6 +4863,9 @@ export declare const healthRecordResponseSchema: z.ZodObject<{
|
|
|
3161
4863
|
vaccineName: string | null;
|
|
3162
4864
|
batchNumber: string | null;
|
|
3163
4865
|
nextDueDate: string | null;
|
|
4866
|
+
withdrawalDays: number | null;
|
|
4867
|
+
withdrawalEndsAt: string | null;
|
|
4868
|
+
bcs: number | null;
|
|
3164
4869
|
followUpDate: string | null;
|
|
3165
4870
|
followUpNotes: string | null;
|
|
3166
4871
|
currency?: string | undefined;
|
|
@@ -3214,6 +4919,9 @@ export declare const healthRecordResponseSchema: z.ZodObject<{
|
|
|
3214
4919
|
vaccineName: string | null;
|
|
3215
4920
|
batchNumber: string | null;
|
|
3216
4921
|
nextDueDate: string | null;
|
|
4922
|
+
withdrawalDays: number | null;
|
|
4923
|
+
withdrawalEndsAt: string | null;
|
|
4924
|
+
bcs: number | null;
|
|
3217
4925
|
followUpRequired: boolean;
|
|
3218
4926
|
followUpDate: string | null;
|
|
3219
4927
|
followUpNotes: string | null;
|
|
@@ -3251,6 +4959,9 @@ export declare const healthRecordResponseSchema: z.ZodObject<{
|
|
|
3251
4959
|
vaccineName: string | null;
|
|
3252
4960
|
batchNumber: string | null;
|
|
3253
4961
|
nextDueDate: string | null;
|
|
4962
|
+
withdrawalDays: number | null;
|
|
4963
|
+
withdrawalEndsAt: string | null;
|
|
4964
|
+
bcs: number | null;
|
|
3254
4965
|
followUpDate: string | null;
|
|
3255
4966
|
followUpNotes: string | null;
|
|
3256
4967
|
currency?: string | undefined;
|
|
@@ -3288,6 +4999,9 @@ export declare const healthRecordListResponseSchema: z.ZodObject<{
|
|
|
3288
4999
|
vaccineName: z.ZodNullable<z.ZodString>;
|
|
3289
5000
|
batchNumber: z.ZodNullable<z.ZodString>;
|
|
3290
5001
|
nextDueDate: z.ZodNullable<z.ZodString>;
|
|
5002
|
+
withdrawalDays: z.ZodNullable<z.ZodNumber>;
|
|
5003
|
+
withdrawalEndsAt: z.ZodNullable<z.ZodString>;
|
|
5004
|
+
bcs: z.ZodNullable<z.ZodNumber>;
|
|
3291
5005
|
cost: z.ZodNullable<z.ZodNumber>;
|
|
3292
5006
|
currency: z.ZodDefault<z.ZodString>;
|
|
3293
5007
|
followUpRequired: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -3310,6 +5024,9 @@ export declare const healthRecordListResponseSchema: z.ZodObject<{
|
|
|
3310
5024
|
vaccineName: string | null;
|
|
3311
5025
|
batchNumber: string | null;
|
|
3312
5026
|
nextDueDate: string | null;
|
|
5027
|
+
withdrawalDays: number | null;
|
|
5028
|
+
withdrawalEndsAt: string | null;
|
|
5029
|
+
bcs: number | null;
|
|
3313
5030
|
followUpRequired: boolean;
|
|
3314
5031
|
followUpDate: string | null;
|
|
3315
5032
|
followUpNotes: string | null;
|
|
@@ -3328,6 +5045,9 @@ export declare const healthRecordListResponseSchema: z.ZodObject<{
|
|
|
3328
5045
|
vaccineName: string | null;
|
|
3329
5046
|
batchNumber: string | null;
|
|
3330
5047
|
nextDueDate: string | null;
|
|
5048
|
+
withdrawalDays: number | null;
|
|
5049
|
+
withdrawalEndsAt: string | null;
|
|
5050
|
+
bcs: number | null;
|
|
3331
5051
|
followUpDate: string | null;
|
|
3332
5052
|
followUpNotes: string | null;
|
|
3333
5053
|
currency?: string | undefined;
|
|
@@ -3355,6 +5075,9 @@ export declare const healthRecordListResponseSchema: z.ZodObject<{
|
|
|
3355
5075
|
vaccineName: string | null;
|
|
3356
5076
|
batchNumber: string | null;
|
|
3357
5077
|
nextDueDate: string | null;
|
|
5078
|
+
withdrawalDays: number | null;
|
|
5079
|
+
withdrawalEndsAt: string | null;
|
|
5080
|
+
bcs: number | null;
|
|
3358
5081
|
followUpRequired: boolean;
|
|
3359
5082
|
followUpDate: string | null;
|
|
3360
5083
|
followUpNotes: string | null;
|
|
@@ -3380,6 +5103,9 @@ export declare const healthRecordListResponseSchema: z.ZodObject<{
|
|
|
3380
5103
|
vaccineName: string | null;
|
|
3381
5104
|
batchNumber: string | null;
|
|
3382
5105
|
nextDueDate: string | null;
|
|
5106
|
+
withdrawalDays: number | null;
|
|
5107
|
+
withdrawalEndsAt: string | null;
|
|
5108
|
+
bcs: number | null;
|
|
3383
5109
|
followUpDate: string | null;
|
|
3384
5110
|
followUpNotes: string | null;
|
|
3385
5111
|
currency?: string | undefined;
|
|
@@ -3433,6 +5159,9 @@ export declare const healthRecordListResponseSchema: z.ZodObject<{
|
|
|
3433
5159
|
vaccineName: string | null;
|
|
3434
5160
|
batchNumber: string | null;
|
|
3435
5161
|
nextDueDate: string | null;
|
|
5162
|
+
withdrawalDays: number | null;
|
|
5163
|
+
withdrawalEndsAt: string | null;
|
|
5164
|
+
bcs: number | null;
|
|
3436
5165
|
followUpRequired: boolean;
|
|
3437
5166
|
followUpDate: string | null;
|
|
3438
5167
|
followUpNotes: string | null;
|
|
@@ -3470,6 +5199,9 @@ export declare const healthRecordListResponseSchema: z.ZodObject<{
|
|
|
3470
5199
|
vaccineName: string | null;
|
|
3471
5200
|
batchNumber: string | null;
|
|
3472
5201
|
nextDueDate: string | null;
|
|
5202
|
+
withdrawalDays: number | null;
|
|
5203
|
+
withdrawalEndsAt: string | null;
|
|
5204
|
+
bcs: number | null;
|
|
3473
5205
|
followUpDate: string | null;
|
|
3474
5206
|
followUpNotes: string | null;
|
|
3475
5207
|
currency?: string | undefined;
|
|
@@ -3499,6 +5231,7 @@ export declare const weightRecordResponseSchema: z.ZodObject<{
|
|
|
3499
5231
|
recordDate: z.ZodString;
|
|
3500
5232
|
weight: z.ZodNumber;
|
|
3501
5233
|
weightUnit: z.ZodDefault<z.ZodString>;
|
|
5234
|
+
eventType: z.ZodDefault<z.ZodEnum<["routine", "weaning"]>>;
|
|
3502
5235
|
notes: z.ZodNullable<z.ZodString>;
|
|
3503
5236
|
}, "strip", z.ZodTypeAny, {
|
|
3504
5237
|
id: string;
|
|
@@ -3506,12 +5239,14 @@ export declare const weightRecordResponseSchema: z.ZodObject<{
|
|
|
3506
5239
|
weight: number;
|
|
3507
5240
|
recordDate: string;
|
|
3508
5241
|
weightUnit: string;
|
|
5242
|
+
eventType: "routine" | "weaning";
|
|
3509
5243
|
}, {
|
|
3510
5244
|
id: string;
|
|
3511
5245
|
notes: string | null;
|
|
3512
5246
|
weight: number;
|
|
3513
5247
|
recordDate: string;
|
|
3514
5248
|
weightUnit?: string | undefined;
|
|
5249
|
+
eventType?: "routine" | "weaning" | undefined;
|
|
3515
5250
|
}>;
|
|
3516
5251
|
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3517
5252
|
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -3525,6 +5260,7 @@ export declare const weightRecordResponseSchema: z.ZodObject<{
|
|
|
3525
5260
|
weight: number;
|
|
3526
5261
|
recordDate: string;
|
|
3527
5262
|
weightUnit: string;
|
|
5263
|
+
eventType: "routine" | "weaning";
|
|
3528
5264
|
};
|
|
3529
5265
|
relationships?: Record<string, unknown> | undefined;
|
|
3530
5266
|
links?: Record<string, string> | undefined;
|
|
@@ -3538,6 +5274,7 @@ export declare const weightRecordResponseSchema: z.ZodObject<{
|
|
|
3538
5274
|
weight: number;
|
|
3539
5275
|
recordDate: string;
|
|
3540
5276
|
weightUnit?: string | undefined;
|
|
5277
|
+
eventType?: "routine" | "weaning" | undefined;
|
|
3541
5278
|
};
|
|
3542
5279
|
relationships?: Record<string, unknown> | undefined;
|
|
3543
5280
|
links?: Record<string, string> | undefined;
|
|
@@ -3577,6 +5314,7 @@ export declare const weightRecordResponseSchema: z.ZodObject<{
|
|
|
3577
5314
|
weight: number;
|
|
3578
5315
|
recordDate: string;
|
|
3579
5316
|
weightUnit: string;
|
|
5317
|
+
eventType: "routine" | "weaning";
|
|
3580
5318
|
};
|
|
3581
5319
|
relationships?: Record<string, unknown> | undefined;
|
|
3582
5320
|
links?: Record<string, string> | undefined;
|
|
@@ -3602,6 +5340,7 @@ export declare const weightRecordResponseSchema: z.ZodObject<{
|
|
|
3602
5340
|
weight: number;
|
|
3603
5341
|
recordDate: string;
|
|
3604
5342
|
weightUnit?: string | undefined;
|
|
5343
|
+
eventType?: "routine" | "weaning" | undefined;
|
|
3605
5344
|
};
|
|
3606
5345
|
relationships?: Record<string, unknown> | undefined;
|
|
3607
5346
|
links?: Record<string, string> | undefined;
|
|
@@ -3970,14 +5709,14 @@ export declare const livestockStatsSchema: z.ZodObject<{
|
|
|
3970
5709
|
totalValue: number;
|
|
3971
5710
|
byStatus: Partial<Record<"ACTIVE" | "SOLD" | "DECEASED" | "TRANSFERRED" | "QUARANTINE", number>>;
|
|
3972
5711
|
totalCount: number;
|
|
3973
|
-
byCategory: Partial<Record<"POULTRY" | "CATTLE" | "GOAT" | "
|
|
5712
|
+
byCategory: Partial<Record<"POULTRY" | "CATTLE" | "GOAT" | "SHEEP" | "OTHER" | "PIG" | "FISH" | "RABBIT", number>>;
|
|
3974
5713
|
bySex: Partial<Record<"MALE" | "FEMALE" | "UNKNOWN", number>>;
|
|
3975
5714
|
}, {
|
|
3976
5715
|
currency: string;
|
|
3977
5716
|
totalValue: number;
|
|
3978
5717
|
byStatus: Partial<Record<"ACTIVE" | "SOLD" | "DECEASED" | "TRANSFERRED" | "QUARANTINE", number>>;
|
|
3979
5718
|
totalCount: number;
|
|
3980
|
-
byCategory: Partial<Record<"POULTRY" | "CATTLE" | "GOAT" | "
|
|
5719
|
+
byCategory: Partial<Record<"POULTRY" | "CATTLE" | "GOAT" | "SHEEP" | "OTHER" | "PIG" | "FISH" | "RABBIT", number>>;
|
|
3981
5720
|
bySex: Partial<Record<"MALE" | "FEMALE" | "UNKNOWN", number>>;
|
|
3982
5721
|
}>;
|
|
3983
5722
|
export declare const livestockStatsResponseSchema: z.ZodObject<{
|
|
@@ -3993,14 +5732,14 @@ export declare const livestockStatsResponseSchema: z.ZodObject<{
|
|
|
3993
5732
|
totalValue: number;
|
|
3994
5733
|
byStatus: Partial<Record<"ACTIVE" | "SOLD" | "DECEASED" | "TRANSFERRED" | "QUARANTINE", number>>;
|
|
3995
5734
|
totalCount: number;
|
|
3996
|
-
byCategory: Partial<Record<"POULTRY" | "CATTLE" | "GOAT" | "
|
|
5735
|
+
byCategory: Partial<Record<"POULTRY" | "CATTLE" | "GOAT" | "SHEEP" | "OTHER" | "PIG" | "FISH" | "RABBIT", number>>;
|
|
3997
5736
|
bySex: Partial<Record<"MALE" | "FEMALE" | "UNKNOWN", number>>;
|
|
3998
5737
|
}, {
|
|
3999
5738
|
currency: string;
|
|
4000
5739
|
totalValue: number;
|
|
4001
5740
|
byStatus: Partial<Record<"ACTIVE" | "SOLD" | "DECEASED" | "TRANSFERRED" | "QUARANTINE", number>>;
|
|
4002
5741
|
totalCount: number;
|
|
4003
|
-
byCategory: Partial<Record<"POULTRY" | "CATTLE" | "GOAT" | "
|
|
5742
|
+
byCategory: Partial<Record<"POULTRY" | "CATTLE" | "GOAT" | "SHEEP" | "OTHER" | "PIG" | "FISH" | "RABBIT", number>>;
|
|
4004
5743
|
bySex: Partial<Record<"MALE" | "FEMALE" | "UNKNOWN", number>>;
|
|
4005
5744
|
}>;
|
|
4006
5745
|
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -4010,7 +5749,7 @@ export declare const livestockStatsResponseSchema: z.ZodObject<{
|
|
|
4010
5749
|
totalValue: number;
|
|
4011
5750
|
byStatus: Partial<Record<"ACTIVE" | "SOLD" | "DECEASED" | "TRANSFERRED" | "QUARANTINE", number>>;
|
|
4012
5751
|
totalCount: number;
|
|
4013
|
-
byCategory: Partial<Record<"POULTRY" | "CATTLE" | "GOAT" | "
|
|
5752
|
+
byCategory: Partial<Record<"POULTRY" | "CATTLE" | "GOAT" | "SHEEP" | "OTHER" | "PIG" | "FISH" | "RABBIT", number>>;
|
|
4014
5753
|
bySex: Partial<Record<"MALE" | "FEMALE" | "UNKNOWN", number>>;
|
|
4015
5754
|
};
|
|
4016
5755
|
meta?: Record<string, unknown> | undefined;
|
|
@@ -4020,7 +5759,7 @@ export declare const livestockStatsResponseSchema: z.ZodObject<{
|
|
|
4020
5759
|
totalValue: number;
|
|
4021
5760
|
byStatus: Partial<Record<"ACTIVE" | "SOLD" | "DECEASED" | "TRANSFERRED" | "QUARANTINE", number>>;
|
|
4022
5761
|
totalCount: number;
|
|
4023
|
-
byCategory: Partial<Record<"POULTRY" | "CATTLE" | "GOAT" | "
|
|
5762
|
+
byCategory: Partial<Record<"POULTRY" | "CATTLE" | "GOAT" | "SHEEP" | "OTHER" | "PIG" | "FISH" | "RABBIT", number>>;
|
|
4024
5763
|
bySex: Partial<Record<"MALE" | "FEMALE" | "UNKNOWN", number>>;
|
|
4025
5764
|
};
|
|
4026
5765
|
meta?: Record<string, unknown> | undefined;
|
|
@@ -4031,6 +5770,8 @@ export type LivestockStatus = z.infer<typeof livestockStatusSchema>;
|
|
|
4031
5770
|
export type HealthRecordType = z.infer<typeof healthRecordTypeSchema>;
|
|
4032
5771
|
export type MovementType = z.infer<typeof movementTypeSchema>;
|
|
4033
5772
|
export type AcquisitionType = z.infer<typeof acquisitionTypeSchema>;
|
|
5773
|
+
export type WeightEventType = z.infer<typeof weightEventTypeSchema>;
|
|
5774
|
+
export type CullReason = z.infer<typeof cullReasonSchema>;
|
|
4034
5775
|
export type WeightRecordAttributes = z.infer<typeof weightRecordAttributesSchema>;
|
|
4035
5776
|
export type HealthRecordAttributes = z.infer<typeof healthRecordAttributesSchema>;
|
|
4036
5777
|
export type MovementRecordAttributes = z.infer<typeof movementRecordAttributesSchema>;
|
|
@@ -4040,15 +5781,30 @@ export type UpdateLivestockAttributes = z.infer<typeof updateLivestockAttributes
|
|
|
4040
5781
|
export type CreateHealthRecordAttributes = z.infer<typeof createHealthRecordAttributesSchema>;
|
|
4041
5782
|
export type CreateWeightRecordAttributes = z.infer<typeof createWeightRecordAttributesSchema>;
|
|
4042
5783
|
export type CreateMovementRecordAttributes = z.infer<typeof createMovementRecordAttributesSchema>;
|
|
5784
|
+
export type CreateSaleTicketAttributes = z.infer<typeof createSaleTicketAttributesSchema>;
|
|
5785
|
+
export type SaleTicketAttributes = z.infer<typeof saleTicketAttributesSchema>;
|
|
5786
|
+
export type BreedingEventType = z.infer<typeof breedingEventTypeSchema>;
|
|
5787
|
+
export type BreedingOutcome = z.infer<typeof breedingOutcomeSchema>;
|
|
5788
|
+
export type BreedingMethod = z.infer<typeof breedingMethodSchema>;
|
|
5789
|
+
export type BreedingEventAttributes = z.infer<typeof breedingEventAttributesSchema>;
|
|
5790
|
+
export type CreateBreedingEventAttributes = z.infer<typeof createBreedingEventAttributesSchema>;
|
|
5791
|
+
export type CreateFamachaAttributes = z.infer<typeof createFamachaAttributesSchema>;
|
|
5792
|
+
export type FamachaAttributes = z.infer<typeof famachaAttributesSchema>;
|
|
4043
5793
|
export type CreateLivestockInput = z.infer<typeof createLivestockSchema>;
|
|
4044
5794
|
export type UpdateLivestockInput = z.infer<typeof updateLivestockSchema>;
|
|
4045
5795
|
export type CreateHealthRecordInput = z.infer<typeof createHealthRecordSchema>;
|
|
4046
5796
|
export type CreateWeightRecordInput = z.infer<typeof createWeightRecordSchema>;
|
|
4047
5797
|
export type CreateMovementRecordInput = z.infer<typeof createMovementRecordSchema>;
|
|
5798
|
+
export type CreateSaleTicketInput = z.infer<typeof createSaleTicketSchema>;
|
|
5799
|
+
export type SaleTicketResponse = z.infer<typeof saleTicketResponseSchema>;
|
|
5800
|
+
export type CreateBreedingEventInput = z.infer<typeof createBreedingEventSchema>;
|
|
5801
|
+
export type CreateFamachaInput = z.infer<typeof createFamachaSchema>;
|
|
4048
5802
|
export type LivestockResource = z.infer<typeof livestockResourceSchema>;
|
|
4049
5803
|
export type HealthRecordResource = z.infer<typeof healthRecordResourceSchema>;
|
|
4050
5804
|
export type WeightRecordResource = z.infer<typeof weightRecordResourceSchema>;
|
|
4051
5805
|
export type MovementRecordResource = z.infer<typeof movementRecordResourceSchema>;
|
|
5806
|
+
export type BreedingEventResource = z.infer<typeof breedingEventResourceSchema>;
|
|
5807
|
+
export type FamachaResource = z.infer<typeof famachaResourceSchema>;
|
|
4052
5808
|
export type LivestockResponse = z.infer<typeof livestockResponseSchema>;
|
|
4053
5809
|
export type LivestockListResponse = z.infer<typeof livestockListResponseSchema>;
|
|
4054
5810
|
export type HealthRecordResponse = z.infer<typeof healthRecordResponseSchema>;
|
|
@@ -4056,6 +5812,10 @@ export type HealthRecordListResponse = z.infer<typeof healthRecordListResponseSc
|
|
|
4056
5812
|
export type WeightRecordResponse = z.infer<typeof weightRecordResponseSchema>;
|
|
4057
5813
|
export type MovementRecordResponse = z.infer<typeof movementRecordResponseSchema>;
|
|
4058
5814
|
export type MovementRecordListResponse = z.infer<typeof movementRecordListResponseSchema>;
|
|
5815
|
+
export type BreedingEventResponse = z.infer<typeof breedingEventResponseSchema>;
|
|
5816
|
+
export type BreedingEventListResponse = z.infer<typeof breedingEventListResponseSchema>;
|
|
5817
|
+
export type FamachaResponse = z.infer<typeof famachaResponseSchema>;
|
|
5818
|
+
export type FamachaListResponse = z.infer<typeof famachaListResponseSchema>;
|
|
4059
5819
|
export type LivestockStats = z.infer<typeof livestockStatsSchema>;
|
|
4060
5820
|
export type LivestockStatsResponse = z.infer<typeof livestockStatsResponseSchema>;
|
|
4061
5821
|
//# sourceMappingURL=livestock.schemas.d.ts.map
|