@deltares/fews-pi-requests
Version:
Library for making requests to the FEWS PI webservice
90 lines (89 loc) • 2.16 kB
TypeScript
export interface DataAnalysisDisplaysResponse {
dataAnalysisDisplays?: DataAnalysisDisplayElement[];
}
export interface DataAnalysisDisplayElement {
id: string;
name: string;
relativeViewPeriod: AnalysisRelativeViewPeriod;
filters: Filter[];
selectionPanel: SelectionPanel;
toolBoxes: ToolBoxes;
archiveCoupling?: ArchiveCoupling;
}
export interface AnalysisRelativeViewPeriod {
unit: string;
start: string;
end: string;
}
export interface Filter {
id: string;
name: string;
}
export interface SelectionPanel {
locationSelection: Selection;
parameterSelection: Selection;
moduleInstanceSelection: Selection1;
locationAttributeSelection: LocationAttributeSelection;
}
export interface Selection {
name: string;
}
export interface Selection1 {
name: string;
enabled?: boolean;
}
export interface LocationAttributeSelection {
enabled?: boolean;
attributes?: LocationAttributeSelection1[];
}
export interface LocationAttributeSelection1 {
attributeId: string;
name: string;
}
export interface ToolBoxes {
resampling: Correlation;
correlation?: Correlation;
toolboxWorkflows?: ToolboxWorkflow[];
}
export interface Correlation {
enabled: boolean;
}
export interface ToolboxWorkflow {
id: string;
name: string;
workflowId: string;
whatIfTemplateId: string;
iconId?: string;
results: Results;
}
export interface Results {
filterId: string;
archiveProducts: DataAnalysisDisplayArchiveProduct[];
}
export interface DataAnalysisDisplayArchiveProduct {
id?: string;
name?: string;
areaId?: string;
sourceId?: string;
versionKeys?: string[];
attributes?: DataAnalysisDisplayArchiveProductAttribute[];
}
export interface DataAnalysisDisplayArchiveProductAttribute {
key?: string;
value?: string;
}
export interface ArchiveCoupling {
enabled: boolean;
metaData: MetaData;
}
export interface MetaData {
properties: Properties;
attributes: Attribute[];
}
export interface Properties {
areaId: string;
sourceId: string;
}
export interface Attribute {
[k: string]: unknown;
}