@deepintel-ltd/farmpro-contracts 1.0.2 → 1.0.4

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