@jugarhoy/api 1.0.0

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.
Files changed (171) hide show
  1. package/apis/AdminCoachesApi.ts +259 -0
  2. package/apis/AdminCustomersApi.ts +374 -0
  3. package/apis/AdminDevicesApi.ts +364 -0
  4. package/apis/AdminLocationsApi.ts +304 -0
  5. package/apis/AdminPaymentConfigsApi.ts +358 -0
  6. package/apis/AdminPlayPricesApi.ts +397 -0
  7. package/apis/AdminPlaySpotShiftsApi.ts +267 -0
  8. package/apis/AdminPlaySpotsApi.ts +307 -0
  9. package/apis/AdminReservationsApi.ts +335 -0
  10. package/apis/AdminSubscriptionsApi.ts +354 -0
  11. package/apis/AdminUsersApi.ts +323 -0
  12. package/apis/AuthApi.ts +196 -0
  13. package/apis/BackgroundApi.ts +66 -0
  14. package/apis/ClubApi.ts +174 -0
  15. package/apis/DevicesApi.ts +136 -0
  16. package/apis/HealthApi.ts +56 -0
  17. package/apis/MercadoPagoApi.ts +111 -0
  18. package/apis/MercadoPagoIPNApi.ts +80 -0
  19. package/apis/PlaySpotsApi.ts +207 -0
  20. package/apis/ReservesApi.ts +366 -0
  21. package/apis/UsersApi.ts +648 -0
  22. package/apis/index.ts +23 -0
  23. package/index.ts +5 -0
  24. package/models/AddMemberToSubscriptionRequest.ts +66 -0
  25. package/models/ApiAdminPlayPricesIdPutRequest.ts +140 -0
  26. package/models/ApiAdminPlayPricesPostRequest.ts +146 -0
  27. package/models/AvailabilityShift.ts +89 -0
  28. package/models/AvailabilityShiftHour.ts +81 -0
  29. package/models/AvailabilityShiftSpot.ts +89 -0
  30. package/models/CancelReservationParams.ts +75 -0
  31. package/models/CancelReservationRequest.ts +66 -0
  32. package/models/CancelReservationResult.ts +89 -0
  33. package/models/ChargeOn.ts +53 -0
  34. package/models/Check200Response.ts +65 -0
  35. package/models/CheckUserExists200Response.ts +73 -0
  36. package/models/ClubDto.ts +164 -0
  37. package/models/ClubSearchParams.ts +119 -0
  38. package/models/ClubSearchParamsGeo.ts +73 -0
  39. package/models/ClubSearchParamsPaging.ts +73 -0
  40. package/models/ClubSearchResponse.ts +88 -0
  41. package/models/ClubSearchResponseDataInner.ts +168 -0
  42. package/models/ClubSearchResponsePagination.ts +89 -0
  43. package/models/Coach.ts +121 -0
  44. package/models/CoachDto.ts +119 -0
  45. package/models/CoachDtoAvailabilityInner.ts +88 -0
  46. package/models/ConfirmReservationParams.ts +74 -0
  47. package/models/ConfirmReservationResponse.ts +83 -0
  48. package/models/ConfirmReservationResponseResult.ts +81 -0
  49. package/models/CreateBasicUserDto.ts +112 -0
  50. package/models/CreateCheckoutPreferenceRequest.ts +104 -0
  51. package/models/CreateCheckoutPreferenceRequestBackUrls.ts +81 -0
  52. package/models/CreateCheckoutPreferenceRequestItemsInner.ts +89 -0
  53. package/models/CreateCustomerPaymentConfigDto.ts +84 -0
  54. package/models/CreateDefault500Response.ts +65 -0
  55. package/models/CreateFromInvite400Response.ts +65 -0
  56. package/models/CreateShiftRequest.ts +153 -0
  57. package/models/CreateUserNotificationDto.ts +93 -0
  58. package/models/Customer.ts +235 -0
  59. package/models/CustomerDocument.ts +128 -0
  60. package/models/CustomerDto.ts +209 -0
  61. package/models/CustomerDtoRefund.ts +103 -0
  62. package/models/CustomerLocationDto.ts +102 -0
  63. package/models/CustomerPaymentConfig.ts +144 -0
  64. package/models/CustomerPaymentConfigDto.ts +85 -0
  65. package/models/CustomerRefund.ts +102 -0
  66. package/models/CustomerStatus.ts +53 -0
  67. package/models/DayOfWeek.ts +58 -0
  68. package/models/DeleteShift200Response.ts +65 -0
  69. package/models/Device.ts +139 -0
  70. package/models/DeviceDto.ts +131 -0
  71. package/models/DeviceState.ts +111 -0
  72. package/models/DeviceType.ts +53 -0
  73. package/models/DominantPlaySide.ts +54 -0
  74. package/models/ErrorResponse.ts +66 -0
  75. package/models/ExpireUnpaidReservationResult.ts +81 -0
  76. package/models/ExpireUnpaidReservations401Response.ts +65 -0
  77. package/models/ExpireUnpaidReservations500Response.ts +65 -0
  78. package/models/Feature.ts +121 -0
  79. package/models/FindOccurrences200Response.ts +91 -0
  80. package/models/Frequency.ts +54 -0
  81. package/models/GenerateCode500Response.ts +65 -0
  82. package/models/GetAllDevices200ResponseInner.ts +154 -0
  83. package/models/GetAllPlaySpots200ResponseInner.ts +213 -0
  84. package/models/GetAllShifts200ResponseInner.ts +199 -0
  85. package/models/GetHourlyReservationStatus200Response.ts +89 -0
  86. package/models/GetHourlyReservationStatus200ResponseHourlyStatusInner.ts +97 -0
  87. package/models/GetMercadoPagoAuthUrl200Response.ts +66 -0
  88. package/models/GetSession401Response.ts +65 -0
  89. package/models/GetSession500Response.ts +65 -0
  90. package/models/HourShiftDetail.ts +81 -0
  91. package/models/InitiateReservationParams.ts +137 -0
  92. package/models/Level.ts +54 -0
  93. package/models/LightControlResponse.ts +83 -0
  94. package/models/Location.ts +209 -0
  95. package/models/LocationDto.ts +204 -0
  96. package/models/ManageLightSwitch200Response.ts +81 -0
  97. package/models/ManageLightSwitch500Response.ts +73 -0
  98. package/models/MatchRequirements.ts +100 -0
  99. package/models/MercadoPagoIPN.ts +135 -0
  100. package/models/NotificationType.ts +55 -0
  101. package/models/Occurrence.ts +84 -0
  102. package/models/PaymentDetail.ts +185 -0
  103. package/models/PaymentMethod.ts +56 -0
  104. package/models/PaymentRefund.ts +111 -0
  105. package/models/PaymentStatus.ts +55 -0
  106. package/models/PaymentTerms.ts +85 -0
  107. package/models/PlayPrice.ts +165 -0
  108. package/models/PlaySpot.ts +197 -0
  109. package/models/PlaySpotAvailabilityDetail.ts +89 -0
  110. package/models/PlaySpotDateSummary.ts +81 -0
  111. package/models/PlaySpotDeviceExecutionState.ts +127 -0
  112. package/models/PlaySpotDto.ts +185 -0
  113. package/models/PlaySpotShift.ts +184 -0
  114. package/models/PlaySpotShortDto.ts +97 -0
  115. package/models/PlaySubscription.ts +293 -0
  116. package/models/PlaySubscriptionCreateDto.ts +167 -0
  117. package/models/PlaySubscriptionParams.ts +114 -0
  118. package/models/PlaySubscriptionType.ts +55 -0
  119. package/models/PlayerCategory.ts +61 -0
  120. package/models/ProcessEmailMessageRequest.ts +66 -0
  121. package/models/ProcessMercadoPagoIPN200Response.ts +73 -0
  122. package/models/ProcessMercadoPagoPaymentParams.ts +83 -0
  123. package/models/ProcessMercadoPagoPaymentResponse.ts +83 -0
  124. package/models/ProcessMercadoPagoPaymentResponseResult.ts +89 -0
  125. package/models/RefundPolicy.ts +54 -0
  126. package/models/RegisterClub400Response.ts +65 -0
  127. package/models/RegisterClub401Response.ts +65 -0
  128. package/models/RegisterClub500Response.ts +65 -0
  129. package/models/RegisterClubParams.ts +191 -0
  130. package/models/RegisterClubResponse.ts +83 -0
  131. package/models/RegisterClubResponseResult.ts +96 -0
  132. package/models/RentHour.ts +73 -0
  133. package/models/ReservationAccessCodeResponse.ts +91 -0
  134. package/models/ReservationAccessCodeResponseResult.ts +107 -0
  135. package/models/ReservationParams.ts +121 -0
  136. package/models/ReservationStatus.ts +55 -0
  137. package/models/Reserve.ts +290 -0
  138. package/models/ReserveDto.ts +207 -0
  139. package/models/ReserveSlotDto.ts +81 -0
  140. package/models/ReserveStatus.ts +57 -0
  141. package/models/ReserveType.ts +58 -0
  142. package/models/SearchClubs400Response.ts +65 -0
  143. package/models/SearchClubs500Response.ts +65 -0
  144. package/models/SetAuthCodeDto.ts +85 -0
  145. package/models/Shift.ts +93 -0
  146. package/models/Sport.ts +61 -0
  147. package/models/SuccessResponse.ts +66 -0
  148. package/models/TimeOfDay.ts +54 -0
  149. package/models/TriggerDeviceAction200Response.ts +81 -0
  150. package/models/TriggerDeviceActionRequest.ts +73 -0
  151. package/models/UpdateReservationAdminRequest.ts +83 -0
  152. package/models/UpdateReserveDto.ts +83 -0
  153. package/models/UpdateUserNotificationDto.ts +73 -0
  154. package/models/User.ts +243 -0
  155. package/models/UserAuth.ts +135 -0
  156. package/models/UserDto.ts +142 -0
  157. package/models/UserNotification.ts +123 -0
  158. package/models/UserNotificationDto.ts +115 -0
  159. package/models/UserRating.ts +75 -0
  160. package/models/UserReserveDto.ts +230 -0
  161. package/models/UserRole.ts +53 -0
  162. package/models/UserSession.ts +129 -0
  163. package/models/UserSessionCustomer.ts +81 -0
  164. package/models/UserSportProfile.ts +117 -0
  165. package/models/UserSportProfileDto.ts +117 -0
  166. package/models/UserType.ts +54 -0
  167. package/models/VerifyPhoneNumber200Response.ts +65 -0
  168. package/models/VerifyPhoneNumberRequest.ts +66 -0
  169. package/models/index.ts +147 -0
  170. package/package.json +35 -0
  171. package/runtime.ts +432 -0
@@ -0,0 +1,66 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Jugar Hoy - API
5
+ * API documentation for Jugar Hoy application
6
+ *
7
+ * The version of the OpenAPI document: 1.5.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface CancelReservationRequest
20
+ */
21
+ export interface CancelReservationRequest {
22
+ /**
23
+ * ID of the reservation to cancel
24
+ * @type {string}
25
+ * @memberof CancelReservationRequest
26
+ */
27
+ reservationId: string;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the CancelReservationRequest interface.
32
+ */
33
+ export function instanceOfCancelReservationRequest(value: object): value is CancelReservationRequest {
34
+ if (!('reservationId' in value) || value['reservationId'] === undefined) return false;
35
+ return true;
36
+ }
37
+
38
+ export function CancelReservationRequestFromJSON(json: any): CancelReservationRequest {
39
+ return CancelReservationRequestFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function CancelReservationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CancelReservationRequest {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+
48
+ 'reservationId': json['reservationId'],
49
+ };
50
+ }
51
+
52
+ export function CancelReservationRequestToJSON(json: any): CancelReservationRequest {
53
+ return CancelReservationRequestToJSONTyped(json, false);
54
+ }
55
+
56
+ export function CancelReservationRequestToJSONTyped(value?: CancelReservationRequest | null, ignoreDiscriminator: boolean = false): any {
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+
61
+ return {
62
+
63
+ 'reservationId': value['reservationId'],
64
+ };
65
+ }
66
+
@@ -0,0 +1,89 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Jugar Hoy - API
5
+ * API documentation for Jugar Hoy application
6
+ *
7
+ * The version of the OpenAPI document: 1.5.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { Reserve } from './Reserve';
17
+ import {
18
+ ReserveFromJSON,
19
+ ReserveFromJSONTyped,
20
+ ReserveToJSON,
21
+ ReserveToJSONTyped,
22
+ } from './Reserve';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface CancelReservationResult
28
+ */
29
+ export interface CancelReservationResult {
30
+ /**
31
+ * Whether the cancellation was successful
32
+ * @type {boolean}
33
+ * @memberof CancelReservationResult
34
+ */
35
+ success?: boolean;
36
+ /**
37
+ *
38
+ * @type {Reserve}
39
+ * @memberof CancelReservationResult
40
+ */
41
+ reservation?: Reserve;
42
+ /**
43
+ * A message describing the result
44
+ * @type {string}
45
+ * @memberof CancelReservationResult
46
+ */
47
+ message?: string;
48
+ }
49
+
50
+ /**
51
+ * Check if a given object implements the CancelReservationResult interface.
52
+ */
53
+ export function instanceOfCancelReservationResult(value: object): value is CancelReservationResult {
54
+ return true;
55
+ }
56
+
57
+ export function CancelReservationResultFromJSON(json: any): CancelReservationResult {
58
+ return CancelReservationResultFromJSONTyped(json, false);
59
+ }
60
+
61
+ export function CancelReservationResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): CancelReservationResult {
62
+ if (json == null) {
63
+ return json;
64
+ }
65
+ return {
66
+
67
+ 'success': json['success'] == null ? undefined : json['success'],
68
+ 'reservation': json['reservation'] == null ? undefined : ReserveFromJSON(json['reservation']),
69
+ 'message': json['message'] == null ? undefined : json['message'],
70
+ };
71
+ }
72
+
73
+ export function CancelReservationResultToJSON(json: any): CancelReservationResult {
74
+ return CancelReservationResultToJSONTyped(json, false);
75
+ }
76
+
77
+ export function CancelReservationResultToJSONTyped(value?: CancelReservationResult | null, ignoreDiscriminator: boolean = false): any {
78
+ if (value == null) {
79
+ return value;
80
+ }
81
+
82
+ return {
83
+
84
+ 'success': value['success'],
85
+ 'reservation': ReserveToJSON(value['reservation']),
86
+ 'message': value['message'],
87
+ };
88
+ }
89
+
@@ -0,0 +1,53 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Jugar Hoy - API
5
+ * API documentation for Jugar Hoy application
6
+ *
7
+ * The version of the OpenAPI document: 1.5.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ /**
17
+ * Defines when to charge for a play price
18
+ * @export
19
+ */
20
+ export const ChargeOn = {
21
+ Session: 'session',
22
+ Monthly: 'monthly'
23
+ } as const;
24
+ export type ChargeOn = typeof ChargeOn[keyof typeof ChargeOn];
25
+
26
+
27
+ export function instanceOfChargeOn(value: any): boolean {
28
+ for (const key in ChargeOn) {
29
+ if (Object.prototype.hasOwnProperty.call(ChargeOn, key)) {
30
+ if (ChargeOn[key as keyof typeof ChargeOn] === value) {
31
+ return true;
32
+ }
33
+ }
34
+ }
35
+ return false;
36
+ }
37
+
38
+ export function ChargeOnFromJSON(json: any): ChargeOn {
39
+ return ChargeOnFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function ChargeOnFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChargeOn {
43
+ return json as ChargeOn;
44
+ }
45
+
46
+ export function ChargeOnToJSON(value?: ChargeOn | null): any {
47
+ return value as any;
48
+ }
49
+
50
+ export function ChargeOnToJSONTyped(value: any, ignoreDiscriminator: boolean): ChargeOn {
51
+ return value as ChargeOn;
52
+ }
53
+
@@ -0,0 +1,65 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Jugar Hoy - API
5
+ * API documentation for Jugar Hoy application
6
+ *
7
+ * The version of the OpenAPI document: 1.5.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface Check200Response
20
+ */
21
+ export interface Check200Response {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof Check200Response
26
+ */
27
+ status?: string;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the Check200Response interface.
32
+ */
33
+ export function instanceOfCheck200Response(value: object): value is Check200Response {
34
+ return true;
35
+ }
36
+
37
+ export function Check200ResponseFromJSON(json: any): Check200Response {
38
+ return Check200ResponseFromJSONTyped(json, false);
39
+ }
40
+
41
+ export function Check200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): Check200Response {
42
+ if (json == null) {
43
+ return json;
44
+ }
45
+ return {
46
+
47
+ 'status': json['status'] == null ? undefined : json['status'],
48
+ };
49
+ }
50
+
51
+ export function Check200ResponseToJSON(json: any): Check200Response {
52
+ return Check200ResponseToJSONTyped(json, false);
53
+ }
54
+
55
+ export function Check200ResponseToJSONTyped(value?: Check200Response | null, ignoreDiscriminator: boolean = false): any {
56
+ if (value == null) {
57
+ return value;
58
+ }
59
+
60
+ return {
61
+
62
+ 'status': value['status'],
63
+ };
64
+ }
65
+
@@ -0,0 +1,73 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Jugar Hoy - API
5
+ * API documentation for Jugar Hoy application
6
+ *
7
+ * The version of the OpenAPI document: 1.5.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface CheckUserExists200Response
20
+ */
21
+ export interface CheckUserExists200Response {
22
+ /**
23
+ * Whether the user exists
24
+ * @type {boolean}
25
+ * @memberof CheckUserExists200Response
26
+ */
27
+ _exists?: boolean;
28
+ /**
29
+ * User ID if found
30
+ * @type {string}
31
+ * @memberof CheckUserExists200Response
32
+ */
33
+ userId?: string | null;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the CheckUserExists200Response interface.
38
+ */
39
+ export function instanceOfCheckUserExists200Response(value: object): value is CheckUserExists200Response {
40
+ return true;
41
+ }
42
+
43
+ export function CheckUserExists200ResponseFromJSON(json: any): CheckUserExists200Response {
44
+ return CheckUserExists200ResponseFromJSONTyped(json, false);
45
+ }
46
+
47
+ export function CheckUserExists200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CheckUserExists200Response {
48
+ if (json == null) {
49
+ return json;
50
+ }
51
+ return {
52
+
53
+ '_exists': json['exists'] == null ? undefined : json['exists'],
54
+ 'userId': json['userId'] == null ? undefined : json['userId'],
55
+ };
56
+ }
57
+
58
+ export function CheckUserExists200ResponseToJSON(json: any): CheckUserExists200Response {
59
+ return CheckUserExists200ResponseToJSONTyped(json, false);
60
+ }
61
+
62
+ export function CheckUserExists200ResponseToJSONTyped(value?: CheckUserExists200Response | null, ignoreDiscriminator: boolean = false): any {
63
+ if (value == null) {
64
+ return value;
65
+ }
66
+
67
+ return {
68
+
69
+ 'exists': value['_exists'],
70
+ 'userId': value['userId'],
71
+ };
72
+ }
73
+
@@ -0,0 +1,164 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Jugar Hoy - API
5
+ * API documentation for Jugar Hoy application
6
+ *
7
+ * The version of the OpenAPI document: 1.5.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { Sport } from './Sport';
17
+ import {
18
+ SportFromJSON,
19
+ SportFromJSONTyped,
20
+ SportToJSON,
21
+ SportToJSONTyped,
22
+ } from './Sport';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface ClubDto
28
+ */
29
+ export interface ClubDto {
30
+ /**
31
+ * Name of the club
32
+ * @type {string}
33
+ * @memberof ClubDto
34
+ */
35
+ clubName: string;
36
+ /**
37
+ * Short code for the club (url-display, only letters, numbers and - allowed)
38
+ * @type {string}
39
+ * @memberof ClubDto
40
+ */
41
+ clubCode: string;
42
+ /**
43
+ * Name of the sede/location
44
+ * @type {string}
45
+ * @memberof ClubDto
46
+ */
47
+ sedeName: string;
48
+ /**
49
+ * Short code for the sede (url-display, only letters, numbers and - allowed)
50
+ * @type {string}
51
+ * @memberof ClubDto
52
+ */
53
+ sedeCode: string;
54
+ /**
55
+ * Address selected from Google Maps
56
+ * @type {string}
57
+ * @memberof ClubDto
58
+ */
59
+ address: string;
60
+ /**
61
+ * Google Maps URL for the location
62
+ * @type {string}
63
+ * @memberof ClubDto
64
+ */
65
+ googleMapsUrl: string;
66
+ /**
67
+ * Sports available at the club
68
+ * @type {Array<Sport>}
69
+ * @memberof ClubDto
70
+ */
71
+ sports: Array<Sport>;
72
+ /**
73
+ * Phone number of the club
74
+ * @type {string}
75
+ * @memberof ClubDto
76
+ */
77
+ phone: string;
78
+ /**
79
+ * Website of the club
80
+ * @type {string}
81
+ * @memberof ClubDto
82
+ */
83
+ website: string;
84
+ /**
85
+ * Email of the club
86
+ * @type {string}
87
+ * @memberof ClubDto
88
+ */
89
+ email: string;
90
+ /**
91
+ * Instagram page of the club
92
+ * @type {string}
93
+ * @memberof ClubDto
94
+ */
95
+ instagramPage: string;
96
+ }
97
+
98
+ /**
99
+ * Check if a given object implements the ClubDto interface.
100
+ */
101
+ export function instanceOfClubDto(value: object): value is ClubDto {
102
+ if (!('clubName' in value) || value['clubName'] === undefined) return false;
103
+ if (!('clubCode' in value) || value['clubCode'] === undefined) return false;
104
+ if (!('sedeName' in value) || value['sedeName'] === undefined) return false;
105
+ if (!('sedeCode' in value) || value['sedeCode'] === undefined) return false;
106
+ if (!('address' in value) || value['address'] === undefined) return false;
107
+ if (!('googleMapsUrl' in value) || value['googleMapsUrl'] === undefined) return false;
108
+ if (!('sports' in value) || value['sports'] === undefined) return false;
109
+ if (!('phone' in value) || value['phone'] === undefined) return false;
110
+ if (!('website' in value) || value['website'] === undefined) return false;
111
+ if (!('email' in value) || value['email'] === undefined) return false;
112
+ if (!('instagramPage' in value) || value['instagramPage'] === undefined) return false;
113
+ return true;
114
+ }
115
+
116
+ export function ClubDtoFromJSON(json: any): ClubDto {
117
+ return ClubDtoFromJSONTyped(json, false);
118
+ }
119
+
120
+ export function ClubDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClubDto {
121
+ if (json == null) {
122
+ return json;
123
+ }
124
+ return {
125
+
126
+ 'clubName': json['clubName'],
127
+ 'clubCode': json['clubCode'],
128
+ 'sedeName': json['sedeName'],
129
+ 'sedeCode': json['sedeCode'],
130
+ 'address': json['address'],
131
+ 'googleMapsUrl': json['googleMapsUrl'],
132
+ 'sports': ((json['sports'] as Array<any>).map(SportFromJSON)),
133
+ 'phone': json['phone'],
134
+ 'website': json['website'],
135
+ 'email': json['email'],
136
+ 'instagramPage': json['instagramPage'],
137
+ };
138
+ }
139
+
140
+ export function ClubDtoToJSON(json: any): ClubDto {
141
+ return ClubDtoToJSONTyped(json, false);
142
+ }
143
+
144
+ export function ClubDtoToJSONTyped(value?: ClubDto | null, ignoreDiscriminator: boolean = false): any {
145
+ if (value == null) {
146
+ return value;
147
+ }
148
+
149
+ return {
150
+
151
+ 'clubName': value['clubName'],
152
+ 'clubCode': value['clubCode'],
153
+ 'sedeName': value['sedeName'],
154
+ 'sedeCode': value['sedeCode'],
155
+ 'address': value['address'],
156
+ 'googleMapsUrl': value['googleMapsUrl'],
157
+ 'sports': ((value['sports'] as Array<any>).map(SportToJSON)),
158
+ 'phone': value['phone'],
159
+ 'website': value['website'],
160
+ 'email': value['email'],
161
+ 'instagramPage': value['instagramPage'],
162
+ };
163
+ }
164
+
@@ -0,0 +1,119 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Jugar Hoy - API
5
+ * API documentation for Jugar Hoy application
6
+ *
7
+ * The version of the OpenAPI document: 1.5.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { ClubSearchParamsGeo } from './ClubSearchParamsGeo';
17
+ import {
18
+ ClubSearchParamsGeoFromJSON,
19
+ ClubSearchParamsGeoFromJSONTyped,
20
+ ClubSearchParamsGeoToJSON,
21
+ ClubSearchParamsGeoToJSONTyped,
22
+ } from './ClubSearchParamsGeo';
23
+ import type { Sport } from './Sport';
24
+ import {
25
+ SportFromJSON,
26
+ SportFromJSONTyped,
27
+ SportToJSON,
28
+ SportToJSONTyped,
29
+ } from './Sport';
30
+ import type { ClubSearchParamsPaging } from './ClubSearchParamsPaging';
31
+ import {
32
+ ClubSearchParamsPagingFromJSON,
33
+ ClubSearchParamsPagingFromJSONTyped,
34
+ ClubSearchParamsPagingToJSON,
35
+ ClubSearchParamsPagingToJSONTyped,
36
+ } from './ClubSearchParamsPaging';
37
+
38
+ /**
39
+ *
40
+ * @export
41
+ * @interface ClubSearchParams
42
+ */
43
+ export interface ClubSearchParams {
44
+ /**
45
+ * Sports to filter by
46
+ * @type {Array<Sport>}
47
+ * @memberof ClubSearchParams
48
+ */
49
+ sports?: Array<Sport>;
50
+ /**
51
+ * Name to search for (searches in customerName field)
52
+ * @type {string}
53
+ * @memberof ClubSearchParams
54
+ */
55
+ name?: string;
56
+ /**
57
+ *
58
+ * @type {ClubSearchParamsGeo}
59
+ * @memberof ClubSearchParams
60
+ */
61
+ geo?: ClubSearchParamsGeo;
62
+ /**
63
+ * Whether to filter by distance
64
+ * @type {boolean}
65
+ * @memberof ClubSearchParams
66
+ */
67
+ nearBy?: boolean;
68
+ /**
69
+ *
70
+ * @type {ClubSearchParamsPaging}
71
+ * @memberof ClubSearchParams
72
+ */
73
+ paging?: ClubSearchParamsPaging;
74
+ }
75
+
76
+ /**
77
+ * Check if a given object implements the ClubSearchParams interface.
78
+ */
79
+ export function instanceOfClubSearchParams(value: object): value is ClubSearchParams {
80
+ return true;
81
+ }
82
+
83
+ export function ClubSearchParamsFromJSON(json: any): ClubSearchParams {
84
+ return ClubSearchParamsFromJSONTyped(json, false);
85
+ }
86
+
87
+ export function ClubSearchParamsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClubSearchParams {
88
+ if (json == null) {
89
+ return json;
90
+ }
91
+ return {
92
+
93
+ 'sports': json['sports'] == null ? undefined : ((json['sports'] as Array<any>).map(SportFromJSON)),
94
+ 'name': json['name'] == null ? undefined : json['name'],
95
+ 'geo': json['geo'] == null ? undefined : ClubSearchParamsGeoFromJSON(json['geo']),
96
+ 'nearBy': json['nearBy'] == null ? undefined : json['nearBy'],
97
+ 'paging': json['paging'] == null ? undefined : ClubSearchParamsPagingFromJSON(json['paging']),
98
+ };
99
+ }
100
+
101
+ export function ClubSearchParamsToJSON(json: any): ClubSearchParams {
102
+ return ClubSearchParamsToJSONTyped(json, false);
103
+ }
104
+
105
+ export function ClubSearchParamsToJSONTyped(value?: ClubSearchParams | null, ignoreDiscriminator: boolean = false): any {
106
+ if (value == null) {
107
+ return value;
108
+ }
109
+
110
+ return {
111
+
112
+ 'sports': value['sports'] == null ? undefined : ((value['sports'] as Array<any>).map(SportToJSON)),
113
+ 'name': value['name'],
114
+ 'geo': ClubSearchParamsGeoToJSON(value['geo']),
115
+ 'nearBy': value['nearBy'],
116
+ 'paging': ClubSearchParamsPagingToJSON(value['paging']),
117
+ };
118
+ }
119
+
@@ -0,0 +1,73 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Jugar Hoy - API
5
+ * API documentation for Jugar Hoy application
6
+ *
7
+ * The version of the OpenAPI document: 1.5.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface ClubSearchParamsGeo
20
+ */
21
+ export interface ClubSearchParamsGeo {
22
+ /**
23
+ * Latitude coordinate
24
+ * @type {number}
25
+ * @memberof ClubSearchParamsGeo
26
+ */
27
+ lat?: number;
28
+ /**
29
+ * Longitude coordinate
30
+ * @type {number}
31
+ * @memberof ClubSearchParamsGeo
32
+ */
33
+ _long?: number;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the ClubSearchParamsGeo interface.
38
+ */
39
+ export function instanceOfClubSearchParamsGeo(value: object): value is ClubSearchParamsGeo {
40
+ return true;
41
+ }
42
+
43
+ export function ClubSearchParamsGeoFromJSON(json: any): ClubSearchParamsGeo {
44
+ return ClubSearchParamsGeoFromJSONTyped(json, false);
45
+ }
46
+
47
+ export function ClubSearchParamsGeoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClubSearchParamsGeo {
48
+ if (json == null) {
49
+ return json;
50
+ }
51
+ return {
52
+
53
+ 'lat': json['lat'] == null ? undefined : json['lat'],
54
+ '_long': json['long'] == null ? undefined : json['long'],
55
+ };
56
+ }
57
+
58
+ export function ClubSearchParamsGeoToJSON(json: any): ClubSearchParamsGeo {
59
+ return ClubSearchParamsGeoToJSONTyped(json, false);
60
+ }
61
+
62
+ export function ClubSearchParamsGeoToJSONTyped(value?: ClubSearchParamsGeo | null, ignoreDiscriminator: boolean = false): any {
63
+ if (value == null) {
64
+ return value;
65
+ }
66
+
67
+ return {
68
+
69
+ 'lat': value['lat'],
70
+ 'long': value['_long'],
71
+ };
72
+ }
73
+