@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.
- package/dist/index.d.ts +18 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +17 -0
- package/dist/routes/agent-workflows.routes.d.ts +88 -88
- package/dist/routes/agents.routes.d.ts +3266 -6
- package/dist/routes/agents.routes.d.ts.map +1 -1
- package/dist/routes/agents.routes.js +130 -1
- package/dist/routes/analytics.routes.d.ts +20 -20
- package/dist/routes/cooperative.routes.d.ts +1327 -0
- package/dist/routes/cooperative.routes.d.ts.map +1 -0
- package/dist/routes/cooperative.routes.js +47 -0
- package/dist/routes/documents.routes.d.ts +855 -58
- package/dist/routes/documents.routes.d.ts.map +1 -1
- package/dist/routes/documents.routes.js +43 -1
- package/dist/routes/equipment.routes.d.ts +38 -38
- package/dist/routes/extension.routes.d.ts +2431 -0
- package/dist/routes/extension.routes.d.ts.map +1 -0
- package/dist/routes/extension.routes.js +75 -0
- package/dist/routes/farm-status.routes.d.ts +315 -0
- package/dist/routes/farm-status.routes.d.ts.map +1 -0
- package/dist/routes/farm-status.routes.js +26 -0
- package/dist/routes/farms.routes.d.ts +775 -0
- package/dist/routes/farms.routes.d.ts.map +1 -1
- package/dist/routes/farms.routes.js +15 -1
- package/dist/routes/fertigation.routes.d.ts +148 -148
- package/dist/routes/field-monitoring.routes.d.ts +557 -52
- package/dist/routes/field-monitoring.routes.d.ts.map +1 -1
- package/dist/routes/field-monitoring.routes.js +23 -1
- package/dist/routes/field-observations.routes.d.ts +56 -56
- package/dist/routes/fields.routes.d.ts +156 -155
- package/dist/routes/fields.routes.d.ts.map +1 -1
- package/dist/routes/finance.routes.d.ts +3493 -0
- package/dist/routes/finance.routes.d.ts.map +1 -1
- package/dist/routes/finance.routes.js +158 -1
- package/dist/routes/geofences.routes.d.ts.map +1 -1
- package/dist/routes/index.d.ts +18 -0
- package/dist/routes/index.d.ts.map +1 -1
- package/dist/routes/index.js +12 -0
- package/dist/routes/irrigation.routes.d.ts +6 -6
- package/dist/routes/live-monitor.routes.d.ts +513 -0
- package/dist/routes/live-monitor.routes.d.ts.map +1 -0
- package/dist/routes/live-monitor.routes.js +81 -0
- package/dist/routes/livestock-map.routes.d.ts +4 -4
- package/dist/routes/measurements.routes.d.ts +13 -4
- package/dist/routes/measurements.routes.d.ts.map +1 -1
- package/dist/routes/monitoring-visualization.routes.d.ts +40 -33
- package/dist/routes/monitoring-visualization.routes.d.ts.map +1 -1
- package/dist/routes/monitoring-visualization.routes.js +7 -4
- package/dist/routes/notifications.routes.d.ts +1350 -0
- package/dist/routes/notifications.routes.d.ts.map +1 -0
- package/dist/routes/notifications.routes.js +66 -0
- package/dist/routes/pest-disease-risk.routes.d.ts +20 -20
- package/dist/routes/prescription-maps.routes.d.ts +567 -20
- package/dist/routes/prescription-maps.routes.d.ts.map +1 -1
- package/dist/routes/prescription-maps.routes.js +18 -1
- package/dist/routes/soil-tests.routes.d.ts +30 -30
- package/dist/routes/subscriptions.routes.d.ts +14 -14
- package/dist/routes/team-payments.routes.d.ts +9571 -0
- package/dist/routes/team-payments.routes.d.ts.map +1 -0
- package/dist/routes/team-payments.routes.js +262 -0
- package/dist/routes/weather.routes.d.ts +545 -52
- package/dist/routes/weather.routes.d.ts.map +1 -1
- package/dist/routes/weather.routes.js +13 -1
- package/dist/routes/yield-prediction.routes.d.ts +30 -30
- package/dist/schemas/agent-workflows.schemas.d.ts +92 -92
- package/dist/schemas/agents.schemas.d.ts +1121 -0
- package/dist/schemas/agents.schemas.d.ts.map +1 -1
- package/dist/schemas/agents.schemas.js +181 -0
- package/dist/schemas/analytics.schemas.d.ts +56 -56
- package/dist/schemas/cooperative.schemas.d.ts +560 -0
- package/dist/schemas/cooperative.schemas.d.ts.map +1 -0
- package/dist/schemas/cooperative.schemas.js +71 -0
- package/dist/schemas/documents.schemas.d.ts +248 -48
- package/dist/schemas/documents.schemas.d.ts.map +1 -1
- package/dist/schemas/documents.schemas.js +38 -0
- package/dist/schemas/equipment.schemas.d.ts +30 -30
- package/dist/schemas/extension.schemas.d.ts +1204 -0
- package/dist/schemas/extension.schemas.d.ts.map +1 -0
- package/dist/schemas/extension.schemas.js +68 -0
- package/dist/schemas/farm-status.schemas.d.ts +451 -0
- package/dist/schemas/farm-status.schemas.d.ts.map +1 -0
- package/dist/schemas/farm-status.schemas.js +44 -0
- package/dist/schemas/farms.schemas.d.ts +591 -0
- package/dist/schemas/farms.schemas.d.ts.map +1 -1
- package/dist/schemas/farms.schemas.js +44 -0
- package/dist/schemas/fertigation.schemas.d.ts +50 -50
- package/dist/schemas/field-monitoring.schemas.d.ts +318 -42
- package/dist/schemas/field-monitoring.schemas.d.ts.map +1 -1
- package/dist/schemas/field-monitoring.schemas.js +9 -0
- package/dist/schemas/field-observations.schemas.d.ts +45 -44
- package/dist/schemas/field-observations.schemas.d.ts.map +1 -1
- package/dist/schemas/fields.schemas.d.ts +188 -186
- package/dist/schemas/fields.schemas.d.ts.map +1 -1
- package/dist/schemas/fields.schemas.js +10 -2
- package/dist/schemas/finance.schemas.d.ts +1057 -0
- package/dist/schemas/finance.schemas.d.ts.map +1 -1
- package/dist/schemas/finance.schemas.js +170 -0
- package/dist/schemas/irrigation.schemas.d.ts +8 -8
- package/dist/schemas/live-monitor.schemas.d.ts +596 -0
- package/dist/schemas/live-monitor.schemas.d.ts.map +1 -0
- package/dist/schemas/live-monitor.schemas.js +107 -0
- package/dist/schemas/livestock-map.schemas.d.ts +10 -10
- package/dist/schemas/measurements.schemas.d.ts +21 -8
- package/dist/schemas/measurements.schemas.d.ts.map +1 -1
- package/dist/schemas/measurements.schemas.js +13 -6
- package/dist/schemas/monitoring-visualization.schemas.d.ts +47 -40
- package/dist/schemas/monitoring-visualization.schemas.d.ts.map +1 -1
- package/dist/schemas/monitoring-visualization.schemas.js +24 -16
- package/dist/schemas/notifications.schemas.d.ts +464 -0
- package/dist/schemas/notifications.schemas.d.ts.map +1 -0
- package/dist/schemas/notifications.schemas.js +40 -0
- package/dist/schemas/pest-disease-risk.schemas.d.ts +18 -18
- package/dist/schemas/prescription-maps.schemas.d.ts +41 -18
- package/dist/schemas/prescription-maps.schemas.d.ts.map +1 -1
- package/dist/schemas/prescription-maps.schemas.js +8 -0
- package/dist/schemas/recommendations.schemas.d.ts +2 -2
- package/dist/schemas/soil-tests.schemas.d.ts +28 -28
- package/dist/schemas/subscriptions.schemas.d.ts +22 -22
- package/dist/schemas/team-payments.schemas.d.ts +2604 -0
- package/dist/schemas/team-payments.schemas.d.ts.map +1 -0
- package/dist/schemas/team-payments.schemas.js +151 -0
- package/dist/schemas/weather.schemas.d.ts +789 -112
- package/dist/schemas/weather.schemas.d.ts.map +1 -1
- package/dist/schemas/weather.schemas.js +37 -0
- package/dist/schemas/yield-prediction.schemas.d.ts +12 -12
- package/package.json +1 -1
|
@@ -186,8 +186,8 @@ export declare const fieldMonitoringRouter: {
|
|
|
186
186
|
action: string;
|
|
187
187
|
details: string;
|
|
188
188
|
timing: string;
|
|
189
|
-
severity?: "critical" | "low" | "medium" | "high" | undefined;
|
|
190
189
|
confidence?: number | undefined;
|
|
190
|
+
severity?: "critical" | "low" | "medium" | "high" | undefined;
|
|
191
191
|
materials?: {
|
|
192
192
|
name: string;
|
|
193
193
|
unit: string;
|
|
@@ -207,8 +207,8 @@ export declare const fieldMonitoringRouter: {
|
|
|
207
207
|
action: string;
|
|
208
208
|
details: string;
|
|
209
209
|
timing: string;
|
|
210
|
-
severity?: "critical" | "low" | "medium" | "high" | undefined;
|
|
211
210
|
confidence?: number | undefined;
|
|
211
|
+
severity?: "critical" | "low" | "medium" | "high" | undefined;
|
|
212
212
|
materials?: {
|
|
213
213
|
name: string;
|
|
214
214
|
unit: string;
|
|
@@ -227,6 +227,8 @@ export declare const fieldMonitoringRouter: {
|
|
|
227
227
|
status: z.ZodEnum<["active", "acknowledged", "resolved"]>;
|
|
228
228
|
acknowledgedAt: z.ZodNullable<z.ZodString>;
|
|
229
229
|
acknowledgedBy: z.ZodNullable<z.ZodString>;
|
|
230
|
+
readAt: z.ZodNullable<z.ZodString>;
|
|
231
|
+
readBy: z.ZodNullable<z.ZodString>;
|
|
230
232
|
resolvedAt: z.ZodNullable<z.ZodString>;
|
|
231
233
|
confidence: z.ZodNullable<z.ZodNumber>;
|
|
232
234
|
generatedBy: z.ZodString;
|
|
@@ -244,8 +246,8 @@ export declare const fieldMonitoringRouter: {
|
|
|
244
246
|
action: string;
|
|
245
247
|
details: string;
|
|
246
248
|
timing: string;
|
|
247
|
-
severity?: "critical" | "low" | "medium" | "high" | undefined;
|
|
248
249
|
confidence?: number | undefined;
|
|
250
|
+
severity?: "critical" | "low" | "medium" | "high" | undefined;
|
|
249
251
|
materials?: {
|
|
250
252
|
name: string;
|
|
251
253
|
unit: string;
|
|
@@ -261,10 +263,12 @@ export declare const fieldMonitoringRouter: {
|
|
|
261
263
|
estimatedTime?: string | undefined;
|
|
262
264
|
riskLevel?: string | undefined;
|
|
263
265
|
}[] | null;
|
|
264
|
-
severity: "critical" | "low" | "medium" | "high";
|
|
265
266
|
confidence: number | null;
|
|
267
|
+
severity: "critical" | "low" | "medium" | "high";
|
|
266
268
|
acknowledgedAt: string | null;
|
|
267
269
|
acknowledgedBy: string | null;
|
|
270
|
+
readAt: string | null;
|
|
271
|
+
readBy: string | null;
|
|
268
272
|
resolvedAt: string | null;
|
|
269
273
|
generatedBy: string;
|
|
270
274
|
fieldName?: string | undefined;
|
|
@@ -281,8 +285,8 @@ export declare const fieldMonitoringRouter: {
|
|
|
281
285
|
action: string;
|
|
282
286
|
details: string;
|
|
283
287
|
timing: string;
|
|
284
|
-
severity?: "critical" | "low" | "medium" | "high" | undefined;
|
|
285
288
|
confidence?: number | undefined;
|
|
289
|
+
severity?: "critical" | "low" | "medium" | "high" | undefined;
|
|
286
290
|
materials?: {
|
|
287
291
|
name: string;
|
|
288
292
|
unit: string;
|
|
@@ -298,10 +302,12 @@ export declare const fieldMonitoringRouter: {
|
|
|
298
302
|
estimatedTime?: string | undefined;
|
|
299
303
|
riskLevel?: string | undefined;
|
|
300
304
|
}[] | null;
|
|
301
|
-
severity: "critical" | "low" | "medium" | "high";
|
|
302
305
|
confidence: number | null;
|
|
306
|
+
severity: "critical" | "low" | "medium" | "high";
|
|
303
307
|
acknowledgedAt: string | null;
|
|
304
308
|
acknowledgedBy: string | null;
|
|
309
|
+
readAt: string | null;
|
|
310
|
+
readBy: string | null;
|
|
305
311
|
resolvedAt: string | null;
|
|
306
312
|
generatedBy: string;
|
|
307
313
|
fieldName?: string | undefined;
|
|
@@ -370,8 +376,8 @@ export declare const fieldMonitoringRouter: {
|
|
|
370
376
|
action: string;
|
|
371
377
|
details: string;
|
|
372
378
|
timing: string;
|
|
373
|
-
severity?: "critical" | "low" | "medium" | "high" | undefined;
|
|
374
379
|
confidence?: number | undefined;
|
|
380
|
+
severity?: "critical" | "low" | "medium" | "high" | undefined;
|
|
375
381
|
materials?: {
|
|
376
382
|
name: string;
|
|
377
383
|
unit: string;
|
|
@@ -391,8 +397,8 @@ export declare const fieldMonitoringRouter: {
|
|
|
391
397
|
action: string;
|
|
392
398
|
details: string;
|
|
393
399
|
timing: string;
|
|
394
|
-
severity?: "critical" | "low" | "medium" | "high" | undefined;
|
|
395
400
|
confidence?: number | undefined;
|
|
401
|
+
severity?: "critical" | "low" | "medium" | "high" | undefined;
|
|
396
402
|
materials?: {
|
|
397
403
|
name: string;
|
|
398
404
|
unit: string;
|
|
@@ -411,6 +417,8 @@ export declare const fieldMonitoringRouter: {
|
|
|
411
417
|
status: z.ZodEnum<["active", "acknowledged", "resolved"]>;
|
|
412
418
|
acknowledgedAt: z.ZodNullable<z.ZodString>;
|
|
413
419
|
acknowledgedBy: z.ZodNullable<z.ZodString>;
|
|
420
|
+
readAt: z.ZodNullable<z.ZodString>;
|
|
421
|
+
readBy: z.ZodNullable<z.ZodString>;
|
|
414
422
|
resolvedAt: z.ZodNullable<z.ZodString>;
|
|
415
423
|
confidence: z.ZodNullable<z.ZodNumber>;
|
|
416
424
|
generatedBy: z.ZodString;
|
|
@@ -428,8 +436,8 @@ export declare const fieldMonitoringRouter: {
|
|
|
428
436
|
action: string;
|
|
429
437
|
details: string;
|
|
430
438
|
timing: string;
|
|
431
|
-
severity?: "critical" | "low" | "medium" | "high" | undefined;
|
|
432
439
|
confidence?: number | undefined;
|
|
440
|
+
severity?: "critical" | "low" | "medium" | "high" | undefined;
|
|
433
441
|
materials?: {
|
|
434
442
|
name: string;
|
|
435
443
|
unit: string;
|
|
@@ -445,10 +453,12 @@ export declare const fieldMonitoringRouter: {
|
|
|
445
453
|
estimatedTime?: string | undefined;
|
|
446
454
|
riskLevel?: string | undefined;
|
|
447
455
|
}[] | null;
|
|
448
|
-
severity: "critical" | "low" | "medium" | "high";
|
|
449
456
|
confidence: number | null;
|
|
457
|
+
severity: "critical" | "low" | "medium" | "high";
|
|
450
458
|
acknowledgedAt: string | null;
|
|
451
459
|
acknowledgedBy: string | null;
|
|
460
|
+
readAt: string | null;
|
|
461
|
+
readBy: string | null;
|
|
452
462
|
resolvedAt: string | null;
|
|
453
463
|
generatedBy: string;
|
|
454
464
|
fieldName?: string | undefined;
|
|
@@ -465,8 +475,8 @@ export declare const fieldMonitoringRouter: {
|
|
|
465
475
|
action: string;
|
|
466
476
|
details: string;
|
|
467
477
|
timing: string;
|
|
468
|
-
severity?: "critical" | "low" | "medium" | "high" | undefined;
|
|
469
478
|
confidence?: number | undefined;
|
|
479
|
+
severity?: "critical" | "low" | "medium" | "high" | undefined;
|
|
470
480
|
materials?: {
|
|
471
481
|
name: string;
|
|
472
482
|
unit: string;
|
|
@@ -482,10 +492,12 @@ export declare const fieldMonitoringRouter: {
|
|
|
482
492
|
estimatedTime?: string | undefined;
|
|
483
493
|
riskLevel?: string | undefined;
|
|
484
494
|
}[] | null;
|
|
485
|
-
severity: "critical" | "low" | "medium" | "high";
|
|
486
495
|
confidence: number | null;
|
|
496
|
+
severity: "critical" | "low" | "medium" | "high";
|
|
487
497
|
acknowledgedAt: string | null;
|
|
488
498
|
acknowledgedBy: string | null;
|
|
499
|
+
readAt: string | null;
|
|
500
|
+
readBy: string | null;
|
|
489
501
|
resolvedAt: string | null;
|
|
490
502
|
generatedBy: string;
|
|
491
503
|
fieldName?: string | undefined;
|
|
@@ -547,6 +559,487 @@ export declare const fieldMonitoringRouter: {
|
|
|
547
559
|
}>;
|
|
548
560
|
};
|
|
549
561
|
};
|
|
562
|
+
markAlertRead: {
|
|
563
|
+
summary: "Mark an alert as read";
|
|
564
|
+
method: "PATCH";
|
|
565
|
+
body: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
566
|
+
path: "/farms/:farmId/monitoring/alerts/:alertId/read";
|
|
567
|
+
responses: {
|
|
568
|
+
200: z.ZodObject<{
|
|
569
|
+
id: z.ZodString;
|
|
570
|
+
fieldId: z.ZodString;
|
|
571
|
+
fieldName: z.ZodOptional<z.ZodString>;
|
|
572
|
+
type: z.ZodString;
|
|
573
|
+
severity: z.ZodEnum<["low", "medium", "high", "critical"]>;
|
|
574
|
+
title: z.ZodString;
|
|
575
|
+
message: z.ZodString;
|
|
576
|
+
recommendations: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
577
|
+
priority: z.ZodNumber;
|
|
578
|
+
action: z.ZodString;
|
|
579
|
+
details: z.ZodString;
|
|
580
|
+
timing: z.ZodString;
|
|
581
|
+
severity: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "critical"]>>;
|
|
582
|
+
confidence: z.ZodOptional<z.ZodNumber>;
|
|
583
|
+
materials: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
584
|
+
inventoryItemId: z.ZodOptional<z.ZodString>;
|
|
585
|
+
name: z.ZodString;
|
|
586
|
+
quantity: z.ZodNumber;
|
|
587
|
+
unit: z.ZodString;
|
|
588
|
+
costPerUnit: z.ZodOptional<z.ZodNumber>;
|
|
589
|
+
totalCost: z.ZodOptional<z.ZodNumber>;
|
|
590
|
+
availability: z.ZodOptional<z.ZodString>;
|
|
591
|
+
}, "strip", z.ZodTypeAny, {
|
|
592
|
+
name: string;
|
|
593
|
+
unit: string;
|
|
594
|
+
quantity: number;
|
|
595
|
+
inventoryItemId?: string | undefined;
|
|
596
|
+
totalCost?: number | undefined;
|
|
597
|
+
costPerUnit?: number | undefined;
|
|
598
|
+
availability?: string | undefined;
|
|
599
|
+
}, {
|
|
600
|
+
name: string;
|
|
601
|
+
unit: string;
|
|
602
|
+
quantity: number;
|
|
603
|
+
inventoryItemId?: string | undefined;
|
|
604
|
+
totalCost?: number | undefined;
|
|
605
|
+
costPerUnit?: number | undefined;
|
|
606
|
+
availability?: string | undefined;
|
|
607
|
+
}>, "many">>;
|
|
608
|
+
applicationMethod: z.ZodOptional<z.ZodString>;
|
|
609
|
+
expectedOutcome: z.ZodOptional<z.ZodString>;
|
|
610
|
+
preventiveMeasures: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
611
|
+
estimatedTime: z.ZodOptional<z.ZodString>;
|
|
612
|
+
riskLevel: z.ZodOptional<z.ZodString>;
|
|
613
|
+
}, "strip", z.ZodTypeAny, {
|
|
614
|
+
priority: number;
|
|
615
|
+
action: string;
|
|
616
|
+
details: string;
|
|
617
|
+
timing: string;
|
|
618
|
+
confidence?: number | undefined;
|
|
619
|
+
severity?: "critical" | "low" | "medium" | "high" | undefined;
|
|
620
|
+
materials?: {
|
|
621
|
+
name: string;
|
|
622
|
+
unit: string;
|
|
623
|
+
quantity: number;
|
|
624
|
+
inventoryItemId?: string | undefined;
|
|
625
|
+
totalCost?: number | undefined;
|
|
626
|
+
costPerUnit?: number | undefined;
|
|
627
|
+
availability?: string | undefined;
|
|
628
|
+
}[] | undefined;
|
|
629
|
+
applicationMethod?: string | undefined;
|
|
630
|
+
expectedOutcome?: string | undefined;
|
|
631
|
+
preventiveMeasures?: string[] | undefined;
|
|
632
|
+
estimatedTime?: string | undefined;
|
|
633
|
+
riskLevel?: string | undefined;
|
|
634
|
+
}, {
|
|
635
|
+
priority: number;
|
|
636
|
+
action: string;
|
|
637
|
+
details: string;
|
|
638
|
+
timing: string;
|
|
639
|
+
confidence?: number | undefined;
|
|
640
|
+
severity?: "critical" | "low" | "medium" | "high" | undefined;
|
|
641
|
+
materials?: {
|
|
642
|
+
name: string;
|
|
643
|
+
unit: string;
|
|
644
|
+
quantity: number;
|
|
645
|
+
inventoryItemId?: string | undefined;
|
|
646
|
+
totalCost?: number | undefined;
|
|
647
|
+
costPerUnit?: number | undefined;
|
|
648
|
+
availability?: string | undefined;
|
|
649
|
+
}[] | undefined;
|
|
650
|
+
applicationMethod?: string | undefined;
|
|
651
|
+
expectedOutcome?: string | undefined;
|
|
652
|
+
preventiveMeasures?: string[] | undefined;
|
|
653
|
+
estimatedTime?: string | undefined;
|
|
654
|
+
riskLevel?: string | undefined;
|
|
655
|
+
}>, "many">>;
|
|
656
|
+
status: z.ZodEnum<["active", "acknowledged", "resolved"]>;
|
|
657
|
+
acknowledgedAt: z.ZodNullable<z.ZodString>;
|
|
658
|
+
acknowledgedBy: z.ZodNullable<z.ZodString>;
|
|
659
|
+
readAt: z.ZodNullable<z.ZodString>;
|
|
660
|
+
readBy: z.ZodNullable<z.ZodString>;
|
|
661
|
+
resolvedAt: z.ZodNullable<z.ZodString>;
|
|
662
|
+
confidence: z.ZodNullable<z.ZodNumber>;
|
|
663
|
+
generatedBy: z.ZodString;
|
|
664
|
+
createdAt: z.ZodString;
|
|
665
|
+
}, "strip", z.ZodTypeAny, {
|
|
666
|
+
type: string;
|
|
667
|
+
status: "active" | "acknowledged" | "resolved";
|
|
668
|
+
message: string;
|
|
669
|
+
id: string;
|
|
670
|
+
title: string;
|
|
671
|
+
createdAt: string;
|
|
672
|
+
fieldId: string;
|
|
673
|
+
recommendations: {
|
|
674
|
+
priority: number;
|
|
675
|
+
action: string;
|
|
676
|
+
details: string;
|
|
677
|
+
timing: string;
|
|
678
|
+
confidence?: number | undefined;
|
|
679
|
+
severity?: "critical" | "low" | "medium" | "high" | undefined;
|
|
680
|
+
materials?: {
|
|
681
|
+
name: string;
|
|
682
|
+
unit: string;
|
|
683
|
+
quantity: number;
|
|
684
|
+
inventoryItemId?: string | undefined;
|
|
685
|
+
totalCost?: number | undefined;
|
|
686
|
+
costPerUnit?: number | undefined;
|
|
687
|
+
availability?: string | undefined;
|
|
688
|
+
}[] | undefined;
|
|
689
|
+
applicationMethod?: string | undefined;
|
|
690
|
+
expectedOutcome?: string | undefined;
|
|
691
|
+
preventiveMeasures?: string[] | undefined;
|
|
692
|
+
estimatedTime?: string | undefined;
|
|
693
|
+
riskLevel?: string | undefined;
|
|
694
|
+
}[] | null;
|
|
695
|
+
confidence: number | null;
|
|
696
|
+
severity: "critical" | "low" | "medium" | "high";
|
|
697
|
+
acknowledgedAt: string | null;
|
|
698
|
+
acknowledgedBy: string | null;
|
|
699
|
+
readAt: string | null;
|
|
700
|
+
readBy: string | null;
|
|
701
|
+
resolvedAt: string | null;
|
|
702
|
+
generatedBy: string;
|
|
703
|
+
fieldName?: string | undefined;
|
|
704
|
+
}, {
|
|
705
|
+
type: string;
|
|
706
|
+
status: "active" | "acknowledged" | "resolved";
|
|
707
|
+
message: string;
|
|
708
|
+
id: string;
|
|
709
|
+
title: string;
|
|
710
|
+
createdAt: string;
|
|
711
|
+
fieldId: string;
|
|
712
|
+
recommendations: {
|
|
713
|
+
priority: number;
|
|
714
|
+
action: string;
|
|
715
|
+
details: string;
|
|
716
|
+
timing: string;
|
|
717
|
+
confidence?: number | undefined;
|
|
718
|
+
severity?: "critical" | "low" | "medium" | "high" | undefined;
|
|
719
|
+
materials?: {
|
|
720
|
+
name: string;
|
|
721
|
+
unit: string;
|
|
722
|
+
quantity: number;
|
|
723
|
+
inventoryItemId?: string | undefined;
|
|
724
|
+
totalCost?: number | undefined;
|
|
725
|
+
costPerUnit?: number | undefined;
|
|
726
|
+
availability?: string | undefined;
|
|
727
|
+
}[] | undefined;
|
|
728
|
+
applicationMethod?: string | undefined;
|
|
729
|
+
expectedOutcome?: string | undefined;
|
|
730
|
+
preventiveMeasures?: string[] | undefined;
|
|
731
|
+
estimatedTime?: string | undefined;
|
|
732
|
+
riskLevel?: string | undefined;
|
|
733
|
+
}[] | null;
|
|
734
|
+
confidence: number | null;
|
|
735
|
+
severity: "critical" | "low" | "medium" | "high";
|
|
736
|
+
acknowledgedAt: string | null;
|
|
737
|
+
acknowledgedBy: string | null;
|
|
738
|
+
readAt: string | null;
|
|
739
|
+
readBy: string | null;
|
|
740
|
+
resolvedAt: string | null;
|
|
741
|
+
generatedBy: string;
|
|
742
|
+
fieldName?: string | undefined;
|
|
743
|
+
}>;
|
|
744
|
+
404: z.ZodObject<{
|
|
745
|
+
message: z.ZodString;
|
|
746
|
+
code: z.ZodOptional<z.ZodString>;
|
|
747
|
+
}, "strip", z.ZodTypeAny, {
|
|
748
|
+
message: string;
|
|
749
|
+
code?: string | undefined;
|
|
750
|
+
}, {
|
|
751
|
+
message: string;
|
|
752
|
+
code?: string | undefined;
|
|
753
|
+
}>;
|
|
754
|
+
};
|
|
755
|
+
};
|
|
756
|
+
bulkMarkAlertsRead: {
|
|
757
|
+
summary: "Mark multiple alerts as read";
|
|
758
|
+
method: "POST";
|
|
759
|
+
body: z.ZodObject<{
|
|
760
|
+
alertIds: z.ZodArray<z.ZodString, "many">;
|
|
761
|
+
}, "strip", z.ZodTypeAny, {
|
|
762
|
+
alertIds: string[];
|
|
763
|
+
}, {
|
|
764
|
+
alertIds: string[];
|
|
765
|
+
}>;
|
|
766
|
+
path: "/farms/:farmId/monitoring/alerts/bulk-read";
|
|
767
|
+
responses: {
|
|
768
|
+
200: z.ZodObject<{
|
|
769
|
+
updated: z.ZodNumber;
|
|
770
|
+
alerts: z.ZodArray<z.ZodObject<{
|
|
771
|
+
id: z.ZodString;
|
|
772
|
+
fieldId: z.ZodString;
|
|
773
|
+
fieldName: z.ZodOptional<z.ZodString>;
|
|
774
|
+
type: z.ZodString;
|
|
775
|
+
severity: z.ZodEnum<["low", "medium", "high", "critical"]>;
|
|
776
|
+
title: z.ZodString;
|
|
777
|
+
message: z.ZodString;
|
|
778
|
+
recommendations: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
779
|
+
priority: z.ZodNumber;
|
|
780
|
+
action: z.ZodString;
|
|
781
|
+
details: z.ZodString;
|
|
782
|
+
timing: z.ZodString;
|
|
783
|
+
severity: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "critical"]>>;
|
|
784
|
+
confidence: z.ZodOptional<z.ZodNumber>;
|
|
785
|
+
materials: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
786
|
+
inventoryItemId: z.ZodOptional<z.ZodString>;
|
|
787
|
+
name: z.ZodString;
|
|
788
|
+
quantity: z.ZodNumber;
|
|
789
|
+
unit: z.ZodString;
|
|
790
|
+
costPerUnit: z.ZodOptional<z.ZodNumber>;
|
|
791
|
+
totalCost: z.ZodOptional<z.ZodNumber>;
|
|
792
|
+
availability: z.ZodOptional<z.ZodString>;
|
|
793
|
+
}, "strip", z.ZodTypeAny, {
|
|
794
|
+
name: string;
|
|
795
|
+
unit: string;
|
|
796
|
+
quantity: number;
|
|
797
|
+
inventoryItemId?: string | undefined;
|
|
798
|
+
totalCost?: number | undefined;
|
|
799
|
+
costPerUnit?: number | undefined;
|
|
800
|
+
availability?: string | undefined;
|
|
801
|
+
}, {
|
|
802
|
+
name: string;
|
|
803
|
+
unit: string;
|
|
804
|
+
quantity: number;
|
|
805
|
+
inventoryItemId?: string | undefined;
|
|
806
|
+
totalCost?: number | undefined;
|
|
807
|
+
costPerUnit?: number | undefined;
|
|
808
|
+
availability?: string | undefined;
|
|
809
|
+
}>, "many">>;
|
|
810
|
+
applicationMethod: z.ZodOptional<z.ZodString>;
|
|
811
|
+
expectedOutcome: z.ZodOptional<z.ZodString>;
|
|
812
|
+
preventiveMeasures: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
813
|
+
estimatedTime: z.ZodOptional<z.ZodString>;
|
|
814
|
+
riskLevel: z.ZodOptional<z.ZodString>;
|
|
815
|
+
}, "strip", z.ZodTypeAny, {
|
|
816
|
+
priority: number;
|
|
817
|
+
action: string;
|
|
818
|
+
details: string;
|
|
819
|
+
timing: string;
|
|
820
|
+
confidence?: number | undefined;
|
|
821
|
+
severity?: "critical" | "low" | "medium" | "high" | undefined;
|
|
822
|
+
materials?: {
|
|
823
|
+
name: string;
|
|
824
|
+
unit: string;
|
|
825
|
+
quantity: number;
|
|
826
|
+
inventoryItemId?: string | undefined;
|
|
827
|
+
totalCost?: number | undefined;
|
|
828
|
+
costPerUnit?: number | undefined;
|
|
829
|
+
availability?: string | undefined;
|
|
830
|
+
}[] | undefined;
|
|
831
|
+
applicationMethod?: string | undefined;
|
|
832
|
+
expectedOutcome?: string | undefined;
|
|
833
|
+
preventiveMeasures?: string[] | undefined;
|
|
834
|
+
estimatedTime?: string | undefined;
|
|
835
|
+
riskLevel?: string | undefined;
|
|
836
|
+
}, {
|
|
837
|
+
priority: number;
|
|
838
|
+
action: string;
|
|
839
|
+
details: string;
|
|
840
|
+
timing: string;
|
|
841
|
+
confidence?: number | undefined;
|
|
842
|
+
severity?: "critical" | "low" | "medium" | "high" | undefined;
|
|
843
|
+
materials?: {
|
|
844
|
+
name: string;
|
|
845
|
+
unit: string;
|
|
846
|
+
quantity: number;
|
|
847
|
+
inventoryItemId?: string | undefined;
|
|
848
|
+
totalCost?: number | undefined;
|
|
849
|
+
costPerUnit?: number | undefined;
|
|
850
|
+
availability?: string | undefined;
|
|
851
|
+
}[] | undefined;
|
|
852
|
+
applicationMethod?: string | undefined;
|
|
853
|
+
expectedOutcome?: string | undefined;
|
|
854
|
+
preventiveMeasures?: string[] | undefined;
|
|
855
|
+
estimatedTime?: string | undefined;
|
|
856
|
+
riskLevel?: string | undefined;
|
|
857
|
+
}>, "many">>;
|
|
858
|
+
status: z.ZodEnum<["active", "acknowledged", "resolved"]>;
|
|
859
|
+
acknowledgedAt: z.ZodNullable<z.ZodString>;
|
|
860
|
+
acknowledgedBy: z.ZodNullable<z.ZodString>;
|
|
861
|
+
readAt: z.ZodNullable<z.ZodString>;
|
|
862
|
+
readBy: z.ZodNullable<z.ZodString>;
|
|
863
|
+
resolvedAt: z.ZodNullable<z.ZodString>;
|
|
864
|
+
confidence: z.ZodNullable<z.ZodNumber>;
|
|
865
|
+
generatedBy: z.ZodString;
|
|
866
|
+
createdAt: z.ZodString;
|
|
867
|
+
}, "strip", z.ZodTypeAny, {
|
|
868
|
+
type: string;
|
|
869
|
+
status: "active" | "acknowledged" | "resolved";
|
|
870
|
+
message: string;
|
|
871
|
+
id: string;
|
|
872
|
+
title: string;
|
|
873
|
+
createdAt: string;
|
|
874
|
+
fieldId: string;
|
|
875
|
+
recommendations: {
|
|
876
|
+
priority: number;
|
|
877
|
+
action: string;
|
|
878
|
+
details: string;
|
|
879
|
+
timing: string;
|
|
880
|
+
confidence?: number | undefined;
|
|
881
|
+
severity?: "critical" | "low" | "medium" | "high" | undefined;
|
|
882
|
+
materials?: {
|
|
883
|
+
name: string;
|
|
884
|
+
unit: string;
|
|
885
|
+
quantity: number;
|
|
886
|
+
inventoryItemId?: string | undefined;
|
|
887
|
+
totalCost?: number | undefined;
|
|
888
|
+
costPerUnit?: number | undefined;
|
|
889
|
+
availability?: string | undefined;
|
|
890
|
+
}[] | undefined;
|
|
891
|
+
applicationMethod?: string | undefined;
|
|
892
|
+
expectedOutcome?: string | undefined;
|
|
893
|
+
preventiveMeasures?: string[] | undefined;
|
|
894
|
+
estimatedTime?: string | undefined;
|
|
895
|
+
riskLevel?: string | undefined;
|
|
896
|
+
}[] | null;
|
|
897
|
+
confidence: number | null;
|
|
898
|
+
severity: "critical" | "low" | "medium" | "high";
|
|
899
|
+
acknowledgedAt: string | null;
|
|
900
|
+
acknowledgedBy: string | null;
|
|
901
|
+
readAt: string | null;
|
|
902
|
+
readBy: string | null;
|
|
903
|
+
resolvedAt: string | null;
|
|
904
|
+
generatedBy: string;
|
|
905
|
+
fieldName?: string | undefined;
|
|
906
|
+
}, {
|
|
907
|
+
type: string;
|
|
908
|
+
status: "active" | "acknowledged" | "resolved";
|
|
909
|
+
message: string;
|
|
910
|
+
id: string;
|
|
911
|
+
title: string;
|
|
912
|
+
createdAt: string;
|
|
913
|
+
fieldId: string;
|
|
914
|
+
recommendations: {
|
|
915
|
+
priority: number;
|
|
916
|
+
action: string;
|
|
917
|
+
details: string;
|
|
918
|
+
timing: string;
|
|
919
|
+
confidence?: number | undefined;
|
|
920
|
+
severity?: "critical" | "low" | "medium" | "high" | undefined;
|
|
921
|
+
materials?: {
|
|
922
|
+
name: string;
|
|
923
|
+
unit: string;
|
|
924
|
+
quantity: number;
|
|
925
|
+
inventoryItemId?: string | undefined;
|
|
926
|
+
totalCost?: number | undefined;
|
|
927
|
+
costPerUnit?: number | undefined;
|
|
928
|
+
availability?: string | undefined;
|
|
929
|
+
}[] | undefined;
|
|
930
|
+
applicationMethod?: string | undefined;
|
|
931
|
+
expectedOutcome?: string | undefined;
|
|
932
|
+
preventiveMeasures?: string[] | undefined;
|
|
933
|
+
estimatedTime?: string | undefined;
|
|
934
|
+
riskLevel?: string | undefined;
|
|
935
|
+
}[] | null;
|
|
936
|
+
confidence: number | null;
|
|
937
|
+
severity: "critical" | "low" | "medium" | "high";
|
|
938
|
+
acknowledgedAt: string | null;
|
|
939
|
+
acknowledgedBy: string | null;
|
|
940
|
+
readAt: string | null;
|
|
941
|
+
readBy: string | null;
|
|
942
|
+
resolvedAt: string | null;
|
|
943
|
+
generatedBy: string;
|
|
944
|
+
fieldName?: string | undefined;
|
|
945
|
+
}>, "many">;
|
|
946
|
+
}, "strip", z.ZodTypeAny, {
|
|
947
|
+
alerts: {
|
|
948
|
+
type: string;
|
|
949
|
+
status: "active" | "acknowledged" | "resolved";
|
|
950
|
+
message: string;
|
|
951
|
+
id: string;
|
|
952
|
+
title: string;
|
|
953
|
+
createdAt: string;
|
|
954
|
+
fieldId: string;
|
|
955
|
+
recommendations: {
|
|
956
|
+
priority: number;
|
|
957
|
+
action: string;
|
|
958
|
+
details: string;
|
|
959
|
+
timing: string;
|
|
960
|
+
confidence?: number | undefined;
|
|
961
|
+
severity?: "critical" | "low" | "medium" | "high" | undefined;
|
|
962
|
+
materials?: {
|
|
963
|
+
name: string;
|
|
964
|
+
unit: string;
|
|
965
|
+
quantity: number;
|
|
966
|
+
inventoryItemId?: string | undefined;
|
|
967
|
+
totalCost?: number | undefined;
|
|
968
|
+
costPerUnit?: number | undefined;
|
|
969
|
+
availability?: string | undefined;
|
|
970
|
+
}[] | undefined;
|
|
971
|
+
applicationMethod?: string | undefined;
|
|
972
|
+
expectedOutcome?: string | undefined;
|
|
973
|
+
preventiveMeasures?: string[] | undefined;
|
|
974
|
+
estimatedTime?: string | undefined;
|
|
975
|
+
riskLevel?: string | undefined;
|
|
976
|
+
}[] | null;
|
|
977
|
+
confidence: number | null;
|
|
978
|
+
severity: "critical" | "low" | "medium" | "high";
|
|
979
|
+
acknowledgedAt: string | null;
|
|
980
|
+
acknowledgedBy: string | null;
|
|
981
|
+
readAt: string | null;
|
|
982
|
+
readBy: string | null;
|
|
983
|
+
resolvedAt: string | null;
|
|
984
|
+
generatedBy: string;
|
|
985
|
+
fieldName?: string | undefined;
|
|
986
|
+
}[];
|
|
987
|
+
updated: number;
|
|
988
|
+
}, {
|
|
989
|
+
alerts: {
|
|
990
|
+
type: string;
|
|
991
|
+
status: "active" | "acknowledged" | "resolved";
|
|
992
|
+
message: string;
|
|
993
|
+
id: string;
|
|
994
|
+
title: string;
|
|
995
|
+
createdAt: string;
|
|
996
|
+
fieldId: string;
|
|
997
|
+
recommendations: {
|
|
998
|
+
priority: number;
|
|
999
|
+
action: string;
|
|
1000
|
+
details: string;
|
|
1001
|
+
timing: string;
|
|
1002
|
+
confidence?: number | undefined;
|
|
1003
|
+
severity?: "critical" | "low" | "medium" | "high" | undefined;
|
|
1004
|
+
materials?: {
|
|
1005
|
+
name: string;
|
|
1006
|
+
unit: string;
|
|
1007
|
+
quantity: number;
|
|
1008
|
+
inventoryItemId?: string | undefined;
|
|
1009
|
+
totalCost?: number | undefined;
|
|
1010
|
+
costPerUnit?: number | undefined;
|
|
1011
|
+
availability?: string | undefined;
|
|
1012
|
+
}[] | undefined;
|
|
1013
|
+
applicationMethod?: string | undefined;
|
|
1014
|
+
expectedOutcome?: string | undefined;
|
|
1015
|
+
preventiveMeasures?: string[] | undefined;
|
|
1016
|
+
estimatedTime?: string | undefined;
|
|
1017
|
+
riskLevel?: string | undefined;
|
|
1018
|
+
}[] | null;
|
|
1019
|
+
confidence: number | null;
|
|
1020
|
+
severity: "critical" | "low" | "medium" | "high";
|
|
1021
|
+
acknowledgedAt: string | null;
|
|
1022
|
+
acknowledgedBy: string | null;
|
|
1023
|
+
readAt: string | null;
|
|
1024
|
+
readBy: string | null;
|
|
1025
|
+
resolvedAt: string | null;
|
|
1026
|
+
generatedBy: string;
|
|
1027
|
+
fieldName?: string | undefined;
|
|
1028
|
+
}[];
|
|
1029
|
+
updated: number;
|
|
1030
|
+
}>;
|
|
1031
|
+
404: z.ZodObject<{
|
|
1032
|
+
message: z.ZodString;
|
|
1033
|
+
code: z.ZodOptional<z.ZodString>;
|
|
1034
|
+
}, "strip", z.ZodTypeAny, {
|
|
1035
|
+
message: string;
|
|
1036
|
+
code?: string | undefined;
|
|
1037
|
+
}, {
|
|
1038
|
+
message: string;
|
|
1039
|
+
code?: string | undefined;
|
|
1040
|
+
}>;
|
|
1041
|
+
};
|
|
1042
|
+
};
|
|
550
1043
|
acknowledgeAlert: {
|
|
551
1044
|
summary: "Acknowledge an alert";
|
|
552
1045
|
method: "PATCH";
|
|
@@ -603,8 +1096,8 @@ export declare const fieldMonitoringRouter: {
|
|
|
603
1096
|
action: string;
|
|
604
1097
|
details: string;
|
|
605
1098
|
timing: string;
|
|
606
|
-
severity?: "critical" | "low" | "medium" | "high" | undefined;
|
|
607
1099
|
confidence?: number | undefined;
|
|
1100
|
+
severity?: "critical" | "low" | "medium" | "high" | undefined;
|
|
608
1101
|
materials?: {
|
|
609
1102
|
name: string;
|
|
610
1103
|
unit: string;
|
|
@@ -624,8 +1117,8 @@ export declare const fieldMonitoringRouter: {
|
|
|
624
1117
|
action: string;
|
|
625
1118
|
details: string;
|
|
626
1119
|
timing: string;
|
|
627
|
-
severity?: "critical" | "low" | "medium" | "high" | undefined;
|
|
628
1120
|
confidence?: number | undefined;
|
|
1121
|
+
severity?: "critical" | "low" | "medium" | "high" | undefined;
|
|
629
1122
|
materials?: {
|
|
630
1123
|
name: string;
|
|
631
1124
|
unit: string;
|
|
@@ -644,6 +1137,8 @@ export declare const fieldMonitoringRouter: {
|
|
|
644
1137
|
status: z.ZodEnum<["active", "acknowledged", "resolved"]>;
|
|
645
1138
|
acknowledgedAt: z.ZodNullable<z.ZodString>;
|
|
646
1139
|
acknowledgedBy: z.ZodNullable<z.ZodString>;
|
|
1140
|
+
readAt: z.ZodNullable<z.ZodString>;
|
|
1141
|
+
readBy: z.ZodNullable<z.ZodString>;
|
|
647
1142
|
resolvedAt: z.ZodNullable<z.ZodString>;
|
|
648
1143
|
confidence: z.ZodNullable<z.ZodNumber>;
|
|
649
1144
|
generatedBy: z.ZodString;
|
|
@@ -661,8 +1156,8 @@ export declare const fieldMonitoringRouter: {
|
|
|
661
1156
|
action: string;
|
|
662
1157
|
details: string;
|
|
663
1158
|
timing: string;
|
|
664
|
-
severity?: "critical" | "low" | "medium" | "high" | undefined;
|
|
665
1159
|
confidence?: number | undefined;
|
|
1160
|
+
severity?: "critical" | "low" | "medium" | "high" | undefined;
|
|
666
1161
|
materials?: {
|
|
667
1162
|
name: string;
|
|
668
1163
|
unit: string;
|
|
@@ -678,10 +1173,12 @@ export declare const fieldMonitoringRouter: {
|
|
|
678
1173
|
estimatedTime?: string | undefined;
|
|
679
1174
|
riskLevel?: string | undefined;
|
|
680
1175
|
}[] | null;
|
|
681
|
-
severity: "critical" | "low" | "medium" | "high";
|
|
682
1176
|
confidence: number | null;
|
|
1177
|
+
severity: "critical" | "low" | "medium" | "high";
|
|
683
1178
|
acknowledgedAt: string | null;
|
|
684
1179
|
acknowledgedBy: string | null;
|
|
1180
|
+
readAt: string | null;
|
|
1181
|
+
readBy: string | null;
|
|
685
1182
|
resolvedAt: string | null;
|
|
686
1183
|
generatedBy: string;
|
|
687
1184
|
fieldName?: string | undefined;
|
|
@@ -698,8 +1195,8 @@ export declare const fieldMonitoringRouter: {
|
|
|
698
1195
|
action: string;
|
|
699
1196
|
details: string;
|
|
700
1197
|
timing: string;
|
|
701
|
-
severity?: "critical" | "low" | "medium" | "high" | undefined;
|
|
702
1198
|
confidence?: number | undefined;
|
|
1199
|
+
severity?: "critical" | "low" | "medium" | "high" | undefined;
|
|
703
1200
|
materials?: {
|
|
704
1201
|
name: string;
|
|
705
1202
|
unit: string;
|
|
@@ -715,10 +1212,12 @@ export declare const fieldMonitoringRouter: {
|
|
|
715
1212
|
estimatedTime?: string | undefined;
|
|
716
1213
|
riskLevel?: string | undefined;
|
|
717
1214
|
}[] | null;
|
|
718
|
-
severity: "critical" | "low" | "medium" | "high";
|
|
719
1215
|
confidence: number | null;
|
|
1216
|
+
severity: "critical" | "low" | "medium" | "high";
|
|
720
1217
|
acknowledgedAt: string | null;
|
|
721
1218
|
acknowledgedBy: string | null;
|
|
1219
|
+
readAt: string | null;
|
|
1220
|
+
readBy: string | null;
|
|
722
1221
|
resolvedAt: string | null;
|
|
723
1222
|
generatedBy: string;
|
|
724
1223
|
fieldName?: string | undefined;
|
|
@@ -791,8 +1290,8 @@ export declare const fieldMonitoringRouter: {
|
|
|
791
1290
|
action: string;
|
|
792
1291
|
details: string;
|
|
793
1292
|
timing: string;
|
|
794
|
-
severity?: "critical" | "low" | "medium" | "high" | undefined;
|
|
795
1293
|
confidence?: number | undefined;
|
|
1294
|
+
severity?: "critical" | "low" | "medium" | "high" | undefined;
|
|
796
1295
|
materials?: {
|
|
797
1296
|
name: string;
|
|
798
1297
|
unit: string;
|
|
@@ -812,8 +1311,8 @@ export declare const fieldMonitoringRouter: {
|
|
|
812
1311
|
action: string;
|
|
813
1312
|
details: string;
|
|
814
1313
|
timing: string;
|
|
815
|
-
severity?: "critical" | "low" | "medium" | "high" | undefined;
|
|
816
1314
|
confidence?: number | undefined;
|
|
1315
|
+
severity?: "critical" | "low" | "medium" | "high" | undefined;
|
|
817
1316
|
materials?: {
|
|
818
1317
|
name: string;
|
|
819
1318
|
unit: string;
|
|
@@ -832,6 +1331,8 @@ export declare const fieldMonitoringRouter: {
|
|
|
832
1331
|
status: z.ZodEnum<["active", "acknowledged", "resolved"]>;
|
|
833
1332
|
acknowledgedAt: z.ZodNullable<z.ZodString>;
|
|
834
1333
|
acknowledgedBy: z.ZodNullable<z.ZodString>;
|
|
1334
|
+
readAt: z.ZodNullable<z.ZodString>;
|
|
1335
|
+
readBy: z.ZodNullable<z.ZodString>;
|
|
835
1336
|
resolvedAt: z.ZodNullable<z.ZodString>;
|
|
836
1337
|
confidence: z.ZodNullable<z.ZodNumber>;
|
|
837
1338
|
generatedBy: z.ZodString;
|
|
@@ -849,8 +1350,8 @@ export declare const fieldMonitoringRouter: {
|
|
|
849
1350
|
action: string;
|
|
850
1351
|
details: string;
|
|
851
1352
|
timing: string;
|
|
852
|
-
severity?: "critical" | "low" | "medium" | "high" | undefined;
|
|
853
1353
|
confidence?: number | undefined;
|
|
1354
|
+
severity?: "critical" | "low" | "medium" | "high" | undefined;
|
|
854
1355
|
materials?: {
|
|
855
1356
|
name: string;
|
|
856
1357
|
unit: string;
|
|
@@ -866,10 +1367,12 @@ export declare const fieldMonitoringRouter: {
|
|
|
866
1367
|
estimatedTime?: string | undefined;
|
|
867
1368
|
riskLevel?: string | undefined;
|
|
868
1369
|
}[] | null;
|
|
869
|
-
severity: "critical" | "low" | "medium" | "high";
|
|
870
1370
|
confidence: number | null;
|
|
1371
|
+
severity: "critical" | "low" | "medium" | "high";
|
|
871
1372
|
acknowledgedAt: string | null;
|
|
872
1373
|
acknowledgedBy: string | null;
|
|
1374
|
+
readAt: string | null;
|
|
1375
|
+
readBy: string | null;
|
|
873
1376
|
resolvedAt: string | null;
|
|
874
1377
|
generatedBy: string;
|
|
875
1378
|
fieldName?: string | undefined;
|
|
@@ -886,8 +1389,8 @@ export declare const fieldMonitoringRouter: {
|
|
|
886
1389
|
action: string;
|
|
887
1390
|
details: string;
|
|
888
1391
|
timing: string;
|
|
889
|
-
severity?: "critical" | "low" | "medium" | "high" | undefined;
|
|
890
1392
|
confidence?: number | undefined;
|
|
1393
|
+
severity?: "critical" | "low" | "medium" | "high" | undefined;
|
|
891
1394
|
materials?: {
|
|
892
1395
|
name: string;
|
|
893
1396
|
unit: string;
|
|
@@ -903,10 +1406,12 @@ export declare const fieldMonitoringRouter: {
|
|
|
903
1406
|
estimatedTime?: string | undefined;
|
|
904
1407
|
riskLevel?: string | undefined;
|
|
905
1408
|
}[] | null;
|
|
906
|
-
severity: "critical" | "low" | "medium" | "high";
|
|
907
1409
|
confidence: number | null;
|
|
1410
|
+
severity: "critical" | "low" | "medium" | "high";
|
|
908
1411
|
acknowledgedAt: string | null;
|
|
909
1412
|
acknowledgedBy: string | null;
|
|
1413
|
+
readAt: string | null;
|
|
1414
|
+
readBy: string | null;
|
|
910
1415
|
resolvedAt: string | null;
|
|
911
1416
|
generatedBy: string;
|
|
912
1417
|
fieldName?: string | undefined;
|
|
@@ -1591,15 +2096,15 @@ export declare const fieldMonitoringRouter: {
|
|
|
1591
2096
|
}, "strip", z.ZodTypeAny, {
|
|
1592
2097
|
date: string;
|
|
1593
2098
|
source: "manual" | "regional_api" | "global_api" | "predicted";
|
|
1594
|
-
priority: number;
|
|
1595
2099
|
confidence: number;
|
|
2100
|
+
priority: number;
|
|
1596
2101
|
notes?: string | undefined;
|
|
1597
2102
|
sourceId?: string | undefined;
|
|
1598
2103
|
}, {
|
|
1599
2104
|
date: string;
|
|
1600
2105
|
source: "manual" | "regional_api" | "global_api" | "predicted";
|
|
1601
|
-
priority: number;
|
|
1602
2106
|
confidence: number;
|
|
2107
|
+
priority: number;
|
|
1603
2108
|
notes?: string | undefined;
|
|
1604
2109
|
sourceId?: string | undefined;
|
|
1605
2110
|
}>>;
|
|
@@ -1676,11 +2181,11 @@ export declare const fieldMonitoringRouter: {
|
|
|
1676
2181
|
}, "strip", z.ZodTypeAny, {
|
|
1677
2182
|
score: number;
|
|
1678
2183
|
missingFields: string[];
|
|
1679
|
-
completeness: "
|
|
2184
|
+
completeness: "partial" | "complete" | "mostly_complete" | "incomplete";
|
|
1680
2185
|
}, {
|
|
1681
2186
|
score: number;
|
|
1682
2187
|
missingFields: string[];
|
|
1683
|
-
completeness: "
|
|
2188
|
+
completeness: "partial" | "complete" | "mostly_complete" | "incomplete";
|
|
1684
2189
|
}>;
|
|
1685
2190
|
}, "strip", z.ZodTypeAny, {
|
|
1686
2191
|
pH: {
|
|
@@ -1704,7 +2209,7 @@ export declare const fieldMonitoringRouter: {
|
|
|
1704
2209
|
completeness: {
|
|
1705
2210
|
score: number;
|
|
1706
2211
|
missingFields: string[];
|
|
1707
|
-
completeness: "
|
|
2212
|
+
completeness: "partial" | "complete" | "mostly_complete" | "incomplete";
|
|
1708
2213
|
};
|
|
1709
2214
|
}, {
|
|
1710
2215
|
pH: {
|
|
@@ -1728,12 +2233,12 @@ export declare const fieldMonitoringRouter: {
|
|
|
1728
2233
|
completeness: {
|
|
1729
2234
|
score: number;
|
|
1730
2235
|
missingFields: string[];
|
|
1731
|
-
completeness: "
|
|
2236
|
+
completeness: "partial" | "complete" | "mostly_complete" | "incomplete";
|
|
1732
2237
|
};
|
|
1733
2238
|
}>;
|
|
1734
2239
|
}, "strip", z.ZodTypeAny, {
|
|
1735
|
-
overall: "critical" | "poor" | "fair" | "good" | "excellent";
|
|
1736
2240
|
score: number;
|
|
2241
|
+
overall: "critical" | "poor" | "fair" | "good" | "excellent";
|
|
1737
2242
|
assessments: {
|
|
1738
2243
|
pH: {
|
|
1739
2244
|
recommendation: string;
|
|
@@ -1756,12 +2261,12 @@ export declare const fieldMonitoringRouter: {
|
|
|
1756
2261
|
completeness: {
|
|
1757
2262
|
score: number;
|
|
1758
2263
|
missingFields: string[];
|
|
1759
|
-
completeness: "
|
|
2264
|
+
completeness: "partial" | "complete" | "mostly_complete" | "incomplete";
|
|
1760
2265
|
};
|
|
1761
2266
|
};
|
|
1762
2267
|
}, {
|
|
1763
|
-
overall: "critical" | "poor" | "fair" | "good" | "excellent";
|
|
1764
2268
|
score: number;
|
|
2269
|
+
overall: "critical" | "poor" | "fair" | "good" | "excellent";
|
|
1765
2270
|
assessments: {
|
|
1766
2271
|
pH: {
|
|
1767
2272
|
recommendation: string;
|
|
@@ -1784,7 +2289,7 @@ export declare const fieldMonitoringRouter: {
|
|
|
1784
2289
|
completeness: {
|
|
1785
2290
|
score: number;
|
|
1786
2291
|
missingFields: string[];
|
|
1787
|
-
completeness: "
|
|
2292
|
+
completeness: "partial" | "complete" | "mostly_complete" | "incomplete";
|
|
1788
2293
|
};
|
|
1789
2294
|
};
|
|
1790
2295
|
}>;
|
|
@@ -1984,15 +2489,15 @@ export declare const fieldMonitoringRouter: {
|
|
|
1984
2489
|
action: string;
|
|
1985
2490
|
details: string;
|
|
1986
2491
|
timing: string;
|
|
1987
|
-
severity?: "critical" | "low" | "medium" | "high" | undefined;
|
|
1988
2492
|
confidence?: number | undefined;
|
|
2493
|
+
severity?: "critical" | "low" | "medium" | "high" | undefined;
|
|
1989
2494
|
}, {
|
|
1990
2495
|
priority: number;
|
|
1991
2496
|
action: string;
|
|
1992
2497
|
details: string;
|
|
1993
2498
|
timing: string;
|
|
1994
|
-
severity?: "critical" | "low" | "medium" | "high" | undefined;
|
|
1995
2499
|
confidence?: number | undefined;
|
|
2500
|
+
severity?: "critical" | "low" | "medium" | "high" | undefined;
|
|
1996
2501
|
}>, "many">;
|
|
1997
2502
|
seasonal: z.ZodArray<z.ZodObject<{
|
|
1998
2503
|
priority: z.ZodNumber;
|
|
@@ -2027,8 +2532,8 @@ export declare const fieldMonitoringRouter: {
|
|
|
2027
2532
|
quantity: number;
|
|
2028
2533
|
reason: string;
|
|
2029
2534
|
inventoryItemId?: string | undefined;
|
|
2030
|
-
estimatedCost?: number | undefined;
|
|
2031
2535
|
confidence?: number | undefined;
|
|
2536
|
+
estimatedCost?: number | undefined;
|
|
2032
2537
|
productName?: string | undefined;
|
|
2033
2538
|
applicationTiming?: string | undefined;
|
|
2034
2539
|
}, {
|
|
@@ -2036,8 +2541,8 @@ export declare const fieldMonitoringRouter: {
|
|
|
2036
2541
|
quantity: number;
|
|
2037
2542
|
reason: string;
|
|
2038
2543
|
inventoryItemId?: string | undefined;
|
|
2039
|
-
estimatedCost?: number | undefined;
|
|
2040
2544
|
confidence?: number | undefined;
|
|
2545
|
+
estimatedCost?: number | undefined;
|
|
2041
2546
|
productName?: string | undefined;
|
|
2042
2547
|
applicationTiming?: string | undefined;
|
|
2043
2548
|
}>, "many">;
|
|
@@ -2070,8 +2575,8 @@ export declare const fieldMonitoringRouter: {
|
|
|
2070
2575
|
quantity: number;
|
|
2071
2576
|
reason: string;
|
|
2072
2577
|
inventoryItemId?: string | undefined;
|
|
2073
|
-
estimatedCost?: number | undefined;
|
|
2074
2578
|
confidence?: number | undefined;
|
|
2579
|
+
estimatedCost?: number | undefined;
|
|
2075
2580
|
productName?: string | undefined;
|
|
2076
2581
|
applicationTiming?: string | undefined;
|
|
2077
2582
|
}[];
|
|
@@ -2080,8 +2585,8 @@ export declare const fieldMonitoringRouter: {
|
|
|
2080
2585
|
action: string;
|
|
2081
2586
|
details: string;
|
|
2082
2587
|
timing: string;
|
|
2083
|
-
severity?: "critical" | "low" | "medium" | "high" | undefined;
|
|
2084
2588
|
confidence?: number | undefined;
|
|
2589
|
+
severity?: "critical" | "low" | "medium" | "high" | undefined;
|
|
2085
2590
|
}[];
|
|
2086
2591
|
seasonal: {
|
|
2087
2592
|
priority: number;
|
|
@@ -2105,8 +2610,8 @@ export declare const fieldMonitoringRouter: {
|
|
|
2105
2610
|
quantity: number;
|
|
2106
2611
|
reason: string;
|
|
2107
2612
|
inventoryItemId?: string | undefined;
|
|
2108
|
-
estimatedCost?: number | undefined;
|
|
2109
2613
|
confidence?: number | undefined;
|
|
2614
|
+
estimatedCost?: number | undefined;
|
|
2110
2615
|
productName?: string | undefined;
|
|
2111
2616
|
applicationTiming?: string | undefined;
|
|
2112
2617
|
}[];
|
|
@@ -2115,8 +2620,8 @@ export declare const fieldMonitoringRouter: {
|
|
|
2115
2620
|
action: string;
|
|
2116
2621
|
details: string;
|
|
2117
2622
|
timing: string;
|
|
2118
|
-
severity?: "critical" | "low" | "medium" | "high" | undefined;
|
|
2119
2623
|
confidence?: number | undefined;
|
|
2624
|
+
severity?: "critical" | "low" | "medium" | "high" | undefined;
|
|
2120
2625
|
}[];
|
|
2121
2626
|
seasonal: {
|
|
2122
2627
|
priority: number;
|
|
@@ -2170,8 +2675,8 @@ export declare const fieldMonitoringRouter: {
|
|
|
2170
2675
|
quantity: number;
|
|
2171
2676
|
reason: string;
|
|
2172
2677
|
inventoryItemId?: string | undefined;
|
|
2173
|
-
estimatedCost?: number | undefined;
|
|
2174
2678
|
confidence?: number | undefined;
|
|
2679
|
+
estimatedCost?: number | undefined;
|
|
2175
2680
|
productName?: string | undefined;
|
|
2176
2681
|
applicationTiming?: string | undefined;
|
|
2177
2682
|
}[];
|
|
@@ -2180,8 +2685,8 @@ export declare const fieldMonitoringRouter: {
|
|
|
2180
2685
|
action: string;
|
|
2181
2686
|
details: string;
|
|
2182
2687
|
timing: string;
|
|
2183
|
-
severity?: "critical" | "low" | "medium" | "high" | undefined;
|
|
2184
2688
|
confidence?: number | undefined;
|
|
2689
|
+
severity?: "critical" | "low" | "medium" | "high" | undefined;
|
|
2185
2690
|
}[];
|
|
2186
2691
|
seasonal: {
|
|
2187
2692
|
priority: number;
|
|
@@ -2210,8 +2715,8 @@ export declare const fieldMonitoringRouter: {
|
|
|
2210
2715
|
bulkDensity: number;
|
|
2211
2716
|
};
|
|
2212
2717
|
quality: {
|
|
2213
|
-
overall: "critical" | "poor" | "fair" | "good" | "excellent";
|
|
2214
2718
|
score: number;
|
|
2719
|
+
overall: "critical" | "poor" | "fair" | "good" | "excellent";
|
|
2215
2720
|
assessments: {
|
|
2216
2721
|
pH: {
|
|
2217
2722
|
recommendation: string;
|
|
@@ -2234,7 +2739,7 @@ export declare const fieldMonitoringRouter: {
|
|
|
2234
2739
|
completeness: {
|
|
2235
2740
|
score: number;
|
|
2236
2741
|
missingFields: string[];
|
|
2237
|
-
completeness: "
|
|
2742
|
+
completeness: "partial" | "complete" | "mostly_complete" | "incomplete";
|
|
2238
2743
|
};
|
|
2239
2744
|
};
|
|
2240
2745
|
};
|
|
@@ -2299,8 +2804,8 @@ export declare const fieldMonitoringRouter: {
|
|
|
2299
2804
|
dataSources: Record<string, {
|
|
2300
2805
|
date: string;
|
|
2301
2806
|
source: "manual" | "regional_api" | "global_api" | "predicted";
|
|
2302
|
-
priority: number;
|
|
2303
2807
|
confidence: number;
|
|
2808
|
+
priority: number;
|
|
2304
2809
|
notes?: string | undefined;
|
|
2305
2810
|
sourceId?: string | undefined;
|
|
2306
2811
|
}>;
|
|
@@ -2356,8 +2861,8 @@ export declare const fieldMonitoringRouter: {
|
|
|
2356
2861
|
quantity: number;
|
|
2357
2862
|
reason: string;
|
|
2358
2863
|
inventoryItemId?: string | undefined;
|
|
2359
|
-
estimatedCost?: number | undefined;
|
|
2360
2864
|
confidence?: number | undefined;
|
|
2865
|
+
estimatedCost?: number | undefined;
|
|
2361
2866
|
productName?: string | undefined;
|
|
2362
2867
|
applicationTiming?: string | undefined;
|
|
2363
2868
|
}[];
|
|
@@ -2366,8 +2871,8 @@ export declare const fieldMonitoringRouter: {
|
|
|
2366
2871
|
action: string;
|
|
2367
2872
|
details: string;
|
|
2368
2873
|
timing: string;
|
|
2369
|
-
severity?: "critical" | "low" | "medium" | "high" | undefined;
|
|
2370
2874
|
confidence?: number | undefined;
|
|
2875
|
+
severity?: "critical" | "low" | "medium" | "high" | undefined;
|
|
2371
2876
|
}[];
|
|
2372
2877
|
seasonal: {
|
|
2373
2878
|
priority: number;
|
|
@@ -2396,8 +2901,8 @@ export declare const fieldMonitoringRouter: {
|
|
|
2396
2901
|
bulkDensity: number;
|
|
2397
2902
|
};
|
|
2398
2903
|
quality: {
|
|
2399
|
-
overall: "critical" | "poor" | "fair" | "good" | "excellent";
|
|
2400
2904
|
score: number;
|
|
2905
|
+
overall: "critical" | "poor" | "fair" | "good" | "excellent";
|
|
2401
2906
|
assessments: {
|
|
2402
2907
|
pH: {
|
|
2403
2908
|
recommendation: string;
|
|
@@ -2420,7 +2925,7 @@ export declare const fieldMonitoringRouter: {
|
|
|
2420
2925
|
completeness: {
|
|
2421
2926
|
score: number;
|
|
2422
2927
|
missingFields: string[];
|
|
2423
|
-
completeness: "
|
|
2928
|
+
completeness: "partial" | "complete" | "mostly_complete" | "incomplete";
|
|
2424
2929
|
};
|
|
2425
2930
|
};
|
|
2426
2931
|
};
|
|
@@ -2485,8 +2990,8 @@ export declare const fieldMonitoringRouter: {
|
|
|
2485
2990
|
dataSources: Record<string, {
|
|
2486
2991
|
date: string;
|
|
2487
2992
|
source: "manual" | "regional_api" | "global_api" | "predicted";
|
|
2488
|
-
priority: number;
|
|
2489
2993
|
confidence: number;
|
|
2994
|
+
priority: number;
|
|
2490
2995
|
notes?: string | undefined;
|
|
2491
2996
|
sourceId?: string | undefined;
|
|
2492
2997
|
}>;
|