@drxsuperapp/sdk 1.1.223 → 1.1.225
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +5 -0
- package/apis/EsportApi.ts +119 -0
- package/deploy.log +21 -9
- package/dist/apis/EsportApi.d.ts +26 -1
- package/dist/apis/EsportApi.js +78 -1
- package/dist/models/ApiEsportTeamsGet200Response.d.ts +51 -0
- package/dist/models/ApiEsportTeamsGet200Response.js +54 -0
- package/dist/models/ApiEsportTeamsGet200ResponseResponseObject.d.ts +57 -0
- package/dist/models/ApiEsportTeamsGet200ResponseResponseObject.js +60 -0
- package/dist/models/ApiEsportTeamsGet200ResponseResponseObjectItemsInner.d.ts +82 -0
- package/dist/models/ApiEsportTeamsGet200ResponseResponseObjectItemsInner.js +67 -0
- package/dist/models/ApiEsportTeamsGetFilterParameter.d.ts +52 -0
- package/dist/models/ApiEsportTeamsGetFilterParameter.js +49 -0
- package/dist/models/ApiEsportTeamsIdGet200Response.d.ts +51 -0
- package/dist/models/ApiEsportTeamsIdGet200Response.js +54 -0
- package/dist/models/index.d.ts +5 -0
- package/dist/models/index.js +5 -0
- package/models/ApiEsportTeamsGet200Response.ts +100 -0
- package/models/ApiEsportTeamsGet200ResponseResponseObject.ts +110 -0
- package/models/ApiEsportTeamsGet200ResponseResponseObjectItemsInner.ts +148 -0
- package/models/ApiEsportTeamsGetFilterParameter.ts +104 -0
- package/models/ApiEsportTeamsIdGet200Response.ts +100 -0
- package/models/index.ts +5 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -50,6 +50,11 @@ models/ApiEsportPlayersGet200ResponseResponseObject.ts
|
|
|
50
50
|
models/ApiEsportPlayersGet200ResponseResponseObjectItemsInner.ts
|
|
51
51
|
models/ApiEsportPlayersGetFilterParameter.ts
|
|
52
52
|
models/ApiEsportPlayersIdGet200Response.ts
|
|
53
|
+
models/ApiEsportTeamsGet200Response.ts
|
|
54
|
+
models/ApiEsportTeamsGet200ResponseResponseObject.ts
|
|
55
|
+
models/ApiEsportTeamsGet200ResponseResponseObjectItemsInner.ts
|
|
56
|
+
models/ApiEsportTeamsGetFilterParameter.ts
|
|
57
|
+
models/ApiEsportTeamsIdGet200Response.ts
|
|
53
58
|
models/ApiEsportVideogamesGet200Response.ts
|
|
54
59
|
models/ApiEsportVideogamesGet200ResponseResponseObjectInner.ts
|
|
55
60
|
models/ApiHealthCheckGet200Response.ts
|
package/apis/EsportApi.ts
CHANGED
|
@@ -21,6 +21,9 @@ import type {
|
|
|
21
21
|
ApiEsportPlayersGet200Response,
|
|
22
22
|
ApiEsportPlayersGetFilterParameter,
|
|
23
23
|
ApiEsportPlayersIdGet200Response,
|
|
24
|
+
ApiEsportTeamsGet200Response,
|
|
25
|
+
ApiEsportTeamsGetFilterParameter,
|
|
26
|
+
ApiEsportTeamsIdGet200Response,
|
|
24
27
|
ApiEsportVideogamesGet200Response,
|
|
25
28
|
} from '../models/index';
|
|
26
29
|
import {
|
|
@@ -36,6 +39,12 @@ import {
|
|
|
36
39
|
ApiEsportPlayersGetFilterParameterToJSON,
|
|
37
40
|
ApiEsportPlayersIdGet200ResponseFromJSON,
|
|
38
41
|
ApiEsportPlayersIdGet200ResponseToJSON,
|
|
42
|
+
ApiEsportTeamsGet200ResponseFromJSON,
|
|
43
|
+
ApiEsportTeamsGet200ResponseToJSON,
|
|
44
|
+
ApiEsportTeamsGetFilterParameterFromJSON,
|
|
45
|
+
ApiEsportTeamsGetFilterParameterToJSON,
|
|
46
|
+
ApiEsportTeamsIdGet200ResponseFromJSON,
|
|
47
|
+
ApiEsportTeamsIdGet200ResponseToJSON,
|
|
39
48
|
ApiEsportVideogamesGet200ResponseFromJSON,
|
|
40
49
|
ApiEsportVideogamesGet200ResponseToJSON,
|
|
41
50
|
} from '../models/index';
|
|
@@ -62,6 +71,17 @@ export interface ApiEsportPlayersIdGetRequest {
|
|
|
62
71
|
id: string;
|
|
63
72
|
}
|
|
64
73
|
|
|
74
|
+
export interface ApiEsportTeamsGetRequest {
|
|
75
|
+
page?: number;
|
|
76
|
+
pageSize?: number;
|
|
77
|
+
sort?: string;
|
|
78
|
+
filter?: ApiEsportTeamsGetFilterParameter;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export interface ApiEsportTeamsIdGetRequest {
|
|
82
|
+
id: string;
|
|
83
|
+
}
|
|
84
|
+
|
|
65
85
|
/**
|
|
66
86
|
*
|
|
67
87
|
*/
|
|
@@ -265,6 +285,105 @@ export class EsportApi extends runtime.BaseAPI {
|
|
|
265
285
|
return await response.value();
|
|
266
286
|
}
|
|
267
287
|
|
|
288
|
+
/**
|
|
289
|
+
* Get Esport Teams
|
|
290
|
+
*/
|
|
291
|
+
async apiEsportTeamsGetRaw(requestParameters: ApiEsportTeamsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiEsportTeamsGet200Response>> {
|
|
292
|
+
const queryParameters: any = {};
|
|
293
|
+
|
|
294
|
+
if (requestParameters['page'] != null) {
|
|
295
|
+
queryParameters['page'] = requestParameters['page'];
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
if (requestParameters['pageSize'] != null) {
|
|
299
|
+
queryParameters['pageSize'] = requestParameters['pageSize'];
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
if (requestParameters['sort'] != null) {
|
|
303
|
+
queryParameters['sort'] = requestParameters['sort'];
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
if (requestParameters['filter'] != null) {
|
|
307
|
+
queryParameters['filter'] = requestParameters['filter'];
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
311
|
+
|
|
312
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
313
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
317
|
+
const token = this.configuration.accessToken;
|
|
318
|
+
const tokenString = await token("BearerAuth", []);
|
|
319
|
+
|
|
320
|
+
if (tokenString) {
|
|
321
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
const response = await this.request({
|
|
325
|
+
path: `/api/esport/teams`,
|
|
326
|
+
method: 'GET',
|
|
327
|
+
headers: headerParameters,
|
|
328
|
+
query: queryParameters,
|
|
329
|
+
}, initOverrides);
|
|
330
|
+
|
|
331
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiEsportTeamsGet200ResponseFromJSON(jsonValue));
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
/**
|
|
335
|
+
* Get Esport Teams
|
|
336
|
+
*/
|
|
337
|
+
async apiEsportTeamsGet(requestParameters: ApiEsportTeamsGetRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiEsportTeamsGet200Response> {
|
|
338
|
+
const response = await this.apiEsportTeamsGetRaw(requestParameters, initOverrides);
|
|
339
|
+
return await response.value();
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
/**
|
|
343
|
+
* Get Esport Team Details
|
|
344
|
+
*/
|
|
345
|
+
async apiEsportTeamsIdGetRaw(requestParameters: ApiEsportTeamsIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiEsportTeamsIdGet200Response>> {
|
|
346
|
+
if (requestParameters['id'] == null) {
|
|
347
|
+
throw new runtime.RequiredError(
|
|
348
|
+
'id',
|
|
349
|
+
'Required parameter "id" was null or undefined when calling apiEsportTeamsIdGet().'
|
|
350
|
+
);
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
const queryParameters: any = {};
|
|
354
|
+
|
|
355
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
356
|
+
|
|
357
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
358
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
362
|
+
const token = this.configuration.accessToken;
|
|
363
|
+
const tokenString = await token("BearerAuth", []);
|
|
364
|
+
|
|
365
|
+
if (tokenString) {
|
|
366
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
const response = await this.request({
|
|
370
|
+
path: `/api/esport/teams/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
371
|
+
method: 'GET',
|
|
372
|
+
headers: headerParameters,
|
|
373
|
+
query: queryParameters,
|
|
374
|
+
}, initOverrides);
|
|
375
|
+
|
|
376
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiEsportTeamsIdGet200ResponseFromJSON(jsonValue));
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
/**
|
|
380
|
+
* Get Esport Team Details
|
|
381
|
+
*/
|
|
382
|
+
async apiEsportTeamsIdGet(requestParameters: ApiEsportTeamsIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiEsportTeamsIdGet200Response> {
|
|
383
|
+
const response = await this.apiEsportTeamsIdGetRaw(requestParameters, initOverrides);
|
|
384
|
+
return await response.value();
|
|
385
|
+
}
|
|
386
|
+
|
|
268
387
|
/**
|
|
269
388
|
* Get All Esport\'s Video Games
|
|
270
389
|
*/
|
package/deploy.log
CHANGED
|
@@ -173,6 +173,11 @@
|
|
|
173
173
|
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_esport_players_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_players_get_200_response_responseObject=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_esport_players_get_200_response_responseObject=NewModel,ModelA=NewModelA in CLI).
|
|
174
174
|
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_esport_players_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_players_get_200_response=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_esport_players_get_200_response=NewModel,ModelA=NewModelA in CLI).
|
|
175
175
|
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_esport_players__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_players__id__get_200_response=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_esport_players__id__get_200_response=NewModel,ModelA=NewModelA in CLI).
|
|
176
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_esport_teams_get_filter_parameter. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_esport_teams_get_filter_parameter=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_esport_teams_get_filter_parameter=NewModel,ModelA=NewModelA in CLI).
|
|
177
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_esport_teams_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_teams_get_200_response_responseObject_items_inner=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_esport_teams_get_200_response_responseObject_items_inner=NewModel,ModelA=NewModelA in CLI).
|
|
178
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_esport_teams_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_teams_get_200_response_responseObject=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_esport_teams_get_200_response_responseObject=NewModel,ModelA=NewModelA in CLI).
|
|
179
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_esport_teams_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_teams_get_200_response=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_esport_teams_get_200_response=NewModel,ModelA=NewModelA in CLI).
|
|
180
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_esport_teams__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_teams__id__get_200_response=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_esport_teams__id__get_200_response=NewModel,ModelA=NewModelA in CLI).
|
|
176
181
|
[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/]
|
|
177
182
|
[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/]
|
|
178
183
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthForgotPasswordChangePasswordPost200Response.ts
|
|
@@ -213,6 +218,11 @@
|
|
|
213
218
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportPlayersGet200ResponseResponseObjectItemsInner.ts
|
|
214
219
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportPlayersGetFilterParameter.ts
|
|
215
220
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportPlayersIdGet200Response.ts
|
|
221
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportTeamsGet200Response.ts
|
|
222
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportTeamsGet200ResponseResponseObject.ts
|
|
223
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportTeamsGet200ResponseResponseObjectItemsInner.ts
|
|
224
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportTeamsGetFilterParameter.ts
|
|
225
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportTeamsIdGet200Response.ts
|
|
216
226
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportVideogamesGet200Response.ts
|
|
217
227
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportVideogamesGet200ResponseResponseObjectInner.ts
|
|
218
228
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiHealthCheckGet200Response.ts
|
|
@@ -398,6 +408,8 @@
|
|
|
398
408
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/esport/matches/{id}. Renamed to auto-generated operationId: apiEsportMatchesIdGet
|
|
399
409
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/esport/players. Renamed to auto-generated operationId: apiEsportPlayersGet
|
|
400
410
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/esport/players/{id}. Renamed to auto-generated operationId: apiEsportPlayersIdGet
|
|
411
|
+
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/esport/teams. Renamed to auto-generated operationId: apiEsportTeamsGet
|
|
412
|
+
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/esport/teams/{id}. Renamed to auto-generated operationId: apiEsportTeamsIdGet
|
|
401
413
|
[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/]
|
|
402
414
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./apis/AppConfigApi.ts
|
|
403
415
|
[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/]
|
|
@@ -436,21 +448,21 @@
|
|
|
436
448
|
# https://opencollective.com/openapi_generator/donate #
|
|
437
449
|
################################################################################
|
|
438
450
|
✅ SDK generated
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
451
|
+
[master dbfb5d7] VPS: Generated API SDK
|
|
452
|
+
4 files changed, 154 insertions(+)
|
|
453
|
+
create mode 100644 models/ApiEsportTeamsIdGet200Response.ts
|
|
454
|
+
To https://gitlab.com/drx-super/drx-sdk.git
|
|
455
|
+
ed17aeb..dbfb5d7 master -> master
|
|
444
456
|
✅ Changes committed and pushed
|
|
445
|
-
v1.1.
|
|
457
|
+
v1.1.225
|
|
446
458
|
To https://gitlab.com/drx-super/drx-sdk.git
|
|
447
|
-
|
|
459
|
+
dbfb5d7..516cbd1 master -> master
|
|
448
460
|
✅ Version bumped
|
|
449
461
|
|
|
450
|
-
> @drxsuperapp/sdk@1.1.
|
|
462
|
+
> @drxsuperapp/sdk@1.1.225 prepublishOnly
|
|
451
463
|
> npm run build
|
|
452
464
|
|
|
453
465
|
|
|
454
|
-
> @drxsuperapp/sdk@1.1.
|
|
466
|
+
> @drxsuperapp/sdk@1.1.225 build
|
|
455
467
|
> tsc
|
|
456
468
|
|
package/dist/apis/EsportApi.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { ApiEsportMatchesGet200Response, ApiEsportMatchesGetFilterParameter, ApiEsportMatchesIdGet200Response, ApiEsportPlayersGet200Response, ApiEsportPlayersGetFilterParameter, ApiEsportPlayersIdGet200Response, ApiEsportVideogamesGet200Response } from '../models/index';
|
|
13
|
+
import type { ApiEsportMatchesGet200Response, ApiEsportMatchesGetFilterParameter, ApiEsportMatchesIdGet200Response, ApiEsportPlayersGet200Response, ApiEsportPlayersGetFilterParameter, ApiEsportPlayersIdGet200Response, ApiEsportTeamsGet200Response, ApiEsportTeamsGetFilterParameter, ApiEsportTeamsIdGet200Response, ApiEsportVideogamesGet200Response } from '../models/index';
|
|
14
14
|
export interface ApiEsportMatchesGetRequest {
|
|
15
15
|
page?: number;
|
|
16
16
|
pageSize?: number;
|
|
@@ -29,6 +29,15 @@ export interface ApiEsportPlayersGetRequest {
|
|
|
29
29
|
export interface ApiEsportPlayersIdGetRequest {
|
|
30
30
|
id: string;
|
|
31
31
|
}
|
|
32
|
+
export interface ApiEsportTeamsGetRequest {
|
|
33
|
+
page?: number;
|
|
34
|
+
pageSize?: number;
|
|
35
|
+
sort?: string;
|
|
36
|
+
filter?: ApiEsportTeamsGetFilterParameter;
|
|
37
|
+
}
|
|
38
|
+
export interface ApiEsportTeamsIdGetRequest {
|
|
39
|
+
id: string;
|
|
40
|
+
}
|
|
32
41
|
/**
|
|
33
42
|
*
|
|
34
43
|
*/
|
|
@@ -65,6 +74,22 @@ export declare class EsportApi extends runtime.BaseAPI {
|
|
|
65
74
|
* Get Esport Player Details
|
|
66
75
|
*/
|
|
67
76
|
apiEsportPlayersIdGet(requestParameters: ApiEsportPlayersIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiEsportPlayersIdGet200Response>;
|
|
77
|
+
/**
|
|
78
|
+
* Get Esport Teams
|
|
79
|
+
*/
|
|
80
|
+
apiEsportTeamsGetRaw(requestParameters: ApiEsportTeamsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiEsportTeamsGet200Response>>;
|
|
81
|
+
/**
|
|
82
|
+
* Get Esport Teams
|
|
83
|
+
*/
|
|
84
|
+
apiEsportTeamsGet(requestParameters?: ApiEsportTeamsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiEsportTeamsGet200Response>;
|
|
85
|
+
/**
|
|
86
|
+
* Get Esport Team Details
|
|
87
|
+
*/
|
|
88
|
+
apiEsportTeamsIdGetRaw(requestParameters: ApiEsportTeamsIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiEsportTeamsIdGet200Response>>;
|
|
89
|
+
/**
|
|
90
|
+
* Get Esport Team Details
|
|
91
|
+
*/
|
|
92
|
+
apiEsportTeamsIdGet(requestParameters: ApiEsportTeamsIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiEsportTeamsIdGet200Response>;
|
|
68
93
|
/**
|
|
69
94
|
* Get All Esport\'s Video Games
|
|
70
95
|
*/
|
package/dist/apis/EsportApi.js
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import * as runtime from '../runtime';
|
|
15
|
-
import { ApiEsportMatchesGet200ResponseFromJSON, ApiEsportMatchesIdGet200ResponseFromJSON, ApiEsportPlayersGet200ResponseFromJSON, ApiEsportPlayersIdGet200ResponseFromJSON, ApiEsportVideogamesGet200ResponseFromJSON, } from '../models/index';
|
|
15
|
+
import { ApiEsportMatchesGet200ResponseFromJSON, ApiEsportMatchesIdGet200ResponseFromJSON, ApiEsportPlayersGet200ResponseFromJSON, ApiEsportPlayersIdGet200ResponseFromJSON, ApiEsportTeamsGet200ResponseFromJSON, ApiEsportTeamsIdGet200ResponseFromJSON, ApiEsportVideogamesGet200ResponseFromJSON, } from '../models/index';
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
*/
|
|
@@ -171,6 +171,83 @@ export class EsportApi extends runtime.BaseAPI {
|
|
|
171
171
|
const response = await this.apiEsportPlayersIdGetRaw(requestParameters, initOverrides);
|
|
172
172
|
return await response.value();
|
|
173
173
|
}
|
|
174
|
+
/**
|
|
175
|
+
* Get Esport Teams
|
|
176
|
+
*/
|
|
177
|
+
async apiEsportTeamsGetRaw(requestParameters, initOverrides) {
|
|
178
|
+
const queryParameters = {};
|
|
179
|
+
if (requestParameters['page'] != null) {
|
|
180
|
+
queryParameters['page'] = requestParameters['page'];
|
|
181
|
+
}
|
|
182
|
+
if (requestParameters['pageSize'] != null) {
|
|
183
|
+
queryParameters['pageSize'] = requestParameters['pageSize'];
|
|
184
|
+
}
|
|
185
|
+
if (requestParameters['sort'] != null) {
|
|
186
|
+
queryParameters['sort'] = requestParameters['sort'];
|
|
187
|
+
}
|
|
188
|
+
if (requestParameters['filter'] != null) {
|
|
189
|
+
queryParameters['filter'] = requestParameters['filter'];
|
|
190
|
+
}
|
|
191
|
+
const headerParameters = {};
|
|
192
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
193
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
194
|
+
}
|
|
195
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
196
|
+
const token = this.configuration.accessToken;
|
|
197
|
+
const tokenString = await token("BearerAuth", []);
|
|
198
|
+
if (tokenString) {
|
|
199
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
const response = await this.request({
|
|
203
|
+
path: `/api/esport/teams`,
|
|
204
|
+
method: 'GET',
|
|
205
|
+
headers: headerParameters,
|
|
206
|
+
query: queryParameters,
|
|
207
|
+
}, initOverrides);
|
|
208
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiEsportTeamsGet200ResponseFromJSON(jsonValue));
|
|
209
|
+
}
|
|
210
|
+
/**
|
|
211
|
+
* Get Esport Teams
|
|
212
|
+
*/
|
|
213
|
+
async apiEsportTeamsGet(requestParameters = {}, initOverrides) {
|
|
214
|
+
const response = await this.apiEsportTeamsGetRaw(requestParameters, initOverrides);
|
|
215
|
+
return await response.value();
|
|
216
|
+
}
|
|
217
|
+
/**
|
|
218
|
+
* Get Esport Team Details
|
|
219
|
+
*/
|
|
220
|
+
async apiEsportTeamsIdGetRaw(requestParameters, initOverrides) {
|
|
221
|
+
if (requestParameters['id'] == null) {
|
|
222
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiEsportTeamsIdGet().');
|
|
223
|
+
}
|
|
224
|
+
const queryParameters = {};
|
|
225
|
+
const headerParameters = {};
|
|
226
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
227
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
228
|
+
}
|
|
229
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
230
|
+
const token = this.configuration.accessToken;
|
|
231
|
+
const tokenString = await token("BearerAuth", []);
|
|
232
|
+
if (tokenString) {
|
|
233
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
const response = await this.request({
|
|
237
|
+
path: `/api/esport/teams/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
238
|
+
method: 'GET',
|
|
239
|
+
headers: headerParameters,
|
|
240
|
+
query: queryParameters,
|
|
241
|
+
}, initOverrides);
|
|
242
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiEsportTeamsIdGet200ResponseFromJSON(jsonValue));
|
|
243
|
+
}
|
|
244
|
+
/**
|
|
245
|
+
* Get Esport Team Details
|
|
246
|
+
*/
|
|
247
|
+
async apiEsportTeamsIdGet(requestParameters, initOverrides) {
|
|
248
|
+
const response = await this.apiEsportTeamsIdGetRaw(requestParameters, initOverrides);
|
|
249
|
+
return await response.value();
|
|
250
|
+
}
|
|
174
251
|
/**
|
|
175
252
|
* Get All Esport\'s Video Games
|
|
176
253
|
*/
|
|
@@ -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 { ApiEsportTeamsGet200ResponseResponseObject } from './ApiEsportTeamsGet200ResponseResponseObject';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ApiEsportTeamsGet200Response
|
|
17
|
+
*/
|
|
18
|
+
export interface ApiEsportTeamsGet200Response {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {boolean}
|
|
22
|
+
* @memberof ApiEsportTeamsGet200Response
|
|
23
|
+
*/
|
|
24
|
+
success: boolean;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof ApiEsportTeamsGet200Response
|
|
29
|
+
*/
|
|
30
|
+
message: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {ApiEsportTeamsGet200ResponseResponseObject}
|
|
34
|
+
* @memberof ApiEsportTeamsGet200Response
|
|
35
|
+
*/
|
|
36
|
+
responseObject?: ApiEsportTeamsGet200ResponseResponseObject;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof ApiEsportTeamsGet200Response
|
|
41
|
+
*/
|
|
42
|
+
statusCode: number;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the ApiEsportTeamsGet200Response interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfApiEsportTeamsGet200Response(value: object): value is ApiEsportTeamsGet200Response;
|
|
48
|
+
export declare function ApiEsportTeamsGet200ResponseFromJSON(json: any): ApiEsportTeamsGet200Response;
|
|
49
|
+
export declare function ApiEsportTeamsGet200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiEsportTeamsGet200Response;
|
|
50
|
+
export declare function ApiEsportTeamsGet200ResponseToJSON(json: any): ApiEsportTeamsGet200Response;
|
|
51
|
+
export declare function ApiEsportTeamsGet200ResponseToJSONTyped(value?: ApiEsportTeamsGet200Response | 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 { ApiEsportTeamsGet200ResponseResponseObjectFromJSON, ApiEsportTeamsGet200ResponseResponseObjectToJSON, } from './ApiEsportTeamsGet200ResponseResponseObject';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the ApiEsportTeamsGet200Response interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfApiEsportTeamsGet200Response(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 ApiEsportTeamsGet200ResponseFromJSON(json) {
|
|
28
|
+
return ApiEsportTeamsGet200ResponseFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
export function ApiEsportTeamsGet200ResponseFromJSONTyped(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 : ApiEsportTeamsGet200ResponseResponseObjectFromJSON(json['responseObject']),
|
|
38
|
+
'statusCode': json['statusCode'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
export function ApiEsportTeamsGet200ResponseToJSON(json) {
|
|
42
|
+
return ApiEsportTeamsGet200ResponseToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
export function ApiEsportTeamsGet200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'success': value['success'],
|
|
50
|
+
'message': value['message'],
|
|
51
|
+
'responseObject': ApiEsportTeamsGet200ResponseResponseObjectToJSON(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 { ApiEsportTeamsGet200ResponseResponseObjectItemsInner } from './ApiEsportTeamsGet200ResponseResponseObjectItemsInner';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ApiEsportTeamsGet200ResponseResponseObject
|
|
17
|
+
*/
|
|
18
|
+
export interface ApiEsportTeamsGet200ResponseResponseObject {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<ApiEsportTeamsGet200ResponseResponseObjectItemsInner>}
|
|
22
|
+
* @memberof ApiEsportTeamsGet200ResponseResponseObject
|
|
23
|
+
*/
|
|
24
|
+
items: Array<ApiEsportTeamsGet200ResponseResponseObjectItemsInner>;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof ApiEsportTeamsGet200ResponseResponseObject
|
|
29
|
+
*/
|
|
30
|
+
currentPage: number;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof ApiEsportTeamsGet200ResponseResponseObject
|
|
35
|
+
*/
|
|
36
|
+
totalItems: number;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof ApiEsportTeamsGet200ResponseResponseObject
|
|
41
|
+
*/
|
|
42
|
+
totalPages: number;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {number}
|
|
46
|
+
* @memberof ApiEsportTeamsGet200ResponseResponseObject
|
|
47
|
+
*/
|
|
48
|
+
pageSize: number;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the ApiEsportTeamsGet200ResponseResponseObject interface.
|
|
52
|
+
*/
|
|
53
|
+
export declare function instanceOfApiEsportTeamsGet200ResponseResponseObject(value: object): value is ApiEsportTeamsGet200ResponseResponseObject;
|
|
54
|
+
export declare function ApiEsportTeamsGet200ResponseResponseObjectFromJSON(json: any): ApiEsportTeamsGet200ResponseResponseObject;
|
|
55
|
+
export declare function ApiEsportTeamsGet200ResponseResponseObjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiEsportTeamsGet200ResponseResponseObject;
|
|
56
|
+
export declare function ApiEsportTeamsGet200ResponseResponseObjectToJSON(json: any): ApiEsportTeamsGet200ResponseResponseObject;
|
|
57
|
+
export declare function ApiEsportTeamsGet200ResponseResponseObjectToJSONTyped(value?: ApiEsportTeamsGet200ResponseResponseObject | 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 { ApiEsportTeamsGet200ResponseResponseObjectItemsInnerFromJSON, ApiEsportTeamsGet200ResponseResponseObjectItemsInnerToJSON, } from './ApiEsportTeamsGet200ResponseResponseObjectItemsInner';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the ApiEsportTeamsGet200ResponseResponseObject interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfApiEsportTeamsGet200ResponseResponseObject(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 ApiEsportTeamsGet200ResponseResponseObjectFromJSON(json) {
|
|
32
|
+
return ApiEsportTeamsGet200ResponseResponseObjectFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
export function ApiEsportTeamsGet200ResponseResponseObjectFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'items': (json['items'].map(ApiEsportTeamsGet200ResponseResponseObjectItemsInnerFromJSON)),
|
|
40
|
+
'currentPage': json['currentPage'],
|
|
41
|
+
'totalItems': json['totalItems'],
|
|
42
|
+
'totalPages': json['totalPages'],
|
|
43
|
+
'pageSize': json['pageSize'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
export function ApiEsportTeamsGet200ResponseResponseObjectToJSON(json) {
|
|
47
|
+
return ApiEsportTeamsGet200ResponseResponseObjectToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
export function ApiEsportTeamsGet200ResponseResponseObjectToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'items': (value['items'].map(ApiEsportTeamsGet200ResponseResponseObjectItemsInnerToJSON)),
|
|
55
|
+
'currentPage': value['currentPage'],
|
|
56
|
+
'totalItems': value['totalItems'],
|
|
57
|
+
'totalPages': value['totalPages'],
|
|
58
|
+
'pageSize': value['pageSize'],
|
|
59
|
+
};
|
|
60
|
+
}
|