@cranberry-money/shared-types 4.26.11 → 5.0.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.
Files changed (58) hide show
  1. package/dist/badge-status.d.ts.map +1 -1
  2. package/dist/holdings.d.ts.map +1 -1
  3. package/dist/trade.d.ts.map +1 -1
  4. package/dist/withdrawal.d.ts.map +1 -1
  5. package/package.json +2 -1
  6. package/dist/account.d.ts +0 -22
  7. package/dist/account.d.ts.map +0 -1
  8. package/dist/account.js +0 -5
  9. package/dist/api.d.ts +0 -37
  10. package/dist/api.d.ts.map +0 -1
  11. package/dist/api.js +0 -4
  12. package/dist/auth.d.ts +0 -101
  13. package/dist/auth.d.ts.map +0 -1
  14. package/dist/auth.js +0 -5
  15. package/dist/badge-status.d.ts +0 -24
  16. package/dist/badge.d.ts +0 -39
  17. package/dist/badge.d.ts.map +0 -1
  18. package/dist/badge.js +0 -5
  19. package/dist/bank.d.ts +0 -35
  20. package/dist/bank.js +0 -4
  21. package/dist/cash.d.ts +0 -45
  22. package/dist/dashboard.d.ts +0 -18
  23. package/dist/dashboard.d.ts.map +0 -1
  24. package/dist/dashboard.js +0 -4
  25. package/dist/document.d.ts +0 -28
  26. package/dist/document.d.ts.map +0 -1
  27. package/dist/document.js +0 -4
  28. package/dist/filters.d.ts +0 -42
  29. package/dist/holdings.d.ts +0 -40
  30. package/dist/index.d.ts +0 -27
  31. package/dist/index.js +0 -5
  32. package/dist/instruments.d.ts +0 -118
  33. package/dist/instruments.d.ts.map +0 -1
  34. package/dist/instruments.js +0 -5
  35. package/dist/investment.d.ts +0 -27
  36. package/dist/investment.d.ts.map +0 -1
  37. package/dist/investment.js +0 -5
  38. package/dist/portfolio-template.d.ts +0 -31
  39. package/dist/portfolio-template.js +0 -4
  40. package/dist/portfolio.d.ts +0 -40
  41. package/dist/portfolio.d.ts.map +0 -1
  42. package/dist/portfolio.js +0 -1
  43. package/dist/query-params.d.ts +0 -73
  44. package/dist/query-params.js +0 -5
  45. package/dist/reference-data.d.ts +0 -56
  46. package/dist/reference-data.d.ts.map +0 -1
  47. package/dist/reference-data.js +0 -4
  48. package/dist/tax-residency.d.ts +0 -20
  49. package/dist/tax-residency.d.ts.map +0 -1
  50. package/dist/tax-residency.js +0 -4
  51. package/dist/trade.d.ts +0 -74
  52. package/dist/user.d.ts +0 -43
  53. package/dist/user.d.ts.map +0 -1
  54. package/dist/user.js +0 -5
  55. package/dist/validation.d.ts +0 -58
  56. package/dist/validation.d.ts.map +0 -1
  57. package/dist/validation.js +0 -5
  58. package/dist/withdrawal.d.ts +0 -94
@@ -1,94 +0,0 @@
1
- /**
2
- * Withdrawal-related type definitions
3
- * Shared across the MyPortfolio platform
4
- */
5
- import type { 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, WITHDRAWAL_TYPE_FULL_CASH, WITHDRAWAL_TYPE_PARTIAL_CASH, WITHDRAWAL_REASON_INVESTMENT_STRATEGY, WITHDRAWAL_REASON_PERSONAL_EXPENSES, WITHDRAWAL_REASON_EMERGENCY, WITHDRAWAL_REASON_OTHER, LIQUIDATION_STATUS_PENDING, LIQUIDATION_STATUS_TRADES_CREATED, LIQUIDATION_STATUS_EXECUTED, LIQUIDATION_STATUS_SETTLED, LIQUIDATION_STATUS_FAILED } from '@cranberry-money/shared-constants';
6
- /**
7
- * Progress calculation result for liquidations
8
- */
9
- export interface LiquidationProgress {
10
- total: number;
11
- pending: number;
12
- inProgress: number;
13
- completed: number;
14
- failed: number;
15
- completionRate: number;
16
- }
17
- export type SimpleWithdrawalStatus = 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;
18
- export type WithdrawalType = typeof WITHDRAWAL_TYPE_FULL_CASH | typeof WITHDRAWAL_TYPE_PARTIAL_CASH;
19
- export type WithdrawalReason = typeof WITHDRAWAL_REASON_INVESTMENT_STRATEGY | typeof WITHDRAWAL_REASON_PERSONAL_EXPENSES | typeof WITHDRAWAL_REASON_EMERGENCY | typeof WITHDRAWAL_REASON_OTHER;
20
- export type SimpleWithdrawalLiquidationStatus = typeof LIQUIDATION_STATUS_PENDING | typeof LIQUIDATION_STATUS_TRADES_CREATED | typeof LIQUIDATION_STATUS_EXECUTED | typeof LIQUIDATION_STATUS_SETTLED | typeof LIQUIDATION_STATUS_FAILED;
21
- export interface WithdrawalRequest {
22
- uuid: string;
23
- account: string;
24
- requestedBy: string;
25
- requestedAmount: string;
26
- withdrawalType: WithdrawalType;
27
- status: string;
28
- requestedDate: string;
29
- targetTradeSheet: string | null;
30
- reason: WithdrawalReason | null;
31
- createdAt: string;
32
- updatedAt: string;
33
- }
34
- export interface WithdrawalAssetLiquidation {
35
- uuid: string;
36
- withdrawalRequest: string;
37
- assetHolding: string;
38
- sharesToLiquidate: number;
39
- estimatedValue: string;
40
- targetCompletionDate: string | null;
41
- expectedSettlementDate: string | null;
42
- liquidationStatus: string;
43
- targetTrade: string | null;
44
- instrumentName: string;
45
- instrumentSymbol: string;
46
- instrumentCurrency: string | null;
47
- createdAt: string;
48
- updatedAt: string;
49
- }
50
- export interface WithdrawalRequestPayload {
51
- account: string;
52
- requestedAmount: string;
53
- withdrawalType?: WithdrawalType;
54
- targetTradeSheet?: string | null;
55
- reason?: WithdrawalReason | null;
56
- }
57
- export interface WithdrawalAssetLiquidationPayload {
58
- withdrawalRequest: string;
59
- assetHolding: string;
60
- sharesToLiquidate: number;
61
- estimatedValue: string;
62
- targetCompletionDate?: string | null;
63
- expectedSettlementDate?: string | null;
64
- liquidationStatus?: string;
65
- targetTrade?: string | null;
66
- }
67
- export interface WithdrawalRequestQueryParams {
68
- account?: string;
69
- status?: string;
70
- withdrawal_type?: string;
71
- start_date?: string;
72
- end_date?: string;
73
- min_amount?: string;
74
- max_amount?: string;
75
- order_by?: string;
76
- page?: number;
77
- page_size?: number;
78
- }
79
- export interface WithdrawalAssetLiquidationQueryParams {
80
- withdrawal_request?: string;
81
- asset_holding?: string;
82
- liquidation_status?: string;
83
- target_completion_start_date?: string;
84
- target_completion_end_date?: string;
85
- expected_settlement_start_date?: string;
86
- expected_settlement_end_date?: string;
87
- target_trade?: string;
88
- min_value?: string;
89
- max_value?: string;
90
- order_by?: string;
91
- page?: number;
92
- page_size?: number;
93
- }
94
- //# sourceMappingURL=withdrawal.d.ts.map