UNPKG

observation-js

Version:

A fully-typed TypeScript client for the waarneming.nl API.

36 lines (35 loc) 839 B
export interface Export { id: number; is_ready: boolean; expires: string; description: string; filesize: number | null; message: string; download_url: string | null; } export interface ExportStartResponse { id: number; message: string; state_url: string; } export type ExportFormat = 'csv' | 'tsv' | 'SQLite'; interface ExportOptionsBase { export_format?: ExportFormat; notify_by_email?: boolean; } interface ExportFilters { date_after?: string; date_before?: string; species_group?: number; validation_status?: string; } export type StartExportOptions = ({ type: 'USER_OBSERVATIONS'; } | { type: 'ORGANIZATION_OBSERVATIONS'; organization_id: number; } | { type: 'SPECIES_SHOWCASE'; showcase_id: number; }) & ExportFilters & ExportOptionsBase; export {};