@deepintel-ltd/farmpro-contracts 1.0.2 → 1.0.4

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