Skip to content

Commit

Permalink
feat(api): manual updates
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-bot committed Jun 24, 2024
1 parent c7a6c56 commit 30e6118
Show file tree
Hide file tree
Showing 10 changed files with 17 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 25
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/personal-ijyk2f%2Fphoebe-33993a1e2246957ac9acdf8943f331a0a7f1d63b11aae6e0af1c3ba9f1f12deb.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/personal-ijyk2f%2Fphoebe-49ae38c4877a1700951784ea4f1fc6c0dc2ac9ae0d99fa1c18d444c89b18b5b0.yml
8 changes: 4 additions & 4 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Methods:

Methods:

- <code title="get /data/obs/{regionCode}/historic/{y}/{m}/{d}">client.Data.Observations.Recent.Historic.<a href="https://pkg.go.dev/github.com/stainless-sdks/phoebe-go#DataObservationRecentHistoricService.List">List</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, regionCode <a href="https://pkg.go.dev/builtin#string">string</a>, y <a href="https://pkg.go.dev/builtin#int64">int64</a>, m <a href="https://pkg.go.dev/builtin#int64">int64</a>, d <a href="https://pkg.go.dev/builtin#int64">int64</a>, query <a href="https://pkg.go.dev/github.com/stainless-sdks/phoebe-go">phoebe</a>.<a href="https://pkg.go.dev/github.com/stainless-sdks/phoebe-go#DataObservationRecentHistoricListParams">DataObservationRecentHistoricListParams</a>) <a href="https://pkg.go.dev/builtin#error">error</a></code>
- <code title="get /data/obs/{regionCode}/historic/{y}/{m}/{d}">client.Data.Observations.Recent.Historic.<a href="https://pkg.go.dev/github.com/stainless-sdks/phoebe-go#DataObservationRecentHistoricService.List">List</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, regionCode <a href="https://pkg.go.dev/builtin#string">string</a>, y <a href="https://pkg.go.dev/builtin#int64">int64</a>, m <a href="https://pkg.go.dev/builtin#int64">int64</a>, d <a href="https://pkg.go.dev/builtin#int64">int64</a>, query <a href="https://pkg.go.dev/github.com/stainless-sdks/phoebe-go">phoebe</a>.<a href="https://pkg.go.dev/github.com/stainless-sdks/phoebe-go#DataObservationRecentHistoricListParams">DataObservationRecentHistoricListParams</a>) ([]<a href="https://pkg.go.dev/github.com/stainless-sdks/phoebe-go">phoebe</a>.<a href="https://pkg.go.dev/github.com/stainless-sdks/phoebe-go#Observation">Observation</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>

### Geo

Expand All @@ -48,23 +48,23 @@ Methods:

Methods:

- <code title="get /data/obs/geo/recent/notable">client.Data.Observations.Geo.Recent.Notable.<a href="https://pkg.go.dev/github.com/stainless-sdks/phoebe-go#DataObservationGeoRecentNotableService.List">List</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, query <a href="https://pkg.go.dev/github.com/stainless-sdks/phoebe-go">phoebe</a>.<a href="https://pkg.go.dev/github.com/stainless-sdks/phoebe-go#DataObservationGeoRecentNotableListParams">DataObservationGeoRecentNotableListParams</a>) <a href="https://pkg.go.dev/builtin#error">error</a></code>
- <code title="get /data/obs/geo/recent/notable">client.Data.Observations.Geo.Recent.Notable.<a href="https://pkg.go.dev/github.com/stainless-sdks/phoebe-go#DataObservationGeoRecentNotableService.List">List</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, query <a href="https://pkg.go.dev/github.com/stainless-sdks/phoebe-go">phoebe</a>.<a href="https://pkg.go.dev/github.com/stainless-sdks/phoebe-go#DataObservationGeoRecentNotableListParams">DataObservationGeoRecentNotableListParams</a>) ([]<a href="https://pkg.go.dev/github.com/stainless-sdks/phoebe-go">phoebe</a>.<a href="https://pkg.go.dev/github.com/stainless-sdks/phoebe-go#Observation">Observation</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>

### Nearest

#### GeoSpecies

Methods:

- <code title="get /data/nearest/geo/recent/{speciesCode}">client.Data.Observations.Nearest.GeoSpecies.<a href="https://pkg.go.dev/github.com/stainless-sdks/phoebe-go#DataObservationNearestGeoSpecieService.List">List</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, speciesCode <a href="https://pkg.go.dev/builtin#string">string</a>, query <a href="https://pkg.go.dev/github.com/stainless-sdks/phoebe-go">phoebe</a>.<a href="https://pkg.go.dev/github.com/stainless-sdks/phoebe-go#DataObservationNearestGeoSpecieListParams">DataObservationNearestGeoSpecieListParams</a>) <a href="https://pkg.go.dev/builtin#error">error</a></code>
- <code title="get /data/nearest/geo/recent/{speciesCode}">client.Data.Observations.Nearest.GeoSpecies.<a href="https://pkg.go.dev/github.com/stainless-sdks/phoebe-go#DataObservationNearestGeoSpecieService.List">List</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, speciesCode <a href="https://pkg.go.dev/builtin#string">string</a>, query <a href="https://pkg.go.dev/github.com/stainless-sdks/phoebe-go">phoebe</a>.<a href="https://pkg.go.dev/github.com/stainless-sdks/phoebe-go#DataObservationNearestGeoSpecieListParams">DataObservationNearestGeoSpecieListParams</a>) ([]<a href="https://pkg.go.dev/github.com/stainless-sdks/phoebe-go">phoebe</a>.<a href="https://pkg.go.dev/github.com/stainless-sdks/phoebe-go#Observation">Observation</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>

# Product

## Lists

Methods:

- <code title="get /product/lists/{regionCode}">client.Product.Lists.<a href="https://pkg.go.dev/github.com/stainless-sdks/phoebe-go#ProductListService.Get">Get</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, regionCode <a href="https://pkg.go.dev/builtin#string">string</a>, query <a href="https://pkg.go.dev/github.com/stainless-sdks/phoebe-go">phoebe</a>.<a href="https://pkg.go.dev/github.com/stainless-sdks/phoebe-go#ProductListGetParams">ProductListGetParams</a>) <a href="https://pkg.go.dev/builtin#error">error</a></code>
- <code title="get /product/lists/{regionCode}">client.Product.Lists.<a href="https://pkg.go.dev/github.com/stainless-sdks/phoebe-go#ProductListService.Get">Get</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, regionCode <a href="https://pkg.go.dev/builtin#string">string</a>, query <a href="https://pkg.go.dev/github.com/stainless-sdks/phoebe-go">phoebe</a>.<a href="https://pkg.go.dev/github.com/stainless-sdks/phoebe-go#ProductListGetParams">ProductListGetParams</a>) ([]<a href="https://pkg.go.dev/github.com/stainless-sdks/phoebe-go">phoebe</a>.<a href="https://pkg.go.dev/github.com/stainless-sdks/phoebe-go#Observation">Observation</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>

### Historical

Expand Down
5 changes: 2 additions & 3 deletions dataobservationgeorecentnotable.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,10 @@ func NewDataObservationGeoRecentNotableService(opts ...option.RequestOption) (r
// coordinates. Notable observations can be for locally or nationally rare species
// or are otherwise unusual, for example over-wintering birds in a species which is
// normally only a summer visitor.
func (r *DataObservationGeoRecentNotableService) List(ctx context.Context, query DataObservationGeoRecentNotableListParams, opts ...option.RequestOption) (err error) {
func (r *DataObservationGeoRecentNotableService) List(ctx context.Context, query DataObservationGeoRecentNotableListParams, opts ...option.RequestOption) (res *[]Observation, err error) {
opts = append(r.Options[:], opts...)
opts = append([]option.RequestOption{option.WithHeader("Accept", "")}, opts...)
path := "data/obs/geo/recent/notable"
err = requestconfig.ExecuteNewRequest(ctx, http.MethodGet, path, query, nil, opts...)
err = requestconfig.ExecuteNewRequest(ctx, http.MethodGet, path, query, &res, opts...)
return
}

Expand Down
2 changes: 1 addition & 1 deletion dataobservationgeorecentnotable_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func TestDataObservationGeoRecentNotableListWithOptionalParams(t *testing.T) {
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
err := client.Data.Observations.Geo.Recent.Notable.List(context.TODO(), phoebe.DataObservationGeoRecentNotableListParams{
_, err := client.Data.Observations.Geo.Recent.Notable.List(context.TODO(), phoebe.DataObservationGeoRecentNotableListParams{
Lat: phoebe.F(-90.000000),
Lng: phoebe.F(-180.000000),
Back: phoebe.F(int64(1)),
Expand Down
5 changes: 2 additions & 3 deletions dataobservationnearestgeospecie.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,14 @@ func NewDataObservationNearestGeoSpecieService(opts ...option.RequestOption) (r
// Find the nearest locations where a species has been seen recently. #### Notes
// The species code is typically a 6-letter code, e.g. barswa for Barn Swallow. You
// can get complete set of species code from the GET eBird Taxonomy end-point.
func (r *DataObservationNearestGeoSpecieService) List(ctx context.Context, speciesCode string, query DataObservationNearestGeoSpecieListParams, opts ...option.RequestOption) (err error) {
func (r *DataObservationNearestGeoSpecieService) List(ctx context.Context, speciesCode string, query DataObservationNearestGeoSpecieListParams, opts ...option.RequestOption) (res *[]Observation, err error) {
opts = append(r.Options[:], opts...)
opts = append([]option.RequestOption{option.WithHeader("Accept", "")}, opts...)
if speciesCode == "" {
err = errors.New("missing required speciesCode parameter")
return
}
path := fmt.Sprintf("data/nearest/geo/recent/%s", speciesCode)
err = requestconfig.ExecuteNewRequest(ctx, http.MethodGet, path, query, nil, opts...)
err = requestconfig.ExecuteNewRequest(ctx, http.MethodGet, path, query, &res, opts...)
return
}

Expand Down
2 changes: 1 addition & 1 deletion dataobservationnearestgeospecie_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func TestDataObservationNearestGeoSpecieListWithOptionalParams(t *testing.T) {
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
err := client.Data.Observations.Nearest.GeoSpecies.List(
_, err := client.Data.Observations.Nearest.GeoSpecies.List(
context.TODO(),
"string",
phoebe.DataObservationNearestGeoSpecieListParams{
Expand Down
5 changes: 2 additions & 3 deletions dataobservationrecenthistoric.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,14 @@ func NewDataObservationRecentHistoricService(opts ...option.RequestOption) (r *D
// latest observation on the date).
//
// #### Notes Responses may be cached for 30 minutes
func (r *DataObservationRecentHistoricService) List(ctx context.Context, regionCode string, y int64, m int64, d int64, query DataObservationRecentHistoricListParams, opts ...option.RequestOption) (err error) {
func (r *DataObservationRecentHistoricService) List(ctx context.Context, regionCode string, y int64, m int64, d int64, query DataObservationRecentHistoricListParams, opts ...option.RequestOption) (res *[]Observation, err error) {
opts = append(r.Options[:], opts...)
opts = append([]option.RequestOption{option.WithHeader("Accept", "")}, opts...)
if regionCode == "" {
err = errors.New("missing required regionCode parameter")
return
}
path := fmt.Sprintf("data/obs/%s/historic/%v/%v/%v", regionCode, y, m, d)
err = requestconfig.ExecuteNewRequest(ctx, http.MethodGet, path, query, nil, opts...)
err = requestconfig.ExecuteNewRequest(ctx, http.MethodGet, path, query, &res, opts...)
return
}

Expand Down
2 changes: 1 addition & 1 deletion dataobservationrecenthistoric_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func TestDataObservationRecentHistoricListWithOptionalParams(t *testing.T) {
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
err := client.Data.Observations.Recent.Historic.List(
_, err := client.Data.Observations.Recent.Historic.List(
context.TODO(),
"string",
int64(0),
Expand Down
5 changes: 2 additions & 3 deletions productlist.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,14 @@ func NewProductListService(opts ...option.RequestOption) (r *ProductListService)
}

// Get information on the most recently submitted checklists for a region.
func (r *ProductListService) Get(ctx context.Context, regionCode string, query ProductListGetParams, opts ...option.RequestOption) (err error) {
func (r *ProductListService) Get(ctx context.Context, regionCode string, query ProductListGetParams, opts ...option.RequestOption) (res *[]Observation, err error) {
opts = append(r.Options[:], opts...)
opts = append([]option.RequestOption{option.WithHeader("Accept", "")}, opts...)
if regionCode == "" {
err = errors.New("missing required regionCode parameter")
return
}
path := fmt.Sprintf("product/lists/%s", regionCode)
err = requestconfig.ExecuteNewRequest(ctx, http.MethodGet, path, query, nil, opts...)
err = requestconfig.ExecuteNewRequest(ctx, http.MethodGet, path, query, &res, opts...)
return
}

Expand Down
2 changes: 1 addition & 1 deletion productlist_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func TestProductListGetWithOptionalParams(t *testing.T) {
option.WithBaseURL(baseURL),
option.WithAPIKey("My API Key"),
)
err := client.Product.Lists.Get(
_, err := client.Product.Lists.Get(
context.TODO(),
"string",
phoebe.ProductListGetParams{
Expand Down

0 comments on commit 30e6118

Please sign in to comment.