@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,1774 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * Supplier and buyer schemas - JSON:API compliant
4
+ */
5
+ export declare const supplierTypeSchema: z.ZodEnum<["seed", "fertilizer", "pesticide", "equipment", "labor", "other"]>;
6
+ export declare const priceHistoryEntryAttributesSchema: z.ZodObject<{
7
+ date: z.ZodString;
8
+ item: z.ZodNullable<z.ZodString>;
9
+ price: z.ZodNumber;
10
+ unit: z.ZodNullable<z.ZodString>;
11
+ quantity: z.ZodNullable<z.ZodNumber>;
12
+ notes: z.ZodNullable<z.ZodString>;
13
+ }, "strip", z.ZodTypeAny, {
14
+ date: string;
15
+ notes: string | null;
16
+ unit: string | null;
17
+ quantity: number | null;
18
+ item: string | null;
19
+ price: number;
20
+ }, {
21
+ date: string;
22
+ notes: string | null;
23
+ unit: string | null;
24
+ quantity: number | null;
25
+ item: string | null;
26
+ price: number;
27
+ }>;
28
+ export declare const supplierAttributesSchema: z.ZodObject<{
29
+ farmId: z.ZodString;
30
+ name: z.ZodString;
31
+ type: z.ZodEnum<["seed", "fertilizer", "pesticide", "equipment", "labor", "other"]>;
32
+ contactPerson: z.ZodNullable<z.ZodString>;
33
+ email: z.ZodNullable<z.ZodString>;
34
+ phone: z.ZodNullable<z.ZodString>;
35
+ address: z.ZodNullable<z.ZodString>;
36
+ rating: z.ZodNullable<z.ZodNumber>;
37
+ notes: z.ZodNullable<z.ZodString>;
38
+ priceHistory: z.ZodOptional<z.ZodArray<z.ZodObject<{
39
+ date: z.ZodString;
40
+ item: z.ZodNullable<z.ZodString>;
41
+ price: z.ZodNumber;
42
+ unit: z.ZodNullable<z.ZodString>;
43
+ quantity: z.ZodNullable<z.ZodNumber>;
44
+ notes: z.ZodNullable<z.ZodString>;
45
+ }, "strip", z.ZodTypeAny, {
46
+ date: string;
47
+ notes: string | null;
48
+ unit: string | null;
49
+ quantity: number | null;
50
+ item: string | null;
51
+ price: number;
52
+ }, {
53
+ date: string;
54
+ notes: string | null;
55
+ unit: string | null;
56
+ quantity: number | null;
57
+ item: string | null;
58
+ price: number;
59
+ }>, "many">>;
60
+ } & {
61
+ createdAt: z.ZodString;
62
+ updatedAt: z.ZodString;
63
+ }, "strip", z.ZodTypeAny, {
64
+ type: "other" | "equipment" | "seed" | "fertilizer" | "pesticide" | "labor";
65
+ email: string | null;
66
+ createdAt: string;
67
+ updatedAt: string;
68
+ name: string;
69
+ phone: string | null;
70
+ farmId: string;
71
+ notes: string | null;
72
+ contactPerson: string | null;
73
+ address: string | null;
74
+ rating: number | null;
75
+ priceHistory?: {
76
+ date: string;
77
+ notes: string | null;
78
+ unit: string | null;
79
+ quantity: number | null;
80
+ item: string | null;
81
+ price: number;
82
+ }[] | undefined;
83
+ }, {
84
+ type: "other" | "equipment" | "seed" | "fertilizer" | "pesticide" | "labor";
85
+ email: string | null;
86
+ createdAt: string;
87
+ updatedAt: string;
88
+ name: string;
89
+ phone: string | null;
90
+ farmId: string;
91
+ notes: string | null;
92
+ contactPerson: string | null;
93
+ address: string | null;
94
+ rating: number | null;
95
+ priceHistory?: {
96
+ date: string;
97
+ notes: string | null;
98
+ unit: string | null;
99
+ quantity: number | null;
100
+ item: string | null;
101
+ price: number;
102
+ }[] | undefined;
103
+ }>;
104
+ export declare const createSupplierAttributesSchema: z.ZodObject<{
105
+ name: z.ZodString;
106
+ type: z.ZodEnum<["seed", "fertilizer", "pesticide", "equipment", "labor", "other"]>;
107
+ contactPerson: z.ZodOptional<z.ZodString>;
108
+ email: z.ZodOptional<z.ZodString>;
109
+ phone: z.ZodOptional<z.ZodString>;
110
+ address: z.ZodOptional<z.ZodString>;
111
+ rating: z.ZodOptional<z.ZodNumber>;
112
+ notes: z.ZodOptional<z.ZodString>;
113
+ }, "strip", z.ZodTypeAny, {
114
+ type: "other" | "equipment" | "seed" | "fertilizer" | "pesticide" | "labor";
115
+ name: string;
116
+ email?: string | undefined;
117
+ phone?: string | undefined;
118
+ notes?: string | undefined;
119
+ contactPerson?: string | undefined;
120
+ address?: string | undefined;
121
+ rating?: number | undefined;
122
+ }, {
123
+ type: "other" | "equipment" | "seed" | "fertilizer" | "pesticide" | "labor";
124
+ name: string;
125
+ email?: string | undefined;
126
+ phone?: string | undefined;
127
+ notes?: string | undefined;
128
+ contactPerson?: string | undefined;
129
+ address?: string | undefined;
130
+ rating?: number | undefined;
131
+ }>;
132
+ export declare const updateSupplierAttributesSchema: z.ZodObject<{
133
+ name: z.ZodOptional<z.ZodString>;
134
+ type: z.ZodOptional<z.ZodEnum<["seed", "fertilizer", "pesticide", "equipment", "labor", "other"]>>;
135
+ contactPerson: z.ZodOptional<z.ZodNullable<z.ZodString>>;
136
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
137
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
138
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
139
+ rating: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
140
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
141
+ }, "strip", z.ZodTypeAny, {
142
+ type?: "other" | "equipment" | "seed" | "fertilizer" | "pesticide" | "labor" | undefined;
143
+ email?: string | null | undefined;
144
+ name?: string | undefined;
145
+ phone?: string | null | undefined;
146
+ notes?: string | null | undefined;
147
+ contactPerson?: string | null | undefined;
148
+ address?: string | null | undefined;
149
+ rating?: number | null | undefined;
150
+ }, {
151
+ type?: "other" | "equipment" | "seed" | "fertilizer" | "pesticide" | "labor" | undefined;
152
+ email?: string | null | undefined;
153
+ name?: string | undefined;
154
+ phone?: string | null | undefined;
155
+ notes?: string | null | undefined;
156
+ contactPerson?: string | null | undefined;
157
+ address?: string | null | undefined;
158
+ rating?: number | null | undefined;
159
+ }>;
160
+ export declare const buyerAttributesSchema: z.ZodObject<{
161
+ farmId: z.ZodString;
162
+ name: z.ZodString;
163
+ contactPerson: z.ZodNullable<z.ZodString>;
164
+ email: z.ZodNullable<z.ZodString>;
165
+ phone: z.ZodNullable<z.ZodString>;
166
+ address: z.ZodNullable<z.ZodString>;
167
+ crops: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
168
+ rating: z.ZodNullable<z.ZodNumber>;
169
+ notes: z.ZodNullable<z.ZodString>;
170
+ priceHistory: z.ZodOptional<z.ZodArray<z.ZodObject<{
171
+ date: z.ZodString;
172
+ item: z.ZodNullable<z.ZodString>;
173
+ price: z.ZodNumber;
174
+ unit: z.ZodNullable<z.ZodString>;
175
+ quantity: z.ZodNullable<z.ZodNumber>;
176
+ notes: z.ZodNullable<z.ZodString>;
177
+ }, "strip", z.ZodTypeAny, {
178
+ date: string;
179
+ notes: string | null;
180
+ unit: string | null;
181
+ quantity: number | null;
182
+ item: string | null;
183
+ price: number;
184
+ }, {
185
+ date: string;
186
+ notes: string | null;
187
+ unit: string | null;
188
+ quantity: number | null;
189
+ item: string | null;
190
+ price: number;
191
+ }>, "many">>;
192
+ } & {
193
+ createdAt: z.ZodString;
194
+ updatedAt: z.ZodString;
195
+ }, "strip", z.ZodTypeAny, {
196
+ email: string | null;
197
+ createdAt: string;
198
+ updatedAt: string;
199
+ name: string;
200
+ phone: string | null;
201
+ farmId: string;
202
+ notes: string | null;
203
+ contactPerson: string | null;
204
+ address: string | null;
205
+ rating: number | null;
206
+ priceHistory?: {
207
+ date: string;
208
+ notes: string | null;
209
+ unit: string | null;
210
+ quantity: number | null;
211
+ item: string | null;
212
+ price: number;
213
+ }[] | undefined;
214
+ crops?: string[] | undefined;
215
+ }, {
216
+ email: string | null;
217
+ createdAt: string;
218
+ updatedAt: string;
219
+ name: string;
220
+ phone: string | null;
221
+ farmId: string;
222
+ notes: string | null;
223
+ contactPerson: string | null;
224
+ address: string | null;
225
+ rating: number | null;
226
+ priceHistory?: {
227
+ date: string;
228
+ notes: string | null;
229
+ unit: string | null;
230
+ quantity: number | null;
231
+ item: string | null;
232
+ price: number;
233
+ }[] | undefined;
234
+ crops?: string[] | undefined;
235
+ }>;
236
+ export declare const createBuyerAttributesSchema: z.ZodObject<{
237
+ name: z.ZodString;
238
+ contactPerson: z.ZodOptional<z.ZodString>;
239
+ email: z.ZodOptional<z.ZodString>;
240
+ phone: z.ZodOptional<z.ZodString>;
241
+ address: z.ZodOptional<z.ZodString>;
242
+ crops: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
243
+ rating: z.ZodOptional<z.ZodNumber>;
244
+ notes: z.ZodOptional<z.ZodString>;
245
+ }, "strip", z.ZodTypeAny, {
246
+ name: string;
247
+ email?: string | undefined;
248
+ phone?: string | undefined;
249
+ notes?: string | undefined;
250
+ contactPerson?: string | undefined;
251
+ address?: string | undefined;
252
+ rating?: number | undefined;
253
+ crops?: string[] | undefined;
254
+ }, {
255
+ name: string;
256
+ email?: string | undefined;
257
+ phone?: string | undefined;
258
+ notes?: string | undefined;
259
+ contactPerson?: string | undefined;
260
+ address?: string | undefined;
261
+ rating?: number | undefined;
262
+ crops?: string[] | undefined;
263
+ }>;
264
+ export declare const updateBuyerAttributesSchema: z.ZodObject<{
265
+ name: z.ZodOptional<z.ZodString>;
266
+ contactPerson: z.ZodOptional<z.ZodNullable<z.ZodString>>;
267
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
268
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
269
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
270
+ crops: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
271
+ rating: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
272
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
273
+ }, "strip", z.ZodTypeAny, {
274
+ email?: string | null | undefined;
275
+ name?: string | undefined;
276
+ phone?: string | null | undefined;
277
+ notes?: string | null | undefined;
278
+ contactPerson?: string | null | undefined;
279
+ address?: string | null | undefined;
280
+ rating?: number | null | undefined;
281
+ crops?: string[] | undefined;
282
+ }, {
283
+ email?: string | null | undefined;
284
+ name?: string | undefined;
285
+ phone?: string | null | undefined;
286
+ notes?: string | null | undefined;
287
+ contactPerson?: string | null | undefined;
288
+ address?: string | null | undefined;
289
+ rating?: number | null | undefined;
290
+ crops?: string[] | undefined;
291
+ }>;
292
+ export declare const createSupplierSchema: z.ZodObject<{
293
+ type: z.ZodLiteral<"suppliers">;
294
+ attributes: z.ZodObject<{
295
+ name: z.ZodString;
296
+ type: z.ZodEnum<["seed", "fertilizer", "pesticide", "equipment", "labor", "other"]>;
297
+ contactPerson: z.ZodOptional<z.ZodString>;
298
+ email: z.ZodOptional<z.ZodString>;
299
+ phone: z.ZodOptional<z.ZodString>;
300
+ address: z.ZodOptional<z.ZodString>;
301
+ rating: z.ZodOptional<z.ZodNumber>;
302
+ notes: z.ZodOptional<z.ZodString>;
303
+ }, "strip", z.ZodTypeAny, {
304
+ type: "other" | "equipment" | "seed" | "fertilizer" | "pesticide" | "labor";
305
+ name: string;
306
+ email?: string | undefined;
307
+ phone?: string | undefined;
308
+ notes?: string | undefined;
309
+ contactPerson?: string | undefined;
310
+ address?: string | undefined;
311
+ rating?: number | undefined;
312
+ }, {
313
+ type: "other" | "equipment" | "seed" | "fertilizer" | "pesticide" | "labor";
314
+ name: string;
315
+ email?: string | undefined;
316
+ phone?: string | undefined;
317
+ notes?: string | undefined;
318
+ contactPerson?: string | undefined;
319
+ address?: string | undefined;
320
+ rating?: number | undefined;
321
+ }>;
322
+ }, "strip", z.ZodTypeAny, {
323
+ type: "suppliers";
324
+ attributes: {
325
+ type: "other" | "equipment" | "seed" | "fertilizer" | "pesticide" | "labor";
326
+ name: string;
327
+ email?: string | undefined;
328
+ phone?: string | undefined;
329
+ notes?: string | undefined;
330
+ contactPerson?: string | undefined;
331
+ address?: string | undefined;
332
+ rating?: number | undefined;
333
+ };
334
+ }, {
335
+ type: "suppliers";
336
+ attributes: {
337
+ type: "other" | "equipment" | "seed" | "fertilizer" | "pesticide" | "labor";
338
+ name: string;
339
+ email?: string | undefined;
340
+ phone?: string | undefined;
341
+ notes?: string | undefined;
342
+ contactPerson?: string | undefined;
343
+ address?: string | undefined;
344
+ rating?: number | undefined;
345
+ };
346
+ }>;
347
+ export declare const updateSupplierSchema: z.ZodObject<{
348
+ type: z.ZodLiteral<"suppliers">;
349
+ id: z.ZodString;
350
+ attributes: z.ZodObject<{
351
+ name: z.ZodOptional<z.ZodString>;
352
+ type: z.ZodOptional<z.ZodEnum<["seed", "fertilizer", "pesticide", "equipment", "labor", "other"]>>;
353
+ contactPerson: z.ZodOptional<z.ZodNullable<z.ZodString>>;
354
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
355
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
356
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
357
+ rating: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
358
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
359
+ }, "strip", z.ZodTypeAny, {
360
+ type?: "other" | "equipment" | "seed" | "fertilizer" | "pesticide" | "labor" | undefined;
361
+ email?: string | null | undefined;
362
+ name?: string | undefined;
363
+ phone?: string | null | undefined;
364
+ notes?: string | null | undefined;
365
+ contactPerson?: string | null | undefined;
366
+ address?: string | null | undefined;
367
+ rating?: number | null | undefined;
368
+ }, {
369
+ type?: "other" | "equipment" | "seed" | "fertilizer" | "pesticide" | "labor" | undefined;
370
+ email?: string | null | undefined;
371
+ name?: string | undefined;
372
+ phone?: string | null | undefined;
373
+ notes?: string | null | undefined;
374
+ contactPerson?: string | null | undefined;
375
+ address?: string | null | undefined;
376
+ rating?: number | null | undefined;
377
+ }>;
378
+ }, "strip", z.ZodTypeAny, {
379
+ type: "suppliers";
380
+ id: string;
381
+ attributes: {
382
+ type?: "other" | "equipment" | "seed" | "fertilizer" | "pesticide" | "labor" | undefined;
383
+ email?: string | null | undefined;
384
+ name?: string | undefined;
385
+ phone?: string | null | undefined;
386
+ notes?: string | null | undefined;
387
+ contactPerson?: string | null | undefined;
388
+ address?: string | null | undefined;
389
+ rating?: number | null | undefined;
390
+ };
391
+ }, {
392
+ type: "suppliers";
393
+ id: string;
394
+ attributes: {
395
+ type?: "other" | "equipment" | "seed" | "fertilizer" | "pesticide" | "labor" | undefined;
396
+ email?: string | null | undefined;
397
+ name?: string | undefined;
398
+ phone?: string | null | undefined;
399
+ notes?: string | null | undefined;
400
+ contactPerson?: string | null | undefined;
401
+ address?: string | null | undefined;
402
+ rating?: number | null | undefined;
403
+ };
404
+ }>;
405
+ export declare const createBuyerSchema: z.ZodObject<{
406
+ type: z.ZodLiteral<"buyers">;
407
+ attributes: z.ZodObject<{
408
+ name: z.ZodString;
409
+ contactPerson: z.ZodOptional<z.ZodString>;
410
+ email: z.ZodOptional<z.ZodString>;
411
+ phone: z.ZodOptional<z.ZodString>;
412
+ address: z.ZodOptional<z.ZodString>;
413
+ crops: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
414
+ rating: z.ZodOptional<z.ZodNumber>;
415
+ notes: z.ZodOptional<z.ZodString>;
416
+ }, "strip", z.ZodTypeAny, {
417
+ name: string;
418
+ email?: string | undefined;
419
+ phone?: string | undefined;
420
+ notes?: string | undefined;
421
+ contactPerson?: string | undefined;
422
+ address?: string | undefined;
423
+ rating?: number | undefined;
424
+ crops?: string[] | undefined;
425
+ }, {
426
+ name: string;
427
+ email?: string | undefined;
428
+ phone?: string | undefined;
429
+ notes?: string | undefined;
430
+ contactPerson?: string | undefined;
431
+ address?: string | undefined;
432
+ rating?: number | undefined;
433
+ crops?: string[] | undefined;
434
+ }>;
435
+ }, "strip", z.ZodTypeAny, {
436
+ type: "buyers";
437
+ attributes: {
438
+ name: string;
439
+ email?: string | undefined;
440
+ phone?: string | undefined;
441
+ notes?: string | undefined;
442
+ contactPerson?: string | undefined;
443
+ address?: string | undefined;
444
+ rating?: number | undefined;
445
+ crops?: string[] | undefined;
446
+ };
447
+ }, {
448
+ type: "buyers";
449
+ attributes: {
450
+ name: string;
451
+ email?: string | undefined;
452
+ phone?: string | undefined;
453
+ notes?: string | undefined;
454
+ contactPerson?: string | undefined;
455
+ address?: string | undefined;
456
+ rating?: number | undefined;
457
+ crops?: string[] | undefined;
458
+ };
459
+ }>;
460
+ export declare const updateBuyerSchema: z.ZodObject<{
461
+ type: z.ZodLiteral<"buyers">;
462
+ id: z.ZodString;
463
+ attributes: z.ZodObject<{
464
+ name: z.ZodOptional<z.ZodString>;
465
+ contactPerson: z.ZodOptional<z.ZodNullable<z.ZodString>>;
466
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
467
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
468
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
469
+ crops: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
470
+ rating: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
471
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
472
+ }, "strip", z.ZodTypeAny, {
473
+ email?: string | null | undefined;
474
+ name?: string | undefined;
475
+ phone?: string | null | undefined;
476
+ notes?: string | null | undefined;
477
+ contactPerson?: string | null | undefined;
478
+ address?: string | null | undefined;
479
+ rating?: number | null | undefined;
480
+ crops?: string[] | undefined;
481
+ }, {
482
+ email?: string | null | undefined;
483
+ name?: string | undefined;
484
+ phone?: string | null | undefined;
485
+ notes?: string | null | undefined;
486
+ contactPerson?: string | null | undefined;
487
+ address?: string | null | undefined;
488
+ rating?: number | null | undefined;
489
+ crops?: string[] | undefined;
490
+ }>;
491
+ }, "strip", z.ZodTypeAny, {
492
+ type: "buyers";
493
+ id: string;
494
+ attributes: {
495
+ email?: string | null | undefined;
496
+ name?: string | undefined;
497
+ phone?: string | null | undefined;
498
+ notes?: string | null | undefined;
499
+ contactPerson?: string | null | undefined;
500
+ address?: string | null | undefined;
501
+ rating?: number | null | undefined;
502
+ crops?: string[] | undefined;
503
+ };
504
+ }, {
505
+ type: "buyers";
506
+ id: string;
507
+ attributes: {
508
+ email?: string | null | undefined;
509
+ name?: string | undefined;
510
+ phone?: string | null | undefined;
511
+ notes?: string | null | undefined;
512
+ contactPerson?: string | null | undefined;
513
+ address?: string | null | undefined;
514
+ rating?: number | null | undefined;
515
+ crops?: string[] | undefined;
516
+ };
517
+ }>;
518
+ export declare const supplierResourceSchema: z.ZodObject<{
519
+ type: z.ZodLiteral<string>;
520
+ id: z.ZodString;
521
+ attributes: z.ZodObject<{
522
+ farmId: z.ZodString;
523
+ name: z.ZodString;
524
+ type: z.ZodEnum<["seed", "fertilizer", "pesticide", "equipment", "labor", "other"]>;
525
+ contactPerson: z.ZodNullable<z.ZodString>;
526
+ email: z.ZodNullable<z.ZodString>;
527
+ phone: z.ZodNullable<z.ZodString>;
528
+ address: z.ZodNullable<z.ZodString>;
529
+ rating: z.ZodNullable<z.ZodNumber>;
530
+ notes: z.ZodNullable<z.ZodString>;
531
+ priceHistory: z.ZodOptional<z.ZodArray<z.ZodObject<{
532
+ date: z.ZodString;
533
+ item: z.ZodNullable<z.ZodString>;
534
+ price: z.ZodNumber;
535
+ unit: z.ZodNullable<z.ZodString>;
536
+ quantity: z.ZodNullable<z.ZodNumber>;
537
+ notes: z.ZodNullable<z.ZodString>;
538
+ }, "strip", z.ZodTypeAny, {
539
+ date: string;
540
+ notes: string | null;
541
+ unit: string | null;
542
+ quantity: number | null;
543
+ item: string | null;
544
+ price: number;
545
+ }, {
546
+ date: string;
547
+ notes: string | null;
548
+ unit: string | null;
549
+ quantity: number | null;
550
+ item: string | null;
551
+ price: number;
552
+ }>, "many">>;
553
+ } & {
554
+ createdAt: z.ZodString;
555
+ updatedAt: z.ZodString;
556
+ }, "strip", z.ZodTypeAny, {
557
+ type: "other" | "equipment" | "seed" | "fertilizer" | "pesticide" | "labor";
558
+ email: string | null;
559
+ createdAt: string;
560
+ updatedAt: string;
561
+ name: string;
562
+ phone: string | null;
563
+ farmId: string;
564
+ notes: string | null;
565
+ contactPerson: string | null;
566
+ address: string | null;
567
+ rating: number | null;
568
+ priceHistory?: {
569
+ date: string;
570
+ notes: string | null;
571
+ unit: string | null;
572
+ quantity: number | null;
573
+ item: string | null;
574
+ price: number;
575
+ }[] | undefined;
576
+ }, {
577
+ type: "other" | "equipment" | "seed" | "fertilizer" | "pesticide" | "labor";
578
+ email: string | null;
579
+ createdAt: string;
580
+ updatedAt: string;
581
+ name: string;
582
+ phone: string | null;
583
+ farmId: string;
584
+ notes: string | null;
585
+ contactPerson: string | null;
586
+ address: string | null;
587
+ rating: number | null;
588
+ priceHistory?: {
589
+ date: string;
590
+ notes: string | null;
591
+ unit: string | null;
592
+ quantity: number | null;
593
+ item: string | null;
594
+ price: number;
595
+ }[] | undefined;
596
+ }>;
597
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
598
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
599
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
600
+ }, "strip", z.ZodTypeAny, {
601
+ type: string;
602
+ id: string;
603
+ attributes: {
604
+ type: "other" | "equipment" | "seed" | "fertilizer" | "pesticide" | "labor";
605
+ email: string | null;
606
+ createdAt: string;
607
+ updatedAt: string;
608
+ name: string;
609
+ phone: string | null;
610
+ farmId: string;
611
+ notes: string | null;
612
+ contactPerson: string | null;
613
+ address: string | null;
614
+ rating: number | null;
615
+ priceHistory?: {
616
+ date: string;
617
+ notes: string | null;
618
+ unit: string | null;
619
+ quantity: number | null;
620
+ item: string | null;
621
+ price: number;
622
+ }[] | undefined;
623
+ };
624
+ relationships?: Record<string, unknown> | undefined;
625
+ links?: Record<string, string> | undefined;
626
+ meta?: Record<string, unknown> | undefined;
627
+ }, {
628
+ type: string;
629
+ id: string;
630
+ attributes: {
631
+ type: "other" | "equipment" | "seed" | "fertilizer" | "pesticide" | "labor";
632
+ email: string | null;
633
+ createdAt: string;
634
+ updatedAt: string;
635
+ name: string;
636
+ phone: string | null;
637
+ farmId: string;
638
+ notes: string | null;
639
+ contactPerson: string | null;
640
+ address: string | null;
641
+ rating: number | null;
642
+ priceHistory?: {
643
+ date: string;
644
+ notes: string | null;
645
+ unit: string | null;
646
+ quantity: number | null;
647
+ item: string | null;
648
+ price: number;
649
+ }[] | undefined;
650
+ };
651
+ relationships?: Record<string, unknown> | undefined;
652
+ links?: Record<string, string> | undefined;
653
+ meta?: Record<string, unknown> | undefined;
654
+ }>;
655
+ export declare const buyerResourceSchema: z.ZodObject<{
656
+ type: z.ZodLiteral<string>;
657
+ id: z.ZodString;
658
+ attributes: z.ZodObject<{
659
+ farmId: z.ZodString;
660
+ name: z.ZodString;
661
+ contactPerson: z.ZodNullable<z.ZodString>;
662
+ email: z.ZodNullable<z.ZodString>;
663
+ phone: z.ZodNullable<z.ZodString>;
664
+ address: z.ZodNullable<z.ZodString>;
665
+ crops: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
666
+ rating: z.ZodNullable<z.ZodNumber>;
667
+ notes: z.ZodNullable<z.ZodString>;
668
+ priceHistory: z.ZodOptional<z.ZodArray<z.ZodObject<{
669
+ date: z.ZodString;
670
+ item: z.ZodNullable<z.ZodString>;
671
+ price: z.ZodNumber;
672
+ unit: z.ZodNullable<z.ZodString>;
673
+ quantity: z.ZodNullable<z.ZodNumber>;
674
+ notes: z.ZodNullable<z.ZodString>;
675
+ }, "strip", z.ZodTypeAny, {
676
+ date: string;
677
+ notes: string | null;
678
+ unit: string | null;
679
+ quantity: number | null;
680
+ item: string | null;
681
+ price: number;
682
+ }, {
683
+ date: string;
684
+ notes: string | null;
685
+ unit: string | null;
686
+ quantity: number | null;
687
+ item: string | null;
688
+ price: number;
689
+ }>, "many">>;
690
+ } & {
691
+ createdAt: z.ZodString;
692
+ updatedAt: z.ZodString;
693
+ }, "strip", z.ZodTypeAny, {
694
+ email: string | null;
695
+ createdAt: string;
696
+ updatedAt: string;
697
+ name: string;
698
+ phone: string | null;
699
+ farmId: string;
700
+ notes: string | null;
701
+ contactPerson: string | null;
702
+ address: string | null;
703
+ rating: number | null;
704
+ priceHistory?: {
705
+ date: string;
706
+ notes: string | null;
707
+ unit: string | null;
708
+ quantity: number | null;
709
+ item: string | null;
710
+ price: number;
711
+ }[] | undefined;
712
+ crops?: string[] | undefined;
713
+ }, {
714
+ email: string | null;
715
+ createdAt: string;
716
+ updatedAt: string;
717
+ name: string;
718
+ phone: string | null;
719
+ farmId: string;
720
+ notes: string | null;
721
+ contactPerson: string | null;
722
+ address: string | null;
723
+ rating: number | null;
724
+ priceHistory?: {
725
+ date: string;
726
+ notes: string | null;
727
+ unit: string | null;
728
+ quantity: number | null;
729
+ item: string | null;
730
+ price: number;
731
+ }[] | undefined;
732
+ crops?: string[] | undefined;
733
+ }>;
734
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
735
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
736
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
737
+ }, "strip", z.ZodTypeAny, {
738
+ type: string;
739
+ id: string;
740
+ attributes: {
741
+ email: string | null;
742
+ createdAt: string;
743
+ updatedAt: string;
744
+ name: string;
745
+ phone: string | null;
746
+ farmId: string;
747
+ notes: string | null;
748
+ contactPerson: string | null;
749
+ address: string | null;
750
+ rating: number | null;
751
+ priceHistory?: {
752
+ date: string;
753
+ notes: string | null;
754
+ unit: string | null;
755
+ quantity: number | null;
756
+ item: string | null;
757
+ price: number;
758
+ }[] | undefined;
759
+ crops?: string[] | undefined;
760
+ };
761
+ relationships?: Record<string, unknown> | undefined;
762
+ links?: Record<string, string> | undefined;
763
+ meta?: Record<string, unknown> | undefined;
764
+ }, {
765
+ type: string;
766
+ id: string;
767
+ attributes: {
768
+ email: string | null;
769
+ createdAt: string;
770
+ updatedAt: string;
771
+ name: string;
772
+ phone: string | null;
773
+ farmId: string;
774
+ notes: string | null;
775
+ contactPerson: string | null;
776
+ address: string | null;
777
+ rating: number | null;
778
+ priceHistory?: {
779
+ date: string;
780
+ notes: string | null;
781
+ unit: string | null;
782
+ quantity: number | null;
783
+ item: string | null;
784
+ price: number;
785
+ }[] | undefined;
786
+ crops?: string[] | undefined;
787
+ };
788
+ relationships?: Record<string, unknown> | undefined;
789
+ links?: Record<string, string> | undefined;
790
+ meta?: Record<string, unknown> | undefined;
791
+ }>;
792
+ export declare const supplierResponseSchema: z.ZodObject<{
793
+ data: z.ZodObject<{
794
+ type: z.ZodLiteral<string>;
795
+ id: z.ZodString;
796
+ attributes: z.ZodObject<{
797
+ farmId: z.ZodString;
798
+ name: z.ZodString;
799
+ type: z.ZodEnum<["seed", "fertilizer", "pesticide", "equipment", "labor", "other"]>;
800
+ contactPerson: z.ZodNullable<z.ZodString>;
801
+ email: z.ZodNullable<z.ZodString>;
802
+ phone: z.ZodNullable<z.ZodString>;
803
+ address: z.ZodNullable<z.ZodString>;
804
+ rating: z.ZodNullable<z.ZodNumber>;
805
+ notes: z.ZodNullable<z.ZodString>;
806
+ priceHistory: z.ZodOptional<z.ZodArray<z.ZodObject<{
807
+ date: z.ZodString;
808
+ item: z.ZodNullable<z.ZodString>;
809
+ price: z.ZodNumber;
810
+ unit: z.ZodNullable<z.ZodString>;
811
+ quantity: z.ZodNullable<z.ZodNumber>;
812
+ notes: z.ZodNullable<z.ZodString>;
813
+ }, "strip", z.ZodTypeAny, {
814
+ date: string;
815
+ notes: string | null;
816
+ unit: string | null;
817
+ quantity: number | null;
818
+ item: string | null;
819
+ price: number;
820
+ }, {
821
+ date: string;
822
+ notes: string | null;
823
+ unit: string | null;
824
+ quantity: number | null;
825
+ item: string | null;
826
+ price: number;
827
+ }>, "many">>;
828
+ } & {
829
+ createdAt: z.ZodString;
830
+ updatedAt: z.ZodString;
831
+ }, "strip", z.ZodTypeAny, {
832
+ type: "other" | "equipment" | "seed" | "fertilizer" | "pesticide" | "labor";
833
+ email: string | null;
834
+ createdAt: string;
835
+ updatedAt: string;
836
+ name: string;
837
+ phone: string | null;
838
+ farmId: string;
839
+ notes: string | null;
840
+ contactPerson: string | null;
841
+ address: string | null;
842
+ rating: number | null;
843
+ priceHistory?: {
844
+ date: string;
845
+ notes: string | null;
846
+ unit: string | null;
847
+ quantity: number | null;
848
+ item: string | null;
849
+ price: number;
850
+ }[] | undefined;
851
+ }, {
852
+ type: "other" | "equipment" | "seed" | "fertilizer" | "pesticide" | "labor";
853
+ email: string | null;
854
+ createdAt: string;
855
+ updatedAt: string;
856
+ name: string;
857
+ phone: string | null;
858
+ farmId: string;
859
+ notes: string | null;
860
+ contactPerson: string | null;
861
+ address: string | null;
862
+ rating: number | null;
863
+ priceHistory?: {
864
+ date: string;
865
+ notes: string | null;
866
+ unit: string | null;
867
+ quantity: number | null;
868
+ item: string | null;
869
+ price: number;
870
+ }[] | undefined;
871
+ }>;
872
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
873
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
874
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
875
+ }, "strip", z.ZodTypeAny, {
876
+ type: string;
877
+ id: string;
878
+ attributes: {
879
+ type: "other" | "equipment" | "seed" | "fertilizer" | "pesticide" | "labor";
880
+ email: string | null;
881
+ createdAt: string;
882
+ updatedAt: string;
883
+ name: string;
884
+ phone: string | null;
885
+ farmId: string;
886
+ notes: string | null;
887
+ contactPerson: string | null;
888
+ address: string | null;
889
+ rating: number | null;
890
+ priceHistory?: {
891
+ date: string;
892
+ notes: string | null;
893
+ unit: string | null;
894
+ quantity: number | null;
895
+ item: string | null;
896
+ price: number;
897
+ }[] | undefined;
898
+ };
899
+ relationships?: Record<string, unknown> | undefined;
900
+ links?: Record<string, string> | undefined;
901
+ meta?: Record<string, unknown> | undefined;
902
+ }, {
903
+ type: string;
904
+ id: string;
905
+ attributes: {
906
+ type: "other" | "equipment" | "seed" | "fertilizer" | "pesticide" | "labor";
907
+ email: string | null;
908
+ createdAt: string;
909
+ updatedAt: string;
910
+ name: string;
911
+ phone: string | null;
912
+ farmId: string;
913
+ notes: string | null;
914
+ contactPerson: string | null;
915
+ address: string | null;
916
+ rating: number | null;
917
+ priceHistory?: {
918
+ date: string;
919
+ notes: string | null;
920
+ unit: string | null;
921
+ quantity: number | null;
922
+ item: string | null;
923
+ price: number;
924
+ }[] | undefined;
925
+ };
926
+ relationships?: Record<string, unknown> | undefined;
927
+ links?: Record<string, string> | undefined;
928
+ meta?: Record<string, unknown> | undefined;
929
+ }>;
930
+ included: z.ZodOptional<z.ZodArray<z.ZodObject<{
931
+ type: z.ZodString;
932
+ id: z.ZodString;
933
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
934
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
935
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
936
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
937
+ }, "strip", z.ZodTypeAny, {
938
+ type: string;
939
+ id: string;
940
+ attributes?: Record<string, unknown> | undefined;
941
+ relationships?: Record<string, unknown> | undefined;
942
+ links?: Record<string, string> | undefined;
943
+ meta?: Record<string, unknown> | undefined;
944
+ }, {
945
+ type: string;
946
+ id: string;
947
+ attributes?: Record<string, unknown> | undefined;
948
+ relationships?: Record<string, unknown> | undefined;
949
+ links?: Record<string, string> | undefined;
950
+ meta?: Record<string, unknown> | undefined;
951
+ }>, "many">>;
952
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
953
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
954
+ }, "strip", z.ZodTypeAny, {
955
+ data: {
956
+ type: string;
957
+ id: string;
958
+ attributes: {
959
+ type: "other" | "equipment" | "seed" | "fertilizer" | "pesticide" | "labor";
960
+ email: string | null;
961
+ createdAt: string;
962
+ updatedAt: string;
963
+ name: string;
964
+ phone: string | null;
965
+ farmId: string;
966
+ notes: string | null;
967
+ contactPerson: string | null;
968
+ address: string | null;
969
+ rating: number | null;
970
+ priceHistory?: {
971
+ date: string;
972
+ notes: string | null;
973
+ unit: string | null;
974
+ quantity: number | null;
975
+ item: string | null;
976
+ price: number;
977
+ }[] | undefined;
978
+ };
979
+ relationships?: Record<string, unknown> | undefined;
980
+ links?: Record<string, string> | undefined;
981
+ meta?: Record<string, unknown> | undefined;
982
+ };
983
+ links?: Record<string, string> | undefined;
984
+ meta?: Record<string, unknown> | undefined;
985
+ included?: {
986
+ type: string;
987
+ id: string;
988
+ attributes?: Record<string, unknown> | undefined;
989
+ relationships?: Record<string, unknown> | undefined;
990
+ links?: Record<string, string> | undefined;
991
+ meta?: Record<string, unknown> | undefined;
992
+ }[] | undefined;
993
+ }, {
994
+ data: {
995
+ type: string;
996
+ id: string;
997
+ attributes: {
998
+ type: "other" | "equipment" | "seed" | "fertilizer" | "pesticide" | "labor";
999
+ email: string | null;
1000
+ createdAt: string;
1001
+ updatedAt: string;
1002
+ name: string;
1003
+ phone: string | null;
1004
+ farmId: string;
1005
+ notes: string | null;
1006
+ contactPerson: string | null;
1007
+ address: string | null;
1008
+ rating: number | null;
1009
+ priceHistory?: {
1010
+ date: string;
1011
+ notes: string | null;
1012
+ unit: string | null;
1013
+ quantity: number | null;
1014
+ item: string | null;
1015
+ price: number;
1016
+ }[] | undefined;
1017
+ };
1018
+ relationships?: Record<string, unknown> | undefined;
1019
+ links?: Record<string, string> | undefined;
1020
+ meta?: Record<string, unknown> | undefined;
1021
+ };
1022
+ links?: Record<string, string> | undefined;
1023
+ meta?: Record<string, unknown> | undefined;
1024
+ included?: {
1025
+ type: string;
1026
+ id: string;
1027
+ attributes?: Record<string, unknown> | undefined;
1028
+ relationships?: Record<string, unknown> | undefined;
1029
+ links?: Record<string, string> | undefined;
1030
+ meta?: Record<string, unknown> | undefined;
1031
+ }[] | undefined;
1032
+ }>;
1033
+ export declare const supplierListResponseSchema: z.ZodObject<{
1034
+ data: z.ZodArray<z.ZodObject<{
1035
+ type: z.ZodLiteral<string>;
1036
+ id: z.ZodString;
1037
+ attributes: z.ZodObject<{
1038
+ farmId: z.ZodString;
1039
+ name: z.ZodString;
1040
+ type: z.ZodEnum<["seed", "fertilizer", "pesticide", "equipment", "labor", "other"]>;
1041
+ contactPerson: z.ZodNullable<z.ZodString>;
1042
+ email: z.ZodNullable<z.ZodString>;
1043
+ phone: z.ZodNullable<z.ZodString>;
1044
+ address: z.ZodNullable<z.ZodString>;
1045
+ rating: z.ZodNullable<z.ZodNumber>;
1046
+ notes: z.ZodNullable<z.ZodString>;
1047
+ priceHistory: z.ZodOptional<z.ZodArray<z.ZodObject<{
1048
+ date: z.ZodString;
1049
+ item: z.ZodNullable<z.ZodString>;
1050
+ price: z.ZodNumber;
1051
+ unit: z.ZodNullable<z.ZodString>;
1052
+ quantity: z.ZodNullable<z.ZodNumber>;
1053
+ notes: z.ZodNullable<z.ZodString>;
1054
+ }, "strip", z.ZodTypeAny, {
1055
+ date: string;
1056
+ notes: string | null;
1057
+ unit: string | null;
1058
+ quantity: number | null;
1059
+ item: string | null;
1060
+ price: number;
1061
+ }, {
1062
+ date: string;
1063
+ notes: string | null;
1064
+ unit: string | null;
1065
+ quantity: number | null;
1066
+ item: string | null;
1067
+ price: number;
1068
+ }>, "many">>;
1069
+ } & {
1070
+ createdAt: z.ZodString;
1071
+ updatedAt: z.ZodString;
1072
+ }, "strip", z.ZodTypeAny, {
1073
+ type: "other" | "equipment" | "seed" | "fertilizer" | "pesticide" | "labor";
1074
+ email: string | null;
1075
+ createdAt: string;
1076
+ updatedAt: string;
1077
+ name: string;
1078
+ phone: string | null;
1079
+ farmId: string;
1080
+ notes: string | null;
1081
+ contactPerson: string | null;
1082
+ address: string | null;
1083
+ rating: number | null;
1084
+ priceHistory?: {
1085
+ date: string;
1086
+ notes: string | null;
1087
+ unit: string | null;
1088
+ quantity: number | null;
1089
+ item: string | null;
1090
+ price: number;
1091
+ }[] | undefined;
1092
+ }, {
1093
+ type: "other" | "equipment" | "seed" | "fertilizer" | "pesticide" | "labor";
1094
+ email: string | null;
1095
+ createdAt: string;
1096
+ updatedAt: string;
1097
+ name: string;
1098
+ phone: string | null;
1099
+ farmId: string;
1100
+ notes: string | null;
1101
+ contactPerson: string | null;
1102
+ address: string | null;
1103
+ rating: number | null;
1104
+ priceHistory?: {
1105
+ date: string;
1106
+ notes: string | null;
1107
+ unit: string | null;
1108
+ quantity: number | null;
1109
+ item: string | null;
1110
+ price: number;
1111
+ }[] | undefined;
1112
+ }>;
1113
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1114
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1115
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1116
+ }, "strip", z.ZodTypeAny, {
1117
+ type: string;
1118
+ id: string;
1119
+ attributes: {
1120
+ type: "other" | "equipment" | "seed" | "fertilizer" | "pesticide" | "labor";
1121
+ email: string | null;
1122
+ createdAt: string;
1123
+ updatedAt: string;
1124
+ name: string;
1125
+ phone: string | null;
1126
+ farmId: string;
1127
+ notes: string | null;
1128
+ contactPerson: string | null;
1129
+ address: string | null;
1130
+ rating: number | null;
1131
+ priceHistory?: {
1132
+ date: string;
1133
+ notes: string | null;
1134
+ unit: string | null;
1135
+ quantity: number | null;
1136
+ item: string | null;
1137
+ price: number;
1138
+ }[] | undefined;
1139
+ };
1140
+ relationships?: Record<string, unknown> | undefined;
1141
+ links?: Record<string, string> | undefined;
1142
+ meta?: Record<string, unknown> | undefined;
1143
+ }, {
1144
+ type: string;
1145
+ id: string;
1146
+ attributes: {
1147
+ type: "other" | "equipment" | "seed" | "fertilizer" | "pesticide" | "labor";
1148
+ email: string | null;
1149
+ createdAt: string;
1150
+ updatedAt: string;
1151
+ name: string;
1152
+ phone: string | null;
1153
+ farmId: string;
1154
+ notes: string | null;
1155
+ contactPerson: string | null;
1156
+ address: string | null;
1157
+ rating: number | null;
1158
+ priceHistory?: {
1159
+ date: string;
1160
+ notes: string | null;
1161
+ unit: string | null;
1162
+ quantity: number | null;
1163
+ item: string | null;
1164
+ price: number;
1165
+ }[] | undefined;
1166
+ };
1167
+ relationships?: Record<string, unknown> | undefined;
1168
+ links?: Record<string, string> | undefined;
1169
+ meta?: Record<string, unknown> | undefined;
1170
+ }>, "many">;
1171
+ included: z.ZodOptional<z.ZodArray<z.ZodObject<{
1172
+ type: z.ZodString;
1173
+ id: z.ZodString;
1174
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1175
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1176
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1177
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1178
+ }, "strip", z.ZodTypeAny, {
1179
+ type: string;
1180
+ id: string;
1181
+ attributes?: Record<string, unknown> | undefined;
1182
+ relationships?: Record<string, unknown> | undefined;
1183
+ links?: Record<string, string> | undefined;
1184
+ meta?: Record<string, unknown> | undefined;
1185
+ }, {
1186
+ type: string;
1187
+ id: string;
1188
+ attributes?: Record<string, unknown> | undefined;
1189
+ relationships?: Record<string, unknown> | undefined;
1190
+ links?: Record<string, string> | undefined;
1191
+ meta?: Record<string, unknown> | undefined;
1192
+ }>, "many">>;
1193
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1194
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1195
+ }, "strip", z.ZodTypeAny, {
1196
+ data: {
1197
+ type: string;
1198
+ id: string;
1199
+ attributes: {
1200
+ type: "other" | "equipment" | "seed" | "fertilizer" | "pesticide" | "labor";
1201
+ email: string | null;
1202
+ createdAt: string;
1203
+ updatedAt: string;
1204
+ name: string;
1205
+ phone: string | null;
1206
+ farmId: string;
1207
+ notes: string | null;
1208
+ contactPerson: string | null;
1209
+ address: string | null;
1210
+ rating: number | null;
1211
+ priceHistory?: {
1212
+ date: string;
1213
+ notes: string | null;
1214
+ unit: string | null;
1215
+ quantity: number | null;
1216
+ item: string | null;
1217
+ price: number;
1218
+ }[] | undefined;
1219
+ };
1220
+ relationships?: Record<string, unknown> | undefined;
1221
+ links?: Record<string, string> | undefined;
1222
+ meta?: Record<string, unknown> | undefined;
1223
+ }[];
1224
+ links?: Record<string, string> | undefined;
1225
+ meta?: Record<string, unknown> | undefined;
1226
+ included?: {
1227
+ type: string;
1228
+ id: string;
1229
+ attributes?: Record<string, unknown> | undefined;
1230
+ relationships?: Record<string, unknown> | undefined;
1231
+ links?: Record<string, string> | undefined;
1232
+ meta?: Record<string, unknown> | undefined;
1233
+ }[] | undefined;
1234
+ }, {
1235
+ data: {
1236
+ type: string;
1237
+ id: string;
1238
+ attributes: {
1239
+ type: "other" | "equipment" | "seed" | "fertilizer" | "pesticide" | "labor";
1240
+ email: string | null;
1241
+ createdAt: string;
1242
+ updatedAt: string;
1243
+ name: string;
1244
+ phone: string | null;
1245
+ farmId: string;
1246
+ notes: string | null;
1247
+ contactPerson: string | null;
1248
+ address: string | null;
1249
+ rating: number | null;
1250
+ priceHistory?: {
1251
+ date: string;
1252
+ notes: string | null;
1253
+ unit: string | null;
1254
+ quantity: number | null;
1255
+ item: string | null;
1256
+ price: number;
1257
+ }[] | undefined;
1258
+ };
1259
+ relationships?: Record<string, unknown> | undefined;
1260
+ links?: Record<string, string> | undefined;
1261
+ meta?: Record<string, unknown> | undefined;
1262
+ }[];
1263
+ links?: Record<string, string> | undefined;
1264
+ meta?: Record<string, unknown> | undefined;
1265
+ included?: {
1266
+ type: string;
1267
+ id: string;
1268
+ attributes?: Record<string, unknown> | undefined;
1269
+ relationships?: Record<string, unknown> | undefined;
1270
+ links?: Record<string, string> | undefined;
1271
+ meta?: Record<string, unknown> | undefined;
1272
+ }[] | undefined;
1273
+ }>;
1274
+ export declare const buyerResponseSchema: z.ZodObject<{
1275
+ data: z.ZodObject<{
1276
+ type: z.ZodLiteral<string>;
1277
+ id: z.ZodString;
1278
+ attributes: z.ZodObject<{
1279
+ farmId: z.ZodString;
1280
+ name: z.ZodString;
1281
+ contactPerson: z.ZodNullable<z.ZodString>;
1282
+ email: z.ZodNullable<z.ZodString>;
1283
+ phone: z.ZodNullable<z.ZodString>;
1284
+ address: z.ZodNullable<z.ZodString>;
1285
+ crops: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1286
+ rating: z.ZodNullable<z.ZodNumber>;
1287
+ notes: z.ZodNullable<z.ZodString>;
1288
+ priceHistory: z.ZodOptional<z.ZodArray<z.ZodObject<{
1289
+ date: z.ZodString;
1290
+ item: z.ZodNullable<z.ZodString>;
1291
+ price: z.ZodNumber;
1292
+ unit: z.ZodNullable<z.ZodString>;
1293
+ quantity: z.ZodNullable<z.ZodNumber>;
1294
+ notes: z.ZodNullable<z.ZodString>;
1295
+ }, "strip", z.ZodTypeAny, {
1296
+ date: string;
1297
+ notes: string | null;
1298
+ unit: string | null;
1299
+ quantity: number | null;
1300
+ item: string | null;
1301
+ price: number;
1302
+ }, {
1303
+ date: string;
1304
+ notes: string | null;
1305
+ unit: string | null;
1306
+ quantity: number | null;
1307
+ item: string | null;
1308
+ price: number;
1309
+ }>, "many">>;
1310
+ } & {
1311
+ createdAt: z.ZodString;
1312
+ updatedAt: z.ZodString;
1313
+ }, "strip", z.ZodTypeAny, {
1314
+ email: string | null;
1315
+ createdAt: string;
1316
+ updatedAt: string;
1317
+ name: string;
1318
+ phone: string | null;
1319
+ farmId: string;
1320
+ notes: string | null;
1321
+ contactPerson: string | null;
1322
+ address: string | null;
1323
+ rating: number | null;
1324
+ priceHistory?: {
1325
+ date: string;
1326
+ notes: string | null;
1327
+ unit: string | null;
1328
+ quantity: number | null;
1329
+ item: string | null;
1330
+ price: number;
1331
+ }[] | undefined;
1332
+ crops?: string[] | undefined;
1333
+ }, {
1334
+ email: string | null;
1335
+ createdAt: string;
1336
+ updatedAt: string;
1337
+ name: string;
1338
+ phone: string | null;
1339
+ farmId: string;
1340
+ notes: string | null;
1341
+ contactPerson: string | null;
1342
+ address: string | null;
1343
+ rating: number | null;
1344
+ priceHistory?: {
1345
+ date: string;
1346
+ notes: string | null;
1347
+ unit: string | null;
1348
+ quantity: number | null;
1349
+ item: string | null;
1350
+ price: number;
1351
+ }[] | undefined;
1352
+ crops?: string[] | undefined;
1353
+ }>;
1354
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1355
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1356
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1357
+ }, "strip", z.ZodTypeAny, {
1358
+ type: string;
1359
+ id: string;
1360
+ attributes: {
1361
+ email: string | null;
1362
+ createdAt: string;
1363
+ updatedAt: string;
1364
+ name: string;
1365
+ phone: string | null;
1366
+ farmId: string;
1367
+ notes: string | null;
1368
+ contactPerson: string | null;
1369
+ address: string | null;
1370
+ rating: number | null;
1371
+ priceHistory?: {
1372
+ date: string;
1373
+ notes: string | null;
1374
+ unit: string | null;
1375
+ quantity: number | null;
1376
+ item: string | null;
1377
+ price: number;
1378
+ }[] | undefined;
1379
+ crops?: string[] | undefined;
1380
+ };
1381
+ relationships?: Record<string, unknown> | undefined;
1382
+ links?: Record<string, string> | undefined;
1383
+ meta?: Record<string, unknown> | undefined;
1384
+ }, {
1385
+ type: string;
1386
+ id: string;
1387
+ attributes: {
1388
+ email: string | null;
1389
+ createdAt: string;
1390
+ updatedAt: string;
1391
+ name: string;
1392
+ phone: string | null;
1393
+ farmId: string;
1394
+ notes: string | null;
1395
+ contactPerson: string | null;
1396
+ address: string | null;
1397
+ rating: number | null;
1398
+ priceHistory?: {
1399
+ date: string;
1400
+ notes: string | null;
1401
+ unit: string | null;
1402
+ quantity: number | null;
1403
+ item: string | null;
1404
+ price: number;
1405
+ }[] | undefined;
1406
+ crops?: string[] | undefined;
1407
+ };
1408
+ relationships?: Record<string, unknown> | undefined;
1409
+ links?: Record<string, string> | undefined;
1410
+ meta?: Record<string, unknown> | undefined;
1411
+ }>;
1412
+ included: z.ZodOptional<z.ZodArray<z.ZodObject<{
1413
+ type: z.ZodString;
1414
+ id: z.ZodString;
1415
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1416
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1417
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1418
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1419
+ }, "strip", z.ZodTypeAny, {
1420
+ type: string;
1421
+ id: string;
1422
+ attributes?: Record<string, unknown> | undefined;
1423
+ relationships?: Record<string, unknown> | undefined;
1424
+ links?: Record<string, string> | undefined;
1425
+ meta?: Record<string, unknown> | undefined;
1426
+ }, {
1427
+ type: string;
1428
+ id: string;
1429
+ attributes?: Record<string, unknown> | undefined;
1430
+ relationships?: Record<string, unknown> | undefined;
1431
+ links?: Record<string, string> | undefined;
1432
+ meta?: Record<string, unknown> | undefined;
1433
+ }>, "many">>;
1434
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1435
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1436
+ }, "strip", z.ZodTypeAny, {
1437
+ data: {
1438
+ type: string;
1439
+ id: string;
1440
+ attributes: {
1441
+ email: string | null;
1442
+ createdAt: string;
1443
+ updatedAt: string;
1444
+ name: string;
1445
+ phone: string | null;
1446
+ farmId: string;
1447
+ notes: string | null;
1448
+ contactPerson: string | null;
1449
+ address: string | null;
1450
+ rating: number | null;
1451
+ priceHistory?: {
1452
+ date: string;
1453
+ notes: string | null;
1454
+ unit: string | null;
1455
+ quantity: number | null;
1456
+ item: string | null;
1457
+ price: number;
1458
+ }[] | undefined;
1459
+ crops?: string[] | undefined;
1460
+ };
1461
+ relationships?: Record<string, unknown> | undefined;
1462
+ links?: Record<string, string> | undefined;
1463
+ meta?: Record<string, unknown> | undefined;
1464
+ };
1465
+ links?: Record<string, string> | undefined;
1466
+ meta?: Record<string, unknown> | undefined;
1467
+ included?: {
1468
+ type: string;
1469
+ id: string;
1470
+ attributes?: Record<string, unknown> | undefined;
1471
+ relationships?: Record<string, unknown> | undefined;
1472
+ links?: Record<string, string> | undefined;
1473
+ meta?: Record<string, unknown> | undefined;
1474
+ }[] | undefined;
1475
+ }, {
1476
+ data: {
1477
+ type: string;
1478
+ id: string;
1479
+ attributes: {
1480
+ email: string | null;
1481
+ createdAt: string;
1482
+ updatedAt: string;
1483
+ name: string;
1484
+ phone: string | null;
1485
+ farmId: string;
1486
+ notes: string | null;
1487
+ contactPerson: string | null;
1488
+ address: string | null;
1489
+ rating: number | null;
1490
+ priceHistory?: {
1491
+ date: string;
1492
+ notes: string | null;
1493
+ unit: string | null;
1494
+ quantity: number | null;
1495
+ item: string | null;
1496
+ price: number;
1497
+ }[] | undefined;
1498
+ crops?: string[] | undefined;
1499
+ };
1500
+ relationships?: Record<string, unknown> | undefined;
1501
+ links?: Record<string, string> | undefined;
1502
+ meta?: Record<string, unknown> | undefined;
1503
+ };
1504
+ links?: Record<string, string> | undefined;
1505
+ meta?: Record<string, unknown> | undefined;
1506
+ included?: {
1507
+ type: string;
1508
+ id: string;
1509
+ attributes?: Record<string, unknown> | undefined;
1510
+ relationships?: Record<string, unknown> | undefined;
1511
+ links?: Record<string, string> | undefined;
1512
+ meta?: Record<string, unknown> | undefined;
1513
+ }[] | undefined;
1514
+ }>;
1515
+ export declare const buyerListResponseSchema: z.ZodObject<{
1516
+ data: z.ZodArray<z.ZodObject<{
1517
+ type: z.ZodLiteral<string>;
1518
+ id: z.ZodString;
1519
+ attributes: z.ZodObject<{
1520
+ farmId: z.ZodString;
1521
+ name: z.ZodString;
1522
+ contactPerson: z.ZodNullable<z.ZodString>;
1523
+ email: z.ZodNullable<z.ZodString>;
1524
+ phone: z.ZodNullable<z.ZodString>;
1525
+ address: z.ZodNullable<z.ZodString>;
1526
+ crops: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1527
+ rating: z.ZodNullable<z.ZodNumber>;
1528
+ notes: z.ZodNullable<z.ZodString>;
1529
+ priceHistory: z.ZodOptional<z.ZodArray<z.ZodObject<{
1530
+ date: z.ZodString;
1531
+ item: z.ZodNullable<z.ZodString>;
1532
+ price: z.ZodNumber;
1533
+ unit: z.ZodNullable<z.ZodString>;
1534
+ quantity: z.ZodNullable<z.ZodNumber>;
1535
+ notes: z.ZodNullable<z.ZodString>;
1536
+ }, "strip", z.ZodTypeAny, {
1537
+ date: string;
1538
+ notes: string | null;
1539
+ unit: string | null;
1540
+ quantity: number | null;
1541
+ item: string | null;
1542
+ price: number;
1543
+ }, {
1544
+ date: string;
1545
+ notes: string | null;
1546
+ unit: string | null;
1547
+ quantity: number | null;
1548
+ item: string | null;
1549
+ price: number;
1550
+ }>, "many">>;
1551
+ } & {
1552
+ createdAt: z.ZodString;
1553
+ updatedAt: z.ZodString;
1554
+ }, "strip", z.ZodTypeAny, {
1555
+ email: string | null;
1556
+ createdAt: string;
1557
+ updatedAt: string;
1558
+ name: string;
1559
+ phone: string | null;
1560
+ farmId: string;
1561
+ notes: string | null;
1562
+ contactPerson: string | null;
1563
+ address: string | null;
1564
+ rating: number | null;
1565
+ priceHistory?: {
1566
+ date: string;
1567
+ notes: string | null;
1568
+ unit: string | null;
1569
+ quantity: number | null;
1570
+ item: string | null;
1571
+ price: number;
1572
+ }[] | undefined;
1573
+ crops?: string[] | undefined;
1574
+ }, {
1575
+ email: string | null;
1576
+ createdAt: string;
1577
+ updatedAt: string;
1578
+ name: string;
1579
+ phone: string | null;
1580
+ farmId: string;
1581
+ notes: string | null;
1582
+ contactPerson: string | null;
1583
+ address: string | null;
1584
+ rating: number | null;
1585
+ priceHistory?: {
1586
+ date: string;
1587
+ notes: string | null;
1588
+ unit: string | null;
1589
+ quantity: number | null;
1590
+ item: string | null;
1591
+ price: number;
1592
+ }[] | undefined;
1593
+ crops?: string[] | undefined;
1594
+ }>;
1595
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1596
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1597
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1598
+ }, "strip", z.ZodTypeAny, {
1599
+ type: string;
1600
+ id: string;
1601
+ attributes: {
1602
+ email: string | null;
1603
+ createdAt: string;
1604
+ updatedAt: string;
1605
+ name: string;
1606
+ phone: string | null;
1607
+ farmId: string;
1608
+ notes: string | null;
1609
+ contactPerson: string | null;
1610
+ address: string | null;
1611
+ rating: number | null;
1612
+ priceHistory?: {
1613
+ date: string;
1614
+ notes: string | null;
1615
+ unit: string | null;
1616
+ quantity: number | null;
1617
+ item: string | null;
1618
+ price: number;
1619
+ }[] | undefined;
1620
+ crops?: string[] | undefined;
1621
+ };
1622
+ relationships?: Record<string, unknown> | undefined;
1623
+ links?: Record<string, string> | undefined;
1624
+ meta?: Record<string, unknown> | undefined;
1625
+ }, {
1626
+ type: string;
1627
+ id: string;
1628
+ attributes: {
1629
+ email: string | null;
1630
+ createdAt: string;
1631
+ updatedAt: string;
1632
+ name: string;
1633
+ phone: string | null;
1634
+ farmId: string;
1635
+ notes: string | null;
1636
+ contactPerson: string | null;
1637
+ address: string | null;
1638
+ rating: number | null;
1639
+ priceHistory?: {
1640
+ date: string;
1641
+ notes: string | null;
1642
+ unit: string | null;
1643
+ quantity: number | null;
1644
+ item: string | null;
1645
+ price: number;
1646
+ }[] | undefined;
1647
+ crops?: string[] | undefined;
1648
+ };
1649
+ relationships?: Record<string, unknown> | undefined;
1650
+ links?: Record<string, string> | undefined;
1651
+ meta?: Record<string, unknown> | undefined;
1652
+ }>, "many">;
1653
+ included: z.ZodOptional<z.ZodArray<z.ZodObject<{
1654
+ type: z.ZodString;
1655
+ id: z.ZodString;
1656
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1657
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1658
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1659
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1660
+ }, "strip", z.ZodTypeAny, {
1661
+ type: string;
1662
+ id: string;
1663
+ attributes?: Record<string, unknown> | undefined;
1664
+ relationships?: Record<string, unknown> | undefined;
1665
+ links?: Record<string, string> | undefined;
1666
+ meta?: Record<string, unknown> | undefined;
1667
+ }, {
1668
+ type: string;
1669
+ id: string;
1670
+ attributes?: Record<string, unknown> | undefined;
1671
+ relationships?: Record<string, unknown> | undefined;
1672
+ links?: Record<string, string> | undefined;
1673
+ meta?: Record<string, unknown> | undefined;
1674
+ }>, "many">>;
1675
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1676
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1677
+ }, "strip", z.ZodTypeAny, {
1678
+ data: {
1679
+ type: string;
1680
+ id: string;
1681
+ attributes: {
1682
+ email: string | null;
1683
+ createdAt: string;
1684
+ updatedAt: string;
1685
+ name: string;
1686
+ phone: string | null;
1687
+ farmId: string;
1688
+ notes: string | null;
1689
+ contactPerson: string | null;
1690
+ address: string | null;
1691
+ rating: number | null;
1692
+ priceHistory?: {
1693
+ date: string;
1694
+ notes: string | null;
1695
+ unit: string | null;
1696
+ quantity: number | null;
1697
+ item: string | null;
1698
+ price: number;
1699
+ }[] | undefined;
1700
+ crops?: string[] | undefined;
1701
+ };
1702
+ relationships?: Record<string, unknown> | undefined;
1703
+ links?: Record<string, string> | undefined;
1704
+ meta?: Record<string, unknown> | undefined;
1705
+ }[];
1706
+ links?: Record<string, string> | undefined;
1707
+ meta?: Record<string, unknown> | undefined;
1708
+ included?: {
1709
+ type: string;
1710
+ id: string;
1711
+ attributes?: Record<string, unknown> | undefined;
1712
+ relationships?: Record<string, unknown> | undefined;
1713
+ links?: Record<string, string> | undefined;
1714
+ meta?: Record<string, unknown> | undefined;
1715
+ }[] | undefined;
1716
+ }, {
1717
+ data: {
1718
+ type: string;
1719
+ id: string;
1720
+ attributes: {
1721
+ email: string | null;
1722
+ createdAt: string;
1723
+ updatedAt: string;
1724
+ name: string;
1725
+ phone: string | null;
1726
+ farmId: string;
1727
+ notes: string | null;
1728
+ contactPerson: string | null;
1729
+ address: string | null;
1730
+ rating: number | null;
1731
+ priceHistory?: {
1732
+ date: string;
1733
+ notes: string | null;
1734
+ unit: string | null;
1735
+ quantity: number | null;
1736
+ item: string | null;
1737
+ price: number;
1738
+ }[] | undefined;
1739
+ crops?: string[] | undefined;
1740
+ };
1741
+ relationships?: Record<string, unknown> | undefined;
1742
+ links?: Record<string, string> | undefined;
1743
+ meta?: Record<string, unknown> | undefined;
1744
+ }[];
1745
+ links?: Record<string, string> | undefined;
1746
+ meta?: Record<string, unknown> | undefined;
1747
+ included?: {
1748
+ type: string;
1749
+ id: string;
1750
+ attributes?: Record<string, unknown> | undefined;
1751
+ relationships?: Record<string, unknown> | undefined;
1752
+ links?: Record<string, string> | undefined;
1753
+ meta?: Record<string, unknown> | undefined;
1754
+ }[] | undefined;
1755
+ }>;
1756
+ export type SupplierType = z.infer<typeof supplierTypeSchema>;
1757
+ export type PriceHistoryEntryAttributes = z.infer<typeof priceHistoryEntryAttributesSchema>;
1758
+ export type SupplierAttributes = z.infer<typeof supplierAttributesSchema>;
1759
+ export type CreateSupplierAttributes = z.infer<typeof createSupplierAttributesSchema>;
1760
+ export type UpdateSupplierAttributes = z.infer<typeof updateSupplierAttributesSchema>;
1761
+ export type BuyerAttributes = z.infer<typeof buyerAttributesSchema>;
1762
+ export type CreateBuyerAttributes = z.infer<typeof createBuyerAttributesSchema>;
1763
+ export type UpdateBuyerAttributes = z.infer<typeof updateBuyerAttributesSchema>;
1764
+ export type CreateSupplierInput = z.infer<typeof createSupplierSchema>;
1765
+ export type UpdateSupplierInput = z.infer<typeof updateSupplierSchema>;
1766
+ export type CreateBuyerInput = z.infer<typeof createBuyerSchema>;
1767
+ export type UpdateBuyerInput = z.infer<typeof updateBuyerSchema>;
1768
+ export type SupplierResource = z.infer<typeof supplierResourceSchema>;
1769
+ export type BuyerResource = z.infer<typeof buyerResourceSchema>;
1770
+ export type SupplierResponse = z.infer<typeof supplierResponseSchema>;
1771
+ export type SupplierListResponse = z.infer<typeof supplierListResponseSchema>;
1772
+ export type BuyerResponse = z.infer<typeof buyerResponseSchema>;
1773
+ export type BuyerListResponse = z.infer<typeof buyerListResponseSchema>;
1774
+ //# sourceMappingURL=suppliers.schemas.d.ts.map