@deepintel-ltd/farmpro-contracts 1.33.0 → 1.34.1
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 +4 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/routes/crop-care.routes.d.ts +2555 -0
- package/dist/routes/crop-care.routes.d.ts.map +1 -0
- package/dist/routes/crop-care.routes.js +26 -0
- package/dist/routes/fields.routes.d.ts +70 -0
- package/dist/routes/fields.routes.d.ts.map +1 -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/schemas/crop-care.schemas.d.ts +3457 -0
- package/dist/schemas/crop-care.schemas.d.ts.map +1 -0
- package/dist/schemas/crop-care.schemas.js +63 -0
- package/dist/schemas/fields.schemas.d.ts +48 -0
- package/dist/schemas/fields.schemas.d.ts.map +1 -1
- package/dist/schemas/fields.schemas.js +3 -0
- package/package.json +1 -1
|
@@ -0,0 +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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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCASf,CAAC;AAEjB,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export const careStageSchema = z
|
|
3
|
+
.object({
|
|
4
|
+
id: z.string(),
|
|
5
|
+
label: z.string(),
|
|
6
|
+
railLabel: z.string(),
|
|
7
|
+
dayStart: z.number(),
|
|
8
|
+
dayEnd: z.number(),
|
|
9
|
+
summary: z.string(),
|
|
10
|
+
tasks: z.array(z.string()),
|
|
11
|
+
checks: z.array(z.string()),
|
|
12
|
+
})
|
|
13
|
+
.passthrough();
|
|
14
|
+
export const carePhaseSchema = z
|
|
15
|
+
.object({
|
|
16
|
+
dayZero: z.string(),
|
|
17
|
+
dayOrigin: z.union([z.literal(0), z.literal(1)]),
|
|
18
|
+
stages: z.array(careStageSchema),
|
|
19
|
+
})
|
|
20
|
+
.passthrough();
|
|
21
|
+
export const carePlanSchema = z
|
|
22
|
+
.object({
|
|
23
|
+
id: z.string(),
|
|
24
|
+
cropIds: z.array(z.string()),
|
|
25
|
+
depth: z.enum(['pepper', 'stage-card', 'generic']),
|
|
26
|
+
oneLineRule: z.string(),
|
|
27
|
+
source: z.string(),
|
|
28
|
+
seasonLengthDays: z.number(),
|
|
29
|
+
aliases: z.array(z.string()).optional(),
|
|
30
|
+
nursery: carePhaseSchema.optional(),
|
|
31
|
+
field: carePhaseSchema,
|
|
32
|
+
weekPlan: z
|
|
33
|
+
.object({
|
|
34
|
+
kind: z.string(),
|
|
35
|
+
stripLabel: z.string(),
|
|
36
|
+
note: z.string().optional(),
|
|
37
|
+
generator: z.string().optional(),
|
|
38
|
+
actions: z
|
|
39
|
+
.array(z
|
|
40
|
+
.object({
|
|
41
|
+
id: z.string(),
|
|
42
|
+
label: z.string(),
|
|
43
|
+
dayStart: z.number(),
|
|
44
|
+
dayEnd: z.number(),
|
|
45
|
+
detail: z.string(),
|
|
46
|
+
})
|
|
47
|
+
.passthrough())
|
|
48
|
+
.optional(),
|
|
49
|
+
})
|
|
50
|
+
.passthrough()
|
|
51
|
+
.optional(),
|
|
52
|
+
})
|
|
53
|
+
.passthrough();
|
|
54
|
+
export const resolvedCareSchema = z
|
|
55
|
+
.object({
|
|
56
|
+
origin: z.enum(['file', 'database', 'generic']),
|
|
57
|
+
plan: carePlanSchema,
|
|
58
|
+
phase: z.enum(['nursery', 'field']),
|
|
59
|
+
day: z.number().nullable(),
|
|
60
|
+
stage: careStageSchema,
|
|
61
|
+
needsDate: z.boolean(),
|
|
62
|
+
})
|
|
63
|
+
.passthrough();
|
|
@@ -62,6 +62,8 @@ export declare const fieldAttributesSchema: z.ZodObject<{
|
|
|
62
62
|
soilType: z.ZodNullable<z.ZodString>;
|
|
63
63
|
currentCrop: z.ZodNullable<z.ZodString>;
|
|
64
64
|
plantingDate: z.ZodNullable<z.ZodString>;
|
|
65
|
+
/** Day seedlings went into the field (pepper nursery). Null until confirmed. */
|
|
66
|
+
transplantedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
65
67
|
expectedHarvestDate: z.ZodNullable<z.ZodString>;
|
|
66
68
|
cropStage: z.ZodNullable<z.ZodEnum<["planted", "growing", "flowering", "fruiting", "mature", "harvested"]>>;
|
|
67
69
|
/** Established plant population (plants per hectare). Null if not recorded. */
|
|
@@ -130,6 +132,7 @@ export declare const fieldAttributesSchema: z.ZodObject<{
|
|
|
130
132
|
soilType: string | null;
|
|
131
133
|
expectedHarvestDate: string | null;
|
|
132
134
|
cropStage: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null;
|
|
135
|
+
transplantedAt?: string | null | undefined;
|
|
133
136
|
standCountPerHa?: number | null | undefined;
|
|
134
137
|
targetStandPerHa?: number | null | undefined;
|
|
135
138
|
coverImage?: string | null | undefined;
|
|
@@ -166,6 +169,7 @@ export declare const fieldAttributesSchema: z.ZodObject<{
|
|
|
166
169
|
soilType: string | null;
|
|
167
170
|
expectedHarvestDate: string | null;
|
|
168
171
|
cropStage: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null;
|
|
172
|
+
transplantedAt?: string | null | undefined;
|
|
169
173
|
standCountPerHa?: number | null | undefined;
|
|
170
174
|
targetStandPerHa?: number | null | undefined;
|
|
171
175
|
coverImage?: string | null | undefined;
|
|
@@ -260,6 +264,7 @@ export declare const updateFieldAttributesSchema: z.ZodObject<{
|
|
|
260
264
|
area: z.ZodOptional<z.ZodNumber>;
|
|
261
265
|
currentCrop: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
262
266
|
plantingDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
267
|
+
transplantedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
263
268
|
expectedHarvestDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
264
269
|
cropStage: z.ZodOptional<z.ZodNullable<z.ZodEnum<["planted", "growing", "flowering", "fruiting", "mature", "harvested"]>>>;
|
|
265
270
|
standCountPerHa: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -306,6 +311,7 @@ export declare const updateFieldAttributesSchema: z.ZodObject<{
|
|
|
306
311
|
ndvi?: number | undefined;
|
|
307
312
|
moisture?: string | undefined;
|
|
308
313
|
soilType?: string | undefined;
|
|
314
|
+
transplantedAt?: string | null | undefined;
|
|
309
315
|
expectedHarvestDate?: string | null | undefined;
|
|
310
316
|
cropStage?: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null | undefined;
|
|
311
317
|
standCountPerHa?: number | null | undefined;
|
|
@@ -334,6 +340,7 @@ export declare const updateFieldAttributesSchema: z.ZodObject<{
|
|
|
334
340
|
ndvi?: number | undefined;
|
|
335
341
|
moisture?: string | undefined;
|
|
336
342
|
soilType?: string | undefined;
|
|
343
|
+
transplantedAt?: string | null | undefined;
|
|
337
344
|
expectedHarvestDate?: string | null | undefined;
|
|
338
345
|
cropStage?: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null | undefined;
|
|
339
346
|
standCountPerHa?: number | null | undefined;
|
|
@@ -662,6 +669,7 @@ export declare const updateFieldSchema: z.ZodObject<{
|
|
|
662
669
|
area: z.ZodOptional<z.ZodNumber>;
|
|
663
670
|
currentCrop: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
664
671
|
plantingDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
672
|
+
transplantedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
665
673
|
expectedHarvestDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
666
674
|
cropStage: z.ZodOptional<z.ZodNullable<z.ZodEnum<["planted", "growing", "flowering", "fruiting", "mature", "harvested"]>>>;
|
|
667
675
|
standCountPerHa: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -708,6 +716,7 @@ export declare const updateFieldSchema: z.ZodObject<{
|
|
|
708
716
|
ndvi?: number | undefined;
|
|
709
717
|
moisture?: string | undefined;
|
|
710
718
|
soilType?: string | undefined;
|
|
719
|
+
transplantedAt?: string | null | undefined;
|
|
711
720
|
expectedHarvestDate?: string | null | undefined;
|
|
712
721
|
cropStage?: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null | undefined;
|
|
713
722
|
standCountPerHa?: number | null | undefined;
|
|
@@ -736,6 +745,7 @@ export declare const updateFieldSchema: z.ZodObject<{
|
|
|
736
745
|
ndvi?: number | undefined;
|
|
737
746
|
moisture?: string | undefined;
|
|
738
747
|
soilType?: string | undefined;
|
|
748
|
+
transplantedAt?: string | null | undefined;
|
|
739
749
|
expectedHarvestDate?: string | null | undefined;
|
|
740
750
|
cropStage?: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null | undefined;
|
|
741
751
|
standCountPerHa?: number | null | undefined;
|
|
@@ -768,6 +778,7 @@ export declare const updateFieldSchema: z.ZodObject<{
|
|
|
768
778
|
ndvi?: number | undefined;
|
|
769
779
|
moisture?: string | undefined;
|
|
770
780
|
soilType?: string | undefined;
|
|
781
|
+
transplantedAt?: string | null | undefined;
|
|
771
782
|
expectedHarvestDate?: string | null | undefined;
|
|
772
783
|
cropStage?: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null | undefined;
|
|
773
784
|
standCountPerHa?: number | null | undefined;
|
|
@@ -800,6 +811,7 @@ export declare const updateFieldSchema: z.ZodObject<{
|
|
|
800
811
|
ndvi?: number | undefined;
|
|
801
812
|
moisture?: string | undefined;
|
|
802
813
|
soilType?: string | undefined;
|
|
814
|
+
transplantedAt?: string | null | undefined;
|
|
803
815
|
expectedHarvestDate?: string | null | undefined;
|
|
804
816
|
cropStage?: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null | undefined;
|
|
805
817
|
standCountPerHa?: number | null | undefined;
|
|
@@ -840,6 +852,8 @@ export declare const fieldResourceSchema: z.ZodObject<{
|
|
|
840
852
|
soilType: z.ZodNullable<z.ZodString>;
|
|
841
853
|
currentCrop: z.ZodNullable<z.ZodString>;
|
|
842
854
|
plantingDate: z.ZodNullable<z.ZodString>;
|
|
855
|
+
/** Day seedlings went into the field (pepper nursery). Null until confirmed. */
|
|
856
|
+
transplantedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
843
857
|
expectedHarvestDate: z.ZodNullable<z.ZodString>;
|
|
844
858
|
cropStage: z.ZodNullable<z.ZodEnum<["planted", "growing", "flowering", "fruiting", "mature", "harvested"]>>;
|
|
845
859
|
/** Established plant population (plants per hectare). Null if not recorded. */
|
|
@@ -908,6 +922,7 @@ export declare const fieldResourceSchema: z.ZodObject<{
|
|
|
908
922
|
soilType: string | null;
|
|
909
923
|
expectedHarvestDate: string | null;
|
|
910
924
|
cropStage: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null;
|
|
925
|
+
transplantedAt?: string | null | undefined;
|
|
911
926
|
standCountPerHa?: number | null | undefined;
|
|
912
927
|
targetStandPerHa?: number | null | undefined;
|
|
913
928
|
coverImage?: string | null | undefined;
|
|
@@ -944,6 +959,7 @@ export declare const fieldResourceSchema: z.ZodObject<{
|
|
|
944
959
|
soilType: string | null;
|
|
945
960
|
expectedHarvestDate: string | null;
|
|
946
961
|
cropStage: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null;
|
|
962
|
+
transplantedAt?: string | null | undefined;
|
|
947
963
|
standCountPerHa?: number | null | undefined;
|
|
948
964
|
targetStandPerHa?: number | null | undefined;
|
|
949
965
|
coverImage?: string | null | undefined;
|
|
@@ -987,6 +1003,7 @@ export declare const fieldResourceSchema: z.ZodObject<{
|
|
|
987
1003
|
soilType: string | null;
|
|
988
1004
|
expectedHarvestDate: string | null;
|
|
989
1005
|
cropStage: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null;
|
|
1006
|
+
transplantedAt?: string | null | undefined;
|
|
990
1007
|
standCountPerHa?: number | null | undefined;
|
|
991
1008
|
targetStandPerHa?: number | null | undefined;
|
|
992
1009
|
coverImage?: string | null | undefined;
|
|
@@ -1030,6 +1047,7 @@ export declare const fieldResourceSchema: z.ZodObject<{
|
|
|
1030
1047
|
soilType: string | null;
|
|
1031
1048
|
expectedHarvestDate: string | null;
|
|
1032
1049
|
cropStage: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null;
|
|
1050
|
+
transplantedAt?: string | null | undefined;
|
|
1033
1051
|
standCountPerHa?: number | null | undefined;
|
|
1034
1052
|
targetStandPerHa?: number | null | undefined;
|
|
1035
1053
|
coverImage?: string | null | undefined;
|
|
@@ -1076,6 +1094,8 @@ export declare const fieldDetailResourceSchema: z.ZodObject<{
|
|
|
1076
1094
|
soilType: z.ZodNullable<z.ZodString>;
|
|
1077
1095
|
currentCrop: z.ZodNullable<z.ZodString>;
|
|
1078
1096
|
plantingDate: z.ZodNullable<z.ZodString>;
|
|
1097
|
+
/** Day seedlings went into the field (pepper nursery). Null until confirmed. */
|
|
1098
|
+
transplantedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1079
1099
|
expectedHarvestDate: z.ZodNullable<z.ZodString>;
|
|
1080
1100
|
cropStage: z.ZodNullable<z.ZodEnum<["planted", "growing", "flowering", "fruiting", "mature", "harvested"]>>;
|
|
1081
1101
|
/** Established plant population (plants per hectare). Null if not recorded. */
|
|
@@ -1144,6 +1164,7 @@ export declare const fieldDetailResourceSchema: z.ZodObject<{
|
|
|
1144
1164
|
soilType: string | null;
|
|
1145
1165
|
expectedHarvestDate: string | null;
|
|
1146
1166
|
cropStage: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null;
|
|
1167
|
+
transplantedAt?: string | null | undefined;
|
|
1147
1168
|
standCountPerHa?: number | null | undefined;
|
|
1148
1169
|
targetStandPerHa?: number | null | undefined;
|
|
1149
1170
|
coverImage?: string | null | undefined;
|
|
@@ -1180,6 +1201,7 @@ export declare const fieldDetailResourceSchema: z.ZodObject<{
|
|
|
1180
1201
|
soilType: string | null;
|
|
1181
1202
|
expectedHarvestDate: string | null;
|
|
1182
1203
|
cropStage: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null;
|
|
1204
|
+
transplantedAt?: string | null | undefined;
|
|
1183
1205
|
standCountPerHa?: number | null | undefined;
|
|
1184
1206
|
targetStandPerHa?: number | null | undefined;
|
|
1185
1207
|
coverImage?: string | null | undefined;
|
|
@@ -1418,6 +1440,7 @@ export declare const fieldDetailResourceSchema: z.ZodObject<{
|
|
|
1418
1440
|
soilType: string | null;
|
|
1419
1441
|
expectedHarvestDate: string | null;
|
|
1420
1442
|
cropStage: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null;
|
|
1443
|
+
transplantedAt?: string | null | undefined;
|
|
1421
1444
|
standCountPerHa?: number | null | undefined;
|
|
1422
1445
|
targetStandPerHa?: number | null | undefined;
|
|
1423
1446
|
coverImage?: string | null | undefined;
|
|
@@ -1495,6 +1518,7 @@ export declare const fieldDetailResourceSchema: z.ZodObject<{
|
|
|
1495
1518
|
soilType: string | null;
|
|
1496
1519
|
expectedHarvestDate: string | null;
|
|
1497
1520
|
cropStage: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null;
|
|
1521
|
+
transplantedAt?: string | null | undefined;
|
|
1498
1522
|
standCountPerHa?: number | null | undefined;
|
|
1499
1523
|
targetStandPerHa?: number | null | undefined;
|
|
1500
1524
|
coverImage?: string | null | undefined;
|
|
@@ -1576,6 +1600,8 @@ export declare const fieldResponseSchema: z.ZodObject<{
|
|
|
1576
1600
|
soilType: z.ZodNullable<z.ZodString>;
|
|
1577
1601
|
currentCrop: z.ZodNullable<z.ZodString>;
|
|
1578
1602
|
plantingDate: z.ZodNullable<z.ZodString>;
|
|
1603
|
+
/** Day seedlings went into the field (pepper nursery). Null until confirmed. */
|
|
1604
|
+
transplantedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1579
1605
|
expectedHarvestDate: z.ZodNullable<z.ZodString>;
|
|
1580
1606
|
cropStage: z.ZodNullable<z.ZodEnum<["planted", "growing", "flowering", "fruiting", "mature", "harvested"]>>;
|
|
1581
1607
|
/** Established plant population (plants per hectare). Null if not recorded. */
|
|
@@ -1644,6 +1670,7 @@ export declare const fieldResponseSchema: z.ZodObject<{
|
|
|
1644
1670
|
soilType: string | null;
|
|
1645
1671
|
expectedHarvestDate: string | null;
|
|
1646
1672
|
cropStage: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null;
|
|
1673
|
+
transplantedAt?: string | null | undefined;
|
|
1647
1674
|
standCountPerHa?: number | null | undefined;
|
|
1648
1675
|
targetStandPerHa?: number | null | undefined;
|
|
1649
1676
|
coverImage?: string | null | undefined;
|
|
@@ -1680,6 +1707,7 @@ export declare const fieldResponseSchema: z.ZodObject<{
|
|
|
1680
1707
|
soilType: string | null;
|
|
1681
1708
|
expectedHarvestDate: string | null;
|
|
1682
1709
|
cropStage: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null;
|
|
1710
|
+
transplantedAt?: string | null | undefined;
|
|
1683
1711
|
standCountPerHa?: number | null | undefined;
|
|
1684
1712
|
targetStandPerHa?: number | null | undefined;
|
|
1685
1713
|
coverImage?: string | null | undefined;
|
|
@@ -1723,6 +1751,7 @@ export declare const fieldResponseSchema: z.ZodObject<{
|
|
|
1723
1751
|
soilType: string | null;
|
|
1724
1752
|
expectedHarvestDate: string | null;
|
|
1725
1753
|
cropStage: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null;
|
|
1754
|
+
transplantedAt?: string | null | undefined;
|
|
1726
1755
|
standCountPerHa?: number | null | undefined;
|
|
1727
1756
|
targetStandPerHa?: number | null | undefined;
|
|
1728
1757
|
coverImage?: string | null | undefined;
|
|
@@ -1766,6 +1795,7 @@ export declare const fieldResponseSchema: z.ZodObject<{
|
|
|
1766
1795
|
soilType: string | null;
|
|
1767
1796
|
expectedHarvestDate: string | null;
|
|
1768
1797
|
cropStage: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null;
|
|
1798
|
+
transplantedAt?: string | null | undefined;
|
|
1769
1799
|
standCountPerHa?: number | null | undefined;
|
|
1770
1800
|
targetStandPerHa?: number | null | undefined;
|
|
1771
1801
|
coverImage?: string | null | undefined;
|
|
@@ -1835,6 +1865,7 @@ export declare const fieldResponseSchema: z.ZodObject<{
|
|
|
1835
1865
|
soilType: string | null;
|
|
1836
1866
|
expectedHarvestDate: string | null;
|
|
1837
1867
|
cropStage: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null;
|
|
1868
|
+
transplantedAt?: string | null | undefined;
|
|
1838
1869
|
standCountPerHa?: number | null | undefined;
|
|
1839
1870
|
targetStandPerHa?: number | null | undefined;
|
|
1840
1871
|
coverImage?: string | null | undefined;
|
|
@@ -1890,6 +1921,7 @@ export declare const fieldResponseSchema: z.ZodObject<{
|
|
|
1890
1921
|
soilType: string | null;
|
|
1891
1922
|
expectedHarvestDate: string | null;
|
|
1892
1923
|
cropStage: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null;
|
|
1924
|
+
transplantedAt?: string | null | undefined;
|
|
1893
1925
|
standCountPerHa?: number | null | undefined;
|
|
1894
1926
|
targetStandPerHa?: number | null | undefined;
|
|
1895
1927
|
coverImage?: string | null | undefined;
|
|
@@ -1948,6 +1980,8 @@ export declare const fieldDetailResponseSchema: z.ZodObject<{
|
|
|
1948
1980
|
soilType: z.ZodNullable<z.ZodString>;
|
|
1949
1981
|
currentCrop: z.ZodNullable<z.ZodString>;
|
|
1950
1982
|
plantingDate: z.ZodNullable<z.ZodString>;
|
|
1983
|
+
/** Day seedlings went into the field (pepper nursery). Null until confirmed. */
|
|
1984
|
+
transplantedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1951
1985
|
expectedHarvestDate: z.ZodNullable<z.ZodString>;
|
|
1952
1986
|
cropStage: z.ZodNullable<z.ZodEnum<["planted", "growing", "flowering", "fruiting", "mature", "harvested"]>>;
|
|
1953
1987
|
/** Established plant population (plants per hectare). Null if not recorded. */
|
|
@@ -2016,6 +2050,7 @@ export declare const fieldDetailResponseSchema: z.ZodObject<{
|
|
|
2016
2050
|
soilType: string | null;
|
|
2017
2051
|
expectedHarvestDate: string | null;
|
|
2018
2052
|
cropStage: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null;
|
|
2053
|
+
transplantedAt?: string | null | undefined;
|
|
2019
2054
|
standCountPerHa?: number | null | undefined;
|
|
2020
2055
|
targetStandPerHa?: number | null | undefined;
|
|
2021
2056
|
coverImage?: string | null | undefined;
|
|
@@ -2052,6 +2087,7 @@ export declare const fieldDetailResponseSchema: z.ZodObject<{
|
|
|
2052
2087
|
soilType: string | null;
|
|
2053
2088
|
expectedHarvestDate: string | null;
|
|
2054
2089
|
cropStage: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null;
|
|
2090
|
+
transplantedAt?: string | null | undefined;
|
|
2055
2091
|
standCountPerHa?: number | null | undefined;
|
|
2056
2092
|
targetStandPerHa?: number | null | undefined;
|
|
2057
2093
|
coverImage?: string | null | undefined;
|
|
@@ -2290,6 +2326,7 @@ export declare const fieldDetailResponseSchema: z.ZodObject<{
|
|
|
2290
2326
|
soilType: string | null;
|
|
2291
2327
|
expectedHarvestDate: string | null;
|
|
2292
2328
|
cropStage: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null;
|
|
2329
|
+
transplantedAt?: string | null | undefined;
|
|
2293
2330
|
standCountPerHa?: number | null | undefined;
|
|
2294
2331
|
targetStandPerHa?: number | null | undefined;
|
|
2295
2332
|
coverImage?: string | null | undefined;
|
|
@@ -2367,6 +2404,7 @@ export declare const fieldDetailResponseSchema: z.ZodObject<{
|
|
|
2367
2404
|
soilType: string | null;
|
|
2368
2405
|
expectedHarvestDate: string | null;
|
|
2369
2406
|
cropStage: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null;
|
|
2407
|
+
transplantedAt?: string | null | undefined;
|
|
2370
2408
|
standCountPerHa?: number | null | undefined;
|
|
2371
2409
|
targetStandPerHa?: number | null | undefined;
|
|
2372
2410
|
coverImage?: string | null | undefined;
|
|
@@ -2470,6 +2508,7 @@ export declare const fieldDetailResponseSchema: z.ZodObject<{
|
|
|
2470
2508
|
soilType: string | null;
|
|
2471
2509
|
expectedHarvestDate: string | null;
|
|
2472
2510
|
cropStage: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null;
|
|
2511
|
+
transplantedAt?: string | null | undefined;
|
|
2473
2512
|
standCountPerHa?: number | null | undefined;
|
|
2474
2513
|
targetStandPerHa?: number | null | undefined;
|
|
2475
2514
|
coverImage?: string | null | undefined;
|
|
@@ -2559,6 +2598,7 @@ export declare const fieldDetailResponseSchema: z.ZodObject<{
|
|
|
2559
2598
|
soilType: string | null;
|
|
2560
2599
|
expectedHarvestDate: string | null;
|
|
2561
2600
|
cropStage: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null;
|
|
2601
|
+
transplantedAt?: string | null | undefined;
|
|
2562
2602
|
standCountPerHa?: number | null | undefined;
|
|
2563
2603
|
targetStandPerHa?: number | null | undefined;
|
|
2564
2604
|
coverImage?: string | null | undefined;
|
|
@@ -2651,6 +2691,8 @@ export declare const fieldListResponseSchema: z.ZodObject<{
|
|
|
2651
2691
|
soilType: z.ZodNullable<z.ZodString>;
|
|
2652
2692
|
currentCrop: z.ZodNullable<z.ZodString>;
|
|
2653
2693
|
plantingDate: z.ZodNullable<z.ZodString>;
|
|
2694
|
+
/** Day seedlings went into the field (pepper nursery). Null until confirmed. */
|
|
2695
|
+
transplantedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2654
2696
|
expectedHarvestDate: z.ZodNullable<z.ZodString>;
|
|
2655
2697
|
cropStage: z.ZodNullable<z.ZodEnum<["planted", "growing", "flowering", "fruiting", "mature", "harvested"]>>;
|
|
2656
2698
|
/** Established plant population (plants per hectare). Null if not recorded. */
|
|
@@ -2719,6 +2761,7 @@ export declare const fieldListResponseSchema: z.ZodObject<{
|
|
|
2719
2761
|
soilType: string | null;
|
|
2720
2762
|
expectedHarvestDate: string | null;
|
|
2721
2763
|
cropStage: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null;
|
|
2764
|
+
transplantedAt?: string | null | undefined;
|
|
2722
2765
|
standCountPerHa?: number | null | undefined;
|
|
2723
2766
|
targetStandPerHa?: number | null | undefined;
|
|
2724
2767
|
coverImage?: string | null | undefined;
|
|
@@ -2755,6 +2798,7 @@ export declare const fieldListResponseSchema: z.ZodObject<{
|
|
|
2755
2798
|
soilType: string | null;
|
|
2756
2799
|
expectedHarvestDate: string | null;
|
|
2757
2800
|
cropStage: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null;
|
|
2801
|
+
transplantedAt?: string | null | undefined;
|
|
2758
2802
|
standCountPerHa?: number | null | undefined;
|
|
2759
2803
|
targetStandPerHa?: number | null | undefined;
|
|
2760
2804
|
coverImage?: string | null | undefined;
|
|
@@ -2798,6 +2842,7 @@ export declare const fieldListResponseSchema: z.ZodObject<{
|
|
|
2798
2842
|
soilType: string | null;
|
|
2799
2843
|
expectedHarvestDate: string | null;
|
|
2800
2844
|
cropStage: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null;
|
|
2845
|
+
transplantedAt?: string | null | undefined;
|
|
2801
2846
|
standCountPerHa?: number | null | undefined;
|
|
2802
2847
|
targetStandPerHa?: number | null | undefined;
|
|
2803
2848
|
coverImage?: string | null | undefined;
|
|
@@ -2841,6 +2886,7 @@ export declare const fieldListResponseSchema: z.ZodObject<{
|
|
|
2841
2886
|
soilType: string | null;
|
|
2842
2887
|
expectedHarvestDate: string | null;
|
|
2843
2888
|
cropStage: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null;
|
|
2889
|
+
transplantedAt?: string | null | undefined;
|
|
2844
2890
|
standCountPerHa?: number | null | undefined;
|
|
2845
2891
|
targetStandPerHa?: number | null | undefined;
|
|
2846
2892
|
coverImage?: string | null | undefined;
|
|
@@ -2910,6 +2956,7 @@ export declare const fieldListResponseSchema: z.ZodObject<{
|
|
|
2910
2956
|
soilType: string | null;
|
|
2911
2957
|
expectedHarvestDate: string | null;
|
|
2912
2958
|
cropStage: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null;
|
|
2959
|
+
transplantedAt?: string | null | undefined;
|
|
2913
2960
|
standCountPerHa?: number | null | undefined;
|
|
2914
2961
|
targetStandPerHa?: number | null | undefined;
|
|
2915
2962
|
coverImage?: string | null | undefined;
|
|
@@ -2965,6 +3012,7 @@ export declare const fieldListResponseSchema: z.ZodObject<{
|
|
|
2965
3012
|
soilType: string | null;
|
|
2966
3013
|
expectedHarvestDate: string | null;
|
|
2967
3014
|
cropStage: "planted" | "growing" | "flowering" | "fruiting" | "mature" | "harvested" | null;
|
|
3015
|
+
transplantedAt?: string | null | undefined;
|
|
2968
3016
|
standCountPerHa?: number | null | undefined;
|
|
2969
3017
|
targetStandPerHa?: number | null | undefined;
|
|
2970
3018
|
coverImage?: string | null | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fields.schemas.d.ts","sourceRoot":"","sources":["../../src/schemas/fields.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AASxB;;GAEG;AAGH,eAAO,MAAM,iBAAiB,wCAAsC,CAAC;AAGrE,eAAO,MAAM,eAAe,mFAO1B,CAAC;AAGH,eAAO,MAAM,yBAAyB;;;;;;;;;EAGpC,CAAC;AAGH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;EASjC,CAAC;AAGH,eAAO,MAAM,qBAAqB
|
|
1
|
+
{"version":3,"file":"fields.schemas.d.ts","sourceRoot":"","sources":["../../src/schemas/fields.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AASxB;;GAEG;AAGH,eAAO,MAAM,iBAAiB,wCAAsC,CAAC;AAGrE,eAAO,MAAM,eAAe,mFAO1B,CAAC;AAGH,eAAO,MAAM,yBAAyB;;;;;;;;;EAGpC,CAAC;AAGH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;EASjC,CAAC;AAGH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;IAYhC,gFAAgF;;;;IAIhF,+EAA+E;;IAE/E,kEAAkE;;;IAIlE,mEAAmE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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EAEzD,CAAC;AAEH,eAAO,MAAM,iCAAiC;;;;;QAb5C,wDAAwD;;;;;;;;;QASxD,yDAAyD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAO1D,CAAC;AAEF,eAAO,MAAM,gCAAgC;;;;;;YAlB3C,wDAAwD;;;;;;;;;YASxD,yDAAyD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAW1D,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AACpF,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAC;AAChG,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAC;AAC5F,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC"}
|
|
@@ -43,6 +43,8 @@ export const fieldAttributesSchema = z.object({
|
|
|
43
43
|
// Crop lifecycle
|
|
44
44
|
currentCrop: z.string().nullable(),
|
|
45
45
|
plantingDate: z.string().datetime().nullable(),
|
|
46
|
+
/** Day seedlings went into the field (pepper nursery). Null until confirmed. */
|
|
47
|
+
transplantedAt: z.string().datetime().nullable().optional(),
|
|
46
48
|
expectedHarvestDate: z.string().datetime().nullable(),
|
|
47
49
|
cropStage: cropStageSchema.nullable(),
|
|
48
50
|
/** Established plant population (plants per hectare). Null if not recorded. */
|
|
@@ -82,6 +84,7 @@ export const updateFieldAttributesSchema = createFieldAttributesSchema
|
|
|
82
84
|
area: z.number().positive().max(100000).optional(),
|
|
83
85
|
currentCrop: z.string().nullable().optional(),
|
|
84
86
|
plantingDate: z.string().datetime().nullable().optional(),
|
|
87
|
+
transplantedAt: z.string().datetime().nullable().optional(),
|
|
85
88
|
expectedHarvestDate: z.string().datetime().nullable().optional(),
|
|
86
89
|
cropStage: cropStageSchema.nullable().optional(),
|
|
87
90
|
standCountPerHa: z.number().positive().max(10_000_000).nullable().optional(),
|