@deepintel-ltd/farmpro-contracts 1.0.1 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (100) hide show
  1. package/dist/index.d.ts +41 -0
  2. package/dist/index.d.ts.map +1 -0
  3. package/dist/index.js +81 -0
  4. package/dist/routes/analytics.routes.d.ts +754 -0
  5. package/dist/routes/analytics.routes.d.ts.map +1 -0
  6. package/dist/routes/analytics.routes.js +24 -0
  7. package/dist/routes/auth.routes.d.ts +3836 -0
  8. package/dist/routes/auth.routes.d.ts.map +1 -0
  9. package/dist/routes/auth.routes.js +158 -0
  10. package/dist/routes/documents.routes.d.ts +2476 -0
  11. package/dist/routes/documents.routes.d.ts.map +1 -0
  12. package/dist/routes/documents.routes.js +100 -0
  13. package/dist/routes/equipment.routes.d.ts +3617 -0
  14. package/dist/routes/equipment.routes.d.ts.map +1 -0
  15. package/dist/routes/equipment.routes.js +118 -0
  16. package/dist/routes/farms.routes.d.ts +2202 -0
  17. package/dist/routes/farms.routes.d.ts.map +1 -0
  18. package/dist/routes/farms.routes.js +111 -0
  19. package/dist/routes/fields.routes.d.ts +3389 -0
  20. package/dist/routes/fields.routes.d.ts.map +1 -0
  21. package/dist/routes/fields.routes.js +95 -0
  22. package/dist/routes/finance.routes.d.ts +6855 -0
  23. package/dist/routes/finance.routes.d.ts.map +1 -0
  24. package/dist/routes/finance.routes.js +259 -0
  25. package/dist/routes/harvest.routes.d.ts +2337 -0
  26. package/dist/routes/harvest.routes.d.ts.map +1 -0
  27. package/dist/routes/harvest.routes.js +99 -0
  28. package/dist/routes/index.d.ts +68 -0
  29. package/dist/routes/index.d.ts.map +1 -0
  30. package/dist/routes/index.js +43 -0
  31. package/dist/routes/inventory.routes.d.ts +2853 -0
  32. package/dist/routes/inventory.routes.d.ts.map +1 -0
  33. package/dist/routes/inventory.routes.js +121 -0
  34. package/dist/routes/soil-tests.routes.d.ts +3005 -0
  35. package/dist/routes/soil-tests.routes.d.ts.map +1 -0
  36. package/dist/routes/soil-tests.routes.js +98 -0
  37. package/dist/routes/suppliers.routes.d.ts +4190 -0
  38. package/dist/routes/suppliers.routes.d.ts.map +1 -0
  39. package/dist/routes/suppliers.routes.js +146 -0
  40. package/dist/routes/tasks.routes.d.ts +4192 -0
  41. package/dist/routes/tasks.routes.d.ts.map +1 -0
  42. package/dist/routes/tasks.routes.js +138 -0
  43. package/dist/routes/team.routes.d.ts +2210 -0
  44. package/dist/routes/team.routes.d.ts.map +1 -0
  45. package/dist/routes/team.routes.js +98 -0
  46. package/dist/routes/users.routes.d.ts +721 -0
  47. package/dist/routes/users.routes.d.ts.map +1 -0
  48. package/dist/routes/users.routes.js +35 -0
  49. package/dist/routes/weather.routes.d.ts +500 -0
  50. package/dist/routes/weather.routes.d.ts.map +1 -0
  51. package/dist/routes/weather.routes.js +23 -0
  52. package/dist/schemas/analytics.schemas.d.ts +1344 -0
  53. package/dist/schemas/analytics.schemas.d.ts.map +1 -0
  54. package/dist/schemas/analytics.schemas.js +73 -0
  55. package/dist/schemas/auth.schemas.d.ts +1093 -0
  56. package/dist/schemas/auth.schemas.d.ts.map +1 -0
  57. package/dist/schemas/auth.schemas.js +159 -0
  58. package/dist/schemas/common.schemas.d.ts +562 -0
  59. package/dist/schemas/common.schemas.d.ts.map +1 -0
  60. package/dist/schemas/common.schemas.js +122 -0
  61. package/dist/schemas/documents.schemas.d.ts +850 -0
  62. package/dist/schemas/documents.schemas.d.ts.map +1 -0
  63. package/dist/schemas/documents.schemas.js +75 -0
  64. package/dist/schemas/equipment.schemas.d.ts +1618 -0
  65. package/dist/schemas/equipment.schemas.d.ts.map +1 -0
  66. package/dist/schemas/equipment.schemas.js +125 -0
  67. package/dist/schemas/farms.schemas.d.ts +1171 -0
  68. package/dist/schemas/farms.schemas.d.ts.map +1 -0
  69. package/dist/schemas/farms.schemas.js +62 -0
  70. package/dist/schemas/fields.schemas.d.ts +2508 -0
  71. package/dist/schemas/fields.schemas.d.ts.map +1 -0
  72. package/dist/schemas/fields.schemas.js +125 -0
  73. package/dist/schemas/finance.schemas.d.ts +2869 -0
  74. package/dist/schemas/finance.schemas.d.ts.map +1 -0
  75. package/dist/schemas/finance.schemas.js +196 -0
  76. package/dist/schemas/harvest.schemas.d.ts +1051 -0
  77. package/dist/schemas/harvest.schemas.d.ts.map +1 -0
  78. package/dist/schemas/harvest.schemas.js +71 -0
  79. package/dist/schemas/inventory.schemas.d.ts +1138 -0
  80. package/dist/schemas/inventory.schemas.d.ts.map +1 -0
  81. package/dist/schemas/inventory.schemas.js +89 -0
  82. package/dist/schemas/soil-tests.schemas.d.ts +1885 -0
  83. package/dist/schemas/soil-tests.schemas.d.ts.map +1 -0
  84. package/dist/schemas/soil-tests.schemas.js +102 -0
  85. package/dist/schemas/suppliers.schemas.d.ts +1774 -0
  86. package/dist/schemas/suppliers.schemas.d.ts.map +1 -0
  87. package/dist/schemas/suppliers.schemas.js +121 -0
  88. package/dist/schemas/tasks.schemas.d.ts +1761 -0
  89. package/dist/schemas/tasks.schemas.d.ts.map +1 -0
  90. package/dist/schemas/tasks.schemas.js +121 -0
  91. package/dist/schemas/team.schemas.d.ts +583 -0
  92. package/dist/schemas/team.schemas.d.ts.map +1 -0
  93. package/dist/schemas/team.schemas.js +60 -0
  94. package/dist/schemas/users.schemas.d.ts +288 -0
  95. package/dist/schemas/users.schemas.d.ts.map +1 -0
  96. package/dist/schemas/users.schemas.js +32 -0
  97. package/dist/schemas/weather.schemas.d.ts +682 -0
  98. package/dist/schemas/weather.schemas.d.ts.map +1 -0
  99. package/dist/schemas/weather.schemas.js +49 -0
  100. package/package.json +1 -1
@@ -0,0 +1,2869 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * Finance schemas - JSON:API compliant
4
+ */
5
+ export declare const expenseAllocationTypeSchema: z.ZodEnum<["field", "crop", "general"]>;
6
+ export declare const budgetAttributesSchema: z.ZodObject<{
7
+ category: z.ZodString;
8
+ planned: z.ZodNumber;
9
+ actual: z.ZodOptional<z.ZodNumber>;
10
+ remaining: z.ZodOptional<z.ZodNumber>;
11
+ } & {
12
+ createdAt: z.ZodString;
13
+ updatedAt: z.ZodString;
14
+ }, "strip", z.ZodTypeAny, {
15
+ createdAt: string;
16
+ updatedAt: string;
17
+ category: string;
18
+ planned: number;
19
+ actual?: number | undefined;
20
+ remaining?: number | undefined;
21
+ }, {
22
+ createdAt: string;
23
+ updatedAt: string;
24
+ category: string;
25
+ planned: number;
26
+ actual?: number | undefined;
27
+ remaining?: number | undefined;
28
+ }>;
29
+ export declare const createBudgetAttributesSchema: z.ZodObject<{
30
+ category: z.ZodString;
31
+ planned: z.ZodNumber;
32
+ }, "strip", z.ZodTypeAny, {
33
+ category: string;
34
+ planned: number;
35
+ }, {
36
+ category: string;
37
+ planned: number;
38
+ }>;
39
+ export declare const updateBudgetAttributesSchema: z.ZodObject<{
40
+ category: z.ZodOptional<z.ZodString>;
41
+ planned: z.ZodOptional<z.ZodNumber>;
42
+ }, "strip", z.ZodTypeAny, {
43
+ category?: string | undefined;
44
+ planned?: number | undefined;
45
+ }, {
46
+ category?: string | undefined;
47
+ planned?: number | undefined;
48
+ }>;
49
+ export declare const expenseAttributesSchema: z.ZodObject<{
50
+ date: z.ZodString;
51
+ category: z.ZodString;
52
+ description: z.ZodString;
53
+ amount: z.ZodNumber;
54
+ allocationType: z.ZodEnum<["field", "crop", "general"]>;
55
+ fieldId: z.ZodNullable<z.ZodString>;
56
+ fieldName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
57
+ cropId: z.ZodNullable<z.ZodString>;
58
+ cropName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
59
+ } & {
60
+ createdAt: z.ZodString;
61
+ updatedAt: z.ZodString;
62
+ }, "strip", z.ZodTypeAny, {
63
+ date: string;
64
+ createdAt: string;
65
+ updatedAt: string;
66
+ description: string;
67
+ fieldId: string | null;
68
+ category: string;
69
+ cropId: string | null;
70
+ amount: number;
71
+ allocationType: "crop" | "field" | "general";
72
+ fieldName?: string | null | undefined;
73
+ cropName?: string | null | undefined;
74
+ }, {
75
+ date: string;
76
+ createdAt: string;
77
+ updatedAt: string;
78
+ description: string;
79
+ fieldId: string | null;
80
+ category: string;
81
+ cropId: string | null;
82
+ amount: number;
83
+ allocationType: "crop" | "field" | "general";
84
+ fieldName?: string | null | undefined;
85
+ cropName?: string | null | undefined;
86
+ }>;
87
+ export declare const createExpenseAttributesSchema: z.ZodEffects<z.ZodObject<{
88
+ date: z.ZodString;
89
+ category: z.ZodString;
90
+ description: z.ZodString;
91
+ amount: z.ZodNumber;
92
+ allocationType: z.ZodDefault<z.ZodEnum<["field", "crop", "general"]>>;
93
+ fieldId: z.ZodOptional<z.ZodString>;
94
+ cropId: z.ZodOptional<z.ZodString>;
95
+ }, "strip", z.ZodTypeAny, {
96
+ date: string;
97
+ description: string;
98
+ category: string;
99
+ amount: number;
100
+ allocationType: "crop" | "field" | "general";
101
+ fieldId?: string | undefined;
102
+ cropId?: string | undefined;
103
+ }, {
104
+ date: string;
105
+ description: string;
106
+ category: string;
107
+ amount: number;
108
+ fieldId?: string | undefined;
109
+ cropId?: string | undefined;
110
+ allocationType?: "crop" | "field" | "general" | undefined;
111
+ }>, {
112
+ date: string;
113
+ description: string;
114
+ category: string;
115
+ amount: number;
116
+ allocationType: "crop" | "field" | "general";
117
+ fieldId?: string | undefined;
118
+ cropId?: string | undefined;
119
+ }, {
120
+ date: string;
121
+ description: string;
122
+ category: string;
123
+ amount: number;
124
+ fieldId?: string | undefined;
125
+ cropId?: string | undefined;
126
+ allocationType?: "crop" | "field" | "general" | undefined;
127
+ }>;
128
+ export declare const updateExpenseAttributesSchema: z.ZodObject<{
129
+ date: z.ZodOptional<z.ZodString>;
130
+ category: z.ZodOptional<z.ZodString>;
131
+ description: z.ZodOptional<z.ZodString>;
132
+ amount: z.ZodOptional<z.ZodNumber>;
133
+ allocationType: z.ZodOptional<z.ZodEnum<["field", "crop", "general"]>>;
134
+ fieldId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
135
+ cropId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
136
+ }, "strip", z.ZodTypeAny, {
137
+ date?: string | undefined;
138
+ description?: string | undefined;
139
+ fieldId?: string | null | undefined;
140
+ category?: string | undefined;
141
+ cropId?: string | null | undefined;
142
+ amount?: number | undefined;
143
+ allocationType?: "crop" | "field" | "general" | undefined;
144
+ }, {
145
+ date?: string | undefined;
146
+ description?: string | undefined;
147
+ fieldId?: string | null | undefined;
148
+ category?: string | undefined;
149
+ cropId?: string | null | undefined;
150
+ amount?: number | undefined;
151
+ allocationType?: "crop" | "field" | "general" | undefined;
152
+ }>;
153
+ export declare const revenueAttributesSchema: z.ZodObject<{
154
+ date: z.ZodString;
155
+ crop: z.ZodString;
156
+ quantity: z.ZodNumber;
157
+ unit: z.ZodString;
158
+ pricePerUnit: z.ZodNumber;
159
+ totalAmount: z.ZodNumber;
160
+ buyer: z.ZodNullable<z.ZodString>;
161
+ fieldId: z.ZodNullable<z.ZodString>;
162
+ fieldName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
163
+ harvestId: z.ZodNullable<z.ZodString>;
164
+ } & {
165
+ createdAt: z.ZodString;
166
+ updatedAt: z.ZodString;
167
+ }, "strip", z.ZodTypeAny, {
168
+ date: string;
169
+ createdAt: string;
170
+ updatedAt: string;
171
+ crop: string;
172
+ fieldId: string | null;
173
+ unit: string;
174
+ quantity: number;
175
+ pricePerUnit: number;
176
+ totalAmount: number;
177
+ buyer: string | null;
178
+ harvestId: string | null;
179
+ fieldName?: string | null | undefined;
180
+ }, {
181
+ date: string;
182
+ createdAt: string;
183
+ updatedAt: string;
184
+ crop: string;
185
+ fieldId: string | null;
186
+ unit: string;
187
+ quantity: number;
188
+ pricePerUnit: number;
189
+ totalAmount: number;
190
+ buyer: string | null;
191
+ harvestId: string | null;
192
+ fieldName?: string | null | undefined;
193
+ }>;
194
+ export declare const createRevenueAttributesSchema: z.ZodObject<{
195
+ date: z.ZodString;
196
+ crop: z.ZodString;
197
+ quantity: z.ZodNumber;
198
+ unit: z.ZodString;
199
+ pricePerUnit: z.ZodNumber;
200
+ totalAmount: z.ZodOptional<z.ZodNumber>;
201
+ buyer: z.ZodOptional<z.ZodString>;
202
+ fieldId: z.ZodOptional<z.ZodString>;
203
+ harvestId: z.ZodOptional<z.ZodString>;
204
+ }, "strip", z.ZodTypeAny, {
205
+ date: string;
206
+ crop: string;
207
+ unit: string;
208
+ quantity: number;
209
+ pricePerUnit: number;
210
+ fieldId?: string | undefined;
211
+ totalAmount?: number | undefined;
212
+ buyer?: string | undefined;
213
+ harvestId?: string | undefined;
214
+ }, {
215
+ date: string;
216
+ crop: string;
217
+ unit: string;
218
+ quantity: number;
219
+ pricePerUnit: number;
220
+ fieldId?: string | undefined;
221
+ totalAmount?: number | undefined;
222
+ buyer?: string | undefined;
223
+ harvestId?: string | undefined;
224
+ }>;
225
+ export declare const updateRevenueAttributesSchema: z.ZodObject<{
226
+ date: z.ZodOptional<z.ZodString>;
227
+ crop: z.ZodOptional<z.ZodString>;
228
+ quantity: z.ZodOptional<z.ZodNumber>;
229
+ unit: z.ZodOptional<z.ZodString>;
230
+ pricePerUnit: z.ZodOptional<z.ZodNumber>;
231
+ totalAmount: z.ZodOptional<z.ZodNumber>;
232
+ buyer: z.ZodOptional<z.ZodNullable<z.ZodString>>;
233
+ fieldId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
234
+ harvestId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
235
+ }, "strip", z.ZodTypeAny, {
236
+ date?: string | undefined;
237
+ crop?: string | undefined;
238
+ fieldId?: string | null | undefined;
239
+ unit?: string | undefined;
240
+ quantity?: number | undefined;
241
+ pricePerUnit?: number | undefined;
242
+ totalAmount?: number | undefined;
243
+ buyer?: string | null | undefined;
244
+ harvestId?: string | null | undefined;
245
+ }, {
246
+ date?: string | undefined;
247
+ crop?: string | undefined;
248
+ fieldId?: string | null | undefined;
249
+ unit?: string | undefined;
250
+ quantity?: number | undefined;
251
+ pricePerUnit?: number | undefined;
252
+ totalAmount?: number | undefined;
253
+ buyer?: string | null | undefined;
254
+ harvestId?: string | null | undefined;
255
+ }>;
256
+ export declare const createBudgetSchema: z.ZodObject<{
257
+ type: z.ZodLiteral<"budgets">;
258
+ attributes: z.ZodObject<{
259
+ category: z.ZodString;
260
+ planned: z.ZodNumber;
261
+ }, "strip", z.ZodTypeAny, {
262
+ category: string;
263
+ planned: number;
264
+ }, {
265
+ category: string;
266
+ planned: number;
267
+ }>;
268
+ }, "strip", z.ZodTypeAny, {
269
+ type: "budgets";
270
+ attributes: {
271
+ category: string;
272
+ planned: number;
273
+ };
274
+ }, {
275
+ type: "budgets";
276
+ attributes: {
277
+ category: string;
278
+ planned: number;
279
+ };
280
+ }>;
281
+ export declare const updateBudgetSchema: z.ZodObject<{
282
+ type: z.ZodLiteral<"budgets">;
283
+ id: z.ZodString;
284
+ attributes: z.ZodObject<{
285
+ category: z.ZodOptional<z.ZodString>;
286
+ planned: z.ZodOptional<z.ZodNumber>;
287
+ }, "strip", z.ZodTypeAny, {
288
+ category?: string | undefined;
289
+ planned?: number | undefined;
290
+ }, {
291
+ category?: string | undefined;
292
+ planned?: number | undefined;
293
+ }>;
294
+ }, "strip", z.ZodTypeAny, {
295
+ type: "budgets";
296
+ id: string;
297
+ attributes: {
298
+ category?: string | undefined;
299
+ planned?: number | undefined;
300
+ };
301
+ }, {
302
+ type: "budgets";
303
+ id: string;
304
+ attributes: {
305
+ category?: string | undefined;
306
+ planned?: number | undefined;
307
+ };
308
+ }>;
309
+ export declare const createExpenseSchema: z.ZodObject<{
310
+ type: z.ZodLiteral<"expenses">;
311
+ attributes: z.ZodEffects<z.ZodObject<{
312
+ date: z.ZodString;
313
+ category: z.ZodString;
314
+ description: z.ZodString;
315
+ amount: z.ZodNumber;
316
+ allocationType: z.ZodDefault<z.ZodEnum<["field", "crop", "general"]>>;
317
+ fieldId: z.ZodOptional<z.ZodString>;
318
+ cropId: z.ZodOptional<z.ZodString>;
319
+ }, "strip", z.ZodTypeAny, {
320
+ date: string;
321
+ description: string;
322
+ category: string;
323
+ amount: number;
324
+ allocationType: "crop" | "field" | "general";
325
+ fieldId?: string | undefined;
326
+ cropId?: string | undefined;
327
+ }, {
328
+ date: string;
329
+ description: string;
330
+ category: string;
331
+ amount: number;
332
+ fieldId?: string | undefined;
333
+ cropId?: string | undefined;
334
+ allocationType?: "crop" | "field" | "general" | undefined;
335
+ }>, {
336
+ date: string;
337
+ description: string;
338
+ category: string;
339
+ amount: number;
340
+ allocationType: "crop" | "field" | "general";
341
+ fieldId?: string | undefined;
342
+ cropId?: string | undefined;
343
+ }, {
344
+ date: string;
345
+ description: string;
346
+ category: string;
347
+ amount: number;
348
+ fieldId?: string | undefined;
349
+ cropId?: string | undefined;
350
+ allocationType?: "crop" | "field" | "general" | undefined;
351
+ }>;
352
+ }, "strip", z.ZodTypeAny, {
353
+ type: "expenses";
354
+ attributes: {
355
+ date: string;
356
+ description: string;
357
+ category: string;
358
+ amount: number;
359
+ allocationType: "crop" | "field" | "general";
360
+ fieldId?: string | undefined;
361
+ cropId?: string | undefined;
362
+ };
363
+ }, {
364
+ type: "expenses";
365
+ attributes: {
366
+ date: string;
367
+ description: string;
368
+ category: string;
369
+ amount: number;
370
+ fieldId?: string | undefined;
371
+ cropId?: string | undefined;
372
+ allocationType?: "crop" | "field" | "general" | undefined;
373
+ };
374
+ }>;
375
+ export declare const updateExpenseSchema: z.ZodObject<{
376
+ type: z.ZodLiteral<"expenses">;
377
+ id: z.ZodString;
378
+ attributes: z.ZodObject<{
379
+ date: z.ZodOptional<z.ZodString>;
380
+ category: z.ZodOptional<z.ZodString>;
381
+ description: z.ZodOptional<z.ZodString>;
382
+ amount: z.ZodOptional<z.ZodNumber>;
383
+ allocationType: z.ZodOptional<z.ZodEnum<["field", "crop", "general"]>>;
384
+ fieldId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
385
+ cropId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
386
+ }, "strip", z.ZodTypeAny, {
387
+ date?: string | undefined;
388
+ description?: string | undefined;
389
+ fieldId?: string | null | undefined;
390
+ category?: string | undefined;
391
+ cropId?: string | null | undefined;
392
+ amount?: number | undefined;
393
+ allocationType?: "crop" | "field" | "general" | undefined;
394
+ }, {
395
+ date?: string | undefined;
396
+ description?: string | undefined;
397
+ fieldId?: string | null | undefined;
398
+ category?: string | undefined;
399
+ cropId?: string | null | undefined;
400
+ amount?: number | undefined;
401
+ allocationType?: "crop" | "field" | "general" | undefined;
402
+ }>;
403
+ }, "strip", z.ZodTypeAny, {
404
+ type: "expenses";
405
+ id: string;
406
+ attributes: {
407
+ date?: string | undefined;
408
+ description?: string | undefined;
409
+ fieldId?: string | null | undefined;
410
+ category?: string | undefined;
411
+ cropId?: string | null | undefined;
412
+ amount?: number | undefined;
413
+ allocationType?: "crop" | "field" | "general" | undefined;
414
+ };
415
+ }, {
416
+ type: "expenses";
417
+ id: string;
418
+ attributes: {
419
+ date?: string | undefined;
420
+ description?: string | undefined;
421
+ fieldId?: string | null | undefined;
422
+ category?: string | undefined;
423
+ cropId?: string | null | undefined;
424
+ amount?: number | undefined;
425
+ allocationType?: "crop" | "field" | "general" | undefined;
426
+ };
427
+ }>;
428
+ export declare const createRevenueSchema: z.ZodObject<{
429
+ type: z.ZodLiteral<"revenues">;
430
+ attributes: z.ZodObject<{
431
+ date: z.ZodString;
432
+ crop: z.ZodString;
433
+ quantity: z.ZodNumber;
434
+ unit: z.ZodString;
435
+ pricePerUnit: z.ZodNumber;
436
+ totalAmount: z.ZodOptional<z.ZodNumber>;
437
+ buyer: z.ZodOptional<z.ZodString>;
438
+ fieldId: z.ZodOptional<z.ZodString>;
439
+ harvestId: z.ZodOptional<z.ZodString>;
440
+ }, "strip", z.ZodTypeAny, {
441
+ date: string;
442
+ crop: string;
443
+ unit: string;
444
+ quantity: number;
445
+ pricePerUnit: number;
446
+ fieldId?: string | undefined;
447
+ totalAmount?: number | undefined;
448
+ buyer?: string | undefined;
449
+ harvestId?: string | undefined;
450
+ }, {
451
+ date: string;
452
+ crop: string;
453
+ unit: string;
454
+ quantity: number;
455
+ pricePerUnit: number;
456
+ fieldId?: string | undefined;
457
+ totalAmount?: number | undefined;
458
+ buyer?: string | undefined;
459
+ harvestId?: string | undefined;
460
+ }>;
461
+ }, "strip", z.ZodTypeAny, {
462
+ type: "revenues";
463
+ attributes: {
464
+ date: string;
465
+ crop: string;
466
+ unit: string;
467
+ quantity: number;
468
+ pricePerUnit: number;
469
+ fieldId?: string | undefined;
470
+ totalAmount?: number | undefined;
471
+ buyer?: string | undefined;
472
+ harvestId?: string | undefined;
473
+ };
474
+ }, {
475
+ type: "revenues";
476
+ attributes: {
477
+ date: string;
478
+ crop: string;
479
+ unit: string;
480
+ quantity: number;
481
+ pricePerUnit: number;
482
+ fieldId?: string | undefined;
483
+ totalAmount?: number | undefined;
484
+ buyer?: string | undefined;
485
+ harvestId?: string | undefined;
486
+ };
487
+ }>;
488
+ export declare const updateRevenueSchema: z.ZodObject<{
489
+ type: z.ZodLiteral<"revenues">;
490
+ id: z.ZodString;
491
+ attributes: z.ZodObject<{
492
+ date: z.ZodOptional<z.ZodString>;
493
+ crop: z.ZodOptional<z.ZodString>;
494
+ quantity: z.ZodOptional<z.ZodNumber>;
495
+ unit: z.ZodOptional<z.ZodString>;
496
+ pricePerUnit: z.ZodOptional<z.ZodNumber>;
497
+ totalAmount: z.ZodOptional<z.ZodNumber>;
498
+ buyer: z.ZodOptional<z.ZodNullable<z.ZodString>>;
499
+ fieldId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
500
+ harvestId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
501
+ }, "strip", z.ZodTypeAny, {
502
+ date?: string | undefined;
503
+ crop?: string | undefined;
504
+ fieldId?: string | null | undefined;
505
+ unit?: string | undefined;
506
+ quantity?: number | undefined;
507
+ pricePerUnit?: number | undefined;
508
+ totalAmount?: number | undefined;
509
+ buyer?: string | null | undefined;
510
+ harvestId?: string | null | undefined;
511
+ }, {
512
+ date?: string | undefined;
513
+ crop?: string | undefined;
514
+ fieldId?: string | null | undefined;
515
+ unit?: string | undefined;
516
+ quantity?: number | undefined;
517
+ pricePerUnit?: number | undefined;
518
+ totalAmount?: number | undefined;
519
+ buyer?: string | null | undefined;
520
+ harvestId?: string | null | undefined;
521
+ }>;
522
+ }, "strip", z.ZodTypeAny, {
523
+ type: "revenues";
524
+ id: string;
525
+ attributes: {
526
+ date?: string | undefined;
527
+ crop?: string | undefined;
528
+ fieldId?: string | null | undefined;
529
+ unit?: string | undefined;
530
+ quantity?: number | undefined;
531
+ pricePerUnit?: number | undefined;
532
+ totalAmount?: number | undefined;
533
+ buyer?: string | null | undefined;
534
+ harvestId?: string | null | undefined;
535
+ };
536
+ }, {
537
+ type: "revenues";
538
+ id: string;
539
+ attributes: {
540
+ date?: string | undefined;
541
+ crop?: string | undefined;
542
+ fieldId?: string | null | undefined;
543
+ unit?: string | undefined;
544
+ quantity?: number | undefined;
545
+ pricePerUnit?: number | undefined;
546
+ totalAmount?: number | undefined;
547
+ buyer?: string | null | undefined;
548
+ harvestId?: string | null | undefined;
549
+ };
550
+ }>;
551
+ export declare const budgetResourceSchema: z.ZodObject<{
552
+ type: z.ZodLiteral<string>;
553
+ id: z.ZodString;
554
+ attributes: z.ZodObject<{
555
+ category: z.ZodString;
556
+ planned: z.ZodNumber;
557
+ actual: z.ZodOptional<z.ZodNumber>;
558
+ remaining: z.ZodOptional<z.ZodNumber>;
559
+ } & {
560
+ createdAt: z.ZodString;
561
+ updatedAt: z.ZodString;
562
+ }, "strip", z.ZodTypeAny, {
563
+ createdAt: string;
564
+ updatedAt: string;
565
+ category: string;
566
+ planned: number;
567
+ actual?: number | undefined;
568
+ remaining?: number | undefined;
569
+ }, {
570
+ createdAt: string;
571
+ updatedAt: string;
572
+ category: string;
573
+ planned: number;
574
+ actual?: number | undefined;
575
+ remaining?: number | undefined;
576
+ }>;
577
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
578
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
579
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
580
+ }, "strip", z.ZodTypeAny, {
581
+ type: string;
582
+ id: string;
583
+ attributes: {
584
+ createdAt: string;
585
+ updatedAt: string;
586
+ category: string;
587
+ planned: number;
588
+ actual?: number | undefined;
589
+ remaining?: number | undefined;
590
+ };
591
+ relationships?: Record<string, unknown> | undefined;
592
+ links?: Record<string, string> | undefined;
593
+ meta?: Record<string, unknown> | undefined;
594
+ }, {
595
+ type: string;
596
+ id: string;
597
+ attributes: {
598
+ createdAt: string;
599
+ updatedAt: string;
600
+ category: string;
601
+ planned: number;
602
+ actual?: number | undefined;
603
+ remaining?: number | undefined;
604
+ };
605
+ relationships?: Record<string, unknown> | undefined;
606
+ links?: Record<string, string> | undefined;
607
+ meta?: Record<string, unknown> | undefined;
608
+ }>;
609
+ export declare const expenseResourceSchema: z.ZodObject<{
610
+ type: z.ZodLiteral<string>;
611
+ id: z.ZodString;
612
+ attributes: z.ZodObject<{
613
+ date: z.ZodString;
614
+ category: z.ZodString;
615
+ description: z.ZodString;
616
+ amount: z.ZodNumber;
617
+ allocationType: z.ZodEnum<["field", "crop", "general"]>;
618
+ fieldId: z.ZodNullable<z.ZodString>;
619
+ fieldName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
620
+ cropId: z.ZodNullable<z.ZodString>;
621
+ cropName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
622
+ } & {
623
+ createdAt: z.ZodString;
624
+ updatedAt: z.ZodString;
625
+ }, "strip", z.ZodTypeAny, {
626
+ date: string;
627
+ createdAt: string;
628
+ updatedAt: string;
629
+ description: string;
630
+ fieldId: string | null;
631
+ category: string;
632
+ cropId: string | null;
633
+ amount: number;
634
+ allocationType: "crop" | "field" | "general";
635
+ fieldName?: string | null | undefined;
636
+ cropName?: string | null | undefined;
637
+ }, {
638
+ date: string;
639
+ createdAt: string;
640
+ updatedAt: string;
641
+ description: string;
642
+ fieldId: string | null;
643
+ category: string;
644
+ cropId: string | null;
645
+ amount: number;
646
+ allocationType: "crop" | "field" | "general";
647
+ fieldName?: string | null | undefined;
648
+ cropName?: string | null | undefined;
649
+ }>;
650
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
651
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
652
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
653
+ }, "strip", z.ZodTypeAny, {
654
+ type: string;
655
+ id: string;
656
+ attributes: {
657
+ date: string;
658
+ createdAt: string;
659
+ updatedAt: string;
660
+ description: string;
661
+ fieldId: string | null;
662
+ category: string;
663
+ cropId: string | null;
664
+ amount: number;
665
+ allocationType: "crop" | "field" | "general";
666
+ fieldName?: string | null | undefined;
667
+ cropName?: string | null | undefined;
668
+ };
669
+ relationships?: Record<string, unknown> | undefined;
670
+ links?: Record<string, string> | undefined;
671
+ meta?: Record<string, unknown> | undefined;
672
+ }, {
673
+ type: string;
674
+ id: string;
675
+ attributes: {
676
+ date: string;
677
+ createdAt: string;
678
+ updatedAt: string;
679
+ description: string;
680
+ fieldId: string | null;
681
+ category: string;
682
+ cropId: string | null;
683
+ amount: number;
684
+ allocationType: "crop" | "field" | "general";
685
+ fieldName?: string | null | undefined;
686
+ cropName?: string | null | undefined;
687
+ };
688
+ relationships?: Record<string, unknown> | undefined;
689
+ links?: Record<string, string> | undefined;
690
+ meta?: Record<string, unknown> | undefined;
691
+ }>;
692
+ export declare const revenueResourceSchema: z.ZodObject<{
693
+ type: z.ZodLiteral<string>;
694
+ id: z.ZodString;
695
+ attributes: z.ZodObject<{
696
+ date: z.ZodString;
697
+ crop: z.ZodString;
698
+ quantity: z.ZodNumber;
699
+ unit: z.ZodString;
700
+ pricePerUnit: z.ZodNumber;
701
+ totalAmount: z.ZodNumber;
702
+ buyer: z.ZodNullable<z.ZodString>;
703
+ fieldId: z.ZodNullable<z.ZodString>;
704
+ fieldName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
705
+ harvestId: z.ZodNullable<z.ZodString>;
706
+ } & {
707
+ createdAt: z.ZodString;
708
+ updatedAt: z.ZodString;
709
+ }, "strip", z.ZodTypeAny, {
710
+ date: string;
711
+ createdAt: string;
712
+ updatedAt: string;
713
+ crop: string;
714
+ fieldId: string | null;
715
+ unit: string;
716
+ quantity: number;
717
+ pricePerUnit: number;
718
+ totalAmount: number;
719
+ buyer: string | null;
720
+ harvestId: string | null;
721
+ fieldName?: string | null | undefined;
722
+ }, {
723
+ date: string;
724
+ createdAt: string;
725
+ updatedAt: string;
726
+ crop: string;
727
+ fieldId: string | null;
728
+ unit: string;
729
+ quantity: number;
730
+ pricePerUnit: number;
731
+ totalAmount: number;
732
+ buyer: string | null;
733
+ harvestId: string | null;
734
+ fieldName?: string | null | undefined;
735
+ }>;
736
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
737
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
738
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
739
+ }, "strip", z.ZodTypeAny, {
740
+ type: string;
741
+ id: string;
742
+ attributes: {
743
+ date: string;
744
+ createdAt: string;
745
+ updatedAt: string;
746
+ crop: string;
747
+ fieldId: string | null;
748
+ unit: string;
749
+ quantity: number;
750
+ pricePerUnit: number;
751
+ totalAmount: number;
752
+ buyer: string | null;
753
+ harvestId: string | null;
754
+ fieldName?: string | null | undefined;
755
+ };
756
+ relationships?: Record<string, unknown> | undefined;
757
+ links?: Record<string, string> | undefined;
758
+ meta?: Record<string, unknown> | undefined;
759
+ }, {
760
+ type: string;
761
+ id: string;
762
+ attributes: {
763
+ date: string;
764
+ createdAt: string;
765
+ updatedAt: string;
766
+ crop: string;
767
+ fieldId: string | null;
768
+ unit: string;
769
+ quantity: number;
770
+ pricePerUnit: number;
771
+ totalAmount: number;
772
+ buyer: string | null;
773
+ harvestId: string | null;
774
+ fieldName?: string | null | undefined;
775
+ };
776
+ relationships?: Record<string, unknown> | undefined;
777
+ links?: Record<string, string> | undefined;
778
+ meta?: Record<string, unknown> | undefined;
779
+ }>;
780
+ export declare const expenseDetailResourceSchema: z.ZodObject<{
781
+ type: z.ZodLiteral<string>;
782
+ id: z.ZodString;
783
+ attributes: z.ZodObject<{
784
+ date: z.ZodString;
785
+ category: z.ZodString;
786
+ description: z.ZodString;
787
+ amount: z.ZodNumber;
788
+ allocationType: z.ZodEnum<["field", "crop", "general"]>;
789
+ fieldId: z.ZodNullable<z.ZodString>;
790
+ fieldName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
791
+ cropId: z.ZodNullable<z.ZodString>;
792
+ cropName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
793
+ } & {
794
+ createdAt: z.ZodString;
795
+ updatedAt: z.ZodString;
796
+ }, "strip", z.ZodTypeAny, {
797
+ date: string;
798
+ createdAt: string;
799
+ updatedAt: string;
800
+ description: string;
801
+ fieldId: string | null;
802
+ category: string;
803
+ cropId: string | null;
804
+ amount: number;
805
+ allocationType: "crop" | "field" | "general";
806
+ fieldName?: string | null | undefined;
807
+ cropName?: string | null | undefined;
808
+ }, {
809
+ date: string;
810
+ createdAt: string;
811
+ updatedAt: string;
812
+ description: string;
813
+ fieldId: string | null;
814
+ category: string;
815
+ cropId: string | null;
816
+ amount: number;
817
+ allocationType: "crop" | "field" | "general";
818
+ fieldName?: string | null | undefined;
819
+ cropName?: string | null | undefined;
820
+ }>;
821
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
822
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
823
+ } & {
824
+ relationships: z.ZodOptional<z.ZodObject<{
825
+ field: z.ZodOptional<z.ZodObject<{
826
+ links: z.ZodObject<{
827
+ related: z.ZodString;
828
+ }, "strip", z.ZodTypeAny, {
829
+ related: string;
830
+ }, {
831
+ related: string;
832
+ }>;
833
+ }, "strip", z.ZodTypeAny, {
834
+ links: {
835
+ related: string;
836
+ };
837
+ }, {
838
+ links: {
839
+ related: string;
840
+ };
841
+ }>>;
842
+ }, "strip", z.ZodTypeAny, {
843
+ field?: {
844
+ links: {
845
+ related: string;
846
+ };
847
+ } | undefined;
848
+ }, {
849
+ field?: {
850
+ links: {
851
+ related: string;
852
+ };
853
+ } | undefined;
854
+ }>>;
855
+ }, "strip", z.ZodTypeAny, {
856
+ type: string;
857
+ id: string;
858
+ attributes: {
859
+ date: string;
860
+ createdAt: string;
861
+ updatedAt: string;
862
+ description: string;
863
+ fieldId: string | null;
864
+ category: string;
865
+ cropId: string | null;
866
+ amount: number;
867
+ allocationType: "crop" | "field" | "general";
868
+ fieldName?: string | null | undefined;
869
+ cropName?: string | null | undefined;
870
+ };
871
+ relationships?: {
872
+ field?: {
873
+ links: {
874
+ related: string;
875
+ };
876
+ } | undefined;
877
+ } | undefined;
878
+ links?: Record<string, string> | undefined;
879
+ meta?: Record<string, unknown> | undefined;
880
+ }, {
881
+ type: string;
882
+ id: string;
883
+ attributes: {
884
+ date: string;
885
+ createdAt: string;
886
+ updatedAt: string;
887
+ description: string;
888
+ fieldId: string | null;
889
+ category: string;
890
+ cropId: string | null;
891
+ amount: number;
892
+ allocationType: "crop" | "field" | "general";
893
+ fieldName?: string | null | undefined;
894
+ cropName?: string | null | undefined;
895
+ };
896
+ relationships?: {
897
+ field?: {
898
+ links: {
899
+ related: string;
900
+ };
901
+ } | undefined;
902
+ } | undefined;
903
+ links?: Record<string, string> | undefined;
904
+ meta?: Record<string, unknown> | undefined;
905
+ }>;
906
+ export declare const revenueDetailResourceSchema: z.ZodObject<{
907
+ type: z.ZodLiteral<string>;
908
+ id: z.ZodString;
909
+ attributes: z.ZodObject<{
910
+ date: z.ZodString;
911
+ crop: z.ZodString;
912
+ quantity: z.ZodNumber;
913
+ unit: z.ZodString;
914
+ pricePerUnit: z.ZodNumber;
915
+ totalAmount: z.ZodNumber;
916
+ buyer: z.ZodNullable<z.ZodString>;
917
+ fieldId: z.ZodNullable<z.ZodString>;
918
+ fieldName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
919
+ harvestId: z.ZodNullable<z.ZodString>;
920
+ } & {
921
+ createdAt: z.ZodString;
922
+ updatedAt: z.ZodString;
923
+ }, "strip", z.ZodTypeAny, {
924
+ date: string;
925
+ createdAt: string;
926
+ updatedAt: string;
927
+ crop: string;
928
+ fieldId: string | null;
929
+ unit: string;
930
+ quantity: number;
931
+ pricePerUnit: number;
932
+ totalAmount: number;
933
+ buyer: string | null;
934
+ harvestId: string | null;
935
+ fieldName?: string | null | undefined;
936
+ }, {
937
+ date: string;
938
+ createdAt: string;
939
+ updatedAt: string;
940
+ crop: string;
941
+ fieldId: string | null;
942
+ unit: string;
943
+ quantity: number;
944
+ pricePerUnit: number;
945
+ totalAmount: number;
946
+ buyer: string | null;
947
+ harvestId: string | null;
948
+ fieldName?: string | null | undefined;
949
+ }>;
950
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
951
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
952
+ } & {
953
+ relationships: z.ZodOptional<z.ZodObject<{
954
+ field: z.ZodOptional<z.ZodObject<{
955
+ links: z.ZodObject<{
956
+ related: z.ZodString;
957
+ }, "strip", z.ZodTypeAny, {
958
+ related: string;
959
+ }, {
960
+ related: string;
961
+ }>;
962
+ }, "strip", z.ZodTypeAny, {
963
+ links: {
964
+ related: string;
965
+ };
966
+ }, {
967
+ links: {
968
+ related: string;
969
+ };
970
+ }>>;
971
+ harvest: z.ZodOptional<z.ZodObject<{
972
+ links: z.ZodObject<{
973
+ related: z.ZodString;
974
+ }, "strip", z.ZodTypeAny, {
975
+ related: string;
976
+ }, {
977
+ related: string;
978
+ }>;
979
+ }, "strip", z.ZodTypeAny, {
980
+ links: {
981
+ related: string;
982
+ };
983
+ }, {
984
+ links: {
985
+ related: string;
986
+ };
987
+ }>>;
988
+ }, "strip", z.ZodTypeAny, {
989
+ field?: {
990
+ links: {
991
+ related: string;
992
+ };
993
+ } | undefined;
994
+ harvest?: {
995
+ links: {
996
+ related: string;
997
+ };
998
+ } | undefined;
999
+ }, {
1000
+ field?: {
1001
+ links: {
1002
+ related: string;
1003
+ };
1004
+ } | undefined;
1005
+ harvest?: {
1006
+ links: {
1007
+ related: string;
1008
+ };
1009
+ } | undefined;
1010
+ }>>;
1011
+ }, "strip", z.ZodTypeAny, {
1012
+ type: string;
1013
+ id: string;
1014
+ attributes: {
1015
+ date: string;
1016
+ createdAt: string;
1017
+ updatedAt: string;
1018
+ crop: string;
1019
+ fieldId: string | null;
1020
+ unit: string;
1021
+ quantity: number;
1022
+ pricePerUnit: number;
1023
+ totalAmount: number;
1024
+ buyer: string | null;
1025
+ harvestId: string | null;
1026
+ fieldName?: string | null | undefined;
1027
+ };
1028
+ relationships?: {
1029
+ field?: {
1030
+ links: {
1031
+ related: string;
1032
+ };
1033
+ } | undefined;
1034
+ harvest?: {
1035
+ links: {
1036
+ related: string;
1037
+ };
1038
+ } | undefined;
1039
+ } | undefined;
1040
+ links?: Record<string, string> | undefined;
1041
+ meta?: Record<string, unknown> | undefined;
1042
+ }, {
1043
+ type: string;
1044
+ id: string;
1045
+ attributes: {
1046
+ date: string;
1047
+ createdAt: string;
1048
+ updatedAt: string;
1049
+ crop: string;
1050
+ fieldId: string | null;
1051
+ unit: string;
1052
+ quantity: number;
1053
+ pricePerUnit: number;
1054
+ totalAmount: number;
1055
+ buyer: string | null;
1056
+ harvestId: string | null;
1057
+ fieldName?: string | null | undefined;
1058
+ };
1059
+ relationships?: {
1060
+ field?: {
1061
+ links: {
1062
+ related: string;
1063
+ };
1064
+ } | undefined;
1065
+ harvest?: {
1066
+ links: {
1067
+ related: string;
1068
+ };
1069
+ } | undefined;
1070
+ } | undefined;
1071
+ links?: Record<string, string> | undefined;
1072
+ meta?: Record<string, unknown> | undefined;
1073
+ }>;
1074
+ export declare const budgetResponseSchema: z.ZodObject<{
1075
+ data: z.ZodObject<{
1076
+ type: z.ZodLiteral<string>;
1077
+ id: z.ZodString;
1078
+ attributes: z.ZodObject<{
1079
+ category: z.ZodString;
1080
+ planned: z.ZodNumber;
1081
+ actual: z.ZodOptional<z.ZodNumber>;
1082
+ remaining: z.ZodOptional<z.ZodNumber>;
1083
+ } & {
1084
+ createdAt: z.ZodString;
1085
+ updatedAt: z.ZodString;
1086
+ }, "strip", z.ZodTypeAny, {
1087
+ createdAt: string;
1088
+ updatedAt: string;
1089
+ category: string;
1090
+ planned: number;
1091
+ actual?: number | undefined;
1092
+ remaining?: number | undefined;
1093
+ }, {
1094
+ createdAt: string;
1095
+ updatedAt: string;
1096
+ category: string;
1097
+ planned: number;
1098
+ actual?: number | undefined;
1099
+ remaining?: number | undefined;
1100
+ }>;
1101
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1102
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1103
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1104
+ }, "strip", z.ZodTypeAny, {
1105
+ type: string;
1106
+ id: string;
1107
+ attributes: {
1108
+ createdAt: string;
1109
+ updatedAt: string;
1110
+ category: string;
1111
+ planned: number;
1112
+ actual?: number | undefined;
1113
+ remaining?: number | undefined;
1114
+ };
1115
+ relationships?: Record<string, unknown> | undefined;
1116
+ links?: Record<string, string> | undefined;
1117
+ meta?: Record<string, unknown> | undefined;
1118
+ }, {
1119
+ type: string;
1120
+ id: string;
1121
+ attributes: {
1122
+ createdAt: string;
1123
+ updatedAt: string;
1124
+ category: string;
1125
+ planned: number;
1126
+ actual?: number | undefined;
1127
+ remaining?: number | undefined;
1128
+ };
1129
+ relationships?: Record<string, unknown> | undefined;
1130
+ links?: Record<string, string> | undefined;
1131
+ meta?: Record<string, unknown> | undefined;
1132
+ }>;
1133
+ included: z.ZodOptional<z.ZodArray<z.ZodObject<{
1134
+ type: z.ZodString;
1135
+ id: z.ZodString;
1136
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1137
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1138
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1139
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1140
+ }, "strip", z.ZodTypeAny, {
1141
+ type: string;
1142
+ id: string;
1143
+ attributes?: Record<string, unknown> | undefined;
1144
+ relationships?: Record<string, unknown> | undefined;
1145
+ links?: Record<string, string> | undefined;
1146
+ meta?: Record<string, unknown> | undefined;
1147
+ }, {
1148
+ type: string;
1149
+ id: string;
1150
+ attributes?: Record<string, unknown> | undefined;
1151
+ relationships?: Record<string, unknown> | undefined;
1152
+ links?: Record<string, string> | undefined;
1153
+ meta?: Record<string, unknown> | undefined;
1154
+ }>, "many">>;
1155
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1156
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1157
+ }, "strip", z.ZodTypeAny, {
1158
+ data: {
1159
+ type: string;
1160
+ id: string;
1161
+ attributes: {
1162
+ createdAt: string;
1163
+ updatedAt: string;
1164
+ category: string;
1165
+ planned: number;
1166
+ actual?: number | undefined;
1167
+ remaining?: number | undefined;
1168
+ };
1169
+ relationships?: Record<string, unknown> | undefined;
1170
+ links?: Record<string, string> | undefined;
1171
+ meta?: Record<string, unknown> | undefined;
1172
+ };
1173
+ links?: Record<string, string> | undefined;
1174
+ meta?: Record<string, unknown> | undefined;
1175
+ included?: {
1176
+ type: string;
1177
+ id: string;
1178
+ attributes?: Record<string, unknown> | undefined;
1179
+ relationships?: Record<string, unknown> | undefined;
1180
+ links?: Record<string, string> | undefined;
1181
+ meta?: Record<string, unknown> | undefined;
1182
+ }[] | undefined;
1183
+ }, {
1184
+ data: {
1185
+ type: string;
1186
+ id: string;
1187
+ attributes: {
1188
+ createdAt: string;
1189
+ updatedAt: string;
1190
+ category: string;
1191
+ planned: number;
1192
+ actual?: number | undefined;
1193
+ remaining?: number | undefined;
1194
+ };
1195
+ relationships?: Record<string, unknown> | undefined;
1196
+ links?: Record<string, string> | undefined;
1197
+ meta?: Record<string, unknown> | undefined;
1198
+ };
1199
+ links?: Record<string, string> | undefined;
1200
+ meta?: Record<string, unknown> | undefined;
1201
+ included?: {
1202
+ type: string;
1203
+ id: string;
1204
+ attributes?: Record<string, unknown> | undefined;
1205
+ relationships?: Record<string, unknown> | undefined;
1206
+ links?: Record<string, string> | undefined;
1207
+ meta?: Record<string, unknown> | undefined;
1208
+ }[] | undefined;
1209
+ }>;
1210
+ export declare const budgetListResponseSchema: z.ZodObject<{
1211
+ data: z.ZodArray<z.ZodObject<{
1212
+ type: z.ZodLiteral<string>;
1213
+ id: z.ZodString;
1214
+ attributes: z.ZodObject<{
1215
+ category: z.ZodString;
1216
+ planned: z.ZodNumber;
1217
+ actual: z.ZodOptional<z.ZodNumber>;
1218
+ remaining: z.ZodOptional<z.ZodNumber>;
1219
+ } & {
1220
+ createdAt: z.ZodString;
1221
+ updatedAt: z.ZodString;
1222
+ }, "strip", z.ZodTypeAny, {
1223
+ createdAt: string;
1224
+ updatedAt: string;
1225
+ category: string;
1226
+ planned: number;
1227
+ actual?: number | undefined;
1228
+ remaining?: number | undefined;
1229
+ }, {
1230
+ createdAt: string;
1231
+ updatedAt: string;
1232
+ category: string;
1233
+ planned: number;
1234
+ actual?: number | undefined;
1235
+ remaining?: number | undefined;
1236
+ }>;
1237
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1238
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1239
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1240
+ }, "strip", z.ZodTypeAny, {
1241
+ type: string;
1242
+ id: string;
1243
+ attributes: {
1244
+ createdAt: string;
1245
+ updatedAt: string;
1246
+ category: string;
1247
+ planned: number;
1248
+ actual?: number | undefined;
1249
+ remaining?: number | undefined;
1250
+ };
1251
+ relationships?: Record<string, unknown> | undefined;
1252
+ links?: Record<string, string> | undefined;
1253
+ meta?: Record<string, unknown> | undefined;
1254
+ }, {
1255
+ type: string;
1256
+ id: string;
1257
+ attributes: {
1258
+ createdAt: string;
1259
+ updatedAt: string;
1260
+ category: string;
1261
+ planned: number;
1262
+ actual?: number | undefined;
1263
+ remaining?: number | undefined;
1264
+ };
1265
+ relationships?: Record<string, unknown> | undefined;
1266
+ links?: Record<string, string> | undefined;
1267
+ meta?: Record<string, unknown> | undefined;
1268
+ }>, "many">;
1269
+ included: z.ZodOptional<z.ZodArray<z.ZodObject<{
1270
+ type: z.ZodString;
1271
+ id: z.ZodString;
1272
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1273
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1274
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1275
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1276
+ }, "strip", z.ZodTypeAny, {
1277
+ type: string;
1278
+ id: string;
1279
+ attributes?: Record<string, unknown> | undefined;
1280
+ relationships?: Record<string, unknown> | undefined;
1281
+ links?: Record<string, string> | undefined;
1282
+ meta?: Record<string, unknown> | undefined;
1283
+ }, {
1284
+ type: string;
1285
+ id: string;
1286
+ attributes?: Record<string, unknown> | undefined;
1287
+ relationships?: Record<string, unknown> | undefined;
1288
+ links?: Record<string, string> | undefined;
1289
+ meta?: Record<string, unknown> | undefined;
1290
+ }>, "many">>;
1291
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1292
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1293
+ }, "strip", z.ZodTypeAny, {
1294
+ data: {
1295
+ type: string;
1296
+ id: string;
1297
+ attributes: {
1298
+ createdAt: string;
1299
+ updatedAt: string;
1300
+ category: string;
1301
+ planned: number;
1302
+ actual?: number | undefined;
1303
+ remaining?: number | undefined;
1304
+ };
1305
+ relationships?: Record<string, unknown> | undefined;
1306
+ links?: Record<string, string> | undefined;
1307
+ meta?: Record<string, unknown> | undefined;
1308
+ }[];
1309
+ links?: Record<string, string> | undefined;
1310
+ meta?: Record<string, unknown> | undefined;
1311
+ included?: {
1312
+ type: string;
1313
+ id: string;
1314
+ attributes?: Record<string, unknown> | undefined;
1315
+ relationships?: Record<string, unknown> | undefined;
1316
+ links?: Record<string, string> | undefined;
1317
+ meta?: Record<string, unknown> | undefined;
1318
+ }[] | undefined;
1319
+ }, {
1320
+ data: {
1321
+ type: string;
1322
+ id: string;
1323
+ attributes: {
1324
+ createdAt: string;
1325
+ updatedAt: string;
1326
+ category: string;
1327
+ planned: number;
1328
+ actual?: number | undefined;
1329
+ remaining?: number | undefined;
1330
+ };
1331
+ relationships?: Record<string, unknown> | undefined;
1332
+ links?: Record<string, string> | undefined;
1333
+ meta?: Record<string, unknown> | undefined;
1334
+ }[];
1335
+ links?: Record<string, string> | undefined;
1336
+ meta?: Record<string, unknown> | undefined;
1337
+ included?: {
1338
+ type: string;
1339
+ id: string;
1340
+ attributes?: Record<string, unknown> | undefined;
1341
+ relationships?: Record<string, unknown> | undefined;
1342
+ links?: Record<string, string> | undefined;
1343
+ meta?: Record<string, unknown> | undefined;
1344
+ }[] | undefined;
1345
+ }>;
1346
+ export declare const expenseResponseSchema: z.ZodObject<{
1347
+ data: z.ZodObject<{
1348
+ type: z.ZodLiteral<string>;
1349
+ id: z.ZodString;
1350
+ attributes: z.ZodObject<{
1351
+ date: z.ZodString;
1352
+ category: z.ZodString;
1353
+ description: z.ZodString;
1354
+ amount: z.ZodNumber;
1355
+ allocationType: z.ZodEnum<["field", "crop", "general"]>;
1356
+ fieldId: z.ZodNullable<z.ZodString>;
1357
+ fieldName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1358
+ cropId: z.ZodNullable<z.ZodString>;
1359
+ cropName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1360
+ } & {
1361
+ createdAt: z.ZodString;
1362
+ updatedAt: z.ZodString;
1363
+ }, "strip", z.ZodTypeAny, {
1364
+ date: string;
1365
+ createdAt: string;
1366
+ updatedAt: string;
1367
+ description: string;
1368
+ fieldId: string | null;
1369
+ category: string;
1370
+ cropId: string | null;
1371
+ amount: number;
1372
+ allocationType: "crop" | "field" | "general";
1373
+ fieldName?: string | null | undefined;
1374
+ cropName?: string | null | undefined;
1375
+ }, {
1376
+ date: string;
1377
+ createdAt: string;
1378
+ updatedAt: string;
1379
+ description: string;
1380
+ fieldId: string | null;
1381
+ category: string;
1382
+ cropId: string | null;
1383
+ amount: number;
1384
+ allocationType: "crop" | "field" | "general";
1385
+ fieldName?: string | null | undefined;
1386
+ cropName?: string | null | undefined;
1387
+ }>;
1388
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1389
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1390
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1391
+ }, "strip", z.ZodTypeAny, {
1392
+ type: string;
1393
+ id: string;
1394
+ attributes: {
1395
+ date: string;
1396
+ createdAt: string;
1397
+ updatedAt: string;
1398
+ description: string;
1399
+ fieldId: string | null;
1400
+ category: string;
1401
+ cropId: string | null;
1402
+ amount: number;
1403
+ allocationType: "crop" | "field" | "general";
1404
+ fieldName?: string | null | undefined;
1405
+ cropName?: string | null | undefined;
1406
+ };
1407
+ relationships?: Record<string, unknown> | undefined;
1408
+ links?: Record<string, string> | undefined;
1409
+ meta?: Record<string, unknown> | undefined;
1410
+ }, {
1411
+ type: string;
1412
+ id: string;
1413
+ attributes: {
1414
+ date: string;
1415
+ createdAt: string;
1416
+ updatedAt: string;
1417
+ description: string;
1418
+ fieldId: string | null;
1419
+ category: string;
1420
+ cropId: string | null;
1421
+ amount: number;
1422
+ allocationType: "crop" | "field" | "general";
1423
+ fieldName?: string | null | undefined;
1424
+ cropName?: string | null | undefined;
1425
+ };
1426
+ relationships?: Record<string, unknown> | undefined;
1427
+ links?: Record<string, string> | undefined;
1428
+ meta?: Record<string, unknown> | undefined;
1429
+ }>;
1430
+ included: z.ZodOptional<z.ZodArray<z.ZodObject<{
1431
+ type: z.ZodString;
1432
+ id: z.ZodString;
1433
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1434
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1435
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1436
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1437
+ }, "strip", z.ZodTypeAny, {
1438
+ type: string;
1439
+ id: string;
1440
+ attributes?: Record<string, unknown> | undefined;
1441
+ relationships?: Record<string, unknown> | undefined;
1442
+ links?: Record<string, string> | undefined;
1443
+ meta?: Record<string, unknown> | undefined;
1444
+ }, {
1445
+ type: string;
1446
+ id: string;
1447
+ attributes?: Record<string, unknown> | undefined;
1448
+ relationships?: Record<string, unknown> | undefined;
1449
+ links?: Record<string, string> | undefined;
1450
+ meta?: Record<string, unknown> | undefined;
1451
+ }>, "many">>;
1452
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1453
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1454
+ }, "strip", z.ZodTypeAny, {
1455
+ data: {
1456
+ type: string;
1457
+ id: string;
1458
+ attributes: {
1459
+ date: string;
1460
+ createdAt: string;
1461
+ updatedAt: string;
1462
+ description: string;
1463
+ fieldId: string | null;
1464
+ category: string;
1465
+ cropId: string | null;
1466
+ amount: number;
1467
+ allocationType: "crop" | "field" | "general";
1468
+ fieldName?: string | null | undefined;
1469
+ cropName?: string | null | undefined;
1470
+ };
1471
+ relationships?: Record<string, unknown> | undefined;
1472
+ links?: Record<string, string> | undefined;
1473
+ meta?: Record<string, unknown> | undefined;
1474
+ };
1475
+ links?: Record<string, string> | undefined;
1476
+ meta?: Record<string, unknown> | undefined;
1477
+ included?: {
1478
+ type: string;
1479
+ id: string;
1480
+ attributes?: Record<string, unknown> | undefined;
1481
+ relationships?: Record<string, unknown> | undefined;
1482
+ links?: Record<string, string> | undefined;
1483
+ meta?: Record<string, unknown> | undefined;
1484
+ }[] | undefined;
1485
+ }, {
1486
+ data: {
1487
+ type: string;
1488
+ id: string;
1489
+ attributes: {
1490
+ date: string;
1491
+ createdAt: string;
1492
+ updatedAt: string;
1493
+ description: string;
1494
+ fieldId: string | null;
1495
+ category: string;
1496
+ cropId: string | null;
1497
+ amount: number;
1498
+ allocationType: "crop" | "field" | "general";
1499
+ fieldName?: string | null | undefined;
1500
+ cropName?: string | null | undefined;
1501
+ };
1502
+ relationships?: Record<string, unknown> | undefined;
1503
+ links?: Record<string, string> | undefined;
1504
+ meta?: Record<string, unknown> | undefined;
1505
+ };
1506
+ links?: Record<string, string> | undefined;
1507
+ meta?: Record<string, unknown> | undefined;
1508
+ included?: {
1509
+ type: string;
1510
+ id: string;
1511
+ attributes?: Record<string, unknown> | undefined;
1512
+ relationships?: Record<string, unknown> | undefined;
1513
+ links?: Record<string, string> | undefined;
1514
+ meta?: Record<string, unknown> | undefined;
1515
+ }[] | undefined;
1516
+ }>;
1517
+ export declare const expenseDetailResponseSchema: z.ZodObject<{
1518
+ data: z.ZodObject<{
1519
+ type: z.ZodLiteral<string>;
1520
+ id: z.ZodString;
1521
+ attributes: z.ZodObject<{
1522
+ date: z.ZodString;
1523
+ category: z.ZodString;
1524
+ description: z.ZodString;
1525
+ amount: z.ZodNumber;
1526
+ allocationType: z.ZodEnum<["field", "crop", "general"]>;
1527
+ fieldId: z.ZodNullable<z.ZodString>;
1528
+ fieldName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1529
+ cropId: z.ZodNullable<z.ZodString>;
1530
+ cropName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1531
+ } & {
1532
+ createdAt: z.ZodString;
1533
+ updatedAt: z.ZodString;
1534
+ }, "strip", z.ZodTypeAny, {
1535
+ date: string;
1536
+ createdAt: string;
1537
+ updatedAt: string;
1538
+ description: string;
1539
+ fieldId: string | null;
1540
+ category: string;
1541
+ cropId: string | null;
1542
+ amount: number;
1543
+ allocationType: "crop" | "field" | "general";
1544
+ fieldName?: string | null | undefined;
1545
+ cropName?: string | null | undefined;
1546
+ }, {
1547
+ date: string;
1548
+ createdAt: string;
1549
+ updatedAt: string;
1550
+ description: string;
1551
+ fieldId: string | null;
1552
+ category: string;
1553
+ cropId: string | null;
1554
+ amount: number;
1555
+ allocationType: "crop" | "field" | "general";
1556
+ fieldName?: string | null | undefined;
1557
+ cropName?: string | null | undefined;
1558
+ }>;
1559
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1560
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1561
+ } & {
1562
+ relationships: z.ZodOptional<z.ZodObject<{
1563
+ field: z.ZodOptional<z.ZodObject<{
1564
+ links: z.ZodObject<{
1565
+ related: z.ZodString;
1566
+ }, "strip", z.ZodTypeAny, {
1567
+ related: string;
1568
+ }, {
1569
+ related: string;
1570
+ }>;
1571
+ }, "strip", z.ZodTypeAny, {
1572
+ links: {
1573
+ related: string;
1574
+ };
1575
+ }, {
1576
+ links: {
1577
+ related: string;
1578
+ };
1579
+ }>>;
1580
+ }, "strip", z.ZodTypeAny, {
1581
+ field?: {
1582
+ links: {
1583
+ related: string;
1584
+ };
1585
+ } | undefined;
1586
+ }, {
1587
+ field?: {
1588
+ links: {
1589
+ related: string;
1590
+ };
1591
+ } | undefined;
1592
+ }>>;
1593
+ }, "strip", z.ZodTypeAny, {
1594
+ type: string;
1595
+ id: string;
1596
+ attributes: {
1597
+ date: string;
1598
+ createdAt: string;
1599
+ updatedAt: string;
1600
+ description: string;
1601
+ fieldId: string | null;
1602
+ category: string;
1603
+ cropId: string | null;
1604
+ amount: number;
1605
+ allocationType: "crop" | "field" | "general";
1606
+ fieldName?: string | null | undefined;
1607
+ cropName?: string | null | undefined;
1608
+ };
1609
+ relationships?: {
1610
+ field?: {
1611
+ links: {
1612
+ related: string;
1613
+ };
1614
+ } | undefined;
1615
+ } | undefined;
1616
+ links?: Record<string, string> | undefined;
1617
+ meta?: Record<string, unknown> | undefined;
1618
+ }, {
1619
+ type: string;
1620
+ id: string;
1621
+ attributes: {
1622
+ date: string;
1623
+ createdAt: string;
1624
+ updatedAt: string;
1625
+ description: string;
1626
+ fieldId: string | null;
1627
+ category: string;
1628
+ cropId: string | null;
1629
+ amount: number;
1630
+ allocationType: "crop" | "field" | "general";
1631
+ fieldName?: string | null | undefined;
1632
+ cropName?: string | null | undefined;
1633
+ };
1634
+ relationships?: {
1635
+ field?: {
1636
+ links: {
1637
+ related: string;
1638
+ };
1639
+ } | undefined;
1640
+ } | undefined;
1641
+ links?: Record<string, string> | undefined;
1642
+ meta?: Record<string, unknown> | undefined;
1643
+ }>;
1644
+ included: z.ZodOptional<z.ZodArray<z.ZodObject<{
1645
+ type: z.ZodString;
1646
+ id: z.ZodString;
1647
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1648
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1649
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1650
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1651
+ }, "strip", z.ZodTypeAny, {
1652
+ type: string;
1653
+ id: string;
1654
+ attributes?: Record<string, unknown> | undefined;
1655
+ relationships?: Record<string, unknown> | undefined;
1656
+ links?: Record<string, string> | undefined;
1657
+ meta?: Record<string, unknown> | undefined;
1658
+ }, {
1659
+ type: string;
1660
+ id: string;
1661
+ attributes?: Record<string, unknown> | undefined;
1662
+ relationships?: Record<string, unknown> | undefined;
1663
+ links?: Record<string, string> | undefined;
1664
+ meta?: Record<string, unknown> | undefined;
1665
+ }>, "many">>;
1666
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1667
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1668
+ }, "strip", z.ZodTypeAny, {
1669
+ data: {
1670
+ type: string;
1671
+ id: string;
1672
+ attributes: {
1673
+ date: string;
1674
+ createdAt: string;
1675
+ updatedAt: string;
1676
+ description: string;
1677
+ fieldId: string | null;
1678
+ category: string;
1679
+ cropId: string | null;
1680
+ amount: number;
1681
+ allocationType: "crop" | "field" | "general";
1682
+ fieldName?: string | null | undefined;
1683
+ cropName?: string | null | undefined;
1684
+ };
1685
+ relationships?: {
1686
+ field?: {
1687
+ links: {
1688
+ related: string;
1689
+ };
1690
+ } | undefined;
1691
+ } | undefined;
1692
+ links?: Record<string, string> | undefined;
1693
+ meta?: Record<string, unknown> | undefined;
1694
+ };
1695
+ links?: Record<string, string> | undefined;
1696
+ meta?: Record<string, unknown> | undefined;
1697
+ included?: {
1698
+ type: string;
1699
+ id: string;
1700
+ attributes?: Record<string, unknown> | undefined;
1701
+ relationships?: Record<string, unknown> | undefined;
1702
+ links?: Record<string, string> | undefined;
1703
+ meta?: Record<string, unknown> | undefined;
1704
+ }[] | undefined;
1705
+ }, {
1706
+ data: {
1707
+ type: string;
1708
+ id: string;
1709
+ attributes: {
1710
+ date: string;
1711
+ createdAt: string;
1712
+ updatedAt: string;
1713
+ description: string;
1714
+ fieldId: string | null;
1715
+ category: string;
1716
+ cropId: string | null;
1717
+ amount: number;
1718
+ allocationType: "crop" | "field" | "general";
1719
+ fieldName?: string | null | undefined;
1720
+ cropName?: string | null | undefined;
1721
+ };
1722
+ relationships?: {
1723
+ field?: {
1724
+ links: {
1725
+ related: string;
1726
+ };
1727
+ } | undefined;
1728
+ } | undefined;
1729
+ links?: Record<string, string> | undefined;
1730
+ meta?: Record<string, unknown> | undefined;
1731
+ };
1732
+ links?: Record<string, string> | undefined;
1733
+ meta?: Record<string, unknown> | undefined;
1734
+ included?: {
1735
+ type: string;
1736
+ id: string;
1737
+ attributes?: Record<string, unknown> | undefined;
1738
+ relationships?: Record<string, unknown> | undefined;
1739
+ links?: Record<string, string> | undefined;
1740
+ meta?: Record<string, unknown> | undefined;
1741
+ }[] | undefined;
1742
+ }>;
1743
+ export declare const expenseListResponseSchema: z.ZodObject<{
1744
+ data: z.ZodArray<z.ZodObject<{
1745
+ type: z.ZodLiteral<string>;
1746
+ id: z.ZodString;
1747
+ attributes: z.ZodObject<{
1748
+ date: z.ZodString;
1749
+ category: z.ZodString;
1750
+ description: z.ZodString;
1751
+ amount: z.ZodNumber;
1752
+ allocationType: z.ZodEnum<["field", "crop", "general"]>;
1753
+ fieldId: z.ZodNullable<z.ZodString>;
1754
+ fieldName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1755
+ cropId: z.ZodNullable<z.ZodString>;
1756
+ cropName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1757
+ } & {
1758
+ createdAt: z.ZodString;
1759
+ updatedAt: z.ZodString;
1760
+ }, "strip", z.ZodTypeAny, {
1761
+ date: string;
1762
+ createdAt: string;
1763
+ updatedAt: string;
1764
+ description: string;
1765
+ fieldId: string | null;
1766
+ category: string;
1767
+ cropId: string | null;
1768
+ amount: number;
1769
+ allocationType: "crop" | "field" | "general";
1770
+ fieldName?: string | null | undefined;
1771
+ cropName?: string | null | undefined;
1772
+ }, {
1773
+ date: string;
1774
+ createdAt: string;
1775
+ updatedAt: string;
1776
+ description: string;
1777
+ fieldId: string | null;
1778
+ category: string;
1779
+ cropId: string | null;
1780
+ amount: number;
1781
+ allocationType: "crop" | "field" | "general";
1782
+ fieldName?: string | null | undefined;
1783
+ cropName?: string | null | undefined;
1784
+ }>;
1785
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1786
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1787
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1788
+ }, "strip", z.ZodTypeAny, {
1789
+ type: string;
1790
+ id: string;
1791
+ attributes: {
1792
+ date: string;
1793
+ createdAt: string;
1794
+ updatedAt: string;
1795
+ description: string;
1796
+ fieldId: string | null;
1797
+ category: string;
1798
+ cropId: string | null;
1799
+ amount: number;
1800
+ allocationType: "crop" | "field" | "general";
1801
+ fieldName?: string | null | undefined;
1802
+ cropName?: string | null | undefined;
1803
+ };
1804
+ relationships?: Record<string, unknown> | undefined;
1805
+ links?: Record<string, string> | undefined;
1806
+ meta?: Record<string, unknown> | undefined;
1807
+ }, {
1808
+ type: string;
1809
+ id: string;
1810
+ attributes: {
1811
+ date: string;
1812
+ createdAt: string;
1813
+ updatedAt: string;
1814
+ description: string;
1815
+ fieldId: string | null;
1816
+ category: string;
1817
+ cropId: string | null;
1818
+ amount: number;
1819
+ allocationType: "crop" | "field" | "general";
1820
+ fieldName?: string | null | undefined;
1821
+ cropName?: string | null | undefined;
1822
+ };
1823
+ relationships?: Record<string, unknown> | undefined;
1824
+ links?: Record<string, string> | undefined;
1825
+ meta?: Record<string, unknown> | undefined;
1826
+ }>, "many">;
1827
+ included: z.ZodOptional<z.ZodArray<z.ZodObject<{
1828
+ type: z.ZodString;
1829
+ id: z.ZodString;
1830
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1831
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1832
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1833
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1834
+ }, "strip", z.ZodTypeAny, {
1835
+ type: string;
1836
+ id: string;
1837
+ attributes?: Record<string, unknown> | undefined;
1838
+ relationships?: Record<string, unknown> | undefined;
1839
+ links?: Record<string, string> | undefined;
1840
+ meta?: Record<string, unknown> | undefined;
1841
+ }, {
1842
+ type: string;
1843
+ id: string;
1844
+ attributes?: Record<string, unknown> | undefined;
1845
+ relationships?: Record<string, unknown> | undefined;
1846
+ links?: Record<string, string> | undefined;
1847
+ meta?: Record<string, unknown> | undefined;
1848
+ }>, "many">>;
1849
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1850
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1851
+ }, "strip", z.ZodTypeAny, {
1852
+ data: {
1853
+ type: string;
1854
+ id: string;
1855
+ attributes: {
1856
+ date: string;
1857
+ createdAt: string;
1858
+ updatedAt: string;
1859
+ description: string;
1860
+ fieldId: string | null;
1861
+ category: string;
1862
+ cropId: string | null;
1863
+ amount: number;
1864
+ allocationType: "crop" | "field" | "general";
1865
+ fieldName?: string | null | undefined;
1866
+ cropName?: string | null | undefined;
1867
+ };
1868
+ relationships?: Record<string, unknown> | undefined;
1869
+ links?: Record<string, string> | undefined;
1870
+ meta?: Record<string, unknown> | undefined;
1871
+ }[];
1872
+ links?: Record<string, string> | undefined;
1873
+ meta?: Record<string, unknown> | undefined;
1874
+ included?: {
1875
+ type: string;
1876
+ id: string;
1877
+ attributes?: Record<string, unknown> | undefined;
1878
+ relationships?: Record<string, unknown> | undefined;
1879
+ links?: Record<string, string> | undefined;
1880
+ meta?: Record<string, unknown> | undefined;
1881
+ }[] | undefined;
1882
+ }, {
1883
+ data: {
1884
+ type: string;
1885
+ id: string;
1886
+ attributes: {
1887
+ date: string;
1888
+ createdAt: string;
1889
+ updatedAt: string;
1890
+ description: string;
1891
+ fieldId: string | null;
1892
+ category: string;
1893
+ cropId: string | null;
1894
+ amount: number;
1895
+ allocationType: "crop" | "field" | "general";
1896
+ fieldName?: string | null | undefined;
1897
+ cropName?: string | null | undefined;
1898
+ };
1899
+ relationships?: Record<string, unknown> | undefined;
1900
+ links?: Record<string, string> | undefined;
1901
+ meta?: Record<string, unknown> | undefined;
1902
+ }[];
1903
+ links?: Record<string, string> | undefined;
1904
+ meta?: Record<string, unknown> | undefined;
1905
+ included?: {
1906
+ type: string;
1907
+ id: string;
1908
+ attributes?: Record<string, unknown> | undefined;
1909
+ relationships?: Record<string, unknown> | undefined;
1910
+ links?: Record<string, string> | undefined;
1911
+ meta?: Record<string, unknown> | undefined;
1912
+ }[] | undefined;
1913
+ }>;
1914
+ export declare const revenueResponseSchema: z.ZodObject<{
1915
+ data: z.ZodObject<{
1916
+ type: z.ZodLiteral<string>;
1917
+ id: z.ZodString;
1918
+ attributes: z.ZodObject<{
1919
+ date: z.ZodString;
1920
+ crop: z.ZodString;
1921
+ quantity: z.ZodNumber;
1922
+ unit: z.ZodString;
1923
+ pricePerUnit: z.ZodNumber;
1924
+ totalAmount: z.ZodNumber;
1925
+ buyer: z.ZodNullable<z.ZodString>;
1926
+ fieldId: z.ZodNullable<z.ZodString>;
1927
+ fieldName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1928
+ harvestId: z.ZodNullable<z.ZodString>;
1929
+ } & {
1930
+ createdAt: z.ZodString;
1931
+ updatedAt: z.ZodString;
1932
+ }, "strip", z.ZodTypeAny, {
1933
+ date: string;
1934
+ createdAt: string;
1935
+ updatedAt: string;
1936
+ crop: string;
1937
+ fieldId: string | null;
1938
+ unit: string;
1939
+ quantity: number;
1940
+ pricePerUnit: number;
1941
+ totalAmount: number;
1942
+ buyer: string | null;
1943
+ harvestId: string | null;
1944
+ fieldName?: string | null | undefined;
1945
+ }, {
1946
+ date: string;
1947
+ createdAt: string;
1948
+ updatedAt: string;
1949
+ crop: string;
1950
+ fieldId: string | null;
1951
+ unit: string;
1952
+ quantity: number;
1953
+ pricePerUnit: number;
1954
+ totalAmount: number;
1955
+ buyer: string | null;
1956
+ harvestId: string | null;
1957
+ fieldName?: string | null | undefined;
1958
+ }>;
1959
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1960
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1961
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1962
+ }, "strip", z.ZodTypeAny, {
1963
+ type: string;
1964
+ id: string;
1965
+ attributes: {
1966
+ date: string;
1967
+ createdAt: string;
1968
+ updatedAt: string;
1969
+ crop: string;
1970
+ fieldId: string | null;
1971
+ unit: string;
1972
+ quantity: number;
1973
+ pricePerUnit: number;
1974
+ totalAmount: number;
1975
+ buyer: string | null;
1976
+ harvestId: string | null;
1977
+ fieldName?: string | null | undefined;
1978
+ };
1979
+ relationships?: Record<string, unknown> | undefined;
1980
+ links?: Record<string, string> | undefined;
1981
+ meta?: Record<string, unknown> | undefined;
1982
+ }, {
1983
+ type: string;
1984
+ id: string;
1985
+ attributes: {
1986
+ date: string;
1987
+ createdAt: string;
1988
+ updatedAt: string;
1989
+ crop: string;
1990
+ fieldId: string | null;
1991
+ unit: string;
1992
+ quantity: number;
1993
+ pricePerUnit: number;
1994
+ totalAmount: number;
1995
+ buyer: string | null;
1996
+ harvestId: string | null;
1997
+ fieldName?: string | null | undefined;
1998
+ };
1999
+ relationships?: Record<string, unknown> | undefined;
2000
+ links?: Record<string, string> | undefined;
2001
+ meta?: Record<string, unknown> | undefined;
2002
+ }>;
2003
+ included: z.ZodOptional<z.ZodArray<z.ZodObject<{
2004
+ type: z.ZodString;
2005
+ id: z.ZodString;
2006
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2007
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2008
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2009
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2010
+ }, "strip", z.ZodTypeAny, {
2011
+ type: string;
2012
+ id: string;
2013
+ attributes?: Record<string, unknown> | undefined;
2014
+ relationships?: Record<string, unknown> | undefined;
2015
+ links?: Record<string, string> | undefined;
2016
+ meta?: Record<string, unknown> | undefined;
2017
+ }, {
2018
+ type: string;
2019
+ id: string;
2020
+ attributes?: Record<string, unknown> | undefined;
2021
+ relationships?: Record<string, unknown> | undefined;
2022
+ links?: Record<string, string> | undefined;
2023
+ meta?: Record<string, unknown> | undefined;
2024
+ }>, "many">>;
2025
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2026
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2027
+ }, "strip", z.ZodTypeAny, {
2028
+ data: {
2029
+ type: string;
2030
+ id: string;
2031
+ attributes: {
2032
+ date: string;
2033
+ createdAt: string;
2034
+ updatedAt: string;
2035
+ crop: string;
2036
+ fieldId: string | null;
2037
+ unit: string;
2038
+ quantity: number;
2039
+ pricePerUnit: number;
2040
+ totalAmount: number;
2041
+ buyer: string | null;
2042
+ harvestId: string | null;
2043
+ fieldName?: string | null | undefined;
2044
+ };
2045
+ relationships?: Record<string, unknown> | undefined;
2046
+ links?: Record<string, string> | undefined;
2047
+ meta?: Record<string, unknown> | undefined;
2048
+ };
2049
+ links?: Record<string, string> | undefined;
2050
+ meta?: Record<string, unknown> | undefined;
2051
+ included?: {
2052
+ type: string;
2053
+ id: string;
2054
+ attributes?: Record<string, unknown> | undefined;
2055
+ relationships?: Record<string, unknown> | undefined;
2056
+ links?: Record<string, string> | undefined;
2057
+ meta?: Record<string, unknown> | undefined;
2058
+ }[] | undefined;
2059
+ }, {
2060
+ data: {
2061
+ type: string;
2062
+ id: string;
2063
+ attributes: {
2064
+ date: string;
2065
+ createdAt: string;
2066
+ updatedAt: string;
2067
+ crop: string;
2068
+ fieldId: string | null;
2069
+ unit: string;
2070
+ quantity: number;
2071
+ pricePerUnit: number;
2072
+ totalAmount: number;
2073
+ buyer: string | null;
2074
+ harvestId: string | null;
2075
+ fieldName?: string | null | undefined;
2076
+ };
2077
+ relationships?: Record<string, unknown> | undefined;
2078
+ links?: Record<string, string> | undefined;
2079
+ meta?: Record<string, unknown> | undefined;
2080
+ };
2081
+ links?: Record<string, string> | undefined;
2082
+ meta?: Record<string, unknown> | undefined;
2083
+ included?: {
2084
+ type: string;
2085
+ id: string;
2086
+ attributes?: Record<string, unknown> | undefined;
2087
+ relationships?: Record<string, unknown> | undefined;
2088
+ links?: Record<string, string> | undefined;
2089
+ meta?: Record<string, unknown> | undefined;
2090
+ }[] | undefined;
2091
+ }>;
2092
+ export declare const revenueDetailResponseSchema: z.ZodObject<{
2093
+ data: z.ZodObject<{
2094
+ type: z.ZodLiteral<string>;
2095
+ id: z.ZodString;
2096
+ attributes: z.ZodObject<{
2097
+ date: z.ZodString;
2098
+ crop: z.ZodString;
2099
+ quantity: z.ZodNumber;
2100
+ unit: z.ZodString;
2101
+ pricePerUnit: z.ZodNumber;
2102
+ totalAmount: z.ZodNumber;
2103
+ buyer: z.ZodNullable<z.ZodString>;
2104
+ fieldId: z.ZodNullable<z.ZodString>;
2105
+ fieldName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2106
+ harvestId: z.ZodNullable<z.ZodString>;
2107
+ } & {
2108
+ createdAt: z.ZodString;
2109
+ updatedAt: z.ZodString;
2110
+ }, "strip", z.ZodTypeAny, {
2111
+ date: string;
2112
+ createdAt: string;
2113
+ updatedAt: string;
2114
+ crop: string;
2115
+ fieldId: string | null;
2116
+ unit: string;
2117
+ quantity: number;
2118
+ pricePerUnit: number;
2119
+ totalAmount: number;
2120
+ buyer: string | null;
2121
+ harvestId: string | null;
2122
+ fieldName?: string | null | undefined;
2123
+ }, {
2124
+ date: string;
2125
+ createdAt: string;
2126
+ updatedAt: string;
2127
+ crop: string;
2128
+ fieldId: string | null;
2129
+ unit: string;
2130
+ quantity: number;
2131
+ pricePerUnit: number;
2132
+ totalAmount: number;
2133
+ buyer: string | null;
2134
+ harvestId: string | null;
2135
+ fieldName?: string | null | undefined;
2136
+ }>;
2137
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2138
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2139
+ } & {
2140
+ relationships: z.ZodOptional<z.ZodObject<{
2141
+ field: z.ZodOptional<z.ZodObject<{
2142
+ links: z.ZodObject<{
2143
+ related: z.ZodString;
2144
+ }, "strip", z.ZodTypeAny, {
2145
+ related: string;
2146
+ }, {
2147
+ related: string;
2148
+ }>;
2149
+ }, "strip", z.ZodTypeAny, {
2150
+ links: {
2151
+ related: string;
2152
+ };
2153
+ }, {
2154
+ links: {
2155
+ related: string;
2156
+ };
2157
+ }>>;
2158
+ harvest: z.ZodOptional<z.ZodObject<{
2159
+ links: z.ZodObject<{
2160
+ related: z.ZodString;
2161
+ }, "strip", z.ZodTypeAny, {
2162
+ related: string;
2163
+ }, {
2164
+ related: string;
2165
+ }>;
2166
+ }, "strip", z.ZodTypeAny, {
2167
+ links: {
2168
+ related: string;
2169
+ };
2170
+ }, {
2171
+ links: {
2172
+ related: string;
2173
+ };
2174
+ }>>;
2175
+ }, "strip", z.ZodTypeAny, {
2176
+ field?: {
2177
+ links: {
2178
+ related: string;
2179
+ };
2180
+ } | undefined;
2181
+ harvest?: {
2182
+ links: {
2183
+ related: string;
2184
+ };
2185
+ } | undefined;
2186
+ }, {
2187
+ field?: {
2188
+ links: {
2189
+ related: string;
2190
+ };
2191
+ } | undefined;
2192
+ harvest?: {
2193
+ links: {
2194
+ related: string;
2195
+ };
2196
+ } | undefined;
2197
+ }>>;
2198
+ }, "strip", z.ZodTypeAny, {
2199
+ type: string;
2200
+ id: string;
2201
+ attributes: {
2202
+ date: string;
2203
+ createdAt: string;
2204
+ updatedAt: string;
2205
+ crop: string;
2206
+ fieldId: string | null;
2207
+ unit: string;
2208
+ quantity: number;
2209
+ pricePerUnit: number;
2210
+ totalAmount: number;
2211
+ buyer: string | null;
2212
+ harvestId: string | null;
2213
+ fieldName?: string | null | undefined;
2214
+ };
2215
+ relationships?: {
2216
+ field?: {
2217
+ links: {
2218
+ related: string;
2219
+ };
2220
+ } | undefined;
2221
+ harvest?: {
2222
+ links: {
2223
+ related: string;
2224
+ };
2225
+ } | undefined;
2226
+ } | undefined;
2227
+ links?: Record<string, string> | undefined;
2228
+ meta?: Record<string, unknown> | undefined;
2229
+ }, {
2230
+ type: string;
2231
+ id: string;
2232
+ attributes: {
2233
+ date: string;
2234
+ createdAt: string;
2235
+ updatedAt: string;
2236
+ crop: string;
2237
+ fieldId: string | null;
2238
+ unit: string;
2239
+ quantity: number;
2240
+ pricePerUnit: number;
2241
+ totalAmount: number;
2242
+ buyer: string | null;
2243
+ harvestId: string | null;
2244
+ fieldName?: string | null | undefined;
2245
+ };
2246
+ relationships?: {
2247
+ field?: {
2248
+ links: {
2249
+ related: string;
2250
+ };
2251
+ } | undefined;
2252
+ harvest?: {
2253
+ links: {
2254
+ related: string;
2255
+ };
2256
+ } | undefined;
2257
+ } | undefined;
2258
+ links?: Record<string, string> | undefined;
2259
+ meta?: Record<string, unknown> | undefined;
2260
+ }>;
2261
+ included: z.ZodOptional<z.ZodArray<z.ZodObject<{
2262
+ type: z.ZodString;
2263
+ id: z.ZodString;
2264
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2265
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2266
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2267
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2268
+ }, "strip", z.ZodTypeAny, {
2269
+ type: string;
2270
+ id: string;
2271
+ attributes?: Record<string, unknown> | undefined;
2272
+ relationships?: Record<string, unknown> | undefined;
2273
+ links?: Record<string, string> | undefined;
2274
+ meta?: Record<string, unknown> | undefined;
2275
+ }, {
2276
+ type: string;
2277
+ id: string;
2278
+ attributes?: Record<string, unknown> | undefined;
2279
+ relationships?: Record<string, unknown> | undefined;
2280
+ links?: Record<string, string> | undefined;
2281
+ meta?: Record<string, unknown> | undefined;
2282
+ }>, "many">>;
2283
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2284
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2285
+ }, "strip", z.ZodTypeAny, {
2286
+ data: {
2287
+ type: string;
2288
+ id: string;
2289
+ attributes: {
2290
+ date: string;
2291
+ createdAt: string;
2292
+ updatedAt: string;
2293
+ crop: string;
2294
+ fieldId: string | null;
2295
+ unit: string;
2296
+ quantity: number;
2297
+ pricePerUnit: number;
2298
+ totalAmount: number;
2299
+ buyer: string | null;
2300
+ harvestId: string | null;
2301
+ fieldName?: string | null | undefined;
2302
+ };
2303
+ relationships?: {
2304
+ field?: {
2305
+ links: {
2306
+ related: string;
2307
+ };
2308
+ } | undefined;
2309
+ harvest?: {
2310
+ links: {
2311
+ related: string;
2312
+ };
2313
+ } | undefined;
2314
+ } | undefined;
2315
+ links?: Record<string, string> | undefined;
2316
+ meta?: Record<string, unknown> | undefined;
2317
+ };
2318
+ links?: Record<string, string> | undefined;
2319
+ meta?: Record<string, unknown> | undefined;
2320
+ included?: {
2321
+ type: string;
2322
+ id: string;
2323
+ attributes?: Record<string, unknown> | undefined;
2324
+ relationships?: Record<string, unknown> | undefined;
2325
+ links?: Record<string, string> | undefined;
2326
+ meta?: Record<string, unknown> | undefined;
2327
+ }[] | undefined;
2328
+ }, {
2329
+ data: {
2330
+ type: string;
2331
+ id: string;
2332
+ attributes: {
2333
+ date: string;
2334
+ createdAt: string;
2335
+ updatedAt: string;
2336
+ crop: string;
2337
+ fieldId: string | null;
2338
+ unit: string;
2339
+ quantity: number;
2340
+ pricePerUnit: number;
2341
+ totalAmount: number;
2342
+ buyer: string | null;
2343
+ harvestId: string | null;
2344
+ fieldName?: string | null | undefined;
2345
+ };
2346
+ relationships?: {
2347
+ field?: {
2348
+ links: {
2349
+ related: string;
2350
+ };
2351
+ } | undefined;
2352
+ harvest?: {
2353
+ links: {
2354
+ related: string;
2355
+ };
2356
+ } | undefined;
2357
+ } | undefined;
2358
+ links?: Record<string, string> | undefined;
2359
+ meta?: Record<string, unknown> | undefined;
2360
+ };
2361
+ links?: Record<string, string> | undefined;
2362
+ meta?: Record<string, unknown> | undefined;
2363
+ included?: {
2364
+ type: string;
2365
+ id: string;
2366
+ attributes?: Record<string, unknown> | undefined;
2367
+ relationships?: Record<string, unknown> | undefined;
2368
+ links?: Record<string, string> | undefined;
2369
+ meta?: Record<string, unknown> | undefined;
2370
+ }[] | undefined;
2371
+ }>;
2372
+ export declare const revenueListResponseSchema: z.ZodObject<{
2373
+ data: z.ZodArray<z.ZodObject<{
2374
+ type: z.ZodLiteral<string>;
2375
+ id: z.ZodString;
2376
+ attributes: z.ZodObject<{
2377
+ date: z.ZodString;
2378
+ crop: z.ZodString;
2379
+ quantity: z.ZodNumber;
2380
+ unit: z.ZodString;
2381
+ pricePerUnit: z.ZodNumber;
2382
+ totalAmount: z.ZodNumber;
2383
+ buyer: z.ZodNullable<z.ZodString>;
2384
+ fieldId: z.ZodNullable<z.ZodString>;
2385
+ fieldName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2386
+ harvestId: z.ZodNullable<z.ZodString>;
2387
+ } & {
2388
+ createdAt: z.ZodString;
2389
+ updatedAt: z.ZodString;
2390
+ }, "strip", z.ZodTypeAny, {
2391
+ date: string;
2392
+ createdAt: string;
2393
+ updatedAt: string;
2394
+ crop: string;
2395
+ fieldId: string | null;
2396
+ unit: string;
2397
+ quantity: number;
2398
+ pricePerUnit: number;
2399
+ totalAmount: number;
2400
+ buyer: string | null;
2401
+ harvestId: string | null;
2402
+ fieldName?: string | null | undefined;
2403
+ }, {
2404
+ date: string;
2405
+ createdAt: string;
2406
+ updatedAt: string;
2407
+ crop: string;
2408
+ fieldId: string | null;
2409
+ unit: string;
2410
+ quantity: number;
2411
+ pricePerUnit: number;
2412
+ totalAmount: number;
2413
+ buyer: string | null;
2414
+ harvestId: string | null;
2415
+ fieldName?: string | null | undefined;
2416
+ }>;
2417
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2418
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2419
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2420
+ }, "strip", z.ZodTypeAny, {
2421
+ type: string;
2422
+ id: string;
2423
+ attributes: {
2424
+ date: string;
2425
+ createdAt: string;
2426
+ updatedAt: string;
2427
+ crop: string;
2428
+ fieldId: string | null;
2429
+ unit: string;
2430
+ quantity: number;
2431
+ pricePerUnit: number;
2432
+ totalAmount: number;
2433
+ buyer: string | null;
2434
+ harvestId: string | null;
2435
+ fieldName?: string | null | undefined;
2436
+ };
2437
+ relationships?: Record<string, unknown> | undefined;
2438
+ links?: Record<string, string> | undefined;
2439
+ meta?: Record<string, unknown> | undefined;
2440
+ }, {
2441
+ type: string;
2442
+ id: string;
2443
+ attributes: {
2444
+ date: string;
2445
+ createdAt: string;
2446
+ updatedAt: string;
2447
+ crop: string;
2448
+ fieldId: string | null;
2449
+ unit: string;
2450
+ quantity: number;
2451
+ pricePerUnit: number;
2452
+ totalAmount: number;
2453
+ buyer: string | null;
2454
+ harvestId: string | null;
2455
+ fieldName?: string | null | undefined;
2456
+ };
2457
+ relationships?: Record<string, unknown> | undefined;
2458
+ links?: Record<string, string> | undefined;
2459
+ meta?: Record<string, unknown> | undefined;
2460
+ }>, "many">;
2461
+ included: z.ZodOptional<z.ZodArray<z.ZodObject<{
2462
+ type: z.ZodString;
2463
+ id: z.ZodString;
2464
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2465
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2466
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2467
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2468
+ }, "strip", z.ZodTypeAny, {
2469
+ type: string;
2470
+ id: string;
2471
+ attributes?: Record<string, unknown> | undefined;
2472
+ relationships?: Record<string, unknown> | undefined;
2473
+ links?: Record<string, string> | undefined;
2474
+ meta?: Record<string, unknown> | undefined;
2475
+ }, {
2476
+ type: string;
2477
+ id: string;
2478
+ attributes?: Record<string, unknown> | undefined;
2479
+ relationships?: Record<string, unknown> | undefined;
2480
+ links?: Record<string, string> | undefined;
2481
+ meta?: Record<string, unknown> | undefined;
2482
+ }>, "many">>;
2483
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2484
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2485
+ }, "strip", z.ZodTypeAny, {
2486
+ data: {
2487
+ type: string;
2488
+ id: string;
2489
+ attributes: {
2490
+ date: string;
2491
+ createdAt: string;
2492
+ updatedAt: string;
2493
+ crop: string;
2494
+ fieldId: string | null;
2495
+ unit: string;
2496
+ quantity: number;
2497
+ pricePerUnit: number;
2498
+ totalAmount: number;
2499
+ buyer: string | null;
2500
+ harvestId: string | null;
2501
+ fieldName?: string | null | undefined;
2502
+ };
2503
+ relationships?: Record<string, unknown> | undefined;
2504
+ links?: Record<string, string> | undefined;
2505
+ meta?: Record<string, unknown> | undefined;
2506
+ }[];
2507
+ links?: Record<string, string> | undefined;
2508
+ meta?: Record<string, unknown> | undefined;
2509
+ included?: {
2510
+ type: string;
2511
+ id: string;
2512
+ attributes?: Record<string, unknown> | undefined;
2513
+ relationships?: Record<string, unknown> | undefined;
2514
+ links?: Record<string, string> | undefined;
2515
+ meta?: Record<string, unknown> | undefined;
2516
+ }[] | undefined;
2517
+ }, {
2518
+ data: {
2519
+ type: string;
2520
+ id: string;
2521
+ attributes: {
2522
+ date: string;
2523
+ createdAt: string;
2524
+ updatedAt: string;
2525
+ crop: string;
2526
+ fieldId: string | null;
2527
+ unit: string;
2528
+ quantity: number;
2529
+ pricePerUnit: number;
2530
+ totalAmount: number;
2531
+ buyer: string | null;
2532
+ harvestId: string | null;
2533
+ fieldName?: string | null | undefined;
2534
+ };
2535
+ relationships?: Record<string, unknown> | undefined;
2536
+ links?: Record<string, string> | undefined;
2537
+ meta?: Record<string, unknown> | undefined;
2538
+ }[];
2539
+ links?: Record<string, string> | undefined;
2540
+ meta?: Record<string, unknown> | undefined;
2541
+ included?: {
2542
+ type: string;
2543
+ id: string;
2544
+ attributes?: Record<string, unknown> | undefined;
2545
+ relationships?: Record<string, unknown> | undefined;
2546
+ links?: Record<string, string> | undefined;
2547
+ meta?: Record<string, unknown> | undefined;
2548
+ }[] | undefined;
2549
+ }>;
2550
+ export declare const financeSummaryResourceSchema: z.ZodObject<{
2551
+ type: z.ZodLiteral<string>;
2552
+ id: z.ZodString;
2553
+ attributes: z.ZodObject<{
2554
+ totalPlanned: z.ZodNumber;
2555
+ totalActual: z.ZodNumber;
2556
+ totalRevenue: z.ZodNumber;
2557
+ remainingBudget: z.ZodNumber;
2558
+ netProfit: z.ZodNumber;
2559
+ profitMargin: z.ZodNumber;
2560
+ }, "strip", z.ZodTypeAny, {
2561
+ totalPlanned: number;
2562
+ totalActual: number;
2563
+ totalRevenue: number;
2564
+ remainingBudget: number;
2565
+ netProfit: number;
2566
+ profitMargin: number;
2567
+ }, {
2568
+ totalPlanned: number;
2569
+ totalActual: number;
2570
+ totalRevenue: number;
2571
+ remainingBudget: number;
2572
+ netProfit: number;
2573
+ profitMargin: number;
2574
+ }>;
2575
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2576
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2577
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2578
+ }, "strip", z.ZodTypeAny, {
2579
+ type: string;
2580
+ id: string;
2581
+ attributes: {
2582
+ totalPlanned: number;
2583
+ totalActual: number;
2584
+ totalRevenue: number;
2585
+ remainingBudget: number;
2586
+ netProfit: number;
2587
+ profitMargin: number;
2588
+ };
2589
+ relationships?: Record<string, unknown> | undefined;
2590
+ links?: Record<string, string> | undefined;
2591
+ meta?: Record<string, unknown> | undefined;
2592
+ }, {
2593
+ type: string;
2594
+ id: string;
2595
+ attributes: {
2596
+ totalPlanned: number;
2597
+ totalActual: number;
2598
+ totalRevenue: number;
2599
+ remainingBudget: number;
2600
+ netProfit: number;
2601
+ profitMargin: number;
2602
+ };
2603
+ relationships?: Record<string, unknown> | undefined;
2604
+ links?: Record<string, string> | undefined;
2605
+ meta?: Record<string, unknown> | undefined;
2606
+ }>;
2607
+ export declare const financeSummaryResponseSchema: z.ZodObject<{
2608
+ data: z.ZodObject<{
2609
+ type: z.ZodLiteral<string>;
2610
+ id: z.ZodString;
2611
+ attributes: z.ZodObject<{
2612
+ totalPlanned: z.ZodNumber;
2613
+ totalActual: z.ZodNumber;
2614
+ totalRevenue: z.ZodNumber;
2615
+ remainingBudget: z.ZodNumber;
2616
+ netProfit: z.ZodNumber;
2617
+ profitMargin: z.ZodNumber;
2618
+ }, "strip", z.ZodTypeAny, {
2619
+ totalPlanned: number;
2620
+ totalActual: number;
2621
+ totalRevenue: number;
2622
+ remainingBudget: number;
2623
+ netProfit: number;
2624
+ profitMargin: number;
2625
+ }, {
2626
+ totalPlanned: number;
2627
+ totalActual: number;
2628
+ totalRevenue: number;
2629
+ remainingBudget: number;
2630
+ netProfit: number;
2631
+ profitMargin: number;
2632
+ }>;
2633
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2634
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2635
+ } & {
2636
+ relationships: z.ZodOptional<z.ZodObject<{
2637
+ budgets: z.ZodObject<{
2638
+ data: z.ZodArray<z.ZodObject<{
2639
+ type: z.ZodLiteral<"budgets">;
2640
+ id: z.ZodString;
2641
+ }, "strip", z.ZodTypeAny, {
2642
+ type: "budgets";
2643
+ id: string;
2644
+ }, {
2645
+ type: "budgets";
2646
+ id: string;
2647
+ }>, "many">;
2648
+ links: z.ZodObject<{
2649
+ related: z.ZodString;
2650
+ }, "strip", z.ZodTypeAny, {
2651
+ related: string;
2652
+ }, {
2653
+ related: string;
2654
+ }>;
2655
+ }, "strip", z.ZodTypeAny, {
2656
+ links: {
2657
+ related: string;
2658
+ };
2659
+ data: {
2660
+ type: "budgets";
2661
+ id: string;
2662
+ }[];
2663
+ }, {
2664
+ links: {
2665
+ related: string;
2666
+ };
2667
+ data: {
2668
+ type: "budgets";
2669
+ id: string;
2670
+ }[];
2671
+ }>;
2672
+ }, "strip", z.ZodTypeAny, {
2673
+ budgets: {
2674
+ links: {
2675
+ related: string;
2676
+ };
2677
+ data: {
2678
+ type: "budgets";
2679
+ id: string;
2680
+ }[];
2681
+ };
2682
+ }, {
2683
+ budgets: {
2684
+ links: {
2685
+ related: string;
2686
+ };
2687
+ data: {
2688
+ type: "budgets";
2689
+ id: string;
2690
+ }[];
2691
+ };
2692
+ }>>;
2693
+ }, "strip", z.ZodTypeAny, {
2694
+ type: string;
2695
+ id: string;
2696
+ attributes: {
2697
+ totalPlanned: number;
2698
+ totalActual: number;
2699
+ totalRevenue: number;
2700
+ remainingBudget: number;
2701
+ netProfit: number;
2702
+ profitMargin: number;
2703
+ };
2704
+ relationships?: {
2705
+ budgets: {
2706
+ links: {
2707
+ related: string;
2708
+ };
2709
+ data: {
2710
+ type: "budgets";
2711
+ id: string;
2712
+ }[];
2713
+ };
2714
+ } | undefined;
2715
+ links?: Record<string, string> | undefined;
2716
+ meta?: Record<string, unknown> | undefined;
2717
+ }, {
2718
+ type: string;
2719
+ id: string;
2720
+ attributes: {
2721
+ totalPlanned: number;
2722
+ totalActual: number;
2723
+ totalRevenue: number;
2724
+ remainingBudget: number;
2725
+ netProfit: number;
2726
+ profitMargin: number;
2727
+ };
2728
+ relationships?: {
2729
+ budgets: {
2730
+ links: {
2731
+ related: string;
2732
+ };
2733
+ data: {
2734
+ type: "budgets";
2735
+ id: string;
2736
+ }[];
2737
+ };
2738
+ } | undefined;
2739
+ links?: Record<string, string> | undefined;
2740
+ meta?: Record<string, unknown> | undefined;
2741
+ }>;
2742
+ included: z.ZodOptional<z.ZodArray<z.ZodObject<{
2743
+ type: z.ZodString;
2744
+ id: z.ZodString;
2745
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2746
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2747
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2748
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2749
+ }, "strip", z.ZodTypeAny, {
2750
+ type: string;
2751
+ id: string;
2752
+ attributes?: Record<string, unknown> | undefined;
2753
+ relationships?: Record<string, unknown> | undefined;
2754
+ links?: Record<string, string> | undefined;
2755
+ meta?: Record<string, unknown> | undefined;
2756
+ }, {
2757
+ type: string;
2758
+ id: string;
2759
+ attributes?: Record<string, unknown> | undefined;
2760
+ relationships?: Record<string, unknown> | undefined;
2761
+ links?: Record<string, string> | undefined;
2762
+ meta?: Record<string, unknown> | undefined;
2763
+ }>, "many">>;
2764
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2765
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2766
+ }, "strip", z.ZodTypeAny, {
2767
+ data: {
2768
+ type: string;
2769
+ id: string;
2770
+ attributes: {
2771
+ totalPlanned: number;
2772
+ totalActual: number;
2773
+ totalRevenue: number;
2774
+ remainingBudget: number;
2775
+ netProfit: number;
2776
+ profitMargin: number;
2777
+ };
2778
+ relationships?: {
2779
+ budgets: {
2780
+ links: {
2781
+ related: string;
2782
+ };
2783
+ data: {
2784
+ type: "budgets";
2785
+ id: string;
2786
+ }[];
2787
+ };
2788
+ } | undefined;
2789
+ links?: Record<string, string> | undefined;
2790
+ meta?: Record<string, unknown> | undefined;
2791
+ };
2792
+ links?: Record<string, string> | undefined;
2793
+ meta?: Record<string, unknown> | undefined;
2794
+ included?: {
2795
+ type: string;
2796
+ id: string;
2797
+ attributes?: Record<string, unknown> | undefined;
2798
+ relationships?: Record<string, unknown> | undefined;
2799
+ links?: Record<string, string> | undefined;
2800
+ meta?: Record<string, unknown> | undefined;
2801
+ }[] | undefined;
2802
+ }, {
2803
+ data: {
2804
+ type: string;
2805
+ id: string;
2806
+ attributes: {
2807
+ totalPlanned: number;
2808
+ totalActual: number;
2809
+ totalRevenue: number;
2810
+ remainingBudget: number;
2811
+ netProfit: number;
2812
+ profitMargin: number;
2813
+ };
2814
+ relationships?: {
2815
+ budgets: {
2816
+ links: {
2817
+ related: string;
2818
+ };
2819
+ data: {
2820
+ type: "budgets";
2821
+ id: string;
2822
+ }[];
2823
+ };
2824
+ } | undefined;
2825
+ links?: Record<string, string> | undefined;
2826
+ meta?: Record<string, unknown> | undefined;
2827
+ };
2828
+ links?: Record<string, string> | undefined;
2829
+ meta?: Record<string, unknown> | undefined;
2830
+ included?: {
2831
+ type: string;
2832
+ id: string;
2833
+ attributes?: Record<string, unknown> | undefined;
2834
+ relationships?: Record<string, unknown> | undefined;
2835
+ links?: Record<string, string> | undefined;
2836
+ meta?: Record<string, unknown> | undefined;
2837
+ }[] | undefined;
2838
+ }>;
2839
+ export type ExpenseAllocationType = z.infer<typeof expenseAllocationTypeSchema>;
2840
+ export type CreateBudgetAttributes = z.infer<typeof createBudgetAttributesSchema>;
2841
+ export type UpdateBudgetAttributes = z.infer<typeof updateBudgetAttributesSchema>;
2842
+ export type CreateExpenseAttributes = z.infer<typeof createExpenseAttributesSchema>;
2843
+ export type UpdateExpenseAttributes = z.infer<typeof updateExpenseAttributesSchema>;
2844
+ export type CreateRevenueAttributes = z.infer<typeof createRevenueAttributesSchema>;
2845
+ export type UpdateRevenueAttributes = z.infer<typeof updateRevenueAttributesSchema>;
2846
+ export type CreateBudgetInput = z.infer<typeof createBudgetSchema>;
2847
+ export type UpdateBudgetInput = z.infer<typeof updateBudgetSchema>;
2848
+ export type CreateExpenseInput = z.infer<typeof createExpenseSchema>;
2849
+ export type UpdateExpenseInput = z.infer<typeof updateExpenseSchema>;
2850
+ export type CreateRevenueInput = z.infer<typeof createRevenueSchema>;
2851
+ export type UpdateRevenueInput = z.infer<typeof updateRevenueSchema>;
2852
+ export type BudgetAttributes = z.infer<typeof budgetAttributesSchema>;
2853
+ export type ExpenseAttributes = z.infer<typeof expenseAttributesSchema>;
2854
+ export type RevenueAttributes = z.infer<typeof revenueAttributesSchema>;
2855
+ export type BudgetResource = z.infer<typeof budgetResourceSchema>;
2856
+ export type ExpenseResource = z.infer<typeof expenseResourceSchema>;
2857
+ export type RevenueResource = z.infer<typeof revenueResourceSchema>;
2858
+ export type ExpenseDetailResource = z.infer<typeof expenseDetailResourceSchema>;
2859
+ export type RevenueDetailResource = z.infer<typeof revenueDetailResourceSchema>;
2860
+ export type BudgetResponse = z.infer<typeof budgetResponseSchema>;
2861
+ export type BudgetListResponse = z.infer<typeof budgetListResponseSchema>;
2862
+ export type ExpenseResponse = z.infer<typeof expenseResponseSchema>;
2863
+ export type ExpenseDetailResponse = z.infer<typeof expenseDetailResponseSchema>;
2864
+ export type ExpenseListResponse = z.infer<typeof expenseListResponseSchema>;
2865
+ export type RevenueResponse = z.infer<typeof revenueResponseSchema>;
2866
+ export type RevenueDetailResponse = z.infer<typeof revenueDetailResponseSchema>;
2867
+ export type RevenueListResponse = z.infer<typeof revenueListResponseSchema>;
2868
+ export type FinanceSummaryResponse = z.infer<typeof financeSummaryResponseSchema>;
2869
+ //# sourceMappingURL=finance.schemas.d.ts.map