@drxsuperapp/sdk 1.1.226 → 1.1.228
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 +6 -0
- package/apis/EsportApi.ts +171 -0
- package/deploy.log +23 -11
- package/dist/apis/EsportApi.d.ts +37 -1
- package/dist/apis/EsportApi.js +112 -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/ApiEsportSeriesIdGet200Response.d.ts +51 -0
- package/dist/models/ApiEsportSeriesIdGet200Response.js +54 -0
- package/dist/models/ApiEsportTournamentsIdGet200Response.d.ts +51 -0
- package/dist/models/ApiEsportTournamentsIdGet200Response.js +54 -0
- package/dist/models/index.d.ts +6 -0
- package/dist/models/index.js +6 -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/ApiEsportSeriesIdGet200Response.ts +100 -0
- package/models/ApiEsportTournamentsIdGet200Response.ts +100 -0
- package/models/index.ts +6 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -50,6 +50,11 @@ 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
|
|
57
|
+
models/ApiEsportSeriesIdGet200Response.ts
|
|
53
58
|
models/ApiEsportTeamsGet200Response.ts
|
|
54
59
|
models/ApiEsportTeamsGet200ResponseResponseObject.ts
|
|
55
60
|
models/ApiEsportTeamsGet200ResponseResponseObjectItemsInner.ts
|
|
@@ -59,6 +64,7 @@ models/ApiEsportTournamentsGet200Response.ts
|
|
|
59
64
|
models/ApiEsportTournamentsGet200ResponseResponseObject.ts
|
|
60
65
|
models/ApiEsportTournamentsGet200ResponseResponseObjectItemsInner.ts
|
|
61
66
|
models/ApiEsportTournamentsGetFilterParameter.ts
|
|
67
|
+
models/ApiEsportTournamentsIdGet200Response.ts
|
|
62
68
|
models/ApiEsportVideogamesGet200Response.ts
|
|
63
69
|
models/ApiEsportVideogamesGet200ResponseResponseObjectInner.ts
|
|
64
70
|
models/ApiHealthCheckGet200Response.ts
|
package/apis/EsportApi.ts
CHANGED
|
@@ -21,11 +21,15 @@ import type {
|
|
|
21
21
|
ApiEsportPlayersGet200Response,
|
|
22
22
|
ApiEsportPlayersGetFilterParameter,
|
|
23
23
|
ApiEsportPlayersIdGet200Response,
|
|
24
|
+
ApiEsportSeriesGet200Response,
|
|
25
|
+
ApiEsportSeriesGetFilterParameter,
|
|
26
|
+
ApiEsportSeriesIdGet200Response,
|
|
24
27
|
ApiEsportTeamsGet200Response,
|
|
25
28
|
ApiEsportTeamsGetFilterParameter,
|
|
26
29
|
ApiEsportTeamsIdGet200Response,
|
|
27
30
|
ApiEsportTournamentsGet200Response,
|
|
28
31
|
ApiEsportTournamentsGetFilterParameter,
|
|
32
|
+
ApiEsportTournamentsIdGet200Response,
|
|
29
33
|
ApiEsportVideogamesGet200Response,
|
|
30
34
|
} from '../models/index';
|
|
31
35
|
import {
|
|
@@ -41,6 +45,12 @@ import {
|
|
|
41
45
|
ApiEsportPlayersGetFilterParameterToJSON,
|
|
42
46
|
ApiEsportPlayersIdGet200ResponseFromJSON,
|
|
43
47
|
ApiEsportPlayersIdGet200ResponseToJSON,
|
|
48
|
+
ApiEsportSeriesGet200ResponseFromJSON,
|
|
49
|
+
ApiEsportSeriesGet200ResponseToJSON,
|
|
50
|
+
ApiEsportSeriesGetFilterParameterFromJSON,
|
|
51
|
+
ApiEsportSeriesGetFilterParameterToJSON,
|
|
52
|
+
ApiEsportSeriesIdGet200ResponseFromJSON,
|
|
53
|
+
ApiEsportSeriesIdGet200ResponseToJSON,
|
|
44
54
|
ApiEsportTeamsGet200ResponseFromJSON,
|
|
45
55
|
ApiEsportTeamsGet200ResponseToJSON,
|
|
46
56
|
ApiEsportTeamsGetFilterParameterFromJSON,
|
|
@@ -51,6 +61,8 @@ import {
|
|
|
51
61
|
ApiEsportTournamentsGet200ResponseToJSON,
|
|
52
62
|
ApiEsportTournamentsGetFilterParameterFromJSON,
|
|
53
63
|
ApiEsportTournamentsGetFilterParameterToJSON,
|
|
64
|
+
ApiEsportTournamentsIdGet200ResponseFromJSON,
|
|
65
|
+
ApiEsportTournamentsIdGet200ResponseToJSON,
|
|
54
66
|
ApiEsportVideogamesGet200ResponseFromJSON,
|
|
55
67
|
ApiEsportVideogamesGet200ResponseToJSON,
|
|
56
68
|
} from '../models/index';
|
|
@@ -77,6 +89,17 @@ export interface ApiEsportPlayersIdGetRequest {
|
|
|
77
89
|
id: string;
|
|
78
90
|
}
|
|
79
91
|
|
|
92
|
+
export interface ApiEsportSeriesGetRequest {
|
|
93
|
+
page?: number;
|
|
94
|
+
pageSize?: number;
|
|
95
|
+
sort?: string;
|
|
96
|
+
filter?: ApiEsportSeriesGetFilterParameter;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export interface ApiEsportSeriesIdGetRequest {
|
|
100
|
+
id: string;
|
|
101
|
+
}
|
|
102
|
+
|
|
80
103
|
export interface ApiEsportTeamsGetRequest {
|
|
81
104
|
page?: number;
|
|
82
105
|
pageSize?: number;
|
|
@@ -95,6 +118,10 @@ export interface ApiEsportTournamentsGetRequest {
|
|
|
95
118
|
filter?: ApiEsportTournamentsGetFilterParameter;
|
|
96
119
|
}
|
|
97
120
|
|
|
121
|
+
export interface ApiEsportTournamentsIdGetRequest {
|
|
122
|
+
id: string;
|
|
123
|
+
}
|
|
124
|
+
|
|
98
125
|
/**
|
|
99
126
|
*
|
|
100
127
|
*/
|
|
@@ -298,6 +325,105 @@ export class EsportApi extends runtime.BaseAPI {
|
|
|
298
325
|
return await response.value();
|
|
299
326
|
}
|
|
300
327
|
|
|
328
|
+
/**
|
|
329
|
+
* Get Esport Series
|
|
330
|
+
*/
|
|
331
|
+
async apiEsportSeriesGetRaw(requestParameters: ApiEsportSeriesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiEsportSeriesGet200Response>> {
|
|
332
|
+
const queryParameters: any = {};
|
|
333
|
+
|
|
334
|
+
if (requestParameters['page'] != null) {
|
|
335
|
+
queryParameters['page'] = requestParameters['page'];
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
if (requestParameters['pageSize'] != null) {
|
|
339
|
+
queryParameters['pageSize'] = requestParameters['pageSize'];
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
if (requestParameters['sort'] != null) {
|
|
343
|
+
queryParameters['sort'] = requestParameters['sort'];
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
if (requestParameters['filter'] != null) {
|
|
347
|
+
queryParameters['filter'] = requestParameters['filter'];
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
351
|
+
|
|
352
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
353
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
357
|
+
const token = this.configuration.accessToken;
|
|
358
|
+
const tokenString = await token("BearerAuth", []);
|
|
359
|
+
|
|
360
|
+
if (tokenString) {
|
|
361
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
const response = await this.request({
|
|
365
|
+
path: `/api/esport/series`,
|
|
366
|
+
method: 'GET',
|
|
367
|
+
headers: headerParameters,
|
|
368
|
+
query: queryParameters,
|
|
369
|
+
}, initOverrides);
|
|
370
|
+
|
|
371
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiEsportSeriesGet200ResponseFromJSON(jsonValue));
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
/**
|
|
375
|
+
* Get Esport Series
|
|
376
|
+
*/
|
|
377
|
+
async apiEsportSeriesGet(requestParameters: ApiEsportSeriesGetRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiEsportSeriesGet200Response> {
|
|
378
|
+
const response = await this.apiEsportSeriesGetRaw(requestParameters, initOverrides);
|
|
379
|
+
return await response.value();
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
/**
|
|
383
|
+
* Get Esport Series Details
|
|
384
|
+
*/
|
|
385
|
+
async apiEsportSeriesIdGetRaw(requestParameters: ApiEsportSeriesIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiEsportSeriesIdGet200Response>> {
|
|
386
|
+
if (requestParameters['id'] == null) {
|
|
387
|
+
throw new runtime.RequiredError(
|
|
388
|
+
'id',
|
|
389
|
+
'Required parameter "id" was null or undefined when calling apiEsportSeriesIdGet().'
|
|
390
|
+
);
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
const queryParameters: any = {};
|
|
394
|
+
|
|
395
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
396
|
+
|
|
397
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
398
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
402
|
+
const token = this.configuration.accessToken;
|
|
403
|
+
const tokenString = await token("BearerAuth", []);
|
|
404
|
+
|
|
405
|
+
if (tokenString) {
|
|
406
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
const response = await this.request({
|
|
410
|
+
path: `/api/esport/series/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
411
|
+
method: 'GET',
|
|
412
|
+
headers: headerParameters,
|
|
413
|
+
query: queryParameters,
|
|
414
|
+
}, initOverrides);
|
|
415
|
+
|
|
416
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiEsportSeriesIdGet200ResponseFromJSON(jsonValue));
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
/**
|
|
420
|
+
* Get Esport Series Details
|
|
421
|
+
*/
|
|
422
|
+
async apiEsportSeriesIdGet(requestParameters: ApiEsportSeriesIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiEsportSeriesIdGet200Response> {
|
|
423
|
+
const response = await this.apiEsportSeriesIdGetRaw(requestParameters, initOverrides);
|
|
424
|
+
return await response.value();
|
|
425
|
+
}
|
|
426
|
+
|
|
301
427
|
/**
|
|
302
428
|
* Get Esport Teams
|
|
303
429
|
*/
|
|
@@ -451,6 +577,51 @@ export class EsportApi extends runtime.BaseAPI {
|
|
|
451
577
|
return await response.value();
|
|
452
578
|
}
|
|
453
579
|
|
|
580
|
+
/**
|
|
581
|
+
* Get Esport Tournament Details
|
|
582
|
+
*/
|
|
583
|
+
async apiEsportTournamentsIdGetRaw(requestParameters: ApiEsportTournamentsIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiEsportTournamentsIdGet200Response>> {
|
|
584
|
+
if (requestParameters['id'] == null) {
|
|
585
|
+
throw new runtime.RequiredError(
|
|
586
|
+
'id',
|
|
587
|
+
'Required parameter "id" was null or undefined when calling apiEsportTournamentsIdGet().'
|
|
588
|
+
);
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
const queryParameters: any = {};
|
|
592
|
+
|
|
593
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
594
|
+
|
|
595
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
596
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
600
|
+
const token = this.configuration.accessToken;
|
|
601
|
+
const tokenString = await token("BearerAuth", []);
|
|
602
|
+
|
|
603
|
+
if (tokenString) {
|
|
604
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
605
|
+
}
|
|
606
|
+
}
|
|
607
|
+
const response = await this.request({
|
|
608
|
+
path: `/api/esport/tournaments/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
609
|
+
method: 'GET',
|
|
610
|
+
headers: headerParameters,
|
|
611
|
+
query: queryParameters,
|
|
612
|
+
}, initOverrides);
|
|
613
|
+
|
|
614
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiEsportTournamentsIdGet200ResponseFromJSON(jsonValue));
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
/**
|
|
618
|
+
* Get Esport Tournament Details
|
|
619
|
+
*/
|
|
620
|
+
async apiEsportTournamentsIdGet(requestParameters: ApiEsportTournamentsIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiEsportTournamentsIdGet200Response> {
|
|
621
|
+
const response = await this.apiEsportTournamentsIdGetRaw(requestParameters, initOverrides);
|
|
622
|
+
return await response.value();
|
|
623
|
+
}
|
|
624
|
+
|
|
454
625
|
/**
|
|
455
626
|
* Get All Esport\'s Video Games
|
|
456
627
|
*/
|
package/deploy.log
CHANGED
|
@@ -182,6 +182,12 @@
|
|
|
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).
|
|
190
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_esport_series__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_series__id__get_200_response=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_esport_series__id__get_200_response=NewModel,ModelA=NewModelA in CLI).
|
|
185
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/]
|
|
186
192
|
[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
193
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthForgotPasswordChangePasswordPost200Response.ts
|
|
@@ -222,6 +228,11 @@
|
|
|
222
228
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportPlayersGet200ResponseResponseObjectItemsInner.ts
|
|
223
229
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportPlayersGetFilterParameter.ts
|
|
224
230
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportPlayersIdGet200Response.ts
|
|
231
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportSeriesGet200Response.ts
|
|
232
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportSeriesGet200ResponseResponseObject.ts
|
|
233
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportSeriesGet200ResponseResponseObjectItemsInner.ts
|
|
234
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportSeriesGetFilterParameter.ts
|
|
235
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportSeriesIdGet200Response.ts
|
|
225
236
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportTeamsGet200Response.ts
|
|
226
237
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportTeamsGet200ResponseResponseObject.ts
|
|
227
238
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportTeamsGet200ResponseResponseObjectItemsInner.ts
|
|
@@ -231,6 +242,7 @@
|
|
|
231
242
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportTournamentsGet200ResponseResponseObject.ts
|
|
232
243
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportTournamentsGet200ResponseResponseObjectItemsInner.ts
|
|
233
244
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportTournamentsGetFilterParameter.ts
|
|
245
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportTournamentsIdGet200Response.ts
|
|
234
246
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportVideogamesGet200Response.ts
|
|
235
247
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportVideogamesGet200ResponseResponseObjectInner.ts
|
|
236
248
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiHealthCheckGet200Response.ts
|
|
@@ -419,6 +431,9 @@
|
|
|
419
431
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/esport/teams. Renamed to auto-generated operationId: apiEsportTeamsGet
|
|
420
432
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/esport/teams/{id}. Renamed to auto-generated operationId: apiEsportTeamsIdGet
|
|
421
433
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/esport/tournaments. Renamed to auto-generated operationId: apiEsportTournamentsGet
|
|
434
|
+
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/esport/tournaments/{id}. Renamed to auto-generated operationId: apiEsportTournamentsIdGet
|
|
435
|
+
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/esport/series. Renamed to auto-generated operationId: apiEsportSeriesGet
|
|
436
|
+
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/esport/series/{id}. Renamed to auto-generated operationId: apiEsportSeriesIdGet
|
|
422
437
|
[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
438
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./apis/AppConfigApi.ts
|
|
424
439
|
[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 +472,21 @@
|
|
|
457
472
|
# https://opencollective.com/openapi_generator/donate #
|
|
458
473
|
################################################################################
|
|
459
474
|
✅ SDK generated
|
|
460
|
-
[master
|
|
461
|
-
|
|
462
|
-
create mode 100644 models/
|
|
463
|
-
create mode 100644 models/ApiEsportTournamentsGet200ResponseResponseObject.ts
|
|
464
|
-
create mode 100644 models/ApiEsportTournamentsGet200ResponseResponseObjectItemsInner.ts
|
|
465
|
-
create mode 100644 models/ApiEsportTournamentsGetFilterParameter.ts
|
|
475
|
+
[master 6681110] VPS: Generated API SDK
|
|
476
|
+
4 files changed, 154 insertions(+)
|
|
477
|
+
create mode 100644 models/ApiEsportSeriesIdGet200Response.ts
|
|
466
478
|
To https://gitlab.com/drx-super/drx-sdk.git
|
|
467
|
-
|
|
479
|
+
731cde3..6681110 master -> master
|
|
468
480
|
✅ Changes committed and pushed
|
|
469
|
-
v1.1.
|
|
481
|
+
v1.1.228
|
|
470
482
|
To https://gitlab.com/drx-super/drx-sdk.git
|
|
471
|
-
|
|
483
|
+
6681110..12bd2f4 master -> master
|
|
472
484
|
✅ Version bumped
|
|
473
485
|
|
|
474
|
-
> @drxsuperapp/sdk@1.1.
|
|
486
|
+
> @drxsuperapp/sdk@1.1.228 prepublishOnly
|
|
475
487
|
> npm run build
|
|
476
488
|
|
|
477
489
|
|
|
478
|
-
> @drxsuperapp/sdk@1.1.
|
|
490
|
+
> @drxsuperapp/sdk@1.1.228 build
|
|
479
491
|
> tsc
|
|
480
492
|
|
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, ApiEsportSeriesIdGet200Response, 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,15 @@ 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
|
+
}
|
|
38
|
+
export interface ApiEsportSeriesIdGetRequest {
|
|
39
|
+
id: string;
|
|
40
|
+
}
|
|
32
41
|
export interface ApiEsportTeamsGetRequest {
|
|
33
42
|
page?: number;
|
|
34
43
|
pageSize?: number;
|
|
@@ -44,6 +53,9 @@ export interface ApiEsportTournamentsGetRequest {
|
|
|
44
53
|
sort?: string;
|
|
45
54
|
filter?: ApiEsportTournamentsGetFilterParameter;
|
|
46
55
|
}
|
|
56
|
+
export interface ApiEsportTournamentsIdGetRequest {
|
|
57
|
+
id: string;
|
|
58
|
+
}
|
|
47
59
|
/**
|
|
48
60
|
*
|
|
49
61
|
*/
|
|
@@ -80,6 +92,22 @@ export declare class EsportApi extends runtime.BaseAPI {
|
|
|
80
92
|
* Get Esport Player Details
|
|
81
93
|
*/
|
|
82
94
|
apiEsportPlayersIdGet(requestParameters: ApiEsportPlayersIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiEsportPlayersIdGet200Response>;
|
|
95
|
+
/**
|
|
96
|
+
* Get Esport Series
|
|
97
|
+
*/
|
|
98
|
+
apiEsportSeriesGetRaw(requestParameters: ApiEsportSeriesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiEsportSeriesGet200Response>>;
|
|
99
|
+
/**
|
|
100
|
+
* Get Esport Series
|
|
101
|
+
*/
|
|
102
|
+
apiEsportSeriesGet(requestParameters?: ApiEsportSeriesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiEsportSeriesGet200Response>;
|
|
103
|
+
/**
|
|
104
|
+
* Get Esport Series Details
|
|
105
|
+
*/
|
|
106
|
+
apiEsportSeriesIdGetRaw(requestParameters: ApiEsportSeriesIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiEsportSeriesIdGet200Response>>;
|
|
107
|
+
/**
|
|
108
|
+
* Get Esport Series Details
|
|
109
|
+
*/
|
|
110
|
+
apiEsportSeriesIdGet(requestParameters: ApiEsportSeriesIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiEsportSeriesIdGet200Response>;
|
|
83
111
|
/**
|
|
84
112
|
* Get Esport Teams
|
|
85
113
|
*/
|
|
@@ -104,6 +132,14 @@ export declare class EsportApi extends runtime.BaseAPI {
|
|
|
104
132
|
* Get Esport Tournaments
|
|
105
133
|
*/
|
|
106
134
|
apiEsportTournamentsGet(requestParameters?: ApiEsportTournamentsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiEsportTournamentsGet200Response>;
|
|
135
|
+
/**
|
|
136
|
+
* Get Esport Tournament Details
|
|
137
|
+
*/
|
|
138
|
+
apiEsportTournamentsIdGetRaw(requestParameters: ApiEsportTournamentsIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiEsportTournamentsIdGet200Response>>;
|
|
139
|
+
/**
|
|
140
|
+
* Get Esport Tournament Details
|
|
141
|
+
*/
|
|
142
|
+
apiEsportTournamentsIdGet(requestParameters: ApiEsportTournamentsIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiEsportTournamentsIdGet200Response>;
|
|
107
143
|
/**
|
|
108
144
|
* Get All Esport\'s Video Games
|
|
109
145
|
*/
|
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, ApiEsportSeriesIdGet200ResponseFromJSON, ApiEsportTeamsGet200ResponseFromJSON, ApiEsportTeamsIdGet200ResponseFromJSON, ApiEsportTournamentsGet200ResponseFromJSON, ApiEsportTournamentsIdGet200ResponseFromJSON, ApiEsportVideogamesGet200ResponseFromJSON, } from '../models/index';
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
*/
|
|
@@ -171,6 +171,83 @@ 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
|
+
}
|
|
217
|
+
/**
|
|
218
|
+
* Get Esport Series Details
|
|
219
|
+
*/
|
|
220
|
+
async apiEsportSeriesIdGetRaw(requestParameters, initOverrides) {
|
|
221
|
+
if (requestParameters['id'] == null) {
|
|
222
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiEsportSeriesIdGet().');
|
|
223
|
+
}
|
|
224
|
+
const queryParameters = {};
|
|
225
|
+
const headerParameters = {};
|
|
226
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
227
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
228
|
+
}
|
|
229
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
230
|
+
const token = this.configuration.accessToken;
|
|
231
|
+
const tokenString = await token("BearerAuth", []);
|
|
232
|
+
if (tokenString) {
|
|
233
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
const response = await this.request({
|
|
237
|
+
path: `/api/esport/series/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
238
|
+
method: 'GET',
|
|
239
|
+
headers: headerParameters,
|
|
240
|
+
query: queryParameters,
|
|
241
|
+
}, initOverrides);
|
|
242
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiEsportSeriesIdGet200ResponseFromJSON(jsonValue));
|
|
243
|
+
}
|
|
244
|
+
/**
|
|
245
|
+
* Get Esport Series Details
|
|
246
|
+
*/
|
|
247
|
+
async apiEsportSeriesIdGet(requestParameters, initOverrides) {
|
|
248
|
+
const response = await this.apiEsportSeriesIdGetRaw(requestParameters, initOverrides);
|
|
249
|
+
return await response.value();
|
|
250
|
+
}
|
|
174
251
|
/**
|
|
175
252
|
* Get Esport Teams
|
|
176
253
|
*/
|
|
@@ -291,6 +368,40 @@ export class EsportApi extends runtime.BaseAPI {
|
|
|
291
368
|
const response = await this.apiEsportTournamentsGetRaw(requestParameters, initOverrides);
|
|
292
369
|
return await response.value();
|
|
293
370
|
}
|
|
371
|
+
/**
|
|
372
|
+
* Get Esport Tournament Details
|
|
373
|
+
*/
|
|
374
|
+
async apiEsportTournamentsIdGetRaw(requestParameters, initOverrides) {
|
|
375
|
+
if (requestParameters['id'] == null) {
|
|
376
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiEsportTournamentsIdGet().');
|
|
377
|
+
}
|
|
378
|
+
const queryParameters = {};
|
|
379
|
+
const headerParameters = {};
|
|
380
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
381
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
382
|
+
}
|
|
383
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
384
|
+
const token = this.configuration.accessToken;
|
|
385
|
+
const tokenString = await token("BearerAuth", []);
|
|
386
|
+
if (tokenString) {
|
|
387
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
const response = await this.request({
|
|
391
|
+
path: `/api/esport/tournaments/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
392
|
+
method: 'GET',
|
|
393
|
+
headers: headerParameters,
|
|
394
|
+
query: queryParameters,
|
|
395
|
+
}, initOverrides);
|
|
396
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiEsportTournamentsIdGet200ResponseFromJSON(jsonValue));
|
|
397
|
+
}
|
|
398
|
+
/**
|
|
399
|
+
* Get Esport Tournament Details
|
|
400
|
+
*/
|
|
401
|
+
async apiEsportTournamentsIdGet(requestParameters, initOverrides) {
|
|
402
|
+
const response = await this.apiEsportTournamentsIdGetRaw(requestParameters, initOverrides);
|
|
403
|
+
return await response.value();
|
|
404
|
+
}
|
|
294
405
|
/**
|
|
295
406
|
* Get All Esport\'s Video Games
|
|
296
407
|
*/
|
|
@@ -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
|
+
}
|