@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
|
@@ -69,6 +69,10 @@ export declare const waybillAttributesSchema: z.ZodObject<{
|
|
|
69
69
|
transporterName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
70
70
|
dispatchedLocation: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
71
71
|
receivedCondition: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
72
|
+
receivedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
73
|
+
receivedByName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
74
|
+
farmId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
75
|
+
commercialIntent: z.ZodNullable<z.ZodOptional<z.ZodEnum<["farm_sale", "trade"]>>>;
|
|
72
76
|
organizationId: z.ZodString;
|
|
73
77
|
} & {
|
|
74
78
|
createdAt: z.ZodString;
|
|
@@ -90,6 +94,7 @@ export declare const waybillAttributesSchema: z.ZodObject<{
|
|
|
90
94
|
issueDate: string;
|
|
91
95
|
senderName: string;
|
|
92
96
|
recipientName: string;
|
|
97
|
+
farmId?: string | null | undefined;
|
|
93
98
|
notes?: string | null | undefined;
|
|
94
99
|
totalValue?: number | null | undefined;
|
|
95
100
|
senderAddress?: string | null | undefined;
|
|
@@ -107,6 +112,9 @@ export declare const waybillAttributesSchema: z.ZodObject<{
|
|
|
107
112
|
transporterName?: string | null | undefined;
|
|
108
113
|
dispatchedLocation?: string | null | undefined;
|
|
109
114
|
receivedCondition?: string | null | undefined;
|
|
115
|
+
receivedAt?: string | null | undefined;
|
|
116
|
+
receivedByName?: string | null | undefined;
|
|
117
|
+
commercialIntent?: "farm_sale" | "trade" | null | undefined;
|
|
110
118
|
}, {
|
|
111
119
|
createdAt: string;
|
|
112
120
|
updatedAt: string;
|
|
@@ -123,6 +131,7 @@ export declare const waybillAttributesSchema: z.ZodObject<{
|
|
|
123
131
|
issueDate: string;
|
|
124
132
|
senderName: string;
|
|
125
133
|
recipientName: string;
|
|
134
|
+
farmId?: string | null | undefined;
|
|
126
135
|
currency?: string | undefined;
|
|
127
136
|
notes?: string | null | undefined;
|
|
128
137
|
totalValue?: number | null | undefined;
|
|
@@ -141,6 +150,9 @@ export declare const waybillAttributesSchema: z.ZodObject<{
|
|
|
141
150
|
transporterName?: string | null | undefined;
|
|
142
151
|
dispatchedLocation?: string | null | undefined;
|
|
143
152
|
receivedCondition?: string | null | undefined;
|
|
153
|
+
receivedAt?: string | null | undefined;
|
|
154
|
+
receivedByName?: string | null | undefined;
|
|
155
|
+
commercialIntent?: "farm_sale" | "trade" | null | undefined;
|
|
144
156
|
}>;
|
|
145
157
|
export declare const createWaybillAttributesSchema: z.ZodObject<{
|
|
146
158
|
issueDate: z.ZodOptional<z.ZodString>;
|
|
@@ -182,8 +194,13 @@ export declare const createWaybillAttributesSchema: z.ZodObject<{
|
|
|
182
194
|
transporterName: z.ZodOptional<z.ZodString>;
|
|
183
195
|
dispatchedLocation: z.ZodOptional<z.ZodString>;
|
|
184
196
|
receivedCondition: z.ZodOptional<z.ZodString>;
|
|
197
|
+
receivedAt: z.ZodOptional<z.ZodString>;
|
|
198
|
+
receivedByName: z.ZodOptional<z.ZodString>;
|
|
199
|
+
farmId: z.ZodOptional<z.ZodString>;
|
|
200
|
+
commercialIntent: z.ZodOptional<z.ZodEnum<["farm_sale", "trade"]>>;
|
|
185
201
|
purchaseCost: z.ZodOptional<z.ZodNumber>;
|
|
186
202
|
transportCost: z.ZodOptional<z.ZodNumber>;
|
|
203
|
+
storageCost: z.ZodOptional<z.ZodNumber>;
|
|
187
204
|
miscellaneousCost: z.ZodOptional<z.ZodNumber>;
|
|
188
205
|
}, "strip", z.ZodTypeAny, {
|
|
189
206
|
currency: string;
|
|
@@ -197,6 +214,7 @@ export declare const createWaybillAttributesSchema: z.ZodObject<{
|
|
|
197
214
|
}[];
|
|
198
215
|
senderName: string;
|
|
199
216
|
buyerId: string;
|
|
217
|
+
farmId?: string | undefined;
|
|
200
218
|
notes?: string | undefined;
|
|
201
219
|
totalValue?: number | undefined;
|
|
202
220
|
transportCost?: number | undefined;
|
|
@@ -212,7 +230,11 @@ export declare const createWaybillAttributesSchema: z.ZodObject<{
|
|
|
212
230
|
transporterName?: string | undefined;
|
|
213
231
|
dispatchedLocation?: string | undefined;
|
|
214
232
|
receivedCondition?: string | undefined;
|
|
233
|
+
receivedAt?: string | undefined;
|
|
234
|
+
receivedByName?: string | undefined;
|
|
235
|
+
commercialIntent?: "farm_sale" | "trade" | undefined;
|
|
215
236
|
purchaseCost?: number | undefined;
|
|
237
|
+
storageCost?: number | undefined;
|
|
216
238
|
miscellaneousCost?: number | undefined;
|
|
217
239
|
}, {
|
|
218
240
|
items: {
|
|
@@ -225,6 +247,7 @@ export declare const createWaybillAttributesSchema: z.ZodObject<{
|
|
|
225
247
|
}[];
|
|
226
248
|
senderName: string;
|
|
227
249
|
buyerId: string;
|
|
250
|
+
farmId?: string | undefined;
|
|
228
251
|
currency?: string | undefined;
|
|
229
252
|
notes?: string | undefined;
|
|
230
253
|
totalValue?: number | undefined;
|
|
@@ -241,7 +264,11 @@ export declare const createWaybillAttributesSchema: z.ZodObject<{
|
|
|
241
264
|
transporterName?: string | undefined;
|
|
242
265
|
dispatchedLocation?: string | undefined;
|
|
243
266
|
receivedCondition?: string | undefined;
|
|
267
|
+
receivedAt?: string | undefined;
|
|
268
|
+
receivedByName?: string | undefined;
|
|
269
|
+
commercialIntent?: "farm_sale" | "trade" | undefined;
|
|
244
270
|
purchaseCost?: number | undefined;
|
|
271
|
+
storageCost?: number | undefined;
|
|
245
272
|
miscellaneousCost?: number | undefined;
|
|
246
273
|
}>;
|
|
247
274
|
export declare const updateWaybillAttributesSchema: z.ZodObject<{
|
|
@@ -284,10 +311,16 @@ export declare const updateWaybillAttributesSchema: z.ZodObject<{
|
|
|
284
311
|
transporterName: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
285
312
|
dispatchedLocation: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
286
313
|
receivedCondition: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
314
|
+
receivedAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
315
|
+
receivedByName: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
316
|
+
farmId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
317
|
+
commercialIntent: z.ZodOptional<z.ZodOptional<z.ZodEnum<["farm_sale", "trade"]>>>;
|
|
287
318
|
purchaseCost: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
288
319
|
transportCost: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
320
|
+
storageCost: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
289
321
|
miscellaneousCost: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
290
322
|
}, "strip", z.ZodTypeAny, {
|
|
323
|
+
farmId?: string | undefined;
|
|
291
324
|
currency?: string | undefined;
|
|
292
325
|
notes?: string | undefined;
|
|
293
326
|
totalValue?: number | undefined;
|
|
@@ -313,10 +346,15 @@ export declare const updateWaybillAttributesSchema: z.ZodObject<{
|
|
|
313
346
|
transporterName?: string | undefined;
|
|
314
347
|
dispatchedLocation?: string | undefined;
|
|
315
348
|
receivedCondition?: string | undefined;
|
|
349
|
+
receivedAt?: string | undefined;
|
|
350
|
+
receivedByName?: string | undefined;
|
|
351
|
+
commercialIntent?: "farm_sale" | "trade" | undefined;
|
|
316
352
|
buyerId?: string | undefined;
|
|
317
353
|
purchaseCost?: number | undefined;
|
|
354
|
+
storageCost?: number | undefined;
|
|
318
355
|
miscellaneousCost?: number | undefined;
|
|
319
356
|
}, {
|
|
357
|
+
farmId?: string | undefined;
|
|
320
358
|
currency?: string | undefined;
|
|
321
359
|
notes?: string | undefined;
|
|
322
360
|
totalValue?: number | undefined;
|
|
@@ -342,8 +380,12 @@ export declare const updateWaybillAttributesSchema: z.ZodObject<{
|
|
|
342
380
|
transporterName?: string | undefined;
|
|
343
381
|
dispatchedLocation?: string | undefined;
|
|
344
382
|
receivedCondition?: string | undefined;
|
|
383
|
+
receivedAt?: string | undefined;
|
|
384
|
+
receivedByName?: string | undefined;
|
|
385
|
+
commercialIntent?: "farm_sale" | "trade" | undefined;
|
|
345
386
|
buyerId?: string | undefined;
|
|
346
387
|
purchaseCost?: number | undefined;
|
|
388
|
+
storageCost?: number | undefined;
|
|
347
389
|
miscellaneousCost?: number | undefined;
|
|
348
390
|
}>;
|
|
349
391
|
export declare const createWaybillSchema: z.ZodObject<{
|
|
@@ -388,8 +430,13 @@ export declare const createWaybillSchema: z.ZodObject<{
|
|
|
388
430
|
transporterName: z.ZodOptional<z.ZodString>;
|
|
389
431
|
dispatchedLocation: z.ZodOptional<z.ZodString>;
|
|
390
432
|
receivedCondition: z.ZodOptional<z.ZodString>;
|
|
433
|
+
receivedAt: z.ZodOptional<z.ZodString>;
|
|
434
|
+
receivedByName: z.ZodOptional<z.ZodString>;
|
|
435
|
+
farmId: z.ZodOptional<z.ZodString>;
|
|
436
|
+
commercialIntent: z.ZodOptional<z.ZodEnum<["farm_sale", "trade"]>>;
|
|
391
437
|
purchaseCost: z.ZodOptional<z.ZodNumber>;
|
|
392
438
|
transportCost: z.ZodOptional<z.ZodNumber>;
|
|
439
|
+
storageCost: z.ZodOptional<z.ZodNumber>;
|
|
393
440
|
miscellaneousCost: z.ZodOptional<z.ZodNumber>;
|
|
394
441
|
}, "strip", z.ZodTypeAny, {
|
|
395
442
|
currency: string;
|
|
@@ -403,6 +450,7 @@ export declare const createWaybillSchema: z.ZodObject<{
|
|
|
403
450
|
}[];
|
|
404
451
|
senderName: string;
|
|
405
452
|
buyerId: string;
|
|
453
|
+
farmId?: string | undefined;
|
|
406
454
|
notes?: string | undefined;
|
|
407
455
|
totalValue?: number | undefined;
|
|
408
456
|
transportCost?: number | undefined;
|
|
@@ -418,7 +466,11 @@ export declare const createWaybillSchema: z.ZodObject<{
|
|
|
418
466
|
transporterName?: string | undefined;
|
|
419
467
|
dispatchedLocation?: string | undefined;
|
|
420
468
|
receivedCondition?: string | undefined;
|
|
469
|
+
receivedAt?: string | undefined;
|
|
470
|
+
receivedByName?: string | undefined;
|
|
471
|
+
commercialIntent?: "farm_sale" | "trade" | undefined;
|
|
421
472
|
purchaseCost?: number | undefined;
|
|
473
|
+
storageCost?: number | undefined;
|
|
422
474
|
miscellaneousCost?: number | undefined;
|
|
423
475
|
}, {
|
|
424
476
|
items: {
|
|
@@ -431,6 +483,7 @@ export declare const createWaybillSchema: z.ZodObject<{
|
|
|
431
483
|
}[];
|
|
432
484
|
senderName: string;
|
|
433
485
|
buyerId: string;
|
|
486
|
+
farmId?: string | undefined;
|
|
434
487
|
currency?: string | undefined;
|
|
435
488
|
notes?: string | undefined;
|
|
436
489
|
totalValue?: number | undefined;
|
|
@@ -447,7 +500,11 @@ export declare const createWaybillSchema: z.ZodObject<{
|
|
|
447
500
|
transporterName?: string | undefined;
|
|
448
501
|
dispatchedLocation?: string | undefined;
|
|
449
502
|
receivedCondition?: string | undefined;
|
|
503
|
+
receivedAt?: string | undefined;
|
|
504
|
+
receivedByName?: string | undefined;
|
|
505
|
+
commercialIntent?: "farm_sale" | "trade" | undefined;
|
|
450
506
|
purchaseCost?: number | undefined;
|
|
507
|
+
storageCost?: number | undefined;
|
|
451
508
|
miscellaneousCost?: number | undefined;
|
|
452
509
|
}>;
|
|
453
510
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -464,6 +521,7 @@ export declare const createWaybillSchema: z.ZodObject<{
|
|
|
464
521
|
}[];
|
|
465
522
|
senderName: string;
|
|
466
523
|
buyerId: string;
|
|
524
|
+
farmId?: string | undefined;
|
|
467
525
|
notes?: string | undefined;
|
|
468
526
|
totalValue?: number | undefined;
|
|
469
527
|
transportCost?: number | undefined;
|
|
@@ -479,7 +537,11 @@ export declare const createWaybillSchema: z.ZodObject<{
|
|
|
479
537
|
transporterName?: string | undefined;
|
|
480
538
|
dispatchedLocation?: string | undefined;
|
|
481
539
|
receivedCondition?: string | undefined;
|
|
540
|
+
receivedAt?: string | undefined;
|
|
541
|
+
receivedByName?: string | undefined;
|
|
542
|
+
commercialIntent?: "farm_sale" | "trade" | undefined;
|
|
482
543
|
purchaseCost?: number | undefined;
|
|
544
|
+
storageCost?: number | undefined;
|
|
483
545
|
miscellaneousCost?: number | undefined;
|
|
484
546
|
};
|
|
485
547
|
}, {
|
|
@@ -495,6 +557,7 @@ export declare const createWaybillSchema: z.ZodObject<{
|
|
|
495
557
|
}[];
|
|
496
558
|
senderName: string;
|
|
497
559
|
buyerId: string;
|
|
560
|
+
farmId?: string | undefined;
|
|
498
561
|
currency?: string | undefined;
|
|
499
562
|
notes?: string | undefined;
|
|
500
563
|
totalValue?: number | undefined;
|
|
@@ -511,7 +574,11 @@ export declare const createWaybillSchema: z.ZodObject<{
|
|
|
511
574
|
transporterName?: string | undefined;
|
|
512
575
|
dispatchedLocation?: string | undefined;
|
|
513
576
|
receivedCondition?: string | undefined;
|
|
577
|
+
receivedAt?: string | undefined;
|
|
578
|
+
receivedByName?: string | undefined;
|
|
579
|
+
commercialIntent?: "farm_sale" | "trade" | undefined;
|
|
514
580
|
purchaseCost?: number | undefined;
|
|
581
|
+
storageCost?: number | undefined;
|
|
515
582
|
miscellaneousCost?: number | undefined;
|
|
516
583
|
};
|
|
517
584
|
}>;
|
|
@@ -558,10 +625,16 @@ export declare const updateWaybillSchema: z.ZodObject<{
|
|
|
558
625
|
transporterName: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
559
626
|
dispatchedLocation: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
560
627
|
receivedCondition: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
628
|
+
receivedAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
629
|
+
receivedByName: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
630
|
+
farmId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
631
|
+
commercialIntent: z.ZodOptional<z.ZodOptional<z.ZodEnum<["farm_sale", "trade"]>>>;
|
|
561
632
|
purchaseCost: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
562
633
|
transportCost: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
634
|
+
storageCost: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
563
635
|
miscellaneousCost: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
564
636
|
}, "strip", z.ZodTypeAny, {
|
|
637
|
+
farmId?: string | undefined;
|
|
565
638
|
currency?: string | undefined;
|
|
566
639
|
notes?: string | undefined;
|
|
567
640
|
totalValue?: number | undefined;
|
|
@@ -587,10 +660,15 @@ export declare const updateWaybillSchema: z.ZodObject<{
|
|
|
587
660
|
transporterName?: string | undefined;
|
|
588
661
|
dispatchedLocation?: string | undefined;
|
|
589
662
|
receivedCondition?: string | undefined;
|
|
663
|
+
receivedAt?: string | undefined;
|
|
664
|
+
receivedByName?: string | undefined;
|
|
665
|
+
commercialIntent?: "farm_sale" | "trade" | undefined;
|
|
590
666
|
buyerId?: string | undefined;
|
|
591
667
|
purchaseCost?: number | undefined;
|
|
668
|
+
storageCost?: number | undefined;
|
|
592
669
|
miscellaneousCost?: number | undefined;
|
|
593
670
|
}, {
|
|
671
|
+
farmId?: string | undefined;
|
|
594
672
|
currency?: string | undefined;
|
|
595
673
|
notes?: string | undefined;
|
|
596
674
|
totalValue?: number | undefined;
|
|
@@ -616,14 +694,19 @@ export declare const updateWaybillSchema: z.ZodObject<{
|
|
|
616
694
|
transporterName?: string | undefined;
|
|
617
695
|
dispatchedLocation?: string | undefined;
|
|
618
696
|
receivedCondition?: string | undefined;
|
|
697
|
+
receivedAt?: string | undefined;
|
|
698
|
+
receivedByName?: string | undefined;
|
|
699
|
+
commercialIntent?: "farm_sale" | "trade" | undefined;
|
|
619
700
|
buyerId?: string | undefined;
|
|
620
701
|
purchaseCost?: number | undefined;
|
|
702
|
+
storageCost?: number | undefined;
|
|
621
703
|
miscellaneousCost?: number | undefined;
|
|
622
704
|
}>;
|
|
623
705
|
}, "strip", z.ZodTypeAny, {
|
|
624
706
|
type: "waybills";
|
|
625
707
|
id: string;
|
|
626
708
|
attributes: {
|
|
709
|
+
farmId?: string | undefined;
|
|
627
710
|
currency?: string | undefined;
|
|
628
711
|
notes?: string | undefined;
|
|
629
712
|
totalValue?: number | undefined;
|
|
@@ -649,14 +732,19 @@ export declare const updateWaybillSchema: z.ZodObject<{
|
|
|
649
732
|
transporterName?: string | undefined;
|
|
650
733
|
dispatchedLocation?: string | undefined;
|
|
651
734
|
receivedCondition?: string | undefined;
|
|
735
|
+
receivedAt?: string | undefined;
|
|
736
|
+
receivedByName?: string | undefined;
|
|
737
|
+
commercialIntent?: "farm_sale" | "trade" | undefined;
|
|
652
738
|
buyerId?: string | undefined;
|
|
653
739
|
purchaseCost?: number | undefined;
|
|
740
|
+
storageCost?: number | undefined;
|
|
654
741
|
miscellaneousCost?: number | undefined;
|
|
655
742
|
};
|
|
656
743
|
}, {
|
|
657
744
|
type: "waybills";
|
|
658
745
|
id: string;
|
|
659
746
|
attributes: {
|
|
747
|
+
farmId?: string | undefined;
|
|
660
748
|
currency?: string | undefined;
|
|
661
749
|
notes?: string | undefined;
|
|
662
750
|
totalValue?: number | undefined;
|
|
@@ -682,8 +770,12 @@ export declare const updateWaybillSchema: z.ZodObject<{
|
|
|
682
770
|
transporterName?: string | undefined;
|
|
683
771
|
dispatchedLocation?: string | undefined;
|
|
684
772
|
receivedCondition?: string | undefined;
|
|
773
|
+
receivedAt?: string | undefined;
|
|
774
|
+
receivedByName?: string | undefined;
|
|
775
|
+
commercialIntent?: "farm_sale" | "trade" | undefined;
|
|
685
776
|
buyerId?: string | undefined;
|
|
686
777
|
purchaseCost?: number | undefined;
|
|
778
|
+
storageCost?: number | undefined;
|
|
687
779
|
miscellaneousCost?: number | undefined;
|
|
688
780
|
};
|
|
689
781
|
}>;
|
|
@@ -735,6 +827,10 @@ export declare const waybillResourceSchema: z.ZodObject<{
|
|
|
735
827
|
transporterName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
736
828
|
dispatchedLocation: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
737
829
|
receivedCondition: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
830
|
+
receivedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
831
|
+
receivedByName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
832
|
+
farmId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
833
|
+
commercialIntent: z.ZodNullable<z.ZodOptional<z.ZodEnum<["farm_sale", "trade"]>>>;
|
|
738
834
|
organizationId: z.ZodString;
|
|
739
835
|
} & {
|
|
740
836
|
createdAt: z.ZodString;
|
|
@@ -756,6 +852,7 @@ export declare const waybillResourceSchema: z.ZodObject<{
|
|
|
756
852
|
issueDate: string;
|
|
757
853
|
senderName: string;
|
|
758
854
|
recipientName: string;
|
|
855
|
+
farmId?: string | null | undefined;
|
|
759
856
|
notes?: string | null | undefined;
|
|
760
857
|
totalValue?: number | null | undefined;
|
|
761
858
|
senderAddress?: string | null | undefined;
|
|
@@ -773,6 +870,9 @@ export declare const waybillResourceSchema: z.ZodObject<{
|
|
|
773
870
|
transporterName?: string | null | undefined;
|
|
774
871
|
dispatchedLocation?: string | null | undefined;
|
|
775
872
|
receivedCondition?: string | null | undefined;
|
|
873
|
+
receivedAt?: string | null | undefined;
|
|
874
|
+
receivedByName?: string | null | undefined;
|
|
875
|
+
commercialIntent?: "farm_sale" | "trade" | null | undefined;
|
|
776
876
|
}, {
|
|
777
877
|
createdAt: string;
|
|
778
878
|
updatedAt: string;
|
|
@@ -789,6 +889,7 @@ export declare const waybillResourceSchema: z.ZodObject<{
|
|
|
789
889
|
issueDate: string;
|
|
790
890
|
senderName: string;
|
|
791
891
|
recipientName: string;
|
|
892
|
+
farmId?: string | null | undefined;
|
|
792
893
|
currency?: string | undefined;
|
|
793
894
|
notes?: string | null | undefined;
|
|
794
895
|
totalValue?: number | null | undefined;
|
|
@@ -807,6 +908,9 @@ export declare const waybillResourceSchema: z.ZodObject<{
|
|
|
807
908
|
transporterName?: string | null | undefined;
|
|
808
909
|
dispatchedLocation?: string | null | undefined;
|
|
809
910
|
receivedCondition?: string | null | undefined;
|
|
911
|
+
receivedAt?: string | null | undefined;
|
|
912
|
+
receivedByName?: string | null | undefined;
|
|
913
|
+
commercialIntent?: "farm_sale" | "trade" | null | undefined;
|
|
810
914
|
}>;
|
|
811
915
|
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
812
916
|
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -831,6 +935,7 @@ export declare const waybillResourceSchema: z.ZodObject<{
|
|
|
831
935
|
issueDate: string;
|
|
832
936
|
senderName: string;
|
|
833
937
|
recipientName: string;
|
|
938
|
+
farmId?: string | null | undefined;
|
|
834
939
|
notes?: string | null | undefined;
|
|
835
940
|
totalValue?: number | null | undefined;
|
|
836
941
|
senderAddress?: string | null | undefined;
|
|
@@ -848,6 +953,9 @@ export declare const waybillResourceSchema: z.ZodObject<{
|
|
|
848
953
|
transporterName?: string | null | undefined;
|
|
849
954
|
dispatchedLocation?: string | null | undefined;
|
|
850
955
|
receivedCondition?: string | null | undefined;
|
|
956
|
+
receivedAt?: string | null | undefined;
|
|
957
|
+
receivedByName?: string | null | undefined;
|
|
958
|
+
commercialIntent?: "farm_sale" | "trade" | null | undefined;
|
|
851
959
|
};
|
|
852
960
|
relationships?: Record<string, unknown> | undefined;
|
|
853
961
|
links?: Record<string, string> | undefined;
|
|
@@ -871,6 +979,7 @@ export declare const waybillResourceSchema: z.ZodObject<{
|
|
|
871
979
|
issueDate: string;
|
|
872
980
|
senderName: string;
|
|
873
981
|
recipientName: string;
|
|
982
|
+
farmId?: string | null | undefined;
|
|
874
983
|
currency?: string | undefined;
|
|
875
984
|
notes?: string | null | undefined;
|
|
876
985
|
totalValue?: number | null | undefined;
|
|
@@ -889,6 +998,9 @@ export declare const waybillResourceSchema: z.ZodObject<{
|
|
|
889
998
|
transporterName?: string | null | undefined;
|
|
890
999
|
dispatchedLocation?: string | null | undefined;
|
|
891
1000
|
receivedCondition?: string | null | undefined;
|
|
1001
|
+
receivedAt?: string | null | undefined;
|
|
1002
|
+
receivedByName?: string | null | undefined;
|
|
1003
|
+
commercialIntent?: "farm_sale" | "trade" | null | undefined;
|
|
892
1004
|
};
|
|
893
1005
|
relationships?: Record<string, unknown> | undefined;
|
|
894
1006
|
links?: Record<string, string> | undefined;
|
|
@@ -943,6 +1055,10 @@ export declare const waybillResponseSchema: z.ZodObject<{
|
|
|
943
1055
|
transporterName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
944
1056
|
dispatchedLocation: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
945
1057
|
receivedCondition: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1058
|
+
receivedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1059
|
+
receivedByName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1060
|
+
farmId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1061
|
+
commercialIntent: z.ZodNullable<z.ZodOptional<z.ZodEnum<["farm_sale", "trade"]>>>;
|
|
946
1062
|
organizationId: z.ZodString;
|
|
947
1063
|
} & {
|
|
948
1064
|
createdAt: z.ZodString;
|
|
@@ -964,6 +1080,7 @@ export declare const waybillResponseSchema: z.ZodObject<{
|
|
|
964
1080
|
issueDate: string;
|
|
965
1081
|
senderName: string;
|
|
966
1082
|
recipientName: string;
|
|
1083
|
+
farmId?: string | null | undefined;
|
|
967
1084
|
notes?: string | null | undefined;
|
|
968
1085
|
totalValue?: number | null | undefined;
|
|
969
1086
|
senderAddress?: string | null | undefined;
|
|
@@ -981,6 +1098,9 @@ export declare const waybillResponseSchema: z.ZodObject<{
|
|
|
981
1098
|
transporterName?: string | null | undefined;
|
|
982
1099
|
dispatchedLocation?: string | null | undefined;
|
|
983
1100
|
receivedCondition?: string | null | undefined;
|
|
1101
|
+
receivedAt?: string | null | undefined;
|
|
1102
|
+
receivedByName?: string | null | undefined;
|
|
1103
|
+
commercialIntent?: "farm_sale" | "trade" | null | undefined;
|
|
984
1104
|
}, {
|
|
985
1105
|
createdAt: string;
|
|
986
1106
|
updatedAt: string;
|
|
@@ -997,6 +1117,7 @@ export declare const waybillResponseSchema: z.ZodObject<{
|
|
|
997
1117
|
issueDate: string;
|
|
998
1118
|
senderName: string;
|
|
999
1119
|
recipientName: string;
|
|
1120
|
+
farmId?: string | null | undefined;
|
|
1000
1121
|
currency?: string | undefined;
|
|
1001
1122
|
notes?: string | null | undefined;
|
|
1002
1123
|
totalValue?: number | null | undefined;
|
|
@@ -1015,6 +1136,9 @@ export declare const waybillResponseSchema: z.ZodObject<{
|
|
|
1015
1136
|
transporterName?: string | null | undefined;
|
|
1016
1137
|
dispatchedLocation?: string | null | undefined;
|
|
1017
1138
|
receivedCondition?: string | null | undefined;
|
|
1139
|
+
receivedAt?: string | null | undefined;
|
|
1140
|
+
receivedByName?: string | null | undefined;
|
|
1141
|
+
commercialIntent?: "farm_sale" | "trade" | null | undefined;
|
|
1018
1142
|
}>;
|
|
1019
1143
|
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1020
1144
|
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -1039,6 +1163,7 @@ export declare const waybillResponseSchema: z.ZodObject<{
|
|
|
1039
1163
|
issueDate: string;
|
|
1040
1164
|
senderName: string;
|
|
1041
1165
|
recipientName: string;
|
|
1166
|
+
farmId?: string | null | undefined;
|
|
1042
1167
|
notes?: string | null | undefined;
|
|
1043
1168
|
totalValue?: number | null | undefined;
|
|
1044
1169
|
senderAddress?: string | null | undefined;
|
|
@@ -1056,6 +1181,9 @@ export declare const waybillResponseSchema: z.ZodObject<{
|
|
|
1056
1181
|
transporterName?: string | null | undefined;
|
|
1057
1182
|
dispatchedLocation?: string | null | undefined;
|
|
1058
1183
|
receivedCondition?: string | null | undefined;
|
|
1184
|
+
receivedAt?: string | null | undefined;
|
|
1185
|
+
receivedByName?: string | null | undefined;
|
|
1186
|
+
commercialIntent?: "farm_sale" | "trade" | null | undefined;
|
|
1059
1187
|
};
|
|
1060
1188
|
relationships?: Record<string, unknown> | undefined;
|
|
1061
1189
|
links?: Record<string, string> | undefined;
|
|
@@ -1079,6 +1207,7 @@ export declare const waybillResponseSchema: z.ZodObject<{
|
|
|
1079
1207
|
issueDate: string;
|
|
1080
1208
|
senderName: string;
|
|
1081
1209
|
recipientName: string;
|
|
1210
|
+
farmId?: string | null | undefined;
|
|
1082
1211
|
currency?: string | undefined;
|
|
1083
1212
|
notes?: string | null | undefined;
|
|
1084
1213
|
totalValue?: number | null | undefined;
|
|
@@ -1097,6 +1226,9 @@ export declare const waybillResponseSchema: z.ZodObject<{
|
|
|
1097
1226
|
transporterName?: string | null | undefined;
|
|
1098
1227
|
dispatchedLocation?: string | null | undefined;
|
|
1099
1228
|
receivedCondition?: string | null | undefined;
|
|
1229
|
+
receivedAt?: string | null | undefined;
|
|
1230
|
+
receivedByName?: string | null | undefined;
|
|
1231
|
+
commercialIntent?: "farm_sale" | "trade" | null | undefined;
|
|
1100
1232
|
};
|
|
1101
1233
|
relationships?: Record<string, unknown> | undefined;
|
|
1102
1234
|
links?: Record<string, string> | undefined;
|
|
@@ -1147,6 +1279,7 @@ export declare const waybillResponseSchema: z.ZodObject<{
|
|
|
1147
1279
|
issueDate: string;
|
|
1148
1280
|
senderName: string;
|
|
1149
1281
|
recipientName: string;
|
|
1282
|
+
farmId?: string | null | undefined;
|
|
1150
1283
|
notes?: string | null | undefined;
|
|
1151
1284
|
totalValue?: number | null | undefined;
|
|
1152
1285
|
senderAddress?: string | null | undefined;
|
|
@@ -1164,6 +1297,9 @@ export declare const waybillResponseSchema: z.ZodObject<{
|
|
|
1164
1297
|
transporterName?: string | null | undefined;
|
|
1165
1298
|
dispatchedLocation?: string | null | undefined;
|
|
1166
1299
|
receivedCondition?: string | null | undefined;
|
|
1300
|
+
receivedAt?: string | null | undefined;
|
|
1301
|
+
receivedByName?: string | null | undefined;
|
|
1302
|
+
commercialIntent?: "farm_sale" | "trade" | null | undefined;
|
|
1167
1303
|
};
|
|
1168
1304
|
relationships?: Record<string, unknown> | undefined;
|
|
1169
1305
|
links?: Record<string, string> | undefined;
|
|
@@ -1199,6 +1335,7 @@ export declare const waybillResponseSchema: z.ZodObject<{
|
|
|
1199
1335
|
issueDate: string;
|
|
1200
1336
|
senderName: string;
|
|
1201
1337
|
recipientName: string;
|
|
1338
|
+
farmId?: string | null | undefined;
|
|
1202
1339
|
currency?: string | undefined;
|
|
1203
1340
|
notes?: string | null | undefined;
|
|
1204
1341
|
totalValue?: number | null | undefined;
|
|
@@ -1217,6 +1354,9 @@ export declare const waybillResponseSchema: z.ZodObject<{
|
|
|
1217
1354
|
transporterName?: string | null | undefined;
|
|
1218
1355
|
dispatchedLocation?: string | null | undefined;
|
|
1219
1356
|
receivedCondition?: string | null | undefined;
|
|
1357
|
+
receivedAt?: string | null | undefined;
|
|
1358
|
+
receivedByName?: string | null | undefined;
|
|
1359
|
+
commercialIntent?: "farm_sale" | "trade" | null | undefined;
|
|
1220
1360
|
};
|
|
1221
1361
|
relationships?: Record<string, unknown> | undefined;
|
|
1222
1362
|
links?: Record<string, string> | undefined;
|
|
@@ -1282,6 +1422,10 @@ export declare const waybillListResponseSchema: z.ZodObject<{
|
|
|
1282
1422
|
transporterName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1283
1423
|
dispatchedLocation: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1284
1424
|
receivedCondition: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1425
|
+
receivedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1426
|
+
receivedByName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1427
|
+
farmId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1428
|
+
commercialIntent: z.ZodNullable<z.ZodOptional<z.ZodEnum<["farm_sale", "trade"]>>>;
|
|
1285
1429
|
organizationId: z.ZodString;
|
|
1286
1430
|
} & {
|
|
1287
1431
|
createdAt: z.ZodString;
|
|
@@ -1303,6 +1447,7 @@ export declare const waybillListResponseSchema: z.ZodObject<{
|
|
|
1303
1447
|
issueDate: string;
|
|
1304
1448
|
senderName: string;
|
|
1305
1449
|
recipientName: string;
|
|
1450
|
+
farmId?: string | null | undefined;
|
|
1306
1451
|
notes?: string | null | undefined;
|
|
1307
1452
|
totalValue?: number | null | undefined;
|
|
1308
1453
|
senderAddress?: string | null | undefined;
|
|
@@ -1320,6 +1465,9 @@ export declare const waybillListResponseSchema: z.ZodObject<{
|
|
|
1320
1465
|
transporterName?: string | null | undefined;
|
|
1321
1466
|
dispatchedLocation?: string | null | undefined;
|
|
1322
1467
|
receivedCondition?: string | null | undefined;
|
|
1468
|
+
receivedAt?: string | null | undefined;
|
|
1469
|
+
receivedByName?: string | null | undefined;
|
|
1470
|
+
commercialIntent?: "farm_sale" | "trade" | null | undefined;
|
|
1323
1471
|
}, {
|
|
1324
1472
|
createdAt: string;
|
|
1325
1473
|
updatedAt: string;
|
|
@@ -1336,6 +1484,7 @@ export declare const waybillListResponseSchema: z.ZodObject<{
|
|
|
1336
1484
|
issueDate: string;
|
|
1337
1485
|
senderName: string;
|
|
1338
1486
|
recipientName: string;
|
|
1487
|
+
farmId?: string | null | undefined;
|
|
1339
1488
|
currency?: string | undefined;
|
|
1340
1489
|
notes?: string | null | undefined;
|
|
1341
1490
|
totalValue?: number | null | undefined;
|
|
@@ -1354,6 +1503,9 @@ export declare const waybillListResponseSchema: z.ZodObject<{
|
|
|
1354
1503
|
transporterName?: string | null | undefined;
|
|
1355
1504
|
dispatchedLocation?: string | null | undefined;
|
|
1356
1505
|
receivedCondition?: string | null | undefined;
|
|
1506
|
+
receivedAt?: string | null | undefined;
|
|
1507
|
+
receivedByName?: string | null | undefined;
|
|
1508
|
+
commercialIntent?: "farm_sale" | "trade" | null | undefined;
|
|
1357
1509
|
}>;
|
|
1358
1510
|
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1359
1511
|
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -1378,6 +1530,7 @@ export declare const waybillListResponseSchema: z.ZodObject<{
|
|
|
1378
1530
|
issueDate: string;
|
|
1379
1531
|
senderName: string;
|
|
1380
1532
|
recipientName: string;
|
|
1533
|
+
farmId?: string | null | undefined;
|
|
1381
1534
|
notes?: string | null | undefined;
|
|
1382
1535
|
totalValue?: number | null | undefined;
|
|
1383
1536
|
senderAddress?: string | null | undefined;
|
|
@@ -1395,6 +1548,9 @@ export declare const waybillListResponseSchema: z.ZodObject<{
|
|
|
1395
1548
|
transporterName?: string | null | undefined;
|
|
1396
1549
|
dispatchedLocation?: string | null | undefined;
|
|
1397
1550
|
receivedCondition?: string | null | undefined;
|
|
1551
|
+
receivedAt?: string | null | undefined;
|
|
1552
|
+
receivedByName?: string | null | undefined;
|
|
1553
|
+
commercialIntent?: "farm_sale" | "trade" | null | undefined;
|
|
1398
1554
|
};
|
|
1399
1555
|
relationships?: Record<string, unknown> | undefined;
|
|
1400
1556
|
links?: Record<string, string> | undefined;
|
|
@@ -1418,6 +1574,7 @@ export declare const waybillListResponseSchema: z.ZodObject<{
|
|
|
1418
1574
|
issueDate: string;
|
|
1419
1575
|
senderName: string;
|
|
1420
1576
|
recipientName: string;
|
|
1577
|
+
farmId?: string | null | undefined;
|
|
1421
1578
|
currency?: string | undefined;
|
|
1422
1579
|
notes?: string | null | undefined;
|
|
1423
1580
|
totalValue?: number | null | undefined;
|
|
@@ -1436,6 +1593,9 @@ export declare const waybillListResponseSchema: z.ZodObject<{
|
|
|
1436
1593
|
transporterName?: string | null | undefined;
|
|
1437
1594
|
dispatchedLocation?: string | null | undefined;
|
|
1438
1595
|
receivedCondition?: string | null | undefined;
|
|
1596
|
+
receivedAt?: string | null | undefined;
|
|
1597
|
+
receivedByName?: string | null | undefined;
|
|
1598
|
+
commercialIntent?: "farm_sale" | "trade" | null | undefined;
|
|
1439
1599
|
};
|
|
1440
1600
|
relationships?: Record<string, unknown> | undefined;
|
|
1441
1601
|
links?: Record<string, string> | undefined;
|
|
@@ -1486,6 +1646,7 @@ export declare const waybillListResponseSchema: z.ZodObject<{
|
|
|
1486
1646
|
issueDate: string;
|
|
1487
1647
|
senderName: string;
|
|
1488
1648
|
recipientName: string;
|
|
1649
|
+
farmId?: string | null | undefined;
|
|
1489
1650
|
notes?: string | null | undefined;
|
|
1490
1651
|
totalValue?: number | null | undefined;
|
|
1491
1652
|
senderAddress?: string | null | undefined;
|
|
@@ -1503,6 +1664,9 @@ export declare const waybillListResponseSchema: z.ZodObject<{
|
|
|
1503
1664
|
transporterName?: string | null | undefined;
|
|
1504
1665
|
dispatchedLocation?: string | null | undefined;
|
|
1505
1666
|
receivedCondition?: string | null | undefined;
|
|
1667
|
+
receivedAt?: string | null | undefined;
|
|
1668
|
+
receivedByName?: string | null | undefined;
|
|
1669
|
+
commercialIntent?: "farm_sale" | "trade" | null | undefined;
|
|
1506
1670
|
};
|
|
1507
1671
|
relationships?: Record<string, unknown> | undefined;
|
|
1508
1672
|
links?: Record<string, string> | undefined;
|
|
@@ -1538,6 +1702,7 @@ export declare const waybillListResponseSchema: z.ZodObject<{
|
|
|
1538
1702
|
issueDate: string;
|
|
1539
1703
|
senderName: string;
|
|
1540
1704
|
recipientName: string;
|
|
1705
|
+
farmId?: string | null | undefined;
|
|
1541
1706
|
currency?: string | undefined;
|
|
1542
1707
|
notes?: string | null | undefined;
|
|
1543
1708
|
totalValue?: number | null | undefined;
|
|
@@ -1556,6 +1721,9 @@ export declare const waybillListResponseSchema: z.ZodObject<{
|
|
|
1556
1721
|
transporterName?: string | null | undefined;
|
|
1557
1722
|
dispatchedLocation?: string | null | undefined;
|
|
1558
1723
|
receivedCondition?: string | null | undefined;
|
|
1724
|
+
receivedAt?: string | null | undefined;
|
|
1725
|
+
receivedByName?: string | null | undefined;
|
|
1726
|
+
commercialIntent?: "farm_sale" | "trade" | null | undefined;
|
|
1559
1727
|
};
|
|
1560
1728
|
relationships?: Record<string, unknown> | undefined;
|
|
1561
1729
|
links?: Record<string, string> | undefined;
|
|
@@ -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
|
|
1
|
+
{"version":3,"file":"waybills.schemas.d.ts","sourceRoot":"","sources":["../../src/schemas/waybills.schemas.ts"],"names":[],"mappings":"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"}
|
|
@@ -38,6 +38,10 @@ export const waybillAttributesSchema = z.object({
|
|
|
38
38
|
transporterName: z.string().optional().nullable(),
|
|
39
39
|
dispatchedLocation: z.string().optional().nullable(),
|
|
40
40
|
receivedCondition: z.string().optional().nullable(),
|
|
41
|
+
receivedAt: z.string().datetime().optional().nullable(),
|
|
42
|
+
receivedByName: z.string().optional().nullable(),
|
|
43
|
+
farmId: z.string().uuid().optional().nullable(),
|
|
44
|
+
commercialIntent: z.enum(['farm_sale', 'trade']).optional().nullable(),
|
|
41
45
|
organizationId: z.string().uuid(),
|
|
42
46
|
createdAt: z.string().datetime(),
|
|
43
47
|
updatedAt: z.string().datetime(),
|
|
@@ -63,8 +67,13 @@ export const createWaybillAttributesSchema = z.object({
|
|
|
63
67
|
transporterName: z.string().optional(),
|
|
64
68
|
dispatchedLocation: z.string().optional(),
|
|
65
69
|
receivedCondition: z.string().optional(),
|
|
70
|
+
receivedAt: z.string().datetime().optional(),
|
|
71
|
+
receivedByName: z.string().optional(),
|
|
72
|
+
farmId: z.string().uuid().optional(),
|
|
73
|
+
commercialIntent: z.enum(['farm_sale', 'trade']).optional(),
|
|
66
74
|
purchaseCost: z.number().nonnegative().optional(),
|
|
67
75
|
transportCost: z.number().nonnegative().optional(),
|
|
76
|
+
storageCost: z.number().nonnegative().optional(),
|
|
68
77
|
miscellaneousCost: z.number().nonnegative().optional(),
|
|
69
78
|
});
|
|
70
79
|
// Waybill attributes for update (input)
|