@deepintel-ltd/farmpro-contracts 1.7.14 → 1.7.20

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 (126) hide show
  1. package/dist/index.d.ts +18 -1
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +17 -0
  4. package/dist/routes/agent-workflows.routes.d.ts +88 -88
  5. package/dist/routes/agents.routes.d.ts +3266 -6
  6. package/dist/routes/agents.routes.d.ts.map +1 -1
  7. package/dist/routes/agents.routes.js +130 -1
  8. package/dist/routes/analytics.routes.d.ts +20 -20
  9. package/dist/routes/cooperative.routes.d.ts +1327 -0
  10. package/dist/routes/cooperative.routes.d.ts.map +1 -0
  11. package/dist/routes/cooperative.routes.js +47 -0
  12. package/dist/routes/documents.routes.d.ts +855 -58
  13. package/dist/routes/documents.routes.d.ts.map +1 -1
  14. package/dist/routes/documents.routes.js +43 -1
  15. package/dist/routes/equipment.routes.d.ts +38 -38
  16. package/dist/routes/extension.routes.d.ts +2431 -0
  17. package/dist/routes/extension.routes.d.ts.map +1 -0
  18. package/dist/routes/extension.routes.js +75 -0
  19. package/dist/routes/farm-status.routes.d.ts +315 -0
  20. package/dist/routes/farm-status.routes.d.ts.map +1 -0
  21. package/dist/routes/farm-status.routes.js +26 -0
  22. package/dist/routes/farms.routes.d.ts +775 -0
  23. package/dist/routes/farms.routes.d.ts.map +1 -1
  24. package/dist/routes/farms.routes.js +15 -1
  25. package/dist/routes/fertigation.routes.d.ts +148 -148
  26. package/dist/routes/field-monitoring.routes.d.ts +557 -52
  27. package/dist/routes/field-monitoring.routes.d.ts.map +1 -1
  28. package/dist/routes/field-monitoring.routes.js +23 -1
  29. package/dist/routes/field-observations.routes.d.ts +56 -56
  30. package/dist/routes/fields.routes.d.ts +156 -155
  31. package/dist/routes/fields.routes.d.ts.map +1 -1
  32. package/dist/routes/finance.routes.d.ts +3493 -0
  33. package/dist/routes/finance.routes.d.ts.map +1 -1
  34. package/dist/routes/finance.routes.js +158 -1
  35. package/dist/routes/geofences.routes.d.ts.map +1 -1
  36. package/dist/routes/index.d.ts +18 -0
  37. package/dist/routes/index.d.ts.map +1 -1
  38. package/dist/routes/index.js +12 -0
  39. package/dist/routes/irrigation.routes.d.ts +6 -6
  40. package/dist/routes/live-monitor.routes.d.ts +513 -0
  41. package/dist/routes/live-monitor.routes.d.ts.map +1 -0
  42. package/dist/routes/live-monitor.routes.js +81 -0
  43. package/dist/routes/livestock-map.routes.d.ts +4 -4
  44. package/dist/routes/measurements.routes.d.ts +13 -4
  45. package/dist/routes/measurements.routes.d.ts.map +1 -1
  46. package/dist/routes/monitoring-visualization.routes.d.ts +40 -33
  47. package/dist/routes/monitoring-visualization.routes.d.ts.map +1 -1
  48. package/dist/routes/monitoring-visualization.routes.js +7 -4
  49. package/dist/routes/notifications.routes.d.ts +1350 -0
  50. package/dist/routes/notifications.routes.d.ts.map +1 -0
  51. package/dist/routes/notifications.routes.js +66 -0
  52. package/dist/routes/pest-disease-risk.routes.d.ts +20 -20
  53. package/dist/routes/prescription-maps.routes.d.ts +567 -20
  54. package/dist/routes/prescription-maps.routes.d.ts.map +1 -1
  55. package/dist/routes/prescription-maps.routes.js +18 -1
  56. package/dist/routes/soil-tests.routes.d.ts +30 -30
  57. package/dist/routes/subscriptions.routes.d.ts +14 -14
  58. package/dist/routes/team-payments.routes.d.ts +9571 -0
  59. package/dist/routes/team-payments.routes.d.ts.map +1 -0
  60. package/dist/routes/team-payments.routes.js +262 -0
  61. package/dist/routes/weather.routes.d.ts +545 -52
  62. package/dist/routes/weather.routes.d.ts.map +1 -1
  63. package/dist/routes/weather.routes.js +13 -1
  64. package/dist/routes/yield-prediction.routes.d.ts +30 -30
  65. package/dist/schemas/agent-workflows.schemas.d.ts +92 -92
  66. package/dist/schemas/agents.schemas.d.ts +1121 -0
  67. package/dist/schemas/agents.schemas.d.ts.map +1 -1
  68. package/dist/schemas/agents.schemas.js +181 -0
  69. package/dist/schemas/analytics.schemas.d.ts +56 -56
  70. package/dist/schemas/cooperative.schemas.d.ts +560 -0
  71. package/dist/schemas/cooperative.schemas.d.ts.map +1 -0
  72. package/dist/schemas/cooperative.schemas.js +71 -0
  73. package/dist/schemas/documents.schemas.d.ts +248 -48
  74. package/dist/schemas/documents.schemas.d.ts.map +1 -1
  75. package/dist/schemas/documents.schemas.js +38 -0
  76. package/dist/schemas/equipment.schemas.d.ts +30 -30
  77. package/dist/schemas/extension.schemas.d.ts +1204 -0
  78. package/dist/schemas/extension.schemas.d.ts.map +1 -0
  79. package/dist/schemas/extension.schemas.js +68 -0
  80. package/dist/schemas/farm-status.schemas.d.ts +451 -0
  81. package/dist/schemas/farm-status.schemas.d.ts.map +1 -0
  82. package/dist/schemas/farm-status.schemas.js +44 -0
  83. package/dist/schemas/farms.schemas.d.ts +591 -0
  84. package/dist/schemas/farms.schemas.d.ts.map +1 -1
  85. package/dist/schemas/farms.schemas.js +44 -0
  86. package/dist/schemas/fertigation.schemas.d.ts +50 -50
  87. package/dist/schemas/field-monitoring.schemas.d.ts +318 -42
  88. package/dist/schemas/field-monitoring.schemas.d.ts.map +1 -1
  89. package/dist/schemas/field-monitoring.schemas.js +9 -0
  90. package/dist/schemas/field-observations.schemas.d.ts +45 -44
  91. package/dist/schemas/field-observations.schemas.d.ts.map +1 -1
  92. package/dist/schemas/fields.schemas.d.ts +188 -186
  93. package/dist/schemas/fields.schemas.d.ts.map +1 -1
  94. package/dist/schemas/fields.schemas.js +10 -2
  95. package/dist/schemas/finance.schemas.d.ts +1057 -0
  96. package/dist/schemas/finance.schemas.d.ts.map +1 -1
  97. package/dist/schemas/finance.schemas.js +170 -0
  98. package/dist/schemas/irrigation.schemas.d.ts +8 -8
  99. package/dist/schemas/live-monitor.schemas.d.ts +596 -0
  100. package/dist/schemas/live-monitor.schemas.d.ts.map +1 -0
  101. package/dist/schemas/live-monitor.schemas.js +107 -0
  102. package/dist/schemas/livestock-map.schemas.d.ts +10 -10
  103. package/dist/schemas/measurements.schemas.d.ts +21 -8
  104. package/dist/schemas/measurements.schemas.d.ts.map +1 -1
  105. package/dist/schemas/measurements.schemas.js +13 -6
  106. package/dist/schemas/monitoring-visualization.schemas.d.ts +47 -40
  107. package/dist/schemas/monitoring-visualization.schemas.d.ts.map +1 -1
  108. package/dist/schemas/monitoring-visualization.schemas.js +24 -16
  109. package/dist/schemas/notifications.schemas.d.ts +464 -0
  110. package/dist/schemas/notifications.schemas.d.ts.map +1 -0
  111. package/dist/schemas/notifications.schemas.js +40 -0
  112. package/dist/schemas/pest-disease-risk.schemas.d.ts +18 -18
  113. package/dist/schemas/prescription-maps.schemas.d.ts +41 -18
  114. package/dist/schemas/prescription-maps.schemas.d.ts.map +1 -1
  115. package/dist/schemas/prescription-maps.schemas.js +8 -0
  116. package/dist/schemas/recommendations.schemas.d.ts +2 -2
  117. package/dist/schemas/soil-tests.schemas.d.ts +28 -28
  118. package/dist/schemas/subscriptions.schemas.d.ts +22 -22
  119. package/dist/schemas/team-payments.schemas.d.ts +2604 -0
  120. package/dist/schemas/team-payments.schemas.d.ts.map +1 -0
  121. package/dist/schemas/team-payments.schemas.js +151 -0
  122. package/dist/schemas/weather.schemas.d.ts +789 -112
  123. package/dist/schemas/weather.schemas.d.ts.map +1 -1
  124. package/dist/schemas/weather.schemas.js +37 -0
  125. package/dist/schemas/yield-prediction.schemas.d.ts +12 -12
  126. package/package.json +1 -1
@@ -12,11 +12,11 @@ export declare const measurementsRouter: {
12
12
  fieldId: string;
13
13
  }>;
14
14
  query: z.ZodObject<{
15
- type: z.ZodOptional<z.ZodEnum<["DISTANCE", "AREA", "PERIMETER", "RADIUS"]>>;
15
+ type: z.ZodOptional<z.ZodEffects<z.ZodEnum<["DISTANCE", "AREA", "PERIMETER", "RADIUS", "distance", "area", "perimeter", "radius"]>, "DISTANCE" | "AREA" | "PERIMETER" | "RADIUS", "area" | "distance" | "DISTANCE" | "AREA" | "PERIMETER" | "RADIUS" | "perimeter" | "radius">>;
16
16
  }, "strip", z.ZodTypeAny, {
17
17
  type?: "DISTANCE" | "AREA" | "PERIMETER" | "RADIUS" | undefined;
18
18
  }, {
19
- type?: "DISTANCE" | "AREA" | "PERIMETER" | "RADIUS" | undefined;
19
+ type?: "area" | "distance" | "DISTANCE" | "AREA" | "PERIMETER" | "RADIUS" | "perimeter" | "radius" | undefined;
20
20
  }>;
21
21
  summary: "List measurements for a field";
22
22
  method: "GET";
@@ -31,6 +31,7 @@ export declare const measurementsRouter: {
31
31
  points: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">;
32
32
  result: z.ZodNumber;
33
33
  unit: z.ZodString;
34
+ formatted: z.ZodOptional<z.ZodString>;
34
35
  segments: z.ZodNullable<z.ZodArray<z.ZodObject<{
35
36
  distance: z.ZodNumber;
36
37
  bearing: z.ZodOptional<z.ZodNumber>;
@@ -60,6 +61,7 @@ export declare const measurementsRouter: {
60
61
  distance: number;
61
62
  bearing?: number | undefined;
62
63
  }[] | null;
64
+ formatted?: string | undefined;
63
65
  }, {
64
66
  type: "DISTANCE" | "AREA" | "PERIMETER" | "RADIUS";
65
67
  id: string;
@@ -76,6 +78,7 @@ export declare const measurementsRouter: {
76
78
  distance: number;
77
79
  bearing?: number | undefined;
78
80
  }[] | null;
81
+ formatted?: string | undefined;
79
82
  }>, "many">;
80
83
  403: z.ZodObject<{
81
84
  errors: z.ZodArray<z.ZodObject<{
@@ -286,6 +289,7 @@ export declare const measurementsRouter: {
286
289
  points: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">;
287
290
  result: z.ZodNumber;
288
291
  unit: z.ZodString;
292
+ formatted: z.ZodOptional<z.ZodString>;
289
293
  segments: z.ZodNullable<z.ZodArray<z.ZodObject<{
290
294
  distance: z.ZodNumber;
291
295
  bearing: z.ZodOptional<z.ZodNumber>;
@@ -315,6 +319,7 @@ export declare const measurementsRouter: {
315
319
  distance: number;
316
320
  bearing?: number | undefined;
317
321
  }[] | null;
322
+ formatted?: string | undefined;
318
323
  }, {
319
324
  type: "DISTANCE" | "AREA" | "PERIMETER" | "RADIUS";
320
325
  id: string;
@@ -331,6 +336,7 @@ export declare const measurementsRouter: {
331
336
  distance: number;
332
337
  bearing?: number | undefined;
333
338
  }[] | null;
339
+ formatted?: string | undefined;
334
340
  }>;
335
341
  403: z.ZodObject<{
336
342
  errors: z.ZodArray<z.ZodObject<{
@@ -528,7 +534,7 @@ export declare const measurementsRouter: {
528
534
  summary: "Create measurement";
529
535
  method: "POST";
530
536
  body: z.ZodObject<{
531
- type: z.ZodEnum<["DISTANCE", "AREA", "PERIMETER", "RADIUS"]>;
537
+ type: z.ZodEffects<z.ZodEnum<["DISTANCE", "AREA", "PERIMETER", "RADIUS", "distance", "area", "perimeter", "radius"]>, "DISTANCE" | "AREA" | "PERIMETER" | "RADIUS", "area" | "distance" | "DISTANCE" | "AREA" | "PERIMETER" | "RADIUS" | "perimeter" | "radius">;
532
538
  label: z.ZodOptional<z.ZodString>;
533
539
  points: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">;
534
540
  result: z.ZodNumber;
@@ -540,7 +546,7 @@ export declare const measurementsRouter: {
540
546
  points: [number, number][];
541
547
  label?: string | undefined;
542
548
  }, {
543
- type: "DISTANCE" | "AREA" | "PERIMETER" | "RADIUS";
549
+ type: "area" | "distance" | "DISTANCE" | "AREA" | "PERIMETER" | "RADIUS" | "perimeter" | "radius";
544
550
  unit: string;
545
551
  result: number;
546
552
  points: [number, number][];
@@ -557,6 +563,7 @@ export declare const measurementsRouter: {
557
563
  points: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">;
558
564
  result: z.ZodNumber;
559
565
  unit: z.ZodString;
566
+ formatted: z.ZodOptional<z.ZodString>;
560
567
  segments: z.ZodNullable<z.ZodArray<z.ZodObject<{
561
568
  distance: z.ZodNumber;
562
569
  bearing: z.ZodOptional<z.ZodNumber>;
@@ -586,6 +593,7 @@ export declare const measurementsRouter: {
586
593
  distance: number;
587
594
  bearing?: number | undefined;
588
595
  }[] | null;
596
+ formatted?: string | undefined;
589
597
  }, {
590
598
  type: "DISTANCE" | "AREA" | "PERIMETER" | "RADIUS";
591
599
  id: string;
@@ -602,6 +610,7 @@ export declare const measurementsRouter: {
602
610
  distance: number;
603
611
  bearing?: number | undefined;
604
612
  }[] | null;
613
+ formatted?: string | undefined;
605
614
  }>;
606
615
  400: z.ZodObject<{
607
616
  errors: z.ZodArray<z.ZodObject<{
@@ -1 +1 @@
1
- {"version":3,"file":"measurements.routes.d.ts","sourceRoot":"","sources":["../../src/routes/measurements.routes.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAWxB,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+D7B,CAAC"}
@@ -2,7 +2,7 @@ import { z } from 'zod';
2
2
  export declare const monitoringVisualizationRouter: {
3
3
  getSatelliteImagery: {
4
4
  query: z.ZodObject<{
5
- date: z.ZodOptional<z.ZodString>;
5
+ date: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
6
6
  resolution: z.ZodDefault<z.ZodEnum<["low", "medium", "high"]>>;
7
7
  }, "strip", z.ZodTypeAny, {
8
8
  resolution: "low" | "medium" | "high";
@@ -112,7 +112,7 @@ export declare const monitoringVisualizationRouter: {
112
112
  };
113
113
  getNdviHeatmap: {
114
114
  query: z.ZodObject<{
115
- date: z.ZodOptional<z.ZodString>;
115
+ date: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
116
116
  colorPalette: z.ZodDefault<z.ZodEnum<["standard", "detailed", "contrasting", "viridis", "grayscale"]>>;
117
117
  }, "strip", z.ZodTypeAny, {
118
118
  colorPalette: "standard" | "detailed" | "contrasting" | "viridis" | "grayscale";
@@ -220,6 +220,13 @@ export declare const monitoringVisualizationRouter: {
220
220
  };
221
221
  };
222
222
  getSoilMoistureHeatmap: {
223
+ query: z.ZodObject<{
224
+ date: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
225
+ }, "strip", z.ZodTypeAny, {
226
+ date?: string | undefined;
227
+ }, {
228
+ date?: string | undefined;
229
+ }>;
223
230
  summary: "Get soil moisture heatmap data for field";
224
231
  method: "GET";
225
232
  path: "/farms/:farmId/fields/:fieldId/visualization/imagery/soil-moisture";
@@ -344,8 +351,8 @@ export declare const monitoringVisualizationRouter: {
344
351
  };
345
352
  getAvailableDates: {
346
353
  query: z.ZodObject<{
347
- startDate: z.ZodString;
348
- endDate: z.ZodString;
354
+ startDate: z.ZodEffects<z.ZodString, string, string>;
355
+ endDate: z.ZodEffects<z.ZodString, string, string>;
349
356
  maxCloudCoverage: z.ZodDefault<z.ZodPipeline<z.ZodEffects<z.ZodString, number, string>, z.ZodNumber>>;
350
357
  }, "strip", z.ZodTypeAny, {
351
358
  startDate: string;
@@ -435,7 +442,7 @@ export declare const monitoringVisualizationRouter: {
435
442
  };
436
443
  getHistoricalImagery: {
437
444
  query: z.ZodObject<{
438
- date: z.ZodString;
445
+ date: z.ZodEffects<z.ZodString, string, string>;
439
446
  type: z.ZodDefault<z.ZodEnum<["true-color", "ndvi", "both"]>>;
440
447
  }, "strip", z.ZodTypeAny, {
441
448
  type: "ndvi" | "true-color" | "both";
@@ -525,8 +532,8 @@ export declare const monitoringVisualizationRouter: {
525
532
  };
526
533
  compareImagery: {
527
534
  query: z.ZodObject<{
528
- date1: z.ZodString;
529
- date2: z.ZodString;
535
+ date1: z.ZodEffects<z.ZodString, string, string>;
536
+ date2: z.ZodEffects<z.ZodString, string, string>;
530
537
  type: z.ZodDefault<z.ZodEnum<["true-color", "ndvi", "both"]>>;
531
538
  }, "strip", z.ZodTypeAny, {
532
539
  type: "ndvi" | "true-color" | "both";
@@ -714,8 +721,8 @@ export declare const monitoringVisualizationRouter: {
714
721
  summary: "Generate timelapse animation frames";
715
722
  method: "POST";
716
723
  body: z.ZodObject<{
717
- startDate: z.ZodOptional<z.ZodString>;
718
- endDate: z.ZodOptional<z.ZodString>;
724
+ startDate: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
725
+ endDate: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
719
726
  maxFrames: z.ZodDefault<z.ZodNumber>;
720
727
  type: z.ZodEnum<["true-color", "ndvi"]>;
721
728
  maxCloudCoverage: z.ZodDefault<z.ZodNumber>;
@@ -826,7 +833,7 @@ export declare const monitoringVisualizationRouter: {
826
833
  getZoneAnalysis: {
827
834
  query: z.ZodObject<{
828
835
  zoneCount: z.ZodOptional<z.ZodPipeline<z.ZodEffects<z.ZodString, number, string>, z.ZodNumber>>;
829
- date: z.ZodOptional<z.ZodString>;
836
+ date: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
830
837
  }, "strip", z.ZodTypeAny, {
831
838
  date?: string | undefined;
832
839
  zoneCount?: number | undefined;
@@ -1023,7 +1030,7 @@ export declare const monitoringVisualizationRouter: {
1023
1030
  getAnomalies: {
1024
1031
  query: z.ZodObject<{
1025
1032
  threshold: z.ZodDefault<z.ZodPipeline<z.ZodEffects<z.ZodString, number, string>, z.ZodNumber>>;
1026
- compareDate: z.ZodOptional<z.ZodString>;
1033
+ compareDate: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1027
1034
  }, "strip", z.ZodTypeAny, {
1028
1035
  threshold: number;
1029
1036
  compareDate?: string | undefined;
@@ -1087,8 +1094,8 @@ export declare const monitoringVisualizationRouter: {
1087
1094
  coordinates: [number, number][][][];
1088
1095
  };
1089
1096
  area: number;
1090
- severity: "critical" | "low" | "medium" | "high";
1091
1097
  recommendation: string;
1098
+ severity: "critical" | "low" | "medium" | "high";
1092
1099
  centroid: {
1093
1100
  lat: number;
1094
1101
  lng: number;
@@ -1108,8 +1115,8 @@ export declare const monitoringVisualizationRouter: {
1108
1115
  coordinates: [number, number][][][];
1109
1116
  };
1110
1117
  area: number;
1111
- severity: "critical" | "low" | "medium" | "high";
1112
1118
  recommendation: string;
1119
+ severity: "critical" | "low" | "medium" | "high";
1113
1120
  centroid: {
1114
1121
  lat: number;
1115
1122
  lng: number;
@@ -1152,8 +1159,8 @@ export declare const monitoringVisualizationRouter: {
1152
1159
  coordinates: [number, number][][][];
1153
1160
  };
1154
1161
  area: number;
1155
- severity: "critical" | "low" | "medium" | "high";
1156
1162
  recommendation: string;
1163
+ severity: "critical" | "low" | "medium" | "high";
1157
1164
  centroid: {
1158
1165
  lat: number;
1159
1166
  lng: number;
@@ -1183,8 +1190,8 @@ export declare const monitoringVisualizationRouter: {
1183
1190
  coordinates: [number, number][][][];
1184
1191
  };
1185
1192
  area: number;
1186
- severity: "critical" | "low" | "medium" | "high";
1187
1193
  recommendation: string;
1194
+ severity: "critical" | "low" | "medium" | "high";
1188
1195
  centroid: {
1189
1196
  lat: number;
1190
1197
  lng: number;
@@ -1220,7 +1227,7 @@ export declare const monitoringVisualizationRouter: {
1220
1227
  type?: "rainfall" | "all" | "temperature" | undefined;
1221
1228
  days?: string | undefined;
1222
1229
  }>;
1223
- summary: "Get spatial weather data for field overlay";
1230
+ summary: "Get spatial weather data for field overlay (field-level summary)";
1224
1231
  method: "GET";
1225
1232
  path: "/farms/:farmId/fields/:fieldId/visualization/weather";
1226
1233
  responses: {
@@ -1741,13 +1748,13 @@ export declare const monitoringVisualizationRouter: {
1741
1748
  }, "strip", z.ZodTypeAny, {
1742
1749
  value: number;
1743
1750
  unit: string;
1744
- quality: "poor" | "fair" | "good" | null;
1745
1751
  readAt: string;
1752
+ quality: "poor" | "fair" | "good" | null;
1746
1753
  }, {
1747
1754
  value: number;
1748
1755
  unit: string;
1749
- quality: "poor" | "fair" | "good" | null;
1750
1756
  readAt: string;
1757
+ quality: "poor" | "fair" | "good" | null;
1751
1758
  }>, "many">;
1752
1759
  statistics: z.ZodObject<{
1753
1760
  min: z.ZodNumber;
@@ -1769,8 +1776,8 @@ export declare const monitoringVisualizationRouter: {
1769
1776
  readings: {
1770
1777
  value: number;
1771
1778
  unit: string;
1772
- quality: "poor" | "fair" | "good" | null;
1773
1779
  readAt: string;
1780
+ quality: "poor" | "fair" | "good" | null;
1774
1781
  }[];
1775
1782
  statistics: {
1776
1783
  min: number;
@@ -1783,8 +1790,8 @@ export declare const monitoringVisualizationRouter: {
1783
1790
  readings: {
1784
1791
  value: number;
1785
1792
  unit: string;
1786
- quality: "poor" | "fair" | "good" | null;
1787
1793
  readAt: string;
1794
+ quality: "poor" | "fair" | "good" | null;
1788
1795
  }[];
1789
1796
  statistics: {
1790
1797
  min: number;
@@ -1827,12 +1834,12 @@ export declare const monitoringVisualizationRouter: {
1827
1834
  };
1828
1835
  getPhotoTimeline: {
1829
1836
  query: z.ZodObject<{
1830
- startDate: z.ZodOptional<z.ZodString>;
1831
- endDate: z.ZodOptional<z.ZodString>;
1837
+ startDate: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1838
+ endDate: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1832
1839
  issueType: z.ZodOptional<z.ZodEnum<["disease", "pest", "nutrient", "weed", "general", "health_check"]>>;
1833
1840
  groupBy: z.ZodDefault<z.ZodEnum<["day", "week", "month"]>>;
1834
1841
  }, "strip", z.ZodTypeAny, {
1835
- groupBy: "day" | "week" | "month";
1842
+ groupBy: "month" | "day" | "week";
1836
1843
  startDate?: string | undefined;
1837
1844
  endDate?: string | undefined;
1838
1845
  issueType?: "general" | "disease" | "pest" | "nutrient" | "weed" | "health_check" | undefined;
@@ -1840,7 +1847,7 @@ export declare const monitoringVisualizationRouter: {
1840
1847
  startDate?: string | undefined;
1841
1848
  endDate?: string | undefined;
1842
1849
  issueType?: "general" | "disease" | "pest" | "nutrient" | "weed" | "health_check" | undefined;
1843
- groupBy?: "day" | "week" | "month" | undefined;
1850
+ groupBy?: "month" | "day" | "week" | undefined;
1844
1851
  }>;
1845
1852
  summary: "Get photo timeline for field";
1846
1853
  method: "GET";
@@ -2036,8 +2043,8 @@ export declare const monitoringVisualizationRouter: {
2036
2043
  };
2037
2044
  getPhotoMapPins: {
2038
2045
  query: z.ZodObject<{
2039
- startDate: z.ZodOptional<z.ZodString>;
2040
- endDate: z.ZodOptional<z.ZodString>;
2046
+ startDate: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
2047
+ endDate: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
2041
2048
  minHealthScore: z.ZodOptional<z.ZodPipeline<z.ZodEffects<z.ZodString, number, string>, z.ZodNumber>>;
2042
2049
  maxHealthScore: z.ZodOptional<z.ZodPipeline<z.ZodEffects<z.ZodString, number, string>, z.ZodNumber>>;
2043
2050
  }, "strip", z.ZodTypeAny, {
@@ -2081,20 +2088,20 @@ export declare const monitoringVisualizationRouter: {
2081
2088
  confidence: z.ZodNumber;
2082
2089
  }, "strip", z.ZodTypeAny, {
2083
2090
  type: string;
2084
- severity: string;
2085
2091
  confidence: number;
2092
+ severity: string;
2086
2093
  }, {
2087
2094
  type: string;
2088
- severity: string;
2089
2095
  confidence: number;
2096
+ severity: string;
2090
2097
  }>, "many">;
2091
2098
  cropIdentified: z.ZodNullable<z.ZodString>;
2092
2099
  }, "strip", z.ZodTypeAny, {
2093
2100
  status: "critical" | "healthy" | "moderate" | "concerning";
2094
2101
  issues: {
2095
2102
  type: string;
2096
- severity: string;
2097
2103
  confidence: number;
2104
+ severity: string;
2098
2105
  }[];
2099
2106
  id: string;
2100
2107
  location: {
@@ -2111,8 +2118,8 @@ export declare const monitoringVisualizationRouter: {
2111
2118
  status: "critical" | "healthy" | "moderate" | "concerning";
2112
2119
  issues: {
2113
2120
  type: string;
2114
- severity: string;
2115
2121
  confidence: number;
2122
+ severity: string;
2116
2123
  }[];
2117
2124
  id: string;
2118
2125
  location: {
@@ -2161,8 +2168,8 @@ export declare const monitoringVisualizationRouter: {
2161
2168
  status: "critical" | "healthy" | "moderate" | "concerning";
2162
2169
  issues: {
2163
2170
  type: string;
2164
- severity: string;
2165
2171
  confidence: number;
2172
+ severity: string;
2166
2173
  }[];
2167
2174
  id: string;
2168
2175
  location: {
@@ -2191,8 +2198,8 @@ export declare const monitoringVisualizationRouter: {
2191
2198
  status: "critical" | "healthy" | "moderate" | "concerning";
2192
2199
  issues: {
2193
2200
  type: string;
2194
- severity: string;
2195
2201
  confidence: number;
2202
+ severity: string;
2196
2203
  }[];
2197
2204
  id: string;
2198
2205
  location: {
@@ -4298,7 +4305,7 @@ export declare const monitoringVisualizationRouter: {
4298
4305
  indexType: "ndvi" | "ndre" | "msavi" | "savi" | "evi" | "gndvi" | "lai" | "ndwi";
4299
4306
  }>;
4300
4307
  query: z.ZodObject<{
4301
- date: z.ZodOptional<z.ZodString>;
4308
+ date: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
4302
4309
  palette: z.ZodDefault<z.ZodEnum<["standard", "contrasting", "viridis", "grayscale"]>>;
4303
4310
  }, "strip", z.ZodTypeAny, {
4304
4311
  palette: "standard" | "contrasting" | "viridis" | "grayscale";
@@ -1 +1 @@
1
- {"version":3,"file":"monitoring-visualization.routes.d.ts","sourceRoot":"","sources":["../../src/routes/monitoring-visualization.routes.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAmExB,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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seSchema, ndviHeatmapQuerySchema, ndviHeatmapResponseSchema, soilMoistureHeatmapResponseSchema,
5
+ satelliteImageryQuerySchema, satelliteImageryResponseSchema, ndviHeatmapQuerySchema, ndviHeatmapResponseSchema, soilMoistureHeatmapQuerySchema, soilMoistureHeatmapResponseSchema,
6
6
  // Phase 2 schemas
7
7
  availableDatesQuerySchema, availableDatesResponseSchema, historicalImageryQuerySchema, historicalImageryResponseSchema, compareImageryQuerySchema, compareImageryResponseSchema, timelapseRequestSchema, timelapseResponseSchema,
8
8
  // Phase 3 schemas
@@ -61,6 +61,7 @@ export const monitoringVisualizationRouter = c.router({
61
61
  getSoilMoistureHeatmap: {
62
62
  method: 'GET',
63
63
  path: '/farms/:farmId/fields/:fieldId/visualization/imagery/soil-moisture',
64
+ query: soilMoistureHeatmapQuerySchema,
64
65
  responses: {
65
66
  200: soilMoistureHeatmapResponseSchema,
66
67
  404: visualizationErrorSchema,
@@ -161,8 +162,10 @@ export const monitoringVisualizationRouter = c.router({
161
162
  summary: 'Detect field anomalies based on NDVI changes',
162
163
  },
163
164
  /**
164
- * Get spatial weather data for map overlay
165
- * Returns rainfall and temperature data for visualization
165
+ * Get spatial weather data for map overlay.
166
+ * Returns field-level (centroid) rainfall and temperature summary for the date range.
167
+ * Raster/pixel-level weather layers (e.g. rainfall accumulation map) are not yet supported;
168
+ * use this endpoint for legend, summary cards, and time-series. Raster overlays: TBD.
166
169
  */
167
170
  getWeatherSpatial: {
168
171
  method: 'GET',
@@ -172,7 +175,7 @@ export const monitoringVisualizationRouter = c.router({
172
175
  200: weatherSpatialResponseSchema,
173
176
  404: visualizationErrorSchema,
174
177
  },
175
- summary: 'Get spatial weather data for field overlay',
178
+ summary: 'Get spatial weather data for field overlay (field-level summary)',
176
179
  },
177
180
  // ============================================================================
178
181
  // Phase 3: Sensor Endpoints