@opengeoweb/time-series 13.2.1 → 14.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.esm.js +695 -689
- package/package.json +10 -10
- package/src/lib/components/TimeSeries/types.d.ts +34 -29
- package/src/lib/components/TimeSeries/utils.d.ts +17 -11
- package/src/lib/components/TimeSeriesManager/ParameterInfo/ParameterInfoDialog.d.ts +12 -8
- package/src/lib/components/TimeSeriesSelect/TimeSeriesSelectList.d.ts +4 -4
- package/src/lib/components/TimeSeriesSelect/TimeSeriesSelectListConnect.d.ts +1 -0
- package/src/lib/components/TimeSeriesSelect/utils.d.ts +4 -3
- package/src/lib/utils/edrUtils.d.ts +6 -9
- package/src/lib/utils/timeseries-api/api.d.ts +7 -5
- package/src/lib/utils/timeseries-api/hooks.d.ts +44 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/time-series",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "14.0.0",
|
|
4
4
|
"description": "GeoWeb time-series library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -9,26 +9,26 @@
|
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"immer": "^10.0.3",
|
|
12
|
-
"@opengeoweb/shared": "
|
|
12
|
+
"@opengeoweb/shared": "14.0.0",
|
|
13
13
|
"@reduxjs/toolkit": "^2.6.1",
|
|
14
14
|
"react-redux": "^9.2.0",
|
|
15
|
-
"@opengeoweb/webmap": "
|
|
16
|
-
"@opengeoweb/webmap-react": "
|
|
15
|
+
"@opengeoweb/webmap": "14.0.0",
|
|
16
|
+
"@opengeoweb/webmap-react": "14.0.0",
|
|
17
17
|
"lodash": "^4.17.21",
|
|
18
|
-
"@opengeoweb/api": "
|
|
19
|
-
"@opengeoweb/theme": "
|
|
20
|
-
"@opengeoweb/store": "
|
|
18
|
+
"@opengeoweb/api": "14.0.0",
|
|
19
|
+
"@opengeoweb/theme": "14.0.0",
|
|
20
|
+
"@opengeoweb/store": "14.0.0",
|
|
21
21
|
"echarts-for-react": "^3.0.2",
|
|
22
22
|
"echarts": "^5.4.3",
|
|
23
23
|
"react-sortablejs": "^6.1.4",
|
|
24
|
-
"@opengeoweb/snackbar": "
|
|
24
|
+
"@opengeoweb/snackbar": "14.0.0",
|
|
25
25
|
"react-window": "^1.8.10",
|
|
26
26
|
"react-virtualized-auto-sizer": "^1.0.21",
|
|
27
27
|
"msw": "^2.7.3",
|
|
28
28
|
"i18next": "^25.0.1",
|
|
29
29
|
"react-i18next": "^15.1.1",
|
|
30
|
-
"@opengeoweb/core": "
|
|
31
|
-
"@opengeoweb/form-fields": "
|
|
30
|
+
"@opengeoweb/core": "14.0.0",
|
|
31
|
+
"@opengeoweb/form-fields": "14.0.0",
|
|
32
32
|
"@mui/material": "^7.0.1",
|
|
33
33
|
"react-hook-form": "^7.61.1",
|
|
34
34
|
"uuid": "^10.0.0",
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { syncGroupsTypes } from '@opengeoweb/store';
|
|
2
|
+
import { MapFeatureClass } from '@opengeoweb/webmap-react';
|
|
1
3
|
import { FeatureCollection, GeometryObject } from 'geojson';
|
|
2
4
|
export interface Geometry {
|
|
3
5
|
type: string;
|
|
@@ -8,6 +10,14 @@ export interface Properties {
|
|
|
8
10
|
propertyName: string;
|
|
9
11
|
values: number[];
|
|
10
12
|
}
|
|
13
|
+
export interface UseGetLocationReturnTypeProperties {
|
|
14
|
+
name?: string;
|
|
15
|
+
detail?: string;
|
|
16
|
+
serviceId: string;
|
|
17
|
+
collectionId: string;
|
|
18
|
+
parameterName?: string[];
|
|
19
|
+
mapFeatureClass: MapFeatureClass;
|
|
20
|
+
}
|
|
11
21
|
export interface ObservationProperties {
|
|
12
22
|
timestep: string[];
|
|
13
23
|
observedPropertyName: string;
|
|
@@ -44,6 +54,7 @@ export interface Parameter {
|
|
|
44
54
|
plotId: string;
|
|
45
55
|
unit?: string;
|
|
46
56
|
propertyName: string;
|
|
57
|
+
propertyLabel?: string;
|
|
47
58
|
plotType: PlotType | 'area';
|
|
48
59
|
enabled?: boolean;
|
|
49
60
|
color?: string;
|
|
@@ -67,19 +78,9 @@ export interface PointerLocation {
|
|
|
67
78
|
lon: number;
|
|
68
79
|
lat: number;
|
|
69
80
|
}
|
|
70
|
-
export interface Occurrence {
|
|
71
|
-
id: string;
|
|
72
|
-
properties: OccurrenceProperties;
|
|
73
|
-
}
|
|
74
|
-
export interface OccurrenceProperties {
|
|
75
|
-
name: string;
|
|
76
|
-
serviceId: string;
|
|
77
|
-
collectionId: string;
|
|
78
|
-
parameterName?: string;
|
|
79
|
-
}
|
|
80
81
|
export interface TimeSeriesLocation extends PointerLocation {
|
|
81
82
|
id?: string;
|
|
82
|
-
occurrences?: Occurrence[];
|
|
83
|
+
occurrences?: syncGroupsTypes.Occurrence[];
|
|
83
84
|
}
|
|
84
85
|
export declare const isTimeSeriesLocation: (obj: PointerLocation | TimeSeriesLocation) => obj is TimeSeriesLocation;
|
|
85
86
|
export interface EDRAxes {
|
|
@@ -103,6 +104,7 @@ export interface EDRObservedProperty {
|
|
|
103
104
|
export type EDRI18nString = string | Record<string, string>;
|
|
104
105
|
export interface EDRParameter {
|
|
105
106
|
id: string;
|
|
107
|
+
label?: string;
|
|
106
108
|
observedProperty?: EDRObservedProperty;
|
|
107
109
|
unit?: {
|
|
108
110
|
label?: EDRI18nString;
|
|
@@ -132,27 +134,29 @@ export interface EDRPositionResponseCoverageCollection {
|
|
|
132
134
|
parameters: EDRParameters;
|
|
133
135
|
type: string;
|
|
134
136
|
}
|
|
137
|
+
export interface EDRDataQueriesObject {
|
|
138
|
+
cube?: object;
|
|
139
|
+
locations?: object;
|
|
140
|
+
position?: object;
|
|
141
|
+
instances?: object;
|
|
142
|
+
}
|
|
143
|
+
export interface EDRExtentObject {
|
|
144
|
+
temporal?: {
|
|
145
|
+
interval: string[][];
|
|
146
|
+
trs: string;
|
|
147
|
+
values: string[];
|
|
148
|
+
};
|
|
149
|
+
spatial?: {
|
|
150
|
+
crs: string;
|
|
151
|
+
bbox: [number, number, number, number] | [[number, number, number, number]];
|
|
152
|
+
};
|
|
153
|
+
custom?: CustomDimension[];
|
|
154
|
+
}
|
|
135
155
|
export interface EDRCollection {
|
|
136
156
|
parameter_names?: object;
|
|
137
157
|
parameters?: object;
|
|
138
|
-
data_queries?:
|
|
139
|
-
|
|
140
|
-
locations?: object;
|
|
141
|
-
position?: object;
|
|
142
|
-
instances?: object;
|
|
143
|
-
};
|
|
144
|
-
extent?: {
|
|
145
|
-
temporal?: {
|
|
146
|
-
interval: string[][];
|
|
147
|
-
trs: string;
|
|
148
|
-
values: string[];
|
|
149
|
-
};
|
|
150
|
-
spatial: {
|
|
151
|
-
crs: string;
|
|
152
|
-
bbox: [number, number, number, number];
|
|
153
|
-
};
|
|
154
|
-
custom?: CustomDimension[];
|
|
155
|
-
};
|
|
158
|
+
data_queries?: EDRDataQueriesObject;
|
|
159
|
+
extent?: EDRExtentObject;
|
|
156
160
|
id: string;
|
|
157
161
|
title: string;
|
|
158
162
|
description: string;
|
|
@@ -213,6 +217,7 @@ export type EdrCollections = Record<string, {
|
|
|
213
217
|
}>;
|
|
214
218
|
export interface SelectParameter {
|
|
215
219
|
propertyName: string;
|
|
220
|
+
propertyLabel?: string;
|
|
216
221
|
unit: string;
|
|
217
222
|
plotType: PlotType;
|
|
218
223
|
serviceId: string;
|
|
@@ -1,15 +1,21 @@
|
|
|
1
|
-
import { Plot, PlotParameter, TimeSeriesService } from '@opengeoweb/shared';
|
|
2
|
-
import { FeatureCollection,
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
export declare const createGeoJsonArrays: (locations: (FeatureCollection<GeometryObject,
|
|
6
|
-
combinedGeoJson: FeatureCollection<GeometryObject,
|
|
1
|
+
import { Plot, PlotParameter, PlotPreset, TimeSeriesService } from '@opengeoweb/shared';
|
|
2
|
+
import { FeatureCollection, GeometryObject } from 'geojson';
|
|
3
|
+
import { syncGroupsTypes } from '@opengeoweb/store';
|
|
4
|
+
import { EDRPositionResponse, EDRPositionResponseCoverageCollection, GeoJsonWithService, Parameter, ParameterWithData, PlotWithData, PointerLocation, TimeSeriesLocation, UseGetLocationReturnTypeProperties } from './types';
|
|
5
|
+
export declare const createGeoJsonArrays: (locations: (FeatureCollection<GeometryObject, UseGetLocationReturnTypeProperties> | undefined)[], services: TimeSeriesService[] | undefined, hideFeatures: boolean, memoizedSelectedFeature: TimeSeriesLocation | null) => {
|
|
6
|
+
combinedGeoJson: FeatureCollection<GeometryObject, syncGroupsTypes.PotentialDataProperties>;
|
|
7
7
|
};
|
|
8
|
-
export declare const
|
|
9
|
-
export declare const fetchParameter: (parameter: PlotParameter, selectedLocation: PointerLocation, service: TimeSeriesService, geojsonMap: Map<string, GeoJsonWithService>, collection?: TimeseriesCollectionDetail) => Promise<ParameterWithData | null>;
|
|
8
|
+
export declare const getNearbyLocation: (parameter: Parameter, service: TimeSeriesService, selectedLocation: PointerLocation, geojsonMap: Map<string, GeoJsonWithService>) => TimeSeriesLocation | null;
|
|
10
9
|
export declare const getPlotsWithParameters: (plots: Plot[], parameters: ParameterWithData[]) => PlotWithData[];
|
|
11
|
-
export declare function consolidateFeatures(features: {
|
|
10
|
+
export declare function consolidateFeatures<P>(features: {
|
|
12
11
|
id: string;
|
|
13
|
-
geoJSON: FeatureCollection<GeometryObject>;
|
|
14
|
-
}[]): FeatureCollection<GeometryObject>;
|
|
12
|
+
geoJSON: FeatureCollection<GeometryObject, P>;
|
|
13
|
+
}[]): FeatureCollection<GeometryObject, P>;
|
|
15
14
|
export declare const combineParametersWithData: (parameters: Parameter[], data: ParameterWithData[]) => ParameterWithData[];
|
|
15
|
+
export interface ParameterCollectionQueryData {
|
|
16
|
+
serviceId: string;
|
|
17
|
+
service: TimeSeriesService;
|
|
18
|
+
collectionId: string;
|
|
19
|
+
}
|
|
20
|
+
export declare const extractUsedCollections: (plotsWithoutData: PlotPreset, services: TimeSeriesService[]) => Record<string, ParameterCollectionQueryData>;
|
|
21
|
+
export declare const extractDataFromfetchEdrParameterResponse: (edrResponse: EDRPositionResponse | EDRPositionResponseCoverageCollection | null, parameter: PlotParameter) => ParameterWithData | null;
|
|
@@ -2,16 +2,15 @@ import React from 'react';
|
|
|
2
2
|
import { TimeSeriesService } from '@opengeoweb/shared';
|
|
3
3
|
import { uiTypes } from '@opengeoweb/store';
|
|
4
4
|
import { EDRInstance, Parameter } from '../../TimeSeries/types';
|
|
5
|
-
|
|
6
|
-
isLoading: true;
|
|
7
|
-
} | {
|
|
8
|
-
isLoading: false;
|
|
9
|
-
instances: EDRInstance[];
|
|
10
|
-
};
|
|
5
|
+
import { TimeseriesCollectionDetail } from '../../TimeSeriesSelect/utils';
|
|
11
6
|
export interface ParameterInfoDialogProps {
|
|
12
7
|
currentParameterInfo: Parameter;
|
|
13
8
|
relatedService: TimeSeriesService | undefined;
|
|
14
|
-
|
|
9
|
+
collectionInformation: TimeseriesCollectionDetail | undefined;
|
|
10
|
+
isLoadingCollectionInformation: boolean;
|
|
11
|
+
instanceInformation: EDRInstance[] | undefined;
|
|
12
|
+
isLoadingInstanceInformation: boolean;
|
|
13
|
+
supportsInstances: boolean;
|
|
15
14
|
onClose: () => void;
|
|
16
15
|
isOpen: boolean;
|
|
17
16
|
onMouseDown?: () => void;
|
|
@@ -21,7 +20,12 @@ export interface ParameterInfoDialogProps {
|
|
|
21
20
|
}
|
|
22
21
|
export declare const ParameterInfoDialog: React.FC<ParameterInfoDialogProps>;
|
|
23
22
|
export declare const QueryInfoElement: React.FC<{
|
|
24
|
-
|
|
23
|
+
queryInformation: TimeseriesCollectionDetail | undefined;
|
|
24
|
+
isLoadingCollectionInformation: boolean;
|
|
25
|
+
}>;
|
|
26
|
+
export declare const DimensionInfoElement: React.FC<{
|
|
27
|
+
instanceInformation: EDRInstance[] | undefined;
|
|
28
|
+
isLoading: boolean;
|
|
25
29
|
}>;
|
|
26
30
|
export interface ParameterInfoTextProps {
|
|
27
31
|
label: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import type { FC } from 'react';
|
|
2
|
+
import type { TimeseriesCollectionDetail } from './utils';
|
|
3
|
+
import type { ServiceFilterChipsObjectEntities } from '../../store/types';
|
|
4
|
+
import type { Parameter, Plot } from '../TimeSeries/types';
|
|
5
5
|
export declare const NO_RESULTS_FOUND_MESSAGE = "No parameters found";
|
|
6
6
|
export declare const DEFAULT_DIALOG_HEIGHT = 500;
|
|
7
7
|
interface TimeSeriesSelectListProps {
|
|
@@ -5,6 +5,7 @@ interface TimeSeriesSelectListConnectProps {
|
|
|
5
5
|
selectPlot: Plot;
|
|
6
6
|
handleAddOrRemoveClick: (parameter: Parameter, plotHasParameter: boolean) => void;
|
|
7
7
|
services: TimeSeriesService[];
|
|
8
|
+
isOpen: boolean;
|
|
8
9
|
}
|
|
9
10
|
export declare const TimeSeriesSelectListConnect: FC<TimeSeriesSelectListConnectProps>;
|
|
10
11
|
export {};
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { EDRInstance } from '@opengeoweb/shared';
|
|
2
2
|
import { ServiceFilterChipsObjectEntities } from '../../store/types';
|
|
3
|
-
import { CustomDimension,
|
|
3
|
+
import { CustomDimension, EDRDataQueriesObject, EDRExtentObject, SelectParameter } from '../TimeSeries/types';
|
|
4
4
|
export interface TimeseriesCollectionDetail {
|
|
5
5
|
collectionId: string;
|
|
6
|
-
collectionDetails: EDRCollection;
|
|
7
6
|
serviceId: string;
|
|
8
|
-
parameters: SelectParameter[];
|
|
9
7
|
serviceName: string;
|
|
8
|
+
parameters: SelectParameter[];
|
|
9
|
+
dataQueries?: EDRDataQueriesObject;
|
|
10
10
|
customDimensions?: CustomDimension[];
|
|
11
11
|
allInstances?: EDRInstance[];
|
|
12
|
+
extent?: EDRExtentObject;
|
|
12
13
|
}
|
|
13
14
|
export declare const filterCollectionsParametersFromService: (collectionList: TimeseriesCollectionDetail[], searchString: string, serviceFilterChips: ServiceFilterChipsObjectEntities, allFilterChipsEnabled: boolean) => TimeseriesCollectionDetail[];
|
|
@@ -1,26 +1,22 @@
|
|
|
1
|
-
import { TimeSeriesService } from '@opengeoweb/shared';
|
|
1
|
+
import { PlotParameter, TimeSeriesService } from '@opengeoweb/shared';
|
|
2
2
|
import { Feature, Geometry, GeometryObject, Position } from 'geojson';
|
|
3
3
|
import { MapFeatureClass } from '@opengeoweb/webmap-react';
|
|
4
4
|
import { type EDRCollection, type EDRInstance, type EDRParameter, type Parameter, type PointerLocation, type SelectParameter } from '../components/TimeSeries/types';
|
|
5
5
|
import { TimeseriesCollectionDetail } from '../components/TimeSeriesSelect/utils';
|
|
6
6
|
export declare const createUrl: (baseUrl: string, pathToAdd?: string, queryParameters?: [string, string][]) => string;
|
|
7
7
|
export declare const supportedOutputFormat = "CoverageJSON";
|
|
8
|
-
export declare const getBaseQueryParamArray: (parameter: Parameter, instance: EDRInstance, collection: TimeseriesCollectionDetail,
|
|
8
|
+
export declare const getBaseQueryParamArray: (parameter: Parameter, instance: EDRInstance, collection: TimeseriesCollectionDetail, intervalParam: string) => [string, string][];
|
|
9
9
|
export declare const latestInstance: (instances: EDRInstance[]) => EDRInstance | null;
|
|
10
10
|
export declare const isSupportedInstance: (instances: EDRInstance) => boolean;
|
|
11
11
|
export declare const listSupportedInstances: (instances: EDRInstance[]) => EDRInstance[];
|
|
12
12
|
export declare const getUnit: (param: EDRParameter, lang: string, fallbackLang: string) => string;
|
|
13
13
|
export declare const constructParameterObject: (serviceId: string, collectionId: string, parametersById: EdrParameters) => SelectParameter[];
|
|
14
|
-
export
|
|
15
|
-
|
|
16
|
-
allInstances: EDRInstance[];
|
|
17
|
-
collectionId: string;
|
|
18
|
-
serviceId: string;
|
|
19
|
-
}
|
|
20
|
-
export declare const getParametersFromCollections: (service: TimeSeriesService, collections?: EDRCollection[], instances?: InstancesForCollection[]) => TimeseriesCollectionDetail[];
|
|
14
|
+
export declare const getCollectionDetails: (service: TimeSeriesService, collection: EDRCollection, instances?: EDRInstance[]) => TimeseriesCollectionDetail;
|
|
15
|
+
export declare const getServiceCollectionDetails: (service: TimeSeriesService, collections?: EDRCollection[]) => TimeseriesCollectionDetail[];
|
|
21
16
|
interface EdrParameter {
|
|
22
17
|
id: string;
|
|
23
18
|
description: string;
|
|
19
|
+
label?: string;
|
|
24
20
|
type: string;
|
|
25
21
|
collectionId: string;
|
|
26
22
|
observedProperty: {
|
|
@@ -48,6 +44,7 @@ export declare const getDetailsForCollectionId: (collections: TimeseriesCollecti
|
|
|
48
44
|
* @returns Clipped EDR interval, e.g. ["startdate_as_isostring","enddate_as_isostring"]
|
|
49
45
|
*/
|
|
50
46
|
export declare const clipEdrInterval: (interval: string[] | undefined, maxHoursBefore?: number, maxHoursAfter?: number, date?: number) => [string, string];
|
|
47
|
+
export declare const constructTimeInterval: (collection: TimeseriesCollectionDetail | undefined, instance: EDRInstance, parameter: PlotParameter) => string;
|
|
51
48
|
/**
|
|
52
49
|
* Find nearest point to the target location in timeseries.
|
|
53
50
|
* Uses equirectangular distance approximation which is not accurate for long
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { GeometryObject } from 'geojson';
|
|
2
|
-
import { TimeSeriesService } from '@opengeoweb/shared';
|
|
3
|
-
import { EDRCollection, EDRInstance, EDRPositionResponse, EDRPositionResponseCoverageCollection,
|
|
2
|
+
import { PlotParameter, TimeSeriesService } from '@opengeoweb/shared';
|
|
3
|
+
import { EDRCollection, EDRInstance, EDRPositionResponse, EDRPositionResponseCoverageCollection, GeoJsonWithService, PointerLocation } from '../../components/TimeSeries/types';
|
|
4
4
|
import { TimeseriesCollectionDetail } from '../../components/TimeSeriesSelect/utils';
|
|
5
5
|
export interface LocationsResult {
|
|
6
6
|
features: {
|
|
@@ -33,7 +33,9 @@ export declare const getCollections: (serviceUrl: string) => Promise<{
|
|
|
33
33
|
links: LinkObject[];
|
|
34
34
|
collections: EDRCollection[];
|
|
35
35
|
}>;
|
|
36
|
-
export declare const
|
|
37
|
-
export declare const
|
|
38
|
-
|
|
36
|
+
export declare const getCollection: (serviceUrl: string, collectionId: string) => Promise<EDRCollection>;
|
|
37
|
+
export declare const getInstances: (serviceUrl: string, collectionId: string) => Promise<{
|
|
38
|
+
instances: EDRInstance[];
|
|
39
|
+
}>;
|
|
40
|
+
export declare const fetchEdrParameter: (parameter: PlotParameter, location: PointerLocation, service: TimeSeriesService, geojsonMap: Map<string, GeoJsonWithService>, intervalParam: string, collection: TimeseriesCollectionDetail, instance: EDRInstance) => Promise<EDRPositionResponse | EDRPositionResponseCoverageCollection | null>;
|
|
39
41
|
export {};
|
|
@@ -1,15 +1,55 @@
|
|
|
1
1
|
import { PlotPreset, TimeSeriesService } from '@opengeoweb/shared';
|
|
2
2
|
import { UseQueryResult } from '@tanstack/react-query';
|
|
3
|
-
import { FeatureCollection,
|
|
3
|
+
import { FeatureCollection, Geometry } from 'geojson';
|
|
4
4
|
import { EDRServiceInformation } from './api';
|
|
5
5
|
import { TimeseriesCollectionDetail } from '../../components/TimeSeriesSelect/utils';
|
|
6
|
-
import { EDRCollection, EDRInstance, GeoJsonWithService, PlotWithData, PointerLocation } from '../../components/TimeSeries/types';
|
|
6
|
+
import { EDRCollection, EDRInstance, GeoJsonWithService, PlotWithData, PointerLocation, UseGetLocationReturnTypeProperties } from '../../components/TimeSeries/types';
|
|
7
|
+
import { ParameterCollectionQueryData } from '../../components/TimeSeries/utils';
|
|
7
8
|
interface CombinedResult<T> {
|
|
8
9
|
data: T | undefined;
|
|
9
10
|
isFetching: boolean;
|
|
10
11
|
error: Error | null | undefined;
|
|
11
12
|
}
|
|
12
|
-
export declare const
|
|
13
|
+
export declare const timeseriesEDRQueryOptions: {
|
|
14
|
+
readonly getServiceInformationQuery: (serviceUrl: string) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<EDRServiceInformation, Error, EDRServiceInformation, string[]>, "queryFn"> & {
|
|
15
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<EDRServiceInformation, string[], never> | undefined;
|
|
16
|
+
} & {
|
|
17
|
+
queryKey: string[] & {
|
|
18
|
+
[dataTagSymbol]: EDRServiceInformation;
|
|
19
|
+
[dataTagErrorSymbol]: Error;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
readonly getCollectionsQuery: (serviceUrl: string) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<EDRCollection[], Error, EDRCollection[], string[]>, "queryFn"> & {
|
|
23
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<EDRCollection[], string[], never> | undefined;
|
|
24
|
+
} & {
|
|
25
|
+
queryKey: string[] & {
|
|
26
|
+
[dataTagSymbol]: EDRCollection[];
|
|
27
|
+
[dataTagErrorSymbol]: Error;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
readonly getCollectionDetailsQuery: (service: TimeSeriesService, collectionId: string) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<TimeseriesCollectionDetail, Error, TimeseriesCollectionDetail, string[]>, "queryFn"> & {
|
|
31
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<TimeseriesCollectionDetail, string[], never> | undefined;
|
|
32
|
+
} & {
|
|
33
|
+
queryKey: string[] & {
|
|
34
|
+
[dataTagSymbol]: TimeseriesCollectionDetail;
|
|
35
|
+
[dataTagErrorSymbol]: Error;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
readonly getInstancesQuery: (serviceUrl: string, collectionId: string, supportsInstances?: boolean) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<EDRInstance[], Error, EDRInstance[], string[]>, "queryFn"> & {
|
|
39
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<EDRInstance[], string[], never> | undefined;
|
|
40
|
+
} & {
|
|
41
|
+
queryKey: string[] & {
|
|
42
|
+
[dataTagSymbol]: EDRInstance[];
|
|
43
|
+
[dataTagErrorSymbol]: Error;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
export declare const useGetServiceInformation: (serviceUrl: string) => UseQueryResult<EDRServiceInformation>;
|
|
48
|
+
export declare const useGetCollections: (serviceUrl: string) => UseQueryResult<EDRCollection[]>;
|
|
49
|
+
export declare const useGetDetailsForCollection: (service: TimeSeriesService, collectionId: string) => UseQueryResult<TimeseriesCollectionDetail>;
|
|
50
|
+
export declare const useGetInstances: (serviceUrl: string, collectionId: string, supportsInstances?: boolean) => UseQueryResult<EDRInstance[]>;
|
|
51
|
+
export declare const useGetServiceCollectionDetails: (services: TimeSeriesService[], isOpen: boolean) => CombinedResult<TimeseriesCollectionDetail[]>;
|
|
52
|
+
export declare const useGetCollectionsAndInstanceDetails: (queryData: Record<string, ParameterCollectionQueryData>) => CombinedResult<TimeseriesCollectionDetail[]>;
|
|
13
53
|
export declare const useGetPlotsWithData: (plotsWithoutData: PlotPreset, selectedLocation: PointerLocation, services: TimeSeriesService[], splitGeoJsonByCollection: GeoJsonWithService[]) => {
|
|
14
54
|
data: PlotWithData[] | undefined;
|
|
15
55
|
isFetching: boolean;
|
|
@@ -20,11 +60,8 @@ export interface GetLocationsOption {
|
|
|
20
60
|
collectionId: string;
|
|
21
61
|
}
|
|
22
62
|
export declare const useGetLocations: (options: GetLocationsOption[]) => {
|
|
23
|
-
data: (FeatureCollection<Geometry,
|
|
63
|
+
data: (FeatureCollection<Geometry, UseGetLocationReturnTypeProperties> | undefined)[];
|
|
24
64
|
isFetching: boolean;
|
|
25
65
|
error: Error | null | undefined;
|
|
26
66
|
};
|
|
27
|
-
export declare const useGetServiceInformation: (serviceUrl: string) => UseQueryResult<EDRServiceInformation>;
|
|
28
|
-
export declare const useGetCollections: (serviceUrl: string) => UseQueryResult<EDRCollection[]>;
|
|
29
|
-
export declare const useGetInstances: (serviceUrl?: string, collectionId?: string) => UseQueryResult<EDRInstance[]>;
|
|
30
67
|
export {};
|