@drxsuperapp/sdk 1.1.226 → 1.1.227
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 +5 -0
- package/apis/EsportApi.ts +119 -0
- package/deploy.log +24 -11
- package/dist/apis/EsportApi.d.ts +26 -1
- package/dist/apis/EsportApi.js +78 -1
- package/dist/models/ApiEsportSeriesGet200Response.d.ts +51 -0
- package/dist/models/ApiEsportSeriesGet200Response.js +54 -0
- package/dist/models/ApiEsportSeriesGet200ResponseResponseObject.d.ts +57 -0
- package/dist/models/ApiEsportSeriesGet200ResponseResponseObject.js +60 -0
- package/dist/models/ApiEsportSeriesGet200ResponseResponseObjectItemsInner.d.ts +100 -0
- package/dist/models/ApiEsportSeriesGet200ResponseResponseObjectItemsInner.js +75 -0
- package/dist/models/ApiEsportSeriesGetFilterParameter.d.ts +58 -0
- package/dist/models/ApiEsportSeriesGetFilterParameter.js +51 -0
- package/dist/models/ApiEsportTournamentsIdGet200Response.d.ts +51 -0
- package/dist/models/ApiEsportTournamentsIdGet200Response.js +54 -0
- package/dist/models/index.d.ts +5 -0
- package/dist/models/index.js +5 -0
- package/models/ApiEsportSeriesGet200Response.ts +100 -0
- package/models/ApiEsportSeriesGet200ResponseResponseObject.ts +110 -0
- package/models/ApiEsportSeriesGet200ResponseResponseObjectItemsInner.ts +173 -0
- package/models/ApiEsportSeriesGetFilterParameter.ts +112 -0
- package/models/ApiEsportTournamentsIdGet200Response.ts +100 -0
- package/models/index.ts +5 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -50,6 +50,10 @@ models/ApiEsportPlayersGet200ResponseResponseObject.ts
|
|
|
50
50
|
models/ApiEsportPlayersGet200ResponseResponseObjectItemsInner.ts
|
|
51
51
|
models/ApiEsportPlayersGetFilterParameter.ts
|
|
52
52
|
models/ApiEsportPlayersIdGet200Response.ts
|
|
53
|
+
models/ApiEsportSeriesGet200Response.ts
|
|
54
|
+
models/ApiEsportSeriesGet200ResponseResponseObject.ts
|
|
55
|
+
models/ApiEsportSeriesGet200ResponseResponseObjectItemsInner.ts
|
|
56
|
+
models/ApiEsportSeriesGetFilterParameter.ts
|
|
53
57
|
models/ApiEsportTeamsGet200Response.ts
|
|
54
58
|
models/ApiEsportTeamsGet200ResponseResponseObject.ts
|
|
55
59
|
models/ApiEsportTeamsGet200ResponseResponseObjectItemsInner.ts
|
|
@@ -59,6 +63,7 @@ models/ApiEsportTournamentsGet200Response.ts
|
|
|
59
63
|
models/ApiEsportTournamentsGet200ResponseResponseObject.ts
|
|
60
64
|
models/ApiEsportTournamentsGet200ResponseResponseObjectItemsInner.ts
|
|
61
65
|
models/ApiEsportTournamentsGetFilterParameter.ts
|
|
66
|
+
models/ApiEsportTournamentsIdGet200Response.ts
|
|
62
67
|
models/ApiEsportVideogamesGet200Response.ts
|
|
63
68
|
models/ApiEsportVideogamesGet200ResponseResponseObjectInner.ts
|
|
64
69
|
models/ApiHealthCheckGet200Response.ts
|
package/apis/EsportApi.ts
CHANGED
|
@@ -21,11 +21,14 @@ import type {
|
|
|
21
21
|
ApiEsportPlayersGet200Response,
|
|
22
22
|
ApiEsportPlayersGetFilterParameter,
|
|
23
23
|
ApiEsportPlayersIdGet200Response,
|
|
24
|
+
ApiEsportSeriesGet200Response,
|
|
25
|
+
ApiEsportSeriesGetFilterParameter,
|
|
24
26
|
ApiEsportTeamsGet200Response,
|
|
25
27
|
ApiEsportTeamsGetFilterParameter,
|
|
26
28
|
ApiEsportTeamsIdGet200Response,
|
|
27
29
|
ApiEsportTournamentsGet200Response,
|
|
28
30
|
ApiEsportTournamentsGetFilterParameter,
|
|
31
|
+
ApiEsportTournamentsIdGet200Response,
|
|
29
32
|
ApiEsportVideogamesGet200Response,
|
|
30
33
|
} from '../models/index';
|
|
31
34
|
import {
|
|
@@ -41,6 +44,10 @@ import {
|
|
|
41
44
|
ApiEsportPlayersGetFilterParameterToJSON,
|
|
42
45
|
ApiEsportPlayersIdGet200ResponseFromJSON,
|
|
43
46
|
ApiEsportPlayersIdGet200ResponseToJSON,
|
|
47
|
+
ApiEsportSeriesGet200ResponseFromJSON,
|
|
48
|
+
ApiEsportSeriesGet200ResponseToJSON,
|
|
49
|
+
ApiEsportSeriesGetFilterParameterFromJSON,
|
|
50
|
+
ApiEsportSeriesGetFilterParameterToJSON,
|
|
44
51
|
ApiEsportTeamsGet200ResponseFromJSON,
|
|
45
52
|
ApiEsportTeamsGet200ResponseToJSON,
|
|
46
53
|
ApiEsportTeamsGetFilterParameterFromJSON,
|
|
@@ -51,6 +58,8 @@ import {
|
|
|
51
58
|
ApiEsportTournamentsGet200ResponseToJSON,
|
|
52
59
|
ApiEsportTournamentsGetFilterParameterFromJSON,
|
|
53
60
|
ApiEsportTournamentsGetFilterParameterToJSON,
|
|
61
|
+
ApiEsportTournamentsIdGet200ResponseFromJSON,
|
|
62
|
+
ApiEsportTournamentsIdGet200ResponseToJSON,
|
|
54
63
|
ApiEsportVideogamesGet200ResponseFromJSON,
|
|
55
64
|
ApiEsportVideogamesGet200ResponseToJSON,
|
|
56
65
|
} from '../models/index';
|
|
@@ -77,6 +86,13 @@ export interface ApiEsportPlayersIdGetRequest {
|
|
|
77
86
|
id: string;
|
|
78
87
|
}
|
|
79
88
|
|
|
89
|
+
export interface ApiEsportSeriesGetRequest {
|
|
90
|
+
page?: number;
|
|
91
|
+
pageSize?: number;
|
|
92
|
+
sort?: string;
|
|
93
|
+
filter?: ApiEsportSeriesGetFilterParameter;
|
|
94
|
+
}
|
|
95
|
+
|
|
80
96
|
export interface ApiEsportTeamsGetRequest {
|
|
81
97
|
page?: number;
|
|
82
98
|
pageSize?: number;
|
|
@@ -95,6 +111,10 @@ export interface ApiEsportTournamentsGetRequest {
|
|
|
95
111
|
filter?: ApiEsportTournamentsGetFilterParameter;
|
|
96
112
|
}
|
|
97
113
|
|
|
114
|
+
export interface ApiEsportTournamentsIdGetRequest {
|
|
115
|
+
id: string;
|
|
116
|
+
}
|
|
117
|
+
|
|
98
118
|
/**
|
|
99
119
|
*
|
|
100
120
|
*/
|
|
@@ -298,6 +318,60 @@ export class EsportApi extends runtime.BaseAPI {
|
|
|
298
318
|
return await response.value();
|
|
299
319
|
}
|
|
300
320
|
|
|
321
|
+
/**
|
|
322
|
+
* Get Esport Series
|
|
323
|
+
*/
|
|
324
|
+
async apiEsportSeriesGetRaw(requestParameters: ApiEsportSeriesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiEsportSeriesGet200Response>> {
|
|
325
|
+
const queryParameters: any = {};
|
|
326
|
+
|
|
327
|
+
if (requestParameters['page'] != null) {
|
|
328
|
+
queryParameters['page'] = requestParameters['page'];
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
if (requestParameters['pageSize'] != null) {
|
|
332
|
+
queryParameters['pageSize'] = requestParameters['pageSize'];
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
if (requestParameters['sort'] != null) {
|
|
336
|
+
queryParameters['sort'] = requestParameters['sort'];
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
if (requestParameters['filter'] != null) {
|
|
340
|
+
queryParameters['filter'] = requestParameters['filter'];
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
344
|
+
|
|
345
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
346
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
350
|
+
const token = this.configuration.accessToken;
|
|
351
|
+
const tokenString = await token("BearerAuth", []);
|
|
352
|
+
|
|
353
|
+
if (tokenString) {
|
|
354
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
const response = await this.request({
|
|
358
|
+
path: `/api/esport/series`,
|
|
359
|
+
method: 'GET',
|
|
360
|
+
headers: headerParameters,
|
|
361
|
+
query: queryParameters,
|
|
362
|
+
}, initOverrides);
|
|
363
|
+
|
|
364
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiEsportSeriesGet200ResponseFromJSON(jsonValue));
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
/**
|
|
368
|
+
* Get Esport Series
|
|
369
|
+
*/
|
|
370
|
+
async apiEsportSeriesGet(requestParameters: ApiEsportSeriesGetRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiEsportSeriesGet200Response> {
|
|
371
|
+
const response = await this.apiEsportSeriesGetRaw(requestParameters, initOverrides);
|
|
372
|
+
return await response.value();
|
|
373
|
+
}
|
|
374
|
+
|
|
301
375
|
/**
|
|
302
376
|
* Get Esport Teams
|
|
303
377
|
*/
|
|
@@ -451,6 +525,51 @@ export class EsportApi extends runtime.BaseAPI {
|
|
|
451
525
|
return await response.value();
|
|
452
526
|
}
|
|
453
527
|
|
|
528
|
+
/**
|
|
529
|
+
* Get Esport Tournament Details
|
|
530
|
+
*/
|
|
531
|
+
async apiEsportTournamentsIdGetRaw(requestParameters: ApiEsportTournamentsIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiEsportTournamentsIdGet200Response>> {
|
|
532
|
+
if (requestParameters['id'] == null) {
|
|
533
|
+
throw new runtime.RequiredError(
|
|
534
|
+
'id',
|
|
535
|
+
'Required parameter "id" was null or undefined when calling apiEsportTournamentsIdGet().'
|
|
536
|
+
);
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
const queryParameters: any = {};
|
|
540
|
+
|
|
541
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
542
|
+
|
|
543
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
544
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
548
|
+
const token = this.configuration.accessToken;
|
|
549
|
+
const tokenString = await token("BearerAuth", []);
|
|
550
|
+
|
|
551
|
+
if (tokenString) {
|
|
552
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
553
|
+
}
|
|
554
|
+
}
|
|
555
|
+
const response = await this.request({
|
|
556
|
+
path: `/api/esport/tournaments/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
557
|
+
method: 'GET',
|
|
558
|
+
headers: headerParameters,
|
|
559
|
+
query: queryParameters,
|
|
560
|
+
}, initOverrides);
|
|
561
|
+
|
|
562
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiEsportTournamentsIdGet200ResponseFromJSON(jsonValue));
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
/**
|
|
566
|
+
* Get Esport Tournament Details
|
|
567
|
+
*/
|
|
568
|
+
async apiEsportTournamentsIdGet(requestParameters: ApiEsportTournamentsIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiEsportTournamentsIdGet200Response> {
|
|
569
|
+
const response = await this.apiEsportTournamentsIdGetRaw(requestParameters, initOverrides);
|
|
570
|
+
return await response.value();
|
|
571
|
+
}
|
|
572
|
+
|
|
454
573
|
/**
|
|
455
574
|
* Get All Esport\'s Video Games
|
|
456
575
|
*/
|
package/deploy.log
CHANGED
|
@@ -182,6 +182,11 @@
|
|
|
182
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
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
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).
|
|
185
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_esport_tournaments__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_tournaments__id__get_200_response=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_esport_tournaments__id__get_200_response=NewModel,ModelA=NewModelA in CLI).
|
|
186
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_esport_series_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_series_get_filter_parameter=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_esport_series_get_filter_parameter=NewModel,ModelA=NewModelA in CLI).
|
|
187
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_esport_series_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_series_get_200_response_responseObject_items_inner=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_esport_series_get_200_response_responseObject_items_inner=NewModel,ModelA=NewModelA in CLI).
|
|
188
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_esport_series_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_series_get_200_response_responseObject=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_esport_series_get_200_response_responseObject=NewModel,ModelA=NewModelA in CLI).
|
|
189
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_esport_series_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_series_get_200_response=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_esport_series_get_200_response=NewModel,ModelA=NewModelA in CLI).
|
|
185
190
|
[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/]
|
|
186
191
|
[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/]
|
|
187
192
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthForgotPasswordChangePasswordPost200Response.ts
|
|
@@ -222,6 +227,10 @@
|
|
|
222
227
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportPlayersGet200ResponseResponseObjectItemsInner.ts
|
|
223
228
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportPlayersGetFilterParameter.ts
|
|
224
229
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportPlayersIdGet200Response.ts
|
|
230
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportSeriesGet200Response.ts
|
|
231
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportSeriesGet200ResponseResponseObject.ts
|
|
232
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportSeriesGet200ResponseResponseObjectItemsInner.ts
|
|
233
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportSeriesGetFilterParameter.ts
|
|
225
234
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportTeamsGet200Response.ts
|
|
226
235
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportTeamsGet200ResponseResponseObject.ts
|
|
227
236
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportTeamsGet200ResponseResponseObjectItemsInner.ts
|
|
@@ -231,6 +240,7 @@
|
|
|
231
240
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportTournamentsGet200ResponseResponseObject.ts
|
|
232
241
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportTournamentsGet200ResponseResponseObjectItemsInner.ts
|
|
233
242
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportTournamentsGetFilterParameter.ts
|
|
243
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportTournamentsIdGet200Response.ts
|
|
234
244
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportVideogamesGet200Response.ts
|
|
235
245
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportVideogamesGet200ResponseResponseObjectInner.ts
|
|
236
246
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiHealthCheckGet200Response.ts
|
|
@@ -419,6 +429,8 @@
|
|
|
419
429
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/esport/teams. Renamed to auto-generated operationId: apiEsportTeamsGet
|
|
420
430
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/esport/teams/{id}. Renamed to auto-generated operationId: apiEsportTeamsIdGet
|
|
421
431
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/esport/tournaments. Renamed to auto-generated operationId: apiEsportTournamentsGet
|
|
432
|
+
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/esport/tournaments/{id}. Renamed to auto-generated operationId: apiEsportTournamentsIdGet
|
|
433
|
+
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/esport/series. Renamed to auto-generated operationId: apiEsportSeriesGet
|
|
422
434
|
[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/]
|
|
423
435
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./apis/AppConfigApi.ts
|
|
424
436
|
[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/]
|
|
@@ -457,24 +469,25 @@
|
|
|
457
469
|
# https://opencollective.com/openapi_generator/donate #
|
|
458
470
|
################################################################################
|
|
459
471
|
✅ SDK generated
|
|
460
|
-
[master
|
|
461
|
-
|
|
462
|
-
create mode 100644 models/
|
|
463
|
-
create mode 100644 models/
|
|
464
|
-
create mode 100644 models/
|
|
465
|
-
create mode 100644 models/
|
|
472
|
+
[master 7de24e5] VPS: Generated API SDK
|
|
473
|
+
8 files changed, 724 insertions(+)
|
|
474
|
+
create mode 100644 models/ApiEsportSeriesGet200Response.ts
|
|
475
|
+
create mode 100644 models/ApiEsportSeriesGet200ResponseResponseObject.ts
|
|
476
|
+
create mode 100644 models/ApiEsportSeriesGet200ResponseResponseObjectItemsInner.ts
|
|
477
|
+
create mode 100644 models/ApiEsportSeriesGetFilterParameter.ts
|
|
478
|
+
create mode 100644 models/ApiEsportTournamentsIdGet200Response.ts
|
|
466
479
|
To https://gitlab.com/drx-super/drx-sdk.git
|
|
467
|
-
|
|
480
|
+
eb66e93..7de24e5 master -> master
|
|
468
481
|
✅ Changes committed and pushed
|
|
469
|
-
v1.1.
|
|
482
|
+
v1.1.227
|
|
470
483
|
To https://gitlab.com/drx-super/drx-sdk.git
|
|
471
|
-
|
|
484
|
+
7de24e5..731cde3 master -> master
|
|
472
485
|
✅ Version bumped
|
|
473
486
|
|
|
474
|
-
> @drxsuperapp/sdk@1.1.
|
|
487
|
+
> @drxsuperapp/sdk@1.1.227 prepublishOnly
|
|
475
488
|
> npm run build
|
|
476
489
|
|
|
477
490
|
|
|
478
|
-
> @drxsuperapp/sdk@1.1.
|
|
491
|
+
> @drxsuperapp/sdk@1.1.227 build
|
|
479
492
|
> tsc
|
|
480
493
|
|
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, ApiEsportTournamentsGet200Response, ApiEsportTournamentsGetFilterParameter, ApiEsportVideogamesGet200Response } from '../models/index';
|
|
13
|
+
import type { ApiEsportMatchesGet200Response, ApiEsportMatchesGetFilterParameter, ApiEsportMatchesIdGet200Response, ApiEsportPlayersGet200Response, ApiEsportPlayersGetFilterParameter, ApiEsportPlayersIdGet200Response, ApiEsportSeriesGet200Response, ApiEsportSeriesGetFilterParameter, ApiEsportTeamsGet200Response, ApiEsportTeamsGetFilterParameter, ApiEsportTeamsIdGet200Response, ApiEsportTournamentsGet200Response, ApiEsportTournamentsGetFilterParameter, ApiEsportTournamentsIdGet200Response, ApiEsportVideogamesGet200Response } from '../models/index';
|
|
14
14
|
export interface ApiEsportMatchesGetRequest {
|
|
15
15
|
page?: number;
|
|
16
16
|
pageSize?: number;
|
|
@@ -29,6 +29,12 @@ export interface ApiEsportPlayersGetRequest {
|
|
|
29
29
|
export interface ApiEsportPlayersIdGetRequest {
|
|
30
30
|
id: string;
|
|
31
31
|
}
|
|
32
|
+
export interface ApiEsportSeriesGetRequest {
|
|
33
|
+
page?: number;
|
|
34
|
+
pageSize?: number;
|
|
35
|
+
sort?: string;
|
|
36
|
+
filter?: ApiEsportSeriesGetFilterParameter;
|
|
37
|
+
}
|
|
32
38
|
export interface ApiEsportTeamsGetRequest {
|
|
33
39
|
page?: number;
|
|
34
40
|
pageSize?: number;
|
|
@@ -44,6 +50,9 @@ export interface ApiEsportTournamentsGetRequest {
|
|
|
44
50
|
sort?: string;
|
|
45
51
|
filter?: ApiEsportTournamentsGetFilterParameter;
|
|
46
52
|
}
|
|
53
|
+
export interface ApiEsportTournamentsIdGetRequest {
|
|
54
|
+
id: string;
|
|
55
|
+
}
|
|
47
56
|
/**
|
|
48
57
|
*
|
|
49
58
|
*/
|
|
@@ -80,6 +89,14 @@ export declare class EsportApi extends runtime.BaseAPI {
|
|
|
80
89
|
* Get Esport Player Details
|
|
81
90
|
*/
|
|
82
91
|
apiEsportPlayersIdGet(requestParameters: ApiEsportPlayersIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiEsportPlayersIdGet200Response>;
|
|
92
|
+
/**
|
|
93
|
+
* Get Esport Series
|
|
94
|
+
*/
|
|
95
|
+
apiEsportSeriesGetRaw(requestParameters: ApiEsportSeriesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiEsportSeriesGet200Response>>;
|
|
96
|
+
/**
|
|
97
|
+
* Get Esport Series
|
|
98
|
+
*/
|
|
99
|
+
apiEsportSeriesGet(requestParameters?: ApiEsportSeriesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiEsportSeriesGet200Response>;
|
|
83
100
|
/**
|
|
84
101
|
* Get Esport Teams
|
|
85
102
|
*/
|
|
@@ -104,6 +121,14 @@ export declare class EsportApi extends runtime.BaseAPI {
|
|
|
104
121
|
* Get Esport Tournaments
|
|
105
122
|
*/
|
|
106
123
|
apiEsportTournamentsGet(requestParameters?: ApiEsportTournamentsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiEsportTournamentsGet200Response>;
|
|
124
|
+
/**
|
|
125
|
+
* Get Esport Tournament Details
|
|
126
|
+
*/
|
|
127
|
+
apiEsportTournamentsIdGetRaw(requestParameters: ApiEsportTournamentsIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiEsportTournamentsIdGet200Response>>;
|
|
128
|
+
/**
|
|
129
|
+
* Get Esport Tournament Details
|
|
130
|
+
*/
|
|
131
|
+
apiEsportTournamentsIdGet(requestParameters: ApiEsportTournamentsIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiEsportTournamentsIdGet200Response>;
|
|
107
132
|
/**
|
|
108
133
|
* Get All Esport\'s Video Games
|
|
109
134
|
*/
|
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, ApiEsportTournamentsGet200ResponseFromJSON, ApiEsportVideogamesGet200ResponseFromJSON, } from '../models/index';
|
|
15
|
+
import { ApiEsportMatchesGet200ResponseFromJSON, ApiEsportMatchesIdGet200ResponseFromJSON, ApiEsportPlayersGet200ResponseFromJSON, ApiEsportPlayersIdGet200ResponseFromJSON, ApiEsportSeriesGet200ResponseFromJSON, ApiEsportTeamsGet200ResponseFromJSON, ApiEsportTeamsIdGet200ResponseFromJSON, ApiEsportTournamentsGet200ResponseFromJSON, ApiEsportTournamentsIdGet200ResponseFromJSON, ApiEsportVideogamesGet200ResponseFromJSON, } from '../models/index';
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
*/
|
|
@@ -171,6 +171,49 @@ export class EsportApi extends runtime.BaseAPI {
|
|
|
171
171
|
const response = await this.apiEsportPlayersIdGetRaw(requestParameters, initOverrides);
|
|
172
172
|
return await response.value();
|
|
173
173
|
}
|
|
174
|
+
/**
|
|
175
|
+
* Get Esport Series
|
|
176
|
+
*/
|
|
177
|
+
async apiEsportSeriesGetRaw(requestParameters, initOverrides) {
|
|
178
|
+
const queryParameters = {};
|
|
179
|
+
if (requestParameters['page'] != null) {
|
|
180
|
+
queryParameters['page'] = requestParameters['page'];
|
|
181
|
+
}
|
|
182
|
+
if (requestParameters['pageSize'] != null) {
|
|
183
|
+
queryParameters['pageSize'] = requestParameters['pageSize'];
|
|
184
|
+
}
|
|
185
|
+
if (requestParameters['sort'] != null) {
|
|
186
|
+
queryParameters['sort'] = requestParameters['sort'];
|
|
187
|
+
}
|
|
188
|
+
if (requestParameters['filter'] != null) {
|
|
189
|
+
queryParameters['filter'] = requestParameters['filter'];
|
|
190
|
+
}
|
|
191
|
+
const headerParameters = {};
|
|
192
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
193
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
194
|
+
}
|
|
195
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
196
|
+
const token = this.configuration.accessToken;
|
|
197
|
+
const tokenString = await token("BearerAuth", []);
|
|
198
|
+
if (tokenString) {
|
|
199
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
const response = await this.request({
|
|
203
|
+
path: `/api/esport/series`,
|
|
204
|
+
method: 'GET',
|
|
205
|
+
headers: headerParameters,
|
|
206
|
+
query: queryParameters,
|
|
207
|
+
}, initOverrides);
|
|
208
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiEsportSeriesGet200ResponseFromJSON(jsonValue));
|
|
209
|
+
}
|
|
210
|
+
/**
|
|
211
|
+
* Get Esport Series
|
|
212
|
+
*/
|
|
213
|
+
async apiEsportSeriesGet(requestParameters = {}, initOverrides) {
|
|
214
|
+
const response = await this.apiEsportSeriesGetRaw(requestParameters, initOverrides);
|
|
215
|
+
return await response.value();
|
|
216
|
+
}
|
|
174
217
|
/**
|
|
175
218
|
* Get Esport Teams
|
|
176
219
|
*/
|
|
@@ -291,6 +334,40 @@ export class EsportApi extends runtime.BaseAPI {
|
|
|
291
334
|
const response = await this.apiEsportTournamentsGetRaw(requestParameters, initOverrides);
|
|
292
335
|
return await response.value();
|
|
293
336
|
}
|
|
337
|
+
/**
|
|
338
|
+
* Get Esport Tournament Details
|
|
339
|
+
*/
|
|
340
|
+
async apiEsportTournamentsIdGetRaw(requestParameters, initOverrides) {
|
|
341
|
+
if (requestParameters['id'] == null) {
|
|
342
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiEsportTournamentsIdGet().');
|
|
343
|
+
}
|
|
344
|
+
const queryParameters = {};
|
|
345
|
+
const headerParameters = {};
|
|
346
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
347
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
348
|
+
}
|
|
349
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
350
|
+
const token = this.configuration.accessToken;
|
|
351
|
+
const tokenString = await token("BearerAuth", []);
|
|
352
|
+
if (tokenString) {
|
|
353
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
const response = await this.request({
|
|
357
|
+
path: `/api/esport/tournaments/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
358
|
+
method: 'GET',
|
|
359
|
+
headers: headerParameters,
|
|
360
|
+
query: queryParameters,
|
|
361
|
+
}, initOverrides);
|
|
362
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiEsportTournamentsIdGet200ResponseFromJSON(jsonValue));
|
|
363
|
+
}
|
|
364
|
+
/**
|
|
365
|
+
* Get Esport Tournament Details
|
|
366
|
+
*/
|
|
367
|
+
async apiEsportTournamentsIdGet(requestParameters, initOverrides) {
|
|
368
|
+
const response = await this.apiEsportTournamentsIdGetRaw(requestParameters, initOverrides);
|
|
369
|
+
return await response.value();
|
|
370
|
+
}
|
|
294
371
|
/**
|
|
295
372
|
* Get All Esport\'s Video Games
|
|
296
373
|
*/
|
|
@@ -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 { ApiEsportSeriesGet200ResponseResponseObject } from './ApiEsportSeriesGet200ResponseResponseObject';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ApiEsportSeriesGet200Response
|
|
17
|
+
*/
|
|
18
|
+
export interface ApiEsportSeriesGet200Response {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {boolean}
|
|
22
|
+
* @memberof ApiEsportSeriesGet200Response
|
|
23
|
+
*/
|
|
24
|
+
success: boolean;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof ApiEsportSeriesGet200Response
|
|
29
|
+
*/
|
|
30
|
+
message: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {ApiEsportSeriesGet200ResponseResponseObject}
|
|
34
|
+
* @memberof ApiEsportSeriesGet200Response
|
|
35
|
+
*/
|
|
36
|
+
responseObject?: ApiEsportSeriesGet200ResponseResponseObject;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof ApiEsportSeriesGet200Response
|
|
41
|
+
*/
|
|
42
|
+
statusCode: number;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the ApiEsportSeriesGet200Response interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfApiEsportSeriesGet200Response(value: object): value is ApiEsportSeriesGet200Response;
|
|
48
|
+
export declare function ApiEsportSeriesGet200ResponseFromJSON(json: any): ApiEsportSeriesGet200Response;
|
|
49
|
+
export declare function ApiEsportSeriesGet200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiEsportSeriesGet200Response;
|
|
50
|
+
export declare function ApiEsportSeriesGet200ResponseToJSON(json: any): ApiEsportSeriesGet200Response;
|
|
51
|
+
export declare function ApiEsportSeriesGet200ResponseToJSONTyped(value?: ApiEsportSeriesGet200Response | 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 { ApiEsportSeriesGet200ResponseResponseObjectFromJSON, ApiEsportSeriesGet200ResponseResponseObjectToJSON, } from './ApiEsportSeriesGet200ResponseResponseObject';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the ApiEsportSeriesGet200Response interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfApiEsportSeriesGet200Response(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 ApiEsportSeriesGet200ResponseFromJSON(json) {
|
|
28
|
+
return ApiEsportSeriesGet200ResponseFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
export function ApiEsportSeriesGet200ResponseFromJSONTyped(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 : ApiEsportSeriesGet200ResponseResponseObjectFromJSON(json['responseObject']),
|
|
38
|
+
'statusCode': json['statusCode'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
export function ApiEsportSeriesGet200ResponseToJSON(json) {
|
|
42
|
+
return ApiEsportSeriesGet200ResponseToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
export function ApiEsportSeriesGet200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'success': value['success'],
|
|
50
|
+
'message': value['message'],
|
|
51
|
+
'responseObject': ApiEsportSeriesGet200ResponseResponseObjectToJSON(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 { ApiEsportSeriesGet200ResponseResponseObjectItemsInner } from './ApiEsportSeriesGet200ResponseResponseObjectItemsInner';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ApiEsportSeriesGet200ResponseResponseObject
|
|
17
|
+
*/
|
|
18
|
+
export interface ApiEsportSeriesGet200ResponseResponseObject {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<ApiEsportSeriesGet200ResponseResponseObjectItemsInner>}
|
|
22
|
+
* @memberof ApiEsportSeriesGet200ResponseResponseObject
|
|
23
|
+
*/
|
|
24
|
+
items: Array<ApiEsportSeriesGet200ResponseResponseObjectItemsInner>;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof ApiEsportSeriesGet200ResponseResponseObject
|
|
29
|
+
*/
|
|
30
|
+
currentPage: number;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof ApiEsportSeriesGet200ResponseResponseObject
|
|
35
|
+
*/
|
|
36
|
+
totalItems: number;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof ApiEsportSeriesGet200ResponseResponseObject
|
|
41
|
+
*/
|
|
42
|
+
totalPages: number;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {number}
|
|
46
|
+
* @memberof ApiEsportSeriesGet200ResponseResponseObject
|
|
47
|
+
*/
|
|
48
|
+
pageSize: number;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the ApiEsportSeriesGet200ResponseResponseObject interface.
|
|
52
|
+
*/
|
|
53
|
+
export declare function instanceOfApiEsportSeriesGet200ResponseResponseObject(value: object): value is ApiEsportSeriesGet200ResponseResponseObject;
|
|
54
|
+
export declare function ApiEsportSeriesGet200ResponseResponseObjectFromJSON(json: any): ApiEsportSeriesGet200ResponseResponseObject;
|
|
55
|
+
export declare function ApiEsportSeriesGet200ResponseResponseObjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiEsportSeriesGet200ResponseResponseObject;
|
|
56
|
+
export declare function ApiEsportSeriesGet200ResponseResponseObjectToJSON(json: any): ApiEsportSeriesGet200ResponseResponseObject;
|
|
57
|
+
export declare function ApiEsportSeriesGet200ResponseResponseObjectToJSONTyped(value?: ApiEsportSeriesGet200ResponseResponseObject | 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 { ApiEsportSeriesGet200ResponseResponseObjectItemsInnerFromJSON, ApiEsportSeriesGet200ResponseResponseObjectItemsInnerToJSON, } from './ApiEsportSeriesGet200ResponseResponseObjectItemsInner';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the ApiEsportSeriesGet200ResponseResponseObject interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfApiEsportSeriesGet200ResponseResponseObject(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 ApiEsportSeriesGet200ResponseResponseObjectFromJSON(json) {
|
|
32
|
+
return ApiEsportSeriesGet200ResponseResponseObjectFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
export function ApiEsportSeriesGet200ResponseResponseObjectFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'items': (json['items'].map(ApiEsportSeriesGet200ResponseResponseObjectItemsInnerFromJSON)),
|
|
40
|
+
'currentPage': json['currentPage'],
|
|
41
|
+
'totalItems': json['totalItems'],
|
|
42
|
+
'totalPages': json['totalPages'],
|
|
43
|
+
'pageSize': json['pageSize'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
export function ApiEsportSeriesGet200ResponseResponseObjectToJSON(json) {
|
|
47
|
+
return ApiEsportSeriesGet200ResponseResponseObjectToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
export function ApiEsportSeriesGet200ResponseResponseObjectToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'items': (value['items'].map(ApiEsportSeriesGet200ResponseResponseObjectItemsInnerToJSON)),
|
|
55
|
+
'currentPage': value['currentPage'],
|
|
56
|
+
'totalItems': value['totalItems'],
|
|
57
|
+
'totalPages': value['totalPages'],
|
|
58
|
+
'pageSize': value['pageSize'],
|
|
59
|
+
};
|
|
60
|
+
}
|