@deepintel-ltd/farmpro-contracts 1.0.4 → 1.2.0
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.
- package/dist/index.d.ts +5 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -1
- package/dist/routes/agents.routes.d.ts +520 -0
- package/dist/routes/agents.routes.d.ts.map +1 -0
- package/dist/routes/agents.routes.js +36 -0
- package/dist/routes/categories.routes.d.ts +426 -129
- package/dist/routes/categories.routes.d.ts.map +1 -1
- package/dist/routes/categories.routes.js +13 -40
- package/dist/routes/field-monitoring.routes.d.ts +405 -0
- package/dist/routes/field-monitoring.routes.d.ts.map +1 -0
- package/dist/routes/field-monitoring.routes.js +93 -0
- package/dist/routes/index.d.ts +6 -0
- package/dist/routes/index.d.ts.map +1 -1
- package/dist/routes/index.js +4 -0
- package/dist/routes/tasks.routes.d.ts +7 -7
- package/dist/schemas/agents.schemas.d.ts +352 -0
- package/dist/schemas/agents.schemas.d.ts.map +1 -0
- package/dist/schemas/agents.schemas.js +42 -0
- package/dist/schemas/categories.schemas.d.ts +1 -35
- package/dist/schemas/categories.schemas.d.ts.map +1 -1
- package/dist/schemas/categories.schemas.js +3 -7
- package/dist/schemas/field-monitoring.schemas.d.ts +216 -0
- package/dist/schemas/field-monitoring.schemas.d.ts.map +1 -0
- package/dist/schemas/field-monitoring.schemas.js +92 -0
- package/dist/schemas/tasks.schemas.d.ts +8 -8
- package/dist/schemas/tasks.schemas.js +1 -1
- package/package.json +1 -1
|
@@ -1,25 +1,22 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
/**
|
|
3
3
|
* Categories API contract
|
|
4
|
-
* Provides endpoints for managing categories (
|
|
4
|
+
* Provides endpoints for managing universal categories (can be used for tasks, budgets, expenses)
|
|
5
5
|
*/
|
|
6
6
|
export declare const categoriesRouter: {
|
|
7
7
|
getCategories: {
|
|
8
8
|
query: z.ZodObject<{
|
|
9
|
-
type: z.ZodOptional<z.ZodEnum<["task", "budget", "expense"]>>;
|
|
10
9
|
farmId: z.ZodOptional<z.ZodString>;
|
|
11
10
|
includeDefaults: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
12
11
|
}, "strip", z.ZodTypeAny, {
|
|
13
12
|
includeDefaults: boolean;
|
|
14
|
-
type?: "expense" | "task" | "budget" | undefined;
|
|
15
13
|
farmId?: string | undefined;
|
|
16
14
|
}, {
|
|
17
|
-
type?: "expense" | "task" | "budget" | undefined;
|
|
18
15
|
farmId?: string | undefined;
|
|
19
16
|
includeDefaults?: boolean | undefined;
|
|
20
17
|
}>;
|
|
21
|
-
summary: "Get categories
|
|
22
|
-
description: "Returns system default categories and optionally farm-specific categories.
|
|
18
|
+
summary: "Get categories";
|
|
19
|
+
description: "Returns system default categories and optionally farm-specific categories. Categories are universal and can be used for tasks, budgets, and expenses.";
|
|
23
20
|
method: "GET";
|
|
24
21
|
path: "/categories";
|
|
25
22
|
responses: {
|
|
@@ -29,21 +26,18 @@ export declare const categoriesRouter: {
|
|
|
29
26
|
id: z.ZodString;
|
|
30
27
|
attributes: z.ZodObject<{
|
|
31
28
|
name: z.ZodString;
|
|
32
|
-
type: z.ZodEnum<["task", "budget", "expense"]>;
|
|
33
29
|
farmId: z.ZodNullable<z.ZodString>;
|
|
34
30
|
isDefault: z.ZodBoolean;
|
|
35
31
|
} & {
|
|
36
32
|
createdAt: z.ZodString;
|
|
37
33
|
updatedAt: z.ZodString;
|
|
38
34
|
}, "strip", z.ZodTypeAny, {
|
|
39
|
-
type: "expense" | "task" | "budget";
|
|
40
35
|
createdAt: string;
|
|
41
36
|
updatedAt: string;
|
|
42
37
|
name: string;
|
|
43
38
|
farmId: string | null;
|
|
44
39
|
isDefault: boolean;
|
|
45
40
|
}, {
|
|
46
|
-
type: "expense" | "task" | "budget";
|
|
47
41
|
createdAt: string;
|
|
48
42
|
updatedAt: string;
|
|
49
43
|
name: string;
|
|
@@ -57,7 +51,6 @@ export declare const categoriesRouter: {
|
|
|
57
51
|
type: string;
|
|
58
52
|
id: string;
|
|
59
53
|
attributes: {
|
|
60
|
-
type: "expense" | "task" | "budget";
|
|
61
54
|
createdAt: string;
|
|
62
55
|
updatedAt: string;
|
|
63
56
|
name: string;
|
|
@@ -71,7 +64,6 @@ export declare const categoriesRouter: {
|
|
|
71
64
|
type: string;
|
|
72
65
|
id: string;
|
|
73
66
|
attributes: {
|
|
74
|
-
type: "expense" | "task" | "budget";
|
|
75
67
|
createdAt: string;
|
|
76
68
|
updatedAt: string;
|
|
77
69
|
name: string;
|
|
@@ -111,7 +103,6 @@ export declare const categoriesRouter: {
|
|
|
111
103
|
type: string;
|
|
112
104
|
id: string;
|
|
113
105
|
attributes: {
|
|
114
|
-
type: "expense" | "task" | "budget";
|
|
115
106
|
createdAt: string;
|
|
116
107
|
updatedAt: string;
|
|
117
108
|
name: string;
|
|
@@ -137,7 +128,6 @@ export declare const categoriesRouter: {
|
|
|
137
128
|
type: string;
|
|
138
129
|
id: string;
|
|
139
130
|
attributes: {
|
|
140
|
-
type: "expense" | "task" | "budget";
|
|
141
131
|
createdAt: string;
|
|
142
132
|
updatedAt: string;
|
|
143
133
|
name: string;
|
|
@@ -162,17 +152,10 @@ export declare const categoriesRouter: {
|
|
|
162
152
|
};
|
|
163
153
|
};
|
|
164
154
|
getDefaultCategory: {
|
|
165
|
-
|
|
166
|
-
|
|
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.";
|
|
155
|
+
summary: "Get default category";
|
|
156
|
+
description: "Returns the system-wide default category that should be used when creating a task, budget, or expense without specifying a category.";
|
|
174
157
|
method: "GET";
|
|
175
|
-
path: "/categories/default
|
|
158
|
+
path: "/categories/default";
|
|
176
159
|
responses: {
|
|
177
160
|
200: z.ZodObject<{
|
|
178
161
|
data: z.ZodObject<{
|
|
@@ -180,21 +163,18 @@ export declare const categoriesRouter: {
|
|
|
180
163
|
id: z.ZodString;
|
|
181
164
|
attributes: z.ZodObject<{
|
|
182
165
|
name: z.ZodString;
|
|
183
|
-
type: z.ZodEnum<["task", "budget", "expense"]>;
|
|
184
166
|
farmId: z.ZodNullable<z.ZodString>;
|
|
185
167
|
isDefault: z.ZodBoolean;
|
|
186
168
|
} & {
|
|
187
169
|
createdAt: z.ZodString;
|
|
188
170
|
updatedAt: z.ZodString;
|
|
189
171
|
}, "strip", z.ZodTypeAny, {
|
|
190
|
-
type: "expense" | "task" | "budget";
|
|
191
172
|
createdAt: string;
|
|
192
173
|
updatedAt: string;
|
|
193
174
|
name: string;
|
|
194
175
|
farmId: string | null;
|
|
195
176
|
isDefault: boolean;
|
|
196
177
|
}, {
|
|
197
|
-
type: "expense" | "task" | "budget";
|
|
198
178
|
createdAt: string;
|
|
199
179
|
updatedAt: string;
|
|
200
180
|
name: string;
|
|
@@ -208,7 +188,6 @@ export declare const categoriesRouter: {
|
|
|
208
188
|
type: string;
|
|
209
189
|
id: string;
|
|
210
190
|
attributes: {
|
|
211
|
-
type: "expense" | "task" | "budget";
|
|
212
191
|
createdAt: string;
|
|
213
192
|
updatedAt: string;
|
|
214
193
|
name: string;
|
|
@@ -222,7 +201,6 @@ export declare const categoriesRouter: {
|
|
|
222
201
|
type: string;
|
|
223
202
|
id: string;
|
|
224
203
|
attributes: {
|
|
225
|
-
type: "expense" | "task" | "budget";
|
|
226
204
|
createdAt: string;
|
|
227
205
|
updatedAt: string;
|
|
228
206
|
name: string;
|
|
@@ -262,7 +240,6 @@ export declare const categoriesRouter: {
|
|
|
262
240
|
type: string;
|
|
263
241
|
id: string;
|
|
264
242
|
attributes: {
|
|
265
|
-
type: "expense" | "task" | "budget";
|
|
266
243
|
createdAt: string;
|
|
267
244
|
updatedAt: string;
|
|
268
245
|
name: string;
|
|
@@ -288,7 +265,6 @@ export declare const categoriesRouter: {
|
|
|
288
265
|
type: string;
|
|
289
266
|
id: string;
|
|
290
267
|
attributes: {
|
|
291
|
-
type: "expense" | "task" | "budget";
|
|
292
268
|
createdAt: string;
|
|
293
269
|
updatedAt: string;
|
|
294
270
|
name: string;
|
|
@@ -311,26 +287,94 @@ export declare const categoriesRouter: {
|
|
|
311
287
|
}[] | undefined;
|
|
312
288
|
}>;
|
|
313
289
|
404: z.ZodObject<{
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
290
|
+
errors: z.ZodArray<z.ZodObject<{
|
|
291
|
+
id: z.ZodOptional<z.ZodString>;
|
|
292
|
+
links: z.ZodOptional<z.ZodObject<{
|
|
293
|
+
about: z.ZodOptional<z.ZodString>;
|
|
294
|
+
}, "strip", z.ZodTypeAny, {
|
|
295
|
+
about?: string | undefined;
|
|
296
|
+
}, {
|
|
297
|
+
about?: string | undefined;
|
|
298
|
+
}>>;
|
|
299
|
+
status: z.ZodOptional<z.ZodString>;
|
|
300
|
+
code: z.ZodOptional<z.ZodString>;
|
|
301
|
+
title: z.ZodOptional<z.ZodString>;
|
|
302
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
303
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
304
|
+
pointer: z.ZodOptional<z.ZodString>;
|
|
305
|
+
parameter: z.ZodOptional<z.ZodString>;
|
|
306
|
+
}, "strip", z.ZodTypeAny, {
|
|
307
|
+
pointer?: string | undefined;
|
|
308
|
+
parameter?: string | undefined;
|
|
309
|
+
}, {
|
|
310
|
+
pointer?: string | undefined;
|
|
311
|
+
parameter?: string | undefined;
|
|
312
|
+
}>>;
|
|
313
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
317
314
|
}, "strip", z.ZodTypeAny, {
|
|
318
|
-
|
|
319
|
-
|
|
315
|
+
status?: string | undefined;
|
|
316
|
+
code?: string | undefined;
|
|
317
|
+
id?: string | undefined;
|
|
318
|
+
links?: {
|
|
319
|
+
about?: string | undefined;
|
|
320
|
+
} | undefined;
|
|
321
|
+
meta?: Record<string, unknown> | undefined;
|
|
322
|
+
title?: string | undefined;
|
|
323
|
+
detail?: string | undefined;
|
|
324
|
+
source?: {
|
|
325
|
+
pointer?: string | undefined;
|
|
326
|
+
parameter?: string | undefined;
|
|
327
|
+
} | undefined;
|
|
320
328
|
}, {
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
329
|
+
status?: string | undefined;
|
|
330
|
+
code?: string | undefined;
|
|
331
|
+
id?: string | undefined;
|
|
332
|
+
links?: {
|
|
333
|
+
about?: string | undefined;
|
|
334
|
+
} | undefined;
|
|
335
|
+
meta?: Record<string, unknown> | undefined;
|
|
336
|
+
title?: string | undefined;
|
|
337
|
+
detail?: string | undefined;
|
|
338
|
+
source?: {
|
|
339
|
+
pointer?: string | undefined;
|
|
340
|
+
parameter?: string | undefined;
|
|
341
|
+
} | undefined;
|
|
342
|
+
}>, "many">;
|
|
343
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
324
344
|
}, "strip", z.ZodTypeAny, {
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
345
|
+
errors: {
|
|
346
|
+
status?: string | undefined;
|
|
347
|
+
code?: string | undefined;
|
|
348
|
+
id?: string | undefined;
|
|
349
|
+
links?: {
|
|
350
|
+
about?: string | undefined;
|
|
351
|
+
} | undefined;
|
|
352
|
+
meta?: Record<string, unknown> | undefined;
|
|
353
|
+
title?: string | undefined;
|
|
354
|
+
detail?: string | undefined;
|
|
355
|
+
source?: {
|
|
356
|
+
pointer?: string | undefined;
|
|
357
|
+
parameter?: string | undefined;
|
|
358
|
+
} | undefined;
|
|
359
|
+
}[];
|
|
360
|
+
meta?: Record<string, unknown> | undefined;
|
|
329
361
|
}, {
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
362
|
+
errors: {
|
|
363
|
+
status?: string | undefined;
|
|
364
|
+
code?: string | undefined;
|
|
365
|
+
id?: string | undefined;
|
|
366
|
+
links?: {
|
|
367
|
+
about?: string | undefined;
|
|
368
|
+
} | undefined;
|
|
369
|
+
meta?: Record<string, unknown> | undefined;
|
|
370
|
+
title?: string | undefined;
|
|
371
|
+
detail?: string | undefined;
|
|
372
|
+
source?: {
|
|
373
|
+
pointer?: string | undefined;
|
|
374
|
+
parameter?: string | undefined;
|
|
375
|
+
} | undefined;
|
|
376
|
+
}[];
|
|
377
|
+
meta?: Record<string, unknown> | undefined;
|
|
334
378
|
}>;
|
|
335
379
|
};
|
|
336
380
|
};
|
|
@@ -342,16 +386,13 @@ export declare const categoriesRouter: {
|
|
|
342
386
|
type: z.ZodLiteral<"categories">;
|
|
343
387
|
attributes: z.ZodObject<{
|
|
344
388
|
name: z.ZodString;
|
|
345
|
-
type: z.ZodEnum<["task", "budget", "expense"]>;
|
|
346
389
|
farmId: z.ZodOptional<z.ZodString>;
|
|
347
390
|
isDefault: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
348
391
|
}, "strip", z.ZodTypeAny, {
|
|
349
|
-
type: "expense" | "task" | "budget";
|
|
350
392
|
name: string;
|
|
351
393
|
isDefault: boolean;
|
|
352
394
|
farmId?: string | undefined;
|
|
353
395
|
}, {
|
|
354
|
-
type: "expense" | "task" | "budget";
|
|
355
396
|
name: string;
|
|
356
397
|
farmId?: string | undefined;
|
|
357
398
|
isDefault?: boolean | undefined;
|
|
@@ -359,7 +400,6 @@ export declare const categoriesRouter: {
|
|
|
359
400
|
}, "strip", z.ZodTypeAny, {
|
|
360
401
|
type: "categories";
|
|
361
402
|
attributes: {
|
|
362
|
-
type: "expense" | "task" | "budget";
|
|
363
403
|
name: string;
|
|
364
404
|
isDefault: boolean;
|
|
365
405
|
farmId?: string | undefined;
|
|
@@ -367,7 +407,6 @@ export declare const categoriesRouter: {
|
|
|
367
407
|
}, {
|
|
368
408
|
type: "categories";
|
|
369
409
|
attributes: {
|
|
370
|
-
type: "expense" | "task" | "budget";
|
|
371
410
|
name: string;
|
|
372
411
|
farmId?: string | undefined;
|
|
373
412
|
isDefault?: boolean | undefined;
|
|
@@ -381,21 +420,18 @@ export declare const categoriesRouter: {
|
|
|
381
420
|
id: z.ZodString;
|
|
382
421
|
attributes: z.ZodObject<{
|
|
383
422
|
name: z.ZodString;
|
|
384
|
-
type: z.ZodEnum<["task", "budget", "expense"]>;
|
|
385
423
|
farmId: z.ZodNullable<z.ZodString>;
|
|
386
424
|
isDefault: z.ZodBoolean;
|
|
387
425
|
} & {
|
|
388
426
|
createdAt: z.ZodString;
|
|
389
427
|
updatedAt: z.ZodString;
|
|
390
428
|
}, "strip", z.ZodTypeAny, {
|
|
391
|
-
type: "expense" | "task" | "budget";
|
|
392
429
|
createdAt: string;
|
|
393
430
|
updatedAt: string;
|
|
394
431
|
name: string;
|
|
395
432
|
farmId: string | null;
|
|
396
433
|
isDefault: boolean;
|
|
397
434
|
}, {
|
|
398
|
-
type: "expense" | "task" | "budget";
|
|
399
435
|
createdAt: string;
|
|
400
436
|
updatedAt: string;
|
|
401
437
|
name: string;
|
|
@@ -409,7 +445,6 @@ export declare const categoriesRouter: {
|
|
|
409
445
|
type: string;
|
|
410
446
|
id: string;
|
|
411
447
|
attributes: {
|
|
412
|
-
type: "expense" | "task" | "budget";
|
|
413
448
|
createdAt: string;
|
|
414
449
|
updatedAt: string;
|
|
415
450
|
name: string;
|
|
@@ -423,7 +458,6 @@ export declare const categoriesRouter: {
|
|
|
423
458
|
type: string;
|
|
424
459
|
id: string;
|
|
425
460
|
attributes: {
|
|
426
|
-
type: "expense" | "task" | "budget";
|
|
427
461
|
createdAt: string;
|
|
428
462
|
updatedAt: string;
|
|
429
463
|
name: string;
|
|
@@ -463,7 +497,6 @@ export declare const categoriesRouter: {
|
|
|
463
497
|
type: string;
|
|
464
498
|
id: string;
|
|
465
499
|
attributes: {
|
|
466
|
-
type: "expense" | "task" | "budget";
|
|
467
500
|
createdAt: string;
|
|
468
501
|
updatedAt: string;
|
|
469
502
|
name: string;
|
|
@@ -489,7 +522,6 @@ export declare const categoriesRouter: {
|
|
|
489
522
|
type: string;
|
|
490
523
|
id: string;
|
|
491
524
|
attributes: {
|
|
492
|
-
type: "expense" | "task" | "budget";
|
|
493
525
|
createdAt: string;
|
|
494
526
|
updatedAt: string;
|
|
495
527
|
name: string;
|
|
@@ -512,48 +544,184 @@ export declare const categoriesRouter: {
|
|
|
512
544
|
}[] | undefined;
|
|
513
545
|
}>;
|
|
514
546
|
400: z.ZodObject<{
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
547
|
+
errors: z.ZodArray<z.ZodObject<{
|
|
548
|
+
id: z.ZodOptional<z.ZodString>;
|
|
549
|
+
links: z.ZodOptional<z.ZodObject<{
|
|
550
|
+
about: z.ZodOptional<z.ZodString>;
|
|
551
|
+
}, "strip", z.ZodTypeAny, {
|
|
552
|
+
about?: string | undefined;
|
|
553
|
+
}, {
|
|
554
|
+
about?: string | undefined;
|
|
555
|
+
}>>;
|
|
556
|
+
status: z.ZodOptional<z.ZodString>;
|
|
557
|
+
code: z.ZodOptional<z.ZodString>;
|
|
558
|
+
title: z.ZodOptional<z.ZodString>;
|
|
559
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
560
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
561
|
+
pointer: z.ZodOptional<z.ZodString>;
|
|
562
|
+
parameter: z.ZodOptional<z.ZodString>;
|
|
563
|
+
}, "strip", z.ZodTypeAny, {
|
|
564
|
+
pointer?: string | undefined;
|
|
565
|
+
parameter?: string | undefined;
|
|
566
|
+
}, {
|
|
567
|
+
pointer?: string | undefined;
|
|
568
|
+
parameter?: string | undefined;
|
|
569
|
+
}>>;
|
|
570
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
518
571
|
}, "strip", z.ZodTypeAny, {
|
|
519
|
-
|
|
520
|
-
|
|
572
|
+
status?: string | undefined;
|
|
573
|
+
code?: string | undefined;
|
|
574
|
+
id?: string | undefined;
|
|
575
|
+
links?: {
|
|
576
|
+
about?: string | undefined;
|
|
577
|
+
} | undefined;
|
|
578
|
+
meta?: Record<string, unknown> | undefined;
|
|
579
|
+
title?: string | undefined;
|
|
580
|
+
detail?: string | undefined;
|
|
581
|
+
source?: {
|
|
582
|
+
pointer?: string | undefined;
|
|
583
|
+
parameter?: string | undefined;
|
|
584
|
+
} | undefined;
|
|
521
585
|
}, {
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
586
|
+
status?: string | undefined;
|
|
587
|
+
code?: string | undefined;
|
|
588
|
+
id?: string | undefined;
|
|
589
|
+
links?: {
|
|
590
|
+
about?: string | undefined;
|
|
591
|
+
} | undefined;
|
|
592
|
+
meta?: Record<string, unknown> | undefined;
|
|
593
|
+
title?: string | undefined;
|
|
594
|
+
detail?: string | undefined;
|
|
595
|
+
source?: {
|
|
596
|
+
pointer?: string | undefined;
|
|
597
|
+
parameter?: string | undefined;
|
|
598
|
+
} | undefined;
|
|
599
|
+
}>, "many">;
|
|
600
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
525
601
|
}, "strip", z.ZodTypeAny, {
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
602
|
+
errors: {
|
|
603
|
+
status?: string | undefined;
|
|
604
|
+
code?: string | undefined;
|
|
605
|
+
id?: string | undefined;
|
|
606
|
+
links?: {
|
|
607
|
+
about?: string | undefined;
|
|
608
|
+
} | undefined;
|
|
609
|
+
meta?: Record<string, unknown> | undefined;
|
|
610
|
+
title?: string | undefined;
|
|
611
|
+
detail?: string | undefined;
|
|
612
|
+
source?: {
|
|
613
|
+
pointer?: string | undefined;
|
|
614
|
+
parameter?: string | undefined;
|
|
615
|
+
} | undefined;
|
|
616
|
+
}[];
|
|
617
|
+
meta?: Record<string, unknown> | undefined;
|
|
530
618
|
}, {
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
619
|
+
errors: {
|
|
620
|
+
status?: string | undefined;
|
|
621
|
+
code?: string | undefined;
|
|
622
|
+
id?: string | undefined;
|
|
623
|
+
links?: {
|
|
624
|
+
about?: string | undefined;
|
|
625
|
+
} | undefined;
|
|
626
|
+
meta?: Record<string, unknown> | undefined;
|
|
627
|
+
title?: string | undefined;
|
|
628
|
+
detail?: string | undefined;
|
|
629
|
+
source?: {
|
|
630
|
+
pointer?: string | undefined;
|
|
631
|
+
parameter?: string | undefined;
|
|
632
|
+
} | undefined;
|
|
633
|
+
}[];
|
|
634
|
+
meta?: Record<string, unknown> | undefined;
|
|
535
635
|
}>;
|
|
536
636
|
409: z.ZodObject<{
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
637
|
+
errors: z.ZodArray<z.ZodObject<{
|
|
638
|
+
id: z.ZodOptional<z.ZodString>;
|
|
639
|
+
links: z.ZodOptional<z.ZodObject<{
|
|
640
|
+
about: z.ZodOptional<z.ZodString>;
|
|
641
|
+
}, "strip", z.ZodTypeAny, {
|
|
642
|
+
about?: string | undefined;
|
|
643
|
+
}, {
|
|
644
|
+
about?: string | undefined;
|
|
645
|
+
}>>;
|
|
646
|
+
status: z.ZodOptional<z.ZodString>;
|
|
647
|
+
code: z.ZodOptional<z.ZodString>;
|
|
648
|
+
title: z.ZodOptional<z.ZodString>;
|
|
649
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
650
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
651
|
+
pointer: z.ZodOptional<z.ZodString>;
|
|
652
|
+
parameter: z.ZodOptional<z.ZodString>;
|
|
653
|
+
}, "strip", z.ZodTypeAny, {
|
|
654
|
+
pointer?: string | undefined;
|
|
655
|
+
parameter?: string | undefined;
|
|
656
|
+
}, {
|
|
657
|
+
pointer?: string | undefined;
|
|
658
|
+
parameter?: string | undefined;
|
|
659
|
+
}>>;
|
|
660
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
540
661
|
}, "strip", z.ZodTypeAny, {
|
|
541
|
-
|
|
542
|
-
|
|
662
|
+
status?: string | undefined;
|
|
663
|
+
code?: string | undefined;
|
|
664
|
+
id?: string | undefined;
|
|
665
|
+
links?: {
|
|
666
|
+
about?: string | undefined;
|
|
667
|
+
} | undefined;
|
|
668
|
+
meta?: Record<string, unknown> | undefined;
|
|
669
|
+
title?: string | undefined;
|
|
670
|
+
detail?: string | undefined;
|
|
671
|
+
source?: {
|
|
672
|
+
pointer?: string | undefined;
|
|
673
|
+
parameter?: string | undefined;
|
|
674
|
+
} | undefined;
|
|
543
675
|
}, {
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
676
|
+
status?: string | undefined;
|
|
677
|
+
code?: string | undefined;
|
|
678
|
+
id?: string | undefined;
|
|
679
|
+
links?: {
|
|
680
|
+
about?: string | undefined;
|
|
681
|
+
} | undefined;
|
|
682
|
+
meta?: Record<string, unknown> | undefined;
|
|
683
|
+
title?: string | undefined;
|
|
684
|
+
detail?: string | undefined;
|
|
685
|
+
source?: {
|
|
686
|
+
pointer?: string | undefined;
|
|
687
|
+
parameter?: string | undefined;
|
|
688
|
+
} | undefined;
|
|
689
|
+
}>, "many">;
|
|
690
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
547
691
|
}, "strip", z.ZodTypeAny, {
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
692
|
+
errors: {
|
|
693
|
+
status?: string | undefined;
|
|
694
|
+
code?: string | undefined;
|
|
695
|
+
id?: string | undefined;
|
|
696
|
+
links?: {
|
|
697
|
+
about?: string | undefined;
|
|
698
|
+
} | undefined;
|
|
699
|
+
meta?: Record<string, unknown> | undefined;
|
|
700
|
+
title?: string | undefined;
|
|
701
|
+
detail?: string | undefined;
|
|
702
|
+
source?: {
|
|
703
|
+
pointer?: string | undefined;
|
|
704
|
+
parameter?: string | undefined;
|
|
705
|
+
} | undefined;
|
|
706
|
+
}[];
|
|
707
|
+
meta?: Record<string, unknown> | undefined;
|
|
552
708
|
}, {
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
709
|
+
errors: {
|
|
710
|
+
status?: string | undefined;
|
|
711
|
+
code?: string | undefined;
|
|
712
|
+
id?: string | undefined;
|
|
713
|
+
links?: {
|
|
714
|
+
about?: string | undefined;
|
|
715
|
+
} | undefined;
|
|
716
|
+
meta?: Record<string, unknown> | undefined;
|
|
717
|
+
title?: string | undefined;
|
|
718
|
+
detail?: string | undefined;
|
|
719
|
+
source?: {
|
|
720
|
+
pointer?: string | undefined;
|
|
721
|
+
parameter?: string | undefined;
|
|
722
|
+
} | undefined;
|
|
723
|
+
}[];
|
|
724
|
+
meta?: Record<string, unknown> | undefined;
|
|
557
725
|
}>;
|
|
558
726
|
};
|
|
559
727
|
};
|
|
@@ -604,21 +772,18 @@ export declare const categoriesRouter: {
|
|
|
604
772
|
id: z.ZodString;
|
|
605
773
|
attributes: z.ZodObject<{
|
|
606
774
|
name: z.ZodString;
|
|
607
|
-
type: z.ZodEnum<["task", "budget", "expense"]>;
|
|
608
775
|
farmId: z.ZodNullable<z.ZodString>;
|
|
609
776
|
isDefault: z.ZodBoolean;
|
|
610
777
|
} & {
|
|
611
778
|
createdAt: z.ZodString;
|
|
612
779
|
updatedAt: z.ZodString;
|
|
613
780
|
}, "strip", z.ZodTypeAny, {
|
|
614
|
-
type: "expense" | "task" | "budget";
|
|
615
781
|
createdAt: string;
|
|
616
782
|
updatedAt: string;
|
|
617
783
|
name: string;
|
|
618
784
|
farmId: string | null;
|
|
619
785
|
isDefault: boolean;
|
|
620
786
|
}, {
|
|
621
|
-
type: "expense" | "task" | "budget";
|
|
622
787
|
createdAt: string;
|
|
623
788
|
updatedAt: string;
|
|
624
789
|
name: string;
|
|
@@ -632,7 +797,6 @@ export declare const categoriesRouter: {
|
|
|
632
797
|
type: string;
|
|
633
798
|
id: string;
|
|
634
799
|
attributes: {
|
|
635
|
-
type: "expense" | "task" | "budget";
|
|
636
800
|
createdAt: string;
|
|
637
801
|
updatedAt: string;
|
|
638
802
|
name: string;
|
|
@@ -646,7 +810,6 @@ export declare const categoriesRouter: {
|
|
|
646
810
|
type: string;
|
|
647
811
|
id: string;
|
|
648
812
|
attributes: {
|
|
649
|
-
type: "expense" | "task" | "budget";
|
|
650
813
|
createdAt: string;
|
|
651
814
|
updatedAt: string;
|
|
652
815
|
name: string;
|
|
@@ -686,7 +849,6 @@ export declare const categoriesRouter: {
|
|
|
686
849
|
type: string;
|
|
687
850
|
id: string;
|
|
688
851
|
attributes: {
|
|
689
|
-
type: "expense" | "task" | "budget";
|
|
690
852
|
createdAt: string;
|
|
691
853
|
updatedAt: string;
|
|
692
854
|
name: string;
|
|
@@ -712,7 +874,6 @@ export declare const categoriesRouter: {
|
|
|
712
874
|
type: string;
|
|
713
875
|
id: string;
|
|
714
876
|
attributes: {
|
|
715
|
-
type: "expense" | "task" | "budget";
|
|
716
877
|
createdAt: string;
|
|
717
878
|
updatedAt: string;
|
|
718
879
|
name: string;
|
|
@@ -735,26 +896,94 @@ export declare const categoriesRouter: {
|
|
|
735
896
|
}[] | undefined;
|
|
736
897
|
}>;
|
|
737
898
|
404: z.ZodObject<{
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
899
|
+
errors: z.ZodArray<z.ZodObject<{
|
|
900
|
+
id: z.ZodOptional<z.ZodString>;
|
|
901
|
+
links: z.ZodOptional<z.ZodObject<{
|
|
902
|
+
about: z.ZodOptional<z.ZodString>;
|
|
903
|
+
}, "strip", z.ZodTypeAny, {
|
|
904
|
+
about?: string | undefined;
|
|
905
|
+
}, {
|
|
906
|
+
about?: string | undefined;
|
|
907
|
+
}>>;
|
|
908
|
+
status: z.ZodOptional<z.ZodString>;
|
|
909
|
+
code: z.ZodOptional<z.ZodString>;
|
|
910
|
+
title: z.ZodOptional<z.ZodString>;
|
|
911
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
912
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
913
|
+
pointer: z.ZodOptional<z.ZodString>;
|
|
914
|
+
parameter: z.ZodOptional<z.ZodString>;
|
|
915
|
+
}, "strip", z.ZodTypeAny, {
|
|
916
|
+
pointer?: string | undefined;
|
|
917
|
+
parameter?: string | undefined;
|
|
918
|
+
}, {
|
|
919
|
+
pointer?: string | undefined;
|
|
920
|
+
parameter?: string | undefined;
|
|
921
|
+
}>>;
|
|
922
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
741
923
|
}, "strip", z.ZodTypeAny, {
|
|
742
|
-
|
|
743
|
-
|
|
924
|
+
status?: string | undefined;
|
|
925
|
+
code?: string | undefined;
|
|
926
|
+
id?: string | undefined;
|
|
927
|
+
links?: {
|
|
928
|
+
about?: string | undefined;
|
|
929
|
+
} | undefined;
|
|
930
|
+
meta?: Record<string, unknown> | undefined;
|
|
931
|
+
title?: string | undefined;
|
|
932
|
+
detail?: string | undefined;
|
|
933
|
+
source?: {
|
|
934
|
+
pointer?: string | undefined;
|
|
935
|
+
parameter?: string | undefined;
|
|
936
|
+
} | undefined;
|
|
744
937
|
}, {
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
938
|
+
status?: string | undefined;
|
|
939
|
+
code?: string | undefined;
|
|
940
|
+
id?: string | undefined;
|
|
941
|
+
links?: {
|
|
942
|
+
about?: string | undefined;
|
|
943
|
+
} | undefined;
|
|
944
|
+
meta?: Record<string, unknown> | undefined;
|
|
945
|
+
title?: string | undefined;
|
|
946
|
+
detail?: string | undefined;
|
|
947
|
+
source?: {
|
|
948
|
+
pointer?: string | undefined;
|
|
949
|
+
parameter?: string | undefined;
|
|
950
|
+
} | undefined;
|
|
951
|
+
}>, "many">;
|
|
952
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
748
953
|
}, "strip", z.ZodTypeAny, {
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
954
|
+
errors: {
|
|
955
|
+
status?: string | undefined;
|
|
956
|
+
code?: string | undefined;
|
|
957
|
+
id?: string | undefined;
|
|
958
|
+
links?: {
|
|
959
|
+
about?: string | undefined;
|
|
960
|
+
} | undefined;
|
|
961
|
+
meta?: Record<string, unknown> | undefined;
|
|
962
|
+
title?: string | undefined;
|
|
963
|
+
detail?: string | undefined;
|
|
964
|
+
source?: {
|
|
965
|
+
pointer?: string | undefined;
|
|
966
|
+
parameter?: string | undefined;
|
|
967
|
+
} | undefined;
|
|
968
|
+
}[];
|
|
969
|
+
meta?: Record<string, unknown> | undefined;
|
|
753
970
|
}, {
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
971
|
+
errors: {
|
|
972
|
+
status?: string | undefined;
|
|
973
|
+
code?: string | undefined;
|
|
974
|
+
id?: string | undefined;
|
|
975
|
+
links?: {
|
|
976
|
+
about?: string | undefined;
|
|
977
|
+
} | undefined;
|
|
978
|
+
meta?: Record<string, unknown> | undefined;
|
|
979
|
+
title?: string | undefined;
|
|
980
|
+
detail?: string | undefined;
|
|
981
|
+
source?: {
|
|
982
|
+
pointer?: string | undefined;
|
|
983
|
+
parameter?: string | undefined;
|
|
984
|
+
} | undefined;
|
|
985
|
+
}[];
|
|
986
|
+
meta?: Record<string, unknown> | undefined;
|
|
758
987
|
}>;
|
|
759
988
|
};
|
|
760
989
|
};
|
|
@@ -773,26 +1002,94 @@ export declare const categoriesRouter: {
|
|
|
773
1002
|
responses: {
|
|
774
1003
|
204: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
775
1004
|
404: z.ZodObject<{
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
1005
|
+
errors: z.ZodArray<z.ZodObject<{
|
|
1006
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1007
|
+
links: z.ZodOptional<z.ZodObject<{
|
|
1008
|
+
about: z.ZodOptional<z.ZodString>;
|
|
1009
|
+
}, "strip", z.ZodTypeAny, {
|
|
1010
|
+
about?: string | undefined;
|
|
1011
|
+
}, {
|
|
1012
|
+
about?: string | undefined;
|
|
1013
|
+
}>>;
|
|
1014
|
+
status: z.ZodOptional<z.ZodString>;
|
|
1015
|
+
code: z.ZodOptional<z.ZodString>;
|
|
1016
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1017
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
1018
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
1019
|
+
pointer: z.ZodOptional<z.ZodString>;
|
|
1020
|
+
parameter: z.ZodOptional<z.ZodString>;
|
|
1021
|
+
}, "strip", z.ZodTypeAny, {
|
|
1022
|
+
pointer?: string | undefined;
|
|
1023
|
+
parameter?: string | undefined;
|
|
1024
|
+
}, {
|
|
1025
|
+
pointer?: string | undefined;
|
|
1026
|
+
parameter?: string | undefined;
|
|
1027
|
+
}>>;
|
|
1028
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
779
1029
|
}, "strip", z.ZodTypeAny, {
|
|
780
|
-
|
|
781
|
-
|
|
1030
|
+
status?: string | undefined;
|
|
1031
|
+
code?: string | undefined;
|
|
1032
|
+
id?: string | undefined;
|
|
1033
|
+
links?: {
|
|
1034
|
+
about?: string | undefined;
|
|
1035
|
+
} | undefined;
|
|
1036
|
+
meta?: Record<string, unknown> | undefined;
|
|
1037
|
+
title?: string | undefined;
|
|
1038
|
+
detail?: string | undefined;
|
|
1039
|
+
source?: {
|
|
1040
|
+
pointer?: string | undefined;
|
|
1041
|
+
parameter?: string | undefined;
|
|
1042
|
+
} | undefined;
|
|
782
1043
|
}, {
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
1044
|
+
status?: string | undefined;
|
|
1045
|
+
code?: string | undefined;
|
|
1046
|
+
id?: string | undefined;
|
|
1047
|
+
links?: {
|
|
1048
|
+
about?: string | undefined;
|
|
1049
|
+
} | undefined;
|
|
1050
|
+
meta?: Record<string, unknown> | undefined;
|
|
1051
|
+
title?: string | undefined;
|
|
1052
|
+
detail?: string | undefined;
|
|
1053
|
+
source?: {
|
|
1054
|
+
pointer?: string | undefined;
|
|
1055
|
+
parameter?: string | undefined;
|
|
1056
|
+
} | undefined;
|
|
1057
|
+
}>, "many">;
|
|
1058
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
786
1059
|
}, "strip", z.ZodTypeAny, {
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
1060
|
+
errors: {
|
|
1061
|
+
status?: string | undefined;
|
|
1062
|
+
code?: string | undefined;
|
|
1063
|
+
id?: string | undefined;
|
|
1064
|
+
links?: {
|
|
1065
|
+
about?: string | undefined;
|
|
1066
|
+
} | undefined;
|
|
1067
|
+
meta?: Record<string, unknown> | undefined;
|
|
1068
|
+
title?: string | undefined;
|
|
1069
|
+
detail?: string | undefined;
|
|
1070
|
+
source?: {
|
|
1071
|
+
pointer?: string | undefined;
|
|
1072
|
+
parameter?: string | undefined;
|
|
1073
|
+
} | undefined;
|
|
1074
|
+
}[];
|
|
1075
|
+
meta?: Record<string, unknown> | undefined;
|
|
791
1076
|
}, {
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
1077
|
+
errors: {
|
|
1078
|
+
status?: string | undefined;
|
|
1079
|
+
code?: string | undefined;
|
|
1080
|
+
id?: string | undefined;
|
|
1081
|
+
links?: {
|
|
1082
|
+
about?: string | undefined;
|
|
1083
|
+
} | undefined;
|
|
1084
|
+
meta?: Record<string, unknown> | undefined;
|
|
1085
|
+
title?: string | undefined;
|
|
1086
|
+
detail?: string | undefined;
|
|
1087
|
+
source?: {
|
|
1088
|
+
pointer?: string | undefined;
|
|
1089
|
+
parameter?: string | undefined;
|
|
1090
|
+
} | undefined;
|
|
1091
|
+
}[];
|
|
1092
|
+
meta?: Record<string, unknown> | undefined;
|
|
796
1093
|
}>;
|
|
797
1094
|
};
|
|
798
1095
|
};
|