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