@deepintel-ltd/farmpro-contracts 1.26.0 → 1.27.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.
Files changed (39) hide show
  1. package/dist/routes/agents.routes.d.ts +681 -12
  2. package/dist/routes/agents.routes.d.ts.map +1 -1
  3. package/dist/routes/agents.routes.js +21 -1
  4. package/dist/routes/commodity-deals.routes.d.ts +27 -27
  5. package/dist/routes/farms.routes.d.ts +46 -46
  6. package/dist/routes/field-observations.routes.d.ts +34 -34
  7. package/dist/routes/invoices.routes.d.ts +39 -39
  8. package/dist/routes/livestock-groups.routes.d.ts +27 -27
  9. package/dist/routes/livestock.routes.d.ts +21 -21
  10. package/dist/routes/market-intelligence.routes.d.ts +8 -8
  11. package/dist/routes/organizations.routes.d.ts +49 -0
  12. package/dist/routes/organizations.routes.d.ts.map +1 -1
  13. package/dist/routes/poultry.routes.d.ts +22 -22
  14. package/dist/routes/purchase-orders.routes.d.ts +9 -9
  15. package/dist/routes/subscriptions.routes.d.ts +8 -8
  16. package/dist/routes/team-payments.routes.d.ts +36 -36
  17. package/dist/routes/trade-cash-events.routes.d.ts +82 -39
  18. package/dist/routes/trade-cash-events.routes.d.ts.map +1 -1
  19. package/dist/routes/waybills.routes.d.ts +39 -39
  20. package/dist/schemas/agents.schemas.d.ts +718 -12
  21. package/dist/schemas/agents.schemas.d.ts.map +1 -1
  22. package/dist/schemas/agents.schemas.js +41 -0
  23. package/dist/schemas/commodity-deals.schemas.d.ts +18 -18
  24. package/dist/schemas/farms.schemas.d.ts +51 -51
  25. package/dist/schemas/field-observations.schemas.d.ts +24 -24
  26. package/dist/schemas/invoices.schemas.d.ts +27 -27
  27. package/dist/schemas/livestock-groups.schemas.d.ts +20 -20
  28. package/dist/schemas/livestock.schemas.d.ts +18 -18
  29. package/dist/schemas/organizations.schemas.d.ts +42 -0
  30. package/dist/schemas/organizations.schemas.d.ts.map +1 -1
  31. package/dist/schemas/organizations.schemas.js +3 -0
  32. package/dist/schemas/purchase-orders.schemas.d.ts +9 -9
  33. package/dist/schemas/subscriptions.schemas.d.ts +6 -6
  34. package/dist/schemas/team-payments.schemas.d.ts +24 -24
  35. package/dist/schemas/trade-cash-events.schemas.d.ts +67 -27
  36. package/dist/schemas/trade-cash-events.schemas.d.ts.map +1 -1
  37. package/dist/schemas/trade-cash-events.schemas.js +6 -0
  38. package/dist/schemas/waybills.schemas.d.ts +27 -27
  39. package/package.json +1 -1
@@ -1468,8 +1468,8 @@ export declare const vendorPaymentAttributesSchema: z.ZodObject<{
1468
1468
  status: "DRAFT" | "PENDING_APPROVAL" | "PROCESSING" | "COMPLETED" | "FAILED" | "REJECTED";
1469
1469
  createdAt: string;
1470
1470
  updatedAt: string;
1471
- farmId: string;
1472
1471
  currency: string;
1472
+ farmId: string;
1473
1473
  category: string;
1474
1474
  fieldId: string | null;
1475
1475
  cropId: string | null;
@@ -1497,8 +1497,8 @@ export declare const vendorPaymentAttributesSchema: z.ZodObject<{
1497
1497
  status: "DRAFT" | "PENDING_APPROVAL" | "PROCESSING" | "COMPLETED" | "FAILED" | "REJECTED";
1498
1498
  createdAt: string;
1499
1499
  updatedAt: string;
1500
- farmId: string;
1501
1500
  currency: string;
1501
+ farmId: string;
1502
1502
  category: string;
1503
1503
  fieldId: string | null;
1504
1504
  cropId: string | null;
@@ -1780,8 +1780,8 @@ export declare const vendorPaymentResourceSchema: z.ZodObject<{
1780
1780
  status: "DRAFT" | "PENDING_APPROVAL" | "PROCESSING" | "COMPLETED" | "FAILED" | "REJECTED";
1781
1781
  createdAt: string;
1782
1782
  updatedAt: string;
1783
- farmId: string;
1784
1783
  currency: string;
1784
+ farmId: string;
1785
1785
  category: string;
1786
1786
  fieldId: string | null;
1787
1787
  cropId: string | null;
@@ -1809,8 +1809,8 @@ export declare const vendorPaymentResourceSchema: z.ZodObject<{
1809
1809
  status: "DRAFT" | "PENDING_APPROVAL" | "PROCESSING" | "COMPLETED" | "FAILED" | "REJECTED";
1810
1810
  createdAt: string;
1811
1811
  updatedAt: string;
1812
- farmId: string;
1813
1812
  currency: string;
1813
+ farmId: string;
1814
1814
  category: string;
1815
1815
  fieldId: string | null;
1816
1816
  cropId: string | null;
@@ -1845,8 +1845,8 @@ export declare const vendorPaymentResourceSchema: z.ZodObject<{
1845
1845
  status: "DRAFT" | "PENDING_APPROVAL" | "PROCESSING" | "COMPLETED" | "FAILED" | "REJECTED";
1846
1846
  createdAt: string;
1847
1847
  updatedAt: string;
1848
- farmId: string;
1849
1848
  currency: string;
1849
+ farmId: string;
1850
1850
  category: string;
1851
1851
  fieldId: string | null;
1852
1852
  cropId: string | null;
@@ -1881,8 +1881,8 @@ export declare const vendorPaymentResourceSchema: z.ZodObject<{
1881
1881
  status: "DRAFT" | "PENDING_APPROVAL" | "PROCESSING" | "COMPLETED" | "FAILED" | "REJECTED";
1882
1882
  createdAt: string;
1883
1883
  updatedAt: string;
1884
- farmId: string;
1885
1884
  currency: string;
1885
+ farmId: string;
1886
1886
  category: string;
1887
1887
  fieldId: string | null;
1888
1888
  cropId: string | null;
@@ -1949,8 +1949,8 @@ export declare const vendorPaymentResponseSchema: z.ZodObject<{
1949
1949
  status: "DRAFT" | "PENDING_APPROVAL" | "PROCESSING" | "COMPLETED" | "FAILED" | "REJECTED";
1950
1950
  createdAt: string;
1951
1951
  updatedAt: string;
1952
- farmId: string;
1953
1952
  currency: string;
1953
+ farmId: string;
1954
1954
  category: string;
1955
1955
  fieldId: string | null;
1956
1956
  cropId: string | null;
@@ -1978,8 +1978,8 @@ export declare const vendorPaymentResponseSchema: z.ZodObject<{
1978
1978
  status: "DRAFT" | "PENDING_APPROVAL" | "PROCESSING" | "COMPLETED" | "FAILED" | "REJECTED";
1979
1979
  createdAt: string;
1980
1980
  updatedAt: string;
1981
- farmId: string;
1982
1981
  currency: string;
1982
+ farmId: string;
1983
1983
  category: string;
1984
1984
  fieldId: string | null;
1985
1985
  cropId: string | null;
@@ -2014,8 +2014,8 @@ export declare const vendorPaymentResponseSchema: z.ZodObject<{
2014
2014
  status: "DRAFT" | "PENDING_APPROVAL" | "PROCESSING" | "COMPLETED" | "FAILED" | "REJECTED";
2015
2015
  createdAt: string;
2016
2016
  updatedAt: string;
2017
- farmId: string;
2018
2017
  currency: string;
2018
+ farmId: string;
2019
2019
  category: string;
2020
2020
  fieldId: string | null;
2021
2021
  cropId: string | null;
@@ -2050,8 +2050,8 @@ export declare const vendorPaymentResponseSchema: z.ZodObject<{
2050
2050
  status: "DRAFT" | "PENDING_APPROVAL" | "PROCESSING" | "COMPLETED" | "FAILED" | "REJECTED";
2051
2051
  createdAt: string;
2052
2052
  updatedAt: string;
2053
- farmId: string;
2054
2053
  currency: string;
2054
+ farmId: string;
2055
2055
  category: string;
2056
2056
  fieldId: string | null;
2057
2057
  cropId: string | null;
@@ -2112,8 +2112,8 @@ export declare const vendorPaymentResponseSchema: z.ZodObject<{
2112
2112
  status: "DRAFT" | "PENDING_APPROVAL" | "PROCESSING" | "COMPLETED" | "FAILED" | "REJECTED";
2113
2113
  createdAt: string;
2114
2114
  updatedAt: string;
2115
- farmId: string;
2116
2115
  currency: string;
2116
+ farmId: string;
2117
2117
  category: string;
2118
2118
  fieldId: string | null;
2119
2119
  cropId: string | null;
@@ -2160,8 +2160,8 @@ export declare const vendorPaymentResponseSchema: z.ZodObject<{
2160
2160
  status: "DRAFT" | "PENDING_APPROVAL" | "PROCESSING" | "COMPLETED" | "FAILED" | "REJECTED";
2161
2161
  createdAt: string;
2162
2162
  updatedAt: string;
2163
- farmId: string;
2164
2163
  currency: string;
2164
+ farmId: string;
2165
2165
  category: string;
2166
2166
  fieldId: string | null;
2167
2167
  cropId: string | null;
@@ -2239,8 +2239,8 @@ export declare const vendorPaymentListResponseSchema: z.ZodObject<{
2239
2239
  status: "DRAFT" | "PENDING_APPROVAL" | "PROCESSING" | "COMPLETED" | "FAILED" | "REJECTED";
2240
2240
  createdAt: string;
2241
2241
  updatedAt: string;
2242
- farmId: string;
2243
2242
  currency: string;
2243
+ farmId: string;
2244
2244
  category: string;
2245
2245
  fieldId: string | null;
2246
2246
  cropId: string | null;
@@ -2268,8 +2268,8 @@ export declare const vendorPaymentListResponseSchema: z.ZodObject<{
2268
2268
  status: "DRAFT" | "PENDING_APPROVAL" | "PROCESSING" | "COMPLETED" | "FAILED" | "REJECTED";
2269
2269
  createdAt: string;
2270
2270
  updatedAt: string;
2271
- farmId: string;
2272
2271
  currency: string;
2272
+ farmId: string;
2273
2273
  category: string;
2274
2274
  fieldId: string | null;
2275
2275
  cropId: string | null;
@@ -2304,8 +2304,8 @@ export declare const vendorPaymentListResponseSchema: z.ZodObject<{
2304
2304
  status: "DRAFT" | "PENDING_APPROVAL" | "PROCESSING" | "COMPLETED" | "FAILED" | "REJECTED";
2305
2305
  createdAt: string;
2306
2306
  updatedAt: string;
2307
- farmId: string;
2308
2307
  currency: string;
2308
+ farmId: string;
2309
2309
  category: string;
2310
2310
  fieldId: string | null;
2311
2311
  cropId: string | null;
@@ -2340,8 +2340,8 @@ export declare const vendorPaymentListResponseSchema: z.ZodObject<{
2340
2340
  status: "DRAFT" | "PENDING_APPROVAL" | "PROCESSING" | "COMPLETED" | "FAILED" | "REJECTED";
2341
2341
  createdAt: string;
2342
2342
  updatedAt: string;
2343
- farmId: string;
2344
2343
  currency: string;
2344
+ farmId: string;
2345
2345
  category: string;
2346
2346
  fieldId: string | null;
2347
2347
  cropId: string | null;
@@ -2402,8 +2402,8 @@ export declare const vendorPaymentListResponseSchema: z.ZodObject<{
2402
2402
  status: "DRAFT" | "PENDING_APPROVAL" | "PROCESSING" | "COMPLETED" | "FAILED" | "REJECTED";
2403
2403
  createdAt: string;
2404
2404
  updatedAt: string;
2405
- farmId: string;
2406
2405
  currency: string;
2406
+ farmId: string;
2407
2407
  category: string;
2408
2408
  fieldId: string | null;
2409
2409
  cropId: string | null;
@@ -2450,8 +2450,8 @@ export declare const vendorPaymentListResponseSchema: z.ZodObject<{
2450
2450
  status: "DRAFT" | "PENDING_APPROVAL" | "PROCESSING" | "COMPLETED" | "FAILED" | "REJECTED";
2451
2451
  createdAt: string;
2452
2452
  updatedAt: string;
2453
- farmId: string;
2454
2453
  currency: string;
2454
+ farmId: string;
2455
2455
  category: string;
2456
2456
  fieldId: string | null;
2457
2457
  cropId: string | null;
@@ -2529,8 +2529,8 @@ export declare const paymentApprovalListResponseSchema: z.ZodObject<{
2529
2529
  status: "DRAFT" | "PENDING_APPROVAL" | "PROCESSING" | "COMPLETED" | "FAILED" | "REJECTED";
2530
2530
  createdAt: string;
2531
2531
  updatedAt: string;
2532
- farmId: string;
2533
2532
  currency: string;
2533
+ farmId: string;
2534
2534
  category: string;
2535
2535
  fieldId: string | null;
2536
2536
  cropId: string | null;
@@ -2558,8 +2558,8 @@ export declare const paymentApprovalListResponseSchema: z.ZodObject<{
2558
2558
  status: "DRAFT" | "PENDING_APPROVAL" | "PROCESSING" | "COMPLETED" | "FAILED" | "REJECTED";
2559
2559
  createdAt: string;
2560
2560
  updatedAt: string;
2561
- farmId: string;
2562
2561
  currency: string;
2562
+ farmId: string;
2563
2563
  category: string;
2564
2564
  fieldId: string | null;
2565
2565
  cropId: string | null;
@@ -2594,8 +2594,8 @@ export declare const paymentApprovalListResponseSchema: z.ZodObject<{
2594
2594
  status: "DRAFT" | "PENDING_APPROVAL" | "PROCESSING" | "COMPLETED" | "FAILED" | "REJECTED";
2595
2595
  createdAt: string;
2596
2596
  updatedAt: string;
2597
- farmId: string;
2598
2597
  currency: string;
2598
+ farmId: string;
2599
2599
  category: string;
2600
2600
  fieldId: string | null;
2601
2601
  cropId: string | null;
@@ -2630,8 +2630,8 @@ export declare const paymentApprovalListResponseSchema: z.ZodObject<{
2630
2630
  status: "DRAFT" | "PENDING_APPROVAL" | "PROCESSING" | "COMPLETED" | "FAILED" | "REJECTED";
2631
2631
  createdAt: string;
2632
2632
  updatedAt: string;
2633
- farmId: string;
2634
2633
  currency: string;
2634
+ farmId: string;
2635
2635
  category: string;
2636
2636
  fieldId: string | null;
2637
2637
  cropId: string | null;
@@ -2692,8 +2692,8 @@ export declare const paymentApprovalListResponseSchema: z.ZodObject<{
2692
2692
  status: "DRAFT" | "PENDING_APPROVAL" | "PROCESSING" | "COMPLETED" | "FAILED" | "REJECTED";
2693
2693
  createdAt: string;
2694
2694
  updatedAt: string;
2695
- farmId: string;
2696
2695
  currency: string;
2696
+ farmId: string;
2697
2697
  category: string;
2698
2698
  fieldId: string | null;
2699
2699
  cropId: string | null;
@@ -2740,8 +2740,8 @@ export declare const paymentApprovalListResponseSchema: z.ZodObject<{
2740
2740
  status: "DRAFT" | "PENDING_APPROVAL" | "PROCESSING" | "COMPLETED" | "FAILED" | "REJECTED";
2741
2741
  createdAt: string;
2742
2742
  updatedAt: string;
2743
- farmId: string;
2744
2743
  currency: string;
2744
+ farmId: string;
2745
2745
  category: string;
2746
2746
  fieldId: string | null;
2747
2747
  cropId: string | null;
@@ -33,8 +33,8 @@ export declare const tradeCashEventAttributesSchema: z.ZodObject<{
33
33
  type: "capital_in" | "capital_out" | "commission_payout" | "supplier_payment" | "buyer_receipt" | "advance_disburse" | "advance_handoff" | "advance_settle" | "advance_return" | "advance_writeoff";
34
34
  createdAt: string;
35
35
  updatedAt: string;
36
- organizationId: string;
37
36
  currency: string;
37
+ organizationId: string;
38
38
  occurredAt: string;
39
39
  amount: number;
40
40
  partyType: "investor" | "other" | "supplier" | "buyer" | "staff" | "broker" | "company";
@@ -167,8 +167,8 @@ export declare const tradeCashEventResourceSchema: z.ZodObject<{
167
167
  type: "capital_in" | "capital_out" | "commission_payout" | "supplier_payment" | "buyer_receipt" | "advance_disburse" | "advance_handoff" | "advance_settle" | "advance_return" | "advance_writeoff";
168
168
  createdAt: string;
169
169
  updatedAt: string;
170
- organizationId: string;
171
170
  currency: string;
171
+ organizationId: string;
172
172
  occurredAt: string;
173
173
  amount: number;
174
174
  partyType: "investor" | "other" | "supplier" | "buyer" | "staff" | "broker" | "company";
@@ -220,8 +220,8 @@ export declare const tradeCashEventResourceSchema: z.ZodObject<{
220
220
  type: "capital_in" | "capital_out" | "commission_payout" | "supplier_payment" | "buyer_receipt" | "advance_disburse" | "advance_handoff" | "advance_settle" | "advance_return" | "advance_writeoff";
221
221
  createdAt: string;
222
222
  updatedAt: string;
223
- organizationId: string;
224
223
  currency: string;
224
+ organizationId: string;
225
225
  occurredAt: string;
226
226
  amount: number;
227
227
  partyType: "investor" | "other" | "supplier" | "buyer" | "staff" | "broker" | "company";
@@ -306,8 +306,8 @@ export declare const tradeCashEventResponseSchema: z.ZodObject<{
306
306
  type: "capital_in" | "capital_out" | "commission_payout" | "supplier_payment" | "buyer_receipt" | "advance_disburse" | "advance_handoff" | "advance_settle" | "advance_return" | "advance_writeoff";
307
307
  createdAt: string;
308
308
  updatedAt: string;
309
- organizationId: string;
310
309
  currency: string;
310
+ organizationId: string;
311
311
  occurredAt: string;
312
312
  amount: number;
313
313
  partyType: "investor" | "other" | "supplier" | "buyer" | "staff" | "broker" | "company";
@@ -359,8 +359,8 @@ export declare const tradeCashEventResponseSchema: z.ZodObject<{
359
359
  type: "capital_in" | "capital_out" | "commission_payout" | "supplier_payment" | "buyer_receipt" | "advance_disburse" | "advance_handoff" | "advance_settle" | "advance_return" | "advance_writeoff";
360
360
  createdAt: string;
361
361
  updatedAt: string;
362
- organizationId: string;
363
362
  currency: string;
363
+ organizationId: string;
364
364
  occurredAt: string;
365
365
  amount: number;
366
366
  partyType: "investor" | "other" | "supplier" | "buyer" | "staff" | "broker" | "company";
@@ -445,8 +445,8 @@ export declare const tradeCashEventResponseSchema: z.ZodObject<{
445
445
  type: "capital_in" | "capital_out" | "commission_payout" | "supplier_payment" | "buyer_receipt" | "advance_disburse" | "advance_handoff" | "advance_settle" | "advance_return" | "advance_writeoff";
446
446
  createdAt: string;
447
447
  updatedAt: string;
448
- organizationId: string;
449
448
  currency: string;
449
+ organizationId: string;
450
450
  occurredAt: string;
451
451
  amount: number;
452
452
  partyType: "investor" | "other" | "supplier" | "buyer" | "staff" | "broker" | "company";
@@ -554,8 +554,8 @@ export declare const tradeCashEventListResponseSchema: z.ZodObject<{
554
554
  type: "capital_in" | "capital_out" | "commission_payout" | "supplier_payment" | "buyer_receipt" | "advance_disburse" | "advance_handoff" | "advance_settle" | "advance_return" | "advance_writeoff";
555
555
  createdAt: string;
556
556
  updatedAt: string;
557
- organizationId: string;
558
557
  currency: string;
558
+ organizationId: string;
559
559
  occurredAt: string;
560
560
  amount: number;
561
561
  partyType: "investor" | "other" | "supplier" | "buyer" | "staff" | "broker" | "company";
@@ -607,8 +607,8 @@ export declare const tradeCashEventListResponseSchema: z.ZodObject<{
607
607
  type: "capital_in" | "capital_out" | "commission_payout" | "supplier_payment" | "buyer_receipt" | "advance_disburse" | "advance_handoff" | "advance_settle" | "advance_return" | "advance_writeoff";
608
608
  createdAt: string;
609
609
  updatedAt: string;
610
- organizationId: string;
611
610
  currency: string;
611
+ organizationId: string;
612
612
  occurredAt: string;
613
613
  amount: number;
614
614
  partyType: "investor" | "other" | "supplier" | "buyer" | "staff" | "broker" | "company";
@@ -693,8 +693,8 @@ export declare const tradeCashEventListResponseSchema: z.ZodObject<{
693
693
  type: "capital_in" | "capital_out" | "commission_payout" | "supplier_payment" | "buyer_receipt" | "advance_disburse" | "advance_handoff" | "advance_settle" | "advance_return" | "advance_writeoff";
694
694
  createdAt: string;
695
695
  updatedAt: string;
696
- organizationId: string;
697
696
  currency: string;
697
+ organizationId: string;
698
698
  occurredAt: string;
699
699
  amount: number;
700
700
  partyType: "investor" | "other" | "supplier" | "buyer" | "staff" | "broker" | "company";
@@ -892,6 +892,10 @@ export declare const investorBalanceAttributesSchema: z.ZodObject<{
892
892
  capitalIn: z.ZodNumber;
893
893
  capitalOut: z.ZodNumber;
894
894
  balance: z.ZodNumber;
895
+ /** Earliest non-voided capital_in occurredAt — for fund performance dating. */
896
+ firstCapitalInAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
897
+ /** Most recent non-voided capital_in occurredAt. */
898
+ lastCapitalInAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
895
899
  dealCount: z.ZodOptional<z.ZodNumber>;
896
900
  }, "strip", z.ZodTypeAny, {
897
901
  balance: number;
@@ -900,6 +904,8 @@ export declare const investorBalanceAttributesSchema: z.ZodObject<{
900
904
  capitalOut: number;
901
905
  dealCount?: number | undefined;
902
906
  partyName?: string | null | undefined;
907
+ firstCapitalInAt?: string | null | undefined;
908
+ lastCapitalInAt?: string | null | undefined;
903
909
  }, {
904
910
  balance: number;
905
911
  partyId: string;
@@ -907,6 +913,8 @@ export declare const investorBalanceAttributesSchema: z.ZodObject<{
907
913
  capitalOut: number;
908
914
  dealCount?: number | undefined;
909
915
  partyName?: string | null | undefined;
916
+ firstCapitalInAt?: string | null | undefined;
917
+ lastCapitalInAt?: string | null | undefined;
910
918
  }>;
911
919
  export declare const investorBalancesResponseSchema: z.ZodObject<{
912
920
  data: z.ZodObject<{
@@ -919,6 +927,10 @@ export declare const investorBalancesResponseSchema: z.ZodObject<{
919
927
  capitalIn: z.ZodNumber;
920
928
  capitalOut: z.ZodNumber;
921
929
  balance: z.ZodNumber;
930
+ /** Earliest non-voided capital_in occurredAt — for fund performance dating. */
931
+ firstCapitalInAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
932
+ /** Most recent non-voided capital_in occurredAt. */
933
+ lastCapitalInAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
922
934
  dealCount: z.ZodOptional<z.ZodNumber>;
923
935
  }, "strip", z.ZodTypeAny, {
924
936
  balance: number;
@@ -927,6 +939,8 @@ export declare const investorBalancesResponseSchema: z.ZodObject<{
927
939
  capitalOut: number;
928
940
  dealCount?: number | undefined;
929
941
  partyName?: string | null | undefined;
942
+ firstCapitalInAt?: string | null | undefined;
943
+ lastCapitalInAt?: string | null | undefined;
930
944
  }, {
931
945
  balance: number;
932
946
  partyId: string;
@@ -934,6 +948,8 @@ export declare const investorBalancesResponseSchema: z.ZodObject<{
934
948
  capitalOut: number;
935
949
  dealCount?: number | undefined;
936
950
  partyName?: string | null | undefined;
951
+ firstCapitalInAt?: string | null | undefined;
952
+ lastCapitalInAt?: string | null | undefined;
937
953
  }>, "many">;
938
954
  }, "strip", z.ZodTypeAny, {
939
955
  balances: {
@@ -943,6 +959,8 @@ export declare const investorBalancesResponseSchema: z.ZodObject<{
943
959
  capitalOut: number;
944
960
  dealCount?: number | undefined;
945
961
  partyName?: string | null | undefined;
962
+ firstCapitalInAt?: string | null | undefined;
963
+ lastCapitalInAt?: string | null | undefined;
946
964
  }[];
947
965
  }, {
948
966
  balances: {
@@ -952,6 +970,8 @@ export declare const investorBalancesResponseSchema: z.ZodObject<{
952
970
  capitalOut: number;
953
971
  dealCount?: number | undefined;
954
972
  partyName?: string | null | undefined;
973
+ firstCapitalInAt?: string | null | undefined;
974
+ lastCapitalInAt?: string | null | undefined;
955
975
  }[];
956
976
  }>;
957
977
  }, "strip", z.ZodTypeAny, {
@@ -965,6 +985,8 @@ export declare const investorBalancesResponseSchema: z.ZodObject<{
965
985
  capitalOut: number;
966
986
  dealCount?: number | undefined;
967
987
  partyName?: string | null | undefined;
988
+ firstCapitalInAt?: string | null | undefined;
989
+ lastCapitalInAt?: string | null | undefined;
968
990
  }[];
969
991
  };
970
992
  }, {
@@ -978,6 +1000,8 @@ export declare const investorBalancesResponseSchema: z.ZodObject<{
978
1000
  capitalOut: number;
979
1001
  dealCount?: number | undefined;
980
1002
  partyName?: string | null | undefined;
1003
+ firstCapitalInAt?: string | null | undefined;
1004
+ lastCapitalInAt?: string | null | undefined;
981
1005
  }[];
982
1006
  };
983
1007
  }>;
@@ -993,6 +1017,8 @@ export declare const investorBalancesResponseSchema: z.ZodObject<{
993
1017
  capitalOut: number;
994
1018
  dealCount?: number | undefined;
995
1019
  partyName?: string | null | undefined;
1020
+ firstCapitalInAt?: string | null | undefined;
1021
+ lastCapitalInAt?: string | null | undefined;
996
1022
  }[];
997
1023
  };
998
1024
  };
@@ -1008,6 +1034,8 @@ export declare const investorBalancesResponseSchema: z.ZodObject<{
1008
1034
  capitalOut: number;
1009
1035
  dealCount?: number | undefined;
1010
1036
  partyName?: string | null | undefined;
1037
+ firstCapitalInAt?: string | null | undefined;
1038
+ lastCapitalInAt?: string | null | undefined;
1011
1039
  }[];
1012
1040
  };
1013
1041
  };
@@ -1085,6 +1113,8 @@ export declare const tradeTreasuryAttributesSchema: z.ZodObject<{
1085
1113
  unallocatedSpend: z.ZodNumber;
1086
1114
  goodsNotDelivered: z.ZodNumber;
1087
1115
  deliveredUnpaid: z.ZodNumber;
1116
+ /** Landed cost recovered on deals that are paid (and typically delivered). */
1117
+ deliveredPaid: z.ZodOptional<z.ZodNumber>;
1088
1118
  receivable: z.ZodNumber;
1089
1119
  capitalOutstanding: z.ZodNumber;
1090
1120
  buyerReceipts: z.ZodNumber;
@@ -1393,6 +1423,7 @@ export declare const tradeTreasuryAttributesSchema: z.ZodObject<{
1393
1423
  holderId?: string | null | undefined;
1394
1424
  expectedSettleBy?: string | null | undefined;
1395
1425
  }[];
1426
+ deliveredPaid?: number | undefined;
1396
1427
  }, {
1397
1428
  received: number;
1398
1429
  currency: string;
@@ -1466,6 +1497,7 @@ export declare const tradeTreasuryAttributesSchema: z.ZodObject<{
1466
1497
  holderId?: string | null | undefined;
1467
1498
  expectedSettleBy?: string | null | undefined;
1468
1499
  }[];
1500
+ deliveredPaid?: number | undefined;
1469
1501
  }>;
1470
1502
  export declare const tradeTreasuryResponseSchema: z.ZodObject<{
1471
1503
  data: z.ZodObject<{
@@ -1482,6 +1514,8 @@ export declare const tradeTreasuryResponseSchema: z.ZodObject<{
1482
1514
  unallocatedSpend: z.ZodNumber;
1483
1515
  goodsNotDelivered: z.ZodNumber;
1484
1516
  deliveredUnpaid: z.ZodNumber;
1517
+ /** Landed cost recovered on deals that are paid (and typically delivered). */
1518
+ deliveredPaid: z.ZodOptional<z.ZodNumber>;
1485
1519
  receivable: z.ZodNumber;
1486
1520
  capitalOutstanding: z.ZodNumber;
1487
1521
  buyerReceipts: z.ZodNumber;
@@ -1790,6 +1824,7 @@ export declare const tradeTreasuryResponseSchema: z.ZodObject<{
1790
1824
  holderId?: string | null | undefined;
1791
1825
  expectedSettleBy?: string | null | undefined;
1792
1826
  }[];
1827
+ deliveredPaid?: number | undefined;
1793
1828
  }, {
1794
1829
  received: number;
1795
1830
  currency: string;
@@ -1863,6 +1898,7 @@ export declare const tradeTreasuryResponseSchema: z.ZodObject<{
1863
1898
  holderId?: string | null | undefined;
1864
1899
  expectedSettleBy?: string | null | undefined;
1865
1900
  }[];
1901
+ deliveredPaid?: number | undefined;
1866
1902
  }>;
1867
1903
  }, "strip", z.ZodTypeAny, {
1868
1904
  type: "trade-treasury";
@@ -1940,6 +1976,7 @@ export declare const tradeTreasuryResponseSchema: z.ZodObject<{
1940
1976
  holderId?: string | null | undefined;
1941
1977
  expectedSettleBy?: string | null | undefined;
1942
1978
  }[];
1979
+ deliveredPaid?: number | undefined;
1943
1980
  };
1944
1981
  }, {
1945
1982
  type: "trade-treasury";
@@ -2017,6 +2054,7 @@ export declare const tradeTreasuryResponseSchema: z.ZodObject<{
2017
2054
  holderId?: string | null | undefined;
2018
2055
  expectedSettleBy?: string | null | undefined;
2019
2056
  }[];
2057
+ deliveredPaid?: number | undefined;
2020
2058
  };
2021
2059
  }>;
2022
2060
  }, "strip", z.ZodTypeAny, {
@@ -2096,6 +2134,7 @@ export declare const tradeTreasuryResponseSchema: z.ZodObject<{
2096
2134
  holderId?: string | null | undefined;
2097
2135
  expectedSettleBy?: string | null | undefined;
2098
2136
  }[];
2137
+ deliveredPaid?: number | undefined;
2099
2138
  };
2100
2139
  };
2101
2140
  }, {
@@ -2175,6 +2214,7 @@ export declare const tradeTreasuryResponseSchema: z.ZodObject<{
2175
2214
  holderId?: string | null | undefined;
2176
2215
  expectedSettleBy?: string | null | undefined;
2177
2216
  }[];
2217
+ deliveredPaid?: number | undefined;
2178
2218
  };
2179
2219
  };
2180
2220
  }>;
@@ -2418,8 +2458,8 @@ export declare const invoicePaymentAttributesSchema: z.ZodObject<{
2418
2458
  }, "strip", z.ZodTypeAny, {
2419
2459
  createdAt: string;
2420
2460
  updatedAt: string;
2421
- organizationId: string;
2422
2461
  currency: string;
2462
+ organizationId: string;
2423
2463
  occurredAt: string;
2424
2464
  amount: number;
2425
2465
  invoiceId: string;
@@ -2478,8 +2518,8 @@ export declare const invoicePaymentResourceSchema: z.ZodObject<{
2478
2518
  }, "strip", z.ZodTypeAny, {
2479
2519
  createdAt: string;
2480
2520
  updatedAt: string;
2481
- organizationId: string;
2482
2521
  currency: string;
2522
+ organizationId: string;
2483
2523
  occurredAt: string;
2484
2524
  amount: number;
2485
2525
  invoiceId: string;
@@ -2507,8 +2547,8 @@ export declare const invoicePaymentResourceSchema: z.ZodObject<{
2507
2547
  attributes: {
2508
2548
  createdAt: string;
2509
2549
  updatedAt: string;
2510
- organizationId: string;
2511
2550
  currency: string;
2551
+ organizationId: string;
2512
2552
  occurredAt: string;
2513
2553
  amount: number;
2514
2554
  invoiceId: string;
@@ -2557,8 +2597,8 @@ export declare const invoicePaymentResponseSchema: z.ZodObject<{
2557
2597
  }, "strip", z.ZodTypeAny, {
2558
2598
  createdAt: string;
2559
2599
  updatedAt: string;
2560
- organizationId: string;
2561
2600
  currency: string;
2601
+ organizationId: string;
2562
2602
  occurredAt: string;
2563
2603
  amount: number;
2564
2604
  invoiceId: string;
@@ -2586,8 +2626,8 @@ export declare const invoicePaymentResponseSchema: z.ZodObject<{
2586
2626
  attributes: {
2587
2627
  createdAt: string;
2588
2628
  updatedAt: string;
2589
- organizationId: string;
2590
2629
  currency: string;
2630
+ organizationId: string;
2591
2631
  occurredAt: string;
2592
2632
  amount: number;
2593
2633
  invoiceId: string;
@@ -2648,8 +2688,8 @@ export declare const invoicePaymentResponseSchema: z.ZodObject<{
2648
2688
  attributes: {
2649
2689
  createdAt: string;
2650
2690
  updatedAt: string;
2651
- organizationId: string;
2652
2691
  currency: string;
2692
+ organizationId: string;
2653
2693
  occurredAt: string;
2654
2694
  amount: number;
2655
2695
  invoiceId: string;
@@ -2721,8 +2761,8 @@ export declare const invoicePaymentListResponseSchema: z.ZodObject<{
2721
2761
  }, "strip", z.ZodTypeAny, {
2722
2762
  createdAt: string;
2723
2763
  updatedAt: string;
2724
- organizationId: string;
2725
2764
  currency: string;
2765
+ organizationId: string;
2726
2766
  occurredAt: string;
2727
2767
  amount: number;
2728
2768
  invoiceId: string;
@@ -2750,8 +2790,8 @@ export declare const invoicePaymentListResponseSchema: z.ZodObject<{
2750
2790
  attributes: {
2751
2791
  createdAt: string;
2752
2792
  updatedAt: string;
2753
- organizationId: string;
2754
2793
  currency: string;
2794
+ organizationId: string;
2755
2795
  occurredAt: string;
2756
2796
  amount: number;
2757
2797
  invoiceId: string;
@@ -2812,8 +2852,8 @@ export declare const invoicePaymentListResponseSchema: z.ZodObject<{
2812
2852
  attributes: {
2813
2853
  createdAt: string;
2814
2854
  updatedAt: string;
2815
- organizationId: string;
2816
2855
  currency: string;
2856
+ organizationId: string;
2817
2857
  occurredAt: string;
2818
2858
  amount: number;
2819
2859
  invoiceId: string;
@@ -2938,8 +2978,8 @@ export declare const tradeSourcingAdvanceAttributesSchema: z.ZodObject<{
2938
2978
  status: "cancelled" | "open" | "pending_receipt" | "settled" | "written_off";
2939
2979
  createdAt: string;
2940
2980
  updatedAt: string;
2941
- organizationId: string;
2942
2981
  currency: string;
2982
+ organizationId: string;
2943
2983
  remaining: number;
2944
2984
  amount: number;
2945
2985
  funderType: "investor" | "staff" | "company" | "unattributed";
@@ -3189,8 +3229,8 @@ export declare const tradeSourcingAdvanceResourceSchema: z.ZodObject<{
3189
3229
  status: "cancelled" | "open" | "pending_receipt" | "settled" | "written_off";
3190
3230
  createdAt: string;
3191
3231
  updatedAt: string;
3192
- organizationId: string;
3193
3232
  currency: string;
3233
+ organizationId: string;
3194
3234
  remaining: number;
3195
3235
  amount: number;
3196
3236
  funderType: "investor" | "staff" | "company" | "unattributed";
@@ -3240,8 +3280,8 @@ export declare const tradeSourcingAdvanceResourceSchema: z.ZodObject<{
3240
3280
  status: "cancelled" | "open" | "pending_receipt" | "settled" | "written_off";
3241
3281
  createdAt: string;
3242
3282
  updatedAt: string;
3243
- organizationId: string;
3244
3283
  currency: string;
3284
+ organizationId: string;
3245
3285
  remaining: number;
3246
3286
  amount: number;
3247
3287
  funderType: "investor" | "staff" | "company" | "unattributed";
@@ -3323,8 +3363,8 @@ export declare const tradeSourcingAdvanceResponseSchema: z.ZodObject<{
3323
3363
  status: "cancelled" | "open" | "pending_receipt" | "settled" | "written_off";
3324
3364
  createdAt: string;
3325
3365
  updatedAt: string;
3326
- organizationId: string;
3327
3366
  currency: string;
3367
+ organizationId: string;
3328
3368
  remaining: number;
3329
3369
  amount: number;
3330
3370
  funderType: "investor" | "staff" | "company" | "unattributed";
@@ -3374,8 +3414,8 @@ export declare const tradeSourcingAdvanceResponseSchema: z.ZodObject<{
3374
3414
  status: "cancelled" | "open" | "pending_receipt" | "settled" | "written_off";
3375
3415
  createdAt: string;
3376
3416
  updatedAt: string;
3377
- organizationId: string;
3378
3417
  currency: string;
3418
+ organizationId: string;
3379
3419
  remaining: number;
3380
3420
  amount: number;
3381
3421
  funderType: "investor" | "staff" | "company" | "unattributed";
@@ -3458,8 +3498,8 @@ export declare const tradeSourcingAdvanceResponseSchema: z.ZodObject<{
3458
3498
  status: "cancelled" | "open" | "pending_receipt" | "settled" | "written_off";
3459
3499
  createdAt: string;
3460
3500
  updatedAt: string;
3461
- organizationId: string;
3462
3501
  currency: string;
3502
+ organizationId: string;
3463
3503
  remaining: number;
3464
3504
  amount: number;
3465
3505
  funderType: "investor" | "staff" | "company" | "unattributed";
@@ -3564,8 +3604,8 @@ export declare const tradeSourcingAdvanceListResponseSchema: z.ZodObject<{
3564
3604
  status: "cancelled" | "open" | "pending_receipt" | "settled" | "written_off";
3565
3605
  createdAt: string;
3566
3606
  updatedAt: string;
3567
- organizationId: string;
3568
3607
  currency: string;
3608
+ organizationId: string;
3569
3609
  remaining: number;
3570
3610
  amount: number;
3571
3611
  funderType: "investor" | "staff" | "company" | "unattributed";
@@ -3615,8 +3655,8 @@ export declare const tradeSourcingAdvanceListResponseSchema: z.ZodObject<{
3615
3655
  status: "cancelled" | "open" | "pending_receipt" | "settled" | "written_off";
3616
3656
  createdAt: string;
3617
3657
  updatedAt: string;
3618
- organizationId: string;
3619
3658
  currency: string;
3659
+ organizationId: string;
3620
3660
  remaining: number;
3621
3661
  amount: number;
3622
3662
  funderType: "investor" | "staff" | "company" | "unattributed";
@@ -3699,8 +3739,8 @@ export declare const tradeSourcingAdvanceListResponseSchema: z.ZodObject<{
3699
3739
  status: "cancelled" | "open" | "pending_receipt" | "settled" | "written_off";
3700
3740
  createdAt: string;
3701
3741
  updatedAt: string;
3702
- organizationId: string;
3703
3742
  currency: string;
3743
+ organizationId: string;
3704
3744
  remaining: number;
3705
3745
  amount: number;
3706
3746
  funderType: "investor" | "staff" | "company" | "unattributed";