@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,191 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Jugar Hoy - API
|
|
5
|
+
* API documentation for Jugar Hoy application
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.5.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { Sport } from './Sport';
|
|
17
|
+
import {
|
|
18
|
+
SportFromJSON,
|
|
19
|
+
SportFromJSONTyped,
|
|
20
|
+
SportToJSON,
|
|
21
|
+
SportToJSONTyped,
|
|
22
|
+
} from './Sport';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface RegisterClubParams
|
|
28
|
+
*/
|
|
29
|
+
export interface RegisterClubParams {
|
|
30
|
+
/**
|
|
31
|
+
* Name of the club
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof RegisterClubParams
|
|
34
|
+
*/
|
|
35
|
+
clubName: string;
|
|
36
|
+
/**
|
|
37
|
+
* Short code for the club (url-display, only letters, numbers and - allowed)
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof RegisterClubParams
|
|
40
|
+
*/
|
|
41
|
+
clubCode: string;
|
|
42
|
+
/**
|
|
43
|
+
* Name of the sede/location
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof RegisterClubParams
|
|
46
|
+
*/
|
|
47
|
+
sedeName: string;
|
|
48
|
+
/**
|
|
49
|
+
* Short code for the sede (url-display, only letters, numbers and - allowed)
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof RegisterClubParams
|
|
52
|
+
*/
|
|
53
|
+
sedeCode: string;
|
|
54
|
+
/**
|
|
55
|
+
* Address selected from Google Maps
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof RegisterClubParams
|
|
58
|
+
*/
|
|
59
|
+
address: string;
|
|
60
|
+
/**
|
|
61
|
+
* Google Maps URL for the location
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof RegisterClubParams
|
|
64
|
+
*/
|
|
65
|
+
googleMapsUrl: string;
|
|
66
|
+
/**
|
|
67
|
+
* Sports available at the club
|
|
68
|
+
* @type {Array<Sport>}
|
|
69
|
+
* @memberof RegisterClubParams
|
|
70
|
+
*/
|
|
71
|
+
sports: Array<Sport>;
|
|
72
|
+
/**
|
|
73
|
+
* Phone number of the club
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof RegisterClubParams
|
|
76
|
+
*/
|
|
77
|
+
phone: string;
|
|
78
|
+
/**
|
|
79
|
+
* Website of the club
|
|
80
|
+
* @type {string}
|
|
81
|
+
* @memberof RegisterClubParams
|
|
82
|
+
*/
|
|
83
|
+
website: string;
|
|
84
|
+
/**
|
|
85
|
+
* Email of the club
|
|
86
|
+
* @type {string}
|
|
87
|
+
* @memberof RegisterClubParams
|
|
88
|
+
*/
|
|
89
|
+
email: string;
|
|
90
|
+
/**
|
|
91
|
+
* Instagram page of the club
|
|
92
|
+
* @type {string}
|
|
93
|
+
* @memberof RegisterClubParams
|
|
94
|
+
*/
|
|
95
|
+
instagramPage: string;
|
|
96
|
+
/**
|
|
97
|
+
* Latitude coordinate from Google Maps
|
|
98
|
+
* @type {number}
|
|
99
|
+
* @memberof RegisterClubParams
|
|
100
|
+
*/
|
|
101
|
+
latitude: number;
|
|
102
|
+
/**
|
|
103
|
+
* Longitude coordinate from Google Maps
|
|
104
|
+
* @type {number}
|
|
105
|
+
* @memberof RegisterClubParams
|
|
106
|
+
*/
|
|
107
|
+
longitude: number;
|
|
108
|
+
/**
|
|
109
|
+
* Google Maps Place ID
|
|
110
|
+
* @type {string}
|
|
111
|
+
* @memberof RegisterClubParams
|
|
112
|
+
*/
|
|
113
|
+
placeId: string;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* Check if a given object implements the RegisterClubParams interface.
|
|
118
|
+
*/
|
|
119
|
+
export function instanceOfRegisterClubParams(value: object): value is RegisterClubParams {
|
|
120
|
+
if (!('clubName' in value) || value['clubName'] === undefined) return false;
|
|
121
|
+
if (!('clubCode' in value) || value['clubCode'] === undefined) return false;
|
|
122
|
+
if (!('sedeName' in value) || value['sedeName'] === undefined) return false;
|
|
123
|
+
if (!('sedeCode' in value) || value['sedeCode'] === undefined) return false;
|
|
124
|
+
if (!('address' in value) || value['address'] === undefined) return false;
|
|
125
|
+
if (!('googleMapsUrl' in value) || value['googleMapsUrl'] === undefined) return false;
|
|
126
|
+
if (!('sports' in value) || value['sports'] === undefined) return false;
|
|
127
|
+
if (!('phone' in value) || value['phone'] === undefined) return false;
|
|
128
|
+
if (!('website' in value) || value['website'] === undefined) return false;
|
|
129
|
+
if (!('email' in value) || value['email'] === undefined) return false;
|
|
130
|
+
if (!('instagramPage' in value) || value['instagramPage'] === undefined) return false;
|
|
131
|
+
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
132
|
+
if (!('longitude' in value) || value['longitude'] === undefined) return false;
|
|
133
|
+
if (!('placeId' in value) || value['placeId'] === undefined) return false;
|
|
134
|
+
return true;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
export function RegisterClubParamsFromJSON(json: any): RegisterClubParams {
|
|
138
|
+
return RegisterClubParamsFromJSONTyped(json, false);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
export function RegisterClubParamsFromJSONTyped(json: any, ignoreDiscriminator: boolean): RegisterClubParams {
|
|
142
|
+
if (json == null) {
|
|
143
|
+
return json;
|
|
144
|
+
}
|
|
145
|
+
return {
|
|
146
|
+
|
|
147
|
+
'clubName': json['clubName'],
|
|
148
|
+
'clubCode': json['clubCode'],
|
|
149
|
+
'sedeName': json['sedeName'],
|
|
150
|
+
'sedeCode': json['sedeCode'],
|
|
151
|
+
'address': json['address'],
|
|
152
|
+
'googleMapsUrl': json['googleMapsUrl'],
|
|
153
|
+
'sports': ((json['sports'] as Array<any>).map(SportFromJSON)),
|
|
154
|
+
'phone': json['phone'],
|
|
155
|
+
'website': json['website'],
|
|
156
|
+
'email': json['email'],
|
|
157
|
+
'instagramPage': json['instagramPage'],
|
|
158
|
+
'latitude': json['latitude'],
|
|
159
|
+
'longitude': json['longitude'],
|
|
160
|
+
'placeId': json['placeId'],
|
|
161
|
+
};
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
export function RegisterClubParamsToJSON(json: any): RegisterClubParams {
|
|
165
|
+
return RegisterClubParamsToJSONTyped(json, false);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
export function RegisterClubParamsToJSONTyped(value?: RegisterClubParams | null, ignoreDiscriminator: boolean = false): any {
|
|
169
|
+
if (value == null) {
|
|
170
|
+
return value;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
return {
|
|
174
|
+
|
|
175
|
+
'clubName': value['clubName'],
|
|
176
|
+
'clubCode': value['clubCode'],
|
|
177
|
+
'sedeName': value['sedeName'],
|
|
178
|
+
'sedeCode': value['sedeCode'],
|
|
179
|
+
'address': value['address'],
|
|
180
|
+
'googleMapsUrl': value['googleMapsUrl'],
|
|
181
|
+
'sports': ((value['sports'] as Array<any>).map(SportToJSON)),
|
|
182
|
+
'phone': value['phone'],
|
|
183
|
+
'website': value['website'],
|
|
184
|
+
'email': value['email'],
|
|
185
|
+
'instagramPage': value['instagramPage'],
|
|
186
|
+
'latitude': value['latitude'],
|
|
187
|
+
'longitude': value['longitude'],
|
|
188
|
+
'placeId': value['placeId'],
|
|
189
|
+
};
|
|
190
|
+
}
|
|
191
|
+
|
|
@@ -0,0 +1,83 @@
|
|
|
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 { RegisterClubResponseResult } from './RegisterClubResponseResult';
|
|
17
|
+
import {
|
|
18
|
+
RegisterClubResponseResultFromJSON,
|
|
19
|
+
RegisterClubResponseResultFromJSONTyped,
|
|
20
|
+
RegisterClubResponseResultToJSON,
|
|
21
|
+
RegisterClubResponseResultToJSONTyped,
|
|
22
|
+
} from './RegisterClubResponseResult';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface RegisterClubResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface RegisterClubResponse {
|
|
30
|
+
/**
|
|
31
|
+
* Whether the registration was successful
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof RegisterClubResponse
|
|
34
|
+
*/
|
|
35
|
+
success: boolean;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {RegisterClubResponseResult}
|
|
39
|
+
* @memberof RegisterClubResponse
|
|
40
|
+
*/
|
|
41
|
+
result: RegisterClubResponseResult;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the RegisterClubResponse interface.
|
|
46
|
+
*/
|
|
47
|
+
export function instanceOfRegisterClubResponse(value: object): value is RegisterClubResponse {
|
|
48
|
+
if (!('success' in value) || value['success'] === undefined) return false;
|
|
49
|
+
if (!('result' in value) || value['result'] === undefined) return false;
|
|
50
|
+
return true;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function RegisterClubResponseFromJSON(json: any): RegisterClubResponse {
|
|
54
|
+
return RegisterClubResponseFromJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export function RegisterClubResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): RegisterClubResponse {
|
|
58
|
+
if (json == null) {
|
|
59
|
+
return json;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'success': json['success'],
|
|
64
|
+
'result': RegisterClubResponseResultFromJSON(json['result']),
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function RegisterClubResponseToJSON(json: any): RegisterClubResponse {
|
|
69
|
+
return RegisterClubResponseToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function RegisterClubResponseToJSONTyped(value?: RegisterClubResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'success': value['success'],
|
|
80
|
+
'result': RegisterClubResponseResultToJSON(value['result']),
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
@@ -0,0 +1,96 @@
|
|
|
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 { Customer } from './Customer';
|
|
17
|
+
import {
|
|
18
|
+
CustomerFromJSON,
|
|
19
|
+
CustomerFromJSONTyped,
|
|
20
|
+
CustomerToJSON,
|
|
21
|
+
CustomerToJSONTyped,
|
|
22
|
+
} from './Customer';
|
|
23
|
+
import type { Location } from './Location';
|
|
24
|
+
import {
|
|
25
|
+
LocationFromJSON,
|
|
26
|
+
LocationFromJSONTyped,
|
|
27
|
+
LocationToJSON,
|
|
28
|
+
LocationToJSONTyped,
|
|
29
|
+
} from './Location';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface RegisterClubResponseResult
|
|
35
|
+
*/
|
|
36
|
+
export interface RegisterClubResponseResult {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Customer}
|
|
40
|
+
* @memberof RegisterClubResponseResult
|
|
41
|
+
*/
|
|
42
|
+
customer?: Customer;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {Location}
|
|
46
|
+
* @memberof RegisterClubResponseResult
|
|
47
|
+
*/
|
|
48
|
+
location?: Location;
|
|
49
|
+
/**
|
|
50
|
+
* Success message
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof RegisterClubResponseResult
|
|
53
|
+
*/
|
|
54
|
+
message?: string;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Check if a given object implements the RegisterClubResponseResult interface.
|
|
59
|
+
*/
|
|
60
|
+
export function instanceOfRegisterClubResponseResult(value: object): value is RegisterClubResponseResult {
|
|
61
|
+
return true;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function RegisterClubResponseResultFromJSON(json: any): RegisterClubResponseResult {
|
|
65
|
+
return RegisterClubResponseResultFromJSONTyped(json, false);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function RegisterClubResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): RegisterClubResponseResult {
|
|
69
|
+
if (json == null) {
|
|
70
|
+
return json;
|
|
71
|
+
}
|
|
72
|
+
return {
|
|
73
|
+
|
|
74
|
+
'customer': json['customer'] == null ? undefined : CustomerFromJSON(json['customer']),
|
|
75
|
+
'location': json['location'] == null ? undefined : LocationFromJSON(json['location']),
|
|
76
|
+
'message': json['message'] == null ? undefined : json['message'],
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function RegisterClubResponseResultToJSON(json: any): RegisterClubResponseResult {
|
|
81
|
+
return RegisterClubResponseResultToJSONTyped(json, false);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function RegisterClubResponseResultToJSONTyped(value?: RegisterClubResponseResult | null, ignoreDiscriminator: boolean = false): any {
|
|
85
|
+
if (value == null) {
|
|
86
|
+
return value;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
return {
|
|
90
|
+
|
|
91
|
+
'customer': CustomerToJSON(value['customer']),
|
|
92
|
+
'location': LocationToJSON(value['location']),
|
|
93
|
+
'message': value['message'],
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
|
|
@@ -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 RentHour
|
|
20
|
+
*/
|
|
21
|
+
export interface RentHour {
|
|
22
|
+
/**
|
|
23
|
+
* Hour in HH:MM format (e.g., "09:00", "14:00")
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof RentHour
|
|
26
|
+
*/
|
|
27
|
+
hour?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Number of free spots available at this hour
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof RentHour
|
|
32
|
+
*/
|
|
33
|
+
freeSpots?: number;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the RentHour interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfRentHour(value: object): value is RentHour {
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function RentHourFromJSON(json: any): RentHour {
|
|
44
|
+
return RentHourFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function RentHourFromJSONTyped(json: any, ignoreDiscriminator: boolean): RentHour {
|
|
48
|
+
if (json == null) {
|
|
49
|
+
return json;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
|
|
53
|
+
'hour': json['hour'] == null ? undefined : json['hour'],
|
|
54
|
+
'freeSpots': json['freeSpots'] == null ? undefined : json['freeSpots'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function RentHourToJSON(json: any): RentHour {
|
|
59
|
+
return RentHourToJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function RentHourToJSONTyped(value?: RentHour | null, ignoreDiscriminator: boolean = false): any {
|
|
63
|
+
if (value == null) {
|
|
64
|
+
return value;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'hour': value['hour'],
|
|
70
|
+
'freeSpots': value['freeSpots'],
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -0,0 +1,91 @@
|
|
|
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 { ReservationAccessCodeResponseResult } from './ReservationAccessCodeResponseResult';
|
|
17
|
+
import {
|
|
18
|
+
ReservationAccessCodeResponseResultFromJSON,
|
|
19
|
+
ReservationAccessCodeResponseResultFromJSONTyped,
|
|
20
|
+
ReservationAccessCodeResponseResultToJSON,
|
|
21
|
+
ReservationAccessCodeResponseResultToJSONTyped,
|
|
22
|
+
} from './ReservationAccessCodeResponseResult';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ReservationAccessCodeResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface ReservationAccessCodeResponse {
|
|
30
|
+
/**
|
|
31
|
+
* Whether the request was successful
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof ReservationAccessCodeResponse
|
|
34
|
+
*/
|
|
35
|
+
success: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Whether a message was sent with the code
|
|
38
|
+
* @type {boolean}
|
|
39
|
+
* @memberof ReservationAccessCodeResponse
|
|
40
|
+
*/
|
|
41
|
+
message?: boolean | null;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {ReservationAccessCodeResponseResult}
|
|
45
|
+
* @memberof ReservationAccessCodeResponse
|
|
46
|
+
*/
|
|
47
|
+
result: ReservationAccessCodeResponseResult;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the ReservationAccessCodeResponse interface.
|
|
52
|
+
*/
|
|
53
|
+
export function instanceOfReservationAccessCodeResponse(value: object): value is ReservationAccessCodeResponse {
|
|
54
|
+
if (!('success' in value) || value['success'] === undefined) return false;
|
|
55
|
+
if (!('result' in value) || value['result'] === undefined) return false;
|
|
56
|
+
return true;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function ReservationAccessCodeResponseFromJSON(json: any): ReservationAccessCodeResponse {
|
|
60
|
+
return ReservationAccessCodeResponseFromJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function ReservationAccessCodeResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReservationAccessCodeResponse {
|
|
64
|
+
if (json == null) {
|
|
65
|
+
return json;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'success': json['success'],
|
|
70
|
+
'message': json['message'] == null ? undefined : json['message'],
|
|
71
|
+
'result': ReservationAccessCodeResponseResultFromJSON(json['result']),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function ReservationAccessCodeResponseToJSON(json: any): ReservationAccessCodeResponse {
|
|
76
|
+
return ReservationAccessCodeResponseToJSONTyped(json, false);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function ReservationAccessCodeResponseToJSONTyped(value?: ReservationAccessCodeResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
80
|
+
if (value == null) {
|
|
81
|
+
return value;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
return {
|
|
85
|
+
|
|
86
|
+
'success': value['success'],
|
|
87
|
+
'message': value['message'],
|
|
88
|
+
'result': ReservationAccessCodeResponseResultToJSON(value['result']),
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Jugar Hoy - API
|
|
5
|
+
* API documentation for Jugar Hoy application
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.5.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { Reserve } from './Reserve';
|
|
17
|
+
import {
|
|
18
|
+
ReserveFromJSON,
|
|
19
|
+
ReserveFromJSONTyped,
|
|
20
|
+
ReserveToJSON,
|
|
21
|
+
ReserveToJSONTyped,
|
|
22
|
+
} from './Reserve';
|
|
23
|
+
import type { ReservationStatus } from './ReservationStatus';
|
|
24
|
+
import {
|
|
25
|
+
ReservationStatusFromJSON,
|
|
26
|
+
ReservationStatusFromJSONTyped,
|
|
27
|
+
ReservationStatusToJSON,
|
|
28
|
+
ReservationStatusToJSONTyped,
|
|
29
|
+
} from './ReservationStatus';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface ReservationAccessCodeResponseResult
|
|
35
|
+
*/
|
|
36
|
+
export interface ReservationAccessCodeResponseResult {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {ReservationStatus}
|
|
40
|
+
* @memberof ReservationAccessCodeResponseResult
|
|
41
|
+
*/
|
|
42
|
+
status: ReservationStatus;
|
|
43
|
+
/**
|
|
44
|
+
* The generated access code (only present when status is active)
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof ReservationAccessCodeResponseResult
|
|
47
|
+
*/
|
|
48
|
+
code?: string | null;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {Reserve}
|
|
52
|
+
* @memberof ReservationAccessCodeResponseResult
|
|
53
|
+
*/
|
|
54
|
+
reservation?: Reserve;
|
|
55
|
+
/**
|
|
56
|
+
* Error message explaining why the code could not be generated
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof ReservationAccessCodeResponseResult
|
|
59
|
+
*/
|
|
60
|
+
error?: string | null;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Check if a given object implements the ReservationAccessCodeResponseResult interface.
|
|
67
|
+
*/
|
|
68
|
+
export function instanceOfReservationAccessCodeResponseResult(value: object): value is ReservationAccessCodeResponseResult {
|
|
69
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
70
|
+
return true;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function ReservationAccessCodeResponseResultFromJSON(json: any): ReservationAccessCodeResponseResult {
|
|
74
|
+
return ReservationAccessCodeResponseResultFromJSONTyped(json, false);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function ReservationAccessCodeResponseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReservationAccessCodeResponseResult {
|
|
78
|
+
if (json == null) {
|
|
79
|
+
return json;
|
|
80
|
+
}
|
|
81
|
+
return {
|
|
82
|
+
|
|
83
|
+
'status': ReservationStatusFromJSON(json['status']),
|
|
84
|
+
'code': json['code'] == null ? undefined : json['code'],
|
|
85
|
+
'reservation': json['reservation'] == null ? undefined : ReserveFromJSON(json['reservation']),
|
|
86
|
+
'error': json['error'] == null ? undefined : json['error'],
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export function ReservationAccessCodeResponseResultToJSON(json: any): ReservationAccessCodeResponseResult {
|
|
91
|
+
return ReservationAccessCodeResponseResultToJSONTyped(json, false);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export function ReservationAccessCodeResponseResultToJSONTyped(value?: ReservationAccessCodeResponseResult | null, ignoreDiscriminator: boolean = false): any {
|
|
95
|
+
if (value == null) {
|
|
96
|
+
return value;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
return {
|
|
100
|
+
|
|
101
|
+
'status': ReservationStatusToJSON(value['status']),
|
|
102
|
+
'code': value['code'],
|
|
103
|
+
'reservation': ReserveToJSON(value['reservation']),
|
|
104
|
+
'error': value['error'],
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
|