@drxsuperapp/sdk 1.1.225 → 1.1.226

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.
@@ -0,0 +1,87 @@
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 { ApiEsportVideogamesGet200ResponseResponseObjectInnerFromJSON, ApiEsportVideogamesGet200ResponseResponseObjectInnerToJSON, } from './ApiEsportVideogamesGet200ResponseResponseObjectInner';
15
+ import { ApiEsportMatchesGet200ResponseResponseObjectItemsInnerFromJSON, ApiEsportMatchesGet200ResponseResponseObjectItemsInnerToJSON, } from './ApiEsportMatchesGet200ResponseResponseObjectItemsInner';
16
+ /**
17
+ * Check if a given object implements the ApiEsportTournamentsGet200ResponseResponseObjectItemsInner interface.
18
+ */
19
+ export function instanceOfApiEsportTournamentsGet200ResponseResponseObjectItemsInner(value) {
20
+ if (!('id' in value) || value['id'] === undefined)
21
+ return false;
22
+ if (!('name' in value) || value['name'] === undefined)
23
+ return false;
24
+ if (!('detailedStats' in value) || value['detailedStats'] === undefined)
25
+ return false;
26
+ if (!('slug' in value) || value['slug'] === undefined)
27
+ return false;
28
+ if (!('videogameId' in value) || value['videogameId'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ export function ApiEsportTournamentsGet200ResponseResponseObjectItemsInnerFromJSON(json) {
33
+ return ApiEsportTournamentsGet200ResponseResponseObjectItemsInnerFromJSONTyped(json, false);
34
+ }
35
+ export function ApiEsportTournamentsGet200ResponseResponseObjectItemsInnerFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'id': json['id'],
41
+ 'name': json['name'],
42
+ 'type': json['type'] == null ? undefined : json['type'],
43
+ 'country': json['country'] == null ? undefined : json['country'],
44
+ 'beginAt': json['begin_at'] == null ? undefined : json['begin_at'],
45
+ 'detailedStats': json['detailed_stats'],
46
+ 'endAt': json['end_at'] == null ? undefined : json['end_at'],
47
+ 'winnerId': json['winner_id'] == null ? undefined : json['winner_id'],
48
+ 'winnerType': json['winner_type'] == null ? undefined : json['winner_type'],
49
+ 'slug': json['slug'],
50
+ 'prizepool': json['prizepool'] == null ? undefined : json['prizepool'],
51
+ 'tier': json['tier'] == null ? undefined : json['tier'],
52
+ 'region': json['region'] == null ? undefined : json['region'],
53
+ 'videogameId': json['videogame_id'],
54
+ 'serieId': json['serie_id'] == null ? undefined : json['serie_id'],
55
+ 'leagueId': json['league_id'] == null ? undefined : json['league_id'],
56
+ 'matches': json['matches'] == null ? undefined : (json['matches'].map(ApiEsportMatchesGet200ResponseResponseObjectItemsInnerFromJSON)),
57
+ 'videogame': json['videogame'] == null ? undefined : ApiEsportVideogamesGet200ResponseResponseObjectInnerFromJSON(json['videogame']),
58
+ };
59
+ }
60
+ export function ApiEsportTournamentsGet200ResponseResponseObjectItemsInnerToJSON(json) {
61
+ return ApiEsportTournamentsGet200ResponseResponseObjectItemsInnerToJSONTyped(json, false);
62
+ }
63
+ export function ApiEsportTournamentsGet200ResponseResponseObjectItemsInnerToJSONTyped(value, ignoreDiscriminator = false) {
64
+ if (value == null) {
65
+ return value;
66
+ }
67
+ return {
68
+ 'id': value['id'],
69
+ 'name': value['name'],
70
+ 'type': value['type'],
71
+ 'country': value['country'],
72
+ 'begin_at': value['beginAt'],
73
+ 'detailed_stats': value['detailedStats'],
74
+ 'end_at': value['endAt'],
75
+ 'winner_id': value['winnerId'],
76
+ 'winner_type': value['winnerType'],
77
+ 'slug': value['slug'],
78
+ 'prizepool': value['prizepool'],
79
+ 'tier': value['tier'],
80
+ 'region': value['region'],
81
+ 'videogame_id': value['videogameId'],
82
+ 'serie_id': value['serieId'],
83
+ 'league_id': value['leagueId'],
84
+ 'matches': value['matches'] == null ? undefined : (value['matches'].map(ApiEsportMatchesGet200ResponseResponseObjectItemsInnerToJSON)),
85
+ 'videogame': ApiEsportVideogamesGet200ResponseResponseObjectInnerToJSON(value['videogame']),
86
+ };
87
+ }
@@ -0,0 +1,70 @@
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 { ApiPadelMatchesGetFilterParameterName } from './ApiPadelMatchesGetFilterParameterName';
13
+ import type { ApiPadelMatchesGetFilterParameterId } from './ApiPadelMatchesGetFilterParameterId';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface ApiEsportTournamentsGetFilterParameter
18
+ */
19
+ export interface ApiEsportTournamentsGetFilterParameter {
20
+ /**
21
+ *
22
+ * @type {ApiPadelMatchesGetFilterParameterId}
23
+ * @memberof ApiEsportTournamentsGetFilterParameter
24
+ */
25
+ id?: ApiPadelMatchesGetFilterParameterId;
26
+ /**
27
+ *
28
+ * @type {ApiPadelMatchesGetFilterParameterName}
29
+ * @memberof ApiEsportTournamentsGetFilterParameter
30
+ */
31
+ name?: ApiPadelMatchesGetFilterParameterName;
32
+ /**
33
+ *
34
+ * @type {ApiPadelMatchesGetFilterParameterName}
35
+ * @memberof ApiEsportTournamentsGetFilterParameter
36
+ */
37
+ country?: ApiPadelMatchesGetFilterParameterName;
38
+ /**
39
+ *
40
+ * @type {ApiPadelMatchesGetFilterParameterName}
41
+ * @memberof ApiEsportTournamentsGetFilterParameter
42
+ */
43
+ region?: ApiPadelMatchesGetFilterParameterName;
44
+ /**
45
+ *
46
+ * @type {ApiPadelMatchesGetFilterParameterId}
47
+ * @memberof ApiEsportTournamentsGetFilterParameter
48
+ */
49
+ leagueId?: ApiPadelMatchesGetFilterParameterId;
50
+ /**
51
+ *
52
+ * @type {ApiPadelMatchesGetFilterParameterId}
53
+ * @memberof ApiEsportTournamentsGetFilterParameter
54
+ */
55
+ serieId?: ApiPadelMatchesGetFilterParameterId;
56
+ /**
57
+ *
58
+ * @type {ApiPadelMatchesGetFilterParameterId}
59
+ * @memberof ApiEsportTournamentsGetFilterParameter
60
+ */
61
+ videogameId?: ApiPadelMatchesGetFilterParameterId;
62
+ }
63
+ /**
64
+ * Check if a given object implements the ApiEsportTournamentsGetFilterParameter interface.
65
+ */
66
+ export declare function instanceOfApiEsportTournamentsGetFilterParameter(value: object): value is ApiEsportTournamentsGetFilterParameter;
67
+ export declare function ApiEsportTournamentsGetFilterParameterFromJSON(json: any): ApiEsportTournamentsGetFilterParameter;
68
+ export declare function ApiEsportTournamentsGetFilterParameterFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiEsportTournamentsGetFilterParameter;
69
+ export declare function ApiEsportTournamentsGetFilterParameterToJSON(json: any): ApiEsportTournamentsGetFilterParameter;
70
+ export declare function ApiEsportTournamentsGetFilterParameterToJSONTyped(value?: ApiEsportTournamentsGetFilterParameter | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,55 @@
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 { ApiPadelMatchesGetFilterParameterNameFromJSON, ApiPadelMatchesGetFilterParameterNameToJSON, } from './ApiPadelMatchesGetFilterParameterName';
15
+ import { ApiPadelMatchesGetFilterParameterIdFromJSON, ApiPadelMatchesGetFilterParameterIdToJSON, } from './ApiPadelMatchesGetFilterParameterId';
16
+ /**
17
+ * Check if a given object implements the ApiEsportTournamentsGetFilterParameter interface.
18
+ */
19
+ export function instanceOfApiEsportTournamentsGetFilterParameter(value) {
20
+ return true;
21
+ }
22
+ export function ApiEsportTournamentsGetFilterParameterFromJSON(json) {
23
+ return ApiEsportTournamentsGetFilterParameterFromJSONTyped(json, false);
24
+ }
25
+ export function ApiEsportTournamentsGetFilterParameterFromJSONTyped(json, ignoreDiscriminator) {
26
+ if (json == null) {
27
+ return json;
28
+ }
29
+ return {
30
+ 'id': json['id'] == null ? undefined : ApiPadelMatchesGetFilterParameterIdFromJSON(json['id']),
31
+ 'name': json['name'] == null ? undefined : ApiPadelMatchesGetFilterParameterNameFromJSON(json['name']),
32
+ 'country': json['country'] == null ? undefined : ApiPadelMatchesGetFilterParameterNameFromJSON(json['country']),
33
+ 'region': json['region'] == null ? undefined : ApiPadelMatchesGetFilterParameterNameFromJSON(json['region']),
34
+ 'leagueId': json['league_id'] == null ? undefined : ApiPadelMatchesGetFilterParameterIdFromJSON(json['league_id']),
35
+ 'serieId': json['serie_id'] == null ? undefined : ApiPadelMatchesGetFilterParameterIdFromJSON(json['serie_id']),
36
+ 'videogameId': json['videogame_id'] == null ? undefined : ApiPadelMatchesGetFilterParameterIdFromJSON(json['videogame_id']),
37
+ };
38
+ }
39
+ export function ApiEsportTournamentsGetFilterParameterToJSON(json) {
40
+ return ApiEsportTournamentsGetFilterParameterToJSONTyped(json, false);
41
+ }
42
+ export function ApiEsportTournamentsGetFilterParameterToJSONTyped(value, ignoreDiscriminator = false) {
43
+ if (value == null) {
44
+ return value;
45
+ }
46
+ return {
47
+ 'id': ApiPadelMatchesGetFilterParameterIdToJSON(value['id']),
48
+ 'name': ApiPadelMatchesGetFilterParameterNameToJSON(value['name']),
49
+ 'country': ApiPadelMatchesGetFilterParameterNameToJSON(value['country']),
50
+ 'region': ApiPadelMatchesGetFilterParameterNameToJSON(value['region']),
51
+ 'league_id': ApiPadelMatchesGetFilterParameterIdToJSON(value['leagueId']),
52
+ 'serie_id': ApiPadelMatchesGetFilterParameterIdToJSON(value['serieId']),
53
+ 'videogame_id': ApiPadelMatchesGetFilterParameterIdToJSON(value['videogameId']),
54
+ };
55
+ }
@@ -41,6 +41,10 @@ export * from './ApiEsportTeamsGet200ResponseResponseObject';
41
41
  export * from './ApiEsportTeamsGet200ResponseResponseObjectItemsInner';
42
42
  export * from './ApiEsportTeamsGetFilterParameter';
43
43
  export * from './ApiEsportTeamsIdGet200Response';
44
+ export * from './ApiEsportTournamentsGet200Response';
45
+ export * from './ApiEsportTournamentsGet200ResponseResponseObject';
46
+ export * from './ApiEsportTournamentsGet200ResponseResponseObjectItemsInner';
47
+ export * from './ApiEsportTournamentsGetFilterParameter';
44
48
  export * from './ApiEsportVideogamesGet200Response';
45
49
  export * from './ApiEsportVideogamesGet200ResponseResponseObjectInner';
46
50
  export * from './ApiHealthCheckGet200Response';
@@ -43,6 +43,10 @@ export * from './ApiEsportTeamsGet200ResponseResponseObject';
43
43
  export * from './ApiEsportTeamsGet200ResponseResponseObjectItemsInner';
44
44
  export * from './ApiEsportTeamsGetFilterParameter';
45
45
  export * from './ApiEsportTeamsIdGet200Response';
46
+ export * from './ApiEsportTournamentsGet200Response';
47
+ export * from './ApiEsportTournamentsGet200ResponseResponseObject';
48
+ export * from './ApiEsportTournamentsGet200ResponseResponseObjectItemsInner';
49
+ export * from './ApiEsportTournamentsGetFilterParameter';
46
50
  export * from './ApiEsportVideogamesGet200Response';
47
51
  export * from './ApiEsportVideogamesGet200ResponseResponseObjectInner';
48
52
  export * from './ApiHealthCheckGet200Response';
@@ -0,0 +1,100 @@
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 { ApiEsportTournamentsGet200ResponseResponseObject } from './ApiEsportTournamentsGet200ResponseResponseObject';
17
+ import {
18
+ ApiEsportTournamentsGet200ResponseResponseObjectFromJSON,
19
+ ApiEsportTournamentsGet200ResponseResponseObjectFromJSONTyped,
20
+ ApiEsportTournamentsGet200ResponseResponseObjectToJSON,
21
+ ApiEsportTournamentsGet200ResponseResponseObjectToJSONTyped,
22
+ } from './ApiEsportTournamentsGet200ResponseResponseObject';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface ApiEsportTournamentsGet200Response
28
+ */
29
+ export interface ApiEsportTournamentsGet200Response {
30
+ /**
31
+ *
32
+ * @type {boolean}
33
+ * @memberof ApiEsportTournamentsGet200Response
34
+ */
35
+ success: boolean;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof ApiEsportTournamentsGet200Response
40
+ */
41
+ message: string;
42
+ /**
43
+ *
44
+ * @type {ApiEsportTournamentsGet200ResponseResponseObject}
45
+ * @memberof ApiEsportTournamentsGet200Response
46
+ */
47
+ responseObject?: ApiEsportTournamentsGet200ResponseResponseObject;
48
+ /**
49
+ *
50
+ * @type {number}
51
+ * @memberof ApiEsportTournamentsGet200Response
52
+ */
53
+ statusCode: number;
54
+ }
55
+
56
+ /**
57
+ * Check if a given object implements the ApiEsportTournamentsGet200Response interface.
58
+ */
59
+ export function instanceOfApiEsportTournamentsGet200Response(value: object): value is ApiEsportTournamentsGet200Response {
60
+ if (!('success' in value) || value['success'] === undefined) return false;
61
+ if (!('message' in value) || value['message'] === undefined) return false;
62
+ if (!('statusCode' in value) || value['statusCode'] === undefined) return false;
63
+ return true;
64
+ }
65
+
66
+ export function ApiEsportTournamentsGet200ResponseFromJSON(json: any): ApiEsportTournamentsGet200Response {
67
+ return ApiEsportTournamentsGet200ResponseFromJSONTyped(json, false);
68
+ }
69
+
70
+ export function ApiEsportTournamentsGet200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiEsportTournamentsGet200Response {
71
+ if (json == null) {
72
+ return json;
73
+ }
74
+ return {
75
+
76
+ 'success': json['success'],
77
+ 'message': json['message'],
78
+ 'responseObject': json['responseObject'] == null ? undefined : ApiEsportTournamentsGet200ResponseResponseObjectFromJSON(json['responseObject']),
79
+ 'statusCode': json['statusCode'],
80
+ };
81
+ }
82
+
83
+ export function ApiEsportTournamentsGet200ResponseToJSON(json: any): ApiEsportTournamentsGet200Response {
84
+ return ApiEsportTournamentsGet200ResponseToJSONTyped(json, false);
85
+ }
86
+
87
+ export function ApiEsportTournamentsGet200ResponseToJSONTyped(value?: ApiEsportTournamentsGet200Response | null, ignoreDiscriminator: boolean = false): any {
88
+ if (value == null) {
89
+ return value;
90
+ }
91
+
92
+ return {
93
+
94
+ 'success': value['success'],
95
+ 'message': value['message'],
96
+ 'responseObject': ApiEsportTournamentsGet200ResponseResponseObjectToJSON(value['responseObject']),
97
+ 'statusCode': value['statusCode'],
98
+ };
99
+ }
100
+
@@ -0,0 +1,110 @@
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 { ApiEsportTournamentsGet200ResponseResponseObjectItemsInner } from './ApiEsportTournamentsGet200ResponseResponseObjectItemsInner';
17
+ import {
18
+ ApiEsportTournamentsGet200ResponseResponseObjectItemsInnerFromJSON,
19
+ ApiEsportTournamentsGet200ResponseResponseObjectItemsInnerFromJSONTyped,
20
+ ApiEsportTournamentsGet200ResponseResponseObjectItemsInnerToJSON,
21
+ ApiEsportTournamentsGet200ResponseResponseObjectItemsInnerToJSONTyped,
22
+ } from './ApiEsportTournamentsGet200ResponseResponseObjectItemsInner';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface ApiEsportTournamentsGet200ResponseResponseObject
28
+ */
29
+ export interface ApiEsportTournamentsGet200ResponseResponseObject {
30
+ /**
31
+ *
32
+ * @type {Array<ApiEsportTournamentsGet200ResponseResponseObjectItemsInner>}
33
+ * @memberof ApiEsportTournamentsGet200ResponseResponseObject
34
+ */
35
+ items: Array<ApiEsportTournamentsGet200ResponseResponseObjectItemsInner>;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof ApiEsportTournamentsGet200ResponseResponseObject
40
+ */
41
+ currentPage: number;
42
+ /**
43
+ *
44
+ * @type {number}
45
+ * @memberof ApiEsportTournamentsGet200ResponseResponseObject
46
+ */
47
+ totalItems: number;
48
+ /**
49
+ *
50
+ * @type {number}
51
+ * @memberof ApiEsportTournamentsGet200ResponseResponseObject
52
+ */
53
+ totalPages: number;
54
+ /**
55
+ *
56
+ * @type {number}
57
+ * @memberof ApiEsportTournamentsGet200ResponseResponseObject
58
+ */
59
+ pageSize: number;
60
+ }
61
+
62
+ /**
63
+ * Check if a given object implements the ApiEsportTournamentsGet200ResponseResponseObject interface.
64
+ */
65
+ export function instanceOfApiEsportTournamentsGet200ResponseResponseObject(value: object): value is ApiEsportTournamentsGet200ResponseResponseObject {
66
+ if (!('items' in value) || value['items'] === undefined) return false;
67
+ if (!('currentPage' in value) || value['currentPage'] === undefined) return false;
68
+ if (!('totalItems' in value) || value['totalItems'] === undefined) return false;
69
+ if (!('totalPages' in value) || value['totalPages'] === undefined) return false;
70
+ if (!('pageSize' in value) || value['pageSize'] === undefined) return false;
71
+ return true;
72
+ }
73
+
74
+ export function ApiEsportTournamentsGet200ResponseResponseObjectFromJSON(json: any): ApiEsportTournamentsGet200ResponseResponseObject {
75
+ return ApiEsportTournamentsGet200ResponseResponseObjectFromJSONTyped(json, false);
76
+ }
77
+
78
+ export function ApiEsportTournamentsGet200ResponseResponseObjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiEsportTournamentsGet200ResponseResponseObject {
79
+ if (json == null) {
80
+ return json;
81
+ }
82
+ return {
83
+
84
+ 'items': ((json['items'] as Array<any>).map(ApiEsportTournamentsGet200ResponseResponseObjectItemsInnerFromJSON)),
85
+ 'currentPage': json['currentPage'],
86
+ 'totalItems': json['totalItems'],
87
+ 'totalPages': json['totalPages'],
88
+ 'pageSize': json['pageSize'],
89
+ };
90
+ }
91
+
92
+ export function ApiEsportTournamentsGet200ResponseResponseObjectToJSON(json: any): ApiEsportTournamentsGet200ResponseResponseObject {
93
+ return ApiEsportTournamentsGet200ResponseResponseObjectToJSONTyped(json, false);
94
+ }
95
+
96
+ export function ApiEsportTournamentsGet200ResponseResponseObjectToJSONTyped(value?: ApiEsportTournamentsGet200ResponseResponseObject | null, ignoreDiscriminator: boolean = false): any {
97
+ if (value == null) {
98
+ return value;
99
+ }
100
+
101
+ return {
102
+
103
+ 'items': ((value['items'] as Array<any>).map(ApiEsportTournamentsGet200ResponseResponseObjectItemsInnerToJSON)),
104
+ 'currentPage': value['currentPage'],
105
+ 'totalItems': value['totalItems'],
106
+ 'totalPages': value['totalPages'],
107
+ 'pageSize': value['pageSize'],
108
+ };
109
+ }
110
+
@@ -0,0 +1,221 @@
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 { ApiEsportVideogamesGet200ResponseResponseObjectInner } from './ApiEsportVideogamesGet200ResponseResponseObjectInner';
17
+ import {
18
+ ApiEsportVideogamesGet200ResponseResponseObjectInnerFromJSON,
19
+ ApiEsportVideogamesGet200ResponseResponseObjectInnerFromJSONTyped,
20
+ ApiEsportVideogamesGet200ResponseResponseObjectInnerToJSON,
21
+ ApiEsportVideogamesGet200ResponseResponseObjectInnerToJSONTyped,
22
+ } from './ApiEsportVideogamesGet200ResponseResponseObjectInner';
23
+ import type { ApiEsportMatchesGet200ResponseResponseObjectItemsInner } from './ApiEsportMatchesGet200ResponseResponseObjectItemsInner';
24
+ import {
25
+ ApiEsportMatchesGet200ResponseResponseObjectItemsInnerFromJSON,
26
+ ApiEsportMatchesGet200ResponseResponseObjectItemsInnerFromJSONTyped,
27
+ ApiEsportMatchesGet200ResponseResponseObjectItemsInnerToJSON,
28
+ ApiEsportMatchesGet200ResponseResponseObjectItemsInnerToJSONTyped,
29
+ } from './ApiEsportMatchesGet200ResponseResponseObjectItemsInner';
30
+
31
+ /**
32
+ *
33
+ * @export
34
+ * @interface ApiEsportTournamentsGet200ResponseResponseObjectItemsInner
35
+ */
36
+ export interface ApiEsportTournamentsGet200ResponseResponseObjectItemsInner {
37
+ /**
38
+ *
39
+ * @type {number}
40
+ * @memberof ApiEsportTournamentsGet200ResponseResponseObjectItemsInner
41
+ */
42
+ id: number;
43
+ /**
44
+ *
45
+ * @type {string}
46
+ * @memberof ApiEsportTournamentsGet200ResponseResponseObjectItemsInner
47
+ */
48
+ name: string;
49
+ /**
50
+ *
51
+ * @type {string}
52
+ * @memberof ApiEsportTournamentsGet200ResponseResponseObjectItemsInner
53
+ */
54
+ type?: string;
55
+ /**
56
+ *
57
+ * @type {string}
58
+ * @memberof ApiEsportTournamentsGet200ResponseResponseObjectItemsInner
59
+ */
60
+ country?: string;
61
+ /**
62
+ *
63
+ * @type {string}
64
+ * @memberof ApiEsportTournamentsGet200ResponseResponseObjectItemsInner
65
+ */
66
+ beginAt?: string;
67
+ /**
68
+ *
69
+ * @type {boolean}
70
+ * @memberof ApiEsportTournamentsGet200ResponseResponseObjectItemsInner
71
+ */
72
+ detailedStats: boolean;
73
+ /**
74
+ *
75
+ * @type {string}
76
+ * @memberof ApiEsportTournamentsGet200ResponseResponseObjectItemsInner
77
+ */
78
+ endAt?: string;
79
+ /**
80
+ *
81
+ * @type {number}
82
+ * @memberof ApiEsportTournamentsGet200ResponseResponseObjectItemsInner
83
+ */
84
+ winnerId?: number;
85
+ /**
86
+ *
87
+ * @type {string}
88
+ * @memberof ApiEsportTournamentsGet200ResponseResponseObjectItemsInner
89
+ */
90
+ winnerType?: string;
91
+ /**
92
+ *
93
+ * @type {string}
94
+ * @memberof ApiEsportTournamentsGet200ResponseResponseObjectItemsInner
95
+ */
96
+ slug: string;
97
+ /**
98
+ *
99
+ * @type {string}
100
+ * @memberof ApiEsportTournamentsGet200ResponseResponseObjectItemsInner
101
+ */
102
+ prizepool?: string;
103
+ /**
104
+ *
105
+ * @type {string}
106
+ * @memberof ApiEsportTournamentsGet200ResponseResponseObjectItemsInner
107
+ */
108
+ tier?: string;
109
+ /**
110
+ *
111
+ * @type {string}
112
+ * @memberof ApiEsportTournamentsGet200ResponseResponseObjectItemsInner
113
+ */
114
+ region?: string;
115
+ /**
116
+ *
117
+ * @type {number}
118
+ * @memberof ApiEsportTournamentsGet200ResponseResponseObjectItemsInner
119
+ */
120
+ videogameId: number;
121
+ /**
122
+ *
123
+ * @type {number}
124
+ * @memberof ApiEsportTournamentsGet200ResponseResponseObjectItemsInner
125
+ */
126
+ serieId?: number;
127
+ /**
128
+ *
129
+ * @type {number}
130
+ * @memberof ApiEsportTournamentsGet200ResponseResponseObjectItemsInner
131
+ */
132
+ leagueId?: number;
133
+ /**
134
+ *
135
+ * @type {Array<ApiEsportMatchesGet200ResponseResponseObjectItemsInner>}
136
+ * @memberof ApiEsportTournamentsGet200ResponseResponseObjectItemsInner
137
+ */
138
+ matches?: Array<ApiEsportMatchesGet200ResponseResponseObjectItemsInner>;
139
+ /**
140
+ *
141
+ * @type {ApiEsportVideogamesGet200ResponseResponseObjectInner}
142
+ * @memberof ApiEsportTournamentsGet200ResponseResponseObjectItemsInner
143
+ */
144
+ videogame?: ApiEsportVideogamesGet200ResponseResponseObjectInner;
145
+ }
146
+
147
+ /**
148
+ * Check if a given object implements the ApiEsportTournamentsGet200ResponseResponseObjectItemsInner interface.
149
+ */
150
+ export function instanceOfApiEsportTournamentsGet200ResponseResponseObjectItemsInner(value: object): value is ApiEsportTournamentsGet200ResponseResponseObjectItemsInner {
151
+ if (!('id' in value) || value['id'] === undefined) return false;
152
+ if (!('name' in value) || value['name'] === undefined) return false;
153
+ if (!('detailedStats' in value) || value['detailedStats'] === undefined) return false;
154
+ if (!('slug' in value) || value['slug'] === undefined) return false;
155
+ if (!('videogameId' in value) || value['videogameId'] === undefined) return false;
156
+ return true;
157
+ }
158
+
159
+ export function ApiEsportTournamentsGet200ResponseResponseObjectItemsInnerFromJSON(json: any): ApiEsportTournamentsGet200ResponseResponseObjectItemsInner {
160
+ return ApiEsportTournamentsGet200ResponseResponseObjectItemsInnerFromJSONTyped(json, false);
161
+ }
162
+
163
+ export function ApiEsportTournamentsGet200ResponseResponseObjectItemsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiEsportTournamentsGet200ResponseResponseObjectItemsInner {
164
+ if (json == null) {
165
+ return json;
166
+ }
167
+ return {
168
+
169
+ 'id': json['id'],
170
+ 'name': json['name'],
171
+ 'type': json['type'] == null ? undefined : json['type'],
172
+ 'country': json['country'] == null ? undefined : json['country'],
173
+ 'beginAt': json['begin_at'] == null ? undefined : json['begin_at'],
174
+ 'detailedStats': json['detailed_stats'],
175
+ 'endAt': json['end_at'] == null ? undefined : json['end_at'],
176
+ 'winnerId': json['winner_id'] == null ? undefined : json['winner_id'],
177
+ 'winnerType': json['winner_type'] == null ? undefined : json['winner_type'],
178
+ 'slug': json['slug'],
179
+ 'prizepool': json['prizepool'] == null ? undefined : json['prizepool'],
180
+ 'tier': json['tier'] == null ? undefined : json['tier'],
181
+ 'region': json['region'] == null ? undefined : json['region'],
182
+ 'videogameId': json['videogame_id'],
183
+ 'serieId': json['serie_id'] == null ? undefined : json['serie_id'],
184
+ 'leagueId': json['league_id'] == null ? undefined : json['league_id'],
185
+ 'matches': json['matches'] == null ? undefined : ((json['matches'] as Array<any>).map(ApiEsportMatchesGet200ResponseResponseObjectItemsInnerFromJSON)),
186
+ 'videogame': json['videogame'] == null ? undefined : ApiEsportVideogamesGet200ResponseResponseObjectInnerFromJSON(json['videogame']),
187
+ };
188
+ }
189
+
190
+ export function ApiEsportTournamentsGet200ResponseResponseObjectItemsInnerToJSON(json: any): ApiEsportTournamentsGet200ResponseResponseObjectItemsInner {
191
+ return ApiEsportTournamentsGet200ResponseResponseObjectItemsInnerToJSONTyped(json, false);
192
+ }
193
+
194
+ export function ApiEsportTournamentsGet200ResponseResponseObjectItemsInnerToJSONTyped(value?: ApiEsportTournamentsGet200ResponseResponseObjectItemsInner | null, ignoreDiscriminator: boolean = false): any {
195
+ if (value == null) {
196
+ return value;
197
+ }
198
+
199
+ return {
200
+
201
+ 'id': value['id'],
202
+ 'name': value['name'],
203
+ 'type': value['type'],
204
+ 'country': value['country'],
205
+ 'begin_at': value['beginAt'],
206
+ 'detailed_stats': value['detailedStats'],
207
+ 'end_at': value['endAt'],
208
+ 'winner_id': value['winnerId'],
209
+ 'winner_type': value['winnerType'],
210
+ 'slug': value['slug'],
211
+ 'prizepool': value['prizepool'],
212
+ 'tier': value['tier'],
213
+ 'region': value['region'],
214
+ 'videogame_id': value['videogameId'],
215
+ 'serie_id': value['serieId'],
216
+ 'league_id': value['leagueId'],
217
+ 'matches': value['matches'] == null ? undefined : ((value['matches'] as Array<any>).map(ApiEsportMatchesGet200ResponseResponseObjectItemsInnerToJSON)),
218
+ 'videogame': ApiEsportVideogamesGet200ResponseResponseObjectInnerToJSON(value['videogame']),
219
+ };
220
+ }
221
+