@deepintel-ltd/farmpro-contracts 1.22.2 → 1.22.3

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.
@@ -2,7 +2,7 @@ import { z } from 'zod';
2
2
  /**
3
3
  * Finance schemas - JSON:API compliant
4
4
  */
5
- export declare const expenseAllocationTypeSchema: z.ZodEnum<["field", "crop", "general"]>;
5
+ export declare const expenseAllocationTypeSchema: z.ZodEnum<["field", "crop", "general", "livestock_group"]>;
6
6
  export declare const budgetPeriodSchema: z.ZodEnum<["monthly", "quarterly", "annual", "custom", "legacy"]>;
7
7
  export declare const budgetAttributesSchema: z.ZodObject<{
8
8
  category: z.ZodString;
@@ -79,11 +79,13 @@ export declare const expenseAttributesSchema: z.ZodObject<{
79
79
  category: z.ZodString;
80
80
  description: z.ZodString;
81
81
  amount: z.ZodNumber;
82
- allocationType: z.ZodEnum<["field", "crop", "general"]>;
82
+ allocationType: z.ZodEnum<["field", "crop", "general", "livestock_group"]>;
83
83
  fieldId: z.ZodNullable<z.ZodString>;
84
84
  fieldName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
85
85
  cropId: z.ZodNullable<z.ZodString>;
86
86
  cropName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
87
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
88
+ groupName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
87
89
  createdById: z.ZodNullable<z.ZodString>;
88
90
  createdByName: z.ZodNullable<z.ZodString>;
89
91
  ledgerSourceType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -101,11 +103,13 @@ export declare const expenseAttributesSchema: z.ZodObject<{
101
103
  fieldId: string | null;
102
104
  cropId: string | null;
103
105
  amount: number;
104
- allocationType: "crop" | "field" | "general";
106
+ allocationType: "crop" | "field" | "general" | "livestock_group";
105
107
  createdById: string | null;
106
108
  createdByName: string | null;
107
109
  fieldName?: string | null | undefined;
108
110
  cropName?: string | null | undefined;
111
+ groupId?: string | null | undefined;
112
+ groupName?: string | null | undefined;
109
113
  ledgerSourceType?: string | null | undefined;
110
114
  ledgerSourceId?: string | null | undefined;
111
115
  documentId?: string | null | undefined;
@@ -118,11 +122,13 @@ export declare const expenseAttributesSchema: z.ZodObject<{
118
122
  fieldId: string | null;
119
123
  cropId: string | null;
120
124
  amount: number;
121
- allocationType: "crop" | "field" | "general";
125
+ allocationType: "crop" | "field" | "general" | "livestock_group";
122
126
  createdById: string | null;
123
127
  createdByName: string | null;
124
128
  fieldName?: string | null | undefined;
125
129
  cropName?: string | null | undefined;
130
+ groupId?: string | null | undefined;
131
+ groupName?: string | null | undefined;
126
132
  ledgerSourceType?: string | null | undefined;
127
133
  ledgerSourceId?: string | null | undefined;
128
134
  documentId?: string | null | undefined;
@@ -132,17 +138,19 @@ export declare const createExpenseAttributesSchema: z.ZodEffects<z.ZodObject<{
132
138
  category: z.ZodOptional<z.ZodString>;
133
139
  description: z.ZodString;
134
140
  amount: z.ZodNumber;
135
- allocationType: z.ZodDefault<z.ZodEnum<["field", "crop", "general"]>>;
141
+ allocationType: z.ZodDefault<z.ZodEnum<["field", "crop", "general", "livestock_group"]>>;
136
142
  fieldId: z.ZodOptional<z.ZodString>;
137
143
  cropId: z.ZodOptional<z.ZodString>;
144
+ groupId: z.ZodOptional<z.ZodString>;
138
145
  }, "strip", z.ZodTypeAny, {
139
146
  date: string;
140
147
  description: string;
141
148
  amount: number;
142
- allocationType: "crop" | "field" | "general";
149
+ allocationType: "crop" | "field" | "general" | "livestock_group";
143
150
  category?: string | undefined;
144
151
  fieldId?: string | undefined;
145
152
  cropId?: string | undefined;
153
+ groupId?: string | undefined;
146
154
  }, {
147
155
  date: string;
148
156
  description: string;
@@ -150,15 +158,17 @@ export declare const createExpenseAttributesSchema: z.ZodEffects<z.ZodObject<{
150
158
  category?: string | undefined;
151
159
  fieldId?: string | undefined;
152
160
  cropId?: string | undefined;
153
- allocationType?: "crop" | "field" | "general" | undefined;
161
+ allocationType?: "crop" | "field" | "general" | "livestock_group" | undefined;
162
+ groupId?: string | undefined;
154
163
  }>, {
155
164
  date: string;
156
165
  description: string;
157
166
  amount: number;
158
- allocationType: "crop" | "field" | "general";
167
+ allocationType: "crop" | "field" | "general" | "livestock_group";
159
168
  category?: string | undefined;
160
169
  fieldId?: string | undefined;
161
170
  cropId?: string | undefined;
171
+ groupId?: string | undefined;
162
172
  }, {
163
173
  date: string;
164
174
  description: string;
@@ -166,16 +176,18 @@ export declare const createExpenseAttributesSchema: z.ZodEffects<z.ZodObject<{
166
176
  category?: string | undefined;
167
177
  fieldId?: string | undefined;
168
178
  cropId?: string | undefined;
169
- allocationType?: "crop" | "field" | "general" | undefined;
179
+ allocationType?: "crop" | "field" | "general" | "livestock_group" | undefined;
180
+ groupId?: string | undefined;
170
181
  }>;
171
182
  export declare const updateExpenseAttributesSchema: z.ZodObject<{
172
183
  date: z.ZodOptional<z.ZodString>;
173
184
  category: z.ZodOptional<z.ZodString>;
174
185
  description: z.ZodOptional<z.ZodString>;
175
186
  amount: z.ZodOptional<z.ZodNumber>;
176
- allocationType: z.ZodOptional<z.ZodEnum<["field", "crop", "general"]>>;
187
+ allocationType: z.ZodOptional<z.ZodEnum<["field", "crop", "general", "livestock_group"]>>;
177
188
  fieldId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
178
189
  cropId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
190
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
179
191
  }, "strip", z.ZodTypeAny, {
180
192
  date?: string | undefined;
181
193
  description?: string | undefined;
@@ -183,7 +195,8 @@ export declare const updateExpenseAttributesSchema: z.ZodObject<{
183
195
  fieldId?: string | null | undefined;
184
196
  cropId?: string | null | undefined;
185
197
  amount?: number | undefined;
186
- allocationType?: "crop" | "field" | "general" | undefined;
198
+ allocationType?: "crop" | "field" | "general" | "livestock_group" | undefined;
199
+ groupId?: string | null | undefined;
187
200
  }, {
188
201
  date?: string | undefined;
189
202
  description?: string | undefined;
@@ -191,7 +204,8 @@ export declare const updateExpenseAttributesSchema: z.ZodObject<{
191
204
  fieldId?: string | null | undefined;
192
205
  cropId?: string | null | undefined;
193
206
  amount?: number | undefined;
194
- allocationType?: "crop" | "field" | "general" | undefined;
207
+ allocationType?: "crop" | "field" | "general" | "livestock_group" | undefined;
208
+ groupId?: string | null | undefined;
195
209
  }>;
196
210
  export declare const revenueAttributesSchema: z.ZodObject<{
197
211
  date: z.ZodString;
@@ -203,6 +217,8 @@ export declare const revenueAttributesSchema: z.ZodObject<{
203
217
  buyer: z.ZodNullable<z.ZodString>;
204
218
  fieldId: z.ZodNullable<z.ZodString>;
205
219
  fieldName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
220
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
221
+ groupName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
206
222
  harvestId: z.ZodNullable<z.ZodString>;
207
223
  invoiceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
208
224
  ledgerSourceType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -227,6 +243,8 @@ export declare const revenueAttributesSchema: z.ZodObject<{
227
243
  buyer: string | null;
228
244
  harvestId: string | null;
229
245
  fieldName?: string | null | undefined;
246
+ groupId?: string | null | undefined;
247
+ groupName?: string | null | undefined;
230
248
  ledgerSourceType?: string | null | undefined;
231
249
  ledgerSourceId?: string | null | undefined;
232
250
  invoiceId?: string | null | undefined;
@@ -245,6 +263,8 @@ export declare const revenueAttributesSchema: z.ZodObject<{
245
263
  buyer: string | null;
246
264
  harvestId: string | null;
247
265
  fieldName?: string | null | undefined;
266
+ groupId?: string | null | undefined;
267
+ groupName?: string | null | undefined;
248
268
  ledgerSourceType?: string | null | undefined;
249
269
  ledgerSourceId?: string | null | undefined;
250
270
  invoiceId?: string | null | undefined;
@@ -260,6 +280,7 @@ export declare const createRevenueAttributesSchema: z.ZodEffects<z.ZodObject<{
260
280
  totalAmount: z.ZodOptional<z.ZodNumber>;
261
281
  buyer: z.ZodOptional<z.ZodString>;
262
282
  fieldId: z.ZodOptional<z.ZodString>;
283
+ groupId: z.ZodOptional<z.ZodString>;
263
284
  harvestId: z.ZodOptional<z.ZodString>;
264
285
  }, "strip", z.ZodTypeAny, {
265
286
  date: string;
@@ -268,6 +289,7 @@ export declare const createRevenueAttributesSchema: z.ZodEffects<z.ZodObject<{
268
289
  quantity?: number | undefined;
269
290
  unit?: string | undefined;
270
291
  fieldId?: string | undefined;
292
+ groupId?: string | undefined;
271
293
  pricePerUnit?: number | undefined;
272
294
  totalAmount?: number | undefined;
273
295
  buyer?: string | undefined;
@@ -279,6 +301,7 @@ export declare const createRevenueAttributesSchema: z.ZodEffects<z.ZodObject<{
279
301
  quantity?: number | undefined;
280
302
  unit?: string | undefined;
281
303
  fieldId?: string | undefined;
304
+ groupId?: string | undefined;
282
305
  pricePerUnit?: number | undefined;
283
306
  totalAmount?: number | undefined;
284
307
  buyer?: string | undefined;
@@ -290,6 +313,7 @@ export declare const createRevenueAttributesSchema: z.ZodEffects<z.ZodObject<{
290
313
  quantity?: number | undefined;
291
314
  unit?: string | undefined;
292
315
  fieldId?: string | undefined;
316
+ groupId?: string | undefined;
293
317
  pricePerUnit?: number | undefined;
294
318
  totalAmount?: number | undefined;
295
319
  buyer?: string | undefined;
@@ -301,6 +325,7 @@ export declare const createRevenueAttributesSchema: z.ZodEffects<z.ZodObject<{
301
325
  quantity?: number | undefined;
302
326
  unit?: string | undefined;
303
327
  fieldId?: string | undefined;
328
+ groupId?: string | undefined;
304
329
  pricePerUnit?: number | undefined;
305
330
  totalAmount?: number | undefined;
306
331
  buyer?: string | undefined;
@@ -315,6 +340,7 @@ export declare const updateRevenueAttributesSchema: z.ZodObject<{
315
340
  totalAmount: z.ZodOptional<z.ZodNumber>;
316
341
  buyer: z.ZodOptional<z.ZodNullable<z.ZodString>>;
317
342
  fieldId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
343
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
318
344
  harvestId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
319
345
  }, "strip", z.ZodTypeAny, {
320
346
  date?: string | undefined;
@@ -322,6 +348,7 @@ export declare const updateRevenueAttributesSchema: z.ZodObject<{
322
348
  quantity?: number | undefined;
323
349
  unit?: string | undefined;
324
350
  fieldId?: string | null | undefined;
351
+ groupId?: string | null | undefined;
325
352
  pricePerUnit?: number | undefined;
326
353
  totalAmount?: number | undefined;
327
354
  buyer?: string | null | undefined;
@@ -332,6 +359,7 @@ export declare const updateRevenueAttributesSchema: z.ZodObject<{
332
359
  quantity?: number | undefined;
333
360
  unit?: string | undefined;
334
361
  fieldId?: string | null | undefined;
362
+ groupId?: string | null | undefined;
335
363
  pricePerUnit?: number | undefined;
336
364
  totalAmount?: number | undefined;
337
365
  buyer?: string | null | undefined;
@@ -427,17 +455,19 @@ export declare const createExpenseSchema: z.ZodObject<{
427
455
  category: z.ZodOptional<z.ZodString>;
428
456
  description: z.ZodString;
429
457
  amount: z.ZodNumber;
430
- allocationType: z.ZodDefault<z.ZodEnum<["field", "crop", "general"]>>;
458
+ allocationType: z.ZodDefault<z.ZodEnum<["field", "crop", "general", "livestock_group"]>>;
431
459
  fieldId: z.ZodOptional<z.ZodString>;
432
460
  cropId: z.ZodOptional<z.ZodString>;
461
+ groupId: z.ZodOptional<z.ZodString>;
433
462
  }, "strip", z.ZodTypeAny, {
434
463
  date: string;
435
464
  description: string;
436
465
  amount: number;
437
- allocationType: "crop" | "field" | "general";
466
+ allocationType: "crop" | "field" | "general" | "livestock_group";
438
467
  category?: string | undefined;
439
468
  fieldId?: string | undefined;
440
469
  cropId?: string | undefined;
470
+ groupId?: string | undefined;
441
471
  }, {
442
472
  date: string;
443
473
  description: string;
@@ -445,15 +475,17 @@ export declare const createExpenseSchema: z.ZodObject<{
445
475
  category?: string | undefined;
446
476
  fieldId?: string | undefined;
447
477
  cropId?: string | undefined;
448
- allocationType?: "crop" | "field" | "general" | undefined;
478
+ allocationType?: "crop" | "field" | "general" | "livestock_group" | undefined;
479
+ groupId?: string | undefined;
449
480
  }>, {
450
481
  date: string;
451
482
  description: string;
452
483
  amount: number;
453
- allocationType: "crop" | "field" | "general";
484
+ allocationType: "crop" | "field" | "general" | "livestock_group";
454
485
  category?: string | undefined;
455
486
  fieldId?: string | undefined;
456
487
  cropId?: string | undefined;
488
+ groupId?: string | undefined;
457
489
  }, {
458
490
  date: string;
459
491
  description: string;
@@ -461,7 +493,8 @@ export declare const createExpenseSchema: z.ZodObject<{
461
493
  category?: string | undefined;
462
494
  fieldId?: string | undefined;
463
495
  cropId?: string | undefined;
464
- allocationType?: "crop" | "field" | "general" | undefined;
496
+ allocationType?: "crop" | "field" | "general" | "livestock_group" | undefined;
497
+ groupId?: string | undefined;
465
498
  }>;
466
499
  }, "strip", z.ZodTypeAny, {
467
500
  type: "expenses";
@@ -469,10 +502,11 @@ export declare const createExpenseSchema: z.ZodObject<{
469
502
  date: string;
470
503
  description: string;
471
504
  amount: number;
472
- allocationType: "crop" | "field" | "general";
505
+ allocationType: "crop" | "field" | "general" | "livestock_group";
473
506
  category?: string | undefined;
474
507
  fieldId?: string | undefined;
475
508
  cropId?: string | undefined;
509
+ groupId?: string | undefined;
476
510
  };
477
511
  }, {
478
512
  type: "expenses";
@@ -483,7 +517,8 @@ export declare const createExpenseSchema: z.ZodObject<{
483
517
  category?: string | undefined;
484
518
  fieldId?: string | undefined;
485
519
  cropId?: string | undefined;
486
- allocationType?: "crop" | "field" | "general" | undefined;
520
+ allocationType?: "crop" | "field" | "general" | "livestock_group" | undefined;
521
+ groupId?: string | undefined;
487
522
  };
488
523
  }>;
489
524
  export declare const updateExpenseSchema: z.ZodObject<{
@@ -494,9 +529,10 @@ export declare const updateExpenseSchema: z.ZodObject<{
494
529
  category: z.ZodOptional<z.ZodString>;
495
530
  description: z.ZodOptional<z.ZodString>;
496
531
  amount: z.ZodOptional<z.ZodNumber>;
497
- allocationType: z.ZodOptional<z.ZodEnum<["field", "crop", "general"]>>;
532
+ allocationType: z.ZodOptional<z.ZodEnum<["field", "crop", "general", "livestock_group"]>>;
498
533
  fieldId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
499
534
  cropId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
535
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
500
536
  }, "strip", z.ZodTypeAny, {
501
537
  date?: string | undefined;
502
538
  description?: string | undefined;
@@ -504,7 +540,8 @@ export declare const updateExpenseSchema: z.ZodObject<{
504
540
  fieldId?: string | null | undefined;
505
541
  cropId?: string | null | undefined;
506
542
  amount?: number | undefined;
507
- allocationType?: "crop" | "field" | "general" | undefined;
543
+ allocationType?: "crop" | "field" | "general" | "livestock_group" | undefined;
544
+ groupId?: string | null | undefined;
508
545
  }, {
509
546
  date?: string | undefined;
510
547
  description?: string | undefined;
@@ -512,7 +549,8 @@ export declare const updateExpenseSchema: z.ZodObject<{
512
549
  fieldId?: string | null | undefined;
513
550
  cropId?: string | null | undefined;
514
551
  amount?: number | undefined;
515
- allocationType?: "crop" | "field" | "general" | undefined;
552
+ allocationType?: "crop" | "field" | "general" | "livestock_group" | undefined;
553
+ groupId?: string | null | undefined;
516
554
  }>;
517
555
  }, "strip", z.ZodTypeAny, {
518
556
  type: "expenses";
@@ -524,7 +562,8 @@ export declare const updateExpenseSchema: z.ZodObject<{
524
562
  fieldId?: string | null | undefined;
525
563
  cropId?: string | null | undefined;
526
564
  amount?: number | undefined;
527
- allocationType?: "crop" | "field" | "general" | undefined;
565
+ allocationType?: "crop" | "field" | "general" | "livestock_group" | undefined;
566
+ groupId?: string | null | undefined;
528
567
  };
529
568
  }, {
530
569
  type: "expenses";
@@ -536,7 +575,8 @@ export declare const updateExpenseSchema: z.ZodObject<{
536
575
  fieldId?: string | null | undefined;
537
576
  cropId?: string | null | undefined;
538
577
  amount?: number | undefined;
539
- allocationType?: "crop" | "field" | "general" | undefined;
578
+ allocationType?: "crop" | "field" | "general" | "livestock_group" | undefined;
579
+ groupId?: string | null | undefined;
540
580
  };
541
581
  }>;
542
582
  export declare const createRevenueSchema: z.ZodObject<{
@@ -552,6 +592,7 @@ export declare const createRevenueSchema: z.ZodObject<{
552
592
  totalAmount: z.ZodOptional<z.ZodNumber>;
553
593
  buyer: z.ZodOptional<z.ZodString>;
554
594
  fieldId: z.ZodOptional<z.ZodString>;
595
+ groupId: z.ZodOptional<z.ZodString>;
555
596
  harvestId: z.ZodOptional<z.ZodString>;
556
597
  }, "strip", z.ZodTypeAny, {
557
598
  date: string;
@@ -560,6 +601,7 @@ export declare const createRevenueSchema: z.ZodObject<{
560
601
  quantity?: number | undefined;
561
602
  unit?: string | undefined;
562
603
  fieldId?: string | undefined;
604
+ groupId?: string | undefined;
563
605
  pricePerUnit?: number | undefined;
564
606
  totalAmount?: number | undefined;
565
607
  buyer?: string | undefined;
@@ -571,6 +613,7 @@ export declare const createRevenueSchema: z.ZodObject<{
571
613
  quantity?: number | undefined;
572
614
  unit?: string | undefined;
573
615
  fieldId?: string | undefined;
616
+ groupId?: string | undefined;
574
617
  pricePerUnit?: number | undefined;
575
618
  totalAmount?: number | undefined;
576
619
  buyer?: string | undefined;
@@ -582,6 +625,7 @@ export declare const createRevenueSchema: z.ZodObject<{
582
625
  quantity?: number | undefined;
583
626
  unit?: string | undefined;
584
627
  fieldId?: string | undefined;
628
+ groupId?: string | undefined;
585
629
  pricePerUnit?: number | undefined;
586
630
  totalAmount?: number | undefined;
587
631
  buyer?: string | undefined;
@@ -593,6 +637,7 @@ export declare const createRevenueSchema: z.ZodObject<{
593
637
  quantity?: number | undefined;
594
638
  unit?: string | undefined;
595
639
  fieldId?: string | undefined;
640
+ groupId?: string | undefined;
596
641
  pricePerUnit?: number | undefined;
597
642
  totalAmount?: number | undefined;
598
643
  buyer?: string | undefined;
@@ -607,6 +652,7 @@ export declare const createRevenueSchema: z.ZodObject<{
607
652
  quantity?: number | undefined;
608
653
  unit?: string | undefined;
609
654
  fieldId?: string | undefined;
655
+ groupId?: string | undefined;
610
656
  pricePerUnit?: number | undefined;
611
657
  totalAmount?: number | undefined;
612
658
  buyer?: string | undefined;
@@ -621,6 +667,7 @@ export declare const createRevenueSchema: z.ZodObject<{
621
667
  quantity?: number | undefined;
622
668
  unit?: string | undefined;
623
669
  fieldId?: string | undefined;
670
+ groupId?: string | undefined;
624
671
  pricePerUnit?: number | undefined;
625
672
  totalAmount?: number | undefined;
626
673
  buyer?: string | undefined;
@@ -639,6 +686,7 @@ export declare const updateRevenueSchema: z.ZodObject<{
639
686
  totalAmount: z.ZodOptional<z.ZodNumber>;
640
687
  buyer: z.ZodOptional<z.ZodNullable<z.ZodString>>;
641
688
  fieldId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
689
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
642
690
  harvestId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
643
691
  }, "strip", z.ZodTypeAny, {
644
692
  date?: string | undefined;
@@ -646,6 +694,7 @@ export declare const updateRevenueSchema: z.ZodObject<{
646
694
  quantity?: number | undefined;
647
695
  unit?: string | undefined;
648
696
  fieldId?: string | null | undefined;
697
+ groupId?: string | null | undefined;
649
698
  pricePerUnit?: number | undefined;
650
699
  totalAmount?: number | undefined;
651
700
  buyer?: string | null | undefined;
@@ -656,6 +705,7 @@ export declare const updateRevenueSchema: z.ZodObject<{
656
705
  quantity?: number | undefined;
657
706
  unit?: string | undefined;
658
707
  fieldId?: string | null | undefined;
708
+ groupId?: string | null | undefined;
659
709
  pricePerUnit?: number | undefined;
660
710
  totalAmount?: number | undefined;
661
711
  buyer?: string | null | undefined;
@@ -670,6 +720,7 @@ export declare const updateRevenueSchema: z.ZodObject<{
670
720
  quantity?: number | undefined;
671
721
  unit?: string | undefined;
672
722
  fieldId?: string | null | undefined;
723
+ groupId?: string | null | undefined;
673
724
  pricePerUnit?: number | undefined;
674
725
  totalAmount?: number | undefined;
675
726
  buyer?: string | null | undefined;
@@ -684,6 +735,7 @@ export declare const updateRevenueSchema: z.ZodObject<{
684
735
  quantity?: number | undefined;
685
736
  unit?: string | undefined;
686
737
  fieldId?: string | null | undefined;
738
+ groupId?: string | null | undefined;
687
739
  pricePerUnit?: number | undefined;
688
740
  totalAmount?: number | undefined;
689
741
  buyer?: string | null | undefined;
@@ -771,11 +823,13 @@ export declare const expenseResourceSchema: z.ZodObject<{
771
823
  category: z.ZodString;
772
824
  description: z.ZodString;
773
825
  amount: z.ZodNumber;
774
- allocationType: z.ZodEnum<["field", "crop", "general"]>;
826
+ allocationType: z.ZodEnum<["field", "crop", "general", "livestock_group"]>;
775
827
  fieldId: z.ZodNullable<z.ZodString>;
776
828
  fieldName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
777
829
  cropId: z.ZodNullable<z.ZodString>;
778
830
  cropName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
831
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
832
+ groupName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
779
833
  createdById: z.ZodNullable<z.ZodString>;
780
834
  createdByName: z.ZodNullable<z.ZodString>;
781
835
  ledgerSourceType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -793,11 +847,13 @@ export declare const expenseResourceSchema: z.ZodObject<{
793
847
  fieldId: string | null;
794
848
  cropId: string | null;
795
849
  amount: number;
796
- allocationType: "crop" | "field" | "general";
850
+ allocationType: "crop" | "field" | "general" | "livestock_group";
797
851
  createdById: string | null;
798
852
  createdByName: string | null;
799
853
  fieldName?: string | null | undefined;
800
854
  cropName?: string | null | undefined;
855
+ groupId?: string | null | undefined;
856
+ groupName?: string | null | undefined;
801
857
  ledgerSourceType?: string | null | undefined;
802
858
  ledgerSourceId?: string | null | undefined;
803
859
  documentId?: string | null | undefined;
@@ -810,11 +866,13 @@ export declare const expenseResourceSchema: z.ZodObject<{
810
866
  fieldId: string | null;
811
867
  cropId: string | null;
812
868
  amount: number;
813
- allocationType: "crop" | "field" | "general";
869
+ allocationType: "crop" | "field" | "general" | "livestock_group";
814
870
  createdById: string | null;
815
871
  createdByName: string | null;
816
872
  fieldName?: string | null | undefined;
817
873
  cropName?: string | null | undefined;
874
+ groupId?: string | null | undefined;
875
+ groupName?: string | null | undefined;
818
876
  ledgerSourceType?: string | null | undefined;
819
877
  ledgerSourceId?: string | null | undefined;
820
878
  documentId?: string | null | undefined;
@@ -834,11 +892,13 @@ export declare const expenseResourceSchema: z.ZodObject<{
834
892
  fieldId: string | null;
835
893
  cropId: string | null;
836
894
  amount: number;
837
- allocationType: "crop" | "field" | "general";
895
+ allocationType: "crop" | "field" | "general" | "livestock_group";
838
896
  createdById: string | null;
839
897
  createdByName: string | null;
840
898
  fieldName?: string | null | undefined;
841
899
  cropName?: string | null | undefined;
900
+ groupId?: string | null | undefined;
901
+ groupName?: string | null | undefined;
842
902
  ledgerSourceType?: string | null | undefined;
843
903
  ledgerSourceId?: string | null | undefined;
844
904
  documentId?: string | null | undefined;
@@ -858,11 +918,13 @@ export declare const expenseResourceSchema: z.ZodObject<{
858
918
  fieldId: string | null;
859
919
  cropId: string | null;
860
920
  amount: number;
861
- allocationType: "crop" | "field" | "general";
921
+ allocationType: "crop" | "field" | "general" | "livestock_group";
862
922
  createdById: string | null;
863
923
  createdByName: string | null;
864
924
  fieldName?: string | null | undefined;
865
925
  cropName?: string | null | undefined;
926
+ groupId?: string | null | undefined;
927
+ groupName?: string | null | undefined;
866
928
  ledgerSourceType?: string | null | undefined;
867
929
  ledgerSourceId?: string | null | undefined;
868
930
  documentId?: string | null | undefined;
@@ -884,6 +946,8 @@ export declare const revenueResourceSchema: z.ZodObject<{
884
946
  buyer: z.ZodNullable<z.ZodString>;
885
947
  fieldId: z.ZodNullable<z.ZodString>;
886
948
  fieldName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
949
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
950
+ groupName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
887
951
  harvestId: z.ZodNullable<z.ZodString>;
888
952
  invoiceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
889
953
  ledgerSourceType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -908,6 +972,8 @@ export declare const revenueResourceSchema: z.ZodObject<{
908
972
  buyer: string | null;
909
973
  harvestId: string | null;
910
974
  fieldName?: string | null | undefined;
975
+ groupId?: string | null | undefined;
976
+ groupName?: string | null | undefined;
911
977
  ledgerSourceType?: string | null | undefined;
912
978
  ledgerSourceId?: string | null | undefined;
913
979
  invoiceId?: string | null | undefined;
@@ -926,6 +992,8 @@ export declare const revenueResourceSchema: z.ZodObject<{
926
992
  buyer: string | null;
927
993
  harvestId: string | null;
928
994
  fieldName?: string | null | undefined;
995
+ groupId?: string | null | undefined;
996
+ groupName?: string | null | undefined;
929
997
  ledgerSourceType?: string | null | undefined;
930
998
  ledgerSourceId?: string | null | undefined;
931
999
  invoiceId?: string | null | undefined;
@@ -951,6 +1019,8 @@ export declare const revenueResourceSchema: z.ZodObject<{
951
1019
  buyer: string | null;
952
1020
  harvestId: string | null;
953
1021
  fieldName?: string | null | undefined;
1022
+ groupId?: string | null | undefined;
1023
+ groupName?: string | null | undefined;
954
1024
  ledgerSourceType?: string | null | undefined;
955
1025
  ledgerSourceId?: string | null | undefined;
956
1026
  invoiceId?: string | null | undefined;
@@ -976,6 +1046,8 @@ export declare const revenueResourceSchema: z.ZodObject<{
976
1046
  buyer: string | null;
977
1047
  harvestId: string | null;
978
1048
  fieldName?: string | null | undefined;
1049
+ groupId?: string | null | undefined;
1050
+ groupName?: string | null | undefined;
979
1051
  ledgerSourceType?: string | null | undefined;
980
1052
  ledgerSourceId?: string | null | undefined;
981
1053
  invoiceId?: string | null | undefined;
@@ -992,11 +1064,13 @@ export declare const expenseDetailResourceSchema: z.ZodObject<{
992
1064
  category: z.ZodString;
993
1065
  description: z.ZodString;
994
1066
  amount: z.ZodNumber;
995
- allocationType: z.ZodEnum<["field", "crop", "general"]>;
1067
+ allocationType: z.ZodEnum<["field", "crop", "general", "livestock_group"]>;
996
1068
  fieldId: z.ZodNullable<z.ZodString>;
997
1069
  fieldName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
998
1070
  cropId: z.ZodNullable<z.ZodString>;
999
1071
  cropName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1072
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1073
+ groupName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1000
1074
  createdById: z.ZodNullable<z.ZodString>;
1001
1075
  createdByName: z.ZodNullable<z.ZodString>;
1002
1076
  ledgerSourceType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1014,11 +1088,13 @@ export declare const expenseDetailResourceSchema: z.ZodObject<{
1014
1088
  fieldId: string | null;
1015
1089
  cropId: string | null;
1016
1090
  amount: number;
1017
- allocationType: "crop" | "field" | "general";
1091
+ allocationType: "crop" | "field" | "general" | "livestock_group";
1018
1092
  createdById: string | null;
1019
1093
  createdByName: string | null;
1020
1094
  fieldName?: string | null | undefined;
1021
1095
  cropName?: string | null | undefined;
1096
+ groupId?: string | null | undefined;
1097
+ groupName?: string | null | undefined;
1022
1098
  ledgerSourceType?: string | null | undefined;
1023
1099
  ledgerSourceId?: string | null | undefined;
1024
1100
  documentId?: string | null | undefined;
@@ -1031,11 +1107,13 @@ export declare const expenseDetailResourceSchema: z.ZodObject<{
1031
1107
  fieldId: string | null;
1032
1108
  cropId: string | null;
1033
1109
  amount: number;
1034
- allocationType: "crop" | "field" | "general";
1110
+ allocationType: "crop" | "field" | "general" | "livestock_group";
1035
1111
  createdById: string | null;
1036
1112
  createdByName: string | null;
1037
1113
  fieldName?: string | null | undefined;
1038
1114
  cropName?: string | null | undefined;
1115
+ groupId?: string | null | undefined;
1116
+ groupName?: string | null | undefined;
1039
1117
  ledgerSourceType?: string | null | undefined;
1040
1118
  ledgerSourceId?: string | null | undefined;
1041
1119
  documentId?: string | null | undefined;
@@ -1086,11 +1164,13 @@ export declare const expenseDetailResourceSchema: z.ZodObject<{
1086
1164
  fieldId: string | null;
1087
1165
  cropId: string | null;
1088
1166
  amount: number;
1089
- allocationType: "crop" | "field" | "general";
1167
+ allocationType: "crop" | "field" | "general" | "livestock_group";
1090
1168
  createdById: string | null;
1091
1169
  createdByName: string | null;
1092
1170
  fieldName?: string | null | undefined;
1093
1171
  cropName?: string | null | undefined;
1172
+ groupId?: string | null | undefined;
1173
+ groupName?: string | null | undefined;
1094
1174
  ledgerSourceType?: string | null | undefined;
1095
1175
  ledgerSourceId?: string | null | undefined;
1096
1176
  documentId?: string | null | undefined;
@@ -1116,11 +1196,13 @@ export declare const expenseDetailResourceSchema: z.ZodObject<{
1116
1196
  fieldId: string | null;
1117
1197
  cropId: string | null;
1118
1198
  amount: number;
1119
- allocationType: "crop" | "field" | "general";
1199
+ allocationType: "crop" | "field" | "general" | "livestock_group";
1120
1200
  createdById: string | null;
1121
1201
  createdByName: string | null;
1122
1202
  fieldName?: string | null | undefined;
1123
1203
  cropName?: string | null | undefined;
1204
+ groupId?: string | null | undefined;
1205
+ groupName?: string | null | undefined;
1124
1206
  ledgerSourceType?: string | null | undefined;
1125
1207
  ledgerSourceId?: string | null | undefined;
1126
1208
  documentId?: string | null | undefined;
@@ -1148,6 +1230,8 @@ export declare const revenueDetailResourceSchema: z.ZodObject<{
1148
1230
  buyer: z.ZodNullable<z.ZodString>;
1149
1231
  fieldId: z.ZodNullable<z.ZodString>;
1150
1232
  fieldName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1233
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1234
+ groupName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1151
1235
  harvestId: z.ZodNullable<z.ZodString>;
1152
1236
  invoiceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1153
1237
  ledgerSourceType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1172,6 +1256,8 @@ export declare const revenueDetailResourceSchema: z.ZodObject<{
1172
1256
  buyer: string | null;
1173
1257
  harvestId: string | null;
1174
1258
  fieldName?: string | null | undefined;
1259
+ groupId?: string | null | undefined;
1260
+ groupName?: string | null | undefined;
1175
1261
  ledgerSourceType?: string | null | undefined;
1176
1262
  ledgerSourceId?: string | null | undefined;
1177
1263
  invoiceId?: string | null | undefined;
@@ -1190,6 +1276,8 @@ export declare const revenueDetailResourceSchema: z.ZodObject<{
1190
1276
  buyer: string | null;
1191
1277
  harvestId: string | null;
1192
1278
  fieldName?: string | null | undefined;
1279
+ groupId?: string | null | undefined;
1280
+ groupName?: string | null | undefined;
1193
1281
  ledgerSourceType?: string | null | undefined;
1194
1282
  ledgerSourceId?: string | null | undefined;
1195
1283
  invoiceId?: string | null | undefined;
@@ -1273,6 +1361,8 @@ export declare const revenueDetailResourceSchema: z.ZodObject<{
1273
1361
  buyer: string | null;
1274
1362
  harvestId: string | null;
1275
1363
  fieldName?: string | null | undefined;
1364
+ groupId?: string | null | undefined;
1365
+ groupName?: string | null | undefined;
1276
1366
  ledgerSourceType?: string | null | undefined;
1277
1367
  ledgerSourceId?: string | null | undefined;
1278
1368
  invoiceId?: string | null | undefined;
@@ -1309,6 +1399,8 @@ export declare const revenueDetailResourceSchema: z.ZodObject<{
1309
1399
  buyer: string | null;
1310
1400
  harvestId: string | null;
1311
1401
  fieldName?: string | null | undefined;
1402
+ groupId?: string | null | undefined;
1403
+ groupName?: string | null | undefined;
1312
1404
  ledgerSourceType?: string | null | undefined;
1313
1405
  ledgerSourceId?: string | null | undefined;
1314
1406
  invoiceId?: string | null | undefined;
@@ -1651,11 +1743,13 @@ export declare const expenseResponseSchema: z.ZodObject<{
1651
1743
  category: z.ZodString;
1652
1744
  description: z.ZodString;
1653
1745
  amount: z.ZodNumber;
1654
- allocationType: z.ZodEnum<["field", "crop", "general"]>;
1746
+ allocationType: z.ZodEnum<["field", "crop", "general", "livestock_group"]>;
1655
1747
  fieldId: z.ZodNullable<z.ZodString>;
1656
1748
  fieldName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1657
1749
  cropId: z.ZodNullable<z.ZodString>;
1658
1750
  cropName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1751
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1752
+ groupName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1659
1753
  createdById: z.ZodNullable<z.ZodString>;
1660
1754
  createdByName: z.ZodNullable<z.ZodString>;
1661
1755
  ledgerSourceType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1673,11 +1767,13 @@ export declare const expenseResponseSchema: z.ZodObject<{
1673
1767
  fieldId: string | null;
1674
1768
  cropId: string | null;
1675
1769
  amount: number;
1676
- allocationType: "crop" | "field" | "general";
1770
+ allocationType: "crop" | "field" | "general" | "livestock_group";
1677
1771
  createdById: string | null;
1678
1772
  createdByName: string | null;
1679
1773
  fieldName?: string | null | undefined;
1680
1774
  cropName?: string | null | undefined;
1775
+ groupId?: string | null | undefined;
1776
+ groupName?: string | null | undefined;
1681
1777
  ledgerSourceType?: string | null | undefined;
1682
1778
  ledgerSourceId?: string | null | undefined;
1683
1779
  documentId?: string | null | undefined;
@@ -1690,11 +1786,13 @@ export declare const expenseResponseSchema: z.ZodObject<{
1690
1786
  fieldId: string | null;
1691
1787
  cropId: string | null;
1692
1788
  amount: number;
1693
- allocationType: "crop" | "field" | "general";
1789
+ allocationType: "crop" | "field" | "general" | "livestock_group";
1694
1790
  createdById: string | null;
1695
1791
  createdByName: string | null;
1696
1792
  fieldName?: string | null | undefined;
1697
1793
  cropName?: string | null | undefined;
1794
+ groupId?: string | null | undefined;
1795
+ groupName?: string | null | undefined;
1698
1796
  ledgerSourceType?: string | null | undefined;
1699
1797
  ledgerSourceId?: string | null | undefined;
1700
1798
  documentId?: string | null | undefined;
@@ -1714,11 +1812,13 @@ export declare const expenseResponseSchema: z.ZodObject<{
1714
1812
  fieldId: string | null;
1715
1813
  cropId: string | null;
1716
1814
  amount: number;
1717
- allocationType: "crop" | "field" | "general";
1815
+ allocationType: "crop" | "field" | "general" | "livestock_group";
1718
1816
  createdById: string | null;
1719
1817
  createdByName: string | null;
1720
1818
  fieldName?: string | null | undefined;
1721
1819
  cropName?: string | null | undefined;
1820
+ groupId?: string | null | undefined;
1821
+ groupName?: string | null | undefined;
1722
1822
  ledgerSourceType?: string | null | undefined;
1723
1823
  ledgerSourceId?: string | null | undefined;
1724
1824
  documentId?: string | null | undefined;
@@ -1738,11 +1838,13 @@ export declare const expenseResponseSchema: z.ZodObject<{
1738
1838
  fieldId: string | null;
1739
1839
  cropId: string | null;
1740
1840
  amount: number;
1741
- allocationType: "crop" | "field" | "general";
1841
+ allocationType: "crop" | "field" | "general" | "livestock_group";
1742
1842
  createdById: string | null;
1743
1843
  createdByName: string | null;
1744
1844
  fieldName?: string | null | undefined;
1745
1845
  cropName?: string | null | undefined;
1846
+ groupId?: string | null | undefined;
1847
+ groupName?: string | null | undefined;
1746
1848
  ledgerSourceType?: string | null | undefined;
1747
1849
  ledgerSourceId?: string | null | undefined;
1748
1850
  documentId?: string | null | undefined;
@@ -1788,11 +1890,13 @@ export declare const expenseResponseSchema: z.ZodObject<{
1788
1890
  fieldId: string | null;
1789
1891
  cropId: string | null;
1790
1892
  amount: number;
1791
- allocationType: "crop" | "field" | "general";
1893
+ allocationType: "crop" | "field" | "general" | "livestock_group";
1792
1894
  createdById: string | null;
1793
1895
  createdByName: string | null;
1794
1896
  fieldName?: string | null | undefined;
1795
1897
  cropName?: string | null | undefined;
1898
+ groupId?: string | null | undefined;
1899
+ groupName?: string | null | undefined;
1796
1900
  ledgerSourceType?: string | null | undefined;
1797
1901
  ledgerSourceId?: string | null | undefined;
1798
1902
  documentId?: string | null | undefined;
@@ -1824,11 +1928,13 @@ export declare const expenseResponseSchema: z.ZodObject<{
1824
1928
  fieldId: string | null;
1825
1929
  cropId: string | null;
1826
1930
  amount: number;
1827
- allocationType: "crop" | "field" | "general";
1931
+ allocationType: "crop" | "field" | "general" | "livestock_group";
1828
1932
  createdById: string | null;
1829
1933
  createdByName: string | null;
1830
1934
  fieldName?: string | null | undefined;
1831
1935
  cropName?: string | null | undefined;
1936
+ groupId?: string | null | undefined;
1937
+ groupName?: string | null | undefined;
1832
1938
  ledgerSourceType?: string | null | undefined;
1833
1939
  ledgerSourceId?: string | null | undefined;
1834
1940
  documentId?: string | null | undefined;
@@ -1857,11 +1963,13 @@ export declare const expenseDetailResponseSchema: z.ZodObject<{
1857
1963
  category: z.ZodString;
1858
1964
  description: z.ZodString;
1859
1965
  amount: z.ZodNumber;
1860
- allocationType: z.ZodEnum<["field", "crop", "general"]>;
1966
+ allocationType: z.ZodEnum<["field", "crop", "general", "livestock_group"]>;
1861
1967
  fieldId: z.ZodNullable<z.ZodString>;
1862
1968
  fieldName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1863
1969
  cropId: z.ZodNullable<z.ZodString>;
1864
1970
  cropName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1971
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1972
+ groupName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1865
1973
  createdById: z.ZodNullable<z.ZodString>;
1866
1974
  createdByName: z.ZodNullable<z.ZodString>;
1867
1975
  ledgerSourceType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1879,11 +1987,13 @@ export declare const expenseDetailResponseSchema: z.ZodObject<{
1879
1987
  fieldId: string | null;
1880
1988
  cropId: string | null;
1881
1989
  amount: number;
1882
- allocationType: "crop" | "field" | "general";
1990
+ allocationType: "crop" | "field" | "general" | "livestock_group";
1883
1991
  createdById: string | null;
1884
1992
  createdByName: string | null;
1885
1993
  fieldName?: string | null | undefined;
1886
1994
  cropName?: string | null | undefined;
1995
+ groupId?: string | null | undefined;
1996
+ groupName?: string | null | undefined;
1887
1997
  ledgerSourceType?: string | null | undefined;
1888
1998
  ledgerSourceId?: string | null | undefined;
1889
1999
  documentId?: string | null | undefined;
@@ -1896,11 +2006,13 @@ export declare const expenseDetailResponseSchema: z.ZodObject<{
1896
2006
  fieldId: string | null;
1897
2007
  cropId: string | null;
1898
2008
  amount: number;
1899
- allocationType: "crop" | "field" | "general";
2009
+ allocationType: "crop" | "field" | "general" | "livestock_group";
1900
2010
  createdById: string | null;
1901
2011
  createdByName: string | null;
1902
2012
  fieldName?: string | null | undefined;
1903
2013
  cropName?: string | null | undefined;
2014
+ groupId?: string | null | undefined;
2015
+ groupName?: string | null | undefined;
1904
2016
  ledgerSourceType?: string | null | undefined;
1905
2017
  ledgerSourceId?: string | null | undefined;
1906
2018
  documentId?: string | null | undefined;
@@ -1951,11 +2063,13 @@ export declare const expenseDetailResponseSchema: z.ZodObject<{
1951
2063
  fieldId: string | null;
1952
2064
  cropId: string | null;
1953
2065
  amount: number;
1954
- allocationType: "crop" | "field" | "general";
2066
+ allocationType: "crop" | "field" | "general" | "livestock_group";
1955
2067
  createdById: string | null;
1956
2068
  createdByName: string | null;
1957
2069
  fieldName?: string | null | undefined;
1958
2070
  cropName?: string | null | undefined;
2071
+ groupId?: string | null | undefined;
2072
+ groupName?: string | null | undefined;
1959
2073
  ledgerSourceType?: string | null | undefined;
1960
2074
  ledgerSourceId?: string | null | undefined;
1961
2075
  documentId?: string | null | undefined;
@@ -1981,11 +2095,13 @@ export declare const expenseDetailResponseSchema: z.ZodObject<{
1981
2095
  fieldId: string | null;
1982
2096
  cropId: string | null;
1983
2097
  amount: number;
1984
- allocationType: "crop" | "field" | "general";
2098
+ allocationType: "crop" | "field" | "general" | "livestock_group";
1985
2099
  createdById: string | null;
1986
2100
  createdByName: string | null;
1987
2101
  fieldName?: string | null | undefined;
1988
2102
  cropName?: string | null | undefined;
2103
+ groupId?: string | null | undefined;
2104
+ groupName?: string | null | undefined;
1989
2105
  ledgerSourceType?: string | null | undefined;
1990
2106
  ledgerSourceId?: string | null | undefined;
1991
2107
  documentId?: string | null | undefined;
@@ -2037,11 +2153,13 @@ export declare const expenseDetailResponseSchema: z.ZodObject<{
2037
2153
  fieldId: string | null;
2038
2154
  cropId: string | null;
2039
2155
  amount: number;
2040
- allocationType: "crop" | "field" | "general";
2156
+ allocationType: "crop" | "field" | "general" | "livestock_group";
2041
2157
  createdById: string | null;
2042
2158
  createdByName: string | null;
2043
2159
  fieldName?: string | null | undefined;
2044
2160
  cropName?: string | null | undefined;
2161
+ groupId?: string | null | undefined;
2162
+ groupName?: string | null | undefined;
2045
2163
  ledgerSourceType?: string | null | undefined;
2046
2164
  ledgerSourceId?: string | null | undefined;
2047
2165
  documentId?: string | null | undefined;
@@ -2079,11 +2197,13 @@ export declare const expenseDetailResponseSchema: z.ZodObject<{
2079
2197
  fieldId: string | null;
2080
2198
  cropId: string | null;
2081
2199
  amount: number;
2082
- allocationType: "crop" | "field" | "general";
2200
+ allocationType: "crop" | "field" | "general" | "livestock_group";
2083
2201
  createdById: string | null;
2084
2202
  createdByName: string | null;
2085
2203
  fieldName?: string | null | undefined;
2086
2204
  cropName?: string | null | undefined;
2205
+ groupId?: string | null | undefined;
2206
+ groupName?: string | null | undefined;
2087
2207
  ledgerSourceType?: string | null | undefined;
2088
2208
  ledgerSourceId?: string | null | undefined;
2089
2209
  documentId?: string | null | undefined;
@@ -2118,11 +2238,13 @@ export declare const expenseListResponseSchema: z.ZodObject<{
2118
2238
  category: z.ZodString;
2119
2239
  description: z.ZodString;
2120
2240
  amount: z.ZodNumber;
2121
- allocationType: z.ZodEnum<["field", "crop", "general"]>;
2241
+ allocationType: z.ZodEnum<["field", "crop", "general", "livestock_group"]>;
2122
2242
  fieldId: z.ZodNullable<z.ZodString>;
2123
2243
  fieldName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2124
2244
  cropId: z.ZodNullable<z.ZodString>;
2125
2245
  cropName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2246
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2247
+ groupName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2126
2248
  createdById: z.ZodNullable<z.ZodString>;
2127
2249
  createdByName: z.ZodNullable<z.ZodString>;
2128
2250
  ledgerSourceType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -2140,11 +2262,13 @@ export declare const expenseListResponseSchema: z.ZodObject<{
2140
2262
  fieldId: string | null;
2141
2263
  cropId: string | null;
2142
2264
  amount: number;
2143
- allocationType: "crop" | "field" | "general";
2265
+ allocationType: "crop" | "field" | "general" | "livestock_group";
2144
2266
  createdById: string | null;
2145
2267
  createdByName: string | null;
2146
2268
  fieldName?: string | null | undefined;
2147
2269
  cropName?: string | null | undefined;
2270
+ groupId?: string | null | undefined;
2271
+ groupName?: string | null | undefined;
2148
2272
  ledgerSourceType?: string | null | undefined;
2149
2273
  ledgerSourceId?: string | null | undefined;
2150
2274
  documentId?: string | null | undefined;
@@ -2157,11 +2281,13 @@ export declare const expenseListResponseSchema: z.ZodObject<{
2157
2281
  fieldId: string | null;
2158
2282
  cropId: string | null;
2159
2283
  amount: number;
2160
- allocationType: "crop" | "field" | "general";
2284
+ allocationType: "crop" | "field" | "general" | "livestock_group";
2161
2285
  createdById: string | null;
2162
2286
  createdByName: string | null;
2163
2287
  fieldName?: string | null | undefined;
2164
2288
  cropName?: string | null | undefined;
2289
+ groupId?: string | null | undefined;
2290
+ groupName?: string | null | undefined;
2165
2291
  ledgerSourceType?: string | null | undefined;
2166
2292
  ledgerSourceId?: string | null | undefined;
2167
2293
  documentId?: string | null | undefined;
@@ -2181,11 +2307,13 @@ export declare const expenseListResponseSchema: z.ZodObject<{
2181
2307
  fieldId: string | null;
2182
2308
  cropId: string | null;
2183
2309
  amount: number;
2184
- allocationType: "crop" | "field" | "general";
2310
+ allocationType: "crop" | "field" | "general" | "livestock_group";
2185
2311
  createdById: string | null;
2186
2312
  createdByName: string | null;
2187
2313
  fieldName?: string | null | undefined;
2188
2314
  cropName?: string | null | undefined;
2315
+ groupId?: string | null | undefined;
2316
+ groupName?: string | null | undefined;
2189
2317
  ledgerSourceType?: string | null | undefined;
2190
2318
  ledgerSourceId?: string | null | undefined;
2191
2319
  documentId?: string | null | undefined;
@@ -2205,11 +2333,13 @@ export declare const expenseListResponseSchema: z.ZodObject<{
2205
2333
  fieldId: string | null;
2206
2334
  cropId: string | null;
2207
2335
  amount: number;
2208
- allocationType: "crop" | "field" | "general";
2336
+ allocationType: "crop" | "field" | "general" | "livestock_group";
2209
2337
  createdById: string | null;
2210
2338
  createdByName: string | null;
2211
2339
  fieldName?: string | null | undefined;
2212
2340
  cropName?: string | null | undefined;
2341
+ groupId?: string | null | undefined;
2342
+ groupName?: string | null | undefined;
2213
2343
  ledgerSourceType?: string | null | undefined;
2214
2344
  ledgerSourceId?: string | null | undefined;
2215
2345
  documentId?: string | null | undefined;
@@ -2255,11 +2385,13 @@ export declare const expenseListResponseSchema: z.ZodObject<{
2255
2385
  fieldId: string | null;
2256
2386
  cropId: string | null;
2257
2387
  amount: number;
2258
- allocationType: "crop" | "field" | "general";
2388
+ allocationType: "crop" | "field" | "general" | "livestock_group";
2259
2389
  createdById: string | null;
2260
2390
  createdByName: string | null;
2261
2391
  fieldName?: string | null | undefined;
2262
2392
  cropName?: string | null | undefined;
2393
+ groupId?: string | null | undefined;
2394
+ groupName?: string | null | undefined;
2263
2395
  ledgerSourceType?: string | null | undefined;
2264
2396
  ledgerSourceId?: string | null | undefined;
2265
2397
  documentId?: string | null | undefined;
@@ -2291,11 +2423,13 @@ export declare const expenseListResponseSchema: z.ZodObject<{
2291
2423
  fieldId: string | null;
2292
2424
  cropId: string | null;
2293
2425
  amount: number;
2294
- allocationType: "crop" | "field" | "general";
2426
+ allocationType: "crop" | "field" | "general" | "livestock_group";
2295
2427
  createdById: string | null;
2296
2428
  createdByName: string | null;
2297
2429
  fieldName?: string | null | undefined;
2298
2430
  cropName?: string | null | undefined;
2431
+ groupId?: string | null | undefined;
2432
+ groupName?: string | null | undefined;
2299
2433
  ledgerSourceType?: string | null | undefined;
2300
2434
  ledgerSourceId?: string | null | undefined;
2301
2435
  documentId?: string | null | undefined;
@@ -2329,6 +2463,8 @@ export declare const revenueResponseSchema: z.ZodObject<{
2329
2463
  buyer: z.ZodNullable<z.ZodString>;
2330
2464
  fieldId: z.ZodNullable<z.ZodString>;
2331
2465
  fieldName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2466
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2467
+ groupName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2332
2468
  harvestId: z.ZodNullable<z.ZodString>;
2333
2469
  invoiceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2334
2470
  ledgerSourceType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -2353,6 +2489,8 @@ export declare const revenueResponseSchema: z.ZodObject<{
2353
2489
  buyer: string | null;
2354
2490
  harvestId: string | null;
2355
2491
  fieldName?: string | null | undefined;
2492
+ groupId?: string | null | undefined;
2493
+ groupName?: string | null | undefined;
2356
2494
  ledgerSourceType?: string | null | undefined;
2357
2495
  ledgerSourceId?: string | null | undefined;
2358
2496
  invoiceId?: string | null | undefined;
@@ -2371,6 +2509,8 @@ export declare const revenueResponseSchema: z.ZodObject<{
2371
2509
  buyer: string | null;
2372
2510
  harvestId: string | null;
2373
2511
  fieldName?: string | null | undefined;
2512
+ groupId?: string | null | undefined;
2513
+ groupName?: string | null | undefined;
2374
2514
  ledgerSourceType?: string | null | undefined;
2375
2515
  ledgerSourceId?: string | null | undefined;
2376
2516
  invoiceId?: string | null | undefined;
@@ -2396,6 +2536,8 @@ export declare const revenueResponseSchema: z.ZodObject<{
2396
2536
  buyer: string | null;
2397
2537
  harvestId: string | null;
2398
2538
  fieldName?: string | null | undefined;
2539
+ groupId?: string | null | undefined;
2540
+ groupName?: string | null | undefined;
2399
2541
  ledgerSourceType?: string | null | undefined;
2400
2542
  ledgerSourceId?: string | null | undefined;
2401
2543
  invoiceId?: string | null | undefined;
@@ -2421,6 +2563,8 @@ export declare const revenueResponseSchema: z.ZodObject<{
2421
2563
  buyer: string | null;
2422
2564
  harvestId: string | null;
2423
2565
  fieldName?: string | null | undefined;
2566
+ groupId?: string | null | undefined;
2567
+ groupName?: string | null | undefined;
2424
2568
  ledgerSourceType?: string | null | undefined;
2425
2569
  ledgerSourceId?: string | null | undefined;
2426
2570
  invoiceId?: string | null | undefined;
@@ -2472,6 +2616,8 @@ export declare const revenueResponseSchema: z.ZodObject<{
2472
2616
  buyer: string | null;
2473
2617
  harvestId: string | null;
2474
2618
  fieldName?: string | null | undefined;
2619
+ groupId?: string | null | undefined;
2620
+ groupName?: string | null | undefined;
2475
2621
  ledgerSourceType?: string | null | undefined;
2476
2622
  ledgerSourceId?: string | null | undefined;
2477
2623
  invoiceId?: string | null | undefined;
@@ -2509,6 +2655,8 @@ export declare const revenueResponseSchema: z.ZodObject<{
2509
2655
  buyer: string | null;
2510
2656
  harvestId: string | null;
2511
2657
  fieldName?: string | null | undefined;
2658
+ groupId?: string | null | undefined;
2659
+ groupName?: string | null | undefined;
2512
2660
  ledgerSourceType?: string | null | undefined;
2513
2661
  ledgerSourceId?: string | null | undefined;
2514
2662
  invoiceId?: string | null | undefined;
@@ -2542,6 +2690,8 @@ export declare const revenueDetailResponseSchema: z.ZodObject<{
2542
2690
  buyer: z.ZodNullable<z.ZodString>;
2543
2691
  fieldId: z.ZodNullable<z.ZodString>;
2544
2692
  fieldName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2693
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2694
+ groupName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2545
2695
  harvestId: z.ZodNullable<z.ZodString>;
2546
2696
  invoiceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2547
2697
  ledgerSourceType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -2566,6 +2716,8 @@ export declare const revenueDetailResponseSchema: z.ZodObject<{
2566
2716
  buyer: string | null;
2567
2717
  harvestId: string | null;
2568
2718
  fieldName?: string | null | undefined;
2719
+ groupId?: string | null | undefined;
2720
+ groupName?: string | null | undefined;
2569
2721
  ledgerSourceType?: string | null | undefined;
2570
2722
  ledgerSourceId?: string | null | undefined;
2571
2723
  invoiceId?: string | null | undefined;
@@ -2584,6 +2736,8 @@ export declare const revenueDetailResponseSchema: z.ZodObject<{
2584
2736
  buyer: string | null;
2585
2737
  harvestId: string | null;
2586
2738
  fieldName?: string | null | undefined;
2739
+ groupId?: string | null | undefined;
2740
+ groupName?: string | null | undefined;
2587
2741
  ledgerSourceType?: string | null | undefined;
2588
2742
  ledgerSourceId?: string | null | undefined;
2589
2743
  invoiceId?: string | null | undefined;
@@ -2667,6 +2821,8 @@ export declare const revenueDetailResponseSchema: z.ZodObject<{
2667
2821
  buyer: string | null;
2668
2822
  harvestId: string | null;
2669
2823
  fieldName?: string | null | undefined;
2824
+ groupId?: string | null | undefined;
2825
+ groupName?: string | null | undefined;
2670
2826
  ledgerSourceType?: string | null | undefined;
2671
2827
  ledgerSourceId?: string | null | undefined;
2672
2828
  invoiceId?: string | null | undefined;
@@ -2703,6 +2859,8 @@ export declare const revenueDetailResponseSchema: z.ZodObject<{
2703
2859
  buyer: string | null;
2704
2860
  harvestId: string | null;
2705
2861
  fieldName?: string | null | undefined;
2862
+ groupId?: string | null | undefined;
2863
+ groupName?: string | null | undefined;
2706
2864
  ledgerSourceType?: string | null | undefined;
2707
2865
  ledgerSourceId?: string | null | undefined;
2708
2866
  invoiceId?: string | null | undefined;
@@ -2765,6 +2923,8 @@ export declare const revenueDetailResponseSchema: z.ZodObject<{
2765
2923
  buyer: string | null;
2766
2924
  harvestId: string | null;
2767
2925
  fieldName?: string | null | undefined;
2926
+ groupId?: string | null | undefined;
2927
+ groupName?: string | null | undefined;
2768
2928
  ledgerSourceType?: string | null | undefined;
2769
2929
  ledgerSourceId?: string | null | undefined;
2770
2930
  invoiceId?: string | null | undefined;
@@ -2813,6 +2973,8 @@ export declare const revenueDetailResponseSchema: z.ZodObject<{
2813
2973
  buyer: string | null;
2814
2974
  harvestId: string | null;
2815
2975
  fieldName?: string | null | undefined;
2976
+ groupId?: string | null | undefined;
2977
+ groupName?: string | null | undefined;
2816
2978
  ledgerSourceType?: string | null | undefined;
2817
2979
  ledgerSourceId?: string | null | undefined;
2818
2980
  invoiceId?: string | null | undefined;
@@ -2857,6 +3019,8 @@ export declare const revenueListResponseSchema: z.ZodObject<{
2857
3019
  buyer: z.ZodNullable<z.ZodString>;
2858
3020
  fieldId: z.ZodNullable<z.ZodString>;
2859
3021
  fieldName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3022
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3023
+ groupName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2860
3024
  harvestId: z.ZodNullable<z.ZodString>;
2861
3025
  invoiceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2862
3026
  ledgerSourceType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -2881,6 +3045,8 @@ export declare const revenueListResponseSchema: z.ZodObject<{
2881
3045
  buyer: string | null;
2882
3046
  harvestId: string | null;
2883
3047
  fieldName?: string | null | undefined;
3048
+ groupId?: string | null | undefined;
3049
+ groupName?: string | null | undefined;
2884
3050
  ledgerSourceType?: string | null | undefined;
2885
3051
  ledgerSourceId?: string | null | undefined;
2886
3052
  invoiceId?: string | null | undefined;
@@ -2899,6 +3065,8 @@ export declare const revenueListResponseSchema: z.ZodObject<{
2899
3065
  buyer: string | null;
2900
3066
  harvestId: string | null;
2901
3067
  fieldName?: string | null | undefined;
3068
+ groupId?: string | null | undefined;
3069
+ groupName?: string | null | undefined;
2902
3070
  ledgerSourceType?: string | null | undefined;
2903
3071
  ledgerSourceId?: string | null | undefined;
2904
3072
  invoiceId?: string | null | undefined;
@@ -2924,6 +3092,8 @@ export declare const revenueListResponseSchema: z.ZodObject<{
2924
3092
  buyer: string | null;
2925
3093
  harvestId: string | null;
2926
3094
  fieldName?: string | null | undefined;
3095
+ groupId?: string | null | undefined;
3096
+ groupName?: string | null | undefined;
2927
3097
  ledgerSourceType?: string | null | undefined;
2928
3098
  ledgerSourceId?: string | null | undefined;
2929
3099
  invoiceId?: string | null | undefined;
@@ -2949,6 +3119,8 @@ export declare const revenueListResponseSchema: z.ZodObject<{
2949
3119
  buyer: string | null;
2950
3120
  harvestId: string | null;
2951
3121
  fieldName?: string | null | undefined;
3122
+ groupId?: string | null | undefined;
3123
+ groupName?: string | null | undefined;
2952
3124
  ledgerSourceType?: string | null | undefined;
2953
3125
  ledgerSourceId?: string | null | undefined;
2954
3126
  invoiceId?: string | null | undefined;
@@ -3000,6 +3172,8 @@ export declare const revenueListResponseSchema: z.ZodObject<{
3000
3172
  buyer: string | null;
3001
3173
  harvestId: string | null;
3002
3174
  fieldName?: string | null | undefined;
3175
+ groupId?: string | null | undefined;
3176
+ groupName?: string | null | undefined;
3003
3177
  ledgerSourceType?: string | null | undefined;
3004
3178
  ledgerSourceId?: string | null | undefined;
3005
3179
  invoiceId?: string | null | undefined;
@@ -3037,6 +3211,8 @@ export declare const revenueListResponseSchema: z.ZodObject<{
3037
3211
  buyer: string | null;
3038
3212
  harvestId: string | null;
3039
3213
  fieldName?: string | null | undefined;
3214
+ groupId?: string | null | undefined;
3215
+ groupName?: string | null | undefined;
3040
3216
  ledgerSourceType?: string | null | undefined;
3041
3217
  ledgerSourceId?: string | null | undefined;
3042
3218
  invoiceId?: string | null | undefined;