@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.
- package/.openapi-generator/FILES +4 -0
- package/apis/EsportApi.ts +67 -0
- package/deploy.log +20 -8
- package/dist/apis/EsportApi.d.ts +15 -1
- package/dist/apis/EsportApi.js +44 -1
- package/dist/models/ApiEsportTournamentsGet200Response.d.ts +51 -0
- package/dist/models/ApiEsportTournamentsGet200Response.js +54 -0
- package/dist/models/ApiEsportTournamentsGet200ResponseResponseObject.d.ts +57 -0
- package/dist/models/ApiEsportTournamentsGet200ResponseResponseObject.js +60 -0
- package/dist/models/ApiEsportTournamentsGet200ResponseResponseObjectItemsInner.d.ts +136 -0
- package/dist/models/ApiEsportTournamentsGet200ResponseResponseObjectItemsInner.js +87 -0
- package/dist/models/ApiEsportTournamentsGetFilterParameter.d.ts +70 -0
- package/dist/models/ApiEsportTournamentsGetFilterParameter.js +55 -0
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/models/ApiEsportTournamentsGet200Response.ts +100 -0
- package/models/ApiEsportTournamentsGet200ResponseResponseObject.ts +110 -0
- package/models/ApiEsportTournamentsGet200ResponseResponseObjectItemsInner.ts +221 -0
- package/models/ApiEsportTournamentsGetFilterParameter.ts +128 -0
- package/models/index.ts +4 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -55,6 +55,10 @@ models/ApiEsportTeamsGet200ResponseResponseObject.ts
|
|
|
55
55
|
models/ApiEsportTeamsGet200ResponseResponseObjectItemsInner.ts
|
|
56
56
|
models/ApiEsportTeamsGetFilterParameter.ts
|
|
57
57
|
models/ApiEsportTeamsIdGet200Response.ts
|
|
58
|
+
models/ApiEsportTournamentsGet200Response.ts
|
|
59
|
+
models/ApiEsportTournamentsGet200ResponseResponseObject.ts
|
|
60
|
+
models/ApiEsportTournamentsGet200ResponseResponseObjectItemsInner.ts
|
|
61
|
+
models/ApiEsportTournamentsGetFilterParameter.ts
|
|
58
62
|
models/ApiEsportVideogamesGet200Response.ts
|
|
59
63
|
models/ApiEsportVideogamesGet200ResponseResponseObjectInner.ts
|
|
60
64
|
models/ApiHealthCheckGet200Response.ts
|
package/apis/EsportApi.ts
CHANGED
|
@@ -24,6 +24,8 @@ import type {
|
|
|
24
24
|
ApiEsportTeamsGet200Response,
|
|
25
25
|
ApiEsportTeamsGetFilterParameter,
|
|
26
26
|
ApiEsportTeamsIdGet200Response,
|
|
27
|
+
ApiEsportTournamentsGet200Response,
|
|
28
|
+
ApiEsportTournamentsGetFilterParameter,
|
|
27
29
|
ApiEsportVideogamesGet200Response,
|
|
28
30
|
} from '../models/index';
|
|
29
31
|
import {
|
|
@@ -45,6 +47,10 @@ import {
|
|
|
45
47
|
ApiEsportTeamsGetFilterParameterToJSON,
|
|
46
48
|
ApiEsportTeamsIdGet200ResponseFromJSON,
|
|
47
49
|
ApiEsportTeamsIdGet200ResponseToJSON,
|
|
50
|
+
ApiEsportTournamentsGet200ResponseFromJSON,
|
|
51
|
+
ApiEsportTournamentsGet200ResponseToJSON,
|
|
52
|
+
ApiEsportTournamentsGetFilterParameterFromJSON,
|
|
53
|
+
ApiEsportTournamentsGetFilterParameterToJSON,
|
|
48
54
|
ApiEsportVideogamesGet200ResponseFromJSON,
|
|
49
55
|
ApiEsportVideogamesGet200ResponseToJSON,
|
|
50
56
|
} from '../models/index';
|
|
@@ -82,6 +88,13 @@ export interface ApiEsportTeamsIdGetRequest {
|
|
|
82
88
|
id: string;
|
|
83
89
|
}
|
|
84
90
|
|
|
91
|
+
export interface ApiEsportTournamentsGetRequest {
|
|
92
|
+
page?: number;
|
|
93
|
+
pageSize?: number;
|
|
94
|
+
sort?: string;
|
|
95
|
+
filter?: ApiEsportTournamentsGetFilterParameter;
|
|
96
|
+
}
|
|
97
|
+
|
|
85
98
|
/**
|
|
86
99
|
*
|
|
87
100
|
*/
|
|
@@ -384,6 +397,60 @@ export class EsportApi extends runtime.BaseAPI {
|
|
|
384
397
|
return await response.value();
|
|
385
398
|
}
|
|
386
399
|
|
|
400
|
+
/**
|
|
401
|
+
* Get Esport Tournaments
|
|
402
|
+
*/
|
|
403
|
+
async apiEsportTournamentsGetRaw(requestParameters: ApiEsportTournamentsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiEsportTournamentsGet200Response>> {
|
|
404
|
+
const queryParameters: any = {};
|
|
405
|
+
|
|
406
|
+
if (requestParameters['page'] != null) {
|
|
407
|
+
queryParameters['page'] = requestParameters['page'];
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
if (requestParameters['pageSize'] != null) {
|
|
411
|
+
queryParameters['pageSize'] = requestParameters['pageSize'];
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
if (requestParameters['sort'] != null) {
|
|
415
|
+
queryParameters['sort'] = requestParameters['sort'];
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
if (requestParameters['filter'] != null) {
|
|
419
|
+
queryParameters['filter'] = requestParameters['filter'];
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
423
|
+
|
|
424
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
425
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
429
|
+
const token = this.configuration.accessToken;
|
|
430
|
+
const tokenString = await token("BearerAuth", []);
|
|
431
|
+
|
|
432
|
+
if (tokenString) {
|
|
433
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
const response = await this.request({
|
|
437
|
+
path: `/api/esport/tournaments`,
|
|
438
|
+
method: 'GET',
|
|
439
|
+
headers: headerParameters,
|
|
440
|
+
query: queryParameters,
|
|
441
|
+
}, initOverrides);
|
|
442
|
+
|
|
443
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiEsportTournamentsGet200ResponseFromJSON(jsonValue));
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
/**
|
|
447
|
+
* Get Esport Tournaments
|
|
448
|
+
*/
|
|
449
|
+
async apiEsportTournamentsGet(requestParameters: ApiEsportTournamentsGetRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiEsportTournamentsGet200Response> {
|
|
450
|
+
const response = await this.apiEsportTournamentsGetRaw(requestParameters, initOverrides);
|
|
451
|
+
return await response.value();
|
|
452
|
+
}
|
|
453
|
+
|
|
387
454
|
/**
|
|
388
455
|
* Get All Esport\'s Video Games
|
|
389
456
|
*/
|
package/deploy.log
CHANGED
|
@@ -178,6 +178,10 @@
|
|
|
178
178
|
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_esport_teams_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_teams_get_200_response_responseObject=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_esport_teams_get_200_response_responseObject=NewModel,ModelA=NewModelA in CLI).
|
|
179
179
|
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_esport_teams_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_teams_get_200_response=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_esport_teams_get_200_response=NewModel,ModelA=NewModelA in CLI).
|
|
180
180
|
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_esport_teams__id__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_teams__id__get_200_response=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_esport_teams__id__get_200_response=NewModel,ModelA=NewModelA in CLI).
|
|
181
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_esport_tournaments_get_filter_parameter. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_esport_tournaments_get_filter_parameter=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_esport_tournaments_get_filter_parameter=NewModel,ModelA=NewModelA in CLI).
|
|
182
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_esport_tournaments_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_tournaments_get_200_response_responseObject_items_inner=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_esport_tournaments_get_200_response_responseObject_items_inner=NewModel,ModelA=NewModelA in CLI).
|
|
183
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_esport_tournaments_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_tournaments_get_200_response_responseObject=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_esport_tournaments_get_200_response_responseObject=NewModel,ModelA=NewModelA in CLI).
|
|
184
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_esport_tournaments_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_tournaments_get_200_response=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_esport_tournaments_get_200_response=NewModel,ModelA=NewModelA in CLI).
|
|
181
185
|
[main] INFO o.o.codegen.utils.URLPathUtils - 'host' (OAS 2.0) or 'servers' (OAS 3.0) not defined in the spec. Default to [http://localhost] for server URL [http://localhost/]
|
|
182
186
|
[main] INFO o.o.codegen.utils.URLPathUtils - 'host' (OAS 2.0) or 'servers' (OAS 3.0) not defined in the spec. Default to [http://localhost] for server URL [http://localhost/]
|
|
183
187
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthForgotPasswordChangePasswordPost200Response.ts
|
|
@@ -223,6 +227,10 @@
|
|
|
223
227
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportTeamsGet200ResponseResponseObjectItemsInner.ts
|
|
224
228
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportTeamsGetFilterParameter.ts
|
|
225
229
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportTeamsIdGet200Response.ts
|
|
230
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportTournamentsGet200Response.ts
|
|
231
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportTournamentsGet200ResponseResponseObject.ts
|
|
232
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportTournamentsGet200ResponseResponseObjectItemsInner.ts
|
|
233
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportTournamentsGetFilterParameter.ts
|
|
226
234
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportVideogamesGet200Response.ts
|
|
227
235
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportVideogamesGet200ResponseResponseObjectInner.ts
|
|
228
236
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiHealthCheckGet200Response.ts
|
|
@@ -410,6 +418,7 @@
|
|
|
410
418
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/esport/players/{id}. Renamed to auto-generated operationId: apiEsportPlayersIdGet
|
|
411
419
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/esport/teams. Renamed to auto-generated operationId: apiEsportTeamsGet
|
|
412
420
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/esport/teams/{id}. Renamed to auto-generated operationId: apiEsportTeamsIdGet
|
|
421
|
+
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/esport/tournaments. Renamed to auto-generated operationId: apiEsportTournamentsGet
|
|
413
422
|
[main] INFO o.o.codegen.utils.URLPathUtils - 'host' (OAS 2.0) or 'servers' (OAS 3.0) not defined in the spec. Default to [http://localhost] for server URL [http://localhost/]
|
|
414
423
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./apis/AppConfigApi.ts
|
|
415
424
|
[main] INFO o.o.codegen.utils.URLPathUtils - 'host' (OAS 2.0) or 'servers' (OAS 3.0) not defined in the spec. Default to [http://localhost] for server URL [http://localhost/]
|
|
@@ -448,21 +457,24 @@
|
|
|
448
457
|
# https://opencollective.com/openapi_generator/donate #
|
|
449
458
|
################################################################################
|
|
450
459
|
✅ SDK generated
|
|
451
|
-
[master
|
|
452
|
-
|
|
453
|
-
create mode 100644 models/
|
|
460
|
+
[master fd18a50] VPS: Generated API SDK
|
|
461
|
+
7 files changed, 634 insertions(+)
|
|
462
|
+
create mode 100644 models/ApiEsportTournamentsGet200Response.ts
|
|
463
|
+
create mode 100644 models/ApiEsportTournamentsGet200ResponseResponseObject.ts
|
|
464
|
+
create mode 100644 models/ApiEsportTournamentsGet200ResponseResponseObjectItemsInner.ts
|
|
465
|
+
create mode 100644 models/ApiEsportTournamentsGetFilterParameter.ts
|
|
454
466
|
To https://gitlab.com/drx-super/drx-sdk.git
|
|
455
|
-
|
|
467
|
+
516cbd1..fd18a50 master -> master
|
|
456
468
|
✅ Changes committed and pushed
|
|
457
|
-
v1.1.
|
|
469
|
+
v1.1.226
|
|
458
470
|
To https://gitlab.com/drx-super/drx-sdk.git
|
|
459
|
-
|
|
471
|
+
fd18a50..eb66e93 master -> master
|
|
460
472
|
✅ Version bumped
|
|
461
473
|
|
|
462
|
-
> @drxsuperapp/sdk@1.1.
|
|
474
|
+
> @drxsuperapp/sdk@1.1.226 prepublishOnly
|
|
463
475
|
> npm run build
|
|
464
476
|
|
|
465
477
|
|
|
466
|
-
> @drxsuperapp/sdk@1.1.
|
|
478
|
+
> @drxsuperapp/sdk@1.1.226 build
|
|
467
479
|
> tsc
|
|
468
480
|
|
package/dist/apis/EsportApi.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { ApiEsportMatchesGet200Response, ApiEsportMatchesGetFilterParameter, ApiEsportMatchesIdGet200Response, ApiEsportPlayersGet200Response, ApiEsportPlayersGetFilterParameter, ApiEsportPlayersIdGet200Response, ApiEsportTeamsGet200Response, ApiEsportTeamsGetFilterParameter, ApiEsportTeamsIdGet200Response, ApiEsportVideogamesGet200Response } from '../models/index';
|
|
13
|
+
import type { ApiEsportMatchesGet200Response, ApiEsportMatchesGetFilterParameter, ApiEsportMatchesIdGet200Response, ApiEsportPlayersGet200Response, ApiEsportPlayersGetFilterParameter, ApiEsportPlayersIdGet200Response, ApiEsportTeamsGet200Response, ApiEsportTeamsGetFilterParameter, ApiEsportTeamsIdGet200Response, ApiEsportTournamentsGet200Response, ApiEsportTournamentsGetFilterParameter, ApiEsportVideogamesGet200Response } from '../models/index';
|
|
14
14
|
export interface ApiEsportMatchesGetRequest {
|
|
15
15
|
page?: number;
|
|
16
16
|
pageSize?: number;
|
|
@@ -38,6 +38,12 @@ export interface ApiEsportTeamsGetRequest {
|
|
|
38
38
|
export interface ApiEsportTeamsIdGetRequest {
|
|
39
39
|
id: string;
|
|
40
40
|
}
|
|
41
|
+
export interface ApiEsportTournamentsGetRequest {
|
|
42
|
+
page?: number;
|
|
43
|
+
pageSize?: number;
|
|
44
|
+
sort?: string;
|
|
45
|
+
filter?: ApiEsportTournamentsGetFilterParameter;
|
|
46
|
+
}
|
|
41
47
|
/**
|
|
42
48
|
*
|
|
43
49
|
*/
|
|
@@ -90,6 +96,14 @@ export declare class EsportApi extends runtime.BaseAPI {
|
|
|
90
96
|
* Get Esport Team Details
|
|
91
97
|
*/
|
|
92
98
|
apiEsportTeamsIdGet(requestParameters: ApiEsportTeamsIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiEsportTeamsIdGet200Response>;
|
|
99
|
+
/**
|
|
100
|
+
* Get Esport Tournaments
|
|
101
|
+
*/
|
|
102
|
+
apiEsportTournamentsGetRaw(requestParameters: ApiEsportTournamentsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiEsportTournamentsGet200Response>>;
|
|
103
|
+
/**
|
|
104
|
+
* Get Esport Tournaments
|
|
105
|
+
*/
|
|
106
|
+
apiEsportTournamentsGet(requestParameters?: ApiEsportTournamentsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiEsportTournamentsGet200Response>;
|
|
93
107
|
/**
|
|
94
108
|
* Get All Esport\'s Video Games
|
|
95
109
|
*/
|
package/dist/apis/EsportApi.js
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import * as runtime from '../runtime';
|
|
15
|
-
import { ApiEsportMatchesGet200ResponseFromJSON, ApiEsportMatchesIdGet200ResponseFromJSON, ApiEsportPlayersGet200ResponseFromJSON, ApiEsportPlayersIdGet200ResponseFromJSON, ApiEsportTeamsGet200ResponseFromJSON, ApiEsportTeamsIdGet200ResponseFromJSON, ApiEsportVideogamesGet200ResponseFromJSON, } from '../models/index';
|
|
15
|
+
import { ApiEsportMatchesGet200ResponseFromJSON, ApiEsportMatchesIdGet200ResponseFromJSON, ApiEsportPlayersGet200ResponseFromJSON, ApiEsportPlayersIdGet200ResponseFromJSON, ApiEsportTeamsGet200ResponseFromJSON, ApiEsportTeamsIdGet200ResponseFromJSON, ApiEsportTournamentsGet200ResponseFromJSON, ApiEsportVideogamesGet200ResponseFromJSON, } from '../models/index';
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
*/
|
|
@@ -248,6 +248,49 @@ export class EsportApi extends runtime.BaseAPI {
|
|
|
248
248
|
const response = await this.apiEsportTeamsIdGetRaw(requestParameters, initOverrides);
|
|
249
249
|
return await response.value();
|
|
250
250
|
}
|
|
251
|
+
/**
|
|
252
|
+
* Get Esport Tournaments
|
|
253
|
+
*/
|
|
254
|
+
async apiEsportTournamentsGetRaw(requestParameters, initOverrides) {
|
|
255
|
+
const queryParameters = {};
|
|
256
|
+
if (requestParameters['page'] != null) {
|
|
257
|
+
queryParameters['page'] = requestParameters['page'];
|
|
258
|
+
}
|
|
259
|
+
if (requestParameters['pageSize'] != null) {
|
|
260
|
+
queryParameters['pageSize'] = requestParameters['pageSize'];
|
|
261
|
+
}
|
|
262
|
+
if (requestParameters['sort'] != null) {
|
|
263
|
+
queryParameters['sort'] = requestParameters['sort'];
|
|
264
|
+
}
|
|
265
|
+
if (requestParameters['filter'] != null) {
|
|
266
|
+
queryParameters['filter'] = requestParameters['filter'];
|
|
267
|
+
}
|
|
268
|
+
const headerParameters = {};
|
|
269
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
270
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
271
|
+
}
|
|
272
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
273
|
+
const token = this.configuration.accessToken;
|
|
274
|
+
const tokenString = await token("BearerAuth", []);
|
|
275
|
+
if (tokenString) {
|
|
276
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
const response = await this.request({
|
|
280
|
+
path: `/api/esport/tournaments`,
|
|
281
|
+
method: 'GET',
|
|
282
|
+
headers: headerParameters,
|
|
283
|
+
query: queryParameters,
|
|
284
|
+
}, initOverrides);
|
|
285
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiEsportTournamentsGet200ResponseFromJSON(jsonValue));
|
|
286
|
+
}
|
|
287
|
+
/**
|
|
288
|
+
* Get Esport Tournaments
|
|
289
|
+
*/
|
|
290
|
+
async apiEsportTournamentsGet(requestParameters = {}, initOverrides) {
|
|
291
|
+
const response = await this.apiEsportTournamentsGetRaw(requestParameters, initOverrides);
|
|
292
|
+
return await response.value();
|
|
293
|
+
}
|
|
251
294
|
/**
|
|
252
295
|
* Get All Esport\'s Video Games
|
|
253
296
|
*/
|
|
@@ -0,0 +1,51 @@
|
|
|
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 { ApiEsportTournamentsGet200ResponseResponseObject } from './ApiEsportTournamentsGet200ResponseResponseObject';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ApiEsportTournamentsGet200Response
|
|
17
|
+
*/
|
|
18
|
+
export interface ApiEsportTournamentsGet200Response {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {boolean}
|
|
22
|
+
* @memberof ApiEsportTournamentsGet200Response
|
|
23
|
+
*/
|
|
24
|
+
success: boolean;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof ApiEsportTournamentsGet200Response
|
|
29
|
+
*/
|
|
30
|
+
message: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {ApiEsportTournamentsGet200ResponseResponseObject}
|
|
34
|
+
* @memberof ApiEsportTournamentsGet200Response
|
|
35
|
+
*/
|
|
36
|
+
responseObject?: ApiEsportTournamentsGet200ResponseResponseObject;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof ApiEsportTournamentsGet200Response
|
|
41
|
+
*/
|
|
42
|
+
statusCode: number;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the ApiEsportTournamentsGet200Response interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfApiEsportTournamentsGet200Response(value: object): value is ApiEsportTournamentsGet200Response;
|
|
48
|
+
export declare function ApiEsportTournamentsGet200ResponseFromJSON(json: any): ApiEsportTournamentsGet200Response;
|
|
49
|
+
export declare function ApiEsportTournamentsGet200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiEsportTournamentsGet200Response;
|
|
50
|
+
export declare function ApiEsportTournamentsGet200ResponseToJSON(json: any): ApiEsportTournamentsGet200Response;
|
|
51
|
+
export declare function ApiEsportTournamentsGet200ResponseToJSONTyped(value?: ApiEsportTournamentsGet200Response | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
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 { ApiEsportTournamentsGet200ResponseResponseObjectFromJSON, ApiEsportTournamentsGet200ResponseResponseObjectToJSON, } from './ApiEsportTournamentsGet200ResponseResponseObject';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the ApiEsportTournamentsGet200Response interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfApiEsportTournamentsGet200Response(value) {
|
|
19
|
+
if (!('success' in value) || value['success'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('message' in value) || value['message'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('statusCode' in value) || value['statusCode'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
export function ApiEsportTournamentsGet200ResponseFromJSON(json) {
|
|
28
|
+
return ApiEsportTournamentsGet200ResponseFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
export function ApiEsportTournamentsGet200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'success': json['success'],
|
|
36
|
+
'message': json['message'],
|
|
37
|
+
'responseObject': json['responseObject'] == null ? undefined : ApiEsportTournamentsGet200ResponseResponseObjectFromJSON(json['responseObject']),
|
|
38
|
+
'statusCode': json['statusCode'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
export function ApiEsportTournamentsGet200ResponseToJSON(json) {
|
|
42
|
+
return ApiEsportTournamentsGet200ResponseToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
export function ApiEsportTournamentsGet200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'success': value['success'],
|
|
50
|
+
'message': value['message'],
|
|
51
|
+
'responseObject': ApiEsportTournamentsGet200ResponseResponseObjectToJSON(value['responseObject']),
|
|
52
|
+
'statusCode': value['statusCode'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
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 { ApiEsportTournamentsGet200ResponseResponseObjectItemsInner } from './ApiEsportTournamentsGet200ResponseResponseObjectItemsInner';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ApiEsportTournamentsGet200ResponseResponseObject
|
|
17
|
+
*/
|
|
18
|
+
export interface ApiEsportTournamentsGet200ResponseResponseObject {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<ApiEsportTournamentsGet200ResponseResponseObjectItemsInner>}
|
|
22
|
+
* @memberof ApiEsportTournamentsGet200ResponseResponseObject
|
|
23
|
+
*/
|
|
24
|
+
items: Array<ApiEsportTournamentsGet200ResponseResponseObjectItemsInner>;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof ApiEsportTournamentsGet200ResponseResponseObject
|
|
29
|
+
*/
|
|
30
|
+
currentPage: number;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof ApiEsportTournamentsGet200ResponseResponseObject
|
|
35
|
+
*/
|
|
36
|
+
totalItems: number;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof ApiEsportTournamentsGet200ResponseResponseObject
|
|
41
|
+
*/
|
|
42
|
+
totalPages: number;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {number}
|
|
46
|
+
* @memberof ApiEsportTournamentsGet200ResponseResponseObject
|
|
47
|
+
*/
|
|
48
|
+
pageSize: number;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the ApiEsportTournamentsGet200ResponseResponseObject interface.
|
|
52
|
+
*/
|
|
53
|
+
export declare function instanceOfApiEsportTournamentsGet200ResponseResponseObject(value: object): value is ApiEsportTournamentsGet200ResponseResponseObject;
|
|
54
|
+
export declare function ApiEsportTournamentsGet200ResponseResponseObjectFromJSON(json: any): ApiEsportTournamentsGet200ResponseResponseObject;
|
|
55
|
+
export declare function ApiEsportTournamentsGet200ResponseResponseObjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiEsportTournamentsGet200ResponseResponseObject;
|
|
56
|
+
export declare function ApiEsportTournamentsGet200ResponseResponseObjectToJSON(json: any): ApiEsportTournamentsGet200ResponseResponseObject;
|
|
57
|
+
export declare function ApiEsportTournamentsGet200ResponseResponseObjectToJSONTyped(value?: ApiEsportTournamentsGet200ResponseResponseObject | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,60 @@
|
|
|
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 { ApiEsportTournamentsGet200ResponseResponseObjectItemsInnerFromJSON, ApiEsportTournamentsGet200ResponseResponseObjectItemsInnerToJSON, } from './ApiEsportTournamentsGet200ResponseResponseObjectItemsInner';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the ApiEsportTournamentsGet200ResponseResponseObject interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfApiEsportTournamentsGet200ResponseResponseObject(value) {
|
|
19
|
+
if (!('items' in value) || value['items'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('currentPage' in value) || value['currentPage'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('totalItems' in value) || value['totalItems'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
if (!('totalPages' in value) || value['totalPages'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('pageSize' in value) || value['pageSize'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
export function ApiEsportTournamentsGet200ResponseResponseObjectFromJSON(json) {
|
|
32
|
+
return ApiEsportTournamentsGet200ResponseResponseObjectFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
export function ApiEsportTournamentsGet200ResponseResponseObjectFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'items': (json['items'].map(ApiEsportTournamentsGet200ResponseResponseObjectItemsInnerFromJSON)),
|
|
40
|
+
'currentPage': json['currentPage'],
|
|
41
|
+
'totalItems': json['totalItems'],
|
|
42
|
+
'totalPages': json['totalPages'],
|
|
43
|
+
'pageSize': json['pageSize'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
export function ApiEsportTournamentsGet200ResponseResponseObjectToJSON(json) {
|
|
47
|
+
return ApiEsportTournamentsGet200ResponseResponseObjectToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
export function ApiEsportTournamentsGet200ResponseResponseObjectToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'items': (value['items'].map(ApiEsportTournamentsGet200ResponseResponseObjectItemsInnerToJSON)),
|
|
55
|
+
'currentPage': value['currentPage'],
|
|
56
|
+
'totalItems': value['totalItems'],
|
|
57
|
+
'totalPages': value['totalPages'],
|
|
58
|
+
'pageSize': value['pageSize'],
|
|
59
|
+
};
|
|
60
|
+
}
|
|
@@ -0,0 +1,136 @@
|
|
|
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 { ApiEsportVideogamesGet200ResponseResponseObjectInner } from './ApiEsportVideogamesGet200ResponseResponseObjectInner';
|
|
13
|
+
import type { ApiEsportMatchesGet200ResponseResponseObjectItemsInner } from './ApiEsportMatchesGet200ResponseResponseObjectItemsInner';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface ApiEsportTournamentsGet200ResponseResponseObjectItemsInner
|
|
18
|
+
*/
|
|
19
|
+
export interface ApiEsportTournamentsGet200ResponseResponseObjectItemsInner {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {number}
|
|
23
|
+
* @memberof ApiEsportTournamentsGet200ResponseResponseObjectItemsInner
|
|
24
|
+
*/
|
|
25
|
+
id: number;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof ApiEsportTournamentsGet200ResponseResponseObjectItemsInner
|
|
30
|
+
*/
|
|
31
|
+
name: string;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof ApiEsportTournamentsGet200ResponseResponseObjectItemsInner
|
|
36
|
+
*/
|
|
37
|
+
type?: string;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof ApiEsportTournamentsGet200ResponseResponseObjectItemsInner
|
|
42
|
+
*/
|
|
43
|
+
country?: string;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof ApiEsportTournamentsGet200ResponseResponseObjectItemsInner
|
|
48
|
+
*/
|
|
49
|
+
beginAt?: string;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {boolean}
|
|
53
|
+
* @memberof ApiEsportTournamentsGet200ResponseResponseObjectItemsInner
|
|
54
|
+
*/
|
|
55
|
+
detailedStats: boolean;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {string}
|
|
59
|
+
* @memberof ApiEsportTournamentsGet200ResponseResponseObjectItemsInner
|
|
60
|
+
*/
|
|
61
|
+
endAt?: string;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {number}
|
|
65
|
+
* @memberof ApiEsportTournamentsGet200ResponseResponseObjectItemsInner
|
|
66
|
+
*/
|
|
67
|
+
winnerId?: number;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {string}
|
|
71
|
+
* @memberof ApiEsportTournamentsGet200ResponseResponseObjectItemsInner
|
|
72
|
+
*/
|
|
73
|
+
winnerType?: string;
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @type {string}
|
|
77
|
+
* @memberof ApiEsportTournamentsGet200ResponseResponseObjectItemsInner
|
|
78
|
+
*/
|
|
79
|
+
slug: string;
|
|
80
|
+
/**
|
|
81
|
+
*
|
|
82
|
+
* @type {string}
|
|
83
|
+
* @memberof ApiEsportTournamentsGet200ResponseResponseObjectItemsInner
|
|
84
|
+
*/
|
|
85
|
+
prizepool?: string;
|
|
86
|
+
/**
|
|
87
|
+
*
|
|
88
|
+
* @type {string}
|
|
89
|
+
* @memberof ApiEsportTournamentsGet200ResponseResponseObjectItemsInner
|
|
90
|
+
*/
|
|
91
|
+
tier?: string;
|
|
92
|
+
/**
|
|
93
|
+
*
|
|
94
|
+
* @type {string}
|
|
95
|
+
* @memberof ApiEsportTournamentsGet200ResponseResponseObjectItemsInner
|
|
96
|
+
*/
|
|
97
|
+
region?: string;
|
|
98
|
+
/**
|
|
99
|
+
*
|
|
100
|
+
* @type {number}
|
|
101
|
+
* @memberof ApiEsportTournamentsGet200ResponseResponseObjectItemsInner
|
|
102
|
+
*/
|
|
103
|
+
videogameId: number;
|
|
104
|
+
/**
|
|
105
|
+
*
|
|
106
|
+
* @type {number}
|
|
107
|
+
* @memberof ApiEsportTournamentsGet200ResponseResponseObjectItemsInner
|
|
108
|
+
*/
|
|
109
|
+
serieId?: number;
|
|
110
|
+
/**
|
|
111
|
+
*
|
|
112
|
+
* @type {number}
|
|
113
|
+
* @memberof ApiEsportTournamentsGet200ResponseResponseObjectItemsInner
|
|
114
|
+
*/
|
|
115
|
+
leagueId?: number;
|
|
116
|
+
/**
|
|
117
|
+
*
|
|
118
|
+
* @type {Array<ApiEsportMatchesGet200ResponseResponseObjectItemsInner>}
|
|
119
|
+
* @memberof ApiEsportTournamentsGet200ResponseResponseObjectItemsInner
|
|
120
|
+
*/
|
|
121
|
+
matches?: Array<ApiEsportMatchesGet200ResponseResponseObjectItemsInner>;
|
|
122
|
+
/**
|
|
123
|
+
*
|
|
124
|
+
* @type {ApiEsportVideogamesGet200ResponseResponseObjectInner}
|
|
125
|
+
* @memberof ApiEsportTournamentsGet200ResponseResponseObjectItemsInner
|
|
126
|
+
*/
|
|
127
|
+
videogame?: ApiEsportVideogamesGet200ResponseResponseObjectInner;
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* Check if a given object implements the ApiEsportTournamentsGet200ResponseResponseObjectItemsInner interface.
|
|
131
|
+
*/
|
|
132
|
+
export declare function instanceOfApiEsportTournamentsGet200ResponseResponseObjectItemsInner(value: object): value is ApiEsportTournamentsGet200ResponseResponseObjectItemsInner;
|
|
133
|
+
export declare function ApiEsportTournamentsGet200ResponseResponseObjectItemsInnerFromJSON(json: any): ApiEsportTournamentsGet200ResponseResponseObjectItemsInner;
|
|
134
|
+
export declare function ApiEsportTournamentsGet200ResponseResponseObjectItemsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiEsportTournamentsGet200ResponseResponseObjectItemsInner;
|
|
135
|
+
export declare function ApiEsportTournamentsGet200ResponseResponseObjectItemsInnerToJSON(json: any): ApiEsportTournamentsGet200ResponseResponseObjectItemsInner;
|
|
136
|
+
export declare function ApiEsportTournamentsGet200ResponseResponseObjectItemsInnerToJSONTyped(value?: ApiEsportTournamentsGet200ResponseResponseObjectItemsInner | null, ignoreDiscriminator?: boolean): any;
|