@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,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
+