@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.
@@ -0,0 +1,151 @@
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 { RegistrationStatus } from './RegistrationStatus';
17
+ import {
18
+ RegistrationStatusFromJSON,
19
+ RegistrationStatusFromJSONTyped,
20
+ RegistrationStatusToJSON,
21
+ RegistrationStatusToJSONTyped,
22
+ } from './RegistrationStatus';
23
+ import type { PlayRegistrationType } from './PlayRegistrationType';
24
+ import {
25
+ PlayRegistrationTypeFromJSON,
26
+ PlayRegistrationTypeFromJSONTyped,
27
+ PlayRegistrationTypeToJSON,
28
+ PlayRegistrationTypeToJSONTyped,
29
+ } from './PlayRegistrationType';
30
+ import type { PlayRegistrationDTOUser } from './PlayRegistrationDTOUser';
31
+ import {
32
+ PlayRegistrationDTOUserFromJSON,
33
+ PlayRegistrationDTOUserFromJSONTyped,
34
+ PlayRegistrationDTOUserToJSON,
35
+ PlayRegistrationDTOUserToJSONTyped,
36
+ } from './PlayRegistrationDTOUser';
37
+
38
+ /**
39
+ *
40
+ * @export
41
+ * @interface PlayRegistrationDTO
42
+ */
43
+ export interface PlayRegistrationDTO {
44
+ /**
45
+ *
46
+ * @type {string}
47
+ * @memberof PlayRegistrationDTO
48
+ */
49
+ id: string;
50
+ /**
51
+ *
52
+ * @type {string}
53
+ * @memberof PlayRegistrationDTO
54
+ */
55
+ playSearchId: string;
56
+ /**
57
+ *
58
+ * @type {string}
59
+ * @memberof PlayRegistrationDTO
60
+ */
61
+ userId: string;
62
+ /**
63
+ *
64
+ * @type {PlayRegistrationDTOUser}
65
+ * @memberof PlayRegistrationDTO
66
+ */
67
+ user?: PlayRegistrationDTOUser;
68
+ /**
69
+ *
70
+ * @type {PlayRegistrationType}
71
+ * @memberof PlayRegistrationDTO
72
+ */
73
+ type: PlayRegistrationType;
74
+ /**
75
+ *
76
+ * @type {RegistrationStatus}
77
+ * @memberof PlayRegistrationDTO
78
+ */
79
+ status: RegistrationStatus;
80
+ /**
81
+ *
82
+ * @type {number}
83
+ * @memberof PlayRegistrationDTO
84
+ */
85
+ registrationOrder: number;
86
+ /**
87
+ *
88
+ * @type {Date}
89
+ * @memberof PlayRegistrationDTO
90
+ */
91
+ createdAt?: Date;
92
+ }
93
+
94
+
95
+
96
+ /**
97
+ * Check if a given object implements the PlayRegistrationDTO interface.
98
+ */
99
+ export function instanceOfPlayRegistrationDTO(value: object): value is PlayRegistrationDTO {
100
+ if (!('id' in value) || value['id'] === undefined) return false;
101
+ if (!('playSearchId' in value) || value['playSearchId'] === undefined) return false;
102
+ if (!('userId' in value) || value['userId'] === undefined) return false;
103
+ if (!('type' in value) || value['type'] === undefined) return false;
104
+ if (!('status' in value) || value['status'] === undefined) return false;
105
+ if (!('registrationOrder' in value) || value['registrationOrder'] === undefined) return false;
106
+ return true;
107
+ }
108
+
109
+ export function PlayRegistrationDTOFromJSON(json: any): PlayRegistrationDTO {
110
+ return PlayRegistrationDTOFromJSONTyped(json, false);
111
+ }
112
+
113
+ export function PlayRegistrationDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlayRegistrationDTO {
114
+ if (json == null) {
115
+ return json;
116
+ }
117
+ return {
118
+
119
+ 'id': json['id'],
120
+ 'playSearchId': json['playSearchId'],
121
+ 'userId': json['userId'],
122
+ 'user': json['user'] == null ? undefined : PlayRegistrationDTOUserFromJSON(json['user']),
123
+ 'type': PlayRegistrationTypeFromJSON(json['type']),
124
+ 'status': RegistrationStatusFromJSON(json['status']),
125
+ 'registrationOrder': json['registrationOrder'],
126
+ 'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
127
+ };
128
+ }
129
+
130
+ export function PlayRegistrationDTOToJSON(json: any): PlayRegistrationDTO {
131
+ return PlayRegistrationDTOToJSONTyped(json, false);
132
+ }
133
+
134
+ export function PlayRegistrationDTOToJSONTyped(value?: PlayRegistrationDTO | null, ignoreDiscriminator: boolean = false): any {
135
+ if (value == null) {
136
+ return value;
137
+ }
138
+
139
+ return {
140
+
141
+ 'id': value['id'],
142
+ 'playSearchId': value['playSearchId'],
143
+ 'userId': value['userId'],
144
+ 'user': PlayRegistrationDTOUserToJSON(value['user']),
145
+ 'type': PlayRegistrationTypeToJSON(value['type']),
146
+ 'status': RegistrationStatusToJSON(value['status']),
147
+ 'registrationOrder': value['registrationOrder'],
148
+ 'createdAt': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
149
+ };
150
+ }
151
+
@@ -0,0 +1,97 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Jugar Hoy - API
5
+ * API documentation for Jugar Hoy application
6
+ *
7
+ * The version of the OpenAPI document: 1.5.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface PlayRegistrationDTOUser
20
+ */
21
+ export interface PlayRegistrationDTOUser {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof PlayRegistrationDTOUser
26
+ */
27
+ id?: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof PlayRegistrationDTOUser
32
+ */
33
+ firstName?: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof PlayRegistrationDTOUser
38
+ */
39
+ lastName?: string;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof PlayRegistrationDTOUser
44
+ */
45
+ avatarUrl?: string | null;
46
+ /**
47
+ *
48
+ * @type {number}
49
+ * @memberof PlayRegistrationDTOUser
50
+ */
51
+ rating?: number | null;
52
+ }
53
+
54
+ /**
55
+ * Check if a given object implements the PlayRegistrationDTOUser interface.
56
+ */
57
+ export function instanceOfPlayRegistrationDTOUser(value: object): value is PlayRegistrationDTOUser {
58
+ return true;
59
+ }
60
+
61
+ export function PlayRegistrationDTOUserFromJSON(json: any): PlayRegistrationDTOUser {
62
+ return PlayRegistrationDTOUserFromJSONTyped(json, false);
63
+ }
64
+
65
+ export function PlayRegistrationDTOUserFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlayRegistrationDTOUser {
66
+ if (json == null) {
67
+ return json;
68
+ }
69
+ return {
70
+
71
+ 'id': json['id'] == null ? undefined : json['id'],
72
+ 'firstName': json['firstName'] == null ? undefined : json['firstName'],
73
+ 'lastName': json['lastName'] == null ? undefined : json['lastName'],
74
+ 'avatarUrl': json['avatarUrl'] == null ? undefined : json['avatarUrl'],
75
+ 'rating': json['rating'] == null ? undefined : json['rating'],
76
+ };
77
+ }
78
+
79
+ export function PlayRegistrationDTOUserToJSON(json: any): PlayRegistrationDTOUser {
80
+ return PlayRegistrationDTOUserToJSONTyped(json, false);
81
+ }
82
+
83
+ export function PlayRegistrationDTOUserToJSONTyped(value?: PlayRegistrationDTOUser | null, ignoreDiscriminator: boolean = false): any {
84
+ if (value == null) {
85
+ return value;
86
+ }
87
+
88
+ return {
89
+
90
+ 'id': value['id'],
91
+ 'firstName': value['firstName'],
92
+ 'lastName': value['lastName'],
93
+ 'avatarUrl': value['avatarUrl'],
94
+ 'rating': value['rating'],
95
+ };
96
+ }
97
+
@@ -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
+