@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.
Files changed (50) 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/commodity-deals.routes.d.ts +175 -0
  5. package/dist/routes/commodity-deals.routes.d.ts.map +1 -1
  6. package/dist/routes/index.d.ts +9 -0
  7. package/dist/routes/index.d.ts.map +1 -1
  8. package/dist/routes/index.js +6 -0
  9. package/dist/routes/invoices.routes.d.ts +189 -42
  10. package/dist/routes/invoices.routes.d.ts.map +1 -1
  11. package/dist/routes/livestock-groups.routes.d.ts +308 -0
  12. package/dist/routes/livestock-groups.routes.d.ts.map +1 -1
  13. package/dist/routes/organization-capabilities.routes.d.ts +1671 -0
  14. package/dist/routes/organization-capabilities.routes.d.ts.map +1 -0
  15. package/dist/routes/organization-capabilities.routes.js +74 -0
  16. package/dist/routes/purchase-orders.routes.d.ts +2061 -0
  17. package/dist/routes/purchase-orders.routes.d.ts.map +1 -0
  18. package/dist/routes/purchase-orders.routes.js +55 -0
  19. package/dist/routes/staff.routes.d.ts +84 -0
  20. package/dist/routes/staff.routes.d.ts.map +1 -1
  21. package/dist/routes/trade-cash-events.routes.d.ts +3837 -0
  22. package/dist/routes/trade-cash-events.routes.d.ts.map +1 -0
  23. package/dist/routes/trade-cash-events.routes.js +126 -0
  24. package/dist/routes/waybills.routes.d.ts +210 -0
  25. package/dist/routes/waybills.routes.d.ts.map +1 -1
  26. package/dist/schemas/commodity-deals.schemas.d.ts +98 -0
  27. package/dist/schemas/commodity-deals.schemas.d.ts.map +1 -1
  28. package/dist/schemas/commodity-deals.schemas.js +7 -0
  29. package/dist/schemas/invoices.schemas.d.ts +144 -30
  30. package/dist/schemas/invoices.schemas.d.ts.map +1 -1
  31. package/dist/schemas/invoices.schemas.js +8 -2
  32. package/dist/schemas/livestock-groups.schemas.d.ts +302 -0
  33. package/dist/schemas/livestock-groups.schemas.d.ts.map +1 -1
  34. package/dist/schemas/livestock-groups.schemas.js +22 -0
  35. package/dist/schemas/organization-capabilities.schemas.d.ts +355 -0
  36. package/dist/schemas/organization-capabilities.schemas.d.ts.map +1 -0
  37. package/dist/schemas/organization-capabilities.schemas.js +19 -0
  38. package/dist/schemas/purchase-orders.schemas.d.ts +1031 -0
  39. package/dist/schemas/purchase-orders.schemas.d.ts.map +1 -0
  40. package/dist/schemas/purchase-orders.schemas.js +49 -0
  41. package/dist/schemas/staff.schemas.d.ts +76 -0
  42. package/dist/schemas/staff.schemas.d.ts.map +1 -1
  43. package/dist/schemas/staff.schemas.js +6 -0
  44. package/dist/schemas/trade-cash-events.schemas.d.ts +1524 -0
  45. package/dist/schemas/trade-cash-events.schemas.d.ts.map +1 -0
  46. package/dist/schemas/trade-cash-events.schemas.js +131 -0
  47. package/dist/schemas/waybills.schemas.d.ts +168 -0
  48. package/dist/schemas/waybills.schemas.d.ts.map +1 -1
  49. package/dist/schemas/waybills.schemas.js +9 -0
  50. package/package.json +1 -1
@@ -79,7 +79,7 @@ export declare const invoiceAttributesSchema: z.ZodObject<{
79
79
  total: z.ZodNumber;
80
80
  currency: z.ZodDefault<z.ZodString>;
81
81
  paymentTerms: z.ZodNullable<z.ZodOptional<z.ZodString>>;
82
- paymentStatus: z.ZodDefault<z.ZodEnum<["pending", "paid", "overdue", "cancelled"]>>;
82
+ paymentStatus: z.ZodDefault<z.ZodEnum<["pending", "partial", "paid", "overdue", "cancelled"]>>;
83
83
  paidAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
84
84
  notes: z.ZodNullable<z.ZodOptional<z.ZodString>>;
85
85
  pdfUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -87,6 +87,9 @@ export declare const invoiceAttributesSchema: z.ZodObject<{
87
87
  waybillNumber: z.ZodNullable<z.ZodOptional<z.ZodString>>;
88
88
  waybillId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
89
89
  totalInWords: z.ZodNullable<z.ZodOptional<z.ZodString>>;
90
+ farmId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
91
+ commercialIntent: z.ZodNullable<z.ZodOptional<z.ZodEnum<["farm_sale", "trade"]>>>;
92
+ invoiceKind: z.ZodDefault<z.ZodOptional<z.ZodEnum<["provisional", "final"]>>>;
90
93
  organizationId: z.ZodString;
91
94
  } & {
92
95
  createdAt: z.ZodString;
@@ -112,11 +115,14 @@ export declare const invoiceAttributesSchema: z.ZodObject<{
112
115
  billFromName: string;
113
116
  billToName: string;
114
117
  subtotal: number;
115
- paymentStatus: "pending" | "cancelled" | "paid" | "overdue";
118
+ paymentStatus: "partial" | "pending" | "cancelled" | "paid" | "overdue";
119
+ invoiceKind: "provisional" | "final";
120
+ farmId?: string | null | undefined;
116
121
  notes?: string | null | undefined;
117
122
  paidAt?: string | null | undefined;
118
123
  waybillNumber?: string | null | undefined;
119
124
  pdfUrl?: string | null | undefined;
125
+ commercialIntent?: "farm_sale" | "trade" | null | undefined;
120
126
  taxRate?: number | null | undefined;
121
127
  dueDate?: string | null | undefined;
122
128
  billFromAddress?: string | null | undefined;
@@ -153,11 +159,13 @@ export declare const invoiceAttributesSchema: z.ZodObject<{
153
159
  billFromName: string;
154
160
  billToName: string;
155
161
  subtotal: number;
162
+ farmId?: string | null | undefined;
156
163
  currency?: string | undefined;
157
164
  notes?: string | null | undefined;
158
165
  paidAt?: string | null | undefined;
159
166
  waybillNumber?: string | null | undefined;
160
167
  pdfUrl?: string | null | undefined;
168
+ commercialIntent?: "farm_sale" | "trade" | null | undefined;
161
169
  taxRate?: number | null | undefined;
162
170
  dueDate?: string | null | undefined;
163
171
  billFromAddress?: string | null | undefined;
@@ -171,10 +179,11 @@ export declare const invoiceAttributesSchema: z.ZodObject<{
171
179
  taxAmount?: number | null | undefined;
172
180
  discount?: number | null | undefined;
173
181
  paymentTerms?: string | null | undefined;
174
- paymentStatus?: "pending" | "cancelled" | "paid" | "overdue" | undefined;
182
+ paymentStatus?: "partial" | "pending" | "cancelled" | "paid" | "overdue" | undefined;
175
183
  bankAccountId?: string | null | undefined;
176
184
  waybillId?: string | null | undefined;
177
185
  totalInWords?: string | null | undefined;
186
+ invoiceKind?: "provisional" | "final" | undefined;
178
187
  }>;
179
188
  export declare const createInvoiceAttributesSchema: z.ZodObject<{
180
189
  issueDate: z.ZodOptional<z.ZodString>;
@@ -222,6 +231,9 @@ export declare const createInvoiceAttributesSchema: z.ZodObject<{
222
231
  waybillNumber: z.ZodOptional<z.ZodString>;
223
232
  waybillId: z.ZodOptional<z.ZodString>;
224
233
  totalInWords: z.ZodOptional<z.ZodString>;
234
+ farmId: z.ZodOptional<z.ZodString>;
235
+ commercialIntent: z.ZodOptional<z.ZodEnum<["farm_sale", "trade"]>>;
236
+ invoiceKind: z.ZodOptional<z.ZodEnum<["provisional", "final"]>>;
225
237
  }, "strip", z.ZodTypeAny, {
226
238
  currency: string;
227
239
  items: {
@@ -236,9 +248,11 @@ export declare const createInvoiceAttributesSchema: z.ZodObject<{
236
248
  }[];
237
249
  buyerId: string;
238
250
  billFromName: string;
251
+ farmId?: string | undefined;
239
252
  notes?: string | undefined;
240
253
  waybillNumber?: string | undefined;
241
254
  issueDate?: string | undefined;
255
+ commercialIntent?: "farm_sale" | "trade" | undefined;
242
256
  taxRate?: number | undefined;
243
257
  dueDate?: string | undefined;
244
258
  billFromAddress?: string | undefined;
@@ -250,6 +264,7 @@ export declare const createInvoiceAttributesSchema: z.ZodObject<{
250
264
  bankAccountId?: string | undefined;
251
265
  waybillId?: string | undefined;
252
266
  totalInWords?: string | undefined;
267
+ invoiceKind?: "provisional" | "final" | undefined;
253
268
  }, {
254
269
  items: {
255
270
  description: string;
@@ -263,10 +278,12 @@ export declare const createInvoiceAttributesSchema: z.ZodObject<{
263
278
  }[];
264
279
  buyerId: string;
265
280
  billFromName: string;
281
+ farmId?: string | undefined;
266
282
  currency?: string | undefined;
267
283
  notes?: string | undefined;
268
284
  waybillNumber?: string | undefined;
269
285
  issueDate?: string | undefined;
286
+ commercialIntent?: "farm_sale" | "trade" | undefined;
270
287
  taxRate?: number | undefined;
271
288
  dueDate?: string | undefined;
272
289
  billFromAddress?: string | undefined;
@@ -278,6 +295,7 @@ export declare const createInvoiceAttributesSchema: z.ZodObject<{
278
295
  bankAccountId?: string | undefined;
279
296
  waybillId?: string | undefined;
280
297
  totalInWords?: string | undefined;
298
+ invoiceKind?: "provisional" | "final" | undefined;
281
299
  }>;
282
300
  export declare const updateInvoiceAttributesSchema: z.ZodObject<{
283
301
  issueDate: z.ZodOptional<z.ZodOptional<z.ZodString>>;
@@ -325,9 +343,13 @@ export declare const updateInvoiceAttributesSchema: z.ZodObject<{
325
343
  waybillNumber: z.ZodOptional<z.ZodOptional<z.ZodString>>;
326
344
  waybillId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
327
345
  totalInWords: z.ZodOptional<z.ZodOptional<z.ZodString>>;
346
+ farmId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
347
+ commercialIntent: z.ZodOptional<z.ZodOptional<z.ZodEnum<["farm_sale", "trade"]>>>;
348
+ invoiceKind: z.ZodOptional<z.ZodOptional<z.ZodEnum<["provisional", "final"]>>>;
328
349
  } & {
329
- paymentStatus: z.ZodOptional<z.ZodEnum<["pending", "paid", "overdue", "cancelled"]>>;
350
+ paymentStatus: z.ZodOptional<z.ZodEnum<["pending", "partial", "paid", "overdue", "cancelled"]>>;
330
351
  }, "strip", z.ZodTypeAny, {
352
+ farmId?: string | undefined;
331
353
  currency?: string | undefined;
332
354
  notes?: string | undefined;
333
355
  items?: {
@@ -342,6 +364,7 @@ export declare const updateInvoiceAttributesSchema: z.ZodObject<{
342
364
  }[] | undefined;
343
365
  waybillNumber?: string | undefined;
344
366
  issueDate?: string | undefined;
367
+ commercialIntent?: "farm_sale" | "trade" | undefined;
345
368
  buyerId?: string | undefined;
346
369
  taxRate?: number | undefined;
347
370
  dueDate?: string | undefined;
@@ -352,11 +375,13 @@ export declare const updateInvoiceAttributesSchema: z.ZodObject<{
352
375
  billFromTaxId?: string | undefined;
353
376
  discount?: number | undefined;
354
377
  paymentTerms?: string | undefined;
355
- paymentStatus?: "pending" | "cancelled" | "paid" | "overdue" | undefined;
378
+ paymentStatus?: "partial" | "pending" | "cancelled" | "paid" | "overdue" | undefined;
356
379
  bankAccountId?: string | undefined;
357
380
  waybillId?: string | undefined;
358
381
  totalInWords?: string | undefined;
382
+ invoiceKind?: "provisional" | "final" | undefined;
359
383
  }, {
384
+ farmId?: string | undefined;
360
385
  currency?: string | undefined;
361
386
  notes?: string | undefined;
362
387
  items?: {
@@ -371,6 +396,7 @@ export declare const updateInvoiceAttributesSchema: z.ZodObject<{
371
396
  }[] | undefined;
372
397
  waybillNumber?: string | undefined;
373
398
  issueDate?: string | undefined;
399
+ commercialIntent?: "farm_sale" | "trade" | undefined;
374
400
  buyerId?: string | undefined;
375
401
  taxRate?: number | undefined;
376
402
  dueDate?: string | undefined;
@@ -381,10 +407,11 @@ export declare const updateInvoiceAttributesSchema: z.ZodObject<{
381
407
  billFromTaxId?: string | undefined;
382
408
  discount?: number | undefined;
383
409
  paymentTerms?: string | undefined;
384
- paymentStatus?: "pending" | "cancelled" | "paid" | "overdue" | undefined;
410
+ paymentStatus?: "partial" | "pending" | "cancelled" | "paid" | "overdue" | undefined;
385
411
  bankAccountId?: string | undefined;
386
412
  waybillId?: string | undefined;
387
413
  totalInWords?: string | undefined;
414
+ invoiceKind?: "provisional" | "final" | undefined;
388
415
  }>;
389
416
  export declare const createInvoiceSchema: z.ZodObject<{
390
417
  type: z.ZodLiteral<"invoices">;
@@ -434,6 +461,9 @@ export declare const createInvoiceSchema: z.ZodObject<{
434
461
  waybillNumber: z.ZodOptional<z.ZodString>;
435
462
  waybillId: z.ZodOptional<z.ZodString>;
436
463
  totalInWords: z.ZodOptional<z.ZodString>;
464
+ farmId: z.ZodOptional<z.ZodString>;
465
+ commercialIntent: z.ZodOptional<z.ZodEnum<["farm_sale", "trade"]>>;
466
+ invoiceKind: z.ZodOptional<z.ZodEnum<["provisional", "final"]>>;
437
467
  }, "strip", z.ZodTypeAny, {
438
468
  currency: string;
439
469
  items: {
@@ -448,9 +478,11 @@ export declare const createInvoiceSchema: z.ZodObject<{
448
478
  }[];
449
479
  buyerId: string;
450
480
  billFromName: string;
481
+ farmId?: string | undefined;
451
482
  notes?: string | undefined;
452
483
  waybillNumber?: string | undefined;
453
484
  issueDate?: string | undefined;
485
+ commercialIntent?: "farm_sale" | "trade" | undefined;
454
486
  taxRate?: number | undefined;
455
487
  dueDate?: string | undefined;
456
488
  billFromAddress?: string | undefined;
@@ -462,6 +494,7 @@ export declare const createInvoiceSchema: z.ZodObject<{
462
494
  bankAccountId?: string | undefined;
463
495
  waybillId?: string | undefined;
464
496
  totalInWords?: string | undefined;
497
+ invoiceKind?: "provisional" | "final" | undefined;
465
498
  }, {
466
499
  items: {
467
500
  description: string;
@@ -475,10 +508,12 @@ export declare const createInvoiceSchema: z.ZodObject<{
475
508
  }[];
476
509
  buyerId: string;
477
510
  billFromName: string;
511
+ farmId?: string | undefined;
478
512
  currency?: string | undefined;
479
513
  notes?: string | undefined;
480
514
  waybillNumber?: string | undefined;
481
515
  issueDate?: string | undefined;
516
+ commercialIntent?: "farm_sale" | "trade" | undefined;
482
517
  taxRate?: number | undefined;
483
518
  dueDate?: string | undefined;
484
519
  billFromAddress?: string | undefined;
@@ -490,6 +525,7 @@ export declare const createInvoiceSchema: z.ZodObject<{
490
525
  bankAccountId?: string | undefined;
491
526
  waybillId?: string | undefined;
492
527
  totalInWords?: string | undefined;
528
+ invoiceKind?: "provisional" | "final" | undefined;
493
529
  }>;
494
530
  }, "strip", z.ZodTypeAny, {
495
531
  type: "invoices";
@@ -507,9 +543,11 @@ export declare const createInvoiceSchema: z.ZodObject<{
507
543
  }[];
508
544
  buyerId: string;
509
545
  billFromName: string;
546
+ farmId?: string | undefined;
510
547
  notes?: string | undefined;
511
548
  waybillNumber?: string | undefined;
512
549
  issueDate?: string | undefined;
550
+ commercialIntent?: "farm_sale" | "trade" | undefined;
513
551
  taxRate?: number | undefined;
514
552
  dueDate?: string | undefined;
515
553
  billFromAddress?: string | undefined;
@@ -521,6 +559,7 @@ export declare const createInvoiceSchema: z.ZodObject<{
521
559
  bankAccountId?: string | undefined;
522
560
  waybillId?: string | undefined;
523
561
  totalInWords?: string | undefined;
562
+ invoiceKind?: "provisional" | "final" | undefined;
524
563
  };
525
564
  }, {
526
565
  type: "invoices";
@@ -537,10 +576,12 @@ export declare const createInvoiceSchema: z.ZodObject<{
537
576
  }[];
538
577
  buyerId: string;
539
578
  billFromName: string;
579
+ farmId?: string | undefined;
540
580
  currency?: string | undefined;
541
581
  notes?: string | undefined;
542
582
  waybillNumber?: string | undefined;
543
583
  issueDate?: string | undefined;
584
+ commercialIntent?: "farm_sale" | "trade" | undefined;
544
585
  taxRate?: number | undefined;
545
586
  dueDate?: string | undefined;
546
587
  billFromAddress?: string | undefined;
@@ -552,6 +593,7 @@ export declare const createInvoiceSchema: z.ZodObject<{
552
593
  bankAccountId?: string | undefined;
553
594
  waybillId?: string | undefined;
554
595
  totalInWords?: string | undefined;
596
+ invoiceKind?: "provisional" | "final" | undefined;
555
597
  };
556
598
  }>;
557
599
  export declare const updateInvoiceSchema: z.ZodObject<{
@@ -603,9 +645,13 @@ export declare const updateInvoiceSchema: z.ZodObject<{
603
645
  waybillNumber: z.ZodOptional<z.ZodOptional<z.ZodString>>;
604
646
  waybillId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
605
647
  totalInWords: z.ZodOptional<z.ZodOptional<z.ZodString>>;
648
+ farmId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
649
+ commercialIntent: z.ZodOptional<z.ZodOptional<z.ZodEnum<["farm_sale", "trade"]>>>;
650
+ invoiceKind: z.ZodOptional<z.ZodOptional<z.ZodEnum<["provisional", "final"]>>>;
606
651
  } & {
607
- paymentStatus: z.ZodOptional<z.ZodEnum<["pending", "paid", "overdue", "cancelled"]>>;
652
+ paymentStatus: z.ZodOptional<z.ZodEnum<["pending", "partial", "paid", "overdue", "cancelled"]>>;
608
653
  }, "strip", z.ZodTypeAny, {
654
+ farmId?: string | undefined;
609
655
  currency?: string | undefined;
610
656
  notes?: string | undefined;
611
657
  items?: {
@@ -620,6 +666,7 @@ export declare const updateInvoiceSchema: z.ZodObject<{
620
666
  }[] | undefined;
621
667
  waybillNumber?: string | undefined;
622
668
  issueDate?: string | undefined;
669
+ commercialIntent?: "farm_sale" | "trade" | undefined;
623
670
  buyerId?: string | undefined;
624
671
  taxRate?: number | undefined;
625
672
  dueDate?: string | undefined;
@@ -630,11 +677,13 @@ export declare const updateInvoiceSchema: z.ZodObject<{
630
677
  billFromTaxId?: string | undefined;
631
678
  discount?: number | undefined;
632
679
  paymentTerms?: string | undefined;
633
- paymentStatus?: "pending" | "cancelled" | "paid" | "overdue" | undefined;
680
+ paymentStatus?: "partial" | "pending" | "cancelled" | "paid" | "overdue" | undefined;
634
681
  bankAccountId?: string | undefined;
635
682
  waybillId?: string | undefined;
636
683
  totalInWords?: string | undefined;
684
+ invoiceKind?: "provisional" | "final" | undefined;
637
685
  }, {
686
+ farmId?: string | undefined;
638
687
  currency?: string | undefined;
639
688
  notes?: string | undefined;
640
689
  items?: {
@@ -649,6 +698,7 @@ export declare const updateInvoiceSchema: z.ZodObject<{
649
698
  }[] | undefined;
650
699
  waybillNumber?: string | undefined;
651
700
  issueDate?: string | undefined;
701
+ commercialIntent?: "farm_sale" | "trade" | undefined;
652
702
  buyerId?: string | undefined;
653
703
  taxRate?: number | undefined;
654
704
  dueDate?: string | undefined;
@@ -659,15 +709,17 @@ export declare const updateInvoiceSchema: z.ZodObject<{
659
709
  billFromTaxId?: string | undefined;
660
710
  discount?: number | undefined;
661
711
  paymentTerms?: string | undefined;
662
- paymentStatus?: "pending" | "cancelled" | "paid" | "overdue" | undefined;
712
+ paymentStatus?: "partial" | "pending" | "cancelled" | "paid" | "overdue" | undefined;
663
713
  bankAccountId?: string | undefined;
664
714
  waybillId?: string | undefined;
665
715
  totalInWords?: string | undefined;
716
+ invoiceKind?: "provisional" | "final" | undefined;
666
717
  }>;
667
718
  }, "strip", z.ZodTypeAny, {
668
719
  type: "invoices";
669
720
  id: string;
670
721
  attributes: {
722
+ farmId?: string | undefined;
671
723
  currency?: string | undefined;
672
724
  notes?: string | undefined;
673
725
  items?: {
@@ -682,6 +734,7 @@ export declare const updateInvoiceSchema: z.ZodObject<{
682
734
  }[] | undefined;
683
735
  waybillNumber?: string | undefined;
684
736
  issueDate?: string | undefined;
737
+ commercialIntent?: "farm_sale" | "trade" | undefined;
685
738
  buyerId?: string | undefined;
686
739
  taxRate?: number | undefined;
687
740
  dueDate?: string | undefined;
@@ -692,15 +745,17 @@ export declare const updateInvoiceSchema: z.ZodObject<{
692
745
  billFromTaxId?: string | undefined;
693
746
  discount?: number | undefined;
694
747
  paymentTerms?: string | undefined;
695
- paymentStatus?: "pending" | "cancelled" | "paid" | "overdue" | undefined;
748
+ paymentStatus?: "partial" | "pending" | "cancelled" | "paid" | "overdue" | undefined;
696
749
  bankAccountId?: string | undefined;
697
750
  waybillId?: string | undefined;
698
751
  totalInWords?: string | undefined;
752
+ invoiceKind?: "provisional" | "final" | undefined;
699
753
  };
700
754
  }, {
701
755
  type: "invoices";
702
756
  id: string;
703
757
  attributes: {
758
+ farmId?: string | undefined;
704
759
  currency?: string | undefined;
705
760
  notes?: string | undefined;
706
761
  items?: {
@@ -715,6 +770,7 @@ export declare const updateInvoiceSchema: z.ZodObject<{
715
770
  }[] | undefined;
716
771
  waybillNumber?: string | undefined;
717
772
  issueDate?: string | undefined;
773
+ commercialIntent?: "farm_sale" | "trade" | undefined;
718
774
  buyerId?: string | undefined;
719
775
  taxRate?: number | undefined;
720
776
  dueDate?: string | undefined;
@@ -725,10 +781,11 @@ export declare const updateInvoiceSchema: z.ZodObject<{
725
781
  billFromTaxId?: string | undefined;
726
782
  discount?: number | undefined;
727
783
  paymentTerms?: string | undefined;
728
- paymentStatus?: "pending" | "cancelled" | "paid" | "overdue" | undefined;
784
+ paymentStatus?: "partial" | "pending" | "cancelled" | "paid" | "overdue" | undefined;
729
785
  bankAccountId?: string | undefined;
730
786
  waybillId?: string | undefined;
731
787
  totalInWords?: string | undefined;
788
+ invoiceKind?: "provisional" | "final" | undefined;
732
789
  };
733
790
  }>;
734
791
  export declare const invoiceResourceSchema: z.ZodObject<{
@@ -783,7 +840,7 @@ export declare const invoiceResourceSchema: z.ZodObject<{
783
840
  total: z.ZodNumber;
784
841
  currency: z.ZodDefault<z.ZodString>;
785
842
  paymentTerms: z.ZodNullable<z.ZodOptional<z.ZodString>>;
786
- paymentStatus: z.ZodDefault<z.ZodEnum<["pending", "paid", "overdue", "cancelled"]>>;
843
+ paymentStatus: z.ZodDefault<z.ZodEnum<["pending", "partial", "paid", "overdue", "cancelled"]>>;
787
844
  paidAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
788
845
  notes: z.ZodNullable<z.ZodOptional<z.ZodString>>;
789
846
  pdfUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -791,6 +848,9 @@ export declare const invoiceResourceSchema: z.ZodObject<{
791
848
  waybillNumber: z.ZodNullable<z.ZodOptional<z.ZodString>>;
792
849
  waybillId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
793
850
  totalInWords: z.ZodNullable<z.ZodOptional<z.ZodString>>;
851
+ farmId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
852
+ commercialIntent: z.ZodNullable<z.ZodOptional<z.ZodEnum<["farm_sale", "trade"]>>>;
853
+ invoiceKind: z.ZodDefault<z.ZodOptional<z.ZodEnum<["provisional", "final"]>>>;
794
854
  organizationId: z.ZodString;
795
855
  } & {
796
856
  createdAt: z.ZodString;
@@ -816,11 +876,14 @@ export declare const invoiceResourceSchema: z.ZodObject<{
816
876
  billFromName: string;
817
877
  billToName: string;
818
878
  subtotal: number;
819
- paymentStatus: "pending" | "cancelled" | "paid" | "overdue";
879
+ paymentStatus: "partial" | "pending" | "cancelled" | "paid" | "overdue";
880
+ invoiceKind: "provisional" | "final";
881
+ farmId?: string | null | undefined;
820
882
  notes?: string | null | undefined;
821
883
  paidAt?: string | null | undefined;
822
884
  waybillNumber?: string | null | undefined;
823
885
  pdfUrl?: string | null | undefined;
886
+ commercialIntent?: "farm_sale" | "trade" | null | undefined;
824
887
  taxRate?: number | null | undefined;
825
888
  dueDate?: string | null | undefined;
826
889
  billFromAddress?: string | null | undefined;
@@ -857,11 +920,13 @@ export declare const invoiceResourceSchema: z.ZodObject<{
857
920
  billFromName: string;
858
921
  billToName: string;
859
922
  subtotal: number;
923
+ farmId?: string | null | undefined;
860
924
  currency?: string | undefined;
861
925
  notes?: string | null | undefined;
862
926
  paidAt?: string | null | undefined;
863
927
  waybillNumber?: string | null | undefined;
864
928
  pdfUrl?: string | null | undefined;
929
+ commercialIntent?: "farm_sale" | "trade" | null | undefined;
865
930
  taxRate?: number | null | undefined;
866
931
  dueDate?: string | null | undefined;
867
932
  billFromAddress?: string | null | undefined;
@@ -875,10 +940,11 @@ export declare const invoiceResourceSchema: z.ZodObject<{
875
940
  taxAmount?: number | null | undefined;
876
941
  discount?: number | null | undefined;
877
942
  paymentTerms?: string | null | undefined;
878
- paymentStatus?: "pending" | "cancelled" | "paid" | "overdue" | undefined;
943
+ paymentStatus?: "partial" | "pending" | "cancelled" | "paid" | "overdue" | undefined;
879
944
  bankAccountId?: string | null | undefined;
880
945
  waybillId?: string | null | undefined;
881
946
  totalInWords?: string | null | undefined;
947
+ invoiceKind?: "provisional" | "final" | undefined;
882
948
  }>;
883
949
  relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
884
950
  links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -907,11 +973,14 @@ export declare const invoiceResourceSchema: z.ZodObject<{
907
973
  billFromName: string;
908
974
  billToName: string;
909
975
  subtotal: number;
910
- paymentStatus: "pending" | "cancelled" | "paid" | "overdue";
976
+ paymentStatus: "partial" | "pending" | "cancelled" | "paid" | "overdue";
977
+ invoiceKind: "provisional" | "final";
978
+ farmId?: string | null | undefined;
911
979
  notes?: string | null | undefined;
912
980
  paidAt?: string | null | undefined;
913
981
  waybillNumber?: string | null | undefined;
914
982
  pdfUrl?: string | null | undefined;
983
+ commercialIntent?: "farm_sale" | "trade" | null | undefined;
915
984
  taxRate?: number | null | undefined;
916
985
  dueDate?: string | null | undefined;
917
986
  billFromAddress?: string | null | undefined;
@@ -955,11 +1024,13 @@ export declare const invoiceResourceSchema: z.ZodObject<{
955
1024
  billFromName: string;
956
1025
  billToName: string;
957
1026
  subtotal: number;
1027
+ farmId?: string | null | undefined;
958
1028
  currency?: string | undefined;
959
1029
  notes?: string | null | undefined;
960
1030
  paidAt?: string | null | undefined;
961
1031
  waybillNumber?: string | null | undefined;
962
1032
  pdfUrl?: string | null | undefined;
1033
+ commercialIntent?: "farm_sale" | "trade" | null | undefined;
963
1034
  taxRate?: number | null | undefined;
964
1035
  dueDate?: string | null | undefined;
965
1036
  billFromAddress?: string | null | undefined;
@@ -973,10 +1044,11 @@ export declare const invoiceResourceSchema: z.ZodObject<{
973
1044
  taxAmount?: number | null | undefined;
974
1045
  discount?: number | null | undefined;
975
1046
  paymentTerms?: string | null | undefined;
976
- paymentStatus?: "pending" | "cancelled" | "paid" | "overdue" | undefined;
1047
+ paymentStatus?: "partial" | "pending" | "cancelled" | "paid" | "overdue" | undefined;
977
1048
  bankAccountId?: string | null | undefined;
978
1049
  waybillId?: string | null | undefined;
979
1050
  totalInWords?: string | null | undefined;
1051
+ invoiceKind?: "provisional" | "final" | undefined;
980
1052
  };
981
1053
  relationships?: Record<string, unknown> | undefined;
982
1054
  links?: Record<string, string> | undefined;
@@ -1035,7 +1107,7 @@ export declare const invoiceResponseSchema: z.ZodObject<{
1035
1107
  total: z.ZodNumber;
1036
1108
  currency: z.ZodDefault<z.ZodString>;
1037
1109
  paymentTerms: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1038
- paymentStatus: z.ZodDefault<z.ZodEnum<["pending", "paid", "overdue", "cancelled"]>>;
1110
+ paymentStatus: z.ZodDefault<z.ZodEnum<["pending", "partial", "paid", "overdue", "cancelled"]>>;
1039
1111
  paidAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1040
1112
  notes: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1041
1113
  pdfUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -1043,6 +1115,9 @@ export declare const invoiceResponseSchema: z.ZodObject<{
1043
1115
  waybillNumber: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1044
1116
  waybillId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1045
1117
  totalInWords: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1118
+ farmId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1119
+ commercialIntent: z.ZodNullable<z.ZodOptional<z.ZodEnum<["farm_sale", "trade"]>>>;
1120
+ invoiceKind: z.ZodDefault<z.ZodOptional<z.ZodEnum<["provisional", "final"]>>>;
1046
1121
  organizationId: z.ZodString;
1047
1122
  } & {
1048
1123
  createdAt: z.ZodString;
@@ -1068,11 +1143,14 @@ export declare const invoiceResponseSchema: z.ZodObject<{
1068
1143
  billFromName: string;
1069
1144
  billToName: string;
1070
1145
  subtotal: number;
1071
- paymentStatus: "pending" | "cancelled" | "paid" | "overdue";
1146
+ paymentStatus: "partial" | "pending" | "cancelled" | "paid" | "overdue";
1147
+ invoiceKind: "provisional" | "final";
1148
+ farmId?: string | null | undefined;
1072
1149
  notes?: string | null | undefined;
1073
1150
  paidAt?: string | null | undefined;
1074
1151
  waybillNumber?: string | null | undefined;
1075
1152
  pdfUrl?: string | null | undefined;
1153
+ commercialIntent?: "farm_sale" | "trade" | null | undefined;
1076
1154
  taxRate?: number | null | undefined;
1077
1155
  dueDate?: string | null | undefined;
1078
1156
  billFromAddress?: string | null | undefined;
@@ -1109,11 +1187,13 @@ export declare const invoiceResponseSchema: z.ZodObject<{
1109
1187
  billFromName: string;
1110
1188
  billToName: string;
1111
1189
  subtotal: number;
1190
+ farmId?: string | null | undefined;
1112
1191
  currency?: string | undefined;
1113
1192
  notes?: string | null | undefined;
1114
1193
  paidAt?: string | null | undefined;
1115
1194
  waybillNumber?: string | null | undefined;
1116
1195
  pdfUrl?: string | null | undefined;
1196
+ commercialIntent?: "farm_sale" | "trade" | null | undefined;
1117
1197
  taxRate?: number | null | undefined;
1118
1198
  dueDate?: string | null | undefined;
1119
1199
  billFromAddress?: string | null | undefined;
@@ -1127,10 +1207,11 @@ export declare const invoiceResponseSchema: z.ZodObject<{
1127
1207
  taxAmount?: number | null | undefined;
1128
1208
  discount?: number | null | undefined;
1129
1209
  paymentTerms?: string | null | undefined;
1130
- paymentStatus?: "pending" | "cancelled" | "paid" | "overdue" | undefined;
1210
+ paymentStatus?: "partial" | "pending" | "cancelled" | "paid" | "overdue" | undefined;
1131
1211
  bankAccountId?: string | null | undefined;
1132
1212
  waybillId?: string | null | undefined;
1133
1213
  totalInWords?: string | null | undefined;
1214
+ invoiceKind?: "provisional" | "final" | undefined;
1134
1215
  }>;
1135
1216
  relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1136
1217
  links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -1159,11 +1240,14 @@ export declare const invoiceResponseSchema: z.ZodObject<{
1159
1240
  billFromName: string;
1160
1241
  billToName: string;
1161
1242
  subtotal: number;
1162
- paymentStatus: "pending" | "cancelled" | "paid" | "overdue";
1243
+ paymentStatus: "partial" | "pending" | "cancelled" | "paid" | "overdue";
1244
+ invoiceKind: "provisional" | "final";
1245
+ farmId?: string | null | undefined;
1163
1246
  notes?: string | null | undefined;
1164
1247
  paidAt?: string | null | undefined;
1165
1248
  waybillNumber?: string | null | undefined;
1166
1249
  pdfUrl?: string | null | undefined;
1250
+ commercialIntent?: "farm_sale" | "trade" | null | undefined;
1167
1251
  taxRate?: number | null | undefined;
1168
1252
  dueDate?: string | null | undefined;
1169
1253
  billFromAddress?: string | null | undefined;
@@ -1207,11 +1291,13 @@ export declare const invoiceResponseSchema: z.ZodObject<{
1207
1291
  billFromName: string;
1208
1292
  billToName: string;
1209
1293
  subtotal: number;
1294
+ farmId?: string | null | undefined;
1210
1295
  currency?: string | undefined;
1211
1296
  notes?: string | null | undefined;
1212
1297
  paidAt?: string | null | undefined;
1213
1298
  waybillNumber?: string | null | undefined;
1214
1299
  pdfUrl?: string | null | undefined;
1300
+ commercialIntent?: "farm_sale" | "trade" | null | undefined;
1215
1301
  taxRate?: number | null | undefined;
1216
1302
  dueDate?: string | null | undefined;
1217
1303
  billFromAddress?: string | null | undefined;
@@ -1225,10 +1311,11 @@ export declare const invoiceResponseSchema: z.ZodObject<{
1225
1311
  taxAmount?: number | null | undefined;
1226
1312
  discount?: number | null | undefined;
1227
1313
  paymentTerms?: string | null | undefined;
1228
- paymentStatus?: "pending" | "cancelled" | "paid" | "overdue" | undefined;
1314
+ paymentStatus?: "partial" | "pending" | "cancelled" | "paid" | "overdue" | undefined;
1229
1315
  bankAccountId?: string | null | undefined;
1230
1316
  waybillId?: string | null | undefined;
1231
1317
  totalInWords?: string | null | undefined;
1318
+ invoiceKind?: "provisional" | "final" | undefined;
1232
1319
  };
1233
1320
  relationships?: Record<string, unknown> | undefined;
1234
1321
  links?: Record<string, string> | undefined;
@@ -1283,11 +1370,14 @@ export declare const invoiceResponseSchema: z.ZodObject<{
1283
1370
  billFromName: string;
1284
1371
  billToName: string;
1285
1372
  subtotal: number;
1286
- paymentStatus: "pending" | "cancelled" | "paid" | "overdue";
1373
+ paymentStatus: "partial" | "pending" | "cancelled" | "paid" | "overdue";
1374
+ invoiceKind: "provisional" | "final";
1375
+ farmId?: string | null | undefined;
1287
1376
  notes?: string | null | undefined;
1288
1377
  paidAt?: string | null | undefined;
1289
1378
  waybillNumber?: string | null | undefined;
1290
1379
  pdfUrl?: string | null | undefined;
1380
+ commercialIntent?: "farm_sale" | "trade" | null | undefined;
1291
1381
  taxRate?: number | null | undefined;
1292
1382
  dueDate?: string | null | undefined;
1293
1383
  billFromAddress?: string | null | undefined;
@@ -1343,11 +1433,13 @@ export declare const invoiceResponseSchema: z.ZodObject<{
1343
1433
  billFromName: string;
1344
1434
  billToName: string;
1345
1435
  subtotal: number;
1436
+ farmId?: string | null | undefined;
1346
1437
  currency?: string | undefined;
1347
1438
  notes?: string | null | undefined;
1348
1439
  paidAt?: string | null | undefined;
1349
1440
  waybillNumber?: string | null | undefined;
1350
1441
  pdfUrl?: string | null | undefined;
1442
+ commercialIntent?: "farm_sale" | "trade" | null | undefined;
1351
1443
  taxRate?: number | null | undefined;
1352
1444
  dueDate?: string | null | undefined;
1353
1445
  billFromAddress?: string | null | undefined;
@@ -1361,10 +1453,11 @@ export declare const invoiceResponseSchema: z.ZodObject<{
1361
1453
  taxAmount?: number | null | undefined;
1362
1454
  discount?: number | null | undefined;
1363
1455
  paymentTerms?: string | null | undefined;
1364
- paymentStatus?: "pending" | "cancelled" | "paid" | "overdue" | undefined;
1456
+ paymentStatus?: "partial" | "pending" | "cancelled" | "paid" | "overdue" | undefined;
1365
1457
  bankAccountId?: string | null | undefined;
1366
1458
  waybillId?: string | null | undefined;
1367
1459
  totalInWords?: string | null | undefined;
1460
+ invoiceKind?: "provisional" | "final" | undefined;
1368
1461
  };
1369
1462
  relationships?: Record<string, unknown> | undefined;
1370
1463
  links?: Record<string, string> | undefined;
@@ -1434,7 +1527,7 @@ export declare const invoiceListResponseSchema: z.ZodObject<{
1434
1527
  total: z.ZodNumber;
1435
1528
  currency: z.ZodDefault<z.ZodString>;
1436
1529
  paymentTerms: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1437
- paymentStatus: z.ZodDefault<z.ZodEnum<["pending", "paid", "overdue", "cancelled"]>>;
1530
+ paymentStatus: z.ZodDefault<z.ZodEnum<["pending", "partial", "paid", "overdue", "cancelled"]>>;
1438
1531
  paidAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1439
1532
  notes: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1440
1533
  pdfUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -1442,6 +1535,9 @@ export declare const invoiceListResponseSchema: z.ZodObject<{
1442
1535
  waybillNumber: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1443
1536
  waybillId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1444
1537
  totalInWords: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1538
+ farmId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1539
+ commercialIntent: z.ZodNullable<z.ZodOptional<z.ZodEnum<["farm_sale", "trade"]>>>;
1540
+ invoiceKind: z.ZodDefault<z.ZodOptional<z.ZodEnum<["provisional", "final"]>>>;
1445
1541
  organizationId: z.ZodString;
1446
1542
  } & {
1447
1543
  createdAt: z.ZodString;
@@ -1467,11 +1563,14 @@ export declare const invoiceListResponseSchema: z.ZodObject<{
1467
1563
  billFromName: string;
1468
1564
  billToName: string;
1469
1565
  subtotal: number;
1470
- paymentStatus: "pending" | "cancelled" | "paid" | "overdue";
1566
+ paymentStatus: "partial" | "pending" | "cancelled" | "paid" | "overdue";
1567
+ invoiceKind: "provisional" | "final";
1568
+ farmId?: string | null | undefined;
1471
1569
  notes?: string | null | undefined;
1472
1570
  paidAt?: string | null | undefined;
1473
1571
  waybillNumber?: string | null | undefined;
1474
1572
  pdfUrl?: string | null | undefined;
1573
+ commercialIntent?: "farm_sale" | "trade" | null | undefined;
1475
1574
  taxRate?: number | null | undefined;
1476
1575
  dueDate?: string | null | undefined;
1477
1576
  billFromAddress?: string | null | undefined;
@@ -1508,11 +1607,13 @@ export declare const invoiceListResponseSchema: z.ZodObject<{
1508
1607
  billFromName: string;
1509
1608
  billToName: string;
1510
1609
  subtotal: number;
1610
+ farmId?: string | null | undefined;
1511
1611
  currency?: string | undefined;
1512
1612
  notes?: string | null | undefined;
1513
1613
  paidAt?: string | null | undefined;
1514
1614
  waybillNumber?: string | null | undefined;
1515
1615
  pdfUrl?: string | null | undefined;
1616
+ commercialIntent?: "farm_sale" | "trade" | null | undefined;
1516
1617
  taxRate?: number | null | undefined;
1517
1618
  dueDate?: string | null | undefined;
1518
1619
  billFromAddress?: string | null | undefined;
@@ -1526,10 +1627,11 @@ export declare const invoiceListResponseSchema: z.ZodObject<{
1526
1627
  taxAmount?: number | null | undefined;
1527
1628
  discount?: number | null | undefined;
1528
1629
  paymentTerms?: string | null | undefined;
1529
- paymentStatus?: "pending" | "cancelled" | "paid" | "overdue" | undefined;
1630
+ paymentStatus?: "partial" | "pending" | "cancelled" | "paid" | "overdue" | undefined;
1530
1631
  bankAccountId?: string | null | undefined;
1531
1632
  waybillId?: string | null | undefined;
1532
1633
  totalInWords?: string | null | undefined;
1634
+ invoiceKind?: "provisional" | "final" | undefined;
1533
1635
  }>;
1534
1636
  relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1535
1637
  links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -1558,11 +1660,14 @@ export declare const invoiceListResponseSchema: z.ZodObject<{
1558
1660
  billFromName: string;
1559
1661
  billToName: string;
1560
1662
  subtotal: number;
1561
- paymentStatus: "pending" | "cancelled" | "paid" | "overdue";
1663
+ paymentStatus: "partial" | "pending" | "cancelled" | "paid" | "overdue";
1664
+ invoiceKind: "provisional" | "final";
1665
+ farmId?: string | null | undefined;
1562
1666
  notes?: string | null | undefined;
1563
1667
  paidAt?: string | null | undefined;
1564
1668
  waybillNumber?: string | null | undefined;
1565
1669
  pdfUrl?: string | null | undefined;
1670
+ commercialIntent?: "farm_sale" | "trade" | null | undefined;
1566
1671
  taxRate?: number | null | undefined;
1567
1672
  dueDate?: string | null | undefined;
1568
1673
  billFromAddress?: string | null | undefined;
@@ -1606,11 +1711,13 @@ export declare const invoiceListResponseSchema: z.ZodObject<{
1606
1711
  billFromName: string;
1607
1712
  billToName: string;
1608
1713
  subtotal: number;
1714
+ farmId?: string | null | undefined;
1609
1715
  currency?: string | undefined;
1610
1716
  notes?: string | null | undefined;
1611
1717
  paidAt?: string | null | undefined;
1612
1718
  waybillNumber?: string | null | undefined;
1613
1719
  pdfUrl?: string | null | undefined;
1720
+ commercialIntent?: "farm_sale" | "trade" | null | undefined;
1614
1721
  taxRate?: number | null | undefined;
1615
1722
  dueDate?: string | null | undefined;
1616
1723
  billFromAddress?: string | null | undefined;
@@ -1624,10 +1731,11 @@ export declare const invoiceListResponseSchema: z.ZodObject<{
1624
1731
  taxAmount?: number | null | undefined;
1625
1732
  discount?: number | null | undefined;
1626
1733
  paymentTerms?: string | null | undefined;
1627
- paymentStatus?: "pending" | "cancelled" | "paid" | "overdue" | undefined;
1734
+ paymentStatus?: "partial" | "pending" | "cancelled" | "paid" | "overdue" | undefined;
1628
1735
  bankAccountId?: string | null | undefined;
1629
1736
  waybillId?: string | null | undefined;
1630
1737
  totalInWords?: string | null | undefined;
1738
+ invoiceKind?: "provisional" | "final" | undefined;
1631
1739
  };
1632
1740
  relationships?: Record<string, unknown> | undefined;
1633
1741
  links?: Record<string, string> | undefined;
@@ -1682,11 +1790,14 @@ export declare const invoiceListResponseSchema: z.ZodObject<{
1682
1790
  billFromName: string;
1683
1791
  billToName: string;
1684
1792
  subtotal: number;
1685
- paymentStatus: "pending" | "cancelled" | "paid" | "overdue";
1793
+ paymentStatus: "partial" | "pending" | "cancelled" | "paid" | "overdue";
1794
+ invoiceKind: "provisional" | "final";
1795
+ farmId?: string | null | undefined;
1686
1796
  notes?: string | null | undefined;
1687
1797
  paidAt?: string | null | undefined;
1688
1798
  waybillNumber?: string | null | undefined;
1689
1799
  pdfUrl?: string | null | undefined;
1800
+ commercialIntent?: "farm_sale" | "trade" | null | undefined;
1690
1801
  taxRate?: number | null | undefined;
1691
1802
  dueDate?: string | null | undefined;
1692
1803
  billFromAddress?: string | null | undefined;
@@ -1742,11 +1853,13 @@ export declare const invoiceListResponseSchema: z.ZodObject<{
1742
1853
  billFromName: string;
1743
1854
  billToName: string;
1744
1855
  subtotal: number;
1856
+ farmId?: string | null | undefined;
1745
1857
  currency?: string | undefined;
1746
1858
  notes?: string | null | undefined;
1747
1859
  paidAt?: string | null | undefined;
1748
1860
  waybillNumber?: string | null | undefined;
1749
1861
  pdfUrl?: string | null | undefined;
1862
+ commercialIntent?: "farm_sale" | "trade" | null | undefined;
1750
1863
  taxRate?: number | null | undefined;
1751
1864
  dueDate?: string | null | undefined;
1752
1865
  billFromAddress?: string | null | undefined;
@@ -1760,10 +1873,11 @@ export declare const invoiceListResponseSchema: z.ZodObject<{
1760
1873
  taxAmount?: number | null | undefined;
1761
1874
  discount?: number | null | undefined;
1762
1875
  paymentTerms?: string | null | undefined;
1763
- paymentStatus?: "pending" | "cancelled" | "paid" | "overdue" | undefined;
1876
+ paymentStatus?: "partial" | "pending" | "cancelled" | "paid" | "overdue" | undefined;
1764
1877
  bankAccountId?: string | null | undefined;
1765
1878
  waybillId?: string | null | undefined;
1766
1879
  totalInWords?: string | null | undefined;
1880
+ invoiceKind?: "provisional" | "final" | undefined;
1767
1881
  };
1768
1882
  relationships?: Record<string, unknown> | undefined;
1769
1883
  links?: Record<string, string> | undefined;