@drxsuperapp/sdk 1.1.224 → 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 +1 -0
- package/apis/EsportApi.ts +52 -0
- package/deploy.log +11 -11
- package/dist/apis/EsportApi.d.ts +12 -1
- package/dist/apis/EsportApi.js +35 -1
- package/dist/models/ApiEsportTeamsIdGet200Response.d.ts +51 -0
- package/dist/models/ApiEsportTeamsIdGet200Response.js +54 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/models/ApiEsportTeamsIdGet200Response.ts +100 -0
- package/models/index.ts +1 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -54,6 +54,7 @@ models/ApiEsportTeamsGet200Response.ts
|
|
|
54
54
|
models/ApiEsportTeamsGet200ResponseResponseObject.ts
|
|
55
55
|
models/ApiEsportTeamsGet200ResponseResponseObjectItemsInner.ts
|
|
56
56
|
models/ApiEsportTeamsGetFilterParameter.ts
|
|
57
|
+
models/ApiEsportTeamsIdGet200Response.ts
|
|
57
58
|
models/ApiEsportVideogamesGet200Response.ts
|
|
58
59
|
models/ApiEsportVideogamesGet200ResponseResponseObjectInner.ts
|
|
59
60
|
models/ApiHealthCheckGet200Response.ts
|
package/apis/EsportApi.ts
CHANGED
|
@@ -23,6 +23,7 @@ import type {
|
|
|
23
23
|
ApiEsportPlayersIdGet200Response,
|
|
24
24
|
ApiEsportTeamsGet200Response,
|
|
25
25
|
ApiEsportTeamsGetFilterParameter,
|
|
26
|
+
ApiEsportTeamsIdGet200Response,
|
|
26
27
|
ApiEsportVideogamesGet200Response,
|
|
27
28
|
} from '../models/index';
|
|
28
29
|
import {
|
|
@@ -42,6 +43,8 @@ import {
|
|
|
42
43
|
ApiEsportTeamsGet200ResponseToJSON,
|
|
43
44
|
ApiEsportTeamsGetFilterParameterFromJSON,
|
|
44
45
|
ApiEsportTeamsGetFilterParameterToJSON,
|
|
46
|
+
ApiEsportTeamsIdGet200ResponseFromJSON,
|
|
47
|
+
ApiEsportTeamsIdGet200ResponseToJSON,
|
|
45
48
|
ApiEsportVideogamesGet200ResponseFromJSON,
|
|
46
49
|
ApiEsportVideogamesGet200ResponseToJSON,
|
|
47
50
|
} from '../models/index';
|
|
@@ -75,6 +78,10 @@ export interface ApiEsportTeamsGetRequest {
|
|
|
75
78
|
filter?: ApiEsportTeamsGetFilterParameter;
|
|
76
79
|
}
|
|
77
80
|
|
|
81
|
+
export interface ApiEsportTeamsIdGetRequest {
|
|
82
|
+
id: string;
|
|
83
|
+
}
|
|
84
|
+
|
|
78
85
|
/**
|
|
79
86
|
*
|
|
80
87
|
*/
|
|
@@ -332,6 +339,51 @@ export class EsportApi extends runtime.BaseAPI {
|
|
|
332
339
|
return await response.value();
|
|
333
340
|
}
|
|
334
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
|
+
|
|
335
387
|
/**
|
|
336
388
|
* Get All Esport\'s Video Games
|
|
337
389
|
*/
|
package/deploy.log
CHANGED
|
@@ -177,6 +177,7 @@
|
|
|
177
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
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
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).
|
|
180
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/]
|
|
181
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/]
|
|
182
183
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthForgotPasswordChangePasswordPost200Response.ts
|
|
@@ -221,6 +222,7 @@
|
|
|
221
222
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportTeamsGet200ResponseResponseObject.ts
|
|
222
223
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportTeamsGet200ResponseResponseObjectItemsInner.ts
|
|
223
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
|
|
224
226
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportVideogamesGet200Response.ts
|
|
225
227
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportVideogamesGet200ResponseResponseObjectInner.ts
|
|
226
228
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiHealthCheckGet200Response.ts
|
|
@@ -407,6 +409,7 @@
|
|
|
407
409
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/esport/players. Renamed to auto-generated operationId: apiEsportPlayersGet
|
|
408
410
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/esport/players/{id}. Renamed to auto-generated operationId: apiEsportPlayersIdGet
|
|
409
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
|
|
410
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/]
|
|
411
414
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./apis/AppConfigApi.ts
|
|
412
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/]
|
|
@@ -445,24 +448,21 @@
|
|
|
445
448
|
# https://opencollective.com/openapi_generator/donate #
|
|
446
449
|
################################################################################
|
|
447
450
|
✅ SDK generated
|
|
448
|
-
[master
|
|
449
|
-
|
|
450
|
-
create mode 100644 models/
|
|
451
|
-
create mode 100644 models/ApiEsportTeamsGet200ResponseResponseObject.ts
|
|
452
|
-
create mode 100644 models/ApiEsportTeamsGet200ResponseResponseObjectItemsInner.ts
|
|
453
|
-
create mode 100644 models/ApiEsportTeamsGetFilterParameter.ts
|
|
451
|
+
[master dbfb5d7] VPS: Generated API SDK
|
|
452
|
+
4 files changed, 154 insertions(+)
|
|
453
|
+
create mode 100644 models/ApiEsportTeamsIdGet200Response.ts
|
|
454
454
|
To https://gitlab.com/drx-super/drx-sdk.git
|
|
455
|
-
|
|
455
|
+
ed17aeb..dbfb5d7 master -> master
|
|
456
456
|
✅ Changes committed and pushed
|
|
457
|
-
v1.1.
|
|
457
|
+
v1.1.225
|
|
458
458
|
To https://gitlab.com/drx-super/drx-sdk.git
|
|
459
|
-
|
|
459
|
+
dbfb5d7..516cbd1 master -> master
|
|
460
460
|
✅ Version bumped
|
|
461
461
|
|
|
462
|
-
> @drxsuperapp/sdk@1.1.
|
|
462
|
+
> @drxsuperapp/sdk@1.1.225 prepublishOnly
|
|
463
463
|
> npm run build
|
|
464
464
|
|
|
465
465
|
|
|
466
|
-
> @drxsuperapp/sdk@1.1.
|
|
466
|
+
> @drxsuperapp/sdk@1.1.225 build
|
|
467
467
|
> tsc
|
|
468
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, ApiEsportTeamsGet200Response, ApiEsportTeamsGetFilterParameter, 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;
|
|
@@ -35,6 +35,9 @@ export interface ApiEsportTeamsGetRequest {
|
|
|
35
35
|
sort?: string;
|
|
36
36
|
filter?: ApiEsportTeamsGetFilterParameter;
|
|
37
37
|
}
|
|
38
|
+
export interface ApiEsportTeamsIdGetRequest {
|
|
39
|
+
id: string;
|
|
40
|
+
}
|
|
38
41
|
/**
|
|
39
42
|
*
|
|
40
43
|
*/
|
|
@@ -79,6 +82,14 @@ export declare class EsportApi extends runtime.BaseAPI {
|
|
|
79
82
|
* Get Esport Teams
|
|
80
83
|
*/
|
|
81
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>;
|
|
82
93
|
/**
|
|
83
94
|
* Get All Esport\'s Video Games
|
|
84
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, ApiEsportTeamsGet200ResponseFromJSON, ApiEsportVideogamesGet200ResponseFromJSON, } from '../models/index';
|
|
15
|
+
import { ApiEsportMatchesGet200ResponseFromJSON, ApiEsportMatchesIdGet200ResponseFromJSON, ApiEsportPlayersGet200ResponseFromJSON, ApiEsportPlayersIdGet200ResponseFromJSON, ApiEsportTeamsGet200ResponseFromJSON, ApiEsportTeamsIdGet200ResponseFromJSON, ApiEsportVideogamesGet200ResponseFromJSON, } from '../models/index';
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
*/
|
|
@@ -214,6 +214,40 @@ export class EsportApi extends runtime.BaseAPI {
|
|
|
214
214
|
const response = await this.apiEsportTeamsGetRaw(requestParameters, initOverrides);
|
|
215
215
|
return await response.value();
|
|
216
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
|
+
}
|
|
217
251
|
/**
|
|
218
252
|
* Get All Esport\'s Video Games
|
|
219
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 { ApiEsportTeamsGet200ResponseResponseObjectItemsInner } from './ApiEsportTeamsGet200ResponseResponseObjectItemsInner';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ApiEsportTeamsIdGet200Response
|
|
17
|
+
*/
|
|
18
|
+
export interface ApiEsportTeamsIdGet200Response {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {boolean}
|
|
22
|
+
* @memberof ApiEsportTeamsIdGet200Response
|
|
23
|
+
*/
|
|
24
|
+
success: boolean;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof ApiEsportTeamsIdGet200Response
|
|
29
|
+
*/
|
|
30
|
+
message: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {ApiEsportTeamsGet200ResponseResponseObjectItemsInner}
|
|
34
|
+
* @memberof ApiEsportTeamsIdGet200Response
|
|
35
|
+
*/
|
|
36
|
+
responseObject?: ApiEsportTeamsGet200ResponseResponseObjectItemsInner;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof ApiEsportTeamsIdGet200Response
|
|
41
|
+
*/
|
|
42
|
+
statusCode: number;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the ApiEsportTeamsIdGet200Response interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfApiEsportTeamsIdGet200Response(value: object): value is ApiEsportTeamsIdGet200Response;
|
|
48
|
+
export declare function ApiEsportTeamsIdGet200ResponseFromJSON(json: any): ApiEsportTeamsIdGet200Response;
|
|
49
|
+
export declare function ApiEsportTeamsIdGet200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiEsportTeamsIdGet200Response;
|
|
50
|
+
export declare function ApiEsportTeamsIdGet200ResponseToJSON(json: any): ApiEsportTeamsIdGet200Response;
|
|
51
|
+
export declare function ApiEsportTeamsIdGet200ResponseToJSONTyped(value?: ApiEsportTeamsIdGet200Response | 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 { ApiEsportTeamsGet200ResponseResponseObjectItemsInnerFromJSON, ApiEsportTeamsGet200ResponseResponseObjectItemsInnerToJSON, } from './ApiEsportTeamsGet200ResponseResponseObjectItemsInner';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the ApiEsportTeamsIdGet200Response interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfApiEsportTeamsIdGet200Response(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 ApiEsportTeamsIdGet200ResponseFromJSON(json) {
|
|
28
|
+
return ApiEsportTeamsIdGet200ResponseFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
export function ApiEsportTeamsIdGet200ResponseFromJSONTyped(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 : ApiEsportTeamsGet200ResponseResponseObjectItemsInnerFromJSON(json['responseObject']),
|
|
38
|
+
'statusCode': json['statusCode'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
export function ApiEsportTeamsIdGet200ResponseToJSON(json) {
|
|
42
|
+
return ApiEsportTeamsIdGet200ResponseToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
export function ApiEsportTeamsIdGet200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'success': value['success'],
|
|
50
|
+
'message': value['message'],
|
|
51
|
+
'responseObject': ApiEsportTeamsGet200ResponseResponseObjectItemsInnerToJSON(value['responseObject']),
|
|
52
|
+
'statusCode': value['statusCode'],
|
|
53
|
+
};
|
|
54
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -40,6 +40,7 @@ export * from './ApiEsportTeamsGet200Response';
|
|
|
40
40
|
export * from './ApiEsportTeamsGet200ResponseResponseObject';
|
|
41
41
|
export * from './ApiEsportTeamsGet200ResponseResponseObjectItemsInner';
|
|
42
42
|
export * from './ApiEsportTeamsGetFilterParameter';
|
|
43
|
+
export * from './ApiEsportTeamsIdGet200Response';
|
|
43
44
|
export * from './ApiEsportVideogamesGet200Response';
|
|
44
45
|
export * from './ApiEsportVideogamesGet200ResponseResponseObjectInner';
|
|
45
46
|
export * from './ApiHealthCheckGet200Response';
|
package/dist/models/index.js
CHANGED
|
@@ -42,6 +42,7 @@ export * from './ApiEsportTeamsGet200Response';
|
|
|
42
42
|
export * from './ApiEsportTeamsGet200ResponseResponseObject';
|
|
43
43
|
export * from './ApiEsportTeamsGet200ResponseResponseObjectItemsInner';
|
|
44
44
|
export * from './ApiEsportTeamsGetFilterParameter';
|
|
45
|
+
export * from './ApiEsportTeamsIdGet200Response';
|
|
45
46
|
export * from './ApiEsportVideogamesGet200Response';
|
|
46
47
|
export * from './ApiEsportVideogamesGet200ResponseResponseObjectInner';
|
|
47
48
|
export * from './ApiHealthCheckGet200Response';
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* DRX API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { ApiEsportTeamsGet200ResponseResponseObjectItemsInner } from './ApiEsportTeamsGet200ResponseResponseObjectItemsInner';
|
|
17
|
+
import {
|
|
18
|
+
ApiEsportTeamsGet200ResponseResponseObjectItemsInnerFromJSON,
|
|
19
|
+
ApiEsportTeamsGet200ResponseResponseObjectItemsInnerFromJSONTyped,
|
|
20
|
+
ApiEsportTeamsGet200ResponseResponseObjectItemsInnerToJSON,
|
|
21
|
+
ApiEsportTeamsGet200ResponseResponseObjectItemsInnerToJSONTyped,
|
|
22
|
+
} from './ApiEsportTeamsGet200ResponseResponseObjectItemsInner';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ApiEsportTeamsIdGet200Response
|
|
28
|
+
*/
|
|
29
|
+
export interface ApiEsportTeamsIdGet200Response {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof ApiEsportTeamsIdGet200Response
|
|
34
|
+
*/
|
|
35
|
+
success: boolean;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ApiEsportTeamsIdGet200Response
|
|
40
|
+
*/
|
|
41
|
+
message: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {ApiEsportTeamsGet200ResponseResponseObjectItemsInner}
|
|
45
|
+
* @memberof ApiEsportTeamsIdGet200Response
|
|
46
|
+
*/
|
|
47
|
+
responseObject?: ApiEsportTeamsGet200ResponseResponseObjectItemsInner;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof ApiEsportTeamsIdGet200Response
|
|
52
|
+
*/
|
|
53
|
+
statusCode: number;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the ApiEsportTeamsIdGet200Response interface.
|
|
58
|
+
*/
|
|
59
|
+
export function instanceOfApiEsportTeamsIdGet200Response(value: object): value is ApiEsportTeamsIdGet200Response {
|
|
60
|
+
if (!('success' in value) || value['success'] === undefined) return false;
|
|
61
|
+
if (!('message' in value) || value['message'] === undefined) return false;
|
|
62
|
+
if (!('statusCode' in value) || value['statusCode'] === undefined) return false;
|
|
63
|
+
return true;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function ApiEsportTeamsIdGet200ResponseFromJSON(json: any): ApiEsportTeamsIdGet200Response {
|
|
67
|
+
return ApiEsportTeamsIdGet200ResponseFromJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function ApiEsportTeamsIdGet200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiEsportTeamsIdGet200Response {
|
|
71
|
+
if (json == null) {
|
|
72
|
+
return json;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'success': json['success'],
|
|
77
|
+
'message': json['message'],
|
|
78
|
+
'responseObject': json['responseObject'] == null ? undefined : ApiEsportTeamsGet200ResponseResponseObjectItemsInnerFromJSON(json['responseObject']),
|
|
79
|
+
'statusCode': json['statusCode'],
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function ApiEsportTeamsIdGet200ResponseToJSON(json: any): ApiEsportTeamsIdGet200Response {
|
|
84
|
+
return ApiEsportTeamsIdGet200ResponseToJSONTyped(json, false);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function ApiEsportTeamsIdGet200ResponseToJSONTyped(value?: ApiEsportTeamsIdGet200Response | null, ignoreDiscriminator: boolean = false): any {
|
|
88
|
+
if (value == null) {
|
|
89
|
+
return value;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
return {
|
|
93
|
+
|
|
94
|
+
'success': value['success'],
|
|
95
|
+
'message': value['message'],
|
|
96
|
+
'responseObject': ApiEsportTeamsGet200ResponseResponseObjectItemsInnerToJSON(value['responseObject']),
|
|
97
|
+
'statusCode': value['statusCode'],
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
|
package/models/index.ts
CHANGED
|
@@ -42,6 +42,7 @@ export * from './ApiEsportTeamsGet200Response';
|
|
|
42
42
|
export * from './ApiEsportTeamsGet200ResponseResponseObject';
|
|
43
43
|
export * from './ApiEsportTeamsGet200ResponseResponseObjectItemsInner';
|
|
44
44
|
export * from './ApiEsportTeamsGetFilterParameter';
|
|
45
|
+
export * from './ApiEsportTeamsIdGet200Response';
|
|
45
46
|
export * from './ApiEsportVideogamesGet200Response';
|
|
46
47
|
export * from './ApiEsportVideogamesGet200ResponseResponseObjectInner';
|
|
47
48
|
export * from './ApiHealthCheckGet200Response';
|