@deepintel-ltd/farmpro-contracts 1.0.1 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (100) hide show
  1. package/dist/index.d.ts +41 -0
  2. package/dist/index.d.ts.map +1 -0
  3. package/dist/index.js +81 -0
  4. package/dist/routes/analytics.routes.d.ts +754 -0
  5. package/dist/routes/analytics.routes.d.ts.map +1 -0
  6. package/dist/routes/analytics.routes.js +24 -0
  7. package/dist/routes/auth.routes.d.ts +3836 -0
  8. package/dist/routes/auth.routes.d.ts.map +1 -0
  9. package/dist/routes/auth.routes.js +158 -0
  10. package/dist/routes/documents.routes.d.ts +2476 -0
  11. package/dist/routes/documents.routes.d.ts.map +1 -0
  12. package/dist/routes/documents.routes.js +100 -0
  13. package/dist/routes/equipment.routes.d.ts +3617 -0
  14. package/dist/routes/equipment.routes.d.ts.map +1 -0
  15. package/dist/routes/equipment.routes.js +118 -0
  16. package/dist/routes/farms.routes.d.ts +2202 -0
  17. package/dist/routes/farms.routes.d.ts.map +1 -0
  18. package/dist/routes/farms.routes.js +111 -0
  19. package/dist/routes/fields.routes.d.ts +3389 -0
  20. package/dist/routes/fields.routes.d.ts.map +1 -0
  21. package/dist/routes/fields.routes.js +95 -0
  22. package/dist/routes/finance.routes.d.ts +6855 -0
  23. package/dist/routes/finance.routes.d.ts.map +1 -0
  24. package/dist/routes/finance.routes.js +259 -0
  25. package/dist/routes/harvest.routes.d.ts +2337 -0
  26. package/dist/routes/harvest.routes.d.ts.map +1 -0
  27. package/dist/routes/harvest.routes.js +99 -0
  28. package/dist/routes/index.d.ts +68 -0
  29. package/dist/routes/index.d.ts.map +1 -0
  30. package/dist/routes/index.js +43 -0
  31. package/dist/routes/inventory.routes.d.ts +2853 -0
  32. package/dist/routes/inventory.routes.d.ts.map +1 -0
  33. package/dist/routes/inventory.routes.js +121 -0
  34. package/dist/routes/soil-tests.routes.d.ts +3005 -0
  35. package/dist/routes/soil-tests.routes.d.ts.map +1 -0
  36. package/dist/routes/soil-tests.routes.js +98 -0
  37. package/dist/routes/suppliers.routes.d.ts +4190 -0
  38. package/dist/routes/suppliers.routes.d.ts.map +1 -0
  39. package/dist/routes/suppliers.routes.js +146 -0
  40. package/dist/routes/tasks.routes.d.ts +4192 -0
  41. package/dist/routes/tasks.routes.d.ts.map +1 -0
  42. package/dist/routes/tasks.routes.js +138 -0
  43. package/dist/routes/team.routes.d.ts +2210 -0
  44. package/dist/routes/team.routes.d.ts.map +1 -0
  45. package/dist/routes/team.routes.js +98 -0
  46. package/dist/routes/users.routes.d.ts +721 -0
  47. package/dist/routes/users.routes.d.ts.map +1 -0
  48. package/dist/routes/users.routes.js +35 -0
  49. package/dist/routes/weather.routes.d.ts +500 -0
  50. package/dist/routes/weather.routes.d.ts.map +1 -0
  51. package/dist/routes/weather.routes.js +23 -0
  52. package/dist/schemas/analytics.schemas.d.ts +1344 -0
  53. package/dist/schemas/analytics.schemas.d.ts.map +1 -0
  54. package/dist/schemas/analytics.schemas.js +73 -0
  55. package/dist/schemas/auth.schemas.d.ts +1093 -0
  56. package/dist/schemas/auth.schemas.d.ts.map +1 -0
  57. package/dist/schemas/auth.schemas.js +159 -0
  58. package/dist/schemas/common.schemas.d.ts +562 -0
  59. package/dist/schemas/common.schemas.d.ts.map +1 -0
  60. package/dist/schemas/common.schemas.js +122 -0
  61. package/dist/schemas/documents.schemas.d.ts +850 -0
  62. package/dist/schemas/documents.schemas.d.ts.map +1 -0
  63. package/dist/schemas/documents.schemas.js +75 -0
  64. package/dist/schemas/equipment.schemas.d.ts +1618 -0
  65. package/dist/schemas/equipment.schemas.d.ts.map +1 -0
  66. package/dist/schemas/equipment.schemas.js +125 -0
  67. package/dist/schemas/farms.schemas.d.ts +1171 -0
  68. package/dist/schemas/farms.schemas.d.ts.map +1 -0
  69. package/dist/schemas/farms.schemas.js +62 -0
  70. package/dist/schemas/fields.schemas.d.ts +2508 -0
  71. package/dist/schemas/fields.schemas.d.ts.map +1 -0
  72. package/dist/schemas/fields.schemas.js +125 -0
  73. package/dist/schemas/finance.schemas.d.ts +2869 -0
  74. package/dist/schemas/finance.schemas.d.ts.map +1 -0
  75. package/dist/schemas/finance.schemas.js +196 -0
  76. package/dist/schemas/harvest.schemas.d.ts +1051 -0
  77. package/dist/schemas/harvest.schemas.d.ts.map +1 -0
  78. package/dist/schemas/harvest.schemas.js +71 -0
  79. package/dist/schemas/inventory.schemas.d.ts +1138 -0
  80. package/dist/schemas/inventory.schemas.d.ts.map +1 -0
  81. package/dist/schemas/inventory.schemas.js +89 -0
  82. package/dist/schemas/soil-tests.schemas.d.ts +1885 -0
  83. package/dist/schemas/soil-tests.schemas.d.ts.map +1 -0
  84. package/dist/schemas/soil-tests.schemas.js +102 -0
  85. package/dist/schemas/suppliers.schemas.d.ts +1774 -0
  86. package/dist/schemas/suppliers.schemas.d.ts.map +1 -0
  87. package/dist/schemas/suppliers.schemas.js +121 -0
  88. package/dist/schemas/tasks.schemas.d.ts +1761 -0
  89. package/dist/schemas/tasks.schemas.d.ts.map +1 -0
  90. package/dist/schemas/tasks.schemas.js +121 -0
  91. package/dist/schemas/team.schemas.d.ts +583 -0
  92. package/dist/schemas/team.schemas.d.ts.map +1 -0
  93. package/dist/schemas/team.schemas.js +60 -0
  94. package/dist/schemas/users.schemas.d.ts +288 -0
  95. package/dist/schemas/users.schemas.d.ts.map +1 -0
  96. package/dist/schemas/users.schemas.js +32 -0
  97. package/dist/schemas/weather.schemas.d.ts +682 -0
  98. package/dist/schemas/weather.schemas.d.ts.map +1 -0
  99. package/dist/schemas/weather.schemas.js +49 -0
  100. package/package.json +1 -1
@@ -0,0 +1,4192 @@
1
+ import { z } from 'zod';
2
+ export declare const tasksRouter: {
3
+ listTasks: {
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
+ sort: z.ZodOptional<z.ZodString>;
15
+ include: z.ZodOptional<z.ZodString>;
16
+ 'filter[startDate]': z.ZodOptional<z.ZodString>;
17
+ 'filter[endDate]': z.ZodOptional<z.ZodString>;
18
+ 'filter[crop]': z.ZodOptional<z.ZodString>;
19
+ } & {
20
+ 'filter[status]': z.ZodOptional<z.ZodEnum<["pending", "in-progress", "completed", "cancelled"]>>;
21
+ 'filter[fieldId]': z.ZodOptional<z.ZodString>;
22
+ 'filter[assignedTo]': z.ZodOptional<z.ZodString>;
23
+ }, "strip", z.ZodTypeAny, {
24
+ sort?: string | undefined;
25
+ 'page[number]'?: number | undefined;
26
+ 'page[size]'?: number | undefined;
27
+ 'filter[startDate]'?: string | undefined;
28
+ 'filter[endDate]'?: string | undefined;
29
+ 'filter[status]'?: "pending" | "in-progress" | "completed" | "cancelled" | undefined;
30
+ 'filter[crop]'?: string | undefined;
31
+ include?: string | undefined;
32
+ 'filter[fieldId]'?: string | undefined;
33
+ 'filter[assignedTo]'?: string | undefined;
34
+ }, {
35
+ sort?: string | undefined;
36
+ 'page[number]'?: number | undefined;
37
+ 'page[size]'?: number | undefined;
38
+ 'filter[startDate]'?: string | undefined;
39
+ 'filter[endDate]'?: string | undefined;
40
+ 'filter[status]'?: "pending" | "in-progress" | "completed" | "cancelled" | undefined;
41
+ 'filter[crop]'?: string | undefined;
42
+ include?: string | undefined;
43
+ 'filter[fieldId]'?: string | undefined;
44
+ 'filter[assignedTo]'?: string | undefined;
45
+ }>;
46
+ summary: "List tasks for a farm";
47
+ description: "Get all tasks for a specific farm with optional filtering";
48
+ method: "GET";
49
+ path: "/farms/:farmId/tasks";
50
+ responses: {
51
+ 200: z.ZodObject<{
52
+ data: z.ZodArray<z.ZodObject<{
53
+ type: z.ZodLiteral<string>;
54
+ id: z.ZodString;
55
+ attributes: z.ZodObject<{
56
+ title: z.ZodString;
57
+ fieldId: z.ZodString;
58
+ fieldName: z.ZodOptional<z.ZodString>;
59
+ date: z.ZodString;
60
+ status: z.ZodEnum<["pending", "in-progress", "completed", "cancelled"]>;
61
+ inventoryItemId: z.ZodNullable<z.ZodString>;
62
+ inventoryItemName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
63
+ plannedQuantity: z.ZodNullable<z.ZodNumber>;
64
+ actualQuantity: z.ZodNullable<z.ZodNumber>;
65
+ assignedTo: z.ZodNullable<z.ZodString>;
66
+ assignedToName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
67
+ assignedBy: z.ZodNullable<z.ZodString>;
68
+ assignedDate: z.ZodNullable<z.ZodString>;
69
+ notes: z.ZodOptional<z.ZodArray<z.ZodObject<{
70
+ id: z.ZodString;
71
+ authorId: z.ZodString;
72
+ authorName: z.ZodString;
73
+ text: z.ZodString;
74
+ timestamp: z.ZodString;
75
+ photos: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
76
+ }, "strip", z.ZodTypeAny, {
77
+ id: string;
78
+ authorId: string;
79
+ authorName: string;
80
+ text: string;
81
+ timestamp: string;
82
+ photos?: string[] | undefined;
83
+ }, {
84
+ id: string;
85
+ authorId: string;
86
+ authorName: string;
87
+ text: string;
88
+ timestamp: string;
89
+ photos?: string[] | undefined;
90
+ }>, "many">>;
91
+ } & {
92
+ createdAt: z.ZodString;
93
+ updatedAt: z.ZodString;
94
+ }, "strip", z.ZodTypeAny, {
95
+ status: "pending" | "in-progress" | "completed" | "cancelled";
96
+ date: string;
97
+ title: string;
98
+ createdAt: string;
99
+ updatedAt: string;
100
+ fieldId: string;
101
+ inventoryItemId: string | null;
102
+ plannedQuantity: number | null;
103
+ actualQuantity: number | null;
104
+ assignedTo: string | null;
105
+ assignedBy: string | null;
106
+ assignedDate: string | null;
107
+ fieldName?: string | undefined;
108
+ inventoryItemName?: string | null | undefined;
109
+ assignedToName?: string | null | undefined;
110
+ notes?: {
111
+ id: string;
112
+ authorId: string;
113
+ authorName: string;
114
+ text: string;
115
+ timestamp: string;
116
+ photos?: string[] | undefined;
117
+ }[] | undefined;
118
+ }, {
119
+ status: "pending" | "in-progress" | "completed" | "cancelled";
120
+ date: string;
121
+ title: string;
122
+ createdAt: string;
123
+ updatedAt: string;
124
+ fieldId: string;
125
+ inventoryItemId: string | null;
126
+ plannedQuantity: number | null;
127
+ actualQuantity: number | null;
128
+ assignedTo: string | null;
129
+ assignedBy: string | null;
130
+ assignedDate: string | null;
131
+ fieldName?: string | undefined;
132
+ inventoryItemName?: string | null | undefined;
133
+ assignedToName?: string | null | undefined;
134
+ notes?: {
135
+ id: string;
136
+ authorId: string;
137
+ authorName: string;
138
+ text: string;
139
+ timestamp: string;
140
+ photos?: string[] | undefined;
141
+ }[] | undefined;
142
+ }>;
143
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
144
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
145
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
146
+ }, "strip", z.ZodTypeAny, {
147
+ type: string;
148
+ id: string;
149
+ attributes: {
150
+ status: "pending" | "in-progress" | "completed" | "cancelled";
151
+ date: string;
152
+ title: string;
153
+ createdAt: string;
154
+ updatedAt: string;
155
+ fieldId: string;
156
+ inventoryItemId: string | null;
157
+ plannedQuantity: number | null;
158
+ actualQuantity: number | null;
159
+ assignedTo: string | null;
160
+ assignedBy: string | null;
161
+ assignedDate: string | null;
162
+ fieldName?: string | undefined;
163
+ inventoryItemName?: string | null | undefined;
164
+ assignedToName?: string | null | undefined;
165
+ notes?: {
166
+ id: string;
167
+ authorId: string;
168
+ authorName: string;
169
+ text: string;
170
+ timestamp: string;
171
+ photos?: string[] | undefined;
172
+ }[] | undefined;
173
+ };
174
+ relationships?: Record<string, unknown> | undefined;
175
+ links?: Record<string, string> | undefined;
176
+ meta?: Record<string, unknown> | undefined;
177
+ }, {
178
+ type: string;
179
+ id: string;
180
+ attributes: {
181
+ status: "pending" | "in-progress" | "completed" | "cancelled";
182
+ date: string;
183
+ title: string;
184
+ createdAt: string;
185
+ updatedAt: string;
186
+ fieldId: string;
187
+ inventoryItemId: string | null;
188
+ plannedQuantity: number | null;
189
+ actualQuantity: number | null;
190
+ assignedTo: string | null;
191
+ assignedBy: string | null;
192
+ assignedDate: string | null;
193
+ fieldName?: string | undefined;
194
+ inventoryItemName?: string | null | undefined;
195
+ assignedToName?: string | null | undefined;
196
+ notes?: {
197
+ id: string;
198
+ authorId: string;
199
+ authorName: string;
200
+ text: string;
201
+ timestamp: string;
202
+ photos?: string[] | undefined;
203
+ }[] | undefined;
204
+ };
205
+ relationships?: Record<string, unknown> | undefined;
206
+ links?: Record<string, string> | undefined;
207
+ meta?: Record<string, unknown> | undefined;
208
+ }>, "many">;
209
+ included: z.ZodOptional<z.ZodArray<z.ZodObject<{
210
+ type: z.ZodString;
211
+ id: z.ZodString;
212
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
213
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
214
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
215
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
216
+ }, "strip", z.ZodTypeAny, {
217
+ type: string;
218
+ id: string;
219
+ attributes?: Record<string, unknown> | undefined;
220
+ relationships?: Record<string, unknown> | undefined;
221
+ links?: Record<string, string> | undefined;
222
+ meta?: Record<string, unknown> | undefined;
223
+ }, {
224
+ type: string;
225
+ id: string;
226
+ attributes?: Record<string, unknown> | undefined;
227
+ relationships?: Record<string, unknown> | undefined;
228
+ links?: Record<string, string> | undefined;
229
+ meta?: Record<string, unknown> | undefined;
230
+ }>, "many">>;
231
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
232
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
233
+ }, "strip", z.ZodTypeAny, {
234
+ data: {
235
+ type: string;
236
+ id: string;
237
+ attributes: {
238
+ status: "pending" | "in-progress" | "completed" | "cancelled";
239
+ date: string;
240
+ title: string;
241
+ createdAt: string;
242
+ updatedAt: string;
243
+ fieldId: string;
244
+ inventoryItemId: string | null;
245
+ plannedQuantity: number | null;
246
+ actualQuantity: number | null;
247
+ assignedTo: string | null;
248
+ assignedBy: string | null;
249
+ assignedDate: string | null;
250
+ fieldName?: string | undefined;
251
+ inventoryItemName?: string | null | undefined;
252
+ assignedToName?: string | null | undefined;
253
+ notes?: {
254
+ id: string;
255
+ authorId: string;
256
+ authorName: string;
257
+ text: string;
258
+ timestamp: string;
259
+ photos?: string[] | undefined;
260
+ }[] | undefined;
261
+ };
262
+ relationships?: Record<string, unknown> | undefined;
263
+ links?: Record<string, string> | undefined;
264
+ meta?: Record<string, unknown> | undefined;
265
+ }[];
266
+ links?: Record<string, string> | undefined;
267
+ meta?: Record<string, unknown> | undefined;
268
+ included?: {
269
+ type: string;
270
+ id: string;
271
+ attributes?: Record<string, unknown> | undefined;
272
+ relationships?: Record<string, unknown> | undefined;
273
+ links?: Record<string, string> | undefined;
274
+ meta?: Record<string, unknown> | undefined;
275
+ }[] | undefined;
276
+ }, {
277
+ data: {
278
+ type: string;
279
+ id: string;
280
+ attributes: {
281
+ status: "pending" | "in-progress" | "completed" | "cancelled";
282
+ date: string;
283
+ title: string;
284
+ createdAt: string;
285
+ updatedAt: string;
286
+ fieldId: string;
287
+ inventoryItemId: string | null;
288
+ plannedQuantity: number | null;
289
+ actualQuantity: number | null;
290
+ assignedTo: string | null;
291
+ assignedBy: string | null;
292
+ assignedDate: string | null;
293
+ fieldName?: string | undefined;
294
+ inventoryItemName?: string | null | undefined;
295
+ assignedToName?: string | null | undefined;
296
+ notes?: {
297
+ id: string;
298
+ authorId: string;
299
+ authorName: string;
300
+ text: string;
301
+ timestamp: string;
302
+ photos?: string[] | undefined;
303
+ }[] | undefined;
304
+ };
305
+ relationships?: Record<string, unknown> | undefined;
306
+ links?: Record<string, string> | undefined;
307
+ meta?: Record<string, unknown> | undefined;
308
+ }[];
309
+ links?: Record<string, string> | undefined;
310
+ meta?: Record<string, unknown> | undefined;
311
+ included?: {
312
+ type: string;
313
+ id: string;
314
+ attributes?: Record<string, unknown> | undefined;
315
+ relationships?: Record<string, unknown> | undefined;
316
+ links?: Record<string, string> | undefined;
317
+ meta?: Record<string, unknown> | undefined;
318
+ }[] | undefined;
319
+ }>;
320
+ 404: z.ZodObject<{
321
+ errors: z.ZodArray<z.ZodObject<{
322
+ id: z.ZodOptional<z.ZodString>;
323
+ links: z.ZodOptional<z.ZodObject<{
324
+ about: z.ZodOptional<z.ZodString>;
325
+ }, "strip", z.ZodTypeAny, {
326
+ about?: string | undefined;
327
+ }, {
328
+ about?: string | undefined;
329
+ }>>;
330
+ status: z.ZodOptional<z.ZodString>;
331
+ code: z.ZodOptional<z.ZodString>;
332
+ title: z.ZodOptional<z.ZodString>;
333
+ detail: z.ZodOptional<z.ZodString>;
334
+ source: z.ZodOptional<z.ZodObject<{
335
+ pointer: z.ZodOptional<z.ZodString>;
336
+ parameter: z.ZodOptional<z.ZodString>;
337
+ }, "strip", z.ZodTypeAny, {
338
+ pointer?: string | undefined;
339
+ parameter?: string | undefined;
340
+ }, {
341
+ pointer?: string | undefined;
342
+ parameter?: string | undefined;
343
+ }>>;
344
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
345
+ }, "strip", z.ZodTypeAny, {
346
+ status?: string | undefined;
347
+ code?: string | undefined;
348
+ id?: string | undefined;
349
+ links?: {
350
+ about?: string | undefined;
351
+ } | undefined;
352
+ meta?: Record<string, unknown> | undefined;
353
+ title?: string | undefined;
354
+ detail?: string | undefined;
355
+ source?: {
356
+ pointer?: string | undefined;
357
+ parameter?: string | undefined;
358
+ } | undefined;
359
+ }, {
360
+ status?: string | undefined;
361
+ code?: string | undefined;
362
+ id?: string | undefined;
363
+ links?: {
364
+ about?: string | undefined;
365
+ } | undefined;
366
+ meta?: Record<string, unknown> | undefined;
367
+ title?: string | undefined;
368
+ detail?: string | undefined;
369
+ source?: {
370
+ pointer?: string | undefined;
371
+ parameter?: string | undefined;
372
+ } | undefined;
373
+ }>, "many">;
374
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
375
+ }, "strip", z.ZodTypeAny, {
376
+ errors: {
377
+ status?: string | undefined;
378
+ code?: string | undefined;
379
+ id?: string | undefined;
380
+ links?: {
381
+ about?: string | undefined;
382
+ } | undefined;
383
+ meta?: Record<string, unknown> | undefined;
384
+ title?: string | undefined;
385
+ detail?: string | undefined;
386
+ source?: {
387
+ pointer?: string | undefined;
388
+ parameter?: string | undefined;
389
+ } | undefined;
390
+ }[];
391
+ meta?: Record<string, unknown> | undefined;
392
+ }, {
393
+ errors: {
394
+ status?: string | undefined;
395
+ code?: string | undefined;
396
+ id?: string | undefined;
397
+ links?: {
398
+ about?: string | undefined;
399
+ } | undefined;
400
+ meta?: Record<string, unknown> | undefined;
401
+ title?: string | undefined;
402
+ detail?: string | undefined;
403
+ source?: {
404
+ pointer?: string | undefined;
405
+ parameter?: string | undefined;
406
+ } | undefined;
407
+ }[];
408
+ meta?: Record<string, unknown> | undefined;
409
+ }>;
410
+ 401: z.ZodObject<{
411
+ errors: z.ZodArray<z.ZodObject<{
412
+ id: z.ZodOptional<z.ZodString>;
413
+ links: z.ZodOptional<z.ZodObject<{
414
+ about: z.ZodOptional<z.ZodString>;
415
+ }, "strip", z.ZodTypeAny, {
416
+ about?: string | undefined;
417
+ }, {
418
+ about?: string | undefined;
419
+ }>>;
420
+ status: z.ZodOptional<z.ZodString>;
421
+ code: z.ZodOptional<z.ZodString>;
422
+ title: z.ZodOptional<z.ZodString>;
423
+ detail: z.ZodOptional<z.ZodString>;
424
+ source: z.ZodOptional<z.ZodObject<{
425
+ pointer: z.ZodOptional<z.ZodString>;
426
+ parameter: z.ZodOptional<z.ZodString>;
427
+ }, "strip", z.ZodTypeAny, {
428
+ pointer?: string | undefined;
429
+ parameter?: string | undefined;
430
+ }, {
431
+ pointer?: string | undefined;
432
+ parameter?: string | undefined;
433
+ }>>;
434
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
435
+ }, "strip", z.ZodTypeAny, {
436
+ status?: string | undefined;
437
+ code?: string | undefined;
438
+ id?: string | undefined;
439
+ links?: {
440
+ about?: string | undefined;
441
+ } | undefined;
442
+ meta?: Record<string, unknown> | undefined;
443
+ title?: string | undefined;
444
+ detail?: string | undefined;
445
+ source?: {
446
+ pointer?: string | undefined;
447
+ parameter?: string | undefined;
448
+ } | undefined;
449
+ }, {
450
+ status?: string | undefined;
451
+ code?: string | undefined;
452
+ id?: string | undefined;
453
+ links?: {
454
+ about?: string | undefined;
455
+ } | undefined;
456
+ meta?: Record<string, unknown> | undefined;
457
+ title?: string | undefined;
458
+ detail?: string | undefined;
459
+ source?: {
460
+ pointer?: string | undefined;
461
+ parameter?: string | undefined;
462
+ } | undefined;
463
+ }>, "many">;
464
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
465
+ }, "strip", z.ZodTypeAny, {
466
+ errors: {
467
+ status?: string | undefined;
468
+ code?: string | undefined;
469
+ id?: string | undefined;
470
+ links?: {
471
+ about?: string | undefined;
472
+ } | undefined;
473
+ meta?: Record<string, unknown> | undefined;
474
+ title?: string | undefined;
475
+ detail?: string | undefined;
476
+ source?: {
477
+ pointer?: string | undefined;
478
+ parameter?: string | undefined;
479
+ } | undefined;
480
+ }[];
481
+ meta?: Record<string, unknown> | undefined;
482
+ }, {
483
+ errors: {
484
+ status?: string | undefined;
485
+ code?: string | undefined;
486
+ id?: string | undefined;
487
+ links?: {
488
+ about?: string | undefined;
489
+ } | undefined;
490
+ meta?: Record<string, unknown> | undefined;
491
+ title?: string | undefined;
492
+ detail?: string | undefined;
493
+ source?: {
494
+ pointer?: string | undefined;
495
+ parameter?: string | undefined;
496
+ } | undefined;
497
+ }[];
498
+ meta?: Record<string, unknown> | undefined;
499
+ }>;
500
+ };
501
+ };
502
+ createTask: {
503
+ pathParams: z.ZodObject<{
504
+ farmId: z.ZodString;
505
+ }, "strip", z.ZodTypeAny, {
506
+ farmId: string;
507
+ }, {
508
+ farmId: string;
509
+ }>;
510
+ summary: "Create a new task";
511
+ description: "Create a new task with optional inventory linking and assignment";
512
+ method: "POST";
513
+ body: z.ZodObject<{
514
+ data: z.ZodObject<{
515
+ type: z.ZodLiteral<"tasks">;
516
+ attributes: z.ZodObject<{
517
+ title: z.ZodString;
518
+ fieldId: z.ZodString;
519
+ date: z.ZodString;
520
+ status: z.ZodOptional<z.ZodDefault<z.ZodEnum<["pending", "in-progress", "completed", "cancelled"]>>>;
521
+ inventoryItemId: z.ZodOptional<z.ZodString>;
522
+ plannedQuantity: z.ZodOptional<z.ZodNumber>;
523
+ assignedTo: z.ZodOptional<z.ZodString>;
524
+ notes: z.ZodOptional<z.ZodString>;
525
+ }, "strip", z.ZodTypeAny, {
526
+ date: string;
527
+ title: string;
528
+ fieldId: string;
529
+ status?: "pending" | "in-progress" | "completed" | "cancelled" | undefined;
530
+ inventoryItemId?: string | undefined;
531
+ plannedQuantity?: number | undefined;
532
+ assignedTo?: string | undefined;
533
+ notes?: string | undefined;
534
+ }, {
535
+ date: string;
536
+ title: string;
537
+ fieldId: string;
538
+ status?: "pending" | "in-progress" | "completed" | "cancelled" | undefined;
539
+ inventoryItemId?: string | undefined;
540
+ plannedQuantity?: number | undefined;
541
+ assignedTo?: string | undefined;
542
+ notes?: string | undefined;
543
+ }>;
544
+ }, "strip", z.ZodTypeAny, {
545
+ type: "tasks";
546
+ attributes: {
547
+ date: string;
548
+ title: string;
549
+ fieldId: string;
550
+ status?: "pending" | "in-progress" | "completed" | "cancelled" | undefined;
551
+ inventoryItemId?: string | undefined;
552
+ plannedQuantity?: number | undefined;
553
+ assignedTo?: string | undefined;
554
+ notes?: string | undefined;
555
+ };
556
+ }, {
557
+ type: "tasks";
558
+ attributes: {
559
+ date: string;
560
+ title: string;
561
+ fieldId: string;
562
+ status?: "pending" | "in-progress" | "completed" | "cancelled" | undefined;
563
+ inventoryItemId?: string | undefined;
564
+ plannedQuantity?: number | undefined;
565
+ assignedTo?: string | undefined;
566
+ notes?: string | undefined;
567
+ };
568
+ }>;
569
+ }, "strip", z.ZodTypeAny, {
570
+ data: {
571
+ type: "tasks";
572
+ attributes: {
573
+ date: string;
574
+ title: string;
575
+ fieldId: string;
576
+ status?: "pending" | "in-progress" | "completed" | "cancelled" | undefined;
577
+ inventoryItemId?: string | undefined;
578
+ plannedQuantity?: number | undefined;
579
+ assignedTo?: string | undefined;
580
+ notes?: string | undefined;
581
+ };
582
+ };
583
+ }, {
584
+ data: {
585
+ type: "tasks";
586
+ attributes: {
587
+ date: string;
588
+ title: string;
589
+ fieldId: string;
590
+ status?: "pending" | "in-progress" | "completed" | "cancelled" | undefined;
591
+ inventoryItemId?: string | undefined;
592
+ plannedQuantity?: number | undefined;
593
+ assignedTo?: string | undefined;
594
+ notes?: string | undefined;
595
+ };
596
+ };
597
+ }>;
598
+ path: "/farms/:farmId/tasks";
599
+ responses: {
600
+ 201: z.ZodObject<{
601
+ data: z.ZodObject<{
602
+ type: z.ZodLiteral<string>;
603
+ id: z.ZodString;
604
+ attributes: z.ZodObject<{
605
+ title: z.ZodString;
606
+ fieldId: z.ZodString;
607
+ fieldName: z.ZodOptional<z.ZodString>;
608
+ date: z.ZodString;
609
+ status: z.ZodEnum<["pending", "in-progress", "completed", "cancelled"]>;
610
+ inventoryItemId: z.ZodNullable<z.ZodString>;
611
+ inventoryItemName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
612
+ plannedQuantity: z.ZodNullable<z.ZodNumber>;
613
+ actualQuantity: z.ZodNullable<z.ZodNumber>;
614
+ assignedTo: z.ZodNullable<z.ZodString>;
615
+ assignedToName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
616
+ assignedBy: z.ZodNullable<z.ZodString>;
617
+ assignedDate: z.ZodNullable<z.ZodString>;
618
+ notes: z.ZodOptional<z.ZodArray<z.ZodObject<{
619
+ id: z.ZodString;
620
+ authorId: z.ZodString;
621
+ authorName: z.ZodString;
622
+ text: z.ZodString;
623
+ timestamp: z.ZodString;
624
+ photos: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
625
+ }, "strip", z.ZodTypeAny, {
626
+ id: string;
627
+ authorId: string;
628
+ authorName: string;
629
+ text: string;
630
+ timestamp: string;
631
+ photos?: string[] | undefined;
632
+ }, {
633
+ id: string;
634
+ authorId: string;
635
+ authorName: string;
636
+ text: string;
637
+ timestamp: string;
638
+ photos?: string[] | undefined;
639
+ }>, "many">>;
640
+ } & {
641
+ createdAt: z.ZodString;
642
+ updatedAt: z.ZodString;
643
+ }, "strip", z.ZodTypeAny, {
644
+ status: "pending" | "in-progress" | "completed" | "cancelled";
645
+ date: string;
646
+ title: string;
647
+ createdAt: string;
648
+ updatedAt: string;
649
+ fieldId: string;
650
+ inventoryItemId: string | null;
651
+ plannedQuantity: number | null;
652
+ actualQuantity: number | null;
653
+ assignedTo: string | null;
654
+ assignedBy: string | null;
655
+ assignedDate: string | null;
656
+ fieldName?: string | undefined;
657
+ inventoryItemName?: string | null | undefined;
658
+ assignedToName?: string | null | undefined;
659
+ notes?: {
660
+ id: string;
661
+ authorId: string;
662
+ authorName: string;
663
+ text: string;
664
+ timestamp: string;
665
+ photos?: string[] | undefined;
666
+ }[] | undefined;
667
+ }, {
668
+ status: "pending" | "in-progress" | "completed" | "cancelled";
669
+ date: string;
670
+ title: string;
671
+ createdAt: string;
672
+ updatedAt: string;
673
+ fieldId: string;
674
+ inventoryItemId: string | null;
675
+ plannedQuantity: number | null;
676
+ actualQuantity: number | null;
677
+ assignedTo: string | null;
678
+ assignedBy: string | null;
679
+ assignedDate: string | null;
680
+ fieldName?: string | undefined;
681
+ inventoryItemName?: string | null | undefined;
682
+ assignedToName?: string | null | undefined;
683
+ notes?: {
684
+ id: string;
685
+ authorId: string;
686
+ authorName: string;
687
+ text: string;
688
+ timestamp: string;
689
+ photos?: string[] | undefined;
690
+ }[] | undefined;
691
+ }>;
692
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
693
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
694
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
695
+ }, "strip", z.ZodTypeAny, {
696
+ type: string;
697
+ id: string;
698
+ attributes: {
699
+ status: "pending" | "in-progress" | "completed" | "cancelled";
700
+ date: string;
701
+ title: string;
702
+ createdAt: string;
703
+ updatedAt: string;
704
+ fieldId: string;
705
+ inventoryItemId: string | null;
706
+ plannedQuantity: number | null;
707
+ actualQuantity: number | null;
708
+ assignedTo: string | null;
709
+ assignedBy: string | null;
710
+ assignedDate: string | null;
711
+ fieldName?: string | undefined;
712
+ inventoryItemName?: string | null | undefined;
713
+ assignedToName?: string | null | undefined;
714
+ notes?: {
715
+ id: string;
716
+ authorId: string;
717
+ authorName: string;
718
+ text: string;
719
+ timestamp: string;
720
+ photos?: string[] | undefined;
721
+ }[] | undefined;
722
+ };
723
+ relationships?: Record<string, unknown> | undefined;
724
+ links?: Record<string, string> | undefined;
725
+ meta?: Record<string, unknown> | undefined;
726
+ }, {
727
+ type: string;
728
+ id: string;
729
+ attributes: {
730
+ status: "pending" | "in-progress" | "completed" | "cancelled";
731
+ date: string;
732
+ title: string;
733
+ createdAt: string;
734
+ updatedAt: string;
735
+ fieldId: string;
736
+ inventoryItemId: string | null;
737
+ plannedQuantity: number | null;
738
+ actualQuantity: number | null;
739
+ assignedTo: string | null;
740
+ assignedBy: string | null;
741
+ assignedDate: string | null;
742
+ fieldName?: string | undefined;
743
+ inventoryItemName?: string | null | undefined;
744
+ assignedToName?: string | null | undefined;
745
+ notes?: {
746
+ id: string;
747
+ authorId: string;
748
+ authorName: string;
749
+ text: string;
750
+ timestamp: string;
751
+ photos?: string[] | undefined;
752
+ }[] | undefined;
753
+ };
754
+ relationships?: Record<string, unknown> | undefined;
755
+ links?: Record<string, string> | undefined;
756
+ meta?: Record<string, unknown> | undefined;
757
+ }>;
758
+ included: z.ZodOptional<z.ZodArray<z.ZodObject<{
759
+ type: z.ZodString;
760
+ id: z.ZodString;
761
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
762
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
763
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
764
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
765
+ }, "strip", z.ZodTypeAny, {
766
+ type: string;
767
+ id: string;
768
+ attributes?: Record<string, unknown> | undefined;
769
+ relationships?: Record<string, unknown> | undefined;
770
+ links?: Record<string, string> | undefined;
771
+ meta?: Record<string, unknown> | undefined;
772
+ }, {
773
+ type: string;
774
+ id: string;
775
+ attributes?: Record<string, unknown> | undefined;
776
+ relationships?: Record<string, unknown> | undefined;
777
+ links?: Record<string, string> | undefined;
778
+ meta?: Record<string, unknown> | undefined;
779
+ }>, "many">>;
780
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
781
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
782
+ }, "strip", z.ZodTypeAny, {
783
+ data: {
784
+ type: string;
785
+ id: string;
786
+ attributes: {
787
+ status: "pending" | "in-progress" | "completed" | "cancelled";
788
+ date: string;
789
+ title: string;
790
+ createdAt: string;
791
+ updatedAt: string;
792
+ fieldId: string;
793
+ inventoryItemId: string | null;
794
+ plannedQuantity: number | null;
795
+ actualQuantity: number | null;
796
+ assignedTo: string | null;
797
+ assignedBy: string | null;
798
+ assignedDate: string | null;
799
+ fieldName?: string | undefined;
800
+ inventoryItemName?: string | null | undefined;
801
+ assignedToName?: string | null | undefined;
802
+ notes?: {
803
+ id: string;
804
+ authorId: string;
805
+ authorName: string;
806
+ text: string;
807
+ timestamp: string;
808
+ photos?: string[] | undefined;
809
+ }[] | undefined;
810
+ };
811
+ relationships?: Record<string, unknown> | undefined;
812
+ links?: Record<string, string> | undefined;
813
+ meta?: Record<string, unknown> | undefined;
814
+ };
815
+ links?: Record<string, string> | undefined;
816
+ meta?: Record<string, unknown> | undefined;
817
+ included?: {
818
+ type: string;
819
+ id: string;
820
+ attributes?: Record<string, unknown> | undefined;
821
+ relationships?: Record<string, unknown> | undefined;
822
+ links?: Record<string, string> | undefined;
823
+ meta?: Record<string, unknown> | undefined;
824
+ }[] | undefined;
825
+ }, {
826
+ data: {
827
+ type: string;
828
+ id: string;
829
+ attributes: {
830
+ status: "pending" | "in-progress" | "completed" | "cancelled";
831
+ date: string;
832
+ title: string;
833
+ createdAt: string;
834
+ updatedAt: string;
835
+ fieldId: string;
836
+ inventoryItemId: string | null;
837
+ plannedQuantity: number | null;
838
+ actualQuantity: number | null;
839
+ assignedTo: string | null;
840
+ assignedBy: string | null;
841
+ assignedDate: string | null;
842
+ fieldName?: string | undefined;
843
+ inventoryItemName?: string | null | undefined;
844
+ assignedToName?: string | null | undefined;
845
+ notes?: {
846
+ id: string;
847
+ authorId: string;
848
+ authorName: string;
849
+ text: string;
850
+ timestamp: string;
851
+ photos?: string[] | undefined;
852
+ }[] | undefined;
853
+ };
854
+ relationships?: Record<string, unknown> | undefined;
855
+ links?: Record<string, string> | undefined;
856
+ meta?: Record<string, unknown> | undefined;
857
+ };
858
+ links?: Record<string, string> | undefined;
859
+ meta?: Record<string, unknown> | undefined;
860
+ included?: {
861
+ type: string;
862
+ id: string;
863
+ attributes?: Record<string, unknown> | undefined;
864
+ relationships?: Record<string, unknown> | undefined;
865
+ links?: Record<string, string> | undefined;
866
+ meta?: Record<string, unknown> | undefined;
867
+ }[] | undefined;
868
+ }>;
869
+ 400: z.ZodObject<{
870
+ errors: z.ZodArray<z.ZodObject<{
871
+ id: z.ZodOptional<z.ZodString>;
872
+ links: z.ZodOptional<z.ZodObject<{
873
+ about: z.ZodOptional<z.ZodString>;
874
+ }, "strip", z.ZodTypeAny, {
875
+ about?: string | undefined;
876
+ }, {
877
+ about?: string | undefined;
878
+ }>>;
879
+ status: z.ZodOptional<z.ZodString>;
880
+ code: z.ZodOptional<z.ZodString>;
881
+ title: z.ZodOptional<z.ZodString>;
882
+ detail: z.ZodOptional<z.ZodString>;
883
+ source: z.ZodOptional<z.ZodObject<{
884
+ pointer: z.ZodOptional<z.ZodString>;
885
+ parameter: z.ZodOptional<z.ZodString>;
886
+ }, "strip", z.ZodTypeAny, {
887
+ pointer?: string | undefined;
888
+ parameter?: string | undefined;
889
+ }, {
890
+ pointer?: string | undefined;
891
+ parameter?: string | undefined;
892
+ }>>;
893
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
894
+ }, "strip", z.ZodTypeAny, {
895
+ status?: string | undefined;
896
+ code?: string | undefined;
897
+ id?: string | undefined;
898
+ links?: {
899
+ about?: string | undefined;
900
+ } | undefined;
901
+ meta?: Record<string, unknown> | undefined;
902
+ title?: string | undefined;
903
+ detail?: string | undefined;
904
+ source?: {
905
+ pointer?: string | undefined;
906
+ parameter?: string | undefined;
907
+ } | undefined;
908
+ }, {
909
+ status?: string | undefined;
910
+ code?: string | undefined;
911
+ id?: string | undefined;
912
+ links?: {
913
+ about?: string | undefined;
914
+ } | undefined;
915
+ meta?: Record<string, unknown> | undefined;
916
+ title?: string | undefined;
917
+ detail?: string | undefined;
918
+ source?: {
919
+ pointer?: string | undefined;
920
+ parameter?: string | undefined;
921
+ } | undefined;
922
+ }>, "many">;
923
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
924
+ }, "strip", z.ZodTypeAny, {
925
+ errors: {
926
+ status?: string | undefined;
927
+ code?: string | undefined;
928
+ id?: string | undefined;
929
+ links?: {
930
+ about?: string | undefined;
931
+ } | undefined;
932
+ meta?: Record<string, unknown> | undefined;
933
+ title?: string | undefined;
934
+ detail?: string | undefined;
935
+ source?: {
936
+ pointer?: string | undefined;
937
+ parameter?: string | undefined;
938
+ } | undefined;
939
+ }[];
940
+ meta?: Record<string, unknown> | undefined;
941
+ }, {
942
+ errors: {
943
+ status?: string | undefined;
944
+ code?: string | undefined;
945
+ id?: string | undefined;
946
+ links?: {
947
+ about?: string | undefined;
948
+ } | undefined;
949
+ meta?: Record<string, unknown> | undefined;
950
+ title?: string | undefined;
951
+ detail?: string | undefined;
952
+ source?: {
953
+ pointer?: string | undefined;
954
+ parameter?: string | undefined;
955
+ } | undefined;
956
+ }[];
957
+ meta?: Record<string, unknown> | undefined;
958
+ }>;
959
+ 404: z.ZodObject<{
960
+ errors: z.ZodArray<z.ZodObject<{
961
+ id: z.ZodOptional<z.ZodString>;
962
+ links: z.ZodOptional<z.ZodObject<{
963
+ about: z.ZodOptional<z.ZodString>;
964
+ }, "strip", z.ZodTypeAny, {
965
+ about?: string | undefined;
966
+ }, {
967
+ about?: string | undefined;
968
+ }>>;
969
+ status: z.ZodOptional<z.ZodString>;
970
+ code: z.ZodOptional<z.ZodString>;
971
+ title: z.ZodOptional<z.ZodString>;
972
+ detail: z.ZodOptional<z.ZodString>;
973
+ source: z.ZodOptional<z.ZodObject<{
974
+ pointer: z.ZodOptional<z.ZodString>;
975
+ parameter: z.ZodOptional<z.ZodString>;
976
+ }, "strip", z.ZodTypeAny, {
977
+ pointer?: string | undefined;
978
+ parameter?: string | undefined;
979
+ }, {
980
+ pointer?: string | undefined;
981
+ parameter?: string | undefined;
982
+ }>>;
983
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
984
+ }, "strip", z.ZodTypeAny, {
985
+ status?: string | undefined;
986
+ code?: string | undefined;
987
+ id?: string | undefined;
988
+ links?: {
989
+ about?: string | undefined;
990
+ } | undefined;
991
+ meta?: Record<string, unknown> | undefined;
992
+ title?: string | undefined;
993
+ detail?: string | undefined;
994
+ source?: {
995
+ pointer?: string | undefined;
996
+ parameter?: string | undefined;
997
+ } | undefined;
998
+ }, {
999
+ status?: string | undefined;
1000
+ code?: string | undefined;
1001
+ id?: string | undefined;
1002
+ links?: {
1003
+ about?: string | undefined;
1004
+ } | undefined;
1005
+ meta?: Record<string, unknown> | undefined;
1006
+ title?: string | undefined;
1007
+ detail?: string | undefined;
1008
+ source?: {
1009
+ pointer?: string | undefined;
1010
+ parameter?: string | undefined;
1011
+ } | undefined;
1012
+ }>, "many">;
1013
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1014
+ }, "strip", z.ZodTypeAny, {
1015
+ errors: {
1016
+ status?: string | undefined;
1017
+ code?: string | undefined;
1018
+ id?: string | undefined;
1019
+ links?: {
1020
+ about?: string | undefined;
1021
+ } | undefined;
1022
+ meta?: Record<string, unknown> | undefined;
1023
+ title?: string | undefined;
1024
+ detail?: string | undefined;
1025
+ source?: {
1026
+ pointer?: string | undefined;
1027
+ parameter?: string | undefined;
1028
+ } | undefined;
1029
+ }[];
1030
+ meta?: Record<string, unknown> | undefined;
1031
+ }, {
1032
+ errors: {
1033
+ status?: string | undefined;
1034
+ code?: string | undefined;
1035
+ id?: string | undefined;
1036
+ links?: {
1037
+ about?: string | undefined;
1038
+ } | undefined;
1039
+ meta?: Record<string, unknown> | undefined;
1040
+ title?: string | undefined;
1041
+ detail?: string | undefined;
1042
+ source?: {
1043
+ pointer?: string | undefined;
1044
+ parameter?: string | undefined;
1045
+ } | undefined;
1046
+ }[];
1047
+ meta?: Record<string, unknown> | undefined;
1048
+ }>;
1049
+ 401: z.ZodObject<{
1050
+ errors: z.ZodArray<z.ZodObject<{
1051
+ id: z.ZodOptional<z.ZodString>;
1052
+ links: z.ZodOptional<z.ZodObject<{
1053
+ about: z.ZodOptional<z.ZodString>;
1054
+ }, "strip", z.ZodTypeAny, {
1055
+ about?: string | undefined;
1056
+ }, {
1057
+ about?: string | undefined;
1058
+ }>>;
1059
+ status: z.ZodOptional<z.ZodString>;
1060
+ code: z.ZodOptional<z.ZodString>;
1061
+ title: z.ZodOptional<z.ZodString>;
1062
+ detail: z.ZodOptional<z.ZodString>;
1063
+ source: z.ZodOptional<z.ZodObject<{
1064
+ pointer: z.ZodOptional<z.ZodString>;
1065
+ parameter: z.ZodOptional<z.ZodString>;
1066
+ }, "strip", z.ZodTypeAny, {
1067
+ pointer?: string | undefined;
1068
+ parameter?: string | undefined;
1069
+ }, {
1070
+ pointer?: string | undefined;
1071
+ parameter?: string | undefined;
1072
+ }>>;
1073
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1074
+ }, "strip", z.ZodTypeAny, {
1075
+ status?: string | undefined;
1076
+ code?: string | undefined;
1077
+ id?: string | undefined;
1078
+ links?: {
1079
+ about?: string | undefined;
1080
+ } | undefined;
1081
+ meta?: Record<string, unknown> | undefined;
1082
+ title?: string | undefined;
1083
+ detail?: string | undefined;
1084
+ source?: {
1085
+ pointer?: string | undefined;
1086
+ parameter?: string | undefined;
1087
+ } | undefined;
1088
+ }, {
1089
+ status?: string | undefined;
1090
+ code?: string | undefined;
1091
+ id?: string | undefined;
1092
+ links?: {
1093
+ about?: string | undefined;
1094
+ } | undefined;
1095
+ meta?: Record<string, unknown> | undefined;
1096
+ title?: string | undefined;
1097
+ detail?: string | undefined;
1098
+ source?: {
1099
+ pointer?: string | undefined;
1100
+ parameter?: string | undefined;
1101
+ } | undefined;
1102
+ }>, "many">;
1103
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1104
+ }, "strip", z.ZodTypeAny, {
1105
+ errors: {
1106
+ status?: string | undefined;
1107
+ code?: string | undefined;
1108
+ id?: string | undefined;
1109
+ links?: {
1110
+ about?: string | undefined;
1111
+ } | undefined;
1112
+ meta?: Record<string, unknown> | undefined;
1113
+ title?: string | undefined;
1114
+ detail?: string | undefined;
1115
+ source?: {
1116
+ pointer?: string | undefined;
1117
+ parameter?: string | undefined;
1118
+ } | undefined;
1119
+ }[];
1120
+ meta?: Record<string, unknown> | undefined;
1121
+ }, {
1122
+ errors: {
1123
+ status?: string | undefined;
1124
+ code?: string | undefined;
1125
+ id?: string | undefined;
1126
+ links?: {
1127
+ about?: string | undefined;
1128
+ } | undefined;
1129
+ meta?: Record<string, unknown> | undefined;
1130
+ title?: string | undefined;
1131
+ detail?: string | undefined;
1132
+ source?: {
1133
+ pointer?: string | undefined;
1134
+ parameter?: string | undefined;
1135
+ } | undefined;
1136
+ }[];
1137
+ meta?: Record<string, unknown> | undefined;
1138
+ }>;
1139
+ 422: z.ZodObject<{
1140
+ errors: z.ZodArray<z.ZodObject<{
1141
+ id: z.ZodOptional<z.ZodString>;
1142
+ links: z.ZodOptional<z.ZodObject<{
1143
+ about: z.ZodOptional<z.ZodString>;
1144
+ }, "strip", z.ZodTypeAny, {
1145
+ about?: string | undefined;
1146
+ }, {
1147
+ about?: string | undefined;
1148
+ }>>;
1149
+ status: z.ZodOptional<z.ZodString>;
1150
+ code: z.ZodOptional<z.ZodString>;
1151
+ title: z.ZodOptional<z.ZodString>;
1152
+ detail: z.ZodOptional<z.ZodString>;
1153
+ source: z.ZodOptional<z.ZodObject<{
1154
+ pointer: z.ZodOptional<z.ZodString>;
1155
+ parameter: z.ZodOptional<z.ZodString>;
1156
+ }, "strip", z.ZodTypeAny, {
1157
+ pointer?: string | undefined;
1158
+ parameter?: string | undefined;
1159
+ }, {
1160
+ pointer?: string | undefined;
1161
+ parameter?: string | undefined;
1162
+ }>>;
1163
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1164
+ }, "strip", z.ZodTypeAny, {
1165
+ status?: string | undefined;
1166
+ code?: string | undefined;
1167
+ id?: string | undefined;
1168
+ links?: {
1169
+ about?: string | undefined;
1170
+ } | undefined;
1171
+ meta?: Record<string, unknown> | undefined;
1172
+ title?: string | undefined;
1173
+ detail?: string | undefined;
1174
+ source?: {
1175
+ pointer?: string | undefined;
1176
+ parameter?: string | undefined;
1177
+ } | undefined;
1178
+ }, {
1179
+ status?: string | undefined;
1180
+ code?: string | undefined;
1181
+ id?: string | undefined;
1182
+ links?: {
1183
+ about?: string | undefined;
1184
+ } | undefined;
1185
+ meta?: Record<string, unknown> | undefined;
1186
+ title?: string | undefined;
1187
+ detail?: string | undefined;
1188
+ source?: {
1189
+ pointer?: string | undefined;
1190
+ parameter?: string | undefined;
1191
+ } | undefined;
1192
+ }>, "many">;
1193
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1194
+ }, "strip", z.ZodTypeAny, {
1195
+ errors: {
1196
+ status?: string | undefined;
1197
+ code?: string | undefined;
1198
+ id?: string | undefined;
1199
+ links?: {
1200
+ about?: string | undefined;
1201
+ } | undefined;
1202
+ meta?: Record<string, unknown> | undefined;
1203
+ title?: string | undefined;
1204
+ detail?: string | undefined;
1205
+ source?: {
1206
+ pointer?: string | undefined;
1207
+ parameter?: string | undefined;
1208
+ } | undefined;
1209
+ }[];
1210
+ meta?: Record<string, unknown> | undefined;
1211
+ }, {
1212
+ errors: {
1213
+ status?: string | undefined;
1214
+ code?: string | undefined;
1215
+ id?: string | undefined;
1216
+ links?: {
1217
+ about?: string | undefined;
1218
+ } | undefined;
1219
+ meta?: Record<string, unknown> | undefined;
1220
+ title?: string | undefined;
1221
+ detail?: string | undefined;
1222
+ source?: {
1223
+ pointer?: string | undefined;
1224
+ parameter?: string | undefined;
1225
+ } | undefined;
1226
+ }[];
1227
+ meta?: Record<string, unknown> | undefined;
1228
+ }>;
1229
+ };
1230
+ };
1231
+ getTask: {
1232
+ pathParams: z.ZodObject<{
1233
+ farmId: z.ZodString;
1234
+ id: z.ZodString;
1235
+ }, "strip", z.ZodTypeAny, {
1236
+ id: string;
1237
+ farmId: string;
1238
+ }, {
1239
+ id: string;
1240
+ farmId: string;
1241
+ }>;
1242
+ query: z.ZodObject<{
1243
+ include: z.ZodOptional<z.ZodString>;
1244
+ }, "strip", z.ZodTypeAny, {
1245
+ include?: string | undefined;
1246
+ }, {
1247
+ include?: string | undefined;
1248
+ }>;
1249
+ summary: "Get task by ID";
1250
+ description: "Get detailed information about a specific task";
1251
+ method: "GET";
1252
+ path: "/farms/:farmId/tasks/:id";
1253
+ responses: {
1254
+ 200: z.ZodObject<{
1255
+ data: z.ZodObject<{
1256
+ type: z.ZodLiteral<string>;
1257
+ id: z.ZodString;
1258
+ attributes: z.ZodObject<{
1259
+ title: z.ZodString;
1260
+ fieldId: z.ZodString;
1261
+ fieldName: z.ZodOptional<z.ZodString>;
1262
+ date: z.ZodString;
1263
+ status: z.ZodEnum<["pending", "in-progress", "completed", "cancelled"]>;
1264
+ inventoryItemId: z.ZodNullable<z.ZodString>;
1265
+ inventoryItemName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1266
+ plannedQuantity: z.ZodNullable<z.ZodNumber>;
1267
+ actualQuantity: z.ZodNullable<z.ZodNumber>;
1268
+ assignedTo: z.ZodNullable<z.ZodString>;
1269
+ assignedToName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1270
+ assignedBy: z.ZodNullable<z.ZodString>;
1271
+ assignedDate: z.ZodNullable<z.ZodString>;
1272
+ notes: z.ZodOptional<z.ZodArray<z.ZodObject<{
1273
+ id: z.ZodString;
1274
+ authorId: z.ZodString;
1275
+ authorName: z.ZodString;
1276
+ text: z.ZodString;
1277
+ timestamp: z.ZodString;
1278
+ photos: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1279
+ }, "strip", z.ZodTypeAny, {
1280
+ id: string;
1281
+ authorId: string;
1282
+ authorName: string;
1283
+ text: string;
1284
+ timestamp: string;
1285
+ photos?: string[] | undefined;
1286
+ }, {
1287
+ id: string;
1288
+ authorId: string;
1289
+ authorName: string;
1290
+ text: string;
1291
+ timestamp: string;
1292
+ photos?: string[] | undefined;
1293
+ }>, "many">>;
1294
+ } & {
1295
+ createdAt: z.ZodString;
1296
+ updatedAt: z.ZodString;
1297
+ }, "strip", z.ZodTypeAny, {
1298
+ status: "pending" | "in-progress" | "completed" | "cancelled";
1299
+ date: string;
1300
+ title: string;
1301
+ createdAt: string;
1302
+ updatedAt: string;
1303
+ fieldId: string;
1304
+ inventoryItemId: string | null;
1305
+ plannedQuantity: number | null;
1306
+ actualQuantity: number | null;
1307
+ assignedTo: string | null;
1308
+ assignedBy: string | null;
1309
+ assignedDate: string | null;
1310
+ fieldName?: string | undefined;
1311
+ inventoryItemName?: string | null | undefined;
1312
+ assignedToName?: string | null | undefined;
1313
+ notes?: {
1314
+ id: string;
1315
+ authorId: string;
1316
+ authorName: string;
1317
+ text: string;
1318
+ timestamp: string;
1319
+ photos?: string[] | undefined;
1320
+ }[] | undefined;
1321
+ }, {
1322
+ status: "pending" | "in-progress" | "completed" | "cancelled";
1323
+ date: string;
1324
+ title: string;
1325
+ createdAt: string;
1326
+ updatedAt: string;
1327
+ fieldId: string;
1328
+ inventoryItemId: string | null;
1329
+ plannedQuantity: number | null;
1330
+ actualQuantity: number | null;
1331
+ assignedTo: string | null;
1332
+ assignedBy: string | null;
1333
+ assignedDate: string | null;
1334
+ fieldName?: string | undefined;
1335
+ inventoryItemName?: string | null | undefined;
1336
+ assignedToName?: string | null | undefined;
1337
+ notes?: {
1338
+ id: string;
1339
+ authorId: string;
1340
+ authorName: string;
1341
+ text: string;
1342
+ timestamp: string;
1343
+ photos?: string[] | undefined;
1344
+ }[] | undefined;
1345
+ }>;
1346
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1347
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1348
+ } & {
1349
+ relationships: z.ZodOptional<z.ZodObject<{
1350
+ field: z.ZodOptional<z.ZodObject<{
1351
+ links: z.ZodObject<{
1352
+ related: z.ZodString;
1353
+ }, "strip", z.ZodTypeAny, {
1354
+ related: string;
1355
+ }, {
1356
+ related: string;
1357
+ }>;
1358
+ }, "strip", z.ZodTypeAny, {
1359
+ links: {
1360
+ related: string;
1361
+ };
1362
+ }, {
1363
+ links: {
1364
+ related: string;
1365
+ };
1366
+ }>>;
1367
+ inventory_item: z.ZodOptional<z.ZodObject<{
1368
+ links: z.ZodObject<{
1369
+ related: z.ZodString;
1370
+ }, "strip", z.ZodTypeAny, {
1371
+ related: string;
1372
+ }, {
1373
+ related: string;
1374
+ }>;
1375
+ }, "strip", z.ZodTypeAny, {
1376
+ links: {
1377
+ related: string;
1378
+ };
1379
+ }, {
1380
+ links: {
1381
+ related: string;
1382
+ };
1383
+ }>>;
1384
+ assigned_to: z.ZodOptional<z.ZodObject<{
1385
+ links: z.ZodObject<{
1386
+ related: z.ZodString;
1387
+ }, "strip", z.ZodTypeAny, {
1388
+ related: string;
1389
+ }, {
1390
+ related: string;
1391
+ }>;
1392
+ }, "strip", z.ZodTypeAny, {
1393
+ links: {
1394
+ related: string;
1395
+ };
1396
+ }, {
1397
+ links: {
1398
+ related: string;
1399
+ };
1400
+ }>>;
1401
+ }, "strip", z.ZodTypeAny, {
1402
+ field?: {
1403
+ links: {
1404
+ related: string;
1405
+ };
1406
+ } | undefined;
1407
+ inventory_item?: {
1408
+ links: {
1409
+ related: string;
1410
+ };
1411
+ } | undefined;
1412
+ assigned_to?: {
1413
+ links: {
1414
+ related: string;
1415
+ };
1416
+ } | undefined;
1417
+ }, {
1418
+ field?: {
1419
+ links: {
1420
+ related: string;
1421
+ };
1422
+ } | undefined;
1423
+ inventory_item?: {
1424
+ links: {
1425
+ related: string;
1426
+ };
1427
+ } | undefined;
1428
+ assigned_to?: {
1429
+ links: {
1430
+ related: string;
1431
+ };
1432
+ } | undefined;
1433
+ }>>;
1434
+ }, "strip", z.ZodTypeAny, {
1435
+ type: string;
1436
+ id: string;
1437
+ attributes: {
1438
+ status: "pending" | "in-progress" | "completed" | "cancelled";
1439
+ date: string;
1440
+ title: string;
1441
+ createdAt: string;
1442
+ updatedAt: string;
1443
+ fieldId: string;
1444
+ inventoryItemId: string | null;
1445
+ plannedQuantity: number | null;
1446
+ actualQuantity: number | null;
1447
+ assignedTo: string | null;
1448
+ assignedBy: string | null;
1449
+ assignedDate: string | null;
1450
+ fieldName?: string | undefined;
1451
+ inventoryItemName?: string | null | undefined;
1452
+ assignedToName?: string | null | undefined;
1453
+ notes?: {
1454
+ id: string;
1455
+ authorId: string;
1456
+ authorName: string;
1457
+ text: string;
1458
+ timestamp: string;
1459
+ photos?: string[] | undefined;
1460
+ }[] | undefined;
1461
+ };
1462
+ relationships?: {
1463
+ field?: {
1464
+ links: {
1465
+ related: string;
1466
+ };
1467
+ } | undefined;
1468
+ inventory_item?: {
1469
+ links: {
1470
+ related: string;
1471
+ };
1472
+ } | undefined;
1473
+ assigned_to?: {
1474
+ links: {
1475
+ related: string;
1476
+ };
1477
+ } | undefined;
1478
+ } | undefined;
1479
+ links?: Record<string, string> | undefined;
1480
+ meta?: Record<string, unknown> | undefined;
1481
+ }, {
1482
+ type: string;
1483
+ id: string;
1484
+ attributes: {
1485
+ status: "pending" | "in-progress" | "completed" | "cancelled";
1486
+ date: string;
1487
+ title: string;
1488
+ createdAt: string;
1489
+ updatedAt: string;
1490
+ fieldId: string;
1491
+ inventoryItemId: string | null;
1492
+ plannedQuantity: number | null;
1493
+ actualQuantity: number | null;
1494
+ assignedTo: string | null;
1495
+ assignedBy: string | null;
1496
+ assignedDate: string | null;
1497
+ fieldName?: string | undefined;
1498
+ inventoryItemName?: string | null | undefined;
1499
+ assignedToName?: string | null | undefined;
1500
+ notes?: {
1501
+ id: string;
1502
+ authorId: string;
1503
+ authorName: string;
1504
+ text: string;
1505
+ timestamp: string;
1506
+ photos?: string[] | undefined;
1507
+ }[] | undefined;
1508
+ };
1509
+ relationships?: {
1510
+ field?: {
1511
+ links: {
1512
+ related: string;
1513
+ };
1514
+ } | undefined;
1515
+ inventory_item?: {
1516
+ links: {
1517
+ related: string;
1518
+ };
1519
+ } | undefined;
1520
+ assigned_to?: {
1521
+ links: {
1522
+ related: string;
1523
+ };
1524
+ } | undefined;
1525
+ } | undefined;
1526
+ links?: Record<string, string> | undefined;
1527
+ meta?: Record<string, unknown> | undefined;
1528
+ }>;
1529
+ included: z.ZodOptional<z.ZodArray<z.ZodObject<{
1530
+ type: z.ZodString;
1531
+ id: z.ZodString;
1532
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1533
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1534
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1535
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1536
+ }, "strip", z.ZodTypeAny, {
1537
+ type: string;
1538
+ id: string;
1539
+ attributes?: Record<string, unknown> | undefined;
1540
+ relationships?: Record<string, unknown> | undefined;
1541
+ links?: Record<string, string> | undefined;
1542
+ meta?: Record<string, unknown> | undefined;
1543
+ }, {
1544
+ type: string;
1545
+ id: string;
1546
+ attributes?: Record<string, unknown> | undefined;
1547
+ relationships?: Record<string, unknown> | undefined;
1548
+ links?: Record<string, string> | undefined;
1549
+ meta?: Record<string, unknown> | undefined;
1550
+ }>, "many">>;
1551
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1552
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1553
+ }, "strip", z.ZodTypeAny, {
1554
+ data: {
1555
+ type: string;
1556
+ id: string;
1557
+ attributes: {
1558
+ status: "pending" | "in-progress" | "completed" | "cancelled";
1559
+ date: string;
1560
+ title: string;
1561
+ createdAt: string;
1562
+ updatedAt: string;
1563
+ fieldId: string;
1564
+ inventoryItemId: string | null;
1565
+ plannedQuantity: number | null;
1566
+ actualQuantity: number | null;
1567
+ assignedTo: string | null;
1568
+ assignedBy: string | null;
1569
+ assignedDate: string | null;
1570
+ fieldName?: string | undefined;
1571
+ inventoryItemName?: string | null | undefined;
1572
+ assignedToName?: string | null | undefined;
1573
+ notes?: {
1574
+ id: string;
1575
+ authorId: string;
1576
+ authorName: string;
1577
+ text: string;
1578
+ timestamp: string;
1579
+ photos?: string[] | undefined;
1580
+ }[] | undefined;
1581
+ };
1582
+ relationships?: {
1583
+ field?: {
1584
+ links: {
1585
+ related: string;
1586
+ };
1587
+ } | undefined;
1588
+ inventory_item?: {
1589
+ links: {
1590
+ related: string;
1591
+ };
1592
+ } | undefined;
1593
+ assigned_to?: {
1594
+ links: {
1595
+ related: string;
1596
+ };
1597
+ } | undefined;
1598
+ } | undefined;
1599
+ links?: Record<string, string> | undefined;
1600
+ meta?: Record<string, unknown> | undefined;
1601
+ };
1602
+ links?: Record<string, string> | undefined;
1603
+ meta?: Record<string, unknown> | undefined;
1604
+ included?: {
1605
+ type: string;
1606
+ id: string;
1607
+ attributes?: Record<string, unknown> | undefined;
1608
+ relationships?: Record<string, unknown> | undefined;
1609
+ links?: Record<string, string> | undefined;
1610
+ meta?: Record<string, unknown> | undefined;
1611
+ }[] | undefined;
1612
+ }, {
1613
+ data: {
1614
+ type: string;
1615
+ id: string;
1616
+ attributes: {
1617
+ status: "pending" | "in-progress" | "completed" | "cancelled";
1618
+ date: string;
1619
+ title: string;
1620
+ createdAt: string;
1621
+ updatedAt: string;
1622
+ fieldId: string;
1623
+ inventoryItemId: string | null;
1624
+ plannedQuantity: number | null;
1625
+ actualQuantity: number | null;
1626
+ assignedTo: string | null;
1627
+ assignedBy: string | null;
1628
+ assignedDate: string | null;
1629
+ fieldName?: string | undefined;
1630
+ inventoryItemName?: string | null | undefined;
1631
+ assignedToName?: string | null | undefined;
1632
+ notes?: {
1633
+ id: string;
1634
+ authorId: string;
1635
+ authorName: string;
1636
+ text: string;
1637
+ timestamp: string;
1638
+ photos?: string[] | undefined;
1639
+ }[] | undefined;
1640
+ };
1641
+ relationships?: {
1642
+ field?: {
1643
+ links: {
1644
+ related: string;
1645
+ };
1646
+ } | undefined;
1647
+ inventory_item?: {
1648
+ links: {
1649
+ related: string;
1650
+ };
1651
+ } | undefined;
1652
+ assigned_to?: {
1653
+ links: {
1654
+ related: string;
1655
+ };
1656
+ } | undefined;
1657
+ } | undefined;
1658
+ links?: Record<string, string> | undefined;
1659
+ meta?: Record<string, unknown> | undefined;
1660
+ };
1661
+ links?: Record<string, string> | undefined;
1662
+ meta?: Record<string, unknown> | undefined;
1663
+ included?: {
1664
+ type: string;
1665
+ id: string;
1666
+ attributes?: Record<string, unknown> | undefined;
1667
+ relationships?: Record<string, unknown> | undefined;
1668
+ links?: Record<string, string> | undefined;
1669
+ meta?: Record<string, unknown> | undefined;
1670
+ }[] | undefined;
1671
+ }>;
1672
+ 404: z.ZodObject<{
1673
+ errors: z.ZodArray<z.ZodObject<{
1674
+ id: z.ZodOptional<z.ZodString>;
1675
+ links: z.ZodOptional<z.ZodObject<{
1676
+ about: z.ZodOptional<z.ZodString>;
1677
+ }, "strip", z.ZodTypeAny, {
1678
+ about?: string | undefined;
1679
+ }, {
1680
+ about?: string | undefined;
1681
+ }>>;
1682
+ status: z.ZodOptional<z.ZodString>;
1683
+ code: z.ZodOptional<z.ZodString>;
1684
+ title: z.ZodOptional<z.ZodString>;
1685
+ detail: z.ZodOptional<z.ZodString>;
1686
+ source: z.ZodOptional<z.ZodObject<{
1687
+ pointer: z.ZodOptional<z.ZodString>;
1688
+ parameter: z.ZodOptional<z.ZodString>;
1689
+ }, "strip", z.ZodTypeAny, {
1690
+ pointer?: string | undefined;
1691
+ parameter?: string | undefined;
1692
+ }, {
1693
+ pointer?: string | undefined;
1694
+ parameter?: string | undefined;
1695
+ }>>;
1696
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1697
+ }, "strip", z.ZodTypeAny, {
1698
+ status?: string | undefined;
1699
+ code?: string | undefined;
1700
+ id?: string | undefined;
1701
+ links?: {
1702
+ about?: string | undefined;
1703
+ } | undefined;
1704
+ meta?: Record<string, unknown> | undefined;
1705
+ title?: string | undefined;
1706
+ detail?: string | undefined;
1707
+ source?: {
1708
+ pointer?: string | undefined;
1709
+ parameter?: string | undefined;
1710
+ } | undefined;
1711
+ }, {
1712
+ status?: string | undefined;
1713
+ code?: string | undefined;
1714
+ id?: string | undefined;
1715
+ links?: {
1716
+ about?: string | undefined;
1717
+ } | undefined;
1718
+ meta?: Record<string, unknown> | undefined;
1719
+ title?: string | undefined;
1720
+ detail?: string | undefined;
1721
+ source?: {
1722
+ pointer?: string | undefined;
1723
+ parameter?: string | undefined;
1724
+ } | undefined;
1725
+ }>, "many">;
1726
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1727
+ }, "strip", z.ZodTypeAny, {
1728
+ errors: {
1729
+ status?: string | undefined;
1730
+ code?: string | undefined;
1731
+ id?: string | undefined;
1732
+ links?: {
1733
+ about?: string | undefined;
1734
+ } | undefined;
1735
+ meta?: Record<string, unknown> | undefined;
1736
+ title?: string | undefined;
1737
+ detail?: string | undefined;
1738
+ source?: {
1739
+ pointer?: string | undefined;
1740
+ parameter?: string | undefined;
1741
+ } | undefined;
1742
+ }[];
1743
+ meta?: Record<string, unknown> | undefined;
1744
+ }, {
1745
+ errors: {
1746
+ status?: string | undefined;
1747
+ code?: string | undefined;
1748
+ id?: string | undefined;
1749
+ links?: {
1750
+ about?: string | undefined;
1751
+ } | undefined;
1752
+ meta?: Record<string, unknown> | undefined;
1753
+ title?: string | undefined;
1754
+ detail?: string | undefined;
1755
+ source?: {
1756
+ pointer?: string | undefined;
1757
+ parameter?: string | undefined;
1758
+ } | undefined;
1759
+ }[];
1760
+ meta?: Record<string, unknown> | undefined;
1761
+ }>;
1762
+ 401: z.ZodObject<{
1763
+ errors: z.ZodArray<z.ZodObject<{
1764
+ id: z.ZodOptional<z.ZodString>;
1765
+ links: z.ZodOptional<z.ZodObject<{
1766
+ about: z.ZodOptional<z.ZodString>;
1767
+ }, "strip", z.ZodTypeAny, {
1768
+ about?: string | undefined;
1769
+ }, {
1770
+ about?: string | undefined;
1771
+ }>>;
1772
+ status: z.ZodOptional<z.ZodString>;
1773
+ code: z.ZodOptional<z.ZodString>;
1774
+ title: z.ZodOptional<z.ZodString>;
1775
+ detail: z.ZodOptional<z.ZodString>;
1776
+ source: z.ZodOptional<z.ZodObject<{
1777
+ pointer: z.ZodOptional<z.ZodString>;
1778
+ parameter: z.ZodOptional<z.ZodString>;
1779
+ }, "strip", z.ZodTypeAny, {
1780
+ pointer?: string | undefined;
1781
+ parameter?: string | undefined;
1782
+ }, {
1783
+ pointer?: string | undefined;
1784
+ parameter?: string | undefined;
1785
+ }>>;
1786
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1787
+ }, "strip", z.ZodTypeAny, {
1788
+ status?: string | undefined;
1789
+ code?: string | undefined;
1790
+ id?: string | undefined;
1791
+ links?: {
1792
+ about?: string | undefined;
1793
+ } | undefined;
1794
+ meta?: Record<string, unknown> | undefined;
1795
+ title?: string | undefined;
1796
+ detail?: string | undefined;
1797
+ source?: {
1798
+ pointer?: string | undefined;
1799
+ parameter?: string | undefined;
1800
+ } | undefined;
1801
+ }, {
1802
+ status?: string | undefined;
1803
+ code?: string | undefined;
1804
+ id?: string | undefined;
1805
+ links?: {
1806
+ about?: string | undefined;
1807
+ } | undefined;
1808
+ meta?: Record<string, unknown> | undefined;
1809
+ title?: string | undefined;
1810
+ detail?: string | undefined;
1811
+ source?: {
1812
+ pointer?: string | undefined;
1813
+ parameter?: string | undefined;
1814
+ } | undefined;
1815
+ }>, "many">;
1816
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1817
+ }, "strip", z.ZodTypeAny, {
1818
+ errors: {
1819
+ status?: string | undefined;
1820
+ code?: string | undefined;
1821
+ id?: string | undefined;
1822
+ links?: {
1823
+ about?: string | undefined;
1824
+ } | undefined;
1825
+ meta?: Record<string, unknown> | undefined;
1826
+ title?: string | undefined;
1827
+ detail?: string | undefined;
1828
+ source?: {
1829
+ pointer?: string | undefined;
1830
+ parameter?: string | undefined;
1831
+ } | undefined;
1832
+ }[];
1833
+ meta?: Record<string, unknown> | undefined;
1834
+ }, {
1835
+ errors: {
1836
+ status?: string | undefined;
1837
+ code?: string | undefined;
1838
+ id?: string | undefined;
1839
+ links?: {
1840
+ about?: string | undefined;
1841
+ } | undefined;
1842
+ meta?: Record<string, unknown> | undefined;
1843
+ title?: string | undefined;
1844
+ detail?: string | undefined;
1845
+ source?: {
1846
+ pointer?: string | undefined;
1847
+ parameter?: string | undefined;
1848
+ } | undefined;
1849
+ }[];
1850
+ meta?: Record<string, unknown> | undefined;
1851
+ }>;
1852
+ };
1853
+ };
1854
+ updateTask: {
1855
+ pathParams: z.ZodObject<{
1856
+ farmId: z.ZodString;
1857
+ id: z.ZodString;
1858
+ }, "strip", z.ZodTypeAny, {
1859
+ id: string;
1860
+ farmId: string;
1861
+ }, {
1862
+ id: string;
1863
+ farmId: string;
1864
+ }>;
1865
+ summary: "Update task";
1866
+ description: "Update task information";
1867
+ method: "PATCH";
1868
+ body: z.ZodObject<{
1869
+ data: z.ZodObject<{
1870
+ type: z.ZodLiteral<"tasks">;
1871
+ id: z.ZodString;
1872
+ attributes: z.ZodObject<{
1873
+ title: z.ZodOptional<z.ZodString>;
1874
+ fieldId: z.ZodOptional<z.ZodString>;
1875
+ date: z.ZodOptional<z.ZodString>;
1876
+ status: z.ZodOptional<z.ZodEnum<["pending", "in-progress", "completed", "cancelled"]>>;
1877
+ inventoryItemId: z.ZodOptional<z.ZodString>;
1878
+ plannedQuantity: z.ZodOptional<z.ZodNumber>;
1879
+ actualQuantity: z.ZodOptional<z.ZodNumber>;
1880
+ assignedTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1881
+ }, "strip", z.ZodTypeAny, {
1882
+ status?: "pending" | "in-progress" | "completed" | "cancelled" | undefined;
1883
+ date?: string | undefined;
1884
+ title?: string | undefined;
1885
+ fieldId?: string | undefined;
1886
+ inventoryItemId?: string | undefined;
1887
+ plannedQuantity?: number | undefined;
1888
+ actualQuantity?: number | undefined;
1889
+ assignedTo?: string | null | undefined;
1890
+ }, {
1891
+ status?: "pending" | "in-progress" | "completed" | "cancelled" | undefined;
1892
+ date?: string | undefined;
1893
+ title?: string | undefined;
1894
+ fieldId?: string | undefined;
1895
+ inventoryItemId?: string | undefined;
1896
+ plannedQuantity?: number | undefined;
1897
+ actualQuantity?: number | undefined;
1898
+ assignedTo?: string | null | undefined;
1899
+ }>;
1900
+ }, "strip", z.ZodTypeAny, {
1901
+ type: "tasks";
1902
+ id: string;
1903
+ attributes: {
1904
+ status?: "pending" | "in-progress" | "completed" | "cancelled" | undefined;
1905
+ date?: string | undefined;
1906
+ title?: string | undefined;
1907
+ fieldId?: string | undefined;
1908
+ inventoryItemId?: string | undefined;
1909
+ plannedQuantity?: number | undefined;
1910
+ actualQuantity?: number | undefined;
1911
+ assignedTo?: string | null | undefined;
1912
+ };
1913
+ }, {
1914
+ type: "tasks";
1915
+ id: string;
1916
+ attributes: {
1917
+ status?: "pending" | "in-progress" | "completed" | "cancelled" | undefined;
1918
+ date?: string | undefined;
1919
+ title?: string | undefined;
1920
+ fieldId?: string | undefined;
1921
+ inventoryItemId?: string | undefined;
1922
+ plannedQuantity?: number | undefined;
1923
+ actualQuantity?: number | undefined;
1924
+ assignedTo?: string | null | undefined;
1925
+ };
1926
+ }>;
1927
+ }, "strip", z.ZodTypeAny, {
1928
+ data: {
1929
+ type: "tasks";
1930
+ id: string;
1931
+ attributes: {
1932
+ status?: "pending" | "in-progress" | "completed" | "cancelled" | undefined;
1933
+ date?: string | undefined;
1934
+ title?: string | undefined;
1935
+ fieldId?: string | undefined;
1936
+ inventoryItemId?: string | undefined;
1937
+ plannedQuantity?: number | undefined;
1938
+ actualQuantity?: number | undefined;
1939
+ assignedTo?: string | null | undefined;
1940
+ };
1941
+ };
1942
+ }, {
1943
+ data: {
1944
+ type: "tasks";
1945
+ id: string;
1946
+ attributes: {
1947
+ status?: "pending" | "in-progress" | "completed" | "cancelled" | undefined;
1948
+ date?: string | undefined;
1949
+ title?: string | undefined;
1950
+ fieldId?: string | undefined;
1951
+ inventoryItemId?: string | undefined;
1952
+ plannedQuantity?: number | undefined;
1953
+ actualQuantity?: number | undefined;
1954
+ assignedTo?: string | null | undefined;
1955
+ };
1956
+ };
1957
+ }>;
1958
+ path: "/farms/:farmId/tasks/:id";
1959
+ responses: {
1960
+ 200: z.ZodObject<{
1961
+ data: z.ZodObject<{
1962
+ type: z.ZodLiteral<string>;
1963
+ id: z.ZodString;
1964
+ attributes: z.ZodObject<{
1965
+ title: z.ZodString;
1966
+ fieldId: z.ZodString;
1967
+ fieldName: z.ZodOptional<z.ZodString>;
1968
+ date: z.ZodString;
1969
+ status: z.ZodEnum<["pending", "in-progress", "completed", "cancelled"]>;
1970
+ inventoryItemId: z.ZodNullable<z.ZodString>;
1971
+ inventoryItemName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1972
+ plannedQuantity: z.ZodNullable<z.ZodNumber>;
1973
+ actualQuantity: z.ZodNullable<z.ZodNumber>;
1974
+ assignedTo: z.ZodNullable<z.ZodString>;
1975
+ assignedToName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1976
+ assignedBy: z.ZodNullable<z.ZodString>;
1977
+ assignedDate: z.ZodNullable<z.ZodString>;
1978
+ notes: z.ZodOptional<z.ZodArray<z.ZodObject<{
1979
+ id: z.ZodString;
1980
+ authorId: z.ZodString;
1981
+ authorName: z.ZodString;
1982
+ text: z.ZodString;
1983
+ timestamp: z.ZodString;
1984
+ photos: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1985
+ }, "strip", z.ZodTypeAny, {
1986
+ id: string;
1987
+ authorId: string;
1988
+ authorName: string;
1989
+ text: string;
1990
+ timestamp: string;
1991
+ photos?: string[] | undefined;
1992
+ }, {
1993
+ id: string;
1994
+ authorId: string;
1995
+ authorName: string;
1996
+ text: string;
1997
+ timestamp: string;
1998
+ photos?: string[] | undefined;
1999
+ }>, "many">>;
2000
+ } & {
2001
+ createdAt: z.ZodString;
2002
+ updatedAt: z.ZodString;
2003
+ }, "strip", z.ZodTypeAny, {
2004
+ status: "pending" | "in-progress" | "completed" | "cancelled";
2005
+ date: string;
2006
+ title: string;
2007
+ createdAt: string;
2008
+ updatedAt: string;
2009
+ fieldId: string;
2010
+ inventoryItemId: string | null;
2011
+ plannedQuantity: number | null;
2012
+ actualQuantity: number | null;
2013
+ assignedTo: string | null;
2014
+ assignedBy: string | null;
2015
+ assignedDate: string | null;
2016
+ fieldName?: string | undefined;
2017
+ inventoryItemName?: string | null | undefined;
2018
+ assignedToName?: string | null | undefined;
2019
+ notes?: {
2020
+ id: string;
2021
+ authorId: string;
2022
+ authorName: string;
2023
+ text: string;
2024
+ timestamp: string;
2025
+ photos?: string[] | undefined;
2026
+ }[] | undefined;
2027
+ }, {
2028
+ status: "pending" | "in-progress" | "completed" | "cancelled";
2029
+ date: string;
2030
+ title: string;
2031
+ createdAt: string;
2032
+ updatedAt: string;
2033
+ fieldId: string;
2034
+ inventoryItemId: string | null;
2035
+ plannedQuantity: number | null;
2036
+ actualQuantity: number | null;
2037
+ assignedTo: string | null;
2038
+ assignedBy: string | null;
2039
+ assignedDate: string | null;
2040
+ fieldName?: string | undefined;
2041
+ inventoryItemName?: string | null | undefined;
2042
+ assignedToName?: string | null | undefined;
2043
+ notes?: {
2044
+ id: string;
2045
+ authorId: string;
2046
+ authorName: string;
2047
+ text: string;
2048
+ timestamp: string;
2049
+ photos?: string[] | undefined;
2050
+ }[] | undefined;
2051
+ }>;
2052
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2053
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2054
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2055
+ }, "strip", z.ZodTypeAny, {
2056
+ type: string;
2057
+ id: string;
2058
+ attributes: {
2059
+ status: "pending" | "in-progress" | "completed" | "cancelled";
2060
+ date: string;
2061
+ title: string;
2062
+ createdAt: string;
2063
+ updatedAt: string;
2064
+ fieldId: string;
2065
+ inventoryItemId: string | null;
2066
+ plannedQuantity: number | null;
2067
+ actualQuantity: number | null;
2068
+ assignedTo: string | null;
2069
+ assignedBy: string | null;
2070
+ assignedDate: string | null;
2071
+ fieldName?: string | undefined;
2072
+ inventoryItemName?: string | null | undefined;
2073
+ assignedToName?: string | null | undefined;
2074
+ notes?: {
2075
+ id: string;
2076
+ authorId: string;
2077
+ authorName: string;
2078
+ text: string;
2079
+ timestamp: string;
2080
+ photos?: string[] | undefined;
2081
+ }[] | undefined;
2082
+ };
2083
+ relationships?: Record<string, unknown> | undefined;
2084
+ links?: Record<string, string> | undefined;
2085
+ meta?: Record<string, unknown> | undefined;
2086
+ }, {
2087
+ type: string;
2088
+ id: string;
2089
+ attributes: {
2090
+ status: "pending" | "in-progress" | "completed" | "cancelled";
2091
+ date: string;
2092
+ title: string;
2093
+ createdAt: string;
2094
+ updatedAt: string;
2095
+ fieldId: string;
2096
+ inventoryItemId: string | null;
2097
+ plannedQuantity: number | null;
2098
+ actualQuantity: number | null;
2099
+ assignedTo: string | null;
2100
+ assignedBy: string | null;
2101
+ assignedDate: string | null;
2102
+ fieldName?: string | undefined;
2103
+ inventoryItemName?: string | null | undefined;
2104
+ assignedToName?: string | null | undefined;
2105
+ notes?: {
2106
+ id: string;
2107
+ authorId: string;
2108
+ authorName: string;
2109
+ text: string;
2110
+ timestamp: string;
2111
+ photos?: string[] | undefined;
2112
+ }[] | undefined;
2113
+ };
2114
+ relationships?: Record<string, unknown> | undefined;
2115
+ links?: Record<string, string> | undefined;
2116
+ meta?: Record<string, unknown> | undefined;
2117
+ }>;
2118
+ included: z.ZodOptional<z.ZodArray<z.ZodObject<{
2119
+ type: z.ZodString;
2120
+ id: z.ZodString;
2121
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2122
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2123
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2124
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2125
+ }, "strip", z.ZodTypeAny, {
2126
+ type: string;
2127
+ id: string;
2128
+ attributes?: Record<string, unknown> | undefined;
2129
+ relationships?: Record<string, unknown> | undefined;
2130
+ links?: Record<string, string> | undefined;
2131
+ meta?: Record<string, unknown> | undefined;
2132
+ }, {
2133
+ type: string;
2134
+ id: string;
2135
+ attributes?: Record<string, unknown> | undefined;
2136
+ relationships?: Record<string, unknown> | undefined;
2137
+ links?: Record<string, string> | undefined;
2138
+ meta?: Record<string, unknown> | undefined;
2139
+ }>, "many">>;
2140
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2141
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2142
+ }, "strip", z.ZodTypeAny, {
2143
+ data: {
2144
+ type: string;
2145
+ id: string;
2146
+ attributes: {
2147
+ status: "pending" | "in-progress" | "completed" | "cancelled";
2148
+ date: string;
2149
+ title: string;
2150
+ createdAt: string;
2151
+ updatedAt: string;
2152
+ fieldId: string;
2153
+ inventoryItemId: string | null;
2154
+ plannedQuantity: number | null;
2155
+ actualQuantity: number | null;
2156
+ assignedTo: string | null;
2157
+ assignedBy: string | null;
2158
+ assignedDate: string | null;
2159
+ fieldName?: string | undefined;
2160
+ inventoryItemName?: string | null | undefined;
2161
+ assignedToName?: string | null | undefined;
2162
+ notes?: {
2163
+ id: string;
2164
+ authorId: string;
2165
+ authorName: string;
2166
+ text: string;
2167
+ timestamp: string;
2168
+ photos?: string[] | undefined;
2169
+ }[] | undefined;
2170
+ };
2171
+ relationships?: Record<string, unknown> | undefined;
2172
+ links?: Record<string, string> | undefined;
2173
+ meta?: Record<string, unknown> | undefined;
2174
+ };
2175
+ links?: Record<string, string> | undefined;
2176
+ meta?: Record<string, unknown> | undefined;
2177
+ included?: {
2178
+ type: string;
2179
+ id: string;
2180
+ attributes?: Record<string, unknown> | undefined;
2181
+ relationships?: Record<string, unknown> | undefined;
2182
+ links?: Record<string, string> | undefined;
2183
+ meta?: Record<string, unknown> | undefined;
2184
+ }[] | undefined;
2185
+ }, {
2186
+ data: {
2187
+ type: string;
2188
+ id: string;
2189
+ attributes: {
2190
+ status: "pending" | "in-progress" | "completed" | "cancelled";
2191
+ date: string;
2192
+ title: string;
2193
+ createdAt: string;
2194
+ updatedAt: string;
2195
+ fieldId: string;
2196
+ inventoryItemId: string | null;
2197
+ plannedQuantity: number | null;
2198
+ actualQuantity: number | null;
2199
+ assignedTo: string | null;
2200
+ assignedBy: string | null;
2201
+ assignedDate: string | null;
2202
+ fieldName?: string | undefined;
2203
+ inventoryItemName?: string | null | undefined;
2204
+ assignedToName?: string | null | undefined;
2205
+ notes?: {
2206
+ id: string;
2207
+ authorId: string;
2208
+ authorName: string;
2209
+ text: string;
2210
+ timestamp: string;
2211
+ photos?: string[] | undefined;
2212
+ }[] | undefined;
2213
+ };
2214
+ relationships?: Record<string, unknown> | undefined;
2215
+ links?: Record<string, string> | undefined;
2216
+ meta?: Record<string, unknown> | undefined;
2217
+ };
2218
+ links?: Record<string, string> | undefined;
2219
+ meta?: Record<string, unknown> | undefined;
2220
+ included?: {
2221
+ type: string;
2222
+ id: string;
2223
+ attributes?: Record<string, unknown> | undefined;
2224
+ relationships?: Record<string, unknown> | undefined;
2225
+ links?: Record<string, string> | undefined;
2226
+ meta?: Record<string, unknown> | undefined;
2227
+ }[] | undefined;
2228
+ }>;
2229
+ 400: z.ZodObject<{
2230
+ errors: z.ZodArray<z.ZodObject<{
2231
+ id: z.ZodOptional<z.ZodString>;
2232
+ links: z.ZodOptional<z.ZodObject<{
2233
+ about: z.ZodOptional<z.ZodString>;
2234
+ }, "strip", z.ZodTypeAny, {
2235
+ about?: string | undefined;
2236
+ }, {
2237
+ about?: string | undefined;
2238
+ }>>;
2239
+ status: z.ZodOptional<z.ZodString>;
2240
+ code: z.ZodOptional<z.ZodString>;
2241
+ title: z.ZodOptional<z.ZodString>;
2242
+ detail: z.ZodOptional<z.ZodString>;
2243
+ source: z.ZodOptional<z.ZodObject<{
2244
+ pointer: z.ZodOptional<z.ZodString>;
2245
+ parameter: z.ZodOptional<z.ZodString>;
2246
+ }, "strip", z.ZodTypeAny, {
2247
+ pointer?: string | undefined;
2248
+ parameter?: string | undefined;
2249
+ }, {
2250
+ pointer?: string | undefined;
2251
+ parameter?: string | undefined;
2252
+ }>>;
2253
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2254
+ }, "strip", z.ZodTypeAny, {
2255
+ status?: string | undefined;
2256
+ code?: string | undefined;
2257
+ id?: string | undefined;
2258
+ links?: {
2259
+ about?: string | undefined;
2260
+ } | undefined;
2261
+ meta?: Record<string, unknown> | undefined;
2262
+ title?: string | undefined;
2263
+ detail?: string | undefined;
2264
+ source?: {
2265
+ pointer?: string | undefined;
2266
+ parameter?: string | undefined;
2267
+ } | undefined;
2268
+ }, {
2269
+ status?: string | undefined;
2270
+ code?: string | undefined;
2271
+ id?: string | undefined;
2272
+ links?: {
2273
+ about?: string | undefined;
2274
+ } | undefined;
2275
+ meta?: Record<string, unknown> | undefined;
2276
+ title?: string | undefined;
2277
+ detail?: string | undefined;
2278
+ source?: {
2279
+ pointer?: string | undefined;
2280
+ parameter?: string | undefined;
2281
+ } | undefined;
2282
+ }>, "many">;
2283
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2284
+ }, "strip", z.ZodTypeAny, {
2285
+ errors: {
2286
+ status?: string | undefined;
2287
+ code?: string | undefined;
2288
+ id?: string | undefined;
2289
+ links?: {
2290
+ about?: string | undefined;
2291
+ } | undefined;
2292
+ meta?: Record<string, unknown> | undefined;
2293
+ title?: string | undefined;
2294
+ detail?: string | undefined;
2295
+ source?: {
2296
+ pointer?: string | undefined;
2297
+ parameter?: string | undefined;
2298
+ } | undefined;
2299
+ }[];
2300
+ meta?: Record<string, unknown> | undefined;
2301
+ }, {
2302
+ errors: {
2303
+ status?: string | undefined;
2304
+ code?: string | undefined;
2305
+ id?: string | undefined;
2306
+ links?: {
2307
+ about?: string | undefined;
2308
+ } | undefined;
2309
+ meta?: Record<string, unknown> | undefined;
2310
+ title?: string | undefined;
2311
+ detail?: string | undefined;
2312
+ source?: {
2313
+ pointer?: string | undefined;
2314
+ parameter?: string | undefined;
2315
+ } | undefined;
2316
+ }[];
2317
+ meta?: Record<string, unknown> | undefined;
2318
+ }>;
2319
+ 404: z.ZodObject<{
2320
+ errors: z.ZodArray<z.ZodObject<{
2321
+ id: z.ZodOptional<z.ZodString>;
2322
+ links: z.ZodOptional<z.ZodObject<{
2323
+ about: z.ZodOptional<z.ZodString>;
2324
+ }, "strip", z.ZodTypeAny, {
2325
+ about?: string | undefined;
2326
+ }, {
2327
+ about?: string | undefined;
2328
+ }>>;
2329
+ status: z.ZodOptional<z.ZodString>;
2330
+ code: z.ZodOptional<z.ZodString>;
2331
+ title: z.ZodOptional<z.ZodString>;
2332
+ detail: z.ZodOptional<z.ZodString>;
2333
+ source: z.ZodOptional<z.ZodObject<{
2334
+ pointer: z.ZodOptional<z.ZodString>;
2335
+ parameter: z.ZodOptional<z.ZodString>;
2336
+ }, "strip", z.ZodTypeAny, {
2337
+ pointer?: string | undefined;
2338
+ parameter?: string | undefined;
2339
+ }, {
2340
+ pointer?: string | undefined;
2341
+ parameter?: string | undefined;
2342
+ }>>;
2343
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2344
+ }, "strip", z.ZodTypeAny, {
2345
+ status?: string | undefined;
2346
+ code?: string | undefined;
2347
+ id?: string | undefined;
2348
+ links?: {
2349
+ about?: string | undefined;
2350
+ } | undefined;
2351
+ meta?: Record<string, unknown> | undefined;
2352
+ title?: string | undefined;
2353
+ detail?: string | undefined;
2354
+ source?: {
2355
+ pointer?: string | undefined;
2356
+ parameter?: string | undefined;
2357
+ } | undefined;
2358
+ }, {
2359
+ status?: string | undefined;
2360
+ code?: string | undefined;
2361
+ id?: string | undefined;
2362
+ links?: {
2363
+ about?: string | undefined;
2364
+ } | undefined;
2365
+ meta?: Record<string, unknown> | undefined;
2366
+ title?: string | undefined;
2367
+ detail?: string | undefined;
2368
+ source?: {
2369
+ pointer?: string | undefined;
2370
+ parameter?: string | undefined;
2371
+ } | undefined;
2372
+ }>, "many">;
2373
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2374
+ }, "strip", z.ZodTypeAny, {
2375
+ errors: {
2376
+ status?: string | undefined;
2377
+ code?: string | undefined;
2378
+ id?: string | undefined;
2379
+ links?: {
2380
+ about?: string | undefined;
2381
+ } | undefined;
2382
+ meta?: Record<string, unknown> | undefined;
2383
+ title?: string | undefined;
2384
+ detail?: string | undefined;
2385
+ source?: {
2386
+ pointer?: string | undefined;
2387
+ parameter?: string | undefined;
2388
+ } | undefined;
2389
+ }[];
2390
+ meta?: Record<string, unknown> | undefined;
2391
+ }, {
2392
+ errors: {
2393
+ status?: string | undefined;
2394
+ code?: string | undefined;
2395
+ id?: string | undefined;
2396
+ links?: {
2397
+ about?: string | undefined;
2398
+ } | undefined;
2399
+ meta?: Record<string, unknown> | undefined;
2400
+ title?: string | undefined;
2401
+ detail?: string | undefined;
2402
+ source?: {
2403
+ pointer?: string | undefined;
2404
+ parameter?: string | undefined;
2405
+ } | undefined;
2406
+ }[];
2407
+ meta?: Record<string, unknown> | undefined;
2408
+ }>;
2409
+ 401: z.ZodObject<{
2410
+ errors: z.ZodArray<z.ZodObject<{
2411
+ id: z.ZodOptional<z.ZodString>;
2412
+ links: z.ZodOptional<z.ZodObject<{
2413
+ about: z.ZodOptional<z.ZodString>;
2414
+ }, "strip", z.ZodTypeAny, {
2415
+ about?: string | undefined;
2416
+ }, {
2417
+ about?: string | undefined;
2418
+ }>>;
2419
+ status: z.ZodOptional<z.ZodString>;
2420
+ code: z.ZodOptional<z.ZodString>;
2421
+ title: z.ZodOptional<z.ZodString>;
2422
+ detail: z.ZodOptional<z.ZodString>;
2423
+ source: z.ZodOptional<z.ZodObject<{
2424
+ pointer: z.ZodOptional<z.ZodString>;
2425
+ parameter: z.ZodOptional<z.ZodString>;
2426
+ }, "strip", z.ZodTypeAny, {
2427
+ pointer?: string | undefined;
2428
+ parameter?: string | undefined;
2429
+ }, {
2430
+ pointer?: string | undefined;
2431
+ parameter?: string | undefined;
2432
+ }>>;
2433
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2434
+ }, "strip", z.ZodTypeAny, {
2435
+ status?: string | undefined;
2436
+ code?: string | undefined;
2437
+ id?: string | undefined;
2438
+ links?: {
2439
+ about?: string | undefined;
2440
+ } | undefined;
2441
+ meta?: Record<string, unknown> | undefined;
2442
+ title?: string | undefined;
2443
+ detail?: string | undefined;
2444
+ source?: {
2445
+ pointer?: string | undefined;
2446
+ parameter?: string | undefined;
2447
+ } | undefined;
2448
+ }, {
2449
+ status?: string | undefined;
2450
+ code?: string | undefined;
2451
+ id?: string | undefined;
2452
+ links?: {
2453
+ about?: string | undefined;
2454
+ } | undefined;
2455
+ meta?: Record<string, unknown> | undefined;
2456
+ title?: string | undefined;
2457
+ detail?: string | undefined;
2458
+ source?: {
2459
+ pointer?: string | undefined;
2460
+ parameter?: string | undefined;
2461
+ } | undefined;
2462
+ }>, "many">;
2463
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2464
+ }, "strip", z.ZodTypeAny, {
2465
+ errors: {
2466
+ status?: string | undefined;
2467
+ code?: string | undefined;
2468
+ id?: string | undefined;
2469
+ links?: {
2470
+ about?: string | undefined;
2471
+ } | undefined;
2472
+ meta?: Record<string, unknown> | undefined;
2473
+ title?: string | undefined;
2474
+ detail?: string | undefined;
2475
+ source?: {
2476
+ pointer?: string | undefined;
2477
+ parameter?: string | undefined;
2478
+ } | undefined;
2479
+ }[];
2480
+ meta?: Record<string, unknown> | undefined;
2481
+ }, {
2482
+ errors: {
2483
+ status?: string | undefined;
2484
+ code?: string | undefined;
2485
+ id?: string | undefined;
2486
+ links?: {
2487
+ about?: string | undefined;
2488
+ } | undefined;
2489
+ meta?: Record<string, unknown> | undefined;
2490
+ title?: string | undefined;
2491
+ detail?: string | undefined;
2492
+ source?: {
2493
+ pointer?: string | undefined;
2494
+ parameter?: string | undefined;
2495
+ } | undefined;
2496
+ }[];
2497
+ meta?: Record<string, unknown> | undefined;
2498
+ }>;
2499
+ 422: z.ZodObject<{
2500
+ errors: z.ZodArray<z.ZodObject<{
2501
+ id: z.ZodOptional<z.ZodString>;
2502
+ links: z.ZodOptional<z.ZodObject<{
2503
+ about: z.ZodOptional<z.ZodString>;
2504
+ }, "strip", z.ZodTypeAny, {
2505
+ about?: string | undefined;
2506
+ }, {
2507
+ about?: string | undefined;
2508
+ }>>;
2509
+ status: z.ZodOptional<z.ZodString>;
2510
+ code: z.ZodOptional<z.ZodString>;
2511
+ title: z.ZodOptional<z.ZodString>;
2512
+ detail: z.ZodOptional<z.ZodString>;
2513
+ source: z.ZodOptional<z.ZodObject<{
2514
+ pointer: z.ZodOptional<z.ZodString>;
2515
+ parameter: z.ZodOptional<z.ZodString>;
2516
+ }, "strip", z.ZodTypeAny, {
2517
+ pointer?: string | undefined;
2518
+ parameter?: string | undefined;
2519
+ }, {
2520
+ pointer?: string | undefined;
2521
+ parameter?: string | undefined;
2522
+ }>>;
2523
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2524
+ }, "strip", z.ZodTypeAny, {
2525
+ status?: string | undefined;
2526
+ code?: string | undefined;
2527
+ id?: string | undefined;
2528
+ links?: {
2529
+ about?: string | undefined;
2530
+ } | undefined;
2531
+ meta?: Record<string, unknown> | undefined;
2532
+ title?: string | undefined;
2533
+ detail?: string | undefined;
2534
+ source?: {
2535
+ pointer?: string | undefined;
2536
+ parameter?: string | undefined;
2537
+ } | undefined;
2538
+ }, {
2539
+ status?: string | undefined;
2540
+ code?: string | undefined;
2541
+ id?: string | undefined;
2542
+ links?: {
2543
+ about?: string | undefined;
2544
+ } | undefined;
2545
+ meta?: Record<string, unknown> | undefined;
2546
+ title?: string | undefined;
2547
+ detail?: string | undefined;
2548
+ source?: {
2549
+ pointer?: string | undefined;
2550
+ parameter?: string | undefined;
2551
+ } | undefined;
2552
+ }>, "many">;
2553
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2554
+ }, "strip", z.ZodTypeAny, {
2555
+ errors: {
2556
+ status?: string | undefined;
2557
+ code?: string | undefined;
2558
+ id?: string | undefined;
2559
+ links?: {
2560
+ about?: string | undefined;
2561
+ } | undefined;
2562
+ meta?: Record<string, unknown> | undefined;
2563
+ title?: string | undefined;
2564
+ detail?: string | undefined;
2565
+ source?: {
2566
+ pointer?: string | undefined;
2567
+ parameter?: string | undefined;
2568
+ } | undefined;
2569
+ }[];
2570
+ meta?: Record<string, unknown> | undefined;
2571
+ }, {
2572
+ errors: {
2573
+ status?: string | undefined;
2574
+ code?: string | undefined;
2575
+ id?: string | undefined;
2576
+ links?: {
2577
+ about?: string | undefined;
2578
+ } | undefined;
2579
+ meta?: Record<string, unknown> | undefined;
2580
+ title?: string | undefined;
2581
+ detail?: string | undefined;
2582
+ source?: {
2583
+ pointer?: string | undefined;
2584
+ parameter?: string | undefined;
2585
+ } | undefined;
2586
+ }[];
2587
+ meta?: Record<string, unknown> | undefined;
2588
+ }>;
2589
+ };
2590
+ };
2591
+ completeTask: {
2592
+ pathParams: z.ZodObject<{
2593
+ farmId: z.ZodString;
2594
+ id: z.ZodString;
2595
+ }, "strip", z.ZodTypeAny, {
2596
+ id: string;
2597
+ farmId: string;
2598
+ }, {
2599
+ id: string;
2600
+ farmId: string;
2601
+ }>;
2602
+ summary: "Complete a task";
2603
+ description: "Mark a task as completed and optionally deduct inventory";
2604
+ method: "POST";
2605
+ body: z.ZodObject<{
2606
+ data: z.ZodObject<{
2607
+ type: z.ZodLiteral<"tasks">;
2608
+ id: z.ZodString;
2609
+ attributes: z.ZodObject<{
2610
+ actualQuantity: z.ZodOptional<z.ZodNumber>;
2611
+ notes: z.ZodOptional<z.ZodString>;
2612
+ }, "strip", z.ZodTypeAny, {
2613
+ actualQuantity?: number | undefined;
2614
+ notes?: string | undefined;
2615
+ }, {
2616
+ actualQuantity?: number | undefined;
2617
+ notes?: string | undefined;
2618
+ }>;
2619
+ }, "strip", z.ZodTypeAny, {
2620
+ type: "tasks";
2621
+ id: string;
2622
+ attributes: {
2623
+ actualQuantity?: number | undefined;
2624
+ notes?: string | undefined;
2625
+ };
2626
+ }, {
2627
+ type: "tasks";
2628
+ id: string;
2629
+ attributes: {
2630
+ actualQuantity?: number | undefined;
2631
+ notes?: string | undefined;
2632
+ };
2633
+ }>;
2634
+ }, "strip", z.ZodTypeAny, {
2635
+ data: {
2636
+ type: "tasks";
2637
+ id: string;
2638
+ attributes: {
2639
+ actualQuantity?: number | undefined;
2640
+ notes?: string | undefined;
2641
+ };
2642
+ };
2643
+ }, {
2644
+ data: {
2645
+ type: "tasks";
2646
+ id: string;
2647
+ attributes: {
2648
+ actualQuantity?: number | undefined;
2649
+ notes?: string | undefined;
2650
+ };
2651
+ };
2652
+ }>;
2653
+ path: "/farms/:farmId/tasks/:id/complete";
2654
+ responses: {
2655
+ 200: z.ZodObject<{
2656
+ data: z.ZodObject<{
2657
+ type: z.ZodLiteral<string>;
2658
+ id: z.ZodString;
2659
+ attributes: z.ZodObject<{
2660
+ title: z.ZodString;
2661
+ fieldId: z.ZodString;
2662
+ fieldName: z.ZodOptional<z.ZodString>;
2663
+ date: z.ZodString;
2664
+ status: z.ZodEnum<["pending", "in-progress", "completed", "cancelled"]>;
2665
+ inventoryItemId: z.ZodNullable<z.ZodString>;
2666
+ inventoryItemName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2667
+ plannedQuantity: z.ZodNullable<z.ZodNumber>;
2668
+ actualQuantity: z.ZodNullable<z.ZodNumber>;
2669
+ assignedTo: z.ZodNullable<z.ZodString>;
2670
+ assignedToName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2671
+ assignedBy: z.ZodNullable<z.ZodString>;
2672
+ assignedDate: z.ZodNullable<z.ZodString>;
2673
+ notes: z.ZodOptional<z.ZodArray<z.ZodObject<{
2674
+ id: z.ZodString;
2675
+ authorId: z.ZodString;
2676
+ authorName: z.ZodString;
2677
+ text: z.ZodString;
2678
+ timestamp: z.ZodString;
2679
+ photos: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2680
+ }, "strip", z.ZodTypeAny, {
2681
+ id: string;
2682
+ authorId: string;
2683
+ authorName: string;
2684
+ text: string;
2685
+ timestamp: string;
2686
+ photos?: string[] | undefined;
2687
+ }, {
2688
+ id: string;
2689
+ authorId: string;
2690
+ authorName: string;
2691
+ text: string;
2692
+ timestamp: string;
2693
+ photos?: string[] | undefined;
2694
+ }>, "many">>;
2695
+ } & {
2696
+ createdAt: z.ZodString;
2697
+ updatedAt: z.ZodString;
2698
+ }, "strip", z.ZodTypeAny, {
2699
+ status: "pending" | "in-progress" | "completed" | "cancelled";
2700
+ date: string;
2701
+ title: string;
2702
+ createdAt: string;
2703
+ updatedAt: string;
2704
+ fieldId: string;
2705
+ inventoryItemId: string | null;
2706
+ plannedQuantity: number | null;
2707
+ actualQuantity: number | null;
2708
+ assignedTo: string | null;
2709
+ assignedBy: string | null;
2710
+ assignedDate: string | null;
2711
+ fieldName?: string | undefined;
2712
+ inventoryItemName?: string | null | undefined;
2713
+ assignedToName?: string | null | undefined;
2714
+ notes?: {
2715
+ id: string;
2716
+ authorId: string;
2717
+ authorName: string;
2718
+ text: string;
2719
+ timestamp: string;
2720
+ photos?: string[] | undefined;
2721
+ }[] | undefined;
2722
+ }, {
2723
+ status: "pending" | "in-progress" | "completed" | "cancelled";
2724
+ date: string;
2725
+ title: string;
2726
+ createdAt: string;
2727
+ updatedAt: string;
2728
+ fieldId: string;
2729
+ inventoryItemId: string | null;
2730
+ plannedQuantity: number | null;
2731
+ actualQuantity: number | null;
2732
+ assignedTo: string | null;
2733
+ assignedBy: string | null;
2734
+ assignedDate: string | null;
2735
+ fieldName?: string | undefined;
2736
+ inventoryItemName?: string | null | undefined;
2737
+ assignedToName?: string | null | undefined;
2738
+ notes?: {
2739
+ id: string;
2740
+ authorId: string;
2741
+ authorName: string;
2742
+ text: string;
2743
+ timestamp: string;
2744
+ photos?: string[] | undefined;
2745
+ }[] | undefined;
2746
+ }>;
2747
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2748
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2749
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2750
+ }, "strip", z.ZodTypeAny, {
2751
+ type: string;
2752
+ id: string;
2753
+ attributes: {
2754
+ status: "pending" | "in-progress" | "completed" | "cancelled";
2755
+ date: string;
2756
+ title: string;
2757
+ createdAt: string;
2758
+ updatedAt: string;
2759
+ fieldId: string;
2760
+ inventoryItemId: string | null;
2761
+ plannedQuantity: number | null;
2762
+ actualQuantity: number | null;
2763
+ assignedTo: string | null;
2764
+ assignedBy: string | null;
2765
+ assignedDate: string | null;
2766
+ fieldName?: string | undefined;
2767
+ inventoryItemName?: string | null | undefined;
2768
+ assignedToName?: string | null | undefined;
2769
+ notes?: {
2770
+ id: string;
2771
+ authorId: string;
2772
+ authorName: string;
2773
+ text: string;
2774
+ timestamp: string;
2775
+ photos?: string[] | undefined;
2776
+ }[] | undefined;
2777
+ };
2778
+ relationships?: Record<string, unknown> | undefined;
2779
+ links?: Record<string, string> | undefined;
2780
+ meta?: Record<string, unknown> | undefined;
2781
+ }, {
2782
+ type: string;
2783
+ id: string;
2784
+ attributes: {
2785
+ status: "pending" | "in-progress" | "completed" | "cancelled";
2786
+ date: string;
2787
+ title: string;
2788
+ createdAt: string;
2789
+ updatedAt: string;
2790
+ fieldId: string;
2791
+ inventoryItemId: string | null;
2792
+ plannedQuantity: number | null;
2793
+ actualQuantity: number | null;
2794
+ assignedTo: string | null;
2795
+ assignedBy: string | null;
2796
+ assignedDate: string | null;
2797
+ fieldName?: string | undefined;
2798
+ inventoryItemName?: string | null | undefined;
2799
+ assignedToName?: string | null | undefined;
2800
+ notes?: {
2801
+ id: string;
2802
+ authorId: string;
2803
+ authorName: string;
2804
+ text: string;
2805
+ timestamp: string;
2806
+ photos?: string[] | undefined;
2807
+ }[] | undefined;
2808
+ };
2809
+ relationships?: Record<string, unknown> | undefined;
2810
+ links?: Record<string, string> | undefined;
2811
+ meta?: Record<string, unknown> | undefined;
2812
+ }>;
2813
+ included: z.ZodOptional<z.ZodArray<z.ZodObject<{
2814
+ type: z.ZodString;
2815
+ id: z.ZodString;
2816
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2817
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2818
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2819
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2820
+ }, "strip", z.ZodTypeAny, {
2821
+ type: string;
2822
+ id: string;
2823
+ attributes?: Record<string, unknown> | undefined;
2824
+ relationships?: Record<string, unknown> | undefined;
2825
+ links?: Record<string, string> | undefined;
2826
+ meta?: Record<string, unknown> | undefined;
2827
+ }, {
2828
+ type: string;
2829
+ id: string;
2830
+ attributes?: Record<string, unknown> | undefined;
2831
+ relationships?: Record<string, unknown> | undefined;
2832
+ links?: Record<string, string> | undefined;
2833
+ meta?: Record<string, unknown> | undefined;
2834
+ }>, "many">>;
2835
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2836
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2837
+ }, "strip", z.ZodTypeAny, {
2838
+ data: {
2839
+ type: string;
2840
+ id: string;
2841
+ attributes: {
2842
+ status: "pending" | "in-progress" | "completed" | "cancelled";
2843
+ date: string;
2844
+ title: string;
2845
+ createdAt: string;
2846
+ updatedAt: string;
2847
+ fieldId: string;
2848
+ inventoryItemId: string | null;
2849
+ plannedQuantity: number | null;
2850
+ actualQuantity: number | null;
2851
+ assignedTo: string | null;
2852
+ assignedBy: string | null;
2853
+ assignedDate: string | null;
2854
+ fieldName?: string | undefined;
2855
+ inventoryItemName?: string | null | undefined;
2856
+ assignedToName?: string | null | undefined;
2857
+ notes?: {
2858
+ id: string;
2859
+ authorId: string;
2860
+ authorName: string;
2861
+ text: string;
2862
+ timestamp: string;
2863
+ photos?: string[] | undefined;
2864
+ }[] | undefined;
2865
+ };
2866
+ relationships?: Record<string, unknown> | undefined;
2867
+ links?: Record<string, string> | undefined;
2868
+ meta?: Record<string, unknown> | undefined;
2869
+ };
2870
+ links?: Record<string, string> | undefined;
2871
+ meta?: Record<string, unknown> | undefined;
2872
+ included?: {
2873
+ type: string;
2874
+ id: string;
2875
+ attributes?: Record<string, unknown> | undefined;
2876
+ relationships?: Record<string, unknown> | undefined;
2877
+ links?: Record<string, string> | undefined;
2878
+ meta?: Record<string, unknown> | undefined;
2879
+ }[] | undefined;
2880
+ }, {
2881
+ data: {
2882
+ type: string;
2883
+ id: string;
2884
+ attributes: {
2885
+ status: "pending" | "in-progress" | "completed" | "cancelled";
2886
+ date: string;
2887
+ title: string;
2888
+ createdAt: string;
2889
+ updatedAt: string;
2890
+ fieldId: string;
2891
+ inventoryItemId: string | null;
2892
+ plannedQuantity: number | null;
2893
+ actualQuantity: number | null;
2894
+ assignedTo: string | null;
2895
+ assignedBy: string | null;
2896
+ assignedDate: string | null;
2897
+ fieldName?: string | undefined;
2898
+ inventoryItemName?: string | null | undefined;
2899
+ assignedToName?: string | null | undefined;
2900
+ notes?: {
2901
+ id: string;
2902
+ authorId: string;
2903
+ authorName: string;
2904
+ text: string;
2905
+ timestamp: string;
2906
+ photos?: string[] | undefined;
2907
+ }[] | undefined;
2908
+ };
2909
+ relationships?: Record<string, unknown> | undefined;
2910
+ links?: Record<string, string> | undefined;
2911
+ meta?: Record<string, unknown> | undefined;
2912
+ };
2913
+ links?: Record<string, string> | undefined;
2914
+ meta?: Record<string, unknown> | undefined;
2915
+ included?: {
2916
+ type: string;
2917
+ id: string;
2918
+ attributes?: Record<string, unknown> | undefined;
2919
+ relationships?: Record<string, unknown> | undefined;
2920
+ links?: Record<string, string> | undefined;
2921
+ meta?: Record<string, unknown> | undefined;
2922
+ }[] | undefined;
2923
+ }>;
2924
+ 400: z.ZodObject<{
2925
+ errors: z.ZodArray<z.ZodObject<{
2926
+ id: z.ZodOptional<z.ZodString>;
2927
+ links: z.ZodOptional<z.ZodObject<{
2928
+ about: z.ZodOptional<z.ZodString>;
2929
+ }, "strip", z.ZodTypeAny, {
2930
+ about?: string | undefined;
2931
+ }, {
2932
+ about?: string | undefined;
2933
+ }>>;
2934
+ status: z.ZodOptional<z.ZodString>;
2935
+ code: z.ZodOptional<z.ZodString>;
2936
+ title: z.ZodOptional<z.ZodString>;
2937
+ detail: z.ZodOptional<z.ZodString>;
2938
+ source: z.ZodOptional<z.ZodObject<{
2939
+ pointer: z.ZodOptional<z.ZodString>;
2940
+ parameter: z.ZodOptional<z.ZodString>;
2941
+ }, "strip", z.ZodTypeAny, {
2942
+ pointer?: string | undefined;
2943
+ parameter?: string | undefined;
2944
+ }, {
2945
+ pointer?: string | undefined;
2946
+ parameter?: string | undefined;
2947
+ }>>;
2948
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2949
+ }, "strip", z.ZodTypeAny, {
2950
+ status?: string | undefined;
2951
+ code?: string | undefined;
2952
+ id?: string | undefined;
2953
+ links?: {
2954
+ about?: string | undefined;
2955
+ } | undefined;
2956
+ meta?: Record<string, unknown> | undefined;
2957
+ title?: string | undefined;
2958
+ detail?: string | undefined;
2959
+ source?: {
2960
+ pointer?: string | undefined;
2961
+ parameter?: string | undefined;
2962
+ } | undefined;
2963
+ }, {
2964
+ status?: string | undefined;
2965
+ code?: string | undefined;
2966
+ id?: string | undefined;
2967
+ links?: {
2968
+ about?: string | undefined;
2969
+ } | undefined;
2970
+ meta?: Record<string, unknown> | undefined;
2971
+ title?: string | undefined;
2972
+ detail?: string | undefined;
2973
+ source?: {
2974
+ pointer?: string | undefined;
2975
+ parameter?: string | undefined;
2976
+ } | undefined;
2977
+ }>, "many">;
2978
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2979
+ }, "strip", z.ZodTypeAny, {
2980
+ errors: {
2981
+ status?: string | undefined;
2982
+ code?: string | undefined;
2983
+ id?: string | undefined;
2984
+ links?: {
2985
+ about?: string | undefined;
2986
+ } | undefined;
2987
+ meta?: Record<string, unknown> | undefined;
2988
+ title?: string | undefined;
2989
+ detail?: string | undefined;
2990
+ source?: {
2991
+ pointer?: string | undefined;
2992
+ parameter?: string | undefined;
2993
+ } | undefined;
2994
+ }[];
2995
+ meta?: Record<string, unknown> | undefined;
2996
+ }, {
2997
+ errors: {
2998
+ status?: string | undefined;
2999
+ code?: string | undefined;
3000
+ id?: string | undefined;
3001
+ links?: {
3002
+ about?: string | undefined;
3003
+ } | undefined;
3004
+ meta?: Record<string, unknown> | undefined;
3005
+ title?: string | undefined;
3006
+ detail?: string | undefined;
3007
+ source?: {
3008
+ pointer?: string | undefined;
3009
+ parameter?: string | undefined;
3010
+ } | undefined;
3011
+ }[];
3012
+ meta?: Record<string, unknown> | undefined;
3013
+ }>;
3014
+ 404: z.ZodObject<{
3015
+ errors: z.ZodArray<z.ZodObject<{
3016
+ id: z.ZodOptional<z.ZodString>;
3017
+ links: z.ZodOptional<z.ZodObject<{
3018
+ about: z.ZodOptional<z.ZodString>;
3019
+ }, "strip", z.ZodTypeAny, {
3020
+ about?: string | undefined;
3021
+ }, {
3022
+ about?: string | undefined;
3023
+ }>>;
3024
+ status: z.ZodOptional<z.ZodString>;
3025
+ code: z.ZodOptional<z.ZodString>;
3026
+ title: z.ZodOptional<z.ZodString>;
3027
+ detail: z.ZodOptional<z.ZodString>;
3028
+ source: z.ZodOptional<z.ZodObject<{
3029
+ pointer: z.ZodOptional<z.ZodString>;
3030
+ parameter: z.ZodOptional<z.ZodString>;
3031
+ }, "strip", z.ZodTypeAny, {
3032
+ pointer?: string | undefined;
3033
+ parameter?: string | undefined;
3034
+ }, {
3035
+ pointer?: string | undefined;
3036
+ parameter?: string | undefined;
3037
+ }>>;
3038
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3039
+ }, "strip", z.ZodTypeAny, {
3040
+ status?: string | undefined;
3041
+ code?: string | undefined;
3042
+ id?: string | undefined;
3043
+ links?: {
3044
+ about?: string | undefined;
3045
+ } | undefined;
3046
+ meta?: Record<string, unknown> | undefined;
3047
+ title?: string | undefined;
3048
+ detail?: string | undefined;
3049
+ source?: {
3050
+ pointer?: string | undefined;
3051
+ parameter?: string | undefined;
3052
+ } | undefined;
3053
+ }, {
3054
+ status?: string | undefined;
3055
+ code?: string | undefined;
3056
+ id?: string | undefined;
3057
+ links?: {
3058
+ about?: string | undefined;
3059
+ } | undefined;
3060
+ meta?: Record<string, unknown> | undefined;
3061
+ title?: string | undefined;
3062
+ detail?: string | undefined;
3063
+ source?: {
3064
+ pointer?: string | undefined;
3065
+ parameter?: string | undefined;
3066
+ } | undefined;
3067
+ }>, "many">;
3068
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3069
+ }, "strip", z.ZodTypeAny, {
3070
+ errors: {
3071
+ status?: string | undefined;
3072
+ code?: string | undefined;
3073
+ id?: string | undefined;
3074
+ links?: {
3075
+ about?: string | undefined;
3076
+ } | undefined;
3077
+ meta?: Record<string, unknown> | undefined;
3078
+ title?: string | undefined;
3079
+ detail?: string | undefined;
3080
+ source?: {
3081
+ pointer?: string | undefined;
3082
+ parameter?: string | undefined;
3083
+ } | undefined;
3084
+ }[];
3085
+ meta?: Record<string, unknown> | undefined;
3086
+ }, {
3087
+ errors: {
3088
+ status?: string | undefined;
3089
+ code?: string | undefined;
3090
+ id?: string | undefined;
3091
+ links?: {
3092
+ about?: string | undefined;
3093
+ } | undefined;
3094
+ meta?: Record<string, unknown> | undefined;
3095
+ title?: string | undefined;
3096
+ detail?: string | undefined;
3097
+ source?: {
3098
+ pointer?: string | undefined;
3099
+ parameter?: string | undefined;
3100
+ } | undefined;
3101
+ }[];
3102
+ meta?: Record<string, unknown> | undefined;
3103
+ }>;
3104
+ 401: z.ZodObject<{
3105
+ errors: z.ZodArray<z.ZodObject<{
3106
+ id: z.ZodOptional<z.ZodString>;
3107
+ links: z.ZodOptional<z.ZodObject<{
3108
+ about: z.ZodOptional<z.ZodString>;
3109
+ }, "strip", z.ZodTypeAny, {
3110
+ about?: string | undefined;
3111
+ }, {
3112
+ about?: string | undefined;
3113
+ }>>;
3114
+ status: z.ZodOptional<z.ZodString>;
3115
+ code: z.ZodOptional<z.ZodString>;
3116
+ title: z.ZodOptional<z.ZodString>;
3117
+ detail: z.ZodOptional<z.ZodString>;
3118
+ source: z.ZodOptional<z.ZodObject<{
3119
+ pointer: z.ZodOptional<z.ZodString>;
3120
+ parameter: z.ZodOptional<z.ZodString>;
3121
+ }, "strip", z.ZodTypeAny, {
3122
+ pointer?: string | undefined;
3123
+ parameter?: string | undefined;
3124
+ }, {
3125
+ pointer?: string | undefined;
3126
+ parameter?: string | undefined;
3127
+ }>>;
3128
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3129
+ }, "strip", z.ZodTypeAny, {
3130
+ status?: string | undefined;
3131
+ code?: string | undefined;
3132
+ id?: string | undefined;
3133
+ links?: {
3134
+ about?: string | undefined;
3135
+ } | undefined;
3136
+ meta?: Record<string, unknown> | undefined;
3137
+ title?: string | undefined;
3138
+ detail?: string | undefined;
3139
+ source?: {
3140
+ pointer?: string | undefined;
3141
+ parameter?: string | undefined;
3142
+ } | undefined;
3143
+ }, {
3144
+ status?: string | undefined;
3145
+ code?: string | undefined;
3146
+ id?: string | undefined;
3147
+ links?: {
3148
+ about?: string | undefined;
3149
+ } | undefined;
3150
+ meta?: Record<string, unknown> | undefined;
3151
+ title?: string | undefined;
3152
+ detail?: string | undefined;
3153
+ source?: {
3154
+ pointer?: string | undefined;
3155
+ parameter?: string | undefined;
3156
+ } | undefined;
3157
+ }>, "many">;
3158
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3159
+ }, "strip", z.ZodTypeAny, {
3160
+ errors: {
3161
+ status?: string | undefined;
3162
+ code?: string | undefined;
3163
+ id?: string | undefined;
3164
+ links?: {
3165
+ about?: string | undefined;
3166
+ } | undefined;
3167
+ meta?: Record<string, unknown> | undefined;
3168
+ title?: string | undefined;
3169
+ detail?: string | undefined;
3170
+ source?: {
3171
+ pointer?: string | undefined;
3172
+ parameter?: string | undefined;
3173
+ } | undefined;
3174
+ }[];
3175
+ meta?: Record<string, unknown> | undefined;
3176
+ }, {
3177
+ errors: {
3178
+ status?: string | undefined;
3179
+ code?: string | undefined;
3180
+ id?: string | undefined;
3181
+ links?: {
3182
+ about?: string | undefined;
3183
+ } | undefined;
3184
+ meta?: Record<string, unknown> | undefined;
3185
+ title?: string | undefined;
3186
+ detail?: string | undefined;
3187
+ source?: {
3188
+ pointer?: string | undefined;
3189
+ parameter?: string | undefined;
3190
+ } | undefined;
3191
+ }[];
3192
+ meta?: Record<string, unknown> | undefined;
3193
+ }>;
3194
+ 422: z.ZodObject<{
3195
+ errors: z.ZodArray<z.ZodObject<{
3196
+ id: z.ZodOptional<z.ZodString>;
3197
+ links: z.ZodOptional<z.ZodObject<{
3198
+ about: z.ZodOptional<z.ZodString>;
3199
+ }, "strip", z.ZodTypeAny, {
3200
+ about?: string | undefined;
3201
+ }, {
3202
+ about?: string | undefined;
3203
+ }>>;
3204
+ status: z.ZodOptional<z.ZodString>;
3205
+ code: z.ZodOptional<z.ZodString>;
3206
+ title: z.ZodOptional<z.ZodString>;
3207
+ detail: z.ZodOptional<z.ZodString>;
3208
+ source: z.ZodOptional<z.ZodObject<{
3209
+ pointer: z.ZodOptional<z.ZodString>;
3210
+ parameter: z.ZodOptional<z.ZodString>;
3211
+ }, "strip", z.ZodTypeAny, {
3212
+ pointer?: string | undefined;
3213
+ parameter?: string | undefined;
3214
+ }, {
3215
+ pointer?: string | undefined;
3216
+ parameter?: string | undefined;
3217
+ }>>;
3218
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3219
+ }, "strip", z.ZodTypeAny, {
3220
+ status?: string | undefined;
3221
+ code?: string | undefined;
3222
+ id?: string | undefined;
3223
+ links?: {
3224
+ about?: string | undefined;
3225
+ } | undefined;
3226
+ meta?: Record<string, unknown> | undefined;
3227
+ title?: string | undefined;
3228
+ detail?: string | undefined;
3229
+ source?: {
3230
+ pointer?: string | undefined;
3231
+ parameter?: string | undefined;
3232
+ } | undefined;
3233
+ }, {
3234
+ status?: string | undefined;
3235
+ code?: string | undefined;
3236
+ id?: string | undefined;
3237
+ links?: {
3238
+ about?: string | undefined;
3239
+ } | undefined;
3240
+ meta?: Record<string, unknown> | undefined;
3241
+ title?: string | undefined;
3242
+ detail?: string | undefined;
3243
+ source?: {
3244
+ pointer?: string | undefined;
3245
+ parameter?: string | undefined;
3246
+ } | undefined;
3247
+ }>, "many">;
3248
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3249
+ }, "strip", z.ZodTypeAny, {
3250
+ errors: {
3251
+ status?: string | undefined;
3252
+ code?: string | undefined;
3253
+ id?: string | undefined;
3254
+ links?: {
3255
+ about?: string | undefined;
3256
+ } | undefined;
3257
+ meta?: Record<string, unknown> | undefined;
3258
+ title?: string | undefined;
3259
+ detail?: string | undefined;
3260
+ source?: {
3261
+ pointer?: string | undefined;
3262
+ parameter?: string | undefined;
3263
+ } | undefined;
3264
+ }[];
3265
+ meta?: Record<string, unknown> | undefined;
3266
+ }, {
3267
+ errors: {
3268
+ status?: string | undefined;
3269
+ code?: string | undefined;
3270
+ id?: string | undefined;
3271
+ links?: {
3272
+ about?: string | undefined;
3273
+ } | undefined;
3274
+ meta?: Record<string, unknown> | undefined;
3275
+ title?: string | undefined;
3276
+ detail?: string | undefined;
3277
+ source?: {
3278
+ pointer?: string | undefined;
3279
+ parameter?: string | undefined;
3280
+ } | undefined;
3281
+ }[];
3282
+ meta?: Record<string, unknown> | undefined;
3283
+ }>;
3284
+ };
3285
+ };
3286
+ deleteTask: {
3287
+ pathParams: z.ZodObject<{
3288
+ farmId: z.ZodString;
3289
+ id: z.ZodString;
3290
+ }, "strip", z.ZodTypeAny, {
3291
+ id: string;
3292
+ farmId: string;
3293
+ }, {
3294
+ id: string;
3295
+ farmId: string;
3296
+ }>;
3297
+ summary: "Delete task";
3298
+ description: "Delete a task";
3299
+ method: "DELETE";
3300
+ path: "/farms/:farmId/tasks/:id";
3301
+ responses: {
3302
+ 204: z.ZodObject<{
3303
+ meta: z.ZodObject<{
3304
+ message: z.ZodString;
3305
+ }, "strip", z.ZodTypeAny, {
3306
+ message: string;
3307
+ }, {
3308
+ message: string;
3309
+ }>;
3310
+ }, "strip", z.ZodTypeAny, {
3311
+ meta: {
3312
+ message: string;
3313
+ };
3314
+ }, {
3315
+ meta: {
3316
+ message: string;
3317
+ };
3318
+ }>;
3319
+ 404: z.ZodObject<{
3320
+ errors: z.ZodArray<z.ZodObject<{
3321
+ id: z.ZodOptional<z.ZodString>;
3322
+ links: z.ZodOptional<z.ZodObject<{
3323
+ about: z.ZodOptional<z.ZodString>;
3324
+ }, "strip", z.ZodTypeAny, {
3325
+ about?: string | undefined;
3326
+ }, {
3327
+ about?: string | undefined;
3328
+ }>>;
3329
+ status: z.ZodOptional<z.ZodString>;
3330
+ code: z.ZodOptional<z.ZodString>;
3331
+ title: z.ZodOptional<z.ZodString>;
3332
+ detail: z.ZodOptional<z.ZodString>;
3333
+ source: z.ZodOptional<z.ZodObject<{
3334
+ pointer: z.ZodOptional<z.ZodString>;
3335
+ parameter: z.ZodOptional<z.ZodString>;
3336
+ }, "strip", z.ZodTypeAny, {
3337
+ pointer?: string | undefined;
3338
+ parameter?: string | undefined;
3339
+ }, {
3340
+ pointer?: string | undefined;
3341
+ parameter?: string | undefined;
3342
+ }>>;
3343
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3344
+ }, "strip", z.ZodTypeAny, {
3345
+ status?: string | undefined;
3346
+ code?: string | undefined;
3347
+ id?: string | undefined;
3348
+ links?: {
3349
+ about?: string | undefined;
3350
+ } | undefined;
3351
+ meta?: Record<string, unknown> | undefined;
3352
+ title?: string | undefined;
3353
+ detail?: string | undefined;
3354
+ source?: {
3355
+ pointer?: string | undefined;
3356
+ parameter?: string | undefined;
3357
+ } | undefined;
3358
+ }, {
3359
+ status?: string | undefined;
3360
+ code?: string | undefined;
3361
+ id?: string | undefined;
3362
+ links?: {
3363
+ about?: string | undefined;
3364
+ } | undefined;
3365
+ meta?: Record<string, unknown> | undefined;
3366
+ title?: string | undefined;
3367
+ detail?: string | undefined;
3368
+ source?: {
3369
+ pointer?: string | undefined;
3370
+ parameter?: string | undefined;
3371
+ } | undefined;
3372
+ }>, "many">;
3373
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3374
+ }, "strip", z.ZodTypeAny, {
3375
+ errors: {
3376
+ status?: string | undefined;
3377
+ code?: string | undefined;
3378
+ id?: string | undefined;
3379
+ links?: {
3380
+ about?: string | undefined;
3381
+ } | undefined;
3382
+ meta?: Record<string, unknown> | undefined;
3383
+ title?: string | undefined;
3384
+ detail?: string | undefined;
3385
+ source?: {
3386
+ pointer?: string | undefined;
3387
+ parameter?: string | undefined;
3388
+ } | undefined;
3389
+ }[];
3390
+ meta?: Record<string, unknown> | undefined;
3391
+ }, {
3392
+ errors: {
3393
+ status?: string | undefined;
3394
+ code?: string | undefined;
3395
+ id?: string | undefined;
3396
+ links?: {
3397
+ about?: string | undefined;
3398
+ } | undefined;
3399
+ meta?: Record<string, unknown> | undefined;
3400
+ title?: string | undefined;
3401
+ detail?: string | undefined;
3402
+ source?: {
3403
+ pointer?: string | undefined;
3404
+ parameter?: string | undefined;
3405
+ } | undefined;
3406
+ }[];
3407
+ meta?: Record<string, unknown> | undefined;
3408
+ }>;
3409
+ 401: z.ZodObject<{
3410
+ errors: z.ZodArray<z.ZodObject<{
3411
+ id: z.ZodOptional<z.ZodString>;
3412
+ links: z.ZodOptional<z.ZodObject<{
3413
+ about: z.ZodOptional<z.ZodString>;
3414
+ }, "strip", z.ZodTypeAny, {
3415
+ about?: string | undefined;
3416
+ }, {
3417
+ about?: string | undefined;
3418
+ }>>;
3419
+ status: z.ZodOptional<z.ZodString>;
3420
+ code: z.ZodOptional<z.ZodString>;
3421
+ title: z.ZodOptional<z.ZodString>;
3422
+ detail: z.ZodOptional<z.ZodString>;
3423
+ source: z.ZodOptional<z.ZodObject<{
3424
+ pointer: z.ZodOptional<z.ZodString>;
3425
+ parameter: z.ZodOptional<z.ZodString>;
3426
+ }, "strip", z.ZodTypeAny, {
3427
+ pointer?: string | undefined;
3428
+ parameter?: string | undefined;
3429
+ }, {
3430
+ pointer?: string | undefined;
3431
+ parameter?: string | undefined;
3432
+ }>>;
3433
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3434
+ }, "strip", z.ZodTypeAny, {
3435
+ status?: string | undefined;
3436
+ code?: string | undefined;
3437
+ id?: string | undefined;
3438
+ links?: {
3439
+ about?: string | undefined;
3440
+ } | undefined;
3441
+ meta?: Record<string, unknown> | undefined;
3442
+ title?: string | undefined;
3443
+ detail?: string | undefined;
3444
+ source?: {
3445
+ pointer?: string | undefined;
3446
+ parameter?: string | undefined;
3447
+ } | undefined;
3448
+ }, {
3449
+ status?: string | undefined;
3450
+ code?: string | undefined;
3451
+ id?: string | undefined;
3452
+ links?: {
3453
+ about?: string | undefined;
3454
+ } | undefined;
3455
+ meta?: Record<string, unknown> | undefined;
3456
+ title?: string | undefined;
3457
+ detail?: string | undefined;
3458
+ source?: {
3459
+ pointer?: string | undefined;
3460
+ parameter?: string | undefined;
3461
+ } | undefined;
3462
+ }>, "many">;
3463
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3464
+ }, "strip", z.ZodTypeAny, {
3465
+ errors: {
3466
+ status?: string | undefined;
3467
+ code?: string | undefined;
3468
+ id?: string | undefined;
3469
+ links?: {
3470
+ about?: string | undefined;
3471
+ } | undefined;
3472
+ meta?: Record<string, unknown> | undefined;
3473
+ title?: string | undefined;
3474
+ detail?: string | undefined;
3475
+ source?: {
3476
+ pointer?: string | undefined;
3477
+ parameter?: string | undefined;
3478
+ } | undefined;
3479
+ }[];
3480
+ meta?: Record<string, unknown> | undefined;
3481
+ }, {
3482
+ errors: {
3483
+ status?: string | undefined;
3484
+ code?: string | undefined;
3485
+ id?: string | undefined;
3486
+ links?: {
3487
+ about?: string | undefined;
3488
+ } | undefined;
3489
+ meta?: Record<string, unknown> | undefined;
3490
+ title?: string | undefined;
3491
+ detail?: string | undefined;
3492
+ source?: {
3493
+ pointer?: string | undefined;
3494
+ parameter?: string | undefined;
3495
+ } | undefined;
3496
+ }[];
3497
+ meta?: Record<string, unknown> | undefined;
3498
+ }>;
3499
+ };
3500
+ };
3501
+ addTaskNote: {
3502
+ pathParams: z.ZodObject<{
3503
+ farmId: z.ZodString;
3504
+ id: z.ZodString;
3505
+ }, "strip", z.ZodTypeAny, {
3506
+ id: string;
3507
+ farmId: string;
3508
+ }, {
3509
+ id: string;
3510
+ farmId: string;
3511
+ }>;
3512
+ summary: "Add note to task";
3513
+ description: "Add a note or update to a task";
3514
+ method: "POST";
3515
+ body: z.ZodObject<{
3516
+ data: z.ZodObject<{
3517
+ type: z.ZodLiteral<"task-notes">;
3518
+ attributes: z.ZodObject<{
3519
+ text: z.ZodString;
3520
+ photos: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3521
+ }, "strip", z.ZodTypeAny, {
3522
+ text: string;
3523
+ photos?: string[] | undefined;
3524
+ }, {
3525
+ text: string;
3526
+ photos?: string[] | undefined;
3527
+ }>;
3528
+ }, "strip", z.ZodTypeAny, {
3529
+ type: "task-notes";
3530
+ attributes: {
3531
+ text: string;
3532
+ photos?: string[] | undefined;
3533
+ };
3534
+ }, {
3535
+ type: "task-notes";
3536
+ attributes: {
3537
+ text: string;
3538
+ photos?: string[] | undefined;
3539
+ };
3540
+ }>;
3541
+ }, "strip", z.ZodTypeAny, {
3542
+ data: {
3543
+ type: "task-notes";
3544
+ attributes: {
3545
+ text: string;
3546
+ photos?: string[] | undefined;
3547
+ };
3548
+ };
3549
+ }, {
3550
+ data: {
3551
+ type: "task-notes";
3552
+ attributes: {
3553
+ text: string;
3554
+ photos?: string[] | undefined;
3555
+ };
3556
+ };
3557
+ }>;
3558
+ path: "/farms/:farmId/tasks/:id/notes";
3559
+ responses: {
3560
+ 201: z.ZodObject<{
3561
+ data: z.ZodObject<{
3562
+ type: z.ZodLiteral<string>;
3563
+ id: z.ZodString;
3564
+ attributes: z.ZodObject<{
3565
+ title: z.ZodString;
3566
+ fieldId: z.ZodString;
3567
+ fieldName: z.ZodOptional<z.ZodString>;
3568
+ date: z.ZodString;
3569
+ status: z.ZodEnum<["pending", "in-progress", "completed", "cancelled"]>;
3570
+ inventoryItemId: z.ZodNullable<z.ZodString>;
3571
+ inventoryItemName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3572
+ plannedQuantity: z.ZodNullable<z.ZodNumber>;
3573
+ actualQuantity: z.ZodNullable<z.ZodNumber>;
3574
+ assignedTo: z.ZodNullable<z.ZodString>;
3575
+ assignedToName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3576
+ assignedBy: z.ZodNullable<z.ZodString>;
3577
+ assignedDate: z.ZodNullable<z.ZodString>;
3578
+ notes: z.ZodOptional<z.ZodArray<z.ZodObject<{
3579
+ id: z.ZodString;
3580
+ authorId: z.ZodString;
3581
+ authorName: z.ZodString;
3582
+ text: z.ZodString;
3583
+ timestamp: z.ZodString;
3584
+ photos: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3585
+ }, "strip", z.ZodTypeAny, {
3586
+ id: string;
3587
+ authorId: string;
3588
+ authorName: string;
3589
+ text: string;
3590
+ timestamp: string;
3591
+ photos?: string[] | undefined;
3592
+ }, {
3593
+ id: string;
3594
+ authorId: string;
3595
+ authorName: string;
3596
+ text: string;
3597
+ timestamp: string;
3598
+ photos?: string[] | undefined;
3599
+ }>, "many">>;
3600
+ } & {
3601
+ createdAt: z.ZodString;
3602
+ updatedAt: z.ZodString;
3603
+ }, "strip", z.ZodTypeAny, {
3604
+ status: "pending" | "in-progress" | "completed" | "cancelled";
3605
+ date: string;
3606
+ title: string;
3607
+ createdAt: string;
3608
+ updatedAt: string;
3609
+ fieldId: string;
3610
+ inventoryItemId: string | null;
3611
+ plannedQuantity: number | null;
3612
+ actualQuantity: number | null;
3613
+ assignedTo: string | null;
3614
+ assignedBy: string | null;
3615
+ assignedDate: string | null;
3616
+ fieldName?: string | undefined;
3617
+ inventoryItemName?: string | null | undefined;
3618
+ assignedToName?: string | null | undefined;
3619
+ notes?: {
3620
+ id: string;
3621
+ authorId: string;
3622
+ authorName: string;
3623
+ text: string;
3624
+ timestamp: string;
3625
+ photos?: string[] | undefined;
3626
+ }[] | undefined;
3627
+ }, {
3628
+ status: "pending" | "in-progress" | "completed" | "cancelled";
3629
+ date: string;
3630
+ title: string;
3631
+ createdAt: string;
3632
+ updatedAt: string;
3633
+ fieldId: string;
3634
+ inventoryItemId: string | null;
3635
+ plannedQuantity: number | null;
3636
+ actualQuantity: number | null;
3637
+ assignedTo: string | null;
3638
+ assignedBy: string | null;
3639
+ assignedDate: string | null;
3640
+ fieldName?: string | undefined;
3641
+ inventoryItemName?: string | null | undefined;
3642
+ assignedToName?: string | null | undefined;
3643
+ notes?: {
3644
+ id: string;
3645
+ authorId: string;
3646
+ authorName: string;
3647
+ text: string;
3648
+ timestamp: string;
3649
+ photos?: string[] | undefined;
3650
+ }[] | undefined;
3651
+ }>;
3652
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3653
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3654
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3655
+ }, "strip", z.ZodTypeAny, {
3656
+ type: string;
3657
+ id: string;
3658
+ attributes: {
3659
+ status: "pending" | "in-progress" | "completed" | "cancelled";
3660
+ date: string;
3661
+ title: string;
3662
+ createdAt: string;
3663
+ updatedAt: string;
3664
+ fieldId: string;
3665
+ inventoryItemId: string | null;
3666
+ plannedQuantity: number | null;
3667
+ actualQuantity: number | null;
3668
+ assignedTo: string | null;
3669
+ assignedBy: string | null;
3670
+ assignedDate: string | null;
3671
+ fieldName?: string | undefined;
3672
+ inventoryItemName?: string | null | undefined;
3673
+ assignedToName?: string | null | undefined;
3674
+ notes?: {
3675
+ id: string;
3676
+ authorId: string;
3677
+ authorName: string;
3678
+ text: string;
3679
+ timestamp: string;
3680
+ photos?: string[] | undefined;
3681
+ }[] | undefined;
3682
+ };
3683
+ relationships?: Record<string, unknown> | undefined;
3684
+ links?: Record<string, string> | undefined;
3685
+ meta?: Record<string, unknown> | undefined;
3686
+ }, {
3687
+ type: string;
3688
+ id: string;
3689
+ attributes: {
3690
+ status: "pending" | "in-progress" | "completed" | "cancelled";
3691
+ date: string;
3692
+ title: string;
3693
+ createdAt: string;
3694
+ updatedAt: string;
3695
+ fieldId: string;
3696
+ inventoryItemId: string | null;
3697
+ plannedQuantity: number | null;
3698
+ actualQuantity: number | null;
3699
+ assignedTo: string | null;
3700
+ assignedBy: string | null;
3701
+ assignedDate: string | null;
3702
+ fieldName?: string | undefined;
3703
+ inventoryItemName?: string | null | undefined;
3704
+ assignedToName?: string | null | undefined;
3705
+ notes?: {
3706
+ id: string;
3707
+ authorId: string;
3708
+ authorName: string;
3709
+ text: string;
3710
+ timestamp: string;
3711
+ photos?: string[] | undefined;
3712
+ }[] | undefined;
3713
+ };
3714
+ relationships?: Record<string, unknown> | undefined;
3715
+ links?: Record<string, string> | undefined;
3716
+ meta?: Record<string, unknown> | undefined;
3717
+ }>;
3718
+ included: z.ZodOptional<z.ZodArray<z.ZodObject<{
3719
+ type: z.ZodString;
3720
+ id: z.ZodString;
3721
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3722
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3723
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3724
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3725
+ }, "strip", z.ZodTypeAny, {
3726
+ type: string;
3727
+ id: string;
3728
+ attributes?: Record<string, unknown> | undefined;
3729
+ relationships?: Record<string, unknown> | undefined;
3730
+ links?: Record<string, string> | undefined;
3731
+ meta?: Record<string, unknown> | undefined;
3732
+ }, {
3733
+ type: string;
3734
+ id: string;
3735
+ attributes?: Record<string, unknown> | undefined;
3736
+ relationships?: Record<string, unknown> | undefined;
3737
+ links?: Record<string, string> | undefined;
3738
+ meta?: Record<string, unknown> | undefined;
3739
+ }>, "many">>;
3740
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3741
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3742
+ }, "strip", z.ZodTypeAny, {
3743
+ data: {
3744
+ type: string;
3745
+ id: string;
3746
+ attributes: {
3747
+ status: "pending" | "in-progress" | "completed" | "cancelled";
3748
+ date: string;
3749
+ title: string;
3750
+ createdAt: string;
3751
+ updatedAt: string;
3752
+ fieldId: string;
3753
+ inventoryItemId: string | null;
3754
+ plannedQuantity: number | null;
3755
+ actualQuantity: number | null;
3756
+ assignedTo: string | null;
3757
+ assignedBy: string | null;
3758
+ assignedDate: string | null;
3759
+ fieldName?: string | undefined;
3760
+ inventoryItemName?: string | null | undefined;
3761
+ assignedToName?: string | null | undefined;
3762
+ notes?: {
3763
+ id: string;
3764
+ authorId: string;
3765
+ authorName: string;
3766
+ text: string;
3767
+ timestamp: string;
3768
+ photos?: string[] | undefined;
3769
+ }[] | undefined;
3770
+ };
3771
+ relationships?: Record<string, unknown> | undefined;
3772
+ links?: Record<string, string> | undefined;
3773
+ meta?: Record<string, unknown> | undefined;
3774
+ };
3775
+ links?: Record<string, string> | undefined;
3776
+ meta?: Record<string, unknown> | undefined;
3777
+ included?: {
3778
+ type: string;
3779
+ id: string;
3780
+ attributes?: Record<string, unknown> | undefined;
3781
+ relationships?: Record<string, unknown> | undefined;
3782
+ links?: Record<string, string> | undefined;
3783
+ meta?: Record<string, unknown> | undefined;
3784
+ }[] | undefined;
3785
+ }, {
3786
+ data: {
3787
+ type: string;
3788
+ id: string;
3789
+ attributes: {
3790
+ status: "pending" | "in-progress" | "completed" | "cancelled";
3791
+ date: string;
3792
+ title: string;
3793
+ createdAt: string;
3794
+ updatedAt: string;
3795
+ fieldId: string;
3796
+ inventoryItemId: string | null;
3797
+ plannedQuantity: number | null;
3798
+ actualQuantity: number | null;
3799
+ assignedTo: string | null;
3800
+ assignedBy: string | null;
3801
+ assignedDate: string | null;
3802
+ fieldName?: string | undefined;
3803
+ inventoryItemName?: string | null | undefined;
3804
+ assignedToName?: string | null | undefined;
3805
+ notes?: {
3806
+ id: string;
3807
+ authorId: string;
3808
+ authorName: string;
3809
+ text: string;
3810
+ timestamp: string;
3811
+ photos?: string[] | undefined;
3812
+ }[] | undefined;
3813
+ };
3814
+ relationships?: Record<string, unknown> | undefined;
3815
+ links?: Record<string, string> | undefined;
3816
+ meta?: Record<string, unknown> | undefined;
3817
+ };
3818
+ links?: Record<string, string> | undefined;
3819
+ meta?: Record<string, unknown> | undefined;
3820
+ included?: {
3821
+ type: string;
3822
+ id: string;
3823
+ attributes?: Record<string, unknown> | undefined;
3824
+ relationships?: Record<string, unknown> | undefined;
3825
+ links?: Record<string, string> | undefined;
3826
+ meta?: Record<string, unknown> | undefined;
3827
+ }[] | undefined;
3828
+ }>;
3829
+ 400: z.ZodObject<{
3830
+ errors: z.ZodArray<z.ZodObject<{
3831
+ id: z.ZodOptional<z.ZodString>;
3832
+ links: z.ZodOptional<z.ZodObject<{
3833
+ about: z.ZodOptional<z.ZodString>;
3834
+ }, "strip", z.ZodTypeAny, {
3835
+ about?: string | undefined;
3836
+ }, {
3837
+ about?: string | undefined;
3838
+ }>>;
3839
+ status: z.ZodOptional<z.ZodString>;
3840
+ code: z.ZodOptional<z.ZodString>;
3841
+ title: z.ZodOptional<z.ZodString>;
3842
+ detail: z.ZodOptional<z.ZodString>;
3843
+ source: z.ZodOptional<z.ZodObject<{
3844
+ pointer: z.ZodOptional<z.ZodString>;
3845
+ parameter: z.ZodOptional<z.ZodString>;
3846
+ }, "strip", z.ZodTypeAny, {
3847
+ pointer?: string | undefined;
3848
+ parameter?: string | undefined;
3849
+ }, {
3850
+ pointer?: string | undefined;
3851
+ parameter?: string | undefined;
3852
+ }>>;
3853
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3854
+ }, "strip", z.ZodTypeAny, {
3855
+ status?: string | undefined;
3856
+ code?: string | undefined;
3857
+ id?: string | undefined;
3858
+ links?: {
3859
+ about?: string | undefined;
3860
+ } | undefined;
3861
+ meta?: Record<string, unknown> | undefined;
3862
+ title?: string | undefined;
3863
+ detail?: string | undefined;
3864
+ source?: {
3865
+ pointer?: string | undefined;
3866
+ parameter?: string | undefined;
3867
+ } | undefined;
3868
+ }, {
3869
+ status?: string | undefined;
3870
+ code?: string | undefined;
3871
+ id?: string | undefined;
3872
+ links?: {
3873
+ about?: string | undefined;
3874
+ } | undefined;
3875
+ meta?: Record<string, unknown> | undefined;
3876
+ title?: string | undefined;
3877
+ detail?: string | undefined;
3878
+ source?: {
3879
+ pointer?: string | undefined;
3880
+ parameter?: string | undefined;
3881
+ } | undefined;
3882
+ }>, "many">;
3883
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3884
+ }, "strip", z.ZodTypeAny, {
3885
+ errors: {
3886
+ status?: string | undefined;
3887
+ code?: string | undefined;
3888
+ id?: string | undefined;
3889
+ links?: {
3890
+ about?: string | undefined;
3891
+ } | undefined;
3892
+ meta?: Record<string, unknown> | undefined;
3893
+ title?: string | undefined;
3894
+ detail?: string | undefined;
3895
+ source?: {
3896
+ pointer?: string | undefined;
3897
+ parameter?: string | undefined;
3898
+ } | undefined;
3899
+ }[];
3900
+ meta?: Record<string, unknown> | undefined;
3901
+ }, {
3902
+ errors: {
3903
+ status?: string | undefined;
3904
+ code?: string | undefined;
3905
+ id?: string | undefined;
3906
+ links?: {
3907
+ about?: string | undefined;
3908
+ } | undefined;
3909
+ meta?: Record<string, unknown> | undefined;
3910
+ title?: string | undefined;
3911
+ detail?: string | undefined;
3912
+ source?: {
3913
+ pointer?: string | undefined;
3914
+ parameter?: string | undefined;
3915
+ } | undefined;
3916
+ }[];
3917
+ meta?: Record<string, unknown> | undefined;
3918
+ }>;
3919
+ 404: z.ZodObject<{
3920
+ errors: z.ZodArray<z.ZodObject<{
3921
+ id: z.ZodOptional<z.ZodString>;
3922
+ links: z.ZodOptional<z.ZodObject<{
3923
+ about: z.ZodOptional<z.ZodString>;
3924
+ }, "strip", z.ZodTypeAny, {
3925
+ about?: string | undefined;
3926
+ }, {
3927
+ about?: string | undefined;
3928
+ }>>;
3929
+ status: z.ZodOptional<z.ZodString>;
3930
+ code: z.ZodOptional<z.ZodString>;
3931
+ title: z.ZodOptional<z.ZodString>;
3932
+ detail: z.ZodOptional<z.ZodString>;
3933
+ source: z.ZodOptional<z.ZodObject<{
3934
+ pointer: z.ZodOptional<z.ZodString>;
3935
+ parameter: z.ZodOptional<z.ZodString>;
3936
+ }, "strip", z.ZodTypeAny, {
3937
+ pointer?: string | undefined;
3938
+ parameter?: string | undefined;
3939
+ }, {
3940
+ pointer?: string | undefined;
3941
+ parameter?: string | undefined;
3942
+ }>>;
3943
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3944
+ }, "strip", z.ZodTypeAny, {
3945
+ status?: string | undefined;
3946
+ code?: string | undefined;
3947
+ id?: string | undefined;
3948
+ links?: {
3949
+ about?: string | undefined;
3950
+ } | undefined;
3951
+ meta?: Record<string, unknown> | undefined;
3952
+ title?: string | undefined;
3953
+ detail?: string | undefined;
3954
+ source?: {
3955
+ pointer?: string | undefined;
3956
+ parameter?: string | undefined;
3957
+ } | undefined;
3958
+ }, {
3959
+ status?: string | undefined;
3960
+ code?: string | undefined;
3961
+ id?: string | undefined;
3962
+ links?: {
3963
+ about?: string | undefined;
3964
+ } | undefined;
3965
+ meta?: Record<string, unknown> | undefined;
3966
+ title?: string | undefined;
3967
+ detail?: string | undefined;
3968
+ source?: {
3969
+ pointer?: string | undefined;
3970
+ parameter?: string | undefined;
3971
+ } | undefined;
3972
+ }>, "many">;
3973
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3974
+ }, "strip", z.ZodTypeAny, {
3975
+ errors: {
3976
+ status?: string | undefined;
3977
+ code?: string | undefined;
3978
+ id?: string | undefined;
3979
+ links?: {
3980
+ about?: string | undefined;
3981
+ } | undefined;
3982
+ meta?: Record<string, unknown> | undefined;
3983
+ title?: string | undefined;
3984
+ detail?: string | undefined;
3985
+ source?: {
3986
+ pointer?: string | undefined;
3987
+ parameter?: string | undefined;
3988
+ } | undefined;
3989
+ }[];
3990
+ meta?: Record<string, unknown> | undefined;
3991
+ }, {
3992
+ errors: {
3993
+ status?: string | undefined;
3994
+ code?: string | undefined;
3995
+ id?: string | undefined;
3996
+ links?: {
3997
+ about?: string | undefined;
3998
+ } | undefined;
3999
+ meta?: Record<string, unknown> | undefined;
4000
+ title?: string | undefined;
4001
+ detail?: string | undefined;
4002
+ source?: {
4003
+ pointer?: string | undefined;
4004
+ parameter?: string | undefined;
4005
+ } | undefined;
4006
+ }[];
4007
+ meta?: Record<string, unknown> | undefined;
4008
+ }>;
4009
+ 401: z.ZodObject<{
4010
+ errors: z.ZodArray<z.ZodObject<{
4011
+ id: z.ZodOptional<z.ZodString>;
4012
+ links: z.ZodOptional<z.ZodObject<{
4013
+ about: z.ZodOptional<z.ZodString>;
4014
+ }, "strip", z.ZodTypeAny, {
4015
+ about?: string | undefined;
4016
+ }, {
4017
+ about?: string | undefined;
4018
+ }>>;
4019
+ status: z.ZodOptional<z.ZodString>;
4020
+ code: z.ZodOptional<z.ZodString>;
4021
+ title: z.ZodOptional<z.ZodString>;
4022
+ detail: z.ZodOptional<z.ZodString>;
4023
+ source: z.ZodOptional<z.ZodObject<{
4024
+ pointer: z.ZodOptional<z.ZodString>;
4025
+ parameter: z.ZodOptional<z.ZodString>;
4026
+ }, "strip", z.ZodTypeAny, {
4027
+ pointer?: string | undefined;
4028
+ parameter?: string | undefined;
4029
+ }, {
4030
+ pointer?: string | undefined;
4031
+ parameter?: string | undefined;
4032
+ }>>;
4033
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4034
+ }, "strip", z.ZodTypeAny, {
4035
+ status?: string | undefined;
4036
+ code?: string | undefined;
4037
+ id?: string | undefined;
4038
+ links?: {
4039
+ about?: string | undefined;
4040
+ } | undefined;
4041
+ meta?: Record<string, unknown> | undefined;
4042
+ title?: string | undefined;
4043
+ detail?: string | undefined;
4044
+ source?: {
4045
+ pointer?: string | undefined;
4046
+ parameter?: string | undefined;
4047
+ } | undefined;
4048
+ }, {
4049
+ status?: string | undefined;
4050
+ code?: string | undefined;
4051
+ id?: string | undefined;
4052
+ links?: {
4053
+ about?: string | undefined;
4054
+ } | undefined;
4055
+ meta?: Record<string, unknown> | undefined;
4056
+ title?: string | undefined;
4057
+ detail?: string | undefined;
4058
+ source?: {
4059
+ pointer?: string | undefined;
4060
+ parameter?: string | undefined;
4061
+ } | undefined;
4062
+ }>, "many">;
4063
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4064
+ }, "strip", z.ZodTypeAny, {
4065
+ errors: {
4066
+ status?: string | undefined;
4067
+ code?: string | undefined;
4068
+ id?: string | undefined;
4069
+ links?: {
4070
+ about?: string | undefined;
4071
+ } | undefined;
4072
+ meta?: Record<string, unknown> | undefined;
4073
+ title?: string | undefined;
4074
+ detail?: string | undefined;
4075
+ source?: {
4076
+ pointer?: string | undefined;
4077
+ parameter?: string | undefined;
4078
+ } | undefined;
4079
+ }[];
4080
+ meta?: Record<string, unknown> | undefined;
4081
+ }, {
4082
+ errors: {
4083
+ status?: string | undefined;
4084
+ code?: string | undefined;
4085
+ id?: string | undefined;
4086
+ links?: {
4087
+ about?: string | undefined;
4088
+ } | undefined;
4089
+ meta?: Record<string, unknown> | undefined;
4090
+ title?: string | undefined;
4091
+ detail?: string | undefined;
4092
+ source?: {
4093
+ pointer?: string | undefined;
4094
+ parameter?: string | undefined;
4095
+ } | undefined;
4096
+ }[];
4097
+ meta?: Record<string, unknown> | undefined;
4098
+ }>;
4099
+ 422: z.ZodObject<{
4100
+ errors: z.ZodArray<z.ZodObject<{
4101
+ id: z.ZodOptional<z.ZodString>;
4102
+ links: z.ZodOptional<z.ZodObject<{
4103
+ about: z.ZodOptional<z.ZodString>;
4104
+ }, "strip", z.ZodTypeAny, {
4105
+ about?: string | undefined;
4106
+ }, {
4107
+ about?: string | undefined;
4108
+ }>>;
4109
+ status: z.ZodOptional<z.ZodString>;
4110
+ code: z.ZodOptional<z.ZodString>;
4111
+ title: z.ZodOptional<z.ZodString>;
4112
+ detail: z.ZodOptional<z.ZodString>;
4113
+ source: z.ZodOptional<z.ZodObject<{
4114
+ pointer: z.ZodOptional<z.ZodString>;
4115
+ parameter: z.ZodOptional<z.ZodString>;
4116
+ }, "strip", z.ZodTypeAny, {
4117
+ pointer?: string | undefined;
4118
+ parameter?: string | undefined;
4119
+ }, {
4120
+ pointer?: string | undefined;
4121
+ parameter?: string | undefined;
4122
+ }>>;
4123
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4124
+ }, "strip", z.ZodTypeAny, {
4125
+ status?: string | undefined;
4126
+ code?: string | undefined;
4127
+ id?: string | undefined;
4128
+ links?: {
4129
+ about?: string | undefined;
4130
+ } | undefined;
4131
+ meta?: Record<string, unknown> | undefined;
4132
+ title?: string | undefined;
4133
+ detail?: string | undefined;
4134
+ source?: {
4135
+ pointer?: string | undefined;
4136
+ parameter?: string | undefined;
4137
+ } | undefined;
4138
+ }, {
4139
+ status?: string | undefined;
4140
+ code?: string | undefined;
4141
+ id?: string | undefined;
4142
+ links?: {
4143
+ about?: string | undefined;
4144
+ } | undefined;
4145
+ meta?: Record<string, unknown> | undefined;
4146
+ title?: string | undefined;
4147
+ detail?: string | undefined;
4148
+ source?: {
4149
+ pointer?: string | undefined;
4150
+ parameter?: string | undefined;
4151
+ } | undefined;
4152
+ }>, "many">;
4153
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4154
+ }, "strip", z.ZodTypeAny, {
4155
+ errors: {
4156
+ status?: string | undefined;
4157
+ code?: string | undefined;
4158
+ id?: string | undefined;
4159
+ links?: {
4160
+ about?: string | undefined;
4161
+ } | undefined;
4162
+ meta?: Record<string, unknown> | undefined;
4163
+ title?: string | undefined;
4164
+ detail?: string | undefined;
4165
+ source?: {
4166
+ pointer?: string | undefined;
4167
+ parameter?: string | undefined;
4168
+ } | undefined;
4169
+ }[];
4170
+ meta?: Record<string, unknown> | undefined;
4171
+ }, {
4172
+ errors: {
4173
+ status?: string | undefined;
4174
+ code?: string | undefined;
4175
+ id?: string | undefined;
4176
+ links?: {
4177
+ about?: string | undefined;
4178
+ } | undefined;
4179
+ meta?: Record<string, unknown> | undefined;
4180
+ title?: string | undefined;
4181
+ detail?: string | undefined;
4182
+ source?: {
4183
+ pointer?: string | undefined;
4184
+ parameter?: string | undefined;
4185
+ } | undefined;
4186
+ }[];
4187
+ meta?: Record<string, unknown> | undefined;
4188
+ }>;
4189
+ };
4190
+ };
4191
+ };
4192
+ //# sourceMappingURL=tasks.routes.d.ts.map