@deepintel-ltd/farmpro-contracts 1.11.8 → 1.11.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.
Files changed (40) hide show
  1. package/dist/index.d.ts +3 -1
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +2 -0
  4. package/dist/routes/agents.routes.d.ts +142 -0
  5. package/dist/routes/agents.routes.d.ts.map +1 -1
  6. package/dist/routes/equipment.routes.d.ts +36 -36
  7. package/dist/routes/extension.routes.d.ts +12 -12
  8. package/dist/routes/fertigation.routes.d.ts +156 -156
  9. package/dist/routes/field-activities.routes.d.ts +2397 -0
  10. package/dist/routes/field-activities.routes.d.ts.map +1 -0
  11. package/dist/routes/field-activities.routes.js +81 -0
  12. package/dist/routes/fields.routes.d.ts +860 -0
  13. package/dist/routes/fields.routes.d.ts.map +1 -1
  14. package/dist/routes/fields.routes.js +20 -1
  15. package/dist/routes/index.d.ts +3 -0
  16. package/dist/routes/index.d.ts.map +1 -1
  17. package/dist/routes/index.js +2 -0
  18. package/dist/routes/irrigation.routes.d.ts +20 -20
  19. package/dist/routes/livestock-groups.routes.d.ts +36 -36
  20. package/dist/routes/livestock.routes.d.ts +30 -30
  21. package/dist/routes/soil-tests.routes.d.ts +36 -36
  22. package/dist/routes/tasks.routes.d.ts +120 -120
  23. package/dist/schemas/agents.schemas.d.ts +163 -0
  24. package/dist/schemas/agents.schemas.d.ts.map +1 -1
  25. package/dist/schemas/agents.schemas.js +23 -0
  26. package/dist/schemas/equipment.schemas.d.ts +30 -30
  27. package/dist/schemas/extension.schemas.d.ts +18 -18
  28. package/dist/schemas/fertigation.schemas.d.ts +42 -42
  29. package/dist/schemas/field-activities.schemas.d.ts +806 -0
  30. package/dist/schemas/field-activities.schemas.d.ts.map +1 -0
  31. package/dist/schemas/field-activities.schemas.js +68 -0
  32. package/dist/schemas/fields.schemas.d.ts +173 -0
  33. package/dist/schemas/fields.schemas.d.ts.map +1 -1
  34. package/dist/schemas/fields.schemas.js +14 -0
  35. package/dist/schemas/irrigation.schemas.d.ts +14 -14
  36. package/dist/schemas/livestock-groups.schemas.d.ts +24 -24
  37. package/dist/schemas/livestock.schemas.d.ts +24 -24
  38. package/dist/schemas/soil-tests.schemas.d.ts +34 -34
  39. package/dist/schemas/tasks.schemas.d.ts +96 -96
  40. package/package.json +1 -1
@@ -0,0 +1,2397 @@
1
+ import { z } from 'zod';
2
+ export declare const fieldActivitiesRouter: {
3
+ listFieldActivities: {
4
+ pathParams: z.ZodObject<{
5
+ farmId: z.ZodString;
6
+ }, "strip", z.ZodTypeAny, {
7
+ farmId: string;
8
+ }, {
9
+ farmId: string;
10
+ }>;
11
+ query: z.ZodObject<{
12
+ 'page[number]': z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
13
+ 'page[size]': z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
14
+ } & {
15
+ sort: z.ZodOptional<z.ZodString>;
16
+ } & {
17
+ 'filter[fieldId]': z.ZodOptional<z.ZodString>;
18
+ 'filter[type]': z.ZodOptional<z.ZodEnum<["weeding", "fertilizer"]>>;
19
+ }, "strip", z.ZodTypeAny, {
20
+ sort?: string | undefined;
21
+ 'page[number]'?: number | undefined;
22
+ 'page[size]'?: number | undefined;
23
+ 'filter[fieldId]'?: string | undefined;
24
+ 'filter[type]'?: "fertilizer" | "weeding" | undefined;
25
+ }, {
26
+ sort?: string | undefined;
27
+ 'page[number]'?: number | undefined;
28
+ 'page[size]'?: number | undefined;
29
+ 'filter[fieldId]'?: string | undefined;
30
+ 'filter[type]'?: "fertilizer" | "weeding" | undefined;
31
+ }>;
32
+ summary: "List field activities";
33
+ method: "GET";
34
+ path: "/farms/:farmId/field-activities";
35
+ responses: {
36
+ 200: z.ZodObject<{
37
+ data: z.ZodArray<z.ZodObject<{
38
+ type: z.ZodLiteral<string>;
39
+ id: z.ZodString;
40
+ attributes: z.ZodObject<{
41
+ fieldId: z.ZodString;
42
+ fieldName: z.ZodOptional<z.ZodString>;
43
+ type: z.ZodEnum<["weeding", "fertilizer"]>;
44
+ occurredAt: z.ZodString;
45
+ method: z.ZodNullable<z.ZodString>;
46
+ productName: z.ZodNullable<z.ZodString>;
47
+ fertilizerProductId: z.ZodNullable<z.ZodString>;
48
+ inventoryItemId: z.ZodNullable<z.ZodString>;
49
+ quantity: z.ZodNullable<z.ZodNumber>;
50
+ unit: z.ZodNullable<z.ZodString>;
51
+ notes: z.ZodNullable<z.ZodString>;
52
+ createdById: z.ZodNullable<z.ZodString>;
53
+ source: z.ZodEnum<["manual", "agent", "whatsapp"]>;
54
+ } & {
55
+ createdAt: z.ZodString;
56
+ updatedAt: z.ZodString;
57
+ }, "strip", z.ZodTypeAny, {
58
+ type: "fertilizer" | "weeding";
59
+ source: "manual" | "agent" | "whatsapp";
60
+ createdAt: string;
61
+ updatedAt: string;
62
+ method: string | null;
63
+ notes: string | null;
64
+ fieldId: string;
65
+ inventoryItemId: string | null;
66
+ unit: string | null;
67
+ quantity: number | null;
68
+ productName: string | null;
69
+ fertilizerProductId: string | null;
70
+ occurredAt: string;
71
+ createdById: string | null;
72
+ fieldName?: string | undefined;
73
+ }, {
74
+ type: "fertilizer" | "weeding";
75
+ source: "manual" | "agent" | "whatsapp";
76
+ createdAt: string;
77
+ updatedAt: string;
78
+ method: string | null;
79
+ notes: string | null;
80
+ fieldId: string;
81
+ inventoryItemId: string | null;
82
+ unit: string | null;
83
+ quantity: number | null;
84
+ productName: string | null;
85
+ fertilizerProductId: string | null;
86
+ occurredAt: string;
87
+ createdById: string | null;
88
+ fieldName?: string | undefined;
89
+ }>;
90
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
91
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
92
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
93
+ }, "strip", z.ZodTypeAny, {
94
+ type: string;
95
+ id: string;
96
+ attributes: {
97
+ type: "fertilizer" | "weeding";
98
+ source: "manual" | "agent" | "whatsapp";
99
+ createdAt: string;
100
+ updatedAt: string;
101
+ method: string | null;
102
+ notes: string | null;
103
+ fieldId: string;
104
+ inventoryItemId: string | null;
105
+ unit: string | null;
106
+ quantity: number | null;
107
+ productName: string | null;
108
+ fertilizerProductId: string | null;
109
+ occurredAt: string;
110
+ createdById: string | null;
111
+ fieldName?: string | undefined;
112
+ };
113
+ relationships?: Record<string, unknown> | undefined;
114
+ links?: Record<string, string> | undefined;
115
+ meta?: Record<string, unknown> | undefined;
116
+ }, {
117
+ type: string;
118
+ id: string;
119
+ attributes: {
120
+ type: "fertilizer" | "weeding";
121
+ source: "manual" | "agent" | "whatsapp";
122
+ createdAt: string;
123
+ updatedAt: string;
124
+ method: string | null;
125
+ notes: string | null;
126
+ fieldId: string;
127
+ inventoryItemId: string | null;
128
+ unit: string | null;
129
+ quantity: number | null;
130
+ productName: string | null;
131
+ fertilizerProductId: string | null;
132
+ occurredAt: string;
133
+ createdById: string | null;
134
+ fieldName?: string | undefined;
135
+ };
136
+ relationships?: Record<string, unknown> | undefined;
137
+ links?: Record<string, string> | undefined;
138
+ meta?: Record<string, unknown> | undefined;
139
+ }>, "many">;
140
+ included: z.ZodOptional<z.ZodArray<z.ZodObject<{
141
+ type: z.ZodString;
142
+ id: z.ZodString;
143
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
144
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
145
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
146
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
147
+ }, "strip", z.ZodTypeAny, {
148
+ type: string;
149
+ id: string;
150
+ attributes?: Record<string, unknown> | undefined;
151
+ relationships?: Record<string, unknown> | undefined;
152
+ links?: Record<string, string> | undefined;
153
+ meta?: Record<string, unknown> | undefined;
154
+ }, {
155
+ type: string;
156
+ id: string;
157
+ attributes?: Record<string, unknown> | undefined;
158
+ relationships?: Record<string, unknown> | undefined;
159
+ links?: Record<string, string> | undefined;
160
+ meta?: Record<string, unknown> | undefined;
161
+ }>, "many">>;
162
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
163
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
164
+ }, "strip", z.ZodTypeAny, {
165
+ data: {
166
+ type: string;
167
+ id: string;
168
+ attributes: {
169
+ type: "fertilizer" | "weeding";
170
+ source: "manual" | "agent" | "whatsapp";
171
+ createdAt: string;
172
+ updatedAt: string;
173
+ method: string | null;
174
+ notes: string | null;
175
+ fieldId: string;
176
+ inventoryItemId: string | null;
177
+ unit: string | null;
178
+ quantity: number | null;
179
+ productName: string | null;
180
+ fertilizerProductId: string | null;
181
+ occurredAt: string;
182
+ createdById: string | null;
183
+ fieldName?: string | undefined;
184
+ };
185
+ relationships?: Record<string, unknown> | undefined;
186
+ links?: Record<string, string> | undefined;
187
+ meta?: Record<string, unknown> | undefined;
188
+ }[];
189
+ links?: Record<string, string> | undefined;
190
+ meta?: Record<string, unknown> | undefined;
191
+ included?: {
192
+ type: string;
193
+ id: string;
194
+ attributes?: Record<string, unknown> | undefined;
195
+ relationships?: Record<string, unknown> | undefined;
196
+ links?: Record<string, string> | undefined;
197
+ meta?: Record<string, unknown> | undefined;
198
+ }[] | undefined;
199
+ }, {
200
+ data: {
201
+ type: string;
202
+ id: string;
203
+ attributes: {
204
+ type: "fertilizer" | "weeding";
205
+ source: "manual" | "agent" | "whatsapp";
206
+ createdAt: string;
207
+ updatedAt: string;
208
+ method: string | null;
209
+ notes: string | null;
210
+ fieldId: string;
211
+ inventoryItemId: string | null;
212
+ unit: string | null;
213
+ quantity: number | null;
214
+ productName: string | null;
215
+ fertilizerProductId: string | null;
216
+ occurredAt: string;
217
+ createdById: string | null;
218
+ fieldName?: string | undefined;
219
+ };
220
+ relationships?: Record<string, unknown> | undefined;
221
+ links?: Record<string, string> | undefined;
222
+ meta?: Record<string, unknown> | undefined;
223
+ }[];
224
+ links?: Record<string, string> | undefined;
225
+ meta?: Record<string, unknown> | undefined;
226
+ included?: {
227
+ type: string;
228
+ id: string;
229
+ attributes?: Record<string, unknown> | undefined;
230
+ relationships?: Record<string, unknown> | undefined;
231
+ links?: Record<string, string> | undefined;
232
+ meta?: Record<string, unknown> | undefined;
233
+ }[] | undefined;
234
+ }>;
235
+ 404: z.ZodObject<{
236
+ errors: z.ZodArray<z.ZodObject<{
237
+ id: z.ZodOptional<z.ZodString>;
238
+ links: z.ZodOptional<z.ZodObject<{
239
+ about: z.ZodOptional<z.ZodString>;
240
+ }, "strip", z.ZodTypeAny, {
241
+ about?: string | undefined;
242
+ }, {
243
+ about?: string | undefined;
244
+ }>>;
245
+ status: z.ZodOptional<z.ZodString>;
246
+ code: z.ZodOptional<z.ZodString>;
247
+ title: z.ZodOptional<z.ZodString>;
248
+ detail: z.ZodOptional<z.ZodString>;
249
+ source: z.ZodOptional<z.ZodObject<{
250
+ pointer: z.ZodOptional<z.ZodString>;
251
+ parameter: z.ZodOptional<z.ZodString>;
252
+ }, "strip", z.ZodTypeAny, {
253
+ pointer?: string | undefined;
254
+ parameter?: string | undefined;
255
+ }, {
256
+ pointer?: string | undefined;
257
+ parameter?: string | undefined;
258
+ }>>;
259
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
260
+ }, "strip", z.ZodTypeAny, {
261
+ status?: string | undefined;
262
+ code?: string | undefined;
263
+ id?: string | undefined;
264
+ links?: {
265
+ about?: string | undefined;
266
+ } | undefined;
267
+ meta?: Record<string, unknown> | undefined;
268
+ title?: string | undefined;
269
+ detail?: string | undefined;
270
+ source?: {
271
+ pointer?: string | undefined;
272
+ parameter?: string | undefined;
273
+ } | undefined;
274
+ }, {
275
+ status?: string | undefined;
276
+ code?: string | undefined;
277
+ id?: string | undefined;
278
+ links?: {
279
+ about?: string | undefined;
280
+ } | undefined;
281
+ meta?: Record<string, unknown> | undefined;
282
+ title?: string | undefined;
283
+ detail?: string | undefined;
284
+ source?: {
285
+ pointer?: string | undefined;
286
+ parameter?: string | undefined;
287
+ } | undefined;
288
+ }>, "many">;
289
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
290
+ }, "strip", z.ZodTypeAny, {
291
+ errors: {
292
+ status?: string | undefined;
293
+ code?: string | undefined;
294
+ id?: string | undefined;
295
+ links?: {
296
+ about?: string | undefined;
297
+ } | undefined;
298
+ meta?: Record<string, unknown> | undefined;
299
+ title?: string | undefined;
300
+ detail?: string | undefined;
301
+ source?: {
302
+ pointer?: string | undefined;
303
+ parameter?: string | undefined;
304
+ } | undefined;
305
+ }[];
306
+ meta?: Record<string, unknown> | undefined;
307
+ }, {
308
+ errors: {
309
+ status?: string | undefined;
310
+ code?: string | undefined;
311
+ id?: string | undefined;
312
+ links?: {
313
+ about?: string | undefined;
314
+ } | undefined;
315
+ meta?: Record<string, unknown> | undefined;
316
+ title?: string | undefined;
317
+ detail?: string | undefined;
318
+ source?: {
319
+ pointer?: string | undefined;
320
+ parameter?: string | undefined;
321
+ } | undefined;
322
+ }[];
323
+ meta?: Record<string, unknown> | undefined;
324
+ }>;
325
+ 401: z.ZodObject<{
326
+ errors: z.ZodArray<z.ZodObject<{
327
+ id: z.ZodOptional<z.ZodString>;
328
+ links: z.ZodOptional<z.ZodObject<{
329
+ about: z.ZodOptional<z.ZodString>;
330
+ }, "strip", z.ZodTypeAny, {
331
+ about?: string | undefined;
332
+ }, {
333
+ about?: string | undefined;
334
+ }>>;
335
+ status: z.ZodOptional<z.ZodString>;
336
+ code: z.ZodOptional<z.ZodString>;
337
+ title: z.ZodOptional<z.ZodString>;
338
+ detail: z.ZodOptional<z.ZodString>;
339
+ source: z.ZodOptional<z.ZodObject<{
340
+ pointer: z.ZodOptional<z.ZodString>;
341
+ parameter: z.ZodOptional<z.ZodString>;
342
+ }, "strip", z.ZodTypeAny, {
343
+ pointer?: string | undefined;
344
+ parameter?: string | undefined;
345
+ }, {
346
+ pointer?: string | undefined;
347
+ parameter?: string | undefined;
348
+ }>>;
349
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
350
+ }, "strip", z.ZodTypeAny, {
351
+ status?: string | undefined;
352
+ code?: string | undefined;
353
+ id?: string | undefined;
354
+ links?: {
355
+ about?: string | undefined;
356
+ } | undefined;
357
+ meta?: Record<string, unknown> | undefined;
358
+ title?: string | undefined;
359
+ detail?: string | undefined;
360
+ source?: {
361
+ pointer?: string | undefined;
362
+ parameter?: string | undefined;
363
+ } | undefined;
364
+ }, {
365
+ status?: string | undefined;
366
+ code?: string | undefined;
367
+ id?: string | undefined;
368
+ links?: {
369
+ about?: string | undefined;
370
+ } | undefined;
371
+ meta?: Record<string, unknown> | undefined;
372
+ title?: string | undefined;
373
+ detail?: string | undefined;
374
+ source?: {
375
+ pointer?: string | undefined;
376
+ parameter?: string | undefined;
377
+ } | undefined;
378
+ }>, "many">;
379
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
380
+ }, "strip", z.ZodTypeAny, {
381
+ errors: {
382
+ status?: string | undefined;
383
+ code?: string | undefined;
384
+ id?: string | undefined;
385
+ links?: {
386
+ about?: string | undefined;
387
+ } | undefined;
388
+ meta?: Record<string, unknown> | undefined;
389
+ title?: string | undefined;
390
+ detail?: string | undefined;
391
+ source?: {
392
+ pointer?: string | undefined;
393
+ parameter?: string | undefined;
394
+ } | undefined;
395
+ }[];
396
+ meta?: Record<string, unknown> | undefined;
397
+ }, {
398
+ errors: {
399
+ status?: string | undefined;
400
+ code?: string | undefined;
401
+ id?: string | undefined;
402
+ links?: {
403
+ about?: string | undefined;
404
+ } | undefined;
405
+ meta?: Record<string, unknown> | undefined;
406
+ title?: string | undefined;
407
+ detail?: string | undefined;
408
+ source?: {
409
+ pointer?: string | undefined;
410
+ parameter?: string | undefined;
411
+ } | undefined;
412
+ }[];
413
+ meta?: Record<string, unknown> | undefined;
414
+ }>;
415
+ };
416
+ };
417
+ createFieldActivity: {
418
+ pathParams: z.ZodObject<{
419
+ farmId: z.ZodString;
420
+ }, "strip", z.ZodTypeAny, {
421
+ farmId: string;
422
+ }, {
423
+ farmId: string;
424
+ }>;
425
+ summary: "Create field activity";
426
+ method: "POST";
427
+ body: z.ZodObject<{
428
+ data: z.ZodObject<{
429
+ type: z.ZodLiteral<"field-activities">;
430
+ attributes: z.ZodEffects<z.ZodObject<{
431
+ fieldId: z.ZodString;
432
+ type: z.ZodEnum<["weeding", "fertilizer"]>;
433
+ occurredAt: z.ZodString;
434
+ method: z.ZodOptional<z.ZodString>;
435
+ productName: z.ZodOptional<z.ZodString>;
436
+ fertilizerProductId: z.ZodOptional<z.ZodString>;
437
+ inventoryItemId: z.ZodOptional<z.ZodString>;
438
+ quantity: z.ZodOptional<z.ZodNumber>;
439
+ unit: z.ZodOptional<z.ZodString>;
440
+ notes: z.ZodOptional<z.ZodString>;
441
+ source: z.ZodOptional<z.ZodEnum<["manual", "agent", "whatsapp"]>>;
442
+ }, "strip", z.ZodTypeAny, {
443
+ type: "fertilizer" | "weeding";
444
+ fieldId: string;
445
+ occurredAt: string;
446
+ source?: "manual" | "agent" | "whatsapp" | undefined;
447
+ method?: string | undefined;
448
+ notes?: string | undefined;
449
+ inventoryItemId?: string | undefined;
450
+ unit?: string | undefined;
451
+ quantity?: number | undefined;
452
+ productName?: string | undefined;
453
+ fertilizerProductId?: string | undefined;
454
+ }, {
455
+ type: "fertilizer" | "weeding";
456
+ fieldId: string;
457
+ occurredAt: string;
458
+ source?: "manual" | "agent" | "whatsapp" | undefined;
459
+ method?: string | undefined;
460
+ notes?: string | undefined;
461
+ inventoryItemId?: string | undefined;
462
+ unit?: string | undefined;
463
+ quantity?: number | undefined;
464
+ productName?: string | undefined;
465
+ fertilizerProductId?: string | undefined;
466
+ }>, {
467
+ type: "fertilizer" | "weeding";
468
+ fieldId: string;
469
+ occurredAt: string;
470
+ source?: "manual" | "agent" | "whatsapp" | undefined;
471
+ method?: string | undefined;
472
+ notes?: string | undefined;
473
+ inventoryItemId?: string | undefined;
474
+ unit?: string | undefined;
475
+ quantity?: number | undefined;
476
+ productName?: string | undefined;
477
+ fertilizerProductId?: string | undefined;
478
+ }, {
479
+ type: "fertilizer" | "weeding";
480
+ fieldId: string;
481
+ occurredAt: string;
482
+ source?: "manual" | "agent" | "whatsapp" | undefined;
483
+ method?: string | undefined;
484
+ notes?: string | undefined;
485
+ inventoryItemId?: string | undefined;
486
+ unit?: string | undefined;
487
+ quantity?: number | undefined;
488
+ productName?: string | undefined;
489
+ fertilizerProductId?: string | undefined;
490
+ }>;
491
+ }, "strip", z.ZodTypeAny, {
492
+ type: "field-activities";
493
+ attributes: {
494
+ type: "fertilizer" | "weeding";
495
+ fieldId: string;
496
+ occurredAt: string;
497
+ source?: "manual" | "agent" | "whatsapp" | undefined;
498
+ method?: string | undefined;
499
+ notes?: string | undefined;
500
+ inventoryItemId?: string | undefined;
501
+ unit?: string | undefined;
502
+ quantity?: number | undefined;
503
+ productName?: string | undefined;
504
+ fertilizerProductId?: string | undefined;
505
+ };
506
+ }, {
507
+ type: "field-activities";
508
+ attributes: {
509
+ type: "fertilizer" | "weeding";
510
+ fieldId: string;
511
+ occurredAt: string;
512
+ source?: "manual" | "agent" | "whatsapp" | undefined;
513
+ method?: string | undefined;
514
+ notes?: string | undefined;
515
+ inventoryItemId?: string | undefined;
516
+ unit?: string | undefined;
517
+ quantity?: number | undefined;
518
+ productName?: string | undefined;
519
+ fertilizerProductId?: string | undefined;
520
+ };
521
+ }>;
522
+ }, "strip", z.ZodTypeAny, {
523
+ data: {
524
+ type: "field-activities";
525
+ attributes: {
526
+ type: "fertilizer" | "weeding";
527
+ fieldId: string;
528
+ occurredAt: string;
529
+ source?: "manual" | "agent" | "whatsapp" | undefined;
530
+ method?: string | undefined;
531
+ notes?: string | undefined;
532
+ inventoryItemId?: string | undefined;
533
+ unit?: string | undefined;
534
+ quantity?: number | undefined;
535
+ productName?: string | undefined;
536
+ fertilizerProductId?: string | undefined;
537
+ };
538
+ };
539
+ }, {
540
+ data: {
541
+ type: "field-activities";
542
+ attributes: {
543
+ type: "fertilizer" | "weeding";
544
+ fieldId: string;
545
+ occurredAt: string;
546
+ source?: "manual" | "agent" | "whatsapp" | undefined;
547
+ method?: string | undefined;
548
+ notes?: string | undefined;
549
+ inventoryItemId?: string | undefined;
550
+ unit?: string | undefined;
551
+ quantity?: number | undefined;
552
+ productName?: string | undefined;
553
+ fertilizerProductId?: string | undefined;
554
+ };
555
+ };
556
+ }>;
557
+ path: "/farms/:farmId/field-activities";
558
+ responses: {
559
+ 201: z.ZodObject<{
560
+ data: z.ZodObject<{
561
+ type: z.ZodLiteral<string>;
562
+ id: z.ZodString;
563
+ attributes: z.ZodObject<{
564
+ fieldId: z.ZodString;
565
+ fieldName: z.ZodOptional<z.ZodString>;
566
+ type: z.ZodEnum<["weeding", "fertilizer"]>;
567
+ occurredAt: z.ZodString;
568
+ method: z.ZodNullable<z.ZodString>;
569
+ productName: z.ZodNullable<z.ZodString>;
570
+ fertilizerProductId: z.ZodNullable<z.ZodString>;
571
+ inventoryItemId: z.ZodNullable<z.ZodString>;
572
+ quantity: z.ZodNullable<z.ZodNumber>;
573
+ unit: z.ZodNullable<z.ZodString>;
574
+ notes: z.ZodNullable<z.ZodString>;
575
+ createdById: z.ZodNullable<z.ZodString>;
576
+ source: z.ZodEnum<["manual", "agent", "whatsapp"]>;
577
+ } & {
578
+ createdAt: z.ZodString;
579
+ updatedAt: z.ZodString;
580
+ }, "strip", z.ZodTypeAny, {
581
+ type: "fertilizer" | "weeding";
582
+ source: "manual" | "agent" | "whatsapp";
583
+ createdAt: string;
584
+ updatedAt: string;
585
+ method: string | null;
586
+ notes: string | null;
587
+ fieldId: string;
588
+ inventoryItemId: string | null;
589
+ unit: string | null;
590
+ quantity: number | null;
591
+ productName: string | null;
592
+ fertilizerProductId: string | null;
593
+ occurredAt: string;
594
+ createdById: string | null;
595
+ fieldName?: string | undefined;
596
+ }, {
597
+ type: "fertilizer" | "weeding";
598
+ source: "manual" | "agent" | "whatsapp";
599
+ createdAt: string;
600
+ updatedAt: string;
601
+ method: string | null;
602
+ notes: string | null;
603
+ fieldId: string;
604
+ inventoryItemId: string | null;
605
+ unit: string | null;
606
+ quantity: number | null;
607
+ productName: string | null;
608
+ fertilizerProductId: string | null;
609
+ occurredAt: string;
610
+ createdById: string | null;
611
+ fieldName?: string | undefined;
612
+ }>;
613
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
614
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
615
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
616
+ }, "strip", z.ZodTypeAny, {
617
+ type: string;
618
+ id: string;
619
+ attributes: {
620
+ type: "fertilizer" | "weeding";
621
+ source: "manual" | "agent" | "whatsapp";
622
+ createdAt: string;
623
+ updatedAt: string;
624
+ method: string | null;
625
+ notes: string | null;
626
+ fieldId: string;
627
+ inventoryItemId: string | null;
628
+ unit: string | null;
629
+ quantity: number | null;
630
+ productName: string | null;
631
+ fertilizerProductId: string | null;
632
+ occurredAt: string;
633
+ createdById: string | null;
634
+ fieldName?: string | undefined;
635
+ };
636
+ relationships?: Record<string, unknown> | undefined;
637
+ links?: Record<string, string> | undefined;
638
+ meta?: Record<string, unknown> | undefined;
639
+ }, {
640
+ type: string;
641
+ id: string;
642
+ attributes: {
643
+ type: "fertilizer" | "weeding";
644
+ source: "manual" | "agent" | "whatsapp";
645
+ createdAt: string;
646
+ updatedAt: string;
647
+ method: string | null;
648
+ notes: string | null;
649
+ fieldId: string;
650
+ inventoryItemId: string | null;
651
+ unit: string | null;
652
+ quantity: number | null;
653
+ productName: string | null;
654
+ fertilizerProductId: string | null;
655
+ occurredAt: string;
656
+ createdById: string | null;
657
+ fieldName?: string | undefined;
658
+ };
659
+ relationships?: Record<string, unknown> | undefined;
660
+ links?: Record<string, string> | undefined;
661
+ meta?: Record<string, unknown> | undefined;
662
+ }>;
663
+ included: z.ZodOptional<z.ZodArray<z.ZodObject<{
664
+ type: z.ZodString;
665
+ id: z.ZodString;
666
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
667
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
668
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
669
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
670
+ }, "strip", z.ZodTypeAny, {
671
+ type: string;
672
+ id: string;
673
+ attributes?: Record<string, unknown> | undefined;
674
+ relationships?: Record<string, unknown> | undefined;
675
+ links?: Record<string, string> | undefined;
676
+ meta?: Record<string, unknown> | undefined;
677
+ }, {
678
+ type: string;
679
+ id: string;
680
+ attributes?: Record<string, unknown> | undefined;
681
+ relationships?: Record<string, unknown> | undefined;
682
+ links?: Record<string, string> | undefined;
683
+ meta?: Record<string, unknown> | undefined;
684
+ }>, "many">>;
685
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
686
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
687
+ }, "strip", z.ZodTypeAny, {
688
+ data: {
689
+ type: string;
690
+ id: string;
691
+ attributes: {
692
+ type: "fertilizer" | "weeding";
693
+ source: "manual" | "agent" | "whatsapp";
694
+ createdAt: string;
695
+ updatedAt: string;
696
+ method: string | null;
697
+ notes: string | null;
698
+ fieldId: string;
699
+ inventoryItemId: string | null;
700
+ unit: string | null;
701
+ quantity: number | null;
702
+ productName: string | null;
703
+ fertilizerProductId: string | null;
704
+ occurredAt: string;
705
+ createdById: string | null;
706
+ fieldName?: string | undefined;
707
+ };
708
+ relationships?: Record<string, unknown> | undefined;
709
+ links?: Record<string, string> | undefined;
710
+ meta?: Record<string, unknown> | undefined;
711
+ };
712
+ links?: Record<string, string> | undefined;
713
+ meta?: Record<string, unknown> | undefined;
714
+ included?: {
715
+ type: string;
716
+ id: string;
717
+ attributes?: Record<string, unknown> | undefined;
718
+ relationships?: Record<string, unknown> | undefined;
719
+ links?: Record<string, string> | undefined;
720
+ meta?: Record<string, unknown> | undefined;
721
+ }[] | undefined;
722
+ }, {
723
+ data: {
724
+ type: string;
725
+ id: string;
726
+ attributes: {
727
+ type: "fertilizer" | "weeding";
728
+ source: "manual" | "agent" | "whatsapp";
729
+ createdAt: string;
730
+ updatedAt: string;
731
+ method: string | null;
732
+ notes: string | null;
733
+ fieldId: string;
734
+ inventoryItemId: string | null;
735
+ unit: string | null;
736
+ quantity: number | null;
737
+ productName: string | null;
738
+ fertilizerProductId: string | null;
739
+ occurredAt: string;
740
+ createdById: string | null;
741
+ fieldName?: string | undefined;
742
+ };
743
+ relationships?: Record<string, unknown> | undefined;
744
+ links?: Record<string, string> | undefined;
745
+ meta?: Record<string, unknown> | undefined;
746
+ };
747
+ links?: Record<string, string> | undefined;
748
+ meta?: Record<string, unknown> | undefined;
749
+ included?: {
750
+ type: string;
751
+ id: string;
752
+ attributes?: Record<string, unknown> | undefined;
753
+ relationships?: Record<string, unknown> | undefined;
754
+ links?: Record<string, string> | undefined;
755
+ meta?: Record<string, unknown> | undefined;
756
+ }[] | undefined;
757
+ }>;
758
+ 400: z.ZodObject<{
759
+ errors: z.ZodArray<z.ZodObject<{
760
+ id: z.ZodOptional<z.ZodString>;
761
+ links: z.ZodOptional<z.ZodObject<{
762
+ about: z.ZodOptional<z.ZodString>;
763
+ }, "strip", z.ZodTypeAny, {
764
+ about?: string | undefined;
765
+ }, {
766
+ about?: string | undefined;
767
+ }>>;
768
+ status: z.ZodOptional<z.ZodString>;
769
+ code: z.ZodOptional<z.ZodString>;
770
+ title: z.ZodOptional<z.ZodString>;
771
+ detail: z.ZodOptional<z.ZodString>;
772
+ source: z.ZodOptional<z.ZodObject<{
773
+ pointer: z.ZodOptional<z.ZodString>;
774
+ parameter: z.ZodOptional<z.ZodString>;
775
+ }, "strip", z.ZodTypeAny, {
776
+ pointer?: string | undefined;
777
+ parameter?: string | undefined;
778
+ }, {
779
+ pointer?: string | undefined;
780
+ parameter?: string | undefined;
781
+ }>>;
782
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
783
+ }, "strip", z.ZodTypeAny, {
784
+ status?: string | undefined;
785
+ code?: string | undefined;
786
+ id?: string | undefined;
787
+ links?: {
788
+ about?: string | undefined;
789
+ } | undefined;
790
+ meta?: Record<string, unknown> | undefined;
791
+ title?: string | undefined;
792
+ detail?: string | undefined;
793
+ source?: {
794
+ pointer?: string | undefined;
795
+ parameter?: string | undefined;
796
+ } | undefined;
797
+ }, {
798
+ status?: string | undefined;
799
+ code?: string | undefined;
800
+ id?: string | undefined;
801
+ links?: {
802
+ about?: string | undefined;
803
+ } | undefined;
804
+ meta?: Record<string, unknown> | undefined;
805
+ title?: string | undefined;
806
+ detail?: string | undefined;
807
+ source?: {
808
+ pointer?: string | undefined;
809
+ parameter?: string | undefined;
810
+ } | undefined;
811
+ }>, "many">;
812
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
813
+ }, "strip", z.ZodTypeAny, {
814
+ errors: {
815
+ status?: string | undefined;
816
+ code?: string | undefined;
817
+ id?: string | undefined;
818
+ links?: {
819
+ about?: string | undefined;
820
+ } | undefined;
821
+ meta?: Record<string, unknown> | undefined;
822
+ title?: string | undefined;
823
+ detail?: string | undefined;
824
+ source?: {
825
+ pointer?: string | undefined;
826
+ parameter?: string | undefined;
827
+ } | undefined;
828
+ }[];
829
+ meta?: Record<string, unknown> | undefined;
830
+ }, {
831
+ errors: {
832
+ status?: string | undefined;
833
+ code?: string | undefined;
834
+ id?: string | undefined;
835
+ links?: {
836
+ about?: string | undefined;
837
+ } | undefined;
838
+ meta?: Record<string, unknown> | undefined;
839
+ title?: string | undefined;
840
+ detail?: string | undefined;
841
+ source?: {
842
+ pointer?: string | undefined;
843
+ parameter?: string | undefined;
844
+ } | undefined;
845
+ }[];
846
+ meta?: Record<string, unknown> | undefined;
847
+ }>;
848
+ 404: z.ZodObject<{
849
+ errors: z.ZodArray<z.ZodObject<{
850
+ id: z.ZodOptional<z.ZodString>;
851
+ links: z.ZodOptional<z.ZodObject<{
852
+ about: z.ZodOptional<z.ZodString>;
853
+ }, "strip", z.ZodTypeAny, {
854
+ about?: string | undefined;
855
+ }, {
856
+ about?: string | undefined;
857
+ }>>;
858
+ status: z.ZodOptional<z.ZodString>;
859
+ code: z.ZodOptional<z.ZodString>;
860
+ title: z.ZodOptional<z.ZodString>;
861
+ detail: z.ZodOptional<z.ZodString>;
862
+ source: z.ZodOptional<z.ZodObject<{
863
+ pointer: z.ZodOptional<z.ZodString>;
864
+ parameter: z.ZodOptional<z.ZodString>;
865
+ }, "strip", z.ZodTypeAny, {
866
+ pointer?: string | undefined;
867
+ parameter?: string | undefined;
868
+ }, {
869
+ pointer?: string | undefined;
870
+ parameter?: string | undefined;
871
+ }>>;
872
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
873
+ }, "strip", z.ZodTypeAny, {
874
+ status?: string | undefined;
875
+ code?: string | undefined;
876
+ id?: string | undefined;
877
+ links?: {
878
+ about?: string | undefined;
879
+ } | undefined;
880
+ meta?: Record<string, unknown> | undefined;
881
+ title?: string | undefined;
882
+ detail?: string | undefined;
883
+ source?: {
884
+ pointer?: string | undefined;
885
+ parameter?: string | undefined;
886
+ } | undefined;
887
+ }, {
888
+ status?: string | undefined;
889
+ code?: string | undefined;
890
+ id?: string | undefined;
891
+ links?: {
892
+ about?: string | undefined;
893
+ } | undefined;
894
+ meta?: Record<string, unknown> | undefined;
895
+ title?: string | undefined;
896
+ detail?: string | undefined;
897
+ source?: {
898
+ pointer?: string | undefined;
899
+ parameter?: string | undefined;
900
+ } | undefined;
901
+ }>, "many">;
902
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
903
+ }, "strip", z.ZodTypeAny, {
904
+ errors: {
905
+ status?: string | undefined;
906
+ code?: string | undefined;
907
+ id?: string | undefined;
908
+ links?: {
909
+ about?: string | undefined;
910
+ } | undefined;
911
+ meta?: Record<string, unknown> | undefined;
912
+ title?: string | undefined;
913
+ detail?: string | undefined;
914
+ source?: {
915
+ pointer?: string | undefined;
916
+ parameter?: string | undefined;
917
+ } | undefined;
918
+ }[];
919
+ meta?: Record<string, unknown> | undefined;
920
+ }, {
921
+ errors: {
922
+ status?: string | undefined;
923
+ code?: string | undefined;
924
+ id?: string | undefined;
925
+ links?: {
926
+ about?: string | undefined;
927
+ } | undefined;
928
+ meta?: Record<string, unknown> | undefined;
929
+ title?: string | undefined;
930
+ detail?: string | undefined;
931
+ source?: {
932
+ pointer?: string | undefined;
933
+ parameter?: string | undefined;
934
+ } | undefined;
935
+ }[];
936
+ meta?: Record<string, unknown> | undefined;
937
+ }>;
938
+ 401: z.ZodObject<{
939
+ errors: z.ZodArray<z.ZodObject<{
940
+ id: z.ZodOptional<z.ZodString>;
941
+ links: z.ZodOptional<z.ZodObject<{
942
+ about: z.ZodOptional<z.ZodString>;
943
+ }, "strip", z.ZodTypeAny, {
944
+ about?: string | undefined;
945
+ }, {
946
+ about?: string | undefined;
947
+ }>>;
948
+ status: z.ZodOptional<z.ZodString>;
949
+ code: z.ZodOptional<z.ZodString>;
950
+ title: z.ZodOptional<z.ZodString>;
951
+ detail: z.ZodOptional<z.ZodString>;
952
+ source: z.ZodOptional<z.ZodObject<{
953
+ pointer: z.ZodOptional<z.ZodString>;
954
+ parameter: z.ZodOptional<z.ZodString>;
955
+ }, "strip", z.ZodTypeAny, {
956
+ pointer?: string | undefined;
957
+ parameter?: string | undefined;
958
+ }, {
959
+ pointer?: string | undefined;
960
+ parameter?: string | undefined;
961
+ }>>;
962
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
963
+ }, "strip", z.ZodTypeAny, {
964
+ status?: string | undefined;
965
+ code?: string | undefined;
966
+ id?: string | undefined;
967
+ links?: {
968
+ about?: string | undefined;
969
+ } | undefined;
970
+ meta?: Record<string, unknown> | undefined;
971
+ title?: string | undefined;
972
+ detail?: string | undefined;
973
+ source?: {
974
+ pointer?: string | undefined;
975
+ parameter?: string | undefined;
976
+ } | undefined;
977
+ }, {
978
+ status?: string | undefined;
979
+ code?: string | undefined;
980
+ id?: string | undefined;
981
+ links?: {
982
+ about?: string | undefined;
983
+ } | undefined;
984
+ meta?: Record<string, unknown> | undefined;
985
+ title?: string | undefined;
986
+ detail?: string | undefined;
987
+ source?: {
988
+ pointer?: string | undefined;
989
+ parameter?: string | undefined;
990
+ } | undefined;
991
+ }>, "many">;
992
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
993
+ }, "strip", z.ZodTypeAny, {
994
+ errors: {
995
+ status?: string | undefined;
996
+ code?: string | undefined;
997
+ id?: string | undefined;
998
+ links?: {
999
+ about?: string | undefined;
1000
+ } | undefined;
1001
+ meta?: Record<string, unknown> | undefined;
1002
+ title?: string | undefined;
1003
+ detail?: string | undefined;
1004
+ source?: {
1005
+ pointer?: string | undefined;
1006
+ parameter?: string | undefined;
1007
+ } | undefined;
1008
+ }[];
1009
+ meta?: Record<string, unknown> | undefined;
1010
+ }, {
1011
+ errors: {
1012
+ status?: string | undefined;
1013
+ code?: string | undefined;
1014
+ id?: string | undefined;
1015
+ links?: {
1016
+ about?: string | undefined;
1017
+ } | undefined;
1018
+ meta?: Record<string, unknown> | undefined;
1019
+ title?: string | undefined;
1020
+ detail?: string | undefined;
1021
+ source?: {
1022
+ pointer?: string | undefined;
1023
+ parameter?: string | undefined;
1024
+ } | undefined;
1025
+ }[];
1026
+ meta?: Record<string, unknown> | undefined;
1027
+ }>;
1028
+ 422: z.ZodObject<{
1029
+ errors: z.ZodArray<z.ZodObject<{
1030
+ id: z.ZodOptional<z.ZodString>;
1031
+ links: z.ZodOptional<z.ZodObject<{
1032
+ about: z.ZodOptional<z.ZodString>;
1033
+ }, "strip", z.ZodTypeAny, {
1034
+ about?: string | undefined;
1035
+ }, {
1036
+ about?: string | undefined;
1037
+ }>>;
1038
+ status: z.ZodOptional<z.ZodString>;
1039
+ code: z.ZodOptional<z.ZodString>;
1040
+ title: z.ZodOptional<z.ZodString>;
1041
+ detail: z.ZodOptional<z.ZodString>;
1042
+ source: z.ZodOptional<z.ZodObject<{
1043
+ pointer: z.ZodOptional<z.ZodString>;
1044
+ parameter: z.ZodOptional<z.ZodString>;
1045
+ }, "strip", z.ZodTypeAny, {
1046
+ pointer?: string | undefined;
1047
+ parameter?: string | undefined;
1048
+ }, {
1049
+ pointer?: string | undefined;
1050
+ parameter?: string | undefined;
1051
+ }>>;
1052
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1053
+ }, "strip", z.ZodTypeAny, {
1054
+ status?: string | undefined;
1055
+ code?: string | undefined;
1056
+ id?: string | undefined;
1057
+ links?: {
1058
+ about?: string | undefined;
1059
+ } | undefined;
1060
+ meta?: Record<string, unknown> | undefined;
1061
+ title?: string | undefined;
1062
+ detail?: string | undefined;
1063
+ source?: {
1064
+ pointer?: string | undefined;
1065
+ parameter?: string | undefined;
1066
+ } | undefined;
1067
+ }, {
1068
+ status?: string | undefined;
1069
+ code?: string | undefined;
1070
+ id?: string | undefined;
1071
+ links?: {
1072
+ about?: string | undefined;
1073
+ } | undefined;
1074
+ meta?: Record<string, unknown> | undefined;
1075
+ title?: string | undefined;
1076
+ detail?: string | undefined;
1077
+ source?: {
1078
+ pointer?: string | undefined;
1079
+ parameter?: string | undefined;
1080
+ } | undefined;
1081
+ }>, "many">;
1082
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1083
+ }, "strip", z.ZodTypeAny, {
1084
+ errors: {
1085
+ status?: string | undefined;
1086
+ code?: string | undefined;
1087
+ id?: string | undefined;
1088
+ links?: {
1089
+ about?: string | undefined;
1090
+ } | undefined;
1091
+ meta?: Record<string, unknown> | undefined;
1092
+ title?: string | undefined;
1093
+ detail?: string | undefined;
1094
+ source?: {
1095
+ pointer?: string | undefined;
1096
+ parameter?: string | undefined;
1097
+ } | undefined;
1098
+ }[];
1099
+ meta?: Record<string, unknown> | undefined;
1100
+ }, {
1101
+ errors: {
1102
+ status?: string | undefined;
1103
+ code?: string | undefined;
1104
+ id?: string | undefined;
1105
+ links?: {
1106
+ about?: string | undefined;
1107
+ } | undefined;
1108
+ meta?: Record<string, unknown> | undefined;
1109
+ title?: string | undefined;
1110
+ detail?: string | undefined;
1111
+ source?: {
1112
+ pointer?: string | undefined;
1113
+ parameter?: string | undefined;
1114
+ } | undefined;
1115
+ }[];
1116
+ meta?: Record<string, unknown> | undefined;
1117
+ }>;
1118
+ };
1119
+ };
1120
+ getFieldActivity: {
1121
+ pathParams: z.ZodObject<{
1122
+ farmId: z.ZodString;
1123
+ id: z.ZodString;
1124
+ }, "strip", z.ZodTypeAny, {
1125
+ id: string;
1126
+ farmId: string;
1127
+ }, {
1128
+ id: string;
1129
+ farmId: string;
1130
+ }>;
1131
+ summary: "Get field activity";
1132
+ method: "GET";
1133
+ path: "/farms/:farmId/field-activities/:id";
1134
+ responses: {
1135
+ 200: z.ZodObject<{
1136
+ data: z.ZodObject<{
1137
+ type: z.ZodLiteral<string>;
1138
+ id: z.ZodString;
1139
+ attributes: z.ZodObject<{
1140
+ fieldId: z.ZodString;
1141
+ fieldName: z.ZodOptional<z.ZodString>;
1142
+ type: z.ZodEnum<["weeding", "fertilizer"]>;
1143
+ occurredAt: z.ZodString;
1144
+ method: z.ZodNullable<z.ZodString>;
1145
+ productName: z.ZodNullable<z.ZodString>;
1146
+ fertilizerProductId: z.ZodNullable<z.ZodString>;
1147
+ inventoryItemId: z.ZodNullable<z.ZodString>;
1148
+ quantity: z.ZodNullable<z.ZodNumber>;
1149
+ unit: z.ZodNullable<z.ZodString>;
1150
+ notes: z.ZodNullable<z.ZodString>;
1151
+ createdById: z.ZodNullable<z.ZodString>;
1152
+ source: z.ZodEnum<["manual", "agent", "whatsapp"]>;
1153
+ } & {
1154
+ createdAt: z.ZodString;
1155
+ updatedAt: z.ZodString;
1156
+ }, "strip", z.ZodTypeAny, {
1157
+ type: "fertilizer" | "weeding";
1158
+ source: "manual" | "agent" | "whatsapp";
1159
+ createdAt: string;
1160
+ updatedAt: string;
1161
+ method: string | null;
1162
+ notes: string | null;
1163
+ fieldId: string;
1164
+ inventoryItemId: string | null;
1165
+ unit: string | null;
1166
+ quantity: number | null;
1167
+ productName: string | null;
1168
+ fertilizerProductId: string | null;
1169
+ occurredAt: string;
1170
+ createdById: string | null;
1171
+ fieldName?: string | undefined;
1172
+ }, {
1173
+ type: "fertilizer" | "weeding";
1174
+ source: "manual" | "agent" | "whatsapp";
1175
+ createdAt: string;
1176
+ updatedAt: string;
1177
+ method: string | null;
1178
+ notes: string | null;
1179
+ fieldId: string;
1180
+ inventoryItemId: string | null;
1181
+ unit: string | null;
1182
+ quantity: number | null;
1183
+ productName: string | null;
1184
+ fertilizerProductId: string | null;
1185
+ occurredAt: string;
1186
+ createdById: string | null;
1187
+ fieldName?: string | undefined;
1188
+ }>;
1189
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1190
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1191
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1192
+ }, "strip", z.ZodTypeAny, {
1193
+ type: string;
1194
+ id: string;
1195
+ attributes: {
1196
+ type: "fertilizer" | "weeding";
1197
+ source: "manual" | "agent" | "whatsapp";
1198
+ createdAt: string;
1199
+ updatedAt: string;
1200
+ method: string | null;
1201
+ notes: string | null;
1202
+ fieldId: string;
1203
+ inventoryItemId: string | null;
1204
+ unit: string | null;
1205
+ quantity: number | null;
1206
+ productName: string | null;
1207
+ fertilizerProductId: string | null;
1208
+ occurredAt: string;
1209
+ createdById: string | null;
1210
+ fieldName?: string | undefined;
1211
+ };
1212
+ relationships?: Record<string, unknown> | undefined;
1213
+ links?: Record<string, string> | undefined;
1214
+ meta?: Record<string, unknown> | undefined;
1215
+ }, {
1216
+ type: string;
1217
+ id: string;
1218
+ attributes: {
1219
+ type: "fertilizer" | "weeding";
1220
+ source: "manual" | "agent" | "whatsapp";
1221
+ createdAt: string;
1222
+ updatedAt: string;
1223
+ method: string | null;
1224
+ notes: string | null;
1225
+ fieldId: string;
1226
+ inventoryItemId: string | null;
1227
+ unit: string | null;
1228
+ quantity: number | null;
1229
+ productName: string | null;
1230
+ fertilizerProductId: string | null;
1231
+ occurredAt: string;
1232
+ createdById: string | null;
1233
+ fieldName?: string | undefined;
1234
+ };
1235
+ relationships?: Record<string, unknown> | undefined;
1236
+ links?: Record<string, string> | undefined;
1237
+ meta?: Record<string, unknown> | undefined;
1238
+ }>;
1239
+ included: z.ZodOptional<z.ZodArray<z.ZodObject<{
1240
+ type: z.ZodString;
1241
+ id: z.ZodString;
1242
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1243
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1244
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1245
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1246
+ }, "strip", z.ZodTypeAny, {
1247
+ type: string;
1248
+ id: string;
1249
+ attributes?: Record<string, unknown> | undefined;
1250
+ relationships?: Record<string, unknown> | undefined;
1251
+ links?: Record<string, string> | undefined;
1252
+ meta?: Record<string, unknown> | undefined;
1253
+ }, {
1254
+ type: string;
1255
+ id: string;
1256
+ attributes?: Record<string, unknown> | undefined;
1257
+ relationships?: Record<string, unknown> | undefined;
1258
+ links?: Record<string, string> | undefined;
1259
+ meta?: Record<string, unknown> | undefined;
1260
+ }>, "many">>;
1261
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1262
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1263
+ }, "strip", z.ZodTypeAny, {
1264
+ data: {
1265
+ type: string;
1266
+ id: string;
1267
+ attributes: {
1268
+ type: "fertilizer" | "weeding";
1269
+ source: "manual" | "agent" | "whatsapp";
1270
+ createdAt: string;
1271
+ updatedAt: string;
1272
+ method: string | null;
1273
+ notes: string | null;
1274
+ fieldId: string;
1275
+ inventoryItemId: string | null;
1276
+ unit: string | null;
1277
+ quantity: number | null;
1278
+ productName: string | null;
1279
+ fertilizerProductId: string | null;
1280
+ occurredAt: string;
1281
+ createdById: string | null;
1282
+ fieldName?: string | undefined;
1283
+ };
1284
+ relationships?: Record<string, unknown> | undefined;
1285
+ links?: Record<string, string> | undefined;
1286
+ meta?: Record<string, unknown> | undefined;
1287
+ };
1288
+ links?: Record<string, string> | undefined;
1289
+ meta?: Record<string, unknown> | undefined;
1290
+ included?: {
1291
+ type: string;
1292
+ id: string;
1293
+ attributes?: Record<string, unknown> | undefined;
1294
+ relationships?: Record<string, unknown> | undefined;
1295
+ links?: Record<string, string> | undefined;
1296
+ meta?: Record<string, unknown> | undefined;
1297
+ }[] | undefined;
1298
+ }, {
1299
+ data: {
1300
+ type: string;
1301
+ id: string;
1302
+ attributes: {
1303
+ type: "fertilizer" | "weeding";
1304
+ source: "manual" | "agent" | "whatsapp";
1305
+ createdAt: string;
1306
+ updatedAt: string;
1307
+ method: string | null;
1308
+ notes: string | null;
1309
+ fieldId: string;
1310
+ inventoryItemId: string | null;
1311
+ unit: string | null;
1312
+ quantity: number | null;
1313
+ productName: string | null;
1314
+ fertilizerProductId: string | null;
1315
+ occurredAt: string;
1316
+ createdById: string | null;
1317
+ fieldName?: string | undefined;
1318
+ };
1319
+ relationships?: Record<string, unknown> | undefined;
1320
+ links?: Record<string, string> | undefined;
1321
+ meta?: Record<string, unknown> | undefined;
1322
+ };
1323
+ links?: Record<string, string> | undefined;
1324
+ meta?: Record<string, unknown> | undefined;
1325
+ included?: {
1326
+ type: string;
1327
+ id: string;
1328
+ attributes?: Record<string, unknown> | undefined;
1329
+ relationships?: Record<string, unknown> | undefined;
1330
+ links?: Record<string, string> | undefined;
1331
+ meta?: Record<string, unknown> | undefined;
1332
+ }[] | undefined;
1333
+ }>;
1334
+ 404: z.ZodObject<{
1335
+ errors: z.ZodArray<z.ZodObject<{
1336
+ id: z.ZodOptional<z.ZodString>;
1337
+ links: z.ZodOptional<z.ZodObject<{
1338
+ about: z.ZodOptional<z.ZodString>;
1339
+ }, "strip", z.ZodTypeAny, {
1340
+ about?: string | undefined;
1341
+ }, {
1342
+ about?: string | undefined;
1343
+ }>>;
1344
+ status: z.ZodOptional<z.ZodString>;
1345
+ code: z.ZodOptional<z.ZodString>;
1346
+ title: z.ZodOptional<z.ZodString>;
1347
+ detail: z.ZodOptional<z.ZodString>;
1348
+ source: z.ZodOptional<z.ZodObject<{
1349
+ pointer: z.ZodOptional<z.ZodString>;
1350
+ parameter: z.ZodOptional<z.ZodString>;
1351
+ }, "strip", z.ZodTypeAny, {
1352
+ pointer?: string | undefined;
1353
+ parameter?: string | undefined;
1354
+ }, {
1355
+ pointer?: string | undefined;
1356
+ parameter?: string | undefined;
1357
+ }>>;
1358
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1359
+ }, "strip", z.ZodTypeAny, {
1360
+ status?: string | undefined;
1361
+ code?: string | undefined;
1362
+ id?: string | undefined;
1363
+ links?: {
1364
+ about?: string | undefined;
1365
+ } | undefined;
1366
+ meta?: Record<string, unknown> | undefined;
1367
+ title?: string | undefined;
1368
+ detail?: string | undefined;
1369
+ source?: {
1370
+ pointer?: string | undefined;
1371
+ parameter?: string | undefined;
1372
+ } | undefined;
1373
+ }, {
1374
+ status?: string | undefined;
1375
+ code?: string | undefined;
1376
+ id?: string | undefined;
1377
+ links?: {
1378
+ about?: string | undefined;
1379
+ } | undefined;
1380
+ meta?: Record<string, unknown> | undefined;
1381
+ title?: string | undefined;
1382
+ detail?: string | undefined;
1383
+ source?: {
1384
+ pointer?: string | undefined;
1385
+ parameter?: string | undefined;
1386
+ } | undefined;
1387
+ }>, "many">;
1388
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1389
+ }, "strip", z.ZodTypeAny, {
1390
+ errors: {
1391
+ status?: string | undefined;
1392
+ code?: string | undefined;
1393
+ id?: string | undefined;
1394
+ links?: {
1395
+ about?: string | undefined;
1396
+ } | undefined;
1397
+ meta?: Record<string, unknown> | undefined;
1398
+ title?: string | undefined;
1399
+ detail?: string | undefined;
1400
+ source?: {
1401
+ pointer?: string | undefined;
1402
+ parameter?: string | undefined;
1403
+ } | undefined;
1404
+ }[];
1405
+ meta?: Record<string, unknown> | undefined;
1406
+ }, {
1407
+ errors: {
1408
+ status?: string | undefined;
1409
+ code?: string | undefined;
1410
+ id?: string | undefined;
1411
+ links?: {
1412
+ about?: string | undefined;
1413
+ } | undefined;
1414
+ meta?: Record<string, unknown> | undefined;
1415
+ title?: string | undefined;
1416
+ detail?: string | undefined;
1417
+ source?: {
1418
+ pointer?: string | undefined;
1419
+ parameter?: string | undefined;
1420
+ } | undefined;
1421
+ }[];
1422
+ meta?: Record<string, unknown> | undefined;
1423
+ }>;
1424
+ 401: z.ZodObject<{
1425
+ errors: z.ZodArray<z.ZodObject<{
1426
+ id: z.ZodOptional<z.ZodString>;
1427
+ links: z.ZodOptional<z.ZodObject<{
1428
+ about: z.ZodOptional<z.ZodString>;
1429
+ }, "strip", z.ZodTypeAny, {
1430
+ about?: string | undefined;
1431
+ }, {
1432
+ about?: string | undefined;
1433
+ }>>;
1434
+ status: z.ZodOptional<z.ZodString>;
1435
+ code: z.ZodOptional<z.ZodString>;
1436
+ title: z.ZodOptional<z.ZodString>;
1437
+ detail: z.ZodOptional<z.ZodString>;
1438
+ source: z.ZodOptional<z.ZodObject<{
1439
+ pointer: z.ZodOptional<z.ZodString>;
1440
+ parameter: z.ZodOptional<z.ZodString>;
1441
+ }, "strip", z.ZodTypeAny, {
1442
+ pointer?: string | undefined;
1443
+ parameter?: string | undefined;
1444
+ }, {
1445
+ pointer?: string | undefined;
1446
+ parameter?: string | undefined;
1447
+ }>>;
1448
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1449
+ }, "strip", z.ZodTypeAny, {
1450
+ status?: string | undefined;
1451
+ code?: string | undefined;
1452
+ id?: string | undefined;
1453
+ links?: {
1454
+ about?: string | undefined;
1455
+ } | undefined;
1456
+ meta?: Record<string, unknown> | undefined;
1457
+ title?: string | undefined;
1458
+ detail?: string | undefined;
1459
+ source?: {
1460
+ pointer?: string | undefined;
1461
+ parameter?: string | undefined;
1462
+ } | undefined;
1463
+ }, {
1464
+ status?: string | undefined;
1465
+ code?: string | undefined;
1466
+ id?: string | undefined;
1467
+ links?: {
1468
+ about?: string | undefined;
1469
+ } | undefined;
1470
+ meta?: Record<string, unknown> | undefined;
1471
+ title?: string | undefined;
1472
+ detail?: string | undefined;
1473
+ source?: {
1474
+ pointer?: string | undefined;
1475
+ parameter?: string | undefined;
1476
+ } | undefined;
1477
+ }>, "many">;
1478
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1479
+ }, "strip", z.ZodTypeAny, {
1480
+ errors: {
1481
+ status?: string | undefined;
1482
+ code?: string | undefined;
1483
+ id?: string | undefined;
1484
+ links?: {
1485
+ about?: string | undefined;
1486
+ } | undefined;
1487
+ meta?: Record<string, unknown> | undefined;
1488
+ title?: string | undefined;
1489
+ detail?: string | undefined;
1490
+ source?: {
1491
+ pointer?: string | undefined;
1492
+ parameter?: string | undefined;
1493
+ } | undefined;
1494
+ }[];
1495
+ meta?: Record<string, unknown> | undefined;
1496
+ }, {
1497
+ errors: {
1498
+ status?: string | undefined;
1499
+ code?: string | undefined;
1500
+ id?: string | undefined;
1501
+ links?: {
1502
+ about?: string | undefined;
1503
+ } | undefined;
1504
+ meta?: Record<string, unknown> | undefined;
1505
+ title?: string | undefined;
1506
+ detail?: string | undefined;
1507
+ source?: {
1508
+ pointer?: string | undefined;
1509
+ parameter?: string | undefined;
1510
+ } | undefined;
1511
+ }[];
1512
+ meta?: Record<string, unknown> | undefined;
1513
+ }>;
1514
+ };
1515
+ };
1516
+ updateFieldActivity: {
1517
+ pathParams: z.ZodObject<{
1518
+ farmId: z.ZodString;
1519
+ id: z.ZodString;
1520
+ }, "strip", z.ZodTypeAny, {
1521
+ id: string;
1522
+ farmId: string;
1523
+ }, {
1524
+ id: string;
1525
+ farmId: string;
1526
+ }>;
1527
+ summary: "Update field activity";
1528
+ method: "PATCH";
1529
+ body: z.ZodObject<{
1530
+ data: z.ZodObject<{
1531
+ type: z.ZodLiteral<"field-activities">;
1532
+ id: z.ZodString;
1533
+ attributes: z.ZodObject<{
1534
+ occurredAt: z.ZodOptional<z.ZodString>;
1535
+ method: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1536
+ productName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1537
+ fertilizerProductId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1538
+ inventoryItemId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1539
+ quantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1540
+ unit: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1541
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1542
+ }, "strip", z.ZodTypeAny, {
1543
+ method?: string | null | undefined;
1544
+ notes?: string | null | undefined;
1545
+ inventoryItemId?: string | null | undefined;
1546
+ unit?: string | null | undefined;
1547
+ quantity?: number | null | undefined;
1548
+ productName?: string | null | undefined;
1549
+ fertilizerProductId?: string | null | undefined;
1550
+ occurredAt?: string | undefined;
1551
+ }, {
1552
+ method?: string | null | undefined;
1553
+ notes?: string | null | undefined;
1554
+ inventoryItemId?: string | null | undefined;
1555
+ unit?: string | null | undefined;
1556
+ quantity?: number | null | undefined;
1557
+ productName?: string | null | undefined;
1558
+ fertilizerProductId?: string | null | undefined;
1559
+ occurredAt?: string | undefined;
1560
+ }>;
1561
+ }, "strip", z.ZodTypeAny, {
1562
+ type: "field-activities";
1563
+ id: string;
1564
+ attributes: {
1565
+ method?: string | null | undefined;
1566
+ notes?: string | null | undefined;
1567
+ inventoryItemId?: string | null | undefined;
1568
+ unit?: string | null | undefined;
1569
+ quantity?: number | null | undefined;
1570
+ productName?: string | null | undefined;
1571
+ fertilizerProductId?: string | null | undefined;
1572
+ occurredAt?: string | undefined;
1573
+ };
1574
+ }, {
1575
+ type: "field-activities";
1576
+ id: string;
1577
+ attributes: {
1578
+ method?: string | null | undefined;
1579
+ notes?: string | null | undefined;
1580
+ inventoryItemId?: string | null | undefined;
1581
+ unit?: string | null | undefined;
1582
+ quantity?: number | null | undefined;
1583
+ productName?: string | null | undefined;
1584
+ fertilizerProductId?: string | null | undefined;
1585
+ occurredAt?: string | undefined;
1586
+ };
1587
+ }>;
1588
+ }, "strip", z.ZodTypeAny, {
1589
+ data: {
1590
+ type: "field-activities";
1591
+ id: string;
1592
+ attributes: {
1593
+ method?: string | null | undefined;
1594
+ notes?: string | null | undefined;
1595
+ inventoryItemId?: string | null | undefined;
1596
+ unit?: string | null | undefined;
1597
+ quantity?: number | null | undefined;
1598
+ productName?: string | null | undefined;
1599
+ fertilizerProductId?: string | null | undefined;
1600
+ occurredAt?: string | undefined;
1601
+ };
1602
+ };
1603
+ }, {
1604
+ data: {
1605
+ type: "field-activities";
1606
+ id: string;
1607
+ attributes: {
1608
+ method?: string | null | undefined;
1609
+ notes?: string | null | undefined;
1610
+ inventoryItemId?: string | null | undefined;
1611
+ unit?: string | null | undefined;
1612
+ quantity?: number | null | undefined;
1613
+ productName?: string | null | undefined;
1614
+ fertilizerProductId?: string | null | undefined;
1615
+ occurredAt?: string | undefined;
1616
+ };
1617
+ };
1618
+ }>;
1619
+ path: "/farms/:farmId/field-activities/:id";
1620
+ responses: {
1621
+ 200: z.ZodObject<{
1622
+ data: z.ZodObject<{
1623
+ type: z.ZodLiteral<string>;
1624
+ id: z.ZodString;
1625
+ attributes: z.ZodObject<{
1626
+ fieldId: z.ZodString;
1627
+ fieldName: z.ZodOptional<z.ZodString>;
1628
+ type: z.ZodEnum<["weeding", "fertilizer"]>;
1629
+ occurredAt: z.ZodString;
1630
+ method: z.ZodNullable<z.ZodString>;
1631
+ productName: z.ZodNullable<z.ZodString>;
1632
+ fertilizerProductId: z.ZodNullable<z.ZodString>;
1633
+ inventoryItemId: z.ZodNullable<z.ZodString>;
1634
+ quantity: z.ZodNullable<z.ZodNumber>;
1635
+ unit: z.ZodNullable<z.ZodString>;
1636
+ notes: z.ZodNullable<z.ZodString>;
1637
+ createdById: z.ZodNullable<z.ZodString>;
1638
+ source: z.ZodEnum<["manual", "agent", "whatsapp"]>;
1639
+ } & {
1640
+ createdAt: z.ZodString;
1641
+ updatedAt: z.ZodString;
1642
+ }, "strip", z.ZodTypeAny, {
1643
+ type: "fertilizer" | "weeding";
1644
+ source: "manual" | "agent" | "whatsapp";
1645
+ createdAt: string;
1646
+ updatedAt: string;
1647
+ method: string | null;
1648
+ notes: string | null;
1649
+ fieldId: string;
1650
+ inventoryItemId: string | null;
1651
+ unit: string | null;
1652
+ quantity: number | null;
1653
+ productName: string | null;
1654
+ fertilizerProductId: string | null;
1655
+ occurredAt: string;
1656
+ createdById: string | null;
1657
+ fieldName?: string | undefined;
1658
+ }, {
1659
+ type: "fertilizer" | "weeding";
1660
+ source: "manual" | "agent" | "whatsapp";
1661
+ createdAt: string;
1662
+ updatedAt: string;
1663
+ method: string | null;
1664
+ notes: string | null;
1665
+ fieldId: string;
1666
+ inventoryItemId: string | null;
1667
+ unit: string | null;
1668
+ quantity: number | null;
1669
+ productName: string | null;
1670
+ fertilizerProductId: string | null;
1671
+ occurredAt: string;
1672
+ createdById: string | null;
1673
+ fieldName?: string | undefined;
1674
+ }>;
1675
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1676
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1677
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1678
+ }, "strip", z.ZodTypeAny, {
1679
+ type: string;
1680
+ id: string;
1681
+ attributes: {
1682
+ type: "fertilizer" | "weeding";
1683
+ source: "manual" | "agent" | "whatsapp";
1684
+ createdAt: string;
1685
+ updatedAt: string;
1686
+ method: string | null;
1687
+ notes: string | null;
1688
+ fieldId: string;
1689
+ inventoryItemId: string | null;
1690
+ unit: string | null;
1691
+ quantity: number | null;
1692
+ productName: string | null;
1693
+ fertilizerProductId: string | null;
1694
+ occurredAt: string;
1695
+ createdById: string | null;
1696
+ fieldName?: string | undefined;
1697
+ };
1698
+ relationships?: Record<string, unknown> | undefined;
1699
+ links?: Record<string, string> | undefined;
1700
+ meta?: Record<string, unknown> | undefined;
1701
+ }, {
1702
+ type: string;
1703
+ id: string;
1704
+ attributes: {
1705
+ type: "fertilizer" | "weeding";
1706
+ source: "manual" | "agent" | "whatsapp";
1707
+ createdAt: string;
1708
+ updatedAt: string;
1709
+ method: string | null;
1710
+ notes: string | null;
1711
+ fieldId: string;
1712
+ inventoryItemId: string | null;
1713
+ unit: string | null;
1714
+ quantity: number | null;
1715
+ productName: string | null;
1716
+ fertilizerProductId: string | null;
1717
+ occurredAt: string;
1718
+ createdById: string | null;
1719
+ fieldName?: string | undefined;
1720
+ };
1721
+ relationships?: Record<string, unknown> | undefined;
1722
+ links?: Record<string, string> | undefined;
1723
+ meta?: Record<string, unknown> | undefined;
1724
+ }>;
1725
+ included: z.ZodOptional<z.ZodArray<z.ZodObject<{
1726
+ type: z.ZodString;
1727
+ id: z.ZodString;
1728
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1729
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1730
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1731
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1732
+ }, "strip", z.ZodTypeAny, {
1733
+ type: string;
1734
+ id: string;
1735
+ attributes?: Record<string, unknown> | undefined;
1736
+ relationships?: Record<string, unknown> | undefined;
1737
+ links?: Record<string, string> | undefined;
1738
+ meta?: Record<string, unknown> | undefined;
1739
+ }, {
1740
+ type: string;
1741
+ id: string;
1742
+ attributes?: Record<string, unknown> | undefined;
1743
+ relationships?: Record<string, unknown> | undefined;
1744
+ links?: Record<string, string> | undefined;
1745
+ meta?: Record<string, unknown> | undefined;
1746
+ }>, "many">>;
1747
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1748
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1749
+ }, "strip", z.ZodTypeAny, {
1750
+ data: {
1751
+ type: string;
1752
+ id: string;
1753
+ attributes: {
1754
+ type: "fertilizer" | "weeding";
1755
+ source: "manual" | "agent" | "whatsapp";
1756
+ createdAt: string;
1757
+ updatedAt: string;
1758
+ method: string | null;
1759
+ notes: string | null;
1760
+ fieldId: string;
1761
+ inventoryItemId: string | null;
1762
+ unit: string | null;
1763
+ quantity: number | null;
1764
+ productName: string | null;
1765
+ fertilizerProductId: string | null;
1766
+ occurredAt: string;
1767
+ createdById: string | null;
1768
+ fieldName?: string | undefined;
1769
+ };
1770
+ relationships?: Record<string, unknown> | undefined;
1771
+ links?: Record<string, string> | undefined;
1772
+ meta?: Record<string, unknown> | undefined;
1773
+ };
1774
+ links?: Record<string, string> | undefined;
1775
+ meta?: Record<string, unknown> | undefined;
1776
+ included?: {
1777
+ type: string;
1778
+ id: string;
1779
+ attributes?: Record<string, unknown> | undefined;
1780
+ relationships?: Record<string, unknown> | undefined;
1781
+ links?: Record<string, string> | undefined;
1782
+ meta?: Record<string, unknown> | undefined;
1783
+ }[] | undefined;
1784
+ }, {
1785
+ data: {
1786
+ type: string;
1787
+ id: string;
1788
+ attributes: {
1789
+ type: "fertilizer" | "weeding";
1790
+ source: "manual" | "agent" | "whatsapp";
1791
+ createdAt: string;
1792
+ updatedAt: string;
1793
+ method: string | null;
1794
+ notes: string | null;
1795
+ fieldId: string;
1796
+ inventoryItemId: string | null;
1797
+ unit: string | null;
1798
+ quantity: number | null;
1799
+ productName: string | null;
1800
+ fertilizerProductId: string | null;
1801
+ occurredAt: string;
1802
+ createdById: string | null;
1803
+ fieldName?: string | undefined;
1804
+ };
1805
+ relationships?: Record<string, unknown> | undefined;
1806
+ links?: Record<string, string> | undefined;
1807
+ meta?: Record<string, unknown> | undefined;
1808
+ };
1809
+ links?: Record<string, string> | undefined;
1810
+ meta?: Record<string, unknown> | undefined;
1811
+ included?: {
1812
+ type: string;
1813
+ id: string;
1814
+ attributes?: Record<string, unknown> | undefined;
1815
+ relationships?: Record<string, unknown> | undefined;
1816
+ links?: Record<string, string> | undefined;
1817
+ meta?: Record<string, unknown> | undefined;
1818
+ }[] | undefined;
1819
+ }>;
1820
+ 400: z.ZodObject<{
1821
+ errors: z.ZodArray<z.ZodObject<{
1822
+ id: z.ZodOptional<z.ZodString>;
1823
+ links: z.ZodOptional<z.ZodObject<{
1824
+ about: z.ZodOptional<z.ZodString>;
1825
+ }, "strip", z.ZodTypeAny, {
1826
+ about?: string | undefined;
1827
+ }, {
1828
+ about?: string | undefined;
1829
+ }>>;
1830
+ status: z.ZodOptional<z.ZodString>;
1831
+ code: z.ZodOptional<z.ZodString>;
1832
+ title: z.ZodOptional<z.ZodString>;
1833
+ detail: z.ZodOptional<z.ZodString>;
1834
+ source: z.ZodOptional<z.ZodObject<{
1835
+ pointer: z.ZodOptional<z.ZodString>;
1836
+ parameter: z.ZodOptional<z.ZodString>;
1837
+ }, "strip", z.ZodTypeAny, {
1838
+ pointer?: string | undefined;
1839
+ parameter?: string | undefined;
1840
+ }, {
1841
+ pointer?: string | undefined;
1842
+ parameter?: string | undefined;
1843
+ }>>;
1844
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1845
+ }, "strip", z.ZodTypeAny, {
1846
+ status?: string | undefined;
1847
+ code?: string | undefined;
1848
+ id?: string | undefined;
1849
+ links?: {
1850
+ about?: string | undefined;
1851
+ } | undefined;
1852
+ meta?: Record<string, unknown> | undefined;
1853
+ title?: string | undefined;
1854
+ detail?: string | undefined;
1855
+ source?: {
1856
+ pointer?: string | undefined;
1857
+ parameter?: string | undefined;
1858
+ } | undefined;
1859
+ }, {
1860
+ status?: string | undefined;
1861
+ code?: string | undefined;
1862
+ id?: string | undefined;
1863
+ links?: {
1864
+ about?: string | undefined;
1865
+ } | undefined;
1866
+ meta?: Record<string, unknown> | undefined;
1867
+ title?: string | undefined;
1868
+ detail?: string | undefined;
1869
+ source?: {
1870
+ pointer?: string | undefined;
1871
+ parameter?: string | undefined;
1872
+ } | undefined;
1873
+ }>, "many">;
1874
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1875
+ }, "strip", z.ZodTypeAny, {
1876
+ errors: {
1877
+ status?: string | undefined;
1878
+ code?: string | undefined;
1879
+ id?: string | undefined;
1880
+ links?: {
1881
+ about?: string | undefined;
1882
+ } | undefined;
1883
+ meta?: Record<string, unknown> | undefined;
1884
+ title?: string | undefined;
1885
+ detail?: string | undefined;
1886
+ source?: {
1887
+ pointer?: string | undefined;
1888
+ parameter?: string | undefined;
1889
+ } | undefined;
1890
+ }[];
1891
+ meta?: Record<string, unknown> | undefined;
1892
+ }, {
1893
+ errors: {
1894
+ status?: string | undefined;
1895
+ code?: string | undefined;
1896
+ id?: string | undefined;
1897
+ links?: {
1898
+ about?: string | undefined;
1899
+ } | undefined;
1900
+ meta?: Record<string, unknown> | undefined;
1901
+ title?: string | undefined;
1902
+ detail?: string | undefined;
1903
+ source?: {
1904
+ pointer?: string | undefined;
1905
+ parameter?: string | undefined;
1906
+ } | undefined;
1907
+ }[];
1908
+ meta?: Record<string, unknown> | undefined;
1909
+ }>;
1910
+ 404: z.ZodObject<{
1911
+ errors: z.ZodArray<z.ZodObject<{
1912
+ id: z.ZodOptional<z.ZodString>;
1913
+ links: z.ZodOptional<z.ZodObject<{
1914
+ about: z.ZodOptional<z.ZodString>;
1915
+ }, "strip", z.ZodTypeAny, {
1916
+ about?: string | undefined;
1917
+ }, {
1918
+ about?: string | undefined;
1919
+ }>>;
1920
+ status: z.ZodOptional<z.ZodString>;
1921
+ code: z.ZodOptional<z.ZodString>;
1922
+ title: z.ZodOptional<z.ZodString>;
1923
+ detail: z.ZodOptional<z.ZodString>;
1924
+ source: z.ZodOptional<z.ZodObject<{
1925
+ pointer: z.ZodOptional<z.ZodString>;
1926
+ parameter: z.ZodOptional<z.ZodString>;
1927
+ }, "strip", z.ZodTypeAny, {
1928
+ pointer?: string | undefined;
1929
+ parameter?: string | undefined;
1930
+ }, {
1931
+ pointer?: string | undefined;
1932
+ parameter?: string | undefined;
1933
+ }>>;
1934
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1935
+ }, "strip", z.ZodTypeAny, {
1936
+ status?: string | undefined;
1937
+ code?: string | undefined;
1938
+ id?: string | undefined;
1939
+ links?: {
1940
+ about?: string | undefined;
1941
+ } | undefined;
1942
+ meta?: Record<string, unknown> | undefined;
1943
+ title?: string | undefined;
1944
+ detail?: string | undefined;
1945
+ source?: {
1946
+ pointer?: string | undefined;
1947
+ parameter?: string | undefined;
1948
+ } | undefined;
1949
+ }, {
1950
+ status?: string | undefined;
1951
+ code?: string | undefined;
1952
+ id?: string | undefined;
1953
+ links?: {
1954
+ about?: string | undefined;
1955
+ } | undefined;
1956
+ meta?: Record<string, unknown> | undefined;
1957
+ title?: string | undefined;
1958
+ detail?: string | undefined;
1959
+ source?: {
1960
+ pointer?: string | undefined;
1961
+ parameter?: string | undefined;
1962
+ } | undefined;
1963
+ }>, "many">;
1964
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1965
+ }, "strip", z.ZodTypeAny, {
1966
+ errors: {
1967
+ status?: string | undefined;
1968
+ code?: string | undefined;
1969
+ id?: string | undefined;
1970
+ links?: {
1971
+ about?: string | undefined;
1972
+ } | undefined;
1973
+ meta?: Record<string, unknown> | undefined;
1974
+ title?: string | undefined;
1975
+ detail?: string | undefined;
1976
+ source?: {
1977
+ pointer?: string | undefined;
1978
+ parameter?: string | undefined;
1979
+ } | undefined;
1980
+ }[];
1981
+ meta?: Record<string, unknown> | undefined;
1982
+ }, {
1983
+ errors: {
1984
+ status?: string | undefined;
1985
+ code?: string | undefined;
1986
+ id?: string | undefined;
1987
+ links?: {
1988
+ about?: string | undefined;
1989
+ } | undefined;
1990
+ meta?: Record<string, unknown> | undefined;
1991
+ title?: string | undefined;
1992
+ detail?: string | undefined;
1993
+ source?: {
1994
+ pointer?: string | undefined;
1995
+ parameter?: string | undefined;
1996
+ } | undefined;
1997
+ }[];
1998
+ meta?: Record<string, unknown> | undefined;
1999
+ }>;
2000
+ 401: z.ZodObject<{
2001
+ errors: z.ZodArray<z.ZodObject<{
2002
+ id: z.ZodOptional<z.ZodString>;
2003
+ links: z.ZodOptional<z.ZodObject<{
2004
+ about: z.ZodOptional<z.ZodString>;
2005
+ }, "strip", z.ZodTypeAny, {
2006
+ about?: string | undefined;
2007
+ }, {
2008
+ about?: string | undefined;
2009
+ }>>;
2010
+ status: z.ZodOptional<z.ZodString>;
2011
+ code: z.ZodOptional<z.ZodString>;
2012
+ title: z.ZodOptional<z.ZodString>;
2013
+ detail: z.ZodOptional<z.ZodString>;
2014
+ source: z.ZodOptional<z.ZodObject<{
2015
+ pointer: z.ZodOptional<z.ZodString>;
2016
+ parameter: z.ZodOptional<z.ZodString>;
2017
+ }, "strip", z.ZodTypeAny, {
2018
+ pointer?: string | undefined;
2019
+ parameter?: string | undefined;
2020
+ }, {
2021
+ pointer?: string | undefined;
2022
+ parameter?: string | undefined;
2023
+ }>>;
2024
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2025
+ }, "strip", z.ZodTypeAny, {
2026
+ status?: string | undefined;
2027
+ code?: string | undefined;
2028
+ id?: string | undefined;
2029
+ links?: {
2030
+ about?: string | undefined;
2031
+ } | undefined;
2032
+ meta?: Record<string, unknown> | undefined;
2033
+ title?: string | undefined;
2034
+ detail?: string | undefined;
2035
+ source?: {
2036
+ pointer?: string | undefined;
2037
+ parameter?: string | undefined;
2038
+ } | undefined;
2039
+ }, {
2040
+ status?: string | undefined;
2041
+ code?: string | undefined;
2042
+ id?: string | undefined;
2043
+ links?: {
2044
+ about?: string | undefined;
2045
+ } | undefined;
2046
+ meta?: Record<string, unknown> | undefined;
2047
+ title?: string | undefined;
2048
+ detail?: string | undefined;
2049
+ source?: {
2050
+ pointer?: string | undefined;
2051
+ parameter?: string | undefined;
2052
+ } | undefined;
2053
+ }>, "many">;
2054
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2055
+ }, "strip", z.ZodTypeAny, {
2056
+ errors: {
2057
+ status?: string | undefined;
2058
+ code?: string | undefined;
2059
+ id?: string | undefined;
2060
+ links?: {
2061
+ about?: string | undefined;
2062
+ } | undefined;
2063
+ meta?: Record<string, unknown> | undefined;
2064
+ title?: string | undefined;
2065
+ detail?: string | undefined;
2066
+ source?: {
2067
+ pointer?: string | undefined;
2068
+ parameter?: string | undefined;
2069
+ } | undefined;
2070
+ }[];
2071
+ meta?: Record<string, unknown> | undefined;
2072
+ }, {
2073
+ errors: {
2074
+ status?: string | undefined;
2075
+ code?: string | undefined;
2076
+ id?: string | undefined;
2077
+ links?: {
2078
+ about?: string | undefined;
2079
+ } | undefined;
2080
+ meta?: Record<string, unknown> | undefined;
2081
+ title?: string | undefined;
2082
+ detail?: string | undefined;
2083
+ source?: {
2084
+ pointer?: string | undefined;
2085
+ parameter?: string | undefined;
2086
+ } | undefined;
2087
+ }[];
2088
+ meta?: Record<string, unknown> | undefined;
2089
+ }>;
2090
+ 422: z.ZodObject<{
2091
+ errors: z.ZodArray<z.ZodObject<{
2092
+ id: z.ZodOptional<z.ZodString>;
2093
+ links: z.ZodOptional<z.ZodObject<{
2094
+ about: z.ZodOptional<z.ZodString>;
2095
+ }, "strip", z.ZodTypeAny, {
2096
+ about?: string | undefined;
2097
+ }, {
2098
+ about?: string | undefined;
2099
+ }>>;
2100
+ status: z.ZodOptional<z.ZodString>;
2101
+ code: z.ZodOptional<z.ZodString>;
2102
+ title: z.ZodOptional<z.ZodString>;
2103
+ detail: z.ZodOptional<z.ZodString>;
2104
+ source: z.ZodOptional<z.ZodObject<{
2105
+ pointer: z.ZodOptional<z.ZodString>;
2106
+ parameter: z.ZodOptional<z.ZodString>;
2107
+ }, "strip", z.ZodTypeAny, {
2108
+ pointer?: string | undefined;
2109
+ parameter?: string | undefined;
2110
+ }, {
2111
+ pointer?: string | undefined;
2112
+ parameter?: string | undefined;
2113
+ }>>;
2114
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2115
+ }, "strip", z.ZodTypeAny, {
2116
+ status?: string | undefined;
2117
+ code?: string | undefined;
2118
+ id?: string | undefined;
2119
+ links?: {
2120
+ about?: string | undefined;
2121
+ } | undefined;
2122
+ meta?: Record<string, unknown> | undefined;
2123
+ title?: string | undefined;
2124
+ detail?: string | undefined;
2125
+ source?: {
2126
+ pointer?: string | undefined;
2127
+ parameter?: string | undefined;
2128
+ } | undefined;
2129
+ }, {
2130
+ status?: string | undefined;
2131
+ code?: string | undefined;
2132
+ id?: string | undefined;
2133
+ links?: {
2134
+ about?: string | undefined;
2135
+ } | undefined;
2136
+ meta?: Record<string, unknown> | undefined;
2137
+ title?: string | undefined;
2138
+ detail?: string | undefined;
2139
+ source?: {
2140
+ pointer?: string | undefined;
2141
+ parameter?: string | undefined;
2142
+ } | undefined;
2143
+ }>, "many">;
2144
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2145
+ }, "strip", z.ZodTypeAny, {
2146
+ errors: {
2147
+ status?: string | undefined;
2148
+ code?: string | undefined;
2149
+ id?: string | undefined;
2150
+ links?: {
2151
+ about?: string | undefined;
2152
+ } | undefined;
2153
+ meta?: Record<string, unknown> | undefined;
2154
+ title?: string | undefined;
2155
+ detail?: string | undefined;
2156
+ source?: {
2157
+ pointer?: string | undefined;
2158
+ parameter?: string | undefined;
2159
+ } | undefined;
2160
+ }[];
2161
+ meta?: Record<string, unknown> | undefined;
2162
+ }, {
2163
+ errors: {
2164
+ status?: string | undefined;
2165
+ code?: string | undefined;
2166
+ id?: string | undefined;
2167
+ links?: {
2168
+ about?: string | undefined;
2169
+ } | undefined;
2170
+ meta?: Record<string, unknown> | undefined;
2171
+ title?: string | undefined;
2172
+ detail?: string | undefined;
2173
+ source?: {
2174
+ pointer?: string | undefined;
2175
+ parameter?: string | undefined;
2176
+ } | undefined;
2177
+ }[];
2178
+ meta?: Record<string, unknown> | undefined;
2179
+ }>;
2180
+ };
2181
+ };
2182
+ deleteFieldActivity: {
2183
+ pathParams: z.ZodObject<{
2184
+ farmId: z.ZodString;
2185
+ id: z.ZodString;
2186
+ }, "strip", z.ZodTypeAny, {
2187
+ id: string;
2188
+ farmId: string;
2189
+ }, {
2190
+ id: string;
2191
+ farmId: string;
2192
+ }>;
2193
+ summary: "Delete field activity";
2194
+ method: "DELETE";
2195
+ path: "/farms/:farmId/field-activities/:id";
2196
+ responses: {
2197
+ 204: z.ZodObject<{
2198
+ meta: z.ZodObject<{
2199
+ message: z.ZodString;
2200
+ }, "strip", z.ZodTypeAny, {
2201
+ message: string;
2202
+ }, {
2203
+ message: string;
2204
+ }>;
2205
+ }, "strip", z.ZodTypeAny, {
2206
+ meta: {
2207
+ message: string;
2208
+ };
2209
+ }, {
2210
+ meta: {
2211
+ message: string;
2212
+ };
2213
+ }>;
2214
+ 404: z.ZodObject<{
2215
+ errors: z.ZodArray<z.ZodObject<{
2216
+ id: z.ZodOptional<z.ZodString>;
2217
+ links: z.ZodOptional<z.ZodObject<{
2218
+ about: z.ZodOptional<z.ZodString>;
2219
+ }, "strip", z.ZodTypeAny, {
2220
+ about?: string | undefined;
2221
+ }, {
2222
+ about?: string | undefined;
2223
+ }>>;
2224
+ status: z.ZodOptional<z.ZodString>;
2225
+ code: z.ZodOptional<z.ZodString>;
2226
+ title: z.ZodOptional<z.ZodString>;
2227
+ detail: z.ZodOptional<z.ZodString>;
2228
+ source: z.ZodOptional<z.ZodObject<{
2229
+ pointer: z.ZodOptional<z.ZodString>;
2230
+ parameter: z.ZodOptional<z.ZodString>;
2231
+ }, "strip", z.ZodTypeAny, {
2232
+ pointer?: string | undefined;
2233
+ parameter?: string | undefined;
2234
+ }, {
2235
+ pointer?: string | undefined;
2236
+ parameter?: string | undefined;
2237
+ }>>;
2238
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2239
+ }, "strip", z.ZodTypeAny, {
2240
+ status?: string | undefined;
2241
+ code?: string | undefined;
2242
+ id?: string | undefined;
2243
+ links?: {
2244
+ about?: string | undefined;
2245
+ } | undefined;
2246
+ meta?: Record<string, unknown> | undefined;
2247
+ title?: string | undefined;
2248
+ detail?: string | undefined;
2249
+ source?: {
2250
+ pointer?: string | undefined;
2251
+ parameter?: string | undefined;
2252
+ } | undefined;
2253
+ }, {
2254
+ status?: string | undefined;
2255
+ code?: string | undefined;
2256
+ id?: string | undefined;
2257
+ links?: {
2258
+ about?: string | undefined;
2259
+ } | undefined;
2260
+ meta?: Record<string, unknown> | undefined;
2261
+ title?: string | undefined;
2262
+ detail?: string | undefined;
2263
+ source?: {
2264
+ pointer?: string | undefined;
2265
+ parameter?: string | undefined;
2266
+ } | undefined;
2267
+ }>, "many">;
2268
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2269
+ }, "strip", z.ZodTypeAny, {
2270
+ errors: {
2271
+ status?: string | undefined;
2272
+ code?: string | undefined;
2273
+ id?: string | undefined;
2274
+ links?: {
2275
+ about?: string | undefined;
2276
+ } | undefined;
2277
+ meta?: Record<string, unknown> | undefined;
2278
+ title?: string | undefined;
2279
+ detail?: string | undefined;
2280
+ source?: {
2281
+ pointer?: string | undefined;
2282
+ parameter?: string | undefined;
2283
+ } | undefined;
2284
+ }[];
2285
+ meta?: Record<string, unknown> | undefined;
2286
+ }, {
2287
+ errors: {
2288
+ status?: string | undefined;
2289
+ code?: string | undefined;
2290
+ id?: string | undefined;
2291
+ links?: {
2292
+ about?: string | undefined;
2293
+ } | undefined;
2294
+ meta?: Record<string, unknown> | undefined;
2295
+ title?: string | undefined;
2296
+ detail?: string | undefined;
2297
+ source?: {
2298
+ pointer?: string | undefined;
2299
+ parameter?: string | undefined;
2300
+ } | undefined;
2301
+ }[];
2302
+ meta?: Record<string, unknown> | undefined;
2303
+ }>;
2304
+ 401: z.ZodObject<{
2305
+ errors: z.ZodArray<z.ZodObject<{
2306
+ id: z.ZodOptional<z.ZodString>;
2307
+ links: z.ZodOptional<z.ZodObject<{
2308
+ about: z.ZodOptional<z.ZodString>;
2309
+ }, "strip", z.ZodTypeAny, {
2310
+ about?: string | undefined;
2311
+ }, {
2312
+ about?: string | undefined;
2313
+ }>>;
2314
+ status: z.ZodOptional<z.ZodString>;
2315
+ code: z.ZodOptional<z.ZodString>;
2316
+ title: z.ZodOptional<z.ZodString>;
2317
+ detail: z.ZodOptional<z.ZodString>;
2318
+ source: z.ZodOptional<z.ZodObject<{
2319
+ pointer: z.ZodOptional<z.ZodString>;
2320
+ parameter: z.ZodOptional<z.ZodString>;
2321
+ }, "strip", z.ZodTypeAny, {
2322
+ pointer?: string | undefined;
2323
+ parameter?: string | undefined;
2324
+ }, {
2325
+ pointer?: string | undefined;
2326
+ parameter?: string | undefined;
2327
+ }>>;
2328
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2329
+ }, "strip", z.ZodTypeAny, {
2330
+ status?: string | undefined;
2331
+ code?: string | undefined;
2332
+ id?: string | undefined;
2333
+ links?: {
2334
+ about?: string | undefined;
2335
+ } | undefined;
2336
+ meta?: Record<string, unknown> | undefined;
2337
+ title?: string | undefined;
2338
+ detail?: string | undefined;
2339
+ source?: {
2340
+ pointer?: string | undefined;
2341
+ parameter?: string | undefined;
2342
+ } | undefined;
2343
+ }, {
2344
+ status?: string | undefined;
2345
+ code?: string | undefined;
2346
+ id?: string | undefined;
2347
+ links?: {
2348
+ about?: string | undefined;
2349
+ } | undefined;
2350
+ meta?: Record<string, unknown> | undefined;
2351
+ title?: string | undefined;
2352
+ detail?: string | undefined;
2353
+ source?: {
2354
+ pointer?: string | undefined;
2355
+ parameter?: string | undefined;
2356
+ } | undefined;
2357
+ }>, "many">;
2358
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2359
+ }, "strip", z.ZodTypeAny, {
2360
+ errors: {
2361
+ status?: string | undefined;
2362
+ code?: string | undefined;
2363
+ id?: string | undefined;
2364
+ links?: {
2365
+ about?: string | undefined;
2366
+ } | undefined;
2367
+ meta?: Record<string, unknown> | undefined;
2368
+ title?: string | undefined;
2369
+ detail?: string | undefined;
2370
+ source?: {
2371
+ pointer?: string | undefined;
2372
+ parameter?: string | undefined;
2373
+ } | undefined;
2374
+ }[];
2375
+ meta?: Record<string, unknown> | undefined;
2376
+ }, {
2377
+ errors: {
2378
+ status?: string | undefined;
2379
+ code?: string | undefined;
2380
+ id?: string | undefined;
2381
+ links?: {
2382
+ about?: string | undefined;
2383
+ } | undefined;
2384
+ meta?: Record<string, unknown> | undefined;
2385
+ title?: string | undefined;
2386
+ detail?: string | undefined;
2387
+ source?: {
2388
+ pointer?: string | undefined;
2389
+ parameter?: string | undefined;
2390
+ } | undefined;
2391
+ }[];
2392
+ meta?: Record<string, unknown> | undefined;
2393
+ }>;
2394
+ };
2395
+ };
2396
+ };
2397
+ //# sourceMappingURL=field-activities.routes.d.ts.map