@deepintel-ltd/farmpro-contracts 1.15.3 → 1.15.5
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/commodity-deals.routes.d.ts +632 -6
- package/dist/routes/commodity-deals.routes.d.ts.map +1 -1
- package/dist/routes/commodity-deals.routes.js +17 -1
- package/dist/schemas/commodity-deals.schemas.d.ts +776 -8
- package/dist/schemas/commodity-deals.schemas.d.ts.map +1 -1
- package/dist/schemas/commodity-deals.schemas.js +73 -0
- package/package.json +1 -1
|
@@ -77,6 +77,7 @@ export declare const commodityDealsRouter: {
|
|
|
77
77
|
email?: string | undefined;
|
|
78
78
|
name?: string | undefined;
|
|
79
79
|
}>, "many">>;
|
|
80
|
+
staffCommissionPaidAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
80
81
|
computed: z.ZodObject<{
|
|
81
82
|
totalCost: z.ZodNumber;
|
|
82
83
|
saleAmount: z.ZodNullable<z.ZodNumber>;
|
|
@@ -179,6 +180,7 @@ export declare const commodityDealsRouter: {
|
|
|
179
180
|
email?: string | undefined;
|
|
180
181
|
name?: string | undefined;
|
|
181
182
|
}[] | undefined;
|
|
183
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
182
184
|
}, {
|
|
183
185
|
status: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced";
|
|
184
186
|
createdAt: string;
|
|
@@ -226,6 +228,7 @@ export declare const commodityDealsRouter: {
|
|
|
226
228
|
email?: string | undefined;
|
|
227
229
|
name?: string | undefined;
|
|
228
230
|
}[] | undefined;
|
|
231
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
229
232
|
}>;
|
|
230
233
|
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
231
234
|
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -280,6 +283,7 @@ export declare const commodityDealsRouter: {
|
|
|
280
283
|
email?: string | undefined;
|
|
281
284
|
name?: string | undefined;
|
|
282
285
|
}[] | undefined;
|
|
286
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
283
287
|
};
|
|
284
288
|
relationships?: Record<string, unknown> | undefined;
|
|
285
289
|
links?: Record<string, string> | undefined;
|
|
@@ -334,6 +338,7 @@ export declare const commodityDealsRouter: {
|
|
|
334
338
|
email?: string | undefined;
|
|
335
339
|
name?: string | undefined;
|
|
336
340
|
}[] | undefined;
|
|
341
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
337
342
|
};
|
|
338
343
|
relationships?: Record<string, unknown> | undefined;
|
|
339
344
|
links?: Record<string, string> | undefined;
|
|
@@ -414,6 +419,7 @@ export declare const commodityDealsRouter: {
|
|
|
414
419
|
email?: string | undefined;
|
|
415
420
|
name?: string | undefined;
|
|
416
421
|
}[] | undefined;
|
|
422
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
417
423
|
};
|
|
418
424
|
relationships?: Record<string, unknown> | undefined;
|
|
419
425
|
links?: Record<string, string> | undefined;
|
|
@@ -480,6 +486,7 @@ export declare const commodityDealsRouter: {
|
|
|
480
486
|
email?: string | undefined;
|
|
481
487
|
name?: string | undefined;
|
|
482
488
|
}[] | undefined;
|
|
489
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
483
490
|
};
|
|
484
491
|
relationships?: Record<string, unknown> | undefined;
|
|
485
492
|
links?: Record<string, string> | undefined;
|
|
@@ -698,6 +705,9 @@ export declare const commodityDealsRouter: {
|
|
|
698
705
|
totalCostsOnPaidDeals: z.ZodNumber;
|
|
699
706
|
grossProfitOnPaidDeals: z.ZodNumber;
|
|
700
707
|
totalCommissionOnPaidDeals: z.ZodNumber;
|
|
708
|
+
totalStaffCommissionPaidOut: z.ZodOptional<z.ZodNumber>;
|
|
709
|
+
totalStaffCommissionUnpaid: z.ZodOptional<z.ZodNumber>;
|
|
710
|
+
staffCommissionsEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
701
711
|
companyNetOnPaidDeals: z.ZodNumber;
|
|
702
712
|
totalCompanyCommissionOnPaidDeals: z.ZodOptional<z.ZodNumber>;
|
|
703
713
|
totalInvestorPoolOnPaidDeals: z.ZodOptional<z.ZodNumber>;
|
|
@@ -713,6 +723,9 @@ export declare const commodityDealsRouter: {
|
|
|
713
723
|
totalCommissionOnPaidDeals: number;
|
|
714
724
|
companyNetOnPaidDeals: number;
|
|
715
725
|
unrealizedGrossProfit: number;
|
|
726
|
+
totalStaffCommissionPaidOut?: number | undefined;
|
|
727
|
+
totalStaffCommissionUnpaid?: number | undefined;
|
|
728
|
+
staffCommissionsEnabled?: boolean | undefined;
|
|
716
729
|
totalCompanyCommissionOnPaidDeals?: number | undefined;
|
|
717
730
|
totalInvestorPoolOnPaidDeals?: number | undefined;
|
|
718
731
|
}, {
|
|
@@ -725,6 +738,9 @@ export declare const commodityDealsRouter: {
|
|
|
725
738
|
companyNetOnPaidDeals: number;
|
|
726
739
|
unrealizedGrossProfit: number;
|
|
727
740
|
currency?: string | undefined;
|
|
741
|
+
totalStaffCommissionPaidOut?: number | undefined;
|
|
742
|
+
totalStaffCommissionUnpaid?: number | undefined;
|
|
743
|
+
staffCommissionsEnabled?: boolean | undefined;
|
|
728
744
|
totalCompanyCommissionOnPaidDeals?: number | undefined;
|
|
729
745
|
totalInvestorPoolOnPaidDeals?: number | undefined;
|
|
730
746
|
}>;
|
|
@@ -739,6 +755,9 @@ export declare const commodityDealsRouter: {
|
|
|
739
755
|
totalCommissionOnPaidDeals: number;
|
|
740
756
|
companyNetOnPaidDeals: number;
|
|
741
757
|
unrealizedGrossProfit: number;
|
|
758
|
+
totalStaffCommissionPaidOut?: number | undefined;
|
|
759
|
+
totalStaffCommissionUnpaid?: number | undefined;
|
|
760
|
+
staffCommissionsEnabled?: boolean | undefined;
|
|
742
761
|
totalCompanyCommissionOnPaidDeals?: number | undefined;
|
|
743
762
|
totalInvestorPoolOnPaidDeals?: number | undefined;
|
|
744
763
|
};
|
|
@@ -753,6 +772,9 @@ export declare const commodityDealsRouter: {
|
|
|
753
772
|
companyNetOnPaidDeals: number;
|
|
754
773
|
unrealizedGrossProfit: number;
|
|
755
774
|
currency?: string | undefined;
|
|
775
|
+
totalStaffCommissionPaidOut?: number | undefined;
|
|
776
|
+
totalStaffCommissionUnpaid?: number | undefined;
|
|
777
|
+
staffCommissionsEnabled?: boolean | undefined;
|
|
756
778
|
totalCompanyCommissionOnPaidDeals?: number | undefined;
|
|
757
779
|
totalInvestorPoolOnPaidDeals?: number | undefined;
|
|
758
780
|
};
|
|
@@ -939,6 +961,561 @@ export declare const commodityDealsRouter: {
|
|
|
939
961
|
}>;
|
|
940
962
|
};
|
|
941
963
|
};
|
|
964
|
+
getCommodityDealInsights: {
|
|
965
|
+
pathParams: z.ZodObject<{
|
|
966
|
+
organizationId: z.ZodString;
|
|
967
|
+
}, "strip", z.ZodTypeAny, {
|
|
968
|
+
organizationId: string;
|
|
969
|
+
}, {
|
|
970
|
+
organizationId: string;
|
|
971
|
+
}>;
|
|
972
|
+
query: z.ZodObject<{
|
|
973
|
+
period: z.ZodDefault<z.ZodOptional<z.ZodEnum<["this_month", "last_3_months", "ytd", "all"]>>>;
|
|
974
|
+
}, "strip", z.ZodTypeAny, {
|
|
975
|
+
period: "all" | "this_month" | "last_3_months" | "ytd";
|
|
976
|
+
}, {
|
|
977
|
+
period?: "all" | "this_month" | "last_3_months" | "ytd" | undefined;
|
|
978
|
+
}>;
|
|
979
|
+
summary: "Get period-aware commodity deal profitability insights and trends";
|
|
980
|
+
method: "GET";
|
|
981
|
+
path: "/organizations/:organizationId/commodity-deals/insights";
|
|
982
|
+
responses: {
|
|
983
|
+
200: z.ZodObject<{
|
|
984
|
+
data: z.ZodObject<{
|
|
985
|
+
period: z.ZodEnum<["this_month", "last_3_months", "ytd", "all"]>;
|
|
986
|
+
currency: z.ZodDefault<z.ZodString>;
|
|
987
|
+
totalDealCount: z.ZodNumber;
|
|
988
|
+
totals: z.ZodObject<{
|
|
989
|
+
paidDealCount: z.ZodNumber;
|
|
990
|
+
paidRevenue: z.ZodNumber;
|
|
991
|
+
totalCost: z.ZodNumber;
|
|
992
|
+
grossProfit: z.ZodNumber;
|
|
993
|
+
companyKeep: z.ZodNumber;
|
|
994
|
+
investorPool: z.ZodNumber;
|
|
995
|
+
staffCommission: z.ZodNumber;
|
|
996
|
+
avgMarginPct: z.ZodNullable<z.ZodNumber>;
|
|
997
|
+
}, "strip", z.ZodTypeAny, {
|
|
998
|
+
totalCost: number;
|
|
999
|
+
grossProfit: number;
|
|
1000
|
+
investorPool: number;
|
|
1001
|
+
paidDealCount: number;
|
|
1002
|
+
paidRevenue: number;
|
|
1003
|
+
companyKeep: number;
|
|
1004
|
+
staffCommission: number;
|
|
1005
|
+
avgMarginPct: number | null;
|
|
1006
|
+
}, {
|
|
1007
|
+
totalCost: number;
|
|
1008
|
+
grossProfit: number;
|
|
1009
|
+
investorPool: number;
|
|
1010
|
+
paidDealCount: number;
|
|
1011
|
+
paidRevenue: number;
|
|
1012
|
+
companyKeep: number;
|
|
1013
|
+
staffCommission: number;
|
|
1014
|
+
avgMarginPct: number | null;
|
|
1015
|
+
}>;
|
|
1016
|
+
prior: z.ZodNullable<z.ZodObject<{
|
|
1017
|
+
paidDealCount: z.ZodNumber;
|
|
1018
|
+
paidRevenue: z.ZodNumber;
|
|
1019
|
+
totalCost: z.ZodNumber;
|
|
1020
|
+
grossProfit: z.ZodNumber;
|
|
1021
|
+
companyKeep: z.ZodNumber;
|
|
1022
|
+
investorPool: z.ZodNumber;
|
|
1023
|
+
staffCommission: z.ZodNumber;
|
|
1024
|
+
avgMarginPct: z.ZodNullable<z.ZodNumber>;
|
|
1025
|
+
}, "strip", z.ZodTypeAny, {
|
|
1026
|
+
totalCost: number;
|
|
1027
|
+
grossProfit: number;
|
|
1028
|
+
investorPool: number;
|
|
1029
|
+
paidDealCount: number;
|
|
1030
|
+
paidRevenue: number;
|
|
1031
|
+
companyKeep: number;
|
|
1032
|
+
staffCommission: number;
|
|
1033
|
+
avgMarginPct: number | null;
|
|
1034
|
+
}, {
|
|
1035
|
+
totalCost: number;
|
|
1036
|
+
grossProfit: number;
|
|
1037
|
+
investorPool: number;
|
|
1038
|
+
paidDealCount: number;
|
|
1039
|
+
paidRevenue: number;
|
|
1040
|
+
companyKeep: number;
|
|
1041
|
+
staffCommission: number;
|
|
1042
|
+
avgMarginPct: number | null;
|
|
1043
|
+
}>>;
|
|
1044
|
+
monthly: z.ZodArray<z.ZodObject<{
|
|
1045
|
+
month: z.ZodString;
|
|
1046
|
+
paidRevenue: z.ZodNumber;
|
|
1047
|
+
companyKeep: z.ZodNumber;
|
|
1048
|
+
grossProfit: z.ZodNumber;
|
|
1049
|
+
dealCount: z.ZodNumber;
|
|
1050
|
+
}, "strip", z.ZodTypeAny, {
|
|
1051
|
+
month: string;
|
|
1052
|
+
grossProfit: number;
|
|
1053
|
+
paidRevenue: number;
|
|
1054
|
+
companyKeep: number;
|
|
1055
|
+
dealCount: number;
|
|
1056
|
+
}, {
|
|
1057
|
+
month: string;
|
|
1058
|
+
grossProfit: number;
|
|
1059
|
+
paidRevenue: number;
|
|
1060
|
+
companyKeep: number;
|
|
1061
|
+
dealCount: number;
|
|
1062
|
+
}>, "many">;
|
|
1063
|
+
profitSplit: z.ZodObject<{
|
|
1064
|
+
companyKeep: z.ZodNumber;
|
|
1065
|
+
investorPool: z.ZodNumber;
|
|
1066
|
+
staffCommission: z.ZodNumber;
|
|
1067
|
+
}, "strip", z.ZodTypeAny, {
|
|
1068
|
+
investorPool: number;
|
|
1069
|
+
companyKeep: number;
|
|
1070
|
+
staffCommission: number;
|
|
1071
|
+
}, {
|
|
1072
|
+
investorPool: number;
|
|
1073
|
+
companyKeep: number;
|
|
1074
|
+
staffCommission: number;
|
|
1075
|
+
}>;
|
|
1076
|
+
byBuyer: z.ZodArray<z.ZodObject<{
|
|
1077
|
+
buyerId: z.ZodString;
|
|
1078
|
+
buyerName: z.ZodString;
|
|
1079
|
+
paidRevenue: z.ZodNumber;
|
|
1080
|
+
companyKeep: z.ZodNumber;
|
|
1081
|
+
dealCount: z.ZodNumber;
|
|
1082
|
+
marginPct: z.ZodNullable<z.ZodNumber>;
|
|
1083
|
+
}, "strip", z.ZodTypeAny, {
|
|
1084
|
+
buyerName: string;
|
|
1085
|
+
buyerId: string;
|
|
1086
|
+
paidRevenue: number;
|
|
1087
|
+
companyKeep: number;
|
|
1088
|
+
dealCount: number;
|
|
1089
|
+
marginPct: number | null;
|
|
1090
|
+
}, {
|
|
1091
|
+
buyerName: string;
|
|
1092
|
+
buyerId: string;
|
|
1093
|
+
paidRevenue: number;
|
|
1094
|
+
companyKeep: number;
|
|
1095
|
+
dealCount: number;
|
|
1096
|
+
marginPct: number | null;
|
|
1097
|
+
}>, "many">;
|
|
1098
|
+
pipeline: z.ZodObject<{
|
|
1099
|
+
invoicedUnpaidCount: z.ZodNumber;
|
|
1100
|
+
overdueCount: z.ZodNumber;
|
|
1101
|
+
unrealizedGrossProfit: z.ZodNumber;
|
|
1102
|
+
unpaidInvoiceTotal: z.ZodNumber;
|
|
1103
|
+
overdueInvoiceTotal: z.ZodNumber;
|
|
1104
|
+
}, "strip", z.ZodTypeAny, {
|
|
1105
|
+
invoicedUnpaidCount: number;
|
|
1106
|
+
unrealizedGrossProfit: number;
|
|
1107
|
+
overdueCount: number;
|
|
1108
|
+
unpaidInvoiceTotal: number;
|
|
1109
|
+
overdueInvoiceTotal: number;
|
|
1110
|
+
}, {
|
|
1111
|
+
invoicedUnpaidCount: number;
|
|
1112
|
+
unrealizedGrossProfit: number;
|
|
1113
|
+
overdueCount: number;
|
|
1114
|
+
unpaidInvoiceTotal: number;
|
|
1115
|
+
overdueInvoiceTotal: number;
|
|
1116
|
+
}>;
|
|
1117
|
+
staffCommissionUnpaid: z.ZodNumber;
|
|
1118
|
+
staffCommissionsEnabled: z.ZodBoolean;
|
|
1119
|
+
}, "strip", z.ZodTypeAny, {
|
|
1120
|
+
currency: string;
|
|
1121
|
+
monthly: {
|
|
1122
|
+
month: string;
|
|
1123
|
+
grossProfit: number;
|
|
1124
|
+
paidRevenue: number;
|
|
1125
|
+
companyKeep: number;
|
|
1126
|
+
dealCount: number;
|
|
1127
|
+
}[];
|
|
1128
|
+
period: "all" | "this_month" | "last_3_months" | "ytd";
|
|
1129
|
+
staffCommissionsEnabled: boolean;
|
|
1130
|
+
totalDealCount: number;
|
|
1131
|
+
totals: {
|
|
1132
|
+
totalCost: number;
|
|
1133
|
+
grossProfit: number;
|
|
1134
|
+
investorPool: number;
|
|
1135
|
+
paidDealCount: number;
|
|
1136
|
+
paidRevenue: number;
|
|
1137
|
+
companyKeep: number;
|
|
1138
|
+
staffCommission: number;
|
|
1139
|
+
avgMarginPct: number | null;
|
|
1140
|
+
};
|
|
1141
|
+
prior: {
|
|
1142
|
+
totalCost: number;
|
|
1143
|
+
grossProfit: number;
|
|
1144
|
+
investorPool: number;
|
|
1145
|
+
paidDealCount: number;
|
|
1146
|
+
paidRevenue: number;
|
|
1147
|
+
companyKeep: number;
|
|
1148
|
+
staffCommission: number;
|
|
1149
|
+
avgMarginPct: number | null;
|
|
1150
|
+
} | null;
|
|
1151
|
+
profitSplit: {
|
|
1152
|
+
investorPool: number;
|
|
1153
|
+
companyKeep: number;
|
|
1154
|
+
staffCommission: number;
|
|
1155
|
+
};
|
|
1156
|
+
byBuyer: {
|
|
1157
|
+
buyerName: string;
|
|
1158
|
+
buyerId: string;
|
|
1159
|
+
paidRevenue: number;
|
|
1160
|
+
companyKeep: number;
|
|
1161
|
+
dealCount: number;
|
|
1162
|
+
marginPct: number | null;
|
|
1163
|
+
}[];
|
|
1164
|
+
pipeline: {
|
|
1165
|
+
invoicedUnpaidCount: number;
|
|
1166
|
+
unrealizedGrossProfit: number;
|
|
1167
|
+
overdueCount: number;
|
|
1168
|
+
unpaidInvoiceTotal: number;
|
|
1169
|
+
overdueInvoiceTotal: number;
|
|
1170
|
+
};
|
|
1171
|
+
staffCommissionUnpaid: number;
|
|
1172
|
+
}, {
|
|
1173
|
+
monthly: {
|
|
1174
|
+
month: string;
|
|
1175
|
+
grossProfit: number;
|
|
1176
|
+
paidRevenue: number;
|
|
1177
|
+
companyKeep: number;
|
|
1178
|
+
dealCount: number;
|
|
1179
|
+
}[];
|
|
1180
|
+
period: "all" | "this_month" | "last_3_months" | "ytd";
|
|
1181
|
+
staffCommissionsEnabled: boolean;
|
|
1182
|
+
totalDealCount: number;
|
|
1183
|
+
totals: {
|
|
1184
|
+
totalCost: number;
|
|
1185
|
+
grossProfit: number;
|
|
1186
|
+
investorPool: number;
|
|
1187
|
+
paidDealCount: number;
|
|
1188
|
+
paidRevenue: number;
|
|
1189
|
+
companyKeep: number;
|
|
1190
|
+
staffCommission: number;
|
|
1191
|
+
avgMarginPct: number | null;
|
|
1192
|
+
};
|
|
1193
|
+
prior: {
|
|
1194
|
+
totalCost: number;
|
|
1195
|
+
grossProfit: number;
|
|
1196
|
+
investorPool: number;
|
|
1197
|
+
paidDealCount: number;
|
|
1198
|
+
paidRevenue: number;
|
|
1199
|
+
companyKeep: number;
|
|
1200
|
+
staffCommission: number;
|
|
1201
|
+
avgMarginPct: number | null;
|
|
1202
|
+
} | null;
|
|
1203
|
+
profitSplit: {
|
|
1204
|
+
investorPool: number;
|
|
1205
|
+
companyKeep: number;
|
|
1206
|
+
staffCommission: number;
|
|
1207
|
+
};
|
|
1208
|
+
byBuyer: {
|
|
1209
|
+
buyerName: string;
|
|
1210
|
+
buyerId: string;
|
|
1211
|
+
paidRevenue: number;
|
|
1212
|
+
companyKeep: number;
|
|
1213
|
+
dealCount: number;
|
|
1214
|
+
marginPct: number | null;
|
|
1215
|
+
}[];
|
|
1216
|
+
pipeline: {
|
|
1217
|
+
invoicedUnpaidCount: number;
|
|
1218
|
+
unrealizedGrossProfit: number;
|
|
1219
|
+
overdueCount: number;
|
|
1220
|
+
unpaidInvoiceTotal: number;
|
|
1221
|
+
overdueInvoiceTotal: number;
|
|
1222
|
+
};
|
|
1223
|
+
staffCommissionUnpaid: number;
|
|
1224
|
+
currency?: string | undefined;
|
|
1225
|
+
}>;
|
|
1226
|
+
}, "strip", z.ZodTypeAny, {
|
|
1227
|
+
data: {
|
|
1228
|
+
currency: string;
|
|
1229
|
+
monthly: {
|
|
1230
|
+
month: string;
|
|
1231
|
+
grossProfit: number;
|
|
1232
|
+
paidRevenue: number;
|
|
1233
|
+
companyKeep: number;
|
|
1234
|
+
dealCount: number;
|
|
1235
|
+
}[];
|
|
1236
|
+
period: "all" | "this_month" | "last_3_months" | "ytd";
|
|
1237
|
+
staffCommissionsEnabled: boolean;
|
|
1238
|
+
totalDealCount: number;
|
|
1239
|
+
totals: {
|
|
1240
|
+
totalCost: number;
|
|
1241
|
+
grossProfit: number;
|
|
1242
|
+
investorPool: number;
|
|
1243
|
+
paidDealCount: number;
|
|
1244
|
+
paidRevenue: number;
|
|
1245
|
+
companyKeep: number;
|
|
1246
|
+
staffCommission: number;
|
|
1247
|
+
avgMarginPct: number | null;
|
|
1248
|
+
};
|
|
1249
|
+
prior: {
|
|
1250
|
+
totalCost: number;
|
|
1251
|
+
grossProfit: number;
|
|
1252
|
+
investorPool: number;
|
|
1253
|
+
paidDealCount: number;
|
|
1254
|
+
paidRevenue: number;
|
|
1255
|
+
companyKeep: number;
|
|
1256
|
+
staffCommission: number;
|
|
1257
|
+
avgMarginPct: number | null;
|
|
1258
|
+
} | null;
|
|
1259
|
+
profitSplit: {
|
|
1260
|
+
investorPool: number;
|
|
1261
|
+
companyKeep: number;
|
|
1262
|
+
staffCommission: number;
|
|
1263
|
+
};
|
|
1264
|
+
byBuyer: {
|
|
1265
|
+
buyerName: string;
|
|
1266
|
+
buyerId: string;
|
|
1267
|
+
paidRevenue: number;
|
|
1268
|
+
companyKeep: number;
|
|
1269
|
+
dealCount: number;
|
|
1270
|
+
marginPct: number | null;
|
|
1271
|
+
}[];
|
|
1272
|
+
pipeline: {
|
|
1273
|
+
invoicedUnpaidCount: number;
|
|
1274
|
+
unrealizedGrossProfit: number;
|
|
1275
|
+
overdueCount: number;
|
|
1276
|
+
unpaidInvoiceTotal: number;
|
|
1277
|
+
overdueInvoiceTotal: number;
|
|
1278
|
+
};
|
|
1279
|
+
staffCommissionUnpaid: number;
|
|
1280
|
+
};
|
|
1281
|
+
}, {
|
|
1282
|
+
data: {
|
|
1283
|
+
monthly: {
|
|
1284
|
+
month: string;
|
|
1285
|
+
grossProfit: number;
|
|
1286
|
+
paidRevenue: number;
|
|
1287
|
+
companyKeep: number;
|
|
1288
|
+
dealCount: number;
|
|
1289
|
+
}[];
|
|
1290
|
+
period: "all" | "this_month" | "last_3_months" | "ytd";
|
|
1291
|
+
staffCommissionsEnabled: boolean;
|
|
1292
|
+
totalDealCount: number;
|
|
1293
|
+
totals: {
|
|
1294
|
+
totalCost: number;
|
|
1295
|
+
grossProfit: number;
|
|
1296
|
+
investorPool: number;
|
|
1297
|
+
paidDealCount: number;
|
|
1298
|
+
paidRevenue: number;
|
|
1299
|
+
companyKeep: number;
|
|
1300
|
+
staffCommission: number;
|
|
1301
|
+
avgMarginPct: number | null;
|
|
1302
|
+
};
|
|
1303
|
+
prior: {
|
|
1304
|
+
totalCost: number;
|
|
1305
|
+
grossProfit: number;
|
|
1306
|
+
investorPool: number;
|
|
1307
|
+
paidDealCount: number;
|
|
1308
|
+
paidRevenue: number;
|
|
1309
|
+
companyKeep: number;
|
|
1310
|
+
staffCommission: number;
|
|
1311
|
+
avgMarginPct: number | null;
|
|
1312
|
+
} | null;
|
|
1313
|
+
profitSplit: {
|
|
1314
|
+
investorPool: number;
|
|
1315
|
+
companyKeep: number;
|
|
1316
|
+
staffCommission: number;
|
|
1317
|
+
};
|
|
1318
|
+
byBuyer: {
|
|
1319
|
+
buyerName: string;
|
|
1320
|
+
buyerId: string;
|
|
1321
|
+
paidRevenue: number;
|
|
1322
|
+
companyKeep: number;
|
|
1323
|
+
dealCount: number;
|
|
1324
|
+
marginPct: number | null;
|
|
1325
|
+
}[];
|
|
1326
|
+
pipeline: {
|
|
1327
|
+
invoicedUnpaidCount: number;
|
|
1328
|
+
unrealizedGrossProfit: number;
|
|
1329
|
+
overdueCount: number;
|
|
1330
|
+
unpaidInvoiceTotal: number;
|
|
1331
|
+
overdueInvoiceTotal: number;
|
|
1332
|
+
};
|
|
1333
|
+
staffCommissionUnpaid: number;
|
|
1334
|
+
currency?: string | undefined;
|
|
1335
|
+
};
|
|
1336
|
+
}>;
|
|
1337
|
+
401: z.ZodObject<{
|
|
1338
|
+
errors: z.ZodArray<z.ZodObject<{
|
|
1339
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1340
|
+
links: z.ZodOptional<z.ZodObject<{
|
|
1341
|
+
about: z.ZodOptional<z.ZodString>;
|
|
1342
|
+
}, "strip", z.ZodTypeAny, {
|
|
1343
|
+
about?: string | undefined;
|
|
1344
|
+
}, {
|
|
1345
|
+
about?: string | undefined;
|
|
1346
|
+
}>>;
|
|
1347
|
+
status: z.ZodOptional<z.ZodString>;
|
|
1348
|
+
code: z.ZodOptional<z.ZodString>;
|
|
1349
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1350
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
1351
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
1352
|
+
pointer: z.ZodOptional<z.ZodString>;
|
|
1353
|
+
parameter: z.ZodOptional<z.ZodString>;
|
|
1354
|
+
}, "strip", z.ZodTypeAny, {
|
|
1355
|
+
pointer?: string | undefined;
|
|
1356
|
+
parameter?: string | undefined;
|
|
1357
|
+
}, {
|
|
1358
|
+
pointer?: string | undefined;
|
|
1359
|
+
parameter?: string | undefined;
|
|
1360
|
+
}>>;
|
|
1361
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1362
|
+
}, "strip", z.ZodTypeAny, {
|
|
1363
|
+
status?: string | undefined;
|
|
1364
|
+
code?: string | undefined;
|
|
1365
|
+
id?: string | undefined;
|
|
1366
|
+
links?: {
|
|
1367
|
+
about?: string | undefined;
|
|
1368
|
+
} | undefined;
|
|
1369
|
+
meta?: Record<string, unknown> | undefined;
|
|
1370
|
+
title?: string | undefined;
|
|
1371
|
+
detail?: string | undefined;
|
|
1372
|
+
source?: {
|
|
1373
|
+
pointer?: string | undefined;
|
|
1374
|
+
parameter?: string | undefined;
|
|
1375
|
+
} | undefined;
|
|
1376
|
+
}, {
|
|
1377
|
+
status?: string | undefined;
|
|
1378
|
+
code?: string | undefined;
|
|
1379
|
+
id?: string | undefined;
|
|
1380
|
+
links?: {
|
|
1381
|
+
about?: string | undefined;
|
|
1382
|
+
} | undefined;
|
|
1383
|
+
meta?: Record<string, unknown> | undefined;
|
|
1384
|
+
title?: string | undefined;
|
|
1385
|
+
detail?: string | undefined;
|
|
1386
|
+
source?: {
|
|
1387
|
+
pointer?: string | undefined;
|
|
1388
|
+
parameter?: string | undefined;
|
|
1389
|
+
} | undefined;
|
|
1390
|
+
}>, "many">;
|
|
1391
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1392
|
+
}, "strip", z.ZodTypeAny, {
|
|
1393
|
+
errors: {
|
|
1394
|
+
status?: string | undefined;
|
|
1395
|
+
code?: string | undefined;
|
|
1396
|
+
id?: string | undefined;
|
|
1397
|
+
links?: {
|
|
1398
|
+
about?: string | undefined;
|
|
1399
|
+
} | undefined;
|
|
1400
|
+
meta?: Record<string, unknown> | undefined;
|
|
1401
|
+
title?: string | undefined;
|
|
1402
|
+
detail?: string | undefined;
|
|
1403
|
+
source?: {
|
|
1404
|
+
pointer?: string | undefined;
|
|
1405
|
+
parameter?: string | undefined;
|
|
1406
|
+
} | undefined;
|
|
1407
|
+
}[];
|
|
1408
|
+
meta?: Record<string, unknown> | undefined;
|
|
1409
|
+
}, {
|
|
1410
|
+
errors: {
|
|
1411
|
+
status?: string | undefined;
|
|
1412
|
+
code?: string | undefined;
|
|
1413
|
+
id?: string | undefined;
|
|
1414
|
+
links?: {
|
|
1415
|
+
about?: string | undefined;
|
|
1416
|
+
} | undefined;
|
|
1417
|
+
meta?: Record<string, unknown> | undefined;
|
|
1418
|
+
title?: string | undefined;
|
|
1419
|
+
detail?: string | undefined;
|
|
1420
|
+
source?: {
|
|
1421
|
+
pointer?: string | undefined;
|
|
1422
|
+
parameter?: string | undefined;
|
|
1423
|
+
} | undefined;
|
|
1424
|
+
}[];
|
|
1425
|
+
meta?: Record<string, unknown> | undefined;
|
|
1426
|
+
}>;
|
|
1427
|
+
404: z.ZodObject<{
|
|
1428
|
+
errors: z.ZodArray<z.ZodObject<{
|
|
1429
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1430
|
+
links: z.ZodOptional<z.ZodObject<{
|
|
1431
|
+
about: z.ZodOptional<z.ZodString>;
|
|
1432
|
+
}, "strip", z.ZodTypeAny, {
|
|
1433
|
+
about?: string | undefined;
|
|
1434
|
+
}, {
|
|
1435
|
+
about?: string | undefined;
|
|
1436
|
+
}>>;
|
|
1437
|
+
status: z.ZodOptional<z.ZodString>;
|
|
1438
|
+
code: z.ZodOptional<z.ZodString>;
|
|
1439
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1440
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
1441
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
1442
|
+
pointer: z.ZodOptional<z.ZodString>;
|
|
1443
|
+
parameter: z.ZodOptional<z.ZodString>;
|
|
1444
|
+
}, "strip", z.ZodTypeAny, {
|
|
1445
|
+
pointer?: string | undefined;
|
|
1446
|
+
parameter?: string | undefined;
|
|
1447
|
+
}, {
|
|
1448
|
+
pointer?: string | undefined;
|
|
1449
|
+
parameter?: string | undefined;
|
|
1450
|
+
}>>;
|
|
1451
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1452
|
+
}, "strip", z.ZodTypeAny, {
|
|
1453
|
+
status?: string | undefined;
|
|
1454
|
+
code?: string | undefined;
|
|
1455
|
+
id?: string | undefined;
|
|
1456
|
+
links?: {
|
|
1457
|
+
about?: string | undefined;
|
|
1458
|
+
} | undefined;
|
|
1459
|
+
meta?: Record<string, unknown> | undefined;
|
|
1460
|
+
title?: string | undefined;
|
|
1461
|
+
detail?: string | undefined;
|
|
1462
|
+
source?: {
|
|
1463
|
+
pointer?: string | undefined;
|
|
1464
|
+
parameter?: string | undefined;
|
|
1465
|
+
} | undefined;
|
|
1466
|
+
}, {
|
|
1467
|
+
status?: string | undefined;
|
|
1468
|
+
code?: string | undefined;
|
|
1469
|
+
id?: string | undefined;
|
|
1470
|
+
links?: {
|
|
1471
|
+
about?: string | undefined;
|
|
1472
|
+
} | undefined;
|
|
1473
|
+
meta?: Record<string, unknown> | undefined;
|
|
1474
|
+
title?: string | undefined;
|
|
1475
|
+
detail?: string | undefined;
|
|
1476
|
+
source?: {
|
|
1477
|
+
pointer?: string | undefined;
|
|
1478
|
+
parameter?: string | undefined;
|
|
1479
|
+
} | undefined;
|
|
1480
|
+
}>, "many">;
|
|
1481
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1482
|
+
}, "strip", z.ZodTypeAny, {
|
|
1483
|
+
errors: {
|
|
1484
|
+
status?: string | undefined;
|
|
1485
|
+
code?: string | undefined;
|
|
1486
|
+
id?: string | undefined;
|
|
1487
|
+
links?: {
|
|
1488
|
+
about?: string | undefined;
|
|
1489
|
+
} | undefined;
|
|
1490
|
+
meta?: Record<string, unknown> | undefined;
|
|
1491
|
+
title?: string | undefined;
|
|
1492
|
+
detail?: string | undefined;
|
|
1493
|
+
source?: {
|
|
1494
|
+
pointer?: string | undefined;
|
|
1495
|
+
parameter?: string | undefined;
|
|
1496
|
+
} | undefined;
|
|
1497
|
+
}[];
|
|
1498
|
+
meta?: Record<string, unknown> | undefined;
|
|
1499
|
+
}, {
|
|
1500
|
+
errors: {
|
|
1501
|
+
status?: string | undefined;
|
|
1502
|
+
code?: string | undefined;
|
|
1503
|
+
id?: string | undefined;
|
|
1504
|
+
links?: {
|
|
1505
|
+
about?: string | undefined;
|
|
1506
|
+
} | undefined;
|
|
1507
|
+
meta?: Record<string, unknown> | undefined;
|
|
1508
|
+
title?: string | undefined;
|
|
1509
|
+
detail?: string | undefined;
|
|
1510
|
+
source?: {
|
|
1511
|
+
pointer?: string | undefined;
|
|
1512
|
+
parameter?: string | undefined;
|
|
1513
|
+
} | undefined;
|
|
1514
|
+
}[];
|
|
1515
|
+
meta?: Record<string, unknown> | undefined;
|
|
1516
|
+
}>;
|
|
1517
|
+
};
|
|
1518
|
+
};
|
|
942
1519
|
getMyEarnings: {
|
|
943
1520
|
pathParams: z.ZodObject<{
|
|
944
1521
|
organizationId: z.ZodString;
|
|
@@ -963,15 +1540,15 @@ export declare const commodityDealsRouter: {
|
|
|
963
1540
|
currency: z.ZodDefault<z.ZodString>;
|
|
964
1541
|
}, "strip", z.ZodTypeAny, {
|
|
965
1542
|
currency: string;
|
|
1543
|
+
dealCount: number;
|
|
966
1544
|
realizedEarnings: number;
|
|
967
1545
|
projectedEarnings: number;
|
|
968
1546
|
capitalDeployed: number;
|
|
969
|
-
dealCount: number;
|
|
970
1547
|
}, {
|
|
1548
|
+
dealCount: number;
|
|
971
1549
|
realizedEarnings: number;
|
|
972
1550
|
projectedEarnings: number;
|
|
973
1551
|
capitalDeployed: number;
|
|
974
|
-
dealCount: number;
|
|
975
1552
|
currency?: string | undefined;
|
|
976
1553
|
}>;
|
|
977
1554
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -979,19 +1556,19 @@ export declare const commodityDealsRouter: {
|
|
|
979
1556
|
id: string;
|
|
980
1557
|
attributes: {
|
|
981
1558
|
currency: string;
|
|
1559
|
+
dealCount: number;
|
|
982
1560
|
realizedEarnings: number;
|
|
983
1561
|
projectedEarnings: number;
|
|
984
1562
|
capitalDeployed: number;
|
|
985
|
-
dealCount: number;
|
|
986
1563
|
};
|
|
987
1564
|
}, {
|
|
988
1565
|
type: "investor-earnings";
|
|
989
1566
|
id: string;
|
|
990
1567
|
attributes: {
|
|
1568
|
+
dealCount: number;
|
|
991
1569
|
realizedEarnings: number;
|
|
992
1570
|
projectedEarnings: number;
|
|
993
1571
|
capitalDeployed: number;
|
|
994
|
-
dealCount: number;
|
|
995
1572
|
currency?: string | undefined;
|
|
996
1573
|
};
|
|
997
1574
|
}>;
|
|
@@ -1001,10 +1578,10 @@ export declare const commodityDealsRouter: {
|
|
|
1001
1578
|
id: string;
|
|
1002
1579
|
attributes: {
|
|
1003
1580
|
currency: string;
|
|
1581
|
+
dealCount: number;
|
|
1004
1582
|
realizedEarnings: number;
|
|
1005
1583
|
projectedEarnings: number;
|
|
1006
1584
|
capitalDeployed: number;
|
|
1007
|
-
dealCount: number;
|
|
1008
1585
|
};
|
|
1009
1586
|
};
|
|
1010
1587
|
}, {
|
|
@@ -1012,10 +1589,10 @@ export declare const commodityDealsRouter: {
|
|
|
1012
1589
|
type: "investor-earnings";
|
|
1013
1590
|
id: string;
|
|
1014
1591
|
attributes: {
|
|
1592
|
+
dealCount: number;
|
|
1015
1593
|
realizedEarnings: number;
|
|
1016
1594
|
projectedEarnings: number;
|
|
1017
1595
|
capitalDeployed: number;
|
|
1018
|
-
dealCount: number;
|
|
1019
1596
|
currency?: string | undefined;
|
|
1020
1597
|
};
|
|
1021
1598
|
};
|
|
@@ -1264,6 +1841,7 @@ export declare const commodityDealsRouter: {
|
|
|
1264
1841
|
email?: string | undefined;
|
|
1265
1842
|
name?: string | undefined;
|
|
1266
1843
|
}>, "many">>;
|
|
1844
|
+
staffCommissionPaidAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1267
1845
|
computed: z.ZodObject<{
|
|
1268
1846
|
totalCost: z.ZodNumber;
|
|
1269
1847
|
saleAmount: z.ZodNullable<z.ZodNumber>;
|
|
@@ -1366,6 +1944,7 @@ export declare const commodityDealsRouter: {
|
|
|
1366
1944
|
email?: string | undefined;
|
|
1367
1945
|
name?: string | undefined;
|
|
1368
1946
|
}[] | undefined;
|
|
1947
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
1369
1948
|
}, {
|
|
1370
1949
|
status: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced";
|
|
1371
1950
|
createdAt: string;
|
|
@@ -1413,6 +1992,7 @@ export declare const commodityDealsRouter: {
|
|
|
1413
1992
|
email?: string | undefined;
|
|
1414
1993
|
name?: string | undefined;
|
|
1415
1994
|
}[] | undefined;
|
|
1995
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
1416
1996
|
}>;
|
|
1417
1997
|
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1418
1998
|
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -1467,6 +2047,7 @@ export declare const commodityDealsRouter: {
|
|
|
1467
2047
|
email?: string | undefined;
|
|
1468
2048
|
name?: string | undefined;
|
|
1469
2049
|
}[] | undefined;
|
|
2050
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
1470
2051
|
};
|
|
1471
2052
|
relationships?: Record<string, unknown> | undefined;
|
|
1472
2053
|
links?: Record<string, string> | undefined;
|
|
@@ -1521,6 +2102,7 @@ export declare const commodityDealsRouter: {
|
|
|
1521
2102
|
email?: string | undefined;
|
|
1522
2103
|
name?: string | undefined;
|
|
1523
2104
|
}[] | undefined;
|
|
2105
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
1524
2106
|
};
|
|
1525
2107
|
relationships?: Record<string, unknown> | undefined;
|
|
1526
2108
|
links?: Record<string, string> | undefined;
|
|
@@ -1601,6 +2183,7 @@ export declare const commodityDealsRouter: {
|
|
|
1601
2183
|
email?: string | undefined;
|
|
1602
2184
|
name?: string | undefined;
|
|
1603
2185
|
}[] | undefined;
|
|
2186
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
1604
2187
|
};
|
|
1605
2188
|
relationships?: Record<string, unknown> | undefined;
|
|
1606
2189
|
links?: Record<string, string> | undefined;
|
|
@@ -1667,6 +2250,7 @@ export declare const commodityDealsRouter: {
|
|
|
1667
2250
|
email?: string | undefined;
|
|
1668
2251
|
name?: string | undefined;
|
|
1669
2252
|
}[] | undefined;
|
|
2253
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
1670
2254
|
};
|
|
1671
2255
|
relationships?: Record<string, unknown> | undefined;
|
|
1672
2256
|
links?: Record<string, string> | undefined;
|
|
@@ -2030,6 +2614,7 @@ export declare const commodityDealsRouter: {
|
|
|
2030
2614
|
email?: string | undefined;
|
|
2031
2615
|
name?: string | undefined;
|
|
2032
2616
|
}>, "many">>;
|
|
2617
|
+
staffCommissionPaidAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2033
2618
|
computed: z.ZodObject<{
|
|
2034
2619
|
totalCost: z.ZodNumber;
|
|
2035
2620
|
saleAmount: z.ZodNullable<z.ZodNumber>;
|
|
@@ -2132,6 +2717,7 @@ export declare const commodityDealsRouter: {
|
|
|
2132
2717
|
email?: string | undefined;
|
|
2133
2718
|
name?: string | undefined;
|
|
2134
2719
|
}[] | undefined;
|
|
2720
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
2135
2721
|
}, {
|
|
2136
2722
|
status: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced";
|
|
2137
2723
|
createdAt: string;
|
|
@@ -2179,6 +2765,7 @@ export declare const commodityDealsRouter: {
|
|
|
2179
2765
|
email?: string | undefined;
|
|
2180
2766
|
name?: string | undefined;
|
|
2181
2767
|
}[] | undefined;
|
|
2768
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
2182
2769
|
}>;
|
|
2183
2770
|
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2184
2771
|
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -2233,6 +2820,7 @@ export declare const commodityDealsRouter: {
|
|
|
2233
2820
|
email?: string | undefined;
|
|
2234
2821
|
name?: string | undefined;
|
|
2235
2822
|
}[] | undefined;
|
|
2823
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
2236
2824
|
};
|
|
2237
2825
|
relationships?: Record<string, unknown> | undefined;
|
|
2238
2826
|
links?: Record<string, string> | undefined;
|
|
@@ -2287,6 +2875,7 @@ export declare const commodityDealsRouter: {
|
|
|
2287
2875
|
email?: string | undefined;
|
|
2288
2876
|
name?: string | undefined;
|
|
2289
2877
|
}[] | undefined;
|
|
2878
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
2290
2879
|
};
|
|
2291
2880
|
relationships?: Record<string, unknown> | undefined;
|
|
2292
2881
|
links?: Record<string, string> | undefined;
|
|
@@ -2367,6 +2956,7 @@ export declare const commodityDealsRouter: {
|
|
|
2367
2956
|
email?: string | undefined;
|
|
2368
2957
|
name?: string | undefined;
|
|
2369
2958
|
}[] | undefined;
|
|
2959
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
2370
2960
|
};
|
|
2371
2961
|
relationships?: Record<string, unknown> | undefined;
|
|
2372
2962
|
links?: Record<string, string> | undefined;
|
|
@@ -2433,6 +3023,7 @@ export declare const commodityDealsRouter: {
|
|
|
2433
3023
|
email?: string | undefined;
|
|
2434
3024
|
name?: string | undefined;
|
|
2435
3025
|
}[] | undefined;
|
|
3026
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
2436
3027
|
};
|
|
2437
3028
|
relationships?: Record<string, unknown> | undefined;
|
|
2438
3029
|
links?: Record<string, string> | undefined;
|
|
@@ -2930,6 +3521,7 @@ export declare const commodityDealsRouter: {
|
|
|
2930
3521
|
dealCapital: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2931
3522
|
companyFeeMode: z.ZodOptional<z.ZodNullable<z.ZodEnum<["percent_of_invoice", "per_kg"]>>>;
|
|
2932
3523
|
companyFeeValue: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
3524
|
+
staffCommissionPaidAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2933
3525
|
}, "strip", z.ZodTypeAny, {
|
|
2934
3526
|
status?: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced" | undefined;
|
|
2935
3527
|
currency?: string | undefined;
|
|
@@ -2942,6 +3534,7 @@ export declare const commodityDealsRouter: {
|
|
|
2942
3534
|
dealCapital?: number | null | undefined;
|
|
2943
3535
|
companyFeeMode?: "percent_of_invoice" | "per_kg" | null | undefined;
|
|
2944
3536
|
companyFeeValue?: number | null | undefined;
|
|
3537
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
2945
3538
|
}, {
|
|
2946
3539
|
status?: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced" | undefined;
|
|
2947
3540
|
currency?: string | undefined;
|
|
@@ -2954,6 +3547,7 @@ export declare const commodityDealsRouter: {
|
|
|
2954
3547
|
dealCapital?: number | null | undefined;
|
|
2955
3548
|
companyFeeMode?: "percent_of_invoice" | "per_kg" | null | undefined;
|
|
2956
3549
|
companyFeeValue?: number | null | undefined;
|
|
3550
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
2957
3551
|
}>;
|
|
2958
3552
|
}, "strip", z.ZodTypeAny, {
|
|
2959
3553
|
type: "commodity-deals";
|
|
@@ -2969,6 +3563,7 @@ export declare const commodityDealsRouter: {
|
|
|
2969
3563
|
dealCapital?: number | null | undefined;
|
|
2970
3564
|
companyFeeMode?: "percent_of_invoice" | "per_kg" | null | undefined;
|
|
2971
3565
|
companyFeeValue?: number | null | undefined;
|
|
3566
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
2972
3567
|
};
|
|
2973
3568
|
id?: string | undefined;
|
|
2974
3569
|
}, {
|
|
@@ -2985,6 +3580,7 @@ export declare const commodityDealsRouter: {
|
|
|
2985
3580
|
dealCapital?: number | null | undefined;
|
|
2986
3581
|
companyFeeMode?: "percent_of_invoice" | "per_kg" | null | undefined;
|
|
2987
3582
|
companyFeeValue?: number | null | undefined;
|
|
3583
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
2988
3584
|
};
|
|
2989
3585
|
id?: string | undefined;
|
|
2990
3586
|
}>;
|
|
@@ -3003,6 +3599,7 @@ export declare const commodityDealsRouter: {
|
|
|
3003
3599
|
dealCapital?: number | null | undefined;
|
|
3004
3600
|
companyFeeMode?: "percent_of_invoice" | "per_kg" | null | undefined;
|
|
3005
3601
|
companyFeeValue?: number | null | undefined;
|
|
3602
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
3006
3603
|
};
|
|
3007
3604
|
id?: string | undefined;
|
|
3008
3605
|
};
|
|
@@ -3021,6 +3618,7 @@ export declare const commodityDealsRouter: {
|
|
|
3021
3618
|
dealCapital?: number | null | undefined;
|
|
3022
3619
|
companyFeeMode?: "percent_of_invoice" | "per_kg" | null | undefined;
|
|
3023
3620
|
companyFeeValue?: number | null | undefined;
|
|
3621
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
3024
3622
|
};
|
|
3025
3623
|
id?: string | undefined;
|
|
3026
3624
|
};
|
|
@@ -3074,6 +3672,7 @@ export declare const commodityDealsRouter: {
|
|
|
3074
3672
|
email?: string | undefined;
|
|
3075
3673
|
name?: string | undefined;
|
|
3076
3674
|
}>, "many">>;
|
|
3675
|
+
staffCommissionPaidAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3077
3676
|
computed: z.ZodObject<{
|
|
3078
3677
|
totalCost: z.ZodNumber;
|
|
3079
3678
|
saleAmount: z.ZodNullable<z.ZodNumber>;
|
|
@@ -3176,6 +3775,7 @@ export declare const commodityDealsRouter: {
|
|
|
3176
3775
|
email?: string | undefined;
|
|
3177
3776
|
name?: string | undefined;
|
|
3178
3777
|
}[] | undefined;
|
|
3778
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
3179
3779
|
}, {
|
|
3180
3780
|
status: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced";
|
|
3181
3781
|
createdAt: string;
|
|
@@ -3223,6 +3823,7 @@ export declare const commodityDealsRouter: {
|
|
|
3223
3823
|
email?: string | undefined;
|
|
3224
3824
|
name?: string | undefined;
|
|
3225
3825
|
}[] | undefined;
|
|
3826
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
3226
3827
|
}>;
|
|
3227
3828
|
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3228
3829
|
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -3277,6 +3878,7 @@ export declare const commodityDealsRouter: {
|
|
|
3277
3878
|
email?: string | undefined;
|
|
3278
3879
|
name?: string | undefined;
|
|
3279
3880
|
}[] | undefined;
|
|
3881
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
3280
3882
|
};
|
|
3281
3883
|
relationships?: Record<string, unknown> | undefined;
|
|
3282
3884
|
links?: Record<string, string> | undefined;
|
|
@@ -3331,6 +3933,7 @@ export declare const commodityDealsRouter: {
|
|
|
3331
3933
|
email?: string | undefined;
|
|
3332
3934
|
name?: string | undefined;
|
|
3333
3935
|
}[] | undefined;
|
|
3936
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
3334
3937
|
};
|
|
3335
3938
|
relationships?: Record<string, unknown> | undefined;
|
|
3336
3939
|
links?: Record<string, string> | undefined;
|
|
@@ -3411,6 +4014,7 @@ export declare const commodityDealsRouter: {
|
|
|
3411
4014
|
email?: string | undefined;
|
|
3412
4015
|
name?: string | undefined;
|
|
3413
4016
|
}[] | undefined;
|
|
4017
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
3414
4018
|
};
|
|
3415
4019
|
relationships?: Record<string, unknown> | undefined;
|
|
3416
4020
|
links?: Record<string, string> | undefined;
|
|
@@ -3477,6 +4081,7 @@ export declare const commodityDealsRouter: {
|
|
|
3477
4081
|
email?: string | undefined;
|
|
3478
4082
|
name?: string | undefined;
|
|
3479
4083
|
}[] | undefined;
|
|
4084
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
3480
4085
|
};
|
|
3481
4086
|
relationships?: Record<string, unknown> | undefined;
|
|
3482
4087
|
links?: Record<string, string> | undefined;
|
|
@@ -4050,6 +4655,7 @@ export declare const commodityDealsRouter: {
|
|
|
4050
4655
|
email?: string | undefined;
|
|
4051
4656
|
name?: string | undefined;
|
|
4052
4657
|
}>, "many">>;
|
|
4658
|
+
staffCommissionPaidAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4053
4659
|
computed: z.ZodObject<{
|
|
4054
4660
|
totalCost: z.ZodNumber;
|
|
4055
4661
|
saleAmount: z.ZodNullable<z.ZodNumber>;
|
|
@@ -4152,6 +4758,7 @@ export declare const commodityDealsRouter: {
|
|
|
4152
4758
|
email?: string | undefined;
|
|
4153
4759
|
name?: string | undefined;
|
|
4154
4760
|
}[] | undefined;
|
|
4761
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
4155
4762
|
}, {
|
|
4156
4763
|
status: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced";
|
|
4157
4764
|
createdAt: string;
|
|
@@ -4199,6 +4806,7 @@ export declare const commodityDealsRouter: {
|
|
|
4199
4806
|
email?: string | undefined;
|
|
4200
4807
|
name?: string | undefined;
|
|
4201
4808
|
}[] | undefined;
|
|
4809
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
4202
4810
|
}>;
|
|
4203
4811
|
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4204
4812
|
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -4253,6 +4861,7 @@ export declare const commodityDealsRouter: {
|
|
|
4253
4861
|
email?: string | undefined;
|
|
4254
4862
|
name?: string | undefined;
|
|
4255
4863
|
}[] | undefined;
|
|
4864
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
4256
4865
|
};
|
|
4257
4866
|
relationships?: Record<string, unknown> | undefined;
|
|
4258
4867
|
links?: Record<string, string> | undefined;
|
|
@@ -4307,6 +4916,7 @@ export declare const commodityDealsRouter: {
|
|
|
4307
4916
|
email?: string | undefined;
|
|
4308
4917
|
name?: string | undefined;
|
|
4309
4918
|
}[] | undefined;
|
|
4919
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
4310
4920
|
};
|
|
4311
4921
|
relationships?: Record<string, unknown> | undefined;
|
|
4312
4922
|
links?: Record<string, string> | undefined;
|
|
@@ -4387,6 +4997,7 @@ export declare const commodityDealsRouter: {
|
|
|
4387
4997
|
email?: string | undefined;
|
|
4388
4998
|
name?: string | undefined;
|
|
4389
4999
|
}[] | undefined;
|
|
5000
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
4390
5001
|
};
|
|
4391
5002
|
relationships?: Record<string, unknown> | undefined;
|
|
4392
5003
|
links?: Record<string, string> | undefined;
|
|
@@ -4453,6 +5064,7 @@ export declare const commodityDealsRouter: {
|
|
|
4453
5064
|
email?: string | undefined;
|
|
4454
5065
|
name?: string | undefined;
|
|
4455
5066
|
}[] | undefined;
|
|
5067
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
4456
5068
|
};
|
|
4457
5069
|
relationships?: Record<string, unknown> | undefined;
|
|
4458
5070
|
links?: Record<string, string> | undefined;
|
|
@@ -5027,6 +5639,7 @@ export declare const commodityDealsRouter: {
|
|
|
5027
5639
|
email?: string | undefined;
|
|
5028
5640
|
name?: string | undefined;
|
|
5029
5641
|
}>, "many">>;
|
|
5642
|
+
staffCommissionPaidAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5030
5643
|
computed: z.ZodObject<{
|
|
5031
5644
|
totalCost: z.ZodNumber;
|
|
5032
5645
|
saleAmount: z.ZodNullable<z.ZodNumber>;
|
|
@@ -5129,6 +5742,7 @@ export declare const commodityDealsRouter: {
|
|
|
5129
5742
|
email?: string | undefined;
|
|
5130
5743
|
name?: string | undefined;
|
|
5131
5744
|
}[] | undefined;
|
|
5745
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
5132
5746
|
}, {
|
|
5133
5747
|
status: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced";
|
|
5134
5748
|
createdAt: string;
|
|
@@ -5176,6 +5790,7 @@ export declare const commodityDealsRouter: {
|
|
|
5176
5790
|
email?: string | undefined;
|
|
5177
5791
|
name?: string | undefined;
|
|
5178
5792
|
}[] | undefined;
|
|
5793
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
5179
5794
|
}>;
|
|
5180
5795
|
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
5181
5796
|
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -5230,6 +5845,7 @@ export declare const commodityDealsRouter: {
|
|
|
5230
5845
|
email?: string | undefined;
|
|
5231
5846
|
name?: string | undefined;
|
|
5232
5847
|
}[] | undefined;
|
|
5848
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
5233
5849
|
};
|
|
5234
5850
|
relationships?: Record<string, unknown> | undefined;
|
|
5235
5851
|
links?: Record<string, string> | undefined;
|
|
@@ -5284,6 +5900,7 @@ export declare const commodityDealsRouter: {
|
|
|
5284
5900
|
email?: string | undefined;
|
|
5285
5901
|
name?: string | undefined;
|
|
5286
5902
|
}[] | undefined;
|
|
5903
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
5287
5904
|
};
|
|
5288
5905
|
relationships?: Record<string, unknown> | undefined;
|
|
5289
5906
|
links?: Record<string, string> | undefined;
|
|
@@ -5364,6 +5981,7 @@ export declare const commodityDealsRouter: {
|
|
|
5364
5981
|
email?: string | undefined;
|
|
5365
5982
|
name?: string | undefined;
|
|
5366
5983
|
}[] | undefined;
|
|
5984
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
5367
5985
|
};
|
|
5368
5986
|
relationships?: Record<string, unknown> | undefined;
|
|
5369
5987
|
links?: Record<string, string> | undefined;
|
|
@@ -5430,6 +6048,7 @@ export declare const commodityDealsRouter: {
|
|
|
5430
6048
|
email?: string | undefined;
|
|
5431
6049
|
name?: string | undefined;
|
|
5432
6050
|
}[] | undefined;
|
|
6051
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
5433
6052
|
};
|
|
5434
6053
|
relationships?: Record<string, unknown> | undefined;
|
|
5435
6054
|
links?: Record<string, string> | undefined;
|
|
@@ -5963,6 +6582,7 @@ export declare const commodityDealsRouter: {
|
|
|
5963
6582
|
email?: string | undefined;
|
|
5964
6583
|
name?: string | undefined;
|
|
5965
6584
|
}>, "many">>;
|
|
6585
|
+
staffCommissionPaidAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5966
6586
|
computed: z.ZodObject<{
|
|
5967
6587
|
totalCost: z.ZodNumber;
|
|
5968
6588
|
saleAmount: z.ZodNullable<z.ZodNumber>;
|
|
@@ -6065,6 +6685,7 @@ export declare const commodityDealsRouter: {
|
|
|
6065
6685
|
email?: string | undefined;
|
|
6066
6686
|
name?: string | undefined;
|
|
6067
6687
|
}[] | undefined;
|
|
6688
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
6068
6689
|
}, {
|
|
6069
6690
|
status: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced";
|
|
6070
6691
|
createdAt: string;
|
|
@@ -6112,6 +6733,7 @@ export declare const commodityDealsRouter: {
|
|
|
6112
6733
|
email?: string | undefined;
|
|
6113
6734
|
name?: string | undefined;
|
|
6114
6735
|
}[] | undefined;
|
|
6736
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
6115
6737
|
}>;
|
|
6116
6738
|
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
6117
6739
|
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -6166,6 +6788,7 @@ export declare const commodityDealsRouter: {
|
|
|
6166
6788
|
email?: string | undefined;
|
|
6167
6789
|
name?: string | undefined;
|
|
6168
6790
|
}[] | undefined;
|
|
6791
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
6169
6792
|
};
|
|
6170
6793
|
relationships?: Record<string, unknown> | undefined;
|
|
6171
6794
|
links?: Record<string, string> | undefined;
|
|
@@ -6220,6 +6843,7 @@ export declare const commodityDealsRouter: {
|
|
|
6220
6843
|
email?: string | undefined;
|
|
6221
6844
|
name?: string | undefined;
|
|
6222
6845
|
}[] | undefined;
|
|
6846
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
6223
6847
|
};
|
|
6224
6848
|
relationships?: Record<string, unknown> | undefined;
|
|
6225
6849
|
links?: Record<string, string> | undefined;
|
|
@@ -6300,6 +6924,7 @@ export declare const commodityDealsRouter: {
|
|
|
6300
6924
|
email?: string | undefined;
|
|
6301
6925
|
name?: string | undefined;
|
|
6302
6926
|
}[] | undefined;
|
|
6927
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
6303
6928
|
};
|
|
6304
6929
|
relationships?: Record<string, unknown> | undefined;
|
|
6305
6930
|
links?: Record<string, string> | undefined;
|
|
@@ -6366,6 +6991,7 @@ export declare const commodityDealsRouter: {
|
|
|
6366
6991
|
email?: string | undefined;
|
|
6367
6992
|
name?: string | undefined;
|
|
6368
6993
|
}[] | undefined;
|
|
6994
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
6369
6995
|
};
|
|
6370
6996
|
relationships?: Record<string, unknown> | undefined;
|
|
6371
6997
|
links?: Record<string, string> | undefined;
|