import { IterableResponse } from './iterable_response'; export interface RefreshToken { subject: string; token: string; } export interface ClientOptions { request_timeout?: number; request_retries?: number; request_backoff?: number; } export type DataValue = number | string | boolean | null; export type QCValue = number | string | boolean | null; export interface DataRecord { timestamp: string; record_num: number; data: Record; qc_flags?: Record; } export interface QCRecord { timestamp: string; qc_flags: Record; } export interface DataFileHeaders { meta?: Record; columns: Array; units: Array; processing?: Array; } export interface DataFile { source: string; source_start_timestamp: string | null; source_end_timestamp: string | null; filename: string; is_stale: boolean; headers: DataFileHeaders; created_at: string; updated_at: string; } export interface DataFileWithRecordsArray extends DataFile { records?: Array; } export interface DataFileWithRecords extends DataFile { records: IterableResponse; } export interface ProjectManager { full_name: string; email: string; } export interface Station { client_uuid: string; client_full_name: string; client_short_name: string; site_uuid: string; site_full_name: string; station_uuid: string; station_full_name: string; description: string; model: string; type: string; status: string; project_manager: ProjectManager | null; maintenance_frequency: string; maintenance_log: string; location_region: string; latitude: number; longitude: number; altitude: number; timezone_offset: number; start_timestamp: string | null; end_timestamp: string | null; data_file_prefix: string; created_at: string; updated_at: string; } export interface StationDataFile { filename: string; is_stale: boolean; headers: DataFileHeaders; created_at: string; updated_at: string; } export interface StationWithDataFiles extends Station { data_files: Array; } export interface DataExport { key: string; filename: string; format: string; format_options: Record; headers: DataFileHeaders; start_timestamp: string; end_timestamp: string; record_count: number; status: string; created_at: string; updated_at: string; } export interface ReportFile { key: string; type: string; filename: string; description: string; created_at: string; updated_at: string; } export interface Report { key: string; package_name: string; kind: string; station_uuid: string; start_date: string; end_date: string; status: string; has_pdf: boolean; published_at: string; created_at: string; updated_at: string; data_exports: Array; files: Array; } export interface GetStationsQuery { client?: string; site?: string; station?: string; limit?: number; offset?: number; } export interface GetReportsQuery { client?: string; site?: string; station?: string; before?: string; after?: string; limit?: number; offset?: number; } export interface GetDataFilesQuery { client?: string; site?: string; gateway?: string; station?: string; filename?: string; limit?: number; offset?: number; } export interface GetDataQuery extends GetDataFilesQuery { records_limit?: number; records_before?: string; records_after?: string; } export interface GetDataRecordsQuery { filename: string; limit?: number; before?: string; after?: string; } export interface GetDataQCQuery { filename: string; limit?: number; before?: string; after?: string; } export interface PostDataRecord { timestamp: string; record_num: number; data: Record; } export interface PostDataFile { filename: string; headers?: DataFileHeaders; records?: Array; } export interface PostDataPayload { source: string; files: Array; overwrite?: boolean; }