@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,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
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ReserveSlotDto
|
|
20
|
+
*/
|
|
21
|
+
export interface ReserveSlotDto {
|
|
22
|
+
/**
|
|
23
|
+
* Unique identifier of the play spot
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ReserveSlotDto
|
|
26
|
+
*/
|
|
27
|
+
playSpotId?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Start time of the reservation
|
|
30
|
+
* @type {Date}
|
|
31
|
+
* @memberof ReserveSlotDto
|
|
32
|
+
*/
|
|
33
|
+
rentedFrom?: Date;
|
|
34
|
+
/**
|
|
35
|
+
* End time of the reservation
|
|
36
|
+
* @type {Date}
|
|
37
|
+
* @memberof ReserveSlotDto
|
|
38
|
+
*/
|
|
39
|
+
rentedTo?: Date;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the ReserveSlotDto interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfReserveSlotDto(value: object): value is ReserveSlotDto {
|
|
46
|
+
return true;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function ReserveSlotDtoFromJSON(json: any): ReserveSlotDto {
|
|
50
|
+
return ReserveSlotDtoFromJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function ReserveSlotDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReserveSlotDto {
|
|
54
|
+
if (json == null) {
|
|
55
|
+
return json;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
|
|
59
|
+
'playSpotId': json['playSpotId'] == null ? undefined : json['playSpotId'],
|
|
60
|
+
'rentedFrom': json['rentedFrom'] == null ? undefined : (new Date(json['rentedFrom'])),
|
|
61
|
+
'rentedTo': json['rentedTo'] == null ? undefined : (new Date(json['rentedTo'])),
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function ReserveSlotDtoToJSON(json: any): ReserveSlotDto {
|
|
66
|
+
return ReserveSlotDtoToJSONTyped(json, false);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function ReserveSlotDtoToJSONTyped(value?: ReserveSlotDto | null, ignoreDiscriminator: boolean = false): any {
|
|
70
|
+
if (value == null) {
|
|
71
|
+
return value;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'playSpotId': value['playSpotId'],
|
|
77
|
+
'rentedFrom': value['rentedFrom'] == null ? undefined : ((value['rentedFrom']).toISOString()),
|
|
78
|
+
'rentedTo': value['rentedTo'] == null ? undefined : ((value['rentedTo']).toISOString()),
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Jugar Hoy - API
|
|
5
|
+
* API documentation for Jugar Hoy application
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.5.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Represents the current status of a reservation
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const ReserveStatus = {
|
|
21
|
+
Pending: 'PENDING',
|
|
22
|
+
PendingPayment: 'PENDING_PAYMENT',
|
|
23
|
+
PendingApproval: 'PENDING_APPROVAL',
|
|
24
|
+
Confirmed: 'CONFIRMED',
|
|
25
|
+
Cancelled: 'CANCELLED',
|
|
26
|
+
Refunded: 'REFUNDED'
|
|
27
|
+
} as const;
|
|
28
|
+
export type ReserveStatus = typeof ReserveStatus[keyof typeof ReserveStatus];
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
export function instanceOfReserveStatus(value: any): boolean {
|
|
32
|
+
for (const key in ReserveStatus) {
|
|
33
|
+
if (Object.prototype.hasOwnProperty.call(ReserveStatus, key)) {
|
|
34
|
+
if (ReserveStatus[key as keyof typeof ReserveStatus] === value) {
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
return false;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function ReserveStatusFromJSON(json: any): ReserveStatus {
|
|
43
|
+
return ReserveStatusFromJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function ReserveStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReserveStatus {
|
|
47
|
+
return json as ReserveStatus;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function ReserveStatusToJSON(value?: ReserveStatus | null): any {
|
|
51
|
+
return value as any;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function ReserveStatusToJSONTyped(value: any, ignoreDiscriminator: boolean): ReserveStatus {
|
|
55
|
+
return value as ReserveStatus;
|
|
56
|
+
}
|
|
57
|
+
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Jugar Hoy - API
|
|
5
|
+
* API documentation for Jugar Hoy application
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.5.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Represents the type of a reservation
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const ReserveType = {
|
|
21
|
+
Play: 'PLAY',
|
|
22
|
+
Coach: 'COACH',
|
|
23
|
+
Tournament: 'TOURNAMENT',
|
|
24
|
+
Training: 'TRAINING',
|
|
25
|
+
Birthday: 'BIRTHDAY',
|
|
26
|
+
Event: 'EVENT',
|
|
27
|
+
Other: 'OTHER'
|
|
28
|
+
} as const;
|
|
29
|
+
export type ReserveType = typeof ReserveType[keyof typeof ReserveType];
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
export function instanceOfReserveType(value: any): boolean {
|
|
33
|
+
for (const key in ReserveType) {
|
|
34
|
+
if (Object.prototype.hasOwnProperty.call(ReserveType, key)) {
|
|
35
|
+
if (ReserveType[key as keyof typeof ReserveType] === value) {
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
return false;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function ReserveTypeFromJSON(json: any): ReserveType {
|
|
44
|
+
return ReserveTypeFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function ReserveTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReserveType {
|
|
48
|
+
return json as ReserveType;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function ReserveTypeToJSON(value?: ReserveType | null): any {
|
|
52
|
+
return value as any;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function ReserveTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): ReserveType {
|
|
56
|
+
return value as ReserveType;
|
|
57
|
+
}
|
|
58
|
+
|
|
@@ -0,0 +1,65 @@
|
|
|
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 SearchClubs400Response
|
|
20
|
+
*/
|
|
21
|
+
export interface SearchClubs400Response {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof SearchClubs400Response
|
|
26
|
+
*/
|
|
27
|
+
error?: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the SearchClubs400Response interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfSearchClubs400Response(value: object): value is SearchClubs400Response {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export function SearchClubs400ResponseFromJSON(json: any): SearchClubs400Response {
|
|
38
|
+
return SearchClubs400ResponseFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function SearchClubs400ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchClubs400Response {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
|
|
47
|
+
'error': json['error'] == null ? undefined : json['error'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function SearchClubs400ResponseToJSON(json: any): SearchClubs400Response {
|
|
52
|
+
return SearchClubs400ResponseToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function SearchClubs400ResponseToJSONTyped(value?: SearchClubs400Response | null, ignoreDiscriminator: boolean = false): any {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'error': value['error'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
|
@@ -0,0 +1,65 @@
|
|
|
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 SearchClubs500Response
|
|
20
|
+
*/
|
|
21
|
+
export interface SearchClubs500Response {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof SearchClubs500Response
|
|
26
|
+
*/
|
|
27
|
+
error?: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the SearchClubs500Response interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfSearchClubs500Response(value: object): value is SearchClubs500Response {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export function SearchClubs500ResponseFromJSON(json: any): SearchClubs500Response {
|
|
38
|
+
return SearchClubs500ResponseFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function SearchClubs500ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchClubs500Response {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
|
|
47
|
+
'error': json['error'] == null ? undefined : json['error'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function SearchClubs500ResponseToJSON(json: any): SearchClubs500Response {
|
|
52
|
+
return SearchClubs500ResponseToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function SearchClubs500ResponseToJSONTyped(value?: SearchClubs500Response | null, ignoreDiscriminator: boolean = false): any {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'error': value['error'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
|
@@ -0,0 +1,85 @@
|
|
|
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 { PaymentMethod } from './PaymentMethod';
|
|
17
|
+
import {
|
|
18
|
+
PaymentMethodFromJSON,
|
|
19
|
+
PaymentMethodFromJSONTyped,
|
|
20
|
+
PaymentMethodToJSON,
|
|
21
|
+
PaymentMethodToJSONTyped,
|
|
22
|
+
} from './PaymentMethod';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface SetAuthCodeDto
|
|
28
|
+
*/
|
|
29
|
+
export interface SetAuthCodeDto {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {PaymentMethod}
|
|
33
|
+
* @memberof SetAuthCodeDto
|
|
34
|
+
*/
|
|
35
|
+
paymentMethod: PaymentMethod;
|
|
36
|
+
/**
|
|
37
|
+
* Authorization code from OAuth flow (e.g., MercadoPago). Will be exchanged for access_token, refresh_token, and provider_id.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof SetAuthCodeDto
|
|
40
|
+
*/
|
|
41
|
+
authCode: string;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Check if a given object implements the SetAuthCodeDto interface.
|
|
48
|
+
*/
|
|
49
|
+
export function instanceOfSetAuthCodeDto(value: object): value is SetAuthCodeDto {
|
|
50
|
+
if (!('paymentMethod' in value) || value['paymentMethod'] === undefined) return false;
|
|
51
|
+
if (!('authCode' in value) || value['authCode'] === undefined) return false;
|
|
52
|
+
return true;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function SetAuthCodeDtoFromJSON(json: any): SetAuthCodeDto {
|
|
56
|
+
return SetAuthCodeDtoFromJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function SetAuthCodeDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SetAuthCodeDto {
|
|
60
|
+
if (json == null) {
|
|
61
|
+
return json;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
|
|
65
|
+
'paymentMethod': PaymentMethodFromJSON(json['paymentMethod']),
|
|
66
|
+
'authCode': json['authCode'],
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function SetAuthCodeDtoToJSON(json: any): SetAuthCodeDto {
|
|
71
|
+
return SetAuthCodeDtoToJSONTyped(json, false);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function SetAuthCodeDtoToJSONTyped(value?: SetAuthCodeDto | null, ignoreDiscriminator: boolean = false): any {
|
|
75
|
+
if (value == null) {
|
|
76
|
+
return value;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
return {
|
|
80
|
+
|
|
81
|
+
'paymentMethod': PaymentMethodToJSON(value['paymentMethod']),
|
|
82
|
+
'authCode': value['authCode'],
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
|
package/models/Shift.ts
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
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 Shift
|
|
20
|
+
*/
|
|
21
|
+
export interface Shift {
|
|
22
|
+
/**
|
|
23
|
+
* Days of the week when the shift is available
|
|
24
|
+
* @type {Array<string>}
|
|
25
|
+
* @memberof Shift
|
|
26
|
+
*/
|
|
27
|
+
days: Array<string>;
|
|
28
|
+
/**
|
|
29
|
+
* Start time of the shift in HH:MM format (e.g., "09:15", "14:30")
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof Shift
|
|
32
|
+
*/
|
|
33
|
+
fromHour: string;
|
|
34
|
+
/**
|
|
35
|
+
* End time of the shift in HH:MM format (e.g., "09:15", "14:30")
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof Shift
|
|
38
|
+
*/
|
|
39
|
+
toHour: string;
|
|
40
|
+
/**
|
|
41
|
+
* Allowed booking durations in hours for this shift
|
|
42
|
+
* @type {Array<number>}
|
|
43
|
+
* @memberof Shift
|
|
44
|
+
*/
|
|
45
|
+
durations: Array<number>;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the Shift interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfShift(value: object): value is Shift {
|
|
52
|
+
if (!('days' in value) || value['days'] === undefined) return false;
|
|
53
|
+
if (!('fromHour' in value) || value['fromHour'] === undefined) return false;
|
|
54
|
+
if (!('toHour' in value) || value['toHour'] === undefined) return false;
|
|
55
|
+
if (!('durations' in value) || value['durations'] === undefined) return false;
|
|
56
|
+
return true;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function ShiftFromJSON(json: any): Shift {
|
|
60
|
+
return ShiftFromJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function ShiftFromJSONTyped(json: any, ignoreDiscriminator: boolean): Shift {
|
|
64
|
+
if (json == null) {
|
|
65
|
+
return json;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'days': json['days'],
|
|
70
|
+
'fromHour': json['fromHour'],
|
|
71
|
+
'toHour': json['toHour'],
|
|
72
|
+
'durations': json['durations'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function ShiftToJSON(json: any): Shift {
|
|
77
|
+
return ShiftToJSONTyped(json, false);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function ShiftToJSONTyped(value?: Shift | null, ignoreDiscriminator: boolean = false): any {
|
|
81
|
+
if (value == null) {
|
|
82
|
+
return value;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
return {
|
|
86
|
+
|
|
87
|
+
'days': value['days'],
|
|
88
|
+
'fromHour': value['fromHour'],
|
|
89
|
+
'toHour': value['toHour'],
|
|
90
|
+
'durations': value['durations'],
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
|
package/models/Sport.ts
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Jugar Hoy - API
|
|
5
|
+
* API documentation for Jugar Hoy application
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.5.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Available sports in the system
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const Sport = {
|
|
21
|
+
Tennis: 'TENNIS',
|
|
22
|
+
TableTennis: 'TABLE_TENNIS',
|
|
23
|
+
Paddle: 'PADDLE',
|
|
24
|
+
Football: 'FOOTBALL',
|
|
25
|
+
Soccer: 'SOCCER',
|
|
26
|
+
Squash: 'SQUASH',
|
|
27
|
+
Basketball: 'BASKETBALL',
|
|
28
|
+
Volleyball: 'VOLLEYBALL',
|
|
29
|
+
Badminton: 'BADMINTON',
|
|
30
|
+
Other: 'OTHER'
|
|
31
|
+
} as const;
|
|
32
|
+
export type Sport = typeof Sport[keyof typeof Sport];
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
export function instanceOfSport(value: any): boolean {
|
|
36
|
+
for (const key in Sport) {
|
|
37
|
+
if (Object.prototype.hasOwnProperty.call(Sport, key)) {
|
|
38
|
+
if (Sport[key as keyof typeof Sport] === value) {
|
|
39
|
+
return true;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
return false;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function SportFromJSON(json: any): Sport {
|
|
47
|
+
return SportFromJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function SportFromJSONTyped(json: any, ignoreDiscriminator: boolean): Sport {
|
|
51
|
+
return json as Sport;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function SportToJSON(value?: Sport | null): any {
|
|
55
|
+
return value as any;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function SportToJSONTyped(value: any, ignoreDiscriminator: boolean): Sport {
|
|
59
|
+
return value as Sport;
|
|
60
|
+
}
|
|
61
|
+
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Jugar Hoy - API
|
|
5
|
+
* API documentation for Jugar Hoy application
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.5.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface SuccessResponse
|
|
20
|
+
*/
|
|
21
|
+
export interface SuccessResponse {
|
|
22
|
+
/**
|
|
23
|
+
* Indicates if the operation was successful
|
|
24
|
+
* @type {boolean}
|
|
25
|
+
* @memberof SuccessResponse
|
|
26
|
+
*/
|
|
27
|
+
success: boolean;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the SuccessResponse interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfSuccessResponse(value: object): value is SuccessResponse {
|
|
34
|
+
if (!('success' in value) || value['success'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function SuccessResponseFromJSON(json: any): SuccessResponse {
|
|
39
|
+
return SuccessResponseFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function SuccessResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SuccessResponse {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'success': json['success'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function SuccessResponseToJSON(json: any): SuccessResponse {
|
|
53
|
+
return SuccessResponseToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function SuccessResponseToJSONTyped(value?: SuccessResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'success': value['success'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
@@ -0,0 +1,54 @@
|
|
|
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
|
+
* Time periods of the day
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const TimeOfDay = {
|
|
21
|
+
Morning: 'MORNING',
|
|
22
|
+
Afternoon: 'AFTERNOON',
|
|
23
|
+
Evening: 'EVENING'
|
|
24
|
+
} as const;
|
|
25
|
+
export type TimeOfDay = typeof TimeOfDay[keyof typeof TimeOfDay];
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
export function instanceOfTimeOfDay(value: any): boolean {
|
|
29
|
+
for (const key in TimeOfDay) {
|
|
30
|
+
if (Object.prototype.hasOwnProperty.call(TimeOfDay, key)) {
|
|
31
|
+
if (TimeOfDay[key as keyof typeof TimeOfDay] === value) {
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
return false;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export function TimeOfDayFromJSON(json: any): TimeOfDay {
|
|
40
|
+
return TimeOfDayFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function TimeOfDayFromJSONTyped(json: any, ignoreDiscriminator: boolean): TimeOfDay {
|
|
44
|
+
return json as TimeOfDay;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function TimeOfDayToJSON(value?: TimeOfDay | null): any {
|
|
48
|
+
return value as any;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function TimeOfDayToJSONTyped(value: any, ignoreDiscriminator: boolean): TimeOfDay {
|
|
52
|
+
return value as TimeOfDay;
|
|
53
|
+
}
|
|
54
|
+
|