@deepintel-ltd/farmpro-contracts 1.3.1 → 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 (43) hide show
  1. package/dist/index.d.ts +5 -1
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +7 -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 +568 -23
  11. package/dist/routes/field-monitoring.routes.d.ts.map +1 -1
  12. package/dist/routes/field-monitoring.routes.js +64 -0
  13. package/dist/routes/field-observations.routes.d.ts +130 -58
  14. package/dist/routes/field-observations.routes.d.ts.map +1 -1
  15. package/dist/routes/index.d.ts +6 -0
  16. package/dist/routes/index.d.ts.map +1 -1
  17. package/dist/routes/index.js +4 -0
  18. package/dist/routes/tasks.routes.d.ts +408 -0
  19. package/dist/routes/tasks.routes.d.ts.map +1 -1
  20. package/dist/routes/weather.routes.d.ts +264 -17
  21. package/dist/routes/weather.routes.d.ts.map +1 -1
  22. package/dist/schemas/admin.schemas.d.ts +1063 -0
  23. package/dist/schemas/admin.schemas.d.ts.map +1 -0
  24. package/dist/schemas/admin.schemas.js +63 -0
  25. package/dist/schemas/agent-workflows.schemas.d.ts +2399 -0
  26. package/dist/schemas/agent-workflows.schemas.d.ts.map +1 -0
  27. package/dist/schemas/agent-workflows.schemas.js +70 -0
  28. package/dist/schemas/field-monitoring.schemas.d.ts +215 -9
  29. package/dist/schemas/field-monitoring.schemas.d.ts.map +1 -1
  30. package/dist/schemas/field-monitoring.schemas.js +26 -2
  31. package/dist/schemas/field-observations.schemas.d.ts +100 -40
  32. package/dist/schemas/field-observations.schemas.d.ts.map +1 -1
  33. package/dist/schemas/field-observations.schemas.js +2 -24
  34. package/dist/schemas/recommendations.schemas.d.ts +112 -0
  35. package/dist/schemas/recommendations.schemas.d.ts.map +1 -0
  36. package/dist/schemas/recommendations.schemas.js +32 -0
  37. package/dist/schemas/tasks.schemas.d.ts +344 -0
  38. package/dist/schemas/tasks.schemas.d.ts.map +1 -1
  39. package/dist/schemas/tasks.schemas.js +9 -0
  40. package/dist/schemas/weather.schemas.d.ts +780 -44
  41. package/dist/schemas/weather.schemas.d.ts.map +1 -1
  42. package/dist/schemas/weather.schemas.js +2 -1
  43. package/package.json +1 -1
@@ -267,6 +267,8 @@ export declare const fieldObservationsRouter: {
267
267
  action: z.ZodString;
268
268
  details: z.ZodString;
269
269
  timing: z.ZodString;
270
+ severity: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "critical"]>>;
271
+ confidence: z.ZodOptional<z.ZodNumber>;
270
272
  materials: z.ZodOptional<z.ZodArray<z.ZodObject<{
271
273
  inventoryItemId: z.ZodOptional<z.ZodString>;
272
274
  name: z.ZodString;
@@ -302,6 +304,8 @@ export declare const fieldObservationsRouter: {
302
304
  action: string;
303
305
  details: string;
304
306
  timing: string;
307
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
308
+ confidence?: number | undefined;
305
309
  materials?: {
306
310
  name: string;
307
311
  unit: string;
@@ -321,6 +325,8 @@ export declare const fieldObservationsRouter: {
321
325
  action: string;
322
326
  details: string;
323
327
  timing: string;
328
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
329
+ confidence?: number | undefined;
324
330
  materials?: {
325
331
  name: string;
326
332
  unit: string;
@@ -367,6 +373,8 @@ export declare const fieldObservationsRouter: {
367
373
  action: string;
368
374
  details: string;
369
375
  timing: string;
376
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
377
+ confidence?: number | undefined;
370
378
  materials?: {
371
379
  name: string;
372
380
  unit: string;
@@ -382,7 +390,7 @@ export declare const fieldObservationsRouter: {
382
390
  estimatedTime?: string | undefined;
383
391
  riskLevel?: string | undefined;
384
392
  }[] | null;
385
- severity: "critical" | "high" | "medium" | "low" | null;
393
+ severity: "critical" | "low" | "medium" | "high" | null;
386
394
  uploadedBy: string;
387
395
  photoUrl: string;
388
396
  photoThumbnail: string | null;
@@ -390,7 +398,7 @@ export declare const fieldObservationsRouter: {
390
398
  observationType: "general" | "disease" | "pest" | "nutrient" | "weed" | "health_check";
391
399
  userNotes: string | null;
392
400
  cropStageAtTime: "planted" | "flowering" | "mature" | "harvested" | "germination" | "vegetative" | "fruiting" | null;
393
- analysisStatus: "pending" | "completed" | "processing" | "failed";
401
+ analysisStatus: "pending" | "completed" | "failed" | "processing";
394
402
  analysisCompletedAt: Date | null;
395
403
  identifiedCrop: string | null;
396
404
  identifiedCropConfidence: number | null;
@@ -448,6 +456,8 @@ export declare const fieldObservationsRouter: {
448
456
  action: string;
449
457
  details: string;
450
458
  timing: string;
459
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
460
+ confidence?: number | undefined;
451
461
  materials?: {
452
462
  name: string;
453
463
  unit: string;
@@ -463,7 +473,7 @@ export declare const fieldObservationsRouter: {
463
473
  estimatedTime?: string | undefined;
464
474
  riskLevel?: string | undefined;
465
475
  }[] | null;
466
- severity: "critical" | "high" | "medium" | "low" | null;
476
+ severity: "critical" | "low" | "medium" | "high" | null;
467
477
  uploadedBy: string;
468
478
  photoUrl: string;
469
479
  photoThumbnail: string | null;
@@ -471,7 +481,7 @@ export declare const fieldObservationsRouter: {
471
481
  observationType: "general" | "disease" | "pest" | "nutrient" | "weed" | "health_check";
472
482
  userNotes: string | null;
473
483
  cropStageAtTime: "planted" | "flowering" | "mature" | "harvested" | "germination" | "vegetative" | "fruiting" | null;
474
- analysisStatus: "pending" | "completed" | "processing" | "failed";
484
+ analysisStatus: "pending" | "completed" | "failed" | "processing";
475
485
  analysisCompletedAt: Date | null;
476
486
  identifiedCrop: string | null;
477
487
  identifiedCropConfidence: number | null;
@@ -536,6 +546,8 @@ export declare const fieldObservationsRouter: {
536
546
  action: string;
537
547
  details: string;
538
548
  timing: string;
549
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
550
+ confidence?: number | undefined;
539
551
  materials?: {
540
552
  name: string;
541
553
  unit: string;
@@ -551,7 +563,7 @@ export declare const fieldObservationsRouter: {
551
563
  estimatedTime?: string | undefined;
552
564
  riskLevel?: string | undefined;
553
565
  }[] | null;
554
- severity: "critical" | "high" | "medium" | "low" | null;
566
+ severity: "critical" | "low" | "medium" | "high" | null;
555
567
  uploadedBy: string;
556
568
  photoUrl: string;
557
569
  photoThumbnail: string | null;
@@ -559,7 +571,7 @@ export declare const fieldObservationsRouter: {
559
571
  observationType: "general" | "disease" | "pest" | "nutrient" | "weed" | "health_check";
560
572
  userNotes: string | null;
561
573
  cropStageAtTime: "planted" | "flowering" | "mature" | "harvested" | "germination" | "vegetative" | "fruiting" | null;
562
- analysisStatus: "pending" | "completed" | "processing" | "failed";
574
+ analysisStatus: "pending" | "completed" | "failed" | "processing";
563
575
  analysisCompletedAt: Date | null;
564
576
  identifiedCrop: string | null;
565
577
  identifiedCropConfidence: number | null;
@@ -624,6 +636,8 @@ export declare const fieldObservationsRouter: {
624
636
  action: string;
625
637
  details: string;
626
638
  timing: string;
639
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
640
+ confidence?: number | undefined;
627
641
  materials?: {
628
642
  name: string;
629
643
  unit: string;
@@ -639,7 +653,7 @@ export declare const fieldObservationsRouter: {
639
653
  estimatedTime?: string | undefined;
640
654
  riskLevel?: string | undefined;
641
655
  }[] | null;
642
- severity: "critical" | "high" | "medium" | "low" | null;
656
+ severity: "critical" | "low" | "medium" | "high" | null;
643
657
  uploadedBy: string;
644
658
  photoUrl: string;
645
659
  photoThumbnail: string | null;
@@ -647,7 +661,7 @@ export declare const fieldObservationsRouter: {
647
661
  observationType: "general" | "disease" | "pest" | "nutrient" | "weed" | "health_check";
648
662
  userNotes: string | null;
649
663
  cropStageAtTime: "planted" | "flowering" | "mature" | "harvested" | "germination" | "vegetative" | "fruiting" | null;
650
- analysisStatus: "pending" | "completed" | "processing" | "failed";
664
+ analysisStatus: "pending" | "completed" | "failed" | "processing";
651
665
  analysisCompletedAt: Date | null;
652
666
  identifiedCrop: string | null;
653
667
  identifiedCropConfidence: number | null;
@@ -738,6 +752,8 @@ export declare const fieldObservationsRouter: {
738
752
  action: string;
739
753
  details: string;
740
754
  timing: string;
755
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
756
+ confidence?: number | undefined;
741
757
  materials?: {
742
758
  name: string;
743
759
  unit: string;
@@ -753,7 +769,7 @@ export declare const fieldObservationsRouter: {
753
769
  estimatedTime?: string | undefined;
754
770
  riskLevel?: string | undefined;
755
771
  }[] | null;
756
- severity: "critical" | "high" | "medium" | "low" | null;
772
+ severity: "critical" | "low" | "medium" | "high" | null;
757
773
  uploadedBy: string;
758
774
  photoUrl: string;
759
775
  photoThumbnail: string | null;
@@ -761,7 +777,7 @@ export declare const fieldObservationsRouter: {
761
777
  observationType: "general" | "disease" | "pest" | "nutrient" | "weed" | "health_check";
762
778
  userNotes: string | null;
763
779
  cropStageAtTime: "planted" | "flowering" | "mature" | "harvested" | "germination" | "vegetative" | "fruiting" | null;
764
- analysisStatus: "pending" | "completed" | "processing" | "failed";
780
+ analysisStatus: "pending" | "completed" | "failed" | "processing";
765
781
  analysisCompletedAt: Date | null;
766
782
  identifiedCrop: string | null;
767
783
  identifiedCropConfidence: number | null;
@@ -838,6 +854,8 @@ export declare const fieldObservationsRouter: {
838
854
  action: string;
839
855
  details: string;
840
856
  timing: string;
857
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
858
+ confidence?: number | undefined;
841
859
  materials?: {
842
860
  name: string;
843
861
  unit: string;
@@ -853,7 +871,7 @@ export declare const fieldObservationsRouter: {
853
871
  estimatedTime?: string | undefined;
854
872
  riskLevel?: string | undefined;
855
873
  }[] | null;
856
- severity: "critical" | "high" | "medium" | "low" | null;
874
+ severity: "critical" | "low" | "medium" | "high" | null;
857
875
  uploadedBy: string;
858
876
  photoUrl: string;
859
877
  photoThumbnail: string | null;
@@ -861,7 +879,7 @@ export declare const fieldObservationsRouter: {
861
879
  observationType: "general" | "disease" | "pest" | "nutrient" | "weed" | "health_check";
862
880
  userNotes: string | null;
863
881
  cropStageAtTime: "planted" | "flowering" | "mature" | "harvested" | "germination" | "vegetative" | "fruiting" | null;
864
- analysisStatus: "pending" | "completed" | "processing" | "failed";
882
+ analysisStatus: "pending" | "completed" | "failed" | "processing";
865
883
  analysisCompletedAt: Date | null;
866
884
  identifiedCrop: string | null;
867
885
  identifiedCropConfidence: number | null;
@@ -944,17 +962,17 @@ export declare const fieldObservationsRouter: {
944
962
  }, "strip", z.ZodTypeAny, {
945
963
  pageSize: string;
946
964
  page: string;
947
- status?: "pending" | "completed" | "processing" | "failed" | undefined;
965
+ status?: "pending" | "completed" | "failed" | "processing" | undefined;
948
966
  fieldId?: string | undefined;
949
- severity?: "critical" | "high" | "medium" | "low" | undefined;
967
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
950
968
  startDate?: string | undefined;
951
969
  endDate?: string | undefined;
952
970
  observationType?: string | undefined;
953
971
  }, {
954
- status?: "pending" | "completed" | "processing" | "failed" | undefined;
972
+ status?: "pending" | "completed" | "failed" | "processing" | undefined;
955
973
  pageSize?: string | undefined;
956
974
  fieldId?: string | undefined;
957
- severity?: "critical" | "high" | "medium" | "low" | undefined;
975
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
958
976
  startDate?: string | undefined;
959
977
  endDate?: string | undefined;
960
978
  observationType?: string | undefined;
@@ -1102,6 +1120,8 @@ export declare const fieldObservationsRouter: {
1102
1120
  action: z.ZodString;
1103
1121
  details: z.ZodString;
1104
1122
  timing: z.ZodString;
1123
+ severity: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "critical"]>>;
1124
+ confidence: z.ZodOptional<z.ZodNumber>;
1105
1125
  materials: z.ZodOptional<z.ZodArray<z.ZodObject<{
1106
1126
  inventoryItemId: z.ZodOptional<z.ZodString>;
1107
1127
  name: z.ZodString;
@@ -1137,6 +1157,8 @@ export declare const fieldObservationsRouter: {
1137
1157
  action: string;
1138
1158
  details: string;
1139
1159
  timing: string;
1160
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
1161
+ confidence?: number | undefined;
1140
1162
  materials?: {
1141
1163
  name: string;
1142
1164
  unit: string;
@@ -1156,6 +1178,8 @@ export declare const fieldObservationsRouter: {
1156
1178
  action: string;
1157
1179
  details: string;
1158
1180
  timing: string;
1181
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
1182
+ confidence?: number | undefined;
1159
1183
  materials?: {
1160
1184
  name: string;
1161
1185
  unit: string;
@@ -1202,6 +1226,8 @@ export declare const fieldObservationsRouter: {
1202
1226
  action: string;
1203
1227
  details: string;
1204
1228
  timing: string;
1229
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
1230
+ confidence?: number | undefined;
1205
1231
  materials?: {
1206
1232
  name: string;
1207
1233
  unit: string;
@@ -1217,7 +1243,7 @@ export declare const fieldObservationsRouter: {
1217
1243
  estimatedTime?: string | undefined;
1218
1244
  riskLevel?: string | undefined;
1219
1245
  }[] | null;
1220
- severity: "critical" | "high" | "medium" | "low" | null;
1246
+ severity: "critical" | "low" | "medium" | "high" | null;
1221
1247
  uploadedBy: string;
1222
1248
  photoUrl: string;
1223
1249
  photoThumbnail: string | null;
@@ -1225,7 +1251,7 @@ export declare const fieldObservationsRouter: {
1225
1251
  observationType: "general" | "disease" | "pest" | "nutrient" | "weed" | "health_check";
1226
1252
  userNotes: string | null;
1227
1253
  cropStageAtTime: "planted" | "flowering" | "mature" | "harvested" | "germination" | "vegetative" | "fruiting" | null;
1228
- analysisStatus: "pending" | "completed" | "processing" | "failed";
1254
+ analysisStatus: "pending" | "completed" | "failed" | "processing";
1229
1255
  analysisCompletedAt: Date | null;
1230
1256
  identifiedCrop: string | null;
1231
1257
  identifiedCropConfidence: number | null;
@@ -1283,6 +1309,8 @@ export declare const fieldObservationsRouter: {
1283
1309
  action: string;
1284
1310
  details: string;
1285
1311
  timing: string;
1312
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
1313
+ confidence?: number | undefined;
1286
1314
  materials?: {
1287
1315
  name: string;
1288
1316
  unit: string;
@@ -1298,7 +1326,7 @@ export declare const fieldObservationsRouter: {
1298
1326
  estimatedTime?: string | undefined;
1299
1327
  riskLevel?: string | undefined;
1300
1328
  }[] | null;
1301
- severity: "critical" | "high" | "medium" | "low" | null;
1329
+ severity: "critical" | "low" | "medium" | "high" | null;
1302
1330
  uploadedBy: string;
1303
1331
  photoUrl: string;
1304
1332
  photoThumbnail: string | null;
@@ -1306,7 +1334,7 @@ export declare const fieldObservationsRouter: {
1306
1334
  observationType: "general" | "disease" | "pest" | "nutrient" | "weed" | "health_check";
1307
1335
  userNotes: string | null;
1308
1336
  cropStageAtTime: "planted" | "flowering" | "mature" | "harvested" | "germination" | "vegetative" | "fruiting" | null;
1309
- analysisStatus: "pending" | "completed" | "processing" | "failed";
1337
+ analysisStatus: "pending" | "completed" | "failed" | "processing";
1310
1338
  analysisCompletedAt: Date | null;
1311
1339
  identifiedCrop: string | null;
1312
1340
  identifiedCropConfidence: number | null;
@@ -1371,6 +1399,8 @@ export declare const fieldObservationsRouter: {
1371
1399
  action: string;
1372
1400
  details: string;
1373
1401
  timing: string;
1402
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
1403
+ confidence?: number | undefined;
1374
1404
  materials?: {
1375
1405
  name: string;
1376
1406
  unit: string;
@@ -1386,7 +1416,7 @@ export declare const fieldObservationsRouter: {
1386
1416
  estimatedTime?: string | undefined;
1387
1417
  riskLevel?: string | undefined;
1388
1418
  }[] | null;
1389
- severity: "critical" | "high" | "medium" | "low" | null;
1419
+ severity: "critical" | "low" | "medium" | "high" | null;
1390
1420
  uploadedBy: string;
1391
1421
  photoUrl: string;
1392
1422
  photoThumbnail: string | null;
@@ -1394,7 +1424,7 @@ export declare const fieldObservationsRouter: {
1394
1424
  observationType: "general" | "disease" | "pest" | "nutrient" | "weed" | "health_check";
1395
1425
  userNotes: string | null;
1396
1426
  cropStageAtTime: "planted" | "flowering" | "mature" | "harvested" | "germination" | "vegetative" | "fruiting" | null;
1397
- analysisStatus: "pending" | "completed" | "processing" | "failed";
1427
+ analysisStatus: "pending" | "completed" | "failed" | "processing";
1398
1428
  analysisCompletedAt: Date | null;
1399
1429
  identifiedCrop: string | null;
1400
1430
  identifiedCropConfidence: number | null;
@@ -1459,6 +1489,8 @@ export declare const fieldObservationsRouter: {
1459
1489
  action: string;
1460
1490
  details: string;
1461
1491
  timing: string;
1492
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
1493
+ confidence?: number | undefined;
1462
1494
  materials?: {
1463
1495
  name: string;
1464
1496
  unit: string;
@@ -1474,7 +1506,7 @@ export declare const fieldObservationsRouter: {
1474
1506
  estimatedTime?: string | undefined;
1475
1507
  riskLevel?: string | undefined;
1476
1508
  }[] | null;
1477
- severity: "critical" | "high" | "medium" | "low" | null;
1509
+ severity: "critical" | "low" | "medium" | "high" | null;
1478
1510
  uploadedBy: string;
1479
1511
  photoUrl: string;
1480
1512
  photoThumbnail: string | null;
@@ -1482,7 +1514,7 @@ export declare const fieldObservationsRouter: {
1482
1514
  observationType: "general" | "disease" | "pest" | "nutrient" | "weed" | "health_check";
1483
1515
  userNotes: string | null;
1484
1516
  cropStageAtTime: "planted" | "flowering" | "mature" | "harvested" | "germination" | "vegetative" | "fruiting" | null;
1485
- analysisStatus: "pending" | "completed" | "processing" | "failed";
1517
+ analysisStatus: "pending" | "completed" | "failed" | "processing";
1486
1518
  analysisCompletedAt: Date | null;
1487
1519
  identifiedCrop: string | null;
1488
1520
  identifiedCropConfidence: number | null;
@@ -1573,6 +1605,8 @@ export declare const fieldObservationsRouter: {
1573
1605
  action: string;
1574
1606
  details: string;
1575
1607
  timing: string;
1608
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
1609
+ confidence?: number | undefined;
1576
1610
  materials?: {
1577
1611
  name: string;
1578
1612
  unit: string;
@@ -1588,7 +1622,7 @@ export declare const fieldObservationsRouter: {
1588
1622
  estimatedTime?: string | undefined;
1589
1623
  riskLevel?: string | undefined;
1590
1624
  }[] | null;
1591
- severity: "critical" | "high" | "medium" | "low" | null;
1625
+ severity: "critical" | "low" | "medium" | "high" | null;
1592
1626
  uploadedBy: string;
1593
1627
  photoUrl: string;
1594
1628
  photoThumbnail: string | null;
@@ -1596,7 +1630,7 @@ export declare const fieldObservationsRouter: {
1596
1630
  observationType: "general" | "disease" | "pest" | "nutrient" | "weed" | "health_check";
1597
1631
  userNotes: string | null;
1598
1632
  cropStageAtTime: "planted" | "flowering" | "mature" | "harvested" | "germination" | "vegetative" | "fruiting" | null;
1599
- analysisStatus: "pending" | "completed" | "processing" | "failed";
1633
+ analysisStatus: "pending" | "completed" | "failed" | "processing";
1600
1634
  analysisCompletedAt: Date | null;
1601
1635
  identifiedCrop: string | null;
1602
1636
  identifiedCropConfidence: number | null;
@@ -1673,6 +1707,8 @@ export declare const fieldObservationsRouter: {
1673
1707
  action: string;
1674
1708
  details: string;
1675
1709
  timing: string;
1710
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
1711
+ confidence?: number | undefined;
1676
1712
  materials?: {
1677
1713
  name: string;
1678
1714
  unit: string;
@@ -1688,7 +1724,7 @@ export declare const fieldObservationsRouter: {
1688
1724
  estimatedTime?: string | undefined;
1689
1725
  riskLevel?: string | undefined;
1690
1726
  }[] | null;
1691
- severity: "critical" | "high" | "medium" | "low" | null;
1727
+ severity: "critical" | "low" | "medium" | "high" | null;
1692
1728
  uploadedBy: string;
1693
1729
  photoUrl: string;
1694
1730
  photoThumbnail: string | null;
@@ -1696,7 +1732,7 @@ export declare const fieldObservationsRouter: {
1696
1732
  observationType: "general" | "disease" | "pest" | "nutrient" | "weed" | "health_check";
1697
1733
  userNotes: string | null;
1698
1734
  cropStageAtTime: "planted" | "flowering" | "mature" | "harvested" | "germination" | "vegetative" | "fruiting" | null;
1699
- analysisStatus: "pending" | "completed" | "processing" | "failed";
1735
+ analysisStatus: "pending" | "completed" | "failed" | "processing";
1700
1736
  analysisCompletedAt: Date | null;
1701
1737
  identifiedCrop: string | null;
1702
1738
  identifiedCropConfidence: number | null;
@@ -1779,17 +1815,17 @@ export declare const fieldObservationsRouter: {
1779
1815
  }, "strip", z.ZodTypeAny, {
1780
1816
  pageSize: string;
1781
1817
  page: string;
1782
- status?: "pending" | "completed" | "processing" | "failed" | undefined;
1818
+ status?: "pending" | "completed" | "failed" | "processing" | undefined;
1783
1819
  fieldId?: string | undefined;
1784
- severity?: "critical" | "high" | "medium" | "low" | undefined;
1820
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
1785
1821
  startDate?: string | undefined;
1786
1822
  endDate?: string | undefined;
1787
1823
  observationType?: string | undefined;
1788
1824
  }, {
1789
- status?: "pending" | "completed" | "processing" | "failed" | undefined;
1825
+ status?: "pending" | "completed" | "failed" | "processing" | undefined;
1790
1826
  pageSize?: string | undefined;
1791
1827
  fieldId?: string | undefined;
1792
- severity?: "critical" | "high" | "medium" | "low" | undefined;
1828
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
1793
1829
  startDate?: string | undefined;
1794
1830
  endDate?: string | undefined;
1795
1831
  observationType?: string | undefined;
@@ -1937,6 +1973,8 @@ export declare const fieldObservationsRouter: {
1937
1973
  action: z.ZodString;
1938
1974
  details: z.ZodString;
1939
1975
  timing: z.ZodString;
1976
+ severity: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "critical"]>>;
1977
+ confidence: z.ZodOptional<z.ZodNumber>;
1940
1978
  materials: z.ZodOptional<z.ZodArray<z.ZodObject<{
1941
1979
  inventoryItemId: z.ZodOptional<z.ZodString>;
1942
1980
  name: z.ZodString;
@@ -1972,6 +2010,8 @@ export declare const fieldObservationsRouter: {
1972
2010
  action: string;
1973
2011
  details: string;
1974
2012
  timing: string;
2013
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
2014
+ confidence?: number | undefined;
1975
2015
  materials?: {
1976
2016
  name: string;
1977
2017
  unit: string;
@@ -1991,6 +2031,8 @@ export declare const fieldObservationsRouter: {
1991
2031
  action: string;
1992
2032
  details: string;
1993
2033
  timing: string;
2034
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
2035
+ confidence?: number | undefined;
1994
2036
  materials?: {
1995
2037
  name: string;
1996
2038
  unit: string;
@@ -2037,6 +2079,8 @@ export declare const fieldObservationsRouter: {
2037
2079
  action: string;
2038
2080
  details: string;
2039
2081
  timing: string;
2082
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
2083
+ confidence?: number | undefined;
2040
2084
  materials?: {
2041
2085
  name: string;
2042
2086
  unit: string;
@@ -2052,7 +2096,7 @@ export declare const fieldObservationsRouter: {
2052
2096
  estimatedTime?: string | undefined;
2053
2097
  riskLevel?: string | undefined;
2054
2098
  }[] | null;
2055
- severity: "critical" | "high" | "medium" | "low" | null;
2099
+ severity: "critical" | "low" | "medium" | "high" | null;
2056
2100
  uploadedBy: string;
2057
2101
  photoUrl: string;
2058
2102
  photoThumbnail: string | null;
@@ -2060,7 +2104,7 @@ export declare const fieldObservationsRouter: {
2060
2104
  observationType: "general" | "disease" | "pest" | "nutrient" | "weed" | "health_check";
2061
2105
  userNotes: string | null;
2062
2106
  cropStageAtTime: "planted" | "flowering" | "mature" | "harvested" | "germination" | "vegetative" | "fruiting" | null;
2063
- analysisStatus: "pending" | "completed" | "processing" | "failed";
2107
+ analysisStatus: "pending" | "completed" | "failed" | "processing";
2064
2108
  analysisCompletedAt: Date | null;
2065
2109
  identifiedCrop: string | null;
2066
2110
  identifiedCropConfidence: number | null;
@@ -2118,6 +2162,8 @@ export declare const fieldObservationsRouter: {
2118
2162
  action: string;
2119
2163
  details: string;
2120
2164
  timing: string;
2165
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
2166
+ confidence?: number | undefined;
2121
2167
  materials?: {
2122
2168
  name: string;
2123
2169
  unit: string;
@@ -2133,7 +2179,7 @@ export declare const fieldObservationsRouter: {
2133
2179
  estimatedTime?: string | undefined;
2134
2180
  riskLevel?: string | undefined;
2135
2181
  }[] | null;
2136
- severity: "critical" | "high" | "medium" | "low" | null;
2182
+ severity: "critical" | "low" | "medium" | "high" | null;
2137
2183
  uploadedBy: string;
2138
2184
  photoUrl: string;
2139
2185
  photoThumbnail: string | null;
@@ -2141,7 +2187,7 @@ export declare const fieldObservationsRouter: {
2141
2187
  observationType: "general" | "disease" | "pest" | "nutrient" | "weed" | "health_check";
2142
2188
  userNotes: string | null;
2143
2189
  cropStageAtTime: "planted" | "flowering" | "mature" | "harvested" | "germination" | "vegetative" | "fruiting" | null;
2144
- analysisStatus: "pending" | "completed" | "processing" | "failed";
2190
+ analysisStatus: "pending" | "completed" | "failed" | "processing";
2145
2191
  analysisCompletedAt: Date | null;
2146
2192
  identifiedCrop: string | null;
2147
2193
  identifiedCropConfidence: number | null;
@@ -2206,6 +2252,8 @@ export declare const fieldObservationsRouter: {
2206
2252
  action: string;
2207
2253
  details: string;
2208
2254
  timing: string;
2255
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
2256
+ confidence?: number | undefined;
2209
2257
  materials?: {
2210
2258
  name: string;
2211
2259
  unit: string;
@@ -2221,7 +2269,7 @@ export declare const fieldObservationsRouter: {
2221
2269
  estimatedTime?: string | undefined;
2222
2270
  riskLevel?: string | undefined;
2223
2271
  }[] | null;
2224
- severity: "critical" | "high" | "medium" | "low" | null;
2272
+ severity: "critical" | "low" | "medium" | "high" | null;
2225
2273
  uploadedBy: string;
2226
2274
  photoUrl: string;
2227
2275
  photoThumbnail: string | null;
@@ -2229,7 +2277,7 @@ export declare const fieldObservationsRouter: {
2229
2277
  observationType: "general" | "disease" | "pest" | "nutrient" | "weed" | "health_check";
2230
2278
  userNotes: string | null;
2231
2279
  cropStageAtTime: "planted" | "flowering" | "mature" | "harvested" | "germination" | "vegetative" | "fruiting" | null;
2232
- analysisStatus: "pending" | "completed" | "processing" | "failed";
2280
+ analysisStatus: "pending" | "completed" | "failed" | "processing";
2233
2281
  analysisCompletedAt: Date | null;
2234
2282
  identifiedCrop: string | null;
2235
2283
  identifiedCropConfidence: number | null;
@@ -2294,6 +2342,8 @@ export declare const fieldObservationsRouter: {
2294
2342
  action: string;
2295
2343
  details: string;
2296
2344
  timing: string;
2345
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
2346
+ confidence?: number | undefined;
2297
2347
  materials?: {
2298
2348
  name: string;
2299
2349
  unit: string;
@@ -2309,7 +2359,7 @@ export declare const fieldObservationsRouter: {
2309
2359
  estimatedTime?: string | undefined;
2310
2360
  riskLevel?: string | undefined;
2311
2361
  }[] | null;
2312
- severity: "critical" | "high" | "medium" | "low" | null;
2362
+ severity: "critical" | "low" | "medium" | "high" | null;
2313
2363
  uploadedBy: string;
2314
2364
  photoUrl: string;
2315
2365
  photoThumbnail: string | null;
@@ -2317,7 +2367,7 @@ export declare const fieldObservationsRouter: {
2317
2367
  observationType: "general" | "disease" | "pest" | "nutrient" | "weed" | "health_check";
2318
2368
  userNotes: string | null;
2319
2369
  cropStageAtTime: "planted" | "flowering" | "mature" | "harvested" | "germination" | "vegetative" | "fruiting" | null;
2320
- analysisStatus: "pending" | "completed" | "processing" | "failed";
2370
+ analysisStatus: "pending" | "completed" | "failed" | "processing";
2321
2371
  analysisCompletedAt: Date | null;
2322
2372
  identifiedCrop: string | null;
2323
2373
  identifiedCropConfidence: number | null;
@@ -2408,6 +2458,8 @@ export declare const fieldObservationsRouter: {
2408
2458
  action: string;
2409
2459
  details: string;
2410
2460
  timing: string;
2461
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
2462
+ confidence?: number | undefined;
2411
2463
  materials?: {
2412
2464
  name: string;
2413
2465
  unit: string;
@@ -2423,7 +2475,7 @@ export declare const fieldObservationsRouter: {
2423
2475
  estimatedTime?: string | undefined;
2424
2476
  riskLevel?: string | undefined;
2425
2477
  }[] | null;
2426
- severity: "critical" | "high" | "medium" | "low" | null;
2478
+ severity: "critical" | "low" | "medium" | "high" | null;
2427
2479
  uploadedBy: string;
2428
2480
  photoUrl: string;
2429
2481
  photoThumbnail: string | null;
@@ -2431,7 +2483,7 @@ export declare const fieldObservationsRouter: {
2431
2483
  observationType: "general" | "disease" | "pest" | "nutrient" | "weed" | "health_check";
2432
2484
  userNotes: string | null;
2433
2485
  cropStageAtTime: "planted" | "flowering" | "mature" | "harvested" | "germination" | "vegetative" | "fruiting" | null;
2434
- analysisStatus: "pending" | "completed" | "processing" | "failed";
2486
+ analysisStatus: "pending" | "completed" | "failed" | "processing";
2435
2487
  analysisCompletedAt: Date | null;
2436
2488
  identifiedCrop: string | null;
2437
2489
  identifiedCropConfidence: number | null;
@@ -2508,6 +2560,8 @@ export declare const fieldObservationsRouter: {
2508
2560
  action: string;
2509
2561
  details: string;
2510
2562
  timing: string;
2563
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
2564
+ confidence?: number | undefined;
2511
2565
  materials?: {
2512
2566
  name: string;
2513
2567
  unit: string;
@@ -2523,7 +2577,7 @@ export declare const fieldObservationsRouter: {
2523
2577
  estimatedTime?: string | undefined;
2524
2578
  riskLevel?: string | undefined;
2525
2579
  }[] | null;
2526
- severity: "critical" | "high" | "medium" | "low" | null;
2580
+ severity: "critical" | "low" | "medium" | "high" | null;
2527
2581
  uploadedBy: string;
2528
2582
  photoUrl: string;
2529
2583
  photoThumbnail: string | null;
@@ -2531,7 +2585,7 @@ export declare const fieldObservationsRouter: {
2531
2585
  observationType: "general" | "disease" | "pest" | "nutrient" | "weed" | "health_check";
2532
2586
  userNotes: string | null;
2533
2587
  cropStageAtTime: "planted" | "flowering" | "mature" | "harvested" | "germination" | "vegetative" | "fruiting" | null;
2534
- analysisStatus: "pending" | "completed" | "processing" | "failed";
2588
+ analysisStatus: "pending" | "completed" | "failed" | "processing";
2535
2589
  analysisCompletedAt: Date | null;
2536
2590
  identifiedCrop: string | null;
2537
2591
  identifiedCropConfidence: number | null;
@@ -2776,6 +2830,8 @@ export declare const fieldObservationsRouter: {
2776
2830
  action: z.ZodString;
2777
2831
  details: z.ZodString;
2778
2832
  timing: z.ZodString;
2833
+ severity: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "critical"]>>;
2834
+ confidence: z.ZodOptional<z.ZodNumber>;
2779
2835
  materials: z.ZodOptional<z.ZodArray<z.ZodObject<{
2780
2836
  inventoryItemId: z.ZodOptional<z.ZodString>;
2781
2837
  name: z.ZodString;
@@ -2811,6 +2867,8 @@ export declare const fieldObservationsRouter: {
2811
2867
  action: string;
2812
2868
  details: string;
2813
2869
  timing: string;
2870
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
2871
+ confidence?: number | undefined;
2814
2872
  materials?: {
2815
2873
  name: string;
2816
2874
  unit: string;
@@ -2830,6 +2888,8 @@ export declare const fieldObservationsRouter: {
2830
2888
  action: string;
2831
2889
  details: string;
2832
2890
  timing: string;
2891
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
2892
+ confidence?: number | undefined;
2833
2893
  materials?: {
2834
2894
  name: string;
2835
2895
  unit: string;
@@ -2876,6 +2936,8 @@ export declare const fieldObservationsRouter: {
2876
2936
  action: string;
2877
2937
  details: string;
2878
2938
  timing: string;
2939
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
2940
+ confidence?: number | undefined;
2879
2941
  materials?: {
2880
2942
  name: string;
2881
2943
  unit: string;
@@ -2891,7 +2953,7 @@ export declare const fieldObservationsRouter: {
2891
2953
  estimatedTime?: string | undefined;
2892
2954
  riskLevel?: string | undefined;
2893
2955
  }[] | null;
2894
- severity: "critical" | "high" | "medium" | "low" | null;
2956
+ severity: "critical" | "low" | "medium" | "high" | null;
2895
2957
  uploadedBy: string;
2896
2958
  photoUrl: string;
2897
2959
  photoThumbnail: string | null;
@@ -2899,7 +2961,7 @@ export declare const fieldObservationsRouter: {
2899
2961
  observationType: "general" | "disease" | "pest" | "nutrient" | "weed" | "health_check";
2900
2962
  userNotes: string | null;
2901
2963
  cropStageAtTime: "planted" | "flowering" | "mature" | "harvested" | "germination" | "vegetative" | "fruiting" | null;
2902
- analysisStatus: "pending" | "completed" | "processing" | "failed";
2964
+ analysisStatus: "pending" | "completed" | "failed" | "processing";
2903
2965
  analysisCompletedAt: Date | null;
2904
2966
  identifiedCrop: string | null;
2905
2967
  identifiedCropConfidence: number | null;
@@ -2957,6 +3019,8 @@ export declare const fieldObservationsRouter: {
2957
3019
  action: string;
2958
3020
  details: string;
2959
3021
  timing: string;
3022
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
3023
+ confidence?: number | undefined;
2960
3024
  materials?: {
2961
3025
  name: string;
2962
3026
  unit: string;
@@ -2972,7 +3036,7 @@ export declare const fieldObservationsRouter: {
2972
3036
  estimatedTime?: string | undefined;
2973
3037
  riskLevel?: string | undefined;
2974
3038
  }[] | null;
2975
- severity: "critical" | "high" | "medium" | "low" | null;
3039
+ severity: "critical" | "low" | "medium" | "high" | null;
2976
3040
  uploadedBy: string;
2977
3041
  photoUrl: string;
2978
3042
  photoThumbnail: string | null;
@@ -2980,7 +3044,7 @@ export declare const fieldObservationsRouter: {
2980
3044
  observationType: "general" | "disease" | "pest" | "nutrient" | "weed" | "health_check";
2981
3045
  userNotes: string | null;
2982
3046
  cropStageAtTime: "planted" | "flowering" | "mature" | "harvested" | "germination" | "vegetative" | "fruiting" | null;
2983
- analysisStatus: "pending" | "completed" | "processing" | "failed";
3047
+ analysisStatus: "pending" | "completed" | "failed" | "processing";
2984
3048
  analysisCompletedAt: Date | null;
2985
3049
  identifiedCrop: string | null;
2986
3050
  identifiedCropConfidence: number | null;
@@ -3045,6 +3109,8 @@ export declare const fieldObservationsRouter: {
3045
3109
  action: string;
3046
3110
  details: string;
3047
3111
  timing: string;
3112
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
3113
+ confidence?: number | undefined;
3048
3114
  materials?: {
3049
3115
  name: string;
3050
3116
  unit: string;
@@ -3060,7 +3126,7 @@ export declare const fieldObservationsRouter: {
3060
3126
  estimatedTime?: string | undefined;
3061
3127
  riskLevel?: string | undefined;
3062
3128
  }[] | null;
3063
- severity: "critical" | "high" | "medium" | "low" | null;
3129
+ severity: "critical" | "low" | "medium" | "high" | null;
3064
3130
  uploadedBy: string;
3065
3131
  photoUrl: string;
3066
3132
  photoThumbnail: string | null;
@@ -3068,7 +3134,7 @@ export declare const fieldObservationsRouter: {
3068
3134
  observationType: "general" | "disease" | "pest" | "nutrient" | "weed" | "health_check";
3069
3135
  userNotes: string | null;
3070
3136
  cropStageAtTime: "planted" | "flowering" | "mature" | "harvested" | "germination" | "vegetative" | "fruiting" | null;
3071
- analysisStatus: "pending" | "completed" | "processing" | "failed";
3137
+ analysisStatus: "pending" | "completed" | "failed" | "processing";
3072
3138
  analysisCompletedAt: Date | null;
3073
3139
  identifiedCrop: string | null;
3074
3140
  identifiedCropConfidence: number | null;
@@ -3133,6 +3199,8 @@ export declare const fieldObservationsRouter: {
3133
3199
  action: string;
3134
3200
  details: string;
3135
3201
  timing: string;
3202
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
3203
+ confidence?: number | undefined;
3136
3204
  materials?: {
3137
3205
  name: string;
3138
3206
  unit: string;
@@ -3148,7 +3216,7 @@ export declare const fieldObservationsRouter: {
3148
3216
  estimatedTime?: string | undefined;
3149
3217
  riskLevel?: string | undefined;
3150
3218
  }[] | null;
3151
- severity: "critical" | "high" | "medium" | "low" | null;
3219
+ severity: "critical" | "low" | "medium" | "high" | null;
3152
3220
  uploadedBy: string;
3153
3221
  photoUrl: string;
3154
3222
  photoThumbnail: string | null;
@@ -3156,7 +3224,7 @@ export declare const fieldObservationsRouter: {
3156
3224
  observationType: "general" | "disease" | "pest" | "nutrient" | "weed" | "health_check";
3157
3225
  userNotes: string | null;
3158
3226
  cropStageAtTime: "planted" | "flowering" | "mature" | "harvested" | "germination" | "vegetative" | "fruiting" | null;
3159
- analysisStatus: "pending" | "completed" | "processing" | "failed";
3227
+ analysisStatus: "pending" | "completed" | "failed" | "processing";
3160
3228
  analysisCompletedAt: Date | null;
3161
3229
  identifiedCrop: string | null;
3162
3230
  identifiedCropConfidence: number | null;
@@ -3247,6 +3315,8 @@ export declare const fieldObservationsRouter: {
3247
3315
  action: string;
3248
3316
  details: string;
3249
3317
  timing: string;
3318
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
3319
+ confidence?: number | undefined;
3250
3320
  materials?: {
3251
3321
  name: string;
3252
3322
  unit: string;
@@ -3262,7 +3332,7 @@ export declare const fieldObservationsRouter: {
3262
3332
  estimatedTime?: string | undefined;
3263
3333
  riskLevel?: string | undefined;
3264
3334
  }[] | null;
3265
- severity: "critical" | "high" | "medium" | "low" | null;
3335
+ severity: "critical" | "low" | "medium" | "high" | null;
3266
3336
  uploadedBy: string;
3267
3337
  photoUrl: string;
3268
3338
  photoThumbnail: string | null;
@@ -3270,7 +3340,7 @@ export declare const fieldObservationsRouter: {
3270
3340
  observationType: "general" | "disease" | "pest" | "nutrient" | "weed" | "health_check";
3271
3341
  userNotes: string | null;
3272
3342
  cropStageAtTime: "planted" | "flowering" | "mature" | "harvested" | "germination" | "vegetative" | "fruiting" | null;
3273
- analysisStatus: "pending" | "completed" | "processing" | "failed";
3343
+ analysisStatus: "pending" | "completed" | "failed" | "processing";
3274
3344
  analysisCompletedAt: Date | null;
3275
3345
  identifiedCrop: string | null;
3276
3346
  identifiedCropConfidence: number | null;
@@ -3347,6 +3417,8 @@ export declare const fieldObservationsRouter: {
3347
3417
  action: string;
3348
3418
  details: string;
3349
3419
  timing: string;
3420
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
3421
+ confidence?: number | undefined;
3350
3422
  materials?: {
3351
3423
  name: string;
3352
3424
  unit: string;
@@ -3362,7 +3434,7 @@ export declare const fieldObservationsRouter: {
3362
3434
  estimatedTime?: string | undefined;
3363
3435
  riskLevel?: string | undefined;
3364
3436
  }[] | null;
3365
- severity: "critical" | "high" | "medium" | "low" | null;
3437
+ severity: "critical" | "low" | "medium" | "high" | null;
3366
3438
  uploadedBy: string;
3367
3439
  photoUrl: string;
3368
3440
  photoThumbnail: string | null;
@@ -3370,7 +3442,7 @@ export declare const fieldObservationsRouter: {
3370
3442
  observationType: "general" | "disease" | "pest" | "nutrient" | "weed" | "health_check";
3371
3443
  userNotes: string | null;
3372
3444
  cropStageAtTime: "planted" | "flowering" | "mature" | "harvested" | "germination" | "vegetative" | "fruiting" | null;
3373
- analysisStatus: "pending" | "completed" | "processing" | "failed";
3445
+ analysisStatus: "pending" | "completed" | "failed" | "processing";
3374
3446
  analysisCompletedAt: Date | null;
3375
3447
  identifiedCrop: string | null;
3376
3448
  identifiedCropConfidence: number | null;
@@ -3494,9 +3566,9 @@ export declare const fieldObservationsRouter: {
3494
3566
  }>, "many">;
3495
3567
  }, "strip", z.ZodTypeAny, {
3496
3568
  total: number;
3569
+ avgConfidence: number;
3497
3570
  byType: Record<string, number>;
3498
3571
  bySeverity: Record<string, number>;
3499
- avgConfidence: number;
3500
3572
  mostCommonIssues: {
3501
3573
  name: string;
3502
3574
  count: number;
@@ -3504,9 +3576,9 @@ export declare const fieldObservationsRouter: {
3504
3576
  }[];
3505
3577
  }, {
3506
3578
  total: number;
3579
+ avgConfidence: number;
3507
3580
  byType: Record<string, number>;
3508
3581
  bySeverity: Record<string, number>;
3509
- avgConfidence: number;
3510
3582
  mostCommonIssues: {
3511
3583
  name: string;
3512
3584
  count: number;