@jugarhoy/api 1.0.8 → 1.0.10
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/AppPlayRegistrationApi.ts +177 -0
- package/apis/AppPlaySearchApi.ts +323 -0
- package/apis/AuthApi.ts +12 -12
- package/apis/NotificationsApi.ts +167 -0
- package/apis/index.ts +3 -0
- package/models/ClubPlace.ts +184 -0
- package/models/CreateClubPlaceRequest.ts +161 -0
- package/models/CreatePlayRegistrationRequest.ts +92 -0
- package/models/CreatePlaySearchRequest.ts +197 -0
- package/models/DominantSide.ts +53 -0
- package/models/MarkNotificationAsRead200Response.ts +65 -0
- package/models/Notification.ts +147 -0
- package/models/NotificationCategory.ts +58 -0
- package/models/NotificationChannelType.ts +55 -0
- package/models/NotificationDto.ts +139 -0
- package/models/NotificationListResponseDto.ts +89 -0
- package/models/NotificationType.ts +5 -5
- package/models/PlayRegistration.ts +159 -0
- package/models/PlayRegistrationDTO.ts +151 -0
- package/models/PlayRegistrationDTOUser.ts +97 -0
- package/models/PlayRegistrationListResponse.ts +97 -0
- package/models/PlayRegistrationType.ts +55 -0
- package/models/PlaySearch.ts +252 -0
- package/models/PlaySearchDTO.ts +266 -0
- package/models/PlaySearchDTOClubPlace.ts +121 -0
- package/models/PlaySearchDetailDTO.ts +296 -0
- package/models/PlaySearchDetailDTOAllOfCounts.ts +73 -0
- package/models/PlaySearchDetailDTOAllOfRegistrations.ts +124 -0
- package/models/PlaySearchDetailDTOAllOfUser.ts +89 -0
- package/models/PlaySearchListResponse.ts +97 -0
- package/models/PlaySearchStatus.ts +56 -0
- package/models/RegistrationStatus.ts +55 -0
- package/models/SubscriptionStatus.ts +58 -0
- package/models/UnreadCountResponseDto.ts +65 -0
- package/models/{UserNotification.ts → UserNotificationConfig.ts} +27 -27
- package/models/index.ts +29 -2
- package/package.json +1 -1
- package/models/RequestPasswordReset200Response.ts +0 -65
|
@@ -0,0 +1,121 @@
|
|
|
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 PlaySearchDTOClubPlace
|
|
20
|
+
*/
|
|
21
|
+
export interface PlaySearchDTOClubPlace {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof PlaySearchDTOClubPlace
|
|
26
|
+
*/
|
|
27
|
+
id?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof PlaySearchDTOClubPlace
|
|
32
|
+
*/
|
|
33
|
+
placeId?: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof PlaySearchDTOClubPlace
|
|
38
|
+
*/
|
|
39
|
+
name?: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof PlaySearchDTOClubPlace
|
|
44
|
+
*/
|
|
45
|
+
address?: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof PlaySearchDTOClubPlace
|
|
50
|
+
*/
|
|
51
|
+
latitude?: number;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {number}
|
|
55
|
+
* @memberof PlaySearchDTOClubPlace
|
|
56
|
+
*/
|
|
57
|
+
longitude?: number;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {number}
|
|
61
|
+
* @memberof PlaySearchDTOClubPlace
|
|
62
|
+
*/
|
|
63
|
+
rating?: number | null;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {Array<string>}
|
|
67
|
+
* @memberof PlaySearchDTOClubPlace
|
|
68
|
+
*/
|
|
69
|
+
photoUrls?: Array<string>;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Check if a given object implements the PlaySearchDTOClubPlace interface.
|
|
74
|
+
*/
|
|
75
|
+
export function instanceOfPlaySearchDTOClubPlace(value: object): value is PlaySearchDTOClubPlace {
|
|
76
|
+
return true;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function PlaySearchDTOClubPlaceFromJSON(json: any): PlaySearchDTOClubPlace {
|
|
80
|
+
return PlaySearchDTOClubPlaceFromJSONTyped(json, false);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function PlaySearchDTOClubPlaceFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlaySearchDTOClubPlace {
|
|
84
|
+
if (json == null) {
|
|
85
|
+
return json;
|
|
86
|
+
}
|
|
87
|
+
return {
|
|
88
|
+
|
|
89
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
90
|
+
'placeId': json['placeId'] == null ? undefined : json['placeId'],
|
|
91
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
92
|
+
'address': json['address'] == null ? undefined : json['address'],
|
|
93
|
+
'latitude': json['latitude'] == null ? undefined : json['latitude'],
|
|
94
|
+
'longitude': json['longitude'] == null ? undefined : json['longitude'],
|
|
95
|
+
'rating': json['rating'] == null ? undefined : json['rating'],
|
|
96
|
+
'photoUrls': json['photoUrls'] == null ? undefined : json['photoUrls'],
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export function PlaySearchDTOClubPlaceToJSON(json: any): PlaySearchDTOClubPlace {
|
|
101
|
+
return PlaySearchDTOClubPlaceToJSONTyped(json, false);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export function PlaySearchDTOClubPlaceToJSONTyped(value?: PlaySearchDTOClubPlace | null, ignoreDiscriminator: boolean = false): any {
|
|
105
|
+
if (value == null) {
|
|
106
|
+
return value;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
return {
|
|
110
|
+
|
|
111
|
+
'id': value['id'],
|
|
112
|
+
'placeId': value['placeId'],
|
|
113
|
+
'name': value['name'],
|
|
114
|
+
'address': value['address'],
|
|
115
|
+
'latitude': value['latitude'],
|
|
116
|
+
'longitude': value['longitude'],
|
|
117
|
+
'rating': value['rating'],
|
|
118
|
+
'photoUrls': value['photoUrls'],
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
|
|
@@ -0,0 +1,296 @@
|
|
|
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 { Sport } from './Sport';
|
|
17
|
+
import {
|
|
18
|
+
SportFromJSON,
|
|
19
|
+
SportFromJSONTyped,
|
|
20
|
+
SportToJSON,
|
|
21
|
+
SportToJSONTyped,
|
|
22
|
+
} from './Sport';
|
|
23
|
+
import type { PlaySearchStatus } from './PlaySearchStatus';
|
|
24
|
+
import {
|
|
25
|
+
PlaySearchStatusFromJSON,
|
|
26
|
+
PlaySearchStatusFromJSONTyped,
|
|
27
|
+
PlaySearchStatusToJSON,
|
|
28
|
+
PlaySearchStatusToJSONTyped,
|
|
29
|
+
} from './PlaySearchStatus';
|
|
30
|
+
import type { PlaySearchDetailDTOAllOfRegistrations } from './PlaySearchDetailDTOAllOfRegistrations';
|
|
31
|
+
import {
|
|
32
|
+
PlaySearchDetailDTOAllOfRegistrationsFromJSON,
|
|
33
|
+
PlaySearchDetailDTOAllOfRegistrationsFromJSONTyped,
|
|
34
|
+
PlaySearchDetailDTOAllOfRegistrationsToJSON,
|
|
35
|
+
PlaySearchDetailDTOAllOfRegistrationsToJSONTyped,
|
|
36
|
+
} from './PlaySearchDetailDTOAllOfRegistrations';
|
|
37
|
+
import type { PlaySearchDetailDTOAllOfCounts } from './PlaySearchDetailDTOAllOfCounts';
|
|
38
|
+
import {
|
|
39
|
+
PlaySearchDetailDTOAllOfCountsFromJSON,
|
|
40
|
+
PlaySearchDetailDTOAllOfCountsFromJSONTyped,
|
|
41
|
+
PlaySearchDetailDTOAllOfCountsToJSON,
|
|
42
|
+
PlaySearchDetailDTOAllOfCountsToJSONTyped,
|
|
43
|
+
} from './PlaySearchDetailDTOAllOfCounts';
|
|
44
|
+
import type { DominantSide } from './DominantSide';
|
|
45
|
+
import {
|
|
46
|
+
DominantSideFromJSON,
|
|
47
|
+
DominantSideFromJSONTyped,
|
|
48
|
+
DominantSideToJSON,
|
|
49
|
+
DominantSideToJSONTyped,
|
|
50
|
+
} from './DominantSide';
|
|
51
|
+
import type { PlayRegistrationDTOUser } from './PlayRegistrationDTOUser';
|
|
52
|
+
import {
|
|
53
|
+
PlayRegistrationDTOUserFromJSON,
|
|
54
|
+
PlayRegistrationDTOUserFromJSONTyped,
|
|
55
|
+
PlayRegistrationDTOUserToJSON,
|
|
56
|
+
PlayRegistrationDTOUserToJSONTyped,
|
|
57
|
+
} from './PlayRegistrationDTOUser';
|
|
58
|
+
import type { PlaySearchDTOClubPlace } from './PlaySearchDTOClubPlace';
|
|
59
|
+
import {
|
|
60
|
+
PlaySearchDTOClubPlaceFromJSON,
|
|
61
|
+
PlaySearchDTOClubPlaceFromJSONTyped,
|
|
62
|
+
PlaySearchDTOClubPlaceToJSON,
|
|
63
|
+
PlaySearchDTOClubPlaceToJSONTyped,
|
|
64
|
+
} from './PlaySearchDTOClubPlace';
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @export
|
|
69
|
+
* @interface PlaySearchDetailDTO
|
|
70
|
+
*/
|
|
71
|
+
export interface PlaySearchDetailDTO {
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof PlaySearchDetailDTO
|
|
76
|
+
*/
|
|
77
|
+
id: string;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {string}
|
|
81
|
+
* @memberof PlaySearchDetailDTO
|
|
82
|
+
*/
|
|
83
|
+
userId: string;
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @type {PlayRegistrationDTOUser}
|
|
87
|
+
* @memberof PlaySearchDetailDTO
|
|
88
|
+
*/
|
|
89
|
+
user?: PlayRegistrationDTOUser;
|
|
90
|
+
/**
|
|
91
|
+
*
|
|
92
|
+
* @type {PlaySearchDTOClubPlace}
|
|
93
|
+
* @memberof PlaySearchDetailDTO
|
|
94
|
+
*/
|
|
95
|
+
clubPlace: PlaySearchDTOClubPlace;
|
|
96
|
+
/**
|
|
97
|
+
*
|
|
98
|
+
* @type {Sport}
|
|
99
|
+
* @memberof PlaySearchDetailDTO
|
|
100
|
+
*/
|
|
101
|
+
sport: Sport;
|
|
102
|
+
/**
|
|
103
|
+
*
|
|
104
|
+
* @type {Date}
|
|
105
|
+
* @memberof PlaySearchDetailDTO
|
|
106
|
+
*/
|
|
107
|
+
matchDateTime: Date;
|
|
108
|
+
/**
|
|
109
|
+
*
|
|
110
|
+
* @type {number}
|
|
111
|
+
* @memberof PlaySearchDetailDTO
|
|
112
|
+
*/
|
|
113
|
+
duration: number;
|
|
114
|
+
/**
|
|
115
|
+
*
|
|
116
|
+
* @type {string}
|
|
117
|
+
* @memberof PlaySearchDetailDTO
|
|
118
|
+
*/
|
|
119
|
+
gender?: string | null;
|
|
120
|
+
/**
|
|
121
|
+
*
|
|
122
|
+
* @type {string}
|
|
123
|
+
* @memberof PlaySearchDetailDTO
|
|
124
|
+
*/
|
|
125
|
+
category?: string | null;
|
|
126
|
+
/**
|
|
127
|
+
*
|
|
128
|
+
* @type {DominantSide}
|
|
129
|
+
* @memberof PlaySearchDetailDTO
|
|
130
|
+
*/
|
|
131
|
+
dominantSide?: DominantSide;
|
|
132
|
+
/**
|
|
133
|
+
*
|
|
134
|
+
* @type {number}
|
|
135
|
+
* @memberof PlaySearchDetailDTO
|
|
136
|
+
*/
|
|
137
|
+
quota: number;
|
|
138
|
+
/**
|
|
139
|
+
*
|
|
140
|
+
* @type {number}
|
|
141
|
+
* @memberof PlaySearchDetailDTO
|
|
142
|
+
*/
|
|
143
|
+
quotaFilledCount: number;
|
|
144
|
+
/**
|
|
145
|
+
*
|
|
146
|
+
* @type {Date}
|
|
147
|
+
* @memberof PlaySearchDetailDTO
|
|
148
|
+
*/
|
|
149
|
+
registrationDeadline: Date;
|
|
150
|
+
/**
|
|
151
|
+
*
|
|
152
|
+
* @type {number}
|
|
153
|
+
* @memberof PlaySearchDetailDTO
|
|
154
|
+
*/
|
|
155
|
+
price?: number | null;
|
|
156
|
+
/**
|
|
157
|
+
*
|
|
158
|
+
* @type {string}
|
|
159
|
+
* @memberof PlaySearchDetailDTO
|
|
160
|
+
*/
|
|
161
|
+
currency?: string | null;
|
|
162
|
+
/**
|
|
163
|
+
*
|
|
164
|
+
* @type {string}
|
|
165
|
+
* @memberof PlaySearchDetailDTO
|
|
166
|
+
*/
|
|
167
|
+
paymentMethod: string;
|
|
168
|
+
/**
|
|
169
|
+
*
|
|
170
|
+
* @type {string}
|
|
171
|
+
* @memberof PlaySearchDetailDTO
|
|
172
|
+
*/
|
|
173
|
+
notes?: string | null;
|
|
174
|
+
/**
|
|
175
|
+
*
|
|
176
|
+
* @type {PlaySearchStatus}
|
|
177
|
+
* @memberof PlaySearchDetailDTO
|
|
178
|
+
*/
|
|
179
|
+
status: PlaySearchStatus;
|
|
180
|
+
/**
|
|
181
|
+
* Distance in meters (only present in nearby searches)
|
|
182
|
+
* @type {number}
|
|
183
|
+
* @memberof PlaySearchDetailDTO
|
|
184
|
+
*/
|
|
185
|
+
distance?: number | null;
|
|
186
|
+
/**
|
|
187
|
+
*
|
|
188
|
+
* @type {Date}
|
|
189
|
+
* @memberof PlaySearchDetailDTO
|
|
190
|
+
*/
|
|
191
|
+
createdAt?: Date;
|
|
192
|
+
/**
|
|
193
|
+
*
|
|
194
|
+
* @type {Array<PlaySearchDetailDTOAllOfRegistrations>}
|
|
195
|
+
* @memberof PlaySearchDetailDTO
|
|
196
|
+
*/
|
|
197
|
+
registrations?: Array<PlaySearchDetailDTOAllOfRegistrations>;
|
|
198
|
+
/**
|
|
199
|
+
*
|
|
200
|
+
* @type {PlaySearchDetailDTOAllOfCounts}
|
|
201
|
+
* @memberof PlaySearchDetailDTO
|
|
202
|
+
*/
|
|
203
|
+
counts?: PlaySearchDetailDTOAllOfCounts;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
/**
|
|
209
|
+
* Check if a given object implements the PlaySearchDetailDTO interface.
|
|
210
|
+
*/
|
|
211
|
+
export function instanceOfPlaySearchDetailDTO(value: object): value is PlaySearchDetailDTO {
|
|
212
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
213
|
+
if (!('userId' in value) || value['userId'] === undefined) return false;
|
|
214
|
+
if (!('clubPlace' in value) || value['clubPlace'] === undefined) return false;
|
|
215
|
+
if (!('sport' in value) || value['sport'] === undefined) return false;
|
|
216
|
+
if (!('matchDateTime' in value) || value['matchDateTime'] === undefined) return false;
|
|
217
|
+
if (!('duration' in value) || value['duration'] === undefined) return false;
|
|
218
|
+
if (!('quota' in value) || value['quota'] === undefined) return false;
|
|
219
|
+
if (!('quotaFilledCount' in value) || value['quotaFilledCount'] === undefined) return false;
|
|
220
|
+
if (!('registrationDeadline' in value) || value['registrationDeadline'] === undefined) return false;
|
|
221
|
+
if (!('paymentMethod' in value) || value['paymentMethod'] === undefined) return false;
|
|
222
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
223
|
+
return true;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
export function PlaySearchDetailDTOFromJSON(json: any): PlaySearchDetailDTO {
|
|
227
|
+
return PlaySearchDetailDTOFromJSONTyped(json, false);
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
export function PlaySearchDetailDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlaySearchDetailDTO {
|
|
231
|
+
if (json == null) {
|
|
232
|
+
return json;
|
|
233
|
+
}
|
|
234
|
+
return {
|
|
235
|
+
|
|
236
|
+
'id': json['id'],
|
|
237
|
+
'userId': json['userId'],
|
|
238
|
+
'user': json['user'] == null ? undefined : PlayRegistrationDTOUserFromJSON(json['user']),
|
|
239
|
+
'clubPlace': PlaySearchDTOClubPlaceFromJSON(json['clubPlace']),
|
|
240
|
+
'sport': SportFromJSON(json['sport']),
|
|
241
|
+
'matchDateTime': (new Date(json['matchDateTime'])),
|
|
242
|
+
'duration': json['duration'],
|
|
243
|
+
'gender': json['gender'] == null ? undefined : json['gender'],
|
|
244
|
+
'category': json['category'] == null ? undefined : json['category'],
|
|
245
|
+
'dominantSide': json['dominantSide'] == null ? undefined : DominantSideFromJSON(json['dominantSide']),
|
|
246
|
+
'quota': json['quota'],
|
|
247
|
+
'quotaFilledCount': json['quotaFilledCount'],
|
|
248
|
+
'registrationDeadline': (new Date(json['registrationDeadline'])),
|
|
249
|
+
'price': json['price'] == null ? undefined : json['price'],
|
|
250
|
+
'currency': json['currency'] == null ? undefined : json['currency'],
|
|
251
|
+
'paymentMethod': json['paymentMethod'],
|
|
252
|
+
'notes': json['notes'] == null ? undefined : json['notes'],
|
|
253
|
+
'status': PlaySearchStatusFromJSON(json['status']),
|
|
254
|
+
'distance': json['distance'] == null ? undefined : json['distance'],
|
|
255
|
+
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
256
|
+
'registrations': json['registrations'] == null ? undefined : ((json['registrations'] as Array<any>).map(PlaySearchDetailDTOAllOfRegistrationsFromJSON)),
|
|
257
|
+
'counts': json['counts'] == null ? undefined : PlaySearchDetailDTOAllOfCountsFromJSON(json['counts']),
|
|
258
|
+
};
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
export function PlaySearchDetailDTOToJSON(json: any): PlaySearchDetailDTO {
|
|
262
|
+
return PlaySearchDetailDTOToJSONTyped(json, false);
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
export function PlaySearchDetailDTOToJSONTyped(value?: PlaySearchDetailDTO | null, ignoreDiscriminator: boolean = false): any {
|
|
266
|
+
if (value == null) {
|
|
267
|
+
return value;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
return {
|
|
271
|
+
|
|
272
|
+
'id': value['id'],
|
|
273
|
+
'userId': value['userId'],
|
|
274
|
+
'user': PlayRegistrationDTOUserToJSON(value['user']),
|
|
275
|
+
'clubPlace': PlaySearchDTOClubPlaceToJSON(value['clubPlace']),
|
|
276
|
+
'sport': SportToJSON(value['sport']),
|
|
277
|
+
'matchDateTime': ((value['matchDateTime']).toISOString()),
|
|
278
|
+
'duration': value['duration'],
|
|
279
|
+
'gender': value['gender'],
|
|
280
|
+
'category': value['category'],
|
|
281
|
+
'dominantSide': DominantSideToJSON(value['dominantSide']),
|
|
282
|
+
'quota': value['quota'],
|
|
283
|
+
'quotaFilledCount': value['quotaFilledCount'],
|
|
284
|
+
'registrationDeadline': ((value['registrationDeadline']).toISOString()),
|
|
285
|
+
'price': value['price'],
|
|
286
|
+
'currency': value['currency'],
|
|
287
|
+
'paymentMethod': value['paymentMethod'],
|
|
288
|
+
'notes': value['notes'],
|
|
289
|
+
'status': PlaySearchStatusToJSON(value['status']),
|
|
290
|
+
'distance': value['distance'],
|
|
291
|
+
'createdAt': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
|
|
292
|
+
'registrations': value['registrations'] == null ? undefined : ((value['registrations'] as Array<any>).map(PlaySearchDetailDTOAllOfRegistrationsToJSON)),
|
|
293
|
+
'counts': PlaySearchDetailDTOAllOfCountsToJSON(value['counts']),
|
|
294
|
+
};
|
|
295
|
+
}
|
|
296
|
+
|
|
@@ -0,0 +1,73 @@
|
|
|
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 PlaySearchDetailDTOAllOfCounts
|
|
20
|
+
*/
|
|
21
|
+
export interface PlaySearchDetailDTOAllOfCounts {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof PlaySearchDetailDTOAllOfCounts
|
|
26
|
+
*/
|
|
27
|
+
primary?: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof PlaySearchDetailDTOAllOfCounts
|
|
32
|
+
*/
|
|
33
|
+
waitlist?: number;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the PlaySearchDetailDTOAllOfCounts interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfPlaySearchDetailDTOAllOfCounts(value: object): value is PlaySearchDetailDTOAllOfCounts {
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function PlaySearchDetailDTOAllOfCountsFromJSON(json: any): PlaySearchDetailDTOAllOfCounts {
|
|
44
|
+
return PlaySearchDetailDTOAllOfCountsFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function PlaySearchDetailDTOAllOfCountsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlaySearchDetailDTOAllOfCounts {
|
|
48
|
+
if (json == null) {
|
|
49
|
+
return json;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
|
|
53
|
+
'primary': json['primary'] == null ? undefined : json['primary'],
|
|
54
|
+
'waitlist': json['waitlist'] == null ? undefined : json['waitlist'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function PlaySearchDetailDTOAllOfCountsToJSON(json: any): PlaySearchDetailDTOAllOfCounts {
|
|
59
|
+
return PlaySearchDetailDTOAllOfCountsToJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function PlaySearchDetailDTOAllOfCountsToJSONTyped(value?: PlaySearchDetailDTOAllOfCounts | null, ignoreDiscriminator: boolean = false): any {
|
|
63
|
+
if (value == null) {
|
|
64
|
+
return value;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'primary': value['primary'],
|
|
70
|
+
'waitlist': value['waitlist'],
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -0,0 +1,124 @@
|
|
|
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 { PlaySearchDetailDTOAllOfUser } from './PlaySearchDetailDTOAllOfUser';
|
|
17
|
+
import {
|
|
18
|
+
PlaySearchDetailDTOAllOfUserFromJSON,
|
|
19
|
+
PlaySearchDetailDTOAllOfUserFromJSONTyped,
|
|
20
|
+
PlaySearchDetailDTOAllOfUserToJSON,
|
|
21
|
+
PlaySearchDetailDTOAllOfUserToJSONTyped,
|
|
22
|
+
} from './PlaySearchDetailDTOAllOfUser';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface PlaySearchDetailDTOAllOfRegistrations
|
|
28
|
+
*/
|
|
29
|
+
export interface PlaySearchDetailDTOAllOfRegistrations {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof PlaySearchDetailDTOAllOfRegistrations
|
|
34
|
+
*/
|
|
35
|
+
id?: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof PlaySearchDetailDTOAllOfRegistrations
|
|
40
|
+
*/
|
|
41
|
+
userId?: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {PlaySearchDetailDTOAllOfUser}
|
|
45
|
+
* @memberof PlaySearchDetailDTOAllOfRegistrations
|
|
46
|
+
*/
|
|
47
|
+
user?: PlaySearchDetailDTOAllOfUser;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof PlaySearchDetailDTOAllOfRegistrations
|
|
52
|
+
*/
|
|
53
|
+
status?: PlaySearchDetailDTOAllOfRegistrationsStatusEnum;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof PlaySearchDetailDTOAllOfRegistrations
|
|
58
|
+
*/
|
|
59
|
+
registrationOrder?: number;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {Date}
|
|
63
|
+
* @memberof PlaySearchDetailDTOAllOfRegistrations
|
|
64
|
+
*/
|
|
65
|
+
createdAt?: Date;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* @export
|
|
71
|
+
*/
|
|
72
|
+
export const PlaySearchDetailDTOAllOfRegistrationsStatusEnum = {
|
|
73
|
+
Primary: 'PRIMARY',
|
|
74
|
+
Waitlist: 'WAITLIST'
|
|
75
|
+
} as const;
|
|
76
|
+
export type PlaySearchDetailDTOAllOfRegistrationsStatusEnum = typeof PlaySearchDetailDTOAllOfRegistrationsStatusEnum[keyof typeof PlaySearchDetailDTOAllOfRegistrationsStatusEnum];
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Check if a given object implements the PlaySearchDetailDTOAllOfRegistrations interface.
|
|
81
|
+
*/
|
|
82
|
+
export function instanceOfPlaySearchDetailDTOAllOfRegistrations(value: object): value is PlaySearchDetailDTOAllOfRegistrations {
|
|
83
|
+
return true;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export function PlaySearchDetailDTOAllOfRegistrationsFromJSON(json: any): PlaySearchDetailDTOAllOfRegistrations {
|
|
87
|
+
return PlaySearchDetailDTOAllOfRegistrationsFromJSONTyped(json, false);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export function PlaySearchDetailDTOAllOfRegistrationsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlaySearchDetailDTOAllOfRegistrations {
|
|
91
|
+
if (json == null) {
|
|
92
|
+
return json;
|
|
93
|
+
}
|
|
94
|
+
return {
|
|
95
|
+
|
|
96
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
97
|
+
'userId': json['userId'] == null ? undefined : json['userId'],
|
|
98
|
+
'user': json['user'] == null ? undefined : PlaySearchDetailDTOAllOfUserFromJSON(json['user']),
|
|
99
|
+
'status': json['status'] == null ? undefined : json['status'],
|
|
100
|
+
'registrationOrder': json['registrationOrder'] == null ? undefined : json['registrationOrder'],
|
|
101
|
+
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export function PlaySearchDetailDTOAllOfRegistrationsToJSON(json: any): PlaySearchDetailDTOAllOfRegistrations {
|
|
106
|
+
return PlaySearchDetailDTOAllOfRegistrationsToJSONTyped(json, false);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export function PlaySearchDetailDTOAllOfRegistrationsToJSONTyped(value?: PlaySearchDetailDTOAllOfRegistrations | null, ignoreDiscriminator: boolean = false): any {
|
|
110
|
+
if (value == null) {
|
|
111
|
+
return value;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
return {
|
|
115
|
+
|
|
116
|
+
'id': value['id'],
|
|
117
|
+
'userId': value['userId'],
|
|
118
|
+
'user': PlaySearchDetailDTOAllOfUserToJSON(value['user']),
|
|
119
|
+
'status': value['status'],
|
|
120
|
+
'registrationOrder': value['registrationOrder'],
|
|
121
|
+
'createdAt': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
|
|
@@ -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
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface PlaySearchDetailDTOAllOfUser
|
|
20
|
+
*/
|
|
21
|
+
export interface PlaySearchDetailDTOAllOfUser {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof PlaySearchDetailDTOAllOfUser
|
|
26
|
+
*/
|
|
27
|
+
id?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof PlaySearchDetailDTOAllOfUser
|
|
32
|
+
*/
|
|
33
|
+
firstName?: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof PlaySearchDetailDTOAllOfUser
|
|
38
|
+
*/
|
|
39
|
+
lastName?: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof PlaySearchDetailDTOAllOfUser
|
|
44
|
+
*/
|
|
45
|
+
avatarUrl?: string | null;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the PlaySearchDetailDTOAllOfUser interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfPlaySearchDetailDTOAllOfUser(value: object): value is PlaySearchDetailDTOAllOfUser {
|
|
52
|
+
return true;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function PlaySearchDetailDTOAllOfUserFromJSON(json: any): PlaySearchDetailDTOAllOfUser {
|
|
56
|
+
return PlaySearchDetailDTOAllOfUserFromJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function PlaySearchDetailDTOAllOfUserFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlaySearchDetailDTOAllOfUser {
|
|
60
|
+
if (json == null) {
|
|
61
|
+
return json;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
|
|
65
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
66
|
+
'firstName': json['firstName'] == null ? undefined : json['firstName'],
|
|
67
|
+
'lastName': json['lastName'] == null ? undefined : json['lastName'],
|
|
68
|
+
'avatarUrl': json['avatarUrl'] == null ? undefined : json['avatarUrl'],
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function PlaySearchDetailDTOAllOfUserToJSON(json: any): PlaySearchDetailDTOAllOfUser {
|
|
73
|
+
return PlaySearchDetailDTOAllOfUserToJSONTyped(json, false);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function PlaySearchDetailDTOAllOfUserToJSONTyped(value?: PlaySearchDetailDTOAllOfUser | null, ignoreDiscriminator: boolean = false): any {
|
|
77
|
+
if (value == null) {
|
|
78
|
+
return value;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
return {
|
|
82
|
+
|
|
83
|
+
'id': value['id'],
|
|
84
|
+
'firstName': value['firstName'],
|
|
85
|
+
'lastName': value['lastName'],
|
|
86
|
+
'avatarUrl': value['avatarUrl'],
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
|