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