braid-ui 1.0.133 → 1.0.134

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
@@ -142,16 +142,39 @@ interface BusinessesViewProps {
142
142
  }
143
143
  declare const BusinessesView: ({ filters, isLoading, table, onFilterChange, onResetFilters, onCreateBusiness }: BusinessesViewProps) => react_jsx_runtime.JSX.Element;
144
144
 
145
- interface TimelineEvent {
145
+ type FieldChange = {
146
+ field: string;
147
+ label: string;
148
+ from: string | null;
149
+ to: string | null;
150
+ };
151
+ type CIPStatusValue = "NOT_START" | "PASS" | "FAIL" | "IN_REVIEW" | "verified" | "not_start" | "pending" | "rejected";
152
+ type BusinessTimelineEvent = {
146
153
  id: string;
147
- action: string;
148
154
  timestamp: string;
149
- }
150
- interface BusinessTimelineCardProps {
151
- timeline: TimelineEvent[];
152
- className?: string;
153
- }
154
- declare const BusinessTimelineCard: ({ timeline, className }: BusinessTimelineCardProps) => react_jsx_runtime.JSX.Element;
155
+ performedBy: string;
156
+ type: "created";
157
+ } | {
158
+ id: string;
159
+ timestamp: string;
160
+ performedBy: string;
161
+ type: "status_change";
162
+ from: string;
163
+ to: string;
164
+ } | {
165
+ id: string;
166
+ timestamp: string;
167
+ performedBy: string;
168
+ type: "cip_status_change";
169
+ from: CIPStatusValue;
170
+ to: CIPStatusValue;
171
+ } | {
172
+ id: string;
173
+ timestamp: string;
174
+ performedBy: string;
175
+ type: "info_update";
176
+ changes: FieldChange[];
177
+ };
155
178
 
156
179
  declare const accountSchema: z.ZodObject<{
157
180
  accountName: z.ZodOptional<z.ZodString>;
@@ -285,7 +308,7 @@ interface BusinessDetailViewProps {
285
308
  latestOFAC?: OFACCheck;
286
309
  onNavigateToOFAC?: (ofacCheckId?: string) => void;
287
310
  showTimeline?: boolean;
288
- timeline?: TimelineEvent[];
311
+ timeline?: BusinessTimelineEvent[];
289
312
  businessUBOs: UBO[];
290
313
  businessDocuments: BusinessDocument[];
291
314
  businessAccounts: BusinessAccount$1[];
@@ -858,6 +881,13 @@ interface BusinessProfileCardProps {
858
881
  }
859
882
  declare const BusinessProfileCard: ({ data, businessId, identityVerification, onDataChange, isEditing, onToggleEdit, className, hideActions, onProductIdClick, onRevealIdNumber, isIdNumberRevealed, onToggleIdNumberVisibility, isLoadingIdNumber, revealedIdNumber, businessEntityTypeOptions }: BusinessProfileCardProps) => react_jsx_runtime.JSX.Element;
860
883
 
884
+ type TimelineEvent = BusinessTimelineEvent;
885
+ interface BusinessTimelineCardProps {
886
+ timeline: BusinessTimelineEvent[];
887
+ className?: string;
888
+ }
889
+ declare const BusinessTimelineCard: ({ timeline, className }: BusinessTimelineCardProps) => react_jsx_runtime.JSX.Element;
890
+
861
891
  interface ContactInfoCardProps {
862
892
  isEditing?: boolean;
863
893
  onToggleEdit?: () => void;
package/dist/index.d.ts CHANGED
@@ -142,16 +142,39 @@ interface BusinessesViewProps {
142
142
  }
143
143
  declare const BusinessesView: ({ filters, isLoading, table, onFilterChange, onResetFilters, onCreateBusiness }: BusinessesViewProps) => react_jsx_runtime.JSX.Element;
144
144
 
145
- interface TimelineEvent {
145
+ type FieldChange = {
146
+ field: string;
147
+ label: string;
148
+ from: string | null;
149
+ to: string | null;
150
+ };
151
+ type CIPStatusValue = "NOT_START" | "PASS" | "FAIL" | "IN_REVIEW" | "verified" | "not_start" | "pending" | "rejected";
152
+ type BusinessTimelineEvent = {
146
153
  id: string;
147
- action: string;
148
154
  timestamp: string;
149
- }
150
- interface BusinessTimelineCardProps {
151
- timeline: TimelineEvent[];
152
- className?: string;
153
- }
154
- declare const BusinessTimelineCard: ({ timeline, className }: BusinessTimelineCardProps) => react_jsx_runtime.JSX.Element;
155
+ performedBy: string;
156
+ type: "created";
157
+ } | {
158
+ id: string;
159
+ timestamp: string;
160
+ performedBy: string;
161
+ type: "status_change";
162
+ from: string;
163
+ to: string;
164
+ } | {
165
+ id: string;
166
+ timestamp: string;
167
+ performedBy: string;
168
+ type: "cip_status_change";
169
+ from: CIPStatusValue;
170
+ to: CIPStatusValue;
171
+ } | {
172
+ id: string;
173
+ timestamp: string;
174
+ performedBy: string;
175
+ type: "info_update";
176
+ changes: FieldChange[];
177
+ };
155
178
 
156
179
  declare const accountSchema: z.ZodObject<{
157
180
  accountName: z.ZodOptional<z.ZodString>;
@@ -285,7 +308,7 @@ interface BusinessDetailViewProps {
285
308
  latestOFAC?: OFACCheck;
286
309
  onNavigateToOFAC?: (ofacCheckId?: string) => void;
287
310
  showTimeline?: boolean;
288
- timeline?: TimelineEvent[];
311
+ timeline?: BusinessTimelineEvent[];
289
312
  businessUBOs: UBO[];
290
313
  businessDocuments: BusinessDocument[];
291
314
  businessAccounts: BusinessAccount$1[];
@@ -858,6 +881,13 @@ interface BusinessProfileCardProps {
858
881
  }
859
882
  declare const BusinessProfileCard: ({ data, businessId, identityVerification, onDataChange, isEditing, onToggleEdit, className, hideActions, onProductIdClick, onRevealIdNumber, isIdNumberRevealed, onToggleIdNumberVisibility, isLoadingIdNumber, revealedIdNumber, businessEntityTypeOptions }: BusinessProfileCardProps) => react_jsx_runtime.JSX.Element;
860
883
 
884
+ type TimelineEvent = BusinessTimelineEvent;
885
+ interface BusinessTimelineCardProps {
886
+ timeline: BusinessTimelineEvent[];
887
+ className?: string;
888
+ }
889
+ declare const BusinessTimelineCard: ({ timeline, className }: BusinessTimelineCardProps) => react_jsx_runtime.JSX.Element;
890
+
861
891
  interface ContactInfoCardProps {
862
892
  isEditing?: boolean;
863
893
  onToggleEdit?: () => void;