braid-ui 1.0.131 → 1.0.132

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.cts CHANGED
@@ -208,7 +208,7 @@ interface IdentityVerification {
208
208
 
209
209
  declare const businessProfileSchema: z.ZodObject<{
210
210
  name: z.ZodOptional<z.ZodString>;
211
- productId: z.ZodOptional<z.ZodNumber>;
211
+ productId: z.ZodOptional<z.ZodString>;
212
212
  businessIdType: z.ZodOptional<z.ZodString>;
213
213
  idNumber: z.ZodOptional<z.ZodString>;
214
214
  dba: z.ZodOptional<z.ZodString>;
@@ -274,7 +274,7 @@ interface BusinessAccount$1 {
274
274
  bankName: string;
275
275
  bankAccountType: string;
276
276
  }
277
- interface SelectOption$5 {
277
+ interface SelectOption$6 {
278
278
  value: string;
279
279
  label: string;
280
280
  }
@@ -291,8 +291,8 @@ interface BusinessDetailViewProps {
291
291
  businessAccounts: BusinessAccount$1[];
292
292
  currentStatus: string;
293
293
  isEditingProfile: boolean;
294
- statusOptions: SelectOption$5[];
295
- businessEntityTypeOptions: SelectOption$5[];
294
+ statusOptions: SelectOption$6[];
295
+ businessEntityTypeOptions: SelectOption$6[];
296
296
  onStatusChange: (newStatus: string, note?: string) => void | Promise<void>;
297
297
  onProfileDataChange: (profile: BusinessProfile) => void | Promise<void>;
298
298
  onToggleProfileEdit: () => void;
@@ -318,7 +318,7 @@ interface BusinessDetailViewProps {
318
318
  onToggleIdNumberVisibility?: () => void;
319
319
  isLoadingIdNumber?: boolean;
320
320
  revealedIdNumber?: string | null;
321
- onProductIdClick?: (productId: number) => void;
321
+ onProductIdClick?: (productId: string) => void;
322
322
  }
323
323
  declare const BusinessDetailView: ({ business, businessProfile, identityVerification, latestOFAC, onNavigateToOFAC, showTimeline, timeline, businessUBOs, businessDocuments, businessAccounts, currentStatus, isEditingProfile, statusOptions, businessEntityTypeOptions, onStatusChange, onProfileDataChange, onToggleProfileEdit, onNavigateToAccounts, onNavigateToCounterparty, onCreateCounterparty, onNavigateToTransactions, onAddExternalAccount, onDeleteExternalAccount, onAddAccount, onUBOClick, onAddUBO, onRemoveUBO, onDocumentUpload, onDocumentDelete, renderDocumentViewer, onRevealIdNumber, isIdNumberRevealed, onToggleIdNumberVisibility, isLoadingIdNumber, revealedIdNumber, onProductIdClick, }: BusinessDetailViewProps) => react_jsx_runtime.JSX.Element;
324
324
 
@@ -344,8 +344,12 @@ interface CreateBusinessViewProps {
344
344
  onSubmit: (data: BusinessProfile) => void;
345
345
  onCancel: () => void;
346
346
  isSubmitting?: boolean;
347
+ productOptions: {
348
+ value: string;
349
+ label: string;
350
+ }[];
347
351
  }
348
- declare const CreateBusinessView: ({ form, businessType, onBusinessTypeChange, onSubmit, onCancel, isSubmitting }: CreateBusinessViewProps) => react_jsx_runtime.JSX.Element;
352
+ declare const CreateBusinessView: ({ form, businessType, onBusinessTypeChange, onSubmit, onCancel, isSubmitting, productOptions }: CreateBusinessViewProps) => react_jsx_runtime.JSX.Element;
349
353
 
350
354
  interface CounterpartiesViewProps {
351
355
  table: React.ReactNode;
@@ -565,7 +569,7 @@ interface AccountFormValues {
565
569
  fundingAccountNumber?: string;
566
570
  sweepAccountNumber?: string;
567
571
  }
568
- interface SelectOption$4 {
572
+ interface SelectOption$5 {
569
573
  value: string;
570
574
  label: string;
571
575
  }
@@ -573,8 +577,8 @@ interface AccountDetailViewProps {
573
577
  account: BusinessAccount;
574
578
  currentStatus: string;
575
579
  onStatusChange: (status: string) => void;
576
- statusOptions: SelectOption$4[];
577
- canAcceptSweepOptions: SelectOption$4[];
580
+ statusOptions: SelectOption$5[];
581
+ canAcceptSweepOptions: SelectOption$5[];
578
582
  form: UseFormReturn<AccountFormValues> & {
579
583
  isEditing: boolean;
580
584
  handleToggleEdit: () => void;
@@ -685,7 +689,7 @@ declare const externalAccountSchema: z.ZodObject<{
685
689
  }, z.core.$strip>;
686
690
  type ExternalAccountFormData = z.infer<typeof externalAccountSchema>;
687
691
 
688
- interface SelectOption$3 {
692
+ interface SelectOption$4 {
689
693
  value: string;
690
694
  label: string;
691
695
  }
@@ -702,7 +706,7 @@ interface IndividualDetailViewProps {
702
706
  profile: IndividualProfileEdit;
703
707
  onProfileSave?: (data: IndividualProfileEdit) => Promise<void> | void;
704
708
  status: string;
705
- statusOptions: SelectOption$3[];
709
+ statusOptions: SelectOption$4[];
706
710
  onStatusChange: (newStatus: string, note?: string) => void | Promise<void>;
707
711
  latestOFAC?: OFACCheck;
708
712
  onNavigateToOFAC?: (ofacCheckId?: string) => void;
@@ -738,6 +742,10 @@ interface IndividualDetailViewProps {
738
742
  }
739
743
  declare const IndividualDetailView: ({ individual, profile, onProfileSave, status, statusOptions, onStatusChange, latestOFAC, onNavigateToOFAC, onNavigateToAccounts, onNavigateToCounterparty, onCreateCounterparty, onNavigateToTransactions, onNavigateToBusiness, showTimeline, timeline, profileIsEditing, onToggleProfileEdit, onProductIdClick, identityVerification, externalAccounts, onAddExternalAccount, onDeleteExternalAccount, onAddAccount, documents, onDocumentUpload, onDocumentDelete, renderDocumentViewer, }: IndividualDetailViewProps) => react_jsx_runtime.JSX.Element;
740
744
 
745
+ type SelectOption$3 = {
746
+ value: string;
747
+ label: string;
748
+ };
741
749
  type CreateIndividualViewForm = {
742
750
  handleSubmit: (onValid: any) => (e?: any) => void;
743
751
  handleSave: (data?: any) => Promise<void> | void;
@@ -749,8 +757,10 @@ interface CreateIndividualViewProps {
749
757
  onCancel: () => void;
750
758
  onSubmit: () => void;
751
759
  isSubmitting?: boolean;
760
+ idTypeOptions: SelectOption$3[];
761
+ productOptions: SelectOption$3[];
752
762
  }
753
- declare const CreateIndividualView: ({ form, onCancel, onSubmit, isSubmitting }: CreateIndividualViewProps) => react_jsx_runtime.JSX.Element;
763
+ declare const CreateIndividualView: ({ form, onCancel, onSubmit, isSubmitting, idTypeOptions, productOptions }: CreateIndividualViewProps) => react_jsx_runtime.JSX.Element;
754
764
 
755
765
  interface ACHBankCardProps {
756
766
  data?: Partial<ACHTransfer>;
@@ -838,7 +848,7 @@ interface BusinessProfileCardProps {
838
848
  onToggleEdit?: () => void;
839
849
  className?: string;
840
850
  hideActions?: boolean;
841
- onProductIdClick?: (productId: number) => void;
851
+ onProductIdClick?: (productId: string) => void;
842
852
  onRevealIdNumber?: () => Promise<string>;
843
853
  isIdNumberRevealed?: boolean;
844
854
  onToggleIdNumberVisibility?: () => void;
package/dist/index.d.ts CHANGED
@@ -208,7 +208,7 @@ interface IdentityVerification {
208
208
 
209
209
  declare const businessProfileSchema: z.ZodObject<{
210
210
  name: z.ZodOptional<z.ZodString>;
211
- productId: z.ZodOptional<z.ZodNumber>;
211
+ productId: z.ZodOptional<z.ZodString>;
212
212
  businessIdType: z.ZodOptional<z.ZodString>;
213
213
  idNumber: z.ZodOptional<z.ZodString>;
214
214
  dba: z.ZodOptional<z.ZodString>;
@@ -274,7 +274,7 @@ interface BusinessAccount$1 {
274
274
  bankName: string;
275
275
  bankAccountType: string;
276
276
  }
277
- interface SelectOption$5 {
277
+ interface SelectOption$6 {
278
278
  value: string;
279
279
  label: string;
280
280
  }
@@ -291,8 +291,8 @@ interface BusinessDetailViewProps {
291
291
  businessAccounts: BusinessAccount$1[];
292
292
  currentStatus: string;
293
293
  isEditingProfile: boolean;
294
- statusOptions: SelectOption$5[];
295
- businessEntityTypeOptions: SelectOption$5[];
294
+ statusOptions: SelectOption$6[];
295
+ businessEntityTypeOptions: SelectOption$6[];
296
296
  onStatusChange: (newStatus: string, note?: string) => void | Promise<void>;
297
297
  onProfileDataChange: (profile: BusinessProfile) => void | Promise<void>;
298
298
  onToggleProfileEdit: () => void;
@@ -318,7 +318,7 @@ interface BusinessDetailViewProps {
318
318
  onToggleIdNumberVisibility?: () => void;
319
319
  isLoadingIdNumber?: boolean;
320
320
  revealedIdNumber?: string | null;
321
- onProductIdClick?: (productId: number) => void;
321
+ onProductIdClick?: (productId: string) => void;
322
322
  }
323
323
  declare const BusinessDetailView: ({ business, businessProfile, identityVerification, latestOFAC, onNavigateToOFAC, showTimeline, timeline, businessUBOs, businessDocuments, businessAccounts, currentStatus, isEditingProfile, statusOptions, businessEntityTypeOptions, onStatusChange, onProfileDataChange, onToggleProfileEdit, onNavigateToAccounts, onNavigateToCounterparty, onCreateCounterparty, onNavigateToTransactions, onAddExternalAccount, onDeleteExternalAccount, onAddAccount, onUBOClick, onAddUBO, onRemoveUBO, onDocumentUpload, onDocumentDelete, renderDocumentViewer, onRevealIdNumber, isIdNumberRevealed, onToggleIdNumberVisibility, isLoadingIdNumber, revealedIdNumber, onProductIdClick, }: BusinessDetailViewProps) => react_jsx_runtime.JSX.Element;
324
324
 
@@ -344,8 +344,12 @@ interface CreateBusinessViewProps {
344
344
  onSubmit: (data: BusinessProfile) => void;
345
345
  onCancel: () => void;
346
346
  isSubmitting?: boolean;
347
+ productOptions: {
348
+ value: string;
349
+ label: string;
350
+ }[];
347
351
  }
348
- declare const CreateBusinessView: ({ form, businessType, onBusinessTypeChange, onSubmit, onCancel, isSubmitting }: CreateBusinessViewProps) => react_jsx_runtime.JSX.Element;
352
+ declare const CreateBusinessView: ({ form, businessType, onBusinessTypeChange, onSubmit, onCancel, isSubmitting, productOptions }: CreateBusinessViewProps) => react_jsx_runtime.JSX.Element;
349
353
 
350
354
  interface CounterpartiesViewProps {
351
355
  table: React.ReactNode;
@@ -565,7 +569,7 @@ interface AccountFormValues {
565
569
  fundingAccountNumber?: string;
566
570
  sweepAccountNumber?: string;
567
571
  }
568
- interface SelectOption$4 {
572
+ interface SelectOption$5 {
569
573
  value: string;
570
574
  label: string;
571
575
  }
@@ -573,8 +577,8 @@ interface AccountDetailViewProps {
573
577
  account: BusinessAccount;
574
578
  currentStatus: string;
575
579
  onStatusChange: (status: string) => void;
576
- statusOptions: SelectOption$4[];
577
- canAcceptSweepOptions: SelectOption$4[];
580
+ statusOptions: SelectOption$5[];
581
+ canAcceptSweepOptions: SelectOption$5[];
578
582
  form: UseFormReturn<AccountFormValues> & {
579
583
  isEditing: boolean;
580
584
  handleToggleEdit: () => void;
@@ -685,7 +689,7 @@ declare const externalAccountSchema: z.ZodObject<{
685
689
  }, z.core.$strip>;
686
690
  type ExternalAccountFormData = z.infer<typeof externalAccountSchema>;
687
691
 
688
- interface SelectOption$3 {
692
+ interface SelectOption$4 {
689
693
  value: string;
690
694
  label: string;
691
695
  }
@@ -702,7 +706,7 @@ interface IndividualDetailViewProps {
702
706
  profile: IndividualProfileEdit;
703
707
  onProfileSave?: (data: IndividualProfileEdit) => Promise<void> | void;
704
708
  status: string;
705
- statusOptions: SelectOption$3[];
709
+ statusOptions: SelectOption$4[];
706
710
  onStatusChange: (newStatus: string, note?: string) => void | Promise<void>;
707
711
  latestOFAC?: OFACCheck;
708
712
  onNavigateToOFAC?: (ofacCheckId?: string) => void;
@@ -738,6 +742,10 @@ interface IndividualDetailViewProps {
738
742
  }
739
743
  declare const IndividualDetailView: ({ individual, profile, onProfileSave, status, statusOptions, onStatusChange, latestOFAC, onNavigateToOFAC, onNavigateToAccounts, onNavigateToCounterparty, onCreateCounterparty, onNavigateToTransactions, onNavigateToBusiness, showTimeline, timeline, profileIsEditing, onToggleProfileEdit, onProductIdClick, identityVerification, externalAccounts, onAddExternalAccount, onDeleteExternalAccount, onAddAccount, documents, onDocumentUpload, onDocumentDelete, renderDocumentViewer, }: IndividualDetailViewProps) => react_jsx_runtime.JSX.Element;
740
744
 
745
+ type SelectOption$3 = {
746
+ value: string;
747
+ label: string;
748
+ };
741
749
  type CreateIndividualViewForm = {
742
750
  handleSubmit: (onValid: any) => (e?: any) => void;
743
751
  handleSave: (data?: any) => Promise<void> | void;
@@ -749,8 +757,10 @@ interface CreateIndividualViewProps {
749
757
  onCancel: () => void;
750
758
  onSubmit: () => void;
751
759
  isSubmitting?: boolean;
760
+ idTypeOptions: SelectOption$3[];
761
+ productOptions: SelectOption$3[];
752
762
  }
753
- declare const CreateIndividualView: ({ form, onCancel, onSubmit, isSubmitting }: CreateIndividualViewProps) => react_jsx_runtime.JSX.Element;
763
+ declare const CreateIndividualView: ({ form, onCancel, onSubmit, isSubmitting, idTypeOptions, productOptions }: CreateIndividualViewProps) => react_jsx_runtime.JSX.Element;
754
764
 
755
765
  interface ACHBankCardProps {
756
766
  data?: Partial<ACHTransfer>;
@@ -838,7 +848,7 @@ interface BusinessProfileCardProps {
838
848
  onToggleEdit?: () => void;
839
849
  className?: string;
840
850
  hideActions?: boolean;
841
- onProductIdClick?: (productId: number) => void;
851
+ onProductIdClick?: (productId: string) => void;
842
852
  onRevealIdNumber?: () => Promise<string>;
843
853
  isIdNumberRevealed?: boolean;
844
854
  onToggleIdNumberVisibility?: () => void;