import type * as External from './External'; export interface MorningstarAPIOptions { /** * Access options to get authorized access to the Morningstar Direct Web * Services. */ access?: MorningstarAccessOptions; /** * Optional offline response source that bypasses authentication and * network requests. * * Supports a single JSON value that is used as offline response. The value * has to be provided in a format that is compatible with available * connectors. * * For multi-request scenarios, object keys can match request types (for * example `AssetAllocationBreakdown`) to provide payloads per request. */ json?: unknown; /** * Internal flag to indicate that the credentials are used for the * Morningstar Direct Web Services new API. */ isDWS?: boolean; /** * Absolute URL or relative URL path to the API to be used. * * Defaults to the nearest region of the Morningstar Direct Web Services * based on the browser localization settings. */ url?: string; /** * Manually set the version of API. * * Default to the version number of the API URL or `1`. */ version?: number; } export interface MorningstarAccessOptions { /** * Password for the Morningstar Direct Web Services new API. */ dwsPassword?: string; /** * Username for the Morningstar Direct Web Services new API. */ dwsUsername?: string; /** * Use the password in combination with the username for the Morningstar * Direct Web Services. */ password?: string; /** * Use the given token for the Morningstar Direct Web Services instead of * username and password. */ token?: string; /** * Absolute URL or relative URL path to the API to be used. * * Defaults to the nearest region of the Morningstar Direct Web Services * based on the browser localization settings. */ url?: string; /** * Use the username in combination with the password for the Morningstar * Direct Web Services. */ username?: string; } export interface MorningstarConverterOptions extends External.DataConverterOptions { /** * JSON data from Morningstar Direct Web Service. */ json?: unknown; } export interface MorningstarHoldingAmountOptions extends MorningstarHoldingOptions { /** * Holding amount. */ amount: number; } export type MorningstarHoldingIdentiferType = ('CUSIP' | 'FundCode' | 'ISIN' | 'MSID' | 'PerformanceId' | 'SecurityID' | 'TradingSymbol'); export type MorningstarHoldingOptions = MorningstarSecurityOptionsGeneric; export interface MorningstarHoldingValueOptions extends MorningstarHoldingOptions { /** * Holding value. */ value: number; } export interface MorningstarHoldingWeightOptions extends MorningstarHoldingOptions { /** * Holding weight. */ weight: (number | string); } export interface MorningstarMetadata extends External.DataConnectorMetadata { } export interface MorningstarOptions extends External.DataConnectorOptions { /** * Options to configure the API communication with the Morningstar Direct * Web Services. */ api?: MorningstarAPIOptions; /** * Options to configure connector details. */ converter?: MorningstarConverterOptions; /** * Internal flag to indicate that the credentials are used for the * Morningstar Direct Web Services new API. */ isDWS?: boolean; /** * Options to configure the connector from provided Postman files. */ postman?: MorningstarPostmanOptions; } /** * Options to load the Morningstar Direct Web Service options from a provided * Postman file. */ export interface MorningstarPostmanOptions { /** * Postman JSON to use. */ environmentJSON?: unknown; /** * URL or path to the shared Postman Environment to use. */ environmentURL?: string; } interface MorningstarSecurityOptionsGeneric { /** * Security identifier. */ id: string; /** * Security identifier type. */ idType: IDType; /** * Name of the security. */ name?: string; /** * Type of security. */ type?: (string | MorningstarSecurityType); /** * Type of holding. */ holdingType?: string; /** * Weight of holding. */ weight?: (number | string); } export type MorningstarSecurityOptions = MorningstarSecurityOptionsGeneric; export declare enum MorningstarSecurityType { Bond = "BD", Cash = "CASH", CategoryAverage = "CA", ClosedEndFund = "FC", EconomicsSeries = "EI", ExchangeTradedFund = "FE", Index = "XI", InsuranceProductFund = "FV", MoneyMarketFund = "FM", OpenEndFund = "FO", Portfolio529 = "CT", SeparateAccount = "SA", Stock = "ST", UKLPSubAccounts = "VA", UnitInvestmentTrust = "FI", VariableAnnuity = "V1" } export declare function isMorningstarHoldingAmountOptions(options?: unknown): options is MorningstarHoldingAmountOptions; export declare function isMorningstarHoldingValueOptions(options?: unknown): options is MorningstarHoldingValueOptions; export declare function isMorningstarHoldingWeightOptions(options?: unknown): options is MorningstarHoldingWeightOptions; export default MorningstarOptions;