@deepintel-ltd/farmpro-contracts 1.3.1 → 1.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +7 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +10 -1
- package/dist/routes/admin.routes.d.ts +747 -0
- package/dist/routes/admin.routes.d.ts.map +1 -0
- package/dist/routes/admin.routes.js +26 -0
- package/dist/routes/agent-workflows.routes.d.ts +2900 -0
- package/dist/routes/agent-workflows.routes.d.ts.map +1 -0
- package/dist/routes/agent-workflows.routes.js +160 -0
- package/dist/routes/documents.routes.d.ts +417 -0
- package/dist/routes/documents.routes.d.ts.map +1 -1
- package/dist/routes/documents.routes.js +16 -0
- package/dist/routes/field-monitoring.routes.d.ts +568 -23
- package/dist/routes/field-monitoring.routes.d.ts.map +1 -1
- package/dist/routes/field-monitoring.routes.js +64 -0
- package/dist/routes/field-observations.routes.d.ts +130 -58
- package/dist/routes/field-observations.routes.d.ts.map +1 -1
- package/dist/routes/health.routes.d.ts +317 -0
- package/dist/routes/health.routes.d.ts.map +1 -0
- package/dist/routes/health.routes.js +18 -0
- package/dist/routes/index.d.ts +9 -0
- package/dist/routes/index.d.ts.map +1 -1
- package/dist/routes/index.js +6 -0
- package/dist/routes/tasks.routes.d.ts +408 -0
- package/dist/routes/tasks.routes.d.ts.map +1 -1
- package/dist/routes/weather.routes.d.ts +264 -17
- package/dist/routes/weather.routes.d.ts.map +1 -1
- package/dist/schemas/admin.schemas.d.ts +1063 -0
- package/dist/schemas/admin.schemas.d.ts.map +1 -0
- package/dist/schemas/admin.schemas.js +63 -0
- package/dist/schemas/agent-workflows.schemas.d.ts +2399 -0
- package/dist/schemas/agent-workflows.schemas.d.ts.map +1 -0
- package/dist/schemas/agent-workflows.schemas.js +70 -0
- package/dist/schemas/documents.schemas.d.ts +202 -0
- package/dist/schemas/documents.schemas.d.ts.map +1 -1
- package/dist/schemas/documents.schemas.js +10 -1
- package/dist/schemas/field-monitoring.schemas.d.ts +215 -9
- package/dist/schemas/field-monitoring.schemas.d.ts.map +1 -1
- package/dist/schemas/field-monitoring.schemas.js +26 -2
- package/dist/schemas/field-observations.schemas.d.ts +100 -40
- package/dist/schemas/field-observations.schemas.d.ts.map +1 -1
- package/dist/schemas/field-observations.schemas.js +2 -24
- package/dist/schemas/health.schemas.d.ts +176 -0
- package/dist/schemas/health.schemas.d.ts.map +1 -0
- package/dist/schemas/health.schemas.js +26 -0
- package/dist/schemas/recommendations.schemas.d.ts +112 -0
- package/dist/schemas/recommendations.schemas.d.ts.map +1 -0
- package/dist/schemas/recommendations.schemas.js +32 -0
- package/dist/schemas/tasks.schemas.d.ts +344 -0
- package/dist/schemas/tasks.schemas.d.ts.map +1 -1
- package/dist/schemas/tasks.schemas.js +9 -0
- package/dist/schemas/weather.schemas.d.ts +780 -44
- package/dist/schemas/weather.schemas.d.ts.map +1 -1
- package/dist/schemas/weather.schemas.js +2 -1
- package/package.json +1 -1
|
@@ -30,7 +30,7 @@ export declare const fieldMonitoringRouter: {
|
|
|
30
30
|
currentNDWI: number | null;
|
|
31
31
|
currentEVI: number | null;
|
|
32
32
|
currentCropHealth: "poor" | "fair" | "good" | "excellent" | null;
|
|
33
|
-
currentWaterStress: "
|
|
33
|
+
currentWaterStress: "low" | "medium" | "high" | "none" | null;
|
|
34
34
|
overallStatus: "ok" | "critical" | "warning";
|
|
35
35
|
activeAlertCount: number;
|
|
36
36
|
lastAlertDate: string | null;
|
|
@@ -46,7 +46,7 @@ export declare const fieldMonitoringRouter: {
|
|
|
46
46
|
currentNDWI: number | null;
|
|
47
47
|
currentEVI: number | null;
|
|
48
48
|
currentCropHealth: "poor" | "fair" | "good" | "excellent" | null;
|
|
49
|
-
currentWaterStress: "
|
|
49
|
+
currentWaterStress: "low" | "medium" | "high" | "none" | null;
|
|
50
50
|
overallStatus: "ok" | "critical" | "warning";
|
|
51
51
|
activeAlertCount: number;
|
|
52
52
|
lastAlertDate: string | null;
|
|
@@ -144,7 +144,86 @@ export declare const fieldMonitoringRouter: {
|
|
|
144
144
|
severity: z.ZodEnum<["low", "medium", "high", "critical"]>;
|
|
145
145
|
title: z.ZodString;
|
|
146
146
|
message: z.ZodString;
|
|
147
|
-
|
|
147
|
+
recommendations: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
148
|
+
priority: z.ZodNumber;
|
|
149
|
+
action: z.ZodString;
|
|
150
|
+
details: z.ZodString;
|
|
151
|
+
timing: z.ZodString;
|
|
152
|
+
severity: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "critical"]>>;
|
|
153
|
+
confidence: z.ZodOptional<z.ZodNumber>;
|
|
154
|
+
materials: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
155
|
+
inventoryItemId: z.ZodOptional<z.ZodString>;
|
|
156
|
+
name: z.ZodString;
|
|
157
|
+
quantity: z.ZodNumber;
|
|
158
|
+
unit: z.ZodString;
|
|
159
|
+
costPerUnit: z.ZodOptional<z.ZodNumber>;
|
|
160
|
+
totalCost: z.ZodOptional<z.ZodNumber>;
|
|
161
|
+
availability: z.ZodOptional<z.ZodString>;
|
|
162
|
+
}, "strip", z.ZodTypeAny, {
|
|
163
|
+
name: string;
|
|
164
|
+
unit: string;
|
|
165
|
+
quantity: number;
|
|
166
|
+
inventoryItemId?: string | undefined;
|
|
167
|
+
totalCost?: number | undefined;
|
|
168
|
+
costPerUnit?: number | undefined;
|
|
169
|
+
availability?: string | undefined;
|
|
170
|
+
}, {
|
|
171
|
+
name: string;
|
|
172
|
+
unit: string;
|
|
173
|
+
quantity: number;
|
|
174
|
+
inventoryItemId?: string | undefined;
|
|
175
|
+
totalCost?: number | undefined;
|
|
176
|
+
costPerUnit?: number | undefined;
|
|
177
|
+
availability?: string | undefined;
|
|
178
|
+
}>, "many">>;
|
|
179
|
+
applicationMethod: z.ZodOptional<z.ZodString>;
|
|
180
|
+
expectedOutcome: z.ZodOptional<z.ZodString>;
|
|
181
|
+
preventiveMeasures: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
182
|
+
estimatedTime: z.ZodOptional<z.ZodString>;
|
|
183
|
+
riskLevel: z.ZodOptional<z.ZodString>;
|
|
184
|
+
}, "strip", z.ZodTypeAny, {
|
|
185
|
+
priority: number;
|
|
186
|
+
action: string;
|
|
187
|
+
details: string;
|
|
188
|
+
timing: string;
|
|
189
|
+
severity?: "critical" | "low" | "medium" | "high" | undefined;
|
|
190
|
+
confidence?: number | undefined;
|
|
191
|
+
materials?: {
|
|
192
|
+
name: string;
|
|
193
|
+
unit: string;
|
|
194
|
+
quantity: number;
|
|
195
|
+
inventoryItemId?: string | undefined;
|
|
196
|
+
totalCost?: number | undefined;
|
|
197
|
+
costPerUnit?: number | undefined;
|
|
198
|
+
availability?: string | undefined;
|
|
199
|
+
}[] | undefined;
|
|
200
|
+
applicationMethod?: string | undefined;
|
|
201
|
+
expectedOutcome?: string | undefined;
|
|
202
|
+
preventiveMeasures?: string[] | undefined;
|
|
203
|
+
estimatedTime?: string | undefined;
|
|
204
|
+
riskLevel?: string | undefined;
|
|
205
|
+
}, {
|
|
206
|
+
priority: number;
|
|
207
|
+
action: string;
|
|
208
|
+
details: string;
|
|
209
|
+
timing: string;
|
|
210
|
+
severity?: "critical" | "low" | "medium" | "high" | undefined;
|
|
211
|
+
confidence?: number | undefined;
|
|
212
|
+
materials?: {
|
|
213
|
+
name: string;
|
|
214
|
+
unit: string;
|
|
215
|
+
quantity: number;
|
|
216
|
+
inventoryItemId?: string | undefined;
|
|
217
|
+
totalCost?: number | undefined;
|
|
218
|
+
costPerUnit?: number | undefined;
|
|
219
|
+
availability?: string | undefined;
|
|
220
|
+
}[] | undefined;
|
|
221
|
+
applicationMethod?: string | undefined;
|
|
222
|
+
expectedOutcome?: string | undefined;
|
|
223
|
+
preventiveMeasures?: string[] | undefined;
|
|
224
|
+
estimatedTime?: string | undefined;
|
|
225
|
+
riskLevel?: string | undefined;
|
|
226
|
+
}>, "many">>;
|
|
148
227
|
status: z.ZodEnum<["active", "acknowledged", "resolved"]>;
|
|
149
228
|
acknowledgedAt: z.ZodNullable<z.ZodString>;
|
|
150
229
|
acknowledgedBy: z.ZodNullable<z.ZodString>;
|
|
@@ -160,12 +239,33 @@ export declare const fieldMonitoringRouter: {
|
|
|
160
239
|
title: string;
|
|
161
240
|
createdAt: string;
|
|
162
241
|
fieldId: string;
|
|
163
|
-
|
|
164
|
-
|
|
242
|
+
recommendations: {
|
|
243
|
+
priority: number;
|
|
244
|
+
action: string;
|
|
245
|
+
details: string;
|
|
246
|
+
timing: string;
|
|
247
|
+
severity?: "critical" | "low" | "medium" | "high" | undefined;
|
|
248
|
+
confidence?: number | undefined;
|
|
249
|
+
materials?: {
|
|
250
|
+
name: string;
|
|
251
|
+
unit: string;
|
|
252
|
+
quantity: number;
|
|
253
|
+
inventoryItemId?: string | undefined;
|
|
254
|
+
totalCost?: number | undefined;
|
|
255
|
+
costPerUnit?: number | undefined;
|
|
256
|
+
availability?: string | undefined;
|
|
257
|
+
}[] | undefined;
|
|
258
|
+
applicationMethod?: string | undefined;
|
|
259
|
+
expectedOutcome?: string | undefined;
|
|
260
|
+
preventiveMeasures?: string[] | undefined;
|
|
261
|
+
estimatedTime?: string | undefined;
|
|
262
|
+
riskLevel?: string | undefined;
|
|
263
|
+
}[] | null;
|
|
264
|
+
severity: "critical" | "low" | "medium" | "high";
|
|
265
|
+
confidence: number | null;
|
|
165
266
|
acknowledgedAt: string | null;
|
|
166
267
|
acknowledgedBy: string | null;
|
|
167
268
|
resolvedAt: string | null;
|
|
168
|
-
confidence: number | null;
|
|
169
269
|
generatedBy: string;
|
|
170
270
|
fieldName?: string | undefined;
|
|
171
271
|
}, {
|
|
@@ -176,12 +276,33 @@ export declare const fieldMonitoringRouter: {
|
|
|
176
276
|
title: string;
|
|
177
277
|
createdAt: string;
|
|
178
278
|
fieldId: string;
|
|
179
|
-
|
|
180
|
-
|
|
279
|
+
recommendations: {
|
|
280
|
+
priority: number;
|
|
281
|
+
action: string;
|
|
282
|
+
details: string;
|
|
283
|
+
timing: string;
|
|
284
|
+
severity?: "critical" | "low" | "medium" | "high" | undefined;
|
|
285
|
+
confidence?: number | undefined;
|
|
286
|
+
materials?: {
|
|
287
|
+
name: string;
|
|
288
|
+
unit: string;
|
|
289
|
+
quantity: number;
|
|
290
|
+
inventoryItemId?: string | undefined;
|
|
291
|
+
totalCost?: number | undefined;
|
|
292
|
+
costPerUnit?: number | undefined;
|
|
293
|
+
availability?: string | undefined;
|
|
294
|
+
}[] | undefined;
|
|
295
|
+
applicationMethod?: string | undefined;
|
|
296
|
+
expectedOutcome?: string | undefined;
|
|
297
|
+
preventiveMeasures?: string[] | undefined;
|
|
298
|
+
estimatedTime?: string | undefined;
|
|
299
|
+
riskLevel?: string | undefined;
|
|
300
|
+
}[] | null;
|
|
301
|
+
severity: "critical" | "low" | "medium" | "high";
|
|
302
|
+
confidence: number | null;
|
|
181
303
|
acknowledgedAt: string | null;
|
|
182
304
|
acknowledgedBy: string | null;
|
|
183
305
|
resolvedAt: string | null;
|
|
184
|
-
confidence: number | null;
|
|
185
306
|
generatedBy: string;
|
|
186
307
|
fieldName?: string | undefined;
|
|
187
308
|
}>, "many">;
|
|
@@ -207,7 +328,86 @@ export declare const fieldMonitoringRouter: {
|
|
|
207
328
|
severity: z.ZodEnum<["low", "medium", "high", "critical"]>;
|
|
208
329
|
title: z.ZodString;
|
|
209
330
|
message: z.ZodString;
|
|
210
|
-
|
|
331
|
+
recommendations: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
332
|
+
priority: z.ZodNumber;
|
|
333
|
+
action: z.ZodString;
|
|
334
|
+
details: z.ZodString;
|
|
335
|
+
timing: z.ZodString;
|
|
336
|
+
severity: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "critical"]>>;
|
|
337
|
+
confidence: z.ZodOptional<z.ZodNumber>;
|
|
338
|
+
materials: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
339
|
+
inventoryItemId: z.ZodOptional<z.ZodString>;
|
|
340
|
+
name: z.ZodString;
|
|
341
|
+
quantity: z.ZodNumber;
|
|
342
|
+
unit: z.ZodString;
|
|
343
|
+
costPerUnit: z.ZodOptional<z.ZodNumber>;
|
|
344
|
+
totalCost: z.ZodOptional<z.ZodNumber>;
|
|
345
|
+
availability: z.ZodOptional<z.ZodString>;
|
|
346
|
+
}, "strip", z.ZodTypeAny, {
|
|
347
|
+
name: string;
|
|
348
|
+
unit: string;
|
|
349
|
+
quantity: number;
|
|
350
|
+
inventoryItemId?: string | undefined;
|
|
351
|
+
totalCost?: number | undefined;
|
|
352
|
+
costPerUnit?: number | undefined;
|
|
353
|
+
availability?: string | undefined;
|
|
354
|
+
}, {
|
|
355
|
+
name: string;
|
|
356
|
+
unit: string;
|
|
357
|
+
quantity: number;
|
|
358
|
+
inventoryItemId?: string | undefined;
|
|
359
|
+
totalCost?: number | undefined;
|
|
360
|
+
costPerUnit?: number | undefined;
|
|
361
|
+
availability?: string | undefined;
|
|
362
|
+
}>, "many">>;
|
|
363
|
+
applicationMethod: z.ZodOptional<z.ZodString>;
|
|
364
|
+
expectedOutcome: z.ZodOptional<z.ZodString>;
|
|
365
|
+
preventiveMeasures: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
366
|
+
estimatedTime: z.ZodOptional<z.ZodString>;
|
|
367
|
+
riskLevel: z.ZodOptional<z.ZodString>;
|
|
368
|
+
}, "strip", z.ZodTypeAny, {
|
|
369
|
+
priority: number;
|
|
370
|
+
action: string;
|
|
371
|
+
details: string;
|
|
372
|
+
timing: string;
|
|
373
|
+
severity?: "critical" | "low" | "medium" | "high" | undefined;
|
|
374
|
+
confidence?: number | undefined;
|
|
375
|
+
materials?: {
|
|
376
|
+
name: string;
|
|
377
|
+
unit: string;
|
|
378
|
+
quantity: number;
|
|
379
|
+
inventoryItemId?: string | undefined;
|
|
380
|
+
totalCost?: number | undefined;
|
|
381
|
+
costPerUnit?: number | undefined;
|
|
382
|
+
availability?: string | undefined;
|
|
383
|
+
}[] | undefined;
|
|
384
|
+
applicationMethod?: string | undefined;
|
|
385
|
+
expectedOutcome?: string | undefined;
|
|
386
|
+
preventiveMeasures?: string[] | undefined;
|
|
387
|
+
estimatedTime?: string | undefined;
|
|
388
|
+
riskLevel?: string | undefined;
|
|
389
|
+
}, {
|
|
390
|
+
priority: number;
|
|
391
|
+
action: string;
|
|
392
|
+
details: string;
|
|
393
|
+
timing: string;
|
|
394
|
+
severity?: "critical" | "low" | "medium" | "high" | undefined;
|
|
395
|
+
confidence?: number | undefined;
|
|
396
|
+
materials?: {
|
|
397
|
+
name: string;
|
|
398
|
+
unit: string;
|
|
399
|
+
quantity: number;
|
|
400
|
+
inventoryItemId?: string | undefined;
|
|
401
|
+
totalCost?: number | undefined;
|
|
402
|
+
costPerUnit?: number | undefined;
|
|
403
|
+
availability?: string | undefined;
|
|
404
|
+
}[] | undefined;
|
|
405
|
+
applicationMethod?: string | undefined;
|
|
406
|
+
expectedOutcome?: string | undefined;
|
|
407
|
+
preventiveMeasures?: string[] | undefined;
|
|
408
|
+
estimatedTime?: string | undefined;
|
|
409
|
+
riskLevel?: string | undefined;
|
|
410
|
+
}>, "many">>;
|
|
211
411
|
status: z.ZodEnum<["active", "acknowledged", "resolved"]>;
|
|
212
412
|
acknowledgedAt: z.ZodNullable<z.ZodString>;
|
|
213
413
|
acknowledgedBy: z.ZodNullable<z.ZodString>;
|
|
@@ -223,12 +423,33 @@ export declare const fieldMonitoringRouter: {
|
|
|
223
423
|
title: string;
|
|
224
424
|
createdAt: string;
|
|
225
425
|
fieldId: string;
|
|
226
|
-
|
|
227
|
-
|
|
426
|
+
recommendations: {
|
|
427
|
+
priority: number;
|
|
428
|
+
action: string;
|
|
429
|
+
details: string;
|
|
430
|
+
timing: string;
|
|
431
|
+
severity?: "critical" | "low" | "medium" | "high" | undefined;
|
|
432
|
+
confidence?: number | undefined;
|
|
433
|
+
materials?: {
|
|
434
|
+
name: string;
|
|
435
|
+
unit: string;
|
|
436
|
+
quantity: number;
|
|
437
|
+
inventoryItemId?: string | undefined;
|
|
438
|
+
totalCost?: number | undefined;
|
|
439
|
+
costPerUnit?: number | undefined;
|
|
440
|
+
availability?: string | undefined;
|
|
441
|
+
}[] | undefined;
|
|
442
|
+
applicationMethod?: string | undefined;
|
|
443
|
+
expectedOutcome?: string | undefined;
|
|
444
|
+
preventiveMeasures?: string[] | undefined;
|
|
445
|
+
estimatedTime?: string | undefined;
|
|
446
|
+
riskLevel?: string | undefined;
|
|
447
|
+
}[] | null;
|
|
448
|
+
severity: "critical" | "low" | "medium" | "high";
|
|
449
|
+
confidence: number | null;
|
|
228
450
|
acknowledgedAt: string | null;
|
|
229
451
|
acknowledgedBy: string | null;
|
|
230
452
|
resolvedAt: string | null;
|
|
231
|
-
confidence: number | null;
|
|
232
453
|
generatedBy: string;
|
|
233
454
|
fieldName?: string | undefined;
|
|
234
455
|
}, {
|
|
@@ -239,12 +460,33 @@ export declare const fieldMonitoringRouter: {
|
|
|
239
460
|
title: string;
|
|
240
461
|
createdAt: string;
|
|
241
462
|
fieldId: string;
|
|
242
|
-
|
|
243
|
-
|
|
463
|
+
recommendations: {
|
|
464
|
+
priority: number;
|
|
465
|
+
action: string;
|
|
466
|
+
details: string;
|
|
467
|
+
timing: string;
|
|
468
|
+
severity?: "critical" | "low" | "medium" | "high" | undefined;
|
|
469
|
+
confidence?: number | undefined;
|
|
470
|
+
materials?: {
|
|
471
|
+
name: string;
|
|
472
|
+
unit: string;
|
|
473
|
+
quantity: number;
|
|
474
|
+
inventoryItemId?: string | undefined;
|
|
475
|
+
totalCost?: number | undefined;
|
|
476
|
+
costPerUnit?: number | undefined;
|
|
477
|
+
availability?: string | undefined;
|
|
478
|
+
}[] | undefined;
|
|
479
|
+
applicationMethod?: string | undefined;
|
|
480
|
+
expectedOutcome?: string | undefined;
|
|
481
|
+
preventiveMeasures?: string[] | undefined;
|
|
482
|
+
estimatedTime?: string | undefined;
|
|
483
|
+
riskLevel?: string | undefined;
|
|
484
|
+
}[] | null;
|
|
485
|
+
severity: "critical" | "low" | "medium" | "high";
|
|
486
|
+
confidence: number | null;
|
|
244
487
|
acknowledgedAt: string | null;
|
|
245
488
|
acknowledgedBy: string | null;
|
|
246
489
|
resolvedAt: string | null;
|
|
247
|
-
confidence: number | null;
|
|
248
490
|
generatedBy: string;
|
|
249
491
|
fieldName?: string | undefined;
|
|
250
492
|
}>, "many">;
|
|
@@ -319,7 +561,86 @@ export declare const fieldMonitoringRouter: {
|
|
|
319
561
|
severity: z.ZodEnum<["low", "medium", "high", "critical"]>;
|
|
320
562
|
title: z.ZodString;
|
|
321
563
|
message: z.ZodString;
|
|
322
|
-
|
|
564
|
+
recommendations: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
565
|
+
priority: z.ZodNumber;
|
|
566
|
+
action: z.ZodString;
|
|
567
|
+
details: z.ZodString;
|
|
568
|
+
timing: z.ZodString;
|
|
569
|
+
severity: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "critical"]>>;
|
|
570
|
+
confidence: z.ZodOptional<z.ZodNumber>;
|
|
571
|
+
materials: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
572
|
+
inventoryItemId: z.ZodOptional<z.ZodString>;
|
|
573
|
+
name: z.ZodString;
|
|
574
|
+
quantity: z.ZodNumber;
|
|
575
|
+
unit: z.ZodString;
|
|
576
|
+
costPerUnit: z.ZodOptional<z.ZodNumber>;
|
|
577
|
+
totalCost: z.ZodOptional<z.ZodNumber>;
|
|
578
|
+
availability: z.ZodOptional<z.ZodString>;
|
|
579
|
+
}, "strip", z.ZodTypeAny, {
|
|
580
|
+
name: string;
|
|
581
|
+
unit: string;
|
|
582
|
+
quantity: number;
|
|
583
|
+
inventoryItemId?: string | undefined;
|
|
584
|
+
totalCost?: number | undefined;
|
|
585
|
+
costPerUnit?: number | undefined;
|
|
586
|
+
availability?: string | undefined;
|
|
587
|
+
}, {
|
|
588
|
+
name: string;
|
|
589
|
+
unit: string;
|
|
590
|
+
quantity: number;
|
|
591
|
+
inventoryItemId?: string | undefined;
|
|
592
|
+
totalCost?: number | undefined;
|
|
593
|
+
costPerUnit?: number | undefined;
|
|
594
|
+
availability?: string | undefined;
|
|
595
|
+
}>, "many">>;
|
|
596
|
+
applicationMethod: z.ZodOptional<z.ZodString>;
|
|
597
|
+
expectedOutcome: z.ZodOptional<z.ZodString>;
|
|
598
|
+
preventiveMeasures: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
599
|
+
estimatedTime: z.ZodOptional<z.ZodString>;
|
|
600
|
+
riskLevel: z.ZodOptional<z.ZodString>;
|
|
601
|
+
}, "strip", z.ZodTypeAny, {
|
|
602
|
+
priority: number;
|
|
603
|
+
action: string;
|
|
604
|
+
details: string;
|
|
605
|
+
timing: string;
|
|
606
|
+
severity?: "critical" | "low" | "medium" | "high" | undefined;
|
|
607
|
+
confidence?: number | undefined;
|
|
608
|
+
materials?: {
|
|
609
|
+
name: string;
|
|
610
|
+
unit: string;
|
|
611
|
+
quantity: number;
|
|
612
|
+
inventoryItemId?: string | undefined;
|
|
613
|
+
totalCost?: number | undefined;
|
|
614
|
+
costPerUnit?: number | undefined;
|
|
615
|
+
availability?: string | undefined;
|
|
616
|
+
}[] | undefined;
|
|
617
|
+
applicationMethod?: string | undefined;
|
|
618
|
+
expectedOutcome?: string | undefined;
|
|
619
|
+
preventiveMeasures?: string[] | undefined;
|
|
620
|
+
estimatedTime?: string | undefined;
|
|
621
|
+
riskLevel?: string | undefined;
|
|
622
|
+
}, {
|
|
623
|
+
priority: number;
|
|
624
|
+
action: string;
|
|
625
|
+
details: string;
|
|
626
|
+
timing: string;
|
|
627
|
+
severity?: "critical" | "low" | "medium" | "high" | undefined;
|
|
628
|
+
confidence?: number | undefined;
|
|
629
|
+
materials?: {
|
|
630
|
+
name: string;
|
|
631
|
+
unit: string;
|
|
632
|
+
quantity: number;
|
|
633
|
+
inventoryItemId?: string | undefined;
|
|
634
|
+
totalCost?: number | undefined;
|
|
635
|
+
costPerUnit?: number | undefined;
|
|
636
|
+
availability?: string | undefined;
|
|
637
|
+
}[] | undefined;
|
|
638
|
+
applicationMethod?: string | undefined;
|
|
639
|
+
expectedOutcome?: string | undefined;
|
|
640
|
+
preventiveMeasures?: string[] | undefined;
|
|
641
|
+
estimatedTime?: string | undefined;
|
|
642
|
+
riskLevel?: string | undefined;
|
|
643
|
+
}>, "many">>;
|
|
323
644
|
status: z.ZodEnum<["active", "acknowledged", "resolved"]>;
|
|
324
645
|
acknowledgedAt: z.ZodNullable<z.ZodString>;
|
|
325
646
|
acknowledgedBy: z.ZodNullable<z.ZodString>;
|
|
@@ -335,12 +656,33 @@ export declare const fieldMonitoringRouter: {
|
|
|
335
656
|
title: string;
|
|
336
657
|
createdAt: string;
|
|
337
658
|
fieldId: string;
|
|
338
|
-
|
|
339
|
-
|
|
659
|
+
recommendations: {
|
|
660
|
+
priority: number;
|
|
661
|
+
action: string;
|
|
662
|
+
details: string;
|
|
663
|
+
timing: string;
|
|
664
|
+
severity?: "critical" | "low" | "medium" | "high" | undefined;
|
|
665
|
+
confidence?: number | undefined;
|
|
666
|
+
materials?: {
|
|
667
|
+
name: string;
|
|
668
|
+
unit: string;
|
|
669
|
+
quantity: number;
|
|
670
|
+
inventoryItemId?: string | undefined;
|
|
671
|
+
totalCost?: number | undefined;
|
|
672
|
+
costPerUnit?: number | undefined;
|
|
673
|
+
availability?: string | undefined;
|
|
674
|
+
}[] | undefined;
|
|
675
|
+
applicationMethod?: string | undefined;
|
|
676
|
+
expectedOutcome?: string | undefined;
|
|
677
|
+
preventiveMeasures?: string[] | undefined;
|
|
678
|
+
estimatedTime?: string | undefined;
|
|
679
|
+
riskLevel?: string | undefined;
|
|
680
|
+
}[] | null;
|
|
681
|
+
severity: "critical" | "low" | "medium" | "high";
|
|
682
|
+
confidence: number | null;
|
|
340
683
|
acknowledgedAt: string | null;
|
|
341
684
|
acknowledgedBy: string | null;
|
|
342
685
|
resolvedAt: string | null;
|
|
343
|
-
confidence: number | null;
|
|
344
686
|
generatedBy: string;
|
|
345
687
|
fieldName?: string | undefined;
|
|
346
688
|
}, {
|
|
@@ -351,12 +693,33 @@ export declare const fieldMonitoringRouter: {
|
|
|
351
693
|
title: string;
|
|
352
694
|
createdAt: string;
|
|
353
695
|
fieldId: string;
|
|
354
|
-
|
|
355
|
-
|
|
696
|
+
recommendations: {
|
|
697
|
+
priority: number;
|
|
698
|
+
action: string;
|
|
699
|
+
details: string;
|
|
700
|
+
timing: string;
|
|
701
|
+
severity?: "critical" | "low" | "medium" | "high" | undefined;
|
|
702
|
+
confidence?: number | undefined;
|
|
703
|
+
materials?: {
|
|
704
|
+
name: string;
|
|
705
|
+
unit: string;
|
|
706
|
+
quantity: number;
|
|
707
|
+
inventoryItemId?: string | undefined;
|
|
708
|
+
totalCost?: number | undefined;
|
|
709
|
+
costPerUnit?: number | undefined;
|
|
710
|
+
availability?: string | undefined;
|
|
711
|
+
}[] | undefined;
|
|
712
|
+
applicationMethod?: string | undefined;
|
|
713
|
+
expectedOutcome?: string | undefined;
|
|
714
|
+
preventiveMeasures?: string[] | undefined;
|
|
715
|
+
estimatedTime?: string | undefined;
|
|
716
|
+
riskLevel?: string | undefined;
|
|
717
|
+
}[] | null;
|
|
718
|
+
severity: "critical" | "low" | "medium" | "high";
|
|
719
|
+
confidence: number | null;
|
|
356
720
|
acknowledgedAt: string | null;
|
|
357
721
|
acknowledgedBy: string | null;
|
|
358
722
|
resolvedAt: string | null;
|
|
359
|
-
confidence: number | null;
|
|
360
723
|
generatedBy: string;
|
|
361
724
|
fieldName?: string | undefined;
|
|
362
725
|
}>;
|
|
@@ -420,6 +783,188 @@ export declare const fieldMonitoringRouter: {
|
|
|
420
783
|
}>;
|
|
421
784
|
};
|
|
422
785
|
};
|
|
786
|
+
getSoilCurrent: {
|
|
787
|
+
summary: "Get current soil moisture and temperature";
|
|
788
|
+
method: "GET";
|
|
789
|
+
path: "/farms/:farmId/fields/:fieldId/monitoring/soil/current";
|
|
790
|
+
responses: {
|
|
791
|
+
200: z.ZodNullable<z.ZodObject<{
|
|
792
|
+
readingDate: z.ZodString;
|
|
793
|
+
soilMoisture: z.ZodNullable<z.ZodNumber>;
|
|
794
|
+
surfaceTemp: z.ZodNullable<z.ZodNumber>;
|
|
795
|
+
temp10cm: z.ZodNullable<z.ZodNumber>;
|
|
796
|
+
}, "strip", z.ZodTypeAny, {
|
|
797
|
+
readingDate: string;
|
|
798
|
+
soilMoisture: number | null;
|
|
799
|
+
surfaceTemp: number | null;
|
|
800
|
+
temp10cm: number | null;
|
|
801
|
+
}, {
|
|
802
|
+
readingDate: string;
|
|
803
|
+
soilMoisture: number | null;
|
|
804
|
+
surfaceTemp: number | null;
|
|
805
|
+
temp10cm: number | null;
|
|
806
|
+
}>>;
|
|
807
|
+
404: z.ZodObject<{
|
|
808
|
+
message: z.ZodString;
|
|
809
|
+
code: z.ZodOptional<z.ZodString>;
|
|
810
|
+
}, "strip", z.ZodTypeAny, {
|
|
811
|
+
message: string;
|
|
812
|
+
code?: string | undefined;
|
|
813
|
+
}, {
|
|
814
|
+
message: string;
|
|
815
|
+
code?: string | undefined;
|
|
816
|
+
}>;
|
|
817
|
+
};
|
|
818
|
+
};
|
|
819
|
+
getSoilHistory: {
|
|
820
|
+
query: z.ZodObject<{
|
|
821
|
+
startDate: z.ZodString;
|
|
822
|
+
endDate: z.ZodString;
|
|
823
|
+
}, "strip", z.ZodTypeAny, {
|
|
824
|
+
startDate: string;
|
|
825
|
+
endDate: string;
|
|
826
|
+
}, {
|
|
827
|
+
startDate: string;
|
|
828
|
+
endDate: string;
|
|
829
|
+
}>;
|
|
830
|
+
summary: "Get historical soil readings";
|
|
831
|
+
method: "GET";
|
|
832
|
+
path: "/farms/:farmId/fields/:fieldId/monitoring/soil/history";
|
|
833
|
+
responses: {
|
|
834
|
+
200: z.ZodArray<z.ZodObject<{
|
|
835
|
+
readingDate: z.ZodString;
|
|
836
|
+
soilMoisture: z.ZodNullable<z.ZodNumber>;
|
|
837
|
+
surfaceTemp: z.ZodNullable<z.ZodNumber>;
|
|
838
|
+
temp10cm: z.ZodNullable<z.ZodNumber>;
|
|
839
|
+
}, "strip", z.ZodTypeAny, {
|
|
840
|
+
readingDate: string;
|
|
841
|
+
soilMoisture: number | null;
|
|
842
|
+
surfaceTemp: number | null;
|
|
843
|
+
temp10cm: number | null;
|
|
844
|
+
}, {
|
|
845
|
+
readingDate: string;
|
|
846
|
+
soilMoisture: number | null;
|
|
847
|
+
surfaceTemp: number | null;
|
|
848
|
+
temp10cm: number | null;
|
|
849
|
+
}>, "many">;
|
|
850
|
+
};
|
|
851
|
+
};
|
|
852
|
+
getSoilTrend: {
|
|
853
|
+
query: z.ZodObject<{
|
|
854
|
+
days: z.ZodOptional<z.ZodPipeline<z.ZodEffects<z.ZodString, number, string>, z.ZodNumber>>;
|
|
855
|
+
}, "strip", z.ZodTypeAny, {
|
|
856
|
+
days?: number | undefined;
|
|
857
|
+
}, {
|
|
858
|
+
days?: string | undefined;
|
|
859
|
+
}>;
|
|
860
|
+
summary: "Get soil moisture trend analysis";
|
|
861
|
+
method: "GET";
|
|
862
|
+
path: "/farms/:farmId/fields/:fieldId/monitoring/soil/trend";
|
|
863
|
+
responses: {
|
|
864
|
+
200: z.ZodObject<{
|
|
865
|
+
fieldId: z.ZodString;
|
|
866
|
+
fieldName: z.ZodString;
|
|
867
|
+
readings: z.ZodArray<z.ZodObject<{
|
|
868
|
+
readingDate: z.ZodString;
|
|
869
|
+
soilMoisture: z.ZodNullable<z.ZodNumber>;
|
|
870
|
+
surfaceTemp: z.ZodNullable<z.ZodNumber>;
|
|
871
|
+
temp10cm: z.ZodNullable<z.ZodNumber>;
|
|
872
|
+
}, "strip", z.ZodTypeAny, {
|
|
873
|
+
readingDate: string;
|
|
874
|
+
soilMoisture: number | null;
|
|
875
|
+
surfaceTemp: number | null;
|
|
876
|
+
temp10cm: number | null;
|
|
877
|
+
}, {
|
|
878
|
+
readingDate: string;
|
|
879
|
+
soilMoisture: number | null;
|
|
880
|
+
surfaceTemp: number | null;
|
|
881
|
+
temp10cm: number | null;
|
|
882
|
+
}>, "many">;
|
|
883
|
+
avgMoisture: z.ZodNullable<z.ZodNumber>;
|
|
884
|
+
moistureTrend: z.ZodNullable<z.ZodEnum<["increasing", "stable", "decreasing"]>>;
|
|
885
|
+
lastReadingDate: z.ZodNullable<z.ZodString>;
|
|
886
|
+
}, "strip", z.ZodTypeAny, {
|
|
887
|
+
fieldId: string;
|
|
888
|
+
fieldName: string;
|
|
889
|
+
readings: {
|
|
890
|
+
readingDate: string;
|
|
891
|
+
soilMoisture: number | null;
|
|
892
|
+
surfaceTemp: number | null;
|
|
893
|
+
temp10cm: number | null;
|
|
894
|
+
}[];
|
|
895
|
+
avgMoisture: number | null;
|
|
896
|
+
moistureTrend: "stable" | "increasing" | "decreasing" | null;
|
|
897
|
+
lastReadingDate: string | null;
|
|
898
|
+
}, {
|
|
899
|
+
fieldId: string;
|
|
900
|
+
fieldName: string;
|
|
901
|
+
readings: {
|
|
902
|
+
readingDate: string;
|
|
903
|
+
soilMoisture: number | null;
|
|
904
|
+
surfaceTemp: number | null;
|
|
905
|
+
temp10cm: number | null;
|
|
906
|
+
}[];
|
|
907
|
+
avgMoisture: number | null;
|
|
908
|
+
moistureTrend: "stable" | "increasing" | "decreasing" | null;
|
|
909
|
+
lastReadingDate: string | null;
|
|
910
|
+
}>;
|
|
911
|
+
};
|
|
912
|
+
};
|
|
913
|
+
getNDVIHistorical: {
|
|
914
|
+
query: z.ZodObject<{
|
|
915
|
+
startDate: z.ZodString;
|
|
916
|
+
endDate: z.ZodString;
|
|
917
|
+
source: z.ZodOptional<z.ZodEnum<["sentinel-2", "landsat-8", "modis", "all"]>>;
|
|
918
|
+
cloudMax: z.ZodOptional<z.ZodPipeline<z.ZodEffects<z.ZodString, number, string>, z.ZodNumber>>;
|
|
919
|
+
coverageMin: z.ZodOptional<z.ZodPipeline<z.ZodEffects<z.ZodString, number, string>, z.ZodNumber>>;
|
|
920
|
+
}, "strip", z.ZodTypeAny, {
|
|
921
|
+
startDate: string;
|
|
922
|
+
endDate: string;
|
|
923
|
+
source?: "sentinel-2" | "landsat-8" | "modis" | "all" | undefined;
|
|
924
|
+
cloudMax?: number | undefined;
|
|
925
|
+
coverageMin?: number | undefined;
|
|
926
|
+
}, {
|
|
927
|
+
startDate: string;
|
|
928
|
+
endDate: string;
|
|
929
|
+
source?: "sentinel-2" | "landsat-8" | "modis" | "all" | undefined;
|
|
930
|
+
cloudMax?: string | undefined;
|
|
931
|
+
coverageMin?: string | undefined;
|
|
932
|
+
}>;
|
|
933
|
+
summary: "Get historical NDVI data (long-term trends)";
|
|
934
|
+
method: "GET";
|
|
935
|
+
path: "/farms/:farmId/fields/:fieldId/monitoring/ndvi/historical";
|
|
936
|
+
responses: {
|
|
937
|
+
200: z.ZodArray<z.ZodObject<{
|
|
938
|
+
date: z.ZodString;
|
|
939
|
+
ndvi: z.ZodNumber;
|
|
940
|
+
source: z.ZodEnum<["sentinel-2", "landsat-8", "modis"]>;
|
|
941
|
+
cloudCoverage: z.ZodNumber;
|
|
942
|
+
imageCoverage: z.ZodNumber;
|
|
943
|
+
}, "strip", z.ZodTypeAny, {
|
|
944
|
+
date: string;
|
|
945
|
+
source: "sentinel-2" | "landsat-8" | "modis";
|
|
946
|
+
ndvi: number;
|
|
947
|
+
cloudCoverage: number;
|
|
948
|
+
imageCoverage: number;
|
|
949
|
+
}, {
|
|
950
|
+
date: string;
|
|
951
|
+
source: "sentinel-2" | "landsat-8" | "modis";
|
|
952
|
+
ndvi: number;
|
|
953
|
+
cloudCoverage: number;
|
|
954
|
+
imageCoverage: number;
|
|
955
|
+
}>, "many">;
|
|
956
|
+
404: z.ZodObject<{
|
|
957
|
+
message: z.ZodString;
|
|
958
|
+
code: z.ZodOptional<z.ZodString>;
|
|
959
|
+
}, "strip", z.ZodTypeAny, {
|
|
960
|
+
message: string;
|
|
961
|
+
code?: string | undefined;
|
|
962
|
+
}, {
|
|
963
|
+
message: string;
|
|
964
|
+
code?: string | undefined;
|
|
965
|
+
}>;
|
|
966
|
+
};
|
|
967
|
+
};
|
|
423
968
|
};
|
|
424
969
|
export type FieldMonitoringRouter = typeof fieldMonitoringRouter;
|
|
425
970
|
//# sourceMappingURL=field-monitoring.routes.d.ts.map
|