UNPKG

stocklift-charts

Version:

StockLift Web Component Charts

79 lines (78 loc) 2.38 kB
import { LitElement } from "lit"; import { StockLiftConfig, StockLiftClient } from "./models/stocklift.config.model"; import "./charts/sl-summary"; import "./charts/sl-sector-diversification"; import "./charts/sl-top-holdings"; import "./charts/sl-sp500-benchmark"; import "./charts/sl-projections"; export declare class StockLiftCharts extends LitElement { #private; config: StockLiftConfig | null; netWorth: string; private returnOnInvestment; private changeFromLastClose; private diversificationScore; private assetImages; private totalHoldings; private sectorDiversification; private myChart; private sp500; private growthProjections; currentIndex: number; private plaidHandler; private initalized; firstUpdated(): void; validateProperties(): string | null; initializePlaid(): Promise<void>; openPlaidLink(): void; /** * * * Exchange the Plaid public token for an access token * * @param publicToken * @param institutionName * @param institutionId * @param accounts * @param client * @returns */ plaidExchanageToken(publicToken: string, institutionName: string, institutionId: string, accounts: any, client: StockLiftClient): Promise<any>; /** * * Fetch the Plaid Link token from the StockLift API * @returns * * /plaid/token?companyName=string&clientName=string&clientEmail=string&clientId=string */ getPlaidLinkToken(): Promise<any>; /** * * Fetch the Geo Diversification data from the StockLift API * Map Data * * /portfolio/geo_diversification/:clientId */ getGeoDiversification(): Promise<void>; /** * * Fetch the Asset Images data from the StockLift API */ getAssetImages(): Promise<void>; /** * * Fetch the benchmark data from the StockLift API * * /portfolio/benchmark/:clientId */ getBenchmark(): Promise<void>; /** * * Fetch the portfolio data from the StockLift API * * /portfolio/:clientId */ getPortfolio(): Promise<void>; get views(): import("lit-html").TemplateResult<1>[]; static styles: import("lit").CSSResult[]; render(): import("lit-html").TemplateResult<1>; } declare global { interface HTMLElementTagNameMap { "stocklift-charts": StockLiftCharts; } }