@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,165 @@
|
|
|
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 { DayOfWeek } from './DayOfWeek';
|
|
17
|
+
import {
|
|
18
|
+
DayOfWeekFromJSON,
|
|
19
|
+
DayOfWeekFromJSONTyped,
|
|
20
|
+
DayOfWeekToJSON,
|
|
21
|
+
DayOfWeekToJSONTyped,
|
|
22
|
+
} from './DayOfWeek';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface PlayPrice
|
|
28
|
+
*/
|
|
29
|
+
export interface PlayPrice {
|
|
30
|
+
/**
|
|
31
|
+
* Unique identifier for the play price
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof PlayPrice
|
|
34
|
+
*/
|
|
35
|
+
id: string;
|
|
36
|
+
/**
|
|
37
|
+
* ID of the customer this price applies to
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof PlayPrice
|
|
40
|
+
*/
|
|
41
|
+
customerId?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Name of the play price
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof PlayPrice
|
|
46
|
+
*/
|
|
47
|
+
name: string;
|
|
48
|
+
/**
|
|
49
|
+
* Duration in minutes
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof PlayPrice
|
|
52
|
+
*/
|
|
53
|
+
duration: number;
|
|
54
|
+
/**
|
|
55
|
+
* Price amount
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof PlayPrice
|
|
58
|
+
*/
|
|
59
|
+
price: number;
|
|
60
|
+
/**
|
|
61
|
+
* Days of the week this price applies to
|
|
62
|
+
* @type {Array<DayOfWeek>}
|
|
63
|
+
* @memberof PlayPrice
|
|
64
|
+
*/
|
|
65
|
+
weekDays: Array<DayOfWeek>;
|
|
66
|
+
/**
|
|
67
|
+
* Time from which the price applies in HH:MM format (e.g., "09:15", "14:30")
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof PlayPrice
|
|
70
|
+
*/
|
|
71
|
+
hourFrom: string;
|
|
72
|
+
/**
|
|
73
|
+
* IDs of the play spots this price applies to
|
|
74
|
+
* @type {Array<string>}
|
|
75
|
+
* @memberof PlayPrice
|
|
76
|
+
*/
|
|
77
|
+
playSpotIds: Array<string>;
|
|
78
|
+
/**
|
|
79
|
+
* Whether this price is for subscription-based access
|
|
80
|
+
* @type {boolean}
|
|
81
|
+
* @memberof PlayPrice
|
|
82
|
+
*/
|
|
83
|
+
isSubscription: boolean;
|
|
84
|
+
/**
|
|
85
|
+
* When to charge for this price (per session or monthly)
|
|
86
|
+
* @type {string}
|
|
87
|
+
* @memberof PlayPrice
|
|
88
|
+
*/
|
|
89
|
+
chargeOn: PlayPriceChargeOnEnum;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* @export
|
|
95
|
+
*/
|
|
96
|
+
export const PlayPriceChargeOnEnum = {
|
|
97
|
+
Session: 'session',
|
|
98
|
+
Monthly: 'monthly'
|
|
99
|
+
} as const;
|
|
100
|
+
export type PlayPriceChargeOnEnum = typeof PlayPriceChargeOnEnum[keyof typeof PlayPriceChargeOnEnum];
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Check if a given object implements the PlayPrice interface.
|
|
105
|
+
*/
|
|
106
|
+
export function instanceOfPlayPrice(value: object): value is PlayPrice {
|
|
107
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
108
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
109
|
+
if (!('duration' in value) || value['duration'] === undefined) return false;
|
|
110
|
+
if (!('price' in value) || value['price'] === undefined) return false;
|
|
111
|
+
if (!('weekDays' in value) || value['weekDays'] === undefined) return false;
|
|
112
|
+
if (!('hourFrom' in value) || value['hourFrom'] === undefined) return false;
|
|
113
|
+
if (!('playSpotIds' in value) || value['playSpotIds'] === undefined) return false;
|
|
114
|
+
if (!('isSubscription' in value) || value['isSubscription'] === undefined) return false;
|
|
115
|
+
if (!('chargeOn' in value) || value['chargeOn'] === undefined) return false;
|
|
116
|
+
return true;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export function PlayPriceFromJSON(json: any): PlayPrice {
|
|
120
|
+
return PlayPriceFromJSONTyped(json, false);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export function PlayPriceFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlayPrice {
|
|
124
|
+
if (json == null) {
|
|
125
|
+
return json;
|
|
126
|
+
}
|
|
127
|
+
return {
|
|
128
|
+
|
|
129
|
+
'id': json['id'],
|
|
130
|
+
'customerId': json['customerId'] == null ? undefined : json['customerId'],
|
|
131
|
+
'name': json['name'],
|
|
132
|
+
'duration': json['duration'],
|
|
133
|
+
'price': json['price'],
|
|
134
|
+
'weekDays': ((json['weekDays'] as Array<any>).map(DayOfWeekFromJSON)),
|
|
135
|
+
'hourFrom': json['hourFrom'],
|
|
136
|
+
'playSpotIds': json['playSpotIds'],
|
|
137
|
+
'isSubscription': json['isSubscription'],
|
|
138
|
+
'chargeOn': json['chargeOn'],
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
export function PlayPriceToJSON(json: any): PlayPrice {
|
|
143
|
+
return PlayPriceToJSONTyped(json, false);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
export function PlayPriceToJSONTyped(value?: PlayPrice | null, ignoreDiscriminator: boolean = false): any {
|
|
147
|
+
if (value == null) {
|
|
148
|
+
return value;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
return {
|
|
152
|
+
|
|
153
|
+
'id': value['id'],
|
|
154
|
+
'customerId': value['customerId'],
|
|
155
|
+
'name': value['name'],
|
|
156
|
+
'duration': value['duration'],
|
|
157
|
+
'price': value['price'],
|
|
158
|
+
'weekDays': ((value['weekDays'] as Array<any>).map(DayOfWeekToJSON)),
|
|
159
|
+
'hourFrom': value['hourFrom'],
|
|
160
|
+
'playSpotIds': value['playSpotIds'],
|
|
161
|
+
'isSubscription': value['isSubscription'],
|
|
162
|
+
'chargeOn': value['chargeOn'],
|
|
163
|
+
};
|
|
164
|
+
}
|
|
165
|
+
|
|
@@ -0,0 +1,197 @@
|
|
|
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 PlaySpot
|
|
20
|
+
*/
|
|
21
|
+
export interface PlaySpot {
|
|
22
|
+
/**
|
|
23
|
+
* Unique identifier for the play spot
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof PlaySpot
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
* Physical location id
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof PlaySpot
|
|
32
|
+
*/
|
|
33
|
+
locationId: string;
|
|
34
|
+
/**
|
|
35
|
+
* Unique code for the play spot
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof PlaySpot
|
|
38
|
+
*/
|
|
39
|
+
code: string;
|
|
40
|
+
/**
|
|
41
|
+
* Display name of the play spot
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof PlaySpot
|
|
44
|
+
*/
|
|
45
|
+
name: string;
|
|
46
|
+
/**
|
|
47
|
+
* Description of the play spot
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof PlaySpot
|
|
50
|
+
*/
|
|
51
|
+
description?: string | null;
|
|
52
|
+
/**
|
|
53
|
+
* Type of play spot (e.g., 'ping-pong', 'pool', etc.)
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof PlaySpot
|
|
56
|
+
*/
|
|
57
|
+
type: string;
|
|
58
|
+
/**
|
|
59
|
+
* Features of the play spot (e.g., 'Covered', 'Lighted', etc.)
|
|
60
|
+
* @type {Array<string>}
|
|
61
|
+
* @memberof PlaySpot
|
|
62
|
+
*/
|
|
63
|
+
features: Array<string>;
|
|
64
|
+
/**
|
|
65
|
+
* Sport type of the play spot
|
|
66
|
+
* @type {string}
|
|
67
|
+
* @memberof PlaySpot
|
|
68
|
+
*/
|
|
69
|
+
sport: PlaySpotSportEnum;
|
|
70
|
+
/**
|
|
71
|
+
* Array of picture URLs for the play spot
|
|
72
|
+
* @type {Array<string>}
|
|
73
|
+
* @memberof PlaySpot
|
|
74
|
+
*/
|
|
75
|
+
pictureUrls?: Array<string>;
|
|
76
|
+
/**
|
|
77
|
+
* Indicates if this spot is a combination of other spots
|
|
78
|
+
* @type {boolean}
|
|
79
|
+
* @memberof PlaySpot
|
|
80
|
+
*/
|
|
81
|
+
isCombined: boolean;
|
|
82
|
+
/**
|
|
83
|
+
* Array of play spot IDs that this spot combines
|
|
84
|
+
* @type {Array<string>}
|
|
85
|
+
* @memberof PlaySpot
|
|
86
|
+
*/
|
|
87
|
+
playSpotCombined?: Array<string>;
|
|
88
|
+
/**
|
|
89
|
+
* Number of players that can play on this spot
|
|
90
|
+
* @type {number}
|
|
91
|
+
* @memberof PlaySpot
|
|
92
|
+
*/
|
|
93
|
+
players: number;
|
|
94
|
+
/**
|
|
95
|
+
* External reference value used to match with other systems
|
|
96
|
+
* @type {string}
|
|
97
|
+
* @memberof PlaySpot
|
|
98
|
+
*/
|
|
99
|
+
referenceValue?: string;
|
|
100
|
+
/**
|
|
101
|
+
* Source system for the external reference
|
|
102
|
+
* @type {string}
|
|
103
|
+
* @memberof PlaySpot
|
|
104
|
+
*/
|
|
105
|
+
referenceSource?: string;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* @export
|
|
111
|
+
*/
|
|
112
|
+
export const PlaySpotSportEnum = {
|
|
113
|
+
Tennis: 'TENNIS',
|
|
114
|
+
TableTennis: 'TABLE_TENNIS',
|
|
115
|
+
Paddle: 'PADDLE',
|
|
116
|
+
Football: 'FOOTBALL',
|
|
117
|
+
Soccer: 'SOCCER',
|
|
118
|
+
Squash: 'SQUASH',
|
|
119
|
+
Basketball: 'BASKETBALL',
|
|
120
|
+
Volleyball: 'VOLLEYBALL',
|
|
121
|
+
Badminton: 'BADMINTON',
|
|
122
|
+
Other: 'OTHER'
|
|
123
|
+
} as const;
|
|
124
|
+
export type PlaySpotSportEnum = typeof PlaySpotSportEnum[keyof typeof PlaySpotSportEnum];
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* Check if a given object implements the PlaySpot interface.
|
|
129
|
+
*/
|
|
130
|
+
export function instanceOfPlaySpot(value: object): value is PlaySpot {
|
|
131
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
132
|
+
if (!('locationId' in value) || value['locationId'] === undefined) return false;
|
|
133
|
+
if (!('code' in value) || value['code'] === undefined) return false;
|
|
134
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
135
|
+
if (!('type' in value) || value['type'] === undefined) return false;
|
|
136
|
+
if (!('features' in value) || value['features'] === undefined) return false;
|
|
137
|
+
if (!('sport' in value) || value['sport'] === undefined) return false;
|
|
138
|
+
if (!('isCombined' in value) || value['isCombined'] === undefined) return false;
|
|
139
|
+
if (!('players' in value) || value['players'] === undefined) return false;
|
|
140
|
+
return true;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
export function PlaySpotFromJSON(json: any): PlaySpot {
|
|
144
|
+
return PlaySpotFromJSONTyped(json, false);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
export function PlaySpotFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlaySpot {
|
|
148
|
+
if (json == null) {
|
|
149
|
+
return json;
|
|
150
|
+
}
|
|
151
|
+
return {
|
|
152
|
+
|
|
153
|
+
'id': json['id'],
|
|
154
|
+
'locationId': json['locationId'],
|
|
155
|
+
'code': json['code'],
|
|
156
|
+
'name': json['name'],
|
|
157
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
158
|
+
'type': json['type'],
|
|
159
|
+
'features': json['features'],
|
|
160
|
+
'sport': json['sport'],
|
|
161
|
+
'pictureUrls': json['pictureUrls'] == null ? undefined : json['pictureUrls'],
|
|
162
|
+
'isCombined': json['isCombined'],
|
|
163
|
+
'playSpotCombined': json['playSpotCombined'] == null ? undefined : json['playSpotCombined'],
|
|
164
|
+
'players': json['players'],
|
|
165
|
+
'referenceValue': json['referenceValue'] == null ? undefined : json['referenceValue'],
|
|
166
|
+
'referenceSource': json['referenceSource'] == null ? undefined : json['referenceSource'],
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
export function PlaySpotToJSON(json: any): PlaySpot {
|
|
171
|
+
return PlaySpotToJSONTyped(json, false);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
export function PlaySpotToJSONTyped(value?: PlaySpot | null, ignoreDiscriminator: boolean = false): any {
|
|
175
|
+
if (value == null) {
|
|
176
|
+
return value;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
return {
|
|
180
|
+
|
|
181
|
+
'id': value['id'],
|
|
182
|
+
'locationId': value['locationId'],
|
|
183
|
+
'code': value['code'],
|
|
184
|
+
'name': value['name'],
|
|
185
|
+
'description': value['description'],
|
|
186
|
+
'type': value['type'],
|
|
187
|
+
'features': value['features'],
|
|
188
|
+
'sport': value['sport'],
|
|
189
|
+
'pictureUrls': value['pictureUrls'],
|
|
190
|
+
'isCombined': value['isCombined'],
|
|
191
|
+
'playSpotCombined': value['playSpotCombined'],
|
|
192
|
+
'players': value['players'],
|
|
193
|
+
'referenceValue': value['referenceValue'],
|
|
194
|
+
'referenceSource': value['referenceSource'],
|
|
195
|
+
};
|
|
196
|
+
}
|
|
197
|
+
|
|
@@ -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
|
+
import type { HourShiftDetail } from './HourShiftDetail';
|
|
17
|
+
import {
|
|
18
|
+
HourShiftDetailFromJSON,
|
|
19
|
+
HourShiftDetailFromJSONTyped,
|
|
20
|
+
HourShiftDetailToJSON,
|
|
21
|
+
HourShiftDetailToJSONTyped,
|
|
22
|
+
} from './HourShiftDetail';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface PlaySpotAvailabilityDetail
|
|
28
|
+
*/
|
|
29
|
+
export interface PlaySpotAvailabilityDetail {
|
|
30
|
+
/**
|
|
31
|
+
* ID of the play spot
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof PlaySpotAvailabilityDetail
|
|
34
|
+
*/
|
|
35
|
+
playSpotId?: string;
|
|
36
|
+
/**
|
|
37
|
+
* ID of the location
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof PlaySpotAvailabilityDetail
|
|
40
|
+
*/
|
|
41
|
+
locationId?: string;
|
|
42
|
+
/**
|
|
43
|
+
* List of available shifts for this spot
|
|
44
|
+
* @type {Array<HourShiftDetail>}
|
|
45
|
+
* @memberof PlaySpotAvailabilityDetail
|
|
46
|
+
*/
|
|
47
|
+
hourShifts?: Array<HourShiftDetail>;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the PlaySpotAvailabilityDetail interface.
|
|
52
|
+
*/
|
|
53
|
+
export function instanceOfPlaySpotAvailabilityDetail(value: object): value is PlaySpotAvailabilityDetail {
|
|
54
|
+
return true;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export function PlaySpotAvailabilityDetailFromJSON(json: any): PlaySpotAvailabilityDetail {
|
|
58
|
+
return PlaySpotAvailabilityDetailFromJSONTyped(json, false);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function PlaySpotAvailabilityDetailFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlaySpotAvailabilityDetail {
|
|
62
|
+
if (json == null) {
|
|
63
|
+
return json;
|
|
64
|
+
}
|
|
65
|
+
return {
|
|
66
|
+
|
|
67
|
+
'playSpotId': json['playSpotId'] == null ? undefined : json['playSpotId'],
|
|
68
|
+
'locationId': json['locationId'] == null ? undefined : json['locationId'],
|
|
69
|
+
'hourShifts': json['hourShifts'] == null ? undefined : ((json['hourShifts'] as Array<any>).map(HourShiftDetailFromJSON)),
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function PlaySpotAvailabilityDetailToJSON(json: any): PlaySpotAvailabilityDetail {
|
|
74
|
+
return PlaySpotAvailabilityDetailToJSONTyped(json, false);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function PlaySpotAvailabilityDetailToJSONTyped(value?: PlaySpotAvailabilityDetail | null, ignoreDiscriminator: boolean = false): any {
|
|
78
|
+
if (value == null) {
|
|
79
|
+
return value;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
return {
|
|
83
|
+
|
|
84
|
+
'playSpotId': value['playSpotId'],
|
|
85
|
+
'locationId': value['locationId'],
|
|
86
|
+
'hourShifts': value['hourShifts'] == null ? undefined : ((value['hourShifts'] as Array<any>).map(HourShiftDetailToJSON)),
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
|
|
@@ -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 { RentHour } from './RentHour';
|
|
17
|
+
import {
|
|
18
|
+
RentHourFromJSON,
|
|
19
|
+
RentHourFromJSONTyped,
|
|
20
|
+
RentHourToJSON,
|
|
21
|
+
RentHourToJSONTyped,
|
|
22
|
+
} from './RentHour';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface PlaySpotDateSummary
|
|
28
|
+
*/
|
|
29
|
+
export interface PlaySpotDateSummary {
|
|
30
|
+
/**
|
|
31
|
+
* The date for this summary
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof PlaySpotDateSummary
|
|
34
|
+
*/
|
|
35
|
+
rentDate?: string;
|
|
36
|
+
/**
|
|
37
|
+
* List of hours with availability information
|
|
38
|
+
* @type {Array<RentHour>}
|
|
39
|
+
* @memberof PlaySpotDateSummary
|
|
40
|
+
*/
|
|
41
|
+
rentHours?: Array<RentHour>;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the PlaySpotDateSummary interface.
|
|
46
|
+
*/
|
|
47
|
+
export function instanceOfPlaySpotDateSummary(value: object): value is PlaySpotDateSummary {
|
|
48
|
+
return true;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function PlaySpotDateSummaryFromJSON(json: any): PlaySpotDateSummary {
|
|
52
|
+
return PlaySpotDateSummaryFromJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function PlaySpotDateSummaryFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlaySpotDateSummary {
|
|
56
|
+
if (json == null) {
|
|
57
|
+
return json;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
|
|
61
|
+
'rentDate': json['rentDate'] == null ? undefined : json['rentDate'],
|
|
62
|
+
'rentHours': json['rentHours'] == null ? undefined : ((json['rentHours'] as Array<any>).map(RentHourFromJSON)),
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function PlaySpotDateSummaryToJSON(json: any): PlaySpotDateSummary {
|
|
67
|
+
return PlaySpotDateSummaryToJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function PlaySpotDateSummaryToJSONTyped(value?: PlaySpotDateSummary | null, ignoreDiscriminator: boolean = false): any {
|
|
71
|
+
if (value == null) {
|
|
72
|
+
return value;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
return {
|
|
76
|
+
|
|
77
|
+
'rentDate': value['rentDate'],
|
|
78
|
+
'rentHours': value['rentHours'] == null ? undefined : ((value['rentHours'] as Array<any>).map(RentHourToJSON)),
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|
|
@@ -0,0 +1,127 @@
|
|
|
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 { DeviceType } from './DeviceType';
|
|
17
|
+
import {
|
|
18
|
+
DeviceTypeFromJSON,
|
|
19
|
+
DeviceTypeFromJSONTyped,
|
|
20
|
+
DeviceTypeToJSON,
|
|
21
|
+
DeviceTypeToJSONTyped,
|
|
22
|
+
} from './DeviceType';
|
|
23
|
+
import type { DeviceState } from './DeviceState';
|
|
24
|
+
import {
|
|
25
|
+
DeviceStateFromJSON,
|
|
26
|
+
DeviceStateFromJSONTyped,
|
|
27
|
+
DeviceStateToJSON,
|
|
28
|
+
DeviceStateToJSONTyped,
|
|
29
|
+
} from './DeviceState';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface PlaySpotDeviceExecutionState
|
|
35
|
+
*/
|
|
36
|
+
export interface PlaySpotDeviceExecutionState {
|
|
37
|
+
/**
|
|
38
|
+
* The unique identifier of the play spot
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof PlaySpotDeviceExecutionState
|
|
41
|
+
*/
|
|
42
|
+
playSpotId: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {DeviceType}
|
|
46
|
+
* @memberof PlaySpotDeviceExecutionState
|
|
47
|
+
*/
|
|
48
|
+
deviceType: DeviceType;
|
|
49
|
+
/**
|
|
50
|
+
* Whether the device operation was executed
|
|
51
|
+
* @type {boolean}
|
|
52
|
+
* @memberof PlaySpotDeviceExecutionState
|
|
53
|
+
*/
|
|
54
|
+
isExecuted: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* Whether all device operations were successful
|
|
57
|
+
* @type {boolean}
|
|
58
|
+
* @memberof PlaySpotDeviceExecutionState
|
|
59
|
+
*/
|
|
60
|
+
success: boolean;
|
|
61
|
+
/**
|
|
62
|
+
* Array of states for each device in the play spot
|
|
63
|
+
* @type {Array<DeviceState>}
|
|
64
|
+
* @memberof PlaySpotDeviceExecutionState
|
|
65
|
+
*/
|
|
66
|
+
devices: Array<DeviceState>;
|
|
67
|
+
/**
|
|
68
|
+
* Optional error message if the play spot operation failed
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof PlaySpotDeviceExecutionState
|
|
71
|
+
*/
|
|
72
|
+
error?: string;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Check if a given object implements the PlaySpotDeviceExecutionState interface.
|
|
79
|
+
*/
|
|
80
|
+
export function instanceOfPlaySpotDeviceExecutionState(value: object): value is PlaySpotDeviceExecutionState {
|
|
81
|
+
if (!('playSpotId' in value) || value['playSpotId'] === undefined) return false;
|
|
82
|
+
if (!('deviceType' in value) || value['deviceType'] === undefined) return false;
|
|
83
|
+
if (!('isExecuted' in value) || value['isExecuted'] === undefined) return false;
|
|
84
|
+
if (!('success' in value) || value['success'] === undefined) return false;
|
|
85
|
+
if (!('devices' in value) || value['devices'] === undefined) return false;
|
|
86
|
+
return true;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export function PlaySpotDeviceExecutionStateFromJSON(json: any): PlaySpotDeviceExecutionState {
|
|
90
|
+
return PlaySpotDeviceExecutionStateFromJSONTyped(json, false);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export function PlaySpotDeviceExecutionStateFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlaySpotDeviceExecutionState {
|
|
94
|
+
if (json == null) {
|
|
95
|
+
return json;
|
|
96
|
+
}
|
|
97
|
+
return {
|
|
98
|
+
|
|
99
|
+
'playSpotId': json['playSpotId'],
|
|
100
|
+
'deviceType': DeviceTypeFromJSON(json['deviceType']),
|
|
101
|
+
'isExecuted': json['isExecuted'],
|
|
102
|
+
'success': json['success'],
|
|
103
|
+
'devices': ((json['devices'] as Array<any>).map(DeviceStateFromJSON)),
|
|
104
|
+
'error': json['error'] == null ? undefined : json['error'],
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export function PlaySpotDeviceExecutionStateToJSON(json: any): PlaySpotDeviceExecutionState {
|
|
109
|
+
return PlaySpotDeviceExecutionStateToJSONTyped(json, false);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export function PlaySpotDeviceExecutionStateToJSONTyped(value?: PlaySpotDeviceExecutionState | null, ignoreDiscriminator: boolean = false): any {
|
|
113
|
+
if (value == null) {
|
|
114
|
+
return value;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
return {
|
|
118
|
+
|
|
119
|
+
'playSpotId': value['playSpotId'],
|
|
120
|
+
'deviceType': DeviceTypeToJSON(value['deviceType']),
|
|
121
|
+
'isExecuted': value['isExecuted'],
|
|
122
|
+
'success': value['success'],
|
|
123
|
+
'devices': ((value['devices'] as Array<any>).map(DeviceStateToJSON)),
|
|
124
|
+
'error': value['error'],
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
|