@jugarhoy/api 1.0.9 → 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/index.ts +2 -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/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/index.ts +21 -0
- package/package.json +1 -1
|
@@ -0,0 +1,266 @@
|
|
|
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 { DominantSide } from './DominantSide';
|
|
31
|
+
import {
|
|
32
|
+
DominantSideFromJSON,
|
|
33
|
+
DominantSideFromJSONTyped,
|
|
34
|
+
DominantSideToJSON,
|
|
35
|
+
DominantSideToJSONTyped,
|
|
36
|
+
} from './DominantSide';
|
|
37
|
+
import type { PlayRegistrationDTOUser } from './PlayRegistrationDTOUser';
|
|
38
|
+
import {
|
|
39
|
+
PlayRegistrationDTOUserFromJSON,
|
|
40
|
+
PlayRegistrationDTOUserFromJSONTyped,
|
|
41
|
+
PlayRegistrationDTOUserToJSON,
|
|
42
|
+
PlayRegistrationDTOUserToJSONTyped,
|
|
43
|
+
} from './PlayRegistrationDTOUser';
|
|
44
|
+
import type { PlaySearchDTOClubPlace } from './PlaySearchDTOClubPlace';
|
|
45
|
+
import {
|
|
46
|
+
PlaySearchDTOClubPlaceFromJSON,
|
|
47
|
+
PlaySearchDTOClubPlaceFromJSONTyped,
|
|
48
|
+
PlaySearchDTOClubPlaceToJSON,
|
|
49
|
+
PlaySearchDTOClubPlaceToJSONTyped,
|
|
50
|
+
} from './PlaySearchDTOClubPlace';
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @export
|
|
55
|
+
* @interface PlaySearchDTO
|
|
56
|
+
*/
|
|
57
|
+
export interface PlaySearchDTO {
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof PlaySearchDTO
|
|
62
|
+
*/
|
|
63
|
+
id: string;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {string}
|
|
67
|
+
* @memberof PlaySearchDTO
|
|
68
|
+
*/
|
|
69
|
+
userId: string;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {PlayRegistrationDTOUser}
|
|
73
|
+
* @memberof PlaySearchDTO
|
|
74
|
+
*/
|
|
75
|
+
user?: PlayRegistrationDTOUser;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @type {PlaySearchDTOClubPlace}
|
|
79
|
+
* @memberof PlaySearchDTO
|
|
80
|
+
*/
|
|
81
|
+
clubPlace: PlaySearchDTOClubPlace;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @type {Sport}
|
|
85
|
+
* @memberof PlaySearchDTO
|
|
86
|
+
*/
|
|
87
|
+
sport: Sport;
|
|
88
|
+
/**
|
|
89
|
+
*
|
|
90
|
+
* @type {Date}
|
|
91
|
+
* @memberof PlaySearchDTO
|
|
92
|
+
*/
|
|
93
|
+
matchDateTime: Date;
|
|
94
|
+
/**
|
|
95
|
+
*
|
|
96
|
+
* @type {number}
|
|
97
|
+
* @memberof PlaySearchDTO
|
|
98
|
+
*/
|
|
99
|
+
duration: number;
|
|
100
|
+
/**
|
|
101
|
+
*
|
|
102
|
+
* @type {string}
|
|
103
|
+
* @memberof PlaySearchDTO
|
|
104
|
+
*/
|
|
105
|
+
gender?: string | null;
|
|
106
|
+
/**
|
|
107
|
+
*
|
|
108
|
+
* @type {string}
|
|
109
|
+
* @memberof PlaySearchDTO
|
|
110
|
+
*/
|
|
111
|
+
category?: string | null;
|
|
112
|
+
/**
|
|
113
|
+
*
|
|
114
|
+
* @type {DominantSide}
|
|
115
|
+
* @memberof PlaySearchDTO
|
|
116
|
+
*/
|
|
117
|
+
dominantSide?: DominantSide;
|
|
118
|
+
/**
|
|
119
|
+
*
|
|
120
|
+
* @type {number}
|
|
121
|
+
* @memberof PlaySearchDTO
|
|
122
|
+
*/
|
|
123
|
+
quota: number;
|
|
124
|
+
/**
|
|
125
|
+
*
|
|
126
|
+
* @type {number}
|
|
127
|
+
* @memberof PlaySearchDTO
|
|
128
|
+
*/
|
|
129
|
+
quotaFilledCount: number;
|
|
130
|
+
/**
|
|
131
|
+
*
|
|
132
|
+
* @type {Date}
|
|
133
|
+
* @memberof PlaySearchDTO
|
|
134
|
+
*/
|
|
135
|
+
registrationDeadline: Date;
|
|
136
|
+
/**
|
|
137
|
+
*
|
|
138
|
+
* @type {number}
|
|
139
|
+
* @memberof PlaySearchDTO
|
|
140
|
+
*/
|
|
141
|
+
price?: number | null;
|
|
142
|
+
/**
|
|
143
|
+
*
|
|
144
|
+
* @type {string}
|
|
145
|
+
* @memberof PlaySearchDTO
|
|
146
|
+
*/
|
|
147
|
+
currency?: string | null;
|
|
148
|
+
/**
|
|
149
|
+
*
|
|
150
|
+
* @type {string}
|
|
151
|
+
* @memberof PlaySearchDTO
|
|
152
|
+
*/
|
|
153
|
+
paymentMethod: string;
|
|
154
|
+
/**
|
|
155
|
+
*
|
|
156
|
+
* @type {string}
|
|
157
|
+
* @memberof PlaySearchDTO
|
|
158
|
+
*/
|
|
159
|
+
notes?: string | null;
|
|
160
|
+
/**
|
|
161
|
+
*
|
|
162
|
+
* @type {PlaySearchStatus}
|
|
163
|
+
* @memberof PlaySearchDTO
|
|
164
|
+
*/
|
|
165
|
+
status: PlaySearchStatus;
|
|
166
|
+
/**
|
|
167
|
+
* Distance in meters (only present in nearby searches)
|
|
168
|
+
* @type {number}
|
|
169
|
+
* @memberof PlaySearchDTO
|
|
170
|
+
*/
|
|
171
|
+
distance?: number | null;
|
|
172
|
+
/**
|
|
173
|
+
*
|
|
174
|
+
* @type {Date}
|
|
175
|
+
* @memberof PlaySearchDTO
|
|
176
|
+
*/
|
|
177
|
+
createdAt?: Date;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* Check if a given object implements the PlaySearchDTO interface.
|
|
184
|
+
*/
|
|
185
|
+
export function instanceOfPlaySearchDTO(value: object): value is PlaySearchDTO {
|
|
186
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
187
|
+
if (!('userId' in value) || value['userId'] === undefined) return false;
|
|
188
|
+
if (!('clubPlace' in value) || value['clubPlace'] === undefined) return false;
|
|
189
|
+
if (!('sport' in value) || value['sport'] === undefined) return false;
|
|
190
|
+
if (!('matchDateTime' in value) || value['matchDateTime'] === undefined) return false;
|
|
191
|
+
if (!('duration' in value) || value['duration'] === undefined) return false;
|
|
192
|
+
if (!('quota' in value) || value['quota'] === undefined) return false;
|
|
193
|
+
if (!('quotaFilledCount' in value) || value['quotaFilledCount'] === undefined) return false;
|
|
194
|
+
if (!('registrationDeadline' in value) || value['registrationDeadline'] === undefined) return false;
|
|
195
|
+
if (!('paymentMethod' in value) || value['paymentMethod'] === undefined) return false;
|
|
196
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
197
|
+
return true;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
export function PlaySearchDTOFromJSON(json: any): PlaySearchDTO {
|
|
201
|
+
return PlaySearchDTOFromJSONTyped(json, false);
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
export function PlaySearchDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlaySearchDTO {
|
|
205
|
+
if (json == null) {
|
|
206
|
+
return json;
|
|
207
|
+
}
|
|
208
|
+
return {
|
|
209
|
+
|
|
210
|
+
'id': json['id'],
|
|
211
|
+
'userId': json['userId'],
|
|
212
|
+
'user': json['user'] == null ? undefined : PlayRegistrationDTOUserFromJSON(json['user']),
|
|
213
|
+
'clubPlace': PlaySearchDTOClubPlaceFromJSON(json['clubPlace']),
|
|
214
|
+
'sport': SportFromJSON(json['sport']),
|
|
215
|
+
'matchDateTime': (new Date(json['matchDateTime'])),
|
|
216
|
+
'duration': json['duration'],
|
|
217
|
+
'gender': json['gender'] == null ? undefined : json['gender'],
|
|
218
|
+
'category': json['category'] == null ? undefined : json['category'],
|
|
219
|
+
'dominantSide': json['dominantSide'] == null ? undefined : DominantSideFromJSON(json['dominantSide']),
|
|
220
|
+
'quota': json['quota'],
|
|
221
|
+
'quotaFilledCount': json['quotaFilledCount'],
|
|
222
|
+
'registrationDeadline': (new Date(json['registrationDeadline'])),
|
|
223
|
+
'price': json['price'] == null ? undefined : json['price'],
|
|
224
|
+
'currency': json['currency'] == null ? undefined : json['currency'],
|
|
225
|
+
'paymentMethod': json['paymentMethod'],
|
|
226
|
+
'notes': json['notes'] == null ? undefined : json['notes'],
|
|
227
|
+
'status': PlaySearchStatusFromJSON(json['status']),
|
|
228
|
+
'distance': json['distance'] == null ? undefined : json['distance'],
|
|
229
|
+
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
230
|
+
};
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
export function PlaySearchDTOToJSON(json: any): PlaySearchDTO {
|
|
234
|
+
return PlaySearchDTOToJSONTyped(json, false);
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
export function PlaySearchDTOToJSONTyped(value?: PlaySearchDTO | null, ignoreDiscriminator: boolean = false): any {
|
|
238
|
+
if (value == null) {
|
|
239
|
+
return value;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
return {
|
|
243
|
+
|
|
244
|
+
'id': value['id'],
|
|
245
|
+
'userId': value['userId'],
|
|
246
|
+
'user': PlayRegistrationDTOUserToJSON(value['user']),
|
|
247
|
+
'clubPlace': PlaySearchDTOClubPlaceToJSON(value['clubPlace']),
|
|
248
|
+
'sport': SportToJSON(value['sport']),
|
|
249
|
+
'matchDateTime': ((value['matchDateTime']).toISOString()),
|
|
250
|
+
'duration': value['duration'],
|
|
251
|
+
'gender': value['gender'],
|
|
252
|
+
'category': value['category'],
|
|
253
|
+
'dominantSide': DominantSideToJSON(value['dominantSide']),
|
|
254
|
+
'quota': value['quota'],
|
|
255
|
+
'quotaFilledCount': value['quotaFilledCount'],
|
|
256
|
+
'registrationDeadline': ((value['registrationDeadline']).toISOString()),
|
|
257
|
+
'price': value['price'],
|
|
258
|
+
'currency': value['currency'],
|
|
259
|
+
'paymentMethod': value['paymentMethod'],
|
|
260
|
+
'notes': value['notes'],
|
|
261
|
+
'status': PlaySearchStatusToJSON(value['status']),
|
|
262
|
+
'distance': value['distance'],
|
|
263
|
+
'createdAt': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
|
|
264
|
+
};
|
|
265
|
+
}
|
|
266
|
+
|
|
@@ -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
|
+
|