braid-ui 1.0.87 → 1.0.89
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.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +101 -7
- package/dist/index.d.ts +101 -7
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -736,27 +736,121 @@ interface IndividualsViewProps {
|
|
|
736
736
|
}
|
|
737
737
|
declare const IndividualsView: ({ title, filters, statusOptions, onFilterChange, onResetFilters, onApplyFilters, onCreateIndividual, table, }: IndividualsViewProps) => react_jsx_runtime.JSX.Element;
|
|
738
738
|
|
|
739
|
+
declare const individualProfileEditSchema: z.ZodObject<{
|
|
740
|
+
firstName: z.ZodOptional<z.ZodString>;
|
|
741
|
+
lastName: z.ZodOptional<z.ZodString>;
|
|
742
|
+
dateOfBirth: z.ZodOptional<z.ZodString>;
|
|
743
|
+
idType: z.ZodOptional<z.ZodString>;
|
|
744
|
+
idNumber: z.ZodOptional<z.ZodString>;
|
|
745
|
+
ssn: z.ZodOptional<z.ZodString>;
|
|
746
|
+
email: z.ZodOptional<z.ZodString>;
|
|
747
|
+
mobilePhone: z.ZodOptional<z.ZodString>;
|
|
748
|
+
streetAddress: z.ZodOptional<z.ZodString>;
|
|
749
|
+
apartment: z.ZodOptional<z.ZodString>;
|
|
750
|
+
city: z.ZodOptional<z.ZodString>;
|
|
751
|
+
state: z.ZodOptional<z.ZodString>;
|
|
752
|
+
postalCode: z.ZodOptional<z.ZodString>;
|
|
753
|
+
country: z.ZodOptional<z.ZodString>;
|
|
754
|
+
externalId: z.ZodOptional<z.ZodString>;
|
|
755
|
+
productId: z.ZodOptional<z.ZodString>;
|
|
756
|
+
}, "strip", z.ZodTypeAny, {
|
|
757
|
+
email?: string;
|
|
758
|
+
state?: string;
|
|
759
|
+
country?: string;
|
|
760
|
+
city?: string;
|
|
761
|
+
postalCode?: string;
|
|
762
|
+
dateOfBirth?: string;
|
|
763
|
+
idNumber?: string;
|
|
764
|
+
idType?: string;
|
|
765
|
+
productId?: string;
|
|
766
|
+
mobilePhone?: string;
|
|
767
|
+
ssn?: string;
|
|
768
|
+
apartment?: string;
|
|
769
|
+
firstName?: string;
|
|
770
|
+
lastName?: string;
|
|
771
|
+
streetAddress?: string;
|
|
772
|
+
externalId?: string;
|
|
773
|
+
}, {
|
|
774
|
+
email?: string;
|
|
775
|
+
state?: string;
|
|
776
|
+
country?: string;
|
|
777
|
+
city?: string;
|
|
778
|
+
postalCode?: string;
|
|
779
|
+
dateOfBirth?: string;
|
|
780
|
+
idNumber?: string;
|
|
781
|
+
idType?: string;
|
|
782
|
+
productId?: string;
|
|
783
|
+
mobilePhone?: string;
|
|
784
|
+
ssn?: string;
|
|
785
|
+
apartment?: string;
|
|
786
|
+
firstName?: string;
|
|
787
|
+
lastName?: string;
|
|
788
|
+
streetAddress?: string;
|
|
789
|
+
externalId?: string;
|
|
790
|
+
}>;
|
|
791
|
+
type IndividualProfileEdit = z.infer<typeof individualProfileEditSchema>;
|
|
792
|
+
|
|
793
|
+
declare const externalAccountSchema: z.ZodObject<{
|
|
794
|
+
routingNumber: z.ZodOptional<z.ZodString>;
|
|
795
|
+
accountNumber: z.ZodOptional<z.ZodString>;
|
|
796
|
+
bankName: z.ZodOptional<z.ZodString>;
|
|
797
|
+
bankAccountType: z.ZodOptional<z.ZodString>;
|
|
798
|
+
}, "strip", z.ZodTypeAny, {
|
|
799
|
+
accountNumber?: string;
|
|
800
|
+
routingNumber?: string;
|
|
801
|
+
bankName?: string;
|
|
802
|
+
bankAccountType?: string;
|
|
803
|
+
}, {
|
|
804
|
+
accountNumber?: string;
|
|
805
|
+
routingNumber?: string;
|
|
806
|
+
bankName?: string;
|
|
807
|
+
bankAccountType?: string;
|
|
808
|
+
}>;
|
|
809
|
+
type ExternalAccountFormData = z.infer<typeof externalAccountSchema>;
|
|
810
|
+
|
|
739
811
|
interface SelectOption$2 {
|
|
740
812
|
value: string;
|
|
741
813
|
label: string;
|
|
742
814
|
}
|
|
743
815
|
interface IndividualDetailViewProps {
|
|
744
|
-
|
|
745
|
-
|
|
816
|
+
individual: {
|
|
817
|
+
id: string;
|
|
818
|
+
firstName: string;
|
|
819
|
+
lastName: string;
|
|
820
|
+
cipStatus: any;
|
|
821
|
+
subType?: "UBO" | "Customer";
|
|
822
|
+
};
|
|
823
|
+
profile: IndividualProfileEdit;
|
|
824
|
+
onProfileSave?: (data: IndividualProfileEdit) => Promise<void> | void;
|
|
746
825
|
status: string;
|
|
747
826
|
statusOptions: SelectOption$2[];
|
|
748
827
|
onStatusChange: (newStatus: string) => void;
|
|
749
|
-
cipStatus: any;
|
|
750
|
-
subType?: "UBO" | "Customer";
|
|
751
828
|
latestOFAC?: OFACCheck;
|
|
752
829
|
onNavigateToOFAC?: (ofacCheckId?: string) => void;
|
|
753
830
|
onNavigateToAccounts: () => void;
|
|
754
831
|
onNavigateToCounterparty: () => void;
|
|
755
832
|
showTimeline?: boolean;
|
|
756
|
-
|
|
757
|
-
|
|
833
|
+
profileIsEditing: boolean;
|
|
834
|
+
onToggleProfileEdit: () => void;
|
|
835
|
+
onProductIdClick?: (productId: string) => void;
|
|
836
|
+
externalAccounts: Array<{
|
|
837
|
+
id: string;
|
|
838
|
+
routingNumber: string;
|
|
839
|
+
accountNumber: string;
|
|
840
|
+
bankName: string;
|
|
841
|
+
bankAccountType: string;
|
|
842
|
+
}>;
|
|
843
|
+
onAddExternalAccount: (data: ExternalAccountFormData) => Promise<void | boolean> | void | boolean;
|
|
844
|
+
onDeleteExternalAccount: (accountId: string) => Promise<void | boolean> | void | boolean;
|
|
845
|
+
documents: BusinessDocument[];
|
|
846
|
+
onDocumentUpload: (file: File, metadata: {
|
|
847
|
+
name: string;
|
|
848
|
+
description: string;
|
|
849
|
+
type: string;
|
|
850
|
+
}) => Promise<void>;
|
|
851
|
+
onDocumentDelete?: (documentId: string) => Promise<void | boolean> | void | boolean;
|
|
758
852
|
}
|
|
759
|
-
declare const IndividualDetailView: ({
|
|
853
|
+
declare const IndividualDetailView: ({ individual, profile, onProfileSave, status, statusOptions, onStatusChange, latestOFAC, onNavigateToOFAC, onNavigateToAccounts, onNavigateToCounterparty, showTimeline, profileIsEditing, onToggleProfileEdit, onProductIdClick, externalAccounts, onAddExternalAccount, onDeleteExternalAccount, documents, onDocumentUpload, onDocumentDelete, }: IndividualDetailViewProps) => react_jsx_runtime.JSX.Element;
|
|
760
854
|
|
|
761
855
|
type CreateIndividualViewForm = {
|
|
762
856
|
handleSubmit: (onValid: any) => (e?: any) => void;
|
package/dist/index.d.ts
CHANGED
|
@@ -736,27 +736,121 @@ interface IndividualsViewProps {
|
|
|
736
736
|
}
|
|
737
737
|
declare const IndividualsView: ({ title, filters, statusOptions, onFilterChange, onResetFilters, onApplyFilters, onCreateIndividual, table, }: IndividualsViewProps) => react_jsx_runtime.JSX.Element;
|
|
738
738
|
|
|
739
|
+
declare const individualProfileEditSchema: z.ZodObject<{
|
|
740
|
+
firstName: z.ZodOptional<z.ZodString>;
|
|
741
|
+
lastName: z.ZodOptional<z.ZodString>;
|
|
742
|
+
dateOfBirth: z.ZodOptional<z.ZodString>;
|
|
743
|
+
idType: z.ZodOptional<z.ZodString>;
|
|
744
|
+
idNumber: z.ZodOptional<z.ZodString>;
|
|
745
|
+
ssn: z.ZodOptional<z.ZodString>;
|
|
746
|
+
email: z.ZodOptional<z.ZodString>;
|
|
747
|
+
mobilePhone: z.ZodOptional<z.ZodString>;
|
|
748
|
+
streetAddress: z.ZodOptional<z.ZodString>;
|
|
749
|
+
apartment: z.ZodOptional<z.ZodString>;
|
|
750
|
+
city: z.ZodOptional<z.ZodString>;
|
|
751
|
+
state: z.ZodOptional<z.ZodString>;
|
|
752
|
+
postalCode: z.ZodOptional<z.ZodString>;
|
|
753
|
+
country: z.ZodOptional<z.ZodString>;
|
|
754
|
+
externalId: z.ZodOptional<z.ZodString>;
|
|
755
|
+
productId: z.ZodOptional<z.ZodString>;
|
|
756
|
+
}, "strip", z.ZodTypeAny, {
|
|
757
|
+
email?: string;
|
|
758
|
+
state?: string;
|
|
759
|
+
country?: string;
|
|
760
|
+
city?: string;
|
|
761
|
+
postalCode?: string;
|
|
762
|
+
dateOfBirth?: string;
|
|
763
|
+
idNumber?: string;
|
|
764
|
+
idType?: string;
|
|
765
|
+
productId?: string;
|
|
766
|
+
mobilePhone?: string;
|
|
767
|
+
ssn?: string;
|
|
768
|
+
apartment?: string;
|
|
769
|
+
firstName?: string;
|
|
770
|
+
lastName?: string;
|
|
771
|
+
streetAddress?: string;
|
|
772
|
+
externalId?: string;
|
|
773
|
+
}, {
|
|
774
|
+
email?: string;
|
|
775
|
+
state?: string;
|
|
776
|
+
country?: string;
|
|
777
|
+
city?: string;
|
|
778
|
+
postalCode?: string;
|
|
779
|
+
dateOfBirth?: string;
|
|
780
|
+
idNumber?: string;
|
|
781
|
+
idType?: string;
|
|
782
|
+
productId?: string;
|
|
783
|
+
mobilePhone?: string;
|
|
784
|
+
ssn?: string;
|
|
785
|
+
apartment?: string;
|
|
786
|
+
firstName?: string;
|
|
787
|
+
lastName?: string;
|
|
788
|
+
streetAddress?: string;
|
|
789
|
+
externalId?: string;
|
|
790
|
+
}>;
|
|
791
|
+
type IndividualProfileEdit = z.infer<typeof individualProfileEditSchema>;
|
|
792
|
+
|
|
793
|
+
declare const externalAccountSchema: z.ZodObject<{
|
|
794
|
+
routingNumber: z.ZodOptional<z.ZodString>;
|
|
795
|
+
accountNumber: z.ZodOptional<z.ZodString>;
|
|
796
|
+
bankName: z.ZodOptional<z.ZodString>;
|
|
797
|
+
bankAccountType: z.ZodOptional<z.ZodString>;
|
|
798
|
+
}, "strip", z.ZodTypeAny, {
|
|
799
|
+
accountNumber?: string;
|
|
800
|
+
routingNumber?: string;
|
|
801
|
+
bankName?: string;
|
|
802
|
+
bankAccountType?: string;
|
|
803
|
+
}, {
|
|
804
|
+
accountNumber?: string;
|
|
805
|
+
routingNumber?: string;
|
|
806
|
+
bankName?: string;
|
|
807
|
+
bankAccountType?: string;
|
|
808
|
+
}>;
|
|
809
|
+
type ExternalAccountFormData = z.infer<typeof externalAccountSchema>;
|
|
810
|
+
|
|
739
811
|
interface SelectOption$2 {
|
|
740
812
|
value: string;
|
|
741
813
|
label: string;
|
|
742
814
|
}
|
|
743
815
|
interface IndividualDetailViewProps {
|
|
744
|
-
|
|
745
|
-
|
|
816
|
+
individual: {
|
|
817
|
+
id: string;
|
|
818
|
+
firstName: string;
|
|
819
|
+
lastName: string;
|
|
820
|
+
cipStatus: any;
|
|
821
|
+
subType?: "UBO" | "Customer";
|
|
822
|
+
};
|
|
823
|
+
profile: IndividualProfileEdit;
|
|
824
|
+
onProfileSave?: (data: IndividualProfileEdit) => Promise<void> | void;
|
|
746
825
|
status: string;
|
|
747
826
|
statusOptions: SelectOption$2[];
|
|
748
827
|
onStatusChange: (newStatus: string) => void;
|
|
749
|
-
cipStatus: any;
|
|
750
|
-
subType?: "UBO" | "Customer";
|
|
751
828
|
latestOFAC?: OFACCheck;
|
|
752
829
|
onNavigateToOFAC?: (ofacCheckId?: string) => void;
|
|
753
830
|
onNavigateToAccounts: () => void;
|
|
754
831
|
onNavigateToCounterparty: () => void;
|
|
755
832
|
showTimeline?: boolean;
|
|
756
|
-
|
|
757
|
-
|
|
833
|
+
profileIsEditing: boolean;
|
|
834
|
+
onToggleProfileEdit: () => void;
|
|
835
|
+
onProductIdClick?: (productId: string) => void;
|
|
836
|
+
externalAccounts: Array<{
|
|
837
|
+
id: string;
|
|
838
|
+
routingNumber: string;
|
|
839
|
+
accountNumber: string;
|
|
840
|
+
bankName: string;
|
|
841
|
+
bankAccountType: string;
|
|
842
|
+
}>;
|
|
843
|
+
onAddExternalAccount: (data: ExternalAccountFormData) => Promise<void | boolean> | void | boolean;
|
|
844
|
+
onDeleteExternalAccount: (accountId: string) => Promise<void | boolean> | void | boolean;
|
|
845
|
+
documents: BusinessDocument[];
|
|
846
|
+
onDocumentUpload: (file: File, metadata: {
|
|
847
|
+
name: string;
|
|
848
|
+
description: string;
|
|
849
|
+
type: string;
|
|
850
|
+
}) => Promise<void>;
|
|
851
|
+
onDocumentDelete?: (documentId: string) => Promise<void | boolean> | void | boolean;
|
|
758
852
|
}
|
|
759
|
-
declare const IndividualDetailView: ({
|
|
853
|
+
declare const IndividualDetailView: ({ individual, profile, onProfileSave, status, statusOptions, onStatusChange, latestOFAC, onNavigateToOFAC, onNavigateToAccounts, onNavigateToCounterparty, showTimeline, profileIsEditing, onToggleProfileEdit, onProductIdClick, externalAccounts, onAddExternalAccount, onDeleteExternalAccount, documents, onDocumentUpload, onDocumentDelete, }: IndividualDetailViewProps) => react_jsx_runtime.JSX.Element;
|
|
760
854
|
|
|
761
855
|
type CreateIndividualViewForm = {
|
|
762
856
|
handleSubmit: (onValid: any) => (e?: any) => void;
|