@deepintel-ltd/farmpro-contracts 1.7.1 → 1.7.3

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