@deepintel-ltd/farmpro-contracts 1.36.6 → 1.36.8
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/care-pillar.routes.d.ts +473 -0
- package/dist/routes/care-pillar.routes.d.ts.map +1 -0
- package/dist/routes/care-pillar.routes.js +48 -0
- package/dist/routes/crop-care.routes.d.ts +4788 -0
- package/dist/routes/crop-care.routes.d.ts.map +1 -1
- package/dist/routes/field-activities.routes.d.ts +40 -40
- 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/notifications.routes.d.ts +14 -14
- package/dist/routes/nutrient-plan.routes.d.ts +232 -40
- package/dist/routes/nutrient-plan.routes.d.ts.map +1 -1
- package/dist/routes/orchard-plan.routes.d.ts +6 -6
- package/dist/schemas/care-pillar.schemas.d.ts +728 -0
- package/dist/schemas/care-pillar.schemas.d.ts.map +1 -0
- package/dist/schemas/care-pillar.schemas.js +88 -0
- package/dist/schemas/crop-care.schemas.d.ts +6664 -0
- package/dist/schemas/crop-care.schemas.d.ts.map +1 -1
- package/dist/schemas/crop-care.schemas.js +13 -0
- package/dist/schemas/fertigation-board.schemas.d.ts +66 -0
- package/dist/schemas/fertigation-board.schemas.d.ts.map +1 -1
- package/dist/schemas/fertigation-board.schemas.js +6 -0
- package/dist/schemas/field-activities.schemas.d.ts +35 -35
- package/dist/schemas/field-activities.schemas.d.ts.map +1 -1
- package/dist/schemas/field-activities.schemas.js +11 -1
- package/dist/schemas/notifications.schemas.d.ts +18 -18
- package/dist/schemas/nutrient-plan.schemas.d.ts +62 -16
- package/dist/schemas/nutrient-plan.schemas.d.ts.map +1 -1
- package/dist/schemas/nutrient-plan.schemas.js +2 -0
- package/dist/schemas/orchard-plan.schemas.d.ts +10 -10
- package/package.json +1 -1
|
@@ -12,7 +12,7 @@ export declare const notificationAttributesSchema: z.ZodObject<{
|
|
|
12
12
|
source: z.ZodEnum<["notification", "field_alert", "vendor_payment", "weather_alert"]>;
|
|
13
13
|
createdAt: z.ZodString;
|
|
14
14
|
}, "strip", z.ZodTypeAny, {
|
|
15
|
-
type: "team" | "weather" | "
|
|
15
|
+
type: "team" | "weather" | "system" | "field_alert" | "task" | "payment" | "subscription" | "camera";
|
|
16
16
|
title: string;
|
|
17
17
|
source: "field_alert" | "notification" | "vendor_payment" | "weather_alert";
|
|
18
18
|
createdAt: string;
|
|
@@ -22,7 +22,7 @@ export declare const notificationAttributesSchema: z.ZodObject<{
|
|
|
22
22
|
farmId: string | null;
|
|
23
23
|
readAt: string | null;
|
|
24
24
|
}, {
|
|
25
|
-
type: "team" | "weather" | "
|
|
25
|
+
type: "team" | "weather" | "system" | "field_alert" | "task" | "payment" | "subscription" | "camera";
|
|
26
26
|
title: string;
|
|
27
27
|
source: "field_alert" | "notification" | "vendor_payment" | "weather_alert";
|
|
28
28
|
createdAt: string;
|
|
@@ -46,7 +46,7 @@ export declare const notificationResourceSchema: z.ZodObject<{
|
|
|
46
46
|
source: z.ZodEnum<["notification", "field_alert", "vendor_payment", "weather_alert"]>;
|
|
47
47
|
createdAt: z.ZodString;
|
|
48
48
|
}, "strip", z.ZodTypeAny, {
|
|
49
|
-
type: "team" | "weather" | "
|
|
49
|
+
type: "team" | "weather" | "system" | "field_alert" | "task" | "payment" | "subscription" | "camera";
|
|
50
50
|
title: string;
|
|
51
51
|
source: "field_alert" | "notification" | "vendor_payment" | "weather_alert";
|
|
52
52
|
createdAt: string;
|
|
@@ -56,7 +56,7 @@ export declare const notificationResourceSchema: z.ZodObject<{
|
|
|
56
56
|
farmId: string | null;
|
|
57
57
|
readAt: string | null;
|
|
58
58
|
}, {
|
|
59
|
-
type: "team" | "weather" | "
|
|
59
|
+
type: "team" | "weather" | "system" | "field_alert" | "task" | "payment" | "subscription" | "camera";
|
|
60
60
|
title: string;
|
|
61
61
|
source: "field_alert" | "notification" | "vendor_payment" | "weather_alert";
|
|
62
62
|
createdAt: string;
|
|
@@ -73,7 +73,7 @@ export declare const notificationResourceSchema: z.ZodObject<{
|
|
|
73
73
|
type: string;
|
|
74
74
|
id: string;
|
|
75
75
|
attributes: {
|
|
76
|
-
type: "team" | "weather" | "
|
|
76
|
+
type: "team" | "weather" | "system" | "field_alert" | "task" | "payment" | "subscription" | "camera";
|
|
77
77
|
title: string;
|
|
78
78
|
source: "field_alert" | "notification" | "vendor_payment" | "weather_alert";
|
|
79
79
|
createdAt: string;
|
|
@@ -90,7 +90,7 @@ export declare const notificationResourceSchema: z.ZodObject<{
|
|
|
90
90
|
type: string;
|
|
91
91
|
id: string;
|
|
92
92
|
attributes: {
|
|
93
|
-
type: "team" | "weather" | "
|
|
93
|
+
type: "team" | "weather" | "system" | "field_alert" | "task" | "payment" | "subscription" | "camera";
|
|
94
94
|
title: string;
|
|
95
95
|
source: "field_alert" | "notification" | "vendor_payment" | "weather_alert";
|
|
96
96
|
createdAt: string;
|
|
@@ -119,7 +119,7 @@ export declare const notificationResponseSchema: z.ZodObject<{
|
|
|
119
119
|
source: z.ZodEnum<["notification", "field_alert", "vendor_payment", "weather_alert"]>;
|
|
120
120
|
createdAt: z.ZodString;
|
|
121
121
|
}, "strip", z.ZodTypeAny, {
|
|
122
|
-
type: "team" | "weather" | "
|
|
122
|
+
type: "team" | "weather" | "system" | "field_alert" | "task" | "payment" | "subscription" | "camera";
|
|
123
123
|
title: string;
|
|
124
124
|
source: "field_alert" | "notification" | "vendor_payment" | "weather_alert";
|
|
125
125
|
createdAt: string;
|
|
@@ -129,7 +129,7 @@ export declare const notificationResponseSchema: z.ZodObject<{
|
|
|
129
129
|
farmId: string | null;
|
|
130
130
|
readAt: string | null;
|
|
131
131
|
}, {
|
|
132
|
-
type: "team" | "weather" | "
|
|
132
|
+
type: "team" | "weather" | "system" | "field_alert" | "task" | "payment" | "subscription" | "camera";
|
|
133
133
|
title: string;
|
|
134
134
|
source: "field_alert" | "notification" | "vendor_payment" | "weather_alert";
|
|
135
135
|
createdAt: string;
|
|
@@ -146,7 +146,7 @@ export declare const notificationResponseSchema: z.ZodObject<{
|
|
|
146
146
|
type: string;
|
|
147
147
|
id: string;
|
|
148
148
|
attributes: {
|
|
149
|
-
type: "team" | "weather" | "
|
|
149
|
+
type: "team" | "weather" | "system" | "field_alert" | "task" | "payment" | "subscription" | "camera";
|
|
150
150
|
title: string;
|
|
151
151
|
source: "field_alert" | "notification" | "vendor_payment" | "weather_alert";
|
|
152
152
|
createdAt: string;
|
|
@@ -163,7 +163,7 @@ export declare const notificationResponseSchema: z.ZodObject<{
|
|
|
163
163
|
type: string;
|
|
164
164
|
id: string;
|
|
165
165
|
attributes: {
|
|
166
|
-
type: "team" | "weather" | "
|
|
166
|
+
type: "team" | "weather" | "system" | "field_alert" | "task" | "payment" | "subscription" | "camera";
|
|
167
167
|
title: string;
|
|
168
168
|
source: "field_alert" | "notification" | "vendor_payment" | "weather_alert";
|
|
169
169
|
createdAt: string;
|
|
@@ -206,7 +206,7 @@ export declare const notificationResponseSchema: z.ZodObject<{
|
|
|
206
206
|
type: string;
|
|
207
207
|
id: string;
|
|
208
208
|
attributes: {
|
|
209
|
-
type: "team" | "weather" | "
|
|
209
|
+
type: "team" | "weather" | "system" | "field_alert" | "task" | "payment" | "subscription" | "camera";
|
|
210
210
|
title: string;
|
|
211
211
|
source: "field_alert" | "notification" | "vendor_payment" | "weather_alert";
|
|
212
212
|
createdAt: string;
|
|
@@ -235,7 +235,7 @@ export declare const notificationResponseSchema: z.ZodObject<{
|
|
|
235
235
|
type: string;
|
|
236
236
|
id: string;
|
|
237
237
|
attributes: {
|
|
238
|
-
type: "team" | "weather" | "
|
|
238
|
+
type: "team" | "weather" | "system" | "field_alert" | "task" | "payment" | "subscription" | "camera";
|
|
239
239
|
title: string;
|
|
240
240
|
source: "field_alert" | "notification" | "vendor_payment" | "weather_alert";
|
|
241
241
|
createdAt: string;
|
|
@@ -275,7 +275,7 @@ export declare const notificationListResponseSchema: z.ZodObject<{
|
|
|
275
275
|
source: z.ZodEnum<["notification", "field_alert", "vendor_payment", "weather_alert"]>;
|
|
276
276
|
createdAt: z.ZodString;
|
|
277
277
|
}, "strip", z.ZodTypeAny, {
|
|
278
|
-
type: "team" | "weather" | "
|
|
278
|
+
type: "team" | "weather" | "system" | "field_alert" | "task" | "payment" | "subscription" | "camera";
|
|
279
279
|
title: string;
|
|
280
280
|
source: "field_alert" | "notification" | "vendor_payment" | "weather_alert";
|
|
281
281
|
createdAt: string;
|
|
@@ -285,7 +285,7 @@ export declare const notificationListResponseSchema: z.ZodObject<{
|
|
|
285
285
|
farmId: string | null;
|
|
286
286
|
readAt: string | null;
|
|
287
287
|
}, {
|
|
288
|
-
type: "team" | "weather" | "
|
|
288
|
+
type: "team" | "weather" | "system" | "field_alert" | "task" | "payment" | "subscription" | "camera";
|
|
289
289
|
title: string;
|
|
290
290
|
source: "field_alert" | "notification" | "vendor_payment" | "weather_alert";
|
|
291
291
|
createdAt: string;
|
|
@@ -302,7 +302,7 @@ export declare const notificationListResponseSchema: z.ZodObject<{
|
|
|
302
302
|
type: string;
|
|
303
303
|
id: string;
|
|
304
304
|
attributes: {
|
|
305
|
-
type: "team" | "weather" | "
|
|
305
|
+
type: "team" | "weather" | "system" | "field_alert" | "task" | "payment" | "subscription" | "camera";
|
|
306
306
|
title: string;
|
|
307
307
|
source: "field_alert" | "notification" | "vendor_payment" | "weather_alert";
|
|
308
308
|
createdAt: string;
|
|
@@ -319,7 +319,7 @@ export declare const notificationListResponseSchema: z.ZodObject<{
|
|
|
319
319
|
type: string;
|
|
320
320
|
id: string;
|
|
321
321
|
attributes: {
|
|
322
|
-
type: "team" | "weather" | "
|
|
322
|
+
type: "team" | "weather" | "system" | "field_alert" | "task" | "payment" | "subscription" | "camera";
|
|
323
323
|
title: string;
|
|
324
324
|
source: "field_alert" | "notification" | "vendor_payment" | "weather_alert";
|
|
325
325
|
createdAt: string;
|
|
@@ -362,7 +362,7 @@ export declare const notificationListResponseSchema: z.ZodObject<{
|
|
|
362
362
|
type: string;
|
|
363
363
|
id: string;
|
|
364
364
|
attributes: {
|
|
365
|
-
type: "team" | "weather" | "
|
|
365
|
+
type: "team" | "weather" | "system" | "field_alert" | "task" | "payment" | "subscription" | "camera";
|
|
366
366
|
title: string;
|
|
367
367
|
source: "field_alert" | "notification" | "vendor_payment" | "weather_alert";
|
|
368
368
|
createdAt: string;
|
|
@@ -391,7 +391,7 @@ export declare const notificationListResponseSchema: z.ZodObject<{
|
|
|
391
391
|
type: string;
|
|
392
392
|
id: string;
|
|
393
393
|
attributes: {
|
|
394
|
-
type: "team" | "weather" | "
|
|
394
|
+
type: "team" | "weather" | "system" | "field_alert" | "task" | "payment" | "subscription" | "camera";
|
|
395
395
|
title: string;
|
|
396
396
|
source: "field_alert" | "notification" | "vendor_payment" | "weather_alert";
|
|
397
397
|
createdAt: string;
|
|
@@ -38,11 +38,11 @@ export declare const symptomAnswersSchema: z.ZodObject<{
|
|
|
38
38
|
affected: z.ZodOptional<z.ZodEnum<["few", "many", "most"]>>;
|
|
39
39
|
lastFeed: z.ZodOptional<z.ZodEnum<["recent", "week", "late"]>>;
|
|
40
40
|
}, "strip", z.ZodTypeAny, {
|
|
41
|
-
drainage?: "ok" | "
|
|
41
|
+
drainage?: "ok" | "wet" | "dry" | "waterlogged" | undefined;
|
|
42
42
|
affected?: "many" | "few" | "most" | undefined;
|
|
43
43
|
lastFeed?: "week" | "recent" | "late" | undefined;
|
|
44
44
|
}, {
|
|
45
|
-
drainage?: "ok" | "
|
|
45
|
+
drainage?: "ok" | "wet" | "dry" | "waterlogged" | undefined;
|
|
46
46
|
affected?: "many" | "few" | "most" | undefined;
|
|
47
47
|
lastFeed?: "week" | "recent" | "late" | undefined;
|
|
48
48
|
}>;
|
|
@@ -391,6 +391,17 @@ export declare const yieldToDateSchema: z.ZodObject<{
|
|
|
391
391
|
skippedUnits: boolean;
|
|
392
392
|
}>;
|
|
393
393
|
export declare const nutrientPlanSchema: z.ZodObject<{
|
|
394
|
+
/** The day the plan counts from. Assumed when the farmer has not recorded a transplant date. */
|
|
395
|
+
transplant: z.ZodNullable<z.ZodObject<{
|
|
396
|
+
date: z.ZodString;
|
|
397
|
+
assumed: z.ZodBoolean;
|
|
398
|
+
}, "strip", z.ZodTypeAny, {
|
|
399
|
+
date: string;
|
|
400
|
+
assumed: boolean;
|
|
401
|
+
}, {
|
|
402
|
+
date: string;
|
|
403
|
+
assumed: boolean;
|
|
404
|
+
}>>;
|
|
394
405
|
sheet: z.ZodObject<{
|
|
395
406
|
id: z.ZodString;
|
|
396
407
|
version: z.ZodNumber;
|
|
@@ -428,15 +439,15 @@ export declare const nutrientPlanSchema: z.ZodObject<{
|
|
|
428
439
|
}, "strip", z.ZodTypeAny, {
|
|
429
440
|
id: string;
|
|
430
441
|
label: string;
|
|
431
|
-
railLabel: string;
|
|
432
442
|
dayStart: number;
|
|
433
443
|
dayEnd: number;
|
|
444
|
+
railLabel: string;
|
|
434
445
|
}, {
|
|
435
446
|
id: string;
|
|
436
447
|
label: string;
|
|
437
|
-
railLabel: string;
|
|
438
448
|
dayStart: number;
|
|
439
449
|
dayEnd: number;
|
|
450
|
+
railLabel: string;
|
|
440
451
|
}>;
|
|
441
452
|
fieldDay: z.ZodNumber;
|
|
442
453
|
yieldTargetKgPerPlant: z.ZodNumber;
|
|
@@ -720,15 +731,19 @@ export declare const nutrientPlanSchema: z.ZodObject<{
|
|
|
720
731
|
stage: {
|
|
721
732
|
id: string;
|
|
722
733
|
label: string;
|
|
723
|
-
railLabel: string;
|
|
724
734
|
dayStart: number;
|
|
725
735
|
dayEnd: number;
|
|
736
|
+
railLabel: string;
|
|
726
737
|
};
|
|
727
738
|
fertilizerSet: {
|
|
728
739
|
id: string;
|
|
729
740
|
name: string;
|
|
730
741
|
};
|
|
731
742
|
warnings: string[];
|
|
743
|
+
transplant: {
|
|
744
|
+
date: string;
|
|
745
|
+
assumed: boolean;
|
|
746
|
+
} | null;
|
|
732
747
|
water: {
|
|
733
748
|
notes: string[];
|
|
734
749
|
kc: number;
|
|
@@ -841,15 +856,19 @@ export declare const nutrientPlanSchema: z.ZodObject<{
|
|
|
841
856
|
stage: {
|
|
842
857
|
id: string;
|
|
843
858
|
label: string;
|
|
844
|
-
railLabel: string;
|
|
845
859
|
dayStart: number;
|
|
846
860
|
dayEnd: number;
|
|
861
|
+
railLabel: string;
|
|
847
862
|
};
|
|
848
863
|
fertilizerSet: {
|
|
849
864
|
id: string;
|
|
850
865
|
name: string;
|
|
851
866
|
};
|
|
852
867
|
warnings: string[];
|
|
868
|
+
transplant: {
|
|
869
|
+
date: string;
|
|
870
|
+
assumed: boolean;
|
|
871
|
+
} | null;
|
|
853
872
|
water: {
|
|
854
873
|
notes: string[];
|
|
855
874
|
kc: number;
|
|
@@ -966,6 +985,17 @@ export declare const nutrientPlanResponseSchema: z.ZodObject<{
|
|
|
966
985
|
/** Why there is no plan, in words the farmer can act on. Null when status is ok. */
|
|
967
986
|
message: z.ZodNullable<z.ZodString>;
|
|
968
987
|
plan: z.ZodNullable<z.ZodObject<{
|
|
988
|
+
/** The day the plan counts from. Assumed when the farmer has not recorded a transplant date. */
|
|
989
|
+
transplant: z.ZodNullable<z.ZodObject<{
|
|
990
|
+
date: z.ZodString;
|
|
991
|
+
assumed: z.ZodBoolean;
|
|
992
|
+
}, "strip", z.ZodTypeAny, {
|
|
993
|
+
date: string;
|
|
994
|
+
assumed: boolean;
|
|
995
|
+
}, {
|
|
996
|
+
date: string;
|
|
997
|
+
assumed: boolean;
|
|
998
|
+
}>>;
|
|
969
999
|
sheet: z.ZodObject<{
|
|
970
1000
|
id: z.ZodString;
|
|
971
1001
|
version: z.ZodNumber;
|
|
@@ -1003,15 +1033,15 @@ export declare const nutrientPlanResponseSchema: z.ZodObject<{
|
|
|
1003
1033
|
}, "strip", z.ZodTypeAny, {
|
|
1004
1034
|
id: string;
|
|
1005
1035
|
label: string;
|
|
1006
|
-
railLabel: string;
|
|
1007
1036
|
dayStart: number;
|
|
1008
1037
|
dayEnd: number;
|
|
1038
|
+
railLabel: string;
|
|
1009
1039
|
}, {
|
|
1010
1040
|
id: string;
|
|
1011
1041
|
label: string;
|
|
1012
|
-
railLabel: string;
|
|
1013
1042
|
dayStart: number;
|
|
1014
1043
|
dayEnd: number;
|
|
1044
|
+
railLabel: string;
|
|
1015
1045
|
}>;
|
|
1016
1046
|
fieldDay: z.ZodNumber;
|
|
1017
1047
|
yieldTargetKgPerPlant: z.ZodNumber;
|
|
@@ -1295,15 +1325,19 @@ export declare const nutrientPlanResponseSchema: z.ZodObject<{
|
|
|
1295
1325
|
stage: {
|
|
1296
1326
|
id: string;
|
|
1297
1327
|
label: string;
|
|
1298
|
-
railLabel: string;
|
|
1299
1328
|
dayStart: number;
|
|
1300
1329
|
dayEnd: number;
|
|
1330
|
+
railLabel: string;
|
|
1301
1331
|
};
|
|
1302
1332
|
fertilizerSet: {
|
|
1303
1333
|
id: string;
|
|
1304
1334
|
name: string;
|
|
1305
1335
|
};
|
|
1306
1336
|
warnings: string[];
|
|
1337
|
+
transplant: {
|
|
1338
|
+
date: string;
|
|
1339
|
+
assumed: boolean;
|
|
1340
|
+
} | null;
|
|
1307
1341
|
water: {
|
|
1308
1342
|
notes: string[];
|
|
1309
1343
|
kc: number;
|
|
@@ -1416,15 +1450,19 @@ export declare const nutrientPlanResponseSchema: z.ZodObject<{
|
|
|
1416
1450
|
stage: {
|
|
1417
1451
|
id: string;
|
|
1418
1452
|
label: string;
|
|
1419
|
-
railLabel: string;
|
|
1420
1453
|
dayStart: number;
|
|
1421
1454
|
dayEnd: number;
|
|
1455
|
+
railLabel: string;
|
|
1422
1456
|
};
|
|
1423
1457
|
fertilizerSet: {
|
|
1424
1458
|
id: string;
|
|
1425
1459
|
name: string;
|
|
1426
1460
|
};
|
|
1427
1461
|
warnings: string[];
|
|
1462
|
+
transplant: {
|
|
1463
|
+
date: string;
|
|
1464
|
+
assumed: boolean;
|
|
1465
|
+
} | null;
|
|
1428
1466
|
water: {
|
|
1429
1467
|
notes: string[];
|
|
1430
1468
|
kc: number;
|
|
@@ -1833,15 +1871,19 @@ export declare const nutrientPlanResponseSchema: z.ZodObject<{
|
|
|
1833
1871
|
stage: {
|
|
1834
1872
|
id: string;
|
|
1835
1873
|
label: string;
|
|
1836
|
-
railLabel: string;
|
|
1837
1874
|
dayStart: number;
|
|
1838
1875
|
dayEnd: number;
|
|
1876
|
+
railLabel: string;
|
|
1839
1877
|
};
|
|
1840
1878
|
fertilizerSet: {
|
|
1841
1879
|
id: string;
|
|
1842
1880
|
name: string;
|
|
1843
1881
|
};
|
|
1844
1882
|
warnings: string[];
|
|
1883
|
+
transplant: {
|
|
1884
|
+
date: string;
|
|
1885
|
+
assumed: boolean;
|
|
1886
|
+
} | null;
|
|
1845
1887
|
water: {
|
|
1846
1888
|
notes: string[];
|
|
1847
1889
|
kc: number;
|
|
@@ -2023,15 +2065,19 @@ export declare const nutrientPlanResponseSchema: z.ZodObject<{
|
|
|
2023
2065
|
stage: {
|
|
2024
2066
|
id: string;
|
|
2025
2067
|
label: string;
|
|
2026
|
-
railLabel: string;
|
|
2027
2068
|
dayStart: number;
|
|
2028
2069
|
dayEnd: number;
|
|
2070
|
+
railLabel: string;
|
|
2029
2071
|
};
|
|
2030
2072
|
fertilizerSet: {
|
|
2031
2073
|
id: string;
|
|
2032
2074
|
name: string;
|
|
2033
2075
|
};
|
|
2034
2076
|
warnings: string[];
|
|
2077
|
+
transplant: {
|
|
2078
|
+
date: string;
|
|
2079
|
+
assumed: boolean;
|
|
2080
|
+
} | null;
|
|
2035
2081
|
water: {
|
|
2036
2082
|
notes: string[];
|
|
2037
2083
|
kc: number;
|
|
@@ -2250,11 +2296,11 @@ export declare const reportSymptomBodySchema: z.ZodObject<{
|
|
|
2250
2296
|
affected: z.ZodOptional<z.ZodEnum<["few", "many", "most"]>>;
|
|
2251
2297
|
lastFeed: z.ZodOptional<z.ZodEnum<["recent", "week", "late"]>>;
|
|
2252
2298
|
}, "strip", z.ZodTypeAny, {
|
|
2253
|
-
drainage?: "ok" | "
|
|
2299
|
+
drainage?: "ok" | "wet" | "dry" | "waterlogged" | undefined;
|
|
2254
2300
|
affected?: "many" | "few" | "most" | undefined;
|
|
2255
2301
|
lastFeed?: "week" | "recent" | "late" | undefined;
|
|
2256
2302
|
}, {
|
|
2257
|
-
drainage?: "ok" | "
|
|
2303
|
+
drainage?: "ok" | "wet" | "dry" | "waterlogged" | undefined;
|
|
2258
2304
|
affected?: "many" | "few" | "most" | undefined;
|
|
2259
2305
|
lastFeed?: "week" | "recent" | "late" | undefined;
|
|
2260
2306
|
}>>;
|
|
@@ -2263,7 +2309,7 @@ export declare const reportSymptomBodySchema: z.ZodObject<{
|
|
|
2263
2309
|
symptomId: "yellow-old-leaves" | "yellow-new-leaves" | "yellow-between-veins" | "pale-all-over" | "purple-leaves" | "leaf-edge-burn" | "salt-crust" | "soft-fruit-tips" | "flower-drop" | "wilting-wet-soil" | "stunted-slow" | "damping-off";
|
|
2264
2310
|
notes?: string | undefined;
|
|
2265
2311
|
answers?: {
|
|
2266
|
-
drainage?: "ok" | "
|
|
2312
|
+
drainage?: "ok" | "wet" | "dry" | "waterlogged" | undefined;
|
|
2267
2313
|
affected?: "many" | "few" | "most" | undefined;
|
|
2268
2314
|
lastFeed?: "week" | "recent" | "late" | undefined;
|
|
2269
2315
|
} | undefined;
|
|
@@ -2271,7 +2317,7 @@ export declare const reportSymptomBodySchema: z.ZodObject<{
|
|
|
2271
2317
|
symptomId: "yellow-old-leaves" | "yellow-new-leaves" | "yellow-between-veins" | "pale-all-over" | "purple-leaves" | "leaf-edge-burn" | "salt-crust" | "soft-fruit-tips" | "flower-drop" | "wilting-wet-soil" | "stunted-slow" | "damping-off";
|
|
2272
2318
|
notes?: string | undefined;
|
|
2273
2319
|
answers?: {
|
|
2274
|
-
drainage?: "ok" | "
|
|
2320
|
+
drainage?: "ok" | "wet" | "dry" | "waterlogged" | undefined;
|
|
2275
2321
|
affected?: "many" | "few" | "most" | undefined;
|
|
2276
2322
|
lastFeed?: "week" | "recent" | "late" | undefined;
|
|
2277
2323
|
} | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nutrient-plan.schemas.d.ts","sourceRoot":"","sources":["../../src/schemas/nutrient-plan.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAYxB,eAAO,MAAM,uBAAuB;;;IAGlC,4FAA4F;;;IAG5F,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;EAMtF,CAAC;AAEH,eAAO,MAAM,eAAe,sOAa1B,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;EAI/B,CAAC;AAEH,wFAAwF;AACxF,eAAO,MAAM,oBAAoB;;;;;;;IAO/B,gDAAgD;;;;;IAKhD,wDAAwD;;IAExD,yEAAyE;;IAEzE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEjF,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAb5B,gDAAgD;;;;;QAKhD,wDAAwD;;QAExD,yEAAyE;;QAEzE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkBjF,CAAC;AAEH,eAAO,MAAM,sBAAsB;;IAEjC,uFAAuF;;;;;;;;;;;;;;;;;;;;IAEvF,0DAA0D;;;;;;;;;;;;;;;;;;;;;;EAE1D,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;;;QANpC,uFAAuF;;;;;;;;;;;;;;;;;;;;QAEvF,0DAA0D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAW1D,CAAC;AAEH,eAAO,M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,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAC1E,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC5E,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAC1E,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAClE,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC"}
|
|
@@ -99,6 +99,8 @@ export const yieldToDateSchema = z.object({
|
|
|
99
99
|
skippedUnits: z.boolean(),
|
|
100
100
|
});
|
|
101
101
|
export const nutrientPlanSchema = z.object({
|
|
102
|
+
/** The day the plan counts from. Assumed when the farmer has not recorded a transplant date. */
|
|
103
|
+
transplant: z.object({ date: z.string(), assumed: z.boolean() }).nullable(),
|
|
102
104
|
sheet: z.object({
|
|
103
105
|
id: z.string(),
|
|
104
106
|
version: z.number(),
|
|
@@ -441,7 +441,7 @@ export declare const orchardPlanSchema: z.ZodObject<{
|
|
|
441
441
|
plantedAt: string;
|
|
442
442
|
ageDays: number;
|
|
443
443
|
treeCount: number | null;
|
|
444
|
-
treeCountSource: "unknown" | "
|
|
444
|
+
treeCountSource: "unknown" | "assumed" | "counted" | "stand";
|
|
445
445
|
}, {
|
|
446
446
|
stage: {
|
|
447
447
|
id: string;
|
|
@@ -454,7 +454,7 @@ export declare const orchardPlanSchema: z.ZodObject<{
|
|
|
454
454
|
plantedAt: string;
|
|
455
455
|
ageDays: number;
|
|
456
456
|
treeCount: number | null;
|
|
457
|
-
treeCountSource: "unknown" | "
|
|
457
|
+
treeCountSource: "unknown" | "assumed" | "counted" | "stand";
|
|
458
458
|
}>;
|
|
459
459
|
month: z.ZodObject<{
|
|
460
460
|
month: z.ZodNumber;
|
|
@@ -865,7 +865,7 @@ export declare const orchardPlanSchema: z.ZodObject<{
|
|
|
865
865
|
plantedAt: string;
|
|
866
866
|
ageDays: number;
|
|
867
867
|
treeCount: number | null;
|
|
868
|
-
treeCountSource: "unknown" | "
|
|
868
|
+
treeCountSource: "unknown" | "assumed" | "counted" | "stand";
|
|
869
869
|
};
|
|
870
870
|
nutrition: {
|
|
871
871
|
note: string | null;
|
|
@@ -972,7 +972,7 @@ export declare const orchardPlanSchema: z.ZodObject<{
|
|
|
972
972
|
plantedAt: string;
|
|
973
973
|
ageDays: number;
|
|
974
974
|
treeCount: number | null;
|
|
975
|
-
treeCountSource: "unknown" | "
|
|
975
|
+
treeCountSource: "unknown" | "assumed" | "counted" | "stand";
|
|
976
976
|
};
|
|
977
977
|
nutrition: {
|
|
978
978
|
note: string | null;
|
|
@@ -1113,7 +1113,7 @@ export declare const orchardPlanResponseSchema: z.ZodObject<{
|
|
|
1113
1113
|
plantedAt: string;
|
|
1114
1114
|
ageDays: number;
|
|
1115
1115
|
treeCount: number | null;
|
|
1116
|
-
treeCountSource: "unknown" | "
|
|
1116
|
+
treeCountSource: "unknown" | "assumed" | "counted" | "stand";
|
|
1117
1117
|
}, {
|
|
1118
1118
|
stage: {
|
|
1119
1119
|
id: string;
|
|
@@ -1126,7 +1126,7 @@ export declare const orchardPlanResponseSchema: z.ZodObject<{
|
|
|
1126
1126
|
plantedAt: string;
|
|
1127
1127
|
ageDays: number;
|
|
1128
1128
|
treeCount: number | null;
|
|
1129
|
-
treeCountSource: "unknown" | "
|
|
1129
|
+
treeCountSource: "unknown" | "assumed" | "counted" | "stand";
|
|
1130
1130
|
}>;
|
|
1131
1131
|
month: z.ZodObject<{
|
|
1132
1132
|
month: z.ZodNumber;
|
|
@@ -1537,7 +1537,7 @@ export declare const orchardPlanResponseSchema: z.ZodObject<{
|
|
|
1537
1537
|
plantedAt: string;
|
|
1538
1538
|
ageDays: number;
|
|
1539
1539
|
treeCount: number | null;
|
|
1540
|
-
treeCountSource: "unknown" | "
|
|
1540
|
+
treeCountSource: "unknown" | "assumed" | "counted" | "stand";
|
|
1541
1541
|
};
|
|
1542
1542
|
nutrition: {
|
|
1543
1543
|
note: string | null;
|
|
@@ -1644,7 +1644,7 @@ export declare const orchardPlanResponseSchema: z.ZodObject<{
|
|
|
1644
1644
|
plantedAt: string;
|
|
1645
1645
|
ageDays: number;
|
|
1646
1646
|
treeCount: number | null;
|
|
1647
|
-
treeCountSource: "unknown" | "
|
|
1647
|
+
treeCountSource: "unknown" | "assumed" | "counted" | "stand";
|
|
1648
1648
|
};
|
|
1649
1649
|
nutrition: {
|
|
1650
1650
|
note: string | null;
|
|
@@ -1757,7 +1757,7 @@ export declare const orchardPlanResponseSchema: z.ZodObject<{
|
|
|
1757
1757
|
plantedAt: string;
|
|
1758
1758
|
ageDays: number;
|
|
1759
1759
|
treeCount: number | null;
|
|
1760
|
-
treeCountSource: "unknown" | "
|
|
1760
|
+
treeCountSource: "unknown" | "assumed" | "counted" | "stand";
|
|
1761
1761
|
};
|
|
1762
1762
|
nutrition: {
|
|
1763
1763
|
note: string | null;
|
|
@@ -1870,7 +1870,7 @@ export declare const orchardPlanResponseSchema: z.ZodObject<{
|
|
|
1870
1870
|
plantedAt: string;
|
|
1871
1871
|
ageDays: number;
|
|
1872
1872
|
treeCount: number | null;
|
|
1873
|
-
treeCountSource: "unknown" | "
|
|
1873
|
+
treeCountSource: "unknown" | "assumed" | "counted" | "stand";
|
|
1874
1874
|
};
|
|
1875
1875
|
nutrition: {
|
|
1876
1876
|
note: string | null;
|