@drxsuperapp/sdk 1.1.209 → 1.1.215

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.
Files changed (30) hide show
  1. package/.openapi-generator/FILES +7 -0
  2. package/apis/AuthenticationApi.ts +156 -0
  3. package/deploy.log +25 -7
  4. package/dist/apis/AuthenticationApi.d.ts +40 -1
  5. package/dist/apis/AuthenticationApi.js +106 -1
  6. package/dist/models/ApiAuthRegisterCompletePostRequest.d.ts +38 -0
  7. package/dist/models/ApiAuthRegisterCompletePostRequest.js +47 -0
  8. package/dist/models/ApiAuthRegisterStartPost200Response.d.ts +51 -0
  9. package/dist/models/ApiAuthRegisterStartPost200Response.js +54 -0
  10. package/dist/models/ApiAuthRegisterStartPost200ResponseResponseObject.d.ts +44 -0
  11. package/dist/models/ApiAuthRegisterStartPost200ResponseResponseObject.js +51 -0
  12. package/dist/models/ApiAuthRegisterStartPostRequest.d.ts +44 -0
  13. package/dist/models/ApiAuthRegisterStartPostRequest.js +51 -0
  14. package/dist/models/ApiAuthRegisterVerifyOtpPost200Response.d.ts +51 -0
  15. package/dist/models/ApiAuthRegisterVerifyOtpPost200Response.js +54 -0
  16. package/dist/models/ApiAuthRegisterVerifyOtpPost200ResponseResponseObject.d.ts +38 -0
  17. package/dist/models/ApiAuthRegisterVerifyOtpPost200ResponseResponseObject.js +47 -0
  18. package/dist/models/ApiAuthRegisterVerifyOtpPostRequest.d.ts +38 -0
  19. package/dist/models/ApiAuthRegisterVerifyOtpPostRequest.js +47 -0
  20. package/dist/models/index.d.ts +7 -0
  21. package/dist/models/index.js +7 -0
  22. package/models/ApiAuthRegisterCompletePostRequest.ts +75 -0
  23. package/models/ApiAuthRegisterStartPost200Response.ts +100 -0
  24. package/models/ApiAuthRegisterStartPost200ResponseResponseObject.ts +84 -0
  25. package/models/ApiAuthRegisterStartPostRequest.ts +84 -0
  26. package/models/ApiAuthRegisterVerifyOtpPost200Response.ts +100 -0
  27. package/models/ApiAuthRegisterVerifyOtpPost200ResponseResponseObject.ts +75 -0
  28. package/models/ApiAuthRegisterVerifyOtpPostRequest.ts +75 -0
  29. package/models/index.ts +7 -0
  30. package/package.json +1 -1
@@ -18,6 +18,13 @@ models/ApiAuthLoginPost200ResponseResponseObjectUser.ts
18
18
  models/ApiAuthLoginPostRequest.ts
19
19
  models/ApiAuthRefreshPost200Response.ts
20
20
  models/ApiAuthRefreshPost200ResponseResponseObject.ts
21
+ models/ApiAuthRegisterCompletePostRequest.ts
22
+ models/ApiAuthRegisterStartPost200Response.ts
23
+ models/ApiAuthRegisterStartPost200ResponseResponseObject.ts
24
+ models/ApiAuthRegisterStartPostRequest.ts
25
+ models/ApiAuthRegisterVerifyOtpPost200Response.ts
26
+ models/ApiAuthRegisterVerifyOtpPost200ResponseResponseObject.ts
27
+ models/ApiAuthRegisterVerifyOtpPostRequest.ts
21
28
  models/ApiAuthSocialMobilePost200Response.ts
22
29
  models/ApiAuthSocialMobilePost200ResponseResponseObject.ts
23
30
  models/ApiAuthSocialMobilePostRequest.ts
@@ -18,6 +18,11 @@ import type {
18
18
  ApiAuthLoginPost200Response,
19
19
  ApiAuthLoginPostRequest,
20
20
  ApiAuthRefreshPost200Response,
21
+ ApiAuthRegisterCompletePostRequest,
22
+ ApiAuthRegisterStartPost200Response,
23
+ ApiAuthRegisterStartPostRequest,
24
+ ApiAuthRegisterVerifyOtpPost200Response,
25
+ ApiAuthRegisterVerifyOtpPostRequest,
21
26
  ApiAuthSocialMobilePost200Response,
22
27
  ApiAuthSocialMobilePostRequest,
23
28
  ApiUserGet200Response,
@@ -29,6 +34,16 @@ import {
29
34
  ApiAuthLoginPostRequestToJSON,
30
35
  ApiAuthRefreshPost200ResponseFromJSON,
31
36
  ApiAuthRefreshPost200ResponseToJSON,
37
+ ApiAuthRegisterCompletePostRequestFromJSON,
38
+ ApiAuthRegisterCompletePostRequestToJSON,
39
+ ApiAuthRegisterStartPost200ResponseFromJSON,
40
+ ApiAuthRegisterStartPost200ResponseToJSON,
41
+ ApiAuthRegisterStartPostRequestFromJSON,
42
+ ApiAuthRegisterStartPostRequestToJSON,
43
+ ApiAuthRegisterVerifyOtpPost200ResponseFromJSON,
44
+ ApiAuthRegisterVerifyOtpPost200ResponseToJSON,
45
+ ApiAuthRegisterVerifyOtpPostRequestFromJSON,
46
+ ApiAuthRegisterVerifyOtpPostRequestToJSON,
32
47
  ApiAuthSocialMobilePost200ResponseFromJSON,
33
48
  ApiAuthSocialMobilePost200ResponseToJSON,
34
49
  ApiAuthSocialMobilePostRequestFromJSON,
@@ -41,6 +56,18 @@ export interface ApiAuthLoginPostOperationRequest {
41
56
  apiAuthLoginPostRequest?: ApiAuthLoginPostRequest;
42
57
  }
43
58
 
59
+ export interface ApiAuthRegisterCompletePostOperationRequest {
60
+ apiAuthRegisterCompletePostRequest?: ApiAuthRegisterCompletePostRequest;
61
+ }
62
+
63
+ export interface ApiAuthRegisterStartPostOperationRequest {
64
+ apiAuthRegisterStartPostRequest?: ApiAuthRegisterStartPostRequest;
65
+ }
66
+
67
+ export interface ApiAuthRegisterVerifyOtpPostOperationRequest {
68
+ apiAuthRegisterVerifyOtpPostRequest?: ApiAuthRegisterVerifyOtpPostRequest;
69
+ }
70
+
44
71
  export interface ApiAuthSocialMobilePostOperationRequest {
45
72
  apiAuthSocialMobilePostRequest?: ApiAuthSocialMobilePostRequest;
46
73
  }
@@ -133,6 +160,135 @@ export class AuthenticationApi extends runtime.BaseAPI {
133
160
  return await response.value();
134
161
  }
135
162
 
163
+ /**
164
+ * Complete registration by setting password and creating user account
165
+ * Register 3. Complete User Registration
166
+ */
167
+ async apiAuthRegisterCompletePostRaw(requestParameters: ApiAuthRegisterCompletePostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiAuthLoginPost200Response>> {
168
+ const queryParameters: any = {};
169
+
170
+ const headerParameters: runtime.HTTPHeaders = {};
171
+
172
+ headerParameters['Content-Type'] = 'application/json';
173
+
174
+ if (this.configuration && this.configuration.apiKey) {
175
+ headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
176
+ }
177
+
178
+ if (this.configuration && this.configuration.accessToken) {
179
+ const token = this.configuration.accessToken;
180
+ const tokenString = await token("BearerAuth", []);
181
+
182
+ if (tokenString) {
183
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
184
+ }
185
+ }
186
+ const response = await this.request({
187
+ path: `/api/auth/register/complete`,
188
+ method: 'POST',
189
+ headers: headerParameters,
190
+ query: queryParameters,
191
+ body: ApiAuthRegisterCompletePostRequestToJSON(requestParameters['apiAuthRegisterCompletePostRequest']),
192
+ }, initOverrides);
193
+
194
+ return new runtime.JSONApiResponse(response, (jsonValue) => ApiAuthLoginPost200ResponseFromJSON(jsonValue));
195
+ }
196
+
197
+ /**
198
+ * Complete registration by setting password and creating user account
199
+ * Register 3. Complete User Registration
200
+ */
201
+ async apiAuthRegisterCompletePost(requestParameters: ApiAuthRegisterCompletePostOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiAuthLoginPost200Response> {
202
+ const response = await this.apiAuthRegisterCompletePostRaw(requestParameters, initOverrides);
203
+ return await response.value();
204
+ }
205
+
206
+ /**
207
+ * Start registration process by sending OTP to email
208
+ * Register 1. Start User Registration
209
+ */
210
+ async apiAuthRegisterStartPostRaw(requestParameters: ApiAuthRegisterStartPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiAuthRegisterStartPost200Response>> {
211
+ const queryParameters: any = {};
212
+
213
+ const headerParameters: runtime.HTTPHeaders = {};
214
+
215
+ headerParameters['Content-Type'] = 'application/json';
216
+
217
+ if (this.configuration && this.configuration.apiKey) {
218
+ headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
219
+ }
220
+
221
+ if (this.configuration && this.configuration.accessToken) {
222
+ const token = this.configuration.accessToken;
223
+ const tokenString = await token("BearerAuth", []);
224
+
225
+ if (tokenString) {
226
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
227
+ }
228
+ }
229
+ const response = await this.request({
230
+ path: `/api/auth/register/start`,
231
+ method: 'POST',
232
+ headers: headerParameters,
233
+ query: queryParameters,
234
+ body: ApiAuthRegisterStartPostRequestToJSON(requestParameters['apiAuthRegisterStartPostRequest']),
235
+ }, initOverrides);
236
+
237
+ return new runtime.JSONApiResponse(response, (jsonValue) => ApiAuthRegisterStartPost200ResponseFromJSON(jsonValue));
238
+ }
239
+
240
+ /**
241
+ * Start registration process by sending OTP to email
242
+ * Register 1. Start User Registration
243
+ */
244
+ async apiAuthRegisterStartPost(requestParameters: ApiAuthRegisterStartPostOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiAuthRegisterStartPost200Response> {
245
+ const response = await this.apiAuthRegisterStartPostRaw(requestParameters, initOverrides);
246
+ return await response.value();
247
+ }
248
+
249
+ /**
250
+ * Verify the OTP code sent to email during registration
251
+ * Register 2. Verify Registration OTP
252
+ */
253
+ async apiAuthRegisterVerifyOtpPostRaw(requestParameters: ApiAuthRegisterVerifyOtpPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiAuthRegisterVerifyOtpPost200Response>> {
254
+ const queryParameters: any = {};
255
+
256
+ const headerParameters: runtime.HTTPHeaders = {};
257
+
258
+ headerParameters['Content-Type'] = 'application/json';
259
+
260
+ if (this.configuration && this.configuration.apiKey) {
261
+ headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
262
+ }
263
+
264
+ if (this.configuration && this.configuration.accessToken) {
265
+ const token = this.configuration.accessToken;
266
+ const tokenString = await token("BearerAuth", []);
267
+
268
+ if (tokenString) {
269
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
270
+ }
271
+ }
272
+ const response = await this.request({
273
+ path: `/api/auth/register/verify-otp`,
274
+ method: 'POST',
275
+ headers: headerParameters,
276
+ query: queryParameters,
277
+ body: ApiAuthRegisterVerifyOtpPostRequestToJSON(requestParameters['apiAuthRegisterVerifyOtpPostRequest']),
278
+ }, initOverrides);
279
+
280
+ return new runtime.JSONApiResponse(response, (jsonValue) => ApiAuthRegisterVerifyOtpPost200ResponseFromJSON(jsonValue));
281
+ }
282
+
283
+ /**
284
+ * Verify the OTP code sent to email during registration
285
+ * Register 2. Verify Registration OTP
286
+ */
287
+ async apiAuthRegisterVerifyOtpPost(requestParameters: ApiAuthRegisterVerifyOtpPostOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiAuthRegisterVerifyOtpPost200Response> {
288
+ const response = await this.apiAuthRegisterVerifyOtpPostRaw(requestParameters, initOverrides);
289
+ return await response.value();
290
+ }
291
+
136
292
  /**
137
293
  * Authenticate user with social credentials from mobile app. Google requires idToken. Apple requires authorizationCode.
138
294
  * Social Mobile Authentication
package/deploy.log CHANGED
@@ -142,6 +142,13 @@
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).
145
152
  [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
153
  [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
154
  [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 +167,13 @@
160
167
  [main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthLoginPostRequest.ts
161
168
  [main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthRefreshPost200Response.ts
162
169
  [main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthRefreshPost200ResponseResponseObject.ts
170
+ [main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthRegisterCompletePostRequest.ts
171
+ [main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthRegisterStartPost200Response.ts
172
+ [main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthRegisterStartPost200ResponseResponseObject.ts
173
+ [main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthRegisterStartPostRequest.ts
174
+ [main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthRegisterVerifyOtpPost200Response.ts
175
+ [main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthRegisterVerifyOtpPost200ResponseResponseObject.ts
176
+ [main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthRegisterVerifyOtpPostRequest.ts
163
177
  [main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthSocialMobilePost200Response.ts
164
178
  [main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthSocialMobilePost200ResponseResponseObject.ts
165
179
  [main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthSocialMobilePostRequest.ts
@@ -345,6 +359,9 @@
345
359
  [main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: post /api/auth/refresh. Renamed to auto-generated operationId: apiAuthRefreshPost
346
360
  [main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/auth/validate. Renamed to auto-generated operationId: apiAuthValidateGet
347
361
  [main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: post /api/auth/social/mobile. Renamed to auto-generated operationId: apiAuthSocialMobilePost
362
+ [main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: post /api/auth/register/start. Renamed to auto-generated operationId: apiAuthRegisterStartPost
363
+ [main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: post /api/auth/register/verify-otp. Renamed to auto-generated operationId: apiAuthRegisterVerifyOtpPost
364
+ [main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: post /api/auth/register/complete. Renamed to auto-generated operationId: apiAuthRegisterCompletePost
348
365
  [main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/esport/videogames. Renamed to auto-generated operationId: apiEsportVideogamesGet
349
366
  [main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/esport/{id}/matches. Renamed to auto-generated operationId: apiEsportIdMatchesGet
350
367
  [main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/esport/match/{id}. Renamed to auto-generated operationId: apiEsportMatchIdGet
@@ -386,20 +403,21 @@
386
403
  # https://opencollective.com/openapi_generator/donate #
387
404
  ################################################################################
388
405
  ✅ SDK generated
389
- [master 39be15b] VPS: Generated API SDK
390
- 1 file changed, 5 insertions(+)
406
+ [master b40be82] VPS: Generated API SDK
407
+ 4 files changed, 54 insertions(+), 192 deletions(-)
408
+ delete mode 100644 apis/RegistrationApi.ts
391
409
  To https://gitlab.com/drx-super/drx-sdk.git
392
- 197c225..39be15b master -> master
410
+ edb142e..b40be82 master -> master
393
411
  ✅ Changes committed and pushed
394
- v1.1.209
412
+ v1.1.215
395
413
  To https://gitlab.com/drx-super/drx-sdk.git
396
- 39be15b..9ebef1c master -> master
414
+ b40be82..72d677f master -> master
397
415
  ✅ Version bumped
398
416
 
399
- > @drxsuperapp/sdk@1.1.209 prepublishOnly
417
+ > @drxsuperapp/sdk@1.1.215 prepublishOnly
400
418
  > npm run build
401
419
 
402
420
 
403
- > @drxsuperapp/sdk@1.1.209 build
421
+ > @drxsuperapp/sdk@1.1.215 build
404
422
  > tsc
405
423
 
@@ -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, 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<ApiAuthLoginPost200Response>>;
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<ApiAuthLoginPost200Response>;
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, 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) => ApiAuthLoginPost200ResponseFromJSON(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,38 @@
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
+ /**
13
+ *
14
+ * @export
15
+ * @interface ApiAuthRegisterCompletePostRequest
16
+ */
17
+ export interface ApiAuthRegisterCompletePostRequest {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof ApiAuthRegisterCompletePostRequest
22
+ */
23
+ email: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof ApiAuthRegisterCompletePostRequest
28
+ */
29
+ password: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the ApiAuthRegisterCompletePostRequest interface.
33
+ */
34
+ export declare function instanceOfApiAuthRegisterCompletePostRequest(value: object): value is ApiAuthRegisterCompletePostRequest;
35
+ export declare function ApiAuthRegisterCompletePostRequestFromJSON(json: any): ApiAuthRegisterCompletePostRequest;
36
+ export declare function ApiAuthRegisterCompletePostRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiAuthRegisterCompletePostRequest;
37
+ export declare function ApiAuthRegisterCompletePostRequestToJSON(json: any): ApiAuthRegisterCompletePostRequest;
38
+ export declare function ApiAuthRegisterCompletePostRequestToJSONTyped(value?: ApiAuthRegisterCompletePostRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,47 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * DRX API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Check if a given object implements the ApiAuthRegisterCompletePostRequest interface.
16
+ */
17
+ export function instanceOfApiAuthRegisterCompletePostRequest(value) {
18
+ if (!('email' in value) || value['email'] === undefined)
19
+ return false;
20
+ if (!('password' in value) || value['password'] === undefined)
21
+ return false;
22
+ return true;
23
+ }
24
+ export function ApiAuthRegisterCompletePostRequestFromJSON(json) {
25
+ return ApiAuthRegisterCompletePostRequestFromJSONTyped(json, false);
26
+ }
27
+ export function ApiAuthRegisterCompletePostRequestFromJSONTyped(json, ignoreDiscriminator) {
28
+ if (json == null) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'email': json['email'],
33
+ 'password': json['password'],
34
+ };
35
+ }
36
+ export function ApiAuthRegisterCompletePostRequestToJSON(json) {
37
+ return ApiAuthRegisterCompletePostRequestToJSONTyped(json, false);
38
+ }
39
+ export function ApiAuthRegisterCompletePostRequestToJSONTyped(value, ignoreDiscriminator = false) {
40
+ if (value == null) {
41
+ return value;
42
+ }
43
+ return {
44
+ 'email': value['email'],
45
+ 'password': value['password'],
46
+ };
47
+ }
@@ -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 { ApiAuthRegisterStartPost200ResponseResponseObject } from './ApiAuthRegisterStartPost200ResponseResponseObject';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ApiAuthRegisterStartPost200Response
17
+ */
18
+ export interface ApiAuthRegisterStartPost200Response {
19
+ /**
20
+ *
21
+ * @type {boolean}
22
+ * @memberof ApiAuthRegisterStartPost200Response
23
+ */
24
+ success: boolean;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof ApiAuthRegisterStartPost200Response
29
+ */
30
+ message: string;
31
+ /**
32
+ *
33
+ * @type {ApiAuthRegisterStartPost200ResponseResponseObject}
34
+ * @memberof ApiAuthRegisterStartPost200Response
35
+ */
36
+ responseObject?: ApiAuthRegisterStartPost200ResponseResponseObject;
37
+ /**
38
+ *
39
+ * @type {number}
40
+ * @memberof ApiAuthRegisterStartPost200Response
41
+ */
42
+ statusCode: number;
43
+ }
44
+ /**
45
+ * Check if a given object implements the ApiAuthRegisterStartPost200Response interface.
46
+ */
47
+ export declare function instanceOfApiAuthRegisterStartPost200Response(value: object): value is ApiAuthRegisterStartPost200Response;
48
+ export declare function ApiAuthRegisterStartPost200ResponseFromJSON(json: any): ApiAuthRegisterStartPost200Response;
49
+ export declare function ApiAuthRegisterStartPost200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiAuthRegisterStartPost200Response;
50
+ export declare function ApiAuthRegisterStartPost200ResponseToJSON(json: any): ApiAuthRegisterStartPost200Response;
51
+ export declare function ApiAuthRegisterStartPost200ResponseToJSONTyped(value?: ApiAuthRegisterStartPost200Response | 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 { ApiAuthRegisterStartPost200ResponseResponseObjectFromJSON, ApiAuthRegisterStartPost200ResponseResponseObjectToJSON, } from './ApiAuthRegisterStartPost200ResponseResponseObject';
15
+ /**
16
+ * Check if a given object implements the ApiAuthRegisterStartPost200Response interface.
17
+ */
18
+ export function instanceOfApiAuthRegisterStartPost200Response(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 ApiAuthRegisterStartPost200ResponseFromJSON(json) {
28
+ return ApiAuthRegisterStartPost200ResponseFromJSONTyped(json, false);
29
+ }
30
+ export function ApiAuthRegisterStartPost200ResponseFromJSONTyped(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 : ApiAuthRegisterStartPost200ResponseResponseObjectFromJSON(json['responseObject']),
38
+ 'statusCode': json['statusCode'],
39
+ };
40
+ }
41
+ export function ApiAuthRegisterStartPost200ResponseToJSON(json) {
42
+ return ApiAuthRegisterStartPost200ResponseToJSONTyped(json, false);
43
+ }
44
+ export function ApiAuthRegisterStartPost200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'success': value['success'],
50
+ 'message': value['message'],
51
+ 'responseObject': ApiAuthRegisterStartPost200ResponseResponseObjectToJSON(value['responseObject']),
52
+ 'statusCode': value['statusCode'],
53
+ };
54
+ }