@deepintel-ltd/farmpro-contracts 1.22.0 → 1.22.1

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.
@@ -49,7 +49,7 @@ export declare const commodityDealsRouter: {
49
49
  status: z.ZodEnum<["draft", "in_transit", "invoiced", "paid", "cancelled"]>;
50
50
  notes: z.ZodNullable<z.ZodString>;
51
51
  dealCapital: z.ZodNullable<z.ZodNumber>;
52
- companyFeeMode: z.ZodNullable<z.ZodEnum<["percent_of_invoice", "per_kg"]>>;
52
+ companyFeeMode: z.ZodNullable<z.ZodEnum<["percent_of_invoice", "percent_of_returns", "per_kg"]>>;
53
53
  companyFeeValue: z.ZodNullable<z.ZodNumber>;
54
54
  totalWeightKg: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
55
55
  participants: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -150,7 +150,7 @@ export declare const commodityDealsRouter: {
150
150
  waybillId: string;
151
151
  handlerUserId: string | null;
152
152
  dealCapital: number | null;
153
- companyFeeMode: "percent_of_invoice" | "per_kg" | null;
153
+ companyFeeMode: "percent_of_invoice" | "percent_of_returns" | "per_kg" | null;
154
154
  companyFeeValue: number | null;
155
155
  computed: {
156
156
  totalCost: number;
@@ -197,7 +197,7 @@ export declare const commodityDealsRouter: {
197
197
  waybillId: string;
198
198
  handlerUserId: string | null;
199
199
  dealCapital: number | null;
200
- companyFeeMode: "percent_of_invoice" | "per_kg" | null;
200
+ companyFeeMode: "percent_of_invoice" | "percent_of_returns" | "per_kg" | null;
201
201
  companyFeeValue: number | null;
202
202
  computed: {
203
203
  totalCost: number;
@@ -253,7 +253,7 @@ export declare const commodityDealsRouter: {
253
253
  waybillId: string;
254
254
  handlerUserId: string | null;
255
255
  dealCapital: number | null;
256
- companyFeeMode: "percent_of_invoice" | "per_kg" | null;
256
+ companyFeeMode: "percent_of_invoice" | "percent_of_returns" | "per_kg" | null;
257
257
  companyFeeValue: number | null;
258
258
  computed: {
259
259
  totalCost: number;
@@ -307,7 +307,7 @@ export declare const commodityDealsRouter: {
307
307
  waybillId: string;
308
308
  handlerUserId: string | null;
309
309
  dealCapital: number | null;
310
- companyFeeMode: "percent_of_invoice" | "per_kg" | null;
310
+ companyFeeMode: "percent_of_invoice" | "percent_of_returns" | "per_kg" | null;
311
311
  companyFeeValue: number | null;
312
312
  computed: {
313
313
  totalCost: number;
@@ -389,7 +389,7 @@ export declare const commodityDealsRouter: {
389
389
  waybillId: string;
390
390
  handlerUserId: string | null;
391
391
  dealCapital: number | null;
392
- companyFeeMode: "percent_of_invoice" | "per_kg" | null;
392
+ companyFeeMode: "percent_of_invoice" | "percent_of_returns" | "per_kg" | null;
393
393
  companyFeeValue: number | null;
394
394
  computed: {
395
395
  totalCost: number;
@@ -455,7 +455,7 @@ export declare const commodityDealsRouter: {
455
455
  waybillId: string;
456
456
  handlerUserId: string | null;
457
457
  dealCapital: number | null;
458
- companyFeeMode: "percent_of_invoice" | "per_kg" | null;
458
+ companyFeeMode: "percent_of_invoice" | "percent_of_returns" | "per_kg" | null;
459
459
  companyFeeValue: number | null;
460
460
  computed: {
461
461
  totalCost: number;
@@ -2218,7 +2218,7 @@ export declare const commodityDealsRouter: {
2218
2218
  status: z.ZodEnum<["draft", "in_transit", "invoiced", "paid", "cancelled"]>;
2219
2219
  notes: z.ZodNullable<z.ZodString>;
2220
2220
  dealCapital: z.ZodNullable<z.ZodNumber>;
2221
- companyFeeMode: z.ZodNullable<z.ZodEnum<["percent_of_invoice", "per_kg"]>>;
2221
+ companyFeeMode: z.ZodNullable<z.ZodEnum<["percent_of_invoice", "percent_of_returns", "per_kg"]>>;
2222
2222
  companyFeeValue: z.ZodNullable<z.ZodNumber>;
2223
2223
  totalWeightKg: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2224
2224
  participants: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -2319,7 +2319,7 @@ export declare const commodityDealsRouter: {
2319
2319
  waybillId: string;
2320
2320
  handlerUserId: string | null;
2321
2321
  dealCapital: number | null;
2322
- companyFeeMode: "percent_of_invoice" | "per_kg" | null;
2322
+ companyFeeMode: "percent_of_invoice" | "percent_of_returns" | "per_kg" | null;
2323
2323
  companyFeeValue: number | null;
2324
2324
  computed: {
2325
2325
  totalCost: number;
@@ -2366,7 +2366,7 @@ export declare const commodityDealsRouter: {
2366
2366
  waybillId: string;
2367
2367
  handlerUserId: string | null;
2368
2368
  dealCapital: number | null;
2369
- companyFeeMode: "percent_of_invoice" | "per_kg" | null;
2369
+ companyFeeMode: "percent_of_invoice" | "percent_of_returns" | "per_kg" | null;
2370
2370
  companyFeeValue: number | null;
2371
2371
  computed: {
2372
2372
  totalCost: number;
@@ -2422,7 +2422,7 @@ export declare const commodityDealsRouter: {
2422
2422
  waybillId: string;
2423
2423
  handlerUserId: string | null;
2424
2424
  dealCapital: number | null;
2425
- companyFeeMode: "percent_of_invoice" | "per_kg" | null;
2425
+ companyFeeMode: "percent_of_invoice" | "percent_of_returns" | "per_kg" | null;
2426
2426
  companyFeeValue: number | null;
2427
2427
  computed: {
2428
2428
  totalCost: number;
@@ -2476,7 +2476,7 @@ export declare const commodityDealsRouter: {
2476
2476
  waybillId: string;
2477
2477
  handlerUserId: string | null;
2478
2478
  dealCapital: number | null;
2479
- companyFeeMode: "percent_of_invoice" | "per_kg" | null;
2479
+ companyFeeMode: "percent_of_invoice" | "percent_of_returns" | "per_kg" | null;
2480
2480
  companyFeeValue: number | null;
2481
2481
  computed: {
2482
2482
  totalCost: number;
@@ -2558,7 +2558,7 @@ export declare const commodityDealsRouter: {
2558
2558
  waybillId: string;
2559
2559
  handlerUserId: string | null;
2560
2560
  dealCapital: number | null;
2561
- companyFeeMode: "percent_of_invoice" | "per_kg" | null;
2561
+ companyFeeMode: "percent_of_invoice" | "percent_of_returns" | "per_kg" | null;
2562
2562
  companyFeeValue: number | null;
2563
2563
  computed: {
2564
2564
  totalCost: number;
@@ -2624,7 +2624,7 @@ export declare const commodityDealsRouter: {
2624
2624
  waybillId: string;
2625
2625
  handlerUserId: string | null;
2626
2626
  dealCapital: number | null;
2627
- companyFeeMode: "percent_of_invoice" | "per_kg" | null;
2627
+ companyFeeMode: "percent_of_invoice" | "percent_of_returns" | "per_kg" | null;
2628
2628
  companyFeeValue: number | null;
2629
2629
  computed: {
2630
2630
  totalCost: number;
@@ -2877,7 +2877,7 @@ export declare const commodityDealsRouter: {
2877
2877
  notes: z.ZodOptional<z.ZodString>;
2878
2878
  handlerUserId: z.ZodOptional<z.ZodString>;
2879
2879
  dealCapital: z.ZodOptional<z.ZodNumber>;
2880
- companyFeeMode: z.ZodOptional<z.ZodEnum<["percent_of_invoice", "per_kg"]>>;
2880
+ companyFeeMode: z.ZodOptional<z.ZodEnum<["percent_of_invoice", "percent_of_returns", "per_kg"]>>;
2881
2881
  companyFeeValue: z.ZodOptional<z.ZodNumber>;
2882
2882
  }, "strip", z.ZodTypeAny, {
2883
2883
  currency: string;
@@ -2889,7 +2889,7 @@ export declare const commodityDealsRouter: {
2889
2889
  notes?: string | undefined;
2890
2890
  handlerUserId?: string | undefined;
2891
2891
  dealCapital?: number | undefined;
2892
- companyFeeMode?: "percent_of_invoice" | "per_kg" | undefined;
2892
+ companyFeeMode?: "percent_of_invoice" | "percent_of_returns" | "per_kg" | undefined;
2893
2893
  companyFeeValue?: number | undefined;
2894
2894
  }, {
2895
2895
  purchaseCost: number;
@@ -2901,7 +2901,7 @@ export declare const commodityDealsRouter: {
2901
2901
  miscellaneousCost?: number | undefined;
2902
2902
  handlerUserId?: string | undefined;
2903
2903
  dealCapital?: number | undefined;
2904
- companyFeeMode?: "percent_of_invoice" | "per_kg" | undefined;
2904
+ companyFeeMode?: "percent_of_invoice" | "percent_of_returns" | "per_kg" | undefined;
2905
2905
  companyFeeValue?: number | undefined;
2906
2906
  }>;
2907
2907
  }, "strip", z.ZodTypeAny, {
@@ -2916,7 +2916,7 @@ export declare const commodityDealsRouter: {
2916
2916
  notes?: string | undefined;
2917
2917
  handlerUserId?: string | undefined;
2918
2918
  dealCapital?: number | undefined;
2919
- companyFeeMode?: "percent_of_invoice" | "per_kg" | undefined;
2919
+ companyFeeMode?: "percent_of_invoice" | "percent_of_returns" | "per_kg" | undefined;
2920
2920
  companyFeeValue?: number | undefined;
2921
2921
  };
2922
2922
  }, {
@@ -2931,7 +2931,7 @@ export declare const commodityDealsRouter: {
2931
2931
  miscellaneousCost?: number | undefined;
2932
2932
  handlerUserId?: string | undefined;
2933
2933
  dealCapital?: number | undefined;
2934
- companyFeeMode?: "percent_of_invoice" | "per_kg" | undefined;
2934
+ companyFeeMode?: "percent_of_invoice" | "percent_of_returns" | "per_kg" | undefined;
2935
2935
  companyFeeValue?: number | undefined;
2936
2936
  };
2937
2937
  }>;
@@ -2948,7 +2948,7 @@ export declare const commodityDealsRouter: {
2948
2948
  notes?: string | undefined;
2949
2949
  handlerUserId?: string | undefined;
2950
2950
  dealCapital?: number | undefined;
2951
- companyFeeMode?: "percent_of_invoice" | "per_kg" | undefined;
2951
+ companyFeeMode?: "percent_of_invoice" | "percent_of_returns" | "per_kg" | undefined;
2952
2952
  companyFeeValue?: number | undefined;
2953
2953
  };
2954
2954
  };
@@ -2965,7 +2965,7 @@ export declare const commodityDealsRouter: {
2965
2965
  miscellaneousCost?: number | undefined;
2966
2966
  handlerUserId?: string | undefined;
2967
2967
  dealCapital?: number | undefined;
2968
- companyFeeMode?: "percent_of_invoice" | "per_kg" | undefined;
2968
+ companyFeeMode?: "percent_of_invoice" | "percent_of_returns" | "per_kg" | undefined;
2969
2969
  companyFeeValue?: number | undefined;
2970
2970
  };
2971
2971
  };
@@ -2991,7 +2991,7 @@ export declare const commodityDealsRouter: {
2991
2991
  status: z.ZodEnum<["draft", "in_transit", "invoiced", "paid", "cancelled"]>;
2992
2992
  notes: z.ZodNullable<z.ZodString>;
2993
2993
  dealCapital: z.ZodNullable<z.ZodNumber>;
2994
- companyFeeMode: z.ZodNullable<z.ZodEnum<["percent_of_invoice", "per_kg"]>>;
2994
+ companyFeeMode: z.ZodNullable<z.ZodEnum<["percent_of_invoice", "percent_of_returns", "per_kg"]>>;
2995
2995
  companyFeeValue: z.ZodNullable<z.ZodNumber>;
2996
2996
  totalWeightKg: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2997
2997
  participants: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -3092,7 +3092,7 @@ export declare const commodityDealsRouter: {
3092
3092
  waybillId: string;
3093
3093
  handlerUserId: string | null;
3094
3094
  dealCapital: number | null;
3095
- companyFeeMode: "percent_of_invoice" | "per_kg" | null;
3095
+ companyFeeMode: "percent_of_invoice" | "percent_of_returns" | "per_kg" | null;
3096
3096
  companyFeeValue: number | null;
3097
3097
  computed: {
3098
3098
  totalCost: number;
@@ -3139,7 +3139,7 @@ export declare const commodityDealsRouter: {
3139
3139
  waybillId: string;
3140
3140
  handlerUserId: string | null;
3141
3141
  dealCapital: number | null;
3142
- companyFeeMode: "percent_of_invoice" | "per_kg" | null;
3142
+ companyFeeMode: "percent_of_invoice" | "percent_of_returns" | "per_kg" | null;
3143
3143
  companyFeeValue: number | null;
3144
3144
  computed: {
3145
3145
  totalCost: number;
@@ -3195,7 +3195,7 @@ export declare const commodityDealsRouter: {
3195
3195
  waybillId: string;
3196
3196
  handlerUserId: string | null;
3197
3197
  dealCapital: number | null;
3198
- companyFeeMode: "percent_of_invoice" | "per_kg" | null;
3198
+ companyFeeMode: "percent_of_invoice" | "percent_of_returns" | "per_kg" | null;
3199
3199
  companyFeeValue: number | null;
3200
3200
  computed: {
3201
3201
  totalCost: number;
@@ -3249,7 +3249,7 @@ export declare const commodityDealsRouter: {
3249
3249
  waybillId: string;
3250
3250
  handlerUserId: string | null;
3251
3251
  dealCapital: number | null;
3252
- companyFeeMode: "percent_of_invoice" | "per_kg" | null;
3252
+ companyFeeMode: "percent_of_invoice" | "percent_of_returns" | "per_kg" | null;
3253
3253
  companyFeeValue: number | null;
3254
3254
  computed: {
3255
3255
  totalCost: number;
@@ -3331,7 +3331,7 @@ export declare const commodityDealsRouter: {
3331
3331
  waybillId: string;
3332
3332
  handlerUserId: string | null;
3333
3333
  dealCapital: number | null;
3334
- companyFeeMode: "percent_of_invoice" | "per_kg" | null;
3334
+ companyFeeMode: "percent_of_invoice" | "percent_of_returns" | "per_kg" | null;
3335
3335
  companyFeeValue: number | null;
3336
3336
  computed: {
3337
3337
  totalCost: number;
@@ -3397,7 +3397,7 @@ export declare const commodityDealsRouter: {
3397
3397
  waybillId: string;
3398
3398
  handlerUserId: string | null;
3399
3399
  dealCapital: number | null;
3400
- companyFeeMode: "percent_of_invoice" | "per_kg" | null;
3400
+ companyFeeMode: "percent_of_invoice" | "percent_of_returns" | "per_kg" | null;
3401
3401
  companyFeeValue: number | null;
3402
3402
  computed: {
3403
3403
  totalCost: number;
@@ -3924,7 +3924,7 @@ export declare const commodityDealsRouter: {
3924
3924
  invoiceId: z.ZodOptional<z.ZodString>;
3925
3925
  handlerUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3926
3926
  dealCapital: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3927
- companyFeeMode: z.ZodOptional<z.ZodNullable<z.ZodEnum<["percent_of_invoice", "per_kg"]>>>;
3927
+ companyFeeMode: z.ZodOptional<z.ZodNullable<z.ZodEnum<["percent_of_invoice", "percent_of_returns", "per_kg"]>>>;
3928
3928
  companyFeeValue: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3929
3929
  staffCommissionPaidAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3930
3930
  }, "strip", z.ZodTypeAny, {
@@ -3937,7 +3937,7 @@ export declare const commodityDealsRouter: {
3937
3937
  miscellaneousCost?: number | undefined;
3938
3938
  handlerUserId?: string | null | undefined;
3939
3939
  dealCapital?: number | null | undefined;
3940
- companyFeeMode?: "percent_of_invoice" | "per_kg" | null | undefined;
3940
+ companyFeeMode?: "percent_of_invoice" | "percent_of_returns" | "per_kg" | null | undefined;
3941
3941
  companyFeeValue?: number | null | undefined;
3942
3942
  staffCommissionPaidAt?: string | null | undefined;
3943
3943
  }, {
@@ -3950,7 +3950,7 @@ export declare const commodityDealsRouter: {
3950
3950
  miscellaneousCost?: number | undefined;
3951
3951
  handlerUserId?: string | null | undefined;
3952
3952
  dealCapital?: number | null | undefined;
3953
- companyFeeMode?: "percent_of_invoice" | "per_kg" | null | undefined;
3953
+ companyFeeMode?: "percent_of_invoice" | "percent_of_returns" | "per_kg" | null | undefined;
3954
3954
  companyFeeValue?: number | null | undefined;
3955
3955
  staffCommissionPaidAt?: string | null | undefined;
3956
3956
  }>;
@@ -3966,7 +3966,7 @@ export declare const commodityDealsRouter: {
3966
3966
  miscellaneousCost?: number | undefined;
3967
3967
  handlerUserId?: string | null | undefined;
3968
3968
  dealCapital?: number | null | undefined;
3969
- companyFeeMode?: "percent_of_invoice" | "per_kg" | null | undefined;
3969
+ companyFeeMode?: "percent_of_invoice" | "percent_of_returns" | "per_kg" | null | undefined;
3970
3970
  companyFeeValue?: number | null | undefined;
3971
3971
  staffCommissionPaidAt?: string | null | undefined;
3972
3972
  };
@@ -3983,7 +3983,7 @@ export declare const commodityDealsRouter: {
3983
3983
  miscellaneousCost?: number | undefined;
3984
3984
  handlerUserId?: string | null | undefined;
3985
3985
  dealCapital?: number | null | undefined;
3986
- companyFeeMode?: "percent_of_invoice" | "per_kg" | null | undefined;
3986
+ companyFeeMode?: "percent_of_invoice" | "percent_of_returns" | "per_kg" | null | undefined;
3987
3987
  companyFeeValue?: number | null | undefined;
3988
3988
  staffCommissionPaidAt?: string | null | undefined;
3989
3989
  };
@@ -4002,7 +4002,7 @@ export declare const commodityDealsRouter: {
4002
4002
  miscellaneousCost?: number | undefined;
4003
4003
  handlerUserId?: string | null | undefined;
4004
4004
  dealCapital?: number | null | undefined;
4005
- companyFeeMode?: "percent_of_invoice" | "per_kg" | null | undefined;
4005
+ companyFeeMode?: "percent_of_invoice" | "percent_of_returns" | "per_kg" | null | undefined;
4006
4006
  companyFeeValue?: number | null | undefined;
4007
4007
  staffCommissionPaidAt?: string | null | undefined;
4008
4008
  };
@@ -4021,7 +4021,7 @@ export declare const commodityDealsRouter: {
4021
4021
  miscellaneousCost?: number | undefined;
4022
4022
  handlerUserId?: string | null | undefined;
4023
4023
  dealCapital?: number | null | undefined;
4024
- companyFeeMode?: "percent_of_invoice" | "per_kg" | null | undefined;
4024
+ companyFeeMode?: "percent_of_invoice" | "percent_of_returns" | "per_kg" | null | undefined;
4025
4025
  companyFeeValue?: number | null | undefined;
4026
4026
  staffCommissionPaidAt?: string | null | undefined;
4027
4027
  };
@@ -4049,7 +4049,7 @@ export declare const commodityDealsRouter: {
4049
4049
  status: z.ZodEnum<["draft", "in_transit", "invoiced", "paid", "cancelled"]>;
4050
4050
  notes: z.ZodNullable<z.ZodString>;
4051
4051
  dealCapital: z.ZodNullable<z.ZodNumber>;
4052
- companyFeeMode: z.ZodNullable<z.ZodEnum<["percent_of_invoice", "per_kg"]>>;
4052
+ companyFeeMode: z.ZodNullable<z.ZodEnum<["percent_of_invoice", "percent_of_returns", "per_kg"]>>;
4053
4053
  companyFeeValue: z.ZodNullable<z.ZodNumber>;
4054
4054
  totalWeightKg: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4055
4055
  participants: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -4150,7 +4150,7 @@ export declare const commodityDealsRouter: {
4150
4150
  waybillId: string;
4151
4151
  handlerUserId: string | null;
4152
4152
  dealCapital: number | null;
4153
- companyFeeMode: "percent_of_invoice" | "per_kg" | null;
4153
+ companyFeeMode: "percent_of_invoice" | "percent_of_returns" | "per_kg" | null;
4154
4154
  companyFeeValue: number | null;
4155
4155
  computed: {
4156
4156
  totalCost: number;
@@ -4197,7 +4197,7 @@ export declare const commodityDealsRouter: {
4197
4197
  waybillId: string;
4198
4198
  handlerUserId: string | null;
4199
4199
  dealCapital: number | null;
4200
- companyFeeMode: "percent_of_invoice" | "per_kg" | null;
4200
+ companyFeeMode: "percent_of_invoice" | "percent_of_returns" | "per_kg" | null;
4201
4201
  companyFeeValue: number | null;
4202
4202
  computed: {
4203
4203
  totalCost: number;
@@ -4253,7 +4253,7 @@ export declare const commodityDealsRouter: {
4253
4253
  waybillId: string;
4254
4254
  handlerUserId: string | null;
4255
4255
  dealCapital: number | null;
4256
- companyFeeMode: "percent_of_invoice" | "per_kg" | null;
4256
+ companyFeeMode: "percent_of_invoice" | "percent_of_returns" | "per_kg" | null;
4257
4257
  companyFeeValue: number | null;
4258
4258
  computed: {
4259
4259
  totalCost: number;
@@ -4307,7 +4307,7 @@ export declare const commodityDealsRouter: {
4307
4307
  waybillId: string;
4308
4308
  handlerUserId: string | null;
4309
4309
  dealCapital: number | null;
4310
- companyFeeMode: "percent_of_invoice" | "per_kg" | null;
4310
+ companyFeeMode: "percent_of_invoice" | "percent_of_returns" | "per_kg" | null;
4311
4311
  companyFeeValue: number | null;
4312
4312
  computed: {
4313
4313
  totalCost: number;
@@ -4389,7 +4389,7 @@ export declare const commodityDealsRouter: {
4389
4389
  waybillId: string;
4390
4390
  handlerUserId: string | null;
4391
4391
  dealCapital: number | null;
4392
- companyFeeMode: "percent_of_invoice" | "per_kg" | null;
4392
+ companyFeeMode: "percent_of_invoice" | "percent_of_returns" | "per_kg" | null;
4393
4393
  companyFeeValue: number | null;
4394
4394
  computed: {
4395
4395
  totalCost: number;
@@ -4455,7 +4455,7 @@ export declare const commodityDealsRouter: {
4455
4455
  waybillId: string;
4456
4456
  handlerUserId: string | null;
4457
4457
  dealCapital: number | null;
4458
- companyFeeMode: "percent_of_invoice" | "per_kg" | null;
4458
+ companyFeeMode: "percent_of_invoice" | "percent_of_returns" | "per_kg" | null;
4459
4459
  companyFeeValue: number | null;
4460
4460
  computed: {
4461
4461
  totalCost: number;
@@ -5032,7 +5032,7 @@ export declare const commodityDealsRouter: {
5032
5032
  status: z.ZodEnum<["draft", "in_transit", "invoiced", "paid", "cancelled"]>;
5033
5033
  notes: z.ZodNullable<z.ZodString>;
5034
5034
  dealCapital: z.ZodNullable<z.ZodNumber>;
5035
- companyFeeMode: z.ZodNullable<z.ZodEnum<["percent_of_invoice", "per_kg"]>>;
5035
+ companyFeeMode: z.ZodNullable<z.ZodEnum<["percent_of_invoice", "percent_of_returns", "per_kg"]>>;
5036
5036
  companyFeeValue: z.ZodNullable<z.ZodNumber>;
5037
5037
  totalWeightKg: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5038
5038
  participants: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -5133,7 +5133,7 @@ export declare const commodityDealsRouter: {
5133
5133
  waybillId: string;
5134
5134
  handlerUserId: string | null;
5135
5135
  dealCapital: number | null;
5136
- companyFeeMode: "percent_of_invoice" | "per_kg" | null;
5136
+ companyFeeMode: "percent_of_invoice" | "percent_of_returns" | "per_kg" | null;
5137
5137
  companyFeeValue: number | null;
5138
5138
  computed: {
5139
5139
  totalCost: number;
@@ -5180,7 +5180,7 @@ export declare const commodityDealsRouter: {
5180
5180
  waybillId: string;
5181
5181
  handlerUserId: string | null;
5182
5182
  dealCapital: number | null;
5183
- companyFeeMode: "percent_of_invoice" | "per_kg" | null;
5183
+ companyFeeMode: "percent_of_invoice" | "percent_of_returns" | "per_kg" | null;
5184
5184
  companyFeeValue: number | null;
5185
5185
  computed: {
5186
5186
  totalCost: number;
@@ -5236,7 +5236,7 @@ export declare const commodityDealsRouter: {
5236
5236
  waybillId: string;
5237
5237
  handlerUserId: string | null;
5238
5238
  dealCapital: number | null;
5239
- companyFeeMode: "percent_of_invoice" | "per_kg" | null;
5239
+ companyFeeMode: "percent_of_invoice" | "percent_of_returns" | "per_kg" | null;
5240
5240
  companyFeeValue: number | null;
5241
5241
  computed: {
5242
5242
  totalCost: number;
@@ -5290,7 +5290,7 @@ export declare const commodityDealsRouter: {
5290
5290
  waybillId: string;
5291
5291
  handlerUserId: string | null;
5292
5292
  dealCapital: number | null;
5293
- companyFeeMode: "percent_of_invoice" | "per_kg" | null;
5293
+ companyFeeMode: "percent_of_invoice" | "percent_of_returns" | "per_kg" | null;
5294
5294
  companyFeeValue: number | null;
5295
5295
  computed: {
5296
5296
  totalCost: number;
@@ -5372,7 +5372,7 @@ export declare const commodityDealsRouter: {
5372
5372
  waybillId: string;
5373
5373
  handlerUserId: string | null;
5374
5374
  dealCapital: number | null;
5375
- companyFeeMode: "percent_of_invoice" | "per_kg" | null;
5375
+ companyFeeMode: "percent_of_invoice" | "percent_of_returns" | "per_kg" | null;
5376
5376
  companyFeeValue: number | null;
5377
5377
  computed: {
5378
5378
  totalCost: number;
@@ -5438,7 +5438,7 @@ export declare const commodityDealsRouter: {
5438
5438
  waybillId: string;
5439
5439
  handlerUserId: string | null;
5440
5440
  dealCapital: number | null;
5441
- companyFeeMode: "percent_of_invoice" | "per_kg" | null;
5441
+ companyFeeMode: "percent_of_invoice" | "percent_of_returns" | "per_kg" | null;
5442
5442
  companyFeeValue: number | null;
5443
5443
  computed: {
5444
5444
  totalCost: number;
@@ -6016,7 +6016,7 @@ export declare const commodityDealsRouter: {
6016
6016
  status: z.ZodEnum<["draft", "in_transit", "invoiced", "paid", "cancelled"]>;
6017
6017
  notes: z.ZodNullable<z.ZodString>;
6018
6018
  dealCapital: z.ZodNullable<z.ZodNumber>;
6019
- companyFeeMode: z.ZodNullable<z.ZodEnum<["percent_of_invoice", "per_kg"]>>;
6019
+ companyFeeMode: z.ZodNullable<z.ZodEnum<["percent_of_invoice", "percent_of_returns", "per_kg"]>>;
6020
6020
  companyFeeValue: z.ZodNullable<z.ZodNumber>;
6021
6021
  totalWeightKg: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
6022
6022
  participants: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -6117,7 +6117,7 @@ export declare const commodityDealsRouter: {
6117
6117
  waybillId: string;
6118
6118
  handlerUserId: string | null;
6119
6119
  dealCapital: number | null;
6120
- companyFeeMode: "percent_of_invoice" | "per_kg" | null;
6120
+ companyFeeMode: "percent_of_invoice" | "percent_of_returns" | "per_kg" | null;
6121
6121
  companyFeeValue: number | null;
6122
6122
  computed: {
6123
6123
  totalCost: number;
@@ -6164,7 +6164,7 @@ export declare const commodityDealsRouter: {
6164
6164
  waybillId: string;
6165
6165
  handlerUserId: string | null;
6166
6166
  dealCapital: number | null;
6167
- companyFeeMode: "percent_of_invoice" | "per_kg" | null;
6167
+ companyFeeMode: "percent_of_invoice" | "percent_of_returns" | "per_kg" | null;
6168
6168
  companyFeeValue: number | null;
6169
6169
  computed: {
6170
6170
  totalCost: number;
@@ -6220,7 +6220,7 @@ export declare const commodityDealsRouter: {
6220
6220
  waybillId: string;
6221
6221
  handlerUserId: string | null;
6222
6222
  dealCapital: number | null;
6223
- companyFeeMode: "percent_of_invoice" | "per_kg" | null;
6223
+ companyFeeMode: "percent_of_invoice" | "percent_of_returns" | "per_kg" | null;
6224
6224
  companyFeeValue: number | null;
6225
6225
  computed: {
6226
6226
  totalCost: number;
@@ -6274,7 +6274,7 @@ export declare const commodityDealsRouter: {
6274
6274
  waybillId: string;
6275
6275
  handlerUserId: string | null;
6276
6276
  dealCapital: number | null;
6277
- companyFeeMode: "percent_of_invoice" | "per_kg" | null;
6277
+ companyFeeMode: "percent_of_invoice" | "percent_of_returns" | "per_kg" | null;
6278
6278
  companyFeeValue: number | null;
6279
6279
  computed: {
6280
6280
  totalCost: number;
@@ -6356,7 +6356,7 @@ export declare const commodityDealsRouter: {
6356
6356
  waybillId: string;
6357
6357
  handlerUserId: string | null;
6358
6358
  dealCapital: number | null;
6359
- companyFeeMode: "percent_of_invoice" | "per_kg" | null;
6359
+ companyFeeMode: "percent_of_invoice" | "percent_of_returns" | "per_kg" | null;
6360
6360
  companyFeeValue: number | null;
6361
6361
  computed: {
6362
6362
  totalCost: number;
@@ -6422,7 +6422,7 @@ export declare const commodityDealsRouter: {
6422
6422
  waybillId: string;
6423
6423
  handlerUserId: string | null;
6424
6424
  dealCapital: number | null;
6425
- companyFeeMode: "percent_of_invoice" | "per_kg" | null;
6425
+ companyFeeMode: "percent_of_invoice" | "percent_of_returns" | "per_kg" | null;
6426
6426
  companyFeeValue: number | null;
6427
6427
  computed: {
6428
6428
  totalCost: number;
@@ -6959,7 +6959,7 @@ export declare const commodityDealsRouter: {
6959
6959
  status: z.ZodEnum<["draft", "in_transit", "invoiced", "paid", "cancelled"]>;
6960
6960
  notes: z.ZodNullable<z.ZodString>;
6961
6961
  dealCapital: z.ZodNullable<z.ZodNumber>;
6962
- companyFeeMode: z.ZodNullable<z.ZodEnum<["percent_of_invoice", "per_kg"]>>;
6962
+ companyFeeMode: z.ZodNullable<z.ZodEnum<["percent_of_invoice", "percent_of_returns", "per_kg"]>>;
6963
6963
  companyFeeValue: z.ZodNullable<z.ZodNumber>;
6964
6964
  totalWeightKg: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
6965
6965
  participants: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -7060,7 +7060,7 @@ export declare const commodityDealsRouter: {
7060
7060
  waybillId: string;
7061
7061
  handlerUserId: string | null;
7062
7062
  dealCapital: number | null;
7063
- companyFeeMode: "percent_of_invoice" | "per_kg" | null;
7063
+ companyFeeMode: "percent_of_invoice" | "percent_of_returns" | "per_kg" | null;
7064
7064
  companyFeeValue: number | null;
7065
7065
  computed: {
7066
7066
  totalCost: number;
@@ -7107,7 +7107,7 @@ export declare const commodityDealsRouter: {
7107
7107
  waybillId: string;
7108
7108
  handlerUserId: string | null;
7109
7109
  dealCapital: number | null;
7110
- companyFeeMode: "percent_of_invoice" | "per_kg" | null;
7110
+ companyFeeMode: "percent_of_invoice" | "percent_of_returns" | "per_kg" | null;
7111
7111
  companyFeeValue: number | null;
7112
7112
  computed: {
7113
7113
  totalCost: number;
@@ -7163,7 +7163,7 @@ export declare const commodityDealsRouter: {
7163
7163
  waybillId: string;
7164
7164
  handlerUserId: string | null;
7165
7165
  dealCapital: number | null;
7166
- companyFeeMode: "percent_of_invoice" | "per_kg" | null;
7166
+ companyFeeMode: "percent_of_invoice" | "percent_of_returns" | "per_kg" | null;
7167
7167
  companyFeeValue: number | null;
7168
7168
  computed: {
7169
7169
  totalCost: number;
@@ -7217,7 +7217,7 @@ export declare const commodityDealsRouter: {
7217
7217
  waybillId: string;
7218
7218
  handlerUserId: string | null;
7219
7219
  dealCapital: number | null;
7220
- companyFeeMode: "percent_of_invoice" | "per_kg" | null;
7220
+ companyFeeMode: "percent_of_invoice" | "percent_of_returns" | "per_kg" | null;
7221
7221
  companyFeeValue: number | null;
7222
7222
  computed: {
7223
7223
  totalCost: number;
@@ -7299,7 +7299,7 @@ export declare const commodityDealsRouter: {
7299
7299
  waybillId: string;
7300
7300
  handlerUserId: string | null;
7301
7301
  dealCapital: number | null;
7302
- companyFeeMode: "percent_of_invoice" | "per_kg" | null;
7302
+ companyFeeMode: "percent_of_invoice" | "percent_of_returns" | "per_kg" | null;
7303
7303
  companyFeeValue: number | null;
7304
7304
  computed: {
7305
7305
  totalCost: number;
@@ -7365,7 +7365,7 @@ export declare const commodityDealsRouter: {
7365
7365
  waybillId: string;
7366
7366
  handlerUserId: string | null;
7367
7367
  dealCapital: number | null;
7368
- companyFeeMode: "percent_of_invoice" | "per_kg" | null;
7368
+ companyFeeMode: "percent_of_invoice" | "percent_of_returns" | "per_kg" | null;
7369
7369
  companyFeeValue: number | null;
7370
7370
  computed: {
7371
7371
  totalCost: number;
@@ -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", "per_kg"]>;
3
+ export declare const companyFeeModeSchema: z.ZodEnum<["percent_of_invoice", "percent_of_returns", "per_kg"]>;
4
4
  export declare const dealParticipantShareSchema: z.ZodObject<{
5
5
  id: z.ZodOptional<z.ZodString>;
6
6
  userId: z.ZodString;
@@ -94,7 +94,7 @@ export declare const commodityDealAttributesSchema: z.ZodObject<{
94
94
  status: z.ZodEnum<["draft", "in_transit", "invoiced", "paid", "cancelled"]>;
95
95
  notes: z.ZodNullable<z.ZodString>;
96
96
  dealCapital: z.ZodNullable<z.ZodNumber>;
97
- companyFeeMode: z.ZodNullable<z.ZodEnum<["percent_of_invoice", "per_kg"]>>;
97
+ companyFeeMode: z.ZodNullable<z.ZodEnum<["percent_of_invoice", "percent_of_returns", "per_kg"]>>;
98
98
  companyFeeValue: z.ZodNullable<z.ZodNumber>;
99
99
  totalWeightKg: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
100
100
  participants: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -197,7 +197,7 @@ export declare const commodityDealAttributesSchema: z.ZodObject<{
197
197
  waybillId: string;
198
198
  handlerUserId: string | null;
199
199
  dealCapital: number | null;
200
- companyFeeMode: "percent_of_invoice" | "per_kg" | null;
200
+ companyFeeMode: "percent_of_invoice" | "percent_of_returns" | "per_kg" | null;
201
201
  companyFeeValue: number | null;
202
202
  computed: {
203
203
  totalCost: number;
@@ -244,7 +244,7 @@ export declare const commodityDealAttributesSchema: z.ZodObject<{
244
244
  waybillId: string;
245
245
  handlerUserId: string | null;
246
246
  dealCapital: number | null;
247
- companyFeeMode: "percent_of_invoice" | "per_kg" | null;
247
+ companyFeeMode: "percent_of_invoice" | "percent_of_returns" | "per_kg" | null;
248
248
  companyFeeValue: number | null;
249
249
  computed: {
250
250
  totalCost: number;
@@ -287,7 +287,7 @@ export declare const createCommodityDealAttributesSchema: z.ZodObject<{
287
287
  notes: z.ZodOptional<z.ZodString>;
288
288
  handlerUserId: z.ZodOptional<z.ZodString>;
289
289
  dealCapital: z.ZodOptional<z.ZodNumber>;
290
- companyFeeMode: z.ZodOptional<z.ZodEnum<["percent_of_invoice", "per_kg"]>>;
290
+ companyFeeMode: z.ZodOptional<z.ZodEnum<["percent_of_invoice", "percent_of_returns", "per_kg"]>>;
291
291
  companyFeeValue: z.ZodOptional<z.ZodNumber>;
292
292
  }, "strip", z.ZodTypeAny, {
293
293
  currency: string;
@@ -299,7 +299,7 @@ export declare const createCommodityDealAttributesSchema: z.ZodObject<{
299
299
  notes?: string | undefined;
300
300
  handlerUserId?: string | undefined;
301
301
  dealCapital?: number | undefined;
302
- companyFeeMode?: "percent_of_invoice" | "per_kg" | undefined;
302
+ companyFeeMode?: "percent_of_invoice" | "percent_of_returns" | "per_kg" | undefined;
303
303
  companyFeeValue?: number | undefined;
304
304
  }, {
305
305
  purchaseCost: number;
@@ -311,7 +311,7 @@ export declare const createCommodityDealAttributesSchema: z.ZodObject<{
311
311
  miscellaneousCost?: number | undefined;
312
312
  handlerUserId?: string | undefined;
313
313
  dealCapital?: number | undefined;
314
- companyFeeMode?: "percent_of_invoice" | "per_kg" | undefined;
314
+ companyFeeMode?: "percent_of_invoice" | "percent_of_returns" | "per_kg" | undefined;
315
315
  companyFeeValue?: number | undefined;
316
316
  }>;
317
317
  export declare const updateCommodityDealAttributesSchema: z.ZodObject<{
@@ -324,7 +324,7 @@ export declare const updateCommodityDealAttributesSchema: z.ZodObject<{
324
324
  invoiceId: z.ZodOptional<z.ZodString>;
325
325
  handlerUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
326
326
  dealCapital: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
327
- companyFeeMode: z.ZodOptional<z.ZodNullable<z.ZodEnum<["percent_of_invoice", "per_kg"]>>>;
327
+ companyFeeMode: z.ZodOptional<z.ZodNullable<z.ZodEnum<["percent_of_invoice", "percent_of_returns", "per_kg"]>>>;
328
328
  companyFeeValue: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
329
329
  /** Set ISO datetime to mark paid out; null to mark unpaid. */
330
330
  staffCommissionPaidAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -338,7 +338,7 @@ export declare const updateCommodityDealAttributesSchema: z.ZodObject<{
338
338
  miscellaneousCost?: number | undefined;
339
339
  handlerUserId?: string | null | undefined;
340
340
  dealCapital?: number | null | undefined;
341
- companyFeeMode?: "percent_of_invoice" | "per_kg" | null | undefined;
341
+ companyFeeMode?: "percent_of_invoice" | "percent_of_returns" | "per_kg" | null | undefined;
342
342
  companyFeeValue?: number | null | undefined;
343
343
  staffCommissionPaidAt?: string | null | undefined;
344
344
  }, {
@@ -351,7 +351,7 @@ export declare const updateCommodityDealAttributesSchema: z.ZodObject<{
351
351
  miscellaneousCost?: number | undefined;
352
352
  handlerUserId?: string | null | undefined;
353
353
  dealCapital?: number | null | undefined;
354
- companyFeeMode?: "percent_of_invoice" | "per_kg" | null | undefined;
354
+ companyFeeMode?: "percent_of_invoice" | "percent_of_returns" | "per_kg" | null | undefined;
355
355
  companyFeeValue?: number | null | undefined;
356
356
  staffCommissionPaidAt?: string | null | undefined;
357
357
  }>;
@@ -367,7 +367,7 @@ export declare const createCommodityDealSchema: z.ZodObject<{
367
367
  notes: z.ZodOptional<z.ZodString>;
368
368
  handlerUserId: z.ZodOptional<z.ZodString>;
369
369
  dealCapital: z.ZodOptional<z.ZodNumber>;
370
- companyFeeMode: z.ZodOptional<z.ZodEnum<["percent_of_invoice", "per_kg"]>>;
370
+ companyFeeMode: z.ZodOptional<z.ZodEnum<["percent_of_invoice", "percent_of_returns", "per_kg"]>>;
371
371
  companyFeeValue: z.ZodOptional<z.ZodNumber>;
372
372
  }, "strip", z.ZodTypeAny, {
373
373
  currency: string;
@@ -379,7 +379,7 @@ export declare const createCommodityDealSchema: z.ZodObject<{
379
379
  notes?: string | undefined;
380
380
  handlerUserId?: string | undefined;
381
381
  dealCapital?: number | undefined;
382
- companyFeeMode?: "percent_of_invoice" | "per_kg" | undefined;
382
+ companyFeeMode?: "percent_of_invoice" | "percent_of_returns" | "per_kg" | undefined;
383
383
  companyFeeValue?: number | undefined;
384
384
  }, {
385
385
  purchaseCost: number;
@@ -391,7 +391,7 @@ export declare const createCommodityDealSchema: z.ZodObject<{
391
391
  miscellaneousCost?: number | undefined;
392
392
  handlerUserId?: string | undefined;
393
393
  dealCapital?: number | undefined;
394
- companyFeeMode?: "percent_of_invoice" | "per_kg" | undefined;
394
+ companyFeeMode?: "percent_of_invoice" | "percent_of_returns" | "per_kg" | undefined;
395
395
  companyFeeValue?: number | undefined;
396
396
  }>;
397
397
  }, "strip", z.ZodTypeAny, {
@@ -406,7 +406,7 @@ export declare const createCommodityDealSchema: z.ZodObject<{
406
406
  notes?: string | undefined;
407
407
  handlerUserId?: string | undefined;
408
408
  dealCapital?: number | undefined;
409
- companyFeeMode?: "percent_of_invoice" | "per_kg" | undefined;
409
+ companyFeeMode?: "percent_of_invoice" | "percent_of_returns" | "per_kg" | undefined;
410
410
  companyFeeValue?: number | undefined;
411
411
  };
412
412
  }, {
@@ -421,7 +421,7 @@ export declare const createCommodityDealSchema: z.ZodObject<{
421
421
  miscellaneousCost?: number | undefined;
422
422
  handlerUserId?: string | undefined;
423
423
  dealCapital?: number | undefined;
424
- companyFeeMode?: "percent_of_invoice" | "per_kg" | undefined;
424
+ companyFeeMode?: "percent_of_invoice" | "percent_of_returns" | "per_kg" | undefined;
425
425
  companyFeeValue?: number | undefined;
426
426
  };
427
427
  }>;
@@ -438,7 +438,7 @@ export declare const updateCommodityDealSchema: z.ZodObject<{
438
438
  invoiceId: z.ZodOptional<z.ZodString>;
439
439
  handlerUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
440
440
  dealCapital: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
441
- companyFeeMode: z.ZodOptional<z.ZodNullable<z.ZodEnum<["percent_of_invoice", "per_kg"]>>>;
441
+ companyFeeMode: z.ZodOptional<z.ZodNullable<z.ZodEnum<["percent_of_invoice", "percent_of_returns", "per_kg"]>>>;
442
442
  companyFeeValue: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
443
443
  /** Set ISO datetime to mark paid out; null to mark unpaid. */
444
444
  staffCommissionPaidAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -452,7 +452,7 @@ export declare const updateCommodityDealSchema: z.ZodObject<{
452
452
  miscellaneousCost?: number | undefined;
453
453
  handlerUserId?: string | null | undefined;
454
454
  dealCapital?: number | null | undefined;
455
- companyFeeMode?: "percent_of_invoice" | "per_kg" | null | undefined;
455
+ companyFeeMode?: "percent_of_invoice" | "percent_of_returns" | "per_kg" | null | undefined;
456
456
  companyFeeValue?: number | null | undefined;
457
457
  staffCommissionPaidAt?: string | null | undefined;
458
458
  }, {
@@ -465,7 +465,7 @@ export declare const updateCommodityDealSchema: z.ZodObject<{
465
465
  miscellaneousCost?: number | undefined;
466
466
  handlerUserId?: string | null | undefined;
467
467
  dealCapital?: number | null | undefined;
468
- companyFeeMode?: "percent_of_invoice" | "per_kg" | null | undefined;
468
+ companyFeeMode?: "percent_of_invoice" | "percent_of_returns" | "per_kg" | null | undefined;
469
469
  companyFeeValue?: number | null | undefined;
470
470
  staffCommissionPaidAt?: string | null | undefined;
471
471
  }>;
@@ -481,7 +481,7 @@ export declare const updateCommodityDealSchema: z.ZodObject<{
481
481
  miscellaneousCost?: number | undefined;
482
482
  handlerUserId?: string | null | undefined;
483
483
  dealCapital?: number | null | undefined;
484
- companyFeeMode?: "percent_of_invoice" | "per_kg" | null | undefined;
484
+ companyFeeMode?: "percent_of_invoice" | "percent_of_returns" | "per_kg" | null | undefined;
485
485
  companyFeeValue?: number | null | undefined;
486
486
  staffCommissionPaidAt?: string | null | undefined;
487
487
  };
@@ -498,7 +498,7 @@ export declare const updateCommodityDealSchema: z.ZodObject<{
498
498
  miscellaneousCost?: number | undefined;
499
499
  handlerUserId?: string | null | undefined;
500
500
  dealCapital?: number | null | undefined;
501
- companyFeeMode?: "percent_of_invoice" | "per_kg" | null | undefined;
501
+ companyFeeMode?: "percent_of_invoice" | "percent_of_returns" | "per_kg" | null | undefined;
502
502
  companyFeeValue?: number | null | undefined;
503
503
  staffCommissionPaidAt?: string | null | undefined;
504
504
  };
@@ -587,7 +587,7 @@ export declare const commodityDealResourceSchema: z.ZodObject<{
587
587
  status: z.ZodEnum<["draft", "in_transit", "invoiced", "paid", "cancelled"]>;
588
588
  notes: z.ZodNullable<z.ZodString>;
589
589
  dealCapital: z.ZodNullable<z.ZodNumber>;
590
- companyFeeMode: z.ZodNullable<z.ZodEnum<["percent_of_invoice", "per_kg"]>>;
590
+ companyFeeMode: z.ZodNullable<z.ZodEnum<["percent_of_invoice", "percent_of_returns", "per_kg"]>>;
591
591
  companyFeeValue: z.ZodNullable<z.ZodNumber>;
592
592
  totalWeightKg: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
593
593
  participants: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -690,7 +690,7 @@ export declare const commodityDealResourceSchema: z.ZodObject<{
690
690
  waybillId: string;
691
691
  handlerUserId: string | null;
692
692
  dealCapital: number | null;
693
- companyFeeMode: "percent_of_invoice" | "per_kg" | null;
693
+ companyFeeMode: "percent_of_invoice" | "percent_of_returns" | "per_kg" | null;
694
694
  companyFeeValue: number | null;
695
695
  computed: {
696
696
  totalCost: number;
@@ -737,7 +737,7 @@ export declare const commodityDealResourceSchema: z.ZodObject<{
737
737
  waybillId: string;
738
738
  handlerUserId: string | null;
739
739
  dealCapital: number | null;
740
- companyFeeMode: "percent_of_invoice" | "per_kg" | null;
740
+ companyFeeMode: "percent_of_invoice" | "percent_of_returns" | "per_kg" | null;
741
741
  companyFeeValue: number | null;
742
742
  computed: {
743
743
  totalCost: number;
@@ -793,7 +793,7 @@ export declare const commodityDealResourceSchema: z.ZodObject<{
793
793
  waybillId: string;
794
794
  handlerUserId: string | null;
795
795
  dealCapital: number | null;
796
- companyFeeMode: "percent_of_invoice" | "per_kg" | null;
796
+ companyFeeMode: "percent_of_invoice" | "percent_of_returns" | "per_kg" | null;
797
797
  companyFeeValue: number | null;
798
798
  computed: {
799
799
  totalCost: number;
@@ -847,7 +847,7 @@ export declare const commodityDealResourceSchema: z.ZodObject<{
847
847
  waybillId: string;
848
848
  handlerUserId: string | null;
849
849
  dealCapital: number | null;
850
- companyFeeMode: "percent_of_invoice" | "per_kg" | null;
850
+ companyFeeMode: "percent_of_invoice" | "percent_of_returns" | "per_kg" | null;
851
851
  companyFeeValue: number | null;
852
852
  computed: {
853
853
  totalCost: number;
@@ -903,7 +903,7 @@ export declare const commodityDealResponseSchema: z.ZodObject<{
903
903
  status: z.ZodEnum<["draft", "in_transit", "invoiced", "paid", "cancelled"]>;
904
904
  notes: z.ZodNullable<z.ZodString>;
905
905
  dealCapital: z.ZodNullable<z.ZodNumber>;
906
- companyFeeMode: z.ZodNullable<z.ZodEnum<["percent_of_invoice", "per_kg"]>>;
906
+ companyFeeMode: z.ZodNullable<z.ZodEnum<["percent_of_invoice", "percent_of_returns", "per_kg"]>>;
907
907
  companyFeeValue: z.ZodNullable<z.ZodNumber>;
908
908
  totalWeightKg: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
909
909
  participants: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -1006,7 +1006,7 @@ export declare const commodityDealResponseSchema: z.ZodObject<{
1006
1006
  waybillId: string;
1007
1007
  handlerUserId: string | null;
1008
1008
  dealCapital: number | null;
1009
- companyFeeMode: "percent_of_invoice" | "per_kg" | null;
1009
+ companyFeeMode: "percent_of_invoice" | "percent_of_returns" | "per_kg" | null;
1010
1010
  companyFeeValue: number | null;
1011
1011
  computed: {
1012
1012
  totalCost: number;
@@ -1053,7 +1053,7 @@ export declare const commodityDealResponseSchema: z.ZodObject<{
1053
1053
  waybillId: string;
1054
1054
  handlerUserId: string | null;
1055
1055
  dealCapital: number | null;
1056
- companyFeeMode: "percent_of_invoice" | "per_kg" | null;
1056
+ companyFeeMode: "percent_of_invoice" | "percent_of_returns" | "per_kg" | null;
1057
1057
  companyFeeValue: number | null;
1058
1058
  computed: {
1059
1059
  totalCost: number;
@@ -1109,7 +1109,7 @@ export declare const commodityDealResponseSchema: z.ZodObject<{
1109
1109
  waybillId: string;
1110
1110
  handlerUserId: string | null;
1111
1111
  dealCapital: number | null;
1112
- companyFeeMode: "percent_of_invoice" | "per_kg" | null;
1112
+ companyFeeMode: "percent_of_invoice" | "percent_of_returns" | "per_kg" | null;
1113
1113
  companyFeeValue: number | null;
1114
1114
  computed: {
1115
1115
  totalCost: number;
@@ -1163,7 +1163,7 @@ export declare const commodityDealResponseSchema: z.ZodObject<{
1163
1163
  waybillId: string;
1164
1164
  handlerUserId: string | null;
1165
1165
  dealCapital: number | null;
1166
- companyFeeMode: "percent_of_invoice" | "per_kg" | null;
1166
+ companyFeeMode: "percent_of_invoice" | "percent_of_returns" | "per_kg" | null;
1167
1167
  companyFeeValue: number | null;
1168
1168
  computed: {
1169
1169
  totalCost: number;
@@ -1245,7 +1245,7 @@ export declare const commodityDealResponseSchema: z.ZodObject<{
1245
1245
  waybillId: string;
1246
1246
  handlerUserId: string | null;
1247
1247
  dealCapital: number | null;
1248
- companyFeeMode: "percent_of_invoice" | "per_kg" | null;
1248
+ companyFeeMode: "percent_of_invoice" | "percent_of_returns" | "per_kg" | null;
1249
1249
  companyFeeValue: number | null;
1250
1250
  computed: {
1251
1251
  totalCost: number;
@@ -1311,7 +1311,7 @@ export declare const commodityDealResponseSchema: z.ZodObject<{
1311
1311
  waybillId: string;
1312
1312
  handlerUserId: string | null;
1313
1313
  dealCapital: number | null;
1314
- companyFeeMode: "percent_of_invoice" | "per_kg" | null;
1314
+ companyFeeMode: "percent_of_invoice" | "percent_of_returns" | "per_kg" | null;
1315
1315
  companyFeeValue: number | null;
1316
1316
  computed: {
1317
1317
  totalCost: number;
@@ -1378,7 +1378,7 @@ export declare const commodityDealListResponseSchema: z.ZodObject<{
1378
1378
  status: z.ZodEnum<["draft", "in_transit", "invoiced", "paid", "cancelled"]>;
1379
1379
  notes: z.ZodNullable<z.ZodString>;
1380
1380
  dealCapital: z.ZodNullable<z.ZodNumber>;
1381
- companyFeeMode: z.ZodNullable<z.ZodEnum<["percent_of_invoice", "per_kg"]>>;
1381
+ companyFeeMode: z.ZodNullable<z.ZodEnum<["percent_of_invoice", "percent_of_returns", "per_kg"]>>;
1382
1382
  companyFeeValue: z.ZodNullable<z.ZodNumber>;
1383
1383
  totalWeightKg: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1384
1384
  participants: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -1481,7 +1481,7 @@ export declare const commodityDealListResponseSchema: z.ZodObject<{
1481
1481
  waybillId: string;
1482
1482
  handlerUserId: string | null;
1483
1483
  dealCapital: number | null;
1484
- companyFeeMode: "percent_of_invoice" | "per_kg" | null;
1484
+ companyFeeMode: "percent_of_invoice" | "percent_of_returns" | "per_kg" | null;
1485
1485
  companyFeeValue: number | null;
1486
1486
  computed: {
1487
1487
  totalCost: number;
@@ -1528,7 +1528,7 @@ export declare const commodityDealListResponseSchema: z.ZodObject<{
1528
1528
  waybillId: string;
1529
1529
  handlerUserId: string | null;
1530
1530
  dealCapital: number | null;
1531
- companyFeeMode: "percent_of_invoice" | "per_kg" | null;
1531
+ companyFeeMode: "percent_of_invoice" | "percent_of_returns" | "per_kg" | null;
1532
1532
  companyFeeValue: number | null;
1533
1533
  computed: {
1534
1534
  totalCost: number;
@@ -1584,7 +1584,7 @@ export declare const commodityDealListResponseSchema: z.ZodObject<{
1584
1584
  waybillId: string;
1585
1585
  handlerUserId: string | null;
1586
1586
  dealCapital: number | null;
1587
- companyFeeMode: "percent_of_invoice" | "per_kg" | null;
1587
+ companyFeeMode: "percent_of_invoice" | "percent_of_returns" | "per_kg" | null;
1588
1588
  companyFeeValue: number | null;
1589
1589
  computed: {
1590
1590
  totalCost: number;
@@ -1638,7 +1638,7 @@ export declare const commodityDealListResponseSchema: z.ZodObject<{
1638
1638
  waybillId: string;
1639
1639
  handlerUserId: string | null;
1640
1640
  dealCapital: number | null;
1641
- companyFeeMode: "percent_of_invoice" | "per_kg" | null;
1641
+ companyFeeMode: "percent_of_invoice" | "percent_of_returns" | "per_kg" | null;
1642
1642
  companyFeeValue: number | null;
1643
1643
  computed: {
1644
1644
  totalCost: number;
@@ -1720,7 +1720,7 @@ export declare const commodityDealListResponseSchema: z.ZodObject<{
1720
1720
  waybillId: string;
1721
1721
  handlerUserId: string | null;
1722
1722
  dealCapital: number | null;
1723
- companyFeeMode: "percent_of_invoice" | "per_kg" | null;
1723
+ companyFeeMode: "percent_of_invoice" | "percent_of_returns" | "per_kg" | null;
1724
1724
  companyFeeValue: number | null;
1725
1725
  computed: {
1726
1726
  totalCost: number;
@@ -1786,7 +1786,7 @@ export declare const commodityDealListResponseSchema: z.ZodObject<{
1786
1786
  waybillId: string;
1787
1787
  handlerUserId: string | null;
1788
1788
  dealCapital: number | null;
1789
- companyFeeMode: "percent_of_invoice" | "per_kg" | null;
1789
+ companyFeeMode: "percent_of_invoice" | "percent_of_returns" | "per_kg" | null;
1790
1790
  companyFeeValue: number | null;
1791
1791
  computed: {
1792
1792
  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,6CAA2C,CAAC;AAE7E,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;EAQrC,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;;;;;;;;IAUtC,iDAAiD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQjD,CAAC;AAEH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAoBtC,gFAAgF;;;;;;;;;;;;QA9BlF,iDAAiD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkCzB,CAAC;AAE3B,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;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CAAkC,CAAC,CAAC;AAC9F,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAC;AAC5F,MAAM,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,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAC;AAChG,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;AAC1E,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAClD,OAAO,oCAAoC,CAC5C,CAAC"}
@@ -7,7 +7,11 @@ export const commodityDealStatusSchema = z.enum([
7
7
  'paid',
8
8
  'cancelled',
9
9
  ]);
10
- export const companyFeeModeSchema = z.enum(['percent_of_invoice', 'per_kg']);
10
+ export const companyFeeModeSchema = z.enum([
11
+ 'percent_of_invoice',
12
+ 'percent_of_returns',
13
+ 'per_kg',
14
+ ]);
11
15
  export const dealParticipantShareSchema = z.object({
12
16
  id: z.string().uuid().optional(),
13
17
  userId: z.string().uuid(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deepintel-ltd/farmpro-contracts",
3
- "version": "1.22.0",
3
+ "version": "1.22.1",
4
4
  "description": "Type-safe API contracts for FarmPro API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",