@drxsuperapp/sdk 1.1.269 → 1.1.271

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.
@@ -13,6 +13,7 @@ apis/UserPointsApi.ts
13
13
  apis/YoutubeApi.ts
14
14
  apis/index.ts
15
15
  index.ts
16
+ models/ApiAuthChangePasswordPostRequest.ts
16
17
  models/ApiAuthForgotPasswordChangePasswordPost200Response.ts
17
18
  models/ApiAuthForgotPasswordChangePasswordPost200ResponseResponseObject.ts
18
19
  models/ApiAuthForgotPasswordChangePasswordPostRequest.ts
@@ -15,6 +15,7 @@
15
15
 
16
16
  import * as runtime from '../runtime';
17
17
  import type {
18
+ ApiAuthChangePasswordPostRequest,
18
19
  ApiAuthForgotPasswordChangePasswordPost200Response,
19
20
  ApiAuthForgotPasswordChangePasswordPostRequest,
20
21
  ApiAuthForgotPasswordRequestPostRequest,
@@ -33,6 +34,8 @@ import type {
33
34
  ApiUserGet200Response,
34
35
  } from '../models/index';
35
36
  import {
37
+ ApiAuthChangePasswordPostRequestFromJSON,
38
+ ApiAuthChangePasswordPostRequestToJSON,
36
39
  ApiAuthForgotPasswordChangePasswordPost200ResponseFromJSON,
37
40
  ApiAuthForgotPasswordChangePasswordPost200ResponseToJSON,
38
41
  ApiAuthForgotPasswordChangePasswordPostRequestFromJSON,
@@ -67,6 +70,10 @@ import {
67
70
  ApiUserGet200ResponseToJSON,
68
71
  } from '../models/index';
69
72
 
73
+ export interface ApiAuthChangePasswordPostOperationRequest {
74
+ apiAuthChangePasswordPostRequest?: ApiAuthChangePasswordPostRequest;
75
+ }
76
+
70
77
  export interface ApiAuthForgotPasswordChangePasswordPostOperationRequest {
71
78
  apiAuthForgotPasswordChangePasswordPostRequest?: ApiAuthForgotPasswordChangePasswordPostRequest;
72
79
  }
@@ -104,6 +111,49 @@ export interface ApiAuthSocialMobilePostOperationRequest {
104
111
  */
105
112
  export class AuthenticationApi extends runtime.BaseAPI {
106
113
 
114
+ /**
115
+ * Change user password (requires authentication)
116
+ * Change Password
117
+ */
118
+ async apiAuthChangePasswordPostRaw(requestParameters: ApiAuthChangePasswordPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiAuthForgotPasswordChangePasswordPost200Response>> {
119
+ const queryParameters: any = {};
120
+
121
+ const headerParameters: runtime.HTTPHeaders = {};
122
+
123
+ headerParameters['Content-Type'] = 'application/json';
124
+
125
+ if (this.configuration && this.configuration.apiKey) {
126
+ headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
127
+ }
128
+
129
+ if (this.configuration && this.configuration.accessToken) {
130
+ const token = this.configuration.accessToken;
131
+ const tokenString = await token("BearerAuth", []);
132
+
133
+ if (tokenString) {
134
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
135
+ }
136
+ }
137
+ const response = await this.request({
138
+ path: `/api/auth/change-password`,
139
+ method: 'POST',
140
+ headers: headerParameters,
141
+ query: queryParameters,
142
+ body: ApiAuthChangePasswordPostRequestToJSON(requestParameters['apiAuthChangePasswordPostRequest']),
143
+ }, initOverrides);
144
+
145
+ return new runtime.JSONApiResponse(response, (jsonValue) => ApiAuthForgotPasswordChangePasswordPost200ResponseFromJSON(jsonValue));
146
+ }
147
+
148
+ /**
149
+ * Change user password (requires authentication)
150
+ * Change Password
151
+ */
152
+ async apiAuthChangePasswordPost(requestParameters: ApiAuthChangePasswordPostOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiAuthForgotPasswordChangePasswordPost200Response> {
153
+ const response = await this.apiAuthChangePasswordPostRaw(requestParameters, initOverrides);
154
+ return await response.value();
155
+ }
156
+
107
157
  /**
108
158
  * Change password using reset token
109
159
  * Forgot Password 3. Change Password
package/deploy.log CHANGED
@@ -177,6 +177,7 @@
177
177
  [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).
178
178
  [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).
179
179
  [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).
180
+ [main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_auth_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_change_password_post_request=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_auth_change_password_post_request=NewModel,ModelA=NewModelA in CLI).
180
181
  [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).
181
182
  [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).
182
183
  [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).
@@ -222,6 +223,7 @@
222
223
  [main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_esport_leagues__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_leagues__id__get_200_response=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_esport_leagues__id__get_200_response=NewModel,ModelA=NewModelA in CLI).
223
224
  [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/]
224
225
  [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/]
226
+ [main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthChangePasswordPostRequest.ts
225
227
  [main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthForgotPasswordChangePasswordPost200Response.ts
226
228
  [main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthForgotPasswordChangePasswordPost200ResponseResponseObject.ts
227
229
  [main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthForgotPasswordChangePasswordPostRequest.ts
@@ -503,6 +505,7 @@
503
505
  [main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: post /api/auth/forgot-password/request. Renamed to auto-generated operationId: apiAuthForgotPasswordRequestPost
504
506
  [main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: post /api/auth/forgot-password/verify-otp. Renamed to auto-generated operationId: apiAuthForgotPasswordVerifyOtpPost
505
507
  [main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: post /api/auth/forgot-password/change-password. Renamed to auto-generated operationId: apiAuthForgotPasswordChangePasswordPost
508
+ [main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: post /api/auth/change-password. Renamed to auto-generated operationId: apiAuthChangePasswordPost
506
509
  [main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/esport/videogames. Renamed to auto-generated operationId: apiEsportVideogamesGet
507
510
  [main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/esport/matches. Renamed to auto-generated operationId: apiEsportMatchesGet
508
511
  [main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/esport/matches/{id}. Renamed to auto-generated operationId: apiEsportMatchesIdGet
@@ -556,21 +559,21 @@
556
559
  # https://opencollective.com/openapi_generator/donate #
557
560
  ################################################################################
558
561
  ✅ SDK generated
559
- On branch master
560
- Your branch is up to date with 'origin/master'.
561
-
562
- nothing to commit, working tree clean
563
- Everything up-to-date
562
+ [master 2a8f459] VPS: Generated API SDK
563
+ 4 files changed, 127 insertions(+)
564
+ create mode 100644 models/ApiAuthChangePasswordPostRequest.ts
565
+ To https://gitlab.com/drx-super/drx-sdk.git
566
+ a97188d..2a8f459 master -> master
564
567
  ✅ Changes committed and pushed
565
- v1.1.269
568
+ v1.1.271
566
569
  To https://gitlab.com/drx-super/drx-sdk.git
567
- f08c1cd..91cb98a master -> master
570
+ 2a8f459..370b178 master -> master
568
571
  ✅ Version bumped
569
572
 
570
- > @drxsuperapp/sdk@1.1.269 prepublishOnly
573
+ > @drxsuperapp/sdk@1.1.271 prepublishOnly
571
574
  > npm run build
572
575
 
573
576
 
574
- > @drxsuperapp/sdk@1.1.269 build
577
+ > @drxsuperapp/sdk@1.1.271 build
575
578
  > tsc
576
579
 
@@ -10,7 +10,10 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { ApiAuthForgotPasswordChangePasswordPost200Response, ApiAuthForgotPasswordChangePasswordPostRequest, ApiAuthForgotPasswordRequestPostRequest, ApiAuthForgotPasswordVerifyOtpPost200Response, ApiAuthLoginPost200Response, ApiAuthLoginPostRequest, ApiAuthRefreshPost200Response, ApiAuthRegisterCompletePost200Response, ApiAuthRegisterCompletePostRequest, ApiAuthRegisterStartPost200Response, ApiAuthRegisterStartPostRequest, ApiAuthRegisterVerifyOtpPost200Response, ApiAuthRegisterVerifyOtpPostRequest, ApiAuthSocialMobilePost200Response, ApiAuthSocialMobilePostRequest, ApiUserGet200Response } from '../models/index';
13
+ import type { ApiAuthChangePasswordPostRequest, ApiAuthForgotPasswordChangePasswordPost200Response, ApiAuthForgotPasswordChangePasswordPostRequest, ApiAuthForgotPasswordRequestPostRequest, ApiAuthForgotPasswordVerifyOtpPost200Response, ApiAuthLoginPost200Response, ApiAuthLoginPostRequest, ApiAuthRefreshPost200Response, ApiAuthRegisterCompletePost200Response, ApiAuthRegisterCompletePostRequest, ApiAuthRegisterStartPost200Response, ApiAuthRegisterStartPostRequest, ApiAuthRegisterVerifyOtpPost200Response, ApiAuthRegisterVerifyOtpPostRequest, ApiAuthSocialMobilePost200Response, ApiAuthSocialMobilePostRequest, ApiUserGet200Response } from '../models/index';
14
+ export interface ApiAuthChangePasswordPostOperationRequest {
15
+ apiAuthChangePasswordPostRequest?: ApiAuthChangePasswordPostRequest;
16
+ }
14
17
  export interface ApiAuthForgotPasswordChangePasswordPostOperationRequest {
15
18
  apiAuthForgotPasswordChangePasswordPostRequest?: ApiAuthForgotPasswordChangePasswordPostRequest;
16
19
  }
@@ -39,6 +42,16 @@ export interface ApiAuthSocialMobilePostOperationRequest {
39
42
  *
40
43
  */
41
44
  export declare class AuthenticationApi extends runtime.BaseAPI {
45
+ /**
46
+ * Change user password (requires authentication)
47
+ * Change Password
48
+ */
49
+ apiAuthChangePasswordPostRaw(requestParameters: ApiAuthChangePasswordPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiAuthForgotPasswordChangePasswordPost200Response>>;
50
+ /**
51
+ * Change user password (requires authentication)
52
+ * Change Password
53
+ */
54
+ apiAuthChangePasswordPost(requestParameters?: ApiAuthChangePasswordPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiAuthForgotPasswordChangePasswordPost200Response>;
42
55
  /**
43
56
  * Change password using reset token
44
57
  * Forgot Password 3. Change Password
@@ -12,11 +12,46 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  import * as runtime from '../runtime';
15
- import { ApiAuthForgotPasswordChangePasswordPost200ResponseFromJSON, ApiAuthForgotPasswordChangePasswordPostRequestToJSON, ApiAuthForgotPasswordRequestPostRequestToJSON, ApiAuthForgotPasswordVerifyOtpPost200ResponseFromJSON, ApiAuthLoginPost200ResponseFromJSON, ApiAuthLoginPostRequestToJSON, ApiAuthRefreshPost200ResponseFromJSON, ApiAuthRegisterCompletePost200ResponseFromJSON, ApiAuthRegisterCompletePostRequestToJSON, ApiAuthRegisterStartPost200ResponseFromJSON, ApiAuthRegisterStartPostRequestToJSON, ApiAuthRegisterVerifyOtpPost200ResponseFromJSON, ApiAuthRegisterVerifyOtpPostRequestToJSON, ApiAuthSocialMobilePost200ResponseFromJSON, ApiAuthSocialMobilePostRequestToJSON, ApiUserGet200ResponseFromJSON, } from '../models/index';
15
+ import { ApiAuthChangePasswordPostRequestToJSON, 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 user password (requires authentication)
22
+ * Change Password
23
+ */
24
+ async apiAuthChangePasswordPostRaw(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/change-password`,
40
+ method: 'POST',
41
+ headers: headerParameters,
42
+ query: queryParameters,
43
+ body: ApiAuthChangePasswordPostRequestToJSON(requestParameters['apiAuthChangePasswordPostRequest']),
44
+ }, initOverrides);
45
+ return new runtime.JSONApiResponse(response, (jsonValue) => ApiAuthForgotPasswordChangePasswordPost200ResponseFromJSON(jsonValue));
46
+ }
47
+ /**
48
+ * Change user password (requires authentication)
49
+ * Change Password
50
+ */
51
+ async apiAuthChangePasswordPost(requestParameters = {}, initOverrides) {
52
+ const response = await this.apiAuthChangePasswordPostRaw(requestParameters, initOverrides);
53
+ return await response.value();
54
+ }
20
55
  /**
21
56
  * Change password using reset token
22
57
  * Forgot Password 3. Change Password
@@ -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 ApiAuthChangePasswordPostRequest
16
+ */
17
+ export interface ApiAuthChangePasswordPostRequest {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof ApiAuthChangePasswordPostRequest
22
+ */
23
+ currentPassword: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof ApiAuthChangePasswordPostRequest
28
+ */
29
+ newPassword: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the ApiAuthChangePasswordPostRequest interface.
33
+ */
34
+ export declare function instanceOfApiAuthChangePasswordPostRequest(value: object): value is ApiAuthChangePasswordPostRequest;
35
+ export declare function ApiAuthChangePasswordPostRequestFromJSON(json: any): ApiAuthChangePasswordPostRequest;
36
+ export declare function ApiAuthChangePasswordPostRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiAuthChangePasswordPostRequest;
37
+ export declare function ApiAuthChangePasswordPostRequestToJSON(json: any): ApiAuthChangePasswordPostRequest;
38
+ export declare function ApiAuthChangePasswordPostRequestToJSONTyped(value?: ApiAuthChangePasswordPostRequest | 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 ApiAuthChangePasswordPostRequest interface.
16
+ */
17
+ export function instanceOfApiAuthChangePasswordPostRequest(value) {
18
+ if (!('currentPassword' in value) || value['currentPassword'] === undefined)
19
+ return false;
20
+ if (!('newPassword' in value) || value['newPassword'] === undefined)
21
+ return false;
22
+ return true;
23
+ }
24
+ export function ApiAuthChangePasswordPostRequestFromJSON(json) {
25
+ return ApiAuthChangePasswordPostRequestFromJSONTyped(json, false);
26
+ }
27
+ export function ApiAuthChangePasswordPostRequestFromJSONTyped(json, ignoreDiscriminator) {
28
+ if (json == null) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'currentPassword': json['currentPassword'],
33
+ 'newPassword': json['newPassword'],
34
+ };
35
+ }
36
+ export function ApiAuthChangePasswordPostRequestToJSON(json) {
37
+ return ApiAuthChangePasswordPostRequestToJSONTyped(json, false);
38
+ }
39
+ export function ApiAuthChangePasswordPostRequestToJSONTyped(value, ignoreDiscriminator = false) {
40
+ if (value == null) {
41
+ return value;
42
+ }
43
+ return {
44
+ 'currentPassword': value['currentPassword'],
45
+ 'newPassword': value['newPassword'],
46
+ };
47
+ }
@@ -1,3 +1,4 @@
1
+ export * from './ApiAuthChangePasswordPostRequest';
1
2
  export * from './ApiAuthForgotPasswordChangePasswordPost200Response';
2
3
  export * from './ApiAuthForgotPasswordChangePasswordPost200ResponseResponseObject';
3
4
  export * from './ApiAuthForgotPasswordChangePasswordPostRequest';
@@ -1,5 +1,6 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
+ export * from './ApiAuthChangePasswordPostRequest';
3
4
  export * from './ApiAuthForgotPasswordChangePasswordPost200Response';
4
5
  export * from './ApiAuthForgotPasswordChangePasswordPost200ResponseResponseObject';
5
6
  export * from './ApiAuthForgotPasswordChangePasswordPostRequest';
@@ -0,0 +1,75 @@
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
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface ApiAuthChangePasswordPostRequest
20
+ */
21
+ export interface ApiAuthChangePasswordPostRequest {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof ApiAuthChangePasswordPostRequest
26
+ */
27
+ currentPassword: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof ApiAuthChangePasswordPostRequest
32
+ */
33
+ newPassword: string;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the ApiAuthChangePasswordPostRequest interface.
38
+ */
39
+ export function instanceOfApiAuthChangePasswordPostRequest(value: object): value is ApiAuthChangePasswordPostRequest {
40
+ if (!('currentPassword' in value) || value['currentPassword'] === undefined) return false;
41
+ if (!('newPassword' in value) || value['newPassword'] === undefined) return false;
42
+ return true;
43
+ }
44
+
45
+ export function ApiAuthChangePasswordPostRequestFromJSON(json: any): ApiAuthChangePasswordPostRequest {
46
+ return ApiAuthChangePasswordPostRequestFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function ApiAuthChangePasswordPostRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiAuthChangePasswordPostRequest {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'currentPassword': json['currentPassword'],
56
+ 'newPassword': json['newPassword'],
57
+ };
58
+ }
59
+
60
+ export function ApiAuthChangePasswordPostRequestToJSON(json: any): ApiAuthChangePasswordPostRequest {
61
+ return ApiAuthChangePasswordPostRequestToJSONTyped(json, false);
62
+ }
63
+
64
+ export function ApiAuthChangePasswordPostRequestToJSONTyped(value?: ApiAuthChangePasswordPostRequest | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'currentPassword': value['currentPassword'],
72
+ 'newPassword': value['newPassword'],
73
+ };
74
+ }
75
+
package/models/index.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
+ export * from './ApiAuthChangePasswordPostRequest';
3
4
  export * from './ApiAuthForgotPasswordChangePasswordPost200Response';
4
5
  export * from './ApiAuthForgotPasswordChangePasswordPost200ResponseResponseObject';
5
6
  export * from './ApiAuthForgotPasswordChangePasswordPostRequest';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@drxsuperapp/sdk",
3
- "version": "1.1.269",
3
+ "version": "1.1.271",
4
4
  "main": "index.ts",
5
5
  "types": "index.ts",
6
6
  "scripts": {