@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,185 @@
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 PlaySpotDto
20
+ */
21
+ export interface PlaySpotDto {
22
+ /**
23
+ * ID of the location this play spot belongs to
24
+ * @type {string}
25
+ * @memberof PlaySpotDto
26
+ */
27
+ locationId: string;
28
+ /**
29
+ * Unique code for the play spot
30
+ * @type {string}
31
+ * @memberof PlaySpotDto
32
+ */
33
+ code: string;
34
+ /**
35
+ * Display name of the play spot
36
+ * @type {string}
37
+ * @memberof PlaySpotDto
38
+ */
39
+ name: string;
40
+ /**
41
+ * Description of the play spot
42
+ * @type {string}
43
+ * @memberof PlaySpotDto
44
+ */
45
+ description: string;
46
+ /**
47
+ * Type of play spot
48
+ * @type {string}
49
+ * @memberof PlaySpotDto
50
+ */
51
+ type: string;
52
+ /**
53
+ * Array of features available at this play spot
54
+ * @type {Array<string>}
55
+ * @memberof PlaySpotDto
56
+ */
57
+ features: Array<string>;
58
+ /**
59
+ * Sport type of the play spot
60
+ * @type {string}
61
+ * @memberof PlaySpotDto
62
+ */
63
+ sport: PlaySpotDtoSportEnum;
64
+ /**
65
+ * Array of picture URLs for the play spot
66
+ * @type {Array<string>}
67
+ * @memberof PlaySpotDto
68
+ */
69
+ pictureUrls?: Array<string>;
70
+ /**
71
+ * Indicates if this spot is a combination of other spots
72
+ * @type {boolean}
73
+ * @memberof PlaySpotDto
74
+ */
75
+ isCombined: boolean;
76
+ /**
77
+ * Array of play spot IDs that this spot combines
78
+ * @type {Array<string>}
79
+ * @memberof PlaySpotDto
80
+ */
81
+ playSpotCombined?: Array<string>;
82
+ /**
83
+ * Number of players that can play on this spot
84
+ * @type {number}
85
+ * @memberof PlaySpotDto
86
+ */
87
+ players: number;
88
+ /**
89
+ * Optional external reference value
90
+ * @type {string}
91
+ * @memberof PlaySpotDto
92
+ */
93
+ referenceValue?: string;
94
+ /**
95
+ * Optional source system for the reference
96
+ * @type {string}
97
+ * @memberof PlaySpotDto
98
+ */
99
+ referenceSource?: string;
100
+ }
101
+
102
+
103
+ /**
104
+ * @export
105
+ */
106
+ export const PlaySpotDtoSportEnum = {
107
+ Tennis: 'TENNIS',
108
+ Paddle: 'PADDLE',
109
+ PingPong: 'PING_PONG',
110
+ Pool: 'POOL',
111
+ Football: 'FOOTBALL',
112
+ Basketball: 'BASKETBALL'
113
+ } as const;
114
+ export type PlaySpotDtoSportEnum = typeof PlaySpotDtoSportEnum[keyof typeof PlaySpotDtoSportEnum];
115
+
116
+
117
+ /**
118
+ * Check if a given object implements the PlaySpotDto interface.
119
+ */
120
+ export function instanceOfPlaySpotDto(value: object): value is PlaySpotDto {
121
+ if (!('locationId' in value) || value['locationId'] === undefined) return false;
122
+ if (!('code' in value) || value['code'] === undefined) return false;
123
+ if (!('name' in value) || value['name'] === undefined) return false;
124
+ if (!('description' in value) || value['description'] === undefined) return false;
125
+ if (!('type' in value) || value['type'] === undefined) return false;
126
+ if (!('features' in value) || value['features'] === undefined) return false;
127
+ if (!('sport' in value) || value['sport'] === undefined) return false;
128
+ if (!('isCombined' in value) || value['isCombined'] === undefined) return false;
129
+ if (!('players' in value) || value['players'] === undefined) return false;
130
+ return true;
131
+ }
132
+
133
+ export function PlaySpotDtoFromJSON(json: any): PlaySpotDto {
134
+ return PlaySpotDtoFromJSONTyped(json, false);
135
+ }
136
+
137
+ export function PlaySpotDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlaySpotDto {
138
+ if (json == null) {
139
+ return json;
140
+ }
141
+ return {
142
+
143
+ 'locationId': json['locationId'],
144
+ 'code': json['code'],
145
+ 'name': json['name'],
146
+ 'description': json['description'],
147
+ 'type': json['type'],
148
+ 'features': json['features'],
149
+ 'sport': json['sport'],
150
+ 'pictureUrls': json['pictureUrls'] == null ? undefined : json['pictureUrls'],
151
+ 'isCombined': json['isCombined'],
152
+ 'playSpotCombined': json['playSpotCombined'] == null ? undefined : json['playSpotCombined'],
153
+ 'players': json['players'],
154
+ 'referenceValue': json['referenceValue'] == null ? undefined : json['referenceValue'],
155
+ 'referenceSource': json['referenceSource'] == null ? undefined : json['referenceSource'],
156
+ };
157
+ }
158
+
159
+ export function PlaySpotDtoToJSON(json: any): PlaySpotDto {
160
+ return PlaySpotDtoToJSONTyped(json, false);
161
+ }
162
+
163
+ export function PlaySpotDtoToJSONTyped(value?: PlaySpotDto | null, ignoreDiscriminator: boolean = false): any {
164
+ if (value == null) {
165
+ return value;
166
+ }
167
+
168
+ return {
169
+
170
+ 'locationId': value['locationId'],
171
+ 'code': value['code'],
172
+ 'name': value['name'],
173
+ 'description': value['description'],
174
+ 'type': value['type'],
175
+ 'features': value['features'],
176
+ 'sport': value['sport'],
177
+ 'pictureUrls': value['pictureUrls'],
178
+ 'isCombined': value['isCombined'],
179
+ 'playSpotCombined': value['playSpotCombined'],
180
+ 'players': value['players'],
181
+ 'referenceValue': value['referenceValue'],
182
+ 'referenceSource': value['referenceSource'],
183
+ };
184
+ }
185
+
@@ -0,0 +1,184 @@
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 PlaySpotShift
28
+ */
29
+ export interface PlaySpotShift {
30
+ /**
31
+ * Unique identifier for the shift
32
+ * @type {string}
33
+ * @memberof PlaySpotShift
34
+ */
35
+ id: string | null;
36
+ /**
37
+ * Creation timestamp
38
+ * @type {Date}
39
+ * @memberof PlaySpotShift
40
+ */
41
+ createdAt: Date;
42
+ /**
43
+ * Last update timestamp
44
+ * @type {Date}
45
+ * @memberof PlaySpotShift
46
+ */
47
+ updatedAt: Date;
48
+ /**
49
+ * Location ID of the shift
50
+ * @type {string}
51
+ * @memberof PlaySpotShift
52
+ */
53
+ locationId: string;
54
+ /**
55
+ * Type of the shift
56
+ * @type {string}
57
+ * @memberof PlaySpotShift
58
+ */
59
+ type: PlaySpotShiftTypeEnum;
60
+ /**
61
+ * Name of the shift
62
+ * @type {string}
63
+ * @memberof PlaySpotShift
64
+ */
65
+ name: string;
66
+ /**
67
+ * IDs of play spots included in this shift
68
+ * @type {Array<string>}
69
+ * @memberof PlaySpotShift
70
+ */
71
+ playSpotIds: Array<string>;
72
+ /**
73
+ * IDs of coaches for this shift
74
+ * @type {Array<string>}
75
+ * @memberof PlaySpotShift
76
+ */
77
+ coachIds: Array<string>;
78
+ /**
79
+ * Days of the week when this shift occurs
80
+ * @type {Array<DayOfWeek>}
81
+ * @memberof PlaySpotShift
82
+ */
83
+ days: Array<DayOfWeek>;
84
+ /**
85
+ * Start time in HH:MM format (e.g., "09:15", "14:30")
86
+ * @type {string}
87
+ * @memberof PlaySpotShift
88
+ */
89
+ fromHour: string;
90
+ /**
91
+ * End time in HH:MM format (e.g., "09:15", "14:30")
92
+ * @type {string}
93
+ * @memberof PlaySpotShift
94
+ */
95
+ toHour: string;
96
+ /**
97
+ * Allowed durations in minutes
98
+ * @type {Array<number>}
99
+ * @memberof PlaySpotShift
100
+ */
101
+ durations: Array<number>;
102
+ }
103
+
104
+
105
+ /**
106
+ * @export
107
+ */
108
+ export const PlaySpotShiftTypeEnum = {
109
+ Play: 'play',
110
+ Coach: 'coach'
111
+ } as const;
112
+ export type PlaySpotShiftTypeEnum = typeof PlaySpotShiftTypeEnum[keyof typeof PlaySpotShiftTypeEnum];
113
+
114
+
115
+ /**
116
+ * Check if a given object implements the PlaySpotShift interface.
117
+ */
118
+ export function instanceOfPlaySpotShift(value: object): value is PlaySpotShift {
119
+ if (!('id' in value) || value['id'] === undefined) return false;
120
+ if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
121
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
122
+ if (!('locationId' in value) || value['locationId'] === undefined) return false;
123
+ if (!('type' in value) || value['type'] === undefined) return false;
124
+ if (!('name' in value) || value['name'] === undefined) return false;
125
+ if (!('playSpotIds' in value) || value['playSpotIds'] === undefined) return false;
126
+ if (!('coachIds' in value) || value['coachIds'] === undefined) return false;
127
+ if (!('days' in value) || value['days'] === undefined) return false;
128
+ if (!('fromHour' in value) || value['fromHour'] === undefined) return false;
129
+ if (!('toHour' in value) || value['toHour'] === undefined) return false;
130
+ if (!('durations' in value) || value['durations'] === undefined) return false;
131
+ return true;
132
+ }
133
+
134
+ export function PlaySpotShiftFromJSON(json: any): PlaySpotShift {
135
+ return PlaySpotShiftFromJSONTyped(json, false);
136
+ }
137
+
138
+ export function PlaySpotShiftFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlaySpotShift {
139
+ if (json == null) {
140
+ return json;
141
+ }
142
+ return {
143
+
144
+ 'id': json['id'],
145
+ 'createdAt': (new Date(json['createdAt'])),
146
+ 'updatedAt': (new Date(json['updatedAt'])),
147
+ 'locationId': json['locationId'],
148
+ 'type': json['type'],
149
+ 'name': json['name'],
150
+ 'playSpotIds': json['playSpotIds'],
151
+ 'coachIds': json['coachIds'],
152
+ 'days': ((json['days'] as Array<any>).map(DayOfWeekFromJSON)),
153
+ 'fromHour': json['fromHour'],
154
+ 'toHour': json['toHour'],
155
+ 'durations': json['durations'],
156
+ };
157
+ }
158
+
159
+ export function PlaySpotShiftToJSON(json: any): PlaySpotShift {
160
+ return PlaySpotShiftToJSONTyped(json, false);
161
+ }
162
+
163
+ export function PlaySpotShiftToJSONTyped(value?: PlaySpotShift | null, ignoreDiscriminator: boolean = false): any {
164
+ if (value == null) {
165
+ return value;
166
+ }
167
+
168
+ return {
169
+
170
+ 'id': value['id'],
171
+ 'createdAt': ((value['createdAt']).toISOString()),
172
+ 'updatedAt': ((value['updatedAt']).toISOString()),
173
+ 'locationId': value['locationId'],
174
+ 'type': value['type'],
175
+ 'name': value['name'],
176
+ 'playSpotIds': value['playSpotIds'],
177
+ 'coachIds': value['coachIds'],
178
+ 'days': ((value['days'] as Array<any>).map(DayOfWeekToJSON)),
179
+ 'fromHour': value['fromHour'],
180
+ 'toHour': value['toHour'],
181
+ 'durations': value['durations'],
182
+ };
183
+ }
184
+
@@ -0,0 +1,97 @@
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 PlaySpotShortDto
20
+ */
21
+ export interface PlaySpotShortDto {
22
+ /**
23
+ * Unique identifier of the play spot
24
+ * @type {string}
25
+ * @memberof PlaySpotShortDto
26
+ */
27
+ id?: string;
28
+ /**
29
+ * Code identifier for the play spot
30
+ * @type {string}
31
+ * @memberof PlaySpotShortDto
32
+ */
33
+ code?: string;
34
+ /**
35
+ * Name of the play spot
36
+ * @type {string}
37
+ * @memberof PlaySpotShortDto
38
+ */
39
+ name?: string;
40
+ /**
41
+ * Type of the play spot
42
+ * @type {string}
43
+ * @memberof PlaySpotShortDto
44
+ */
45
+ type?: string;
46
+ /**
47
+ * List of features available at the play spot
48
+ * @type {Array<string>}
49
+ * @memberof PlaySpotShortDto
50
+ */
51
+ features?: Array<string>;
52
+ }
53
+
54
+ /**
55
+ * Check if a given object implements the PlaySpotShortDto interface.
56
+ */
57
+ export function instanceOfPlaySpotShortDto(value: object): value is PlaySpotShortDto {
58
+ return true;
59
+ }
60
+
61
+ export function PlaySpotShortDtoFromJSON(json: any): PlaySpotShortDto {
62
+ return PlaySpotShortDtoFromJSONTyped(json, false);
63
+ }
64
+
65
+ export function PlaySpotShortDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlaySpotShortDto {
66
+ if (json == null) {
67
+ return json;
68
+ }
69
+ return {
70
+
71
+ 'id': json['id'] == null ? undefined : json['id'],
72
+ 'code': json['code'] == null ? undefined : json['code'],
73
+ 'name': json['name'] == null ? undefined : json['name'],
74
+ 'type': json['type'] == null ? undefined : json['type'],
75
+ 'features': json['features'] == null ? undefined : json['features'],
76
+ };
77
+ }
78
+
79
+ export function PlaySpotShortDtoToJSON(json: any): PlaySpotShortDto {
80
+ return PlaySpotShortDtoToJSONTyped(json, false);
81
+ }
82
+
83
+ export function PlaySpotShortDtoToJSONTyped(value?: PlaySpotShortDto | null, ignoreDiscriminator: boolean = false): any {
84
+ if (value == null) {
85
+ return value;
86
+ }
87
+
88
+ return {
89
+
90
+ 'id': value['id'],
91
+ 'code': value['code'],
92
+ 'name': value['name'],
93
+ 'type': value['type'],
94
+ 'features': value['features'],
95
+ };
96
+ }
97
+