@deepintel-ltd/farmpro-contracts 1.15.4 → 1.15.6
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.
- package/dist/routes/agent-workflows.routes.d.ts +56 -56
- package/dist/routes/commodity-deals.routes.d.ts +561 -6
- package/dist/routes/commodity-deals.routes.d.ts.map +1 -1
- package/dist/routes/commodity-deals.routes.js +17 -1
- package/dist/routes/fertigation.routes.d.ts +160 -160
- package/dist/routes/field-activities.routes.d.ts +172 -172
- package/dist/routes/field-monitoring.routes.d.ts +50 -50
- package/dist/routes/field-observations.routes.d.ts +40 -40
- package/dist/routes/fields.routes.d.ts +461 -0
- package/dist/routes/fields.routes.d.ts.map +1 -1
- package/dist/routes/fields.routes.js +19 -1
- package/dist/routes/finance.routes.d.ts +78 -78
- package/dist/routes/harvest.routes.d.ts +72 -72
- package/dist/routes/inventory.routes.d.ts +42 -42
- package/dist/routes/live-monitor.routes.d.ts +6 -6
- package/dist/routes/measurements.routes.d.ts +6 -6
- package/dist/routes/monitoring-visualization.routes.d.ts +12 -12
- package/dist/routes/prescription-maps.routes.d.ts +28 -28
- package/dist/routes/soil-tests.routes.d.ts +80 -80
- package/dist/routes/suppliers.routes.d.ts +80 -80
- package/dist/routes/waybills.routes.d.ts +56 -56
- package/dist/routes/weather.routes.d.ts +24 -24
- package/dist/routes/yield-prediction.routes.d.ts +36 -36
- package/dist/schemas/agent-workflows.schemas.d.ts +64 -64
- package/dist/schemas/commodity-deals.schemas.d.ts +728 -13
- package/dist/schemas/commodity-deals.schemas.d.ts.map +1 -1
- package/dist/schemas/commodity-deals.schemas.js +68 -1
- package/dist/schemas/fertigation.schemas.d.ts +72 -72
- package/dist/schemas/field-activities.schemas.d.ts +148 -148
- package/dist/schemas/field-monitoring.schemas.d.ts +30 -30
- package/dist/schemas/field-observations.schemas.d.ts +34 -34
- package/dist/schemas/fields.schemas.d.ts +286 -0
- package/dist/schemas/fields.schemas.d.ts.map +1 -1
- package/dist/schemas/fields.schemas.js +26 -0
- package/dist/schemas/finance.schemas.d.ts +94 -94
- package/dist/schemas/harvest.schemas.d.ts +80 -80
- package/dist/schemas/inventory.schemas.d.ts +46 -46
- package/dist/schemas/live-monitor.schemas.d.ts +10 -10
- package/dist/schemas/measurements.schemas.d.ts +6 -6
- package/dist/schemas/monitoring-visualization.schemas.d.ts +14 -14
- package/dist/schemas/prescription-maps.schemas.d.ts +22 -22
- package/dist/schemas/recommendations.schemas.d.ts +6 -6
- package/dist/schemas/soil-tests.schemas.d.ts +84 -84
- package/dist/schemas/suppliers.schemas.d.ts +84 -84
- package/dist/schemas/waybills.schemas.d.ts +48 -48
- package/dist/schemas/weather.schemas.d.ts +68 -68
- package/dist/schemas/yield-prediction.schemas.d.ts +24 -24
- package/package.json +1 -1
|
@@ -36,7 +36,7 @@ export declare const commodityDealComputedSchema: z.ZodObject<{
|
|
|
36
36
|
staffCommissionAmount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
37
37
|
companyNet: z.ZodNullable<z.ZodNumber>;
|
|
38
38
|
netAfterStaff: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
39
|
-
/** Total company
|
|
39
|
+
/** Total company net (= fee + capital return) */
|
|
40
40
|
companyCommissionAmount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
41
41
|
companyFeeAmount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
42
42
|
companyCapitalReturn: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -134,7 +134,7 @@ export declare const commodityDealAttributesSchema: z.ZodObject<{
|
|
|
134
134
|
staffCommissionAmount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
135
135
|
companyNet: z.ZodNullable<z.ZodNumber>;
|
|
136
136
|
netAfterStaff: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
137
|
-
/** Total company
|
|
137
|
+
/** Total company net (= fee + capital return) */
|
|
138
138
|
companyCommissionAmount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
139
139
|
companyFeeAmount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
140
140
|
companyCapitalReturn: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -627,7 +627,7 @@ export declare const commodityDealResourceSchema: z.ZodObject<{
|
|
|
627
627
|
staffCommissionAmount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
628
628
|
companyNet: z.ZodNullable<z.ZodNumber>;
|
|
629
629
|
netAfterStaff: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
630
|
-
/** Total company
|
|
630
|
+
/** Total company net (= fee + capital return) */
|
|
631
631
|
companyCommissionAmount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
632
632
|
companyFeeAmount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
633
633
|
companyCapitalReturn: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -943,7 +943,7 @@ export declare const commodityDealResponseSchema: z.ZodObject<{
|
|
|
943
943
|
staffCommissionAmount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
944
944
|
companyNet: z.ZodNullable<z.ZodNumber>;
|
|
945
945
|
netAfterStaff: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
946
|
-
/** Total company
|
|
946
|
+
/** Total company net (= fee + capital return) */
|
|
947
947
|
companyCommissionAmount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
948
948
|
companyFeeAmount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
949
949
|
companyCapitalReturn: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -1418,7 +1418,7 @@ export declare const commodityDealListResponseSchema: z.ZodObject<{
|
|
|
1418
1418
|
staffCommissionAmount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1419
1419
|
companyNet: z.ZodNullable<z.ZodNumber>;
|
|
1420
1420
|
netAfterStaff: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1421
|
-
/** Total company
|
|
1421
|
+
/** Total company net (= fee + capital return) */
|
|
1422
1422
|
companyCommissionAmount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1423
1423
|
companyFeeAmount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1424
1424
|
companyCapitalReturn: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -1968,6 +1968,717 @@ export declare const commodityDealSummaryResponseSchema: z.ZodObject<{
|
|
|
1968
1968
|
totalInvestorPoolOnPaidDeals?: number | undefined;
|
|
1969
1969
|
};
|
|
1970
1970
|
}>;
|
|
1971
|
+
export declare const commodityDealInsightsPeriodSchema: z.ZodEnum<["this_month", "last_3_months", "ytd", "all"]>;
|
|
1972
|
+
export declare const commodityDealInsightsTotalsSchema: z.ZodObject<{
|
|
1973
|
+
paidDealCount: z.ZodNumber;
|
|
1974
|
+
paidRevenue: z.ZodNumber;
|
|
1975
|
+
totalCost: z.ZodNumber;
|
|
1976
|
+
grossProfit: z.ZodNumber;
|
|
1977
|
+
/** Company net (fee + capital return). API key unchanged — not legacy margin companyNet. */
|
|
1978
|
+
companyKeep: z.ZodNumber;
|
|
1979
|
+
investorPool: z.ZodNumber;
|
|
1980
|
+
staffCommission: z.ZodNumber;
|
|
1981
|
+
/** Gross / revenue * 100 when revenue > 0; otherwise null. */
|
|
1982
|
+
avgMarginPct: z.ZodNullable<z.ZodNumber>;
|
|
1983
|
+
}, "strip", z.ZodTypeAny, {
|
|
1984
|
+
totalCost: number;
|
|
1985
|
+
grossProfit: number;
|
|
1986
|
+
investorPool: number;
|
|
1987
|
+
paidDealCount: number;
|
|
1988
|
+
paidRevenue: number;
|
|
1989
|
+
companyKeep: number;
|
|
1990
|
+
staffCommission: number;
|
|
1991
|
+
avgMarginPct: number | null;
|
|
1992
|
+
}, {
|
|
1993
|
+
totalCost: number;
|
|
1994
|
+
grossProfit: number;
|
|
1995
|
+
investorPool: number;
|
|
1996
|
+
paidDealCount: number;
|
|
1997
|
+
paidRevenue: number;
|
|
1998
|
+
companyKeep: number;
|
|
1999
|
+
staffCommission: number;
|
|
2000
|
+
avgMarginPct: number | null;
|
|
2001
|
+
}>;
|
|
2002
|
+
export declare const commodityDealInsightsMonthlySchema: z.ZodObject<{
|
|
2003
|
+
month: z.ZodString;
|
|
2004
|
+
paidRevenue: z.ZodNumber;
|
|
2005
|
+
/** Company net for the month. API key unchanged. */
|
|
2006
|
+
companyKeep: z.ZodNumber;
|
|
2007
|
+
grossProfit: z.ZodNumber;
|
|
2008
|
+
dealCount: z.ZodNumber;
|
|
2009
|
+
}, "strip", z.ZodTypeAny, {
|
|
2010
|
+
month: string;
|
|
2011
|
+
grossProfit: number;
|
|
2012
|
+
paidRevenue: number;
|
|
2013
|
+
companyKeep: number;
|
|
2014
|
+
dealCount: number;
|
|
2015
|
+
}, {
|
|
2016
|
+
month: string;
|
|
2017
|
+
grossProfit: number;
|
|
2018
|
+
paidRevenue: number;
|
|
2019
|
+
companyKeep: number;
|
|
2020
|
+
dealCount: number;
|
|
2021
|
+
}>;
|
|
2022
|
+
export declare const commodityDealInsightsBuyerSchema: z.ZodObject<{
|
|
2023
|
+
buyerId: z.ZodString;
|
|
2024
|
+
buyerName: z.ZodString;
|
|
2025
|
+
paidRevenue: z.ZodNumber;
|
|
2026
|
+
/** Company net attributable to this buyer. API key unchanged. */
|
|
2027
|
+
companyKeep: z.ZodNumber;
|
|
2028
|
+
dealCount: z.ZodNumber;
|
|
2029
|
+
marginPct: z.ZodNullable<z.ZodNumber>;
|
|
2030
|
+
}, "strip", z.ZodTypeAny, {
|
|
2031
|
+
buyerName: string;
|
|
2032
|
+
buyerId: string;
|
|
2033
|
+
paidRevenue: number;
|
|
2034
|
+
companyKeep: number;
|
|
2035
|
+
dealCount: number;
|
|
2036
|
+
marginPct: number | null;
|
|
2037
|
+
}, {
|
|
2038
|
+
buyerName: string;
|
|
2039
|
+
buyerId: string;
|
|
2040
|
+
paidRevenue: number;
|
|
2041
|
+
companyKeep: number;
|
|
2042
|
+
dealCount: number;
|
|
2043
|
+
marginPct: number | null;
|
|
2044
|
+
}>;
|
|
2045
|
+
export declare const commodityDealInsightsPipelineSchema: z.ZodObject<{
|
|
2046
|
+
invoicedUnpaidCount: z.ZodNumber;
|
|
2047
|
+
overdueCount: z.ZodNumber;
|
|
2048
|
+
unrealizedGrossProfit: z.ZodNumber;
|
|
2049
|
+
unpaidInvoiceTotal: z.ZodNumber;
|
|
2050
|
+
overdueInvoiceTotal: z.ZodNumber;
|
|
2051
|
+
}, "strip", z.ZodTypeAny, {
|
|
2052
|
+
invoicedUnpaidCount: number;
|
|
2053
|
+
unrealizedGrossProfit: number;
|
|
2054
|
+
overdueCount: number;
|
|
2055
|
+
unpaidInvoiceTotal: number;
|
|
2056
|
+
overdueInvoiceTotal: number;
|
|
2057
|
+
}, {
|
|
2058
|
+
invoicedUnpaidCount: number;
|
|
2059
|
+
unrealizedGrossProfit: number;
|
|
2060
|
+
overdueCount: number;
|
|
2061
|
+
unpaidInvoiceTotal: number;
|
|
2062
|
+
overdueInvoiceTotal: number;
|
|
2063
|
+
}>;
|
|
2064
|
+
export declare const commodityDealInsightsSchema: z.ZodObject<{
|
|
2065
|
+
period: z.ZodEnum<["this_month", "last_3_months", "ytd", "all"]>;
|
|
2066
|
+
currency: z.ZodDefault<z.ZodString>;
|
|
2067
|
+
/** Non-cancelled deals in the org (for empty-state branching). */
|
|
2068
|
+
totalDealCount: z.ZodNumber;
|
|
2069
|
+
totals: z.ZodObject<{
|
|
2070
|
+
paidDealCount: z.ZodNumber;
|
|
2071
|
+
paidRevenue: z.ZodNumber;
|
|
2072
|
+
totalCost: z.ZodNumber;
|
|
2073
|
+
grossProfit: z.ZodNumber;
|
|
2074
|
+
/** Company net (fee + capital return). API key unchanged — not legacy margin companyNet. */
|
|
2075
|
+
companyKeep: z.ZodNumber;
|
|
2076
|
+
investorPool: z.ZodNumber;
|
|
2077
|
+
staffCommission: z.ZodNumber;
|
|
2078
|
+
/** Gross / revenue * 100 when revenue > 0; otherwise null. */
|
|
2079
|
+
avgMarginPct: z.ZodNullable<z.ZodNumber>;
|
|
2080
|
+
}, "strip", z.ZodTypeAny, {
|
|
2081
|
+
totalCost: number;
|
|
2082
|
+
grossProfit: number;
|
|
2083
|
+
investorPool: number;
|
|
2084
|
+
paidDealCount: number;
|
|
2085
|
+
paidRevenue: number;
|
|
2086
|
+
companyKeep: number;
|
|
2087
|
+
staffCommission: number;
|
|
2088
|
+
avgMarginPct: number | null;
|
|
2089
|
+
}, {
|
|
2090
|
+
totalCost: number;
|
|
2091
|
+
grossProfit: number;
|
|
2092
|
+
investorPool: number;
|
|
2093
|
+
paidDealCount: number;
|
|
2094
|
+
paidRevenue: number;
|
|
2095
|
+
companyKeep: number;
|
|
2096
|
+
staffCommission: number;
|
|
2097
|
+
avgMarginPct: number | null;
|
|
2098
|
+
}>;
|
|
2099
|
+
prior: z.ZodNullable<z.ZodObject<{
|
|
2100
|
+
paidDealCount: z.ZodNumber;
|
|
2101
|
+
paidRevenue: z.ZodNumber;
|
|
2102
|
+
totalCost: z.ZodNumber;
|
|
2103
|
+
grossProfit: z.ZodNumber;
|
|
2104
|
+
/** Company net (fee + capital return). API key unchanged — not legacy margin companyNet. */
|
|
2105
|
+
companyKeep: z.ZodNumber;
|
|
2106
|
+
investorPool: z.ZodNumber;
|
|
2107
|
+
staffCommission: z.ZodNumber;
|
|
2108
|
+
/** Gross / revenue * 100 when revenue > 0; otherwise null. */
|
|
2109
|
+
avgMarginPct: z.ZodNullable<z.ZodNumber>;
|
|
2110
|
+
}, "strip", z.ZodTypeAny, {
|
|
2111
|
+
totalCost: number;
|
|
2112
|
+
grossProfit: number;
|
|
2113
|
+
investorPool: number;
|
|
2114
|
+
paidDealCount: number;
|
|
2115
|
+
paidRevenue: number;
|
|
2116
|
+
companyKeep: number;
|
|
2117
|
+
staffCommission: number;
|
|
2118
|
+
avgMarginPct: number | null;
|
|
2119
|
+
}, {
|
|
2120
|
+
totalCost: number;
|
|
2121
|
+
grossProfit: number;
|
|
2122
|
+
investorPool: number;
|
|
2123
|
+
paidDealCount: number;
|
|
2124
|
+
paidRevenue: number;
|
|
2125
|
+
companyKeep: number;
|
|
2126
|
+
staffCommission: number;
|
|
2127
|
+
avgMarginPct: number | null;
|
|
2128
|
+
}>>;
|
|
2129
|
+
monthly: z.ZodArray<z.ZodObject<{
|
|
2130
|
+
month: z.ZodString;
|
|
2131
|
+
paidRevenue: z.ZodNumber;
|
|
2132
|
+
/** Company net for the month. API key unchanged. */
|
|
2133
|
+
companyKeep: z.ZodNumber;
|
|
2134
|
+
grossProfit: z.ZodNumber;
|
|
2135
|
+
dealCount: z.ZodNumber;
|
|
2136
|
+
}, "strip", z.ZodTypeAny, {
|
|
2137
|
+
month: string;
|
|
2138
|
+
grossProfit: number;
|
|
2139
|
+
paidRevenue: number;
|
|
2140
|
+
companyKeep: number;
|
|
2141
|
+
dealCount: number;
|
|
2142
|
+
}, {
|
|
2143
|
+
month: string;
|
|
2144
|
+
grossProfit: number;
|
|
2145
|
+
paidRevenue: number;
|
|
2146
|
+
companyKeep: number;
|
|
2147
|
+
dealCount: number;
|
|
2148
|
+
}>, "many">;
|
|
2149
|
+
profitSplit: z.ZodObject<{
|
|
2150
|
+
/** Company net (fee + capital return). API key unchanged. */
|
|
2151
|
+
companyKeep: z.ZodNumber;
|
|
2152
|
+
investorPool: z.ZodNumber;
|
|
2153
|
+
staffCommission: z.ZodNumber;
|
|
2154
|
+
}, "strip", z.ZodTypeAny, {
|
|
2155
|
+
investorPool: number;
|
|
2156
|
+
companyKeep: number;
|
|
2157
|
+
staffCommission: number;
|
|
2158
|
+
}, {
|
|
2159
|
+
investorPool: number;
|
|
2160
|
+
companyKeep: number;
|
|
2161
|
+
staffCommission: number;
|
|
2162
|
+
}>;
|
|
2163
|
+
byBuyer: z.ZodArray<z.ZodObject<{
|
|
2164
|
+
buyerId: z.ZodString;
|
|
2165
|
+
buyerName: z.ZodString;
|
|
2166
|
+
paidRevenue: z.ZodNumber;
|
|
2167
|
+
/** Company net attributable to this buyer. API key unchanged. */
|
|
2168
|
+
companyKeep: z.ZodNumber;
|
|
2169
|
+
dealCount: z.ZodNumber;
|
|
2170
|
+
marginPct: z.ZodNullable<z.ZodNumber>;
|
|
2171
|
+
}, "strip", z.ZodTypeAny, {
|
|
2172
|
+
buyerName: string;
|
|
2173
|
+
buyerId: string;
|
|
2174
|
+
paidRevenue: number;
|
|
2175
|
+
companyKeep: number;
|
|
2176
|
+
dealCount: number;
|
|
2177
|
+
marginPct: number | null;
|
|
2178
|
+
}, {
|
|
2179
|
+
buyerName: string;
|
|
2180
|
+
buyerId: string;
|
|
2181
|
+
paidRevenue: number;
|
|
2182
|
+
companyKeep: number;
|
|
2183
|
+
dealCount: number;
|
|
2184
|
+
marginPct: number | null;
|
|
2185
|
+
}>, "many">;
|
|
2186
|
+
/** Current open pipeline — not filtered by `period`. */
|
|
2187
|
+
pipeline: z.ZodObject<{
|
|
2188
|
+
invoicedUnpaidCount: z.ZodNumber;
|
|
2189
|
+
overdueCount: z.ZodNumber;
|
|
2190
|
+
unrealizedGrossProfit: z.ZodNumber;
|
|
2191
|
+
unpaidInvoiceTotal: z.ZodNumber;
|
|
2192
|
+
overdueInvoiceTotal: z.ZodNumber;
|
|
2193
|
+
}, "strip", z.ZodTypeAny, {
|
|
2194
|
+
invoicedUnpaidCount: number;
|
|
2195
|
+
unrealizedGrossProfit: number;
|
|
2196
|
+
overdueCount: number;
|
|
2197
|
+
unpaidInvoiceTotal: number;
|
|
2198
|
+
overdueInvoiceTotal: number;
|
|
2199
|
+
}, {
|
|
2200
|
+
invoicedUnpaidCount: number;
|
|
2201
|
+
unrealizedGrossProfit: number;
|
|
2202
|
+
overdueCount: number;
|
|
2203
|
+
unpaidInvoiceTotal: number;
|
|
2204
|
+
overdueInvoiceTotal: number;
|
|
2205
|
+
}>;
|
|
2206
|
+
/** Accrued staff commission on paid deals still unpaid to staff (current, not period-filtered). */
|
|
2207
|
+
staffCommissionUnpaid: z.ZodNumber;
|
|
2208
|
+
/** Derived the same way as summary: org rate > 0 or paid deals accrued commission. */
|
|
2209
|
+
staffCommissionsEnabled: z.ZodBoolean;
|
|
2210
|
+
}, "strip", z.ZodTypeAny, {
|
|
2211
|
+
currency: string;
|
|
2212
|
+
monthly: {
|
|
2213
|
+
month: string;
|
|
2214
|
+
grossProfit: number;
|
|
2215
|
+
paidRevenue: number;
|
|
2216
|
+
companyKeep: number;
|
|
2217
|
+
dealCount: number;
|
|
2218
|
+
}[];
|
|
2219
|
+
period: "all" | "this_month" | "last_3_months" | "ytd";
|
|
2220
|
+
staffCommissionsEnabled: boolean;
|
|
2221
|
+
totalDealCount: number;
|
|
2222
|
+
totals: {
|
|
2223
|
+
totalCost: number;
|
|
2224
|
+
grossProfit: number;
|
|
2225
|
+
investorPool: number;
|
|
2226
|
+
paidDealCount: number;
|
|
2227
|
+
paidRevenue: number;
|
|
2228
|
+
companyKeep: number;
|
|
2229
|
+
staffCommission: number;
|
|
2230
|
+
avgMarginPct: number | null;
|
|
2231
|
+
};
|
|
2232
|
+
prior: {
|
|
2233
|
+
totalCost: number;
|
|
2234
|
+
grossProfit: number;
|
|
2235
|
+
investorPool: number;
|
|
2236
|
+
paidDealCount: number;
|
|
2237
|
+
paidRevenue: number;
|
|
2238
|
+
companyKeep: number;
|
|
2239
|
+
staffCommission: number;
|
|
2240
|
+
avgMarginPct: number | null;
|
|
2241
|
+
} | null;
|
|
2242
|
+
profitSplit: {
|
|
2243
|
+
investorPool: number;
|
|
2244
|
+
companyKeep: number;
|
|
2245
|
+
staffCommission: number;
|
|
2246
|
+
};
|
|
2247
|
+
byBuyer: {
|
|
2248
|
+
buyerName: string;
|
|
2249
|
+
buyerId: string;
|
|
2250
|
+
paidRevenue: number;
|
|
2251
|
+
companyKeep: number;
|
|
2252
|
+
dealCount: number;
|
|
2253
|
+
marginPct: number | null;
|
|
2254
|
+
}[];
|
|
2255
|
+
pipeline: {
|
|
2256
|
+
invoicedUnpaidCount: number;
|
|
2257
|
+
unrealizedGrossProfit: number;
|
|
2258
|
+
overdueCount: number;
|
|
2259
|
+
unpaidInvoiceTotal: number;
|
|
2260
|
+
overdueInvoiceTotal: number;
|
|
2261
|
+
};
|
|
2262
|
+
staffCommissionUnpaid: number;
|
|
2263
|
+
}, {
|
|
2264
|
+
monthly: {
|
|
2265
|
+
month: string;
|
|
2266
|
+
grossProfit: number;
|
|
2267
|
+
paidRevenue: number;
|
|
2268
|
+
companyKeep: number;
|
|
2269
|
+
dealCount: number;
|
|
2270
|
+
}[];
|
|
2271
|
+
period: "all" | "this_month" | "last_3_months" | "ytd";
|
|
2272
|
+
staffCommissionsEnabled: boolean;
|
|
2273
|
+
totalDealCount: number;
|
|
2274
|
+
totals: {
|
|
2275
|
+
totalCost: number;
|
|
2276
|
+
grossProfit: number;
|
|
2277
|
+
investorPool: number;
|
|
2278
|
+
paidDealCount: number;
|
|
2279
|
+
paidRevenue: number;
|
|
2280
|
+
companyKeep: number;
|
|
2281
|
+
staffCommission: number;
|
|
2282
|
+
avgMarginPct: number | null;
|
|
2283
|
+
};
|
|
2284
|
+
prior: {
|
|
2285
|
+
totalCost: number;
|
|
2286
|
+
grossProfit: number;
|
|
2287
|
+
investorPool: number;
|
|
2288
|
+
paidDealCount: number;
|
|
2289
|
+
paidRevenue: number;
|
|
2290
|
+
companyKeep: number;
|
|
2291
|
+
staffCommission: number;
|
|
2292
|
+
avgMarginPct: number | null;
|
|
2293
|
+
} | null;
|
|
2294
|
+
profitSplit: {
|
|
2295
|
+
investorPool: number;
|
|
2296
|
+
companyKeep: number;
|
|
2297
|
+
staffCommission: number;
|
|
2298
|
+
};
|
|
2299
|
+
byBuyer: {
|
|
2300
|
+
buyerName: string;
|
|
2301
|
+
buyerId: string;
|
|
2302
|
+
paidRevenue: number;
|
|
2303
|
+
companyKeep: number;
|
|
2304
|
+
dealCount: number;
|
|
2305
|
+
marginPct: number | null;
|
|
2306
|
+
}[];
|
|
2307
|
+
pipeline: {
|
|
2308
|
+
invoicedUnpaidCount: number;
|
|
2309
|
+
unrealizedGrossProfit: number;
|
|
2310
|
+
overdueCount: number;
|
|
2311
|
+
unpaidInvoiceTotal: number;
|
|
2312
|
+
overdueInvoiceTotal: number;
|
|
2313
|
+
};
|
|
2314
|
+
staffCommissionUnpaid: number;
|
|
2315
|
+
currency?: string | undefined;
|
|
2316
|
+
}>;
|
|
2317
|
+
export declare const commodityDealInsightsResponseSchema: z.ZodObject<{
|
|
2318
|
+
data: z.ZodObject<{
|
|
2319
|
+
period: z.ZodEnum<["this_month", "last_3_months", "ytd", "all"]>;
|
|
2320
|
+
currency: z.ZodDefault<z.ZodString>;
|
|
2321
|
+
/** Non-cancelled deals in the org (for empty-state branching). */
|
|
2322
|
+
totalDealCount: z.ZodNumber;
|
|
2323
|
+
totals: z.ZodObject<{
|
|
2324
|
+
paidDealCount: z.ZodNumber;
|
|
2325
|
+
paidRevenue: z.ZodNumber;
|
|
2326
|
+
totalCost: z.ZodNumber;
|
|
2327
|
+
grossProfit: z.ZodNumber;
|
|
2328
|
+
/** Company net (fee + capital return). API key unchanged — not legacy margin companyNet. */
|
|
2329
|
+
companyKeep: z.ZodNumber;
|
|
2330
|
+
investorPool: z.ZodNumber;
|
|
2331
|
+
staffCommission: z.ZodNumber;
|
|
2332
|
+
/** Gross / revenue * 100 when revenue > 0; otherwise null. */
|
|
2333
|
+
avgMarginPct: z.ZodNullable<z.ZodNumber>;
|
|
2334
|
+
}, "strip", z.ZodTypeAny, {
|
|
2335
|
+
totalCost: number;
|
|
2336
|
+
grossProfit: number;
|
|
2337
|
+
investorPool: number;
|
|
2338
|
+
paidDealCount: number;
|
|
2339
|
+
paidRevenue: number;
|
|
2340
|
+
companyKeep: number;
|
|
2341
|
+
staffCommission: number;
|
|
2342
|
+
avgMarginPct: number | null;
|
|
2343
|
+
}, {
|
|
2344
|
+
totalCost: number;
|
|
2345
|
+
grossProfit: number;
|
|
2346
|
+
investorPool: number;
|
|
2347
|
+
paidDealCount: number;
|
|
2348
|
+
paidRevenue: number;
|
|
2349
|
+
companyKeep: number;
|
|
2350
|
+
staffCommission: number;
|
|
2351
|
+
avgMarginPct: number | null;
|
|
2352
|
+
}>;
|
|
2353
|
+
prior: z.ZodNullable<z.ZodObject<{
|
|
2354
|
+
paidDealCount: z.ZodNumber;
|
|
2355
|
+
paidRevenue: z.ZodNumber;
|
|
2356
|
+
totalCost: z.ZodNumber;
|
|
2357
|
+
grossProfit: z.ZodNumber;
|
|
2358
|
+
/** Company net (fee + capital return). API key unchanged — not legacy margin companyNet. */
|
|
2359
|
+
companyKeep: z.ZodNumber;
|
|
2360
|
+
investorPool: z.ZodNumber;
|
|
2361
|
+
staffCommission: z.ZodNumber;
|
|
2362
|
+
/** Gross / revenue * 100 when revenue > 0; otherwise null. */
|
|
2363
|
+
avgMarginPct: z.ZodNullable<z.ZodNumber>;
|
|
2364
|
+
}, "strip", z.ZodTypeAny, {
|
|
2365
|
+
totalCost: number;
|
|
2366
|
+
grossProfit: number;
|
|
2367
|
+
investorPool: number;
|
|
2368
|
+
paidDealCount: number;
|
|
2369
|
+
paidRevenue: number;
|
|
2370
|
+
companyKeep: number;
|
|
2371
|
+
staffCommission: number;
|
|
2372
|
+
avgMarginPct: number | null;
|
|
2373
|
+
}, {
|
|
2374
|
+
totalCost: number;
|
|
2375
|
+
grossProfit: number;
|
|
2376
|
+
investorPool: number;
|
|
2377
|
+
paidDealCount: number;
|
|
2378
|
+
paidRevenue: number;
|
|
2379
|
+
companyKeep: number;
|
|
2380
|
+
staffCommission: number;
|
|
2381
|
+
avgMarginPct: number | null;
|
|
2382
|
+
}>>;
|
|
2383
|
+
monthly: z.ZodArray<z.ZodObject<{
|
|
2384
|
+
month: z.ZodString;
|
|
2385
|
+
paidRevenue: z.ZodNumber;
|
|
2386
|
+
/** Company net for the month. API key unchanged. */
|
|
2387
|
+
companyKeep: z.ZodNumber;
|
|
2388
|
+
grossProfit: z.ZodNumber;
|
|
2389
|
+
dealCount: z.ZodNumber;
|
|
2390
|
+
}, "strip", z.ZodTypeAny, {
|
|
2391
|
+
month: string;
|
|
2392
|
+
grossProfit: number;
|
|
2393
|
+
paidRevenue: number;
|
|
2394
|
+
companyKeep: number;
|
|
2395
|
+
dealCount: number;
|
|
2396
|
+
}, {
|
|
2397
|
+
month: string;
|
|
2398
|
+
grossProfit: number;
|
|
2399
|
+
paidRevenue: number;
|
|
2400
|
+
companyKeep: number;
|
|
2401
|
+
dealCount: number;
|
|
2402
|
+
}>, "many">;
|
|
2403
|
+
profitSplit: z.ZodObject<{
|
|
2404
|
+
/** Company net (fee + capital return). API key unchanged. */
|
|
2405
|
+
companyKeep: z.ZodNumber;
|
|
2406
|
+
investorPool: z.ZodNumber;
|
|
2407
|
+
staffCommission: z.ZodNumber;
|
|
2408
|
+
}, "strip", z.ZodTypeAny, {
|
|
2409
|
+
investorPool: number;
|
|
2410
|
+
companyKeep: number;
|
|
2411
|
+
staffCommission: number;
|
|
2412
|
+
}, {
|
|
2413
|
+
investorPool: number;
|
|
2414
|
+
companyKeep: number;
|
|
2415
|
+
staffCommission: number;
|
|
2416
|
+
}>;
|
|
2417
|
+
byBuyer: z.ZodArray<z.ZodObject<{
|
|
2418
|
+
buyerId: z.ZodString;
|
|
2419
|
+
buyerName: z.ZodString;
|
|
2420
|
+
paidRevenue: z.ZodNumber;
|
|
2421
|
+
/** Company net attributable to this buyer. API key unchanged. */
|
|
2422
|
+
companyKeep: z.ZodNumber;
|
|
2423
|
+
dealCount: z.ZodNumber;
|
|
2424
|
+
marginPct: z.ZodNullable<z.ZodNumber>;
|
|
2425
|
+
}, "strip", z.ZodTypeAny, {
|
|
2426
|
+
buyerName: string;
|
|
2427
|
+
buyerId: string;
|
|
2428
|
+
paidRevenue: number;
|
|
2429
|
+
companyKeep: number;
|
|
2430
|
+
dealCount: number;
|
|
2431
|
+
marginPct: number | null;
|
|
2432
|
+
}, {
|
|
2433
|
+
buyerName: string;
|
|
2434
|
+
buyerId: string;
|
|
2435
|
+
paidRevenue: number;
|
|
2436
|
+
companyKeep: number;
|
|
2437
|
+
dealCount: number;
|
|
2438
|
+
marginPct: number | null;
|
|
2439
|
+
}>, "many">;
|
|
2440
|
+
/** Current open pipeline — not filtered by `period`. */
|
|
2441
|
+
pipeline: z.ZodObject<{
|
|
2442
|
+
invoicedUnpaidCount: z.ZodNumber;
|
|
2443
|
+
overdueCount: z.ZodNumber;
|
|
2444
|
+
unrealizedGrossProfit: z.ZodNumber;
|
|
2445
|
+
unpaidInvoiceTotal: z.ZodNumber;
|
|
2446
|
+
overdueInvoiceTotal: z.ZodNumber;
|
|
2447
|
+
}, "strip", z.ZodTypeAny, {
|
|
2448
|
+
invoicedUnpaidCount: number;
|
|
2449
|
+
unrealizedGrossProfit: number;
|
|
2450
|
+
overdueCount: number;
|
|
2451
|
+
unpaidInvoiceTotal: number;
|
|
2452
|
+
overdueInvoiceTotal: number;
|
|
2453
|
+
}, {
|
|
2454
|
+
invoicedUnpaidCount: number;
|
|
2455
|
+
unrealizedGrossProfit: number;
|
|
2456
|
+
overdueCount: number;
|
|
2457
|
+
unpaidInvoiceTotal: number;
|
|
2458
|
+
overdueInvoiceTotal: number;
|
|
2459
|
+
}>;
|
|
2460
|
+
/** Accrued staff commission on paid deals still unpaid to staff (current, not period-filtered). */
|
|
2461
|
+
staffCommissionUnpaid: z.ZodNumber;
|
|
2462
|
+
/** Derived the same way as summary: org rate > 0 or paid deals accrued commission. */
|
|
2463
|
+
staffCommissionsEnabled: z.ZodBoolean;
|
|
2464
|
+
}, "strip", z.ZodTypeAny, {
|
|
2465
|
+
currency: string;
|
|
2466
|
+
monthly: {
|
|
2467
|
+
month: string;
|
|
2468
|
+
grossProfit: number;
|
|
2469
|
+
paidRevenue: number;
|
|
2470
|
+
companyKeep: number;
|
|
2471
|
+
dealCount: number;
|
|
2472
|
+
}[];
|
|
2473
|
+
period: "all" | "this_month" | "last_3_months" | "ytd";
|
|
2474
|
+
staffCommissionsEnabled: boolean;
|
|
2475
|
+
totalDealCount: number;
|
|
2476
|
+
totals: {
|
|
2477
|
+
totalCost: number;
|
|
2478
|
+
grossProfit: number;
|
|
2479
|
+
investorPool: number;
|
|
2480
|
+
paidDealCount: number;
|
|
2481
|
+
paidRevenue: number;
|
|
2482
|
+
companyKeep: number;
|
|
2483
|
+
staffCommission: number;
|
|
2484
|
+
avgMarginPct: number | null;
|
|
2485
|
+
};
|
|
2486
|
+
prior: {
|
|
2487
|
+
totalCost: number;
|
|
2488
|
+
grossProfit: number;
|
|
2489
|
+
investorPool: number;
|
|
2490
|
+
paidDealCount: number;
|
|
2491
|
+
paidRevenue: number;
|
|
2492
|
+
companyKeep: number;
|
|
2493
|
+
staffCommission: number;
|
|
2494
|
+
avgMarginPct: number | null;
|
|
2495
|
+
} | null;
|
|
2496
|
+
profitSplit: {
|
|
2497
|
+
investorPool: number;
|
|
2498
|
+
companyKeep: number;
|
|
2499
|
+
staffCommission: number;
|
|
2500
|
+
};
|
|
2501
|
+
byBuyer: {
|
|
2502
|
+
buyerName: string;
|
|
2503
|
+
buyerId: string;
|
|
2504
|
+
paidRevenue: number;
|
|
2505
|
+
companyKeep: number;
|
|
2506
|
+
dealCount: number;
|
|
2507
|
+
marginPct: number | null;
|
|
2508
|
+
}[];
|
|
2509
|
+
pipeline: {
|
|
2510
|
+
invoicedUnpaidCount: number;
|
|
2511
|
+
unrealizedGrossProfit: number;
|
|
2512
|
+
overdueCount: number;
|
|
2513
|
+
unpaidInvoiceTotal: number;
|
|
2514
|
+
overdueInvoiceTotal: number;
|
|
2515
|
+
};
|
|
2516
|
+
staffCommissionUnpaid: number;
|
|
2517
|
+
}, {
|
|
2518
|
+
monthly: {
|
|
2519
|
+
month: string;
|
|
2520
|
+
grossProfit: number;
|
|
2521
|
+
paidRevenue: number;
|
|
2522
|
+
companyKeep: number;
|
|
2523
|
+
dealCount: number;
|
|
2524
|
+
}[];
|
|
2525
|
+
period: "all" | "this_month" | "last_3_months" | "ytd";
|
|
2526
|
+
staffCommissionsEnabled: boolean;
|
|
2527
|
+
totalDealCount: number;
|
|
2528
|
+
totals: {
|
|
2529
|
+
totalCost: number;
|
|
2530
|
+
grossProfit: number;
|
|
2531
|
+
investorPool: number;
|
|
2532
|
+
paidDealCount: number;
|
|
2533
|
+
paidRevenue: number;
|
|
2534
|
+
companyKeep: number;
|
|
2535
|
+
staffCommission: number;
|
|
2536
|
+
avgMarginPct: number | null;
|
|
2537
|
+
};
|
|
2538
|
+
prior: {
|
|
2539
|
+
totalCost: number;
|
|
2540
|
+
grossProfit: number;
|
|
2541
|
+
investorPool: number;
|
|
2542
|
+
paidDealCount: number;
|
|
2543
|
+
paidRevenue: number;
|
|
2544
|
+
companyKeep: number;
|
|
2545
|
+
staffCommission: number;
|
|
2546
|
+
avgMarginPct: number | null;
|
|
2547
|
+
} | null;
|
|
2548
|
+
profitSplit: {
|
|
2549
|
+
investorPool: number;
|
|
2550
|
+
companyKeep: number;
|
|
2551
|
+
staffCommission: number;
|
|
2552
|
+
};
|
|
2553
|
+
byBuyer: {
|
|
2554
|
+
buyerName: string;
|
|
2555
|
+
buyerId: string;
|
|
2556
|
+
paidRevenue: number;
|
|
2557
|
+
companyKeep: number;
|
|
2558
|
+
dealCount: number;
|
|
2559
|
+
marginPct: number | null;
|
|
2560
|
+
}[];
|
|
2561
|
+
pipeline: {
|
|
2562
|
+
invoicedUnpaidCount: number;
|
|
2563
|
+
unrealizedGrossProfit: number;
|
|
2564
|
+
overdueCount: number;
|
|
2565
|
+
unpaidInvoiceTotal: number;
|
|
2566
|
+
overdueInvoiceTotal: number;
|
|
2567
|
+
};
|
|
2568
|
+
staffCommissionUnpaid: number;
|
|
2569
|
+
currency?: string | undefined;
|
|
2570
|
+
}>;
|
|
2571
|
+
}, "strip", z.ZodTypeAny, {
|
|
2572
|
+
data: {
|
|
2573
|
+
currency: string;
|
|
2574
|
+
monthly: {
|
|
2575
|
+
month: string;
|
|
2576
|
+
grossProfit: number;
|
|
2577
|
+
paidRevenue: number;
|
|
2578
|
+
companyKeep: number;
|
|
2579
|
+
dealCount: number;
|
|
2580
|
+
}[];
|
|
2581
|
+
period: "all" | "this_month" | "last_3_months" | "ytd";
|
|
2582
|
+
staffCommissionsEnabled: boolean;
|
|
2583
|
+
totalDealCount: number;
|
|
2584
|
+
totals: {
|
|
2585
|
+
totalCost: number;
|
|
2586
|
+
grossProfit: number;
|
|
2587
|
+
investorPool: number;
|
|
2588
|
+
paidDealCount: number;
|
|
2589
|
+
paidRevenue: number;
|
|
2590
|
+
companyKeep: number;
|
|
2591
|
+
staffCommission: number;
|
|
2592
|
+
avgMarginPct: number | null;
|
|
2593
|
+
};
|
|
2594
|
+
prior: {
|
|
2595
|
+
totalCost: number;
|
|
2596
|
+
grossProfit: number;
|
|
2597
|
+
investorPool: number;
|
|
2598
|
+
paidDealCount: number;
|
|
2599
|
+
paidRevenue: number;
|
|
2600
|
+
companyKeep: number;
|
|
2601
|
+
staffCommission: number;
|
|
2602
|
+
avgMarginPct: number | null;
|
|
2603
|
+
} | null;
|
|
2604
|
+
profitSplit: {
|
|
2605
|
+
investorPool: number;
|
|
2606
|
+
companyKeep: number;
|
|
2607
|
+
staffCommission: number;
|
|
2608
|
+
};
|
|
2609
|
+
byBuyer: {
|
|
2610
|
+
buyerName: string;
|
|
2611
|
+
buyerId: string;
|
|
2612
|
+
paidRevenue: number;
|
|
2613
|
+
companyKeep: number;
|
|
2614
|
+
dealCount: number;
|
|
2615
|
+
marginPct: number | null;
|
|
2616
|
+
}[];
|
|
2617
|
+
pipeline: {
|
|
2618
|
+
invoicedUnpaidCount: number;
|
|
2619
|
+
unrealizedGrossProfit: number;
|
|
2620
|
+
overdueCount: number;
|
|
2621
|
+
unpaidInvoiceTotal: number;
|
|
2622
|
+
overdueInvoiceTotal: number;
|
|
2623
|
+
};
|
|
2624
|
+
staffCommissionUnpaid: number;
|
|
2625
|
+
};
|
|
2626
|
+
}, {
|
|
2627
|
+
data: {
|
|
2628
|
+
monthly: {
|
|
2629
|
+
month: string;
|
|
2630
|
+
grossProfit: number;
|
|
2631
|
+
paidRevenue: number;
|
|
2632
|
+
companyKeep: number;
|
|
2633
|
+
dealCount: number;
|
|
2634
|
+
}[];
|
|
2635
|
+
period: "all" | "this_month" | "last_3_months" | "ytd";
|
|
2636
|
+
staffCommissionsEnabled: boolean;
|
|
2637
|
+
totalDealCount: number;
|
|
2638
|
+
totals: {
|
|
2639
|
+
totalCost: number;
|
|
2640
|
+
grossProfit: number;
|
|
2641
|
+
investorPool: number;
|
|
2642
|
+
paidDealCount: number;
|
|
2643
|
+
paidRevenue: number;
|
|
2644
|
+
companyKeep: number;
|
|
2645
|
+
staffCommission: number;
|
|
2646
|
+
avgMarginPct: number | null;
|
|
2647
|
+
};
|
|
2648
|
+
prior: {
|
|
2649
|
+
totalCost: number;
|
|
2650
|
+
grossProfit: number;
|
|
2651
|
+
investorPool: number;
|
|
2652
|
+
paidDealCount: number;
|
|
2653
|
+
paidRevenue: number;
|
|
2654
|
+
companyKeep: number;
|
|
2655
|
+
staffCommission: number;
|
|
2656
|
+
avgMarginPct: number | null;
|
|
2657
|
+
} | null;
|
|
2658
|
+
profitSplit: {
|
|
2659
|
+
investorPool: number;
|
|
2660
|
+
companyKeep: number;
|
|
2661
|
+
staffCommission: number;
|
|
2662
|
+
};
|
|
2663
|
+
byBuyer: {
|
|
2664
|
+
buyerName: string;
|
|
2665
|
+
buyerId: string;
|
|
2666
|
+
paidRevenue: number;
|
|
2667
|
+
companyKeep: number;
|
|
2668
|
+
dealCount: number;
|
|
2669
|
+
marginPct: number | null;
|
|
2670
|
+
}[];
|
|
2671
|
+
pipeline: {
|
|
2672
|
+
invoicedUnpaidCount: number;
|
|
2673
|
+
unrealizedGrossProfit: number;
|
|
2674
|
+
overdueCount: number;
|
|
2675
|
+
unpaidInvoiceTotal: number;
|
|
2676
|
+
overdueInvoiceTotal: number;
|
|
2677
|
+
};
|
|
2678
|
+
staffCommissionUnpaid: number;
|
|
2679
|
+
currency?: string | undefined;
|
|
2680
|
+
};
|
|
2681
|
+
}>;
|
|
1971
2682
|
export declare const myEarningsAttributesSchema: z.ZodObject<{
|
|
1972
2683
|
realizedEarnings: z.ZodNumber;
|
|
1973
2684
|
projectedEarnings: z.ZodNumber;
|
|
@@ -1976,15 +2687,15 @@ export declare const myEarningsAttributesSchema: z.ZodObject<{
|
|
|
1976
2687
|
currency: z.ZodDefault<z.ZodString>;
|
|
1977
2688
|
}, "strip", z.ZodTypeAny, {
|
|
1978
2689
|
currency: string;
|
|
2690
|
+
dealCount: number;
|
|
1979
2691
|
realizedEarnings: number;
|
|
1980
2692
|
projectedEarnings: number;
|
|
1981
2693
|
capitalDeployed: number;
|
|
1982
|
-
dealCount: number;
|
|
1983
2694
|
}, {
|
|
2695
|
+
dealCount: number;
|
|
1984
2696
|
realizedEarnings: number;
|
|
1985
2697
|
projectedEarnings: number;
|
|
1986
2698
|
capitalDeployed: number;
|
|
1987
|
-
dealCount: number;
|
|
1988
2699
|
currency?: string | undefined;
|
|
1989
2700
|
}>;
|
|
1990
2701
|
export declare const myEarningsResponseSchema: z.ZodObject<{
|
|
@@ -1999,15 +2710,15 @@ export declare const myEarningsResponseSchema: z.ZodObject<{
|
|
|
1999
2710
|
currency: z.ZodDefault<z.ZodString>;
|
|
2000
2711
|
}, "strip", z.ZodTypeAny, {
|
|
2001
2712
|
currency: string;
|
|
2713
|
+
dealCount: number;
|
|
2002
2714
|
realizedEarnings: number;
|
|
2003
2715
|
projectedEarnings: number;
|
|
2004
2716
|
capitalDeployed: number;
|
|
2005
|
-
dealCount: number;
|
|
2006
2717
|
}, {
|
|
2718
|
+
dealCount: number;
|
|
2007
2719
|
realizedEarnings: number;
|
|
2008
2720
|
projectedEarnings: number;
|
|
2009
2721
|
capitalDeployed: number;
|
|
2010
|
-
dealCount: number;
|
|
2011
2722
|
currency?: string | undefined;
|
|
2012
2723
|
}>;
|
|
2013
2724
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -2015,19 +2726,19 @@ export declare const myEarningsResponseSchema: z.ZodObject<{
|
|
|
2015
2726
|
id: string;
|
|
2016
2727
|
attributes: {
|
|
2017
2728
|
currency: string;
|
|
2729
|
+
dealCount: number;
|
|
2018
2730
|
realizedEarnings: number;
|
|
2019
2731
|
projectedEarnings: number;
|
|
2020
2732
|
capitalDeployed: number;
|
|
2021
|
-
dealCount: number;
|
|
2022
2733
|
};
|
|
2023
2734
|
}, {
|
|
2024
2735
|
type: "investor-earnings";
|
|
2025
2736
|
id: string;
|
|
2026
2737
|
attributes: {
|
|
2738
|
+
dealCount: number;
|
|
2027
2739
|
realizedEarnings: number;
|
|
2028
2740
|
projectedEarnings: number;
|
|
2029
2741
|
capitalDeployed: number;
|
|
2030
|
-
dealCount: number;
|
|
2031
2742
|
currency?: string | undefined;
|
|
2032
2743
|
};
|
|
2033
2744
|
}>;
|
|
@@ -2037,10 +2748,10 @@ export declare const myEarningsResponseSchema: z.ZodObject<{
|
|
|
2037
2748
|
id: string;
|
|
2038
2749
|
attributes: {
|
|
2039
2750
|
currency: string;
|
|
2751
|
+
dealCount: number;
|
|
2040
2752
|
realizedEarnings: number;
|
|
2041
2753
|
projectedEarnings: number;
|
|
2042
2754
|
capitalDeployed: number;
|
|
2043
|
-
dealCount: number;
|
|
2044
2755
|
};
|
|
2045
2756
|
};
|
|
2046
2757
|
}, {
|
|
@@ -2048,10 +2759,10 @@ export declare const myEarningsResponseSchema: z.ZodObject<{
|
|
|
2048
2759
|
type: "investor-earnings";
|
|
2049
2760
|
id: string;
|
|
2050
2761
|
attributes: {
|
|
2762
|
+
dealCount: number;
|
|
2051
2763
|
realizedEarnings: number;
|
|
2052
2764
|
projectedEarnings: number;
|
|
2053
2765
|
capitalDeployed: number;
|
|
2054
|
-
dealCount: number;
|
|
2055
2766
|
currency?: string | undefined;
|
|
2056
2767
|
};
|
|
2057
2768
|
};
|
|
@@ -2068,6 +2779,10 @@ export type CommodityDealResponse = z.infer<typeof commodityDealResponseSchema>;
|
|
|
2068
2779
|
export type CommodityDealListResponse = z.infer<typeof commodityDealListResponseSchema>;
|
|
2069
2780
|
export type CommodityDealSummary = z.infer<typeof commodityDealSummarySchema>;
|
|
2070
2781
|
export type CommodityDealSummaryResponse = z.infer<typeof commodityDealSummaryResponseSchema>;
|
|
2782
|
+
export type CommodityDealInsightsPeriod = z.infer<typeof commodityDealInsightsPeriodSchema>;
|
|
2783
|
+
export type CommodityDealInsightsTotals = z.infer<typeof commodityDealInsightsTotalsSchema>;
|
|
2784
|
+
export type CommodityDealInsights = z.infer<typeof commodityDealInsightsSchema>;
|
|
2785
|
+
export type CommodityDealInsightsResponse = z.infer<typeof commodityDealInsightsResponseSchema>;
|
|
2071
2786
|
export type CreateDealParticipantInput = z.infer<typeof createDealParticipantSchema>;
|
|
2072
2787
|
export type UpdateDealParticipantInput = z.infer<typeof updateDealParticipantSchema>;
|
|
2073
2788
|
export type MyEarningsResponse = z.infer<typeof myEarningsResponseSchema>;
|