@drxsuperapp/sdk 1.1.218 → 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.
Files changed (33) hide show
  1. package/.openapi-generator/FILES +6 -0
  2. package/apis/AuthenticationApi.ts +153 -0
  3. package/deploy.log +28 -8
  4. package/dist/apis/AuthenticationApi.d.ts +40 -1
  5. package/dist/apis/AuthenticationApi.js +106 -1
  6. package/dist/models/ApiAuthForgotPasswordChangePasswordPost200Response.d.ts +51 -0
  7. package/dist/models/ApiAuthForgotPasswordChangePasswordPost200Response.js +54 -0
  8. package/dist/models/ApiAuthForgotPasswordChangePasswordPost200ResponseResponseObject.d.ts +38 -0
  9. package/dist/models/ApiAuthForgotPasswordChangePasswordPost200ResponseResponseObject.js +47 -0
  10. package/dist/models/ApiAuthForgotPasswordChangePasswordPostRequest.d.ts +44 -0
  11. package/dist/models/ApiAuthForgotPasswordChangePasswordPostRequest.js +51 -0
  12. package/dist/models/ApiAuthForgotPasswordRequestPostRequest.d.ts +32 -0
  13. package/dist/models/ApiAuthForgotPasswordRequestPostRequest.js +43 -0
  14. package/dist/models/ApiAuthForgotPasswordVerifyOtpPost200Response.d.ts +51 -0
  15. package/dist/models/ApiAuthForgotPasswordVerifyOtpPost200Response.js +54 -0
  16. package/dist/models/ApiAuthForgotPasswordVerifyOtpPost200ResponseResponseObject.d.ts +44 -0
  17. package/dist/models/ApiAuthForgotPasswordVerifyOtpPost200ResponseResponseObject.js +49 -0
  18. package/dist/models/ApiAuthRegisterCompletePostRequest.d.ts +2 -2
  19. package/dist/models/ApiAuthRegisterCompletePostRequest.js +4 -2
  20. package/dist/models/ApiAuthRegisterStartPostRequest.d.ts +6 -0
  21. package/dist/models/ApiAuthRegisterStartPostRequest.js +2 -0
  22. package/dist/models/index.d.ts +6 -0
  23. package/dist/models/index.js +6 -0
  24. package/models/ApiAuthForgotPasswordChangePasswordPost200Response.ts +100 -0
  25. package/models/ApiAuthForgotPasswordChangePasswordPost200ResponseResponseObject.ts +75 -0
  26. package/models/ApiAuthForgotPasswordChangePasswordPostRequest.ts +84 -0
  27. package/models/ApiAuthForgotPasswordRequestPostRequest.ts +66 -0
  28. package/models/ApiAuthForgotPasswordVerifyOtpPost200Response.ts +100 -0
  29. package/models/ApiAuthForgotPasswordVerifyOtpPost200ResponseResponseObject.ts +83 -0
  30. package/models/ApiAuthRegisterCompletePostRequest.ts +5 -4
  31. package/models/ApiAuthRegisterStartPostRequest.ts +8 -0
  32. package/models/index.ts +6 -0
  33. package/package.json +1 -1
@@ -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
@@ -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/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).
@@ -164,6 +170,12 @@
164
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).
165
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/]
166
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
167
179
  [main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthLoginPost200Response.ts
168
180
  [main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthLoginPost200ResponseResponseObject.ts
169
181
  [main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthLoginPost200ResponseResponseObjectUser.ts
@@ -368,6 +380,9 @@
368
380
  [main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: post /api/auth/register/start. Renamed to auto-generated operationId: apiAuthRegisterStartPost
369
381
  [main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: post /api/auth/register/verify-otp. Renamed to auto-generated operationId: apiAuthRegisterVerifyOtpPost
370
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
371
386
  [main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/esport/videogames. Renamed to auto-generated operationId: apiEsportVideogamesGet
372
387
  [main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/esport/matches. Renamed to auto-generated operationId: apiEsportMatchesGet
373
388
  [main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/esport/matches/{id}. Renamed to auto-generated operationId: apiEsportMatchesIdGet
@@ -409,21 +424,26 @@
409
424
  # https://opencollective.com/openapi_generator/donate #
410
425
  ################################################################################
411
426
  ✅ SDK generated
412
- [master 725c5b9] VPS: Generated API SDK
413
- 4 files changed, 154 insertions(+)
414
- create mode 100644 models/ApiEsportMatchesIdGet200Response.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
415
435
  To https://gitlab.com/drx-super/drx-sdk.git
416
- 5c3ac6c..725c5b9 master -> master
436
+ 2f37eef..f3cb408 master -> master
417
437
  ✅ Changes committed and pushed
418
- v1.1.218
438
+ v1.1.219
419
439
  To https://gitlab.com/drx-super/drx-sdk.git
420
- 725c5b9..2f37eef master -> master
440
+ f3cb408..27e35fe master -> master
421
441
  ✅ Version bumped
422
442
 
423
- > @drxsuperapp/sdk@1.1.218 prepublishOnly
443
+ > @drxsuperapp/sdk@1.1.219 prepublishOnly
424
444
  > npm run build
425
445
 
426
446
 
427
- > @drxsuperapp/sdk@1.1.218 build
447
+ > @drxsuperapp/sdk@1.1.219 build
428
448
  > tsc
429
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
@@ -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 { ApiAuthForgotPasswordChangePasswordPost200ResponseResponseObject } from './ApiAuthForgotPasswordChangePasswordPost200ResponseResponseObject';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ApiAuthForgotPasswordChangePasswordPost200Response
17
+ */
18
+ export interface ApiAuthForgotPasswordChangePasswordPost200Response {
19
+ /**
20
+ *
21
+ * @type {boolean}
22
+ * @memberof ApiAuthForgotPasswordChangePasswordPost200Response
23
+ */
24
+ success: boolean;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof ApiAuthForgotPasswordChangePasswordPost200Response
29
+ */
30
+ message: string;
31
+ /**
32
+ *
33
+ * @type {ApiAuthForgotPasswordChangePasswordPost200ResponseResponseObject}
34
+ * @memberof ApiAuthForgotPasswordChangePasswordPost200Response
35
+ */
36
+ responseObject?: ApiAuthForgotPasswordChangePasswordPost200ResponseResponseObject;
37
+ /**
38
+ *
39
+ * @type {number}
40
+ * @memberof ApiAuthForgotPasswordChangePasswordPost200Response
41
+ */
42
+ statusCode: number;
43
+ }
44
+ /**
45
+ * Check if a given object implements the ApiAuthForgotPasswordChangePasswordPost200Response interface.
46
+ */
47
+ export declare function instanceOfApiAuthForgotPasswordChangePasswordPost200Response(value: object): value is ApiAuthForgotPasswordChangePasswordPost200Response;
48
+ export declare function ApiAuthForgotPasswordChangePasswordPost200ResponseFromJSON(json: any): ApiAuthForgotPasswordChangePasswordPost200Response;
49
+ export declare function ApiAuthForgotPasswordChangePasswordPost200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiAuthForgotPasswordChangePasswordPost200Response;
50
+ export declare function ApiAuthForgotPasswordChangePasswordPost200ResponseToJSON(json: any): ApiAuthForgotPasswordChangePasswordPost200Response;
51
+ export declare function ApiAuthForgotPasswordChangePasswordPost200ResponseToJSONTyped(value?: ApiAuthForgotPasswordChangePasswordPost200Response | 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 { ApiAuthForgotPasswordChangePasswordPost200ResponseResponseObjectFromJSON, ApiAuthForgotPasswordChangePasswordPost200ResponseResponseObjectToJSON, } from './ApiAuthForgotPasswordChangePasswordPost200ResponseResponseObject';
15
+ /**
16
+ * Check if a given object implements the ApiAuthForgotPasswordChangePasswordPost200Response interface.
17
+ */
18
+ export function instanceOfApiAuthForgotPasswordChangePasswordPost200Response(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 ApiAuthForgotPasswordChangePasswordPost200ResponseFromJSON(json) {
28
+ return ApiAuthForgotPasswordChangePasswordPost200ResponseFromJSONTyped(json, false);
29
+ }
30
+ export function ApiAuthForgotPasswordChangePasswordPost200ResponseFromJSONTyped(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 : ApiAuthForgotPasswordChangePasswordPost200ResponseResponseObjectFromJSON(json['responseObject']),
38
+ 'statusCode': json['statusCode'],
39
+ };
40
+ }
41
+ export function ApiAuthForgotPasswordChangePasswordPost200ResponseToJSON(json) {
42
+ return ApiAuthForgotPasswordChangePasswordPost200ResponseToJSONTyped(json, false);
43
+ }
44
+ export function ApiAuthForgotPasswordChangePasswordPost200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'success': value['success'],
50
+ 'message': value['message'],
51
+ 'responseObject': ApiAuthForgotPasswordChangePasswordPost200ResponseResponseObjectToJSON(value['responseObject']),
52
+ 'statusCode': value['statusCode'],
53
+ };
54
+ }
@@ -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 ApiAuthForgotPasswordChangePasswordPost200ResponseResponseObject
16
+ */
17
+ export interface ApiAuthForgotPasswordChangePasswordPost200ResponseResponseObject {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof ApiAuthForgotPasswordChangePasswordPost200ResponseResponseObject
22
+ */
23
+ message: string;
24
+ /**
25
+ *
26
+ * @type {boolean}
27
+ * @memberof ApiAuthForgotPasswordChangePasswordPost200ResponseResponseObject
28
+ */
29
+ success: boolean;
30
+ }
31
+ /**
32
+ * Check if a given object implements the ApiAuthForgotPasswordChangePasswordPost200ResponseResponseObject interface.
33
+ */
34
+ export declare function instanceOfApiAuthForgotPasswordChangePasswordPost200ResponseResponseObject(value: object): value is ApiAuthForgotPasswordChangePasswordPost200ResponseResponseObject;
35
+ export declare function ApiAuthForgotPasswordChangePasswordPost200ResponseResponseObjectFromJSON(json: any): ApiAuthForgotPasswordChangePasswordPost200ResponseResponseObject;
36
+ export declare function ApiAuthForgotPasswordChangePasswordPost200ResponseResponseObjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiAuthForgotPasswordChangePasswordPost200ResponseResponseObject;
37
+ export declare function ApiAuthForgotPasswordChangePasswordPost200ResponseResponseObjectToJSON(json: any): ApiAuthForgotPasswordChangePasswordPost200ResponseResponseObject;
38
+ export declare function ApiAuthForgotPasswordChangePasswordPost200ResponseResponseObjectToJSONTyped(value?: ApiAuthForgotPasswordChangePasswordPost200ResponseResponseObject | 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 ApiAuthForgotPasswordChangePasswordPost200ResponseResponseObject interface.
16
+ */
17
+ export function instanceOfApiAuthForgotPasswordChangePasswordPost200ResponseResponseObject(value) {
18
+ if (!('message' in value) || value['message'] === undefined)
19
+ return false;
20
+ if (!('success' in value) || value['success'] === undefined)
21
+ return false;
22
+ return true;
23
+ }
24
+ export function ApiAuthForgotPasswordChangePasswordPost200ResponseResponseObjectFromJSON(json) {
25
+ return ApiAuthForgotPasswordChangePasswordPost200ResponseResponseObjectFromJSONTyped(json, false);
26
+ }
27
+ export function ApiAuthForgotPasswordChangePasswordPost200ResponseResponseObjectFromJSONTyped(json, ignoreDiscriminator) {
28
+ if (json == null) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'message': json['message'],
33
+ 'success': json['success'],
34
+ };
35
+ }
36
+ export function ApiAuthForgotPasswordChangePasswordPost200ResponseResponseObjectToJSON(json) {
37
+ return ApiAuthForgotPasswordChangePasswordPost200ResponseResponseObjectToJSONTyped(json, false);
38
+ }
39
+ export function ApiAuthForgotPasswordChangePasswordPost200ResponseResponseObjectToJSONTyped(value, ignoreDiscriminator = false) {
40
+ if (value == null) {
41
+ return value;
42
+ }
43
+ return {
44
+ 'message': value['message'],
45
+ 'success': value['success'],
46
+ };
47
+ }