@drxsuperapp/sdk 1.1.217 → 1.1.218
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 -22
- package/dist/apis/EsportApi.d.ts +12 -1
- package/dist/apis/EsportApi.js +35 -1
- package/dist/models/ApiEsportMatchesIdGet200Response.d.ts +51 -0
- package/dist/models/ApiEsportMatchesIdGet200Response.js +54 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/models/ApiEsportMatchesIdGet200Response.ts +100 -0
- package/models/index.ts +1 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -38,6 +38,7 @@ models/ApiEsportMatchesGet200ResponseResponseObjectItemsInnerResultsInnerPlayers
|
|
|
38
38
|
models/ApiEsportMatchesGet200ResponseResponseObjectItemsInnerResultsInnerTeam.ts
|
|
39
39
|
models/ApiEsportMatchesGet200ResponseResponseObjectItemsInnerStreamsListInner.ts
|
|
40
40
|
models/ApiEsportMatchesGetFilterParameter.ts
|
|
41
|
+
models/ApiEsportMatchesIdGet200Response.ts
|
|
41
42
|
models/ApiEsportVideogamesGet200Response.ts
|
|
42
43
|
models/ApiEsportVideogamesGet200ResponseResponseObjectInner.ts
|
|
43
44
|
models/ApiHealthCheckGet200Response.ts
|
package/apis/EsportApi.ts
CHANGED
|
@@ -17,6 +17,7 @@ import * as runtime from '../runtime';
|
|
|
17
17
|
import type {
|
|
18
18
|
ApiEsportMatchesGet200Response,
|
|
19
19
|
ApiEsportMatchesGetFilterParameter,
|
|
20
|
+
ApiEsportMatchesIdGet200Response,
|
|
20
21
|
ApiEsportVideogamesGet200Response,
|
|
21
22
|
} from '../models/index';
|
|
22
23
|
import {
|
|
@@ -24,6 +25,8 @@ import {
|
|
|
24
25
|
ApiEsportMatchesGet200ResponseToJSON,
|
|
25
26
|
ApiEsportMatchesGetFilterParameterFromJSON,
|
|
26
27
|
ApiEsportMatchesGetFilterParameterToJSON,
|
|
28
|
+
ApiEsportMatchesIdGet200ResponseFromJSON,
|
|
29
|
+
ApiEsportMatchesIdGet200ResponseToJSON,
|
|
27
30
|
ApiEsportVideogamesGet200ResponseFromJSON,
|
|
28
31
|
ApiEsportVideogamesGet200ResponseToJSON,
|
|
29
32
|
} from '../models/index';
|
|
@@ -35,6 +38,10 @@ export interface ApiEsportMatchesGetRequest {
|
|
|
35
38
|
filter?: ApiEsportMatchesGetFilterParameter;
|
|
36
39
|
}
|
|
37
40
|
|
|
41
|
+
export interface ApiEsportMatchesIdGetRequest {
|
|
42
|
+
id: string;
|
|
43
|
+
}
|
|
44
|
+
|
|
38
45
|
/**
|
|
39
46
|
*
|
|
40
47
|
*/
|
|
@@ -94,6 +101,51 @@ export class EsportApi extends runtime.BaseAPI {
|
|
|
94
101
|
return await response.value();
|
|
95
102
|
}
|
|
96
103
|
|
|
104
|
+
/**
|
|
105
|
+
* Get Esport Match Details
|
|
106
|
+
*/
|
|
107
|
+
async apiEsportMatchesIdGetRaw(requestParameters: ApiEsportMatchesIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiEsportMatchesIdGet200Response>> {
|
|
108
|
+
if (requestParameters['id'] == null) {
|
|
109
|
+
throw new runtime.RequiredError(
|
|
110
|
+
'id',
|
|
111
|
+
'Required parameter "id" was null or undefined when calling apiEsportMatchesIdGet().'
|
|
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/matches/{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) => ApiEsportMatchesIdGet200ResponseFromJSON(jsonValue));
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* Get Esport Match Details
|
|
143
|
+
*/
|
|
144
|
+
async apiEsportMatchesIdGet(requestParameters: ApiEsportMatchesIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiEsportMatchesIdGet200Response> {
|
|
145
|
+
const response = await this.apiEsportMatchesIdGetRaw(requestParameters, initOverrides);
|
|
146
|
+
return await response.value();
|
|
147
|
+
}
|
|
148
|
+
|
|
97
149
|
/**
|
|
98
150
|
* Get All Esport\'s Video Games
|
|
99
151
|
*/
|
package/deploy.log
CHANGED
|
@@ -161,6 +161,7 @@
|
|
|
161
161
|
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_esport_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_matches_get_200_response_responseObject_items_inner=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_esport_matches_get_200_response_responseObject_items_inner=NewModel,ModelA=NewModelA in CLI).
|
|
162
162
|
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_esport_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_matches_get_200_response_responseObject=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_esport_matches_get_200_response_responseObject=NewModel,ModelA=NewModelA in CLI).
|
|
163
163
|
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_esport_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_matches_get_200_response=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_esport_matches_get_200_response=NewModel,ModelA=NewModelA in CLI).
|
|
164
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_esport_matches__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_matches__id__get_200_response=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_esport_matches__id__get_200_response=NewModel,ModelA=NewModelA in CLI).
|
|
164
165
|
[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/]
|
|
165
166
|
[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/]
|
|
166
167
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthLoginPost200Response.ts
|
|
@@ -189,6 +190,7 @@
|
|
|
189
190
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportMatchesGet200ResponseResponseObjectItemsInnerResultsInnerTeam.ts
|
|
190
191
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportMatchesGet200ResponseResponseObjectItemsInnerStreamsListInner.ts
|
|
191
192
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportMatchesGetFilterParameter.ts
|
|
193
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportMatchesIdGet200Response.ts
|
|
192
194
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportVideogamesGet200Response.ts
|
|
193
195
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportVideogamesGet200ResponseResponseObjectInner.ts
|
|
194
196
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiHealthCheckGet200Response.ts
|
|
@@ -368,6 +370,7 @@
|
|
|
368
370
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: post /api/auth/register/complete. Renamed to auto-generated operationId: apiAuthRegisterCompletePost
|
|
369
371
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/esport/videogames. Renamed to auto-generated operationId: apiEsportVideogamesGet
|
|
370
372
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/esport/matches. Renamed to auto-generated operationId: apiEsportMatchesGet
|
|
373
|
+
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/esport/matches/{id}. Renamed to auto-generated operationId: apiEsportMatchesIdGet
|
|
371
374
|
[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/]
|
|
372
375
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./apis/AppConfigApi.ts
|
|
373
376
|
[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/]
|
|
@@ -406,35 +409,21 @@
|
|
|
406
409
|
# https://opencollective.com/openapi_generator/donate #
|
|
407
410
|
################################################################################
|
|
408
411
|
✅ SDK generated
|
|
409
|
-
[master
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
delete mode 100644 models/ApiEsportIdMatchesGet200ResponseResponseObject.ts
|
|
413
|
-
delete mode 100644 models/ApiEsportIdMatchesGet200ResponseResponseObjectItemsInner.ts
|
|
414
|
-
delete mode 100644 models/ApiEsportIdMatchesGet200ResponseResponseObjectItemsInnerResultsInner.ts
|
|
415
|
-
delete mode 100644 models/ApiEsportIdMatchesGet200ResponseResponseObjectItemsInnerResultsInnerTeam.ts
|
|
416
|
-
delete mode 100644 models/ApiEsportIdMatchesGet200ResponseResponseObjectItemsInnerStreamsListInner.ts
|
|
417
|
-
delete mode 100644 models/ApiEsportMatchIdGet200Response.ts
|
|
418
|
-
create mode 100644 models/ApiEsportMatchesGet200Response.ts
|
|
419
|
-
create mode 100644 models/ApiEsportMatchesGet200ResponseResponseObject.ts
|
|
420
|
-
create mode 100644 models/ApiEsportMatchesGet200ResponseResponseObjectItemsInner.ts
|
|
421
|
-
create mode 100644 models/ApiEsportMatchesGet200ResponseResponseObjectItemsInnerResultsInner.ts
|
|
422
|
-
rename models/{ApiEsportIdMatchesGet200ResponseResponseObjectItemsInnerResultsInnerPlayersInner.ts => ApiEsportMatchesGet200ResponseResponseObjectItemsInnerResultsInnerPlayersInner.ts} (50%)
|
|
423
|
-
create mode 100644 models/ApiEsportMatchesGet200ResponseResponseObjectItemsInnerResultsInnerTeam.ts
|
|
424
|
-
create mode 100644 models/ApiEsportMatchesGet200ResponseResponseObjectItemsInnerStreamsListInner.ts
|
|
425
|
-
create mode 100644 models/ApiEsportMatchesGetFilterParameter.ts
|
|
412
|
+
[master 725c5b9] VPS: Generated API SDK
|
|
413
|
+
4 files changed, 154 insertions(+)
|
|
414
|
+
create mode 100644 models/ApiEsportMatchesIdGet200Response.ts
|
|
426
415
|
To https://gitlab.com/drx-super/drx-sdk.git
|
|
427
|
-
|
|
416
|
+
5c3ac6c..725c5b9 master -> master
|
|
428
417
|
✅ Changes committed and pushed
|
|
429
|
-
v1.1.
|
|
418
|
+
v1.1.218
|
|
430
419
|
To https://gitlab.com/drx-super/drx-sdk.git
|
|
431
|
-
|
|
420
|
+
725c5b9..2f37eef master -> master
|
|
432
421
|
✅ Version bumped
|
|
433
422
|
|
|
434
|
-
> @drxsuperapp/sdk@1.1.
|
|
423
|
+
> @drxsuperapp/sdk@1.1.218 prepublishOnly
|
|
435
424
|
> npm run build
|
|
436
425
|
|
|
437
426
|
|
|
438
|
-
> @drxsuperapp/sdk@1.1.
|
|
427
|
+
> @drxsuperapp/sdk@1.1.218 build
|
|
439
428
|
> tsc
|
|
440
429
|
|
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 { ApiEsportMatchesGet200Response, ApiEsportMatchesGetFilterParameter, ApiEsportVideogamesGet200Response } from '../models/index';
|
|
13
|
+
import type { ApiEsportMatchesGet200Response, ApiEsportMatchesGetFilterParameter, ApiEsportMatchesIdGet200Response, ApiEsportVideogamesGet200Response } from '../models/index';
|
|
14
14
|
export interface ApiEsportMatchesGetRequest {
|
|
15
15
|
page?: number;
|
|
16
16
|
pageSize?: number;
|
|
17
17
|
sort?: string;
|
|
18
18
|
filter?: ApiEsportMatchesGetFilterParameter;
|
|
19
19
|
}
|
|
20
|
+
export interface ApiEsportMatchesIdGetRequest {
|
|
21
|
+
id: string;
|
|
22
|
+
}
|
|
20
23
|
/**
|
|
21
24
|
*
|
|
22
25
|
*/
|
|
@@ -29,6 +32,14 @@ export declare class EsportApi extends runtime.BaseAPI {
|
|
|
29
32
|
* Get Esport Matches
|
|
30
33
|
*/
|
|
31
34
|
apiEsportMatchesGet(requestParameters?: ApiEsportMatchesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiEsportMatchesGet200Response>;
|
|
35
|
+
/**
|
|
36
|
+
* Get Esport Match Details
|
|
37
|
+
*/
|
|
38
|
+
apiEsportMatchesIdGetRaw(requestParameters: ApiEsportMatchesIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiEsportMatchesIdGet200Response>>;
|
|
39
|
+
/**
|
|
40
|
+
* Get Esport Match Details
|
|
41
|
+
*/
|
|
42
|
+
apiEsportMatchesIdGet(requestParameters: ApiEsportMatchesIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiEsportMatchesIdGet200Response>;
|
|
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 { ApiEsportMatchesGet200ResponseFromJSON, ApiEsportVideogamesGet200ResponseFromJSON, } from '../models/index';
|
|
15
|
+
import { ApiEsportMatchesGet200ResponseFromJSON, ApiEsportMatchesIdGet200ResponseFromJSON, ApiEsportVideogamesGet200ResponseFromJSON, } from '../models/index';
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
*/
|
|
@@ -60,6 +60,40 @@ export class EsportApi extends runtime.BaseAPI {
|
|
|
60
60
|
const response = await this.apiEsportMatchesGetRaw(requestParameters, initOverrides);
|
|
61
61
|
return await response.value();
|
|
62
62
|
}
|
|
63
|
+
/**
|
|
64
|
+
* Get Esport Match Details
|
|
65
|
+
*/
|
|
66
|
+
async apiEsportMatchesIdGetRaw(requestParameters, initOverrides) {
|
|
67
|
+
if (requestParameters['id'] == null) {
|
|
68
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiEsportMatchesIdGet().');
|
|
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/matches/{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) => ApiEsportMatchesIdGet200ResponseFromJSON(jsonValue));
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Get Esport Match Details
|
|
92
|
+
*/
|
|
93
|
+
async apiEsportMatchesIdGet(requestParameters, initOverrides) {
|
|
94
|
+
const response = await this.apiEsportMatchesIdGetRaw(requestParameters, initOverrides);
|
|
95
|
+
return await response.value();
|
|
96
|
+
}
|
|
63
97
|
/**
|
|
64
98
|
* Get All Esport\'s Video Games
|
|
65
99
|
*/
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DRX API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { ApiEsportMatchesGet200ResponseResponseObjectItemsInner } from './ApiEsportMatchesGet200ResponseResponseObjectItemsInner';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ApiEsportMatchesIdGet200Response
|
|
17
|
+
*/
|
|
18
|
+
export interface ApiEsportMatchesIdGet200Response {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {boolean}
|
|
22
|
+
* @memberof ApiEsportMatchesIdGet200Response
|
|
23
|
+
*/
|
|
24
|
+
success: boolean;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof ApiEsportMatchesIdGet200Response
|
|
29
|
+
*/
|
|
30
|
+
message: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {ApiEsportMatchesGet200ResponseResponseObjectItemsInner}
|
|
34
|
+
* @memberof ApiEsportMatchesIdGet200Response
|
|
35
|
+
*/
|
|
36
|
+
responseObject?: ApiEsportMatchesGet200ResponseResponseObjectItemsInner;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof ApiEsportMatchesIdGet200Response
|
|
41
|
+
*/
|
|
42
|
+
statusCode: number;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the ApiEsportMatchesIdGet200Response interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfApiEsportMatchesIdGet200Response(value: object): value is ApiEsportMatchesIdGet200Response;
|
|
48
|
+
export declare function ApiEsportMatchesIdGet200ResponseFromJSON(json: any): ApiEsportMatchesIdGet200Response;
|
|
49
|
+
export declare function ApiEsportMatchesIdGet200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiEsportMatchesIdGet200Response;
|
|
50
|
+
export declare function ApiEsportMatchesIdGet200ResponseToJSON(json: any): ApiEsportMatchesIdGet200Response;
|
|
51
|
+
export declare function ApiEsportMatchesIdGet200ResponseToJSONTyped(value?: ApiEsportMatchesIdGet200Response | 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 { ApiEsportMatchesGet200ResponseResponseObjectItemsInnerFromJSON, ApiEsportMatchesGet200ResponseResponseObjectItemsInnerToJSON, } from './ApiEsportMatchesGet200ResponseResponseObjectItemsInner';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the ApiEsportMatchesIdGet200Response interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfApiEsportMatchesIdGet200Response(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 ApiEsportMatchesIdGet200ResponseFromJSON(json) {
|
|
28
|
+
return ApiEsportMatchesIdGet200ResponseFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
export function ApiEsportMatchesIdGet200ResponseFromJSONTyped(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 : ApiEsportMatchesGet200ResponseResponseObjectItemsInnerFromJSON(json['responseObject']),
|
|
38
|
+
'statusCode': json['statusCode'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
export function ApiEsportMatchesIdGet200ResponseToJSON(json) {
|
|
42
|
+
return ApiEsportMatchesIdGet200ResponseToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
export function ApiEsportMatchesIdGet200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'success': value['success'],
|
|
50
|
+
'message': value['message'],
|
|
51
|
+
'responseObject': ApiEsportMatchesGet200ResponseResponseObjectItemsInnerToJSON(value['responseObject']),
|
|
52
|
+
'statusCode': value['statusCode'],
|
|
53
|
+
};
|
|
54
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -24,6 +24,7 @@ export * from './ApiEsportMatchesGet200ResponseResponseObjectItemsInnerResultsIn
|
|
|
24
24
|
export * from './ApiEsportMatchesGet200ResponseResponseObjectItemsInnerResultsInnerTeam';
|
|
25
25
|
export * from './ApiEsportMatchesGet200ResponseResponseObjectItemsInnerStreamsListInner';
|
|
26
26
|
export * from './ApiEsportMatchesGetFilterParameter';
|
|
27
|
+
export * from './ApiEsportMatchesIdGet200Response';
|
|
27
28
|
export * from './ApiEsportVideogamesGet200Response';
|
|
28
29
|
export * from './ApiEsportVideogamesGet200ResponseResponseObjectInner';
|
|
29
30
|
export * from './ApiHealthCheckGet200Response';
|
package/dist/models/index.js
CHANGED
|
@@ -26,6 +26,7 @@ export * from './ApiEsportMatchesGet200ResponseResponseObjectItemsInnerResultsIn
|
|
|
26
26
|
export * from './ApiEsportMatchesGet200ResponseResponseObjectItemsInnerResultsInnerTeam';
|
|
27
27
|
export * from './ApiEsportMatchesGet200ResponseResponseObjectItemsInnerStreamsListInner';
|
|
28
28
|
export * from './ApiEsportMatchesGetFilterParameter';
|
|
29
|
+
export * from './ApiEsportMatchesIdGet200Response';
|
|
29
30
|
export * from './ApiEsportVideogamesGet200Response';
|
|
30
31
|
export * from './ApiEsportVideogamesGet200ResponseResponseObjectInner';
|
|
31
32
|
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 { ApiEsportMatchesGet200ResponseResponseObjectItemsInner } from './ApiEsportMatchesGet200ResponseResponseObjectItemsInner';
|
|
17
|
+
import {
|
|
18
|
+
ApiEsportMatchesGet200ResponseResponseObjectItemsInnerFromJSON,
|
|
19
|
+
ApiEsportMatchesGet200ResponseResponseObjectItemsInnerFromJSONTyped,
|
|
20
|
+
ApiEsportMatchesGet200ResponseResponseObjectItemsInnerToJSON,
|
|
21
|
+
ApiEsportMatchesGet200ResponseResponseObjectItemsInnerToJSONTyped,
|
|
22
|
+
} from './ApiEsportMatchesGet200ResponseResponseObjectItemsInner';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ApiEsportMatchesIdGet200Response
|
|
28
|
+
*/
|
|
29
|
+
export interface ApiEsportMatchesIdGet200Response {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof ApiEsportMatchesIdGet200Response
|
|
34
|
+
*/
|
|
35
|
+
success: boolean;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ApiEsportMatchesIdGet200Response
|
|
40
|
+
*/
|
|
41
|
+
message: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {ApiEsportMatchesGet200ResponseResponseObjectItemsInner}
|
|
45
|
+
* @memberof ApiEsportMatchesIdGet200Response
|
|
46
|
+
*/
|
|
47
|
+
responseObject?: ApiEsportMatchesGet200ResponseResponseObjectItemsInner;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof ApiEsportMatchesIdGet200Response
|
|
52
|
+
*/
|
|
53
|
+
statusCode: number;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the ApiEsportMatchesIdGet200Response interface.
|
|
58
|
+
*/
|
|
59
|
+
export function instanceOfApiEsportMatchesIdGet200Response(value: object): value is ApiEsportMatchesIdGet200Response {
|
|
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 ApiEsportMatchesIdGet200ResponseFromJSON(json: any): ApiEsportMatchesIdGet200Response {
|
|
67
|
+
return ApiEsportMatchesIdGet200ResponseFromJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function ApiEsportMatchesIdGet200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiEsportMatchesIdGet200Response {
|
|
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 : ApiEsportMatchesGet200ResponseResponseObjectItemsInnerFromJSON(json['responseObject']),
|
|
79
|
+
'statusCode': json['statusCode'],
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function ApiEsportMatchesIdGet200ResponseToJSON(json: any): ApiEsportMatchesIdGet200Response {
|
|
84
|
+
return ApiEsportMatchesIdGet200ResponseToJSONTyped(json, false);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function ApiEsportMatchesIdGet200ResponseToJSONTyped(value?: ApiEsportMatchesIdGet200Response | 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': ApiEsportMatchesGet200ResponseResponseObjectItemsInnerToJSON(value['responseObject']),
|
|
97
|
+
'statusCode': value['statusCode'],
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
|
package/models/index.ts
CHANGED
|
@@ -26,6 +26,7 @@ export * from './ApiEsportMatchesGet200ResponseResponseObjectItemsInnerResultsIn
|
|
|
26
26
|
export * from './ApiEsportMatchesGet200ResponseResponseObjectItemsInnerResultsInnerTeam';
|
|
27
27
|
export * from './ApiEsportMatchesGet200ResponseResponseObjectItemsInnerStreamsListInner';
|
|
28
28
|
export * from './ApiEsportMatchesGetFilterParameter';
|
|
29
|
+
export * from './ApiEsportMatchesIdGet200Response';
|
|
29
30
|
export * from './ApiEsportVideogamesGet200Response';
|
|
30
31
|
export * from './ApiEsportVideogamesGet200ResponseResponseObjectInner';
|
|
31
32
|
export * from './ApiHealthCheckGet200Response';
|