@deepintel-ltd/farmpro-contracts 1.0.3 → 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.
@@ -0,0 +1,800 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * Categories API contract
4
+ * Provides endpoints for managing categories (task, budget, expense)
5
+ */
6
+ export declare const categoriesRouter: {
7
+ getCategories: {
8
+ query: z.ZodObject<{
9
+ type: z.ZodOptional<z.ZodEnum<["task", "budget", "expense"]>>;
10
+ farmId: z.ZodOptional<z.ZodString>;
11
+ includeDefaults: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
12
+ }, "strip", z.ZodTypeAny, {
13
+ includeDefaults: boolean;
14
+ type?: "expense" | "task" | "budget" | undefined;
15
+ farmId?: string | undefined;
16
+ }, {
17
+ type?: "expense" | "task" | "budget" | undefined;
18
+ farmId?: string | undefined;
19
+ includeDefaults?: boolean | undefined;
20
+ }>;
21
+ summary: "Get categories by type";
22
+ description: "Returns system default categories and optionally farm-specific categories. Use type filter to get categories for tasks, budget, or expenses.";
23
+ method: "GET";
24
+ path: "/categories";
25
+ responses: {
26
+ 200: z.ZodObject<{
27
+ data: z.ZodArray<z.ZodObject<{
28
+ type: z.ZodLiteral<string>;
29
+ id: z.ZodString;
30
+ attributes: z.ZodObject<{
31
+ name: z.ZodString;
32
+ type: z.ZodEnum<["task", "budget", "expense"]>;
33
+ farmId: z.ZodNullable<z.ZodString>;
34
+ isDefault: z.ZodBoolean;
35
+ } & {
36
+ createdAt: z.ZodString;
37
+ updatedAt: z.ZodString;
38
+ }, "strip", z.ZodTypeAny, {
39
+ type: "expense" | "task" | "budget";
40
+ createdAt: string;
41
+ updatedAt: string;
42
+ name: string;
43
+ farmId: string | null;
44
+ isDefault: boolean;
45
+ }, {
46
+ type: "expense" | "task" | "budget";
47
+ createdAt: string;
48
+ updatedAt: string;
49
+ name: string;
50
+ farmId: string | null;
51
+ isDefault: boolean;
52
+ }>;
53
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
54
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
55
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
56
+ }, "strip", z.ZodTypeAny, {
57
+ type: string;
58
+ id: string;
59
+ attributes: {
60
+ type: "expense" | "task" | "budget";
61
+ createdAt: string;
62
+ updatedAt: string;
63
+ name: string;
64
+ farmId: string | null;
65
+ isDefault: boolean;
66
+ };
67
+ relationships?: Record<string, unknown> | undefined;
68
+ links?: Record<string, string> | undefined;
69
+ meta?: Record<string, unknown> | undefined;
70
+ }, {
71
+ type: string;
72
+ id: string;
73
+ attributes: {
74
+ type: "expense" | "task" | "budget";
75
+ createdAt: string;
76
+ updatedAt: string;
77
+ name: string;
78
+ farmId: string | null;
79
+ isDefault: boolean;
80
+ };
81
+ relationships?: Record<string, unknown> | undefined;
82
+ links?: Record<string, string> | undefined;
83
+ meta?: Record<string, unknown> | undefined;
84
+ }>, "many">;
85
+ included: z.ZodOptional<z.ZodArray<z.ZodObject<{
86
+ type: z.ZodString;
87
+ id: z.ZodString;
88
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
89
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
90
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
91
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
92
+ }, "strip", z.ZodTypeAny, {
93
+ type: string;
94
+ id: string;
95
+ attributes?: Record<string, unknown> | undefined;
96
+ relationships?: Record<string, unknown> | undefined;
97
+ links?: Record<string, string> | undefined;
98
+ meta?: Record<string, unknown> | undefined;
99
+ }, {
100
+ type: string;
101
+ id: string;
102
+ attributes?: Record<string, unknown> | undefined;
103
+ relationships?: Record<string, unknown> | undefined;
104
+ links?: Record<string, string> | undefined;
105
+ meta?: Record<string, unknown> | undefined;
106
+ }>, "many">>;
107
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
108
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
109
+ }, "strip", z.ZodTypeAny, {
110
+ data: {
111
+ type: string;
112
+ id: string;
113
+ attributes: {
114
+ type: "expense" | "task" | "budget";
115
+ createdAt: string;
116
+ updatedAt: string;
117
+ name: string;
118
+ farmId: string | null;
119
+ isDefault: boolean;
120
+ };
121
+ relationships?: Record<string, unknown> | undefined;
122
+ links?: Record<string, string> | undefined;
123
+ meta?: Record<string, unknown> | undefined;
124
+ }[];
125
+ links?: Record<string, string> | undefined;
126
+ meta?: Record<string, unknown> | undefined;
127
+ included?: {
128
+ type: string;
129
+ id: string;
130
+ attributes?: Record<string, unknown> | undefined;
131
+ relationships?: Record<string, unknown> | undefined;
132
+ links?: Record<string, string> | undefined;
133
+ meta?: Record<string, unknown> | undefined;
134
+ }[] | undefined;
135
+ }, {
136
+ data: {
137
+ type: string;
138
+ id: string;
139
+ attributes: {
140
+ type: "expense" | "task" | "budget";
141
+ createdAt: string;
142
+ updatedAt: string;
143
+ name: string;
144
+ farmId: string | null;
145
+ isDefault: boolean;
146
+ };
147
+ relationships?: Record<string, unknown> | undefined;
148
+ links?: Record<string, string> | undefined;
149
+ meta?: Record<string, unknown> | undefined;
150
+ }[];
151
+ links?: Record<string, string> | undefined;
152
+ meta?: Record<string, unknown> | undefined;
153
+ included?: {
154
+ type: string;
155
+ id: string;
156
+ attributes?: Record<string, unknown> | undefined;
157
+ relationships?: Record<string, unknown> | undefined;
158
+ links?: Record<string, string> | undefined;
159
+ meta?: Record<string, unknown> | undefined;
160
+ }[] | undefined;
161
+ }>;
162
+ };
163
+ };
164
+ getDefaultCategory: {
165
+ pathParams: z.ZodObject<{
166
+ type: z.ZodEnum<["task", "budget", "expense"]>;
167
+ }, "strip", z.ZodTypeAny, {
168
+ type: "expense" | "task" | "budget";
169
+ }, {
170
+ type: "expense" | "task" | "budget";
171
+ }>;
172
+ summary: "Get default category for a type";
173
+ description: "Returns the default category that should be used when creating a task, budget, or expense without specifying a category.";
174
+ method: "GET";
175
+ path: "/categories/default/:type";
176
+ responses: {
177
+ 200: z.ZodObject<{
178
+ data: z.ZodObject<{
179
+ type: z.ZodLiteral<string>;
180
+ id: z.ZodString;
181
+ attributes: z.ZodObject<{
182
+ name: z.ZodString;
183
+ type: z.ZodEnum<["task", "budget", "expense"]>;
184
+ farmId: z.ZodNullable<z.ZodString>;
185
+ isDefault: z.ZodBoolean;
186
+ } & {
187
+ createdAt: z.ZodString;
188
+ updatedAt: z.ZodString;
189
+ }, "strip", z.ZodTypeAny, {
190
+ type: "expense" | "task" | "budget";
191
+ createdAt: string;
192
+ updatedAt: string;
193
+ name: string;
194
+ farmId: string | null;
195
+ isDefault: boolean;
196
+ }, {
197
+ type: "expense" | "task" | "budget";
198
+ createdAt: string;
199
+ updatedAt: string;
200
+ name: string;
201
+ farmId: string | null;
202
+ isDefault: boolean;
203
+ }>;
204
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
205
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
206
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
207
+ }, "strip", z.ZodTypeAny, {
208
+ type: string;
209
+ id: string;
210
+ attributes: {
211
+ type: "expense" | "task" | "budget";
212
+ createdAt: string;
213
+ updatedAt: string;
214
+ name: string;
215
+ farmId: string | null;
216
+ isDefault: boolean;
217
+ };
218
+ relationships?: Record<string, unknown> | undefined;
219
+ links?: Record<string, string> | undefined;
220
+ meta?: Record<string, unknown> | undefined;
221
+ }, {
222
+ type: string;
223
+ id: string;
224
+ attributes: {
225
+ type: "expense" | "task" | "budget";
226
+ createdAt: string;
227
+ updatedAt: string;
228
+ name: string;
229
+ farmId: string | null;
230
+ isDefault: boolean;
231
+ };
232
+ relationships?: Record<string, unknown> | undefined;
233
+ links?: Record<string, string> | undefined;
234
+ meta?: Record<string, unknown> | undefined;
235
+ }>;
236
+ included: z.ZodOptional<z.ZodArray<z.ZodObject<{
237
+ type: z.ZodString;
238
+ id: z.ZodString;
239
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
240
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
241
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
242
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
243
+ }, "strip", z.ZodTypeAny, {
244
+ type: string;
245
+ id: string;
246
+ attributes?: Record<string, unknown> | undefined;
247
+ relationships?: Record<string, unknown> | undefined;
248
+ links?: Record<string, string> | undefined;
249
+ meta?: Record<string, unknown> | undefined;
250
+ }, {
251
+ type: string;
252
+ id: string;
253
+ attributes?: Record<string, unknown> | undefined;
254
+ relationships?: Record<string, unknown> | undefined;
255
+ links?: Record<string, string> | undefined;
256
+ meta?: Record<string, unknown> | undefined;
257
+ }>, "many">>;
258
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
259
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
260
+ }, "strip", z.ZodTypeAny, {
261
+ data: {
262
+ type: string;
263
+ id: string;
264
+ attributes: {
265
+ type: "expense" | "task" | "budget";
266
+ createdAt: string;
267
+ updatedAt: string;
268
+ name: string;
269
+ farmId: string | null;
270
+ isDefault: boolean;
271
+ };
272
+ relationships?: Record<string, unknown> | undefined;
273
+ links?: Record<string, string> | undefined;
274
+ meta?: Record<string, unknown> | undefined;
275
+ };
276
+ links?: Record<string, string> | undefined;
277
+ meta?: Record<string, unknown> | undefined;
278
+ included?: {
279
+ type: string;
280
+ id: string;
281
+ attributes?: Record<string, unknown> | undefined;
282
+ relationships?: Record<string, unknown> | undefined;
283
+ links?: Record<string, string> | undefined;
284
+ meta?: Record<string, unknown> | undefined;
285
+ }[] | undefined;
286
+ }, {
287
+ data: {
288
+ type: string;
289
+ id: string;
290
+ attributes: {
291
+ type: "expense" | "task" | "budget";
292
+ createdAt: string;
293
+ updatedAt: string;
294
+ name: string;
295
+ farmId: string | null;
296
+ isDefault: boolean;
297
+ };
298
+ relationships?: Record<string, unknown> | undefined;
299
+ links?: Record<string, string> | undefined;
300
+ meta?: Record<string, unknown> | undefined;
301
+ };
302
+ links?: Record<string, string> | undefined;
303
+ meta?: Record<string, unknown> | undefined;
304
+ included?: {
305
+ type: string;
306
+ id: string;
307
+ attributes?: Record<string, unknown> | undefined;
308
+ relationships?: Record<string, unknown> | undefined;
309
+ links?: Record<string, string> | undefined;
310
+ meta?: Record<string, unknown> | undefined;
311
+ }[] | undefined;
312
+ }>;
313
+ 404: z.ZodObject<{
314
+ error: z.ZodObject<{
315
+ message: z.ZodString;
316
+ code: z.ZodString;
317
+ }, "strip", z.ZodTypeAny, {
318
+ code: string;
319
+ message: string;
320
+ }, {
321
+ code: string;
322
+ message: string;
323
+ }>;
324
+ }, "strip", z.ZodTypeAny, {
325
+ error: {
326
+ code: string;
327
+ message: string;
328
+ };
329
+ }, {
330
+ error: {
331
+ code: string;
332
+ message: string;
333
+ };
334
+ }>;
335
+ };
336
+ };
337
+ createCategory: {
338
+ summary: "Create a new category";
339
+ description: "Creates a farm-specific category or system default category. Farm-specific categories override system defaults for that farm.";
340
+ method: "POST";
341
+ body: z.ZodObject<{
342
+ type: z.ZodLiteral<"categories">;
343
+ attributes: z.ZodObject<{
344
+ name: z.ZodString;
345
+ type: z.ZodEnum<["task", "budget", "expense"]>;
346
+ farmId: z.ZodOptional<z.ZodString>;
347
+ isDefault: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
348
+ }, "strip", z.ZodTypeAny, {
349
+ type: "expense" | "task" | "budget";
350
+ name: string;
351
+ isDefault: boolean;
352
+ farmId?: string | undefined;
353
+ }, {
354
+ type: "expense" | "task" | "budget";
355
+ name: string;
356
+ farmId?: string | undefined;
357
+ isDefault?: boolean | undefined;
358
+ }>;
359
+ }, "strip", z.ZodTypeAny, {
360
+ type: "categories";
361
+ attributes: {
362
+ type: "expense" | "task" | "budget";
363
+ name: string;
364
+ isDefault: boolean;
365
+ farmId?: string | undefined;
366
+ };
367
+ }, {
368
+ type: "categories";
369
+ attributes: {
370
+ type: "expense" | "task" | "budget";
371
+ name: string;
372
+ farmId?: string | undefined;
373
+ isDefault?: boolean | undefined;
374
+ };
375
+ }>;
376
+ path: "/categories";
377
+ responses: {
378
+ 201: z.ZodObject<{
379
+ data: z.ZodObject<{
380
+ type: z.ZodLiteral<string>;
381
+ id: z.ZodString;
382
+ attributes: z.ZodObject<{
383
+ name: z.ZodString;
384
+ type: z.ZodEnum<["task", "budget", "expense"]>;
385
+ farmId: z.ZodNullable<z.ZodString>;
386
+ isDefault: z.ZodBoolean;
387
+ } & {
388
+ createdAt: z.ZodString;
389
+ updatedAt: z.ZodString;
390
+ }, "strip", z.ZodTypeAny, {
391
+ type: "expense" | "task" | "budget";
392
+ createdAt: string;
393
+ updatedAt: string;
394
+ name: string;
395
+ farmId: string | null;
396
+ isDefault: boolean;
397
+ }, {
398
+ type: "expense" | "task" | "budget";
399
+ createdAt: string;
400
+ updatedAt: string;
401
+ name: string;
402
+ farmId: string | null;
403
+ isDefault: boolean;
404
+ }>;
405
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
406
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
407
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
408
+ }, "strip", z.ZodTypeAny, {
409
+ type: string;
410
+ id: string;
411
+ attributes: {
412
+ type: "expense" | "task" | "budget";
413
+ createdAt: string;
414
+ updatedAt: string;
415
+ name: string;
416
+ farmId: string | null;
417
+ isDefault: boolean;
418
+ };
419
+ relationships?: Record<string, unknown> | undefined;
420
+ links?: Record<string, string> | undefined;
421
+ meta?: Record<string, unknown> | undefined;
422
+ }, {
423
+ type: string;
424
+ id: string;
425
+ attributes: {
426
+ type: "expense" | "task" | "budget";
427
+ createdAt: string;
428
+ updatedAt: string;
429
+ name: string;
430
+ farmId: string | null;
431
+ isDefault: boolean;
432
+ };
433
+ relationships?: Record<string, unknown> | undefined;
434
+ links?: Record<string, string> | undefined;
435
+ meta?: Record<string, unknown> | undefined;
436
+ }>;
437
+ included: z.ZodOptional<z.ZodArray<z.ZodObject<{
438
+ type: z.ZodString;
439
+ id: z.ZodString;
440
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
441
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
442
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
443
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
444
+ }, "strip", z.ZodTypeAny, {
445
+ type: string;
446
+ id: string;
447
+ attributes?: Record<string, unknown> | undefined;
448
+ relationships?: Record<string, unknown> | undefined;
449
+ links?: Record<string, string> | undefined;
450
+ meta?: Record<string, unknown> | undefined;
451
+ }, {
452
+ type: string;
453
+ id: string;
454
+ attributes?: Record<string, unknown> | undefined;
455
+ relationships?: Record<string, unknown> | undefined;
456
+ links?: Record<string, string> | undefined;
457
+ meta?: Record<string, unknown> | undefined;
458
+ }>, "many">>;
459
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
460
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
461
+ }, "strip", z.ZodTypeAny, {
462
+ data: {
463
+ type: string;
464
+ id: string;
465
+ attributes: {
466
+ type: "expense" | "task" | "budget";
467
+ createdAt: string;
468
+ updatedAt: string;
469
+ name: string;
470
+ farmId: string | null;
471
+ isDefault: boolean;
472
+ };
473
+ relationships?: Record<string, unknown> | undefined;
474
+ links?: Record<string, string> | undefined;
475
+ meta?: Record<string, unknown> | undefined;
476
+ };
477
+ links?: Record<string, string> | undefined;
478
+ meta?: Record<string, unknown> | undefined;
479
+ included?: {
480
+ type: string;
481
+ id: string;
482
+ attributes?: Record<string, unknown> | undefined;
483
+ relationships?: Record<string, unknown> | undefined;
484
+ links?: Record<string, string> | undefined;
485
+ meta?: Record<string, unknown> | undefined;
486
+ }[] | undefined;
487
+ }, {
488
+ data: {
489
+ type: string;
490
+ id: string;
491
+ attributes: {
492
+ type: "expense" | "task" | "budget";
493
+ createdAt: string;
494
+ updatedAt: string;
495
+ name: string;
496
+ farmId: string | null;
497
+ isDefault: boolean;
498
+ };
499
+ relationships?: Record<string, unknown> | undefined;
500
+ links?: Record<string, string> | undefined;
501
+ meta?: Record<string, unknown> | undefined;
502
+ };
503
+ links?: Record<string, string> | undefined;
504
+ meta?: Record<string, unknown> | undefined;
505
+ included?: {
506
+ type: string;
507
+ id: string;
508
+ attributes?: Record<string, unknown> | undefined;
509
+ relationships?: Record<string, unknown> | undefined;
510
+ links?: Record<string, string> | undefined;
511
+ meta?: Record<string, unknown> | undefined;
512
+ }[] | undefined;
513
+ }>;
514
+ 400: z.ZodObject<{
515
+ error: z.ZodObject<{
516
+ message: z.ZodString;
517
+ code: z.ZodString;
518
+ }, "strip", z.ZodTypeAny, {
519
+ code: string;
520
+ message: string;
521
+ }, {
522
+ code: string;
523
+ message: string;
524
+ }>;
525
+ }, "strip", z.ZodTypeAny, {
526
+ error: {
527
+ code: string;
528
+ message: string;
529
+ };
530
+ }, {
531
+ error: {
532
+ code: string;
533
+ message: string;
534
+ };
535
+ }>;
536
+ 409: z.ZodObject<{
537
+ error: z.ZodObject<{
538
+ message: z.ZodString;
539
+ code: z.ZodString;
540
+ }, "strip", z.ZodTypeAny, {
541
+ code: string;
542
+ message: string;
543
+ }, {
544
+ code: string;
545
+ message: string;
546
+ }>;
547
+ }, "strip", z.ZodTypeAny, {
548
+ error: {
549
+ code: string;
550
+ message: string;
551
+ };
552
+ }, {
553
+ error: {
554
+ code: string;
555
+ message: string;
556
+ };
557
+ }>;
558
+ };
559
+ };
560
+ updateCategory: {
561
+ pathParams: z.ZodObject<{
562
+ id: z.ZodString;
563
+ }, "strip", z.ZodTypeAny, {
564
+ id: string;
565
+ }, {
566
+ id: string;
567
+ }>;
568
+ summary: "Update a category";
569
+ description: "Updates a farm-specific category. System default categories cannot be updated through this endpoint.";
570
+ method: "PATCH";
571
+ body: z.ZodObject<{
572
+ type: z.ZodLiteral<"categories">;
573
+ id: z.ZodString;
574
+ attributes: z.ZodObject<{
575
+ name: z.ZodOptional<z.ZodString>;
576
+ isDefault: z.ZodOptional<z.ZodBoolean>;
577
+ }, "strip", z.ZodTypeAny, {
578
+ name?: string | undefined;
579
+ isDefault?: boolean | undefined;
580
+ }, {
581
+ name?: string | undefined;
582
+ isDefault?: boolean | undefined;
583
+ }>;
584
+ }, "strip", z.ZodTypeAny, {
585
+ type: "categories";
586
+ id: string;
587
+ attributes: {
588
+ name?: string | undefined;
589
+ isDefault?: boolean | undefined;
590
+ };
591
+ }, {
592
+ type: "categories";
593
+ id: string;
594
+ attributes: {
595
+ name?: string | undefined;
596
+ isDefault?: boolean | undefined;
597
+ };
598
+ }>;
599
+ path: "/categories/:id";
600
+ responses: {
601
+ 200: z.ZodObject<{
602
+ data: z.ZodObject<{
603
+ type: z.ZodLiteral<string>;
604
+ id: z.ZodString;
605
+ attributes: z.ZodObject<{
606
+ name: z.ZodString;
607
+ type: z.ZodEnum<["task", "budget", "expense"]>;
608
+ farmId: z.ZodNullable<z.ZodString>;
609
+ isDefault: z.ZodBoolean;
610
+ } & {
611
+ createdAt: z.ZodString;
612
+ updatedAt: z.ZodString;
613
+ }, "strip", z.ZodTypeAny, {
614
+ type: "expense" | "task" | "budget";
615
+ createdAt: string;
616
+ updatedAt: string;
617
+ name: string;
618
+ farmId: string | null;
619
+ isDefault: boolean;
620
+ }, {
621
+ type: "expense" | "task" | "budget";
622
+ createdAt: string;
623
+ updatedAt: string;
624
+ name: string;
625
+ farmId: string | null;
626
+ isDefault: boolean;
627
+ }>;
628
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
629
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
630
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
631
+ }, "strip", z.ZodTypeAny, {
632
+ type: string;
633
+ id: string;
634
+ attributes: {
635
+ type: "expense" | "task" | "budget";
636
+ createdAt: string;
637
+ updatedAt: string;
638
+ name: string;
639
+ farmId: string | null;
640
+ isDefault: boolean;
641
+ };
642
+ relationships?: Record<string, unknown> | undefined;
643
+ links?: Record<string, string> | undefined;
644
+ meta?: Record<string, unknown> | undefined;
645
+ }, {
646
+ type: string;
647
+ id: string;
648
+ attributes: {
649
+ type: "expense" | "task" | "budget";
650
+ createdAt: string;
651
+ updatedAt: string;
652
+ name: string;
653
+ farmId: string | null;
654
+ isDefault: boolean;
655
+ };
656
+ relationships?: Record<string, unknown> | undefined;
657
+ links?: Record<string, string> | undefined;
658
+ meta?: Record<string, unknown> | undefined;
659
+ }>;
660
+ included: z.ZodOptional<z.ZodArray<z.ZodObject<{
661
+ type: z.ZodString;
662
+ id: z.ZodString;
663
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
664
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
665
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
666
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
667
+ }, "strip", z.ZodTypeAny, {
668
+ type: string;
669
+ id: string;
670
+ attributes?: Record<string, unknown> | undefined;
671
+ relationships?: Record<string, unknown> | undefined;
672
+ links?: Record<string, string> | undefined;
673
+ meta?: Record<string, unknown> | undefined;
674
+ }, {
675
+ type: string;
676
+ id: string;
677
+ attributes?: Record<string, unknown> | undefined;
678
+ relationships?: Record<string, unknown> | undefined;
679
+ links?: Record<string, string> | undefined;
680
+ meta?: Record<string, unknown> | undefined;
681
+ }>, "many">>;
682
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
683
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
684
+ }, "strip", z.ZodTypeAny, {
685
+ data: {
686
+ type: string;
687
+ id: string;
688
+ attributes: {
689
+ type: "expense" | "task" | "budget";
690
+ createdAt: string;
691
+ updatedAt: string;
692
+ name: string;
693
+ farmId: string | null;
694
+ isDefault: boolean;
695
+ };
696
+ relationships?: Record<string, unknown> | undefined;
697
+ links?: Record<string, string> | undefined;
698
+ meta?: Record<string, unknown> | undefined;
699
+ };
700
+ links?: Record<string, string> | undefined;
701
+ meta?: Record<string, unknown> | undefined;
702
+ included?: {
703
+ type: string;
704
+ id: string;
705
+ attributes?: Record<string, unknown> | undefined;
706
+ relationships?: Record<string, unknown> | undefined;
707
+ links?: Record<string, string> | undefined;
708
+ meta?: Record<string, unknown> | undefined;
709
+ }[] | undefined;
710
+ }, {
711
+ data: {
712
+ type: string;
713
+ id: string;
714
+ attributes: {
715
+ type: "expense" | "task" | "budget";
716
+ createdAt: string;
717
+ updatedAt: string;
718
+ name: string;
719
+ farmId: string | null;
720
+ isDefault: boolean;
721
+ };
722
+ relationships?: Record<string, unknown> | undefined;
723
+ links?: Record<string, string> | undefined;
724
+ meta?: Record<string, unknown> | undefined;
725
+ };
726
+ links?: Record<string, string> | undefined;
727
+ meta?: Record<string, unknown> | undefined;
728
+ included?: {
729
+ type: string;
730
+ id: string;
731
+ attributes?: Record<string, unknown> | undefined;
732
+ relationships?: Record<string, unknown> | undefined;
733
+ links?: Record<string, string> | undefined;
734
+ meta?: Record<string, unknown> | undefined;
735
+ }[] | undefined;
736
+ }>;
737
+ 404: z.ZodObject<{
738
+ error: z.ZodObject<{
739
+ message: z.ZodString;
740
+ code: z.ZodString;
741
+ }, "strip", z.ZodTypeAny, {
742
+ code: string;
743
+ message: string;
744
+ }, {
745
+ code: string;
746
+ message: string;
747
+ }>;
748
+ }, "strip", z.ZodTypeAny, {
749
+ error: {
750
+ code: string;
751
+ message: string;
752
+ };
753
+ }, {
754
+ error: {
755
+ code: string;
756
+ message: string;
757
+ };
758
+ }>;
759
+ };
760
+ };
761
+ deleteCategory: {
762
+ pathParams: z.ZodObject<{
763
+ id: z.ZodString;
764
+ }, "strip", z.ZodTypeAny, {
765
+ id: string;
766
+ }, {
767
+ id: string;
768
+ }>;
769
+ summary: "Delete a category";
770
+ description: "Deletes a farm-specific category. System default categories cannot be deleted.";
771
+ method: "DELETE";
772
+ path: "/categories/:id";
773
+ responses: {
774
+ 204: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
775
+ 404: z.ZodObject<{
776
+ error: z.ZodObject<{
777
+ message: z.ZodString;
778
+ code: z.ZodString;
779
+ }, "strip", z.ZodTypeAny, {
780
+ code: string;
781
+ message: string;
782
+ }, {
783
+ code: string;
784
+ message: string;
785
+ }>;
786
+ }, "strip", z.ZodTypeAny, {
787
+ error: {
788
+ code: string;
789
+ message: string;
790
+ };
791
+ }, {
792
+ error: {
793
+ code: string;
794
+ message: string;
795
+ };
796
+ }>;
797
+ };
798
+ };
799
+ };
800
+ //# sourceMappingURL=categories.routes.d.ts.map