@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.
- package/apis/AdminCoachesApi.ts +259 -0
- package/apis/AdminCustomersApi.ts +374 -0
- package/apis/AdminDevicesApi.ts +364 -0
- package/apis/AdminLocationsApi.ts +304 -0
- package/apis/AdminPaymentConfigsApi.ts +358 -0
- package/apis/AdminPlayPricesApi.ts +397 -0
- package/apis/AdminPlaySpotShiftsApi.ts +267 -0
- package/apis/AdminPlaySpotsApi.ts +307 -0
- package/apis/AdminReservationsApi.ts +335 -0
- package/apis/AdminSubscriptionsApi.ts +354 -0
- package/apis/AdminUsersApi.ts +323 -0
- package/apis/AuthApi.ts +196 -0
- package/apis/BackgroundApi.ts +66 -0
- package/apis/ClubApi.ts +174 -0
- package/apis/DevicesApi.ts +136 -0
- package/apis/HealthApi.ts +56 -0
- package/apis/MercadoPagoApi.ts +111 -0
- package/apis/MercadoPagoIPNApi.ts +80 -0
- package/apis/PlaySpotsApi.ts +207 -0
- package/apis/ReservesApi.ts +366 -0
- package/apis/UsersApi.ts +648 -0
- package/apis/index.ts +23 -0
- package/index.ts +5 -0
- package/models/AddMemberToSubscriptionRequest.ts +66 -0
- package/models/ApiAdminPlayPricesIdPutRequest.ts +140 -0
- package/models/ApiAdminPlayPricesPostRequest.ts +146 -0
- package/models/AvailabilityShift.ts +89 -0
- package/models/AvailabilityShiftHour.ts +81 -0
- package/models/AvailabilityShiftSpot.ts +89 -0
- package/models/CancelReservationParams.ts +75 -0
- package/models/CancelReservationRequest.ts +66 -0
- package/models/CancelReservationResult.ts +89 -0
- package/models/ChargeOn.ts +53 -0
- package/models/Check200Response.ts +65 -0
- package/models/CheckUserExists200Response.ts +73 -0
- package/models/ClubDto.ts +164 -0
- package/models/ClubSearchParams.ts +119 -0
- package/models/ClubSearchParamsGeo.ts +73 -0
- package/models/ClubSearchParamsPaging.ts +73 -0
- package/models/ClubSearchResponse.ts +88 -0
- package/models/ClubSearchResponseDataInner.ts +168 -0
- package/models/ClubSearchResponsePagination.ts +89 -0
- package/models/Coach.ts +121 -0
- package/models/CoachDto.ts +119 -0
- package/models/CoachDtoAvailabilityInner.ts +88 -0
- package/models/ConfirmReservationParams.ts +74 -0
- package/models/ConfirmReservationResponse.ts +83 -0
- package/models/ConfirmReservationResponseResult.ts +81 -0
- package/models/CreateBasicUserDto.ts +112 -0
- package/models/CreateCheckoutPreferenceRequest.ts +104 -0
- package/models/CreateCheckoutPreferenceRequestBackUrls.ts +81 -0
- package/models/CreateCheckoutPreferenceRequestItemsInner.ts +89 -0
- package/models/CreateCustomerPaymentConfigDto.ts +84 -0
- package/models/CreateDefault500Response.ts +65 -0
- package/models/CreateFromInvite400Response.ts +65 -0
- package/models/CreateShiftRequest.ts +153 -0
- package/models/CreateUserNotificationDto.ts +93 -0
- package/models/Customer.ts +235 -0
- package/models/CustomerDocument.ts +128 -0
- package/models/CustomerDto.ts +209 -0
- package/models/CustomerDtoRefund.ts +103 -0
- package/models/CustomerLocationDto.ts +102 -0
- package/models/CustomerPaymentConfig.ts +144 -0
- package/models/CustomerPaymentConfigDto.ts +85 -0
- package/models/CustomerRefund.ts +102 -0
- package/models/CustomerStatus.ts +53 -0
- package/models/DayOfWeek.ts +58 -0
- package/models/DeleteShift200Response.ts +65 -0
- package/models/Device.ts +139 -0
- package/models/DeviceDto.ts +131 -0
- package/models/DeviceState.ts +111 -0
- package/models/DeviceType.ts +53 -0
- package/models/DominantPlaySide.ts +54 -0
- package/models/ErrorResponse.ts +66 -0
- package/models/ExpireUnpaidReservationResult.ts +81 -0
- package/models/ExpireUnpaidReservations401Response.ts +65 -0
- package/models/ExpireUnpaidReservations500Response.ts +65 -0
- package/models/Feature.ts +121 -0
- package/models/FindOccurrences200Response.ts +91 -0
- package/models/Frequency.ts +54 -0
- package/models/GenerateCode500Response.ts +65 -0
- package/models/GetAllDevices200ResponseInner.ts +154 -0
- package/models/GetAllPlaySpots200ResponseInner.ts +213 -0
- package/models/GetAllShifts200ResponseInner.ts +199 -0
- package/models/GetHourlyReservationStatus200Response.ts +89 -0
- package/models/GetHourlyReservationStatus200ResponseHourlyStatusInner.ts +97 -0
- package/models/GetMercadoPagoAuthUrl200Response.ts +66 -0
- package/models/GetSession401Response.ts +65 -0
- package/models/GetSession500Response.ts +65 -0
- package/models/HourShiftDetail.ts +81 -0
- package/models/InitiateReservationParams.ts +137 -0
- package/models/Level.ts +54 -0
- package/models/LightControlResponse.ts +83 -0
- package/models/Location.ts +209 -0
- package/models/LocationDto.ts +204 -0
- package/models/ManageLightSwitch200Response.ts +81 -0
- package/models/ManageLightSwitch500Response.ts +73 -0
- package/models/MatchRequirements.ts +100 -0
- package/models/MercadoPagoIPN.ts +135 -0
- package/models/NotificationType.ts +55 -0
- package/models/Occurrence.ts +84 -0
- package/models/PaymentDetail.ts +185 -0
- package/models/PaymentMethod.ts +56 -0
- package/models/PaymentRefund.ts +111 -0
- package/models/PaymentStatus.ts +55 -0
- package/models/PaymentTerms.ts +85 -0
- package/models/PlayPrice.ts +165 -0
- package/models/PlaySpot.ts +197 -0
- package/models/PlaySpotAvailabilityDetail.ts +89 -0
- package/models/PlaySpotDateSummary.ts +81 -0
- package/models/PlaySpotDeviceExecutionState.ts +127 -0
- package/models/PlaySpotDto.ts +185 -0
- package/models/PlaySpotShift.ts +184 -0
- package/models/PlaySpotShortDto.ts +97 -0
- package/models/PlaySubscription.ts +293 -0
- package/models/PlaySubscriptionCreateDto.ts +167 -0
- package/models/PlaySubscriptionParams.ts +114 -0
- package/models/PlaySubscriptionType.ts +55 -0
- package/models/PlayerCategory.ts +61 -0
- package/models/ProcessEmailMessageRequest.ts +66 -0
- package/models/ProcessMercadoPagoIPN200Response.ts +73 -0
- package/models/ProcessMercadoPagoPaymentParams.ts +83 -0
- package/models/ProcessMercadoPagoPaymentResponse.ts +83 -0
- package/models/ProcessMercadoPagoPaymentResponseResult.ts +89 -0
- package/models/RefundPolicy.ts +54 -0
- package/models/RegisterClub400Response.ts +65 -0
- package/models/RegisterClub401Response.ts +65 -0
- package/models/RegisterClub500Response.ts +65 -0
- package/models/RegisterClubParams.ts +191 -0
- package/models/RegisterClubResponse.ts +83 -0
- package/models/RegisterClubResponseResult.ts +96 -0
- package/models/RentHour.ts +73 -0
- package/models/ReservationAccessCodeResponse.ts +91 -0
- package/models/ReservationAccessCodeResponseResult.ts +107 -0
- package/models/ReservationParams.ts +121 -0
- package/models/ReservationStatus.ts +55 -0
- package/models/Reserve.ts +290 -0
- package/models/ReserveDto.ts +207 -0
- package/models/ReserveSlotDto.ts +81 -0
- package/models/ReserveStatus.ts +57 -0
- package/models/ReserveType.ts +58 -0
- package/models/SearchClubs400Response.ts +65 -0
- package/models/SearchClubs500Response.ts +65 -0
- package/models/SetAuthCodeDto.ts +85 -0
- package/models/Shift.ts +93 -0
- package/models/Sport.ts +61 -0
- package/models/SuccessResponse.ts +66 -0
- package/models/TimeOfDay.ts +54 -0
- package/models/TriggerDeviceAction200Response.ts +81 -0
- package/models/TriggerDeviceActionRequest.ts +73 -0
- package/models/UpdateReservationAdminRequest.ts +83 -0
- package/models/UpdateReserveDto.ts +83 -0
- package/models/UpdateUserNotificationDto.ts +73 -0
- package/models/User.ts +243 -0
- package/models/UserAuth.ts +135 -0
- package/models/UserDto.ts +142 -0
- package/models/UserNotification.ts +123 -0
- package/models/UserNotificationDto.ts +115 -0
- package/models/UserRating.ts +75 -0
- package/models/UserReserveDto.ts +230 -0
- package/models/UserRole.ts +53 -0
- package/models/UserSession.ts +129 -0
- package/models/UserSessionCustomer.ts +81 -0
- package/models/UserSportProfile.ts +117 -0
- package/models/UserSportProfileDto.ts +117 -0
- package/models/UserType.ts +54 -0
- package/models/VerifyPhoneNumber200Response.ts +65 -0
- package/models/VerifyPhoneNumberRequest.ts +66 -0
- package/models/index.ts +147 -0
- package/package.json +35 -0
- package/runtime.ts +432 -0
|
@@ -0,0 +1,293 @@
|
|
|
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 { PlaySubscriptionType } from './PlaySubscriptionType';
|
|
17
|
+
import {
|
|
18
|
+
PlaySubscriptionTypeFromJSON,
|
|
19
|
+
PlaySubscriptionTypeFromJSONTyped,
|
|
20
|
+
PlaySubscriptionTypeToJSON,
|
|
21
|
+
PlaySubscriptionTypeToJSONTyped,
|
|
22
|
+
} from './PlaySubscriptionType';
|
|
23
|
+
import type { DayOfWeek } from './DayOfWeek';
|
|
24
|
+
import {
|
|
25
|
+
DayOfWeekFromJSON,
|
|
26
|
+
DayOfWeekFromJSONTyped,
|
|
27
|
+
DayOfWeekToJSON,
|
|
28
|
+
DayOfWeekToJSONTyped,
|
|
29
|
+
} from './DayOfWeek';
|
|
30
|
+
import type { MatchRequirements } from './MatchRequirements';
|
|
31
|
+
import {
|
|
32
|
+
MatchRequirementsFromJSON,
|
|
33
|
+
MatchRequirementsFromJSONTyped,
|
|
34
|
+
MatchRequirementsToJSON,
|
|
35
|
+
MatchRequirementsToJSONTyped,
|
|
36
|
+
} from './MatchRequirements';
|
|
37
|
+
import type { Frequency } from './Frequency';
|
|
38
|
+
import {
|
|
39
|
+
FrequencyFromJSON,
|
|
40
|
+
FrequencyFromJSONTyped,
|
|
41
|
+
FrequencyToJSON,
|
|
42
|
+
FrequencyToJSONTyped,
|
|
43
|
+
} from './Frequency';
|
|
44
|
+
import type { PaymentTerms } from './PaymentTerms';
|
|
45
|
+
import {
|
|
46
|
+
PaymentTermsFromJSON,
|
|
47
|
+
PaymentTermsFromJSONTyped,
|
|
48
|
+
PaymentTermsToJSON,
|
|
49
|
+
PaymentTermsToJSONTyped,
|
|
50
|
+
} from './PaymentTerms';
|
|
51
|
+
import type { Occurrence } from './Occurrence';
|
|
52
|
+
import {
|
|
53
|
+
OccurrenceFromJSON,
|
|
54
|
+
OccurrenceFromJSONTyped,
|
|
55
|
+
OccurrenceToJSON,
|
|
56
|
+
OccurrenceToJSONTyped,
|
|
57
|
+
} from './Occurrence';
|
|
58
|
+
import type { ReserveStatus } from './ReserveStatus';
|
|
59
|
+
import {
|
|
60
|
+
ReserveStatusFromJSON,
|
|
61
|
+
ReserveStatusFromJSONTyped,
|
|
62
|
+
ReserveStatusToJSON,
|
|
63
|
+
ReserveStatusToJSONTyped,
|
|
64
|
+
} from './ReserveStatus';
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @export
|
|
69
|
+
* @interface PlaySubscription
|
|
70
|
+
*/
|
|
71
|
+
export interface PlaySubscription {
|
|
72
|
+
/**
|
|
73
|
+
* Unique identifier for the subscription
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof PlaySubscription
|
|
76
|
+
*/
|
|
77
|
+
id?: string;
|
|
78
|
+
/**
|
|
79
|
+
* ID of the customer where the subscription is valid
|
|
80
|
+
* @type {string}
|
|
81
|
+
* @memberof PlaySubscription
|
|
82
|
+
*/
|
|
83
|
+
customerId: string;
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @type {PlaySubscriptionType}
|
|
87
|
+
* @memberof PlaySubscription
|
|
88
|
+
*/
|
|
89
|
+
type: PlaySubscriptionType;
|
|
90
|
+
/**
|
|
91
|
+
* ID of the user who owns the subscription
|
|
92
|
+
* @type {string}
|
|
93
|
+
* @memberof PlaySubscription
|
|
94
|
+
*/
|
|
95
|
+
userId: string;
|
|
96
|
+
/**
|
|
97
|
+
* Array of member IDs for the subscription
|
|
98
|
+
* @type {Array<string>}
|
|
99
|
+
* @memberof PlaySubscription
|
|
100
|
+
*/
|
|
101
|
+
memberIds: Array<string>;
|
|
102
|
+
/**
|
|
103
|
+
* Start date of the subscription period
|
|
104
|
+
* @type {Date}
|
|
105
|
+
* @memberof PlaySubscription
|
|
106
|
+
*/
|
|
107
|
+
startDate: Date;
|
|
108
|
+
/**
|
|
109
|
+
* End date of the subscription period (optional)
|
|
110
|
+
* @type {Date}
|
|
111
|
+
* @memberof PlaySubscription
|
|
112
|
+
*/
|
|
113
|
+
endDate?: Date | null;
|
|
114
|
+
/**
|
|
115
|
+
*
|
|
116
|
+
* @type {Frequency}
|
|
117
|
+
* @memberof PlaySubscription
|
|
118
|
+
*/
|
|
119
|
+
frequency: Frequency;
|
|
120
|
+
/**
|
|
121
|
+
* Days of the week when the subscription is valid
|
|
122
|
+
* @type {Array<DayOfWeek>}
|
|
123
|
+
* @memberof PlaySubscription
|
|
124
|
+
*/
|
|
125
|
+
daysOfWeek: Array<DayOfWeek>;
|
|
126
|
+
/**
|
|
127
|
+
* Start time of the subscription in HH:MM format (24-hour)
|
|
128
|
+
* @type {string}
|
|
129
|
+
* @memberof PlaySubscription
|
|
130
|
+
*/
|
|
131
|
+
hourFrom: string;
|
|
132
|
+
/**
|
|
133
|
+
* End time of the subscription in HH:MM format (24-hour)
|
|
134
|
+
* @type {string}
|
|
135
|
+
* @memberof PlaySubscription
|
|
136
|
+
*/
|
|
137
|
+
hourTo: string;
|
|
138
|
+
/**
|
|
139
|
+
* Array of coach IDs associated with the subscription
|
|
140
|
+
* @type {Array<string>}
|
|
141
|
+
* @memberof PlaySubscription
|
|
142
|
+
*/
|
|
143
|
+
coachIds: Array<string>;
|
|
144
|
+
/**
|
|
145
|
+
* Array of player IDs for the subscription
|
|
146
|
+
* @type {Array<string>}
|
|
147
|
+
* @memberof PlaySubscription
|
|
148
|
+
*/
|
|
149
|
+
playerIds: Array<string>;
|
|
150
|
+
/**
|
|
151
|
+
* Array of subscription occurrences
|
|
152
|
+
* @type {Array<Occurrence>}
|
|
153
|
+
* @memberof PlaySubscription
|
|
154
|
+
*/
|
|
155
|
+
occurrences: Array<Occurrence>;
|
|
156
|
+
/**
|
|
157
|
+
* Date until which occurrences are valid
|
|
158
|
+
* @type {Date}
|
|
159
|
+
* @memberof PlaySubscription
|
|
160
|
+
*/
|
|
161
|
+
ocurrencesUntil?: Date;
|
|
162
|
+
/**
|
|
163
|
+
*
|
|
164
|
+
* @type {MatchRequirements}
|
|
165
|
+
* @memberof PlaySubscription
|
|
166
|
+
*/
|
|
167
|
+
matchRequirements: MatchRequirements;
|
|
168
|
+
/**
|
|
169
|
+
*
|
|
170
|
+
* @type {PaymentTerms}
|
|
171
|
+
* @memberof PlaySubscription
|
|
172
|
+
*/
|
|
173
|
+
paymentTerms: PaymentTerms;
|
|
174
|
+
/**
|
|
175
|
+
*
|
|
176
|
+
* @type {ReserveStatus}
|
|
177
|
+
* @memberof PlaySubscription
|
|
178
|
+
*/
|
|
179
|
+
status: ReserveStatus;
|
|
180
|
+
/**
|
|
181
|
+
* Whether the subscription has scheduling conflicts
|
|
182
|
+
* @type {boolean}
|
|
183
|
+
* @memberof PlaySubscription
|
|
184
|
+
*/
|
|
185
|
+
hasConflicts: boolean;
|
|
186
|
+
/**
|
|
187
|
+
* Date when the subscription was created
|
|
188
|
+
* @type {Date}
|
|
189
|
+
* @memberof PlaySubscription
|
|
190
|
+
*/
|
|
191
|
+
createdAt?: Date;
|
|
192
|
+
/**
|
|
193
|
+
* Date when the subscription was last updated
|
|
194
|
+
* @type {Date}
|
|
195
|
+
* @memberof PlaySubscription
|
|
196
|
+
*/
|
|
197
|
+
updatedAt?: Date;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* Check if a given object implements the PlaySubscription interface.
|
|
204
|
+
*/
|
|
205
|
+
export function instanceOfPlaySubscription(value: object): value is PlaySubscription {
|
|
206
|
+
if (!('customerId' in value) || value['customerId'] === undefined) return false;
|
|
207
|
+
if (!('type' in value) || value['type'] === undefined) return false;
|
|
208
|
+
if (!('userId' in value) || value['userId'] === undefined) return false;
|
|
209
|
+
if (!('memberIds' in value) || value['memberIds'] === undefined) return false;
|
|
210
|
+
if (!('startDate' in value) || value['startDate'] === undefined) return false;
|
|
211
|
+
if (!('frequency' in value) || value['frequency'] === undefined) return false;
|
|
212
|
+
if (!('daysOfWeek' in value) || value['daysOfWeek'] === undefined) return false;
|
|
213
|
+
if (!('hourFrom' in value) || value['hourFrom'] === undefined) return false;
|
|
214
|
+
if (!('hourTo' in value) || value['hourTo'] === undefined) return false;
|
|
215
|
+
if (!('coachIds' in value) || value['coachIds'] === undefined) return false;
|
|
216
|
+
if (!('playerIds' in value) || value['playerIds'] === undefined) return false;
|
|
217
|
+
if (!('occurrences' in value) || value['occurrences'] === undefined) return false;
|
|
218
|
+
if (!('matchRequirements' in value) || value['matchRequirements'] === undefined) return false;
|
|
219
|
+
if (!('paymentTerms' in value) || value['paymentTerms'] === undefined) return false;
|
|
220
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
221
|
+
if (!('hasConflicts' in value) || value['hasConflicts'] === undefined) return false;
|
|
222
|
+
return true;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
export function PlaySubscriptionFromJSON(json: any): PlaySubscription {
|
|
226
|
+
return PlaySubscriptionFromJSONTyped(json, false);
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
export function PlaySubscriptionFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlaySubscription {
|
|
230
|
+
if (json == null) {
|
|
231
|
+
return json;
|
|
232
|
+
}
|
|
233
|
+
return {
|
|
234
|
+
|
|
235
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
236
|
+
'customerId': json['customerId'],
|
|
237
|
+
'type': PlaySubscriptionTypeFromJSON(json['type']),
|
|
238
|
+
'userId': json['userId'],
|
|
239
|
+
'memberIds': json['memberIds'],
|
|
240
|
+
'startDate': (new Date(json['startDate'])),
|
|
241
|
+
'endDate': json['endDate'] == null ? undefined : (new Date(json['endDate'])),
|
|
242
|
+
'frequency': FrequencyFromJSON(json['frequency']),
|
|
243
|
+
'daysOfWeek': ((json['daysOfWeek'] as Array<any>).map(DayOfWeekFromJSON)),
|
|
244
|
+
'hourFrom': json['hourFrom'],
|
|
245
|
+
'hourTo': json['hourTo'],
|
|
246
|
+
'coachIds': json['coachIds'],
|
|
247
|
+
'playerIds': json['playerIds'],
|
|
248
|
+
'occurrences': ((json['occurrences'] as Array<any>).map(OccurrenceFromJSON)),
|
|
249
|
+
'ocurrencesUntil': json['ocurrencesUntil'] == null ? undefined : (new Date(json['ocurrencesUntil'])),
|
|
250
|
+
'matchRequirements': MatchRequirementsFromJSON(json['matchRequirements']),
|
|
251
|
+
'paymentTerms': PaymentTermsFromJSON(json['paymentTerms']),
|
|
252
|
+
'status': ReserveStatusFromJSON(json['status']),
|
|
253
|
+
'hasConflicts': json['hasConflicts'],
|
|
254
|
+
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
255
|
+
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
256
|
+
};
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
export function PlaySubscriptionToJSON(json: any): PlaySubscription {
|
|
260
|
+
return PlaySubscriptionToJSONTyped(json, false);
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
export function PlaySubscriptionToJSONTyped(value?: PlaySubscription | null, ignoreDiscriminator: boolean = false): any {
|
|
264
|
+
if (value == null) {
|
|
265
|
+
return value;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
return {
|
|
269
|
+
|
|
270
|
+
'id': value['id'],
|
|
271
|
+
'customerId': value['customerId'],
|
|
272
|
+
'type': PlaySubscriptionTypeToJSON(value['type']),
|
|
273
|
+
'userId': value['userId'],
|
|
274
|
+
'memberIds': value['memberIds'],
|
|
275
|
+
'startDate': ((value['startDate']).toISOString()),
|
|
276
|
+
'endDate': value['endDate'] == null ? undefined : ((value['endDate'] as any).toISOString()),
|
|
277
|
+
'frequency': FrequencyToJSON(value['frequency']),
|
|
278
|
+
'daysOfWeek': ((value['daysOfWeek'] as Array<any>).map(DayOfWeekToJSON)),
|
|
279
|
+
'hourFrom': value['hourFrom'],
|
|
280
|
+
'hourTo': value['hourTo'],
|
|
281
|
+
'coachIds': value['coachIds'],
|
|
282
|
+
'playerIds': value['playerIds'],
|
|
283
|
+
'occurrences': ((value['occurrences'] as Array<any>).map(OccurrenceToJSON)),
|
|
284
|
+
'ocurrencesUntil': value['ocurrencesUntil'] == null ? undefined : ((value['ocurrencesUntil']).toISOString()),
|
|
285
|
+
'matchRequirements': MatchRequirementsToJSON(value['matchRequirements']),
|
|
286
|
+
'paymentTerms': PaymentTermsToJSON(value['paymentTerms']),
|
|
287
|
+
'status': ReserveStatusToJSON(value['status']),
|
|
288
|
+
'hasConflicts': value['hasConflicts'],
|
|
289
|
+
'createdAt': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
|
|
290
|
+
'updatedAt': value['updatedAt'] == null ? undefined : ((value['updatedAt']).toISOString()),
|
|
291
|
+
};
|
|
292
|
+
}
|
|
293
|
+
|
|
@@ -0,0 +1,167 @@
|
|
|
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 { PlaySubscriptionType } from './PlaySubscriptionType';
|
|
17
|
+
import {
|
|
18
|
+
PlaySubscriptionTypeFromJSON,
|
|
19
|
+
PlaySubscriptionTypeFromJSONTyped,
|
|
20
|
+
PlaySubscriptionTypeToJSON,
|
|
21
|
+
PlaySubscriptionTypeToJSONTyped,
|
|
22
|
+
} from './PlaySubscriptionType';
|
|
23
|
+
import type { DayOfWeek } from './DayOfWeek';
|
|
24
|
+
import {
|
|
25
|
+
DayOfWeekFromJSON,
|
|
26
|
+
DayOfWeekFromJSONTyped,
|
|
27
|
+
DayOfWeekToJSON,
|
|
28
|
+
DayOfWeekToJSONTyped,
|
|
29
|
+
} from './DayOfWeek';
|
|
30
|
+
import type { MatchRequirements } from './MatchRequirements';
|
|
31
|
+
import {
|
|
32
|
+
MatchRequirementsFromJSON,
|
|
33
|
+
MatchRequirementsFromJSONTyped,
|
|
34
|
+
MatchRequirementsToJSON,
|
|
35
|
+
MatchRequirementsToJSONTyped,
|
|
36
|
+
} from './MatchRequirements';
|
|
37
|
+
import type { PaymentTerms } from './PaymentTerms';
|
|
38
|
+
import {
|
|
39
|
+
PaymentTermsFromJSON,
|
|
40
|
+
PaymentTermsFromJSONTyped,
|
|
41
|
+
PaymentTermsToJSON,
|
|
42
|
+
PaymentTermsToJSONTyped,
|
|
43
|
+
} from './PaymentTerms';
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Data required to create a play subscription and find occurrences
|
|
47
|
+
* @export
|
|
48
|
+
* @interface PlaySubscriptionCreateDto
|
|
49
|
+
*/
|
|
50
|
+
export interface PlaySubscriptionCreateDto {
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @type {PlaySubscriptionType}
|
|
54
|
+
* @memberof PlaySubscriptionCreateDto
|
|
55
|
+
*/
|
|
56
|
+
type: PlaySubscriptionType;
|
|
57
|
+
/**
|
|
58
|
+
* Start date of the subscription period
|
|
59
|
+
* @type {Date}
|
|
60
|
+
* @memberof PlaySubscriptionCreateDto
|
|
61
|
+
*/
|
|
62
|
+
startDate: Date;
|
|
63
|
+
/**
|
|
64
|
+
* End date of the subscription period (optional, defaults to 90 days from start)
|
|
65
|
+
* @type {Date}
|
|
66
|
+
* @memberof PlaySubscriptionCreateDto
|
|
67
|
+
*/
|
|
68
|
+
endDate?: Date | null;
|
|
69
|
+
/**
|
|
70
|
+
* Days of the week when the subscription is valid
|
|
71
|
+
* @type {Array<DayOfWeek>}
|
|
72
|
+
* @memberof PlaySubscriptionCreateDto
|
|
73
|
+
*/
|
|
74
|
+
daysOfWeek: Array<DayOfWeek>;
|
|
75
|
+
/**
|
|
76
|
+
* Start time of the subscription in HH:MM format (24-hour)
|
|
77
|
+
* @type {string}
|
|
78
|
+
* @memberof PlaySubscriptionCreateDto
|
|
79
|
+
*/
|
|
80
|
+
hourFrom: string;
|
|
81
|
+
/**
|
|
82
|
+
* End time of the subscription in HH:MM format (24-hour)
|
|
83
|
+
* @type {string}
|
|
84
|
+
* @memberof PlaySubscriptionCreateDto
|
|
85
|
+
*/
|
|
86
|
+
hourTo: string;
|
|
87
|
+
/**
|
|
88
|
+
*
|
|
89
|
+
* @type {MatchRequirements}
|
|
90
|
+
* @memberof PlaySubscriptionCreateDto
|
|
91
|
+
*/
|
|
92
|
+
matchRequirements: MatchRequirements;
|
|
93
|
+
/**
|
|
94
|
+
* Array of coach IDs associated with the subscription
|
|
95
|
+
* @type {Array<string>}
|
|
96
|
+
* @memberof PlaySubscriptionCreateDto
|
|
97
|
+
*/
|
|
98
|
+
coachIds?: Array<string>;
|
|
99
|
+
/**
|
|
100
|
+
*
|
|
101
|
+
* @type {PaymentTerms}
|
|
102
|
+
* @memberof PlaySubscriptionCreateDto
|
|
103
|
+
*/
|
|
104
|
+
paymentTerms: PaymentTerms;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* Check if a given object implements the PlaySubscriptionCreateDto interface.
|
|
111
|
+
*/
|
|
112
|
+
export function instanceOfPlaySubscriptionCreateDto(value: object): value is PlaySubscriptionCreateDto {
|
|
113
|
+
if (!('type' in value) || value['type'] === undefined) return false;
|
|
114
|
+
if (!('startDate' in value) || value['startDate'] === undefined) return false;
|
|
115
|
+
if (!('daysOfWeek' in value) || value['daysOfWeek'] === undefined) return false;
|
|
116
|
+
if (!('hourFrom' in value) || value['hourFrom'] === undefined) return false;
|
|
117
|
+
if (!('hourTo' in value) || value['hourTo'] === undefined) return false;
|
|
118
|
+
if (!('matchRequirements' in value) || value['matchRequirements'] === undefined) return false;
|
|
119
|
+
if (!('paymentTerms' in value) || value['paymentTerms'] === undefined) return false;
|
|
120
|
+
return true;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export function PlaySubscriptionCreateDtoFromJSON(json: any): PlaySubscriptionCreateDto {
|
|
124
|
+
return PlaySubscriptionCreateDtoFromJSONTyped(json, false);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
export function PlaySubscriptionCreateDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlaySubscriptionCreateDto {
|
|
128
|
+
if (json == null) {
|
|
129
|
+
return json;
|
|
130
|
+
}
|
|
131
|
+
return {
|
|
132
|
+
|
|
133
|
+
'type': PlaySubscriptionTypeFromJSON(json['type']),
|
|
134
|
+
'startDate': (new Date(json['startDate'])),
|
|
135
|
+
'endDate': json['endDate'] == null ? undefined : (new Date(json['endDate'])),
|
|
136
|
+
'daysOfWeek': ((json['daysOfWeek'] as Array<any>).map(DayOfWeekFromJSON)),
|
|
137
|
+
'hourFrom': json['hourFrom'],
|
|
138
|
+
'hourTo': json['hourTo'],
|
|
139
|
+
'matchRequirements': MatchRequirementsFromJSON(json['matchRequirements']),
|
|
140
|
+
'coachIds': json['coachIds'] == null ? undefined : json['coachIds'],
|
|
141
|
+
'paymentTerms': PaymentTermsFromJSON(json['paymentTerms']),
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
export function PlaySubscriptionCreateDtoToJSON(json: any): PlaySubscriptionCreateDto {
|
|
146
|
+
return PlaySubscriptionCreateDtoToJSONTyped(json, false);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
export function PlaySubscriptionCreateDtoToJSONTyped(value?: PlaySubscriptionCreateDto | null, ignoreDiscriminator: boolean = false): any {
|
|
150
|
+
if (value == null) {
|
|
151
|
+
return value;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
return {
|
|
155
|
+
|
|
156
|
+
'type': PlaySubscriptionTypeToJSON(value['type']),
|
|
157
|
+
'startDate': ((value['startDate']).toISOString().substring(0,10)),
|
|
158
|
+
'endDate': value['endDate'] == null ? undefined : ((value['endDate'] as any).toISOString().substring(0,10)),
|
|
159
|
+
'daysOfWeek': ((value['daysOfWeek'] as Array<any>).map(DayOfWeekToJSON)),
|
|
160
|
+
'hourFrom': value['hourFrom'],
|
|
161
|
+
'hourTo': value['hourTo'],
|
|
162
|
+
'matchRequirements': MatchRequirementsToJSON(value['matchRequirements']),
|
|
163
|
+
'coachIds': value['coachIds'],
|
|
164
|
+
'paymentTerms': PaymentTermsToJSON(value['paymentTerms']),
|
|
165
|
+
};
|
|
166
|
+
}
|
|
167
|
+
|
|
@@ -0,0 +1,114 @@
|
|
|
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 { PlaySubscriptionType } from './PlaySubscriptionType';
|
|
17
|
+
import {
|
|
18
|
+
PlaySubscriptionTypeFromJSON,
|
|
19
|
+
PlaySubscriptionTypeFromJSONTyped,
|
|
20
|
+
PlaySubscriptionTypeToJSON,
|
|
21
|
+
PlaySubscriptionTypeToJSONTyped,
|
|
22
|
+
} from './PlaySubscriptionType';
|
|
23
|
+
import type { ReserveStatus } from './ReserveStatus';
|
|
24
|
+
import {
|
|
25
|
+
ReserveStatusFromJSON,
|
|
26
|
+
ReserveStatusFromJSONTyped,
|
|
27
|
+
ReserveStatusToJSON,
|
|
28
|
+
ReserveStatusToJSONTyped,
|
|
29
|
+
} from './ReserveStatus';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Parameters for filtering PlaySubscriptions
|
|
33
|
+
* @export
|
|
34
|
+
* @interface PlaySubscriptionParams
|
|
35
|
+
*/
|
|
36
|
+
export interface PlaySubscriptionParams {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {ReserveStatus}
|
|
40
|
+
* @memberof PlaySubscriptionParams
|
|
41
|
+
*/
|
|
42
|
+
status?: ReserveStatus;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {PlaySubscriptionType}
|
|
46
|
+
* @memberof PlaySubscriptionParams
|
|
47
|
+
*/
|
|
48
|
+
type?: PlaySubscriptionType;
|
|
49
|
+
/**
|
|
50
|
+
* Filter by user ID
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof PlaySubscriptionParams
|
|
53
|
+
*/
|
|
54
|
+
userId?: string;
|
|
55
|
+
/**
|
|
56
|
+
* Filter by member ID (searches in memberIds array)
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof PlaySubscriptionParams
|
|
59
|
+
*/
|
|
60
|
+
memberId?: string;
|
|
61
|
+
/**
|
|
62
|
+
* Filter by coach ID (searches in coachIds array)
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof PlaySubscriptionParams
|
|
65
|
+
*/
|
|
66
|
+
coachId?: string;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Check if a given object implements the PlaySubscriptionParams interface.
|
|
73
|
+
*/
|
|
74
|
+
export function instanceOfPlaySubscriptionParams(value: object): value is PlaySubscriptionParams {
|
|
75
|
+
return true;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function PlaySubscriptionParamsFromJSON(json: any): PlaySubscriptionParams {
|
|
79
|
+
return PlaySubscriptionParamsFromJSONTyped(json, false);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export function PlaySubscriptionParamsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlaySubscriptionParams {
|
|
83
|
+
if (json == null) {
|
|
84
|
+
return json;
|
|
85
|
+
}
|
|
86
|
+
return {
|
|
87
|
+
|
|
88
|
+
'status': json['status'] == null ? undefined : ReserveStatusFromJSON(json['status']),
|
|
89
|
+
'type': json['type'] == null ? undefined : PlaySubscriptionTypeFromJSON(json['type']),
|
|
90
|
+
'userId': json['userId'] == null ? undefined : json['userId'],
|
|
91
|
+
'memberId': json['memberId'] == null ? undefined : json['memberId'],
|
|
92
|
+
'coachId': json['coachId'] == null ? undefined : json['coachId'],
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export function PlaySubscriptionParamsToJSON(json: any): PlaySubscriptionParams {
|
|
97
|
+
return PlaySubscriptionParamsToJSONTyped(json, false);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export function PlaySubscriptionParamsToJSONTyped(value?: PlaySubscriptionParams | null, ignoreDiscriminator: boolean = false): any {
|
|
101
|
+
if (value == null) {
|
|
102
|
+
return value;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
return {
|
|
106
|
+
|
|
107
|
+
'status': ReserveStatusToJSON(value['status']),
|
|
108
|
+
'type': PlaySubscriptionTypeToJSON(value['type']),
|
|
109
|
+
'userId': value['userId'],
|
|
110
|
+
'memberId': value['memberId'],
|
|
111
|
+
'coachId': value['coachId'],
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
|
|
@@ -0,0 +1,55 @@
|
|
|
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
|
+
* Types of play subscriptions available
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const PlaySubscriptionType = {
|
|
21
|
+
Play: 'play',
|
|
22
|
+
Coach: 'coach',
|
|
23
|
+
Training: 'training',
|
|
24
|
+
Tournament: 'tournament'
|
|
25
|
+
} as const;
|
|
26
|
+
export type PlaySubscriptionType = typeof PlaySubscriptionType[keyof typeof PlaySubscriptionType];
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
export function instanceOfPlaySubscriptionType(value: any): boolean {
|
|
30
|
+
for (const key in PlaySubscriptionType) {
|
|
31
|
+
if (Object.prototype.hasOwnProperty.call(PlaySubscriptionType, key)) {
|
|
32
|
+
if (PlaySubscriptionType[key as keyof typeof PlaySubscriptionType] === value) {
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
return false;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export function PlaySubscriptionTypeFromJSON(json: any): PlaySubscriptionType {
|
|
41
|
+
return PlaySubscriptionTypeFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export function PlaySubscriptionTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlaySubscriptionType {
|
|
45
|
+
return json as PlaySubscriptionType;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export function PlaySubscriptionTypeToJSON(value?: PlaySubscriptionType | null): any {
|
|
49
|
+
return value as any;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function PlaySubscriptionTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): PlaySubscriptionType {
|
|
53
|
+
return value as PlaySubscriptionType;
|
|
54
|
+
}
|
|
55
|
+
|
|
@@ -0,0 +1,61 @@
|
|
|
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
|
+
* Represents the skill level category of a player
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const PlayerCategory = {
|
|
21
|
+
Amateur: 'AMATEUR',
|
|
22
|
+
Pro7Ma: 'PRO_7MA',
|
|
23
|
+
Pro6Ta: 'PRO_6TA',
|
|
24
|
+
Pro5Ta: 'PRO_5TA',
|
|
25
|
+
Pro4Ta: 'PRO_4TA',
|
|
26
|
+
Pro3Ta: 'PRO_3TA',
|
|
27
|
+
Pro2Ta: 'PRO_2TA',
|
|
28
|
+
Pro1Ta: 'PRO_1TA',
|
|
29
|
+
Honor: 'HONOR',
|
|
30
|
+
Veteran: 'VETERAN'
|
|
31
|
+
} as const;
|
|
32
|
+
export type PlayerCategory = typeof PlayerCategory[keyof typeof PlayerCategory];
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
export function instanceOfPlayerCategory(value: any): boolean {
|
|
36
|
+
for (const key in PlayerCategory) {
|
|
37
|
+
if (Object.prototype.hasOwnProperty.call(PlayerCategory, key)) {
|
|
38
|
+
if (PlayerCategory[key as keyof typeof PlayerCategory] === value) {
|
|
39
|
+
return true;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
return false;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function PlayerCategoryFromJSON(json: any): PlayerCategory {
|
|
47
|
+
return PlayerCategoryFromJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function PlayerCategoryFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlayerCategory {
|
|
51
|
+
return json as PlayerCategory;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function PlayerCategoryToJSON(value?: PlayerCategory | null): any {
|
|
55
|
+
return value as any;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function PlayerCategoryToJSONTyped(value: any, ignoreDiscriminator: boolean): PlayerCategory {
|
|
59
|
+
return value as PlayerCategory;
|
|
60
|
+
}
|
|
61
|
+
|