@deepintel-ltd/farmpro-contracts 1.17.0 → 1.19.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/dist/index.d.ts +3 -1
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +2 -0
  4. package/dist/routes/accounting.routes.d.ts +14156 -0
  5. package/dist/routes/accounting.routes.d.ts.map +1 -0
  6. package/dist/routes/accounting.routes.js +460 -0
  7. package/dist/routes/commodity-deals.routes.d.ts +48 -48
  8. package/dist/routes/finance.routes.d.ts +235 -38
  9. package/dist/routes/finance.routes.d.ts.map +1 -1
  10. package/dist/routes/index.d.ts +3 -0
  11. package/dist/routes/index.d.ts.map +1 -1
  12. package/dist/routes/index.js +2 -0
  13. package/dist/routes/live-monitor.routes.d.ts +4 -4
  14. package/dist/routes/monitoring-visualization.routes.d.ts +16 -10
  15. package/dist/routes/monitoring-visualization.routes.d.ts.map +1 -1
  16. package/dist/routes/staff.routes.d.ts +36 -36
  17. package/dist/schemas/accounting.schemas.d.ts +6102 -0
  18. package/dist/schemas/accounting.schemas.d.ts.map +1 -0
  19. package/dist/schemas/accounting.schemas.js +344 -0
  20. package/dist/schemas/commodity-deals.schemas.d.ts +24 -24
  21. package/dist/schemas/farms.schemas.d.ts.map +1 -1
  22. package/dist/schemas/finance.schemas.d.ts +304 -46
  23. package/dist/schemas/finance.schemas.d.ts.map +1 -1
  24. package/dist/schemas/finance.schemas.js +23 -9
  25. package/dist/schemas/live-monitor.schemas.d.ts +6 -6
  26. package/dist/schemas/locale.schemas.d.ts +3 -0
  27. package/dist/schemas/locale.schemas.d.ts.map +1 -1
  28. package/dist/schemas/locale.schemas.js +1 -0
  29. package/dist/schemas/monitoring-visualization.schemas.d.ts +43 -12
  30. package/dist/schemas/monitoring-visualization.schemas.d.ts.map +1 -1
  31. package/dist/schemas/monitoring-visualization.schemas.js +5 -1
  32. package/dist/schemas/staff.schemas.d.ts +30 -30
  33. package/package.json +1 -1
@@ -86,6 +86,9 @@ export declare const expenseAttributesSchema: z.ZodObject<{
86
86
  cropName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
87
87
  createdById: z.ZodNullable<z.ZodString>;
88
88
  createdByName: z.ZodNullable<z.ZodString>;
89
+ ledgerSourceType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
90
+ ledgerSourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
91
+ documentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
89
92
  } & {
90
93
  createdAt: z.ZodString;
91
94
  updatedAt: z.ZodString;
@@ -103,6 +106,9 @@ export declare const expenseAttributesSchema: z.ZodObject<{
103
106
  createdByName: string | null;
104
107
  fieldName?: string | null | undefined;
105
108
  cropName?: string | null | undefined;
109
+ ledgerSourceType?: string | null | undefined;
110
+ ledgerSourceId?: string | null | undefined;
111
+ documentId?: string | null | undefined;
106
112
  }, {
107
113
  date: string;
108
114
  createdAt: string;
@@ -117,10 +123,13 @@ export declare const expenseAttributesSchema: z.ZodObject<{
117
123
  createdByName: string | null;
118
124
  fieldName?: string | null | undefined;
119
125
  cropName?: string | null | undefined;
126
+ ledgerSourceType?: string | null | undefined;
127
+ ledgerSourceId?: string | null | undefined;
128
+ documentId?: string | null | undefined;
120
129
  }>;
121
130
  export declare const createExpenseAttributesSchema: z.ZodEffects<z.ZodObject<{
122
131
  date: z.ZodString;
123
- category: z.ZodString;
132
+ category: z.ZodOptional<z.ZodString>;
124
133
  description: z.ZodString;
125
134
  amount: z.ZodNumber;
126
135
  allocationType: z.ZodDefault<z.ZodEnum<["field", "crop", "general"]>>;
@@ -129,32 +138,32 @@ export declare const createExpenseAttributesSchema: z.ZodEffects<z.ZodObject<{
129
138
  }, "strip", z.ZodTypeAny, {
130
139
  date: string;
131
140
  description: string;
132
- category: string;
133
141
  amount: number;
134
142
  allocationType: "crop" | "field" | "general";
143
+ category?: string | undefined;
135
144
  fieldId?: string | undefined;
136
145
  cropId?: string | undefined;
137
146
  }, {
138
147
  date: string;
139
148
  description: string;
140
- category: string;
141
149
  amount: number;
150
+ category?: string | undefined;
142
151
  fieldId?: string | undefined;
143
152
  cropId?: string | undefined;
144
153
  allocationType?: "crop" | "field" | "general" | undefined;
145
154
  }>, {
146
155
  date: string;
147
156
  description: string;
148
- category: string;
149
157
  amount: number;
150
158
  allocationType: "crop" | "field" | "general";
159
+ category?: string | undefined;
151
160
  fieldId?: string | undefined;
152
161
  cropId?: string | undefined;
153
162
  }, {
154
163
  date: string;
155
164
  description: string;
156
- category: string;
157
165
  amount: number;
166
+ category?: string | undefined;
158
167
  fieldId?: string | undefined;
159
168
  cropId?: string | undefined;
160
169
  allocationType?: "crop" | "field" | "general" | undefined;
@@ -195,6 +204,9 @@ export declare const revenueAttributesSchema: z.ZodObject<{
195
204
  fieldId: z.ZodNullable<z.ZodString>;
196
205
  fieldName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
197
206
  harvestId: z.ZodNullable<z.ZodString>;
207
+ invoiceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
208
+ ledgerSourceType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
209
+ ledgerSourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
198
210
  createdById: z.ZodNullable<z.ZodString>;
199
211
  createdByName: z.ZodNullable<z.ZodString>;
200
212
  } & {
@@ -215,6 +227,9 @@ export declare const revenueAttributesSchema: z.ZodObject<{
215
227
  buyer: string | null;
216
228
  harvestId: string | null;
217
229
  fieldName?: string | null | undefined;
230
+ ledgerSourceType?: string | null | undefined;
231
+ ledgerSourceId?: string | null | undefined;
232
+ invoiceId?: string | null | undefined;
218
233
  }, {
219
234
  date: string;
220
235
  createdAt: string;
@@ -230,34 +245,63 @@ export declare const revenueAttributesSchema: z.ZodObject<{
230
245
  buyer: string | null;
231
246
  harvestId: string | null;
232
247
  fieldName?: string | null | undefined;
248
+ ledgerSourceType?: string | null | undefined;
249
+ ledgerSourceId?: string | null | undefined;
250
+ invoiceId?: string | null | undefined;
233
251
  }>;
234
- export declare const createRevenueAttributesSchema: z.ZodObject<{
252
+ export declare const createRevenueAttributesSchema: z.ZodEffects<z.ZodObject<{
235
253
  date: z.ZodString;
236
- crop: z.ZodString;
237
- quantity: z.ZodNumber;
238
- unit: z.ZodString;
239
- pricePerUnit: z.ZodNumber;
254
+ /** Amount-first: free-text description of what was sold */
255
+ description: z.ZodOptional<z.ZodString>;
256
+ crop: z.ZodOptional<z.ZodString>;
257
+ quantity: z.ZodOptional<z.ZodNumber>;
258
+ unit: z.ZodOptional<z.ZodString>;
259
+ pricePerUnit: z.ZodOptional<z.ZodNumber>;
240
260
  totalAmount: z.ZodOptional<z.ZodNumber>;
241
261
  buyer: z.ZodOptional<z.ZodString>;
242
262
  fieldId: z.ZodOptional<z.ZodString>;
243
263
  harvestId: z.ZodOptional<z.ZodString>;
244
264
  }, "strip", z.ZodTypeAny, {
245
265
  date: string;
246
- crop: string;
247
- quantity: number;
248
- unit: string;
249
- pricePerUnit: number;
266
+ description?: string | undefined;
267
+ crop?: string | undefined;
268
+ quantity?: number | undefined;
269
+ unit?: string | undefined;
250
270
  fieldId?: string | undefined;
271
+ pricePerUnit?: number | undefined;
251
272
  totalAmount?: number | undefined;
252
273
  buyer?: string | undefined;
253
274
  harvestId?: string | undefined;
254
275
  }, {
255
276
  date: string;
256
- crop: string;
257
- quantity: number;
258
- unit: string;
259
- pricePerUnit: number;
277
+ description?: string | undefined;
278
+ crop?: string | undefined;
279
+ quantity?: number | undefined;
280
+ unit?: string | undefined;
260
281
  fieldId?: string | undefined;
282
+ pricePerUnit?: number | undefined;
283
+ totalAmount?: number | undefined;
284
+ buyer?: string | undefined;
285
+ harvestId?: string | undefined;
286
+ }>, {
287
+ date: string;
288
+ description?: string | undefined;
289
+ crop?: string | undefined;
290
+ quantity?: number | undefined;
291
+ unit?: string | undefined;
292
+ fieldId?: string | undefined;
293
+ pricePerUnit?: number | undefined;
294
+ totalAmount?: number | undefined;
295
+ buyer?: string | undefined;
296
+ harvestId?: string | undefined;
297
+ }, {
298
+ date: string;
299
+ description?: string | undefined;
300
+ crop?: string | undefined;
301
+ quantity?: number | undefined;
302
+ unit?: string | undefined;
303
+ fieldId?: string | undefined;
304
+ pricePerUnit?: number | undefined;
261
305
  totalAmount?: number | undefined;
262
306
  buyer?: string | undefined;
263
307
  harvestId?: string | undefined;
@@ -380,7 +424,7 @@ export declare const createExpenseSchema: z.ZodObject<{
380
424
  type: z.ZodLiteral<"expenses">;
381
425
  attributes: z.ZodEffects<z.ZodObject<{
382
426
  date: z.ZodString;
383
- category: z.ZodString;
427
+ category: z.ZodOptional<z.ZodString>;
384
428
  description: z.ZodString;
385
429
  amount: z.ZodNumber;
386
430
  allocationType: z.ZodDefault<z.ZodEnum<["field", "crop", "general"]>>;
@@ -389,32 +433,32 @@ export declare const createExpenseSchema: z.ZodObject<{
389
433
  }, "strip", z.ZodTypeAny, {
390
434
  date: string;
391
435
  description: string;
392
- category: string;
393
436
  amount: number;
394
437
  allocationType: "crop" | "field" | "general";
438
+ category?: string | undefined;
395
439
  fieldId?: string | undefined;
396
440
  cropId?: string | undefined;
397
441
  }, {
398
442
  date: string;
399
443
  description: string;
400
- category: string;
401
444
  amount: number;
445
+ category?: string | undefined;
402
446
  fieldId?: string | undefined;
403
447
  cropId?: string | undefined;
404
448
  allocationType?: "crop" | "field" | "general" | undefined;
405
449
  }>, {
406
450
  date: string;
407
451
  description: string;
408
- category: string;
409
452
  amount: number;
410
453
  allocationType: "crop" | "field" | "general";
454
+ category?: string | undefined;
411
455
  fieldId?: string | undefined;
412
456
  cropId?: string | undefined;
413
457
  }, {
414
458
  date: string;
415
459
  description: string;
416
- category: string;
417
460
  amount: number;
461
+ category?: string | undefined;
418
462
  fieldId?: string | undefined;
419
463
  cropId?: string | undefined;
420
464
  allocationType?: "crop" | "field" | "general" | undefined;
@@ -424,9 +468,9 @@ export declare const createExpenseSchema: z.ZodObject<{
424
468
  attributes: {
425
469
  date: string;
426
470
  description: string;
427
- category: string;
428
471
  amount: number;
429
472
  allocationType: "crop" | "field" | "general";
473
+ category?: string | undefined;
430
474
  fieldId?: string | undefined;
431
475
  cropId?: string | undefined;
432
476
  };
@@ -435,8 +479,8 @@ export declare const createExpenseSchema: z.ZodObject<{
435
479
  attributes: {
436
480
  date: string;
437
481
  description: string;
438
- category: string;
439
482
  amount: number;
483
+ category?: string | undefined;
440
484
  fieldId?: string | undefined;
441
485
  cropId?: string | undefined;
442
486
  allocationType?: "crop" | "field" | "general" | undefined;
@@ -497,33 +541,59 @@ export declare const updateExpenseSchema: z.ZodObject<{
497
541
  }>;
498
542
  export declare const createRevenueSchema: z.ZodObject<{
499
543
  type: z.ZodLiteral<"revenues">;
500
- attributes: z.ZodObject<{
544
+ attributes: z.ZodEffects<z.ZodObject<{
501
545
  date: z.ZodString;
502
- crop: z.ZodString;
503
- quantity: z.ZodNumber;
504
- unit: z.ZodString;
505
- pricePerUnit: z.ZodNumber;
546
+ /** Amount-first: free-text description of what was sold */
547
+ description: z.ZodOptional<z.ZodString>;
548
+ crop: z.ZodOptional<z.ZodString>;
549
+ quantity: z.ZodOptional<z.ZodNumber>;
550
+ unit: z.ZodOptional<z.ZodString>;
551
+ pricePerUnit: z.ZodOptional<z.ZodNumber>;
506
552
  totalAmount: z.ZodOptional<z.ZodNumber>;
507
553
  buyer: z.ZodOptional<z.ZodString>;
508
554
  fieldId: z.ZodOptional<z.ZodString>;
509
555
  harvestId: z.ZodOptional<z.ZodString>;
510
556
  }, "strip", z.ZodTypeAny, {
511
557
  date: string;
512
- crop: string;
513
- quantity: number;
514
- unit: string;
515
- pricePerUnit: number;
558
+ description?: string | undefined;
559
+ crop?: string | undefined;
560
+ quantity?: number | undefined;
561
+ unit?: string | undefined;
516
562
  fieldId?: string | undefined;
563
+ pricePerUnit?: number | undefined;
517
564
  totalAmount?: number | undefined;
518
565
  buyer?: string | undefined;
519
566
  harvestId?: string | undefined;
520
567
  }, {
521
568
  date: string;
522
- crop: string;
523
- quantity: number;
524
- unit: string;
525
- pricePerUnit: number;
569
+ description?: string | undefined;
570
+ crop?: string | undefined;
571
+ quantity?: number | undefined;
572
+ unit?: string | undefined;
526
573
  fieldId?: string | undefined;
574
+ pricePerUnit?: number | undefined;
575
+ totalAmount?: number | undefined;
576
+ buyer?: string | undefined;
577
+ harvestId?: string | undefined;
578
+ }>, {
579
+ date: string;
580
+ description?: string | undefined;
581
+ crop?: string | undefined;
582
+ quantity?: number | undefined;
583
+ unit?: string | undefined;
584
+ fieldId?: string | undefined;
585
+ pricePerUnit?: number | undefined;
586
+ totalAmount?: number | undefined;
587
+ buyer?: string | undefined;
588
+ harvestId?: string | undefined;
589
+ }, {
590
+ date: string;
591
+ description?: string | undefined;
592
+ crop?: string | undefined;
593
+ quantity?: number | undefined;
594
+ unit?: string | undefined;
595
+ fieldId?: string | undefined;
596
+ pricePerUnit?: number | undefined;
527
597
  totalAmount?: number | undefined;
528
598
  buyer?: string | undefined;
529
599
  harvestId?: string | undefined;
@@ -532,11 +602,12 @@ export declare const createRevenueSchema: z.ZodObject<{
532
602
  type: "revenues";
533
603
  attributes: {
534
604
  date: string;
535
- crop: string;
536
- quantity: number;
537
- unit: string;
538
- pricePerUnit: number;
605
+ description?: string | undefined;
606
+ crop?: string | undefined;
607
+ quantity?: number | undefined;
608
+ unit?: string | undefined;
539
609
  fieldId?: string | undefined;
610
+ pricePerUnit?: number | undefined;
540
611
  totalAmount?: number | undefined;
541
612
  buyer?: string | undefined;
542
613
  harvestId?: string | undefined;
@@ -545,11 +616,12 @@ export declare const createRevenueSchema: z.ZodObject<{
545
616
  type: "revenues";
546
617
  attributes: {
547
618
  date: string;
548
- crop: string;
549
- quantity: number;
550
- unit: string;
551
- pricePerUnit: number;
619
+ description?: string | undefined;
620
+ crop?: string | undefined;
621
+ quantity?: number | undefined;
622
+ unit?: string | undefined;
552
623
  fieldId?: string | undefined;
624
+ pricePerUnit?: number | undefined;
553
625
  totalAmount?: number | undefined;
554
626
  buyer?: string | undefined;
555
627
  harvestId?: string | undefined;
@@ -706,6 +778,9 @@ export declare const expenseResourceSchema: z.ZodObject<{
706
778
  cropName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
707
779
  createdById: z.ZodNullable<z.ZodString>;
708
780
  createdByName: z.ZodNullable<z.ZodString>;
781
+ ledgerSourceType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
782
+ ledgerSourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
783
+ documentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
709
784
  } & {
710
785
  createdAt: z.ZodString;
711
786
  updatedAt: z.ZodString;
@@ -723,6 +798,9 @@ export declare const expenseResourceSchema: z.ZodObject<{
723
798
  createdByName: string | null;
724
799
  fieldName?: string | null | undefined;
725
800
  cropName?: string | null | undefined;
801
+ ledgerSourceType?: string | null | undefined;
802
+ ledgerSourceId?: string | null | undefined;
803
+ documentId?: string | null | undefined;
726
804
  }, {
727
805
  date: string;
728
806
  createdAt: string;
@@ -737,6 +815,9 @@ export declare const expenseResourceSchema: z.ZodObject<{
737
815
  createdByName: string | null;
738
816
  fieldName?: string | null | undefined;
739
817
  cropName?: string | null | undefined;
818
+ ledgerSourceType?: string | null | undefined;
819
+ ledgerSourceId?: string | null | undefined;
820
+ documentId?: string | null | undefined;
740
821
  }>;
741
822
  relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
742
823
  links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -758,6 +839,9 @@ export declare const expenseResourceSchema: z.ZodObject<{
758
839
  createdByName: string | null;
759
840
  fieldName?: string | null | undefined;
760
841
  cropName?: string | null | undefined;
842
+ ledgerSourceType?: string | null | undefined;
843
+ ledgerSourceId?: string | null | undefined;
844
+ documentId?: string | null | undefined;
761
845
  };
762
846
  relationships?: Record<string, unknown> | undefined;
763
847
  links?: Record<string, string> | undefined;
@@ -779,6 +863,9 @@ export declare const expenseResourceSchema: z.ZodObject<{
779
863
  createdByName: string | null;
780
864
  fieldName?: string | null | undefined;
781
865
  cropName?: string | null | undefined;
866
+ ledgerSourceType?: string | null | undefined;
867
+ ledgerSourceId?: string | null | undefined;
868
+ documentId?: string | null | undefined;
782
869
  };
783
870
  relationships?: Record<string, unknown> | undefined;
784
871
  links?: Record<string, string> | undefined;
@@ -798,6 +885,9 @@ export declare const revenueResourceSchema: z.ZodObject<{
798
885
  fieldId: z.ZodNullable<z.ZodString>;
799
886
  fieldName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
800
887
  harvestId: z.ZodNullable<z.ZodString>;
888
+ invoiceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
889
+ ledgerSourceType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
890
+ ledgerSourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
801
891
  createdById: z.ZodNullable<z.ZodString>;
802
892
  createdByName: z.ZodNullable<z.ZodString>;
803
893
  } & {
@@ -818,6 +908,9 @@ export declare const revenueResourceSchema: z.ZodObject<{
818
908
  buyer: string | null;
819
909
  harvestId: string | null;
820
910
  fieldName?: string | null | undefined;
911
+ ledgerSourceType?: string | null | undefined;
912
+ ledgerSourceId?: string | null | undefined;
913
+ invoiceId?: string | null | undefined;
821
914
  }, {
822
915
  date: string;
823
916
  createdAt: string;
@@ -833,6 +926,9 @@ export declare const revenueResourceSchema: z.ZodObject<{
833
926
  buyer: string | null;
834
927
  harvestId: string | null;
835
928
  fieldName?: string | null | undefined;
929
+ ledgerSourceType?: string | null | undefined;
930
+ ledgerSourceId?: string | null | undefined;
931
+ invoiceId?: string | null | undefined;
836
932
  }>;
837
933
  relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
838
934
  links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -855,6 +951,9 @@ export declare const revenueResourceSchema: z.ZodObject<{
855
951
  buyer: string | null;
856
952
  harvestId: string | null;
857
953
  fieldName?: string | null | undefined;
954
+ ledgerSourceType?: string | null | undefined;
955
+ ledgerSourceId?: string | null | undefined;
956
+ invoiceId?: string | null | undefined;
858
957
  };
859
958
  relationships?: Record<string, unknown> | undefined;
860
959
  links?: Record<string, string> | undefined;
@@ -877,6 +976,9 @@ export declare const revenueResourceSchema: z.ZodObject<{
877
976
  buyer: string | null;
878
977
  harvestId: string | null;
879
978
  fieldName?: string | null | undefined;
979
+ ledgerSourceType?: string | null | undefined;
980
+ ledgerSourceId?: string | null | undefined;
981
+ invoiceId?: string | null | undefined;
880
982
  };
881
983
  relationships?: Record<string, unknown> | undefined;
882
984
  links?: Record<string, string> | undefined;
@@ -897,6 +999,9 @@ export declare const expenseDetailResourceSchema: z.ZodObject<{
897
999
  cropName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
898
1000
  createdById: z.ZodNullable<z.ZodString>;
899
1001
  createdByName: z.ZodNullable<z.ZodString>;
1002
+ ledgerSourceType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1003
+ ledgerSourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1004
+ documentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
900
1005
  } & {
901
1006
  createdAt: z.ZodString;
902
1007
  updatedAt: z.ZodString;
@@ -914,6 +1019,9 @@ export declare const expenseDetailResourceSchema: z.ZodObject<{
914
1019
  createdByName: string | null;
915
1020
  fieldName?: string | null | undefined;
916
1021
  cropName?: string | null | undefined;
1022
+ ledgerSourceType?: string | null | undefined;
1023
+ ledgerSourceId?: string | null | undefined;
1024
+ documentId?: string | null | undefined;
917
1025
  }, {
918
1026
  date: string;
919
1027
  createdAt: string;
@@ -928,6 +1036,9 @@ export declare const expenseDetailResourceSchema: z.ZodObject<{
928
1036
  createdByName: string | null;
929
1037
  fieldName?: string | null | undefined;
930
1038
  cropName?: string | null | undefined;
1039
+ ledgerSourceType?: string | null | undefined;
1040
+ ledgerSourceId?: string | null | undefined;
1041
+ documentId?: string | null | undefined;
931
1042
  }>;
932
1043
  links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
933
1044
  meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -980,6 +1091,9 @@ export declare const expenseDetailResourceSchema: z.ZodObject<{
980
1091
  createdByName: string | null;
981
1092
  fieldName?: string | null | undefined;
982
1093
  cropName?: string | null | undefined;
1094
+ ledgerSourceType?: string | null | undefined;
1095
+ ledgerSourceId?: string | null | undefined;
1096
+ documentId?: string | null | undefined;
983
1097
  };
984
1098
  relationships?: {
985
1099
  field?: {
@@ -1007,6 +1121,9 @@ export declare const expenseDetailResourceSchema: z.ZodObject<{
1007
1121
  createdByName: string | null;
1008
1122
  fieldName?: string | null | undefined;
1009
1123
  cropName?: string | null | undefined;
1124
+ ledgerSourceType?: string | null | undefined;
1125
+ ledgerSourceId?: string | null | undefined;
1126
+ documentId?: string | null | undefined;
1010
1127
  };
1011
1128
  relationships?: {
1012
1129
  field?: {
@@ -1032,6 +1149,9 @@ export declare const revenueDetailResourceSchema: z.ZodObject<{
1032
1149
  fieldId: z.ZodNullable<z.ZodString>;
1033
1150
  fieldName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1034
1151
  harvestId: z.ZodNullable<z.ZodString>;
1152
+ invoiceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1153
+ ledgerSourceType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1154
+ ledgerSourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1035
1155
  createdById: z.ZodNullable<z.ZodString>;
1036
1156
  createdByName: z.ZodNullable<z.ZodString>;
1037
1157
  } & {
@@ -1052,6 +1172,9 @@ export declare const revenueDetailResourceSchema: z.ZodObject<{
1052
1172
  buyer: string | null;
1053
1173
  harvestId: string | null;
1054
1174
  fieldName?: string | null | undefined;
1175
+ ledgerSourceType?: string | null | undefined;
1176
+ ledgerSourceId?: string | null | undefined;
1177
+ invoiceId?: string | null | undefined;
1055
1178
  }, {
1056
1179
  date: string;
1057
1180
  createdAt: string;
@@ -1067,6 +1190,9 @@ export declare const revenueDetailResourceSchema: z.ZodObject<{
1067
1190
  buyer: string | null;
1068
1191
  harvestId: string | null;
1069
1192
  fieldName?: string | null | undefined;
1193
+ ledgerSourceType?: string | null | undefined;
1194
+ ledgerSourceId?: string | null | undefined;
1195
+ invoiceId?: string | null | undefined;
1070
1196
  }>;
1071
1197
  links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1072
1198
  meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -1147,6 +1273,9 @@ export declare const revenueDetailResourceSchema: z.ZodObject<{
1147
1273
  buyer: string | null;
1148
1274
  harvestId: string | null;
1149
1275
  fieldName?: string | null | undefined;
1276
+ ledgerSourceType?: string | null | undefined;
1277
+ ledgerSourceId?: string | null | undefined;
1278
+ invoiceId?: string | null | undefined;
1150
1279
  };
1151
1280
  relationships?: {
1152
1281
  harvest?: {
@@ -1180,6 +1309,9 @@ export declare const revenueDetailResourceSchema: z.ZodObject<{
1180
1309
  buyer: string | null;
1181
1310
  harvestId: string | null;
1182
1311
  fieldName?: string | null | undefined;
1312
+ ledgerSourceType?: string | null | undefined;
1313
+ ledgerSourceId?: string | null | undefined;
1314
+ invoiceId?: string | null | undefined;
1183
1315
  };
1184
1316
  relationships?: {
1185
1317
  harvest?: {
@@ -1526,6 +1658,9 @@ export declare const expenseResponseSchema: z.ZodObject<{
1526
1658
  cropName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1527
1659
  createdById: z.ZodNullable<z.ZodString>;
1528
1660
  createdByName: z.ZodNullable<z.ZodString>;
1661
+ ledgerSourceType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1662
+ ledgerSourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1663
+ documentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1529
1664
  } & {
1530
1665
  createdAt: z.ZodString;
1531
1666
  updatedAt: z.ZodString;
@@ -1543,6 +1678,9 @@ export declare const expenseResponseSchema: z.ZodObject<{
1543
1678
  createdByName: string | null;
1544
1679
  fieldName?: string | null | undefined;
1545
1680
  cropName?: string | null | undefined;
1681
+ ledgerSourceType?: string | null | undefined;
1682
+ ledgerSourceId?: string | null | undefined;
1683
+ documentId?: string | null | undefined;
1546
1684
  }, {
1547
1685
  date: string;
1548
1686
  createdAt: string;
@@ -1557,6 +1695,9 @@ export declare const expenseResponseSchema: z.ZodObject<{
1557
1695
  createdByName: string | null;
1558
1696
  fieldName?: string | null | undefined;
1559
1697
  cropName?: string | null | undefined;
1698
+ ledgerSourceType?: string | null | undefined;
1699
+ ledgerSourceId?: string | null | undefined;
1700
+ documentId?: string | null | undefined;
1560
1701
  }>;
1561
1702
  relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1562
1703
  links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -1578,6 +1719,9 @@ export declare const expenseResponseSchema: z.ZodObject<{
1578
1719
  createdByName: string | null;
1579
1720
  fieldName?: string | null | undefined;
1580
1721
  cropName?: string | null | undefined;
1722
+ ledgerSourceType?: string | null | undefined;
1723
+ ledgerSourceId?: string | null | undefined;
1724
+ documentId?: string | null | undefined;
1581
1725
  };
1582
1726
  relationships?: Record<string, unknown> | undefined;
1583
1727
  links?: Record<string, string> | undefined;
@@ -1599,6 +1743,9 @@ export declare const expenseResponseSchema: z.ZodObject<{
1599
1743
  createdByName: string | null;
1600
1744
  fieldName?: string | null | undefined;
1601
1745
  cropName?: string | null | undefined;
1746
+ ledgerSourceType?: string | null | undefined;
1747
+ ledgerSourceId?: string | null | undefined;
1748
+ documentId?: string | null | undefined;
1602
1749
  };
1603
1750
  relationships?: Record<string, unknown> | undefined;
1604
1751
  links?: Record<string, string> | undefined;
@@ -1646,6 +1793,9 @@ export declare const expenseResponseSchema: z.ZodObject<{
1646
1793
  createdByName: string | null;
1647
1794
  fieldName?: string | null | undefined;
1648
1795
  cropName?: string | null | undefined;
1796
+ ledgerSourceType?: string | null | undefined;
1797
+ ledgerSourceId?: string | null | undefined;
1798
+ documentId?: string | null | undefined;
1649
1799
  };
1650
1800
  relationships?: Record<string, unknown> | undefined;
1651
1801
  links?: Record<string, string> | undefined;
@@ -1679,6 +1829,9 @@ export declare const expenseResponseSchema: z.ZodObject<{
1679
1829
  createdByName: string | null;
1680
1830
  fieldName?: string | null | undefined;
1681
1831
  cropName?: string | null | undefined;
1832
+ ledgerSourceType?: string | null | undefined;
1833
+ ledgerSourceId?: string | null | undefined;
1834
+ documentId?: string | null | undefined;
1682
1835
  };
1683
1836
  relationships?: Record<string, unknown> | undefined;
1684
1837
  links?: Record<string, string> | undefined;
@@ -1711,6 +1864,9 @@ export declare const expenseDetailResponseSchema: z.ZodObject<{
1711
1864
  cropName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1712
1865
  createdById: z.ZodNullable<z.ZodString>;
1713
1866
  createdByName: z.ZodNullable<z.ZodString>;
1867
+ ledgerSourceType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1868
+ ledgerSourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1869
+ documentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1714
1870
  } & {
1715
1871
  createdAt: z.ZodString;
1716
1872
  updatedAt: z.ZodString;
@@ -1728,6 +1884,9 @@ export declare const expenseDetailResponseSchema: z.ZodObject<{
1728
1884
  createdByName: string | null;
1729
1885
  fieldName?: string | null | undefined;
1730
1886
  cropName?: string | null | undefined;
1887
+ ledgerSourceType?: string | null | undefined;
1888
+ ledgerSourceId?: string | null | undefined;
1889
+ documentId?: string | null | undefined;
1731
1890
  }, {
1732
1891
  date: string;
1733
1892
  createdAt: string;
@@ -1742,6 +1901,9 @@ export declare const expenseDetailResponseSchema: z.ZodObject<{
1742
1901
  createdByName: string | null;
1743
1902
  fieldName?: string | null | undefined;
1744
1903
  cropName?: string | null | undefined;
1904
+ ledgerSourceType?: string | null | undefined;
1905
+ ledgerSourceId?: string | null | undefined;
1906
+ documentId?: string | null | undefined;
1745
1907
  }>;
1746
1908
  links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1747
1909
  meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -1794,6 +1956,9 @@ export declare const expenseDetailResponseSchema: z.ZodObject<{
1794
1956
  createdByName: string | null;
1795
1957
  fieldName?: string | null | undefined;
1796
1958
  cropName?: string | null | undefined;
1959
+ ledgerSourceType?: string | null | undefined;
1960
+ ledgerSourceId?: string | null | undefined;
1961
+ documentId?: string | null | undefined;
1797
1962
  };
1798
1963
  relationships?: {
1799
1964
  field?: {
@@ -1821,6 +1986,9 @@ export declare const expenseDetailResponseSchema: z.ZodObject<{
1821
1986
  createdByName: string | null;
1822
1987
  fieldName?: string | null | undefined;
1823
1988
  cropName?: string | null | undefined;
1989
+ ledgerSourceType?: string | null | undefined;
1990
+ ledgerSourceId?: string | null | undefined;
1991
+ documentId?: string | null | undefined;
1824
1992
  };
1825
1993
  relationships?: {
1826
1994
  field?: {
@@ -1874,6 +2042,9 @@ export declare const expenseDetailResponseSchema: z.ZodObject<{
1874
2042
  createdByName: string | null;
1875
2043
  fieldName?: string | null | undefined;
1876
2044
  cropName?: string | null | undefined;
2045
+ ledgerSourceType?: string | null | undefined;
2046
+ ledgerSourceId?: string | null | undefined;
2047
+ documentId?: string | null | undefined;
1877
2048
  };
1878
2049
  relationships?: {
1879
2050
  field?: {
@@ -1913,6 +2084,9 @@ export declare const expenseDetailResponseSchema: z.ZodObject<{
1913
2084
  createdByName: string | null;
1914
2085
  fieldName?: string | null | undefined;
1915
2086
  cropName?: string | null | undefined;
2087
+ ledgerSourceType?: string | null | undefined;
2088
+ ledgerSourceId?: string | null | undefined;
2089
+ documentId?: string | null | undefined;
1916
2090
  };
1917
2091
  relationships?: {
1918
2092
  field?: {
@@ -1951,6 +2125,9 @@ export declare const expenseListResponseSchema: z.ZodObject<{
1951
2125
  cropName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1952
2126
  createdById: z.ZodNullable<z.ZodString>;
1953
2127
  createdByName: z.ZodNullable<z.ZodString>;
2128
+ ledgerSourceType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2129
+ ledgerSourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2130
+ documentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1954
2131
  } & {
1955
2132
  createdAt: z.ZodString;
1956
2133
  updatedAt: z.ZodString;
@@ -1968,6 +2145,9 @@ export declare const expenseListResponseSchema: z.ZodObject<{
1968
2145
  createdByName: string | null;
1969
2146
  fieldName?: string | null | undefined;
1970
2147
  cropName?: string | null | undefined;
2148
+ ledgerSourceType?: string | null | undefined;
2149
+ ledgerSourceId?: string | null | undefined;
2150
+ documentId?: string | null | undefined;
1971
2151
  }, {
1972
2152
  date: string;
1973
2153
  createdAt: string;
@@ -1982,6 +2162,9 @@ export declare const expenseListResponseSchema: z.ZodObject<{
1982
2162
  createdByName: string | null;
1983
2163
  fieldName?: string | null | undefined;
1984
2164
  cropName?: string | null | undefined;
2165
+ ledgerSourceType?: string | null | undefined;
2166
+ ledgerSourceId?: string | null | undefined;
2167
+ documentId?: string | null | undefined;
1985
2168
  }>;
1986
2169
  relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1987
2170
  links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -2003,6 +2186,9 @@ export declare const expenseListResponseSchema: z.ZodObject<{
2003
2186
  createdByName: string | null;
2004
2187
  fieldName?: string | null | undefined;
2005
2188
  cropName?: string | null | undefined;
2189
+ ledgerSourceType?: string | null | undefined;
2190
+ ledgerSourceId?: string | null | undefined;
2191
+ documentId?: string | null | undefined;
2006
2192
  };
2007
2193
  relationships?: Record<string, unknown> | undefined;
2008
2194
  links?: Record<string, string> | undefined;
@@ -2024,6 +2210,9 @@ export declare const expenseListResponseSchema: z.ZodObject<{
2024
2210
  createdByName: string | null;
2025
2211
  fieldName?: string | null | undefined;
2026
2212
  cropName?: string | null | undefined;
2213
+ ledgerSourceType?: string | null | undefined;
2214
+ ledgerSourceId?: string | null | undefined;
2215
+ documentId?: string | null | undefined;
2027
2216
  };
2028
2217
  relationships?: Record<string, unknown> | undefined;
2029
2218
  links?: Record<string, string> | undefined;
@@ -2071,6 +2260,9 @@ export declare const expenseListResponseSchema: z.ZodObject<{
2071
2260
  createdByName: string | null;
2072
2261
  fieldName?: string | null | undefined;
2073
2262
  cropName?: string | null | undefined;
2263
+ ledgerSourceType?: string | null | undefined;
2264
+ ledgerSourceId?: string | null | undefined;
2265
+ documentId?: string | null | undefined;
2074
2266
  };
2075
2267
  relationships?: Record<string, unknown> | undefined;
2076
2268
  links?: Record<string, string> | undefined;
@@ -2104,6 +2296,9 @@ export declare const expenseListResponseSchema: z.ZodObject<{
2104
2296
  createdByName: string | null;
2105
2297
  fieldName?: string | null | undefined;
2106
2298
  cropName?: string | null | undefined;
2299
+ ledgerSourceType?: string | null | undefined;
2300
+ ledgerSourceId?: string | null | undefined;
2301
+ documentId?: string | null | undefined;
2107
2302
  };
2108
2303
  relationships?: Record<string, unknown> | undefined;
2109
2304
  links?: Record<string, string> | undefined;
@@ -2135,6 +2330,9 @@ export declare const revenueResponseSchema: z.ZodObject<{
2135
2330
  fieldId: z.ZodNullable<z.ZodString>;
2136
2331
  fieldName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2137
2332
  harvestId: z.ZodNullable<z.ZodString>;
2333
+ invoiceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2334
+ ledgerSourceType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2335
+ ledgerSourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2138
2336
  createdById: z.ZodNullable<z.ZodString>;
2139
2337
  createdByName: z.ZodNullable<z.ZodString>;
2140
2338
  } & {
@@ -2155,6 +2353,9 @@ export declare const revenueResponseSchema: z.ZodObject<{
2155
2353
  buyer: string | null;
2156
2354
  harvestId: string | null;
2157
2355
  fieldName?: string | null | undefined;
2356
+ ledgerSourceType?: string | null | undefined;
2357
+ ledgerSourceId?: string | null | undefined;
2358
+ invoiceId?: string | null | undefined;
2158
2359
  }, {
2159
2360
  date: string;
2160
2361
  createdAt: string;
@@ -2170,6 +2371,9 @@ export declare const revenueResponseSchema: z.ZodObject<{
2170
2371
  buyer: string | null;
2171
2372
  harvestId: string | null;
2172
2373
  fieldName?: string | null | undefined;
2374
+ ledgerSourceType?: string | null | undefined;
2375
+ ledgerSourceId?: string | null | undefined;
2376
+ invoiceId?: string | null | undefined;
2173
2377
  }>;
2174
2378
  relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2175
2379
  links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -2192,6 +2396,9 @@ export declare const revenueResponseSchema: z.ZodObject<{
2192
2396
  buyer: string | null;
2193
2397
  harvestId: string | null;
2194
2398
  fieldName?: string | null | undefined;
2399
+ ledgerSourceType?: string | null | undefined;
2400
+ ledgerSourceId?: string | null | undefined;
2401
+ invoiceId?: string | null | undefined;
2195
2402
  };
2196
2403
  relationships?: Record<string, unknown> | undefined;
2197
2404
  links?: Record<string, string> | undefined;
@@ -2214,6 +2421,9 @@ export declare const revenueResponseSchema: z.ZodObject<{
2214
2421
  buyer: string | null;
2215
2422
  harvestId: string | null;
2216
2423
  fieldName?: string | null | undefined;
2424
+ ledgerSourceType?: string | null | undefined;
2425
+ ledgerSourceId?: string | null | undefined;
2426
+ invoiceId?: string | null | undefined;
2217
2427
  };
2218
2428
  relationships?: Record<string, unknown> | undefined;
2219
2429
  links?: Record<string, string> | undefined;
@@ -2262,6 +2472,9 @@ export declare const revenueResponseSchema: z.ZodObject<{
2262
2472
  buyer: string | null;
2263
2473
  harvestId: string | null;
2264
2474
  fieldName?: string | null | undefined;
2475
+ ledgerSourceType?: string | null | undefined;
2476
+ ledgerSourceId?: string | null | undefined;
2477
+ invoiceId?: string | null | undefined;
2265
2478
  };
2266
2479
  relationships?: Record<string, unknown> | undefined;
2267
2480
  links?: Record<string, string> | undefined;
@@ -2296,6 +2509,9 @@ export declare const revenueResponseSchema: z.ZodObject<{
2296
2509
  buyer: string | null;
2297
2510
  harvestId: string | null;
2298
2511
  fieldName?: string | null | undefined;
2512
+ ledgerSourceType?: string | null | undefined;
2513
+ ledgerSourceId?: string | null | undefined;
2514
+ invoiceId?: string | null | undefined;
2299
2515
  };
2300
2516
  relationships?: Record<string, unknown> | undefined;
2301
2517
  links?: Record<string, string> | undefined;
@@ -2327,6 +2543,9 @@ export declare const revenueDetailResponseSchema: z.ZodObject<{
2327
2543
  fieldId: z.ZodNullable<z.ZodString>;
2328
2544
  fieldName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2329
2545
  harvestId: z.ZodNullable<z.ZodString>;
2546
+ invoiceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2547
+ ledgerSourceType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2548
+ ledgerSourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2330
2549
  createdById: z.ZodNullable<z.ZodString>;
2331
2550
  createdByName: z.ZodNullable<z.ZodString>;
2332
2551
  } & {
@@ -2347,6 +2566,9 @@ export declare const revenueDetailResponseSchema: z.ZodObject<{
2347
2566
  buyer: string | null;
2348
2567
  harvestId: string | null;
2349
2568
  fieldName?: string | null | undefined;
2569
+ ledgerSourceType?: string | null | undefined;
2570
+ ledgerSourceId?: string | null | undefined;
2571
+ invoiceId?: string | null | undefined;
2350
2572
  }, {
2351
2573
  date: string;
2352
2574
  createdAt: string;
@@ -2362,6 +2584,9 @@ export declare const revenueDetailResponseSchema: z.ZodObject<{
2362
2584
  buyer: string | null;
2363
2585
  harvestId: string | null;
2364
2586
  fieldName?: string | null | undefined;
2587
+ ledgerSourceType?: string | null | undefined;
2588
+ ledgerSourceId?: string | null | undefined;
2589
+ invoiceId?: string | null | undefined;
2365
2590
  }>;
2366
2591
  links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2367
2592
  meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -2442,6 +2667,9 @@ export declare const revenueDetailResponseSchema: z.ZodObject<{
2442
2667
  buyer: string | null;
2443
2668
  harvestId: string | null;
2444
2669
  fieldName?: string | null | undefined;
2670
+ ledgerSourceType?: string | null | undefined;
2671
+ ledgerSourceId?: string | null | undefined;
2672
+ invoiceId?: string | null | undefined;
2445
2673
  };
2446
2674
  relationships?: {
2447
2675
  harvest?: {
@@ -2475,6 +2703,9 @@ export declare const revenueDetailResponseSchema: z.ZodObject<{
2475
2703
  buyer: string | null;
2476
2704
  harvestId: string | null;
2477
2705
  fieldName?: string | null | undefined;
2706
+ ledgerSourceType?: string | null | undefined;
2707
+ ledgerSourceId?: string | null | undefined;
2708
+ invoiceId?: string | null | undefined;
2478
2709
  };
2479
2710
  relationships?: {
2480
2711
  harvest?: {
@@ -2534,6 +2765,9 @@ export declare const revenueDetailResponseSchema: z.ZodObject<{
2534
2765
  buyer: string | null;
2535
2766
  harvestId: string | null;
2536
2767
  fieldName?: string | null | undefined;
2768
+ ledgerSourceType?: string | null | undefined;
2769
+ ledgerSourceId?: string | null | undefined;
2770
+ invoiceId?: string | null | undefined;
2537
2771
  };
2538
2772
  relationships?: {
2539
2773
  harvest?: {
@@ -2579,6 +2813,9 @@ export declare const revenueDetailResponseSchema: z.ZodObject<{
2579
2813
  buyer: string | null;
2580
2814
  harvestId: string | null;
2581
2815
  fieldName?: string | null | undefined;
2816
+ ledgerSourceType?: string | null | undefined;
2817
+ ledgerSourceId?: string | null | undefined;
2818
+ invoiceId?: string | null | undefined;
2582
2819
  };
2583
2820
  relationships?: {
2584
2821
  harvest?: {
@@ -2621,6 +2858,9 @@ export declare const revenueListResponseSchema: z.ZodObject<{
2621
2858
  fieldId: z.ZodNullable<z.ZodString>;
2622
2859
  fieldName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2623
2860
  harvestId: z.ZodNullable<z.ZodString>;
2861
+ invoiceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2862
+ ledgerSourceType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2863
+ ledgerSourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2624
2864
  createdById: z.ZodNullable<z.ZodString>;
2625
2865
  createdByName: z.ZodNullable<z.ZodString>;
2626
2866
  } & {
@@ -2641,6 +2881,9 @@ export declare const revenueListResponseSchema: z.ZodObject<{
2641
2881
  buyer: string | null;
2642
2882
  harvestId: string | null;
2643
2883
  fieldName?: string | null | undefined;
2884
+ ledgerSourceType?: string | null | undefined;
2885
+ ledgerSourceId?: string | null | undefined;
2886
+ invoiceId?: string | null | undefined;
2644
2887
  }, {
2645
2888
  date: string;
2646
2889
  createdAt: string;
@@ -2656,6 +2899,9 @@ export declare const revenueListResponseSchema: z.ZodObject<{
2656
2899
  buyer: string | null;
2657
2900
  harvestId: string | null;
2658
2901
  fieldName?: string | null | undefined;
2902
+ ledgerSourceType?: string | null | undefined;
2903
+ ledgerSourceId?: string | null | undefined;
2904
+ invoiceId?: string | null | undefined;
2659
2905
  }>;
2660
2906
  relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2661
2907
  links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -2678,6 +2924,9 @@ export declare const revenueListResponseSchema: z.ZodObject<{
2678
2924
  buyer: string | null;
2679
2925
  harvestId: string | null;
2680
2926
  fieldName?: string | null | undefined;
2927
+ ledgerSourceType?: string | null | undefined;
2928
+ ledgerSourceId?: string | null | undefined;
2929
+ invoiceId?: string | null | undefined;
2681
2930
  };
2682
2931
  relationships?: Record<string, unknown> | undefined;
2683
2932
  links?: Record<string, string> | undefined;
@@ -2700,6 +2949,9 @@ export declare const revenueListResponseSchema: z.ZodObject<{
2700
2949
  buyer: string | null;
2701
2950
  harvestId: string | null;
2702
2951
  fieldName?: string | null | undefined;
2952
+ ledgerSourceType?: string | null | undefined;
2953
+ ledgerSourceId?: string | null | undefined;
2954
+ invoiceId?: string | null | undefined;
2703
2955
  };
2704
2956
  relationships?: Record<string, unknown> | undefined;
2705
2957
  links?: Record<string, string> | undefined;
@@ -2748,6 +3000,9 @@ export declare const revenueListResponseSchema: z.ZodObject<{
2748
3000
  buyer: string | null;
2749
3001
  harvestId: string | null;
2750
3002
  fieldName?: string | null | undefined;
3003
+ ledgerSourceType?: string | null | undefined;
3004
+ ledgerSourceId?: string | null | undefined;
3005
+ invoiceId?: string | null | undefined;
2751
3006
  };
2752
3007
  relationships?: Record<string, unknown> | undefined;
2753
3008
  links?: Record<string, string> | undefined;
@@ -2782,6 +3037,9 @@ export declare const revenueListResponseSchema: z.ZodObject<{
2782
3037
  buyer: string | null;
2783
3038
  harvestId: string | null;
2784
3039
  fieldName?: string | null | undefined;
3040
+ ledgerSourceType?: string | null | undefined;
3041
+ ledgerSourceId?: string | null | undefined;
3042
+ invoiceId?: string | null | undefined;
2785
3043
  };
2786
3044
  relationships?: Record<string, unknown> | undefined;
2787
3045
  links?: Record<string, string> | undefined;