@deepintel-ltd/farmpro-contracts 1.36.7 → 1.36.9

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,655 @@
1
+ import { z } from 'zod';
2
+ export declare const carePillarRouter: {
3
+ resolve: {
4
+ pathParams: z.ZodObject<{
5
+ pillar: z.ZodEnum<["ipm", "water", "weeds", "pruning"]>;
6
+ cropId: z.ZodString;
7
+ }, "strip", z.ZodTypeAny, {
8
+ cropId: string;
9
+ pillar: "water" | "ipm" | "weeds" | "pruning";
10
+ }, {
11
+ cropId: string;
12
+ pillar: "water" | "ipm" | "weeds" | "pruning";
13
+ }>;
14
+ query: z.ZodObject<{
15
+ plantingDate: z.ZodOptional<z.ZodString>;
16
+ transplantedAt: z.ZodOptional<z.ZodString>;
17
+ cropStage: z.ZodOptional<z.ZodString>;
18
+ /** Client calendar date, so the stage matches the farmer's day rather than the server's. */
19
+ today: z.ZodOptional<z.ZodString>;
20
+ }, "strip", z.ZodTypeAny, {
21
+ plantingDate?: string | undefined;
22
+ transplantedAt?: string | undefined;
23
+ cropStage?: string | undefined;
24
+ today?: string | undefined;
25
+ }, {
26
+ plantingDate?: string | undefined;
27
+ transplantedAt?: string | undefined;
28
+ cropStage?: string | undefined;
29
+ today?: string | undefined;
30
+ }>;
31
+ summary: "Resolve a care-pillar plan for a crop and planting clock";
32
+ method: "GET";
33
+ path: "/care-pillars/:pillar/plans/:cropId";
34
+ responses: {
35
+ 200: z.ZodObject<{
36
+ pillar: z.ZodEnum<["ipm", "water", "weeds", "pruning"]>;
37
+ origin: z.ZodEnum<["file", "generic"]>;
38
+ planId: z.ZodString;
39
+ oneLineRule: z.ZodString;
40
+ guidelineLabel: z.ZodString;
41
+ sources: z.ZodArray<z.ZodObject<{
42
+ id: z.ZodString;
43
+ org: z.ZodString;
44
+ title: z.ZodString;
45
+ url: z.ZodOptional<z.ZodString>;
46
+ grade: z.ZodEnum<["A", "B", "C"]>;
47
+ }, "strip", z.ZodTypeAny, {
48
+ id: string;
49
+ title: string;
50
+ org: string;
51
+ grade: "A" | "B" | "C";
52
+ url?: string | undefined;
53
+ }, {
54
+ id: string;
55
+ title: string;
56
+ org: string;
57
+ grade: "A" | "B" | "C";
58
+ url?: string | undefined;
59
+ }>, "many">;
60
+ phase: z.ZodEnum<["nursery", "field"]>;
61
+ day: z.ZodNullable<z.ZodNumber>;
62
+ stageId: z.ZodString;
63
+ stage: z.ZodNullable<z.ZodObject<{
64
+ stageId: z.ZodString;
65
+ summary: z.ZodString;
66
+ actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
67
+ id: z.ZodString;
68
+ kind: z.ZodEnum<["do", "avoid", "scout"]>;
69
+ headline: z.ZodString;
70
+ detail: z.ZodOptional<z.ZodString>;
71
+ cadence: z.ZodEnum<["once", "daily", "every-few-days", "weekly", "monthly", "each-feed", "as-needed", "always"]>;
72
+ when: z.ZodOptional<z.ZodString>;
73
+ dayStart: z.ZodOptional<z.ZodNumber>;
74
+ dayEnd: z.ZodOptional<z.ZodNumber>;
75
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
76
+ id: z.ZodString;
77
+ kind: z.ZodEnum<["do", "avoid", "scout"]>;
78
+ headline: z.ZodString;
79
+ detail: z.ZodOptional<z.ZodString>;
80
+ cadence: z.ZodEnum<["once", "daily", "every-few-days", "weekly", "monthly", "each-feed", "as-needed", "always"]>;
81
+ when: z.ZodOptional<z.ZodString>;
82
+ dayStart: z.ZodOptional<z.ZodNumber>;
83
+ dayEnd: z.ZodOptional<z.ZodNumber>;
84
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
85
+ id: z.ZodString;
86
+ kind: z.ZodEnum<["do", "avoid", "scout"]>;
87
+ headline: z.ZodString;
88
+ detail: z.ZodOptional<z.ZodString>;
89
+ cadence: z.ZodEnum<["once", "daily", "every-few-days", "weekly", "monthly", "each-feed", "as-needed", "always"]>;
90
+ when: z.ZodOptional<z.ZodString>;
91
+ dayStart: z.ZodOptional<z.ZodNumber>;
92
+ dayEnd: z.ZodOptional<z.ZodNumber>;
93
+ }, z.ZodTypeAny, "passthrough">>, "many">>;
94
+ kc: z.ZodOptional<z.ZodNumber>;
95
+ prevent: z.ZodArray<z.ZodString, "many">;
96
+ scout: z.ZodOptional<z.ZodObject<{
97
+ perWeek: z.ZodNumber;
98
+ perWeekWet: z.ZodNumber;
99
+ samplePlants: z.ZodNumber;
100
+ pattern: z.ZodEnum<["W", "Z"]>;
101
+ grade: z.ZodEnum<["A", "B", "C"]>;
102
+ sourceIds: z.ZodArray<z.ZodString, "many">;
103
+ }, "strip", z.ZodTypeAny, {
104
+ grade: "A" | "B" | "C";
105
+ sourceIds: string[];
106
+ perWeek: number;
107
+ perWeekWet: number;
108
+ samplePlants: number;
109
+ pattern: "W" | "Z";
110
+ }, {
111
+ grade: "A" | "B" | "C";
112
+ sourceIds: string[];
113
+ perWeek: number;
114
+ perWeekWet: number;
115
+ samplePlants: number;
116
+ pattern: "W" | "Z";
117
+ }>>;
118
+ watch: z.ZodArray<z.ZodString, "many">;
119
+ }, "strip", z.ZodTypeAny, {
120
+ summary: string;
121
+ watch: string[];
122
+ prevent: string[];
123
+ stageId: string;
124
+ actions?: z.objectOutputType<{
125
+ id: z.ZodString;
126
+ kind: z.ZodEnum<["do", "avoid", "scout"]>;
127
+ headline: z.ZodString;
128
+ detail: z.ZodOptional<z.ZodString>;
129
+ cadence: z.ZodEnum<["once", "daily", "every-few-days", "weekly", "monthly", "each-feed", "as-needed", "always"]>;
130
+ when: z.ZodOptional<z.ZodString>;
131
+ dayStart: z.ZodOptional<z.ZodNumber>;
132
+ dayEnd: z.ZodOptional<z.ZodNumber>;
133
+ }, z.ZodTypeAny, "passthrough">[] | undefined;
134
+ scout?: {
135
+ grade: "A" | "B" | "C";
136
+ sourceIds: string[];
137
+ perWeek: number;
138
+ perWeekWet: number;
139
+ samplePlants: number;
140
+ pattern: "W" | "Z";
141
+ } | undefined;
142
+ kc?: number | undefined;
143
+ }, {
144
+ summary: string;
145
+ watch: string[];
146
+ prevent: string[];
147
+ stageId: string;
148
+ actions?: z.objectInputType<{
149
+ id: z.ZodString;
150
+ kind: z.ZodEnum<["do", "avoid", "scout"]>;
151
+ headline: z.ZodString;
152
+ detail: z.ZodOptional<z.ZodString>;
153
+ cadence: z.ZodEnum<["once", "daily", "every-few-days", "weekly", "monthly", "each-feed", "as-needed", "always"]>;
154
+ when: z.ZodOptional<z.ZodString>;
155
+ dayStart: z.ZodOptional<z.ZodNumber>;
156
+ dayEnd: z.ZodOptional<z.ZodNumber>;
157
+ }, z.ZodTypeAny, "passthrough">[] | undefined;
158
+ scout?: {
159
+ grade: "A" | "B" | "C";
160
+ sourceIds: string[];
161
+ perWeek: number;
162
+ perWeekWet: number;
163
+ samplePlants: number;
164
+ pattern: "W" | "Z";
165
+ } | undefined;
166
+ kc?: number | undefined;
167
+ }>>;
168
+ stageFallback: z.ZodBoolean;
169
+ watch: z.ZodArray<z.ZodObject<{
170
+ id: z.ZodString;
171
+ name: z.ZodString;
172
+ kind: z.ZodEnum<["insect", "mite", "fungal", "bacterial", "viral", "physiological", "water", "weed", "canopy"]>;
173
+ localNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
174
+ symptoms: z.ZodArray<z.ZodString, "many">;
175
+ confusedWith: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
176
+ weatherTriggers: z.ZodOptional<z.ZodArray<z.ZodEnum<["wet", "humid", "hot", "dry", "windy", "warm"]>, "many">>;
177
+ vectorOf: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
178
+ scoutHow: z.ZodString;
179
+ thresholds: z.ZodArray<z.ZodObject<{
180
+ metric: z.ZodString;
181
+ text: z.ZodString;
182
+ value: z.ZodOptional<z.ZodNumber>;
183
+ unit: z.ZodOptional<z.ZodString>;
184
+ grade: z.ZodEnum<["A", "B", "C"]>;
185
+ sourceIds: z.ZodArray<z.ZodString, "many">;
186
+ }, "strip", z.ZodTypeAny, {
187
+ metric: string;
188
+ text: string;
189
+ grade: "A" | "B" | "C";
190
+ sourceIds: string[];
191
+ value?: number | undefined;
192
+ unit?: string | undefined;
193
+ }, {
194
+ metric: string;
195
+ text: string;
196
+ grade: "A" | "B" | "C";
197
+ sourceIds: string[];
198
+ value?: number | undefined;
199
+ unit?: string | undefined;
200
+ }>, "many">;
201
+ responses: z.ZodArray<z.ZodObject<{
202
+ tier: z.ZodEnum<["prevent", "cultural", "biological", "chemical"]>;
203
+ text: z.ZodString;
204
+ productClass: z.ZodOptional<z.ZodEnum<["fungicide", "insecticide", "miticide", "biopesticide", "herbicide"]>>;
205
+ activeIngredient: z.ZodOptional<z.ZodString>;
206
+ resistanceGroup: z.ZodOptional<z.ZodObject<{
207
+ system: z.ZodEnum<["IRAC", "FRAC", "HRAC"]>;
208
+ code: z.ZodString;
209
+ }, "strip", z.ZodTypeAny, {
210
+ code: string;
211
+ system: "IRAC" | "FRAC" | "HRAC";
212
+ }, {
213
+ code: string;
214
+ system: "IRAC" | "FRAC" | "HRAC";
215
+ }>>;
216
+ grade: z.ZodEnum<["A", "B", "C"]>;
217
+ sourceIds: z.ZodArray<z.ZodString, "many">;
218
+ }, "strip", z.ZodTypeAny, {
219
+ text: string;
220
+ tier: "prevent" | "cultural" | "biological" | "chemical";
221
+ grade: "A" | "B" | "C";
222
+ sourceIds: string[];
223
+ productClass?: "fungicide" | "insecticide" | "miticide" | "biopesticide" | "herbicide" | undefined;
224
+ activeIngredient?: string | undefined;
225
+ resistanceGroup?: {
226
+ code: string;
227
+ system: "IRAC" | "FRAC" | "HRAC";
228
+ } | undefined;
229
+ }, {
230
+ text: string;
231
+ tier: "prevent" | "cultural" | "biological" | "chemical";
232
+ grade: "A" | "B" | "C";
233
+ sourceIds: string[];
234
+ productClass?: "fungicide" | "insecticide" | "miticide" | "biopesticide" | "herbicide" | undefined;
235
+ activeIngredient?: string | undefined;
236
+ resistanceGroup?: {
237
+ code: string;
238
+ system: "IRAC" | "FRAC" | "HRAC";
239
+ } | undefined;
240
+ }>, "many">;
241
+ }, "strip", z.ZodTypeAny, {
242
+ id: string;
243
+ name: string;
244
+ responses: {
245
+ text: string;
246
+ tier: "prevent" | "cultural" | "biological" | "chemical";
247
+ grade: "A" | "B" | "C";
248
+ sourceIds: string[];
249
+ productClass?: "fungicide" | "insecticide" | "miticide" | "biopesticide" | "herbicide" | undefined;
250
+ activeIngredient?: string | undefined;
251
+ resistanceGroup?: {
252
+ code: string;
253
+ system: "IRAC" | "FRAC" | "HRAC";
254
+ } | undefined;
255
+ }[];
256
+ kind: "weed" | "water" | "insect" | "mite" | "fungal" | "bacterial" | "viral" | "physiological" | "canopy";
257
+ symptoms: string[];
258
+ scoutHow: string;
259
+ thresholds: {
260
+ metric: string;
261
+ text: string;
262
+ grade: "A" | "B" | "C";
263
+ sourceIds: string[];
264
+ value?: number | undefined;
265
+ unit?: string | undefined;
266
+ }[];
267
+ localNames?: string[] | undefined;
268
+ confusedWith?: string[] | undefined;
269
+ weatherTriggers?: ("wet" | "humid" | "hot" | "dry" | "windy" | "warm")[] | undefined;
270
+ vectorOf?: string[] | undefined;
271
+ }, {
272
+ id: string;
273
+ name: string;
274
+ responses: {
275
+ text: string;
276
+ tier: "prevent" | "cultural" | "biological" | "chemical";
277
+ grade: "A" | "B" | "C";
278
+ sourceIds: string[];
279
+ productClass?: "fungicide" | "insecticide" | "miticide" | "biopesticide" | "herbicide" | undefined;
280
+ activeIngredient?: string | undefined;
281
+ resistanceGroup?: {
282
+ code: string;
283
+ system: "IRAC" | "FRAC" | "HRAC";
284
+ } | undefined;
285
+ }[];
286
+ kind: "weed" | "water" | "insect" | "mite" | "fungal" | "bacterial" | "viral" | "physiological" | "canopy";
287
+ symptoms: string[];
288
+ scoutHow: string;
289
+ thresholds: {
290
+ metric: string;
291
+ text: string;
292
+ grade: "A" | "B" | "C";
293
+ sourceIds: string[];
294
+ value?: number | undefined;
295
+ unit?: string | undefined;
296
+ }[];
297
+ localNames?: string[] | undefined;
298
+ confusedWith?: string[] | undefined;
299
+ weatherTriggers?: ("wet" | "humid" | "hot" | "dry" | "windy" | "warm")[] | undefined;
300
+ vectorOf?: string[] | undefined;
301
+ }>, "many">;
302
+ needsDate: z.ZodBoolean;
303
+ }, "strip", z.ZodTypeAny, {
304
+ sources: {
305
+ id: string;
306
+ title: string;
307
+ org: string;
308
+ grade: "A" | "B" | "C";
309
+ url?: string | undefined;
310
+ }[];
311
+ stage: {
312
+ summary: string;
313
+ watch: string[];
314
+ prevent: string[];
315
+ stageId: string;
316
+ actions?: z.objectOutputType<{
317
+ id: z.ZodString;
318
+ kind: z.ZodEnum<["do", "avoid", "scout"]>;
319
+ headline: z.ZodString;
320
+ detail: z.ZodOptional<z.ZodString>;
321
+ cadence: z.ZodEnum<["once", "daily", "every-few-days", "weekly", "monthly", "each-feed", "as-needed", "always"]>;
322
+ when: z.ZodOptional<z.ZodString>;
323
+ dayStart: z.ZodOptional<z.ZodNumber>;
324
+ dayEnd: z.ZodOptional<z.ZodNumber>;
325
+ }, z.ZodTypeAny, "passthrough">[] | undefined;
326
+ scout?: {
327
+ grade: "A" | "B" | "C";
328
+ sourceIds: string[];
329
+ perWeek: number;
330
+ perWeekWet: number;
331
+ samplePlants: number;
332
+ pattern: "W" | "Z";
333
+ } | undefined;
334
+ kc?: number | undefined;
335
+ } | null;
336
+ day: number | null;
337
+ phase: "field" | "nursery";
338
+ oneLineRule: string;
339
+ watch: {
340
+ id: string;
341
+ name: string;
342
+ responses: {
343
+ text: string;
344
+ tier: "prevent" | "cultural" | "biological" | "chemical";
345
+ grade: "A" | "B" | "C";
346
+ sourceIds: string[];
347
+ productClass?: "fungicide" | "insecticide" | "miticide" | "biopesticide" | "herbicide" | undefined;
348
+ activeIngredient?: string | undefined;
349
+ resistanceGroup?: {
350
+ code: string;
351
+ system: "IRAC" | "FRAC" | "HRAC";
352
+ } | undefined;
353
+ }[];
354
+ kind: "weed" | "water" | "insect" | "mite" | "fungal" | "bacterial" | "viral" | "physiological" | "canopy";
355
+ symptoms: string[];
356
+ scoutHow: string;
357
+ thresholds: {
358
+ metric: string;
359
+ text: string;
360
+ grade: "A" | "B" | "C";
361
+ sourceIds: string[];
362
+ value?: number | undefined;
363
+ unit?: string | undefined;
364
+ }[];
365
+ localNames?: string[] | undefined;
366
+ confusedWith?: string[] | undefined;
367
+ weatherTriggers?: ("wet" | "humid" | "hot" | "dry" | "windy" | "warm")[] | undefined;
368
+ vectorOf?: string[] | undefined;
369
+ }[];
370
+ origin: "file" | "generic";
371
+ needsDate: boolean;
372
+ stageId: string;
373
+ pillar: "water" | "ipm" | "weeds" | "pruning";
374
+ planId: string;
375
+ guidelineLabel: string;
376
+ stageFallback: boolean;
377
+ }, {
378
+ sources: {
379
+ id: string;
380
+ title: string;
381
+ org: string;
382
+ grade: "A" | "B" | "C";
383
+ url?: string | undefined;
384
+ }[];
385
+ stage: {
386
+ summary: string;
387
+ watch: string[];
388
+ prevent: string[];
389
+ stageId: string;
390
+ actions?: z.objectInputType<{
391
+ id: z.ZodString;
392
+ kind: z.ZodEnum<["do", "avoid", "scout"]>;
393
+ headline: z.ZodString;
394
+ detail: z.ZodOptional<z.ZodString>;
395
+ cadence: z.ZodEnum<["once", "daily", "every-few-days", "weekly", "monthly", "each-feed", "as-needed", "always"]>;
396
+ when: z.ZodOptional<z.ZodString>;
397
+ dayStart: z.ZodOptional<z.ZodNumber>;
398
+ dayEnd: z.ZodOptional<z.ZodNumber>;
399
+ }, z.ZodTypeAny, "passthrough">[] | undefined;
400
+ scout?: {
401
+ grade: "A" | "B" | "C";
402
+ sourceIds: string[];
403
+ perWeek: number;
404
+ perWeekWet: number;
405
+ samplePlants: number;
406
+ pattern: "W" | "Z";
407
+ } | undefined;
408
+ kc?: number | undefined;
409
+ } | null;
410
+ day: number | null;
411
+ phase: "field" | "nursery";
412
+ oneLineRule: string;
413
+ watch: {
414
+ id: string;
415
+ name: string;
416
+ responses: {
417
+ text: string;
418
+ tier: "prevent" | "cultural" | "biological" | "chemical";
419
+ grade: "A" | "B" | "C";
420
+ sourceIds: string[];
421
+ productClass?: "fungicide" | "insecticide" | "miticide" | "biopesticide" | "herbicide" | undefined;
422
+ activeIngredient?: string | undefined;
423
+ resistanceGroup?: {
424
+ code: string;
425
+ system: "IRAC" | "FRAC" | "HRAC";
426
+ } | undefined;
427
+ }[];
428
+ kind: "weed" | "water" | "insect" | "mite" | "fungal" | "bacterial" | "viral" | "physiological" | "canopy";
429
+ symptoms: string[];
430
+ scoutHow: string;
431
+ thresholds: {
432
+ metric: string;
433
+ text: string;
434
+ grade: "A" | "B" | "C";
435
+ sourceIds: string[];
436
+ value?: number | undefined;
437
+ unit?: string | undefined;
438
+ }[];
439
+ localNames?: string[] | undefined;
440
+ confusedWith?: string[] | undefined;
441
+ weatherTriggers?: ("wet" | "humid" | "hot" | "dry" | "windy" | "warm")[] | undefined;
442
+ vectorOf?: string[] | undefined;
443
+ }[];
444
+ origin: "file" | "generic";
445
+ needsDate: boolean;
446
+ stageId: string;
447
+ pillar: "water" | "ipm" | "weeds" | "pruning";
448
+ planId: string;
449
+ guidelineLabel: string;
450
+ stageFallback: boolean;
451
+ }>;
452
+ 404: z.ZodObject<{
453
+ message: z.ZodString;
454
+ }, "strip", z.ZodTypeAny, {
455
+ message: string;
456
+ }, {
457
+ message: string;
458
+ }>;
459
+ };
460
+ };
461
+ adjustments: {
462
+ pathParams: z.ZodObject<{
463
+ farmId: z.ZodString;
464
+ fieldId: z.ZodString;
465
+ pillar: z.ZodEnum<["ipm", "water", "weeds", "pruning"]>;
466
+ }, "strip", z.ZodTypeAny, {
467
+ farmId: string;
468
+ fieldId: string;
469
+ pillar: "water" | "ipm" | "weeds" | "pruning";
470
+ }, {
471
+ farmId: string;
472
+ fieldId: string;
473
+ pillar: "water" | "ipm" | "weeds" | "pruning";
474
+ }>;
475
+ summary: "Weather, satellite and PHI adjustments for a care pillar on a specific field";
476
+ method: "GET";
477
+ path: "/farms/:farmId/fields/:fieldId/care-pillars/:pillar/adjustments";
478
+ responses: {
479
+ 200: z.ZodObject<{
480
+ pillar: z.ZodEnum<["ipm", "water", "weeds", "pruning"]>;
481
+ crop: z.ZodOptional<z.ZodNullable<z.ZodString>>;
482
+ stage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
483
+ adjustments: z.ZodArray<z.ZodObject<{
484
+ id: z.ZodString;
485
+ pillar: z.ZodEnum<["ipm", "water", "weeds", "pruning"]>;
486
+ severity: z.ZodEnum<["info", "watch", "act"]>;
487
+ title: z.ZodString;
488
+ detail: z.ZodString;
489
+ source: z.ZodString;
490
+ }, "strip", z.ZodTypeAny, {
491
+ id: string;
492
+ title: string;
493
+ detail: string;
494
+ source: string;
495
+ severity: "info" | "watch" | "act";
496
+ pillar: "water" | "ipm" | "weeds" | "pruning";
497
+ }, {
498
+ id: string;
499
+ title: string;
500
+ detail: string;
501
+ source: string;
502
+ severity: "info" | "watch" | "act";
503
+ pillar: "water" | "ipm" | "weeds" | "pruning";
504
+ }>, "many">;
505
+ weatherAvailable: z.ZodBoolean;
506
+ generatedAt: z.ZodString;
507
+ }, "strip", z.ZodTypeAny, {
508
+ generatedAt: string;
509
+ adjustments: {
510
+ id: string;
511
+ title: string;
512
+ detail: string;
513
+ source: string;
514
+ severity: "info" | "watch" | "act";
515
+ pillar: "water" | "ipm" | "weeds" | "pruning";
516
+ }[];
517
+ weatherAvailable: boolean;
518
+ pillar: "water" | "ipm" | "weeds" | "pruning";
519
+ crop?: string | null | undefined;
520
+ stage?: string | null | undefined;
521
+ }, {
522
+ generatedAt: string;
523
+ adjustments: {
524
+ id: string;
525
+ title: string;
526
+ detail: string;
527
+ source: string;
528
+ severity: "info" | "watch" | "act";
529
+ pillar: "water" | "ipm" | "weeds" | "pruning";
530
+ }[];
531
+ weatherAvailable: boolean;
532
+ pillar: "water" | "ipm" | "weeds" | "pruning";
533
+ crop?: string | null | undefined;
534
+ stage?: string | null | undefined;
535
+ }>;
536
+ 404: z.ZodObject<{
537
+ message: z.ZodString;
538
+ }, "strip", z.ZodTypeAny, {
539
+ message: string;
540
+ }, {
541
+ message: string;
542
+ }>;
543
+ };
544
+ };
545
+ harvestHold: {
546
+ pathParams: z.ZodObject<{
547
+ farmId: z.ZodString;
548
+ fieldId: z.ZodString;
549
+ }, "strip", z.ZodTypeAny, {
550
+ farmId: string;
551
+ fieldId: string;
552
+ }, {
553
+ farmId: string;
554
+ fieldId: string;
555
+ }>;
556
+ query: z.ZodObject<{
557
+ date: z.ZodOptional<z.ZodString>;
558
+ }, "strip", z.ZodTypeAny, {
559
+ date?: string | undefined;
560
+ }, {
561
+ date?: string | undefined;
562
+ }>;
563
+ summary: "Waiting-period check for a harvest on a given day";
564
+ method: "GET";
565
+ path: "/farms/:farmId/fields/:fieldId/harvest-hold";
566
+ responses: {
567
+ 200: z.ZodObject<{
568
+ date: z.ZodString;
569
+ hold: z.ZodBoolean;
570
+ unknown: z.ZodBoolean;
571
+ safeHarvestDate: z.ZodNullable<z.ZodString>;
572
+ daysRemaining: z.ZodNullable<z.ZodNumber>;
573
+ message: z.ZodNullable<z.ZodString>;
574
+ treatments: z.ZodArray<z.ZodObject<{
575
+ productName: z.ZodString;
576
+ activeIngredient: z.ZodOptional<z.ZodString>;
577
+ appliedOn: z.ZodString;
578
+ phiDays: z.ZodNumber;
579
+ safeHarvestDate: z.ZodString;
580
+ daysRemaining: z.ZodNumber;
581
+ }, "strip", z.ZodTypeAny, {
582
+ productName: string;
583
+ appliedOn: string;
584
+ phiDays: number;
585
+ safeHarvestDate: string;
586
+ daysRemaining: number;
587
+ activeIngredient?: string | undefined;
588
+ }, {
589
+ productName: string;
590
+ appliedOn: string;
591
+ phiDays: number;
592
+ safeHarvestDate: string;
593
+ daysRemaining: number;
594
+ activeIngredient?: string | undefined;
595
+ }>, "many">;
596
+ unknownTreatments: z.ZodArray<z.ZodObject<{
597
+ productName: z.ZodString;
598
+ appliedOn: z.ZodString;
599
+ }, "strip", z.ZodTypeAny, {
600
+ productName: string;
601
+ appliedOn: string;
602
+ }, {
603
+ productName: string;
604
+ appliedOn: string;
605
+ }>, "many">;
606
+ }, "strip", z.ZodTypeAny, {
607
+ message: string | null;
608
+ date: string;
609
+ unknown: boolean;
610
+ safeHarvestDate: string | null;
611
+ daysRemaining: number | null;
612
+ hold: boolean;
613
+ treatments: {
614
+ productName: string;
615
+ appliedOn: string;
616
+ phiDays: number;
617
+ safeHarvestDate: string;
618
+ daysRemaining: number;
619
+ activeIngredient?: string | undefined;
620
+ }[];
621
+ unknownTreatments: {
622
+ productName: string;
623
+ appliedOn: string;
624
+ }[];
625
+ }, {
626
+ message: string | null;
627
+ date: string;
628
+ unknown: boolean;
629
+ safeHarvestDate: string | null;
630
+ daysRemaining: number | null;
631
+ hold: boolean;
632
+ treatments: {
633
+ productName: string;
634
+ appliedOn: string;
635
+ phiDays: number;
636
+ safeHarvestDate: string;
637
+ daysRemaining: number;
638
+ activeIngredient?: string | undefined;
639
+ }[];
640
+ unknownTreatments: {
641
+ productName: string;
642
+ appliedOn: string;
643
+ }[];
644
+ }>;
645
+ 404: z.ZodObject<{
646
+ message: z.ZodString;
647
+ }, "strip", z.ZodTypeAny, {
648
+ message: string;
649
+ }, {
650
+ message: string;
651
+ }>;
652
+ };
653
+ };
654
+ };
655
+ //# sourceMappingURL=care-pillar.routes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"care-pillar.routes.d.ts","sourceRoot":"","sources":["../../src/routes/care-pillar.routes.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAYxB,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;YAgBvB,4FAA4F;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8ChG,CAAC"}