@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.
Files changed (171) hide show
  1. package/apis/AdminCoachesApi.ts +259 -0
  2. package/apis/AdminCustomersApi.ts +374 -0
  3. package/apis/AdminDevicesApi.ts +364 -0
  4. package/apis/AdminLocationsApi.ts +304 -0
  5. package/apis/AdminPaymentConfigsApi.ts +358 -0
  6. package/apis/AdminPlayPricesApi.ts +397 -0
  7. package/apis/AdminPlaySpotShiftsApi.ts +267 -0
  8. package/apis/AdminPlaySpotsApi.ts +307 -0
  9. package/apis/AdminReservationsApi.ts +335 -0
  10. package/apis/AdminSubscriptionsApi.ts +354 -0
  11. package/apis/AdminUsersApi.ts +323 -0
  12. package/apis/AuthApi.ts +196 -0
  13. package/apis/BackgroundApi.ts +66 -0
  14. package/apis/ClubApi.ts +174 -0
  15. package/apis/DevicesApi.ts +136 -0
  16. package/apis/HealthApi.ts +56 -0
  17. package/apis/MercadoPagoApi.ts +111 -0
  18. package/apis/MercadoPagoIPNApi.ts +80 -0
  19. package/apis/PlaySpotsApi.ts +207 -0
  20. package/apis/ReservesApi.ts +366 -0
  21. package/apis/UsersApi.ts +648 -0
  22. package/apis/index.ts +23 -0
  23. package/index.ts +5 -0
  24. package/models/AddMemberToSubscriptionRequest.ts +66 -0
  25. package/models/ApiAdminPlayPricesIdPutRequest.ts +140 -0
  26. package/models/ApiAdminPlayPricesPostRequest.ts +146 -0
  27. package/models/AvailabilityShift.ts +89 -0
  28. package/models/AvailabilityShiftHour.ts +81 -0
  29. package/models/AvailabilityShiftSpot.ts +89 -0
  30. package/models/CancelReservationParams.ts +75 -0
  31. package/models/CancelReservationRequest.ts +66 -0
  32. package/models/CancelReservationResult.ts +89 -0
  33. package/models/ChargeOn.ts +53 -0
  34. package/models/Check200Response.ts +65 -0
  35. package/models/CheckUserExists200Response.ts +73 -0
  36. package/models/ClubDto.ts +164 -0
  37. package/models/ClubSearchParams.ts +119 -0
  38. package/models/ClubSearchParamsGeo.ts +73 -0
  39. package/models/ClubSearchParamsPaging.ts +73 -0
  40. package/models/ClubSearchResponse.ts +88 -0
  41. package/models/ClubSearchResponseDataInner.ts +168 -0
  42. package/models/ClubSearchResponsePagination.ts +89 -0
  43. package/models/Coach.ts +121 -0
  44. package/models/CoachDto.ts +119 -0
  45. package/models/CoachDtoAvailabilityInner.ts +88 -0
  46. package/models/ConfirmReservationParams.ts +74 -0
  47. package/models/ConfirmReservationResponse.ts +83 -0
  48. package/models/ConfirmReservationResponseResult.ts +81 -0
  49. package/models/CreateBasicUserDto.ts +112 -0
  50. package/models/CreateCheckoutPreferenceRequest.ts +104 -0
  51. package/models/CreateCheckoutPreferenceRequestBackUrls.ts +81 -0
  52. package/models/CreateCheckoutPreferenceRequestItemsInner.ts +89 -0
  53. package/models/CreateCustomerPaymentConfigDto.ts +84 -0
  54. package/models/CreateDefault500Response.ts +65 -0
  55. package/models/CreateFromInvite400Response.ts +65 -0
  56. package/models/CreateShiftRequest.ts +153 -0
  57. package/models/CreateUserNotificationDto.ts +93 -0
  58. package/models/Customer.ts +235 -0
  59. package/models/CustomerDocument.ts +128 -0
  60. package/models/CustomerDto.ts +209 -0
  61. package/models/CustomerDtoRefund.ts +103 -0
  62. package/models/CustomerLocationDto.ts +102 -0
  63. package/models/CustomerPaymentConfig.ts +144 -0
  64. package/models/CustomerPaymentConfigDto.ts +85 -0
  65. package/models/CustomerRefund.ts +102 -0
  66. package/models/CustomerStatus.ts +53 -0
  67. package/models/DayOfWeek.ts +58 -0
  68. package/models/DeleteShift200Response.ts +65 -0
  69. package/models/Device.ts +139 -0
  70. package/models/DeviceDto.ts +131 -0
  71. package/models/DeviceState.ts +111 -0
  72. package/models/DeviceType.ts +53 -0
  73. package/models/DominantPlaySide.ts +54 -0
  74. package/models/ErrorResponse.ts +66 -0
  75. package/models/ExpireUnpaidReservationResult.ts +81 -0
  76. package/models/ExpireUnpaidReservations401Response.ts +65 -0
  77. package/models/ExpireUnpaidReservations500Response.ts +65 -0
  78. package/models/Feature.ts +121 -0
  79. package/models/FindOccurrences200Response.ts +91 -0
  80. package/models/Frequency.ts +54 -0
  81. package/models/GenerateCode500Response.ts +65 -0
  82. package/models/GetAllDevices200ResponseInner.ts +154 -0
  83. package/models/GetAllPlaySpots200ResponseInner.ts +213 -0
  84. package/models/GetAllShifts200ResponseInner.ts +199 -0
  85. package/models/GetHourlyReservationStatus200Response.ts +89 -0
  86. package/models/GetHourlyReservationStatus200ResponseHourlyStatusInner.ts +97 -0
  87. package/models/GetMercadoPagoAuthUrl200Response.ts +66 -0
  88. package/models/GetSession401Response.ts +65 -0
  89. package/models/GetSession500Response.ts +65 -0
  90. package/models/HourShiftDetail.ts +81 -0
  91. package/models/InitiateReservationParams.ts +137 -0
  92. package/models/Level.ts +54 -0
  93. package/models/LightControlResponse.ts +83 -0
  94. package/models/Location.ts +209 -0
  95. package/models/LocationDto.ts +204 -0
  96. package/models/ManageLightSwitch200Response.ts +81 -0
  97. package/models/ManageLightSwitch500Response.ts +73 -0
  98. package/models/MatchRequirements.ts +100 -0
  99. package/models/MercadoPagoIPN.ts +135 -0
  100. package/models/NotificationType.ts +55 -0
  101. package/models/Occurrence.ts +84 -0
  102. package/models/PaymentDetail.ts +185 -0
  103. package/models/PaymentMethod.ts +56 -0
  104. package/models/PaymentRefund.ts +111 -0
  105. package/models/PaymentStatus.ts +55 -0
  106. package/models/PaymentTerms.ts +85 -0
  107. package/models/PlayPrice.ts +165 -0
  108. package/models/PlaySpot.ts +197 -0
  109. package/models/PlaySpotAvailabilityDetail.ts +89 -0
  110. package/models/PlaySpotDateSummary.ts +81 -0
  111. package/models/PlaySpotDeviceExecutionState.ts +127 -0
  112. package/models/PlaySpotDto.ts +185 -0
  113. package/models/PlaySpotShift.ts +184 -0
  114. package/models/PlaySpotShortDto.ts +97 -0
  115. package/models/PlaySubscription.ts +293 -0
  116. package/models/PlaySubscriptionCreateDto.ts +167 -0
  117. package/models/PlaySubscriptionParams.ts +114 -0
  118. package/models/PlaySubscriptionType.ts +55 -0
  119. package/models/PlayerCategory.ts +61 -0
  120. package/models/ProcessEmailMessageRequest.ts +66 -0
  121. package/models/ProcessMercadoPagoIPN200Response.ts +73 -0
  122. package/models/ProcessMercadoPagoPaymentParams.ts +83 -0
  123. package/models/ProcessMercadoPagoPaymentResponse.ts +83 -0
  124. package/models/ProcessMercadoPagoPaymentResponseResult.ts +89 -0
  125. package/models/RefundPolicy.ts +54 -0
  126. package/models/RegisterClub400Response.ts +65 -0
  127. package/models/RegisterClub401Response.ts +65 -0
  128. package/models/RegisterClub500Response.ts +65 -0
  129. package/models/RegisterClubParams.ts +191 -0
  130. package/models/RegisterClubResponse.ts +83 -0
  131. package/models/RegisterClubResponseResult.ts +96 -0
  132. package/models/RentHour.ts +73 -0
  133. package/models/ReservationAccessCodeResponse.ts +91 -0
  134. package/models/ReservationAccessCodeResponseResult.ts +107 -0
  135. package/models/ReservationParams.ts +121 -0
  136. package/models/ReservationStatus.ts +55 -0
  137. package/models/Reserve.ts +290 -0
  138. package/models/ReserveDto.ts +207 -0
  139. package/models/ReserveSlotDto.ts +81 -0
  140. package/models/ReserveStatus.ts +57 -0
  141. package/models/ReserveType.ts +58 -0
  142. package/models/SearchClubs400Response.ts +65 -0
  143. package/models/SearchClubs500Response.ts +65 -0
  144. package/models/SetAuthCodeDto.ts +85 -0
  145. package/models/Shift.ts +93 -0
  146. package/models/Sport.ts +61 -0
  147. package/models/SuccessResponse.ts +66 -0
  148. package/models/TimeOfDay.ts +54 -0
  149. package/models/TriggerDeviceAction200Response.ts +81 -0
  150. package/models/TriggerDeviceActionRequest.ts +73 -0
  151. package/models/UpdateReservationAdminRequest.ts +83 -0
  152. package/models/UpdateReserveDto.ts +83 -0
  153. package/models/UpdateUserNotificationDto.ts +73 -0
  154. package/models/User.ts +243 -0
  155. package/models/UserAuth.ts +135 -0
  156. package/models/UserDto.ts +142 -0
  157. package/models/UserNotification.ts +123 -0
  158. package/models/UserNotificationDto.ts +115 -0
  159. package/models/UserRating.ts +75 -0
  160. package/models/UserReserveDto.ts +230 -0
  161. package/models/UserRole.ts +53 -0
  162. package/models/UserSession.ts +129 -0
  163. package/models/UserSessionCustomer.ts +81 -0
  164. package/models/UserSportProfile.ts +117 -0
  165. package/models/UserSportProfileDto.ts +117 -0
  166. package/models/UserType.ts +54 -0
  167. package/models/VerifyPhoneNumber200Response.ts +65 -0
  168. package/models/VerifyPhoneNumberRequest.ts +66 -0
  169. package/models/index.ts +147 -0
  170. package/package.json +35 -0
  171. 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
+