observation-js
Version:
A fully-typed TypeScript client for the waarneming.nl API.
37 lines (36 loc) • 799 B
TypeScript
import type { Photo } from './base';
export interface SpeciesGroup {
id: number;
name: string;
name_plural: string;
icon: string;
}
export interface SpeciesData {
id: number;
name: string;
scientific_name: string;
group: number;
group_name: string;
rarity: string;
rarity_text?: string;
type: string;
status: string;
url?: string;
photos?: Photo[];
sounds?: [];
name_vernacular: string | null;
name_vernacular_language: string | null;
}
export interface SpeciesSearchParams {
q?: string;
species_group?: number;
}
export interface SpeciesOccurrence {
id: number;
name: string;
scientific_name: string;
occurrence_status: string;
}
export interface SpeciesGroupAttributes {
[key: string]: unknown;
}