@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,213 @@
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 { Location } from './Location';
17
+ import {
18
+ LocationFromJSON,
19
+ LocationFromJSONTyped,
20
+ LocationToJSON,
21
+ LocationToJSONTyped,
22
+ } from './Location';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface GetAllPlaySpots200ResponseInner
28
+ */
29
+ export interface GetAllPlaySpots200ResponseInner {
30
+ /**
31
+ * Unique identifier for the play spot
32
+ * @type {string}
33
+ * @memberof GetAllPlaySpots200ResponseInner
34
+ */
35
+ id: string;
36
+ /**
37
+ * Physical location id
38
+ * @type {string}
39
+ * @memberof GetAllPlaySpots200ResponseInner
40
+ */
41
+ locationId: string;
42
+ /**
43
+ * Unique code for the play spot
44
+ * @type {string}
45
+ * @memberof GetAllPlaySpots200ResponseInner
46
+ */
47
+ code: string;
48
+ /**
49
+ * Display name of the play spot
50
+ * @type {string}
51
+ * @memberof GetAllPlaySpots200ResponseInner
52
+ */
53
+ name: string;
54
+ /**
55
+ * Description of the play spot
56
+ * @type {string}
57
+ * @memberof GetAllPlaySpots200ResponseInner
58
+ */
59
+ description?: string | null;
60
+ /**
61
+ * Type of play spot (e.g., 'ping-pong', 'pool', etc.)
62
+ * @type {string}
63
+ * @memberof GetAllPlaySpots200ResponseInner
64
+ */
65
+ type: string;
66
+ /**
67
+ * Features of the play spot (e.g., 'Covered', 'Lighted', etc.)
68
+ * @type {Array<string>}
69
+ * @memberof GetAllPlaySpots200ResponseInner
70
+ */
71
+ features: Array<string>;
72
+ /**
73
+ * Sport type of the play spot
74
+ * @type {string}
75
+ * @memberof GetAllPlaySpots200ResponseInner
76
+ */
77
+ sport: GetAllPlaySpots200ResponseInnerSportEnum;
78
+ /**
79
+ * Array of picture URLs for the play spot
80
+ * @type {Array<string>}
81
+ * @memberof GetAllPlaySpots200ResponseInner
82
+ */
83
+ pictureUrls?: Array<string>;
84
+ /**
85
+ * Indicates if this spot is a combination of other spots
86
+ * @type {boolean}
87
+ * @memberof GetAllPlaySpots200ResponseInner
88
+ */
89
+ isCombined: boolean;
90
+ /**
91
+ * Array of play spot IDs that this spot combines
92
+ * @type {Array<string>}
93
+ * @memberof GetAllPlaySpots200ResponseInner
94
+ */
95
+ playSpotCombined?: Array<string>;
96
+ /**
97
+ * Number of players that can play on this spot
98
+ * @type {number}
99
+ * @memberof GetAllPlaySpots200ResponseInner
100
+ */
101
+ players: number;
102
+ /**
103
+ * External reference value used to match with other systems
104
+ * @type {string}
105
+ * @memberof GetAllPlaySpots200ResponseInner
106
+ */
107
+ referenceValue?: string;
108
+ /**
109
+ * Source system for the external reference
110
+ * @type {string}
111
+ * @memberof GetAllPlaySpots200ResponseInner
112
+ */
113
+ referenceSource?: string;
114
+ /**
115
+ *
116
+ * @type {Location}
117
+ * @memberof GetAllPlaySpots200ResponseInner
118
+ */
119
+ location?: Location;
120
+ }
121
+
122
+
123
+ /**
124
+ * @export
125
+ */
126
+ export const GetAllPlaySpots200ResponseInnerSportEnum = {
127
+ Tennis: 'TENNIS',
128
+ TableTennis: 'TABLE_TENNIS',
129
+ Paddle: 'PADDLE',
130
+ Football: 'FOOTBALL',
131
+ Soccer: 'SOCCER',
132
+ Squash: 'SQUASH',
133
+ Basketball: 'BASKETBALL',
134
+ Volleyball: 'VOLLEYBALL',
135
+ Badminton: 'BADMINTON',
136
+ Other: 'OTHER'
137
+ } as const;
138
+ export type GetAllPlaySpots200ResponseInnerSportEnum = typeof GetAllPlaySpots200ResponseInnerSportEnum[keyof typeof GetAllPlaySpots200ResponseInnerSportEnum];
139
+
140
+
141
+ /**
142
+ * Check if a given object implements the GetAllPlaySpots200ResponseInner interface.
143
+ */
144
+ export function instanceOfGetAllPlaySpots200ResponseInner(value: object): value is GetAllPlaySpots200ResponseInner {
145
+ if (!('id' in value) || value['id'] === undefined) return false;
146
+ if (!('locationId' in value) || value['locationId'] === undefined) return false;
147
+ if (!('code' in value) || value['code'] === undefined) return false;
148
+ if (!('name' in value) || value['name'] === undefined) return false;
149
+ if (!('type' in value) || value['type'] === undefined) return false;
150
+ if (!('features' in value) || value['features'] === undefined) return false;
151
+ if (!('sport' in value) || value['sport'] === undefined) return false;
152
+ if (!('isCombined' in value) || value['isCombined'] === undefined) return false;
153
+ if (!('players' in value) || value['players'] === undefined) return false;
154
+ return true;
155
+ }
156
+
157
+ export function GetAllPlaySpots200ResponseInnerFromJSON(json: any): GetAllPlaySpots200ResponseInner {
158
+ return GetAllPlaySpots200ResponseInnerFromJSONTyped(json, false);
159
+ }
160
+
161
+ export function GetAllPlaySpots200ResponseInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetAllPlaySpots200ResponseInner {
162
+ if (json == null) {
163
+ return json;
164
+ }
165
+ return {
166
+
167
+ 'id': json['id'],
168
+ 'locationId': json['locationId'],
169
+ 'code': json['code'],
170
+ 'name': json['name'],
171
+ 'description': json['description'] == null ? undefined : json['description'],
172
+ 'type': json['type'],
173
+ 'features': json['features'],
174
+ 'sport': json['sport'],
175
+ 'pictureUrls': json['pictureUrls'] == null ? undefined : json['pictureUrls'],
176
+ 'isCombined': json['isCombined'],
177
+ 'playSpotCombined': json['playSpotCombined'] == null ? undefined : json['playSpotCombined'],
178
+ 'players': json['players'],
179
+ 'referenceValue': json['referenceValue'] == null ? undefined : json['referenceValue'],
180
+ 'referenceSource': json['referenceSource'] == null ? undefined : json['referenceSource'],
181
+ 'location': json['location'] == null ? undefined : LocationFromJSON(json['location']),
182
+ };
183
+ }
184
+
185
+ export function GetAllPlaySpots200ResponseInnerToJSON(json: any): GetAllPlaySpots200ResponseInner {
186
+ return GetAllPlaySpots200ResponseInnerToJSONTyped(json, false);
187
+ }
188
+
189
+ export function GetAllPlaySpots200ResponseInnerToJSONTyped(value?: GetAllPlaySpots200ResponseInner | null, ignoreDiscriminator: boolean = false): any {
190
+ if (value == null) {
191
+ return value;
192
+ }
193
+
194
+ return {
195
+
196
+ 'id': value['id'],
197
+ 'locationId': value['locationId'],
198
+ 'code': value['code'],
199
+ 'name': value['name'],
200
+ 'description': value['description'],
201
+ 'type': value['type'],
202
+ 'features': value['features'],
203
+ 'sport': value['sport'],
204
+ 'pictureUrls': value['pictureUrls'],
205
+ 'isCombined': value['isCombined'],
206
+ 'playSpotCombined': value['playSpotCombined'],
207
+ 'players': value['players'],
208
+ 'referenceValue': value['referenceValue'],
209
+ 'referenceSource': value['referenceSource'],
210
+ 'location': LocationToJSON(value['location']),
211
+ };
212
+ }
213
+
@@ -0,0 +1,199 @@
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 { DayOfWeek } from './DayOfWeek';
17
+ import {
18
+ DayOfWeekFromJSON,
19
+ DayOfWeekFromJSONTyped,
20
+ DayOfWeekToJSON,
21
+ DayOfWeekToJSONTyped,
22
+ } from './DayOfWeek';
23
+ import type { PlaySpot } from './PlaySpot';
24
+ import {
25
+ PlaySpotFromJSON,
26
+ PlaySpotFromJSONTyped,
27
+ PlaySpotToJSON,
28
+ PlaySpotToJSONTyped,
29
+ } from './PlaySpot';
30
+
31
+ /**
32
+ *
33
+ * @export
34
+ * @interface GetAllShifts200ResponseInner
35
+ */
36
+ export interface GetAllShifts200ResponseInner {
37
+ /**
38
+ * Unique identifier for the shift
39
+ * @type {string}
40
+ * @memberof GetAllShifts200ResponseInner
41
+ */
42
+ id: string | null;
43
+ /**
44
+ * Creation timestamp
45
+ * @type {Date}
46
+ * @memberof GetAllShifts200ResponseInner
47
+ */
48
+ createdAt: Date;
49
+ /**
50
+ * Last update timestamp
51
+ * @type {Date}
52
+ * @memberof GetAllShifts200ResponseInner
53
+ */
54
+ updatedAt: Date;
55
+ /**
56
+ * Location ID of the shift
57
+ * @type {string}
58
+ * @memberof GetAllShifts200ResponseInner
59
+ */
60
+ locationId: string;
61
+ /**
62
+ * Type of the shift
63
+ * @type {string}
64
+ * @memberof GetAllShifts200ResponseInner
65
+ */
66
+ type: GetAllShifts200ResponseInnerTypeEnum;
67
+ /**
68
+ * Name of the shift
69
+ * @type {string}
70
+ * @memberof GetAllShifts200ResponseInner
71
+ */
72
+ name: string;
73
+ /**
74
+ * IDs of play spots included in this shift
75
+ * @type {Array<string>}
76
+ * @memberof GetAllShifts200ResponseInner
77
+ */
78
+ playSpotIds: Array<string>;
79
+ /**
80
+ * IDs of coaches for this shift
81
+ * @type {Array<string>}
82
+ * @memberof GetAllShifts200ResponseInner
83
+ */
84
+ coachIds: Array<string>;
85
+ /**
86
+ * Days of the week when this shift occurs
87
+ * @type {Array<DayOfWeek>}
88
+ * @memberof GetAllShifts200ResponseInner
89
+ */
90
+ days: Array<DayOfWeek>;
91
+ /**
92
+ * Start time in HH:MM format (e.g., "09:15", "14:30")
93
+ * @type {string}
94
+ * @memberof GetAllShifts200ResponseInner
95
+ */
96
+ fromHour: string;
97
+ /**
98
+ * End time in HH:MM format (e.g., "09:15", "14:30")
99
+ * @type {string}
100
+ * @memberof GetAllShifts200ResponseInner
101
+ */
102
+ toHour: string;
103
+ /**
104
+ * Allowed durations in minutes
105
+ * @type {Array<number>}
106
+ * @memberof GetAllShifts200ResponseInner
107
+ */
108
+ durations: Array<number>;
109
+ /**
110
+ *
111
+ * @type {Array<PlaySpot>}
112
+ * @memberof GetAllShifts200ResponseInner
113
+ */
114
+ playSpots?: Array<PlaySpot>;
115
+ }
116
+
117
+
118
+ /**
119
+ * @export
120
+ */
121
+ export const GetAllShifts200ResponseInnerTypeEnum = {
122
+ Play: 'play',
123
+ Coach: 'coach'
124
+ } as const;
125
+ export type GetAllShifts200ResponseInnerTypeEnum = typeof GetAllShifts200ResponseInnerTypeEnum[keyof typeof GetAllShifts200ResponseInnerTypeEnum];
126
+
127
+
128
+ /**
129
+ * Check if a given object implements the GetAllShifts200ResponseInner interface.
130
+ */
131
+ export function instanceOfGetAllShifts200ResponseInner(value: object): value is GetAllShifts200ResponseInner {
132
+ if (!('id' in value) || value['id'] === undefined) return false;
133
+ if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
134
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
135
+ if (!('locationId' in value) || value['locationId'] === undefined) return false;
136
+ if (!('type' in value) || value['type'] === undefined) return false;
137
+ if (!('name' in value) || value['name'] === undefined) return false;
138
+ if (!('playSpotIds' in value) || value['playSpotIds'] === undefined) return false;
139
+ if (!('coachIds' in value) || value['coachIds'] === undefined) return false;
140
+ if (!('days' in value) || value['days'] === undefined) return false;
141
+ if (!('fromHour' in value) || value['fromHour'] === undefined) return false;
142
+ if (!('toHour' in value) || value['toHour'] === undefined) return false;
143
+ if (!('durations' in value) || value['durations'] === undefined) return false;
144
+ return true;
145
+ }
146
+
147
+ export function GetAllShifts200ResponseInnerFromJSON(json: any): GetAllShifts200ResponseInner {
148
+ return GetAllShifts200ResponseInnerFromJSONTyped(json, false);
149
+ }
150
+
151
+ export function GetAllShifts200ResponseInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetAllShifts200ResponseInner {
152
+ if (json == null) {
153
+ return json;
154
+ }
155
+ return {
156
+
157
+ 'id': json['id'],
158
+ 'createdAt': (new Date(json['createdAt'])),
159
+ 'updatedAt': (new Date(json['updatedAt'])),
160
+ 'locationId': json['locationId'],
161
+ 'type': json['type'],
162
+ 'name': json['name'],
163
+ 'playSpotIds': json['playSpotIds'],
164
+ 'coachIds': json['coachIds'],
165
+ 'days': ((json['days'] as Array<any>).map(DayOfWeekFromJSON)),
166
+ 'fromHour': json['fromHour'],
167
+ 'toHour': json['toHour'],
168
+ 'durations': json['durations'],
169
+ 'playSpots': json['playSpots'] == null ? undefined : ((json['playSpots'] as Array<any>).map(PlaySpotFromJSON)),
170
+ };
171
+ }
172
+
173
+ export function GetAllShifts200ResponseInnerToJSON(json: any): GetAllShifts200ResponseInner {
174
+ return GetAllShifts200ResponseInnerToJSONTyped(json, false);
175
+ }
176
+
177
+ export function GetAllShifts200ResponseInnerToJSONTyped(value?: GetAllShifts200ResponseInner | null, ignoreDiscriminator: boolean = false): any {
178
+ if (value == null) {
179
+ return value;
180
+ }
181
+
182
+ return {
183
+
184
+ 'id': value['id'],
185
+ 'createdAt': ((value['createdAt']).toISOString()),
186
+ 'updatedAt': ((value['updatedAt']).toISOString()),
187
+ 'locationId': value['locationId'],
188
+ 'type': value['type'],
189
+ 'name': value['name'],
190
+ 'playSpotIds': value['playSpotIds'],
191
+ 'coachIds': value['coachIds'],
192
+ 'days': ((value['days'] as Array<any>).map(DayOfWeekToJSON)),
193
+ 'fromHour': value['fromHour'],
194
+ 'toHour': value['toHour'],
195
+ 'durations': value['durations'],
196
+ 'playSpots': value['playSpots'] == null ? undefined : ((value['playSpots'] as Array<any>).map(PlaySpotToJSON)),
197
+ };
198
+ }
199
+
@@ -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 { GetHourlyReservationStatus200ResponseHourlyStatusInner } from './GetHourlyReservationStatus200ResponseHourlyStatusInner';
17
+ import {
18
+ GetHourlyReservationStatus200ResponseHourlyStatusInnerFromJSON,
19
+ GetHourlyReservationStatus200ResponseHourlyStatusInnerFromJSONTyped,
20
+ GetHourlyReservationStatus200ResponseHourlyStatusInnerToJSON,
21
+ GetHourlyReservationStatus200ResponseHourlyStatusInnerToJSONTyped,
22
+ } from './GetHourlyReservationStatus200ResponseHourlyStatusInner';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface GetHourlyReservationStatus200Response
28
+ */
29
+ export interface GetHourlyReservationStatus200Response {
30
+ /**
31
+ *
32
+ * @type {Array<GetHourlyReservationStatus200ResponseHourlyStatusInner>}
33
+ * @memberof GetHourlyReservationStatus200Response
34
+ */
35
+ hourlyStatus?: Array<GetHourlyReservationStatus200ResponseHourlyStatusInner>;
36
+ /**
37
+ * Current hour in HH format
38
+ * @type {string}
39
+ * @memberof GetHourlyReservationStatus200Response
40
+ */
41
+ currentHour?: string;
42
+ /**
43
+ * Next hour in HH format
44
+ * @type {string}
45
+ * @memberof GetHourlyReservationStatus200Response
46
+ */
47
+ nextHour?: string;
48
+ }
49
+
50
+ /**
51
+ * Check if a given object implements the GetHourlyReservationStatus200Response interface.
52
+ */
53
+ export function instanceOfGetHourlyReservationStatus200Response(value: object): value is GetHourlyReservationStatus200Response {
54
+ return true;
55
+ }
56
+
57
+ export function GetHourlyReservationStatus200ResponseFromJSON(json: any): GetHourlyReservationStatus200Response {
58
+ return GetHourlyReservationStatus200ResponseFromJSONTyped(json, false);
59
+ }
60
+
61
+ export function GetHourlyReservationStatus200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetHourlyReservationStatus200Response {
62
+ if (json == null) {
63
+ return json;
64
+ }
65
+ return {
66
+
67
+ 'hourlyStatus': json['hourlyStatus'] == null ? undefined : ((json['hourlyStatus'] as Array<any>).map(GetHourlyReservationStatus200ResponseHourlyStatusInnerFromJSON)),
68
+ 'currentHour': json['currentHour'] == null ? undefined : json['currentHour'],
69
+ 'nextHour': json['nextHour'] == null ? undefined : json['nextHour'],
70
+ };
71
+ }
72
+
73
+ export function GetHourlyReservationStatus200ResponseToJSON(json: any): GetHourlyReservationStatus200Response {
74
+ return GetHourlyReservationStatus200ResponseToJSONTyped(json, false);
75
+ }
76
+
77
+ export function GetHourlyReservationStatus200ResponseToJSONTyped(value?: GetHourlyReservationStatus200Response | null, ignoreDiscriminator: boolean = false): any {
78
+ if (value == null) {
79
+ return value;
80
+ }
81
+
82
+ return {
83
+
84
+ 'hourlyStatus': value['hourlyStatus'] == null ? undefined : ((value['hourlyStatus'] as Array<any>).map(GetHourlyReservationStatus200ResponseHourlyStatusInnerToJSON)),
85
+ 'currentHour': value['currentHour'],
86
+ 'nextHour': value['nextHour'],
87
+ };
88
+ }
89
+
@@ -0,0 +1,97 @@
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 { PlaySpot } from './PlaySpot';
17
+ import {
18
+ PlaySpotFromJSON,
19
+ PlaySpotFromJSONTyped,
20
+ PlaySpotToJSON,
21
+ PlaySpotToJSONTyped,
22
+ } from './PlaySpot';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface GetHourlyReservationStatus200ResponseHourlyStatusInner
28
+ */
29
+ export interface GetHourlyReservationStatus200ResponseHourlyStatusInner {
30
+ /**
31
+ * ID of the play spot
32
+ * @type {string}
33
+ * @memberof GetHourlyReservationStatus200ResponseHourlyStatusInner
34
+ */
35
+ playSpotId?: string;
36
+ /**
37
+ *
38
+ * @type {PlaySpot}
39
+ * @memberof GetHourlyReservationStatus200ResponseHourlyStatusInner
40
+ */
41
+ playSpot?: PlaySpot;
42
+ /**
43
+ * Whether the play spot is reserved in the current hour
44
+ * @type {boolean}
45
+ * @memberof GetHourlyReservationStatus200ResponseHourlyStatusInner
46
+ */
47
+ currentHour?: boolean;
48
+ /**
49
+ * Whether the play spot is reserved in the next hour
50
+ * @type {boolean}
51
+ * @memberof GetHourlyReservationStatus200ResponseHourlyStatusInner
52
+ */
53
+ nextHour?: boolean;
54
+ }
55
+
56
+ /**
57
+ * Check if a given object implements the GetHourlyReservationStatus200ResponseHourlyStatusInner interface.
58
+ */
59
+ export function instanceOfGetHourlyReservationStatus200ResponseHourlyStatusInner(value: object): value is GetHourlyReservationStatus200ResponseHourlyStatusInner {
60
+ return true;
61
+ }
62
+
63
+ export function GetHourlyReservationStatus200ResponseHourlyStatusInnerFromJSON(json: any): GetHourlyReservationStatus200ResponseHourlyStatusInner {
64
+ return GetHourlyReservationStatus200ResponseHourlyStatusInnerFromJSONTyped(json, false);
65
+ }
66
+
67
+ export function GetHourlyReservationStatus200ResponseHourlyStatusInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetHourlyReservationStatus200ResponseHourlyStatusInner {
68
+ if (json == null) {
69
+ return json;
70
+ }
71
+ return {
72
+
73
+ 'playSpotId': json['playSpotId'] == null ? undefined : json['playSpotId'],
74
+ 'playSpot': json['playSpot'] == null ? undefined : PlaySpotFromJSON(json['playSpot']),
75
+ 'currentHour': json['current_hour'] == null ? undefined : json['current_hour'],
76
+ 'nextHour': json['next_hour'] == null ? undefined : json['next_hour'],
77
+ };
78
+ }
79
+
80
+ export function GetHourlyReservationStatus200ResponseHourlyStatusInnerToJSON(json: any): GetHourlyReservationStatus200ResponseHourlyStatusInner {
81
+ return GetHourlyReservationStatus200ResponseHourlyStatusInnerToJSONTyped(json, false);
82
+ }
83
+
84
+ export function GetHourlyReservationStatus200ResponseHourlyStatusInnerToJSONTyped(value?: GetHourlyReservationStatus200ResponseHourlyStatusInner | null, ignoreDiscriminator: boolean = false): any {
85
+ if (value == null) {
86
+ return value;
87
+ }
88
+
89
+ return {
90
+
91
+ 'playSpotId': value['playSpotId'],
92
+ 'playSpot': PlaySpotToJSON(value['playSpot']),
93
+ 'current_hour': value['currentHour'],
94
+ 'next_hour': value['nextHour'],
95
+ };
96
+ }
97
+
@@ -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 GetMercadoPagoAuthUrl200Response
20
+ */
21
+ export interface GetMercadoPagoAuthUrl200Response {
22
+ /**
23
+ * The authorization URL to redirect users for MercadoPago OAuth
24
+ * @type {string}
25
+ * @memberof GetMercadoPagoAuthUrl200Response
26
+ */
27
+ url: string;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the GetMercadoPagoAuthUrl200Response interface.
32
+ */
33
+ export function instanceOfGetMercadoPagoAuthUrl200Response(value: object): value is GetMercadoPagoAuthUrl200Response {
34
+ if (!('url' in value) || value['url'] === undefined) return false;
35
+ return true;
36
+ }
37
+
38
+ export function GetMercadoPagoAuthUrl200ResponseFromJSON(json: any): GetMercadoPagoAuthUrl200Response {
39
+ return GetMercadoPagoAuthUrl200ResponseFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function GetMercadoPagoAuthUrl200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetMercadoPagoAuthUrl200Response {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+
48
+ 'url': json['url'],
49
+ };
50
+ }
51
+
52
+ export function GetMercadoPagoAuthUrl200ResponseToJSON(json: any): GetMercadoPagoAuthUrl200Response {
53
+ return GetMercadoPagoAuthUrl200ResponseToJSONTyped(json, false);
54
+ }
55
+
56
+ export function GetMercadoPagoAuthUrl200ResponseToJSONTyped(value?: GetMercadoPagoAuthUrl200Response | null, ignoreDiscriminator: boolean = false): any {
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+
61
+ return {
62
+
63
+ 'url': value['url'],
64
+ };
65
+ }
66
+