@jugarhoy/api 1.1.38 → 1.1.40

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.
@@ -88,7 +88,7 @@ export interface KickRegistrationRequest {
88
88
  }
89
89
 
90
90
  export interface ListPlaySearchesRequest {
91
- sport: Sport;
91
+ sport?: Sport;
92
92
  type?: PlaySearchType;
93
93
  latitude?: number;
94
94
  longitude?: number;
@@ -535,13 +535,6 @@ export class AppPlaySearchApi extends runtime.BaseAPI {
535
535
  * List play searches with filters
536
536
  */
537
537
  async listPlaySearchesRaw(requestParameters: ListPlaySearchesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PlaySearchListResponse>> {
538
- if (requestParameters['sport'] == null) {
539
- throw new runtime.RequiredError(
540
- 'sport',
541
- 'Required parameter "sport" was null or undefined when calling listPlaySearches().'
542
- );
543
- }
544
-
545
538
  const queryParameters: any = {};
546
539
 
547
540
  if (requestParameters['sport'] != null) {
@@ -607,7 +600,7 @@ export class AppPlaySearchApi extends runtime.BaseAPI {
607
600
  /**
608
601
  * List play searches with filters
609
602
  */
610
- async listPlaySearches(requestParameters: ListPlaySearchesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PlaySearchListResponse> {
603
+ async listPlaySearches(requestParameters: ListPlaySearchesRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PlaySearchListResponse> {
611
604
  const response = await this.listPlaySearchesRaw(requestParameters, initOverrides);
612
605
  return await response.value();
613
606
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jugarhoy/api",
3
- "version": "1.1.38",
3
+ "version": "1.1.40",
4
4
  "description": "TypeScript SDK for Jugar Hoy API",
5
5
  "main": "index.ts",
6
6
  "types": "index.ts",
package/runtime.ts CHANGED
@@ -13,7 +13,7 @@
13
13
  */
14
14
 
15
15
 
16
- export const BASE_PATH = "http://localhost:6173".replace(/\/+$/, "");
16
+ export const BASE_PATH = "http://localhost:7173".replace(/\/+$/, "");
17
17
 
18
18
  export interface ConfigurationParameters {
19
19
  basePath?: string; // override base path