@deepintel-ltd/farmpro-contracts 1.35.0 → 1.36.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 +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/routes/nutrient-plan.routes.d.ts +7081 -11
- package/dist/routes/nutrient-plan.routes.d.ts.map +1 -1
- package/dist/routes/nutrient-plan.routes.js +81 -9
- package/dist/routes/pest-disease-risk.routes.d.ts +22 -22
- package/dist/schemas/nutrient-plan.schemas.d.ts +1394 -12
- package/dist/schemas/nutrient-plan.schemas.d.ts.map +1 -1
- package/dist/schemas/nutrient-plan.schemas.js +148 -0
- package/dist/schemas/pest-disease-risk.schemas.d.ts +18 -18
- package/package.json +1 -1
|
@@ -32,6 +32,364 @@ export declare const nutrientPlanWaterSchema: z.ZodObject<{
|
|
|
32
32
|
litresPerPlantPerDay: number;
|
|
33
33
|
fieldLitresPerDay: number | null;
|
|
34
34
|
}>;
|
|
35
|
+
export declare const symptomIdSchema: z.ZodEnum<["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"]>;
|
|
36
|
+
export declare const symptomAnswersSchema: z.ZodObject<{
|
|
37
|
+
drainage: z.ZodOptional<z.ZodEnum<["waterlogged", "wet", "ok", "dry"]>>;
|
|
38
|
+
affected: z.ZodOptional<z.ZodEnum<["few", "many", "most"]>>;
|
|
39
|
+
lastFeed: z.ZodOptional<z.ZodEnum<["recent", "week", "late"]>>;
|
|
40
|
+
}, "strip", z.ZodTypeAny, {
|
|
41
|
+
drainage?: "ok" | "waterlogged" | "wet" | "dry" | undefined;
|
|
42
|
+
affected?: "many" | "few" | "most" | undefined;
|
|
43
|
+
lastFeed?: "week" | "recent" | "late" | undefined;
|
|
44
|
+
}, {
|
|
45
|
+
drainage?: "ok" | "waterlogged" | "wet" | "dry" | undefined;
|
|
46
|
+
affected?: "many" | "few" | "most" | undefined;
|
|
47
|
+
lastFeed?: "week" | "recent" | "late" | undefined;
|
|
48
|
+
}>;
|
|
49
|
+
/** One change to a plan, with why, how sure we are, what to check, and when it ends. */
|
|
50
|
+
export declare const planAdjustmentSchema: z.ZodObject<{
|
|
51
|
+
id: z.ZodOptional<z.ZodString>;
|
|
52
|
+
ruleId: z.ZodString;
|
|
53
|
+
kind: z.ZodEnum<["urgent", "weekly"]>;
|
|
54
|
+
title: z.ZodString;
|
|
55
|
+
reason: z.ZodString;
|
|
56
|
+
evidence: z.ZodEnum<["measured", "observed", "estimated"]>;
|
|
57
|
+
/** For example "Nitrogen +20%, flush first". */
|
|
58
|
+
effectSummary: z.ZodString;
|
|
59
|
+
actions: z.ZodArray<z.ZodString, "many">;
|
|
60
|
+
expiresAt: z.ZodOptional<z.ZodString>;
|
|
61
|
+
trigger: z.ZodOptional<z.ZodString>;
|
|
62
|
+
/** A preview: shown, but it did not change the plan. */
|
|
63
|
+
shadow: z.ZodBoolean;
|
|
64
|
+
/** False when set aside (a preview, or settled by a measured result). */
|
|
65
|
+
applied: z.ZodBoolean;
|
|
66
|
+
/** proposed: waiting for the farmer to apply it (automatic adjusting is off). */
|
|
67
|
+
status: z.ZodEnum<["active", "proposed"]>;
|
|
68
|
+
}, "strip", z.ZodTypeAny, {
|
|
69
|
+
status: "active" | "proposed";
|
|
70
|
+
title: string;
|
|
71
|
+
reason: string;
|
|
72
|
+
kind: "weekly" | "urgent";
|
|
73
|
+
applied: boolean;
|
|
74
|
+
actions: string[];
|
|
75
|
+
ruleId: string;
|
|
76
|
+
evidence: "observed" | "measured" | "estimated";
|
|
77
|
+
effectSummary: string;
|
|
78
|
+
shadow: boolean;
|
|
79
|
+
id?: string | undefined;
|
|
80
|
+
expiresAt?: string | undefined;
|
|
81
|
+
trigger?: string | undefined;
|
|
82
|
+
}, {
|
|
83
|
+
status: "active" | "proposed";
|
|
84
|
+
title: string;
|
|
85
|
+
reason: string;
|
|
86
|
+
kind: "weekly" | "urgent";
|
|
87
|
+
applied: boolean;
|
|
88
|
+
actions: string[];
|
|
89
|
+
ruleId: string;
|
|
90
|
+
evidence: "observed" | "measured" | "estimated";
|
|
91
|
+
effectSummary: string;
|
|
92
|
+
shadow: boolean;
|
|
93
|
+
id?: string | undefined;
|
|
94
|
+
expiresAt?: string | undefined;
|
|
95
|
+
trigger?: string | undefined;
|
|
96
|
+
}>;
|
|
97
|
+
export declare const nurseryPlanSchema: z.ZodObject<{
|
|
98
|
+
stage: z.ZodObject<{
|
|
99
|
+
id: z.ZodString;
|
|
100
|
+
label: z.ZodString;
|
|
101
|
+
dayStart: z.ZodNumber;
|
|
102
|
+
dayEnd: z.ZodNumber;
|
|
103
|
+
}, "strip", z.ZodTypeAny, {
|
|
104
|
+
id: string;
|
|
105
|
+
label: string;
|
|
106
|
+
dayStart: number;
|
|
107
|
+
dayEnd: number;
|
|
108
|
+
}, {
|
|
109
|
+
id: string;
|
|
110
|
+
label: string;
|
|
111
|
+
dayStart: number;
|
|
112
|
+
dayEnd: number;
|
|
113
|
+
}>;
|
|
114
|
+
sowDay: z.ZodNumber;
|
|
115
|
+
product: z.ZodString;
|
|
116
|
+
gPerLitre: z.ZodNumber;
|
|
117
|
+
ppmNitrogen: z.ZodNumber;
|
|
118
|
+
maxGPerLitre: z.ZodNumber;
|
|
119
|
+
maxEcMsPerCm: z.ZodNumber;
|
|
120
|
+
feedsPerWeek: z.ZodNumber;
|
|
121
|
+
feedHold: z.ZodBoolean;
|
|
122
|
+
flush: z.ZodBoolean;
|
|
123
|
+
noFeedStage: z.ZodBoolean;
|
|
124
|
+
adjustments: z.ZodArray<z.ZodObject<{
|
|
125
|
+
id: z.ZodOptional<z.ZodString>;
|
|
126
|
+
ruleId: z.ZodString;
|
|
127
|
+
kind: z.ZodEnum<["urgent", "weekly"]>;
|
|
128
|
+
title: z.ZodString;
|
|
129
|
+
reason: z.ZodString;
|
|
130
|
+
evidence: z.ZodEnum<["measured", "observed", "estimated"]>;
|
|
131
|
+
/** For example "Nitrogen +20%, flush first". */
|
|
132
|
+
effectSummary: z.ZodString;
|
|
133
|
+
actions: z.ZodArray<z.ZodString, "many">;
|
|
134
|
+
expiresAt: z.ZodOptional<z.ZodString>;
|
|
135
|
+
trigger: z.ZodOptional<z.ZodString>;
|
|
136
|
+
/** A preview: shown, but it did not change the plan. */
|
|
137
|
+
shadow: z.ZodBoolean;
|
|
138
|
+
/** False when set aside (a preview, or settled by a measured result). */
|
|
139
|
+
applied: z.ZodBoolean;
|
|
140
|
+
/** proposed: waiting for the farmer to apply it (automatic adjusting is off). */
|
|
141
|
+
status: z.ZodEnum<["active", "proposed"]>;
|
|
142
|
+
}, "strip", z.ZodTypeAny, {
|
|
143
|
+
status: "active" | "proposed";
|
|
144
|
+
title: string;
|
|
145
|
+
reason: string;
|
|
146
|
+
kind: "weekly" | "urgent";
|
|
147
|
+
applied: boolean;
|
|
148
|
+
actions: string[];
|
|
149
|
+
ruleId: string;
|
|
150
|
+
evidence: "observed" | "measured" | "estimated";
|
|
151
|
+
effectSummary: string;
|
|
152
|
+
shadow: boolean;
|
|
153
|
+
id?: string | undefined;
|
|
154
|
+
expiresAt?: string | undefined;
|
|
155
|
+
trigger?: string | undefined;
|
|
156
|
+
}, {
|
|
157
|
+
status: "active" | "proposed";
|
|
158
|
+
title: string;
|
|
159
|
+
reason: string;
|
|
160
|
+
kind: "weekly" | "urgent";
|
|
161
|
+
applied: boolean;
|
|
162
|
+
actions: string[];
|
|
163
|
+
ruleId: string;
|
|
164
|
+
evidence: "observed" | "measured" | "estimated";
|
|
165
|
+
effectSummary: string;
|
|
166
|
+
shadow: boolean;
|
|
167
|
+
id?: string | undefined;
|
|
168
|
+
expiresAt?: string | undefined;
|
|
169
|
+
trigger?: string | undefined;
|
|
170
|
+
}>, "many">;
|
|
171
|
+
notes: z.ZodArray<z.ZodString, "many">;
|
|
172
|
+
}, "strip", z.ZodTypeAny, {
|
|
173
|
+
notes: string[];
|
|
174
|
+
stage: {
|
|
175
|
+
id: string;
|
|
176
|
+
label: string;
|
|
177
|
+
dayStart: number;
|
|
178
|
+
dayEnd: number;
|
|
179
|
+
};
|
|
180
|
+
product: string;
|
|
181
|
+
adjustments: {
|
|
182
|
+
status: "active" | "proposed";
|
|
183
|
+
title: string;
|
|
184
|
+
reason: string;
|
|
185
|
+
kind: "weekly" | "urgent";
|
|
186
|
+
applied: boolean;
|
|
187
|
+
actions: string[];
|
|
188
|
+
ruleId: string;
|
|
189
|
+
evidence: "observed" | "measured" | "estimated";
|
|
190
|
+
effectSummary: string;
|
|
191
|
+
shadow: boolean;
|
|
192
|
+
id?: string | undefined;
|
|
193
|
+
expiresAt?: string | undefined;
|
|
194
|
+
trigger?: string | undefined;
|
|
195
|
+
}[];
|
|
196
|
+
sowDay: number;
|
|
197
|
+
gPerLitre: number;
|
|
198
|
+
ppmNitrogen: number;
|
|
199
|
+
maxGPerLitre: number;
|
|
200
|
+
maxEcMsPerCm: number;
|
|
201
|
+
feedsPerWeek: number;
|
|
202
|
+
feedHold: boolean;
|
|
203
|
+
flush: boolean;
|
|
204
|
+
noFeedStage: boolean;
|
|
205
|
+
}, {
|
|
206
|
+
notes: string[];
|
|
207
|
+
stage: {
|
|
208
|
+
id: string;
|
|
209
|
+
label: string;
|
|
210
|
+
dayStart: number;
|
|
211
|
+
dayEnd: number;
|
|
212
|
+
};
|
|
213
|
+
product: string;
|
|
214
|
+
adjustments: {
|
|
215
|
+
status: "active" | "proposed";
|
|
216
|
+
title: string;
|
|
217
|
+
reason: string;
|
|
218
|
+
kind: "weekly" | "urgent";
|
|
219
|
+
applied: boolean;
|
|
220
|
+
actions: string[];
|
|
221
|
+
ruleId: string;
|
|
222
|
+
evidence: "observed" | "measured" | "estimated";
|
|
223
|
+
effectSummary: string;
|
|
224
|
+
shadow: boolean;
|
|
225
|
+
id?: string | undefined;
|
|
226
|
+
expiresAt?: string | undefined;
|
|
227
|
+
trigger?: string | undefined;
|
|
228
|
+
}[];
|
|
229
|
+
sowDay: number;
|
|
230
|
+
gPerLitre: number;
|
|
231
|
+
ppmNitrogen: number;
|
|
232
|
+
maxGPerLitre: number;
|
|
233
|
+
maxEcMsPerCm: number;
|
|
234
|
+
feedsPerWeek: number;
|
|
235
|
+
feedHold: boolean;
|
|
236
|
+
flush: boolean;
|
|
237
|
+
noFeedStage: boolean;
|
|
238
|
+
}>;
|
|
239
|
+
export declare const confirmedProductSchema: z.ZodObject<{
|
|
240
|
+
productId: z.ZodString;
|
|
241
|
+
/** Percent of product mass printed on the bag. Omit to keep the catalogue analysis. */
|
|
242
|
+
analysis: z.ZodOptional<z.ZodObject<{
|
|
243
|
+
N: z.ZodNumber;
|
|
244
|
+
P2O5: z.ZodNumber;
|
|
245
|
+
K2O: z.ZodNumber;
|
|
246
|
+
CaO: z.ZodNumber;
|
|
247
|
+
MgO: z.ZodNumber;
|
|
248
|
+
}, "strip", z.ZodTypeAny, {
|
|
249
|
+
N: number;
|
|
250
|
+
P2O5: number;
|
|
251
|
+
K2O: number;
|
|
252
|
+
CaO: number;
|
|
253
|
+
MgO: number;
|
|
254
|
+
}, {
|
|
255
|
+
N: number;
|
|
256
|
+
P2O5: number;
|
|
257
|
+
K2O: number;
|
|
258
|
+
CaO: number;
|
|
259
|
+
MgO: number;
|
|
260
|
+
}>>;
|
|
261
|
+
/** The bag says it can go through drip or fertigation. */
|
|
262
|
+
dripSafe: z.ZodBoolean;
|
|
263
|
+
}, "strip", z.ZodTypeAny, {
|
|
264
|
+
productId: string;
|
|
265
|
+
dripSafe: boolean;
|
|
266
|
+
analysis?: {
|
|
267
|
+
N: number;
|
|
268
|
+
P2O5: number;
|
|
269
|
+
K2O: number;
|
|
270
|
+
CaO: number;
|
|
271
|
+
MgO: number;
|
|
272
|
+
} | undefined;
|
|
273
|
+
}, {
|
|
274
|
+
productId: string;
|
|
275
|
+
dripSafe: boolean;
|
|
276
|
+
analysis?: {
|
|
277
|
+
N: number;
|
|
278
|
+
P2O5: number;
|
|
279
|
+
K2O: number;
|
|
280
|
+
CaO: number;
|
|
281
|
+
MgO: number;
|
|
282
|
+
} | undefined;
|
|
283
|
+
}>;
|
|
284
|
+
export declare const fertigationSettingsSchema: z.ZodObject<{
|
|
285
|
+
yieldTargetKgPerPlant: z.ZodNullable<z.ZodNumber>;
|
|
286
|
+
fertilizerSetId: z.ZodNullable<z.ZodString>;
|
|
287
|
+
mulched: z.ZodNullable<z.ZodBoolean>;
|
|
288
|
+
feedIntensity: z.ZodNullable<z.ZodNumber>;
|
|
289
|
+
autoAdjust: z.ZodBoolean;
|
|
290
|
+
confirmedProducts: z.ZodArray<z.ZodObject<{
|
|
291
|
+
productId: z.ZodString;
|
|
292
|
+
/** Percent of product mass printed on the bag. Omit to keep the catalogue analysis. */
|
|
293
|
+
analysis: z.ZodOptional<z.ZodObject<{
|
|
294
|
+
N: z.ZodNumber;
|
|
295
|
+
P2O5: z.ZodNumber;
|
|
296
|
+
K2O: z.ZodNumber;
|
|
297
|
+
CaO: z.ZodNumber;
|
|
298
|
+
MgO: z.ZodNumber;
|
|
299
|
+
}, "strip", z.ZodTypeAny, {
|
|
300
|
+
N: number;
|
|
301
|
+
P2O5: number;
|
|
302
|
+
K2O: number;
|
|
303
|
+
CaO: number;
|
|
304
|
+
MgO: number;
|
|
305
|
+
}, {
|
|
306
|
+
N: number;
|
|
307
|
+
P2O5: number;
|
|
308
|
+
K2O: number;
|
|
309
|
+
CaO: number;
|
|
310
|
+
MgO: number;
|
|
311
|
+
}>>;
|
|
312
|
+
/** The bag says it can go through drip or fertigation. */
|
|
313
|
+
dripSafe: z.ZodBoolean;
|
|
314
|
+
}, "strip", z.ZodTypeAny, {
|
|
315
|
+
productId: string;
|
|
316
|
+
dripSafe: boolean;
|
|
317
|
+
analysis?: {
|
|
318
|
+
N: number;
|
|
319
|
+
P2O5: number;
|
|
320
|
+
K2O: number;
|
|
321
|
+
CaO: number;
|
|
322
|
+
MgO: number;
|
|
323
|
+
} | undefined;
|
|
324
|
+
}, {
|
|
325
|
+
productId: string;
|
|
326
|
+
dripSafe: boolean;
|
|
327
|
+
analysis?: {
|
|
328
|
+
N: number;
|
|
329
|
+
P2O5: number;
|
|
330
|
+
K2O: number;
|
|
331
|
+
CaO: number;
|
|
332
|
+
MgO: number;
|
|
333
|
+
} | undefined;
|
|
334
|
+
}>, "many">;
|
|
335
|
+
}, "strip", z.ZodTypeAny, {
|
|
336
|
+
yieldTargetKgPerPlant: number | null;
|
|
337
|
+
fertilizerSetId: string | null;
|
|
338
|
+
mulched: boolean | null;
|
|
339
|
+
feedIntensity: number | null;
|
|
340
|
+
autoAdjust: boolean;
|
|
341
|
+
confirmedProducts: {
|
|
342
|
+
productId: string;
|
|
343
|
+
dripSafe: boolean;
|
|
344
|
+
analysis?: {
|
|
345
|
+
N: number;
|
|
346
|
+
P2O5: number;
|
|
347
|
+
K2O: number;
|
|
348
|
+
CaO: number;
|
|
349
|
+
MgO: number;
|
|
350
|
+
} | undefined;
|
|
351
|
+
}[];
|
|
352
|
+
}, {
|
|
353
|
+
yieldTargetKgPerPlant: number | null;
|
|
354
|
+
fertilizerSetId: string | null;
|
|
355
|
+
mulched: boolean | null;
|
|
356
|
+
feedIntensity: number | null;
|
|
357
|
+
autoAdjust: boolean;
|
|
358
|
+
confirmedProducts: {
|
|
359
|
+
productId: string;
|
|
360
|
+
dripSafe: boolean;
|
|
361
|
+
analysis?: {
|
|
362
|
+
N: number;
|
|
363
|
+
P2O5: number;
|
|
364
|
+
K2O: number;
|
|
365
|
+
CaO: number;
|
|
366
|
+
MgO: number;
|
|
367
|
+
} | undefined;
|
|
368
|
+
}[];
|
|
369
|
+
}>;
|
|
370
|
+
export declare const yieldToDateSchema: z.ZodObject<{
|
|
371
|
+
kgTotal: z.ZodNumber;
|
|
372
|
+
kgPerPlant: z.ZodNullable<z.ZodNumber>;
|
|
373
|
+
targetKgPerPlant: z.ZodNumber;
|
|
374
|
+
percentOfTarget: z.ZodNullable<z.ZodNumber>;
|
|
375
|
+
harvestCount: z.ZodNumber;
|
|
376
|
+
/** True when some harvests used units we cannot convert to kilograms and were left out. */
|
|
377
|
+
skippedUnits: z.ZodBoolean;
|
|
378
|
+
}, "strip", z.ZodTypeAny, {
|
|
379
|
+
kgTotal: number;
|
|
380
|
+
kgPerPlant: number | null;
|
|
381
|
+
targetKgPerPlant: number;
|
|
382
|
+
percentOfTarget: number | null;
|
|
383
|
+
harvestCount: number;
|
|
384
|
+
skippedUnits: boolean;
|
|
385
|
+
}, {
|
|
386
|
+
kgTotal: number;
|
|
387
|
+
kgPerPlant: number | null;
|
|
388
|
+
targetKgPerPlant: number;
|
|
389
|
+
percentOfTarget: number | null;
|
|
390
|
+
harvestCount: number;
|
|
391
|
+
skippedUnits: boolean;
|
|
392
|
+
}>;
|
|
35
393
|
export declare const nutrientPlanSchema: z.ZodObject<{
|
|
36
394
|
sheet: z.ZodObject<{
|
|
37
395
|
id: z.ZodString;
|
|
@@ -255,6 +613,99 @@ export declare const nutrientPlanSchema: z.ZodObject<{
|
|
|
255
613
|
litresPerPlantPerDay: number;
|
|
256
614
|
fieldLitresPerDay: number | null;
|
|
257
615
|
}>;
|
|
616
|
+
/** Grams per plant per week before any adjustment, and the multipliers applied on top. */
|
|
617
|
+
baselinePerPlantG: z.ZodObject<{
|
|
618
|
+
N: z.ZodNumber;
|
|
619
|
+
P2O5: z.ZodNumber;
|
|
620
|
+
K2O: z.ZodNumber;
|
|
621
|
+
CaO: z.ZodNumber;
|
|
622
|
+
MgO: z.ZodNumber;
|
|
623
|
+
}, "strip", z.ZodTypeAny, {
|
|
624
|
+
N: number;
|
|
625
|
+
P2O5: number;
|
|
626
|
+
K2O: number;
|
|
627
|
+
CaO: number;
|
|
628
|
+
MgO: number;
|
|
629
|
+
}, {
|
|
630
|
+
N: number;
|
|
631
|
+
P2O5: number;
|
|
632
|
+
K2O: number;
|
|
633
|
+
CaO: number;
|
|
634
|
+
MgO: number;
|
|
635
|
+
}>;
|
|
636
|
+
nutrientFactors: z.ZodObject<{
|
|
637
|
+
N: z.ZodNumber;
|
|
638
|
+
P2O5: z.ZodNumber;
|
|
639
|
+
K2O: z.ZodNumber;
|
|
640
|
+
CaO: z.ZodNumber;
|
|
641
|
+
MgO: z.ZodNumber;
|
|
642
|
+
}, "strip", z.ZodTypeAny, {
|
|
643
|
+
N: number;
|
|
644
|
+
P2O5: number;
|
|
645
|
+
K2O: number;
|
|
646
|
+
CaO: number;
|
|
647
|
+
MgO: number;
|
|
648
|
+
}, {
|
|
649
|
+
N: number;
|
|
650
|
+
P2O5: number;
|
|
651
|
+
K2O: number;
|
|
652
|
+
CaO: number;
|
|
653
|
+
MgO: number;
|
|
654
|
+
}>;
|
|
655
|
+
adjustments: z.ZodArray<z.ZodObject<{
|
|
656
|
+
id: z.ZodOptional<z.ZodString>;
|
|
657
|
+
ruleId: z.ZodString;
|
|
658
|
+
kind: z.ZodEnum<["urgent", "weekly"]>;
|
|
659
|
+
title: z.ZodString;
|
|
660
|
+
reason: z.ZodString;
|
|
661
|
+
evidence: z.ZodEnum<["measured", "observed", "estimated"]>;
|
|
662
|
+
/** For example "Nitrogen +20%, flush first". */
|
|
663
|
+
effectSummary: z.ZodString;
|
|
664
|
+
actions: z.ZodArray<z.ZodString, "many">;
|
|
665
|
+
expiresAt: z.ZodOptional<z.ZodString>;
|
|
666
|
+
trigger: z.ZodOptional<z.ZodString>;
|
|
667
|
+
/** A preview: shown, but it did not change the plan. */
|
|
668
|
+
shadow: z.ZodBoolean;
|
|
669
|
+
/** False when set aside (a preview, or settled by a measured result). */
|
|
670
|
+
applied: z.ZodBoolean;
|
|
671
|
+
/** proposed: waiting for the farmer to apply it (automatic adjusting is off). */
|
|
672
|
+
status: z.ZodEnum<["active", "proposed"]>;
|
|
673
|
+
}, "strip", z.ZodTypeAny, {
|
|
674
|
+
status: "active" | "proposed";
|
|
675
|
+
title: string;
|
|
676
|
+
reason: string;
|
|
677
|
+
kind: "weekly" | "urgent";
|
|
678
|
+
applied: boolean;
|
|
679
|
+
actions: string[];
|
|
680
|
+
ruleId: string;
|
|
681
|
+
evidence: "observed" | "measured" | "estimated";
|
|
682
|
+
effectSummary: string;
|
|
683
|
+
shadow: boolean;
|
|
684
|
+
id?: string | undefined;
|
|
685
|
+
expiresAt?: string | undefined;
|
|
686
|
+
trigger?: string | undefined;
|
|
687
|
+
}, {
|
|
688
|
+
status: "active" | "proposed";
|
|
689
|
+
title: string;
|
|
690
|
+
reason: string;
|
|
691
|
+
kind: "weekly" | "urgent";
|
|
692
|
+
applied: boolean;
|
|
693
|
+
actions: string[];
|
|
694
|
+
ruleId: string;
|
|
695
|
+
evidence: "observed" | "measured" | "estimated";
|
|
696
|
+
effectSummary: string;
|
|
697
|
+
shadow: boolean;
|
|
698
|
+
id?: string | undefined;
|
|
699
|
+
expiresAt?: string | undefined;
|
|
700
|
+
trigger?: string | undefined;
|
|
701
|
+
}>, "many">;
|
|
702
|
+
/** Do not feed until the cause is fixed. */
|
|
703
|
+
feedHold: z.ZodBoolean;
|
|
704
|
+
/** Add a plain-water flush before the next feed. */
|
|
705
|
+
flush: z.ZodBoolean;
|
|
706
|
+
/** Add a soluble micronutrient mix to the next K-day feed. */
|
|
707
|
+
micros: z.ZodBoolean;
|
|
708
|
+
adjustmentNotes: z.ZodArray<z.ZodString, "many">;
|
|
258
709
|
/** Plain-language problems the farmer must not ignore. */
|
|
259
710
|
blockers: z.ZodArray<z.ZodString, "many">;
|
|
260
711
|
warnings: z.ZodArray<z.ZodString, "many">;
|
|
@@ -283,6 +734,25 @@ export declare const nutrientPlanSchema: z.ZodObject<{
|
|
|
283
734
|
litresPerPlantPerDay: number;
|
|
284
735
|
fieldLitresPerDay: number | null;
|
|
285
736
|
};
|
|
737
|
+
adjustments: {
|
|
738
|
+
status: "active" | "proposed";
|
|
739
|
+
title: string;
|
|
740
|
+
reason: string;
|
|
741
|
+
kind: "weekly" | "urgent";
|
|
742
|
+
applied: boolean;
|
|
743
|
+
actions: string[];
|
|
744
|
+
ruleId: string;
|
|
745
|
+
evidence: "observed" | "measured" | "estimated";
|
|
746
|
+
effectSummary: string;
|
|
747
|
+
shadow: boolean;
|
|
748
|
+
id?: string | undefined;
|
|
749
|
+
expiresAt?: string | undefined;
|
|
750
|
+
trigger?: string | undefined;
|
|
751
|
+
}[];
|
|
752
|
+
feedHold: boolean;
|
|
753
|
+
flush: boolean;
|
|
754
|
+
yieldTargetKgPerPlant: number;
|
|
755
|
+
feedIntensity: number;
|
|
286
756
|
sheet: {
|
|
287
757
|
id: string;
|
|
288
758
|
summary: string;
|
|
@@ -294,8 +764,6 @@ export declare const nutrientPlanSchema: z.ZodObject<{
|
|
|
294
764
|
yieldBasis: string;
|
|
295
765
|
};
|
|
296
766
|
fieldDay: number;
|
|
297
|
-
yieldTargetKgPerPlant: number;
|
|
298
|
-
feedIntensity: number;
|
|
299
767
|
plantCount: number | null;
|
|
300
768
|
weeklyPerPlantG: {
|
|
301
769
|
N: number;
|
|
@@ -347,6 +815,22 @@ export declare const nutrientPlanSchema: z.ZodObject<{
|
|
|
347
815
|
gramsPerPlantPerFeed: number;
|
|
348
816
|
fieldKgPerFeed: number | null;
|
|
349
817
|
}[];
|
|
818
|
+
baselinePerPlantG: {
|
|
819
|
+
N: number;
|
|
820
|
+
P2O5: number;
|
|
821
|
+
K2O: number;
|
|
822
|
+
CaO: number;
|
|
823
|
+
MgO: number;
|
|
824
|
+
};
|
|
825
|
+
nutrientFactors: {
|
|
826
|
+
N: number;
|
|
827
|
+
P2O5: number;
|
|
828
|
+
K2O: number;
|
|
829
|
+
CaO: number;
|
|
830
|
+
MgO: number;
|
|
831
|
+
};
|
|
832
|
+
micros: boolean;
|
|
833
|
+
adjustmentNotes: string[];
|
|
350
834
|
blockers: string[];
|
|
351
835
|
warnings: string[];
|
|
352
836
|
notices: string[];
|
|
@@ -371,6 +855,25 @@ export declare const nutrientPlanSchema: z.ZodObject<{
|
|
|
371
855
|
litresPerPlantPerDay: number;
|
|
372
856
|
fieldLitresPerDay: number | null;
|
|
373
857
|
};
|
|
858
|
+
adjustments: {
|
|
859
|
+
status: "active" | "proposed";
|
|
860
|
+
title: string;
|
|
861
|
+
reason: string;
|
|
862
|
+
kind: "weekly" | "urgent";
|
|
863
|
+
applied: boolean;
|
|
864
|
+
actions: string[];
|
|
865
|
+
ruleId: string;
|
|
866
|
+
evidence: "observed" | "measured" | "estimated";
|
|
867
|
+
effectSummary: string;
|
|
868
|
+
shadow: boolean;
|
|
869
|
+
id?: string | undefined;
|
|
870
|
+
expiresAt?: string | undefined;
|
|
871
|
+
trigger?: string | undefined;
|
|
872
|
+
}[];
|
|
873
|
+
feedHold: boolean;
|
|
874
|
+
flush: boolean;
|
|
875
|
+
yieldTargetKgPerPlant: number;
|
|
876
|
+
feedIntensity: number;
|
|
374
877
|
sheet: {
|
|
375
878
|
id: string;
|
|
376
879
|
summary: string;
|
|
@@ -382,8 +885,6 @@ export declare const nutrientPlanSchema: z.ZodObject<{
|
|
|
382
885
|
yieldBasis: string;
|
|
383
886
|
};
|
|
384
887
|
fieldDay: number;
|
|
385
|
-
yieldTargetKgPerPlant: number;
|
|
386
|
-
feedIntensity: number;
|
|
387
888
|
plantCount: number | null;
|
|
388
889
|
weeklyPerPlantG: {
|
|
389
890
|
N: number;
|
|
@@ -435,6 +936,22 @@ export declare const nutrientPlanSchema: z.ZodObject<{
|
|
|
435
936
|
gramsPerPlantPerFeed: number;
|
|
436
937
|
fieldKgPerFeed: number | null;
|
|
437
938
|
}[];
|
|
939
|
+
baselinePerPlantG: {
|
|
940
|
+
N: number;
|
|
941
|
+
P2O5: number;
|
|
942
|
+
K2O: number;
|
|
943
|
+
CaO: number;
|
|
944
|
+
MgO: number;
|
|
945
|
+
};
|
|
946
|
+
nutrientFactors: {
|
|
947
|
+
N: number;
|
|
948
|
+
P2O5: number;
|
|
949
|
+
K2O: number;
|
|
950
|
+
CaO: number;
|
|
951
|
+
MgO: number;
|
|
952
|
+
};
|
|
953
|
+
micros: boolean;
|
|
954
|
+
adjustmentNotes: string[];
|
|
438
955
|
blockers: string[];
|
|
439
956
|
warnings: string[];
|
|
440
957
|
notices: string[];
|
|
@@ -444,6 +961,8 @@ export declare const nutrientPlanResponseSchema: z.ZodObject<{
|
|
|
444
961
|
fieldId: z.ZodString;
|
|
445
962
|
crop: z.ZodNullable<z.ZodString>;
|
|
446
963
|
status: z.ZodEnum<["ok", "unsupported-crop", "not-transplanted"]>;
|
|
964
|
+
/** Which plan applies: seedlings in the nursery, or plants in the field. Null when there is none. */
|
|
965
|
+
phase: z.ZodNullable<z.ZodEnum<["nursery", "field"]>>;
|
|
447
966
|
/** Why there is no plan, in words the farmer can act on. Null when status is ok. */
|
|
448
967
|
message: z.ZodNullable<z.ZodString>;
|
|
449
968
|
plan: z.ZodNullable<z.ZodObject<{
|
|
@@ -669,6 +1188,99 @@ export declare const nutrientPlanResponseSchema: z.ZodObject<{
|
|
|
669
1188
|
litresPerPlantPerDay: number;
|
|
670
1189
|
fieldLitresPerDay: number | null;
|
|
671
1190
|
}>;
|
|
1191
|
+
/** Grams per plant per week before any adjustment, and the multipliers applied on top. */
|
|
1192
|
+
baselinePerPlantG: z.ZodObject<{
|
|
1193
|
+
N: z.ZodNumber;
|
|
1194
|
+
P2O5: z.ZodNumber;
|
|
1195
|
+
K2O: z.ZodNumber;
|
|
1196
|
+
CaO: z.ZodNumber;
|
|
1197
|
+
MgO: z.ZodNumber;
|
|
1198
|
+
}, "strip", z.ZodTypeAny, {
|
|
1199
|
+
N: number;
|
|
1200
|
+
P2O5: number;
|
|
1201
|
+
K2O: number;
|
|
1202
|
+
CaO: number;
|
|
1203
|
+
MgO: number;
|
|
1204
|
+
}, {
|
|
1205
|
+
N: number;
|
|
1206
|
+
P2O5: number;
|
|
1207
|
+
K2O: number;
|
|
1208
|
+
CaO: number;
|
|
1209
|
+
MgO: number;
|
|
1210
|
+
}>;
|
|
1211
|
+
nutrientFactors: z.ZodObject<{
|
|
1212
|
+
N: z.ZodNumber;
|
|
1213
|
+
P2O5: z.ZodNumber;
|
|
1214
|
+
K2O: z.ZodNumber;
|
|
1215
|
+
CaO: z.ZodNumber;
|
|
1216
|
+
MgO: z.ZodNumber;
|
|
1217
|
+
}, "strip", z.ZodTypeAny, {
|
|
1218
|
+
N: number;
|
|
1219
|
+
P2O5: number;
|
|
1220
|
+
K2O: number;
|
|
1221
|
+
CaO: number;
|
|
1222
|
+
MgO: number;
|
|
1223
|
+
}, {
|
|
1224
|
+
N: number;
|
|
1225
|
+
P2O5: number;
|
|
1226
|
+
K2O: number;
|
|
1227
|
+
CaO: number;
|
|
1228
|
+
MgO: number;
|
|
1229
|
+
}>;
|
|
1230
|
+
adjustments: z.ZodArray<z.ZodObject<{
|
|
1231
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1232
|
+
ruleId: z.ZodString;
|
|
1233
|
+
kind: z.ZodEnum<["urgent", "weekly"]>;
|
|
1234
|
+
title: z.ZodString;
|
|
1235
|
+
reason: z.ZodString;
|
|
1236
|
+
evidence: z.ZodEnum<["measured", "observed", "estimated"]>;
|
|
1237
|
+
/** For example "Nitrogen +20%, flush first". */
|
|
1238
|
+
effectSummary: z.ZodString;
|
|
1239
|
+
actions: z.ZodArray<z.ZodString, "many">;
|
|
1240
|
+
expiresAt: z.ZodOptional<z.ZodString>;
|
|
1241
|
+
trigger: z.ZodOptional<z.ZodString>;
|
|
1242
|
+
/** A preview: shown, but it did not change the plan. */
|
|
1243
|
+
shadow: z.ZodBoolean;
|
|
1244
|
+
/** False when set aside (a preview, or settled by a measured result). */
|
|
1245
|
+
applied: z.ZodBoolean;
|
|
1246
|
+
/** proposed: waiting for the farmer to apply it (automatic adjusting is off). */
|
|
1247
|
+
status: z.ZodEnum<["active", "proposed"]>;
|
|
1248
|
+
}, "strip", z.ZodTypeAny, {
|
|
1249
|
+
status: "active" | "proposed";
|
|
1250
|
+
title: string;
|
|
1251
|
+
reason: string;
|
|
1252
|
+
kind: "weekly" | "urgent";
|
|
1253
|
+
applied: boolean;
|
|
1254
|
+
actions: string[];
|
|
1255
|
+
ruleId: string;
|
|
1256
|
+
evidence: "observed" | "measured" | "estimated";
|
|
1257
|
+
effectSummary: string;
|
|
1258
|
+
shadow: boolean;
|
|
1259
|
+
id?: string | undefined;
|
|
1260
|
+
expiresAt?: string | undefined;
|
|
1261
|
+
trigger?: string | undefined;
|
|
1262
|
+
}, {
|
|
1263
|
+
status: "active" | "proposed";
|
|
1264
|
+
title: string;
|
|
1265
|
+
reason: string;
|
|
1266
|
+
kind: "weekly" | "urgent";
|
|
1267
|
+
applied: boolean;
|
|
1268
|
+
actions: string[];
|
|
1269
|
+
ruleId: string;
|
|
1270
|
+
evidence: "observed" | "measured" | "estimated";
|
|
1271
|
+
effectSummary: string;
|
|
1272
|
+
shadow: boolean;
|
|
1273
|
+
id?: string | undefined;
|
|
1274
|
+
expiresAt?: string | undefined;
|
|
1275
|
+
trigger?: string | undefined;
|
|
1276
|
+
}>, "many">;
|
|
1277
|
+
/** Do not feed until the cause is fixed. */
|
|
1278
|
+
feedHold: z.ZodBoolean;
|
|
1279
|
+
/** Add a plain-water flush before the next feed. */
|
|
1280
|
+
flush: z.ZodBoolean;
|
|
1281
|
+
/** Add a soluble micronutrient mix to the next K-day feed. */
|
|
1282
|
+
micros: z.ZodBoolean;
|
|
1283
|
+
adjustmentNotes: z.ZodArray<z.ZodString, "many">;
|
|
672
1284
|
/** Plain-language problems the farmer must not ignore. */
|
|
673
1285
|
blockers: z.ZodArray<z.ZodString, "many">;
|
|
674
1286
|
warnings: z.ZodArray<z.ZodString, "many">;
|
|
@@ -697,6 +1309,25 @@ export declare const nutrientPlanResponseSchema: z.ZodObject<{
|
|
|
697
1309
|
litresPerPlantPerDay: number;
|
|
698
1310
|
fieldLitresPerDay: number | null;
|
|
699
1311
|
};
|
|
1312
|
+
adjustments: {
|
|
1313
|
+
status: "active" | "proposed";
|
|
1314
|
+
title: string;
|
|
1315
|
+
reason: string;
|
|
1316
|
+
kind: "weekly" | "urgent";
|
|
1317
|
+
applied: boolean;
|
|
1318
|
+
actions: string[];
|
|
1319
|
+
ruleId: string;
|
|
1320
|
+
evidence: "observed" | "measured" | "estimated";
|
|
1321
|
+
effectSummary: string;
|
|
1322
|
+
shadow: boolean;
|
|
1323
|
+
id?: string | undefined;
|
|
1324
|
+
expiresAt?: string | undefined;
|
|
1325
|
+
trigger?: string | undefined;
|
|
1326
|
+
}[];
|
|
1327
|
+
feedHold: boolean;
|
|
1328
|
+
flush: boolean;
|
|
1329
|
+
yieldTargetKgPerPlant: number;
|
|
1330
|
+
feedIntensity: number;
|
|
700
1331
|
sheet: {
|
|
701
1332
|
id: string;
|
|
702
1333
|
summary: string;
|
|
@@ -708,8 +1339,6 @@ export declare const nutrientPlanResponseSchema: z.ZodObject<{
|
|
|
708
1339
|
yieldBasis: string;
|
|
709
1340
|
};
|
|
710
1341
|
fieldDay: number;
|
|
711
|
-
yieldTargetKgPerPlant: number;
|
|
712
|
-
feedIntensity: number;
|
|
713
1342
|
plantCount: number | null;
|
|
714
1343
|
weeklyPerPlantG: {
|
|
715
1344
|
N: number;
|
|
@@ -761,6 +1390,22 @@ export declare const nutrientPlanResponseSchema: z.ZodObject<{
|
|
|
761
1390
|
gramsPerPlantPerFeed: number;
|
|
762
1391
|
fieldKgPerFeed: number | null;
|
|
763
1392
|
}[];
|
|
1393
|
+
baselinePerPlantG: {
|
|
1394
|
+
N: number;
|
|
1395
|
+
P2O5: number;
|
|
1396
|
+
K2O: number;
|
|
1397
|
+
CaO: number;
|
|
1398
|
+
MgO: number;
|
|
1399
|
+
};
|
|
1400
|
+
nutrientFactors: {
|
|
1401
|
+
N: number;
|
|
1402
|
+
P2O5: number;
|
|
1403
|
+
K2O: number;
|
|
1404
|
+
CaO: number;
|
|
1405
|
+
MgO: number;
|
|
1406
|
+
};
|
|
1407
|
+
micros: boolean;
|
|
1408
|
+
adjustmentNotes: string[];
|
|
764
1409
|
blockers: string[];
|
|
765
1410
|
warnings: string[];
|
|
766
1411
|
notices: string[];
|
|
@@ -785,6 +1430,25 @@ export declare const nutrientPlanResponseSchema: z.ZodObject<{
|
|
|
785
1430
|
litresPerPlantPerDay: number;
|
|
786
1431
|
fieldLitresPerDay: number | null;
|
|
787
1432
|
};
|
|
1433
|
+
adjustments: {
|
|
1434
|
+
status: "active" | "proposed";
|
|
1435
|
+
title: string;
|
|
1436
|
+
reason: string;
|
|
1437
|
+
kind: "weekly" | "urgent";
|
|
1438
|
+
applied: boolean;
|
|
1439
|
+
actions: string[];
|
|
1440
|
+
ruleId: string;
|
|
1441
|
+
evidence: "observed" | "measured" | "estimated";
|
|
1442
|
+
effectSummary: string;
|
|
1443
|
+
shadow: boolean;
|
|
1444
|
+
id?: string | undefined;
|
|
1445
|
+
expiresAt?: string | undefined;
|
|
1446
|
+
trigger?: string | undefined;
|
|
1447
|
+
}[];
|
|
1448
|
+
feedHold: boolean;
|
|
1449
|
+
flush: boolean;
|
|
1450
|
+
yieldTargetKgPerPlant: number;
|
|
1451
|
+
feedIntensity: number;
|
|
788
1452
|
sheet: {
|
|
789
1453
|
id: string;
|
|
790
1454
|
summary: string;
|
|
@@ -796,8 +1460,6 @@ export declare const nutrientPlanResponseSchema: z.ZodObject<{
|
|
|
796
1460
|
yieldBasis: string;
|
|
797
1461
|
};
|
|
798
1462
|
fieldDay: number;
|
|
799
|
-
yieldTargetKgPerPlant: number;
|
|
800
|
-
feedIntensity: number;
|
|
801
1463
|
plantCount: number | null;
|
|
802
1464
|
weeklyPerPlantG: {
|
|
803
1465
|
N: number;
|
|
@@ -849,11 +1511,280 @@ export declare const nutrientPlanResponseSchema: z.ZodObject<{
|
|
|
849
1511
|
gramsPerPlantPerFeed: number;
|
|
850
1512
|
fieldKgPerFeed: number | null;
|
|
851
1513
|
}[];
|
|
1514
|
+
baselinePerPlantG: {
|
|
1515
|
+
N: number;
|
|
1516
|
+
P2O5: number;
|
|
1517
|
+
K2O: number;
|
|
1518
|
+
CaO: number;
|
|
1519
|
+
MgO: number;
|
|
1520
|
+
};
|
|
1521
|
+
nutrientFactors: {
|
|
1522
|
+
N: number;
|
|
1523
|
+
P2O5: number;
|
|
1524
|
+
K2O: number;
|
|
1525
|
+
CaO: number;
|
|
1526
|
+
MgO: number;
|
|
1527
|
+
};
|
|
1528
|
+
micros: boolean;
|
|
1529
|
+
adjustmentNotes: string[];
|
|
852
1530
|
blockers: string[];
|
|
853
1531
|
warnings: string[];
|
|
854
1532
|
notices: string[];
|
|
855
1533
|
cautions: string[];
|
|
856
1534
|
}>>;
|
|
1535
|
+
nursery: z.ZodNullable<z.ZodObject<{
|
|
1536
|
+
stage: z.ZodObject<{
|
|
1537
|
+
id: z.ZodString;
|
|
1538
|
+
label: z.ZodString;
|
|
1539
|
+
dayStart: z.ZodNumber;
|
|
1540
|
+
dayEnd: z.ZodNumber;
|
|
1541
|
+
}, "strip", z.ZodTypeAny, {
|
|
1542
|
+
id: string;
|
|
1543
|
+
label: string;
|
|
1544
|
+
dayStart: number;
|
|
1545
|
+
dayEnd: number;
|
|
1546
|
+
}, {
|
|
1547
|
+
id: string;
|
|
1548
|
+
label: string;
|
|
1549
|
+
dayStart: number;
|
|
1550
|
+
dayEnd: number;
|
|
1551
|
+
}>;
|
|
1552
|
+
sowDay: z.ZodNumber;
|
|
1553
|
+
product: z.ZodString;
|
|
1554
|
+
gPerLitre: z.ZodNumber;
|
|
1555
|
+
ppmNitrogen: z.ZodNumber;
|
|
1556
|
+
maxGPerLitre: z.ZodNumber;
|
|
1557
|
+
maxEcMsPerCm: z.ZodNumber;
|
|
1558
|
+
feedsPerWeek: z.ZodNumber;
|
|
1559
|
+
feedHold: z.ZodBoolean;
|
|
1560
|
+
flush: z.ZodBoolean;
|
|
1561
|
+
noFeedStage: z.ZodBoolean;
|
|
1562
|
+
adjustments: z.ZodArray<z.ZodObject<{
|
|
1563
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1564
|
+
ruleId: z.ZodString;
|
|
1565
|
+
kind: z.ZodEnum<["urgent", "weekly"]>;
|
|
1566
|
+
title: z.ZodString;
|
|
1567
|
+
reason: z.ZodString;
|
|
1568
|
+
evidence: z.ZodEnum<["measured", "observed", "estimated"]>;
|
|
1569
|
+
/** For example "Nitrogen +20%, flush first". */
|
|
1570
|
+
effectSummary: z.ZodString;
|
|
1571
|
+
actions: z.ZodArray<z.ZodString, "many">;
|
|
1572
|
+
expiresAt: z.ZodOptional<z.ZodString>;
|
|
1573
|
+
trigger: z.ZodOptional<z.ZodString>;
|
|
1574
|
+
/** A preview: shown, but it did not change the plan. */
|
|
1575
|
+
shadow: z.ZodBoolean;
|
|
1576
|
+
/** False when set aside (a preview, or settled by a measured result). */
|
|
1577
|
+
applied: z.ZodBoolean;
|
|
1578
|
+
/** proposed: waiting for the farmer to apply it (automatic adjusting is off). */
|
|
1579
|
+
status: z.ZodEnum<["active", "proposed"]>;
|
|
1580
|
+
}, "strip", z.ZodTypeAny, {
|
|
1581
|
+
status: "active" | "proposed";
|
|
1582
|
+
title: string;
|
|
1583
|
+
reason: string;
|
|
1584
|
+
kind: "weekly" | "urgent";
|
|
1585
|
+
applied: boolean;
|
|
1586
|
+
actions: string[];
|
|
1587
|
+
ruleId: string;
|
|
1588
|
+
evidence: "observed" | "measured" | "estimated";
|
|
1589
|
+
effectSummary: string;
|
|
1590
|
+
shadow: boolean;
|
|
1591
|
+
id?: string | undefined;
|
|
1592
|
+
expiresAt?: string | undefined;
|
|
1593
|
+
trigger?: string | undefined;
|
|
1594
|
+
}, {
|
|
1595
|
+
status: "active" | "proposed";
|
|
1596
|
+
title: string;
|
|
1597
|
+
reason: string;
|
|
1598
|
+
kind: "weekly" | "urgent";
|
|
1599
|
+
applied: boolean;
|
|
1600
|
+
actions: string[];
|
|
1601
|
+
ruleId: string;
|
|
1602
|
+
evidence: "observed" | "measured" | "estimated";
|
|
1603
|
+
effectSummary: string;
|
|
1604
|
+
shadow: boolean;
|
|
1605
|
+
id?: string | undefined;
|
|
1606
|
+
expiresAt?: string | undefined;
|
|
1607
|
+
trigger?: string | undefined;
|
|
1608
|
+
}>, "many">;
|
|
1609
|
+
notes: z.ZodArray<z.ZodString, "many">;
|
|
1610
|
+
}, "strip", z.ZodTypeAny, {
|
|
1611
|
+
notes: string[];
|
|
1612
|
+
stage: {
|
|
1613
|
+
id: string;
|
|
1614
|
+
label: string;
|
|
1615
|
+
dayStart: number;
|
|
1616
|
+
dayEnd: number;
|
|
1617
|
+
};
|
|
1618
|
+
product: string;
|
|
1619
|
+
adjustments: {
|
|
1620
|
+
status: "active" | "proposed";
|
|
1621
|
+
title: string;
|
|
1622
|
+
reason: string;
|
|
1623
|
+
kind: "weekly" | "urgent";
|
|
1624
|
+
applied: boolean;
|
|
1625
|
+
actions: string[];
|
|
1626
|
+
ruleId: string;
|
|
1627
|
+
evidence: "observed" | "measured" | "estimated";
|
|
1628
|
+
effectSummary: string;
|
|
1629
|
+
shadow: boolean;
|
|
1630
|
+
id?: string | undefined;
|
|
1631
|
+
expiresAt?: string | undefined;
|
|
1632
|
+
trigger?: string | undefined;
|
|
1633
|
+
}[];
|
|
1634
|
+
sowDay: number;
|
|
1635
|
+
gPerLitre: number;
|
|
1636
|
+
ppmNitrogen: number;
|
|
1637
|
+
maxGPerLitre: number;
|
|
1638
|
+
maxEcMsPerCm: number;
|
|
1639
|
+
feedsPerWeek: number;
|
|
1640
|
+
feedHold: boolean;
|
|
1641
|
+
flush: boolean;
|
|
1642
|
+
noFeedStage: boolean;
|
|
1643
|
+
}, {
|
|
1644
|
+
notes: string[];
|
|
1645
|
+
stage: {
|
|
1646
|
+
id: string;
|
|
1647
|
+
label: string;
|
|
1648
|
+
dayStart: number;
|
|
1649
|
+
dayEnd: number;
|
|
1650
|
+
};
|
|
1651
|
+
product: string;
|
|
1652
|
+
adjustments: {
|
|
1653
|
+
status: "active" | "proposed";
|
|
1654
|
+
title: string;
|
|
1655
|
+
reason: string;
|
|
1656
|
+
kind: "weekly" | "urgent";
|
|
1657
|
+
applied: boolean;
|
|
1658
|
+
actions: string[];
|
|
1659
|
+
ruleId: string;
|
|
1660
|
+
evidence: "observed" | "measured" | "estimated";
|
|
1661
|
+
effectSummary: string;
|
|
1662
|
+
shadow: boolean;
|
|
1663
|
+
id?: string | undefined;
|
|
1664
|
+
expiresAt?: string | undefined;
|
|
1665
|
+
trigger?: string | undefined;
|
|
1666
|
+
}[];
|
|
1667
|
+
sowDay: number;
|
|
1668
|
+
gPerLitre: number;
|
|
1669
|
+
ppmNitrogen: number;
|
|
1670
|
+
maxGPerLitre: number;
|
|
1671
|
+
maxEcMsPerCm: number;
|
|
1672
|
+
feedsPerWeek: number;
|
|
1673
|
+
feedHold: boolean;
|
|
1674
|
+
flush: boolean;
|
|
1675
|
+
noFeedStage: boolean;
|
|
1676
|
+
}>>;
|
|
1677
|
+
/** The id of the stage a symptom report should be filed against. */
|
|
1678
|
+
stageId: z.ZodNullable<z.ZodString>;
|
|
1679
|
+
settings: z.ZodObject<{
|
|
1680
|
+
yieldTargetKgPerPlant: z.ZodNullable<z.ZodNumber>;
|
|
1681
|
+
fertilizerSetId: z.ZodNullable<z.ZodString>;
|
|
1682
|
+
mulched: z.ZodNullable<z.ZodBoolean>;
|
|
1683
|
+
feedIntensity: z.ZodNullable<z.ZodNumber>;
|
|
1684
|
+
autoAdjust: z.ZodBoolean;
|
|
1685
|
+
confirmedProducts: z.ZodArray<z.ZodObject<{
|
|
1686
|
+
productId: z.ZodString;
|
|
1687
|
+
/** Percent of product mass printed on the bag. Omit to keep the catalogue analysis. */
|
|
1688
|
+
analysis: z.ZodOptional<z.ZodObject<{
|
|
1689
|
+
N: z.ZodNumber;
|
|
1690
|
+
P2O5: z.ZodNumber;
|
|
1691
|
+
K2O: z.ZodNumber;
|
|
1692
|
+
CaO: z.ZodNumber;
|
|
1693
|
+
MgO: z.ZodNumber;
|
|
1694
|
+
}, "strip", z.ZodTypeAny, {
|
|
1695
|
+
N: number;
|
|
1696
|
+
P2O5: number;
|
|
1697
|
+
K2O: number;
|
|
1698
|
+
CaO: number;
|
|
1699
|
+
MgO: number;
|
|
1700
|
+
}, {
|
|
1701
|
+
N: number;
|
|
1702
|
+
P2O5: number;
|
|
1703
|
+
K2O: number;
|
|
1704
|
+
CaO: number;
|
|
1705
|
+
MgO: number;
|
|
1706
|
+
}>>;
|
|
1707
|
+
/** The bag says it can go through drip or fertigation. */
|
|
1708
|
+
dripSafe: z.ZodBoolean;
|
|
1709
|
+
}, "strip", z.ZodTypeAny, {
|
|
1710
|
+
productId: string;
|
|
1711
|
+
dripSafe: boolean;
|
|
1712
|
+
analysis?: {
|
|
1713
|
+
N: number;
|
|
1714
|
+
P2O5: number;
|
|
1715
|
+
K2O: number;
|
|
1716
|
+
CaO: number;
|
|
1717
|
+
MgO: number;
|
|
1718
|
+
} | undefined;
|
|
1719
|
+
}, {
|
|
1720
|
+
productId: string;
|
|
1721
|
+
dripSafe: boolean;
|
|
1722
|
+
analysis?: {
|
|
1723
|
+
N: number;
|
|
1724
|
+
P2O5: number;
|
|
1725
|
+
K2O: number;
|
|
1726
|
+
CaO: number;
|
|
1727
|
+
MgO: number;
|
|
1728
|
+
} | undefined;
|
|
1729
|
+
}>, "many">;
|
|
1730
|
+
}, "strip", z.ZodTypeAny, {
|
|
1731
|
+
yieldTargetKgPerPlant: number | null;
|
|
1732
|
+
fertilizerSetId: string | null;
|
|
1733
|
+
mulched: boolean | null;
|
|
1734
|
+
feedIntensity: number | null;
|
|
1735
|
+
autoAdjust: boolean;
|
|
1736
|
+
confirmedProducts: {
|
|
1737
|
+
productId: string;
|
|
1738
|
+
dripSafe: boolean;
|
|
1739
|
+
analysis?: {
|
|
1740
|
+
N: number;
|
|
1741
|
+
P2O5: number;
|
|
1742
|
+
K2O: number;
|
|
1743
|
+
CaO: number;
|
|
1744
|
+
MgO: number;
|
|
1745
|
+
} | undefined;
|
|
1746
|
+
}[];
|
|
1747
|
+
}, {
|
|
1748
|
+
yieldTargetKgPerPlant: number | null;
|
|
1749
|
+
fertilizerSetId: string | null;
|
|
1750
|
+
mulched: boolean | null;
|
|
1751
|
+
feedIntensity: number | null;
|
|
1752
|
+
autoAdjust: boolean;
|
|
1753
|
+
confirmedProducts: {
|
|
1754
|
+
productId: string;
|
|
1755
|
+
dripSafe: boolean;
|
|
1756
|
+
analysis?: {
|
|
1757
|
+
N: number;
|
|
1758
|
+
P2O5: number;
|
|
1759
|
+
K2O: number;
|
|
1760
|
+
CaO: number;
|
|
1761
|
+
MgO: number;
|
|
1762
|
+
} | undefined;
|
|
1763
|
+
}[];
|
|
1764
|
+
}>;
|
|
1765
|
+
yieldToDate: z.ZodNullable<z.ZodObject<{
|
|
1766
|
+
kgTotal: z.ZodNumber;
|
|
1767
|
+
kgPerPlant: z.ZodNullable<z.ZodNumber>;
|
|
1768
|
+
targetKgPerPlant: z.ZodNumber;
|
|
1769
|
+
percentOfTarget: z.ZodNullable<z.ZodNumber>;
|
|
1770
|
+
harvestCount: z.ZodNumber;
|
|
1771
|
+
/** True when some harvests used units we cannot convert to kilograms and were left out. */
|
|
1772
|
+
skippedUnits: z.ZodBoolean;
|
|
1773
|
+
}, "strip", z.ZodTypeAny, {
|
|
1774
|
+
kgTotal: number;
|
|
1775
|
+
kgPerPlant: number | null;
|
|
1776
|
+
targetKgPerPlant: number;
|
|
1777
|
+
percentOfTarget: number | null;
|
|
1778
|
+
harvestCount: number;
|
|
1779
|
+
skippedUnits: boolean;
|
|
1780
|
+
}, {
|
|
1781
|
+
kgTotal: number;
|
|
1782
|
+
kgPerPlant: number | null;
|
|
1783
|
+
targetKgPerPlant: number;
|
|
1784
|
+
percentOfTarget: number | null;
|
|
1785
|
+
harvestCount: number;
|
|
1786
|
+
skippedUnits: boolean;
|
|
1787
|
+
}>>;
|
|
857
1788
|
generatedAt: z.ZodString;
|
|
858
1789
|
}, "strip", z.ZodTypeAny, {
|
|
859
1790
|
status: "ok" | "unsupported-crop" | "not-transplanted";
|
|
@@ -861,6 +1792,41 @@ export declare const nutrientPlanResponseSchema: z.ZodObject<{
|
|
|
861
1792
|
crop: string | null;
|
|
862
1793
|
fieldId: string;
|
|
863
1794
|
generatedAt: string;
|
|
1795
|
+
phase: "field" | "nursery" | null;
|
|
1796
|
+
nursery: {
|
|
1797
|
+
notes: string[];
|
|
1798
|
+
stage: {
|
|
1799
|
+
id: string;
|
|
1800
|
+
label: string;
|
|
1801
|
+
dayStart: number;
|
|
1802
|
+
dayEnd: number;
|
|
1803
|
+
};
|
|
1804
|
+
product: string;
|
|
1805
|
+
adjustments: {
|
|
1806
|
+
status: "active" | "proposed";
|
|
1807
|
+
title: string;
|
|
1808
|
+
reason: string;
|
|
1809
|
+
kind: "weekly" | "urgent";
|
|
1810
|
+
applied: boolean;
|
|
1811
|
+
actions: string[];
|
|
1812
|
+
ruleId: string;
|
|
1813
|
+
evidence: "observed" | "measured" | "estimated";
|
|
1814
|
+
effectSummary: string;
|
|
1815
|
+
shadow: boolean;
|
|
1816
|
+
id?: string | undefined;
|
|
1817
|
+
expiresAt?: string | undefined;
|
|
1818
|
+
trigger?: string | undefined;
|
|
1819
|
+
}[];
|
|
1820
|
+
sowDay: number;
|
|
1821
|
+
gPerLitre: number;
|
|
1822
|
+
ppmNitrogen: number;
|
|
1823
|
+
maxGPerLitre: number;
|
|
1824
|
+
maxEcMsPerCm: number;
|
|
1825
|
+
feedsPerWeek: number;
|
|
1826
|
+
feedHold: boolean;
|
|
1827
|
+
flush: boolean;
|
|
1828
|
+
noFeedStage: boolean;
|
|
1829
|
+
} | null;
|
|
864
1830
|
plan: {
|
|
865
1831
|
notes: string[];
|
|
866
1832
|
stage: {
|
|
@@ -881,6 +1847,25 @@ export declare const nutrientPlanResponseSchema: z.ZodObject<{
|
|
|
881
1847
|
litresPerPlantPerDay: number;
|
|
882
1848
|
fieldLitresPerDay: number | null;
|
|
883
1849
|
};
|
|
1850
|
+
adjustments: {
|
|
1851
|
+
status: "active" | "proposed";
|
|
1852
|
+
title: string;
|
|
1853
|
+
reason: string;
|
|
1854
|
+
kind: "weekly" | "urgent";
|
|
1855
|
+
applied: boolean;
|
|
1856
|
+
actions: string[];
|
|
1857
|
+
ruleId: string;
|
|
1858
|
+
evidence: "observed" | "measured" | "estimated";
|
|
1859
|
+
effectSummary: string;
|
|
1860
|
+
shadow: boolean;
|
|
1861
|
+
id?: string | undefined;
|
|
1862
|
+
expiresAt?: string | undefined;
|
|
1863
|
+
trigger?: string | undefined;
|
|
1864
|
+
}[];
|
|
1865
|
+
feedHold: boolean;
|
|
1866
|
+
flush: boolean;
|
|
1867
|
+
yieldTargetKgPerPlant: number;
|
|
1868
|
+
feedIntensity: number;
|
|
884
1869
|
sheet: {
|
|
885
1870
|
id: string;
|
|
886
1871
|
summary: string;
|
|
@@ -892,8 +1877,6 @@ export declare const nutrientPlanResponseSchema: z.ZodObject<{
|
|
|
892
1877
|
yieldBasis: string;
|
|
893
1878
|
};
|
|
894
1879
|
fieldDay: number;
|
|
895
|
-
yieldTargetKgPerPlant: number;
|
|
896
|
-
feedIntensity: number;
|
|
897
1880
|
plantCount: number | null;
|
|
898
1881
|
weeklyPerPlantG: {
|
|
899
1882
|
N: number;
|
|
@@ -945,17 +1928,95 @@ export declare const nutrientPlanResponseSchema: z.ZodObject<{
|
|
|
945
1928
|
gramsPerPlantPerFeed: number;
|
|
946
1929
|
fieldKgPerFeed: number | null;
|
|
947
1930
|
}[];
|
|
1931
|
+
baselinePerPlantG: {
|
|
1932
|
+
N: number;
|
|
1933
|
+
P2O5: number;
|
|
1934
|
+
K2O: number;
|
|
1935
|
+
CaO: number;
|
|
1936
|
+
MgO: number;
|
|
1937
|
+
};
|
|
1938
|
+
nutrientFactors: {
|
|
1939
|
+
N: number;
|
|
1940
|
+
P2O5: number;
|
|
1941
|
+
K2O: number;
|
|
1942
|
+
CaO: number;
|
|
1943
|
+
MgO: number;
|
|
1944
|
+
};
|
|
1945
|
+
micros: boolean;
|
|
1946
|
+
adjustmentNotes: string[];
|
|
948
1947
|
blockers: string[];
|
|
949
1948
|
warnings: string[];
|
|
950
1949
|
notices: string[];
|
|
951
1950
|
cautions: string[];
|
|
952
1951
|
} | null;
|
|
1952
|
+
stageId: string | null;
|
|
1953
|
+
settings: {
|
|
1954
|
+
yieldTargetKgPerPlant: number | null;
|
|
1955
|
+
fertilizerSetId: string | null;
|
|
1956
|
+
mulched: boolean | null;
|
|
1957
|
+
feedIntensity: number | null;
|
|
1958
|
+
autoAdjust: boolean;
|
|
1959
|
+
confirmedProducts: {
|
|
1960
|
+
productId: string;
|
|
1961
|
+
dripSafe: boolean;
|
|
1962
|
+
analysis?: {
|
|
1963
|
+
N: number;
|
|
1964
|
+
P2O5: number;
|
|
1965
|
+
K2O: number;
|
|
1966
|
+
CaO: number;
|
|
1967
|
+
MgO: number;
|
|
1968
|
+
} | undefined;
|
|
1969
|
+
}[];
|
|
1970
|
+
};
|
|
1971
|
+
yieldToDate: {
|
|
1972
|
+
kgTotal: number;
|
|
1973
|
+
kgPerPlant: number | null;
|
|
1974
|
+
targetKgPerPlant: number;
|
|
1975
|
+
percentOfTarget: number | null;
|
|
1976
|
+
harvestCount: number;
|
|
1977
|
+
skippedUnits: boolean;
|
|
1978
|
+
} | null;
|
|
953
1979
|
}, {
|
|
954
1980
|
status: "ok" | "unsupported-crop" | "not-transplanted";
|
|
955
1981
|
message: string | null;
|
|
956
1982
|
crop: string | null;
|
|
957
1983
|
fieldId: string;
|
|
958
1984
|
generatedAt: string;
|
|
1985
|
+
phase: "field" | "nursery" | null;
|
|
1986
|
+
nursery: {
|
|
1987
|
+
notes: string[];
|
|
1988
|
+
stage: {
|
|
1989
|
+
id: string;
|
|
1990
|
+
label: string;
|
|
1991
|
+
dayStart: number;
|
|
1992
|
+
dayEnd: number;
|
|
1993
|
+
};
|
|
1994
|
+
product: string;
|
|
1995
|
+
adjustments: {
|
|
1996
|
+
status: "active" | "proposed";
|
|
1997
|
+
title: string;
|
|
1998
|
+
reason: string;
|
|
1999
|
+
kind: "weekly" | "urgent";
|
|
2000
|
+
applied: boolean;
|
|
2001
|
+
actions: string[];
|
|
2002
|
+
ruleId: string;
|
|
2003
|
+
evidence: "observed" | "measured" | "estimated";
|
|
2004
|
+
effectSummary: string;
|
|
2005
|
+
shadow: boolean;
|
|
2006
|
+
id?: string | undefined;
|
|
2007
|
+
expiresAt?: string | undefined;
|
|
2008
|
+
trigger?: string | undefined;
|
|
2009
|
+
}[];
|
|
2010
|
+
sowDay: number;
|
|
2011
|
+
gPerLitre: number;
|
|
2012
|
+
ppmNitrogen: number;
|
|
2013
|
+
maxGPerLitre: number;
|
|
2014
|
+
maxEcMsPerCm: number;
|
|
2015
|
+
feedsPerWeek: number;
|
|
2016
|
+
feedHold: boolean;
|
|
2017
|
+
flush: boolean;
|
|
2018
|
+
noFeedStage: boolean;
|
|
2019
|
+
} | null;
|
|
959
2020
|
plan: {
|
|
960
2021
|
notes: string[];
|
|
961
2022
|
stage: {
|
|
@@ -976,6 +2037,25 @@ export declare const nutrientPlanResponseSchema: z.ZodObject<{
|
|
|
976
2037
|
litresPerPlantPerDay: number;
|
|
977
2038
|
fieldLitresPerDay: number | null;
|
|
978
2039
|
};
|
|
2040
|
+
adjustments: {
|
|
2041
|
+
status: "active" | "proposed";
|
|
2042
|
+
title: string;
|
|
2043
|
+
reason: string;
|
|
2044
|
+
kind: "weekly" | "urgent";
|
|
2045
|
+
applied: boolean;
|
|
2046
|
+
actions: string[];
|
|
2047
|
+
ruleId: string;
|
|
2048
|
+
evidence: "observed" | "measured" | "estimated";
|
|
2049
|
+
effectSummary: string;
|
|
2050
|
+
shadow: boolean;
|
|
2051
|
+
id?: string | undefined;
|
|
2052
|
+
expiresAt?: string | undefined;
|
|
2053
|
+
trigger?: string | undefined;
|
|
2054
|
+
}[];
|
|
2055
|
+
feedHold: boolean;
|
|
2056
|
+
flush: boolean;
|
|
2057
|
+
yieldTargetKgPerPlant: number;
|
|
2058
|
+
feedIntensity: number;
|
|
979
2059
|
sheet: {
|
|
980
2060
|
id: string;
|
|
981
2061
|
summary: string;
|
|
@@ -987,8 +2067,6 @@ export declare const nutrientPlanResponseSchema: z.ZodObject<{
|
|
|
987
2067
|
yieldBasis: string;
|
|
988
2068
|
};
|
|
989
2069
|
fieldDay: number;
|
|
990
|
-
yieldTargetKgPerPlant: number;
|
|
991
|
-
feedIntensity: number;
|
|
992
2070
|
plantCount: number | null;
|
|
993
2071
|
weeklyPerPlantG: {
|
|
994
2072
|
N: number;
|
|
@@ -1040,12 +2118,316 @@ export declare const nutrientPlanResponseSchema: z.ZodObject<{
|
|
|
1040
2118
|
gramsPerPlantPerFeed: number;
|
|
1041
2119
|
fieldKgPerFeed: number | null;
|
|
1042
2120
|
}[];
|
|
2121
|
+
baselinePerPlantG: {
|
|
2122
|
+
N: number;
|
|
2123
|
+
P2O5: number;
|
|
2124
|
+
K2O: number;
|
|
2125
|
+
CaO: number;
|
|
2126
|
+
MgO: number;
|
|
2127
|
+
};
|
|
2128
|
+
nutrientFactors: {
|
|
2129
|
+
N: number;
|
|
2130
|
+
P2O5: number;
|
|
2131
|
+
K2O: number;
|
|
2132
|
+
CaO: number;
|
|
2133
|
+
MgO: number;
|
|
2134
|
+
};
|
|
2135
|
+
micros: boolean;
|
|
2136
|
+
adjustmentNotes: string[];
|
|
1043
2137
|
blockers: string[];
|
|
1044
2138
|
warnings: string[];
|
|
1045
2139
|
notices: string[];
|
|
1046
2140
|
cautions: string[];
|
|
1047
2141
|
} | null;
|
|
2142
|
+
stageId: string | null;
|
|
2143
|
+
settings: {
|
|
2144
|
+
yieldTargetKgPerPlant: number | null;
|
|
2145
|
+
fertilizerSetId: string | null;
|
|
2146
|
+
mulched: boolean | null;
|
|
2147
|
+
feedIntensity: number | null;
|
|
2148
|
+
autoAdjust: boolean;
|
|
2149
|
+
confirmedProducts: {
|
|
2150
|
+
productId: string;
|
|
2151
|
+
dripSafe: boolean;
|
|
2152
|
+
analysis?: {
|
|
2153
|
+
N: number;
|
|
2154
|
+
P2O5: number;
|
|
2155
|
+
K2O: number;
|
|
2156
|
+
CaO: number;
|
|
2157
|
+
MgO: number;
|
|
2158
|
+
} | undefined;
|
|
2159
|
+
}[];
|
|
2160
|
+
};
|
|
2161
|
+
yieldToDate: {
|
|
2162
|
+
kgTotal: number;
|
|
2163
|
+
kgPerPlant: number | null;
|
|
2164
|
+
targetKgPerPlant: number;
|
|
2165
|
+
percentOfTarget: number | null;
|
|
2166
|
+
harvestCount: number;
|
|
2167
|
+
skippedUnits: boolean;
|
|
2168
|
+
} | null;
|
|
2169
|
+
}>;
|
|
2170
|
+
export declare const symptomCatalogSchema: z.ZodObject<{
|
|
2171
|
+
symptoms: z.ZodArray<z.ZodObject<{
|
|
2172
|
+
id: z.ZodEnum<["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"]>;
|
|
2173
|
+
label: z.ZodString;
|
|
2174
|
+
phases: z.ZodArray<z.ZodEnum<["nursery", "field"]>, "many">;
|
|
2175
|
+
questions: z.ZodArray<z.ZodEnum<["drainage", "affected", "lastFeed"]>, "many">;
|
|
2176
|
+
}, "strip", z.ZodTypeAny, {
|
|
2177
|
+
id: "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";
|
|
2178
|
+
label: string;
|
|
2179
|
+
phases: ("field" | "nursery")[];
|
|
2180
|
+
questions: ("drainage" | "affected" | "lastFeed")[];
|
|
2181
|
+
}, {
|
|
2182
|
+
id: "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";
|
|
2183
|
+
label: string;
|
|
2184
|
+
phases: ("field" | "nursery")[];
|
|
2185
|
+
questions: ("drainage" | "affected" | "lastFeed")[];
|
|
2186
|
+
}>, "many">;
|
|
2187
|
+
questions: z.ZodArray<z.ZodObject<{
|
|
2188
|
+
id: z.ZodEnum<["drainage", "affected", "lastFeed"]>;
|
|
2189
|
+
prompt: z.ZodString;
|
|
2190
|
+
options: z.ZodArray<z.ZodObject<{
|
|
2191
|
+
value: z.ZodString;
|
|
2192
|
+
label: z.ZodString;
|
|
2193
|
+
}, "strip", z.ZodTypeAny, {
|
|
2194
|
+
value: string;
|
|
2195
|
+
label: string;
|
|
2196
|
+
}, {
|
|
2197
|
+
value: string;
|
|
2198
|
+
label: string;
|
|
2199
|
+
}>, "many">;
|
|
2200
|
+
}, "strip", z.ZodTypeAny, {
|
|
2201
|
+
options: {
|
|
2202
|
+
value: string;
|
|
2203
|
+
label: string;
|
|
2204
|
+
}[];
|
|
2205
|
+
id: "drainage" | "affected" | "lastFeed";
|
|
2206
|
+
prompt: string;
|
|
2207
|
+
}, {
|
|
2208
|
+
options: {
|
|
2209
|
+
value: string;
|
|
2210
|
+
label: string;
|
|
2211
|
+
}[];
|
|
2212
|
+
id: "drainage" | "affected" | "lastFeed";
|
|
2213
|
+
prompt: string;
|
|
2214
|
+
}>, "many">;
|
|
2215
|
+
}, "strip", z.ZodTypeAny, {
|
|
2216
|
+
symptoms: {
|
|
2217
|
+
id: "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";
|
|
2218
|
+
label: string;
|
|
2219
|
+
phases: ("field" | "nursery")[];
|
|
2220
|
+
questions: ("drainage" | "affected" | "lastFeed")[];
|
|
2221
|
+
}[];
|
|
2222
|
+
questions: {
|
|
2223
|
+
options: {
|
|
2224
|
+
value: string;
|
|
2225
|
+
label: string;
|
|
2226
|
+
}[];
|
|
2227
|
+
id: "drainage" | "affected" | "lastFeed";
|
|
2228
|
+
prompt: string;
|
|
2229
|
+
}[];
|
|
2230
|
+
}, {
|
|
2231
|
+
symptoms: {
|
|
2232
|
+
id: "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";
|
|
2233
|
+
label: string;
|
|
2234
|
+
phases: ("field" | "nursery")[];
|
|
2235
|
+
questions: ("drainage" | "affected" | "lastFeed")[];
|
|
2236
|
+
}[];
|
|
2237
|
+
questions: {
|
|
2238
|
+
options: {
|
|
2239
|
+
value: string;
|
|
2240
|
+
label: string;
|
|
2241
|
+
}[];
|
|
2242
|
+
id: "drainage" | "affected" | "lastFeed";
|
|
2243
|
+
prompt: string;
|
|
2244
|
+
}[];
|
|
2245
|
+
}>;
|
|
2246
|
+
export declare const reportSymptomBodySchema: z.ZodObject<{
|
|
2247
|
+
symptomId: z.ZodEnum<["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"]>;
|
|
2248
|
+
answers: z.ZodOptional<z.ZodObject<{
|
|
2249
|
+
drainage: z.ZodOptional<z.ZodEnum<["waterlogged", "wet", "ok", "dry"]>>;
|
|
2250
|
+
affected: z.ZodOptional<z.ZodEnum<["few", "many", "most"]>>;
|
|
2251
|
+
lastFeed: z.ZodOptional<z.ZodEnum<["recent", "week", "late"]>>;
|
|
2252
|
+
}, "strip", z.ZodTypeAny, {
|
|
2253
|
+
drainage?: "ok" | "waterlogged" | "wet" | "dry" | undefined;
|
|
2254
|
+
affected?: "many" | "few" | "most" | undefined;
|
|
2255
|
+
lastFeed?: "week" | "recent" | "late" | undefined;
|
|
2256
|
+
}, {
|
|
2257
|
+
drainage?: "ok" | "waterlogged" | "wet" | "dry" | undefined;
|
|
2258
|
+
affected?: "many" | "few" | "most" | undefined;
|
|
2259
|
+
lastFeed?: "week" | "recent" | "late" | undefined;
|
|
2260
|
+
}>>;
|
|
2261
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
2262
|
+
}, "strip", z.ZodTypeAny, {
|
|
2263
|
+
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
|
+
notes?: string | undefined;
|
|
2265
|
+
answers?: {
|
|
2266
|
+
drainage?: "ok" | "waterlogged" | "wet" | "dry" | undefined;
|
|
2267
|
+
affected?: "many" | "few" | "most" | undefined;
|
|
2268
|
+
lastFeed?: "week" | "recent" | "late" | undefined;
|
|
2269
|
+
} | undefined;
|
|
2270
|
+
}, {
|
|
2271
|
+
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
|
+
notes?: string | undefined;
|
|
2273
|
+
answers?: {
|
|
2274
|
+
drainage?: "ok" | "waterlogged" | "wet" | "dry" | undefined;
|
|
2275
|
+
affected?: "many" | "few" | "most" | undefined;
|
|
2276
|
+
lastFeed?: "week" | "recent" | "late" | undefined;
|
|
2277
|
+
} | undefined;
|
|
2278
|
+
}>;
|
|
2279
|
+
export declare const sapReadingBodySchema: z.ZodEffects<z.ZodObject<{
|
|
2280
|
+
/** Day the sap was tested (YYYY-MM-DD). Defaults to today. */
|
|
2281
|
+
testedAt: z.ZodOptional<z.ZodString>;
|
|
2282
|
+
/** Nitrate nitrogen in ppm. Use nitratePpm instead if the kit reads NO3. */
|
|
2283
|
+
no3nPpm: z.ZodOptional<z.ZodNumber>;
|
|
2284
|
+
/** Nitrate (NO3) in ppm, as most kits read it; converted to nitrate nitrogen (divide by 4.43). */
|
|
2285
|
+
nitratePpm: z.ZodOptional<z.ZodNumber>;
|
|
2286
|
+
kPpm: z.ZodOptional<z.ZodNumber>;
|
|
2287
|
+
method: z.ZodOptional<z.ZodString>;
|
|
2288
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
2289
|
+
}, "strip", z.ZodTypeAny, {
|
|
2290
|
+
method?: string | undefined;
|
|
2291
|
+
notes?: string | undefined;
|
|
2292
|
+
testedAt?: string | undefined;
|
|
2293
|
+
no3nPpm?: number | undefined;
|
|
2294
|
+
nitratePpm?: number | undefined;
|
|
2295
|
+
kPpm?: number | undefined;
|
|
2296
|
+
}, {
|
|
2297
|
+
method?: string | undefined;
|
|
2298
|
+
notes?: string | undefined;
|
|
2299
|
+
testedAt?: string | undefined;
|
|
2300
|
+
no3nPpm?: number | undefined;
|
|
2301
|
+
nitratePpm?: number | undefined;
|
|
2302
|
+
kPpm?: number | undefined;
|
|
2303
|
+
}>, {
|
|
2304
|
+
method?: string | undefined;
|
|
2305
|
+
notes?: string | undefined;
|
|
2306
|
+
testedAt?: string | undefined;
|
|
2307
|
+
no3nPpm?: number | undefined;
|
|
2308
|
+
nitratePpm?: number | undefined;
|
|
2309
|
+
kPpm?: number | undefined;
|
|
2310
|
+
}, {
|
|
2311
|
+
method?: string | undefined;
|
|
2312
|
+
notes?: string | undefined;
|
|
2313
|
+
testedAt?: string | undefined;
|
|
2314
|
+
no3nPpm?: number | undefined;
|
|
2315
|
+
nitratePpm?: number | undefined;
|
|
2316
|
+
kPpm?: number | undefined;
|
|
2317
|
+
}>;
|
|
2318
|
+
export declare const sapReadingSchema: z.ZodObject<{
|
|
2319
|
+
id: z.ZodString;
|
|
2320
|
+
testedAt: z.ZodString;
|
|
2321
|
+
no3nPpm: z.ZodNullable<z.ZodNumber>;
|
|
2322
|
+
kPpm: z.ZodNullable<z.ZodNumber>;
|
|
2323
|
+
method: z.ZodNullable<z.ZodString>;
|
|
2324
|
+
notes: z.ZodNullable<z.ZodString>;
|
|
2325
|
+
}, "strip", z.ZodTypeAny, {
|
|
2326
|
+
id: string;
|
|
2327
|
+
method: string | null;
|
|
2328
|
+
notes: string | null;
|
|
2329
|
+
testedAt: string;
|
|
2330
|
+
no3nPpm: number | null;
|
|
2331
|
+
kPpm: number | null;
|
|
2332
|
+
}, {
|
|
2333
|
+
id: string;
|
|
2334
|
+
method: string | null;
|
|
2335
|
+
notes: string | null;
|
|
2336
|
+
testedAt: string;
|
|
2337
|
+
no3nPpm: number | null;
|
|
2338
|
+
kPpm: number | null;
|
|
2339
|
+
}>;
|
|
2340
|
+
export declare const updateSettingsBodySchema: z.ZodObject<{
|
|
2341
|
+
yieldTargetKgPerPlant: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2342
|
+
fertilizerSetId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2343
|
+
mulched: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
2344
|
+
feedIntensity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2345
|
+
autoAdjust: z.ZodOptional<z.ZodBoolean>;
|
|
2346
|
+
confirmedProducts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2347
|
+
productId: z.ZodString;
|
|
2348
|
+
/** Percent of product mass printed on the bag. Omit to keep the catalogue analysis. */
|
|
2349
|
+
analysis: z.ZodOptional<z.ZodObject<{
|
|
2350
|
+
N: z.ZodNumber;
|
|
2351
|
+
P2O5: z.ZodNumber;
|
|
2352
|
+
K2O: z.ZodNumber;
|
|
2353
|
+
CaO: z.ZodNumber;
|
|
2354
|
+
MgO: z.ZodNumber;
|
|
2355
|
+
}, "strip", z.ZodTypeAny, {
|
|
2356
|
+
N: number;
|
|
2357
|
+
P2O5: number;
|
|
2358
|
+
K2O: number;
|
|
2359
|
+
CaO: number;
|
|
2360
|
+
MgO: number;
|
|
2361
|
+
}, {
|
|
2362
|
+
N: number;
|
|
2363
|
+
P2O5: number;
|
|
2364
|
+
K2O: number;
|
|
2365
|
+
CaO: number;
|
|
2366
|
+
MgO: number;
|
|
2367
|
+
}>>;
|
|
2368
|
+
/** The bag says it can go through drip or fertigation. */
|
|
2369
|
+
dripSafe: z.ZodBoolean;
|
|
2370
|
+
}, "strip", z.ZodTypeAny, {
|
|
2371
|
+
productId: string;
|
|
2372
|
+
dripSafe: boolean;
|
|
2373
|
+
analysis?: {
|
|
2374
|
+
N: number;
|
|
2375
|
+
P2O5: number;
|
|
2376
|
+
K2O: number;
|
|
2377
|
+
CaO: number;
|
|
2378
|
+
MgO: number;
|
|
2379
|
+
} | undefined;
|
|
2380
|
+
}, {
|
|
2381
|
+
productId: string;
|
|
2382
|
+
dripSafe: boolean;
|
|
2383
|
+
analysis?: {
|
|
2384
|
+
N: number;
|
|
2385
|
+
P2O5: number;
|
|
2386
|
+
K2O: number;
|
|
2387
|
+
CaO: number;
|
|
2388
|
+
MgO: number;
|
|
2389
|
+
} | undefined;
|
|
2390
|
+
}>, "many">>;
|
|
2391
|
+
}, "strip", z.ZodTypeAny, {
|
|
2392
|
+
yieldTargetKgPerPlant?: number | null | undefined;
|
|
2393
|
+
fertilizerSetId?: string | null | undefined;
|
|
2394
|
+
mulched?: boolean | null | undefined;
|
|
2395
|
+
feedIntensity?: number | null | undefined;
|
|
2396
|
+
autoAdjust?: boolean | undefined;
|
|
2397
|
+
confirmedProducts?: {
|
|
2398
|
+
productId: string;
|
|
2399
|
+
dripSafe: boolean;
|
|
2400
|
+
analysis?: {
|
|
2401
|
+
N: number;
|
|
2402
|
+
P2O5: number;
|
|
2403
|
+
K2O: number;
|
|
2404
|
+
CaO: number;
|
|
2405
|
+
MgO: number;
|
|
2406
|
+
} | undefined;
|
|
2407
|
+
}[] | undefined;
|
|
2408
|
+
}, {
|
|
2409
|
+
yieldTargetKgPerPlant?: number | null | undefined;
|
|
2410
|
+
fertilizerSetId?: string | null | undefined;
|
|
2411
|
+
mulched?: boolean | null | undefined;
|
|
2412
|
+
feedIntensity?: number | null | undefined;
|
|
2413
|
+
autoAdjust?: boolean | undefined;
|
|
2414
|
+
confirmedProducts?: {
|
|
2415
|
+
productId: string;
|
|
2416
|
+
dripSafe: boolean;
|
|
2417
|
+
analysis?: {
|
|
2418
|
+
N: number;
|
|
2419
|
+
P2O5: number;
|
|
2420
|
+
K2O: number;
|
|
2421
|
+
CaO: number;
|
|
2422
|
+
MgO: number;
|
|
2423
|
+
} | undefined;
|
|
2424
|
+
}[] | undefined;
|
|
1048
2425
|
}>;
|
|
1049
2426
|
export type NutrientPlanContract = z.infer<typeof nutrientPlanSchema>;
|
|
2427
|
+
export type NurseryPlanContract = z.infer<typeof nurseryPlanSchema>;
|
|
2428
|
+
export type PlanAdjustmentContract = z.infer<typeof planAdjustmentSchema>;
|
|
2429
|
+
export type FertigationSettings = z.infer<typeof fertigationSettingsSchema>;
|
|
2430
|
+
export type SymptomCatalogContract = z.infer<typeof symptomCatalogSchema>;
|
|
2431
|
+
export type SapReadingContract = z.infer<typeof sapReadingSchema>;
|
|
1050
2432
|
export type NutrientPlanResponse = z.infer<typeof nutrientPlanResponseSchema>;
|
|
1051
2433
|
//# sourceMappingURL=nutrient-plan.schemas.d.ts.map
|