@deepintel-ltd/farmpro-contracts 1.28.0 → 1.30.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/dist/routes/agents.routes.d.ts +2 -2
  2. package/dist/routes/documents.routes.d.ts +45 -0
  3. package/dist/routes/documents.routes.d.ts.map +1 -1
  4. package/dist/routes/documents.routes.js +3 -1
  5. package/dist/routes/farm-updates.routes.d.ts +24 -0
  6. package/dist/routes/farm-updates.routes.d.ts.map +1 -1
  7. package/dist/routes/finance.routes.d.ts +83 -0
  8. package/dist/routes/finance.routes.d.ts.map +1 -1
  9. package/dist/routes/finance.routes.js +5 -1
  10. package/dist/routes/market-intelligence.routes.d.ts +10 -10
  11. package/dist/routes/notifications.routes.d.ts +245 -0
  12. package/dist/routes/notifications.routes.d.ts.map +1 -1
  13. package/dist/routes/notifications.routes.js +25 -0
  14. package/dist/routes/tasks.routes.d.ts +52 -0
  15. package/dist/routes/tasks.routes.d.ts.map +1 -1
  16. package/dist/routes/tasks.routes.js +7 -2
  17. package/dist/routes/weather.routes.d.ts +131 -0
  18. package/dist/routes/weather.routes.d.ts.map +1 -1
  19. package/dist/schemas/agents.schemas.d.ts +2 -2
  20. package/dist/schemas/documents.schemas.d.ts +32 -0
  21. package/dist/schemas/documents.schemas.d.ts.map +1 -1
  22. package/dist/schemas/documents.schemas.js +17 -4
  23. package/dist/schemas/farm-updates.schemas.d.ts +35 -0
  24. package/dist/schemas/farm-updates.schemas.d.ts.map +1 -1
  25. package/dist/schemas/farm-updates.schemas.js +9 -2
  26. package/dist/schemas/finance.schemas.d.ts +96 -0
  27. package/dist/schemas/finance.schemas.d.ts.map +1 -1
  28. package/dist/schemas/finance.schemas.js +49 -27
  29. package/dist/schemas/tasks.schemas.d.ts +44 -0
  30. package/dist/schemas/tasks.schemas.d.ts.map +1 -1
  31. package/dist/schemas/tasks.schemas.js +42 -19
  32. package/dist/schemas/weather.schemas.d.ts +210 -0
  33. package/dist/schemas/weather.schemas.d.ts.map +1 -1
  34. package/dist/schemas/weather.schemas.js +13 -0
  35. package/package.json +1 -1
@@ -91,6 +91,7 @@ export declare const expenseAttributesSchema: z.ZodObject<{
91
91
  ledgerSourceType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
92
92
  ledgerSourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
93
93
  documentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
94
+ workspace: z.ZodOptional<z.ZodNullable<z.ZodEnum<["farm:CROPS", "farm:POULTRY", "farm:AQUACULTURE", "farm:CATTLE", "farm:GOAT", "farm:SHEEP", "farm:HQ", "org:TRADE"]>>>;
94
95
  } & {
95
96
  createdAt: z.ZodString;
96
97
  updatedAt: z.ZodString;
@@ -107,6 +108,7 @@ export declare const expenseAttributesSchema: z.ZodObject<{
107
108
  createdById: string | null;
108
109
  createdByName: string | null;
109
110
  fieldName?: string | null | undefined;
111
+ workspace?: "farm:CROPS" | "farm:POULTRY" | "farm:AQUACULTURE" | "farm:CATTLE" | "farm:GOAT" | "farm:SHEEP" | "farm:HQ" | "org:TRADE" | null | undefined;
110
112
  groupId?: string | null | undefined;
111
113
  cropName?: string | null | undefined;
112
114
  groupName?: string | null | undefined;
@@ -126,6 +128,7 @@ export declare const expenseAttributesSchema: z.ZodObject<{
126
128
  createdById: string | null;
127
129
  createdByName: string | null;
128
130
  fieldName?: string | null | undefined;
131
+ workspace?: "farm:CROPS" | "farm:POULTRY" | "farm:AQUACULTURE" | "farm:CATTLE" | "farm:GOAT" | "farm:SHEEP" | "farm:HQ" | "org:TRADE" | null | undefined;
129
132
  groupId?: string | null | undefined;
130
133
  cropName?: string | null | undefined;
131
134
  groupName?: string | null | undefined;
@@ -142,6 +145,8 @@ export declare const createExpenseAttributesSchema: z.ZodEffects<z.ZodObject<{
142
145
  fieldId: z.ZodOptional<z.ZodString>;
143
146
  cropId: z.ZodOptional<z.ZodString>;
144
147
  groupId: z.ZodOptional<z.ZodString>;
148
+ /** Active workspace when allocation does not imply one (e.g. general). */
149
+ workspace: z.ZodOptional<z.ZodEnum<["farm:CROPS", "farm:POULTRY", "farm:AQUACULTURE", "farm:CATTLE", "farm:GOAT", "farm:SHEEP", "farm:HQ", "org:TRADE"]>>;
145
150
  }, "strip", z.ZodTypeAny, {
146
151
  date: string;
147
152
  description: string;
@@ -149,6 +154,7 @@ export declare const createExpenseAttributesSchema: z.ZodEffects<z.ZodObject<{
149
154
  amount: number;
150
155
  category?: string | undefined;
151
156
  fieldId?: string | undefined;
157
+ workspace?: "farm:CROPS" | "farm:POULTRY" | "farm:AQUACULTURE" | "farm:CATTLE" | "farm:GOAT" | "farm:SHEEP" | "farm:HQ" | "org:TRADE" | undefined;
152
158
  cropId?: string | undefined;
153
159
  groupId?: string | undefined;
154
160
  }, {
@@ -157,6 +163,7 @@ export declare const createExpenseAttributesSchema: z.ZodEffects<z.ZodObject<{
157
163
  amount: number;
158
164
  category?: string | undefined;
159
165
  fieldId?: string | undefined;
166
+ workspace?: "farm:CROPS" | "farm:POULTRY" | "farm:AQUACULTURE" | "farm:CATTLE" | "farm:GOAT" | "farm:SHEEP" | "farm:HQ" | "org:TRADE" | undefined;
160
167
  cropId?: string | undefined;
161
168
  groupId?: string | undefined;
162
169
  allocationType?: "crop" | "field" | "general" | "livestock_group" | undefined;
@@ -167,6 +174,7 @@ export declare const createExpenseAttributesSchema: z.ZodEffects<z.ZodObject<{
167
174
  amount: number;
168
175
  category?: string | undefined;
169
176
  fieldId?: string | undefined;
177
+ workspace?: "farm:CROPS" | "farm:POULTRY" | "farm:AQUACULTURE" | "farm:CATTLE" | "farm:GOAT" | "farm:SHEEP" | "farm:HQ" | "org:TRADE" | undefined;
170
178
  cropId?: string | undefined;
171
179
  groupId?: string | undefined;
172
180
  }, {
@@ -175,6 +183,7 @@ export declare const createExpenseAttributesSchema: z.ZodEffects<z.ZodObject<{
175
183
  amount: number;
176
184
  category?: string | undefined;
177
185
  fieldId?: string | undefined;
186
+ workspace?: "farm:CROPS" | "farm:POULTRY" | "farm:AQUACULTURE" | "farm:CATTLE" | "farm:GOAT" | "farm:SHEEP" | "farm:HQ" | "org:TRADE" | undefined;
178
187
  cropId?: string | undefined;
179
188
  groupId?: string | undefined;
180
189
  allocationType?: "crop" | "field" | "general" | "livestock_group" | undefined;
@@ -225,6 +234,7 @@ export declare const revenueAttributesSchema: z.ZodObject<{
225
234
  ledgerSourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
226
235
  createdById: z.ZodNullable<z.ZodString>;
227
236
  createdByName: z.ZodNullable<z.ZodString>;
237
+ workspace: z.ZodOptional<z.ZodNullable<z.ZodEnum<["farm:CROPS", "farm:POULTRY", "farm:AQUACULTURE", "farm:CATTLE", "farm:GOAT", "farm:SHEEP", "farm:HQ", "org:TRADE"]>>>;
228
238
  } & {
229
239
  createdAt: z.ZodString;
230
240
  updatedAt: z.ZodString;
@@ -243,6 +253,7 @@ export declare const revenueAttributesSchema: z.ZodObject<{
243
253
  buyer: string | null;
244
254
  harvestId: string | null;
245
255
  fieldName?: string | null | undefined;
256
+ workspace?: "farm:CROPS" | "farm:POULTRY" | "farm:AQUACULTURE" | "farm:CATTLE" | "farm:GOAT" | "farm:SHEEP" | "farm:HQ" | "org:TRADE" | null | undefined;
246
257
  groupId?: string | null | undefined;
247
258
  groupName?: string | null | undefined;
248
259
  ledgerSourceType?: string | null | undefined;
@@ -263,6 +274,7 @@ export declare const revenueAttributesSchema: z.ZodObject<{
263
274
  buyer: string | null;
264
275
  harvestId: string | null;
265
276
  fieldName?: string | null | undefined;
277
+ workspace?: "farm:CROPS" | "farm:POULTRY" | "farm:AQUACULTURE" | "farm:CATTLE" | "farm:GOAT" | "farm:SHEEP" | "farm:HQ" | "org:TRADE" | null | undefined;
266
278
  groupId?: string | null | undefined;
267
279
  groupName?: string | null | undefined;
268
280
  ledgerSourceType?: string | null | undefined;
@@ -282,6 +294,8 @@ export declare const createRevenueAttributesSchema: z.ZodEffects<z.ZodObject<{
282
294
  fieldId: z.ZodOptional<z.ZodString>;
283
295
  groupId: z.ZodOptional<z.ZodString>;
284
296
  harvestId: z.ZodOptional<z.ZodString>;
297
+ /** Active workspace when field/group do not imply one. */
298
+ workspace: z.ZodOptional<z.ZodEnum<["farm:CROPS", "farm:POULTRY", "farm:AQUACULTURE", "farm:CATTLE", "farm:GOAT", "farm:SHEEP", "farm:HQ", "org:TRADE"]>>;
285
299
  }, "strip", z.ZodTypeAny, {
286
300
  date: string;
287
301
  description?: string | undefined;
@@ -289,6 +303,7 @@ export declare const createRevenueAttributesSchema: z.ZodEffects<z.ZodObject<{
289
303
  quantity?: number | undefined;
290
304
  unit?: string | undefined;
291
305
  fieldId?: string | undefined;
306
+ workspace?: "farm:CROPS" | "farm:POULTRY" | "farm:AQUACULTURE" | "farm:CATTLE" | "farm:GOAT" | "farm:SHEEP" | "farm:HQ" | "org:TRADE" | undefined;
292
307
  groupId?: string | undefined;
293
308
  pricePerUnit?: number | undefined;
294
309
  totalAmount?: number | undefined;
@@ -301,6 +316,7 @@ export declare const createRevenueAttributesSchema: z.ZodEffects<z.ZodObject<{
301
316
  quantity?: number | undefined;
302
317
  unit?: string | undefined;
303
318
  fieldId?: string | undefined;
319
+ workspace?: "farm:CROPS" | "farm:POULTRY" | "farm:AQUACULTURE" | "farm:CATTLE" | "farm:GOAT" | "farm:SHEEP" | "farm:HQ" | "org:TRADE" | undefined;
304
320
  groupId?: string | undefined;
305
321
  pricePerUnit?: number | undefined;
306
322
  totalAmount?: number | undefined;
@@ -313,6 +329,7 @@ export declare const createRevenueAttributesSchema: z.ZodEffects<z.ZodObject<{
313
329
  quantity?: number | undefined;
314
330
  unit?: string | undefined;
315
331
  fieldId?: string | undefined;
332
+ workspace?: "farm:CROPS" | "farm:POULTRY" | "farm:AQUACULTURE" | "farm:CATTLE" | "farm:GOAT" | "farm:SHEEP" | "farm:HQ" | "org:TRADE" | undefined;
316
333
  groupId?: string | undefined;
317
334
  pricePerUnit?: number | undefined;
318
335
  totalAmount?: number | undefined;
@@ -325,6 +342,7 @@ export declare const createRevenueAttributesSchema: z.ZodEffects<z.ZodObject<{
325
342
  quantity?: number | undefined;
326
343
  unit?: string | undefined;
327
344
  fieldId?: string | undefined;
345
+ workspace?: "farm:CROPS" | "farm:POULTRY" | "farm:AQUACULTURE" | "farm:CATTLE" | "farm:GOAT" | "farm:SHEEP" | "farm:HQ" | "org:TRADE" | undefined;
328
346
  groupId?: string | undefined;
329
347
  pricePerUnit?: number | undefined;
330
348
  totalAmount?: number | undefined;
@@ -459,6 +477,8 @@ export declare const createExpenseSchema: z.ZodObject<{
459
477
  fieldId: z.ZodOptional<z.ZodString>;
460
478
  cropId: z.ZodOptional<z.ZodString>;
461
479
  groupId: z.ZodOptional<z.ZodString>;
480
+ /** Active workspace when allocation does not imply one (e.g. general). */
481
+ workspace: z.ZodOptional<z.ZodEnum<["farm:CROPS", "farm:POULTRY", "farm:AQUACULTURE", "farm:CATTLE", "farm:GOAT", "farm:SHEEP", "farm:HQ", "org:TRADE"]>>;
462
482
  }, "strip", z.ZodTypeAny, {
463
483
  date: string;
464
484
  description: string;
@@ -466,6 +486,7 @@ export declare const createExpenseSchema: z.ZodObject<{
466
486
  amount: number;
467
487
  category?: string | undefined;
468
488
  fieldId?: string | undefined;
489
+ workspace?: "farm:CROPS" | "farm:POULTRY" | "farm:AQUACULTURE" | "farm:CATTLE" | "farm:GOAT" | "farm:SHEEP" | "farm:HQ" | "org:TRADE" | undefined;
469
490
  cropId?: string | undefined;
470
491
  groupId?: string | undefined;
471
492
  }, {
@@ -474,6 +495,7 @@ export declare const createExpenseSchema: z.ZodObject<{
474
495
  amount: number;
475
496
  category?: string | undefined;
476
497
  fieldId?: string | undefined;
498
+ workspace?: "farm:CROPS" | "farm:POULTRY" | "farm:AQUACULTURE" | "farm:CATTLE" | "farm:GOAT" | "farm:SHEEP" | "farm:HQ" | "org:TRADE" | undefined;
477
499
  cropId?: string | undefined;
478
500
  groupId?: string | undefined;
479
501
  allocationType?: "crop" | "field" | "general" | "livestock_group" | undefined;
@@ -484,6 +506,7 @@ export declare const createExpenseSchema: z.ZodObject<{
484
506
  amount: number;
485
507
  category?: string | undefined;
486
508
  fieldId?: string | undefined;
509
+ workspace?: "farm:CROPS" | "farm:POULTRY" | "farm:AQUACULTURE" | "farm:CATTLE" | "farm:GOAT" | "farm:SHEEP" | "farm:HQ" | "org:TRADE" | undefined;
487
510
  cropId?: string | undefined;
488
511
  groupId?: string | undefined;
489
512
  }, {
@@ -492,6 +515,7 @@ export declare const createExpenseSchema: z.ZodObject<{
492
515
  amount: number;
493
516
  category?: string | undefined;
494
517
  fieldId?: string | undefined;
518
+ workspace?: "farm:CROPS" | "farm:POULTRY" | "farm:AQUACULTURE" | "farm:CATTLE" | "farm:GOAT" | "farm:SHEEP" | "farm:HQ" | "org:TRADE" | undefined;
495
519
  cropId?: string | undefined;
496
520
  groupId?: string | undefined;
497
521
  allocationType?: "crop" | "field" | "general" | "livestock_group" | undefined;
@@ -505,6 +529,7 @@ export declare const createExpenseSchema: z.ZodObject<{
505
529
  amount: number;
506
530
  category?: string | undefined;
507
531
  fieldId?: string | undefined;
532
+ workspace?: "farm:CROPS" | "farm:POULTRY" | "farm:AQUACULTURE" | "farm:CATTLE" | "farm:GOAT" | "farm:SHEEP" | "farm:HQ" | "org:TRADE" | undefined;
508
533
  cropId?: string | undefined;
509
534
  groupId?: string | undefined;
510
535
  };
@@ -516,6 +541,7 @@ export declare const createExpenseSchema: z.ZodObject<{
516
541
  amount: number;
517
542
  category?: string | undefined;
518
543
  fieldId?: string | undefined;
544
+ workspace?: "farm:CROPS" | "farm:POULTRY" | "farm:AQUACULTURE" | "farm:CATTLE" | "farm:GOAT" | "farm:SHEEP" | "farm:HQ" | "org:TRADE" | undefined;
519
545
  cropId?: string | undefined;
520
546
  groupId?: string | undefined;
521
547
  allocationType?: "crop" | "field" | "general" | "livestock_group" | undefined;
@@ -594,6 +620,8 @@ export declare const createRevenueSchema: z.ZodObject<{
594
620
  fieldId: z.ZodOptional<z.ZodString>;
595
621
  groupId: z.ZodOptional<z.ZodString>;
596
622
  harvestId: z.ZodOptional<z.ZodString>;
623
+ /** Active workspace when field/group do not imply one. */
624
+ workspace: z.ZodOptional<z.ZodEnum<["farm:CROPS", "farm:POULTRY", "farm:AQUACULTURE", "farm:CATTLE", "farm:GOAT", "farm:SHEEP", "farm:HQ", "org:TRADE"]>>;
597
625
  }, "strip", z.ZodTypeAny, {
598
626
  date: string;
599
627
  description?: string | undefined;
@@ -601,6 +629,7 @@ export declare const createRevenueSchema: z.ZodObject<{
601
629
  quantity?: number | undefined;
602
630
  unit?: string | undefined;
603
631
  fieldId?: string | undefined;
632
+ workspace?: "farm:CROPS" | "farm:POULTRY" | "farm:AQUACULTURE" | "farm:CATTLE" | "farm:GOAT" | "farm:SHEEP" | "farm:HQ" | "org:TRADE" | undefined;
604
633
  groupId?: string | undefined;
605
634
  pricePerUnit?: number | undefined;
606
635
  totalAmount?: number | undefined;
@@ -613,6 +642,7 @@ export declare const createRevenueSchema: z.ZodObject<{
613
642
  quantity?: number | undefined;
614
643
  unit?: string | undefined;
615
644
  fieldId?: string | undefined;
645
+ workspace?: "farm:CROPS" | "farm:POULTRY" | "farm:AQUACULTURE" | "farm:CATTLE" | "farm:GOAT" | "farm:SHEEP" | "farm:HQ" | "org:TRADE" | undefined;
616
646
  groupId?: string | undefined;
617
647
  pricePerUnit?: number | undefined;
618
648
  totalAmount?: number | undefined;
@@ -625,6 +655,7 @@ export declare const createRevenueSchema: z.ZodObject<{
625
655
  quantity?: number | undefined;
626
656
  unit?: string | undefined;
627
657
  fieldId?: string | undefined;
658
+ workspace?: "farm:CROPS" | "farm:POULTRY" | "farm:AQUACULTURE" | "farm:CATTLE" | "farm:GOAT" | "farm:SHEEP" | "farm:HQ" | "org:TRADE" | undefined;
628
659
  groupId?: string | undefined;
629
660
  pricePerUnit?: number | undefined;
630
661
  totalAmount?: number | undefined;
@@ -637,6 +668,7 @@ export declare const createRevenueSchema: z.ZodObject<{
637
668
  quantity?: number | undefined;
638
669
  unit?: string | undefined;
639
670
  fieldId?: string | undefined;
671
+ workspace?: "farm:CROPS" | "farm:POULTRY" | "farm:AQUACULTURE" | "farm:CATTLE" | "farm:GOAT" | "farm:SHEEP" | "farm:HQ" | "org:TRADE" | undefined;
640
672
  groupId?: string | undefined;
641
673
  pricePerUnit?: number | undefined;
642
674
  totalAmount?: number | undefined;
@@ -652,6 +684,7 @@ export declare const createRevenueSchema: z.ZodObject<{
652
684
  quantity?: number | undefined;
653
685
  unit?: string | undefined;
654
686
  fieldId?: string | undefined;
687
+ workspace?: "farm:CROPS" | "farm:POULTRY" | "farm:AQUACULTURE" | "farm:CATTLE" | "farm:GOAT" | "farm:SHEEP" | "farm:HQ" | "org:TRADE" | undefined;
655
688
  groupId?: string | undefined;
656
689
  pricePerUnit?: number | undefined;
657
690
  totalAmount?: number | undefined;
@@ -667,6 +700,7 @@ export declare const createRevenueSchema: z.ZodObject<{
667
700
  quantity?: number | undefined;
668
701
  unit?: string | undefined;
669
702
  fieldId?: string | undefined;
703
+ workspace?: "farm:CROPS" | "farm:POULTRY" | "farm:AQUACULTURE" | "farm:CATTLE" | "farm:GOAT" | "farm:SHEEP" | "farm:HQ" | "org:TRADE" | undefined;
670
704
  groupId?: string | undefined;
671
705
  pricePerUnit?: number | undefined;
672
706
  totalAmount?: number | undefined;
@@ -835,6 +869,7 @@ export declare const expenseResourceSchema: z.ZodObject<{
835
869
  ledgerSourceType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
836
870
  ledgerSourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
837
871
  documentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
872
+ workspace: z.ZodOptional<z.ZodNullable<z.ZodEnum<["farm:CROPS", "farm:POULTRY", "farm:AQUACULTURE", "farm:CATTLE", "farm:GOAT", "farm:SHEEP", "farm:HQ", "org:TRADE"]>>>;
838
873
  } & {
839
874
  createdAt: z.ZodString;
840
875
  updatedAt: z.ZodString;
@@ -851,6 +886,7 @@ export declare const expenseResourceSchema: z.ZodObject<{
851
886
  createdById: string | null;
852
887
  createdByName: string | null;
853
888
  fieldName?: string | null | undefined;
889
+ workspace?: "farm:CROPS" | "farm:POULTRY" | "farm:AQUACULTURE" | "farm:CATTLE" | "farm:GOAT" | "farm:SHEEP" | "farm:HQ" | "org:TRADE" | null | undefined;
854
890
  groupId?: string | null | undefined;
855
891
  cropName?: string | null | undefined;
856
892
  groupName?: string | null | undefined;
@@ -870,6 +906,7 @@ export declare const expenseResourceSchema: z.ZodObject<{
870
906
  createdById: string | null;
871
907
  createdByName: string | null;
872
908
  fieldName?: string | null | undefined;
909
+ workspace?: "farm:CROPS" | "farm:POULTRY" | "farm:AQUACULTURE" | "farm:CATTLE" | "farm:GOAT" | "farm:SHEEP" | "farm:HQ" | "org:TRADE" | null | undefined;
873
910
  groupId?: string | null | undefined;
874
911
  cropName?: string | null | undefined;
875
912
  groupName?: string | null | undefined;
@@ -896,6 +933,7 @@ export declare const expenseResourceSchema: z.ZodObject<{
896
933
  createdById: string | null;
897
934
  createdByName: string | null;
898
935
  fieldName?: string | null | undefined;
936
+ workspace?: "farm:CROPS" | "farm:POULTRY" | "farm:AQUACULTURE" | "farm:CATTLE" | "farm:GOAT" | "farm:SHEEP" | "farm:HQ" | "org:TRADE" | null | undefined;
899
937
  groupId?: string | null | undefined;
900
938
  cropName?: string | null | undefined;
901
939
  groupName?: string | null | undefined;
@@ -922,6 +960,7 @@ export declare const expenseResourceSchema: z.ZodObject<{
922
960
  createdById: string | null;
923
961
  createdByName: string | null;
924
962
  fieldName?: string | null | undefined;
963
+ workspace?: "farm:CROPS" | "farm:POULTRY" | "farm:AQUACULTURE" | "farm:CATTLE" | "farm:GOAT" | "farm:SHEEP" | "farm:HQ" | "org:TRADE" | null | undefined;
925
964
  groupId?: string | null | undefined;
926
965
  cropName?: string | null | undefined;
927
966
  groupName?: string | null | undefined;
@@ -954,6 +993,7 @@ export declare const revenueResourceSchema: z.ZodObject<{
954
993
  ledgerSourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
955
994
  createdById: z.ZodNullable<z.ZodString>;
956
995
  createdByName: z.ZodNullable<z.ZodString>;
996
+ workspace: z.ZodOptional<z.ZodNullable<z.ZodEnum<["farm:CROPS", "farm:POULTRY", "farm:AQUACULTURE", "farm:CATTLE", "farm:GOAT", "farm:SHEEP", "farm:HQ", "org:TRADE"]>>>;
957
997
  } & {
958
998
  createdAt: z.ZodString;
959
999
  updatedAt: z.ZodString;
@@ -972,6 +1012,7 @@ export declare const revenueResourceSchema: z.ZodObject<{
972
1012
  buyer: string | null;
973
1013
  harvestId: string | null;
974
1014
  fieldName?: string | null | undefined;
1015
+ workspace?: "farm:CROPS" | "farm:POULTRY" | "farm:AQUACULTURE" | "farm:CATTLE" | "farm:GOAT" | "farm:SHEEP" | "farm:HQ" | "org:TRADE" | null | undefined;
975
1016
  groupId?: string | null | undefined;
976
1017
  groupName?: string | null | undefined;
977
1018
  ledgerSourceType?: string | null | undefined;
@@ -992,6 +1033,7 @@ export declare const revenueResourceSchema: z.ZodObject<{
992
1033
  buyer: string | null;
993
1034
  harvestId: string | null;
994
1035
  fieldName?: string | null | undefined;
1036
+ workspace?: "farm:CROPS" | "farm:POULTRY" | "farm:AQUACULTURE" | "farm:CATTLE" | "farm:GOAT" | "farm:SHEEP" | "farm:HQ" | "org:TRADE" | null | undefined;
995
1037
  groupId?: string | null | undefined;
996
1038
  groupName?: string | null | undefined;
997
1039
  ledgerSourceType?: string | null | undefined;
@@ -1019,6 +1061,7 @@ export declare const revenueResourceSchema: z.ZodObject<{
1019
1061
  buyer: string | null;
1020
1062
  harvestId: string | null;
1021
1063
  fieldName?: string | null | undefined;
1064
+ workspace?: "farm:CROPS" | "farm:POULTRY" | "farm:AQUACULTURE" | "farm:CATTLE" | "farm:GOAT" | "farm:SHEEP" | "farm:HQ" | "org:TRADE" | null | undefined;
1022
1065
  groupId?: string | null | undefined;
1023
1066
  groupName?: string | null | undefined;
1024
1067
  ledgerSourceType?: string | null | undefined;
@@ -1046,6 +1089,7 @@ export declare const revenueResourceSchema: z.ZodObject<{
1046
1089
  buyer: string | null;
1047
1090
  harvestId: string | null;
1048
1091
  fieldName?: string | null | undefined;
1092
+ workspace?: "farm:CROPS" | "farm:POULTRY" | "farm:AQUACULTURE" | "farm:CATTLE" | "farm:GOAT" | "farm:SHEEP" | "farm:HQ" | "org:TRADE" | null | undefined;
1049
1093
  groupId?: string | null | undefined;
1050
1094
  groupName?: string | null | undefined;
1051
1095
  ledgerSourceType?: string | null | undefined;
@@ -1076,6 +1120,7 @@ export declare const expenseDetailResourceSchema: z.ZodObject<{
1076
1120
  ledgerSourceType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1077
1121
  ledgerSourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1078
1122
  documentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1123
+ workspace: z.ZodOptional<z.ZodNullable<z.ZodEnum<["farm:CROPS", "farm:POULTRY", "farm:AQUACULTURE", "farm:CATTLE", "farm:GOAT", "farm:SHEEP", "farm:HQ", "org:TRADE"]>>>;
1079
1124
  } & {
1080
1125
  createdAt: z.ZodString;
1081
1126
  updatedAt: z.ZodString;
@@ -1092,6 +1137,7 @@ export declare const expenseDetailResourceSchema: z.ZodObject<{
1092
1137
  createdById: string | null;
1093
1138
  createdByName: string | null;
1094
1139
  fieldName?: string | null | undefined;
1140
+ workspace?: "farm:CROPS" | "farm:POULTRY" | "farm:AQUACULTURE" | "farm:CATTLE" | "farm:GOAT" | "farm:SHEEP" | "farm:HQ" | "org:TRADE" | null | undefined;
1095
1141
  groupId?: string | null | undefined;
1096
1142
  cropName?: string | null | undefined;
1097
1143
  groupName?: string | null | undefined;
@@ -1111,6 +1157,7 @@ export declare const expenseDetailResourceSchema: z.ZodObject<{
1111
1157
  createdById: string | null;
1112
1158
  createdByName: string | null;
1113
1159
  fieldName?: string | null | undefined;
1160
+ workspace?: "farm:CROPS" | "farm:POULTRY" | "farm:AQUACULTURE" | "farm:CATTLE" | "farm:GOAT" | "farm:SHEEP" | "farm:HQ" | "org:TRADE" | null | undefined;
1114
1161
  groupId?: string | null | undefined;
1115
1162
  cropName?: string | null | undefined;
1116
1163
  groupName?: string | null | undefined;
@@ -1168,6 +1215,7 @@ export declare const expenseDetailResourceSchema: z.ZodObject<{
1168
1215
  createdById: string | null;
1169
1216
  createdByName: string | null;
1170
1217
  fieldName?: string | null | undefined;
1218
+ workspace?: "farm:CROPS" | "farm:POULTRY" | "farm:AQUACULTURE" | "farm:CATTLE" | "farm:GOAT" | "farm:SHEEP" | "farm:HQ" | "org:TRADE" | null | undefined;
1171
1219
  groupId?: string | null | undefined;
1172
1220
  cropName?: string | null | undefined;
1173
1221
  groupName?: string | null | undefined;
@@ -1200,6 +1248,7 @@ export declare const expenseDetailResourceSchema: z.ZodObject<{
1200
1248
  createdById: string | null;
1201
1249
  createdByName: string | null;
1202
1250
  fieldName?: string | null | undefined;
1251
+ workspace?: "farm:CROPS" | "farm:POULTRY" | "farm:AQUACULTURE" | "farm:CATTLE" | "farm:GOAT" | "farm:SHEEP" | "farm:HQ" | "org:TRADE" | null | undefined;
1203
1252
  groupId?: string | null | undefined;
1204
1253
  cropName?: string | null | undefined;
1205
1254
  groupName?: string | null | undefined;
@@ -1238,6 +1287,7 @@ export declare const revenueDetailResourceSchema: z.ZodObject<{
1238
1287
  ledgerSourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1239
1288
  createdById: z.ZodNullable<z.ZodString>;
1240
1289
  createdByName: z.ZodNullable<z.ZodString>;
1290
+ workspace: z.ZodOptional<z.ZodNullable<z.ZodEnum<["farm:CROPS", "farm:POULTRY", "farm:AQUACULTURE", "farm:CATTLE", "farm:GOAT", "farm:SHEEP", "farm:HQ", "org:TRADE"]>>>;
1241
1291
  } & {
1242
1292
  createdAt: z.ZodString;
1243
1293
  updatedAt: z.ZodString;
@@ -1256,6 +1306,7 @@ export declare const revenueDetailResourceSchema: z.ZodObject<{
1256
1306
  buyer: string | null;
1257
1307
  harvestId: string | null;
1258
1308
  fieldName?: string | null | undefined;
1309
+ workspace?: "farm:CROPS" | "farm:POULTRY" | "farm:AQUACULTURE" | "farm:CATTLE" | "farm:GOAT" | "farm:SHEEP" | "farm:HQ" | "org:TRADE" | null | undefined;
1259
1310
  groupId?: string | null | undefined;
1260
1311
  groupName?: string | null | undefined;
1261
1312
  ledgerSourceType?: string | null | undefined;
@@ -1276,6 +1327,7 @@ export declare const revenueDetailResourceSchema: z.ZodObject<{
1276
1327
  buyer: string | null;
1277
1328
  harvestId: string | null;
1278
1329
  fieldName?: string | null | undefined;
1330
+ workspace?: "farm:CROPS" | "farm:POULTRY" | "farm:AQUACULTURE" | "farm:CATTLE" | "farm:GOAT" | "farm:SHEEP" | "farm:HQ" | "org:TRADE" | null | undefined;
1279
1331
  groupId?: string | null | undefined;
1280
1332
  groupName?: string | null | undefined;
1281
1333
  ledgerSourceType?: string | null | undefined;
@@ -1361,6 +1413,7 @@ export declare const revenueDetailResourceSchema: z.ZodObject<{
1361
1413
  buyer: string | null;
1362
1414
  harvestId: string | null;
1363
1415
  fieldName?: string | null | undefined;
1416
+ workspace?: "farm:CROPS" | "farm:POULTRY" | "farm:AQUACULTURE" | "farm:CATTLE" | "farm:GOAT" | "farm:SHEEP" | "farm:HQ" | "org:TRADE" | null | undefined;
1364
1417
  groupId?: string | null | undefined;
1365
1418
  groupName?: string | null | undefined;
1366
1419
  ledgerSourceType?: string | null | undefined;
@@ -1399,6 +1452,7 @@ export declare const revenueDetailResourceSchema: z.ZodObject<{
1399
1452
  buyer: string | null;
1400
1453
  harvestId: string | null;
1401
1454
  fieldName?: string | null | undefined;
1455
+ workspace?: "farm:CROPS" | "farm:POULTRY" | "farm:AQUACULTURE" | "farm:CATTLE" | "farm:GOAT" | "farm:SHEEP" | "farm:HQ" | "org:TRADE" | null | undefined;
1402
1456
  groupId?: string | null | undefined;
1403
1457
  groupName?: string | null | undefined;
1404
1458
  ledgerSourceType?: string | null | undefined;
@@ -1755,6 +1809,7 @@ export declare const expenseResponseSchema: z.ZodObject<{
1755
1809
  ledgerSourceType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1756
1810
  ledgerSourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1757
1811
  documentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1812
+ workspace: z.ZodOptional<z.ZodNullable<z.ZodEnum<["farm:CROPS", "farm:POULTRY", "farm:AQUACULTURE", "farm:CATTLE", "farm:GOAT", "farm:SHEEP", "farm:HQ", "org:TRADE"]>>>;
1758
1813
  } & {
1759
1814
  createdAt: z.ZodString;
1760
1815
  updatedAt: z.ZodString;
@@ -1771,6 +1826,7 @@ export declare const expenseResponseSchema: z.ZodObject<{
1771
1826
  createdById: string | null;
1772
1827
  createdByName: string | null;
1773
1828
  fieldName?: string | null | undefined;
1829
+ workspace?: "farm:CROPS" | "farm:POULTRY" | "farm:AQUACULTURE" | "farm:CATTLE" | "farm:GOAT" | "farm:SHEEP" | "farm:HQ" | "org:TRADE" | null | undefined;
1774
1830
  groupId?: string | null | undefined;
1775
1831
  cropName?: string | null | undefined;
1776
1832
  groupName?: string | null | undefined;
@@ -1790,6 +1846,7 @@ export declare const expenseResponseSchema: z.ZodObject<{
1790
1846
  createdById: string | null;
1791
1847
  createdByName: string | null;
1792
1848
  fieldName?: string | null | undefined;
1849
+ workspace?: "farm:CROPS" | "farm:POULTRY" | "farm:AQUACULTURE" | "farm:CATTLE" | "farm:GOAT" | "farm:SHEEP" | "farm:HQ" | "org:TRADE" | null | undefined;
1793
1850
  groupId?: string | null | undefined;
1794
1851
  cropName?: string | null | undefined;
1795
1852
  groupName?: string | null | undefined;
@@ -1816,6 +1873,7 @@ export declare const expenseResponseSchema: z.ZodObject<{
1816
1873
  createdById: string | null;
1817
1874
  createdByName: string | null;
1818
1875
  fieldName?: string | null | undefined;
1876
+ workspace?: "farm:CROPS" | "farm:POULTRY" | "farm:AQUACULTURE" | "farm:CATTLE" | "farm:GOAT" | "farm:SHEEP" | "farm:HQ" | "org:TRADE" | null | undefined;
1819
1877
  groupId?: string | null | undefined;
1820
1878
  cropName?: string | null | undefined;
1821
1879
  groupName?: string | null | undefined;
@@ -1842,6 +1900,7 @@ export declare const expenseResponseSchema: z.ZodObject<{
1842
1900
  createdById: string | null;
1843
1901
  createdByName: string | null;
1844
1902
  fieldName?: string | null | undefined;
1903
+ workspace?: "farm:CROPS" | "farm:POULTRY" | "farm:AQUACULTURE" | "farm:CATTLE" | "farm:GOAT" | "farm:SHEEP" | "farm:HQ" | "org:TRADE" | null | undefined;
1845
1904
  groupId?: string | null | undefined;
1846
1905
  cropName?: string | null | undefined;
1847
1906
  groupName?: string | null | undefined;
@@ -1894,6 +1953,7 @@ export declare const expenseResponseSchema: z.ZodObject<{
1894
1953
  createdById: string | null;
1895
1954
  createdByName: string | null;
1896
1955
  fieldName?: string | null | undefined;
1956
+ workspace?: "farm:CROPS" | "farm:POULTRY" | "farm:AQUACULTURE" | "farm:CATTLE" | "farm:GOAT" | "farm:SHEEP" | "farm:HQ" | "org:TRADE" | null | undefined;
1897
1957
  groupId?: string | null | undefined;
1898
1958
  cropName?: string | null | undefined;
1899
1959
  groupName?: string | null | undefined;
@@ -1932,6 +1992,7 @@ export declare const expenseResponseSchema: z.ZodObject<{
1932
1992
  createdById: string | null;
1933
1993
  createdByName: string | null;
1934
1994
  fieldName?: string | null | undefined;
1995
+ workspace?: "farm:CROPS" | "farm:POULTRY" | "farm:AQUACULTURE" | "farm:CATTLE" | "farm:GOAT" | "farm:SHEEP" | "farm:HQ" | "org:TRADE" | null | undefined;
1935
1996
  groupId?: string | null | undefined;
1936
1997
  cropName?: string | null | undefined;
1937
1998
  groupName?: string | null | undefined;
@@ -1975,6 +2036,7 @@ export declare const expenseDetailResponseSchema: z.ZodObject<{
1975
2036
  ledgerSourceType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1976
2037
  ledgerSourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1977
2038
  documentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2039
+ workspace: z.ZodOptional<z.ZodNullable<z.ZodEnum<["farm:CROPS", "farm:POULTRY", "farm:AQUACULTURE", "farm:CATTLE", "farm:GOAT", "farm:SHEEP", "farm:HQ", "org:TRADE"]>>>;
1978
2040
  } & {
1979
2041
  createdAt: z.ZodString;
1980
2042
  updatedAt: z.ZodString;
@@ -1991,6 +2053,7 @@ export declare const expenseDetailResponseSchema: z.ZodObject<{
1991
2053
  createdById: string | null;
1992
2054
  createdByName: string | null;
1993
2055
  fieldName?: string | null | undefined;
2056
+ workspace?: "farm:CROPS" | "farm:POULTRY" | "farm:AQUACULTURE" | "farm:CATTLE" | "farm:GOAT" | "farm:SHEEP" | "farm:HQ" | "org:TRADE" | null | undefined;
1994
2057
  groupId?: string | null | undefined;
1995
2058
  cropName?: string | null | undefined;
1996
2059
  groupName?: string | null | undefined;
@@ -2010,6 +2073,7 @@ export declare const expenseDetailResponseSchema: z.ZodObject<{
2010
2073
  createdById: string | null;
2011
2074
  createdByName: string | null;
2012
2075
  fieldName?: string | null | undefined;
2076
+ workspace?: "farm:CROPS" | "farm:POULTRY" | "farm:AQUACULTURE" | "farm:CATTLE" | "farm:GOAT" | "farm:SHEEP" | "farm:HQ" | "org:TRADE" | null | undefined;
2013
2077
  groupId?: string | null | undefined;
2014
2078
  cropName?: string | null | undefined;
2015
2079
  groupName?: string | null | undefined;
@@ -2067,6 +2131,7 @@ export declare const expenseDetailResponseSchema: z.ZodObject<{
2067
2131
  createdById: string | null;
2068
2132
  createdByName: string | null;
2069
2133
  fieldName?: string | null | undefined;
2134
+ workspace?: "farm:CROPS" | "farm:POULTRY" | "farm:AQUACULTURE" | "farm:CATTLE" | "farm:GOAT" | "farm:SHEEP" | "farm:HQ" | "org:TRADE" | null | undefined;
2070
2135
  groupId?: string | null | undefined;
2071
2136
  cropName?: string | null | undefined;
2072
2137
  groupName?: string | null | undefined;
@@ -2099,6 +2164,7 @@ export declare const expenseDetailResponseSchema: z.ZodObject<{
2099
2164
  createdById: string | null;
2100
2165
  createdByName: string | null;
2101
2166
  fieldName?: string | null | undefined;
2167
+ workspace?: "farm:CROPS" | "farm:POULTRY" | "farm:AQUACULTURE" | "farm:CATTLE" | "farm:GOAT" | "farm:SHEEP" | "farm:HQ" | "org:TRADE" | null | undefined;
2102
2168
  groupId?: string | null | undefined;
2103
2169
  cropName?: string | null | undefined;
2104
2170
  groupName?: string | null | undefined;
@@ -2157,6 +2223,7 @@ export declare const expenseDetailResponseSchema: z.ZodObject<{
2157
2223
  createdById: string | null;
2158
2224
  createdByName: string | null;
2159
2225
  fieldName?: string | null | undefined;
2226
+ workspace?: "farm:CROPS" | "farm:POULTRY" | "farm:AQUACULTURE" | "farm:CATTLE" | "farm:GOAT" | "farm:SHEEP" | "farm:HQ" | "org:TRADE" | null | undefined;
2160
2227
  groupId?: string | null | undefined;
2161
2228
  cropName?: string | null | undefined;
2162
2229
  groupName?: string | null | undefined;
@@ -2201,6 +2268,7 @@ export declare const expenseDetailResponseSchema: z.ZodObject<{
2201
2268
  createdById: string | null;
2202
2269
  createdByName: string | null;
2203
2270
  fieldName?: string | null | undefined;
2271
+ workspace?: "farm:CROPS" | "farm:POULTRY" | "farm:AQUACULTURE" | "farm:CATTLE" | "farm:GOAT" | "farm:SHEEP" | "farm:HQ" | "org:TRADE" | null | undefined;
2204
2272
  groupId?: string | null | undefined;
2205
2273
  cropName?: string | null | undefined;
2206
2274
  groupName?: string | null | undefined;
@@ -2250,6 +2318,7 @@ export declare const expenseListResponseSchema: z.ZodObject<{
2250
2318
  ledgerSourceType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2251
2319
  ledgerSourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2252
2320
  documentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2321
+ workspace: z.ZodOptional<z.ZodNullable<z.ZodEnum<["farm:CROPS", "farm:POULTRY", "farm:AQUACULTURE", "farm:CATTLE", "farm:GOAT", "farm:SHEEP", "farm:HQ", "org:TRADE"]>>>;
2253
2322
  } & {
2254
2323
  createdAt: z.ZodString;
2255
2324
  updatedAt: z.ZodString;
@@ -2266,6 +2335,7 @@ export declare const expenseListResponseSchema: z.ZodObject<{
2266
2335
  createdById: string | null;
2267
2336
  createdByName: string | null;
2268
2337
  fieldName?: string | null | undefined;
2338
+ workspace?: "farm:CROPS" | "farm:POULTRY" | "farm:AQUACULTURE" | "farm:CATTLE" | "farm:GOAT" | "farm:SHEEP" | "farm:HQ" | "org:TRADE" | null | undefined;
2269
2339
  groupId?: string | null | undefined;
2270
2340
  cropName?: string | null | undefined;
2271
2341
  groupName?: string | null | undefined;
@@ -2285,6 +2355,7 @@ export declare const expenseListResponseSchema: z.ZodObject<{
2285
2355
  createdById: string | null;
2286
2356
  createdByName: string | null;
2287
2357
  fieldName?: string | null | undefined;
2358
+ workspace?: "farm:CROPS" | "farm:POULTRY" | "farm:AQUACULTURE" | "farm:CATTLE" | "farm:GOAT" | "farm:SHEEP" | "farm:HQ" | "org:TRADE" | null | undefined;
2288
2359
  groupId?: string | null | undefined;
2289
2360
  cropName?: string | null | undefined;
2290
2361
  groupName?: string | null | undefined;
@@ -2311,6 +2382,7 @@ export declare const expenseListResponseSchema: z.ZodObject<{
2311
2382
  createdById: string | null;
2312
2383
  createdByName: string | null;
2313
2384
  fieldName?: string | null | undefined;
2385
+ workspace?: "farm:CROPS" | "farm:POULTRY" | "farm:AQUACULTURE" | "farm:CATTLE" | "farm:GOAT" | "farm:SHEEP" | "farm:HQ" | "org:TRADE" | null | undefined;
2314
2386
  groupId?: string | null | undefined;
2315
2387
  cropName?: string | null | undefined;
2316
2388
  groupName?: string | null | undefined;
@@ -2337,6 +2409,7 @@ export declare const expenseListResponseSchema: z.ZodObject<{
2337
2409
  createdById: string | null;
2338
2410
  createdByName: string | null;
2339
2411
  fieldName?: string | null | undefined;
2412
+ workspace?: "farm:CROPS" | "farm:POULTRY" | "farm:AQUACULTURE" | "farm:CATTLE" | "farm:GOAT" | "farm:SHEEP" | "farm:HQ" | "org:TRADE" | null | undefined;
2340
2413
  groupId?: string | null | undefined;
2341
2414
  cropName?: string | null | undefined;
2342
2415
  groupName?: string | null | undefined;
@@ -2389,6 +2462,7 @@ export declare const expenseListResponseSchema: z.ZodObject<{
2389
2462
  createdById: string | null;
2390
2463
  createdByName: string | null;
2391
2464
  fieldName?: string | null | undefined;
2465
+ workspace?: "farm:CROPS" | "farm:POULTRY" | "farm:AQUACULTURE" | "farm:CATTLE" | "farm:GOAT" | "farm:SHEEP" | "farm:HQ" | "org:TRADE" | null | undefined;
2392
2466
  groupId?: string | null | undefined;
2393
2467
  cropName?: string | null | undefined;
2394
2468
  groupName?: string | null | undefined;
@@ -2427,6 +2501,7 @@ export declare const expenseListResponseSchema: z.ZodObject<{
2427
2501
  createdById: string | null;
2428
2502
  createdByName: string | null;
2429
2503
  fieldName?: string | null | undefined;
2504
+ workspace?: "farm:CROPS" | "farm:POULTRY" | "farm:AQUACULTURE" | "farm:CATTLE" | "farm:GOAT" | "farm:SHEEP" | "farm:HQ" | "org:TRADE" | null | undefined;
2430
2505
  groupId?: string | null | undefined;
2431
2506
  cropName?: string | null | undefined;
2432
2507
  groupName?: string | null | undefined;
@@ -2471,6 +2546,7 @@ export declare const revenueResponseSchema: z.ZodObject<{
2471
2546
  ledgerSourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2472
2547
  createdById: z.ZodNullable<z.ZodString>;
2473
2548
  createdByName: z.ZodNullable<z.ZodString>;
2549
+ workspace: z.ZodOptional<z.ZodNullable<z.ZodEnum<["farm:CROPS", "farm:POULTRY", "farm:AQUACULTURE", "farm:CATTLE", "farm:GOAT", "farm:SHEEP", "farm:HQ", "org:TRADE"]>>>;
2474
2550
  } & {
2475
2551
  createdAt: z.ZodString;
2476
2552
  updatedAt: z.ZodString;
@@ -2489,6 +2565,7 @@ export declare const revenueResponseSchema: z.ZodObject<{
2489
2565
  buyer: string | null;
2490
2566
  harvestId: string | null;
2491
2567
  fieldName?: string | null | undefined;
2568
+ workspace?: "farm:CROPS" | "farm:POULTRY" | "farm:AQUACULTURE" | "farm:CATTLE" | "farm:GOAT" | "farm:SHEEP" | "farm:HQ" | "org:TRADE" | null | undefined;
2492
2569
  groupId?: string | null | undefined;
2493
2570
  groupName?: string | null | undefined;
2494
2571
  ledgerSourceType?: string | null | undefined;
@@ -2509,6 +2586,7 @@ export declare const revenueResponseSchema: z.ZodObject<{
2509
2586
  buyer: string | null;
2510
2587
  harvestId: string | null;
2511
2588
  fieldName?: string | null | undefined;
2589
+ workspace?: "farm:CROPS" | "farm:POULTRY" | "farm:AQUACULTURE" | "farm:CATTLE" | "farm:GOAT" | "farm:SHEEP" | "farm:HQ" | "org:TRADE" | null | undefined;
2512
2590
  groupId?: string | null | undefined;
2513
2591
  groupName?: string | null | undefined;
2514
2592
  ledgerSourceType?: string | null | undefined;
@@ -2536,6 +2614,7 @@ export declare const revenueResponseSchema: z.ZodObject<{
2536
2614
  buyer: string | null;
2537
2615
  harvestId: string | null;
2538
2616
  fieldName?: string | null | undefined;
2617
+ workspace?: "farm:CROPS" | "farm:POULTRY" | "farm:AQUACULTURE" | "farm:CATTLE" | "farm:GOAT" | "farm:SHEEP" | "farm:HQ" | "org:TRADE" | null | undefined;
2539
2618
  groupId?: string | null | undefined;
2540
2619
  groupName?: string | null | undefined;
2541
2620
  ledgerSourceType?: string | null | undefined;
@@ -2563,6 +2642,7 @@ export declare const revenueResponseSchema: z.ZodObject<{
2563
2642
  buyer: string | null;
2564
2643
  harvestId: string | null;
2565
2644
  fieldName?: string | null | undefined;
2645
+ workspace?: "farm:CROPS" | "farm:POULTRY" | "farm:AQUACULTURE" | "farm:CATTLE" | "farm:GOAT" | "farm:SHEEP" | "farm:HQ" | "org:TRADE" | null | undefined;
2566
2646
  groupId?: string | null | undefined;
2567
2647
  groupName?: string | null | undefined;
2568
2648
  ledgerSourceType?: string | null | undefined;
@@ -2616,6 +2696,7 @@ export declare const revenueResponseSchema: z.ZodObject<{
2616
2696
  buyer: string | null;
2617
2697
  harvestId: string | null;
2618
2698
  fieldName?: string | null | undefined;
2699
+ workspace?: "farm:CROPS" | "farm:POULTRY" | "farm:AQUACULTURE" | "farm:CATTLE" | "farm:GOAT" | "farm:SHEEP" | "farm:HQ" | "org:TRADE" | null | undefined;
2619
2700
  groupId?: string | null | undefined;
2620
2701
  groupName?: string | null | undefined;
2621
2702
  ledgerSourceType?: string | null | undefined;
@@ -2655,6 +2736,7 @@ export declare const revenueResponseSchema: z.ZodObject<{
2655
2736
  buyer: string | null;
2656
2737
  harvestId: string | null;
2657
2738
  fieldName?: string | null | undefined;
2739
+ workspace?: "farm:CROPS" | "farm:POULTRY" | "farm:AQUACULTURE" | "farm:CATTLE" | "farm:GOAT" | "farm:SHEEP" | "farm:HQ" | "org:TRADE" | null | undefined;
2658
2740
  groupId?: string | null | undefined;
2659
2741
  groupName?: string | null | undefined;
2660
2742
  ledgerSourceType?: string | null | undefined;
@@ -2698,6 +2780,7 @@ export declare const revenueDetailResponseSchema: z.ZodObject<{
2698
2780
  ledgerSourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2699
2781
  createdById: z.ZodNullable<z.ZodString>;
2700
2782
  createdByName: z.ZodNullable<z.ZodString>;
2783
+ workspace: z.ZodOptional<z.ZodNullable<z.ZodEnum<["farm:CROPS", "farm:POULTRY", "farm:AQUACULTURE", "farm:CATTLE", "farm:GOAT", "farm:SHEEP", "farm:HQ", "org:TRADE"]>>>;
2701
2784
  } & {
2702
2785
  createdAt: z.ZodString;
2703
2786
  updatedAt: z.ZodString;
@@ -2716,6 +2799,7 @@ export declare const revenueDetailResponseSchema: z.ZodObject<{
2716
2799
  buyer: string | null;
2717
2800
  harvestId: string | null;
2718
2801
  fieldName?: string | null | undefined;
2802
+ workspace?: "farm:CROPS" | "farm:POULTRY" | "farm:AQUACULTURE" | "farm:CATTLE" | "farm:GOAT" | "farm:SHEEP" | "farm:HQ" | "org:TRADE" | null | undefined;
2719
2803
  groupId?: string | null | undefined;
2720
2804
  groupName?: string | null | undefined;
2721
2805
  ledgerSourceType?: string | null | undefined;
@@ -2736,6 +2820,7 @@ export declare const revenueDetailResponseSchema: z.ZodObject<{
2736
2820
  buyer: string | null;
2737
2821
  harvestId: string | null;
2738
2822
  fieldName?: string | null | undefined;
2823
+ workspace?: "farm:CROPS" | "farm:POULTRY" | "farm:AQUACULTURE" | "farm:CATTLE" | "farm:GOAT" | "farm:SHEEP" | "farm:HQ" | "org:TRADE" | null | undefined;
2739
2824
  groupId?: string | null | undefined;
2740
2825
  groupName?: string | null | undefined;
2741
2826
  ledgerSourceType?: string | null | undefined;
@@ -2821,6 +2906,7 @@ export declare const revenueDetailResponseSchema: z.ZodObject<{
2821
2906
  buyer: string | null;
2822
2907
  harvestId: string | null;
2823
2908
  fieldName?: string | null | undefined;
2909
+ workspace?: "farm:CROPS" | "farm:POULTRY" | "farm:AQUACULTURE" | "farm:CATTLE" | "farm:GOAT" | "farm:SHEEP" | "farm:HQ" | "org:TRADE" | null | undefined;
2824
2910
  groupId?: string | null | undefined;
2825
2911
  groupName?: string | null | undefined;
2826
2912
  ledgerSourceType?: string | null | undefined;
@@ -2859,6 +2945,7 @@ export declare const revenueDetailResponseSchema: z.ZodObject<{
2859
2945
  buyer: string | null;
2860
2946
  harvestId: string | null;
2861
2947
  fieldName?: string | null | undefined;
2948
+ workspace?: "farm:CROPS" | "farm:POULTRY" | "farm:AQUACULTURE" | "farm:CATTLE" | "farm:GOAT" | "farm:SHEEP" | "farm:HQ" | "org:TRADE" | null | undefined;
2862
2949
  groupId?: string | null | undefined;
2863
2950
  groupName?: string | null | undefined;
2864
2951
  ledgerSourceType?: string | null | undefined;
@@ -2923,6 +3010,7 @@ export declare const revenueDetailResponseSchema: z.ZodObject<{
2923
3010
  buyer: string | null;
2924
3011
  harvestId: string | null;
2925
3012
  fieldName?: string | null | undefined;
3013
+ workspace?: "farm:CROPS" | "farm:POULTRY" | "farm:AQUACULTURE" | "farm:CATTLE" | "farm:GOAT" | "farm:SHEEP" | "farm:HQ" | "org:TRADE" | null | undefined;
2926
3014
  groupId?: string | null | undefined;
2927
3015
  groupName?: string | null | undefined;
2928
3016
  ledgerSourceType?: string | null | undefined;
@@ -2973,6 +3061,7 @@ export declare const revenueDetailResponseSchema: z.ZodObject<{
2973
3061
  buyer: string | null;
2974
3062
  harvestId: string | null;
2975
3063
  fieldName?: string | null | undefined;
3064
+ workspace?: "farm:CROPS" | "farm:POULTRY" | "farm:AQUACULTURE" | "farm:CATTLE" | "farm:GOAT" | "farm:SHEEP" | "farm:HQ" | "org:TRADE" | null | undefined;
2976
3065
  groupId?: string | null | undefined;
2977
3066
  groupName?: string | null | undefined;
2978
3067
  ledgerSourceType?: string | null | undefined;
@@ -3027,6 +3116,7 @@ export declare const revenueListResponseSchema: z.ZodObject<{
3027
3116
  ledgerSourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3028
3117
  createdById: z.ZodNullable<z.ZodString>;
3029
3118
  createdByName: z.ZodNullable<z.ZodString>;
3119
+ workspace: z.ZodOptional<z.ZodNullable<z.ZodEnum<["farm:CROPS", "farm:POULTRY", "farm:AQUACULTURE", "farm:CATTLE", "farm:GOAT", "farm:SHEEP", "farm:HQ", "org:TRADE"]>>>;
3030
3120
  } & {
3031
3121
  createdAt: z.ZodString;
3032
3122
  updatedAt: z.ZodString;
@@ -3045,6 +3135,7 @@ export declare const revenueListResponseSchema: z.ZodObject<{
3045
3135
  buyer: string | null;
3046
3136
  harvestId: string | null;
3047
3137
  fieldName?: string | null | undefined;
3138
+ workspace?: "farm:CROPS" | "farm:POULTRY" | "farm:AQUACULTURE" | "farm:CATTLE" | "farm:GOAT" | "farm:SHEEP" | "farm:HQ" | "org:TRADE" | null | undefined;
3048
3139
  groupId?: string | null | undefined;
3049
3140
  groupName?: string | null | undefined;
3050
3141
  ledgerSourceType?: string | null | undefined;
@@ -3065,6 +3156,7 @@ export declare const revenueListResponseSchema: z.ZodObject<{
3065
3156
  buyer: string | null;
3066
3157
  harvestId: string | null;
3067
3158
  fieldName?: string | null | undefined;
3159
+ workspace?: "farm:CROPS" | "farm:POULTRY" | "farm:AQUACULTURE" | "farm:CATTLE" | "farm:GOAT" | "farm:SHEEP" | "farm:HQ" | "org:TRADE" | null | undefined;
3068
3160
  groupId?: string | null | undefined;
3069
3161
  groupName?: string | null | undefined;
3070
3162
  ledgerSourceType?: string | null | undefined;
@@ -3092,6 +3184,7 @@ export declare const revenueListResponseSchema: z.ZodObject<{
3092
3184
  buyer: string | null;
3093
3185
  harvestId: string | null;
3094
3186
  fieldName?: string | null | undefined;
3187
+ workspace?: "farm:CROPS" | "farm:POULTRY" | "farm:AQUACULTURE" | "farm:CATTLE" | "farm:GOAT" | "farm:SHEEP" | "farm:HQ" | "org:TRADE" | null | undefined;
3095
3188
  groupId?: string | null | undefined;
3096
3189
  groupName?: string | null | undefined;
3097
3190
  ledgerSourceType?: string | null | undefined;
@@ -3119,6 +3212,7 @@ export declare const revenueListResponseSchema: z.ZodObject<{
3119
3212
  buyer: string | null;
3120
3213
  harvestId: string | null;
3121
3214
  fieldName?: string | null | undefined;
3215
+ workspace?: "farm:CROPS" | "farm:POULTRY" | "farm:AQUACULTURE" | "farm:CATTLE" | "farm:GOAT" | "farm:SHEEP" | "farm:HQ" | "org:TRADE" | null | undefined;
3122
3216
  groupId?: string | null | undefined;
3123
3217
  groupName?: string | null | undefined;
3124
3218
  ledgerSourceType?: string | null | undefined;
@@ -3172,6 +3266,7 @@ export declare const revenueListResponseSchema: z.ZodObject<{
3172
3266
  buyer: string | null;
3173
3267
  harvestId: string | null;
3174
3268
  fieldName?: string | null | undefined;
3269
+ workspace?: "farm:CROPS" | "farm:POULTRY" | "farm:AQUACULTURE" | "farm:CATTLE" | "farm:GOAT" | "farm:SHEEP" | "farm:HQ" | "org:TRADE" | null | undefined;
3175
3270
  groupId?: string | null | undefined;
3176
3271
  groupName?: string | null | undefined;
3177
3272
  ledgerSourceType?: string | null | undefined;
@@ -3211,6 +3306,7 @@ export declare const revenueListResponseSchema: z.ZodObject<{
3211
3306
  buyer: string | null;
3212
3307
  harvestId: string | null;
3213
3308
  fieldName?: string | null | undefined;
3309
+ workspace?: "farm:CROPS" | "farm:POULTRY" | "farm:AQUACULTURE" | "farm:CATTLE" | "farm:GOAT" | "farm:SHEEP" | "farm:HQ" | "org:TRADE" | null | undefined;
3214
3310
  groupId?: string | null | undefined;
3215
3311
  groupName?: string | null | undefined;
3216
3312
  ledgerSourceType?: string | null | undefined;