@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,117 @@
|
|
|
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 { PlayerCategory } from './PlayerCategory';
|
|
17
|
+
import {
|
|
18
|
+
PlayerCategoryFromJSON,
|
|
19
|
+
PlayerCategoryFromJSONTyped,
|
|
20
|
+
PlayerCategoryToJSON,
|
|
21
|
+
PlayerCategoryToJSONTyped,
|
|
22
|
+
} from './PlayerCategory';
|
|
23
|
+
import type { Sport } from './Sport';
|
|
24
|
+
import {
|
|
25
|
+
SportFromJSON,
|
|
26
|
+
SportFromJSONTyped,
|
|
27
|
+
SportToJSON,
|
|
28
|
+
SportToJSONTyped,
|
|
29
|
+
} from './Sport';
|
|
30
|
+
import type { DominantPlaySide } from './DominantPlaySide';
|
|
31
|
+
import {
|
|
32
|
+
DominantPlaySideFromJSON,
|
|
33
|
+
DominantPlaySideFromJSONTyped,
|
|
34
|
+
DominantPlaySideToJSON,
|
|
35
|
+
DominantPlaySideToJSONTyped,
|
|
36
|
+
} from './DominantPlaySide';
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @export
|
|
41
|
+
* @interface UserSportProfileDto
|
|
42
|
+
*/
|
|
43
|
+
export interface UserSportProfileDto {
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {Sport}
|
|
47
|
+
* @memberof UserSportProfileDto
|
|
48
|
+
*/
|
|
49
|
+
sport: Sport;
|
|
50
|
+
/**
|
|
51
|
+
* The user's level in this sport
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof UserSportProfileDto
|
|
54
|
+
*/
|
|
55
|
+
level: string;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {DominantPlaySide}
|
|
59
|
+
* @memberof UserSportProfileDto
|
|
60
|
+
*/
|
|
61
|
+
playSide: DominantPlaySide;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {PlayerCategory}
|
|
65
|
+
* @memberof UserSportProfileDto
|
|
66
|
+
*/
|
|
67
|
+
playerCategory: PlayerCategory;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Check if a given object implements the UserSportProfileDto interface.
|
|
74
|
+
*/
|
|
75
|
+
export function instanceOfUserSportProfileDto(value: object): value is UserSportProfileDto {
|
|
76
|
+
if (!('sport' in value) || value['sport'] === undefined) return false;
|
|
77
|
+
if (!('level' in value) || value['level'] === undefined) return false;
|
|
78
|
+
if (!('playSide' in value) || value['playSide'] === undefined) return false;
|
|
79
|
+
if (!('playerCategory' in value) || value['playerCategory'] === undefined) return false;
|
|
80
|
+
return true;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function UserSportProfileDtoFromJSON(json: any): UserSportProfileDto {
|
|
84
|
+
return UserSportProfileDtoFromJSONTyped(json, false);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function UserSportProfileDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserSportProfileDto {
|
|
88
|
+
if (json == null) {
|
|
89
|
+
return json;
|
|
90
|
+
}
|
|
91
|
+
return {
|
|
92
|
+
|
|
93
|
+
'sport': SportFromJSON(json['sport']),
|
|
94
|
+
'level': json['level'],
|
|
95
|
+
'playSide': DominantPlaySideFromJSON(json['playSide']),
|
|
96
|
+
'playerCategory': PlayerCategoryFromJSON(json['playerCategory']),
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export function UserSportProfileDtoToJSON(json: any): UserSportProfileDto {
|
|
101
|
+
return UserSportProfileDtoToJSONTyped(json, false);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export function UserSportProfileDtoToJSONTyped(value?: UserSportProfileDto | null, ignoreDiscriminator: boolean = false): any {
|
|
105
|
+
if (value == null) {
|
|
106
|
+
return value;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
return {
|
|
110
|
+
|
|
111
|
+
'sport': SportToJSON(value['sport']),
|
|
112
|
+
'level': value['level'],
|
|
113
|
+
'playSide': DominantPlaySideToJSON(value['playSide']),
|
|
114
|
+
'playerCategory': PlayerCategoryToJSON(value['playerCategory']),
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
|
|
@@ -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
|
+
* The type/role of the user
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const UserType = {
|
|
21
|
+
Player: 'PLAYER',
|
|
22
|
+
Coach: 'COACH',
|
|
23
|
+
ClubOwner: 'CLUB_OWNER'
|
|
24
|
+
} as const;
|
|
25
|
+
export type UserType = typeof UserType[keyof typeof UserType];
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
export function instanceOfUserType(value: any): boolean {
|
|
29
|
+
for (const key in UserType) {
|
|
30
|
+
if (Object.prototype.hasOwnProperty.call(UserType, key)) {
|
|
31
|
+
if (UserType[key as keyof typeof UserType] === value) {
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
return false;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export function UserTypeFromJSON(json: any): UserType {
|
|
40
|
+
return UserTypeFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function UserTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserType {
|
|
44
|
+
return json as UserType;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function UserTypeToJSON(value?: UserType | null): any {
|
|
48
|
+
return value as any;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function UserTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): UserType {
|
|
52
|
+
return value as UserType;
|
|
53
|
+
}
|
|
54
|
+
|
|
@@ -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 VerifyPhoneNumber200Response
|
|
20
|
+
*/
|
|
21
|
+
export interface VerifyPhoneNumber200Response {
|
|
22
|
+
/**
|
|
23
|
+
* Whether the verification was successful
|
|
24
|
+
* @type {boolean}
|
|
25
|
+
* @memberof VerifyPhoneNumber200Response
|
|
26
|
+
*/
|
|
27
|
+
verified?: boolean;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the VerifyPhoneNumber200Response interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfVerifyPhoneNumber200Response(value: object): value is VerifyPhoneNumber200Response {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export function VerifyPhoneNumber200ResponseFromJSON(json: any): VerifyPhoneNumber200Response {
|
|
38
|
+
return VerifyPhoneNumber200ResponseFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function VerifyPhoneNumber200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): VerifyPhoneNumber200Response {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
|
|
47
|
+
'verified': json['verified'] == null ? undefined : json['verified'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function VerifyPhoneNumber200ResponseToJSON(json: any): VerifyPhoneNumber200Response {
|
|
52
|
+
return VerifyPhoneNumber200ResponseToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function VerifyPhoneNumber200ResponseToJSONTyped(value?: VerifyPhoneNumber200Response | null, ignoreDiscriminator: boolean = false): any {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'verified': value['verified'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
|
@@ -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 VerifyPhoneNumberRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface VerifyPhoneNumberRequest {
|
|
22
|
+
/**
|
|
23
|
+
* The verification code sent to the user's phone
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof VerifyPhoneNumberRequest
|
|
26
|
+
*/
|
|
27
|
+
code: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the VerifyPhoneNumberRequest interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfVerifyPhoneNumberRequest(value: object): value is VerifyPhoneNumberRequest {
|
|
34
|
+
if (!('code' in value) || value['code'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function VerifyPhoneNumberRequestFromJSON(json: any): VerifyPhoneNumberRequest {
|
|
39
|
+
return VerifyPhoneNumberRequestFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function VerifyPhoneNumberRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): VerifyPhoneNumberRequest {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'code': json['code'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function VerifyPhoneNumberRequestToJSON(json: any): VerifyPhoneNumberRequest {
|
|
53
|
+
return VerifyPhoneNumberRequestToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function VerifyPhoneNumberRequestToJSONTyped(value?: VerifyPhoneNumberRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'code': value['code'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
package/models/index.ts
ADDED
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
export * from './AddMemberToSubscriptionRequest';
|
|
4
|
+
export * from './ApiAdminPlayPricesIdPutRequest';
|
|
5
|
+
export * from './ApiAdminPlayPricesPostRequest';
|
|
6
|
+
export * from './AvailabilityShift';
|
|
7
|
+
export * from './AvailabilityShiftHour';
|
|
8
|
+
export * from './AvailabilityShiftSpot';
|
|
9
|
+
export * from './CancelReservationParams';
|
|
10
|
+
export * from './CancelReservationRequest';
|
|
11
|
+
export * from './CancelReservationResult';
|
|
12
|
+
export * from './ChargeOn';
|
|
13
|
+
export * from './Check200Response';
|
|
14
|
+
export * from './CheckUserExists200Response';
|
|
15
|
+
export * from './ClubDto';
|
|
16
|
+
export * from './ClubSearchParams';
|
|
17
|
+
export * from './ClubSearchParamsGeo';
|
|
18
|
+
export * from './ClubSearchParamsPaging';
|
|
19
|
+
export * from './ClubSearchResponse';
|
|
20
|
+
export * from './ClubSearchResponseDataInner';
|
|
21
|
+
export * from './ClubSearchResponsePagination';
|
|
22
|
+
export * from './Coach';
|
|
23
|
+
export * from './CoachDto';
|
|
24
|
+
export * from './CoachDtoAvailabilityInner';
|
|
25
|
+
export * from './ConfirmReservationParams';
|
|
26
|
+
export * from './ConfirmReservationResponse';
|
|
27
|
+
export * from './ConfirmReservationResponseResult';
|
|
28
|
+
export * from './CreateBasicUserDto';
|
|
29
|
+
export * from './CreateCheckoutPreferenceRequest';
|
|
30
|
+
export * from './CreateCheckoutPreferenceRequestBackUrls';
|
|
31
|
+
export * from './CreateCheckoutPreferenceRequestItemsInner';
|
|
32
|
+
export * from './CreateCustomerPaymentConfigDto';
|
|
33
|
+
export * from './CreateDefault500Response';
|
|
34
|
+
export * from './CreateFromInvite400Response';
|
|
35
|
+
export * from './CreateShiftRequest';
|
|
36
|
+
export * from './CreateUserNotificationDto';
|
|
37
|
+
export * from './Customer';
|
|
38
|
+
export * from './CustomerDocument';
|
|
39
|
+
export * from './CustomerDto';
|
|
40
|
+
export * from './CustomerDtoRefund';
|
|
41
|
+
export * from './CustomerLocationDto';
|
|
42
|
+
export * from './CustomerPaymentConfig';
|
|
43
|
+
export * from './CustomerPaymentConfigDto';
|
|
44
|
+
export * from './CustomerRefund';
|
|
45
|
+
export * from './CustomerStatus';
|
|
46
|
+
export * from './DayOfWeek';
|
|
47
|
+
export * from './DeleteShift200Response';
|
|
48
|
+
export * from './Device';
|
|
49
|
+
export * from './DeviceDto';
|
|
50
|
+
export * from './DeviceState';
|
|
51
|
+
export * from './DeviceType';
|
|
52
|
+
export * from './DominantPlaySide';
|
|
53
|
+
export * from './ErrorResponse';
|
|
54
|
+
export * from './ExpireUnpaidReservationResult';
|
|
55
|
+
export * from './ExpireUnpaidReservations401Response';
|
|
56
|
+
export * from './ExpireUnpaidReservations500Response';
|
|
57
|
+
export * from './Feature';
|
|
58
|
+
export * from './FindOccurrences200Response';
|
|
59
|
+
export * from './Frequency';
|
|
60
|
+
export * from './GenerateCode500Response';
|
|
61
|
+
export * from './GetAllDevices200ResponseInner';
|
|
62
|
+
export * from './GetAllPlaySpots200ResponseInner';
|
|
63
|
+
export * from './GetAllShifts200ResponseInner';
|
|
64
|
+
export * from './GetHourlyReservationStatus200Response';
|
|
65
|
+
export * from './GetHourlyReservationStatus200ResponseHourlyStatusInner';
|
|
66
|
+
export * from './GetMercadoPagoAuthUrl200Response';
|
|
67
|
+
export * from './GetSession401Response';
|
|
68
|
+
export * from './GetSession500Response';
|
|
69
|
+
export * from './HourShiftDetail';
|
|
70
|
+
export * from './InitiateReservationParams';
|
|
71
|
+
export * from './Level';
|
|
72
|
+
export * from './LightControlResponse';
|
|
73
|
+
export * from './Location';
|
|
74
|
+
export * from './LocationDto';
|
|
75
|
+
export * from './ManageLightSwitch200Response';
|
|
76
|
+
export * from './ManageLightSwitch500Response';
|
|
77
|
+
export * from './MatchRequirements';
|
|
78
|
+
export * from './MercadoPagoIPN';
|
|
79
|
+
export * from './NotificationType';
|
|
80
|
+
export * from './Occurrence';
|
|
81
|
+
export * from './PaymentDetail';
|
|
82
|
+
export * from './PaymentMethod';
|
|
83
|
+
export * from './PaymentRefund';
|
|
84
|
+
export * from './PaymentStatus';
|
|
85
|
+
export * from './PaymentTerms';
|
|
86
|
+
export * from './PlayPrice';
|
|
87
|
+
export * from './PlaySpot';
|
|
88
|
+
export * from './PlaySpotAvailabilityDetail';
|
|
89
|
+
export * from './PlaySpotDateSummary';
|
|
90
|
+
export * from './PlaySpotDeviceExecutionState';
|
|
91
|
+
export * from './PlaySpotDto';
|
|
92
|
+
export * from './PlaySpotShift';
|
|
93
|
+
export * from './PlaySpotShortDto';
|
|
94
|
+
export * from './PlaySubscription';
|
|
95
|
+
export * from './PlaySubscriptionCreateDto';
|
|
96
|
+
export * from './PlaySubscriptionParams';
|
|
97
|
+
export * from './PlaySubscriptionType';
|
|
98
|
+
export * from './PlayerCategory';
|
|
99
|
+
export * from './ProcessEmailMessageRequest';
|
|
100
|
+
export * from './ProcessMercadoPagoIPN200Response';
|
|
101
|
+
export * from './ProcessMercadoPagoPaymentParams';
|
|
102
|
+
export * from './ProcessMercadoPagoPaymentResponse';
|
|
103
|
+
export * from './ProcessMercadoPagoPaymentResponseResult';
|
|
104
|
+
export * from './RefundPolicy';
|
|
105
|
+
export * from './RegisterClub400Response';
|
|
106
|
+
export * from './RegisterClub401Response';
|
|
107
|
+
export * from './RegisterClub500Response';
|
|
108
|
+
export * from './RegisterClubParams';
|
|
109
|
+
export * from './RegisterClubResponse';
|
|
110
|
+
export * from './RegisterClubResponseResult';
|
|
111
|
+
export * from './RentHour';
|
|
112
|
+
export * from './ReservationAccessCodeResponse';
|
|
113
|
+
export * from './ReservationAccessCodeResponseResult';
|
|
114
|
+
export * from './ReservationParams';
|
|
115
|
+
export * from './ReservationStatus';
|
|
116
|
+
export * from './Reserve';
|
|
117
|
+
export * from './ReserveDto';
|
|
118
|
+
export * from './ReserveSlotDto';
|
|
119
|
+
export * from './ReserveStatus';
|
|
120
|
+
export * from './ReserveType';
|
|
121
|
+
export * from './SearchClubs400Response';
|
|
122
|
+
export * from './SearchClubs500Response';
|
|
123
|
+
export * from './SetAuthCodeDto';
|
|
124
|
+
export * from './Shift';
|
|
125
|
+
export * from './Sport';
|
|
126
|
+
export * from './SuccessResponse';
|
|
127
|
+
export * from './TimeOfDay';
|
|
128
|
+
export * from './TriggerDeviceAction200Response';
|
|
129
|
+
export * from './TriggerDeviceActionRequest';
|
|
130
|
+
export * from './UpdateReservationAdminRequest';
|
|
131
|
+
export * from './UpdateReserveDto';
|
|
132
|
+
export * from './UpdateUserNotificationDto';
|
|
133
|
+
export * from './User';
|
|
134
|
+
export * from './UserAuth';
|
|
135
|
+
export * from './UserDto';
|
|
136
|
+
export * from './UserNotification';
|
|
137
|
+
export * from './UserNotificationDto';
|
|
138
|
+
export * from './UserRating';
|
|
139
|
+
export * from './UserReserveDto';
|
|
140
|
+
export * from './UserRole';
|
|
141
|
+
export * from './UserSession';
|
|
142
|
+
export * from './UserSessionCustomer';
|
|
143
|
+
export * from './UserSportProfile';
|
|
144
|
+
export * from './UserSportProfileDto';
|
|
145
|
+
export * from './UserType';
|
|
146
|
+
export * from './VerifyPhoneNumber200Response';
|
|
147
|
+
export * from './VerifyPhoneNumberRequest';
|
package/package.json
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@jugarhoy/api",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "TypeScript SDK for Jugar Hoy API",
|
|
5
|
+
"main": "index.ts",
|
|
6
|
+
"types": "index.ts",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"prepublishOnly": "echo 'Publishing @jugarhoy/api SDK...'"
|
|
9
|
+
},
|
|
10
|
+
"files": [
|
|
11
|
+
"index.ts",
|
|
12
|
+
"runtime.ts",
|
|
13
|
+
"apis/**/*",
|
|
14
|
+
"models/**/*"
|
|
15
|
+
],
|
|
16
|
+
"dependencies": {},
|
|
17
|
+
"peerDependencies": {
|
|
18
|
+
"typescript": "^5.0.0"
|
|
19
|
+
},
|
|
20
|
+
"keywords": [
|
|
21
|
+
"jugarhoy",
|
|
22
|
+
"api",
|
|
23
|
+
"sdk",
|
|
24
|
+
"typescript",
|
|
25
|
+
"sports",
|
|
26
|
+
"reservations"
|
|
27
|
+
],
|
|
28
|
+
"author": "Jugar Hoy",
|
|
29
|
+
"license": "MIT",
|
|
30
|
+
"repository": {
|
|
31
|
+
"type": "git",
|
|
32
|
+
"url": "https://github.com/jugarhoy/jugarhoy.git",
|
|
33
|
+
"directory": "sdk/ts"
|
|
34
|
+
}
|
|
35
|
+
}
|