UNPKG

@deltares/fews-pi-requests

Version:

Library for making requests to the FEWS PI webservice

118 lines (117 loc) 3.03 kB
/** * WebOCComponentSettings PI_JSON */ export interface WebOCComponentSettingsResponse { webOCComponentSettings?: WebOCComponentSettingsClass; } export interface WebOCComponentSettingsClass { id?: string; map?: MapSettings; charts?: ChartsSettings; ssd?: SSDSettings; report?: ReportSettings; } export interface MapSettings { wmsLayer?: WmsLayer; locationsLayer?: LocationsLayer; overlays?: Overlay[]; } export interface WmsLayer { show?: boolean; autoPlay?: boolean; animateVectors?: boolean; doubleClickAction?: boolean; } export interface LocationsLayer { show?: boolean; locationNames?: boolean; singleClickAction?: boolean; locationSearchEnabled?: boolean; minZoom?: LocationsLayerZoomSettings; maxZoom?: LocationsLayerZoomSettings; } export interface LocationsLayerZoomSettings { level: number; levelLocationAttribute?: string; } export interface Overlay { type: "overLay" | "gridLayer" | "externalOverLay"; id?: string; name?: string; styleJsonFile?: string; visible?: boolean; } export interface ChartsSettings { general?: General; actions?: Actions; timeSeriesChart?: Chart; timeSeriesTable?: TimeSeriesTable; verticalProfileChart?: Chart; verticalProfileTable?: VerticalProfileTable; metaDataPanel?: MetaDataPanel; } export interface General { startPanel?: "timeSeriesChart" | "verticalProfileChart" | "timeSeriesTable" | "verticalProfileTable" | "metaDataPanel"; toolBar?: "false" | "true" | "auto"; locationNames?: boolean; } export interface Actions { panelPlacement?: PanelPlacement; downloadData?: boolean; downloadMetaData?: boolean; downloadFigure?: boolean; } export interface PanelPlacement { defaultPlacement?: string; allowedPlacement?: string[]; } export interface Chart { enabled?: boolean; locationEnabledAttribute?: string; legend?: Legend; xAxis?: XAxis; yAxis?: YAxis; } export interface Legend { minNumberOfLines?: string; maxNumberOfLines?: string; placement?: string; } export interface XAxis { enabled?: boolean; xTicks?: boolean; xLabel?: boolean; } export interface YAxis { enabled?: boolean; yTicks?: boolean; yLabel?: boolean; } export interface TimeSeriesTable { enabled?: boolean; locationEnabledAttribute?: string; allowDateTimeSorting?: boolean; sortDateTimeColumn?: string; } export interface VerticalProfileTable { enabled?: boolean; locationEnabledAttribute?: string; allowDepthSorting?: boolean; sortDepthColumn?: string; } export interface MetaDataPanel { enabled?: boolean; locationEnabledAttribute?: string; } export interface SSDSettings { zoomEnabled?: boolean; singleClickAction?: boolean; doubleClickAction?: boolean; useBrowserStyle?: boolean; } export interface ReportSettings { downloadReport?: boolean; nonCurrentReports?: boolean; reportName?: boolean; analysisTimes?: boolean; }