@deepintel-ltd/farmpro-contracts 1.5.24 → 1.5.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/routes/files.routes.d.ts +5 -2
- package/dist/routes/files.routes.d.ts.map +1 -1
- package/dist/routes/files.routes.js +4 -3
- package/dist/routes/invoices.routes.d.ts +45 -101
- package/dist/routes/invoices.routes.d.ts.map +1 -1
- package/dist/routes/invoices.routes.js +1 -1
- package/dist/routes/organizations.routes.d.ts +377 -1
- package/dist/routes/organizations.routes.d.ts.map +1 -1
- package/dist/routes/organizations.routes.js +16 -1
- package/dist/routes/suppliers.routes.d.ts +76 -76
- package/dist/routes/suppliers.routes.js +18 -18
- package/dist/routes/waybills.routes.d.ts +45 -87
- package/dist/routes/waybills.routes.d.ts.map +1 -1
- package/dist/routes/waybills.routes.js +1 -1
- package/dist/schemas/invoices.schemas.d.ts +34 -98
- package/dist/schemas/invoices.schemas.d.ts.map +1 -1
- package/dist/schemas/invoices.schemas.js +1 -5
- package/dist/schemas/suppliers.schemas.d.ts +44 -44
- package/dist/schemas/suppliers.schemas.js +2 -2
- package/dist/schemas/waybills.schemas.d.ts +34 -82
- package/dist/schemas/waybills.schemas.d.ts.map +1 -1
- package/dist/schemas/waybills.schemas.js +1 -4
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"waybills.routes.d.ts","sourceRoot":"","sources":["../../src/routes/waybills.routes.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAexB,eAAO,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"waybills.routes.d.ts","sourceRoot":"","sources":["../../src/routes/waybills.routes.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAexB,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6FzB,CAAC"}
|
|
@@ -94,6 +94,7 @@ export declare const invoiceAttributesSchema: z.ZodObject<{
|
|
|
94
94
|
createdAt: string;
|
|
95
95
|
updatedAt: string;
|
|
96
96
|
currency: string;
|
|
97
|
+
organizationId: string;
|
|
97
98
|
total: number;
|
|
98
99
|
items: {
|
|
99
100
|
description: string;
|
|
@@ -105,7 +106,6 @@ export declare const invoiceAttributesSchema: z.ZodObject<{
|
|
|
105
106
|
taxRate?: number | undefined;
|
|
106
107
|
remark?: string | undefined;
|
|
107
108
|
}[];
|
|
108
|
-
organizationId: string;
|
|
109
109
|
issueDate: string;
|
|
110
110
|
invoiceNumber: string;
|
|
111
111
|
billFromName: string;
|
|
@@ -134,6 +134,7 @@ export declare const invoiceAttributesSchema: z.ZodObject<{
|
|
|
134
134
|
}, {
|
|
135
135
|
createdAt: string;
|
|
136
136
|
updatedAt: string;
|
|
137
|
+
organizationId: string;
|
|
137
138
|
total: number;
|
|
138
139
|
items: {
|
|
139
140
|
description: string;
|
|
@@ -145,7 +146,6 @@ export declare const invoiceAttributesSchema: z.ZodObject<{
|
|
|
145
146
|
taxRate?: number | undefined;
|
|
146
147
|
remark?: string | undefined;
|
|
147
148
|
}[];
|
|
148
|
-
organizationId: string;
|
|
149
149
|
issueDate: string;
|
|
150
150
|
invoiceNumber: string;
|
|
151
151
|
billFromName: string;
|
|
@@ -181,11 +181,7 @@ export declare const createInvoiceAttributesSchema: z.ZodObject<{
|
|
|
181
181
|
billFromPhone: z.ZodOptional<z.ZodString>;
|
|
182
182
|
billFromEmail: z.ZodOptional<z.ZodString>;
|
|
183
183
|
billFromTaxId: z.ZodOptional<z.ZodString>;
|
|
184
|
-
|
|
185
|
-
billToAddress: z.ZodOptional<z.ZodString>;
|
|
186
|
-
billToPhone: z.ZodOptional<z.ZodString>;
|
|
187
|
-
billToEmail: z.ZodOptional<z.ZodString>;
|
|
188
|
-
billToTaxId: z.ZodOptional<z.ZodString>;
|
|
184
|
+
buyerId: z.ZodString;
|
|
189
185
|
items: z.ZodArray<z.ZodObject<{
|
|
190
186
|
description: z.ZodString;
|
|
191
187
|
quantity: z.ZodNumber;
|
|
@@ -234,8 +230,8 @@ export declare const createInvoiceAttributesSchema: z.ZodObject<{
|
|
|
234
230
|
taxRate?: number | undefined;
|
|
235
231
|
remark?: string | undefined;
|
|
236
232
|
}[];
|
|
233
|
+
buyerId: string;
|
|
237
234
|
billFromName: string;
|
|
238
|
-
billToName: string;
|
|
239
235
|
notes?: string | undefined;
|
|
240
236
|
waybillNumber?: string | undefined;
|
|
241
237
|
issueDate?: string | undefined;
|
|
@@ -245,10 +241,6 @@ export declare const createInvoiceAttributesSchema: z.ZodObject<{
|
|
|
245
241
|
billFromPhone?: string | undefined;
|
|
246
242
|
billFromEmail?: string | undefined;
|
|
247
243
|
billFromTaxId?: string | undefined;
|
|
248
|
-
billToAddress?: string | undefined;
|
|
249
|
-
billToPhone?: string | undefined;
|
|
250
|
-
billToEmail?: string | undefined;
|
|
251
|
-
billToTaxId?: string | undefined;
|
|
252
244
|
discount?: number | undefined;
|
|
253
245
|
paymentTerms?: string | undefined;
|
|
254
246
|
bankAccountId?: string | undefined;
|
|
@@ -264,8 +256,8 @@ export declare const createInvoiceAttributesSchema: z.ZodObject<{
|
|
|
264
256
|
taxRate?: number | undefined;
|
|
265
257
|
remark?: string | undefined;
|
|
266
258
|
}[];
|
|
259
|
+
buyerId: string;
|
|
267
260
|
billFromName: string;
|
|
268
|
-
billToName: string;
|
|
269
261
|
currency?: string | undefined;
|
|
270
262
|
notes?: string | undefined;
|
|
271
263
|
waybillNumber?: string | undefined;
|
|
@@ -276,10 +268,6 @@ export declare const createInvoiceAttributesSchema: z.ZodObject<{
|
|
|
276
268
|
billFromPhone?: string | undefined;
|
|
277
269
|
billFromEmail?: string | undefined;
|
|
278
270
|
billFromTaxId?: string | undefined;
|
|
279
|
-
billToAddress?: string | undefined;
|
|
280
|
-
billToPhone?: string | undefined;
|
|
281
|
-
billToEmail?: string | undefined;
|
|
282
|
-
billToTaxId?: string | undefined;
|
|
283
271
|
discount?: number | undefined;
|
|
284
272
|
paymentTerms?: string | undefined;
|
|
285
273
|
bankAccountId?: string | undefined;
|
|
@@ -293,11 +281,7 @@ export declare const updateInvoiceAttributesSchema: z.ZodObject<{
|
|
|
293
281
|
billFromPhone: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
294
282
|
billFromEmail: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
295
283
|
billFromTaxId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
296
|
-
|
|
297
|
-
billToAddress: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
298
|
-
billToPhone: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
299
|
-
billToEmail: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
300
|
-
billToTaxId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
284
|
+
buyerId: z.ZodOptional<z.ZodString>;
|
|
301
285
|
items: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
302
286
|
description: z.ZodString;
|
|
303
287
|
quantity: z.ZodNumber;
|
|
@@ -351,6 +335,7 @@ export declare const updateInvoiceAttributesSchema: z.ZodObject<{
|
|
|
351
335
|
}[] | undefined;
|
|
352
336
|
waybillNumber?: string | undefined;
|
|
353
337
|
issueDate?: string | undefined;
|
|
338
|
+
buyerId?: string | undefined;
|
|
354
339
|
taxRate?: number | undefined;
|
|
355
340
|
dueDate?: string | undefined;
|
|
356
341
|
billFromName?: string | undefined;
|
|
@@ -358,11 +343,6 @@ export declare const updateInvoiceAttributesSchema: z.ZodObject<{
|
|
|
358
343
|
billFromPhone?: string | undefined;
|
|
359
344
|
billFromEmail?: string | undefined;
|
|
360
345
|
billFromTaxId?: string | undefined;
|
|
361
|
-
billToName?: string | undefined;
|
|
362
|
-
billToAddress?: string | undefined;
|
|
363
|
-
billToPhone?: string | undefined;
|
|
364
|
-
billToEmail?: string | undefined;
|
|
365
|
-
billToTaxId?: string | undefined;
|
|
366
346
|
discount?: number | undefined;
|
|
367
347
|
paymentTerms?: string | undefined;
|
|
368
348
|
paymentStatus?: "pending" | "cancelled" | "paid" | "overdue" | undefined;
|
|
@@ -383,6 +363,7 @@ export declare const updateInvoiceAttributesSchema: z.ZodObject<{
|
|
|
383
363
|
}[] | undefined;
|
|
384
364
|
waybillNumber?: string | undefined;
|
|
385
365
|
issueDate?: string | undefined;
|
|
366
|
+
buyerId?: string | undefined;
|
|
386
367
|
taxRate?: number | undefined;
|
|
387
368
|
dueDate?: string | undefined;
|
|
388
369
|
billFromName?: string | undefined;
|
|
@@ -390,11 +371,6 @@ export declare const updateInvoiceAttributesSchema: z.ZodObject<{
|
|
|
390
371
|
billFromPhone?: string | undefined;
|
|
391
372
|
billFromEmail?: string | undefined;
|
|
392
373
|
billFromTaxId?: string | undefined;
|
|
393
|
-
billToName?: string | undefined;
|
|
394
|
-
billToAddress?: string | undefined;
|
|
395
|
-
billToPhone?: string | undefined;
|
|
396
|
-
billToEmail?: string | undefined;
|
|
397
|
-
billToTaxId?: string | undefined;
|
|
398
374
|
discount?: number | undefined;
|
|
399
375
|
paymentTerms?: string | undefined;
|
|
400
376
|
paymentStatus?: "pending" | "cancelled" | "paid" | "overdue" | undefined;
|
|
@@ -411,11 +387,7 @@ export declare const createInvoiceSchema: z.ZodObject<{
|
|
|
411
387
|
billFromPhone: z.ZodOptional<z.ZodString>;
|
|
412
388
|
billFromEmail: z.ZodOptional<z.ZodString>;
|
|
413
389
|
billFromTaxId: z.ZodOptional<z.ZodString>;
|
|
414
|
-
|
|
415
|
-
billToAddress: z.ZodOptional<z.ZodString>;
|
|
416
|
-
billToPhone: z.ZodOptional<z.ZodString>;
|
|
417
|
-
billToEmail: z.ZodOptional<z.ZodString>;
|
|
418
|
-
billToTaxId: z.ZodOptional<z.ZodString>;
|
|
390
|
+
buyerId: z.ZodString;
|
|
419
391
|
items: z.ZodArray<z.ZodObject<{
|
|
420
392
|
description: z.ZodString;
|
|
421
393
|
quantity: z.ZodNumber;
|
|
@@ -464,8 +436,8 @@ export declare const createInvoiceSchema: z.ZodObject<{
|
|
|
464
436
|
taxRate?: number | undefined;
|
|
465
437
|
remark?: string | undefined;
|
|
466
438
|
}[];
|
|
439
|
+
buyerId: string;
|
|
467
440
|
billFromName: string;
|
|
468
|
-
billToName: string;
|
|
469
441
|
notes?: string | undefined;
|
|
470
442
|
waybillNumber?: string | undefined;
|
|
471
443
|
issueDate?: string | undefined;
|
|
@@ -475,10 +447,6 @@ export declare const createInvoiceSchema: z.ZodObject<{
|
|
|
475
447
|
billFromPhone?: string | undefined;
|
|
476
448
|
billFromEmail?: string | undefined;
|
|
477
449
|
billFromTaxId?: string | undefined;
|
|
478
|
-
billToAddress?: string | undefined;
|
|
479
|
-
billToPhone?: string | undefined;
|
|
480
|
-
billToEmail?: string | undefined;
|
|
481
|
-
billToTaxId?: string | undefined;
|
|
482
450
|
discount?: number | undefined;
|
|
483
451
|
paymentTerms?: string | undefined;
|
|
484
452
|
bankAccountId?: string | undefined;
|
|
@@ -494,8 +462,8 @@ export declare const createInvoiceSchema: z.ZodObject<{
|
|
|
494
462
|
taxRate?: number | undefined;
|
|
495
463
|
remark?: string | undefined;
|
|
496
464
|
}[];
|
|
465
|
+
buyerId: string;
|
|
497
466
|
billFromName: string;
|
|
498
|
-
billToName: string;
|
|
499
467
|
currency?: string | undefined;
|
|
500
468
|
notes?: string | undefined;
|
|
501
469
|
waybillNumber?: string | undefined;
|
|
@@ -506,10 +474,6 @@ export declare const createInvoiceSchema: z.ZodObject<{
|
|
|
506
474
|
billFromPhone?: string | undefined;
|
|
507
475
|
billFromEmail?: string | undefined;
|
|
508
476
|
billFromTaxId?: string | undefined;
|
|
509
|
-
billToAddress?: string | undefined;
|
|
510
|
-
billToPhone?: string | undefined;
|
|
511
|
-
billToEmail?: string | undefined;
|
|
512
|
-
billToTaxId?: string | undefined;
|
|
513
477
|
discount?: number | undefined;
|
|
514
478
|
paymentTerms?: string | undefined;
|
|
515
479
|
bankAccountId?: string | undefined;
|
|
@@ -529,8 +493,8 @@ export declare const createInvoiceSchema: z.ZodObject<{
|
|
|
529
493
|
taxRate?: number | undefined;
|
|
530
494
|
remark?: string | undefined;
|
|
531
495
|
}[];
|
|
496
|
+
buyerId: string;
|
|
532
497
|
billFromName: string;
|
|
533
|
-
billToName: string;
|
|
534
498
|
notes?: string | undefined;
|
|
535
499
|
waybillNumber?: string | undefined;
|
|
536
500
|
issueDate?: string | undefined;
|
|
@@ -540,10 +504,6 @@ export declare const createInvoiceSchema: z.ZodObject<{
|
|
|
540
504
|
billFromPhone?: string | undefined;
|
|
541
505
|
billFromEmail?: string | undefined;
|
|
542
506
|
billFromTaxId?: string | undefined;
|
|
543
|
-
billToAddress?: string | undefined;
|
|
544
|
-
billToPhone?: string | undefined;
|
|
545
|
-
billToEmail?: string | undefined;
|
|
546
|
-
billToTaxId?: string | undefined;
|
|
547
507
|
discount?: number | undefined;
|
|
548
508
|
paymentTerms?: string | undefined;
|
|
549
509
|
bankAccountId?: string | undefined;
|
|
@@ -562,8 +522,8 @@ export declare const createInvoiceSchema: z.ZodObject<{
|
|
|
562
522
|
taxRate?: number | undefined;
|
|
563
523
|
remark?: string | undefined;
|
|
564
524
|
}[];
|
|
525
|
+
buyerId: string;
|
|
565
526
|
billFromName: string;
|
|
566
|
-
billToName: string;
|
|
567
527
|
currency?: string | undefined;
|
|
568
528
|
notes?: string | undefined;
|
|
569
529
|
waybillNumber?: string | undefined;
|
|
@@ -574,10 +534,6 @@ export declare const createInvoiceSchema: z.ZodObject<{
|
|
|
574
534
|
billFromPhone?: string | undefined;
|
|
575
535
|
billFromEmail?: string | undefined;
|
|
576
536
|
billFromTaxId?: string | undefined;
|
|
577
|
-
billToAddress?: string | undefined;
|
|
578
|
-
billToPhone?: string | undefined;
|
|
579
|
-
billToEmail?: string | undefined;
|
|
580
|
-
billToTaxId?: string | undefined;
|
|
581
537
|
discount?: number | undefined;
|
|
582
538
|
paymentTerms?: string | undefined;
|
|
583
539
|
bankAccountId?: string | undefined;
|
|
@@ -595,11 +551,7 @@ export declare const updateInvoiceSchema: z.ZodObject<{
|
|
|
595
551
|
billFromPhone: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
596
552
|
billFromEmail: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
597
553
|
billFromTaxId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
598
|
-
|
|
599
|
-
billToAddress: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
600
|
-
billToPhone: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
601
|
-
billToEmail: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
602
|
-
billToTaxId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
554
|
+
buyerId: z.ZodOptional<z.ZodString>;
|
|
603
555
|
items: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
604
556
|
description: z.ZodString;
|
|
605
557
|
quantity: z.ZodNumber;
|
|
@@ -653,6 +605,7 @@ export declare const updateInvoiceSchema: z.ZodObject<{
|
|
|
653
605
|
}[] | undefined;
|
|
654
606
|
waybillNumber?: string | undefined;
|
|
655
607
|
issueDate?: string | undefined;
|
|
608
|
+
buyerId?: string | undefined;
|
|
656
609
|
taxRate?: number | undefined;
|
|
657
610
|
dueDate?: string | undefined;
|
|
658
611
|
billFromName?: string | undefined;
|
|
@@ -660,11 +613,6 @@ export declare const updateInvoiceSchema: z.ZodObject<{
|
|
|
660
613
|
billFromPhone?: string | undefined;
|
|
661
614
|
billFromEmail?: string | undefined;
|
|
662
615
|
billFromTaxId?: string | undefined;
|
|
663
|
-
billToName?: string | undefined;
|
|
664
|
-
billToAddress?: string | undefined;
|
|
665
|
-
billToPhone?: string | undefined;
|
|
666
|
-
billToEmail?: string | undefined;
|
|
667
|
-
billToTaxId?: string | undefined;
|
|
668
616
|
discount?: number | undefined;
|
|
669
617
|
paymentTerms?: string | undefined;
|
|
670
618
|
paymentStatus?: "pending" | "cancelled" | "paid" | "overdue" | undefined;
|
|
@@ -685,6 +633,7 @@ export declare const updateInvoiceSchema: z.ZodObject<{
|
|
|
685
633
|
}[] | undefined;
|
|
686
634
|
waybillNumber?: string | undefined;
|
|
687
635
|
issueDate?: string | undefined;
|
|
636
|
+
buyerId?: string | undefined;
|
|
688
637
|
taxRate?: number | undefined;
|
|
689
638
|
dueDate?: string | undefined;
|
|
690
639
|
billFromName?: string | undefined;
|
|
@@ -692,11 +641,6 @@ export declare const updateInvoiceSchema: z.ZodObject<{
|
|
|
692
641
|
billFromPhone?: string | undefined;
|
|
693
642
|
billFromEmail?: string | undefined;
|
|
694
643
|
billFromTaxId?: string | undefined;
|
|
695
|
-
billToName?: string | undefined;
|
|
696
|
-
billToAddress?: string | undefined;
|
|
697
|
-
billToPhone?: string | undefined;
|
|
698
|
-
billToEmail?: string | undefined;
|
|
699
|
-
billToTaxId?: string | undefined;
|
|
700
644
|
discount?: number | undefined;
|
|
701
645
|
paymentTerms?: string | undefined;
|
|
702
646
|
paymentStatus?: "pending" | "cancelled" | "paid" | "overdue" | undefined;
|
|
@@ -721,6 +665,7 @@ export declare const updateInvoiceSchema: z.ZodObject<{
|
|
|
721
665
|
}[] | undefined;
|
|
722
666
|
waybillNumber?: string | undefined;
|
|
723
667
|
issueDate?: string | undefined;
|
|
668
|
+
buyerId?: string | undefined;
|
|
724
669
|
taxRate?: number | undefined;
|
|
725
670
|
dueDate?: string | undefined;
|
|
726
671
|
billFromName?: string | undefined;
|
|
@@ -728,11 +673,6 @@ export declare const updateInvoiceSchema: z.ZodObject<{
|
|
|
728
673
|
billFromPhone?: string | undefined;
|
|
729
674
|
billFromEmail?: string | undefined;
|
|
730
675
|
billFromTaxId?: string | undefined;
|
|
731
|
-
billToName?: string | undefined;
|
|
732
|
-
billToAddress?: string | undefined;
|
|
733
|
-
billToPhone?: string | undefined;
|
|
734
|
-
billToEmail?: string | undefined;
|
|
735
|
-
billToTaxId?: string | undefined;
|
|
736
676
|
discount?: number | undefined;
|
|
737
677
|
paymentTerms?: string | undefined;
|
|
738
678
|
paymentStatus?: "pending" | "cancelled" | "paid" | "overdue" | undefined;
|
|
@@ -757,6 +697,7 @@ export declare const updateInvoiceSchema: z.ZodObject<{
|
|
|
757
697
|
}[] | undefined;
|
|
758
698
|
waybillNumber?: string | undefined;
|
|
759
699
|
issueDate?: string | undefined;
|
|
700
|
+
buyerId?: string | undefined;
|
|
760
701
|
taxRate?: number | undefined;
|
|
761
702
|
dueDate?: string | undefined;
|
|
762
703
|
billFromName?: string | undefined;
|
|
@@ -764,11 +705,6 @@ export declare const updateInvoiceSchema: z.ZodObject<{
|
|
|
764
705
|
billFromPhone?: string | undefined;
|
|
765
706
|
billFromEmail?: string | undefined;
|
|
766
707
|
billFromTaxId?: string | undefined;
|
|
767
|
-
billToName?: string | undefined;
|
|
768
|
-
billToAddress?: string | undefined;
|
|
769
|
-
billToPhone?: string | undefined;
|
|
770
|
-
billToEmail?: string | undefined;
|
|
771
|
-
billToTaxId?: string | undefined;
|
|
772
708
|
discount?: number | undefined;
|
|
773
709
|
paymentTerms?: string | undefined;
|
|
774
710
|
paymentStatus?: "pending" | "cancelled" | "paid" | "overdue" | undefined;
|
|
@@ -843,6 +779,7 @@ export declare const invoiceResourceSchema: z.ZodObject<{
|
|
|
843
779
|
createdAt: string;
|
|
844
780
|
updatedAt: string;
|
|
845
781
|
currency: string;
|
|
782
|
+
organizationId: string;
|
|
846
783
|
total: number;
|
|
847
784
|
items: {
|
|
848
785
|
description: string;
|
|
@@ -854,7 +791,6 @@ export declare const invoiceResourceSchema: z.ZodObject<{
|
|
|
854
791
|
taxRate?: number | undefined;
|
|
855
792
|
remark?: string | undefined;
|
|
856
793
|
}[];
|
|
857
|
-
organizationId: string;
|
|
858
794
|
issueDate: string;
|
|
859
795
|
invoiceNumber: string;
|
|
860
796
|
billFromName: string;
|
|
@@ -883,6 +819,7 @@ export declare const invoiceResourceSchema: z.ZodObject<{
|
|
|
883
819
|
}, {
|
|
884
820
|
createdAt: string;
|
|
885
821
|
updatedAt: string;
|
|
822
|
+
organizationId: string;
|
|
886
823
|
total: number;
|
|
887
824
|
items: {
|
|
888
825
|
description: string;
|
|
@@ -894,7 +831,6 @@ export declare const invoiceResourceSchema: z.ZodObject<{
|
|
|
894
831
|
taxRate?: number | undefined;
|
|
895
832
|
remark?: string | undefined;
|
|
896
833
|
}[];
|
|
897
|
-
organizationId: string;
|
|
898
834
|
issueDate: string;
|
|
899
835
|
invoiceNumber: string;
|
|
900
836
|
billFromName: string;
|
|
@@ -932,6 +868,7 @@ export declare const invoiceResourceSchema: z.ZodObject<{
|
|
|
932
868
|
createdAt: string;
|
|
933
869
|
updatedAt: string;
|
|
934
870
|
currency: string;
|
|
871
|
+
organizationId: string;
|
|
935
872
|
total: number;
|
|
936
873
|
items: {
|
|
937
874
|
description: string;
|
|
@@ -943,7 +880,6 @@ export declare const invoiceResourceSchema: z.ZodObject<{
|
|
|
943
880
|
taxRate?: number | undefined;
|
|
944
881
|
remark?: string | undefined;
|
|
945
882
|
}[];
|
|
946
|
-
organizationId: string;
|
|
947
883
|
issueDate: string;
|
|
948
884
|
invoiceNumber: string;
|
|
949
885
|
billFromName: string;
|
|
@@ -979,6 +915,7 @@ export declare const invoiceResourceSchema: z.ZodObject<{
|
|
|
979
915
|
attributes: {
|
|
980
916
|
createdAt: string;
|
|
981
917
|
updatedAt: string;
|
|
918
|
+
organizationId: string;
|
|
982
919
|
total: number;
|
|
983
920
|
items: {
|
|
984
921
|
description: string;
|
|
@@ -990,7 +927,6 @@ export declare const invoiceResourceSchema: z.ZodObject<{
|
|
|
990
927
|
taxRate?: number | undefined;
|
|
991
928
|
remark?: string | undefined;
|
|
992
929
|
}[];
|
|
993
|
-
organizationId: string;
|
|
994
930
|
issueDate: string;
|
|
995
931
|
invoiceNumber: string;
|
|
996
932
|
billFromName: string;
|
|
@@ -1090,6 +1026,7 @@ export declare const invoiceResponseSchema: z.ZodObject<{
|
|
|
1090
1026
|
createdAt: string;
|
|
1091
1027
|
updatedAt: string;
|
|
1092
1028
|
currency: string;
|
|
1029
|
+
organizationId: string;
|
|
1093
1030
|
total: number;
|
|
1094
1031
|
items: {
|
|
1095
1032
|
description: string;
|
|
@@ -1101,7 +1038,6 @@ export declare const invoiceResponseSchema: z.ZodObject<{
|
|
|
1101
1038
|
taxRate?: number | undefined;
|
|
1102
1039
|
remark?: string | undefined;
|
|
1103
1040
|
}[];
|
|
1104
|
-
organizationId: string;
|
|
1105
1041
|
issueDate: string;
|
|
1106
1042
|
invoiceNumber: string;
|
|
1107
1043
|
billFromName: string;
|
|
@@ -1130,6 +1066,7 @@ export declare const invoiceResponseSchema: z.ZodObject<{
|
|
|
1130
1066
|
}, {
|
|
1131
1067
|
createdAt: string;
|
|
1132
1068
|
updatedAt: string;
|
|
1069
|
+
organizationId: string;
|
|
1133
1070
|
total: number;
|
|
1134
1071
|
items: {
|
|
1135
1072
|
description: string;
|
|
@@ -1141,7 +1078,6 @@ export declare const invoiceResponseSchema: z.ZodObject<{
|
|
|
1141
1078
|
taxRate?: number | undefined;
|
|
1142
1079
|
remark?: string | undefined;
|
|
1143
1080
|
}[];
|
|
1144
|
-
organizationId: string;
|
|
1145
1081
|
issueDate: string;
|
|
1146
1082
|
invoiceNumber: string;
|
|
1147
1083
|
billFromName: string;
|
|
@@ -1179,6 +1115,7 @@ export declare const invoiceResponseSchema: z.ZodObject<{
|
|
|
1179
1115
|
createdAt: string;
|
|
1180
1116
|
updatedAt: string;
|
|
1181
1117
|
currency: string;
|
|
1118
|
+
organizationId: string;
|
|
1182
1119
|
total: number;
|
|
1183
1120
|
items: {
|
|
1184
1121
|
description: string;
|
|
@@ -1190,7 +1127,6 @@ export declare const invoiceResponseSchema: z.ZodObject<{
|
|
|
1190
1127
|
taxRate?: number | undefined;
|
|
1191
1128
|
remark?: string | undefined;
|
|
1192
1129
|
}[];
|
|
1193
|
-
organizationId: string;
|
|
1194
1130
|
issueDate: string;
|
|
1195
1131
|
invoiceNumber: string;
|
|
1196
1132
|
billFromName: string;
|
|
@@ -1226,6 +1162,7 @@ export declare const invoiceResponseSchema: z.ZodObject<{
|
|
|
1226
1162
|
attributes: {
|
|
1227
1163
|
createdAt: string;
|
|
1228
1164
|
updatedAt: string;
|
|
1165
|
+
organizationId: string;
|
|
1229
1166
|
total: number;
|
|
1230
1167
|
items: {
|
|
1231
1168
|
description: string;
|
|
@@ -1237,7 +1174,6 @@ export declare const invoiceResponseSchema: z.ZodObject<{
|
|
|
1237
1174
|
taxRate?: number | undefined;
|
|
1238
1175
|
remark?: string | undefined;
|
|
1239
1176
|
}[];
|
|
1240
|
-
organizationId: string;
|
|
1241
1177
|
issueDate: string;
|
|
1242
1178
|
invoiceNumber: string;
|
|
1243
1179
|
billFromName: string;
|
|
@@ -1301,6 +1237,7 @@ export declare const invoiceResponseSchema: z.ZodObject<{
|
|
|
1301
1237
|
createdAt: string;
|
|
1302
1238
|
updatedAt: string;
|
|
1303
1239
|
currency: string;
|
|
1240
|
+
organizationId: string;
|
|
1304
1241
|
total: number;
|
|
1305
1242
|
items: {
|
|
1306
1243
|
description: string;
|
|
@@ -1312,7 +1249,6 @@ export declare const invoiceResponseSchema: z.ZodObject<{
|
|
|
1312
1249
|
taxRate?: number | undefined;
|
|
1313
1250
|
remark?: string | undefined;
|
|
1314
1251
|
}[];
|
|
1315
|
-
organizationId: string;
|
|
1316
1252
|
issueDate: string;
|
|
1317
1253
|
invoiceNumber: string;
|
|
1318
1254
|
billFromName: string;
|
|
@@ -1360,6 +1296,7 @@ export declare const invoiceResponseSchema: z.ZodObject<{
|
|
|
1360
1296
|
attributes: {
|
|
1361
1297
|
createdAt: string;
|
|
1362
1298
|
updatedAt: string;
|
|
1299
|
+
organizationId: string;
|
|
1363
1300
|
total: number;
|
|
1364
1301
|
items: {
|
|
1365
1302
|
description: string;
|
|
@@ -1371,7 +1308,6 @@ export declare const invoiceResponseSchema: z.ZodObject<{
|
|
|
1371
1308
|
taxRate?: number | undefined;
|
|
1372
1309
|
remark?: string | undefined;
|
|
1373
1310
|
}[];
|
|
1374
|
-
organizationId: string;
|
|
1375
1311
|
issueDate: string;
|
|
1376
1312
|
invoiceNumber: string;
|
|
1377
1313
|
billFromName: string;
|
|
@@ -1482,6 +1418,7 @@ export declare const invoiceListResponseSchema: z.ZodObject<{
|
|
|
1482
1418
|
createdAt: string;
|
|
1483
1419
|
updatedAt: string;
|
|
1484
1420
|
currency: string;
|
|
1421
|
+
organizationId: string;
|
|
1485
1422
|
total: number;
|
|
1486
1423
|
items: {
|
|
1487
1424
|
description: string;
|
|
@@ -1493,7 +1430,6 @@ export declare const invoiceListResponseSchema: z.ZodObject<{
|
|
|
1493
1430
|
taxRate?: number | undefined;
|
|
1494
1431
|
remark?: string | undefined;
|
|
1495
1432
|
}[];
|
|
1496
|
-
organizationId: string;
|
|
1497
1433
|
issueDate: string;
|
|
1498
1434
|
invoiceNumber: string;
|
|
1499
1435
|
billFromName: string;
|
|
@@ -1522,6 +1458,7 @@ export declare const invoiceListResponseSchema: z.ZodObject<{
|
|
|
1522
1458
|
}, {
|
|
1523
1459
|
createdAt: string;
|
|
1524
1460
|
updatedAt: string;
|
|
1461
|
+
organizationId: string;
|
|
1525
1462
|
total: number;
|
|
1526
1463
|
items: {
|
|
1527
1464
|
description: string;
|
|
@@ -1533,7 +1470,6 @@ export declare const invoiceListResponseSchema: z.ZodObject<{
|
|
|
1533
1470
|
taxRate?: number | undefined;
|
|
1534
1471
|
remark?: string | undefined;
|
|
1535
1472
|
}[];
|
|
1536
|
-
organizationId: string;
|
|
1537
1473
|
issueDate: string;
|
|
1538
1474
|
invoiceNumber: string;
|
|
1539
1475
|
billFromName: string;
|
|
@@ -1571,6 +1507,7 @@ export declare const invoiceListResponseSchema: z.ZodObject<{
|
|
|
1571
1507
|
createdAt: string;
|
|
1572
1508
|
updatedAt: string;
|
|
1573
1509
|
currency: string;
|
|
1510
|
+
organizationId: string;
|
|
1574
1511
|
total: number;
|
|
1575
1512
|
items: {
|
|
1576
1513
|
description: string;
|
|
@@ -1582,7 +1519,6 @@ export declare const invoiceListResponseSchema: z.ZodObject<{
|
|
|
1582
1519
|
taxRate?: number | undefined;
|
|
1583
1520
|
remark?: string | undefined;
|
|
1584
1521
|
}[];
|
|
1585
|
-
organizationId: string;
|
|
1586
1522
|
issueDate: string;
|
|
1587
1523
|
invoiceNumber: string;
|
|
1588
1524
|
billFromName: string;
|
|
@@ -1618,6 +1554,7 @@ export declare const invoiceListResponseSchema: z.ZodObject<{
|
|
|
1618
1554
|
attributes: {
|
|
1619
1555
|
createdAt: string;
|
|
1620
1556
|
updatedAt: string;
|
|
1557
|
+
organizationId: string;
|
|
1621
1558
|
total: number;
|
|
1622
1559
|
items: {
|
|
1623
1560
|
description: string;
|
|
@@ -1629,7 +1566,6 @@ export declare const invoiceListResponseSchema: z.ZodObject<{
|
|
|
1629
1566
|
taxRate?: number | undefined;
|
|
1630
1567
|
remark?: string | undefined;
|
|
1631
1568
|
}[];
|
|
1632
|
-
organizationId: string;
|
|
1633
1569
|
issueDate: string;
|
|
1634
1570
|
invoiceNumber: string;
|
|
1635
1571
|
billFromName: string;
|
|
@@ -1693,6 +1629,7 @@ export declare const invoiceListResponseSchema: z.ZodObject<{
|
|
|
1693
1629
|
createdAt: string;
|
|
1694
1630
|
updatedAt: string;
|
|
1695
1631
|
currency: string;
|
|
1632
|
+
organizationId: string;
|
|
1696
1633
|
total: number;
|
|
1697
1634
|
items: {
|
|
1698
1635
|
description: string;
|
|
@@ -1704,7 +1641,6 @@ export declare const invoiceListResponseSchema: z.ZodObject<{
|
|
|
1704
1641
|
taxRate?: number | undefined;
|
|
1705
1642
|
remark?: string | undefined;
|
|
1706
1643
|
}[];
|
|
1707
|
-
organizationId: string;
|
|
1708
1644
|
issueDate: string;
|
|
1709
1645
|
invoiceNumber: string;
|
|
1710
1646
|
billFromName: string;
|
|
@@ -1752,6 +1688,7 @@ export declare const invoiceListResponseSchema: z.ZodObject<{
|
|
|
1752
1688
|
attributes: {
|
|
1753
1689
|
createdAt: string;
|
|
1754
1690
|
updatedAt: string;
|
|
1691
|
+
organizationId: string;
|
|
1755
1692
|
total: number;
|
|
1756
1693
|
items: {
|
|
1757
1694
|
description: string;
|
|
@@ -1763,7 +1700,6 @@ export declare const invoiceListResponseSchema: z.ZodObject<{
|
|
|
1763
1700
|
taxRate?: number | undefined;
|
|
1764
1701
|
remark?: string | undefined;
|
|
1765
1702
|
}[];
|
|
1766
|
-
organizationId: string;
|
|
1767
1703
|
issueDate: string;
|
|
1768
1704
|
invoiceNumber: string;
|
|
1769
1705
|
billFromName: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"invoices.schemas.d.ts","sourceRoot":"","sources":["../../src/schemas/invoices.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB;;GAEG;AAGH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;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FromEmail: z.string().email().optional(),
|
|
60
60
|
billFromTaxId: z.string().optional(),
|
|
61
|
-
|
|
62
|
-
billToAddress: z.string().optional(),
|
|
63
|
-
billToPhone: z.string().optional(),
|
|
64
|
-
billToEmail: z.string().email().optional(),
|
|
65
|
-
billToTaxId: z.string().optional(),
|
|
61
|
+
buyerId: z.string().uuid(),
|
|
66
62
|
items: z.array(invoiceItemSchema).min(1),
|
|
67
63
|
taxRate: z.number().min(0).max(100).optional(),
|
|
68
64
|
discount: z.number().nonnegative().optional(),
|