@cranberry-money/shared-services 1.12.1 → 3.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.
- package/CHANGELOG.md +240 -0
- package/README.md +464 -190
- package/dist/api/functional-client.d.ts +66 -0
- package/dist/api/functional-client.d.ts.map +1 -0
- package/dist/api/functional-client.js +165 -0
- package/dist/auth/functional/auth-operations.d.ts +116 -0
- package/dist/auth/functional/auth-operations.d.ts.map +1 -0
- package/dist/auth/functional/auth-operations.js +246 -0
- package/dist/auth/functional/auth-state.d.ts +38 -0
- package/dist/auth/functional/auth-state.d.ts.map +1 -0
- package/dist/auth/functional/auth-state.js +87 -0
- package/dist/auth/functional/token-storage.d.ts +44 -0
- package/dist/auth/functional/token-storage.d.ts.map +1 -0
- package/dist/auth/functional/token-storage.js +178 -0
- package/dist/auth/react/AuthProvider.d.ts +92 -0
- package/dist/auth/react/AuthProvider.d.ts.map +1 -0
- package/dist/auth/react/AuthProvider.js +207 -0
- package/dist/index.d.ts +25 -34
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +114 -40
- package/dist/integration/blueberry-integration.d.ts +21 -0
- package/dist/integration/blueberry-integration.d.ts.map +1 -0
- package/dist/integration/blueberry-integration.js +109 -0
- package/dist/integration/index.d.ts +8 -0
- package/dist/integration/index.d.ts.map +1 -0
- package/dist/integration/index.js +18 -0
- package/dist/services/accounts.d.ts +220 -0
- package/dist/services/accounts.d.ts.map +1 -0
- package/dist/services/accounts.js +175 -0
- package/dist/services/banks.d.ts +123 -0
- package/dist/services/banks.d.ts.map +1 -0
- package/dist/services/banks.js +151 -0
- package/dist/services/cash-accounts.d.ts +112 -0
- package/dist/services/cash-accounts.d.ts.map +1 -0
- package/dist/services/cash-accounts.js +222 -0
- package/dist/services/documents.d.ts +143 -0
- package/dist/services/documents.d.ts.map +1 -0
- package/dist/services/documents.js +253 -0
- package/dist/services/factories/account-factory.d.ts +16 -0
- package/dist/services/factories/account-factory.d.ts.map +1 -0
- package/dist/services/factories/account-factory.js +79 -0
- package/dist/services/factories/auth-factory.d.ts +23 -0
- package/dist/services/factories/auth-factory.d.ts.map +1 -0
- package/dist/services/factories/auth-factory.js +75 -0
- package/dist/services/factories/bank-factory.d.ts +16 -0
- package/dist/services/factories/bank-factory.d.ts.map +1 -0
- package/dist/services/factories/bank-factory.js +72 -0
- package/dist/services/factories/cash-account-factory.d.ts +16 -0
- package/dist/services/factories/cash-account-factory.d.ts.map +1 -0
- package/dist/services/factories/cash-account-factory.js +74 -0
- package/dist/services/factories/document-factory.d.ts +16 -0
- package/dist/services/factories/document-factory.d.ts.map +1 -0
- package/dist/services/factories/document-factory.js +85 -0
- package/dist/services/factories/index.d.ts +21 -0
- package/dist/services/factories/index.d.ts.map +1 -0
- package/dist/services/factories/index.js +40 -0
- package/dist/services/factories/instrument-factory.d.ts +16 -0
- package/dist/services/factories/instrument-factory.d.ts.map +1 -0
- package/dist/services/factories/instrument-factory.js +68 -0
- package/dist/services/factories/master-factory.d.ts +74 -0
- package/dist/services/factories/master-factory.d.ts.map +1 -0
- package/dist/services/factories/master-factory.js +183 -0
- package/dist/services/factories/portfolio-factory.d.ts +16 -0
- package/dist/services/factories/portfolio-factory.d.ts.map +1 -0
- package/dist/services/factories/portfolio-factory.js +74 -0
- package/dist/services/factories/portfolio-template-factory.d.ts +16 -0
- package/dist/services/factories/portfolio-template-factory.d.ts.map +1 -0
- package/dist/services/factories/portfolio-template-factory.js +76 -0
- package/dist/services/factories/reference-data-factory.d.ts +16 -0
- package/dist/services/factories/reference-data-factory.d.ts.map +1 -0
- package/dist/services/factories/reference-data-factory.js +86 -0
- package/dist/services/factories/tax-residency-factory.d.ts +16 -0
- package/dist/services/factories/tax-residency-factory.d.ts.map +1 -0
- package/dist/services/factories/tax-residency-factory.js +73 -0
- package/dist/services/factories/trade-factory.d.ts +16 -0
- package/dist/services/factories/trade-factory.d.ts.map +1 -0
- package/dist/services/factories/trade-factory.js +79 -0
- package/dist/services/factories/types.d.ts +250 -0
- package/dist/services/factories/types.d.ts.map +1 -0
- package/dist/services/factories/types.js +32 -0
- package/dist/services/factories/withdrawal-factory.d.ts +16 -0
- package/dist/services/factories/withdrawal-factory.d.ts.map +1 -0
- package/dist/services/factories/withdrawal-factory.js +78 -0
- package/dist/services/instruments.d.ts +138 -0
- package/dist/services/instruments.d.ts.map +1 -0
- package/dist/services/instruments.js +178 -0
- package/dist/services/portfolio-templates.d.ts +142 -0
- package/dist/services/portfolio-templates.d.ts.map +1 -0
- package/dist/services/portfolio-templates.js +201 -0
- package/dist/services/portfolios.d.ts +161 -0
- package/dist/services/portfolios.d.ts.map +1 -0
- package/dist/services/portfolios.js +144 -0
- package/dist/services/reference-data.d.ts +185 -0
- package/dist/services/reference-data.d.ts.map +1 -0
- package/dist/services/reference-data.js +245 -0
- package/dist/services/tax-residencies.d.ts +83 -0
- package/dist/services/tax-residencies.d.ts.map +1 -0
- package/dist/services/tax-residencies.js +179 -0
- package/dist/services/trades.d.ts +190 -0
- package/dist/services/trades.d.ts.map +1 -0
- package/dist/services/trades.js +207 -0
- package/dist/services/withdrawals.d.ts +236 -0
- package/dist/services/withdrawals.d.ts.map +1 -0
- package/dist/services/withdrawals.js +345 -0
- package/package.json +43 -16
- package/dist/adapters/MobileApiClient.d.ts +0 -68
- package/dist/adapters/MobileApiClient.d.ts.map +0 -1
- package/dist/adapters/MobileApiClient.js +0 -240
- package/dist/adapters/MobileTokenStorage.d.ts +0 -43
- package/dist/adapters/MobileTokenStorage.d.ts.map +0 -1
- package/dist/adapters/MobileTokenStorage.js +0 -128
- package/dist/adapters/WebApiClient.d.ts +0 -28
- package/dist/adapters/WebApiClient.d.ts.map +0 -1
- package/dist/adapters/WebApiClient.js +0 -119
- package/dist/adapters/WebTokenStorage.d.ts +0 -38
- package/dist/adapters/WebTokenStorage.d.ts.map +0 -1
- package/dist/adapters/WebTokenStorage.js +0 -86
- package/dist/api/apiClient.d.ts +0 -31
- package/dist/api/apiClient.d.ts.map +0 -1
- package/dist/api/apiClient.js +0 -49
- package/dist/api/types.d.ts +0 -51
- package/dist/api/types.d.ts.map +0 -1
- package/dist/api/types.js +0 -4
- package/dist/auth/AuthManager.d.ts +0 -81
- package/dist/auth/AuthManager.d.ts.map +0 -1
- package/dist/auth/AuthManager.js +0 -223
- package/dist/auth/createAuthManager.d.ts +0 -63
- package/dist/auth/createAuthManager.d.ts.map +0 -1
- package/dist/auth/createAuthManager.js +0 -103
- package/dist/auth/useAuthManager.d.ts +0 -66
- package/dist/auth/useAuthManager.d.ts.map +0 -1
- package/dist/auth/useAuthManager.js +0 -133
- package/dist/core/BaseApiClient.d.ts +0 -82
- package/dist/core/BaseApiClient.d.ts.map +0 -1
- package/dist/core/BaseApiClient.js +0 -89
- package/dist/core/TokenStorage.d.ts +0 -45
- package/dist/core/TokenStorage.d.ts.map +0 -1
- package/dist/core/TokenStorage.js +0 -23
- package/dist/query/QueryClient.d.ts +0 -82
- package/dist/query/QueryClient.d.ts.map +0 -1
- package/dist/query/QueryClient.js +0 -136
- package/dist/query/useAuth.d.ts +0 -64
- package/dist/query/useAuth.d.ts.map +0 -1
- package/dist/query/useAuth.js +0 -144
- package/dist/query/usePortfolios.d.ts +0 -79
- package/dist/query/usePortfolios.d.ts.map +0 -1
- package/dist/query/usePortfolios.js +0 -172
- package/dist/services/AuthService.d.ts +0 -75
- package/dist/services/AuthService.d.ts.map +0 -1
- package/dist/services/AuthService.js +0 -83
- package/dist/services/BaseService.d.ts +0 -48
- package/dist/services/BaseService.d.ts.map +0 -1
- package/dist/services/BaseService.js +0 -51
- package/dist/services/PortfolioService.d.ts +0 -100
- package/dist/services/PortfolioService.d.ts.map +0 -1
- package/dist/services/PortfolioService.js +0 -68
- package/dist/services/accounts/constants.d.ts +0 -24
- package/dist/services/accounts/constants.d.ts.map +0 -1
- package/dist/services/accounts/constants.js +0 -30
- package/dist/services/accounts/index.d.ts +0 -7
- package/dist/services/accounts/index.d.ts.map +0 -1
- package/dist/services/accounts/index.js +0 -6
- package/dist/services/accounts/service.d.ts +0 -11
- package/dist/services/accounts/service.d.ts.map +0 -1
- package/dist/services/accounts/service.js +0 -19
- package/dist/services/accounts/types.d.ts +0 -15
- package/dist/services/accounts/types.d.ts.map +0 -1
- package/dist/services/accounts/types.js +0 -4
- package/dist/services/auth/constants.d.ts +0 -30
- package/dist/services/auth/constants.d.ts.map +0 -1
- package/dist/services/auth/constants.js +0 -37
- package/dist/services/auth/index.d.ts +0 -8
- package/dist/services/auth/index.d.ts.map +0 -1
- package/dist/services/auth/index.js +0 -7
- package/dist/services/auth/service.d.ts +0 -8
- package/dist/services/auth/service.d.ts.map +0 -1
- package/dist/services/auth/service.js +0 -23
- package/dist/services/auth/types.d.ts +0 -38
- package/dist/services/auth/types.d.ts.map +0 -1
- package/dist/services/auth/types.js +0 -1
- package/dist/services/auth/utils.d.ts +0 -46
- package/dist/services/auth/utils.d.ts.map +0 -1
- package/dist/services/auth/utils.js +0 -113
- package/dist/services/banks/constants.d.ts +0 -47
- package/dist/services/banks/constants.d.ts.map +0 -1
- package/dist/services/banks/constants.js +0 -98
- package/dist/services/banks/index.d.ts +0 -8
- package/dist/services/banks/index.d.ts.map +0 -1
- package/dist/services/banks/index.js +0 -7
- package/dist/services/banks/service.d.ts +0 -9
- package/dist/services/banks/service.d.ts.map +0 -1
- package/dist/services/banks/service.js +0 -38
- package/dist/services/banks/types.d.ts +0 -36
- package/dist/services/banks/types.d.ts.map +0 -1
- package/dist/services/banks/types.js +0 -4
- package/dist/services/cash_accounts/constants.d.ts +0 -7
- package/dist/services/cash_accounts/constants.d.ts.map +0 -1
- package/dist/services/cash_accounts/constants.js +0 -7
- package/dist/services/cash_accounts/index.d.ts +0 -5
- package/dist/services/cash_accounts/index.d.ts.map +0 -1
- package/dist/services/cash_accounts/index.js +0 -6
- package/dist/services/cash_accounts/service.d.ts +0 -8
- package/dist/services/cash_accounts/service.d.ts.map +0 -1
- package/dist/services/cash_accounts/service.js +0 -32
- package/dist/services/cash_accounts/transactions/constants.d.ts +0 -18
- package/dist/services/cash_accounts/transactions/constants.d.ts.map +0 -1
- package/dist/services/cash_accounts/transactions/constants.js +0 -25
- package/dist/services/cash_accounts/transactions/index.d.ts +0 -5
- package/dist/services/cash_accounts/transactions/index.d.ts.map +0 -1
- package/dist/services/cash_accounts/transactions/index.js +0 -6
- package/dist/services/cash_accounts/transactions/service.d.ts +0 -13
- package/dist/services/cash_accounts/transactions/service.d.ts.map +0 -1
- package/dist/services/cash_accounts/transactions/service.js +0 -75
- package/dist/services/cash_accounts/transactions/types.d.ts +0 -38
- package/dist/services/cash_accounts/transactions/types.d.ts.map +0 -1
- package/dist/services/cash_accounts/transactions/types.js +0 -11
- package/dist/services/cash_accounts/types.d.ts +0 -24
- package/dist/services/cash_accounts/types.d.ts.map +0 -1
- package/dist/services/cash_accounts/types.js +0 -4
- package/dist/services/countries/constants.d.ts +0 -9
- package/dist/services/countries/constants.d.ts.map +0 -1
- package/dist/services/countries/constants.js +0 -10
- package/dist/services/countries/index.d.ts +0 -5
- package/dist/services/countries/index.d.ts.map +0 -1
- package/dist/services/countries/index.js +0 -6
- package/dist/services/countries/service.d.ts +0 -18
- package/dist/services/countries/service.d.ts.map +0 -1
- package/dist/services/countries/service.js +0 -32
- package/dist/services/countries/types.d.ts +0 -24
- package/dist/services/countries/types.d.ts.map +0 -1
- package/dist/services/countries/types.js +0 -1
- package/dist/services/countries/utils.d.ts +0 -38
- package/dist/services/countries/utils.d.ts.map +0 -1
- package/dist/services/countries/utils.js +0 -62
- package/dist/services/documents/constants.d.ts +0 -55
- package/dist/services/documents/constants.d.ts.map +0 -1
- package/dist/services/documents/constants.js +0 -50
- package/dist/services/documents/index.d.ts +0 -6
- package/dist/services/documents/index.d.ts.map +0 -1
- package/dist/services/documents/index.js +0 -6
- package/dist/services/documents/service.d.ts +0 -50
- package/dist/services/documents/service.d.ts.map +0 -1
- package/dist/services/documents/service.js +0 -116
- package/dist/services/documents/types.d.ts +0 -47
- package/dist/services/documents/types.d.ts.map +0 -1
- package/dist/services/documents/types.js +0 -1
- package/dist/services/documents/utils.d.ts +0 -26
- package/dist/services/documents/utils.d.ts.map +0 -1
- package/dist/services/documents/utils.js +0 -37
- package/dist/services/industries/constants.d.ts +0 -8
- package/dist/services/industries/constants.d.ts.map +0 -1
- package/dist/services/industries/constants.js +0 -9
- package/dist/services/industries/index.d.ts +0 -6
- package/dist/services/industries/index.d.ts.map +0 -1
- package/dist/services/industries/index.js +0 -6
- package/dist/services/industries/service.d.ts +0 -18
- package/dist/services/industries/service.d.ts.map +0 -1
- package/dist/services/industries/service.js +0 -43
- package/dist/services/industries/types.d.ts +0 -21
- package/dist/services/industries/types.d.ts.map +0 -1
- package/dist/services/industries/types.js +0 -1
- package/dist/services/industries/utils.d.ts +0 -47
- package/dist/services/industries/utils.d.ts.map +0 -1
- package/dist/services/industries/utils.js +0 -86
- package/dist/services/instruments/constants.d.ts +0 -38
- package/dist/services/instruments/constants.d.ts.map +0 -1
- package/dist/services/instruments/constants.js +0 -36
- package/dist/services/instruments/index.d.ts +0 -5
- package/dist/services/instruments/index.d.ts.map +0 -1
- package/dist/services/instruments/index.js +0 -6
- package/dist/services/instruments/service.d.ts +0 -54
- package/dist/services/instruments/service.d.ts.map +0 -1
- package/dist/services/instruments/service.js +0 -106
- package/dist/services/instruments/types.d.ts +0 -83
- package/dist/services/instruments/types.d.ts.map +0 -1
- package/dist/services/instruments/types.js +0 -1
- package/dist/services/instruments/utils.d.ts +0 -50
- package/dist/services/instruments/utils.d.ts.map +0 -1
- package/dist/services/instruments/utils.js +0 -111
- package/dist/services/portfolio_templates/constants.d.ts +0 -8
- package/dist/services/portfolio_templates/constants.d.ts.map +0 -1
- package/dist/services/portfolio_templates/constants.js +0 -8
- package/dist/services/portfolio_templates/index.d.ts +0 -5
- package/dist/services/portfolio_templates/index.d.ts.map +0 -1
- package/dist/services/portfolio_templates/index.js +0 -5
- package/dist/services/portfolio_templates/service.d.ts +0 -6
- package/dist/services/portfolio_templates/service.d.ts.map +0 -1
- package/dist/services/portfolio_templates/service.js +0 -14
- package/dist/services/portfolio_templates/types.d.ts +0 -49
- package/dist/services/portfolio_templates/types.d.ts.map +0 -1
- package/dist/services/portfolio_templates/types.js +0 -1
- package/dist/services/portfolio_templates/utils.d.ts +0 -8
- package/dist/services/portfolio_templates/utils.d.ts.map +0 -1
- package/dist/services/portfolio_templates/utils.js +0 -13
- package/dist/services/portfolios/allocations/index.d.ts +0 -7
- package/dist/services/portfolios/allocations/index.d.ts.map +0 -1
- package/dist/services/portfolios/allocations/index.js +0 -6
- package/dist/services/portfolios/allocations/service.d.ts +0 -6
- package/dist/services/portfolios/allocations/service.d.ts.map +0 -1
- package/dist/services/portfolios/allocations/service.js +0 -19
- package/dist/services/portfolios/allocations/types.d.ts +0 -17
- package/dist/services/portfolios/allocations/types.d.ts.map +0 -1
- package/dist/services/portfolios/allocations/types.js +0 -4
- package/dist/services/portfolios/allocations/utils.d.ts +0 -3
- package/dist/services/portfolios/allocations/utils.d.ts.map +0 -1
- package/dist/services/portfolios/allocations/utils.js +0 -7
- package/dist/services/portfolios/constants.d.ts +0 -45
- package/dist/services/portfolios/constants.d.ts.map +0 -1
- package/dist/services/portfolios/constants.js +0 -57
- package/dist/services/portfolios/holdings/index.d.ts +0 -7
- package/dist/services/portfolios/holdings/index.d.ts.map +0 -1
- package/dist/services/portfolios/holdings/index.js +0 -6
- package/dist/services/portfolios/holdings/service.d.ts +0 -10
- package/dist/services/portfolios/holdings/service.d.ts.map +0 -1
- package/dist/services/portfolios/holdings/service.js +0 -53
- package/dist/services/portfolios/holdings/types.d.ts +0 -42
- package/dist/services/portfolios/holdings/types.d.ts.map +0 -1
- package/dist/services/portfolios/holdings/types.js +0 -4
- package/dist/services/portfolios/holdings/utils.d.ts +0 -8
- package/dist/services/portfolios/holdings/utils.d.ts.map +0 -1
- package/dist/services/portfolios/holdings/utils.js +0 -82
- package/dist/services/portfolios/index.d.ts +0 -10
- package/dist/services/portfolios/index.d.ts.map +0 -1
- package/dist/services/portfolios/index.js +0 -10
- package/dist/services/portfolios/service.d.ts +0 -7
- package/dist/services/portfolios/service.d.ts.map +0 -1
- package/dist/services/portfolios/service.js +0 -19
- package/dist/services/portfolios/types.d.ts +0 -29
- package/dist/services/portfolios/types.d.ts.map +0 -1
- package/dist/services/portfolios/types.js +0 -1
- package/dist/services/portfolios/utils.d.ts +0 -5
- package/dist/services/portfolios/utils.d.ts.map +0 -1
- package/dist/services/portfolios/utils.js +0 -26
- package/dist/services/sectors/constants.d.ts +0 -7
- package/dist/services/sectors/constants.d.ts.map +0 -1
- package/dist/services/sectors/constants.js +0 -7
- package/dist/services/sectors/index.d.ts +0 -6
- package/dist/services/sectors/index.d.ts.map +0 -1
- package/dist/services/sectors/index.js +0 -6
- package/dist/services/sectors/service.d.ts +0 -14
- package/dist/services/sectors/service.d.ts.map +0 -1
- package/dist/services/sectors/service.js +0 -32
- package/dist/services/sectors/types.d.ts +0 -19
- package/dist/services/sectors/types.d.ts.map +0 -1
- package/dist/services/sectors/types.js +0 -1
- package/dist/services/sectors/utils.d.ts +0 -31
- package/dist/services/sectors/utils.d.ts.map +0 -1
- package/dist/services/sectors/utils.js +0 -54
- package/dist/services/stock_exchanges/constants.d.ts +0 -7
- package/dist/services/stock_exchanges/constants.d.ts.map +0 -1
- package/dist/services/stock_exchanges/constants.js +0 -7
- package/dist/services/stock_exchanges/index.d.ts +0 -6
- package/dist/services/stock_exchanges/index.d.ts.map +0 -1
- package/dist/services/stock_exchanges/index.js +0 -6
- package/dist/services/stock_exchanges/service.d.ts +0 -4
- package/dist/services/stock_exchanges/service.d.ts.map +0 -1
- package/dist/services/stock_exchanges/service.js +0 -26
- package/dist/services/stock_exchanges/types.d.ts +0 -28
- package/dist/services/stock_exchanges/types.d.ts.map +0 -1
- package/dist/services/stock_exchanges/types.js +0 -1
- package/dist/services/stock_exchanges/utils.d.ts +0 -8
- package/dist/services/stock_exchanges/utils.d.ts.map +0 -1
- package/dist/services/stock_exchanges/utils.js +0 -37
- package/dist/services/tax_residencies/constants.d.ts +0 -7
- package/dist/services/tax_residencies/constants.d.ts.map +0 -1
- package/dist/services/tax_residencies/constants.js +0 -7
- package/dist/services/tax_residencies/index.d.ts +0 -10
- package/dist/services/tax_residencies/index.d.ts.map +0 -1
- package/dist/services/tax_residencies/index.js +0 -11
- package/dist/services/tax_residencies/service.d.ts +0 -6
- package/dist/services/tax_residencies/service.d.ts.map +0 -1
- package/dist/services/tax_residencies/service.js +0 -20
- package/dist/services/tax_residencies/types.d.ts +0 -26
- package/dist/services/tax_residencies/types.d.ts.map +0 -1
- package/dist/services/tax_residencies/types.js +0 -4
- package/dist/services/tax_residencies/utils.d.ts +0 -9
- package/dist/services/tax_residencies/utils.d.ts.map +0 -1
- package/dist/services/tax_residencies/utils.js +0 -19
- package/dist/services/trades/constants.d.ts +0 -47
- package/dist/services/trades/constants.d.ts.map +0 -1
- package/dist/services/trades/constants.js +0 -61
- package/dist/services/trades/index.d.ts +0 -4
- package/dist/services/trades/index.d.ts.map +0 -1
- package/dist/services/trades/index.js +0 -12
- package/dist/services/trades/service.d.ts +0 -19
- package/dist/services/trades/service.d.ts.map +0 -1
- package/dist/services/trades/service.js +0 -177
- package/dist/services/trades/types.d.ts +0 -114
- package/dist/services/trades/types.d.ts.map +0 -1
- package/dist/services/trades/types.js +0 -1
- package/dist/services/users/constants.d.ts +0 -7
- package/dist/services/users/constants.d.ts.map +0 -1
- package/dist/services/users/constants.js +0 -8
- package/dist/services/users/index.d.ts +0 -9
- package/dist/services/users/index.d.ts.map +0 -1
- package/dist/services/users/index.js +0 -9
- package/dist/services/users/investment_preferences/constants.d.ts +0 -7
- package/dist/services/users/investment_preferences/constants.d.ts.map +0 -1
- package/dist/services/users/investment_preferences/constants.js +0 -7
- package/dist/services/users/investment_preferences/index.d.ts +0 -7
- package/dist/services/users/investment_preferences/index.d.ts.map +0 -1
- package/dist/services/users/investment_preferences/index.js +0 -6
- package/dist/services/users/investment_preferences/service.d.ts +0 -5
- package/dist/services/users/investment_preferences/service.d.ts.map +0 -1
- package/dist/services/users/investment_preferences/service.js +0 -12
- package/dist/services/users/investment_preferences/types.d.ts +0 -23
- package/dist/services/users/investment_preferences/types.d.ts.map +0 -1
- package/dist/services/users/investment_preferences/types.js +0 -1
- package/dist/services/users/service.d.ts +0 -6
- package/dist/services/users/service.d.ts.map +0 -1
- package/dist/services/users/service.js +0 -15
- package/dist/services/users/types.d.ts +0 -32
- package/dist/services/users/types.d.ts.map +0 -1
- package/dist/services/users/types.js +0 -1
- package/dist/services/users/utils.d.ts +0 -2
- package/dist/services/users/utils.d.ts.map +0 -1
- package/dist/services/users/utils.js +0 -6
- package/dist/services/withdrawals/constants.d.ts +0 -67
- package/dist/services/withdrawals/constants.d.ts.map +0 -1
- package/dist/services/withdrawals/constants.js +0 -91
- package/dist/services/withdrawals/index.d.ts +0 -6
- package/dist/services/withdrawals/index.d.ts.map +0 -1
- package/dist/services/withdrawals/index.js +0 -7
- package/dist/services/withdrawals/service.d.ts +0 -4
- package/dist/services/withdrawals/service.d.ts.map +0 -1
- package/dist/services/withdrawals/service.js +0 -5
- package/dist/services/withdrawals/types.d.ts +0 -81
- package/dist/services/withdrawals/types.d.ts.map +0 -1
- package/dist/services/withdrawals/types.js +0 -1
- package/dist/services/withdrawals/utils.d.ts +0 -20
- package/dist/services/withdrawals/utils.d.ts.map +0 -1
- package/dist/services/withdrawals/utils.js +0 -110
- package/dist/services/withdrawals/withdrawal_liquidations/index.d.ts +0 -3
- package/dist/services/withdrawals/withdrawal_liquidations/index.d.ts.map +0 -1
- package/dist/services/withdrawals/withdrawal_liquidations/index.js +0 -2
- package/dist/services/withdrawals/withdrawal_liquidations/service.d.ts +0 -8
- package/dist/services/withdrawals/withdrawal_liquidations/service.d.ts.map +0 -1
- package/dist/services/withdrawals/withdrawal_liquidations/service.js +0 -68
- package/dist/services/withdrawals/withdrawal_liquidations/types.d.ts +0 -2
- package/dist/services/withdrawals/withdrawal_liquidations/types.d.ts.map +0 -1
- package/dist/services/withdrawals/withdrawal_liquidations/types.js +0 -1
- package/dist/services/withdrawals/withdrawal_requests/index.d.ts +0 -3
- package/dist/services/withdrawals/withdrawal_requests/index.d.ts.map +0 -1
- package/dist/services/withdrawals/withdrawal_requests/index.js +0 -2
- package/dist/services/withdrawals/withdrawal_requests/service.d.ts +0 -7
- package/dist/services/withdrawals/withdrawal_requests/service.d.ts.map +0 -1
- package/dist/services/withdrawals/withdrawal_requests/service.js +0 -55
- package/dist/services/withdrawals/withdrawal_requests/types.d.ts +0 -2
- package/dist/services/withdrawals/withdrawal_requests/types.d.ts.map +0 -1
- package/dist/services/withdrawals/withdrawal_requests/types.js +0 -1
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Shared React Query client configuration
|
|
3
|
-
*
|
|
4
|
-
* Provides platform-optimized React Query configurations for web and mobile
|
|
5
|
-
* with appropriate caching, retry, and offline behavior settings.
|
|
6
|
-
*/
|
|
7
|
-
import { QueryClient } from '@tanstack/react-query';
|
|
8
|
-
/**
|
|
9
|
-
* Create a QueryClient with platform-optimized defaults
|
|
10
|
-
*/
|
|
11
|
-
export const createQueryClient = (options) => {
|
|
12
|
-
const { platform, defaultStaleTime, defaultRetryCount, enableOfflineSupport = platform === 'mobile', } = options;
|
|
13
|
-
// Platform-specific defaults
|
|
14
|
-
const platformDefaults = getPlatformDefaults(platform);
|
|
15
|
-
const config = {
|
|
16
|
-
defaultOptions: {
|
|
17
|
-
queries: {
|
|
18
|
-
// Stale time - how long data stays fresh
|
|
19
|
-
staleTime: defaultStaleTime ?? platformDefaults.staleTime,
|
|
20
|
-
// Cache time - how long data stays in cache after becoming stale
|
|
21
|
-
gcTime: platformDefaults.gcTime,
|
|
22
|
-
// Retry configuration
|
|
23
|
-
retry: defaultRetryCount ?? platformDefaults.retry,
|
|
24
|
-
retryDelay: (attemptIndex) => Math.min(1000 * 2 ** attemptIndex, 30000),
|
|
25
|
-
// Refetch behavior
|
|
26
|
-
refetchOnWindowFocus: platformDefaults.refetchOnWindowFocus,
|
|
27
|
-
refetchOnReconnect: platformDefaults.refetchOnReconnect,
|
|
28
|
-
refetchOnMount: true,
|
|
29
|
-
// Network mode for offline support
|
|
30
|
-
networkMode: enableOfflineSupport ? 'offlineFirst' : 'online',
|
|
31
|
-
},
|
|
32
|
-
mutations: {
|
|
33
|
-
// Retry mutations on network errors
|
|
34
|
-
retry: platform === 'mobile' ? 2 : 1,
|
|
35
|
-
retryDelay: (attemptIndex) => Math.min(1000 * 2 ** attemptIndex, 10000),
|
|
36
|
-
// Network mode for offline support
|
|
37
|
-
networkMode: enableOfflineSupport ? 'offlineFirst' : 'online',
|
|
38
|
-
},
|
|
39
|
-
},
|
|
40
|
-
};
|
|
41
|
-
return new QueryClient(config);
|
|
42
|
-
};
|
|
43
|
-
/**
|
|
44
|
-
* Get platform-specific default configurations
|
|
45
|
-
*/
|
|
46
|
-
function getPlatformDefaults(platform) {
|
|
47
|
-
if (platform === 'mobile') {
|
|
48
|
-
return {
|
|
49
|
-
// Mobile: Longer stale times for better offline experience
|
|
50
|
-
staleTime: 5 * 60 * 1000, // 5 minutes
|
|
51
|
-
gcTime: 10 * 60 * 1000, // 10 minutes
|
|
52
|
-
retry: 3, // More retries for unstable connections
|
|
53
|
-
refetchOnWindowFocus: false, // No window focus on mobile
|
|
54
|
-
refetchOnReconnect: true, // Refetch when network reconnects
|
|
55
|
-
};
|
|
56
|
-
}
|
|
57
|
-
else {
|
|
58
|
-
return {
|
|
59
|
-
// Web: Shorter stale times for more responsive experience
|
|
60
|
-
staleTime: 30 * 1000, // 30 seconds
|
|
61
|
-
gcTime: 5 * 60 * 1000, // 5 minutes
|
|
62
|
-
retry: 1, // Single retry for stable connections
|
|
63
|
-
refetchOnWindowFocus: true, // Refetch when user returns to tab
|
|
64
|
-
refetchOnReconnect: true, // Refetch when network reconnects
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
/**
|
|
69
|
-
* Default query keys factory
|
|
70
|
-
* Provides consistent query key structure across the application
|
|
71
|
-
*/
|
|
72
|
-
export const queryKeys = {
|
|
73
|
-
// Authentication
|
|
74
|
-
auth: {
|
|
75
|
-
profile: () => ['auth', 'profile'],
|
|
76
|
-
status: () => ['auth', 'status'],
|
|
77
|
-
},
|
|
78
|
-
// Portfolios
|
|
79
|
-
portfolios: {
|
|
80
|
-
all: () => ['portfolios'],
|
|
81
|
-
detail: (id) => ['portfolios', id],
|
|
82
|
-
holdings: (id) => ['portfolios', id, 'holdings'],
|
|
83
|
-
allocations: (id) => ['portfolios', id, 'allocations'],
|
|
84
|
-
},
|
|
85
|
-
// Instruments
|
|
86
|
-
instruments: {
|
|
87
|
-
all: (filters) => ['instruments', filters],
|
|
88
|
-
detail: (id) => ['instruments', id],
|
|
89
|
-
search: (query) => ['instruments', 'search', query],
|
|
90
|
-
},
|
|
91
|
-
// Trades
|
|
92
|
-
trades: {
|
|
93
|
-
all: (filters) => ['trades', filters],
|
|
94
|
-
target: (filters) => ['trades', 'target', filters],
|
|
95
|
-
detail: (id) => ['trades', id],
|
|
96
|
-
},
|
|
97
|
-
// Reference data
|
|
98
|
-
reference: {
|
|
99
|
-
countries: () => ['reference', 'countries'],
|
|
100
|
-
sectors: () => ['reference', 'sectors'],
|
|
101
|
-
industries: () => ['reference', 'industries'],
|
|
102
|
-
exchanges: () => ['reference', 'exchanges'],
|
|
103
|
-
},
|
|
104
|
-
// Users
|
|
105
|
-
users: {
|
|
106
|
-
profile: () => ['users', 'profile'],
|
|
107
|
-
preferences: () => ['users', 'preferences'],
|
|
108
|
-
},
|
|
109
|
-
};
|
|
110
|
-
/**
|
|
111
|
-
* Common query options factory
|
|
112
|
-
*/
|
|
113
|
-
export const createQueryOptions = {
|
|
114
|
-
/**
|
|
115
|
-
* Create options for frequently updated data
|
|
116
|
-
*/
|
|
117
|
-
realtime: (platform) => ({
|
|
118
|
-
staleTime: platform === 'mobile' ? 1 * 60 * 1000 : 10 * 1000, // 1min mobile, 10s web
|
|
119
|
-
refetchInterval: platform === 'mobile' ? 2 * 60 * 1000 : 30 * 1000, // 2min mobile, 30s web
|
|
120
|
-
}),
|
|
121
|
-
/**
|
|
122
|
-
* Create options for static reference data
|
|
123
|
-
*/
|
|
124
|
-
reference: () => ({
|
|
125
|
-
staleTime: 24 * 60 * 60 * 1000, // 24 hours
|
|
126
|
-
gcTime: 48 * 60 * 60 * 1000, // 48 hours
|
|
127
|
-
refetchOnWindowFocus: false,
|
|
128
|
-
refetchOnReconnect: false,
|
|
129
|
-
}),
|
|
130
|
-
/**
|
|
131
|
-
* Create options for user-specific data
|
|
132
|
-
*/
|
|
133
|
-
user: (platform) => ({
|
|
134
|
-
staleTime: platform === 'mobile' ? 10 * 60 * 1000 : 2 * 60 * 1000, // 10min mobile, 2min web
|
|
135
|
-
}),
|
|
136
|
-
};
|
package/dist/query/useAuth.d.ts
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Shared authentication React Query hooks
|
|
3
|
-
*
|
|
4
|
-
* Provides consistent authentication state management and operations
|
|
5
|
-
* across web and mobile platforms with proper query invalidation.
|
|
6
|
-
*/
|
|
7
|
-
import { type UseMutationOptions } from '@tanstack/react-query';
|
|
8
|
-
import type { AuthService, SigninPayload, SignupPayload, EmailVerificationPayload } from '../services/AuthService';
|
|
9
|
-
export interface UseAuthOptions {
|
|
10
|
-
authService: AuthService;
|
|
11
|
-
enabled?: boolean;
|
|
12
|
-
}
|
|
13
|
-
export interface AuthMutationOptions<TData, TVariables> extends Omit<UseMutationOptions<TData, Error, TVariables>, 'mutationFn'> {
|
|
14
|
-
authService: AuthService;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Get current user profile with authentication status
|
|
18
|
-
*/
|
|
19
|
-
export declare function useProfile({ authService, enabled }: UseAuthOptions): import("@tanstack/react-query").UseQueryResult<import("..").UserProfile, Error>;
|
|
20
|
-
/**
|
|
21
|
-
* Check authentication status
|
|
22
|
-
*/
|
|
23
|
-
export declare function useAuthStatus({ authService, enabled }: UseAuthOptions): import("@tanstack/react-query").UseQueryResult<{
|
|
24
|
-
authenticated: boolean;
|
|
25
|
-
}, Error>;
|
|
26
|
-
/**
|
|
27
|
-
* Sign in mutation
|
|
28
|
-
*/
|
|
29
|
-
export declare function useSignin(options: AuthMutationOptions<unknown, SigninPayload>): import("@tanstack/react-query").UseMutationResult<unknown, Error, SigninPayload, unknown>;
|
|
30
|
-
/**
|
|
31
|
-
* Sign out mutation
|
|
32
|
-
*/
|
|
33
|
-
export declare function useSignout(options: AuthMutationOptions<unknown, void>): import("@tanstack/react-query").UseMutationResult<unknown, Error, void, unknown>;
|
|
34
|
-
/**
|
|
35
|
-
* Sign up mutation
|
|
36
|
-
*/
|
|
37
|
-
export declare function useSignup(options: AuthMutationOptions<unknown, SignupPayload>): import("@tanstack/react-query").UseMutationResult<unknown, Error, SignupPayload, unknown>;
|
|
38
|
-
/**
|
|
39
|
-
* Email verification mutation
|
|
40
|
-
*/
|
|
41
|
-
export declare function useVerifyEmail(options: AuthMutationOptions<unknown, EmailVerificationPayload>): import("@tanstack/react-query").UseMutationResult<unknown, Error, EmailVerificationPayload, unknown>;
|
|
42
|
-
/**
|
|
43
|
-
* Resend verification code mutation
|
|
44
|
-
*/
|
|
45
|
-
export declare function useResendVerification(options: AuthMutationOptions<unknown, void>): import("@tanstack/react-query").UseMutationResult<unknown, Error, void, unknown>;
|
|
46
|
-
/**
|
|
47
|
-
* Composite auth hook that provides complete authentication state
|
|
48
|
-
*/
|
|
49
|
-
export declare function useAuth(options: UseAuthOptions): {
|
|
50
|
-
user: import("..").UserProfile | undefined;
|
|
51
|
-
isAuthenticated: boolean;
|
|
52
|
-
isLoading: boolean;
|
|
53
|
-
isLoadingProfile: boolean;
|
|
54
|
-
isLoadingStatus: boolean;
|
|
55
|
-
error: Error | null;
|
|
56
|
-
profileError: Error | null;
|
|
57
|
-
statusError: Error | null;
|
|
58
|
-
refetchProfile: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("..").UserProfile, Error>>;
|
|
59
|
-
refetchStatus: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<{
|
|
60
|
-
authenticated: boolean;
|
|
61
|
-
}, Error>>;
|
|
62
|
-
refetch: () => void;
|
|
63
|
-
};
|
|
64
|
-
//# sourceMappingURL=useAuth.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useAuth.d.ts","sourceRoot":"","sources":["../../src/query/useAuth.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAyC,KAAK,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AACvG,OAAO,KAAK,EAAE,WAAW,EAAE,aAAa,EAAE,aAAa,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AAGnH,MAAM,WAAW,cAAc;IAC7B,WAAW,EAAE,WAAW,CAAC;IACzB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,mBAAmB,CAAC,KAAK,EAAE,UAAU,CAAE,SACtD,IAAI,CAAC,kBAAkB,CAAC,KAAK,EAAE,KAAK,EAAE,UAAU,CAAC,EAAE,YAAY,CAAC;IAChE,WAAW,EAAE,WAAW,CAAC;CAC1B;AAED;;GAEG;AACH,wBAAgB,UAAU,CAAC,EAAE,WAAW,EAAE,OAAc,EAAE,EAAE,cAAc,mFAczE;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,EAAE,WAAW,EAAE,OAAc,EAAE,EAAE,cAAc;;UAQ5E;AAED;;GAEG;AACH,wBAAgB,SAAS,CAAC,OAAO,EAAE,mBAAmB,CAAC,OAAO,EAAE,aAAa,CAAC,6FAgB7E;AAED;;GAEG;AACH,wBAAgB,UAAU,CAAC,OAAO,EAAE,mBAAmB,CAAC,OAAO,EAAE,IAAI,CAAC,oFAerE;AAED;;GAEG;AACH,wBAAgB,SAAS,CAAC,OAAO,EAAE,mBAAmB,CAAC,OAAO,EAAE,aAAa,CAAC,6FAe7E;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,mBAAmB,CAAC,OAAO,EAAE,wBAAwB,CAAC,wGAe7F;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,mBAAmB,CAAC,OAAO,EAAE,IAAI,CAAC,oFAOhF;AAED;;GAEG;AACH,wBAAgB,OAAO,CAAC,OAAO,EAAE,cAAc;;;;;;;;;;;;;;EA2B9C"}
|
package/dist/query/useAuth.js
DELETED
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Shared authentication React Query hooks
|
|
3
|
-
*
|
|
4
|
-
* Provides consistent authentication state management and operations
|
|
5
|
-
* across web and mobile platforms with proper query invalidation.
|
|
6
|
-
*/
|
|
7
|
-
import { useQuery, useMutation, useQueryClient } from '@tanstack/react-query';
|
|
8
|
-
import { queryKeys } from './QueryClient';
|
|
9
|
-
/**
|
|
10
|
-
* Get current user profile with authentication status
|
|
11
|
-
*/
|
|
12
|
-
export function useProfile({ authService, enabled = true }) {
|
|
13
|
-
return useQuery({
|
|
14
|
-
queryKey: queryKeys.auth.profile(),
|
|
15
|
-
queryFn: () => authService.getProfile(),
|
|
16
|
-
enabled,
|
|
17
|
-
retry: (failureCount, error) => {
|
|
18
|
-
// Don't retry on authentication errors
|
|
19
|
-
if (error && 'status' in error && error.status === 401) {
|
|
20
|
-
return false;
|
|
21
|
-
}
|
|
22
|
-
return failureCount < 3;
|
|
23
|
-
},
|
|
24
|
-
staleTime: 2 * 60 * 1000, // 2 minutes
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* Check authentication status
|
|
29
|
-
*/
|
|
30
|
-
export function useAuthStatus({ authService, enabled = true }) {
|
|
31
|
-
return useQuery({
|
|
32
|
-
queryKey: queryKeys.auth.status(),
|
|
33
|
-
queryFn: () => authService.checkStatus(),
|
|
34
|
-
enabled,
|
|
35
|
-
retry: false, // Don't retry auth status checks
|
|
36
|
-
staleTime: 1 * 60 * 1000, // 1 minute
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* Sign in mutation
|
|
41
|
-
*/
|
|
42
|
-
export function useSignin(options) {
|
|
43
|
-
const queryClient = useQueryClient();
|
|
44
|
-
const { authService, ...mutationOptions } = options;
|
|
45
|
-
return useMutation({
|
|
46
|
-
mutationFn: (data) => authService.signin(data),
|
|
47
|
-
onSuccess: (...args) => {
|
|
48
|
-
// Invalidate auth-related queries
|
|
49
|
-
queryClient.invalidateQueries({ queryKey: queryKeys.auth.profile() });
|
|
50
|
-
queryClient.invalidateQueries({ queryKey: queryKeys.auth.status() });
|
|
51
|
-
// Call user's onSuccess if provided
|
|
52
|
-
mutationOptions.onSuccess?.(...args);
|
|
53
|
-
},
|
|
54
|
-
...mutationOptions,
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
/**
|
|
58
|
-
* Sign out mutation
|
|
59
|
-
*/
|
|
60
|
-
export function useSignout(options) {
|
|
61
|
-
const queryClient = useQueryClient();
|
|
62
|
-
const { authService, ...mutationOptions } = options;
|
|
63
|
-
return useMutation({
|
|
64
|
-
mutationFn: () => authService.signout(),
|
|
65
|
-
onSuccess: (...args) => {
|
|
66
|
-
// Clear all cached data on signout
|
|
67
|
-
queryClient.clear();
|
|
68
|
-
// Call user's onSuccess if provided
|
|
69
|
-
mutationOptions.onSuccess?.(...args);
|
|
70
|
-
},
|
|
71
|
-
...mutationOptions,
|
|
72
|
-
});
|
|
73
|
-
}
|
|
74
|
-
/**
|
|
75
|
-
* Sign up mutation
|
|
76
|
-
*/
|
|
77
|
-
export function useSignup(options) {
|
|
78
|
-
const { authService, ...mutationOptions } = options;
|
|
79
|
-
return useMutation({
|
|
80
|
-
mutationFn: (data) => authService.signup(data),
|
|
81
|
-
onSuccess: (...args) => {
|
|
82
|
-
// Optionally invalidate auth queries if signup auto-signs in
|
|
83
|
-
// const queryClient = useQueryClient();
|
|
84
|
-
// queryClient.invalidateQueries({ queryKey: queryKeys.auth.profile() });
|
|
85
|
-
// Call user's onSuccess if provided
|
|
86
|
-
mutationOptions.onSuccess?.(...args);
|
|
87
|
-
},
|
|
88
|
-
...mutationOptions,
|
|
89
|
-
});
|
|
90
|
-
}
|
|
91
|
-
/**
|
|
92
|
-
* Email verification mutation
|
|
93
|
-
*/
|
|
94
|
-
export function useVerifyEmail(options) {
|
|
95
|
-
const queryClient = useQueryClient();
|
|
96
|
-
const { authService, ...mutationOptions } = options;
|
|
97
|
-
return useMutation({
|
|
98
|
-
mutationFn: (data) => authService.verifyEmail(data),
|
|
99
|
-
onSuccess: (...args) => {
|
|
100
|
-
// Invalidate profile to get updated verification status
|
|
101
|
-
queryClient.invalidateQueries({ queryKey: queryKeys.auth.profile() });
|
|
102
|
-
// Call user's onSuccess if provided
|
|
103
|
-
mutationOptions.onSuccess?.(...args);
|
|
104
|
-
},
|
|
105
|
-
...mutationOptions,
|
|
106
|
-
});
|
|
107
|
-
}
|
|
108
|
-
/**
|
|
109
|
-
* Resend verification code mutation
|
|
110
|
-
*/
|
|
111
|
-
export function useResendVerification(options) {
|
|
112
|
-
const { authService, ...mutationOptions } = options;
|
|
113
|
-
return useMutation({
|
|
114
|
-
mutationFn: () => authService.resendVerificationCode(),
|
|
115
|
-
...mutationOptions,
|
|
116
|
-
});
|
|
117
|
-
}
|
|
118
|
-
/**
|
|
119
|
-
* Composite auth hook that provides complete authentication state
|
|
120
|
-
*/
|
|
121
|
-
export function useAuth(options) {
|
|
122
|
-
const profileQuery = useProfile(options);
|
|
123
|
-
const statusQuery = useAuthStatus(options);
|
|
124
|
-
return {
|
|
125
|
-
// Data
|
|
126
|
-
user: profileQuery.data,
|
|
127
|
-
isAuthenticated: !!(statusQuery.data && profileQuery.data),
|
|
128
|
-
// Loading states
|
|
129
|
-
isLoading: profileQuery.isLoading || statusQuery.isLoading,
|
|
130
|
-
isLoadingProfile: profileQuery.isLoading,
|
|
131
|
-
isLoadingStatus: statusQuery.isLoading,
|
|
132
|
-
// Error states
|
|
133
|
-
error: profileQuery.error || statusQuery.error,
|
|
134
|
-
profileError: profileQuery.error,
|
|
135
|
-
statusError: statusQuery.error,
|
|
136
|
-
// Refetch functions
|
|
137
|
-
refetchProfile: profileQuery.refetch,
|
|
138
|
-
refetchStatus: statusQuery.refetch,
|
|
139
|
-
refetch: () => {
|
|
140
|
-
profileQuery.refetch();
|
|
141
|
-
statusQuery.refetch();
|
|
142
|
-
},
|
|
143
|
-
};
|
|
144
|
-
}
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Shared portfolio React Query hooks
|
|
3
|
-
*
|
|
4
|
-
* Provides consistent portfolio data management and operations
|
|
5
|
-
* with optimized caching and invalidation patterns.
|
|
6
|
-
*/
|
|
7
|
-
import { type UseMutationOptions } from '@tanstack/react-query';
|
|
8
|
-
import type { PortfolioService, Portfolio, CreatePortfolioPayload, UpdatePortfolioPayload, PortfolioListFilters } from '../services/PortfolioService';
|
|
9
|
-
export interface UsePortfolioServiceOptions {
|
|
10
|
-
portfolioService: PortfolioService;
|
|
11
|
-
}
|
|
12
|
-
export interface PortfolioMutationOptions<TData, TVariables> extends Omit<UseMutationOptions<TData, Error, TVariables>, 'mutationFn'> {
|
|
13
|
-
portfolioService: PortfolioService;
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Get all portfolios with filtering
|
|
17
|
-
*/
|
|
18
|
-
export declare function usePortfolios({ portfolioService }: UsePortfolioServiceOptions, filters?: PortfolioListFilters, enabled?: boolean): import("@tanstack/react-query").UseQueryResult<import("..").PaginatedResponse<Portfolio>, Error>;
|
|
19
|
-
/**
|
|
20
|
-
* Get specific portfolio by ID
|
|
21
|
-
*/
|
|
22
|
-
export declare function usePortfolio({ portfolioService }: UsePortfolioServiceOptions, portfolioId: string, enabled?: boolean): import("@tanstack/react-query").UseQueryResult<Portfolio, Error>;
|
|
23
|
-
/**
|
|
24
|
-
* Get portfolio holdings
|
|
25
|
-
*/
|
|
26
|
-
export declare function usePortfolioHoldings({ portfolioService }: UsePortfolioServiceOptions, portfolioId: string, enabled?: boolean): import("@tanstack/react-query").UseQueryResult<import("..").AssetHolding[], Error>;
|
|
27
|
-
/**
|
|
28
|
-
* Get portfolio allocations
|
|
29
|
-
*/
|
|
30
|
-
export declare function usePortfolioAllocations({ portfolioService }: UsePortfolioServiceOptions, portfolioId: string, enabled?: boolean): import("@tanstack/react-query").UseQueryResult<import("..").AssetAllocation[], Error>;
|
|
31
|
-
/**
|
|
32
|
-
* Get portfolio performance data
|
|
33
|
-
*/
|
|
34
|
-
export declare function usePortfolioPerformance({ portfolioService }: UsePortfolioServiceOptions, portfolioId: string, timeRange?: string, enabled?: boolean): import("@tanstack/react-query").UseQueryResult<import("..").PerformanceData, Error>;
|
|
35
|
-
/**
|
|
36
|
-
* Create portfolio mutation
|
|
37
|
-
*/
|
|
38
|
-
export declare function useCreatePortfolio(options: PortfolioMutationOptions<Portfolio, CreatePortfolioPayload>): import("@tanstack/react-query").UseMutationResult<Portfolio, Error, CreatePortfolioPayload, unknown>;
|
|
39
|
-
/**
|
|
40
|
-
* Update portfolio mutation
|
|
41
|
-
*/
|
|
42
|
-
export declare function useUpdatePortfolio(options: PortfolioMutationOptions<Portfolio, {
|
|
43
|
-
id: string;
|
|
44
|
-
data: UpdatePortfolioPayload;
|
|
45
|
-
}>): import("@tanstack/react-query").UseMutationResult<Portfolio, Error, {
|
|
46
|
-
id: string;
|
|
47
|
-
data: UpdatePortfolioPayload;
|
|
48
|
-
}, unknown>;
|
|
49
|
-
/**
|
|
50
|
-
* Delete portfolio mutation
|
|
51
|
-
*/
|
|
52
|
-
export declare function useDeletePortfolio(options: PortfolioMutationOptions<void, string>): import("@tanstack/react-query").UseMutationResult<void, Error, string, unknown>;
|
|
53
|
-
/**
|
|
54
|
-
* Infinite query for portfolios (useful for large lists)
|
|
55
|
-
*/
|
|
56
|
-
export declare function useInfinitePortfolios({ portfolioService }: UsePortfolioServiceOptions, filters?: PortfolioListFilters): import("@tanstack/react-query").UseInfiniteQueryResult<import("@tanstack/query-core").InfiniteData<import("..").PaginatedResponse<Portfolio>, unknown>, Error>;
|
|
57
|
-
/**
|
|
58
|
-
* Composite hook for complete portfolio management
|
|
59
|
-
*/
|
|
60
|
-
export declare function usePortfolioManagement(serviceOptions: UsePortfolioServiceOptions, portfolioId?: string): {
|
|
61
|
-
portfolios: Portfolio[];
|
|
62
|
-
portfolio: Portfolio | undefined;
|
|
63
|
-
holdings: import("..").AssetHolding[];
|
|
64
|
-
allocations: import("..").AssetAllocation[];
|
|
65
|
-
isLoadingPortfolios: boolean;
|
|
66
|
-
isLoadingPortfolio: boolean;
|
|
67
|
-
isLoadingHoldings: boolean;
|
|
68
|
-
isLoadingAllocations: boolean;
|
|
69
|
-
isLoading: boolean;
|
|
70
|
-
portfoliosError: Error | null;
|
|
71
|
-
portfolioError: Error | null;
|
|
72
|
-
holdingsError: Error | null;
|
|
73
|
-
allocationsError: Error | null;
|
|
74
|
-
refetchPortfolios: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("..").PaginatedResponse<Portfolio>, Error>>;
|
|
75
|
-
refetchPortfolio: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<Portfolio, Error>>;
|
|
76
|
-
refetchHoldings: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("..").AssetHolding[], Error>>;
|
|
77
|
-
refetchAllocations: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("..").AssetAllocation[], Error>>;
|
|
78
|
-
};
|
|
79
|
-
//# sourceMappingURL=usePortfolios.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"usePortfolios.d.ts","sourceRoot":"","sources":["../../src/query/usePortfolios.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAA2D,KAAK,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AACzH,OAAO,KAAK,EACV,gBAAgB,EAChB,SAAS,EACT,sBAAsB,EACtB,sBAAsB,EACtB,oBAAoB,EACrB,MAAM,8BAA8B,CAAC;AAGtC,MAAM,WAAW,0BAA0B;IACzC,gBAAgB,EAAE,gBAAgB,CAAC;CACpC;AAED,MAAM,WAAW,wBAAwB,CAAC,KAAK,EAAE,UAAU,CAAE,SAC3D,IAAI,CAAC,kBAAkB,CAAC,KAAK,EAAE,KAAK,EAAE,UAAU,CAAC,EAAE,YAAY,CAAC;IAChE,gBAAgB,EAAE,gBAAgB,CAAC;CACpC;AAED;;GAEG;AACH,wBAAgB,aAAa,CAC3B,EAAE,gBAAgB,EAAE,EAAE,0BAA0B,EAChD,OAAO,GAAE,oBAAyB,EAClC,OAAO,GAAE,OAAc,oGAQxB;AAED;;GAEG;AACH,wBAAgB,YAAY,CAC1B,EAAE,gBAAgB,EAAE,EAAE,0BAA0B,EAChD,WAAW,EAAE,MAAM,EACnB,OAAO,GAAE,OAAc,oEAQxB;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAClC,EAAE,gBAAgB,EAAE,EAAE,0BAA0B,EAChD,WAAW,EAAE,MAAM,EACnB,OAAO,GAAE,OAAc,sFAQxB;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CACrC,EAAE,gBAAgB,EAAE,EAAE,0BAA0B,EAChD,WAAW,EAAE,MAAM,EACnB,OAAO,GAAE,OAAc,yFAQxB;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CACrC,EAAE,gBAAgB,EAAE,EAAE,0BAA0B,EAChD,WAAW,EAAE,MAAM,EACnB,SAAS,GAAE,MAAa,EACxB,OAAO,GAAE,OAAc,uFAQxB;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,wBAAwB,CAAC,SAAS,EAAE,sBAAsB,CAAC,wGAqBtG;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,wBAAwB,CAAC,SAAS,EAAE;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,sBAAsB,CAAA;CAAE,CAAC;QAAvC,MAAM;UAAQ,sBAAsB;YAsBzH;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,wBAAwB,CAAC,IAAI,EAAE,MAAM,CAAC,mFAoBjF;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CACnC,EAAE,gBAAgB,EAAE,EAAE,0BAA0B,EAChD,OAAO,GAAE,oBAAyB,kKAgBnC;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CACpC,cAAc,EAAE,0BAA0B,EAC1C,WAAW,CAAC,EAAE,MAAM;;;;;;;;;;;;;;;;;;EAiCrB"}
|
|
@@ -1,172 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Shared portfolio React Query hooks
|
|
3
|
-
*
|
|
4
|
-
* Provides consistent portfolio data management and operations
|
|
5
|
-
* with optimized caching and invalidation patterns.
|
|
6
|
-
*/
|
|
7
|
-
import { useQuery, useMutation, useQueryClient, useInfiniteQuery } from '@tanstack/react-query';
|
|
8
|
-
import { queryKeys, createQueryOptions } from './QueryClient';
|
|
9
|
-
/**
|
|
10
|
-
* Get all portfolios with filtering
|
|
11
|
-
*/
|
|
12
|
-
export function usePortfolios({ portfolioService }, filters = {}, enabled = true) {
|
|
13
|
-
return useQuery({
|
|
14
|
-
queryKey: queryKeys.portfolios.all(),
|
|
15
|
-
queryFn: () => portfolioService.getPortfolios(filters),
|
|
16
|
-
enabled,
|
|
17
|
-
...createQueryOptions.user('web'), // Adjust based on platform
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Get specific portfolio by ID
|
|
22
|
-
*/
|
|
23
|
-
export function usePortfolio({ portfolioService }, portfolioId, enabled = true) {
|
|
24
|
-
return useQuery({
|
|
25
|
-
queryKey: queryKeys.portfolios.detail(portfolioId),
|
|
26
|
-
queryFn: () => portfolioService.getPortfolio(portfolioId),
|
|
27
|
-
enabled: enabled && !!portfolioId,
|
|
28
|
-
...createQueryOptions.user('web'),
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Get portfolio holdings
|
|
33
|
-
*/
|
|
34
|
-
export function usePortfolioHoldings({ portfolioService }, portfolioId, enabled = true) {
|
|
35
|
-
return useQuery({
|
|
36
|
-
queryKey: queryKeys.portfolios.holdings(portfolioId),
|
|
37
|
-
queryFn: () => portfolioService.getHoldings(portfolioId),
|
|
38
|
-
enabled: enabled && !!portfolioId,
|
|
39
|
-
...createQueryOptions.realtime('web'), // Holdings update frequently
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* Get portfolio allocations
|
|
44
|
-
*/
|
|
45
|
-
export function usePortfolioAllocations({ portfolioService }, portfolioId, enabled = true) {
|
|
46
|
-
return useQuery({
|
|
47
|
-
queryKey: queryKeys.portfolios.allocations(portfolioId),
|
|
48
|
-
queryFn: () => portfolioService.getAllocations(portfolioId),
|
|
49
|
-
enabled: enabled && !!portfolioId,
|
|
50
|
-
...createQueryOptions.user('web'),
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* Get portfolio performance data
|
|
55
|
-
*/
|
|
56
|
-
export function usePortfolioPerformance({ portfolioService }, portfolioId, timeRange = '1Y', enabled = true) {
|
|
57
|
-
return useQuery({
|
|
58
|
-
queryKey: ['portfolios', portfolioId, 'performance', timeRange],
|
|
59
|
-
queryFn: () => portfolioService.getPerformance(portfolioId, timeRange),
|
|
60
|
-
enabled: enabled && !!portfolioId,
|
|
61
|
-
staleTime: 5 * 60 * 1000, // 5 minutes - performance data doesn't change frequently
|
|
62
|
-
});
|
|
63
|
-
}
|
|
64
|
-
/**
|
|
65
|
-
* Create portfolio mutation
|
|
66
|
-
*/
|
|
67
|
-
export function useCreatePortfolio(options) {
|
|
68
|
-
const queryClient = useQueryClient();
|
|
69
|
-
const { portfolioService, ...mutationOptions } = options;
|
|
70
|
-
return useMutation({
|
|
71
|
-
mutationFn: (data) => portfolioService.createPortfolio(data),
|
|
72
|
-
onSuccess: (newPortfolio, ...args) => {
|
|
73
|
-
// Add new portfolio to the cache
|
|
74
|
-
queryClient.setQueryData(queryKeys.portfolios.detail(newPortfolio.id), newPortfolio);
|
|
75
|
-
// Invalidate portfolios list to include new portfolio
|
|
76
|
-
queryClient.invalidateQueries({ queryKey: queryKeys.portfolios.all() });
|
|
77
|
-
// Call user's onSuccess if provided
|
|
78
|
-
mutationOptions.onSuccess?.(newPortfolio, ...args);
|
|
79
|
-
},
|
|
80
|
-
...mutationOptions,
|
|
81
|
-
});
|
|
82
|
-
}
|
|
83
|
-
/**
|
|
84
|
-
* Update portfolio mutation
|
|
85
|
-
*/
|
|
86
|
-
export function useUpdatePortfolio(options) {
|
|
87
|
-
const queryClient = useQueryClient();
|
|
88
|
-
const { portfolioService, ...mutationOptions } = options;
|
|
89
|
-
return useMutation({
|
|
90
|
-
mutationFn: ({ id, data }) => portfolioService.updatePortfolio(id, data),
|
|
91
|
-
onSuccess: (updatedPortfolio, { id }, ...args) => {
|
|
92
|
-
// Update portfolio in cache
|
|
93
|
-
queryClient.setQueryData(queryKeys.portfolios.detail(id), updatedPortfolio);
|
|
94
|
-
// Invalidate portfolios list to reflect changes
|
|
95
|
-
queryClient.invalidateQueries({ queryKey: queryKeys.portfolios.all() });
|
|
96
|
-
// Call user's onSuccess if provided
|
|
97
|
-
mutationOptions.onSuccess?.(updatedPortfolio, { id, data: { name: updatedPortfolio.name } }, ...args);
|
|
98
|
-
},
|
|
99
|
-
...mutationOptions,
|
|
100
|
-
});
|
|
101
|
-
}
|
|
102
|
-
/**
|
|
103
|
-
* Delete portfolio mutation
|
|
104
|
-
*/
|
|
105
|
-
export function useDeletePortfolio(options) {
|
|
106
|
-
const queryClient = useQueryClient();
|
|
107
|
-
const { portfolioService, ...mutationOptions } = options;
|
|
108
|
-
return useMutation({
|
|
109
|
-
mutationFn: (id) => portfolioService.deletePortfolio(id),
|
|
110
|
-
onSuccess: (_, portfolioId, ...args) => {
|
|
111
|
-
// Remove portfolio from cache
|
|
112
|
-
queryClient.removeQueries({ queryKey: queryKeys.portfolios.detail(portfolioId) });
|
|
113
|
-
queryClient.removeQueries({ queryKey: queryKeys.portfolios.holdings(portfolioId) });
|
|
114
|
-
queryClient.removeQueries({ queryKey: queryKeys.portfolios.allocations(portfolioId) });
|
|
115
|
-
// Invalidate portfolios list to reflect deletion
|
|
116
|
-
queryClient.invalidateQueries({ queryKey: queryKeys.portfolios.all() });
|
|
117
|
-
// Call user's onSuccess if provided
|
|
118
|
-
mutationOptions.onSuccess?.(_, portfolioId, ...args);
|
|
119
|
-
},
|
|
120
|
-
...mutationOptions,
|
|
121
|
-
});
|
|
122
|
-
}
|
|
123
|
-
/**
|
|
124
|
-
* Infinite query for portfolios (useful for large lists)
|
|
125
|
-
*/
|
|
126
|
-
export function useInfinitePortfolios({ portfolioService }, filters = {}) {
|
|
127
|
-
return useInfiniteQuery({
|
|
128
|
-
queryKey: ['portfolios', 'infinite', filters],
|
|
129
|
-
queryFn: ({ pageParam = 1 }) => portfolioService.getPortfolios({ ...filters, page: pageParam }),
|
|
130
|
-
initialPageParam: 1,
|
|
131
|
-
getNextPageParam: (lastPage) => {
|
|
132
|
-
if (lastPage.next) {
|
|
133
|
-
const url = new URL(lastPage.next);
|
|
134
|
-
return Number(url.searchParams.get('page'));
|
|
135
|
-
}
|
|
136
|
-
return undefined;
|
|
137
|
-
},
|
|
138
|
-
...createQueryOptions.user('web'),
|
|
139
|
-
});
|
|
140
|
-
}
|
|
141
|
-
/**
|
|
142
|
-
* Composite hook for complete portfolio management
|
|
143
|
-
*/
|
|
144
|
-
export function usePortfolioManagement(serviceOptions, portfolioId) {
|
|
145
|
-
const portfoliosQuery = usePortfolios(serviceOptions);
|
|
146
|
-
const portfolioQuery = usePortfolio(serviceOptions, portfolioId || '', !!portfolioId);
|
|
147
|
-
const holdingsQuery = usePortfolioHoldings(serviceOptions, portfolioId || '', !!portfolioId);
|
|
148
|
-
const allocationsQuery = usePortfolioAllocations(serviceOptions, portfolioId || '', !!portfolioId);
|
|
149
|
-
return {
|
|
150
|
-
// Data
|
|
151
|
-
portfolios: portfoliosQuery.data?.results || [],
|
|
152
|
-
portfolio: portfolioQuery.data,
|
|
153
|
-
holdings: holdingsQuery.data || [],
|
|
154
|
-
allocations: allocationsQuery.data || [],
|
|
155
|
-
// Loading states
|
|
156
|
-
isLoadingPortfolios: portfoliosQuery.isLoading,
|
|
157
|
-
isLoadingPortfolio: portfolioQuery.isLoading,
|
|
158
|
-
isLoadingHoldings: holdingsQuery.isLoading,
|
|
159
|
-
isLoadingAllocations: allocationsQuery.isLoading,
|
|
160
|
-
isLoading: portfoliosQuery.isLoading || portfolioQuery.isLoading,
|
|
161
|
-
// Error states
|
|
162
|
-
portfoliosError: portfoliosQuery.error,
|
|
163
|
-
portfolioError: portfolioQuery.error,
|
|
164
|
-
holdingsError: holdingsQuery.error,
|
|
165
|
-
allocationsError: allocationsQuery.error,
|
|
166
|
-
// Refetch functions
|
|
167
|
-
refetchPortfolios: portfoliosQuery.refetch,
|
|
168
|
-
refetchPortfolio: portfolioQuery.refetch,
|
|
169
|
-
refetchHoldings: holdingsQuery.refetch,
|
|
170
|
-
refetchAllocations: allocationsQuery.refetch,
|
|
171
|
-
};
|
|
172
|
-
}
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Authentication service with React Query integration
|
|
3
|
-
*
|
|
4
|
-
* Provides authentication operations with proper query invalidation
|
|
5
|
-
* and state management across platforms.
|
|
6
|
-
*/
|
|
7
|
-
import type { BaseApiClient } from '../core/BaseApiClient';
|
|
8
|
-
import { BaseService } from './BaseService';
|
|
9
|
-
export interface SigninPayload {
|
|
10
|
-
email: string;
|
|
11
|
-
password: string;
|
|
12
|
-
}
|
|
13
|
-
export interface SignupPayload {
|
|
14
|
-
email: string;
|
|
15
|
-
password: string;
|
|
16
|
-
first_name: string;
|
|
17
|
-
last_name: string;
|
|
18
|
-
}
|
|
19
|
-
export interface EmailVerificationPayload {
|
|
20
|
-
email: string;
|
|
21
|
-
verification_code: string;
|
|
22
|
-
}
|
|
23
|
-
export interface TokenRefreshPayload {
|
|
24
|
-
refresh: string;
|
|
25
|
-
}
|
|
26
|
-
export interface TokenRefreshResponse {
|
|
27
|
-
access: string;
|
|
28
|
-
refresh: string;
|
|
29
|
-
}
|
|
30
|
-
export interface UserProfile {
|
|
31
|
-
id: string;
|
|
32
|
-
email: string;
|
|
33
|
-
first_name: string;
|
|
34
|
-
last_name: string;
|
|
35
|
-
is_verified: boolean;
|
|
36
|
-
is_signup_completed: boolean;
|
|
37
|
-
}
|
|
38
|
-
export declare class AuthService extends BaseService {
|
|
39
|
-
constructor(apiClient: BaseApiClient);
|
|
40
|
-
/**
|
|
41
|
-
* Sign in user
|
|
42
|
-
*/
|
|
43
|
-
signin(data: SigninPayload): Promise<unknown>;
|
|
44
|
-
/**
|
|
45
|
-
* Sign out user
|
|
46
|
-
*/
|
|
47
|
-
signout(): Promise<unknown>;
|
|
48
|
-
/**
|
|
49
|
-
* Sign up new user
|
|
50
|
-
*/
|
|
51
|
-
signup(data: SignupPayload): Promise<unknown>;
|
|
52
|
-
/**
|
|
53
|
-
* Verify email address
|
|
54
|
-
*/
|
|
55
|
-
verifyEmail(data: EmailVerificationPayload): Promise<unknown>;
|
|
56
|
-
/**
|
|
57
|
-
* Resend verification code
|
|
58
|
-
*/
|
|
59
|
-
resendVerificationCode(): Promise<unknown>;
|
|
60
|
-
/**
|
|
61
|
-
* Refresh authentication tokens
|
|
62
|
-
*/
|
|
63
|
-
refreshToken(data: TokenRefreshPayload): Promise<TokenRefreshResponse>;
|
|
64
|
-
/**
|
|
65
|
-
* Get current user profile
|
|
66
|
-
*/
|
|
67
|
-
getProfile(): Promise<UserProfile>;
|
|
68
|
-
/**
|
|
69
|
-
* Check authentication status
|
|
70
|
-
*/
|
|
71
|
-
checkStatus(): Promise<{
|
|
72
|
-
authenticated: boolean;
|
|
73
|
-
}>;
|
|
74
|
-
}
|
|
75
|
-
//# sourceMappingURL=AuthService.d.ts.map
|