@randock/nameshift-api-client 0.0.34 → 0.0.36

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.
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Nameshift
6
+ * Nameshift API
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.UserPasswordResetDtoToJSON = exports.UserPasswordResetDtoFromJSONTyped = exports.UserPasswordResetDtoFromJSON = exports.instanceOfUserPasswordResetDto = exports.UserPasswordResetDtoStatusEnum = void 0;
17
+ /**
18
+ * @export
19
+ */
20
+ exports.UserPasswordResetDtoStatusEnum = {
21
+ ACTIVE: 'active',
22
+ EXPIRED: 'expired'
23
+ };
24
+ /**
25
+ * Check if a given object implements the UserPasswordResetDto interface.
26
+ */
27
+ function instanceOfUserPasswordResetDto(value) {
28
+ if (!('id' in value))
29
+ return false;
30
+ if (!('status' in value))
31
+ return false;
32
+ return true;
33
+ }
34
+ exports.instanceOfUserPasswordResetDto = instanceOfUserPasswordResetDto;
35
+ function UserPasswordResetDtoFromJSON(json) {
36
+ return UserPasswordResetDtoFromJSONTyped(json, false);
37
+ }
38
+ exports.UserPasswordResetDtoFromJSON = UserPasswordResetDtoFromJSON;
39
+ function UserPasswordResetDtoFromJSONTyped(json, ignoreDiscriminator) {
40
+ if (json == null) {
41
+ return json;
42
+ }
43
+ return {
44
+ 'id': json['id'],
45
+ 'status': json['status'],
46
+ };
47
+ }
48
+ exports.UserPasswordResetDtoFromJSONTyped = UserPasswordResetDtoFromJSONTyped;
49
+ function UserPasswordResetDtoToJSON(value) {
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'id': value['id'],
55
+ 'status': value['status'],
56
+ };
57
+ }
58
+ exports.UserPasswordResetDtoToJSON = UserPasswordResetDtoToJSON;
@@ -5,6 +5,7 @@ export * from './AccountFinancialInput';
5
5
  export * from './AccountSettingsInput';
6
6
  export * from './BatchUpdateDomainsInput';
7
7
  export * from './BuyDomainInput';
8
+ export * from './ChangeOrderStatusInput';
8
9
  export * from './ConflictException';
9
10
  export * from './CreateLeadInput';
10
11
  export * from './CreateLeadMessageInput';
@@ -13,6 +14,7 @@ export * from './DeleteDomainsInput';
13
14
  export * from './DomainDto';
14
15
  export * from './DomainSalesInformationDto';
15
16
  export * from './DomainSellerDto';
17
+ export * from './ForgotPasswordRequestInput';
16
18
  export * from './HttpException';
17
19
  export * from './IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto';
18
20
  export * from './IntersectionDomainDtoWithAccountDto';
@@ -43,10 +45,12 @@ export * from './PutLeadInput';
43
45
  export * from './RegisterAccountInput';
44
46
  export * from './RelatedSellerDomain';
45
47
  export * from './SecurityUserDto';
48
+ export * from './SetNewPasswordInput';
46
49
  export * from './ThrottlerException';
47
50
  export * from './TokenDto';
48
51
  export * from './UnauthorizedException';
49
52
  export * from './UpdateDomainInput';
53
+ export * from './UserPasswordResetDto';
50
54
  export * from './ValidationError';
51
55
  export * from './ValidationException';
52
56
  export * from './VerifyLeadInput';
@@ -23,6 +23,7 @@ __exportStar(require("./AccountFinancialInput"), exports);
23
23
  __exportStar(require("./AccountSettingsInput"), exports);
24
24
  __exportStar(require("./BatchUpdateDomainsInput"), exports);
25
25
  __exportStar(require("./BuyDomainInput"), exports);
26
+ __exportStar(require("./ChangeOrderStatusInput"), exports);
26
27
  __exportStar(require("./ConflictException"), exports);
27
28
  __exportStar(require("./CreateLeadInput"), exports);
28
29
  __exportStar(require("./CreateLeadMessageInput"), exports);
@@ -31,6 +32,7 @@ __exportStar(require("./DeleteDomainsInput"), exports);
31
32
  __exportStar(require("./DomainDto"), exports);
32
33
  __exportStar(require("./DomainSalesInformationDto"), exports);
33
34
  __exportStar(require("./DomainSellerDto"), exports);
35
+ __exportStar(require("./ForgotPasswordRequestInput"), exports);
34
36
  __exportStar(require("./HttpException"), exports);
35
37
  __exportStar(require("./IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto"), exports);
36
38
  __exportStar(require("./IntersectionDomainDtoWithAccountDto"), exports);
@@ -61,10 +63,12 @@ __exportStar(require("./PutLeadInput"), exports);
61
63
  __exportStar(require("./RegisterAccountInput"), exports);
62
64
  __exportStar(require("./RelatedSellerDomain"), exports);
63
65
  __exportStar(require("./SecurityUserDto"), exports);
66
+ __exportStar(require("./SetNewPasswordInput"), exports);
64
67
  __exportStar(require("./ThrottlerException"), exports);
65
68
  __exportStar(require("./TokenDto"), exports);
66
69
  __exportStar(require("./UnauthorizedException"), exports);
67
70
  __exportStar(require("./UpdateDomainInput"), exports);
71
+ __exportStar(require("./UserPasswordResetDto"), exports);
68
72
  __exportStar(require("./ValidationError"), exports);
69
73
  __exportStar(require("./ValidationException"), exports);
70
74
  __exportStar(require("./VerifyLeadInput"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randock/nameshift-api-client",
3
- "version": "0.0.34",
3
+ "version": "0.0.36",
4
4
  "description": "OpenAPI client for @randock/nameshift-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -16,34 +16,59 @@
16
16
  import * as runtime from '../runtime';
17
17
  import type {
18
18
  ConflictException,
19
+ ForgotPasswordRequestInput,
19
20
  LoginInput,
21
+ NotFoundException,
20
22
  RegisterAccountInput,
23
+ SetNewPasswordInput,
21
24
  ThrottlerException,
22
25
  TokenDto,
23
26
  UnauthorizedException,
27
+ UserPasswordResetDto,
24
28
  ValidationException,
25
29
  } from '../models/index';
26
30
  import {
27
31
  ConflictExceptionFromJSON,
28
32
  ConflictExceptionToJSON,
33
+ ForgotPasswordRequestInputFromJSON,
34
+ ForgotPasswordRequestInputToJSON,
29
35
  LoginInputFromJSON,
30
36
  LoginInputToJSON,
37
+ NotFoundExceptionFromJSON,
38
+ NotFoundExceptionToJSON,
31
39
  RegisterAccountInputFromJSON,
32
40
  RegisterAccountInputToJSON,
41
+ SetNewPasswordInputFromJSON,
42
+ SetNewPasswordInputToJSON,
33
43
  ThrottlerExceptionFromJSON,
34
44
  ThrottlerExceptionToJSON,
35
45
  TokenDtoFromJSON,
36
46
  TokenDtoToJSON,
37
47
  UnauthorizedExceptionFromJSON,
38
48
  UnauthorizedExceptionToJSON,
49
+ UserPasswordResetDtoFromJSON,
50
+ UserPasswordResetDtoToJSON,
39
51
  ValidationExceptionFromJSON,
40
52
  ValidationExceptionToJSON,
41
53
  } from '../models/index';
42
54
 
55
+ export interface AccountsPublicApiForgotPasswordRequestRequest {
56
+ forgotPasswordRequestInput: ForgotPasswordRequestInput;
57
+ }
58
+
59
+ export interface AccountsPublicApiGetForgotPasswordRequestRequest {
60
+ passwordRequestId: string;
61
+ }
62
+
43
63
  export interface AccountsPublicApiLoginRequest {
44
64
  loginInput: LoginInput;
45
65
  }
46
66
 
67
+ export interface AccountsPublicApiPostNewPasswordRequest {
68
+ passwordRequestId: string;
69
+ setNewPasswordInput: SetNewPasswordInput;
70
+ }
71
+
47
72
  export interface AccountsPublicApiRegisterRequest {
48
73
  registerAccountInput: RegisterAccountInput;
49
74
  }
@@ -53,6 +78,74 @@ export interface AccountsPublicApiRegisterRequest {
53
78
  */
54
79
  export class AccountsPublicApi extends runtime.BaseAPI {
55
80
 
81
+ /**
82
+ *
83
+ */
84
+ async forgotPasswordRequestRaw(requestParameters: AccountsPublicApiForgotPasswordRequestRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
85
+ if (requestParameters['forgotPasswordRequestInput'] == null) {
86
+ throw new runtime.RequiredError(
87
+ 'forgotPasswordRequestInput',
88
+ 'Required parameter "forgotPasswordRequestInput" was null or undefined when calling forgotPasswordRequest().'
89
+ );
90
+ }
91
+
92
+ const queryParameters: any = {};
93
+
94
+ const headerParameters: runtime.HTTPHeaders = {};
95
+
96
+ headerParameters['Content-Type'] = 'application/json';
97
+
98
+ const response = await this.request({
99
+ path: `/accounts/forgot-password-request`,
100
+ method: 'POST',
101
+ headers: headerParameters,
102
+ query: queryParameters,
103
+ body: ForgotPasswordRequestInputToJSON(requestParameters['forgotPasswordRequestInput']),
104
+ }, initOverrides);
105
+
106
+ return new runtime.VoidApiResponse(response);
107
+ }
108
+
109
+ /**
110
+ *
111
+ */
112
+ async forgotPasswordRequest(requestParameters: AccountsPublicApiForgotPasswordRequestRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
113
+ await this.forgotPasswordRequestRaw(requestParameters, initOverrides);
114
+ }
115
+
116
+ /**
117
+ *
118
+ */
119
+ async getForgotPasswordRequestRaw(requestParameters: AccountsPublicApiGetForgotPasswordRequestRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserPasswordResetDto>> {
120
+ if (requestParameters['passwordRequestId'] == null) {
121
+ throw new runtime.RequiredError(
122
+ 'passwordRequestId',
123
+ 'Required parameter "passwordRequestId" was null or undefined when calling getForgotPasswordRequest().'
124
+ );
125
+ }
126
+
127
+ const queryParameters: any = {};
128
+
129
+ const headerParameters: runtime.HTTPHeaders = {};
130
+
131
+ const response = await this.request({
132
+ path: `/accounts/forgot-password-request/{passwordRequestId}`.replace(`{${"passwordRequestId"}}`, encodeURIComponent(String(requestParameters['passwordRequestId']))),
133
+ method: 'GET',
134
+ headers: headerParameters,
135
+ query: queryParameters,
136
+ }, initOverrides);
137
+
138
+ return new runtime.JSONApiResponse(response, (jsonValue) => UserPasswordResetDtoFromJSON(jsonValue));
139
+ }
140
+
141
+ /**
142
+ *
143
+ */
144
+ async getForgotPasswordRequest(requestParameters: AccountsPublicApiGetForgotPasswordRequestRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserPasswordResetDto> {
145
+ const response = await this.getForgotPasswordRequestRaw(requestParameters, initOverrides);
146
+ return await response.value();
147
+ }
148
+
56
149
  /**
57
150
  *
58
151
  */
@@ -89,6 +182,48 @@ export class AccountsPublicApi extends runtime.BaseAPI {
89
182
  return await response.value();
90
183
  }
91
184
 
185
+ /**
186
+ *
187
+ */
188
+ async postNewPasswordRaw(requestParameters: AccountsPublicApiPostNewPasswordRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
189
+ if (requestParameters['passwordRequestId'] == null) {
190
+ throw new runtime.RequiredError(
191
+ 'passwordRequestId',
192
+ 'Required parameter "passwordRequestId" was null or undefined when calling postNewPassword().'
193
+ );
194
+ }
195
+
196
+ if (requestParameters['setNewPasswordInput'] == null) {
197
+ throw new runtime.RequiredError(
198
+ 'setNewPasswordInput',
199
+ 'Required parameter "setNewPasswordInput" was null or undefined when calling postNewPassword().'
200
+ );
201
+ }
202
+
203
+ const queryParameters: any = {};
204
+
205
+ const headerParameters: runtime.HTTPHeaders = {};
206
+
207
+ headerParameters['Content-Type'] = 'application/json';
208
+
209
+ const response = await this.request({
210
+ path: `/accounts/forgot-password-request/{passwordRequestId}`.replace(`{${"passwordRequestId"}}`, encodeURIComponent(String(requestParameters['passwordRequestId']))),
211
+ method: 'POST',
212
+ headers: headerParameters,
213
+ query: queryParameters,
214
+ body: SetNewPasswordInputToJSON(requestParameters['setNewPasswordInput']),
215
+ }, initOverrides);
216
+
217
+ return new runtime.VoidApiResponse(response);
218
+ }
219
+
220
+ /**
221
+ *
222
+ */
223
+ async postNewPassword(requestParameters: AccountsPublicApiPostNewPasswordRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
224
+ await this.postNewPasswordRaw(requestParameters, initOverrides);
225
+ }
226
+
92
227
  /**
93
228
  *
94
229
  */
@@ -15,22 +15,33 @@
15
15
 
16
16
  import * as runtime from '../runtime';
17
17
  import type {
18
+ ChangeOrderStatusInput,
18
19
  ListAccounts200Response,
19
20
  ListTransfers200Response,
21
+ NotFoundException,
20
22
  ThrottlerException,
21
23
  ValidationException,
22
24
  } from '../models/index';
23
25
  import {
26
+ ChangeOrderStatusInputFromJSON,
27
+ ChangeOrderStatusInputToJSON,
24
28
  ListAccounts200ResponseFromJSON,
25
29
  ListAccounts200ResponseToJSON,
26
30
  ListTransfers200ResponseFromJSON,
27
31
  ListTransfers200ResponseToJSON,
32
+ NotFoundExceptionFromJSON,
33
+ NotFoundExceptionToJSON,
28
34
  ThrottlerExceptionFromJSON,
29
35
  ThrottlerExceptionToJSON,
30
36
  ValidationExceptionFromJSON,
31
37
  ValidationExceptionToJSON,
32
38
  } from '../models/index';
33
39
 
40
+ export interface AdminApiChangeOrderStatusRequest {
41
+ orderId: string;
42
+ changeOrderStatusInput: ChangeOrderStatusInput;
43
+ }
44
+
34
45
  export interface AdminApiListAccountsRequest {
35
46
  filter?: object;
36
47
  page?: number;
@@ -50,6 +61,56 @@ export interface AdminApiListTransfersRequest {
50
61
  */
51
62
  export class AdminApi extends runtime.BaseAPI {
52
63
 
64
+ /**
65
+ *
66
+ */
67
+ async changeOrderStatusRaw(requestParameters: AdminApiChangeOrderStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
68
+ if (requestParameters['orderId'] == null) {
69
+ throw new runtime.RequiredError(
70
+ 'orderId',
71
+ 'Required parameter "orderId" was null or undefined when calling changeOrderStatus().'
72
+ );
73
+ }
74
+
75
+ if (requestParameters['changeOrderStatusInput'] == null) {
76
+ throw new runtime.RequiredError(
77
+ 'changeOrderStatusInput',
78
+ 'Required parameter "changeOrderStatusInput" was null or undefined when calling changeOrderStatus().'
79
+ );
80
+ }
81
+
82
+ const queryParameters: any = {};
83
+
84
+ const headerParameters: runtime.HTTPHeaders = {};
85
+
86
+ headerParameters['Content-Type'] = 'application/json';
87
+
88
+ if (this.configuration && this.configuration.accessToken) {
89
+ const token = this.configuration.accessToken;
90
+ const tokenString = await token("bearer", []);
91
+
92
+ if (tokenString) {
93
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
94
+ }
95
+ }
96
+ const response = await this.request({
97
+ path: `/admin/orders/{orderId}/status`.replace(`{${"orderId"}}`, encodeURIComponent(String(requestParameters['orderId']))),
98
+ method: 'PATCH',
99
+ headers: headerParameters,
100
+ query: queryParameters,
101
+ body: ChangeOrderStatusInputToJSON(requestParameters['changeOrderStatusInput']),
102
+ }, initOverrides);
103
+
104
+ return new runtime.VoidApiResponse(response);
105
+ }
106
+
107
+ /**
108
+ *
109
+ */
110
+ async changeOrderStatus(requestParameters: AdminApiChangeOrderStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
111
+ await this.changeOrderStatusRaw(requestParameters, initOverrides);
112
+ }
113
+
53
114
  /**
54
115
  *
55
116
  */
@@ -27,10 +27,10 @@ export interface AccountDto {
27
27
  id: string;
28
28
  /**
29
29
  *
30
- * @type {object}
30
+ * @type {string}
31
31
  * @memberof AccountDto
32
32
  */
33
- identifier: object;
33
+ identifier: string;
34
34
  }
35
35
 
36
36
  /**
@@ -0,0 +1,72 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Nameshift
5
+ * Nameshift API
6
+ *
7
+ * The version of the OpenAPI document: 1.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 ChangeOrderStatusInput
20
+ */
21
+ export interface ChangeOrderStatusInput {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof ChangeOrderStatusInput
26
+ */
27
+ status: ChangeOrderStatusInputStatusEnum;
28
+ }
29
+
30
+
31
+ /**
32
+ * @export
33
+ */
34
+ export const ChangeOrderStatusInputStatusEnum = {
35
+ OPEN: 'open',
36
+ PAID: 'paid'
37
+ } as const;
38
+ export type ChangeOrderStatusInputStatusEnum = typeof ChangeOrderStatusInputStatusEnum[keyof typeof ChangeOrderStatusInputStatusEnum];
39
+
40
+
41
+ /**
42
+ * Check if a given object implements the ChangeOrderStatusInput interface.
43
+ */
44
+ export function instanceOfChangeOrderStatusInput(value: object): boolean {
45
+ if (!('status' in value)) return false;
46
+ return true;
47
+ }
48
+
49
+ export function ChangeOrderStatusInputFromJSON(json: any): ChangeOrderStatusInput {
50
+ return ChangeOrderStatusInputFromJSONTyped(json, false);
51
+ }
52
+
53
+ export function ChangeOrderStatusInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChangeOrderStatusInput {
54
+ if (json == null) {
55
+ return json;
56
+ }
57
+ return {
58
+
59
+ 'status': json['status'],
60
+ };
61
+ }
62
+
63
+ export function ChangeOrderStatusInputToJSON(value?: ChangeOrderStatusInput | null): any {
64
+ if (value == null) {
65
+ return value;
66
+ }
67
+ return {
68
+
69
+ 'status': value['status'],
70
+ };
71
+ }
72
+
@@ -0,0 +1,61 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Nameshift
5
+ * Nameshift API
6
+ *
7
+ * The version of the OpenAPI document: 1.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 ForgotPasswordRequestInput
20
+ */
21
+ export interface ForgotPasswordRequestInput {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof ForgotPasswordRequestInput
26
+ */
27
+ email: string;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the ForgotPasswordRequestInput interface.
32
+ */
33
+ export function instanceOfForgotPasswordRequestInput(value: object): boolean {
34
+ if (!('email' in value)) return false;
35
+ return true;
36
+ }
37
+
38
+ export function ForgotPasswordRequestInputFromJSON(json: any): ForgotPasswordRequestInput {
39
+ return ForgotPasswordRequestInputFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function ForgotPasswordRequestInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): ForgotPasswordRequestInput {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+
48
+ 'email': json['email'],
49
+ };
50
+ }
51
+
52
+ export function ForgotPasswordRequestInputToJSON(value?: ForgotPasswordRequestInput | null): any {
53
+ if (value == null) {
54
+ return value;
55
+ }
56
+ return {
57
+
58
+ 'email': value['email'],
59
+ };
60
+ }
61
+
@@ -46,10 +46,10 @@ export interface IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddres
46
46
  id: string;
47
47
  /**
48
48
  *
49
- * @type {object}
49
+ * @type {string}
50
50
  * @memberof IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto
51
51
  */
52
- identifier: object;
52
+ identifier: string;
53
53
  /**
54
54
  *
55
55
  * @type {WithFinancialDtoInner}
@@ -0,0 +1,61 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Nameshift
5
+ * Nameshift API
6
+ *
7
+ * The version of the OpenAPI document: 1.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 SetNewPasswordInput
20
+ */
21
+ export interface SetNewPasswordInput {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof SetNewPasswordInput
26
+ */
27
+ password: string;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the SetNewPasswordInput interface.
32
+ */
33
+ export function instanceOfSetNewPasswordInput(value: object): boolean {
34
+ if (!('password' in value)) return false;
35
+ return true;
36
+ }
37
+
38
+ export function SetNewPasswordInputFromJSON(json: any): SetNewPasswordInput {
39
+ return SetNewPasswordInputFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function SetNewPasswordInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): SetNewPasswordInput {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+
48
+ 'password': json['password'],
49
+ };
50
+ }
51
+
52
+ export function SetNewPasswordInputToJSON(value?: SetNewPasswordInput | null): any {
53
+ if (value == null) {
54
+ return value;
55
+ }
56
+ return {
57
+
58
+ 'password': value['password'],
59
+ };
60
+ }
61
+