signalk-parquet
Version:
SignalK plugin to save marine data directly to Parquet files with regimen-based control
42 lines • 1.03 kB
TypeScript
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[];
}
export interface ValuesResponse extends DataResult {
context: Context;
range: {
from: Timestamp;
to: Timestamp;
};
}
export type FromToContextRequest = Request<unknown, unknown, unknown, {
from?: string;
to?: string;
start?: string;
duration?: string;
context: string;
bbox?: string;
refresh?: string;
useUTC?: string;
}>;
export interface PathSpec {
path: Path;
queryResultName: string;
aggregateMethod: AggregateMethod;
aggregateFunction: string;
}
export {};
//# sourceMappingURL=HistoryAPI-types.d.ts.map