@drxsuperapp/sdk 1.1.229 → 1.1.230
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 +1 -0
- package/apis/EsportApi.ts +52 -0
- package/deploy.log +11 -11
- package/dist/apis/EsportApi.d.ts +12 -1
- package/dist/apis/EsportApi.js +35 -1
- package/dist/models/ApiEsportLeaguesIdGet200Response.d.ts +51 -0
- package/dist/models/ApiEsportLeaguesIdGet200Response.js +54 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/models/ApiEsportLeaguesIdGet200Response.ts +100 -0
- package/models/index.ts +1 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -40,6 +40,7 @@ models/ApiEsportLeaguesGet200Response.ts
|
|
|
40
40
|
models/ApiEsportLeaguesGet200ResponseResponseObject.ts
|
|
41
41
|
models/ApiEsportLeaguesGet200ResponseResponseObjectItemsInner.ts
|
|
42
42
|
models/ApiEsportLeaguesGetFilterParameter.ts
|
|
43
|
+
models/ApiEsportLeaguesIdGet200Response.ts
|
|
43
44
|
models/ApiEsportMatchesGet200Response.ts
|
|
44
45
|
models/ApiEsportMatchesGet200ResponseResponseObject.ts
|
|
45
46
|
models/ApiEsportMatchesGet200ResponseResponseObjectItemsInner.ts
|
package/apis/EsportApi.ts
CHANGED
|
@@ -17,6 +17,7 @@ import * as runtime from '../runtime';
|
|
|
17
17
|
import type {
|
|
18
18
|
ApiEsportLeaguesGet200Response,
|
|
19
19
|
ApiEsportLeaguesGetFilterParameter,
|
|
20
|
+
ApiEsportLeaguesIdGet200Response,
|
|
20
21
|
ApiEsportMatchesGet200Response,
|
|
21
22
|
ApiEsportMatchesGetFilterParameter,
|
|
22
23
|
ApiEsportMatchesIdGet200Response,
|
|
@@ -39,6 +40,8 @@ import {
|
|
|
39
40
|
ApiEsportLeaguesGet200ResponseToJSON,
|
|
40
41
|
ApiEsportLeaguesGetFilterParameterFromJSON,
|
|
41
42
|
ApiEsportLeaguesGetFilterParameterToJSON,
|
|
43
|
+
ApiEsportLeaguesIdGet200ResponseFromJSON,
|
|
44
|
+
ApiEsportLeaguesIdGet200ResponseToJSON,
|
|
42
45
|
ApiEsportMatchesGet200ResponseFromJSON,
|
|
43
46
|
ApiEsportMatchesGet200ResponseToJSON,
|
|
44
47
|
ApiEsportMatchesGetFilterParameterFromJSON,
|
|
@@ -80,6 +83,10 @@ export interface ApiEsportLeaguesGetRequest {
|
|
|
80
83
|
filter?: ApiEsportLeaguesGetFilterParameter;
|
|
81
84
|
}
|
|
82
85
|
|
|
86
|
+
export interface ApiEsportLeaguesIdGetRequest {
|
|
87
|
+
id: string;
|
|
88
|
+
}
|
|
89
|
+
|
|
83
90
|
export interface ApiEsportMatchesGetRequest {
|
|
84
91
|
page?: number;
|
|
85
92
|
pageSize?: number;
|
|
@@ -194,6 +201,51 @@ export class EsportApi extends runtime.BaseAPI {
|
|
|
194
201
|
return await response.value();
|
|
195
202
|
}
|
|
196
203
|
|
|
204
|
+
/**
|
|
205
|
+
* Get Esport League Details
|
|
206
|
+
*/
|
|
207
|
+
async apiEsportLeaguesIdGetRaw(requestParameters: ApiEsportLeaguesIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiEsportLeaguesIdGet200Response>> {
|
|
208
|
+
if (requestParameters['id'] == null) {
|
|
209
|
+
throw new runtime.RequiredError(
|
|
210
|
+
'id',
|
|
211
|
+
'Required parameter "id" was null or undefined when calling apiEsportLeaguesIdGet().'
|
|
212
|
+
);
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
const queryParameters: any = {};
|
|
216
|
+
|
|
217
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
218
|
+
|
|
219
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
220
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
224
|
+
const token = this.configuration.accessToken;
|
|
225
|
+
const tokenString = await token("BearerAuth", []);
|
|
226
|
+
|
|
227
|
+
if (tokenString) {
|
|
228
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
const response = await this.request({
|
|
232
|
+
path: `/api/esport/leagues/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
233
|
+
method: 'GET',
|
|
234
|
+
headers: headerParameters,
|
|
235
|
+
query: queryParameters,
|
|
236
|
+
}, initOverrides);
|
|
237
|
+
|
|
238
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiEsportLeaguesIdGet200ResponseFromJSON(jsonValue));
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
/**
|
|
242
|
+
* Get Esport League Details
|
|
243
|
+
*/
|
|
244
|
+
async apiEsportLeaguesIdGet(requestParameters: ApiEsportLeaguesIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiEsportLeaguesIdGet200Response> {
|
|
245
|
+
const response = await this.apiEsportLeaguesIdGetRaw(requestParameters, initOverrides);
|
|
246
|
+
return await response.value();
|
|
247
|
+
}
|
|
248
|
+
|
|
197
249
|
/**
|
|
198
250
|
* Get Esport Matches
|
|
199
251
|
*/
|
package/deploy.log
CHANGED
|
@@ -192,6 +192,7 @@
|
|
|
192
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
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
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).
|
|
195
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_esport_leagues__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_leagues__id__get_200_response=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_esport_leagues__id__get_200_response=NewModel,ModelA=NewModelA in CLI).
|
|
195
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/]
|
|
196
197
|
[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/]
|
|
197
198
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthForgotPasswordChangePasswordPost200Response.ts
|
|
@@ -222,6 +223,7 @@
|
|
|
222
223
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportLeaguesGet200ResponseResponseObject.ts
|
|
223
224
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportLeaguesGet200ResponseResponseObjectItemsInner.ts
|
|
224
225
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportLeaguesGetFilterParameter.ts
|
|
226
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportLeaguesIdGet200Response.ts
|
|
225
227
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportMatchesGet200Response.ts
|
|
226
228
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportMatchesGet200ResponseResponseObject.ts
|
|
227
229
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportMatchesGet200ResponseResponseObjectItemsInner.ts
|
|
@@ -443,6 +445,7 @@
|
|
|
443
445
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/esport/series. Renamed to auto-generated operationId: apiEsportSeriesGet
|
|
444
446
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/esport/series/{id}. Renamed to auto-generated operationId: apiEsportSeriesIdGet
|
|
445
447
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/esport/leagues. Renamed to auto-generated operationId: apiEsportLeaguesGet
|
|
448
|
+
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/esport/leagues/{id}. Renamed to auto-generated operationId: apiEsportLeaguesIdGet
|
|
446
449
|
[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/]
|
|
447
450
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./apis/AppConfigApi.ts
|
|
448
451
|
[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/]
|
|
@@ -481,24 +484,21 @@
|
|
|
481
484
|
# https://opencollective.com/openapi_generator/donate #
|
|
482
485
|
################################################################################
|
|
483
486
|
✅ SDK generated
|
|
484
|
-
[master
|
|
485
|
-
|
|
486
|
-
create mode 100644 models/
|
|
487
|
-
create mode 100644 models/ApiEsportLeaguesGet200ResponseResponseObject.ts
|
|
488
|
-
create mode 100644 models/ApiEsportLeaguesGet200ResponseResponseObjectItemsInner.ts
|
|
489
|
-
create mode 100644 models/ApiEsportLeaguesGetFilterParameter.ts
|
|
487
|
+
[master 09fe8b8] VPS: Generated API SDK
|
|
488
|
+
4 files changed, 154 insertions(+)
|
|
489
|
+
create mode 100644 models/ApiEsportLeaguesIdGet200Response.ts
|
|
490
490
|
To https://gitlab.com/drx-super/drx-sdk.git
|
|
491
|
-
|
|
491
|
+
f3fd82b..09fe8b8 master -> master
|
|
492
492
|
✅ Changes committed and pushed
|
|
493
|
-
v1.1.
|
|
493
|
+
v1.1.230
|
|
494
494
|
To https://gitlab.com/drx-super/drx-sdk.git
|
|
495
|
-
|
|
495
|
+
09fe8b8..c2b1e55 master -> master
|
|
496
496
|
✅ Version bumped
|
|
497
497
|
|
|
498
|
-
> @drxsuperapp/sdk@1.1.
|
|
498
|
+
> @drxsuperapp/sdk@1.1.230 prepublishOnly
|
|
499
499
|
> npm run build
|
|
500
500
|
|
|
501
501
|
|
|
502
|
-
> @drxsuperapp/sdk@1.1.
|
|
502
|
+
> @drxsuperapp/sdk@1.1.230 build
|
|
503
503
|
> tsc
|
|
504
504
|
|
package/dist/apis/EsportApi.d.ts
CHANGED
|
@@ -10,13 +10,16 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { ApiEsportLeaguesGet200Response, ApiEsportLeaguesGetFilterParameter, ApiEsportMatchesGet200Response, ApiEsportMatchesGetFilterParameter, ApiEsportMatchesIdGet200Response, ApiEsportPlayersGet200Response, ApiEsportPlayersGetFilterParameter, ApiEsportPlayersIdGet200Response, ApiEsportSeriesGet200Response, ApiEsportSeriesGetFilterParameter, ApiEsportSeriesIdGet200Response, ApiEsportTeamsGet200Response, ApiEsportTeamsGetFilterParameter, ApiEsportTeamsIdGet200Response, ApiEsportTournamentsGet200Response, ApiEsportTournamentsGetFilterParameter, ApiEsportTournamentsIdGet200Response, ApiEsportVideogamesGet200Response } from '../models/index';
|
|
13
|
+
import type { ApiEsportLeaguesGet200Response, ApiEsportLeaguesGetFilterParameter, ApiEsportLeaguesIdGet200Response, ApiEsportMatchesGet200Response, ApiEsportMatchesGetFilterParameter, ApiEsportMatchesIdGet200Response, ApiEsportPlayersGet200Response, ApiEsportPlayersGetFilterParameter, ApiEsportPlayersIdGet200Response, ApiEsportSeriesGet200Response, ApiEsportSeriesGetFilterParameter, ApiEsportSeriesIdGet200Response, ApiEsportTeamsGet200Response, ApiEsportTeamsGetFilterParameter, ApiEsportTeamsIdGet200Response, ApiEsportTournamentsGet200Response, ApiEsportTournamentsGetFilterParameter, ApiEsportTournamentsIdGet200Response, ApiEsportVideogamesGet200Response } from '../models/index';
|
|
14
14
|
export interface ApiEsportLeaguesGetRequest {
|
|
15
15
|
page?: number;
|
|
16
16
|
pageSize?: number;
|
|
17
17
|
sort?: string;
|
|
18
18
|
filter?: ApiEsportLeaguesGetFilterParameter;
|
|
19
19
|
}
|
|
20
|
+
export interface ApiEsportLeaguesIdGetRequest {
|
|
21
|
+
id: string;
|
|
22
|
+
}
|
|
20
23
|
export interface ApiEsportMatchesGetRequest {
|
|
21
24
|
page?: number;
|
|
22
25
|
pageSize?: number;
|
|
@@ -74,6 +77,14 @@ export declare class EsportApi extends runtime.BaseAPI {
|
|
|
74
77
|
* Get Esport Leagues
|
|
75
78
|
*/
|
|
76
79
|
apiEsportLeaguesGet(requestParameters?: ApiEsportLeaguesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiEsportLeaguesGet200Response>;
|
|
80
|
+
/**
|
|
81
|
+
* Get Esport League Details
|
|
82
|
+
*/
|
|
83
|
+
apiEsportLeaguesIdGetRaw(requestParameters: ApiEsportLeaguesIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiEsportLeaguesIdGet200Response>>;
|
|
84
|
+
/**
|
|
85
|
+
* Get Esport League Details
|
|
86
|
+
*/
|
|
87
|
+
apiEsportLeaguesIdGet(requestParameters: ApiEsportLeaguesIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiEsportLeaguesIdGet200Response>;
|
|
77
88
|
/**
|
|
78
89
|
* Get Esport Matches
|
|
79
90
|
*/
|
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 { ApiEsportLeaguesGet200ResponseFromJSON, ApiEsportMatchesGet200ResponseFromJSON, ApiEsportMatchesIdGet200ResponseFromJSON, ApiEsportPlayersGet200ResponseFromJSON, ApiEsportPlayersIdGet200ResponseFromJSON, ApiEsportSeriesGet200ResponseFromJSON, ApiEsportSeriesIdGet200ResponseFromJSON, ApiEsportTeamsGet200ResponseFromJSON, ApiEsportTeamsIdGet200ResponseFromJSON, ApiEsportTournamentsGet200ResponseFromJSON, ApiEsportTournamentsIdGet200ResponseFromJSON, ApiEsportVideogamesGet200ResponseFromJSON, } from '../models/index';
|
|
15
|
+
import { ApiEsportLeaguesGet200ResponseFromJSON, ApiEsportLeaguesIdGet200ResponseFromJSON, ApiEsportMatchesGet200ResponseFromJSON, ApiEsportMatchesIdGet200ResponseFromJSON, ApiEsportPlayersGet200ResponseFromJSON, ApiEsportPlayersIdGet200ResponseFromJSON, ApiEsportSeriesGet200ResponseFromJSON, ApiEsportSeriesIdGet200ResponseFromJSON, ApiEsportTeamsGet200ResponseFromJSON, ApiEsportTeamsIdGet200ResponseFromJSON, ApiEsportTournamentsGet200ResponseFromJSON, ApiEsportTournamentsIdGet200ResponseFromJSON, ApiEsportVideogamesGet200ResponseFromJSON, } from '../models/index';
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
*/
|
|
@@ -60,6 +60,40 @@ export class EsportApi extends runtime.BaseAPI {
|
|
|
60
60
|
const response = await this.apiEsportLeaguesGetRaw(requestParameters, initOverrides);
|
|
61
61
|
return await response.value();
|
|
62
62
|
}
|
|
63
|
+
/**
|
|
64
|
+
* Get Esport League Details
|
|
65
|
+
*/
|
|
66
|
+
async apiEsportLeaguesIdGetRaw(requestParameters, initOverrides) {
|
|
67
|
+
if (requestParameters['id'] == null) {
|
|
68
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiEsportLeaguesIdGet().');
|
|
69
|
+
}
|
|
70
|
+
const queryParameters = {};
|
|
71
|
+
const headerParameters = {};
|
|
72
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
73
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
74
|
+
}
|
|
75
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
76
|
+
const token = this.configuration.accessToken;
|
|
77
|
+
const tokenString = await token("BearerAuth", []);
|
|
78
|
+
if (tokenString) {
|
|
79
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
const response = await this.request({
|
|
83
|
+
path: `/api/esport/leagues/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
84
|
+
method: 'GET',
|
|
85
|
+
headers: headerParameters,
|
|
86
|
+
query: queryParameters,
|
|
87
|
+
}, initOverrides);
|
|
88
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiEsportLeaguesIdGet200ResponseFromJSON(jsonValue));
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Get Esport League Details
|
|
92
|
+
*/
|
|
93
|
+
async apiEsportLeaguesIdGet(requestParameters, initOverrides) {
|
|
94
|
+
const response = await this.apiEsportLeaguesIdGetRaw(requestParameters, initOverrides);
|
|
95
|
+
return await response.value();
|
|
96
|
+
}
|
|
63
97
|
/**
|
|
64
98
|
* Get Esport Matches
|
|
65
99
|
*/
|
|
@@ -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 { ApiEsportLeaguesGet200ResponseResponseObjectItemsInner } from './ApiEsportLeaguesGet200ResponseResponseObjectItemsInner';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ApiEsportLeaguesIdGet200Response
|
|
17
|
+
*/
|
|
18
|
+
export interface ApiEsportLeaguesIdGet200Response {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {boolean}
|
|
22
|
+
* @memberof ApiEsportLeaguesIdGet200Response
|
|
23
|
+
*/
|
|
24
|
+
success: boolean;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof ApiEsportLeaguesIdGet200Response
|
|
29
|
+
*/
|
|
30
|
+
message: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {ApiEsportLeaguesGet200ResponseResponseObjectItemsInner}
|
|
34
|
+
* @memberof ApiEsportLeaguesIdGet200Response
|
|
35
|
+
*/
|
|
36
|
+
responseObject?: ApiEsportLeaguesGet200ResponseResponseObjectItemsInner;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof ApiEsportLeaguesIdGet200Response
|
|
41
|
+
*/
|
|
42
|
+
statusCode: number;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the ApiEsportLeaguesIdGet200Response interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfApiEsportLeaguesIdGet200Response(value: object): value is ApiEsportLeaguesIdGet200Response;
|
|
48
|
+
export declare function ApiEsportLeaguesIdGet200ResponseFromJSON(json: any): ApiEsportLeaguesIdGet200Response;
|
|
49
|
+
export declare function ApiEsportLeaguesIdGet200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiEsportLeaguesIdGet200Response;
|
|
50
|
+
export declare function ApiEsportLeaguesIdGet200ResponseToJSON(json: any): ApiEsportLeaguesIdGet200Response;
|
|
51
|
+
export declare function ApiEsportLeaguesIdGet200ResponseToJSONTyped(value?: ApiEsportLeaguesIdGet200Response | 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 { ApiEsportLeaguesGet200ResponseResponseObjectItemsInnerFromJSON, ApiEsportLeaguesGet200ResponseResponseObjectItemsInnerToJSON, } from './ApiEsportLeaguesGet200ResponseResponseObjectItemsInner';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the ApiEsportLeaguesIdGet200Response interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfApiEsportLeaguesIdGet200Response(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 ApiEsportLeaguesIdGet200ResponseFromJSON(json) {
|
|
28
|
+
return ApiEsportLeaguesIdGet200ResponseFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
export function ApiEsportLeaguesIdGet200ResponseFromJSONTyped(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 : ApiEsportLeaguesGet200ResponseResponseObjectItemsInnerFromJSON(json['responseObject']),
|
|
38
|
+
'statusCode': json['statusCode'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
export function ApiEsportLeaguesIdGet200ResponseToJSON(json) {
|
|
42
|
+
return ApiEsportLeaguesIdGet200ResponseToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
export function ApiEsportLeaguesIdGet200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'success': value['success'],
|
|
50
|
+
'message': value['message'],
|
|
51
|
+
'responseObject': ApiEsportLeaguesGet200ResponseResponseObjectItemsInnerToJSON(value['responseObject']),
|
|
52
|
+
'statusCode': value['statusCode'],
|
|
53
|
+
};
|
|
54
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -26,6 +26,7 @@ export * from './ApiEsportLeaguesGet200Response';
|
|
|
26
26
|
export * from './ApiEsportLeaguesGet200ResponseResponseObject';
|
|
27
27
|
export * from './ApiEsportLeaguesGet200ResponseResponseObjectItemsInner';
|
|
28
28
|
export * from './ApiEsportLeaguesGetFilterParameter';
|
|
29
|
+
export * from './ApiEsportLeaguesIdGet200Response';
|
|
29
30
|
export * from './ApiEsportMatchesGet200Response';
|
|
30
31
|
export * from './ApiEsportMatchesGet200ResponseResponseObject';
|
|
31
32
|
export * from './ApiEsportMatchesGet200ResponseResponseObjectItemsInner';
|
package/dist/models/index.js
CHANGED
|
@@ -28,6 +28,7 @@ export * from './ApiEsportLeaguesGet200Response';
|
|
|
28
28
|
export * from './ApiEsportLeaguesGet200ResponseResponseObject';
|
|
29
29
|
export * from './ApiEsportLeaguesGet200ResponseResponseObjectItemsInner';
|
|
30
30
|
export * from './ApiEsportLeaguesGetFilterParameter';
|
|
31
|
+
export * from './ApiEsportLeaguesIdGet200Response';
|
|
31
32
|
export * from './ApiEsportMatchesGet200Response';
|
|
32
33
|
export * from './ApiEsportMatchesGet200ResponseResponseObject';
|
|
33
34
|
export * from './ApiEsportMatchesGet200ResponseResponseObjectItemsInner';
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* DRX API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { ApiEsportLeaguesGet200ResponseResponseObjectItemsInner } from './ApiEsportLeaguesGet200ResponseResponseObjectItemsInner';
|
|
17
|
+
import {
|
|
18
|
+
ApiEsportLeaguesGet200ResponseResponseObjectItemsInnerFromJSON,
|
|
19
|
+
ApiEsportLeaguesGet200ResponseResponseObjectItemsInnerFromJSONTyped,
|
|
20
|
+
ApiEsportLeaguesGet200ResponseResponseObjectItemsInnerToJSON,
|
|
21
|
+
ApiEsportLeaguesGet200ResponseResponseObjectItemsInnerToJSONTyped,
|
|
22
|
+
} from './ApiEsportLeaguesGet200ResponseResponseObjectItemsInner';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ApiEsportLeaguesIdGet200Response
|
|
28
|
+
*/
|
|
29
|
+
export interface ApiEsportLeaguesIdGet200Response {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof ApiEsportLeaguesIdGet200Response
|
|
34
|
+
*/
|
|
35
|
+
success: boolean;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ApiEsportLeaguesIdGet200Response
|
|
40
|
+
*/
|
|
41
|
+
message: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {ApiEsportLeaguesGet200ResponseResponseObjectItemsInner}
|
|
45
|
+
* @memberof ApiEsportLeaguesIdGet200Response
|
|
46
|
+
*/
|
|
47
|
+
responseObject?: ApiEsportLeaguesGet200ResponseResponseObjectItemsInner;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof ApiEsportLeaguesIdGet200Response
|
|
52
|
+
*/
|
|
53
|
+
statusCode: number;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the ApiEsportLeaguesIdGet200Response interface.
|
|
58
|
+
*/
|
|
59
|
+
export function instanceOfApiEsportLeaguesIdGet200Response(value: object): value is ApiEsportLeaguesIdGet200Response {
|
|
60
|
+
if (!('success' in value) || value['success'] === undefined) return false;
|
|
61
|
+
if (!('message' in value) || value['message'] === undefined) return false;
|
|
62
|
+
if (!('statusCode' in value) || value['statusCode'] === undefined) return false;
|
|
63
|
+
return true;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function ApiEsportLeaguesIdGet200ResponseFromJSON(json: any): ApiEsportLeaguesIdGet200Response {
|
|
67
|
+
return ApiEsportLeaguesIdGet200ResponseFromJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function ApiEsportLeaguesIdGet200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiEsportLeaguesIdGet200Response {
|
|
71
|
+
if (json == null) {
|
|
72
|
+
return json;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'success': json['success'],
|
|
77
|
+
'message': json['message'],
|
|
78
|
+
'responseObject': json['responseObject'] == null ? undefined : ApiEsportLeaguesGet200ResponseResponseObjectItemsInnerFromJSON(json['responseObject']),
|
|
79
|
+
'statusCode': json['statusCode'],
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function ApiEsportLeaguesIdGet200ResponseToJSON(json: any): ApiEsportLeaguesIdGet200Response {
|
|
84
|
+
return ApiEsportLeaguesIdGet200ResponseToJSONTyped(json, false);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function ApiEsportLeaguesIdGet200ResponseToJSONTyped(value?: ApiEsportLeaguesIdGet200Response | null, ignoreDiscriminator: boolean = false): any {
|
|
88
|
+
if (value == null) {
|
|
89
|
+
return value;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
return {
|
|
93
|
+
|
|
94
|
+
'success': value['success'],
|
|
95
|
+
'message': value['message'],
|
|
96
|
+
'responseObject': ApiEsportLeaguesGet200ResponseResponseObjectItemsInnerToJSON(value['responseObject']),
|
|
97
|
+
'statusCode': value['statusCode'],
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
|
package/models/index.ts
CHANGED
|
@@ -28,6 +28,7 @@ export * from './ApiEsportLeaguesGet200Response';
|
|
|
28
28
|
export * from './ApiEsportLeaguesGet200ResponseResponseObject';
|
|
29
29
|
export * from './ApiEsportLeaguesGet200ResponseResponseObjectItemsInner';
|
|
30
30
|
export * from './ApiEsportLeaguesGetFilterParameter';
|
|
31
|
+
export * from './ApiEsportLeaguesIdGet200Response';
|
|
31
32
|
export * from './ApiEsportMatchesGet200Response';
|
|
32
33
|
export * from './ApiEsportMatchesGet200ResponseResponseObject';
|
|
33
34
|
export * from './ApiEsportMatchesGet200ResponseResponseObjectItemsInner';
|