@deepintel-ltd/farmpro-contracts 1.34.2 → 1.35.0
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 +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/routes/crop-care.routes.d.ts +136 -0
- package/dist/routes/crop-care.routes.d.ts.map +1 -1
- package/dist/routes/crop-care.routes.js +18 -1
- package/dist/routes/index.d.ts +3 -0
- package/dist/routes/index.d.ts.map +1 -1
- package/dist/routes/index.js +2 -0
- package/dist/routes/nutrient-plan.routes.d.ts +651 -0
- package/dist/routes/nutrient-plan.routes.d.ts.map +1 -0
- package/dist/routes/nutrient-plan.routes.js +40 -0
- package/dist/routes/team-payments.routes.d.ts +36 -36
- package/dist/schemas/crop-care.schemas.d.ts +133 -0
- package/dist/schemas/crop-care.schemas.d.ts.map +1 -1
- package/dist/schemas/crop-care.schemas.js +26 -0
- package/dist/schemas/nutrient-plan.schemas.d.ts +1051 -0
- package/dist/schemas/nutrient-plan.schemas.d.ts.map +1 -0
- package/dist/schemas/nutrient-plan.schemas.js +87 -0
- package/dist/schemas/team-payments.schemas.d.ts +24 -24
- package/package.json +1 -1
|
@@ -929,6 +929,76 @@ export declare const carePlanSchema: z.ZodObject<{
|
|
|
929
929
|
}, z.ZodTypeAny, "passthrough">>, "many">>;
|
|
930
930
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
931
931
|
}, z.ZodTypeAny, "passthrough">>;
|
|
932
|
+
export declare const careAdjustmentSchema: z.ZodObject<{
|
|
933
|
+
id: z.ZodString;
|
|
934
|
+
severity: z.ZodEnum<["info", "watch", "act"]>;
|
|
935
|
+
title: z.ZodString;
|
|
936
|
+
detail: z.ZodString;
|
|
937
|
+
source: z.ZodString;
|
|
938
|
+
}, "strip", z.ZodTypeAny, {
|
|
939
|
+
id: string;
|
|
940
|
+
title: string;
|
|
941
|
+
detail: string;
|
|
942
|
+
source: string;
|
|
943
|
+
severity: "info" | "watch" | "act";
|
|
944
|
+
}, {
|
|
945
|
+
id: string;
|
|
946
|
+
title: string;
|
|
947
|
+
detail: string;
|
|
948
|
+
source: string;
|
|
949
|
+
severity: "info" | "watch" | "act";
|
|
950
|
+
}>;
|
|
951
|
+
export declare const careAdjustmentsResponseSchema: z.ZodObject<{
|
|
952
|
+
crop: z.ZodNullable<z.ZodString>;
|
|
953
|
+
stage: z.ZodNullable<z.ZodString>;
|
|
954
|
+
adjustments: z.ZodArray<z.ZodObject<{
|
|
955
|
+
id: z.ZodString;
|
|
956
|
+
severity: z.ZodEnum<["info", "watch", "act"]>;
|
|
957
|
+
title: z.ZodString;
|
|
958
|
+
detail: z.ZodString;
|
|
959
|
+
source: z.ZodString;
|
|
960
|
+
}, "strip", z.ZodTypeAny, {
|
|
961
|
+
id: string;
|
|
962
|
+
title: string;
|
|
963
|
+
detail: string;
|
|
964
|
+
source: string;
|
|
965
|
+
severity: "info" | "watch" | "act";
|
|
966
|
+
}, {
|
|
967
|
+
id: string;
|
|
968
|
+
title: string;
|
|
969
|
+
detail: string;
|
|
970
|
+
source: string;
|
|
971
|
+
severity: "info" | "watch" | "act";
|
|
972
|
+
}>, "many">;
|
|
973
|
+
/** False when no forecast could be loaded, so weather rules were skipped. */
|
|
974
|
+
weatherAvailable: z.ZodBoolean;
|
|
975
|
+
generatedAt: z.ZodString;
|
|
976
|
+
}, "strip", z.ZodTypeAny, {
|
|
977
|
+
crop: string | null;
|
|
978
|
+
generatedAt: string;
|
|
979
|
+
stage: string | null;
|
|
980
|
+
adjustments: {
|
|
981
|
+
id: string;
|
|
982
|
+
title: string;
|
|
983
|
+
detail: string;
|
|
984
|
+
source: string;
|
|
985
|
+
severity: "info" | "watch" | "act";
|
|
986
|
+
}[];
|
|
987
|
+
weatherAvailable: boolean;
|
|
988
|
+
}, {
|
|
989
|
+
crop: string | null;
|
|
990
|
+
generatedAt: string;
|
|
991
|
+
stage: string | null;
|
|
992
|
+
adjustments: {
|
|
993
|
+
id: string;
|
|
994
|
+
title: string;
|
|
995
|
+
detail: string;
|
|
996
|
+
source: string;
|
|
997
|
+
severity: "info" | "watch" | "act";
|
|
998
|
+
}[];
|
|
999
|
+
weatherAvailable: boolean;
|
|
1000
|
+
}>;
|
|
1001
|
+
export type CareAdjustmentsResponse = z.infer<typeof careAdjustmentsResponseSchema>;
|
|
932
1002
|
export declare const resolvedCareSchema: z.ZodObject<{
|
|
933
1003
|
origin: z.ZodEnum<["file", "database", "generic"]>;
|
|
934
1004
|
plan: z.ZodObject<{
|
|
@@ -1771,6 +1841,27 @@ export declare const resolvedCareSchema: z.ZodObject<{
|
|
|
1771
1841
|
}, z.ZodTypeAny, "passthrough">>;
|
|
1772
1842
|
needsDate: z.ZodBoolean;
|
|
1773
1843
|
assumedTransplant: z.ZodOptional<z.ZodBoolean>;
|
|
1844
|
+
stageSource: z.ZodOptional<z.ZodEnum<["calendar", "observed"]>>;
|
|
1845
|
+
reviewNote: z.ZodOptional<z.ZodString>;
|
|
1846
|
+
adjustments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1847
|
+
id: z.ZodString;
|
|
1848
|
+
severity: z.ZodEnum<["info", "watch", "act"]>;
|
|
1849
|
+
title: z.ZodString;
|
|
1850
|
+
detail: z.ZodString;
|
|
1851
|
+
source: z.ZodString;
|
|
1852
|
+
}, "strip", z.ZodTypeAny, {
|
|
1853
|
+
id: string;
|
|
1854
|
+
title: string;
|
|
1855
|
+
detail: string;
|
|
1856
|
+
source: string;
|
|
1857
|
+
severity: "info" | "watch" | "act";
|
|
1858
|
+
}, {
|
|
1859
|
+
id: string;
|
|
1860
|
+
title: string;
|
|
1861
|
+
detail: string;
|
|
1862
|
+
source: string;
|
|
1863
|
+
severity: "info" | "watch" | "act";
|
|
1864
|
+
}>, "many">>;
|
|
1774
1865
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1775
1866
|
origin: z.ZodEnum<["file", "database", "generic"]>;
|
|
1776
1867
|
plan: z.ZodObject<{
|
|
@@ -2613,6 +2704,27 @@ export declare const resolvedCareSchema: z.ZodObject<{
|
|
|
2613
2704
|
}, z.ZodTypeAny, "passthrough">>;
|
|
2614
2705
|
needsDate: z.ZodBoolean;
|
|
2615
2706
|
assumedTransplant: z.ZodOptional<z.ZodBoolean>;
|
|
2707
|
+
stageSource: z.ZodOptional<z.ZodEnum<["calendar", "observed"]>>;
|
|
2708
|
+
reviewNote: z.ZodOptional<z.ZodString>;
|
|
2709
|
+
adjustments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2710
|
+
id: z.ZodString;
|
|
2711
|
+
severity: z.ZodEnum<["info", "watch", "act"]>;
|
|
2712
|
+
title: z.ZodString;
|
|
2713
|
+
detail: z.ZodString;
|
|
2714
|
+
source: z.ZodString;
|
|
2715
|
+
}, "strip", z.ZodTypeAny, {
|
|
2716
|
+
id: string;
|
|
2717
|
+
title: string;
|
|
2718
|
+
detail: string;
|
|
2719
|
+
source: string;
|
|
2720
|
+
severity: "info" | "watch" | "act";
|
|
2721
|
+
}, {
|
|
2722
|
+
id: string;
|
|
2723
|
+
title: string;
|
|
2724
|
+
detail: string;
|
|
2725
|
+
source: string;
|
|
2726
|
+
severity: "info" | "watch" | "act";
|
|
2727
|
+
}>, "many">>;
|
|
2616
2728
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
2617
2729
|
origin: z.ZodEnum<["file", "database", "generic"]>;
|
|
2618
2730
|
plan: z.ZodObject<{
|
|
@@ -3455,6 +3567,27 @@ export declare const resolvedCareSchema: z.ZodObject<{
|
|
|
3455
3567
|
}, z.ZodTypeAny, "passthrough">>;
|
|
3456
3568
|
needsDate: z.ZodBoolean;
|
|
3457
3569
|
assumedTransplant: z.ZodOptional<z.ZodBoolean>;
|
|
3570
|
+
stageSource: z.ZodOptional<z.ZodEnum<["calendar", "observed"]>>;
|
|
3571
|
+
reviewNote: z.ZodOptional<z.ZodString>;
|
|
3572
|
+
adjustments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3573
|
+
id: z.ZodString;
|
|
3574
|
+
severity: z.ZodEnum<["info", "watch", "act"]>;
|
|
3575
|
+
title: z.ZodString;
|
|
3576
|
+
detail: z.ZodString;
|
|
3577
|
+
source: z.ZodString;
|
|
3578
|
+
}, "strip", z.ZodTypeAny, {
|
|
3579
|
+
id: string;
|
|
3580
|
+
title: string;
|
|
3581
|
+
detail: string;
|
|
3582
|
+
source: string;
|
|
3583
|
+
severity: "info" | "watch" | "act";
|
|
3584
|
+
}, {
|
|
3585
|
+
id: string;
|
|
3586
|
+
title: string;
|
|
3587
|
+
detail: string;
|
|
3588
|
+
source: string;
|
|
3589
|
+
severity: "info" | "watch" | "act";
|
|
3590
|
+
}>, "many">>;
|
|
3458
3591
|
}, z.ZodTypeAny, "passthrough">>;
|
|
3459
3592
|
export type ResolvedCareContract = z.infer<typeof resolvedCareSchema>;
|
|
3460
3593
|
//# sourceMappingURL=crop-care.schemas.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"crop-care.schemas.d.ts","sourceRoot":"","sources":["../../src/schemas/crop-care.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAWZ,CAAC;AAEjB,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAMZ,CAAC;AAEjB,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAuBf,CAAC;AAEjB,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
|
|
@@ -51,6 +51,21 @@ export const carePlanSchema = z
|
|
|
51
51
|
.optional(),
|
|
52
52
|
})
|
|
53
53
|
.passthrough();
|
|
54
|
+
export const careAdjustmentSchema = z.object({
|
|
55
|
+
id: z.string(),
|
|
56
|
+
severity: z.enum(['info', 'watch', 'act']),
|
|
57
|
+
title: z.string(),
|
|
58
|
+
detail: z.string(),
|
|
59
|
+
source: z.string(),
|
|
60
|
+
});
|
|
61
|
+
export const careAdjustmentsResponseSchema = z.object({
|
|
62
|
+
crop: z.string().nullable(),
|
|
63
|
+
stage: z.string().nullable(),
|
|
64
|
+
adjustments: z.array(careAdjustmentSchema),
|
|
65
|
+
/** False when no forecast could be loaded, so weather rules were skipped. */
|
|
66
|
+
weatherAvailable: z.boolean(),
|
|
67
|
+
generatedAt: z.string(),
|
|
68
|
+
});
|
|
54
69
|
export const resolvedCareSchema = z
|
|
55
70
|
.object({
|
|
56
71
|
origin: z.enum(['file', 'database', 'generic']),
|
|
@@ -60,5 +75,16 @@ export const resolvedCareSchema = z
|
|
|
60
75
|
stage: careStageSchema,
|
|
61
76
|
needsDate: z.boolean(),
|
|
62
77
|
assumedTransplant: z.boolean().optional(),
|
|
78
|
+
stageSource: z.enum(['calendar', 'observed']).optional(),
|
|
79
|
+
reviewNote: z.string().optional(),
|
|
80
|
+
adjustments: z
|
|
81
|
+
.array(z.object({
|
|
82
|
+
id: z.string(),
|
|
83
|
+
severity: z.enum(['info', 'watch', 'act']),
|
|
84
|
+
title: z.string(),
|
|
85
|
+
detail: z.string(),
|
|
86
|
+
source: z.string(),
|
|
87
|
+
}))
|
|
88
|
+
.optional(),
|
|
63
89
|
})
|
|
64
90
|
.passthrough();
|