feat: add temporal Mol explorer
This commit is contained in:
@@ -83,6 +83,12 @@ export interface DatasetCreateResponse {
|
||||
source_metadata?: Record<string, unknown> | null
|
||||
provenance_metadata?: Record<string, unknown> | null
|
||||
imported_at?: string | null
|
||||
temporal_series_key?: string | null
|
||||
observed_at?: string | null
|
||||
valid_from?: string | null
|
||||
valid_to?: string | null
|
||||
temporal_granularity?: string | null
|
||||
source_version?: string | null
|
||||
project_id: string
|
||||
area_id?: string | null
|
||||
storage_path?: string | null
|
||||
@@ -313,6 +319,109 @@ export interface VectorSelectionResponse {
|
||||
limit: number
|
||||
truncated: boolean
|
||||
geojson: GeoJSON.FeatureCollection
|
||||
summary?: VectorSelectionSummary | null
|
||||
}
|
||||
|
||||
export interface VectorSelectionSummary {
|
||||
metric_label: string
|
||||
metric_value: number
|
||||
metric_unit: string
|
||||
aggregation_method: string
|
||||
feature_count: number
|
||||
is_estimate: boolean
|
||||
warning?: string | null
|
||||
}
|
||||
|
||||
export interface DatasetTemporalUpdate {
|
||||
temporal_series_key: string
|
||||
observed_at: string
|
||||
valid_from?: string | null
|
||||
valid_to?: string | null
|
||||
temporal_granularity?: string
|
||||
source_version?: string | null
|
||||
}
|
||||
|
||||
export interface DatasetVersionRead {
|
||||
id: string
|
||||
dataset_id: string
|
||||
version: number
|
||||
storage_path?: string | null
|
||||
source_version?: string | null
|
||||
observed_at?: string | null
|
||||
valid_from?: string | null
|
||||
valid_to?: string | null
|
||||
checksum_sha256?: string | null
|
||||
source_metadata?: Record<string, unknown> | null
|
||||
provenance_metadata?: Record<string, unknown> | null
|
||||
created_at?: string | null
|
||||
}
|
||||
|
||||
export interface TemporalComparisonRequest {
|
||||
earlier_dataset_id: string
|
||||
later_dataset_id: string
|
||||
bbox: VectorSelectionBBox
|
||||
preview_limit?: number
|
||||
}
|
||||
|
||||
export interface TemporalDatasetRef {
|
||||
id: string
|
||||
name: string
|
||||
observed_at: string
|
||||
source_version?: string | null
|
||||
}
|
||||
|
||||
export interface TemporalMetricComparison {
|
||||
label: string
|
||||
unit: string
|
||||
aggregation_method: string
|
||||
earlier_value: number
|
||||
later_value: number
|
||||
absolute_change: number
|
||||
percent_change?: number | null
|
||||
is_estimate: boolean
|
||||
}
|
||||
|
||||
export interface TemporalObjectChanges {
|
||||
available: boolean
|
||||
added_count?: number | null
|
||||
removed_count?: number | null
|
||||
modified_count?: number | null
|
||||
unchanged_count?: number | null
|
||||
}
|
||||
|
||||
export interface TemporalComparisonResponse {
|
||||
temporal_series_key: string
|
||||
earlier: TemporalDatasetRef
|
||||
later: TemporalDatasetRef
|
||||
selection_bbox: VectorSelectionBBox
|
||||
metric: TemporalMetricComparison
|
||||
object_changes: TemporalObjectChanges
|
||||
geojson: GeoJSON.FeatureCollection
|
||||
warnings: string[]
|
||||
generated_at: string
|
||||
}
|
||||
|
||||
export interface TemporalSeriesDataset {
|
||||
id: string
|
||||
name: string
|
||||
observed_at: string
|
||||
source_version?: string | null
|
||||
feature_count?: number | null
|
||||
}
|
||||
|
||||
export interface TemporalSeriesRead {
|
||||
temporal_series_key: string
|
||||
source_name?: string | null
|
||||
reference_layer_name?: string | null
|
||||
dataset_count: number
|
||||
first_observed_at: string
|
||||
last_observed_at: string
|
||||
datasets: TemporalSeriesDataset[]
|
||||
}
|
||||
|
||||
export interface TemporalSeriesListResponse {
|
||||
items: TemporalSeriesRead[]
|
||||
total: number
|
||||
}
|
||||
|
||||
export interface DatasetListResponse {
|
||||
|
||||
Reference in New Issue
Block a user