@deepintel-ltd/farmpro-contracts 1.36.1 → 1.36.2

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,928 @@
1
+ import { z } from 'zod';
2
+ export declare const orchardPlanRouter: {
3
+ forField: {
4
+ pathParams: z.ZodObject<{
5
+ farmId: z.ZodString;
6
+ fieldId: z.ZodString;
7
+ }, "strip", z.ZodTypeAny, {
8
+ farmId: string;
9
+ fieldId: string;
10
+ }, {
11
+ farmId: string;
12
+ fieldId: string;
13
+ }>;
14
+ query: z.ZodObject<{
15
+ /** Client calendar date (YYYY-MM-DD), so the month matches the farmer's day. */
16
+ today: z.ZodOptional<z.ZodString>;
17
+ }, "strip", z.ZodTypeAny, {
18
+ today?: string | undefined;
19
+ }, {
20
+ today?: string | undefined;
21
+ }>;
22
+ summary: "Orchard plan for a tree crop field, by tree age and month";
23
+ method: "GET";
24
+ path: "/farms/:farmId/fields/:fieldId/orchard-plan";
25
+ responses: {
26
+ 200: z.ZodObject<{
27
+ fieldId: z.ZodString;
28
+ crop: z.ZodNullable<z.ZodString>;
29
+ status: z.ZodEnum<["ok", "not-planted", "no-plan"]>;
30
+ message: z.ZodNullable<z.ZodString>;
31
+ plan: z.ZodNullable<z.ZodObject<{
32
+ sheet: z.ZodObject<{
33
+ id: z.ZodString;
34
+ version: z.ZodNumber;
35
+ label: z.ZodString;
36
+ status: z.ZodString;
37
+ evidenceLevel: z.ZodEnum<["A", "B", "C"]>;
38
+ summary: z.ZodString;
39
+ sources: z.ZodArray<z.ZodObject<{
40
+ id: z.ZodString;
41
+ grade: z.ZodEnum<["A", "B", "C"]>;
42
+ title: z.ZodString;
43
+ url: z.ZodString;
44
+ }, "strip", z.ZodTypeAny, {
45
+ id: string;
46
+ url: string;
47
+ title: string;
48
+ grade: "A" | "B" | "C";
49
+ }, {
50
+ id: string;
51
+ url: string;
52
+ title: string;
53
+ grade: "A" | "B" | "C";
54
+ }>, "many">;
55
+ }, "strip", z.ZodTypeAny, {
56
+ status: string;
57
+ id: string;
58
+ sources: {
59
+ id: string;
60
+ url: string;
61
+ title: string;
62
+ grade: "A" | "B" | "C";
63
+ }[];
64
+ summary: string;
65
+ label: string;
66
+ version: number;
67
+ evidenceLevel: "A" | "B" | "C";
68
+ }, {
69
+ status: string;
70
+ id: string;
71
+ sources: {
72
+ id: string;
73
+ url: string;
74
+ title: string;
75
+ grade: "A" | "B" | "C";
76
+ }[];
77
+ summary: string;
78
+ label: string;
79
+ version: number;
80
+ evidenceLevel: "A" | "B" | "C";
81
+ }>;
82
+ tree: z.ZodObject<{
83
+ plantedAt: z.ZodString;
84
+ ageDays: z.ZodNumber;
85
+ completedYears: z.ZodNumber;
86
+ stage: z.ZodObject<{
87
+ id: z.ZodString;
88
+ label: z.ZodString;
89
+ summary: z.ZodString;
90
+ fromDay: z.ZodNumber;
91
+ toDay: z.ZodNumber;
92
+ }, "strip", z.ZodTypeAny, {
93
+ id: string;
94
+ summary: string;
95
+ label: string;
96
+ fromDay: number;
97
+ toDay: number;
98
+ }, {
99
+ id: string;
100
+ summary: string;
101
+ label: string;
102
+ fromDay: number;
103
+ toDay: number;
104
+ }>;
105
+ treeCount: z.ZodNullable<z.ZodNumber>;
106
+ treeCountSource: z.ZodEnum<["counted", "stand", "assumed", "unknown"]>;
107
+ }, "strip", z.ZodTypeAny, {
108
+ stage: {
109
+ id: string;
110
+ summary: string;
111
+ label: string;
112
+ fromDay: number;
113
+ toDay: number;
114
+ };
115
+ completedYears: number;
116
+ plantedAt: string;
117
+ ageDays: number;
118
+ treeCount: number | null;
119
+ treeCountSource: "unknown" | "counted" | "stand" | "assumed";
120
+ }, {
121
+ stage: {
122
+ id: string;
123
+ summary: string;
124
+ label: string;
125
+ fromDay: number;
126
+ toDay: number;
127
+ };
128
+ completedYears: number;
129
+ plantedAt: string;
130
+ ageDays: number;
131
+ treeCount: number | null;
132
+ treeCountSource: "unknown" | "counted" | "stand" | "assumed";
133
+ }>;
134
+ month: z.ZodObject<{
135
+ month: z.ZodNumber;
136
+ name: z.ZodString;
137
+ season: z.ZodString;
138
+ title: z.ZodString;
139
+ tasks: z.ZodArray<z.ZodObject<{
140
+ text: z.ZodString;
141
+ grade: z.ZodEnum<["A", "B", "C"]>;
142
+ source: z.ZodString;
143
+ }, "strip", z.ZodTypeAny, {
144
+ source: string;
145
+ text: string;
146
+ grade: "A" | "B" | "C";
147
+ }, {
148
+ source: string;
149
+ text: string;
150
+ grade: "A" | "B" | "C";
151
+ }>, "many">;
152
+ scout: z.ZodArray<z.ZodObject<{
153
+ id: z.ZodString;
154
+ name: z.ZodString;
155
+ cause: z.ZodString;
156
+ look: z.ZodString;
157
+ action: z.ZodString;
158
+ grade: z.ZodEnum<["A", "B", "C"]>;
159
+ source: z.ZodString;
160
+ }, "strip", z.ZodTypeAny, {
161
+ id: string;
162
+ source: string;
163
+ name: string;
164
+ action: string;
165
+ grade: "A" | "B" | "C";
166
+ cause: string;
167
+ look: string;
168
+ }, {
169
+ id: string;
170
+ source: string;
171
+ name: string;
172
+ action: string;
173
+ grade: "A" | "B" | "C";
174
+ cause: string;
175
+ look: string;
176
+ }>, "many">;
177
+ }, "strip", z.ZodTypeAny, {
178
+ title: string;
179
+ name: string;
180
+ season: string;
181
+ tasks: {
182
+ source: string;
183
+ text: string;
184
+ grade: "A" | "B" | "C";
185
+ }[];
186
+ month: number;
187
+ scout: {
188
+ id: string;
189
+ source: string;
190
+ name: string;
191
+ action: string;
192
+ grade: "A" | "B" | "C";
193
+ cause: string;
194
+ look: string;
195
+ }[];
196
+ }, {
197
+ title: string;
198
+ name: string;
199
+ season: string;
200
+ tasks: {
201
+ source: string;
202
+ text: string;
203
+ grade: "A" | "B" | "C";
204
+ }[];
205
+ month: number;
206
+ scout: {
207
+ id: string;
208
+ source: string;
209
+ name: string;
210
+ action: string;
211
+ grade: "A" | "B" | "C";
212
+ cause: string;
213
+ look: string;
214
+ }[];
215
+ }>;
216
+ nutrition: z.ZodObject<{
217
+ startingScale: z.ZodNumber;
218
+ scaleReason: z.ZodString;
219
+ requiresSoilTest: z.ZodBoolean;
220
+ soilTestAdvice: z.ZodString;
221
+ placement: z.ZodString;
222
+ organic: z.ZodString;
223
+ thisYear: z.ZodNullable<z.ZodObject<{
224
+ completedYears: z.ZodNumber;
225
+ sharePercent: z.ZodNumber;
226
+ perTreeGrams: z.ZodObject<{
227
+ N: z.ZodNumber;
228
+ P2O5: z.ZodNumber;
229
+ K2O: z.ZodNumber;
230
+ }, "strip", z.ZodTypeAny, {
231
+ N: number;
232
+ P2O5: number;
233
+ K2O: number;
234
+ }, {
235
+ N: number;
236
+ P2O5: number;
237
+ K2O: number;
238
+ }>;
239
+ applications: z.ZodArray<z.ZodObject<{
240
+ id: z.ZodString;
241
+ label: z.ZodString;
242
+ why: z.ZodString;
243
+ windowFrom: z.ZodString;
244
+ windowTo: z.ZodString;
245
+ status: z.ZodEnum<["open", "upcoming", "passed"]>;
246
+ daysUntilOpen: z.ZodNullable<z.ZodNumber>;
247
+ products: z.ZodArray<z.ZodObject<{
248
+ productId: z.ZodString;
249
+ label: z.ZodString;
250
+ nutrient: z.ZodEnum<["N", "P2O5", "K2O"]>;
251
+ gramsPerTree: z.ZodNumber;
252
+ kgForOrchard: z.ZodNullable<z.ZodNumber>;
253
+ }, "strip", z.ZodTypeAny, {
254
+ label: string;
255
+ nutrient: "N" | "P2O5" | "K2O";
256
+ productId: string;
257
+ gramsPerTree: number;
258
+ kgForOrchard: number | null;
259
+ }, {
260
+ label: string;
261
+ nutrient: "N" | "P2O5" | "K2O";
262
+ productId: string;
263
+ gramsPerTree: number;
264
+ kgForOrchard: number | null;
265
+ }>, "many">;
266
+ }, "strip", z.ZodTypeAny, {
267
+ status: "upcoming" | "open" | "passed";
268
+ id: string;
269
+ label: string;
270
+ why: string;
271
+ windowFrom: string;
272
+ windowTo: string;
273
+ daysUntilOpen: number | null;
274
+ products: {
275
+ label: string;
276
+ nutrient: "N" | "P2O5" | "K2O";
277
+ productId: string;
278
+ gramsPerTree: number;
279
+ kgForOrchard: number | null;
280
+ }[];
281
+ }, {
282
+ status: "upcoming" | "open" | "passed";
283
+ id: string;
284
+ label: string;
285
+ why: string;
286
+ windowFrom: string;
287
+ windowTo: string;
288
+ daysUntilOpen: number | null;
289
+ products: {
290
+ label: string;
291
+ nutrient: "N" | "P2O5" | "K2O";
292
+ productId: string;
293
+ gramsPerTree: number;
294
+ kgForOrchard: number | null;
295
+ }[];
296
+ }>, "many">;
297
+ }, "strip", z.ZodTypeAny, {
298
+ completedYears: number;
299
+ sharePercent: number;
300
+ perTreeGrams: {
301
+ N: number;
302
+ P2O5: number;
303
+ K2O: number;
304
+ };
305
+ applications: {
306
+ status: "upcoming" | "open" | "passed";
307
+ id: string;
308
+ label: string;
309
+ why: string;
310
+ windowFrom: string;
311
+ windowTo: string;
312
+ daysUntilOpen: number | null;
313
+ products: {
314
+ label: string;
315
+ nutrient: "N" | "P2O5" | "K2O";
316
+ productId: string;
317
+ gramsPerTree: number;
318
+ kgForOrchard: number | null;
319
+ }[];
320
+ }[];
321
+ }, {
322
+ completedYears: number;
323
+ sharePercent: number;
324
+ perTreeGrams: {
325
+ N: number;
326
+ P2O5: number;
327
+ K2O: number;
328
+ };
329
+ applications: {
330
+ status: "upcoming" | "open" | "passed";
331
+ id: string;
332
+ label: string;
333
+ why: string;
334
+ windowFrom: string;
335
+ windowTo: string;
336
+ daysUntilOpen: number | null;
337
+ products: {
338
+ label: string;
339
+ nutrient: "N" | "P2O5" | "K2O";
340
+ productId: string;
341
+ gramsPerTree: number;
342
+ kgForOrchard: number | null;
343
+ }[];
344
+ }[];
345
+ }>>;
346
+ note: z.ZodNullable<z.ZodString>;
347
+ }, "strip", z.ZodTypeAny, {
348
+ note: string | null;
349
+ startingScale: number;
350
+ scaleReason: string;
351
+ requiresSoilTest: boolean;
352
+ soilTestAdvice: string;
353
+ placement: string;
354
+ organic: string;
355
+ thisYear: {
356
+ completedYears: number;
357
+ sharePercent: number;
358
+ perTreeGrams: {
359
+ N: number;
360
+ P2O5: number;
361
+ K2O: number;
362
+ };
363
+ applications: {
364
+ status: "upcoming" | "open" | "passed";
365
+ id: string;
366
+ label: string;
367
+ why: string;
368
+ windowFrom: string;
369
+ windowTo: string;
370
+ daysUntilOpen: number | null;
371
+ products: {
372
+ label: string;
373
+ nutrient: "N" | "P2O5" | "K2O";
374
+ productId: string;
375
+ gramsPerTree: number;
376
+ kgForOrchard: number | null;
377
+ }[];
378
+ }[];
379
+ } | null;
380
+ }, {
381
+ note: string | null;
382
+ startingScale: number;
383
+ scaleReason: string;
384
+ requiresSoilTest: boolean;
385
+ soilTestAdvice: string;
386
+ placement: string;
387
+ organic: string;
388
+ thisYear: {
389
+ completedYears: number;
390
+ sharePercent: number;
391
+ perTreeGrams: {
392
+ N: number;
393
+ P2O5: number;
394
+ K2O: number;
395
+ };
396
+ applications: {
397
+ status: "upcoming" | "open" | "passed";
398
+ id: string;
399
+ label: string;
400
+ why: string;
401
+ windowFrom: string;
402
+ windowTo: string;
403
+ daysUntilOpen: number | null;
404
+ products: {
405
+ label: string;
406
+ nutrient: "N" | "P2O5" | "K2O";
407
+ productId: string;
408
+ gramsPerTree: number;
409
+ kgForOrchard: number | null;
410
+ }[];
411
+ }[];
412
+ } | null;
413
+ }>;
414
+ yield: z.ZodNullable<z.ZodObject<{
415
+ seasonFrom: z.ZodString;
416
+ kgTotal: z.ZodNumber;
417
+ kgPerTree: z.ZodNullable<z.ZodNumber>;
418
+ harvestCount: z.ZodNumber;
419
+ skippedUnits: z.ZodBoolean;
420
+ percentOfImproved: z.ZodNullable<z.ZodNumber>;
421
+ typicalKgPerHa: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
422
+ improvedKgPerTree: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
423
+ note: z.ZodString;
424
+ thinningAndPruning: z.ZodString;
425
+ }, "strip", z.ZodTypeAny, {
426
+ note: string;
427
+ kgTotal: number;
428
+ harvestCount: number;
429
+ skippedUnits: boolean;
430
+ seasonFrom: string;
431
+ kgPerTree: number | null;
432
+ percentOfImproved: number | null;
433
+ typicalKgPerHa: [number, number];
434
+ improvedKgPerTree: [number, number];
435
+ thinningAndPruning: string;
436
+ }, {
437
+ note: string;
438
+ kgTotal: number;
439
+ harvestCount: number;
440
+ skippedUnits: boolean;
441
+ seasonFrom: string;
442
+ kgPerTree: number | null;
443
+ percentOfImproved: number | null;
444
+ typicalKgPerHa: [number, number];
445
+ improvedKgPerTree: [number, number];
446
+ thinningAndPruning: string;
447
+ }>>;
448
+ phenology: z.ZodObject<{
449
+ floweringMonths: z.ZodArray<z.ZodNumber, "many">;
450
+ harvestMonths: z.ZodArray<z.ZodNumber, "many">;
451
+ confidence: z.ZodString;
452
+ note: z.ZodString;
453
+ }, "strip", z.ZodTypeAny, {
454
+ note: string;
455
+ confidence: string;
456
+ floweringMonths: number[];
457
+ harvestMonths: number[];
458
+ }, {
459
+ note: string;
460
+ confidence: string;
461
+ floweringMonths: number[];
462
+ harvestMonths: number[];
463
+ }>;
464
+ climate: z.ZodObject<{
465
+ place: z.ZodString;
466
+ note: z.ZodString;
467
+ }, "strip", z.ZodTypeAny, {
468
+ note: string;
469
+ place: string;
470
+ }, {
471
+ note: string;
472
+ place: string;
473
+ }>;
474
+ checklist: z.ZodArray<z.ZodString, "many">;
475
+ notes: z.ZodArray<z.ZodString, "many">;
476
+ }, "strip", z.ZodTypeAny, {
477
+ yield: {
478
+ note: string;
479
+ kgTotal: number;
480
+ harvestCount: number;
481
+ skippedUnits: boolean;
482
+ seasonFrom: string;
483
+ kgPerTree: number | null;
484
+ percentOfImproved: number | null;
485
+ typicalKgPerHa: [number, number];
486
+ improvedKgPerTree: [number, number];
487
+ thinningAndPruning: string;
488
+ } | null;
489
+ notes: string[];
490
+ month: {
491
+ title: string;
492
+ name: string;
493
+ season: string;
494
+ tasks: {
495
+ source: string;
496
+ text: string;
497
+ grade: "A" | "B" | "C";
498
+ }[];
499
+ month: number;
500
+ scout: {
501
+ id: string;
502
+ source: string;
503
+ name: string;
504
+ action: string;
505
+ grade: "A" | "B" | "C";
506
+ cause: string;
507
+ look: string;
508
+ }[];
509
+ };
510
+ checklist: string[];
511
+ sheet: {
512
+ status: string;
513
+ id: string;
514
+ sources: {
515
+ id: string;
516
+ url: string;
517
+ title: string;
518
+ grade: "A" | "B" | "C";
519
+ }[];
520
+ summary: string;
521
+ label: string;
522
+ version: number;
523
+ evidenceLevel: "A" | "B" | "C";
524
+ };
525
+ tree: {
526
+ stage: {
527
+ id: string;
528
+ summary: string;
529
+ label: string;
530
+ fromDay: number;
531
+ toDay: number;
532
+ };
533
+ completedYears: number;
534
+ plantedAt: string;
535
+ ageDays: number;
536
+ treeCount: number | null;
537
+ treeCountSource: "unknown" | "counted" | "stand" | "assumed";
538
+ };
539
+ nutrition: {
540
+ note: string | null;
541
+ startingScale: number;
542
+ scaleReason: string;
543
+ requiresSoilTest: boolean;
544
+ soilTestAdvice: string;
545
+ placement: string;
546
+ organic: string;
547
+ thisYear: {
548
+ completedYears: number;
549
+ sharePercent: number;
550
+ perTreeGrams: {
551
+ N: number;
552
+ P2O5: number;
553
+ K2O: number;
554
+ };
555
+ applications: {
556
+ status: "upcoming" | "open" | "passed";
557
+ id: string;
558
+ label: string;
559
+ why: string;
560
+ windowFrom: string;
561
+ windowTo: string;
562
+ daysUntilOpen: number | null;
563
+ products: {
564
+ label: string;
565
+ nutrient: "N" | "P2O5" | "K2O";
566
+ productId: string;
567
+ gramsPerTree: number;
568
+ kgForOrchard: number | null;
569
+ }[];
570
+ }[];
571
+ } | null;
572
+ };
573
+ phenology: {
574
+ note: string;
575
+ confidence: string;
576
+ floweringMonths: number[];
577
+ harvestMonths: number[];
578
+ };
579
+ climate: {
580
+ note: string;
581
+ place: string;
582
+ };
583
+ }, {
584
+ yield: {
585
+ note: string;
586
+ kgTotal: number;
587
+ harvestCount: number;
588
+ skippedUnits: boolean;
589
+ seasonFrom: string;
590
+ kgPerTree: number | null;
591
+ percentOfImproved: number | null;
592
+ typicalKgPerHa: [number, number];
593
+ improvedKgPerTree: [number, number];
594
+ thinningAndPruning: string;
595
+ } | null;
596
+ notes: string[];
597
+ month: {
598
+ title: string;
599
+ name: string;
600
+ season: string;
601
+ tasks: {
602
+ source: string;
603
+ text: string;
604
+ grade: "A" | "B" | "C";
605
+ }[];
606
+ month: number;
607
+ scout: {
608
+ id: string;
609
+ source: string;
610
+ name: string;
611
+ action: string;
612
+ grade: "A" | "B" | "C";
613
+ cause: string;
614
+ look: string;
615
+ }[];
616
+ };
617
+ checklist: string[];
618
+ sheet: {
619
+ status: string;
620
+ id: string;
621
+ sources: {
622
+ id: string;
623
+ url: string;
624
+ title: string;
625
+ grade: "A" | "B" | "C";
626
+ }[];
627
+ summary: string;
628
+ label: string;
629
+ version: number;
630
+ evidenceLevel: "A" | "B" | "C";
631
+ };
632
+ tree: {
633
+ stage: {
634
+ id: string;
635
+ summary: string;
636
+ label: string;
637
+ fromDay: number;
638
+ toDay: number;
639
+ };
640
+ completedYears: number;
641
+ plantedAt: string;
642
+ ageDays: number;
643
+ treeCount: number | null;
644
+ treeCountSource: "unknown" | "counted" | "stand" | "assumed";
645
+ };
646
+ nutrition: {
647
+ note: string | null;
648
+ startingScale: number;
649
+ scaleReason: string;
650
+ requiresSoilTest: boolean;
651
+ soilTestAdvice: string;
652
+ placement: string;
653
+ organic: string;
654
+ thisYear: {
655
+ completedYears: number;
656
+ sharePercent: number;
657
+ perTreeGrams: {
658
+ N: number;
659
+ P2O5: number;
660
+ K2O: number;
661
+ };
662
+ applications: {
663
+ status: "upcoming" | "open" | "passed";
664
+ id: string;
665
+ label: string;
666
+ why: string;
667
+ windowFrom: string;
668
+ windowTo: string;
669
+ daysUntilOpen: number | null;
670
+ products: {
671
+ label: string;
672
+ nutrient: "N" | "P2O5" | "K2O";
673
+ productId: string;
674
+ gramsPerTree: number;
675
+ kgForOrchard: number | null;
676
+ }[];
677
+ }[];
678
+ } | null;
679
+ };
680
+ phenology: {
681
+ note: string;
682
+ confidence: string;
683
+ floweringMonths: number[];
684
+ harvestMonths: number[];
685
+ };
686
+ climate: {
687
+ note: string;
688
+ place: string;
689
+ };
690
+ }>>;
691
+ }, "strip", z.ZodTypeAny, {
692
+ status: "ok" | "not-planted" | "no-plan";
693
+ message: string | null;
694
+ crop: string | null;
695
+ fieldId: string;
696
+ plan: {
697
+ yield: {
698
+ note: string;
699
+ kgTotal: number;
700
+ harvestCount: number;
701
+ skippedUnits: boolean;
702
+ seasonFrom: string;
703
+ kgPerTree: number | null;
704
+ percentOfImproved: number | null;
705
+ typicalKgPerHa: [number, number];
706
+ improvedKgPerTree: [number, number];
707
+ thinningAndPruning: string;
708
+ } | null;
709
+ notes: string[];
710
+ month: {
711
+ title: string;
712
+ name: string;
713
+ season: string;
714
+ tasks: {
715
+ source: string;
716
+ text: string;
717
+ grade: "A" | "B" | "C";
718
+ }[];
719
+ month: number;
720
+ scout: {
721
+ id: string;
722
+ source: string;
723
+ name: string;
724
+ action: string;
725
+ grade: "A" | "B" | "C";
726
+ cause: string;
727
+ look: string;
728
+ }[];
729
+ };
730
+ checklist: string[];
731
+ sheet: {
732
+ status: string;
733
+ id: string;
734
+ sources: {
735
+ id: string;
736
+ url: string;
737
+ title: string;
738
+ grade: "A" | "B" | "C";
739
+ }[];
740
+ summary: string;
741
+ label: string;
742
+ version: number;
743
+ evidenceLevel: "A" | "B" | "C";
744
+ };
745
+ tree: {
746
+ stage: {
747
+ id: string;
748
+ summary: string;
749
+ label: string;
750
+ fromDay: number;
751
+ toDay: number;
752
+ };
753
+ completedYears: number;
754
+ plantedAt: string;
755
+ ageDays: number;
756
+ treeCount: number | null;
757
+ treeCountSource: "unknown" | "counted" | "stand" | "assumed";
758
+ };
759
+ nutrition: {
760
+ note: string | null;
761
+ startingScale: number;
762
+ scaleReason: string;
763
+ requiresSoilTest: boolean;
764
+ soilTestAdvice: string;
765
+ placement: string;
766
+ organic: string;
767
+ thisYear: {
768
+ completedYears: number;
769
+ sharePercent: number;
770
+ perTreeGrams: {
771
+ N: number;
772
+ P2O5: number;
773
+ K2O: number;
774
+ };
775
+ applications: {
776
+ status: "upcoming" | "open" | "passed";
777
+ id: string;
778
+ label: string;
779
+ why: string;
780
+ windowFrom: string;
781
+ windowTo: string;
782
+ daysUntilOpen: number | null;
783
+ products: {
784
+ label: string;
785
+ nutrient: "N" | "P2O5" | "K2O";
786
+ productId: string;
787
+ gramsPerTree: number;
788
+ kgForOrchard: number | null;
789
+ }[];
790
+ }[];
791
+ } | null;
792
+ };
793
+ phenology: {
794
+ note: string;
795
+ confidence: string;
796
+ floweringMonths: number[];
797
+ harvestMonths: number[];
798
+ };
799
+ climate: {
800
+ note: string;
801
+ place: string;
802
+ };
803
+ } | null;
804
+ }, {
805
+ status: "ok" | "not-planted" | "no-plan";
806
+ message: string | null;
807
+ crop: string | null;
808
+ fieldId: string;
809
+ plan: {
810
+ yield: {
811
+ note: string;
812
+ kgTotal: number;
813
+ harvestCount: number;
814
+ skippedUnits: boolean;
815
+ seasonFrom: string;
816
+ kgPerTree: number | null;
817
+ percentOfImproved: number | null;
818
+ typicalKgPerHa: [number, number];
819
+ improvedKgPerTree: [number, number];
820
+ thinningAndPruning: string;
821
+ } | null;
822
+ notes: string[];
823
+ month: {
824
+ title: string;
825
+ name: string;
826
+ season: string;
827
+ tasks: {
828
+ source: string;
829
+ text: string;
830
+ grade: "A" | "B" | "C";
831
+ }[];
832
+ month: number;
833
+ scout: {
834
+ id: string;
835
+ source: string;
836
+ name: string;
837
+ action: string;
838
+ grade: "A" | "B" | "C";
839
+ cause: string;
840
+ look: string;
841
+ }[];
842
+ };
843
+ checklist: string[];
844
+ sheet: {
845
+ status: string;
846
+ id: string;
847
+ sources: {
848
+ id: string;
849
+ url: string;
850
+ title: string;
851
+ grade: "A" | "B" | "C";
852
+ }[];
853
+ summary: string;
854
+ label: string;
855
+ version: number;
856
+ evidenceLevel: "A" | "B" | "C";
857
+ };
858
+ tree: {
859
+ stage: {
860
+ id: string;
861
+ summary: string;
862
+ label: string;
863
+ fromDay: number;
864
+ toDay: number;
865
+ };
866
+ completedYears: number;
867
+ plantedAt: string;
868
+ ageDays: number;
869
+ treeCount: number | null;
870
+ treeCountSource: "unknown" | "counted" | "stand" | "assumed";
871
+ };
872
+ nutrition: {
873
+ note: string | null;
874
+ startingScale: number;
875
+ scaleReason: string;
876
+ requiresSoilTest: boolean;
877
+ soilTestAdvice: string;
878
+ placement: string;
879
+ organic: string;
880
+ thisYear: {
881
+ completedYears: number;
882
+ sharePercent: number;
883
+ perTreeGrams: {
884
+ N: number;
885
+ P2O5: number;
886
+ K2O: number;
887
+ };
888
+ applications: {
889
+ status: "upcoming" | "open" | "passed";
890
+ id: string;
891
+ label: string;
892
+ why: string;
893
+ windowFrom: string;
894
+ windowTo: string;
895
+ daysUntilOpen: number | null;
896
+ products: {
897
+ label: string;
898
+ nutrient: "N" | "P2O5" | "K2O";
899
+ productId: string;
900
+ gramsPerTree: number;
901
+ kgForOrchard: number | null;
902
+ }[];
903
+ }[];
904
+ } | null;
905
+ };
906
+ phenology: {
907
+ note: string;
908
+ confidence: string;
909
+ floweringMonths: number[];
910
+ harvestMonths: number[];
911
+ };
912
+ climate: {
913
+ note: string;
914
+ place: string;
915
+ };
916
+ } | null;
917
+ }>;
918
+ 404: z.ZodObject<{
919
+ message: z.ZodString;
920
+ }, "strip", z.ZodTypeAny, {
921
+ message: string;
922
+ }, {
923
+ message: string;
924
+ }>;
925
+ };
926
+ };
927
+ };
928
+ //# sourceMappingURL=orchard-plan.routes.d.ts.map