@deepintel-ltd/farmpro-contracts 1.35.0 → 1.36.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 +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/routes/fields.routes.d.ts +84 -0
- package/dist/routes/fields.routes.d.ts.map +1 -1
- package/dist/routes/nutrient-plan.routes.d.ts +7085 -15
- 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/fields.schemas.d.ts +64 -0
- package/dist/schemas/fields.schemas.d.ts.map +1 -1
- package/dist/schemas/fields.schemas.js +5 -0
- package/dist/schemas/nutrient-plan.schemas.d.ts +1400 -18
- 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">;
|
|
@@ -265,6 +716,7 @@ export declare const nutrientPlanSchema: z.ZodObject<{
|
|
|
265
716
|
notes: z.ZodArray<z.ZodString, "many">;
|
|
266
717
|
}, "strip", z.ZodTypeAny, {
|
|
267
718
|
notes: string[];
|
|
719
|
+
plantCount: number | null;
|
|
268
720
|
stage: {
|
|
269
721
|
id: string;
|
|
270
722
|
label: string;
|
|
@@ -283,6 +735,25 @@ export declare const nutrientPlanSchema: z.ZodObject<{
|
|
|
283
735
|
litresPerPlantPerDay: number;
|
|
284
736
|
fieldLitresPerDay: number | null;
|
|
285
737
|
};
|
|
738
|
+
adjustments: {
|
|
739
|
+
status: "active" | "proposed";
|
|
740
|
+
title: string;
|
|
741
|
+
reason: string;
|
|
742
|
+
kind: "weekly" | "urgent";
|
|
743
|
+
applied: boolean;
|
|
744
|
+
actions: string[];
|
|
745
|
+
ruleId: string;
|
|
746
|
+
evidence: "observed" | "measured" | "estimated";
|
|
747
|
+
effectSummary: string;
|
|
748
|
+
shadow: boolean;
|
|
749
|
+
id?: string | undefined;
|
|
750
|
+
expiresAt?: string | undefined;
|
|
751
|
+
trigger?: string | undefined;
|
|
752
|
+
}[];
|
|
753
|
+
feedHold: boolean;
|
|
754
|
+
flush: boolean;
|
|
755
|
+
yieldTargetKgPerPlant: number;
|
|
756
|
+
feedIntensity: number;
|
|
286
757
|
sheet: {
|
|
287
758
|
id: string;
|
|
288
759
|
summary: string;
|
|
@@ -294,9 +765,6 @@ export declare const nutrientPlanSchema: z.ZodObject<{
|
|
|
294
765
|
yieldBasis: string;
|
|
295
766
|
};
|
|
296
767
|
fieldDay: number;
|
|
297
|
-
yieldTargetKgPerPlant: number;
|
|
298
|
-
feedIntensity: number;
|
|
299
|
-
plantCount: number | null;
|
|
300
768
|
weeklyPerPlantG: {
|
|
301
769
|
N: number;
|
|
302
770
|
P2O5: number;
|
|
@@ -347,12 +815,29 @@ 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[];
|
|
353
837
|
cautions: string[];
|
|
354
838
|
}, {
|
|
355
839
|
notes: string[];
|
|
840
|
+
plantCount: number | null;
|
|
356
841
|
stage: {
|
|
357
842
|
id: string;
|
|
358
843
|
label: string;
|
|
@@ -371,6 +856,25 @@ export declare const nutrientPlanSchema: z.ZodObject<{
|
|
|
371
856
|
litresPerPlantPerDay: number;
|
|
372
857
|
fieldLitresPerDay: number | null;
|
|
373
858
|
};
|
|
859
|
+
adjustments: {
|
|
860
|
+
status: "active" | "proposed";
|
|
861
|
+
title: string;
|
|
862
|
+
reason: string;
|
|
863
|
+
kind: "weekly" | "urgent";
|
|
864
|
+
applied: boolean;
|
|
865
|
+
actions: string[];
|
|
866
|
+
ruleId: string;
|
|
867
|
+
evidence: "observed" | "measured" | "estimated";
|
|
868
|
+
effectSummary: string;
|
|
869
|
+
shadow: boolean;
|
|
870
|
+
id?: string | undefined;
|
|
871
|
+
expiresAt?: string | undefined;
|
|
872
|
+
trigger?: string | undefined;
|
|
873
|
+
}[];
|
|
874
|
+
feedHold: boolean;
|
|
875
|
+
flush: boolean;
|
|
876
|
+
yieldTargetKgPerPlant: number;
|
|
877
|
+
feedIntensity: number;
|
|
374
878
|
sheet: {
|
|
375
879
|
id: string;
|
|
376
880
|
summary: string;
|
|
@@ -382,9 +886,6 @@ export declare const nutrientPlanSchema: z.ZodObject<{
|
|
|
382
886
|
yieldBasis: string;
|
|
383
887
|
};
|
|
384
888
|
fieldDay: number;
|
|
385
|
-
yieldTargetKgPerPlant: number;
|
|
386
|
-
feedIntensity: number;
|
|
387
|
-
plantCount: number | null;
|
|
388
889
|
weeklyPerPlantG: {
|
|
389
890
|
N: number;
|
|
390
891
|
P2O5: 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">;
|
|
@@ -679,6 +1291,7 @@ export declare const nutrientPlanResponseSchema: z.ZodObject<{
|
|
|
679
1291
|
notes: z.ZodArray<z.ZodString, "many">;
|
|
680
1292
|
}, "strip", z.ZodTypeAny, {
|
|
681
1293
|
notes: string[];
|
|
1294
|
+
plantCount: number | null;
|
|
682
1295
|
stage: {
|
|
683
1296
|
id: string;
|
|
684
1297
|
label: string;
|
|
@@ -697,6 +1310,25 @@ export declare const nutrientPlanResponseSchema: z.ZodObject<{
|
|
|
697
1310
|
litresPerPlantPerDay: number;
|
|
698
1311
|
fieldLitresPerDay: number | null;
|
|
699
1312
|
};
|
|
1313
|
+
adjustments: {
|
|
1314
|
+
status: "active" | "proposed";
|
|
1315
|
+
title: string;
|
|
1316
|
+
reason: string;
|
|
1317
|
+
kind: "weekly" | "urgent";
|
|
1318
|
+
applied: boolean;
|
|
1319
|
+
actions: string[];
|
|
1320
|
+
ruleId: string;
|
|
1321
|
+
evidence: "observed" | "measured" | "estimated";
|
|
1322
|
+
effectSummary: string;
|
|
1323
|
+
shadow: boolean;
|
|
1324
|
+
id?: string | undefined;
|
|
1325
|
+
expiresAt?: string | undefined;
|
|
1326
|
+
trigger?: string | undefined;
|
|
1327
|
+
}[];
|
|
1328
|
+
feedHold: boolean;
|
|
1329
|
+
flush: boolean;
|
|
1330
|
+
yieldTargetKgPerPlant: number;
|
|
1331
|
+
feedIntensity: number;
|
|
700
1332
|
sheet: {
|
|
701
1333
|
id: string;
|
|
702
1334
|
summary: string;
|
|
@@ -708,9 +1340,6 @@ export declare const nutrientPlanResponseSchema: z.ZodObject<{
|
|
|
708
1340
|
yieldBasis: string;
|
|
709
1341
|
};
|
|
710
1342
|
fieldDay: number;
|
|
711
|
-
yieldTargetKgPerPlant: number;
|
|
712
|
-
feedIntensity: number;
|
|
713
|
-
plantCount: number | null;
|
|
714
1343
|
weeklyPerPlantG: {
|
|
715
1344
|
N: number;
|
|
716
1345
|
P2O5: number;
|
|
@@ -761,12 +1390,29 @@ 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[];
|
|
767
1412
|
cautions: string[];
|
|
768
1413
|
}, {
|
|
769
1414
|
notes: string[];
|
|
1415
|
+
plantCount: number | null;
|
|
770
1416
|
stage: {
|
|
771
1417
|
id: string;
|
|
772
1418
|
label: string;
|
|
@@ -785,6 +1431,25 @@ export declare const nutrientPlanResponseSchema: z.ZodObject<{
|
|
|
785
1431
|
litresPerPlantPerDay: number;
|
|
786
1432
|
fieldLitresPerDay: number | null;
|
|
787
1433
|
};
|
|
1434
|
+
adjustments: {
|
|
1435
|
+
status: "active" | "proposed";
|
|
1436
|
+
title: string;
|
|
1437
|
+
reason: string;
|
|
1438
|
+
kind: "weekly" | "urgent";
|
|
1439
|
+
applied: boolean;
|
|
1440
|
+
actions: string[];
|
|
1441
|
+
ruleId: string;
|
|
1442
|
+
evidence: "observed" | "measured" | "estimated";
|
|
1443
|
+
effectSummary: string;
|
|
1444
|
+
shadow: boolean;
|
|
1445
|
+
id?: string | undefined;
|
|
1446
|
+
expiresAt?: string | undefined;
|
|
1447
|
+
trigger?: string | undefined;
|
|
1448
|
+
}[];
|
|
1449
|
+
feedHold: boolean;
|
|
1450
|
+
flush: boolean;
|
|
1451
|
+
yieldTargetKgPerPlant: number;
|
|
1452
|
+
feedIntensity: number;
|
|
788
1453
|
sheet: {
|
|
789
1454
|
id: string;
|
|
790
1455
|
summary: string;
|
|
@@ -796,9 +1461,6 @@ export declare const nutrientPlanResponseSchema: z.ZodObject<{
|
|
|
796
1461
|
yieldBasis: string;
|
|
797
1462
|
};
|
|
798
1463
|
fieldDay: number;
|
|
799
|
-
yieldTargetKgPerPlant: number;
|
|
800
|
-
feedIntensity: number;
|
|
801
|
-
plantCount: number | null;
|
|
802
1464
|
weeklyPerPlantG: {
|
|
803
1465
|
N: number;
|
|
804
1466
|
P2O5: 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,8 +1792,44 @@ 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[];
|
|
1832
|
+
plantCount: number | null;
|
|
866
1833
|
stage: {
|
|
867
1834
|
id: string;
|
|
868
1835
|
label: string;
|
|
@@ -881,6 +1848,25 @@ export declare const nutrientPlanResponseSchema: z.ZodObject<{
|
|
|
881
1848
|
litresPerPlantPerDay: number;
|
|
882
1849
|
fieldLitresPerDay: number | null;
|
|
883
1850
|
};
|
|
1851
|
+
adjustments: {
|
|
1852
|
+
status: "active" | "proposed";
|
|
1853
|
+
title: string;
|
|
1854
|
+
reason: string;
|
|
1855
|
+
kind: "weekly" | "urgent";
|
|
1856
|
+
applied: boolean;
|
|
1857
|
+
actions: string[];
|
|
1858
|
+
ruleId: string;
|
|
1859
|
+
evidence: "observed" | "measured" | "estimated";
|
|
1860
|
+
effectSummary: string;
|
|
1861
|
+
shadow: boolean;
|
|
1862
|
+
id?: string | undefined;
|
|
1863
|
+
expiresAt?: string | undefined;
|
|
1864
|
+
trigger?: string | undefined;
|
|
1865
|
+
}[];
|
|
1866
|
+
feedHold: boolean;
|
|
1867
|
+
flush: boolean;
|
|
1868
|
+
yieldTargetKgPerPlant: number;
|
|
1869
|
+
feedIntensity: number;
|
|
884
1870
|
sheet: {
|
|
885
1871
|
id: string;
|
|
886
1872
|
summary: string;
|
|
@@ -892,9 +1878,6 @@ export declare const nutrientPlanResponseSchema: z.ZodObject<{
|
|
|
892
1878
|
yieldBasis: string;
|
|
893
1879
|
};
|
|
894
1880
|
fieldDay: number;
|
|
895
|
-
yieldTargetKgPerPlant: number;
|
|
896
|
-
feedIntensity: number;
|
|
897
|
-
plantCount: number | null;
|
|
898
1881
|
weeklyPerPlantG: {
|
|
899
1882
|
N: number;
|
|
900
1883
|
P2O5: number;
|
|
@@ -945,19 +1928,98 @@ 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[];
|
|
2022
|
+
plantCount: number | null;
|
|
961
2023
|
stage: {
|
|
962
2024
|
id: string;
|
|
963
2025
|
label: string;
|
|
@@ -976,6 +2038,25 @@ export declare const nutrientPlanResponseSchema: z.ZodObject<{
|
|
|
976
2038
|
litresPerPlantPerDay: number;
|
|
977
2039
|
fieldLitresPerDay: number | null;
|
|
978
2040
|
};
|
|
2041
|
+
adjustments: {
|
|
2042
|
+
status: "active" | "proposed";
|
|
2043
|
+
title: string;
|
|
2044
|
+
reason: string;
|
|
2045
|
+
kind: "weekly" | "urgent";
|
|
2046
|
+
applied: boolean;
|
|
2047
|
+
actions: string[];
|
|
2048
|
+
ruleId: string;
|
|
2049
|
+
evidence: "observed" | "measured" | "estimated";
|
|
2050
|
+
effectSummary: string;
|
|
2051
|
+
shadow: boolean;
|
|
2052
|
+
id?: string | undefined;
|
|
2053
|
+
expiresAt?: string | undefined;
|
|
2054
|
+
trigger?: string | undefined;
|
|
2055
|
+
}[];
|
|
2056
|
+
feedHold: boolean;
|
|
2057
|
+
flush: boolean;
|
|
2058
|
+
yieldTargetKgPerPlant: number;
|
|
2059
|
+
feedIntensity: number;
|
|
979
2060
|
sheet: {
|
|
980
2061
|
id: string;
|
|
981
2062
|
summary: string;
|
|
@@ -987,9 +2068,6 @@ export declare const nutrientPlanResponseSchema: z.ZodObject<{
|
|
|
987
2068
|
yieldBasis: string;
|
|
988
2069
|
};
|
|
989
2070
|
fieldDay: number;
|
|
990
|
-
yieldTargetKgPerPlant: number;
|
|
991
|
-
feedIntensity: number;
|
|
992
|
-
plantCount: number | null;
|
|
993
2071
|
weeklyPerPlantG: {
|
|
994
2072
|
N: number;
|
|
995
2073
|
P2O5: 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
|