@jugarhoy/api 1.1.11 → 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/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/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,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
|
+
* Team designation (H=Home/Local, A=Away/Visitante)
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const PositionTeam = {
|
|
21
|
+
H: 'H',
|
|
22
|
+
A: 'A'
|
|
23
|
+
} as const;
|
|
24
|
+
export type PositionTeam = typeof PositionTeam[keyof typeof PositionTeam];
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
export function instanceOfPositionTeam(value: any): boolean {
|
|
28
|
+
for (const key in PositionTeam) {
|
|
29
|
+
if (Object.prototype.hasOwnProperty.call(PositionTeam, key)) {
|
|
30
|
+
if (PositionTeam[key as keyof typeof PositionTeam] === value) {
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
return false;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function PositionTeamFromJSON(json: any): PositionTeam {
|
|
39
|
+
return PositionTeamFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function PositionTeamFromJSONTyped(json: any, ignoreDiscriminator: boolean): PositionTeam {
|
|
43
|
+
return json as PositionTeam;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function PositionTeamToJSON(value?: PositionTeam | null): any {
|
|
47
|
+
return value as any;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function PositionTeamToJSONTyped(value: any, ignoreDiscriminator: boolean): PositionTeam {
|
|
51
|
+
return value as PositionTeam;
|
|
52
|
+
}
|
|
53
|
+
|
|
@@ -0,0 +1,164 @@
|
|
|
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 RecurringGame
|
|
20
|
+
*/
|
|
21
|
+
export interface RecurringGame {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof RecurringGame
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof RecurringGame
|
|
32
|
+
*/
|
|
33
|
+
teamId: string;
|
|
34
|
+
/**
|
|
35
|
+
* Day of week (0=Sunday, 1=Monday, ..., 6=Saturday)
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof RecurringGame
|
|
38
|
+
*/
|
|
39
|
+
weekday: number;
|
|
40
|
+
/**
|
|
41
|
+
* Match time in HH:MM format (24-hour)
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof RecurringGame
|
|
44
|
+
*/
|
|
45
|
+
time: string;
|
|
46
|
+
/**
|
|
47
|
+
* Match duration (MUST be exactly 60 or 120 minutes)
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof RecurringGame
|
|
50
|
+
*/
|
|
51
|
+
duration: RecurringGameDurationEnum;
|
|
52
|
+
/**
|
|
53
|
+
* REQUIRED - physical location where match is played
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof RecurringGame
|
|
56
|
+
*/
|
|
57
|
+
clubPlaceId: string;
|
|
58
|
+
/**
|
|
59
|
+
* Optional price, copied to PlaySearch.price when match is created
|
|
60
|
+
* @type {number}
|
|
61
|
+
* @memberof RecurringGame
|
|
62
|
+
*/
|
|
63
|
+
precio?: number | null;
|
|
64
|
+
/**
|
|
65
|
+
* How many days before match to create PlaySearch
|
|
66
|
+
* @type {number}
|
|
67
|
+
* @memberof RecurringGame
|
|
68
|
+
*/
|
|
69
|
+
daysBeforeMatch: number;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {boolean}
|
|
73
|
+
* @memberof RecurringGame
|
|
74
|
+
*/
|
|
75
|
+
isActive: boolean;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @type {Date}
|
|
79
|
+
* @memberof RecurringGame
|
|
80
|
+
*/
|
|
81
|
+
createdAt?: Date;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @type {Date}
|
|
85
|
+
* @memberof RecurringGame
|
|
86
|
+
*/
|
|
87
|
+
updatedAt?: Date;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* @export
|
|
93
|
+
*/
|
|
94
|
+
export const RecurringGameDurationEnum = {
|
|
95
|
+
NUMBER_60: 60,
|
|
96
|
+
NUMBER_120: 120
|
|
97
|
+
} as const;
|
|
98
|
+
export type RecurringGameDurationEnum = typeof RecurringGameDurationEnum[keyof typeof RecurringGameDurationEnum];
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Check if a given object implements the RecurringGame interface.
|
|
103
|
+
*/
|
|
104
|
+
export function instanceOfRecurringGame(value: object): value is RecurringGame {
|
|
105
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
106
|
+
if (!('teamId' in value) || value['teamId'] === undefined) return false;
|
|
107
|
+
if (!('weekday' in value) || value['weekday'] === undefined) return false;
|
|
108
|
+
if (!('time' in value) || value['time'] === undefined) return false;
|
|
109
|
+
if (!('duration' in value) || value['duration'] === undefined) return false;
|
|
110
|
+
if (!('clubPlaceId' in value) || value['clubPlaceId'] === undefined) return false;
|
|
111
|
+
if (!('daysBeforeMatch' in value) || value['daysBeforeMatch'] === undefined) return false;
|
|
112
|
+
if (!('isActive' in value) || value['isActive'] === undefined) return false;
|
|
113
|
+
return true;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export function RecurringGameFromJSON(json: any): RecurringGame {
|
|
117
|
+
return RecurringGameFromJSONTyped(json, false);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export function RecurringGameFromJSONTyped(json: any, ignoreDiscriminator: boolean): RecurringGame {
|
|
121
|
+
if (json == null) {
|
|
122
|
+
return json;
|
|
123
|
+
}
|
|
124
|
+
return {
|
|
125
|
+
|
|
126
|
+
'id': json['id'],
|
|
127
|
+
'teamId': json['teamId'],
|
|
128
|
+
'weekday': json['weekday'],
|
|
129
|
+
'time': json['time'],
|
|
130
|
+
'duration': json['duration'],
|
|
131
|
+
'clubPlaceId': json['clubPlaceId'],
|
|
132
|
+
'precio': json['precio'] == null ? undefined : json['precio'],
|
|
133
|
+
'daysBeforeMatch': json['daysBeforeMatch'],
|
|
134
|
+
'isActive': json['isActive'],
|
|
135
|
+
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
136
|
+
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
export function RecurringGameToJSON(json: any): RecurringGame {
|
|
141
|
+
return RecurringGameToJSONTyped(json, false);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
export function RecurringGameToJSONTyped(value?: RecurringGame | null, ignoreDiscriminator: boolean = false): any {
|
|
145
|
+
if (value == null) {
|
|
146
|
+
return value;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
return {
|
|
150
|
+
|
|
151
|
+
'id': value['id'],
|
|
152
|
+
'teamId': value['teamId'],
|
|
153
|
+
'weekday': value['weekday'],
|
|
154
|
+
'time': value['time'],
|
|
155
|
+
'duration': value['duration'],
|
|
156
|
+
'clubPlaceId': value['clubPlaceId'],
|
|
157
|
+
'precio': value['precio'],
|
|
158
|
+
'daysBeforeMatch': value['daysBeforeMatch'],
|
|
159
|
+
'isActive': value['isActive'],
|
|
160
|
+
'createdAt': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
|
|
161
|
+
'updatedAt': value['updatedAt'] == null ? undefined : ((value['updatedAt']).toISOString()),
|
|
162
|
+
};
|
|
163
|
+
}
|
|
164
|
+
|
|
@@ -0,0 +1,155 @@
|
|
|
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 RecurringGameResponse
|
|
20
|
+
*/
|
|
21
|
+
export interface RecurringGameResponse {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof RecurringGameResponse
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof RecurringGameResponse
|
|
32
|
+
*/
|
|
33
|
+
teamId: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof RecurringGameResponse
|
|
38
|
+
*/
|
|
39
|
+
weekday: number;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof RecurringGameResponse
|
|
44
|
+
*/
|
|
45
|
+
time: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof RecurringGameResponse
|
|
50
|
+
*/
|
|
51
|
+
duration: number;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof RecurringGameResponse
|
|
56
|
+
*/
|
|
57
|
+
clubPlaceId: string;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {number}
|
|
61
|
+
* @memberof RecurringGameResponse
|
|
62
|
+
*/
|
|
63
|
+
precio?: number | null;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {number}
|
|
67
|
+
* @memberof RecurringGameResponse
|
|
68
|
+
*/
|
|
69
|
+
daysBeforeMatch: number;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {boolean}
|
|
73
|
+
* @memberof RecurringGameResponse
|
|
74
|
+
*/
|
|
75
|
+
isActive: boolean;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @type {Date}
|
|
79
|
+
* @memberof RecurringGameResponse
|
|
80
|
+
*/
|
|
81
|
+
createdAt: Date;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @type {Date}
|
|
85
|
+
* @memberof RecurringGameResponse
|
|
86
|
+
*/
|
|
87
|
+
updatedAt: Date;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Check if a given object implements the RecurringGameResponse interface.
|
|
92
|
+
*/
|
|
93
|
+
export function instanceOfRecurringGameResponse(value: object): value is RecurringGameResponse {
|
|
94
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
95
|
+
if (!('teamId' in value) || value['teamId'] === undefined) return false;
|
|
96
|
+
if (!('weekday' in value) || value['weekday'] === undefined) return false;
|
|
97
|
+
if (!('time' in value) || value['time'] === undefined) return false;
|
|
98
|
+
if (!('duration' in value) || value['duration'] === undefined) return false;
|
|
99
|
+
if (!('clubPlaceId' in value) || value['clubPlaceId'] === undefined) return false;
|
|
100
|
+
if (!('daysBeforeMatch' in value) || value['daysBeforeMatch'] === undefined) return false;
|
|
101
|
+
if (!('isActive' in value) || value['isActive'] === undefined) return false;
|
|
102
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
103
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
|
|
104
|
+
return true;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export function RecurringGameResponseFromJSON(json: any): RecurringGameResponse {
|
|
108
|
+
return RecurringGameResponseFromJSONTyped(json, false);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export function RecurringGameResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): RecurringGameResponse {
|
|
112
|
+
if (json == null) {
|
|
113
|
+
return json;
|
|
114
|
+
}
|
|
115
|
+
return {
|
|
116
|
+
|
|
117
|
+
'id': json['id'],
|
|
118
|
+
'teamId': json['teamId'],
|
|
119
|
+
'weekday': json['weekday'],
|
|
120
|
+
'time': json['time'],
|
|
121
|
+
'duration': json['duration'],
|
|
122
|
+
'clubPlaceId': json['clubPlaceId'],
|
|
123
|
+
'precio': json['precio'] == null ? undefined : json['precio'],
|
|
124
|
+
'daysBeforeMatch': json['daysBeforeMatch'],
|
|
125
|
+
'isActive': json['isActive'],
|
|
126
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
127
|
+
'updatedAt': (new Date(json['updatedAt'])),
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
export function RecurringGameResponseToJSON(json: any): RecurringGameResponse {
|
|
132
|
+
return RecurringGameResponseToJSONTyped(json, false);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export function RecurringGameResponseToJSONTyped(value?: RecurringGameResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
136
|
+
if (value == null) {
|
|
137
|
+
return value;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
return {
|
|
141
|
+
|
|
142
|
+
'id': value['id'],
|
|
143
|
+
'teamId': value['teamId'],
|
|
144
|
+
'weekday': value['weekday'],
|
|
145
|
+
'time': value['time'],
|
|
146
|
+
'duration': value['duration'],
|
|
147
|
+
'clubPlaceId': value['clubPlaceId'],
|
|
148
|
+
'precio': value['precio'],
|
|
149
|
+
'daysBeforeMatch': value['daysBeforeMatch'],
|
|
150
|
+
'isActive': value['isActive'],
|
|
151
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
152
|
+
'updatedAt': ((value['updatedAt']).toISOString()),
|
|
153
|
+
};
|
|
154
|
+
}
|
|
155
|
+
|
|
@@ -0,0 +1,113 @@
|
|
|
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
|
+
* Additional data for sport events
|
|
18
|
+
* @export
|
|
19
|
+
* @interface SportEventData
|
|
20
|
+
*/
|
|
21
|
+
export interface SportEventData {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof SportEventData
|
|
26
|
+
*/
|
|
27
|
+
playerId?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof SportEventData
|
|
32
|
+
*/
|
|
33
|
+
playerName?: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof SportEventData
|
|
38
|
+
*/
|
|
39
|
+
minute?: number;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof SportEventData
|
|
44
|
+
*/
|
|
45
|
+
team?: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof SportEventData
|
|
50
|
+
*/
|
|
51
|
+
score?: string;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof SportEventData
|
|
56
|
+
*/
|
|
57
|
+
assistPlayerId?: string;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof SportEventData
|
|
62
|
+
*/
|
|
63
|
+
assistPlayerName?: string;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Check if a given object implements the SportEventData interface.
|
|
68
|
+
*/
|
|
69
|
+
export function instanceOfSportEventData(value: object): value is SportEventData {
|
|
70
|
+
return true;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function SportEventDataFromJSON(json: any): SportEventData {
|
|
74
|
+
return SportEventDataFromJSONTyped(json, false);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function SportEventDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): SportEventData {
|
|
78
|
+
if (json == null) {
|
|
79
|
+
return json;
|
|
80
|
+
}
|
|
81
|
+
return {
|
|
82
|
+
|
|
83
|
+
'playerId': json['playerId'] == null ? undefined : json['playerId'],
|
|
84
|
+
'playerName': json['playerName'] == null ? undefined : json['playerName'],
|
|
85
|
+
'minute': json['minute'] == null ? undefined : json['minute'],
|
|
86
|
+
'team': json['team'] == null ? undefined : json['team'],
|
|
87
|
+
'score': json['score'] == null ? undefined : json['score'],
|
|
88
|
+
'assistPlayerId': json['assistPlayerId'] == null ? undefined : json['assistPlayerId'],
|
|
89
|
+
'assistPlayerName': json['assistPlayerName'] == null ? undefined : json['assistPlayerName'],
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export function SportEventDataToJSON(json: any): SportEventData {
|
|
94
|
+
return SportEventDataToJSONTyped(json, false);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export function SportEventDataToJSONTyped(value?: SportEventData | null, ignoreDiscriminator: boolean = false): any {
|
|
98
|
+
if (value == null) {
|
|
99
|
+
return value;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
return {
|
|
103
|
+
|
|
104
|
+
'playerId': value['playerId'],
|
|
105
|
+
'playerName': value['playerName'],
|
|
106
|
+
'minute': value['minute'],
|
|
107
|
+
'team': value['team'],
|
|
108
|
+
'score': value['score'],
|
|
109
|
+
'assistPlayerId': value['assistPlayerId'],
|
|
110
|
+
'assistPlayerName': value['assistPlayerName'],
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
|
|
@@ -0,0 +1,77 @@
|
|
|
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
|
+
* Sport-specific event types
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const SportEventType = {
|
|
21
|
+
Goal: 'GOAL',
|
|
22
|
+
YellowCard: 'YELLOW_CARD',
|
|
23
|
+
RedCard: 'RED_CARD',
|
|
24
|
+
Foul: 'FOUL',
|
|
25
|
+
TerribleFoul: 'TERRIBLE_FOUL',
|
|
26
|
+
Assist: 'ASSIST',
|
|
27
|
+
Save: 'SAVE',
|
|
28
|
+
Penalty: 'PENALTY',
|
|
29
|
+
OwnGoal: 'OWN_GOAL',
|
|
30
|
+
Substitution: 'SUBSTITUTION',
|
|
31
|
+
Ace: 'ACE',
|
|
32
|
+
DoubleFault: 'DOUBLE_FAULT',
|
|
33
|
+
BreakPoint: 'BREAK_POINT',
|
|
34
|
+
Winner: 'WINNER',
|
|
35
|
+
Trick: 'TRICK',
|
|
36
|
+
Spike: 'SPIKE',
|
|
37
|
+
Block: 'BLOCK',
|
|
38
|
+
Dig: 'DIG',
|
|
39
|
+
Try: 'TRY',
|
|
40
|
+
Conversion: 'CONVERSION',
|
|
41
|
+
DropGoal: 'DROP_GOAL',
|
|
42
|
+
Tackle: 'TACKLE',
|
|
43
|
+
Turnover: 'TURNOVER',
|
|
44
|
+
Smash: 'SMASH',
|
|
45
|
+
Lob: 'LOB',
|
|
46
|
+
NetPlay: 'NET_PLAY'
|
|
47
|
+
} as const;
|
|
48
|
+
export type SportEventType = typeof SportEventType[keyof typeof SportEventType];
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
export function instanceOfSportEventType(value: any): boolean {
|
|
52
|
+
for (const key in SportEventType) {
|
|
53
|
+
if (Object.prototype.hasOwnProperty.call(SportEventType, key)) {
|
|
54
|
+
if (SportEventType[key as keyof typeof SportEventType] === value) {
|
|
55
|
+
return true;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
return false;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function SportEventTypeFromJSON(json: any): SportEventType {
|
|
63
|
+
return SportEventTypeFromJSONTyped(json, false);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function SportEventTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): SportEventType {
|
|
67
|
+
return json as SportEventType;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function SportEventTypeToJSON(value?: SportEventType | null): any {
|
|
71
|
+
return value as any;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function SportEventTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): SportEventType {
|
|
75
|
+
return value as SportEventType;
|
|
76
|
+
}
|
|
77
|
+
|
|
@@ -0,0 +1,92 @@
|
|
|
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 { SubmitRatingsRequestRatingsInner } from './SubmitRatingsRequestRatingsInner';
|
|
17
|
+
import {
|
|
18
|
+
SubmitRatingsRequestRatingsInnerFromJSON,
|
|
19
|
+
SubmitRatingsRequestRatingsInnerFromJSONTyped,
|
|
20
|
+
SubmitRatingsRequestRatingsInnerToJSON,
|
|
21
|
+
SubmitRatingsRequestRatingsInnerToJSONTyped,
|
|
22
|
+
} from './SubmitRatingsRequestRatingsInner';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface SubmitRatingsRequest
|
|
28
|
+
*/
|
|
29
|
+
export interface SubmitRatingsRequest {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof SubmitRatingsRequest
|
|
34
|
+
*/
|
|
35
|
+
playSearchId: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof SubmitRatingsRequest
|
|
40
|
+
*/
|
|
41
|
+
teamId: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {Array<SubmitRatingsRequestRatingsInner>}
|
|
45
|
+
* @memberof SubmitRatingsRequest
|
|
46
|
+
*/
|
|
47
|
+
ratings: Array<SubmitRatingsRequestRatingsInner>;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the SubmitRatingsRequest interface.
|
|
52
|
+
*/
|
|
53
|
+
export function instanceOfSubmitRatingsRequest(value: object): value is SubmitRatingsRequest {
|
|
54
|
+
if (!('playSearchId' in value) || value['playSearchId'] === undefined) return false;
|
|
55
|
+
if (!('teamId' in value) || value['teamId'] === undefined) return false;
|
|
56
|
+
if (!('ratings' in value) || value['ratings'] === undefined) return false;
|
|
57
|
+
return true;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function SubmitRatingsRequestFromJSON(json: any): SubmitRatingsRequest {
|
|
61
|
+
return SubmitRatingsRequestFromJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function SubmitRatingsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubmitRatingsRequest {
|
|
65
|
+
if (json == null) {
|
|
66
|
+
return json;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'playSearchId': json['playSearchId'],
|
|
71
|
+
'teamId': json['teamId'],
|
|
72
|
+
'ratings': ((json['ratings'] as Array<any>).map(SubmitRatingsRequestRatingsInnerFromJSON)),
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function SubmitRatingsRequestToJSON(json: any): SubmitRatingsRequest {
|
|
77
|
+
return SubmitRatingsRequestToJSONTyped(json, false);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function SubmitRatingsRequestToJSONTyped(value?: SubmitRatingsRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
81
|
+
if (value == null) {
|
|
82
|
+
return value;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
return {
|
|
86
|
+
|
|
87
|
+
'playSearchId': value['playSearchId'],
|
|
88
|
+
'teamId': value['teamId'],
|
|
89
|
+
'ratings': ((value['ratings'] as Array<any>).map(SubmitRatingsRequestRatingsInnerToJSON)),
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
|