@drxsuperapp/sdk 1.1.215 → 1.1.217
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 +10 -8
- package/apis/AuthenticationApi.ts +6 -3
- package/apis/EsportApi.ts +24 -81
- package/deploy.log +43 -26
- package/dist/apis/AuthenticationApi.d.ts +3 -3
- package/dist/apis/AuthenticationApi.js +2 -2
- package/dist/apis/EsportApi.d.ts +10 -22
- package/dist/apis/EsportApi.js +14 -51
- package/dist/models/ApiAuthRegisterCompletePost200Response.d.ts +51 -0
- package/dist/models/{ApiEsportIdMatchesGet200Response.js → ApiAuthRegisterCompletePost200Response.js} +11 -11
- package/dist/models/ApiAuthRegisterCompletePost200ResponseResponseObject.d.ts +51 -0
- package/dist/models/ApiAuthRegisterCompletePost200ResponseResponseObject.js +54 -0
- package/dist/models/ApiAuthRegisterCompletePostRequest.d.ts +6 -0
- package/dist/models/ApiAuthRegisterCompletePostRequest.js +2 -0
- package/dist/models/ApiEsportMatchesGet200Response.d.ts +51 -0
- package/dist/models/{ApiEsportMatchIdGet200Response.js → ApiEsportMatchesGet200Response.js} +11 -11
- package/dist/models/ApiEsportMatchesGet200ResponseResponseObject.d.ts +57 -0
- package/dist/models/{ApiEsportIdMatchesGet200ResponseResponseObject.js → ApiEsportMatchesGet200ResponseResponseObject.js} +11 -11
- package/dist/models/ApiEsportMatchesGet200ResponseResponseObjectItemsInner.d.ts +101 -0
- package/dist/models/{ApiEsportIdMatchesGet200ResponseResponseObjectItemsInner.js → ApiEsportMatchesGet200ResponseResponseObjectItemsInner.js} +14 -14
- package/dist/models/ApiEsportMatchesGet200ResponseResponseObjectItemsInnerResultsInner.d.ts +52 -0
- package/dist/models/ApiEsportMatchesGet200ResponseResponseObjectItemsInnerResultsInner.js +49 -0
- package/dist/models/ApiEsportMatchesGet200ResponseResponseObjectItemsInnerResultsInnerPlayersInner.d.ts +92 -0
- package/dist/models/{ApiEsportIdMatchesGet200ResponseResponseObjectItemsInnerResultsInnerPlayersInner.js → ApiEsportMatchesGet200ResponseResponseObjectItemsInnerResultsInnerPlayersInner.js} +8 -8
- package/dist/models/ApiEsportMatchesGet200ResponseResponseObjectItemsInnerResultsInnerTeam.d.ts +68 -0
- package/dist/models/{ApiEsportIdMatchesGet200ResponseResponseObjectItemsInnerResultsInnerTeam.js → ApiEsportMatchesGet200ResponseResponseObjectItemsInnerResultsInnerTeam.js} +8 -8
- package/dist/models/ApiEsportMatchesGet200ResponseResponseObjectItemsInnerStreamsListInner.d.ts +56 -0
- package/dist/models/{ApiEsportIdMatchesGet200ResponseResponseObjectItemsInnerStreamsListInner.js → ApiEsportMatchesGet200ResponseResponseObjectItemsInnerStreamsListInner.js} +8 -8
- package/dist/models/ApiEsportMatchesGetFilterParameter.d.ts +46 -0
- package/dist/models/ApiEsportMatchesGetFilterParameter.js +47 -0
- package/dist/models/index.d.ts +10 -8
- package/dist/models/index.js +10 -8
- package/models/ApiAuthRegisterCompletePost200Response.ts +100 -0
- package/models/ApiAuthRegisterCompletePost200ResponseResponseObject.ts +100 -0
- package/models/ApiAuthRegisterCompletePostRequest.ts +8 -0
- package/models/ApiEsportMatchesGet200Response.ts +100 -0
- package/models/ApiEsportMatchesGet200ResponseResponseObject.ts +110 -0
- package/models/ApiEsportMatchesGet200ResponseResponseObjectItemsInner.ts +184 -0
- package/models/ApiEsportMatchesGet200ResponseResponseObjectItemsInnerResultsInner.ts +104 -0
- package/models/{ApiEsportIdMatchesGet200ResponseResponseObjectItemsInnerResultsInnerPlayersInner.ts → ApiEsportMatchesGet200ResponseResponseObjectItemsInnerResultsInnerPlayersInner.ts} +21 -21
- package/models/ApiEsportMatchesGet200ResponseResponseObjectItemsInnerResultsInnerTeam.ts +117 -0
- package/models/ApiEsportMatchesGet200ResponseResponseObjectItemsInnerStreamsListInner.ts +102 -0
- package/models/ApiEsportMatchesGetFilterParameter.ts +96 -0
- package/models/index.ts +10 -8
- package/package.json +1 -1
- package/dist/models/ApiEsportIdMatchesGet200Response.d.ts +0 -51
- package/dist/models/ApiEsportIdMatchesGet200ResponseResponseObject.d.ts +0 -57
- package/dist/models/ApiEsportIdMatchesGet200ResponseResponseObjectItemsInner.d.ts +0 -101
- package/dist/models/ApiEsportIdMatchesGet200ResponseResponseObjectItemsInnerResultsInner.d.ts +0 -52
- package/dist/models/ApiEsportIdMatchesGet200ResponseResponseObjectItemsInnerResultsInner.js +0 -49
- package/dist/models/ApiEsportIdMatchesGet200ResponseResponseObjectItemsInnerResultsInnerPlayersInner.d.ts +0 -92
- package/dist/models/ApiEsportIdMatchesGet200ResponseResponseObjectItemsInnerResultsInnerTeam.d.ts +0 -68
- package/dist/models/ApiEsportIdMatchesGet200ResponseResponseObjectItemsInnerStreamsListInner.d.ts +0 -56
- package/dist/models/ApiEsportMatchIdGet200Response.d.ts +0 -51
- package/models/ApiEsportIdMatchesGet200Response.ts +0 -100
- package/models/ApiEsportIdMatchesGet200ResponseResponseObject.ts +0 -110
- package/models/ApiEsportIdMatchesGet200ResponseResponseObjectItemsInner.ts +0 -184
- package/models/ApiEsportIdMatchesGet200ResponseResponseObjectItemsInnerResultsInner.ts +0 -104
- package/models/ApiEsportIdMatchesGet200ResponseResponseObjectItemsInnerResultsInnerTeam.ts +0 -117
- package/models/ApiEsportIdMatchesGet200ResponseResponseObjectItemsInnerStreamsListInner.ts +0 -102
- package/models/ApiEsportMatchIdGet200Response.ts +0 -100
package/.openapi-generator/FILES
CHANGED
|
@@ -18,6 +18,8 @@ models/ApiAuthLoginPost200ResponseResponseObjectUser.ts
|
|
|
18
18
|
models/ApiAuthLoginPostRequest.ts
|
|
19
19
|
models/ApiAuthRefreshPost200Response.ts
|
|
20
20
|
models/ApiAuthRefreshPost200ResponseResponseObject.ts
|
|
21
|
+
models/ApiAuthRegisterCompletePost200Response.ts
|
|
22
|
+
models/ApiAuthRegisterCompletePost200ResponseResponseObject.ts
|
|
21
23
|
models/ApiAuthRegisterCompletePostRequest.ts
|
|
22
24
|
models/ApiAuthRegisterStartPost200Response.ts
|
|
23
25
|
models/ApiAuthRegisterStartPost200ResponseResponseObject.ts
|
|
@@ -28,14 +30,14 @@ models/ApiAuthRegisterVerifyOtpPostRequest.ts
|
|
|
28
30
|
models/ApiAuthSocialMobilePost200Response.ts
|
|
29
31
|
models/ApiAuthSocialMobilePost200ResponseResponseObject.ts
|
|
30
32
|
models/ApiAuthSocialMobilePostRequest.ts
|
|
31
|
-
models/
|
|
32
|
-
models/
|
|
33
|
-
models/
|
|
34
|
-
models/
|
|
35
|
-
models/
|
|
36
|
-
models/
|
|
37
|
-
models/
|
|
38
|
-
models/
|
|
33
|
+
models/ApiEsportMatchesGet200Response.ts
|
|
34
|
+
models/ApiEsportMatchesGet200ResponseResponseObject.ts
|
|
35
|
+
models/ApiEsportMatchesGet200ResponseResponseObjectItemsInner.ts
|
|
36
|
+
models/ApiEsportMatchesGet200ResponseResponseObjectItemsInnerResultsInner.ts
|
|
37
|
+
models/ApiEsportMatchesGet200ResponseResponseObjectItemsInnerResultsInnerPlayersInner.ts
|
|
38
|
+
models/ApiEsportMatchesGet200ResponseResponseObjectItemsInnerResultsInnerTeam.ts
|
|
39
|
+
models/ApiEsportMatchesGet200ResponseResponseObjectItemsInnerStreamsListInner.ts
|
|
40
|
+
models/ApiEsportMatchesGetFilterParameter.ts
|
|
39
41
|
models/ApiEsportVideogamesGet200Response.ts
|
|
40
42
|
models/ApiEsportVideogamesGet200ResponseResponseObjectInner.ts
|
|
41
43
|
models/ApiHealthCheckGet200Response.ts
|
|
@@ -18,6 +18,7 @@ import type {
|
|
|
18
18
|
ApiAuthLoginPost200Response,
|
|
19
19
|
ApiAuthLoginPostRequest,
|
|
20
20
|
ApiAuthRefreshPost200Response,
|
|
21
|
+
ApiAuthRegisterCompletePost200Response,
|
|
21
22
|
ApiAuthRegisterCompletePostRequest,
|
|
22
23
|
ApiAuthRegisterStartPost200Response,
|
|
23
24
|
ApiAuthRegisterStartPostRequest,
|
|
@@ -34,6 +35,8 @@ import {
|
|
|
34
35
|
ApiAuthLoginPostRequestToJSON,
|
|
35
36
|
ApiAuthRefreshPost200ResponseFromJSON,
|
|
36
37
|
ApiAuthRefreshPost200ResponseToJSON,
|
|
38
|
+
ApiAuthRegisterCompletePost200ResponseFromJSON,
|
|
39
|
+
ApiAuthRegisterCompletePost200ResponseToJSON,
|
|
37
40
|
ApiAuthRegisterCompletePostRequestFromJSON,
|
|
38
41
|
ApiAuthRegisterCompletePostRequestToJSON,
|
|
39
42
|
ApiAuthRegisterStartPost200ResponseFromJSON,
|
|
@@ -164,7 +167,7 @@ export class AuthenticationApi extends runtime.BaseAPI {
|
|
|
164
167
|
* Complete registration by setting password and creating user account
|
|
165
168
|
* Register 3. Complete User Registration
|
|
166
169
|
*/
|
|
167
|
-
async apiAuthRegisterCompletePostRaw(requestParameters: ApiAuthRegisterCompletePostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
170
|
+
async apiAuthRegisterCompletePostRaw(requestParameters: ApiAuthRegisterCompletePostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiAuthRegisterCompletePost200Response>> {
|
|
168
171
|
const queryParameters: any = {};
|
|
169
172
|
|
|
170
173
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -191,14 +194,14 @@ export class AuthenticationApi extends runtime.BaseAPI {
|
|
|
191
194
|
body: ApiAuthRegisterCompletePostRequestToJSON(requestParameters['apiAuthRegisterCompletePostRequest']),
|
|
192
195
|
}, initOverrides);
|
|
193
196
|
|
|
194
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
197
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiAuthRegisterCompletePost200ResponseFromJSON(jsonValue));
|
|
195
198
|
}
|
|
196
199
|
|
|
197
200
|
/**
|
|
198
201
|
* Complete registration by setting password and creating user account
|
|
199
202
|
* Register 3. Complete User Registration
|
|
200
203
|
*/
|
|
201
|
-
async apiAuthRegisterCompletePost(requestParameters: ApiAuthRegisterCompletePostOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
204
|
+
async apiAuthRegisterCompletePost(requestParameters: ApiAuthRegisterCompletePostOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiAuthRegisterCompletePost200Response> {
|
|
202
205
|
const response = await this.apiAuthRegisterCompletePostRaw(requestParameters, initOverrides);
|
|
203
206
|
return await response.value();
|
|
204
207
|
}
|
package/apis/EsportApi.ts
CHANGED
|
@@ -15,29 +15,24 @@
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
ApiEsportMatchesGet200Response,
|
|
19
|
+
ApiEsportMatchesGetFilterParameter,
|
|
20
20
|
ApiEsportVideogamesGet200Response,
|
|
21
21
|
} from '../models/index';
|
|
22
22
|
import {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
23
|
+
ApiEsportMatchesGet200ResponseFromJSON,
|
|
24
|
+
ApiEsportMatchesGet200ResponseToJSON,
|
|
25
|
+
ApiEsportMatchesGetFilterParameterFromJSON,
|
|
26
|
+
ApiEsportMatchesGetFilterParameterToJSON,
|
|
27
27
|
ApiEsportVideogamesGet200ResponseFromJSON,
|
|
28
28
|
ApiEsportVideogamesGet200ResponseToJSON,
|
|
29
29
|
} from '../models/index';
|
|
30
30
|
|
|
31
|
-
export interface
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
status?: string;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export interface ApiEsportMatchIdGetRequest {
|
|
40
|
-
id: string;
|
|
31
|
+
export interface ApiEsportMatchesGetRequest {
|
|
32
|
+
page?: number;
|
|
33
|
+
pageSize?: number;
|
|
34
|
+
sort?: string;
|
|
35
|
+
filter?: ApiEsportMatchesGetFilterParameter;
|
|
41
36
|
}
|
|
42
37
|
|
|
43
38
|
/**
|
|
@@ -46,78 +41,26 @@ export interface ApiEsportMatchIdGetRequest {
|
|
|
46
41
|
export class EsportApi extends runtime.BaseAPI {
|
|
47
42
|
|
|
48
43
|
/**
|
|
49
|
-
* Get Esport Matches
|
|
44
|
+
* Get Esport Matches
|
|
50
45
|
*/
|
|
51
|
-
async
|
|
52
|
-
if (requestParameters['id'] == null) {
|
|
53
|
-
throw new runtime.RequiredError(
|
|
54
|
-
'id',
|
|
55
|
-
'Required parameter "id" was null or undefined when calling apiEsportIdMatchesGet().'
|
|
56
|
-
);
|
|
57
|
-
}
|
|
58
|
-
|
|
46
|
+
async apiEsportMatchesGetRaw(requestParameters: ApiEsportMatchesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiEsportMatchesGet200Response>> {
|
|
59
47
|
const queryParameters: any = {};
|
|
60
48
|
|
|
61
49
|
if (requestParameters['page'] != null) {
|
|
62
50
|
queryParameters['page'] = requestParameters['page'];
|
|
63
51
|
}
|
|
64
52
|
|
|
65
|
-
if (requestParameters['
|
|
66
|
-
queryParameters['
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
if (requestParameters['searchTerm'] != null) {
|
|
70
|
-
queryParameters['searchTerm'] = requestParameters['searchTerm'];
|
|
53
|
+
if (requestParameters['pageSize'] != null) {
|
|
54
|
+
queryParameters['pageSize'] = requestParameters['pageSize'];
|
|
71
55
|
}
|
|
72
56
|
|
|
73
|
-
if (requestParameters['
|
|
74
|
-
queryParameters['
|
|
57
|
+
if (requestParameters['sort'] != null) {
|
|
58
|
+
queryParameters['sort'] = requestParameters['sort'];
|
|
75
59
|
}
|
|
76
60
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
80
|
-
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
84
|
-
const token = this.configuration.accessToken;
|
|
85
|
-
const tokenString = await token("BearerAuth", []);
|
|
86
|
-
|
|
87
|
-
if (tokenString) {
|
|
88
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
89
|
-
}
|
|
61
|
+
if (requestParameters['filter'] != null) {
|
|
62
|
+
queryParameters['filter'] = requestParameters['filter'];
|
|
90
63
|
}
|
|
91
|
-
const response = await this.request({
|
|
92
|
-
path: `/api/esport/{id}/matches`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
93
|
-
method: 'GET',
|
|
94
|
-
headers: headerParameters,
|
|
95
|
-
query: queryParameters,
|
|
96
|
-
}, initOverrides);
|
|
97
|
-
|
|
98
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => ApiEsportIdMatchesGet200ResponseFromJSON(jsonValue));
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
/**
|
|
102
|
-
* Get Esport Matches Based On VG
|
|
103
|
-
*/
|
|
104
|
-
async apiEsportIdMatchesGet(requestParameters: ApiEsportIdMatchesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiEsportIdMatchesGet200Response> {
|
|
105
|
-
const response = await this.apiEsportIdMatchesGetRaw(requestParameters, initOverrides);
|
|
106
|
-
return await response.value();
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
/**
|
|
110
|
-
* Get Esport Match Details
|
|
111
|
-
*/
|
|
112
|
-
async apiEsportMatchIdGetRaw(requestParameters: ApiEsportMatchIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiEsportMatchIdGet200Response>> {
|
|
113
|
-
if (requestParameters['id'] == null) {
|
|
114
|
-
throw new runtime.RequiredError(
|
|
115
|
-
'id',
|
|
116
|
-
'Required parameter "id" was null or undefined when calling apiEsportMatchIdGet().'
|
|
117
|
-
);
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
const queryParameters: any = {};
|
|
121
64
|
|
|
122
65
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
123
66
|
|
|
@@ -134,20 +77,20 @@ export class EsportApi extends runtime.BaseAPI {
|
|
|
134
77
|
}
|
|
135
78
|
}
|
|
136
79
|
const response = await this.request({
|
|
137
|
-
path: `/api/esport/
|
|
80
|
+
path: `/api/esport/matches`,
|
|
138
81
|
method: 'GET',
|
|
139
82
|
headers: headerParameters,
|
|
140
83
|
query: queryParameters,
|
|
141
84
|
}, initOverrides);
|
|
142
85
|
|
|
143
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
86
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiEsportMatchesGet200ResponseFromJSON(jsonValue));
|
|
144
87
|
}
|
|
145
88
|
|
|
146
89
|
/**
|
|
147
|
-
* Get Esport
|
|
90
|
+
* Get Esport Matches
|
|
148
91
|
*/
|
|
149
|
-
async
|
|
150
|
-
const response = await this.
|
|
92
|
+
async apiEsportMatchesGet(requestParameters: ApiEsportMatchesGetRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiEsportMatchesGet200Response> {
|
|
93
|
+
const response = await this.apiEsportMatchesGetRaw(requestParameters, initOverrides);
|
|
151
94
|
return await response.value();
|
|
152
95
|
}
|
|
153
96
|
|
package/deploy.log
CHANGED
|
@@ -149,16 +149,18 @@
|
|
|
149
149
|
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_auth_register_verify_otp_post_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_auth_register_verify_otp_post_200_response_responseObject=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_auth_register_verify_otp_post_200_response_responseObject=NewModel,ModelA=NewModelA in CLI).
|
|
150
150
|
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_auth_register_verify_otp_post_200_response. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_auth_register_verify_otp_post_200_response=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_auth_register_verify_otp_post_200_response=NewModel,ModelA=NewModelA in CLI).
|
|
151
151
|
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_auth_register_complete_post_request. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_auth_register_complete_post_request=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_auth_register_complete_post_request=NewModel,ModelA=NewModelA in CLI).
|
|
152
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_auth_register_complete_post_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_auth_register_complete_post_200_response_responseObject=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_auth_register_complete_post_200_response_responseObject=NewModel,ModelA=NewModelA in CLI).
|
|
153
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_auth_register_complete_post_200_response. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_auth_register_complete_post_200_response=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_auth_register_complete_post_200_response=NewModel,ModelA=NewModelA in CLI).
|
|
152
154
|
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_esport_videogames_get_200_response_responseObject_inner. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_esport_videogames_get_200_response_responseObject_inner=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_esport_videogames_get_200_response_responseObject_inner=NewModel,ModelA=NewModelA in CLI).
|
|
153
155
|
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_esport_videogames_get_200_response. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_esport_videogames_get_200_response=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_esport_videogames_get_200_response=NewModel,ModelA=NewModelA in CLI).
|
|
154
|
-
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as
|
|
155
|
-
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as
|
|
156
|
-
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as
|
|
157
|
-
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as
|
|
158
|
-
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as
|
|
159
|
-
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as
|
|
160
|
-
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as
|
|
161
|
-
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as
|
|
156
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_esport_matches_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_matches_get_filter_parameter=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_esport_matches_get_filter_parameter=NewModel,ModelA=NewModelA in CLI).
|
|
157
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_esport_matches_get_200_response_responseObject_items_inner_results_inner_team. 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_results_inner_team=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_esport_matches_get_200_response_responseObject_items_inner_results_inner_team=NewModel,ModelA=NewModelA in CLI).
|
|
158
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_esport_matches_get_200_response_responseObject_items_inner_results_inner_players_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_results_inner_players_inner=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_esport_matches_get_200_response_responseObject_items_inner_results_inner_players_inner=NewModel,ModelA=NewModelA in CLI).
|
|
159
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_esport_matches_get_200_response_responseObject_items_inner_results_inner. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_esport_matches_get_200_response_responseObject_items_inner_results_inner=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_esport_matches_get_200_response_responseObject_items_inner_results_inner=NewModel,ModelA=NewModelA in CLI).
|
|
160
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_esport_matches_get_200_response_responseObject_items_inner_streams_list_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_streams_list_inner=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_esport_matches_get_200_response_responseObject_items_inner_streams_list_inner=NewModel,ModelA=NewModelA in CLI).
|
|
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
|
+
[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
|
+
[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).
|
|
162
164
|
[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/]
|
|
163
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/]
|
|
164
166
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthLoginPost200Response.ts
|
|
@@ -167,6 +169,8 @@
|
|
|
167
169
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthLoginPostRequest.ts
|
|
168
170
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthRefreshPost200Response.ts
|
|
169
171
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthRefreshPost200ResponseResponseObject.ts
|
|
172
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthRegisterCompletePost200Response.ts
|
|
173
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthRegisterCompletePost200ResponseResponseObject.ts
|
|
170
174
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthRegisterCompletePostRequest.ts
|
|
171
175
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthRegisterStartPost200Response.ts
|
|
172
176
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthRegisterStartPost200ResponseResponseObject.ts
|
|
@@ -177,14 +181,14 @@
|
|
|
177
181
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthSocialMobilePost200Response.ts
|
|
178
182
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthSocialMobilePost200ResponseResponseObject.ts
|
|
179
183
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthSocialMobilePostRequest.ts
|
|
180
|
-
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/
|
|
181
|
-
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/
|
|
182
|
-
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/
|
|
183
|
-
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/
|
|
184
|
-
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/
|
|
185
|
-
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/
|
|
186
|
-
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/
|
|
187
|
-
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/
|
|
184
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportMatchesGet200Response.ts
|
|
185
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportMatchesGet200ResponseResponseObject.ts
|
|
186
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportMatchesGet200ResponseResponseObjectItemsInner.ts
|
|
187
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportMatchesGet200ResponseResponseObjectItemsInnerResultsInner.ts
|
|
188
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportMatchesGet200ResponseResponseObjectItemsInnerResultsInnerPlayersInner.ts
|
|
189
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportMatchesGet200ResponseResponseObjectItemsInnerResultsInnerTeam.ts
|
|
190
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportMatchesGet200ResponseResponseObjectItemsInnerStreamsListInner.ts
|
|
191
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportMatchesGetFilterParameter.ts
|
|
188
192
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportVideogamesGet200Response.ts
|
|
189
193
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportVideogamesGet200ResponseResponseObjectInner.ts
|
|
190
194
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiHealthCheckGet200Response.ts
|
|
@@ -363,8 +367,7 @@
|
|
|
363
367
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: post /api/auth/register/verify-otp. Renamed to auto-generated operationId: apiAuthRegisterVerifyOtpPost
|
|
364
368
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: post /api/auth/register/complete. Renamed to auto-generated operationId: apiAuthRegisterCompletePost
|
|
365
369
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/esport/videogames. Renamed to auto-generated operationId: apiEsportVideogamesGet
|
|
366
|
-
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/esport/
|
|
367
|
-
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/esport/match/{id}. Renamed to auto-generated operationId: apiEsportMatchIdGet
|
|
370
|
+
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/esport/matches. Renamed to auto-generated operationId: apiEsportMatchesGet
|
|
368
371
|
[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/]
|
|
369
372
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./apis/AppConfigApi.ts
|
|
370
373
|
[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/]
|
|
@@ -403,21 +406,35 @@
|
|
|
403
406
|
# https://opencollective.com/openapi_generator/donate #
|
|
404
407
|
################################################################################
|
|
405
408
|
✅ SDK generated
|
|
406
|
-
[master
|
|
407
|
-
|
|
408
|
-
delete mode 100644
|
|
409
|
+
[master 7c8a096] VPS: Generated API SDK
|
|
410
|
+
18 files changed, 874 insertions(+), 935 deletions(-)
|
|
411
|
+
delete mode 100644 models/ApiEsportIdMatchesGet200Response.ts
|
|
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
|
|
409
426
|
To https://gitlab.com/drx-super/drx-sdk.git
|
|
410
|
-
|
|
427
|
+
14457b9..7c8a096 master -> master
|
|
411
428
|
✅ Changes committed and pushed
|
|
412
|
-
v1.1.
|
|
429
|
+
v1.1.217
|
|
413
430
|
To https://gitlab.com/drx-super/drx-sdk.git
|
|
414
|
-
|
|
431
|
+
7c8a096..5c3ac6c master -> master
|
|
415
432
|
✅ Version bumped
|
|
416
433
|
|
|
417
|
-
> @drxsuperapp/sdk@1.1.
|
|
434
|
+
> @drxsuperapp/sdk@1.1.217 prepublishOnly
|
|
418
435
|
> npm run build
|
|
419
436
|
|
|
420
437
|
|
|
421
|
-
> @drxsuperapp/sdk@1.1.
|
|
438
|
+
> @drxsuperapp/sdk@1.1.217 build
|
|
422
439
|
> tsc
|
|
423
440
|
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { ApiAuthLoginPost200Response, ApiAuthLoginPostRequest, ApiAuthRefreshPost200Response, ApiAuthRegisterCompletePostRequest, ApiAuthRegisterStartPost200Response, ApiAuthRegisterStartPostRequest, ApiAuthRegisterVerifyOtpPost200Response, ApiAuthRegisterVerifyOtpPostRequest, ApiAuthSocialMobilePost200Response, ApiAuthSocialMobilePostRequest, ApiUserGet200Response } from '../models/index';
|
|
13
|
+
import type { ApiAuthLoginPost200Response, ApiAuthLoginPostRequest, ApiAuthRefreshPost200Response, ApiAuthRegisterCompletePost200Response, ApiAuthRegisterCompletePostRequest, ApiAuthRegisterStartPost200Response, ApiAuthRegisterStartPostRequest, ApiAuthRegisterVerifyOtpPost200Response, ApiAuthRegisterVerifyOtpPostRequest, ApiAuthSocialMobilePost200Response, ApiAuthSocialMobilePostRequest, ApiUserGet200Response } from '../models/index';
|
|
14
14
|
export interface ApiAuthLoginPostOperationRequest {
|
|
15
15
|
apiAuthLoginPostRequest?: ApiAuthLoginPostRequest;
|
|
16
16
|
}
|
|
@@ -54,12 +54,12 @@ export declare class AuthenticationApi extends runtime.BaseAPI {
|
|
|
54
54
|
* Complete registration by setting password and creating user account
|
|
55
55
|
* Register 3. Complete User Registration
|
|
56
56
|
*/
|
|
57
|
-
apiAuthRegisterCompletePostRaw(requestParameters: ApiAuthRegisterCompletePostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
57
|
+
apiAuthRegisterCompletePostRaw(requestParameters: ApiAuthRegisterCompletePostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiAuthRegisterCompletePost200Response>>;
|
|
58
58
|
/**
|
|
59
59
|
* Complete registration by setting password and creating user account
|
|
60
60
|
* Register 3. Complete User Registration
|
|
61
61
|
*/
|
|
62
|
-
apiAuthRegisterCompletePost(requestParameters?: ApiAuthRegisterCompletePostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
62
|
+
apiAuthRegisterCompletePost(requestParameters?: ApiAuthRegisterCompletePostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiAuthRegisterCompletePost200Response>;
|
|
63
63
|
/**
|
|
64
64
|
* Start registration process by sending OTP to email
|
|
65
65
|
* Register 1. Start User Registration
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import * as runtime from '../runtime';
|
|
15
|
-
import { ApiAuthLoginPost200ResponseFromJSON, ApiAuthLoginPostRequestToJSON, ApiAuthRefreshPost200ResponseFromJSON, ApiAuthRegisterCompletePostRequestToJSON, ApiAuthRegisterStartPost200ResponseFromJSON, ApiAuthRegisterStartPostRequestToJSON, ApiAuthRegisterVerifyOtpPost200ResponseFromJSON, ApiAuthRegisterVerifyOtpPostRequestToJSON, ApiAuthSocialMobilePost200ResponseFromJSON, ApiAuthSocialMobilePostRequestToJSON, ApiUserGet200ResponseFromJSON, } from '../models/index';
|
|
15
|
+
import { ApiAuthLoginPost200ResponseFromJSON, ApiAuthLoginPostRequestToJSON, ApiAuthRefreshPost200ResponseFromJSON, ApiAuthRegisterCompletePost200ResponseFromJSON, ApiAuthRegisterCompletePostRequestToJSON, ApiAuthRegisterStartPost200ResponseFromJSON, ApiAuthRegisterStartPostRequestToJSON, ApiAuthRegisterVerifyOtpPost200ResponseFromJSON, ApiAuthRegisterVerifyOtpPostRequestToJSON, ApiAuthSocialMobilePost200ResponseFromJSON, ApiAuthSocialMobilePostRequestToJSON, ApiUserGet200ResponseFromJSON, } from '../models/index';
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
*/
|
|
@@ -110,7 +110,7 @@ export class AuthenticationApi extends runtime.BaseAPI {
|
|
|
110
110
|
query: queryParameters,
|
|
111
111
|
body: ApiAuthRegisterCompletePostRequestToJSON(requestParameters['apiAuthRegisterCompletePostRequest']),
|
|
112
112
|
}, initOverrides);
|
|
113
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
113
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiAuthRegisterCompletePost200ResponseFromJSON(jsonValue));
|
|
114
114
|
}
|
|
115
115
|
/**
|
|
116
116
|
* Complete registration by setting password and creating user account
|
package/dist/apis/EsportApi.d.ts
CHANGED
|
@@ -10,37 +10,25 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type {
|
|
14
|
-
export interface
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
status?: string;
|
|
20
|
-
}
|
|
21
|
-
export interface ApiEsportMatchIdGetRequest {
|
|
22
|
-
id: string;
|
|
13
|
+
import type { ApiEsportMatchesGet200Response, ApiEsportMatchesGetFilterParameter, ApiEsportVideogamesGet200Response } from '../models/index';
|
|
14
|
+
export interface ApiEsportMatchesGetRequest {
|
|
15
|
+
page?: number;
|
|
16
|
+
pageSize?: number;
|
|
17
|
+
sort?: string;
|
|
18
|
+
filter?: ApiEsportMatchesGetFilterParameter;
|
|
23
19
|
}
|
|
24
20
|
/**
|
|
25
21
|
*
|
|
26
22
|
*/
|
|
27
23
|
export declare class EsportApi extends runtime.BaseAPI {
|
|
28
24
|
/**
|
|
29
|
-
* Get Esport Matches
|
|
30
|
-
*/
|
|
31
|
-
apiEsportIdMatchesGetRaw(requestParameters: ApiEsportIdMatchesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiEsportIdMatchesGet200Response>>;
|
|
32
|
-
/**
|
|
33
|
-
* Get Esport Matches Based On VG
|
|
34
|
-
*/
|
|
35
|
-
apiEsportIdMatchesGet(requestParameters: ApiEsportIdMatchesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiEsportIdMatchesGet200Response>;
|
|
36
|
-
/**
|
|
37
|
-
* Get Esport Match Details
|
|
25
|
+
* Get Esport Matches
|
|
38
26
|
*/
|
|
39
|
-
|
|
27
|
+
apiEsportMatchesGetRaw(requestParameters: ApiEsportMatchesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiEsportMatchesGet200Response>>;
|
|
40
28
|
/**
|
|
41
|
-
* Get Esport
|
|
29
|
+
* Get Esport Matches
|
|
42
30
|
*/
|
|
43
|
-
|
|
31
|
+
apiEsportMatchesGet(requestParameters?: ApiEsportMatchesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiEsportMatchesGet200Response>;
|
|
44
32
|
/**
|
|
45
33
|
* Get All Esport\'s Video Games
|
|
46
34
|
*/
|
package/dist/apis/EsportApi.js
CHANGED
|
@@ -12,65 +12,28 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import * as runtime from '../runtime';
|
|
15
|
-
import {
|
|
15
|
+
import { ApiEsportMatchesGet200ResponseFromJSON, ApiEsportVideogamesGet200ResponseFromJSON, } from '../models/index';
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
*/
|
|
19
19
|
export class EsportApi extends runtime.BaseAPI {
|
|
20
20
|
/**
|
|
21
|
-
* Get Esport Matches
|
|
21
|
+
* Get Esport Matches
|
|
22
22
|
*/
|
|
23
|
-
async
|
|
24
|
-
if (requestParameters['id'] == null) {
|
|
25
|
-
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiEsportIdMatchesGet().');
|
|
26
|
-
}
|
|
23
|
+
async apiEsportMatchesGetRaw(requestParameters, initOverrides) {
|
|
27
24
|
const queryParameters = {};
|
|
28
25
|
if (requestParameters['page'] != null) {
|
|
29
26
|
queryParameters['page'] = requestParameters['page'];
|
|
30
27
|
}
|
|
31
|
-
if (requestParameters['
|
|
32
|
-
queryParameters['
|
|
33
|
-
}
|
|
34
|
-
if (requestParameters['searchTerm'] != null) {
|
|
35
|
-
queryParameters['searchTerm'] = requestParameters['searchTerm'];
|
|
36
|
-
}
|
|
37
|
-
if (requestParameters['status'] != null) {
|
|
38
|
-
queryParameters['status'] = requestParameters['status'];
|
|
39
|
-
}
|
|
40
|
-
const headerParameters = {};
|
|
41
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
42
|
-
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
28
|
+
if (requestParameters['pageSize'] != null) {
|
|
29
|
+
queryParameters['pageSize'] = requestParameters['pageSize'];
|
|
43
30
|
}
|
|
44
|
-
if (
|
|
45
|
-
|
|
46
|
-
const tokenString = await token("BearerAuth", []);
|
|
47
|
-
if (tokenString) {
|
|
48
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
49
|
-
}
|
|
31
|
+
if (requestParameters['sort'] != null) {
|
|
32
|
+
queryParameters['sort'] = requestParameters['sort'];
|
|
50
33
|
}
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
method: 'GET',
|
|
54
|
-
headers: headerParameters,
|
|
55
|
-
query: queryParameters,
|
|
56
|
-
}, initOverrides);
|
|
57
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => ApiEsportIdMatchesGet200ResponseFromJSON(jsonValue));
|
|
58
|
-
}
|
|
59
|
-
/**
|
|
60
|
-
* Get Esport Matches Based On VG
|
|
61
|
-
*/
|
|
62
|
-
async apiEsportIdMatchesGet(requestParameters, initOverrides) {
|
|
63
|
-
const response = await this.apiEsportIdMatchesGetRaw(requestParameters, initOverrides);
|
|
64
|
-
return await response.value();
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* Get Esport Match Details
|
|
68
|
-
*/
|
|
69
|
-
async apiEsportMatchIdGetRaw(requestParameters, initOverrides) {
|
|
70
|
-
if (requestParameters['id'] == null) {
|
|
71
|
-
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiEsportMatchIdGet().');
|
|
34
|
+
if (requestParameters['filter'] != null) {
|
|
35
|
+
queryParameters['filter'] = requestParameters['filter'];
|
|
72
36
|
}
|
|
73
|
-
const queryParameters = {};
|
|
74
37
|
const headerParameters = {};
|
|
75
38
|
if (this.configuration && this.configuration.apiKey) {
|
|
76
39
|
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
@@ -83,18 +46,18 @@ export class EsportApi extends runtime.BaseAPI {
|
|
|
83
46
|
}
|
|
84
47
|
}
|
|
85
48
|
const response = await this.request({
|
|
86
|
-
path: `/api/esport/
|
|
49
|
+
path: `/api/esport/matches`,
|
|
87
50
|
method: 'GET',
|
|
88
51
|
headers: headerParameters,
|
|
89
52
|
query: queryParameters,
|
|
90
53
|
}, initOverrides);
|
|
91
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
54
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiEsportMatchesGet200ResponseFromJSON(jsonValue));
|
|
92
55
|
}
|
|
93
56
|
/**
|
|
94
|
-
* Get Esport
|
|
57
|
+
* Get Esport Matches
|
|
95
58
|
*/
|
|
96
|
-
async
|
|
97
|
-
const response = await this.
|
|
59
|
+
async apiEsportMatchesGet(requestParameters = {}, initOverrides) {
|
|
60
|
+
const response = await this.apiEsportMatchesGetRaw(requestParameters, initOverrides);
|
|
98
61
|
return await response.value();
|
|
99
62
|
}
|
|
100
63
|
/**
|
|
@@ -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 { ApiAuthRegisterCompletePost200ResponseResponseObject } from './ApiAuthRegisterCompletePost200ResponseResponseObject';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ApiAuthRegisterCompletePost200Response
|
|
17
|
+
*/
|
|
18
|
+
export interface ApiAuthRegisterCompletePost200Response {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {boolean}
|
|
22
|
+
* @memberof ApiAuthRegisterCompletePost200Response
|
|
23
|
+
*/
|
|
24
|
+
success: boolean;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof ApiAuthRegisterCompletePost200Response
|
|
29
|
+
*/
|
|
30
|
+
message: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {ApiAuthRegisterCompletePost200ResponseResponseObject}
|
|
34
|
+
* @memberof ApiAuthRegisterCompletePost200Response
|
|
35
|
+
*/
|
|
36
|
+
responseObject?: ApiAuthRegisterCompletePost200ResponseResponseObject;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof ApiAuthRegisterCompletePost200Response
|
|
41
|
+
*/
|
|
42
|
+
statusCode: number;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the ApiAuthRegisterCompletePost200Response interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfApiAuthRegisterCompletePost200Response(value: object): value is ApiAuthRegisterCompletePost200Response;
|
|
48
|
+
export declare function ApiAuthRegisterCompletePost200ResponseFromJSON(json: any): ApiAuthRegisterCompletePost200Response;
|
|
49
|
+
export declare function ApiAuthRegisterCompletePost200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiAuthRegisterCompletePost200Response;
|
|
50
|
+
export declare function ApiAuthRegisterCompletePost200ResponseToJSON(json: any): ApiAuthRegisterCompletePost200Response;
|
|
51
|
+
export declare function ApiAuthRegisterCompletePost200ResponseToJSONTyped(value?: ApiAuthRegisterCompletePost200Response | null, ignoreDiscriminator?: boolean): any;
|