@cranberry-money/shared-types 8.17.17 → 8.17.19

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.
Files changed (46) hide show
  1. package/dist/api.d.ts +37 -0
  2. package/dist/api.d.ts.map +1 -0
  3. package/dist/api.js +4 -0
  4. package/dist/auth.d.ts +101 -0
  5. package/dist/auth.d.ts.map +1 -0
  6. package/dist/auth.js +5 -0
  7. package/dist/badge.d.ts +30 -0
  8. package/dist/badge.d.ts.map +1 -1
  9. package/dist/bank.d.ts +35 -0
  10. package/dist/bank.d.ts.map +1 -0
  11. package/dist/bank.js +4 -0
  12. package/dist/blueberry.d.ts +19 -117
  13. package/dist/blueberry.d.ts.map +1 -1
  14. package/dist/cash.d.ts +45 -0
  15. package/dist/cash.d.ts.map +1 -1
  16. package/dist/cash.js +0 -1
  17. package/dist/components.d.ts +52 -0
  18. package/dist/components.d.ts.map +1 -0
  19. package/dist/components.js +5 -0
  20. package/dist/dashboard.d.ts +1 -1
  21. package/dist/dashboard.d.ts.map +1 -1
  22. package/dist/document.d.ts +28 -0
  23. package/dist/document.d.ts.map +1 -0
  24. package/dist/document.js +4 -0
  25. package/dist/filters.d.ts +23 -7
  26. package/dist/filters.d.ts.map +1 -1
  27. package/dist/filters.js +0 -3
  28. package/dist/index.d.ts +13 -12
  29. package/dist/index.d.ts.map +1 -1
  30. package/dist/instrument-filters.d.ts +15 -16
  31. package/dist/instrument-filters.d.ts.map +1 -1
  32. package/dist/instruments.d.ts +118 -0
  33. package/dist/instruments.d.ts.map +1 -0
  34. package/dist/instruments.js +5 -0
  35. package/dist/query-params.d.ts +73 -0
  36. package/dist/query-params.d.ts.map +1 -1
  37. package/dist/query-params.js +5 -0
  38. package/dist/trade.d.ts +2 -1
  39. package/dist/trade.d.ts.map +1 -1
  40. package/dist/validation.d.ts +58 -0
  41. package/dist/validation.d.ts.map +1 -0
  42. package/dist/validation.js +5 -0
  43. package/dist/withdrawal.d.ts +94 -0
  44. package/dist/withdrawal.d.ts.map +1 -0
  45. package/dist/withdrawal.js +5 -0
  46. package/package.json +1 -1
package/dist/api.d.ts ADDED
@@ -0,0 +1,37 @@
1
+ /**
2
+ * API-related type definitions
3
+ */
4
+ /**
5
+ * Form validation errors returned by the API
6
+ * Maps field names to arrays of error messages
7
+ */
8
+ export interface FormErrors {
9
+ [key: string]: string[];
10
+ }
11
+ /**
12
+ * Pagination query parameters
13
+ * Used for paginated API endpoints
14
+ */
15
+ export interface PaginationParams {
16
+ page?: number;
17
+ page_size?: number;
18
+ }
19
+ /**
20
+ * Ordering/sorting query parameters
21
+ * Used for sortable API endpoints
22
+ */
23
+ export interface OrderingParams {
24
+ ordering?: string;
25
+ order_by?: string;
26
+ }
27
+ /**
28
+ * Generic paginated response wrapper
29
+ * Used for all paginated API endpoints
30
+ */
31
+ export interface PaginatedResponse<T> {
32
+ count: number;
33
+ next: string | null;
34
+ previous: string | null;
35
+ results: T[];
36
+ }
37
+ //# sourceMappingURL=api.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../src/api.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;GAGG;AACH,MAAM,WAAW,UAAU;IACzB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;CACzB;AAED;;;GAGG;AACH,MAAM,WAAW,gBAAgB;IAC/B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;GAGG;AACH,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;;GAGG;AACH,MAAM,WAAW,iBAAiB,CAAC,CAAC;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,OAAO,EAAE,CAAC,EAAE,CAAC;CACd"}
package/dist/api.js ADDED
@@ -0,0 +1,4 @@
1
+ /**
2
+ * API-related type definitions
3
+ */
4
+ export {};
package/dist/auth.d.ts ADDED
@@ -0,0 +1,101 @@
1
+ /**
2
+ * Authentication and token-related type definitions
3
+ * Shared across the MyPortfolio platform
4
+ */
5
+ /**
6
+ * Signin payload for user authentication
7
+ */
8
+ export interface SigninPayload {
9
+ email: string;
10
+ password: string;
11
+ }
12
+ /**
13
+ * Signup payload for user registration
14
+ */
15
+ export interface SignupPayload {
16
+ email: string;
17
+ password: string;
18
+ passwordConfirm: string;
19
+ }
20
+ /**
21
+ * Email verification payload
22
+ */
23
+ export interface EmailVerificationPayload {
24
+ token: string;
25
+ }
26
+ /**
27
+ * Token information with validation details
28
+ */
29
+ export interface TokenInfo {
30
+ token: string | null;
31
+ payload: Record<string, unknown>;
32
+ isValid: boolean;
33
+ remainingTime: string;
34
+ isExpired: boolean;
35
+ expirationTime: Date | null;
36
+ }
37
+ /**
38
+ * Device info structure
39
+ */
40
+ export interface DeviceInfo {
41
+ browser: string;
42
+ os: string;
43
+ }
44
+ /**
45
+ * Token refresh response structure
46
+ */
47
+ export interface TokenRefreshResponse {
48
+ status?: number;
49
+ data?: {
50
+ access?: string;
51
+ refresh?: string;
52
+ };
53
+ }
54
+ /**
55
+ * Token refresh error structure
56
+ */
57
+ export interface TokenRefreshError {
58
+ response?: {
59
+ data?: {
60
+ detail?: string;
61
+ message?: string;
62
+ };
63
+ };
64
+ message?: string;
65
+ }
66
+ /**
67
+ * Auto refresh handler interface
68
+ */
69
+ export interface AutoRefreshHandler {
70
+ start: () => void;
71
+ stop: () => void;
72
+ }
73
+ /**
74
+ * Token refresh payload
75
+ */
76
+ export interface TokenRefreshPayload {
77
+ refresh: string;
78
+ }
79
+ /**
80
+ * Token refresh data response
81
+ * The actual data returned from the token refresh endpoint
82
+ */
83
+ export interface TokenRefreshData {
84
+ access: string;
85
+ refresh: string;
86
+ }
87
+ /**
88
+ * Token refresh API error
89
+ * Error structure for token refresh failures
90
+ */
91
+ export interface TokenRefreshApiError {
92
+ response?: {
93
+ status: number;
94
+ data?: {
95
+ detail?: string;
96
+ message?: string;
97
+ };
98
+ };
99
+ message?: string;
100
+ }
101
+ //# sourceMappingURL=auth.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../src/auth.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,eAAe,EAAE,MAAM,CAAC;CACzB;AAED;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACjC,OAAO,EAAE,OAAO,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,OAAO,CAAC;IACnB,cAAc,EAAE,IAAI,GAAG,IAAI,CAAC;CAC7B;AAED;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,OAAO,EAAE,MAAM,CAAC;IAChB,EAAE,EAAE,MAAM,CAAC;CACZ;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE;QACL,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB,CAAC;CACH;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,EAAE;QACT,IAAI,CAAC,EAAE;YACL,MAAM,CAAC,EAAE,MAAM,CAAC;YAChB,OAAO,CAAC,EAAE,MAAM,CAAC;SAClB,CAAC;KACH,CAAC;IACF,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,IAAI,EAAE,MAAM,IAAI,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;;GAGG;AACH,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;;GAGG;AACH,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,EAAE;QACT,MAAM,EAAE,MAAM,CAAC;QACf,IAAI,CAAC,EAAE;YACL,MAAM,CAAC,EAAE,MAAM,CAAC;YAChB,OAAO,CAAC,EAAE,MAAM,CAAC;SAClB,CAAC;KACH,CAAC;IACF,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB"}
package/dist/auth.js ADDED
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Authentication and token-related type definitions
3
+ * Shared across the MyPortfolio platform
4
+ */
5
+ export {};
package/dist/badge.d.ts CHANGED
@@ -2,8 +2,38 @@
2
2
  * Badge-related type definitions
3
3
  * Shared across the MyPortfolio platform
4
4
  */
5
+ /**
6
+ * Badge variant type
7
+ */
8
+ export type BadgeVariant = 'default' | 'primary' | 'secondary' | 'success' | 'warning' | 'error' | 'info' | 'neutral';
9
+ /**
10
+ * Badge size type
11
+ */
12
+ export type BadgeSize = 'sm' | 'md' | 'lg';
13
+ /**
14
+ * Configuration options for creating a badge
15
+ */
16
+ export interface BadgeConfig {
17
+ /** The semantic variant of the badge */
18
+ variant: BadgeVariant;
19
+ /** Size of the badge (default: 'md') */
20
+ size?: BadgeSize;
21
+ /** Additional CSS classes to apply */
22
+ className?: string;
23
+ }
24
+ /**
25
+ * Badge style output with generated classes and accessibility attributes
26
+ */
5
27
  export interface BadgeStyle {
28
+ /** Combined CSS classes for the badge */
6
29
  className: string;
30
+ /** Accessibility label for screen readers */
7
31
  ariaLabel?: string;
8
32
  }
33
+ /**
34
+ * Extended badge style with display text for status badges
35
+ */
36
+ export interface StatusBadgeStyle extends BadgeStyle {
37
+ displayText: string;
38
+ }
9
39
  //# sourceMappingURL=badge.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"badge.d.ts","sourceRoot":"","sources":["../src/badge.ts"],"names":[],"mappings":"AAAA;;;GAGG;AASH,MAAM,WAAW,UAAU;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
1
+ {"version":3,"file":"badge.d.ts","sourceRoot":"","sources":["../src/badge.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,SAAS,GAAG,WAAW,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,CAAC;AAEtH;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAE3C;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,wCAAwC;IACxC,OAAO,EAAE,YAAY,CAAC;IACtB,wCAAwC;IACxC,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,sCAAsC;IACtC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,yCAAyC;IACzC,SAAS,EAAE,MAAM,CAAC;IAClB,6CAA6C;IAC7C,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,gBAAiB,SAAQ,UAAU;IAClD,WAAW,EAAE,MAAM,CAAC;CACrB"}
package/dist/bank.d.ts ADDED
@@ -0,0 +1,35 @@
1
+ /**
2
+ * Bank account types
3
+ */
4
+ import type { CurrencyCode } from './cash';
5
+ export interface BankAccount {
6
+ uuid: string;
7
+ account: string;
8
+ bankName: string;
9
+ branchName?: string;
10
+ accountNumber: string;
11
+ bsb: string;
12
+ accountName: string;
13
+ accountType: string;
14
+ currency: CurrencyCode;
15
+ swiftCode?: string;
16
+ iban?: string;
17
+ isVerified: boolean;
18
+ verificationDate?: string;
19
+ isPrimary: boolean;
20
+ isActive: boolean;
21
+ notes?: string;
22
+ createdAt: string;
23
+ updatedAt: string;
24
+ }
25
+ export interface BankAccountQueryParams {
26
+ account?: string;
27
+ bankName?: string;
28
+ accountType?: string;
29
+ currency?: CurrencyCode;
30
+ isVerified?: boolean;
31
+ isPrimary?: boolean;
32
+ isActive?: boolean;
33
+ ordering?: string;
34
+ }
35
+ //# sourceMappingURL=bank.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bank.d.ts","sourceRoot":"","sources":["../src/bank.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAG3C,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,GAAG,EAAE,MAAM,CAAC;IACZ,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,YAAY,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,OAAO,CAAC;IACpB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,SAAS,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB;AAGD,MAAM,WAAW,sBAAsB;IACrC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,YAAY,CAAC;IACxB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB"}
package/dist/bank.js ADDED
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Bank account types
3
+ */
4
+ export {};
@@ -2,18 +2,10 @@
2
2
  * Blueberry-specific type definitions
3
3
  * These interfaces are used in the Blueberry dashboard application
4
4
  */
5
- import type { Portfolio, AssetAllocation as ImportedAssetAllocation, AssetHolding, Instrument, Trade, TargetTrade, WithdrawalRequest, WithdrawalAssetLiquidation, DashboardPerformanceData, WithdrawalSummary, BaseInstrumentFilters, CashAccount, SignupPayload, FormErrors, InvestmentPreferencePayload, MessageFieldValidation, UserProfile, TaxResidency, InvestmentPreference, Country, BaseFilters, DateRangeFilters, PortfolioTemplate, TargetAssetAllocation, UserProfilePayload, NavigationItem, TradeActionFilters, CashAccountTransaction, BadgeStyle, SimpleTradeStatus, SigninPayload, TaxResidencyPayload, WithdrawalAssetLiquidationPayload, TransactionFilters as ImportedTransactionFilters, InvestmentPreferenceFormState as ImportedInvestmentPreferenceFormState, InvestmentPreferenceFormValidation as ImportedInvestmentPreferenceFormValidation, TemplateWithAllocations as ImportedTemplateWithAllocations, RebalancingTradesGenerationResponse, Account, StockExchange, AssetHoldingSnapshot, CashAccountTransactionQueryParams as ImportedCashAccountTransactionQueryParams } from './index';
5
+ import type { Portfolio, AssetAllocation as ImportedAssetAllocation, AssetHolding, Instrument, Trade, TargetTrade, WithdrawalRequest, WithdrawalAssetLiquidation, DashboardPerformanceData, WithdrawalSummary, BaseInstrumentFilters, CashAccount, SignupPayload, FormErrors, InvestmentPreferencePayload, BaseFormValidation, MessageFieldValidation, UserProfile, TaxResidency, InvestmentPreference, Country, BaseFilters, DateRangeFilters, NumericRangeFilters, PortfolioTemplate, TargetAssetAllocation, UserProfilePayload, NavigationItem, TradeActionFilters, BaseSummaryPanelProps, BaseTradingPanelProps, CashAccountTransaction, BadgeStyle, SimpleTradeStatus, SigninPayload, TaxResidencyPayload, ExtendedFieldValidation, DateFieldValidation, AddressFieldValidation, PhoneFieldValidation, BaseFieldValidation, BankAccount, BankAccountQueryParams, SimpleWithdrawalStatus, SimpleWithdrawalLiquidationStatus, WithdrawalAssetLiquidationPayload, UserDocument, GenerateDocumentPayload, DocumentQueryParams, TransactionFilters as ImportedTransactionFilters, InvestmentPreferenceFormState as ImportedInvestmentPreferenceFormState, InvestmentPreferenceFormValidation as ImportedInvestmentPreferenceFormValidation, TemplateWithAllocations as ImportedTemplateWithAllocations, RebalancingTradesGenerationResponse, Account, StockExchange, AssetHoldingSnapshot, CashAccountTransactionQueryParams as ImportedCashAccountTransactionQueryParams } from './index';
6
6
  import type { Sector } from './reference-data';
7
7
  import type { Industry } from './reference-data';
8
- import type { TimeRange, CashAccountTransactionType, CURRENCY_CODES } from '@cranberry-money/shared-constants';
9
- interface BaseFormValidation {
10
- isFormValid: boolean;
11
- }
12
- interface BaseFieldValidation {
13
- isValid: boolean;
14
- isEmpty: boolean;
15
- }
16
- type CurrencyCode = typeof CURRENCY_CODES.AUD | typeof CURRENCY_CODES.USD;
8
+ import type { TimeRange, CashAccountTransactionType } from '@cranberry-money/shared-constants';
17
9
  /**
18
10
  * Asset allocation interface for portfolio templates
19
11
  * Used for backward compatibility in portfolio template services
@@ -232,11 +224,6 @@ export interface PortfolioPerformanceFormProps {
232
224
  */
233
225
  export interface InvestmentPreferenceFormState extends InvestmentPreferencePayload {
234
226
  userProfileId: string;
235
- investmentHorizon: string;
236
- riskTolerance: string;
237
- investmentExperience: string;
238
- investmentAmount: number;
239
- sourceOfFunds: string[];
240
227
  }
241
228
  /**
242
229
  * Form validation for investment preferences
@@ -355,32 +342,11 @@ export interface ChartDataset {
355
342
  fill: boolean;
356
343
  tension: number;
357
344
  }
358
- interface NumericRangeFilters {
359
- minValue?: number;
360
- maxValue?: number;
361
- [key: string]: unknown;
362
- }
363
- interface BaseSummaryPanelProps<T> {
364
- readonly summary: T;
365
- readonly isLoading?: boolean;
366
- readonly error?: Error | null;
367
- readonly onRefresh?: () => void;
368
- }
369
- interface BaseTradingPanelProps<TItem, TFilters> {
370
- items: TItem[];
371
- dialogFilters: TFilters;
372
- clientSearchQuery: string;
373
- isLoading?: boolean;
374
- onSearch: (query: string) => void;
375
- onUpdateDialogFilters: (filters: Partial<TFilters>) => void;
376
- onApplyFiltersToServer: () => void;
377
- onClearAllFilters: () => void;
378
- }
379
345
  /**
380
346
  * Transaction filters for cash transactions page
381
347
  */
382
348
  export interface TransactionFilters extends BaseFilters, DateRangeFilters, NumericRangeFilters {
383
- transactionType?: CashAccountTransactionType;
349
+ transactionType?: any;
384
350
  }
385
351
  /**
386
352
  * Trade filters interface
@@ -560,7 +526,7 @@ export interface InstrumentData {
560
526
  color: string;
561
527
  isLoading: boolean;
562
528
  isError: boolean;
563
- historicalData: HistoricalDataPoint[];
529
+ historicalData: unknown[];
564
530
  }
565
531
  /**
566
532
  * Allocation bar props
@@ -612,7 +578,7 @@ export interface PortfolioSelectionFormProps {
612
578
  templateAllocations: Record<string, TemplateWithAllocations>;
613
579
  errors: FormErrors;
614
580
  isSubmitting: boolean;
615
- formValidation?: unknown;
581
+ formValidation?: any;
616
582
  onSelectTemplate: (templateUuid: string) => void;
617
583
  onViewDetails: (templateUuid: string | null) => void;
618
584
  onSubmit: () => void;
@@ -627,7 +593,7 @@ export interface UserProfileFormProps {
627
593
  errors: FormErrors;
628
594
  countries: Country[];
629
595
  isSubmitting: boolean;
630
- formValidation?: UserProfileFormValidation;
596
+ formValidation?: any;
631
597
  onChange: (e: React.ChangeEvent<HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement>) => void;
632
598
  onSubmit: (e: React.FormEvent) => void;
633
599
  onBack?: () => void;
@@ -644,8 +610,8 @@ export interface AssetsOverviewProps {
644
610
  /**
645
611
  * UseNavMenuReturn interface
646
612
  */
647
- export interface UseNavMenuReturn<TIcon = unknown> {
648
- navigationItems: NavigationItem<TIcon>[];
613
+ export interface UseNavMenuReturn {
614
+ navigationItems: NavigationItem<any>[];
649
615
  handleNavigation: (path: string) => void;
650
616
  handleSignOut: () => void;
651
617
  isSigningOut: boolean;
@@ -716,11 +682,6 @@ export interface SigninFormProps {
716
682
  export interface TaxResidencyForm extends TaxResidencyPayload {
717
683
  localUuid: string;
718
684
  backendUuid?: string;
719
- country: string;
720
- isPrimary: boolean;
721
- taxNumber: string;
722
- isExempted: boolean;
723
- exemptionReason: string | null;
724
685
  }
725
686
  /**
726
687
  * Tax residency card props
@@ -756,18 +717,6 @@ export interface PortfolioSelectionAllocationChartProps {
756
717
  /**
757
718
  * User profile form validation
758
719
  */
759
- interface ExtendedFieldValidation extends BaseFieldValidation {
760
- hasValidFormat: boolean;
761
- }
762
- interface DateFieldValidation extends BaseFieldValidation {
763
- isValidDate: boolean;
764
- }
765
- interface AddressFieldValidation extends BaseFieldValidation {
766
- isTooShort: boolean;
767
- }
768
- interface PhoneFieldValidation extends BaseFieldValidation {
769
- hasValidFormat: boolean;
770
- }
771
720
  export interface UserProfileFormValidation extends BaseFormValidation {
772
721
  fullName: ExtendedFieldValidation;
773
722
  dateOfBirth: DateFieldValidation;
@@ -788,82 +737,36 @@ export type BlueberryDocumentType = string;
788
737
  /**
789
738
  * Bank account with specific account type
790
739
  */
791
- interface BankAccount {
792
- uuid: string;
793
- account: string;
794
- bankName: string;
795
- branchName?: string;
796
- accountNumber: string;
797
- bsb: string;
798
- accountName: string;
799
- accountType: string;
800
- currency: CurrencyCode;
801
- swiftCode?: string;
802
- iban?: string;
803
- isVerified: boolean;
804
- verificationDate?: string;
805
- isPrimary: boolean;
806
- isActive: boolean;
807
- notes?: string;
808
- createdAt: string;
809
- updatedAt: string;
810
- }
811
- interface BankAccountQueryParams {
812
- account?: string;
813
- bankName?: string;
814
- accountType?: string;
815
- currency?: CurrencyCode;
816
- isVerified?: boolean;
817
- isPrimary?: boolean;
818
- isActive?: boolean;
819
- ordering?: string;
820
- }
821
740
  export interface BlueberryBankAccount extends Omit<BankAccount, 'accountType'> {
822
- accountType: unknown;
741
+ accountType: any;
823
742
  }
824
743
  /**
825
744
  * Bank account query params with specific account type
826
745
  */
827
746
  export interface BlueberryBankAccountQueryParams extends Omit<BankAccountQueryParams, 'accountType'> {
828
- accountType?: unknown;
747
+ accountType?: any;
829
748
  }
830
749
  /**
831
750
  * Withdrawal request with specific status type
832
751
  */
833
752
  export interface BlueberryWithdrawalRequest extends Omit<WithdrawalRequest, 'status'> {
834
- status: string;
753
+ status: SimpleWithdrawalStatus;
835
754
  }
836
755
  /**
837
756
  * Withdrawal asset liquidation with specific status type
838
757
  */
839
758
  export interface BlueberryWithdrawalAssetLiquidation extends Omit<WithdrawalAssetLiquidation, 'liquidationStatus'> {
840
- liquidationStatus: string;
759
+ liquidationStatus: SimpleWithdrawalLiquidationStatus;
841
760
  }
842
761
  /**
843
762
  * Withdrawal asset liquidation payload with specific status type
844
763
  */
845
764
  export interface BlueberryWithdrawalAssetLiquidationPayload extends Omit<WithdrawalAssetLiquidationPayload, 'liquidationStatus'> {
846
- liquidationStatus?: string;
765
+ liquidationStatus?: SimpleWithdrawalLiquidationStatus;
847
766
  }
848
767
  /**
849
768
  * User document with string document type
850
769
  */
851
- interface UserDocument {
852
- uuid: string;
853
- documentType: string;
854
- createdAt: string;
855
- status: string;
856
- downloadUrl?: string;
857
- }
858
- interface GenerateDocumentPayload {
859
- documentType: string;
860
- }
861
- interface DocumentQueryParams {
862
- documentType?: string;
863
- status?: string;
864
- page?: number;
865
- page_size?: number;
866
- }
867
770
  export interface BlueberryUserDocument extends Omit<UserDocument, 'documentType'> {
868
771
  documentType: string;
869
772
  }
@@ -948,13 +851,13 @@ export interface BlueberryPaginatedTaxResidencies {
948
851
  * Cash account transaction with specific transaction type
949
852
  */
950
853
  export interface BlueberryCashAccountTransaction extends Omit<CashAccountTransaction, 'transactionType'> {
951
- transactionType: unknown;
854
+ transactionType: any;
952
855
  }
953
856
  /**
954
857
  * Transaction filters with specific transaction type
955
858
  */
956
859
  export interface BlueberryTransactionFilters extends Omit<ImportedTransactionFilters, 'transactionType'> {
957
- transactionType?: unknown;
860
+ transactionType?: any;
958
861
  }
959
862
  /**
960
863
  * Target trade filters with extended properties
@@ -1047,7 +950,7 @@ export interface BlueberryPortfolioSelectionFormProps {
1047
950
  templateAllocations: Record<string, ImportedTemplateWithAllocations>;
1048
951
  errors: FormErrors;
1049
952
  isSubmitting: boolean;
1050
- formValidation?: unknown;
953
+ formValidation?: any;
1051
954
  onSelectTemplate: (templateUuid: string) => void;
1052
955
  onViewDetails: (templateUuid: string | null) => void;
1053
956
  onSubmit: () => void;
@@ -1058,7 +961,7 @@ export interface BlueberryPortfolioSelectionFormProps {
1058
961
  * Transaction filters for cash transactions page with specific transaction type
1059
962
  */
1060
963
  export interface BlueberryPageTransactionFilters extends Omit<ImportedTransactionFilters, 'transactionType'> {
1061
- transactionType?: CashAccountTransactionType;
964
+ transactionType?: any;
1062
965
  }
1063
966
  /**
1064
967
  * Target trade filters for target trades page with extended properties
@@ -1072,7 +975,7 @@ export interface BlueberryPageTargetTradeFilters extends TargetTradeFilters {
1072
975
  * Rebalancing trades generation response with specific error types
1073
976
  */
1074
977
  export interface BlueberryRebalancingTradesGenerationResponse extends Omit<RebalancingTradesGenerationResponse, 'errorType'> {
1075
- errorType?: unknown;
978
+ errorType?: any;
1076
979
  }
1077
980
  /**
1078
981
  * Paginated bank accounts response
@@ -1352,7 +1255,7 @@ export interface UseSignupFlowReturn {
1352
1255
  portfolio: Portfolio | null;
1353
1256
  isLoading: boolean;
1354
1257
  isSaving: boolean;
1355
- navigate: (to: string) => void;
1258
+ navigate: any;
1356
1259
  }
1357
1260
  /**
1358
1261
  * Instruments table props for signup asset allocation
@@ -1420,5 +1323,4 @@ export interface PortfolioPerformancePanelProps {
1420
1323
  onBackToPortfolioSelection: () => void;
1421
1324
  onBackToAssetAllocation: () => void;
1422
1325
  }
1423
- export {};
1424
1326
  //# sourceMappingURL=blueberry.d.ts.map