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