@deepintel-ltd/farmpro-contracts 1.36.1 → 1.36.3

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,1923 @@
1
+ import { z } from 'zod';
2
+ export declare const orchardSourceSchema: z.ZodObject<{
3
+ id: z.ZodString;
4
+ grade: z.ZodEnum<["A", "B", "C"]>;
5
+ title: z.ZodString;
6
+ url: z.ZodString;
7
+ }, "strip", z.ZodTypeAny, {
8
+ id: string;
9
+ url: string;
10
+ title: string;
11
+ grade: "A" | "B" | "C";
12
+ }, {
13
+ id: string;
14
+ url: string;
15
+ title: string;
16
+ grade: "A" | "B" | "C";
17
+ }>;
18
+ export declare const orchardTaskSchema: z.ZodObject<{
19
+ text: z.ZodString;
20
+ grade: z.ZodEnum<["A", "B", "C"]>;
21
+ source: z.ZodString;
22
+ }, "strip", z.ZodTypeAny, {
23
+ source: string;
24
+ text: string;
25
+ grade: "A" | "B" | "C";
26
+ }, {
27
+ source: string;
28
+ text: string;
29
+ grade: "A" | "B" | "C";
30
+ }>;
31
+ export declare const orchardScoutItemSchema: z.ZodObject<{
32
+ id: z.ZodString;
33
+ name: z.ZodString;
34
+ cause: z.ZodString;
35
+ look: z.ZodString;
36
+ action: z.ZodString;
37
+ grade: z.ZodEnum<["A", "B", "C"]>;
38
+ source: z.ZodString;
39
+ }, "strip", z.ZodTypeAny, {
40
+ id: string;
41
+ source: string;
42
+ name: string;
43
+ action: string;
44
+ grade: "A" | "B" | "C";
45
+ cause: string;
46
+ look: string;
47
+ }, {
48
+ id: string;
49
+ source: string;
50
+ name: string;
51
+ action: string;
52
+ grade: "A" | "B" | "C";
53
+ cause: string;
54
+ look: string;
55
+ }>;
56
+ export declare const orchardApplicationSchema: z.ZodObject<{
57
+ id: z.ZodString;
58
+ label: z.ZodString;
59
+ why: z.ZodString;
60
+ /** First and last day of the window this year, YYYY-MM-DD. */
61
+ windowFrom: z.ZodString;
62
+ windowTo: z.ZodString;
63
+ /** open: today is inside the window; upcoming: it opens later this year; passed: it closed. */
64
+ status: z.ZodEnum<["open", "upcoming", "passed"]>;
65
+ daysUntilOpen: z.ZodNullable<z.ZodNumber>;
66
+ products: z.ZodArray<z.ZodObject<{
67
+ productId: z.ZodString;
68
+ label: z.ZodString;
69
+ nutrient: z.ZodEnum<["N", "P2O5", "K2O"]>;
70
+ gramsPerTree: z.ZodNumber;
71
+ /** Kilograms for the whole orchard, when the tree count is known. */
72
+ kgForOrchard: z.ZodNullable<z.ZodNumber>;
73
+ }, "strip", z.ZodTypeAny, {
74
+ label: string;
75
+ nutrient: "N" | "P2O5" | "K2O";
76
+ productId: string;
77
+ gramsPerTree: number;
78
+ kgForOrchard: number | null;
79
+ }, {
80
+ label: string;
81
+ nutrient: "N" | "P2O5" | "K2O";
82
+ productId: string;
83
+ gramsPerTree: number;
84
+ kgForOrchard: number | null;
85
+ }>, "many">;
86
+ }, "strip", z.ZodTypeAny, {
87
+ status: "upcoming" | "open" | "passed";
88
+ id: string;
89
+ label: string;
90
+ why: string;
91
+ windowFrom: string;
92
+ windowTo: string;
93
+ daysUntilOpen: number | null;
94
+ products: {
95
+ label: string;
96
+ nutrient: "N" | "P2O5" | "K2O";
97
+ productId: string;
98
+ gramsPerTree: number;
99
+ kgForOrchard: number | null;
100
+ }[];
101
+ }, {
102
+ status: "upcoming" | "open" | "passed";
103
+ id: string;
104
+ label: string;
105
+ why: string;
106
+ windowFrom: string;
107
+ windowTo: string;
108
+ daysUntilOpen: number | null;
109
+ products: {
110
+ label: string;
111
+ nutrient: "N" | "P2O5" | "K2O";
112
+ productId: string;
113
+ gramsPerTree: number;
114
+ kgForOrchard: number | null;
115
+ }[];
116
+ }>;
117
+ export declare const orchardNutritionSchema: z.ZodObject<{
118
+ startingScale: z.ZodNumber;
119
+ scaleReason: z.ZodString;
120
+ requiresSoilTest: z.ZodBoolean;
121
+ soilTestAdvice: z.ZodString;
122
+ placement: z.ZodString;
123
+ organic: z.ZodString;
124
+ /** Null in the first year: no mineral fertilizer yet. */
125
+ thisYear: z.ZodNullable<z.ZodObject<{
126
+ completedYears: z.ZodNumber;
127
+ sharePercent: z.ZodNumber;
128
+ perTreeGrams: z.ZodObject<{
129
+ N: z.ZodNumber;
130
+ P2O5: z.ZodNumber;
131
+ K2O: z.ZodNumber;
132
+ }, "strip", z.ZodTypeAny, {
133
+ N: number;
134
+ P2O5: number;
135
+ K2O: number;
136
+ }, {
137
+ N: number;
138
+ P2O5: number;
139
+ K2O: number;
140
+ }>;
141
+ applications: z.ZodArray<z.ZodObject<{
142
+ id: z.ZodString;
143
+ label: z.ZodString;
144
+ why: z.ZodString;
145
+ /** First and last day of the window this year, YYYY-MM-DD. */
146
+ windowFrom: z.ZodString;
147
+ windowTo: z.ZodString;
148
+ /** open: today is inside the window; upcoming: it opens later this year; passed: it closed. */
149
+ status: z.ZodEnum<["open", "upcoming", "passed"]>;
150
+ daysUntilOpen: z.ZodNullable<z.ZodNumber>;
151
+ products: z.ZodArray<z.ZodObject<{
152
+ productId: z.ZodString;
153
+ label: z.ZodString;
154
+ nutrient: z.ZodEnum<["N", "P2O5", "K2O"]>;
155
+ gramsPerTree: z.ZodNumber;
156
+ /** Kilograms for the whole orchard, when the tree count is known. */
157
+ kgForOrchard: z.ZodNullable<z.ZodNumber>;
158
+ }, "strip", z.ZodTypeAny, {
159
+ label: string;
160
+ nutrient: "N" | "P2O5" | "K2O";
161
+ productId: string;
162
+ gramsPerTree: number;
163
+ kgForOrchard: number | null;
164
+ }, {
165
+ label: string;
166
+ nutrient: "N" | "P2O5" | "K2O";
167
+ productId: string;
168
+ gramsPerTree: number;
169
+ kgForOrchard: number | null;
170
+ }>, "many">;
171
+ }, "strip", z.ZodTypeAny, {
172
+ status: "upcoming" | "open" | "passed";
173
+ id: string;
174
+ label: string;
175
+ why: string;
176
+ windowFrom: string;
177
+ windowTo: string;
178
+ daysUntilOpen: number | null;
179
+ products: {
180
+ label: string;
181
+ nutrient: "N" | "P2O5" | "K2O";
182
+ productId: string;
183
+ gramsPerTree: number;
184
+ kgForOrchard: number | null;
185
+ }[];
186
+ }, {
187
+ status: "upcoming" | "open" | "passed";
188
+ id: string;
189
+ label: string;
190
+ why: string;
191
+ windowFrom: string;
192
+ windowTo: string;
193
+ daysUntilOpen: number | null;
194
+ products: {
195
+ label: string;
196
+ nutrient: "N" | "P2O5" | "K2O";
197
+ productId: string;
198
+ gramsPerTree: number;
199
+ kgForOrchard: number | null;
200
+ }[];
201
+ }>, "many">;
202
+ }, "strip", z.ZodTypeAny, {
203
+ completedYears: number;
204
+ sharePercent: number;
205
+ perTreeGrams: {
206
+ N: number;
207
+ P2O5: number;
208
+ K2O: number;
209
+ };
210
+ applications: {
211
+ status: "upcoming" | "open" | "passed";
212
+ id: string;
213
+ label: string;
214
+ why: string;
215
+ windowFrom: string;
216
+ windowTo: string;
217
+ daysUntilOpen: number | null;
218
+ products: {
219
+ label: string;
220
+ nutrient: "N" | "P2O5" | "K2O";
221
+ productId: string;
222
+ gramsPerTree: number;
223
+ kgForOrchard: number | null;
224
+ }[];
225
+ }[];
226
+ }, {
227
+ completedYears: number;
228
+ sharePercent: number;
229
+ perTreeGrams: {
230
+ N: number;
231
+ P2O5: number;
232
+ K2O: number;
233
+ };
234
+ applications: {
235
+ status: "upcoming" | "open" | "passed";
236
+ id: string;
237
+ label: string;
238
+ why: string;
239
+ windowFrom: string;
240
+ windowTo: string;
241
+ daysUntilOpen: number | null;
242
+ products: {
243
+ label: string;
244
+ nutrient: "N" | "P2O5" | "K2O";
245
+ productId: string;
246
+ gramsPerTree: number;
247
+ kgForOrchard: number | null;
248
+ }[];
249
+ }[];
250
+ }>>;
251
+ /** Why there is no dose, or what to do instead. */
252
+ note: z.ZodNullable<z.ZodString>;
253
+ }, "strip", z.ZodTypeAny, {
254
+ note: string | null;
255
+ startingScale: number;
256
+ scaleReason: string;
257
+ requiresSoilTest: boolean;
258
+ soilTestAdvice: string;
259
+ placement: string;
260
+ organic: string;
261
+ thisYear: {
262
+ completedYears: number;
263
+ sharePercent: number;
264
+ perTreeGrams: {
265
+ N: number;
266
+ P2O5: number;
267
+ K2O: number;
268
+ };
269
+ applications: {
270
+ status: "upcoming" | "open" | "passed";
271
+ id: string;
272
+ label: string;
273
+ why: string;
274
+ windowFrom: string;
275
+ windowTo: string;
276
+ daysUntilOpen: number | null;
277
+ products: {
278
+ label: string;
279
+ nutrient: "N" | "P2O5" | "K2O";
280
+ productId: string;
281
+ gramsPerTree: number;
282
+ kgForOrchard: number | null;
283
+ }[];
284
+ }[];
285
+ } | null;
286
+ }, {
287
+ note: string | null;
288
+ startingScale: number;
289
+ scaleReason: string;
290
+ requiresSoilTest: boolean;
291
+ soilTestAdvice: string;
292
+ placement: string;
293
+ organic: string;
294
+ thisYear: {
295
+ completedYears: number;
296
+ sharePercent: number;
297
+ perTreeGrams: {
298
+ N: number;
299
+ P2O5: number;
300
+ K2O: number;
301
+ };
302
+ applications: {
303
+ status: "upcoming" | "open" | "passed";
304
+ id: string;
305
+ label: string;
306
+ why: string;
307
+ windowFrom: string;
308
+ windowTo: string;
309
+ daysUntilOpen: number | null;
310
+ products: {
311
+ label: string;
312
+ nutrient: "N" | "P2O5" | "K2O";
313
+ productId: string;
314
+ gramsPerTree: number;
315
+ kgForOrchard: number | null;
316
+ }[];
317
+ }[];
318
+ } | null;
319
+ }>;
320
+ export declare const orchardYieldSchema: z.ZodObject<{
321
+ seasonFrom: z.ZodString;
322
+ kgTotal: z.ZodNumber;
323
+ kgPerTree: z.ZodNullable<z.ZodNumber>;
324
+ harvestCount: z.ZodNumber;
325
+ skippedUnits: z.ZodBoolean;
326
+ /** Per tree against the low end of CRIN's improved genotypes. Null without a tree count. */
327
+ percentOfImproved: z.ZodNullable<z.ZodNumber>;
328
+ typicalKgPerHa: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
329
+ improvedKgPerTree: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
330
+ note: z.ZodString;
331
+ thinningAndPruning: z.ZodString;
332
+ }, "strip", z.ZodTypeAny, {
333
+ note: string;
334
+ kgTotal: number;
335
+ harvestCount: number;
336
+ skippedUnits: boolean;
337
+ seasonFrom: string;
338
+ kgPerTree: number | null;
339
+ percentOfImproved: number | null;
340
+ typicalKgPerHa: [number, number];
341
+ improvedKgPerTree: [number, number];
342
+ thinningAndPruning: string;
343
+ }, {
344
+ note: string;
345
+ kgTotal: number;
346
+ harvestCount: number;
347
+ skippedUnits: boolean;
348
+ seasonFrom: string;
349
+ kgPerTree: number | null;
350
+ percentOfImproved: number | null;
351
+ typicalKgPerHa: [number, number];
352
+ improvedKgPerTree: [number, number];
353
+ thinningAndPruning: string;
354
+ }>;
355
+ export declare const orchardPlanSchema: z.ZodObject<{
356
+ sheet: z.ZodObject<{
357
+ id: z.ZodString;
358
+ version: z.ZodNumber;
359
+ label: z.ZodString;
360
+ status: z.ZodString;
361
+ evidenceLevel: z.ZodEnum<["A", "B", "C"]>;
362
+ summary: z.ZodString;
363
+ sources: z.ZodArray<z.ZodObject<{
364
+ id: z.ZodString;
365
+ grade: z.ZodEnum<["A", "B", "C"]>;
366
+ title: z.ZodString;
367
+ url: z.ZodString;
368
+ }, "strip", z.ZodTypeAny, {
369
+ id: string;
370
+ url: string;
371
+ title: string;
372
+ grade: "A" | "B" | "C";
373
+ }, {
374
+ id: string;
375
+ url: string;
376
+ title: string;
377
+ grade: "A" | "B" | "C";
378
+ }>, "many">;
379
+ }, "strip", z.ZodTypeAny, {
380
+ status: string;
381
+ id: string;
382
+ sources: {
383
+ id: string;
384
+ url: string;
385
+ title: string;
386
+ grade: "A" | "B" | "C";
387
+ }[];
388
+ summary: string;
389
+ label: string;
390
+ version: number;
391
+ evidenceLevel: "A" | "B" | "C";
392
+ }, {
393
+ status: string;
394
+ id: string;
395
+ sources: {
396
+ id: string;
397
+ url: string;
398
+ title: string;
399
+ grade: "A" | "B" | "C";
400
+ }[];
401
+ summary: string;
402
+ label: string;
403
+ version: number;
404
+ evidenceLevel: "A" | "B" | "C";
405
+ }>;
406
+ tree: z.ZodObject<{
407
+ plantedAt: z.ZodString;
408
+ ageDays: z.ZodNumber;
409
+ completedYears: z.ZodNumber;
410
+ stage: z.ZodObject<{
411
+ id: z.ZodString;
412
+ label: z.ZodString;
413
+ summary: z.ZodString;
414
+ fromDay: z.ZodNumber;
415
+ toDay: z.ZodNumber;
416
+ }, "strip", z.ZodTypeAny, {
417
+ id: string;
418
+ summary: string;
419
+ label: string;
420
+ fromDay: number;
421
+ toDay: number;
422
+ }, {
423
+ id: string;
424
+ summary: string;
425
+ label: string;
426
+ fromDay: number;
427
+ toDay: number;
428
+ }>;
429
+ treeCount: z.ZodNullable<z.ZodNumber>;
430
+ /** counted: the farmer's count; stand: stand x area; assumed: 100 trees per hectare; unknown: no area. */
431
+ treeCountSource: z.ZodEnum<["counted", "stand", "assumed", "unknown"]>;
432
+ }, "strip", z.ZodTypeAny, {
433
+ stage: {
434
+ id: string;
435
+ summary: string;
436
+ label: string;
437
+ fromDay: number;
438
+ toDay: number;
439
+ };
440
+ completedYears: number;
441
+ plantedAt: string;
442
+ ageDays: number;
443
+ treeCount: number | null;
444
+ treeCountSource: "unknown" | "counted" | "stand" | "assumed";
445
+ }, {
446
+ stage: {
447
+ id: string;
448
+ summary: string;
449
+ label: string;
450
+ fromDay: number;
451
+ toDay: number;
452
+ };
453
+ completedYears: number;
454
+ plantedAt: string;
455
+ ageDays: number;
456
+ treeCount: number | null;
457
+ treeCountSource: "unknown" | "counted" | "stand" | "assumed";
458
+ }>;
459
+ month: z.ZodObject<{
460
+ month: z.ZodNumber;
461
+ name: z.ZodString;
462
+ season: z.ZodString;
463
+ title: z.ZodString;
464
+ tasks: z.ZodArray<z.ZodObject<{
465
+ text: z.ZodString;
466
+ grade: z.ZodEnum<["A", "B", "C"]>;
467
+ source: z.ZodString;
468
+ }, "strip", z.ZodTypeAny, {
469
+ source: string;
470
+ text: string;
471
+ grade: "A" | "B" | "C";
472
+ }, {
473
+ source: string;
474
+ text: string;
475
+ grade: "A" | "B" | "C";
476
+ }>, "many">;
477
+ scout: z.ZodArray<z.ZodObject<{
478
+ id: z.ZodString;
479
+ name: z.ZodString;
480
+ cause: z.ZodString;
481
+ look: z.ZodString;
482
+ action: z.ZodString;
483
+ grade: z.ZodEnum<["A", "B", "C"]>;
484
+ source: z.ZodString;
485
+ }, "strip", z.ZodTypeAny, {
486
+ id: string;
487
+ source: string;
488
+ name: string;
489
+ action: string;
490
+ grade: "A" | "B" | "C";
491
+ cause: string;
492
+ look: string;
493
+ }, {
494
+ id: string;
495
+ source: string;
496
+ name: string;
497
+ action: string;
498
+ grade: "A" | "B" | "C";
499
+ cause: string;
500
+ look: string;
501
+ }>, "many">;
502
+ }, "strip", z.ZodTypeAny, {
503
+ title: string;
504
+ name: string;
505
+ season: string;
506
+ tasks: {
507
+ source: string;
508
+ text: string;
509
+ grade: "A" | "B" | "C";
510
+ }[];
511
+ month: number;
512
+ scout: {
513
+ id: string;
514
+ source: string;
515
+ name: string;
516
+ action: string;
517
+ grade: "A" | "B" | "C";
518
+ cause: string;
519
+ look: string;
520
+ }[];
521
+ }, {
522
+ title: string;
523
+ name: string;
524
+ season: string;
525
+ tasks: {
526
+ source: string;
527
+ text: string;
528
+ grade: "A" | "B" | "C";
529
+ }[];
530
+ month: number;
531
+ scout: {
532
+ id: string;
533
+ source: string;
534
+ name: string;
535
+ action: string;
536
+ grade: "A" | "B" | "C";
537
+ cause: string;
538
+ look: string;
539
+ }[];
540
+ }>;
541
+ nutrition: z.ZodObject<{
542
+ startingScale: z.ZodNumber;
543
+ scaleReason: z.ZodString;
544
+ requiresSoilTest: z.ZodBoolean;
545
+ soilTestAdvice: z.ZodString;
546
+ placement: z.ZodString;
547
+ organic: z.ZodString;
548
+ /** Null in the first year: no mineral fertilizer yet. */
549
+ thisYear: z.ZodNullable<z.ZodObject<{
550
+ completedYears: z.ZodNumber;
551
+ sharePercent: z.ZodNumber;
552
+ perTreeGrams: z.ZodObject<{
553
+ N: z.ZodNumber;
554
+ P2O5: z.ZodNumber;
555
+ K2O: z.ZodNumber;
556
+ }, "strip", z.ZodTypeAny, {
557
+ N: number;
558
+ P2O5: number;
559
+ K2O: number;
560
+ }, {
561
+ N: number;
562
+ P2O5: number;
563
+ K2O: number;
564
+ }>;
565
+ applications: z.ZodArray<z.ZodObject<{
566
+ id: z.ZodString;
567
+ label: z.ZodString;
568
+ why: z.ZodString;
569
+ /** First and last day of the window this year, YYYY-MM-DD. */
570
+ windowFrom: z.ZodString;
571
+ windowTo: z.ZodString;
572
+ /** open: today is inside the window; upcoming: it opens later this year; passed: it closed. */
573
+ status: z.ZodEnum<["open", "upcoming", "passed"]>;
574
+ daysUntilOpen: z.ZodNullable<z.ZodNumber>;
575
+ products: z.ZodArray<z.ZodObject<{
576
+ productId: z.ZodString;
577
+ label: z.ZodString;
578
+ nutrient: z.ZodEnum<["N", "P2O5", "K2O"]>;
579
+ gramsPerTree: z.ZodNumber;
580
+ /** Kilograms for the whole orchard, when the tree count is known. */
581
+ kgForOrchard: z.ZodNullable<z.ZodNumber>;
582
+ }, "strip", z.ZodTypeAny, {
583
+ label: string;
584
+ nutrient: "N" | "P2O5" | "K2O";
585
+ productId: string;
586
+ gramsPerTree: number;
587
+ kgForOrchard: number | null;
588
+ }, {
589
+ label: string;
590
+ nutrient: "N" | "P2O5" | "K2O";
591
+ productId: string;
592
+ gramsPerTree: number;
593
+ kgForOrchard: number | null;
594
+ }>, "many">;
595
+ }, "strip", z.ZodTypeAny, {
596
+ status: "upcoming" | "open" | "passed";
597
+ id: string;
598
+ label: string;
599
+ why: string;
600
+ windowFrom: string;
601
+ windowTo: string;
602
+ daysUntilOpen: number | null;
603
+ products: {
604
+ label: string;
605
+ nutrient: "N" | "P2O5" | "K2O";
606
+ productId: string;
607
+ gramsPerTree: number;
608
+ kgForOrchard: number | null;
609
+ }[];
610
+ }, {
611
+ status: "upcoming" | "open" | "passed";
612
+ id: string;
613
+ label: string;
614
+ why: string;
615
+ windowFrom: string;
616
+ windowTo: string;
617
+ daysUntilOpen: number | null;
618
+ products: {
619
+ label: string;
620
+ nutrient: "N" | "P2O5" | "K2O";
621
+ productId: string;
622
+ gramsPerTree: number;
623
+ kgForOrchard: number | null;
624
+ }[];
625
+ }>, "many">;
626
+ }, "strip", z.ZodTypeAny, {
627
+ completedYears: number;
628
+ sharePercent: number;
629
+ perTreeGrams: {
630
+ N: number;
631
+ P2O5: number;
632
+ K2O: number;
633
+ };
634
+ applications: {
635
+ status: "upcoming" | "open" | "passed";
636
+ id: string;
637
+ label: string;
638
+ why: string;
639
+ windowFrom: string;
640
+ windowTo: string;
641
+ daysUntilOpen: number | null;
642
+ products: {
643
+ label: string;
644
+ nutrient: "N" | "P2O5" | "K2O";
645
+ productId: string;
646
+ gramsPerTree: number;
647
+ kgForOrchard: number | null;
648
+ }[];
649
+ }[];
650
+ }, {
651
+ completedYears: number;
652
+ sharePercent: number;
653
+ perTreeGrams: {
654
+ N: number;
655
+ P2O5: number;
656
+ K2O: number;
657
+ };
658
+ applications: {
659
+ status: "upcoming" | "open" | "passed";
660
+ id: string;
661
+ label: string;
662
+ why: string;
663
+ windowFrom: string;
664
+ windowTo: string;
665
+ daysUntilOpen: number | null;
666
+ products: {
667
+ label: string;
668
+ nutrient: "N" | "P2O5" | "K2O";
669
+ productId: string;
670
+ gramsPerTree: number;
671
+ kgForOrchard: number | null;
672
+ }[];
673
+ }[];
674
+ }>>;
675
+ /** Why there is no dose, or what to do instead. */
676
+ note: z.ZodNullable<z.ZodString>;
677
+ }, "strip", z.ZodTypeAny, {
678
+ note: string | null;
679
+ startingScale: number;
680
+ scaleReason: string;
681
+ requiresSoilTest: boolean;
682
+ soilTestAdvice: string;
683
+ placement: string;
684
+ organic: string;
685
+ thisYear: {
686
+ completedYears: number;
687
+ sharePercent: number;
688
+ perTreeGrams: {
689
+ N: number;
690
+ P2O5: number;
691
+ K2O: number;
692
+ };
693
+ applications: {
694
+ status: "upcoming" | "open" | "passed";
695
+ id: string;
696
+ label: string;
697
+ why: string;
698
+ windowFrom: string;
699
+ windowTo: string;
700
+ daysUntilOpen: number | null;
701
+ products: {
702
+ label: string;
703
+ nutrient: "N" | "P2O5" | "K2O";
704
+ productId: string;
705
+ gramsPerTree: number;
706
+ kgForOrchard: number | null;
707
+ }[];
708
+ }[];
709
+ } | null;
710
+ }, {
711
+ note: string | null;
712
+ startingScale: number;
713
+ scaleReason: string;
714
+ requiresSoilTest: boolean;
715
+ soilTestAdvice: string;
716
+ placement: string;
717
+ organic: string;
718
+ thisYear: {
719
+ completedYears: number;
720
+ sharePercent: number;
721
+ perTreeGrams: {
722
+ N: number;
723
+ P2O5: number;
724
+ K2O: number;
725
+ };
726
+ applications: {
727
+ status: "upcoming" | "open" | "passed";
728
+ id: string;
729
+ label: string;
730
+ why: string;
731
+ windowFrom: string;
732
+ windowTo: string;
733
+ daysUntilOpen: number | null;
734
+ products: {
735
+ label: string;
736
+ nutrient: "N" | "P2O5" | "K2O";
737
+ productId: string;
738
+ gramsPerTree: number;
739
+ kgForOrchard: number | null;
740
+ }[];
741
+ }[];
742
+ } | null;
743
+ }>;
744
+ yield: z.ZodNullable<z.ZodObject<{
745
+ seasonFrom: z.ZodString;
746
+ kgTotal: z.ZodNumber;
747
+ kgPerTree: z.ZodNullable<z.ZodNumber>;
748
+ harvestCount: z.ZodNumber;
749
+ skippedUnits: z.ZodBoolean;
750
+ /** Per tree against the low end of CRIN's improved genotypes. Null without a tree count. */
751
+ percentOfImproved: z.ZodNullable<z.ZodNumber>;
752
+ typicalKgPerHa: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
753
+ improvedKgPerTree: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
754
+ note: z.ZodString;
755
+ thinningAndPruning: z.ZodString;
756
+ }, "strip", z.ZodTypeAny, {
757
+ note: string;
758
+ kgTotal: number;
759
+ harvestCount: number;
760
+ skippedUnits: boolean;
761
+ seasonFrom: string;
762
+ kgPerTree: number | null;
763
+ percentOfImproved: number | null;
764
+ typicalKgPerHa: [number, number];
765
+ improvedKgPerTree: [number, number];
766
+ thinningAndPruning: string;
767
+ }, {
768
+ note: string;
769
+ kgTotal: number;
770
+ harvestCount: number;
771
+ skippedUnits: boolean;
772
+ seasonFrom: string;
773
+ kgPerTree: number | null;
774
+ percentOfImproved: number | null;
775
+ typicalKgPerHa: [number, number];
776
+ improvedKgPerTree: [number, number];
777
+ thinningAndPruning: string;
778
+ }>>;
779
+ phenology: z.ZodObject<{
780
+ floweringMonths: z.ZodArray<z.ZodNumber, "many">;
781
+ harvestMonths: z.ZodArray<z.ZodNumber, "many">;
782
+ confidence: z.ZodString;
783
+ note: z.ZodString;
784
+ }, "strip", z.ZodTypeAny, {
785
+ note: string;
786
+ confidence: string;
787
+ floweringMonths: number[];
788
+ harvestMonths: number[];
789
+ }, {
790
+ note: string;
791
+ confidence: string;
792
+ floweringMonths: number[];
793
+ harvestMonths: number[];
794
+ }>;
795
+ climate: z.ZodObject<{
796
+ place: z.ZodString;
797
+ note: z.ZodString;
798
+ }, "strip", z.ZodTypeAny, {
799
+ note: string;
800
+ place: string;
801
+ }, {
802
+ note: string;
803
+ place: string;
804
+ }>;
805
+ checklist: z.ZodArray<z.ZodString, "many">;
806
+ notes: z.ZodArray<z.ZodString, "many">;
807
+ }, "strip", z.ZodTypeAny, {
808
+ yield: {
809
+ note: string;
810
+ kgTotal: number;
811
+ harvestCount: number;
812
+ skippedUnits: boolean;
813
+ seasonFrom: string;
814
+ kgPerTree: number | null;
815
+ percentOfImproved: number | null;
816
+ typicalKgPerHa: [number, number];
817
+ improvedKgPerTree: [number, number];
818
+ thinningAndPruning: string;
819
+ } | null;
820
+ notes: string[];
821
+ month: {
822
+ title: string;
823
+ name: string;
824
+ season: string;
825
+ tasks: {
826
+ source: string;
827
+ text: string;
828
+ grade: "A" | "B" | "C";
829
+ }[];
830
+ month: number;
831
+ scout: {
832
+ id: string;
833
+ source: string;
834
+ name: string;
835
+ action: string;
836
+ grade: "A" | "B" | "C";
837
+ cause: string;
838
+ look: string;
839
+ }[];
840
+ };
841
+ checklist: string[];
842
+ sheet: {
843
+ status: string;
844
+ id: string;
845
+ sources: {
846
+ id: string;
847
+ url: string;
848
+ title: string;
849
+ grade: "A" | "B" | "C";
850
+ }[];
851
+ summary: string;
852
+ label: string;
853
+ version: number;
854
+ evidenceLevel: "A" | "B" | "C";
855
+ };
856
+ tree: {
857
+ stage: {
858
+ id: string;
859
+ summary: string;
860
+ label: string;
861
+ fromDay: number;
862
+ toDay: number;
863
+ };
864
+ completedYears: number;
865
+ plantedAt: string;
866
+ ageDays: number;
867
+ treeCount: number | null;
868
+ treeCountSource: "unknown" | "counted" | "stand" | "assumed";
869
+ };
870
+ nutrition: {
871
+ note: string | null;
872
+ startingScale: number;
873
+ scaleReason: string;
874
+ requiresSoilTest: boolean;
875
+ soilTestAdvice: string;
876
+ placement: string;
877
+ organic: string;
878
+ thisYear: {
879
+ completedYears: number;
880
+ sharePercent: number;
881
+ perTreeGrams: {
882
+ N: number;
883
+ P2O5: number;
884
+ K2O: number;
885
+ };
886
+ applications: {
887
+ status: "upcoming" | "open" | "passed";
888
+ id: string;
889
+ label: string;
890
+ why: string;
891
+ windowFrom: string;
892
+ windowTo: string;
893
+ daysUntilOpen: number | null;
894
+ products: {
895
+ label: string;
896
+ nutrient: "N" | "P2O5" | "K2O";
897
+ productId: string;
898
+ gramsPerTree: number;
899
+ kgForOrchard: number | null;
900
+ }[];
901
+ }[];
902
+ } | null;
903
+ };
904
+ phenology: {
905
+ note: string;
906
+ confidence: string;
907
+ floweringMonths: number[];
908
+ harvestMonths: number[];
909
+ };
910
+ climate: {
911
+ note: string;
912
+ place: string;
913
+ };
914
+ }, {
915
+ yield: {
916
+ note: string;
917
+ kgTotal: number;
918
+ harvestCount: number;
919
+ skippedUnits: boolean;
920
+ seasonFrom: string;
921
+ kgPerTree: number | null;
922
+ percentOfImproved: number | null;
923
+ typicalKgPerHa: [number, number];
924
+ improvedKgPerTree: [number, number];
925
+ thinningAndPruning: string;
926
+ } | null;
927
+ notes: string[];
928
+ month: {
929
+ title: string;
930
+ name: string;
931
+ season: string;
932
+ tasks: {
933
+ source: string;
934
+ text: string;
935
+ grade: "A" | "B" | "C";
936
+ }[];
937
+ month: number;
938
+ scout: {
939
+ id: string;
940
+ source: string;
941
+ name: string;
942
+ action: string;
943
+ grade: "A" | "B" | "C";
944
+ cause: string;
945
+ look: string;
946
+ }[];
947
+ };
948
+ checklist: string[];
949
+ sheet: {
950
+ status: string;
951
+ id: string;
952
+ sources: {
953
+ id: string;
954
+ url: string;
955
+ title: string;
956
+ grade: "A" | "B" | "C";
957
+ }[];
958
+ summary: string;
959
+ label: string;
960
+ version: number;
961
+ evidenceLevel: "A" | "B" | "C";
962
+ };
963
+ tree: {
964
+ stage: {
965
+ id: string;
966
+ summary: string;
967
+ label: string;
968
+ fromDay: number;
969
+ toDay: number;
970
+ };
971
+ completedYears: number;
972
+ plantedAt: string;
973
+ ageDays: number;
974
+ treeCount: number | null;
975
+ treeCountSource: "unknown" | "counted" | "stand" | "assumed";
976
+ };
977
+ nutrition: {
978
+ note: string | null;
979
+ startingScale: number;
980
+ scaleReason: string;
981
+ requiresSoilTest: boolean;
982
+ soilTestAdvice: string;
983
+ placement: string;
984
+ organic: string;
985
+ thisYear: {
986
+ completedYears: number;
987
+ sharePercent: number;
988
+ perTreeGrams: {
989
+ N: number;
990
+ P2O5: number;
991
+ K2O: number;
992
+ };
993
+ applications: {
994
+ status: "upcoming" | "open" | "passed";
995
+ id: string;
996
+ label: string;
997
+ why: string;
998
+ windowFrom: string;
999
+ windowTo: string;
1000
+ daysUntilOpen: number | null;
1001
+ products: {
1002
+ label: string;
1003
+ nutrient: "N" | "P2O5" | "K2O";
1004
+ productId: string;
1005
+ gramsPerTree: number;
1006
+ kgForOrchard: number | null;
1007
+ }[];
1008
+ }[];
1009
+ } | null;
1010
+ };
1011
+ phenology: {
1012
+ note: string;
1013
+ confidence: string;
1014
+ floweringMonths: number[];
1015
+ harvestMonths: number[];
1016
+ };
1017
+ climate: {
1018
+ note: string;
1019
+ place: string;
1020
+ };
1021
+ }>;
1022
+ export declare const orchardPlanResponseSchema: z.ZodObject<{
1023
+ fieldId: z.ZodString;
1024
+ crop: z.ZodNullable<z.ZodString>;
1025
+ status: z.ZodEnum<["ok", "not-planted", "no-plan"]>;
1026
+ message: z.ZodNullable<z.ZodString>;
1027
+ plan: z.ZodNullable<z.ZodObject<{
1028
+ sheet: z.ZodObject<{
1029
+ id: z.ZodString;
1030
+ version: z.ZodNumber;
1031
+ label: z.ZodString;
1032
+ status: z.ZodString;
1033
+ evidenceLevel: z.ZodEnum<["A", "B", "C"]>;
1034
+ summary: z.ZodString;
1035
+ sources: z.ZodArray<z.ZodObject<{
1036
+ id: z.ZodString;
1037
+ grade: z.ZodEnum<["A", "B", "C"]>;
1038
+ title: z.ZodString;
1039
+ url: z.ZodString;
1040
+ }, "strip", z.ZodTypeAny, {
1041
+ id: string;
1042
+ url: string;
1043
+ title: string;
1044
+ grade: "A" | "B" | "C";
1045
+ }, {
1046
+ id: string;
1047
+ url: string;
1048
+ title: string;
1049
+ grade: "A" | "B" | "C";
1050
+ }>, "many">;
1051
+ }, "strip", z.ZodTypeAny, {
1052
+ status: string;
1053
+ id: string;
1054
+ sources: {
1055
+ id: string;
1056
+ url: string;
1057
+ title: string;
1058
+ grade: "A" | "B" | "C";
1059
+ }[];
1060
+ summary: string;
1061
+ label: string;
1062
+ version: number;
1063
+ evidenceLevel: "A" | "B" | "C";
1064
+ }, {
1065
+ status: string;
1066
+ id: string;
1067
+ sources: {
1068
+ id: string;
1069
+ url: string;
1070
+ title: string;
1071
+ grade: "A" | "B" | "C";
1072
+ }[];
1073
+ summary: string;
1074
+ label: string;
1075
+ version: number;
1076
+ evidenceLevel: "A" | "B" | "C";
1077
+ }>;
1078
+ tree: z.ZodObject<{
1079
+ plantedAt: z.ZodString;
1080
+ ageDays: z.ZodNumber;
1081
+ completedYears: z.ZodNumber;
1082
+ stage: z.ZodObject<{
1083
+ id: z.ZodString;
1084
+ label: z.ZodString;
1085
+ summary: z.ZodString;
1086
+ fromDay: z.ZodNumber;
1087
+ toDay: z.ZodNumber;
1088
+ }, "strip", z.ZodTypeAny, {
1089
+ id: string;
1090
+ summary: string;
1091
+ label: string;
1092
+ fromDay: number;
1093
+ toDay: number;
1094
+ }, {
1095
+ id: string;
1096
+ summary: string;
1097
+ label: string;
1098
+ fromDay: number;
1099
+ toDay: number;
1100
+ }>;
1101
+ treeCount: z.ZodNullable<z.ZodNumber>;
1102
+ /** counted: the farmer's count; stand: stand x area; assumed: 100 trees per hectare; unknown: no area. */
1103
+ treeCountSource: z.ZodEnum<["counted", "stand", "assumed", "unknown"]>;
1104
+ }, "strip", z.ZodTypeAny, {
1105
+ stage: {
1106
+ id: string;
1107
+ summary: string;
1108
+ label: string;
1109
+ fromDay: number;
1110
+ toDay: number;
1111
+ };
1112
+ completedYears: number;
1113
+ plantedAt: string;
1114
+ ageDays: number;
1115
+ treeCount: number | null;
1116
+ treeCountSource: "unknown" | "counted" | "stand" | "assumed";
1117
+ }, {
1118
+ stage: {
1119
+ id: string;
1120
+ summary: string;
1121
+ label: string;
1122
+ fromDay: number;
1123
+ toDay: number;
1124
+ };
1125
+ completedYears: number;
1126
+ plantedAt: string;
1127
+ ageDays: number;
1128
+ treeCount: number | null;
1129
+ treeCountSource: "unknown" | "counted" | "stand" | "assumed";
1130
+ }>;
1131
+ month: z.ZodObject<{
1132
+ month: z.ZodNumber;
1133
+ name: z.ZodString;
1134
+ season: z.ZodString;
1135
+ title: z.ZodString;
1136
+ tasks: z.ZodArray<z.ZodObject<{
1137
+ text: z.ZodString;
1138
+ grade: z.ZodEnum<["A", "B", "C"]>;
1139
+ source: z.ZodString;
1140
+ }, "strip", z.ZodTypeAny, {
1141
+ source: string;
1142
+ text: string;
1143
+ grade: "A" | "B" | "C";
1144
+ }, {
1145
+ source: string;
1146
+ text: string;
1147
+ grade: "A" | "B" | "C";
1148
+ }>, "many">;
1149
+ scout: z.ZodArray<z.ZodObject<{
1150
+ id: z.ZodString;
1151
+ name: z.ZodString;
1152
+ cause: z.ZodString;
1153
+ look: z.ZodString;
1154
+ action: z.ZodString;
1155
+ grade: z.ZodEnum<["A", "B", "C"]>;
1156
+ source: z.ZodString;
1157
+ }, "strip", z.ZodTypeAny, {
1158
+ id: string;
1159
+ source: string;
1160
+ name: string;
1161
+ action: string;
1162
+ grade: "A" | "B" | "C";
1163
+ cause: string;
1164
+ look: string;
1165
+ }, {
1166
+ id: string;
1167
+ source: string;
1168
+ name: string;
1169
+ action: string;
1170
+ grade: "A" | "B" | "C";
1171
+ cause: string;
1172
+ look: string;
1173
+ }>, "many">;
1174
+ }, "strip", z.ZodTypeAny, {
1175
+ title: string;
1176
+ name: string;
1177
+ season: string;
1178
+ tasks: {
1179
+ source: string;
1180
+ text: string;
1181
+ grade: "A" | "B" | "C";
1182
+ }[];
1183
+ month: number;
1184
+ scout: {
1185
+ id: string;
1186
+ source: string;
1187
+ name: string;
1188
+ action: string;
1189
+ grade: "A" | "B" | "C";
1190
+ cause: string;
1191
+ look: string;
1192
+ }[];
1193
+ }, {
1194
+ title: string;
1195
+ name: string;
1196
+ season: string;
1197
+ tasks: {
1198
+ source: string;
1199
+ text: string;
1200
+ grade: "A" | "B" | "C";
1201
+ }[];
1202
+ month: number;
1203
+ scout: {
1204
+ id: string;
1205
+ source: string;
1206
+ name: string;
1207
+ action: string;
1208
+ grade: "A" | "B" | "C";
1209
+ cause: string;
1210
+ look: string;
1211
+ }[];
1212
+ }>;
1213
+ nutrition: z.ZodObject<{
1214
+ startingScale: z.ZodNumber;
1215
+ scaleReason: z.ZodString;
1216
+ requiresSoilTest: z.ZodBoolean;
1217
+ soilTestAdvice: z.ZodString;
1218
+ placement: z.ZodString;
1219
+ organic: z.ZodString;
1220
+ /** Null in the first year: no mineral fertilizer yet. */
1221
+ thisYear: z.ZodNullable<z.ZodObject<{
1222
+ completedYears: z.ZodNumber;
1223
+ sharePercent: z.ZodNumber;
1224
+ perTreeGrams: z.ZodObject<{
1225
+ N: z.ZodNumber;
1226
+ P2O5: z.ZodNumber;
1227
+ K2O: z.ZodNumber;
1228
+ }, "strip", z.ZodTypeAny, {
1229
+ N: number;
1230
+ P2O5: number;
1231
+ K2O: number;
1232
+ }, {
1233
+ N: number;
1234
+ P2O5: number;
1235
+ K2O: number;
1236
+ }>;
1237
+ applications: z.ZodArray<z.ZodObject<{
1238
+ id: z.ZodString;
1239
+ label: z.ZodString;
1240
+ why: z.ZodString;
1241
+ /** First and last day of the window this year, YYYY-MM-DD. */
1242
+ windowFrom: z.ZodString;
1243
+ windowTo: z.ZodString;
1244
+ /** open: today is inside the window; upcoming: it opens later this year; passed: it closed. */
1245
+ status: z.ZodEnum<["open", "upcoming", "passed"]>;
1246
+ daysUntilOpen: z.ZodNullable<z.ZodNumber>;
1247
+ products: z.ZodArray<z.ZodObject<{
1248
+ productId: z.ZodString;
1249
+ label: z.ZodString;
1250
+ nutrient: z.ZodEnum<["N", "P2O5", "K2O"]>;
1251
+ gramsPerTree: z.ZodNumber;
1252
+ /** Kilograms for the whole orchard, when the tree count is known. */
1253
+ kgForOrchard: z.ZodNullable<z.ZodNumber>;
1254
+ }, "strip", z.ZodTypeAny, {
1255
+ label: string;
1256
+ nutrient: "N" | "P2O5" | "K2O";
1257
+ productId: string;
1258
+ gramsPerTree: number;
1259
+ kgForOrchard: number | null;
1260
+ }, {
1261
+ label: string;
1262
+ nutrient: "N" | "P2O5" | "K2O";
1263
+ productId: string;
1264
+ gramsPerTree: number;
1265
+ kgForOrchard: number | null;
1266
+ }>, "many">;
1267
+ }, "strip", z.ZodTypeAny, {
1268
+ status: "upcoming" | "open" | "passed";
1269
+ id: string;
1270
+ label: string;
1271
+ why: string;
1272
+ windowFrom: string;
1273
+ windowTo: string;
1274
+ daysUntilOpen: number | null;
1275
+ products: {
1276
+ label: string;
1277
+ nutrient: "N" | "P2O5" | "K2O";
1278
+ productId: string;
1279
+ gramsPerTree: number;
1280
+ kgForOrchard: number | null;
1281
+ }[];
1282
+ }, {
1283
+ status: "upcoming" | "open" | "passed";
1284
+ id: string;
1285
+ label: string;
1286
+ why: string;
1287
+ windowFrom: string;
1288
+ windowTo: string;
1289
+ daysUntilOpen: number | null;
1290
+ products: {
1291
+ label: string;
1292
+ nutrient: "N" | "P2O5" | "K2O";
1293
+ productId: string;
1294
+ gramsPerTree: number;
1295
+ kgForOrchard: number | null;
1296
+ }[];
1297
+ }>, "many">;
1298
+ }, "strip", z.ZodTypeAny, {
1299
+ completedYears: number;
1300
+ sharePercent: number;
1301
+ perTreeGrams: {
1302
+ N: number;
1303
+ P2O5: number;
1304
+ K2O: number;
1305
+ };
1306
+ applications: {
1307
+ status: "upcoming" | "open" | "passed";
1308
+ id: string;
1309
+ label: string;
1310
+ why: string;
1311
+ windowFrom: string;
1312
+ windowTo: string;
1313
+ daysUntilOpen: number | null;
1314
+ products: {
1315
+ label: string;
1316
+ nutrient: "N" | "P2O5" | "K2O";
1317
+ productId: string;
1318
+ gramsPerTree: number;
1319
+ kgForOrchard: number | null;
1320
+ }[];
1321
+ }[];
1322
+ }, {
1323
+ completedYears: number;
1324
+ sharePercent: number;
1325
+ perTreeGrams: {
1326
+ N: number;
1327
+ P2O5: number;
1328
+ K2O: number;
1329
+ };
1330
+ applications: {
1331
+ status: "upcoming" | "open" | "passed";
1332
+ id: string;
1333
+ label: string;
1334
+ why: string;
1335
+ windowFrom: string;
1336
+ windowTo: string;
1337
+ daysUntilOpen: number | null;
1338
+ products: {
1339
+ label: string;
1340
+ nutrient: "N" | "P2O5" | "K2O";
1341
+ productId: string;
1342
+ gramsPerTree: number;
1343
+ kgForOrchard: number | null;
1344
+ }[];
1345
+ }[];
1346
+ }>>;
1347
+ /** Why there is no dose, or what to do instead. */
1348
+ note: z.ZodNullable<z.ZodString>;
1349
+ }, "strip", z.ZodTypeAny, {
1350
+ note: string | null;
1351
+ startingScale: number;
1352
+ scaleReason: string;
1353
+ requiresSoilTest: boolean;
1354
+ soilTestAdvice: string;
1355
+ placement: string;
1356
+ organic: string;
1357
+ thisYear: {
1358
+ completedYears: number;
1359
+ sharePercent: number;
1360
+ perTreeGrams: {
1361
+ N: number;
1362
+ P2O5: number;
1363
+ K2O: number;
1364
+ };
1365
+ applications: {
1366
+ status: "upcoming" | "open" | "passed";
1367
+ id: string;
1368
+ label: string;
1369
+ why: string;
1370
+ windowFrom: string;
1371
+ windowTo: string;
1372
+ daysUntilOpen: number | null;
1373
+ products: {
1374
+ label: string;
1375
+ nutrient: "N" | "P2O5" | "K2O";
1376
+ productId: string;
1377
+ gramsPerTree: number;
1378
+ kgForOrchard: number | null;
1379
+ }[];
1380
+ }[];
1381
+ } | null;
1382
+ }, {
1383
+ note: string | null;
1384
+ startingScale: number;
1385
+ scaleReason: string;
1386
+ requiresSoilTest: boolean;
1387
+ soilTestAdvice: string;
1388
+ placement: string;
1389
+ organic: string;
1390
+ thisYear: {
1391
+ completedYears: number;
1392
+ sharePercent: number;
1393
+ perTreeGrams: {
1394
+ N: number;
1395
+ P2O5: number;
1396
+ K2O: number;
1397
+ };
1398
+ applications: {
1399
+ status: "upcoming" | "open" | "passed";
1400
+ id: string;
1401
+ label: string;
1402
+ why: string;
1403
+ windowFrom: string;
1404
+ windowTo: string;
1405
+ daysUntilOpen: number | null;
1406
+ products: {
1407
+ label: string;
1408
+ nutrient: "N" | "P2O5" | "K2O";
1409
+ productId: string;
1410
+ gramsPerTree: number;
1411
+ kgForOrchard: number | null;
1412
+ }[];
1413
+ }[];
1414
+ } | null;
1415
+ }>;
1416
+ yield: z.ZodNullable<z.ZodObject<{
1417
+ seasonFrom: z.ZodString;
1418
+ kgTotal: z.ZodNumber;
1419
+ kgPerTree: z.ZodNullable<z.ZodNumber>;
1420
+ harvestCount: z.ZodNumber;
1421
+ skippedUnits: z.ZodBoolean;
1422
+ /** Per tree against the low end of CRIN's improved genotypes. Null without a tree count. */
1423
+ percentOfImproved: z.ZodNullable<z.ZodNumber>;
1424
+ typicalKgPerHa: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
1425
+ improvedKgPerTree: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
1426
+ note: z.ZodString;
1427
+ thinningAndPruning: z.ZodString;
1428
+ }, "strip", z.ZodTypeAny, {
1429
+ note: string;
1430
+ kgTotal: number;
1431
+ harvestCount: number;
1432
+ skippedUnits: boolean;
1433
+ seasonFrom: string;
1434
+ kgPerTree: number | null;
1435
+ percentOfImproved: number | null;
1436
+ typicalKgPerHa: [number, number];
1437
+ improvedKgPerTree: [number, number];
1438
+ thinningAndPruning: string;
1439
+ }, {
1440
+ note: string;
1441
+ kgTotal: number;
1442
+ harvestCount: number;
1443
+ skippedUnits: boolean;
1444
+ seasonFrom: string;
1445
+ kgPerTree: number | null;
1446
+ percentOfImproved: number | null;
1447
+ typicalKgPerHa: [number, number];
1448
+ improvedKgPerTree: [number, number];
1449
+ thinningAndPruning: string;
1450
+ }>>;
1451
+ phenology: z.ZodObject<{
1452
+ floweringMonths: z.ZodArray<z.ZodNumber, "many">;
1453
+ harvestMonths: z.ZodArray<z.ZodNumber, "many">;
1454
+ confidence: z.ZodString;
1455
+ note: z.ZodString;
1456
+ }, "strip", z.ZodTypeAny, {
1457
+ note: string;
1458
+ confidence: string;
1459
+ floweringMonths: number[];
1460
+ harvestMonths: number[];
1461
+ }, {
1462
+ note: string;
1463
+ confidence: string;
1464
+ floweringMonths: number[];
1465
+ harvestMonths: number[];
1466
+ }>;
1467
+ climate: z.ZodObject<{
1468
+ place: z.ZodString;
1469
+ note: z.ZodString;
1470
+ }, "strip", z.ZodTypeAny, {
1471
+ note: string;
1472
+ place: string;
1473
+ }, {
1474
+ note: string;
1475
+ place: string;
1476
+ }>;
1477
+ checklist: z.ZodArray<z.ZodString, "many">;
1478
+ notes: z.ZodArray<z.ZodString, "many">;
1479
+ }, "strip", z.ZodTypeAny, {
1480
+ yield: {
1481
+ note: string;
1482
+ kgTotal: number;
1483
+ harvestCount: number;
1484
+ skippedUnits: boolean;
1485
+ seasonFrom: string;
1486
+ kgPerTree: number | null;
1487
+ percentOfImproved: number | null;
1488
+ typicalKgPerHa: [number, number];
1489
+ improvedKgPerTree: [number, number];
1490
+ thinningAndPruning: string;
1491
+ } | null;
1492
+ notes: string[];
1493
+ month: {
1494
+ title: string;
1495
+ name: string;
1496
+ season: string;
1497
+ tasks: {
1498
+ source: string;
1499
+ text: string;
1500
+ grade: "A" | "B" | "C";
1501
+ }[];
1502
+ month: number;
1503
+ scout: {
1504
+ id: string;
1505
+ source: string;
1506
+ name: string;
1507
+ action: string;
1508
+ grade: "A" | "B" | "C";
1509
+ cause: string;
1510
+ look: string;
1511
+ }[];
1512
+ };
1513
+ checklist: string[];
1514
+ sheet: {
1515
+ status: string;
1516
+ id: string;
1517
+ sources: {
1518
+ id: string;
1519
+ url: string;
1520
+ title: string;
1521
+ grade: "A" | "B" | "C";
1522
+ }[];
1523
+ summary: string;
1524
+ label: string;
1525
+ version: number;
1526
+ evidenceLevel: "A" | "B" | "C";
1527
+ };
1528
+ tree: {
1529
+ stage: {
1530
+ id: string;
1531
+ summary: string;
1532
+ label: string;
1533
+ fromDay: number;
1534
+ toDay: number;
1535
+ };
1536
+ completedYears: number;
1537
+ plantedAt: string;
1538
+ ageDays: number;
1539
+ treeCount: number | null;
1540
+ treeCountSource: "unknown" | "counted" | "stand" | "assumed";
1541
+ };
1542
+ nutrition: {
1543
+ note: string | null;
1544
+ startingScale: number;
1545
+ scaleReason: string;
1546
+ requiresSoilTest: boolean;
1547
+ soilTestAdvice: string;
1548
+ placement: string;
1549
+ organic: string;
1550
+ thisYear: {
1551
+ completedYears: number;
1552
+ sharePercent: number;
1553
+ perTreeGrams: {
1554
+ N: number;
1555
+ P2O5: number;
1556
+ K2O: number;
1557
+ };
1558
+ applications: {
1559
+ status: "upcoming" | "open" | "passed";
1560
+ id: string;
1561
+ label: string;
1562
+ why: string;
1563
+ windowFrom: string;
1564
+ windowTo: string;
1565
+ daysUntilOpen: number | null;
1566
+ products: {
1567
+ label: string;
1568
+ nutrient: "N" | "P2O5" | "K2O";
1569
+ productId: string;
1570
+ gramsPerTree: number;
1571
+ kgForOrchard: number | null;
1572
+ }[];
1573
+ }[];
1574
+ } | null;
1575
+ };
1576
+ phenology: {
1577
+ note: string;
1578
+ confidence: string;
1579
+ floweringMonths: number[];
1580
+ harvestMonths: number[];
1581
+ };
1582
+ climate: {
1583
+ note: string;
1584
+ place: string;
1585
+ };
1586
+ }, {
1587
+ yield: {
1588
+ note: string;
1589
+ kgTotal: number;
1590
+ harvestCount: number;
1591
+ skippedUnits: boolean;
1592
+ seasonFrom: string;
1593
+ kgPerTree: number | null;
1594
+ percentOfImproved: number | null;
1595
+ typicalKgPerHa: [number, number];
1596
+ improvedKgPerTree: [number, number];
1597
+ thinningAndPruning: string;
1598
+ } | null;
1599
+ notes: string[];
1600
+ month: {
1601
+ title: string;
1602
+ name: string;
1603
+ season: string;
1604
+ tasks: {
1605
+ source: string;
1606
+ text: string;
1607
+ grade: "A" | "B" | "C";
1608
+ }[];
1609
+ month: number;
1610
+ scout: {
1611
+ id: string;
1612
+ source: string;
1613
+ name: string;
1614
+ action: string;
1615
+ grade: "A" | "B" | "C";
1616
+ cause: string;
1617
+ look: string;
1618
+ }[];
1619
+ };
1620
+ checklist: string[];
1621
+ sheet: {
1622
+ status: string;
1623
+ id: string;
1624
+ sources: {
1625
+ id: string;
1626
+ url: string;
1627
+ title: string;
1628
+ grade: "A" | "B" | "C";
1629
+ }[];
1630
+ summary: string;
1631
+ label: string;
1632
+ version: number;
1633
+ evidenceLevel: "A" | "B" | "C";
1634
+ };
1635
+ tree: {
1636
+ stage: {
1637
+ id: string;
1638
+ summary: string;
1639
+ label: string;
1640
+ fromDay: number;
1641
+ toDay: number;
1642
+ };
1643
+ completedYears: number;
1644
+ plantedAt: string;
1645
+ ageDays: number;
1646
+ treeCount: number | null;
1647
+ treeCountSource: "unknown" | "counted" | "stand" | "assumed";
1648
+ };
1649
+ nutrition: {
1650
+ note: string | null;
1651
+ startingScale: number;
1652
+ scaleReason: string;
1653
+ requiresSoilTest: boolean;
1654
+ soilTestAdvice: string;
1655
+ placement: string;
1656
+ organic: string;
1657
+ thisYear: {
1658
+ completedYears: number;
1659
+ sharePercent: number;
1660
+ perTreeGrams: {
1661
+ N: number;
1662
+ P2O5: number;
1663
+ K2O: number;
1664
+ };
1665
+ applications: {
1666
+ status: "upcoming" | "open" | "passed";
1667
+ id: string;
1668
+ label: string;
1669
+ why: string;
1670
+ windowFrom: string;
1671
+ windowTo: string;
1672
+ daysUntilOpen: number | null;
1673
+ products: {
1674
+ label: string;
1675
+ nutrient: "N" | "P2O5" | "K2O";
1676
+ productId: string;
1677
+ gramsPerTree: number;
1678
+ kgForOrchard: number | null;
1679
+ }[];
1680
+ }[];
1681
+ } | null;
1682
+ };
1683
+ phenology: {
1684
+ note: string;
1685
+ confidence: string;
1686
+ floweringMonths: number[];
1687
+ harvestMonths: number[];
1688
+ };
1689
+ climate: {
1690
+ note: string;
1691
+ place: string;
1692
+ };
1693
+ }>>;
1694
+ }, "strip", z.ZodTypeAny, {
1695
+ status: "ok" | "no-plan" | "not-planted";
1696
+ message: string | null;
1697
+ crop: string | null;
1698
+ fieldId: string;
1699
+ plan: {
1700
+ yield: {
1701
+ note: string;
1702
+ kgTotal: number;
1703
+ harvestCount: number;
1704
+ skippedUnits: boolean;
1705
+ seasonFrom: string;
1706
+ kgPerTree: number | null;
1707
+ percentOfImproved: number | null;
1708
+ typicalKgPerHa: [number, number];
1709
+ improvedKgPerTree: [number, number];
1710
+ thinningAndPruning: string;
1711
+ } | null;
1712
+ notes: string[];
1713
+ month: {
1714
+ title: string;
1715
+ name: string;
1716
+ season: string;
1717
+ tasks: {
1718
+ source: string;
1719
+ text: string;
1720
+ grade: "A" | "B" | "C";
1721
+ }[];
1722
+ month: number;
1723
+ scout: {
1724
+ id: string;
1725
+ source: string;
1726
+ name: string;
1727
+ action: string;
1728
+ grade: "A" | "B" | "C";
1729
+ cause: string;
1730
+ look: string;
1731
+ }[];
1732
+ };
1733
+ checklist: string[];
1734
+ sheet: {
1735
+ status: string;
1736
+ id: string;
1737
+ sources: {
1738
+ id: string;
1739
+ url: string;
1740
+ title: string;
1741
+ grade: "A" | "B" | "C";
1742
+ }[];
1743
+ summary: string;
1744
+ label: string;
1745
+ version: number;
1746
+ evidenceLevel: "A" | "B" | "C";
1747
+ };
1748
+ tree: {
1749
+ stage: {
1750
+ id: string;
1751
+ summary: string;
1752
+ label: string;
1753
+ fromDay: number;
1754
+ toDay: number;
1755
+ };
1756
+ completedYears: number;
1757
+ plantedAt: string;
1758
+ ageDays: number;
1759
+ treeCount: number | null;
1760
+ treeCountSource: "unknown" | "counted" | "stand" | "assumed";
1761
+ };
1762
+ nutrition: {
1763
+ note: string | null;
1764
+ startingScale: number;
1765
+ scaleReason: string;
1766
+ requiresSoilTest: boolean;
1767
+ soilTestAdvice: string;
1768
+ placement: string;
1769
+ organic: string;
1770
+ thisYear: {
1771
+ completedYears: number;
1772
+ sharePercent: number;
1773
+ perTreeGrams: {
1774
+ N: number;
1775
+ P2O5: number;
1776
+ K2O: number;
1777
+ };
1778
+ applications: {
1779
+ status: "upcoming" | "open" | "passed";
1780
+ id: string;
1781
+ label: string;
1782
+ why: string;
1783
+ windowFrom: string;
1784
+ windowTo: string;
1785
+ daysUntilOpen: number | null;
1786
+ products: {
1787
+ label: string;
1788
+ nutrient: "N" | "P2O5" | "K2O";
1789
+ productId: string;
1790
+ gramsPerTree: number;
1791
+ kgForOrchard: number | null;
1792
+ }[];
1793
+ }[];
1794
+ } | null;
1795
+ };
1796
+ phenology: {
1797
+ note: string;
1798
+ confidence: string;
1799
+ floweringMonths: number[];
1800
+ harvestMonths: number[];
1801
+ };
1802
+ climate: {
1803
+ note: string;
1804
+ place: string;
1805
+ };
1806
+ } | null;
1807
+ }, {
1808
+ status: "ok" | "no-plan" | "not-planted";
1809
+ message: string | null;
1810
+ crop: string | null;
1811
+ fieldId: string;
1812
+ plan: {
1813
+ yield: {
1814
+ note: string;
1815
+ kgTotal: number;
1816
+ harvestCount: number;
1817
+ skippedUnits: boolean;
1818
+ seasonFrom: string;
1819
+ kgPerTree: number | null;
1820
+ percentOfImproved: number | null;
1821
+ typicalKgPerHa: [number, number];
1822
+ improvedKgPerTree: [number, number];
1823
+ thinningAndPruning: string;
1824
+ } | null;
1825
+ notes: string[];
1826
+ month: {
1827
+ title: string;
1828
+ name: string;
1829
+ season: string;
1830
+ tasks: {
1831
+ source: string;
1832
+ text: string;
1833
+ grade: "A" | "B" | "C";
1834
+ }[];
1835
+ month: number;
1836
+ scout: {
1837
+ id: string;
1838
+ source: string;
1839
+ name: string;
1840
+ action: string;
1841
+ grade: "A" | "B" | "C";
1842
+ cause: string;
1843
+ look: string;
1844
+ }[];
1845
+ };
1846
+ checklist: string[];
1847
+ sheet: {
1848
+ status: string;
1849
+ id: string;
1850
+ sources: {
1851
+ id: string;
1852
+ url: string;
1853
+ title: string;
1854
+ grade: "A" | "B" | "C";
1855
+ }[];
1856
+ summary: string;
1857
+ label: string;
1858
+ version: number;
1859
+ evidenceLevel: "A" | "B" | "C";
1860
+ };
1861
+ tree: {
1862
+ stage: {
1863
+ id: string;
1864
+ summary: string;
1865
+ label: string;
1866
+ fromDay: number;
1867
+ toDay: number;
1868
+ };
1869
+ completedYears: number;
1870
+ plantedAt: string;
1871
+ ageDays: number;
1872
+ treeCount: number | null;
1873
+ treeCountSource: "unknown" | "counted" | "stand" | "assumed";
1874
+ };
1875
+ nutrition: {
1876
+ note: string | null;
1877
+ startingScale: number;
1878
+ scaleReason: string;
1879
+ requiresSoilTest: boolean;
1880
+ soilTestAdvice: string;
1881
+ placement: string;
1882
+ organic: string;
1883
+ thisYear: {
1884
+ completedYears: number;
1885
+ sharePercent: number;
1886
+ perTreeGrams: {
1887
+ N: number;
1888
+ P2O5: number;
1889
+ K2O: number;
1890
+ };
1891
+ applications: {
1892
+ status: "upcoming" | "open" | "passed";
1893
+ id: string;
1894
+ label: string;
1895
+ why: string;
1896
+ windowFrom: string;
1897
+ windowTo: string;
1898
+ daysUntilOpen: number | null;
1899
+ products: {
1900
+ label: string;
1901
+ nutrient: "N" | "P2O5" | "K2O";
1902
+ productId: string;
1903
+ gramsPerTree: number;
1904
+ kgForOrchard: number | null;
1905
+ }[];
1906
+ }[];
1907
+ } | null;
1908
+ };
1909
+ phenology: {
1910
+ note: string;
1911
+ confidence: string;
1912
+ floweringMonths: number[];
1913
+ harvestMonths: number[];
1914
+ };
1915
+ climate: {
1916
+ note: string;
1917
+ place: string;
1918
+ };
1919
+ } | null;
1920
+ }>;
1921
+ export type OrchardPlan = z.infer<typeof orchardPlanSchema>;
1922
+ export type OrchardPlanResponse = z.infer<typeof orchardPlanResponseSchema>;
1923
+ //# sourceMappingURL=orchard-plan.schemas.d.ts.map