@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.
- package/apis/AppPlayRegistrationApi.ts +177 -0
- package/apis/AppPlaySearchApi.ts +323 -0
- package/apis/UsersApi.ts +99 -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/GetNotificationByType200Response.ts +73 -0
- package/models/NotificationChannelType.ts +2 -1
- 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 +105 -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/ToggleNotificationByType200Response.ts +65 -0
- package/models/index.ts +23 -0
- package/package.json +2 -2
|
@@ -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 GetNotificationByType200Response
|
|
20
|
+
*/
|
|
21
|
+
export interface GetNotificationByType200Response {
|
|
22
|
+
/**
|
|
23
|
+
* Whether this notification type is enabled
|
|
24
|
+
* @type {boolean}
|
|
25
|
+
* @memberof GetNotificationByType200Response
|
|
26
|
+
*/
|
|
27
|
+
enabled?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Optional subscription information
|
|
30
|
+
* @type {{ [key: string]: any; }}
|
|
31
|
+
* @memberof GetNotificationByType200Response
|
|
32
|
+
*/
|
|
33
|
+
subscriptionId?: { [key: string]: any; };
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the GetNotificationByType200Response interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfGetNotificationByType200Response(value: object): value is GetNotificationByType200Response {
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function GetNotificationByType200ResponseFromJSON(json: any): GetNotificationByType200Response {
|
|
44
|
+
return GetNotificationByType200ResponseFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function GetNotificationByType200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetNotificationByType200Response {
|
|
48
|
+
if (json == null) {
|
|
49
|
+
return json;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
|
|
53
|
+
'enabled': json['enabled'] == null ? undefined : json['enabled'],
|
|
54
|
+
'subscriptionId': json['subscriptionId'] == null ? undefined : json['subscriptionId'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function GetNotificationByType200ResponseToJSON(json: any): GetNotificationByType200Response {
|
|
59
|
+
return GetNotificationByType200ResponseToJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function GetNotificationByType200ResponseToJSONTyped(value?: GetNotificationByType200Response | null, ignoreDiscriminator: boolean = false): any {
|
|
63
|
+
if (value == null) {
|
|
64
|
+
return value;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'enabled': value['enabled'],
|
|
70
|
+
'subscriptionId': value['subscriptionId'],
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -21,7 +21,8 @@ export const NotificationChannelType = {
|
|
|
21
21
|
Whatsapp: 'WHATSAPP',
|
|
22
22
|
PushWeb: 'PUSH_WEB',
|
|
23
23
|
PushNative: 'PUSH_NATIVE',
|
|
24
|
-
Email: 'EMAIL'
|
|
24
|
+
Email: 'EMAIL',
|
|
25
|
+
Falta1: 'FALTA1'
|
|
25
26
|
} as const;
|
|
26
27
|
export type NotificationChannelType = typeof NotificationChannelType[keyof typeof NotificationChannelType];
|
|
27
28
|
|
|
@@ -0,0 +1,159 @@
|
|
|
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
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface PlayRegistration
|
|
35
|
+
*/
|
|
36
|
+
export interface PlayRegistration {
|
|
37
|
+
/**
|
|
38
|
+
* Unique identifier for the registration
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof PlayRegistration
|
|
41
|
+
*/
|
|
42
|
+
id: string;
|
|
43
|
+
/**
|
|
44
|
+
* ID of the user registering
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof PlayRegistration
|
|
47
|
+
*/
|
|
48
|
+
userId: string;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {PlayRegistrationType}
|
|
52
|
+
* @memberof PlayRegistration
|
|
53
|
+
*/
|
|
54
|
+
type: PlayRegistrationType;
|
|
55
|
+
/**
|
|
56
|
+
* ID of the PlaySearch (if type is FALTA1)
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof PlayRegistration
|
|
59
|
+
*/
|
|
60
|
+
playSearchId?: string | null;
|
|
61
|
+
/**
|
|
62
|
+
* ID of the PlaySubscription (if type is TOURNAMENT)
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof PlayRegistration
|
|
65
|
+
*/
|
|
66
|
+
subscriptionId?: string | null;
|
|
67
|
+
/**
|
|
68
|
+
* ID of the Reserve (for future WEEKLY_MATCH)
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof PlayRegistration
|
|
71
|
+
*/
|
|
72
|
+
reserveId?: string | null;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {RegistrationStatus}
|
|
76
|
+
* @memberof PlayRegistration
|
|
77
|
+
*/
|
|
78
|
+
status: RegistrationStatus;
|
|
79
|
+
/**
|
|
80
|
+
* Queue position for auto-promotion
|
|
81
|
+
* @type {number}
|
|
82
|
+
* @memberof PlayRegistration
|
|
83
|
+
*/
|
|
84
|
+
registrationOrder: number;
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
* @type {Date}
|
|
88
|
+
* @memberof PlayRegistration
|
|
89
|
+
*/
|
|
90
|
+
createdAt?: Date;
|
|
91
|
+
/**
|
|
92
|
+
*
|
|
93
|
+
* @type {Date}
|
|
94
|
+
* @memberof PlayRegistration
|
|
95
|
+
*/
|
|
96
|
+
updatedAt?: Date;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Check if a given object implements the PlayRegistration interface.
|
|
103
|
+
*/
|
|
104
|
+
export function instanceOfPlayRegistration(value: object): value is PlayRegistration {
|
|
105
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
106
|
+
if (!('userId' in value) || value['userId'] === undefined) return false;
|
|
107
|
+
if (!('type' in value) || value['type'] === undefined) return false;
|
|
108
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
109
|
+
if (!('registrationOrder' in value) || value['registrationOrder'] === undefined) return false;
|
|
110
|
+
return true;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export function PlayRegistrationFromJSON(json: any): PlayRegistration {
|
|
114
|
+
return PlayRegistrationFromJSONTyped(json, false);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
export function PlayRegistrationFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlayRegistration {
|
|
118
|
+
if (json == null) {
|
|
119
|
+
return json;
|
|
120
|
+
}
|
|
121
|
+
return {
|
|
122
|
+
|
|
123
|
+
'id': json['id'],
|
|
124
|
+
'userId': json['userId'],
|
|
125
|
+
'type': PlayRegistrationTypeFromJSON(json['type']),
|
|
126
|
+
'playSearchId': json['playSearchId'] == null ? undefined : json['playSearchId'],
|
|
127
|
+
'subscriptionId': json['subscriptionId'] == null ? undefined : json['subscriptionId'],
|
|
128
|
+
'reserveId': json['reserveId'] == null ? undefined : json['reserveId'],
|
|
129
|
+
'status': RegistrationStatusFromJSON(json['status']),
|
|
130
|
+
'registrationOrder': json['registrationOrder'],
|
|
131
|
+
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
132
|
+
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
export function PlayRegistrationToJSON(json: any): PlayRegistration {
|
|
137
|
+
return PlayRegistrationToJSONTyped(json, false);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
export function PlayRegistrationToJSONTyped(value?: PlayRegistration | null, ignoreDiscriminator: boolean = false): any {
|
|
141
|
+
if (value == null) {
|
|
142
|
+
return value;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
return {
|
|
146
|
+
|
|
147
|
+
'id': value['id'],
|
|
148
|
+
'userId': value['userId'],
|
|
149
|
+
'type': PlayRegistrationTypeToJSON(value['type']),
|
|
150
|
+
'playSearchId': value['playSearchId'],
|
|
151
|
+
'subscriptionId': value['subscriptionId'],
|
|
152
|
+
'reserveId': value['reserveId'],
|
|
153
|
+
'status': RegistrationStatusToJSON(value['status']),
|
|
154
|
+
'registrationOrder': value['registrationOrder'],
|
|
155
|
+
'createdAt': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
|
|
156
|
+
'updatedAt': value['updatedAt'] == null ? undefined : ((value['updatedAt']).toISOString()),
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
|
|
@@ -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
|
+
|