@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.
Files changed (80) hide show
  1. package/dist/index.d.ts +6 -0
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +6 -0
  4. package/dist/routes/categories.routes.d.ts +26 -26
  5. package/dist/routes/commodity-deals.routes.d.ts +217 -42
  6. package/dist/routes/commodity-deals.routes.d.ts.map +1 -1
  7. package/dist/routes/crop-profile.routes.d.ts +8 -8
  8. package/dist/routes/farm-enterprises.routes.d.ts +395 -0
  9. package/dist/routes/farm-enterprises.routes.d.ts.map +1 -1
  10. package/dist/routes/farm-enterprises.routes.js +14 -1
  11. package/dist/routes/farms.routes.d.ts +73 -20
  12. package/dist/routes/farms.routes.d.ts.map +1 -1
  13. package/dist/routes/fertigation.routes.d.ts +96 -96
  14. package/dist/routes/field-monitoring.routes.d.ts +2 -2
  15. package/dist/routes/finance.routes.d.ts +8 -8
  16. package/dist/routes/index.d.ts +9 -0
  17. package/dist/routes/index.d.ts.map +1 -1
  18. package/dist/routes/index.js +6 -0
  19. package/dist/routes/invoices.routes.d.ts +210 -60
  20. package/dist/routes/invoices.routes.d.ts.map +1 -1
  21. package/dist/routes/invoices.routes.js +4 -1
  22. package/dist/routes/monitoring-visualization.routes.d.ts +2 -2
  23. package/dist/routes/notifications.routes.d.ts +12 -12
  24. package/dist/routes/organization-capabilities.routes.d.ts +1671 -0
  25. package/dist/routes/organization-capabilities.routes.d.ts.map +1 -0
  26. package/dist/routes/organization-capabilities.routes.js +74 -0
  27. package/dist/routes/organizations.routes.d.ts +90 -47
  28. package/dist/routes/organizations.routes.d.ts.map +1 -1
  29. package/dist/routes/purchase-orders.routes.d.ts +2061 -0
  30. package/dist/routes/purchase-orders.routes.d.ts.map +1 -0
  31. package/dist/routes/purchase-orders.routes.js +55 -0
  32. package/dist/routes/suppliers.routes.d.ts +96 -96
  33. package/dist/routes/team-payments.routes.d.ts +105 -105
  34. package/dist/routes/team.routes.d.ts +125 -25
  35. package/dist/routes/team.routes.d.ts.map +1 -1
  36. package/dist/routes/trade-cash-events.routes.d.ts +3837 -0
  37. package/dist/routes/trade-cash-events.routes.d.ts.map +1 -0
  38. package/dist/routes/trade-cash-events.routes.js +126 -0
  39. package/dist/routes/waybills.routes.d.ts +229 -15
  40. package/dist/routes/waybills.routes.d.ts.map +1 -1
  41. package/dist/routes/waybills.routes.js +4 -1
  42. package/dist/schemas/categories.schemas.d.ts +21 -21
  43. package/dist/schemas/commodity-deals.schemas.d.ts +116 -18
  44. package/dist/schemas/commodity-deals.schemas.d.ts.map +1 -1
  45. package/dist/schemas/commodity-deals.schemas.js +7 -0
  46. package/dist/schemas/crop-profile.schemas.d.ts +12 -12
  47. package/dist/schemas/farm-enterprises.schemas.d.ts +185 -0
  48. package/dist/schemas/farm-enterprises.schemas.d.ts.map +1 -1
  49. package/dist/schemas/farm-enterprises.schemas.js +21 -0
  50. package/dist/schemas/farms.schemas.d.ts +121 -19
  51. package/dist/schemas/farms.schemas.d.ts.map +1 -1
  52. package/dist/schemas/farms.schemas.js +15 -1
  53. package/dist/schemas/fertigation.schemas.d.ts +36 -36
  54. package/dist/schemas/field-monitoring.schemas.d.ts +2 -2
  55. package/dist/schemas/finance.schemas.d.ts +8 -8
  56. package/dist/schemas/invoices.schemas.d.ts +153 -39
  57. package/dist/schemas/invoices.schemas.d.ts.map +1 -1
  58. package/dist/schemas/invoices.schemas.js +8 -2
  59. package/dist/schemas/notifications.schemas.d.ts +18 -18
  60. package/dist/schemas/organization-capabilities.schemas.d.ts +355 -0
  61. package/dist/schemas/organization-capabilities.schemas.d.ts.map +1 -0
  62. package/dist/schemas/organization-capabilities.schemas.js +19 -0
  63. package/dist/schemas/organizations.schemas.d.ts +105 -46
  64. package/dist/schemas/organizations.schemas.d.ts.map +1 -1
  65. package/dist/schemas/organizations.schemas.js +8 -1
  66. package/dist/schemas/purchase-orders.schemas.d.ts +1031 -0
  67. package/dist/schemas/purchase-orders.schemas.d.ts.map +1 -0
  68. package/dist/schemas/purchase-orders.schemas.js +49 -0
  69. package/dist/schemas/suppliers.schemas.d.ts +96 -96
  70. package/dist/schemas/team-payments.schemas.d.ts +87 -87
  71. package/dist/schemas/team.schemas.d.ts +137 -20
  72. package/dist/schemas/team.schemas.d.ts.map +1 -1
  73. package/dist/schemas/team.schemas.js +29 -1
  74. package/dist/schemas/trade-cash-events.schemas.d.ts +1524 -0
  75. package/dist/schemas/trade-cash-events.schemas.d.ts.map +1 -0
  76. package/dist/schemas/trade-cash-events.schemas.js +131 -0
  77. package/dist/schemas/waybills.schemas.d.ts +177 -9
  78. package/dist/schemas/waybills.schemas.d.ts.map +1 -1
  79. package/dist/schemas/waybills.schemas.js +9 -0
  80. package/package.json +1 -1
@@ -89,6 +89,7 @@ export declare const commodityDealAttributesSchema: z.ZodObject<{
89
89
  buyerName: z.ZodNullable<z.ZodString>;
90
90
  purchaseCost: z.ZodNumber;
91
91
  transportCost: z.ZodNumber;
92
+ storageCost: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
92
93
  miscellaneousCost: z.ZodNumber;
93
94
  currency: z.ZodDefault<z.ZodString>;
94
95
  status: z.ZodEnum<["draft", "in_transit", "invoiced", "paid", "cancelled"]>;
@@ -97,6 +98,8 @@ export declare const commodityDealAttributesSchema: z.ZodObject<{
97
98
  companyFeeMode: z.ZodNullable<z.ZodEnum<["percent_of_invoice", "percent_of_returns", "per_kg"]>>;
98
99
  companyFeeValue: z.ZodNullable<z.ZodNumber>;
99
100
  totalWeightKg: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
101
+ supplierId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
102
+ supplierName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
100
103
  participants: z.ZodOptional<z.ZodArray<z.ZodObject<{
101
104
  id: z.ZodOptional<z.ZodString>;
102
105
  userId: z.ZodString;
@@ -184,14 +187,15 @@ export declare const commodityDealAttributesSchema: z.ZodObject<{
184
187
  status: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced";
185
188
  createdAt: string;
186
189
  updatedAt: string;
190
+ organizationId: string;
187
191
  currency: string;
188
192
  notes: string | null;
189
193
  invoiceId: string | null;
190
194
  buyerName: string | null;
191
195
  transportCost: number;
192
- organizationId: string;
193
196
  waybillNumber: string | null;
194
197
  purchaseCost: number;
198
+ storageCost: number;
195
199
  miscellaneousCost: number;
196
200
  invoiceNumber: string | null;
197
201
  waybillId: string;
@@ -217,7 +221,9 @@ export declare const commodityDealAttributesSchema: z.ZodObject<{
217
221
  investorOwnershipPercent?: number | null | undefined;
218
222
  investorPool?: number | null | undefined;
219
223
  };
224
+ supplierId?: string | null | undefined;
220
225
  totalWeightKg?: number | null | undefined;
226
+ supplierName?: string | null | undefined;
221
227
  participants?: {
222
228
  userId: string;
223
229
  capitalContributed: number;
@@ -232,11 +238,11 @@ export declare const commodityDealAttributesSchema: z.ZodObject<{
232
238
  status: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced";
233
239
  createdAt: string;
234
240
  updatedAt: string;
241
+ organizationId: string;
235
242
  notes: string | null;
236
243
  invoiceId: string | null;
237
244
  buyerName: string | null;
238
245
  transportCost: number;
239
- organizationId: string;
240
246
  waybillNumber: string | null;
241
247
  purchaseCost: number;
242
248
  miscellaneousCost: number;
@@ -265,7 +271,10 @@ export declare const commodityDealAttributesSchema: z.ZodObject<{
265
271
  investorPool?: number | null | undefined;
266
272
  };
267
273
  currency?: string | undefined;
274
+ storageCost?: number | undefined;
275
+ supplierId?: string | null | undefined;
268
276
  totalWeightKg?: number | null | undefined;
277
+ supplierName?: string | null | undefined;
269
278
  participants?: {
270
279
  userId: string;
271
280
  capitalContributed: number;
@@ -281,11 +290,13 @@ export declare const createCommodityDealAttributesSchema: z.ZodObject<{
281
290
  waybillId: z.ZodString;
282
291
  purchaseCost: z.ZodNumber;
283
292
  transportCost: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
293
+ storageCost: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
284
294
  miscellaneousCost: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
285
295
  currency: z.ZodDefault<z.ZodOptional<z.ZodString>>;
286
296
  status: z.ZodOptional<z.ZodEnum<["draft", "in_transit", "invoiced", "paid", "cancelled"]>>;
287
297
  notes: z.ZodOptional<z.ZodString>;
288
298
  handlerUserId: z.ZodOptional<z.ZodString>;
299
+ supplierId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
289
300
  dealCapital: z.ZodOptional<z.ZodNumber>;
290
301
  companyFeeMode: z.ZodOptional<z.ZodEnum<["percent_of_invoice", "percent_of_returns", "per_kg"]>>;
291
302
  companyFeeValue: z.ZodOptional<z.ZodNumber>;
@@ -293,10 +304,12 @@ export declare const createCommodityDealAttributesSchema: z.ZodObject<{
293
304
  currency: string;
294
305
  transportCost: number;
295
306
  purchaseCost: number;
307
+ storageCost: number;
296
308
  miscellaneousCost: number;
297
309
  waybillId: string;
298
310
  status?: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced" | undefined;
299
311
  notes?: string | undefined;
312
+ supplierId?: string | null | undefined;
300
313
  handlerUserId?: string | undefined;
301
314
  dealCapital?: number | undefined;
302
315
  companyFeeMode?: "percent_of_invoice" | "percent_of_returns" | "per_kg" | undefined;
@@ -308,7 +321,9 @@ export declare const createCommodityDealAttributesSchema: z.ZodObject<{
308
321
  currency?: string | undefined;
309
322
  notes?: string | undefined;
310
323
  transportCost?: number | undefined;
324
+ storageCost?: number | undefined;
311
325
  miscellaneousCost?: number | undefined;
326
+ supplierId?: string | null | undefined;
312
327
  handlerUserId?: string | undefined;
313
328
  dealCapital?: number | undefined;
314
329
  companyFeeMode?: "percent_of_invoice" | "percent_of_returns" | "per_kg" | undefined;
@@ -317,12 +332,14 @@ export declare const createCommodityDealAttributesSchema: z.ZodObject<{
317
332
  export declare const updateCommodityDealAttributesSchema: z.ZodObject<{
318
333
  purchaseCost: z.ZodOptional<z.ZodNumber>;
319
334
  transportCost: z.ZodOptional<z.ZodNumber>;
335
+ storageCost: z.ZodOptional<z.ZodNumber>;
320
336
  miscellaneousCost: z.ZodOptional<z.ZodNumber>;
321
337
  currency: z.ZodOptional<z.ZodString>;
322
338
  status: z.ZodOptional<z.ZodEnum<["draft", "in_transit", "invoiced", "paid", "cancelled"]>>;
323
339
  notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
324
340
  invoiceId: z.ZodOptional<z.ZodString>;
325
341
  handlerUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
342
+ supplierId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
326
343
  dealCapital: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
327
344
  companyFeeMode: z.ZodOptional<z.ZodNullable<z.ZodEnum<["percent_of_invoice", "percent_of_returns", "per_kg"]>>>;
328
345
  companyFeeValue: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -335,7 +352,9 @@ export declare const updateCommodityDealAttributesSchema: z.ZodObject<{
335
352
  invoiceId?: string | undefined;
336
353
  transportCost?: number | undefined;
337
354
  purchaseCost?: number | undefined;
355
+ storageCost?: number | undefined;
338
356
  miscellaneousCost?: number | undefined;
357
+ supplierId?: string | null | undefined;
339
358
  handlerUserId?: string | null | undefined;
340
359
  dealCapital?: number | null | undefined;
341
360
  companyFeeMode?: "percent_of_invoice" | "percent_of_returns" | "per_kg" | null | undefined;
@@ -348,7 +367,9 @@ export declare const updateCommodityDealAttributesSchema: z.ZodObject<{
348
367
  invoiceId?: string | undefined;
349
368
  transportCost?: number | undefined;
350
369
  purchaseCost?: number | undefined;
370
+ storageCost?: number | undefined;
351
371
  miscellaneousCost?: number | undefined;
372
+ supplierId?: string | null | undefined;
352
373
  handlerUserId?: string | null | undefined;
353
374
  dealCapital?: number | null | undefined;
354
375
  companyFeeMode?: "percent_of_invoice" | "percent_of_returns" | "per_kg" | null | undefined;
@@ -361,11 +382,13 @@ export declare const createCommodityDealSchema: z.ZodObject<{
361
382
  waybillId: z.ZodString;
362
383
  purchaseCost: z.ZodNumber;
363
384
  transportCost: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
385
+ storageCost: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
364
386
  miscellaneousCost: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
365
387
  currency: z.ZodDefault<z.ZodOptional<z.ZodString>>;
366
388
  status: z.ZodOptional<z.ZodEnum<["draft", "in_transit", "invoiced", "paid", "cancelled"]>>;
367
389
  notes: z.ZodOptional<z.ZodString>;
368
390
  handlerUserId: z.ZodOptional<z.ZodString>;
391
+ supplierId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
369
392
  dealCapital: z.ZodOptional<z.ZodNumber>;
370
393
  companyFeeMode: z.ZodOptional<z.ZodEnum<["percent_of_invoice", "percent_of_returns", "per_kg"]>>;
371
394
  companyFeeValue: z.ZodOptional<z.ZodNumber>;
@@ -373,10 +396,12 @@ export declare const createCommodityDealSchema: z.ZodObject<{
373
396
  currency: string;
374
397
  transportCost: number;
375
398
  purchaseCost: number;
399
+ storageCost: number;
376
400
  miscellaneousCost: number;
377
401
  waybillId: string;
378
402
  status?: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced" | undefined;
379
403
  notes?: string | undefined;
404
+ supplierId?: string | null | undefined;
380
405
  handlerUserId?: string | undefined;
381
406
  dealCapital?: number | undefined;
382
407
  companyFeeMode?: "percent_of_invoice" | "percent_of_returns" | "per_kg" | undefined;
@@ -388,7 +413,9 @@ export declare const createCommodityDealSchema: z.ZodObject<{
388
413
  currency?: string | undefined;
389
414
  notes?: string | undefined;
390
415
  transportCost?: number | undefined;
416
+ storageCost?: number | undefined;
391
417
  miscellaneousCost?: number | undefined;
418
+ supplierId?: string | null | undefined;
392
419
  handlerUserId?: string | undefined;
393
420
  dealCapital?: number | undefined;
394
421
  companyFeeMode?: "percent_of_invoice" | "percent_of_returns" | "per_kg" | undefined;
@@ -400,10 +427,12 @@ export declare const createCommodityDealSchema: z.ZodObject<{
400
427
  currency: string;
401
428
  transportCost: number;
402
429
  purchaseCost: number;
430
+ storageCost: number;
403
431
  miscellaneousCost: number;
404
432
  waybillId: string;
405
433
  status?: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced" | undefined;
406
434
  notes?: string | undefined;
435
+ supplierId?: string | null | undefined;
407
436
  handlerUserId?: string | undefined;
408
437
  dealCapital?: number | undefined;
409
438
  companyFeeMode?: "percent_of_invoice" | "percent_of_returns" | "per_kg" | undefined;
@@ -418,7 +447,9 @@ export declare const createCommodityDealSchema: z.ZodObject<{
418
447
  currency?: string | undefined;
419
448
  notes?: string | undefined;
420
449
  transportCost?: number | undefined;
450
+ storageCost?: number | undefined;
421
451
  miscellaneousCost?: number | undefined;
452
+ supplierId?: string | null | undefined;
422
453
  handlerUserId?: string | undefined;
423
454
  dealCapital?: number | undefined;
424
455
  companyFeeMode?: "percent_of_invoice" | "percent_of_returns" | "per_kg" | undefined;
@@ -431,12 +462,14 @@ export declare const updateCommodityDealSchema: z.ZodObject<{
431
462
  attributes: z.ZodObject<{
432
463
  purchaseCost: z.ZodOptional<z.ZodNumber>;
433
464
  transportCost: z.ZodOptional<z.ZodNumber>;
465
+ storageCost: z.ZodOptional<z.ZodNumber>;
434
466
  miscellaneousCost: z.ZodOptional<z.ZodNumber>;
435
467
  currency: z.ZodOptional<z.ZodString>;
436
468
  status: z.ZodOptional<z.ZodEnum<["draft", "in_transit", "invoiced", "paid", "cancelled"]>>;
437
469
  notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
438
470
  invoiceId: z.ZodOptional<z.ZodString>;
439
471
  handlerUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
472
+ supplierId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
440
473
  dealCapital: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
441
474
  companyFeeMode: z.ZodOptional<z.ZodNullable<z.ZodEnum<["percent_of_invoice", "percent_of_returns", "per_kg"]>>>;
442
475
  companyFeeValue: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -449,7 +482,9 @@ export declare const updateCommodityDealSchema: z.ZodObject<{
449
482
  invoiceId?: string | undefined;
450
483
  transportCost?: number | undefined;
451
484
  purchaseCost?: number | undefined;
485
+ storageCost?: number | undefined;
452
486
  miscellaneousCost?: number | undefined;
487
+ supplierId?: string | null | undefined;
453
488
  handlerUserId?: string | null | undefined;
454
489
  dealCapital?: number | null | undefined;
455
490
  companyFeeMode?: "percent_of_invoice" | "percent_of_returns" | "per_kg" | null | undefined;
@@ -462,7 +497,9 @@ export declare const updateCommodityDealSchema: z.ZodObject<{
462
497
  invoiceId?: string | undefined;
463
498
  transportCost?: number | undefined;
464
499
  purchaseCost?: number | undefined;
500
+ storageCost?: number | undefined;
465
501
  miscellaneousCost?: number | undefined;
502
+ supplierId?: string | null | undefined;
466
503
  handlerUserId?: string | null | undefined;
467
504
  dealCapital?: number | null | undefined;
468
505
  companyFeeMode?: "percent_of_invoice" | "percent_of_returns" | "per_kg" | null | undefined;
@@ -478,7 +515,9 @@ export declare const updateCommodityDealSchema: z.ZodObject<{
478
515
  invoiceId?: string | undefined;
479
516
  transportCost?: number | undefined;
480
517
  purchaseCost?: number | undefined;
518
+ storageCost?: number | undefined;
481
519
  miscellaneousCost?: number | undefined;
520
+ supplierId?: string | null | undefined;
482
521
  handlerUserId?: string | null | undefined;
483
522
  dealCapital?: number | null | undefined;
484
523
  companyFeeMode?: "percent_of_invoice" | "percent_of_returns" | "per_kg" | null | undefined;
@@ -495,7 +534,9 @@ export declare const updateCommodityDealSchema: z.ZodObject<{
495
534
  invoiceId?: string | undefined;
496
535
  transportCost?: number | undefined;
497
536
  purchaseCost?: number | undefined;
537
+ storageCost?: number | undefined;
498
538
  miscellaneousCost?: number | undefined;
539
+ supplierId?: string | null | undefined;
499
540
  handlerUserId?: string | null | undefined;
500
541
  dealCapital?: number | null | undefined;
501
542
  companyFeeMode?: "percent_of_invoice" | "percent_of_returns" | "per_kg" | null | undefined;
@@ -582,6 +623,7 @@ export declare const commodityDealResourceSchema: z.ZodObject<{
582
623
  buyerName: z.ZodNullable<z.ZodString>;
583
624
  purchaseCost: z.ZodNumber;
584
625
  transportCost: z.ZodNumber;
626
+ storageCost: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
585
627
  miscellaneousCost: z.ZodNumber;
586
628
  currency: z.ZodDefault<z.ZodString>;
587
629
  status: z.ZodEnum<["draft", "in_transit", "invoiced", "paid", "cancelled"]>;
@@ -590,6 +632,8 @@ export declare const commodityDealResourceSchema: z.ZodObject<{
590
632
  companyFeeMode: z.ZodNullable<z.ZodEnum<["percent_of_invoice", "percent_of_returns", "per_kg"]>>;
591
633
  companyFeeValue: z.ZodNullable<z.ZodNumber>;
592
634
  totalWeightKg: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
635
+ supplierId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
636
+ supplierName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
593
637
  participants: z.ZodOptional<z.ZodArray<z.ZodObject<{
594
638
  id: z.ZodOptional<z.ZodString>;
595
639
  userId: z.ZodString;
@@ -677,14 +721,15 @@ export declare const commodityDealResourceSchema: z.ZodObject<{
677
721
  status: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced";
678
722
  createdAt: string;
679
723
  updatedAt: string;
724
+ organizationId: string;
680
725
  currency: string;
681
726
  notes: string | null;
682
727
  invoiceId: string | null;
683
728
  buyerName: string | null;
684
729
  transportCost: number;
685
- organizationId: string;
686
730
  waybillNumber: string | null;
687
731
  purchaseCost: number;
732
+ storageCost: number;
688
733
  miscellaneousCost: number;
689
734
  invoiceNumber: string | null;
690
735
  waybillId: string;
@@ -710,7 +755,9 @@ export declare const commodityDealResourceSchema: z.ZodObject<{
710
755
  investorOwnershipPercent?: number | null | undefined;
711
756
  investorPool?: number | null | undefined;
712
757
  };
758
+ supplierId?: string | null | undefined;
713
759
  totalWeightKg?: number | null | undefined;
760
+ supplierName?: string | null | undefined;
714
761
  participants?: {
715
762
  userId: string;
716
763
  capitalContributed: number;
@@ -725,11 +772,11 @@ export declare const commodityDealResourceSchema: z.ZodObject<{
725
772
  status: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced";
726
773
  createdAt: string;
727
774
  updatedAt: string;
775
+ organizationId: string;
728
776
  notes: string | null;
729
777
  invoiceId: string | null;
730
778
  buyerName: string | null;
731
779
  transportCost: number;
732
- organizationId: string;
733
780
  waybillNumber: string | null;
734
781
  purchaseCost: number;
735
782
  miscellaneousCost: number;
@@ -758,7 +805,10 @@ export declare const commodityDealResourceSchema: z.ZodObject<{
758
805
  investorPool?: number | null | undefined;
759
806
  };
760
807
  currency?: string | undefined;
808
+ storageCost?: number | undefined;
809
+ supplierId?: string | null | undefined;
761
810
  totalWeightKg?: number | null | undefined;
811
+ supplierName?: string | null | undefined;
762
812
  participants?: {
763
813
  userId: string;
764
814
  capitalContributed: number;
@@ -780,14 +830,15 @@ export declare const commodityDealResourceSchema: z.ZodObject<{
780
830
  status: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced";
781
831
  createdAt: string;
782
832
  updatedAt: string;
833
+ organizationId: string;
783
834
  currency: string;
784
835
  notes: string | null;
785
836
  invoiceId: string | null;
786
837
  buyerName: string | null;
787
838
  transportCost: number;
788
- organizationId: string;
789
839
  waybillNumber: string | null;
790
840
  purchaseCost: number;
841
+ storageCost: number;
791
842
  miscellaneousCost: number;
792
843
  invoiceNumber: string | null;
793
844
  waybillId: string;
@@ -813,7 +864,9 @@ export declare const commodityDealResourceSchema: z.ZodObject<{
813
864
  investorOwnershipPercent?: number | null | undefined;
814
865
  investorPool?: number | null | undefined;
815
866
  };
867
+ supplierId?: string | null | undefined;
816
868
  totalWeightKg?: number | null | undefined;
869
+ supplierName?: string | null | undefined;
817
870
  participants?: {
818
871
  userId: string;
819
872
  capitalContributed: number;
@@ -835,11 +888,11 @@ export declare const commodityDealResourceSchema: z.ZodObject<{
835
888
  status: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced";
836
889
  createdAt: string;
837
890
  updatedAt: string;
891
+ organizationId: string;
838
892
  notes: string | null;
839
893
  invoiceId: string | null;
840
894
  buyerName: string | null;
841
895
  transportCost: number;
842
- organizationId: string;
843
896
  waybillNumber: string | null;
844
897
  purchaseCost: number;
845
898
  miscellaneousCost: number;
@@ -868,7 +921,10 @@ export declare const commodityDealResourceSchema: z.ZodObject<{
868
921
  investorPool?: number | null | undefined;
869
922
  };
870
923
  currency?: string | undefined;
924
+ storageCost?: number | undefined;
925
+ supplierId?: string | null | undefined;
871
926
  totalWeightKg?: number | null | undefined;
927
+ supplierName?: string | null | undefined;
872
928
  participants?: {
873
929
  userId: string;
874
930
  capitalContributed: number;
@@ -898,6 +954,7 @@ export declare const commodityDealResponseSchema: z.ZodObject<{
898
954
  buyerName: z.ZodNullable<z.ZodString>;
899
955
  purchaseCost: z.ZodNumber;
900
956
  transportCost: z.ZodNumber;
957
+ storageCost: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
901
958
  miscellaneousCost: z.ZodNumber;
902
959
  currency: z.ZodDefault<z.ZodString>;
903
960
  status: z.ZodEnum<["draft", "in_transit", "invoiced", "paid", "cancelled"]>;
@@ -906,6 +963,8 @@ export declare const commodityDealResponseSchema: z.ZodObject<{
906
963
  companyFeeMode: z.ZodNullable<z.ZodEnum<["percent_of_invoice", "percent_of_returns", "per_kg"]>>;
907
964
  companyFeeValue: z.ZodNullable<z.ZodNumber>;
908
965
  totalWeightKg: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
966
+ supplierId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
967
+ supplierName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
909
968
  participants: z.ZodOptional<z.ZodArray<z.ZodObject<{
910
969
  id: z.ZodOptional<z.ZodString>;
911
970
  userId: z.ZodString;
@@ -993,14 +1052,15 @@ export declare const commodityDealResponseSchema: z.ZodObject<{
993
1052
  status: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced";
994
1053
  createdAt: string;
995
1054
  updatedAt: string;
1055
+ organizationId: string;
996
1056
  currency: string;
997
1057
  notes: string | null;
998
1058
  invoiceId: string | null;
999
1059
  buyerName: string | null;
1000
1060
  transportCost: number;
1001
- organizationId: string;
1002
1061
  waybillNumber: string | null;
1003
1062
  purchaseCost: number;
1063
+ storageCost: number;
1004
1064
  miscellaneousCost: number;
1005
1065
  invoiceNumber: string | null;
1006
1066
  waybillId: string;
@@ -1026,7 +1086,9 @@ export declare const commodityDealResponseSchema: z.ZodObject<{
1026
1086
  investorOwnershipPercent?: number | null | undefined;
1027
1087
  investorPool?: number | null | undefined;
1028
1088
  };
1089
+ supplierId?: string | null | undefined;
1029
1090
  totalWeightKg?: number | null | undefined;
1091
+ supplierName?: string | null | undefined;
1030
1092
  participants?: {
1031
1093
  userId: string;
1032
1094
  capitalContributed: number;
@@ -1041,11 +1103,11 @@ export declare const commodityDealResponseSchema: z.ZodObject<{
1041
1103
  status: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced";
1042
1104
  createdAt: string;
1043
1105
  updatedAt: string;
1106
+ organizationId: string;
1044
1107
  notes: string | null;
1045
1108
  invoiceId: string | null;
1046
1109
  buyerName: string | null;
1047
1110
  transportCost: number;
1048
- organizationId: string;
1049
1111
  waybillNumber: string | null;
1050
1112
  purchaseCost: number;
1051
1113
  miscellaneousCost: number;
@@ -1074,7 +1136,10 @@ export declare const commodityDealResponseSchema: z.ZodObject<{
1074
1136
  investorPool?: number | null | undefined;
1075
1137
  };
1076
1138
  currency?: string | undefined;
1139
+ storageCost?: number | undefined;
1140
+ supplierId?: string | null | undefined;
1077
1141
  totalWeightKg?: number | null | undefined;
1142
+ supplierName?: string | null | undefined;
1078
1143
  participants?: {
1079
1144
  userId: string;
1080
1145
  capitalContributed: number;
@@ -1096,14 +1161,15 @@ export declare const commodityDealResponseSchema: z.ZodObject<{
1096
1161
  status: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced";
1097
1162
  createdAt: string;
1098
1163
  updatedAt: string;
1164
+ organizationId: string;
1099
1165
  currency: string;
1100
1166
  notes: string | null;
1101
1167
  invoiceId: string | null;
1102
1168
  buyerName: string | null;
1103
1169
  transportCost: number;
1104
- organizationId: string;
1105
1170
  waybillNumber: string | null;
1106
1171
  purchaseCost: number;
1172
+ storageCost: number;
1107
1173
  miscellaneousCost: number;
1108
1174
  invoiceNumber: string | null;
1109
1175
  waybillId: string;
@@ -1129,7 +1195,9 @@ export declare const commodityDealResponseSchema: z.ZodObject<{
1129
1195
  investorOwnershipPercent?: number | null | undefined;
1130
1196
  investorPool?: number | null | undefined;
1131
1197
  };
1198
+ supplierId?: string | null | undefined;
1132
1199
  totalWeightKg?: number | null | undefined;
1200
+ supplierName?: string | null | undefined;
1133
1201
  participants?: {
1134
1202
  userId: string;
1135
1203
  capitalContributed: number;
@@ -1151,11 +1219,11 @@ export declare const commodityDealResponseSchema: z.ZodObject<{
1151
1219
  status: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced";
1152
1220
  createdAt: string;
1153
1221
  updatedAt: string;
1222
+ organizationId: string;
1154
1223
  notes: string | null;
1155
1224
  invoiceId: string | null;
1156
1225
  buyerName: string | null;
1157
1226
  transportCost: number;
1158
- organizationId: string;
1159
1227
  waybillNumber: string | null;
1160
1228
  purchaseCost: number;
1161
1229
  miscellaneousCost: number;
@@ -1184,7 +1252,10 @@ export declare const commodityDealResponseSchema: z.ZodObject<{
1184
1252
  investorPool?: number | null | undefined;
1185
1253
  };
1186
1254
  currency?: string | undefined;
1255
+ storageCost?: number | undefined;
1256
+ supplierId?: string | null | undefined;
1187
1257
  totalWeightKg?: number | null | undefined;
1258
+ supplierName?: string | null | undefined;
1188
1259
  participants?: {
1189
1260
  userId: string;
1190
1261
  capitalContributed: number;
@@ -1232,14 +1303,15 @@ export declare const commodityDealResponseSchema: z.ZodObject<{
1232
1303
  status: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced";
1233
1304
  createdAt: string;
1234
1305
  updatedAt: string;
1306
+ organizationId: string;
1235
1307
  currency: string;
1236
1308
  notes: string | null;
1237
1309
  invoiceId: string | null;
1238
1310
  buyerName: string | null;
1239
1311
  transportCost: number;
1240
- organizationId: string;
1241
1312
  waybillNumber: string | null;
1242
1313
  purchaseCost: number;
1314
+ storageCost: number;
1243
1315
  miscellaneousCost: number;
1244
1316
  invoiceNumber: string | null;
1245
1317
  waybillId: string;
@@ -1265,7 +1337,9 @@ export declare const commodityDealResponseSchema: z.ZodObject<{
1265
1337
  investorOwnershipPercent?: number | null | undefined;
1266
1338
  investorPool?: number | null | undefined;
1267
1339
  };
1340
+ supplierId?: string | null | undefined;
1268
1341
  totalWeightKg?: number | null | undefined;
1342
+ supplierName?: string | null | undefined;
1269
1343
  participants?: {
1270
1344
  userId: string;
1271
1345
  capitalContributed: number;
@@ -1299,11 +1373,11 @@ export declare const commodityDealResponseSchema: z.ZodObject<{
1299
1373
  status: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced";
1300
1374
  createdAt: string;
1301
1375
  updatedAt: string;
1376
+ organizationId: string;
1302
1377
  notes: string | null;
1303
1378
  invoiceId: string | null;
1304
1379
  buyerName: string | null;
1305
1380
  transportCost: number;
1306
- organizationId: string;
1307
1381
  waybillNumber: string | null;
1308
1382
  purchaseCost: number;
1309
1383
  miscellaneousCost: number;
@@ -1332,7 +1406,10 @@ export declare const commodityDealResponseSchema: z.ZodObject<{
1332
1406
  investorPool?: number | null | undefined;
1333
1407
  };
1334
1408
  currency?: string | undefined;
1409
+ storageCost?: number | undefined;
1410
+ supplierId?: string | null | undefined;
1335
1411
  totalWeightKg?: number | null | undefined;
1412
+ supplierName?: string | null | undefined;
1336
1413
  participants?: {
1337
1414
  userId: string;
1338
1415
  capitalContributed: number;
@@ -1373,6 +1450,7 @@ export declare const commodityDealListResponseSchema: z.ZodObject<{
1373
1450
  buyerName: z.ZodNullable<z.ZodString>;
1374
1451
  purchaseCost: z.ZodNumber;
1375
1452
  transportCost: z.ZodNumber;
1453
+ storageCost: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1376
1454
  miscellaneousCost: z.ZodNumber;
1377
1455
  currency: z.ZodDefault<z.ZodString>;
1378
1456
  status: z.ZodEnum<["draft", "in_transit", "invoiced", "paid", "cancelled"]>;
@@ -1381,6 +1459,8 @@ export declare const commodityDealListResponseSchema: z.ZodObject<{
1381
1459
  companyFeeMode: z.ZodNullable<z.ZodEnum<["percent_of_invoice", "percent_of_returns", "per_kg"]>>;
1382
1460
  companyFeeValue: z.ZodNullable<z.ZodNumber>;
1383
1461
  totalWeightKg: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1462
+ supplierId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1463
+ supplierName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1384
1464
  participants: z.ZodOptional<z.ZodArray<z.ZodObject<{
1385
1465
  id: z.ZodOptional<z.ZodString>;
1386
1466
  userId: z.ZodString;
@@ -1468,14 +1548,15 @@ export declare const commodityDealListResponseSchema: z.ZodObject<{
1468
1548
  status: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced";
1469
1549
  createdAt: string;
1470
1550
  updatedAt: string;
1551
+ organizationId: string;
1471
1552
  currency: string;
1472
1553
  notes: string | null;
1473
1554
  invoiceId: string | null;
1474
1555
  buyerName: string | null;
1475
1556
  transportCost: number;
1476
- organizationId: string;
1477
1557
  waybillNumber: string | null;
1478
1558
  purchaseCost: number;
1559
+ storageCost: number;
1479
1560
  miscellaneousCost: number;
1480
1561
  invoiceNumber: string | null;
1481
1562
  waybillId: string;
@@ -1501,7 +1582,9 @@ export declare const commodityDealListResponseSchema: z.ZodObject<{
1501
1582
  investorOwnershipPercent?: number | null | undefined;
1502
1583
  investorPool?: number | null | undefined;
1503
1584
  };
1585
+ supplierId?: string | null | undefined;
1504
1586
  totalWeightKg?: number | null | undefined;
1587
+ supplierName?: string | null | undefined;
1505
1588
  participants?: {
1506
1589
  userId: string;
1507
1590
  capitalContributed: number;
@@ -1516,11 +1599,11 @@ export declare const commodityDealListResponseSchema: z.ZodObject<{
1516
1599
  status: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced";
1517
1600
  createdAt: string;
1518
1601
  updatedAt: string;
1602
+ organizationId: string;
1519
1603
  notes: string | null;
1520
1604
  invoiceId: string | null;
1521
1605
  buyerName: string | null;
1522
1606
  transportCost: number;
1523
- organizationId: string;
1524
1607
  waybillNumber: string | null;
1525
1608
  purchaseCost: number;
1526
1609
  miscellaneousCost: number;
@@ -1549,7 +1632,10 @@ export declare const commodityDealListResponseSchema: z.ZodObject<{
1549
1632
  investorPool?: number | null | undefined;
1550
1633
  };
1551
1634
  currency?: string | undefined;
1635
+ storageCost?: number | undefined;
1636
+ supplierId?: string | null | undefined;
1552
1637
  totalWeightKg?: number | null | undefined;
1638
+ supplierName?: string | null | undefined;
1553
1639
  participants?: {
1554
1640
  userId: string;
1555
1641
  capitalContributed: number;
@@ -1571,14 +1657,15 @@ export declare const commodityDealListResponseSchema: z.ZodObject<{
1571
1657
  status: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced";
1572
1658
  createdAt: string;
1573
1659
  updatedAt: string;
1660
+ organizationId: string;
1574
1661
  currency: string;
1575
1662
  notes: string | null;
1576
1663
  invoiceId: string | null;
1577
1664
  buyerName: string | null;
1578
1665
  transportCost: number;
1579
- organizationId: string;
1580
1666
  waybillNumber: string | null;
1581
1667
  purchaseCost: number;
1668
+ storageCost: number;
1582
1669
  miscellaneousCost: number;
1583
1670
  invoiceNumber: string | null;
1584
1671
  waybillId: string;
@@ -1604,7 +1691,9 @@ export declare const commodityDealListResponseSchema: z.ZodObject<{
1604
1691
  investorOwnershipPercent?: number | null | undefined;
1605
1692
  investorPool?: number | null | undefined;
1606
1693
  };
1694
+ supplierId?: string | null | undefined;
1607
1695
  totalWeightKg?: number | null | undefined;
1696
+ supplierName?: string | null | undefined;
1608
1697
  participants?: {
1609
1698
  userId: string;
1610
1699
  capitalContributed: number;
@@ -1626,11 +1715,11 @@ export declare const commodityDealListResponseSchema: z.ZodObject<{
1626
1715
  status: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced";
1627
1716
  createdAt: string;
1628
1717
  updatedAt: string;
1718
+ organizationId: string;
1629
1719
  notes: string | null;
1630
1720
  invoiceId: string | null;
1631
1721
  buyerName: string | null;
1632
1722
  transportCost: number;
1633
- organizationId: string;
1634
1723
  waybillNumber: string | null;
1635
1724
  purchaseCost: number;
1636
1725
  miscellaneousCost: number;
@@ -1659,7 +1748,10 @@ export declare const commodityDealListResponseSchema: z.ZodObject<{
1659
1748
  investorPool?: number | null | undefined;
1660
1749
  };
1661
1750
  currency?: string | undefined;
1751
+ storageCost?: number | undefined;
1752
+ supplierId?: string | null | undefined;
1662
1753
  totalWeightKg?: number | null | undefined;
1754
+ supplierName?: string | null | undefined;
1663
1755
  participants?: {
1664
1756
  userId: string;
1665
1757
  capitalContributed: number;
@@ -1707,14 +1799,15 @@ export declare const commodityDealListResponseSchema: z.ZodObject<{
1707
1799
  status: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced";
1708
1800
  createdAt: string;
1709
1801
  updatedAt: string;
1802
+ organizationId: string;
1710
1803
  currency: string;
1711
1804
  notes: string | null;
1712
1805
  invoiceId: string | null;
1713
1806
  buyerName: string | null;
1714
1807
  transportCost: number;
1715
- organizationId: string;
1716
1808
  waybillNumber: string | null;
1717
1809
  purchaseCost: number;
1810
+ storageCost: number;
1718
1811
  miscellaneousCost: number;
1719
1812
  invoiceNumber: string | null;
1720
1813
  waybillId: string;
@@ -1740,7 +1833,9 @@ export declare const commodityDealListResponseSchema: z.ZodObject<{
1740
1833
  investorOwnershipPercent?: number | null | undefined;
1741
1834
  investorPool?: number | null | undefined;
1742
1835
  };
1836
+ supplierId?: string | null | undefined;
1743
1837
  totalWeightKg?: number | null | undefined;
1838
+ supplierName?: string | null | undefined;
1744
1839
  participants?: {
1745
1840
  userId: string;
1746
1841
  capitalContributed: number;
@@ -1774,11 +1869,11 @@ export declare const commodityDealListResponseSchema: z.ZodObject<{
1774
1869
  status: "cancelled" | "paid" | "draft" | "in_transit" | "invoiced";
1775
1870
  createdAt: string;
1776
1871
  updatedAt: string;
1872
+ organizationId: string;
1777
1873
  notes: string | null;
1778
1874
  invoiceId: string | null;
1779
1875
  buyerName: string | null;
1780
1876
  transportCost: number;
1781
- organizationId: string;
1782
1877
  waybillNumber: string | null;
1783
1878
  purchaseCost: number;
1784
1879
  miscellaneousCost: number;
@@ -1807,7 +1902,10 @@ export declare const commodityDealListResponseSchema: z.ZodObject<{
1807
1902
  investorPool?: number | null | undefined;
1808
1903
  };
1809
1904
  currency?: string | undefined;
1905
+ storageCost?: number | undefined;
1906
+ supplierId?: string | null | undefined;
1810
1907
  totalWeightKg?: number | null | undefined;
1908
+ supplierName?: string | null | undefined;
1811
1909
  participants?: {
1812
1910
  userId: string;
1813
1911
  capitalContributed: number;