import { CashFoundType, AccountConfigType, GetPorfolioConfigType, AccountDataType, SearchProductOptionsType, SearchProductResultType, OrderType, CreateOrderResultType, IsLoginOptionsType, GetOrdersConfigType, GetOrdersResultType, GetAccountStateOptionsType, AccountReportsType, AccountInfoType, FavouriteProductType, StockType, GetHistoricalOrdersOptionsType, HistoricalOrdersType, GetNewsOptionsType, NewsType, WebSettingsType, WebUserSettingType, ConfigDictionaryType, i18nMessagesType, GetPopularStocksConfigType, } from '../types' /** * @interface DeGiroClassInterface */ export interface DeGiroClassInterface { /* Session methods */ login(): Promise logout(): Promise isLogin(options?: IsLoginOptionsType): boolean | Promise getJSESSIONID(): string | undefined /* Account methods */ getAccountConfig(sessionId: string): Promise getAccountData(): Promise getAccountState(options: GetAccountStateOptionsType): Promise getAccountReports(): Promise getAccountInfo(): Promise /* Search methods */ searchProduct(options: SearchProductOptionsType): Promise /* Cash Funds methods */ getCashFunds(): Promise /* Porfolio methods */ getPortfolio(config: GetPorfolioConfigType): Promise /* Stocks methods */ getFavouriteProducts(): Promise getPopularStocks(config: GetPopularStocksConfigType): Promise /* Orders methods */ getOrders(options: GetOrdersConfigType): Promise getHistoricalOrders(options: GetHistoricalOrdersOptionsType): Promise createOrder(order: OrderType): Promise executeOrder(order: OrderType, executeId: string): Promise deleteOrder(orderId: String): Promise /* Miscellaneous methods */ getProductsByIds(ids: string[]): Promise getNews(options: GetNewsOptionsType): Promise getWebi18nMessages(lang: string): Promise getWebSettings(): Promise getWebUserSettings(): Promise getConfigDictionary(): Promise }