@jugarhoy/api 1.1.10 → 1.1.12
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/PositionsApi.ts +235 -0
- package/apis/RecurringGamesApi.ts +279 -0
- package/apis/SportEventsApi.ts +133 -0
- package/apis/TeamFeedApi.ts +386 -0
- package/apis/TeamsApi.ts +578 -0
- package/apis/VotingApi.ts +404 -0
- package/apis/index.ts +6 -0
- package/models/ApiAppTeamsTeamIdEventsGet200Response.ts +73 -0
- package/models/ApiAppTeamsTeamIdEventsGet200ResponseEventsInner.ts +97 -0
- package/models/ApiAppTeamsTeamIdEventsPostRequest.ts +139 -0
- package/models/ApiAppTeamsTeamIdFeedFeedItemIdPatchRequest.ts +81 -0
- package/models/ApiAppTeamsTeamIdFeedFeedItemIdReactionsPatchRequest.ts +66 -0
- package/models/ApiAppTeamsTeamIdFeedSummaryGet200Response.ts +81 -0
- package/models/ApiAppVotingHasVotedPlaySearchIdGet200Response.ts +65 -0
- package/models/AssignPositionsRequest.ts +92 -0
- package/models/AssignPositionsRequestPositionsInner.ts +130 -0
- package/models/AutoAssignPositionsRequest.ts +93 -0
- package/models/CreatePlaySearchRequest.ts +8 -0
- package/models/CreateRecurringGameRequest.ts +130 -0
- package/models/CreateTeamFeedRequest.ts +82 -0
- package/models/CreateTeamRequest.ts +134 -0
- package/models/FeedMediaType.ts +56 -0
- package/models/GroupedPositionsResponse.ts +83 -0
- package/models/GroupedPositionsResponseHome.ts +83 -0
- package/models/JoinTeamRequest.ts +66 -0
- package/models/MatchVote.ts +134 -0
- package/models/NotificationChannelType.ts +3 -1
- package/models/PlaySearch.ts +8 -0
- package/models/PlaySearchDTO.ts +8 -0
- package/models/PlaySearchDetailDTO.ts +8 -0
- package/models/PlaySearchPosition.ts +153 -0
- package/models/PlayerRatingResponse.ts +111 -0
- package/models/PositionResponse.ts +157 -0
- package/models/PositionStatus.ts +53 -0
- package/models/PositionTeam.ts +53 -0
- package/models/RecurringGame.ts +164 -0
- package/models/RecurringGameResponse.ts +155 -0
- package/models/SportEventData.ts +113 -0
- package/models/SportEventType.ts +77 -0
- package/models/SubmitRatingsRequest.ts +92 -0
- package/models/SubmitRatingsRequestRatingsInner.ts +99 -0
- package/models/Team.ts +186 -0
- package/models/TeamFeedItem.ts +188 -0
- package/models/TeamFeedItemResponse.ts +168 -0
- package/models/TeamFeedListResponse.ts +89 -0
- package/models/TeamFeedMedia.ts +101 -0
- package/models/TeamMember.ts +121 -0
- package/models/TeamMemberResponse.ts +123 -0
- package/models/TeamMemberRole.ts +54 -0
- package/models/TeamResponse.ts +194 -0
- package/models/TeamType.ts +53 -0
- package/models/UpdateMemberRoleRequest.ts +76 -0
- package/models/UpdateRecurringGameRequest.ts +124 -0
- package/models/UpdateTeamRequest.ts +105 -0
- package/models/VotingStatsResponse.ts +93 -0
- package/models/VotingStatusResponse.ts +82 -0
- package/models/index.ts +44 -0
- package/package.json +1 -1
|
@@ -0,0 +1,194 @@
|
|
|
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 { TeamType } from './TeamType';
|
|
17
|
+
import {
|
|
18
|
+
TeamTypeFromJSON,
|
|
19
|
+
TeamTypeFromJSONTyped,
|
|
20
|
+
TeamTypeToJSON,
|
|
21
|
+
TeamTypeToJSONTyped,
|
|
22
|
+
} from './TeamType';
|
|
23
|
+
import type { TeamMemberRole } from './TeamMemberRole';
|
|
24
|
+
import {
|
|
25
|
+
TeamMemberRoleFromJSON,
|
|
26
|
+
TeamMemberRoleFromJSONTyped,
|
|
27
|
+
TeamMemberRoleToJSON,
|
|
28
|
+
TeamMemberRoleToJSONTyped,
|
|
29
|
+
} from './TeamMemberRole';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface TeamResponse
|
|
35
|
+
*/
|
|
36
|
+
export interface TeamResponse {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof TeamResponse
|
|
41
|
+
*/
|
|
42
|
+
id?: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof TeamResponse
|
|
47
|
+
*/
|
|
48
|
+
name?: string;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof TeamResponse
|
|
53
|
+
*/
|
|
54
|
+
sport?: string;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {TeamType}
|
|
58
|
+
* @memberof TeamResponse
|
|
59
|
+
*/
|
|
60
|
+
type?: TeamType;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof TeamResponse
|
|
65
|
+
*/
|
|
66
|
+
nivel?: string;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof TeamResponse
|
|
71
|
+
*/
|
|
72
|
+
customerId?: string;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {string}
|
|
76
|
+
* @memberof TeamResponse
|
|
77
|
+
*/
|
|
78
|
+
avatarUrl?: string;
|
|
79
|
+
/**
|
|
80
|
+
* Background color (hex code)
|
|
81
|
+
* @type {string}
|
|
82
|
+
* @memberof TeamResponse
|
|
83
|
+
*/
|
|
84
|
+
bgColor?: string;
|
|
85
|
+
/**
|
|
86
|
+
* Foreground color (hex code)
|
|
87
|
+
* @type {string}
|
|
88
|
+
* @memberof TeamResponse
|
|
89
|
+
*/
|
|
90
|
+
fgColor?: string;
|
|
91
|
+
/**
|
|
92
|
+
*
|
|
93
|
+
* @type {string}
|
|
94
|
+
* @memberof TeamResponse
|
|
95
|
+
*/
|
|
96
|
+
createdById?: string;
|
|
97
|
+
/**
|
|
98
|
+
*
|
|
99
|
+
* @type {string}
|
|
100
|
+
* @memberof TeamResponse
|
|
101
|
+
*/
|
|
102
|
+
inviteCode?: string;
|
|
103
|
+
/**
|
|
104
|
+
*
|
|
105
|
+
* @type {boolean}
|
|
106
|
+
* @memberof TeamResponse
|
|
107
|
+
*/
|
|
108
|
+
isActive?: boolean;
|
|
109
|
+
/**
|
|
110
|
+
*
|
|
111
|
+
* @type {Date}
|
|
112
|
+
* @memberof TeamResponse
|
|
113
|
+
*/
|
|
114
|
+
createdAt?: Date;
|
|
115
|
+
/**
|
|
116
|
+
*
|
|
117
|
+
* @type {number}
|
|
118
|
+
* @memberof TeamResponse
|
|
119
|
+
*/
|
|
120
|
+
memberCount?: number;
|
|
121
|
+
/**
|
|
122
|
+
*
|
|
123
|
+
* @type {TeamMemberRole}
|
|
124
|
+
* @memberof TeamResponse
|
|
125
|
+
*/
|
|
126
|
+
userRole?: TeamMemberRole;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* Check if a given object implements the TeamResponse interface.
|
|
133
|
+
*/
|
|
134
|
+
export function instanceOfTeamResponse(value: object): value is TeamResponse {
|
|
135
|
+
return true;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
export function TeamResponseFromJSON(json: any): TeamResponse {
|
|
139
|
+
return TeamResponseFromJSONTyped(json, false);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
export function TeamResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TeamResponse {
|
|
143
|
+
if (json == null) {
|
|
144
|
+
return json;
|
|
145
|
+
}
|
|
146
|
+
return {
|
|
147
|
+
|
|
148
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
149
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
150
|
+
'sport': json['sport'] == null ? undefined : json['sport'],
|
|
151
|
+
'type': json['type'] == null ? undefined : TeamTypeFromJSON(json['type']),
|
|
152
|
+
'nivel': json['nivel'] == null ? undefined : json['nivel'],
|
|
153
|
+
'customerId': json['customerId'] == null ? undefined : json['customerId'],
|
|
154
|
+
'avatarUrl': json['avatarUrl'] == null ? undefined : json['avatarUrl'],
|
|
155
|
+
'bgColor': json['bgColor'] == null ? undefined : json['bgColor'],
|
|
156
|
+
'fgColor': json['fgColor'] == null ? undefined : json['fgColor'],
|
|
157
|
+
'createdById': json['createdById'] == null ? undefined : json['createdById'],
|
|
158
|
+
'inviteCode': json['inviteCode'] == null ? undefined : json['inviteCode'],
|
|
159
|
+
'isActive': json['isActive'] == null ? undefined : json['isActive'],
|
|
160
|
+
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
161
|
+
'memberCount': json['memberCount'] == null ? undefined : json['memberCount'],
|
|
162
|
+
'userRole': json['userRole'] == null ? undefined : TeamMemberRoleFromJSON(json['userRole']),
|
|
163
|
+
};
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
export function TeamResponseToJSON(json: any): TeamResponse {
|
|
167
|
+
return TeamResponseToJSONTyped(json, false);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
export function TeamResponseToJSONTyped(value?: TeamResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
171
|
+
if (value == null) {
|
|
172
|
+
return value;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
return {
|
|
176
|
+
|
|
177
|
+
'id': value['id'],
|
|
178
|
+
'name': value['name'],
|
|
179
|
+
'sport': value['sport'],
|
|
180
|
+
'type': TeamTypeToJSON(value['type']),
|
|
181
|
+
'nivel': value['nivel'],
|
|
182
|
+
'customerId': value['customerId'],
|
|
183
|
+
'avatarUrl': value['avatarUrl'],
|
|
184
|
+
'bgColor': value['bgColor'],
|
|
185
|
+
'fgColor': value['fgColor'],
|
|
186
|
+
'createdById': value['createdById'],
|
|
187
|
+
'inviteCode': value['inviteCode'],
|
|
188
|
+
'isActive': value['isActive'],
|
|
189
|
+
'createdAt': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
|
|
190
|
+
'memberCount': value['memberCount'],
|
|
191
|
+
'userRole': TeamMemberRoleToJSON(value['userRole']),
|
|
192
|
+
};
|
|
193
|
+
}
|
|
194
|
+
|
|
@@ -0,0 +1,53 @@
|
|
|
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 team (private team for matches or training group)
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const TeamType = {
|
|
21
|
+
PrivateTeam: 'PRIVATE_TEAM',
|
|
22
|
+
TrainingGroup: 'TRAINING_GROUP'
|
|
23
|
+
} as const;
|
|
24
|
+
export type TeamType = typeof TeamType[keyof typeof TeamType];
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
export function instanceOfTeamType(value: any): boolean {
|
|
28
|
+
for (const key in TeamType) {
|
|
29
|
+
if (Object.prototype.hasOwnProperty.call(TeamType, key)) {
|
|
30
|
+
if (TeamType[key as keyof typeof TeamType] === value) {
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
return false;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function TeamTypeFromJSON(json: any): TeamType {
|
|
39
|
+
return TeamTypeFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function TeamTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): TeamType {
|
|
43
|
+
return json as TeamType;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function TeamTypeToJSON(value?: TeamType | null): any {
|
|
47
|
+
return value as any;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function TeamTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): TeamType {
|
|
51
|
+
return value as TeamType;
|
|
52
|
+
}
|
|
53
|
+
|
|
@@ -0,0 +1,76 @@
|
|
|
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 { TeamMemberRole } from './TeamMemberRole';
|
|
17
|
+
import {
|
|
18
|
+
TeamMemberRoleFromJSON,
|
|
19
|
+
TeamMemberRoleFromJSONTyped,
|
|
20
|
+
TeamMemberRoleToJSON,
|
|
21
|
+
TeamMemberRoleToJSONTyped,
|
|
22
|
+
} from './TeamMemberRole';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface UpdateMemberRoleRequest
|
|
28
|
+
*/
|
|
29
|
+
export interface UpdateMemberRoleRequest {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {TeamMemberRole}
|
|
33
|
+
* @memberof UpdateMemberRoleRequest
|
|
34
|
+
*/
|
|
35
|
+
role: TeamMemberRole;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Check if a given object implements the UpdateMemberRoleRequest interface.
|
|
42
|
+
*/
|
|
43
|
+
export function instanceOfUpdateMemberRoleRequest(value: object): value is UpdateMemberRoleRequest {
|
|
44
|
+
if (!('role' in value) || value['role'] === undefined) return false;
|
|
45
|
+
return true;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export function UpdateMemberRoleRequestFromJSON(json: any): UpdateMemberRoleRequest {
|
|
49
|
+
return UpdateMemberRoleRequestFromJSONTyped(json, false);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function UpdateMemberRoleRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateMemberRoleRequest {
|
|
53
|
+
if (json == null) {
|
|
54
|
+
return json;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
|
|
58
|
+
'role': TeamMemberRoleFromJSON(json['role']),
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function UpdateMemberRoleRequestToJSON(json: any): UpdateMemberRoleRequest {
|
|
63
|
+
return UpdateMemberRoleRequestToJSONTyped(json, false);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function UpdateMemberRoleRequestToJSONTyped(value?: UpdateMemberRoleRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
67
|
+
if (value == null) {
|
|
68
|
+
return value;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
return {
|
|
72
|
+
|
|
73
|
+
'role': TeamMemberRoleToJSON(value['role']),
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Jugar Hoy - API
|
|
5
|
+
* API documentation for Jugar Hoy application
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.5.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface UpdateRecurringGameRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface UpdateRecurringGameRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof UpdateRecurringGameRequest
|
|
26
|
+
*/
|
|
27
|
+
weekday?: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof UpdateRecurringGameRequest
|
|
32
|
+
*/
|
|
33
|
+
time?: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof UpdateRecurringGameRequest
|
|
38
|
+
*/
|
|
39
|
+
duration?: UpdateRecurringGameRequestDurationEnum;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof UpdateRecurringGameRequest
|
|
44
|
+
*/
|
|
45
|
+
clubPlaceId?: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof UpdateRecurringGameRequest
|
|
50
|
+
*/
|
|
51
|
+
precio?: number | null;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {number}
|
|
55
|
+
* @memberof UpdateRecurringGameRequest
|
|
56
|
+
*/
|
|
57
|
+
daysBeforeMatch?: number;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {boolean}
|
|
61
|
+
* @memberof UpdateRecurringGameRequest
|
|
62
|
+
*/
|
|
63
|
+
isActive?: boolean;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* @export
|
|
69
|
+
*/
|
|
70
|
+
export const UpdateRecurringGameRequestDurationEnum = {
|
|
71
|
+
NUMBER_60: 60,
|
|
72
|
+
NUMBER_120: 120
|
|
73
|
+
} as const;
|
|
74
|
+
export type UpdateRecurringGameRequestDurationEnum = typeof UpdateRecurringGameRequestDurationEnum[keyof typeof UpdateRecurringGameRequestDurationEnum];
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Check if a given object implements the UpdateRecurringGameRequest interface.
|
|
79
|
+
*/
|
|
80
|
+
export function instanceOfUpdateRecurringGameRequest(value: object): value is UpdateRecurringGameRequest {
|
|
81
|
+
return true;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function UpdateRecurringGameRequestFromJSON(json: any): UpdateRecurringGameRequest {
|
|
85
|
+
return UpdateRecurringGameRequestFromJSONTyped(json, false);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function UpdateRecurringGameRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateRecurringGameRequest {
|
|
89
|
+
if (json == null) {
|
|
90
|
+
return json;
|
|
91
|
+
}
|
|
92
|
+
return {
|
|
93
|
+
|
|
94
|
+
'weekday': json['weekday'] == null ? undefined : json['weekday'],
|
|
95
|
+
'time': json['time'] == null ? undefined : json['time'],
|
|
96
|
+
'duration': json['duration'] == null ? undefined : json['duration'],
|
|
97
|
+
'clubPlaceId': json['clubPlaceId'] == null ? undefined : json['clubPlaceId'],
|
|
98
|
+
'precio': json['precio'] == null ? undefined : json['precio'],
|
|
99
|
+
'daysBeforeMatch': json['daysBeforeMatch'] == null ? undefined : json['daysBeforeMatch'],
|
|
100
|
+
'isActive': json['isActive'] == null ? undefined : json['isActive'],
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export function UpdateRecurringGameRequestToJSON(json: any): UpdateRecurringGameRequest {
|
|
105
|
+
return UpdateRecurringGameRequestToJSONTyped(json, false);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export function UpdateRecurringGameRequestToJSONTyped(value?: UpdateRecurringGameRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
109
|
+
if (value == null) {
|
|
110
|
+
return value;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
return {
|
|
114
|
+
|
|
115
|
+
'weekday': value['weekday'],
|
|
116
|
+
'time': value['time'],
|
|
117
|
+
'duration': value['duration'],
|
|
118
|
+
'clubPlaceId': value['clubPlaceId'],
|
|
119
|
+
'precio': value['precio'],
|
|
120
|
+
'daysBeforeMatch': value['daysBeforeMatch'],
|
|
121
|
+
'isActive': value['isActive'],
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Jugar Hoy - API
|
|
5
|
+
* API documentation for Jugar Hoy application
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.5.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface UpdateTeamRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface UpdateTeamRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof UpdateTeamRequest
|
|
26
|
+
*/
|
|
27
|
+
name?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof UpdateTeamRequest
|
|
32
|
+
*/
|
|
33
|
+
nivel?: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof UpdateTeamRequest
|
|
38
|
+
*/
|
|
39
|
+
avatarUrl?: string;
|
|
40
|
+
/**
|
|
41
|
+
* Background color (hex code)
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof UpdateTeamRequest
|
|
44
|
+
*/
|
|
45
|
+
bgColor?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Foreground color (hex code)
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof UpdateTeamRequest
|
|
50
|
+
*/
|
|
51
|
+
fgColor?: string;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {boolean}
|
|
55
|
+
* @memberof UpdateTeamRequest
|
|
56
|
+
*/
|
|
57
|
+
isActive?: boolean;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Check if a given object implements the UpdateTeamRequest interface.
|
|
62
|
+
*/
|
|
63
|
+
export function instanceOfUpdateTeamRequest(value: object): value is UpdateTeamRequest {
|
|
64
|
+
return true;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function UpdateTeamRequestFromJSON(json: any): UpdateTeamRequest {
|
|
68
|
+
return UpdateTeamRequestFromJSONTyped(json, false);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function UpdateTeamRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateTeamRequest {
|
|
72
|
+
if (json == null) {
|
|
73
|
+
return json;
|
|
74
|
+
}
|
|
75
|
+
return {
|
|
76
|
+
|
|
77
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
78
|
+
'nivel': json['nivel'] == null ? undefined : json['nivel'],
|
|
79
|
+
'avatarUrl': json['avatarUrl'] == null ? undefined : json['avatarUrl'],
|
|
80
|
+
'bgColor': json['bgColor'] == null ? undefined : json['bgColor'],
|
|
81
|
+
'fgColor': json['fgColor'] == null ? undefined : json['fgColor'],
|
|
82
|
+
'isActive': json['isActive'] == null ? undefined : json['isActive'],
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export function UpdateTeamRequestToJSON(json: any): UpdateTeamRequest {
|
|
87
|
+
return UpdateTeamRequestToJSONTyped(json, false);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export function UpdateTeamRequestToJSONTyped(value?: UpdateTeamRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
91
|
+
if (value == null) {
|
|
92
|
+
return value;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
return {
|
|
96
|
+
|
|
97
|
+
'name': value['name'],
|
|
98
|
+
'nivel': value['nivel'],
|
|
99
|
+
'avatarUrl': value['avatarUrl'],
|
|
100
|
+
'bgColor': value['bgColor'],
|
|
101
|
+
'fgColor': value['fgColor'],
|
|
102
|
+
'isActive': value['isActive'],
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
|
|
@@ -0,0 +1,93 @@
|
|
|
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 VotingStatsResponse
|
|
20
|
+
*/
|
|
21
|
+
export interface VotingStatsResponse {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof VotingStatsResponse
|
|
26
|
+
*/
|
|
27
|
+
totalVotes: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof VotingStatsResponse
|
|
32
|
+
*/
|
|
33
|
+
uniqueVoters: number;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof VotingStatsResponse
|
|
38
|
+
*/
|
|
39
|
+
eligibleVoters: number;
|
|
40
|
+
/**
|
|
41
|
+
* Percentage (0-100)
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof VotingStatsResponse
|
|
44
|
+
*/
|
|
45
|
+
participationRate: number;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the VotingStatsResponse interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfVotingStatsResponse(value: object): value is VotingStatsResponse {
|
|
52
|
+
if (!('totalVotes' in value) || value['totalVotes'] === undefined) return false;
|
|
53
|
+
if (!('uniqueVoters' in value) || value['uniqueVoters'] === undefined) return false;
|
|
54
|
+
if (!('eligibleVoters' in value) || value['eligibleVoters'] === undefined) return false;
|
|
55
|
+
if (!('participationRate' in value) || value['participationRate'] === undefined) return false;
|
|
56
|
+
return true;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function VotingStatsResponseFromJSON(json: any): VotingStatsResponse {
|
|
60
|
+
return VotingStatsResponseFromJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function VotingStatsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): VotingStatsResponse {
|
|
64
|
+
if (json == null) {
|
|
65
|
+
return json;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'totalVotes': json['totalVotes'],
|
|
70
|
+
'uniqueVoters': json['uniqueVoters'],
|
|
71
|
+
'eligibleVoters': json['eligibleVoters'],
|
|
72
|
+
'participationRate': json['participationRate'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function VotingStatsResponseToJSON(json: any): VotingStatsResponse {
|
|
77
|
+
return VotingStatsResponseToJSONTyped(json, false);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function VotingStatsResponseToJSONTyped(value?: VotingStatsResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
81
|
+
if (value == null) {
|
|
82
|
+
return value;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
return {
|
|
86
|
+
|
|
87
|
+
'totalVotes': value['totalVotes'],
|
|
88
|
+
'uniqueVoters': value['uniqueVoters'],
|
|
89
|
+
'eligibleVoters': value['eligibleVoters'],
|
|
90
|
+
'participationRate': value['participationRate'],
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
|