@jugarhoy/api 1.0.9 → 1.1.1

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.
@@ -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,105 @@
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
+ * Only included for search owners
48
+ * @type {string}
49
+ * @memberof PlaySearchDetailDTOAllOfUser
50
+ */
51
+ email?: string;
52
+ /**
53
+ * Only included for search owners
54
+ * @type {string}
55
+ * @memberof PlaySearchDetailDTOAllOfUser
56
+ */
57
+ phone?: string | null;
58
+ }
59
+
60
+ /**
61
+ * Check if a given object implements the PlaySearchDetailDTOAllOfUser interface.
62
+ */
63
+ export function instanceOfPlaySearchDetailDTOAllOfUser(value: object): value is PlaySearchDetailDTOAllOfUser {
64
+ return true;
65
+ }
66
+
67
+ export function PlaySearchDetailDTOAllOfUserFromJSON(json: any): PlaySearchDetailDTOAllOfUser {
68
+ return PlaySearchDetailDTOAllOfUserFromJSONTyped(json, false);
69
+ }
70
+
71
+ export function PlaySearchDetailDTOAllOfUserFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlaySearchDetailDTOAllOfUser {
72
+ if (json == null) {
73
+ return json;
74
+ }
75
+ return {
76
+
77
+ 'id': json['id'] == null ? undefined : json['id'],
78
+ 'firstName': json['firstName'] == null ? undefined : json['firstName'],
79
+ 'lastName': json['lastName'] == null ? undefined : json['lastName'],
80
+ 'avatarUrl': json['avatarUrl'] == null ? undefined : json['avatarUrl'],
81
+ 'email': json['email'] == null ? undefined : json['email'],
82
+ 'phone': json['phone'] == null ? undefined : json['phone'],
83
+ };
84
+ }
85
+
86
+ export function PlaySearchDetailDTOAllOfUserToJSON(json: any): PlaySearchDetailDTOAllOfUser {
87
+ return PlaySearchDetailDTOAllOfUserToJSONTyped(json, false);
88
+ }
89
+
90
+ export function PlaySearchDetailDTOAllOfUserToJSONTyped(value?: PlaySearchDetailDTOAllOfUser | null, ignoreDiscriminator: boolean = false): any {
91
+ if (value == null) {
92
+ return value;
93
+ }
94
+
95
+ return {
96
+
97
+ 'id': value['id'],
98
+ 'firstName': value['firstName'],
99
+ 'lastName': value['lastName'],
100
+ 'avatarUrl': value['avatarUrl'],
101
+ 'email': value['email'],
102
+ 'phone': value['phone'],
103
+ };
104
+ }
105
+
@@ -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
+ import type { PlaySearchDTO } from './PlaySearchDTO';
17
+ import {
18
+ PlaySearchDTOFromJSON,
19
+ PlaySearchDTOFromJSONTyped,
20
+ PlaySearchDTOToJSON,
21
+ PlaySearchDTOToJSONTyped,
22
+ } from './PlaySearchDTO';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface PlaySearchListResponse
28
+ */
29
+ export interface PlaySearchListResponse {
30
+ /**
31
+ *
32
+ * @type {Array<PlaySearchDTO>}
33
+ * @memberof PlaySearchListResponse
34
+ */
35
+ data?: Array<PlaySearchDTO>;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof PlaySearchListResponse
40
+ */
41
+ total?: number;
42
+ /**
43
+ *
44
+ * @type {number}
45
+ * @memberof PlaySearchListResponse
46
+ */
47
+ page?: number;
48
+ /**
49
+ *
50
+ * @type {number}
51
+ * @memberof PlaySearchListResponse
52
+ */
53
+ size?: number;
54
+ }
55
+
56
+ /**
57
+ * Check if a given object implements the PlaySearchListResponse interface.
58
+ */
59
+ export function instanceOfPlaySearchListResponse(value: object): value is PlaySearchListResponse {
60
+ return true;
61
+ }
62
+
63
+ export function PlaySearchListResponseFromJSON(json: any): PlaySearchListResponse {
64
+ return PlaySearchListResponseFromJSONTyped(json, false);
65
+ }
66
+
67
+ export function PlaySearchListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlaySearchListResponse {
68
+ if (json == null) {
69
+ return json;
70
+ }
71
+ return {
72
+
73
+ 'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(PlaySearchDTOFromJSON)),
74
+ 'total': json['total'] == null ? undefined : json['total'],
75
+ 'page': json['page'] == null ? undefined : json['page'],
76
+ 'size': json['size'] == null ? undefined : json['size'],
77
+ };
78
+ }
79
+
80
+ export function PlaySearchListResponseToJSON(json: any): PlaySearchListResponse {
81
+ return PlaySearchListResponseToJSONTyped(json, false);
82
+ }
83
+
84
+ export function PlaySearchListResponseToJSONTyped(value?: PlaySearchListResponse | null, ignoreDiscriminator: boolean = false): any {
85
+ if (value == null) {
86
+ return value;
87
+ }
88
+
89
+ return {
90
+
91
+ 'data': value['data'] == null ? undefined : ((value['data'] as Array<any>).map(PlaySearchDTOToJSON)),
92
+ 'total': value['total'],
93
+ 'page': value['page'],
94
+ 'size': value['size'],
95
+ };
96
+ }
97
+