phoebe 0.1.0.pre.alpha.1 → 0.1.0.pre.alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +82 -0
- data/README.md +10 -1
- data/lib/phoebe/client.rb +15 -1
- data/lib/phoebe/internal/transport/base_client.rb +2 -0
- data/lib/phoebe/internal/transport/pooled_net_requester.rb +13 -11
- data/lib/phoebe/internal/util.rb +61 -10
- data/lib/phoebe/models/data/observations/geo/recent/specie_list_params.rb +8 -1
- data/lib/phoebe/models/data/observations/nearest/geo_specie_list_params.rb +8 -1
- data/lib/phoebe/models/data/observations/recent/historic_list_params.rb +8 -1
- data/lib/phoebe/models/data/observations/recent/notable_list_params.rb +8 -1
- data/lib/phoebe/models/data/observations/recent/specie_retrieve_params.rb +8 -1
- data/lib/phoebe/models/data/observations/recent_list_params.rb +8 -1
- data/lib/phoebe/models/product/checklist_view_params.rb +7 -1
- data/lib/phoebe/models/product/list_retrieve_params.rb +8 -1
- data/lib/phoebe/models/product/lists/historical_retrieve_params.rb +8 -1
- data/lib/phoebe/models/product/species_list_list_params.rb +7 -1
- data/lib/phoebe/models/product/stat_retrieve_params.rb +7 -1
- data/lib/phoebe/models/product/top100_retrieve_params.rb +8 -1
- data/lib/phoebe/models/ref/hotspot/info_retrieve_params.rb +7 -1
- data/lib/phoebe/models/ref/hotspot_list_params.rb +8 -1
- data/lib/phoebe/models/ref/region/adjacent_list_params.rb +7 -1
- data/lib/phoebe/models/ref/region/info_retrieve_params.rb +8 -1
- data/lib/phoebe/models/ref/region/list_list_params.rb +8 -1
- data/lib/phoebe/models/ref/taxonomy/form_list_params.rb +7 -1
- data/lib/phoebe/models/ref/taxonomy/species_group_list_params.rb +9 -1
- data/lib/phoebe/resources/data/observations/geo/recent/notable.rb +7 -1
- data/lib/phoebe/resources/data/observations/geo/recent/species.rb +7 -1
- data/lib/phoebe/resources/data/observations/geo/recent.rb +17 -1
- data/lib/phoebe/resources/data/observations/geo.rb +5 -0
- data/lib/phoebe/resources/data/observations/nearest/geo_species.rb +7 -1
- data/lib/phoebe/resources/data/observations/nearest.rb +5 -0
- data/lib/phoebe/resources/data/observations/recent/historic.rb +10 -4
- data/lib/phoebe/resources/data/observations/recent/notable.rb +7 -1
- data/lib/phoebe/resources/data/observations/recent/species.rb +7 -1
- data/lib/phoebe/resources/data/observations/recent.rb +22 -1
- data/lib/phoebe/resources/data/observations.rb +5 -0
- data/lib/phoebe/resources/product/checklist.rb +5 -0
- data/lib/phoebe/resources/product/lists/historical.rb +7 -1
- data/lib/phoebe/resources/product/lists.rb +12 -1
- data/lib/phoebe/resources/product/species_list.rb +5 -0
- data/lib/phoebe/resources/product/stats.rb +5 -0
- data/lib/phoebe/resources/product/top100.rb +7 -1
- data/lib/phoebe/resources/product.rb +25 -0
- data/lib/phoebe/resources/ref/hotspot/geo.rb +4 -1
- data/lib/phoebe/resources/ref/hotspot/info.rb +2 -0
- data/lib/phoebe/resources/ref/hotspot.rb +8 -1
- data/lib/phoebe/resources/ref/region/adjacent.rb +1 -0
- data/lib/phoebe/resources/ref/region/info.rb +3 -1
- data/lib/phoebe/resources/ref/region/list.rb +3 -1
- data/lib/phoebe/resources/ref/region.rb +3 -0
- data/lib/phoebe/resources/ref/taxonomy/ebird.rb +2 -1
- data/lib/phoebe/resources/ref/taxonomy/species_groups.rb +2 -1
- data/lib/phoebe/resources/ref.rb +2 -0
- data/lib/phoebe/version.rb +1 -1
- data/rbi/phoebe/internal/util.rbi +29 -1
- data/rbi/phoebe/models/data/observations/geo/recent/specie_list_params.rbi +6 -0
- data/rbi/phoebe/models/data/observations/nearest/geo_specie_list_params.rbi +6 -0
- data/rbi/phoebe/models/data/observations/recent/historic_list_params.rbi +6 -0
- data/rbi/phoebe/models/data/observations/recent/notable_list_params.rbi +6 -0
- data/rbi/phoebe/models/data/observations/recent/specie_retrieve_params.rbi +6 -0
- data/rbi/phoebe/models/data/observations/recent_list_params.rbi +6 -0
- data/rbi/phoebe/models/product/checklist_view_params.rbi +13 -5
- data/rbi/phoebe/models/product/list_retrieve_params.rbi +10 -1
- data/rbi/phoebe/models/product/lists/historical_retrieve_params.rbi +6 -0
- data/rbi/phoebe/models/product/species_list_list_params.rbi +13 -5
- data/rbi/phoebe/models/product/stat_retrieve_params.rbi +6 -1
- data/rbi/phoebe/models/product/top100_retrieve_params.rbi +6 -0
- data/rbi/phoebe/models/ref/hotspot/info_retrieve_params.rbi +13 -5
- data/rbi/phoebe/models/ref/hotspot_list_params.rbi +6 -0
- data/rbi/phoebe/models/ref/region/adjacent_list_params.rbi +13 -5
- data/rbi/phoebe/models/ref/region/info_retrieve_params.rbi +6 -0
- data/rbi/phoebe/models/ref/region/list_list_params.rbi +6 -0
- data/rbi/phoebe/models/ref/taxonomy/form_list_params.rbi +13 -5
- data/rbi/phoebe/models/ref/taxonomy/species_group_list_params.rbi +14 -0
- data/rbi/phoebe/resources/data/observations/geo/recent/notable.rbi +5 -0
- data/rbi/phoebe/resources/data/observations/geo/recent/species.rbi +5 -0
- data/rbi/phoebe/resources/data/observations/geo/recent.rbi +15 -0
- data/rbi/phoebe/resources/data/observations/geo.rbi +5 -0
- data/rbi/phoebe/resources/data/observations/nearest/geo_species.rbi +5 -0
- data/rbi/phoebe/resources/data/observations/nearest.rbi +5 -0
- data/rbi/phoebe/resources/data/observations/recent/historic.rbi +8 -3
- data/rbi/phoebe/resources/data/observations/recent/notable.rbi +5 -0
- data/rbi/phoebe/resources/data/observations/recent/species.rbi +5 -0
- data/rbi/phoebe/resources/data/observations/recent.rbi +20 -0
- data/rbi/phoebe/resources/data/observations.rbi +5 -0
- data/rbi/phoebe/resources/product/checklist.rbi +5 -0
- data/rbi/phoebe/resources/product/lists/historical.rbi +5 -0
- data/rbi/phoebe/resources/product/lists.rbi +10 -0
- data/rbi/phoebe/resources/product/species_list.rbi +5 -0
- data/rbi/phoebe/resources/product/stats.rbi +5 -0
- data/rbi/phoebe/resources/product/top100.rbi +5 -0
- data/rbi/phoebe/resources/product.rbi +25 -0
- data/rbi/phoebe/resources/ref/hotspot/geo.rbi +2 -0
- data/rbi/phoebe/resources/ref/hotspot/info.rbi +2 -0
- data/rbi/phoebe/resources/ref/hotspot.rbi +6 -0
- data/rbi/phoebe/resources/ref/region/adjacent.rbi +1 -0
- data/rbi/phoebe/resources/ref/region/info.rbi +1 -0
- data/rbi/phoebe/resources/ref/region/list.rbi +1 -0
- data/rbi/phoebe/resources/ref/region.rbi +3 -0
- data/rbi/phoebe/resources/ref.rbi +2 -0
- data/sig/phoebe/internal/util.rbs +14 -0
- data/sig/phoebe/models/data/observations/geo/recent/specie_list_params.rbs +5 -0
- data/sig/phoebe/models/data/observations/nearest/geo_specie_list_params.rbs +5 -0
- data/sig/phoebe/models/data/observations/recent/historic_list_params.rbs +5 -0
- data/sig/phoebe/models/data/observations/recent/notable_list_params.rbs +5 -0
- data/sig/phoebe/models/data/observations/recent/specie_retrieve_params.rbs +5 -0
- data/sig/phoebe/models/data/observations/recent_list_params.rbs +5 -0
- data/sig/phoebe/models/product/checklist_view_params.rbs +11 -3
- data/sig/phoebe/models/product/list_retrieve_params.rbs +6 -1
- data/sig/phoebe/models/product/lists/historical_retrieve_params.rbs +5 -0
- data/sig/phoebe/models/product/species_list_list_params.rbs +11 -3
- data/sig/phoebe/models/product/stat_retrieve_params.rbs +5 -1
- data/sig/phoebe/models/product/top100_retrieve_params.rbs +5 -0
- data/sig/phoebe/models/ref/hotspot/info_retrieve_params.rbs +11 -3
- data/sig/phoebe/models/ref/hotspot_list_params.rbs +9 -1
- data/sig/phoebe/models/ref/region/adjacent_list_params.rbs +11 -3
- data/sig/phoebe/models/ref/region/info_retrieve_params.rbs +5 -0
- data/sig/phoebe/models/ref/region/list_list_params.rbs +5 -0
- data/sig/phoebe/models/ref/taxonomy/form_list_params.rbs +11 -3
- data/sig/phoebe/models/ref/taxonomy/species_group_list_params.rbs +8 -1
- metadata +16 -2
|
@@ -4,6 +4,8 @@ module Phoebe
|
|
|
4
4
|
module Resources
|
|
5
5
|
class Ref
|
|
6
6
|
class Hotspot
|
|
7
|
+
# With the ref/hotspot end-points you can find the hotspots for a given country or
|
|
8
|
+
# region or nearby hotspots
|
|
7
9
|
class Geo
|
|
8
10
|
# Get the list of hotspots, within a radius of up to 50 kilometers, from a given
|
|
9
11
|
# set of coordinates.
|
|
@@ -27,10 +29,11 @@ module Phoebe
|
|
|
27
29
|
# @see Phoebe::Models::Ref::Hotspot::GeoRetrieveParams
|
|
28
30
|
def retrieve(params)
|
|
29
31
|
parsed, options = Phoebe::Ref::Hotspot::GeoRetrieveParams.dump_request(params)
|
|
32
|
+
query = Phoebe::Internal::Util.encode_query_params(parsed)
|
|
30
33
|
@client.request(
|
|
31
34
|
method: :get,
|
|
32
35
|
path: "ref/hotspot/geo",
|
|
33
|
-
query:
|
|
36
|
+
query: query,
|
|
34
37
|
model: Phoebe::Internal::Type::ArrayOf[Phoebe::Models::Ref::Hotspot::GeoRetrieveResponseItem],
|
|
35
38
|
options: options
|
|
36
39
|
)
|
|
@@ -4,6 +4,8 @@ module Phoebe
|
|
|
4
4
|
module Resources
|
|
5
5
|
class Ref
|
|
6
6
|
class Hotspot
|
|
7
|
+
# With the ref/hotspot end-points you can find the hotspots for a given country or
|
|
8
|
+
# region or nearby hotspots
|
|
7
9
|
class Info
|
|
8
10
|
# Get information on the location of a hotspot. #### Notes This API call only
|
|
9
11
|
# works for hotspots. If you pass the location code for a private location or an
|
|
@@ -3,10 +3,16 @@
|
|
|
3
3
|
module Phoebe
|
|
4
4
|
module Resources
|
|
5
5
|
class Ref
|
|
6
|
+
# With the ref/hotspot end-points you can find the hotspots for a given country or
|
|
7
|
+
# region or nearby hotspots
|
|
6
8
|
class Hotspot
|
|
9
|
+
# With the ref/hotspot end-points you can find the hotspots for a given country or
|
|
10
|
+
# region or nearby hotspots
|
|
7
11
|
# @return [Phoebe::Resources::Ref::Hotspot::Geo]
|
|
8
12
|
attr_reader :geo
|
|
9
13
|
|
|
14
|
+
# With the ref/hotspot end-points you can find the hotspots for a given country or
|
|
15
|
+
# region or nearby hotspots
|
|
10
16
|
# @return [Phoebe::Resources::Ref::Hotspot::Info]
|
|
11
17
|
attr_reader :info
|
|
12
18
|
|
|
@@ -27,10 +33,11 @@ module Phoebe
|
|
|
27
33
|
# @see Phoebe::Models::Ref::HotspotListParams
|
|
28
34
|
def list(region_code, params = {})
|
|
29
35
|
parsed, options = Phoebe::Ref::HotspotListParams.dump_request(params)
|
|
36
|
+
query = Phoebe::Internal::Util.encode_query_params(parsed)
|
|
30
37
|
@client.request(
|
|
31
38
|
method: :get,
|
|
32
39
|
path: ["ref/hotspot/%1$s", region_code],
|
|
33
|
-
query:
|
|
40
|
+
query: query,
|
|
34
41
|
model: Phoebe::Internal::Type::ArrayOf[Phoebe::Models::Ref::HotspotListResponseItem],
|
|
35
42
|
options: options
|
|
36
43
|
)
|
|
@@ -4,6 +4,7 @@ module Phoebe
|
|
|
4
4
|
module Resources
|
|
5
5
|
class Ref
|
|
6
6
|
class Region
|
|
7
|
+
# With the ref/geo end-point you can find a country's or region's neighbours.
|
|
7
8
|
class Adjacent
|
|
8
9
|
# Get the list of countries or regions that share a border with this one. ####
|
|
9
10
|
# Notes Only subnational2 codes in the United States, New Zealand, or Mexico are
|
|
@@ -4,6 +4,7 @@ module Phoebe
|
|
|
4
4
|
module Resources
|
|
5
5
|
class Ref
|
|
6
6
|
class Region
|
|
7
|
+
# The ref/region end-points return information on regions.
|
|
7
8
|
class Info
|
|
8
9
|
# Get information on the name and geographical area covered by a region.
|
|
9
10
|
#
|
|
@@ -36,10 +37,11 @@ module Phoebe
|
|
|
36
37
|
# @see Phoebe::Models::Ref::Region::InfoRetrieveParams
|
|
37
38
|
def retrieve(region_code, params = {})
|
|
38
39
|
parsed, options = Phoebe::Ref::Region::InfoRetrieveParams.dump_request(params)
|
|
40
|
+
query = Phoebe::Internal::Util.encode_query_params(parsed)
|
|
39
41
|
@client.request(
|
|
40
42
|
method: :get,
|
|
41
43
|
path: ["ref/region/info/%1$s", region_code],
|
|
42
|
-
query:
|
|
44
|
+
query: query.transform_keys(region_name_format: "regionNameFormat"),
|
|
43
45
|
model: Phoebe::Models::Ref::Region::InfoRetrieveResponse,
|
|
44
46
|
options: options
|
|
45
47
|
)
|
|
@@ -4,6 +4,7 @@ module Phoebe
|
|
|
4
4
|
module Resources
|
|
5
5
|
class Ref
|
|
6
6
|
class Region
|
|
7
|
+
# The ref/region end-points return information on regions.
|
|
7
8
|
class List
|
|
8
9
|
# Get the list of sub-regions for a given country or region. #### Notes Not all
|
|
9
10
|
# combinations of region type and region code are valid. You can fetch all the
|
|
@@ -25,6 +26,7 @@ module Phoebe
|
|
|
25
26
|
# @see Phoebe::Models::Ref::Region::ListListParams
|
|
26
27
|
def list(parent_region_code, params)
|
|
27
28
|
parsed, options = Phoebe::Ref::Region::ListListParams.dump_request(params)
|
|
29
|
+
query = Phoebe::Internal::Util.encode_query_params(parsed)
|
|
28
30
|
region_type =
|
|
29
31
|
parsed.delete(:region_type) do
|
|
30
32
|
raise ArgumentError.new("missing required path argument #{_1}")
|
|
@@ -32,7 +34,7 @@ module Phoebe
|
|
|
32
34
|
@client.request(
|
|
33
35
|
method: :get,
|
|
34
36
|
path: ["ref/region/list/%1$s/%2$s", region_type, parent_region_code],
|
|
35
|
-
query:
|
|
37
|
+
query: query,
|
|
36
38
|
model: Phoebe::Internal::Type::ArrayOf[Phoebe::Models::Ref::Region::ListListResponseItem],
|
|
37
39
|
options: options
|
|
38
40
|
)
|
|
@@ -4,12 +4,15 @@ module Phoebe
|
|
|
4
4
|
module Resources
|
|
5
5
|
class Ref
|
|
6
6
|
class Region
|
|
7
|
+
# With the ref/geo end-point you can find a country's or region's neighbours.
|
|
7
8
|
# @return [Phoebe::Resources::Ref::Region::Adjacent]
|
|
8
9
|
attr_reader :adjacent
|
|
9
10
|
|
|
11
|
+
# The ref/region end-points return information on regions.
|
|
10
12
|
# @return [Phoebe::Resources::Ref::Region::Info]
|
|
11
13
|
attr_reader :info
|
|
12
14
|
|
|
15
|
+
# The ref/region end-points return information on regions.
|
|
13
16
|
# @return [Phoebe::Resources::Ref::Region::List]
|
|
14
17
|
attr_reader :list
|
|
15
18
|
|
|
@@ -29,10 +29,11 @@ module Phoebe
|
|
|
29
29
|
# @see Phoebe::Models::Ref::Taxonomy::EbirdRetrieveParams
|
|
30
30
|
def retrieve(params = {})
|
|
31
31
|
parsed, options = Phoebe::Ref::Taxonomy::EbirdRetrieveParams.dump_request(params)
|
|
32
|
+
query = Phoebe::Internal::Util.encode_query_params(parsed)
|
|
32
33
|
@client.request(
|
|
33
34
|
method: :get,
|
|
34
35
|
path: "ref/taxonomy/ebird",
|
|
35
|
-
query:
|
|
36
|
+
query: query,
|
|
36
37
|
model: Phoebe::Internal::Type::ArrayOf[Phoebe::Models::Ref::Taxonomy::EbirdRetrieveResponseItem],
|
|
37
38
|
options: options
|
|
38
39
|
)
|
|
@@ -25,10 +25,11 @@ module Phoebe
|
|
|
25
25
|
# @see Phoebe::Models::Ref::Taxonomy::SpeciesGroupListParams
|
|
26
26
|
def list(species_grouping, params = {})
|
|
27
27
|
parsed, options = Phoebe::Ref::Taxonomy::SpeciesGroupListParams.dump_request(params)
|
|
28
|
+
query = Phoebe::Internal::Util.encode_query_params(parsed)
|
|
28
29
|
@client.request(
|
|
29
30
|
method: :get,
|
|
30
31
|
path: ["ref/sppgroup/%1$s", species_grouping],
|
|
31
|
-
query:
|
|
32
|
+
query: query.transform_keys(group_name_locale: "groupNameLocale"),
|
|
32
33
|
model: Phoebe::Internal::Type::ArrayOf[Phoebe::Models::Ref::Taxonomy::SpeciesGroupListResponseItem],
|
|
33
34
|
options: options
|
|
34
35
|
)
|
data/lib/phoebe/resources/ref.rb
CHANGED
|
@@ -6,6 +6,8 @@ module Phoebe
|
|
|
6
6
|
# @return [Phoebe::Resources::Ref::Region]
|
|
7
7
|
attr_reader :region
|
|
8
8
|
|
|
9
|
+
# With the ref/hotspot end-points you can find the hotspots for a given country or
|
|
10
|
+
# region or nearby hotspots
|
|
9
11
|
# @return [Phoebe::Resources::Ref::Hotspot]
|
|
10
12
|
attr_reader :hotspot
|
|
11
13
|
|
data/lib/phoebe/version.rb
CHANGED
|
@@ -148,12 +148,20 @@ module Phoebe
|
|
|
148
148
|
end
|
|
149
149
|
end
|
|
150
150
|
|
|
151
|
+
# https://www.rfc-editor.org/rfc/rfc3986.html#section-3.3
|
|
152
|
+
RFC_3986_NOT_PCHARS = T.let(/[^A-Za-z0-9\-._~!$&'()*+,;=:@]+/, Regexp)
|
|
153
|
+
|
|
151
154
|
class << self
|
|
152
155
|
# @api private
|
|
153
156
|
sig { params(uri: URI::Generic).returns(String) }
|
|
154
157
|
def uri_origin(uri)
|
|
155
158
|
end
|
|
156
159
|
|
|
160
|
+
# @api private
|
|
161
|
+
sig { params(path: T.any(String, Integer)).returns(String) }
|
|
162
|
+
def encode_path(path)
|
|
163
|
+
end
|
|
164
|
+
|
|
157
165
|
# @api private
|
|
158
166
|
sig { params(path: T.any(String, T::Array[String])).returns(String) }
|
|
159
167
|
def interpolate_path(path)
|
|
@@ -296,11 +304,31 @@ module Phoebe
|
|
|
296
304
|
end
|
|
297
305
|
|
|
298
306
|
JSON_CONTENT =
|
|
299
|
-
T.let(%r{^application/(?:
|
|
307
|
+
T.let(%r{^application/(?:[a-zA-Z0-9.-]+\+)?json(?!l)}, Regexp)
|
|
300
308
|
JSONL_CONTENT =
|
|
301
309
|
T.let(%r{^application/(:?x-(?:n|l)djson)|(:?(?:x-)?jsonl)}, Regexp)
|
|
302
310
|
|
|
303
311
|
class << self
|
|
312
|
+
# @api private
|
|
313
|
+
sig do
|
|
314
|
+
params(query: Phoebe::Internal::AnyHash).returns(
|
|
315
|
+
Phoebe::Internal::AnyHash
|
|
316
|
+
)
|
|
317
|
+
end
|
|
318
|
+
def encode_query_params(query)
|
|
319
|
+
end
|
|
320
|
+
|
|
321
|
+
# @api private
|
|
322
|
+
sig do
|
|
323
|
+
params(
|
|
324
|
+
collection: Phoebe::Internal::AnyHash,
|
|
325
|
+
key: String,
|
|
326
|
+
element: T.anything
|
|
327
|
+
).void
|
|
328
|
+
end
|
|
329
|
+
private def write_query_param_element!(collection, key, element)
|
|
330
|
+
end
|
|
331
|
+
|
|
304
332
|
# @api private
|
|
305
333
|
sig do
|
|
306
334
|
params(
|
|
@@ -18,6 +18,9 @@ module Phoebe
|
|
|
18
18
|
)
|
|
19
19
|
end
|
|
20
20
|
|
|
21
|
+
sig { returns(String) }
|
|
22
|
+
attr_accessor :species_code
|
|
23
|
+
|
|
21
24
|
sig { returns(Float) }
|
|
22
25
|
attr_accessor :lat
|
|
23
26
|
|
|
@@ -68,6 +71,7 @@ module Phoebe
|
|
|
68
71
|
|
|
69
72
|
sig do
|
|
70
73
|
params(
|
|
74
|
+
species_code: String,
|
|
71
75
|
lat: Float,
|
|
72
76
|
lng: Float,
|
|
73
77
|
back: Integer,
|
|
@@ -80,6 +84,7 @@ module Phoebe
|
|
|
80
84
|
).returns(T.attached_class)
|
|
81
85
|
end
|
|
82
86
|
def self.new(
|
|
87
|
+
species_code:,
|
|
83
88
|
lat:,
|
|
84
89
|
lng:,
|
|
85
90
|
# The number of days back to fetch observations.
|
|
@@ -101,6 +106,7 @@ module Phoebe
|
|
|
101
106
|
sig do
|
|
102
107
|
override.returns(
|
|
103
108
|
{
|
|
109
|
+
species_code: String,
|
|
104
110
|
lat: Float,
|
|
105
111
|
lng: Float,
|
|
106
112
|
back: Integer,
|
|
@@ -17,6 +17,9 @@ module Phoebe
|
|
|
17
17
|
)
|
|
18
18
|
end
|
|
19
19
|
|
|
20
|
+
sig { returns(String) }
|
|
21
|
+
attr_accessor :species_code
|
|
22
|
+
|
|
20
23
|
sig { returns(Float) }
|
|
21
24
|
attr_accessor :lat
|
|
22
25
|
|
|
@@ -67,6 +70,7 @@ module Phoebe
|
|
|
67
70
|
|
|
68
71
|
sig do
|
|
69
72
|
params(
|
|
73
|
+
species_code: String,
|
|
70
74
|
lat: Float,
|
|
71
75
|
lng: Float,
|
|
72
76
|
back: Integer,
|
|
@@ -79,6 +83,7 @@ module Phoebe
|
|
|
79
83
|
).returns(T.attached_class)
|
|
80
84
|
end
|
|
81
85
|
def self.new(
|
|
86
|
+
species_code:,
|
|
82
87
|
lat:,
|
|
83
88
|
lng:,
|
|
84
89
|
# The number of days back to fetch observations.
|
|
@@ -100,6 +105,7 @@ module Phoebe
|
|
|
100
105
|
sig do
|
|
101
106
|
override.returns(
|
|
102
107
|
{
|
|
108
|
+
species_code: String,
|
|
103
109
|
lat: Float,
|
|
104
110
|
lng: Float,
|
|
105
111
|
back: Integer,
|
|
@@ -26,6 +26,9 @@ module Phoebe
|
|
|
26
26
|
sig { returns(Integer) }
|
|
27
27
|
attr_accessor :m
|
|
28
28
|
|
|
29
|
+
sig { returns(Integer) }
|
|
30
|
+
attr_accessor :d
|
|
31
|
+
|
|
29
32
|
# Only fetch observations from these taxonomic categories
|
|
30
33
|
sig do
|
|
31
34
|
returns(
|
|
@@ -120,6 +123,7 @@ module Phoebe
|
|
|
120
123
|
region_code: String,
|
|
121
124
|
y_: Integer,
|
|
122
125
|
m: Integer,
|
|
126
|
+
d: Integer,
|
|
123
127
|
cat:
|
|
124
128
|
Phoebe::Data::Observations::Recent::HistoricListParams::Cat::OrSymbol,
|
|
125
129
|
detail:
|
|
@@ -138,6 +142,7 @@ module Phoebe
|
|
|
138
142
|
region_code:,
|
|
139
143
|
y_:,
|
|
140
144
|
m:,
|
|
145
|
+
d:,
|
|
141
146
|
# Only fetch observations from these taxonomic categories
|
|
142
147
|
cat: nil,
|
|
143
148
|
# Include a subset (simple), or all (full), of the fields available.
|
|
@@ -164,6 +169,7 @@ module Phoebe
|
|
|
164
169
|
region_code: String,
|
|
165
170
|
y_: Integer,
|
|
166
171
|
m: Integer,
|
|
172
|
+
d: Integer,
|
|
167
173
|
cat:
|
|
168
174
|
Phoebe::Data::Observations::Recent::HistoricListParams::Cat::OrSymbol,
|
|
169
175
|
detail:
|
|
@@ -17,6 +17,9 @@ module Phoebe
|
|
|
17
17
|
)
|
|
18
18
|
end
|
|
19
19
|
|
|
20
|
+
sig { returns(String) }
|
|
21
|
+
attr_accessor :region_code
|
|
22
|
+
|
|
20
23
|
# The number of days back to fetch observations.
|
|
21
24
|
sig { returns(T.nilable(Integer)) }
|
|
22
25
|
attr_reader :back
|
|
@@ -72,6 +75,7 @@ module Phoebe
|
|
|
72
75
|
|
|
73
76
|
sig do
|
|
74
77
|
params(
|
|
78
|
+
region_code: String,
|
|
75
79
|
back: Integer,
|
|
76
80
|
detail:
|
|
77
81
|
Phoebe::Data::Observations::Recent::NotableListParams::Detail::OrSymbol,
|
|
@@ -83,6 +87,7 @@ module Phoebe
|
|
|
83
87
|
).returns(T.attached_class)
|
|
84
88
|
end
|
|
85
89
|
def self.new(
|
|
90
|
+
region_code:,
|
|
86
91
|
# The number of days back to fetch observations.
|
|
87
92
|
back: nil,
|
|
88
93
|
# Include a subset (simple), or all (full), of the fields available.
|
|
@@ -102,6 +107,7 @@ module Phoebe
|
|
|
102
107
|
sig do
|
|
103
108
|
override.returns(
|
|
104
109
|
{
|
|
110
|
+
region_code: String,
|
|
105
111
|
back: Integer,
|
|
106
112
|
detail:
|
|
107
113
|
Phoebe::Data::Observations::Recent::NotableListParams::Detail::OrSymbol,
|
|
@@ -20,6 +20,9 @@ module Phoebe
|
|
|
20
20
|
sig { returns(String) }
|
|
21
21
|
attr_accessor :region_code
|
|
22
22
|
|
|
23
|
+
sig { returns(String) }
|
|
24
|
+
attr_accessor :species_code
|
|
25
|
+
|
|
23
26
|
# The number of days back to fetch observations.
|
|
24
27
|
sig { returns(T.nilable(Integer)) }
|
|
25
28
|
attr_reader :back
|
|
@@ -65,6 +68,7 @@ module Phoebe
|
|
|
65
68
|
sig do
|
|
66
69
|
params(
|
|
67
70
|
region_code: String,
|
|
71
|
+
species_code: String,
|
|
68
72
|
back: Integer,
|
|
69
73
|
hotspot: T::Boolean,
|
|
70
74
|
include_provisional: T::Boolean,
|
|
@@ -76,6 +80,7 @@ module Phoebe
|
|
|
76
80
|
end
|
|
77
81
|
def self.new(
|
|
78
82
|
region_code:,
|
|
83
|
+
species_code:,
|
|
79
84
|
# The number of days back to fetch observations.
|
|
80
85
|
back: nil,
|
|
81
86
|
# Only fetch observations from hotspots
|
|
@@ -96,6 +101,7 @@ module Phoebe
|
|
|
96
101
|
override.returns(
|
|
97
102
|
{
|
|
98
103
|
region_code: String,
|
|
104
|
+
species_code: String,
|
|
99
105
|
back: Integer,
|
|
100
106
|
hotspot: T::Boolean,
|
|
101
107
|
include_provisional: T::Boolean,
|
|
@@ -16,6 +16,9 @@ module Phoebe
|
|
|
16
16
|
)
|
|
17
17
|
end
|
|
18
18
|
|
|
19
|
+
sig { returns(String) }
|
|
20
|
+
attr_accessor :region_code
|
|
21
|
+
|
|
19
22
|
# The number of days back to fetch observations.
|
|
20
23
|
sig { returns(T.nilable(Integer)) }
|
|
21
24
|
attr_reader :back
|
|
@@ -77,6 +80,7 @@ module Phoebe
|
|
|
77
80
|
|
|
78
81
|
sig do
|
|
79
82
|
params(
|
|
83
|
+
region_code: String,
|
|
80
84
|
back: Integer,
|
|
81
85
|
cat: Phoebe::Data::Observations::RecentListParams::Cat::OrSymbol,
|
|
82
86
|
hotspot: T::Boolean,
|
|
@@ -88,6 +92,7 @@ module Phoebe
|
|
|
88
92
|
).returns(T.attached_class)
|
|
89
93
|
end
|
|
90
94
|
def self.new(
|
|
95
|
+
region_code:,
|
|
91
96
|
# The number of days back to fetch observations.
|
|
92
97
|
back: nil,
|
|
93
98
|
# Only fetch observations from these taxonomic categories
|
|
@@ -109,6 +114,7 @@ module Phoebe
|
|
|
109
114
|
sig do
|
|
110
115
|
override.returns(
|
|
111
116
|
{
|
|
117
|
+
region_code: String,
|
|
112
118
|
back: Integer,
|
|
113
119
|
cat:
|
|
114
120
|
Phoebe::Data::Observations::RecentListParams::Cat::OrSymbol,
|
|
@@ -15,15 +15,23 @@ module Phoebe
|
|
|
15
15
|
)
|
|
16
16
|
end
|
|
17
17
|
|
|
18
|
+
sig { returns(String) }
|
|
19
|
+
attr_accessor :sub_id
|
|
20
|
+
|
|
18
21
|
sig do
|
|
19
|
-
params(
|
|
20
|
-
|
|
21
|
-
|
|
22
|
+
params(
|
|
23
|
+
sub_id: String,
|
|
24
|
+
request_options: Phoebe::RequestOptions::OrHash
|
|
25
|
+
).returns(T.attached_class)
|
|
22
26
|
end
|
|
23
|
-
def self.new(request_options: {})
|
|
27
|
+
def self.new(sub_id:, request_options: {})
|
|
24
28
|
end
|
|
25
29
|
|
|
26
|
-
sig
|
|
30
|
+
sig do
|
|
31
|
+
override.returns(
|
|
32
|
+
{ sub_id: String, request_options: Phoebe::RequestOptions }
|
|
33
|
+
)
|
|
34
|
+
end
|
|
27
35
|
def to_hash
|
|
28
36
|
end
|
|
29
37
|
end
|
|
@@ -15,6 +15,9 @@ module Phoebe
|
|
|
15
15
|
)
|
|
16
16
|
end
|
|
17
17
|
|
|
18
|
+
sig { returns(String) }
|
|
19
|
+
attr_accessor :region_code
|
|
20
|
+
|
|
18
21
|
# Only fetch this number of checklists.
|
|
19
22
|
sig { returns(T.nilable(Integer)) }
|
|
20
23
|
attr_reader :max_results
|
|
@@ -24,11 +27,13 @@ module Phoebe
|
|
|
24
27
|
|
|
25
28
|
sig do
|
|
26
29
|
params(
|
|
30
|
+
region_code: String,
|
|
27
31
|
max_results: Integer,
|
|
28
32
|
request_options: Phoebe::RequestOptions::OrHash
|
|
29
33
|
).returns(T.attached_class)
|
|
30
34
|
end
|
|
31
35
|
def self.new(
|
|
36
|
+
region_code:,
|
|
32
37
|
# Only fetch this number of checklists.
|
|
33
38
|
max_results: nil,
|
|
34
39
|
request_options: {}
|
|
@@ -37,7 +42,11 @@ module Phoebe
|
|
|
37
42
|
|
|
38
43
|
sig do
|
|
39
44
|
override.returns(
|
|
40
|
-
{
|
|
45
|
+
{
|
|
46
|
+
region_code: String,
|
|
47
|
+
max_results: Integer,
|
|
48
|
+
request_options: Phoebe::RequestOptions
|
|
49
|
+
}
|
|
41
50
|
)
|
|
42
51
|
end
|
|
43
52
|
def to_hash
|
|
@@ -25,6 +25,9 @@ module Phoebe
|
|
|
25
25
|
sig { returns(Integer) }
|
|
26
26
|
attr_accessor :m
|
|
27
27
|
|
|
28
|
+
sig { returns(Integer) }
|
|
29
|
+
attr_accessor :d
|
|
30
|
+
|
|
28
31
|
# Only fetch this number of checklists.
|
|
29
32
|
sig { returns(T.nilable(Integer)) }
|
|
30
33
|
attr_reader :max_results
|
|
@@ -55,6 +58,7 @@ module Phoebe
|
|
|
55
58
|
region_code: String,
|
|
56
59
|
y_: Integer,
|
|
57
60
|
m: Integer,
|
|
61
|
+
d: Integer,
|
|
58
62
|
max_results: Integer,
|
|
59
63
|
sort_key:
|
|
60
64
|
Phoebe::Product::Lists::HistoricalRetrieveParams::SortKey::OrSymbol,
|
|
@@ -65,6 +69,7 @@ module Phoebe
|
|
|
65
69
|
region_code:,
|
|
66
70
|
y_:,
|
|
67
71
|
m:,
|
|
72
|
+
d:,
|
|
68
73
|
# Only fetch this number of checklists.
|
|
69
74
|
max_results: nil,
|
|
70
75
|
# Order the results by the date of the checklist or by the date it was submitted.
|
|
@@ -79,6 +84,7 @@ module Phoebe
|
|
|
79
84
|
region_code: String,
|
|
80
85
|
y_: Integer,
|
|
81
86
|
m: Integer,
|
|
87
|
+
d: Integer,
|
|
82
88
|
max_results: Integer,
|
|
83
89
|
sort_key:
|
|
84
90
|
Phoebe::Product::Lists::HistoricalRetrieveParams::SortKey::OrSymbol,
|
|
@@ -15,15 +15,23 @@ module Phoebe
|
|
|
15
15
|
)
|
|
16
16
|
end
|
|
17
17
|
|
|
18
|
+
sig { returns(String) }
|
|
19
|
+
attr_accessor :region_code
|
|
20
|
+
|
|
18
21
|
sig do
|
|
19
|
-
params(
|
|
20
|
-
|
|
21
|
-
|
|
22
|
+
params(
|
|
23
|
+
region_code: String,
|
|
24
|
+
request_options: Phoebe::RequestOptions::OrHash
|
|
25
|
+
).returns(T.attached_class)
|
|
22
26
|
end
|
|
23
|
-
def self.new(request_options: {})
|
|
27
|
+
def self.new(region_code:, request_options: {})
|
|
24
28
|
end
|
|
25
29
|
|
|
26
|
-
sig
|
|
30
|
+
sig do
|
|
31
|
+
override.returns(
|
|
32
|
+
{ region_code: String, request_options: Phoebe::RequestOptions }
|
|
33
|
+
)
|
|
34
|
+
end
|
|
27
35
|
def to_hash
|
|
28
36
|
end
|
|
29
37
|
end
|
|
@@ -24,15 +24,19 @@ module Phoebe
|
|
|
24
24
|
sig { returns(Integer) }
|
|
25
25
|
attr_accessor :m
|
|
26
26
|
|
|
27
|
+
sig { returns(Integer) }
|
|
28
|
+
attr_accessor :d
|
|
29
|
+
|
|
27
30
|
sig do
|
|
28
31
|
params(
|
|
29
32
|
region_code: String,
|
|
30
33
|
y_: Integer,
|
|
31
34
|
m: Integer,
|
|
35
|
+
d: Integer,
|
|
32
36
|
request_options: Phoebe::RequestOptions::OrHash
|
|
33
37
|
).returns(T.attached_class)
|
|
34
38
|
end
|
|
35
|
-
def self.new(region_code:, y_:, m:, request_options: {})
|
|
39
|
+
def self.new(region_code:, y_:, m:, d:, request_options: {})
|
|
36
40
|
end
|
|
37
41
|
|
|
38
42
|
sig do
|
|
@@ -41,6 +45,7 @@ module Phoebe
|
|
|
41
45
|
region_code: String,
|
|
42
46
|
y_: Integer,
|
|
43
47
|
m: Integer,
|
|
48
|
+
d: Integer,
|
|
44
49
|
request_options: Phoebe::RequestOptions
|
|
45
50
|
}
|
|
46
51
|
)
|
|
@@ -24,6 +24,9 @@ module Phoebe
|
|
|
24
24
|
sig { returns(Integer) }
|
|
25
25
|
attr_accessor :m
|
|
26
26
|
|
|
27
|
+
sig { returns(Integer) }
|
|
28
|
+
attr_accessor :d
|
|
29
|
+
|
|
27
30
|
# Only fetch this number of contributors.
|
|
28
31
|
sig { returns(T.nilable(Integer)) }
|
|
29
32
|
attr_reader :max_results
|
|
@@ -51,6 +54,7 @@ module Phoebe
|
|
|
51
54
|
region_code: String,
|
|
52
55
|
y_: Integer,
|
|
53
56
|
m: Integer,
|
|
57
|
+
d: Integer,
|
|
54
58
|
max_results: Integer,
|
|
55
59
|
ranked_by:
|
|
56
60
|
Phoebe::Product::Top100RetrieveParams::RankedBy::OrSymbol,
|
|
@@ -61,6 +65,7 @@ module Phoebe
|
|
|
61
65
|
region_code:,
|
|
62
66
|
y_:,
|
|
63
67
|
m:,
|
|
68
|
+
d:,
|
|
64
69
|
# Only fetch this number of contributors.
|
|
65
70
|
max_results: nil,
|
|
66
71
|
# Order by number of complete checklists (cl) or by number of species seen (spp).
|
|
@@ -75,6 +80,7 @@ module Phoebe
|
|
|
75
80
|
region_code: String,
|
|
76
81
|
y_: Integer,
|
|
77
82
|
m: Integer,
|
|
83
|
+
d: Integer,
|
|
78
84
|
max_results: Integer,
|
|
79
85
|
ranked_by:
|
|
80
86
|
Phoebe::Product::Top100RetrieveParams::RankedBy::OrSymbol,
|
|
@@ -16,15 +16,23 @@ module Phoebe
|
|
|
16
16
|
)
|
|
17
17
|
end
|
|
18
18
|
|
|
19
|
+
sig { returns(String) }
|
|
20
|
+
attr_accessor :loc_id
|
|
21
|
+
|
|
19
22
|
sig do
|
|
20
|
-
params(
|
|
21
|
-
|
|
22
|
-
|
|
23
|
+
params(
|
|
24
|
+
loc_id: String,
|
|
25
|
+
request_options: Phoebe::RequestOptions::OrHash
|
|
26
|
+
).returns(T.attached_class)
|
|
23
27
|
end
|
|
24
|
-
def self.new(request_options: {})
|
|
28
|
+
def self.new(loc_id:, request_options: {})
|
|
25
29
|
end
|
|
26
30
|
|
|
27
|
-
sig
|
|
31
|
+
sig do
|
|
32
|
+
override.returns(
|
|
33
|
+
{ loc_id: String, request_options: Phoebe::RequestOptions }
|
|
34
|
+
)
|
|
35
|
+
end
|
|
28
36
|
def to_hash
|
|
29
37
|
end
|
|
30
38
|
end
|