@deepintel-ltd/farmpro-contracts 1.7.1 → 1.7.2

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,1729 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * Capital Transaction schemas - JSON:API compliant
4
+ * Used for tracking capital injections, loans, grants, and other funding sources
5
+ */
6
+ export declare const capitalTypeSchema: z.ZodEnum<["OWNER_CONTRIBUTION", "LOAN", "GRANT", "INVESTOR", "WORKING_CAPITAL", "OTHER"]>;
7
+ export declare const capitalStatusSchema: z.ZodEnum<["received", "pending", "partially_repaid", "fully_repaid", "cancelled"]>;
8
+ export declare const capitalCurrencySchema: z.ZodEnum<["NGN", "USD"]>;
9
+ export declare const capitalTransactionAttributesSchema: z.ZodObject<{
10
+ type: z.ZodEnum<["OWNER_CONTRIBUTION", "LOAN", "GRANT", "INVESTOR", "WORKING_CAPITAL", "OTHER"]>;
11
+ amount: z.ZodNumber;
12
+ currency: z.ZodEnum<["NGN", "USD"]>;
13
+ description: z.ZodNullable<z.ZodString>;
14
+ source: z.ZodNullable<z.ZodString>;
15
+ reference: z.ZodNullable<z.ZodString>;
16
+ transactionDate: z.ZodString;
17
+ isRepayable: z.ZodBoolean;
18
+ repaymentTerms: z.ZodNullable<z.ZodString>;
19
+ interestRate: z.ZodNullable<z.ZodNumber>;
20
+ repaymentDueDate: z.ZodNullable<z.ZodString>;
21
+ status: z.ZodEnum<["received", "pending", "partially_repaid", "fully_repaid", "cancelled"]>;
22
+ amountRepaid: z.ZodNumber;
23
+ outstandingBalance: z.ZodOptional<z.ZodNumber>;
24
+ notes: z.ZodNullable<z.ZodString>;
25
+ } & {
26
+ createdAt: z.ZodString;
27
+ updatedAt: z.ZodString;
28
+ }, "strip", z.ZodTypeAny, {
29
+ type: "OWNER_CONTRIBUTION" | "LOAN" | "GRANT" | "INVESTOR" | "WORKING_CAPITAL" | "OTHER";
30
+ status: "received" | "pending" | "cancelled" | "partially_repaid" | "fully_repaid";
31
+ source: string | null;
32
+ createdAt: string;
33
+ updatedAt: string;
34
+ description: string | null;
35
+ currency: "NGN" | "USD";
36
+ notes: string | null;
37
+ amount: number;
38
+ reference: string | null;
39
+ transactionDate: string;
40
+ isRepayable: boolean;
41
+ repaymentTerms: string | null;
42
+ interestRate: number | null;
43
+ repaymentDueDate: string | null;
44
+ amountRepaid: number;
45
+ outstandingBalance?: number | undefined;
46
+ }, {
47
+ type: "OWNER_CONTRIBUTION" | "LOAN" | "GRANT" | "INVESTOR" | "WORKING_CAPITAL" | "OTHER";
48
+ status: "received" | "pending" | "cancelled" | "partially_repaid" | "fully_repaid";
49
+ source: string | null;
50
+ createdAt: string;
51
+ updatedAt: string;
52
+ description: string | null;
53
+ currency: "NGN" | "USD";
54
+ notes: string | null;
55
+ amount: number;
56
+ reference: string | null;
57
+ transactionDate: string;
58
+ isRepayable: boolean;
59
+ repaymentTerms: string | null;
60
+ interestRate: number | null;
61
+ repaymentDueDate: string | null;
62
+ amountRepaid: number;
63
+ outstandingBalance?: number | undefined;
64
+ }>;
65
+ export declare const createCapitalTransactionAttributesSchema: z.ZodEffects<z.ZodObject<{
66
+ type: z.ZodEnum<["OWNER_CONTRIBUTION", "LOAN", "GRANT", "INVESTOR", "WORKING_CAPITAL", "OTHER"]>;
67
+ amount: z.ZodNumber;
68
+ currency: z.ZodDefault<z.ZodEnum<["NGN", "USD"]>>;
69
+ description: z.ZodOptional<z.ZodString>;
70
+ source: z.ZodOptional<z.ZodString>;
71
+ reference: z.ZodOptional<z.ZodString>;
72
+ transactionDate: z.ZodString;
73
+ isRepayable: z.ZodDefault<z.ZodBoolean>;
74
+ repaymentTerms: z.ZodOptional<z.ZodString>;
75
+ interestRate: z.ZodOptional<z.ZodNumber>;
76
+ repaymentDueDate: z.ZodOptional<z.ZodString>;
77
+ notes: z.ZodOptional<z.ZodString>;
78
+ }, "strip", z.ZodTypeAny, {
79
+ type: "OWNER_CONTRIBUTION" | "LOAN" | "GRANT" | "INVESTOR" | "WORKING_CAPITAL" | "OTHER";
80
+ currency: "NGN" | "USD";
81
+ amount: number;
82
+ transactionDate: string;
83
+ isRepayable: boolean;
84
+ source?: string | undefined;
85
+ description?: string | undefined;
86
+ notes?: string | undefined;
87
+ reference?: string | undefined;
88
+ repaymentTerms?: string | undefined;
89
+ interestRate?: number | undefined;
90
+ repaymentDueDate?: string | undefined;
91
+ }, {
92
+ type: "OWNER_CONTRIBUTION" | "LOAN" | "GRANT" | "INVESTOR" | "WORKING_CAPITAL" | "OTHER";
93
+ amount: number;
94
+ transactionDate: string;
95
+ source?: string | undefined;
96
+ description?: string | undefined;
97
+ currency?: "NGN" | "USD" | undefined;
98
+ notes?: string | undefined;
99
+ reference?: string | undefined;
100
+ isRepayable?: boolean | undefined;
101
+ repaymentTerms?: string | undefined;
102
+ interestRate?: number | undefined;
103
+ repaymentDueDate?: string | undefined;
104
+ }>, {
105
+ type: "OWNER_CONTRIBUTION" | "LOAN" | "GRANT" | "INVESTOR" | "WORKING_CAPITAL" | "OTHER";
106
+ currency: "NGN" | "USD";
107
+ amount: number;
108
+ transactionDate: string;
109
+ isRepayable: boolean;
110
+ source?: string | undefined;
111
+ description?: string | undefined;
112
+ notes?: string | undefined;
113
+ reference?: string | undefined;
114
+ repaymentTerms?: string | undefined;
115
+ interestRate?: number | undefined;
116
+ repaymentDueDate?: string | undefined;
117
+ }, {
118
+ type: "OWNER_CONTRIBUTION" | "LOAN" | "GRANT" | "INVESTOR" | "WORKING_CAPITAL" | "OTHER";
119
+ amount: number;
120
+ transactionDate: string;
121
+ source?: string | undefined;
122
+ description?: string | undefined;
123
+ currency?: "NGN" | "USD" | undefined;
124
+ notes?: string | undefined;
125
+ reference?: string | undefined;
126
+ isRepayable?: boolean | undefined;
127
+ repaymentTerms?: string | undefined;
128
+ interestRate?: number | undefined;
129
+ repaymentDueDate?: string | undefined;
130
+ }>;
131
+ export declare const updateCapitalTransactionAttributesSchema: z.ZodObject<{
132
+ type: z.ZodOptional<z.ZodEnum<["OWNER_CONTRIBUTION", "LOAN", "GRANT", "INVESTOR", "WORKING_CAPITAL", "OTHER"]>>;
133
+ amount: z.ZodOptional<z.ZodNumber>;
134
+ currency: z.ZodOptional<z.ZodEnum<["NGN", "USD"]>>;
135
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
136
+ source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
137
+ reference: z.ZodOptional<z.ZodNullable<z.ZodString>>;
138
+ transactionDate: z.ZodOptional<z.ZodString>;
139
+ isRepayable: z.ZodOptional<z.ZodBoolean>;
140
+ repaymentTerms: z.ZodOptional<z.ZodNullable<z.ZodString>>;
141
+ interestRate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
142
+ repaymentDueDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
143
+ status: z.ZodOptional<z.ZodEnum<["received", "pending", "partially_repaid", "fully_repaid", "cancelled"]>>;
144
+ amountRepaid: z.ZodOptional<z.ZodNumber>;
145
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
146
+ }, "strip", z.ZodTypeAny, {
147
+ type?: "OWNER_CONTRIBUTION" | "LOAN" | "GRANT" | "INVESTOR" | "WORKING_CAPITAL" | "OTHER" | undefined;
148
+ status?: "received" | "pending" | "cancelled" | "partially_repaid" | "fully_repaid" | undefined;
149
+ source?: string | null | undefined;
150
+ description?: string | null | undefined;
151
+ currency?: "NGN" | "USD" | undefined;
152
+ notes?: string | null | undefined;
153
+ amount?: number | undefined;
154
+ reference?: string | null | undefined;
155
+ transactionDate?: string | undefined;
156
+ isRepayable?: boolean | undefined;
157
+ repaymentTerms?: string | null | undefined;
158
+ interestRate?: number | null | undefined;
159
+ repaymentDueDate?: string | null | undefined;
160
+ amountRepaid?: number | undefined;
161
+ }, {
162
+ type?: "OWNER_CONTRIBUTION" | "LOAN" | "GRANT" | "INVESTOR" | "WORKING_CAPITAL" | "OTHER" | undefined;
163
+ status?: "received" | "pending" | "cancelled" | "partially_repaid" | "fully_repaid" | undefined;
164
+ source?: string | null | undefined;
165
+ description?: string | null | undefined;
166
+ currency?: "NGN" | "USD" | undefined;
167
+ notes?: string | null | undefined;
168
+ amount?: number | undefined;
169
+ reference?: string | null | undefined;
170
+ transactionDate?: string | undefined;
171
+ isRepayable?: boolean | undefined;
172
+ repaymentTerms?: string | null | undefined;
173
+ interestRate?: number | null | undefined;
174
+ repaymentDueDate?: string | null | undefined;
175
+ amountRepaid?: number | undefined;
176
+ }>;
177
+ export declare const capitalRepaymentAttributesSchema: z.ZodObject<{
178
+ amount: z.ZodNumber;
179
+ repaymentDate: z.ZodString;
180
+ notes: z.ZodOptional<z.ZodString>;
181
+ }, "strip", z.ZodTypeAny, {
182
+ amount: number;
183
+ repaymentDate: string;
184
+ notes?: string | undefined;
185
+ }, {
186
+ amount: number;
187
+ repaymentDate: string;
188
+ notes?: string | undefined;
189
+ }>;
190
+ export declare const createCapitalTransactionSchema: z.ZodObject<{
191
+ type: z.ZodLiteral<"capital-transactions">;
192
+ attributes: z.ZodEffects<z.ZodObject<{
193
+ type: z.ZodEnum<["OWNER_CONTRIBUTION", "LOAN", "GRANT", "INVESTOR", "WORKING_CAPITAL", "OTHER"]>;
194
+ amount: z.ZodNumber;
195
+ currency: z.ZodDefault<z.ZodEnum<["NGN", "USD"]>>;
196
+ description: z.ZodOptional<z.ZodString>;
197
+ source: z.ZodOptional<z.ZodString>;
198
+ reference: z.ZodOptional<z.ZodString>;
199
+ transactionDate: z.ZodString;
200
+ isRepayable: z.ZodDefault<z.ZodBoolean>;
201
+ repaymentTerms: z.ZodOptional<z.ZodString>;
202
+ interestRate: z.ZodOptional<z.ZodNumber>;
203
+ repaymentDueDate: z.ZodOptional<z.ZodString>;
204
+ notes: z.ZodOptional<z.ZodString>;
205
+ }, "strip", z.ZodTypeAny, {
206
+ type: "OWNER_CONTRIBUTION" | "LOAN" | "GRANT" | "INVESTOR" | "WORKING_CAPITAL" | "OTHER";
207
+ currency: "NGN" | "USD";
208
+ amount: number;
209
+ transactionDate: string;
210
+ isRepayable: boolean;
211
+ source?: string | undefined;
212
+ description?: string | undefined;
213
+ notes?: string | undefined;
214
+ reference?: string | undefined;
215
+ repaymentTerms?: string | undefined;
216
+ interestRate?: number | undefined;
217
+ repaymentDueDate?: string | undefined;
218
+ }, {
219
+ type: "OWNER_CONTRIBUTION" | "LOAN" | "GRANT" | "INVESTOR" | "WORKING_CAPITAL" | "OTHER";
220
+ amount: number;
221
+ transactionDate: string;
222
+ source?: string | undefined;
223
+ description?: string | undefined;
224
+ currency?: "NGN" | "USD" | undefined;
225
+ notes?: string | undefined;
226
+ reference?: string | undefined;
227
+ isRepayable?: boolean | undefined;
228
+ repaymentTerms?: string | undefined;
229
+ interestRate?: number | undefined;
230
+ repaymentDueDate?: string | undefined;
231
+ }>, {
232
+ type: "OWNER_CONTRIBUTION" | "LOAN" | "GRANT" | "INVESTOR" | "WORKING_CAPITAL" | "OTHER";
233
+ currency: "NGN" | "USD";
234
+ amount: number;
235
+ transactionDate: string;
236
+ isRepayable: boolean;
237
+ source?: string | undefined;
238
+ description?: string | undefined;
239
+ notes?: string | undefined;
240
+ reference?: string | undefined;
241
+ repaymentTerms?: string | undefined;
242
+ interestRate?: number | undefined;
243
+ repaymentDueDate?: string | undefined;
244
+ }, {
245
+ type: "OWNER_CONTRIBUTION" | "LOAN" | "GRANT" | "INVESTOR" | "WORKING_CAPITAL" | "OTHER";
246
+ amount: number;
247
+ transactionDate: string;
248
+ source?: string | undefined;
249
+ description?: string | undefined;
250
+ currency?: "NGN" | "USD" | undefined;
251
+ notes?: string | undefined;
252
+ reference?: string | undefined;
253
+ isRepayable?: boolean | undefined;
254
+ repaymentTerms?: string | undefined;
255
+ interestRate?: number | undefined;
256
+ repaymentDueDate?: string | undefined;
257
+ }>;
258
+ }, "strip", z.ZodTypeAny, {
259
+ type: "capital-transactions";
260
+ attributes: {
261
+ type: "OWNER_CONTRIBUTION" | "LOAN" | "GRANT" | "INVESTOR" | "WORKING_CAPITAL" | "OTHER";
262
+ currency: "NGN" | "USD";
263
+ amount: number;
264
+ transactionDate: string;
265
+ isRepayable: boolean;
266
+ source?: string | undefined;
267
+ description?: string | undefined;
268
+ notes?: string | undefined;
269
+ reference?: string | undefined;
270
+ repaymentTerms?: string | undefined;
271
+ interestRate?: number | undefined;
272
+ repaymentDueDate?: string | undefined;
273
+ };
274
+ }, {
275
+ type: "capital-transactions";
276
+ attributes: {
277
+ type: "OWNER_CONTRIBUTION" | "LOAN" | "GRANT" | "INVESTOR" | "WORKING_CAPITAL" | "OTHER";
278
+ amount: number;
279
+ transactionDate: string;
280
+ source?: string | undefined;
281
+ description?: string | undefined;
282
+ currency?: "NGN" | "USD" | undefined;
283
+ notes?: string | undefined;
284
+ reference?: string | undefined;
285
+ isRepayable?: boolean | undefined;
286
+ repaymentTerms?: string | undefined;
287
+ interestRate?: number | undefined;
288
+ repaymentDueDate?: string | undefined;
289
+ };
290
+ }>;
291
+ export declare const updateCapitalTransactionSchema: z.ZodObject<{
292
+ type: z.ZodLiteral<"capital-transactions">;
293
+ id: z.ZodString;
294
+ attributes: z.ZodObject<{
295
+ type: z.ZodOptional<z.ZodEnum<["OWNER_CONTRIBUTION", "LOAN", "GRANT", "INVESTOR", "WORKING_CAPITAL", "OTHER"]>>;
296
+ amount: z.ZodOptional<z.ZodNumber>;
297
+ currency: z.ZodOptional<z.ZodEnum<["NGN", "USD"]>>;
298
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
299
+ source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
300
+ reference: z.ZodOptional<z.ZodNullable<z.ZodString>>;
301
+ transactionDate: z.ZodOptional<z.ZodString>;
302
+ isRepayable: z.ZodOptional<z.ZodBoolean>;
303
+ repaymentTerms: z.ZodOptional<z.ZodNullable<z.ZodString>>;
304
+ interestRate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
305
+ repaymentDueDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
306
+ status: z.ZodOptional<z.ZodEnum<["received", "pending", "partially_repaid", "fully_repaid", "cancelled"]>>;
307
+ amountRepaid: z.ZodOptional<z.ZodNumber>;
308
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
309
+ }, "strip", z.ZodTypeAny, {
310
+ type?: "OWNER_CONTRIBUTION" | "LOAN" | "GRANT" | "INVESTOR" | "WORKING_CAPITAL" | "OTHER" | undefined;
311
+ status?: "received" | "pending" | "cancelled" | "partially_repaid" | "fully_repaid" | undefined;
312
+ source?: string | null | undefined;
313
+ description?: string | null | undefined;
314
+ currency?: "NGN" | "USD" | undefined;
315
+ notes?: string | null | undefined;
316
+ amount?: number | undefined;
317
+ reference?: string | null | undefined;
318
+ transactionDate?: string | undefined;
319
+ isRepayable?: boolean | undefined;
320
+ repaymentTerms?: string | null | undefined;
321
+ interestRate?: number | null | undefined;
322
+ repaymentDueDate?: string | null | undefined;
323
+ amountRepaid?: number | undefined;
324
+ }, {
325
+ type?: "OWNER_CONTRIBUTION" | "LOAN" | "GRANT" | "INVESTOR" | "WORKING_CAPITAL" | "OTHER" | undefined;
326
+ status?: "received" | "pending" | "cancelled" | "partially_repaid" | "fully_repaid" | undefined;
327
+ source?: string | null | undefined;
328
+ description?: string | null | undefined;
329
+ currency?: "NGN" | "USD" | undefined;
330
+ notes?: string | null | undefined;
331
+ amount?: number | undefined;
332
+ reference?: string | null | undefined;
333
+ transactionDate?: string | undefined;
334
+ isRepayable?: boolean | undefined;
335
+ repaymentTerms?: string | null | undefined;
336
+ interestRate?: number | null | undefined;
337
+ repaymentDueDate?: string | null | undefined;
338
+ amountRepaid?: number | undefined;
339
+ }>;
340
+ }, "strip", z.ZodTypeAny, {
341
+ type: "capital-transactions";
342
+ id: string;
343
+ attributes: {
344
+ type?: "OWNER_CONTRIBUTION" | "LOAN" | "GRANT" | "INVESTOR" | "WORKING_CAPITAL" | "OTHER" | undefined;
345
+ status?: "received" | "pending" | "cancelled" | "partially_repaid" | "fully_repaid" | undefined;
346
+ source?: string | null | undefined;
347
+ description?: string | null | undefined;
348
+ currency?: "NGN" | "USD" | undefined;
349
+ notes?: string | null | undefined;
350
+ amount?: number | undefined;
351
+ reference?: string | null | undefined;
352
+ transactionDate?: string | undefined;
353
+ isRepayable?: boolean | undefined;
354
+ repaymentTerms?: string | null | undefined;
355
+ interestRate?: number | null | undefined;
356
+ repaymentDueDate?: string | null | undefined;
357
+ amountRepaid?: number | undefined;
358
+ };
359
+ }, {
360
+ type: "capital-transactions";
361
+ id: string;
362
+ attributes: {
363
+ type?: "OWNER_CONTRIBUTION" | "LOAN" | "GRANT" | "INVESTOR" | "WORKING_CAPITAL" | "OTHER" | undefined;
364
+ status?: "received" | "pending" | "cancelled" | "partially_repaid" | "fully_repaid" | undefined;
365
+ source?: string | null | undefined;
366
+ description?: string | null | undefined;
367
+ currency?: "NGN" | "USD" | undefined;
368
+ notes?: string | null | undefined;
369
+ amount?: number | undefined;
370
+ reference?: string | null | undefined;
371
+ transactionDate?: string | undefined;
372
+ isRepayable?: boolean | undefined;
373
+ repaymentTerms?: string | null | undefined;
374
+ interestRate?: number | null | undefined;
375
+ repaymentDueDate?: string | null | undefined;
376
+ amountRepaid?: number | undefined;
377
+ };
378
+ }>;
379
+ export declare const recordRepaymentSchema: z.ZodObject<{
380
+ type: z.ZodLiteral<"capital-repayments">;
381
+ attributes: z.ZodObject<{
382
+ amount: z.ZodNumber;
383
+ repaymentDate: z.ZodString;
384
+ notes: z.ZodOptional<z.ZodString>;
385
+ }, "strip", z.ZodTypeAny, {
386
+ amount: number;
387
+ repaymentDate: string;
388
+ notes?: string | undefined;
389
+ }, {
390
+ amount: number;
391
+ repaymentDate: string;
392
+ notes?: string | undefined;
393
+ }>;
394
+ }, "strip", z.ZodTypeAny, {
395
+ type: "capital-repayments";
396
+ attributes: {
397
+ amount: number;
398
+ repaymentDate: string;
399
+ notes?: string | undefined;
400
+ };
401
+ }, {
402
+ type: "capital-repayments";
403
+ attributes: {
404
+ amount: number;
405
+ repaymentDate: string;
406
+ notes?: string | undefined;
407
+ };
408
+ }>;
409
+ export declare const capitalTransactionResourceSchema: z.ZodObject<{
410
+ type: z.ZodLiteral<string>;
411
+ id: z.ZodString;
412
+ attributes: z.ZodObject<{
413
+ type: z.ZodEnum<["OWNER_CONTRIBUTION", "LOAN", "GRANT", "INVESTOR", "WORKING_CAPITAL", "OTHER"]>;
414
+ amount: z.ZodNumber;
415
+ currency: z.ZodEnum<["NGN", "USD"]>;
416
+ description: z.ZodNullable<z.ZodString>;
417
+ source: z.ZodNullable<z.ZodString>;
418
+ reference: z.ZodNullable<z.ZodString>;
419
+ transactionDate: z.ZodString;
420
+ isRepayable: z.ZodBoolean;
421
+ repaymentTerms: z.ZodNullable<z.ZodString>;
422
+ interestRate: z.ZodNullable<z.ZodNumber>;
423
+ repaymentDueDate: z.ZodNullable<z.ZodString>;
424
+ status: z.ZodEnum<["received", "pending", "partially_repaid", "fully_repaid", "cancelled"]>;
425
+ amountRepaid: z.ZodNumber;
426
+ outstandingBalance: z.ZodOptional<z.ZodNumber>;
427
+ notes: z.ZodNullable<z.ZodString>;
428
+ } & {
429
+ createdAt: z.ZodString;
430
+ updatedAt: z.ZodString;
431
+ }, "strip", z.ZodTypeAny, {
432
+ type: "OWNER_CONTRIBUTION" | "LOAN" | "GRANT" | "INVESTOR" | "WORKING_CAPITAL" | "OTHER";
433
+ status: "received" | "pending" | "cancelled" | "partially_repaid" | "fully_repaid";
434
+ source: string | null;
435
+ createdAt: string;
436
+ updatedAt: string;
437
+ description: string | null;
438
+ currency: "NGN" | "USD";
439
+ notes: string | null;
440
+ amount: number;
441
+ reference: string | null;
442
+ transactionDate: string;
443
+ isRepayable: boolean;
444
+ repaymentTerms: string | null;
445
+ interestRate: number | null;
446
+ repaymentDueDate: string | null;
447
+ amountRepaid: number;
448
+ outstandingBalance?: number | undefined;
449
+ }, {
450
+ type: "OWNER_CONTRIBUTION" | "LOAN" | "GRANT" | "INVESTOR" | "WORKING_CAPITAL" | "OTHER";
451
+ status: "received" | "pending" | "cancelled" | "partially_repaid" | "fully_repaid";
452
+ source: string | null;
453
+ createdAt: string;
454
+ updatedAt: string;
455
+ description: string | null;
456
+ currency: "NGN" | "USD";
457
+ notes: string | null;
458
+ amount: number;
459
+ reference: string | null;
460
+ transactionDate: string;
461
+ isRepayable: boolean;
462
+ repaymentTerms: string | null;
463
+ interestRate: number | null;
464
+ repaymentDueDate: string | null;
465
+ amountRepaid: number;
466
+ outstandingBalance?: number | undefined;
467
+ }>;
468
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
469
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
470
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
471
+ }, "strip", z.ZodTypeAny, {
472
+ type: string;
473
+ id: string;
474
+ attributes: {
475
+ type: "OWNER_CONTRIBUTION" | "LOAN" | "GRANT" | "INVESTOR" | "WORKING_CAPITAL" | "OTHER";
476
+ status: "received" | "pending" | "cancelled" | "partially_repaid" | "fully_repaid";
477
+ source: string | null;
478
+ createdAt: string;
479
+ updatedAt: string;
480
+ description: string | null;
481
+ currency: "NGN" | "USD";
482
+ notes: string | null;
483
+ amount: number;
484
+ reference: string | null;
485
+ transactionDate: string;
486
+ isRepayable: boolean;
487
+ repaymentTerms: string | null;
488
+ interestRate: number | null;
489
+ repaymentDueDate: string | null;
490
+ amountRepaid: number;
491
+ outstandingBalance?: number | undefined;
492
+ };
493
+ relationships?: Record<string, unknown> | undefined;
494
+ links?: Record<string, string> | undefined;
495
+ meta?: Record<string, unknown> | undefined;
496
+ }, {
497
+ type: string;
498
+ id: string;
499
+ attributes: {
500
+ type: "OWNER_CONTRIBUTION" | "LOAN" | "GRANT" | "INVESTOR" | "WORKING_CAPITAL" | "OTHER";
501
+ status: "received" | "pending" | "cancelled" | "partially_repaid" | "fully_repaid";
502
+ source: string | null;
503
+ createdAt: string;
504
+ updatedAt: string;
505
+ description: string | null;
506
+ currency: "NGN" | "USD";
507
+ notes: string | null;
508
+ amount: number;
509
+ reference: string | null;
510
+ transactionDate: string;
511
+ isRepayable: boolean;
512
+ repaymentTerms: string | null;
513
+ interestRate: number | null;
514
+ repaymentDueDate: string | null;
515
+ amountRepaid: number;
516
+ outstandingBalance?: number | undefined;
517
+ };
518
+ relationships?: Record<string, unknown> | undefined;
519
+ links?: Record<string, string> | undefined;
520
+ meta?: Record<string, unknown> | undefined;
521
+ }>;
522
+ export declare const capitalTransactionDetailResourceSchema: z.ZodObject<{
523
+ type: z.ZodLiteral<string>;
524
+ id: z.ZodString;
525
+ attributes: z.ZodObject<{
526
+ type: z.ZodEnum<["OWNER_CONTRIBUTION", "LOAN", "GRANT", "INVESTOR", "WORKING_CAPITAL", "OTHER"]>;
527
+ amount: z.ZodNumber;
528
+ currency: z.ZodEnum<["NGN", "USD"]>;
529
+ description: z.ZodNullable<z.ZodString>;
530
+ source: z.ZodNullable<z.ZodString>;
531
+ reference: z.ZodNullable<z.ZodString>;
532
+ transactionDate: z.ZodString;
533
+ isRepayable: z.ZodBoolean;
534
+ repaymentTerms: z.ZodNullable<z.ZodString>;
535
+ interestRate: z.ZodNullable<z.ZodNumber>;
536
+ repaymentDueDate: z.ZodNullable<z.ZodString>;
537
+ status: z.ZodEnum<["received", "pending", "partially_repaid", "fully_repaid", "cancelled"]>;
538
+ amountRepaid: z.ZodNumber;
539
+ outstandingBalance: z.ZodOptional<z.ZodNumber>;
540
+ notes: z.ZodNullable<z.ZodString>;
541
+ } & {
542
+ createdAt: z.ZodString;
543
+ updatedAt: z.ZodString;
544
+ }, "strip", z.ZodTypeAny, {
545
+ type: "OWNER_CONTRIBUTION" | "LOAN" | "GRANT" | "INVESTOR" | "WORKING_CAPITAL" | "OTHER";
546
+ status: "received" | "pending" | "cancelled" | "partially_repaid" | "fully_repaid";
547
+ source: string | null;
548
+ createdAt: string;
549
+ updatedAt: string;
550
+ description: string | null;
551
+ currency: "NGN" | "USD";
552
+ notes: string | null;
553
+ amount: number;
554
+ reference: string | null;
555
+ transactionDate: string;
556
+ isRepayable: boolean;
557
+ repaymentTerms: string | null;
558
+ interestRate: number | null;
559
+ repaymentDueDate: string | null;
560
+ amountRepaid: number;
561
+ outstandingBalance?: number | undefined;
562
+ }, {
563
+ type: "OWNER_CONTRIBUTION" | "LOAN" | "GRANT" | "INVESTOR" | "WORKING_CAPITAL" | "OTHER";
564
+ status: "received" | "pending" | "cancelled" | "partially_repaid" | "fully_repaid";
565
+ source: string | null;
566
+ createdAt: string;
567
+ updatedAt: string;
568
+ description: string | null;
569
+ currency: "NGN" | "USD";
570
+ notes: string | null;
571
+ amount: number;
572
+ reference: string | null;
573
+ transactionDate: string;
574
+ isRepayable: boolean;
575
+ repaymentTerms: string | null;
576
+ interestRate: number | null;
577
+ repaymentDueDate: string | null;
578
+ amountRepaid: number;
579
+ outstandingBalance?: number | undefined;
580
+ }>;
581
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
582
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
583
+ } & {
584
+ relationships: z.ZodOptional<z.ZodObject<{
585
+ farm: z.ZodOptional<z.ZodObject<{
586
+ links: z.ZodObject<{
587
+ related: z.ZodString;
588
+ }, "strip", z.ZodTypeAny, {
589
+ related: string;
590
+ }, {
591
+ related: string;
592
+ }>;
593
+ }, "strip", z.ZodTypeAny, {
594
+ links: {
595
+ related: string;
596
+ };
597
+ }, {
598
+ links: {
599
+ related: string;
600
+ };
601
+ }>>;
602
+ }, "strip", z.ZodTypeAny, {
603
+ farm?: {
604
+ links: {
605
+ related: string;
606
+ };
607
+ } | undefined;
608
+ }, {
609
+ farm?: {
610
+ links: {
611
+ related: string;
612
+ };
613
+ } | undefined;
614
+ }>>;
615
+ }, "strip", z.ZodTypeAny, {
616
+ type: string;
617
+ id: string;
618
+ attributes: {
619
+ type: "OWNER_CONTRIBUTION" | "LOAN" | "GRANT" | "INVESTOR" | "WORKING_CAPITAL" | "OTHER";
620
+ status: "received" | "pending" | "cancelled" | "partially_repaid" | "fully_repaid";
621
+ source: string | null;
622
+ createdAt: string;
623
+ updatedAt: string;
624
+ description: string | null;
625
+ currency: "NGN" | "USD";
626
+ notes: string | null;
627
+ amount: number;
628
+ reference: string | null;
629
+ transactionDate: string;
630
+ isRepayable: boolean;
631
+ repaymentTerms: string | null;
632
+ interestRate: number | null;
633
+ repaymentDueDate: string | null;
634
+ amountRepaid: number;
635
+ outstandingBalance?: number | undefined;
636
+ };
637
+ relationships?: {
638
+ farm?: {
639
+ links: {
640
+ related: string;
641
+ };
642
+ } | undefined;
643
+ } | undefined;
644
+ links?: Record<string, string> | undefined;
645
+ meta?: Record<string, unknown> | undefined;
646
+ }, {
647
+ type: string;
648
+ id: string;
649
+ attributes: {
650
+ type: "OWNER_CONTRIBUTION" | "LOAN" | "GRANT" | "INVESTOR" | "WORKING_CAPITAL" | "OTHER";
651
+ status: "received" | "pending" | "cancelled" | "partially_repaid" | "fully_repaid";
652
+ source: string | null;
653
+ createdAt: string;
654
+ updatedAt: string;
655
+ description: string | null;
656
+ currency: "NGN" | "USD";
657
+ notes: string | null;
658
+ amount: number;
659
+ reference: string | null;
660
+ transactionDate: string;
661
+ isRepayable: boolean;
662
+ repaymentTerms: string | null;
663
+ interestRate: number | null;
664
+ repaymentDueDate: string | null;
665
+ amountRepaid: number;
666
+ outstandingBalance?: number | undefined;
667
+ };
668
+ relationships?: {
669
+ farm?: {
670
+ links: {
671
+ related: string;
672
+ };
673
+ } | undefined;
674
+ } | undefined;
675
+ links?: Record<string, string> | undefined;
676
+ meta?: Record<string, unknown> | undefined;
677
+ }>;
678
+ export declare const capitalTransactionResponseSchema: z.ZodObject<{
679
+ data: z.ZodObject<{
680
+ type: z.ZodLiteral<string>;
681
+ id: z.ZodString;
682
+ attributes: z.ZodObject<{
683
+ type: z.ZodEnum<["OWNER_CONTRIBUTION", "LOAN", "GRANT", "INVESTOR", "WORKING_CAPITAL", "OTHER"]>;
684
+ amount: z.ZodNumber;
685
+ currency: z.ZodEnum<["NGN", "USD"]>;
686
+ description: z.ZodNullable<z.ZodString>;
687
+ source: z.ZodNullable<z.ZodString>;
688
+ reference: z.ZodNullable<z.ZodString>;
689
+ transactionDate: z.ZodString;
690
+ isRepayable: z.ZodBoolean;
691
+ repaymentTerms: z.ZodNullable<z.ZodString>;
692
+ interestRate: z.ZodNullable<z.ZodNumber>;
693
+ repaymentDueDate: z.ZodNullable<z.ZodString>;
694
+ status: z.ZodEnum<["received", "pending", "partially_repaid", "fully_repaid", "cancelled"]>;
695
+ amountRepaid: z.ZodNumber;
696
+ outstandingBalance: z.ZodOptional<z.ZodNumber>;
697
+ notes: z.ZodNullable<z.ZodString>;
698
+ } & {
699
+ createdAt: z.ZodString;
700
+ updatedAt: z.ZodString;
701
+ }, "strip", z.ZodTypeAny, {
702
+ type: "OWNER_CONTRIBUTION" | "LOAN" | "GRANT" | "INVESTOR" | "WORKING_CAPITAL" | "OTHER";
703
+ status: "received" | "pending" | "cancelled" | "partially_repaid" | "fully_repaid";
704
+ source: string | null;
705
+ createdAt: string;
706
+ updatedAt: string;
707
+ description: string | null;
708
+ currency: "NGN" | "USD";
709
+ notes: string | null;
710
+ amount: number;
711
+ reference: string | null;
712
+ transactionDate: string;
713
+ isRepayable: boolean;
714
+ repaymentTerms: string | null;
715
+ interestRate: number | null;
716
+ repaymentDueDate: string | null;
717
+ amountRepaid: number;
718
+ outstandingBalance?: number | undefined;
719
+ }, {
720
+ type: "OWNER_CONTRIBUTION" | "LOAN" | "GRANT" | "INVESTOR" | "WORKING_CAPITAL" | "OTHER";
721
+ status: "received" | "pending" | "cancelled" | "partially_repaid" | "fully_repaid";
722
+ source: string | null;
723
+ createdAt: string;
724
+ updatedAt: string;
725
+ description: string | null;
726
+ currency: "NGN" | "USD";
727
+ notes: string | null;
728
+ amount: number;
729
+ reference: string | null;
730
+ transactionDate: string;
731
+ isRepayable: boolean;
732
+ repaymentTerms: string | null;
733
+ interestRate: number | null;
734
+ repaymentDueDate: string | null;
735
+ amountRepaid: number;
736
+ outstandingBalance?: number | undefined;
737
+ }>;
738
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
739
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
740
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
741
+ }, "strip", z.ZodTypeAny, {
742
+ type: string;
743
+ id: string;
744
+ attributes: {
745
+ type: "OWNER_CONTRIBUTION" | "LOAN" | "GRANT" | "INVESTOR" | "WORKING_CAPITAL" | "OTHER";
746
+ status: "received" | "pending" | "cancelled" | "partially_repaid" | "fully_repaid";
747
+ source: string | null;
748
+ createdAt: string;
749
+ updatedAt: string;
750
+ description: string | null;
751
+ currency: "NGN" | "USD";
752
+ notes: string | null;
753
+ amount: number;
754
+ reference: string | null;
755
+ transactionDate: string;
756
+ isRepayable: boolean;
757
+ repaymentTerms: string | null;
758
+ interestRate: number | null;
759
+ repaymentDueDate: string | null;
760
+ amountRepaid: number;
761
+ outstandingBalance?: number | undefined;
762
+ };
763
+ relationships?: Record<string, unknown> | undefined;
764
+ links?: Record<string, string> | undefined;
765
+ meta?: Record<string, unknown> | undefined;
766
+ }, {
767
+ type: string;
768
+ id: string;
769
+ attributes: {
770
+ type: "OWNER_CONTRIBUTION" | "LOAN" | "GRANT" | "INVESTOR" | "WORKING_CAPITAL" | "OTHER";
771
+ status: "received" | "pending" | "cancelled" | "partially_repaid" | "fully_repaid";
772
+ source: string | null;
773
+ createdAt: string;
774
+ updatedAt: string;
775
+ description: string | null;
776
+ currency: "NGN" | "USD";
777
+ notes: string | null;
778
+ amount: number;
779
+ reference: string | null;
780
+ transactionDate: string;
781
+ isRepayable: boolean;
782
+ repaymentTerms: string | null;
783
+ interestRate: number | null;
784
+ repaymentDueDate: string | null;
785
+ amountRepaid: number;
786
+ outstandingBalance?: number | undefined;
787
+ };
788
+ relationships?: Record<string, unknown> | undefined;
789
+ links?: Record<string, string> | undefined;
790
+ meta?: Record<string, unknown> | undefined;
791
+ }>;
792
+ included: z.ZodOptional<z.ZodArray<z.ZodObject<{
793
+ type: z.ZodString;
794
+ id: z.ZodString;
795
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
796
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
797
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
798
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
799
+ }, "strip", z.ZodTypeAny, {
800
+ type: string;
801
+ id: string;
802
+ attributes?: Record<string, unknown> | undefined;
803
+ relationships?: Record<string, unknown> | undefined;
804
+ links?: Record<string, string> | undefined;
805
+ meta?: Record<string, unknown> | undefined;
806
+ }, {
807
+ type: string;
808
+ id: string;
809
+ attributes?: Record<string, unknown> | undefined;
810
+ relationships?: Record<string, unknown> | undefined;
811
+ links?: Record<string, string> | undefined;
812
+ meta?: Record<string, unknown> | undefined;
813
+ }>, "many">>;
814
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
815
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
816
+ }, "strip", z.ZodTypeAny, {
817
+ data: {
818
+ type: string;
819
+ id: string;
820
+ attributes: {
821
+ type: "OWNER_CONTRIBUTION" | "LOAN" | "GRANT" | "INVESTOR" | "WORKING_CAPITAL" | "OTHER";
822
+ status: "received" | "pending" | "cancelled" | "partially_repaid" | "fully_repaid";
823
+ source: string | null;
824
+ createdAt: string;
825
+ updatedAt: string;
826
+ description: string | null;
827
+ currency: "NGN" | "USD";
828
+ notes: string | null;
829
+ amount: number;
830
+ reference: string | null;
831
+ transactionDate: string;
832
+ isRepayable: boolean;
833
+ repaymentTerms: string | null;
834
+ interestRate: number | null;
835
+ repaymentDueDate: string | null;
836
+ amountRepaid: number;
837
+ outstandingBalance?: number | undefined;
838
+ };
839
+ relationships?: Record<string, unknown> | undefined;
840
+ links?: Record<string, string> | undefined;
841
+ meta?: Record<string, unknown> | undefined;
842
+ };
843
+ links?: Record<string, string> | undefined;
844
+ meta?: Record<string, unknown> | undefined;
845
+ included?: {
846
+ type: string;
847
+ id: string;
848
+ attributes?: Record<string, unknown> | undefined;
849
+ relationships?: Record<string, unknown> | undefined;
850
+ links?: Record<string, string> | undefined;
851
+ meta?: Record<string, unknown> | undefined;
852
+ }[] | undefined;
853
+ }, {
854
+ data: {
855
+ type: string;
856
+ id: string;
857
+ attributes: {
858
+ type: "OWNER_CONTRIBUTION" | "LOAN" | "GRANT" | "INVESTOR" | "WORKING_CAPITAL" | "OTHER";
859
+ status: "received" | "pending" | "cancelled" | "partially_repaid" | "fully_repaid";
860
+ source: string | null;
861
+ createdAt: string;
862
+ updatedAt: string;
863
+ description: string | null;
864
+ currency: "NGN" | "USD";
865
+ notes: string | null;
866
+ amount: number;
867
+ reference: string | null;
868
+ transactionDate: string;
869
+ isRepayable: boolean;
870
+ repaymentTerms: string | null;
871
+ interestRate: number | null;
872
+ repaymentDueDate: string | null;
873
+ amountRepaid: number;
874
+ outstandingBalance?: number | undefined;
875
+ };
876
+ relationships?: Record<string, unknown> | undefined;
877
+ links?: Record<string, string> | undefined;
878
+ meta?: Record<string, unknown> | undefined;
879
+ };
880
+ links?: Record<string, string> | undefined;
881
+ meta?: Record<string, unknown> | undefined;
882
+ included?: {
883
+ type: string;
884
+ id: string;
885
+ attributes?: Record<string, unknown> | undefined;
886
+ relationships?: Record<string, unknown> | undefined;
887
+ links?: Record<string, string> | undefined;
888
+ meta?: Record<string, unknown> | undefined;
889
+ }[] | undefined;
890
+ }>;
891
+ export declare const capitalTransactionDetailResponseSchema: z.ZodObject<{
892
+ data: z.ZodObject<{
893
+ type: z.ZodLiteral<string>;
894
+ id: z.ZodString;
895
+ attributes: z.ZodObject<{
896
+ type: z.ZodEnum<["OWNER_CONTRIBUTION", "LOAN", "GRANT", "INVESTOR", "WORKING_CAPITAL", "OTHER"]>;
897
+ amount: z.ZodNumber;
898
+ currency: z.ZodEnum<["NGN", "USD"]>;
899
+ description: z.ZodNullable<z.ZodString>;
900
+ source: z.ZodNullable<z.ZodString>;
901
+ reference: z.ZodNullable<z.ZodString>;
902
+ transactionDate: z.ZodString;
903
+ isRepayable: z.ZodBoolean;
904
+ repaymentTerms: z.ZodNullable<z.ZodString>;
905
+ interestRate: z.ZodNullable<z.ZodNumber>;
906
+ repaymentDueDate: z.ZodNullable<z.ZodString>;
907
+ status: z.ZodEnum<["received", "pending", "partially_repaid", "fully_repaid", "cancelled"]>;
908
+ amountRepaid: z.ZodNumber;
909
+ outstandingBalance: z.ZodOptional<z.ZodNumber>;
910
+ notes: z.ZodNullable<z.ZodString>;
911
+ } & {
912
+ createdAt: z.ZodString;
913
+ updatedAt: z.ZodString;
914
+ }, "strip", z.ZodTypeAny, {
915
+ type: "OWNER_CONTRIBUTION" | "LOAN" | "GRANT" | "INVESTOR" | "WORKING_CAPITAL" | "OTHER";
916
+ status: "received" | "pending" | "cancelled" | "partially_repaid" | "fully_repaid";
917
+ source: string | null;
918
+ createdAt: string;
919
+ updatedAt: string;
920
+ description: string | null;
921
+ currency: "NGN" | "USD";
922
+ notes: string | null;
923
+ amount: number;
924
+ reference: string | null;
925
+ transactionDate: string;
926
+ isRepayable: boolean;
927
+ repaymentTerms: string | null;
928
+ interestRate: number | null;
929
+ repaymentDueDate: string | null;
930
+ amountRepaid: number;
931
+ outstandingBalance?: number | undefined;
932
+ }, {
933
+ type: "OWNER_CONTRIBUTION" | "LOAN" | "GRANT" | "INVESTOR" | "WORKING_CAPITAL" | "OTHER";
934
+ status: "received" | "pending" | "cancelled" | "partially_repaid" | "fully_repaid";
935
+ source: string | null;
936
+ createdAt: string;
937
+ updatedAt: string;
938
+ description: string | null;
939
+ currency: "NGN" | "USD";
940
+ notes: string | null;
941
+ amount: number;
942
+ reference: string | null;
943
+ transactionDate: string;
944
+ isRepayable: boolean;
945
+ repaymentTerms: string | null;
946
+ interestRate: number | null;
947
+ repaymentDueDate: string | null;
948
+ amountRepaid: number;
949
+ outstandingBalance?: number | undefined;
950
+ }>;
951
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
952
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
953
+ } & {
954
+ relationships: z.ZodOptional<z.ZodObject<{
955
+ farm: z.ZodOptional<z.ZodObject<{
956
+ links: z.ZodObject<{
957
+ related: z.ZodString;
958
+ }, "strip", z.ZodTypeAny, {
959
+ related: string;
960
+ }, {
961
+ related: string;
962
+ }>;
963
+ }, "strip", z.ZodTypeAny, {
964
+ links: {
965
+ related: string;
966
+ };
967
+ }, {
968
+ links: {
969
+ related: string;
970
+ };
971
+ }>>;
972
+ }, "strip", z.ZodTypeAny, {
973
+ farm?: {
974
+ links: {
975
+ related: string;
976
+ };
977
+ } | undefined;
978
+ }, {
979
+ farm?: {
980
+ links: {
981
+ related: string;
982
+ };
983
+ } | undefined;
984
+ }>>;
985
+ }, "strip", z.ZodTypeAny, {
986
+ type: string;
987
+ id: string;
988
+ attributes: {
989
+ type: "OWNER_CONTRIBUTION" | "LOAN" | "GRANT" | "INVESTOR" | "WORKING_CAPITAL" | "OTHER";
990
+ status: "received" | "pending" | "cancelled" | "partially_repaid" | "fully_repaid";
991
+ source: string | null;
992
+ createdAt: string;
993
+ updatedAt: string;
994
+ description: string | null;
995
+ currency: "NGN" | "USD";
996
+ notes: string | null;
997
+ amount: number;
998
+ reference: string | null;
999
+ transactionDate: string;
1000
+ isRepayable: boolean;
1001
+ repaymentTerms: string | null;
1002
+ interestRate: number | null;
1003
+ repaymentDueDate: string | null;
1004
+ amountRepaid: number;
1005
+ outstandingBalance?: number | undefined;
1006
+ };
1007
+ relationships?: {
1008
+ farm?: {
1009
+ links: {
1010
+ related: string;
1011
+ };
1012
+ } | undefined;
1013
+ } | undefined;
1014
+ links?: Record<string, string> | undefined;
1015
+ meta?: Record<string, unknown> | undefined;
1016
+ }, {
1017
+ type: string;
1018
+ id: string;
1019
+ attributes: {
1020
+ type: "OWNER_CONTRIBUTION" | "LOAN" | "GRANT" | "INVESTOR" | "WORKING_CAPITAL" | "OTHER";
1021
+ status: "received" | "pending" | "cancelled" | "partially_repaid" | "fully_repaid";
1022
+ source: string | null;
1023
+ createdAt: string;
1024
+ updatedAt: string;
1025
+ description: string | null;
1026
+ currency: "NGN" | "USD";
1027
+ notes: string | null;
1028
+ amount: number;
1029
+ reference: string | null;
1030
+ transactionDate: string;
1031
+ isRepayable: boolean;
1032
+ repaymentTerms: string | null;
1033
+ interestRate: number | null;
1034
+ repaymentDueDate: string | null;
1035
+ amountRepaid: number;
1036
+ outstandingBalance?: number | undefined;
1037
+ };
1038
+ relationships?: {
1039
+ farm?: {
1040
+ links: {
1041
+ related: string;
1042
+ };
1043
+ } | undefined;
1044
+ } | undefined;
1045
+ links?: Record<string, string> | undefined;
1046
+ meta?: Record<string, unknown> | undefined;
1047
+ }>;
1048
+ included: z.ZodOptional<z.ZodArray<z.ZodObject<{
1049
+ type: z.ZodString;
1050
+ id: z.ZodString;
1051
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1052
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1053
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1054
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1055
+ }, "strip", z.ZodTypeAny, {
1056
+ type: string;
1057
+ id: string;
1058
+ attributes?: Record<string, unknown> | undefined;
1059
+ relationships?: Record<string, unknown> | undefined;
1060
+ links?: Record<string, string> | undefined;
1061
+ meta?: Record<string, unknown> | undefined;
1062
+ }, {
1063
+ type: string;
1064
+ id: string;
1065
+ attributes?: Record<string, unknown> | undefined;
1066
+ relationships?: Record<string, unknown> | undefined;
1067
+ links?: Record<string, string> | undefined;
1068
+ meta?: Record<string, unknown> | undefined;
1069
+ }>, "many">>;
1070
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1071
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1072
+ }, "strip", z.ZodTypeAny, {
1073
+ data: {
1074
+ type: string;
1075
+ id: string;
1076
+ attributes: {
1077
+ type: "OWNER_CONTRIBUTION" | "LOAN" | "GRANT" | "INVESTOR" | "WORKING_CAPITAL" | "OTHER";
1078
+ status: "received" | "pending" | "cancelled" | "partially_repaid" | "fully_repaid";
1079
+ source: string | null;
1080
+ createdAt: string;
1081
+ updatedAt: string;
1082
+ description: string | null;
1083
+ currency: "NGN" | "USD";
1084
+ notes: string | null;
1085
+ amount: number;
1086
+ reference: string | null;
1087
+ transactionDate: string;
1088
+ isRepayable: boolean;
1089
+ repaymentTerms: string | null;
1090
+ interestRate: number | null;
1091
+ repaymentDueDate: string | null;
1092
+ amountRepaid: number;
1093
+ outstandingBalance?: number | undefined;
1094
+ };
1095
+ relationships?: {
1096
+ farm?: {
1097
+ links: {
1098
+ related: string;
1099
+ };
1100
+ } | undefined;
1101
+ } | undefined;
1102
+ links?: Record<string, string> | undefined;
1103
+ meta?: Record<string, unknown> | undefined;
1104
+ };
1105
+ links?: Record<string, string> | undefined;
1106
+ meta?: Record<string, unknown> | undefined;
1107
+ included?: {
1108
+ type: string;
1109
+ id: string;
1110
+ attributes?: Record<string, unknown> | undefined;
1111
+ relationships?: Record<string, unknown> | undefined;
1112
+ links?: Record<string, string> | undefined;
1113
+ meta?: Record<string, unknown> | undefined;
1114
+ }[] | undefined;
1115
+ }, {
1116
+ data: {
1117
+ type: string;
1118
+ id: string;
1119
+ attributes: {
1120
+ type: "OWNER_CONTRIBUTION" | "LOAN" | "GRANT" | "INVESTOR" | "WORKING_CAPITAL" | "OTHER";
1121
+ status: "received" | "pending" | "cancelled" | "partially_repaid" | "fully_repaid";
1122
+ source: string | null;
1123
+ createdAt: string;
1124
+ updatedAt: string;
1125
+ description: string | null;
1126
+ currency: "NGN" | "USD";
1127
+ notes: string | null;
1128
+ amount: number;
1129
+ reference: string | null;
1130
+ transactionDate: string;
1131
+ isRepayable: boolean;
1132
+ repaymentTerms: string | null;
1133
+ interestRate: number | null;
1134
+ repaymentDueDate: string | null;
1135
+ amountRepaid: number;
1136
+ outstandingBalance?: number | undefined;
1137
+ };
1138
+ relationships?: {
1139
+ farm?: {
1140
+ links: {
1141
+ related: string;
1142
+ };
1143
+ } | undefined;
1144
+ } | undefined;
1145
+ links?: Record<string, string> | undefined;
1146
+ meta?: Record<string, unknown> | undefined;
1147
+ };
1148
+ links?: Record<string, string> | undefined;
1149
+ meta?: Record<string, unknown> | undefined;
1150
+ included?: {
1151
+ type: string;
1152
+ id: string;
1153
+ attributes?: Record<string, unknown> | undefined;
1154
+ relationships?: Record<string, unknown> | undefined;
1155
+ links?: Record<string, string> | undefined;
1156
+ meta?: Record<string, unknown> | undefined;
1157
+ }[] | undefined;
1158
+ }>;
1159
+ export declare const capitalTransactionListResponseSchema: z.ZodObject<{
1160
+ data: z.ZodArray<z.ZodObject<{
1161
+ type: z.ZodLiteral<string>;
1162
+ id: z.ZodString;
1163
+ attributes: z.ZodObject<{
1164
+ type: z.ZodEnum<["OWNER_CONTRIBUTION", "LOAN", "GRANT", "INVESTOR", "WORKING_CAPITAL", "OTHER"]>;
1165
+ amount: z.ZodNumber;
1166
+ currency: z.ZodEnum<["NGN", "USD"]>;
1167
+ description: z.ZodNullable<z.ZodString>;
1168
+ source: z.ZodNullable<z.ZodString>;
1169
+ reference: z.ZodNullable<z.ZodString>;
1170
+ transactionDate: z.ZodString;
1171
+ isRepayable: z.ZodBoolean;
1172
+ repaymentTerms: z.ZodNullable<z.ZodString>;
1173
+ interestRate: z.ZodNullable<z.ZodNumber>;
1174
+ repaymentDueDate: z.ZodNullable<z.ZodString>;
1175
+ status: z.ZodEnum<["received", "pending", "partially_repaid", "fully_repaid", "cancelled"]>;
1176
+ amountRepaid: z.ZodNumber;
1177
+ outstandingBalance: z.ZodOptional<z.ZodNumber>;
1178
+ notes: z.ZodNullable<z.ZodString>;
1179
+ } & {
1180
+ createdAt: z.ZodString;
1181
+ updatedAt: z.ZodString;
1182
+ }, "strip", z.ZodTypeAny, {
1183
+ type: "OWNER_CONTRIBUTION" | "LOAN" | "GRANT" | "INVESTOR" | "WORKING_CAPITAL" | "OTHER";
1184
+ status: "received" | "pending" | "cancelled" | "partially_repaid" | "fully_repaid";
1185
+ source: string | null;
1186
+ createdAt: string;
1187
+ updatedAt: string;
1188
+ description: string | null;
1189
+ currency: "NGN" | "USD";
1190
+ notes: string | null;
1191
+ amount: number;
1192
+ reference: string | null;
1193
+ transactionDate: string;
1194
+ isRepayable: boolean;
1195
+ repaymentTerms: string | null;
1196
+ interestRate: number | null;
1197
+ repaymentDueDate: string | null;
1198
+ amountRepaid: number;
1199
+ outstandingBalance?: number | undefined;
1200
+ }, {
1201
+ type: "OWNER_CONTRIBUTION" | "LOAN" | "GRANT" | "INVESTOR" | "WORKING_CAPITAL" | "OTHER";
1202
+ status: "received" | "pending" | "cancelled" | "partially_repaid" | "fully_repaid";
1203
+ source: string | null;
1204
+ createdAt: string;
1205
+ updatedAt: string;
1206
+ description: string | null;
1207
+ currency: "NGN" | "USD";
1208
+ notes: string | null;
1209
+ amount: number;
1210
+ reference: string | null;
1211
+ transactionDate: string;
1212
+ isRepayable: boolean;
1213
+ repaymentTerms: string | null;
1214
+ interestRate: number | null;
1215
+ repaymentDueDate: string | null;
1216
+ amountRepaid: number;
1217
+ outstandingBalance?: number | undefined;
1218
+ }>;
1219
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1220
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1221
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1222
+ }, "strip", z.ZodTypeAny, {
1223
+ type: string;
1224
+ id: string;
1225
+ attributes: {
1226
+ type: "OWNER_CONTRIBUTION" | "LOAN" | "GRANT" | "INVESTOR" | "WORKING_CAPITAL" | "OTHER";
1227
+ status: "received" | "pending" | "cancelled" | "partially_repaid" | "fully_repaid";
1228
+ source: string | null;
1229
+ createdAt: string;
1230
+ updatedAt: string;
1231
+ description: string | null;
1232
+ currency: "NGN" | "USD";
1233
+ notes: string | null;
1234
+ amount: number;
1235
+ reference: string | null;
1236
+ transactionDate: string;
1237
+ isRepayable: boolean;
1238
+ repaymentTerms: string | null;
1239
+ interestRate: number | null;
1240
+ repaymentDueDate: string | null;
1241
+ amountRepaid: number;
1242
+ outstandingBalance?: number | undefined;
1243
+ };
1244
+ relationships?: Record<string, unknown> | undefined;
1245
+ links?: Record<string, string> | undefined;
1246
+ meta?: Record<string, unknown> | undefined;
1247
+ }, {
1248
+ type: string;
1249
+ id: string;
1250
+ attributes: {
1251
+ type: "OWNER_CONTRIBUTION" | "LOAN" | "GRANT" | "INVESTOR" | "WORKING_CAPITAL" | "OTHER";
1252
+ status: "received" | "pending" | "cancelled" | "partially_repaid" | "fully_repaid";
1253
+ source: string | null;
1254
+ createdAt: string;
1255
+ updatedAt: string;
1256
+ description: string | null;
1257
+ currency: "NGN" | "USD";
1258
+ notes: string | null;
1259
+ amount: number;
1260
+ reference: string | null;
1261
+ transactionDate: string;
1262
+ isRepayable: boolean;
1263
+ repaymentTerms: string | null;
1264
+ interestRate: number | null;
1265
+ repaymentDueDate: string | null;
1266
+ amountRepaid: number;
1267
+ outstandingBalance?: number | undefined;
1268
+ };
1269
+ relationships?: Record<string, unknown> | undefined;
1270
+ links?: Record<string, string> | undefined;
1271
+ meta?: Record<string, unknown> | undefined;
1272
+ }>, "many">;
1273
+ included: z.ZodOptional<z.ZodArray<z.ZodObject<{
1274
+ type: z.ZodString;
1275
+ id: z.ZodString;
1276
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1277
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1278
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1279
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1280
+ }, "strip", z.ZodTypeAny, {
1281
+ type: string;
1282
+ id: string;
1283
+ attributes?: Record<string, unknown> | undefined;
1284
+ relationships?: Record<string, unknown> | undefined;
1285
+ links?: Record<string, string> | undefined;
1286
+ meta?: Record<string, unknown> | undefined;
1287
+ }, {
1288
+ type: string;
1289
+ id: string;
1290
+ attributes?: Record<string, unknown> | undefined;
1291
+ relationships?: Record<string, unknown> | undefined;
1292
+ links?: Record<string, string> | undefined;
1293
+ meta?: Record<string, unknown> | undefined;
1294
+ }>, "many">>;
1295
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1296
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1297
+ }, "strip", z.ZodTypeAny, {
1298
+ data: {
1299
+ type: string;
1300
+ id: string;
1301
+ attributes: {
1302
+ type: "OWNER_CONTRIBUTION" | "LOAN" | "GRANT" | "INVESTOR" | "WORKING_CAPITAL" | "OTHER";
1303
+ status: "received" | "pending" | "cancelled" | "partially_repaid" | "fully_repaid";
1304
+ source: string | null;
1305
+ createdAt: string;
1306
+ updatedAt: string;
1307
+ description: string | null;
1308
+ currency: "NGN" | "USD";
1309
+ notes: string | null;
1310
+ amount: number;
1311
+ reference: string | null;
1312
+ transactionDate: string;
1313
+ isRepayable: boolean;
1314
+ repaymentTerms: string | null;
1315
+ interestRate: number | null;
1316
+ repaymentDueDate: string | null;
1317
+ amountRepaid: number;
1318
+ outstandingBalance?: number | undefined;
1319
+ };
1320
+ relationships?: Record<string, unknown> | undefined;
1321
+ links?: Record<string, string> | undefined;
1322
+ meta?: Record<string, unknown> | undefined;
1323
+ }[];
1324
+ links?: Record<string, string> | undefined;
1325
+ meta?: Record<string, unknown> | undefined;
1326
+ included?: {
1327
+ type: string;
1328
+ id: string;
1329
+ attributes?: Record<string, unknown> | undefined;
1330
+ relationships?: Record<string, unknown> | undefined;
1331
+ links?: Record<string, string> | undefined;
1332
+ meta?: Record<string, unknown> | undefined;
1333
+ }[] | undefined;
1334
+ }, {
1335
+ data: {
1336
+ type: string;
1337
+ id: string;
1338
+ attributes: {
1339
+ type: "OWNER_CONTRIBUTION" | "LOAN" | "GRANT" | "INVESTOR" | "WORKING_CAPITAL" | "OTHER";
1340
+ status: "received" | "pending" | "cancelled" | "partially_repaid" | "fully_repaid";
1341
+ source: string | null;
1342
+ createdAt: string;
1343
+ updatedAt: string;
1344
+ description: string | null;
1345
+ currency: "NGN" | "USD";
1346
+ notes: string | null;
1347
+ amount: number;
1348
+ reference: string | null;
1349
+ transactionDate: string;
1350
+ isRepayable: boolean;
1351
+ repaymentTerms: string | null;
1352
+ interestRate: number | null;
1353
+ repaymentDueDate: string | null;
1354
+ amountRepaid: number;
1355
+ outstandingBalance?: number | undefined;
1356
+ };
1357
+ relationships?: Record<string, unknown> | undefined;
1358
+ links?: Record<string, string> | undefined;
1359
+ meta?: Record<string, unknown> | undefined;
1360
+ }[];
1361
+ links?: Record<string, string> | undefined;
1362
+ meta?: Record<string, unknown> | undefined;
1363
+ included?: {
1364
+ type: string;
1365
+ id: string;
1366
+ attributes?: Record<string, unknown> | undefined;
1367
+ relationships?: Record<string, unknown> | undefined;
1368
+ links?: Record<string, string> | undefined;
1369
+ meta?: Record<string, unknown> | undefined;
1370
+ }[] | undefined;
1371
+ }>;
1372
+ export declare const capitalSummaryAttributesSchema: z.ZodObject<{
1373
+ totalCapitalReceived: z.ZodNumber;
1374
+ totalRepayableAmount: z.ZodNumber;
1375
+ totalAmountRepaid: z.ZodNumber;
1376
+ outstandingLiabilities: z.ZodNumber;
1377
+ byType: z.ZodRecord<z.ZodEnum<["OWNER_CONTRIBUTION", "LOAN", "GRANT", "INVESTOR", "WORKING_CAPITAL", "OTHER"]>, z.ZodObject<{
1378
+ count: z.ZodNumber;
1379
+ totalAmount: z.ZodNumber;
1380
+ }, "strip", z.ZodTypeAny, {
1381
+ count: number;
1382
+ totalAmount: number;
1383
+ }, {
1384
+ count: number;
1385
+ totalAmount: number;
1386
+ }>>;
1387
+ byStatus: z.ZodRecord<z.ZodEnum<["received", "pending", "partially_repaid", "fully_repaid", "cancelled"]>, z.ZodObject<{
1388
+ count: z.ZodNumber;
1389
+ totalAmount: z.ZodNumber;
1390
+ }, "strip", z.ZodTypeAny, {
1391
+ count: number;
1392
+ totalAmount: number;
1393
+ }, {
1394
+ count: number;
1395
+ totalAmount: number;
1396
+ }>>;
1397
+ }, "strip", z.ZodTypeAny, {
1398
+ byType: Partial<Record<"OWNER_CONTRIBUTION" | "LOAN" | "GRANT" | "INVESTOR" | "WORKING_CAPITAL" | "OTHER", {
1399
+ count: number;
1400
+ totalAmount: number;
1401
+ }>>;
1402
+ totalCapitalReceived: number;
1403
+ totalRepayableAmount: number;
1404
+ totalAmountRepaid: number;
1405
+ outstandingLiabilities: number;
1406
+ byStatus: Partial<Record<"received" | "pending" | "cancelled" | "partially_repaid" | "fully_repaid", {
1407
+ count: number;
1408
+ totalAmount: number;
1409
+ }>>;
1410
+ }, {
1411
+ byType: Partial<Record<"OWNER_CONTRIBUTION" | "LOAN" | "GRANT" | "INVESTOR" | "WORKING_CAPITAL" | "OTHER", {
1412
+ count: number;
1413
+ totalAmount: number;
1414
+ }>>;
1415
+ totalCapitalReceived: number;
1416
+ totalRepayableAmount: number;
1417
+ totalAmountRepaid: number;
1418
+ outstandingLiabilities: number;
1419
+ byStatus: Partial<Record<"received" | "pending" | "cancelled" | "partially_repaid" | "fully_repaid", {
1420
+ count: number;
1421
+ totalAmount: number;
1422
+ }>>;
1423
+ }>;
1424
+ export declare const capitalSummaryResourceSchema: z.ZodObject<{
1425
+ type: z.ZodLiteral<string>;
1426
+ id: z.ZodString;
1427
+ attributes: z.ZodObject<{
1428
+ totalCapitalReceived: z.ZodNumber;
1429
+ totalRepayableAmount: z.ZodNumber;
1430
+ totalAmountRepaid: z.ZodNumber;
1431
+ outstandingLiabilities: z.ZodNumber;
1432
+ byType: z.ZodRecord<z.ZodEnum<["OWNER_CONTRIBUTION", "LOAN", "GRANT", "INVESTOR", "WORKING_CAPITAL", "OTHER"]>, z.ZodObject<{
1433
+ count: z.ZodNumber;
1434
+ totalAmount: z.ZodNumber;
1435
+ }, "strip", z.ZodTypeAny, {
1436
+ count: number;
1437
+ totalAmount: number;
1438
+ }, {
1439
+ count: number;
1440
+ totalAmount: number;
1441
+ }>>;
1442
+ byStatus: z.ZodRecord<z.ZodEnum<["received", "pending", "partially_repaid", "fully_repaid", "cancelled"]>, z.ZodObject<{
1443
+ count: z.ZodNumber;
1444
+ totalAmount: z.ZodNumber;
1445
+ }, "strip", z.ZodTypeAny, {
1446
+ count: number;
1447
+ totalAmount: number;
1448
+ }, {
1449
+ count: number;
1450
+ totalAmount: number;
1451
+ }>>;
1452
+ }, "strip", z.ZodTypeAny, {
1453
+ byType: Partial<Record<"OWNER_CONTRIBUTION" | "LOAN" | "GRANT" | "INVESTOR" | "WORKING_CAPITAL" | "OTHER", {
1454
+ count: number;
1455
+ totalAmount: number;
1456
+ }>>;
1457
+ totalCapitalReceived: number;
1458
+ totalRepayableAmount: number;
1459
+ totalAmountRepaid: number;
1460
+ outstandingLiabilities: number;
1461
+ byStatus: Partial<Record<"received" | "pending" | "cancelled" | "partially_repaid" | "fully_repaid", {
1462
+ count: number;
1463
+ totalAmount: number;
1464
+ }>>;
1465
+ }, {
1466
+ byType: Partial<Record<"OWNER_CONTRIBUTION" | "LOAN" | "GRANT" | "INVESTOR" | "WORKING_CAPITAL" | "OTHER", {
1467
+ count: number;
1468
+ totalAmount: number;
1469
+ }>>;
1470
+ totalCapitalReceived: number;
1471
+ totalRepayableAmount: number;
1472
+ totalAmountRepaid: number;
1473
+ outstandingLiabilities: number;
1474
+ byStatus: Partial<Record<"received" | "pending" | "cancelled" | "partially_repaid" | "fully_repaid", {
1475
+ count: number;
1476
+ totalAmount: number;
1477
+ }>>;
1478
+ }>;
1479
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1480
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1481
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1482
+ }, "strip", z.ZodTypeAny, {
1483
+ type: string;
1484
+ id: string;
1485
+ attributes: {
1486
+ byType: Partial<Record<"OWNER_CONTRIBUTION" | "LOAN" | "GRANT" | "INVESTOR" | "WORKING_CAPITAL" | "OTHER", {
1487
+ count: number;
1488
+ totalAmount: number;
1489
+ }>>;
1490
+ totalCapitalReceived: number;
1491
+ totalRepayableAmount: number;
1492
+ totalAmountRepaid: number;
1493
+ outstandingLiabilities: number;
1494
+ byStatus: Partial<Record<"received" | "pending" | "cancelled" | "partially_repaid" | "fully_repaid", {
1495
+ count: number;
1496
+ totalAmount: number;
1497
+ }>>;
1498
+ };
1499
+ relationships?: Record<string, unknown> | undefined;
1500
+ links?: Record<string, string> | undefined;
1501
+ meta?: Record<string, unknown> | undefined;
1502
+ }, {
1503
+ type: string;
1504
+ id: string;
1505
+ attributes: {
1506
+ byType: Partial<Record<"OWNER_CONTRIBUTION" | "LOAN" | "GRANT" | "INVESTOR" | "WORKING_CAPITAL" | "OTHER", {
1507
+ count: number;
1508
+ totalAmount: number;
1509
+ }>>;
1510
+ totalCapitalReceived: number;
1511
+ totalRepayableAmount: number;
1512
+ totalAmountRepaid: number;
1513
+ outstandingLiabilities: number;
1514
+ byStatus: Partial<Record<"received" | "pending" | "cancelled" | "partially_repaid" | "fully_repaid", {
1515
+ count: number;
1516
+ totalAmount: number;
1517
+ }>>;
1518
+ };
1519
+ relationships?: Record<string, unknown> | undefined;
1520
+ links?: Record<string, string> | undefined;
1521
+ meta?: Record<string, unknown> | undefined;
1522
+ }>;
1523
+ export declare const capitalSummaryResponseSchema: z.ZodObject<{
1524
+ data: z.ZodObject<{
1525
+ type: z.ZodLiteral<string>;
1526
+ id: z.ZodString;
1527
+ attributes: z.ZodObject<{
1528
+ totalCapitalReceived: z.ZodNumber;
1529
+ totalRepayableAmount: z.ZodNumber;
1530
+ totalAmountRepaid: z.ZodNumber;
1531
+ outstandingLiabilities: z.ZodNumber;
1532
+ byType: z.ZodRecord<z.ZodEnum<["OWNER_CONTRIBUTION", "LOAN", "GRANT", "INVESTOR", "WORKING_CAPITAL", "OTHER"]>, z.ZodObject<{
1533
+ count: z.ZodNumber;
1534
+ totalAmount: z.ZodNumber;
1535
+ }, "strip", z.ZodTypeAny, {
1536
+ count: number;
1537
+ totalAmount: number;
1538
+ }, {
1539
+ count: number;
1540
+ totalAmount: number;
1541
+ }>>;
1542
+ byStatus: z.ZodRecord<z.ZodEnum<["received", "pending", "partially_repaid", "fully_repaid", "cancelled"]>, z.ZodObject<{
1543
+ count: z.ZodNumber;
1544
+ totalAmount: z.ZodNumber;
1545
+ }, "strip", z.ZodTypeAny, {
1546
+ count: number;
1547
+ totalAmount: number;
1548
+ }, {
1549
+ count: number;
1550
+ totalAmount: number;
1551
+ }>>;
1552
+ }, "strip", z.ZodTypeAny, {
1553
+ byType: Partial<Record<"OWNER_CONTRIBUTION" | "LOAN" | "GRANT" | "INVESTOR" | "WORKING_CAPITAL" | "OTHER", {
1554
+ count: number;
1555
+ totalAmount: number;
1556
+ }>>;
1557
+ totalCapitalReceived: number;
1558
+ totalRepayableAmount: number;
1559
+ totalAmountRepaid: number;
1560
+ outstandingLiabilities: number;
1561
+ byStatus: Partial<Record<"received" | "pending" | "cancelled" | "partially_repaid" | "fully_repaid", {
1562
+ count: number;
1563
+ totalAmount: number;
1564
+ }>>;
1565
+ }, {
1566
+ byType: Partial<Record<"OWNER_CONTRIBUTION" | "LOAN" | "GRANT" | "INVESTOR" | "WORKING_CAPITAL" | "OTHER", {
1567
+ count: number;
1568
+ totalAmount: number;
1569
+ }>>;
1570
+ totalCapitalReceived: number;
1571
+ totalRepayableAmount: number;
1572
+ totalAmountRepaid: number;
1573
+ outstandingLiabilities: number;
1574
+ byStatus: Partial<Record<"received" | "pending" | "cancelled" | "partially_repaid" | "fully_repaid", {
1575
+ count: number;
1576
+ totalAmount: number;
1577
+ }>>;
1578
+ }>;
1579
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1580
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1581
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1582
+ }, "strip", z.ZodTypeAny, {
1583
+ type: string;
1584
+ id: string;
1585
+ attributes: {
1586
+ byType: Partial<Record<"OWNER_CONTRIBUTION" | "LOAN" | "GRANT" | "INVESTOR" | "WORKING_CAPITAL" | "OTHER", {
1587
+ count: number;
1588
+ totalAmount: number;
1589
+ }>>;
1590
+ totalCapitalReceived: number;
1591
+ totalRepayableAmount: number;
1592
+ totalAmountRepaid: number;
1593
+ outstandingLiabilities: number;
1594
+ byStatus: Partial<Record<"received" | "pending" | "cancelled" | "partially_repaid" | "fully_repaid", {
1595
+ count: number;
1596
+ totalAmount: number;
1597
+ }>>;
1598
+ };
1599
+ relationships?: Record<string, unknown> | undefined;
1600
+ links?: Record<string, string> | undefined;
1601
+ meta?: Record<string, unknown> | undefined;
1602
+ }, {
1603
+ type: string;
1604
+ id: string;
1605
+ attributes: {
1606
+ byType: Partial<Record<"OWNER_CONTRIBUTION" | "LOAN" | "GRANT" | "INVESTOR" | "WORKING_CAPITAL" | "OTHER", {
1607
+ count: number;
1608
+ totalAmount: number;
1609
+ }>>;
1610
+ totalCapitalReceived: number;
1611
+ totalRepayableAmount: number;
1612
+ totalAmountRepaid: number;
1613
+ outstandingLiabilities: number;
1614
+ byStatus: Partial<Record<"received" | "pending" | "cancelled" | "partially_repaid" | "fully_repaid", {
1615
+ count: number;
1616
+ totalAmount: number;
1617
+ }>>;
1618
+ };
1619
+ relationships?: Record<string, unknown> | undefined;
1620
+ links?: Record<string, string> | undefined;
1621
+ meta?: Record<string, unknown> | undefined;
1622
+ }>;
1623
+ included: z.ZodOptional<z.ZodArray<z.ZodObject<{
1624
+ type: z.ZodString;
1625
+ id: z.ZodString;
1626
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1627
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1628
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1629
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1630
+ }, "strip", z.ZodTypeAny, {
1631
+ type: string;
1632
+ id: string;
1633
+ attributes?: Record<string, unknown> | undefined;
1634
+ relationships?: Record<string, unknown> | undefined;
1635
+ links?: Record<string, string> | undefined;
1636
+ meta?: Record<string, unknown> | undefined;
1637
+ }, {
1638
+ type: string;
1639
+ id: string;
1640
+ attributes?: Record<string, unknown> | undefined;
1641
+ relationships?: Record<string, unknown> | undefined;
1642
+ links?: Record<string, string> | undefined;
1643
+ meta?: Record<string, unknown> | undefined;
1644
+ }>, "many">>;
1645
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1646
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1647
+ }, "strip", z.ZodTypeAny, {
1648
+ data: {
1649
+ type: string;
1650
+ id: string;
1651
+ attributes: {
1652
+ byType: Partial<Record<"OWNER_CONTRIBUTION" | "LOAN" | "GRANT" | "INVESTOR" | "WORKING_CAPITAL" | "OTHER", {
1653
+ count: number;
1654
+ totalAmount: number;
1655
+ }>>;
1656
+ totalCapitalReceived: number;
1657
+ totalRepayableAmount: number;
1658
+ totalAmountRepaid: number;
1659
+ outstandingLiabilities: number;
1660
+ byStatus: Partial<Record<"received" | "pending" | "cancelled" | "partially_repaid" | "fully_repaid", {
1661
+ count: number;
1662
+ totalAmount: number;
1663
+ }>>;
1664
+ };
1665
+ relationships?: Record<string, unknown> | undefined;
1666
+ links?: Record<string, string> | undefined;
1667
+ meta?: Record<string, unknown> | undefined;
1668
+ };
1669
+ links?: Record<string, string> | undefined;
1670
+ meta?: Record<string, unknown> | undefined;
1671
+ included?: {
1672
+ type: string;
1673
+ id: string;
1674
+ attributes?: Record<string, unknown> | undefined;
1675
+ relationships?: Record<string, unknown> | undefined;
1676
+ links?: Record<string, string> | undefined;
1677
+ meta?: Record<string, unknown> | undefined;
1678
+ }[] | undefined;
1679
+ }, {
1680
+ data: {
1681
+ type: string;
1682
+ id: string;
1683
+ attributes: {
1684
+ byType: Partial<Record<"OWNER_CONTRIBUTION" | "LOAN" | "GRANT" | "INVESTOR" | "WORKING_CAPITAL" | "OTHER", {
1685
+ count: number;
1686
+ totalAmount: number;
1687
+ }>>;
1688
+ totalCapitalReceived: number;
1689
+ totalRepayableAmount: number;
1690
+ totalAmountRepaid: number;
1691
+ outstandingLiabilities: number;
1692
+ byStatus: Partial<Record<"received" | "pending" | "cancelled" | "partially_repaid" | "fully_repaid", {
1693
+ count: number;
1694
+ totalAmount: number;
1695
+ }>>;
1696
+ };
1697
+ relationships?: Record<string, unknown> | undefined;
1698
+ links?: Record<string, string> | undefined;
1699
+ meta?: Record<string, unknown> | undefined;
1700
+ };
1701
+ links?: Record<string, string> | undefined;
1702
+ meta?: Record<string, unknown> | undefined;
1703
+ included?: {
1704
+ type: string;
1705
+ id: string;
1706
+ attributes?: Record<string, unknown> | undefined;
1707
+ relationships?: Record<string, unknown> | undefined;
1708
+ links?: Record<string, string> | undefined;
1709
+ meta?: Record<string, unknown> | undefined;
1710
+ }[] | undefined;
1711
+ }>;
1712
+ export type CapitalType = z.infer<typeof capitalTypeSchema>;
1713
+ export type CapitalStatus = z.infer<typeof capitalStatusSchema>;
1714
+ export type CapitalCurrency = z.infer<typeof capitalCurrencySchema>;
1715
+ export type CreateCapitalTransactionAttributes = z.infer<typeof createCapitalTransactionAttributesSchema>;
1716
+ export type UpdateCapitalTransactionAttributes = z.infer<typeof updateCapitalTransactionAttributesSchema>;
1717
+ export type CapitalRepaymentAttributes = z.infer<typeof capitalRepaymentAttributesSchema>;
1718
+ export type CreateCapitalTransactionInput = z.infer<typeof createCapitalTransactionSchema>;
1719
+ export type UpdateCapitalTransactionInput = z.infer<typeof updateCapitalTransactionSchema>;
1720
+ export type RecordRepaymentInput = z.infer<typeof recordRepaymentSchema>;
1721
+ export type CapitalTransactionAttributes = z.infer<typeof capitalTransactionAttributesSchema>;
1722
+ export type CapitalTransactionResource = z.infer<typeof capitalTransactionResourceSchema>;
1723
+ export type CapitalTransactionDetailResource = z.infer<typeof capitalTransactionDetailResourceSchema>;
1724
+ export type CapitalTransactionResponse = z.infer<typeof capitalTransactionResponseSchema>;
1725
+ export type CapitalTransactionDetailResponse = z.infer<typeof capitalTransactionDetailResponseSchema>;
1726
+ export type CapitalTransactionListResponse = z.infer<typeof capitalTransactionListResponseSchema>;
1727
+ export type CapitalSummaryAttributes = z.infer<typeof capitalSummaryAttributesSchema>;
1728
+ export type CapitalSummaryResponse = z.infer<typeof capitalSummaryResponseSchema>;
1729
+ //# sourceMappingURL=capital.schemas.d.ts.map