@deepintel-ltd/farmpro-contracts 1.5.20 → 1.5.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/routes/invoices.routes.d.ts +366 -30
- package/dist/routes/invoices.routes.d.ts.map +1 -1
- package/dist/routes/organizations.routes.d.ts +2120 -0
- package/dist/routes/organizations.routes.d.ts.map +1 -1
- package/dist/routes/organizations.routes.js +86 -1
- package/dist/routes/waybills.routes.d.ts +485 -30
- package/dist/routes/waybills.routes.d.ts.map +1 -1
- package/dist/schemas/invoices.schemas.d.ts +303 -18
- package/dist/schemas/invoices.schemas.d.ts.map +1 -1
- package/dist/schemas/invoices.schemas.js +11 -0
- package/dist/schemas/organizations.schemas.d.ts +466 -0
- package/dist/schemas/organizations.schemas.d.ts.map +1 -1
- package/dist/schemas/organizations.schemas.js +40 -0
- package/dist/schemas/waybills.schemas.d.ts +379 -18
- package/dist/schemas/waybills.schemas.d.ts.map +1 -1
- package/dist/schemas/waybills.schemas.js +19 -0
- package/package.json +1 -1
|
@@ -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
|
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;EAS5B,CAAC;AAGH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AACpF,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AACrE,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AACrE,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACxE,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACpE,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACpE,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC"}
|
|
@@ -10,6 +10,9 @@ export const invoiceItemSchema = z.object({
|
|
|
10
10
|
unitPrice: z.number().nonnegative(),
|
|
11
11
|
amount: z.number().nonnegative(),
|
|
12
12
|
taxRate: z.number().min(0).max(100).optional(),
|
|
13
|
+
truckPlateNumber: z.string().optional(),
|
|
14
|
+
weight: z.number().positive().optional(),
|
|
15
|
+
remark: z.string().optional(),
|
|
13
16
|
});
|
|
14
17
|
// Invoice attributes schema
|
|
15
18
|
export const invoiceAttributesSchema = z.object({
|
|
@@ -38,6 +41,10 @@ export const invoiceAttributesSchema = z.object({
|
|
|
38
41
|
paidAt: z.string().datetime().optional().nullable(),
|
|
39
42
|
notes: z.string().optional().nullable(),
|
|
40
43
|
pdfUrl: z.string().url().optional().nullable(),
|
|
44
|
+
// Additional fields
|
|
45
|
+
bankAccountId: z.string().uuid().optional().nullable(),
|
|
46
|
+
waybillNumber: z.string().optional().nullable(),
|
|
47
|
+
totalInWords: z.string().optional().nullable(),
|
|
41
48
|
organizationId: z.string().uuid(),
|
|
42
49
|
createdAt: z.string().datetime(),
|
|
43
50
|
updatedAt: z.string().datetime(),
|
|
@@ -62,6 +69,10 @@ export const createInvoiceAttributesSchema = z.object({
|
|
|
62
69
|
currency: z.string().length(3).default('NGN'),
|
|
63
70
|
paymentTerms: z.string().optional(),
|
|
64
71
|
notes: z.string().optional(),
|
|
72
|
+
// Additional fields
|
|
73
|
+
bankAccountId: z.string().uuid().optional(),
|
|
74
|
+
waybillNumber: z.string().optional(),
|
|
75
|
+
totalInWords: z.string().optional(),
|
|
65
76
|
});
|
|
66
77
|
// Invoice attributes for update (input)
|
|
67
78
|
export const updateInvoiceAttributesSchema = createInvoiceAttributesSchema.partial().extend({
|
|
@@ -506,4 +506,470 @@ export type OrganizationAttributes = z.infer<typeof organizationAttributesSchema
|
|
|
506
506
|
export type OrganizationResource = z.infer<typeof organizationResourceSchema>;
|
|
507
507
|
export type OrganizationResponse = z.infer<typeof organizationResponseSchema>;
|
|
508
508
|
export type OrganizationListResponse = z.infer<typeof organizationListResponseSchema>;
|
|
509
|
+
export declare const bankAccountAttributesSchema: z.ZodObject<{
|
|
510
|
+
bankName: z.ZodString;
|
|
511
|
+
accountNumber: z.ZodString;
|
|
512
|
+
accountName: z.ZodString;
|
|
513
|
+
isDefault: z.ZodDefault<z.ZodBoolean>;
|
|
514
|
+
} & {
|
|
515
|
+
createdAt: z.ZodString;
|
|
516
|
+
updatedAt: z.ZodString;
|
|
517
|
+
}, "strip", z.ZodTypeAny, {
|
|
518
|
+
createdAt: string;
|
|
519
|
+
updatedAt: string;
|
|
520
|
+
isDefault: boolean;
|
|
521
|
+
bankName: string;
|
|
522
|
+
accountNumber: string;
|
|
523
|
+
accountName: string;
|
|
524
|
+
}, {
|
|
525
|
+
createdAt: string;
|
|
526
|
+
updatedAt: string;
|
|
527
|
+
bankName: string;
|
|
528
|
+
accountNumber: string;
|
|
529
|
+
accountName: string;
|
|
530
|
+
isDefault?: boolean | undefined;
|
|
531
|
+
}>;
|
|
532
|
+
export declare const createBankAccountAttributesSchema: z.ZodObject<{
|
|
533
|
+
bankName: z.ZodString;
|
|
534
|
+
accountNumber: z.ZodString;
|
|
535
|
+
accountName: z.ZodString;
|
|
536
|
+
isDefault: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
537
|
+
}, "strip", z.ZodTypeAny, {
|
|
538
|
+
isDefault: boolean;
|
|
539
|
+
bankName: string;
|
|
540
|
+
accountNumber: string;
|
|
541
|
+
accountName: string;
|
|
542
|
+
}, {
|
|
543
|
+
bankName: string;
|
|
544
|
+
accountNumber: string;
|
|
545
|
+
accountName: string;
|
|
546
|
+
isDefault?: boolean | undefined;
|
|
547
|
+
}>;
|
|
548
|
+
export declare const updateBankAccountAttributesSchema: z.ZodObject<{
|
|
549
|
+
bankName: z.ZodOptional<z.ZodString>;
|
|
550
|
+
accountNumber: z.ZodOptional<z.ZodString>;
|
|
551
|
+
accountName: z.ZodOptional<z.ZodString>;
|
|
552
|
+
isDefault: z.ZodOptional<z.ZodBoolean>;
|
|
553
|
+
}, "strip", z.ZodTypeAny, {
|
|
554
|
+
isDefault?: boolean | undefined;
|
|
555
|
+
bankName?: string | undefined;
|
|
556
|
+
accountNumber?: string | undefined;
|
|
557
|
+
accountName?: string | undefined;
|
|
558
|
+
}, {
|
|
559
|
+
isDefault?: boolean | undefined;
|
|
560
|
+
bankName?: string | undefined;
|
|
561
|
+
accountNumber?: string | undefined;
|
|
562
|
+
accountName?: string | undefined;
|
|
563
|
+
}>;
|
|
564
|
+
export declare const createBankAccountSchema: z.ZodObject<{
|
|
565
|
+
type: z.ZodLiteral<"bank-accounts">;
|
|
566
|
+
attributes: z.ZodObject<{
|
|
567
|
+
bankName: z.ZodString;
|
|
568
|
+
accountNumber: z.ZodString;
|
|
569
|
+
accountName: z.ZodString;
|
|
570
|
+
isDefault: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
571
|
+
}, "strip", z.ZodTypeAny, {
|
|
572
|
+
isDefault: boolean;
|
|
573
|
+
bankName: string;
|
|
574
|
+
accountNumber: string;
|
|
575
|
+
accountName: string;
|
|
576
|
+
}, {
|
|
577
|
+
bankName: string;
|
|
578
|
+
accountNumber: string;
|
|
579
|
+
accountName: string;
|
|
580
|
+
isDefault?: boolean | undefined;
|
|
581
|
+
}>;
|
|
582
|
+
}, "strip", z.ZodTypeAny, {
|
|
583
|
+
type: "bank-accounts";
|
|
584
|
+
attributes: {
|
|
585
|
+
isDefault: boolean;
|
|
586
|
+
bankName: string;
|
|
587
|
+
accountNumber: string;
|
|
588
|
+
accountName: string;
|
|
589
|
+
};
|
|
590
|
+
}, {
|
|
591
|
+
type: "bank-accounts";
|
|
592
|
+
attributes: {
|
|
593
|
+
bankName: string;
|
|
594
|
+
accountNumber: string;
|
|
595
|
+
accountName: string;
|
|
596
|
+
isDefault?: boolean | undefined;
|
|
597
|
+
};
|
|
598
|
+
}>;
|
|
599
|
+
export declare const updateBankAccountSchema: z.ZodObject<{
|
|
600
|
+
type: z.ZodLiteral<"bank-accounts">;
|
|
601
|
+
id: z.ZodString;
|
|
602
|
+
attributes: z.ZodObject<{
|
|
603
|
+
bankName: z.ZodOptional<z.ZodString>;
|
|
604
|
+
accountNumber: z.ZodOptional<z.ZodString>;
|
|
605
|
+
accountName: z.ZodOptional<z.ZodString>;
|
|
606
|
+
isDefault: z.ZodOptional<z.ZodBoolean>;
|
|
607
|
+
}, "strip", z.ZodTypeAny, {
|
|
608
|
+
isDefault?: boolean | undefined;
|
|
609
|
+
bankName?: string | undefined;
|
|
610
|
+
accountNumber?: string | undefined;
|
|
611
|
+
accountName?: string | undefined;
|
|
612
|
+
}, {
|
|
613
|
+
isDefault?: boolean | undefined;
|
|
614
|
+
bankName?: string | undefined;
|
|
615
|
+
accountNumber?: string | undefined;
|
|
616
|
+
accountName?: string | undefined;
|
|
617
|
+
}>;
|
|
618
|
+
}, "strip", z.ZodTypeAny, {
|
|
619
|
+
type: "bank-accounts";
|
|
620
|
+
id: string;
|
|
621
|
+
attributes: {
|
|
622
|
+
isDefault?: boolean | undefined;
|
|
623
|
+
bankName?: string | undefined;
|
|
624
|
+
accountNumber?: string | undefined;
|
|
625
|
+
accountName?: string | undefined;
|
|
626
|
+
};
|
|
627
|
+
}, {
|
|
628
|
+
type: "bank-accounts";
|
|
629
|
+
id: string;
|
|
630
|
+
attributes: {
|
|
631
|
+
isDefault?: boolean | undefined;
|
|
632
|
+
bankName?: string | undefined;
|
|
633
|
+
accountNumber?: string | undefined;
|
|
634
|
+
accountName?: string | undefined;
|
|
635
|
+
};
|
|
636
|
+
}>;
|
|
637
|
+
export declare const bankAccountResourceSchema: z.ZodObject<{
|
|
638
|
+
type: z.ZodLiteral<string>;
|
|
639
|
+
id: z.ZodString;
|
|
640
|
+
attributes: z.ZodObject<{
|
|
641
|
+
bankName: z.ZodString;
|
|
642
|
+
accountNumber: z.ZodString;
|
|
643
|
+
accountName: z.ZodString;
|
|
644
|
+
isDefault: z.ZodDefault<z.ZodBoolean>;
|
|
645
|
+
} & {
|
|
646
|
+
createdAt: z.ZodString;
|
|
647
|
+
updatedAt: z.ZodString;
|
|
648
|
+
}, "strip", z.ZodTypeAny, {
|
|
649
|
+
createdAt: string;
|
|
650
|
+
updatedAt: string;
|
|
651
|
+
isDefault: boolean;
|
|
652
|
+
bankName: string;
|
|
653
|
+
accountNumber: string;
|
|
654
|
+
accountName: string;
|
|
655
|
+
}, {
|
|
656
|
+
createdAt: string;
|
|
657
|
+
updatedAt: string;
|
|
658
|
+
bankName: string;
|
|
659
|
+
accountNumber: string;
|
|
660
|
+
accountName: string;
|
|
661
|
+
isDefault?: boolean | undefined;
|
|
662
|
+
}>;
|
|
663
|
+
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
664
|
+
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
665
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
666
|
+
}, "strip", z.ZodTypeAny, {
|
|
667
|
+
type: string;
|
|
668
|
+
id: string;
|
|
669
|
+
attributes: {
|
|
670
|
+
createdAt: string;
|
|
671
|
+
updatedAt: string;
|
|
672
|
+
isDefault: boolean;
|
|
673
|
+
bankName: string;
|
|
674
|
+
accountNumber: string;
|
|
675
|
+
accountName: string;
|
|
676
|
+
};
|
|
677
|
+
relationships?: Record<string, unknown> | undefined;
|
|
678
|
+
links?: Record<string, string> | undefined;
|
|
679
|
+
meta?: Record<string, unknown> | undefined;
|
|
680
|
+
}, {
|
|
681
|
+
type: string;
|
|
682
|
+
id: string;
|
|
683
|
+
attributes: {
|
|
684
|
+
createdAt: string;
|
|
685
|
+
updatedAt: string;
|
|
686
|
+
bankName: string;
|
|
687
|
+
accountNumber: string;
|
|
688
|
+
accountName: string;
|
|
689
|
+
isDefault?: boolean | undefined;
|
|
690
|
+
};
|
|
691
|
+
relationships?: Record<string, unknown> | undefined;
|
|
692
|
+
links?: Record<string, string> | undefined;
|
|
693
|
+
meta?: Record<string, unknown> | undefined;
|
|
694
|
+
}>;
|
|
695
|
+
export declare const bankAccountResponseSchema: z.ZodObject<{
|
|
696
|
+
data: z.ZodObject<{
|
|
697
|
+
type: z.ZodLiteral<string>;
|
|
698
|
+
id: z.ZodString;
|
|
699
|
+
attributes: z.ZodObject<{
|
|
700
|
+
bankName: z.ZodString;
|
|
701
|
+
accountNumber: z.ZodString;
|
|
702
|
+
accountName: z.ZodString;
|
|
703
|
+
isDefault: z.ZodDefault<z.ZodBoolean>;
|
|
704
|
+
} & {
|
|
705
|
+
createdAt: z.ZodString;
|
|
706
|
+
updatedAt: z.ZodString;
|
|
707
|
+
}, "strip", z.ZodTypeAny, {
|
|
708
|
+
createdAt: string;
|
|
709
|
+
updatedAt: string;
|
|
710
|
+
isDefault: boolean;
|
|
711
|
+
bankName: string;
|
|
712
|
+
accountNumber: string;
|
|
713
|
+
accountName: string;
|
|
714
|
+
}, {
|
|
715
|
+
createdAt: string;
|
|
716
|
+
updatedAt: string;
|
|
717
|
+
bankName: string;
|
|
718
|
+
accountNumber: string;
|
|
719
|
+
accountName: string;
|
|
720
|
+
isDefault?: boolean | undefined;
|
|
721
|
+
}>;
|
|
722
|
+
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
723
|
+
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
724
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
725
|
+
}, "strip", z.ZodTypeAny, {
|
|
726
|
+
type: string;
|
|
727
|
+
id: string;
|
|
728
|
+
attributes: {
|
|
729
|
+
createdAt: string;
|
|
730
|
+
updatedAt: string;
|
|
731
|
+
isDefault: boolean;
|
|
732
|
+
bankName: string;
|
|
733
|
+
accountNumber: string;
|
|
734
|
+
accountName: string;
|
|
735
|
+
};
|
|
736
|
+
relationships?: Record<string, unknown> | undefined;
|
|
737
|
+
links?: Record<string, string> | undefined;
|
|
738
|
+
meta?: Record<string, unknown> | undefined;
|
|
739
|
+
}, {
|
|
740
|
+
type: string;
|
|
741
|
+
id: string;
|
|
742
|
+
attributes: {
|
|
743
|
+
createdAt: string;
|
|
744
|
+
updatedAt: string;
|
|
745
|
+
bankName: string;
|
|
746
|
+
accountNumber: string;
|
|
747
|
+
accountName: string;
|
|
748
|
+
isDefault?: boolean | undefined;
|
|
749
|
+
};
|
|
750
|
+
relationships?: Record<string, unknown> | undefined;
|
|
751
|
+
links?: Record<string, string> | undefined;
|
|
752
|
+
meta?: Record<string, unknown> | undefined;
|
|
753
|
+
}>;
|
|
754
|
+
included: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
755
|
+
type: z.ZodString;
|
|
756
|
+
id: z.ZodString;
|
|
757
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
758
|
+
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
759
|
+
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
760
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
761
|
+
}, "strip", z.ZodTypeAny, {
|
|
762
|
+
type: string;
|
|
763
|
+
id: string;
|
|
764
|
+
attributes?: Record<string, unknown> | undefined;
|
|
765
|
+
relationships?: Record<string, unknown> | undefined;
|
|
766
|
+
links?: Record<string, string> | undefined;
|
|
767
|
+
meta?: Record<string, unknown> | undefined;
|
|
768
|
+
}, {
|
|
769
|
+
type: string;
|
|
770
|
+
id: string;
|
|
771
|
+
attributes?: Record<string, unknown> | undefined;
|
|
772
|
+
relationships?: Record<string, unknown> | undefined;
|
|
773
|
+
links?: Record<string, string> | undefined;
|
|
774
|
+
meta?: Record<string, unknown> | undefined;
|
|
775
|
+
}>, "many">>;
|
|
776
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
777
|
+
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
778
|
+
}, "strip", z.ZodTypeAny, {
|
|
779
|
+
data: {
|
|
780
|
+
type: string;
|
|
781
|
+
id: string;
|
|
782
|
+
attributes: {
|
|
783
|
+
createdAt: string;
|
|
784
|
+
updatedAt: string;
|
|
785
|
+
isDefault: boolean;
|
|
786
|
+
bankName: string;
|
|
787
|
+
accountNumber: string;
|
|
788
|
+
accountName: string;
|
|
789
|
+
};
|
|
790
|
+
relationships?: Record<string, unknown> | undefined;
|
|
791
|
+
links?: Record<string, string> | undefined;
|
|
792
|
+
meta?: Record<string, unknown> | undefined;
|
|
793
|
+
};
|
|
794
|
+
links?: Record<string, string> | undefined;
|
|
795
|
+
meta?: Record<string, unknown> | undefined;
|
|
796
|
+
included?: {
|
|
797
|
+
type: string;
|
|
798
|
+
id: string;
|
|
799
|
+
attributes?: Record<string, unknown> | undefined;
|
|
800
|
+
relationships?: Record<string, unknown> | undefined;
|
|
801
|
+
links?: Record<string, string> | undefined;
|
|
802
|
+
meta?: Record<string, unknown> | undefined;
|
|
803
|
+
}[] | undefined;
|
|
804
|
+
}, {
|
|
805
|
+
data: {
|
|
806
|
+
type: string;
|
|
807
|
+
id: string;
|
|
808
|
+
attributes: {
|
|
809
|
+
createdAt: string;
|
|
810
|
+
updatedAt: string;
|
|
811
|
+
bankName: string;
|
|
812
|
+
accountNumber: string;
|
|
813
|
+
accountName: string;
|
|
814
|
+
isDefault?: boolean | undefined;
|
|
815
|
+
};
|
|
816
|
+
relationships?: Record<string, unknown> | undefined;
|
|
817
|
+
links?: Record<string, string> | undefined;
|
|
818
|
+
meta?: Record<string, unknown> | undefined;
|
|
819
|
+
};
|
|
820
|
+
links?: Record<string, string> | undefined;
|
|
821
|
+
meta?: Record<string, unknown> | undefined;
|
|
822
|
+
included?: {
|
|
823
|
+
type: string;
|
|
824
|
+
id: string;
|
|
825
|
+
attributes?: Record<string, unknown> | undefined;
|
|
826
|
+
relationships?: Record<string, unknown> | undefined;
|
|
827
|
+
links?: Record<string, string> | undefined;
|
|
828
|
+
meta?: Record<string, unknown> | undefined;
|
|
829
|
+
}[] | undefined;
|
|
830
|
+
}>;
|
|
831
|
+
export declare const bankAccountListResponseSchema: z.ZodObject<{
|
|
832
|
+
data: z.ZodArray<z.ZodObject<{
|
|
833
|
+
type: z.ZodLiteral<string>;
|
|
834
|
+
id: z.ZodString;
|
|
835
|
+
attributes: z.ZodObject<{
|
|
836
|
+
bankName: z.ZodString;
|
|
837
|
+
accountNumber: z.ZodString;
|
|
838
|
+
accountName: z.ZodString;
|
|
839
|
+
isDefault: z.ZodDefault<z.ZodBoolean>;
|
|
840
|
+
} & {
|
|
841
|
+
createdAt: z.ZodString;
|
|
842
|
+
updatedAt: z.ZodString;
|
|
843
|
+
}, "strip", z.ZodTypeAny, {
|
|
844
|
+
createdAt: string;
|
|
845
|
+
updatedAt: string;
|
|
846
|
+
isDefault: boolean;
|
|
847
|
+
bankName: string;
|
|
848
|
+
accountNumber: string;
|
|
849
|
+
accountName: string;
|
|
850
|
+
}, {
|
|
851
|
+
createdAt: string;
|
|
852
|
+
updatedAt: string;
|
|
853
|
+
bankName: string;
|
|
854
|
+
accountNumber: string;
|
|
855
|
+
accountName: string;
|
|
856
|
+
isDefault?: boolean | undefined;
|
|
857
|
+
}>;
|
|
858
|
+
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
859
|
+
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
860
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
861
|
+
}, "strip", z.ZodTypeAny, {
|
|
862
|
+
type: string;
|
|
863
|
+
id: string;
|
|
864
|
+
attributes: {
|
|
865
|
+
createdAt: string;
|
|
866
|
+
updatedAt: string;
|
|
867
|
+
isDefault: boolean;
|
|
868
|
+
bankName: string;
|
|
869
|
+
accountNumber: string;
|
|
870
|
+
accountName: string;
|
|
871
|
+
};
|
|
872
|
+
relationships?: Record<string, unknown> | undefined;
|
|
873
|
+
links?: Record<string, string> | undefined;
|
|
874
|
+
meta?: Record<string, unknown> | undefined;
|
|
875
|
+
}, {
|
|
876
|
+
type: string;
|
|
877
|
+
id: string;
|
|
878
|
+
attributes: {
|
|
879
|
+
createdAt: string;
|
|
880
|
+
updatedAt: string;
|
|
881
|
+
bankName: string;
|
|
882
|
+
accountNumber: string;
|
|
883
|
+
accountName: string;
|
|
884
|
+
isDefault?: boolean | undefined;
|
|
885
|
+
};
|
|
886
|
+
relationships?: Record<string, unknown> | undefined;
|
|
887
|
+
links?: Record<string, string> | undefined;
|
|
888
|
+
meta?: Record<string, unknown> | undefined;
|
|
889
|
+
}>, "many">;
|
|
890
|
+
included: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
891
|
+
type: z.ZodString;
|
|
892
|
+
id: z.ZodString;
|
|
893
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
894
|
+
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
895
|
+
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
896
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
897
|
+
}, "strip", z.ZodTypeAny, {
|
|
898
|
+
type: string;
|
|
899
|
+
id: string;
|
|
900
|
+
attributes?: Record<string, unknown> | undefined;
|
|
901
|
+
relationships?: Record<string, unknown> | undefined;
|
|
902
|
+
links?: Record<string, string> | undefined;
|
|
903
|
+
meta?: Record<string, unknown> | undefined;
|
|
904
|
+
}, {
|
|
905
|
+
type: string;
|
|
906
|
+
id: string;
|
|
907
|
+
attributes?: Record<string, unknown> | undefined;
|
|
908
|
+
relationships?: Record<string, unknown> | undefined;
|
|
909
|
+
links?: Record<string, string> | undefined;
|
|
910
|
+
meta?: Record<string, unknown> | undefined;
|
|
911
|
+
}>, "many">>;
|
|
912
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
913
|
+
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
914
|
+
}, "strip", z.ZodTypeAny, {
|
|
915
|
+
data: {
|
|
916
|
+
type: string;
|
|
917
|
+
id: string;
|
|
918
|
+
attributes: {
|
|
919
|
+
createdAt: string;
|
|
920
|
+
updatedAt: string;
|
|
921
|
+
isDefault: boolean;
|
|
922
|
+
bankName: string;
|
|
923
|
+
accountNumber: string;
|
|
924
|
+
accountName: string;
|
|
925
|
+
};
|
|
926
|
+
relationships?: Record<string, unknown> | undefined;
|
|
927
|
+
links?: Record<string, string> | undefined;
|
|
928
|
+
meta?: Record<string, unknown> | undefined;
|
|
929
|
+
}[];
|
|
930
|
+
links?: Record<string, string> | undefined;
|
|
931
|
+
meta?: Record<string, unknown> | undefined;
|
|
932
|
+
included?: {
|
|
933
|
+
type: string;
|
|
934
|
+
id: string;
|
|
935
|
+
attributes?: Record<string, unknown> | undefined;
|
|
936
|
+
relationships?: Record<string, unknown> | undefined;
|
|
937
|
+
links?: Record<string, string> | undefined;
|
|
938
|
+
meta?: Record<string, unknown> | undefined;
|
|
939
|
+
}[] | undefined;
|
|
940
|
+
}, {
|
|
941
|
+
data: {
|
|
942
|
+
type: string;
|
|
943
|
+
id: string;
|
|
944
|
+
attributes: {
|
|
945
|
+
createdAt: string;
|
|
946
|
+
updatedAt: string;
|
|
947
|
+
bankName: string;
|
|
948
|
+
accountNumber: string;
|
|
949
|
+
accountName: string;
|
|
950
|
+
isDefault?: boolean | undefined;
|
|
951
|
+
};
|
|
952
|
+
relationships?: Record<string, unknown> | undefined;
|
|
953
|
+
links?: Record<string, string> | undefined;
|
|
954
|
+
meta?: Record<string, unknown> | undefined;
|
|
955
|
+
}[];
|
|
956
|
+
links?: Record<string, string> | undefined;
|
|
957
|
+
meta?: Record<string, unknown> | undefined;
|
|
958
|
+
included?: {
|
|
959
|
+
type: string;
|
|
960
|
+
id: string;
|
|
961
|
+
attributes?: Record<string, unknown> | undefined;
|
|
962
|
+
relationships?: Record<string, unknown> | undefined;
|
|
963
|
+
links?: Record<string, string> | undefined;
|
|
964
|
+
meta?: Record<string, unknown> | undefined;
|
|
965
|
+
}[] | undefined;
|
|
966
|
+
}>;
|
|
967
|
+
export type CreateBankAccountAttributes = z.infer<typeof createBankAccountAttributesSchema>;
|
|
968
|
+
export type UpdateBankAccountAttributes = z.infer<typeof updateBankAccountAttributesSchema>;
|
|
969
|
+
export type CreateBankAccountInput = z.infer<typeof createBankAccountSchema>;
|
|
970
|
+
export type UpdateBankAccountInput = z.infer<typeof updateBankAccountSchema>;
|
|
971
|
+
export type BankAccountAttributes = z.infer<typeof bankAccountAttributesSchema>;
|
|
972
|
+
export type BankAccountResource = z.infer<typeof bankAccountResourceSchema>;
|
|
973
|
+
export type BankAccountResponse = z.infer<typeof bankAccountResponseSchema>;
|
|
974
|
+
export type BankAccountListResponse = z.infer<typeof bankAccountListResponseSchema>;
|
|
509
975
|
//# sourceMappingURL=organizations.schemas.d.ts.map
|
|
@@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AuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC"}
|
|
@@ -37,3 +37,43 @@ export const organizationResourceSchema = createJsonApiResourceSchema('organizat
|
|
|
37
37
|
// Organization responses (JSON:API format)
|
|
38
38
|
export const organizationResponseSchema = jsonApiSingleResponseSchema(organizationResourceSchema);
|
|
39
39
|
export const organizationListResponseSchema = jsonApiCollectionResponseSchema(organizationResourceSchema);
|
|
40
|
+
// ============================================================================
|
|
41
|
+
// Bank Account Schemas
|
|
42
|
+
// ============================================================================
|
|
43
|
+
// Bank account attributes schema
|
|
44
|
+
export const bankAccountAttributesSchema = z.object({
|
|
45
|
+
bankName: z.string().min(1).max(200),
|
|
46
|
+
accountNumber: z.string().min(1).max(50),
|
|
47
|
+
accountName: z.string().min(1).max(200),
|
|
48
|
+
isDefault: z.boolean().default(false),
|
|
49
|
+
}).merge(timestampsSchema);
|
|
50
|
+
// Bank account attributes for creation (input)
|
|
51
|
+
export const createBankAccountAttributesSchema = z.object({
|
|
52
|
+
bankName: z.string().min(1).max(200),
|
|
53
|
+
accountNumber: z.string().min(1).max(50),
|
|
54
|
+
accountName: z.string().min(1).max(200),
|
|
55
|
+
isDefault: z.boolean().optional().default(false),
|
|
56
|
+
});
|
|
57
|
+
// Bank account attributes for update (input)
|
|
58
|
+
export const updateBankAccountAttributesSchema = z.object({
|
|
59
|
+
bankName: z.string().min(1).max(200).optional(),
|
|
60
|
+
accountNumber: z.string().min(1).max(50).optional(),
|
|
61
|
+
accountName: z.string().min(1).max(200).optional(),
|
|
62
|
+
isDefault: z.boolean().optional(),
|
|
63
|
+
});
|
|
64
|
+
// Create bank account input (JSON:API format)
|
|
65
|
+
export const createBankAccountSchema = z.object({
|
|
66
|
+
type: z.literal('bank-accounts'),
|
|
67
|
+
attributes: createBankAccountAttributesSchema,
|
|
68
|
+
});
|
|
69
|
+
// Update bank account input (JSON:API format)
|
|
70
|
+
export const updateBankAccountSchema = z.object({
|
|
71
|
+
type: z.literal('bank-accounts'),
|
|
72
|
+
id: z.string().uuid(),
|
|
73
|
+
attributes: updateBankAccountAttributesSchema,
|
|
74
|
+
});
|
|
75
|
+
// Bank account resource (JSON:API resource object)
|
|
76
|
+
export const bankAccountResourceSchema = createJsonApiResourceSchema('bank-accounts', bankAccountAttributesSchema);
|
|
77
|
+
// Bank account responses (JSON:API format)
|
|
78
|
+
export const bankAccountResponseSchema = jsonApiSingleResponseSchema(bankAccountResourceSchema);
|
|
79
|
+
export const bankAccountListResponseSchema = jsonApiCollectionResponseSchema(bankAccountResourceSchema);
|