@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,204 @@
|
|
|
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 LocationDto
|
|
28
|
+
*/
|
|
29
|
+
export interface LocationDto {
|
|
30
|
+
/**
|
|
31
|
+
* Display name of the location
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof LocationDto
|
|
34
|
+
*/
|
|
35
|
+
name: string;
|
|
36
|
+
/**
|
|
37
|
+
* Code of the location
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof LocationDto
|
|
40
|
+
*/
|
|
41
|
+
code: string;
|
|
42
|
+
/**
|
|
43
|
+
* Customer ID of the location
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof LocationDto
|
|
46
|
+
*/
|
|
47
|
+
customerId: string;
|
|
48
|
+
/**
|
|
49
|
+
* Description of the location
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof LocationDto
|
|
52
|
+
*/
|
|
53
|
+
description?: string;
|
|
54
|
+
/**
|
|
55
|
+
* Types of sports available at the location
|
|
56
|
+
* @type {Array<Sport>}
|
|
57
|
+
* @memberof LocationDto
|
|
58
|
+
*/
|
|
59
|
+
sports?: Array<Sport>;
|
|
60
|
+
/**
|
|
61
|
+
* Address of the location
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof LocationDto
|
|
64
|
+
*/
|
|
65
|
+
address?: string;
|
|
66
|
+
/**
|
|
67
|
+
* URL of the map of the location
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof LocationDto
|
|
70
|
+
*/
|
|
71
|
+
addressUrl?: string;
|
|
72
|
+
/**
|
|
73
|
+
* Latitude of the location
|
|
74
|
+
* @type {number}
|
|
75
|
+
* @memberof LocationDto
|
|
76
|
+
*/
|
|
77
|
+
latitude?: number | null;
|
|
78
|
+
/**
|
|
79
|
+
* Longitude of the location
|
|
80
|
+
* @type {number}
|
|
81
|
+
* @memberof LocationDto
|
|
82
|
+
*/
|
|
83
|
+
longitude?: number | null;
|
|
84
|
+
/**
|
|
85
|
+
* Phone number of the location
|
|
86
|
+
* @type {string}
|
|
87
|
+
* @memberof LocationDto
|
|
88
|
+
*/
|
|
89
|
+
phone?: string;
|
|
90
|
+
/**
|
|
91
|
+
* Email of the location
|
|
92
|
+
* @type {string}
|
|
93
|
+
* @memberof LocationDto
|
|
94
|
+
*/
|
|
95
|
+
email?: string;
|
|
96
|
+
/**
|
|
97
|
+
* Website of the location
|
|
98
|
+
* @type {string}
|
|
99
|
+
* @memberof LocationDto
|
|
100
|
+
*/
|
|
101
|
+
website?: string;
|
|
102
|
+
/**
|
|
103
|
+
* Instagram handle of the location
|
|
104
|
+
* @type {string}
|
|
105
|
+
* @memberof LocationDto
|
|
106
|
+
*/
|
|
107
|
+
instagramHandle?: string;
|
|
108
|
+
/**
|
|
109
|
+
* Facebook handle of the location
|
|
110
|
+
* @type {string}
|
|
111
|
+
* @memberof LocationDto
|
|
112
|
+
*/
|
|
113
|
+
facebookHandle?: string | null;
|
|
114
|
+
/**
|
|
115
|
+
* Twitter handle of the location
|
|
116
|
+
* @type {string}
|
|
117
|
+
* @memberof LocationDto
|
|
118
|
+
*/
|
|
119
|
+
twitterHandle?: string | null;
|
|
120
|
+
/**
|
|
121
|
+
* Youtube handle of the location
|
|
122
|
+
* @type {string}
|
|
123
|
+
* @memberof LocationDto
|
|
124
|
+
*/
|
|
125
|
+
youtubeHandle?: string | null;
|
|
126
|
+
/**
|
|
127
|
+
* Whether this is the default location for the customer. If true, any existing default location will be unset.
|
|
128
|
+
* @type {boolean}
|
|
129
|
+
* @memberof LocationDto
|
|
130
|
+
*/
|
|
131
|
+
isDefault?: boolean;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* Check if a given object implements the LocationDto interface.
|
|
136
|
+
*/
|
|
137
|
+
export function instanceOfLocationDto(value: object): value is LocationDto {
|
|
138
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
139
|
+
if (!('code' in value) || value['code'] === undefined) return false;
|
|
140
|
+
if (!('customerId' in value) || value['customerId'] === undefined) return false;
|
|
141
|
+
return true;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
export function LocationDtoFromJSON(json: any): LocationDto {
|
|
145
|
+
return LocationDtoFromJSONTyped(json, false);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
export function LocationDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): LocationDto {
|
|
149
|
+
if (json == null) {
|
|
150
|
+
return json;
|
|
151
|
+
}
|
|
152
|
+
return {
|
|
153
|
+
|
|
154
|
+
'name': json['name'],
|
|
155
|
+
'code': json['code'],
|
|
156
|
+
'customerId': json['customerId'],
|
|
157
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
158
|
+
'sports': json['sports'] == null ? undefined : ((json['sports'] as Array<any>).map(SportFromJSON)),
|
|
159
|
+
'address': json['address'] == null ? undefined : json['address'],
|
|
160
|
+
'addressUrl': json['addressUrl'] == null ? undefined : json['addressUrl'],
|
|
161
|
+
'latitude': json['latitude'] == null ? undefined : json['latitude'],
|
|
162
|
+
'longitude': json['longitude'] == null ? undefined : json['longitude'],
|
|
163
|
+
'phone': json['phone'] == null ? undefined : json['phone'],
|
|
164
|
+
'email': json['email'] == null ? undefined : json['email'],
|
|
165
|
+
'website': json['website'] == null ? undefined : json['website'],
|
|
166
|
+
'instagramHandle': json['instagramHandle'] == null ? undefined : json['instagramHandle'],
|
|
167
|
+
'facebookHandle': json['facebookHandle'] == null ? undefined : json['facebookHandle'],
|
|
168
|
+
'twitterHandle': json['twitterHandle'] == null ? undefined : json['twitterHandle'],
|
|
169
|
+
'youtubeHandle': json['youtubeHandle'] == null ? undefined : json['youtubeHandle'],
|
|
170
|
+
'isDefault': json['isDefault'] == null ? undefined : json['isDefault'],
|
|
171
|
+
};
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
export function LocationDtoToJSON(json: any): LocationDto {
|
|
175
|
+
return LocationDtoToJSONTyped(json, false);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
export function LocationDtoToJSONTyped(value?: LocationDto | null, ignoreDiscriminator: boolean = false): any {
|
|
179
|
+
if (value == null) {
|
|
180
|
+
return value;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
return {
|
|
184
|
+
|
|
185
|
+
'name': value['name'],
|
|
186
|
+
'code': value['code'],
|
|
187
|
+
'customerId': value['customerId'],
|
|
188
|
+
'description': value['description'],
|
|
189
|
+
'sports': value['sports'] == null ? undefined : ((value['sports'] as Array<any>).map(SportToJSON)),
|
|
190
|
+
'address': value['address'],
|
|
191
|
+
'addressUrl': value['addressUrl'],
|
|
192
|
+
'latitude': value['latitude'],
|
|
193
|
+
'longitude': value['longitude'],
|
|
194
|
+
'phone': value['phone'],
|
|
195
|
+
'email': value['email'],
|
|
196
|
+
'website': value['website'],
|
|
197
|
+
'instagramHandle': value['instagramHandle'],
|
|
198
|
+
'facebookHandle': value['facebookHandle'],
|
|
199
|
+
'twitterHandle': value['twitterHandle'],
|
|
200
|
+
'youtubeHandle': value['youtubeHandle'],
|
|
201
|
+
'isDefault': value['isDefault'],
|
|
202
|
+
};
|
|
203
|
+
}
|
|
204
|
+
|
|
@@ -0,0 +1,81 @@
|
|
|
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 { DeviceState } from './DeviceState';
|
|
17
|
+
import {
|
|
18
|
+
DeviceStateFromJSON,
|
|
19
|
+
DeviceStateFromJSONTyped,
|
|
20
|
+
DeviceStateToJSON,
|
|
21
|
+
DeviceStateToJSONTyped,
|
|
22
|
+
} from './DeviceState';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ManageLightSwitch200Response
|
|
28
|
+
*/
|
|
29
|
+
export interface ManageLightSwitch200Response {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof ManageLightSwitch200Response
|
|
34
|
+
*/
|
|
35
|
+
success?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {DeviceState}
|
|
39
|
+
* @memberof ManageLightSwitch200Response
|
|
40
|
+
*/
|
|
41
|
+
lightState?: DeviceState;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the ManageLightSwitch200Response interface.
|
|
46
|
+
*/
|
|
47
|
+
export function instanceOfManageLightSwitch200Response(value: object): value is ManageLightSwitch200Response {
|
|
48
|
+
return true;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function ManageLightSwitch200ResponseFromJSON(json: any): ManageLightSwitch200Response {
|
|
52
|
+
return ManageLightSwitch200ResponseFromJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function ManageLightSwitch200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ManageLightSwitch200Response {
|
|
56
|
+
if (json == null) {
|
|
57
|
+
return json;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
|
|
61
|
+
'success': json['success'] == null ? undefined : json['success'],
|
|
62
|
+
'lightState': json['light_state'] == null ? undefined : DeviceStateFromJSON(json['light_state']),
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function ManageLightSwitch200ResponseToJSON(json: any): ManageLightSwitch200Response {
|
|
67
|
+
return ManageLightSwitch200ResponseToJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function ManageLightSwitch200ResponseToJSONTyped(value?: ManageLightSwitch200Response | null, ignoreDiscriminator: boolean = false): any {
|
|
71
|
+
if (value == null) {
|
|
72
|
+
return value;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
return {
|
|
76
|
+
|
|
77
|
+
'success': value['success'],
|
|
78
|
+
'light_state': DeviceStateToJSON(value['lightState']),
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|
|
@@ -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 ManageLightSwitch500Response
|
|
20
|
+
*/
|
|
21
|
+
export interface ManageLightSwitch500Response {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {boolean}
|
|
25
|
+
* @memberof ManageLightSwitch500Response
|
|
26
|
+
*/
|
|
27
|
+
success?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ManageLightSwitch500Response
|
|
32
|
+
*/
|
|
33
|
+
error?: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the ManageLightSwitch500Response interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfManageLightSwitch500Response(value: object): value is ManageLightSwitch500Response {
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function ManageLightSwitch500ResponseFromJSON(json: any): ManageLightSwitch500Response {
|
|
44
|
+
return ManageLightSwitch500ResponseFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function ManageLightSwitch500ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ManageLightSwitch500Response {
|
|
48
|
+
if (json == null) {
|
|
49
|
+
return json;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
|
|
53
|
+
'success': json['success'] == null ? undefined : json['success'],
|
|
54
|
+
'error': json['error'] == null ? undefined : json['error'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function ManageLightSwitch500ResponseToJSON(json: any): ManageLightSwitch500Response {
|
|
59
|
+
return ManageLightSwitch500ResponseToJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function ManageLightSwitch500ResponseToJSONTyped(value?: ManageLightSwitch500Response | null, ignoreDiscriminator: boolean = false): any {
|
|
63
|
+
if (value == null) {
|
|
64
|
+
return value;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'success': value['success'],
|
|
70
|
+
'error': value['error'],
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -0,0 +1,100 @@
|
|
|
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
|
+
* Requirements for matching play spots
|
|
18
|
+
* @export
|
|
19
|
+
* @interface MatchRequirements
|
|
20
|
+
*/
|
|
21
|
+
export interface MatchRequirements {
|
|
22
|
+
/**
|
|
23
|
+
* Features that must match for the subscription
|
|
24
|
+
* @type {Array<string>}
|
|
25
|
+
* @memberof MatchRequirements
|
|
26
|
+
*/
|
|
27
|
+
features: Array<string>;
|
|
28
|
+
/**
|
|
29
|
+
* IDs of play spots that match the requirements
|
|
30
|
+
* @type {Array<string>}
|
|
31
|
+
* @memberof MatchRequirements
|
|
32
|
+
*/
|
|
33
|
+
playSpotIds: Array<string>;
|
|
34
|
+
/**
|
|
35
|
+
* ID of the coach for the match requirements (optional)
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof MatchRequirements
|
|
38
|
+
*/
|
|
39
|
+
coachId?: string | null;
|
|
40
|
+
/**
|
|
41
|
+
* IDs of locations that match the requirements
|
|
42
|
+
* @type {Array<string>}
|
|
43
|
+
* @memberof MatchRequirements
|
|
44
|
+
*/
|
|
45
|
+
locationIds: Array<string>;
|
|
46
|
+
/**
|
|
47
|
+
* Minimum number of players required for the match
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof MatchRequirements
|
|
50
|
+
*/
|
|
51
|
+
minPlayers?: number | null;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Check if a given object implements the MatchRequirements interface.
|
|
56
|
+
*/
|
|
57
|
+
export function instanceOfMatchRequirements(value: object): value is MatchRequirements {
|
|
58
|
+
if (!('features' in value) || value['features'] === undefined) return false;
|
|
59
|
+
if (!('playSpotIds' in value) || value['playSpotIds'] === undefined) return false;
|
|
60
|
+
if (!('locationIds' in value) || value['locationIds'] === undefined) return false;
|
|
61
|
+
return true;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function MatchRequirementsFromJSON(json: any): MatchRequirements {
|
|
65
|
+
return MatchRequirementsFromJSONTyped(json, false);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function MatchRequirementsFromJSONTyped(json: any, ignoreDiscriminator: boolean): MatchRequirements {
|
|
69
|
+
if (json == null) {
|
|
70
|
+
return json;
|
|
71
|
+
}
|
|
72
|
+
return {
|
|
73
|
+
|
|
74
|
+
'features': json['features'],
|
|
75
|
+
'playSpotIds': json['playSpotIds'],
|
|
76
|
+
'coachId': json['coachId'] == null ? undefined : json['coachId'],
|
|
77
|
+
'locationIds': json['locationIds'],
|
|
78
|
+
'minPlayers': json['minPlayers'] == null ? undefined : json['minPlayers'],
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export function MatchRequirementsToJSON(json: any): MatchRequirements {
|
|
83
|
+
return MatchRequirementsToJSONTyped(json, false);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export function MatchRequirementsToJSONTyped(value?: MatchRequirements | null, ignoreDiscriminator: boolean = false): any {
|
|
87
|
+
if (value == null) {
|
|
88
|
+
return value;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
return {
|
|
92
|
+
|
|
93
|
+
'features': value['features'],
|
|
94
|
+
'playSpotIds': value['playSpotIds'],
|
|
95
|
+
'coachId': value['coachId'],
|
|
96
|
+
'locationIds': value['locationIds'],
|
|
97
|
+
'minPlayers': value['minPlayers'],
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
|
|
@@ -0,0 +1,135 @@
|
|
|
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 MercadoPagoIPN
|
|
20
|
+
*/
|
|
21
|
+
export interface MercadoPagoIPN {
|
|
22
|
+
/**
|
|
23
|
+
* Unique identifier for the IPN record
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof MercadoPagoIPN
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
* MercadoPago payment ID from the IPN data
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof MercadoPagoIPN
|
|
32
|
+
*/
|
|
33
|
+
paymentId: string;
|
|
34
|
+
/**
|
|
35
|
+
* IPN action type (e.g., payment.created, payment.updated)
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof MercadoPagoIPN
|
|
38
|
+
*/
|
|
39
|
+
action: string;
|
|
40
|
+
/**
|
|
41
|
+
* Complete IPN payload received from MercadoPago
|
|
42
|
+
* @type {object}
|
|
43
|
+
* @memberof MercadoPagoIPN
|
|
44
|
+
*/
|
|
45
|
+
payload: object;
|
|
46
|
+
/**
|
|
47
|
+
* Whether this IPN has been processed
|
|
48
|
+
* @type {boolean}
|
|
49
|
+
* @memberof MercadoPagoIPN
|
|
50
|
+
*/
|
|
51
|
+
processed?: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* Timestamp when the IPN was processed
|
|
54
|
+
* @type {Date}
|
|
55
|
+
* @memberof MercadoPagoIPN
|
|
56
|
+
*/
|
|
57
|
+
processedAt?: Date;
|
|
58
|
+
/**
|
|
59
|
+
* Error message if processing failed
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof MercadoPagoIPN
|
|
62
|
+
*/
|
|
63
|
+
error?: string;
|
|
64
|
+
/**
|
|
65
|
+
* When the IPN was received
|
|
66
|
+
* @type {Date}
|
|
67
|
+
* @memberof MercadoPagoIPN
|
|
68
|
+
*/
|
|
69
|
+
createdAt: Date;
|
|
70
|
+
/**
|
|
71
|
+
* When the IPN record was last updated
|
|
72
|
+
* @type {Date}
|
|
73
|
+
* @memberof MercadoPagoIPN
|
|
74
|
+
*/
|
|
75
|
+
updatedAt: Date;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Check if a given object implements the MercadoPagoIPN interface.
|
|
80
|
+
*/
|
|
81
|
+
export function instanceOfMercadoPagoIPN(value: object): value is MercadoPagoIPN {
|
|
82
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
83
|
+
if (!('paymentId' in value) || value['paymentId'] === undefined) return false;
|
|
84
|
+
if (!('action' in value) || value['action'] === undefined) return false;
|
|
85
|
+
if (!('payload' in value) || value['payload'] === undefined) return false;
|
|
86
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
87
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
|
|
88
|
+
return true;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export function MercadoPagoIPNFromJSON(json: any): MercadoPagoIPN {
|
|
92
|
+
return MercadoPagoIPNFromJSONTyped(json, false);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export function MercadoPagoIPNFromJSONTyped(json: any, ignoreDiscriminator: boolean): MercadoPagoIPN {
|
|
96
|
+
if (json == null) {
|
|
97
|
+
return json;
|
|
98
|
+
}
|
|
99
|
+
return {
|
|
100
|
+
|
|
101
|
+
'id': json['id'],
|
|
102
|
+
'paymentId': json['paymentId'],
|
|
103
|
+
'action': json['action'],
|
|
104
|
+
'payload': json['payload'],
|
|
105
|
+
'processed': json['processed'] == null ? undefined : json['processed'],
|
|
106
|
+
'processedAt': json['processedAt'] == null ? undefined : (new Date(json['processedAt'])),
|
|
107
|
+
'error': json['error'] == null ? undefined : json['error'],
|
|
108
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
109
|
+
'updatedAt': (new Date(json['updatedAt'])),
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export function MercadoPagoIPNToJSON(json: any): MercadoPagoIPN {
|
|
114
|
+
return MercadoPagoIPNToJSONTyped(json, false);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
export function MercadoPagoIPNToJSONTyped(value?: MercadoPagoIPN | null, ignoreDiscriminator: boolean = false): any {
|
|
118
|
+
if (value == null) {
|
|
119
|
+
return value;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
return {
|
|
123
|
+
|
|
124
|
+
'id': value['id'],
|
|
125
|
+
'paymentId': value['paymentId'],
|
|
126
|
+
'action': value['action'],
|
|
127
|
+
'payload': value['payload'],
|
|
128
|
+
'processed': value['processed'],
|
|
129
|
+
'processedAt': value['processedAt'] == null ? undefined : ((value['processedAt']).toISOString()),
|
|
130
|
+
'error': value['error'],
|
|
131
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
132
|
+
'updatedAt': ((value['updatedAt']).toISOString()),
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
|
|
@@ -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 notifications that can be enabled/disabled
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const NotificationType = {
|
|
21
|
+
Whatsapp: 'WHATSAPP',
|
|
22
|
+
PushWeb: 'PUSH_WEB',
|
|
23
|
+
PushNative: 'PUSH_NATIVE',
|
|
24
|
+
Email: 'EMAIL'
|
|
25
|
+
} as const;
|
|
26
|
+
export type NotificationType = typeof NotificationType[keyof typeof NotificationType];
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
export function instanceOfNotificationType(value: any): boolean {
|
|
30
|
+
for (const key in NotificationType) {
|
|
31
|
+
if (Object.prototype.hasOwnProperty.call(NotificationType, key)) {
|
|
32
|
+
if (NotificationType[key as keyof typeof NotificationType] === value) {
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
return false;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export function NotificationTypeFromJSON(json: any): NotificationType {
|
|
41
|
+
return NotificationTypeFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export function NotificationTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotificationType {
|
|
45
|
+
return json as NotificationType;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export function NotificationTypeToJSON(value?: NotificationType | null): any {
|
|
49
|
+
return value as any;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function NotificationTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): NotificationType {
|
|
53
|
+
return value as NotificationType;
|
|
54
|
+
}
|
|
55
|
+
|