@drxsuperapp/sdk 1.1.238 → 1.1.240
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/.openapi-generator/FILES +7 -0
- package/deploy.log +24 -9
- package/dist/models/ApiEsportMatchesGet200ResponseResponseObjectItemsInner.d.ts +35 -0
- package/dist/models/ApiEsportMatchesGet200ResponseResponseObjectItemsInner.js +23 -2
- package/dist/models/ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInner.d.ts +105 -0
- package/dist/models/ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInner.js +80 -0
- package/dist/models/ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInnerWinner.d.ts +38 -0
- package/dist/models/ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInnerWinner.js +45 -0
- package/dist/models/ApiEsportMatchesGet200ResponseResponseObjectItemsInnerLeague.d.ts +56 -0
- package/dist/models/ApiEsportMatchesGet200ResponseResponseObjectItemsInnerLeague.js +57 -0
- package/dist/models/ApiEsportMatchesGet200ResponseResponseObjectItemsInnerOpponentsInner.d.ts +57 -0
- package/dist/models/ApiEsportMatchesGet200ResponseResponseObjectItemsInnerOpponentsInner.js +56 -0
- package/dist/models/ApiEsportMatchesGet200ResponseResponseObjectItemsInnerOpponentsInnerTeam.d.ts +75 -0
- package/dist/models/ApiEsportMatchesGet200ResponseResponseObjectItemsInnerOpponentsInnerTeam.js +64 -0
- package/dist/models/ApiEsportMatchesGet200ResponseResponseObjectItemsInnerSerie.d.ts +92 -0
- package/dist/models/ApiEsportMatchesGet200ResponseResponseObjectItemsInnerSerie.js +69 -0
- package/dist/models/ApiEsportMatchesGet200ResponseResponseObjectItemsInnerTournament.d.ts +122 -0
- package/dist/models/ApiEsportMatchesGet200ResponseResponseObjectItemsInnerTournament.js +81 -0
- package/dist/models/index.d.ts +7 -0
- package/dist/models/index.js +7 -0
- package/models/ApiEsportMatchesGet200ResponseResponseObjectItemsInner.ts +80 -2
- package/models/ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInner.ts +176 -0
- package/models/ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInnerWinner.ts +74 -0
- package/models/ApiEsportMatchesGet200ResponseResponseObjectItemsInnerLeague.ts +101 -0
- package/models/ApiEsportMatchesGet200ResponseResponseObjectItemsInnerOpponentsInner.ts +108 -0
- package/models/ApiEsportMatchesGet200ResponseResponseObjectItemsInnerOpponentsInnerTeam.ts +133 -0
- package/models/ApiEsportMatchesGet200ResponseResponseObjectItemsInnerSerie.ts +149 -0
- package/models/ApiEsportMatchesGet200ResponseResponseObjectItemsInnerTournament.ts +190 -0
- package/models/index.ts +7 -0
- package/package.json +1 -1
|
@@ -27,6 +27,34 @@ import {
|
|
|
27
27
|
ApiEsportVideogamesGet200ResponseResponseObjectInnerToJSON,
|
|
28
28
|
ApiEsportVideogamesGet200ResponseResponseObjectInnerToJSONTyped,
|
|
29
29
|
} from './ApiEsportVideogamesGet200ResponseResponseObjectInner';
|
|
30
|
+
import type { ApiEsportMatchesGet200ResponseResponseObjectItemsInnerSerie } from './ApiEsportMatchesGet200ResponseResponseObjectItemsInnerSerie';
|
|
31
|
+
import {
|
|
32
|
+
ApiEsportMatchesGet200ResponseResponseObjectItemsInnerSerieFromJSON,
|
|
33
|
+
ApiEsportMatchesGet200ResponseResponseObjectItemsInnerSerieFromJSONTyped,
|
|
34
|
+
ApiEsportMatchesGet200ResponseResponseObjectItemsInnerSerieToJSON,
|
|
35
|
+
ApiEsportMatchesGet200ResponseResponseObjectItemsInnerSerieToJSONTyped,
|
|
36
|
+
} from './ApiEsportMatchesGet200ResponseResponseObjectItemsInnerSerie';
|
|
37
|
+
import type { ApiEsportMatchesGet200ResponseResponseObjectItemsInnerLeague } from './ApiEsportMatchesGet200ResponseResponseObjectItemsInnerLeague';
|
|
38
|
+
import {
|
|
39
|
+
ApiEsportMatchesGet200ResponseResponseObjectItemsInnerLeagueFromJSON,
|
|
40
|
+
ApiEsportMatchesGet200ResponseResponseObjectItemsInnerLeagueFromJSONTyped,
|
|
41
|
+
ApiEsportMatchesGet200ResponseResponseObjectItemsInnerLeagueToJSON,
|
|
42
|
+
ApiEsportMatchesGet200ResponseResponseObjectItemsInnerLeagueToJSONTyped,
|
|
43
|
+
} from './ApiEsportMatchesGet200ResponseResponseObjectItemsInnerLeague';
|
|
44
|
+
import type { ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInner } from './ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInner';
|
|
45
|
+
import {
|
|
46
|
+
ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInnerFromJSON,
|
|
47
|
+
ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInnerFromJSONTyped,
|
|
48
|
+
ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInnerToJSON,
|
|
49
|
+
ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInnerToJSONTyped,
|
|
50
|
+
} from './ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInner';
|
|
51
|
+
import type { ApiEsportMatchesGet200ResponseResponseObjectItemsInnerOpponentsInner } from './ApiEsportMatchesGet200ResponseResponseObjectItemsInnerOpponentsInner';
|
|
52
|
+
import {
|
|
53
|
+
ApiEsportMatchesGet200ResponseResponseObjectItemsInnerOpponentsInnerFromJSON,
|
|
54
|
+
ApiEsportMatchesGet200ResponseResponseObjectItemsInnerOpponentsInnerFromJSONTyped,
|
|
55
|
+
ApiEsportMatchesGet200ResponseResponseObjectItemsInnerOpponentsInnerToJSON,
|
|
56
|
+
ApiEsportMatchesGet200ResponseResponseObjectItemsInnerOpponentsInnerToJSONTyped,
|
|
57
|
+
} from './ApiEsportMatchesGet200ResponseResponseObjectItemsInnerOpponentsInner';
|
|
30
58
|
import type { ApiEsportMatchesGet200ResponseResponseObjectItemsInnerResultsInner } from './ApiEsportMatchesGet200ResponseResponseObjectItemsInnerResultsInner';
|
|
31
59
|
import {
|
|
32
60
|
ApiEsportMatchesGet200ResponseResponseObjectItemsInnerResultsInnerFromJSON,
|
|
@@ -34,6 +62,13 @@ import {
|
|
|
34
62
|
ApiEsportMatchesGet200ResponseResponseObjectItemsInnerResultsInnerToJSON,
|
|
35
63
|
ApiEsportMatchesGet200ResponseResponseObjectItemsInnerResultsInnerToJSONTyped,
|
|
36
64
|
} from './ApiEsportMatchesGet200ResponseResponseObjectItemsInnerResultsInner';
|
|
65
|
+
import type { ApiEsportMatchesGet200ResponseResponseObjectItemsInnerTournament } from './ApiEsportMatchesGet200ResponseResponseObjectItemsInnerTournament';
|
|
66
|
+
import {
|
|
67
|
+
ApiEsportMatchesGet200ResponseResponseObjectItemsInnerTournamentFromJSON,
|
|
68
|
+
ApiEsportMatchesGet200ResponseResponseObjectItemsInnerTournamentFromJSONTyped,
|
|
69
|
+
ApiEsportMatchesGet200ResponseResponseObjectItemsInnerTournamentToJSON,
|
|
70
|
+
ApiEsportMatchesGet200ResponseResponseObjectItemsInnerTournamentToJSONTyped,
|
|
71
|
+
} from './ApiEsportMatchesGet200ResponseResponseObjectItemsInnerTournament';
|
|
37
72
|
|
|
38
73
|
/**
|
|
39
74
|
*
|
|
@@ -113,6 +148,36 @@ export interface ApiEsportMatchesGet200ResponseResponseObjectItemsInner {
|
|
|
113
148
|
* @memberof ApiEsportMatchesGet200ResponseResponseObjectItemsInner
|
|
114
149
|
*/
|
|
115
150
|
videogame: ApiEsportVideogamesGet200ResponseResponseObjectInner;
|
|
151
|
+
/**
|
|
152
|
+
*
|
|
153
|
+
* @type {ApiEsportMatchesGet200ResponseResponseObjectItemsInnerTournament}
|
|
154
|
+
* @memberof ApiEsportMatchesGet200ResponseResponseObjectItemsInner
|
|
155
|
+
*/
|
|
156
|
+
tournament: ApiEsportMatchesGet200ResponseResponseObjectItemsInnerTournament;
|
|
157
|
+
/**
|
|
158
|
+
*
|
|
159
|
+
* @type {ApiEsportMatchesGet200ResponseResponseObjectItemsInnerLeague}
|
|
160
|
+
* @memberof ApiEsportMatchesGet200ResponseResponseObjectItemsInner
|
|
161
|
+
*/
|
|
162
|
+
league: ApiEsportMatchesGet200ResponseResponseObjectItemsInnerLeague;
|
|
163
|
+
/**
|
|
164
|
+
*
|
|
165
|
+
* @type {ApiEsportMatchesGet200ResponseResponseObjectItemsInnerSerie}
|
|
166
|
+
* @memberof ApiEsportMatchesGet200ResponseResponseObjectItemsInner
|
|
167
|
+
*/
|
|
168
|
+
serie: ApiEsportMatchesGet200ResponseResponseObjectItemsInnerSerie;
|
|
169
|
+
/**
|
|
170
|
+
*
|
|
171
|
+
* @type {Array<ApiEsportMatchesGet200ResponseResponseObjectItemsInnerOpponentsInner>}
|
|
172
|
+
* @memberof ApiEsportMatchesGet200ResponseResponseObjectItemsInner
|
|
173
|
+
*/
|
|
174
|
+
opponents?: Array<ApiEsportMatchesGet200ResponseResponseObjectItemsInnerOpponentsInner>;
|
|
175
|
+
/**
|
|
176
|
+
*
|
|
177
|
+
* @type {Array<ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInner>}
|
|
178
|
+
* @memberof ApiEsportMatchesGet200ResponseResponseObjectItemsInner
|
|
179
|
+
*/
|
|
180
|
+
games?: Array<ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInner>;
|
|
116
181
|
}
|
|
117
182
|
|
|
118
183
|
/**
|
|
@@ -128,6 +193,9 @@ export function instanceOfApiEsportMatchesGet200ResponseResponseObjectItemsInner
|
|
|
128
193
|
if (!('leagueId' in value) || value['leagueId'] === undefined) return false;
|
|
129
194
|
if (!('serieId' in value) || value['serieId'] === undefined) return false;
|
|
130
195
|
if (!('videogame' in value) || value['videogame'] === undefined) return false;
|
|
196
|
+
if (!('tournament' in value) || value['tournament'] === undefined) return false;
|
|
197
|
+
if (!('league' in value) || value['league'] === undefined) return false;
|
|
198
|
+
if (!('serie' in value) || value['serie'] === undefined) return false;
|
|
131
199
|
return true;
|
|
132
200
|
}
|
|
133
201
|
|
|
@@ -152,7 +220,12 @@ export function ApiEsportMatchesGet200ResponseResponseObjectItemsInnerFromJSONTy
|
|
|
152
220
|
'tournamentId': json['tournament_id'],
|
|
153
221
|
'leagueId': json['league_id'],
|
|
154
222
|
'serieId': json['serie_id'],
|
|
155
|
-
'videogame': ApiEsportVideogamesGet200ResponseResponseObjectInnerFromJSON(json['
|
|
223
|
+
'videogame': ApiEsportVideogamesGet200ResponseResponseObjectInnerFromJSON(json['Videogame']),
|
|
224
|
+
'tournament': ApiEsportMatchesGet200ResponseResponseObjectItemsInnerTournamentFromJSON(json['Tournament']),
|
|
225
|
+
'league': ApiEsportMatchesGet200ResponseResponseObjectItemsInnerLeagueFromJSON(json['League']),
|
|
226
|
+
'serie': ApiEsportMatchesGet200ResponseResponseObjectItemsInnerSerieFromJSON(json['Serie']),
|
|
227
|
+
'opponents': json['Opponents'] == null ? undefined : ((json['Opponents'] as Array<any>).map(ApiEsportMatchesGet200ResponseResponseObjectItemsInnerOpponentsInnerFromJSON)),
|
|
228
|
+
'games': json['Games'] == null ? undefined : ((json['Games'] as Array<any>).map(ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInnerFromJSON)),
|
|
156
229
|
};
|
|
157
230
|
}
|
|
158
231
|
|
|
@@ -178,7 +251,12 @@ export function ApiEsportMatchesGet200ResponseResponseObjectItemsInnerToJSONType
|
|
|
178
251
|
'tournament_id': value['tournamentId'],
|
|
179
252
|
'league_id': value['leagueId'],
|
|
180
253
|
'serie_id': value['serieId'],
|
|
181
|
-
'
|
|
254
|
+
'Videogame': ApiEsportVideogamesGet200ResponseResponseObjectInnerToJSON(value['videogame']),
|
|
255
|
+
'Tournament': ApiEsportMatchesGet200ResponseResponseObjectItemsInnerTournamentToJSON(value['tournament']),
|
|
256
|
+
'League': ApiEsportMatchesGet200ResponseResponseObjectItemsInnerLeagueToJSON(value['league']),
|
|
257
|
+
'Serie': ApiEsportMatchesGet200ResponseResponseObjectItemsInnerSerieToJSON(value['serie']),
|
|
258
|
+
'Opponents': value['opponents'] == null ? undefined : ((value['opponents'] as Array<any>).map(ApiEsportMatchesGet200ResponseResponseObjectItemsInnerOpponentsInnerToJSON)),
|
|
259
|
+
'Games': value['games'] == null ? undefined : ((value['games'] as Array<any>).map(ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInnerToJSON)),
|
|
182
260
|
};
|
|
183
261
|
}
|
|
184
262
|
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* DRX API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.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 { ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInnerWinner } from './ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInnerWinner';
|
|
17
|
+
import {
|
|
18
|
+
ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInnerWinnerFromJSON,
|
|
19
|
+
ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInnerWinnerFromJSONTyped,
|
|
20
|
+
ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInnerWinnerToJSON,
|
|
21
|
+
ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInnerWinnerToJSONTyped,
|
|
22
|
+
} from './ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInnerWinner';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInner
|
|
28
|
+
*/
|
|
29
|
+
export interface ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInner {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInner
|
|
34
|
+
*/
|
|
35
|
+
id: number;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {boolean}
|
|
39
|
+
* @memberof ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInner
|
|
40
|
+
*/
|
|
41
|
+
complete: boolean;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInner
|
|
46
|
+
*/
|
|
47
|
+
position?: number;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInner
|
|
52
|
+
*/
|
|
53
|
+
status?: string;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInner
|
|
58
|
+
*/
|
|
59
|
+
length?: number;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {boolean}
|
|
63
|
+
* @memberof ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInner
|
|
64
|
+
*/
|
|
65
|
+
finished: boolean;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInner
|
|
70
|
+
*/
|
|
71
|
+
beginAt?: string;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {boolean}
|
|
75
|
+
* @memberof ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInner
|
|
76
|
+
*/
|
|
77
|
+
detailedStats: boolean;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {string}
|
|
81
|
+
* @memberof ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInner
|
|
82
|
+
*/
|
|
83
|
+
endAt?: string;
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @type {boolean}
|
|
87
|
+
* @memberof ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInner
|
|
88
|
+
*/
|
|
89
|
+
forfeit: boolean;
|
|
90
|
+
/**
|
|
91
|
+
*
|
|
92
|
+
* @type {string}
|
|
93
|
+
* @memberof ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInner
|
|
94
|
+
*/
|
|
95
|
+
winnerType?: string;
|
|
96
|
+
/**
|
|
97
|
+
*
|
|
98
|
+
* @type {ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInnerWinner}
|
|
99
|
+
* @memberof ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInner
|
|
100
|
+
*/
|
|
101
|
+
winner: ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInnerWinner;
|
|
102
|
+
/**
|
|
103
|
+
*
|
|
104
|
+
* @type {number}
|
|
105
|
+
* @memberof ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInner
|
|
106
|
+
*/
|
|
107
|
+
matchId: number;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* Check if a given object implements the ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInner interface.
|
|
112
|
+
*/
|
|
113
|
+
export function instanceOfApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInner(value: object): value is ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInner {
|
|
114
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
115
|
+
if (!('complete' in value) || value['complete'] === undefined) return false;
|
|
116
|
+
if (!('finished' in value) || value['finished'] === undefined) return false;
|
|
117
|
+
if (!('detailedStats' in value) || value['detailedStats'] === undefined) return false;
|
|
118
|
+
if (!('forfeit' in value) || value['forfeit'] === undefined) return false;
|
|
119
|
+
if (!('winner' in value) || value['winner'] === undefined) return false;
|
|
120
|
+
if (!('matchId' in value) || value['matchId'] === undefined) return false;
|
|
121
|
+
return true;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export function ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInnerFromJSON(json: any): ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInner {
|
|
125
|
+
return ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInnerFromJSONTyped(json, false);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export function ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInner {
|
|
129
|
+
if (json == null) {
|
|
130
|
+
return json;
|
|
131
|
+
}
|
|
132
|
+
return {
|
|
133
|
+
|
|
134
|
+
'id': json['id'],
|
|
135
|
+
'complete': json['complete'],
|
|
136
|
+
'position': json['position'] == null ? undefined : json['position'],
|
|
137
|
+
'status': json['status'] == null ? undefined : json['status'],
|
|
138
|
+
'length': json['length'] == null ? undefined : json['length'],
|
|
139
|
+
'finished': json['finished'],
|
|
140
|
+
'beginAt': json['begin_at'] == null ? undefined : json['begin_at'],
|
|
141
|
+
'detailedStats': json['detailed_stats'],
|
|
142
|
+
'endAt': json['end_at'] == null ? undefined : json['end_at'],
|
|
143
|
+
'forfeit': json['forfeit'],
|
|
144
|
+
'winnerType': json['winner_type'] == null ? undefined : json['winner_type'],
|
|
145
|
+
'winner': ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInnerWinnerFromJSON(json['winner']),
|
|
146
|
+
'matchId': json['match_id'],
|
|
147
|
+
};
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
export function ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInnerToJSON(json: any): ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInner {
|
|
151
|
+
return ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInnerToJSONTyped(json, false);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
export function ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInnerToJSONTyped(value?: ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInner | null, ignoreDiscriminator: boolean = false): any {
|
|
155
|
+
if (value == null) {
|
|
156
|
+
return value;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
return {
|
|
160
|
+
|
|
161
|
+
'id': value['id'],
|
|
162
|
+
'complete': value['complete'],
|
|
163
|
+
'position': value['position'],
|
|
164
|
+
'status': value['status'],
|
|
165
|
+
'length': value['length'],
|
|
166
|
+
'finished': value['finished'],
|
|
167
|
+
'begin_at': value['beginAt'],
|
|
168
|
+
'detailed_stats': value['detailedStats'],
|
|
169
|
+
'end_at': value['endAt'],
|
|
170
|
+
'forfeit': value['forfeit'],
|
|
171
|
+
'winner_type': value['winnerType'],
|
|
172
|
+
'winner': ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInnerWinnerToJSON(value['winner']),
|
|
173
|
+
'match_id': value['matchId'],
|
|
174
|
+
};
|
|
175
|
+
}
|
|
176
|
+
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* DRX API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.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 ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInnerWinner
|
|
20
|
+
*/
|
|
21
|
+
export interface ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInnerWinner {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInnerWinner
|
|
26
|
+
*/
|
|
27
|
+
id: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInnerWinner
|
|
32
|
+
*/
|
|
33
|
+
type?: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInnerWinner interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInnerWinner(value: object): value is ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInnerWinner {
|
|
40
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export function ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInnerWinnerFromJSON(json: any): ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInnerWinner {
|
|
45
|
+
return ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInnerWinnerFromJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export function ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInnerWinnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInnerWinner {
|
|
49
|
+
if (json == null) {
|
|
50
|
+
return json;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
|
|
54
|
+
'id': json['id'],
|
|
55
|
+
'type': json['type'] == null ? undefined : json['type'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInnerWinnerToJSON(json: any): ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInnerWinner {
|
|
60
|
+
return ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInnerWinnerToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInnerWinnerToJSONTyped(value?: ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInnerWinner | null, ignoreDiscriminator: boolean = false): any {
|
|
64
|
+
if (value == null) {
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'id': value['id'],
|
|
71
|
+
'type': value['type'],
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* DRX API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.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 ApiEsportMatchesGet200ResponseResponseObjectItemsInnerLeague
|
|
20
|
+
*/
|
|
21
|
+
export interface ApiEsportMatchesGet200ResponseResponseObjectItemsInnerLeague {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof ApiEsportMatchesGet200ResponseResponseObjectItemsInnerLeague
|
|
26
|
+
*/
|
|
27
|
+
id: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ApiEsportMatchesGet200ResponseResponseObjectItemsInnerLeague
|
|
32
|
+
*/
|
|
33
|
+
name: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof ApiEsportMatchesGet200ResponseResponseObjectItemsInnerLeague
|
|
38
|
+
*/
|
|
39
|
+
slug: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof ApiEsportMatchesGet200ResponseResponseObjectItemsInnerLeague
|
|
44
|
+
*/
|
|
45
|
+
imageUrl?: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof ApiEsportMatchesGet200ResponseResponseObjectItemsInnerLeague
|
|
50
|
+
*/
|
|
51
|
+
videogameId: number;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Check if a given object implements the ApiEsportMatchesGet200ResponseResponseObjectItemsInnerLeague interface.
|
|
56
|
+
*/
|
|
57
|
+
export function instanceOfApiEsportMatchesGet200ResponseResponseObjectItemsInnerLeague(value: object): value is ApiEsportMatchesGet200ResponseResponseObjectItemsInnerLeague {
|
|
58
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
59
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
60
|
+
if (!('slug' in value) || value['slug'] === undefined) return false;
|
|
61
|
+
if (!('videogameId' in value) || value['videogameId'] === undefined) return false;
|
|
62
|
+
return true;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function ApiEsportMatchesGet200ResponseResponseObjectItemsInnerLeagueFromJSON(json: any): ApiEsportMatchesGet200ResponseResponseObjectItemsInnerLeague {
|
|
66
|
+
return ApiEsportMatchesGet200ResponseResponseObjectItemsInnerLeagueFromJSONTyped(json, false);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function ApiEsportMatchesGet200ResponseResponseObjectItemsInnerLeagueFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiEsportMatchesGet200ResponseResponseObjectItemsInnerLeague {
|
|
70
|
+
if (json == null) {
|
|
71
|
+
return json;
|
|
72
|
+
}
|
|
73
|
+
return {
|
|
74
|
+
|
|
75
|
+
'id': json['id'],
|
|
76
|
+
'name': json['name'],
|
|
77
|
+
'slug': json['slug'],
|
|
78
|
+
'imageUrl': json['image_url'] == null ? undefined : json['image_url'],
|
|
79
|
+
'videogameId': json['videogame_id'],
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function ApiEsportMatchesGet200ResponseResponseObjectItemsInnerLeagueToJSON(json: any): ApiEsportMatchesGet200ResponseResponseObjectItemsInnerLeague {
|
|
84
|
+
return ApiEsportMatchesGet200ResponseResponseObjectItemsInnerLeagueToJSONTyped(json, false);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function ApiEsportMatchesGet200ResponseResponseObjectItemsInnerLeagueToJSONTyped(value?: ApiEsportMatchesGet200ResponseResponseObjectItemsInnerLeague | null, ignoreDiscriminator: boolean = false): any {
|
|
88
|
+
if (value == null) {
|
|
89
|
+
return value;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
return {
|
|
93
|
+
|
|
94
|
+
'id': value['id'],
|
|
95
|
+
'name': value['name'],
|
|
96
|
+
'slug': value['slug'],
|
|
97
|
+
'image_url': value['imageUrl'],
|
|
98
|
+
'videogame_id': value['videogameId'],
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* DRX API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.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 { ApiEsportMatchesGet200ResponseResponseObjectItemsInnerOpponentsInnerTeam } from './ApiEsportMatchesGet200ResponseResponseObjectItemsInnerOpponentsInnerTeam';
|
|
17
|
+
import {
|
|
18
|
+
ApiEsportMatchesGet200ResponseResponseObjectItemsInnerOpponentsInnerTeamFromJSON,
|
|
19
|
+
ApiEsportMatchesGet200ResponseResponseObjectItemsInnerOpponentsInnerTeamFromJSONTyped,
|
|
20
|
+
ApiEsportMatchesGet200ResponseResponseObjectItemsInnerOpponentsInnerTeamToJSON,
|
|
21
|
+
ApiEsportMatchesGet200ResponseResponseObjectItemsInnerOpponentsInnerTeamToJSONTyped,
|
|
22
|
+
} from './ApiEsportMatchesGet200ResponseResponseObjectItemsInnerOpponentsInnerTeam';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ApiEsportMatchesGet200ResponseResponseObjectItemsInnerOpponentsInner
|
|
28
|
+
*/
|
|
29
|
+
export interface ApiEsportMatchesGet200ResponseResponseObjectItemsInnerOpponentsInner {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof ApiEsportMatchesGet200ResponseResponseObjectItemsInnerOpponentsInner
|
|
34
|
+
*/
|
|
35
|
+
id: number;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ApiEsportMatchesGet200ResponseResponseObjectItemsInnerOpponentsInner
|
|
40
|
+
*/
|
|
41
|
+
type?: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof ApiEsportMatchesGet200ResponseResponseObjectItemsInnerOpponentsInner
|
|
46
|
+
*/
|
|
47
|
+
matchId: number;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof ApiEsportMatchesGet200ResponseResponseObjectItemsInnerOpponentsInner
|
|
52
|
+
*/
|
|
53
|
+
teamId?: number;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {ApiEsportMatchesGet200ResponseResponseObjectItemsInnerOpponentsInnerTeam}
|
|
57
|
+
* @memberof ApiEsportMatchesGet200ResponseResponseObjectItemsInnerOpponentsInner
|
|
58
|
+
*/
|
|
59
|
+
team: ApiEsportMatchesGet200ResponseResponseObjectItemsInnerOpponentsInnerTeam;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Check if a given object implements the ApiEsportMatchesGet200ResponseResponseObjectItemsInnerOpponentsInner interface.
|
|
64
|
+
*/
|
|
65
|
+
export function instanceOfApiEsportMatchesGet200ResponseResponseObjectItemsInnerOpponentsInner(value: object): value is ApiEsportMatchesGet200ResponseResponseObjectItemsInnerOpponentsInner {
|
|
66
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
67
|
+
if (!('matchId' in value) || value['matchId'] === undefined) return false;
|
|
68
|
+
if (!('team' in value) || value['team'] === undefined) return false;
|
|
69
|
+
return true;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function ApiEsportMatchesGet200ResponseResponseObjectItemsInnerOpponentsInnerFromJSON(json: any): ApiEsportMatchesGet200ResponseResponseObjectItemsInnerOpponentsInner {
|
|
73
|
+
return ApiEsportMatchesGet200ResponseResponseObjectItemsInnerOpponentsInnerFromJSONTyped(json, false);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function ApiEsportMatchesGet200ResponseResponseObjectItemsInnerOpponentsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiEsportMatchesGet200ResponseResponseObjectItemsInnerOpponentsInner {
|
|
77
|
+
if (json == null) {
|
|
78
|
+
return json;
|
|
79
|
+
}
|
|
80
|
+
return {
|
|
81
|
+
|
|
82
|
+
'id': json['id'],
|
|
83
|
+
'type': json['type'] == null ? undefined : json['type'],
|
|
84
|
+
'matchId': json['match_id'],
|
|
85
|
+
'teamId': json['team_id'] == null ? undefined : json['team_id'],
|
|
86
|
+
'team': ApiEsportMatchesGet200ResponseResponseObjectItemsInnerOpponentsInnerTeamFromJSON(json['Team']),
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export function ApiEsportMatchesGet200ResponseResponseObjectItemsInnerOpponentsInnerToJSON(json: any): ApiEsportMatchesGet200ResponseResponseObjectItemsInnerOpponentsInner {
|
|
91
|
+
return ApiEsportMatchesGet200ResponseResponseObjectItemsInnerOpponentsInnerToJSONTyped(json, false);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export function ApiEsportMatchesGet200ResponseResponseObjectItemsInnerOpponentsInnerToJSONTyped(value?: ApiEsportMatchesGet200ResponseResponseObjectItemsInnerOpponentsInner | null, ignoreDiscriminator: boolean = false): any {
|
|
95
|
+
if (value == null) {
|
|
96
|
+
return value;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
return {
|
|
100
|
+
|
|
101
|
+
'id': value['id'],
|
|
102
|
+
'type': value['type'],
|
|
103
|
+
'match_id': value['matchId'],
|
|
104
|
+
'team_id': value['teamId'],
|
|
105
|
+
'Team': ApiEsportMatchesGet200ResponseResponseObjectItemsInnerOpponentsInnerTeamToJSON(value['team']),
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
|