@deepintel-ltd/farmpro-contracts 1.23.1 → 1.24.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 +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/routes/commodity-deals.routes.d.ts +1339 -0
- package/dist/routes/commodity-deals.routes.d.ts.map +1 -1
- package/dist/routes/commodity-deals.routes.js +49 -1
- package/dist/routes/finance.routes.d.ts +68 -68
- package/dist/routes/index.d.ts +2 -0
- package/dist/routes/index.d.ts.map +1 -1
- package/dist/routes/index.js +2 -0
- package/dist/routes/inventory.routes.d.ts +584 -0
- package/dist/routes/inventory.routes.d.ts.map +1 -1
- package/dist/routes/inventory.routes.js +26 -1
- package/dist/routes/live-monitor.routes.d.ts +15 -10
- package/dist/routes/live-monitor.routes.d.ts.map +1 -1
- package/dist/routes/monitoring-visualization.routes.d.ts +3 -0
- package/dist/routes/monitoring-visualization.routes.d.ts.map +1 -1
- package/dist/routes/poultry.routes.d.ts +3318 -0
- package/dist/routes/poultry.routes.d.ts.map +1 -0
- package/dist/routes/poultry.routes.js +195 -0
- package/dist/routes/team-payments.routes.d.ts +42 -42
- package/dist/routes/trade-cash-events.routes.d.ts +20 -20
- package/dist/routes/waybills.routes.d.ts +14 -0
- package/dist/routes/waybills.routes.d.ts.map +1 -1
- package/dist/schemas/commodity-deals.schemas.d.ts +484 -0
- package/dist/schemas/commodity-deals.schemas.d.ts.map +1 -1
- package/dist/schemas/commodity-deals.schemas.js +34 -0
- package/dist/schemas/finance.schemas.d.ts +78 -78
- package/dist/schemas/inventory.schemas.d.ts +122 -0
- package/dist/schemas/inventory.schemas.d.ts.map +1 -1
- package/dist/schemas/inventory.schemas.js +35 -0
- package/dist/schemas/live-monitor.schemas.d.ts +24 -16
- package/dist/schemas/live-monitor.schemas.d.ts.map +1 -1
- package/dist/schemas/live-monitor.schemas.js +3 -2
- package/dist/schemas/monitoring-visualization.schemas.d.ts +64 -0
- package/dist/schemas/monitoring-visualization.schemas.d.ts.map +1 -1
- package/dist/schemas/monitoring-visualization.schemas.js +25 -1
- package/dist/schemas/team-payments.schemas.d.ts +30 -30
- package/dist/schemas/trade-cash-events.schemas.d.ts +24 -24
- package/dist/schemas/waybills.schemas.d.ts +16 -0
- package/dist/schemas/waybills.schemas.d.ts.map +1 -1
- package/dist/schemas/waybills.schemas.js +1 -0
- package/package.json +1 -1
|
@@ -202,6 +202,7 @@ export declare const createWaybillAttributesSchema: z.ZodObject<{
|
|
|
202
202
|
transportCost: z.ZodOptional<z.ZodNumber>;
|
|
203
203
|
storageCost: z.ZodOptional<z.ZodNumber>;
|
|
204
204
|
miscellaneousCost: z.ZodOptional<z.ZodNumber>;
|
|
205
|
+
supplierId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
205
206
|
}, "strip", z.ZodTypeAny, {
|
|
206
207
|
currency: string;
|
|
207
208
|
items: {
|
|
@@ -236,6 +237,7 @@ export declare const createWaybillAttributesSchema: z.ZodObject<{
|
|
|
236
237
|
purchaseCost?: number | undefined;
|
|
237
238
|
storageCost?: number | undefined;
|
|
238
239
|
miscellaneousCost?: number | undefined;
|
|
240
|
+
supplierId?: string | null | undefined;
|
|
239
241
|
}, {
|
|
240
242
|
items: {
|
|
241
243
|
description: string;
|
|
@@ -270,6 +272,7 @@ export declare const createWaybillAttributesSchema: z.ZodObject<{
|
|
|
270
272
|
purchaseCost?: number | undefined;
|
|
271
273
|
storageCost?: number | undefined;
|
|
272
274
|
miscellaneousCost?: number | undefined;
|
|
275
|
+
supplierId?: string | null | undefined;
|
|
273
276
|
}>;
|
|
274
277
|
export declare const updateWaybillAttributesSchema: z.ZodObject<{
|
|
275
278
|
issueDate: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
@@ -319,6 +322,7 @@ export declare const updateWaybillAttributesSchema: z.ZodObject<{
|
|
|
319
322
|
transportCost: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
320
323
|
storageCost: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
321
324
|
miscellaneousCost: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
325
|
+
supplierId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
322
326
|
}, "strip", z.ZodTypeAny, {
|
|
323
327
|
farmId?: string | undefined;
|
|
324
328
|
currency?: string | undefined;
|
|
@@ -353,6 +357,7 @@ export declare const updateWaybillAttributesSchema: z.ZodObject<{
|
|
|
353
357
|
purchaseCost?: number | undefined;
|
|
354
358
|
storageCost?: number | undefined;
|
|
355
359
|
miscellaneousCost?: number | undefined;
|
|
360
|
+
supplierId?: string | null | undefined;
|
|
356
361
|
}, {
|
|
357
362
|
farmId?: string | undefined;
|
|
358
363
|
currency?: string | undefined;
|
|
@@ -387,6 +392,7 @@ export declare const updateWaybillAttributesSchema: z.ZodObject<{
|
|
|
387
392
|
purchaseCost?: number | undefined;
|
|
388
393
|
storageCost?: number | undefined;
|
|
389
394
|
miscellaneousCost?: number | undefined;
|
|
395
|
+
supplierId?: string | null | undefined;
|
|
390
396
|
}>;
|
|
391
397
|
export declare const createWaybillSchema: z.ZodObject<{
|
|
392
398
|
type: z.ZodLiteral<"waybills">;
|
|
@@ -438,6 +444,7 @@ export declare const createWaybillSchema: z.ZodObject<{
|
|
|
438
444
|
transportCost: z.ZodOptional<z.ZodNumber>;
|
|
439
445
|
storageCost: z.ZodOptional<z.ZodNumber>;
|
|
440
446
|
miscellaneousCost: z.ZodOptional<z.ZodNumber>;
|
|
447
|
+
supplierId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
441
448
|
}, "strip", z.ZodTypeAny, {
|
|
442
449
|
currency: string;
|
|
443
450
|
items: {
|
|
@@ -472,6 +479,7 @@ export declare const createWaybillSchema: z.ZodObject<{
|
|
|
472
479
|
purchaseCost?: number | undefined;
|
|
473
480
|
storageCost?: number | undefined;
|
|
474
481
|
miscellaneousCost?: number | undefined;
|
|
482
|
+
supplierId?: string | null | undefined;
|
|
475
483
|
}, {
|
|
476
484
|
items: {
|
|
477
485
|
description: string;
|
|
@@ -506,6 +514,7 @@ export declare const createWaybillSchema: z.ZodObject<{
|
|
|
506
514
|
purchaseCost?: number | undefined;
|
|
507
515
|
storageCost?: number | undefined;
|
|
508
516
|
miscellaneousCost?: number | undefined;
|
|
517
|
+
supplierId?: string | null | undefined;
|
|
509
518
|
}>;
|
|
510
519
|
}, "strip", z.ZodTypeAny, {
|
|
511
520
|
type: "waybills";
|
|
@@ -543,6 +552,7 @@ export declare const createWaybillSchema: z.ZodObject<{
|
|
|
543
552
|
purchaseCost?: number | undefined;
|
|
544
553
|
storageCost?: number | undefined;
|
|
545
554
|
miscellaneousCost?: number | undefined;
|
|
555
|
+
supplierId?: string | null | undefined;
|
|
546
556
|
};
|
|
547
557
|
}, {
|
|
548
558
|
type: "waybills";
|
|
@@ -580,6 +590,7 @@ export declare const createWaybillSchema: z.ZodObject<{
|
|
|
580
590
|
purchaseCost?: number | undefined;
|
|
581
591
|
storageCost?: number | undefined;
|
|
582
592
|
miscellaneousCost?: number | undefined;
|
|
593
|
+
supplierId?: string | null | undefined;
|
|
583
594
|
};
|
|
584
595
|
}>;
|
|
585
596
|
export declare const updateWaybillSchema: z.ZodObject<{
|
|
@@ -633,6 +644,7 @@ export declare const updateWaybillSchema: z.ZodObject<{
|
|
|
633
644
|
transportCost: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
634
645
|
storageCost: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
635
646
|
miscellaneousCost: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
647
|
+
supplierId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
636
648
|
}, "strip", z.ZodTypeAny, {
|
|
637
649
|
farmId?: string | undefined;
|
|
638
650
|
currency?: string | undefined;
|
|
@@ -667,6 +679,7 @@ export declare const updateWaybillSchema: z.ZodObject<{
|
|
|
667
679
|
purchaseCost?: number | undefined;
|
|
668
680
|
storageCost?: number | undefined;
|
|
669
681
|
miscellaneousCost?: number | undefined;
|
|
682
|
+
supplierId?: string | null | undefined;
|
|
670
683
|
}, {
|
|
671
684
|
farmId?: string | undefined;
|
|
672
685
|
currency?: string | undefined;
|
|
@@ -701,6 +714,7 @@ export declare const updateWaybillSchema: z.ZodObject<{
|
|
|
701
714
|
purchaseCost?: number | undefined;
|
|
702
715
|
storageCost?: number | undefined;
|
|
703
716
|
miscellaneousCost?: number | undefined;
|
|
717
|
+
supplierId?: string | null | undefined;
|
|
704
718
|
}>;
|
|
705
719
|
}, "strip", z.ZodTypeAny, {
|
|
706
720
|
type: "waybills";
|
|
@@ -739,6 +753,7 @@ export declare const updateWaybillSchema: z.ZodObject<{
|
|
|
739
753
|
purchaseCost?: number | undefined;
|
|
740
754
|
storageCost?: number | undefined;
|
|
741
755
|
miscellaneousCost?: number | undefined;
|
|
756
|
+
supplierId?: string | null | undefined;
|
|
742
757
|
};
|
|
743
758
|
}, {
|
|
744
759
|
type: "waybills";
|
|
@@ -777,6 +792,7 @@ export declare const updateWaybillSchema: z.ZodObject<{
|
|
|
777
792
|
purchaseCost?: number | undefined;
|
|
778
793
|
storageCost?: number | undefined;
|
|
779
794
|
miscellaneousCost?: number | undefined;
|
|
795
|
+
supplierId?: string | null | undefined;
|
|
780
796
|
};
|
|
781
797
|
}>;
|
|
782
798
|
export declare const waybillResourceSchema: z.ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"waybills.schemas.d.ts","sourceRoot":"","sources":["../../src/schemas/waybills.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB;;GAEG;AAGH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;EAO5B,CAAC;AAGH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAyD,CAAC;AAGhG,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAC5D,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AACpF,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AACpF,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AACrE,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AACrE,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACxE,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACpE,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACpE,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC"}
|
|
@@ -75,6 +75,7 @@ export const createWaybillAttributesSchema = z.object({
|
|
|
75
75
|
transportCost: z.number().nonnegative().optional(),
|
|
76
76
|
storageCost: z.number().nonnegative().optional(),
|
|
77
77
|
miscellaneousCost: z.number().nonnegative().optional(),
|
|
78
|
+
supplierId: z.string().uuid().optional().nullable(),
|
|
78
79
|
});
|
|
79
80
|
// Waybill attributes for update (input)
|
|
80
81
|
export const updateWaybillAttributesSchema = createWaybillAttributesSchema.partial();
|