@deepintel-ltd/farmpro-contracts 1.5.24 → 1.5.25
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/routes/invoices.routes.d.ts +44 -100
- package/dist/routes/invoices.routes.d.ts.map +1 -1
- package/dist/routes/organizations.routes.d.ts +377 -1
- package/dist/routes/organizations.routes.d.ts.map +1 -1
- package/dist/routes/organizations.routes.js +16 -1
- package/dist/routes/suppliers.routes.d.ts +76 -76
- package/dist/routes/suppliers.routes.js +18 -18
- package/dist/routes/waybills.routes.d.ts +44 -86
- package/dist/routes/waybills.routes.d.ts.map +1 -1
- package/dist/schemas/invoices.schemas.d.ts +34 -98
- package/dist/schemas/invoices.schemas.d.ts.map +1 -1
- package/dist/schemas/invoices.schemas.js +1 -5
- package/dist/schemas/suppliers.schemas.d.ts +44 -44
- package/dist/schemas/suppliers.schemas.js +2 -2
- package/dist/schemas/waybills.schemas.d.ts +34 -82
- package/dist/schemas/waybills.schemas.d.ts.map +1 -1
- package/dist/schemas/waybills.schemas.js +1 -4
- package/package.json +1 -1
|
@@ -99,6 +99,7 @@ export declare const invoicesRouter: {
|
|
|
99
99
|
createdAt: string;
|
|
100
100
|
updatedAt: string;
|
|
101
101
|
currency: string;
|
|
102
|
+
organizationId: string;
|
|
102
103
|
total: number;
|
|
103
104
|
items: {
|
|
104
105
|
description: string;
|
|
@@ -110,7 +111,6 @@ export declare const invoicesRouter: {
|
|
|
110
111
|
taxRate?: number | undefined;
|
|
111
112
|
remark?: string | undefined;
|
|
112
113
|
}[];
|
|
113
|
-
organizationId: string;
|
|
114
114
|
issueDate: string;
|
|
115
115
|
invoiceNumber: string;
|
|
116
116
|
billFromName: string;
|
|
@@ -139,6 +139,7 @@ export declare const invoicesRouter: {
|
|
|
139
139
|
}, {
|
|
140
140
|
createdAt: string;
|
|
141
141
|
updatedAt: string;
|
|
142
|
+
organizationId: string;
|
|
142
143
|
total: number;
|
|
143
144
|
items: {
|
|
144
145
|
description: string;
|
|
@@ -150,7 +151,6 @@ export declare const invoicesRouter: {
|
|
|
150
151
|
taxRate?: number | undefined;
|
|
151
152
|
remark?: string | undefined;
|
|
152
153
|
}[];
|
|
153
|
-
organizationId: string;
|
|
154
154
|
issueDate: string;
|
|
155
155
|
invoiceNumber: string;
|
|
156
156
|
billFromName: string;
|
|
@@ -188,6 +188,7 @@ export declare const invoicesRouter: {
|
|
|
188
188
|
createdAt: string;
|
|
189
189
|
updatedAt: string;
|
|
190
190
|
currency: string;
|
|
191
|
+
organizationId: string;
|
|
191
192
|
total: number;
|
|
192
193
|
items: {
|
|
193
194
|
description: string;
|
|
@@ -199,7 +200,6 @@ export declare const invoicesRouter: {
|
|
|
199
200
|
taxRate?: number | undefined;
|
|
200
201
|
remark?: string | undefined;
|
|
201
202
|
}[];
|
|
202
|
-
organizationId: string;
|
|
203
203
|
issueDate: string;
|
|
204
204
|
invoiceNumber: string;
|
|
205
205
|
billFromName: string;
|
|
@@ -235,6 +235,7 @@ export declare const invoicesRouter: {
|
|
|
235
235
|
attributes: {
|
|
236
236
|
createdAt: string;
|
|
237
237
|
updatedAt: string;
|
|
238
|
+
organizationId: string;
|
|
238
239
|
total: number;
|
|
239
240
|
items: {
|
|
240
241
|
description: string;
|
|
@@ -246,7 +247,6 @@ export declare const invoicesRouter: {
|
|
|
246
247
|
taxRate?: number | undefined;
|
|
247
248
|
remark?: string | undefined;
|
|
248
249
|
}[];
|
|
249
|
-
organizationId: string;
|
|
250
250
|
issueDate: string;
|
|
251
251
|
invoiceNumber: string;
|
|
252
252
|
billFromName: string;
|
|
@@ -310,6 +310,7 @@ export declare const invoicesRouter: {
|
|
|
310
310
|
createdAt: string;
|
|
311
311
|
updatedAt: string;
|
|
312
312
|
currency: string;
|
|
313
|
+
organizationId: string;
|
|
313
314
|
total: number;
|
|
314
315
|
items: {
|
|
315
316
|
description: string;
|
|
@@ -321,7 +322,6 @@ export declare const invoicesRouter: {
|
|
|
321
322
|
taxRate?: number | undefined;
|
|
322
323
|
remark?: string | undefined;
|
|
323
324
|
}[];
|
|
324
|
-
organizationId: string;
|
|
325
325
|
issueDate: string;
|
|
326
326
|
invoiceNumber: string;
|
|
327
327
|
billFromName: string;
|
|
@@ -369,6 +369,7 @@ export declare const invoicesRouter: {
|
|
|
369
369
|
attributes: {
|
|
370
370
|
createdAt: string;
|
|
371
371
|
updatedAt: string;
|
|
372
|
+
organizationId: string;
|
|
372
373
|
total: number;
|
|
373
374
|
items: {
|
|
374
375
|
description: string;
|
|
@@ -380,7 +381,6 @@ export declare const invoicesRouter: {
|
|
|
380
381
|
taxRate?: number | undefined;
|
|
381
382
|
remark?: string | undefined;
|
|
382
383
|
}[];
|
|
383
|
-
organizationId: string;
|
|
384
384
|
issueDate: string;
|
|
385
385
|
invoiceNumber: string;
|
|
386
386
|
billFromName: string;
|
|
@@ -627,11 +627,7 @@ export declare const invoicesRouter: {
|
|
|
627
627
|
billFromPhone: z.ZodOptional<z.ZodString>;
|
|
628
628
|
billFromEmail: z.ZodOptional<z.ZodString>;
|
|
629
629
|
billFromTaxId: z.ZodOptional<z.ZodString>;
|
|
630
|
-
|
|
631
|
-
billToAddress: z.ZodOptional<z.ZodString>;
|
|
632
|
-
billToPhone: z.ZodOptional<z.ZodString>;
|
|
633
|
-
billToEmail: z.ZodOptional<z.ZodString>;
|
|
634
|
-
billToTaxId: z.ZodOptional<z.ZodString>;
|
|
630
|
+
buyerId: z.ZodString;
|
|
635
631
|
items: z.ZodArray<z.ZodObject<{
|
|
636
632
|
description: z.ZodString;
|
|
637
633
|
quantity: z.ZodNumber;
|
|
@@ -680,8 +676,8 @@ export declare const invoicesRouter: {
|
|
|
680
676
|
taxRate?: number | undefined;
|
|
681
677
|
remark?: string | undefined;
|
|
682
678
|
}[];
|
|
679
|
+
buyerId: string;
|
|
683
680
|
billFromName: string;
|
|
684
|
-
billToName: string;
|
|
685
681
|
notes?: string | undefined;
|
|
686
682
|
waybillNumber?: string | undefined;
|
|
687
683
|
issueDate?: string | undefined;
|
|
@@ -691,10 +687,6 @@ export declare const invoicesRouter: {
|
|
|
691
687
|
billFromPhone?: string | undefined;
|
|
692
688
|
billFromEmail?: string | undefined;
|
|
693
689
|
billFromTaxId?: string | undefined;
|
|
694
|
-
billToAddress?: string | undefined;
|
|
695
|
-
billToPhone?: string | undefined;
|
|
696
|
-
billToEmail?: string | undefined;
|
|
697
|
-
billToTaxId?: string | undefined;
|
|
698
690
|
discount?: number | undefined;
|
|
699
691
|
paymentTerms?: string | undefined;
|
|
700
692
|
bankAccountId?: string | undefined;
|
|
@@ -710,8 +702,8 @@ export declare const invoicesRouter: {
|
|
|
710
702
|
taxRate?: number | undefined;
|
|
711
703
|
remark?: string | undefined;
|
|
712
704
|
}[];
|
|
705
|
+
buyerId: string;
|
|
713
706
|
billFromName: string;
|
|
714
|
-
billToName: string;
|
|
715
707
|
currency?: string | undefined;
|
|
716
708
|
notes?: string | undefined;
|
|
717
709
|
waybillNumber?: string | undefined;
|
|
@@ -722,10 +714,6 @@ export declare const invoicesRouter: {
|
|
|
722
714
|
billFromPhone?: string | undefined;
|
|
723
715
|
billFromEmail?: string | undefined;
|
|
724
716
|
billFromTaxId?: string | undefined;
|
|
725
|
-
billToAddress?: string | undefined;
|
|
726
|
-
billToPhone?: string | undefined;
|
|
727
|
-
billToEmail?: string | undefined;
|
|
728
|
-
billToTaxId?: string | undefined;
|
|
729
717
|
discount?: number | undefined;
|
|
730
718
|
paymentTerms?: string | undefined;
|
|
731
719
|
bankAccountId?: string | undefined;
|
|
@@ -745,8 +733,8 @@ export declare const invoicesRouter: {
|
|
|
745
733
|
taxRate?: number | undefined;
|
|
746
734
|
remark?: string | undefined;
|
|
747
735
|
}[];
|
|
736
|
+
buyerId: string;
|
|
748
737
|
billFromName: string;
|
|
749
|
-
billToName: string;
|
|
750
738
|
notes?: string | undefined;
|
|
751
739
|
waybillNumber?: string | undefined;
|
|
752
740
|
issueDate?: string | undefined;
|
|
@@ -756,10 +744,6 @@ export declare const invoicesRouter: {
|
|
|
756
744
|
billFromPhone?: string | undefined;
|
|
757
745
|
billFromEmail?: string | undefined;
|
|
758
746
|
billFromTaxId?: string | undefined;
|
|
759
|
-
billToAddress?: string | undefined;
|
|
760
|
-
billToPhone?: string | undefined;
|
|
761
|
-
billToEmail?: string | undefined;
|
|
762
|
-
billToTaxId?: string | undefined;
|
|
763
747
|
discount?: number | undefined;
|
|
764
748
|
paymentTerms?: string | undefined;
|
|
765
749
|
bankAccountId?: string | undefined;
|
|
@@ -778,8 +762,8 @@ export declare const invoicesRouter: {
|
|
|
778
762
|
taxRate?: number | undefined;
|
|
779
763
|
remark?: string | undefined;
|
|
780
764
|
}[];
|
|
765
|
+
buyerId: string;
|
|
781
766
|
billFromName: string;
|
|
782
|
-
billToName: string;
|
|
783
767
|
currency?: string | undefined;
|
|
784
768
|
notes?: string | undefined;
|
|
785
769
|
waybillNumber?: string | undefined;
|
|
@@ -790,10 +774,6 @@ export declare const invoicesRouter: {
|
|
|
790
774
|
billFromPhone?: string | undefined;
|
|
791
775
|
billFromEmail?: string | undefined;
|
|
792
776
|
billFromTaxId?: string | undefined;
|
|
793
|
-
billToAddress?: string | undefined;
|
|
794
|
-
billToPhone?: string | undefined;
|
|
795
|
-
billToEmail?: string | undefined;
|
|
796
|
-
billToTaxId?: string | undefined;
|
|
797
777
|
discount?: number | undefined;
|
|
798
778
|
paymentTerms?: string | undefined;
|
|
799
779
|
bankAccountId?: string | undefined;
|
|
@@ -815,8 +795,8 @@ export declare const invoicesRouter: {
|
|
|
815
795
|
taxRate?: number | undefined;
|
|
816
796
|
remark?: string | undefined;
|
|
817
797
|
}[];
|
|
798
|
+
buyerId: string;
|
|
818
799
|
billFromName: string;
|
|
819
|
-
billToName: string;
|
|
820
800
|
notes?: string | undefined;
|
|
821
801
|
waybillNumber?: string | undefined;
|
|
822
802
|
issueDate?: string | undefined;
|
|
@@ -826,10 +806,6 @@ export declare const invoicesRouter: {
|
|
|
826
806
|
billFromPhone?: string | undefined;
|
|
827
807
|
billFromEmail?: string | undefined;
|
|
828
808
|
billFromTaxId?: string | undefined;
|
|
829
|
-
billToAddress?: string | undefined;
|
|
830
|
-
billToPhone?: string | undefined;
|
|
831
|
-
billToEmail?: string | undefined;
|
|
832
|
-
billToTaxId?: string | undefined;
|
|
833
809
|
discount?: number | undefined;
|
|
834
810
|
paymentTerms?: string | undefined;
|
|
835
811
|
bankAccountId?: string | undefined;
|
|
@@ -850,8 +826,8 @@ export declare const invoicesRouter: {
|
|
|
850
826
|
taxRate?: number | undefined;
|
|
851
827
|
remark?: string | undefined;
|
|
852
828
|
}[];
|
|
829
|
+
buyerId: string;
|
|
853
830
|
billFromName: string;
|
|
854
|
-
billToName: string;
|
|
855
831
|
currency?: string | undefined;
|
|
856
832
|
notes?: string | undefined;
|
|
857
833
|
waybillNumber?: string | undefined;
|
|
@@ -862,10 +838,6 @@ export declare const invoicesRouter: {
|
|
|
862
838
|
billFromPhone?: string | undefined;
|
|
863
839
|
billFromEmail?: string | undefined;
|
|
864
840
|
billFromTaxId?: string | undefined;
|
|
865
|
-
billToAddress?: string | undefined;
|
|
866
|
-
billToPhone?: string | undefined;
|
|
867
|
-
billToEmail?: string | undefined;
|
|
868
|
-
billToTaxId?: string | undefined;
|
|
869
841
|
discount?: number | undefined;
|
|
870
842
|
paymentTerms?: string | undefined;
|
|
871
843
|
bankAccountId?: string | undefined;
|
|
@@ -943,6 +915,7 @@ export declare const invoicesRouter: {
|
|
|
943
915
|
createdAt: string;
|
|
944
916
|
updatedAt: string;
|
|
945
917
|
currency: string;
|
|
918
|
+
organizationId: string;
|
|
946
919
|
total: number;
|
|
947
920
|
items: {
|
|
948
921
|
description: string;
|
|
@@ -954,7 +927,6 @@ export declare const invoicesRouter: {
|
|
|
954
927
|
taxRate?: number | undefined;
|
|
955
928
|
remark?: string | undefined;
|
|
956
929
|
}[];
|
|
957
|
-
organizationId: string;
|
|
958
930
|
issueDate: string;
|
|
959
931
|
invoiceNumber: string;
|
|
960
932
|
billFromName: string;
|
|
@@ -983,6 +955,7 @@ export declare const invoicesRouter: {
|
|
|
983
955
|
}, {
|
|
984
956
|
createdAt: string;
|
|
985
957
|
updatedAt: string;
|
|
958
|
+
organizationId: string;
|
|
986
959
|
total: number;
|
|
987
960
|
items: {
|
|
988
961
|
description: string;
|
|
@@ -994,7 +967,6 @@ export declare const invoicesRouter: {
|
|
|
994
967
|
taxRate?: number | undefined;
|
|
995
968
|
remark?: string | undefined;
|
|
996
969
|
}[];
|
|
997
|
-
organizationId: string;
|
|
998
970
|
issueDate: string;
|
|
999
971
|
invoiceNumber: string;
|
|
1000
972
|
billFromName: string;
|
|
@@ -1032,6 +1004,7 @@ export declare const invoicesRouter: {
|
|
|
1032
1004
|
createdAt: string;
|
|
1033
1005
|
updatedAt: string;
|
|
1034
1006
|
currency: string;
|
|
1007
|
+
organizationId: string;
|
|
1035
1008
|
total: number;
|
|
1036
1009
|
items: {
|
|
1037
1010
|
description: string;
|
|
@@ -1043,7 +1016,6 @@ export declare const invoicesRouter: {
|
|
|
1043
1016
|
taxRate?: number | undefined;
|
|
1044
1017
|
remark?: string | undefined;
|
|
1045
1018
|
}[];
|
|
1046
|
-
organizationId: string;
|
|
1047
1019
|
issueDate: string;
|
|
1048
1020
|
invoiceNumber: string;
|
|
1049
1021
|
billFromName: string;
|
|
@@ -1079,6 +1051,7 @@ export declare const invoicesRouter: {
|
|
|
1079
1051
|
attributes: {
|
|
1080
1052
|
createdAt: string;
|
|
1081
1053
|
updatedAt: string;
|
|
1054
|
+
organizationId: string;
|
|
1082
1055
|
total: number;
|
|
1083
1056
|
items: {
|
|
1084
1057
|
description: string;
|
|
@@ -1090,7 +1063,6 @@ export declare const invoicesRouter: {
|
|
|
1090
1063
|
taxRate?: number | undefined;
|
|
1091
1064
|
remark?: string | undefined;
|
|
1092
1065
|
}[];
|
|
1093
|
-
organizationId: string;
|
|
1094
1066
|
issueDate: string;
|
|
1095
1067
|
invoiceNumber: string;
|
|
1096
1068
|
billFromName: string;
|
|
@@ -1154,6 +1126,7 @@ export declare const invoicesRouter: {
|
|
|
1154
1126
|
createdAt: string;
|
|
1155
1127
|
updatedAt: string;
|
|
1156
1128
|
currency: string;
|
|
1129
|
+
organizationId: string;
|
|
1157
1130
|
total: number;
|
|
1158
1131
|
items: {
|
|
1159
1132
|
description: string;
|
|
@@ -1165,7 +1138,6 @@ export declare const invoicesRouter: {
|
|
|
1165
1138
|
taxRate?: number | undefined;
|
|
1166
1139
|
remark?: string | undefined;
|
|
1167
1140
|
}[];
|
|
1168
|
-
organizationId: string;
|
|
1169
1141
|
issueDate: string;
|
|
1170
1142
|
invoiceNumber: string;
|
|
1171
1143
|
billFromName: string;
|
|
@@ -1213,6 +1185,7 @@ export declare const invoicesRouter: {
|
|
|
1213
1185
|
attributes: {
|
|
1214
1186
|
createdAt: string;
|
|
1215
1187
|
updatedAt: string;
|
|
1188
|
+
organizationId: string;
|
|
1216
1189
|
total: number;
|
|
1217
1190
|
items: {
|
|
1218
1191
|
description: string;
|
|
@@ -1224,7 +1197,6 @@ export declare const invoicesRouter: {
|
|
|
1224
1197
|
taxRate?: number | undefined;
|
|
1225
1198
|
remark?: string | undefined;
|
|
1226
1199
|
}[];
|
|
1227
|
-
organizationId: string;
|
|
1228
1200
|
issueDate: string;
|
|
1229
1201
|
invoiceNumber: string;
|
|
1230
1202
|
billFromName: string;
|
|
@@ -1713,6 +1685,7 @@ export declare const invoicesRouter: {
|
|
|
1713
1685
|
createdAt: string;
|
|
1714
1686
|
updatedAt: string;
|
|
1715
1687
|
currency: string;
|
|
1688
|
+
organizationId: string;
|
|
1716
1689
|
total: number;
|
|
1717
1690
|
items: {
|
|
1718
1691
|
description: string;
|
|
@@ -1724,7 +1697,6 @@ export declare const invoicesRouter: {
|
|
|
1724
1697
|
taxRate?: number | undefined;
|
|
1725
1698
|
remark?: string | undefined;
|
|
1726
1699
|
}[];
|
|
1727
|
-
organizationId: string;
|
|
1728
1700
|
issueDate: string;
|
|
1729
1701
|
invoiceNumber: string;
|
|
1730
1702
|
billFromName: string;
|
|
@@ -1753,6 +1725,7 @@ export declare const invoicesRouter: {
|
|
|
1753
1725
|
}, {
|
|
1754
1726
|
createdAt: string;
|
|
1755
1727
|
updatedAt: string;
|
|
1728
|
+
organizationId: string;
|
|
1756
1729
|
total: number;
|
|
1757
1730
|
items: {
|
|
1758
1731
|
description: string;
|
|
@@ -1764,7 +1737,6 @@ export declare const invoicesRouter: {
|
|
|
1764
1737
|
taxRate?: number | undefined;
|
|
1765
1738
|
remark?: string | undefined;
|
|
1766
1739
|
}[];
|
|
1767
|
-
organizationId: string;
|
|
1768
1740
|
issueDate: string;
|
|
1769
1741
|
invoiceNumber: string;
|
|
1770
1742
|
billFromName: string;
|
|
@@ -1802,6 +1774,7 @@ export declare const invoicesRouter: {
|
|
|
1802
1774
|
createdAt: string;
|
|
1803
1775
|
updatedAt: string;
|
|
1804
1776
|
currency: string;
|
|
1777
|
+
organizationId: string;
|
|
1805
1778
|
total: number;
|
|
1806
1779
|
items: {
|
|
1807
1780
|
description: string;
|
|
@@ -1813,7 +1786,6 @@ export declare const invoicesRouter: {
|
|
|
1813
1786
|
taxRate?: number | undefined;
|
|
1814
1787
|
remark?: string | undefined;
|
|
1815
1788
|
}[];
|
|
1816
|
-
organizationId: string;
|
|
1817
1789
|
issueDate: string;
|
|
1818
1790
|
invoiceNumber: string;
|
|
1819
1791
|
billFromName: string;
|
|
@@ -1849,6 +1821,7 @@ export declare const invoicesRouter: {
|
|
|
1849
1821
|
attributes: {
|
|
1850
1822
|
createdAt: string;
|
|
1851
1823
|
updatedAt: string;
|
|
1824
|
+
organizationId: string;
|
|
1852
1825
|
total: number;
|
|
1853
1826
|
items: {
|
|
1854
1827
|
description: string;
|
|
@@ -1860,7 +1833,6 @@ export declare const invoicesRouter: {
|
|
|
1860
1833
|
taxRate?: number | undefined;
|
|
1861
1834
|
remark?: string | undefined;
|
|
1862
1835
|
}[];
|
|
1863
|
-
organizationId: string;
|
|
1864
1836
|
issueDate: string;
|
|
1865
1837
|
invoiceNumber: string;
|
|
1866
1838
|
billFromName: string;
|
|
@@ -1924,6 +1896,7 @@ export declare const invoicesRouter: {
|
|
|
1924
1896
|
createdAt: string;
|
|
1925
1897
|
updatedAt: string;
|
|
1926
1898
|
currency: string;
|
|
1899
|
+
organizationId: string;
|
|
1927
1900
|
total: number;
|
|
1928
1901
|
items: {
|
|
1929
1902
|
description: string;
|
|
@@ -1935,7 +1908,6 @@ export declare const invoicesRouter: {
|
|
|
1935
1908
|
taxRate?: number | undefined;
|
|
1936
1909
|
remark?: string | undefined;
|
|
1937
1910
|
}[];
|
|
1938
|
-
organizationId: string;
|
|
1939
1911
|
issueDate: string;
|
|
1940
1912
|
invoiceNumber: string;
|
|
1941
1913
|
billFromName: string;
|
|
@@ -1983,6 +1955,7 @@ export declare const invoicesRouter: {
|
|
|
1983
1955
|
attributes: {
|
|
1984
1956
|
createdAt: string;
|
|
1985
1957
|
updatedAt: string;
|
|
1958
|
+
organizationId: string;
|
|
1986
1959
|
total: number;
|
|
1987
1960
|
items: {
|
|
1988
1961
|
description: string;
|
|
@@ -1994,7 +1967,6 @@ export declare const invoicesRouter: {
|
|
|
1994
1967
|
taxRate?: number | undefined;
|
|
1995
1968
|
remark?: string | undefined;
|
|
1996
1969
|
}[];
|
|
1997
|
-
organizationId: string;
|
|
1998
1970
|
issueDate: string;
|
|
1999
1971
|
invoiceNumber: string;
|
|
2000
1972
|
billFromName: string;
|
|
@@ -2245,11 +2217,7 @@ export declare const invoicesRouter: {
|
|
|
2245
2217
|
billFromPhone: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
2246
2218
|
billFromEmail: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
2247
2219
|
billFromTaxId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
2248
|
-
|
|
2249
|
-
billToAddress: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
2250
|
-
billToPhone: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
2251
|
-
billToEmail: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
2252
|
-
billToTaxId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
2220
|
+
buyerId: z.ZodOptional<z.ZodString>;
|
|
2253
2221
|
items: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2254
2222
|
description: z.ZodString;
|
|
2255
2223
|
quantity: z.ZodNumber;
|
|
@@ -2303,6 +2271,7 @@ export declare const invoicesRouter: {
|
|
|
2303
2271
|
}[] | undefined;
|
|
2304
2272
|
waybillNumber?: string | undefined;
|
|
2305
2273
|
issueDate?: string | undefined;
|
|
2274
|
+
buyerId?: string | undefined;
|
|
2306
2275
|
taxRate?: number | undefined;
|
|
2307
2276
|
dueDate?: string | undefined;
|
|
2308
2277
|
billFromName?: string | undefined;
|
|
@@ -2310,11 +2279,6 @@ export declare const invoicesRouter: {
|
|
|
2310
2279
|
billFromPhone?: string | undefined;
|
|
2311
2280
|
billFromEmail?: string | undefined;
|
|
2312
2281
|
billFromTaxId?: string | undefined;
|
|
2313
|
-
billToName?: string | undefined;
|
|
2314
|
-
billToAddress?: string | undefined;
|
|
2315
|
-
billToPhone?: string | undefined;
|
|
2316
|
-
billToEmail?: string | undefined;
|
|
2317
|
-
billToTaxId?: string | undefined;
|
|
2318
2282
|
discount?: number | undefined;
|
|
2319
2283
|
paymentTerms?: string | undefined;
|
|
2320
2284
|
paymentStatus?: "pending" | "cancelled" | "paid" | "overdue" | undefined;
|
|
@@ -2335,6 +2299,7 @@ export declare const invoicesRouter: {
|
|
|
2335
2299
|
}[] | undefined;
|
|
2336
2300
|
waybillNumber?: string | undefined;
|
|
2337
2301
|
issueDate?: string | undefined;
|
|
2302
|
+
buyerId?: string | undefined;
|
|
2338
2303
|
taxRate?: number | undefined;
|
|
2339
2304
|
dueDate?: string | undefined;
|
|
2340
2305
|
billFromName?: string | undefined;
|
|
@@ -2342,11 +2307,6 @@ export declare const invoicesRouter: {
|
|
|
2342
2307
|
billFromPhone?: string | undefined;
|
|
2343
2308
|
billFromEmail?: string | undefined;
|
|
2344
2309
|
billFromTaxId?: string | undefined;
|
|
2345
|
-
billToName?: string | undefined;
|
|
2346
|
-
billToAddress?: string | undefined;
|
|
2347
|
-
billToPhone?: string | undefined;
|
|
2348
|
-
billToEmail?: string | undefined;
|
|
2349
|
-
billToTaxId?: string | undefined;
|
|
2350
2310
|
discount?: number | undefined;
|
|
2351
2311
|
paymentTerms?: string | undefined;
|
|
2352
2312
|
paymentStatus?: "pending" | "cancelled" | "paid" | "overdue" | undefined;
|
|
@@ -2371,6 +2331,7 @@ export declare const invoicesRouter: {
|
|
|
2371
2331
|
}[] | undefined;
|
|
2372
2332
|
waybillNumber?: string | undefined;
|
|
2373
2333
|
issueDate?: string | undefined;
|
|
2334
|
+
buyerId?: string | undefined;
|
|
2374
2335
|
taxRate?: number | undefined;
|
|
2375
2336
|
dueDate?: string | undefined;
|
|
2376
2337
|
billFromName?: string | undefined;
|
|
@@ -2378,11 +2339,6 @@ export declare const invoicesRouter: {
|
|
|
2378
2339
|
billFromPhone?: string | undefined;
|
|
2379
2340
|
billFromEmail?: string | undefined;
|
|
2380
2341
|
billFromTaxId?: string | undefined;
|
|
2381
|
-
billToName?: string | undefined;
|
|
2382
|
-
billToAddress?: string | undefined;
|
|
2383
|
-
billToPhone?: string | undefined;
|
|
2384
|
-
billToEmail?: string | undefined;
|
|
2385
|
-
billToTaxId?: string | undefined;
|
|
2386
2342
|
discount?: number | undefined;
|
|
2387
2343
|
paymentTerms?: string | undefined;
|
|
2388
2344
|
paymentStatus?: "pending" | "cancelled" | "paid" | "overdue" | undefined;
|
|
@@ -2407,6 +2363,7 @@ export declare const invoicesRouter: {
|
|
|
2407
2363
|
}[] | undefined;
|
|
2408
2364
|
waybillNumber?: string | undefined;
|
|
2409
2365
|
issueDate?: string | undefined;
|
|
2366
|
+
buyerId?: string | undefined;
|
|
2410
2367
|
taxRate?: number | undefined;
|
|
2411
2368
|
dueDate?: string | undefined;
|
|
2412
2369
|
billFromName?: string | undefined;
|
|
@@ -2414,11 +2371,6 @@ export declare const invoicesRouter: {
|
|
|
2414
2371
|
billFromPhone?: string | undefined;
|
|
2415
2372
|
billFromEmail?: string | undefined;
|
|
2416
2373
|
billFromTaxId?: string | undefined;
|
|
2417
|
-
billToName?: string | undefined;
|
|
2418
|
-
billToAddress?: string | undefined;
|
|
2419
|
-
billToPhone?: string | undefined;
|
|
2420
|
-
billToEmail?: string | undefined;
|
|
2421
|
-
billToTaxId?: string | undefined;
|
|
2422
2374
|
discount?: number | undefined;
|
|
2423
2375
|
paymentTerms?: string | undefined;
|
|
2424
2376
|
paymentStatus?: "pending" | "cancelled" | "paid" | "overdue" | undefined;
|
|
@@ -2445,6 +2397,7 @@ export declare const invoicesRouter: {
|
|
|
2445
2397
|
}[] | undefined;
|
|
2446
2398
|
waybillNumber?: string | undefined;
|
|
2447
2399
|
issueDate?: string | undefined;
|
|
2400
|
+
buyerId?: string | undefined;
|
|
2448
2401
|
taxRate?: number | undefined;
|
|
2449
2402
|
dueDate?: string | undefined;
|
|
2450
2403
|
billFromName?: string | undefined;
|
|
@@ -2452,11 +2405,6 @@ export declare const invoicesRouter: {
|
|
|
2452
2405
|
billFromPhone?: string | undefined;
|
|
2453
2406
|
billFromEmail?: string | undefined;
|
|
2454
2407
|
billFromTaxId?: string | undefined;
|
|
2455
|
-
billToName?: string | undefined;
|
|
2456
|
-
billToAddress?: string | undefined;
|
|
2457
|
-
billToPhone?: string | undefined;
|
|
2458
|
-
billToEmail?: string | undefined;
|
|
2459
|
-
billToTaxId?: string | undefined;
|
|
2460
2408
|
discount?: number | undefined;
|
|
2461
2409
|
paymentTerms?: string | undefined;
|
|
2462
2410
|
paymentStatus?: "pending" | "cancelled" | "paid" | "overdue" | undefined;
|
|
@@ -2483,6 +2431,7 @@ export declare const invoicesRouter: {
|
|
|
2483
2431
|
}[] | undefined;
|
|
2484
2432
|
waybillNumber?: string | undefined;
|
|
2485
2433
|
issueDate?: string | undefined;
|
|
2434
|
+
buyerId?: string | undefined;
|
|
2486
2435
|
taxRate?: number | undefined;
|
|
2487
2436
|
dueDate?: string | undefined;
|
|
2488
2437
|
billFromName?: string | undefined;
|
|
@@ -2490,11 +2439,6 @@ export declare const invoicesRouter: {
|
|
|
2490
2439
|
billFromPhone?: string | undefined;
|
|
2491
2440
|
billFromEmail?: string | undefined;
|
|
2492
2441
|
billFromTaxId?: string | undefined;
|
|
2493
|
-
billToName?: string | undefined;
|
|
2494
|
-
billToAddress?: string | undefined;
|
|
2495
|
-
billToPhone?: string | undefined;
|
|
2496
|
-
billToEmail?: string | undefined;
|
|
2497
|
-
billToTaxId?: string | undefined;
|
|
2498
2442
|
discount?: number | undefined;
|
|
2499
2443
|
paymentTerms?: string | undefined;
|
|
2500
2444
|
paymentStatus?: "pending" | "cancelled" | "paid" | "overdue" | undefined;
|
|
@@ -2573,6 +2517,7 @@ export declare const invoicesRouter: {
|
|
|
2573
2517
|
createdAt: string;
|
|
2574
2518
|
updatedAt: string;
|
|
2575
2519
|
currency: string;
|
|
2520
|
+
organizationId: string;
|
|
2576
2521
|
total: number;
|
|
2577
2522
|
items: {
|
|
2578
2523
|
description: string;
|
|
@@ -2584,7 +2529,6 @@ export declare const invoicesRouter: {
|
|
|
2584
2529
|
taxRate?: number | undefined;
|
|
2585
2530
|
remark?: string | undefined;
|
|
2586
2531
|
}[];
|
|
2587
|
-
organizationId: string;
|
|
2588
2532
|
issueDate: string;
|
|
2589
2533
|
invoiceNumber: string;
|
|
2590
2534
|
billFromName: string;
|
|
@@ -2613,6 +2557,7 @@ export declare const invoicesRouter: {
|
|
|
2613
2557
|
}, {
|
|
2614
2558
|
createdAt: string;
|
|
2615
2559
|
updatedAt: string;
|
|
2560
|
+
organizationId: string;
|
|
2616
2561
|
total: number;
|
|
2617
2562
|
items: {
|
|
2618
2563
|
description: string;
|
|
@@ -2624,7 +2569,6 @@ export declare const invoicesRouter: {
|
|
|
2624
2569
|
taxRate?: number | undefined;
|
|
2625
2570
|
remark?: string | undefined;
|
|
2626
2571
|
}[];
|
|
2627
|
-
organizationId: string;
|
|
2628
2572
|
issueDate: string;
|
|
2629
2573
|
invoiceNumber: string;
|
|
2630
2574
|
billFromName: string;
|
|
@@ -2662,6 +2606,7 @@ export declare const invoicesRouter: {
|
|
|
2662
2606
|
createdAt: string;
|
|
2663
2607
|
updatedAt: string;
|
|
2664
2608
|
currency: string;
|
|
2609
|
+
organizationId: string;
|
|
2665
2610
|
total: number;
|
|
2666
2611
|
items: {
|
|
2667
2612
|
description: string;
|
|
@@ -2673,7 +2618,6 @@ export declare const invoicesRouter: {
|
|
|
2673
2618
|
taxRate?: number | undefined;
|
|
2674
2619
|
remark?: string | undefined;
|
|
2675
2620
|
}[];
|
|
2676
|
-
organizationId: string;
|
|
2677
2621
|
issueDate: string;
|
|
2678
2622
|
invoiceNumber: string;
|
|
2679
2623
|
billFromName: string;
|
|
@@ -2709,6 +2653,7 @@ export declare const invoicesRouter: {
|
|
|
2709
2653
|
attributes: {
|
|
2710
2654
|
createdAt: string;
|
|
2711
2655
|
updatedAt: string;
|
|
2656
|
+
organizationId: string;
|
|
2712
2657
|
total: number;
|
|
2713
2658
|
items: {
|
|
2714
2659
|
description: string;
|
|
@@ -2720,7 +2665,6 @@ export declare const invoicesRouter: {
|
|
|
2720
2665
|
taxRate?: number | undefined;
|
|
2721
2666
|
remark?: string | undefined;
|
|
2722
2667
|
}[];
|
|
2723
|
-
organizationId: string;
|
|
2724
2668
|
issueDate: string;
|
|
2725
2669
|
invoiceNumber: string;
|
|
2726
2670
|
billFromName: string;
|
|
@@ -2784,6 +2728,7 @@ export declare const invoicesRouter: {
|
|
|
2784
2728
|
createdAt: string;
|
|
2785
2729
|
updatedAt: string;
|
|
2786
2730
|
currency: string;
|
|
2731
|
+
organizationId: string;
|
|
2787
2732
|
total: number;
|
|
2788
2733
|
items: {
|
|
2789
2734
|
description: string;
|
|
@@ -2795,7 +2740,6 @@ export declare const invoicesRouter: {
|
|
|
2795
2740
|
taxRate?: number | undefined;
|
|
2796
2741
|
remark?: string | undefined;
|
|
2797
2742
|
}[];
|
|
2798
|
-
organizationId: string;
|
|
2799
2743
|
issueDate: string;
|
|
2800
2744
|
invoiceNumber: string;
|
|
2801
2745
|
billFromName: string;
|
|
@@ -2843,6 +2787,7 @@ export declare const invoicesRouter: {
|
|
|
2843
2787
|
attributes: {
|
|
2844
2788
|
createdAt: string;
|
|
2845
2789
|
updatedAt: string;
|
|
2790
|
+
organizationId: string;
|
|
2846
2791
|
total: number;
|
|
2847
2792
|
items: {
|
|
2848
2793
|
description: string;
|
|
@@ -2854,7 +2799,6 @@ export declare const invoicesRouter: {
|
|
|
2854
2799
|
taxRate?: number | undefined;
|
|
2855
2800
|
remark?: string | undefined;
|
|
2856
2801
|
}[];
|
|
2857
|
-
organizationId: string;
|
|
2858
2802
|
issueDate: string;
|
|
2859
2803
|
invoiceNumber: string;
|
|
2860
2804
|
billFromName: string;
|
|
@@ -3344,6 +3288,7 @@ export declare const invoicesRouter: {
|
|
|
3344
3288
|
createdAt: string;
|
|
3345
3289
|
updatedAt: string;
|
|
3346
3290
|
currency: string;
|
|
3291
|
+
organizationId: string;
|
|
3347
3292
|
total: number;
|
|
3348
3293
|
items: {
|
|
3349
3294
|
description: string;
|
|
@@ -3355,7 +3300,6 @@ export declare const invoicesRouter: {
|
|
|
3355
3300
|
taxRate?: number | undefined;
|
|
3356
3301
|
remark?: string | undefined;
|
|
3357
3302
|
}[];
|
|
3358
|
-
organizationId: string;
|
|
3359
3303
|
issueDate: string;
|
|
3360
3304
|
invoiceNumber: string;
|
|
3361
3305
|
billFromName: string;
|
|
@@ -3384,6 +3328,7 @@ export declare const invoicesRouter: {
|
|
|
3384
3328
|
}, {
|
|
3385
3329
|
createdAt: string;
|
|
3386
3330
|
updatedAt: string;
|
|
3331
|
+
organizationId: string;
|
|
3387
3332
|
total: number;
|
|
3388
3333
|
items: {
|
|
3389
3334
|
description: string;
|
|
@@ -3395,7 +3340,6 @@ export declare const invoicesRouter: {
|
|
|
3395
3340
|
taxRate?: number | undefined;
|
|
3396
3341
|
remark?: string | undefined;
|
|
3397
3342
|
}[];
|
|
3398
|
-
organizationId: string;
|
|
3399
3343
|
issueDate: string;
|
|
3400
3344
|
invoiceNumber: string;
|
|
3401
3345
|
billFromName: string;
|
|
@@ -3433,6 +3377,7 @@ export declare const invoicesRouter: {
|
|
|
3433
3377
|
createdAt: string;
|
|
3434
3378
|
updatedAt: string;
|
|
3435
3379
|
currency: string;
|
|
3380
|
+
organizationId: string;
|
|
3436
3381
|
total: number;
|
|
3437
3382
|
items: {
|
|
3438
3383
|
description: string;
|
|
@@ -3444,7 +3389,6 @@ export declare const invoicesRouter: {
|
|
|
3444
3389
|
taxRate?: number | undefined;
|
|
3445
3390
|
remark?: string | undefined;
|
|
3446
3391
|
}[];
|
|
3447
|
-
organizationId: string;
|
|
3448
3392
|
issueDate: string;
|
|
3449
3393
|
invoiceNumber: string;
|
|
3450
3394
|
billFromName: string;
|
|
@@ -3480,6 +3424,7 @@ export declare const invoicesRouter: {
|
|
|
3480
3424
|
attributes: {
|
|
3481
3425
|
createdAt: string;
|
|
3482
3426
|
updatedAt: string;
|
|
3427
|
+
organizationId: string;
|
|
3483
3428
|
total: number;
|
|
3484
3429
|
items: {
|
|
3485
3430
|
description: string;
|
|
@@ -3491,7 +3436,6 @@ export declare const invoicesRouter: {
|
|
|
3491
3436
|
taxRate?: number | undefined;
|
|
3492
3437
|
remark?: string | undefined;
|
|
3493
3438
|
}[];
|
|
3494
|
-
organizationId: string;
|
|
3495
3439
|
issueDate: string;
|
|
3496
3440
|
invoiceNumber: string;
|
|
3497
3441
|
billFromName: string;
|
|
@@ -3555,6 +3499,7 @@ export declare const invoicesRouter: {
|
|
|
3555
3499
|
createdAt: string;
|
|
3556
3500
|
updatedAt: string;
|
|
3557
3501
|
currency: string;
|
|
3502
|
+
organizationId: string;
|
|
3558
3503
|
total: number;
|
|
3559
3504
|
items: {
|
|
3560
3505
|
description: string;
|
|
@@ -3566,7 +3511,6 @@ export declare const invoicesRouter: {
|
|
|
3566
3511
|
taxRate?: number | undefined;
|
|
3567
3512
|
remark?: string | undefined;
|
|
3568
3513
|
}[];
|
|
3569
|
-
organizationId: string;
|
|
3570
3514
|
issueDate: string;
|
|
3571
3515
|
invoiceNumber: string;
|
|
3572
3516
|
billFromName: string;
|
|
@@ -3614,6 +3558,7 @@ export declare const invoicesRouter: {
|
|
|
3614
3558
|
attributes: {
|
|
3615
3559
|
createdAt: string;
|
|
3616
3560
|
updatedAt: string;
|
|
3561
|
+
organizationId: string;
|
|
3617
3562
|
total: number;
|
|
3618
3563
|
items: {
|
|
3619
3564
|
description: string;
|
|
@@ -3625,7 +3570,6 @@ export declare const invoicesRouter: {
|
|
|
3625
3570
|
taxRate?: number | undefined;
|
|
3626
3571
|
remark?: string | undefined;
|
|
3627
3572
|
}[];
|
|
3628
|
-
organizationId: string;
|
|
3629
3573
|
issueDate: string;
|
|
3630
3574
|
invoiceNumber: string;
|
|
3631
3575
|
billFromName: string;
|