@deepintel-ltd/farmpro-contracts 1.22.4 → 1.23.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.
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -0
- package/dist/routes/categories.routes.d.ts +26 -26
- package/dist/routes/commodity-deals.routes.d.ts +217 -42
- package/dist/routes/commodity-deals.routes.d.ts.map +1 -1
- package/dist/routes/crop-profile.routes.d.ts +8 -8
- package/dist/routes/farm-enterprises.routes.d.ts +395 -0
- package/dist/routes/farm-enterprises.routes.d.ts.map +1 -1
- package/dist/routes/farm-enterprises.routes.js +14 -1
- package/dist/routes/farms.routes.d.ts +73 -20
- package/dist/routes/farms.routes.d.ts.map +1 -1
- package/dist/routes/fertigation.routes.d.ts +96 -96
- package/dist/routes/field-monitoring.routes.d.ts +2 -2
- package/dist/routes/finance.routes.d.ts +8 -8
- 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 +210 -60
- package/dist/routes/invoices.routes.d.ts.map +1 -1
- package/dist/routes/invoices.routes.js +4 -1
- package/dist/routes/monitoring-visualization.routes.d.ts +2 -2
- package/dist/routes/notifications.routes.d.ts +12 -12
- 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/organizations.routes.d.ts +90 -47
- package/dist/routes/organizations.routes.d.ts.map +1 -1
- 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/suppliers.routes.d.ts +96 -96
- package/dist/routes/team-payments.routes.d.ts +105 -105
- package/dist/routes/team.routes.d.ts +125 -25
- package/dist/routes/team.routes.d.ts.map +1 -1
- 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 +229 -15
- package/dist/routes/waybills.routes.d.ts.map +1 -1
- package/dist/routes/waybills.routes.js +4 -1
- package/dist/schemas/categories.schemas.d.ts +21 -21
- package/dist/schemas/commodity-deals.schemas.d.ts +116 -18
- package/dist/schemas/commodity-deals.schemas.d.ts.map +1 -1
- package/dist/schemas/commodity-deals.schemas.js +7 -0
- package/dist/schemas/crop-profile.schemas.d.ts +12 -12
- package/dist/schemas/farm-enterprises.schemas.d.ts +185 -0
- package/dist/schemas/farm-enterprises.schemas.d.ts.map +1 -1
- package/dist/schemas/farm-enterprises.schemas.js +21 -0
- package/dist/schemas/farms.schemas.d.ts +121 -19
- package/dist/schemas/farms.schemas.d.ts.map +1 -1
- package/dist/schemas/farms.schemas.js +15 -1
- package/dist/schemas/fertigation.schemas.d.ts +36 -36
- package/dist/schemas/field-monitoring.schemas.d.ts +2 -2
- package/dist/schemas/finance.schemas.d.ts +8 -8
- package/dist/schemas/invoices.schemas.d.ts +153 -39
- package/dist/schemas/invoices.schemas.d.ts.map +1 -1
- package/dist/schemas/invoices.schemas.js +8 -2
- package/dist/schemas/notifications.schemas.d.ts +18 -18
- 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/organizations.schemas.d.ts +105 -46
- package/dist/schemas/organizations.schemas.d.ts.map +1 -1
- package/dist/schemas/organizations.schemas.js +8 -1
- 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/suppliers.schemas.d.ts +96 -96
- package/dist/schemas/team-payments.schemas.d.ts +87 -87
- package/dist/schemas/team.schemas.d.ts +137 -20
- package/dist/schemas/team.schemas.d.ts.map +1 -1
- package/dist/schemas/team.schemas.js +29 -1
- 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 +177 -9
- 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;
|
|
@@ -137,14 +140,15 @@ export declare const commodityDealsRouter: {
|
|
|
137
140
|
status: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced";
|
|
138
141
|
createdAt: string;
|
|
139
142
|
updatedAt: string;
|
|
143
|
+
organizationId: string;
|
|
140
144
|
currency: string;
|
|
141
145
|
notes: string | null;
|
|
142
146
|
invoiceId: string | null;
|
|
143
147
|
buyerName: string | null;
|
|
144
148
|
transportCost: number;
|
|
145
|
-
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;
|
|
@@ -185,11 +191,11 @@ export declare const commodityDealsRouter: {
|
|
|
185
191
|
status: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced";
|
|
186
192
|
createdAt: string;
|
|
187
193
|
updatedAt: string;
|
|
194
|
+
organizationId: string;
|
|
188
195
|
notes: string | null;
|
|
189
196
|
invoiceId: string | null;
|
|
190
197
|
buyerName: string | null;
|
|
191
198
|
transportCost: number;
|
|
192
|
-
organizationId: string;
|
|
193
199
|
waybillNumber: string | null;
|
|
194
200
|
purchaseCost: number;
|
|
195
201
|
miscellaneousCost: 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;
|
|
@@ -240,14 +249,15 @@ export declare const commodityDealsRouter: {
|
|
|
240
249
|
status: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced";
|
|
241
250
|
createdAt: string;
|
|
242
251
|
updatedAt: string;
|
|
252
|
+
organizationId: string;
|
|
243
253
|
currency: string;
|
|
244
254
|
notes: string | null;
|
|
245
255
|
invoiceId: string | null;
|
|
246
256
|
buyerName: string | null;
|
|
247
257
|
transportCost: number;
|
|
248
|
-
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;
|
|
@@ -295,11 +307,11 @@ export declare const commodityDealsRouter: {
|
|
|
295
307
|
status: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced";
|
|
296
308
|
createdAt: string;
|
|
297
309
|
updatedAt: string;
|
|
310
|
+
organizationId: string;
|
|
298
311
|
notes: string | null;
|
|
299
312
|
invoiceId: string | null;
|
|
300
313
|
buyerName: string | null;
|
|
301
314
|
transportCost: number;
|
|
302
|
-
organizationId: string;
|
|
303
315
|
waybillNumber: string | null;
|
|
304
316
|
purchaseCost: number;
|
|
305
317
|
miscellaneousCost: 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;
|
|
@@ -376,14 +391,15 @@ export declare const commodityDealsRouter: {
|
|
|
376
391
|
status: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced";
|
|
377
392
|
createdAt: string;
|
|
378
393
|
updatedAt: string;
|
|
394
|
+
organizationId: string;
|
|
379
395
|
currency: string;
|
|
380
396
|
notes: string | null;
|
|
381
397
|
invoiceId: string | null;
|
|
382
398
|
buyerName: string | null;
|
|
383
399
|
transportCost: number;
|
|
384
|
-
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;
|
|
@@ -443,11 +461,11 @@ export declare const commodityDealsRouter: {
|
|
|
443
461
|
status: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced";
|
|
444
462
|
createdAt: string;
|
|
445
463
|
updatedAt: string;
|
|
464
|
+
organizationId: string;
|
|
446
465
|
notes: string | null;
|
|
447
466
|
invoiceId: string | null;
|
|
448
467
|
buyerName: string | null;
|
|
449
468
|
transportCost: number;
|
|
450
|
-
organizationId: string;
|
|
451
469
|
waybillNumber: string | null;
|
|
452
470
|
purchaseCost: number;
|
|
453
471
|
miscellaneousCost: 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;
|
|
@@ -2306,14 +2330,15 @@ export declare const commodityDealsRouter: {
|
|
|
2306
2330
|
status: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced";
|
|
2307
2331
|
createdAt: string;
|
|
2308
2332
|
updatedAt: string;
|
|
2333
|
+
organizationId: string;
|
|
2309
2334
|
currency: string;
|
|
2310
2335
|
notes: string | null;
|
|
2311
2336
|
invoiceId: string | null;
|
|
2312
2337
|
buyerName: string | null;
|
|
2313
2338
|
transportCost: number;
|
|
2314
|
-
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;
|
|
@@ -2354,11 +2381,11 @@ export declare const commodityDealsRouter: {
|
|
|
2354
2381
|
status: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced";
|
|
2355
2382
|
createdAt: string;
|
|
2356
2383
|
updatedAt: string;
|
|
2384
|
+
organizationId: string;
|
|
2357
2385
|
notes: string | null;
|
|
2358
2386
|
invoiceId: string | null;
|
|
2359
2387
|
buyerName: string | null;
|
|
2360
2388
|
transportCost: number;
|
|
2361
|
-
organizationId: string;
|
|
2362
2389
|
waybillNumber: string | null;
|
|
2363
2390
|
purchaseCost: number;
|
|
2364
2391
|
miscellaneousCost: 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;
|
|
@@ -2409,14 +2439,15 @@ export declare const commodityDealsRouter: {
|
|
|
2409
2439
|
status: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced";
|
|
2410
2440
|
createdAt: string;
|
|
2411
2441
|
updatedAt: string;
|
|
2442
|
+
organizationId: string;
|
|
2412
2443
|
currency: string;
|
|
2413
2444
|
notes: string | null;
|
|
2414
2445
|
invoiceId: string | null;
|
|
2415
2446
|
buyerName: string | null;
|
|
2416
2447
|
transportCost: number;
|
|
2417
|
-
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;
|
|
@@ -2464,11 +2497,11 @@ export declare const commodityDealsRouter: {
|
|
|
2464
2497
|
status: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced";
|
|
2465
2498
|
createdAt: string;
|
|
2466
2499
|
updatedAt: string;
|
|
2500
|
+
organizationId: string;
|
|
2467
2501
|
notes: string | null;
|
|
2468
2502
|
invoiceId: string | null;
|
|
2469
2503
|
buyerName: string | null;
|
|
2470
2504
|
transportCost: number;
|
|
2471
|
-
organizationId: string;
|
|
2472
2505
|
waybillNumber: string | null;
|
|
2473
2506
|
purchaseCost: number;
|
|
2474
2507
|
miscellaneousCost: 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;
|
|
@@ -2545,14 +2581,15 @@ export declare const commodityDealsRouter: {
|
|
|
2545
2581
|
status: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced";
|
|
2546
2582
|
createdAt: string;
|
|
2547
2583
|
updatedAt: string;
|
|
2584
|
+
organizationId: string;
|
|
2548
2585
|
currency: string;
|
|
2549
2586
|
notes: string | null;
|
|
2550
2587
|
invoiceId: string | null;
|
|
2551
2588
|
buyerName: string | null;
|
|
2552
2589
|
transportCost: number;
|
|
2553
|
-
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;
|
|
@@ -2612,11 +2651,11 @@ export declare const commodityDealsRouter: {
|
|
|
2612
2651
|
status: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced";
|
|
2613
2652
|
createdAt: string;
|
|
2614
2653
|
updatedAt: string;
|
|
2654
|
+
organizationId: string;
|
|
2615
2655
|
notes: string | null;
|
|
2616
2656
|
invoiceId: string | null;
|
|
2617
2657
|
buyerName: string | null;
|
|
2618
2658
|
transportCost: number;
|
|
2619
|
-
organizationId: string;
|
|
2620
2659
|
waybillNumber: string | null;
|
|
2621
2660
|
purchaseCost: number;
|
|
2622
2661
|
miscellaneousCost: 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;
|
|
@@ -3079,14 +3138,15 @@ export declare const commodityDealsRouter: {
|
|
|
3079
3138
|
status: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced";
|
|
3080
3139
|
createdAt: string;
|
|
3081
3140
|
updatedAt: string;
|
|
3141
|
+
organizationId: string;
|
|
3082
3142
|
currency: string;
|
|
3083
3143
|
notes: string | null;
|
|
3084
3144
|
invoiceId: string | null;
|
|
3085
3145
|
buyerName: string | null;
|
|
3086
3146
|
transportCost: number;
|
|
3087
|
-
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;
|
|
@@ -3127,11 +3189,11 @@ export declare const commodityDealsRouter: {
|
|
|
3127
3189
|
status: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced";
|
|
3128
3190
|
createdAt: string;
|
|
3129
3191
|
updatedAt: string;
|
|
3192
|
+
organizationId: string;
|
|
3130
3193
|
notes: string | null;
|
|
3131
3194
|
invoiceId: string | null;
|
|
3132
3195
|
buyerName: string | null;
|
|
3133
3196
|
transportCost: number;
|
|
3134
|
-
organizationId: string;
|
|
3135
3197
|
waybillNumber: string | null;
|
|
3136
3198
|
purchaseCost: number;
|
|
3137
3199
|
miscellaneousCost: 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;
|
|
@@ -3182,14 +3247,15 @@ export declare const commodityDealsRouter: {
|
|
|
3182
3247
|
status: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced";
|
|
3183
3248
|
createdAt: string;
|
|
3184
3249
|
updatedAt: string;
|
|
3250
|
+
organizationId: string;
|
|
3185
3251
|
currency: string;
|
|
3186
3252
|
notes: string | null;
|
|
3187
3253
|
invoiceId: string | null;
|
|
3188
3254
|
buyerName: string | null;
|
|
3189
3255
|
transportCost: number;
|
|
3190
|
-
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;
|
|
@@ -3237,11 +3305,11 @@ export declare const commodityDealsRouter: {
|
|
|
3237
3305
|
status: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced";
|
|
3238
3306
|
createdAt: string;
|
|
3239
3307
|
updatedAt: string;
|
|
3308
|
+
organizationId: string;
|
|
3240
3309
|
notes: string | null;
|
|
3241
3310
|
invoiceId: string | null;
|
|
3242
3311
|
buyerName: string | null;
|
|
3243
3312
|
transportCost: number;
|
|
3244
|
-
organizationId: string;
|
|
3245
3313
|
waybillNumber: string | null;
|
|
3246
3314
|
purchaseCost: number;
|
|
3247
3315
|
miscellaneousCost: 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;
|
|
@@ -3318,14 +3389,15 @@ export declare const commodityDealsRouter: {
|
|
|
3318
3389
|
status: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced";
|
|
3319
3390
|
createdAt: string;
|
|
3320
3391
|
updatedAt: string;
|
|
3392
|
+
organizationId: string;
|
|
3321
3393
|
currency: string;
|
|
3322
3394
|
notes: string | null;
|
|
3323
3395
|
invoiceId: string | null;
|
|
3324
3396
|
buyerName: string | null;
|
|
3325
3397
|
transportCost: number;
|
|
3326
|
-
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;
|
|
@@ -3385,11 +3459,11 @@ export declare const commodityDealsRouter: {
|
|
|
3385
3459
|
status: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced";
|
|
3386
3460
|
createdAt: string;
|
|
3387
3461
|
updatedAt: string;
|
|
3462
|
+
organizationId: string;
|
|
3388
3463
|
notes: string | null;
|
|
3389
3464
|
invoiceId: string | null;
|
|
3390
3465
|
buyerName: string | null;
|
|
3391
3466
|
transportCost: number;
|
|
3392
|
-
organizationId: string;
|
|
3393
3467
|
waybillNumber: string | null;
|
|
3394
3468
|
purchaseCost: number;
|
|
3395
3469
|
miscellaneousCost: 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;
|
|
@@ -4137,14 +4231,15 @@ export declare const commodityDealsRouter: {
|
|
|
4137
4231
|
status: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced";
|
|
4138
4232
|
createdAt: string;
|
|
4139
4233
|
updatedAt: string;
|
|
4234
|
+
organizationId: string;
|
|
4140
4235
|
currency: string;
|
|
4141
4236
|
notes: string | null;
|
|
4142
4237
|
invoiceId: string | null;
|
|
4143
4238
|
buyerName: string | null;
|
|
4144
4239
|
transportCost: number;
|
|
4145
|
-
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;
|
|
@@ -4185,11 +4282,11 @@ export declare const commodityDealsRouter: {
|
|
|
4185
4282
|
status: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced";
|
|
4186
4283
|
createdAt: string;
|
|
4187
4284
|
updatedAt: string;
|
|
4285
|
+
organizationId: string;
|
|
4188
4286
|
notes: string | null;
|
|
4189
4287
|
invoiceId: string | null;
|
|
4190
4288
|
buyerName: string | null;
|
|
4191
4289
|
transportCost: number;
|
|
4192
|
-
organizationId: string;
|
|
4193
4290
|
waybillNumber: string | null;
|
|
4194
4291
|
purchaseCost: number;
|
|
4195
4292
|
miscellaneousCost: 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;
|
|
@@ -4240,14 +4340,15 @@ export declare const commodityDealsRouter: {
|
|
|
4240
4340
|
status: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced";
|
|
4241
4341
|
createdAt: string;
|
|
4242
4342
|
updatedAt: string;
|
|
4343
|
+
organizationId: string;
|
|
4243
4344
|
currency: string;
|
|
4244
4345
|
notes: string | null;
|
|
4245
4346
|
invoiceId: string | null;
|
|
4246
4347
|
buyerName: string | null;
|
|
4247
4348
|
transportCost: number;
|
|
4248
|
-
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;
|
|
@@ -4295,11 +4398,11 @@ export declare const commodityDealsRouter: {
|
|
|
4295
4398
|
status: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced";
|
|
4296
4399
|
createdAt: string;
|
|
4297
4400
|
updatedAt: string;
|
|
4401
|
+
organizationId: string;
|
|
4298
4402
|
notes: string | null;
|
|
4299
4403
|
invoiceId: string | null;
|
|
4300
4404
|
buyerName: string | null;
|
|
4301
4405
|
transportCost: number;
|
|
4302
|
-
organizationId: string;
|
|
4303
4406
|
waybillNumber: string | null;
|
|
4304
4407
|
purchaseCost: number;
|
|
4305
4408
|
miscellaneousCost: 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;
|
|
@@ -4376,14 +4482,15 @@ export declare const commodityDealsRouter: {
|
|
|
4376
4482
|
status: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced";
|
|
4377
4483
|
createdAt: string;
|
|
4378
4484
|
updatedAt: string;
|
|
4485
|
+
organizationId: string;
|
|
4379
4486
|
currency: string;
|
|
4380
4487
|
notes: string | null;
|
|
4381
4488
|
invoiceId: string | null;
|
|
4382
4489
|
buyerName: string | null;
|
|
4383
4490
|
transportCost: number;
|
|
4384
|
-
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;
|
|
@@ -4443,11 +4552,11 @@ export declare const commodityDealsRouter: {
|
|
|
4443
4552
|
status: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced";
|
|
4444
4553
|
createdAt: string;
|
|
4445
4554
|
updatedAt: string;
|
|
4555
|
+
organizationId: string;
|
|
4446
4556
|
notes: string | null;
|
|
4447
4557
|
invoiceId: string | null;
|
|
4448
4558
|
buyerName: string | null;
|
|
4449
4559
|
transportCost: number;
|
|
4450
|
-
organizationId: string;
|
|
4451
4560
|
waybillNumber: string | null;
|
|
4452
4561
|
purchaseCost: number;
|
|
4453
4562
|
miscellaneousCost: 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;
|
|
@@ -5120,14 +5235,15 @@ export declare const commodityDealsRouter: {
|
|
|
5120
5235
|
status: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced";
|
|
5121
5236
|
createdAt: string;
|
|
5122
5237
|
updatedAt: string;
|
|
5238
|
+
organizationId: string;
|
|
5123
5239
|
currency: string;
|
|
5124
5240
|
notes: string | null;
|
|
5125
5241
|
invoiceId: string | null;
|
|
5126
5242
|
buyerName: string | null;
|
|
5127
5243
|
transportCost: number;
|
|
5128
|
-
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;
|
|
@@ -5168,11 +5286,11 @@ export declare const commodityDealsRouter: {
|
|
|
5168
5286
|
status: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced";
|
|
5169
5287
|
createdAt: string;
|
|
5170
5288
|
updatedAt: string;
|
|
5289
|
+
organizationId: string;
|
|
5171
5290
|
notes: string | null;
|
|
5172
5291
|
invoiceId: string | null;
|
|
5173
5292
|
buyerName: string | null;
|
|
5174
5293
|
transportCost: number;
|
|
5175
|
-
organizationId: string;
|
|
5176
5294
|
waybillNumber: string | null;
|
|
5177
5295
|
purchaseCost: number;
|
|
5178
5296
|
miscellaneousCost: 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;
|
|
@@ -5223,14 +5344,15 @@ export declare const commodityDealsRouter: {
|
|
|
5223
5344
|
status: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced";
|
|
5224
5345
|
createdAt: string;
|
|
5225
5346
|
updatedAt: string;
|
|
5347
|
+
organizationId: string;
|
|
5226
5348
|
currency: string;
|
|
5227
5349
|
notes: string | null;
|
|
5228
5350
|
invoiceId: string | null;
|
|
5229
5351
|
buyerName: string | null;
|
|
5230
5352
|
transportCost: number;
|
|
5231
|
-
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;
|
|
@@ -5278,11 +5402,11 @@ export declare const commodityDealsRouter: {
|
|
|
5278
5402
|
status: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced";
|
|
5279
5403
|
createdAt: string;
|
|
5280
5404
|
updatedAt: string;
|
|
5405
|
+
organizationId: string;
|
|
5281
5406
|
notes: string | null;
|
|
5282
5407
|
invoiceId: string | null;
|
|
5283
5408
|
buyerName: string | null;
|
|
5284
5409
|
transportCost: number;
|
|
5285
|
-
organizationId: string;
|
|
5286
5410
|
waybillNumber: string | null;
|
|
5287
5411
|
purchaseCost: number;
|
|
5288
5412
|
miscellaneousCost: 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;
|
|
@@ -5359,14 +5486,15 @@ export declare const commodityDealsRouter: {
|
|
|
5359
5486
|
status: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced";
|
|
5360
5487
|
createdAt: string;
|
|
5361
5488
|
updatedAt: string;
|
|
5489
|
+
organizationId: string;
|
|
5362
5490
|
currency: string;
|
|
5363
5491
|
notes: string | null;
|
|
5364
5492
|
invoiceId: string | null;
|
|
5365
5493
|
buyerName: string | null;
|
|
5366
5494
|
transportCost: number;
|
|
5367
|
-
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;
|
|
@@ -5426,11 +5556,11 @@ export declare const commodityDealsRouter: {
|
|
|
5426
5556
|
status: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced";
|
|
5427
5557
|
createdAt: string;
|
|
5428
5558
|
updatedAt: string;
|
|
5559
|
+
organizationId: string;
|
|
5429
5560
|
notes: string | null;
|
|
5430
5561
|
invoiceId: string | null;
|
|
5431
5562
|
buyerName: string | null;
|
|
5432
5563
|
transportCost: number;
|
|
5433
|
-
organizationId: string;
|
|
5434
5564
|
waybillNumber: string | null;
|
|
5435
5565
|
purchaseCost: number;
|
|
5436
5566
|
miscellaneousCost: 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;
|
|
@@ -6104,14 +6240,15 @@ export declare const commodityDealsRouter: {
|
|
|
6104
6240
|
status: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced";
|
|
6105
6241
|
createdAt: string;
|
|
6106
6242
|
updatedAt: string;
|
|
6243
|
+
organizationId: string;
|
|
6107
6244
|
currency: string;
|
|
6108
6245
|
notes: string | null;
|
|
6109
6246
|
invoiceId: string | null;
|
|
6110
6247
|
buyerName: string | null;
|
|
6111
6248
|
transportCost: number;
|
|
6112
|
-
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;
|
|
@@ -6152,11 +6291,11 @@ export declare const commodityDealsRouter: {
|
|
|
6152
6291
|
status: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced";
|
|
6153
6292
|
createdAt: string;
|
|
6154
6293
|
updatedAt: string;
|
|
6294
|
+
organizationId: string;
|
|
6155
6295
|
notes: string | null;
|
|
6156
6296
|
invoiceId: string | null;
|
|
6157
6297
|
buyerName: string | null;
|
|
6158
6298
|
transportCost: number;
|
|
6159
|
-
organizationId: string;
|
|
6160
6299
|
waybillNumber: string | null;
|
|
6161
6300
|
purchaseCost: number;
|
|
6162
6301
|
miscellaneousCost: 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;
|
|
@@ -6207,14 +6349,15 @@ export declare const commodityDealsRouter: {
|
|
|
6207
6349
|
status: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced";
|
|
6208
6350
|
createdAt: string;
|
|
6209
6351
|
updatedAt: string;
|
|
6352
|
+
organizationId: string;
|
|
6210
6353
|
currency: string;
|
|
6211
6354
|
notes: string | null;
|
|
6212
6355
|
invoiceId: string | null;
|
|
6213
6356
|
buyerName: string | null;
|
|
6214
6357
|
transportCost: number;
|
|
6215
|
-
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;
|
|
@@ -6262,11 +6407,11 @@ export declare const commodityDealsRouter: {
|
|
|
6262
6407
|
status: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced";
|
|
6263
6408
|
createdAt: string;
|
|
6264
6409
|
updatedAt: string;
|
|
6410
|
+
organizationId: string;
|
|
6265
6411
|
notes: string | null;
|
|
6266
6412
|
invoiceId: string | null;
|
|
6267
6413
|
buyerName: string | null;
|
|
6268
6414
|
transportCost: number;
|
|
6269
|
-
organizationId: string;
|
|
6270
6415
|
waybillNumber: string | null;
|
|
6271
6416
|
purchaseCost: number;
|
|
6272
6417
|
miscellaneousCost: 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;
|
|
@@ -6343,14 +6491,15 @@ export declare const commodityDealsRouter: {
|
|
|
6343
6491
|
status: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced";
|
|
6344
6492
|
createdAt: string;
|
|
6345
6493
|
updatedAt: string;
|
|
6494
|
+
organizationId: string;
|
|
6346
6495
|
currency: string;
|
|
6347
6496
|
notes: string | null;
|
|
6348
6497
|
invoiceId: string | null;
|
|
6349
6498
|
buyerName: string | null;
|
|
6350
6499
|
transportCost: number;
|
|
6351
|
-
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;
|
|
@@ -6410,11 +6561,11 @@ export declare const commodityDealsRouter: {
|
|
|
6410
6561
|
status: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced";
|
|
6411
6562
|
createdAt: string;
|
|
6412
6563
|
updatedAt: string;
|
|
6564
|
+
organizationId: string;
|
|
6413
6565
|
notes: string | null;
|
|
6414
6566
|
invoiceId: string | null;
|
|
6415
6567
|
buyerName: string | null;
|
|
6416
6568
|
transportCost: number;
|
|
6417
|
-
organizationId: string;
|
|
6418
6569
|
waybillNumber: string | null;
|
|
6419
6570
|
purchaseCost: number;
|
|
6420
6571
|
miscellaneousCost: 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;
|
|
@@ -7047,14 +7204,15 @@ export declare const commodityDealsRouter: {
|
|
|
7047
7204
|
status: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced";
|
|
7048
7205
|
createdAt: string;
|
|
7049
7206
|
updatedAt: string;
|
|
7207
|
+
organizationId: string;
|
|
7050
7208
|
currency: string;
|
|
7051
7209
|
notes: string | null;
|
|
7052
7210
|
invoiceId: string | null;
|
|
7053
7211
|
buyerName: string | null;
|
|
7054
7212
|
transportCost: number;
|
|
7055
|
-
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;
|
|
@@ -7095,11 +7255,11 @@ export declare const commodityDealsRouter: {
|
|
|
7095
7255
|
status: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced";
|
|
7096
7256
|
createdAt: string;
|
|
7097
7257
|
updatedAt: string;
|
|
7258
|
+
organizationId: string;
|
|
7098
7259
|
notes: string | null;
|
|
7099
7260
|
invoiceId: string | null;
|
|
7100
7261
|
buyerName: string | null;
|
|
7101
7262
|
transportCost: number;
|
|
7102
|
-
organizationId: string;
|
|
7103
7263
|
waybillNumber: string | null;
|
|
7104
7264
|
purchaseCost: number;
|
|
7105
7265
|
miscellaneousCost: 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;
|
|
@@ -7150,14 +7313,15 @@ export declare const commodityDealsRouter: {
|
|
|
7150
7313
|
status: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced";
|
|
7151
7314
|
createdAt: string;
|
|
7152
7315
|
updatedAt: string;
|
|
7316
|
+
organizationId: string;
|
|
7153
7317
|
currency: string;
|
|
7154
7318
|
notes: string | null;
|
|
7155
7319
|
invoiceId: string | null;
|
|
7156
7320
|
buyerName: string | null;
|
|
7157
7321
|
transportCost: number;
|
|
7158
|
-
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;
|
|
@@ -7205,11 +7371,11 @@ export declare const commodityDealsRouter: {
|
|
|
7205
7371
|
status: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced";
|
|
7206
7372
|
createdAt: string;
|
|
7207
7373
|
updatedAt: string;
|
|
7374
|
+
organizationId: string;
|
|
7208
7375
|
notes: string | null;
|
|
7209
7376
|
invoiceId: string | null;
|
|
7210
7377
|
buyerName: string | null;
|
|
7211
7378
|
transportCost: number;
|
|
7212
|
-
organizationId: string;
|
|
7213
7379
|
waybillNumber: string | null;
|
|
7214
7380
|
purchaseCost: number;
|
|
7215
7381
|
miscellaneousCost: 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;
|
|
@@ -7286,14 +7455,15 @@ export declare const commodityDealsRouter: {
|
|
|
7286
7455
|
status: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced";
|
|
7287
7456
|
createdAt: string;
|
|
7288
7457
|
updatedAt: string;
|
|
7458
|
+
organizationId: string;
|
|
7289
7459
|
currency: string;
|
|
7290
7460
|
notes: string | null;
|
|
7291
7461
|
invoiceId: string | null;
|
|
7292
7462
|
buyerName: string | null;
|
|
7293
7463
|
transportCost: number;
|
|
7294
|
-
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;
|
|
@@ -7353,11 +7525,11 @@ export declare const commodityDealsRouter: {
|
|
|
7353
7525
|
status: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced";
|
|
7354
7526
|
createdAt: string;
|
|
7355
7527
|
updatedAt: string;
|
|
7528
|
+
organizationId: string;
|
|
7356
7529
|
notes: string | null;
|
|
7357
7530
|
invoiceId: string | null;
|
|
7358
7531
|
buyerName: string | null;
|
|
7359
7532
|
transportCost: number;
|
|
7360
|
-
organizationId: string;
|
|
7361
7533
|
waybillNumber: string | null;
|
|
7362
7534
|
purchaseCost: number;
|
|
7363
7535
|
miscellaneousCost: 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;
|