@deepintel-ltd/farmpro-contracts 1.36.10 → 1.36.12
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 +63 -63
- package/dist/routes/inventory.routes.d.ts +14 -0
- package/dist/routes/inventory.routes.d.ts.map +1 -1
- package/dist/routes/market-intelligence.routes.d.ts +684 -0
- package/dist/routes/market-intelligence.routes.d.ts.map +1 -1
- package/dist/routes/market-intelligence.routes.js +61 -0
- package/dist/routes/organizations.routes.d.ts +49 -0
- package/dist/routes/organizations.routes.d.ts.map +1 -1
- package/dist/schemas/commodity-deals.schemas.d.ts +39 -39
- package/dist/schemas/commodity-deals.schemas.d.ts.map +1 -1
- package/dist/schemas/commodity-deals.schemas.js +1 -0
- package/dist/schemas/inventory.schemas.d.ts +20 -0
- package/dist/schemas/inventory.schemas.d.ts.map +1 -1
- package/dist/schemas/inventory.schemas.js +4 -0
- package/dist/schemas/organizations.schemas.d.ts +42 -0
- package/dist/schemas/organizations.schemas.d.ts.map +1 -1
- package/dist/schemas/organizations.schemas.js +3 -0
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const commodityDealStatusSchema: z.ZodEnum<["draft", "in_transit", "invoiced", "paid", "cancelled"]>;
|
|
3
|
-
export declare const companyFeeModeSchema: z.ZodEnum<["percent_of_invoice", "percent_of_returns", "per_kg"]>;
|
|
3
|
+
export declare const companyFeeModeSchema: z.ZodEnum<["percent_of_invoice", "percent_of_returns", "percent_of_gross", "per_kg"]>;
|
|
4
4
|
export declare const dealParticipantShareSchema: z.ZodObject<{
|
|
5
5
|
id: z.ZodOptional<z.ZodString>;
|
|
6
6
|
userId: z.ZodString;
|
|
@@ -101,7 +101,7 @@ export declare const commodityDealAttributesSchema: z.ZodObject<{
|
|
|
101
101
|
status: z.ZodEnum<["draft", "in_transit", "invoiced", "paid", "cancelled"]>;
|
|
102
102
|
notes: z.ZodNullable<z.ZodString>;
|
|
103
103
|
dealCapital: z.ZodNullable<z.ZodNumber>;
|
|
104
|
-
companyFeeMode: z.ZodNullable<z.ZodEnum<["percent_of_invoice", "percent_of_returns", "per_kg"]>>;
|
|
104
|
+
companyFeeMode: z.ZodNullable<z.ZodEnum<["percent_of_invoice", "percent_of_returns", "percent_of_gross", "per_kg"]>>;
|
|
105
105
|
companyFeeValue: z.ZodNullable<z.ZodNumber>;
|
|
106
106
|
totalWeightKg: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
107
107
|
supplierId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -207,7 +207,7 @@ export declare const commodityDealAttributesSchema: z.ZodObject<{
|
|
|
207
207
|
waybillId: string;
|
|
208
208
|
handlerUserId: string | null;
|
|
209
209
|
dealCapital: number | null;
|
|
210
|
-
companyFeeMode: "percent_of_invoice" | "percent_of_returns" | "per_kg" | null;
|
|
210
|
+
companyFeeMode: "percent_of_invoice" | "percent_of_returns" | "percent_of_gross" | "per_kg" | null;
|
|
211
211
|
companyFeeValue: number | null;
|
|
212
212
|
computed: {
|
|
213
213
|
totalCost: number;
|
|
@@ -259,7 +259,7 @@ export declare const commodityDealAttributesSchema: z.ZodObject<{
|
|
|
259
259
|
waybillId: string;
|
|
260
260
|
handlerUserId: string | null;
|
|
261
261
|
dealCapital: number | null;
|
|
262
|
-
companyFeeMode: "percent_of_invoice" | "percent_of_returns" | "per_kg" | null;
|
|
262
|
+
companyFeeMode: "percent_of_invoice" | "percent_of_returns" | "percent_of_gross" | "per_kg" | null;
|
|
263
263
|
companyFeeValue: number | null;
|
|
264
264
|
computed: {
|
|
265
265
|
totalCost: number;
|
|
@@ -310,7 +310,7 @@ export declare const createCommodityDealAttributesSchema: z.ZodObject<{
|
|
|
310
310
|
handlerUserId: z.ZodOptional<z.ZodString>;
|
|
311
311
|
supplierId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
312
312
|
dealCapital: z.ZodOptional<z.ZodNumber>;
|
|
313
|
-
companyFeeMode: z.ZodOptional<z.ZodEnum<["percent_of_invoice", "percent_of_returns", "per_kg"]>>;
|
|
313
|
+
companyFeeMode: z.ZodOptional<z.ZodEnum<["percent_of_invoice", "percent_of_returns", "percent_of_gross", "per_kg"]>>;
|
|
314
314
|
companyFeeValue: z.ZodOptional<z.ZodNumber>;
|
|
315
315
|
}, "strip", z.ZodTypeAny, {
|
|
316
316
|
currency: string;
|
|
@@ -324,7 +324,7 @@ export declare const createCommodityDealAttributesSchema: z.ZodObject<{
|
|
|
324
324
|
supplierId?: string | null | undefined;
|
|
325
325
|
handlerUserId?: string | undefined;
|
|
326
326
|
dealCapital?: number | undefined;
|
|
327
|
-
companyFeeMode?: "percent_of_invoice" | "percent_of_returns" | "per_kg" | undefined;
|
|
327
|
+
companyFeeMode?: "percent_of_invoice" | "percent_of_returns" | "percent_of_gross" | "per_kg" | undefined;
|
|
328
328
|
companyFeeValue?: number | undefined;
|
|
329
329
|
}, {
|
|
330
330
|
purchaseCost: number;
|
|
@@ -338,7 +338,7 @@ export declare const createCommodityDealAttributesSchema: z.ZodObject<{
|
|
|
338
338
|
supplierId?: string | null | undefined;
|
|
339
339
|
handlerUserId?: string | undefined;
|
|
340
340
|
dealCapital?: number | undefined;
|
|
341
|
-
companyFeeMode?: "percent_of_invoice" | "percent_of_returns" | "per_kg" | undefined;
|
|
341
|
+
companyFeeMode?: "percent_of_invoice" | "percent_of_returns" | "percent_of_gross" | "per_kg" | undefined;
|
|
342
342
|
companyFeeValue?: number | undefined;
|
|
343
343
|
}>;
|
|
344
344
|
export declare const updateCommodityDealAttributesSchema: z.ZodObject<{
|
|
@@ -353,7 +353,7 @@ export declare const updateCommodityDealAttributesSchema: z.ZodObject<{
|
|
|
353
353
|
handlerUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
354
354
|
supplierId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
355
355
|
dealCapital: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
356
|
-
companyFeeMode: z.ZodOptional<z.ZodNullable<z.ZodEnum<["percent_of_invoice", "percent_of_returns", "per_kg"]>>>;
|
|
356
|
+
companyFeeMode: z.ZodOptional<z.ZodNullable<z.ZodEnum<["percent_of_invoice", "percent_of_returns", "percent_of_gross", "per_kg"]>>>;
|
|
357
357
|
companyFeeValue: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
358
358
|
/** Set ISO datetime to mark paid out; null to mark unpaid. */
|
|
359
359
|
staffCommissionPaidAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -369,7 +369,7 @@ export declare const updateCommodityDealAttributesSchema: z.ZodObject<{
|
|
|
369
369
|
supplierId?: string | null | undefined;
|
|
370
370
|
handlerUserId?: string | null | undefined;
|
|
371
371
|
dealCapital?: number | null | undefined;
|
|
372
|
-
companyFeeMode?: "percent_of_invoice" | "percent_of_returns" | "per_kg" | null | undefined;
|
|
372
|
+
companyFeeMode?: "percent_of_invoice" | "percent_of_returns" | "percent_of_gross" | "per_kg" | null | undefined;
|
|
373
373
|
companyFeeValue?: number | null | undefined;
|
|
374
374
|
staffCommissionPaidAt?: string | null | undefined;
|
|
375
375
|
}, {
|
|
@@ -384,7 +384,7 @@ export declare const updateCommodityDealAttributesSchema: z.ZodObject<{
|
|
|
384
384
|
supplierId?: string | null | undefined;
|
|
385
385
|
handlerUserId?: string | null | undefined;
|
|
386
386
|
dealCapital?: number | null | undefined;
|
|
387
|
-
companyFeeMode?: "percent_of_invoice" | "percent_of_returns" | "per_kg" | null | undefined;
|
|
387
|
+
companyFeeMode?: "percent_of_invoice" | "percent_of_returns" | "percent_of_gross" | "per_kg" | null | undefined;
|
|
388
388
|
companyFeeValue?: number | null | undefined;
|
|
389
389
|
staffCommissionPaidAt?: string | null | undefined;
|
|
390
390
|
}>;
|
|
@@ -402,7 +402,7 @@ export declare const createCommodityDealSchema: z.ZodObject<{
|
|
|
402
402
|
handlerUserId: z.ZodOptional<z.ZodString>;
|
|
403
403
|
supplierId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
404
404
|
dealCapital: z.ZodOptional<z.ZodNumber>;
|
|
405
|
-
companyFeeMode: z.ZodOptional<z.ZodEnum<["percent_of_invoice", "percent_of_returns", "per_kg"]>>;
|
|
405
|
+
companyFeeMode: z.ZodOptional<z.ZodEnum<["percent_of_invoice", "percent_of_returns", "percent_of_gross", "per_kg"]>>;
|
|
406
406
|
companyFeeValue: z.ZodOptional<z.ZodNumber>;
|
|
407
407
|
}, "strip", z.ZodTypeAny, {
|
|
408
408
|
currency: string;
|
|
@@ -416,7 +416,7 @@ export declare const createCommodityDealSchema: z.ZodObject<{
|
|
|
416
416
|
supplierId?: string | null | undefined;
|
|
417
417
|
handlerUserId?: string | undefined;
|
|
418
418
|
dealCapital?: number | undefined;
|
|
419
|
-
companyFeeMode?: "percent_of_invoice" | "percent_of_returns" | "per_kg" | undefined;
|
|
419
|
+
companyFeeMode?: "percent_of_invoice" | "percent_of_returns" | "percent_of_gross" | "per_kg" | undefined;
|
|
420
420
|
companyFeeValue?: number | undefined;
|
|
421
421
|
}, {
|
|
422
422
|
purchaseCost: number;
|
|
@@ -430,7 +430,7 @@ export declare const createCommodityDealSchema: z.ZodObject<{
|
|
|
430
430
|
supplierId?: string | null | undefined;
|
|
431
431
|
handlerUserId?: string | undefined;
|
|
432
432
|
dealCapital?: number | undefined;
|
|
433
|
-
companyFeeMode?: "percent_of_invoice" | "percent_of_returns" | "per_kg" | undefined;
|
|
433
|
+
companyFeeMode?: "percent_of_invoice" | "percent_of_returns" | "percent_of_gross" | "per_kg" | undefined;
|
|
434
434
|
companyFeeValue?: number | undefined;
|
|
435
435
|
}>;
|
|
436
436
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -447,7 +447,7 @@ export declare const createCommodityDealSchema: z.ZodObject<{
|
|
|
447
447
|
supplierId?: string | null | undefined;
|
|
448
448
|
handlerUserId?: string | undefined;
|
|
449
449
|
dealCapital?: number | undefined;
|
|
450
|
-
companyFeeMode?: "percent_of_invoice" | "percent_of_returns" | "per_kg" | undefined;
|
|
450
|
+
companyFeeMode?: "percent_of_invoice" | "percent_of_returns" | "percent_of_gross" | "per_kg" | undefined;
|
|
451
451
|
companyFeeValue?: number | undefined;
|
|
452
452
|
};
|
|
453
453
|
}, {
|
|
@@ -464,7 +464,7 @@ export declare const createCommodityDealSchema: z.ZodObject<{
|
|
|
464
464
|
supplierId?: string | null | undefined;
|
|
465
465
|
handlerUserId?: string | undefined;
|
|
466
466
|
dealCapital?: number | undefined;
|
|
467
|
-
companyFeeMode?: "percent_of_invoice" | "percent_of_returns" | "per_kg" | undefined;
|
|
467
|
+
companyFeeMode?: "percent_of_invoice" | "percent_of_returns" | "percent_of_gross" | "per_kg" | undefined;
|
|
468
468
|
companyFeeValue?: number | undefined;
|
|
469
469
|
};
|
|
470
470
|
}>;
|
|
@@ -483,7 +483,7 @@ export declare const updateCommodityDealSchema: z.ZodObject<{
|
|
|
483
483
|
handlerUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
484
484
|
supplierId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
485
485
|
dealCapital: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
486
|
-
companyFeeMode: z.ZodOptional<z.ZodNullable<z.ZodEnum<["percent_of_invoice", "percent_of_returns", "per_kg"]>>>;
|
|
486
|
+
companyFeeMode: z.ZodOptional<z.ZodNullable<z.ZodEnum<["percent_of_invoice", "percent_of_returns", "percent_of_gross", "per_kg"]>>>;
|
|
487
487
|
companyFeeValue: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
488
488
|
/** Set ISO datetime to mark paid out; null to mark unpaid. */
|
|
489
489
|
staffCommissionPaidAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -499,7 +499,7 @@ export declare const updateCommodityDealSchema: z.ZodObject<{
|
|
|
499
499
|
supplierId?: string | null | undefined;
|
|
500
500
|
handlerUserId?: string | null | undefined;
|
|
501
501
|
dealCapital?: number | null | undefined;
|
|
502
|
-
companyFeeMode?: "percent_of_invoice" | "percent_of_returns" | "per_kg" | null | undefined;
|
|
502
|
+
companyFeeMode?: "percent_of_invoice" | "percent_of_returns" | "percent_of_gross" | "per_kg" | null | undefined;
|
|
503
503
|
companyFeeValue?: number | null | undefined;
|
|
504
504
|
staffCommissionPaidAt?: string | null | undefined;
|
|
505
505
|
}, {
|
|
@@ -514,7 +514,7 @@ export declare const updateCommodityDealSchema: z.ZodObject<{
|
|
|
514
514
|
supplierId?: string | null | undefined;
|
|
515
515
|
handlerUserId?: string | null | undefined;
|
|
516
516
|
dealCapital?: number | null | undefined;
|
|
517
|
-
companyFeeMode?: "percent_of_invoice" | "percent_of_returns" | "per_kg" | null | undefined;
|
|
517
|
+
companyFeeMode?: "percent_of_invoice" | "percent_of_returns" | "percent_of_gross" | "per_kg" | null | undefined;
|
|
518
518
|
companyFeeValue?: number | null | undefined;
|
|
519
519
|
staffCommissionPaidAt?: string | null | undefined;
|
|
520
520
|
}>;
|
|
@@ -532,7 +532,7 @@ export declare const updateCommodityDealSchema: z.ZodObject<{
|
|
|
532
532
|
supplierId?: string | null | undefined;
|
|
533
533
|
handlerUserId?: string | null | undefined;
|
|
534
534
|
dealCapital?: number | null | undefined;
|
|
535
|
-
companyFeeMode?: "percent_of_invoice" | "percent_of_returns" | "per_kg" | null | undefined;
|
|
535
|
+
companyFeeMode?: "percent_of_invoice" | "percent_of_returns" | "percent_of_gross" | "per_kg" | null | undefined;
|
|
536
536
|
companyFeeValue?: number | null | undefined;
|
|
537
537
|
staffCommissionPaidAt?: string | null | undefined;
|
|
538
538
|
};
|
|
@@ -551,7 +551,7 @@ export declare const updateCommodityDealSchema: z.ZodObject<{
|
|
|
551
551
|
supplierId?: string | null | undefined;
|
|
552
552
|
handlerUserId?: string | null | undefined;
|
|
553
553
|
dealCapital?: number | null | undefined;
|
|
554
|
-
companyFeeMode?: "percent_of_invoice" | "percent_of_returns" | "per_kg" | null | undefined;
|
|
554
|
+
companyFeeMode?: "percent_of_invoice" | "percent_of_returns" | "percent_of_gross" | "per_kg" | null | undefined;
|
|
555
555
|
companyFeeValue?: number | null | undefined;
|
|
556
556
|
staffCommissionPaidAt?: string | null | undefined;
|
|
557
557
|
};
|
|
@@ -647,7 +647,7 @@ export declare const commodityDealResourceSchema: z.ZodObject<{
|
|
|
647
647
|
status: z.ZodEnum<["draft", "in_transit", "invoiced", "paid", "cancelled"]>;
|
|
648
648
|
notes: z.ZodNullable<z.ZodString>;
|
|
649
649
|
dealCapital: z.ZodNullable<z.ZodNumber>;
|
|
650
|
-
companyFeeMode: z.ZodNullable<z.ZodEnum<["percent_of_invoice", "percent_of_returns", "per_kg"]>>;
|
|
650
|
+
companyFeeMode: z.ZodNullable<z.ZodEnum<["percent_of_invoice", "percent_of_returns", "percent_of_gross", "per_kg"]>>;
|
|
651
651
|
companyFeeValue: z.ZodNullable<z.ZodNumber>;
|
|
652
652
|
totalWeightKg: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
653
653
|
supplierId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -753,7 +753,7 @@ export declare const commodityDealResourceSchema: z.ZodObject<{
|
|
|
753
753
|
waybillId: string;
|
|
754
754
|
handlerUserId: string | null;
|
|
755
755
|
dealCapital: number | null;
|
|
756
|
-
companyFeeMode: "percent_of_invoice" | "percent_of_returns" | "per_kg" | null;
|
|
756
|
+
companyFeeMode: "percent_of_invoice" | "percent_of_returns" | "percent_of_gross" | "per_kg" | null;
|
|
757
757
|
companyFeeValue: number | null;
|
|
758
758
|
computed: {
|
|
759
759
|
totalCost: number;
|
|
@@ -805,7 +805,7 @@ export declare const commodityDealResourceSchema: z.ZodObject<{
|
|
|
805
805
|
waybillId: string;
|
|
806
806
|
handlerUserId: string | null;
|
|
807
807
|
dealCapital: number | null;
|
|
808
|
-
companyFeeMode: "percent_of_invoice" | "percent_of_returns" | "per_kg" | null;
|
|
808
|
+
companyFeeMode: "percent_of_invoice" | "percent_of_returns" | "percent_of_gross" | "per_kg" | null;
|
|
809
809
|
companyFeeValue: number | null;
|
|
810
810
|
computed: {
|
|
811
811
|
totalCost: number;
|
|
@@ -868,7 +868,7 @@ export declare const commodityDealResourceSchema: z.ZodObject<{
|
|
|
868
868
|
waybillId: string;
|
|
869
869
|
handlerUserId: string | null;
|
|
870
870
|
dealCapital: number | null;
|
|
871
|
-
companyFeeMode: "percent_of_invoice" | "percent_of_returns" | "per_kg" | null;
|
|
871
|
+
companyFeeMode: "percent_of_invoice" | "percent_of_returns" | "percent_of_gross" | "per_kg" | null;
|
|
872
872
|
companyFeeValue: number | null;
|
|
873
873
|
computed: {
|
|
874
874
|
totalCost: number;
|
|
@@ -927,7 +927,7 @@ export declare const commodityDealResourceSchema: z.ZodObject<{
|
|
|
927
927
|
waybillId: string;
|
|
928
928
|
handlerUserId: string | null;
|
|
929
929
|
dealCapital: number | null;
|
|
930
|
-
companyFeeMode: "percent_of_invoice" | "percent_of_returns" | "per_kg" | null;
|
|
930
|
+
companyFeeMode: "percent_of_invoice" | "percent_of_returns" | "percent_of_gross" | "per_kg" | null;
|
|
931
931
|
companyFeeValue: number | null;
|
|
932
932
|
computed: {
|
|
933
933
|
totalCost: number;
|
|
@@ -996,7 +996,7 @@ export declare const commodityDealResponseSchema: z.ZodObject<{
|
|
|
996
996
|
status: z.ZodEnum<["draft", "in_transit", "invoiced", "paid", "cancelled"]>;
|
|
997
997
|
notes: z.ZodNullable<z.ZodString>;
|
|
998
998
|
dealCapital: z.ZodNullable<z.ZodNumber>;
|
|
999
|
-
companyFeeMode: z.ZodNullable<z.ZodEnum<["percent_of_invoice", "percent_of_returns", "per_kg"]>>;
|
|
999
|
+
companyFeeMode: z.ZodNullable<z.ZodEnum<["percent_of_invoice", "percent_of_returns", "percent_of_gross", "per_kg"]>>;
|
|
1000
1000
|
companyFeeValue: z.ZodNullable<z.ZodNumber>;
|
|
1001
1001
|
totalWeightKg: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1002
1002
|
supplierId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -1102,7 +1102,7 @@ export declare const commodityDealResponseSchema: z.ZodObject<{
|
|
|
1102
1102
|
waybillId: string;
|
|
1103
1103
|
handlerUserId: string | null;
|
|
1104
1104
|
dealCapital: number | null;
|
|
1105
|
-
companyFeeMode: "percent_of_invoice" | "percent_of_returns" | "per_kg" | null;
|
|
1105
|
+
companyFeeMode: "percent_of_invoice" | "percent_of_returns" | "percent_of_gross" | "per_kg" | null;
|
|
1106
1106
|
companyFeeValue: number | null;
|
|
1107
1107
|
computed: {
|
|
1108
1108
|
totalCost: number;
|
|
@@ -1154,7 +1154,7 @@ export declare const commodityDealResponseSchema: z.ZodObject<{
|
|
|
1154
1154
|
waybillId: string;
|
|
1155
1155
|
handlerUserId: string | null;
|
|
1156
1156
|
dealCapital: number | null;
|
|
1157
|
-
companyFeeMode: "percent_of_invoice" | "percent_of_returns" | "per_kg" | null;
|
|
1157
|
+
companyFeeMode: "percent_of_invoice" | "percent_of_returns" | "percent_of_gross" | "per_kg" | null;
|
|
1158
1158
|
companyFeeValue: number | null;
|
|
1159
1159
|
computed: {
|
|
1160
1160
|
totalCost: number;
|
|
@@ -1217,7 +1217,7 @@ export declare const commodityDealResponseSchema: z.ZodObject<{
|
|
|
1217
1217
|
waybillId: string;
|
|
1218
1218
|
handlerUserId: string | null;
|
|
1219
1219
|
dealCapital: number | null;
|
|
1220
|
-
companyFeeMode: "percent_of_invoice" | "percent_of_returns" | "per_kg" | null;
|
|
1220
|
+
companyFeeMode: "percent_of_invoice" | "percent_of_returns" | "percent_of_gross" | "per_kg" | null;
|
|
1221
1221
|
companyFeeValue: number | null;
|
|
1222
1222
|
computed: {
|
|
1223
1223
|
totalCost: number;
|
|
@@ -1276,7 +1276,7 @@ export declare const commodityDealResponseSchema: z.ZodObject<{
|
|
|
1276
1276
|
waybillId: string;
|
|
1277
1277
|
handlerUserId: string | null;
|
|
1278
1278
|
dealCapital: number | null;
|
|
1279
|
-
companyFeeMode: "percent_of_invoice" | "percent_of_returns" | "per_kg" | null;
|
|
1279
|
+
companyFeeMode: "percent_of_invoice" | "percent_of_returns" | "percent_of_gross" | "per_kg" | null;
|
|
1280
1280
|
companyFeeValue: number | null;
|
|
1281
1281
|
computed: {
|
|
1282
1282
|
totalCost: number;
|
|
@@ -1365,7 +1365,7 @@ export declare const commodityDealResponseSchema: z.ZodObject<{
|
|
|
1365
1365
|
waybillId: string;
|
|
1366
1366
|
handlerUserId: string | null;
|
|
1367
1367
|
dealCapital: number | null;
|
|
1368
|
-
companyFeeMode: "percent_of_invoice" | "percent_of_returns" | "per_kg" | null;
|
|
1368
|
+
companyFeeMode: "percent_of_invoice" | "percent_of_returns" | "percent_of_gross" | "per_kg" | null;
|
|
1369
1369
|
companyFeeValue: number | null;
|
|
1370
1370
|
computed: {
|
|
1371
1371
|
totalCost: number;
|
|
@@ -1436,7 +1436,7 @@ export declare const commodityDealResponseSchema: z.ZodObject<{
|
|
|
1436
1436
|
waybillId: string;
|
|
1437
1437
|
handlerUserId: string | null;
|
|
1438
1438
|
dealCapital: number | null;
|
|
1439
|
-
companyFeeMode: "percent_of_invoice" | "percent_of_returns" | "per_kg" | null;
|
|
1439
|
+
companyFeeMode: "percent_of_invoice" | "percent_of_returns" | "percent_of_gross" | "per_kg" | null;
|
|
1440
1440
|
companyFeeValue: number | null;
|
|
1441
1441
|
computed: {
|
|
1442
1442
|
totalCost: number;
|
|
@@ -1516,7 +1516,7 @@ export declare const commodityDealListResponseSchema: z.ZodObject<{
|
|
|
1516
1516
|
status: z.ZodEnum<["draft", "in_transit", "invoiced", "paid", "cancelled"]>;
|
|
1517
1517
|
notes: z.ZodNullable<z.ZodString>;
|
|
1518
1518
|
dealCapital: z.ZodNullable<z.ZodNumber>;
|
|
1519
|
-
companyFeeMode: z.ZodNullable<z.ZodEnum<["percent_of_invoice", "percent_of_returns", "per_kg"]>>;
|
|
1519
|
+
companyFeeMode: z.ZodNullable<z.ZodEnum<["percent_of_invoice", "percent_of_returns", "percent_of_gross", "per_kg"]>>;
|
|
1520
1520
|
companyFeeValue: z.ZodNullable<z.ZodNumber>;
|
|
1521
1521
|
totalWeightKg: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1522
1522
|
supplierId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -1622,7 +1622,7 @@ export declare const commodityDealListResponseSchema: z.ZodObject<{
|
|
|
1622
1622
|
waybillId: string;
|
|
1623
1623
|
handlerUserId: string | null;
|
|
1624
1624
|
dealCapital: number | null;
|
|
1625
|
-
companyFeeMode: "percent_of_invoice" | "percent_of_returns" | "per_kg" | null;
|
|
1625
|
+
companyFeeMode: "percent_of_invoice" | "percent_of_returns" | "percent_of_gross" | "per_kg" | null;
|
|
1626
1626
|
companyFeeValue: number | null;
|
|
1627
1627
|
computed: {
|
|
1628
1628
|
totalCost: number;
|
|
@@ -1674,7 +1674,7 @@ export declare const commodityDealListResponseSchema: z.ZodObject<{
|
|
|
1674
1674
|
waybillId: string;
|
|
1675
1675
|
handlerUserId: string | null;
|
|
1676
1676
|
dealCapital: number | null;
|
|
1677
|
-
companyFeeMode: "percent_of_invoice" | "percent_of_returns" | "per_kg" | null;
|
|
1677
|
+
companyFeeMode: "percent_of_invoice" | "percent_of_returns" | "percent_of_gross" | "per_kg" | null;
|
|
1678
1678
|
companyFeeValue: number | null;
|
|
1679
1679
|
computed: {
|
|
1680
1680
|
totalCost: number;
|
|
@@ -1737,7 +1737,7 @@ export declare const commodityDealListResponseSchema: z.ZodObject<{
|
|
|
1737
1737
|
waybillId: string;
|
|
1738
1738
|
handlerUserId: string | null;
|
|
1739
1739
|
dealCapital: number | null;
|
|
1740
|
-
companyFeeMode: "percent_of_invoice" | "percent_of_returns" | "per_kg" | null;
|
|
1740
|
+
companyFeeMode: "percent_of_invoice" | "percent_of_returns" | "percent_of_gross" | "per_kg" | null;
|
|
1741
1741
|
companyFeeValue: number | null;
|
|
1742
1742
|
computed: {
|
|
1743
1743
|
totalCost: number;
|
|
@@ -1796,7 +1796,7 @@ export declare const commodityDealListResponseSchema: z.ZodObject<{
|
|
|
1796
1796
|
waybillId: string;
|
|
1797
1797
|
handlerUserId: string | null;
|
|
1798
1798
|
dealCapital: number | null;
|
|
1799
|
-
companyFeeMode: "percent_of_invoice" | "percent_of_returns" | "per_kg" | null;
|
|
1799
|
+
companyFeeMode: "percent_of_invoice" | "percent_of_returns" | "percent_of_gross" | "per_kg" | null;
|
|
1800
1800
|
companyFeeValue: number | null;
|
|
1801
1801
|
computed: {
|
|
1802
1802
|
totalCost: number;
|
|
@@ -1885,7 +1885,7 @@ export declare const commodityDealListResponseSchema: z.ZodObject<{
|
|
|
1885
1885
|
waybillId: string;
|
|
1886
1886
|
handlerUserId: string | null;
|
|
1887
1887
|
dealCapital: number | null;
|
|
1888
|
-
companyFeeMode: "percent_of_invoice" | "percent_of_returns" | "per_kg" | null;
|
|
1888
|
+
companyFeeMode: "percent_of_invoice" | "percent_of_returns" | "percent_of_gross" | "per_kg" | null;
|
|
1889
1889
|
companyFeeValue: number | null;
|
|
1890
1890
|
computed: {
|
|
1891
1891
|
totalCost: number;
|
|
@@ -1956,7 +1956,7 @@ export declare const commodityDealListResponseSchema: z.ZodObject<{
|
|
|
1956
1956
|
waybillId: string;
|
|
1957
1957
|
handlerUserId: string | null;
|
|
1958
1958
|
dealCapital: number | null;
|
|
1959
|
-
companyFeeMode: "percent_of_invoice" | "percent_of_returns" | "per_kg" | null;
|
|
1959
|
+
companyFeeMode: "percent_of_invoice" | "percent_of_returns" | "percent_of_gross" | "per_kg" | null;
|
|
1960
1960
|
companyFeeValue: number | null;
|
|
1961
1961
|
computed: {
|
|
1962
1962
|
totalCost: number;
|
|
@@ -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,
|
|
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,uFAK/B,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;EAQrC,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;;;;;;;;IAUtC,iDAAiD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQjD,CAAC;AAEH,eAAO,MAAM,6BAA6B;;;;;;;IAQtC,+CAA+C;;IAE/C,sDAAsD;;IAEtD,oDAAoD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAiBpD,gFAAgF;;;;;;;;;;;;QAvClF,iDAAiD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2CzB,CAAC;AAE3B,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAc9C,CAAC;AAEH,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;IAc9C,8DAA8D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAE9D,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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2B,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;AAC1E,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAClD,OAAO,oCAAoC,CAC5C,CAAC;AACF,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACxE,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CACjD,OAAO,mCAAmC,CAC3C,CAAC;AACF,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AACjF,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"}
|
|
@@ -246,6 +246,10 @@ export declare const updateInventoryItemAttributesSchema: z.ZodObject<{
|
|
|
246
246
|
name: z.ZodOptional<z.ZodString>;
|
|
247
247
|
category: z.ZodOptional<z.ZodString>;
|
|
248
248
|
unit: z.ZodOptional<z.ZodString>;
|
|
249
|
+
/** Quantity on hand. A change is stored as a stock adjustment. */
|
|
250
|
+
stock: z.ZodOptional<z.ZodNumber>;
|
|
251
|
+
/** Cost per unit. Stock value is stock × avgCost. */
|
|
252
|
+
avgCost: z.ZodOptional<z.ZodNumber>;
|
|
249
253
|
fertilizerProfile: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
250
254
|
brand: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
251
255
|
nitrogen: z.ZodNumber;
|
|
@@ -321,6 +325,8 @@ export declare const updateInventoryItemAttributesSchema: z.ZodObject<{
|
|
|
321
325
|
name?: string | undefined;
|
|
322
326
|
unit?: string | undefined;
|
|
323
327
|
category?: string | undefined;
|
|
328
|
+
stock?: number | undefined;
|
|
329
|
+
avgCost?: number | undefined;
|
|
324
330
|
fertilizerProfile?: {
|
|
325
331
|
nitrogen: number;
|
|
326
332
|
phosphorus: number;
|
|
@@ -340,6 +346,8 @@ export declare const updateInventoryItemAttributesSchema: z.ZodObject<{
|
|
|
340
346
|
name?: string | undefined;
|
|
341
347
|
unit?: string | undefined;
|
|
342
348
|
category?: string | undefined;
|
|
349
|
+
stock?: number | undefined;
|
|
350
|
+
avgCost?: number | undefined;
|
|
343
351
|
fertilizerProfile?: {
|
|
344
352
|
nitrogen: number;
|
|
345
353
|
phosphorus: number;
|
|
@@ -571,6 +579,10 @@ export declare const updateInventoryItemSchema: z.ZodObject<{
|
|
|
571
579
|
name: z.ZodOptional<z.ZodString>;
|
|
572
580
|
category: z.ZodOptional<z.ZodString>;
|
|
573
581
|
unit: z.ZodOptional<z.ZodString>;
|
|
582
|
+
/** Quantity on hand. A change is stored as a stock adjustment. */
|
|
583
|
+
stock: z.ZodOptional<z.ZodNumber>;
|
|
584
|
+
/** Cost per unit. Stock value is stock × avgCost. */
|
|
585
|
+
avgCost: z.ZodOptional<z.ZodNumber>;
|
|
574
586
|
fertilizerProfile: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
575
587
|
brand: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
576
588
|
nitrogen: z.ZodNumber;
|
|
@@ -646,6 +658,8 @@ export declare const updateInventoryItemSchema: z.ZodObject<{
|
|
|
646
658
|
name?: string | undefined;
|
|
647
659
|
unit?: string | undefined;
|
|
648
660
|
category?: string | undefined;
|
|
661
|
+
stock?: number | undefined;
|
|
662
|
+
avgCost?: number | undefined;
|
|
649
663
|
fertilizerProfile?: {
|
|
650
664
|
nitrogen: number;
|
|
651
665
|
phosphorus: number;
|
|
@@ -665,6 +679,8 @@ export declare const updateInventoryItemSchema: z.ZodObject<{
|
|
|
665
679
|
name?: string | undefined;
|
|
666
680
|
unit?: string | undefined;
|
|
667
681
|
category?: string | undefined;
|
|
682
|
+
stock?: number | undefined;
|
|
683
|
+
avgCost?: number | undefined;
|
|
668
684
|
fertilizerProfile?: {
|
|
669
685
|
nitrogen: number;
|
|
670
686
|
phosphorus: number;
|
|
@@ -688,6 +704,8 @@ export declare const updateInventoryItemSchema: z.ZodObject<{
|
|
|
688
704
|
name?: string | undefined;
|
|
689
705
|
unit?: string | undefined;
|
|
690
706
|
category?: string | undefined;
|
|
707
|
+
stock?: number | undefined;
|
|
708
|
+
avgCost?: number | undefined;
|
|
691
709
|
fertilizerProfile?: {
|
|
692
710
|
nitrogen: number;
|
|
693
711
|
phosphorus: number;
|
|
@@ -711,6 +729,8 @@ export declare const updateInventoryItemSchema: z.ZodObject<{
|
|
|
711
729
|
name?: string | undefined;
|
|
712
730
|
unit?: string | undefined;
|
|
713
731
|
category?: string | undefined;
|
|
732
|
+
stock?: number | undefined;
|
|
733
|
+
avgCost?: number | undefined;
|
|
714
734
|
fertilizerProfile?: {
|
|
715
735
|
nitrogen: number;
|
|
716
736
|
phosphorus: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inventory.schemas.d.ts","sourceRoot":"","sources":["../../src/schemas/inventory.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAYxB;;GAEG;AAGH,eAAO,MAAM,6BAA6B;;;;;;;IAOxC,mEAAmE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAEnE,8EAA8E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEtD,CAAC;AAG3B,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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M,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAC;AAC5F,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAChF,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAC;AAC5F,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC"}
|
|
@@ -31,6 +31,10 @@ export const updateInventoryItemAttributesSchema = z.object({
|
|
|
31
31
|
name: z.string().min(1).max(200).optional(),
|
|
32
32
|
category: z.string().min(1).optional(),
|
|
33
33
|
unit: z.string().min(1).optional(),
|
|
34
|
+
/** Quantity on hand. A change is stored as a stock adjustment. */
|
|
35
|
+
stock: z.number().nonnegative().optional(),
|
|
36
|
+
/** Cost per unit. Stock value is stock × avgCost. */
|
|
37
|
+
avgCost: z.number().nonnegative().optional(),
|
|
34
38
|
fertilizerProfile: fertilizerProfileInputSchema.optional(),
|
|
35
39
|
});
|
|
36
40
|
// Log purchase attributes (creates inventory item and expense)
|