@drxsuperapp/sdk 1.1.209 → 1.1.216
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 +9 -0
- package/apis/AuthenticationApi.ts +159 -0
- package/deploy.log +30 -7
- package/dist/apis/AuthenticationApi.d.ts +40 -1
- package/dist/apis/AuthenticationApi.js +106 -1
- package/dist/models/ApiAuthRegisterCompletePost200Response.d.ts +51 -0
- package/dist/models/ApiAuthRegisterCompletePost200Response.js +54 -0
- package/dist/models/ApiAuthRegisterCompletePost200ResponseResponseObject.d.ts +51 -0
- package/dist/models/ApiAuthRegisterCompletePost200ResponseResponseObject.js +54 -0
- package/dist/models/ApiAuthRegisterCompletePostRequest.d.ts +44 -0
- package/dist/models/ApiAuthRegisterCompletePostRequest.js +49 -0
- package/dist/models/ApiAuthRegisterStartPost200Response.d.ts +51 -0
- package/dist/models/ApiAuthRegisterStartPost200Response.js +54 -0
- package/dist/models/ApiAuthRegisterStartPost200ResponseResponseObject.d.ts +44 -0
- package/dist/models/ApiAuthRegisterStartPost200ResponseResponseObject.js +51 -0
- package/dist/models/ApiAuthRegisterStartPostRequest.d.ts +44 -0
- package/dist/models/ApiAuthRegisterStartPostRequest.js +51 -0
- package/dist/models/ApiAuthRegisterVerifyOtpPost200Response.d.ts +51 -0
- package/dist/models/ApiAuthRegisterVerifyOtpPost200Response.js +54 -0
- package/dist/models/ApiAuthRegisterVerifyOtpPost200ResponseResponseObject.d.ts +38 -0
- package/dist/models/ApiAuthRegisterVerifyOtpPost200ResponseResponseObject.js +47 -0
- package/dist/models/ApiAuthRegisterVerifyOtpPostRequest.d.ts +38 -0
- package/dist/models/ApiAuthRegisterVerifyOtpPostRequest.js +47 -0
- package/dist/models/index.d.ts +9 -0
- package/dist/models/index.js +9 -0
- package/models/ApiAuthRegisterCompletePost200Response.ts +100 -0
- package/models/ApiAuthRegisterCompletePost200ResponseResponseObject.ts +100 -0
- package/models/ApiAuthRegisterCompletePostRequest.ts +83 -0
- package/models/ApiAuthRegisterStartPost200Response.ts +100 -0
- package/models/ApiAuthRegisterStartPost200ResponseResponseObject.ts +84 -0
- package/models/ApiAuthRegisterStartPostRequest.ts +84 -0
- package/models/ApiAuthRegisterVerifyOtpPost200Response.ts +100 -0
- package/models/ApiAuthRegisterVerifyOtpPost200ResponseResponseObject.ts +75 -0
- package/models/ApiAuthRegisterVerifyOtpPostRequest.ts +75 -0
- package/models/index.ts +9 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -18,6 +18,15 @@ 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
|
|
23
|
+
models/ApiAuthRegisterCompletePostRequest.ts
|
|
24
|
+
models/ApiAuthRegisterStartPost200Response.ts
|
|
25
|
+
models/ApiAuthRegisterStartPost200ResponseResponseObject.ts
|
|
26
|
+
models/ApiAuthRegisterStartPostRequest.ts
|
|
27
|
+
models/ApiAuthRegisterVerifyOtpPost200Response.ts
|
|
28
|
+
models/ApiAuthRegisterVerifyOtpPost200ResponseResponseObject.ts
|
|
29
|
+
models/ApiAuthRegisterVerifyOtpPostRequest.ts
|
|
21
30
|
models/ApiAuthSocialMobilePost200Response.ts
|
|
22
31
|
models/ApiAuthSocialMobilePost200ResponseResponseObject.ts
|
|
23
32
|
models/ApiAuthSocialMobilePostRequest.ts
|
|
@@ -18,6 +18,12 @@ import type {
|
|
|
18
18
|
ApiAuthLoginPost200Response,
|
|
19
19
|
ApiAuthLoginPostRequest,
|
|
20
20
|
ApiAuthRefreshPost200Response,
|
|
21
|
+
ApiAuthRegisterCompletePost200Response,
|
|
22
|
+
ApiAuthRegisterCompletePostRequest,
|
|
23
|
+
ApiAuthRegisterStartPost200Response,
|
|
24
|
+
ApiAuthRegisterStartPostRequest,
|
|
25
|
+
ApiAuthRegisterVerifyOtpPost200Response,
|
|
26
|
+
ApiAuthRegisterVerifyOtpPostRequest,
|
|
21
27
|
ApiAuthSocialMobilePost200Response,
|
|
22
28
|
ApiAuthSocialMobilePostRequest,
|
|
23
29
|
ApiUserGet200Response,
|
|
@@ -29,6 +35,18 @@ import {
|
|
|
29
35
|
ApiAuthLoginPostRequestToJSON,
|
|
30
36
|
ApiAuthRefreshPost200ResponseFromJSON,
|
|
31
37
|
ApiAuthRefreshPost200ResponseToJSON,
|
|
38
|
+
ApiAuthRegisterCompletePost200ResponseFromJSON,
|
|
39
|
+
ApiAuthRegisterCompletePost200ResponseToJSON,
|
|
40
|
+
ApiAuthRegisterCompletePostRequestFromJSON,
|
|
41
|
+
ApiAuthRegisterCompletePostRequestToJSON,
|
|
42
|
+
ApiAuthRegisterStartPost200ResponseFromJSON,
|
|
43
|
+
ApiAuthRegisterStartPost200ResponseToJSON,
|
|
44
|
+
ApiAuthRegisterStartPostRequestFromJSON,
|
|
45
|
+
ApiAuthRegisterStartPostRequestToJSON,
|
|
46
|
+
ApiAuthRegisterVerifyOtpPost200ResponseFromJSON,
|
|
47
|
+
ApiAuthRegisterVerifyOtpPost200ResponseToJSON,
|
|
48
|
+
ApiAuthRegisterVerifyOtpPostRequestFromJSON,
|
|
49
|
+
ApiAuthRegisterVerifyOtpPostRequestToJSON,
|
|
32
50
|
ApiAuthSocialMobilePost200ResponseFromJSON,
|
|
33
51
|
ApiAuthSocialMobilePost200ResponseToJSON,
|
|
34
52
|
ApiAuthSocialMobilePostRequestFromJSON,
|
|
@@ -41,6 +59,18 @@ export interface ApiAuthLoginPostOperationRequest {
|
|
|
41
59
|
apiAuthLoginPostRequest?: ApiAuthLoginPostRequest;
|
|
42
60
|
}
|
|
43
61
|
|
|
62
|
+
export interface ApiAuthRegisterCompletePostOperationRequest {
|
|
63
|
+
apiAuthRegisterCompletePostRequest?: ApiAuthRegisterCompletePostRequest;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export interface ApiAuthRegisterStartPostOperationRequest {
|
|
67
|
+
apiAuthRegisterStartPostRequest?: ApiAuthRegisterStartPostRequest;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export interface ApiAuthRegisterVerifyOtpPostOperationRequest {
|
|
71
|
+
apiAuthRegisterVerifyOtpPostRequest?: ApiAuthRegisterVerifyOtpPostRequest;
|
|
72
|
+
}
|
|
73
|
+
|
|
44
74
|
export interface ApiAuthSocialMobilePostOperationRequest {
|
|
45
75
|
apiAuthSocialMobilePostRequest?: ApiAuthSocialMobilePostRequest;
|
|
46
76
|
}
|
|
@@ -133,6 +163,135 @@ export class AuthenticationApi extends runtime.BaseAPI {
|
|
|
133
163
|
return await response.value();
|
|
134
164
|
}
|
|
135
165
|
|
|
166
|
+
/**
|
|
167
|
+
* Complete registration by setting password and creating user account
|
|
168
|
+
* Register 3. Complete User Registration
|
|
169
|
+
*/
|
|
170
|
+
async apiAuthRegisterCompletePostRaw(requestParameters: ApiAuthRegisterCompletePostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiAuthRegisterCompletePost200Response>> {
|
|
171
|
+
const queryParameters: any = {};
|
|
172
|
+
|
|
173
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
174
|
+
|
|
175
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
176
|
+
|
|
177
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
178
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
182
|
+
const token = this.configuration.accessToken;
|
|
183
|
+
const tokenString = await token("BearerAuth", []);
|
|
184
|
+
|
|
185
|
+
if (tokenString) {
|
|
186
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
const response = await this.request({
|
|
190
|
+
path: `/api/auth/register/complete`,
|
|
191
|
+
method: 'POST',
|
|
192
|
+
headers: headerParameters,
|
|
193
|
+
query: queryParameters,
|
|
194
|
+
body: ApiAuthRegisterCompletePostRequestToJSON(requestParameters['apiAuthRegisterCompletePostRequest']),
|
|
195
|
+
}, initOverrides);
|
|
196
|
+
|
|
197
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiAuthRegisterCompletePost200ResponseFromJSON(jsonValue));
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
* Complete registration by setting password and creating user account
|
|
202
|
+
* Register 3. Complete User Registration
|
|
203
|
+
*/
|
|
204
|
+
async apiAuthRegisterCompletePost(requestParameters: ApiAuthRegisterCompletePostOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiAuthRegisterCompletePost200Response> {
|
|
205
|
+
const response = await this.apiAuthRegisterCompletePostRaw(requestParameters, initOverrides);
|
|
206
|
+
return await response.value();
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
/**
|
|
210
|
+
* Start registration process by sending OTP to email
|
|
211
|
+
* Register 1. Start User Registration
|
|
212
|
+
*/
|
|
213
|
+
async apiAuthRegisterStartPostRaw(requestParameters: ApiAuthRegisterStartPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiAuthRegisterStartPost200Response>> {
|
|
214
|
+
const queryParameters: any = {};
|
|
215
|
+
|
|
216
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
217
|
+
|
|
218
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
219
|
+
|
|
220
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
221
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
225
|
+
const token = this.configuration.accessToken;
|
|
226
|
+
const tokenString = await token("BearerAuth", []);
|
|
227
|
+
|
|
228
|
+
if (tokenString) {
|
|
229
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
const response = await this.request({
|
|
233
|
+
path: `/api/auth/register/start`,
|
|
234
|
+
method: 'POST',
|
|
235
|
+
headers: headerParameters,
|
|
236
|
+
query: queryParameters,
|
|
237
|
+
body: ApiAuthRegisterStartPostRequestToJSON(requestParameters['apiAuthRegisterStartPostRequest']),
|
|
238
|
+
}, initOverrides);
|
|
239
|
+
|
|
240
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiAuthRegisterStartPost200ResponseFromJSON(jsonValue));
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
/**
|
|
244
|
+
* Start registration process by sending OTP to email
|
|
245
|
+
* Register 1. Start User Registration
|
|
246
|
+
*/
|
|
247
|
+
async apiAuthRegisterStartPost(requestParameters: ApiAuthRegisterStartPostOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiAuthRegisterStartPost200Response> {
|
|
248
|
+
const response = await this.apiAuthRegisterStartPostRaw(requestParameters, initOverrides);
|
|
249
|
+
return await response.value();
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
/**
|
|
253
|
+
* Verify the OTP code sent to email during registration
|
|
254
|
+
* Register 2. Verify Registration OTP
|
|
255
|
+
*/
|
|
256
|
+
async apiAuthRegisterVerifyOtpPostRaw(requestParameters: ApiAuthRegisterVerifyOtpPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiAuthRegisterVerifyOtpPost200Response>> {
|
|
257
|
+
const queryParameters: any = {};
|
|
258
|
+
|
|
259
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
260
|
+
|
|
261
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
262
|
+
|
|
263
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
264
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
268
|
+
const token = this.configuration.accessToken;
|
|
269
|
+
const tokenString = await token("BearerAuth", []);
|
|
270
|
+
|
|
271
|
+
if (tokenString) {
|
|
272
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
const response = await this.request({
|
|
276
|
+
path: `/api/auth/register/verify-otp`,
|
|
277
|
+
method: 'POST',
|
|
278
|
+
headers: headerParameters,
|
|
279
|
+
query: queryParameters,
|
|
280
|
+
body: ApiAuthRegisterVerifyOtpPostRequestToJSON(requestParameters['apiAuthRegisterVerifyOtpPostRequest']),
|
|
281
|
+
}, initOverrides);
|
|
282
|
+
|
|
283
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiAuthRegisterVerifyOtpPost200ResponseFromJSON(jsonValue));
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
/**
|
|
287
|
+
* Verify the OTP code sent to email during registration
|
|
288
|
+
* Register 2. Verify Registration OTP
|
|
289
|
+
*/
|
|
290
|
+
async apiAuthRegisterVerifyOtpPost(requestParameters: ApiAuthRegisterVerifyOtpPostOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiAuthRegisterVerifyOtpPost200Response> {
|
|
291
|
+
const response = await this.apiAuthRegisterVerifyOtpPostRaw(requestParameters, initOverrides);
|
|
292
|
+
return await response.value();
|
|
293
|
+
}
|
|
294
|
+
|
|
136
295
|
/**
|
|
137
296
|
* Authenticate user with social credentials from mobile app. Google requires idToken. Apple requires authorizationCode.
|
|
138
297
|
* Social Mobile Authentication
|
package/deploy.log
CHANGED
|
@@ -142,6 +142,15 @@
|
|
|
142
142
|
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_auth_social_mobile_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_social_mobile_post_request=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_auth_social_mobile_post_request=NewModel,ModelA=NewModelA in CLI).
|
|
143
143
|
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_auth_social_mobile_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_social_mobile_post_200_response_responseObject=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_auth_social_mobile_post_200_response_responseObject=NewModel,ModelA=NewModelA in CLI).
|
|
144
144
|
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_auth_social_mobile_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_social_mobile_post_200_response=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_auth_social_mobile_post_200_response=NewModel,ModelA=NewModelA in CLI).
|
|
145
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_auth_register_start_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_start_post_request=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_auth_register_start_post_request=NewModel,ModelA=NewModelA in CLI).
|
|
146
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_auth_register_start_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_start_post_200_response_responseObject=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_auth_register_start_post_200_response_responseObject=NewModel,ModelA=NewModelA in CLI).
|
|
147
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_auth_register_start_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_start_post_200_response=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_auth_register_start_post_200_response=NewModel,ModelA=NewModelA in CLI).
|
|
148
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_auth_register_verify_otp_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_verify_otp_post_request=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_auth_register_verify_otp_post_request=NewModel,ModelA=NewModelA in CLI).
|
|
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
|
+
[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
|
+
[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).
|
|
145
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).
|
|
146
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).
|
|
147
156
|
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_esport__id__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__id__matches_get_200_response_responseObject_items_inner_results_inner_team=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_esport__id__matches_get_200_response_responseObject_items_inner_results_inner_team=NewModel,ModelA=NewModelA in CLI).
|
|
@@ -160,6 +169,15 @@
|
|
|
160
169
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthLoginPostRequest.ts
|
|
161
170
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthRefreshPost200Response.ts
|
|
162
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
|
|
174
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthRegisterCompletePostRequest.ts
|
|
175
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthRegisterStartPost200Response.ts
|
|
176
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthRegisterStartPost200ResponseResponseObject.ts
|
|
177
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthRegisterStartPostRequest.ts
|
|
178
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthRegisterVerifyOtpPost200Response.ts
|
|
179
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthRegisterVerifyOtpPost200ResponseResponseObject.ts
|
|
180
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthRegisterVerifyOtpPostRequest.ts
|
|
163
181
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthSocialMobilePost200Response.ts
|
|
164
182
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthSocialMobilePost200ResponseResponseObject.ts
|
|
165
183
|
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthSocialMobilePostRequest.ts
|
|
@@ -345,6 +363,9 @@
|
|
|
345
363
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: post /api/auth/refresh. Renamed to auto-generated operationId: apiAuthRefreshPost
|
|
346
364
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/auth/validate. Renamed to auto-generated operationId: apiAuthValidateGet
|
|
347
365
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: post /api/auth/social/mobile. Renamed to auto-generated operationId: apiAuthSocialMobilePost
|
|
366
|
+
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: post /api/auth/register/start. Renamed to auto-generated operationId: apiAuthRegisterStartPost
|
|
367
|
+
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: post /api/auth/register/verify-otp. Renamed to auto-generated operationId: apiAuthRegisterVerifyOtpPost
|
|
368
|
+
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: post /api/auth/register/complete. Renamed to auto-generated operationId: apiAuthRegisterCompletePost
|
|
348
369
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/esport/videogames. Renamed to auto-generated operationId: apiEsportVideogamesGet
|
|
349
370
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/esport/{id}/matches. Renamed to auto-generated operationId: apiEsportIdMatchesGet
|
|
350
371
|
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/esport/match/{id}. Renamed to auto-generated operationId: apiEsportMatchIdGet
|
|
@@ -386,20 +407,22 @@
|
|
|
386
407
|
# https://opencollective.com/openapi_generator/donate #
|
|
387
408
|
################################################################################
|
|
388
409
|
✅ SDK generated
|
|
389
|
-
[master
|
|
390
|
-
|
|
410
|
+
[master 23bab3e] VPS: Generated API SDK
|
|
411
|
+
6 files changed, 218 insertions(+), 3 deletions(-)
|
|
412
|
+
create mode 100644 models/ApiAuthRegisterCompletePost200Response.ts
|
|
413
|
+
create mode 100644 models/ApiAuthRegisterCompletePost200ResponseResponseObject.ts
|
|
391
414
|
To https://gitlab.com/drx-super/drx-sdk.git
|
|
392
|
-
|
|
415
|
+
72d677f..23bab3e master -> master
|
|
393
416
|
✅ Changes committed and pushed
|
|
394
|
-
v1.1.
|
|
417
|
+
v1.1.216
|
|
395
418
|
To https://gitlab.com/drx-super/drx-sdk.git
|
|
396
|
-
|
|
419
|
+
23bab3e..14457b9 master -> master
|
|
397
420
|
✅ Version bumped
|
|
398
421
|
|
|
399
|
-
> @drxsuperapp/sdk@1.1.
|
|
422
|
+
> @drxsuperapp/sdk@1.1.216 prepublishOnly
|
|
400
423
|
> npm run build
|
|
401
424
|
|
|
402
425
|
|
|
403
|
-
> @drxsuperapp/sdk@1.1.
|
|
426
|
+
> @drxsuperapp/sdk@1.1.216 build
|
|
404
427
|
> tsc
|
|
405
428
|
|
|
@@ -10,10 +10,19 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { ApiAuthLoginPost200Response, ApiAuthLoginPostRequest, ApiAuthRefreshPost200Response, 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
|
}
|
|
17
|
+
export interface ApiAuthRegisterCompletePostOperationRequest {
|
|
18
|
+
apiAuthRegisterCompletePostRequest?: ApiAuthRegisterCompletePostRequest;
|
|
19
|
+
}
|
|
20
|
+
export interface ApiAuthRegisterStartPostOperationRequest {
|
|
21
|
+
apiAuthRegisterStartPostRequest?: ApiAuthRegisterStartPostRequest;
|
|
22
|
+
}
|
|
23
|
+
export interface ApiAuthRegisterVerifyOtpPostOperationRequest {
|
|
24
|
+
apiAuthRegisterVerifyOtpPostRequest?: ApiAuthRegisterVerifyOtpPostRequest;
|
|
25
|
+
}
|
|
17
26
|
export interface ApiAuthSocialMobilePostOperationRequest {
|
|
18
27
|
apiAuthSocialMobilePostRequest?: ApiAuthSocialMobilePostRequest;
|
|
19
28
|
}
|
|
@@ -41,6 +50,36 @@ export declare class AuthenticationApi extends runtime.BaseAPI {
|
|
|
41
50
|
* Refresh Access Token
|
|
42
51
|
*/
|
|
43
52
|
apiAuthRefreshPost(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiAuthRefreshPost200Response>;
|
|
53
|
+
/**
|
|
54
|
+
* Complete registration by setting password and creating user account
|
|
55
|
+
* Register 3. Complete User Registration
|
|
56
|
+
*/
|
|
57
|
+
apiAuthRegisterCompletePostRaw(requestParameters: ApiAuthRegisterCompletePostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiAuthRegisterCompletePost200Response>>;
|
|
58
|
+
/**
|
|
59
|
+
* Complete registration by setting password and creating user account
|
|
60
|
+
* Register 3. Complete User Registration
|
|
61
|
+
*/
|
|
62
|
+
apiAuthRegisterCompletePost(requestParameters?: ApiAuthRegisterCompletePostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiAuthRegisterCompletePost200Response>;
|
|
63
|
+
/**
|
|
64
|
+
* Start registration process by sending OTP to email
|
|
65
|
+
* Register 1. Start User Registration
|
|
66
|
+
*/
|
|
67
|
+
apiAuthRegisterStartPostRaw(requestParameters: ApiAuthRegisterStartPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiAuthRegisterStartPost200Response>>;
|
|
68
|
+
/**
|
|
69
|
+
* Start registration process by sending OTP to email
|
|
70
|
+
* Register 1. Start User Registration
|
|
71
|
+
*/
|
|
72
|
+
apiAuthRegisterStartPost(requestParameters?: ApiAuthRegisterStartPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiAuthRegisterStartPost200Response>;
|
|
73
|
+
/**
|
|
74
|
+
* Verify the OTP code sent to email during registration
|
|
75
|
+
* Register 2. Verify Registration OTP
|
|
76
|
+
*/
|
|
77
|
+
apiAuthRegisterVerifyOtpPostRaw(requestParameters: ApiAuthRegisterVerifyOtpPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiAuthRegisterVerifyOtpPost200Response>>;
|
|
78
|
+
/**
|
|
79
|
+
* Verify the OTP code sent to email during registration
|
|
80
|
+
* Register 2. Verify Registration OTP
|
|
81
|
+
*/
|
|
82
|
+
apiAuthRegisterVerifyOtpPost(requestParameters?: ApiAuthRegisterVerifyOtpPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiAuthRegisterVerifyOtpPost200Response>;
|
|
44
83
|
/**
|
|
45
84
|
* Authenticate user with social credentials from mobile app. Google requires idToken. Apple requires authorizationCode.
|
|
46
85
|
* Social Mobile Authentication
|
|
@@ -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, 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
|
*/
|
|
@@ -85,6 +85,111 @@ export class AuthenticationApi extends runtime.BaseAPI {
|
|
|
85
85
|
const response = await this.apiAuthRefreshPostRaw(initOverrides);
|
|
86
86
|
return await response.value();
|
|
87
87
|
}
|
|
88
|
+
/**
|
|
89
|
+
* Complete registration by setting password and creating user account
|
|
90
|
+
* Register 3. Complete User Registration
|
|
91
|
+
*/
|
|
92
|
+
async apiAuthRegisterCompletePostRaw(requestParameters, initOverrides) {
|
|
93
|
+
const queryParameters = {};
|
|
94
|
+
const headerParameters = {};
|
|
95
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
96
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
97
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
98
|
+
}
|
|
99
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
100
|
+
const token = this.configuration.accessToken;
|
|
101
|
+
const tokenString = await token("BearerAuth", []);
|
|
102
|
+
if (tokenString) {
|
|
103
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
const response = await this.request({
|
|
107
|
+
path: `/api/auth/register/complete`,
|
|
108
|
+
method: 'POST',
|
|
109
|
+
headers: headerParameters,
|
|
110
|
+
query: queryParameters,
|
|
111
|
+
body: ApiAuthRegisterCompletePostRequestToJSON(requestParameters['apiAuthRegisterCompletePostRequest']),
|
|
112
|
+
}, initOverrides);
|
|
113
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiAuthRegisterCompletePost200ResponseFromJSON(jsonValue));
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* Complete registration by setting password and creating user account
|
|
117
|
+
* Register 3. Complete User Registration
|
|
118
|
+
*/
|
|
119
|
+
async apiAuthRegisterCompletePost(requestParameters = {}, initOverrides) {
|
|
120
|
+
const response = await this.apiAuthRegisterCompletePostRaw(requestParameters, initOverrides);
|
|
121
|
+
return await response.value();
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* Start registration process by sending OTP to email
|
|
125
|
+
* Register 1. Start User Registration
|
|
126
|
+
*/
|
|
127
|
+
async apiAuthRegisterStartPostRaw(requestParameters, initOverrides) {
|
|
128
|
+
const queryParameters = {};
|
|
129
|
+
const headerParameters = {};
|
|
130
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
131
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
132
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
133
|
+
}
|
|
134
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
135
|
+
const token = this.configuration.accessToken;
|
|
136
|
+
const tokenString = await token("BearerAuth", []);
|
|
137
|
+
if (tokenString) {
|
|
138
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
const response = await this.request({
|
|
142
|
+
path: `/api/auth/register/start`,
|
|
143
|
+
method: 'POST',
|
|
144
|
+
headers: headerParameters,
|
|
145
|
+
query: queryParameters,
|
|
146
|
+
body: ApiAuthRegisterStartPostRequestToJSON(requestParameters['apiAuthRegisterStartPostRequest']),
|
|
147
|
+
}, initOverrides);
|
|
148
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiAuthRegisterStartPost200ResponseFromJSON(jsonValue));
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* Start registration process by sending OTP to email
|
|
152
|
+
* Register 1. Start User Registration
|
|
153
|
+
*/
|
|
154
|
+
async apiAuthRegisterStartPost(requestParameters = {}, initOverrides) {
|
|
155
|
+
const response = await this.apiAuthRegisterStartPostRaw(requestParameters, initOverrides);
|
|
156
|
+
return await response.value();
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* Verify the OTP code sent to email during registration
|
|
160
|
+
* Register 2. Verify Registration OTP
|
|
161
|
+
*/
|
|
162
|
+
async apiAuthRegisterVerifyOtpPostRaw(requestParameters, initOverrides) {
|
|
163
|
+
const queryParameters = {};
|
|
164
|
+
const headerParameters = {};
|
|
165
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
166
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
167
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
|
|
168
|
+
}
|
|
169
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
170
|
+
const token = this.configuration.accessToken;
|
|
171
|
+
const tokenString = await token("BearerAuth", []);
|
|
172
|
+
if (tokenString) {
|
|
173
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
const response = await this.request({
|
|
177
|
+
path: `/api/auth/register/verify-otp`,
|
|
178
|
+
method: 'POST',
|
|
179
|
+
headers: headerParameters,
|
|
180
|
+
query: queryParameters,
|
|
181
|
+
body: ApiAuthRegisterVerifyOtpPostRequestToJSON(requestParameters['apiAuthRegisterVerifyOtpPostRequest']),
|
|
182
|
+
}, initOverrides);
|
|
183
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiAuthRegisterVerifyOtpPost200ResponseFromJSON(jsonValue));
|
|
184
|
+
}
|
|
185
|
+
/**
|
|
186
|
+
* Verify the OTP code sent to email during registration
|
|
187
|
+
* Register 2. Verify Registration OTP
|
|
188
|
+
*/
|
|
189
|
+
async apiAuthRegisterVerifyOtpPost(requestParameters = {}, initOverrides) {
|
|
190
|
+
const response = await this.apiAuthRegisterVerifyOtpPostRaw(requestParameters, initOverrides);
|
|
191
|
+
return await response.value();
|
|
192
|
+
}
|
|
88
193
|
/**
|
|
89
194
|
* Authenticate user with social credentials from mobile app. Google requires idToken. Apple requires authorizationCode.
|
|
90
195
|
* Social Mobile Authentication
|
|
@@ -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;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* DRX API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { ApiAuthRegisterCompletePost200ResponseResponseObjectFromJSON, ApiAuthRegisterCompletePost200ResponseResponseObjectToJSON, } from './ApiAuthRegisterCompletePost200ResponseResponseObject';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the ApiAuthRegisterCompletePost200Response interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfApiAuthRegisterCompletePost200Response(value) {
|
|
19
|
+
if (!('success' in value) || value['success'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('message' in value) || value['message'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('statusCode' in value) || value['statusCode'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
export function ApiAuthRegisterCompletePost200ResponseFromJSON(json) {
|
|
28
|
+
return ApiAuthRegisterCompletePost200ResponseFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
export function ApiAuthRegisterCompletePost200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'success': json['success'],
|
|
36
|
+
'message': json['message'],
|
|
37
|
+
'responseObject': json['responseObject'] == null ? undefined : ApiAuthRegisterCompletePost200ResponseResponseObjectFromJSON(json['responseObject']),
|
|
38
|
+
'statusCode': json['statusCode'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
export function ApiAuthRegisterCompletePost200ResponseToJSON(json) {
|
|
42
|
+
return ApiAuthRegisterCompletePost200ResponseToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
export function ApiAuthRegisterCompletePost200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'success': value['success'],
|
|
50
|
+
'message': value['message'],
|
|
51
|
+
'responseObject': ApiAuthRegisterCompletePost200ResponseResponseObjectToJSON(value['responseObject']),
|
|
52
|
+
'statusCode': value['statusCode'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -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 { ApiAuthLoginPost200ResponseResponseObjectUser } from './ApiAuthLoginPost200ResponseResponseObjectUser';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ApiAuthRegisterCompletePost200ResponseResponseObject
|
|
17
|
+
*/
|
|
18
|
+
export interface ApiAuthRegisterCompletePost200ResponseResponseObject {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {ApiAuthLoginPost200ResponseResponseObjectUser}
|
|
22
|
+
* @memberof ApiAuthRegisterCompletePost200ResponseResponseObject
|
|
23
|
+
*/
|
|
24
|
+
user: ApiAuthLoginPost200ResponseResponseObjectUser;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof ApiAuthRegisterCompletePost200ResponseResponseObject
|
|
29
|
+
*/
|
|
30
|
+
accessToken: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof ApiAuthRegisterCompletePost200ResponseResponseObject
|
|
35
|
+
*/
|
|
36
|
+
refreshToken: string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {boolean}
|
|
40
|
+
* @memberof ApiAuthRegisterCompletePost200ResponseResponseObject
|
|
41
|
+
*/
|
|
42
|
+
affiliateCodeApplied?: boolean;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the ApiAuthRegisterCompletePost200ResponseResponseObject interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfApiAuthRegisterCompletePost200ResponseResponseObject(value: object): value is ApiAuthRegisterCompletePost200ResponseResponseObject;
|
|
48
|
+
export declare function ApiAuthRegisterCompletePost200ResponseResponseObjectFromJSON(json: any): ApiAuthRegisterCompletePost200ResponseResponseObject;
|
|
49
|
+
export declare function ApiAuthRegisterCompletePost200ResponseResponseObjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiAuthRegisterCompletePost200ResponseResponseObject;
|
|
50
|
+
export declare function ApiAuthRegisterCompletePost200ResponseResponseObjectToJSON(json: any): ApiAuthRegisterCompletePost200ResponseResponseObject;
|
|
51
|
+
export declare function ApiAuthRegisterCompletePost200ResponseResponseObjectToJSONTyped(value?: ApiAuthRegisterCompletePost200ResponseResponseObject | null, ignoreDiscriminator?: boolean): any;
|