@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,230 @@
|
|
|
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 { PaymentDetail } from './PaymentDetail';
|
|
17
|
+
import {
|
|
18
|
+
PaymentDetailFromJSON,
|
|
19
|
+
PaymentDetailFromJSONTyped,
|
|
20
|
+
PaymentDetailToJSON,
|
|
21
|
+
PaymentDetailToJSONTyped,
|
|
22
|
+
} from './PaymentDetail';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface UserReserveDto
|
|
28
|
+
*/
|
|
29
|
+
export interface UserReserveDto {
|
|
30
|
+
/**
|
|
31
|
+
* The unique identifier of the reservation
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof UserReserveDto
|
|
34
|
+
*/
|
|
35
|
+
id: string;
|
|
36
|
+
/**
|
|
37
|
+
* The ID of the play spot
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof UserReserveDto
|
|
40
|
+
*/
|
|
41
|
+
playSpotId: string;
|
|
42
|
+
/**
|
|
43
|
+
* The name of the play spot
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof UserReserveDto
|
|
46
|
+
*/
|
|
47
|
+
playSpotName: string;
|
|
48
|
+
/**
|
|
49
|
+
* The ID of the location
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof UserReserveDto
|
|
52
|
+
*/
|
|
53
|
+
locationId: string;
|
|
54
|
+
/**
|
|
55
|
+
* The name of the location
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof UserReserveDto
|
|
58
|
+
*/
|
|
59
|
+
locationName: string;
|
|
60
|
+
/**
|
|
61
|
+
* The start date and time of the reservation
|
|
62
|
+
* @type {Date}
|
|
63
|
+
* @memberof UserReserveDto
|
|
64
|
+
*/
|
|
65
|
+
rentedFrom: Date;
|
|
66
|
+
/**
|
|
67
|
+
* The end date and time of the reservation
|
|
68
|
+
* @type {Date}
|
|
69
|
+
* @memberof UserReserveDto
|
|
70
|
+
*/
|
|
71
|
+
rentedTo: Date;
|
|
72
|
+
/**
|
|
73
|
+
* The duration of the reservation in minutes
|
|
74
|
+
* @type {number}
|
|
75
|
+
* @memberof UserReserveDto
|
|
76
|
+
*/
|
|
77
|
+
duration: number;
|
|
78
|
+
/**
|
|
79
|
+
* The current status of the reservation
|
|
80
|
+
* @type {string}
|
|
81
|
+
* @memberof UserReserveDto
|
|
82
|
+
*/
|
|
83
|
+
status: UserReserveDtoStatusEnum;
|
|
84
|
+
/**
|
|
85
|
+
* The unique code for the reservation
|
|
86
|
+
* @type {string}
|
|
87
|
+
* @memberof UserReserveDto
|
|
88
|
+
*/
|
|
89
|
+
uniqueCode: string;
|
|
90
|
+
/**
|
|
91
|
+
* When the reservation was created
|
|
92
|
+
* @type {Date}
|
|
93
|
+
* @memberof UserReserveDto
|
|
94
|
+
*/
|
|
95
|
+
createdAt: Date;
|
|
96
|
+
/**
|
|
97
|
+
* The price information for the play spot reservation
|
|
98
|
+
* @type {string}
|
|
99
|
+
* @memberof UserReserveDto
|
|
100
|
+
*/
|
|
101
|
+
playPriceId?: string;
|
|
102
|
+
/**
|
|
103
|
+
*
|
|
104
|
+
* @type {PaymentDetail}
|
|
105
|
+
* @memberof UserReserveDto
|
|
106
|
+
*/
|
|
107
|
+
paymentDetail?: PaymentDetail;
|
|
108
|
+
/**
|
|
109
|
+
* The address of the location
|
|
110
|
+
* @type {string}
|
|
111
|
+
* @memberof UserReserveDto
|
|
112
|
+
*/
|
|
113
|
+
locationAddress: string;
|
|
114
|
+
/**
|
|
115
|
+
* The address map url of the location
|
|
116
|
+
* @type {string}
|
|
117
|
+
* @memberof UserReserveDto
|
|
118
|
+
*/
|
|
119
|
+
locationAddressUrl?: string;
|
|
120
|
+
/**
|
|
121
|
+
* The club/customer ID for the location
|
|
122
|
+
* @type {string}
|
|
123
|
+
* @memberof UserReserveDto
|
|
124
|
+
*/
|
|
125
|
+
clubId: string;
|
|
126
|
+
/**
|
|
127
|
+
* The club/customer name for the location
|
|
128
|
+
* @type {string}
|
|
129
|
+
* @memberof UserReserveDto
|
|
130
|
+
*/
|
|
131
|
+
clubName: string;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* @export
|
|
137
|
+
*/
|
|
138
|
+
export const UserReserveDtoStatusEnum = {
|
|
139
|
+
Pending: 'PENDING',
|
|
140
|
+
PendingPayment: 'PENDING_PAYMENT',
|
|
141
|
+
PendingApproval: 'PENDING_APPROVAL',
|
|
142
|
+
Confirmed: 'CONFIRMED',
|
|
143
|
+
Cancelled: 'CANCELLED',
|
|
144
|
+
Refunded: 'REFUNDED'
|
|
145
|
+
} as const;
|
|
146
|
+
export type UserReserveDtoStatusEnum = typeof UserReserveDtoStatusEnum[keyof typeof UserReserveDtoStatusEnum];
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* Check if a given object implements the UserReserveDto interface.
|
|
151
|
+
*/
|
|
152
|
+
export function instanceOfUserReserveDto(value: object): value is UserReserveDto {
|
|
153
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
154
|
+
if (!('playSpotId' in value) || value['playSpotId'] === undefined) return false;
|
|
155
|
+
if (!('playSpotName' in value) || value['playSpotName'] === undefined) return false;
|
|
156
|
+
if (!('locationId' in value) || value['locationId'] === undefined) return false;
|
|
157
|
+
if (!('locationName' in value) || value['locationName'] === undefined) return false;
|
|
158
|
+
if (!('rentedFrom' in value) || value['rentedFrom'] === undefined) return false;
|
|
159
|
+
if (!('rentedTo' in value) || value['rentedTo'] === undefined) return false;
|
|
160
|
+
if (!('duration' in value) || value['duration'] === undefined) return false;
|
|
161
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
162
|
+
if (!('uniqueCode' in value) || value['uniqueCode'] === undefined) return false;
|
|
163
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
164
|
+
if (!('locationAddress' in value) || value['locationAddress'] === undefined) return false;
|
|
165
|
+
if (!('clubId' in value) || value['clubId'] === undefined) return false;
|
|
166
|
+
if (!('clubName' in value) || value['clubName'] === undefined) return false;
|
|
167
|
+
return true;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
export function UserReserveDtoFromJSON(json: any): UserReserveDto {
|
|
171
|
+
return UserReserveDtoFromJSONTyped(json, false);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
export function UserReserveDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserReserveDto {
|
|
175
|
+
if (json == null) {
|
|
176
|
+
return json;
|
|
177
|
+
}
|
|
178
|
+
return {
|
|
179
|
+
|
|
180
|
+
'id': json['id'],
|
|
181
|
+
'playSpotId': json['playSpotId'],
|
|
182
|
+
'playSpotName': json['playSpotName'],
|
|
183
|
+
'locationId': json['locationId'],
|
|
184
|
+
'locationName': json['locationName'],
|
|
185
|
+
'rentedFrom': (new Date(json['rentedFrom'])),
|
|
186
|
+
'rentedTo': (new Date(json['rentedTo'])),
|
|
187
|
+
'duration': json['duration'],
|
|
188
|
+
'status': json['status'],
|
|
189
|
+
'uniqueCode': json['uniqueCode'],
|
|
190
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
191
|
+
'playPriceId': json['playPriceId'] == null ? undefined : json['playPriceId'],
|
|
192
|
+
'paymentDetail': json['paymentDetail'] == null ? undefined : PaymentDetailFromJSON(json['paymentDetail']),
|
|
193
|
+
'locationAddress': json['locationAddress'],
|
|
194
|
+
'locationAddressUrl': json['locationAddressUrl'] == null ? undefined : json['locationAddressUrl'],
|
|
195
|
+
'clubId': json['clubId'],
|
|
196
|
+
'clubName': json['clubName'],
|
|
197
|
+
};
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
export function UserReserveDtoToJSON(json: any): UserReserveDto {
|
|
201
|
+
return UserReserveDtoToJSONTyped(json, false);
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
export function UserReserveDtoToJSONTyped(value?: UserReserveDto | null, ignoreDiscriminator: boolean = false): any {
|
|
205
|
+
if (value == null) {
|
|
206
|
+
return value;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
return {
|
|
210
|
+
|
|
211
|
+
'id': value['id'],
|
|
212
|
+
'playSpotId': value['playSpotId'],
|
|
213
|
+
'playSpotName': value['playSpotName'],
|
|
214
|
+
'locationId': value['locationId'],
|
|
215
|
+
'locationName': value['locationName'],
|
|
216
|
+
'rentedFrom': ((value['rentedFrom']).toISOString()),
|
|
217
|
+
'rentedTo': ((value['rentedTo']).toISOString()),
|
|
218
|
+
'duration': value['duration'],
|
|
219
|
+
'status': value['status'],
|
|
220
|
+
'uniqueCode': value['uniqueCode'],
|
|
221
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
222
|
+
'playPriceId': value['playPriceId'],
|
|
223
|
+
'paymentDetail': PaymentDetailToJSON(value['paymentDetail']),
|
|
224
|
+
'locationAddress': value['locationAddress'],
|
|
225
|
+
'locationAddressUrl': value['locationAddressUrl'],
|
|
226
|
+
'clubId': value['clubId'],
|
|
227
|
+
'clubName': value['clubName'],
|
|
228
|
+
};
|
|
229
|
+
}
|
|
230
|
+
|
|
@@ -0,0 +1,53 @@
|
|
|
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 role of a customer user
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const UserRole = {
|
|
21
|
+
Admin: 'admin',
|
|
22
|
+
User: 'user'
|
|
23
|
+
} as const;
|
|
24
|
+
export type UserRole = typeof UserRole[keyof typeof UserRole];
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
export function instanceOfUserRole(value: any): boolean {
|
|
28
|
+
for (const key in UserRole) {
|
|
29
|
+
if (Object.prototype.hasOwnProperty.call(UserRole, key)) {
|
|
30
|
+
if (UserRole[key as keyof typeof UserRole] === value) {
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
return false;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function UserRoleFromJSON(json: any): UserRole {
|
|
39
|
+
return UserRoleFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function UserRoleFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserRole {
|
|
43
|
+
return json as UserRole;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function UserRoleToJSON(value?: UserRole | null): any {
|
|
47
|
+
return value as any;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function UserRoleToJSONTyped(value: any, ignoreDiscriminator: boolean): UserRole {
|
|
51
|
+
return value as UserRole;
|
|
52
|
+
}
|
|
53
|
+
|
|
@@ -0,0 +1,129 @@
|
|
|
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 { UserSessionCustomer } from './UserSessionCustomer';
|
|
17
|
+
import {
|
|
18
|
+
UserSessionCustomerFromJSON,
|
|
19
|
+
UserSessionCustomerFromJSONTyped,
|
|
20
|
+
UserSessionCustomerToJSON,
|
|
21
|
+
UserSessionCustomerToJSONTyped,
|
|
22
|
+
} from './UserSessionCustomer';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface UserSession
|
|
28
|
+
*/
|
|
29
|
+
export interface UserSession {
|
|
30
|
+
/**
|
|
31
|
+
* Unique identifier for the user session
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof UserSession
|
|
34
|
+
*/
|
|
35
|
+
uid?: string;
|
|
36
|
+
/**
|
|
37
|
+
* User's email address, if available
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof UserSession
|
|
40
|
+
*/
|
|
41
|
+
email?: string | null;
|
|
42
|
+
/**
|
|
43
|
+
* User's role in the system
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof UserSession
|
|
46
|
+
*/
|
|
47
|
+
role?: string;
|
|
48
|
+
/**
|
|
49
|
+
* ID of the associated customer, if any
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof UserSession
|
|
52
|
+
*/
|
|
53
|
+
customerId?: string | null;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {UserSessionCustomer}
|
|
57
|
+
* @memberof UserSession
|
|
58
|
+
*/
|
|
59
|
+
customer?: UserSessionCustomer | null;
|
|
60
|
+
/**
|
|
61
|
+
* ID of the associated location, if any
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof UserSession
|
|
64
|
+
*/
|
|
65
|
+
locationId?: string | null;
|
|
66
|
+
/**
|
|
67
|
+
* ID of the user, if any
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof UserSession
|
|
70
|
+
*/
|
|
71
|
+
userId?: string | null;
|
|
72
|
+
/**
|
|
73
|
+
* User Auth identifier, if available
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof UserSession
|
|
76
|
+
*/
|
|
77
|
+
userAuthId?: string | null;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Check if a given object implements the UserSession interface.
|
|
82
|
+
*/
|
|
83
|
+
export function instanceOfUserSession(value: object): value is UserSession {
|
|
84
|
+
return true;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function UserSessionFromJSON(json: any): UserSession {
|
|
88
|
+
return UserSessionFromJSONTyped(json, false);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export function UserSessionFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserSession {
|
|
92
|
+
if (json == null) {
|
|
93
|
+
return json;
|
|
94
|
+
}
|
|
95
|
+
return {
|
|
96
|
+
|
|
97
|
+
'uid': json['uid'] == null ? undefined : json['uid'],
|
|
98
|
+
'email': json['email'] == null ? undefined : json['email'],
|
|
99
|
+
'role': json['role'] == null ? undefined : json['role'],
|
|
100
|
+
'customerId': json['customerId'] == null ? undefined : json['customerId'],
|
|
101
|
+
'customer': json['customer'] == null ? undefined : UserSessionCustomerFromJSON(json['customer']),
|
|
102
|
+
'locationId': json['locationId'] == null ? undefined : json['locationId'],
|
|
103
|
+
'userId': json['userId'] == null ? undefined : json['userId'],
|
|
104
|
+
'userAuthId': json['userAuthId'] == null ? undefined : json['userAuthId'],
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export function UserSessionToJSON(json: any): UserSession {
|
|
109
|
+
return UserSessionToJSONTyped(json, false);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export function UserSessionToJSONTyped(value?: UserSession | null, ignoreDiscriminator: boolean = false): any {
|
|
113
|
+
if (value == null) {
|
|
114
|
+
return value;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
return {
|
|
118
|
+
|
|
119
|
+
'uid': value['uid'],
|
|
120
|
+
'email': value['email'],
|
|
121
|
+
'role': value['role'],
|
|
122
|
+
'customerId': value['customerId'],
|
|
123
|
+
'customer': UserSessionCustomerToJSON(value['customer']),
|
|
124
|
+
'locationId': value['locationId'],
|
|
125
|
+
'userId': value['userId'],
|
|
126
|
+
'userAuthId': value['userAuthId'],
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
|
|
@@ -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
|
+
* Customer information, if available
|
|
18
|
+
* @export
|
|
19
|
+
* @interface UserSessionCustomer
|
|
20
|
+
*/
|
|
21
|
+
export interface UserSessionCustomer {
|
|
22
|
+
/**
|
|
23
|
+
* Customer ID
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof UserSessionCustomer
|
|
26
|
+
*/
|
|
27
|
+
id?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Customer code
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof UserSessionCustomer
|
|
32
|
+
*/
|
|
33
|
+
code?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Customer name
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof UserSessionCustomer
|
|
38
|
+
*/
|
|
39
|
+
name?: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the UserSessionCustomer interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfUserSessionCustomer(value: object): value is UserSessionCustomer {
|
|
46
|
+
return true;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function UserSessionCustomerFromJSON(json: any): UserSessionCustomer {
|
|
50
|
+
return UserSessionCustomerFromJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function UserSessionCustomerFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserSessionCustomer {
|
|
54
|
+
if (json == null) {
|
|
55
|
+
return json;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
|
|
59
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
60
|
+
'code': json['code'] == null ? undefined : json['code'],
|
|
61
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function UserSessionCustomerToJSON(json: any): UserSessionCustomer {
|
|
66
|
+
return UserSessionCustomerToJSONTyped(json, false);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function UserSessionCustomerToJSONTyped(value?: UserSessionCustomer | null, ignoreDiscriminator: boolean = false): any {
|
|
70
|
+
if (value == null) {
|
|
71
|
+
return value;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'id': value['id'],
|
|
77
|
+
'code': value['code'],
|
|
78
|
+
'name': value['name'],
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|
|
@@ -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 UserSportProfile
|
|
42
|
+
*/
|
|
43
|
+
export interface UserSportProfile {
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {Sport}
|
|
47
|
+
* @memberof UserSportProfile
|
|
48
|
+
*/
|
|
49
|
+
sport: Sport;
|
|
50
|
+
/**
|
|
51
|
+
* The user's level in this sport
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof UserSportProfile
|
|
54
|
+
*/
|
|
55
|
+
level: string;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {DominantPlaySide}
|
|
59
|
+
* @memberof UserSportProfile
|
|
60
|
+
*/
|
|
61
|
+
playSide: DominantPlaySide;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {PlayerCategory}
|
|
65
|
+
* @memberof UserSportProfile
|
|
66
|
+
*/
|
|
67
|
+
playerCategory: PlayerCategory;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Check if a given object implements the UserSportProfile interface.
|
|
74
|
+
*/
|
|
75
|
+
export function instanceOfUserSportProfile(value: object): value is UserSportProfile {
|
|
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 UserSportProfileFromJSON(json: any): UserSportProfile {
|
|
84
|
+
return UserSportProfileFromJSONTyped(json, false);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function UserSportProfileFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserSportProfile {
|
|
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 UserSportProfileToJSON(json: any): UserSportProfile {
|
|
101
|
+
return UserSportProfileToJSONTyped(json, false);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export function UserSportProfileToJSONTyped(value?: UserSportProfile | 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
|
+
|