@deepintel-ltd/farmpro-contracts 1.0.1 → 1.0.3

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