@drxsuperapp/sdk 1.1.190 → 1.1.192
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 +7 -0
- package/apis/EsportApi.ts +135 -0
- package/apis/index.ts +1 -0
- package/deploy.log +24 -9
- package/dist/apis/EsportApi.d.ts +40 -0
- package/dist/apis/EsportApi.js +94 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/ApiEsportVgMatchesGet200Response.d.ts +51 -0
- package/dist/models/ApiEsportVgMatchesGet200Response.js +54 -0
- package/dist/models/ApiEsportVgMatchesGet200ResponseResponseObject.d.ts +57 -0
- package/dist/models/ApiEsportVgMatchesGet200ResponseResponseObject.js +60 -0
- package/dist/models/ApiEsportVgMatchesGet200ResponseResponseObjectItemsInner.d.ts +94 -0
- package/dist/models/ApiEsportVgMatchesGet200ResponseResponseObjectItemsInner.js +81 -0
- package/dist/models/ApiEsportVgMatchesGet200ResponseResponseObjectItemsInnerResultsInner.d.ts +38 -0
- package/dist/models/ApiEsportVgMatchesGet200ResponseResponseObjectItemsInnerResultsInner.js +43 -0
- package/dist/models/ApiEsportVideogamesGet200Response.d.ts +51 -0
- package/dist/models/ApiEsportVideogamesGet200Response.js +54 -0
- package/dist/models/ApiEsportVideogamesGet200ResponseResponseObjectInner.d.ts +44 -0
- package/dist/models/ApiEsportVideogamesGet200ResponseResponseObjectInner.js +51 -0
- package/dist/models/index.d.ts +6 -0
- package/dist/models/index.js +6 -0
- package/models/ApiEsportVgMatchesGet200Response.ts +100 -0
- package/models/ApiEsportVgMatchesGet200ResponseResponseObject.ts +110 -0
- package/models/ApiEsportVgMatchesGet200ResponseResponseObjectItemsInner.ts +169 -0
- package/models/ApiEsportVgMatchesGet200ResponseResponseObjectItemsInnerResultsInner.ts +73 -0
- package/models/ApiEsportVideogamesGet200Response.ts +100 -0
- package/models/ApiEsportVideogamesGet200ResponseResponseObjectInner.ts +84 -0
- package/models/index.ts +6 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
apis/AppConfigApi.ts
|
|
2
2
|
apis/AuthenticationApi.ts
|
|
3
|
+
apis/EsportApi.ts
|
|
3
4
|
apis/HealthCheckApi.ts
|
|
4
5
|
apis/NewsApi.ts
|
|
5
6
|
apis/PadelApi.ts
|
|
@@ -17,6 +18,12 @@ models/ApiAuthLoginPost200ResponseResponseObjectUser.ts
|
|
|
17
18
|
models/ApiAuthLoginPostRequest.ts
|
|
18
19
|
models/ApiAuthRefreshPost200Response.ts
|
|
19
20
|
models/ApiAuthRefreshPost200ResponseResponseObject.ts
|
|
21
|
+
models/ApiEsportVgMatchesGet200Response.ts
|
|
22
|
+
models/ApiEsportVgMatchesGet200ResponseResponseObject.ts
|
|
23
|
+
models/ApiEsportVgMatchesGet200ResponseResponseObjectItemsInner.ts
|
|
24
|
+
models/ApiEsportVgMatchesGet200ResponseResponseObjectItemsInnerResultsInner.ts
|
|
25
|
+
models/ApiEsportVideogamesGet200Response.ts
|
|
26
|
+
models/ApiEsportVideogamesGet200ResponseResponseObjectInner.ts
|
|
20
27
|
models/ApiHealthCheckGet200Response.ts
|
|
21
28
|
models/ApiNewsCategoriesListGet200Response.ts
|
|
22
29
|
models/ApiNewsCategoriesListGet200ResponseResponseObject.ts
|
|
@@ -0,0 +1,135 @@
|
|
|
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
|
+
|
|
16
|
+
import * as runtime from '../runtime';
|
|
17
|
+
import type {
|
|
18
|
+
ApiEsportVgMatchesGet200Response,
|
|
19
|
+
ApiEsportVideogamesGet200Response,
|
|
20
|
+
} from '../models/index';
|
|
21
|
+
import {
|
|
22
|
+
ApiEsportVgMatchesGet200ResponseFromJSON,
|
|
23
|
+
ApiEsportVgMatchesGet200ResponseToJSON,
|
|
24
|
+
ApiEsportVideogamesGet200ResponseFromJSON,
|
|
25
|
+
ApiEsportVideogamesGet200ResponseToJSON,
|
|
26
|
+
} from '../models/index';
|
|
27
|
+
|
|
28
|
+
export interface ApiEsportVgMatchesGetRequest {
|
|
29
|
+
id: string;
|
|
30
|
+
page?: number | null;
|
|
31
|
+
perPage?: number | null;
|
|
32
|
+
searchTerm?: string;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
*/
|
|
38
|
+
export class EsportApi extends runtime.BaseAPI {
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Get Esport Matches Based On VG
|
|
42
|
+
*/
|
|
43
|
+
async apiEsportVgMatchesGetRaw(requestParameters: ApiEsportVgMatchesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiEsportVgMatchesGet200Response>> {
|
|
44
|
+
if (requestParameters['id'] == null) {
|
|
45
|
+
throw new runtime.RequiredError(
|
|
46
|
+
'id',
|
|
47
|
+
'Required parameter "id" was null or undefined when calling apiEsportVgMatchesGet().'
|
|
48
|
+
);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
const queryParameters: any = {};
|
|
52
|
+
|
|
53
|
+
if (requestParameters['page'] != null) {
|
|
54
|
+
queryParameters['page'] = requestParameters['page'];
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
if (requestParameters['perPage'] != null) {
|
|
58
|
+
queryParameters['perPage'] = requestParameters['perPage'];
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
if (requestParameters['searchTerm'] != null) {
|
|
62
|
+
queryParameters['searchTerm'] = requestParameters['searchTerm'];
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
66
|
+
|
|
67
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
68
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
72
|
+
const token = this.configuration.accessToken;
|
|
73
|
+
const tokenString = await token("BearerAuth", []);
|
|
74
|
+
|
|
75
|
+
if (tokenString) {
|
|
76
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
const response = await this.request({
|
|
80
|
+
path: `/api/esport/:vg/matches`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
81
|
+
method: 'GET',
|
|
82
|
+
headers: headerParameters,
|
|
83
|
+
query: queryParameters,
|
|
84
|
+
}, initOverrides);
|
|
85
|
+
|
|
86
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiEsportVgMatchesGet200ResponseFromJSON(jsonValue));
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Get Esport Matches Based On VG
|
|
91
|
+
*/
|
|
92
|
+
async apiEsportVgMatchesGet(requestParameters: ApiEsportVgMatchesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiEsportVgMatchesGet200Response> {
|
|
93
|
+
const response = await this.apiEsportVgMatchesGetRaw(requestParameters, initOverrides);
|
|
94
|
+
return await response.value();
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Get All Esport\'s Video Games
|
|
99
|
+
*/
|
|
100
|
+
async apiEsportVideogamesGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiEsportVideogamesGet200Response>> {
|
|
101
|
+
const queryParameters: any = {};
|
|
102
|
+
|
|
103
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
104
|
+
|
|
105
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
106
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
110
|
+
const token = this.configuration.accessToken;
|
|
111
|
+
const tokenString = await token("BearerAuth", []);
|
|
112
|
+
|
|
113
|
+
if (tokenString) {
|
|
114
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
const response = await this.request({
|
|
118
|
+
path: `/api/esport/videogames`,
|
|
119
|
+
method: 'GET',
|
|
120
|
+
headers: headerParameters,
|
|
121
|
+
query: queryParameters,
|
|
122
|
+
}, initOverrides);
|
|
123
|
+
|
|
124
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiEsportVideogamesGet200ResponseFromJSON(jsonValue));
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* Get All Esport\'s Video Games
|
|
129
|
+
*/
|
|
130
|
+
async apiEsportVideogamesGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiEsportVideogamesGet200Response> {
|
|
131
|
+
const response = await this.apiEsportVideogamesGetRaw(initOverrides);
|
|
132
|
+
return await response.value();
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
}
|
package/apis/index.ts
CHANGED
package/deploy.log
CHANGED
|
@@ -139,6 +139,12 @@
|
|
|
139
139
|
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_auth_login_post_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_auth_login_post_200_response=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_auth_login_post_200_response=NewModel,ModelA=NewModelA in CLI).
|
|
140
140
|
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_auth_refresh_post_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_auth_refresh_post_200_response_responseObject=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_auth_refresh_post_200_response_responseObject=NewModel,ModelA=NewModelA in CLI).
|
|
141
141
|
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_auth_refresh_post_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_auth_refresh_post_200_response=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_auth_refresh_post_200_response=NewModel,ModelA=NewModelA in CLI).
|
|
142
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_esport_videogames_get_200_response_responseObject_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_videogames_get_200_response_responseObject_inner=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_esport_videogames_get_200_response_responseObject_inner=NewModel,ModelA=NewModelA in CLI).
|
|
143
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_esport_videogames_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_videogames_get_200_response=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_esport_videogames_get_200_response=NewModel,ModelA=NewModelA in CLI).
|
|
144
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_esport__vg_matches_get_200_response_responseObject_items_inner_results_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__vg_matches_get_200_response_responseObject_items_inner_results_inner=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_esport__vg_matches_get_200_response_responseObject_items_inner_results_inner=NewModel,ModelA=NewModelA in CLI).
|
|
145
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_esport__vg_matches_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__vg_matches_get_200_response_responseObject_items_inner=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_esport__vg_matches_get_200_response_responseObject_items_inner=NewModel,ModelA=NewModelA in CLI).
|
|
146
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_esport__vg_matches_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__vg_matches_get_200_response_responseObject=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_esport__vg_matches_get_200_response_responseObject=NewModel,ModelA=NewModelA in CLI).
|
|
147
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_esport__vg_matches_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__vg_matches_get_200_response=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_esport__vg_matches_get_200_response=NewModel,ModelA=NewModelA in CLI).
|
|
142
148
|
[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/]
|
|
143
149
|
[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/]
|
|
144
150
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthLoginPost200Response.ts
|
|
@@ -147,6 +153,12 @@
|
|
|
147
153
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthLoginPostRequest.ts
|
|
148
154
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthRefreshPost200Response.ts
|
|
149
155
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthRefreshPost200ResponseResponseObject.ts
|
|
156
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportVgMatchesGet200Response.ts
|
|
157
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportVgMatchesGet200ResponseResponseObject.ts
|
|
158
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportVgMatchesGet200ResponseResponseObjectItemsInner.ts
|
|
159
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportVgMatchesGet200ResponseResponseObjectItemsInnerResultsInner.ts
|
|
160
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportVideogamesGet200Response.ts
|
|
161
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportVideogamesGet200ResponseResponseObjectInner.ts
|
|
150
162
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiHealthCheckGet200Response.ts
|
|
151
163
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiNewsCategoriesListGet200Response.ts
|
|
152
164
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiNewsCategoriesListGet200ResponseResponseObject.ts
|
|
@@ -318,11 +330,15 @@
|
|
|
318
330
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: post /api/auth/login. Renamed to auto-generated operationId: apiAuthLoginPost
|
|
319
331
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: post /api/auth/refresh. Renamed to auto-generated operationId: apiAuthRefreshPost
|
|
320
332
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/auth/validate. Renamed to auto-generated operationId: apiAuthValidateGet
|
|
333
|
+
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/esport/videogames. Renamed to auto-generated operationId: apiEsportVideogamesGet
|
|
334
|
+
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/esport/:vg/matches. Renamed to auto-generated operationId: apiEsport_VgMatchesGet
|
|
321
335
|
[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/]
|
|
322
336
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./apis/AppConfigApi.ts
|
|
323
337
|
[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/]
|
|
324
338
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./apis/AuthenticationApi.ts
|
|
325
339
|
[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/]
|
|
340
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./apis/EsportApi.ts
|
|
341
|
+
[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/]
|
|
326
342
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./apis/HealthCheckApi.ts
|
|
327
343
|
[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/]
|
|
328
344
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./apis/NewsApi.ts
|
|
@@ -354,21 +370,20 @@
|
|
|
354
370
|
# https://opencollective.com/openapi_generator/donate #
|
|
355
371
|
################################################################################
|
|
356
372
|
✅ SDK generated
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
Everything up-to-date
|
|
373
|
+
[master da7a087] VPS: Generated API SDK
|
|
374
|
+
1 file changed, 10 insertions(+), 2 deletions(-)
|
|
375
|
+
To https://gitlab.com/drx-super/drx-sdk.git
|
|
376
|
+
765e1f9..da7a087 master -> master
|
|
362
377
|
✅ Changes committed and pushed
|
|
363
|
-
v1.1.
|
|
378
|
+
v1.1.192
|
|
364
379
|
To https://gitlab.com/drx-super/drx-sdk.git
|
|
365
|
-
|
|
380
|
+
da7a087..c58de39 master -> master
|
|
366
381
|
✅ Version bumped
|
|
367
382
|
|
|
368
|
-
> @drxsuperapp/sdk@1.1.
|
|
383
|
+
> @drxsuperapp/sdk@1.1.192 prepublishOnly
|
|
369
384
|
> npm run build
|
|
370
385
|
|
|
371
386
|
|
|
372
|
-
> @drxsuperapp/sdk@1.1.
|
|
387
|
+
> @drxsuperapp/sdk@1.1.192 build
|
|
373
388
|
> tsc
|
|
374
389
|
|
|
@@ -0,0 +1,40 @@
|
|
|
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 * as runtime from '../runtime';
|
|
13
|
+
import type { ApiEsportVgMatchesGet200Response, ApiEsportVideogamesGet200Response } from '../models/index';
|
|
14
|
+
export interface ApiEsportVgMatchesGetRequest {
|
|
15
|
+
id: string;
|
|
16
|
+
page?: number | null;
|
|
17
|
+
perPage?: number | null;
|
|
18
|
+
searchTerm?: string;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
export declare class EsportApi extends runtime.BaseAPI {
|
|
24
|
+
/**
|
|
25
|
+
* Get Esport Matches Based On VG
|
|
26
|
+
*/
|
|
27
|
+
apiEsportVgMatchesGetRaw(requestParameters: ApiEsportVgMatchesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiEsportVgMatchesGet200Response>>;
|
|
28
|
+
/**
|
|
29
|
+
* Get Esport Matches Based On VG
|
|
30
|
+
*/
|
|
31
|
+
apiEsportVgMatchesGet(requestParameters: ApiEsportVgMatchesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiEsportVgMatchesGet200Response>;
|
|
32
|
+
/**
|
|
33
|
+
* Get All Esport\'s Video Games
|
|
34
|
+
*/
|
|
35
|
+
apiEsportVideogamesGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiEsportVideogamesGet200Response>>;
|
|
36
|
+
/**
|
|
37
|
+
* Get All Esport\'s Video Games
|
|
38
|
+
*/
|
|
39
|
+
apiEsportVideogamesGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiEsportVideogamesGet200Response>;
|
|
40
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
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 * as runtime from '../runtime';
|
|
15
|
+
import { ApiEsportVgMatchesGet200ResponseFromJSON, ApiEsportVideogamesGet200ResponseFromJSON, } from '../models/index';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
|
+
export class EsportApi extends runtime.BaseAPI {
|
|
20
|
+
/**
|
|
21
|
+
* Get Esport Matches Based On VG
|
|
22
|
+
*/
|
|
23
|
+
async apiEsportVgMatchesGetRaw(requestParameters, initOverrides) {
|
|
24
|
+
if (requestParameters['id'] == null) {
|
|
25
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiEsportVgMatchesGet().');
|
|
26
|
+
}
|
|
27
|
+
const queryParameters = {};
|
|
28
|
+
if (requestParameters['page'] != null) {
|
|
29
|
+
queryParameters['page'] = requestParameters['page'];
|
|
30
|
+
}
|
|
31
|
+
if (requestParameters['perPage'] != null) {
|
|
32
|
+
queryParameters['perPage'] = requestParameters['perPage'];
|
|
33
|
+
}
|
|
34
|
+
if (requestParameters['searchTerm'] != null) {
|
|
35
|
+
queryParameters['searchTerm'] = requestParameters['searchTerm'];
|
|
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/:vg/matches`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
50
|
+
method: 'GET',
|
|
51
|
+
headers: headerParameters,
|
|
52
|
+
query: queryParameters,
|
|
53
|
+
}, initOverrides);
|
|
54
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiEsportVgMatchesGet200ResponseFromJSON(jsonValue));
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Get Esport Matches Based On VG
|
|
58
|
+
*/
|
|
59
|
+
async apiEsportVgMatchesGet(requestParameters, initOverrides) {
|
|
60
|
+
const response = await this.apiEsportVgMatchesGetRaw(requestParameters, initOverrides);
|
|
61
|
+
return await response.value();
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Get All Esport\'s Video Games
|
|
65
|
+
*/
|
|
66
|
+
async apiEsportVideogamesGetRaw(initOverrides) {
|
|
67
|
+
const queryParameters = {};
|
|
68
|
+
const headerParameters = {};
|
|
69
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
70
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
71
|
+
}
|
|
72
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
73
|
+
const token = this.configuration.accessToken;
|
|
74
|
+
const tokenString = await token("BearerAuth", []);
|
|
75
|
+
if (tokenString) {
|
|
76
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
const response = await this.request({
|
|
80
|
+
path: `/api/esport/videogames`,
|
|
81
|
+
method: 'GET',
|
|
82
|
+
headers: headerParameters,
|
|
83
|
+
query: queryParameters,
|
|
84
|
+
}, initOverrides);
|
|
85
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiEsportVideogamesGet200ResponseFromJSON(jsonValue));
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Get All Esport\'s Video Games
|
|
89
|
+
*/
|
|
90
|
+
async apiEsportVideogamesGet(initOverrides) {
|
|
91
|
+
const response = await this.apiEsportVideogamesGetRaw(initOverrides);
|
|
92
|
+
return await response.value();
|
|
93
|
+
}
|
|
94
|
+
}
|
package/dist/apis/index.d.ts
CHANGED
package/dist/apis/index.js
CHANGED
|
@@ -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 { ApiEsportVgMatchesGet200ResponseResponseObject } from './ApiEsportVgMatchesGet200ResponseResponseObject';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ApiEsportVgMatchesGet200Response
|
|
17
|
+
*/
|
|
18
|
+
export interface ApiEsportVgMatchesGet200Response {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {boolean}
|
|
22
|
+
* @memberof ApiEsportVgMatchesGet200Response
|
|
23
|
+
*/
|
|
24
|
+
success: boolean;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof ApiEsportVgMatchesGet200Response
|
|
29
|
+
*/
|
|
30
|
+
message: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {ApiEsportVgMatchesGet200ResponseResponseObject}
|
|
34
|
+
* @memberof ApiEsportVgMatchesGet200Response
|
|
35
|
+
*/
|
|
36
|
+
responseObject?: ApiEsportVgMatchesGet200ResponseResponseObject;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof ApiEsportVgMatchesGet200Response
|
|
41
|
+
*/
|
|
42
|
+
statusCode: number;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the ApiEsportVgMatchesGet200Response interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfApiEsportVgMatchesGet200Response(value: object): value is ApiEsportVgMatchesGet200Response;
|
|
48
|
+
export declare function ApiEsportVgMatchesGet200ResponseFromJSON(json: any): ApiEsportVgMatchesGet200Response;
|
|
49
|
+
export declare function ApiEsportVgMatchesGet200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiEsportVgMatchesGet200Response;
|
|
50
|
+
export declare function ApiEsportVgMatchesGet200ResponseToJSON(json: any): ApiEsportVgMatchesGet200Response;
|
|
51
|
+
export declare function ApiEsportVgMatchesGet200ResponseToJSONTyped(value?: ApiEsportVgMatchesGet200Response | 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 { ApiEsportVgMatchesGet200ResponseResponseObjectFromJSON, ApiEsportVgMatchesGet200ResponseResponseObjectToJSON, } from './ApiEsportVgMatchesGet200ResponseResponseObject';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the ApiEsportVgMatchesGet200Response interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfApiEsportVgMatchesGet200Response(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 ApiEsportVgMatchesGet200ResponseFromJSON(json) {
|
|
28
|
+
return ApiEsportVgMatchesGet200ResponseFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
export function ApiEsportVgMatchesGet200ResponseFromJSONTyped(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 : ApiEsportVgMatchesGet200ResponseResponseObjectFromJSON(json['responseObject']),
|
|
38
|
+
'statusCode': json['statusCode'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
export function ApiEsportVgMatchesGet200ResponseToJSON(json) {
|
|
42
|
+
return ApiEsportVgMatchesGet200ResponseToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
export function ApiEsportVgMatchesGet200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'success': value['success'],
|
|
50
|
+
'message': value['message'],
|
|
51
|
+
'responseObject': ApiEsportVgMatchesGet200ResponseResponseObjectToJSON(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 { ApiEsportVgMatchesGet200ResponseResponseObjectItemsInner } from './ApiEsportVgMatchesGet200ResponseResponseObjectItemsInner';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ApiEsportVgMatchesGet200ResponseResponseObject
|
|
17
|
+
*/
|
|
18
|
+
export interface ApiEsportVgMatchesGet200ResponseResponseObject {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<ApiEsportVgMatchesGet200ResponseResponseObjectItemsInner>}
|
|
22
|
+
* @memberof ApiEsportVgMatchesGet200ResponseResponseObject
|
|
23
|
+
*/
|
|
24
|
+
items: Array<ApiEsportVgMatchesGet200ResponseResponseObjectItemsInner>;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof ApiEsportVgMatchesGet200ResponseResponseObject
|
|
29
|
+
*/
|
|
30
|
+
currentPage: number;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof ApiEsportVgMatchesGet200ResponseResponseObject
|
|
35
|
+
*/
|
|
36
|
+
totalItems: number;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof ApiEsportVgMatchesGet200ResponseResponseObject
|
|
41
|
+
*/
|
|
42
|
+
totalPages: number;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {number}
|
|
46
|
+
* @memberof ApiEsportVgMatchesGet200ResponseResponseObject
|
|
47
|
+
*/
|
|
48
|
+
pageSize: number;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the ApiEsportVgMatchesGet200ResponseResponseObject interface.
|
|
52
|
+
*/
|
|
53
|
+
export declare function instanceOfApiEsportVgMatchesGet200ResponseResponseObject(value: object): value is ApiEsportVgMatchesGet200ResponseResponseObject;
|
|
54
|
+
export declare function ApiEsportVgMatchesGet200ResponseResponseObjectFromJSON(json: any): ApiEsportVgMatchesGet200ResponseResponseObject;
|
|
55
|
+
export declare function ApiEsportVgMatchesGet200ResponseResponseObjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiEsportVgMatchesGet200ResponseResponseObject;
|
|
56
|
+
export declare function ApiEsportVgMatchesGet200ResponseResponseObjectToJSON(json: any): ApiEsportVgMatchesGet200ResponseResponseObject;
|
|
57
|
+
export declare function ApiEsportVgMatchesGet200ResponseResponseObjectToJSONTyped(value?: ApiEsportVgMatchesGet200ResponseResponseObject | 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 { ApiEsportVgMatchesGet200ResponseResponseObjectItemsInnerFromJSON, ApiEsportVgMatchesGet200ResponseResponseObjectItemsInnerToJSON, } from './ApiEsportVgMatchesGet200ResponseResponseObjectItemsInner';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the ApiEsportVgMatchesGet200ResponseResponseObject interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfApiEsportVgMatchesGet200ResponseResponseObject(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 ApiEsportVgMatchesGet200ResponseResponseObjectFromJSON(json) {
|
|
32
|
+
return ApiEsportVgMatchesGet200ResponseResponseObjectFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
export function ApiEsportVgMatchesGet200ResponseResponseObjectFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'items': (json['items'].map(ApiEsportVgMatchesGet200ResponseResponseObjectItemsInnerFromJSON)),
|
|
40
|
+
'currentPage': json['currentPage'],
|
|
41
|
+
'totalItems': json['totalItems'],
|
|
42
|
+
'totalPages': json['totalPages'],
|
|
43
|
+
'pageSize': json['pageSize'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
export function ApiEsportVgMatchesGet200ResponseResponseObjectToJSON(json) {
|
|
47
|
+
return ApiEsportVgMatchesGet200ResponseResponseObjectToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
export function ApiEsportVgMatchesGet200ResponseResponseObjectToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'items': (value['items'].map(ApiEsportVgMatchesGet200ResponseResponseObjectItemsInnerToJSON)),
|
|
55
|
+
'currentPage': value['currentPage'],
|
|
56
|
+
'totalItems': value['totalItems'],
|
|
57
|
+
'totalPages': value['totalPages'],
|
|
58
|
+
'pageSize': value['pageSize'],
|
|
59
|
+
};
|
|
60
|
+
}
|