@drxsuperapp/sdk 1.1.227 → 1.1.229
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 +23 -12
- package/dist/apis/EsportApi.d.ts +26 -1
- package/dist/apis/EsportApi.js +78 -1
- package/dist/models/ApiEsportLeaguesGet200Response.d.ts +51 -0
- package/dist/models/ApiEsportLeaguesGet200Response.js +54 -0
- package/dist/models/ApiEsportLeaguesGet200ResponseResponseObject.d.ts +57 -0
- package/dist/models/ApiEsportLeaguesGet200ResponseResponseObject.js +60 -0
- package/dist/models/ApiEsportLeaguesGet200ResponseResponseObjectItemsInner.d.ts +70 -0
- package/dist/models/ApiEsportLeaguesGet200ResponseResponseObjectItemsInner.js +63 -0
- package/dist/models/ApiEsportLeaguesGetFilterParameter.d.ts +46 -0
- package/dist/models/ApiEsportLeaguesGetFilterParameter.js +47 -0
- package/dist/models/ApiEsportSeriesIdGet200Response.d.ts +51 -0
- package/dist/models/ApiEsportSeriesIdGet200Response.js +54 -0
- package/dist/models/index.d.ts +5 -0
- package/dist/models/index.js +5 -0
- package/models/ApiEsportLeaguesGet200Response.ts +100 -0
- package/models/ApiEsportLeaguesGet200ResponseResponseObject.ts +110 -0
- package/models/ApiEsportLeaguesGet200ResponseResponseObjectItemsInner.ts +132 -0
- package/models/ApiEsportLeaguesGetFilterParameter.ts +96 -0
- package/models/ApiEsportSeriesIdGet200Response.ts +100 -0
- package/models/index.ts +5 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -36,6 +36,10 @@ models/ApiAuthRegisterVerifyOtpPostRequest.ts
|
|
|
36
36
|
models/ApiAuthSocialMobilePost200Response.ts
|
|
37
37
|
models/ApiAuthSocialMobilePost200ResponseResponseObject.ts
|
|
38
38
|
models/ApiAuthSocialMobilePostRequest.ts
|
|
39
|
+
models/ApiEsportLeaguesGet200Response.ts
|
|
40
|
+
models/ApiEsportLeaguesGet200ResponseResponseObject.ts
|
|
41
|
+
models/ApiEsportLeaguesGet200ResponseResponseObjectItemsInner.ts
|
|
42
|
+
models/ApiEsportLeaguesGetFilterParameter.ts
|
|
39
43
|
models/ApiEsportMatchesGet200Response.ts
|
|
40
44
|
models/ApiEsportMatchesGet200ResponseResponseObject.ts
|
|
41
45
|
models/ApiEsportMatchesGet200ResponseResponseObjectItemsInner.ts
|
|
@@ -54,6 +58,7 @@ models/ApiEsportSeriesGet200Response.ts
|
|
|
54
58
|
models/ApiEsportSeriesGet200ResponseResponseObject.ts
|
|
55
59
|
models/ApiEsportSeriesGet200ResponseResponseObjectItemsInner.ts
|
|
56
60
|
models/ApiEsportSeriesGetFilterParameter.ts
|
|
61
|
+
models/ApiEsportSeriesIdGet200Response.ts
|
|
57
62
|
models/ApiEsportTeamsGet200Response.ts
|
|
58
63
|
models/ApiEsportTeamsGet200ResponseResponseObject.ts
|
|
59
64
|
models/ApiEsportTeamsGet200ResponseResponseObjectItemsInner.ts
|
package/apis/EsportApi.ts
CHANGED
|
@@ -15,6 +15,8 @@
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
|
+
ApiEsportLeaguesGet200Response,
|
|
19
|
+
ApiEsportLeaguesGetFilterParameter,
|
|
18
20
|
ApiEsportMatchesGet200Response,
|
|
19
21
|
ApiEsportMatchesGetFilterParameter,
|
|
20
22
|
ApiEsportMatchesIdGet200Response,
|
|
@@ -23,6 +25,7 @@ import type {
|
|
|
23
25
|
ApiEsportPlayersIdGet200Response,
|
|
24
26
|
ApiEsportSeriesGet200Response,
|
|
25
27
|
ApiEsportSeriesGetFilterParameter,
|
|
28
|
+
ApiEsportSeriesIdGet200Response,
|
|
26
29
|
ApiEsportTeamsGet200Response,
|
|
27
30
|
ApiEsportTeamsGetFilterParameter,
|
|
28
31
|
ApiEsportTeamsIdGet200Response,
|
|
@@ -32,6 +35,10 @@ import type {
|
|
|
32
35
|
ApiEsportVideogamesGet200Response,
|
|
33
36
|
} from '../models/index';
|
|
34
37
|
import {
|
|
38
|
+
ApiEsportLeaguesGet200ResponseFromJSON,
|
|
39
|
+
ApiEsportLeaguesGet200ResponseToJSON,
|
|
40
|
+
ApiEsportLeaguesGetFilterParameterFromJSON,
|
|
41
|
+
ApiEsportLeaguesGetFilterParameterToJSON,
|
|
35
42
|
ApiEsportMatchesGet200ResponseFromJSON,
|
|
36
43
|
ApiEsportMatchesGet200ResponseToJSON,
|
|
37
44
|
ApiEsportMatchesGetFilterParameterFromJSON,
|
|
@@ -48,6 +55,8 @@ import {
|
|
|
48
55
|
ApiEsportSeriesGet200ResponseToJSON,
|
|
49
56
|
ApiEsportSeriesGetFilterParameterFromJSON,
|
|
50
57
|
ApiEsportSeriesGetFilterParameterToJSON,
|
|
58
|
+
ApiEsportSeriesIdGet200ResponseFromJSON,
|
|
59
|
+
ApiEsportSeriesIdGet200ResponseToJSON,
|
|
51
60
|
ApiEsportTeamsGet200ResponseFromJSON,
|
|
52
61
|
ApiEsportTeamsGet200ResponseToJSON,
|
|
53
62
|
ApiEsportTeamsGetFilterParameterFromJSON,
|
|
@@ -64,6 +73,13 @@ import {
|
|
|
64
73
|
ApiEsportVideogamesGet200ResponseToJSON,
|
|
65
74
|
} from '../models/index';
|
|
66
75
|
|
|
76
|
+
export interface ApiEsportLeaguesGetRequest {
|
|
77
|
+
page?: number;
|
|
78
|
+
pageSize?: number;
|
|
79
|
+
sort?: string;
|
|
80
|
+
filter?: ApiEsportLeaguesGetFilterParameter;
|
|
81
|
+
}
|
|
82
|
+
|
|
67
83
|
export interface ApiEsportMatchesGetRequest {
|
|
68
84
|
page?: number;
|
|
69
85
|
pageSize?: number;
|
|
@@ -93,6 +109,10 @@ export interface ApiEsportSeriesGetRequest {
|
|
|
93
109
|
filter?: ApiEsportSeriesGetFilterParameter;
|
|
94
110
|
}
|
|
95
111
|
|
|
112
|
+
export interface ApiEsportSeriesIdGetRequest {
|
|
113
|
+
id: string;
|
|
114
|
+
}
|
|
115
|
+
|
|
96
116
|
export interface ApiEsportTeamsGetRequest {
|
|
97
117
|
page?: number;
|
|
98
118
|
pageSize?: number;
|
|
@@ -120,6 +140,60 @@ export interface ApiEsportTournamentsIdGetRequest {
|
|
|
120
140
|
*/
|
|
121
141
|
export class EsportApi extends runtime.BaseAPI {
|
|
122
142
|
|
|
143
|
+
/**
|
|
144
|
+
* Get Esport Leagues
|
|
145
|
+
*/
|
|
146
|
+
async apiEsportLeaguesGetRaw(requestParameters: ApiEsportLeaguesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiEsportLeaguesGet200Response>> {
|
|
147
|
+
const queryParameters: any = {};
|
|
148
|
+
|
|
149
|
+
if (requestParameters['page'] != null) {
|
|
150
|
+
queryParameters['page'] = requestParameters['page'];
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
if (requestParameters['pageSize'] != null) {
|
|
154
|
+
queryParameters['pageSize'] = requestParameters['pageSize'];
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
if (requestParameters['sort'] != null) {
|
|
158
|
+
queryParameters['sort'] = requestParameters['sort'];
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
if (requestParameters['filter'] != null) {
|
|
162
|
+
queryParameters['filter'] = requestParameters['filter'];
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
166
|
+
|
|
167
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
168
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
172
|
+
const token = this.configuration.accessToken;
|
|
173
|
+
const tokenString = await token("BearerAuth", []);
|
|
174
|
+
|
|
175
|
+
if (tokenString) {
|
|
176
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
const response = await this.request({
|
|
180
|
+
path: `/api/esport/leagues`,
|
|
181
|
+
method: 'GET',
|
|
182
|
+
headers: headerParameters,
|
|
183
|
+
query: queryParameters,
|
|
184
|
+
}, initOverrides);
|
|
185
|
+
|
|
186
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiEsportLeaguesGet200ResponseFromJSON(jsonValue));
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* Get Esport Leagues
|
|
191
|
+
*/
|
|
192
|
+
async apiEsportLeaguesGet(requestParameters: ApiEsportLeaguesGetRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiEsportLeaguesGet200Response> {
|
|
193
|
+
const response = await this.apiEsportLeaguesGetRaw(requestParameters, initOverrides);
|
|
194
|
+
return await response.value();
|
|
195
|
+
}
|
|
196
|
+
|
|
123
197
|
/**
|
|
124
198
|
* Get Esport Matches
|
|
125
199
|
*/
|
|
@@ -372,6 +446,51 @@ export class EsportApi extends runtime.BaseAPI {
|
|
|
372
446
|
return await response.value();
|
|
373
447
|
}
|
|
374
448
|
|
|
449
|
+
/**
|
|
450
|
+
* Get Esport Series Details
|
|
451
|
+
*/
|
|
452
|
+
async apiEsportSeriesIdGetRaw(requestParameters: ApiEsportSeriesIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiEsportSeriesIdGet200Response>> {
|
|
453
|
+
if (requestParameters['id'] == null) {
|
|
454
|
+
throw new runtime.RequiredError(
|
|
455
|
+
'id',
|
|
456
|
+
'Required parameter "id" was null or undefined when calling apiEsportSeriesIdGet().'
|
|
457
|
+
);
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
const queryParameters: any = {};
|
|
461
|
+
|
|
462
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
463
|
+
|
|
464
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
465
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
469
|
+
const token = this.configuration.accessToken;
|
|
470
|
+
const tokenString = await token("BearerAuth", []);
|
|
471
|
+
|
|
472
|
+
if (tokenString) {
|
|
473
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
const response = await this.request({
|
|
477
|
+
path: `/api/esport/series/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
478
|
+
method: 'GET',
|
|
479
|
+
headers: headerParameters,
|
|
480
|
+
query: queryParameters,
|
|
481
|
+
}, initOverrides);
|
|
482
|
+
|
|
483
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiEsportSeriesIdGet200ResponseFromJSON(jsonValue));
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
/**
|
|
487
|
+
* Get Esport Series Details
|
|
488
|
+
*/
|
|
489
|
+
async apiEsportSeriesIdGet(requestParameters: ApiEsportSeriesIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiEsportSeriesIdGet200Response> {
|
|
490
|
+
const response = await this.apiEsportSeriesIdGetRaw(requestParameters, initOverrides);
|
|
491
|
+
return await response.value();
|
|
492
|
+
}
|
|
493
|
+
|
|
375
494
|
/**
|
|
376
495
|
* Get Esport Teams
|
|
377
496
|
*/
|
package/deploy.log
CHANGED
|
@@ -187,6 +187,11 @@
|
|
|
187
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
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
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).
|
|
191
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_esport_leagues_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_leagues_get_filter_parameter=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_esport_leagues_get_filter_parameter=NewModel,ModelA=NewModelA in CLI).
|
|
192
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_esport_leagues_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_leagues_get_200_response_responseObject_items_inner=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_esport_leagues_get_200_response_responseObject_items_inner=NewModel,ModelA=NewModelA in CLI).
|
|
193
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_esport_leagues_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_leagues_get_200_response_responseObject=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_esport_leagues_get_200_response_responseObject=NewModel,ModelA=NewModelA in CLI).
|
|
194
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_esport_leagues_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_leagues_get_200_response=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_esport_leagues_get_200_response=NewModel,ModelA=NewModelA in CLI).
|
|
190
195
|
[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/]
|
|
191
196
|
[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/]
|
|
192
197
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthForgotPasswordChangePasswordPost200Response.ts
|
|
@@ -213,6 +218,10 @@
|
|
|
213
218
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthSocialMobilePost200Response.ts
|
|
214
219
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthSocialMobilePost200ResponseResponseObject.ts
|
|
215
220
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthSocialMobilePostRequest.ts
|
|
221
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportLeaguesGet200Response.ts
|
|
222
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportLeaguesGet200ResponseResponseObject.ts
|
|
223
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportLeaguesGet200ResponseResponseObjectItemsInner.ts
|
|
224
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportLeaguesGetFilterParameter.ts
|
|
216
225
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportMatchesGet200Response.ts
|
|
217
226
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportMatchesGet200ResponseResponseObject.ts
|
|
218
227
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportMatchesGet200ResponseResponseObjectItemsInner.ts
|
|
@@ -231,6 +240,7 @@
|
|
|
231
240
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportSeriesGet200ResponseResponseObject.ts
|
|
232
241
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportSeriesGet200ResponseResponseObjectItemsInner.ts
|
|
233
242
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportSeriesGetFilterParameter.ts
|
|
243
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportSeriesIdGet200Response.ts
|
|
234
244
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportTeamsGet200Response.ts
|
|
235
245
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportTeamsGet200ResponseResponseObject.ts
|
|
236
246
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportTeamsGet200ResponseResponseObjectItemsInner.ts
|
|
@@ -431,6 +441,8 @@
|
|
|
431
441
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/esport/tournaments. Renamed to auto-generated operationId: apiEsportTournamentsGet
|
|
432
442
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/esport/tournaments/{id}. Renamed to auto-generated operationId: apiEsportTournamentsIdGet
|
|
433
443
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/esport/series. Renamed to auto-generated operationId: apiEsportSeriesGet
|
|
444
|
+
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/esport/series/{id}. Renamed to auto-generated operationId: apiEsportSeriesIdGet
|
|
445
|
+
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/esport/leagues. Renamed to auto-generated operationId: apiEsportLeaguesGet
|
|
434
446
|
[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/]
|
|
435
447
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./apis/AppConfigApi.ts
|
|
436
448
|
[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/]
|
|
@@ -469,25 +481,24 @@
|
|
|
469
481
|
# https://opencollective.com/openapi_generator/donate #
|
|
470
482
|
################################################################################
|
|
471
483
|
✅ SDK generated
|
|
472
|
-
[master
|
|
473
|
-
|
|
474
|
-
create mode 100644 models/
|
|
475
|
-
create mode 100644 models/
|
|
476
|
-
create mode 100644 models/
|
|
477
|
-
create mode 100644 models/
|
|
478
|
-
create mode 100644 models/ApiEsportTournamentsIdGet200Response.ts
|
|
484
|
+
[master ec39e04] VPS: Generated API SDK
|
|
485
|
+
7 files changed, 513 insertions(+)
|
|
486
|
+
create mode 100644 models/ApiEsportLeaguesGet200Response.ts
|
|
487
|
+
create mode 100644 models/ApiEsportLeaguesGet200ResponseResponseObject.ts
|
|
488
|
+
create mode 100644 models/ApiEsportLeaguesGet200ResponseResponseObjectItemsInner.ts
|
|
489
|
+
create mode 100644 models/ApiEsportLeaguesGetFilterParameter.ts
|
|
479
490
|
To https://gitlab.com/drx-super/drx-sdk.git
|
|
480
|
-
|
|
491
|
+
12bd2f4..ec39e04 master -> master
|
|
481
492
|
✅ Changes committed and pushed
|
|
482
|
-
v1.1.
|
|
493
|
+
v1.1.229
|
|
483
494
|
To https://gitlab.com/drx-super/drx-sdk.git
|
|
484
|
-
|
|
495
|
+
ec39e04..f3fd82b master -> master
|
|
485
496
|
✅ Version bumped
|
|
486
497
|
|
|
487
|
-
> @drxsuperapp/sdk@1.1.
|
|
498
|
+
> @drxsuperapp/sdk@1.1.229 prepublishOnly
|
|
488
499
|
> npm run build
|
|
489
500
|
|
|
490
501
|
|
|
491
|
-
> @drxsuperapp/sdk@1.1.
|
|
502
|
+
> @drxsuperapp/sdk@1.1.229 build
|
|
492
503
|
> tsc
|
|
493
504
|
|
package/dist/apis/EsportApi.d.ts
CHANGED
|
@@ -10,7 +10,13 @@
|
|
|
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, ApiEsportSeriesGet200Response, ApiEsportSeriesGetFilterParameter, ApiEsportTeamsGet200Response, ApiEsportTeamsGetFilterParameter, ApiEsportTeamsIdGet200Response, ApiEsportTournamentsGet200Response, ApiEsportTournamentsGetFilterParameter, ApiEsportTournamentsIdGet200Response, ApiEsportVideogamesGet200Response } from '../models/index';
|
|
13
|
+
import type { ApiEsportLeaguesGet200Response, ApiEsportLeaguesGetFilterParameter, ApiEsportMatchesGet200Response, ApiEsportMatchesGetFilterParameter, ApiEsportMatchesIdGet200Response, ApiEsportPlayersGet200Response, ApiEsportPlayersGetFilterParameter, ApiEsportPlayersIdGet200Response, ApiEsportSeriesGet200Response, ApiEsportSeriesGetFilterParameter, ApiEsportSeriesIdGet200Response, ApiEsportTeamsGet200Response, ApiEsportTeamsGetFilterParameter, ApiEsportTeamsIdGet200Response, ApiEsportTournamentsGet200Response, ApiEsportTournamentsGetFilterParameter, ApiEsportTournamentsIdGet200Response, ApiEsportVideogamesGet200Response } from '../models/index';
|
|
14
|
+
export interface ApiEsportLeaguesGetRequest {
|
|
15
|
+
page?: number;
|
|
16
|
+
pageSize?: number;
|
|
17
|
+
sort?: string;
|
|
18
|
+
filter?: ApiEsportLeaguesGetFilterParameter;
|
|
19
|
+
}
|
|
14
20
|
export interface ApiEsportMatchesGetRequest {
|
|
15
21
|
page?: number;
|
|
16
22
|
pageSize?: number;
|
|
@@ -35,6 +41,9 @@ export interface ApiEsportSeriesGetRequest {
|
|
|
35
41
|
sort?: string;
|
|
36
42
|
filter?: ApiEsportSeriesGetFilterParameter;
|
|
37
43
|
}
|
|
44
|
+
export interface ApiEsportSeriesIdGetRequest {
|
|
45
|
+
id: string;
|
|
46
|
+
}
|
|
38
47
|
export interface ApiEsportTeamsGetRequest {
|
|
39
48
|
page?: number;
|
|
40
49
|
pageSize?: number;
|
|
@@ -57,6 +66,14 @@ export interface ApiEsportTournamentsIdGetRequest {
|
|
|
57
66
|
*
|
|
58
67
|
*/
|
|
59
68
|
export declare class EsportApi extends runtime.BaseAPI {
|
|
69
|
+
/**
|
|
70
|
+
* Get Esport Leagues
|
|
71
|
+
*/
|
|
72
|
+
apiEsportLeaguesGetRaw(requestParameters: ApiEsportLeaguesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiEsportLeaguesGet200Response>>;
|
|
73
|
+
/**
|
|
74
|
+
* Get Esport Leagues
|
|
75
|
+
*/
|
|
76
|
+
apiEsportLeaguesGet(requestParameters?: ApiEsportLeaguesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiEsportLeaguesGet200Response>;
|
|
60
77
|
/**
|
|
61
78
|
* Get Esport Matches
|
|
62
79
|
*/
|
|
@@ -97,6 +114,14 @@ export declare class EsportApi extends runtime.BaseAPI {
|
|
|
97
114
|
* Get Esport Series
|
|
98
115
|
*/
|
|
99
116
|
apiEsportSeriesGet(requestParameters?: ApiEsportSeriesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiEsportSeriesGet200Response>;
|
|
117
|
+
/**
|
|
118
|
+
* Get Esport Series Details
|
|
119
|
+
*/
|
|
120
|
+
apiEsportSeriesIdGetRaw(requestParameters: ApiEsportSeriesIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiEsportSeriesIdGet200Response>>;
|
|
121
|
+
/**
|
|
122
|
+
* Get Esport Series Details
|
|
123
|
+
*/
|
|
124
|
+
apiEsportSeriesIdGet(requestParameters: ApiEsportSeriesIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiEsportSeriesIdGet200Response>;
|
|
100
125
|
/**
|
|
101
126
|
* Get Esport Teams
|
|
102
127
|
*/
|
package/dist/apis/EsportApi.js
CHANGED
|
@@ -12,11 +12,54 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import * as runtime from '../runtime';
|
|
15
|
-
import { ApiEsportMatchesGet200ResponseFromJSON, ApiEsportMatchesIdGet200ResponseFromJSON, ApiEsportPlayersGet200ResponseFromJSON, ApiEsportPlayersIdGet200ResponseFromJSON, ApiEsportSeriesGet200ResponseFromJSON, ApiEsportTeamsGet200ResponseFromJSON, ApiEsportTeamsIdGet200ResponseFromJSON, ApiEsportTournamentsGet200ResponseFromJSON, ApiEsportTournamentsIdGet200ResponseFromJSON, ApiEsportVideogamesGet200ResponseFromJSON, } from '../models/index';
|
|
15
|
+
import { ApiEsportLeaguesGet200ResponseFromJSON, ApiEsportMatchesGet200ResponseFromJSON, ApiEsportMatchesIdGet200ResponseFromJSON, ApiEsportPlayersGet200ResponseFromJSON, ApiEsportPlayersIdGet200ResponseFromJSON, ApiEsportSeriesGet200ResponseFromJSON, ApiEsportSeriesIdGet200ResponseFromJSON, ApiEsportTeamsGet200ResponseFromJSON, ApiEsportTeamsIdGet200ResponseFromJSON, ApiEsportTournamentsGet200ResponseFromJSON, ApiEsportTournamentsIdGet200ResponseFromJSON, ApiEsportVideogamesGet200ResponseFromJSON, } from '../models/index';
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
*/
|
|
19
19
|
export class EsportApi extends runtime.BaseAPI {
|
|
20
|
+
/**
|
|
21
|
+
* Get Esport Leagues
|
|
22
|
+
*/
|
|
23
|
+
async apiEsportLeaguesGetRaw(requestParameters, initOverrides) {
|
|
24
|
+
const queryParameters = {};
|
|
25
|
+
if (requestParameters['page'] != null) {
|
|
26
|
+
queryParameters['page'] = requestParameters['page'];
|
|
27
|
+
}
|
|
28
|
+
if (requestParameters['pageSize'] != null) {
|
|
29
|
+
queryParameters['pageSize'] = requestParameters['pageSize'];
|
|
30
|
+
}
|
|
31
|
+
if (requestParameters['sort'] != null) {
|
|
32
|
+
queryParameters['sort'] = requestParameters['sort'];
|
|
33
|
+
}
|
|
34
|
+
if (requestParameters['filter'] != null) {
|
|
35
|
+
queryParameters['filter'] = requestParameters['filter'];
|
|
36
|
+
}
|
|
37
|
+
const headerParameters = {};
|
|
38
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
39
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
40
|
+
}
|
|
41
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
42
|
+
const token = this.configuration.accessToken;
|
|
43
|
+
const tokenString = await token("BearerAuth", []);
|
|
44
|
+
if (tokenString) {
|
|
45
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
const response = await this.request({
|
|
49
|
+
path: `/api/esport/leagues`,
|
|
50
|
+
method: 'GET',
|
|
51
|
+
headers: headerParameters,
|
|
52
|
+
query: queryParameters,
|
|
53
|
+
}, initOverrides);
|
|
54
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiEsportLeaguesGet200ResponseFromJSON(jsonValue));
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Get Esport Leagues
|
|
58
|
+
*/
|
|
59
|
+
async apiEsportLeaguesGet(requestParameters = {}, initOverrides) {
|
|
60
|
+
const response = await this.apiEsportLeaguesGetRaw(requestParameters, initOverrides);
|
|
61
|
+
return await response.value();
|
|
62
|
+
}
|
|
20
63
|
/**
|
|
21
64
|
* Get Esport Matches
|
|
22
65
|
*/
|
|
@@ -214,6 +257,40 @@ export class EsportApi extends runtime.BaseAPI {
|
|
|
214
257
|
const response = await this.apiEsportSeriesGetRaw(requestParameters, initOverrides);
|
|
215
258
|
return await response.value();
|
|
216
259
|
}
|
|
260
|
+
/**
|
|
261
|
+
* Get Esport Series Details
|
|
262
|
+
*/
|
|
263
|
+
async apiEsportSeriesIdGetRaw(requestParameters, initOverrides) {
|
|
264
|
+
if (requestParameters['id'] == null) {
|
|
265
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiEsportSeriesIdGet().');
|
|
266
|
+
}
|
|
267
|
+
const queryParameters = {};
|
|
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/series/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
281
|
+
method: 'GET',
|
|
282
|
+
headers: headerParameters,
|
|
283
|
+
query: queryParameters,
|
|
284
|
+
}, initOverrides);
|
|
285
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiEsportSeriesIdGet200ResponseFromJSON(jsonValue));
|
|
286
|
+
}
|
|
287
|
+
/**
|
|
288
|
+
* Get Esport Series Details
|
|
289
|
+
*/
|
|
290
|
+
async apiEsportSeriesIdGet(requestParameters, initOverrides) {
|
|
291
|
+
const response = await this.apiEsportSeriesIdGetRaw(requestParameters, initOverrides);
|
|
292
|
+
return await response.value();
|
|
293
|
+
}
|
|
217
294
|
/**
|
|
218
295
|
* Get Esport Teams
|
|
219
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 { ApiEsportLeaguesGet200ResponseResponseObject } from './ApiEsportLeaguesGet200ResponseResponseObject';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ApiEsportLeaguesGet200Response
|
|
17
|
+
*/
|
|
18
|
+
export interface ApiEsportLeaguesGet200Response {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {boolean}
|
|
22
|
+
* @memberof ApiEsportLeaguesGet200Response
|
|
23
|
+
*/
|
|
24
|
+
success: boolean;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof ApiEsportLeaguesGet200Response
|
|
29
|
+
*/
|
|
30
|
+
message: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {ApiEsportLeaguesGet200ResponseResponseObject}
|
|
34
|
+
* @memberof ApiEsportLeaguesGet200Response
|
|
35
|
+
*/
|
|
36
|
+
responseObject?: ApiEsportLeaguesGet200ResponseResponseObject;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof ApiEsportLeaguesGet200Response
|
|
41
|
+
*/
|
|
42
|
+
statusCode: number;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the ApiEsportLeaguesGet200Response interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfApiEsportLeaguesGet200Response(value: object): value is ApiEsportLeaguesGet200Response;
|
|
48
|
+
export declare function ApiEsportLeaguesGet200ResponseFromJSON(json: any): ApiEsportLeaguesGet200Response;
|
|
49
|
+
export declare function ApiEsportLeaguesGet200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiEsportLeaguesGet200Response;
|
|
50
|
+
export declare function ApiEsportLeaguesGet200ResponseToJSON(json: any): ApiEsportLeaguesGet200Response;
|
|
51
|
+
export declare function ApiEsportLeaguesGet200ResponseToJSONTyped(value?: ApiEsportLeaguesGet200Response | 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 { ApiEsportLeaguesGet200ResponseResponseObjectFromJSON, ApiEsportLeaguesGet200ResponseResponseObjectToJSON, } from './ApiEsportLeaguesGet200ResponseResponseObject';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the ApiEsportLeaguesGet200Response interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfApiEsportLeaguesGet200Response(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 ApiEsportLeaguesGet200ResponseFromJSON(json) {
|
|
28
|
+
return ApiEsportLeaguesGet200ResponseFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
export function ApiEsportLeaguesGet200ResponseFromJSONTyped(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 : ApiEsportLeaguesGet200ResponseResponseObjectFromJSON(json['responseObject']),
|
|
38
|
+
'statusCode': json['statusCode'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
export function ApiEsportLeaguesGet200ResponseToJSON(json) {
|
|
42
|
+
return ApiEsportLeaguesGet200ResponseToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
export function ApiEsportLeaguesGet200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'success': value['success'],
|
|
50
|
+
'message': value['message'],
|
|
51
|
+
'responseObject': ApiEsportLeaguesGet200ResponseResponseObjectToJSON(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 { ApiEsportLeaguesGet200ResponseResponseObjectItemsInner } from './ApiEsportLeaguesGet200ResponseResponseObjectItemsInner';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ApiEsportLeaguesGet200ResponseResponseObject
|
|
17
|
+
*/
|
|
18
|
+
export interface ApiEsportLeaguesGet200ResponseResponseObject {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<ApiEsportLeaguesGet200ResponseResponseObjectItemsInner>}
|
|
22
|
+
* @memberof ApiEsportLeaguesGet200ResponseResponseObject
|
|
23
|
+
*/
|
|
24
|
+
items: Array<ApiEsportLeaguesGet200ResponseResponseObjectItemsInner>;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof ApiEsportLeaguesGet200ResponseResponseObject
|
|
29
|
+
*/
|
|
30
|
+
currentPage: number;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof ApiEsportLeaguesGet200ResponseResponseObject
|
|
35
|
+
*/
|
|
36
|
+
totalItems: number;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof ApiEsportLeaguesGet200ResponseResponseObject
|
|
41
|
+
*/
|
|
42
|
+
totalPages: number;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {number}
|
|
46
|
+
* @memberof ApiEsportLeaguesGet200ResponseResponseObject
|
|
47
|
+
*/
|
|
48
|
+
pageSize: number;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the ApiEsportLeaguesGet200ResponseResponseObject interface.
|
|
52
|
+
*/
|
|
53
|
+
export declare function instanceOfApiEsportLeaguesGet200ResponseResponseObject(value: object): value is ApiEsportLeaguesGet200ResponseResponseObject;
|
|
54
|
+
export declare function ApiEsportLeaguesGet200ResponseResponseObjectFromJSON(json: any): ApiEsportLeaguesGet200ResponseResponseObject;
|
|
55
|
+
export declare function ApiEsportLeaguesGet200ResponseResponseObjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiEsportLeaguesGet200ResponseResponseObject;
|
|
56
|
+
export declare function ApiEsportLeaguesGet200ResponseResponseObjectToJSON(json: any): ApiEsportLeaguesGet200ResponseResponseObject;
|
|
57
|
+
export declare function ApiEsportLeaguesGet200ResponseResponseObjectToJSONTyped(value?: ApiEsportLeaguesGet200ResponseResponseObject | 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 { ApiEsportLeaguesGet200ResponseResponseObjectItemsInnerFromJSON, ApiEsportLeaguesGet200ResponseResponseObjectItemsInnerToJSON, } from './ApiEsportLeaguesGet200ResponseResponseObjectItemsInner';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the ApiEsportLeaguesGet200ResponseResponseObject interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfApiEsportLeaguesGet200ResponseResponseObject(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 ApiEsportLeaguesGet200ResponseResponseObjectFromJSON(json) {
|
|
32
|
+
return ApiEsportLeaguesGet200ResponseResponseObjectFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
export function ApiEsportLeaguesGet200ResponseResponseObjectFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'items': (json['items'].map(ApiEsportLeaguesGet200ResponseResponseObjectItemsInnerFromJSON)),
|
|
40
|
+
'currentPage': json['currentPage'],
|
|
41
|
+
'totalItems': json['totalItems'],
|
|
42
|
+
'totalPages': json['totalPages'],
|
|
43
|
+
'pageSize': json['pageSize'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
export function ApiEsportLeaguesGet200ResponseResponseObjectToJSON(json) {
|
|
47
|
+
return ApiEsportLeaguesGet200ResponseResponseObjectToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
export function ApiEsportLeaguesGet200ResponseResponseObjectToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'items': (value['items'].map(ApiEsportLeaguesGet200ResponseResponseObjectItemsInnerToJSON)),
|
|
55
|
+
'currentPage': value['currentPage'],
|
|
56
|
+
'totalItems': value['totalItems'],
|
|
57
|
+
'totalPages': value['totalPages'],
|
|
58
|
+
'pageSize': value['pageSize'],
|
|
59
|
+
};
|
|
60
|
+
}
|