@deepintel-ltd/farmpro-contracts 1.22.4 → 1.23.1
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/categories.routes.d.ts +26 -26
- package/dist/routes/commodity-deals.routes.d.ts +217 -42
- package/dist/routes/commodity-deals.routes.d.ts.map +1 -1
- package/dist/routes/crop-profile.routes.d.ts +8 -8
- package/dist/routes/farm-enterprises.routes.d.ts +395 -0
- package/dist/routes/farm-enterprises.routes.d.ts.map +1 -1
- package/dist/routes/farm-enterprises.routes.js +14 -1
- package/dist/routes/farms.routes.d.ts +73 -20
- package/dist/routes/farms.routes.d.ts.map +1 -1
- package/dist/routes/fertigation.routes.d.ts +96 -96
- package/dist/routes/field-monitoring.routes.d.ts +2 -2
- package/dist/routes/finance.routes.d.ts +8 -8
- 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 +210 -60
- package/dist/routes/invoices.routes.d.ts.map +1 -1
- package/dist/routes/invoices.routes.js +4 -1
- package/dist/routes/monitoring-visualization.routes.d.ts +2 -2
- package/dist/routes/notifications.routes.d.ts +12 -12
- 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/organizations.routes.d.ts +90 -47
- package/dist/routes/organizations.routes.d.ts.map +1 -1
- 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/suppliers.routes.d.ts +96 -96
- package/dist/routes/team-payments.routes.d.ts +105 -105
- package/dist/routes/team.routes.d.ts +125 -25
- package/dist/routes/team.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 +229 -15
- package/dist/routes/waybills.routes.d.ts.map +1 -1
- package/dist/routes/waybills.routes.js +4 -1
- package/dist/schemas/categories.schemas.d.ts +21 -21
- package/dist/schemas/commodity-deals.schemas.d.ts +116 -18
- package/dist/schemas/commodity-deals.schemas.d.ts.map +1 -1
- package/dist/schemas/commodity-deals.schemas.js +7 -0
- package/dist/schemas/crop-profile.schemas.d.ts +12 -12
- package/dist/schemas/farm-enterprises.schemas.d.ts +185 -0
- package/dist/schemas/farm-enterprises.schemas.d.ts.map +1 -1
- package/dist/schemas/farm-enterprises.schemas.js +21 -0
- package/dist/schemas/farms.schemas.d.ts +121 -19
- package/dist/schemas/farms.schemas.d.ts.map +1 -1
- package/dist/schemas/farms.schemas.js +15 -1
- package/dist/schemas/fertigation.schemas.d.ts +36 -36
- package/dist/schemas/field-monitoring.schemas.d.ts +2 -2
- package/dist/schemas/finance.schemas.d.ts +8 -8
- package/dist/schemas/invoices.schemas.d.ts +153 -39
- package/dist/schemas/invoices.schemas.d.ts.map +1 -1
- package/dist/schemas/invoices.schemas.js +8 -2
- package/dist/schemas/notifications.schemas.d.ts +18 -18
- 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/organizations.schemas.d.ts +105 -46
- package/dist/schemas/organizations.schemas.d.ts.map +1 -1
- package/dist/schemas/organizations.schemas.js +8 -1
- 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/suppliers.schemas.d.ts +96 -96
- package/dist/schemas/team-payments.schemas.d.ts +87 -87
- package/dist/schemas/team.schemas.d.ts +137 -20
- package/dist/schemas/team.schemas.d.ts.map +1 -1
- package/dist/schemas/team.schemas.js +29 -1
- 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 +177 -9
- package/dist/schemas/waybills.schemas.d.ts.map +1 -1
- package/dist/schemas/waybills.schemas.js +9 -0
- package/package.json +1 -1
|
@@ -14,17 +14,20 @@ export declare const invoicesRouter: {
|
|
|
14
14
|
} & {
|
|
15
15
|
sort: z.ZodOptional<z.ZodString>;
|
|
16
16
|
} & {
|
|
17
|
-
'filter[paymentStatus]': z.ZodOptional<z.ZodEnum<["pending", "paid", "overdue", "cancelled"]>>;
|
|
17
|
+
'filter[paymentStatus]': z.ZodOptional<z.ZodEnum<["pending", "partial", "paid", "overdue", "cancelled"]>>;
|
|
18
|
+
'filter[commercialIntent]': z.ZodOptional<z.ZodEnum<["farm_sale", "trade"]>>;
|
|
18
19
|
}, "strip", z.ZodTypeAny, {
|
|
19
20
|
sort?: string | undefined;
|
|
20
21
|
'page[number]'?: number | undefined;
|
|
21
22
|
'page[size]'?: number | undefined;
|
|
22
|
-
'filter[
|
|
23
|
+
'filter[commercialIntent]'?: "trade" | "farm_sale" | undefined;
|
|
24
|
+
'filter[paymentStatus]'?: "partial" | "pending" | "cancelled" | "paid" | "overdue" | undefined;
|
|
23
25
|
}, {
|
|
24
26
|
sort?: string | undefined;
|
|
25
27
|
'page[number]'?: number | undefined;
|
|
26
28
|
'page[size]'?: number | undefined;
|
|
27
|
-
'filter[
|
|
29
|
+
'filter[commercialIntent]'?: "trade" | "farm_sale" | undefined;
|
|
30
|
+
'filter[paymentStatus]'?: "partial" | "pending" | "cancelled" | "paid" | "overdue" | undefined;
|
|
28
31
|
}>;
|
|
29
32
|
summary: "List all invoices for an organization";
|
|
30
33
|
description: "Get a paginated list of invoices for the specified organization";
|
|
@@ -84,7 +87,7 @@ export declare const invoicesRouter: {
|
|
|
84
87
|
total: z.ZodNumber;
|
|
85
88
|
currency: z.ZodDefault<z.ZodString>;
|
|
86
89
|
paymentTerms: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
87
|
-
paymentStatus: z.ZodDefault<z.ZodEnum<["pending", "paid", "overdue", "cancelled"]>>;
|
|
90
|
+
paymentStatus: z.ZodDefault<z.ZodEnum<["pending", "partial", "paid", "overdue", "cancelled"]>>;
|
|
88
91
|
paidAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
89
92
|
notes: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
90
93
|
pdfUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -92,6 +95,9 @@ export declare const invoicesRouter: {
|
|
|
92
95
|
waybillNumber: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
93
96
|
waybillId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
94
97
|
totalInWords: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
98
|
+
farmId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
99
|
+
commercialIntent: z.ZodNullable<z.ZodOptional<z.ZodEnum<["farm_sale", "trade"]>>>;
|
|
100
|
+
invoiceKind: z.ZodDefault<z.ZodOptional<z.ZodEnum<["provisional", "final"]>>>;
|
|
95
101
|
organizationId: z.ZodString;
|
|
96
102
|
} & {
|
|
97
103
|
createdAt: z.ZodString;
|
|
@@ -99,8 +105,8 @@ export declare const invoicesRouter: {
|
|
|
99
105
|
}, "strip", z.ZodTypeAny, {
|
|
100
106
|
createdAt: string;
|
|
101
107
|
updatedAt: string;
|
|
102
|
-
currency: string;
|
|
103
108
|
organizationId: string;
|
|
109
|
+
currency: string;
|
|
104
110
|
total: number;
|
|
105
111
|
items: {
|
|
106
112
|
description: string;
|
|
@@ -117,11 +123,14 @@ export declare const invoicesRouter: {
|
|
|
117
123
|
billFromName: string;
|
|
118
124
|
billToName: string;
|
|
119
125
|
subtotal: number;
|
|
120
|
-
paymentStatus: "pending" | "cancelled" | "paid" | "overdue";
|
|
126
|
+
paymentStatus: "partial" | "pending" | "cancelled" | "paid" | "overdue";
|
|
127
|
+
invoiceKind: "provisional" | "final";
|
|
128
|
+
farmId?: string | null | undefined;
|
|
121
129
|
notes?: string | null | undefined;
|
|
122
130
|
paidAt?: string | null | undefined;
|
|
123
131
|
waybillNumber?: string | null | undefined;
|
|
124
132
|
pdfUrl?: string | null | undefined;
|
|
133
|
+
commercialIntent?: "trade" | "farm_sale" | null | undefined;
|
|
125
134
|
taxRate?: number | null | undefined;
|
|
126
135
|
dueDate?: string | null | undefined;
|
|
127
136
|
billFromAddress?: string | null | undefined;
|
|
@@ -158,11 +167,13 @@ export declare const invoicesRouter: {
|
|
|
158
167
|
billFromName: string;
|
|
159
168
|
billToName: string;
|
|
160
169
|
subtotal: number;
|
|
170
|
+
farmId?: string | null | undefined;
|
|
161
171
|
currency?: string | undefined;
|
|
162
172
|
notes?: string | null | undefined;
|
|
163
173
|
paidAt?: string | null | undefined;
|
|
164
174
|
waybillNumber?: string | null | undefined;
|
|
165
175
|
pdfUrl?: string | null | undefined;
|
|
176
|
+
commercialIntent?: "trade" | "farm_sale" | null | undefined;
|
|
166
177
|
taxRate?: number | null | undefined;
|
|
167
178
|
dueDate?: string | null | undefined;
|
|
168
179
|
billFromAddress?: string | null | undefined;
|
|
@@ -176,10 +187,11 @@ export declare const invoicesRouter: {
|
|
|
176
187
|
taxAmount?: number | null | undefined;
|
|
177
188
|
discount?: number | null | undefined;
|
|
178
189
|
paymentTerms?: string | null | undefined;
|
|
179
|
-
paymentStatus?: "pending" | "cancelled" | "paid" | "overdue" | undefined;
|
|
190
|
+
paymentStatus?: "partial" | "pending" | "cancelled" | "paid" | "overdue" | undefined;
|
|
180
191
|
bankAccountId?: string | null | undefined;
|
|
181
192
|
waybillId?: string | null | undefined;
|
|
182
193
|
totalInWords?: string | null | undefined;
|
|
194
|
+
invoiceKind?: "provisional" | "final" | undefined;
|
|
183
195
|
}>;
|
|
184
196
|
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
185
197
|
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -190,8 +202,8 @@ export declare const invoicesRouter: {
|
|
|
190
202
|
attributes: {
|
|
191
203
|
createdAt: string;
|
|
192
204
|
updatedAt: string;
|
|
193
|
-
currency: string;
|
|
194
205
|
organizationId: string;
|
|
206
|
+
currency: string;
|
|
195
207
|
total: number;
|
|
196
208
|
items: {
|
|
197
209
|
description: string;
|
|
@@ -208,11 +220,14 @@ export declare const invoicesRouter: {
|
|
|
208
220
|
billFromName: string;
|
|
209
221
|
billToName: string;
|
|
210
222
|
subtotal: number;
|
|
211
|
-
paymentStatus: "pending" | "cancelled" | "paid" | "overdue";
|
|
223
|
+
paymentStatus: "partial" | "pending" | "cancelled" | "paid" | "overdue";
|
|
224
|
+
invoiceKind: "provisional" | "final";
|
|
225
|
+
farmId?: string | null | undefined;
|
|
212
226
|
notes?: string | null | undefined;
|
|
213
227
|
paidAt?: string | null | undefined;
|
|
214
228
|
waybillNumber?: string | null | undefined;
|
|
215
229
|
pdfUrl?: string | null | undefined;
|
|
230
|
+
commercialIntent?: "trade" | "farm_sale" | null | undefined;
|
|
216
231
|
taxRate?: number | null | undefined;
|
|
217
232
|
dueDate?: string | null | undefined;
|
|
218
233
|
billFromAddress?: string | null | undefined;
|
|
@@ -256,11 +271,13 @@ export declare const invoicesRouter: {
|
|
|
256
271
|
billFromName: string;
|
|
257
272
|
billToName: string;
|
|
258
273
|
subtotal: number;
|
|
274
|
+
farmId?: string | null | undefined;
|
|
259
275
|
currency?: string | undefined;
|
|
260
276
|
notes?: string | null | undefined;
|
|
261
277
|
paidAt?: string | null | undefined;
|
|
262
278
|
waybillNumber?: string | null | undefined;
|
|
263
279
|
pdfUrl?: string | null | undefined;
|
|
280
|
+
commercialIntent?: "trade" | "farm_sale" | null | undefined;
|
|
264
281
|
taxRate?: number | null | undefined;
|
|
265
282
|
dueDate?: string | null | undefined;
|
|
266
283
|
billFromAddress?: string | null | undefined;
|
|
@@ -274,10 +291,11 @@ export declare const invoicesRouter: {
|
|
|
274
291
|
taxAmount?: number | null | undefined;
|
|
275
292
|
discount?: number | null | undefined;
|
|
276
293
|
paymentTerms?: string | null | undefined;
|
|
277
|
-
paymentStatus?: "pending" | "cancelled" | "paid" | "overdue" | undefined;
|
|
294
|
+
paymentStatus?: "partial" | "pending" | "cancelled" | "paid" | "overdue" | undefined;
|
|
278
295
|
bankAccountId?: string | null | undefined;
|
|
279
296
|
waybillId?: string | null | undefined;
|
|
280
297
|
totalInWords?: string | null | undefined;
|
|
298
|
+
invoiceKind?: "provisional" | "final" | undefined;
|
|
281
299
|
};
|
|
282
300
|
relationships?: Record<string, unknown> | undefined;
|
|
283
301
|
links?: Record<string, string> | undefined;
|
|
@@ -314,8 +332,8 @@ export declare const invoicesRouter: {
|
|
|
314
332
|
attributes: {
|
|
315
333
|
createdAt: string;
|
|
316
334
|
updatedAt: string;
|
|
317
|
-
currency: string;
|
|
318
335
|
organizationId: string;
|
|
336
|
+
currency: string;
|
|
319
337
|
total: number;
|
|
320
338
|
items: {
|
|
321
339
|
description: string;
|
|
@@ -332,11 +350,14 @@ export declare const invoicesRouter: {
|
|
|
332
350
|
billFromName: string;
|
|
333
351
|
billToName: string;
|
|
334
352
|
subtotal: number;
|
|
335
|
-
paymentStatus: "pending" | "cancelled" | "paid" | "overdue";
|
|
353
|
+
paymentStatus: "partial" | "pending" | "cancelled" | "paid" | "overdue";
|
|
354
|
+
invoiceKind: "provisional" | "final";
|
|
355
|
+
farmId?: string | null | undefined;
|
|
336
356
|
notes?: string | null | undefined;
|
|
337
357
|
paidAt?: string | null | undefined;
|
|
338
358
|
waybillNumber?: string | null | undefined;
|
|
339
359
|
pdfUrl?: string | null | undefined;
|
|
360
|
+
commercialIntent?: "trade" | "farm_sale" | null | undefined;
|
|
340
361
|
taxRate?: number | null | undefined;
|
|
341
362
|
dueDate?: string | null | undefined;
|
|
342
363
|
billFromAddress?: string | null | undefined;
|
|
@@ -392,11 +413,13 @@ export declare const invoicesRouter: {
|
|
|
392
413
|
billFromName: string;
|
|
393
414
|
billToName: string;
|
|
394
415
|
subtotal: number;
|
|
416
|
+
farmId?: string | null | undefined;
|
|
395
417
|
currency?: string | undefined;
|
|
396
418
|
notes?: string | null | undefined;
|
|
397
419
|
paidAt?: string | null | undefined;
|
|
398
420
|
waybillNumber?: string | null | undefined;
|
|
399
421
|
pdfUrl?: string | null | undefined;
|
|
422
|
+
commercialIntent?: "trade" | "farm_sale" | null | undefined;
|
|
400
423
|
taxRate?: number | null | undefined;
|
|
401
424
|
dueDate?: string | null | undefined;
|
|
402
425
|
billFromAddress?: string | null | undefined;
|
|
@@ -410,10 +433,11 @@ export declare const invoicesRouter: {
|
|
|
410
433
|
taxAmount?: number | null | undefined;
|
|
411
434
|
discount?: number | null | undefined;
|
|
412
435
|
paymentTerms?: string | null | undefined;
|
|
413
|
-
paymentStatus?: "pending" | "cancelled" | "paid" | "overdue" | undefined;
|
|
436
|
+
paymentStatus?: "partial" | "pending" | "cancelled" | "paid" | "overdue" | undefined;
|
|
414
437
|
bankAccountId?: string | null | undefined;
|
|
415
438
|
waybillId?: string | null | undefined;
|
|
416
439
|
totalInWords?: string | null | undefined;
|
|
440
|
+
invoiceKind?: "provisional" | "final" | undefined;
|
|
417
441
|
};
|
|
418
442
|
relationships?: Record<string, unknown> | undefined;
|
|
419
443
|
links?: Record<string, string> | undefined;
|
|
@@ -672,6 +696,9 @@ export declare const invoicesRouter: {
|
|
|
672
696
|
waybillNumber: z.ZodOptional<z.ZodString>;
|
|
673
697
|
waybillId: z.ZodOptional<z.ZodString>;
|
|
674
698
|
totalInWords: z.ZodOptional<z.ZodString>;
|
|
699
|
+
farmId: z.ZodOptional<z.ZodString>;
|
|
700
|
+
commercialIntent: z.ZodOptional<z.ZodEnum<["farm_sale", "trade"]>>;
|
|
701
|
+
invoiceKind: z.ZodOptional<z.ZodEnum<["provisional", "final"]>>;
|
|
675
702
|
}, "strip", z.ZodTypeAny, {
|
|
676
703
|
currency: string;
|
|
677
704
|
items: {
|
|
@@ -686,9 +713,11 @@ export declare const invoicesRouter: {
|
|
|
686
713
|
}[];
|
|
687
714
|
buyerId: string;
|
|
688
715
|
billFromName: string;
|
|
716
|
+
farmId?: string | undefined;
|
|
689
717
|
notes?: string | undefined;
|
|
690
718
|
waybillNumber?: string | undefined;
|
|
691
719
|
issueDate?: string | undefined;
|
|
720
|
+
commercialIntent?: "trade" | "farm_sale" | undefined;
|
|
692
721
|
taxRate?: number | undefined;
|
|
693
722
|
dueDate?: string | undefined;
|
|
694
723
|
billFromAddress?: string | undefined;
|
|
@@ -700,6 +729,7 @@ export declare const invoicesRouter: {
|
|
|
700
729
|
bankAccountId?: string | undefined;
|
|
701
730
|
waybillId?: string | undefined;
|
|
702
731
|
totalInWords?: string | undefined;
|
|
732
|
+
invoiceKind?: "provisional" | "final" | undefined;
|
|
703
733
|
}, {
|
|
704
734
|
items: {
|
|
705
735
|
description: string;
|
|
@@ -713,10 +743,12 @@ export declare const invoicesRouter: {
|
|
|
713
743
|
}[];
|
|
714
744
|
buyerId: string;
|
|
715
745
|
billFromName: string;
|
|
746
|
+
farmId?: string | undefined;
|
|
716
747
|
currency?: string | undefined;
|
|
717
748
|
notes?: string | undefined;
|
|
718
749
|
waybillNumber?: string | undefined;
|
|
719
750
|
issueDate?: string | undefined;
|
|
751
|
+
commercialIntent?: "trade" | "farm_sale" | undefined;
|
|
720
752
|
taxRate?: number | undefined;
|
|
721
753
|
dueDate?: string | undefined;
|
|
722
754
|
billFromAddress?: string | undefined;
|
|
@@ -728,6 +760,7 @@ export declare const invoicesRouter: {
|
|
|
728
760
|
bankAccountId?: string | undefined;
|
|
729
761
|
waybillId?: string | undefined;
|
|
730
762
|
totalInWords?: string | undefined;
|
|
763
|
+
invoiceKind?: "provisional" | "final" | undefined;
|
|
731
764
|
}>;
|
|
732
765
|
}, "strip", z.ZodTypeAny, {
|
|
733
766
|
type: "invoices";
|
|
@@ -745,9 +778,11 @@ export declare const invoicesRouter: {
|
|
|
745
778
|
}[];
|
|
746
779
|
buyerId: string;
|
|
747
780
|
billFromName: string;
|
|
781
|
+
farmId?: string | undefined;
|
|
748
782
|
notes?: string | undefined;
|
|
749
783
|
waybillNumber?: string | undefined;
|
|
750
784
|
issueDate?: string | undefined;
|
|
785
|
+
commercialIntent?: "trade" | "farm_sale" | undefined;
|
|
751
786
|
taxRate?: number | undefined;
|
|
752
787
|
dueDate?: string | undefined;
|
|
753
788
|
billFromAddress?: string | undefined;
|
|
@@ -759,6 +794,7 @@ export declare const invoicesRouter: {
|
|
|
759
794
|
bankAccountId?: string | undefined;
|
|
760
795
|
waybillId?: string | undefined;
|
|
761
796
|
totalInWords?: string | undefined;
|
|
797
|
+
invoiceKind?: "provisional" | "final" | undefined;
|
|
762
798
|
};
|
|
763
799
|
}, {
|
|
764
800
|
type: "invoices";
|
|
@@ -775,10 +811,12 @@ export declare const invoicesRouter: {
|
|
|
775
811
|
}[];
|
|
776
812
|
buyerId: string;
|
|
777
813
|
billFromName: string;
|
|
814
|
+
farmId?: string | undefined;
|
|
778
815
|
currency?: string | undefined;
|
|
779
816
|
notes?: string | undefined;
|
|
780
817
|
waybillNumber?: string | undefined;
|
|
781
818
|
issueDate?: string | undefined;
|
|
819
|
+
commercialIntent?: "trade" | "farm_sale" | undefined;
|
|
782
820
|
taxRate?: number | undefined;
|
|
783
821
|
dueDate?: string | undefined;
|
|
784
822
|
billFromAddress?: string | undefined;
|
|
@@ -790,6 +828,7 @@ export declare const invoicesRouter: {
|
|
|
790
828
|
bankAccountId?: string | undefined;
|
|
791
829
|
waybillId?: string | undefined;
|
|
792
830
|
totalInWords?: string | undefined;
|
|
831
|
+
invoiceKind?: "provisional" | "final" | undefined;
|
|
793
832
|
};
|
|
794
833
|
}>;
|
|
795
834
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -809,9 +848,11 @@ export declare const invoicesRouter: {
|
|
|
809
848
|
}[];
|
|
810
849
|
buyerId: string;
|
|
811
850
|
billFromName: string;
|
|
851
|
+
farmId?: string | undefined;
|
|
812
852
|
notes?: string | undefined;
|
|
813
853
|
waybillNumber?: string | undefined;
|
|
814
854
|
issueDate?: string | undefined;
|
|
855
|
+
commercialIntent?: "trade" | "farm_sale" | undefined;
|
|
815
856
|
taxRate?: number | undefined;
|
|
816
857
|
dueDate?: string | undefined;
|
|
817
858
|
billFromAddress?: string | undefined;
|
|
@@ -823,6 +864,7 @@ export declare const invoicesRouter: {
|
|
|
823
864
|
bankAccountId?: string | undefined;
|
|
824
865
|
waybillId?: string | undefined;
|
|
825
866
|
totalInWords?: string | undefined;
|
|
867
|
+
invoiceKind?: "provisional" | "final" | undefined;
|
|
826
868
|
};
|
|
827
869
|
};
|
|
828
870
|
}, {
|
|
@@ -841,10 +883,12 @@ export declare const invoicesRouter: {
|
|
|
841
883
|
}[];
|
|
842
884
|
buyerId: string;
|
|
843
885
|
billFromName: string;
|
|
886
|
+
farmId?: string | undefined;
|
|
844
887
|
currency?: string | undefined;
|
|
845
888
|
notes?: string | undefined;
|
|
846
889
|
waybillNumber?: string | undefined;
|
|
847
890
|
issueDate?: string | undefined;
|
|
891
|
+
commercialIntent?: "trade" | "farm_sale" | undefined;
|
|
848
892
|
taxRate?: number | undefined;
|
|
849
893
|
dueDate?: string | undefined;
|
|
850
894
|
billFromAddress?: string | undefined;
|
|
@@ -856,6 +900,7 @@ export declare const invoicesRouter: {
|
|
|
856
900
|
bankAccountId?: string | undefined;
|
|
857
901
|
waybillId?: string | undefined;
|
|
858
902
|
totalInWords?: string | undefined;
|
|
903
|
+
invoiceKind?: "provisional" | "final" | undefined;
|
|
859
904
|
};
|
|
860
905
|
};
|
|
861
906
|
}>;
|
|
@@ -914,7 +959,7 @@ export declare const invoicesRouter: {
|
|
|
914
959
|
total: z.ZodNumber;
|
|
915
960
|
currency: z.ZodDefault<z.ZodString>;
|
|
916
961
|
paymentTerms: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
917
|
-
paymentStatus: z.ZodDefault<z.ZodEnum<["pending", "paid", "overdue", "cancelled"]>>;
|
|
962
|
+
paymentStatus: z.ZodDefault<z.ZodEnum<["pending", "partial", "paid", "overdue", "cancelled"]>>;
|
|
918
963
|
paidAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
919
964
|
notes: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
920
965
|
pdfUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -922,6 +967,9 @@ export declare const invoicesRouter: {
|
|
|
922
967
|
waybillNumber: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
923
968
|
waybillId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
924
969
|
totalInWords: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
970
|
+
farmId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
971
|
+
commercialIntent: z.ZodNullable<z.ZodOptional<z.ZodEnum<["farm_sale", "trade"]>>>;
|
|
972
|
+
invoiceKind: z.ZodDefault<z.ZodOptional<z.ZodEnum<["provisional", "final"]>>>;
|
|
925
973
|
organizationId: z.ZodString;
|
|
926
974
|
} & {
|
|
927
975
|
createdAt: z.ZodString;
|
|
@@ -929,8 +977,8 @@ export declare const invoicesRouter: {
|
|
|
929
977
|
}, "strip", z.ZodTypeAny, {
|
|
930
978
|
createdAt: string;
|
|
931
979
|
updatedAt: string;
|
|
932
|
-
currency: string;
|
|
933
980
|
organizationId: string;
|
|
981
|
+
currency: string;
|
|
934
982
|
total: number;
|
|
935
983
|
items: {
|
|
936
984
|
description: string;
|
|
@@ -947,11 +995,14 @@ export declare const invoicesRouter: {
|
|
|
947
995
|
billFromName: string;
|
|
948
996
|
billToName: string;
|
|
949
997
|
subtotal: number;
|
|
950
|
-
paymentStatus: "pending" | "cancelled" | "paid" | "overdue";
|
|
998
|
+
paymentStatus: "partial" | "pending" | "cancelled" | "paid" | "overdue";
|
|
999
|
+
invoiceKind: "provisional" | "final";
|
|
1000
|
+
farmId?: string | null | undefined;
|
|
951
1001
|
notes?: string | null | undefined;
|
|
952
1002
|
paidAt?: string | null | undefined;
|
|
953
1003
|
waybillNumber?: string | null | undefined;
|
|
954
1004
|
pdfUrl?: string | null | undefined;
|
|
1005
|
+
commercialIntent?: "trade" | "farm_sale" | null | undefined;
|
|
955
1006
|
taxRate?: number | null | undefined;
|
|
956
1007
|
dueDate?: string | null | undefined;
|
|
957
1008
|
billFromAddress?: string | null | undefined;
|
|
@@ -988,11 +1039,13 @@ export declare const invoicesRouter: {
|
|
|
988
1039
|
billFromName: string;
|
|
989
1040
|
billToName: string;
|
|
990
1041
|
subtotal: number;
|
|
1042
|
+
farmId?: string | null | undefined;
|
|
991
1043
|
currency?: string | undefined;
|
|
992
1044
|
notes?: string | null | undefined;
|
|
993
1045
|
paidAt?: string | null | undefined;
|
|
994
1046
|
waybillNumber?: string | null | undefined;
|
|
995
1047
|
pdfUrl?: string | null | undefined;
|
|
1048
|
+
commercialIntent?: "trade" | "farm_sale" | null | undefined;
|
|
996
1049
|
taxRate?: number | null | undefined;
|
|
997
1050
|
dueDate?: string | null | undefined;
|
|
998
1051
|
billFromAddress?: string | null | undefined;
|
|
@@ -1006,10 +1059,11 @@ export declare const invoicesRouter: {
|
|
|
1006
1059
|
taxAmount?: number | null | undefined;
|
|
1007
1060
|
discount?: number | null | undefined;
|
|
1008
1061
|
paymentTerms?: string | null | undefined;
|
|
1009
|
-
paymentStatus?: "pending" | "cancelled" | "paid" | "overdue" | undefined;
|
|
1062
|
+
paymentStatus?: "partial" | "pending" | "cancelled" | "paid" | "overdue" | undefined;
|
|
1010
1063
|
bankAccountId?: string | null | undefined;
|
|
1011
1064
|
waybillId?: string | null | undefined;
|
|
1012
1065
|
totalInWords?: string | null | undefined;
|
|
1066
|
+
invoiceKind?: "provisional" | "final" | undefined;
|
|
1013
1067
|
}>;
|
|
1014
1068
|
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1015
1069
|
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -1020,8 +1074,8 @@ export declare const invoicesRouter: {
|
|
|
1020
1074
|
attributes: {
|
|
1021
1075
|
createdAt: string;
|
|
1022
1076
|
updatedAt: string;
|
|
1023
|
-
currency: string;
|
|
1024
1077
|
organizationId: string;
|
|
1078
|
+
currency: string;
|
|
1025
1079
|
total: number;
|
|
1026
1080
|
items: {
|
|
1027
1081
|
description: string;
|
|
@@ -1038,11 +1092,14 @@ export declare const invoicesRouter: {
|
|
|
1038
1092
|
billFromName: string;
|
|
1039
1093
|
billToName: string;
|
|
1040
1094
|
subtotal: number;
|
|
1041
|
-
paymentStatus: "pending" | "cancelled" | "paid" | "overdue";
|
|
1095
|
+
paymentStatus: "partial" | "pending" | "cancelled" | "paid" | "overdue";
|
|
1096
|
+
invoiceKind: "provisional" | "final";
|
|
1097
|
+
farmId?: string | null | undefined;
|
|
1042
1098
|
notes?: string | null | undefined;
|
|
1043
1099
|
paidAt?: string | null | undefined;
|
|
1044
1100
|
waybillNumber?: string | null | undefined;
|
|
1045
1101
|
pdfUrl?: string | null | undefined;
|
|
1102
|
+
commercialIntent?: "trade" | "farm_sale" | null | undefined;
|
|
1046
1103
|
taxRate?: number | null | undefined;
|
|
1047
1104
|
dueDate?: string | null | undefined;
|
|
1048
1105
|
billFromAddress?: string | null | undefined;
|
|
@@ -1086,11 +1143,13 @@ export declare const invoicesRouter: {
|
|
|
1086
1143
|
billFromName: string;
|
|
1087
1144
|
billToName: string;
|
|
1088
1145
|
subtotal: number;
|
|
1146
|
+
farmId?: string | null | undefined;
|
|
1089
1147
|
currency?: string | undefined;
|
|
1090
1148
|
notes?: string | null | undefined;
|
|
1091
1149
|
paidAt?: string | null | undefined;
|
|
1092
1150
|
waybillNumber?: string | null | undefined;
|
|
1093
1151
|
pdfUrl?: string | null | undefined;
|
|
1152
|
+
commercialIntent?: "trade" | "farm_sale" | null | undefined;
|
|
1094
1153
|
taxRate?: number | null | undefined;
|
|
1095
1154
|
dueDate?: string | null | undefined;
|
|
1096
1155
|
billFromAddress?: string | null | undefined;
|
|
@@ -1104,10 +1163,11 @@ export declare const invoicesRouter: {
|
|
|
1104
1163
|
taxAmount?: number | null | undefined;
|
|
1105
1164
|
discount?: number | null | undefined;
|
|
1106
1165
|
paymentTerms?: string | null | undefined;
|
|
1107
|
-
paymentStatus?: "pending" | "cancelled" | "paid" | "overdue" | undefined;
|
|
1166
|
+
paymentStatus?: "partial" | "pending" | "cancelled" | "paid" | "overdue" | undefined;
|
|
1108
1167
|
bankAccountId?: string | null | undefined;
|
|
1109
1168
|
waybillId?: string | null | undefined;
|
|
1110
1169
|
totalInWords?: string | null | undefined;
|
|
1170
|
+
invoiceKind?: "provisional" | "final" | undefined;
|
|
1111
1171
|
};
|
|
1112
1172
|
relationships?: Record<string, unknown> | undefined;
|
|
1113
1173
|
links?: Record<string, string> | undefined;
|
|
@@ -1144,8 +1204,8 @@ export declare const invoicesRouter: {
|
|
|
1144
1204
|
attributes: {
|
|
1145
1205
|
createdAt: string;
|
|
1146
1206
|
updatedAt: string;
|
|
1147
|
-
currency: string;
|
|
1148
1207
|
organizationId: string;
|
|
1208
|
+
currency: string;
|
|
1149
1209
|
total: number;
|
|
1150
1210
|
items: {
|
|
1151
1211
|
description: string;
|
|
@@ -1162,11 +1222,14 @@ export declare const invoicesRouter: {
|
|
|
1162
1222
|
billFromName: string;
|
|
1163
1223
|
billToName: string;
|
|
1164
1224
|
subtotal: number;
|
|
1165
|
-
paymentStatus: "pending" | "cancelled" | "paid" | "overdue";
|
|
1225
|
+
paymentStatus: "partial" | "pending" | "cancelled" | "paid" | "overdue";
|
|
1226
|
+
invoiceKind: "provisional" | "final";
|
|
1227
|
+
farmId?: string | null | undefined;
|
|
1166
1228
|
notes?: string | null | undefined;
|
|
1167
1229
|
paidAt?: string | null | undefined;
|
|
1168
1230
|
waybillNumber?: string | null | undefined;
|
|
1169
1231
|
pdfUrl?: string | null | undefined;
|
|
1232
|
+
commercialIntent?: "trade" | "farm_sale" | null | undefined;
|
|
1170
1233
|
taxRate?: number | null | undefined;
|
|
1171
1234
|
dueDate?: string | null | undefined;
|
|
1172
1235
|
billFromAddress?: string | null | undefined;
|
|
@@ -1222,11 +1285,13 @@ export declare const invoicesRouter: {
|
|
|
1222
1285
|
billFromName: string;
|
|
1223
1286
|
billToName: string;
|
|
1224
1287
|
subtotal: number;
|
|
1288
|
+
farmId?: string | null | undefined;
|
|
1225
1289
|
currency?: string | undefined;
|
|
1226
1290
|
notes?: string | null | undefined;
|
|
1227
1291
|
paidAt?: string | null | undefined;
|
|
1228
1292
|
waybillNumber?: string | null | undefined;
|
|
1229
1293
|
pdfUrl?: string | null | undefined;
|
|
1294
|
+
commercialIntent?: "trade" | "farm_sale" | null | undefined;
|
|
1230
1295
|
taxRate?: number | null | undefined;
|
|
1231
1296
|
dueDate?: string | null | undefined;
|
|
1232
1297
|
billFromAddress?: string | null | undefined;
|
|
@@ -1240,10 +1305,11 @@ export declare const invoicesRouter: {
|
|
|
1240
1305
|
taxAmount?: number | null | undefined;
|
|
1241
1306
|
discount?: number | null | undefined;
|
|
1242
1307
|
paymentTerms?: string | null | undefined;
|
|
1243
|
-
paymentStatus?: "pending" | "cancelled" | "paid" | "overdue" | undefined;
|
|
1308
|
+
paymentStatus?: "partial" | "pending" | "cancelled" | "paid" | "overdue" | undefined;
|
|
1244
1309
|
bankAccountId?: string | null | undefined;
|
|
1245
1310
|
waybillId?: string | null | undefined;
|
|
1246
1311
|
totalInWords?: string | null | undefined;
|
|
1312
|
+
invoiceKind?: "provisional" | "final" | undefined;
|
|
1247
1313
|
};
|
|
1248
1314
|
relationships?: Record<string, unknown> | undefined;
|
|
1249
1315
|
links?: Record<string, string> | undefined;
|
|
@@ -1691,7 +1757,7 @@ export declare const invoicesRouter: {
|
|
|
1691
1757
|
total: z.ZodNumber;
|
|
1692
1758
|
currency: z.ZodDefault<z.ZodString>;
|
|
1693
1759
|
paymentTerms: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1694
|
-
paymentStatus: z.ZodDefault<z.ZodEnum<["pending", "paid", "overdue", "cancelled"]>>;
|
|
1760
|
+
paymentStatus: z.ZodDefault<z.ZodEnum<["pending", "partial", "paid", "overdue", "cancelled"]>>;
|
|
1695
1761
|
paidAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1696
1762
|
notes: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1697
1763
|
pdfUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -1699,6 +1765,9 @@ export declare const invoicesRouter: {
|
|
|
1699
1765
|
waybillNumber: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1700
1766
|
waybillId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1701
1767
|
totalInWords: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1768
|
+
farmId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1769
|
+
commercialIntent: z.ZodNullable<z.ZodOptional<z.ZodEnum<["farm_sale", "trade"]>>>;
|
|
1770
|
+
invoiceKind: z.ZodDefault<z.ZodOptional<z.ZodEnum<["provisional", "final"]>>>;
|
|
1702
1771
|
organizationId: z.ZodString;
|
|
1703
1772
|
} & {
|
|
1704
1773
|
createdAt: z.ZodString;
|
|
@@ -1706,8 +1775,8 @@ export declare const invoicesRouter: {
|
|
|
1706
1775
|
}, "strip", z.ZodTypeAny, {
|
|
1707
1776
|
createdAt: string;
|
|
1708
1777
|
updatedAt: string;
|
|
1709
|
-
currency: string;
|
|
1710
1778
|
organizationId: string;
|
|
1779
|
+
currency: string;
|
|
1711
1780
|
total: number;
|
|
1712
1781
|
items: {
|
|
1713
1782
|
description: string;
|
|
@@ -1724,11 +1793,14 @@ export declare const invoicesRouter: {
|
|
|
1724
1793
|
billFromName: string;
|
|
1725
1794
|
billToName: string;
|
|
1726
1795
|
subtotal: number;
|
|
1727
|
-
paymentStatus: "pending" | "cancelled" | "paid" | "overdue";
|
|
1796
|
+
paymentStatus: "partial" | "pending" | "cancelled" | "paid" | "overdue";
|
|
1797
|
+
invoiceKind: "provisional" | "final";
|
|
1798
|
+
farmId?: string | null | undefined;
|
|
1728
1799
|
notes?: string | null | undefined;
|
|
1729
1800
|
paidAt?: string | null | undefined;
|
|
1730
1801
|
waybillNumber?: string | null | undefined;
|
|
1731
1802
|
pdfUrl?: string | null | undefined;
|
|
1803
|
+
commercialIntent?: "trade" | "farm_sale" | null | undefined;
|
|
1732
1804
|
taxRate?: number | null | undefined;
|
|
1733
1805
|
dueDate?: string | null | undefined;
|
|
1734
1806
|
billFromAddress?: string | null | undefined;
|
|
@@ -1765,11 +1837,13 @@ export declare const invoicesRouter: {
|
|
|
1765
1837
|
billFromName: string;
|
|
1766
1838
|
billToName: string;
|
|
1767
1839
|
subtotal: number;
|
|
1840
|
+
farmId?: string | null | undefined;
|
|
1768
1841
|
currency?: string | undefined;
|
|
1769
1842
|
notes?: string | null | undefined;
|
|
1770
1843
|
paidAt?: string | null | undefined;
|
|
1771
1844
|
waybillNumber?: string | null | undefined;
|
|
1772
1845
|
pdfUrl?: string | null | undefined;
|
|
1846
|
+
commercialIntent?: "trade" | "farm_sale" | null | undefined;
|
|
1773
1847
|
taxRate?: number | null | undefined;
|
|
1774
1848
|
dueDate?: string | null | undefined;
|
|
1775
1849
|
billFromAddress?: string | null | undefined;
|
|
@@ -1783,10 +1857,11 @@ export declare const invoicesRouter: {
|
|
|
1783
1857
|
taxAmount?: number | null | undefined;
|
|
1784
1858
|
discount?: number | null | undefined;
|
|
1785
1859
|
paymentTerms?: string | null | undefined;
|
|
1786
|
-
paymentStatus?: "pending" | "cancelled" | "paid" | "overdue" | undefined;
|
|
1860
|
+
paymentStatus?: "partial" | "pending" | "cancelled" | "paid" | "overdue" | undefined;
|
|
1787
1861
|
bankAccountId?: string | null | undefined;
|
|
1788
1862
|
waybillId?: string | null | undefined;
|
|
1789
1863
|
totalInWords?: string | null | undefined;
|
|
1864
|
+
invoiceKind?: "provisional" | "final" | undefined;
|
|
1790
1865
|
}>;
|
|
1791
1866
|
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1792
1867
|
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -1797,8 +1872,8 @@ export declare const invoicesRouter: {
|
|
|
1797
1872
|
attributes: {
|
|
1798
1873
|
createdAt: string;
|
|
1799
1874
|
updatedAt: string;
|
|
1800
|
-
currency: string;
|
|
1801
1875
|
organizationId: string;
|
|
1876
|
+
currency: string;
|
|
1802
1877
|
total: number;
|
|
1803
1878
|
items: {
|
|
1804
1879
|
description: string;
|
|
@@ -1815,11 +1890,14 @@ export declare const invoicesRouter: {
|
|
|
1815
1890
|
billFromName: string;
|
|
1816
1891
|
billToName: string;
|
|
1817
1892
|
subtotal: number;
|
|
1818
|
-
paymentStatus: "pending" | "cancelled" | "paid" | "overdue";
|
|
1893
|
+
paymentStatus: "partial" | "pending" | "cancelled" | "paid" | "overdue";
|
|
1894
|
+
invoiceKind: "provisional" | "final";
|
|
1895
|
+
farmId?: string | null | undefined;
|
|
1819
1896
|
notes?: string | null | undefined;
|
|
1820
1897
|
paidAt?: string | null | undefined;
|
|
1821
1898
|
waybillNumber?: string | null | undefined;
|
|
1822
1899
|
pdfUrl?: string | null | undefined;
|
|
1900
|
+
commercialIntent?: "trade" | "farm_sale" | null | undefined;
|
|
1823
1901
|
taxRate?: number | null | undefined;
|
|
1824
1902
|
dueDate?: string | null | undefined;
|
|
1825
1903
|
billFromAddress?: string | null | undefined;
|
|
@@ -1863,11 +1941,13 @@ export declare const invoicesRouter: {
|
|
|
1863
1941
|
billFromName: string;
|
|
1864
1942
|
billToName: string;
|
|
1865
1943
|
subtotal: number;
|
|
1944
|
+
farmId?: string | null | undefined;
|
|
1866
1945
|
currency?: string | undefined;
|
|
1867
1946
|
notes?: string | null | undefined;
|
|
1868
1947
|
paidAt?: string | null | undefined;
|
|
1869
1948
|
waybillNumber?: string | null | undefined;
|
|
1870
1949
|
pdfUrl?: string | null | undefined;
|
|
1950
|
+
commercialIntent?: "trade" | "farm_sale" | null | undefined;
|
|
1871
1951
|
taxRate?: number | null | undefined;
|
|
1872
1952
|
dueDate?: string | null | undefined;
|
|
1873
1953
|
billFromAddress?: string | null | undefined;
|
|
@@ -1881,10 +1961,11 @@ export declare const invoicesRouter: {
|
|
|
1881
1961
|
taxAmount?: number | null | undefined;
|
|
1882
1962
|
discount?: number | null | undefined;
|
|
1883
1963
|
paymentTerms?: string | null | undefined;
|
|
1884
|
-
paymentStatus?: "pending" | "cancelled" | "paid" | "overdue" | undefined;
|
|
1964
|
+
paymentStatus?: "partial" | "pending" | "cancelled" | "paid" | "overdue" | undefined;
|
|
1885
1965
|
bankAccountId?: string | null | undefined;
|
|
1886
1966
|
waybillId?: string | null | undefined;
|
|
1887
1967
|
totalInWords?: string | null | undefined;
|
|
1968
|
+
invoiceKind?: "provisional" | "final" | undefined;
|
|
1888
1969
|
};
|
|
1889
1970
|
relationships?: Record<string, unknown> | undefined;
|
|
1890
1971
|
links?: Record<string, string> | undefined;
|
|
@@ -1921,8 +2002,8 @@ export declare const invoicesRouter: {
|
|
|
1921
2002
|
attributes: {
|
|
1922
2003
|
createdAt: string;
|
|
1923
2004
|
updatedAt: string;
|
|
1924
|
-
currency: string;
|
|
1925
2005
|
organizationId: string;
|
|
2006
|
+
currency: string;
|
|
1926
2007
|
total: number;
|
|
1927
2008
|
items: {
|
|
1928
2009
|
description: string;
|
|
@@ -1939,11 +2020,14 @@ export declare const invoicesRouter: {
|
|
|
1939
2020
|
billFromName: string;
|
|
1940
2021
|
billToName: string;
|
|
1941
2022
|
subtotal: number;
|
|
1942
|
-
paymentStatus: "pending" | "cancelled" | "paid" | "overdue";
|
|
2023
|
+
paymentStatus: "partial" | "pending" | "cancelled" | "paid" | "overdue";
|
|
2024
|
+
invoiceKind: "provisional" | "final";
|
|
2025
|
+
farmId?: string | null | undefined;
|
|
1943
2026
|
notes?: string | null | undefined;
|
|
1944
2027
|
paidAt?: string | null | undefined;
|
|
1945
2028
|
waybillNumber?: string | null | undefined;
|
|
1946
2029
|
pdfUrl?: string | null | undefined;
|
|
2030
|
+
commercialIntent?: "trade" | "farm_sale" | null | undefined;
|
|
1947
2031
|
taxRate?: number | null | undefined;
|
|
1948
2032
|
dueDate?: string | null | undefined;
|
|
1949
2033
|
billFromAddress?: string | null | undefined;
|
|
@@ -1999,11 +2083,13 @@ export declare const invoicesRouter: {
|
|
|
1999
2083
|
billFromName: string;
|
|
2000
2084
|
billToName: string;
|
|
2001
2085
|
subtotal: number;
|
|
2086
|
+
farmId?: string | null | undefined;
|
|
2002
2087
|
currency?: string | undefined;
|
|
2003
2088
|
notes?: string | null | undefined;
|
|
2004
2089
|
paidAt?: string | null | undefined;
|
|
2005
2090
|
waybillNumber?: string | null | undefined;
|
|
2006
2091
|
pdfUrl?: string | null | undefined;
|
|
2092
|
+
commercialIntent?: "trade" | "farm_sale" | null | undefined;
|
|
2007
2093
|
taxRate?: number | null | undefined;
|
|
2008
2094
|
dueDate?: string | null | undefined;
|
|
2009
2095
|
billFromAddress?: string | null | undefined;
|
|
@@ -2017,10 +2103,11 @@ export declare const invoicesRouter: {
|
|
|
2017
2103
|
taxAmount?: number | null | undefined;
|
|
2018
2104
|
discount?: number | null | undefined;
|
|
2019
2105
|
paymentTerms?: string | null | undefined;
|
|
2020
|
-
paymentStatus?: "pending" | "cancelled" | "paid" | "overdue" | undefined;
|
|
2106
|
+
paymentStatus?: "partial" | "pending" | "cancelled" | "paid" | "overdue" | undefined;
|
|
2021
2107
|
bankAccountId?: string | null | undefined;
|
|
2022
2108
|
waybillId?: string | null | undefined;
|
|
2023
2109
|
totalInWords?: string | null | undefined;
|
|
2110
|
+
invoiceKind?: "provisional" | "final" | undefined;
|
|
2024
2111
|
};
|
|
2025
2112
|
relationships?: Record<string, unknown> | undefined;
|
|
2026
2113
|
links?: Record<string, string> | undefined;
|
|
@@ -2283,9 +2370,13 @@ export declare const invoicesRouter: {
|
|
|
2283
2370
|
waybillNumber: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
2284
2371
|
waybillId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
2285
2372
|
totalInWords: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
2373
|
+
farmId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
2374
|
+
commercialIntent: z.ZodOptional<z.ZodOptional<z.ZodEnum<["farm_sale", "trade"]>>>;
|
|
2375
|
+
invoiceKind: z.ZodOptional<z.ZodOptional<z.ZodEnum<["provisional", "final"]>>>;
|
|
2286
2376
|
} & {
|
|
2287
|
-
paymentStatus: z.ZodOptional<z.ZodEnum<["pending", "paid", "overdue", "cancelled"]>>;
|
|
2377
|
+
paymentStatus: z.ZodOptional<z.ZodEnum<["pending", "partial", "paid", "overdue", "cancelled"]>>;
|
|
2288
2378
|
}, "strip", z.ZodTypeAny, {
|
|
2379
|
+
farmId?: string | undefined;
|
|
2289
2380
|
currency?: string | undefined;
|
|
2290
2381
|
notes?: string | undefined;
|
|
2291
2382
|
items?: {
|
|
@@ -2300,6 +2391,7 @@ export declare const invoicesRouter: {
|
|
|
2300
2391
|
}[] | undefined;
|
|
2301
2392
|
waybillNumber?: string | undefined;
|
|
2302
2393
|
issueDate?: string | undefined;
|
|
2394
|
+
commercialIntent?: "trade" | "farm_sale" | undefined;
|
|
2303
2395
|
buyerId?: string | undefined;
|
|
2304
2396
|
taxRate?: number | undefined;
|
|
2305
2397
|
dueDate?: string | undefined;
|
|
@@ -2310,11 +2402,13 @@ export declare const invoicesRouter: {
|
|
|
2310
2402
|
billFromTaxId?: string | undefined;
|
|
2311
2403
|
discount?: number | undefined;
|
|
2312
2404
|
paymentTerms?: string | undefined;
|
|
2313
|
-
paymentStatus?: "pending" | "cancelled" | "paid" | "overdue" | undefined;
|
|
2405
|
+
paymentStatus?: "partial" | "pending" | "cancelled" | "paid" | "overdue" | undefined;
|
|
2314
2406
|
bankAccountId?: string | undefined;
|
|
2315
2407
|
waybillId?: string | undefined;
|
|
2316
2408
|
totalInWords?: string | undefined;
|
|
2409
|
+
invoiceKind?: "provisional" | "final" | undefined;
|
|
2317
2410
|
}, {
|
|
2411
|
+
farmId?: string | undefined;
|
|
2318
2412
|
currency?: string | undefined;
|
|
2319
2413
|
notes?: string | undefined;
|
|
2320
2414
|
items?: {
|
|
@@ -2329,6 +2423,7 @@ export declare const invoicesRouter: {
|
|
|
2329
2423
|
}[] | undefined;
|
|
2330
2424
|
waybillNumber?: string | undefined;
|
|
2331
2425
|
issueDate?: string | undefined;
|
|
2426
|
+
commercialIntent?: "trade" | "farm_sale" | undefined;
|
|
2332
2427
|
buyerId?: string | undefined;
|
|
2333
2428
|
taxRate?: number | undefined;
|
|
2334
2429
|
dueDate?: string | undefined;
|
|
@@ -2339,15 +2434,17 @@ export declare const invoicesRouter: {
|
|
|
2339
2434
|
billFromTaxId?: string | undefined;
|
|
2340
2435
|
discount?: number | undefined;
|
|
2341
2436
|
paymentTerms?: string | undefined;
|
|
2342
|
-
paymentStatus?: "pending" | "cancelled" | "paid" | "overdue" | undefined;
|
|
2437
|
+
paymentStatus?: "partial" | "pending" | "cancelled" | "paid" | "overdue" | undefined;
|
|
2343
2438
|
bankAccountId?: string | undefined;
|
|
2344
2439
|
waybillId?: string | undefined;
|
|
2345
2440
|
totalInWords?: string | undefined;
|
|
2441
|
+
invoiceKind?: "provisional" | "final" | undefined;
|
|
2346
2442
|
}>;
|
|
2347
2443
|
}, "strip", z.ZodTypeAny, {
|
|
2348
2444
|
type: "invoices";
|
|
2349
2445
|
id: string;
|
|
2350
2446
|
attributes: {
|
|
2447
|
+
farmId?: string | undefined;
|
|
2351
2448
|
currency?: string | undefined;
|
|
2352
2449
|
notes?: string | undefined;
|
|
2353
2450
|
items?: {
|
|
@@ -2362,6 +2459,7 @@ export declare const invoicesRouter: {
|
|
|
2362
2459
|
}[] | undefined;
|
|
2363
2460
|
waybillNumber?: string | undefined;
|
|
2364
2461
|
issueDate?: string | undefined;
|
|
2462
|
+
commercialIntent?: "trade" | "farm_sale" | undefined;
|
|
2365
2463
|
buyerId?: string | undefined;
|
|
2366
2464
|
taxRate?: number | undefined;
|
|
2367
2465
|
dueDate?: string | undefined;
|
|
@@ -2372,15 +2470,17 @@ export declare const invoicesRouter: {
|
|
|
2372
2470
|
billFromTaxId?: string | undefined;
|
|
2373
2471
|
discount?: number | undefined;
|
|
2374
2472
|
paymentTerms?: string | undefined;
|
|
2375
|
-
paymentStatus?: "pending" | "cancelled" | "paid" | "overdue" | undefined;
|
|
2473
|
+
paymentStatus?: "partial" | "pending" | "cancelled" | "paid" | "overdue" | undefined;
|
|
2376
2474
|
bankAccountId?: string | undefined;
|
|
2377
2475
|
waybillId?: string | undefined;
|
|
2378
2476
|
totalInWords?: string | undefined;
|
|
2477
|
+
invoiceKind?: "provisional" | "final" | undefined;
|
|
2379
2478
|
};
|
|
2380
2479
|
}, {
|
|
2381
2480
|
type: "invoices";
|
|
2382
2481
|
id: string;
|
|
2383
2482
|
attributes: {
|
|
2483
|
+
farmId?: string | undefined;
|
|
2384
2484
|
currency?: string | undefined;
|
|
2385
2485
|
notes?: string | undefined;
|
|
2386
2486
|
items?: {
|
|
@@ -2395,6 +2495,7 @@ export declare const invoicesRouter: {
|
|
|
2395
2495
|
}[] | undefined;
|
|
2396
2496
|
waybillNumber?: string | undefined;
|
|
2397
2497
|
issueDate?: string | undefined;
|
|
2498
|
+
commercialIntent?: "trade" | "farm_sale" | undefined;
|
|
2398
2499
|
buyerId?: string | undefined;
|
|
2399
2500
|
taxRate?: number | undefined;
|
|
2400
2501
|
dueDate?: string | undefined;
|
|
@@ -2405,10 +2506,11 @@ export declare const invoicesRouter: {
|
|
|
2405
2506
|
billFromTaxId?: string | undefined;
|
|
2406
2507
|
discount?: number | undefined;
|
|
2407
2508
|
paymentTerms?: string | undefined;
|
|
2408
|
-
paymentStatus?: "pending" | "cancelled" | "paid" | "overdue" | undefined;
|
|
2509
|
+
paymentStatus?: "partial" | "pending" | "cancelled" | "paid" | "overdue" | undefined;
|
|
2409
2510
|
bankAccountId?: string | undefined;
|
|
2410
2511
|
waybillId?: string | undefined;
|
|
2411
2512
|
totalInWords?: string | undefined;
|
|
2513
|
+
invoiceKind?: "provisional" | "final" | undefined;
|
|
2412
2514
|
};
|
|
2413
2515
|
}>;
|
|
2414
2516
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -2416,6 +2518,7 @@ export declare const invoicesRouter: {
|
|
|
2416
2518
|
type: "invoices";
|
|
2417
2519
|
id: string;
|
|
2418
2520
|
attributes: {
|
|
2521
|
+
farmId?: string | undefined;
|
|
2419
2522
|
currency?: string | undefined;
|
|
2420
2523
|
notes?: string | undefined;
|
|
2421
2524
|
items?: {
|
|
@@ -2430,6 +2533,7 @@ export declare const invoicesRouter: {
|
|
|
2430
2533
|
}[] | undefined;
|
|
2431
2534
|
waybillNumber?: string | undefined;
|
|
2432
2535
|
issueDate?: string | undefined;
|
|
2536
|
+
commercialIntent?: "trade" | "farm_sale" | undefined;
|
|
2433
2537
|
buyerId?: string | undefined;
|
|
2434
2538
|
taxRate?: number | undefined;
|
|
2435
2539
|
dueDate?: string | undefined;
|
|
@@ -2440,10 +2544,11 @@ export declare const invoicesRouter: {
|
|
|
2440
2544
|
billFromTaxId?: string | undefined;
|
|
2441
2545
|
discount?: number | undefined;
|
|
2442
2546
|
paymentTerms?: string | undefined;
|
|
2443
|
-
paymentStatus?: "pending" | "cancelled" | "paid" | "overdue" | undefined;
|
|
2547
|
+
paymentStatus?: "partial" | "pending" | "cancelled" | "paid" | "overdue" | undefined;
|
|
2444
2548
|
bankAccountId?: string | undefined;
|
|
2445
2549
|
waybillId?: string | undefined;
|
|
2446
2550
|
totalInWords?: string | undefined;
|
|
2551
|
+
invoiceKind?: "provisional" | "final" | undefined;
|
|
2447
2552
|
};
|
|
2448
2553
|
};
|
|
2449
2554
|
}, {
|
|
@@ -2451,6 +2556,7 @@ export declare const invoicesRouter: {
|
|
|
2451
2556
|
type: "invoices";
|
|
2452
2557
|
id: string;
|
|
2453
2558
|
attributes: {
|
|
2559
|
+
farmId?: string | undefined;
|
|
2454
2560
|
currency?: string | undefined;
|
|
2455
2561
|
notes?: string | undefined;
|
|
2456
2562
|
items?: {
|
|
@@ -2465,6 +2571,7 @@ export declare const invoicesRouter: {
|
|
|
2465
2571
|
}[] | undefined;
|
|
2466
2572
|
waybillNumber?: string | undefined;
|
|
2467
2573
|
issueDate?: string | undefined;
|
|
2574
|
+
commercialIntent?: "trade" | "farm_sale" | undefined;
|
|
2468
2575
|
buyerId?: string | undefined;
|
|
2469
2576
|
taxRate?: number | undefined;
|
|
2470
2577
|
dueDate?: string | undefined;
|
|
@@ -2475,10 +2582,11 @@ export declare const invoicesRouter: {
|
|
|
2475
2582
|
billFromTaxId?: string | undefined;
|
|
2476
2583
|
discount?: number | undefined;
|
|
2477
2584
|
paymentTerms?: string | undefined;
|
|
2478
|
-
paymentStatus?: "pending" | "cancelled" | "paid" | "overdue" | undefined;
|
|
2585
|
+
paymentStatus?: "partial" | "pending" | "cancelled" | "paid" | "overdue" | undefined;
|
|
2479
2586
|
bankAccountId?: string | undefined;
|
|
2480
2587
|
waybillId?: string | undefined;
|
|
2481
2588
|
totalInWords?: string | undefined;
|
|
2589
|
+
invoiceKind?: "provisional" | "final" | undefined;
|
|
2482
2590
|
};
|
|
2483
2591
|
};
|
|
2484
2592
|
}>;
|
|
@@ -2537,7 +2645,7 @@ export declare const invoicesRouter: {
|
|
|
2537
2645
|
total: z.ZodNumber;
|
|
2538
2646
|
currency: z.ZodDefault<z.ZodString>;
|
|
2539
2647
|
paymentTerms: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
2540
|
-
paymentStatus: z.ZodDefault<z.ZodEnum<["pending", "paid", "overdue", "cancelled"]>>;
|
|
2648
|
+
paymentStatus: z.ZodDefault<z.ZodEnum<["pending", "partial", "paid", "overdue", "cancelled"]>>;
|
|
2541
2649
|
paidAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
2542
2650
|
notes: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
2543
2651
|
pdfUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -2545,6 +2653,9 @@ export declare const invoicesRouter: {
|
|
|
2545
2653
|
waybillNumber: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
2546
2654
|
waybillId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
2547
2655
|
totalInWords: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
2656
|
+
farmId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
2657
|
+
commercialIntent: z.ZodNullable<z.ZodOptional<z.ZodEnum<["farm_sale", "trade"]>>>;
|
|
2658
|
+
invoiceKind: z.ZodDefault<z.ZodOptional<z.ZodEnum<["provisional", "final"]>>>;
|
|
2548
2659
|
organizationId: z.ZodString;
|
|
2549
2660
|
} & {
|
|
2550
2661
|
createdAt: z.ZodString;
|
|
@@ -2552,8 +2663,8 @@ export declare const invoicesRouter: {
|
|
|
2552
2663
|
}, "strip", z.ZodTypeAny, {
|
|
2553
2664
|
createdAt: string;
|
|
2554
2665
|
updatedAt: string;
|
|
2555
|
-
currency: string;
|
|
2556
2666
|
organizationId: string;
|
|
2667
|
+
currency: string;
|
|
2557
2668
|
total: number;
|
|
2558
2669
|
items: {
|
|
2559
2670
|
description: string;
|
|
@@ -2570,11 +2681,14 @@ export declare const invoicesRouter: {
|
|
|
2570
2681
|
billFromName: string;
|
|
2571
2682
|
billToName: string;
|
|
2572
2683
|
subtotal: number;
|
|
2573
|
-
paymentStatus: "pending" | "cancelled" | "paid" | "overdue";
|
|
2684
|
+
paymentStatus: "partial" | "pending" | "cancelled" | "paid" | "overdue";
|
|
2685
|
+
invoiceKind: "provisional" | "final";
|
|
2686
|
+
farmId?: string | null | undefined;
|
|
2574
2687
|
notes?: string | null | undefined;
|
|
2575
2688
|
paidAt?: string | null | undefined;
|
|
2576
2689
|
waybillNumber?: string | null | undefined;
|
|
2577
2690
|
pdfUrl?: string | null | undefined;
|
|
2691
|
+
commercialIntent?: "trade" | "farm_sale" | null | undefined;
|
|
2578
2692
|
taxRate?: number | null | undefined;
|
|
2579
2693
|
dueDate?: string | null | undefined;
|
|
2580
2694
|
billFromAddress?: string | null | undefined;
|
|
@@ -2611,11 +2725,13 @@ export declare const invoicesRouter: {
|
|
|
2611
2725
|
billFromName: string;
|
|
2612
2726
|
billToName: string;
|
|
2613
2727
|
subtotal: number;
|
|
2728
|
+
farmId?: string | null | undefined;
|
|
2614
2729
|
currency?: string | undefined;
|
|
2615
2730
|
notes?: string | null | undefined;
|
|
2616
2731
|
paidAt?: string | null | undefined;
|
|
2617
2732
|
waybillNumber?: string | null | undefined;
|
|
2618
2733
|
pdfUrl?: string | null | undefined;
|
|
2734
|
+
commercialIntent?: "trade" | "farm_sale" | null | undefined;
|
|
2619
2735
|
taxRate?: number | null | undefined;
|
|
2620
2736
|
dueDate?: string | null | undefined;
|
|
2621
2737
|
billFromAddress?: string | null | undefined;
|
|
@@ -2629,10 +2745,11 @@ export declare const invoicesRouter: {
|
|
|
2629
2745
|
taxAmount?: number | null | undefined;
|
|
2630
2746
|
discount?: number | null | undefined;
|
|
2631
2747
|
paymentTerms?: string | null | undefined;
|
|
2632
|
-
paymentStatus?: "pending" | "cancelled" | "paid" | "overdue" | undefined;
|
|
2748
|
+
paymentStatus?: "partial" | "pending" | "cancelled" | "paid" | "overdue" | undefined;
|
|
2633
2749
|
bankAccountId?: string | null | undefined;
|
|
2634
2750
|
waybillId?: string | null | undefined;
|
|
2635
2751
|
totalInWords?: string | null | undefined;
|
|
2752
|
+
invoiceKind?: "provisional" | "final" | undefined;
|
|
2636
2753
|
}>;
|
|
2637
2754
|
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2638
2755
|
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -2643,8 +2760,8 @@ export declare const invoicesRouter: {
|
|
|
2643
2760
|
attributes: {
|
|
2644
2761
|
createdAt: string;
|
|
2645
2762
|
updatedAt: string;
|
|
2646
|
-
currency: string;
|
|
2647
2763
|
organizationId: string;
|
|
2764
|
+
currency: string;
|
|
2648
2765
|
total: number;
|
|
2649
2766
|
items: {
|
|
2650
2767
|
description: string;
|
|
@@ -2661,11 +2778,14 @@ export declare const invoicesRouter: {
|
|
|
2661
2778
|
billFromName: string;
|
|
2662
2779
|
billToName: string;
|
|
2663
2780
|
subtotal: number;
|
|
2664
|
-
paymentStatus: "pending" | "cancelled" | "paid" | "overdue";
|
|
2781
|
+
paymentStatus: "partial" | "pending" | "cancelled" | "paid" | "overdue";
|
|
2782
|
+
invoiceKind: "provisional" | "final";
|
|
2783
|
+
farmId?: string | null | undefined;
|
|
2665
2784
|
notes?: string | null | undefined;
|
|
2666
2785
|
paidAt?: string | null | undefined;
|
|
2667
2786
|
waybillNumber?: string | null | undefined;
|
|
2668
2787
|
pdfUrl?: string | null | undefined;
|
|
2788
|
+
commercialIntent?: "trade" | "farm_sale" | null | undefined;
|
|
2669
2789
|
taxRate?: number | null | undefined;
|
|
2670
2790
|
dueDate?: string | null | undefined;
|
|
2671
2791
|
billFromAddress?: string | null | undefined;
|
|
@@ -2709,11 +2829,13 @@ export declare const invoicesRouter: {
|
|
|
2709
2829
|
billFromName: string;
|
|
2710
2830
|
billToName: string;
|
|
2711
2831
|
subtotal: number;
|
|
2832
|
+
farmId?: string | null | undefined;
|
|
2712
2833
|
currency?: string | undefined;
|
|
2713
2834
|
notes?: string | null | undefined;
|
|
2714
2835
|
paidAt?: string | null | undefined;
|
|
2715
2836
|
waybillNumber?: string | null | undefined;
|
|
2716
2837
|
pdfUrl?: string | null | undefined;
|
|
2838
|
+
commercialIntent?: "trade" | "farm_sale" | null | undefined;
|
|
2717
2839
|
taxRate?: number | null | undefined;
|
|
2718
2840
|
dueDate?: string | null | undefined;
|
|
2719
2841
|
billFromAddress?: string | null | undefined;
|
|
@@ -2727,10 +2849,11 @@ export declare const invoicesRouter: {
|
|
|
2727
2849
|
taxAmount?: number | null | undefined;
|
|
2728
2850
|
discount?: number | null | undefined;
|
|
2729
2851
|
paymentTerms?: string | null | undefined;
|
|
2730
|
-
paymentStatus?: "pending" | "cancelled" | "paid" | "overdue" | undefined;
|
|
2852
|
+
paymentStatus?: "partial" | "pending" | "cancelled" | "paid" | "overdue" | undefined;
|
|
2731
2853
|
bankAccountId?: string | null | undefined;
|
|
2732
2854
|
waybillId?: string | null | undefined;
|
|
2733
2855
|
totalInWords?: string | null | undefined;
|
|
2856
|
+
invoiceKind?: "provisional" | "final" | undefined;
|
|
2734
2857
|
};
|
|
2735
2858
|
relationships?: Record<string, unknown> | undefined;
|
|
2736
2859
|
links?: Record<string, string> | undefined;
|
|
@@ -2767,8 +2890,8 @@ export declare const invoicesRouter: {
|
|
|
2767
2890
|
attributes: {
|
|
2768
2891
|
createdAt: string;
|
|
2769
2892
|
updatedAt: string;
|
|
2770
|
-
currency: string;
|
|
2771
2893
|
organizationId: string;
|
|
2894
|
+
currency: string;
|
|
2772
2895
|
total: number;
|
|
2773
2896
|
items: {
|
|
2774
2897
|
description: string;
|
|
@@ -2785,11 +2908,14 @@ export declare const invoicesRouter: {
|
|
|
2785
2908
|
billFromName: string;
|
|
2786
2909
|
billToName: string;
|
|
2787
2910
|
subtotal: number;
|
|
2788
|
-
paymentStatus: "pending" | "cancelled" | "paid" | "overdue";
|
|
2911
|
+
paymentStatus: "partial" | "pending" | "cancelled" | "paid" | "overdue";
|
|
2912
|
+
invoiceKind: "provisional" | "final";
|
|
2913
|
+
farmId?: string | null | undefined;
|
|
2789
2914
|
notes?: string | null | undefined;
|
|
2790
2915
|
paidAt?: string | null | undefined;
|
|
2791
2916
|
waybillNumber?: string | null | undefined;
|
|
2792
2917
|
pdfUrl?: string | null | undefined;
|
|
2918
|
+
commercialIntent?: "trade" | "farm_sale" | null | undefined;
|
|
2793
2919
|
taxRate?: number | null | undefined;
|
|
2794
2920
|
dueDate?: string | null | undefined;
|
|
2795
2921
|
billFromAddress?: string | null | undefined;
|
|
@@ -2845,11 +2971,13 @@ export declare const invoicesRouter: {
|
|
|
2845
2971
|
billFromName: string;
|
|
2846
2972
|
billToName: string;
|
|
2847
2973
|
subtotal: number;
|
|
2974
|
+
farmId?: string | null | undefined;
|
|
2848
2975
|
currency?: string | undefined;
|
|
2849
2976
|
notes?: string | null | undefined;
|
|
2850
2977
|
paidAt?: string | null | undefined;
|
|
2851
2978
|
waybillNumber?: string | null | undefined;
|
|
2852
2979
|
pdfUrl?: string | null | undefined;
|
|
2980
|
+
commercialIntent?: "trade" | "farm_sale" | null | undefined;
|
|
2853
2981
|
taxRate?: number | null | undefined;
|
|
2854
2982
|
dueDate?: string | null | undefined;
|
|
2855
2983
|
billFromAddress?: string | null | undefined;
|
|
@@ -2863,10 +2991,11 @@ export declare const invoicesRouter: {
|
|
|
2863
2991
|
taxAmount?: number | null | undefined;
|
|
2864
2992
|
discount?: number | null | undefined;
|
|
2865
2993
|
paymentTerms?: string | null | undefined;
|
|
2866
|
-
paymentStatus?: "pending" | "cancelled" | "paid" | "overdue" | undefined;
|
|
2994
|
+
paymentStatus?: "partial" | "pending" | "cancelled" | "paid" | "overdue" | undefined;
|
|
2867
2995
|
bankAccountId?: string | null | undefined;
|
|
2868
2996
|
waybillId?: string | null | undefined;
|
|
2869
2997
|
totalInWords?: string | null | undefined;
|
|
2998
|
+
invoiceKind?: "provisional" | "final" | undefined;
|
|
2870
2999
|
};
|
|
2871
3000
|
relationships?: Record<string, unknown> | undefined;
|
|
2872
3001
|
links?: Record<string, string> | undefined;
|
|
@@ -3315,7 +3444,7 @@ export declare const invoicesRouter: {
|
|
|
3315
3444
|
total: z.ZodNumber;
|
|
3316
3445
|
currency: z.ZodDefault<z.ZodString>;
|
|
3317
3446
|
paymentTerms: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
3318
|
-
paymentStatus: z.ZodDefault<z.ZodEnum<["pending", "paid", "overdue", "cancelled"]>>;
|
|
3447
|
+
paymentStatus: z.ZodDefault<z.ZodEnum<["pending", "partial", "paid", "overdue", "cancelled"]>>;
|
|
3319
3448
|
paidAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
3320
3449
|
notes: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
3321
3450
|
pdfUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -3323,6 +3452,9 @@ export declare const invoicesRouter: {
|
|
|
3323
3452
|
waybillNumber: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
3324
3453
|
waybillId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
3325
3454
|
totalInWords: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
3455
|
+
farmId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
3456
|
+
commercialIntent: z.ZodNullable<z.ZodOptional<z.ZodEnum<["farm_sale", "trade"]>>>;
|
|
3457
|
+
invoiceKind: z.ZodDefault<z.ZodOptional<z.ZodEnum<["provisional", "final"]>>>;
|
|
3326
3458
|
organizationId: z.ZodString;
|
|
3327
3459
|
} & {
|
|
3328
3460
|
createdAt: z.ZodString;
|
|
@@ -3330,8 +3462,8 @@ export declare const invoicesRouter: {
|
|
|
3330
3462
|
}, "strip", z.ZodTypeAny, {
|
|
3331
3463
|
createdAt: string;
|
|
3332
3464
|
updatedAt: string;
|
|
3333
|
-
currency: string;
|
|
3334
3465
|
organizationId: string;
|
|
3466
|
+
currency: string;
|
|
3335
3467
|
total: number;
|
|
3336
3468
|
items: {
|
|
3337
3469
|
description: string;
|
|
@@ -3348,11 +3480,14 @@ export declare const invoicesRouter: {
|
|
|
3348
3480
|
billFromName: string;
|
|
3349
3481
|
billToName: string;
|
|
3350
3482
|
subtotal: number;
|
|
3351
|
-
paymentStatus: "pending" | "cancelled" | "paid" | "overdue";
|
|
3483
|
+
paymentStatus: "partial" | "pending" | "cancelled" | "paid" | "overdue";
|
|
3484
|
+
invoiceKind: "provisional" | "final";
|
|
3485
|
+
farmId?: string | null | undefined;
|
|
3352
3486
|
notes?: string | null | undefined;
|
|
3353
3487
|
paidAt?: string | null | undefined;
|
|
3354
3488
|
waybillNumber?: string | null | undefined;
|
|
3355
3489
|
pdfUrl?: string | null | undefined;
|
|
3490
|
+
commercialIntent?: "trade" | "farm_sale" | null | undefined;
|
|
3356
3491
|
taxRate?: number | null | undefined;
|
|
3357
3492
|
dueDate?: string | null | undefined;
|
|
3358
3493
|
billFromAddress?: string | null | undefined;
|
|
@@ -3389,11 +3524,13 @@ export declare const invoicesRouter: {
|
|
|
3389
3524
|
billFromName: string;
|
|
3390
3525
|
billToName: string;
|
|
3391
3526
|
subtotal: number;
|
|
3527
|
+
farmId?: string | null | undefined;
|
|
3392
3528
|
currency?: string | undefined;
|
|
3393
3529
|
notes?: string | null | undefined;
|
|
3394
3530
|
paidAt?: string | null | undefined;
|
|
3395
3531
|
waybillNumber?: string | null | undefined;
|
|
3396
3532
|
pdfUrl?: string | null | undefined;
|
|
3533
|
+
commercialIntent?: "trade" | "farm_sale" | null | undefined;
|
|
3397
3534
|
taxRate?: number | null | undefined;
|
|
3398
3535
|
dueDate?: string | null | undefined;
|
|
3399
3536
|
billFromAddress?: string | null | undefined;
|
|
@@ -3407,10 +3544,11 @@ export declare const invoicesRouter: {
|
|
|
3407
3544
|
taxAmount?: number | null | undefined;
|
|
3408
3545
|
discount?: number | null | undefined;
|
|
3409
3546
|
paymentTerms?: string | null | undefined;
|
|
3410
|
-
paymentStatus?: "pending" | "cancelled" | "paid" | "overdue" | undefined;
|
|
3547
|
+
paymentStatus?: "partial" | "pending" | "cancelled" | "paid" | "overdue" | undefined;
|
|
3411
3548
|
bankAccountId?: string | null | undefined;
|
|
3412
3549
|
waybillId?: string | null | undefined;
|
|
3413
3550
|
totalInWords?: string | null | undefined;
|
|
3551
|
+
invoiceKind?: "provisional" | "final" | undefined;
|
|
3414
3552
|
}>;
|
|
3415
3553
|
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3416
3554
|
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -3421,8 +3559,8 @@ export declare const invoicesRouter: {
|
|
|
3421
3559
|
attributes: {
|
|
3422
3560
|
createdAt: string;
|
|
3423
3561
|
updatedAt: string;
|
|
3424
|
-
currency: string;
|
|
3425
3562
|
organizationId: string;
|
|
3563
|
+
currency: string;
|
|
3426
3564
|
total: number;
|
|
3427
3565
|
items: {
|
|
3428
3566
|
description: string;
|
|
@@ -3439,11 +3577,14 @@ export declare const invoicesRouter: {
|
|
|
3439
3577
|
billFromName: string;
|
|
3440
3578
|
billToName: string;
|
|
3441
3579
|
subtotal: number;
|
|
3442
|
-
paymentStatus: "pending" | "cancelled" | "paid" | "overdue";
|
|
3580
|
+
paymentStatus: "partial" | "pending" | "cancelled" | "paid" | "overdue";
|
|
3581
|
+
invoiceKind: "provisional" | "final";
|
|
3582
|
+
farmId?: string | null | undefined;
|
|
3443
3583
|
notes?: string | null | undefined;
|
|
3444
3584
|
paidAt?: string | null | undefined;
|
|
3445
3585
|
waybillNumber?: string | null | undefined;
|
|
3446
3586
|
pdfUrl?: string | null | undefined;
|
|
3587
|
+
commercialIntent?: "trade" | "farm_sale" | null | undefined;
|
|
3447
3588
|
taxRate?: number | null | undefined;
|
|
3448
3589
|
dueDate?: string | null | undefined;
|
|
3449
3590
|
billFromAddress?: string | null | undefined;
|
|
@@ -3487,11 +3628,13 @@ export declare const invoicesRouter: {
|
|
|
3487
3628
|
billFromName: string;
|
|
3488
3629
|
billToName: string;
|
|
3489
3630
|
subtotal: number;
|
|
3631
|
+
farmId?: string | null | undefined;
|
|
3490
3632
|
currency?: string | undefined;
|
|
3491
3633
|
notes?: string | null | undefined;
|
|
3492
3634
|
paidAt?: string | null | undefined;
|
|
3493
3635
|
waybillNumber?: string | null | undefined;
|
|
3494
3636
|
pdfUrl?: string | null | undefined;
|
|
3637
|
+
commercialIntent?: "trade" | "farm_sale" | null | undefined;
|
|
3495
3638
|
taxRate?: number | null | undefined;
|
|
3496
3639
|
dueDate?: string | null | undefined;
|
|
3497
3640
|
billFromAddress?: string | null | undefined;
|
|
@@ -3505,10 +3648,11 @@ export declare const invoicesRouter: {
|
|
|
3505
3648
|
taxAmount?: number | null | undefined;
|
|
3506
3649
|
discount?: number | null | undefined;
|
|
3507
3650
|
paymentTerms?: string | null | undefined;
|
|
3508
|
-
paymentStatus?: "pending" | "cancelled" | "paid" | "overdue" | undefined;
|
|
3651
|
+
paymentStatus?: "partial" | "pending" | "cancelled" | "paid" | "overdue" | undefined;
|
|
3509
3652
|
bankAccountId?: string | null | undefined;
|
|
3510
3653
|
waybillId?: string | null | undefined;
|
|
3511
3654
|
totalInWords?: string | null | undefined;
|
|
3655
|
+
invoiceKind?: "provisional" | "final" | undefined;
|
|
3512
3656
|
};
|
|
3513
3657
|
relationships?: Record<string, unknown> | undefined;
|
|
3514
3658
|
links?: Record<string, string> | undefined;
|
|
@@ -3545,8 +3689,8 @@ export declare const invoicesRouter: {
|
|
|
3545
3689
|
attributes: {
|
|
3546
3690
|
createdAt: string;
|
|
3547
3691
|
updatedAt: string;
|
|
3548
|
-
currency: string;
|
|
3549
3692
|
organizationId: string;
|
|
3693
|
+
currency: string;
|
|
3550
3694
|
total: number;
|
|
3551
3695
|
items: {
|
|
3552
3696
|
description: string;
|
|
@@ -3563,11 +3707,14 @@ export declare const invoicesRouter: {
|
|
|
3563
3707
|
billFromName: string;
|
|
3564
3708
|
billToName: string;
|
|
3565
3709
|
subtotal: number;
|
|
3566
|
-
paymentStatus: "pending" | "cancelled" | "paid" | "overdue";
|
|
3710
|
+
paymentStatus: "partial" | "pending" | "cancelled" | "paid" | "overdue";
|
|
3711
|
+
invoiceKind: "provisional" | "final";
|
|
3712
|
+
farmId?: string | null | undefined;
|
|
3567
3713
|
notes?: string | null | undefined;
|
|
3568
3714
|
paidAt?: string | null | undefined;
|
|
3569
3715
|
waybillNumber?: string | null | undefined;
|
|
3570
3716
|
pdfUrl?: string | null | undefined;
|
|
3717
|
+
commercialIntent?: "trade" | "farm_sale" | null | undefined;
|
|
3571
3718
|
taxRate?: number | null | undefined;
|
|
3572
3719
|
dueDate?: string | null | undefined;
|
|
3573
3720
|
billFromAddress?: string | null | undefined;
|
|
@@ -3623,11 +3770,13 @@ export declare const invoicesRouter: {
|
|
|
3623
3770
|
billFromName: string;
|
|
3624
3771
|
billToName: string;
|
|
3625
3772
|
subtotal: number;
|
|
3773
|
+
farmId?: string | null | undefined;
|
|
3626
3774
|
currency?: string | undefined;
|
|
3627
3775
|
notes?: string | null | undefined;
|
|
3628
3776
|
paidAt?: string | null | undefined;
|
|
3629
3777
|
waybillNumber?: string | null | undefined;
|
|
3630
3778
|
pdfUrl?: string | null | undefined;
|
|
3779
|
+
commercialIntent?: "trade" | "farm_sale" | null | undefined;
|
|
3631
3780
|
taxRate?: number | null | undefined;
|
|
3632
3781
|
dueDate?: string | null | undefined;
|
|
3633
3782
|
billFromAddress?: string | null | undefined;
|
|
@@ -3641,10 +3790,11 @@ export declare const invoicesRouter: {
|
|
|
3641
3790
|
taxAmount?: number | null | undefined;
|
|
3642
3791
|
discount?: number | null | undefined;
|
|
3643
3792
|
paymentTerms?: string | null | undefined;
|
|
3644
|
-
paymentStatus?: "pending" | "cancelled" | "paid" | "overdue" | undefined;
|
|
3793
|
+
paymentStatus?: "partial" | "pending" | "cancelled" | "paid" | "overdue" | undefined;
|
|
3645
3794
|
bankAccountId?: string | null | undefined;
|
|
3646
3795
|
waybillId?: string | null | undefined;
|
|
3647
3796
|
totalInWords?: string | null | undefined;
|
|
3797
|
+
invoiceKind?: "provisional" | "final" | undefined;
|
|
3648
3798
|
};
|
|
3649
3799
|
relationships?: Record<string, unknown> | undefined;
|
|
3650
3800
|
links?: Record<string, string> | undefined;
|