@drxsuperapp/sdk 1.1.217 → 1.1.219
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 +7 -0
- package/apis/AuthenticationApi.ts +153 -0
- package/apis/EsportApi.ts +52 -0
- package/deploy.log +31 -22
- package/dist/apis/AuthenticationApi.d.ts +40 -1
- package/dist/apis/AuthenticationApi.js +106 -1
- package/dist/apis/EsportApi.d.ts +12 -1
- package/dist/apis/EsportApi.js +35 -1
- package/dist/models/ApiAuthForgotPasswordChangePasswordPost200Response.d.ts +51 -0
- package/dist/models/ApiAuthForgotPasswordChangePasswordPost200Response.js +54 -0
- package/dist/models/ApiAuthForgotPasswordChangePasswordPost200ResponseResponseObject.d.ts +38 -0
- package/dist/models/ApiAuthForgotPasswordChangePasswordPost200ResponseResponseObject.js +47 -0
- package/dist/models/ApiAuthForgotPasswordChangePasswordPostRequest.d.ts +44 -0
- package/dist/models/ApiAuthForgotPasswordChangePasswordPostRequest.js +51 -0
- package/dist/models/ApiAuthForgotPasswordRequestPostRequest.d.ts +32 -0
- package/dist/models/ApiAuthForgotPasswordRequestPostRequest.js +43 -0
- package/dist/models/ApiAuthForgotPasswordVerifyOtpPost200Response.d.ts +51 -0
- package/dist/models/ApiAuthForgotPasswordVerifyOtpPost200Response.js +54 -0
- package/dist/models/ApiAuthForgotPasswordVerifyOtpPost200ResponseResponseObject.d.ts +44 -0
- package/dist/models/ApiAuthForgotPasswordVerifyOtpPost200ResponseResponseObject.js +49 -0
- package/dist/models/ApiAuthRegisterCompletePostRequest.d.ts +2 -2
- package/dist/models/ApiAuthRegisterCompletePostRequest.js +4 -2
- package/dist/models/ApiAuthRegisterStartPostRequest.d.ts +6 -0
- package/dist/models/ApiAuthRegisterStartPostRequest.js +2 -0
- package/dist/models/ApiEsportMatchesIdGet200Response.d.ts +51 -0
- package/dist/models/ApiEsportMatchesIdGet200Response.js +54 -0
- package/dist/models/index.d.ts +7 -0
- package/dist/models/index.js +7 -0
- package/models/ApiAuthForgotPasswordChangePasswordPost200Response.ts +100 -0
- package/models/ApiAuthForgotPasswordChangePasswordPost200ResponseResponseObject.ts +75 -0
- package/models/ApiAuthForgotPasswordChangePasswordPostRequest.ts +84 -0
- package/models/ApiAuthForgotPasswordRequestPostRequest.ts +66 -0
- package/models/ApiAuthForgotPasswordVerifyOtpPost200Response.ts +100 -0
- package/models/ApiAuthForgotPasswordVerifyOtpPost200ResponseResponseObject.ts +83 -0
- package/models/ApiAuthRegisterCompletePostRequest.ts +5 -4
- package/models/ApiAuthRegisterStartPostRequest.ts +8 -0
- package/models/ApiEsportMatchesIdGet200Response.ts +100 -0
- package/models/index.ts +7 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -12,6 +12,12 @@ apis/UserPointsApi.ts
|
|
|
12
12
|
apis/YoutubeApi.ts
|
|
13
13
|
apis/index.ts
|
|
14
14
|
index.ts
|
|
15
|
+
models/ApiAuthForgotPasswordChangePasswordPost200Response.ts
|
|
16
|
+
models/ApiAuthForgotPasswordChangePasswordPost200ResponseResponseObject.ts
|
|
17
|
+
models/ApiAuthForgotPasswordChangePasswordPostRequest.ts
|
|
18
|
+
models/ApiAuthForgotPasswordRequestPostRequest.ts
|
|
19
|
+
models/ApiAuthForgotPasswordVerifyOtpPost200Response.ts
|
|
20
|
+
models/ApiAuthForgotPasswordVerifyOtpPost200ResponseResponseObject.ts
|
|
15
21
|
models/ApiAuthLoginPost200Response.ts
|
|
16
22
|
models/ApiAuthLoginPost200ResponseResponseObject.ts
|
|
17
23
|
models/ApiAuthLoginPost200ResponseResponseObjectUser.ts
|
|
@@ -38,6 +44,7 @@ models/ApiEsportMatchesGet200ResponseResponseObjectItemsInnerResultsInnerPlayers
|
|
|
38
44
|
models/ApiEsportMatchesGet200ResponseResponseObjectItemsInnerResultsInnerTeam.ts
|
|
39
45
|
models/ApiEsportMatchesGet200ResponseResponseObjectItemsInnerStreamsListInner.ts
|
|
40
46
|
models/ApiEsportMatchesGetFilterParameter.ts
|
|
47
|
+
models/ApiEsportMatchesIdGet200Response.ts
|
|
41
48
|
models/ApiEsportVideogamesGet200Response.ts
|
|
42
49
|
models/ApiEsportVideogamesGet200ResponseResponseObjectInner.ts
|
|
43
50
|
models/ApiHealthCheckGet200Response.ts
|
|
@@ -15,6 +15,10 @@
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
|
+
ApiAuthForgotPasswordChangePasswordPost200Response,
|
|
19
|
+
ApiAuthForgotPasswordChangePasswordPostRequest,
|
|
20
|
+
ApiAuthForgotPasswordRequestPostRequest,
|
|
21
|
+
ApiAuthForgotPasswordVerifyOtpPost200Response,
|
|
18
22
|
ApiAuthLoginPost200Response,
|
|
19
23
|
ApiAuthLoginPostRequest,
|
|
20
24
|
ApiAuthRefreshPost200Response,
|
|
@@ -29,6 +33,14 @@ import type {
|
|
|
29
33
|
ApiUserGet200Response,
|
|
30
34
|
} from '../models/index';
|
|
31
35
|
import {
|
|
36
|
+
ApiAuthForgotPasswordChangePasswordPost200ResponseFromJSON,
|
|
37
|
+
ApiAuthForgotPasswordChangePasswordPost200ResponseToJSON,
|
|
38
|
+
ApiAuthForgotPasswordChangePasswordPostRequestFromJSON,
|
|
39
|
+
ApiAuthForgotPasswordChangePasswordPostRequestToJSON,
|
|
40
|
+
ApiAuthForgotPasswordRequestPostRequestFromJSON,
|
|
41
|
+
ApiAuthForgotPasswordRequestPostRequestToJSON,
|
|
42
|
+
ApiAuthForgotPasswordVerifyOtpPost200ResponseFromJSON,
|
|
43
|
+
ApiAuthForgotPasswordVerifyOtpPost200ResponseToJSON,
|
|
32
44
|
ApiAuthLoginPost200ResponseFromJSON,
|
|
33
45
|
ApiAuthLoginPost200ResponseToJSON,
|
|
34
46
|
ApiAuthLoginPostRequestFromJSON,
|
|
@@ -55,6 +67,18 @@ import {
|
|
|
55
67
|
ApiUserGet200ResponseToJSON,
|
|
56
68
|
} from '../models/index';
|
|
57
69
|
|
|
70
|
+
export interface ApiAuthForgotPasswordChangePasswordPostOperationRequest {
|
|
71
|
+
apiAuthForgotPasswordChangePasswordPostRequest?: ApiAuthForgotPasswordChangePasswordPostRequest;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export interface ApiAuthForgotPasswordRequestPostOperationRequest {
|
|
75
|
+
apiAuthForgotPasswordRequestPostRequest?: ApiAuthForgotPasswordRequestPostRequest;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export interface ApiAuthForgotPasswordVerifyOtpPostRequest {
|
|
79
|
+
apiAuthRegisterVerifyOtpPostRequest?: ApiAuthRegisterVerifyOtpPostRequest;
|
|
80
|
+
}
|
|
81
|
+
|
|
58
82
|
export interface ApiAuthLoginPostOperationRequest {
|
|
59
83
|
apiAuthLoginPostRequest?: ApiAuthLoginPostRequest;
|
|
60
84
|
}
|
|
@@ -80,6 +104,135 @@ export interface ApiAuthSocialMobilePostOperationRequest {
|
|
|
80
104
|
*/
|
|
81
105
|
export class AuthenticationApi extends runtime.BaseAPI {
|
|
82
106
|
|
|
107
|
+
/**
|
|
108
|
+
* Change password using reset token
|
|
109
|
+
* Forgot Password 3. Change Password
|
|
110
|
+
*/
|
|
111
|
+
async apiAuthForgotPasswordChangePasswordPostRaw(requestParameters: ApiAuthForgotPasswordChangePasswordPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiAuthForgotPasswordChangePasswordPost200Response>> {
|
|
112
|
+
const queryParameters: any = {};
|
|
113
|
+
|
|
114
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
115
|
+
|
|
116
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
117
|
+
|
|
118
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
119
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
123
|
+
const token = this.configuration.accessToken;
|
|
124
|
+
const tokenString = await token("BearerAuth", []);
|
|
125
|
+
|
|
126
|
+
if (tokenString) {
|
|
127
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
const response = await this.request({
|
|
131
|
+
path: `/api/auth/forgot-password/change-password`,
|
|
132
|
+
method: 'POST',
|
|
133
|
+
headers: headerParameters,
|
|
134
|
+
query: queryParameters,
|
|
135
|
+
body: ApiAuthForgotPasswordChangePasswordPostRequestToJSON(requestParameters['apiAuthForgotPasswordChangePasswordPostRequest']),
|
|
136
|
+
}, initOverrides);
|
|
137
|
+
|
|
138
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiAuthForgotPasswordChangePasswordPost200ResponseFromJSON(jsonValue));
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* Change password using reset token
|
|
143
|
+
* Forgot Password 3. Change Password
|
|
144
|
+
*/
|
|
145
|
+
async apiAuthForgotPasswordChangePasswordPost(requestParameters: ApiAuthForgotPasswordChangePasswordPostOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiAuthForgotPasswordChangePasswordPost200Response> {
|
|
146
|
+
const response = await this.apiAuthForgotPasswordChangePasswordPostRaw(requestParameters, initOverrides);
|
|
147
|
+
return await response.value();
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* Request OTP for password reset
|
|
152
|
+
* Forgot Password 1. Request OTP
|
|
153
|
+
*/
|
|
154
|
+
async apiAuthForgotPasswordRequestPostRaw(requestParameters: ApiAuthForgotPasswordRequestPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiAuthRegisterStartPost200Response>> {
|
|
155
|
+
const queryParameters: any = {};
|
|
156
|
+
|
|
157
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
158
|
+
|
|
159
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
160
|
+
|
|
161
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
162
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
166
|
+
const token = this.configuration.accessToken;
|
|
167
|
+
const tokenString = await token("BearerAuth", []);
|
|
168
|
+
|
|
169
|
+
if (tokenString) {
|
|
170
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
const response = await this.request({
|
|
174
|
+
path: `/api/auth/forgot-password/request`,
|
|
175
|
+
method: 'POST',
|
|
176
|
+
headers: headerParameters,
|
|
177
|
+
query: queryParameters,
|
|
178
|
+
body: ApiAuthForgotPasswordRequestPostRequestToJSON(requestParameters['apiAuthForgotPasswordRequestPostRequest']),
|
|
179
|
+
}, initOverrides);
|
|
180
|
+
|
|
181
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiAuthRegisterStartPost200ResponseFromJSON(jsonValue));
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* Request OTP for password reset
|
|
186
|
+
* Forgot Password 1. Request OTP
|
|
187
|
+
*/
|
|
188
|
+
async apiAuthForgotPasswordRequestPost(requestParameters: ApiAuthForgotPasswordRequestPostOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiAuthRegisterStartPost200Response> {
|
|
189
|
+
const response = await this.apiAuthForgotPasswordRequestPostRaw(requestParameters, initOverrides);
|
|
190
|
+
return await response.value();
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* Verify OTP and get reset token
|
|
195
|
+
* Forgot Password 2. Verify OTP
|
|
196
|
+
*/
|
|
197
|
+
async apiAuthForgotPasswordVerifyOtpPostRaw(requestParameters: ApiAuthForgotPasswordVerifyOtpPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiAuthForgotPasswordVerifyOtpPost200Response>> {
|
|
198
|
+
const queryParameters: any = {};
|
|
199
|
+
|
|
200
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
201
|
+
|
|
202
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
203
|
+
|
|
204
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
205
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
209
|
+
const token = this.configuration.accessToken;
|
|
210
|
+
const tokenString = await token("BearerAuth", []);
|
|
211
|
+
|
|
212
|
+
if (tokenString) {
|
|
213
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
const response = await this.request({
|
|
217
|
+
path: `/api/auth/forgot-password/verify-otp`,
|
|
218
|
+
method: 'POST',
|
|
219
|
+
headers: headerParameters,
|
|
220
|
+
query: queryParameters,
|
|
221
|
+
body: ApiAuthRegisterVerifyOtpPostRequestToJSON(requestParameters['apiAuthRegisterVerifyOtpPostRequest']),
|
|
222
|
+
}, initOverrides);
|
|
223
|
+
|
|
224
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiAuthForgotPasswordVerifyOtpPost200ResponseFromJSON(jsonValue));
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* Verify OTP and get reset token
|
|
229
|
+
* Forgot Password 2. Verify OTP
|
|
230
|
+
*/
|
|
231
|
+
async apiAuthForgotPasswordVerifyOtpPost(requestParameters: ApiAuthForgotPasswordVerifyOtpPostRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiAuthForgotPasswordVerifyOtpPost200Response> {
|
|
232
|
+
const response = await this.apiAuthForgotPasswordVerifyOtpPostRaw(requestParameters, initOverrides);
|
|
233
|
+
return await response.value();
|
|
234
|
+
}
|
|
235
|
+
|
|
83
236
|
/**
|
|
84
237
|
* Authenticate user with email and password
|
|
85
238
|
* User Login
|
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
|
@@ -151,6 +151,12 @@
|
|
|
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
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
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).
|
|
154
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_auth_forgot_password_request_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_forgot_password_request_post_request=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_auth_forgot_password_request_post_request=NewModel,ModelA=NewModelA in CLI).
|
|
155
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_auth_forgot_password_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_forgot_password_verify_otp_post_200_response_responseObject=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_auth_forgot_password_verify_otp_post_200_response_responseObject=NewModel,ModelA=NewModelA in CLI).
|
|
156
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_auth_forgot_password_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_forgot_password_verify_otp_post_200_response=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_auth_forgot_password_verify_otp_post_200_response=NewModel,ModelA=NewModelA in CLI).
|
|
157
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_auth_forgot_password_change_password_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_forgot_password_change_password_post_request=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_auth_forgot_password_change_password_post_request=NewModel,ModelA=NewModelA in CLI).
|
|
158
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_auth_forgot_password_change_password_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_forgot_password_change_password_post_200_response_responseObject=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_auth_forgot_password_change_password_post_200_response_responseObject=NewModel,ModelA=NewModelA in CLI).
|
|
159
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_auth_forgot_password_change_password_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_forgot_password_change_password_post_200_response=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_auth_forgot_password_change_password_post_200_response=NewModel,ModelA=NewModelA in CLI).
|
|
154
160
|
[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).
|
|
155
161
|
[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).
|
|
156
162
|
[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).
|
|
@@ -161,8 +167,15 @@
|
|
|
161
167
|
[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
168
|
[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
169
|
[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).
|
|
170
|
+
[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
171
|
[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
172
|
[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/]
|
|
173
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthForgotPasswordChangePasswordPost200Response.ts
|
|
174
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthForgotPasswordChangePasswordPost200ResponseResponseObject.ts
|
|
175
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthForgotPasswordChangePasswordPostRequest.ts
|
|
176
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthForgotPasswordRequestPostRequest.ts
|
|
177
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthForgotPasswordVerifyOtpPost200Response.ts
|
|
178
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthForgotPasswordVerifyOtpPost200ResponseResponseObject.ts
|
|
166
179
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthLoginPost200Response.ts
|
|
167
180
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthLoginPost200ResponseResponseObject.ts
|
|
168
181
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthLoginPost200ResponseResponseObjectUser.ts
|
|
@@ -189,6 +202,7 @@
|
|
|
189
202
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportMatchesGet200ResponseResponseObjectItemsInnerResultsInnerTeam.ts
|
|
190
203
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportMatchesGet200ResponseResponseObjectItemsInnerStreamsListInner.ts
|
|
191
204
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportMatchesGetFilterParameter.ts
|
|
205
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportMatchesIdGet200Response.ts
|
|
192
206
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportVideogamesGet200Response.ts
|
|
193
207
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiEsportVideogamesGet200ResponseResponseObjectInner.ts
|
|
194
208
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiHealthCheckGet200Response.ts
|
|
@@ -366,8 +380,12 @@
|
|
|
366
380
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: post /api/auth/register/start. Renamed to auto-generated operationId: apiAuthRegisterStartPost
|
|
367
381
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: post /api/auth/register/verify-otp. Renamed to auto-generated operationId: apiAuthRegisterVerifyOtpPost
|
|
368
382
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: post /api/auth/register/complete. Renamed to auto-generated operationId: apiAuthRegisterCompletePost
|
|
383
|
+
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: post /api/auth/forgot-password/request. Renamed to auto-generated operationId: apiAuthForgotPasswordRequestPost
|
|
384
|
+
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: post /api/auth/forgot-password/verify-otp. Renamed to auto-generated operationId: apiAuthForgotPasswordVerifyOtpPost
|
|
385
|
+
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: post /api/auth/forgot-password/change-password. Renamed to auto-generated operationId: apiAuthForgotPasswordChangePasswordPost
|
|
369
386
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/esport/videogames. Renamed to auto-generated operationId: apiEsportVideogamesGet
|
|
370
387
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/esport/matches. Renamed to auto-generated operationId: apiEsportMatchesGet
|
|
388
|
+
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/esport/matches/{id}. Renamed to auto-generated operationId: apiEsportMatchesIdGet
|
|
371
389
|
[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
390
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./apis/AppConfigApi.ts
|
|
373
391
|
[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 +424,26 @@
|
|
|
406
424
|
# https://opencollective.com/openapi_generator/donate #
|
|
407
425
|
################################################################################
|
|
408
426
|
✅ SDK generated
|
|
409
|
-
[master
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
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
|
|
427
|
+
[master f3cb408] VPS: Generated API SDK
|
|
428
|
+
11 files changed, 686 insertions(+), 4 deletions(-)
|
|
429
|
+
create mode 100644 models/ApiAuthForgotPasswordChangePasswordPost200Response.ts
|
|
430
|
+
create mode 100644 models/ApiAuthForgotPasswordChangePasswordPost200ResponseResponseObject.ts
|
|
431
|
+
create mode 100644 models/ApiAuthForgotPasswordChangePasswordPostRequest.ts
|
|
432
|
+
create mode 100644 models/ApiAuthForgotPasswordRequestPostRequest.ts
|
|
433
|
+
create mode 100644 models/ApiAuthForgotPasswordVerifyOtpPost200Response.ts
|
|
434
|
+
create mode 100644 models/ApiAuthForgotPasswordVerifyOtpPost200ResponseResponseObject.ts
|
|
426
435
|
To https://gitlab.com/drx-super/drx-sdk.git
|
|
427
|
-
|
|
436
|
+
2f37eef..f3cb408 master -> master
|
|
428
437
|
✅ Changes committed and pushed
|
|
429
|
-
v1.1.
|
|
438
|
+
v1.1.219
|
|
430
439
|
To https://gitlab.com/drx-super/drx-sdk.git
|
|
431
|
-
|
|
440
|
+
f3cb408..27e35fe master -> master
|
|
432
441
|
✅ Version bumped
|
|
433
442
|
|
|
434
|
-
> @drxsuperapp/sdk@1.1.
|
|
443
|
+
> @drxsuperapp/sdk@1.1.219 prepublishOnly
|
|
435
444
|
> npm run build
|
|
436
445
|
|
|
437
446
|
|
|
438
|
-
> @drxsuperapp/sdk@1.1.
|
|
447
|
+
> @drxsuperapp/sdk@1.1.219 build
|
|
439
448
|
> tsc
|
|
440
449
|
|
|
@@ -10,7 +10,16 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { ApiAuthLoginPost200Response, ApiAuthLoginPostRequest, ApiAuthRefreshPost200Response, ApiAuthRegisterCompletePost200Response, ApiAuthRegisterCompletePostRequest, ApiAuthRegisterStartPost200Response, ApiAuthRegisterStartPostRequest, ApiAuthRegisterVerifyOtpPost200Response, ApiAuthRegisterVerifyOtpPostRequest, ApiAuthSocialMobilePost200Response, ApiAuthSocialMobilePostRequest, ApiUserGet200Response } from '../models/index';
|
|
13
|
+
import type { ApiAuthForgotPasswordChangePasswordPost200Response, ApiAuthForgotPasswordChangePasswordPostRequest, ApiAuthForgotPasswordRequestPostRequest, ApiAuthForgotPasswordVerifyOtpPost200Response, ApiAuthLoginPost200Response, ApiAuthLoginPostRequest, ApiAuthRefreshPost200Response, ApiAuthRegisterCompletePost200Response, ApiAuthRegisterCompletePostRequest, ApiAuthRegisterStartPost200Response, ApiAuthRegisterStartPostRequest, ApiAuthRegisterVerifyOtpPost200Response, ApiAuthRegisterVerifyOtpPostRequest, ApiAuthSocialMobilePost200Response, ApiAuthSocialMobilePostRequest, ApiUserGet200Response } from '../models/index';
|
|
14
|
+
export interface ApiAuthForgotPasswordChangePasswordPostOperationRequest {
|
|
15
|
+
apiAuthForgotPasswordChangePasswordPostRequest?: ApiAuthForgotPasswordChangePasswordPostRequest;
|
|
16
|
+
}
|
|
17
|
+
export interface ApiAuthForgotPasswordRequestPostOperationRequest {
|
|
18
|
+
apiAuthForgotPasswordRequestPostRequest?: ApiAuthForgotPasswordRequestPostRequest;
|
|
19
|
+
}
|
|
20
|
+
export interface ApiAuthForgotPasswordVerifyOtpPostRequest {
|
|
21
|
+
apiAuthRegisterVerifyOtpPostRequest?: ApiAuthRegisterVerifyOtpPostRequest;
|
|
22
|
+
}
|
|
14
23
|
export interface ApiAuthLoginPostOperationRequest {
|
|
15
24
|
apiAuthLoginPostRequest?: ApiAuthLoginPostRequest;
|
|
16
25
|
}
|
|
@@ -30,6 +39,36 @@ export interface ApiAuthSocialMobilePostOperationRequest {
|
|
|
30
39
|
*
|
|
31
40
|
*/
|
|
32
41
|
export declare class AuthenticationApi extends runtime.BaseAPI {
|
|
42
|
+
/**
|
|
43
|
+
* Change password using reset token
|
|
44
|
+
* Forgot Password 3. Change Password
|
|
45
|
+
*/
|
|
46
|
+
apiAuthForgotPasswordChangePasswordPostRaw(requestParameters: ApiAuthForgotPasswordChangePasswordPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiAuthForgotPasswordChangePasswordPost200Response>>;
|
|
47
|
+
/**
|
|
48
|
+
* Change password using reset token
|
|
49
|
+
* Forgot Password 3. Change Password
|
|
50
|
+
*/
|
|
51
|
+
apiAuthForgotPasswordChangePasswordPost(requestParameters?: ApiAuthForgotPasswordChangePasswordPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiAuthForgotPasswordChangePasswordPost200Response>;
|
|
52
|
+
/**
|
|
53
|
+
* Request OTP for password reset
|
|
54
|
+
* Forgot Password 1. Request OTP
|
|
55
|
+
*/
|
|
56
|
+
apiAuthForgotPasswordRequestPostRaw(requestParameters: ApiAuthForgotPasswordRequestPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiAuthRegisterStartPost200Response>>;
|
|
57
|
+
/**
|
|
58
|
+
* Request OTP for password reset
|
|
59
|
+
* Forgot Password 1. Request OTP
|
|
60
|
+
*/
|
|
61
|
+
apiAuthForgotPasswordRequestPost(requestParameters?: ApiAuthForgotPasswordRequestPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiAuthRegisterStartPost200Response>;
|
|
62
|
+
/**
|
|
63
|
+
* Verify OTP and get reset token
|
|
64
|
+
* Forgot Password 2. Verify OTP
|
|
65
|
+
*/
|
|
66
|
+
apiAuthForgotPasswordVerifyOtpPostRaw(requestParameters: ApiAuthForgotPasswordVerifyOtpPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiAuthForgotPasswordVerifyOtpPost200Response>>;
|
|
67
|
+
/**
|
|
68
|
+
* Verify OTP and get reset token
|
|
69
|
+
* Forgot Password 2. Verify OTP
|
|
70
|
+
*/
|
|
71
|
+
apiAuthForgotPasswordVerifyOtpPost(requestParameters?: ApiAuthForgotPasswordVerifyOtpPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiAuthForgotPasswordVerifyOtpPost200Response>;
|
|
33
72
|
/**
|
|
34
73
|
* Authenticate user with email and password
|
|
35
74
|
* User Login
|
|
@@ -12,11 +12,116 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import * as runtime from '../runtime';
|
|
15
|
-
import { ApiAuthLoginPost200ResponseFromJSON, ApiAuthLoginPostRequestToJSON, ApiAuthRefreshPost200ResponseFromJSON, ApiAuthRegisterCompletePost200ResponseFromJSON, ApiAuthRegisterCompletePostRequestToJSON, ApiAuthRegisterStartPost200ResponseFromJSON, ApiAuthRegisterStartPostRequestToJSON, ApiAuthRegisterVerifyOtpPost200ResponseFromJSON, ApiAuthRegisterVerifyOtpPostRequestToJSON, ApiAuthSocialMobilePost200ResponseFromJSON, ApiAuthSocialMobilePostRequestToJSON, ApiUserGet200ResponseFromJSON, } from '../models/index';
|
|
15
|
+
import { ApiAuthForgotPasswordChangePasswordPost200ResponseFromJSON, ApiAuthForgotPasswordChangePasswordPostRequestToJSON, ApiAuthForgotPasswordRequestPostRequestToJSON, ApiAuthForgotPasswordVerifyOtpPost200ResponseFromJSON, ApiAuthLoginPost200ResponseFromJSON, ApiAuthLoginPostRequestToJSON, ApiAuthRefreshPost200ResponseFromJSON, ApiAuthRegisterCompletePost200ResponseFromJSON, ApiAuthRegisterCompletePostRequestToJSON, ApiAuthRegisterStartPost200ResponseFromJSON, ApiAuthRegisterStartPostRequestToJSON, ApiAuthRegisterVerifyOtpPost200ResponseFromJSON, ApiAuthRegisterVerifyOtpPostRequestToJSON, ApiAuthSocialMobilePost200ResponseFromJSON, ApiAuthSocialMobilePostRequestToJSON, ApiUserGet200ResponseFromJSON, } from '../models/index';
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
*/
|
|
19
19
|
export class AuthenticationApi extends runtime.BaseAPI {
|
|
20
|
+
/**
|
|
21
|
+
* Change password using reset token
|
|
22
|
+
* Forgot Password 3. Change Password
|
|
23
|
+
*/
|
|
24
|
+
async apiAuthForgotPasswordChangePasswordPostRaw(requestParameters, initOverrides) {
|
|
25
|
+
const queryParameters = {};
|
|
26
|
+
const headerParameters = {};
|
|
27
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
28
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
29
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
30
|
+
}
|
|
31
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
32
|
+
const token = this.configuration.accessToken;
|
|
33
|
+
const tokenString = await token("BearerAuth", []);
|
|
34
|
+
if (tokenString) {
|
|
35
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
const response = await this.request({
|
|
39
|
+
path: `/api/auth/forgot-password/change-password`,
|
|
40
|
+
method: 'POST',
|
|
41
|
+
headers: headerParameters,
|
|
42
|
+
query: queryParameters,
|
|
43
|
+
body: ApiAuthForgotPasswordChangePasswordPostRequestToJSON(requestParameters['apiAuthForgotPasswordChangePasswordPostRequest']),
|
|
44
|
+
}, initOverrides);
|
|
45
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiAuthForgotPasswordChangePasswordPost200ResponseFromJSON(jsonValue));
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Change password using reset token
|
|
49
|
+
* Forgot Password 3. Change Password
|
|
50
|
+
*/
|
|
51
|
+
async apiAuthForgotPasswordChangePasswordPost(requestParameters = {}, initOverrides) {
|
|
52
|
+
const response = await this.apiAuthForgotPasswordChangePasswordPostRaw(requestParameters, initOverrides);
|
|
53
|
+
return await response.value();
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Request OTP for password reset
|
|
57
|
+
* Forgot Password 1. Request OTP
|
|
58
|
+
*/
|
|
59
|
+
async apiAuthForgotPasswordRequestPostRaw(requestParameters, initOverrides) {
|
|
60
|
+
const queryParameters = {};
|
|
61
|
+
const headerParameters = {};
|
|
62
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
63
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
64
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
65
|
+
}
|
|
66
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
67
|
+
const token = this.configuration.accessToken;
|
|
68
|
+
const tokenString = await token("BearerAuth", []);
|
|
69
|
+
if (tokenString) {
|
|
70
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
const response = await this.request({
|
|
74
|
+
path: `/api/auth/forgot-password/request`,
|
|
75
|
+
method: 'POST',
|
|
76
|
+
headers: headerParameters,
|
|
77
|
+
query: queryParameters,
|
|
78
|
+
body: ApiAuthForgotPasswordRequestPostRequestToJSON(requestParameters['apiAuthForgotPasswordRequestPostRequest']),
|
|
79
|
+
}, initOverrides);
|
|
80
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiAuthRegisterStartPost200ResponseFromJSON(jsonValue));
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Request OTP for password reset
|
|
84
|
+
* Forgot Password 1. Request OTP
|
|
85
|
+
*/
|
|
86
|
+
async apiAuthForgotPasswordRequestPost(requestParameters = {}, initOverrides) {
|
|
87
|
+
const response = await this.apiAuthForgotPasswordRequestPostRaw(requestParameters, initOverrides);
|
|
88
|
+
return await response.value();
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Verify OTP and get reset token
|
|
92
|
+
* Forgot Password 2. Verify OTP
|
|
93
|
+
*/
|
|
94
|
+
async apiAuthForgotPasswordVerifyOtpPostRaw(requestParameters, initOverrides) {
|
|
95
|
+
const queryParameters = {};
|
|
96
|
+
const headerParameters = {};
|
|
97
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
98
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
99
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
100
|
+
}
|
|
101
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
102
|
+
const token = this.configuration.accessToken;
|
|
103
|
+
const tokenString = await token("BearerAuth", []);
|
|
104
|
+
if (tokenString) {
|
|
105
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
const response = await this.request({
|
|
109
|
+
path: `/api/auth/forgot-password/verify-otp`,
|
|
110
|
+
method: 'POST',
|
|
111
|
+
headers: headerParameters,
|
|
112
|
+
query: queryParameters,
|
|
113
|
+
body: ApiAuthRegisterVerifyOtpPostRequestToJSON(requestParameters['apiAuthRegisterVerifyOtpPostRequest']),
|
|
114
|
+
}, initOverrides);
|
|
115
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiAuthForgotPasswordVerifyOtpPost200ResponseFromJSON(jsonValue));
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Verify OTP and get reset token
|
|
119
|
+
* Forgot Password 2. Verify OTP
|
|
120
|
+
*/
|
|
121
|
+
async apiAuthForgotPasswordVerifyOtpPost(requestParameters = {}, initOverrides) {
|
|
122
|
+
const response = await this.apiAuthForgotPasswordVerifyOtpPostRaw(requestParameters, initOverrides);
|
|
123
|
+
return await response.value();
|
|
124
|
+
}
|
|
20
125
|
/**
|
|
21
126
|
* Authenticate user with email and password
|
|
22
127
|
* User Login
|
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
|
*/
|