@deepintel-ltd/farmpro-contracts 1.22.3 → 1.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -0
- package/dist/routes/commodity-deals.routes.d.ts +175 -0
- package/dist/routes/commodity-deals.routes.d.ts.map +1 -1
- package/dist/routes/index.d.ts +9 -0
- package/dist/routes/index.d.ts.map +1 -1
- package/dist/routes/index.js +6 -0
- package/dist/routes/invoices.routes.d.ts +189 -42
- package/dist/routes/invoices.routes.d.ts.map +1 -1
- package/dist/routes/livestock-groups.routes.d.ts +308 -0
- package/dist/routes/livestock-groups.routes.d.ts.map +1 -1
- package/dist/routes/organization-capabilities.routes.d.ts +1671 -0
- package/dist/routes/organization-capabilities.routes.d.ts.map +1 -0
- package/dist/routes/organization-capabilities.routes.js +74 -0
- package/dist/routes/purchase-orders.routes.d.ts +2061 -0
- package/dist/routes/purchase-orders.routes.d.ts.map +1 -0
- package/dist/routes/purchase-orders.routes.js +55 -0
- package/dist/routes/staff.routes.d.ts +84 -0
- package/dist/routes/staff.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 +210 -0
- package/dist/routes/waybills.routes.d.ts.map +1 -1
- package/dist/schemas/commodity-deals.schemas.d.ts +98 -0
- package/dist/schemas/commodity-deals.schemas.d.ts.map +1 -1
- package/dist/schemas/commodity-deals.schemas.js +7 -0
- package/dist/schemas/invoices.schemas.d.ts +144 -30
- package/dist/schemas/invoices.schemas.d.ts.map +1 -1
- package/dist/schemas/invoices.schemas.js +8 -2
- package/dist/schemas/livestock-groups.schemas.d.ts +302 -0
- package/dist/schemas/livestock-groups.schemas.d.ts.map +1 -1
- package/dist/schemas/livestock-groups.schemas.js +22 -0
- package/dist/schemas/organization-capabilities.schemas.d.ts +355 -0
- package/dist/schemas/organization-capabilities.schemas.d.ts.map +1 -0
- package/dist/schemas/organization-capabilities.schemas.js +19 -0
- package/dist/schemas/purchase-orders.schemas.d.ts +1031 -0
- package/dist/schemas/purchase-orders.schemas.d.ts.map +1 -0
- package/dist/schemas/purchase-orders.schemas.js +49 -0
- package/dist/schemas/staff.schemas.d.ts +76 -0
- package/dist/schemas/staff.schemas.d.ts.map +1 -1
- package/dist/schemas/staff.schemas.js +6 -0
- package/dist/schemas/trade-cash-events.schemas.d.ts +1524 -0
- package/dist/schemas/trade-cash-events.schemas.d.ts.map +1 -0
- package/dist/schemas/trade-cash-events.schemas.js +131 -0
- package/dist/schemas/waybills.schemas.d.ts +168 -0
- package/dist/schemas/waybills.schemas.d.ts.map +1 -1
- package/dist/schemas/waybills.schemas.js +9 -0
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"waybills.routes.d.ts","sourceRoot":"","sources":["../../src/routes/waybills.routes.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAexB,eAAO,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"waybills.routes.d.ts","sourceRoot":"","sources":["../../src/routes/waybills.routes.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAexB,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6FzB,CAAC"}
|
|
@@ -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;
|
|
@@ -192,6 +195,7 @@ export declare const commodityDealAttributesSchema: z.ZodObject<{
|
|
|
192
195
|
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;
|
|
@@ -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;
|
|
@@ -685,6 +729,7 @@ export declare const commodityDealResourceSchema: z.ZodObject<{
|
|
|
685
729
|
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;
|
|
@@ -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;
|
|
@@ -788,6 +838,7 @@ export declare const commodityDealResourceSchema: z.ZodObject<{
|
|
|
788
838
|
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;
|
|
@@ -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;
|
|
@@ -1001,6 +1060,7 @@ export declare const commodityDealResponseSchema: z.ZodObject<{
|
|
|
1001
1060
|
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;
|
|
@@ -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;
|
|
@@ -1104,6 +1169,7 @@ export declare const commodityDealResponseSchema: z.ZodObject<{
|
|
|
1104
1169
|
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;
|
|
@@ -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;
|
|
@@ -1240,6 +1311,7 @@ export declare const commodityDealResponseSchema: z.ZodObject<{
|
|
|
1240
1311
|
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;
|
|
@@ -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;
|
|
@@ -1476,6 +1556,7 @@ export declare const commodityDealListResponseSchema: z.ZodObject<{
|
|
|
1476
1556
|
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;
|
|
@@ -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;
|
|
@@ -1579,6 +1665,7 @@ export declare const commodityDealListResponseSchema: z.ZodObject<{
|
|
|
1579
1665
|
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;
|
|
@@ -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;
|
|
@@ -1715,6 +1807,7 @@ export declare const commodityDealListResponseSchema: z.ZodObject<{
|
|
|
1715
1807
|
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;
|
|
@@ -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;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commodity-deals.schemas.d.ts","sourceRoot":"","sources":["../../src/schemas/commodity-deals.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,eAAO,MAAM,yBAAyB,qEAMpC,CAAC;AAEH,eAAO,MAAM,oBAAoB,mEAI/B,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;EAQrC,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;;;;;;;;IAUtC,iDAAiD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQjD,CAAC;AAEH,eAAO,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AAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AACrF,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAC1E,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAClD,OAAO,oCAAoC,CAC5C,CAAC"}
|
|
@@ -51,6 +51,7 @@ export const commodityDealAttributesSchema = z
|
|
|
51
51
|
buyerName: z.string().nullable(),
|
|
52
52
|
purchaseCost: z.number().nonnegative(),
|
|
53
53
|
transportCost: z.number().nonnegative(),
|
|
54
|
+
storageCost: z.number().nonnegative().optional().default(0),
|
|
54
55
|
miscellaneousCost: z.number().nonnegative(),
|
|
55
56
|
currency: z.string().length(3).default('NGN'),
|
|
56
57
|
status: commodityDealStatusSchema,
|
|
@@ -59,6 +60,8 @@ export const commodityDealAttributesSchema = z
|
|
|
59
60
|
companyFeeMode: companyFeeModeSchema.nullable(),
|
|
60
61
|
companyFeeValue: z.number().nonnegative().nullable(),
|
|
61
62
|
totalWeightKg: z.number().nullable().optional(),
|
|
63
|
+
supplierId: z.string().uuid().nullable().optional(),
|
|
64
|
+
supplierName: z.string().nullable().optional(),
|
|
62
65
|
participants: z.array(dealParticipantShareSchema).optional(),
|
|
63
66
|
/** When staff commission was marked paid out to staff (null = unpaid / N/A). */
|
|
64
67
|
staffCommissionPaidAt: z.string().datetime().nullable().optional(),
|
|
@@ -69,11 +72,13 @@ export const createCommodityDealAttributesSchema = z.object({
|
|
|
69
72
|
waybillId: z.string().uuid(),
|
|
70
73
|
purchaseCost: z.number().nonnegative(),
|
|
71
74
|
transportCost: z.number().nonnegative().optional().default(0),
|
|
75
|
+
storageCost: z.number().nonnegative().optional().default(0),
|
|
72
76
|
miscellaneousCost: z.number().nonnegative().optional().default(0),
|
|
73
77
|
currency: z.string().length(3).optional().default('NGN'),
|
|
74
78
|
status: commodityDealStatusSchema.optional(),
|
|
75
79
|
notes: z.string().optional(),
|
|
76
80
|
handlerUserId: z.string().uuid().optional(),
|
|
81
|
+
supplierId: z.string().uuid().optional().nullable(),
|
|
77
82
|
dealCapital: z.number().positive().optional(),
|
|
78
83
|
companyFeeMode: companyFeeModeSchema.optional(),
|
|
79
84
|
companyFeeValue: z.number().nonnegative().optional(),
|
|
@@ -81,12 +86,14 @@ export const createCommodityDealAttributesSchema = z.object({
|
|
|
81
86
|
export const updateCommodityDealAttributesSchema = z.object({
|
|
82
87
|
purchaseCost: z.number().nonnegative().optional(),
|
|
83
88
|
transportCost: z.number().nonnegative().optional(),
|
|
89
|
+
storageCost: z.number().nonnegative().optional(),
|
|
84
90
|
miscellaneousCost: z.number().nonnegative().optional(),
|
|
85
91
|
currency: z.string().length(3).optional(),
|
|
86
92
|
status: commodityDealStatusSchema.optional(),
|
|
87
93
|
notes: z.string().nullable().optional(),
|
|
88
94
|
invoiceId: z.string().uuid().optional(),
|
|
89
95
|
handlerUserId: z.string().uuid().nullable().optional(),
|
|
96
|
+
supplierId: z.string().uuid().nullable().optional(),
|
|
90
97
|
dealCapital: z.number().positive().nullable().optional(),
|
|
91
98
|
companyFeeMode: companyFeeModeSchema.nullable().optional(),
|
|
92
99
|
companyFeeValue: z.number().nonnegative().nullable().optional(),
|