@deepintel-ltd/farmpro-contracts 1.22.4 → 1.23.0
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/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -0
- package/dist/routes/commodity-deals.routes.d.ts +175 -0
- package/dist/routes/commodity-deals.routes.d.ts.map +1 -1
- package/dist/routes/index.d.ts +9 -0
- package/dist/routes/index.d.ts.map +1 -1
- package/dist/routes/index.js +6 -0
- package/dist/routes/invoices.routes.d.ts +189 -42
- package/dist/routes/invoices.routes.d.ts.map +1 -1
- package/dist/routes/organization-capabilities.routes.d.ts +1671 -0
- package/dist/routes/organization-capabilities.routes.d.ts.map +1 -0
- package/dist/routes/organization-capabilities.routes.js +74 -0
- package/dist/routes/purchase-orders.routes.d.ts +2061 -0
- package/dist/routes/purchase-orders.routes.d.ts.map +1 -0
- package/dist/routes/purchase-orders.routes.js +55 -0
- package/dist/routes/trade-cash-events.routes.d.ts +3837 -0
- package/dist/routes/trade-cash-events.routes.d.ts.map +1 -0
- package/dist/routes/trade-cash-events.routes.js +126 -0
- package/dist/routes/waybills.routes.d.ts +210 -0
- package/dist/routes/waybills.routes.d.ts.map +1 -1
- package/dist/schemas/commodity-deals.schemas.d.ts +98 -0
- package/dist/schemas/commodity-deals.schemas.d.ts.map +1 -1
- package/dist/schemas/commodity-deals.schemas.js +7 -0
- package/dist/schemas/invoices.schemas.d.ts +144 -30
- package/dist/schemas/invoices.schemas.d.ts.map +1 -1
- package/dist/schemas/invoices.schemas.js +8 -2
- package/dist/schemas/organization-capabilities.schemas.d.ts +355 -0
- package/dist/schemas/organization-capabilities.schemas.d.ts.map +1 -0
- package/dist/schemas/organization-capabilities.schemas.js +19 -0
- package/dist/schemas/purchase-orders.schemas.d.ts +1031 -0
- package/dist/schemas/purchase-orders.schemas.d.ts.map +1 -0
- package/dist/schemas/purchase-orders.schemas.js +49 -0
- package/dist/schemas/trade-cash-events.schemas.d.ts +1524 -0
- package/dist/schemas/trade-cash-events.schemas.d.ts.map +1 -0
- package/dist/schemas/trade-cash-events.schemas.js +131 -0
- package/dist/schemas/waybills.schemas.d.ts +168 -0
- package/dist/schemas/waybills.schemas.d.ts.map +1 -1
- package/dist/schemas/waybills.schemas.js +9 -0
- package/package.json +1 -1
|
@@ -44,6 +44,7 @@ export declare const commodityDealsRouter: {
|
|
|
44
44
|
buyerName: z.ZodNullable<z.ZodString>;
|
|
45
45
|
purchaseCost: z.ZodNumber;
|
|
46
46
|
transportCost: z.ZodNumber;
|
|
47
|
+
storageCost: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
47
48
|
miscellaneousCost: z.ZodNumber;
|
|
48
49
|
currency: z.ZodDefault<z.ZodString>;
|
|
49
50
|
status: z.ZodEnum<["draft", "in_transit", "invoiced", "paid", "cancelled"]>;
|
|
@@ -52,6 +53,8 @@ export declare const commodityDealsRouter: {
|
|
|
52
53
|
companyFeeMode: z.ZodNullable<z.ZodEnum<["percent_of_invoice", "percent_of_returns", "per_kg"]>>;
|
|
53
54
|
companyFeeValue: z.ZodNullable<z.ZodNumber>;
|
|
54
55
|
totalWeightKg: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
56
|
+
supplierId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
57
|
+
supplierName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
55
58
|
participants: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
56
59
|
id: z.ZodOptional<z.ZodString>;
|
|
57
60
|
userId: z.ZodString;
|
|
@@ -145,6 +148,7 @@ export declare const commodityDealsRouter: {
|
|
|
145
148
|
organizationId: string;
|
|
146
149
|
waybillNumber: string | null;
|
|
147
150
|
purchaseCost: number;
|
|
151
|
+
storageCost: number;
|
|
148
152
|
miscellaneousCost: number;
|
|
149
153
|
invoiceNumber: string | null;
|
|
150
154
|
waybillId: string;
|
|
@@ -170,7 +174,9 @@ export declare const commodityDealsRouter: {
|
|
|
170
174
|
investorOwnershipPercent?: number | null | undefined;
|
|
171
175
|
investorPool?: number | null | undefined;
|
|
172
176
|
};
|
|
177
|
+
supplierId?: string | null | undefined;
|
|
173
178
|
totalWeightKg?: number | null | undefined;
|
|
179
|
+
supplierName?: string | null | undefined;
|
|
174
180
|
participants?: {
|
|
175
181
|
userId: string;
|
|
176
182
|
capitalContributed: number;
|
|
@@ -218,7 +224,10 @@ export declare const commodityDealsRouter: {
|
|
|
218
224
|
investorPool?: number | null | undefined;
|
|
219
225
|
};
|
|
220
226
|
currency?: string | undefined;
|
|
227
|
+
storageCost?: number | undefined;
|
|
228
|
+
supplierId?: string | null | undefined;
|
|
221
229
|
totalWeightKg?: number | null | undefined;
|
|
230
|
+
supplierName?: string | null | undefined;
|
|
222
231
|
participants?: {
|
|
223
232
|
userId: string;
|
|
224
233
|
capitalContributed: number;
|
|
@@ -248,6 +257,7 @@ export declare const commodityDealsRouter: {
|
|
|
248
257
|
organizationId: string;
|
|
249
258
|
waybillNumber: string | null;
|
|
250
259
|
purchaseCost: number;
|
|
260
|
+
storageCost: number;
|
|
251
261
|
miscellaneousCost: number;
|
|
252
262
|
invoiceNumber: string | null;
|
|
253
263
|
waybillId: string;
|
|
@@ -273,7 +283,9 @@ export declare const commodityDealsRouter: {
|
|
|
273
283
|
investorOwnershipPercent?: number | null | undefined;
|
|
274
284
|
investorPool?: number | null | undefined;
|
|
275
285
|
};
|
|
286
|
+
supplierId?: string | null | undefined;
|
|
276
287
|
totalWeightKg?: number | null | undefined;
|
|
288
|
+
supplierName?: string | null | undefined;
|
|
277
289
|
participants?: {
|
|
278
290
|
userId: string;
|
|
279
291
|
capitalContributed: number;
|
|
@@ -328,7 +340,10 @@ export declare const commodityDealsRouter: {
|
|
|
328
340
|
investorPool?: number | null | undefined;
|
|
329
341
|
};
|
|
330
342
|
currency?: string | undefined;
|
|
343
|
+
storageCost?: number | undefined;
|
|
344
|
+
supplierId?: string | null | undefined;
|
|
331
345
|
totalWeightKg?: number | null | undefined;
|
|
346
|
+
supplierName?: string | null | undefined;
|
|
332
347
|
participants?: {
|
|
333
348
|
userId: string;
|
|
334
349
|
capitalContributed: number;
|
|
@@ -384,6 +399,7 @@ export declare const commodityDealsRouter: {
|
|
|
384
399
|
organizationId: string;
|
|
385
400
|
waybillNumber: string | null;
|
|
386
401
|
purchaseCost: number;
|
|
402
|
+
storageCost: number;
|
|
387
403
|
miscellaneousCost: number;
|
|
388
404
|
invoiceNumber: string | null;
|
|
389
405
|
waybillId: string;
|
|
@@ -409,7 +425,9 @@ export declare const commodityDealsRouter: {
|
|
|
409
425
|
investorOwnershipPercent?: number | null | undefined;
|
|
410
426
|
investorPool?: number | null | undefined;
|
|
411
427
|
};
|
|
428
|
+
supplierId?: string | null | undefined;
|
|
412
429
|
totalWeightKg?: number | null | undefined;
|
|
430
|
+
supplierName?: string | null | undefined;
|
|
413
431
|
participants?: {
|
|
414
432
|
userId: string;
|
|
415
433
|
capitalContributed: number;
|
|
@@ -476,7 +494,10 @@ export declare const commodityDealsRouter: {
|
|
|
476
494
|
investorPool?: number | null | undefined;
|
|
477
495
|
};
|
|
478
496
|
currency?: string | undefined;
|
|
497
|
+
storageCost?: number | undefined;
|
|
498
|
+
supplierId?: string | null | undefined;
|
|
479
499
|
totalWeightKg?: number | null | undefined;
|
|
500
|
+
supplierName?: string | null | undefined;
|
|
480
501
|
participants?: {
|
|
481
502
|
userId: string;
|
|
482
503
|
capitalContributed: number;
|
|
@@ -2213,6 +2234,7 @@ export declare const commodityDealsRouter: {
|
|
|
2213
2234
|
buyerName: z.ZodNullable<z.ZodString>;
|
|
2214
2235
|
purchaseCost: z.ZodNumber;
|
|
2215
2236
|
transportCost: z.ZodNumber;
|
|
2237
|
+
storageCost: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
2216
2238
|
miscellaneousCost: z.ZodNumber;
|
|
2217
2239
|
currency: z.ZodDefault<z.ZodString>;
|
|
2218
2240
|
status: z.ZodEnum<["draft", "in_transit", "invoiced", "paid", "cancelled"]>;
|
|
@@ -2221,6 +2243,8 @@ export declare const commodityDealsRouter: {
|
|
|
2221
2243
|
companyFeeMode: z.ZodNullable<z.ZodEnum<["percent_of_invoice", "percent_of_returns", "per_kg"]>>;
|
|
2222
2244
|
companyFeeValue: z.ZodNullable<z.ZodNumber>;
|
|
2223
2245
|
totalWeightKg: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2246
|
+
supplierId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2247
|
+
supplierName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2224
2248
|
participants: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2225
2249
|
id: z.ZodOptional<z.ZodString>;
|
|
2226
2250
|
userId: z.ZodString;
|
|
@@ -2314,6 +2338,7 @@ export declare const commodityDealsRouter: {
|
|
|
2314
2338
|
organizationId: string;
|
|
2315
2339
|
waybillNumber: string | null;
|
|
2316
2340
|
purchaseCost: number;
|
|
2341
|
+
storageCost: number;
|
|
2317
2342
|
miscellaneousCost: number;
|
|
2318
2343
|
invoiceNumber: string | null;
|
|
2319
2344
|
waybillId: string;
|
|
@@ -2339,7 +2364,9 @@ export declare const commodityDealsRouter: {
|
|
|
2339
2364
|
investorOwnershipPercent?: number | null | undefined;
|
|
2340
2365
|
investorPool?: number | null | undefined;
|
|
2341
2366
|
};
|
|
2367
|
+
supplierId?: string | null | undefined;
|
|
2342
2368
|
totalWeightKg?: number | null | undefined;
|
|
2369
|
+
supplierName?: string | null | undefined;
|
|
2343
2370
|
participants?: {
|
|
2344
2371
|
userId: string;
|
|
2345
2372
|
capitalContributed: number;
|
|
@@ -2387,7 +2414,10 @@ export declare const commodityDealsRouter: {
|
|
|
2387
2414
|
investorPool?: number | null | undefined;
|
|
2388
2415
|
};
|
|
2389
2416
|
currency?: string | undefined;
|
|
2417
|
+
storageCost?: number | undefined;
|
|
2418
|
+
supplierId?: string | null | undefined;
|
|
2390
2419
|
totalWeightKg?: number | null | undefined;
|
|
2420
|
+
supplierName?: string | null | undefined;
|
|
2391
2421
|
participants?: {
|
|
2392
2422
|
userId: string;
|
|
2393
2423
|
capitalContributed: number;
|
|
@@ -2417,6 +2447,7 @@ export declare const commodityDealsRouter: {
|
|
|
2417
2447
|
organizationId: string;
|
|
2418
2448
|
waybillNumber: string | null;
|
|
2419
2449
|
purchaseCost: number;
|
|
2450
|
+
storageCost: number;
|
|
2420
2451
|
miscellaneousCost: number;
|
|
2421
2452
|
invoiceNumber: string | null;
|
|
2422
2453
|
waybillId: string;
|
|
@@ -2442,7 +2473,9 @@ export declare const commodityDealsRouter: {
|
|
|
2442
2473
|
investorOwnershipPercent?: number | null | undefined;
|
|
2443
2474
|
investorPool?: number | null | undefined;
|
|
2444
2475
|
};
|
|
2476
|
+
supplierId?: string | null | undefined;
|
|
2445
2477
|
totalWeightKg?: number | null | undefined;
|
|
2478
|
+
supplierName?: string | null | undefined;
|
|
2446
2479
|
participants?: {
|
|
2447
2480
|
userId: string;
|
|
2448
2481
|
capitalContributed: number;
|
|
@@ -2497,7 +2530,10 @@ export declare const commodityDealsRouter: {
|
|
|
2497
2530
|
investorPool?: number | null | undefined;
|
|
2498
2531
|
};
|
|
2499
2532
|
currency?: string | undefined;
|
|
2533
|
+
storageCost?: number | undefined;
|
|
2534
|
+
supplierId?: string | null | undefined;
|
|
2500
2535
|
totalWeightKg?: number | null | undefined;
|
|
2536
|
+
supplierName?: string | null | undefined;
|
|
2501
2537
|
participants?: {
|
|
2502
2538
|
userId: string;
|
|
2503
2539
|
capitalContributed: number;
|
|
@@ -2553,6 +2589,7 @@ export declare const commodityDealsRouter: {
|
|
|
2553
2589
|
organizationId: string;
|
|
2554
2590
|
waybillNumber: string | null;
|
|
2555
2591
|
purchaseCost: number;
|
|
2592
|
+
storageCost: number;
|
|
2556
2593
|
miscellaneousCost: number;
|
|
2557
2594
|
invoiceNumber: string | null;
|
|
2558
2595
|
waybillId: string;
|
|
@@ -2578,7 +2615,9 @@ export declare const commodityDealsRouter: {
|
|
|
2578
2615
|
investorOwnershipPercent?: number | null | undefined;
|
|
2579
2616
|
investorPool?: number | null | undefined;
|
|
2580
2617
|
};
|
|
2618
|
+
supplierId?: string | null | undefined;
|
|
2581
2619
|
totalWeightKg?: number | null | undefined;
|
|
2620
|
+
supplierName?: string | null | undefined;
|
|
2582
2621
|
participants?: {
|
|
2583
2622
|
userId: string;
|
|
2584
2623
|
capitalContributed: number;
|
|
@@ -2645,7 +2684,10 @@ export declare const commodityDealsRouter: {
|
|
|
2645
2684
|
investorPool?: number | null | undefined;
|
|
2646
2685
|
};
|
|
2647
2686
|
currency?: string | undefined;
|
|
2687
|
+
storageCost?: number | undefined;
|
|
2688
|
+
supplierId?: string | null | undefined;
|
|
2648
2689
|
totalWeightKg?: number | null | undefined;
|
|
2690
|
+
supplierName?: string | null | undefined;
|
|
2649
2691
|
participants?: {
|
|
2650
2692
|
userId: string;
|
|
2651
2693
|
capitalContributed: number;
|
|
@@ -2871,11 +2913,13 @@ export declare const commodityDealsRouter: {
|
|
|
2871
2913
|
waybillId: z.ZodString;
|
|
2872
2914
|
purchaseCost: z.ZodNumber;
|
|
2873
2915
|
transportCost: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
2916
|
+
storageCost: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
2874
2917
|
miscellaneousCost: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
2875
2918
|
currency: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
2876
2919
|
status: z.ZodOptional<z.ZodEnum<["draft", "in_transit", "invoiced", "paid", "cancelled"]>>;
|
|
2877
2920
|
notes: z.ZodOptional<z.ZodString>;
|
|
2878
2921
|
handlerUserId: z.ZodOptional<z.ZodString>;
|
|
2922
|
+
supplierId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
2879
2923
|
dealCapital: z.ZodOptional<z.ZodNumber>;
|
|
2880
2924
|
companyFeeMode: z.ZodOptional<z.ZodEnum<["percent_of_invoice", "percent_of_returns", "per_kg"]>>;
|
|
2881
2925
|
companyFeeValue: z.ZodOptional<z.ZodNumber>;
|
|
@@ -2883,10 +2927,12 @@ export declare const commodityDealsRouter: {
|
|
|
2883
2927
|
currency: string;
|
|
2884
2928
|
transportCost: number;
|
|
2885
2929
|
purchaseCost: number;
|
|
2930
|
+
storageCost: number;
|
|
2886
2931
|
miscellaneousCost: number;
|
|
2887
2932
|
waybillId: string;
|
|
2888
2933
|
status?: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced" | undefined;
|
|
2889
2934
|
notes?: string | undefined;
|
|
2935
|
+
supplierId?: string | null | undefined;
|
|
2890
2936
|
handlerUserId?: string | undefined;
|
|
2891
2937
|
dealCapital?: number | undefined;
|
|
2892
2938
|
companyFeeMode?: "percent_of_invoice" | "percent_of_returns" | "per_kg" | undefined;
|
|
@@ -2898,7 +2944,9 @@ export declare const commodityDealsRouter: {
|
|
|
2898
2944
|
currency?: string | undefined;
|
|
2899
2945
|
notes?: string | undefined;
|
|
2900
2946
|
transportCost?: number | undefined;
|
|
2947
|
+
storageCost?: number | undefined;
|
|
2901
2948
|
miscellaneousCost?: number | undefined;
|
|
2949
|
+
supplierId?: string | null | undefined;
|
|
2902
2950
|
handlerUserId?: string | undefined;
|
|
2903
2951
|
dealCapital?: number | undefined;
|
|
2904
2952
|
companyFeeMode?: "percent_of_invoice" | "percent_of_returns" | "per_kg" | undefined;
|
|
@@ -2910,10 +2958,12 @@ export declare const commodityDealsRouter: {
|
|
|
2910
2958
|
currency: string;
|
|
2911
2959
|
transportCost: number;
|
|
2912
2960
|
purchaseCost: number;
|
|
2961
|
+
storageCost: number;
|
|
2913
2962
|
miscellaneousCost: number;
|
|
2914
2963
|
waybillId: string;
|
|
2915
2964
|
status?: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced" | undefined;
|
|
2916
2965
|
notes?: string | undefined;
|
|
2966
|
+
supplierId?: string | null | undefined;
|
|
2917
2967
|
handlerUserId?: string | undefined;
|
|
2918
2968
|
dealCapital?: number | undefined;
|
|
2919
2969
|
companyFeeMode?: "percent_of_invoice" | "percent_of_returns" | "per_kg" | undefined;
|
|
@@ -2928,7 +2978,9 @@ export declare const commodityDealsRouter: {
|
|
|
2928
2978
|
currency?: string | undefined;
|
|
2929
2979
|
notes?: string | undefined;
|
|
2930
2980
|
transportCost?: number | undefined;
|
|
2981
|
+
storageCost?: number | undefined;
|
|
2931
2982
|
miscellaneousCost?: number | undefined;
|
|
2983
|
+
supplierId?: string | null | undefined;
|
|
2932
2984
|
handlerUserId?: string | undefined;
|
|
2933
2985
|
dealCapital?: number | undefined;
|
|
2934
2986
|
companyFeeMode?: "percent_of_invoice" | "percent_of_returns" | "per_kg" | undefined;
|
|
@@ -2942,10 +2994,12 @@ export declare const commodityDealsRouter: {
|
|
|
2942
2994
|
currency: string;
|
|
2943
2995
|
transportCost: number;
|
|
2944
2996
|
purchaseCost: number;
|
|
2997
|
+
storageCost: number;
|
|
2945
2998
|
miscellaneousCost: number;
|
|
2946
2999
|
waybillId: string;
|
|
2947
3000
|
status?: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced" | undefined;
|
|
2948
3001
|
notes?: string | undefined;
|
|
3002
|
+
supplierId?: string | null | undefined;
|
|
2949
3003
|
handlerUserId?: string | undefined;
|
|
2950
3004
|
dealCapital?: number | undefined;
|
|
2951
3005
|
companyFeeMode?: "percent_of_invoice" | "percent_of_returns" | "per_kg" | undefined;
|
|
@@ -2962,7 +3016,9 @@ export declare const commodityDealsRouter: {
|
|
|
2962
3016
|
currency?: string | undefined;
|
|
2963
3017
|
notes?: string | undefined;
|
|
2964
3018
|
transportCost?: number | undefined;
|
|
3019
|
+
storageCost?: number | undefined;
|
|
2965
3020
|
miscellaneousCost?: number | undefined;
|
|
3021
|
+
supplierId?: string | null | undefined;
|
|
2966
3022
|
handlerUserId?: string | undefined;
|
|
2967
3023
|
dealCapital?: number | undefined;
|
|
2968
3024
|
companyFeeMode?: "percent_of_invoice" | "percent_of_returns" | "per_kg" | undefined;
|
|
@@ -2986,6 +3042,7 @@ export declare const commodityDealsRouter: {
|
|
|
2986
3042
|
buyerName: z.ZodNullable<z.ZodString>;
|
|
2987
3043
|
purchaseCost: z.ZodNumber;
|
|
2988
3044
|
transportCost: z.ZodNumber;
|
|
3045
|
+
storageCost: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
2989
3046
|
miscellaneousCost: z.ZodNumber;
|
|
2990
3047
|
currency: z.ZodDefault<z.ZodString>;
|
|
2991
3048
|
status: z.ZodEnum<["draft", "in_transit", "invoiced", "paid", "cancelled"]>;
|
|
@@ -2994,6 +3051,8 @@ export declare const commodityDealsRouter: {
|
|
|
2994
3051
|
companyFeeMode: z.ZodNullable<z.ZodEnum<["percent_of_invoice", "percent_of_returns", "per_kg"]>>;
|
|
2995
3052
|
companyFeeValue: z.ZodNullable<z.ZodNumber>;
|
|
2996
3053
|
totalWeightKg: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
3054
|
+
supplierId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3055
|
+
supplierName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2997
3056
|
participants: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2998
3057
|
id: z.ZodOptional<z.ZodString>;
|
|
2999
3058
|
userId: z.ZodString;
|
|
@@ -3087,6 +3146,7 @@ export declare const commodityDealsRouter: {
|
|
|
3087
3146
|
organizationId: string;
|
|
3088
3147
|
waybillNumber: string | null;
|
|
3089
3148
|
purchaseCost: number;
|
|
3149
|
+
storageCost: number;
|
|
3090
3150
|
miscellaneousCost: number;
|
|
3091
3151
|
invoiceNumber: string | null;
|
|
3092
3152
|
waybillId: string;
|
|
@@ -3112,7 +3172,9 @@ export declare const commodityDealsRouter: {
|
|
|
3112
3172
|
investorOwnershipPercent?: number | null | undefined;
|
|
3113
3173
|
investorPool?: number | null | undefined;
|
|
3114
3174
|
};
|
|
3175
|
+
supplierId?: string | null | undefined;
|
|
3115
3176
|
totalWeightKg?: number | null | undefined;
|
|
3177
|
+
supplierName?: string | null | undefined;
|
|
3116
3178
|
participants?: {
|
|
3117
3179
|
userId: string;
|
|
3118
3180
|
capitalContributed: number;
|
|
@@ -3160,7 +3222,10 @@ export declare const commodityDealsRouter: {
|
|
|
3160
3222
|
investorPool?: number | null | undefined;
|
|
3161
3223
|
};
|
|
3162
3224
|
currency?: string | undefined;
|
|
3225
|
+
storageCost?: number | undefined;
|
|
3226
|
+
supplierId?: string | null | undefined;
|
|
3163
3227
|
totalWeightKg?: number | null | undefined;
|
|
3228
|
+
supplierName?: string | null | undefined;
|
|
3164
3229
|
participants?: {
|
|
3165
3230
|
userId: string;
|
|
3166
3231
|
capitalContributed: number;
|
|
@@ -3190,6 +3255,7 @@ export declare const commodityDealsRouter: {
|
|
|
3190
3255
|
organizationId: string;
|
|
3191
3256
|
waybillNumber: string | null;
|
|
3192
3257
|
purchaseCost: number;
|
|
3258
|
+
storageCost: number;
|
|
3193
3259
|
miscellaneousCost: number;
|
|
3194
3260
|
invoiceNumber: string | null;
|
|
3195
3261
|
waybillId: string;
|
|
@@ -3215,7 +3281,9 @@ export declare const commodityDealsRouter: {
|
|
|
3215
3281
|
investorOwnershipPercent?: number | null | undefined;
|
|
3216
3282
|
investorPool?: number | null | undefined;
|
|
3217
3283
|
};
|
|
3284
|
+
supplierId?: string | null | undefined;
|
|
3218
3285
|
totalWeightKg?: number | null | undefined;
|
|
3286
|
+
supplierName?: string | null | undefined;
|
|
3219
3287
|
participants?: {
|
|
3220
3288
|
userId: string;
|
|
3221
3289
|
capitalContributed: number;
|
|
@@ -3270,7 +3338,10 @@ export declare const commodityDealsRouter: {
|
|
|
3270
3338
|
investorPool?: number | null | undefined;
|
|
3271
3339
|
};
|
|
3272
3340
|
currency?: string | undefined;
|
|
3341
|
+
storageCost?: number | undefined;
|
|
3342
|
+
supplierId?: string | null | undefined;
|
|
3273
3343
|
totalWeightKg?: number | null | undefined;
|
|
3344
|
+
supplierName?: string | null | undefined;
|
|
3274
3345
|
participants?: {
|
|
3275
3346
|
userId: string;
|
|
3276
3347
|
capitalContributed: number;
|
|
@@ -3326,6 +3397,7 @@ export declare const commodityDealsRouter: {
|
|
|
3326
3397
|
organizationId: string;
|
|
3327
3398
|
waybillNumber: string | null;
|
|
3328
3399
|
purchaseCost: number;
|
|
3400
|
+
storageCost: number;
|
|
3329
3401
|
miscellaneousCost: number;
|
|
3330
3402
|
invoiceNumber: string | null;
|
|
3331
3403
|
waybillId: string;
|
|
@@ -3351,7 +3423,9 @@ export declare const commodityDealsRouter: {
|
|
|
3351
3423
|
investorOwnershipPercent?: number | null | undefined;
|
|
3352
3424
|
investorPool?: number | null | undefined;
|
|
3353
3425
|
};
|
|
3426
|
+
supplierId?: string | null | undefined;
|
|
3354
3427
|
totalWeightKg?: number | null | undefined;
|
|
3428
|
+
supplierName?: string | null | undefined;
|
|
3355
3429
|
participants?: {
|
|
3356
3430
|
userId: string;
|
|
3357
3431
|
capitalContributed: number;
|
|
@@ -3418,7 +3492,10 @@ export declare const commodityDealsRouter: {
|
|
|
3418
3492
|
investorPool?: number | null | undefined;
|
|
3419
3493
|
};
|
|
3420
3494
|
currency?: string | undefined;
|
|
3495
|
+
storageCost?: number | undefined;
|
|
3496
|
+
supplierId?: string | null | undefined;
|
|
3421
3497
|
totalWeightKg?: number | null | undefined;
|
|
3498
|
+
supplierName?: string | null | undefined;
|
|
3422
3499
|
participants?: {
|
|
3423
3500
|
userId: string;
|
|
3424
3501
|
capitalContributed: number;
|
|
@@ -3917,12 +3994,14 @@ export declare const commodityDealsRouter: {
|
|
|
3917
3994
|
attributes: z.ZodObject<{
|
|
3918
3995
|
purchaseCost: z.ZodOptional<z.ZodNumber>;
|
|
3919
3996
|
transportCost: z.ZodOptional<z.ZodNumber>;
|
|
3997
|
+
storageCost: z.ZodOptional<z.ZodNumber>;
|
|
3920
3998
|
miscellaneousCost: z.ZodOptional<z.ZodNumber>;
|
|
3921
3999
|
currency: z.ZodOptional<z.ZodString>;
|
|
3922
4000
|
status: z.ZodOptional<z.ZodEnum<["draft", "in_transit", "invoiced", "paid", "cancelled"]>>;
|
|
3923
4001
|
notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3924
4002
|
invoiceId: z.ZodOptional<z.ZodString>;
|
|
3925
4003
|
handlerUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4004
|
+
supplierId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3926
4005
|
dealCapital: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
3927
4006
|
companyFeeMode: z.ZodOptional<z.ZodNullable<z.ZodEnum<["percent_of_invoice", "percent_of_returns", "per_kg"]>>>;
|
|
3928
4007
|
companyFeeValue: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -3934,7 +4013,9 @@ export declare const commodityDealsRouter: {
|
|
|
3934
4013
|
invoiceId?: string | undefined;
|
|
3935
4014
|
transportCost?: number | undefined;
|
|
3936
4015
|
purchaseCost?: number | undefined;
|
|
4016
|
+
storageCost?: number | undefined;
|
|
3937
4017
|
miscellaneousCost?: number | undefined;
|
|
4018
|
+
supplierId?: string | null | undefined;
|
|
3938
4019
|
handlerUserId?: string | null | undefined;
|
|
3939
4020
|
dealCapital?: number | null | undefined;
|
|
3940
4021
|
companyFeeMode?: "percent_of_invoice" | "percent_of_returns" | "per_kg" | null | undefined;
|
|
@@ -3947,7 +4028,9 @@ export declare const commodityDealsRouter: {
|
|
|
3947
4028
|
invoiceId?: string | undefined;
|
|
3948
4029
|
transportCost?: number | undefined;
|
|
3949
4030
|
purchaseCost?: number | undefined;
|
|
4031
|
+
storageCost?: number | undefined;
|
|
3950
4032
|
miscellaneousCost?: number | undefined;
|
|
4033
|
+
supplierId?: string | null | undefined;
|
|
3951
4034
|
handlerUserId?: string | null | undefined;
|
|
3952
4035
|
dealCapital?: number | null | undefined;
|
|
3953
4036
|
companyFeeMode?: "percent_of_invoice" | "percent_of_returns" | "per_kg" | null | undefined;
|
|
@@ -3963,7 +4046,9 @@ export declare const commodityDealsRouter: {
|
|
|
3963
4046
|
invoiceId?: string | undefined;
|
|
3964
4047
|
transportCost?: number | undefined;
|
|
3965
4048
|
purchaseCost?: number | undefined;
|
|
4049
|
+
storageCost?: number | undefined;
|
|
3966
4050
|
miscellaneousCost?: number | undefined;
|
|
4051
|
+
supplierId?: string | null | undefined;
|
|
3967
4052
|
handlerUserId?: string | null | undefined;
|
|
3968
4053
|
dealCapital?: number | null | undefined;
|
|
3969
4054
|
companyFeeMode?: "percent_of_invoice" | "percent_of_returns" | "per_kg" | null | undefined;
|
|
@@ -3980,7 +4065,9 @@ export declare const commodityDealsRouter: {
|
|
|
3980
4065
|
invoiceId?: string | undefined;
|
|
3981
4066
|
transportCost?: number | undefined;
|
|
3982
4067
|
purchaseCost?: number | undefined;
|
|
4068
|
+
storageCost?: number | undefined;
|
|
3983
4069
|
miscellaneousCost?: number | undefined;
|
|
4070
|
+
supplierId?: string | null | undefined;
|
|
3984
4071
|
handlerUserId?: string | null | undefined;
|
|
3985
4072
|
dealCapital?: number | null | undefined;
|
|
3986
4073
|
companyFeeMode?: "percent_of_invoice" | "percent_of_returns" | "per_kg" | null | undefined;
|
|
@@ -3999,7 +4086,9 @@ export declare const commodityDealsRouter: {
|
|
|
3999
4086
|
invoiceId?: string | undefined;
|
|
4000
4087
|
transportCost?: number | undefined;
|
|
4001
4088
|
purchaseCost?: number | undefined;
|
|
4089
|
+
storageCost?: number | undefined;
|
|
4002
4090
|
miscellaneousCost?: number | undefined;
|
|
4091
|
+
supplierId?: string | null | undefined;
|
|
4003
4092
|
handlerUserId?: string | null | undefined;
|
|
4004
4093
|
dealCapital?: number | null | undefined;
|
|
4005
4094
|
companyFeeMode?: "percent_of_invoice" | "percent_of_returns" | "per_kg" | null | undefined;
|
|
@@ -4018,7 +4107,9 @@ export declare const commodityDealsRouter: {
|
|
|
4018
4107
|
invoiceId?: string | undefined;
|
|
4019
4108
|
transportCost?: number | undefined;
|
|
4020
4109
|
purchaseCost?: number | undefined;
|
|
4110
|
+
storageCost?: number | undefined;
|
|
4021
4111
|
miscellaneousCost?: number | undefined;
|
|
4112
|
+
supplierId?: string | null | undefined;
|
|
4022
4113
|
handlerUserId?: string | null | undefined;
|
|
4023
4114
|
dealCapital?: number | null | undefined;
|
|
4024
4115
|
companyFeeMode?: "percent_of_invoice" | "percent_of_returns" | "per_kg" | null | undefined;
|
|
@@ -4044,6 +4135,7 @@ export declare const commodityDealsRouter: {
|
|
|
4044
4135
|
buyerName: z.ZodNullable<z.ZodString>;
|
|
4045
4136
|
purchaseCost: z.ZodNumber;
|
|
4046
4137
|
transportCost: z.ZodNumber;
|
|
4138
|
+
storageCost: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
4047
4139
|
miscellaneousCost: z.ZodNumber;
|
|
4048
4140
|
currency: z.ZodDefault<z.ZodString>;
|
|
4049
4141
|
status: z.ZodEnum<["draft", "in_transit", "invoiced", "paid", "cancelled"]>;
|
|
@@ -4052,6 +4144,8 @@ export declare const commodityDealsRouter: {
|
|
|
4052
4144
|
companyFeeMode: z.ZodNullable<z.ZodEnum<["percent_of_invoice", "percent_of_returns", "per_kg"]>>;
|
|
4053
4145
|
companyFeeValue: z.ZodNullable<z.ZodNumber>;
|
|
4054
4146
|
totalWeightKg: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
4147
|
+
supplierId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4148
|
+
supplierName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4055
4149
|
participants: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4056
4150
|
id: z.ZodOptional<z.ZodString>;
|
|
4057
4151
|
userId: z.ZodString;
|
|
@@ -4145,6 +4239,7 @@ export declare const commodityDealsRouter: {
|
|
|
4145
4239
|
organizationId: string;
|
|
4146
4240
|
waybillNumber: string | null;
|
|
4147
4241
|
purchaseCost: number;
|
|
4242
|
+
storageCost: number;
|
|
4148
4243
|
miscellaneousCost: number;
|
|
4149
4244
|
invoiceNumber: string | null;
|
|
4150
4245
|
waybillId: string;
|
|
@@ -4170,7 +4265,9 @@ export declare const commodityDealsRouter: {
|
|
|
4170
4265
|
investorOwnershipPercent?: number | null | undefined;
|
|
4171
4266
|
investorPool?: number | null | undefined;
|
|
4172
4267
|
};
|
|
4268
|
+
supplierId?: string | null | undefined;
|
|
4173
4269
|
totalWeightKg?: number | null | undefined;
|
|
4270
|
+
supplierName?: string | null | undefined;
|
|
4174
4271
|
participants?: {
|
|
4175
4272
|
userId: string;
|
|
4176
4273
|
capitalContributed: number;
|
|
@@ -4218,7 +4315,10 @@ export declare const commodityDealsRouter: {
|
|
|
4218
4315
|
investorPool?: number | null | undefined;
|
|
4219
4316
|
};
|
|
4220
4317
|
currency?: string | undefined;
|
|
4318
|
+
storageCost?: number | undefined;
|
|
4319
|
+
supplierId?: string | null | undefined;
|
|
4221
4320
|
totalWeightKg?: number | null | undefined;
|
|
4321
|
+
supplierName?: string | null | undefined;
|
|
4222
4322
|
participants?: {
|
|
4223
4323
|
userId: string;
|
|
4224
4324
|
capitalContributed: number;
|
|
@@ -4248,6 +4348,7 @@ export declare const commodityDealsRouter: {
|
|
|
4248
4348
|
organizationId: string;
|
|
4249
4349
|
waybillNumber: string | null;
|
|
4250
4350
|
purchaseCost: number;
|
|
4351
|
+
storageCost: number;
|
|
4251
4352
|
miscellaneousCost: number;
|
|
4252
4353
|
invoiceNumber: string | null;
|
|
4253
4354
|
waybillId: string;
|
|
@@ -4273,7 +4374,9 @@ export declare const commodityDealsRouter: {
|
|
|
4273
4374
|
investorOwnershipPercent?: number | null | undefined;
|
|
4274
4375
|
investorPool?: number | null | undefined;
|
|
4275
4376
|
};
|
|
4377
|
+
supplierId?: string | null | undefined;
|
|
4276
4378
|
totalWeightKg?: number | null | undefined;
|
|
4379
|
+
supplierName?: string | null | undefined;
|
|
4277
4380
|
participants?: {
|
|
4278
4381
|
userId: string;
|
|
4279
4382
|
capitalContributed: number;
|
|
@@ -4328,7 +4431,10 @@ export declare const commodityDealsRouter: {
|
|
|
4328
4431
|
investorPool?: number | null | undefined;
|
|
4329
4432
|
};
|
|
4330
4433
|
currency?: string | undefined;
|
|
4434
|
+
storageCost?: number | undefined;
|
|
4435
|
+
supplierId?: string | null | undefined;
|
|
4331
4436
|
totalWeightKg?: number | null | undefined;
|
|
4437
|
+
supplierName?: string | null | undefined;
|
|
4332
4438
|
participants?: {
|
|
4333
4439
|
userId: string;
|
|
4334
4440
|
capitalContributed: number;
|
|
@@ -4384,6 +4490,7 @@ export declare const commodityDealsRouter: {
|
|
|
4384
4490
|
organizationId: string;
|
|
4385
4491
|
waybillNumber: string | null;
|
|
4386
4492
|
purchaseCost: number;
|
|
4493
|
+
storageCost: number;
|
|
4387
4494
|
miscellaneousCost: number;
|
|
4388
4495
|
invoiceNumber: string | null;
|
|
4389
4496
|
waybillId: string;
|
|
@@ -4409,7 +4516,9 @@ export declare const commodityDealsRouter: {
|
|
|
4409
4516
|
investorOwnershipPercent?: number | null | undefined;
|
|
4410
4517
|
investorPool?: number | null | undefined;
|
|
4411
4518
|
};
|
|
4519
|
+
supplierId?: string | null | undefined;
|
|
4412
4520
|
totalWeightKg?: number | null | undefined;
|
|
4521
|
+
supplierName?: string | null | undefined;
|
|
4413
4522
|
participants?: {
|
|
4414
4523
|
userId: string;
|
|
4415
4524
|
capitalContributed: number;
|
|
@@ -4476,7 +4585,10 @@ export declare const commodityDealsRouter: {
|
|
|
4476
4585
|
investorPool?: number | null | undefined;
|
|
4477
4586
|
};
|
|
4478
4587
|
currency?: string | undefined;
|
|
4588
|
+
storageCost?: number | undefined;
|
|
4589
|
+
supplierId?: string | null | undefined;
|
|
4479
4590
|
totalWeightKg?: number | null | undefined;
|
|
4591
|
+
supplierName?: string | null | undefined;
|
|
4480
4592
|
participants?: {
|
|
4481
4593
|
userId: string;
|
|
4482
4594
|
capitalContributed: number;
|
|
@@ -5027,6 +5139,7 @@ export declare const commodityDealsRouter: {
|
|
|
5027
5139
|
buyerName: z.ZodNullable<z.ZodString>;
|
|
5028
5140
|
purchaseCost: z.ZodNumber;
|
|
5029
5141
|
transportCost: z.ZodNumber;
|
|
5142
|
+
storageCost: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
5030
5143
|
miscellaneousCost: z.ZodNumber;
|
|
5031
5144
|
currency: z.ZodDefault<z.ZodString>;
|
|
5032
5145
|
status: z.ZodEnum<["draft", "in_transit", "invoiced", "paid", "cancelled"]>;
|
|
@@ -5035,6 +5148,8 @@ export declare const commodityDealsRouter: {
|
|
|
5035
5148
|
companyFeeMode: z.ZodNullable<z.ZodEnum<["percent_of_invoice", "percent_of_returns", "per_kg"]>>;
|
|
5036
5149
|
companyFeeValue: z.ZodNullable<z.ZodNumber>;
|
|
5037
5150
|
totalWeightKg: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
5151
|
+
supplierId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5152
|
+
supplierName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5038
5153
|
participants: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5039
5154
|
id: z.ZodOptional<z.ZodString>;
|
|
5040
5155
|
userId: z.ZodString;
|
|
@@ -5128,6 +5243,7 @@ export declare const commodityDealsRouter: {
|
|
|
5128
5243
|
organizationId: string;
|
|
5129
5244
|
waybillNumber: string | null;
|
|
5130
5245
|
purchaseCost: number;
|
|
5246
|
+
storageCost: number;
|
|
5131
5247
|
miscellaneousCost: number;
|
|
5132
5248
|
invoiceNumber: string | null;
|
|
5133
5249
|
waybillId: string;
|
|
@@ -5153,7 +5269,9 @@ export declare const commodityDealsRouter: {
|
|
|
5153
5269
|
investorOwnershipPercent?: number | null | undefined;
|
|
5154
5270
|
investorPool?: number | null | undefined;
|
|
5155
5271
|
};
|
|
5272
|
+
supplierId?: string | null | undefined;
|
|
5156
5273
|
totalWeightKg?: number | null | undefined;
|
|
5274
|
+
supplierName?: string | null | undefined;
|
|
5157
5275
|
participants?: {
|
|
5158
5276
|
userId: string;
|
|
5159
5277
|
capitalContributed: number;
|
|
@@ -5201,7 +5319,10 @@ export declare const commodityDealsRouter: {
|
|
|
5201
5319
|
investorPool?: number | null | undefined;
|
|
5202
5320
|
};
|
|
5203
5321
|
currency?: string | undefined;
|
|
5322
|
+
storageCost?: number | undefined;
|
|
5323
|
+
supplierId?: string | null | undefined;
|
|
5204
5324
|
totalWeightKg?: number | null | undefined;
|
|
5325
|
+
supplierName?: string | null | undefined;
|
|
5205
5326
|
participants?: {
|
|
5206
5327
|
userId: string;
|
|
5207
5328
|
capitalContributed: number;
|
|
@@ -5231,6 +5352,7 @@ export declare const commodityDealsRouter: {
|
|
|
5231
5352
|
organizationId: string;
|
|
5232
5353
|
waybillNumber: string | null;
|
|
5233
5354
|
purchaseCost: number;
|
|
5355
|
+
storageCost: number;
|
|
5234
5356
|
miscellaneousCost: number;
|
|
5235
5357
|
invoiceNumber: string | null;
|
|
5236
5358
|
waybillId: string;
|
|
@@ -5256,7 +5378,9 @@ export declare const commodityDealsRouter: {
|
|
|
5256
5378
|
investorOwnershipPercent?: number | null | undefined;
|
|
5257
5379
|
investorPool?: number | null | undefined;
|
|
5258
5380
|
};
|
|
5381
|
+
supplierId?: string | null | undefined;
|
|
5259
5382
|
totalWeightKg?: number | null | undefined;
|
|
5383
|
+
supplierName?: string | null | undefined;
|
|
5260
5384
|
participants?: {
|
|
5261
5385
|
userId: string;
|
|
5262
5386
|
capitalContributed: number;
|
|
@@ -5311,7 +5435,10 @@ export declare const commodityDealsRouter: {
|
|
|
5311
5435
|
investorPool?: number | null | undefined;
|
|
5312
5436
|
};
|
|
5313
5437
|
currency?: string | undefined;
|
|
5438
|
+
storageCost?: number | undefined;
|
|
5439
|
+
supplierId?: string | null | undefined;
|
|
5314
5440
|
totalWeightKg?: number | null | undefined;
|
|
5441
|
+
supplierName?: string | null | undefined;
|
|
5315
5442
|
participants?: {
|
|
5316
5443
|
userId: string;
|
|
5317
5444
|
capitalContributed: number;
|
|
@@ -5367,6 +5494,7 @@ export declare const commodityDealsRouter: {
|
|
|
5367
5494
|
organizationId: string;
|
|
5368
5495
|
waybillNumber: string | null;
|
|
5369
5496
|
purchaseCost: number;
|
|
5497
|
+
storageCost: number;
|
|
5370
5498
|
miscellaneousCost: number;
|
|
5371
5499
|
invoiceNumber: string | null;
|
|
5372
5500
|
waybillId: string;
|
|
@@ -5392,7 +5520,9 @@ export declare const commodityDealsRouter: {
|
|
|
5392
5520
|
investorOwnershipPercent?: number | null | undefined;
|
|
5393
5521
|
investorPool?: number | null | undefined;
|
|
5394
5522
|
};
|
|
5523
|
+
supplierId?: string | null | undefined;
|
|
5395
5524
|
totalWeightKg?: number | null | undefined;
|
|
5525
|
+
supplierName?: string | null | undefined;
|
|
5396
5526
|
participants?: {
|
|
5397
5527
|
userId: string;
|
|
5398
5528
|
capitalContributed: number;
|
|
@@ -5459,7 +5589,10 @@ export declare const commodityDealsRouter: {
|
|
|
5459
5589
|
investorPool?: number | null | undefined;
|
|
5460
5590
|
};
|
|
5461
5591
|
currency?: string | undefined;
|
|
5592
|
+
storageCost?: number | undefined;
|
|
5593
|
+
supplierId?: string | null | undefined;
|
|
5462
5594
|
totalWeightKg?: number | null | undefined;
|
|
5595
|
+
supplierName?: string | null | undefined;
|
|
5463
5596
|
participants?: {
|
|
5464
5597
|
userId: string;
|
|
5465
5598
|
capitalContributed: number;
|
|
@@ -6011,6 +6144,7 @@ export declare const commodityDealsRouter: {
|
|
|
6011
6144
|
buyerName: z.ZodNullable<z.ZodString>;
|
|
6012
6145
|
purchaseCost: z.ZodNumber;
|
|
6013
6146
|
transportCost: z.ZodNumber;
|
|
6147
|
+
storageCost: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
6014
6148
|
miscellaneousCost: z.ZodNumber;
|
|
6015
6149
|
currency: z.ZodDefault<z.ZodString>;
|
|
6016
6150
|
status: z.ZodEnum<["draft", "in_transit", "invoiced", "paid", "cancelled"]>;
|
|
@@ -6019,6 +6153,8 @@ export declare const commodityDealsRouter: {
|
|
|
6019
6153
|
companyFeeMode: z.ZodNullable<z.ZodEnum<["percent_of_invoice", "percent_of_returns", "per_kg"]>>;
|
|
6020
6154
|
companyFeeValue: z.ZodNullable<z.ZodNumber>;
|
|
6021
6155
|
totalWeightKg: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
6156
|
+
supplierId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6157
|
+
supplierName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6022
6158
|
participants: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6023
6159
|
id: z.ZodOptional<z.ZodString>;
|
|
6024
6160
|
userId: z.ZodString;
|
|
@@ -6112,6 +6248,7 @@ export declare const commodityDealsRouter: {
|
|
|
6112
6248
|
organizationId: string;
|
|
6113
6249
|
waybillNumber: string | null;
|
|
6114
6250
|
purchaseCost: number;
|
|
6251
|
+
storageCost: number;
|
|
6115
6252
|
miscellaneousCost: number;
|
|
6116
6253
|
invoiceNumber: string | null;
|
|
6117
6254
|
waybillId: string;
|
|
@@ -6137,7 +6274,9 @@ export declare const commodityDealsRouter: {
|
|
|
6137
6274
|
investorOwnershipPercent?: number | null | undefined;
|
|
6138
6275
|
investorPool?: number | null | undefined;
|
|
6139
6276
|
};
|
|
6277
|
+
supplierId?: string | null | undefined;
|
|
6140
6278
|
totalWeightKg?: number | null | undefined;
|
|
6279
|
+
supplierName?: string | null | undefined;
|
|
6141
6280
|
participants?: {
|
|
6142
6281
|
userId: string;
|
|
6143
6282
|
capitalContributed: number;
|
|
@@ -6185,7 +6324,10 @@ export declare const commodityDealsRouter: {
|
|
|
6185
6324
|
investorPool?: number | null | undefined;
|
|
6186
6325
|
};
|
|
6187
6326
|
currency?: string | undefined;
|
|
6327
|
+
storageCost?: number | undefined;
|
|
6328
|
+
supplierId?: string | null | undefined;
|
|
6188
6329
|
totalWeightKg?: number | null | undefined;
|
|
6330
|
+
supplierName?: string | null | undefined;
|
|
6189
6331
|
participants?: {
|
|
6190
6332
|
userId: string;
|
|
6191
6333
|
capitalContributed: number;
|
|
@@ -6215,6 +6357,7 @@ export declare const commodityDealsRouter: {
|
|
|
6215
6357
|
organizationId: string;
|
|
6216
6358
|
waybillNumber: string | null;
|
|
6217
6359
|
purchaseCost: number;
|
|
6360
|
+
storageCost: number;
|
|
6218
6361
|
miscellaneousCost: number;
|
|
6219
6362
|
invoiceNumber: string | null;
|
|
6220
6363
|
waybillId: string;
|
|
@@ -6240,7 +6383,9 @@ export declare const commodityDealsRouter: {
|
|
|
6240
6383
|
investorOwnershipPercent?: number | null | undefined;
|
|
6241
6384
|
investorPool?: number | null | undefined;
|
|
6242
6385
|
};
|
|
6386
|
+
supplierId?: string | null | undefined;
|
|
6243
6387
|
totalWeightKg?: number | null | undefined;
|
|
6388
|
+
supplierName?: string | null | undefined;
|
|
6244
6389
|
participants?: {
|
|
6245
6390
|
userId: string;
|
|
6246
6391
|
capitalContributed: number;
|
|
@@ -6295,7 +6440,10 @@ export declare const commodityDealsRouter: {
|
|
|
6295
6440
|
investorPool?: number | null | undefined;
|
|
6296
6441
|
};
|
|
6297
6442
|
currency?: string | undefined;
|
|
6443
|
+
storageCost?: number | undefined;
|
|
6444
|
+
supplierId?: string | null | undefined;
|
|
6298
6445
|
totalWeightKg?: number | null | undefined;
|
|
6446
|
+
supplierName?: string | null | undefined;
|
|
6299
6447
|
participants?: {
|
|
6300
6448
|
userId: string;
|
|
6301
6449
|
capitalContributed: number;
|
|
@@ -6351,6 +6499,7 @@ export declare const commodityDealsRouter: {
|
|
|
6351
6499
|
organizationId: string;
|
|
6352
6500
|
waybillNumber: string | null;
|
|
6353
6501
|
purchaseCost: number;
|
|
6502
|
+
storageCost: number;
|
|
6354
6503
|
miscellaneousCost: number;
|
|
6355
6504
|
invoiceNumber: string | null;
|
|
6356
6505
|
waybillId: string;
|
|
@@ -6376,7 +6525,9 @@ export declare const commodityDealsRouter: {
|
|
|
6376
6525
|
investorOwnershipPercent?: number | null | undefined;
|
|
6377
6526
|
investorPool?: number | null | undefined;
|
|
6378
6527
|
};
|
|
6528
|
+
supplierId?: string | null | undefined;
|
|
6379
6529
|
totalWeightKg?: number | null | undefined;
|
|
6530
|
+
supplierName?: string | null | undefined;
|
|
6380
6531
|
participants?: {
|
|
6381
6532
|
userId: string;
|
|
6382
6533
|
capitalContributed: number;
|
|
@@ -6443,7 +6594,10 @@ export declare const commodityDealsRouter: {
|
|
|
6443
6594
|
investorPool?: number | null | undefined;
|
|
6444
6595
|
};
|
|
6445
6596
|
currency?: string | undefined;
|
|
6597
|
+
storageCost?: number | undefined;
|
|
6598
|
+
supplierId?: string | null | undefined;
|
|
6446
6599
|
totalWeightKg?: number | null | undefined;
|
|
6600
|
+
supplierName?: string | null | undefined;
|
|
6447
6601
|
participants?: {
|
|
6448
6602
|
userId: string;
|
|
6449
6603
|
capitalContributed: number;
|
|
@@ -6954,6 +7108,7 @@ export declare const commodityDealsRouter: {
|
|
|
6954
7108
|
buyerName: z.ZodNullable<z.ZodString>;
|
|
6955
7109
|
purchaseCost: z.ZodNumber;
|
|
6956
7110
|
transportCost: z.ZodNumber;
|
|
7111
|
+
storageCost: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
6957
7112
|
miscellaneousCost: z.ZodNumber;
|
|
6958
7113
|
currency: z.ZodDefault<z.ZodString>;
|
|
6959
7114
|
status: z.ZodEnum<["draft", "in_transit", "invoiced", "paid", "cancelled"]>;
|
|
@@ -6962,6 +7117,8 @@ export declare const commodityDealsRouter: {
|
|
|
6962
7117
|
companyFeeMode: z.ZodNullable<z.ZodEnum<["percent_of_invoice", "percent_of_returns", "per_kg"]>>;
|
|
6963
7118
|
companyFeeValue: z.ZodNullable<z.ZodNumber>;
|
|
6964
7119
|
totalWeightKg: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
7120
|
+
supplierId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7121
|
+
supplierName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6965
7122
|
participants: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6966
7123
|
id: z.ZodOptional<z.ZodString>;
|
|
6967
7124
|
userId: z.ZodString;
|
|
@@ -7055,6 +7212,7 @@ export declare const commodityDealsRouter: {
|
|
|
7055
7212
|
organizationId: string;
|
|
7056
7213
|
waybillNumber: string | null;
|
|
7057
7214
|
purchaseCost: number;
|
|
7215
|
+
storageCost: number;
|
|
7058
7216
|
miscellaneousCost: number;
|
|
7059
7217
|
invoiceNumber: string | null;
|
|
7060
7218
|
waybillId: string;
|
|
@@ -7080,7 +7238,9 @@ export declare const commodityDealsRouter: {
|
|
|
7080
7238
|
investorOwnershipPercent?: number | null | undefined;
|
|
7081
7239
|
investorPool?: number | null | undefined;
|
|
7082
7240
|
};
|
|
7241
|
+
supplierId?: string | null | undefined;
|
|
7083
7242
|
totalWeightKg?: number | null | undefined;
|
|
7243
|
+
supplierName?: string | null | undefined;
|
|
7084
7244
|
participants?: {
|
|
7085
7245
|
userId: string;
|
|
7086
7246
|
capitalContributed: number;
|
|
@@ -7128,7 +7288,10 @@ export declare const commodityDealsRouter: {
|
|
|
7128
7288
|
investorPool?: number | null | undefined;
|
|
7129
7289
|
};
|
|
7130
7290
|
currency?: string | undefined;
|
|
7291
|
+
storageCost?: number | undefined;
|
|
7292
|
+
supplierId?: string | null | undefined;
|
|
7131
7293
|
totalWeightKg?: number | null | undefined;
|
|
7294
|
+
supplierName?: string | null | undefined;
|
|
7132
7295
|
participants?: {
|
|
7133
7296
|
userId: string;
|
|
7134
7297
|
capitalContributed: number;
|
|
@@ -7158,6 +7321,7 @@ export declare const commodityDealsRouter: {
|
|
|
7158
7321
|
organizationId: string;
|
|
7159
7322
|
waybillNumber: string | null;
|
|
7160
7323
|
purchaseCost: number;
|
|
7324
|
+
storageCost: number;
|
|
7161
7325
|
miscellaneousCost: number;
|
|
7162
7326
|
invoiceNumber: string | null;
|
|
7163
7327
|
waybillId: string;
|
|
@@ -7183,7 +7347,9 @@ export declare const commodityDealsRouter: {
|
|
|
7183
7347
|
investorOwnershipPercent?: number | null | undefined;
|
|
7184
7348
|
investorPool?: number | null | undefined;
|
|
7185
7349
|
};
|
|
7350
|
+
supplierId?: string | null | undefined;
|
|
7186
7351
|
totalWeightKg?: number | null | undefined;
|
|
7352
|
+
supplierName?: string | null | undefined;
|
|
7187
7353
|
participants?: {
|
|
7188
7354
|
userId: string;
|
|
7189
7355
|
capitalContributed: number;
|
|
@@ -7238,7 +7404,10 @@ export declare const commodityDealsRouter: {
|
|
|
7238
7404
|
investorPool?: number | null | undefined;
|
|
7239
7405
|
};
|
|
7240
7406
|
currency?: string | undefined;
|
|
7407
|
+
storageCost?: number | undefined;
|
|
7408
|
+
supplierId?: string | null | undefined;
|
|
7241
7409
|
totalWeightKg?: number | null | undefined;
|
|
7410
|
+
supplierName?: string | null | undefined;
|
|
7242
7411
|
participants?: {
|
|
7243
7412
|
userId: string;
|
|
7244
7413
|
capitalContributed: number;
|
|
@@ -7294,6 +7463,7 @@ export declare const commodityDealsRouter: {
|
|
|
7294
7463
|
organizationId: string;
|
|
7295
7464
|
waybillNumber: string | null;
|
|
7296
7465
|
purchaseCost: number;
|
|
7466
|
+
storageCost: number;
|
|
7297
7467
|
miscellaneousCost: number;
|
|
7298
7468
|
invoiceNumber: string | null;
|
|
7299
7469
|
waybillId: string;
|
|
@@ -7319,7 +7489,9 @@ export declare const commodityDealsRouter: {
|
|
|
7319
7489
|
investorOwnershipPercent?: number | null | undefined;
|
|
7320
7490
|
investorPool?: number | null | undefined;
|
|
7321
7491
|
};
|
|
7492
|
+
supplierId?: string | null | undefined;
|
|
7322
7493
|
totalWeightKg?: number | null | undefined;
|
|
7494
|
+
supplierName?: string | null | undefined;
|
|
7323
7495
|
participants?: {
|
|
7324
7496
|
userId: string;
|
|
7325
7497
|
capitalContributed: number;
|
|
@@ -7386,7 +7558,10 @@ export declare const commodityDealsRouter: {
|
|
|
7386
7558
|
investorPool?: number | null | undefined;
|
|
7387
7559
|
};
|
|
7388
7560
|
currency?: string | undefined;
|
|
7561
|
+
storageCost?: number | undefined;
|
|
7562
|
+
supplierId?: string | null | undefined;
|
|
7389
7563
|
totalWeightKg?: number | null | undefined;
|
|
7564
|
+
supplierName?: string | null | undefined;
|
|
7390
7565
|
participants?: {
|
|
7391
7566
|
userId: string;
|
|
7392
7567
|
capitalContributed: number;
|