@deepintel-ltd/farmpro-contracts 1.0.2 → 1.0.4

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