@deepintel-ltd/farmpro-contracts 1.15.2 → 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/routes/team-payments.routes.d.ts +405 -0
- package/dist/routes/team-payments.routes.d.ts.map +1 -1
- package/dist/routes/team-payments.routes.js +19 -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/dist/schemas/team-payments.schemas.d.ts +29 -0
- package/dist/schemas/team-payments.schemas.d.ts.map +1 -1
- package/dist/schemas/team-payments.schemas.js +9 -0
- package/package.json +1 -1
|
@@ -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;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AAM,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(),
|
|
@@ -1645,6 +1645,33 @@ export declare const paymentApprovalActionInputSchema: z.ZodObject<{
|
|
|
1645
1645
|
}, {
|
|
1646
1646
|
notes?: string | undefined;
|
|
1647
1647
|
}>;
|
|
1648
|
+
export declare const resolveVendorAccountInputSchema: z.ZodObject<{
|
|
1649
|
+
bankCode: z.ZodString;
|
|
1650
|
+
accountNumber: z.ZodString;
|
|
1651
|
+
}, "strip", z.ZodTypeAny, {
|
|
1652
|
+
accountNumber: string;
|
|
1653
|
+
bankCode: string;
|
|
1654
|
+
}, {
|
|
1655
|
+
accountNumber: string;
|
|
1656
|
+
bankCode: string;
|
|
1657
|
+
}>;
|
|
1658
|
+
export declare const resolveVendorAccountResponseSchema: z.ZodObject<{
|
|
1659
|
+
meta: z.ZodObject<{
|
|
1660
|
+
accountName: z.ZodString;
|
|
1661
|
+
}, "strip", z.ZodTypeAny, {
|
|
1662
|
+
accountName: string;
|
|
1663
|
+
}, {
|
|
1664
|
+
accountName: string;
|
|
1665
|
+
}>;
|
|
1666
|
+
}, "strip", z.ZodTypeAny, {
|
|
1667
|
+
meta: {
|
|
1668
|
+
accountName: string;
|
|
1669
|
+
};
|
|
1670
|
+
}, {
|
|
1671
|
+
meta: {
|
|
1672
|
+
accountName: string;
|
|
1673
|
+
};
|
|
1674
|
+
}>;
|
|
1648
1675
|
export declare const paymentApprovalAttributesSchema: z.ZodObject<{
|
|
1649
1676
|
vendorPaymentId: z.ZodString;
|
|
1650
1677
|
approverId: z.ZodString;
|
|
@@ -2765,4 +2792,6 @@ export type VendorPaymentResponse = z.infer<typeof vendorPaymentResponseSchema>;
|
|
|
2765
2792
|
export type VendorPaymentListResponse = z.infer<typeof vendorPaymentListResponseSchema>;
|
|
2766
2793
|
export type CompanyPaymentAccountResponse = z.infer<typeof companyPaymentAccountResponseSchema>;
|
|
2767
2794
|
export type TeamSpendLimitResponse = z.infer<typeof teamSpendLimitResponseSchema>;
|
|
2795
|
+
export type ResolveVendorAccountInput = z.infer<typeof resolveVendorAccountInputSchema>;
|
|
2796
|
+
export type ResolveVendorAccountResponse = z.infer<typeof resolveVendorAccountResponseSchema>;
|
|
2768
2797
|
//# sourceMappingURL=team-payments.schemas.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"team-payments.schemas.d.ts","sourceRoot":"","sources":["../../src/schemas/team-payments.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,eAAO,MAAM,qBAAqB,+EAOhC,CAAC;AAEH,eAAO,MAAM,yBAAyB,2FAOpC,CAAC;AAEH,eAAO,MAAM,2BAA2B,qCAAmC,CAAC;AAE5E,eAAO,MAAM,qCAAqC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAexB,CAAC;AAE3B,eAAO,MAAM,2CAA2C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAYtD,CAAC;AAEH,eAAO,MAAM,2CAA2C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAwD,CAAC;AAEjH,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAG5C,CAAC;AAEH,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAI5C,CAAC;AAEH,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAG/C,CAAC;AAEF,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAC;AAChG,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAClF,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AACxF,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAC"}
|
|
@@ -147,6 +147,15 @@ export const initiateVendorPaymentSchema = z.object({
|
|
|
147
147
|
export const paymentApprovalActionInputSchema = z.object({
|
|
148
148
|
notes: z.string().max(2000).optional(),
|
|
149
149
|
});
|
|
150
|
+
export const resolveVendorAccountInputSchema = z.object({
|
|
151
|
+
bankCode: z.string().min(3).max(10),
|
|
152
|
+
accountNumber: z.string().min(10).max(20),
|
|
153
|
+
});
|
|
154
|
+
export const resolveVendorAccountResponseSchema = z.object({
|
|
155
|
+
meta: z.object({
|
|
156
|
+
accountName: z.string(),
|
|
157
|
+
}),
|
|
158
|
+
});
|
|
150
159
|
export const paymentApprovalAttributesSchema = z.object({
|
|
151
160
|
vendorPaymentId: z.string().uuid(),
|
|
152
161
|
approverId: z.string().uuid(),
|