@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,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 ClubSearchParamsPaging
20
+ */
21
+ export interface ClubSearchParamsPaging {
22
+ /**
23
+ * Page number (1-based)
24
+ * @type {number}
25
+ * @memberof ClubSearchParamsPaging
26
+ */
27
+ number?: number;
28
+ /**
29
+ * Number of items per page
30
+ * @type {number}
31
+ * @memberof ClubSearchParamsPaging
32
+ */
33
+ size?: number;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the ClubSearchParamsPaging interface.
38
+ */
39
+ export function instanceOfClubSearchParamsPaging(value: object): value is ClubSearchParamsPaging {
40
+ return true;
41
+ }
42
+
43
+ export function ClubSearchParamsPagingFromJSON(json: any): ClubSearchParamsPaging {
44
+ return ClubSearchParamsPagingFromJSONTyped(json, false);
45
+ }
46
+
47
+ export function ClubSearchParamsPagingFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClubSearchParamsPaging {
48
+ if (json == null) {
49
+ return json;
50
+ }
51
+ return {
52
+
53
+ 'number': json['number'] == null ? undefined : json['number'],
54
+ 'size': json['size'] == null ? undefined : json['size'],
55
+ };
56
+ }
57
+
58
+ export function ClubSearchParamsPagingToJSON(json: any): ClubSearchParamsPaging {
59
+ return ClubSearchParamsPagingToJSONTyped(json, false);
60
+ }
61
+
62
+ export function ClubSearchParamsPagingToJSONTyped(value?: ClubSearchParamsPaging | null, ignoreDiscriminator: boolean = false): any {
63
+ if (value == null) {
64
+ return value;
65
+ }
66
+
67
+ return {
68
+
69
+ 'number': value['number'],
70
+ 'size': value['size'],
71
+ };
72
+ }
73
+
@@ -0,0 +1,88 @@
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 { ClubSearchResponsePagination } from './ClubSearchResponsePagination';
17
+ import {
18
+ ClubSearchResponsePaginationFromJSON,
19
+ ClubSearchResponsePaginationFromJSONTyped,
20
+ ClubSearchResponsePaginationToJSON,
21
+ ClubSearchResponsePaginationToJSONTyped,
22
+ } from './ClubSearchResponsePagination';
23
+ import type { ClubSearchResponseDataInner } from './ClubSearchResponseDataInner';
24
+ import {
25
+ ClubSearchResponseDataInnerFromJSON,
26
+ ClubSearchResponseDataInnerFromJSONTyped,
27
+ ClubSearchResponseDataInnerToJSON,
28
+ ClubSearchResponseDataInnerToJSONTyped,
29
+ } from './ClubSearchResponseDataInner';
30
+
31
+ /**
32
+ *
33
+ * @export
34
+ * @interface ClubSearchResponse
35
+ */
36
+ export interface ClubSearchResponse {
37
+ /**
38
+ *
39
+ * @type {Array<ClubSearchResponseDataInner>}
40
+ * @memberof ClubSearchResponse
41
+ */
42
+ data?: Array<ClubSearchResponseDataInner>;
43
+ /**
44
+ *
45
+ * @type {ClubSearchResponsePagination}
46
+ * @memberof ClubSearchResponse
47
+ */
48
+ pagination?: ClubSearchResponsePagination;
49
+ }
50
+
51
+ /**
52
+ * Check if a given object implements the ClubSearchResponse interface.
53
+ */
54
+ export function instanceOfClubSearchResponse(value: object): value is ClubSearchResponse {
55
+ return true;
56
+ }
57
+
58
+ export function ClubSearchResponseFromJSON(json: any): ClubSearchResponse {
59
+ return ClubSearchResponseFromJSONTyped(json, false);
60
+ }
61
+
62
+ export function ClubSearchResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClubSearchResponse {
63
+ if (json == null) {
64
+ return json;
65
+ }
66
+ return {
67
+
68
+ 'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(ClubSearchResponseDataInnerFromJSON)),
69
+ 'pagination': json['pagination'] == null ? undefined : ClubSearchResponsePaginationFromJSON(json['pagination']),
70
+ };
71
+ }
72
+
73
+ export function ClubSearchResponseToJSON(json: any): ClubSearchResponse {
74
+ return ClubSearchResponseToJSONTyped(json, false);
75
+ }
76
+
77
+ export function ClubSearchResponseToJSONTyped(value?: ClubSearchResponse | null, ignoreDiscriminator: boolean = false): any {
78
+ if (value == null) {
79
+ return value;
80
+ }
81
+
82
+ return {
83
+
84
+ 'data': value['data'] == null ? undefined : ((value['data'] as Array<any>).map(ClubSearchResponseDataInnerToJSON)),
85
+ 'pagination': ClubSearchResponsePaginationToJSON(value['pagination']),
86
+ };
87
+ }
88
+
@@ -0,0 +1,168 @@
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
+ import type { CustomerDto } from './CustomerDto';
24
+ import {
25
+ CustomerDtoFromJSON,
26
+ CustomerDtoFromJSONTyped,
27
+ CustomerDtoToJSON,
28
+ CustomerDtoToJSONTyped,
29
+ } from './CustomerDto';
30
+
31
+ /**
32
+ *
33
+ * @export
34
+ * @interface ClubSearchResponseDataInner
35
+ */
36
+ export interface ClubSearchResponseDataInner {
37
+ /**
38
+ * Customer code
39
+ * @type {string}
40
+ * @memberof ClubSearchResponseDataInner
41
+ */
42
+ code?: string;
43
+ /**
44
+ * Location name
45
+ * @type {string}
46
+ * @memberof ClubSearchResponseDataInner
47
+ */
48
+ name?: string;
49
+ /**
50
+ *
51
+ * @type {CustomerDto}
52
+ * @memberof ClubSearchResponseDataInner
53
+ */
54
+ customer?: CustomerDto;
55
+ /**
56
+ * Location description
57
+ * @type {string}
58
+ * @memberof ClubSearchResponseDataInner
59
+ */
60
+ description?: string;
61
+ /**
62
+ * Location address
63
+ * @type {string}
64
+ * @memberof ClubSearchResponseDataInner
65
+ */
66
+ address?: string;
67
+ /**
68
+ * Map URL
69
+ * @type {string}
70
+ * @memberof ClubSearchResponseDataInner
71
+ */
72
+ addressUrl?: string;
73
+ /**
74
+ * Phone number
75
+ * @type {string}
76
+ * @memberof ClubSearchResponseDataInner
77
+ */
78
+ phone?: string;
79
+ /**
80
+ * Website URL
81
+ * @type {string}
82
+ * @memberof ClubSearchResponseDataInner
83
+ */
84
+ website?: string;
85
+ /**
86
+ * Distance in kilometers (if coordinates available)
87
+ * @type {number}
88
+ * @memberof ClubSearchResponseDataInner
89
+ */
90
+ distance?: number | null;
91
+ /**
92
+ * Available sports
93
+ * @type {Array<Sport>}
94
+ * @memberof ClubSearchResponseDataInner
95
+ */
96
+ sports?: Array<Sport>;
97
+ /**
98
+ * Available features/amenities
99
+ * @type {Array<string>}
100
+ * @memberof ClubSearchResponseDataInner
101
+ */
102
+ features?: Array<string>;
103
+ /**
104
+ * Rating of the location (1-5)
105
+ * @type {number}
106
+ * @memberof ClubSearchResponseDataInner
107
+ */
108
+ rating?: number;
109
+ }
110
+
111
+ /**
112
+ * Check if a given object implements the ClubSearchResponseDataInner interface.
113
+ */
114
+ export function instanceOfClubSearchResponseDataInner(value: object): value is ClubSearchResponseDataInner {
115
+ return true;
116
+ }
117
+
118
+ export function ClubSearchResponseDataInnerFromJSON(json: any): ClubSearchResponseDataInner {
119
+ return ClubSearchResponseDataInnerFromJSONTyped(json, false);
120
+ }
121
+
122
+ export function ClubSearchResponseDataInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClubSearchResponseDataInner {
123
+ if (json == null) {
124
+ return json;
125
+ }
126
+ return {
127
+
128
+ 'code': json['code'] == null ? undefined : json['code'],
129
+ 'name': json['name'] == null ? undefined : json['name'],
130
+ 'customer': json['customer'] == null ? undefined : CustomerDtoFromJSON(json['customer']),
131
+ 'description': json['description'] == null ? undefined : json['description'],
132
+ 'address': json['address'] == null ? undefined : json['address'],
133
+ 'addressUrl': json['addressUrl'] == null ? undefined : json['addressUrl'],
134
+ 'phone': json['phone'] == null ? undefined : json['phone'],
135
+ 'website': json['website'] == null ? undefined : json['website'],
136
+ 'distance': json['distance'] == null ? undefined : json['distance'],
137
+ 'sports': json['sports'] == null ? undefined : ((json['sports'] as Array<any>).map(SportFromJSON)),
138
+ 'features': json['features'] == null ? undefined : json['features'],
139
+ 'rating': json['rating'] == null ? undefined : json['rating'],
140
+ };
141
+ }
142
+
143
+ export function ClubSearchResponseDataInnerToJSON(json: any): ClubSearchResponseDataInner {
144
+ return ClubSearchResponseDataInnerToJSONTyped(json, false);
145
+ }
146
+
147
+ export function ClubSearchResponseDataInnerToJSONTyped(value?: ClubSearchResponseDataInner | null, ignoreDiscriminator: boolean = false): any {
148
+ if (value == null) {
149
+ return value;
150
+ }
151
+
152
+ return {
153
+
154
+ 'code': value['code'],
155
+ 'name': value['name'],
156
+ 'customer': CustomerDtoToJSON(value['customer']),
157
+ 'description': value['description'],
158
+ 'address': value['address'],
159
+ 'addressUrl': value['addressUrl'],
160
+ 'phone': value['phone'],
161
+ 'website': value['website'],
162
+ 'distance': value['distance'],
163
+ 'sports': value['sports'] == null ? undefined : ((value['sports'] as Array<any>).map(SportToJSON)),
164
+ 'features': value['features'],
165
+ 'rating': value['rating'],
166
+ };
167
+ }
168
+
@@ -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
+ /**
17
+ *
18
+ * @export
19
+ * @interface ClubSearchResponsePagination
20
+ */
21
+ export interface ClubSearchResponsePagination {
22
+ /**
23
+ * Current page number
24
+ * @type {number}
25
+ * @memberof ClubSearchResponsePagination
26
+ */
27
+ page?: number;
28
+ /**
29
+ * Number of items per page
30
+ * @type {number}
31
+ * @memberof ClubSearchResponsePagination
32
+ */
33
+ pageSize?: number;
34
+ /**
35
+ * Total number of pages
36
+ * @type {number}
37
+ * @memberof ClubSearchResponsePagination
38
+ */
39
+ totalPages?: number;
40
+ /**
41
+ * Total number of items
42
+ * @type {number}
43
+ * @memberof ClubSearchResponsePagination
44
+ */
45
+ totalItems?: number;
46
+ }
47
+
48
+ /**
49
+ * Check if a given object implements the ClubSearchResponsePagination interface.
50
+ */
51
+ export function instanceOfClubSearchResponsePagination(value: object): value is ClubSearchResponsePagination {
52
+ return true;
53
+ }
54
+
55
+ export function ClubSearchResponsePaginationFromJSON(json: any): ClubSearchResponsePagination {
56
+ return ClubSearchResponsePaginationFromJSONTyped(json, false);
57
+ }
58
+
59
+ export function ClubSearchResponsePaginationFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClubSearchResponsePagination {
60
+ if (json == null) {
61
+ return json;
62
+ }
63
+ return {
64
+
65
+ 'page': json['page'] == null ? undefined : json['page'],
66
+ 'pageSize': json['pageSize'] == null ? undefined : json['pageSize'],
67
+ 'totalPages': json['totalPages'] == null ? undefined : json['totalPages'],
68
+ 'totalItems': json['totalItems'] == null ? undefined : json['totalItems'],
69
+ };
70
+ }
71
+
72
+ export function ClubSearchResponsePaginationToJSON(json: any): ClubSearchResponsePagination {
73
+ return ClubSearchResponsePaginationToJSONTyped(json, false);
74
+ }
75
+
76
+ export function ClubSearchResponsePaginationToJSONTyped(value?: ClubSearchResponsePagination | null, ignoreDiscriminator: boolean = false): any {
77
+ if (value == null) {
78
+ return value;
79
+ }
80
+
81
+ return {
82
+
83
+ 'page': value['page'],
84
+ 'pageSize': value['pageSize'],
85
+ 'totalPages': value['totalPages'],
86
+ 'totalItems': value['totalItems'],
87
+ };
88
+ }
89
+
@@ -0,0 +1,121 @@
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 { Level } from './Level';
17
+ import {
18
+ LevelFromJSON,
19
+ LevelFromJSONTyped,
20
+ LevelToJSON,
21
+ LevelToJSONTyped,
22
+ } from './Level';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface Coach
28
+ */
29
+ export interface Coach {
30
+ /**
31
+ * The ID of the associated member
32
+ * @type {string}
33
+ * @memberof Coach
34
+ */
35
+ memberId: string;
36
+ /**
37
+ *
38
+ * @type {Level}
39
+ * @memberof Coach
40
+ */
41
+ level: Level;
42
+ /**
43
+ * Years of coaching experience
44
+ * @type {number}
45
+ * @memberof Coach
46
+ */
47
+ experience: number;
48
+ /**
49
+ * Special features or skills of the coach
50
+ * @type {Array<string>}
51
+ * @memberof Coach
52
+ */
53
+ features: Array<string>;
54
+ /**
55
+ * When the coach was created
56
+ * @type {Date}
57
+ * @memberof Coach
58
+ */
59
+ createdAt: Date;
60
+ /**
61
+ * When the coach was last updated
62
+ * @type {Date}
63
+ * @memberof Coach
64
+ */
65
+ updatedAt: Date;
66
+ }
67
+
68
+
69
+
70
+ /**
71
+ * Check if a given object implements the Coach interface.
72
+ */
73
+ export function instanceOfCoach(value: object): value is Coach {
74
+ if (!('memberId' in value) || value['memberId'] === undefined) return false;
75
+ if (!('level' in value) || value['level'] === undefined) return false;
76
+ if (!('experience' in value) || value['experience'] === undefined) return false;
77
+ if (!('features' in value) || value['features'] === undefined) return false;
78
+ if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
79
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
80
+ return true;
81
+ }
82
+
83
+ export function CoachFromJSON(json: any): Coach {
84
+ return CoachFromJSONTyped(json, false);
85
+ }
86
+
87
+ export function CoachFromJSONTyped(json: any, ignoreDiscriminator: boolean): Coach {
88
+ if (json == null) {
89
+ return json;
90
+ }
91
+ return {
92
+
93
+ 'memberId': json['memberId'],
94
+ 'level': LevelFromJSON(json['level']),
95
+ 'experience': json['experience'],
96
+ 'features': json['features'],
97
+ 'createdAt': (new Date(json['createdAt'])),
98
+ 'updatedAt': (new Date(json['updatedAt'])),
99
+ };
100
+ }
101
+
102
+ export function CoachToJSON(json: any): Coach {
103
+ return CoachToJSONTyped(json, false);
104
+ }
105
+
106
+ export function CoachToJSONTyped(value?: Coach | null, ignoreDiscriminator: boolean = false): any {
107
+ if (value == null) {
108
+ return value;
109
+ }
110
+
111
+ return {
112
+
113
+ 'memberId': value['memberId'],
114
+ 'level': LevelToJSON(value['level']),
115
+ 'experience': value['experience'],
116
+ 'features': value['features'],
117
+ 'createdAt': ((value['createdAt']).toISOString()),
118
+ 'updatedAt': ((value['updatedAt']).toISOString()),
119
+ };
120
+ }
121
+
@@ -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 { CoachDtoAvailabilityInner } from './CoachDtoAvailabilityInner';
17
+ import {
18
+ CoachDtoAvailabilityInnerFromJSON,
19
+ CoachDtoAvailabilityInnerFromJSONTyped,
20
+ CoachDtoAvailabilityInnerToJSON,
21
+ CoachDtoAvailabilityInnerToJSONTyped,
22
+ } from './CoachDtoAvailabilityInner';
23
+ import type { Level } from './Level';
24
+ import {
25
+ LevelFromJSON,
26
+ LevelFromJSONTyped,
27
+ LevelToJSON,
28
+ LevelToJSONTyped,
29
+ } from './Level';
30
+
31
+ /**
32
+ *
33
+ * @export
34
+ * @interface CoachDto
35
+ */
36
+ export interface CoachDto {
37
+ /**
38
+ * The ID of the associated member
39
+ * @type {string}
40
+ * @memberof CoachDto
41
+ */
42
+ memberId: string;
43
+ /**
44
+ *
45
+ * @type {Level}
46
+ * @memberof CoachDto
47
+ */
48
+ level: Level;
49
+ /**
50
+ * Years of coaching experience
51
+ * @type {number}
52
+ * @memberof CoachDto
53
+ */
54
+ experience: number;
55
+ /**
56
+ * Special features or skills of the coach
57
+ * @type {Array<string>}
58
+ * @memberof CoachDto
59
+ */
60
+ features: Array<string>;
61
+ /**
62
+ * Coach's availability schedule with associated pricing
63
+ * @type {Array<CoachDtoAvailabilityInner>}
64
+ * @memberof CoachDto
65
+ */
66
+ availability: Array<CoachDtoAvailabilityInner>;
67
+ }
68
+
69
+
70
+
71
+ /**
72
+ * Check if a given object implements the CoachDto interface.
73
+ */
74
+ export function instanceOfCoachDto(value: object): value is CoachDto {
75
+ if (!('memberId' in value) || value['memberId'] === undefined) return false;
76
+ if (!('level' in value) || value['level'] === undefined) return false;
77
+ if (!('experience' in value) || value['experience'] === undefined) return false;
78
+ if (!('features' in value) || value['features'] === undefined) return false;
79
+ if (!('availability' in value) || value['availability'] === undefined) return false;
80
+ return true;
81
+ }
82
+
83
+ export function CoachDtoFromJSON(json: any): CoachDto {
84
+ return CoachDtoFromJSONTyped(json, false);
85
+ }
86
+
87
+ export function CoachDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CoachDto {
88
+ if (json == null) {
89
+ return json;
90
+ }
91
+ return {
92
+
93
+ 'memberId': json['memberId'],
94
+ 'level': LevelFromJSON(json['level']),
95
+ 'experience': json['experience'],
96
+ 'features': json['features'],
97
+ 'availability': ((json['availability'] as Array<any>).map(CoachDtoAvailabilityInnerFromJSON)),
98
+ };
99
+ }
100
+
101
+ export function CoachDtoToJSON(json: any): CoachDto {
102
+ return CoachDtoToJSONTyped(json, false);
103
+ }
104
+
105
+ export function CoachDtoToJSONTyped(value?: CoachDto | null, ignoreDiscriminator: boolean = false): any {
106
+ if (value == null) {
107
+ return value;
108
+ }
109
+
110
+ return {
111
+
112
+ 'memberId': value['memberId'],
113
+ 'level': LevelToJSON(value['level']),
114
+ 'experience': value['experience'],
115
+ 'features': value['features'],
116
+ 'availability': ((value['availability'] as Array<any>).map(CoachDtoAvailabilityInnerToJSON)),
117
+ };
118
+ }
119
+