@deepintel-ltd/farmpro-contracts 1.15.3 → 1.15.4
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 +71 -0
- package/dist/routes/commodity-deals.routes.d.ts.map +1 -1
- package/dist/schemas/commodity-deals.schemas.d.ts +66 -0
- package/dist/schemas/commodity-deals.schemas.d.ts.map +1 -1
- package/dist/schemas/commodity-deals.schemas.js +10 -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
|
};
|
|
@@ -1264,6 +1286,7 @@ export declare const commodityDealsRouter: {
|
|
|
1264
1286
|
email?: string | undefined;
|
|
1265
1287
|
name?: string | undefined;
|
|
1266
1288
|
}>, "many">>;
|
|
1289
|
+
staffCommissionPaidAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1267
1290
|
computed: z.ZodObject<{
|
|
1268
1291
|
totalCost: z.ZodNumber;
|
|
1269
1292
|
saleAmount: z.ZodNullable<z.ZodNumber>;
|
|
@@ -1366,6 +1389,7 @@ export declare const commodityDealsRouter: {
|
|
|
1366
1389
|
email?: string | undefined;
|
|
1367
1390
|
name?: string | undefined;
|
|
1368
1391
|
}[] | undefined;
|
|
1392
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
1369
1393
|
}, {
|
|
1370
1394
|
status: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced";
|
|
1371
1395
|
createdAt: string;
|
|
@@ -1413,6 +1437,7 @@ export declare const commodityDealsRouter: {
|
|
|
1413
1437
|
email?: string | undefined;
|
|
1414
1438
|
name?: string | undefined;
|
|
1415
1439
|
}[] | undefined;
|
|
1440
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
1416
1441
|
}>;
|
|
1417
1442
|
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1418
1443
|
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -1467,6 +1492,7 @@ export declare const commodityDealsRouter: {
|
|
|
1467
1492
|
email?: string | undefined;
|
|
1468
1493
|
name?: string | undefined;
|
|
1469
1494
|
}[] | undefined;
|
|
1495
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
1470
1496
|
};
|
|
1471
1497
|
relationships?: Record<string, unknown> | undefined;
|
|
1472
1498
|
links?: Record<string, string> | undefined;
|
|
@@ -1521,6 +1547,7 @@ export declare const commodityDealsRouter: {
|
|
|
1521
1547
|
email?: string | undefined;
|
|
1522
1548
|
name?: string | undefined;
|
|
1523
1549
|
}[] | undefined;
|
|
1550
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
1524
1551
|
};
|
|
1525
1552
|
relationships?: Record<string, unknown> | undefined;
|
|
1526
1553
|
links?: Record<string, string> | undefined;
|
|
@@ -1601,6 +1628,7 @@ export declare const commodityDealsRouter: {
|
|
|
1601
1628
|
email?: string | undefined;
|
|
1602
1629
|
name?: string | undefined;
|
|
1603
1630
|
}[] | undefined;
|
|
1631
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
1604
1632
|
};
|
|
1605
1633
|
relationships?: Record<string, unknown> | undefined;
|
|
1606
1634
|
links?: Record<string, string> | undefined;
|
|
@@ -1667,6 +1695,7 @@ export declare const commodityDealsRouter: {
|
|
|
1667
1695
|
email?: string | undefined;
|
|
1668
1696
|
name?: string | undefined;
|
|
1669
1697
|
}[] | undefined;
|
|
1698
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
1670
1699
|
};
|
|
1671
1700
|
relationships?: Record<string, unknown> | undefined;
|
|
1672
1701
|
links?: Record<string, string> | undefined;
|
|
@@ -2030,6 +2059,7 @@ export declare const commodityDealsRouter: {
|
|
|
2030
2059
|
email?: string | undefined;
|
|
2031
2060
|
name?: string | undefined;
|
|
2032
2061
|
}>, "many">>;
|
|
2062
|
+
staffCommissionPaidAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2033
2063
|
computed: z.ZodObject<{
|
|
2034
2064
|
totalCost: z.ZodNumber;
|
|
2035
2065
|
saleAmount: z.ZodNullable<z.ZodNumber>;
|
|
@@ -2132,6 +2162,7 @@ export declare const commodityDealsRouter: {
|
|
|
2132
2162
|
email?: string | undefined;
|
|
2133
2163
|
name?: string | undefined;
|
|
2134
2164
|
}[] | undefined;
|
|
2165
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
2135
2166
|
}, {
|
|
2136
2167
|
status: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced";
|
|
2137
2168
|
createdAt: string;
|
|
@@ -2179,6 +2210,7 @@ export declare const commodityDealsRouter: {
|
|
|
2179
2210
|
email?: string | undefined;
|
|
2180
2211
|
name?: string | undefined;
|
|
2181
2212
|
}[] | undefined;
|
|
2213
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
2182
2214
|
}>;
|
|
2183
2215
|
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2184
2216
|
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -2233,6 +2265,7 @@ export declare const commodityDealsRouter: {
|
|
|
2233
2265
|
email?: string | undefined;
|
|
2234
2266
|
name?: string | undefined;
|
|
2235
2267
|
}[] | undefined;
|
|
2268
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
2236
2269
|
};
|
|
2237
2270
|
relationships?: Record<string, unknown> | undefined;
|
|
2238
2271
|
links?: Record<string, string> | undefined;
|
|
@@ -2287,6 +2320,7 @@ export declare const commodityDealsRouter: {
|
|
|
2287
2320
|
email?: string | undefined;
|
|
2288
2321
|
name?: string | undefined;
|
|
2289
2322
|
}[] | undefined;
|
|
2323
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
2290
2324
|
};
|
|
2291
2325
|
relationships?: Record<string, unknown> | undefined;
|
|
2292
2326
|
links?: Record<string, string> | undefined;
|
|
@@ -2367,6 +2401,7 @@ export declare const commodityDealsRouter: {
|
|
|
2367
2401
|
email?: string | undefined;
|
|
2368
2402
|
name?: string | undefined;
|
|
2369
2403
|
}[] | undefined;
|
|
2404
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
2370
2405
|
};
|
|
2371
2406
|
relationships?: Record<string, unknown> | undefined;
|
|
2372
2407
|
links?: Record<string, string> | undefined;
|
|
@@ -2433,6 +2468,7 @@ export declare const commodityDealsRouter: {
|
|
|
2433
2468
|
email?: string | undefined;
|
|
2434
2469
|
name?: string | undefined;
|
|
2435
2470
|
}[] | undefined;
|
|
2471
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
2436
2472
|
};
|
|
2437
2473
|
relationships?: Record<string, unknown> | undefined;
|
|
2438
2474
|
links?: Record<string, string> | undefined;
|
|
@@ -2930,6 +2966,7 @@ export declare const commodityDealsRouter: {
|
|
|
2930
2966
|
dealCapital: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2931
2967
|
companyFeeMode: z.ZodOptional<z.ZodNullable<z.ZodEnum<["percent_of_invoice", "per_kg"]>>>;
|
|
2932
2968
|
companyFeeValue: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2969
|
+
staffCommissionPaidAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2933
2970
|
}, "strip", z.ZodTypeAny, {
|
|
2934
2971
|
status?: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced" | undefined;
|
|
2935
2972
|
currency?: string | undefined;
|
|
@@ -2942,6 +2979,7 @@ export declare const commodityDealsRouter: {
|
|
|
2942
2979
|
dealCapital?: number | null | undefined;
|
|
2943
2980
|
companyFeeMode?: "percent_of_invoice" | "per_kg" | null | undefined;
|
|
2944
2981
|
companyFeeValue?: number | null | undefined;
|
|
2982
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
2945
2983
|
}, {
|
|
2946
2984
|
status?: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced" | undefined;
|
|
2947
2985
|
currency?: string | undefined;
|
|
@@ -2954,6 +2992,7 @@ export declare const commodityDealsRouter: {
|
|
|
2954
2992
|
dealCapital?: number | null | undefined;
|
|
2955
2993
|
companyFeeMode?: "percent_of_invoice" | "per_kg" | null | undefined;
|
|
2956
2994
|
companyFeeValue?: number | null | undefined;
|
|
2995
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
2957
2996
|
}>;
|
|
2958
2997
|
}, "strip", z.ZodTypeAny, {
|
|
2959
2998
|
type: "commodity-deals";
|
|
@@ -2969,6 +3008,7 @@ export declare const commodityDealsRouter: {
|
|
|
2969
3008
|
dealCapital?: number | null | undefined;
|
|
2970
3009
|
companyFeeMode?: "percent_of_invoice" | "per_kg" | null | undefined;
|
|
2971
3010
|
companyFeeValue?: number | null | undefined;
|
|
3011
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
2972
3012
|
};
|
|
2973
3013
|
id?: string | undefined;
|
|
2974
3014
|
}, {
|
|
@@ -2985,6 +3025,7 @@ export declare const commodityDealsRouter: {
|
|
|
2985
3025
|
dealCapital?: number | null | undefined;
|
|
2986
3026
|
companyFeeMode?: "percent_of_invoice" | "per_kg" | null | undefined;
|
|
2987
3027
|
companyFeeValue?: number | null | undefined;
|
|
3028
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
2988
3029
|
};
|
|
2989
3030
|
id?: string | undefined;
|
|
2990
3031
|
}>;
|
|
@@ -3003,6 +3044,7 @@ export declare const commodityDealsRouter: {
|
|
|
3003
3044
|
dealCapital?: number | null | undefined;
|
|
3004
3045
|
companyFeeMode?: "percent_of_invoice" | "per_kg" | null | undefined;
|
|
3005
3046
|
companyFeeValue?: number | null | undefined;
|
|
3047
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
3006
3048
|
};
|
|
3007
3049
|
id?: string | undefined;
|
|
3008
3050
|
};
|
|
@@ -3021,6 +3063,7 @@ export declare const commodityDealsRouter: {
|
|
|
3021
3063
|
dealCapital?: number | null | undefined;
|
|
3022
3064
|
companyFeeMode?: "percent_of_invoice" | "per_kg" | null | undefined;
|
|
3023
3065
|
companyFeeValue?: number | null | undefined;
|
|
3066
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
3024
3067
|
};
|
|
3025
3068
|
id?: string | undefined;
|
|
3026
3069
|
};
|
|
@@ -3074,6 +3117,7 @@ export declare const commodityDealsRouter: {
|
|
|
3074
3117
|
email?: string | undefined;
|
|
3075
3118
|
name?: string | undefined;
|
|
3076
3119
|
}>, "many">>;
|
|
3120
|
+
staffCommissionPaidAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3077
3121
|
computed: z.ZodObject<{
|
|
3078
3122
|
totalCost: z.ZodNumber;
|
|
3079
3123
|
saleAmount: z.ZodNullable<z.ZodNumber>;
|
|
@@ -3176,6 +3220,7 @@ export declare const commodityDealsRouter: {
|
|
|
3176
3220
|
email?: string | undefined;
|
|
3177
3221
|
name?: string | undefined;
|
|
3178
3222
|
}[] | undefined;
|
|
3223
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
3179
3224
|
}, {
|
|
3180
3225
|
status: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced";
|
|
3181
3226
|
createdAt: string;
|
|
@@ -3223,6 +3268,7 @@ export declare const commodityDealsRouter: {
|
|
|
3223
3268
|
email?: string | undefined;
|
|
3224
3269
|
name?: string | undefined;
|
|
3225
3270
|
}[] | undefined;
|
|
3271
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
3226
3272
|
}>;
|
|
3227
3273
|
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3228
3274
|
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -3277,6 +3323,7 @@ export declare const commodityDealsRouter: {
|
|
|
3277
3323
|
email?: string | undefined;
|
|
3278
3324
|
name?: string | undefined;
|
|
3279
3325
|
}[] | undefined;
|
|
3326
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
3280
3327
|
};
|
|
3281
3328
|
relationships?: Record<string, unknown> | undefined;
|
|
3282
3329
|
links?: Record<string, string> | undefined;
|
|
@@ -3331,6 +3378,7 @@ export declare const commodityDealsRouter: {
|
|
|
3331
3378
|
email?: string | undefined;
|
|
3332
3379
|
name?: string | undefined;
|
|
3333
3380
|
}[] | undefined;
|
|
3381
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
3334
3382
|
};
|
|
3335
3383
|
relationships?: Record<string, unknown> | undefined;
|
|
3336
3384
|
links?: Record<string, string> | undefined;
|
|
@@ -3411,6 +3459,7 @@ export declare const commodityDealsRouter: {
|
|
|
3411
3459
|
email?: string | undefined;
|
|
3412
3460
|
name?: string | undefined;
|
|
3413
3461
|
}[] | undefined;
|
|
3462
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
3414
3463
|
};
|
|
3415
3464
|
relationships?: Record<string, unknown> | undefined;
|
|
3416
3465
|
links?: Record<string, string> | undefined;
|
|
@@ -3477,6 +3526,7 @@ export declare const commodityDealsRouter: {
|
|
|
3477
3526
|
email?: string | undefined;
|
|
3478
3527
|
name?: string | undefined;
|
|
3479
3528
|
}[] | undefined;
|
|
3529
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
3480
3530
|
};
|
|
3481
3531
|
relationships?: Record<string, unknown> | undefined;
|
|
3482
3532
|
links?: Record<string, string> | undefined;
|
|
@@ -4050,6 +4100,7 @@ export declare const commodityDealsRouter: {
|
|
|
4050
4100
|
email?: string | undefined;
|
|
4051
4101
|
name?: string | undefined;
|
|
4052
4102
|
}>, "many">>;
|
|
4103
|
+
staffCommissionPaidAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4053
4104
|
computed: z.ZodObject<{
|
|
4054
4105
|
totalCost: z.ZodNumber;
|
|
4055
4106
|
saleAmount: z.ZodNullable<z.ZodNumber>;
|
|
@@ -4152,6 +4203,7 @@ export declare const commodityDealsRouter: {
|
|
|
4152
4203
|
email?: string | undefined;
|
|
4153
4204
|
name?: string | undefined;
|
|
4154
4205
|
}[] | undefined;
|
|
4206
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
4155
4207
|
}, {
|
|
4156
4208
|
status: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced";
|
|
4157
4209
|
createdAt: string;
|
|
@@ -4199,6 +4251,7 @@ export declare const commodityDealsRouter: {
|
|
|
4199
4251
|
email?: string | undefined;
|
|
4200
4252
|
name?: string | undefined;
|
|
4201
4253
|
}[] | undefined;
|
|
4254
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
4202
4255
|
}>;
|
|
4203
4256
|
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4204
4257
|
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -4253,6 +4306,7 @@ export declare const commodityDealsRouter: {
|
|
|
4253
4306
|
email?: string | undefined;
|
|
4254
4307
|
name?: string | undefined;
|
|
4255
4308
|
}[] | undefined;
|
|
4309
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
4256
4310
|
};
|
|
4257
4311
|
relationships?: Record<string, unknown> | undefined;
|
|
4258
4312
|
links?: Record<string, string> | undefined;
|
|
@@ -4307,6 +4361,7 @@ export declare const commodityDealsRouter: {
|
|
|
4307
4361
|
email?: string | undefined;
|
|
4308
4362
|
name?: string | undefined;
|
|
4309
4363
|
}[] | undefined;
|
|
4364
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
4310
4365
|
};
|
|
4311
4366
|
relationships?: Record<string, unknown> | undefined;
|
|
4312
4367
|
links?: Record<string, string> | undefined;
|
|
@@ -4387,6 +4442,7 @@ export declare const commodityDealsRouter: {
|
|
|
4387
4442
|
email?: string | undefined;
|
|
4388
4443
|
name?: string | undefined;
|
|
4389
4444
|
}[] | undefined;
|
|
4445
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
4390
4446
|
};
|
|
4391
4447
|
relationships?: Record<string, unknown> | undefined;
|
|
4392
4448
|
links?: Record<string, string> | undefined;
|
|
@@ -4453,6 +4509,7 @@ export declare const commodityDealsRouter: {
|
|
|
4453
4509
|
email?: string | undefined;
|
|
4454
4510
|
name?: string | undefined;
|
|
4455
4511
|
}[] | undefined;
|
|
4512
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
4456
4513
|
};
|
|
4457
4514
|
relationships?: Record<string, unknown> | undefined;
|
|
4458
4515
|
links?: Record<string, string> | undefined;
|
|
@@ -5027,6 +5084,7 @@ export declare const commodityDealsRouter: {
|
|
|
5027
5084
|
email?: string | undefined;
|
|
5028
5085
|
name?: string | undefined;
|
|
5029
5086
|
}>, "many">>;
|
|
5087
|
+
staffCommissionPaidAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5030
5088
|
computed: z.ZodObject<{
|
|
5031
5089
|
totalCost: z.ZodNumber;
|
|
5032
5090
|
saleAmount: z.ZodNullable<z.ZodNumber>;
|
|
@@ -5129,6 +5187,7 @@ export declare const commodityDealsRouter: {
|
|
|
5129
5187
|
email?: string | undefined;
|
|
5130
5188
|
name?: string | undefined;
|
|
5131
5189
|
}[] | undefined;
|
|
5190
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
5132
5191
|
}, {
|
|
5133
5192
|
status: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced";
|
|
5134
5193
|
createdAt: string;
|
|
@@ -5176,6 +5235,7 @@ export declare const commodityDealsRouter: {
|
|
|
5176
5235
|
email?: string | undefined;
|
|
5177
5236
|
name?: string | undefined;
|
|
5178
5237
|
}[] | undefined;
|
|
5238
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
5179
5239
|
}>;
|
|
5180
5240
|
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
5181
5241
|
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -5230,6 +5290,7 @@ export declare const commodityDealsRouter: {
|
|
|
5230
5290
|
email?: string | undefined;
|
|
5231
5291
|
name?: string | undefined;
|
|
5232
5292
|
}[] | undefined;
|
|
5293
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
5233
5294
|
};
|
|
5234
5295
|
relationships?: Record<string, unknown> | undefined;
|
|
5235
5296
|
links?: Record<string, string> | undefined;
|
|
@@ -5284,6 +5345,7 @@ export declare const commodityDealsRouter: {
|
|
|
5284
5345
|
email?: string | undefined;
|
|
5285
5346
|
name?: string | undefined;
|
|
5286
5347
|
}[] | undefined;
|
|
5348
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
5287
5349
|
};
|
|
5288
5350
|
relationships?: Record<string, unknown> | undefined;
|
|
5289
5351
|
links?: Record<string, string> | undefined;
|
|
@@ -5364,6 +5426,7 @@ export declare const commodityDealsRouter: {
|
|
|
5364
5426
|
email?: string | undefined;
|
|
5365
5427
|
name?: string | undefined;
|
|
5366
5428
|
}[] | undefined;
|
|
5429
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
5367
5430
|
};
|
|
5368
5431
|
relationships?: Record<string, unknown> | undefined;
|
|
5369
5432
|
links?: Record<string, string> | undefined;
|
|
@@ -5430,6 +5493,7 @@ export declare const commodityDealsRouter: {
|
|
|
5430
5493
|
email?: string | undefined;
|
|
5431
5494
|
name?: string | undefined;
|
|
5432
5495
|
}[] | undefined;
|
|
5496
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
5433
5497
|
};
|
|
5434
5498
|
relationships?: Record<string, unknown> | undefined;
|
|
5435
5499
|
links?: Record<string, string> | undefined;
|
|
@@ -5963,6 +6027,7 @@ export declare const commodityDealsRouter: {
|
|
|
5963
6027
|
email?: string | undefined;
|
|
5964
6028
|
name?: string | undefined;
|
|
5965
6029
|
}>, "many">>;
|
|
6030
|
+
staffCommissionPaidAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5966
6031
|
computed: z.ZodObject<{
|
|
5967
6032
|
totalCost: z.ZodNumber;
|
|
5968
6033
|
saleAmount: z.ZodNullable<z.ZodNumber>;
|
|
@@ -6065,6 +6130,7 @@ export declare const commodityDealsRouter: {
|
|
|
6065
6130
|
email?: string | undefined;
|
|
6066
6131
|
name?: string | undefined;
|
|
6067
6132
|
}[] | undefined;
|
|
6133
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
6068
6134
|
}, {
|
|
6069
6135
|
status: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced";
|
|
6070
6136
|
createdAt: string;
|
|
@@ -6112,6 +6178,7 @@ export declare const commodityDealsRouter: {
|
|
|
6112
6178
|
email?: string | undefined;
|
|
6113
6179
|
name?: string | undefined;
|
|
6114
6180
|
}[] | undefined;
|
|
6181
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
6115
6182
|
}>;
|
|
6116
6183
|
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
6117
6184
|
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -6166,6 +6233,7 @@ export declare const commodityDealsRouter: {
|
|
|
6166
6233
|
email?: string | undefined;
|
|
6167
6234
|
name?: string | undefined;
|
|
6168
6235
|
}[] | undefined;
|
|
6236
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
6169
6237
|
};
|
|
6170
6238
|
relationships?: Record<string, unknown> | undefined;
|
|
6171
6239
|
links?: Record<string, string> | undefined;
|
|
@@ -6220,6 +6288,7 @@ export declare const commodityDealsRouter: {
|
|
|
6220
6288
|
email?: string | undefined;
|
|
6221
6289
|
name?: string | undefined;
|
|
6222
6290
|
}[] | undefined;
|
|
6291
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
6223
6292
|
};
|
|
6224
6293
|
relationships?: Record<string, unknown> | undefined;
|
|
6225
6294
|
links?: Record<string, string> | undefined;
|
|
@@ -6300,6 +6369,7 @@ export declare const commodityDealsRouter: {
|
|
|
6300
6369
|
email?: string | undefined;
|
|
6301
6370
|
name?: string | undefined;
|
|
6302
6371
|
}[] | undefined;
|
|
6372
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
6303
6373
|
};
|
|
6304
6374
|
relationships?: Record<string, unknown> | undefined;
|
|
6305
6375
|
links?: Record<string, string> | undefined;
|
|
@@ -6366,6 +6436,7 @@ export declare const commodityDealsRouter: {
|
|
|
6366
6436
|
email?: string | undefined;
|
|
6367
6437
|
name?: string | undefined;
|
|
6368
6438
|
}[] | undefined;
|
|
6439
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
6369
6440
|
};
|
|
6370
6441
|
relationships?: Record<string, unknown> | undefined;
|
|
6371
6442
|
links?: Record<string, string> | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commodity-deals.routes.d.ts","sourceRoot":"","sources":["../../src/routes/commodity-deals.routes.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAoBxB,eAAO,MAAM,oBAAoB
|
|
1
|
+
{"version":3,"file":"commodity-deals.routes.d.ts","sourceRoot":"","sources":["../../src/routes/commodity-deals.routes.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAoBxB,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0J/B,CAAC"}
|
|
@@ -122,6 +122,8 @@ export declare const commodityDealAttributesSchema: z.ZodObject<{
|
|
|
122
122
|
email?: string | undefined;
|
|
123
123
|
name?: string | undefined;
|
|
124
124
|
}>, "many">>;
|
|
125
|
+
/** When staff commission was marked paid out to staff (null = unpaid / N/A). */
|
|
126
|
+
staffCommissionPaidAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
125
127
|
computed: z.ZodObject<{
|
|
126
128
|
totalCost: z.ZodNumber;
|
|
127
129
|
saleAmount: z.ZodNullable<z.ZodNumber>;
|
|
@@ -225,6 +227,7 @@ export declare const commodityDealAttributesSchema: z.ZodObject<{
|
|
|
225
227
|
email?: string | undefined;
|
|
226
228
|
name?: string | undefined;
|
|
227
229
|
}[] | undefined;
|
|
230
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
228
231
|
}, {
|
|
229
232
|
status: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced";
|
|
230
233
|
createdAt: string;
|
|
@@ -272,6 +275,7 @@ export declare const commodityDealAttributesSchema: z.ZodObject<{
|
|
|
272
275
|
email?: string | undefined;
|
|
273
276
|
name?: string | undefined;
|
|
274
277
|
}[] | undefined;
|
|
278
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
275
279
|
}>;
|
|
276
280
|
export declare const createCommodityDealAttributesSchema: z.ZodObject<{
|
|
277
281
|
waybillId: z.ZodString;
|
|
@@ -322,6 +326,8 @@ export declare const updateCommodityDealAttributesSchema: z.ZodObject<{
|
|
|
322
326
|
dealCapital: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
323
327
|
companyFeeMode: z.ZodOptional<z.ZodNullable<z.ZodEnum<["percent_of_invoice", "per_kg"]>>>;
|
|
324
328
|
companyFeeValue: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
329
|
+
/** Set ISO datetime to mark paid out; null to mark unpaid. */
|
|
330
|
+
staffCommissionPaidAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
325
331
|
}, "strip", z.ZodTypeAny, {
|
|
326
332
|
status?: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced" | undefined;
|
|
327
333
|
currency?: string | undefined;
|
|
@@ -334,6 +340,7 @@ export declare const updateCommodityDealAttributesSchema: z.ZodObject<{
|
|
|
334
340
|
dealCapital?: number | null | undefined;
|
|
335
341
|
companyFeeMode?: "percent_of_invoice" | "per_kg" | null | undefined;
|
|
336
342
|
companyFeeValue?: number | null | undefined;
|
|
343
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
337
344
|
}, {
|
|
338
345
|
status?: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced" | undefined;
|
|
339
346
|
currency?: string | undefined;
|
|
@@ -346,6 +353,7 @@ export declare const updateCommodityDealAttributesSchema: z.ZodObject<{
|
|
|
346
353
|
dealCapital?: number | null | undefined;
|
|
347
354
|
companyFeeMode?: "percent_of_invoice" | "per_kg" | null | undefined;
|
|
348
355
|
companyFeeValue?: number | null | undefined;
|
|
356
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
349
357
|
}>;
|
|
350
358
|
export declare const createCommodityDealSchema: z.ZodObject<{
|
|
351
359
|
type: z.ZodLiteral<"commodity-deals">;
|
|
@@ -432,6 +440,8 @@ export declare const updateCommodityDealSchema: z.ZodObject<{
|
|
|
432
440
|
dealCapital: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
433
441
|
companyFeeMode: z.ZodOptional<z.ZodNullable<z.ZodEnum<["percent_of_invoice", "per_kg"]>>>;
|
|
434
442
|
companyFeeValue: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
443
|
+
/** Set ISO datetime to mark paid out; null to mark unpaid. */
|
|
444
|
+
staffCommissionPaidAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
435
445
|
}, "strip", z.ZodTypeAny, {
|
|
436
446
|
status?: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced" | undefined;
|
|
437
447
|
currency?: string | undefined;
|
|
@@ -444,6 +454,7 @@ export declare const updateCommodityDealSchema: z.ZodObject<{
|
|
|
444
454
|
dealCapital?: number | null | undefined;
|
|
445
455
|
companyFeeMode?: "percent_of_invoice" | "per_kg" | null | undefined;
|
|
446
456
|
companyFeeValue?: number | null | undefined;
|
|
457
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
447
458
|
}, {
|
|
448
459
|
status?: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced" | undefined;
|
|
449
460
|
currency?: string | undefined;
|
|
@@ -456,6 +467,7 @@ export declare const updateCommodityDealSchema: z.ZodObject<{
|
|
|
456
467
|
dealCapital?: number | null | undefined;
|
|
457
468
|
companyFeeMode?: "percent_of_invoice" | "per_kg" | null | undefined;
|
|
458
469
|
companyFeeValue?: number | null | undefined;
|
|
470
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
459
471
|
}>;
|
|
460
472
|
}, "strip", z.ZodTypeAny, {
|
|
461
473
|
type: "commodity-deals";
|
|
@@ -471,6 +483,7 @@ export declare const updateCommodityDealSchema: z.ZodObject<{
|
|
|
471
483
|
dealCapital?: number | null | undefined;
|
|
472
484
|
companyFeeMode?: "percent_of_invoice" | "per_kg" | null | undefined;
|
|
473
485
|
companyFeeValue?: number | null | undefined;
|
|
486
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
474
487
|
};
|
|
475
488
|
id?: string | undefined;
|
|
476
489
|
}, {
|
|
@@ -487,6 +500,7 @@ export declare const updateCommodityDealSchema: z.ZodObject<{
|
|
|
487
500
|
dealCapital?: number | null | undefined;
|
|
488
501
|
companyFeeMode?: "percent_of_invoice" | "per_kg" | null | undefined;
|
|
489
502
|
companyFeeValue?: number | null | undefined;
|
|
503
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
490
504
|
};
|
|
491
505
|
id?: string | undefined;
|
|
492
506
|
}>;
|
|
@@ -601,6 +615,8 @@ export declare const commodityDealResourceSchema: z.ZodObject<{
|
|
|
601
615
|
email?: string | undefined;
|
|
602
616
|
name?: string | undefined;
|
|
603
617
|
}>, "many">>;
|
|
618
|
+
/** When staff commission was marked paid out to staff (null = unpaid / N/A). */
|
|
619
|
+
staffCommissionPaidAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
604
620
|
computed: z.ZodObject<{
|
|
605
621
|
totalCost: z.ZodNumber;
|
|
606
622
|
saleAmount: z.ZodNullable<z.ZodNumber>;
|
|
@@ -704,6 +720,7 @@ export declare const commodityDealResourceSchema: z.ZodObject<{
|
|
|
704
720
|
email?: string | undefined;
|
|
705
721
|
name?: string | undefined;
|
|
706
722
|
}[] | undefined;
|
|
723
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
707
724
|
}, {
|
|
708
725
|
status: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced";
|
|
709
726
|
createdAt: string;
|
|
@@ -751,6 +768,7 @@ export declare const commodityDealResourceSchema: z.ZodObject<{
|
|
|
751
768
|
email?: string | undefined;
|
|
752
769
|
name?: string | undefined;
|
|
753
770
|
}[] | undefined;
|
|
771
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
754
772
|
}>;
|
|
755
773
|
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
756
774
|
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -805,6 +823,7 @@ export declare const commodityDealResourceSchema: z.ZodObject<{
|
|
|
805
823
|
email?: string | undefined;
|
|
806
824
|
name?: string | undefined;
|
|
807
825
|
}[] | undefined;
|
|
826
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
808
827
|
};
|
|
809
828
|
relationships?: Record<string, unknown> | undefined;
|
|
810
829
|
links?: Record<string, string> | undefined;
|
|
@@ -859,6 +878,7 @@ export declare const commodityDealResourceSchema: z.ZodObject<{
|
|
|
859
878
|
email?: string | undefined;
|
|
860
879
|
name?: string | undefined;
|
|
861
880
|
}[] | undefined;
|
|
881
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
862
882
|
};
|
|
863
883
|
relationships?: Record<string, unknown> | undefined;
|
|
864
884
|
links?: Record<string, string> | undefined;
|
|
@@ -911,6 +931,8 @@ export declare const commodityDealResponseSchema: z.ZodObject<{
|
|
|
911
931
|
email?: string | undefined;
|
|
912
932
|
name?: string | undefined;
|
|
913
933
|
}>, "many">>;
|
|
934
|
+
/** When staff commission was marked paid out to staff (null = unpaid / N/A). */
|
|
935
|
+
staffCommissionPaidAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
914
936
|
computed: z.ZodObject<{
|
|
915
937
|
totalCost: z.ZodNumber;
|
|
916
938
|
saleAmount: z.ZodNullable<z.ZodNumber>;
|
|
@@ -1014,6 +1036,7 @@ export declare const commodityDealResponseSchema: z.ZodObject<{
|
|
|
1014
1036
|
email?: string | undefined;
|
|
1015
1037
|
name?: string | undefined;
|
|
1016
1038
|
}[] | undefined;
|
|
1039
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
1017
1040
|
}, {
|
|
1018
1041
|
status: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced";
|
|
1019
1042
|
createdAt: string;
|
|
@@ -1061,6 +1084,7 @@ export declare const commodityDealResponseSchema: z.ZodObject<{
|
|
|
1061
1084
|
email?: string | undefined;
|
|
1062
1085
|
name?: string | undefined;
|
|
1063
1086
|
}[] | undefined;
|
|
1087
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
1064
1088
|
}>;
|
|
1065
1089
|
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1066
1090
|
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -1115,6 +1139,7 @@ export declare const commodityDealResponseSchema: z.ZodObject<{
|
|
|
1115
1139
|
email?: string | undefined;
|
|
1116
1140
|
name?: string | undefined;
|
|
1117
1141
|
}[] | undefined;
|
|
1142
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
1118
1143
|
};
|
|
1119
1144
|
relationships?: Record<string, unknown> | undefined;
|
|
1120
1145
|
links?: Record<string, string> | undefined;
|
|
@@ -1169,6 +1194,7 @@ export declare const commodityDealResponseSchema: z.ZodObject<{
|
|
|
1169
1194
|
email?: string | undefined;
|
|
1170
1195
|
name?: string | undefined;
|
|
1171
1196
|
}[] | undefined;
|
|
1197
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
1172
1198
|
};
|
|
1173
1199
|
relationships?: Record<string, unknown> | undefined;
|
|
1174
1200
|
links?: Record<string, string> | undefined;
|
|
@@ -1249,6 +1275,7 @@ export declare const commodityDealResponseSchema: z.ZodObject<{
|
|
|
1249
1275
|
email?: string | undefined;
|
|
1250
1276
|
name?: string | undefined;
|
|
1251
1277
|
}[] | undefined;
|
|
1278
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
1252
1279
|
};
|
|
1253
1280
|
relationships?: Record<string, unknown> | undefined;
|
|
1254
1281
|
links?: Record<string, string> | undefined;
|
|
@@ -1315,6 +1342,7 @@ export declare const commodityDealResponseSchema: z.ZodObject<{
|
|
|
1315
1342
|
email?: string | undefined;
|
|
1316
1343
|
name?: string | undefined;
|
|
1317
1344
|
}[] | undefined;
|
|
1345
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
1318
1346
|
};
|
|
1319
1347
|
relationships?: Record<string, unknown> | undefined;
|
|
1320
1348
|
links?: Record<string, string> | undefined;
|
|
@@ -1378,6 +1406,8 @@ export declare const commodityDealListResponseSchema: z.ZodObject<{
|
|
|
1378
1406
|
email?: string | undefined;
|
|
1379
1407
|
name?: string | undefined;
|
|
1380
1408
|
}>, "many">>;
|
|
1409
|
+
/** When staff commission was marked paid out to staff (null = unpaid / N/A). */
|
|
1410
|
+
staffCommissionPaidAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1381
1411
|
computed: z.ZodObject<{
|
|
1382
1412
|
totalCost: z.ZodNumber;
|
|
1383
1413
|
saleAmount: z.ZodNullable<z.ZodNumber>;
|
|
@@ -1481,6 +1511,7 @@ export declare const commodityDealListResponseSchema: z.ZodObject<{
|
|
|
1481
1511
|
email?: string | undefined;
|
|
1482
1512
|
name?: string | undefined;
|
|
1483
1513
|
}[] | undefined;
|
|
1514
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
1484
1515
|
}, {
|
|
1485
1516
|
status: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced";
|
|
1486
1517
|
createdAt: string;
|
|
@@ -1528,6 +1559,7 @@ export declare const commodityDealListResponseSchema: z.ZodObject<{
|
|
|
1528
1559
|
email?: string | undefined;
|
|
1529
1560
|
name?: string | undefined;
|
|
1530
1561
|
}[] | undefined;
|
|
1562
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
1531
1563
|
}>;
|
|
1532
1564
|
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1533
1565
|
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -1582,6 +1614,7 @@ export declare const commodityDealListResponseSchema: z.ZodObject<{
|
|
|
1582
1614
|
email?: string | undefined;
|
|
1583
1615
|
name?: string | undefined;
|
|
1584
1616
|
}[] | undefined;
|
|
1617
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
1585
1618
|
};
|
|
1586
1619
|
relationships?: Record<string, unknown> | undefined;
|
|
1587
1620
|
links?: Record<string, string> | undefined;
|
|
@@ -1636,6 +1669,7 @@ export declare const commodityDealListResponseSchema: z.ZodObject<{
|
|
|
1636
1669
|
email?: string | undefined;
|
|
1637
1670
|
name?: string | undefined;
|
|
1638
1671
|
}[] | undefined;
|
|
1672
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
1639
1673
|
};
|
|
1640
1674
|
relationships?: Record<string, unknown> | undefined;
|
|
1641
1675
|
links?: Record<string, string> | undefined;
|
|
@@ -1716,6 +1750,7 @@ export declare const commodityDealListResponseSchema: z.ZodObject<{
|
|
|
1716
1750
|
email?: string | undefined;
|
|
1717
1751
|
name?: string | undefined;
|
|
1718
1752
|
}[] | undefined;
|
|
1753
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
1719
1754
|
};
|
|
1720
1755
|
relationships?: Record<string, unknown> | undefined;
|
|
1721
1756
|
links?: Record<string, string> | undefined;
|
|
@@ -1782,6 +1817,7 @@ export declare const commodityDealListResponseSchema: z.ZodObject<{
|
|
|
1782
1817
|
email?: string | undefined;
|
|
1783
1818
|
name?: string | undefined;
|
|
1784
1819
|
}[] | undefined;
|
|
1820
|
+
staffCommissionPaidAt?: string | null | undefined;
|
|
1785
1821
|
};
|
|
1786
1822
|
relationships?: Record<string, unknown> | undefined;
|
|
1787
1823
|
links?: Record<string, string> | undefined;
|
|
@@ -1805,6 +1841,12 @@ export declare const commodityDealSummarySchema: z.ZodObject<{
|
|
|
1805
1841
|
totalCostsOnPaidDeals: z.ZodNumber;
|
|
1806
1842
|
grossProfitOnPaidDeals: z.ZodNumber;
|
|
1807
1843
|
totalCommissionOnPaidDeals: z.ZodNumber;
|
|
1844
|
+
/** Accrued staff commission on paid deals that has been marked paid out. */
|
|
1845
|
+
totalStaffCommissionPaidOut: z.ZodOptional<z.ZodNumber>;
|
|
1846
|
+
/** Accrued staff commission on paid deals still unpaid to staff. */
|
|
1847
|
+
totalStaffCommissionUnpaid: z.ZodOptional<z.ZodNumber>;
|
|
1848
|
+
/** True when org staff commission rate is set and > 0. */
|
|
1849
|
+
staffCommissionsEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
1808
1850
|
companyNetOnPaidDeals: z.ZodNumber;
|
|
1809
1851
|
totalCompanyCommissionOnPaidDeals: z.ZodOptional<z.ZodNumber>;
|
|
1810
1852
|
totalInvestorPoolOnPaidDeals: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1820,6 +1862,9 @@ export declare const commodityDealSummarySchema: z.ZodObject<{
|
|
|
1820
1862
|
totalCommissionOnPaidDeals: number;
|
|
1821
1863
|
companyNetOnPaidDeals: number;
|
|
1822
1864
|
unrealizedGrossProfit: number;
|
|
1865
|
+
totalStaffCommissionPaidOut?: number | undefined;
|
|
1866
|
+
totalStaffCommissionUnpaid?: number | undefined;
|
|
1867
|
+
staffCommissionsEnabled?: boolean | undefined;
|
|
1823
1868
|
totalCompanyCommissionOnPaidDeals?: number | undefined;
|
|
1824
1869
|
totalInvestorPoolOnPaidDeals?: number | undefined;
|
|
1825
1870
|
}, {
|
|
@@ -1832,6 +1877,9 @@ export declare const commodityDealSummarySchema: z.ZodObject<{
|
|
|
1832
1877
|
companyNetOnPaidDeals: number;
|
|
1833
1878
|
unrealizedGrossProfit: number;
|
|
1834
1879
|
currency?: string | undefined;
|
|
1880
|
+
totalStaffCommissionPaidOut?: number | undefined;
|
|
1881
|
+
totalStaffCommissionUnpaid?: number | undefined;
|
|
1882
|
+
staffCommissionsEnabled?: boolean | undefined;
|
|
1835
1883
|
totalCompanyCommissionOnPaidDeals?: number | undefined;
|
|
1836
1884
|
totalInvestorPoolOnPaidDeals?: number | undefined;
|
|
1837
1885
|
}>;
|
|
@@ -1843,6 +1891,12 @@ export declare const commodityDealSummaryResponseSchema: z.ZodObject<{
|
|
|
1843
1891
|
totalCostsOnPaidDeals: z.ZodNumber;
|
|
1844
1892
|
grossProfitOnPaidDeals: z.ZodNumber;
|
|
1845
1893
|
totalCommissionOnPaidDeals: z.ZodNumber;
|
|
1894
|
+
/** Accrued staff commission on paid deals that has been marked paid out. */
|
|
1895
|
+
totalStaffCommissionPaidOut: z.ZodOptional<z.ZodNumber>;
|
|
1896
|
+
/** Accrued staff commission on paid deals still unpaid to staff. */
|
|
1897
|
+
totalStaffCommissionUnpaid: z.ZodOptional<z.ZodNumber>;
|
|
1898
|
+
/** True when org staff commission rate is set and > 0. */
|
|
1899
|
+
staffCommissionsEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
1846
1900
|
companyNetOnPaidDeals: z.ZodNumber;
|
|
1847
1901
|
totalCompanyCommissionOnPaidDeals: z.ZodOptional<z.ZodNumber>;
|
|
1848
1902
|
totalInvestorPoolOnPaidDeals: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1858,6 +1912,9 @@ export declare const commodityDealSummaryResponseSchema: z.ZodObject<{
|
|
|
1858
1912
|
totalCommissionOnPaidDeals: number;
|
|
1859
1913
|
companyNetOnPaidDeals: number;
|
|
1860
1914
|
unrealizedGrossProfit: number;
|
|
1915
|
+
totalStaffCommissionPaidOut?: number | undefined;
|
|
1916
|
+
totalStaffCommissionUnpaid?: number | undefined;
|
|
1917
|
+
staffCommissionsEnabled?: boolean | undefined;
|
|
1861
1918
|
totalCompanyCommissionOnPaidDeals?: number | undefined;
|
|
1862
1919
|
totalInvestorPoolOnPaidDeals?: number | undefined;
|
|
1863
1920
|
}, {
|
|
@@ -1870,6 +1927,9 @@ export declare const commodityDealSummaryResponseSchema: z.ZodObject<{
|
|
|
1870
1927
|
companyNetOnPaidDeals: number;
|
|
1871
1928
|
unrealizedGrossProfit: number;
|
|
1872
1929
|
currency?: string | undefined;
|
|
1930
|
+
totalStaffCommissionPaidOut?: number | undefined;
|
|
1931
|
+
totalStaffCommissionUnpaid?: number | undefined;
|
|
1932
|
+
staffCommissionsEnabled?: boolean | undefined;
|
|
1873
1933
|
totalCompanyCommissionOnPaidDeals?: number | undefined;
|
|
1874
1934
|
totalInvestorPoolOnPaidDeals?: number | undefined;
|
|
1875
1935
|
}>;
|
|
@@ -1884,6 +1944,9 @@ export declare const commodityDealSummaryResponseSchema: z.ZodObject<{
|
|
|
1884
1944
|
totalCommissionOnPaidDeals: number;
|
|
1885
1945
|
companyNetOnPaidDeals: number;
|
|
1886
1946
|
unrealizedGrossProfit: number;
|
|
1947
|
+
totalStaffCommissionPaidOut?: number | undefined;
|
|
1948
|
+
totalStaffCommissionUnpaid?: number | undefined;
|
|
1949
|
+
staffCommissionsEnabled?: boolean | undefined;
|
|
1887
1950
|
totalCompanyCommissionOnPaidDeals?: number | undefined;
|
|
1888
1951
|
totalInvestorPoolOnPaidDeals?: number | undefined;
|
|
1889
1952
|
};
|
|
@@ -1898,6 +1961,9 @@ export declare const commodityDealSummaryResponseSchema: z.ZodObject<{
|
|
|
1898
1961
|
companyNetOnPaidDeals: number;
|
|
1899
1962
|
unrealizedGrossProfit: number;
|
|
1900
1963
|
currency?: string | undefined;
|
|
1964
|
+
totalStaffCommissionPaidOut?: number | undefined;
|
|
1965
|
+
totalStaffCommissionUnpaid?: number | undefined;
|
|
1966
|
+
staffCommissionsEnabled?: boolean | undefined;
|
|
1901
1967
|
totalCompanyCommissionOnPaidDeals?: number | undefined;
|
|
1902
1968
|
totalInvestorPoolOnPaidDeals?: number | undefined;
|
|
1903
1969
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commodity-deals.schemas.d.ts","sourceRoot":"","sources":["../../src/schemas/commodity-deals.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,eAAO,MAAM,yBAAyB,qEAMpC,CAAC;AAEH,eAAO,MAAM,oBAAoB,6CAA2C,CAAC;AAE7E,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;EAQrC,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;;;;;;;;IAUtC,kDAAkD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQlD,CAAC;AAEH,eAAO,MAAM,6BAA6B
|
|
1
|
+
{"version":3,"file":"commodity-deals.schemas.d.ts","sourceRoot":"","sources":["../../src/schemas/commodity-deals.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,eAAO,MAAM,yBAAyB,qEAMpC,CAAC;AAEH,eAAO,MAAM,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AA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAC;AAChG,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAC;AAChG,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AACjF,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AACjF,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AACpF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAChF,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AACxF,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAC9E,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAC;AAC9F,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AACrF,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AACrF,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
|
|
@@ -56,6 +56,8 @@ export const commodityDealAttributesSchema = z
|
|
|
56
56
|
companyFeeValue: z.number().nonnegative().nullable(),
|
|
57
57
|
totalWeightKg: z.number().nullable().optional(),
|
|
58
58
|
participants: z.array(dealParticipantShareSchema).optional(),
|
|
59
|
+
/** When staff commission was marked paid out to staff (null = unpaid / N/A). */
|
|
60
|
+
staffCommissionPaidAt: z.string().datetime().nullable().optional(),
|
|
59
61
|
computed: commodityDealComputedSchema,
|
|
60
62
|
})
|
|
61
63
|
.merge(timestampsSchema);
|
|
@@ -84,6 +86,8 @@ export const updateCommodityDealAttributesSchema = z.object({
|
|
|
84
86
|
dealCapital: z.number().positive().nullable().optional(),
|
|
85
87
|
companyFeeMode: companyFeeModeSchema.nullable().optional(),
|
|
86
88
|
companyFeeValue: z.number().nonnegative().nullable().optional(),
|
|
89
|
+
/** Set ISO datetime to mark paid out; null to mark unpaid. */
|
|
90
|
+
staffCommissionPaidAt: z.string().datetime().nullable().optional(),
|
|
87
91
|
});
|
|
88
92
|
export const createCommodityDealSchema = z.object({
|
|
89
93
|
type: z.literal('commodity-deals'),
|
|
@@ -120,6 +124,12 @@ export const commodityDealSummarySchema = z.object({
|
|
|
120
124
|
totalCostsOnPaidDeals: z.number(),
|
|
121
125
|
grossProfitOnPaidDeals: z.number(),
|
|
122
126
|
totalCommissionOnPaidDeals: z.number(),
|
|
127
|
+
/** Accrued staff commission on paid deals that has been marked paid out. */
|
|
128
|
+
totalStaffCommissionPaidOut: z.number().optional(),
|
|
129
|
+
/** Accrued staff commission on paid deals still unpaid to staff. */
|
|
130
|
+
totalStaffCommissionUnpaid: z.number().optional(),
|
|
131
|
+
/** True when org staff commission rate is set and > 0. */
|
|
132
|
+
staffCommissionsEnabled: z.boolean().optional(),
|
|
123
133
|
companyNetOnPaidDeals: z.number(),
|
|
124
134
|
totalCompanyCommissionOnPaidDeals: z.number().optional(),
|
|
125
135
|
totalInvestorPoolOnPaidDeals: z.number().optional(),
|