@deepintel-ltd/farmpro-contracts 1.36.7 → 1.36.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,728 @@
1
+ import { z } from 'zod';
2
+ export declare const pillarSchema: z.ZodEnum<["ipm", "water", "weeds", "pruning"]>;
3
+ export declare const pillarSourceSchema: z.ZodObject<{
4
+ id: z.ZodString;
5
+ org: z.ZodString;
6
+ title: z.ZodString;
7
+ url: z.ZodOptional<z.ZodString>;
8
+ grade: z.ZodEnum<["A", "B", "C"]>;
9
+ }, "strip", z.ZodTypeAny, {
10
+ id: string;
11
+ title: string;
12
+ org: string;
13
+ grade: "A" | "B" | "C";
14
+ url?: string | undefined;
15
+ }, {
16
+ id: string;
17
+ title: string;
18
+ org: string;
19
+ grade: "A" | "B" | "C";
20
+ url?: string | undefined;
21
+ }>;
22
+ export declare const responseStepSchema: z.ZodObject<{
23
+ tier: z.ZodEnum<["prevent", "cultural", "biological", "chemical"]>;
24
+ text: z.ZodString;
25
+ productClass: z.ZodOptional<z.ZodEnum<["fungicide", "insecticide", "miticide", "biopesticide", "herbicide"]>>;
26
+ activeIngredient: z.ZodOptional<z.ZodString>;
27
+ resistanceGroup: z.ZodOptional<z.ZodObject<{
28
+ system: z.ZodEnum<["IRAC", "FRAC", "HRAC"]>;
29
+ code: z.ZodString;
30
+ }, "strip", z.ZodTypeAny, {
31
+ code: string;
32
+ system: "IRAC" | "FRAC" | "HRAC";
33
+ }, {
34
+ code: string;
35
+ system: "IRAC" | "FRAC" | "HRAC";
36
+ }>>;
37
+ grade: z.ZodEnum<["A", "B", "C"]>;
38
+ sourceIds: z.ZodArray<z.ZodString, "many">;
39
+ }, "strip", z.ZodTypeAny, {
40
+ text: string;
41
+ tier: "prevent" | "cultural" | "biological" | "chemical";
42
+ grade: "A" | "B" | "C";
43
+ sourceIds: string[];
44
+ productClass?: "fungicide" | "insecticide" | "miticide" | "biopesticide" | "herbicide" | undefined;
45
+ activeIngredient?: string | undefined;
46
+ resistanceGroup?: {
47
+ code: string;
48
+ system: "IRAC" | "FRAC" | "HRAC";
49
+ } | undefined;
50
+ }, {
51
+ text: string;
52
+ tier: "prevent" | "cultural" | "biological" | "chemical";
53
+ grade: "A" | "B" | "C";
54
+ sourceIds: string[];
55
+ productClass?: "fungicide" | "insecticide" | "miticide" | "biopesticide" | "herbicide" | undefined;
56
+ activeIngredient?: string | undefined;
57
+ resistanceGroup?: {
58
+ code: string;
59
+ system: "IRAC" | "FRAC" | "HRAC";
60
+ } | undefined;
61
+ }>;
62
+ export declare const thresholdSchema: z.ZodObject<{
63
+ metric: z.ZodString;
64
+ text: z.ZodString;
65
+ value: z.ZodOptional<z.ZodNumber>;
66
+ unit: z.ZodOptional<z.ZodString>;
67
+ grade: z.ZodEnum<["A", "B", "C"]>;
68
+ sourceIds: z.ZodArray<z.ZodString, "many">;
69
+ }, "strip", z.ZodTypeAny, {
70
+ metric: string;
71
+ text: string;
72
+ grade: "A" | "B" | "C";
73
+ sourceIds: string[];
74
+ value?: number | undefined;
75
+ unit?: string | undefined;
76
+ }, {
77
+ metric: string;
78
+ text: string;
79
+ grade: "A" | "B" | "C";
80
+ sourceIds: string[];
81
+ value?: number | undefined;
82
+ unit?: string | undefined;
83
+ }>;
84
+ export declare const threatSchema: z.ZodObject<{
85
+ id: z.ZodString;
86
+ name: z.ZodString;
87
+ kind: z.ZodEnum<["insect", "mite", "fungal", "bacterial", "viral", "physiological", "water", "weed", "canopy"]>;
88
+ localNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
89
+ symptoms: z.ZodArray<z.ZodString, "many">;
90
+ confusedWith: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
91
+ weatherTriggers: z.ZodOptional<z.ZodArray<z.ZodEnum<["wet", "humid", "hot", "dry", "windy", "warm"]>, "many">>;
92
+ vectorOf: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
93
+ scoutHow: z.ZodString;
94
+ thresholds: z.ZodArray<z.ZodObject<{
95
+ metric: z.ZodString;
96
+ text: z.ZodString;
97
+ value: z.ZodOptional<z.ZodNumber>;
98
+ unit: z.ZodOptional<z.ZodString>;
99
+ grade: z.ZodEnum<["A", "B", "C"]>;
100
+ sourceIds: z.ZodArray<z.ZodString, "many">;
101
+ }, "strip", z.ZodTypeAny, {
102
+ metric: string;
103
+ text: string;
104
+ grade: "A" | "B" | "C";
105
+ sourceIds: string[];
106
+ value?: number | undefined;
107
+ unit?: string | undefined;
108
+ }, {
109
+ metric: string;
110
+ text: string;
111
+ grade: "A" | "B" | "C";
112
+ sourceIds: string[];
113
+ value?: number | undefined;
114
+ unit?: string | undefined;
115
+ }>, "many">;
116
+ responses: z.ZodArray<z.ZodObject<{
117
+ tier: z.ZodEnum<["prevent", "cultural", "biological", "chemical"]>;
118
+ text: z.ZodString;
119
+ productClass: z.ZodOptional<z.ZodEnum<["fungicide", "insecticide", "miticide", "biopesticide", "herbicide"]>>;
120
+ activeIngredient: z.ZodOptional<z.ZodString>;
121
+ resistanceGroup: z.ZodOptional<z.ZodObject<{
122
+ system: z.ZodEnum<["IRAC", "FRAC", "HRAC"]>;
123
+ code: z.ZodString;
124
+ }, "strip", z.ZodTypeAny, {
125
+ code: string;
126
+ system: "IRAC" | "FRAC" | "HRAC";
127
+ }, {
128
+ code: string;
129
+ system: "IRAC" | "FRAC" | "HRAC";
130
+ }>>;
131
+ grade: z.ZodEnum<["A", "B", "C"]>;
132
+ sourceIds: z.ZodArray<z.ZodString, "many">;
133
+ }, "strip", z.ZodTypeAny, {
134
+ text: string;
135
+ tier: "prevent" | "cultural" | "biological" | "chemical";
136
+ grade: "A" | "B" | "C";
137
+ sourceIds: string[];
138
+ productClass?: "fungicide" | "insecticide" | "miticide" | "biopesticide" | "herbicide" | undefined;
139
+ activeIngredient?: string | undefined;
140
+ resistanceGroup?: {
141
+ code: string;
142
+ system: "IRAC" | "FRAC" | "HRAC";
143
+ } | undefined;
144
+ }, {
145
+ text: string;
146
+ tier: "prevent" | "cultural" | "biological" | "chemical";
147
+ grade: "A" | "B" | "C";
148
+ sourceIds: string[];
149
+ productClass?: "fungicide" | "insecticide" | "miticide" | "biopesticide" | "herbicide" | undefined;
150
+ activeIngredient?: string | undefined;
151
+ resistanceGroup?: {
152
+ code: string;
153
+ system: "IRAC" | "FRAC" | "HRAC";
154
+ } | undefined;
155
+ }>, "many">;
156
+ }, "strip", z.ZodTypeAny, {
157
+ id: string;
158
+ name: string;
159
+ responses: {
160
+ text: string;
161
+ tier: "prevent" | "cultural" | "biological" | "chemical";
162
+ grade: "A" | "B" | "C";
163
+ sourceIds: string[];
164
+ productClass?: "fungicide" | "insecticide" | "miticide" | "biopesticide" | "herbicide" | undefined;
165
+ activeIngredient?: string | undefined;
166
+ resistanceGroup?: {
167
+ code: string;
168
+ system: "IRAC" | "FRAC" | "HRAC";
169
+ } | undefined;
170
+ }[];
171
+ kind: "weed" | "water" | "insect" | "mite" | "fungal" | "bacterial" | "viral" | "physiological" | "canopy";
172
+ symptoms: string[];
173
+ scoutHow: string;
174
+ thresholds: {
175
+ metric: string;
176
+ text: string;
177
+ grade: "A" | "B" | "C";
178
+ sourceIds: string[];
179
+ value?: number | undefined;
180
+ unit?: string | undefined;
181
+ }[];
182
+ localNames?: string[] | undefined;
183
+ confusedWith?: string[] | undefined;
184
+ weatherTriggers?: ("wet" | "humid" | "hot" | "dry" | "windy" | "warm")[] | undefined;
185
+ vectorOf?: string[] | undefined;
186
+ }, {
187
+ id: string;
188
+ name: string;
189
+ responses: {
190
+ text: string;
191
+ tier: "prevent" | "cultural" | "biological" | "chemical";
192
+ grade: "A" | "B" | "C";
193
+ sourceIds: string[];
194
+ productClass?: "fungicide" | "insecticide" | "miticide" | "biopesticide" | "herbicide" | undefined;
195
+ activeIngredient?: string | undefined;
196
+ resistanceGroup?: {
197
+ code: string;
198
+ system: "IRAC" | "FRAC" | "HRAC";
199
+ } | undefined;
200
+ }[];
201
+ kind: "weed" | "water" | "insect" | "mite" | "fungal" | "bacterial" | "viral" | "physiological" | "canopy";
202
+ symptoms: string[];
203
+ scoutHow: string;
204
+ thresholds: {
205
+ metric: string;
206
+ text: string;
207
+ grade: "A" | "B" | "C";
208
+ sourceIds: string[];
209
+ value?: number | undefined;
210
+ unit?: string | undefined;
211
+ }[];
212
+ localNames?: string[] | undefined;
213
+ confusedWith?: string[] | undefined;
214
+ weatherTriggers?: ("wet" | "humid" | "hot" | "dry" | "windy" | "warm")[] | undefined;
215
+ vectorOf?: string[] | undefined;
216
+ }>;
217
+ export declare const scoutProtocolSchema: z.ZodObject<{
218
+ perWeek: z.ZodNumber;
219
+ perWeekWet: z.ZodNumber;
220
+ samplePlants: z.ZodNumber;
221
+ pattern: z.ZodEnum<["W", "Z"]>;
222
+ grade: z.ZodEnum<["A", "B", "C"]>;
223
+ sourceIds: z.ZodArray<z.ZodString, "many">;
224
+ }, "strip", z.ZodTypeAny, {
225
+ grade: "A" | "B" | "C";
226
+ sourceIds: string[];
227
+ perWeek: number;
228
+ perWeekWet: number;
229
+ samplePlants: number;
230
+ pattern: "W" | "Z";
231
+ }, {
232
+ grade: "A" | "B" | "C";
233
+ sourceIds: string[];
234
+ perWeek: number;
235
+ perWeekWet: number;
236
+ samplePlants: number;
237
+ pattern: "W" | "Z";
238
+ }>;
239
+ export declare const pillarStageSchema: z.ZodObject<{
240
+ stageId: z.ZodString;
241
+ summary: z.ZodString;
242
+ prevent: z.ZodArray<z.ZodString, "many">;
243
+ scout: z.ZodOptional<z.ZodObject<{
244
+ perWeek: z.ZodNumber;
245
+ perWeekWet: z.ZodNumber;
246
+ samplePlants: z.ZodNumber;
247
+ pattern: z.ZodEnum<["W", "Z"]>;
248
+ grade: z.ZodEnum<["A", "B", "C"]>;
249
+ sourceIds: z.ZodArray<z.ZodString, "many">;
250
+ }, "strip", z.ZodTypeAny, {
251
+ grade: "A" | "B" | "C";
252
+ sourceIds: string[];
253
+ perWeek: number;
254
+ perWeekWet: number;
255
+ samplePlants: number;
256
+ pattern: "W" | "Z";
257
+ }, {
258
+ grade: "A" | "B" | "C";
259
+ sourceIds: string[];
260
+ perWeek: number;
261
+ perWeekWet: number;
262
+ samplePlants: number;
263
+ pattern: "W" | "Z";
264
+ }>>;
265
+ watch: z.ZodArray<z.ZodString, "many">;
266
+ }, "strip", z.ZodTypeAny, {
267
+ summary: string;
268
+ watch: string[];
269
+ prevent: string[];
270
+ stageId: string;
271
+ scout?: {
272
+ grade: "A" | "B" | "C";
273
+ sourceIds: string[];
274
+ perWeek: number;
275
+ perWeekWet: number;
276
+ samplePlants: number;
277
+ pattern: "W" | "Z";
278
+ } | undefined;
279
+ }, {
280
+ summary: string;
281
+ watch: string[];
282
+ prevent: string[];
283
+ stageId: string;
284
+ scout?: {
285
+ grade: "A" | "B" | "C";
286
+ sourceIds: string[];
287
+ perWeek: number;
288
+ perWeekWet: number;
289
+ samplePlants: number;
290
+ pattern: "W" | "Z";
291
+ } | undefined;
292
+ }>;
293
+ /** The plan's own header, without every stage: the client already has the crop-care card for the calendar. */
294
+ export declare const resolvedPillarSchema: z.ZodObject<{
295
+ pillar: z.ZodEnum<["ipm", "water", "weeds", "pruning"]>;
296
+ origin: z.ZodEnum<["file", "generic"]>;
297
+ planId: z.ZodString;
298
+ oneLineRule: z.ZodString;
299
+ guidelineLabel: z.ZodString;
300
+ sources: z.ZodArray<z.ZodObject<{
301
+ id: z.ZodString;
302
+ org: z.ZodString;
303
+ title: z.ZodString;
304
+ url: z.ZodOptional<z.ZodString>;
305
+ grade: z.ZodEnum<["A", "B", "C"]>;
306
+ }, "strip", z.ZodTypeAny, {
307
+ id: string;
308
+ title: string;
309
+ org: string;
310
+ grade: "A" | "B" | "C";
311
+ url?: string | undefined;
312
+ }, {
313
+ id: string;
314
+ title: string;
315
+ org: string;
316
+ grade: "A" | "B" | "C";
317
+ url?: string | undefined;
318
+ }>, "many">;
319
+ phase: z.ZodEnum<["nursery", "field"]>;
320
+ day: z.ZodNullable<z.ZodNumber>;
321
+ stageId: z.ZodString;
322
+ stage: z.ZodNullable<z.ZodObject<{
323
+ stageId: z.ZodString;
324
+ summary: z.ZodString;
325
+ prevent: z.ZodArray<z.ZodString, "many">;
326
+ scout: z.ZodOptional<z.ZodObject<{
327
+ perWeek: z.ZodNumber;
328
+ perWeekWet: z.ZodNumber;
329
+ samplePlants: z.ZodNumber;
330
+ pattern: z.ZodEnum<["W", "Z"]>;
331
+ grade: z.ZodEnum<["A", "B", "C"]>;
332
+ sourceIds: z.ZodArray<z.ZodString, "many">;
333
+ }, "strip", z.ZodTypeAny, {
334
+ grade: "A" | "B" | "C";
335
+ sourceIds: string[];
336
+ perWeek: number;
337
+ perWeekWet: number;
338
+ samplePlants: number;
339
+ pattern: "W" | "Z";
340
+ }, {
341
+ grade: "A" | "B" | "C";
342
+ sourceIds: string[];
343
+ perWeek: number;
344
+ perWeekWet: number;
345
+ samplePlants: number;
346
+ pattern: "W" | "Z";
347
+ }>>;
348
+ watch: z.ZodArray<z.ZodString, "many">;
349
+ }, "strip", z.ZodTypeAny, {
350
+ summary: string;
351
+ watch: string[];
352
+ prevent: string[];
353
+ stageId: string;
354
+ scout?: {
355
+ grade: "A" | "B" | "C";
356
+ sourceIds: string[];
357
+ perWeek: number;
358
+ perWeekWet: number;
359
+ samplePlants: number;
360
+ pattern: "W" | "Z";
361
+ } | undefined;
362
+ }, {
363
+ summary: string;
364
+ watch: string[];
365
+ prevent: string[];
366
+ stageId: string;
367
+ scout?: {
368
+ grade: "A" | "B" | "C";
369
+ sourceIds: string[];
370
+ perWeek: number;
371
+ perWeekWet: number;
372
+ samplePlants: number;
373
+ pattern: "W" | "Z";
374
+ } | undefined;
375
+ }>>;
376
+ stageFallback: z.ZodBoolean;
377
+ /** Threats for this stage, most important first. */
378
+ watch: z.ZodArray<z.ZodObject<{
379
+ id: z.ZodString;
380
+ name: z.ZodString;
381
+ kind: z.ZodEnum<["insect", "mite", "fungal", "bacterial", "viral", "physiological", "water", "weed", "canopy"]>;
382
+ localNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
383
+ symptoms: z.ZodArray<z.ZodString, "many">;
384
+ confusedWith: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
385
+ weatherTriggers: z.ZodOptional<z.ZodArray<z.ZodEnum<["wet", "humid", "hot", "dry", "windy", "warm"]>, "many">>;
386
+ vectorOf: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
387
+ scoutHow: z.ZodString;
388
+ thresholds: z.ZodArray<z.ZodObject<{
389
+ metric: z.ZodString;
390
+ text: z.ZodString;
391
+ value: z.ZodOptional<z.ZodNumber>;
392
+ unit: z.ZodOptional<z.ZodString>;
393
+ grade: z.ZodEnum<["A", "B", "C"]>;
394
+ sourceIds: z.ZodArray<z.ZodString, "many">;
395
+ }, "strip", z.ZodTypeAny, {
396
+ metric: string;
397
+ text: string;
398
+ grade: "A" | "B" | "C";
399
+ sourceIds: string[];
400
+ value?: number | undefined;
401
+ unit?: string | undefined;
402
+ }, {
403
+ metric: string;
404
+ text: string;
405
+ grade: "A" | "B" | "C";
406
+ sourceIds: string[];
407
+ value?: number | undefined;
408
+ unit?: string | undefined;
409
+ }>, "many">;
410
+ responses: z.ZodArray<z.ZodObject<{
411
+ tier: z.ZodEnum<["prevent", "cultural", "biological", "chemical"]>;
412
+ text: z.ZodString;
413
+ productClass: z.ZodOptional<z.ZodEnum<["fungicide", "insecticide", "miticide", "biopesticide", "herbicide"]>>;
414
+ activeIngredient: z.ZodOptional<z.ZodString>;
415
+ resistanceGroup: z.ZodOptional<z.ZodObject<{
416
+ system: z.ZodEnum<["IRAC", "FRAC", "HRAC"]>;
417
+ code: z.ZodString;
418
+ }, "strip", z.ZodTypeAny, {
419
+ code: string;
420
+ system: "IRAC" | "FRAC" | "HRAC";
421
+ }, {
422
+ code: string;
423
+ system: "IRAC" | "FRAC" | "HRAC";
424
+ }>>;
425
+ grade: z.ZodEnum<["A", "B", "C"]>;
426
+ sourceIds: z.ZodArray<z.ZodString, "many">;
427
+ }, "strip", z.ZodTypeAny, {
428
+ text: string;
429
+ tier: "prevent" | "cultural" | "biological" | "chemical";
430
+ grade: "A" | "B" | "C";
431
+ sourceIds: string[];
432
+ productClass?: "fungicide" | "insecticide" | "miticide" | "biopesticide" | "herbicide" | undefined;
433
+ activeIngredient?: string | undefined;
434
+ resistanceGroup?: {
435
+ code: string;
436
+ system: "IRAC" | "FRAC" | "HRAC";
437
+ } | undefined;
438
+ }, {
439
+ text: string;
440
+ tier: "prevent" | "cultural" | "biological" | "chemical";
441
+ grade: "A" | "B" | "C";
442
+ sourceIds: string[];
443
+ productClass?: "fungicide" | "insecticide" | "miticide" | "biopesticide" | "herbicide" | undefined;
444
+ activeIngredient?: string | undefined;
445
+ resistanceGroup?: {
446
+ code: string;
447
+ system: "IRAC" | "FRAC" | "HRAC";
448
+ } | undefined;
449
+ }>, "many">;
450
+ }, "strip", z.ZodTypeAny, {
451
+ id: string;
452
+ name: string;
453
+ responses: {
454
+ text: string;
455
+ tier: "prevent" | "cultural" | "biological" | "chemical";
456
+ grade: "A" | "B" | "C";
457
+ sourceIds: string[];
458
+ productClass?: "fungicide" | "insecticide" | "miticide" | "biopesticide" | "herbicide" | undefined;
459
+ activeIngredient?: string | undefined;
460
+ resistanceGroup?: {
461
+ code: string;
462
+ system: "IRAC" | "FRAC" | "HRAC";
463
+ } | undefined;
464
+ }[];
465
+ kind: "weed" | "water" | "insect" | "mite" | "fungal" | "bacterial" | "viral" | "physiological" | "canopy";
466
+ symptoms: string[];
467
+ scoutHow: string;
468
+ thresholds: {
469
+ metric: string;
470
+ text: string;
471
+ grade: "A" | "B" | "C";
472
+ sourceIds: string[];
473
+ value?: number | undefined;
474
+ unit?: string | undefined;
475
+ }[];
476
+ localNames?: string[] | undefined;
477
+ confusedWith?: string[] | undefined;
478
+ weatherTriggers?: ("wet" | "humid" | "hot" | "dry" | "windy" | "warm")[] | undefined;
479
+ vectorOf?: string[] | undefined;
480
+ }, {
481
+ id: string;
482
+ name: string;
483
+ responses: {
484
+ text: string;
485
+ tier: "prevent" | "cultural" | "biological" | "chemical";
486
+ grade: "A" | "B" | "C";
487
+ sourceIds: string[];
488
+ productClass?: "fungicide" | "insecticide" | "miticide" | "biopesticide" | "herbicide" | undefined;
489
+ activeIngredient?: string | undefined;
490
+ resistanceGroup?: {
491
+ code: string;
492
+ system: "IRAC" | "FRAC" | "HRAC";
493
+ } | undefined;
494
+ }[];
495
+ kind: "weed" | "water" | "insect" | "mite" | "fungal" | "bacterial" | "viral" | "physiological" | "canopy";
496
+ symptoms: string[];
497
+ scoutHow: string;
498
+ thresholds: {
499
+ metric: string;
500
+ text: string;
501
+ grade: "A" | "B" | "C";
502
+ sourceIds: string[];
503
+ value?: number | undefined;
504
+ unit?: string | undefined;
505
+ }[];
506
+ localNames?: string[] | undefined;
507
+ confusedWith?: string[] | undefined;
508
+ weatherTriggers?: ("wet" | "humid" | "hot" | "dry" | "windy" | "warm")[] | undefined;
509
+ vectorOf?: string[] | undefined;
510
+ }>, "many">;
511
+ needsDate: z.ZodBoolean;
512
+ }, "strip", z.ZodTypeAny, {
513
+ sources: {
514
+ id: string;
515
+ title: string;
516
+ org: string;
517
+ grade: "A" | "B" | "C";
518
+ url?: string | undefined;
519
+ }[];
520
+ stage: {
521
+ summary: string;
522
+ watch: string[];
523
+ prevent: string[];
524
+ stageId: string;
525
+ scout?: {
526
+ grade: "A" | "B" | "C";
527
+ sourceIds: string[];
528
+ perWeek: number;
529
+ perWeekWet: number;
530
+ samplePlants: number;
531
+ pattern: "W" | "Z";
532
+ } | undefined;
533
+ } | null;
534
+ day: number | null;
535
+ phase: "field" | "nursery";
536
+ oneLineRule: string;
537
+ watch: {
538
+ id: string;
539
+ name: string;
540
+ responses: {
541
+ text: string;
542
+ tier: "prevent" | "cultural" | "biological" | "chemical";
543
+ grade: "A" | "B" | "C";
544
+ sourceIds: string[];
545
+ productClass?: "fungicide" | "insecticide" | "miticide" | "biopesticide" | "herbicide" | undefined;
546
+ activeIngredient?: string | undefined;
547
+ resistanceGroup?: {
548
+ code: string;
549
+ system: "IRAC" | "FRAC" | "HRAC";
550
+ } | undefined;
551
+ }[];
552
+ kind: "weed" | "water" | "insect" | "mite" | "fungal" | "bacterial" | "viral" | "physiological" | "canopy";
553
+ symptoms: string[];
554
+ scoutHow: string;
555
+ thresholds: {
556
+ metric: string;
557
+ text: string;
558
+ grade: "A" | "B" | "C";
559
+ sourceIds: string[];
560
+ value?: number | undefined;
561
+ unit?: string | undefined;
562
+ }[];
563
+ localNames?: string[] | undefined;
564
+ confusedWith?: string[] | undefined;
565
+ weatherTriggers?: ("wet" | "humid" | "hot" | "dry" | "windy" | "warm")[] | undefined;
566
+ vectorOf?: string[] | undefined;
567
+ }[];
568
+ origin: "file" | "generic";
569
+ needsDate: boolean;
570
+ stageId: string;
571
+ pillar: "water" | "ipm" | "weeds" | "pruning";
572
+ planId: string;
573
+ guidelineLabel: string;
574
+ stageFallback: boolean;
575
+ }, {
576
+ sources: {
577
+ id: string;
578
+ title: string;
579
+ org: string;
580
+ grade: "A" | "B" | "C";
581
+ url?: string | undefined;
582
+ }[];
583
+ stage: {
584
+ summary: string;
585
+ watch: string[];
586
+ prevent: string[];
587
+ stageId: string;
588
+ scout?: {
589
+ grade: "A" | "B" | "C";
590
+ sourceIds: string[];
591
+ perWeek: number;
592
+ perWeekWet: number;
593
+ samplePlants: number;
594
+ pattern: "W" | "Z";
595
+ } | undefined;
596
+ } | null;
597
+ day: number | null;
598
+ phase: "field" | "nursery";
599
+ oneLineRule: string;
600
+ watch: {
601
+ id: string;
602
+ name: string;
603
+ responses: {
604
+ text: string;
605
+ tier: "prevent" | "cultural" | "biological" | "chemical";
606
+ grade: "A" | "B" | "C";
607
+ sourceIds: string[];
608
+ productClass?: "fungicide" | "insecticide" | "miticide" | "biopesticide" | "herbicide" | undefined;
609
+ activeIngredient?: string | undefined;
610
+ resistanceGroup?: {
611
+ code: string;
612
+ system: "IRAC" | "FRAC" | "HRAC";
613
+ } | undefined;
614
+ }[];
615
+ kind: "weed" | "water" | "insect" | "mite" | "fungal" | "bacterial" | "viral" | "physiological" | "canopy";
616
+ symptoms: string[];
617
+ scoutHow: string;
618
+ thresholds: {
619
+ metric: string;
620
+ text: string;
621
+ grade: "A" | "B" | "C";
622
+ sourceIds: string[];
623
+ value?: number | undefined;
624
+ unit?: string | undefined;
625
+ }[];
626
+ localNames?: string[] | undefined;
627
+ confusedWith?: string[] | undefined;
628
+ weatherTriggers?: ("wet" | "humid" | "hot" | "dry" | "windy" | "warm")[] | undefined;
629
+ vectorOf?: string[] | undefined;
630
+ }[];
631
+ origin: "file" | "generic";
632
+ needsDate: boolean;
633
+ stageId: string;
634
+ pillar: "water" | "ipm" | "weeds" | "pruning";
635
+ planId: string;
636
+ guidelineLabel: string;
637
+ stageFallback: boolean;
638
+ }>;
639
+ export type ResolvedPillarContract = z.infer<typeof resolvedPillarSchema>;
640
+ export declare const pillarAdjustmentSchema: z.ZodObject<{
641
+ id: z.ZodString;
642
+ pillar: z.ZodEnum<["ipm", "water", "weeds", "pruning"]>;
643
+ severity: z.ZodEnum<["info", "watch", "act"]>;
644
+ title: z.ZodString;
645
+ detail: z.ZodString;
646
+ source: z.ZodString;
647
+ }, "strip", z.ZodTypeAny, {
648
+ id: string;
649
+ title: string;
650
+ detail: string;
651
+ source: string;
652
+ severity: "info" | "watch" | "act";
653
+ pillar: "water" | "ipm" | "weeds" | "pruning";
654
+ }, {
655
+ id: string;
656
+ title: string;
657
+ detail: string;
658
+ source: string;
659
+ severity: "info" | "watch" | "act";
660
+ pillar: "water" | "ipm" | "weeds" | "pruning";
661
+ }>;
662
+ export declare const pillarAdjustmentsResponseSchema: z.ZodObject<{
663
+ pillar: z.ZodEnum<["ipm", "water", "weeds", "pruning"]>;
664
+ crop: z.ZodOptional<z.ZodNullable<z.ZodString>>;
665
+ stage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
666
+ adjustments: z.ZodArray<z.ZodObject<{
667
+ id: z.ZodString;
668
+ pillar: z.ZodEnum<["ipm", "water", "weeds", "pruning"]>;
669
+ severity: z.ZodEnum<["info", "watch", "act"]>;
670
+ title: z.ZodString;
671
+ detail: z.ZodString;
672
+ source: z.ZodString;
673
+ }, "strip", z.ZodTypeAny, {
674
+ id: string;
675
+ title: string;
676
+ detail: string;
677
+ source: string;
678
+ severity: "info" | "watch" | "act";
679
+ pillar: "water" | "ipm" | "weeds" | "pruning";
680
+ }, {
681
+ id: string;
682
+ title: string;
683
+ detail: string;
684
+ source: string;
685
+ severity: "info" | "watch" | "act";
686
+ pillar: "water" | "ipm" | "weeds" | "pruning";
687
+ }>, "many">;
688
+ weatherAvailable: z.ZodBoolean;
689
+ generatedAt: z.ZodString;
690
+ }, "strip", z.ZodTypeAny, {
691
+ generatedAt: string;
692
+ adjustments: {
693
+ id: string;
694
+ title: string;
695
+ detail: string;
696
+ source: string;
697
+ severity: "info" | "watch" | "act";
698
+ pillar: "water" | "ipm" | "weeds" | "pruning";
699
+ }[];
700
+ weatherAvailable: boolean;
701
+ pillar: "water" | "ipm" | "weeds" | "pruning";
702
+ crop?: string | null | undefined;
703
+ stage?: string | null | undefined;
704
+ }, {
705
+ generatedAt: string;
706
+ adjustments: {
707
+ id: string;
708
+ title: string;
709
+ detail: string;
710
+ source: string;
711
+ severity: "info" | "watch" | "act";
712
+ pillar: "water" | "ipm" | "weeds" | "pruning";
713
+ }[];
714
+ weatherAvailable: boolean;
715
+ pillar: "water" | "ipm" | "weeds" | "pruning";
716
+ crop?: string | null | undefined;
717
+ stage?: string | null | undefined;
718
+ }>;
719
+ export type PillarAdjustmentContract = z.infer<typeof pillarAdjustmentSchema>;
720
+ export type PillarAdjustmentsResponse = z.infer<typeof pillarAdjustmentsResponseSchema>;
721
+ export type Pillar = z.infer<typeof pillarSchema>;
722
+ export type ThreatContract = z.infer<typeof threatSchema>;
723
+ export type ThresholdContract = z.infer<typeof thresholdSchema>;
724
+ export type ResponseStepContract = z.infer<typeof responseStepSchema>;
725
+ export type ScoutProtocolContract = z.infer<typeof scoutProtocolSchema>;
726
+ export type PillarStageContract = z.infer<typeof pillarStageSchema>;
727
+ export type PillarSourceContract = z.infer<typeof pillarSourceSchema>;
728
+ //# sourceMappingURL=care-pillar.schemas.d.ts.map