@drxsuperapp/sdk 1.1.239 → 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 +2 -0
- package/deploy.log +13 -12
- package/dist/models/ApiEsportMatchesGet200ResponseResponseObjectItemsInner.d.ts +7 -0
- package/dist/models/ApiEsportMatchesGet200ResponseResponseObjectItemsInner.js +3 -0
- 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/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/models/ApiEsportMatchesGet200ResponseResponseObjectItemsInner.ts +15 -0
- package/models/ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInner.ts +176 -0
- package/models/ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInnerWinner.ts +74 -0
- package/models/index.ts +2 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -44,6 +44,8 @@ models/ApiEsportLeaguesIdGet200Response.ts
|
|
|
44
44
|
models/ApiEsportMatchesGet200Response.ts
|
|
45
45
|
models/ApiEsportMatchesGet200ResponseResponseObject.ts
|
|
46
46
|
models/ApiEsportMatchesGet200ResponseResponseObjectItemsInner.ts
|
|
47
|
+
models/ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInner.ts
|
|
48
|
+
models/ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInnerWinner.ts
|
|
47
49
|
models/ApiEsportMatchesGet200ResponseResponseObjectItemsInnerLeague.ts
|
|
48
50
|
models/ApiEsportMatchesGet200ResponseResponseObjectItemsInnerOpponentsInner.ts
|
|
49
51
|
models/ApiEsportMatchesGet200ResponseResponseObjectItemsInnerOpponentsInnerTeam.ts
|
package/deploy.log
CHANGED
|
@@ -172,6 +172,8 @@
|
|
|
172
172
|
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_esport_matches_get_200_response_responseObject_items_inner_Serie. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_esport_matches_get_200_response_responseObject_items_inner_Serie=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_esport_matches_get_200_response_responseObject_items_inner_Serie=NewModel,ModelA=NewModelA in CLI).
|
|
173
173
|
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_esport_matches_get_200_response_responseObject_items_inner_Opponents_inner_Team. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_esport_matches_get_200_response_responseObject_items_inner_Opponents_inner_Team=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_esport_matches_get_200_response_responseObject_items_inner_Opponents_inner_Team=NewModel,ModelA=NewModelA in CLI).
|
|
174
174
|
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_esport_matches_get_200_response_responseObject_items_inner_Opponents_inner. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_esport_matches_get_200_response_responseObject_items_inner_Opponents_inner=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_esport_matches_get_200_response_responseObject_items_inner_Opponents_inner=NewModel,ModelA=NewModelA in CLI).
|
|
175
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_esport_matches_get_200_response_responseObject_items_inner_Games_inner_winner. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_esport_matches_get_200_response_responseObject_items_inner_Games_inner_winner=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_esport_matches_get_200_response_responseObject_items_inner_Games_inner_winner=NewModel,ModelA=NewModelA in CLI).
|
|
176
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_esport_matches_get_200_response_responseObject_items_inner_Games_inner. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_esport_matches_get_200_response_responseObject_items_inner_Games_inner=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_esport_matches_get_200_response_responseObject_items_inner_Games_inner=NewModel,ModelA=NewModelA in CLI).
|
|
175
177
|
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_esport_matches_get_200_response_responseObject_items_inner. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_esport_matches_get_200_response_responseObject_items_inner=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_esport_matches_get_200_response_responseObject_items_inner=NewModel,ModelA=NewModelA in CLI).
|
|
176
178
|
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_esport_matches_get_200_response_responseObject. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_esport_matches_get_200_response_responseObject=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_esport_matches_get_200_response_responseObject=NewModel,ModelA=NewModelA in CLI).
|
|
177
179
|
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_esport_matches_get_200_response. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_esport_matches_get_200_response=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_esport_matches_get_200_response=NewModel,ModelA=NewModelA in CLI).
|
|
@@ -235,6 +237,8 @@
|
|
|
235
237
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportMatchesGet200Response.ts
|
|
236
238
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportMatchesGet200ResponseResponseObject.ts
|
|
237
239
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportMatchesGet200ResponseResponseObjectItemsInner.ts
|
|
240
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInner.ts
|
|
241
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInnerWinner.ts
|
|
238
242
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportMatchesGet200ResponseResponseObjectItemsInnerLeague.ts
|
|
239
243
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportMatchesGet200ResponseResponseObjectItemsInnerOpponentsInner.ts
|
|
240
244
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportMatchesGet200ResponseResponseObjectItemsInnerOpponentsInnerTeam.ts
|
|
@@ -504,25 +508,22 @@
|
|
|
504
508
|
# https://opencollective.com/openapi_generator/donate #
|
|
505
509
|
################################################################################
|
|
506
510
|
✅ SDK generated
|
|
507
|
-
[master
|
|
508
|
-
|
|
509
|
-
create mode 100644 models/
|
|
510
|
-
create mode 100644 models/
|
|
511
|
-
create mode 100644 models/ApiEsportMatchesGet200ResponseResponseObjectItemsInnerOpponentsInnerTeam.ts
|
|
512
|
-
create mode 100644 models/ApiEsportMatchesGet200ResponseResponseObjectItemsInnerSerie.ts
|
|
513
|
-
create mode 100644 models/ApiEsportMatchesGet200ResponseResponseObjectItemsInnerTournament.ts
|
|
511
|
+
[master 86f25ea] VPS: Generated API SDK
|
|
512
|
+
5 files changed, 269 insertions(+)
|
|
513
|
+
create mode 100644 models/ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInner.ts
|
|
514
|
+
create mode 100644 models/ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInnerWinner.ts
|
|
514
515
|
To https://gitlab.com/drx-super/drx-sdk.git
|
|
515
|
-
|
|
516
|
+
c60e7e4..86f25ea master -> master
|
|
516
517
|
✅ Changes committed and pushed
|
|
517
|
-
v1.1.
|
|
518
|
+
v1.1.240
|
|
518
519
|
To https://gitlab.com/drx-super/drx-sdk.git
|
|
519
|
-
|
|
520
|
+
86f25ea..48aac9e master -> master
|
|
520
521
|
✅ Version bumped
|
|
521
522
|
|
|
522
|
-
> @drxsuperapp/sdk@1.1.
|
|
523
|
+
> @drxsuperapp/sdk@1.1.240 prepublishOnly
|
|
523
524
|
> npm run build
|
|
524
525
|
|
|
525
526
|
|
|
526
|
-
> @drxsuperapp/sdk@1.1.
|
|
527
|
+
> @drxsuperapp/sdk@1.1.240 build
|
|
527
528
|
> tsc
|
|
528
529
|
|
|
@@ -13,6 +13,7 @@ import type { ApiEsportMatchesGet200ResponseResponseObjectItemsInnerStreamsListI
|
|
|
13
13
|
import type { ApiEsportVideogamesGet200ResponseResponseObjectInner } from './ApiEsportVideogamesGet200ResponseResponseObjectInner';
|
|
14
14
|
import type { ApiEsportMatchesGet200ResponseResponseObjectItemsInnerSerie } from './ApiEsportMatchesGet200ResponseResponseObjectItemsInnerSerie';
|
|
15
15
|
import type { ApiEsportMatchesGet200ResponseResponseObjectItemsInnerLeague } from './ApiEsportMatchesGet200ResponseResponseObjectItemsInnerLeague';
|
|
16
|
+
import type { ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInner } from './ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInner';
|
|
16
17
|
import type { ApiEsportMatchesGet200ResponseResponseObjectItemsInnerOpponentsInner } from './ApiEsportMatchesGet200ResponseResponseObjectItemsInnerOpponentsInner';
|
|
17
18
|
import type { ApiEsportMatchesGet200ResponseResponseObjectItemsInnerResultsInner } from './ApiEsportMatchesGet200ResponseResponseObjectItemsInnerResultsInner';
|
|
18
19
|
import type { ApiEsportMatchesGet200ResponseResponseObjectItemsInnerTournament } from './ApiEsportMatchesGet200ResponseResponseObjectItemsInnerTournament';
|
|
@@ -118,6 +119,12 @@ export interface ApiEsportMatchesGet200ResponseResponseObjectItemsInner {
|
|
|
118
119
|
* @memberof ApiEsportMatchesGet200ResponseResponseObjectItemsInner
|
|
119
120
|
*/
|
|
120
121
|
opponents?: Array<ApiEsportMatchesGet200ResponseResponseObjectItemsInnerOpponentsInner>;
|
|
122
|
+
/**
|
|
123
|
+
*
|
|
124
|
+
* @type {Array<ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInner>}
|
|
125
|
+
* @memberof ApiEsportMatchesGet200ResponseResponseObjectItemsInner
|
|
126
|
+
*/
|
|
127
|
+
games?: Array<ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInner>;
|
|
121
128
|
}
|
|
122
129
|
/**
|
|
123
130
|
* Check if a given object implements the ApiEsportMatchesGet200ResponseResponseObjectItemsInner interface.
|
|
@@ -15,6 +15,7 @@ import { ApiEsportMatchesGet200ResponseResponseObjectItemsInnerStreamsListInnerF
|
|
|
15
15
|
import { ApiEsportVideogamesGet200ResponseResponseObjectInnerFromJSON, ApiEsportVideogamesGet200ResponseResponseObjectInnerToJSON, } from './ApiEsportVideogamesGet200ResponseResponseObjectInner';
|
|
16
16
|
import { ApiEsportMatchesGet200ResponseResponseObjectItemsInnerSerieFromJSON, ApiEsportMatchesGet200ResponseResponseObjectItemsInnerSerieToJSON, } from './ApiEsportMatchesGet200ResponseResponseObjectItemsInnerSerie';
|
|
17
17
|
import { ApiEsportMatchesGet200ResponseResponseObjectItemsInnerLeagueFromJSON, ApiEsportMatchesGet200ResponseResponseObjectItemsInnerLeagueToJSON, } from './ApiEsportMatchesGet200ResponseResponseObjectItemsInnerLeague';
|
|
18
|
+
import { ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInnerFromJSON, ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInnerToJSON, } from './ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInner';
|
|
18
19
|
import { ApiEsportMatchesGet200ResponseResponseObjectItemsInnerOpponentsInnerFromJSON, ApiEsportMatchesGet200ResponseResponseObjectItemsInnerOpponentsInnerToJSON, } from './ApiEsportMatchesGet200ResponseResponseObjectItemsInnerOpponentsInner';
|
|
19
20
|
import { ApiEsportMatchesGet200ResponseResponseObjectItemsInnerResultsInnerFromJSON, ApiEsportMatchesGet200ResponseResponseObjectItemsInnerResultsInnerToJSON, } from './ApiEsportMatchesGet200ResponseResponseObjectItemsInnerResultsInner';
|
|
20
21
|
import { ApiEsportMatchesGet200ResponseResponseObjectItemsInnerTournamentFromJSON, ApiEsportMatchesGet200ResponseResponseObjectItemsInnerTournamentToJSON, } from './ApiEsportMatchesGet200ResponseResponseObjectItemsInnerTournament';
|
|
@@ -72,6 +73,7 @@ export function ApiEsportMatchesGet200ResponseResponseObjectItemsInnerFromJSONTy
|
|
|
72
73
|
'league': ApiEsportMatchesGet200ResponseResponseObjectItemsInnerLeagueFromJSON(json['League']),
|
|
73
74
|
'serie': ApiEsportMatchesGet200ResponseResponseObjectItemsInnerSerieFromJSON(json['Serie']),
|
|
74
75
|
'opponents': json['Opponents'] == null ? undefined : (json['Opponents'].map(ApiEsportMatchesGet200ResponseResponseObjectItemsInnerOpponentsInnerFromJSON)),
|
|
76
|
+
'games': json['Games'] == null ? undefined : (json['Games'].map(ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInnerFromJSON)),
|
|
75
77
|
};
|
|
76
78
|
}
|
|
77
79
|
export function ApiEsportMatchesGet200ResponseResponseObjectItemsInnerToJSON(json) {
|
|
@@ -98,5 +100,6 @@ export function ApiEsportMatchesGet200ResponseResponseObjectItemsInnerToJSONType
|
|
|
98
100
|
'League': ApiEsportMatchesGet200ResponseResponseObjectItemsInnerLeagueToJSON(value['league']),
|
|
99
101
|
'Serie': ApiEsportMatchesGet200ResponseResponseObjectItemsInnerSerieToJSON(value['serie']),
|
|
100
102
|
'Opponents': value['opponents'] == null ? undefined : (value['opponents'].map(ApiEsportMatchesGet200ResponseResponseObjectItemsInnerOpponentsInnerToJSON)),
|
|
103
|
+
'Games': value['games'] == null ? undefined : (value['games'].map(ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInnerToJSON)),
|
|
101
104
|
};
|
|
102
105
|
}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DRX API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInnerWinner } from './ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInnerWinner';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInner
|
|
17
|
+
*/
|
|
18
|
+
export interface ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInner {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInner
|
|
23
|
+
*/
|
|
24
|
+
id: number;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {boolean}
|
|
28
|
+
* @memberof ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInner
|
|
29
|
+
*/
|
|
30
|
+
complete: boolean;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInner
|
|
35
|
+
*/
|
|
36
|
+
position?: number;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInner
|
|
41
|
+
*/
|
|
42
|
+
status?: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {number}
|
|
46
|
+
* @memberof ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInner
|
|
47
|
+
*/
|
|
48
|
+
length?: number;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {boolean}
|
|
52
|
+
* @memberof ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInner
|
|
53
|
+
*/
|
|
54
|
+
finished: boolean;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInner
|
|
59
|
+
*/
|
|
60
|
+
beginAt?: string;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {boolean}
|
|
64
|
+
* @memberof ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInner
|
|
65
|
+
*/
|
|
66
|
+
detailedStats: boolean;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInner
|
|
71
|
+
*/
|
|
72
|
+
endAt?: string;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {boolean}
|
|
76
|
+
* @memberof ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInner
|
|
77
|
+
*/
|
|
78
|
+
forfeit: boolean;
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @type {string}
|
|
82
|
+
* @memberof ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInner
|
|
83
|
+
*/
|
|
84
|
+
winnerType?: string;
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
* @type {ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInnerWinner}
|
|
88
|
+
* @memberof ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInner
|
|
89
|
+
*/
|
|
90
|
+
winner: ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInnerWinner;
|
|
91
|
+
/**
|
|
92
|
+
*
|
|
93
|
+
* @type {number}
|
|
94
|
+
* @memberof ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInner
|
|
95
|
+
*/
|
|
96
|
+
matchId: number;
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Check if a given object implements the ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInner interface.
|
|
100
|
+
*/
|
|
101
|
+
export declare function instanceOfApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInner(value: object): value is ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInner;
|
|
102
|
+
export declare function ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInnerFromJSON(json: any): ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInner;
|
|
103
|
+
export declare function ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInner;
|
|
104
|
+
export declare function ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInnerToJSON(json: any): ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInner;
|
|
105
|
+
export declare function ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInnerToJSONTyped(value?: ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInner | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,80 @@
|
|
|
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
|
+
import { ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInnerWinnerFromJSON, ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInnerWinnerToJSON, } from './ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInnerWinner';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInner interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInner(value) {
|
|
19
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('complete' in value) || value['complete'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('finished' in value) || value['finished'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
if (!('detailedStats' in value) || value['detailedStats'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('forfeit' in value) || value['forfeit'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('winner' in value) || value['winner'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('matchId' in value) || value['matchId'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
export function ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInnerFromJSON(json) {
|
|
36
|
+
return ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInnerFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
export function ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'id': json['id'],
|
|
44
|
+
'complete': json['complete'],
|
|
45
|
+
'position': json['position'] == null ? undefined : json['position'],
|
|
46
|
+
'status': json['status'] == null ? undefined : json['status'],
|
|
47
|
+
'length': json['length'] == null ? undefined : json['length'],
|
|
48
|
+
'finished': json['finished'],
|
|
49
|
+
'beginAt': json['begin_at'] == null ? undefined : json['begin_at'],
|
|
50
|
+
'detailedStats': json['detailed_stats'],
|
|
51
|
+
'endAt': json['end_at'] == null ? undefined : json['end_at'],
|
|
52
|
+
'forfeit': json['forfeit'],
|
|
53
|
+
'winnerType': json['winner_type'] == null ? undefined : json['winner_type'],
|
|
54
|
+
'winner': ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInnerWinnerFromJSON(json['winner']),
|
|
55
|
+
'matchId': json['match_id'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
export function ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInnerToJSON(json) {
|
|
59
|
+
return ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInnerToJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
export function ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInnerToJSONTyped(value, ignoreDiscriminator = false) {
|
|
62
|
+
if (value == null) {
|
|
63
|
+
return value;
|
|
64
|
+
}
|
|
65
|
+
return {
|
|
66
|
+
'id': value['id'],
|
|
67
|
+
'complete': value['complete'],
|
|
68
|
+
'position': value['position'],
|
|
69
|
+
'status': value['status'],
|
|
70
|
+
'length': value['length'],
|
|
71
|
+
'finished': value['finished'],
|
|
72
|
+
'begin_at': value['beginAt'],
|
|
73
|
+
'detailed_stats': value['detailedStats'],
|
|
74
|
+
'end_at': value['endAt'],
|
|
75
|
+
'forfeit': value['forfeit'],
|
|
76
|
+
'winner_type': value['winnerType'],
|
|
77
|
+
'winner': ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInnerWinnerToJSON(value['winner']),
|
|
78
|
+
'match_id': value['matchId'],
|
|
79
|
+
};
|
|
80
|
+
}
|
package/dist/models/ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInnerWinner.d.ts
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DRX API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInnerWinner
|
|
16
|
+
*/
|
|
17
|
+
export interface ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInnerWinner {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInnerWinner
|
|
22
|
+
*/
|
|
23
|
+
id: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInnerWinner
|
|
28
|
+
*/
|
|
29
|
+
type?: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInnerWinner interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInnerWinner(value: object): value is ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInnerWinner;
|
|
35
|
+
export declare function ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInnerWinnerFromJSON(json: any): ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInnerWinner;
|
|
36
|
+
export declare function ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInnerWinnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInnerWinner;
|
|
37
|
+
export declare function ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInnerWinnerToJSON(json: any): ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInnerWinner;
|
|
38
|
+
export declare function ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInnerWinnerToJSONTyped(value?: ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInnerWinner | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,45 @@
|
|
|
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
|
+
* Check if a given object implements the ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInnerWinner interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInnerWinner(value) {
|
|
18
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
export function ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInnerWinnerFromJSON(json) {
|
|
23
|
+
return ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInnerWinnerFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInnerWinnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'id': json['id'],
|
|
31
|
+
'type': json['type'] == null ? undefined : json['type'],
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export function ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInnerWinnerToJSON(json) {
|
|
35
|
+
return ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInnerWinnerToJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInnerWinnerToJSONTyped(value, ignoreDiscriminator = false) {
|
|
38
|
+
if (value == null) {
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'id': value['id'],
|
|
43
|
+
'type': value['type'],
|
|
44
|
+
};
|
|
45
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -30,6 +30,8 @@ export * from './ApiEsportLeaguesIdGet200Response';
|
|
|
30
30
|
export * from './ApiEsportMatchesGet200Response';
|
|
31
31
|
export * from './ApiEsportMatchesGet200ResponseResponseObject';
|
|
32
32
|
export * from './ApiEsportMatchesGet200ResponseResponseObjectItemsInner';
|
|
33
|
+
export * from './ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInner';
|
|
34
|
+
export * from './ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInnerWinner';
|
|
33
35
|
export * from './ApiEsportMatchesGet200ResponseResponseObjectItemsInnerLeague';
|
|
34
36
|
export * from './ApiEsportMatchesGet200ResponseResponseObjectItemsInnerOpponentsInner';
|
|
35
37
|
export * from './ApiEsportMatchesGet200ResponseResponseObjectItemsInnerOpponentsInnerTeam';
|
package/dist/models/index.js
CHANGED
|
@@ -32,6 +32,8 @@ export * from './ApiEsportLeaguesIdGet200Response';
|
|
|
32
32
|
export * from './ApiEsportMatchesGet200Response';
|
|
33
33
|
export * from './ApiEsportMatchesGet200ResponseResponseObject';
|
|
34
34
|
export * from './ApiEsportMatchesGet200ResponseResponseObjectItemsInner';
|
|
35
|
+
export * from './ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInner';
|
|
36
|
+
export * from './ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInnerWinner';
|
|
35
37
|
export * from './ApiEsportMatchesGet200ResponseResponseObjectItemsInnerLeague';
|
|
36
38
|
export * from './ApiEsportMatchesGet200ResponseResponseObjectItemsInnerOpponentsInner';
|
|
37
39
|
export * from './ApiEsportMatchesGet200ResponseResponseObjectItemsInnerOpponentsInnerTeam';
|
|
@@ -41,6 +41,13 @@ import {
|
|
|
41
41
|
ApiEsportMatchesGet200ResponseResponseObjectItemsInnerLeagueToJSON,
|
|
42
42
|
ApiEsportMatchesGet200ResponseResponseObjectItemsInnerLeagueToJSONTyped,
|
|
43
43
|
} from './ApiEsportMatchesGet200ResponseResponseObjectItemsInnerLeague';
|
|
44
|
+
import type { ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInner } from './ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInner';
|
|
45
|
+
import {
|
|
46
|
+
ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInnerFromJSON,
|
|
47
|
+
ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInnerFromJSONTyped,
|
|
48
|
+
ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInnerToJSON,
|
|
49
|
+
ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInnerToJSONTyped,
|
|
50
|
+
} from './ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInner';
|
|
44
51
|
import type { ApiEsportMatchesGet200ResponseResponseObjectItemsInnerOpponentsInner } from './ApiEsportMatchesGet200ResponseResponseObjectItemsInnerOpponentsInner';
|
|
45
52
|
import {
|
|
46
53
|
ApiEsportMatchesGet200ResponseResponseObjectItemsInnerOpponentsInnerFromJSON,
|
|
@@ -165,6 +172,12 @@ export interface ApiEsportMatchesGet200ResponseResponseObjectItemsInner {
|
|
|
165
172
|
* @memberof ApiEsportMatchesGet200ResponseResponseObjectItemsInner
|
|
166
173
|
*/
|
|
167
174
|
opponents?: Array<ApiEsportMatchesGet200ResponseResponseObjectItemsInnerOpponentsInner>;
|
|
175
|
+
/**
|
|
176
|
+
*
|
|
177
|
+
* @type {Array<ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInner>}
|
|
178
|
+
* @memberof ApiEsportMatchesGet200ResponseResponseObjectItemsInner
|
|
179
|
+
*/
|
|
180
|
+
games?: Array<ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInner>;
|
|
168
181
|
}
|
|
169
182
|
|
|
170
183
|
/**
|
|
@@ -212,6 +225,7 @@ export function ApiEsportMatchesGet200ResponseResponseObjectItemsInnerFromJSONTy
|
|
|
212
225
|
'league': ApiEsportMatchesGet200ResponseResponseObjectItemsInnerLeagueFromJSON(json['League']),
|
|
213
226
|
'serie': ApiEsportMatchesGet200ResponseResponseObjectItemsInnerSerieFromJSON(json['Serie']),
|
|
214
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)),
|
|
215
229
|
};
|
|
216
230
|
}
|
|
217
231
|
|
|
@@ -242,6 +256,7 @@ export function ApiEsportMatchesGet200ResponseResponseObjectItemsInnerToJSONType
|
|
|
242
256
|
'League': ApiEsportMatchesGet200ResponseResponseObjectItemsInnerLeagueToJSON(value['league']),
|
|
243
257
|
'Serie': ApiEsportMatchesGet200ResponseResponseObjectItemsInnerSerieToJSON(value['serie']),
|
|
244
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)),
|
|
245
260
|
};
|
|
246
261
|
}
|
|
247
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
|
+
|
package/models/index.ts
CHANGED
|
@@ -32,6 +32,8 @@ export * from './ApiEsportLeaguesIdGet200Response';
|
|
|
32
32
|
export * from './ApiEsportMatchesGet200Response';
|
|
33
33
|
export * from './ApiEsportMatchesGet200ResponseResponseObject';
|
|
34
34
|
export * from './ApiEsportMatchesGet200ResponseResponseObjectItemsInner';
|
|
35
|
+
export * from './ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInner';
|
|
36
|
+
export * from './ApiEsportMatchesGet200ResponseResponseObjectItemsInnerGamesInnerWinner';
|
|
35
37
|
export * from './ApiEsportMatchesGet200ResponseResponseObjectItemsInnerLeague';
|
|
36
38
|
export * from './ApiEsportMatchesGet200ResponseResponseObjectItemsInnerOpponentsInner';
|
|
37
39
|
export * from './ApiEsportMatchesGet200ResponseResponseObjectItemsInnerOpponentsInnerTeam';
|