@deepintel-ltd/farmpro-contracts 1.0.1 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (100) hide show
  1. package/dist/index.d.ts +41 -0
  2. package/dist/index.d.ts.map +1 -0
  3. package/dist/index.js +81 -0
  4. package/dist/routes/analytics.routes.d.ts +754 -0
  5. package/dist/routes/analytics.routes.d.ts.map +1 -0
  6. package/dist/routes/analytics.routes.js +24 -0
  7. package/dist/routes/auth.routes.d.ts +3836 -0
  8. package/dist/routes/auth.routes.d.ts.map +1 -0
  9. package/dist/routes/auth.routes.js +158 -0
  10. package/dist/routes/documents.routes.d.ts +2476 -0
  11. package/dist/routes/documents.routes.d.ts.map +1 -0
  12. package/dist/routes/documents.routes.js +100 -0
  13. package/dist/routes/equipment.routes.d.ts +3617 -0
  14. package/dist/routes/equipment.routes.d.ts.map +1 -0
  15. package/dist/routes/equipment.routes.js +118 -0
  16. package/dist/routes/farms.routes.d.ts +2202 -0
  17. package/dist/routes/farms.routes.d.ts.map +1 -0
  18. package/dist/routes/farms.routes.js +111 -0
  19. package/dist/routes/fields.routes.d.ts +3389 -0
  20. package/dist/routes/fields.routes.d.ts.map +1 -0
  21. package/dist/routes/fields.routes.js +95 -0
  22. package/dist/routes/finance.routes.d.ts +6855 -0
  23. package/dist/routes/finance.routes.d.ts.map +1 -0
  24. package/dist/routes/finance.routes.js +259 -0
  25. package/dist/routes/harvest.routes.d.ts +2337 -0
  26. package/dist/routes/harvest.routes.d.ts.map +1 -0
  27. package/dist/routes/harvest.routes.js +99 -0
  28. package/dist/routes/index.d.ts +68 -0
  29. package/dist/routes/index.d.ts.map +1 -0
  30. package/dist/routes/index.js +43 -0
  31. package/dist/routes/inventory.routes.d.ts +2853 -0
  32. package/dist/routes/inventory.routes.d.ts.map +1 -0
  33. package/dist/routes/inventory.routes.js +121 -0
  34. package/dist/routes/soil-tests.routes.d.ts +3005 -0
  35. package/dist/routes/soil-tests.routes.d.ts.map +1 -0
  36. package/dist/routes/soil-tests.routes.js +98 -0
  37. package/dist/routes/suppliers.routes.d.ts +4190 -0
  38. package/dist/routes/suppliers.routes.d.ts.map +1 -0
  39. package/dist/routes/suppliers.routes.js +146 -0
  40. package/dist/routes/tasks.routes.d.ts +4192 -0
  41. package/dist/routes/tasks.routes.d.ts.map +1 -0
  42. package/dist/routes/tasks.routes.js +138 -0
  43. package/dist/routes/team.routes.d.ts +2210 -0
  44. package/dist/routes/team.routes.d.ts.map +1 -0
  45. package/dist/routes/team.routes.js +98 -0
  46. package/dist/routes/users.routes.d.ts +721 -0
  47. package/dist/routes/users.routes.d.ts.map +1 -0
  48. package/dist/routes/users.routes.js +35 -0
  49. package/dist/routes/weather.routes.d.ts +500 -0
  50. package/dist/routes/weather.routes.d.ts.map +1 -0
  51. package/dist/routes/weather.routes.js +23 -0
  52. package/dist/schemas/analytics.schemas.d.ts +1344 -0
  53. package/dist/schemas/analytics.schemas.d.ts.map +1 -0
  54. package/dist/schemas/analytics.schemas.js +73 -0
  55. package/dist/schemas/auth.schemas.d.ts +1093 -0
  56. package/dist/schemas/auth.schemas.d.ts.map +1 -0
  57. package/dist/schemas/auth.schemas.js +159 -0
  58. package/dist/schemas/common.schemas.d.ts +562 -0
  59. package/dist/schemas/common.schemas.d.ts.map +1 -0
  60. package/dist/schemas/common.schemas.js +122 -0
  61. package/dist/schemas/documents.schemas.d.ts +850 -0
  62. package/dist/schemas/documents.schemas.d.ts.map +1 -0
  63. package/dist/schemas/documents.schemas.js +75 -0
  64. package/dist/schemas/equipment.schemas.d.ts +1618 -0
  65. package/dist/schemas/equipment.schemas.d.ts.map +1 -0
  66. package/dist/schemas/equipment.schemas.js +125 -0
  67. package/dist/schemas/farms.schemas.d.ts +1171 -0
  68. package/dist/schemas/farms.schemas.d.ts.map +1 -0
  69. package/dist/schemas/farms.schemas.js +62 -0
  70. package/dist/schemas/fields.schemas.d.ts +2508 -0
  71. package/dist/schemas/fields.schemas.d.ts.map +1 -0
  72. package/dist/schemas/fields.schemas.js +125 -0
  73. package/dist/schemas/finance.schemas.d.ts +2869 -0
  74. package/dist/schemas/finance.schemas.d.ts.map +1 -0
  75. package/dist/schemas/finance.schemas.js +196 -0
  76. package/dist/schemas/harvest.schemas.d.ts +1051 -0
  77. package/dist/schemas/harvest.schemas.d.ts.map +1 -0
  78. package/dist/schemas/harvest.schemas.js +71 -0
  79. package/dist/schemas/inventory.schemas.d.ts +1138 -0
  80. package/dist/schemas/inventory.schemas.d.ts.map +1 -0
  81. package/dist/schemas/inventory.schemas.js +89 -0
  82. package/dist/schemas/soil-tests.schemas.d.ts +1885 -0
  83. package/dist/schemas/soil-tests.schemas.d.ts.map +1 -0
  84. package/dist/schemas/soil-tests.schemas.js +102 -0
  85. package/dist/schemas/suppliers.schemas.d.ts +1774 -0
  86. package/dist/schemas/suppliers.schemas.d.ts.map +1 -0
  87. package/dist/schemas/suppliers.schemas.js +121 -0
  88. package/dist/schemas/tasks.schemas.d.ts +1761 -0
  89. package/dist/schemas/tasks.schemas.d.ts.map +1 -0
  90. package/dist/schemas/tasks.schemas.js +121 -0
  91. package/dist/schemas/team.schemas.d.ts +583 -0
  92. package/dist/schemas/team.schemas.d.ts.map +1 -0
  93. package/dist/schemas/team.schemas.js +60 -0
  94. package/dist/schemas/users.schemas.d.ts +288 -0
  95. package/dist/schemas/users.schemas.d.ts.map +1 -0
  96. package/dist/schemas/users.schemas.js +32 -0
  97. package/dist/schemas/weather.schemas.d.ts +682 -0
  98. package/dist/schemas/weather.schemas.d.ts.map +1 -0
  99. package/dist/schemas/weather.schemas.js +49 -0
  100. package/package.json +1 -1
@@ -0,0 +1,1618 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * Equipment schemas - JSON:API compliant
4
+ */
5
+ export declare const equipmentTypeSchema: z.ZodEnum<["tractor", "sprayer", "harvester", "planter", "tiller", "irrigation", "tool", "other"]>;
6
+ export declare const equipmentStatusSchema: z.ZodEnum<["operational", "maintenance", "repair", "retired"]>;
7
+ export declare const maintenanceTypeSchema: z.ZodEnum<["routine", "oil-change", "inspection", "repair", "other"]>;
8
+ export declare const maintenanceScheduleSchema: z.ZodObject<{
9
+ intervalDays: z.ZodNumber;
10
+ lastMaintenanceDate: z.ZodNullable<z.ZodString>;
11
+ nextMaintenanceDate: z.ZodNullable<z.ZodString>;
12
+ maintenanceType: z.ZodEnum<["routine", "oil-change", "inspection", "repair", "other"]>;
13
+ description: z.ZodNullable<z.ZodString>;
14
+ }, "strip", z.ZodTypeAny, {
15
+ description: string | null;
16
+ intervalDays: number;
17
+ lastMaintenanceDate: string | null;
18
+ nextMaintenanceDate: string | null;
19
+ maintenanceType: "other" | "repair" | "routine" | "oil-change" | "inspection";
20
+ }, {
21
+ description: string | null;
22
+ intervalDays: number;
23
+ lastMaintenanceDate: string | null;
24
+ nextMaintenanceDate: string | null;
25
+ maintenanceType: "other" | "repair" | "routine" | "oil-change" | "inspection";
26
+ }>;
27
+ export declare const maintenanceRecordAttributesSchema: z.ZodObject<{
28
+ date: z.ZodString;
29
+ type: z.ZodEnum<["routine", "oil-change", "inspection", "repair", "other"]>;
30
+ description: z.ZodString;
31
+ cost: z.ZodNullable<z.ZodNumber>;
32
+ performedBy: z.ZodNullable<z.ZodString>;
33
+ nextMaintenanceDate: z.ZodNullable<z.ZodString>;
34
+ notes: z.ZodNullable<z.ZodString>;
35
+ }, "strip", z.ZodTypeAny, {
36
+ type: "other" | "repair" | "routine" | "oil-change" | "inspection";
37
+ date: string;
38
+ description: string;
39
+ notes: string | null;
40
+ nextMaintenanceDate: string | null;
41
+ cost: number | null;
42
+ performedBy: string | null;
43
+ }, {
44
+ type: "other" | "repair" | "routine" | "oil-change" | "inspection";
45
+ date: string;
46
+ description: string;
47
+ notes: string | null;
48
+ nextMaintenanceDate: string | null;
49
+ cost: number | null;
50
+ performedBy: string | null;
51
+ }>;
52
+ export declare const equipmentAttributesSchema: 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
+ export declare const createEquipmentAttributesSchema: z.ZodObject<{
182
+ name: z.ZodString;
183
+ type: z.ZodEnum<["tractor", "sprayer", "harvester", "planter", "tiller", "irrigation", "tool", "other"]>;
184
+ brand: z.ZodOptional<z.ZodString>;
185
+ model: z.ZodOptional<z.ZodString>;
186
+ serialNumber: z.ZodOptional<z.ZodString>;
187
+ purchaseDate: z.ZodOptional<z.ZodString>;
188
+ purchasePrice: z.ZodOptional<z.ZodNumber>;
189
+ currentValue: z.ZodOptional<z.ZodNumber>;
190
+ status: z.ZodDefault<z.ZodEnum<["operational", "maintenance", "repair", "retired"]>>;
191
+ location: z.ZodOptional<z.ZodString>;
192
+ assignedTo: z.ZodOptional<z.ZodString>;
193
+ notes: z.ZodOptional<z.ZodString>;
194
+ }, "strip", z.ZodTypeAny, {
195
+ type: "other" | "tractor" | "sprayer" | "harvester" | "planter" | "tiller" | "irrigation" | "tool";
196
+ status: "operational" | "maintenance" | "repair" | "retired";
197
+ name: string;
198
+ brand?: string | undefined;
199
+ location?: string | undefined;
200
+ assignedTo?: string | undefined;
201
+ notes?: string | undefined;
202
+ model?: string | undefined;
203
+ serialNumber?: string | undefined;
204
+ purchaseDate?: string | undefined;
205
+ purchasePrice?: number | undefined;
206
+ currentValue?: number | undefined;
207
+ }, {
208
+ type: "other" | "tractor" | "sprayer" | "harvester" | "planter" | "tiller" | "irrigation" | "tool";
209
+ name: string;
210
+ status?: "operational" | "maintenance" | "repair" | "retired" | undefined;
211
+ brand?: string | undefined;
212
+ location?: string | undefined;
213
+ assignedTo?: string | undefined;
214
+ notes?: string | undefined;
215
+ model?: string | undefined;
216
+ serialNumber?: string | undefined;
217
+ purchaseDate?: string | undefined;
218
+ purchasePrice?: number | undefined;
219
+ currentValue?: number | undefined;
220
+ }>;
221
+ export declare const updateEquipmentAttributesSchema: z.ZodObject<{
222
+ name: z.ZodOptional<z.ZodString>;
223
+ type: z.ZodOptional<z.ZodEnum<["tractor", "sprayer", "harvester", "planter", "tiller", "irrigation", "tool", "other"]>>;
224
+ brand: z.ZodOptional<z.ZodNullable<z.ZodString>>;
225
+ model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
226
+ serialNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
227
+ purchaseDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
228
+ purchasePrice: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
229
+ currentValue: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
230
+ status: z.ZodOptional<z.ZodEnum<["operational", "maintenance", "repair", "retired"]>>;
231
+ location: z.ZodOptional<z.ZodNullable<z.ZodString>>;
232
+ assignedTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
233
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
234
+ }, "strip", z.ZodTypeAny, {
235
+ type?: "other" | "tractor" | "sprayer" | "harvester" | "planter" | "tiller" | "irrigation" | "tool" | undefined;
236
+ status?: "operational" | "maintenance" | "repair" | "retired" | undefined;
237
+ name?: string | undefined;
238
+ brand?: string | null | undefined;
239
+ location?: string | null | undefined;
240
+ assignedTo?: string | null | undefined;
241
+ notes?: string | null | undefined;
242
+ model?: string | null | undefined;
243
+ serialNumber?: string | null | undefined;
244
+ purchaseDate?: string | null | undefined;
245
+ purchasePrice?: number | null | undefined;
246
+ currentValue?: number | null | undefined;
247
+ }, {
248
+ type?: "other" | "tractor" | "sprayer" | "harvester" | "planter" | "tiller" | "irrigation" | "tool" | undefined;
249
+ status?: "operational" | "maintenance" | "repair" | "retired" | undefined;
250
+ name?: string | undefined;
251
+ brand?: string | null | undefined;
252
+ location?: string | null | undefined;
253
+ assignedTo?: string | null | undefined;
254
+ notes?: string | null | undefined;
255
+ model?: string | null | undefined;
256
+ serialNumber?: string | null | undefined;
257
+ purchaseDate?: string | null | undefined;
258
+ purchasePrice?: number | null | undefined;
259
+ currentValue?: number | null | undefined;
260
+ }>;
261
+ export declare const createMaintenanceRecordAttributesSchema: z.ZodObject<{
262
+ date: z.ZodString;
263
+ type: z.ZodEnum<["routine", "oil-change", "inspection", "repair", "other"]>;
264
+ description: z.ZodString;
265
+ cost: z.ZodOptional<z.ZodNumber>;
266
+ performedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
267
+ nextMaintenanceDate: z.ZodOptional<z.ZodString>;
268
+ notes: z.ZodOptional<z.ZodString>;
269
+ }, "strip", z.ZodTypeAny, {
270
+ type: "other" | "repair" | "routine" | "oil-change" | "inspection";
271
+ date: string;
272
+ description: string;
273
+ notes?: string | undefined;
274
+ nextMaintenanceDate?: string | undefined;
275
+ cost?: number | undefined;
276
+ performedBy?: string | null | undefined;
277
+ }, {
278
+ type: "other" | "repair" | "routine" | "oil-change" | "inspection";
279
+ date: string;
280
+ description: string;
281
+ notes?: string | undefined;
282
+ nextMaintenanceDate?: string | undefined;
283
+ cost?: number | undefined;
284
+ performedBy?: string | null | undefined;
285
+ }>;
286
+ export declare const createEquipmentSchema: z.ZodObject<{
287
+ type: z.ZodLiteral<"equipment">;
288
+ attributes: z.ZodObject<{
289
+ name: z.ZodString;
290
+ type: z.ZodEnum<["tractor", "sprayer", "harvester", "planter", "tiller", "irrigation", "tool", "other"]>;
291
+ brand: z.ZodOptional<z.ZodString>;
292
+ model: z.ZodOptional<z.ZodString>;
293
+ serialNumber: z.ZodOptional<z.ZodString>;
294
+ purchaseDate: z.ZodOptional<z.ZodString>;
295
+ purchasePrice: z.ZodOptional<z.ZodNumber>;
296
+ currentValue: z.ZodOptional<z.ZodNumber>;
297
+ status: z.ZodDefault<z.ZodEnum<["operational", "maintenance", "repair", "retired"]>>;
298
+ location: z.ZodOptional<z.ZodString>;
299
+ assignedTo: z.ZodOptional<z.ZodString>;
300
+ notes: z.ZodOptional<z.ZodString>;
301
+ }, "strip", z.ZodTypeAny, {
302
+ type: "other" | "tractor" | "sprayer" | "harvester" | "planter" | "tiller" | "irrigation" | "tool";
303
+ status: "operational" | "maintenance" | "repair" | "retired";
304
+ name: string;
305
+ brand?: string | undefined;
306
+ location?: string | undefined;
307
+ assignedTo?: string | undefined;
308
+ notes?: string | undefined;
309
+ model?: string | undefined;
310
+ serialNumber?: string | undefined;
311
+ purchaseDate?: string | undefined;
312
+ purchasePrice?: number | undefined;
313
+ currentValue?: number | undefined;
314
+ }, {
315
+ type: "other" | "tractor" | "sprayer" | "harvester" | "planter" | "tiller" | "irrigation" | "tool";
316
+ name: string;
317
+ status?: "operational" | "maintenance" | "repair" | "retired" | undefined;
318
+ brand?: string | undefined;
319
+ location?: string | undefined;
320
+ assignedTo?: string | undefined;
321
+ notes?: string | undefined;
322
+ model?: string | undefined;
323
+ serialNumber?: string | undefined;
324
+ purchaseDate?: string | undefined;
325
+ purchasePrice?: number | undefined;
326
+ currentValue?: number | undefined;
327
+ }>;
328
+ }, "strip", z.ZodTypeAny, {
329
+ type: "equipment";
330
+ attributes: {
331
+ type: "other" | "tractor" | "sprayer" | "harvester" | "planter" | "tiller" | "irrigation" | "tool";
332
+ status: "operational" | "maintenance" | "repair" | "retired";
333
+ name: string;
334
+ brand?: string | undefined;
335
+ location?: string | undefined;
336
+ assignedTo?: string | undefined;
337
+ notes?: string | undefined;
338
+ model?: string | undefined;
339
+ serialNumber?: string | undefined;
340
+ purchaseDate?: string | undefined;
341
+ purchasePrice?: number | undefined;
342
+ currentValue?: number | undefined;
343
+ };
344
+ }, {
345
+ type: "equipment";
346
+ attributes: {
347
+ type: "other" | "tractor" | "sprayer" | "harvester" | "planter" | "tiller" | "irrigation" | "tool";
348
+ name: string;
349
+ status?: "operational" | "maintenance" | "repair" | "retired" | undefined;
350
+ brand?: string | undefined;
351
+ location?: string | undefined;
352
+ assignedTo?: string | undefined;
353
+ notes?: string | undefined;
354
+ model?: string | undefined;
355
+ serialNumber?: string | undefined;
356
+ purchaseDate?: string | undefined;
357
+ purchasePrice?: number | undefined;
358
+ currentValue?: number | undefined;
359
+ };
360
+ }>;
361
+ export declare const updateEquipmentSchema: z.ZodObject<{
362
+ type: z.ZodLiteral<"equipment">;
363
+ id: z.ZodString;
364
+ attributes: z.ZodObject<{
365
+ name: z.ZodOptional<z.ZodString>;
366
+ type: z.ZodOptional<z.ZodEnum<["tractor", "sprayer", "harvester", "planter", "tiller", "irrigation", "tool", "other"]>>;
367
+ brand: z.ZodOptional<z.ZodNullable<z.ZodString>>;
368
+ model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
369
+ serialNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
370
+ purchaseDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
371
+ purchasePrice: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
372
+ currentValue: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
373
+ status: z.ZodOptional<z.ZodEnum<["operational", "maintenance", "repair", "retired"]>>;
374
+ location: z.ZodOptional<z.ZodNullable<z.ZodString>>;
375
+ assignedTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
376
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
377
+ }, "strip", z.ZodTypeAny, {
378
+ type?: "other" | "tractor" | "sprayer" | "harvester" | "planter" | "tiller" | "irrigation" | "tool" | undefined;
379
+ status?: "operational" | "maintenance" | "repair" | "retired" | undefined;
380
+ name?: string | undefined;
381
+ brand?: string | null | undefined;
382
+ location?: string | null | undefined;
383
+ assignedTo?: string | null | undefined;
384
+ notes?: string | null | undefined;
385
+ model?: string | null | undefined;
386
+ serialNumber?: string | null | undefined;
387
+ purchaseDate?: string | null | undefined;
388
+ purchasePrice?: number | null | undefined;
389
+ currentValue?: number | null | undefined;
390
+ }, {
391
+ type?: "other" | "tractor" | "sprayer" | "harvester" | "planter" | "tiller" | "irrigation" | "tool" | undefined;
392
+ status?: "operational" | "maintenance" | "repair" | "retired" | undefined;
393
+ name?: string | undefined;
394
+ brand?: string | null | undefined;
395
+ location?: string | null | undefined;
396
+ assignedTo?: string | null | undefined;
397
+ notes?: string | null | undefined;
398
+ model?: string | null | undefined;
399
+ serialNumber?: string | null | undefined;
400
+ purchaseDate?: string | null | undefined;
401
+ purchasePrice?: number | null | undefined;
402
+ currentValue?: number | null | undefined;
403
+ }>;
404
+ }, "strip", z.ZodTypeAny, {
405
+ type: "equipment";
406
+ id: string;
407
+ attributes: {
408
+ type?: "other" | "tractor" | "sprayer" | "harvester" | "planter" | "tiller" | "irrigation" | "tool" | undefined;
409
+ status?: "operational" | "maintenance" | "repair" | "retired" | undefined;
410
+ name?: string | undefined;
411
+ brand?: string | null | undefined;
412
+ location?: string | null | undefined;
413
+ assignedTo?: string | null | undefined;
414
+ notes?: string | null | undefined;
415
+ model?: string | null | undefined;
416
+ serialNumber?: string | null | undefined;
417
+ purchaseDate?: string | null | undefined;
418
+ purchasePrice?: number | null | undefined;
419
+ currentValue?: number | null | undefined;
420
+ };
421
+ }, {
422
+ type: "equipment";
423
+ id: string;
424
+ attributes: {
425
+ type?: "other" | "tractor" | "sprayer" | "harvester" | "planter" | "tiller" | "irrigation" | "tool" | undefined;
426
+ status?: "operational" | "maintenance" | "repair" | "retired" | undefined;
427
+ name?: string | undefined;
428
+ brand?: string | null | undefined;
429
+ location?: string | null | undefined;
430
+ assignedTo?: string | null | undefined;
431
+ notes?: string | null | undefined;
432
+ model?: string | null | undefined;
433
+ serialNumber?: string | null | undefined;
434
+ purchaseDate?: string | null | undefined;
435
+ purchasePrice?: number | null | undefined;
436
+ currentValue?: number | null | undefined;
437
+ };
438
+ }>;
439
+ export declare const createMaintenanceRecordSchema: z.ZodObject<{
440
+ type: z.ZodLiteral<"maintenance-records">;
441
+ attributes: z.ZodObject<{
442
+ date: z.ZodString;
443
+ type: z.ZodEnum<["routine", "oil-change", "inspection", "repair", "other"]>;
444
+ description: z.ZodString;
445
+ cost: z.ZodOptional<z.ZodNumber>;
446
+ performedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
447
+ nextMaintenanceDate: z.ZodOptional<z.ZodString>;
448
+ notes: z.ZodOptional<z.ZodString>;
449
+ }, "strip", z.ZodTypeAny, {
450
+ type: "other" | "repair" | "routine" | "oil-change" | "inspection";
451
+ date: string;
452
+ description: string;
453
+ notes?: string | undefined;
454
+ nextMaintenanceDate?: string | undefined;
455
+ cost?: number | undefined;
456
+ performedBy?: string | null | undefined;
457
+ }, {
458
+ type: "other" | "repair" | "routine" | "oil-change" | "inspection";
459
+ date: string;
460
+ description: string;
461
+ notes?: string | undefined;
462
+ nextMaintenanceDate?: string | undefined;
463
+ cost?: number | undefined;
464
+ performedBy?: string | null | undefined;
465
+ }>;
466
+ }, "strip", z.ZodTypeAny, {
467
+ type: "maintenance-records";
468
+ attributes: {
469
+ type: "other" | "repair" | "routine" | "oil-change" | "inspection";
470
+ date: string;
471
+ description: string;
472
+ notes?: string | undefined;
473
+ nextMaintenanceDate?: string | undefined;
474
+ cost?: number | undefined;
475
+ performedBy?: string | null | undefined;
476
+ };
477
+ }, {
478
+ type: "maintenance-records";
479
+ attributes: {
480
+ type: "other" | "repair" | "routine" | "oil-change" | "inspection";
481
+ date: string;
482
+ description: string;
483
+ notes?: string | undefined;
484
+ nextMaintenanceDate?: string | undefined;
485
+ cost?: number | undefined;
486
+ performedBy?: string | null | undefined;
487
+ };
488
+ }>;
489
+ export declare const equipmentResourceSchema: z.ZodObject<{
490
+ type: z.ZodLiteral<string>;
491
+ id: z.ZodString;
492
+ attributes: z.ZodObject<{
493
+ farmId: z.ZodString;
494
+ name: z.ZodString;
495
+ type: z.ZodEnum<["tractor", "sprayer", "harvester", "planter", "tiller", "irrigation", "tool", "other"]>;
496
+ brand: z.ZodNullable<z.ZodString>;
497
+ model: z.ZodNullable<z.ZodString>;
498
+ serialNumber: z.ZodNullable<z.ZodString>;
499
+ purchaseDate: z.ZodNullable<z.ZodString>;
500
+ purchasePrice: z.ZodNullable<z.ZodNumber>;
501
+ currentValue: z.ZodNullable<z.ZodNumber>;
502
+ status: z.ZodEnum<["operational", "maintenance", "repair", "retired"]>;
503
+ location: z.ZodNullable<z.ZodString>;
504
+ assignedTo: z.ZodNullable<z.ZodString>;
505
+ assignedToName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
506
+ maintenanceSchedule: z.ZodOptional<z.ZodNullable<z.ZodObject<{
507
+ intervalDays: z.ZodNumber;
508
+ lastMaintenanceDate: z.ZodNullable<z.ZodString>;
509
+ nextMaintenanceDate: z.ZodNullable<z.ZodString>;
510
+ maintenanceType: z.ZodEnum<["routine", "oil-change", "inspection", "repair", "other"]>;
511
+ description: z.ZodNullable<z.ZodString>;
512
+ }, "strip", z.ZodTypeAny, {
513
+ description: string | null;
514
+ intervalDays: number;
515
+ lastMaintenanceDate: string | null;
516
+ nextMaintenanceDate: string | null;
517
+ maintenanceType: "other" | "repair" | "routine" | "oil-change" | "inspection";
518
+ }, {
519
+ description: string | null;
520
+ intervalDays: number;
521
+ lastMaintenanceDate: string | null;
522
+ nextMaintenanceDate: string | null;
523
+ maintenanceType: "other" | "repair" | "routine" | "oil-change" | "inspection";
524
+ }>>>;
525
+ maintenanceHistory: z.ZodOptional<z.ZodArray<z.ZodObject<{
526
+ date: z.ZodString;
527
+ type: z.ZodEnum<["routine", "oil-change", "inspection", "repair", "other"]>;
528
+ description: z.ZodString;
529
+ cost: z.ZodNullable<z.ZodNumber>;
530
+ performedBy: z.ZodNullable<z.ZodString>;
531
+ nextMaintenanceDate: z.ZodNullable<z.ZodString>;
532
+ notes: z.ZodNullable<z.ZodString>;
533
+ }, "strip", z.ZodTypeAny, {
534
+ type: "other" | "repair" | "routine" | "oil-change" | "inspection";
535
+ date: string;
536
+ description: string;
537
+ notes: string | null;
538
+ nextMaintenanceDate: string | null;
539
+ cost: number | null;
540
+ performedBy: string | null;
541
+ }, {
542
+ type: "other" | "repair" | "routine" | "oil-change" | "inspection";
543
+ date: string;
544
+ description: string;
545
+ notes: string | null;
546
+ nextMaintenanceDate: string | null;
547
+ cost: number | null;
548
+ performedBy: string | null;
549
+ }>, "many">>;
550
+ notes: z.ZodNullable<z.ZodString>;
551
+ } & {
552
+ createdAt: z.ZodString;
553
+ updatedAt: z.ZodString;
554
+ }, "strip", z.ZodTypeAny, {
555
+ type: "other" | "tractor" | "sprayer" | "harvester" | "planter" | "tiller" | "irrigation" | "tool";
556
+ status: "operational" | "maintenance" | "repair" | "retired";
557
+ createdAt: string;
558
+ updatedAt: string;
559
+ name: string;
560
+ brand: string | null;
561
+ location: string | null;
562
+ farmId: string;
563
+ assignedTo: string | null;
564
+ notes: string | null;
565
+ model: string | null;
566
+ serialNumber: string | null;
567
+ purchaseDate: string | null;
568
+ purchasePrice: number | null;
569
+ currentValue: number | null;
570
+ assignedToName?: string | null | undefined;
571
+ maintenanceSchedule?: {
572
+ description: string | null;
573
+ intervalDays: number;
574
+ lastMaintenanceDate: string | null;
575
+ nextMaintenanceDate: string | null;
576
+ maintenanceType: "other" | "repair" | "routine" | "oil-change" | "inspection";
577
+ } | null | undefined;
578
+ maintenanceHistory?: {
579
+ type: "other" | "repair" | "routine" | "oil-change" | "inspection";
580
+ date: string;
581
+ description: string;
582
+ notes: string | null;
583
+ nextMaintenanceDate: string | null;
584
+ cost: number | null;
585
+ performedBy: string | null;
586
+ }[] | undefined;
587
+ }, {
588
+ type: "other" | "tractor" | "sprayer" | "harvester" | "planter" | "tiller" | "irrigation" | "tool";
589
+ status: "operational" | "maintenance" | "repair" | "retired";
590
+ createdAt: string;
591
+ updatedAt: string;
592
+ name: string;
593
+ brand: string | null;
594
+ location: string | null;
595
+ farmId: string;
596
+ assignedTo: string | null;
597
+ notes: string | null;
598
+ model: string | null;
599
+ serialNumber: string | null;
600
+ purchaseDate: string | null;
601
+ purchasePrice: number | null;
602
+ currentValue: number | null;
603
+ assignedToName?: string | null | undefined;
604
+ maintenanceSchedule?: {
605
+ description: string | null;
606
+ intervalDays: number;
607
+ lastMaintenanceDate: string | null;
608
+ nextMaintenanceDate: string | null;
609
+ maintenanceType: "other" | "repair" | "routine" | "oil-change" | "inspection";
610
+ } | null | undefined;
611
+ maintenanceHistory?: {
612
+ type: "other" | "repair" | "routine" | "oil-change" | "inspection";
613
+ date: string;
614
+ description: string;
615
+ notes: string | null;
616
+ nextMaintenanceDate: string | null;
617
+ cost: number | null;
618
+ performedBy: string | null;
619
+ }[] | undefined;
620
+ }>;
621
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
622
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
623
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
624
+ }, "strip", z.ZodTypeAny, {
625
+ type: string;
626
+ id: string;
627
+ attributes: {
628
+ type: "other" | "tractor" | "sprayer" | "harvester" | "planter" | "tiller" | "irrigation" | "tool";
629
+ status: "operational" | "maintenance" | "repair" | "retired";
630
+ createdAt: string;
631
+ updatedAt: string;
632
+ name: string;
633
+ brand: string | null;
634
+ location: string | null;
635
+ farmId: string;
636
+ assignedTo: string | null;
637
+ notes: string | null;
638
+ model: string | null;
639
+ serialNumber: string | null;
640
+ purchaseDate: string | null;
641
+ purchasePrice: number | null;
642
+ currentValue: number | null;
643
+ assignedToName?: string | null | undefined;
644
+ maintenanceSchedule?: {
645
+ description: string | null;
646
+ intervalDays: number;
647
+ lastMaintenanceDate: string | null;
648
+ nextMaintenanceDate: string | null;
649
+ maintenanceType: "other" | "repair" | "routine" | "oil-change" | "inspection";
650
+ } | null | undefined;
651
+ maintenanceHistory?: {
652
+ type: "other" | "repair" | "routine" | "oil-change" | "inspection";
653
+ date: string;
654
+ description: string;
655
+ notes: string | null;
656
+ nextMaintenanceDate: string | null;
657
+ cost: number | null;
658
+ performedBy: string | null;
659
+ }[] | undefined;
660
+ };
661
+ relationships?: Record<string, unknown> | undefined;
662
+ links?: Record<string, string> | undefined;
663
+ meta?: Record<string, unknown> | undefined;
664
+ }, {
665
+ type: string;
666
+ id: string;
667
+ attributes: {
668
+ type: "other" | "tractor" | "sprayer" | "harvester" | "planter" | "tiller" | "irrigation" | "tool";
669
+ status: "operational" | "maintenance" | "repair" | "retired";
670
+ createdAt: string;
671
+ updatedAt: string;
672
+ name: string;
673
+ brand: string | null;
674
+ location: string | null;
675
+ farmId: string;
676
+ assignedTo: string | null;
677
+ notes: string | null;
678
+ model: string | null;
679
+ serialNumber: string | null;
680
+ purchaseDate: string | null;
681
+ purchasePrice: number | null;
682
+ currentValue: number | null;
683
+ assignedToName?: string | null | undefined;
684
+ maintenanceSchedule?: {
685
+ description: string | null;
686
+ intervalDays: number;
687
+ lastMaintenanceDate: string | null;
688
+ nextMaintenanceDate: string | null;
689
+ maintenanceType: "other" | "repair" | "routine" | "oil-change" | "inspection";
690
+ } | null | undefined;
691
+ maintenanceHistory?: {
692
+ type: "other" | "repair" | "routine" | "oil-change" | "inspection";
693
+ date: string;
694
+ description: string;
695
+ notes: string | null;
696
+ nextMaintenanceDate: string | null;
697
+ cost: number | null;
698
+ performedBy: string | null;
699
+ }[] | undefined;
700
+ };
701
+ relationships?: Record<string, unknown> | undefined;
702
+ links?: Record<string, string> | undefined;
703
+ meta?: Record<string, unknown> | undefined;
704
+ }>;
705
+ export declare const maintenanceRecordResourceSchema: z.ZodObject<{
706
+ type: z.ZodLiteral<string>;
707
+ id: z.ZodString;
708
+ attributes: z.ZodObject<{
709
+ date: z.ZodString;
710
+ type: z.ZodEnum<["routine", "oil-change", "inspection", "repair", "other"]>;
711
+ description: z.ZodString;
712
+ cost: z.ZodNullable<z.ZodNumber>;
713
+ performedBy: z.ZodNullable<z.ZodString>;
714
+ nextMaintenanceDate: z.ZodNullable<z.ZodString>;
715
+ notes: z.ZodNullable<z.ZodString>;
716
+ }, "strip", z.ZodTypeAny, {
717
+ type: "other" | "repair" | "routine" | "oil-change" | "inspection";
718
+ date: string;
719
+ description: string;
720
+ notes: string | null;
721
+ nextMaintenanceDate: string | null;
722
+ cost: number | null;
723
+ performedBy: string | null;
724
+ }, {
725
+ type: "other" | "repair" | "routine" | "oil-change" | "inspection";
726
+ date: string;
727
+ description: string;
728
+ notes: string | null;
729
+ nextMaintenanceDate: string | null;
730
+ cost: number | null;
731
+ performedBy: string | null;
732
+ }>;
733
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
734
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
735
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
736
+ }, "strip", z.ZodTypeAny, {
737
+ type: string;
738
+ id: string;
739
+ attributes: {
740
+ type: "other" | "repair" | "routine" | "oil-change" | "inspection";
741
+ date: string;
742
+ description: string;
743
+ notes: string | null;
744
+ nextMaintenanceDate: string | null;
745
+ cost: number | null;
746
+ performedBy: string | null;
747
+ };
748
+ relationships?: Record<string, unknown> | undefined;
749
+ links?: Record<string, string> | undefined;
750
+ meta?: Record<string, unknown> | undefined;
751
+ }, {
752
+ type: string;
753
+ id: string;
754
+ attributes: {
755
+ type: "other" | "repair" | "routine" | "oil-change" | "inspection";
756
+ date: string;
757
+ description: string;
758
+ notes: string | null;
759
+ nextMaintenanceDate: string | null;
760
+ cost: number | null;
761
+ performedBy: string | null;
762
+ };
763
+ relationships?: Record<string, unknown> | undefined;
764
+ links?: Record<string, string> | undefined;
765
+ meta?: Record<string, unknown> | undefined;
766
+ }>;
767
+ export declare const equipmentResponseSchema: z.ZodObject<{
768
+ data: z.ZodObject<{
769
+ type: z.ZodLiteral<string>;
770
+ id: z.ZodString;
771
+ attributes: z.ZodObject<{
772
+ farmId: z.ZodString;
773
+ name: z.ZodString;
774
+ type: z.ZodEnum<["tractor", "sprayer", "harvester", "planter", "tiller", "irrigation", "tool", "other"]>;
775
+ brand: z.ZodNullable<z.ZodString>;
776
+ model: z.ZodNullable<z.ZodString>;
777
+ serialNumber: z.ZodNullable<z.ZodString>;
778
+ purchaseDate: z.ZodNullable<z.ZodString>;
779
+ purchasePrice: z.ZodNullable<z.ZodNumber>;
780
+ currentValue: z.ZodNullable<z.ZodNumber>;
781
+ status: z.ZodEnum<["operational", "maintenance", "repair", "retired"]>;
782
+ location: z.ZodNullable<z.ZodString>;
783
+ assignedTo: z.ZodNullable<z.ZodString>;
784
+ assignedToName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
785
+ maintenanceSchedule: z.ZodOptional<z.ZodNullable<z.ZodObject<{
786
+ intervalDays: z.ZodNumber;
787
+ lastMaintenanceDate: z.ZodNullable<z.ZodString>;
788
+ nextMaintenanceDate: z.ZodNullable<z.ZodString>;
789
+ maintenanceType: z.ZodEnum<["routine", "oil-change", "inspection", "repair", "other"]>;
790
+ description: z.ZodNullable<z.ZodString>;
791
+ }, "strip", z.ZodTypeAny, {
792
+ description: string | null;
793
+ intervalDays: number;
794
+ lastMaintenanceDate: string | null;
795
+ nextMaintenanceDate: string | null;
796
+ maintenanceType: "other" | "repair" | "routine" | "oil-change" | "inspection";
797
+ }, {
798
+ description: string | null;
799
+ intervalDays: number;
800
+ lastMaintenanceDate: string | null;
801
+ nextMaintenanceDate: string | null;
802
+ maintenanceType: "other" | "repair" | "routine" | "oil-change" | "inspection";
803
+ }>>>;
804
+ maintenanceHistory: z.ZodOptional<z.ZodArray<z.ZodObject<{
805
+ date: z.ZodString;
806
+ type: z.ZodEnum<["routine", "oil-change", "inspection", "repair", "other"]>;
807
+ description: z.ZodString;
808
+ cost: z.ZodNullable<z.ZodNumber>;
809
+ performedBy: z.ZodNullable<z.ZodString>;
810
+ nextMaintenanceDate: z.ZodNullable<z.ZodString>;
811
+ notes: z.ZodNullable<z.ZodString>;
812
+ }, "strip", z.ZodTypeAny, {
813
+ type: "other" | "repair" | "routine" | "oil-change" | "inspection";
814
+ date: string;
815
+ description: string;
816
+ notes: string | null;
817
+ nextMaintenanceDate: string | null;
818
+ cost: number | null;
819
+ performedBy: string | null;
820
+ }, {
821
+ type: "other" | "repair" | "routine" | "oil-change" | "inspection";
822
+ date: string;
823
+ description: string;
824
+ notes: string | null;
825
+ nextMaintenanceDate: string | null;
826
+ cost: number | null;
827
+ performedBy: string | null;
828
+ }>, "many">>;
829
+ notes: z.ZodNullable<z.ZodString>;
830
+ } & {
831
+ createdAt: z.ZodString;
832
+ updatedAt: z.ZodString;
833
+ }, "strip", z.ZodTypeAny, {
834
+ type: "other" | "tractor" | "sprayer" | "harvester" | "planter" | "tiller" | "irrigation" | "tool";
835
+ status: "operational" | "maintenance" | "repair" | "retired";
836
+ createdAt: string;
837
+ updatedAt: string;
838
+ name: string;
839
+ brand: string | null;
840
+ location: string | null;
841
+ farmId: string;
842
+ assignedTo: string | null;
843
+ notes: string | null;
844
+ model: string | null;
845
+ serialNumber: string | null;
846
+ purchaseDate: string | null;
847
+ purchasePrice: number | null;
848
+ currentValue: number | null;
849
+ assignedToName?: string | null | undefined;
850
+ maintenanceSchedule?: {
851
+ description: string | null;
852
+ intervalDays: number;
853
+ lastMaintenanceDate: string | null;
854
+ nextMaintenanceDate: string | null;
855
+ maintenanceType: "other" | "repair" | "routine" | "oil-change" | "inspection";
856
+ } | null | undefined;
857
+ maintenanceHistory?: {
858
+ type: "other" | "repair" | "routine" | "oil-change" | "inspection";
859
+ date: string;
860
+ description: string;
861
+ notes: string | null;
862
+ nextMaintenanceDate: string | null;
863
+ cost: number | null;
864
+ performedBy: string | null;
865
+ }[] | undefined;
866
+ }, {
867
+ type: "other" | "tractor" | "sprayer" | "harvester" | "planter" | "tiller" | "irrigation" | "tool";
868
+ status: "operational" | "maintenance" | "repair" | "retired";
869
+ createdAt: string;
870
+ updatedAt: string;
871
+ name: string;
872
+ brand: string | null;
873
+ location: string | null;
874
+ farmId: string;
875
+ assignedTo: string | null;
876
+ notes: string | null;
877
+ model: string | null;
878
+ serialNumber: string | null;
879
+ purchaseDate: string | null;
880
+ purchasePrice: number | null;
881
+ currentValue: number | null;
882
+ assignedToName?: string | null | undefined;
883
+ maintenanceSchedule?: {
884
+ description: string | null;
885
+ intervalDays: number;
886
+ lastMaintenanceDate: string | null;
887
+ nextMaintenanceDate: string | null;
888
+ maintenanceType: "other" | "repair" | "routine" | "oil-change" | "inspection";
889
+ } | null | undefined;
890
+ maintenanceHistory?: {
891
+ type: "other" | "repair" | "routine" | "oil-change" | "inspection";
892
+ date: string;
893
+ description: string;
894
+ notes: string | null;
895
+ nextMaintenanceDate: string | null;
896
+ cost: number | null;
897
+ performedBy: string | null;
898
+ }[] | undefined;
899
+ }>;
900
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
901
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
902
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
903
+ }, "strip", z.ZodTypeAny, {
904
+ type: string;
905
+ id: string;
906
+ attributes: {
907
+ type: "other" | "tractor" | "sprayer" | "harvester" | "planter" | "tiller" | "irrigation" | "tool";
908
+ status: "operational" | "maintenance" | "repair" | "retired";
909
+ createdAt: string;
910
+ updatedAt: string;
911
+ name: string;
912
+ brand: string | null;
913
+ location: string | null;
914
+ farmId: string;
915
+ assignedTo: string | null;
916
+ notes: string | null;
917
+ model: string | null;
918
+ serialNumber: string | null;
919
+ purchaseDate: string | null;
920
+ purchasePrice: number | null;
921
+ currentValue: number | null;
922
+ assignedToName?: string | null | undefined;
923
+ maintenanceSchedule?: {
924
+ description: string | null;
925
+ intervalDays: number;
926
+ lastMaintenanceDate: string | null;
927
+ nextMaintenanceDate: string | null;
928
+ maintenanceType: "other" | "repair" | "routine" | "oil-change" | "inspection";
929
+ } | null | undefined;
930
+ maintenanceHistory?: {
931
+ type: "other" | "repair" | "routine" | "oil-change" | "inspection";
932
+ date: string;
933
+ description: string;
934
+ notes: string | null;
935
+ nextMaintenanceDate: string | null;
936
+ cost: number | null;
937
+ performedBy: string | null;
938
+ }[] | undefined;
939
+ };
940
+ relationships?: Record<string, unknown> | undefined;
941
+ links?: Record<string, string> | undefined;
942
+ meta?: Record<string, unknown> | undefined;
943
+ }, {
944
+ type: string;
945
+ id: string;
946
+ attributes: {
947
+ type: "other" | "tractor" | "sprayer" | "harvester" | "planter" | "tiller" | "irrigation" | "tool";
948
+ status: "operational" | "maintenance" | "repair" | "retired";
949
+ createdAt: string;
950
+ updatedAt: string;
951
+ name: string;
952
+ brand: string | null;
953
+ location: string | null;
954
+ farmId: string;
955
+ assignedTo: string | null;
956
+ notes: string | null;
957
+ model: string | null;
958
+ serialNumber: string | null;
959
+ purchaseDate: string | null;
960
+ purchasePrice: number | null;
961
+ currentValue: number | null;
962
+ assignedToName?: string | null | undefined;
963
+ maintenanceSchedule?: {
964
+ description: string | null;
965
+ intervalDays: number;
966
+ lastMaintenanceDate: string | null;
967
+ nextMaintenanceDate: string | null;
968
+ maintenanceType: "other" | "repair" | "routine" | "oil-change" | "inspection";
969
+ } | null | undefined;
970
+ maintenanceHistory?: {
971
+ type: "other" | "repair" | "routine" | "oil-change" | "inspection";
972
+ date: string;
973
+ description: string;
974
+ notes: string | null;
975
+ nextMaintenanceDate: string | null;
976
+ cost: number | null;
977
+ performedBy: string | null;
978
+ }[] | undefined;
979
+ };
980
+ relationships?: Record<string, unknown> | undefined;
981
+ links?: Record<string, string> | undefined;
982
+ meta?: Record<string, unknown> | undefined;
983
+ }>;
984
+ included: z.ZodOptional<z.ZodArray<z.ZodObject<{
985
+ type: z.ZodString;
986
+ id: z.ZodString;
987
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
988
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
989
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
990
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
991
+ }, "strip", z.ZodTypeAny, {
992
+ type: string;
993
+ id: string;
994
+ attributes?: Record<string, unknown> | undefined;
995
+ relationships?: Record<string, unknown> | undefined;
996
+ links?: Record<string, string> | undefined;
997
+ meta?: Record<string, unknown> | undefined;
998
+ }, {
999
+ type: string;
1000
+ id: string;
1001
+ attributes?: Record<string, unknown> | undefined;
1002
+ relationships?: Record<string, unknown> | undefined;
1003
+ links?: Record<string, string> | undefined;
1004
+ meta?: Record<string, unknown> | undefined;
1005
+ }>, "many">>;
1006
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1007
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1008
+ }, "strip", z.ZodTypeAny, {
1009
+ data: {
1010
+ type: string;
1011
+ id: string;
1012
+ attributes: {
1013
+ type: "other" | "tractor" | "sprayer" | "harvester" | "planter" | "tiller" | "irrigation" | "tool";
1014
+ status: "operational" | "maintenance" | "repair" | "retired";
1015
+ createdAt: string;
1016
+ updatedAt: string;
1017
+ name: string;
1018
+ brand: string | null;
1019
+ location: string | null;
1020
+ farmId: string;
1021
+ assignedTo: string | null;
1022
+ notes: string | null;
1023
+ model: string | null;
1024
+ serialNumber: string | null;
1025
+ purchaseDate: string | null;
1026
+ purchasePrice: number | null;
1027
+ currentValue: number | null;
1028
+ assignedToName?: string | null | undefined;
1029
+ maintenanceSchedule?: {
1030
+ description: string | null;
1031
+ intervalDays: number;
1032
+ lastMaintenanceDate: string | null;
1033
+ nextMaintenanceDate: string | null;
1034
+ maintenanceType: "other" | "repair" | "routine" | "oil-change" | "inspection";
1035
+ } | null | undefined;
1036
+ maintenanceHistory?: {
1037
+ type: "other" | "repair" | "routine" | "oil-change" | "inspection";
1038
+ date: string;
1039
+ description: string;
1040
+ notes: string | null;
1041
+ nextMaintenanceDate: string | null;
1042
+ cost: number | null;
1043
+ performedBy: string | null;
1044
+ }[] | undefined;
1045
+ };
1046
+ relationships?: Record<string, unknown> | undefined;
1047
+ links?: Record<string, string> | undefined;
1048
+ meta?: Record<string, unknown> | undefined;
1049
+ };
1050
+ links?: Record<string, string> | undefined;
1051
+ meta?: Record<string, unknown> | undefined;
1052
+ included?: {
1053
+ type: string;
1054
+ id: string;
1055
+ attributes?: Record<string, unknown> | undefined;
1056
+ relationships?: Record<string, unknown> | undefined;
1057
+ links?: Record<string, string> | undefined;
1058
+ meta?: Record<string, unknown> | undefined;
1059
+ }[] | undefined;
1060
+ }, {
1061
+ data: {
1062
+ type: string;
1063
+ id: string;
1064
+ attributes: {
1065
+ type: "other" | "tractor" | "sprayer" | "harvester" | "planter" | "tiller" | "irrigation" | "tool";
1066
+ status: "operational" | "maintenance" | "repair" | "retired";
1067
+ createdAt: string;
1068
+ updatedAt: string;
1069
+ name: string;
1070
+ brand: string | null;
1071
+ location: string | null;
1072
+ farmId: string;
1073
+ assignedTo: string | null;
1074
+ notes: string | null;
1075
+ model: string | null;
1076
+ serialNumber: string | null;
1077
+ purchaseDate: string | null;
1078
+ purchasePrice: number | null;
1079
+ currentValue: number | null;
1080
+ assignedToName?: string | null | undefined;
1081
+ maintenanceSchedule?: {
1082
+ description: string | null;
1083
+ intervalDays: number;
1084
+ lastMaintenanceDate: string | null;
1085
+ nextMaintenanceDate: string | null;
1086
+ maintenanceType: "other" | "repair" | "routine" | "oil-change" | "inspection";
1087
+ } | null | undefined;
1088
+ maintenanceHistory?: {
1089
+ type: "other" | "repair" | "routine" | "oil-change" | "inspection";
1090
+ date: string;
1091
+ description: string;
1092
+ notes: string | null;
1093
+ nextMaintenanceDate: string | null;
1094
+ cost: number | null;
1095
+ performedBy: string | null;
1096
+ }[] | undefined;
1097
+ };
1098
+ relationships?: Record<string, unknown> | undefined;
1099
+ links?: Record<string, string> | undefined;
1100
+ meta?: Record<string, unknown> | undefined;
1101
+ };
1102
+ links?: Record<string, string> | undefined;
1103
+ meta?: Record<string, unknown> | undefined;
1104
+ included?: {
1105
+ type: string;
1106
+ id: string;
1107
+ attributes?: Record<string, unknown> | undefined;
1108
+ relationships?: Record<string, unknown> | undefined;
1109
+ links?: Record<string, string> | undefined;
1110
+ meta?: Record<string, unknown> | undefined;
1111
+ }[] | undefined;
1112
+ }>;
1113
+ export declare const equipmentListResponseSchema: z.ZodObject<{
1114
+ data: z.ZodArray<z.ZodObject<{
1115
+ type: z.ZodLiteral<string>;
1116
+ id: z.ZodString;
1117
+ attributes: z.ZodObject<{
1118
+ farmId: z.ZodString;
1119
+ name: z.ZodString;
1120
+ type: z.ZodEnum<["tractor", "sprayer", "harvester", "planter", "tiller", "irrigation", "tool", "other"]>;
1121
+ brand: z.ZodNullable<z.ZodString>;
1122
+ model: z.ZodNullable<z.ZodString>;
1123
+ serialNumber: z.ZodNullable<z.ZodString>;
1124
+ purchaseDate: z.ZodNullable<z.ZodString>;
1125
+ purchasePrice: z.ZodNullable<z.ZodNumber>;
1126
+ currentValue: z.ZodNullable<z.ZodNumber>;
1127
+ status: z.ZodEnum<["operational", "maintenance", "repair", "retired"]>;
1128
+ location: z.ZodNullable<z.ZodString>;
1129
+ assignedTo: z.ZodNullable<z.ZodString>;
1130
+ assignedToName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1131
+ maintenanceSchedule: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1132
+ intervalDays: z.ZodNumber;
1133
+ lastMaintenanceDate: z.ZodNullable<z.ZodString>;
1134
+ nextMaintenanceDate: z.ZodNullable<z.ZodString>;
1135
+ maintenanceType: z.ZodEnum<["routine", "oil-change", "inspection", "repair", "other"]>;
1136
+ description: z.ZodNullable<z.ZodString>;
1137
+ }, "strip", z.ZodTypeAny, {
1138
+ description: string | null;
1139
+ intervalDays: number;
1140
+ lastMaintenanceDate: string | null;
1141
+ nextMaintenanceDate: string | null;
1142
+ maintenanceType: "other" | "repair" | "routine" | "oil-change" | "inspection";
1143
+ }, {
1144
+ description: string | null;
1145
+ intervalDays: number;
1146
+ lastMaintenanceDate: string | null;
1147
+ nextMaintenanceDate: string | null;
1148
+ maintenanceType: "other" | "repair" | "routine" | "oil-change" | "inspection";
1149
+ }>>>;
1150
+ maintenanceHistory: z.ZodOptional<z.ZodArray<z.ZodObject<{
1151
+ date: z.ZodString;
1152
+ type: z.ZodEnum<["routine", "oil-change", "inspection", "repair", "other"]>;
1153
+ description: z.ZodString;
1154
+ cost: z.ZodNullable<z.ZodNumber>;
1155
+ performedBy: z.ZodNullable<z.ZodString>;
1156
+ nextMaintenanceDate: z.ZodNullable<z.ZodString>;
1157
+ notes: z.ZodNullable<z.ZodString>;
1158
+ }, "strip", z.ZodTypeAny, {
1159
+ type: "other" | "repair" | "routine" | "oil-change" | "inspection";
1160
+ date: string;
1161
+ description: string;
1162
+ notes: string | null;
1163
+ nextMaintenanceDate: string | null;
1164
+ cost: number | null;
1165
+ performedBy: string | null;
1166
+ }, {
1167
+ type: "other" | "repair" | "routine" | "oil-change" | "inspection";
1168
+ date: string;
1169
+ description: string;
1170
+ notes: string | null;
1171
+ nextMaintenanceDate: string | null;
1172
+ cost: number | null;
1173
+ performedBy: string | null;
1174
+ }>, "many">>;
1175
+ notes: z.ZodNullable<z.ZodString>;
1176
+ } & {
1177
+ createdAt: z.ZodString;
1178
+ updatedAt: z.ZodString;
1179
+ }, "strip", z.ZodTypeAny, {
1180
+ type: "other" | "tractor" | "sprayer" | "harvester" | "planter" | "tiller" | "irrigation" | "tool";
1181
+ status: "operational" | "maintenance" | "repair" | "retired";
1182
+ createdAt: string;
1183
+ updatedAt: string;
1184
+ name: string;
1185
+ brand: string | null;
1186
+ location: string | null;
1187
+ farmId: string;
1188
+ assignedTo: string | null;
1189
+ notes: string | null;
1190
+ model: string | null;
1191
+ serialNumber: string | null;
1192
+ purchaseDate: string | null;
1193
+ purchasePrice: number | null;
1194
+ currentValue: number | null;
1195
+ assignedToName?: string | null | undefined;
1196
+ maintenanceSchedule?: {
1197
+ description: string | null;
1198
+ intervalDays: number;
1199
+ lastMaintenanceDate: string | null;
1200
+ nextMaintenanceDate: string | null;
1201
+ maintenanceType: "other" | "repair" | "routine" | "oil-change" | "inspection";
1202
+ } | null | undefined;
1203
+ maintenanceHistory?: {
1204
+ type: "other" | "repair" | "routine" | "oil-change" | "inspection";
1205
+ date: string;
1206
+ description: string;
1207
+ notes: string | null;
1208
+ nextMaintenanceDate: string | null;
1209
+ cost: number | null;
1210
+ performedBy: string | null;
1211
+ }[] | undefined;
1212
+ }, {
1213
+ type: "other" | "tractor" | "sprayer" | "harvester" | "planter" | "tiller" | "irrigation" | "tool";
1214
+ status: "operational" | "maintenance" | "repair" | "retired";
1215
+ createdAt: string;
1216
+ updatedAt: string;
1217
+ name: string;
1218
+ brand: string | null;
1219
+ location: string | null;
1220
+ farmId: string;
1221
+ assignedTo: string | null;
1222
+ notes: string | null;
1223
+ model: string | null;
1224
+ serialNumber: string | null;
1225
+ purchaseDate: string | null;
1226
+ purchasePrice: number | null;
1227
+ currentValue: number | null;
1228
+ assignedToName?: string | null | undefined;
1229
+ maintenanceSchedule?: {
1230
+ description: string | null;
1231
+ intervalDays: number;
1232
+ lastMaintenanceDate: string | null;
1233
+ nextMaintenanceDate: string | null;
1234
+ maintenanceType: "other" | "repair" | "routine" | "oil-change" | "inspection";
1235
+ } | null | undefined;
1236
+ maintenanceHistory?: {
1237
+ type: "other" | "repair" | "routine" | "oil-change" | "inspection";
1238
+ date: string;
1239
+ description: string;
1240
+ notes: string | null;
1241
+ nextMaintenanceDate: string | null;
1242
+ cost: number | null;
1243
+ performedBy: string | null;
1244
+ }[] | undefined;
1245
+ }>;
1246
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1247
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1248
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1249
+ }, "strip", z.ZodTypeAny, {
1250
+ type: string;
1251
+ id: string;
1252
+ attributes: {
1253
+ type: "other" | "tractor" | "sprayer" | "harvester" | "planter" | "tiller" | "irrigation" | "tool";
1254
+ status: "operational" | "maintenance" | "repair" | "retired";
1255
+ createdAt: string;
1256
+ updatedAt: string;
1257
+ name: string;
1258
+ brand: string | null;
1259
+ location: string | null;
1260
+ farmId: string;
1261
+ assignedTo: string | null;
1262
+ notes: string | null;
1263
+ model: string | null;
1264
+ serialNumber: string | null;
1265
+ purchaseDate: string | null;
1266
+ purchasePrice: number | null;
1267
+ currentValue: number | null;
1268
+ assignedToName?: string | null | undefined;
1269
+ maintenanceSchedule?: {
1270
+ description: string | null;
1271
+ intervalDays: number;
1272
+ lastMaintenanceDate: string | null;
1273
+ nextMaintenanceDate: string | null;
1274
+ maintenanceType: "other" | "repair" | "routine" | "oil-change" | "inspection";
1275
+ } | null | undefined;
1276
+ maintenanceHistory?: {
1277
+ type: "other" | "repair" | "routine" | "oil-change" | "inspection";
1278
+ date: string;
1279
+ description: string;
1280
+ notes: string | null;
1281
+ nextMaintenanceDate: string | null;
1282
+ cost: number | null;
1283
+ performedBy: string | null;
1284
+ }[] | undefined;
1285
+ };
1286
+ relationships?: Record<string, unknown> | undefined;
1287
+ links?: Record<string, string> | undefined;
1288
+ meta?: Record<string, unknown> | undefined;
1289
+ }, {
1290
+ type: string;
1291
+ id: string;
1292
+ attributes: {
1293
+ type: "other" | "tractor" | "sprayer" | "harvester" | "planter" | "tiller" | "irrigation" | "tool";
1294
+ status: "operational" | "maintenance" | "repair" | "retired";
1295
+ createdAt: string;
1296
+ updatedAt: string;
1297
+ name: string;
1298
+ brand: string | null;
1299
+ location: string | null;
1300
+ farmId: string;
1301
+ assignedTo: string | null;
1302
+ notes: string | null;
1303
+ model: string | null;
1304
+ serialNumber: string | null;
1305
+ purchaseDate: string | null;
1306
+ purchasePrice: number | null;
1307
+ currentValue: number | null;
1308
+ assignedToName?: string | null | undefined;
1309
+ maintenanceSchedule?: {
1310
+ description: string | null;
1311
+ intervalDays: number;
1312
+ lastMaintenanceDate: string | null;
1313
+ nextMaintenanceDate: string | null;
1314
+ maintenanceType: "other" | "repair" | "routine" | "oil-change" | "inspection";
1315
+ } | null | undefined;
1316
+ maintenanceHistory?: {
1317
+ type: "other" | "repair" | "routine" | "oil-change" | "inspection";
1318
+ date: string;
1319
+ description: string;
1320
+ notes: string | null;
1321
+ nextMaintenanceDate: string | null;
1322
+ cost: number | null;
1323
+ performedBy: string | null;
1324
+ }[] | undefined;
1325
+ };
1326
+ relationships?: Record<string, unknown> | undefined;
1327
+ links?: Record<string, string> | undefined;
1328
+ meta?: Record<string, unknown> | undefined;
1329
+ }>, "many">;
1330
+ included: z.ZodOptional<z.ZodArray<z.ZodObject<{
1331
+ type: z.ZodString;
1332
+ id: z.ZodString;
1333
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1334
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1335
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1336
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1337
+ }, "strip", z.ZodTypeAny, {
1338
+ type: string;
1339
+ id: string;
1340
+ attributes?: Record<string, unknown> | undefined;
1341
+ relationships?: Record<string, unknown> | undefined;
1342
+ links?: Record<string, string> | undefined;
1343
+ meta?: Record<string, unknown> | undefined;
1344
+ }, {
1345
+ type: string;
1346
+ id: string;
1347
+ attributes?: Record<string, unknown> | undefined;
1348
+ relationships?: Record<string, unknown> | undefined;
1349
+ links?: Record<string, string> | undefined;
1350
+ meta?: Record<string, unknown> | undefined;
1351
+ }>, "many">>;
1352
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1353
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1354
+ }, "strip", z.ZodTypeAny, {
1355
+ data: {
1356
+ type: string;
1357
+ id: string;
1358
+ attributes: {
1359
+ type: "other" | "tractor" | "sprayer" | "harvester" | "planter" | "tiller" | "irrigation" | "tool";
1360
+ status: "operational" | "maintenance" | "repair" | "retired";
1361
+ createdAt: string;
1362
+ updatedAt: string;
1363
+ name: string;
1364
+ brand: string | null;
1365
+ location: string | null;
1366
+ farmId: string;
1367
+ assignedTo: string | null;
1368
+ notes: string | null;
1369
+ model: string | null;
1370
+ serialNumber: string | null;
1371
+ purchaseDate: string | null;
1372
+ purchasePrice: number | null;
1373
+ currentValue: number | null;
1374
+ assignedToName?: string | null | undefined;
1375
+ maintenanceSchedule?: {
1376
+ description: string | null;
1377
+ intervalDays: number;
1378
+ lastMaintenanceDate: string | null;
1379
+ nextMaintenanceDate: string | null;
1380
+ maintenanceType: "other" | "repair" | "routine" | "oil-change" | "inspection";
1381
+ } | null | undefined;
1382
+ maintenanceHistory?: {
1383
+ type: "other" | "repair" | "routine" | "oil-change" | "inspection";
1384
+ date: string;
1385
+ description: string;
1386
+ notes: string | null;
1387
+ nextMaintenanceDate: string | null;
1388
+ cost: number | null;
1389
+ performedBy: string | null;
1390
+ }[] | undefined;
1391
+ };
1392
+ relationships?: Record<string, unknown> | undefined;
1393
+ links?: Record<string, string> | undefined;
1394
+ meta?: Record<string, unknown> | undefined;
1395
+ }[];
1396
+ links?: Record<string, string> | undefined;
1397
+ meta?: Record<string, unknown> | undefined;
1398
+ included?: {
1399
+ type: string;
1400
+ id: string;
1401
+ attributes?: Record<string, unknown> | undefined;
1402
+ relationships?: Record<string, unknown> | undefined;
1403
+ links?: Record<string, string> | undefined;
1404
+ meta?: Record<string, unknown> | undefined;
1405
+ }[] | undefined;
1406
+ }, {
1407
+ data: {
1408
+ type: string;
1409
+ id: string;
1410
+ attributes: {
1411
+ type: "other" | "tractor" | "sprayer" | "harvester" | "planter" | "tiller" | "irrigation" | "tool";
1412
+ status: "operational" | "maintenance" | "repair" | "retired";
1413
+ createdAt: string;
1414
+ updatedAt: string;
1415
+ name: string;
1416
+ brand: string | null;
1417
+ location: string | null;
1418
+ farmId: string;
1419
+ assignedTo: string | null;
1420
+ notes: string | null;
1421
+ model: string | null;
1422
+ serialNumber: string | null;
1423
+ purchaseDate: string | null;
1424
+ purchasePrice: number | null;
1425
+ currentValue: number | null;
1426
+ assignedToName?: string | null | undefined;
1427
+ maintenanceSchedule?: {
1428
+ description: string | null;
1429
+ intervalDays: number;
1430
+ lastMaintenanceDate: string | null;
1431
+ nextMaintenanceDate: string | null;
1432
+ maintenanceType: "other" | "repair" | "routine" | "oil-change" | "inspection";
1433
+ } | null | undefined;
1434
+ maintenanceHistory?: {
1435
+ type: "other" | "repair" | "routine" | "oil-change" | "inspection";
1436
+ date: string;
1437
+ description: string;
1438
+ notes: string | null;
1439
+ nextMaintenanceDate: string | null;
1440
+ cost: number | null;
1441
+ performedBy: string | null;
1442
+ }[] | undefined;
1443
+ };
1444
+ relationships?: Record<string, unknown> | undefined;
1445
+ links?: Record<string, string> | undefined;
1446
+ meta?: Record<string, unknown> | undefined;
1447
+ }[];
1448
+ links?: Record<string, string> | undefined;
1449
+ meta?: Record<string, unknown> | undefined;
1450
+ included?: {
1451
+ type: string;
1452
+ id: string;
1453
+ attributes?: Record<string, unknown> | undefined;
1454
+ relationships?: Record<string, unknown> | undefined;
1455
+ links?: Record<string, string> | undefined;
1456
+ meta?: Record<string, unknown> | undefined;
1457
+ }[] | undefined;
1458
+ }>;
1459
+ export declare const maintenanceRecordSchema: z.ZodObject<{
1460
+ data: z.ZodObject<{
1461
+ type: z.ZodLiteral<string>;
1462
+ id: z.ZodString;
1463
+ attributes: z.ZodObject<{
1464
+ date: z.ZodString;
1465
+ type: z.ZodEnum<["routine", "oil-change", "inspection", "repair", "other"]>;
1466
+ description: z.ZodString;
1467
+ cost: z.ZodNullable<z.ZodNumber>;
1468
+ performedBy: z.ZodNullable<z.ZodString>;
1469
+ nextMaintenanceDate: z.ZodNullable<z.ZodString>;
1470
+ notes: z.ZodNullable<z.ZodString>;
1471
+ }, "strip", z.ZodTypeAny, {
1472
+ type: "other" | "repair" | "routine" | "oil-change" | "inspection";
1473
+ date: string;
1474
+ description: string;
1475
+ notes: string | null;
1476
+ nextMaintenanceDate: string | null;
1477
+ cost: number | null;
1478
+ performedBy: string | null;
1479
+ }, {
1480
+ type: "other" | "repair" | "routine" | "oil-change" | "inspection";
1481
+ date: string;
1482
+ description: string;
1483
+ notes: string | null;
1484
+ nextMaintenanceDate: string | null;
1485
+ cost: number | null;
1486
+ performedBy: string | null;
1487
+ }>;
1488
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1489
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1490
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1491
+ }, "strip", z.ZodTypeAny, {
1492
+ type: string;
1493
+ id: string;
1494
+ attributes: {
1495
+ type: "other" | "repair" | "routine" | "oil-change" | "inspection";
1496
+ date: string;
1497
+ description: string;
1498
+ notes: string | null;
1499
+ nextMaintenanceDate: string | null;
1500
+ cost: number | null;
1501
+ performedBy: string | null;
1502
+ };
1503
+ relationships?: Record<string, unknown> | undefined;
1504
+ links?: Record<string, string> | undefined;
1505
+ meta?: Record<string, unknown> | undefined;
1506
+ }, {
1507
+ type: string;
1508
+ id: string;
1509
+ attributes: {
1510
+ type: "other" | "repair" | "routine" | "oil-change" | "inspection";
1511
+ date: string;
1512
+ description: string;
1513
+ notes: string | null;
1514
+ nextMaintenanceDate: string | null;
1515
+ cost: number | null;
1516
+ performedBy: string | null;
1517
+ };
1518
+ relationships?: Record<string, unknown> | undefined;
1519
+ links?: Record<string, string> | undefined;
1520
+ meta?: Record<string, unknown> | undefined;
1521
+ }>;
1522
+ included: z.ZodOptional<z.ZodArray<z.ZodObject<{
1523
+ type: z.ZodString;
1524
+ id: z.ZodString;
1525
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1526
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1527
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1528
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1529
+ }, "strip", z.ZodTypeAny, {
1530
+ type: string;
1531
+ id: string;
1532
+ attributes?: Record<string, unknown> | undefined;
1533
+ relationships?: Record<string, unknown> | undefined;
1534
+ links?: Record<string, string> | undefined;
1535
+ meta?: Record<string, unknown> | undefined;
1536
+ }, {
1537
+ type: string;
1538
+ id: string;
1539
+ attributes?: Record<string, unknown> | undefined;
1540
+ relationships?: Record<string, unknown> | undefined;
1541
+ links?: Record<string, string> | undefined;
1542
+ meta?: Record<string, unknown> | undefined;
1543
+ }>, "many">>;
1544
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1545
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1546
+ }, "strip", z.ZodTypeAny, {
1547
+ data: {
1548
+ type: string;
1549
+ id: string;
1550
+ attributes: {
1551
+ type: "other" | "repair" | "routine" | "oil-change" | "inspection";
1552
+ date: string;
1553
+ description: string;
1554
+ notes: string | null;
1555
+ nextMaintenanceDate: string | null;
1556
+ cost: number | null;
1557
+ performedBy: string | null;
1558
+ };
1559
+ relationships?: Record<string, unknown> | undefined;
1560
+ links?: Record<string, string> | undefined;
1561
+ meta?: Record<string, unknown> | undefined;
1562
+ };
1563
+ links?: Record<string, string> | undefined;
1564
+ meta?: Record<string, unknown> | undefined;
1565
+ included?: {
1566
+ type: string;
1567
+ id: string;
1568
+ attributes?: Record<string, unknown> | undefined;
1569
+ relationships?: Record<string, unknown> | undefined;
1570
+ links?: Record<string, string> | undefined;
1571
+ meta?: Record<string, unknown> | undefined;
1572
+ }[] | undefined;
1573
+ }, {
1574
+ data: {
1575
+ type: string;
1576
+ id: string;
1577
+ attributes: {
1578
+ type: "other" | "repair" | "routine" | "oil-change" | "inspection";
1579
+ date: string;
1580
+ description: string;
1581
+ notes: string | null;
1582
+ nextMaintenanceDate: string | null;
1583
+ cost: number | null;
1584
+ performedBy: string | null;
1585
+ };
1586
+ relationships?: Record<string, unknown> | undefined;
1587
+ links?: Record<string, string> | undefined;
1588
+ meta?: Record<string, unknown> | undefined;
1589
+ };
1590
+ links?: Record<string, string> | undefined;
1591
+ meta?: Record<string, unknown> | undefined;
1592
+ included?: {
1593
+ type: string;
1594
+ id: string;
1595
+ attributes?: Record<string, unknown> | undefined;
1596
+ relationships?: Record<string, unknown> | undefined;
1597
+ links?: Record<string, string> | undefined;
1598
+ meta?: Record<string, unknown> | undefined;
1599
+ }[] | undefined;
1600
+ }>;
1601
+ export type EquipmentType = z.infer<typeof equipmentTypeSchema>;
1602
+ export type EquipmentStatus = z.infer<typeof equipmentStatusSchema>;
1603
+ export type MaintenanceType = z.infer<typeof maintenanceTypeSchema>;
1604
+ export type MaintenanceSchedule = z.infer<typeof maintenanceScheduleSchema>;
1605
+ export type MaintenanceRecordAttributes = z.infer<typeof maintenanceRecordAttributesSchema>;
1606
+ export type EquipmentAttributes = z.infer<typeof equipmentAttributesSchema>;
1607
+ export type CreateEquipmentAttributes = z.infer<typeof createEquipmentAttributesSchema>;
1608
+ export type UpdateEquipmentAttributes = z.infer<typeof updateEquipmentAttributesSchema>;
1609
+ export type CreateMaintenanceRecordAttributes = z.infer<typeof createMaintenanceRecordAttributesSchema>;
1610
+ export type CreateEquipmentInput = z.infer<typeof createEquipmentSchema>;
1611
+ export type UpdateEquipmentInput = z.infer<typeof updateEquipmentSchema>;
1612
+ export type CreateMaintenanceRecordInput = z.infer<typeof createMaintenanceRecordSchema>;
1613
+ export type EquipmentResource = z.infer<typeof equipmentResourceSchema>;
1614
+ export type MaintenanceRecordResource = z.infer<typeof maintenanceRecordResourceSchema>;
1615
+ export type EquipmentResponse = z.infer<typeof equipmentResponseSchema>;
1616
+ export type EquipmentListResponse = z.infer<typeof equipmentListResponseSchema>;
1617
+ export type MaintenanceRecordResponse = z.infer<typeof maintenanceRecordSchema>;
1618
+ //# sourceMappingURL=equipment.schemas.d.ts.map