@deepintel-ltd/farmpro-contracts 1.27.4 → 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.
- package/dist/routes/finance.routes.d.ts +4 -0
- package/dist/routes/finance.routes.d.ts.map +1 -1
- package/dist/routes/finance.routes.js +3 -1
- package/dist/routes/session.routes.d.ts +694 -15
- package/dist/routes/session.routes.d.ts.map +1 -1
- package/dist/schemas/session.schemas.d.ts +694 -15
- package/dist/schemas/session.schemas.d.ts.map +1 -1
- package/dist/schemas/session.schemas.js +10 -3
- package/package.json +1 -1
|
@@ -594,15 +594,95 @@ export declare const fieldOverviewResponseSchema: z.ZodObject<{
|
|
|
594
594
|
export declare const fieldMonitoringBundleResponseSchema: z.ZodObject<{
|
|
595
595
|
status: z.ZodObject<{
|
|
596
596
|
ok: z.ZodBoolean;
|
|
597
|
-
data: z.ZodOptional<z.
|
|
597
|
+
data: z.ZodOptional<z.ZodObject<{
|
|
598
|
+
id: z.ZodString;
|
|
599
|
+
fieldId: z.ZodString;
|
|
600
|
+
fieldName: z.ZodString;
|
|
601
|
+
latestDate: z.ZodString;
|
|
602
|
+
currentNDVI: z.ZodNullable<z.ZodNumber>;
|
|
603
|
+
currentNDWI: z.ZodNullable<z.ZodNumber>;
|
|
604
|
+
currentEVI: z.ZodNullable<z.ZodNumber>;
|
|
605
|
+
currentCropHealth: z.ZodNullable<z.ZodEnum<["poor", "fair", "good", "excellent"]>>;
|
|
606
|
+
currentWaterStress: z.ZodNullable<z.ZodEnum<["none", "low", "medium", "high"]>>;
|
|
607
|
+
overallStatus: z.ZodEnum<["ok", "warning", "critical"]>;
|
|
608
|
+
activeAlertCount: z.ZodNumber;
|
|
609
|
+
lastAlertDate: z.ZodNullable<z.ZodString>;
|
|
610
|
+
dataQuality: z.ZodNullable<z.ZodEnum<["excellent", "good", "fair", "poor"]>>;
|
|
611
|
+
cloudCover: z.ZodNullable<z.ZodNumber>;
|
|
612
|
+
lastProcessedAt: z.ZodString;
|
|
613
|
+
}, "strip", z.ZodTypeAny, {
|
|
614
|
+
id: string;
|
|
615
|
+
fieldId: string;
|
|
616
|
+
fieldName: string;
|
|
617
|
+
latestDate: string;
|
|
618
|
+
currentNDVI: number | null;
|
|
619
|
+
currentNDWI: number | null;
|
|
620
|
+
currentEVI: number | null;
|
|
621
|
+
currentCropHealth: "poor" | "fair" | "good" | "excellent" | null;
|
|
622
|
+
currentWaterStress: "low" | "medium" | "high" | "none" | null;
|
|
623
|
+
overallStatus: "ok" | "critical" | "warning";
|
|
624
|
+
activeAlertCount: number;
|
|
625
|
+
lastAlertDate: string | null;
|
|
626
|
+
dataQuality: "poor" | "fair" | "good" | "excellent" | null;
|
|
627
|
+
cloudCover: number | null;
|
|
628
|
+
lastProcessedAt: string;
|
|
629
|
+
}, {
|
|
630
|
+
id: string;
|
|
631
|
+
fieldId: string;
|
|
632
|
+
fieldName: string;
|
|
633
|
+
latestDate: string;
|
|
634
|
+
currentNDVI: number | null;
|
|
635
|
+
currentNDWI: number | null;
|
|
636
|
+
currentEVI: number | null;
|
|
637
|
+
currentCropHealth: "poor" | "fair" | "good" | "excellent" | null;
|
|
638
|
+
currentWaterStress: "low" | "medium" | "high" | "none" | null;
|
|
639
|
+
overallStatus: "ok" | "critical" | "warning";
|
|
640
|
+
activeAlertCount: number;
|
|
641
|
+
lastAlertDate: string | null;
|
|
642
|
+
dataQuality: "poor" | "fair" | "good" | "excellent" | null;
|
|
643
|
+
cloudCover: number | null;
|
|
644
|
+
lastProcessedAt: string;
|
|
645
|
+
}>>;
|
|
598
646
|
error: z.ZodOptional<z.ZodString>;
|
|
599
647
|
}, "strip", z.ZodTypeAny, {
|
|
600
648
|
ok: boolean;
|
|
601
|
-
data?:
|
|
649
|
+
data?: {
|
|
650
|
+
id: string;
|
|
651
|
+
fieldId: string;
|
|
652
|
+
fieldName: string;
|
|
653
|
+
latestDate: string;
|
|
654
|
+
currentNDVI: number | null;
|
|
655
|
+
currentNDWI: number | null;
|
|
656
|
+
currentEVI: number | null;
|
|
657
|
+
currentCropHealth: "poor" | "fair" | "good" | "excellent" | null;
|
|
658
|
+
currentWaterStress: "low" | "medium" | "high" | "none" | null;
|
|
659
|
+
overallStatus: "ok" | "critical" | "warning";
|
|
660
|
+
activeAlertCount: number;
|
|
661
|
+
lastAlertDate: string | null;
|
|
662
|
+
dataQuality: "poor" | "fair" | "good" | "excellent" | null;
|
|
663
|
+
cloudCover: number | null;
|
|
664
|
+
lastProcessedAt: string;
|
|
665
|
+
} | undefined;
|
|
602
666
|
error?: string | undefined;
|
|
603
667
|
}, {
|
|
604
668
|
ok: boolean;
|
|
605
|
-
data?:
|
|
669
|
+
data?: {
|
|
670
|
+
id: string;
|
|
671
|
+
fieldId: string;
|
|
672
|
+
fieldName: string;
|
|
673
|
+
latestDate: string;
|
|
674
|
+
currentNDVI: number | null;
|
|
675
|
+
currentNDWI: number | null;
|
|
676
|
+
currentEVI: number | null;
|
|
677
|
+
currentCropHealth: "poor" | "fair" | "good" | "excellent" | null;
|
|
678
|
+
currentWaterStress: "low" | "medium" | "high" | "none" | null;
|
|
679
|
+
overallStatus: "ok" | "critical" | "warning";
|
|
680
|
+
activeAlertCount: number;
|
|
681
|
+
lastAlertDate: string | null;
|
|
682
|
+
dataQuality: "poor" | "fair" | "good" | "excellent" | null;
|
|
683
|
+
cloudCover: number | null;
|
|
684
|
+
lastProcessedAt: string;
|
|
685
|
+
} | undefined;
|
|
606
686
|
error?: string | undefined;
|
|
607
687
|
}>;
|
|
608
688
|
availableDates: z.ZodObject<{
|
|
@@ -620,44 +700,570 @@ export declare const fieldMonitoringBundleResponseSchema: z.ZodObject<{
|
|
|
620
700
|
}>;
|
|
621
701
|
soil: z.ZodObject<{
|
|
622
702
|
ok: z.ZodBoolean;
|
|
623
|
-
data: z.ZodOptional<z.
|
|
703
|
+
data: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
704
|
+
readingDate: z.ZodString;
|
|
705
|
+
soilMoisture: z.ZodNullable<z.ZodNumber>;
|
|
706
|
+
surfaceTemp: z.ZodNullable<z.ZodNumber>;
|
|
707
|
+
temp10cm: z.ZodNullable<z.ZodNumber>;
|
|
708
|
+
}, "strip", z.ZodTypeAny, {
|
|
709
|
+
readingDate: string;
|
|
710
|
+
soilMoisture: number | null;
|
|
711
|
+
surfaceTemp: number | null;
|
|
712
|
+
temp10cm: number | null;
|
|
713
|
+
}, {
|
|
714
|
+
readingDate: string;
|
|
715
|
+
soilMoisture: number | null;
|
|
716
|
+
surfaceTemp: number | null;
|
|
717
|
+
temp10cm: number | null;
|
|
718
|
+
}>>>;
|
|
624
719
|
error: z.ZodOptional<z.ZodString>;
|
|
625
720
|
}, "strip", z.ZodTypeAny, {
|
|
626
721
|
ok: boolean;
|
|
627
|
-
data?:
|
|
722
|
+
data?: {
|
|
723
|
+
readingDate: string;
|
|
724
|
+
soilMoisture: number | null;
|
|
725
|
+
surfaceTemp: number | null;
|
|
726
|
+
temp10cm: number | null;
|
|
727
|
+
} | null | undefined;
|
|
628
728
|
error?: string | undefined;
|
|
629
729
|
}, {
|
|
630
730
|
ok: boolean;
|
|
631
|
-
data?:
|
|
731
|
+
data?: {
|
|
732
|
+
readingDate: string;
|
|
733
|
+
soilMoisture: number | null;
|
|
734
|
+
surfaceTemp: number | null;
|
|
735
|
+
temp10cm: number | null;
|
|
736
|
+
} | null | undefined;
|
|
632
737
|
error?: string | undefined;
|
|
633
738
|
}>;
|
|
634
739
|
alerts: z.ZodObject<{
|
|
635
740
|
ok: z.ZodBoolean;
|
|
636
|
-
data: z.ZodOptional<z.
|
|
741
|
+
data: z.ZodOptional<z.ZodObject<{
|
|
742
|
+
data: z.ZodArray<z.ZodObject<{
|
|
743
|
+
id: z.ZodString;
|
|
744
|
+
fieldId: z.ZodString;
|
|
745
|
+
fieldName: z.ZodOptional<z.ZodString>;
|
|
746
|
+
type: z.ZodString;
|
|
747
|
+
severity: z.ZodEnum<["low", "medium", "high", "critical"]>;
|
|
748
|
+
title: z.ZodString;
|
|
749
|
+
message: z.ZodString;
|
|
750
|
+
recommendations: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
751
|
+
priority: z.ZodNumber;
|
|
752
|
+
action: z.ZodString;
|
|
753
|
+
details: z.ZodString;
|
|
754
|
+
timing: z.ZodString;
|
|
755
|
+
severity: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "critical"]>>;
|
|
756
|
+
confidence: z.ZodOptional<z.ZodNumber>;
|
|
757
|
+
materials: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
758
|
+
inventoryItemId: z.ZodOptional<z.ZodString>;
|
|
759
|
+
name: z.ZodString;
|
|
760
|
+
quantity: z.ZodNumber;
|
|
761
|
+
unit: z.ZodString;
|
|
762
|
+
costPerUnit: z.ZodOptional<z.ZodNumber>;
|
|
763
|
+
totalCost: z.ZodOptional<z.ZodNumber>;
|
|
764
|
+
availability: z.ZodOptional<z.ZodString>;
|
|
765
|
+
inStock: z.ZodOptional<z.ZodBoolean>;
|
|
766
|
+
stockQuantity: z.ZodOptional<z.ZodNumber>;
|
|
767
|
+
applicationMethod: z.ZodOptional<z.ZodString>;
|
|
768
|
+
}, "strip", z.ZodTypeAny, {
|
|
769
|
+
name: string;
|
|
770
|
+
quantity: number;
|
|
771
|
+
unit: string;
|
|
772
|
+
inventoryItemId?: string | undefined;
|
|
773
|
+
totalCost?: number | undefined;
|
|
774
|
+
costPerUnit?: number | undefined;
|
|
775
|
+
availability?: string | undefined;
|
|
776
|
+
inStock?: boolean | undefined;
|
|
777
|
+
stockQuantity?: number | undefined;
|
|
778
|
+
applicationMethod?: string | undefined;
|
|
779
|
+
}, {
|
|
780
|
+
name: string;
|
|
781
|
+
quantity: number;
|
|
782
|
+
unit: string;
|
|
783
|
+
inventoryItemId?: string | undefined;
|
|
784
|
+
totalCost?: number | undefined;
|
|
785
|
+
costPerUnit?: number | undefined;
|
|
786
|
+
availability?: string | undefined;
|
|
787
|
+
inStock?: boolean | undefined;
|
|
788
|
+
stockQuantity?: number | undefined;
|
|
789
|
+
applicationMethod?: string | undefined;
|
|
790
|
+
}>, "many">>;
|
|
791
|
+
applicationMethod: z.ZodOptional<z.ZodString>;
|
|
792
|
+
expectedOutcome: z.ZodOptional<z.ZodString>;
|
|
793
|
+
preventiveMeasures: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
794
|
+
estimatedTime: z.ZodOptional<z.ZodString>;
|
|
795
|
+
riskLevel: z.ZodOptional<z.ZodString>;
|
|
796
|
+
}, "strip", z.ZodTypeAny, {
|
|
797
|
+
priority: number;
|
|
798
|
+
action: string;
|
|
799
|
+
details: string;
|
|
800
|
+
timing: string;
|
|
801
|
+
confidence?: number | undefined;
|
|
802
|
+
applicationMethod?: string | undefined;
|
|
803
|
+
severity?: "critical" | "low" | "medium" | "high" | undefined;
|
|
804
|
+
materials?: {
|
|
805
|
+
name: string;
|
|
806
|
+
quantity: number;
|
|
807
|
+
unit: string;
|
|
808
|
+
inventoryItemId?: string | undefined;
|
|
809
|
+
totalCost?: number | undefined;
|
|
810
|
+
costPerUnit?: number | undefined;
|
|
811
|
+
availability?: string | undefined;
|
|
812
|
+
inStock?: boolean | undefined;
|
|
813
|
+
stockQuantity?: number | undefined;
|
|
814
|
+
applicationMethod?: string | undefined;
|
|
815
|
+
}[] | undefined;
|
|
816
|
+
expectedOutcome?: string | undefined;
|
|
817
|
+
preventiveMeasures?: string[] | undefined;
|
|
818
|
+
estimatedTime?: string | undefined;
|
|
819
|
+
riskLevel?: string | undefined;
|
|
820
|
+
}, {
|
|
821
|
+
priority: number;
|
|
822
|
+
action: string;
|
|
823
|
+
details: string;
|
|
824
|
+
timing: string;
|
|
825
|
+
confidence?: number | undefined;
|
|
826
|
+
applicationMethod?: string | undefined;
|
|
827
|
+
severity?: "critical" | "low" | "medium" | "high" | undefined;
|
|
828
|
+
materials?: {
|
|
829
|
+
name: string;
|
|
830
|
+
quantity: number;
|
|
831
|
+
unit: string;
|
|
832
|
+
inventoryItemId?: string | undefined;
|
|
833
|
+
totalCost?: number | undefined;
|
|
834
|
+
costPerUnit?: number | undefined;
|
|
835
|
+
availability?: string | undefined;
|
|
836
|
+
inStock?: boolean | undefined;
|
|
837
|
+
stockQuantity?: number | undefined;
|
|
838
|
+
applicationMethod?: string | undefined;
|
|
839
|
+
}[] | undefined;
|
|
840
|
+
expectedOutcome?: string | undefined;
|
|
841
|
+
preventiveMeasures?: string[] | undefined;
|
|
842
|
+
estimatedTime?: string | undefined;
|
|
843
|
+
riskLevel?: string | undefined;
|
|
844
|
+
}>, "many">>;
|
|
845
|
+
actionRequired: z.ZodOptional<z.ZodBoolean>;
|
|
846
|
+
suggestedAction: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
847
|
+
status: z.ZodEnum<["active", "acknowledged", "resolved"]>;
|
|
848
|
+
acknowledgedAt: z.ZodNullable<z.ZodString>;
|
|
849
|
+
acknowledgedBy: z.ZodNullable<z.ZodString>;
|
|
850
|
+
readAt: z.ZodNullable<z.ZodString>;
|
|
851
|
+
readBy: z.ZodNullable<z.ZodString>;
|
|
852
|
+
resolvedAt: z.ZodNullable<z.ZodString>;
|
|
853
|
+
confidence: z.ZodNullable<z.ZodNumber>;
|
|
854
|
+
generatedBy: z.ZodString;
|
|
855
|
+
createdAt: z.ZodString;
|
|
856
|
+
}, "strip", z.ZodTypeAny, {
|
|
857
|
+
type: string;
|
|
858
|
+
status: "active" | "acknowledged" | "resolved";
|
|
859
|
+
message: string;
|
|
860
|
+
id: string;
|
|
861
|
+
title: string;
|
|
862
|
+
createdAt: string;
|
|
863
|
+
recommendations: {
|
|
864
|
+
priority: number;
|
|
865
|
+
action: string;
|
|
866
|
+
details: string;
|
|
867
|
+
timing: string;
|
|
868
|
+
confidence?: number | undefined;
|
|
869
|
+
applicationMethod?: string | undefined;
|
|
870
|
+
severity?: "critical" | "low" | "medium" | "high" | undefined;
|
|
871
|
+
materials?: {
|
|
872
|
+
name: string;
|
|
873
|
+
quantity: number;
|
|
874
|
+
unit: string;
|
|
875
|
+
inventoryItemId?: string | undefined;
|
|
876
|
+
totalCost?: number | undefined;
|
|
877
|
+
costPerUnit?: number | undefined;
|
|
878
|
+
availability?: string | undefined;
|
|
879
|
+
inStock?: boolean | undefined;
|
|
880
|
+
stockQuantity?: number | undefined;
|
|
881
|
+
applicationMethod?: string | undefined;
|
|
882
|
+
}[] | undefined;
|
|
883
|
+
expectedOutcome?: string | undefined;
|
|
884
|
+
preventiveMeasures?: string[] | undefined;
|
|
885
|
+
estimatedTime?: string | undefined;
|
|
886
|
+
riskLevel?: string | undefined;
|
|
887
|
+
}[] | null;
|
|
888
|
+
fieldId: string;
|
|
889
|
+
confidence: number | null;
|
|
890
|
+
severity: "critical" | "low" | "medium" | "high";
|
|
891
|
+
acknowledgedAt: string | null;
|
|
892
|
+
acknowledgedBy: string | null;
|
|
893
|
+
readAt: string | null;
|
|
894
|
+
readBy: string | null;
|
|
895
|
+
resolvedAt: string | null;
|
|
896
|
+
generatedBy: string;
|
|
897
|
+
fieldName?: string | undefined;
|
|
898
|
+
actionRequired?: boolean | undefined;
|
|
899
|
+
suggestedAction?: string | null | undefined;
|
|
900
|
+
}, {
|
|
901
|
+
type: string;
|
|
902
|
+
status: "active" | "acknowledged" | "resolved";
|
|
903
|
+
message: string;
|
|
904
|
+
id: string;
|
|
905
|
+
title: string;
|
|
906
|
+
createdAt: string;
|
|
907
|
+
recommendations: {
|
|
908
|
+
priority: number;
|
|
909
|
+
action: string;
|
|
910
|
+
details: string;
|
|
911
|
+
timing: string;
|
|
912
|
+
confidence?: number | undefined;
|
|
913
|
+
applicationMethod?: string | undefined;
|
|
914
|
+
severity?: "critical" | "low" | "medium" | "high" | undefined;
|
|
915
|
+
materials?: {
|
|
916
|
+
name: string;
|
|
917
|
+
quantity: number;
|
|
918
|
+
unit: string;
|
|
919
|
+
inventoryItemId?: string | undefined;
|
|
920
|
+
totalCost?: number | undefined;
|
|
921
|
+
costPerUnit?: number | undefined;
|
|
922
|
+
availability?: string | undefined;
|
|
923
|
+
inStock?: boolean | undefined;
|
|
924
|
+
stockQuantity?: number | undefined;
|
|
925
|
+
applicationMethod?: string | undefined;
|
|
926
|
+
}[] | undefined;
|
|
927
|
+
expectedOutcome?: string | undefined;
|
|
928
|
+
preventiveMeasures?: string[] | undefined;
|
|
929
|
+
estimatedTime?: string | undefined;
|
|
930
|
+
riskLevel?: string | undefined;
|
|
931
|
+
}[] | null;
|
|
932
|
+
fieldId: string;
|
|
933
|
+
confidence: number | null;
|
|
934
|
+
severity: "critical" | "low" | "medium" | "high";
|
|
935
|
+
acknowledgedAt: string | null;
|
|
936
|
+
acknowledgedBy: string | null;
|
|
937
|
+
readAt: string | null;
|
|
938
|
+
readBy: string | null;
|
|
939
|
+
resolvedAt: string | null;
|
|
940
|
+
generatedBy: string;
|
|
941
|
+
fieldName?: string | undefined;
|
|
942
|
+
actionRequired?: boolean | undefined;
|
|
943
|
+
suggestedAction?: string | null | undefined;
|
|
944
|
+
}>, "many">;
|
|
945
|
+
meta: z.ZodObject<{
|
|
946
|
+
totalRecords: z.ZodNumber;
|
|
947
|
+
totalPages: z.ZodNumber;
|
|
948
|
+
currentPage: z.ZodNumber;
|
|
949
|
+
pageSize: z.ZodNumber;
|
|
950
|
+
}, "strip", z.ZodTypeAny, {
|
|
951
|
+
totalRecords: number;
|
|
952
|
+
totalPages: number;
|
|
953
|
+
currentPage: number;
|
|
954
|
+
pageSize: number;
|
|
955
|
+
}, {
|
|
956
|
+
totalRecords: number;
|
|
957
|
+
totalPages: number;
|
|
958
|
+
currentPage: number;
|
|
959
|
+
pageSize: number;
|
|
960
|
+
}>;
|
|
961
|
+
}, "strip", z.ZodTypeAny, {
|
|
962
|
+
meta: {
|
|
963
|
+
totalRecords: number;
|
|
964
|
+
totalPages: number;
|
|
965
|
+
currentPage: number;
|
|
966
|
+
pageSize: number;
|
|
967
|
+
};
|
|
968
|
+
data: {
|
|
969
|
+
type: string;
|
|
970
|
+
status: "active" | "acknowledged" | "resolved";
|
|
971
|
+
message: string;
|
|
972
|
+
id: string;
|
|
973
|
+
title: string;
|
|
974
|
+
createdAt: string;
|
|
975
|
+
recommendations: {
|
|
976
|
+
priority: number;
|
|
977
|
+
action: string;
|
|
978
|
+
details: string;
|
|
979
|
+
timing: string;
|
|
980
|
+
confidence?: number | undefined;
|
|
981
|
+
applicationMethod?: string | undefined;
|
|
982
|
+
severity?: "critical" | "low" | "medium" | "high" | undefined;
|
|
983
|
+
materials?: {
|
|
984
|
+
name: string;
|
|
985
|
+
quantity: number;
|
|
986
|
+
unit: string;
|
|
987
|
+
inventoryItemId?: string | undefined;
|
|
988
|
+
totalCost?: number | undefined;
|
|
989
|
+
costPerUnit?: number | undefined;
|
|
990
|
+
availability?: string | undefined;
|
|
991
|
+
inStock?: boolean | undefined;
|
|
992
|
+
stockQuantity?: number | undefined;
|
|
993
|
+
applicationMethod?: string | undefined;
|
|
994
|
+
}[] | undefined;
|
|
995
|
+
expectedOutcome?: string | undefined;
|
|
996
|
+
preventiveMeasures?: string[] | undefined;
|
|
997
|
+
estimatedTime?: string | undefined;
|
|
998
|
+
riskLevel?: string | undefined;
|
|
999
|
+
}[] | null;
|
|
1000
|
+
fieldId: string;
|
|
1001
|
+
confidence: number | null;
|
|
1002
|
+
severity: "critical" | "low" | "medium" | "high";
|
|
1003
|
+
acknowledgedAt: string | null;
|
|
1004
|
+
acknowledgedBy: string | null;
|
|
1005
|
+
readAt: string | null;
|
|
1006
|
+
readBy: string | null;
|
|
1007
|
+
resolvedAt: string | null;
|
|
1008
|
+
generatedBy: string;
|
|
1009
|
+
fieldName?: string | undefined;
|
|
1010
|
+
actionRequired?: boolean | undefined;
|
|
1011
|
+
suggestedAction?: string | null | undefined;
|
|
1012
|
+
}[];
|
|
1013
|
+
}, {
|
|
1014
|
+
meta: {
|
|
1015
|
+
totalRecords: number;
|
|
1016
|
+
totalPages: number;
|
|
1017
|
+
currentPage: number;
|
|
1018
|
+
pageSize: number;
|
|
1019
|
+
};
|
|
1020
|
+
data: {
|
|
1021
|
+
type: string;
|
|
1022
|
+
status: "active" | "acknowledged" | "resolved";
|
|
1023
|
+
message: string;
|
|
1024
|
+
id: string;
|
|
1025
|
+
title: string;
|
|
1026
|
+
createdAt: string;
|
|
1027
|
+
recommendations: {
|
|
1028
|
+
priority: number;
|
|
1029
|
+
action: string;
|
|
1030
|
+
details: string;
|
|
1031
|
+
timing: string;
|
|
1032
|
+
confidence?: number | undefined;
|
|
1033
|
+
applicationMethod?: string | undefined;
|
|
1034
|
+
severity?: "critical" | "low" | "medium" | "high" | undefined;
|
|
1035
|
+
materials?: {
|
|
1036
|
+
name: string;
|
|
1037
|
+
quantity: number;
|
|
1038
|
+
unit: string;
|
|
1039
|
+
inventoryItemId?: string | undefined;
|
|
1040
|
+
totalCost?: number | undefined;
|
|
1041
|
+
costPerUnit?: number | undefined;
|
|
1042
|
+
availability?: string | undefined;
|
|
1043
|
+
inStock?: boolean | undefined;
|
|
1044
|
+
stockQuantity?: number | undefined;
|
|
1045
|
+
applicationMethod?: string | undefined;
|
|
1046
|
+
}[] | undefined;
|
|
1047
|
+
expectedOutcome?: string | undefined;
|
|
1048
|
+
preventiveMeasures?: string[] | undefined;
|
|
1049
|
+
estimatedTime?: string | undefined;
|
|
1050
|
+
riskLevel?: string | undefined;
|
|
1051
|
+
}[] | null;
|
|
1052
|
+
fieldId: string;
|
|
1053
|
+
confidence: number | null;
|
|
1054
|
+
severity: "critical" | "low" | "medium" | "high";
|
|
1055
|
+
acknowledgedAt: string | null;
|
|
1056
|
+
acknowledgedBy: string | null;
|
|
1057
|
+
readAt: string | null;
|
|
1058
|
+
readBy: string | null;
|
|
1059
|
+
resolvedAt: string | null;
|
|
1060
|
+
generatedBy: string;
|
|
1061
|
+
fieldName?: string | undefined;
|
|
1062
|
+
actionRequired?: boolean | undefined;
|
|
1063
|
+
suggestedAction?: string | null | undefined;
|
|
1064
|
+
}[];
|
|
1065
|
+
}>>;
|
|
637
1066
|
error: z.ZodOptional<z.ZodString>;
|
|
638
1067
|
}, "strip", z.ZodTypeAny, {
|
|
639
1068
|
ok: boolean;
|
|
640
|
-
data?:
|
|
1069
|
+
data?: {
|
|
1070
|
+
meta: {
|
|
1071
|
+
totalRecords: number;
|
|
1072
|
+
totalPages: number;
|
|
1073
|
+
currentPage: number;
|
|
1074
|
+
pageSize: number;
|
|
1075
|
+
};
|
|
1076
|
+
data: {
|
|
1077
|
+
type: string;
|
|
1078
|
+
status: "active" | "acknowledged" | "resolved";
|
|
1079
|
+
message: string;
|
|
1080
|
+
id: string;
|
|
1081
|
+
title: string;
|
|
1082
|
+
createdAt: string;
|
|
1083
|
+
recommendations: {
|
|
1084
|
+
priority: number;
|
|
1085
|
+
action: string;
|
|
1086
|
+
details: string;
|
|
1087
|
+
timing: string;
|
|
1088
|
+
confidence?: number | undefined;
|
|
1089
|
+
applicationMethod?: string | undefined;
|
|
1090
|
+
severity?: "critical" | "low" | "medium" | "high" | undefined;
|
|
1091
|
+
materials?: {
|
|
1092
|
+
name: string;
|
|
1093
|
+
quantity: number;
|
|
1094
|
+
unit: string;
|
|
1095
|
+
inventoryItemId?: string | undefined;
|
|
1096
|
+
totalCost?: number | undefined;
|
|
1097
|
+
costPerUnit?: number | undefined;
|
|
1098
|
+
availability?: string | undefined;
|
|
1099
|
+
inStock?: boolean | undefined;
|
|
1100
|
+
stockQuantity?: number | undefined;
|
|
1101
|
+
applicationMethod?: string | undefined;
|
|
1102
|
+
}[] | undefined;
|
|
1103
|
+
expectedOutcome?: string | undefined;
|
|
1104
|
+
preventiveMeasures?: string[] | undefined;
|
|
1105
|
+
estimatedTime?: string | undefined;
|
|
1106
|
+
riskLevel?: string | undefined;
|
|
1107
|
+
}[] | null;
|
|
1108
|
+
fieldId: string;
|
|
1109
|
+
confidence: number | null;
|
|
1110
|
+
severity: "critical" | "low" | "medium" | "high";
|
|
1111
|
+
acknowledgedAt: string | null;
|
|
1112
|
+
acknowledgedBy: string | null;
|
|
1113
|
+
readAt: string | null;
|
|
1114
|
+
readBy: string | null;
|
|
1115
|
+
resolvedAt: string | null;
|
|
1116
|
+
generatedBy: string;
|
|
1117
|
+
fieldName?: string | undefined;
|
|
1118
|
+
actionRequired?: boolean | undefined;
|
|
1119
|
+
suggestedAction?: string | null | undefined;
|
|
1120
|
+
}[];
|
|
1121
|
+
} | undefined;
|
|
641
1122
|
error?: string | undefined;
|
|
642
1123
|
}, {
|
|
643
1124
|
ok: boolean;
|
|
644
|
-
data?:
|
|
1125
|
+
data?: {
|
|
1126
|
+
meta: {
|
|
1127
|
+
totalRecords: number;
|
|
1128
|
+
totalPages: number;
|
|
1129
|
+
currentPage: number;
|
|
1130
|
+
pageSize: number;
|
|
1131
|
+
};
|
|
1132
|
+
data: {
|
|
1133
|
+
type: string;
|
|
1134
|
+
status: "active" | "acknowledged" | "resolved";
|
|
1135
|
+
message: string;
|
|
1136
|
+
id: string;
|
|
1137
|
+
title: string;
|
|
1138
|
+
createdAt: string;
|
|
1139
|
+
recommendations: {
|
|
1140
|
+
priority: number;
|
|
1141
|
+
action: string;
|
|
1142
|
+
details: string;
|
|
1143
|
+
timing: string;
|
|
1144
|
+
confidence?: number | undefined;
|
|
1145
|
+
applicationMethod?: string | undefined;
|
|
1146
|
+
severity?: "critical" | "low" | "medium" | "high" | undefined;
|
|
1147
|
+
materials?: {
|
|
1148
|
+
name: string;
|
|
1149
|
+
quantity: number;
|
|
1150
|
+
unit: string;
|
|
1151
|
+
inventoryItemId?: string | undefined;
|
|
1152
|
+
totalCost?: number | undefined;
|
|
1153
|
+
costPerUnit?: number | undefined;
|
|
1154
|
+
availability?: string | undefined;
|
|
1155
|
+
inStock?: boolean | undefined;
|
|
1156
|
+
stockQuantity?: number | undefined;
|
|
1157
|
+
applicationMethod?: string | undefined;
|
|
1158
|
+
}[] | undefined;
|
|
1159
|
+
expectedOutcome?: string | undefined;
|
|
1160
|
+
preventiveMeasures?: string[] | undefined;
|
|
1161
|
+
estimatedTime?: string | undefined;
|
|
1162
|
+
riskLevel?: string | undefined;
|
|
1163
|
+
}[] | null;
|
|
1164
|
+
fieldId: string;
|
|
1165
|
+
confidence: number | null;
|
|
1166
|
+
severity: "critical" | "low" | "medium" | "high";
|
|
1167
|
+
acknowledgedAt: string | null;
|
|
1168
|
+
acknowledgedBy: string | null;
|
|
1169
|
+
readAt: string | null;
|
|
1170
|
+
readBy: string | null;
|
|
1171
|
+
resolvedAt: string | null;
|
|
1172
|
+
generatedBy: string;
|
|
1173
|
+
fieldName?: string | undefined;
|
|
1174
|
+
actionRequired?: boolean | undefined;
|
|
1175
|
+
suggestedAction?: string | null | undefined;
|
|
1176
|
+
}[];
|
|
1177
|
+
} | undefined;
|
|
645
1178
|
error?: string | undefined;
|
|
646
1179
|
}>;
|
|
647
1180
|
}, "strip", z.ZodTypeAny, {
|
|
648
1181
|
status: {
|
|
649
1182
|
ok: boolean;
|
|
650
|
-
data?:
|
|
1183
|
+
data?: {
|
|
1184
|
+
id: string;
|
|
1185
|
+
fieldId: string;
|
|
1186
|
+
fieldName: string;
|
|
1187
|
+
latestDate: string;
|
|
1188
|
+
currentNDVI: number | null;
|
|
1189
|
+
currentNDWI: number | null;
|
|
1190
|
+
currentEVI: number | null;
|
|
1191
|
+
currentCropHealth: "poor" | "fair" | "good" | "excellent" | null;
|
|
1192
|
+
currentWaterStress: "low" | "medium" | "high" | "none" | null;
|
|
1193
|
+
overallStatus: "ok" | "critical" | "warning";
|
|
1194
|
+
activeAlertCount: number;
|
|
1195
|
+
lastAlertDate: string | null;
|
|
1196
|
+
dataQuality: "poor" | "fair" | "good" | "excellent" | null;
|
|
1197
|
+
cloudCover: number | null;
|
|
1198
|
+
lastProcessedAt: string;
|
|
1199
|
+
} | undefined;
|
|
651
1200
|
error?: string | undefined;
|
|
652
1201
|
};
|
|
653
1202
|
alerts: {
|
|
654
1203
|
ok: boolean;
|
|
655
|
-
data?:
|
|
1204
|
+
data?: {
|
|
1205
|
+
meta: {
|
|
1206
|
+
totalRecords: number;
|
|
1207
|
+
totalPages: number;
|
|
1208
|
+
currentPage: number;
|
|
1209
|
+
pageSize: number;
|
|
1210
|
+
};
|
|
1211
|
+
data: {
|
|
1212
|
+
type: string;
|
|
1213
|
+
status: "active" | "acknowledged" | "resolved";
|
|
1214
|
+
message: string;
|
|
1215
|
+
id: string;
|
|
1216
|
+
title: string;
|
|
1217
|
+
createdAt: string;
|
|
1218
|
+
recommendations: {
|
|
1219
|
+
priority: number;
|
|
1220
|
+
action: string;
|
|
1221
|
+
details: string;
|
|
1222
|
+
timing: string;
|
|
1223
|
+
confidence?: number | undefined;
|
|
1224
|
+
applicationMethod?: string | undefined;
|
|
1225
|
+
severity?: "critical" | "low" | "medium" | "high" | undefined;
|
|
1226
|
+
materials?: {
|
|
1227
|
+
name: string;
|
|
1228
|
+
quantity: number;
|
|
1229
|
+
unit: string;
|
|
1230
|
+
inventoryItemId?: string | undefined;
|
|
1231
|
+
totalCost?: number | undefined;
|
|
1232
|
+
costPerUnit?: number | undefined;
|
|
1233
|
+
availability?: string | undefined;
|
|
1234
|
+
inStock?: boolean | undefined;
|
|
1235
|
+
stockQuantity?: number | undefined;
|
|
1236
|
+
applicationMethod?: string | undefined;
|
|
1237
|
+
}[] | undefined;
|
|
1238
|
+
expectedOutcome?: string | undefined;
|
|
1239
|
+
preventiveMeasures?: string[] | undefined;
|
|
1240
|
+
estimatedTime?: string | undefined;
|
|
1241
|
+
riskLevel?: string | undefined;
|
|
1242
|
+
}[] | null;
|
|
1243
|
+
fieldId: string;
|
|
1244
|
+
confidence: number | null;
|
|
1245
|
+
severity: "critical" | "low" | "medium" | "high";
|
|
1246
|
+
acknowledgedAt: string | null;
|
|
1247
|
+
acknowledgedBy: string | null;
|
|
1248
|
+
readAt: string | null;
|
|
1249
|
+
readBy: string | null;
|
|
1250
|
+
resolvedAt: string | null;
|
|
1251
|
+
generatedBy: string;
|
|
1252
|
+
fieldName?: string | undefined;
|
|
1253
|
+
actionRequired?: boolean | undefined;
|
|
1254
|
+
suggestedAction?: string | null | undefined;
|
|
1255
|
+
}[];
|
|
1256
|
+
} | undefined;
|
|
656
1257
|
error?: string | undefined;
|
|
657
1258
|
};
|
|
658
1259
|
soil: {
|
|
659
1260
|
ok: boolean;
|
|
660
|
-
data?:
|
|
1261
|
+
data?: {
|
|
1262
|
+
readingDate: string;
|
|
1263
|
+
soilMoisture: number | null;
|
|
1264
|
+
surfaceTemp: number | null;
|
|
1265
|
+
temp10cm: number | null;
|
|
1266
|
+
} | null | undefined;
|
|
661
1267
|
error?: string | undefined;
|
|
662
1268
|
};
|
|
663
1269
|
availableDates: {
|
|
@@ -668,17 +1274,90 @@ export declare const fieldMonitoringBundleResponseSchema: z.ZodObject<{
|
|
|
668
1274
|
}, {
|
|
669
1275
|
status: {
|
|
670
1276
|
ok: boolean;
|
|
671
|
-
data?:
|
|
1277
|
+
data?: {
|
|
1278
|
+
id: string;
|
|
1279
|
+
fieldId: string;
|
|
1280
|
+
fieldName: string;
|
|
1281
|
+
latestDate: string;
|
|
1282
|
+
currentNDVI: number | null;
|
|
1283
|
+
currentNDWI: number | null;
|
|
1284
|
+
currentEVI: number | null;
|
|
1285
|
+
currentCropHealth: "poor" | "fair" | "good" | "excellent" | null;
|
|
1286
|
+
currentWaterStress: "low" | "medium" | "high" | "none" | null;
|
|
1287
|
+
overallStatus: "ok" | "critical" | "warning";
|
|
1288
|
+
activeAlertCount: number;
|
|
1289
|
+
lastAlertDate: string | null;
|
|
1290
|
+
dataQuality: "poor" | "fair" | "good" | "excellent" | null;
|
|
1291
|
+
cloudCover: number | null;
|
|
1292
|
+
lastProcessedAt: string;
|
|
1293
|
+
} | undefined;
|
|
672
1294
|
error?: string | undefined;
|
|
673
1295
|
};
|
|
674
1296
|
alerts: {
|
|
675
1297
|
ok: boolean;
|
|
676
|
-
data?:
|
|
1298
|
+
data?: {
|
|
1299
|
+
meta: {
|
|
1300
|
+
totalRecords: number;
|
|
1301
|
+
totalPages: number;
|
|
1302
|
+
currentPage: number;
|
|
1303
|
+
pageSize: number;
|
|
1304
|
+
};
|
|
1305
|
+
data: {
|
|
1306
|
+
type: string;
|
|
1307
|
+
status: "active" | "acknowledged" | "resolved";
|
|
1308
|
+
message: string;
|
|
1309
|
+
id: string;
|
|
1310
|
+
title: string;
|
|
1311
|
+
createdAt: string;
|
|
1312
|
+
recommendations: {
|
|
1313
|
+
priority: number;
|
|
1314
|
+
action: string;
|
|
1315
|
+
details: string;
|
|
1316
|
+
timing: string;
|
|
1317
|
+
confidence?: number | undefined;
|
|
1318
|
+
applicationMethod?: string | undefined;
|
|
1319
|
+
severity?: "critical" | "low" | "medium" | "high" | undefined;
|
|
1320
|
+
materials?: {
|
|
1321
|
+
name: string;
|
|
1322
|
+
quantity: number;
|
|
1323
|
+
unit: string;
|
|
1324
|
+
inventoryItemId?: string | undefined;
|
|
1325
|
+
totalCost?: number | undefined;
|
|
1326
|
+
costPerUnit?: number | undefined;
|
|
1327
|
+
availability?: string | undefined;
|
|
1328
|
+
inStock?: boolean | undefined;
|
|
1329
|
+
stockQuantity?: number | undefined;
|
|
1330
|
+
applicationMethod?: string | undefined;
|
|
1331
|
+
}[] | undefined;
|
|
1332
|
+
expectedOutcome?: string | undefined;
|
|
1333
|
+
preventiveMeasures?: string[] | undefined;
|
|
1334
|
+
estimatedTime?: string | undefined;
|
|
1335
|
+
riskLevel?: string | undefined;
|
|
1336
|
+
}[] | null;
|
|
1337
|
+
fieldId: string;
|
|
1338
|
+
confidence: number | null;
|
|
1339
|
+
severity: "critical" | "low" | "medium" | "high";
|
|
1340
|
+
acknowledgedAt: string | null;
|
|
1341
|
+
acknowledgedBy: string | null;
|
|
1342
|
+
readAt: string | null;
|
|
1343
|
+
readBy: string | null;
|
|
1344
|
+
resolvedAt: string | null;
|
|
1345
|
+
generatedBy: string;
|
|
1346
|
+
fieldName?: string | undefined;
|
|
1347
|
+
actionRequired?: boolean | undefined;
|
|
1348
|
+
suggestedAction?: string | null | undefined;
|
|
1349
|
+
}[];
|
|
1350
|
+
} | undefined;
|
|
677
1351
|
error?: string | undefined;
|
|
678
1352
|
};
|
|
679
1353
|
soil: {
|
|
680
1354
|
ok: boolean;
|
|
681
|
-
data?:
|
|
1355
|
+
data?: {
|
|
1356
|
+
readingDate: string;
|
|
1357
|
+
soilMoisture: number | null;
|
|
1358
|
+
surfaceTemp: number | null;
|
|
1359
|
+
temp10cm: number | null;
|
|
1360
|
+
} | null | undefined;
|
|
682
1361
|
error?: string | undefined;
|
|
683
1362
|
};
|
|
684
1363
|
availableDates: {
|