@deepintel-ltd/farmpro-contracts 1.27.3 → 1.27.5

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.
@@ -842,15 +842,95 @@ export declare const sessionRouter: {
842
842
  200: z.ZodObject<{
843
843
  status: z.ZodObject<{
844
844
  ok: z.ZodBoolean;
845
- data: z.ZodOptional<z.ZodUnknown>;
845
+ data: z.ZodOptional<z.ZodObject<{
846
+ id: z.ZodString;
847
+ fieldId: z.ZodString;
848
+ fieldName: z.ZodString;
849
+ latestDate: z.ZodString;
850
+ currentNDVI: z.ZodNullable<z.ZodNumber>;
851
+ currentNDWI: z.ZodNullable<z.ZodNumber>;
852
+ currentEVI: z.ZodNullable<z.ZodNumber>;
853
+ currentCropHealth: z.ZodNullable<z.ZodEnum<["poor", "fair", "good", "excellent"]>>;
854
+ currentWaterStress: z.ZodNullable<z.ZodEnum<["none", "low", "medium", "high"]>>;
855
+ overallStatus: z.ZodEnum<["ok", "warning", "critical"]>;
856
+ activeAlertCount: z.ZodNumber;
857
+ lastAlertDate: z.ZodNullable<z.ZodString>;
858
+ dataQuality: z.ZodNullable<z.ZodEnum<["excellent", "good", "fair", "poor"]>>;
859
+ cloudCover: z.ZodNullable<z.ZodNumber>;
860
+ lastProcessedAt: z.ZodString;
861
+ }, "strip", z.ZodTypeAny, {
862
+ id: string;
863
+ fieldId: string;
864
+ fieldName: string;
865
+ latestDate: string;
866
+ currentNDVI: number | null;
867
+ currentNDWI: number | null;
868
+ currentEVI: number | null;
869
+ currentCropHealth: "poor" | "fair" | "good" | "excellent" | null;
870
+ currentWaterStress: "low" | "medium" | "high" | "none" | null;
871
+ overallStatus: "ok" | "critical" | "warning";
872
+ activeAlertCount: number;
873
+ lastAlertDate: string | null;
874
+ dataQuality: "poor" | "fair" | "good" | "excellent" | null;
875
+ cloudCover: number | null;
876
+ lastProcessedAt: string;
877
+ }, {
878
+ id: string;
879
+ fieldId: string;
880
+ fieldName: string;
881
+ latestDate: string;
882
+ currentNDVI: number | null;
883
+ currentNDWI: number | null;
884
+ currentEVI: number | null;
885
+ currentCropHealth: "poor" | "fair" | "good" | "excellent" | null;
886
+ currentWaterStress: "low" | "medium" | "high" | "none" | null;
887
+ overallStatus: "ok" | "critical" | "warning";
888
+ activeAlertCount: number;
889
+ lastAlertDate: string | null;
890
+ dataQuality: "poor" | "fair" | "good" | "excellent" | null;
891
+ cloudCover: number | null;
892
+ lastProcessedAt: string;
893
+ }>>;
846
894
  error: z.ZodOptional<z.ZodString>;
847
895
  }, "strip", z.ZodTypeAny, {
848
896
  ok: boolean;
849
- data?: unknown;
897
+ data?: {
898
+ id: string;
899
+ fieldId: string;
900
+ fieldName: string;
901
+ latestDate: string;
902
+ currentNDVI: number | null;
903
+ currentNDWI: number | null;
904
+ currentEVI: number | null;
905
+ currentCropHealth: "poor" | "fair" | "good" | "excellent" | null;
906
+ currentWaterStress: "low" | "medium" | "high" | "none" | null;
907
+ overallStatus: "ok" | "critical" | "warning";
908
+ activeAlertCount: number;
909
+ lastAlertDate: string | null;
910
+ dataQuality: "poor" | "fair" | "good" | "excellent" | null;
911
+ cloudCover: number | null;
912
+ lastProcessedAt: string;
913
+ } | undefined;
850
914
  error?: string | undefined;
851
915
  }, {
852
916
  ok: boolean;
853
- data?: unknown;
917
+ data?: {
918
+ id: string;
919
+ fieldId: string;
920
+ fieldName: string;
921
+ latestDate: string;
922
+ currentNDVI: number | null;
923
+ currentNDWI: number | null;
924
+ currentEVI: number | null;
925
+ currentCropHealth: "poor" | "fair" | "good" | "excellent" | null;
926
+ currentWaterStress: "low" | "medium" | "high" | "none" | null;
927
+ overallStatus: "ok" | "critical" | "warning";
928
+ activeAlertCount: number;
929
+ lastAlertDate: string | null;
930
+ dataQuality: "poor" | "fair" | "good" | "excellent" | null;
931
+ cloudCover: number | null;
932
+ lastProcessedAt: string;
933
+ } | undefined;
854
934
  error?: string | undefined;
855
935
  }>;
856
936
  availableDates: z.ZodObject<{
@@ -868,44 +948,570 @@ export declare const sessionRouter: {
868
948
  }>;
869
949
  soil: z.ZodObject<{
870
950
  ok: z.ZodBoolean;
871
- data: z.ZodOptional<z.ZodUnknown>;
951
+ data: z.ZodOptional<z.ZodNullable<z.ZodObject<{
952
+ readingDate: z.ZodString;
953
+ soilMoisture: z.ZodNullable<z.ZodNumber>;
954
+ surfaceTemp: z.ZodNullable<z.ZodNumber>;
955
+ temp10cm: z.ZodNullable<z.ZodNumber>;
956
+ }, "strip", z.ZodTypeAny, {
957
+ readingDate: string;
958
+ soilMoisture: number | null;
959
+ surfaceTemp: number | null;
960
+ temp10cm: number | null;
961
+ }, {
962
+ readingDate: string;
963
+ soilMoisture: number | null;
964
+ surfaceTemp: number | null;
965
+ temp10cm: number | null;
966
+ }>>>;
872
967
  error: z.ZodOptional<z.ZodString>;
873
968
  }, "strip", z.ZodTypeAny, {
874
969
  ok: boolean;
875
- data?: unknown;
970
+ data?: {
971
+ readingDate: string;
972
+ soilMoisture: number | null;
973
+ surfaceTemp: number | null;
974
+ temp10cm: number | null;
975
+ } | null | undefined;
876
976
  error?: string | undefined;
877
977
  }, {
878
978
  ok: boolean;
879
- data?: unknown;
979
+ data?: {
980
+ readingDate: string;
981
+ soilMoisture: number | null;
982
+ surfaceTemp: number | null;
983
+ temp10cm: number | null;
984
+ } | null | undefined;
880
985
  error?: string | undefined;
881
986
  }>;
882
987
  alerts: z.ZodObject<{
883
988
  ok: z.ZodBoolean;
884
- data: z.ZodOptional<z.ZodUnknown>;
989
+ data: z.ZodOptional<z.ZodObject<{
990
+ data: z.ZodArray<z.ZodObject<{
991
+ id: z.ZodString;
992
+ fieldId: z.ZodString;
993
+ fieldName: z.ZodOptional<z.ZodString>;
994
+ type: z.ZodString;
995
+ severity: z.ZodEnum<["low", "medium", "high", "critical"]>;
996
+ title: z.ZodString;
997
+ message: z.ZodString;
998
+ recommendations: z.ZodNullable<z.ZodArray<z.ZodObject<{
999
+ priority: z.ZodNumber;
1000
+ action: z.ZodString;
1001
+ details: z.ZodString;
1002
+ timing: z.ZodString;
1003
+ severity: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "critical"]>>;
1004
+ confidence: z.ZodOptional<z.ZodNumber>;
1005
+ materials: z.ZodOptional<z.ZodArray<z.ZodObject<{
1006
+ inventoryItemId: z.ZodOptional<z.ZodString>;
1007
+ name: z.ZodString;
1008
+ quantity: z.ZodNumber;
1009
+ unit: z.ZodString;
1010
+ costPerUnit: z.ZodOptional<z.ZodNumber>;
1011
+ totalCost: z.ZodOptional<z.ZodNumber>;
1012
+ availability: z.ZodOptional<z.ZodString>;
1013
+ inStock: z.ZodOptional<z.ZodBoolean>;
1014
+ stockQuantity: z.ZodOptional<z.ZodNumber>;
1015
+ applicationMethod: z.ZodOptional<z.ZodString>;
1016
+ }, "strip", z.ZodTypeAny, {
1017
+ name: string;
1018
+ quantity: number;
1019
+ unit: string;
1020
+ inventoryItemId?: string | undefined;
1021
+ totalCost?: number | undefined;
1022
+ costPerUnit?: number | undefined;
1023
+ availability?: string | undefined;
1024
+ inStock?: boolean | undefined;
1025
+ stockQuantity?: number | undefined;
1026
+ applicationMethod?: string | undefined;
1027
+ }, {
1028
+ name: string;
1029
+ quantity: number;
1030
+ unit: string;
1031
+ inventoryItemId?: string | undefined;
1032
+ totalCost?: number | undefined;
1033
+ costPerUnit?: number | undefined;
1034
+ availability?: string | undefined;
1035
+ inStock?: boolean | undefined;
1036
+ stockQuantity?: number | undefined;
1037
+ applicationMethod?: string | undefined;
1038
+ }>, "many">>;
1039
+ applicationMethod: z.ZodOptional<z.ZodString>;
1040
+ expectedOutcome: z.ZodOptional<z.ZodString>;
1041
+ preventiveMeasures: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1042
+ estimatedTime: z.ZodOptional<z.ZodString>;
1043
+ riskLevel: z.ZodOptional<z.ZodString>;
1044
+ }, "strip", z.ZodTypeAny, {
1045
+ priority: number;
1046
+ action: string;
1047
+ details: string;
1048
+ timing: string;
1049
+ confidence?: number | undefined;
1050
+ applicationMethod?: string | undefined;
1051
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
1052
+ materials?: {
1053
+ name: string;
1054
+ quantity: number;
1055
+ unit: string;
1056
+ inventoryItemId?: string | undefined;
1057
+ totalCost?: number | undefined;
1058
+ costPerUnit?: number | undefined;
1059
+ availability?: string | undefined;
1060
+ inStock?: boolean | undefined;
1061
+ stockQuantity?: number | undefined;
1062
+ applicationMethod?: string | undefined;
1063
+ }[] | undefined;
1064
+ expectedOutcome?: string | undefined;
1065
+ preventiveMeasures?: string[] | undefined;
1066
+ estimatedTime?: string | undefined;
1067
+ riskLevel?: string | undefined;
1068
+ }, {
1069
+ priority: number;
1070
+ action: string;
1071
+ details: string;
1072
+ timing: string;
1073
+ confidence?: number | undefined;
1074
+ applicationMethod?: string | undefined;
1075
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
1076
+ materials?: {
1077
+ name: string;
1078
+ quantity: number;
1079
+ unit: string;
1080
+ inventoryItemId?: string | undefined;
1081
+ totalCost?: number | undefined;
1082
+ costPerUnit?: number | undefined;
1083
+ availability?: string | undefined;
1084
+ inStock?: boolean | undefined;
1085
+ stockQuantity?: number | undefined;
1086
+ applicationMethod?: string | undefined;
1087
+ }[] | undefined;
1088
+ expectedOutcome?: string | undefined;
1089
+ preventiveMeasures?: string[] | undefined;
1090
+ estimatedTime?: string | undefined;
1091
+ riskLevel?: string | undefined;
1092
+ }>, "many">>;
1093
+ actionRequired: z.ZodOptional<z.ZodBoolean>;
1094
+ suggestedAction: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1095
+ status: z.ZodEnum<["active", "acknowledged", "resolved"]>;
1096
+ acknowledgedAt: z.ZodNullable<z.ZodString>;
1097
+ acknowledgedBy: z.ZodNullable<z.ZodString>;
1098
+ readAt: z.ZodNullable<z.ZodString>;
1099
+ readBy: z.ZodNullable<z.ZodString>;
1100
+ resolvedAt: z.ZodNullable<z.ZodString>;
1101
+ confidence: z.ZodNullable<z.ZodNumber>;
1102
+ generatedBy: z.ZodString;
1103
+ createdAt: z.ZodString;
1104
+ }, "strip", z.ZodTypeAny, {
1105
+ type: string;
1106
+ status: "active" | "acknowledged" | "resolved";
1107
+ message: string;
1108
+ id: string;
1109
+ title: string;
1110
+ createdAt: string;
1111
+ recommendations: {
1112
+ priority: number;
1113
+ action: string;
1114
+ details: string;
1115
+ timing: string;
1116
+ confidence?: number | undefined;
1117
+ applicationMethod?: string | undefined;
1118
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
1119
+ materials?: {
1120
+ name: string;
1121
+ quantity: number;
1122
+ unit: string;
1123
+ inventoryItemId?: string | undefined;
1124
+ totalCost?: number | undefined;
1125
+ costPerUnit?: number | undefined;
1126
+ availability?: string | undefined;
1127
+ inStock?: boolean | undefined;
1128
+ stockQuantity?: number | undefined;
1129
+ applicationMethod?: string | undefined;
1130
+ }[] | undefined;
1131
+ expectedOutcome?: string | undefined;
1132
+ preventiveMeasures?: string[] | undefined;
1133
+ estimatedTime?: string | undefined;
1134
+ riskLevel?: string | undefined;
1135
+ }[] | null;
1136
+ fieldId: string;
1137
+ confidence: number | null;
1138
+ severity: "critical" | "low" | "medium" | "high";
1139
+ acknowledgedAt: string | null;
1140
+ acknowledgedBy: string | null;
1141
+ readAt: string | null;
1142
+ readBy: string | null;
1143
+ resolvedAt: string | null;
1144
+ generatedBy: string;
1145
+ fieldName?: string | undefined;
1146
+ actionRequired?: boolean | undefined;
1147
+ suggestedAction?: string | null | undefined;
1148
+ }, {
1149
+ type: string;
1150
+ status: "active" | "acknowledged" | "resolved";
1151
+ message: string;
1152
+ id: string;
1153
+ title: string;
1154
+ createdAt: string;
1155
+ recommendations: {
1156
+ priority: number;
1157
+ action: string;
1158
+ details: string;
1159
+ timing: string;
1160
+ confidence?: number | undefined;
1161
+ applicationMethod?: string | undefined;
1162
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
1163
+ materials?: {
1164
+ name: string;
1165
+ quantity: number;
1166
+ unit: string;
1167
+ inventoryItemId?: string | undefined;
1168
+ totalCost?: number | undefined;
1169
+ costPerUnit?: number | undefined;
1170
+ availability?: string | undefined;
1171
+ inStock?: boolean | undefined;
1172
+ stockQuantity?: number | undefined;
1173
+ applicationMethod?: string | undefined;
1174
+ }[] | undefined;
1175
+ expectedOutcome?: string | undefined;
1176
+ preventiveMeasures?: string[] | undefined;
1177
+ estimatedTime?: string | undefined;
1178
+ riskLevel?: string | undefined;
1179
+ }[] | null;
1180
+ fieldId: string;
1181
+ confidence: number | null;
1182
+ severity: "critical" | "low" | "medium" | "high";
1183
+ acknowledgedAt: string | null;
1184
+ acknowledgedBy: string | null;
1185
+ readAt: string | null;
1186
+ readBy: string | null;
1187
+ resolvedAt: string | null;
1188
+ generatedBy: string;
1189
+ fieldName?: string | undefined;
1190
+ actionRequired?: boolean | undefined;
1191
+ suggestedAction?: string | null | undefined;
1192
+ }>, "many">;
1193
+ meta: z.ZodObject<{
1194
+ totalRecords: z.ZodNumber;
1195
+ totalPages: z.ZodNumber;
1196
+ currentPage: z.ZodNumber;
1197
+ pageSize: z.ZodNumber;
1198
+ }, "strip", z.ZodTypeAny, {
1199
+ totalRecords: number;
1200
+ totalPages: number;
1201
+ currentPage: number;
1202
+ pageSize: number;
1203
+ }, {
1204
+ totalRecords: number;
1205
+ totalPages: number;
1206
+ currentPage: number;
1207
+ pageSize: number;
1208
+ }>;
1209
+ }, "strip", z.ZodTypeAny, {
1210
+ meta: {
1211
+ totalRecords: number;
1212
+ totalPages: number;
1213
+ currentPage: number;
1214
+ pageSize: number;
1215
+ };
1216
+ data: {
1217
+ type: string;
1218
+ status: "active" | "acknowledged" | "resolved";
1219
+ message: string;
1220
+ id: string;
1221
+ title: string;
1222
+ createdAt: string;
1223
+ recommendations: {
1224
+ priority: number;
1225
+ action: string;
1226
+ details: string;
1227
+ timing: string;
1228
+ confidence?: number | undefined;
1229
+ applicationMethod?: string | undefined;
1230
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
1231
+ materials?: {
1232
+ name: string;
1233
+ quantity: number;
1234
+ unit: string;
1235
+ inventoryItemId?: string | undefined;
1236
+ totalCost?: number | undefined;
1237
+ costPerUnit?: number | undefined;
1238
+ availability?: string | undefined;
1239
+ inStock?: boolean | undefined;
1240
+ stockQuantity?: number | undefined;
1241
+ applicationMethod?: string | undefined;
1242
+ }[] | undefined;
1243
+ expectedOutcome?: string | undefined;
1244
+ preventiveMeasures?: string[] | undefined;
1245
+ estimatedTime?: string | undefined;
1246
+ riskLevel?: string | undefined;
1247
+ }[] | null;
1248
+ fieldId: string;
1249
+ confidence: number | null;
1250
+ severity: "critical" | "low" | "medium" | "high";
1251
+ acknowledgedAt: string | null;
1252
+ acknowledgedBy: string | null;
1253
+ readAt: string | null;
1254
+ readBy: string | null;
1255
+ resolvedAt: string | null;
1256
+ generatedBy: string;
1257
+ fieldName?: string | undefined;
1258
+ actionRequired?: boolean | undefined;
1259
+ suggestedAction?: string | null | undefined;
1260
+ }[];
1261
+ }, {
1262
+ meta: {
1263
+ totalRecords: number;
1264
+ totalPages: number;
1265
+ currentPage: number;
1266
+ pageSize: number;
1267
+ };
1268
+ data: {
1269
+ type: string;
1270
+ status: "active" | "acknowledged" | "resolved";
1271
+ message: string;
1272
+ id: string;
1273
+ title: string;
1274
+ createdAt: string;
1275
+ recommendations: {
1276
+ priority: number;
1277
+ action: string;
1278
+ details: string;
1279
+ timing: string;
1280
+ confidence?: number | undefined;
1281
+ applicationMethod?: string | undefined;
1282
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
1283
+ materials?: {
1284
+ name: string;
1285
+ quantity: number;
1286
+ unit: string;
1287
+ inventoryItemId?: string | undefined;
1288
+ totalCost?: number | undefined;
1289
+ costPerUnit?: number | undefined;
1290
+ availability?: string | undefined;
1291
+ inStock?: boolean | undefined;
1292
+ stockQuantity?: number | undefined;
1293
+ applicationMethod?: string | undefined;
1294
+ }[] | undefined;
1295
+ expectedOutcome?: string | undefined;
1296
+ preventiveMeasures?: string[] | undefined;
1297
+ estimatedTime?: string | undefined;
1298
+ riskLevel?: string | undefined;
1299
+ }[] | null;
1300
+ fieldId: string;
1301
+ confidence: number | null;
1302
+ severity: "critical" | "low" | "medium" | "high";
1303
+ acknowledgedAt: string | null;
1304
+ acknowledgedBy: string | null;
1305
+ readAt: string | null;
1306
+ readBy: string | null;
1307
+ resolvedAt: string | null;
1308
+ generatedBy: string;
1309
+ fieldName?: string | undefined;
1310
+ actionRequired?: boolean | undefined;
1311
+ suggestedAction?: string | null | undefined;
1312
+ }[];
1313
+ }>>;
885
1314
  error: z.ZodOptional<z.ZodString>;
886
1315
  }, "strip", z.ZodTypeAny, {
887
1316
  ok: boolean;
888
- data?: unknown;
1317
+ data?: {
1318
+ meta: {
1319
+ totalRecords: number;
1320
+ totalPages: number;
1321
+ currentPage: number;
1322
+ pageSize: number;
1323
+ };
1324
+ data: {
1325
+ type: string;
1326
+ status: "active" | "acknowledged" | "resolved";
1327
+ message: string;
1328
+ id: string;
1329
+ title: string;
1330
+ createdAt: string;
1331
+ recommendations: {
1332
+ priority: number;
1333
+ action: string;
1334
+ details: string;
1335
+ timing: string;
1336
+ confidence?: number | undefined;
1337
+ applicationMethod?: string | undefined;
1338
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
1339
+ materials?: {
1340
+ name: string;
1341
+ quantity: number;
1342
+ unit: string;
1343
+ inventoryItemId?: string | undefined;
1344
+ totalCost?: number | undefined;
1345
+ costPerUnit?: number | undefined;
1346
+ availability?: string | undefined;
1347
+ inStock?: boolean | undefined;
1348
+ stockQuantity?: number | undefined;
1349
+ applicationMethod?: string | undefined;
1350
+ }[] | undefined;
1351
+ expectedOutcome?: string | undefined;
1352
+ preventiveMeasures?: string[] | undefined;
1353
+ estimatedTime?: string | undefined;
1354
+ riskLevel?: string | undefined;
1355
+ }[] | null;
1356
+ fieldId: string;
1357
+ confidence: number | null;
1358
+ severity: "critical" | "low" | "medium" | "high";
1359
+ acknowledgedAt: string | null;
1360
+ acknowledgedBy: string | null;
1361
+ readAt: string | null;
1362
+ readBy: string | null;
1363
+ resolvedAt: string | null;
1364
+ generatedBy: string;
1365
+ fieldName?: string | undefined;
1366
+ actionRequired?: boolean | undefined;
1367
+ suggestedAction?: string | null | undefined;
1368
+ }[];
1369
+ } | undefined;
889
1370
  error?: string | undefined;
890
1371
  }, {
891
1372
  ok: boolean;
892
- data?: unknown;
1373
+ data?: {
1374
+ meta: {
1375
+ totalRecords: number;
1376
+ totalPages: number;
1377
+ currentPage: number;
1378
+ pageSize: number;
1379
+ };
1380
+ data: {
1381
+ type: string;
1382
+ status: "active" | "acknowledged" | "resolved";
1383
+ message: string;
1384
+ id: string;
1385
+ title: string;
1386
+ createdAt: string;
1387
+ recommendations: {
1388
+ priority: number;
1389
+ action: string;
1390
+ details: string;
1391
+ timing: string;
1392
+ confidence?: number | undefined;
1393
+ applicationMethod?: string | undefined;
1394
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
1395
+ materials?: {
1396
+ name: string;
1397
+ quantity: number;
1398
+ unit: string;
1399
+ inventoryItemId?: string | undefined;
1400
+ totalCost?: number | undefined;
1401
+ costPerUnit?: number | undefined;
1402
+ availability?: string | undefined;
1403
+ inStock?: boolean | undefined;
1404
+ stockQuantity?: number | undefined;
1405
+ applicationMethod?: string | undefined;
1406
+ }[] | undefined;
1407
+ expectedOutcome?: string | undefined;
1408
+ preventiveMeasures?: string[] | undefined;
1409
+ estimatedTime?: string | undefined;
1410
+ riskLevel?: string | undefined;
1411
+ }[] | null;
1412
+ fieldId: string;
1413
+ confidence: number | null;
1414
+ severity: "critical" | "low" | "medium" | "high";
1415
+ acknowledgedAt: string | null;
1416
+ acknowledgedBy: string | null;
1417
+ readAt: string | null;
1418
+ readBy: string | null;
1419
+ resolvedAt: string | null;
1420
+ generatedBy: string;
1421
+ fieldName?: string | undefined;
1422
+ actionRequired?: boolean | undefined;
1423
+ suggestedAction?: string | null | undefined;
1424
+ }[];
1425
+ } | undefined;
893
1426
  error?: string | undefined;
894
1427
  }>;
895
1428
  }, "strip", z.ZodTypeAny, {
896
1429
  status: {
897
1430
  ok: boolean;
898
- data?: unknown;
1431
+ data?: {
1432
+ id: string;
1433
+ fieldId: string;
1434
+ fieldName: string;
1435
+ latestDate: string;
1436
+ currentNDVI: number | null;
1437
+ currentNDWI: number | null;
1438
+ currentEVI: number | null;
1439
+ currentCropHealth: "poor" | "fair" | "good" | "excellent" | null;
1440
+ currentWaterStress: "low" | "medium" | "high" | "none" | null;
1441
+ overallStatus: "ok" | "critical" | "warning";
1442
+ activeAlertCount: number;
1443
+ lastAlertDate: string | null;
1444
+ dataQuality: "poor" | "fair" | "good" | "excellent" | null;
1445
+ cloudCover: number | null;
1446
+ lastProcessedAt: string;
1447
+ } | undefined;
899
1448
  error?: string | undefined;
900
1449
  };
901
1450
  alerts: {
902
1451
  ok: boolean;
903
- data?: unknown;
1452
+ data?: {
1453
+ meta: {
1454
+ totalRecords: number;
1455
+ totalPages: number;
1456
+ currentPage: number;
1457
+ pageSize: number;
1458
+ };
1459
+ data: {
1460
+ type: string;
1461
+ status: "active" | "acknowledged" | "resolved";
1462
+ message: string;
1463
+ id: string;
1464
+ title: string;
1465
+ createdAt: string;
1466
+ recommendations: {
1467
+ priority: number;
1468
+ action: string;
1469
+ details: string;
1470
+ timing: string;
1471
+ confidence?: number | undefined;
1472
+ applicationMethod?: string | undefined;
1473
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
1474
+ materials?: {
1475
+ name: string;
1476
+ quantity: number;
1477
+ unit: string;
1478
+ inventoryItemId?: string | undefined;
1479
+ totalCost?: number | undefined;
1480
+ costPerUnit?: number | undefined;
1481
+ availability?: string | undefined;
1482
+ inStock?: boolean | undefined;
1483
+ stockQuantity?: number | undefined;
1484
+ applicationMethod?: string | undefined;
1485
+ }[] | undefined;
1486
+ expectedOutcome?: string | undefined;
1487
+ preventiveMeasures?: string[] | undefined;
1488
+ estimatedTime?: string | undefined;
1489
+ riskLevel?: string | undefined;
1490
+ }[] | null;
1491
+ fieldId: string;
1492
+ confidence: number | null;
1493
+ severity: "critical" | "low" | "medium" | "high";
1494
+ acknowledgedAt: string | null;
1495
+ acknowledgedBy: string | null;
1496
+ readAt: string | null;
1497
+ readBy: string | null;
1498
+ resolvedAt: string | null;
1499
+ generatedBy: string;
1500
+ fieldName?: string | undefined;
1501
+ actionRequired?: boolean | undefined;
1502
+ suggestedAction?: string | null | undefined;
1503
+ }[];
1504
+ } | undefined;
904
1505
  error?: string | undefined;
905
1506
  };
906
1507
  soil: {
907
1508
  ok: boolean;
908
- data?: unknown;
1509
+ data?: {
1510
+ readingDate: string;
1511
+ soilMoisture: number | null;
1512
+ surfaceTemp: number | null;
1513
+ temp10cm: number | null;
1514
+ } | null | undefined;
909
1515
  error?: string | undefined;
910
1516
  };
911
1517
  availableDates: {
@@ -916,17 +1522,90 @@ export declare const sessionRouter: {
916
1522
  }, {
917
1523
  status: {
918
1524
  ok: boolean;
919
- data?: unknown;
1525
+ data?: {
1526
+ id: string;
1527
+ fieldId: string;
1528
+ fieldName: string;
1529
+ latestDate: string;
1530
+ currentNDVI: number | null;
1531
+ currentNDWI: number | null;
1532
+ currentEVI: number | null;
1533
+ currentCropHealth: "poor" | "fair" | "good" | "excellent" | null;
1534
+ currentWaterStress: "low" | "medium" | "high" | "none" | null;
1535
+ overallStatus: "ok" | "critical" | "warning";
1536
+ activeAlertCount: number;
1537
+ lastAlertDate: string | null;
1538
+ dataQuality: "poor" | "fair" | "good" | "excellent" | null;
1539
+ cloudCover: number | null;
1540
+ lastProcessedAt: string;
1541
+ } | undefined;
920
1542
  error?: string | undefined;
921
1543
  };
922
1544
  alerts: {
923
1545
  ok: boolean;
924
- data?: unknown;
1546
+ data?: {
1547
+ meta: {
1548
+ totalRecords: number;
1549
+ totalPages: number;
1550
+ currentPage: number;
1551
+ pageSize: number;
1552
+ };
1553
+ data: {
1554
+ type: string;
1555
+ status: "active" | "acknowledged" | "resolved";
1556
+ message: string;
1557
+ id: string;
1558
+ title: string;
1559
+ createdAt: string;
1560
+ recommendations: {
1561
+ priority: number;
1562
+ action: string;
1563
+ details: string;
1564
+ timing: string;
1565
+ confidence?: number | undefined;
1566
+ applicationMethod?: string | undefined;
1567
+ severity?: "critical" | "low" | "medium" | "high" | undefined;
1568
+ materials?: {
1569
+ name: string;
1570
+ quantity: number;
1571
+ unit: string;
1572
+ inventoryItemId?: string | undefined;
1573
+ totalCost?: number | undefined;
1574
+ costPerUnit?: number | undefined;
1575
+ availability?: string | undefined;
1576
+ inStock?: boolean | undefined;
1577
+ stockQuantity?: number | undefined;
1578
+ applicationMethod?: string | undefined;
1579
+ }[] | undefined;
1580
+ expectedOutcome?: string | undefined;
1581
+ preventiveMeasures?: string[] | undefined;
1582
+ estimatedTime?: string | undefined;
1583
+ riskLevel?: string | undefined;
1584
+ }[] | null;
1585
+ fieldId: string;
1586
+ confidence: number | null;
1587
+ severity: "critical" | "low" | "medium" | "high";
1588
+ acknowledgedAt: string | null;
1589
+ acknowledgedBy: string | null;
1590
+ readAt: string | null;
1591
+ readBy: string | null;
1592
+ resolvedAt: string | null;
1593
+ generatedBy: string;
1594
+ fieldName?: string | undefined;
1595
+ actionRequired?: boolean | undefined;
1596
+ suggestedAction?: string | null | undefined;
1597
+ }[];
1598
+ } | undefined;
925
1599
  error?: string | undefined;
926
1600
  };
927
1601
  soil: {
928
1602
  ok: boolean;
929
- data?: unknown;
1603
+ data?: {
1604
+ readingDate: string;
1605
+ soilMoisture: number | null;
1606
+ surfaceTemp: number | null;
1607
+ temp10cm: number | null;
1608
+ } | null | undefined;
930
1609
  error?: string | undefined;
931
1610
  };
932
1611
  availableDates: {