UNPKG

signalk-parquet

Version:

SignalK plugin and webapp that archives SK data to Parquet files with a regimen control system, advanced querying, Claude integrated AI analysis, spatial capabilities, and REST API.

98 lines 2.22 kB
import { Brand, Context, Path, Timestamp } from '@signalk/server-api'; import { Request } from 'express'; export type AggregateMethod = Brand<string, 'aggregatemethod'>; type ValueList = { path: Path; method: AggregateMethod; }[]; export type Datarow = [Timestamp, ...any[]]; export interface DataResult { context: Context; range: { from: Timestamp; to: Timestamp; }; values: ValueList; data: Datarow[]; units?: { converted: boolean; conversions: Array<{ path: Path; baseUnit: string; targetUnit: string; symbol: string; }>; }; timezone?: { converted: boolean; targetTimezone: string; offset: string; description: string; }; } export interface ValuesResponse extends DataResult { context: Context; range: { from: Timestamp; to: Timestamp; }; } export type TimeRangeQueryParams = { duration: string; from?: never; to?: never; } | { duration: string; from: string; to?: never; } | { duration: string; to: string; from?: never; } | { from: string; duration?: never; to?: never; } | { from: string; to: string; duration?: never; }; export type FromToContextRequest = Request<unknown, unknown, unknown, TimeRangeQueryParams & { start?: string; context?: string; paths?: string; resolution?: string; bbox?: string; refresh?: string; useUTC?: string; includeMovingAverages?: string; convertUnits?: string; convertTimesToLocal?: string; timezone?: string; }>; export interface PathSpec { path: Path; queryResultName: string; aggregateMethod: AggregateMethod; aggregateFunction: string; } export interface ConversionMetadata { path: string; baseUnit: string; targetUnit: string; formula: string; inverseFormula: string; displayFormat: string; symbol: string; category: string; valueType: string; } export interface UnitConversionInfo { path: Path; targetUnit: string; symbol: string; displayFormat: string; } export {}; //# sourceMappingURL=HistoryAPI-types.d.ts.map