forked from dannyfritz/ebird-client
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
daec19b
commit c759ef1
Showing
8 changed files
with
136 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { Category } from "../constants/Category"; | ||
import { Sort } from "../constants/Sort"; | ||
import { IObservation } from "../interfaces/IObservation"; | ||
|
||
export interface IHistoricObservationsOnADateRequest { | ||
regionCode: string; | ||
y: number; | ||
m: number; | ||
d: number; | ||
rank?: Range; | ||
cat?: Category[]; | ||
maxResults?: number | ||
detail?: Detail; | ||
includeProvisional?: boolean; | ||
hotspot?: boolean; | ||
r?: string; | ||
} | ||
|
||
export type IHistoricObservationsOnADateResponse = IObservation[]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { Category } from "../constants/Category"; | ||
import { Sort } from "../constants/Sort"; | ||
import { IObservation } from "../interfaces/IObservation"; | ||
|
||
export interface INearestObservationsOfASpeciesRequest { | ||
speciesCode: string; | ||
lat: number; | ||
lng: number; | ||
dist?: number; | ||
back?: number; | ||
maxResults?: number; | ||
includeProvisional?: boolean; | ||
hotspot?: boolean; | ||
} | ||
|
||
export type INearestOBservationOfASpeciesResponse = IObservation[]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { Category } from "../constants/Category"; | ||
import { Sort } from "../constants/Sort"; | ||
import { IObservation } from "../interfaces/IObservation"; | ||
|
||
export interface IRecentNearbyObservationsOfASpeciesRequest { | ||
speciesCode: string; | ||
lat: number; | ||
lng: number; | ||
dist?: number; | ||
back?: number; | ||
cat?: Category[]; | ||
maxResults?: number; | ||
includeProvisional?: boolean; | ||
hotspot?: boolean; | ||
sppLocale?: string; | ||
} | ||
|
||
export type IRecentNearbyObservationsOfASpeciesResponse = IObservation[]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { Detail } from "../constants/Detail"; | ||
import { IObservation } from "../interfaces/IObservation"; | ||
|
||
export interface IRecentNotableObservationsInARegionRequest { | ||
regionCode: string; | ||
back?: number; | ||
maxResults?: number; | ||
detail?: Detail; | ||
hotspot?: boolean; | ||
r?: string; | ||
} | ||
|
||
export type IRecentNotableObservationsInARegionResponse = IObservation[]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { Category } from "../constants/Category"; | ||
import { IObservation } from "../interfaces/IObservation"; | ||
|
||
export interface IRecentObservationsInARegionRequest { | ||
regionCode: string; | ||
back?: number; | ||
cat?: Category[]; | ||
maxResults?: number; | ||
includeProvisional?: boolean; | ||
hotspot?: boolean; | ||
r?: string; | ||
} | ||
|
||
export type IRecentObservationsInARegionResponse = IObservation[]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { Category } from "../constants/Category"; | ||
import { IObservation } from "../interfaces/IObservation"; | ||
|
||
export interface IRecentObservationsOfASpeciesInARegionRequest { | ||
regionCode: string; | ||
speciesCode: string; | ||
back?: number; | ||
maxResults?: number; | ||
includeProvisional?: boolean; | ||
hotspot?: boolean; | ||
r?: string; | ||
} | ||
|
||
export type IRecentObservationsOfASpeciesInARegionResponse = IObservation[]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export enum Detail { | ||
SIMPLE = "simple", | ||
FULL = "full", | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters