@deepintel-ltd/farmpro-contracts 1.12.0 → 1.15.1

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.
@@ -1 +1 @@
1
- {"version":3,"file":"market-intelligence.routes.d.ts","sourceRoot":"","sources":["../../src/routes/market-intelligence.routes.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAWxB,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmB3C,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgBnC,CAAC;AAEH,MAAM,MAAM,wBAAwB,GAAG,OAAO,wBAAwB,CAAC"}
1
+ {"version":3,"file":"market-intelligence.routes.d.ts","sourceRoot":"","sources":["../../src/routes/market-intelligence.routes.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAoBxB,QAAA,MAAM,yBAAyB;;;;;;;;;;IAU7B;;;OAGG;;;IAGH,gEAAgE;;IAEhE,qFAAqF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAErF,CAAC;AAEH,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAZ3C;;;WAGG;;;QAGH,gEAAgE;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+GrF,CAAC;AAEH,MAAM,MAAM,wBAAwB,GAAG,OAAO,wBAAwB,CAAC;AACvE,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC5E,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AACpF,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC"}
@@ -7,6 +7,35 @@ const marketProjectionSchema = z.object({
7
7
  outlook: z.string(),
8
8
  details: z.string(),
9
9
  });
10
+ const priceSourceSchema = z.enum([
11
+ 'farm_recent',
12
+ 'farm',
13
+ 'farm_report',
14
+ 'platform',
15
+ 'public',
16
+ 'none',
17
+ ]);
18
+ const cropPriceProjectionSchema = z.object({
19
+ crop: z.string(),
20
+ unit: z.string(),
21
+ currency: z.string(),
22
+ farmAveragePrice: z.number().nullable(),
23
+ farmRecentAveragePrice: z.number().nullable(),
24
+ farmSaleCount: z.number().int().nonnegative(),
25
+ farmLastSaleDate: z.string().datetime().nullable(),
26
+ platformAveragePrice: z.number().nullable(),
27
+ platformFarmCount: z.number().int().nonnegative(),
28
+ /**
29
+ * Best estimate for planning:
30
+ * farm recent → farm all-time → farm report → platform (sales + corroborated reports) → public
31
+ */
32
+ projectedPrice: z.number().nullable(),
33
+ source: priceSourceSchema,
34
+ /** Farm avg vs platform avg (%); null if either side missing */
35
+ vsPlatformPercent: z.number().nullable(),
36
+ /** Sum of field area (ha) for this crop on the farm; null if unknown / sales-only */
37
+ areaHa: z.number().nullable().optional(),
38
+ });
10
39
  export const marketIntelligenceOverviewSchema = z.object({
11
40
  farmId: z.string().uuid(),
12
41
  domesticSummary: z
@@ -24,9 +53,42 @@ export const marketIntelligenceOverviewSchema = z.object({
24
53
  })
25
54
  .nullable(),
26
55
  projections: z.array(marketProjectionSchema),
56
+ priceProjections: z.array(cropPriceProjectionSchema),
27
57
  eudrAlertTitle: z.string().nullable(),
28
58
  updatedAt: z.string().datetime(),
29
59
  });
60
+ export const createMarketPriceReportSchema = z.object({
61
+ crop: z.string().min(1).max(100),
62
+ pricePerUnit: z.number().positive().max(10_000_000),
63
+ unit: z
64
+ .string()
65
+ .min(1)
66
+ .max(50)
67
+ .optional()
68
+ .transform((u) => {
69
+ const raw = (u || 'kg').trim().toLowerCase();
70
+ if (!raw)
71
+ return 'kg';
72
+ if (raw === 'kilogram' || raw === 'kilograms')
73
+ return 'kg';
74
+ return raw;
75
+ }),
76
+ currency: z.enum(['NGN', 'USD']).optional(),
77
+ observedAt: z.string().datetime().optional(),
78
+ marketLabel: z.string().max(80).optional().nullable(),
79
+ });
80
+ export const marketPriceReportSchema = z.object({
81
+ id: z.string().uuid(),
82
+ farmId: z.string().uuid(),
83
+ crop: z.string(),
84
+ cropKey: z.string(),
85
+ pricePerUnit: z.number(),
86
+ unit: z.string(),
87
+ currency: z.string(),
88
+ observedAt: z.string().datetime(),
89
+ marketLabel: z.string().nullable(),
90
+ createdAt: z.string().datetime(),
91
+ });
30
92
  export const marketIntelligenceRouter = c.router({
31
93
  getOverview: {
32
94
  method: 'GET',
@@ -40,6 +102,40 @@ export const marketIntelligenceRouter = c.router({
40
102
  404: jsonApiErrorResponseSchema,
41
103
  },
42
104
  summary: 'Farm market intelligence overview',
43
- description: 'National market summaries and crop projections for sell-window decisions',
105
+ description: 'National market summaries plus crop price projections: farm sales, farm reports, platform knowledge, then public reference',
106
+ },
107
+ createPriceReport: {
108
+ method: 'POST',
109
+ path: '/farms/:farmId/market-intelligence/price-reports',
110
+ pathParams: z.object({
111
+ farmId: z.string().uuid(),
112
+ }),
113
+ body: createMarketPriceReportSchema,
114
+ responses: {
115
+ 201: marketPriceReportSchema,
116
+ 400: jsonApiErrorResponseSchema,
117
+ 401: jsonApiErrorResponseSchema,
118
+ 403: jsonApiErrorResponseSchema,
119
+ 404: jsonApiErrorResponseSchema,
120
+ },
121
+ summary: 'Submit a market price report',
122
+ description: 'Record an overheard / local market price. Trusted immediately for this farm; shared only after corroboration.',
123
+ },
124
+ listPriceReports: {
125
+ method: 'GET',
126
+ path: '/farms/:farmId/market-intelligence/price-reports',
127
+ pathParams: z.object({
128
+ farmId: z.string().uuid(),
129
+ }),
130
+ query: z.object({
131
+ days: z.coerce.number().int().min(1).max(365).optional().default(90),
132
+ }),
133
+ responses: {
134
+ 200: z.object({ data: z.array(marketPriceReportSchema) }),
135
+ 401: jsonApiErrorResponseSchema,
136
+ 403: jsonApiErrorResponseSchema,
137
+ 404: jsonApiErrorResponseSchema,
138
+ },
139
+ summary: 'List recent market price reports for a farm',
44
140
  },
45
141
  });
@@ -945,6 +945,49 @@ export declare const yieldPredictionRouter: {
945
945
  confidenceScore: number;
946
946
  daysToHarvest: number | null;
947
947
  }>, "many">;
948
+ cashCropStands: z.ZodDefault<z.ZodArray<z.ZodObject<{
949
+ fieldId: z.ZodString;
950
+ fieldName: z.ZodString;
951
+ cropType: z.ZodString;
952
+ fieldArea: z.ZodNumber;
953
+ plantingDate: z.ZodNullable<z.ZodString>;
954
+ yearsToFirstHarvest: z.ZodNumber;
955
+ ageYears: z.ZodNullable<z.ZodNumber>;
956
+ yearsRemaining: z.ZodNullable<z.ZodNumber>;
957
+ stage: z.ZodEnum<["establishing", "bearing", "unknown_age"]>;
958
+ planningYieldPerHa: z.ZodNullable<z.ZodNumber>;
959
+ planningTotalYield: z.ZodNullable<z.ZodNumber>;
960
+ unit: z.ZodString;
961
+ includedInSeasonRevenue: z.ZodBoolean;
962
+ }, "strip", z.ZodTypeAny, {
963
+ plantingDate: string | null;
964
+ fieldId: string;
965
+ fieldName: string;
966
+ unit: string;
967
+ stage: "bearing" | "establishing" | "unknown_age";
968
+ cropType: string;
969
+ fieldArea: number;
970
+ yearsToFirstHarvest: number;
971
+ ageYears: number | null;
972
+ yearsRemaining: number | null;
973
+ planningYieldPerHa: number | null;
974
+ planningTotalYield: number | null;
975
+ includedInSeasonRevenue: boolean;
976
+ }, {
977
+ plantingDate: string | null;
978
+ fieldId: string;
979
+ fieldName: string;
980
+ unit: string;
981
+ stage: "bearing" | "establishing" | "unknown_age";
982
+ cropType: string;
983
+ fieldArea: number;
984
+ yearsToFirstHarvest: number;
985
+ ageYears: number | null;
986
+ yearsRemaining: number | null;
987
+ planningYieldPerHa: number | null;
988
+ planningTotalYield: number | null;
989
+ includedInSeasonRevenue: boolean;
990
+ }>, "many">>;
948
991
  overallMetrics: z.ZodObject<{
949
992
  totalArea: z.ZodNumber;
950
993
  averageConfidence: z.ZodNumber;
@@ -994,6 +1037,21 @@ export declare const yieldPredictionRouter: {
994
1037
  confidenceScore: number;
995
1038
  daysToHarvest: number | null;
996
1039
  }[];
1040
+ cashCropStands: {
1041
+ plantingDate: string | null;
1042
+ fieldId: string;
1043
+ fieldName: string;
1044
+ unit: string;
1045
+ stage: "bearing" | "establishing" | "unknown_age";
1046
+ cropType: string;
1047
+ fieldArea: number;
1048
+ yearsToFirstHarvest: number;
1049
+ ageYears: number | null;
1050
+ yearsRemaining: number | null;
1051
+ planningYieldPerHa: number | null;
1052
+ planningTotalYield: number | null;
1053
+ includedInSeasonRevenue: boolean;
1054
+ }[];
997
1055
  overallMetrics: {
998
1056
  totalArea: number;
999
1057
  averageConfidence: number;
@@ -1039,6 +1097,21 @@ export declare const yieldPredictionRouter: {
1039
1097
  averageConfidence: number;
1040
1098
  overallHealthStatus: "critical" | "poor" | "fair" | "good" | "excellent";
1041
1099
  };
1100
+ cashCropStands?: {
1101
+ plantingDate: string | null;
1102
+ fieldId: string;
1103
+ fieldName: string;
1104
+ unit: string;
1105
+ stage: "bearing" | "establishing" | "unknown_age";
1106
+ cropType: string;
1107
+ fieldArea: number;
1108
+ yearsToFirstHarvest: number;
1109
+ ageYears: number | null;
1110
+ yearsRemaining: number | null;
1111
+ planningYieldPerHa: number | null;
1112
+ planningTotalYield: number | null;
1113
+ includedInSeasonRevenue: boolean;
1114
+ }[] | undefined;
1042
1115
  }>;
1043
1116
  }, "strip", z.ZodTypeAny, {
1044
1117
  type: "farm-yield-summaries";
@@ -1078,6 +1151,21 @@ export declare const yieldPredictionRouter: {
1078
1151
  confidenceScore: number;
1079
1152
  daysToHarvest: number | null;
1080
1153
  }[];
1154
+ cashCropStands: {
1155
+ plantingDate: string | null;
1156
+ fieldId: string;
1157
+ fieldName: string;
1158
+ unit: string;
1159
+ stage: "bearing" | "establishing" | "unknown_age";
1160
+ cropType: string;
1161
+ fieldArea: number;
1162
+ yearsToFirstHarvest: number;
1163
+ ageYears: number | null;
1164
+ yearsRemaining: number | null;
1165
+ planningYieldPerHa: number | null;
1166
+ planningTotalYield: number | null;
1167
+ includedInSeasonRevenue: boolean;
1168
+ }[];
1081
1169
  overallMetrics: {
1082
1170
  totalArea: number;
1083
1171
  averageConfidence: number;
@@ -1127,6 +1215,21 @@ export declare const yieldPredictionRouter: {
1127
1215
  averageConfidence: number;
1128
1216
  overallHealthStatus: "critical" | "poor" | "fair" | "good" | "excellent";
1129
1217
  };
1218
+ cashCropStands?: {
1219
+ plantingDate: string | null;
1220
+ fieldId: string;
1221
+ fieldName: string;
1222
+ unit: string;
1223
+ stage: "bearing" | "establishing" | "unknown_age";
1224
+ cropType: string;
1225
+ fieldArea: number;
1226
+ yearsToFirstHarvest: number;
1227
+ ageYears: number | null;
1228
+ yearsRemaining: number | null;
1229
+ planningYieldPerHa: number | null;
1230
+ planningTotalYield: number | null;
1231
+ includedInSeasonRevenue: boolean;
1232
+ }[] | undefined;
1130
1233
  };
1131
1234
  }>;
1132
1235
  }, "strip", z.ZodTypeAny, {
@@ -1168,6 +1271,21 @@ export declare const yieldPredictionRouter: {
1168
1271
  confidenceScore: number;
1169
1272
  daysToHarvest: number | null;
1170
1273
  }[];
1274
+ cashCropStands: {
1275
+ plantingDate: string | null;
1276
+ fieldId: string;
1277
+ fieldName: string;
1278
+ unit: string;
1279
+ stage: "bearing" | "establishing" | "unknown_age";
1280
+ cropType: string;
1281
+ fieldArea: number;
1282
+ yearsToFirstHarvest: number;
1283
+ ageYears: number | null;
1284
+ yearsRemaining: number | null;
1285
+ planningYieldPerHa: number | null;
1286
+ planningTotalYield: number | null;
1287
+ includedInSeasonRevenue: boolean;
1288
+ }[];
1171
1289
  overallMetrics: {
1172
1290
  totalArea: number;
1173
1291
  averageConfidence: number;
@@ -1219,6 +1337,21 @@ export declare const yieldPredictionRouter: {
1219
1337
  averageConfidence: number;
1220
1338
  overallHealthStatus: "critical" | "poor" | "fair" | "good" | "excellent";
1221
1339
  };
1340
+ cashCropStands?: {
1341
+ plantingDate: string | null;
1342
+ fieldId: string;
1343
+ fieldName: string;
1344
+ unit: string;
1345
+ stage: "bearing" | "establishing" | "unknown_age";
1346
+ cropType: string;
1347
+ fieldArea: number;
1348
+ yearsToFirstHarvest: number;
1349
+ ageYears: number | null;
1350
+ yearsRemaining: number | null;
1351
+ planningYieldPerHa: number | null;
1352
+ planningTotalYield: number | null;
1353
+ includedInSeasonRevenue: boolean;
1354
+ }[] | undefined;
1222
1355
  };
1223
1356
  };
1224
1357
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"yield-prediction.routes.d.ts","sourceRoot":"","sources":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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6GhC,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,OAAO,qBAAqB,CAAC"}
@@ -22,6 +22,8 @@ export declare const capitalTransactionAttributesSchema: z.ZodObject<{
22
22
  amountRepaid: z.ZodNumber;
23
23
  outstandingBalance: z.ZodOptional<z.ZodNumber>;
24
24
  notes: z.ZodNullable<z.ZodString>;
25
+ createdById: z.ZodNullable<z.ZodString>;
26
+ createdByName: z.ZodNullable<z.ZodString>;
25
27
  } & {
26
28
  createdAt: z.ZodString;
27
29
  updatedAt: z.ZodString;
@@ -35,6 +37,8 @@ export declare const capitalTransactionAttributesSchema: z.ZodObject<{
35
37
  currency: "NGN" | "USD";
36
38
  notes: string | null;
37
39
  amount: number;
40
+ createdById: string | null;
41
+ createdByName: string | null;
38
42
  reference: string | null;
39
43
  transactionDate: string;
40
44
  isRepayable: boolean;
@@ -53,6 +57,8 @@ export declare const capitalTransactionAttributesSchema: z.ZodObject<{
53
57
  currency: "NGN" | "USD";
54
58
  notes: string | null;
55
59
  amount: number;
60
+ createdById: string | null;
61
+ createdByName: string | null;
56
62
  reference: string | null;
57
63
  transactionDate: string;
58
64
  isRepayable: boolean;
@@ -425,6 +431,8 @@ export declare const capitalTransactionResourceSchema: z.ZodObject<{
425
431
  amountRepaid: z.ZodNumber;
426
432
  outstandingBalance: z.ZodOptional<z.ZodNumber>;
427
433
  notes: z.ZodNullable<z.ZodString>;
434
+ createdById: z.ZodNullable<z.ZodString>;
435
+ createdByName: z.ZodNullable<z.ZodString>;
428
436
  } & {
429
437
  createdAt: z.ZodString;
430
438
  updatedAt: z.ZodString;
@@ -438,6 +446,8 @@ export declare const capitalTransactionResourceSchema: z.ZodObject<{
438
446
  currency: "NGN" | "USD";
439
447
  notes: string | null;
440
448
  amount: number;
449
+ createdById: string | null;
450
+ createdByName: string | null;
441
451
  reference: string | null;
442
452
  transactionDate: string;
443
453
  isRepayable: boolean;
@@ -456,6 +466,8 @@ export declare const capitalTransactionResourceSchema: z.ZodObject<{
456
466
  currency: "NGN" | "USD";
457
467
  notes: string | null;
458
468
  amount: number;
469
+ createdById: string | null;
470
+ createdByName: string | null;
459
471
  reference: string | null;
460
472
  transactionDate: string;
461
473
  isRepayable: boolean;
@@ -481,6 +493,8 @@ export declare const capitalTransactionResourceSchema: z.ZodObject<{
481
493
  currency: "NGN" | "USD";
482
494
  notes: string | null;
483
495
  amount: number;
496
+ createdById: string | null;
497
+ createdByName: string | null;
484
498
  reference: string | null;
485
499
  transactionDate: string;
486
500
  isRepayable: boolean;
@@ -506,6 +520,8 @@ export declare const capitalTransactionResourceSchema: z.ZodObject<{
506
520
  currency: "NGN" | "USD";
507
521
  notes: string | null;
508
522
  amount: number;
523
+ createdById: string | null;
524
+ createdByName: string | null;
509
525
  reference: string | null;
510
526
  transactionDate: string;
511
527
  isRepayable: boolean;
@@ -538,6 +554,8 @@ export declare const capitalTransactionDetailResourceSchema: z.ZodObject<{
538
554
  amountRepaid: z.ZodNumber;
539
555
  outstandingBalance: z.ZodOptional<z.ZodNumber>;
540
556
  notes: z.ZodNullable<z.ZodString>;
557
+ createdById: z.ZodNullable<z.ZodString>;
558
+ createdByName: z.ZodNullable<z.ZodString>;
541
559
  } & {
542
560
  createdAt: z.ZodString;
543
561
  updatedAt: z.ZodString;
@@ -551,6 +569,8 @@ export declare const capitalTransactionDetailResourceSchema: z.ZodObject<{
551
569
  currency: "NGN" | "USD";
552
570
  notes: string | null;
553
571
  amount: number;
572
+ createdById: string | null;
573
+ createdByName: string | null;
554
574
  reference: string | null;
555
575
  transactionDate: string;
556
576
  isRepayable: boolean;
@@ -569,6 +589,8 @@ export declare const capitalTransactionDetailResourceSchema: z.ZodObject<{
569
589
  currency: "NGN" | "USD";
570
590
  notes: string | null;
571
591
  amount: number;
592
+ createdById: string | null;
593
+ createdByName: string | null;
572
594
  reference: string | null;
573
595
  transactionDate: string;
574
596
  isRepayable: boolean;
@@ -625,6 +647,8 @@ export declare const capitalTransactionDetailResourceSchema: z.ZodObject<{
625
647
  currency: "NGN" | "USD";
626
648
  notes: string | null;
627
649
  amount: number;
650
+ createdById: string | null;
651
+ createdByName: string | null;
628
652
  reference: string | null;
629
653
  transactionDate: string;
630
654
  isRepayable: boolean;
@@ -656,6 +680,8 @@ export declare const capitalTransactionDetailResourceSchema: z.ZodObject<{
656
680
  currency: "NGN" | "USD";
657
681
  notes: string | null;
658
682
  amount: number;
683
+ createdById: string | null;
684
+ createdByName: string | null;
659
685
  reference: string | null;
660
686
  transactionDate: string;
661
687
  isRepayable: boolean;
@@ -695,6 +721,8 @@ export declare const capitalTransactionResponseSchema: z.ZodObject<{
695
721
  amountRepaid: z.ZodNumber;
696
722
  outstandingBalance: z.ZodOptional<z.ZodNumber>;
697
723
  notes: z.ZodNullable<z.ZodString>;
724
+ createdById: z.ZodNullable<z.ZodString>;
725
+ createdByName: z.ZodNullable<z.ZodString>;
698
726
  } & {
699
727
  createdAt: z.ZodString;
700
728
  updatedAt: z.ZodString;
@@ -708,6 +736,8 @@ export declare const capitalTransactionResponseSchema: z.ZodObject<{
708
736
  currency: "NGN" | "USD";
709
737
  notes: string | null;
710
738
  amount: number;
739
+ createdById: string | null;
740
+ createdByName: string | null;
711
741
  reference: string | null;
712
742
  transactionDate: string;
713
743
  isRepayable: boolean;
@@ -726,6 +756,8 @@ export declare const capitalTransactionResponseSchema: z.ZodObject<{
726
756
  currency: "NGN" | "USD";
727
757
  notes: string | null;
728
758
  amount: number;
759
+ createdById: string | null;
760
+ createdByName: string | null;
729
761
  reference: string | null;
730
762
  transactionDate: string;
731
763
  isRepayable: boolean;
@@ -751,6 +783,8 @@ export declare const capitalTransactionResponseSchema: z.ZodObject<{
751
783
  currency: "NGN" | "USD";
752
784
  notes: string | null;
753
785
  amount: number;
786
+ createdById: string | null;
787
+ createdByName: string | null;
754
788
  reference: string | null;
755
789
  transactionDate: string;
756
790
  isRepayable: boolean;
@@ -776,6 +810,8 @@ export declare const capitalTransactionResponseSchema: z.ZodObject<{
776
810
  currency: "NGN" | "USD";
777
811
  notes: string | null;
778
812
  amount: number;
813
+ createdById: string | null;
814
+ createdByName: string | null;
779
815
  reference: string | null;
780
816
  transactionDate: string;
781
817
  isRepayable: boolean;
@@ -827,6 +863,8 @@ export declare const capitalTransactionResponseSchema: z.ZodObject<{
827
863
  currency: "NGN" | "USD";
828
864
  notes: string | null;
829
865
  amount: number;
866
+ createdById: string | null;
867
+ createdByName: string | null;
830
868
  reference: string | null;
831
869
  transactionDate: string;
832
870
  isRepayable: boolean;
@@ -864,6 +902,8 @@ export declare const capitalTransactionResponseSchema: z.ZodObject<{
864
902
  currency: "NGN" | "USD";
865
903
  notes: string | null;
866
904
  amount: number;
905
+ createdById: string | null;
906
+ createdByName: string | null;
867
907
  reference: string | null;
868
908
  transactionDate: string;
869
909
  isRepayable: boolean;
@@ -908,6 +948,8 @@ export declare const capitalTransactionDetailResponseSchema: z.ZodObject<{
908
948
  amountRepaid: z.ZodNumber;
909
949
  outstandingBalance: z.ZodOptional<z.ZodNumber>;
910
950
  notes: z.ZodNullable<z.ZodString>;
951
+ createdById: z.ZodNullable<z.ZodString>;
952
+ createdByName: z.ZodNullable<z.ZodString>;
911
953
  } & {
912
954
  createdAt: z.ZodString;
913
955
  updatedAt: z.ZodString;
@@ -921,6 +963,8 @@ export declare const capitalTransactionDetailResponseSchema: z.ZodObject<{
921
963
  currency: "NGN" | "USD";
922
964
  notes: string | null;
923
965
  amount: number;
966
+ createdById: string | null;
967
+ createdByName: string | null;
924
968
  reference: string | null;
925
969
  transactionDate: string;
926
970
  isRepayable: boolean;
@@ -939,6 +983,8 @@ export declare const capitalTransactionDetailResponseSchema: z.ZodObject<{
939
983
  currency: "NGN" | "USD";
940
984
  notes: string | null;
941
985
  amount: number;
986
+ createdById: string | null;
987
+ createdByName: string | null;
942
988
  reference: string | null;
943
989
  transactionDate: string;
944
990
  isRepayable: boolean;
@@ -995,6 +1041,8 @@ export declare const capitalTransactionDetailResponseSchema: z.ZodObject<{
995
1041
  currency: "NGN" | "USD";
996
1042
  notes: string | null;
997
1043
  amount: number;
1044
+ createdById: string | null;
1045
+ createdByName: string | null;
998
1046
  reference: string | null;
999
1047
  transactionDate: string;
1000
1048
  isRepayable: boolean;
@@ -1026,6 +1074,8 @@ export declare const capitalTransactionDetailResponseSchema: z.ZodObject<{
1026
1074
  currency: "NGN" | "USD";
1027
1075
  notes: string | null;
1028
1076
  amount: number;
1077
+ createdById: string | null;
1078
+ createdByName: string | null;
1029
1079
  reference: string | null;
1030
1080
  transactionDate: string;
1031
1081
  isRepayable: boolean;
@@ -1083,6 +1133,8 @@ export declare const capitalTransactionDetailResponseSchema: z.ZodObject<{
1083
1133
  currency: "NGN" | "USD";
1084
1134
  notes: string | null;
1085
1135
  amount: number;
1136
+ createdById: string | null;
1137
+ createdByName: string | null;
1086
1138
  reference: string | null;
1087
1139
  transactionDate: string;
1088
1140
  isRepayable: boolean;
@@ -1126,6 +1178,8 @@ export declare const capitalTransactionDetailResponseSchema: z.ZodObject<{
1126
1178
  currency: "NGN" | "USD";
1127
1179
  notes: string | null;
1128
1180
  amount: number;
1181
+ createdById: string | null;
1182
+ createdByName: string | null;
1129
1183
  reference: string | null;
1130
1184
  transactionDate: string;
1131
1185
  isRepayable: boolean;
@@ -1176,6 +1230,8 @@ export declare const capitalTransactionListResponseSchema: z.ZodObject<{
1176
1230
  amountRepaid: z.ZodNumber;
1177
1231
  outstandingBalance: z.ZodOptional<z.ZodNumber>;
1178
1232
  notes: z.ZodNullable<z.ZodString>;
1233
+ createdById: z.ZodNullable<z.ZodString>;
1234
+ createdByName: z.ZodNullable<z.ZodString>;
1179
1235
  } & {
1180
1236
  createdAt: z.ZodString;
1181
1237
  updatedAt: z.ZodString;
@@ -1189,6 +1245,8 @@ export declare const capitalTransactionListResponseSchema: z.ZodObject<{
1189
1245
  currency: "NGN" | "USD";
1190
1246
  notes: string | null;
1191
1247
  amount: number;
1248
+ createdById: string | null;
1249
+ createdByName: string | null;
1192
1250
  reference: string | null;
1193
1251
  transactionDate: string;
1194
1252
  isRepayable: boolean;
@@ -1207,6 +1265,8 @@ export declare const capitalTransactionListResponseSchema: z.ZodObject<{
1207
1265
  currency: "NGN" | "USD";
1208
1266
  notes: string | null;
1209
1267
  amount: number;
1268
+ createdById: string | null;
1269
+ createdByName: string | null;
1210
1270
  reference: string | null;
1211
1271
  transactionDate: string;
1212
1272
  isRepayable: boolean;
@@ -1232,6 +1292,8 @@ export declare const capitalTransactionListResponseSchema: z.ZodObject<{
1232
1292
  currency: "NGN" | "USD";
1233
1293
  notes: string | null;
1234
1294
  amount: number;
1295
+ createdById: string | null;
1296
+ createdByName: string | null;
1235
1297
  reference: string | null;
1236
1298
  transactionDate: string;
1237
1299
  isRepayable: boolean;
@@ -1257,6 +1319,8 @@ export declare const capitalTransactionListResponseSchema: z.ZodObject<{
1257
1319
  currency: "NGN" | "USD";
1258
1320
  notes: string | null;
1259
1321
  amount: number;
1322
+ createdById: string | null;
1323
+ createdByName: string | null;
1260
1324
  reference: string | null;
1261
1325
  transactionDate: string;
1262
1326
  isRepayable: boolean;
@@ -1308,6 +1372,8 @@ export declare const capitalTransactionListResponseSchema: z.ZodObject<{
1308
1372
  currency: "NGN" | "USD";
1309
1373
  notes: string | null;
1310
1374
  amount: number;
1375
+ createdById: string | null;
1376
+ createdByName: string | null;
1311
1377
  reference: string | null;
1312
1378
  transactionDate: string;
1313
1379
  isRepayable: boolean;
@@ -1345,6 +1411,8 @@ export declare const capitalTransactionListResponseSchema: z.ZodObject<{
1345
1411
  currency: "NGN" | "USD";
1346
1412
  notes: string | null;
1347
1413
  amount: number;
1414
+ createdById: string | null;
1415
+ createdByName: string | null;
1348
1416
  reference: string | null;
1349
1417
  transactionDate: string;
1350
1418
  isRepayable: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"capital.schemas.d.ts","sourceRoot":"","sources":["../../src/schemas/capital.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB;;;GAGG;AAGH,eAAO,MAAM,iBAAiB,4FAO5B,CAAC;AAGH,eAAO,MAAM,mBAAmB,qFAM9B,CAAC;AAGH,eAAO,MAAM,qBAAqB,2BAAyB,CAAC;AAG5D,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmBrB,CAAC;AAG3B,eAAO,MAAM,wCAAwC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsBnD,CAAC;AAGH,eAAO,MAAM,wCAAwC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAenD,CAAC;AAGH,eAAO,MAAM,gCAAgC;;;;;;;;;;;;EAI3C,CAAC;AAGH,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGzC,CAAC;AAEH,eAAO,MAAM,8BAA8B;;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AAC,CAAC,KAAK,CAAC,OAAO,sCAAsC,CAAC,CAAC;AACtG,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC;AAC1F,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sCAAsC,CAAC,CAAC;AACtG,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oCAAoC,CAAC,CAAC;AAClG,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AACtF,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC"}
@@ -43,6 +43,8 @@ export const capitalTransactionAttributesSchema = z.object({
43
43
  // Calculated fields
44
44
  outstandingBalance: z.number().optional(), // amount - amountRepaid (for repayable)
45
45
  notes: z.string().nullable(),
46
+ createdById: z.string().uuid().nullable(),
47
+ createdByName: z.string().nullable(),
46
48
  }).merge(timestampsSchema);
47
49
  // Capital transaction attributes for creation (input)
48
50
  export const createCapitalTransactionAttributesSchema = z.object({