@cranberry-money/shared-types 5.0.0 → 8.1.0
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/account.d.ts +22 -0
- package/dist/account.d.ts.map +1 -0
- package/dist/account.js +5 -0
- package/dist/api.d.ts +37 -0
- package/dist/api.d.ts.map +1 -0
- package/dist/api.js +4 -0
- package/dist/auth-state.d.ts +16 -0
- package/dist/auth-state.d.ts.map +1 -0
- package/dist/auth-state.js +5 -0
- package/dist/auth.d.ts +101 -0
- package/dist/auth.d.ts.map +1 -0
- package/dist/auth.js +5 -0
- package/dist/badge-status.d.ts +24 -0
- package/dist/badge-status.d.ts.map +1 -1
- package/dist/badge.d.ts +39 -0
- package/dist/badge.d.ts.map +1 -0
- package/dist/badge.js +5 -0
- package/dist/bank.d.ts +35 -0
- package/dist/bank.js +4 -0
- package/dist/cash.d.ts +45 -0
- package/dist/components.d.ts +52 -0
- package/dist/components.d.ts.map +1 -0
- package/dist/components.js +5 -0
- package/dist/dashboard.d.ts +18 -0
- package/dist/dashboard.d.ts.map +1 -0
- package/dist/dashboard.js +4 -0
- package/dist/document.d.ts +28 -0
- package/dist/document.d.ts.map +1 -0
- package/dist/document.js +4 -0
- package/dist/filters.d.ts +42 -0
- package/dist/holdings.d.ts +41 -0
- package/dist/index.d.ts +31 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -0
- package/dist/instrument-filters.d.ts +50 -0
- package/dist/instrument-filters.d.ts.map +1 -0
- package/dist/instrument-filters.js +5 -0
- package/dist/instruments.d.ts +118 -0
- package/dist/instruments.d.ts.map +1 -0
- package/dist/instruments.js +5 -0
- package/dist/investment.d.ts +27 -0
- package/dist/investment.d.ts.map +1 -0
- package/dist/investment.js +5 -0
- package/dist/navigation.d.ts +17 -0
- package/dist/navigation.d.ts.map +1 -0
- package/dist/navigation.js +5 -0
- package/dist/portfolio-template.d.ts +31 -0
- package/dist/portfolio-template.js +4 -0
- package/dist/portfolio.d.ts +40 -0
- package/dist/portfolio.d.ts.map +1 -0
- package/dist/portfolio.js +1 -0
- package/dist/query-params.d.ts +73 -0
- package/dist/query-params.js +5 -0
- package/dist/reference-data.d.ts +56 -0
- package/dist/reference-data.d.ts.map +1 -0
- package/dist/reference-data.js +4 -0
- package/dist/tax-residency.d.ts +20 -0
- package/dist/tax-residency.d.ts.map +1 -0
- package/dist/tax-residency.js +4 -0
- package/dist/trade.d.ts +74 -0
- package/dist/trade.d.ts.map +1 -1
- package/dist/user.d.ts +43 -0
- package/dist/user.d.ts.map +1 -0
- package/dist/user.js +5 -0
- package/dist/validation.d.ts +58 -0
- package/dist/validation.d.ts.map +1 -0
- package/dist/validation.js +5 -0
- package/dist/withdrawal.d.ts +94 -0
- package/dist/withdrawal.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Account-related type definitions
|
|
3
|
+
* Shared across the MyPortfolio platform
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Account entity
|
|
7
|
+
*/
|
|
8
|
+
export interface Account {
|
|
9
|
+
uuid: string;
|
|
10
|
+
accountNumber: string | null;
|
|
11
|
+
accountType: string;
|
|
12
|
+
activationDate: string | null;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Payload for creating or updating an account
|
|
16
|
+
*/
|
|
17
|
+
export interface AccountPayload {
|
|
18
|
+
accountType: string;
|
|
19
|
+
name: string;
|
|
20
|
+
userProfile: string;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=account.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../src/account.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,WAAW,OAAO;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;CAC/B;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;CACrB"}
|
package/dist/account.js
ADDED
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,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Authentication state type definitions
|
|
3
|
+
* Used by authentication hooks and components in frontend applications
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Represents the current authentication state in the application
|
|
7
|
+
*/
|
|
8
|
+
export interface AuthState {
|
|
9
|
+
readonly isAuthenticated: boolean;
|
|
10
|
+
readonly isLoading: boolean;
|
|
11
|
+
readonly user: {
|
|
12
|
+
readonly hasProfile: boolean;
|
|
13
|
+
readonly profileCompleted: boolean;
|
|
14
|
+
} | null;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=auth-state.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth-state.d.ts","sourceRoot":"","sources":["../src/auth-state.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB,QAAQ,CAAC,eAAe,EAAE,OAAO,CAAC;IAClC,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC;IAC5B,QAAQ,CAAC,IAAI,EAAE;QACb,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC;QAC7B,QAAQ,CAAC,gBAAgB,EAAE,OAAO,CAAC;KACpC,GAAG,IAAI,CAAC;CACV"}
|
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,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Badge Status Types - Status type definitions for badges
|
|
3
|
+
*
|
|
4
|
+
* This module provides TypeScript type definitions for various status types
|
|
5
|
+
* used in badge components throughout the MyPortfolio platform.
|
|
6
|
+
*/
|
|
7
|
+
import { TRADE_STATUS_EXECUTED, TRADE_STATUS_SETTLED, TRADE_STATUS_CANCELLED, TRADE_STATUS_FAILED, TARGET_TRADE_STATUS_PENDING, TARGET_TRADE_STATUS_APPROVED, TARGET_TRADE_STATUS_SUBMITTED, TARGET_TRADE_STATUS_CANCELLED, TARGET_TRADE_STATUS_EXPIRED, WITHDRAWAL_STATUS_PENDING_REVIEW, WITHDRAWAL_STATUS_APPROVED, WITHDRAWAL_STATUS_REJECTED, WITHDRAWAL_STATUS_PROCESSING, WITHDRAWAL_STATUS_AWAITING_LIQUIDATION, WITHDRAWAL_STATUS_LIQUIDATION_IN_PROGRESS, WITHDRAWAL_STATUS_COMPLETED, WITHDRAWAL_STATUS_CANCELLED, WITHDRAWAL_STATUS_FAILED, LIQUIDATION_STATUS_PENDING, LIQUIDATION_STATUS_TRADES_CREATED, LIQUIDATION_STATUS_EXECUTED, LIQUIDATION_STATUS_SETTLED, LIQUIDATION_STATUS_FAILED } from '@cranberry-money/shared-constants';
|
|
8
|
+
/**
|
|
9
|
+
* Trade status type encompassing regular and target trades
|
|
10
|
+
*/
|
|
11
|
+
export type TradeStatus = typeof TRADE_STATUS_EXECUTED | typeof TRADE_STATUS_SETTLED | typeof TRADE_STATUS_CANCELLED | typeof TRADE_STATUS_FAILED | typeof TARGET_TRADE_STATUS_PENDING | typeof TARGET_TRADE_STATUS_SUBMITTED | typeof TARGET_TRADE_STATUS_EXPIRED;
|
|
12
|
+
/**
|
|
13
|
+
* Withdrawal status type
|
|
14
|
+
*/
|
|
15
|
+
export type WithdrawalStatus = typeof WITHDRAWAL_STATUS_PENDING_REVIEW | typeof WITHDRAWAL_STATUS_APPROVED | typeof WITHDRAWAL_STATUS_REJECTED | typeof WITHDRAWAL_STATUS_PROCESSING | typeof WITHDRAWAL_STATUS_AWAITING_LIQUIDATION | typeof WITHDRAWAL_STATUS_LIQUIDATION_IN_PROGRESS | typeof WITHDRAWAL_STATUS_COMPLETED | typeof WITHDRAWAL_STATUS_CANCELLED | typeof WITHDRAWAL_STATUS_FAILED;
|
|
16
|
+
/**
|
|
17
|
+
* Liquidation status type
|
|
18
|
+
*/
|
|
19
|
+
export type LiquidationStatus = typeof LIQUIDATION_STATUS_PENDING | typeof LIQUIDATION_STATUS_TRADES_CREATED | typeof LIQUIDATION_STATUS_EXECUTED | typeof LIQUIDATION_STATUS_SETTLED | typeof LIQUIDATION_STATUS_FAILED;
|
|
20
|
+
/**
|
|
21
|
+
* Target trade status type
|
|
22
|
+
*/
|
|
23
|
+
export type TargetTradeStatus = typeof TARGET_TRADE_STATUS_PENDING | typeof TARGET_TRADE_STATUS_APPROVED | typeof TARGET_TRADE_STATUS_SUBMITTED | typeof TARGET_TRADE_STATUS_CANCELLED | typeof TARGET_TRADE_STATUS_EXPIRED;
|
|
24
|
+
//# sourceMappingURL=badge-status.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"badge-status.d.ts","sourceRoot":"","sources":["../src/badge-status.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"badge-status.d.ts","sourceRoot":"","sources":["../src/badge-status.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,qBAAqB,EACrB,oBAAoB,EACpB,sBAAsB,EACtB,mBAAmB,EACnB,2BAA2B,EAC3B,4BAA4B,EAC5B,6BAA6B,EAC7B,6BAA6B,EAC7B,2BAA2B,EAC3B,gCAAgC,EAChC,0BAA0B,EAC1B,0BAA0B,EAC1B,4BAA4B,EAC5B,sCAAsC,EACtC,yCAAyC,EACzC,2BAA2B,EAC3B,2BAA2B,EAC3B,wBAAwB,EACxB,0BAA0B,EAC1B,iCAAiC,EACjC,2BAA2B,EAC3B,0BAA0B,EAC1B,yBAAyB,EAC1B,MAAM,mCAAmC,CAAC;AAE3C;;GAEG;AACH,MAAM,MAAM,WAAW,GACnB,OAAO,qBAAqB,GAC5B,OAAO,oBAAoB,GAC3B,OAAO,sBAAsB,GAC7B,OAAO,mBAAmB,GAC1B,OAAO,2BAA2B,GAClC,OAAO,6BAA6B,GACpC,OAAO,2BAA2B,CAAC;AAEvC;;GAEG;AACH,MAAM,MAAM,gBAAgB,GACxB,OAAO,gCAAgC,GACvC,OAAO,0BAA0B,GACjC,OAAO,0BAA0B,GACjC,OAAO,4BAA4B,GACnC,OAAO,sCAAsC,GAC7C,OAAO,yCAAyC,GAChD,OAAO,2BAA2B,GAClC,OAAO,2BAA2B,GAClC,OAAO,wBAAwB,CAAC;AAEpC;;GAEG;AACH,MAAM,MAAM,iBAAiB,GACzB,OAAO,0BAA0B,GACjC,OAAO,iCAAiC,GACxC,OAAO,2BAA2B,GAClC,OAAO,0BAA0B,GACjC,OAAO,yBAAyB,CAAC;AAErC;;GAEG;AACH,MAAM,MAAM,iBAAiB,GACzB,OAAO,2BAA2B,GAClC,OAAO,4BAA4B,GACnC,OAAO,6BAA6B,GACpC,OAAO,6BAA6B,GACpC,OAAO,2BAA2B,CAAC"}
|
package/dist/badge.d.ts
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Badge-related type definitions
|
|
3
|
+
* Shared across the MyPortfolio platform
|
|
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
|
+
*/
|
|
27
|
+
export interface BadgeStyle {
|
|
28
|
+
/** Combined CSS classes for the badge */
|
|
29
|
+
className: string;
|
|
30
|
+
/** Accessibility label for screen readers */
|
|
31
|
+
ariaLabel?: string;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Extended badge style with display text for status badges
|
|
35
|
+
*/
|
|
36
|
+
export interface StatusBadgeStyle extends BadgeStyle {
|
|
37
|
+
displayText: string;
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=badge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
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/badge.js
ADDED
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
|
package/dist/bank.js
ADDED
package/dist/cash.d.ts
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cash account and transaction types
|
|
3
|
+
*/
|
|
4
|
+
import type { CURRENCY_CODES } from '@cranberry-money/shared-constants';
|
|
5
|
+
export type CurrencyCode = typeof CURRENCY_CODES.AUD | typeof CURRENCY_CODES.USD;
|
|
6
|
+
export interface CashAccount {
|
|
7
|
+
uuid: string;
|
|
8
|
+
account: string;
|
|
9
|
+
accountNumber: string;
|
|
10
|
+
bsb?: string;
|
|
11
|
+
payid?: string;
|
|
12
|
+
currency: CurrencyCode;
|
|
13
|
+
balance: string;
|
|
14
|
+
}
|
|
15
|
+
export interface CashAccountQueryParams {
|
|
16
|
+
account?: string;
|
|
17
|
+
currency?: CurrencyCode;
|
|
18
|
+
minBalance?: number;
|
|
19
|
+
maxBalance?: number;
|
|
20
|
+
ordering?: string;
|
|
21
|
+
}
|
|
22
|
+
export interface CashAccountTransaction {
|
|
23
|
+
uuid: string;
|
|
24
|
+
cashAccount: string;
|
|
25
|
+
amount: string;
|
|
26
|
+
date: string;
|
|
27
|
+
transactionType: string;
|
|
28
|
+
reference: string;
|
|
29
|
+
}
|
|
30
|
+
export interface CashAccountTransactionQueryParams {
|
|
31
|
+
cashAccount?: string;
|
|
32
|
+
transactionType?: string;
|
|
33
|
+
startDate?: string;
|
|
34
|
+
endDate?: string;
|
|
35
|
+
minAmount?: number;
|
|
36
|
+
maxAmount?: number;
|
|
37
|
+
orderBy?: string;
|
|
38
|
+
}
|
|
39
|
+
export interface TransactionSummary {
|
|
40
|
+
totalDeposits: number;
|
|
41
|
+
totalWithdrawals: number;
|
|
42
|
+
netAmount: number;
|
|
43
|
+
transactionCount: number;
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=cash.d.ts.map
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared component interfaces for UI patterns
|
|
3
|
+
* Addresses component prop duplications across frontend applications
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Base dialog/modal interfaces - standardizes dialog patterns
|
|
7
|
+
*/
|
|
8
|
+
export interface BaseDialogProps {
|
|
9
|
+
readonly isOpen: boolean;
|
|
10
|
+
readonly onClose: () => void;
|
|
11
|
+
}
|
|
12
|
+
export interface BaseModalProps extends BaseDialogProps {
|
|
13
|
+
readonly title?: string;
|
|
14
|
+
readonly closeOnBackdrop?: boolean;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Search field interfaces - addresses search field variations
|
|
18
|
+
*/
|
|
19
|
+
export interface BaseSearchFieldProps {
|
|
20
|
+
readonly onSearch: (query: string) => void;
|
|
21
|
+
readonly placeholder?: string;
|
|
22
|
+
}
|
|
23
|
+
export interface ControlledSearchFieldProps extends BaseSearchFieldProps {
|
|
24
|
+
readonly value: string;
|
|
25
|
+
readonly onClear?: () => void;
|
|
26
|
+
}
|
|
27
|
+
export interface UncontrolledSearchFieldProps extends BaseSearchFieldProps {
|
|
28
|
+
readonly initialValue?: string;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Summary panel interfaces - addresses similar summary patterns
|
|
32
|
+
*/
|
|
33
|
+
export interface BaseSummaryPanelProps<T> {
|
|
34
|
+
readonly summary: T;
|
|
35
|
+
readonly isLoading?: boolean;
|
|
36
|
+
readonly error?: Error | null;
|
|
37
|
+
readonly onRefresh?: () => void;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Generic loading state props
|
|
41
|
+
*/
|
|
42
|
+
export interface BaseLoadingProps {
|
|
43
|
+
readonly isLoading?: boolean;
|
|
44
|
+
readonly error?: Error | null;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Generic refresh functionality
|
|
48
|
+
*/
|
|
49
|
+
export interface BaseRefreshProps {
|
|
50
|
+
readonly onRefresh?: () => void;
|
|
51
|
+
}
|
|
52
|
+
//# sourceMappingURL=components.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../src/components.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,OAAO,EAAE,MAAM,IAAI,CAAC;CAC9B;AAED,MAAM,WAAW,cAAe,SAAQ,eAAe;IACrD,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,eAAe,CAAC,EAAE,OAAO,CAAC;CACpC;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;CAC/B;AAED,MAAM,WAAW,0BAA2B,SAAQ,oBAAoB;IACtE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CAC/B;AAED,MAAM,WAAW,4BAA6B,SAAQ,oBAAoB;IACxE,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;CAChC;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB,CAAC,CAAC;IACtC,QAAQ,CAAC,OAAO,EAAE,CAAC,CAAC;IACpB,QAAQ,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC;IAC7B,QAAQ,CAAC,KAAK,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC;IAC9B,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;CACjC;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC;IAC7B,QAAQ,CAAC,KAAK,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC;CAC/B;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;CACjC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dashboard business types
|
|
3
|
+
*/
|
|
4
|
+
export interface DashboardPerformanceData {
|
|
5
|
+
currentValue: number;
|
|
6
|
+
todayChange: number;
|
|
7
|
+
todayChangePercent: number;
|
|
8
|
+
totalReturn: number;
|
|
9
|
+
totalReturnPercent: number;
|
|
10
|
+
}
|
|
11
|
+
export interface WithdrawalSummary<T = any> {
|
|
12
|
+
pendingRequests: number;
|
|
13
|
+
pendingAmount: number;
|
|
14
|
+
scheduledLiquidations: number;
|
|
15
|
+
liquidationValue: number;
|
|
16
|
+
inProgressLiquidations: T[];
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=dashboard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dashboard.d.ts","sourceRoot":"","sources":["../src/dashboard.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,MAAM,WAAW,wBAAwB;IACvC,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,WAAW,EAAE,MAAM,CAAC;IACpB,kBAAkB,EAAE,MAAM,CAAC;CAC5B;AAID,MAAM,WAAW,iBAAiB,CAAC,CAAC,GAAG,GAAG;IACxC,eAAe,EAAE,MAAM,CAAC;IACxB,aAAa,EAAE,MAAM,CAAC;IACtB,qBAAqB,EAAE,MAAM,CAAC;IAC9B,gBAAgB,EAAE,MAAM,CAAC;IACzB,sBAAsB,EAAE,CAAC,EAAE,CAAC;CAC7B"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Document types
|
|
3
|
+
*/
|
|
4
|
+
export interface UserDocument {
|
|
5
|
+
uuid: string;
|
|
6
|
+
documentType: string;
|
|
7
|
+
createdAt: string;
|
|
8
|
+
status: string;
|
|
9
|
+
downloadUrl?: string;
|
|
10
|
+
}
|
|
11
|
+
export interface GenerateDocumentPayload {
|
|
12
|
+
documentType: string;
|
|
13
|
+
}
|
|
14
|
+
export interface GenerateDocumentResponse {
|
|
15
|
+
uuid: string;
|
|
16
|
+
}
|
|
17
|
+
export interface SignDocumentResponse {
|
|
18
|
+
message: string;
|
|
19
|
+
uuid: string;
|
|
20
|
+
signed_at: string;
|
|
21
|
+
}
|
|
22
|
+
export interface DocumentQueryParams {
|
|
23
|
+
documentType?: string;
|
|
24
|
+
status?: string;
|
|
25
|
+
page?: number;
|
|
26
|
+
page_size?: number;
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=document.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"document.d.ts","sourceRoot":"","sources":["../src/document.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAGD,MAAM,WAAW,uBAAuB;IACtC,YAAY,EAAE,MAAM,CAAC;CACtB;AAGD,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,MAAM,CAAC;CACd;AAGD,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;CACnB;AAGD,MAAM,WAAW,mBAAmB;IAClC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
|
package/dist/document.js
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Filter interfaces for trading and data filtering
|
|
3
|
+
* Shared across trading-related pages in the platform
|
|
4
|
+
*/
|
|
5
|
+
import type { TRADE_ACTION_BUY, TRADE_ACTION_SELL } from '@cranberry-money/shared-constants';
|
|
6
|
+
export interface BaseFilters {
|
|
7
|
+
searchQuery?: string;
|
|
8
|
+
[key: string]: unknown;
|
|
9
|
+
}
|
|
10
|
+
export interface DateRangeFilters {
|
|
11
|
+
startDate?: string;
|
|
12
|
+
endDate?: string;
|
|
13
|
+
[key: string]: unknown;
|
|
14
|
+
}
|
|
15
|
+
export interface NumericRangeFilters {
|
|
16
|
+
minValue?: number;
|
|
17
|
+
maxValue?: number;
|
|
18
|
+
[key: string]: unknown;
|
|
19
|
+
}
|
|
20
|
+
export interface TradeActionFilters {
|
|
21
|
+
action?: typeof TRADE_ACTION_BUY | typeof TRADE_ACTION_SELL;
|
|
22
|
+
[key: string]: unknown;
|
|
23
|
+
}
|
|
24
|
+
export interface BaseFiltersDialogProps<T> {
|
|
25
|
+
filters: T;
|
|
26
|
+
isOpen: boolean;
|
|
27
|
+
onClose: () => void;
|
|
28
|
+
onUpdateFilters: (filters: Partial<T>) => void;
|
|
29
|
+
onApplyFilters: () => void;
|
|
30
|
+
onClearFilters: () => void;
|
|
31
|
+
}
|
|
32
|
+
export interface BaseTradingPanelProps<TItem, TFilters> {
|
|
33
|
+
items: TItem[];
|
|
34
|
+
dialogFilters: TFilters;
|
|
35
|
+
clientSearchQuery: string;
|
|
36
|
+
isLoading?: boolean;
|
|
37
|
+
onSearch: (query: string) => void;
|
|
38
|
+
onUpdateDialogFilters: (filters: Partial<TFilters>) => void;
|
|
39
|
+
onApplyFiltersToServer: () => void;
|
|
40
|
+
onClearAllFilters: () => void;
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=filters.d.ts.map
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { Instrument } from './instruments';
|
|
2
|
+
import type { SNAPSHOT_REASON_TRADE, SNAPSHOT_REASON_REBALANCE, SNAPSHOT_REASON_VALUATION, SNAPSHOT_REASON_AUDIT } from '@cranberry-money/shared-constants';
|
|
3
|
+
export interface AssetHolding {
|
|
4
|
+
uuid: string;
|
|
5
|
+
portfolio: string;
|
|
6
|
+
instrument: Instrument;
|
|
7
|
+
instrumentName: string;
|
|
8
|
+
instrumentSymbol: string;
|
|
9
|
+
quantity: number;
|
|
10
|
+
createdAt: string;
|
|
11
|
+
updatedAt: string;
|
|
12
|
+
}
|
|
13
|
+
export interface AssetHoldingSnapshot {
|
|
14
|
+
id: number;
|
|
15
|
+
assetHolding: string;
|
|
16
|
+
portfolioId: number;
|
|
17
|
+
instrumentName: string;
|
|
18
|
+
instrumentSymbol: string;
|
|
19
|
+
quantity: number;
|
|
20
|
+
snapshotReason: typeof SNAPSHOT_REASON_TRADE | typeof SNAPSHOT_REASON_REBALANCE | typeof SNAPSHOT_REASON_VALUATION | typeof SNAPSHOT_REASON_AUDIT;
|
|
21
|
+
snapshotDate: string;
|
|
22
|
+
createdAt: string;
|
|
23
|
+
updatedAt: string;
|
|
24
|
+
}
|
|
25
|
+
export interface AssetHoldingFilters {
|
|
26
|
+
portfolioId?: string;
|
|
27
|
+
portfolioUuid?: string;
|
|
28
|
+
instrument?: string;
|
|
29
|
+
minQuantity?: number;
|
|
30
|
+
maxQuantity?: number;
|
|
31
|
+
orderBy?: string;
|
|
32
|
+
}
|
|
33
|
+
export interface AssetHoldingSnapshotFilters {
|
|
34
|
+
assetHoldingId?: string;
|
|
35
|
+
portfolioId?: string;
|
|
36
|
+
reason?: typeof SNAPSHOT_REASON_TRADE | typeof SNAPSHOT_REASON_REBALANCE | typeof SNAPSHOT_REASON_VALUATION | typeof SNAPSHOT_REASON_AUDIT;
|
|
37
|
+
startDate?: string;
|
|
38
|
+
endDate?: string;
|
|
39
|
+
orderBy?: string;
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=holdings.d.ts.map
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared types for the MyPortfolio platform
|
|
3
|
+
* Type definitions moved from shared-utils for better separation of concerns
|
|
4
|
+
*/
|
|
5
|
+
export type { FormErrors, PaginationParams, OrderingParams, PaginatedResponse } from './api';
|
|
6
|
+
export type { SigninPayload, SignupPayload, EmailVerificationPayload, TokenInfo, DeviceInfo, TokenRefreshResponse, TokenRefreshError, AutoRefreshHandler, TokenRefreshPayload, TokenRefreshData, TokenRefreshApiError, } from './auth';
|
|
7
|
+
export type { PasswordValidation, EmailConfirmationValidation, ExtendedPasswordValidation, BaseFieldValidation, MessageFieldValidation, BaseFormValidation, ExtendedFieldValidation, DateFieldValidation, AddressFieldValidation, PhoneFieldValidation, } from './validation';
|
|
8
|
+
export type { BadgeVariant, BadgeSize, BadgeConfig, BadgeStyle, StatusBadgeStyle } from './badge';
|
|
9
|
+
export type { TradeStatus, WithdrawalStatus, LiquidationStatus, TargetTradeStatus } from './badge-status';
|
|
10
|
+
export type { InstrumentTypeInfo, InstrumentBasicInfo, PriceChangeResult, PriceSnapshot, FormattedPriceChange, TradeableInstrument, MarketDataInfo, InstrumentReference, Instrument, MarketData, InstrumentSnapshot, } from './instruments';
|
|
11
|
+
export type { LiquidationProgress, SimpleWithdrawalStatus, WithdrawalType, WithdrawalReason, SimpleWithdrawalLiquidationStatus, WithdrawalRequest, WithdrawalAssetLiquidation, WithdrawalRequestPayload, WithdrawalAssetLiquidationPayload, WithdrawalRequestQueryParams, WithdrawalAssetLiquidationQueryParams, } from './withdrawal';
|
|
12
|
+
export type { UserProfile, UserProfilePayload, UserProfileCompletionPayload } from './user';
|
|
13
|
+
export type { Account, AccountPayload } from './account';
|
|
14
|
+
export type { InvestmentPreference, InvestmentPreferencePayload } from './investment';
|
|
15
|
+
export type { InstrumentsQueryParams, TargetTradeQueryParams, TargetTradeSheetQueryParams, TradeSheetQueryParams, TradeQueryParams, } from './query-params';
|
|
16
|
+
export type { Portfolio, PortfolioPayload, RebalancingTradesGenerationResponse, AssetAllocation, AssetAllocationPayload, } from './portfolio';
|
|
17
|
+
export type { AssetHolding, AssetHoldingSnapshot, AssetHoldingFilters, AssetHoldingSnapshotFilters } from './holdings';
|
|
18
|
+
export type { TradeAction, SimpleTradeStatus, SimpleTargetTradeStatus, Trade, TargetTrade, TargetTradePayload, TradeSheet, TargetTradeSheet, TargetTradeSheetPayload, TargetTradeSheetApprovalResponse, TargetTradeSheetCleanResponse, } from './trade';
|
|
19
|
+
export type { CurrencyCode, CashAccount, CashAccountQueryParams, CashAccountTransaction, CashAccountTransactionQueryParams, TransactionSummary, } from './cash';
|
|
20
|
+
export type { BankAccount, BankAccountQueryParams } from './bank';
|
|
21
|
+
export type { UserDocument, GenerateDocumentPayload, GenerateDocumentResponse, SignDocumentResponse, DocumentQueryParams, } from './document';
|
|
22
|
+
export type { Country, CountryQueryParams, Sector, SectorQueryParams, Industry, IndustryQueryParams, StockExchange, StockExchangeQueryParams, } from './reference-data';
|
|
23
|
+
export type { PortfolioTemplate, TargetAssetAllocation, ApplyTemplateResponse } from './portfolio-template';
|
|
24
|
+
export type { TaxResidency, TaxResidencyPayload } from './tax-residency';
|
|
25
|
+
export type { DashboardPerformanceData, WithdrawalSummary } from './dashboard';
|
|
26
|
+
export type { BaseFilters, DateRangeFilters, NumericRangeFilters, TradeActionFilters, BaseFiltersDialogProps, BaseTradingPanelProps, } from './filters';
|
|
27
|
+
export type { AuthState } from './auth-state';
|
|
28
|
+
export type { BaseDialogProps, BaseModalProps, BaseSearchFieldProps, ControlledSearchFieldProps, UncontrolledSearchFieldProps, BaseSummaryPanelProps, BaseLoadingProps, BaseRefreshProps, } from './components';
|
|
29
|
+
export type { NavigationItem } from './navigation';
|
|
30
|
+
export type { BaseInstrumentFilters, InstrumentPriceFilters, InstrumentFilters, InstrumentMetadata, BaseInstrumentFiltersDialogProps, } from './instrument-filters';
|
|
31
|
+
//# sourceMappingURL=index.d.ts.map
|