@deepintel-ltd/farmpro-contracts 1.5.18 → 1.5.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/dist/index.d.ts +7 -1
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +6 -0
  4. package/dist/routes/agents.routes.d.ts +192 -18
  5. package/dist/routes/agents.routes.d.ts.map +1 -1
  6. package/dist/routes/index.d.ts +9 -0
  7. package/dist/routes/index.d.ts.map +1 -1
  8. package/dist/routes/index.js +6 -0
  9. package/dist/routes/invoices.routes.d.ts +3608 -0
  10. package/dist/routes/invoices.routes.d.ts.map +1 -0
  11. package/dist/routes/invoices.routes.js +98 -0
  12. package/dist/routes/organizations.routes.d.ts +1669 -0
  13. package/dist/routes/organizations.routes.d.ts.map +1 -0
  14. package/dist/routes/organizations.routes.js +63 -0
  15. package/dist/routes/subscriptions.routes.d.ts +232 -0
  16. package/dist/routes/subscriptions.routes.d.ts.map +1 -1
  17. package/dist/routes/subscriptions.routes.js +25 -2
  18. package/dist/routes/waybills.routes.d.ts +3225 -0
  19. package/dist/routes/waybills.routes.d.ts.map +1 -0
  20. package/dist/routes/waybills.routes.js +95 -0
  21. package/dist/schemas/agents.schemas.d.ts +760 -49
  22. package/dist/schemas/agents.schemas.d.ts.map +1 -1
  23. package/dist/schemas/agents.schemas.js +21 -1
  24. package/dist/schemas/invoices.schemas.d.ts +1533 -0
  25. package/dist/schemas/invoices.schemas.d.ts.map +1 -0
  26. package/dist/schemas/invoices.schemas.js +85 -0
  27. package/dist/schemas/organizations.schemas.d.ts +509 -0
  28. package/dist/schemas/organizations.schemas.d.ts.map +1 -0
  29. package/dist/schemas/organizations.schemas.js +39 -0
  30. package/dist/schemas/waybills.schemas.d.ts +1261 -0
  31. package/dist/schemas/waybills.schemas.d.ts.map +1 -0
  32. package/dist/schemas/waybills.schemas.js +70 -0
  33. package/package.json +1 -1
@@ -0,0 +1,1533 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * Invoice schemas - JSON:API compliant
4
+ */
5
+ export declare const invoiceItemSchema: z.ZodObject<{
6
+ description: z.ZodString;
7
+ quantity: z.ZodNumber;
8
+ unitPrice: z.ZodNumber;
9
+ amount: z.ZodNumber;
10
+ taxRate: z.ZodOptional<z.ZodNumber>;
11
+ }, "strip", z.ZodTypeAny, {
12
+ description: string;
13
+ quantity: number;
14
+ amount: number;
15
+ unitPrice: number;
16
+ taxRate?: number | undefined;
17
+ }, {
18
+ description: string;
19
+ quantity: number;
20
+ amount: number;
21
+ unitPrice: number;
22
+ taxRate?: number | undefined;
23
+ }>;
24
+ export declare const invoiceAttributesSchema: z.ZodObject<{
25
+ invoiceNumber: z.ZodString;
26
+ issueDate: z.ZodString;
27
+ dueDate: z.ZodNullable<z.ZodOptional<z.ZodString>>;
28
+ billFromName: z.ZodString;
29
+ billFromAddress: z.ZodNullable<z.ZodOptional<z.ZodString>>;
30
+ billFromPhone: z.ZodNullable<z.ZodOptional<z.ZodString>>;
31
+ billFromEmail: z.ZodNullable<z.ZodOptional<z.ZodString>>;
32
+ billFromTaxId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
33
+ billToName: z.ZodString;
34
+ billToAddress: z.ZodNullable<z.ZodOptional<z.ZodString>>;
35
+ billToPhone: z.ZodNullable<z.ZodOptional<z.ZodString>>;
36
+ billToEmail: z.ZodNullable<z.ZodOptional<z.ZodString>>;
37
+ billToTaxId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
38
+ items: z.ZodArray<z.ZodObject<{
39
+ description: z.ZodString;
40
+ quantity: z.ZodNumber;
41
+ unitPrice: z.ZodNumber;
42
+ amount: z.ZodNumber;
43
+ taxRate: z.ZodOptional<z.ZodNumber>;
44
+ }, "strip", z.ZodTypeAny, {
45
+ description: string;
46
+ quantity: number;
47
+ amount: number;
48
+ unitPrice: number;
49
+ taxRate?: number | undefined;
50
+ }, {
51
+ description: string;
52
+ quantity: number;
53
+ amount: number;
54
+ unitPrice: number;
55
+ taxRate?: number | undefined;
56
+ }>, "many">;
57
+ subtotal: z.ZodNumber;
58
+ taxRate: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
59
+ taxAmount: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
60
+ discount: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
61
+ total: z.ZodNumber;
62
+ currency: z.ZodDefault<z.ZodString>;
63
+ paymentTerms: z.ZodNullable<z.ZodOptional<z.ZodString>>;
64
+ paymentStatus: z.ZodDefault<z.ZodEnum<["pending", "paid", "overdue", "cancelled"]>>;
65
+ paidAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
66
+ notes: z.ZodNullable<z.ZodOptional<z.ZodString>>;
67
+ pdfUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
68
+ organizationId: z.ZodString;
69
+ } & {
70
+ createdAt: z.ZodString;
71
+ updatedAt: z.ZodString;
72
+ }, "strip", z.ZodTypeAny, {
73
+ createdAt: string;
74
+ updatedAt: string;
75
+ currency: string;
76
+ total: number;
77
+ items: {
78
+ description: string;
79
+ quantity: number;
80
+ amount: number;
81
+ unitPrice: number;
82
+ taxRate?: number | undefined;
83
+ }[];
84
+ issueDate: string;
85
+ organizationId: string;
86
+ invoiceNumber: string;
87
+ billFromName: string;
88
+ billToName: string;
89
+ subtotal: number;
90
+ paymentStatus: "pending" | "cancelled" | "paid" | "overdue";
91
+ notes?: string | null | undefined;
92
+ paidAt?: string | null | undefined;
93
+ pdfUrl?: string | null | undefined;
94
+ taxRate?: number | null | undefined;
95
+ dueDate?: string | null | undefined;
96
+ billFromAddress?: string | null | undefined;
97
+ billFromPhone?: string | null | undefined;
98
+ billFromEmail?: string | null | undefined;
99
+ billFromTaxId?: string | null | undefined;
100
+ billToAddress?: string | null | undefined;
101
+ billToPhone?: string | null | undefined;
102
+ billToEmail?: string | null | undefined;
103
+ billToTaxId?: string | null | undefined;
104
+ taxAmount?: number | null | undefined;
105
+ discount?: number | null | undefined;
106
+ paymentTerms?: string | null | undefined;
107
+ }, {
108
+ createdAt: string;
109
+ updatedAt: string;
110
+ total: number;
111
+ items: {
112
+ description: string;
113
+ quantity: number;
114
+ amount: number;
115
+ unitPrice: number;
116
+ taxRate?: number | undefined;
117
+ }[];
118
+ issueDate: string;
119
+ organizationId: string;
120
+ invoiceNumber: string;
121
+ billFromName: string;
122
+ billToName: string;
123
+ subtotal: number;
124
+ currency?: string | undefined;
125
+ notes?: string | null | undefined;
126
+ paidAt?: string | null | undefined;
127
+ pdfUrl?: string | null | undefined;
128
+ taxRate?: number | null | undefined;
129
+ dueDate?: string | null | undefined;
130
+ billFromAddress?: string | null | undefined;
131
+ billFromPhone?: string | null | undefined;
132
+ billFromEmail?: string | null | undefined;
133
+ billFromTaxId?: string | null | undefined;
134
+ billToAddress?: string | null | undefined;
135
+ billToPhone?: string | null | undefined;
136
+ billToEmail?: string | null | undefined;
137
+ billToTaxId?: string | null | undefined;
138
+ taxAmount?: number | null | undefined;
139
+ discount?: number | null | undefined;
140
+ paymentTerms?: string | null | undefined;
141
+ paymentStatus?: "pending" | "cancelled" | "paid" | "overdue" | undefined;
142
+ }>;
143
+ export declare const createInvoiceAttributesSchema: z.ZodObject<{
144
+ issueDate: z.ZodOptional<z.ZodString>;
145
+ dueDate: z.ZodOptional<z.ZodString>;
146
+ billFromName: z.ZodString;
147
+ billFromAddress: z.ZodOptional<z.ZodString>;
148
+ billFromPhone: z.ZodOptional<z.ZodString>;
149
+ billFromEmail: z.ZodOptional<z.ZodString>;
150
+ billFromTaxId: z.ZodOptional<z.ZodString>;
151
+ billToName: z.ZodString;
152
+ billToAddress: z.ZodOptional<z.ZodString>;
153
+ billToPhone: z.ZodOptional<z.ZodString>;
154
+ billToEmail: z.ZodOptional<z.ZodString>;
155
+ billToTaxId: z.ZodOptional<z.ZodString>;
156
+ items: z.ZodArray<z.ZodObject<{
157
+ description: z.ZodString;
158
+ quantity: z.ZodNumber;
159
+ unitPrice: z.ZodNumber;
160
+ amount: z.ZodNumber;
161
+ taxRate: z.ZodOptional<z.ZodNumber>;
162
+ }, "strip", z.ZodTypeAny, {
163
+ description: string;
164
+ quantity: number;
165
+ amount: number;
166
+ unitPrice: number;
167
+ taxRate?: number | undefined;
168
+ }, {
169
+ description: string;
170
+ quantity: number;
171
+ amount: number;
172
+ unitPrice: number;
173
+ taxRate?: number | undefined;
174
+ }>, "many">;
175
+ taxRate: z.ZodOptional<z.ZodNumber>;
176
+ discount: z.ZodOptional<z.ZodNumber>;
177
+ currency: z.ZodDefault<z.ZodString>;
178
+ paymentTerms: z.ZodOptional<z.ZodString>;
179
+ notes: z.ZodOptional<z.ZodString>;
180
+ }, "strip", z.ZodTypeAny, {
181
+ currency: string;
182
+ items: {
183
+ description: string;
184
+ quantity: number;
185
+ amount: number;
186
+ unitPrice: number;
187
+ taxRate?: number | undefined;
188
+ }[];
189
+ billFromName: string;
190
+ billToName: string;
191
+ notes?: string | undefined;
192
+ issueDate?: string | undefined;
193
+ taxRate?: number | undefined;
194
+ dueDate?: string | undefined;
195
+ billFromAddress?: string | undefined;
196
+ billFromPhone?: string | undefined;
197
+ billFromEmail?: string | undefined;
198
+ billFromTaxId?: string | undefined;
199
+ billToAddress?: string | undefined;
200
+ billToPhone?: string | undefined;
201
+ billToEmail?: string | undefined;
202
+ billToTaxId?: string | undefined;
203
+ discount?: number | undefined;
204
+ paymentTerms?: string | undefined;
205
+ }, {
206
+ items: {
207
+ description: string;
208
+ quantity: number;
209
+ amount: number;
210
+ unitPrice: number;
211
+ taxRate?: number | undefined;
212
+ }[];
213
+ billFromName: string;
214
+ billToName: string;
215
+ currency?: string | undefined;
216
+ notes?: string | undefined;
217
+ issueDate?: string | undefined;
218
+ taxRate?: number | undefined;
219
+ dueDate?: string | undefined;
220
+ billFromAddress?: string | undefined;
221
+ billFromPhone?: string | undefined;
222
+ billFromEmail?: string | undefined;
223
+ billFromTaxId?: string | undefined;
224
+ billToAddress?: string | undefined;
225
+ billToPhone?: string | undefined;
226
+ billToEmail?: string | undefined;
227
+ billToTaxId?: string | undefined;
228
+ discount?: number | undefined;
229
+ paymentTerms?: string | undefined;
230
+ }>;
231
+ export declare const updateInvoiceAttributesSchema: z.ZodObject<{
232
+ issueDate: z.ZodOptional<z.ZodOptional<z.ZodString>>;
233
+ dueDate: z.ZodOptional<z.ZodOptional<z.ZodString>>;
234
+ billFromName: z.ZodOptional<z.ZodString>;
235
+ billFromAddress: z.ZodOptional<z.ZodOptional<z.ZodString>>;
236
+ billFromPhone: z.ZodOptional<z.ZodOptional<z.ZodString>>;
237
+ billFromEmail: z.ZodOptional<z.ZodOptional<z.ZodString>>;
238
+ billFromTaxId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
239
+ billToName: z.ZodOptional<z.ZodString>;
240
+ billToAddress: z.ZodOptional<z.ZodOptional<z.ZodString>>;
241
+ billToPhone: z.ZodOptional<z.ZodOptional<z.ZodString>>;
242
+ billToEmail: z.ZodOptional<z.ZodOptional<z.ZodString>>;
243
+ billToTaxId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
244
+ items: z.ZodOptional<z.ZodArray<z.ZodObject<{
245
+ description: z.ZodString;
246
+ quantity: z.ZodNumber;
247
+ unitPrice: z.ZodNumber;
248
+ amount: z.ZodNumber;
249
+ taxRate: z.ZodOptional<z.ZodNumber>;
250
+ }, "strip", z.ZodTypeAny, {
251
+ description: string;
252
+ quantity: number;
253
+ amount: number;
254
+ unitPrice: number;
255
+ taxRate?: number | undefined;
256
+ }, {
257
+ description: string;
258
+ quantity: number;
259
+ amount: number;
260
+ unitPrice: number;
261
+ taxRate?: number | undefined;
262
+ }>, "many">>;
263
+ taxRate: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
264
+ discount: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
265
+ currency: z.ZodOptional<z.ZodDefault<z.ZodString>>;
266
+ paymentTerms: z.ZodOptional<z.ZodOptional<z.ZodString>>;
267
+ notes: z.ZodOptional<z.ZodOptional<z.ZodString>>;
268
+ } & {
269
+ paymentStatus: z.ZodOptional<z.ZodEnum<["pending", "paid", "overdue", "cancelled"]>>;
270
+ }, "strip", z.ZodTypeAny, {
271
+ currency?: string | undefined;
272
+ notes?: string | undefined;
273
+ items?: {
274
+ description: string;
275
+ quantity: number;
276
+ amount: number;
277
+ unitPrice: number;
278
+ taxRate?: number | undefined;
279
+ }[] | undefined;
280
+ issueDate?: string | undefined;
281
+ taxRate?: number | undefined;
282
+ dueDate?: string | undefined;
283
+ billFromName?: string | undefined;
284
+ billFromAddress?: string | undefined;
285
+ billFromPhone?: string | undefined;
286
+ billFromEmail?: string | undefined;
287
+ billFromTaxId?: string | undefined;
288
+ billToName?: string | undefined;
289
+ billToAddress?: string | undefined;
290
+ billToPhone?: string | undefined;
291
+ billToEmail?: string | undefined;
292
+ billToTaxId?: string | undefined;
293
+ discount?: number | undefined;
294
+ paymentTerms?: string | undefined;
295
+ paymentStatus?: "pending" | "cancelled" | "paid" | "overdue" | undefined;
296
+ }, {
297
+ currency?: string | undefined;
298
+ notes?: string | undefined;
299
+ items?: {
300
+ description: string;
301
+ quantity: number;
302
+ amount: number;
303
+ unitPrice: number;
304
+ taxRate?: number | undefined;
305
+ }[] | undefined;
306
+ issueDate?: string | undefined;
307
+ taxRate?: number | undefined;
308
+ dueDate?: string | undefined;
309
+ billFromName?: string | undefined;
310
+ billFromAddress?: string | undefined;
311
+ billFromPhone?: string | undefined;
312
+ billFromEmail?: string | undefined;
313
+ billFromTaxId?: string | undefined;
314
+ billToName?: string | undefined;
315
+ billToAddress?: string | undefined;
316
+ billToPhone?: string | undefined;
317
+ billToEmail?: string | undefined;
318
+ billToTaxId?: string | undefined;
319
+ discount?: number | undefined;
320
+ paymentTerms?: string | undefined;
321
+ paymentStatus?: "pending" | "cancelled" | "paid" | "overdue" | undefined;
322
+ }>;
323
+ export declare const createInvoiceSchema: z.ZodObject<{
324
+ type: z.ZodLiteral<"invoices">;
325
+ attributes: z.ZodObject<{
326
+ issueDate: z.ZodOptional<z.ZodString>;
327
+ dueDate: z.ZodOptional<z.ZodString>;
328
+ billFromName: z.ZodString;
329
+ billFromAddress: z.ZodOptional<z.ZodString>;
330
+ billFromPhone: z.ZodOptional<z.ZodString>;
331
+ billFromEmail: z.ZodOptional<z.ZodString>;
332
+ billFromTaxId: z.ZodOptional<z.ZodString>;
333
+ billToName: z.ZodString;
334
+ billToAddress: z.ZodOptional<z.ZodString>;
335
+ billToPhone: z.ZodOptional<z.ZodString>;
336
+ billToEmail: z.ZodOptional<z.ZodString>;
337
+ billToTaxId: z.ZodOptional<z.ZodString>;
338
+ items: z.ZodArray<z.ZodObject<{
339
+ description: z.ZodString;
340
+ quantity: z.ZodNumber;
341
+ unitPrice: z.ZodNumber;
342
+ amount: z.ZodNumber;
343
+ taxRate: z.ZodOptional<z.ZodNumber>;
344
+ }, "strip", z.ZodTypeAny, {
345
+ description: string;
346
+ quantity: number;
347
+ amount: number;
348
+ unitPrice: number;
349
+ taxRate?: number | undefined;
350
+ }, {
351
+ description: string;
352
+ quantity: number;
353
+ amount: number;
354
+ unitPrice: number;
355
+ taxRate?: number | undefined;
356
+ }>, "many">;
357
+ taxRate: z.ZodOptional<z.ZodNumber>;
358
+ discount: z.ZodOptional<z.ZodNumber>;
359
+ currency: z.ZodDefault<z.ZodString>;
360
+ paymentTerms: z.ZodOptional<z.ZodString>;
361
+ notes: z.ZodOptional<z.ZodString>;
362
+ }, "strip", z.ZodTypeAny, {
363
+ currency: string;
364
+ items: {
365
+ description: string;
366
+ quantity: number;
367
+ amount: number;
368
+ unitPrice: number;
369
+ taxRate?: number | undefined;
370
+ }[];
371
+ billFromName: string;
372
+ billToName: string;
373
+ notes?: string | undefined;
374
+ issueDate?: string | undefined;
375
+ taxRate?: number | undefined;
376
+ dueDate?: string | undefined;
377
+ billFromAddress?: string | undefined;
378
+ billFromPhone?: string | undefined;
379
+ billFromEmail?: string | undefined;
380
+ billFromTaxId?: string | undefined;
381
+ billToAddress?: string | undefined;
382
+ billToPhone?: string | undefined;
383
+ billToEmail?: string | undefined;
384
+ billToTaxId?: string | undefined;
385
+ discount?: number | undefined;
386
+ paymentTerms?: string | undefined;
387
+ }, {
388
+ items: {
389
+ description: string;
390
+ quantity: number;
391
+ amount: number;
392
+ unitPrice: number;
393
+ taxRate?: number | undefined;
394
+ }[];
395
+ billFromName: string;
396
+ billToName: string;
397
+ currency?: string | undefined;
398
+ notes?: string | undefined;
399
+ issueDate?: string | undefined;
400
+ taxRate?: number | undefined;
401
+ dueDate?: string | undefined;
402
+ billFromAddress?: string | undefined;
403
+ billFromPhone?: string | undefined;
404
+ billFromEmail?: string | undefined;
405
+ billFromTaxId?: string | undefined;
406
+ billToAddress?: string | undefined;
407
+ billToPhone?: string | undefined;
408
+ billToEmail?: string | undefined;
409
+ billToTaxId?: string | undefined;
410
+ discount?: number | undefined;
411
+ paymentTerms?: string | undefined;
412
+ }>;
413
+ }, "strip", z.ZodTypeAny, {
414
+ type: "invoices";
415
+ attributes: {
416
+ currency: string;
417
+ items: {
418
+ description: string;
419
+ quantity: number;
420
+ amount: number;
421
+ unitPrice: number;
422
+ taxRate?: number | undefined;
423
+ }[];
424
+ billFromName: string;
425
+ billToName: string;
426
+ notes?: string | undefined;
427
+ issueDate?: string | undefined;
428
+ taxRate?: number | undefined;
429
+ dueDate?: string | undefined;
430
+ billFromAddress?: string | undefined;
431
+ billFromPhone?: string | undefined;
432
+ billFromEmail?: string | undefined;
433
+ billFromTaxId?: string | undefined;
434
+ billToAddress?: string | undefined;
435
+ billToPhone?: string | undefined;
436
+ billToEmail?: string | undefined;
437
+ billToTaxId?: string | undefined;
438
+ discount?: number | undefined;
439
+ paymentTerms?: string | undefined;
440
+ };
441
+ }, {
442
+ type: "invoices";
443
+ attributes: {
444
+ items: {
445
+ description: string;
446
+ quantity: number;
447
+ amount: number;
448
+ unitPrice: number;
449
+ taxRate?: number | undefined;
450
+ }[];
451
+ billFromName: string;
452
+ billToName: string;
453
+ currency?: string | undefined;
454
+ notes?: string | undefined;
455
+ issueDate?: string | undefined;
456
+ taxRate?: number | undefined;
457
+ dueDate?: string | undefined;
458
+ billFromAddress?: string | undefined;
459
+ billFromPhone?: string | undefined;
460
+ billFromEmail?: string | undefined;
461
+ billFromTaxId?: string | undefined;
462
+ billToAddress?: string | undefined;
463
+ billToPhone?: string | undefined;
464
+ billToEmail?: string | undefined;
465
+ billToTaxId?: string | undefined;
466
+ discount?: number | undefined;
467
+ paymentTerms?: string | undefined;
468
+ };
469
+ }>;
470
+ export declare const updateInvoiceSchema: z.ZodObject<{
471
+ type: z.ZodLiteral<"invoices">;
472
+ id: z.ZodString;
473
+ attributes: z.ZodObject<{
474
+ issueDate: z.ZodOptional<z.ZodOptional<z.ZodString>>;
475
+ dueDate: z.ZodOptional<z.ZodOptional<z.ZodString>>;
476
+ billFromName: z.ZodOptional<z.ZodString>;
477
+ billFromAddress: z.ZodOptional<z.ZodOptional<z.ZodString>>;
478
+ billFromPhone: z.ZodOptional<z.ZodOptional<z.ZodString>>;
479
+ billFromEmail: z.ZodOptional<z.ZodOptional<z.ZodString>>;
480
+ billFromTaxId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
481
+ billToName: z.ZodOptional<z.ZodString>;
482
+ billToAddress: z.ZodOptional<z.ZodOptional<z.ZodString>>;
483
+ billToPhone: z.ZodOptional<z.ZodOptional<z.ZodString>>;
484
+ billToEmail: z.ZodOptional<z.ZodOptional<z.ZodString>>;
485
+ billToTaxId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
486
+ items: z.ZodOptional<z.ZodArray<z.ZodObject<{
487
+ description: z.ZodString;
488
+ quantity: z.ZodNumber;
489
+ unitPrice: z.ZodNumber;
490
+ amount: z.ZodNumber;
491
+ taxRate: z.ZodOptional<z.ZodNumber>;
492
+ }, "strip", z.ZodTypeAny, {
493
+ description: string;
494
+ quantity: number;
495
+ amount: number;
496
+ unitPrice: number;
497
+ taxRate?: number | undefined;
498
+ }, {
499
+ description: string;
500
+ quantity: number;
501
+ amount: number;
502
+ unitPrice: number;
503
+ taxRate?: number | undefined;
504
+ }>, "many">>;
505
+ taxRate: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
506
+ discount: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
507
+ currency: z.ZodOptional<z.ZodDefault<z.ZodString>>;
508
+ paymentTerms: z.ZodOptional<z.ZodOptional<z.ZodString>>;
509
+ notes: z.ZodOptional<z.ZodOptional<z.ZodString>>;
510
+ } & {
511
+ paymentStatus: z.ZodOptional<z.ZodEnum<["pending", "paid", "overdue", "cancelled"]>>;
512
+ }, "strip", z.ZodTypeAny, {
513
+ currency?: string | undefined;
514
+ notes?: string | undefined;
515
+ items?: {
516
+ description: string;
517
+ quantity: number;
518
+ amount: number;
519
+ unitPrice: number;
520
+ taxRate?: number | undefined;
521
+ }[] | undefined;
522
+ issueDate?: string | undefined;
523
+ taxRate?: number | undefined;
524
+ dueDate?: string | undefined;
525
+ billFromName?: string | undefined;
526
+ billFromAddress?: string | undefined;
527
+ billFromPhone?: string | undefined;
528
+ billFromEmail?: string | undefined;
529
+ billFromTaxId?: string | undefined;
530
+ billToName?: string | undefined;
531
+ billToAddress?: string | undefined;
532
+ billToPhone?: string | undefined;
533
+ billToEmail?: string | undefined;
534
+ billToTaxId?: string | undefined;
535
+ discount?: number | undefined;
536
+ paymentTerms?: string | undefined;
537
+ paymentStatus?: "pending" | "cancelled" | "paid" | "overdue" | undefined;
538
+ }, {
539
+ currency?: string | undefined;
540
+ notes?: string | undefined;
541
+ items?: {
542
+ description: string;
543
+ quantity: number;
544
+ amount: number;
545
+ unitPrice: number;
546
+ taxRate?: number | undefined;
547
+ }[] | undefined;
548
+ issueDate?: string | undefined;
549
+ taxRate?: number | undefined;
550
+ dueDate?: string | undefined;
551
+ billFromName?: string | undefined;
552
+ billFromAddress?: string | undefined;
553
+ billFromPhone?: string | undefined;
554
+ billFromEmail?: string | undefined;
555
+ billFromTaxId?: string | undefined;
556
+ billToName?: string | undefined;
557
+ billToAddress?: string | undefined;
558
+ billToPhone?: string | undefined;
559
+ billToEmail?: string | undefined;
560
+ billToTaxId?: string | undefined;
561
+ discount?: number | undefined;
562
+ paymentTerms?: string | undefined;
563
+ paymentStatus?: "pending" | "cancelled" | "paid" | "overdue" | undefined;
564
+ }>;
565
+ }, "strip", z.ZodTypeAny, {
566
+ type: "invoices";
567
+ id: string;
568
+ attributes: {
569
+ currency?: string | undefined;
570
+ notes?: string | undefined;
571
+ items?: {
572
+ description: string;
573
+ quantity: number;
574
+ amount: number;
575
+ unitPrice: number;
576
+ taxRate?: number | undefined;
577
+ }[] | undefined;
578
+ issueDate?: string | undefined;
579
+ taxRate?: number | undefined;
580
+ dueDate?: string | undefined;
581
+ billFromName?: string | undefined;
582
+ billFromAddress?: string | undefined;
583
+ billFromPhone?: string | undefined;
584
+ billFromEmail?: string | undefined;
585
+ billFromTaxId?: string | undefined;
586
+ billToName?: string | undefined;
587
+ billToAddress?: string | undefined;
588
+ billToPhone?: string | undefined;
589
+ billToEmail?: string | undefined;
590
+ billToTaxId?: string | undefined;
591
+ discount?: number | undefined;
592
+ paymentTerms?: string | undefined;
593
+ paymentStatus?: "pending" | "cancelled" | "paid" | "overdue" | undefined;
594
+ };
595
+ }, {
596
+ type: "invoices";
597
+ id: string;
598
+ attributes: {
599
+ currency?: string | undefined;
600
+ notes?: string | undefined;
601
+ items?: {
602
+ description: string;
603
+ quantity: number;
604
+ amount: number;
605
+ unitPrice: number;
606
+ taxRate?: number | undefined;
607
+ }[] | undefined;
608
+ issueDate?: string | undefined;
609
+ taxRate?: number | undefined;
610
+ dueDate?: string | undefined;
611
+ billFromName?: string | undefined;
612
+ billFromAddress?: string | undefined;
613
+ billFromPhone?: string | undefined;
614
+ billFromEmail?: string | undefined;
615
+ billFromTaxId?: string | undefined;
616
+ billToName?: string | undefined;
617
+ billToAddress?: string | undefined;
618
+ billToPhone?: string | undefined;
619
+ billToEmail?: string | undefined;
620
+ billToTaxId?: string | undefined;
621
+ discount?: number | undefined;
622
+ paymentTerms?: string | undefined;
623
+ paymentStatus?: "pending" | "cancelled" | "paid" | "overdue" | undefined;
624
+ };
625
+ }>;
626
+ export declare const invoiceResourceSchema: z.ZodObject<{
627
+ type: z.ZodLiteral<string>;
628
+ id: z.ZodString;
629
+ attributes: z.ZodObject<{
630
+ invoiceNumber: z.ZodString;
631
+ issueDate: z.ZodString;
632
+ dueDate: z.ZodNullable<z.ZodOptional<z.ZodString>>;
633
+ billFromName: z.ZodString;
634
+ billFromAddress: z.ZodNullable<z.ZodOptional<z.ZodString>>;
635
+ billFromPhone: z.ZodNullable<z.ZodOptional<z.ZodString>>;
636
+ billFromEmail: z.ZodNullable<z.ZodOptional<z.ZodString>>;
637
+ billFromTaxId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
638
+ billToName: z.ZodString;
639
+ billToAddress: z.ZodNullable<z.ZodOptional<z.ZodString>>;
640
+ billToPhone: z.ZodNullable<z.ZodOptional<z.ZodString>>;
641
+ billToEmail: z.ZodNullable<z.ZodOptional<z.ZodString>>;
642
+ billToTaxId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
643
+ items: z.ZodArray<z.ZodObject<{
644
+ description: z.ZodString;
645
+ quantity: z.ZodNumber;
646
+ unitPrice: z.ZodNumber;
647
+ amount: z.ZodNumber;
648
+ taxRate: z.ZodOptional<z.ZodNumber>;
649
+ }, "strip", z.ZodTypeAny, {
650
+ description: string;
651
+ quantity: number;
652
+ amount: number;
653
+ unitPrice: number;
654
+ taxRate?: number | undefined;
655
+ }, {
656
+ description: string;
657
+ quantity: number;
658
+ amount: number;
659
+ unitPrice: number;
660
+ taxRate?: number | undefined;
661
+ }>, "many">;
662
+ subtotal: z.ZodNumber;
663
+ taxRate: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
664
+ taxAmount: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
665
+ discount: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
666
+ total: z.ZodNumber;
667
+ currency: z.ZodDefault<z.ZodString>;
668
+ paymentTerms: z.ZodNullable<z.ZodOptional<z.ZodString>>;
669
+ paymentStatus: z.ZodDefault<z.ZodEnum<["pending", "paid", "overdue", "cancelled"]>>;
670
+ paidAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
671
+ notes: z.ZodNullable<z.ZodOptional<z.ZodString>>;
672
+ pdfUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
673
+ organizationId: z.ZodString;
674
+ } & {
675
+ createdAt: z.ZodString;
676
+ updatedAt: z.ZodString;
677
+ }, "strip", z.ZodTypeAny, {
678
+ createdAt: string;
679
+ updatedAt: string;
680
+ currency: string;
681
+ total: number;
682
+ items: {
683
+ description: string;
684
+ quantity: number;
685
+ amount: number;
686
+ unitPrice: number;
687
+ taxRate?: number | undefined;
688
+ }[];
689
+ issueDate: string;
690
+ organizationId: string;
691
+ invoiceNumber: string;
692
+ billFromName: string;
693
+ billToName: string;
694
+ subtotal: number;
695
+ paymentStatus: "pending" | "cancelled" | "paid" | "overdue";
696
+ notes?: string | null | undefined;
697
+ paidAt?: string | null | undefined;
698
+ pdfUrl?: string | null | undefined;
699
+ taxRate?: number | null | undefined;
700
+ dueDate?: string | null | undefined;
701
+ billFromAddress?: string | null | undefined;
702
+ billFromPhone?: string | null | undefined;
703
+ billFromEmail?: string | null | undefined;
704
+ billFromTaxId?: string | null | undefined;
705
+ billToAddress?: string | null | undefined;
706
+ billToPhone?: string | null | undefined;
707
+ billToEmail?: string | null | undefined;
708
+ billToTaxId?: string | null | undefined;
709
+ taxAmount?: number | null | undefined;
710
+ discount?: number | null | undefined;
711
+ paymentTerms?: string | null | undefined;
712
+ }, {
713
+ createdAt: string;
714
+ updatedAt: string;
715
+ total: number;
716
+ items: {
717
+ description: string;
718
+ quantity: number;
719
+ amount: number;
720
+ unitPrice: number;
721
+ taxRate?: number | undefined;
722
+ }[];
723
+ issueDate: string;
724
+ organizationId: string;
725
+ invoiceNumber: string;
726
+ billFromName: string;
727
+ billToName: string;
728
+ subtotal: number;
729
+ currency?: string | undefined;
730
+ notes?: string | null | undefined;
731
+ paidAt?: string | null | undefined;
732
+ pdfUrl?: string | null | undefined;
733
+ taxRate?: number | null | undefined;
734
+ dueDate?: string | null | undefined;
735
+ billFromAddress?: string | null | undefined;
736
+ billFromPhone?: string | null | undefined;
737
+ billFromEmail?: string | null | undefined;
738
+ billFromTaxId?: string | null | undefined;
739
+ billToAddress?: string | null | undefined;
740
+ billToPhone?: string | null | undefined;
741
+ billToEmail?: string | null | undefined;
742
+ billToTaxId?: string | null | undefined;
743
+ taxAmount?: number | null | undefined;
744
+ discount?: number | null | undefined;
745
+ paymentTerms?: string | null | undefined;
746
+ paymentStatus?: "pending" | "cancelled" | "paid" | "overdue" | undefined;
747
+ }>;
748
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
749
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
750
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
751
+ }, "strip", z.ZodTypeAny, {
752
+ type: string;
753
+ id: string;
754
+ attributes: {
755
+ createdAt: string;
756
+ updatedAt: string;
757
+ currency: string;
758
+ total: number;
759
+ items: {
760
+ description: string;
761
+ quantity: number;
762
+ amount: number;
763
+ unitPrice: number;
764
+ taxRate?: number | undefined;
765
+ }[];
766
+ issueDate: string;
767
+ organizationId: string;
768
+ invoiceNumber: string;
769
+ billFromName: string;
770
+ billToName: string;
771
+ subtotal: number;
772
+ paymentStatus: "pending" | "cancelled" | "paid" | "overdue";
773
+ notes?: string | null | undefined;
774
+ paidAt?: string | null | undefined;
775
+ pdfUrl?: string | null | undefined;
776
+ taxRate?: number | null | undefined;
777
+ dueDate?: string | null | undefined;
778
+ billFromAddress?: string | null | undefined;
779
+ billFromPhone?: string | null | undefined;
780
+ billFromEmail?: string | null | undefined;
781
+ billFromTaxId?: string | null | undefined;
782
+ billToAddress?: string | null | undefined;
783
+ billToPhone?: string | null | undefined;
784
+ billToEmail?: string | null | undefined;
785
+ billToTaxId?: string | null | undefined;
786
+ taxAmount?: number | null | undefined;
787
+ discount?: number | null | undefined;
788
+ paymentTerms?: string | null | undefined;
789
+ };
790
+ relationships?: Record<string, unknown> | undefined;
791
+ links?: Record<string, string> | undefined;
792
+ meta?: Record<string, unknown> | undefined;
793
+ }, {
794
+ type: string;
795
+ id: string;
796
+ attributes: {
797
+ createdAt: string;
798
+ updatedAt: string;
799
+ total: number;
800
+ items: {
801
+ description: string;
802
+ quantity: number;
803
+ amount: number;
804
+ unitPrice: number;
805
+ taxRate?: number | undefined;
806
+ }[];
807
+ issueDate: string;
808
+ organizationId: string;
809
+ invoiceNumber: string;
810
+ billFromName: string;
811
+ billToName: string;
812
+ subtotal: number;
813
+ currency?: string | undefined;
814
+ notes?: string | null | undefined;
815
+ paidAt?: string | null | undefined;
816
+ pdfUrl?: string | null | undefined;
817
+ taxRate?: number | null | undefined;
818
+ dueDate?: string | null | undefined;
819
+ billFromAddress?: string | null | undefined;
820
+ billFromPhone?: string | null | undefined;
821
+ billFromEmail?: string | null | undefined;
822
+ billFromTaxId?: string | null | undefined;
823
+ billToAddress?: string | null | undefined;
824
+ billToPhone?: string | null | undefined;
825
+ billToEmail?: string | null | undefined;
826
+ billToTaxId?: string | null | undefined;
827
+ taxAmount?: number | null | undefined;
828
+ discount?: number | null | undefined;
829
+ paymentTerms?: string | null | undefined;
830
+ paymentStatus?: "pending" | "cancelled" | "paid" | "overdue" | undefined;
831
+ };
832
+ relationships?: Record<string, unknown> | undefined;
833
+ links?: Record<string, string> | undefined;
834
+ meta?: Record<string, unknown> | undefined;
835
+ }>;
836
+ export declare const invoiceResponseSchema: z.ZodObject<{
837
+ data: z.ZodObject<{
838
+ type: z.ZodLiteral<string>;
839
+ id: z.ZodString;
840
+ attributes: z.ZodObject<{
841
+ invoiceNumber: z.ZodString;
842
+ issueDate: z.ZodString;
843
+ dueDate: z.ZodNullable<z.ZodOptional<z.ZodString>>;
844
+ billFromName: z.ZodString;
845
+ billFromAddress: z.ZodNullable<z.ZodOptional<z.ZodString>>;
846
+ billFromPhone: z.ZodNullable<z.ZodOptional<z.ZodString>>;
847
+ billFromEmail: z.ZodNullable<z.ZodOptional<z.ZodString>>;
848
+ billFromTaxId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
849
+ billToName: z.ZodString;
850
+ billToAddress: z.ZodNullable<z.ZodOptional<z.ZodString>>;
851
+ billToPhone: z.ZodNullable<z.ZodOptional<z.ZodString>>;
852
+ billToEmail: z.ZodNullable<z.ZodOptional<z.ZodString>>;
853
+ billToTaxId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
854
+ items: z.ZodArray<z.ZodObject<{
855
+ description: z.ZodString;
856
+ quantity: z.ZodNumber;
857
+ unitPrice: z.ZodNumber;
858
+ amount: z.ZodNumber;
859
+ taxRate: z.ZodOptional<z.ZodNumber>;
860
+ }, "strip", z.ZodTypeAny, {
861
+ description: string;
862
+ quantity: number;
863
+ amount: number;
864
+ unitPrice: number;
865
+ taxRate?: number | undefined;
866
+ }, {
867
+ description: string;
868
+ quantity: number;
869
+ amount: number;
870
+ unitPrice: number;
871
+ taxRate?: number | undefined;
872
+ }>, "many">;
873
+ subtotal: z.ZodNumber;
874
+ taxRate: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
875
+ taxAmount: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
876
+ discount: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
877
+ total: z.ZodNumber;
878
+ currency: z.ZodDefault<z.ZodString>;
879
+ paymentTerms: z.ZodNullable<z.ZodOptional<z.ZodString>>;
880
+ paymentStatus: z.ZodDefault<z.ZodEnum<["pending", "paid", "overdue", "cancelled"]>>;
881
+ paidAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
882
+ notes: z.ZodNullable<z.ZodOptional<z.ZodString>>;
883
+ pdfUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
884
+ organizationId: z.ZodString;
885
+ } & {
886
+ createdAt: z.ZodString;
887
+ updatedAt: z.ZodString;
888
+ }, "strip", z.ZodTypeAny, {
889
+ createdAt: string;
890
+ updatedAt: string;
891
+ currency: string;
892
+ total: number;
893
+ items: {
894
+ description: string;
895
+ quantity: number;
896
+ amount: number;
897
+ unitPrice: number;
898
+ taxRate?: number | undefined;
899
+ }[];
900
+ issueDate: string;
901
+ organizationId: string;
902
+ invoiceNumber: string;
903
+ billFromName: string;
904
+ billToName: string;
905
+ subtotal: number;
906
+ paymentStatus: "pending" | "cancelled" | "paid" | "overdue";
907
+ notes?: string | null | undefined;
908
+ paidAt?: string | null | undefined;
909
+ pdfUrl?: string | null | undefined;
910
+ taxRate?: number | null | undefined;
911
+ dueDate?: string | null | undefined;
912
+ billFromAddress?: string | null | undefined;
913
+ billFromPhone?: string | null | undefined;
914
+ billFromEmail?: string | null | undefined;
915
+ billFromTaxId?: string | null | undefined;
916
+ billToAddress?: string | null | undefined;
917
+ billToPhone?: string | null | undefined;
918
+ billToEmail?: string | null | undefined;
919
+ billToTaxId?: string | null | undefined;
920
+ taxAmount?: number | null | undefined;
921
+ discount?: number | null | undefined;
922
+ paymentTerms?: string | null | undefined;
923
+ }, {
924
+ createdAt: string;
925
+ updatedAt: string;
926
+ total: number;
927
+ items: {
928
+ description: string;
929
+ quantity: number;
930
+ amount: number;
931
+ unitPrice: number;
932
+ taxRate?: number | undefined;
933
+ }[];
934
+ issueDate: string;
935
+ organizationId: string;
936
+ invoiceNumber: string;
937
+ billFromName: string;
938
+ billToName: string;
939
+ subtotal: number;
940
+ currency?: string | undefined;
941
+ notes?: string | null | undefined;
942
+ paidAt?: string | null | undefined;
943
+ pdfUrl?: string | null | undefined;
944
+ taxRate?: number | null | undefined;
945
+ dueDate?: string | null | undefined;
946
+ billFromAddress?: string | null | undefined;
947
+ billFromPhone?: string | null | undefined;
948
+ billFromEmail?: string | null | undefined;
949
+ billFromTaxId?: string | null | undefined;
950
+ billToAddress?: string | null | undefined;
951
+ billToPhone?: string | null | undefined;
952
+ billToEmail?: string | null | undefined;
953
+ billToTaxId?: string | null | undefined;
954
+ taxAmount?: number | null | undefined;
955
+ discount?: number | null | undefined;
956
+ paymentTerms?: string | null | undefined;
957
+ paymentStatus?: "pending" | "cancelled" | "paid" | "overdue" | undefined;
958
+ }>;
959
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
960
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
961
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
962
+ }, "strip", z.ZodTypeAny, {
963
+ type: string;
964
+ id: string;
965
+ attributes: {
966
+ createdAt: string;
967
+ updatedAt: string;
968
+ currency: string;
969
+ total: number;
970
+ items: {
971
+ description: string;
972
+ quantity: number;
973
+ amount: number;
974
+ unitPrice: number;
975
+ taxRate?: number | undefined;
976
+ }[];
977
+ issueDate: string;
978
+ organizationId: string;
979
+ invoiceNumber: string;
980
+ billFromName: string;
981
+ billToName: string;
982
+ subtotal: number;
983
+ paymentStatus: "pending" | "cancelled" | "paid" | "overdue";
984
+ notes?: string | null | undefined;
985
+ paidAt?: string | null | undefined;
986
+ pdfUrl?: string | null | undefined;
987
+ taxRate?: number | null | undefined;
988
+ dueDate?: string | null | undefined;
989
+ billFromAddress?: string | null | undefined;
990
+ billFromPhone?: string | null | undefined;
991
+ billFromEmail?: string | null | undefined;
992
+ billFromTaxId?: string | null | undefined;
993
+ billToAddress?: string | null | undefined;
994
+ billToPhone?: string | null | undefined;
995
+ billToEmail?: string | null | undefined;
996
+ billToTaxId?: string | null | undefined;
997
+ taxAmount?: number | null | undefined;
998
+ discount?: number | null | undefined;
999
+ paymentTerms?: string | null | undefined;
1000
+ };
1001
+ relationships?: Record<string, unknown> | undefined;
1002
+ links?: Record<string, string> | undefined;
1003
+ meta?: Record<string, unknown> | undefined;
1004
+ }, {
1005
+ type: string;
1006
+ id: string;
1007
+ attributes: {
1008
+ createdAt: string;
1009
+ updatedAt: string;
1010
+ total: number;
1011
+ items: {
1012
+ description: string;
1013
+ quantity: number;
1014
+ amount: number;
1015
+ unitPrice: number;
1016
+ taxRate?: number | undefined;
1017
+ }[];
1018
+ issueDate: string;
1019
+ organizationId: string;
1020
+ invoiceNumber: string;
1021
+ billFromName: string;
1022
+ billToName: string;
1023
+ subtotal: number;
1024
+ currency?: string | undefined;
1025
+ notes?: string | null | undefined;
1026
+ paidAt?: string | null | undefined;
1027
+ pdfUrl?: string | null | undefined;
1028
+ taxRate?: number | null | undefined;
1029
+ dueDate?: string | null | undefined;
1030
+ billFromAddress?: string | null | undefined;
1031
+ billFromPhone?: string | null | undefined;
1032
+ billFromEmail?: string | null | undefined;
1033
+ billFromTaxId?: string | null | undefined;
1034
+ billToAddress?: string | null | undefined;
1035
+ billToPhone?: string | null | undefined;
1036
+ billToEmail?: string | null | undefined;
1037
+ billToTaxId?: string | null | undefined;
1038
+ taxAmount?: number | null | undefined;
1039
+ discount?: number | null | undefined;
1040
+ paymentTerms?: string | null | undefined;
1041
+ paymentStatus?: "pending" | "cancelled" | "paid" | "overdue" | undefined;
1042
+ };
1043
+ relationships?: Record<string, unknown> | undefined;
1044
+ links?: Record<string, string> | undefined;
1045
+ meta?: Record<string, unknown> | undefined;
1046
+ }>;
1047
+ included: z.ZodOptional<z.ZodArray<z.ZodObject<{
1048
+ type: z.ZodString;
1049
+ id: z.ZodString;
1050
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1051
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1052
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1053
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1054
+ }, "strip", z.ZodTypeAny, {
1055
+ type: string;
1056
+ id: string;
1057
+ attributes?: Record<string, unknown> | undefined;
1058
+ relationships?: Record<string, unknown> | undefined;
1059
+ links?: Record<string, string> | undefined;
1060
+ meta?: Record<string, unknown> | undefined;
1061
+ }, {
1062
+ type: string;
1063
+ id: string;
1064
+ attributes?: Record<string, unknown> | undefined;
1065
+ relationships?: Record<string, unknown> | undefined;
1066
+ links?: Record<string, string> | undefined;
1067
+ meta?: Record<string, unknown> | undefined;
1068
+ }>, "many">>;
1069
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1070
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1071
+ }, "strip", z.ZodTypeAny, {
1072
+ data: {
1073
+ type: string;
1074
+ id: string;
1075
+ attributes: {
1076
+ createdAt: string;
1077
+ updatedAt: string;
1078
+ currency: string;
1079
+ total: number;
1080
+ items: {
1081
+ description: string;
1082
+ quantity: number;
1083
+ amount: number;
1084
+ unitPrice: number;
1085
+ taxRate?: number | undefined;
1086
+ }[];
1087
+ issueDate: string;
1088
+ organizationId: string;
1089
+ invoiceNumber: string;
1090
+ billFromName: string;
1091
+ billToName: string;
1092
+ subtotal: number;
1093
+ paymentStatus: "pending" | "cancelled" | "paid" | "overdue";
1094
+ notes?: string | null | undefined;
1095
+ paidAt?: string | null | undefined;
1096
+ pdfUrl?: string | null | undefined;
1097
+ taxRate?: number | null | undefined;
1098
+ dueDate?: string | null | undefined;
1099
+ billFromAddress?: string | null | undefined;
1100
+ billFromPhone?: string | null | undefined;
1101
+ billFromEmail?: string | null | undefined;
1102
+ billFromTaxId?: string | null | undefined;
1103
+ billToAddress?: string | null | undefined;
1104
+ billToPhone?: string | null | undefined;
1105
+ billToEmail?: string | null | undefined;
1106
+ billToTaxId?: string | null | undefined;
1107
+ taxAmount?: number | null | undefined;
1108
+ discount?: number | null | undefined;
1109
+ paymentTerms?: string | null | undefined;
1110
+ };
1111
+ relationships?: Record<string, unknown> | undefined;
1112
+ links?: Record<string, string> | undefined;
1113
+ meta?: Record<string, unknown> | undefined;
1114
+ };
1115
+ links?: Record<string, string> | undefined;
1116
+ meta?: Record<string, unknown> | undefined;
1117
+ included?: {
1118
+ type: string;
1119
+ id: string;
1120
+ attributes?: Record<string, unknown> | undefined;
1121
+ relationships?: Record<string, unknown> | undefined;
1122
+ links?: Record<string, string> | undefined;
1123
+ meta?: Record<string, unknown> | undefined;
1124
+ }[] | undefined;
1125
+ }, {
1126
+ data: {
1127
+ type: string;
1128
+ id: string;
1129
+ attributes: {
1130
+ createdAt: string;
1131
+ updatedAt: string;
1132
+ total: number;
1133
+ items: {
1134
+ description: string;
1135
+ quantity: number;
1136
+ amount: number;
1137
+ unitPrice: number;
1138
+ taxRate?: number | undefined;
1139
+ }[];
1140
+ issueDate: string;
1141
+ organizationId: string;
1142
+ invoiceNumber: string;
1143
+ billFromName: string;
1144
+ billToName: string;
1145
+ subtotal: number;
1146
+ currency?: string | undefined;
1147
+ notes?: string | null | undefined;
1148
+ paidAt?: string | null | undefined;
1149
+ pdfUrl?: string | null | undefined;
1150
+ taxRate?: number | null | undefined;
1151
+ dueDate?: string | null | undefined;
1152
+ billFromAddress?: string | null | undefined;
1153
+ billFromPhone?: string | null | undefined;
1154
+ billFromEmail?: string | null | undefined;
1155
+ billFromTaxId?: string | null | undefined;
1156
+ billToAddress?: string | null | undefined;
1157
+ billToPhone?: string | null | undefined;
1158
+ billToEmail?: string | null | undefined;
1159
+ billToTaxId?: string | null | undefined;
1160
+ taxAmount?: number | null | undefined;
1161
+ discount?: number | null | undefined;
1162
+ paymentTerms?: string | null | undefined;
1163
+ paymentStatus?: "pending" | "cancelled" | "paid" | "overdue" | undefined;
1164
+ };
1165
+ relationships?: Record<string, unknown> | undefined;
1166
+ links?: Record<string, string> | undefined;
1167
+ meta?: Record<string, unknown> | undefined;
1168
+ };
1169
+ links?: Record<string, string> | undefined;
1170
+ meta?: Record<string, unknown> | undefined;
1171
+ included?: {
1172
+ type: string;
1173
+ id: string;
1174
+ attributes?: Record<string, unknown> | undefined;
1175
+ relationships?: Record<string, unknown> | undefined;
1176
+ links?: Record<string, string> | undefined;
1177
+ meta?: Record<string, unknown> | undefined;
1178
+ }[] | undefined;
1179
+ }>;
1180
+ export declare const invoiceListResponseSchema: z.ZodObject<{
1181
+ data: z.ZodArray<z.ZodObject<{
1182
+ type: z.ZodLiteral<string>;
1183
+ id: z.ZodString;
1184
+ attributes: z.ZodObject<{
1185
+ invoiceNumber: z.ZodString;
1186
+ issueDate: z.ZodString;
1187
+ dueDate: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1188
+ billFromName: z.ZodString;
1189
+ billFromAddress: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1190
+ billFromPhone: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1191
+ billFromEmail: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1192
+ billFromTaxId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1193
+ billToName: z.ZodString;
1194
+ billToAddress: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1195
+ billToPhone: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1196
+ billToEmail: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1197
+ billToTaxId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1198
+ items: z.ZodArray<z.ZodObject<{
1199
+ description: z.ZodString;
1200
+ quantity: z.ZodNumber;
1201
+ unitPrice: z.ZodNumber;
1202
+ amount: z.ZodNumber;
1203
+ taxRate: z.ZodOptional<z.ZodNumber>;
1204
+ }, "strip", z.ZodTypeAny, {
1205
+ description: string;
1206
+ quantity: number;
1207
+ amount: number;
1208
+ unitPrice: number;
1209
+ taxRate?: number | undefined;
1210
+ }, {
1211
+ description: string;
1212
+ quantity: number;
1213
+ amount: number;
1214
+ unitPrice: number;
1215
+ taxRate?: number | undefined;
1216
+ }>, "many">;
1217
+ subtotal: z.ZodNumber;
1218
+ taxRate: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
1219
+ taxAmount: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
1220
+ discount: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
1221
+ total: z.ZodNumber;
1222
+ currency: z.ZodDefault<z.ZodString>;
1223
+ paymentTerms: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1224
+ paymentStatus: z.ZodDefault<z.ZodEnum<["pending", "paid", "overdue", "cancelled"]>>;
1225
+ paidAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1226
+ notes: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1227
+ pdfUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1228
+ organizationId: z.ZodString;
1229
+ } & {
1230
+ createdAt: z.ZodString;
1231
+ updatedAt: z.ZodString;
1232
+ }, "strip", z.ZodTypeAny, {
1233
+ createdAt: string;
1234
+ updatedAt: string;
1235
+ currency: string;
1236
+ total: number;
1237
+ items: {
1238
+ description: string;
1239
+ quantity: number;
1240
+ amount: number;
1241
+ unitPrice: number;
1242
+ taxRate?: number | undefined;
1243
+ }[];
1244
+ issueDate: string;
1245
+ organizationId: string;
1246
+ invoiceNumber: string;
1247
+ billFromName: string;
1248
+ billToName: string;
1249
+ subtotal: number;
1250
+ paymentStatus: "pending" | "cancelled" | "paid" | "overdue";
1251
+ notes?: string | null | undefined;
1252
+ paidAt?: string | null | undefined;
1253
+ pdfUrl?: string | null | undefined;
1254
+ taxRate?: number | null | undefined;
1255
+ dueDate?: string | null | undefined;
1256
+ billFromAddress?: string | null | undefined;
1257
+ billFromPhone?: string | null | undefined;
1258
+ billFromEmail?: string | null | undefined;
1259
+ billFromTaxId?: string | null | undefined;
1260
+ billToAddress?: string | null | undefined;
1261
+ billToPhone?: string | null | undefined;
1262
+ billToEmail?: string | null | undefined;
1263
+ billToTaxId?: string | null | undefined;
1264
+ taxAmount?: number | null | undefined;
1265
+ discount?: number | null | undefined;
1266
+ paymentTerms?: string | null | undefined;
1267
+ }, {
1268
+ createdAt: string;
1269
+ updatedAt: string;
1270
+ total: number;
1271
+ items: {
1272
+ description: string;
1273
+ quantity: number;
1274
+ amount: number;
1275
+ unitPrice: number;
1276
+ taxRate?: number | undefined;
1277
+ }[];
1278
+ issueDate: string;
1279
+ organizationId: string;
1280
+ invoiceNumber: string;
1281
+ billFromName: string;
1282
+ billToName: string;
1283
+ subtotal: number;
1284
+ currency?: string | undefined;
1285
+ notes?: string | null | undefined;
1286
+ paidAt?: string | null | undefined;
1287
+ pdfUrl?: string | null | undefined;
1288
+ taxRate?: number | null | undefined;
1289
+ dueDate?: string | null | undefined;
1290
+ billFromAddress?: string | null | undefined;
1291
+ billFromPhone?: string | null | undefined;
1292
+ billFromEmail?: string | null | undefined;
1293
+ billFromTaxId?: string | null | undefined;
1294
+ billToAddress?: string | null | undefined;
1295
+ billToPhone?: string | null | undefined;
1296
+ billToEmail?: string | null | undefined;
1297
+ billToTaxId?: string | null | undefined;
1298
+ taxAmount?: number | null | undefined;
1299
+ discount?: number | null | undefined;
1300
+ paymentTerms?: string | null | undefined;
1301
+ paymentStatus?: "pending" | "cancelled" | "paid" | "overdue" | undefined;
1302
+ }>;
1303
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1304
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1305
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1306
+ }, "strip", z.ZodTypeAny, {
1307
+ type: string;
1308
+ id: string;
1309
+ attributes: {
1310
+ createdAt: string;
1311
+ updatedAt: string;
1312
+ currency: string;
1313
+ total: number;
1314
+ items: {
1315
+ description: string;
1316
+ quantity: number;
1317
+ amount: number;
1318
+ unitPrice: number;
1319
+ taxRate?: number | undefined;
1320
+ }[];
1321
+ issueDate: string;
1322
+ organizationId: string;
1323
+ invoiceNumber: string;
1324
+ billFromName: string;
1325
+ billToName: string;
1326
+ subtotal: number;
1327
+ paymentStatus: "pending" | "cancelled" | "paid" | "overdue";
1328
+ notes?: string | null | undefined;
1329
+ paidAt?: string | null | undefined;
1330
+ pdfUrl?: string | null | undefined;
1331
+ taxRate?: number | null | undefined;
1332
+ dueDate?: string | null | undefined;
1333
+ billFromAddress?: string | null | undefined;
1334
+ billFromPhone?: string | null | undefined;
1335
+ billFromEmail?: string | null | undefined;
1336
+ billFromTaxId?: string | null | undefined;
1337
+ billToAddress?: string | null | undefined;
1338
+ billToPhone?: string | null | undefined;
1339
+ billToEmail?: string | null | undefined;
1340
+ billToTaxId?: string | null | undefined;
1341
+ taxAmount?: number | null | undefined;
1342
+ discount?: number | null | undefined;
1343
+ paymentTerms?: string | null | undefined;
1344
+ };
1345
+ relationships?: Record<string, unknown> | undefined;
1346
+ links?: Record<string, string> | undefined;
1347
+ meta?: Record<string, unknown> | undefined;
1348
+ }, {
1349
+ type: string;
1350
+ id: string;
1351
+ attributes: {
1352
+ createdAt: string;
1353
+ updatedAt: string;
1354
+ total: number;
1355
+ items: {
1356
+ description: string;
1357
+ quantity: number;
1358
+ amount: number;
1359
+ unitPrice: number;
1360
+ taxRate?: number | undefined;
1361
+ }[];
1362
+ issueDate: string;
1363
+ organizationId: string;
1364
+ invoiceNumber: string;
1365
+ billFromName: string;
1366
+ billToName: string;
1367
+ subtotal: number;
1368
+ currency?: string | undefined;
1369
+ notes?: string | null | undefined;
1370
+ paidAt?: string | null | undefined;
1371
+ pdfUrl?: string | null | undefined;
1372
+ taxRate?: number | null | undefined;
1373
+ dueDate?: string | null | undefined;
1374
+ billFromAddress?: string | null | undefined;
1375
+ billFromPhone?: string | null | undefined;
1376
+ billFromEmail?: string | null | undefined;
1377
+ billFromTaxId?: string | null | undefined;
1378
+ billToAddress?: string | null | undefined;
1379
+ billToPhone?: string | null | undefined;
1380
+ billToEmail?: string | null | undefined;
1381
+ billToTaxId?: string | null | undefined;
1382
+ taxAmount?: number | null | undefined;
1383
+ discount?: number | null | undefined;
1384
+ paymentTerms?: string | null | undefined;
1385
+ paymentStatus?: "pending" | "cancelled" | "paid" | "overdue" | undefined;
1386
+ };
1387
+ relationships?: Record<string, unknown> | undefined;
1388
+ links?: Record<string, string> | undefined;
1389
+ meta?: Record<string, unknown> | undefined;
1390
+ }>, "many">;
1391
+ included: z.ZodOptional<z.ZodArray<z.ZodObject<{
1392
+ type: z.ZodString;
1393
+ id: z.ZodString;
1394
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1395
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1396
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1397
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1398
+ }, "strip", z.ZodTypeAny, {
1399
+ type: string;
1400
+ id: string;
1401
+ attributes?: Record<string, unknown> | undefined;
1402
+ relationships?: Record<string, unknown> | undefined;
1403
+ links?: Record<string, string> | undefined;
1404
+ meta?: Record<string, unknown> | undefined;
1405
+ }, {
1406
+ type: string;
1407
+ id: string;
1408
+ attributes?: Record<string, unknown> | undefined;
1409
+ relationships?: Record<string, unknown> | undefined;
1410
+ links?: Record<string, string> | undefined;
1411
+ meta?: Record<string, unknown> | undefined;
1412
+ }>, "many">>;
1413
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1414
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1415
+ }, "strip", z.ZodTypeAny, {
1416
+ data: {
1417
+ type: string;
1418
+ id: string;
1419
+ attributes: {
1420
+ createdAt: string;
1421
+ updatedAt: string;
1422
+ currency: string;
1423
+ total: number;
1424
+ items: {
1425
+ description: string;
1426
+ quantity: number;
1427
+ amount: number;
1428
+ unitPrice: number;
1429
+ taxRate?: number | undefined;
1430
+ }[];
1431
+ issueDate: string;
1432
+ organizationId: string;
1433
+ invoiceNumber: string;
1434
+ billFromName: string;
1435
+ billToName: string;
1436
+ subtotal: number;
1437
+ paymentStatus: "pending" | "cancelled" | "paid" | "overdue";
1438
+ notes?: string | null | undefined;
1439
+ paidAt?: string | null | undefined;
1440
+ pdfUrl?: string | null | undefined;
1441
+ taxRate?: number | null | undefined;
1442
+ dueDate?: string | null | undefined;
1443
+ billFromAddress?: string | null | undefined;
1444
+ billFromPhone?: string | null | undefined;
1445
+ billFromEmail?: string | null | undefined;
1446
+ billFromTaxId?: string | null | undefined;
1447
+ billToAddress?: string | null | undefined;
1448
+ billToPhone?: string | null | undefined;
1449
+ billToEmail?: string | null | undefined;
1450
+ billToTaxId?: string | null | undefined;
1451
+ taxAmount?: number | null | undefined;
1452
+ discount?: number | null | undefined;
1453
+ paymentTerms?: string | null | undefined;
1454
+ };
1455
+ relationships?: Record<string, unknown> | undefined;
1456
+ links?: Record<string, string> | undefined;
1457
+ meta?: Record<string, unknown> | undefined;
1458
+ }[];
1459
+ links?: Record<string, string> | undefined;
1460
+ meta?: Record<string, unknown> | undefined;
1461
+ included?: {
1462
+ type: string;
1463
+ id: string;
1464
+ attributes?: Record<string, unknown> | undefined;
1465
+ relationships?: Record<string, unknown> | undefined;
1466
+ links?: Record<string, string> | undefined;
1467
+ meta?: Record<string, unknown> | undefined;
1468
+ }[] | undefined;
1469
+ }, {
1470
+ data: {
1471
+ type: string;
1472
+ id: string;
1473
+ attributes: {
1474
+ createdAt: string;
1475
+ updatedAt: string;
1476
+ total: number;
1477
+ items: {
1478
+ description: string;
1479
+ quantity: number;
1480
+ amount: number;
1481
+ unitPrice: number;
1482
+ taxRate?: number | undefined;
1483
+ }[];
1484
+ issueDate: string;
1485
+ organizationId: string;
1486
+ invoiceNumber: string;
1487
+ billFromName: string;
1488
+ billToName: string;
1489
+ subtotal: number;
1490
+ currency?: string | undefined;
1491
+ notes?: string | null | undefined;
1492
+ paidAt?: string | null | undefined;
1493
+ pdfUrl?: string | null | undefined;
1494
+ taxRate?: number | null | undefined;
1495
+ dueDate?: string | null | undefined;
1496
+ billFromAddress?: string | null | undefined;
1497
+ billFromPhone?: string | null | undefined;
1498
+ billFromEmail?: string | null | undefined;
1499
+ billFromTaxId?: string | null | undefined;
1500
+ billToAddress?: string | null | undefined;
1501
+ billToPhone?: string | null | undefined;
1502
+ billToEmail?: string | null | undefined;
1503
+ billToTaxId?: string | null | undefined;
1504
+ taxAmount?: number | null | undefined;
1505
+ discount?: number | null | undefined;
1506
+ paymentTerms?: string | null | undefined;
1507
+ paymentStatus?: "pending" | "cancelled" | "paid" | "overdue" | undefined;
1508
+ };
1509
+ relationships?: Record<string, unknown> | undefined;
1510
+ links?: Record<string, string> | undefined;
1511
+ meta?: Record<string, unknown> | undefined;
1512
+ }[];
1513
+ links?: Record<string, string> | undefined;
1514
+ meta?: Record<string, unknown> | undefined;
1515
+ included?: {
1516
+ type: string;
1517
+ id: string;
1518
+ attributes?: Record<string, unknown> | undefined;
1519
+ relationships?: Record<string, unknown> | undefined;
1520
+ links?: Record<string, string> | undefined;
1521
+ meta?: Record<string, unknown> | undefined;
1522
+ }[] | undefined;
1523
+ }>;
1524
+ export type InvoiceItem = z.infer<typeof invoiceItemSchema>;
1525
+ export type CreateInvoiceAttributes = z.infer<typeof createInvoiceAttributesSchema>;
1526
+ export type UpdateInvoiceAttributes = z.infer<typeof updateInvoiceAttributesSchema>;
1527
+ export type CreateInvoiceInput = z.infer<typeof createInvoiceSchema>;
1528
+ export type UpdateInvoiceInput = z.infer<typeof updateInvoiceSchema>;
1529
+ export type InvoiceAttributes = z.infer<typeof invoiceAttributesSchema>;
1530
+ export type InvoiceResource = z.infer<typeof invoiceResourceSchema>;
1531
+ export type InvoiceResponse = z.infer<typeof invoiceResponseSchema>;
1532
+ export type InvoiceListResponse = z.infer<typeof invoiceListResponseSchema>;
1533
+ //# sourceMappingURL=invoices.schemas.d.ts.map