@deepintel-ltd/farmpro-contracts 1.16.13 → 1.16.15

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.
@@ -1970,6 +1970,12 @@ export declare const commodityDealSummaryResponseSchema: z.ZodObject<{
1970
1970
  }>;
1971
1971
  export declare const commodityDealInsightsPeriodSchema: z.ZodEnum<["this_month", "last_3_months", "ytd", "all"]>;
1972
1972
  export declare const commodityDealInsightsTotalsSchema: z.ZodObject<{
1973
+ /** Sum of waybill weight (kg → t) for dispatches in period — by issueDate. */
1974
+ deliveredTons: z.ZodNumber;
1975
+ dispatchCount: z.ZodNumber;
1976
+ dealsMissingWeight: z.ZodNumber;
1977
+ /** Sum of invoice.total on dispatches in period — by issueDate. */
1978
+ transactionValue: z.ZodNumber;
1973
1979
  paidDealCount: z.ZodNumber;
1974
1980
  paidRevenue: z.ZodNumber;
1975
1981
  totalCost: z.ZodNumber;
@@ -1982,18 +1988,26 @@ export declare const commodityDealInsightsTotalsSchema: z.ZodObject<{
1982
1988
  avgMarginPct: z.ZodNullable<z.ZodNumber>;
1983
1989
  }, "strip", z.ZodTypeAny, {
1984
1990
  totalCost: number;
1991
+ transactionValue: number;
1985
1992
  grossProfit: number;
1986
1993
  investorPool: number;
1987
1994
  paidDealCount: number;
1995
+ deliveredTons: number;
1996
+ dispatchCount: number;
1997
+ dealsMissingWeight: number;
1988
1998
  paidRevenue: number;
1989
1999
  companyKeep: number;
1990
2000
  staffCommission: number;
1991
2001
  avgMarginPct: number | null;
1992
2002
  }, {
1993
2003
  totalCost: number;
2004
+ transactionValue: number;
1994
2005
  grossProfit: number;
1995
2006
  investorPool: number;
1996
2007
  paidDealCount: number;
2008
+ deliveredTons: number;
2009
+ dispatchCount: number;
2010
+ dealsMissingWeight: number;
1997
2011
  paidRevenue: number;
1998
2012
  companyKeep: number;
1999
2013
  staffCommission: number;
@@ -2001,45 +2015,67 @@ export declare const commodityDealInsightsTotalsSchema: z.ZodObject<{
2001
2015
  }>;
2002
2016
  export declare const commodityDealInsightsMonthlySchema: z.ZodObject<{
2003
2017
  month: z.ZodString;
2018
+ /** Dispatch-side — by waybill issueDate month. */
2019
+ deliveredTons: z.ZodNumber;
2020
+ transactionValue: z.ZodNumber;
2021
+ dispatchCount: z.ZodNumber;
2022
+ /** Paid-side — by invoice paidAt month. */
2004
2023
  paidRevenue: z.ZodNumber;
2005
2024
  /** Company net for the month. API key unchanged. */
2006
2025
  companyKeep: z.ZodNumber;
2007
2026
  grossProfit: z.ZodNumber;
2008
- dealCount: z.ZodNumber;
2027
+ paidDealCount: z.ZodNumber;
2009
2028
  }, "strip", z.ZodTypeAny, {
2010
2029
  month: string;
2030
+ transactionValue: number;
2011
2031
  grossProfit: number;
2032
+ paidDealCount: number;
2033
+ deliveredTons: number;
2034
+ dispatchCount: number;
2012
2035
  paidRevenue: number;
2013
2036
  companyKeep: number;
2014
- dealCount: number;
2015
2037
  }, {
2016
2038
  month: string;
2039
+ transactionValue: number;
2017
2040
  grossProfit: number;
2041
+ paidDealCount: number;
2042
+ deliveredTons: number;
2043
+ dispatchCount: number;
2018
2044
  paidRevenue: number;
2019
2045
  companyKeep: number;
2020
- dealCount: number;
2021
2046
  }>;
2022
2047
  export declare const commodityDealInsightsBuyerSchema: z.ZodObject<{
2023
2048
  buyerId: z.ZodString;
2024
2049
  buyerName: z.ZodString;
2050
+ /** Dispatch-side — by waybill issueDate in period. */
2051
+ deliveredTons: z.ZodNumber;
2052
+ dispatchCount: z.ZodNumber;
2053
+ transactionValue: z.ZodNumber;
2054
+ /** Paid-side — by invoice paidAt in period. */
2025
2055
  paidRevenue: z.ZodNumber;
2026
2056
  /** Company net attributable to this buyer. API key unchanged. */
2027
2057
  companyKeep: z.ZodNumber;
2028
- dealCount: z.ZodNumber;
2058
+ paidDealCount: z.ZodNumber;
2029
2059
  marginPct: z.ZodNullable<z.ZodNumber>;
2030
2060
  }, "strip", z.ZodTypeAny, {
2031
2061
  buyerName: string;
2032
2062
  buyerId: string;
2063
+ transactionValue: number;
2064
+ paidDealCount: number;
2065
+ deliveredTons: number;
2066
+ dispatchCount: number;
2033
2067
  paidRevenue: number;
2034
2068
  companyKeep: number;
2035
- dealCount: number;
2036
2069
  marginPct: number | null;
2037
2070
  }, {
2038
2071
  buyerName: string;
2039
2072
  buyerId: string;
2073
+ transactionValue: number;
2074
+ paidDealCount: number;
2075
+ deliveredTons: number;
2076
+ dispatchCount: number;
2040
2077
  paidRevenue: number;
2041
2078
  companyKeep: number;
2042
- dealCount: number;
2043
2079
  marginPct: number | null;
2044
2080
  }>;
2045
2081
  export declare const commodityDealInsightsPipelineSchema: z.ZodObject<{
@@ -2067,6 +2103,12 @@ export declare const commodityDealInsightsSchema: z.ZodObject<{
2067
2103
  /** Non-cancelled deals in the org (for empty-state branching). */
2068
2104
  totalDealCount: z.ZodNumber;
2069
2105
  totals: z.ZodObject<{
2106
+ /** Sum of waybill weight (kg → t) for dispatches in period — by issueDate. */
2107
+ deliveredTons: z.ZodNumber;
2108
+ dispatchCount: z.ZodNumber;
2109
+ dealsMissingWeight: z.ZodNumber;
2110
+ /** Sum of invoice.total on dispatches in period — by issueDate. */
2111
+ transactionValue: z.ZodNumber;
2070
2112
  paidDealCount: z.ZodNumber;
2071
2113
  paidRevenue: z.ZodNumber;
2072
2114
  totalCost: z.ZodNumber;
@@ -2079,24 +2121,38 @@ export declare const commodityDealInsightsSchema: z.ZodObject<{
2079
2121
  avgMarginPct: z.ZodNullable<z.ZodNumber>;
2080
2122
  }, "strip", z.ZodTypeAny, {
2081
2123
  totalCost: number;
2124
+ transactionValue: number;
2082
2125
  grossProfit: number;
2083
2126
  investorPool: number;
2084
2127
  paidDealCount: number;
2128
+ deliveredTons: number;
2129
+ dispatchCount: number;
2130
+ dealsMissingWeight: number;
2085
2131
  paidRevenue: number;
2086
2132
  companyKeep: number;
2087
2133
  staffCommission: number;
2088
2134
  avgMarginPct: number | null;
2089
2135
  }, {
2090
2136
  totalCost: number;
2137
+ transactionValue: number;
2091
2138
  grossProfit: number;
2092
2139
  investorPool: number;
2093
2140
  paidDealCount: number;
2141
+ deliveredTons: number;
2142
+ dispatchCount: number;
2143
+ dealsMissingWeight: number;
2094
2144
  paidRevenue: number;
2095
2145
  companyKeep: number;
2096
2146
  staffCommission: number;
2097
2147
  avgMarginPct: number | null;
2098
2148
  }>;
2099
2149
  prior: z.ZodNullable<z.ZodObject<{
2150
+ /** Sum of waybill weight (kg → t) for dispatches in period — by issueDate. */
2151
+ deliveredTons: z.ZodNumber;
2152
+ dispatchCount: z.ZodNumber;
2153
+ dealsMissingWeight: z.ZodNumber;
2154
+ /** Sum of invoice.total on dispatches in period — by issueDate. */
2155
+ transactionValue: z.ZodNumber;
2100
2156
  paidDealCount: z.ZodNumber;
2101
2157
  paidRevenue: z.ZodNumber;
2102
2158
  totalCost: z.ZodNumber;
@@ -2109,18 +2165,26 @@ export declare const commodityDealInsightsSchema: z.ZodObject<{
2109
2165
  avgMarginPct: z.ZodNullable<z.ZodNumber>;
2110
2166
  }, "strip", z.ZodTypeAny, {
2111
2167
  totalCost: number;
2168
+ transactionValue: number;
2112
2169
  grossProfit: number;
2113
2170
  investorPool: number;
2114
2171
  paidDealCount: number;
2172
+ deliveredTons: number;
2173
+ dispatchCount: number;
2174
+ dealsMissingWeight: number;
2115
2175
  paidRevenue: number;
2116
2176
  companyKeep: number;
2117
2177
  staffCommission: number;
2118
2178
  avgMarginPct: number | null;
2119
2179
  }, {
2120
2180
  totalCost: number;
2181
+ transactionValue: number;
2121
2182
  grossProfit: number;
2122
2183
  investorPool: number;
2123
2184
  paidDealCount: number;
2185
+ deliveredTons: number;
2186
+ dispatchCount: number;
2187
+ dealsMissingWeight: number;
2124
2188
  paidRevenue: number;
2125
2189
  companyKeep: number;
2126
2190
  staffCommission: number;
@@ -2128,23 +2192,34 @@ export declare const commodityDealInsightsSchema: z.ZodObject<{
2128
2192
  }>>;
2129
2193
  monthly: z.ZodArray<z.ZodObject<{
2130
2194
  month: z.ZodString;
2195
+ /** Dispatch-side — by waybill issueDate month. */
2196
+ deliveredTons: z.ZodNumber;
2197
+ transactionValue: z.ZodNumber;
2198
+ dispatchCount: z.ZodNumber;
2199
+ /** Paid-side — by invoice paidAt month. */
2131
2200
  paidRevenue: z.ZodNumber;
2132
2201
  /** Company net for the month. API key unchanged. */
2133
2202
  companyKeep: z.ZodNumber;
2134
2203
  grossProfit: z.ZodNumber;
2135
- dealCount: z.ZodNumber;
2204
+ paidDealCount: z.ZodNumber;
2136
2205
  }, "strip", z.ZodTypeAny, {
2137
2206
  month: string;
2207
+ transactionValue: number;
2138
2208
  grossProfit: number;
2209
+ paidDealCount: number;
2210
+ deliveredTons: number;
2211
+ dispatchCount: number;
2139
2212
  paidRevenue: number;
2140
2213
  companyKeep: number;
2141
- dealCount: number;
2142
2214
  }, {
2143
2215
  month: string;
2216
+ transactionValue: number;
2144
2217
  grossProfit: number;
2218
+ paidDealCount: number;
2219
+ deliveredTons: number;
2220
+ dispatchCount: number;
2145
2221
  paidRevenue: number;
2146
2222
  companyKeep: number;
2147
- dealCount: number;
2148
2223
  }>, "many">;
2149
2224
  profitSplit: z.ZodObject<{
2150
2225
  /** Company net (fee + capital return). API key unchanged. */
@@ -2163,24 +2238,35 @@ export declare const commodityDealInsightsSchema: z.ZodObject<{
2163
2238
  byBuyer: z.ZodArray<z.ZodObject<{
2164
2239
  buyerId: z.ZodString;
2165
2240
  buyerName: z.ZodString;
2241
+ /** Dispatch-side — by waybill issueDate in period. */
2242
+ deliveredTons: z.ZodNumber;
2243
+ dispatchCount: z.ZodNumber;
2244
+ transactionValue: z.ZodNumber;
2245
+ /** Paid-side — by invoice paidAt in period. */
2166
2246
  paidRevenue: z.ZodNumber;
2167
2247
  /** Company net attributable to this buyer. API key unchanged. */
2168
2248
  companyKeep: z.ZodNumber;
2169
- dealCount: z.ZodNumber;
2249
+ paidDealCount: z.ZodNumber;
2170
2250
  marginPct: z.ZodNullable<z.ZodNumber>;
2171
2251
  }, "strip", z.ZodTypeAny, {
2172
2252
  buyerName: string;
2173
2253
  buyerId: string;
2254
+ transactionValue: number;
2255
+ paidDealCount: number;
2256
+ deliveredTons: number;
2257
+ dispatchCount: number;
2174
2258
  paidRevenue: number;
2175
2259
  companyKeep: number;
2176
- dealCount: number;
2177
2260
  marginPct: number | null;
2178
2261
  }, {
2179
2262
  buyerName: string;
2180
2263
  buyerId: string;
2264
+ transactionValue: number;
2265
+ paidDealCount: number;
2266
+ deliveredTons: number;
2267
+ dispatchCount: number;
2181
2268
  paidRevenue: number;
2182
2269
  companyKeep: number;
2183
- dealCount: number;
2184
2270
  marginPct: number | null;
2185
2271
  }>, "many">;
2186
2272
  /** Current open pipeline — not filtered by `period`. */
@@ -2211,19 +2297,26 @@ export declare const commodityDealInsightsSchema: z.ZodObject<{
2211
2297
  currency: string;
2212
2298
  monthly: {
2213
2299
  month: string;
2300
+ transactionValue: number;
2214
2301
  grossProfit: number;
2302
+ paidDealCount: number;
2303
+ deliveredTons: number;
2304
+ dispatchCount: number;
2215
2305
  paidRevenue: number;
2216
2306
  companyKeep: number;
2217
- dealCount: number;
2218
2307
  }[];
2219
2308
  period: "all" | "this_month" | "last_3_months" | "ytd";
2220
2309
  staffCommissionsEnabled: boolean;
2221
2310
  totalDealCount: number;
2222
2311
  totals: {
2223
2312
  totalCost: number;
2313
+ transactionValue: number;
2224
2314
  grossProfit: number;
2225
2315
  investorPool: number;
2226
2316
  paidDealCount: number;
2317
+ deliveredTons: number;
2318
+ dispatchCount: number;
2319
+ dealsMissingWeight: number;
2227
2320
  paidRevenue: number;
2228
2321
  companyKeep: number;
2229
2322
  staffCommission: number;
@@ -2231,9 +2324,13 @@ export declare const commodityDealInsightsSchema: z.ZodObject<{
2231
2324
  };
2232
2325
  prior: {
2233
2326
  totalCost: number;
2327
+ transactionValue: number;
2234
2328
  grossProfit: number;
2235
2329
  investorPool: number;
2236
2330
  paidDealCount: number;
2331
+ deliveredTons: number;
2332
+ dispatchCount: number;
2333
+ dealsMissingWeight: number;
2237
2334
  paidRevenue: number;
2238
2335
  companyKeep: number;
2239
2336
  staffCommission: number;
@@ -2247,9 +2344,12 @@ export declare const commodityDealInsightsSchema: z.ZodObject<{
2247
2344
  byBuyer: {
2248
2345
  buyerName: string;
2249
2346
  buyerId: string;
2347
+ transactionValue: number;
2348
+ paidDealCount: number;
2349
+ deliveredTons: number;
2350
+ dispatchCount: number;
2250
2351
  paidRevenue: number;
2251
2352
  companyKeep: number;
2252
- dealCount: number;
2253
2353
  marginPct: number | null;
2254
2354
  }[];
2255
2355
  pipeline: {
@@ -2263,19 +2363,26 @@ export declare const commodityDealInsightsSchema: z.ZodObject<{
2263
2363
  }, {
2264
2364
  monthly: {
2265
2365
  month: string;
2366
+ transactionValue: number;
2266
2367
  grossProfit: number;
2368
+ paidDealCount: number;
2369
+ deliveredTons: number;
2370
+ dispatchCount: number;
2267
2371
  paidRevenue: number;
2268
2372
  companyKeep: number;
2269
- dealCount: number;
2270
2373
  }[];
2271
2374
  period: "all" | "this_month" | "last_3_months" | "ytd";
2272
2375
  staffCommissionsEnabled: boolean;
2273
2376
  totalDealCount: number;
2274
2377
  totals: {
2275
2378
  totalCost: number;
2379
+ transactionValue: number;
2276
2380
  grossProfit: number;
2277
2381
  investorPool: number;
2278
2382
  paidDealCount: number;
2383
+ deliveredTons: number;
2384
+ dispatchCount: number;
2385
+ dealsMissingWeight: number;
2279
2386
  paidRevenue: number;
2280
2387
  companyKeep: number;
2281
2388
  staffCommission: number;
@@ -2283,9 +2390,13 @@ export declare const commodityDealInsightsSchema: z.ZodObject<{
2283
2390
  };
2284
2391
  prior: {
2285
2392
  totalCost: number;
2393
+ transactionValue: number;
2286
2394
  grossProfit: number;
2287
2395
  investorPool: number;
2288
2396
  paidDealCount: number;
2397
+ deliveredTons: number;
2398
+ dispatchCount: number;
2399
+ dealsMissingWeight: number;
2289
2400
  paidRevenue: number;
2290
2401
  companyKeep: number;
2291
2402
  staffCommission: number;
@@ -2299,9 +2410,12 @@ export declare const commodityDealInsightsSchema: z.ZodObject<{
2299
2410
  byBuyer: {
2300
2411
  buyerName: string;
2301
2412
  buyerId: string;
2413
+ transactionValue: number;
2414
+ paidDealCount: number;
2415
+ deliveredTons: number;
2416
+ dispatchCount: number;
2302
2417
  paidRevenue: number;
2303
2418
  companyKeep: number;
2304
- dealCount: number;
2305
2419
  marginPct: number | null;
2306
2420
  }[];
2307
2421
  pipeline: {
@@ -2321,6 +2435,12 @@ export declare const commodityDealInsightsResponseSchema: z.ZodObject<{
2321
2435
  /** Non-cancelled deals in the org (for empty-state branching). */
2322
2436
  totalDealCount: z.ZodNumber;
2323
2437
  totals: z.ZodObject<{
2438
+ /** Sum of waybill weight (kg → t) for dispatches in period — by issueDate. */
2439
+ deliveredTons: z.ZodNumber;
2440
+ dispatchCount: z.ZodNumber;
2441
+ dealsMissingWeight: z.ZodNumber;
2442
+ /** Sum of invoice.total on dispatches in period — by issueDate. */
2443
+ transactionValue: z.ZodNumber;
2324
2444
  paidDealCount: z.ZodNumber;
2325
2445
  paidRevenue: z.ZodNumber;
2326
2446
  totalCost: z.ZodNumber;
@@ -2333,24 +2453,38 @@ export declare const commodityDealInsightsResponseSchema: z.ZodObject<{
2333
2453
  avgMarginPct: z.ZodNullable<z.ZodNumber>;
2334
2454
  }, "strip", z.ZodTypeAny, {
2335
2455
  totalCost: number;
2456
+ transactionValue: number;
2336
2457
  grossProfit: number;
2337
2458
  investorPool: number;
2338
2459
  paidDealCount: number;
2460
+ deliveredTons: number;
2461
+ dispatchCount: number;
2462
+ dealsMissingWeight: number;
2339
2463
  paidRevenue: number;
2340
2464
  companyKeep: number;
2341
2465
  staffCommission: number;
2342
2466
  avgMarginPct: number | null;
2343
2467
  }, {
2344
2468
  totalCost: number;
2469
+ transactionValue: number;
2345
2470
  grossProfit: number;
2346
2471
  investorPool: number;
2347
2472
  paidDealCount: number;
2473
+ deliveredTons: number;
2474
+ dispatchCount: number;
2475
+ dealsMissingWeight: number;
2348
2476
  paidRevenue: number;
2349
2477
  companyKeep: number;
2350
2478
  staffCommission: number;
2351
2479
  avgMarginPct: number | null;
2352
2480
  }>;
2353
2481
  prior: z.ZodNullable<z.ZodObject<{
2482
+ /** Sum of waybill weight (kg → t) for dispatches in period — by issueDate. */
2483
+ deliveredTons: z.ZodNumber;
2484
+ dispatchCount: z.ZodNumber;
2485
+ dealsMissingWeight: z.ZodNumber;
2486
+ /** Sum of invoice.total on dispatches in period — by issueDate. */
2487
+ transactionValue: z.ZodNumber;
2354
2488
  paidDealCount: z.ZodNumber;
2355
2489
  paidRevenue: z.ZodNumber;
2356
2490
  totalCost: z.ZodNumber;
@@ -2363,18 +2497,26 @@ export declare const commodityDealInsightsResponseSchema: z.ZodObject<{
2363
2497
  avgMarginPct: z.ZodNullable<z.ZodNumber>;
2364
2498
  }, "strip", z.ZodTypeAny, {
2365
2499
  totalCost: number;
2500
+ transactionValue: number;
2366
2501
  grossProfit: number;
2367
2502
  investorPool: number;
2368
2503
  paidDealCount: number;
2504
+ deliveredTons: number;
2505
+ dispatchCount: number;
2506
+ dealsMissingWeight: number;
2369
2507
  paidRevenue: number;
2370
2508
  companyKeep: number;
2371
2509
  staffCommission: number;
2372
2510
  avgMarginPct: number | null;
2373
2511
  }, {
2374
2512
  totalCost: number;
2513
+ transactionValue: number;
2375
2514
  grossProfit: number;
2376
2515
  investorPool: number;
2377
2516
  paidDealCount: number;
2517
+ deliveredTons: number;
2518
+ dispatchCount: number;
2519
+ dealsMissingWeight: number;
2378
2520
  paidRevenue: number;
2379
2521
  companyKeep: number;
2380
2522
  staffCommission: number;
@@ -2382,23 +2524,34 @@ export declare const commodityDealInsightsResponseSchema: z.ZodObject<{
2382
2524
  }>>;
2383
2525
  monthly: z.ZodArray<z.ZodObject<{
2384
2526
  month: z.ZodString;
2527
+ /** Dispatch-side — by waybill issueDate month. */
2528
+ deliveredTons: z.ZodNumber;
2529
+ transactionValue: z.ZodNumber;
2530
+ dispatchCount: z.ZodNumber;
2531
+ /** Paid-side — by invoice paidAt month. */
2385
2532
  paidRevenue: z.ZodNumber;
2386
2533
  /** Company net for the month. API key unchanged. */
2387
2534
  companyKeep: z.ZodNumber;
2388
2535
  grossProfit: z.ZodNumber;
2389
- dealCount: z.ZodNumber;
2536
+ paidDealCount: z.ZodNumber;
2390
2537
  }, "strip", z.ZodTypeAny, {
2391
2538
  month: string;
2539
+ transactionValue: number;
2392
2540
  grossProfit: number;
2541
+ paidDealCount: number;
2542
+ deliveredTons: number;
2543
+ dispatchCount: number;
2393
2544
  paidRevenue: number;
2394
2545
  companyKeep: number;
2395
- dealCount: number;
2396
2546
  }, {
2397
2547
  month: string;
2548
+ transactionValue: number;
2398
2549
  grossProfit: number;
2550
+ paidDealCount: number;
2551
+ deliveredTons: number;
2552
+ dispatchCount: number;
2399
2553
  paidRevenue: number;
2400
2554
  companyKeep: number;
2401
- dealCount: number;
2402
2555
  }>, "many">;
2403
2556
  profitSplit: z.ZodObject<{
2404
2557
  /** Company net (fee + capital return). API key unchanged. */
@@ -2417,24 +2570,35 @@ export declare const commodityDealInsightsResponseSchema: z.ZodObject<{
2417
2570
  byBuyer: z.ZodArray<z.ZodObject<{
2418
2571
  buyerId: z.ZodString;
2419
2572
  buyerName: z.ZodString;
2573
+ /** Dispatch-side — by waybill issueDate in period. */
2574
+ deliveredTons: z.ZodNumber;
2575
+ dispatchCount: z.ZodNumber;
2576
+ transactionValue: z.ZodNumber;
2577
+ /** Paid-side — by invoice paidAt in period. */
2420
2578
  paidRevenue: z.ZodNumber;
2421
2579
  /** Company net attributable to this buyer. API key unchanged. */
2422
2580
  companyKeep: z.ZodNumber;
2423
- dealCount: z.ZodNumber;
2581
+ paidDealCount: z.ZodNumber;
2424
2582
  marginPct: z.ZodNullable<z.ZodNumber>;
2425
2583
  }, "strip", z.ZodTypeAny, {
2426
2584
  buyerName: string;
2427
2585
  buyerId: string;
2586
+ transactionValue: number;
2587
+ paidDealCount: number;
2588
+ deliveredTons: number;
2589
+ dispatchCount: number;
2428
2590
  paidRevenue: number;
2429
2591
  companyKeep: number;
2430
- dealCount: number;
2431
2592
  marginPct: number | null;
2432
2593
  }, {
2433
2594
  buyerName: string;
2434
2595
  buyerId: string;
2596
+ transactionValue: number;
2597
+ paidDealCount: number;
2598
+ deliveredTons: number;
2599
+ dispatchCount: number;
2435
2600
  paidRevenue: number;
2436
2601
  companyKeep: number;
2437
- dealCount: number;
2438
2602
  marginPct: number | null;
2439
2603
  }>, "many">;
2440
2604
  /** Current open pipeline — not filtered by `period`. */
@@ -2465,19 +2629,26 @@ export declare const commodityDealInsightsResponseSchema: z.ZodObject<{
2465
2629
  currency: string;
2466
2630
  monthly: {
2467
2631
  month: string;
2632
+ transactionValue: number;
2468
2633
  grossProfit: number;
2634
+ paidDealCount: number;
2635
+ deliveredTons: number;
2636
+ dispatchCount: number;
2469
2637
  paidRevenue: number;
2470
2638
  companyKeep: number;
2471
- dealCount: number;
2472
2639
  }[];
2473
2640
  period: "all" | "this_month" | "last_3_months" | "ytd";
2474
2641
  staffCommissionsEnabled: boolean;
2475
2642
  totalDealCount: number;
2476
2643
  totals: {
2477
2644
  totalCost: number;
2645
+ transactionValue: number;
2478
2646
  grossProfit: number;
2479
2647
  investorPool: number;
2480
2648
  paidDealCount: number;
2649
+ deliveredTons: number;
2650
+ dispatchCount: number;
2651
+ dealsMissingWeight: number;
2481
2652
  paidRevenue: number;
2482
2653
  companyKeep: number;
2483
2654
  staffCommission: number;
@@ -2485,9 +2656,13 @@ export declare const commodityDealInsightsResponseSchema: z.ZodObject<{
2485
2656
  };
2486
2657
  prior: {
2487
2658
  totalCost: number;
2659
+ transactionValue: number;
2488
2660
  grossProfit: number;
2489
2661
  investorPool: number;
2490
2662
  paidDealCount: number;
2663
+ deliveredTons: number;
2664
+ dispatchCount: number;
2665
+ dealsMissingWeight: number;
2491
2666
  paidRevenue: number;
2492
2667
  companyKeep: number;
2493
2668
  staffCommission: number;
@@ -2501,9 +2676,12 @@ export declare const commodityDealInsightsResponseSchema: z.ZodObject<{
2501
2676
  byBuyer: {
2502
2677
  buyerName: string;
2503
2678
  buyerId: string;
2679
+ transactionValue: number;
2680
+ paidDealCount: number;
2681
+ deliveredTons: number;
2682
+ dispatchCount: number;
2504
2683
  paidRevenue: number;
2505
2684
  companyKeep: number;
2506
- dealCount: number;
2507
2685
  marginPct: number | null;
2508
2686
  }[];
2509
2687
  pipeline: {
@@ -2517,19 +2695,26 @@ export declare const commodityDealInsightsResponseSchema: z.ZodObject<{
2517
2695
  }, {
2518
2696
  monthly: {
2519
2697
  month: string;
2698
+ transactionValue: number;
2520
2699
  grossProfit: number;
2700
+ paidDealCount: number;
2701
+ deliveredTons: number;
2702
+ dispatchCount: number;
2521
2703
  paidRevenue: number;
2522
2704
  companyKeep: number;
2523
- dealCount: number;
2524
2705
  }[];
2525
2706
  period: "all" | "this_month" | "last_3_months" | "ytd";
2526
2707
  staffCommissionsEnabled: boolean;
2527
2708
  totalDealCount: number;
2528
2709
  totals: {
2529
2710
  totalCost: number;
2711
+ transactionValue: number;
2530
2712
  grossProfit: number;
2531
2713
  investorPool: number;
2532
2714
  paidDealCount: number;
2715
+ deliveredTons: number;
2716
+ dispatchCount: number;
2717
+ dealsMissingWeight: number;
2533
2718
  paidRevenue: number;
2534
2719
  companyKeep: number;
2535
2720
  staffCommission: number;
@@ -2537,9 +2722,13 @@ export declare const commodityDealInsightsResponseSchema: z.ZodObject<{
2537
2722
  };
2538
2723
  prior: {
2539
2724
  totalCost: number;
2725
+ transactionValue: number;
2540
2726
  grossProfit: number;
2541
2727
  investorPool: number;
2542
2728
  paidDealCount: number;
2729
+ deliveredTons: number;
2730
+ dispatchCount: number;
2731
+ dealsMissingWeight: number;
2543
2732
  paidRevenue: number;
2544
2733
  companyKeep: number;
2545
2734
  staffCommission: number;
@@ -2553,9 +2742,12 @@ export declare const commodityDealInsightsResponseSchema: z.ZodObject<{
2553
2742
  byBuyer: {
2554
2743
  buyerName: string;
2555
2744
  buyerId: string;
2745
+ transactionValue: number;
2746
+ paidDealCount: number;
2747
+ deliveredTons: number;
2748
+ dispatchCount: number;
2556
2749
  paidRevenue: number;
2557
2750
  companyKeep: number;
2558
- dealCount: number;
2559
2751
  marginPct: number | null;
2560
2752
  }[];
2561
2753
  pipeline: {
@@ -2573,19 +2765,26 @@ export declare const commodityDealInsightsResponseSchema: z.ZodObject<{
2573
2765
  currency: string;
2574
2766
  monthly: {
2575
2767
  month: string;
2768
+ transactionValue: number;
2576
2769
  grossProfit: number;
2770
+ paidDealCount: number;
2771
+ deliveredTons: number;
2772
+ dispatchCount: number;
2577
2773
  paidRevenue: number;
2578
2774
  companyKeep: number;
2579
- dealCount: number;
2580
2775
  }[];
2581
2776
  period: "all" | "this_month" | "last_3_months" | "ytd";
2582
2777
  staffCommissionsEnabled: boolean;
2583
2778
  totalDealCount: number;
2584
2779
  totals: {
2585
2780
  totalCost: number;
2781
+ transactionValue: number;
2586
2782
  grossProfit: number;
2587
2783
  investorPool: number;
2588
2784
  paidDealCount: number;
2785
+ deliveredTons: number;
2786
+ dispatchCount: number;
2787
+ dealsMissingWeight: number;
2589
2788
  paidRevenue: number;
2590
2789
  companyKeep: number;
2591
2790
  staffCommission: number;
@@ -2593,9 +2792,13 @@ export declare const commodityDealInsightsResponseSchema: z.ZodObject<{
2593
2792
  };
2594
2793
  prior: {
2595
2794
  totalCost: number;
2795
+ transactionValue: number;
2596
2796
  grossProfit: number;
2597
2797
  investorPool: number;
2598
2798
  paidDealCount: number;
2799
+ deliveredTons: number;
2800
+ dispatchCount: number;
2801
+ dealsMissingWeight: number;
2599
2802
  paidRevenue: number;
2600
2803
  companyKeep: number;
2601
2804
  staffCommission: number;
@@ -2609,9 +2812,12 @@ export declare const commodityDealInsightsResponseSchema: z.ZodObject<{
2609
2812
  byBuyer: {
2610
2813
  buyerName: string;
2611
2814
  buyerId: string;
2815
+ transactionValue: number;
2816
+ paidDealCount: number;
2817
+ deliveredTons: number;
2818
+ dispatchCount: number;
2612
2819
  paidRevenue: number;
2613
2820
  companyKeep: number;
2614
- dealCount: number;
2615
2821
  marginPct: number | null;
2616
2822
  }[];
2617
2823
  pipeline: {
@@ -2627,19 +2833,26 @@ export declare const commodityDealInsightsResponseSchema: z.ZodObject<{
2627
2833
  data: {
2628
2834
  monthly: {
2629
2835
  month: string;
2836
+ transactionValue: number;
2630
2837
  grossProfit: number;
2838
+ paidDealCount: number;
2839
+ deliveredTons: number;
2840
+ dispatchCount: number;
2631
2841
  paidRevenue: number;
2632
2842
  companyKeep: number;
2633
- dealCount: number;
2634
2843
  }[];
2635
2844
  period: "all" | "this_month" | "last_3_months" | "ytd";
2636
2845
  staffCommissionsEnabled: boolean;
2637
2846
  totalDealCount: number;
2638
2847
  totals: {
2639
2848
  totalCost: number;
2849
+ transactionValue: number;
2640
2850
  grossProfit: number;
2641
2851
  investorPool: number;
2642
2852
  paidDealCount: number;
2853
+ deliveredTons: number;
2854
+ dispatchCount: number;
2855
+ dealsMissingWeight: number;
2643
2856
  paidRevenue: number;
2644
2857
  companyKeep: number;
2645
2858
  staffCommission: number;
@@ -2647,9 +2860,13 @@ export declare const commodityDealInsightsResponseSchema: z.ZodObject<{
2647
2860
  };
2648
2861
  prior: {
2649
2862
  totalCost: number;
2863
+ transactionValue: number;
2650
2864
  grossProfit: number;
2651
2865
  investorPool: number;
2652
2866
  paidDealCount: number;
2867
+ deliveredTons: number;
2868
+ dispatchCount: number;
2869
+ dealsMissingWeight: number;
2653
2870
  paidRevenue: number;
2654
2871
  companyKeep: number;
2655
2872
  staffCommission: number;
@@ -2663,9 +2880,12 @@ export declare const commodityDealInsightsResponseSchema: z.ZodObject<{
2663
2880
  byBuyer: {
2664
2881
  buyerName: string;
2665
2882
  buyerId: string;
2883
+ transactionValue: number;
2884
+ paidDealCount: number;
2885
+ deliveredTons: number;
2886
+ dispatchCount: number;
2666
2887
  paidRevenue: number;
2667
2888
  companyKeep: number;
2668
- dealCount: number;
2669
2889
  marginPct: number | null;
2670
2890
  }[];
2671
2891
  pipeline: {
@@ -2687,15 +2907,15 @@ export declare const myEarningsAttributesSchema: z.ZodObject<{
2687
2907
  currency: z.ZodDefault<z.ZodString>;
2688
2908
  }, "strip", z.ZodTypeAny, {
2689
2909
  currency: string;
2690
- dealCount: number;
2691
2910
  realizedEarnings: number;
2692
2911
  projectedEarnings: number;
2693
2912
  capitalDeployed: number;
2694
- }, {
2695
2913
  dealCount: number;
2914
+ }, {
2696
2915
  realizedEarnings: number;
2697
2916
  projectedEarnings: number;
2698
2917
  capitalDeployed: number;
2918
+ dealCount: number;
2699
2919
  currency?: string | undefined;
2700
2920
  }>;
2701
2921
  export declare const myEarningsResponseSchema: z.ZodObject<{
@@ -2710,15 +2930,15 @@ export declare const myEarningsResponseSchema: z.ZodObject<{
2710
2930
  currency: z.ZodDefault<z.ZodString>;
2711
2931
  }, "strip", z.ZodTypeAny, {
2712
2932
  currency: string;
2713
- dealCount: number;
2714
2933
  realizedEarnings: number;
2715
2934
  projectedEarnings: number;
2716
2935
  capitalDeployed: number;
2717
- }, {
2718
2936
  dealCount: number;
2937
+ }, {
2719
2938
  realizedEarnings: number;
2720
2939
  projectedEarnings: number;
2721
2940
  capitalDeployed: number;
2941
+ dealCount: number;
2722
2942
  currency?: string | undefined;
2723
2943
  }>;
2724
2944
  }, "strip", z.ZodTypeAny, {
@@ -2726,19 +2946,19 @@ export declare const myEarningsResponseSchema: z.ZodObject<{
2726
2946
  id: string;
2727
2947
  attributes: {
2728
2948
  currency: string;
2729
- dealCount: number;
2730
2949
  realizedEarnings: number;
2731
2950
  projectedEarnings: number;
2732
2951
  capitalDeployed: number;
2952
+ dealCount: number;
2733
2953
  };
2734
2954
  }, {
2735
2955
  type: "investor-earnings";
2736
2956
  id: string;
2737
2957
  attributes: {
2738
- dealCount: number;
2739
2958
  realizedEarnings: number;
2740
2959
  projectedEarnings: number;
2741
2960
  capitalDeployed: number;
2961
+ dealCount: number;
2742
2962
  currency?: string | undefined;
2743
2963
  };
2744
2964
  }>;
@@ -2748,10 +2968,10 @@ export declare const myEarningsResponseSchema: z.ZodObject<{
2748
2968
  id: string;
2749
2969
  attributes: {
2750
2970
  currency: string;
2751
- dealCount: number;
2752
2971
  realizedEarnings: number;
2753
2972
  projectedEarnings: number;
2754
2973
  capitalDeployed: number;
2974
+ dealCount: number;
2755
2975
  };
2756
2976
  };
2757
2977
  }, {
@@ -2759,10 +2979,10 @@ export declare const myEarningsResponseSchema: z.ZodObject<{
2759
2979
  type: "investor-earnings";
2760
2980
  id: string;
2761
2981
  attributes: {
2762
- dealCount: number;
2763
2982
  realizedEarnings: number;
2764
2983
  projectedEarnings: number;
2765
2984
  capitalDeployed: number;
2985
+ dealCount: number;
2766
2986
  currency?: string | undefined;
2767
2987
  };
2768
2988
  };