@drxsuperapp/sdk 1.1.193 → 1.1.195
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 +12 -13
- package/dist/apis/EsportApi.d.ts +12 -1
- package/dist/apis/EsportApi.js +35 -1
- package/dist/models/ApiEsportMatchIdGet200Response.d.ts +51 -0
- package/dist/models/ApiEsportMatchIdGet200Response.js +54 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/models/ApiEsportMatchIdGet200Response.ts +100 -0
- package/models/index.ts +1 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -22,6 +22,7 @@ models/ApiEsportIdMatchesGet200Response.ts
|
|
|
22
22
|
models/ApiEsportIdMatchesGet200ResponseResponseObject.ts
|
|
23
23
|
models/ApiEsportIdMatchesGet200ResponseResponseObjectItemsInner.ts
|
|
24
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
|
@@ -16,11 +16,14 @@
|
|
|
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
|
ApiEsportIdMatchesGet200ResponseFromJSON,
|
|
23
24
|
ApiEsportIdMatchesGet200ResponseToJSON,
|
|
25
|
+
ApiEsportMatchIdGet200ResponseFromJSON,
|
|
26
|
+
ApiEsportMatchIdGet200ResponseToJSON,
|
|
24
27
|
ApiEsportVideogamesGet200ResponseFromJSON,
|
|
25
28
|
ApiEsportVideogamesGet200ResponseToJSON,
|
|
26
29
|
} from '../models/index';
|
|
@@ -32,6 +35,10 @@ export interface ApiEsportIdMatchesGetRequest {
|
|
|
32
35
|
searchTerm?: string;
|
|
33
36
|
}
|
|
34
37
|
|
|
38
|
+
export interface ApiEsportMatchIdGetRequest {
|
|
39
|
+
id: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
35
42
|
/**
|
|
36
43
|
*
|
|
37
44
|
*/
|
|
@@ -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 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);
|
|
146
|
+
return await response.value();
|
|
147
|
+
}
|
|
148
|
+
|
|
97
149
|
/**
|
|
98
150
|
* Get All Esport\'s Video Games
|
|
99
151
|
*/
|
package/deploy.log
CHANGED
|
@@ -145,6 +145,7 @@
|
|
|
145
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
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
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
|
|
@@ -157,6 +158,7 @@
|
|
|
157
158
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportIdMatchesGet200ResponseResponseObject.ts
|
|
158
159
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportIdMatchesGet200ResponseResponseObjectItemsInner.ts
|
|
159
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
|
|
@@ -332,6 +334,7 @@
|
|
|
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
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,25 +373,21 @@
|
|
|
370
373
|
# https://opencollective.com/openapi_generator/donate #
|
|
371
374
|
################################################################################
|
|
372
375
|
✅ SDK generated
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
rename models/{ApiEsportVgMatchesGet200ResponseResponseObjectItemsInnerResultsInner.ts => ApiEsportIdMatchesGet200ResponseResponseObjectItemsInnerResultsInner.ts} (59%)
|
|
379
|
-
delete mode 100644 models/ApiEsportVgMatchesGet200Response.ts
|
|
380
|
-
To https://gitlab.com/drx-super/drx-sdk.git
|
|
381
|
-
c58de39..fdd2189 master -> master
|
|
376
|
+
On branch master
|
|
377
|
+
Your branch is up to date with 'origin/master'.
|
|
378
|
+
|
|
379
|
+
nothing to commit, working tree clean
|
|
380
|
+
Everything up-to-date
|
|
382
381
|
✅ Changes committed and pushed
|
|
383
|
-
v1.1.
|
|
382
|
+
v1.1.195
|
|
384
383
|
To https://gitlab.com/drx-super/drx-sdk.git
|
|
385
|
-
|
|
384
|
+
5edcad6..e97f783 master -> master
|
|
386
385
|
✅ Version bumped
|
|
387
386
|
|
|
388
|
-
> @drxsuperapp/sdk@1.1.
|
|
387
|
+
> @drxsuperapp/sdk@1.1.195 prepublishOnly
|
|
389
388
|
> npm run build
|
|
390
389
|
|
|
391
390
|
|
|
392
|
-
> @drxsuperapp/sdk@1.1.
|
|
391
|
+
> @drxsuperapp/sdk@1.1.195 build
|
|
393
392
|
> tsc
|
|
394
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 { ApiEsportIdMatchesGet200Response, ApiEsportVideogamesGet200Response } from '../models/index';
|
|
13
|
+
import type { ApiEsportIdMatchesGet200Response, ApiEsportMatchIdGet200Response, ApiEsportVideogamesGet200Response } from '../models/index';
|
|
14
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
|
*/
|
|
@@ -29,6 +32,14 @@ export declare class EsportApi extends runtime.BaseAPI {
|
|
|
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 { ApiEsportIdMatchesGet200ResponseFromJSON, ApiEsportVideogamesGet200ResponseFromJSON, } from '../models/index';
|
|
15
|
+
import { ApiEsportIdMatchesGet200ResponseFromJSON, ApiEsportMatchIdGet200ResponseFromJSON, 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.apiEsportIdMatchesGetRaw(requestParameters, initOverrides);
|
|
61
61
|
return await response.value();
|
|
62
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);
|
|
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 { ApiEsportIdMatchesGet200ResponseResponseObjectItemsInner } from './ApiEsportIdMatchesGet200ResponseResponseObjectItemsInner';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ApiEsportMatchIdGet200Response
|
|
17
|
+
*/
|
|
18
|
+
export interface ApiEsportMatchIdGet200Response {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {boolean}
|
|
22
|
+
* @memberof ApiEsportMatchIdGet200Response
|
|
23
|
+
*/
|
|
24
|
+
success: boolean;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof ApiEsportMatchIdGet200Response
|
|
29
|
+
*/
|
|
30
|
+
message: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {ApiEsportIdMatchesGet200ResponseResponseObjectItemsInner}
|
|
34
|
+
* @memberof ApiEsportMatchIdGet200Response
|
|
35
|
+
*/
|
|
36
|
+
responseObject?: ApiEsportIdMatchesGet200ResponseResponseObjectItemsInner;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof ApiEsportMatchIdGet200Response
|
|
41
|
+
*/
|
|
42
|
+
statusCode: number;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the ApiEsportMatchIdGet200Response interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfApiEsportMatchIdGet200Response(value: object): value is ApiEsportMatchIdGet200Response;
|
|
48
|
+
export declare function ApiEsportMatchIdGet200ResponseFromJSON(json: any): ApiEsportMatchIdGet200Response;
|
|
49
|
+
export declare function ApiEsportMatchIdGet200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiEsportMatchIdGet200Response;
|
|
50
|
+
export declare function ApiEsportMatchIdGet200ResponseToJSON(json: any): ApiEsportMatchIdGet200Response;
|
|
51
|
+
export declare function ApiEsportMatchIdGet200ResponseToJSONTyped(value?: ApiEsportMatchIdGet200Response | 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 { ApiEsportIdMatchesGet200ResponseResponseObjectItemsInnerFromJSON, ApiEsportIdMatchesGet200ResponseResponseObjectItemsInnerToJSON, } from './ApiEsportIdMatchesGet200ResponseResponseObjectItemsInner';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the ApiEsportMatchIdGet200Response interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfApiEsportMatchIdGet200Response(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 ApiEsportMatchIdGet200ResponseFromJSON(json) {
|
|
28
|
+
return ApiEsportMatchIdGet200ResponseFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
export function ApiEsportMatchIdGet200ResponseFromJSONTyped(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 : ApiEsportIdMatchesGet200ResponseResponseObjectItemsInnerFromJSON(json['responseObject']),
|
|
38
|
+
'statusCode': json['statusCode'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
export function ApiEsportMatchIdGet200ResponseToJSON(json) {
|
|
42
|
+
return ApiEsportMatchIdGet200ResponseToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
export function ApiEsportMatchIdGet200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'success': value['success'],
|
|
50
|
+
'message': value['message'],
|
|
51
|
+
'responseObject': ApiEsportIdMatchesGet200ResponseResponseObjectItemsInnerToJSON(value['responseObject']),
|
|
52
|
+
'statusCode': value['statusCode'],
|
|
53
|
+
};
|
|
54
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export * from './ApiEsportIdMatchesGet200Response';
|
|
|
8
8
|
export * from './ApiEsportIdMatchesGet200ResponseResponseObject';
|
|
9
9
|
export * from './ApiEsportIdMatchesGet200ResponseResponseObjectItemsInner';
|
|
10
10
|
export * from './ApiEsportIdMatchesGet200ResponseResponseObjectItemsInnerResultsInner';
|
|
11
|
+
export * from './ApiEsportMatchIdGet200Response';
|
|
11
12
|
export * from './ApiEsportVideogamesGet200Response';
|
|
12
13
|
export * from './ApiEsportVideogamesGet200ResponseResponseObjectInner';
|
|
13
14
|
export * from './ApiHealthCheckGet200Response';
|
package/dist/models/index.js
CHANGED
|
@@ -10,6 +10,7 @@ export * from './ApiEsportIdMatchesGet200Response';
|
|
|
10
10
|
export * from './ApiEsportIdMatchesGet200ResponseResponseObject';
|
|
11
11
|
export * from './ApiEsportIdMatchesGet200ResponseResponseObjectItemsInner';
|
|
12
12
|
export * from './ApiEsportIdMatchesGet200ResponseResponseObjectItemsInnerResultsInner';
|
|
13
|
+
export * from './ApiEsportMatchIdGet200Response';
|
|
13
14
|
export * from './ApiEsportVideogamesGet200Response';
|
|
14
15
|
export * from './ApiEsportVideogamesGet200ResponseResponseObjectInner';
|
|
15
16
|
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 { ApiEsportIdMatchesGet200ResponseResponseObjectItemsInner } from './ApiEsportIdMatchesGet200ResponseResponseObjectItemsInner';
|
|
17
|
+
import {
|
|
18
|
+
ApiEsportIdMatchesGet200ResponseResponseObjectItemsInnerFromJSON,
|
|
19
|
+
ApiEsportIdMatchesGet200ResponseResponseObjectItemsInnerFromJSONTyped,
|
|
20
|
+
ApiEsportIdMatchesGet200ResponseResponseObjectItemsInnerToJSON,
|
|
21
|
+
ApiEsportIdMatchesGet200ResponseResponseObjectItemsInnerToJSONTyped,
|
|
22
|
+
} from './ApiEsportIdMatchesGet200ResponseResponseObjectItemsInner';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ApiEsportMatchIdGet200Response
|
|
28
|
+
*/
|
|
29
|
+
export interface ApiEsportMatchIdGet200Response {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof ApiEsportMatchIdGet200Response
|
|
34
|
+
*/
|
|
35
|
+
success: boolean;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ApiEsportMatchIdGet200Response
|
|
40
|
+
*/
|
|
41
|
+
message: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {ApiEsportIdMatchesGet200ResponseResponseObjectItemsInner}
|
|
45
|
+
* @memberof ApiEsportMatchIdGet200Response
|
|
46
|
+
*/
|
|
47
|
+
responseObject?: ApiEsportIdMatchesGet200ResponseResponseObjectItemsInner;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof ApiEsportMatchIdGet200Response
|
|
52
|
+
*/
|
|
53
|
+
statusCode: number;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the ApiEsportMatchIdGet200Response interface.
|
|
58
|
+
*/
|
|
59
|
+
export function instanceOfApiEsportMatchIdGet200Response(value: object): value is ApiEsportMatchIdGet200Response {
|
|
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 ApiEsportMatchIdGet200ResponseFromJSON(json: any): ApiEsportMatchIdGet200Response {
|
|
67
|
+
return ApiEsportMatchIdGet200ResponseFromJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function ApiEsportMatchIdGet200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiEsportMatchIdGet200Response {
|
|
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 : ApiEsportIdMatchesGet200ResponseResponseObjectItemsInnerFromJSON(json['responseObject']),
|
|
79
|
+
'statusCode': json['statusCode'],
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function ApiEsportMatchIdGet200ResponseToJSON(json: any): ApiEsportMatchIdGet200Response {
|
|
84
|
+
return ApiEsportMatchIdGet200ResponseToJSONTyped(json, false);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function ApiEsportMatchIdGet200ResponseToJSONTyped(value?: ApiEsportMatchIdGet200Response | 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': ApiEsportIdMatchesGet200ResponseResponseObjectItemsInnerToJSON(value['responseObject']),
|
|
97
|
+
'statusCode': value['statusCode'],
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
|
package/models/index.ts
CHANGED
|
@@ -10,6 +10,7 @@ export * from './ApiEsportIdMatchesGet200Response';
|
|
|
10
10
|
export * from './ApiEsportIdMatchesGet200ResponseResponseObject';
|
|
11
11
|
export * from './ApiEsportIdMatchesGet200ResponseResponseObjectItemsInner';
|
|
12
12
|
export * from './ApiEsportIdMatchesGet200ResponseResponseObjectItemsInnerResultsInner';
|
|
13
|
+
export * from './ApiEsportMatchIdGet200Response';
|
|
13
14
|
export * from './ApiEsportVideogamesGet200Response';
|
|
14
15
|
export * from './ApiEsportVideogamesGet200ResponseResponseObjectInner';
|
|
15
16
|
export * from './ApiHealthCheckGet200Response';
|