@deepintel-ltd/farmpro-contracts 1.22.4 → 1.23.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -0
- package/dist/routes/categories.routes.d.ts +26 -26
- package/dist/routes/commodity-deals.routes.d.ts +217 -42
- package/dist/routes/commodity-deals.routes.d.ts.map +1 -1
- package/dist/routes/crop-profile.routes.d.ts +8 -8
- package/dist/routes/farm-enterprises.routes.d.ts +395 -0
- package/dist/routes/farm-enterprises.routes.d.ts.map +1 -1
- package/dist/routes/farm-enterprises.routes.js +14 -1
- package/dist/routes/farms.routes.d.ts +73 -20
- package/dist/routes/farms.routes.d.ts.map +1 -1
- package/dist/routes/fertigation.routes.d.ts +96 -96
- package/dist/routes/field-monitoring.routes.d.ts +2 -2
- package/dist/routes/finance.routes.d.ts +8 -8
- package/dist/routes/index.d.ts +9 -0
- package/dist/routes/index.d.ts.map +1 -1
- package/dist/routes/index.js +6 -0
- package/dist/routes/invoices.routes.d.ts +210 -60
- package/dist/routes/invoices.routes.d.ts.map +1 -1
- package/dist/routes/invoices.routes.js +4 -1
- package/dist/routes/monitoring-visualization.routes.d.ts +2 -2
- package/dist/routes/notifications.routes.d.ts +12 -12
- package/dist/routes/organization-capabilities.routes.d.ts +1671 -0
- package/dist/routes/organization-capabilities.routes.d.ts.map +1 -0
- package/dist/routes/organization-capabilities.routes.js +74 -0
- package/dist/routes/organizations.routes.d.ts +90 -47
- package/dist/routes/organizations.routes.d.ts.map +1 -1
- package/dist/routes/purchase-orders.routes.d.ts +2061 -0
- package/dist/routes/purchase-orders.routes.d.ts.map +1 -0
- package/dist/routes/purchase-orders.routes.js +55 -0
- package/dist/routes/suppliers.routes.d.ts +96 -96
- package/dist/routes/team-payments.routes.d.ts +105 -105
- package/dist/routes/team.routes.d.ts +125 -25
- package/dist/routes/team.routes.d.ts.map +1 -1
- package/dist/routes/trade-cash-events.routes.d.ts +3837 -0
- package/dist/routes/trade-cash-events.routes.d.ts.map +1 -0
- package/dist/routes/trade-cash-events.routes.js +126 -0
- package/dist/routes/waybills.routes.d.ts +229 -15
- package/dist/routes/waybills.routes.d.ts.map +1 -1
- package/dist/routes/waybills.routes.js +4 -1
- package/dist/schemas/categories.schemas.d.ts +21 -21
- package/dist/schemas/commodity-deals.schemas.d.ts +116 -18
- package/dist/schemas/commodity-deals.schemas.d.ts.map +1 -1
- package/dist/schemas/commodity-deals.schemas.js +7 -0
- package/dist/schemas/crop-profile.schemas.d.ts +12 -12
- package/dist/schemas/farm-enterprises.schemas.d.ts +185 -0
- package/dist/schemas/farm-enterprises.schemas.d.ts.map +1 -1
- package/dist/schemas/farm-enterprises.schemas.js +21 -0
- package/dist/schemas/farms.schemas.d.ts +121 -19
- package/dist/schemas/farms.schemas.d.ts.map +1 -1
- package/dist/schemas/farms.schemas.js +15 -1
- package/dist/schemas/fertigation.schemas.d.ts +36 -36
- package/dist/schemas/field-monitoring.schemas.d.ts +2 -2
- package/dist/schemas/finance.schemas.d.ts +8 -8
- package/dist/schemas/invoices.schemas.d.ts +153 -39
- package/dist/schemas/invoices.schemas.d.ts.map +1 -1
- package/dist/schemas/invoices.schemas.js +8 -2
- package/dist/schemas/notifications.schemas.d.ts +18 -18
- package/dist/schemas/organization-capabilities.schemas.d.ts +355 -0
- package/dist/schemas/organization-capabilities.schemas.d.ts.map +1 -0
- package/dist/schemas/organization-capabilities.schemas.js +19 -0
- package/dist/schemas/organizations.schemas.d.ts +105 -46
- package/dist/schemas/organizations.schemas.d.ts.map +1 -1
- package/dist/schemas/organizations.schemas.js +8 -1
- package/dist/schemas/purchase-orders.schemas.d.ts +1031 -0
- package/dist/schemas/purchase-orders.schemas.d.ts.map +1 -0
- package/dist/schemas/purchase-orders.schemas.js +49 -0
- package/dist/schemas/suppliers.schemas.d.ts +96 -96
- package/dist/schemas/team-payments.schemas.d.ts +87 -87
- package/dist/schemas/team.schemas.d.ts +137 -20
- package/dist/schemas/team.schemas.d.ts.map +1 -1
- package/dist/schemas/team.schemas.js +29 -1
- package/dist/schemas/trade-cash-events.schemas.d.ts +1524 -0
- package/dist/schemas/trade-cash-events.schemas.d.ts.map +1 -0
- package/dist/schemas/trade-cash-events.schemas.js +131 -0
- package/dist/schemas/waybills.schemas.d.ts +177 -9
- package/dist/schemas/waybills.schemas.d.ts.map +1 -1
- package/dist/schemas/waybills.schemas.js +9 -0
- package/package.json +1 -1
|
@@ -642,6 +642,7 @@ export type OrganizationAttributes = z.infer<typeof organizationAttributesSchema
|
|
|
642
642
|
export type OrganizationResource = z.infer<typeof organizationResourceSchema>;
|
|
643
643
|
export type OrganizationResponse = z.infer<typeof organizationResponseSchema>;
|
|
644
644
|
export type OrganizationListResponse = z.infer<typeof organizationListResponseSchema>;
|
|
645
|
+
export declare const organizationCapabilityGrantSchema: z.ZodEnum<["COMMODITY_TRADE"]>;
|
|
645
646
|
export declare const organizationContactAttributesSchema: z.ZodObject<{
|
|
646
647
|
organizationId: z.ZodString;
|
|
647
648
|
userId: z.ZodString;
|
|
@@ -649,55 +650,73 @@ export declare const organizationContactAttributesSchema: z.ZodObject<{
|
|
|
649
650
|
isPrimary: z.ZodBoolean;
|
|
650
651
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
651
652
|
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
653
|
+
/** Capability packs this contact may use (e.g. COMMODITY_TRADE). */
|
|
654
|
+
allowedCapabilities: z.ZodDefault<z.ZodArray<z.ZodEnum<["COMMODITY_TRADE"]>, "many">>;
|
|
652
655
|
} & {
|
|
653
656
|
createdAt: z.ZodString;
|
|
654
657
|
updatedAt: z.ZodString;
|
|
655
658
|
}, "strip", z.ZodTypeAny, {
|
|
656
659
|
createdAt: string;
|
|
657
660
|
updatedAt: string;
|
|
661
|
+
organizationId: string;
|
|
658
662
|
userId: string;
|
|
659
663
|
role: "admin" | "investor";
|
|
660
|
-
organizationId: string;
|
|
661
664
|
isPrimary: boolean;
|
|
665
|
+
allowedCapabilities: "COMMODITY_TRADE"[];
|
|
662
666
|
email?: string | null | undefined;
|
|
663
667
|
name?: string | null | undefined;
|
|
664
668
|
}, {
|
|
665
669
|
createdAt: string;
|
|
666
670
|
updatedAt: string;
|
|
671
|
+
organizationId: string;
|
|
667
672
|
userId: string;
|
|
668
673
|
role: "admin" | "investor";
|
|
669
|
-
organizationId: string;
|
|
670
674
|
isPrimary: boolean;
|
|
671
675
|
email?: string | null | undefined;
|
|
672
676
|
name?: string | null | undefined;
|
|
677
|
+
allowedCapabilities?: "COMMODITY_TRADE"[] | undefined;
|
|
673
678
|
}>;
|
|
674
679
|
export declare const createOrganizationContactAttributesSchema: z.ZodEffects<z.ZodObject<{
|
|
675
680
|
userId: z.ZodOptional<z.ZodString>;
|
|
676
681
|
email: z.ZodOptional<z.ZodString>;
|
|
677
682
|
role: z.ZodDefault<z.ZodOptional<z.ZodEnum<["admin", "investor"]>>>;
|
|
683
|
+
allowedCapabilities: z.ZodOptional<z.ZodArray<z.ZodEnum<["COMMODITY_TRADE"]>, "many">>;
|
|
678
684
|
}, "strip", z.ZodTypeAny, {
|
|
679
685
|
role: "admin" | "investor";
|
|
680
686
|
email?: string | undefined;
|
|
681
687
|
userId?: string | undefined;
|
|
688
|
+
allowedCapabilities?: "COMMODITY_TRADE"[] | undefined;
|
|
682
689
|
}, {
|
|
683
690
|
email?: string | undefined;
|
|
684
691
|
userId?: string | undefined;
|
|
685
692
|
role?: "admin" | "investor" | undefined;
|
|
693
|
+
allowedCapabilities?: "COMMODITY_TRADE"[] | undefined;
|
|
686
694
|
}>, {
|
|
687
695
|
role: "admin" | "investor";
|
|
688
696
|
email?: string | undefined;
|
|
689
697
|
userId?: string | undefined;
|
|
698
|
+
allowedCapabilities?: "COMMODITY_TRADE"[] | undefined;
|
|
690
699
|
}, {
|
|
691
700
|
email?: string | undefined;
|
|
692
701
|
userId?: string | undefined;
|
|
693
702
|
role?: "admin" | "investor" | undefined;
|
|
703
|
+
allowedCapabilities?: "COMMODITY_TRADE"[] | undefined;
|
|
694
704
|
}>;
|
|
695
|
-
export declare const updateOrganizationContactAttributesSchema: z.ZodObject<{
|
|
696
|
-
role: z.ZodEnum<["admin", "investor"]
|
|
705
|
+
export declare const updateOrganizationContactAttributesSchema: z.ZodEffects<z.ZodObject<{
|
|
706
|
+
role: z.ZodOptional<z.ZodEnum<["admin", "investor"]>>;
|
|
707
|
+
allowedCapabilities: z.ZodOptional<z.ZodArray<z.ZodEnum<["COMMODITY_TRADE"]>, "many">>;
|
|
697
708
|
}, "strip", z.ZodTypeAny, {
|
|
698
|
-
role
|
|
709
|
+
role?: "admin" | "investor" | undefined;
|
|
710
|
+
allowedCapabilities?: "COMMODITY_TRADE"[] | undefined;
|
|
699
711
|
}, {
|
|
700
|
-
role
|
|
712
|
+
role?: "admin" | "investor" | undefined;
|
|
713
|
+
allowedCapabilities?: "COMMODITY_TRADE"[] | undefined;
|
|
714
|
+
}>, {
|
|
715
|
+
role?: "admin" | "investor" | undefined;
|
|
716
|
+
allowedCapabilities?: "COMMODITY_TRADE"[] | undefined;
|
|
717
|
+
}, {
|
|
718
|
+
role?: "admin" | "investor" | undefined;
|
|
719
|
+
allowedCapabilities?: "COMMODITY_TRADE"[] | undefined;
|
|
701
720
|
}>;
|
|
702
721
|
export declare const createOrganizationContactSchema: z.ZodObject<{
|
|
703
722
|
type: z.ZodLiteral<"organization-contacts">;
|
|
@@ -705,22 +724,27 @@ export declare const createOrganizationContactSchema: z.ZodObject<{
|
|
|
705
724
|
userId: z.ZodOptional<z.ZodString>;
|
|
706
725
|
email: z.ZodOptional<z.ZodString>;
|
|
707
726
|
role: z.ZodDefault<z.ZodOptional<z.ZodEnum<["admin", "investor"]>>>;
|
|
727
|
+
allowedCapabilities: z.ZodOptional<z.ZodArray<z.ZodEnum<["COMMODITY_TRADE"]>, "many">>;
|
|
708
728
|
}, "strip", z.ZodTypeAny, {
|
|
709
729
|
role: "admin" | "investor";
|
|
710
730
|
email?: string | undefined;
|
|
711
731
|
userId?: string | undefined;
|
|
732
|
+
allowedCapabilities?: "COMMODITY_TRADE"[] | undefined;
|
|
712
733
|
}, {
|
|
713
734
|
email?: string | undefined;
|
|
714
735
|
userId?: string | undefined;
|
|
715
736
|
role?: "admin" | "investor" | undefined;
|
|
737
|
+
allowedCapabilities?: "COMMODITY_TRADE"[] | undefined;
|
|
716
738
|
}>, {
|
|
717
739
|
role: "admin" | "investor";
|
|
718
740
|
email?: string | undefined;
|
|
719
741
|
userId?: string | undefined;
|
|
742
|
+
allowedCapabilities?: "COMMODITY_TRADE"[] | undefined;
|
|
720
743
|
}, {
|
|
721
744
|
email?: string | undefined;
|
|
722
745
|
userId?: string | undefined;
|
|
723
746
|
role?: "admin" | "investor" | undefined;
|
|
747
|
+
allowedCapabilities?: "COMMODITY_TRADE"[] | undefined;
|
|
724
748
|
}>;
|
|
725
749
|
}, "strip", z.ZodTypeAny, {
|
|
726
750
|
type: "organization-contacts";
|
|
@@ -728,6 +752,7 @@ export declare const createOrganizationContactSchema: z.ZodObject<{
|
|
|
728
752
|
role: "admin" | "investor";
|
|
729
753
|
email?: string | undefined;
|
|
730
754
|
userId?: string | undefined;
|
|
755
|
+
allowedCapabilities?: "COMMODITY_TRADE"[] | undefined;
|
|
731
756
|
};
|
|
732
757
|
}, {
|
|
733
758
|
type: "organization-contacts";
|
|
@@ -735,28 +760,40 @@ export declare const createOrganizationContactSchema: z.ZodObject<{
|
|
|
735
760
|
email?: string | undefined;
|
|
736
761
|
userId?: string | undefined;
|
|
737
762
|
role?: "admin" | "investor" | undefined;
|
|
763
|
+
allowedCapabilities?: "COMMODITY_TRADE"[] | undefined;
|
|
738
764
|
};
|
|
739
765
|
}>;
|
|
740
766
|
export declare const updateOrganizationContactSchema: z.ZodObject<{
|
|
741
767
|
type: z.ZodLiteral<"organization-contacts">;
|
|
742
768
|
id: z.ZodOptional<z.ZodString>;
|
|
743
|
-
attributes: z.ZodObject<{
|
|
744
|
-
role: z.ZodEnum<["admin", "investor"]
|
|
769
|
+
attributes: z.ZodEffects<z.ZodObject<{
|
|
770
|
+
role: z.ZodOptional<z.ZodEnum<["admin", "investor"]>>;
|
|
771
|
+
allowedCapabilities: z.ZodOptional<z.ZodArray<z.ZodEnum<["COMMODITY_TRADE"]>, "many">>;
|
|
745
772
|
}, "strip", z.ZodTypeAny, {
|
|
746
|
-
role
|
|
773
|
+
role?: "admin" | "investor" | undefined;
|
|
774
|
+
allowedCapabilities?: "COMMODITY_TRADE"[] | undefined;
|
|
747
775
|
}, {
|
|
748
|
-
role
|
|
776
|
+
role?: "admin" | "investor" | undefined;
|
|
777
|
+
allowedCapabilities?: "COMMODITY_TRADE"[] | undefined;
|
|
778
|
+
}>, {
|
|
779
|
+
role?: "admin" | "investor" | undefined;
|
|
780
|
+
allowedCapabilities?: "COMMODITY_TRADE"[] | undefined;
|
|
781
|
+
}, {
|
|
782
|
+
role?: "admin" | "investor" | undefined;
|
|
783
|
+
allowedCapabilities?: "COMMODITY_TRADE"[] | undefined;
|
|
749
784
|
}>;
|
|
750
785
|
}, "strip", z.ZodTypeAny, {
|
|
751
786
|
type: "organization-contacts";
|
|
752
787
|
attributes: {
|
|
753
|
-
role
|
|
788
|
+
role?: "admin" | "investor" | undefined;
|
|
789
|
+
allowedCapabilities?: "COMMODITY_TRADE"[] | undefined;
|
|
754
790
|
};
|
|
755
791
|
id?: string | undefined;
|
|
756
792
|
}, {
|
|
757
793
|
type: "organization-contacts";
|
|
758
794
|
attributes: {
|
|
759
|
-
role
|
|
795
|
+
role?: "admin" | "investor" | undefined;
|
|
796
|
+
allowedCapabilities?: "COMMODITY_TRADE"[] | undefined;
|
|
760
797
|
};
|
|
761
798
|
id?: string | undefined;
|
|
762
799
|
}>;
|
|
@@ -770,27 +807,31 @@ export declare const organizationContactResourceSchema: z.ZodObject<{
|
|
|
770
807
|
isPrimary: z.ZodBoolean;
|
|
771
808
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
772
809
|
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
810
|
+
/** Capability packs this contact may use (e.g. COMMODITY_TRADE). */
|
|
811
|
+
allowedCapabilities: z.ZodDefault<z.ZodArray<z.ZodEnum<["COMMODITY_TRADE"]>, "many">>;
|
|
773
812
|
} & {
|
|
774
813
|
createdAt: z.ZodString;
|
|
775
814
|
updatedAt: z.ZodString;
|
|
776
815
|
}, "strip", z.ZodTypeAny, {
|
|
777
816
|
createdAt: string;
|
|
778
817
|
updatedAt: string;
|
|
818
|
+
organizationId: string;
|
|
779
819
|
userId: string;
|
|
780
820
|
role: "admin" | "investor";
|
|
781
|
-
organizationId: string;
|
|
782
821
|
isPrimary: boolean;
|
|
822
|
+
allowedCapabilities: "COMMODITY_TRADE"[];
|
|
783
823
|
email?: string | null | undefined;
|
|
784
824
|
name?: string | null | undefined;
|
|
785
825
|
}, {
|
|
786
826
|
createdAt: string;
|
|
787
827
|
updatedAt: string;
|
|
828
|
+
organizationId: string;
|
|
788
829
|
userId: string;
|
|
789
830
|
role: "admin" | "investor";
|
|
790
|
-
organizationId: string;
|
|
791
831
|
isPrimary: boolean;
|
|
792
832
|
email?: string | null | undefined;
|
|
793
833
|
name?: string | null | undefined;
|
|
834
|
+
allowedCapabilities?: "COMMODITY_TRADE"[] | undefined;
|
|
794
835
|
}>;
|
|
795
836
|
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
796
837
|
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -801,10 +842,11 @@ export declare const organizationContactResourceSchema: z.ZodObject<{
|
|
|
801
842
|
attributes: {
|
|
802
843
|
createdAt: string;
|
|
803
844
|
updatedAt: string;
|
|
845
|
+
organizationId: string;
|
|
804
846
|
userId: string;
|
|
805
847
|
role: "admin" | "investor";
|
|
806
|
-
organizationId: string;
|
|
807
848
|
isPrimary: boolean;
|
|
849
|
+
allowedCapabilities: "COMMODITY_TRADE"[];
|
|
808
850
|
email?: string | null | undefined;
|
|
809
851
|
name?: string | null | undefined;
|
|
810
852
|
};
|
|
@@ -817,12 +859,13 @@ export declare const organizationContactResourceSchema: z.ZodObject<{
|
|
|
817
859
|
attributes: {
|
|
818
860
|
createdAt: string;
|
|
819
861
|
updatedAt: string;
|
|
862
|
+
organizationId: string;
|
|
820
863
|
userId: string;
|
|
821
864
|
role: "admin" | "investor";
|
|
822
|
-
organizationId: string;
|
|
823
865
|
isPrimary: boolean;
|
|
824
866
|
email?: string | null | undefined;
|
|
825
867
|
name?: string | null | undefined;
|
|
868
|
+
allowedCapabilities?: "COMMODITY_TRADE"[] | undefined;
|
|
826
869
|
};
|
|
827
870
|
relationships?: Record<string, unknown> | undefined;
|
|
828
871
|
links?: Record<string, string> | undefined;
|
|
@@ -839,27 +882,31 @@ export declare const organizationContactResponseSchema: z.ZodObject<{
|
|
|
839
882
|
isPrimary: z.ZodBoolean;
|
|
840
883
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
841
884
|
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
885
|
+
/** Capability packs this contact may use (e.g. COMMODITY_TRADE). */
|
|
886
|
+
allowedCapabilities: z.ZodDefault<z.ZodArray<z.ZodEnum<["COMMODITY_TRADE"]>, "many">>;
|
|
842
887
|
} & {
|
|
843
888
|
createdAt: z.ZodString;
|
|
844
889
|
updatedAt: z.ZodString;
|
|
845
890
|
}, "strip", z.ZodTypeAny, {
|
|
846
891
|
createdAt: string;
|
|
847
892
|
updatedAt: string;
|
|
893
|
+
organizationId: string;
|
|
848
894
|
userId: string;
|
|
849
895
|
role: "admin" | "investor";
|
|
850
|
-
organizationId: string;
|
|
851
896
|
isPrimary: boolean;
|
|
897
|
+
allowedCapabilities: "COMMODITY_TRADE"[];
|
|
852
898
|
email?: string | null | undefined;
|
|
853
899
|
name?: string | null | undefined;
|
|
854
900
|
}, {
|
|
855
901
|
createdAt: string;
|
|
856
902
|
updatedAt: string;
|
|
903
|
+
organizationId: string;
|
|
857
904
|
userId: string;
|
|
858
905
|
role: "admin" | "investor";
|
|
859
|
-
organizationId: string;
|
|
860
906
|
isPrimary: boolean;
|
|
861
907
|
email?: string | null | undefined;
|
|
862
908
|
name?: string | null | undefined;
|
|
909
|
+
allowedCapabilities?: "COMMODITY_TRADE"[] | undefined;
|
|
863
910
|
}>;
|
|
864
911
|
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
865
912
|
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -870,10 +917,11 @@ export declare const organizationContactResponseSchema: z.ZodObject<{
|
|
|
870
917
|
attributes: {
|
|
871
918
|
createdAt: string;
|
|
872
919
|
updatedAt: string;
|
|
920
|
+
organizationId: string;
|
|
873
921
|
userId: string;
|
|
874
922
|
role: "admin" | "investor";
|
|
875
|
-
organizationId: string;
|
|
876
923
|
isPrimary: boolean;
|
|
924
|
+
allowedCapabilities: "COMMODITY_TRADE"[];
|
|
877
925
|
email?: string | null | undefined;
|
|
878
926
|
name?: string | null | undefined;
|
|
879
927
|
};
|
|
@@ -886,12 +934,13 @@ export declare const organizationContactResponseSchema: z.ZodObject<{
|
|
|
886
934
|
attributes: {
|
|
887
935
|
createdAt: string;
|
|
888
936
|
updatedAt: string;
|
|
937
|
+
organizationId: string;
|
|
889
938
|
userId: string;
|
|
890
939
|
role: "admin" | "investor";
|
|
891
|
-
organizationId: string;
|
|
892
940
|
isPrimary: boolean;
|
|
893
941
|
email?: string | null | undefined;
|
|
894
942
|
name?: string | null | undefined;
|
|
943
|
+
allowedCapabilities?: "COMMODITY_TRADE"[] | undefined;
|
|
895
944
|
};
|
|
896
945
|
relationships?: Record<string, unknown> | undefined;
|
|
897
946
|
links?: Record<string, string> | undefined;
|
|
@@ -928,10 +977,11 @@ export declare const organizationContactResponseSchema: z.ZodObject<{
|
|
|
928
977
|
attributes: {
|
|
929
978
|
createdAt: string;
|
|
930
979
|
updatedAt: string;
|
|
980
|
+
organizationId: string;
|
|
931
981
|
userId: string;
|
|
932
982
|
role: "admin" | "investor";
|
|
933
|
-
organizationId: string;
|
|
934
983
|
isPrimary: boolean;
|
|
984
|
+
allowedCapabilities: "COMMODITY_TRADE"[];
|
|
935
985
|
email?: string | null | undefined;
|
|
936
986
|
name?: string | null | undefined;
|
|
937
987
|
};
|
|
@@ -956,12 +1006,13 @@ export declare const organizationContactResponseSchema: z.ZodObject<{
|
|
|
956
1006
|
attributes: {
|
|
957
1007
|
createdAt: string;
|
|
958
1008
|
updatedAt: string;
|
|
1009
|
+
organizationId: string;
|
|
959
1010
|
userId: string;
|
|
960
1011
|
role: "admin" | "investor";
|
|
961
|
-
organizationId: string;
|
|
962
1012
|
isPrimary: boolean;
|
|
963
1013
|
email?: string | null | undefined;
|
|
964
1014
|
name?: string | null | undefined;
|
|
1015
|
+
allowedCapabilities?: "COMMODITY_TRADE"[] | undefined;
|
|
965
1016
|
};
|
|
966
1017
|
relationships?: Record<string, unknown> | undefined;
|
|
967
1018
|
links?: Record<string, string> | undefined;
|
|
@@ -989,27 +1040,31 @@ export declare const organizationContactListResponseSchema: z.ZodObject<{
|
|
|
989
1040
|
isPrimary: z.ZodBoolean;
|
|
990
1041
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
991
1042
|
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1043
|
+
/** Capability packs this contact may use (e.g. COMMODITY_TRADE). */
|
|
1044
|
+
allowedCapabilities: z.ZodDefault<z.ZodArray<z.ZodEnum<["COMMODITY_TRADE"]>, "many">>;
|
|
992
1045
|
} & {
|
|
993
1046
|
createdAt: z.ZodString;
|
|
994
1047
|
updatedAt: z.ZodString;
|
|
995
1048
|
}, "strip", z.ZodTypeAny, {
|
|
996
1049
|
createdAt: string;
|
|
997
1050
|
updatedAt: string;
|
|
1051
|
+
organizationId: string;
|
|
998
1052
|
userId: string;
|
|
999
1053
|
role: "admin" | "investor";
|
|
1000
|
-
organizationId: string;
|
|
1001
1054
|
isPrimary: boolean;
|
|
1055
|
+
allowedCapabilities: "COMMODITY_TRADE"[];
|
|
1002
1056
|
email?: string | null | undefined;
|
|
1003
1057
|
name?: string | null | undefined;
|
|
1004
1058
|
}, {
|
|
1005
1059
|
createdAt: string;
|
|
1006
1060
|
updatedAt: string;
|
|
1061
|
+
organizationId: string;
|
|
1007
1062
|
userId: string;
|
|
1008
1063
|
role: "admin" | "investor";
|
|
1009
|
-
organizationId: string;
|
|
1010
1064
|
isPrimary: boolean;
|
|
1011
1065
|
email?: string | null | undefined;
|
|
1012
1066
|
name?: string | null | undefined;
|
|
1067
|
+
allowedCapabilities?: "COMMODITY_TRADE"[] | undefined;
|
|
1013
1068
|
}>;
|
|
1014
1069
|
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1015
1070
|
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -1020,10 +1075,11 @@ export declare const organizationContactListResponseSchema: z.ZodObject<{
|
|
|
1020
1075
|
attributes: {
|
|
1021
1076
|
createdAt: string;
|
|
1022
1077
|
updatedAt: string;
|
|
1078
|
+
organizationId: string;
|
|
1023
1079
|
userId: string;
|
|
1024
1080
|
role: "admin" | "investor";
|
|
1025
|
-
organizationId: string;
|
|
1026
1081
|
isPrimary: boolean;
|
|
1082
|
+
allowedCapabilities: "COMMODITY_TRADE"[];
|
|
1027
1083
|
email?: string | null | undefined;
|
|
1028
1084
|
name?: string | null | undefined;
|
|
1029
1085
|
};
|
|
@@ -1036,12 +1092,13 @@ export declare const organizationContactListResponseSchema: z.ZodObject<{
|
|
|
1036
1092
|
attributes: {
|
|
1037
1093
|
createdAt: string;
|
|
1038
1094
|
updatedAt: string;
|
|
1095
|
+
organizationId: string;
|
|
1039
1096
|
userId: string;
|
|
1040
1097
|
role: "admin" | "investor";
|
|
1041
|
-
organizationId: string;
|
|
1042
1098
|
isPrimary: boolean;
|
|
1043
1099
|
email?: string | null | undefined;
|
|
1044
1100
|
name?: string | null | undefined;
|
|
1101
|
+
allowedCapabilities?: "COMMODITY_TRADE"[] | undefined;
|
|
1045
1102
|
};
|
|
1046
1103
|
relationships?: Record<string, unknown> | undefined;
|
|
1047
1104
|
links?: Record<string, string> | undefined;
|
|
@@ -1078,10 +1135,11 @@ export declare const organizationContactListResponseSchema: z.ZodObject<{
|
|
|
1078
1135
|
attributes: {
|
|
1079
1136
|
createdAt: string;
|
|
1080
1137
|
updatedAt: string;
|
|
1138
|
+
organizationId: string;
|
|
1081
1139
|
userId: string;
|
|
1082
1140
|
role: "admin" | "investor";
|
|
1083
|
-
organizationId: string;
|
|
1084
1141
|
isPrimary: boolean;
|
|
1142
|
+
allowedCapabilities: "COMMODITY_TRADE"[];
|
|
1085
1143
|
email?: string | null | undefined;
|
|
1086
1144
|
name?: string | null | undefined;
|
|
1087
1145
|
};
|
|
@@ -1106,12 +1164,13 @@ export declare const organizationContactListResponseSchema: z.ZodObject<{
|
|
|
1106
1164
|
attributes: {
|
|
1107
1165
|
createdAt: string;
|
|
1108
1166
|
updatedAt: string;
|
|
1167
|
+
organizationId: string;
|
|
1109
1168
|
userId: string;
|
|
1110
1169
|
role: "admin" | "investor";
|
|
1111
|
-
organizationId: string;
|
|
1112
1170
|
isPrimary: boolean;
|
|
1113
1171
|
email?: string | null | undefined;
|
|
1114
1172
|
name?: string | null | undefined;
|
|
1173
|
+
allowedCapabilities?: "COMMODITY_TRADE"[] | undefined;
|
|
1115
1174
|
};
|
|
1116
1175
|
relationships?: Record<string, unknown> | undefined;
|
|
1117
1176
|
links?: Record<string, string> | undefined;
|
|
@@ -1145,10 +1204,10 @@ export declare const bankAccountAttributesSchema: z.ZodObject<{
|
|
|
1145
1204
|
}, "strip", z.ZodTypeAny, {
|
|
1146
1205
|
createdAt: string;
|
|
1147
1206
|
updatedAt: string;
|
|
1148
|
-
isDefault: boolean;
|
|
1149
1207
|
bankName: string;
|
|
1150
1208
|
accountNumber: string;
|
|
1151
1209
|
accountName: string;
|
|
1210
|
+
isDefault: boolean;
|
|
1152
1211
|
}, {
|
|
1153
1212
|
createdAt: string;
|
|
1154
1213
|
updatedAt: string;
|
|
@@ -1163,10 +1222,10 @@ export declare const createBankAccountAttributesSchema: z.ZodObject<{
|
|
|
1163
1222
|
accountName: z.ZodString;
|
|
1164
1223
|
isDefault: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1165
1224
|
}, "strip", z.ZodTypeAny, {
|
|
1166
|
-
isDefault: boolean;
|
|
1167
1225
|
bankName: string;
|
|
1168
1226
|
accountNumber: string;
|
|
1169
1227
|
accountName: string;
|
|
1228
|
+
isDefault: boolean;
|
|
1170
1229
|
}, {
|
|
1171
1230
|
bankName: string;
|
|
1172
1231
|
accountNumber: string;
|
|
@@ -1179,15 +1238,15 @@ export declare const updateBankAccountAttributesSchema: z.ZodObject<{
|
|
|
1179
1238
|
accountName: z.ZodOptional<z.ZodString>;
|
|
1180
1239
|
isDefault: z.ZodOptional<z.ZodBoolean>;
|
|
1181
1240
|
}, "strip", z.ZodTypeAny, {
|
|
1182
|
-
isDefault?: boolean | undefined;
|
|
1183
1241
|
bankName?: string | undefined;
|
|
1184
1242
|
accountNumber?: string | undefined;
|
|
1185
1243
|
accountName?: string | undefined;
|
|
1186
|
-
}, {
|
|
1187
1244
|
isDefault?: boolean | undefined;
|
|
1245
|
+
}, {
|
|
1188
1246
|
bankName?: string | undefined;
|
|
1189
1247
|
accountNumber?: string | undefined;
|
|
1190
1248
|
accountName?: string | undefined;
|
|
1249
|
+
isDefault?: boolean | undefined;
|
|
1191
1250
|
}>;
|
|
1192
1251
|
export declare const createBankAccountSchema: z.ZodObject<{
|
|
1193
1252
|
type: z.ZodLiteral<"bank-accounts">;
|
|
@@ -1197,10 +1256,10 @@ export declare const createBankAccountSchema: z.ZodObject<{
|
|
|
1197
1256
|
accountName: z.ZodString;
|
|
1198
1257
|
isDefault: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1199
1258
|
}, "strip", z.ZodTypeAny, {
|
|
1200
|
-
isDefault: boolean;
|
|
1201
1259
|
bankName: string;
|
|
1202
1260
|
accountNumber: string;
|
|
1203
1261
|
accountName: string;
|
|
1262
|
+
isDefault: boolean;
|
|
1204
1263
|
}, {
|
|
1205
1264
|
bankName: string;
|
|
1206
1265
|
accountNumber: string;
|
|
@@ -1210,10 +1269,10 @@ export declare const createBankAccountSchema: z.ZodObject<{
|
|
|
1210
1269
|
}, "strip", z.ZodTypeAny, {
|
|
1211
1270
|
type: "bank-accounts";
|
|
1212
1271
|
attributes: {
|
|
1213
|
-
isDefault: boolean;
|
|
1214
1272
|
bankName: string;
|
|
1215
1273
|
accountNumber: string;
|
|
1216
1274
|
accountName: string;
|
|
1275
|
+
isDefault: boolean;
|
|
1217
1276
|
};
|
|
1218
1277
|
}, {
|
|
1219
1278
|
type: "bank-accounts";
|
|
@@ -1233,32 +1292,32 @@ export declare const updateBankAccountSchema: z.ZodObject<{
|
|
|
1233
1292
|
accountName: z.ZodOptional<z.ZodString>;
|
|
1234
1293
|
isDefault: z.ZodOptional<z.ZodBoolean>;
|
|
1235
1294
|
}, "strip", z.ZodTypeAny, {
|
|
1236
|
-
isDefault?: boolean | undefined;
|
|
1237
1295
|
bankName?: string | undefined;
|
|
1238
1296
|
accountNumber?: string | undefined;
|
|
1239
1297
|
accountName?: string | undefined;
|
|
1240
|
-
}, {
|
|
1241
1298
|
isDefault?: boolean | undefined;
|
|
1299
|
+
}, {
|
|
1242
1300
|
bankName?: string | undefined;
|
|
1243
1301
|
accountNumber?: string | undefined;
|
|
1244
1302
|
accountName?: string | undefined;
|
|
1303
|
+
isDefault?: boolean | undefined;
|
|
1245
1304
|
}>;
|
|
1246
1305
|
}, "strip", z.ZodTypeAny, {
|
|
1247
1306
|
type: "bank-accounts";
|
|
1248
1307
|
attributes: {
|
|
1249
|
-
isDefault?: boolean | undefined;
|
|
1250
1308
|
bankName?: string | undefined;
|
|
1251
1309
|
accountNumber?: string | undefined;
|
|
1252
1310
|
accountName?: string | undefined;
|
|
1311
|
+
isDefault?: boolean | undefined;
|
|
1253
1312
|
};
|
|
1254
1313
|
id?: string | undefined;
|
|
1255
1314
|
}, {
|
|
1256
1315
|
type: "bank-accounts";
|
|
1257
1316
|
attributes: {
|
|
1258
|
-
isDefault?: boolean | undefined;
|
|
1259
1317
|
bankName?: string | undefined;
|
|
1260
1318
|
accountNumber?: string | undefined;
|
|
1261
1319
|
accountName?: string | undefined;
|
|
1320
|
+
isDefault?: boolean | undefined;
|
|
1262
1321
|
};
|
|
1263
1322
|
id?: string | undefined;
|
|
1264
1323
|
}>;
|
|
@@ -1276,10 +1335,10 @@ export declare const bankAccountResourceSchema: z.ZodObject<{
|
|
|
1276
1335
|
}, "strip", z.ZodTypeAny, {
|
|
1277
1336
|
createdAt: string;
|
|
1278
1337
|
updatedAt: string;
|
|
1279
|
-
isDefault: boolean;
|
|
1280
1338
|
bankName: string;
|
|
1281
1339
|
accountNumber: string;
|
|
1282
1340
|
accountName: string;
|
|
1341
|
+
isDefault: boolean;
|
|
1283
1342
|
}, {
|
|
1284
1343
|
createdAt: string;
|
|
1285
1344
|
updatedAt: string;
|
|
@@ -1297,10 +1356,10 @@ export declare const bankAccountResourceSchema: z.ZodObject<{
|
|
|
1297
1356
|
attributes: {
|
|
1298
1357
|
createdAt: string;
|
|
1299
1358
|
updatedAt: string;
|
|
1300
|
-
isDefault: boolean;
|
|
1301
1359
|
bankName: string;
|
|
1302
1360
|
accountNumber: string;
|
|
1303
1361
|
accountName: string;
|
|
1362
|
+
isDefault: boolean;
|
|
1304
1363
|
};
|
|
1305
1364
|
relationships?: Record<string, unknown> | undefined;
|
|
1306
1365
|
links?: Record<string, string> | undefined;
|
|
@@ -1335,10 +1394,10 @@ export declare const bankAccountResponseSchema: z.ZodObject<{
|
|
|
1335
1394
|
}, "strip", z.ZodTypeAny, {
|
|
1336
1395
|
createdAt: string;
|
|
1337
1396
|
updatedAt: string;
|
|
1338
|
-
isDefault: boolean;
|
|
1339
1397
|
bankName: string;
|
|
1340
1398
|
accountNumber: string;
|
|
1341
1399
|
accountName: string;
|
|
1400
|
+
isDefault: boolean;
|
|
1342
1401
|
}, {
|
|
1343
1402
|
createdAt: string;
|
|
1344
1403
|
updatedAt: string;
|
|
@@ -1356,10 +1415,10 @@ export declare const bankAccountResponseSchema: z.ZodObject<{
|
|
|
1356
1415
|
attributes: {
|
|
1357
1416
|
createdAt: string;
|
|
1358
1417
|
updatedAt: string;
|
|
1359
|
-
isDefault: boolean;
|
|
1360
1418
|
bankName: string;
|
|
1361
1419
|
accountNumber: string;
|
|
1362
1420
|
accountName: string;
|
|
1421
|
+
isDefault: boolean;
|
|
1363
1422
|
};
|
|
1364
1423
|
relationships?: Record<string, unknown> | undefined;
|
|
1365
1424
|
links?: Record<string, string> | undefined;
|
|
@@ -1410,10 +1469,10 @@ export declare const bankAccountResponseSchema: z.ZodObject<{
|
|
|
1410
1469
|
attributes: {
|
|
1411
1470
|
createdAt: string;
|
|
1412
1471
|
updatedAt: string;
|
|
1413
|
-
isDefault: boolean;
|
|
1414
1472
|
bankName: string;
|
|
1415
1473
|
accountNumber: string;
|
|
1416
1474
|
accountName: string;
|
|
1475
|
+
isDefault: boolean;
|
|
1417
1476
|
};
|
|
1418
1477
|
relationships?: Record<string, unknown> | undefined;
|
|
1419
1478
|
links?: Record<string, string> | undefined;
|
|
@@ -1471,10 +1530,10 @@ export declare const bankAccountListResponseSchema: z.ZodObject<{
|
|
|
1471
1530
|
}, "strip", z.ZodTypeAny, {
|
|
1472
1531
|
createdAt: string;
|
|
1473
1532
|
updatedAt: string;
|
|
1474
|
-
isDefault: boolean;
|
|
1475
1533
|
bankName: string;
|
|
1476
1534
|
accountNumber: string;
|
|
1477
1535
|
accountName: string;
|
|
1536
|
+
isDefault: boolean;
|
|
1478
1537
|
}, {
|
|
1479
1538
|
createdAt: string;
|
|
1480
1539
|
updatedAt: string;
|
|
@@ -1492,10 +1551,10 @@ export declare const bankAccountListResponseSchema: z.ZodObject<{
|
|
|
1492
1551
|
attributes: {
|
|
1493
1552
|
createdAt: string;
|
|
1494
1553
|
updatedAt: string;
|
|
1495
|
-
isDefault: boolean;
|
|
1496
1554
|
bankName: string;
|
|
1497
1555
|
accountNumber: string;
|
|
1498
1556
|
accountName: string;
|
|
1557
|
+
isDefault: boolean;
|
|
1499
1558
|
};
|
|
1500
1559
|
relationships?: Record<string, unknown> | undefined;
|
|
1501
1560
|
links?: Record<string, string> | undefined;
|
|
@@ -1546,10 +1605,10 @@ export declare const bankAccountListResponseSchema: z.ZodObject<{
|
|
|
1546
1605
|
attributes: {
|
|
1547
1606
|
createdAt: string;
|
|
1548
1607
|
updatedAt: string;
|
|
1549
|
-
isDefault: boolean;
|
|
1550
1608
|
bankName: string;
|
|
1551
1609
|
accountNumber: string;
|
|
1552
1610
|
accountName: string;
|
|
1611
|
+
isDefault: boolean;
|
|
1553
1612
|
};
|
|
1554
1613
|
relationships?: Record<string, unknown> | undefined;
|
|
1555
1614
|
links?: Record<string, string> | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organizations.schemas.d.ts","sourceRoot":"","sources":["../../src/schemas/organizations.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB;;GAEG;AAGH,eAAO,MAAM,4BAA4B;;;;;;;;IAQvC,6DAA6D;;;;;;;;;;;;;;;;;;;;;;;;;;;EAErC,CAAC;AAE3B,sFAAsF;AACtF,eAAO,MAAM,gCAAgC,0CAAwC,CAAC;AAEtF,eAAO,MAAM,6BAA6B,kCAAgC,CAAC;AAG3E,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;;EAQ7C,CAAC;AAGH,eAAO,MAAM,kCAAkC;;;;;;;;;IAG3C;;;;;OAKG;;;;;;;;;;;;;;;;;;;;;;;EAGH,CAAC;AAGL,eAAO,MAAM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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA6D,CAAC;AAGxG,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAC;AAC5F,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAC;AAC5F,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAC7E,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAC7E,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAChF,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC5E,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC5E,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC"}
|
|
@@ -60,6 +60,7 @@ export const organizationListResponseSchema = jsonApiCollectionResponseSchema(or
|
|
|
60
60
|
// ============================================================================
|
|
61
61
|
// Organization Contact Schemas
|
|
62
62
|
// ============================================================================
|
|
63
|
+
export const organizationCapabilityGrantSchema = z.enum(['COMMODITY_TRADE']);
|
|
63
64
|
export const organizationContactAttributesSchema = z
|
|
64
65
|
.object({
|
|
65
66
|
organizationId: z.string().uuid(),
|
|
@@ -68,6 +69,8 @@ export const organizationContactAttributesSchema = z
|
|
|
68
69
|
isPrimary: z.boolean(),
|
|
69
70
|
name: z.string().nullable().optional(),
|
|
70
71
|
email: z.string().email().nullable().optional(),
|
|
72
|
+
/** Capability packs this contact may use (e.g. COMMODITY_TRADE). */
|
|
73
|
+
allowedCapabilities: z.array(organizationCapabilityGrantSchema).default([]),
|
|
71
74
|
})
|
|
72
75
|
.merge(timestampsSchema);
|
|
73
76
|
export const createOrganizationContactAttributesSchema = z
|
|
@@ -75,13 +78,17 @@ export const createOrganizationContactAttributesSchema = z
|
|
|
75
78
|
userId: z.string().uuid().optional(),
|
|
76
79
|
email: z.string().email().optional(),
|
|
77
80
|
role: organizationContactRoleSchema.optional().default('admin'),
|
|
81
|
+
allowedCapabilities: z.array(organizationCapabilityGrantSchema).optional(),
|
|
78
82
|
})
|
|
79
83
|
.refine((data) => Boolean(data.userId || data.email), {
|
|
80
84
|
message: 'Either userId or email is required',
|
|
81
85
|
path: ['userId'],
|
|
82
86
|
});
|
|
83
87
|
export const updateOrganizationContactAttributesSchema = z.object({
|
|
84
|
-
role: organizationContactRoleSchema,
|
|
88
|
+
role: organizationContactRoleSchema.optional(),
|
|
89
|
+
allowedCapabilities: z.array(organizationCapabilityGrantSchema).optional(),
|
|
90
|
+
}).refine((data) => data.role !== undefined || data.allowedCapabilities !== undefined, {
|
|
91
|
+
message: 'At least one of role or allowedCapabilities is required',
|
|
85
92
|
});
|
|
86
93
|
export const createOrganizationContactSchema = z.object({
|
|
87
94
|
type: z.literal('organization-contacts'),
|