@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,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 { PlayRegistrationDTO } from './PlayRegistrationDTO';
|
|
17
|
+
import {
|
|
18
|
+
PlayRegistrationDTOFromJSON,
|
|
19
|
+
PlayRegistrationDTOFromJSONTyped,
|
|
20
|
+
PlayRegistrationDTOToJSON,
|
|
21
|
+
PlayRegistrationDTOToJSONTyped,
|
|
22
|
+
} from './PlayRegistrationDTO';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface PlayRegistrationListResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface PlayRegistrationListResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<PlayRegistrationDTO>}
|
|
33
|
+
* @memberof PlayRegistrationListResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<PlayRegistrationDTO>;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof PlayRegistrationListResponse
|
|
40
|
+
*/
|
|
41
|
+
total?: number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof PlayRegistrationListResponse
|
|
46
|
+
*/
|
|
47
|
+
page?: number;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof PlayRegistrationListResponse
|
|
52
|
+
*/
|
|
53
|
+
size?: number;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the PlayRegistrationListResponse interface.
|
|
58
|
+
*/
|
|
59
|
+
export function instanceOfPlayRegistrationListResponse(value: object): value is PlayRegistrationListResponse {
|
|
60
|
+
return true;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function PlayRegistrationListResponseFromJSON(json: any): PlayRegistrationListResponse {
|
|
64
|
+
return PlayRegistrationListResponseFromJSONTyped(json, false);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function PlayRegistrationListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlayRegistrationListResponse {
|
|
68
|
+
if (json == null) {
|
|
69
|
+
return json;
|
|
70
|
+
}
|
|
71
|
+
return {
|
|
72
|
+
|
|
73
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(PlayRegistrationDTOFromJSON)),
|
|
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 PlayRegistrationListResponseToJSON(json: any): PlayRegistrationListResponse {
|
|
81
|
+
return PlayRegistrationListResponseToJSONTyped(json, false);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function PlayRegistrationListResponseToJSONTyped(value?: PlayRegistrationListResponse | 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(PlayRegistrationDTOToJSON)),
|
|
92
|
+
'total': value['total'],
|
|
93
|
+
'page': value['page'],
|
|
94
|
+
'size': value['size'],
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
|
|
@@ -0,0 +1,55 @@
|
|
|
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
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Type of play registration
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const PlayRegistrationType = {
|
|
21
|
+
Falta1: 'FALTA1',
|
|
22
|
+
Tournament: 'TOURNAMENT',
|
|
23
|
+
WeeklyMatch: 'WEEKLY_MATCH',
|
|
24
|
+
Training: 'TRAINING'
|
|
25
|
+
} as const;
|
|
26
|
+
export type PlayRegistrationType = typeof PlayRegistrationType[keyof typeof PlayRegistrationType];
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
export function instanceOfPlayRegistrationType(value: any): boolean {
|
|
30
|
+
for (const key in PlayRegistrationType) {
|
|
31
|
+
if (Object.prototype.hasOwnProperty.call(PlayRegistrationType, key)) {
|
|
32
|
+
if (PlayRegistrationType[key as keyof typeof PlayRegistrationType] === value) {
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
return false;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export function PlayRegistrationTypeFromJSON(json: any): PlayRegistrationType {
|
|
41
|
+
return PlayRegistrationTypeFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export function PlayRegistrationTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlayRegistrationType {
|
|
45
|
+
return json as PlayRegistrationType;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export function PlayRegistrationTypeToJSON(value?: PlayRegistrationType | null): any {
|
|
49
|
+
return value as any;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function PlayRegistrationTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): PlayRegistrationType {
|
|
53
|
+
return value as PlayRegistrationType;
|
|
54
|
+
}
|
|
55
|
+
|
|
@@ -0,0 +1,252 @@
|
|
|
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
|
+
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @export
|
|
41
|
+
* @interface PlaySearch
|
|
42
|
+
*/
|
|
43
|
+
export interface PlaySearch {
|
|
44
|
+
/**
|
|
45
|
+
* Unique identifier for the search
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof PlaySearch
|
|
48
|
+
*/
|
|
49
|
+
id: string;
|
|
50
|
+
/**
|
|
51
|
+
* ID of the user who created the search
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof PlaySearch
|
|
54
|
+
*/
|
|
55
|
+
userId: string;
|
|
56
|
+
/**
|
|
57
|
+
* Reference to ClubPlace (Google Maps location)
|
|
58
|
+
* @type {string}
|
|
59
|
+
* @memberof PlaySearch
|
|
60
|
+
*/
|
|
61
|
+
clubPlaceId: string;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {Sport}
|
|
65
|
+
* @memberof PlaySearch
|
|
66
|
+
*/
|
|
67
|
+
sport: Sport;
|
|
68
|
+
/**
|
|
69
|
+
* When the match will happen
|
|
70
|
+
* @type {Date}
|
|
71
|
+
* @memberof PlaySearch
|
|
72
|
+
*/
|
|
73
|
+
matchDateTime: Date;
|
|
74
|
+
/**
|
|
75
|
+
* Match duration in minutes
|
|
76
|
+
* @type {number}
|
|
77
|
+
* @memberof PlaySearch
|
|
78
|
+
*/
|
|
79
|
+
duration: number;
|
|
80
|
+
/**
|
|
81
|
+
* Gender requirement (MALE, FEMALE, MIXED, ALL)
|
|
82
|
+
* @type {string}
|
|
83
|
+
* @memberof PlaySearch
|
|
84
|
+
*/
|
|
85
|
+
gender?: string | null;
|
|
86
|
+
/**
|
|
87
|
+
* Skill level category (e.g., Intermedio, Avanzado)
|
|
88
|
+
* @type {string}
|
|
89
|
+
* @memberof PlaySearch
|
|
90
|
+
*/
|
|
91
|
+
category?: string | null;
|
|
92
|
+
/**
|
|
93
|
+
*
|
|
94
|
+
* @type {DominantSide}
|
|
95
|
+
* @memberof PlaySearch
|
|
96
|
+
*/
|
|
97
|
+
dominantSide?: DominantSide;
|
|
98
|
+
/**
|
|
99
|
+
* Maximum number of players needed
|
|
100
|
+
* @type {number}
|
|
101
|
+
* @memberof PlaySearch
|
|
102
|
+
*/
|
|
103
|
+
quota: number;
|
|
104
|
+
/**
|
|
105
|
+
* Current number of PRIMARY registrations
|
|
106
|
+
* @type {number}
|
|
107
|
+
* @memberof PlaySearch
|
|
108
|
+
*/
|
|
109
|
+
quotaFilledCount: number;
|
|
110
|
+
/**
|
|
111
|
+
* Last moment to register
|
|
112
|
+
* @type {Date}
|
|
113
|
+
* @memberof PlaySearch
|
|
114
|
+
*/
|
|
115
|
+
registrationDeadline: Date;
|
|
116
|
+
/**
|
|
117
|
+
* Price per player
|
|
118
|
+
* @type {number}
|
|
119
|
+
* @memberof PlaySearch
|
|
120
|
+
*/
|
|
121
|
+
price?: number | null;
|
|
122
|
+
/**
|
|
123
|
+
* Currency code
|
|
124
|
+
* @type {string}
|
|
125
|
+
* @memberof PlaySearch
|
|
126
|
+
*/
|
|
127
|
+
currency?: string | null;
|
|
128
|
+
/**
|
|
129
|
+
* Payment method (CASH, TRANSFER, MERCADOPAGO)
|
|
130
|
+
* @type {string}
|
|
131
|
+
* @memberof PlaySearch
|
|
132
|
+
*/
|
|
133
|
+
paymentMethod: string;
|
|
134
|
+
/**
|
|
135
|
+
* Additional notes from the creator
|
|
136
|
+
* @type {string}
|
|
137
|
+
* @memberof PlaySearch
|
|
138
|
+
*/
|
|
139
|
+
notes?: string | null;
|
|
140
|
+
/**
|
|
141
|
+
*
|
|
142
|
+
* @type {PlaySearchStatus}
|
|
143
|
+
* @memberof PlaySearch
|
|
144
|
+
*/
|
|
145
|
+
status: PlaySearchStatus;
|
|
146
|
+
/**
|
|
147
|
+
* Optional link to a reservation
|
|
148
|
+
* @type {string}
|
|
149
|
+
* @memberof PlaySearch
|
|
150
|
+
*/
|
|
151
|
+
reserveId?: string | null;
|
|
152
|
+
/**
|
|
153
|
+
*
|
|
154
|
+
* @type {Date}
|
|
155
|
+
* @memberof PlaySearch
|
|
156
|
+
*/
|
|
157
|
+
createdAt?: Date;
|
|
158
|
+
/**
|
|
159
|
+
*
|
|
160
|
+
* @type {Date}
|
|
161
|
+
* @memberof PlaySearch
|
|
162
|
+
*/
|
|
163
|
+
updatedAt?: Date;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* Check if a given object implements the PlaySearch interface.
|
|
170
|
+
*/
|
|
171
|
+
export function instanceOfPlaySearch(value: object): value is PlaySearch {
|
|
172
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
173
|
+
if (!('userId' in value) || value['userId'] === undefined) return false;
|
|
174
|
+
if (!('clubPlaceId' in value) || value['clubPlaceId'] === undefined) return false;
|
|
175
|
+
if (!('sport' in value) || value['sport'] === undefined) return false;
|
|
176
|
+
if (!('matchDateTime' in value) || value['matchDateTime'] === undefined) return false;
|
|
177
|
+
if (!('duration' in value) || value['duration'] === undefined) return false;
|
|
178
|
+
if (!('quota' in value) || value['quota'] === undefined) return false;
|
|
179
|
+
if (!('quotaFilledCount' in value) || value['quotaFilledCount'] === undefined) return false;
|
|
180
|
+
if (!('registrationDeadline' in value) || value['registrationDeadline'] === undefined) return false;
|
|
181
|
+
if (!('paymentMethod' in value) || value['paymentMethod'] === undefined) return false;
|
|
182
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
183
|
+
return true;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
export function PlaySearchFromJSON(json: any): PlaySearch {
|
|
187
|
+
return PlaySearchFromJSONTyped(json, false);
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
export function PlaySearchFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlaySearch {
|
|
191
|
+
if (json == null) {
|
|
192
|
+
return json;
|
|
193
|
+
}
|
|
194
|
+
return {
|
|
195
|
+
|
|
196
|
+
'id': json['id'],
|
|
197
|
+
'userId': json['userId'],
|
|
198
|
+
'clubPlaceId': json['clubPlaceId'],
|
|
199
|
+
'sport': SportFromJSON(json['sport']),
|
|
200
|
+
'matchDateTime': (new Date(json['matchDateTime'])),
|
|
201
|
+
'duration': json['duration'],
|
|
202
|
+
'gender': json['gender'] == null ? undefined : json['gender'],
|
|
203
|
+
'category': json['category'] == null ? undefined : json['category'],
|
|
204
|
+
'dominantSide': json['dominantSide'] == null ? undefined : DominantSideFromJSON(json['dominantSide']),
|
|
205
|
+
'quota': json['quota'],
|
|
206
|
+
'quotaFilledCount': json['quotaFilledCount'],
|
|
207
|
+
'registrationDeadline': (new Date(json['registrationDeadline'])),
|
|
208
|
+
'price': json['price'] == null ? undefined : json['price'],
|
|
209
|
+
'currency': json['currency'] == null ? undefined : json['currency'],
|
|
210
|
+
'paymentMethod': json['paymentMethod'],
|
|
211
|
+
'notes': json['notes'] == null ? undefined : json['notes'],
|
|
212
|
+
'status': PlaySearchStatusFromJSON(json['status']),
|
|
213
|
+
'reserveId': json['reserveId'] == null ? undefined : json['reserveId'],
|
|
214
|
+
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
215
|
+
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
216
|
+
};
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
export function PlaySearchToJSON(json: any): PlaySearch {
|
|
220
|
+
return PlaySearchToJSONTyped(json, false);
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
export function PlaySearchToJSONTyped(value?: PlaySearch | null, ignoreDiscriminator: boolean = false): any {
|
|
224
|
+
if (value == null) {
|
|
225
|
+
return value;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
return {
|
|
229
|
+
|
|
230
|
+
'id': value['id'],
|
|
231
|
+
'userId': value['userId'],
|
|
232
|
+
'clubPlaceId': value['clubPlaceId'],
|
|
233
|
+
'sport': SportToJSON(value['sport']),
|
|
234
|
+
'matchDateTime': ((value['matchDateTime']).toISOString()),
|
|
235
|
+
'duration': value['duration'],
|
|
236
|
+
'gender': value['gender'],
|
|
237
|
+
'category': value['category'],
|
|
238
|
+
'dominantSide': DominantSideToJSON(value['dominantSide']),
|
|
239
|
+
'quota': value['quota'],
|
|
240
|
+
'quotaFilledCount': value['quotaFilledCount'],
|
|
241
|
+
'registrationDeadline': ((value['registrationDeadline']).toISOString()),
|
|
242
|
+
'price': value['price'],
|
|
243
|
+
'currency': value['currency'],
|
|
244
|
+
'paymentMethod': value['paymentMethod'],
|
|
245
|
+
'notes': value['notes'],
|
|
246
|
+
'status': PlaySearchStatusToJSON(value['status']),
|
|
247
|
+
'reserveId': value['reserveId'],
|
|
248
|
+
'createdAt': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
|
|
249
|
+
'updatedAt': value['updatedAt'] == null ? undefined : ((value['updatedAt']).toISOString()),
|
|
250
|
+
};
|
|
251
|
+
}
|
|
252
|
+
|
|
@@ -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
|
+
|