@drxsuperapp/sdk 1.1.192 → 1.1.194
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 -4
- package/apis/EsportApi.ts +62 -10
- package/deploy.log +20 -16
- package/dist/apis/EsportApi.d.ts +15 -4
- package/dist/apis/EsportApi.js +41 -7
- package/dist/models/ApiEsportIdMatchesGet200Response.d.ts +51 -0
- package/dist/models/{ApiEsportVgMatchesGet200Response.js → ApiEsportIdMatchesGet200Response.js} +11 -11
- package/dist/models/ApiEsportIdMatchesGet200ResponseResponseObject.d.ts +57 -0
- package/dist/models/{ApiEsportVgMatchesGet200ResponseResponseObject.js → ApiEsportIdMatchesGet200ResponseResponseObject.js} +11 -11
- package/dist/models/{ApiEsportVgMatchesGet200ResponseResponseObjectItemsInner.d.ts → ApiEsportIdMatchesGet200ResponseResponseObjectItemsInner.d.ts} +22 -22
- package/dist/models/{ApiEsportVgMatchesGet200ResponseResponseObjectItemsInner.js → ApiEsportIdMatchesGet200ResponseResponseObjectItemsInner.js} +11 -11
- package/dist/models/{ApiEsportVgMatchesGet200ResponseResponseObjectItemsInnerResultsInner.d.ts → ApiEsportIdMatchesGet200ResponseResponseObjectItemsInnerResultsInner.d.ts} +10 -10
- package/dist/models/{ApiEsportVgMatchesGet200ResponseResponseObjectItemsInnerResultsInner.js → ApiEsportIdMatchesGet200ResponseResponseObjectItemsInnerResultsInner.js} +8 -8
- package/dist/models/ApiEsportMatchIdGet200Response.d.ts +51 -0
- package/dist/models/ApiEsportMatchIdGet200Response.js +54 -0
- package/dist/models/index.d.ts +5 -4
- package/dist/models/index.js +5 -4
- package/models/ApiEsportIdMatchesGet200Response.ts +100 -0
- package/models/{ApiEsportVgMatchesGet200ResponseResponseObject.ts → ApiEsportIdMatchesGet200ResponseResponseObject.ts} +25 -25
- package/models/{ApiEsportVgMatchesGet200ResponseResponseObjectItemsInner.ts → ApiEsportIdMatchesGet200ResponseResponseObjectItemsInner.ts} +32 -32
- package/models/{ApiEsportVgMatchesGet200ResponseResponseObjectItemsInnerResultsInner.ts → ApiEsportIdMatchesGet200ResponseResponseObjectItemsInnerResultsInner.ts} +12 -12
- package/models/ApiEsportMatchIdGet200Response.ts +100 -0
- package/models/index.ts +5 -4
- package/package.json +1 -1
- package/dist/models/ApiEsportVgMatchesGet200Response.d.ts +0 -51
- package/dist/models/ApiEsportVgMatchesGet200ResponseResponseObject.d.ts +0 -57
- package/models/ApiEsportVgMatchesGet200Response.ts +0 -100
package/.openapi-generator/FILES
CHANGED
|
@@ -18,10 +18,11 @@ models/ApiAuthLoginPost200ResponseResponseObjectUser.ts
|
|
|
18
18
|
models/ApiAuthLoginPostRequest.ts
|
|
19
19
|
models/ApiAuthRefreshPost200Response.ts
|
|
20
20
|
models/ApiAuthRefreshPost200ResponseResponseObject.ts
|
|
21
|
-
models/
|
|
22
|
-
models/
|
|
23
|
-
models/
|
|
24
|
-
models/
|
|
21
|
+
models/ApiEsportIdMatchesGet200Response.ts
|
|
22
|
+
models/ApiEsportIdMatchesGet200ResponseResponseObject.ts
|
|
23
|
+
models/ApiEsportIdMatchesGet200ResponseResponseObjectItemsInner.ts
|
|
24
|
+
models/ApiEsportIdMatchesGet200ResponseResponseObjectItemsInnerResultsInner.ts
|
|
25
|
+
models/ApiEsportMatchIdGet200Response.ts
|
|
25
26
|
models/ApiEsportVideogamesGet200Response.ts
|
|
26
27
|
models/ApiEsportVideogamesGet200ResponseResponseObjectInner.ts
|
|
27
28
|
models/ApiHealthCheckGet200Response.ts
|
package/apis/EsportApi.ts
CHANGED
|
@@ -15,23 +15,30 @@
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
|
-
|
|
18
|
+
ApiEsportIdMatchesGet200Response,
|
|
19
|
+
ApiEsportMatchIdGet200Response,
|
|
19
20
|
ApiEsportVideogamesGet200Response,
|
|
20
21
|
} from '../models/index';
|
|
21
22
|
import {
|
|
22
|
-
|
|
23
|
-
|
|
23
|
+
ApiEsportIdMatchesGet200ResponseFromJSON,
|
|
24
|
+
ApiEsportIdMatchesGet200ResponseToJSON,
|
|
25
|
+
ApiEsportMatchIdGet200ResponseFromJSON,
|
|
26
|
+
ApiEsportMatchIdGet200ResponseToJSON,
|
|
24
27
|
ApiEsportVideogamesGet200ResponseFromJSON,
|
|
25
28
|
ApiEsportVideogamesGet200ResponseToJSON,
|
|
26
29
|
} from '../models/index';
|
|
27
30
|
|
|
28
|
-
export interface
|
|
31
|
+
export interface ApiEsportIdMatchesGetRequest {
|
|
29
32
|
id: string;
|
|
30
33
|
page?: number | null;
|
|
31
34
|
perPage?: number | null;
|
|
32
35
|
searchTerm?: string;
|
|
33
36
|
}
|
|
34
37
|
|
|
38
|
+
export interface ApiEsportMatchIdGetRequest {
|
|
39
|
+
id: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
35
42
|
/**
|
|
36
43
|
*
|
|
37
44
|
*/
|
|
@@ -40,11 +47,11 @@ export class EsportApi extends runtime.BaseAPI {
|
|
|
40
47
|
/**
|
|
41
48
|
* Get Esport Matches Based On VG
|
|
42
49
|
*/
|
|
43
|
-
async
|
|
50
|
+
async apiEsportIdMatchesGetRaw(requestParameters: ApiEsportIdMatchesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiEsportIdMatchesGet200Response>> {
|
|
44
51
|
if (requestParameters['id'] == null) {
|
|
45
52
|
throw new runtime.RequiredError(
|
|
46
53
|
'id',
|
|
47
|
-
'Required parameter "id" was null or undefined when calling
|
|
54
|
+
'Required parameter "id" was null or undefined when calling apiEsportIdMatchesGet().'
|
|
48
55
|
);
|
|
49
56
|
}
|
|
50
57
|
|
|
@@ -77,20 +84,65 @@ export class EsportApi extends runtime.BaseAPI {
|
|
|
77
84
|
}
|
|
78
85
|
}
|
|
79
86
|
const response = await this.request({
|
|
80
|
-
path: `/api/esport
|
|
87
|
+
path: `/api/esport/{id}/matches`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
81
88
|
method: 'GET',
|
|
82
89
|
headers: headerParameters,
|
|
83
90
|
query: queryParameters,
|
|
84
91
|
}, initOverrides);
|
|
85
92
|
|
|
86
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
93
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiEsportIdMatchesGet200ResponseFromJSON(jsonValue));
|
|
87
94
|
}
|
|
88
95
|
|
|
89
96
|
/**
|
|
90
97
|
* Get Esport Matches Based On VG
|
|
91
98
|
*/
|
|
92
|
-
async
|
|
93
|
-
const response = await this.
|
|
99
|
+
async apiEsportIdMatchesGet(requestParameters: ApiEsportIdMatchesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiEsportIdMatchesGet200Response> {
|
|
100
|
+
const response = await this.apiEsportIdMatchesGetRaw(requestParameters, initOverrides);
|
|
101
|
+
return await response.value();
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* Get Esport Match Details
|
|
106
|
+
*/
|
|
107
|
+
async apiEsportMatchIdGetRaw(requestParameters: ApiEsportMatchIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiEsportMatchIdGet200Response>> {
|
|
108
|
+
if (requestParameters['id'] == null) {
|
|
109
|
+
throw new runtime.RequiredError(
|
|
110
|
+
'id',
|
|
111
|
+
'Required parameter "id" was null or undefined when calling apiEsportMatchIdGet().'
|
|
112
|
+
);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
const queryParameters: any = {};
|
|
116
|
+
|
|
117
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
118
|
+
|
|
119
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
120
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
124
|
+
const token = this.configuration.accessToken;
|
|
125
|
+
const tokenString = await token("BearerAuth", []);
|
|
126
|
+
|
|
127
|
+
if (tokenString) {
|
|
128
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
const response = await this.request({
|
|
132
|
+
path: `/api/esport/match/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
133
|
+
method: 'GET',
|
|
134
|
+
headers: headerParameters,
|
|
135
|
+
query: queryParameters,
|
|
136
|
+
}, initOverrides);
|
|
137
|
+
|
|
138
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiEsportMatchIdGet200ResponseFromJSON(jsonValue));
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* Get Esport Match Details
|
|
143
|
+
*/
|
|
144
|
+
async apiEsportMatchIdGet(requestParameters: ApiEsportMatchIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiEsportMatchIdGet200Response> {
|
|
145
|
+
const response = await this.apiEsportMatchIdGetRaw(requestParameters, initOverrides);
|
|
94
146
|
return await response.value();
|
|
95
147
|
}
|
|
96
148
|
|
package/deploy.log
CHANGED
|
@@ -141,10 +141,11 @@
|
|
|
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
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
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
|
|
145
|
-
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as
|
|
146
|
-
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as
|
|
147
|
-
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as
|
|
144
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_esport__id__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__id__matches_get_200_response_responseObject_items_inner_results_inner=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_esport__id__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__id__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__id__matches_get_200_response_responseObject_items_inner=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_esport__id__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__id__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__id__matches_get_200_response_responseObject=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_esport__id__matches_get_200_response_responseObject=NewModel,ModelA=NewModelA in CLI).
|
|
147
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_esport__id__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__id__matches_get_200_response=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_esport__id__matches_get_200_response=NewModel,ModelA=NewModelA in CLI).
|
|
148
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_esport_match__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_match__id__get_200_response=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_esport_match__id__get_200_response=NewModel,ModelA=NewModelA in CLI).
|
|
148
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/]
|
|
149
150
|
[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/]
|
|
150
151
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthLoginPost200Response.ts
|
|
@@ -153,10 +154,11 @@
|
|
|
153
154
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthLoginPostRequest.ts
|
|
154
155
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthRefreshPost200Response.ts
|
|
155
156
|
[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/
|
|
157
|
-
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/
|
|
158
|
-
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/
|
|
159
|
-
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/
|
|
157
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportIdMatchesGet200Response.ts
|
|
158
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportIdMatchesGet200ResponseResponseObject.ts
|
|
159
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportIdMatchesGet200ResponseResponseObjectItemsInner.ts
|
|
160
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportIdMatchesGet200ResponseResponseObjectItemsInnerResultsInner.ts
|
|
161
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportMatchIdGet200Response.ts
|
|
160
162
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportVideogamesGet200Response.ts
|
|
161
163
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportVideogamesGet200ResponseResponseObjectInner.ts
|
|
162
164
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiHealthCheckGet200Response.ts
|
|
@@ -331,7 +333,8 @@
|
|
|
331
333
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: post /api/auth/refresh. Renamed to auto-generated operationId: apiAuthRefreshPost
|
|
332
334
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/auth/validate. Renamed to auto-generated operationId: apiAuthValidateGet
|
|
333
335
|
[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
|
|
336
|
+
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/esport/{id}/matches. Renamed to auto-generated operationId: apiEsportIdMatchesGet
|
|
337
|
+
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/esport/match/{id}. Renamed to auto-generated operationId: apiEsportMatchIdGet
|
|
335
338
|
[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/]
|
|
336
339
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./apis/AppConfigApi.ts
|
|
337
340
|
[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/]
|
|
@@ -370,20 +373,21 @@
|
|
|
370
373
|
# https://opencollective.com/openapi_generator/donate #
|
|
371
374
|
################################################################################
|
|
372
375
|
✅ SDK generated
|
|
373
|
-
[master
|
|
374
|
-
|
|
376
|
+
[master 28d3a0b] VPS: Generated API SDK
|
|
377
|
+
4 files changed, 154 insertions(+)
|
|
378
|
+
create mode 100644 models/ApiEsportMatchIdGet200Response.ts
|
|
375
379
|
To https://gitlab.com/drx-super/drx-sdk.git
|
|
376
|
-
|
|
380
|
+
5c03d75..28d3a0b master -> master
|
|
377
381
|
✅ Changes committed and pushed
|
|
378
|
-
v1.1.
|
|
382
|
+
v1.1.194
|
|
379
383
|
To https://gitlab.com/drx-super/drx-sdk.git
|
|
380
|
-
|
|
384
|
+
28d3a0b..5edcad6 master -> master
|
|
381
385
|
✅ Version bumped
|
|
382
386
|
|
|
383
|
-
> @drxsuperapp/sdk@1.1.
|
|
387
|
+
> @drxsuperapp/sdk@1.1.194 prepublishOnly
|
|
384
388
|
> npm run build
|
|
385
389
|
|
|
386
390
|
|
|
387
|
-
> @drxsuperapp/sdk@1.1.
|
|
391
|
+
> @drxsuperapp/sdk@1.1.194 build
|
|
388
392
|
> tsc
|
|
389
393
|
|
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 {
|
|
14
|
-
export interface
|
|
13
|
+
import type { ApiEsportIdMatchesGet200Response, ApiEsportMatchIdGet200Response, ApiEsportVideogamesGet200Response } from '../models/index';
|
|
14
|
+
export interface ApiEsportIdMatchesGetRequest {
|
|
15
15
|
id: string;
|
|
16
16
|
page?: number | null;
|
|
17
17
|
perPage?: number | null;
|
|
18
18
|
searchTerm?: string;
|
|
19
19
|
}
|
|
20
|
+
export interface ApiEsportMatchIdGetRequest {
|
|
21
|
+
id: string;
|
|
22
|
+
}
|
|
20
23
|
/**
|
|
21
24
|
*
|
|
22
25
|
*/
|
|
@@ -24,11 +27,19 @@ export declare class EsportApi extends runtime.BaseAPI {
|
|
|
24
27
|
/**
|
|
25
28
|
* Get Esport Matches Based On VG
|
|
26
29
|
*/
|
|
27
|
-
|
|
30
|
+
apiEsportIdMatchesGetRaw(requestParameters: ApiEsportIdMatchesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiEsportIdMatchesGet200Response>>;
|
|
28
31
|
/**
|
|
29
32
|
* Get Esport Matches Based On VG
|
|
30
33
|
*/
|
|
31
|
-
|
|
34
|
+
apiEsportIdMatchesGet(requestParameters: ApiEsportIdMatchesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiEsportIdMatchesGet200Response>;
|
|
35
|
+
/**
|
|
36
|
+
* Get Esport Match Details
|
|
37
|
+
*/
|
|
38
|
+
apiEsportMatchIdGetRaw(requestParameters: ApiEsportMatchIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiEsportMatchIdGet200Response>>;
|
|
39
|
+
/**
|
|
40
|
+
* Get Esport Match Details
|
|
41
|
+
*/
|
|
42
|
+
apiEsportMatchIdGet(requestParameters: ApiEsportMatchIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiEsportMatchIdGet200Response>;
|
|
32
43
|
/**
|
|
33
44
|
* Get All Esport\'s Video Games
|
|
34
45
|
*/
|
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 {
|
|
15
|
+
import { ApiEsportIdMatchesGet200ResponseFromJSON, ApiEsportMatchIdGet200ResponseFromJSON, ApiEsportVideogamesGet200ResponseFromJSON, } from '../models/index';
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
*/
|
|
@@ -20,9 +20,9 @@ export class EsportApi extends runtime.BaseAPI {
|
|
|
20
20
|
/**
|
|
21
21
|
* Get Esport Matches Based On VG
|
|
22
22
|
*/
|
|
23
|
-
async
|
|
23
|
+
async apiEsportIdMatchesGetRaw(requestParameters, initOverrides) {
|
|
24
24
|
if (requestParameters['id'] == null) {
|
|
25
|
-
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling
|
|
25
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiEsportIdMatchesGet().');
|
|
26
26
|
}
|
|
27
27
|
const queryParameters = {};
|
|
28
28
|
if (requestParameters['page'] != null) {
|
|
@@ -46,18 +46,52 @@ export class EsportApi extends runtime.BaseAPI {
|
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
const response = await this.request({
|
|
49
|
-
path: `/api/esport
|
|
49
|
+
path: `/api/esport/{id}/matches`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
50
50
|
method: 'GET',
|
|
51
51
|
headers: headerParameters,
|
|
52
52
|
query: queryParameters,
|
|
53
53
|
}, initOverrides);
|
|
54
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
54
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiEsportIdMatchesGet200ResponseFromJSON(jsonValue));
|
|
55
55
|
}
|
|
56
56
|
/**
|
|
57
57
|
* Get Esport Matches Based On VG
|
|
58
58
|
*/
|
|
59
|
-
async
|
|
60
|
-
const response = await this.
|
|
59
|
+
async apiEsportIdMatchesGet(requestParameters, initOverrides) {
|
|
60
|
+
const response = await this.apiEsportIdMatchesGetRaw(requestParameters, initOverrides);
|
|
61
|
+
return await response.value();
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Get Esport Match Details
|
|
65
|
+
*/
|
|
66
|
+
async apiEsportMatchIdGetRaw(requestParameters, initOverrides) {
|
|
67
|
+
if (requestParameters['id'] == null) {
|
|
68
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiEsportMatchIdGet().');
|
|
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/match/{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) => ApiEsportMatchIdGet200ResponseFromJSON(jsonValue));
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Get Esport Match Details
|
|
92
|
+
*/
|
|
93
|
+
async apiEsportMatchIdGet(requestParameters, initOverrides) {
|
|
94
|
+
const response = await this.apiEsportMatchIdGetRaw(requestParameters, initOverrides);
|
|
61
95
|
return await response.value();
|
|
62
96
|
}
|
|
63
97
|
/**
|
|
@@ -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 { ApiEsportIdMatchesGet200ResponseResponseObject } from './ApiEsportIdMatchesGet200ResponseResponseObject';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ApiEsportIdMatchesGet200Response
|
|
17
|
+
*/
|
|
18
|
+
export interface ApiEsportIdMatchesGet200Response {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {boolean}
|
|
22
|
+
* @memberof ApiEsportIdMatchesGet200Response
|
|
23
|
+
*/
|
|
24
|
+
success: boolean;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof ApiEsportIdMatchesGet200Response
|
|
29
|
+
*/
|
|
30
|
+
message: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {ApiEsportIdMatchesGet200ResponseResponseObject}
|
|
34
|
+
* @memberof ApiEsportIdMatchesGet200Response
|
|
35
|
+
*/
|
|
36
|
+
responseObject?: ApiEsportIdMatchesGet200ResponseResponseObject;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof ApiEsportIdMatchesGet200Response
|
|
41
|
+
*/
|
|
42
|
+
statusCode: number;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the ApiEsportIdMatchesGet200Response interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfApiEsportIdMatchesGet200Response(value: object): value is ApiEsportIdMatchesGet200Response;
|
|
48
|
+
export declare function ApiEsportIdMatchesGet200ResponseFromJSON(json: any): ApiEsportIdMatchesGet200Response;
|
|
49
|
+
export declare function ApiEsportIdMatchesGet200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiEsportIdMatchesGet200Response;
|
|
50
|
+
export declare function ApiEsportIdMatchesGet200ResponseToJSON(json: any): ApiEsportIdMatchesGet200Response;
|
|
51
|
+
export declare function ApiEsportIdMatchesGet200ResponseToJSONTyped(value?: ApiEsportIdMatchesGet200Response | null, ignoreDiscriminator?: boolean): any;
|
package/dist/models/{ApiEsportVgMatchesGet200Response.js → ApiEsportIdMatchesGet200Response.js}
RENAMED
|
@@ -11,11 +11,11 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
-
import {
|
|
14
|
+
import { ApiEsportIdMatchesGet200ResponseResponseObjectFromJSON, ApiEsportIdMatchesGet200ResponseResponseObjectToJSON, } from './ApiEsportIdMatchesGet200ResponseResponseObject';
|
|
15
15
|
/**
|
|
16
|
-
* Check if a given object implements the
|
|
16
|
+
* Check if a given object implements the ApiEsportIdMatchesGet200Response interface.
|
|
17
17
|
*/
|
|
18
|
-
export function
|
|
18
|
+
export function instanceOfApiEsportIdMatchesGet200Response(value) {
|
|
19
19
|
if (!('success' in value) || value['success'] === undefined)
|
|
20
20
|
return false;
|
|
21
21
|
if (!('message' in value) || value['message'] === undefined)
|
|
@@ -24,31 +24,31 @@ export function instanceOfApiEsportVgMatchesGet200Response(value) {
|
|
|
24
24
|
return false;
|
|
25
25
|
return true;
|
|
26
26
|
}
|
|
27
|
-
export function
|
|
28
|
-
return
|
|
27
|
+
export function ApiEsportIdMatchesGet200ResponseFromJSON(json) {
|
|
28
|
+
return ApiEsportIdMatchesGet200ResponseFromJSONTyped(json, false);
|
|
29
29
|
}
|
|
30
|
-
export function
|
|
30
|
+
export function ApiEsportIdMatchesGet200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
31
|
if (json == null) {
|
|
32
32
|
return json;
|
|
33
33
|
}
|
|
34
34
|
return {
|
|
35
35
|
'success': json['success'],
|
|
36
36
|
'message': json['message'],
|
|
37
|
-
'responseObject': json['responseObject'] == null ? undefined :
|
|
37
|
+
'responseObject': json['responseObject'] == null ? undefined : ApiEsportIdMatchesGet200ResponseResponseObjectFromJSON(json['responseObject']),
|
|
38
38
|
'statusCode': json['statusCode'],
|
|
39
39
|
};
|
|
40
40
|
}
|
|
41
|
-
export function
|
|
42
|
-
return
|
|
41
|
+
export function ApiEsportIdMatchesGet200ResponseToJSON(json) {
|
|
42
|
+
return ApiEsportIdMatchesGet200ResponseToJSONTyped(json, false);
|
|
43
43
|
}
|
|
44
|
-
export function
|
|
44
|
+
export function ApiEsportIdMatchesGet200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
45
|
if (value == null) {
|
|
46
46
|
return value;
|
|
47
47
|
}
|
|
48
48
|
return {
|
|
49
49
|
'success': value['success'],
|
|
50
50
|
'message': value['message'],
|
|
51
|
-
'responseObject':
|
|
51
|
+
'responseObject': ApiEsportIdMatchesGet200ResponseResponseObjectToJSON(value['responseObject']),
|
|
52
52
|
'statusCode': value['statusCode'],
|
|
53
53
|
};
|
|
54
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 { ApiEsportIdMatchesGet200ResponseResponseObjectItemsInner } from './ApiEsportIdMatchesGet200ResponseResponseObjectItemsInner';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ApiEsportIdMatchesGet200ResponseResponseObject
|
|
17
|
+
*/
|
|
18
|
+
export interface ApiEsportIdMatchesGet200ResponseResponseObject {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<ApiEsportIdMatchesGet200ResponseResponseObjectItemsInner>}
|
|
22
|
+
* @memberof ApiEsportIdMatchesGet200ResponseResponseObject
|
|
23
|
+
*/
|
|
24
|
+
items: Array<ApiEsportIdMatchesGet200ResponseResponseObjectItemsInner>;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof ApiEsportIdMatchesGet200ResponseResponseObject
|
|
29
|
+
*/
|
|
30
|
+
currentPage: number;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof ApiEsportIdMatchesGet200ResponseResponseObject
|
|
35
|
+
*/
|
|
36
|
+
totalItems: number;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof ApiEsportIdMatchesGet200ResponseResponseObject
|
|
41
|
+
*/
|
|
42
|
+
totalPages: number;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {number}
|
|
46
|
+
* @memberof ApiEsportIdMatchesGet200ResponseResponseObject
|
|
47
|
+
*/
|
|
48
|
+
pageSize: number;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the ApiEsportIdMatchesGet200ResponseResponseObject interface.
|
|
52
|
+
*/
|
|
53
|
+
export declare function instanceOfApiEsportIdMatchesGet200ResponseResponseObject(value: object): value is ApiEsportIdMatchesGet200ResponseResponseObject;
|
|
54
|
+
export declare function ApiEsportIdMatchesGet200ResponseResponseObjectFromJSON(json: any): ApiEsportIdMatchesGet200ResponseResponseObject;
|
|
55
|
+
export declare function ApiEsportIdMatchesGet200ResponseResponseObjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiEsportIdMatchesGet200ResponseResponseObject;
|
|
56
|
+
export declare function ApiEsportIdMatchesGet200ResponseResponseObjectToJSON(json: any): ApiEsportIdMatchesGet200ResponseResponseObject;
|
|
57
|
+
export declare function ApiEsportIdMatchesGet200ResponseResponseObjectToJSONTyped(value?: ApiEsportIdMatchesGet200ResponseResponseObject | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -11,11 +11,11 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
-
import {
|
|
14
|
+
import { ApiEsportIdMatchesGet200ResponseResponseObjectItemsInnerFromJSON, ApiEsportIdMatchesGet200ResponseResponseObjectItemsInnerToJSON, } from './ApiEsportIdMatchesGet200ResponseResponseObjectItemsInner';
|
|
15
15
|
/**
|
|
16
|
-
* Check if a given object implements the
|
|
16
|
+
* Check if a given object implements the ApiEsportIdMatchesGet200ResponseResponseObject interface.
|
|
17
17
|
*/
|
|
18
|
-
export function
|
|
18
|
+
export function instanceOfApiEsportIdMatchesGet200ResponseResponseObject(value) {
|
|
19
19
|
if (!('items' in value) || value['items'] === undefined)
|
|
20
20
|
return false;
|
|
21
21
|
if (!('currentPage' in value) || value['currentPage'] === undefined)
|
|
@@ -28,30 +28,30 @@ export function instanceOfApiEsportVgMatchesGet200ResponseResponseObject(value)
|
|
|
28
28
|
return false;
|
|
29
29
|
return true;
|
|
30
30
|
}
|
|
31
|
-
export function
|
|
32
|
-
return
|
|
31
|
+
export function ApiEsportIdMatchesGet200ResponseResponseObjectFromJSON(json) {
|
|
32
|
+
return ApiEsportIdMatchesGet200ResponseResponseObjectFromJSONTyped(json, false);
|
|
33
33
|
}
|
|
34
|
-
export function
|
|
34
|
+
export function ApiEsportIdMatchesGet200ResponseResponseObjectFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
35
|
if (json == null) {
|
|
36
36
|
return json;
|
|
37
37
|
}
|
|
38
38
|
return {
|
|
39
|
-
'items': (json['items'].map(
|
|
39
|
+
'items': (json['items'].map(ApiEsportIdMatchesGet200ResponseResponseObjectItemsInnerFromJSON)),
|
|
40
40
|
'currentPage': json['currentPage'],
|
|
41
41
|
'totalItems': json['totalItems'],
|
|
42
42
|
'totalPages': json['totalPages'],
|
|
43
43
|
'pageSize': json['pageSize'],
|
|
44
44
|
};
|
|
45
45
|
}
|
|
46
|
-
export function
|
|
47
|
-
return
|
|
46
|
+
export function ApiEsportIdMatchesGet200ResponseResponseObjectToJSON(json) {
|
|
47
|
+
return ApiEsportIdMatchesGet200ResponseResponseObjectToJSONTyped(json, false);
|
|
48
48
|
}
|
|
49
|
-
export function
|
|
49
|
+
export function ApiEsportIdMatchesGet200ResponseResponseObjectToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
50
|
if (value == null) {
|
|
51
51
|
return value;
|
|
52
52
|
}
|
|
53
53
|
return {
|
|
54
|
-
'items': (value['items'].map(
|
|
54
|
+
'items': (value['items'].map(ApiEsportIdMatchesGet200ResponseResponseObjectItemsInnerToJSON)),
|
|
55
55
|
'currentPage': value['currentPage'],
|
|
56
56
|
'totalItems': value['totalItems'],
|
|
57
57
|
'totalPages': value['totalPages'],
|