@randock/nameshift-api-client 0.0.35 → 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.
- package/.openapi-generator/FILES +3 -0
- package/README.md +3 -3
- package/dist/apis/AccountsPublicApi.d.ts +35 -1
- package/dist/apis/AccountsPublicApi.js +135 -0
- package/dist/models/AccountDto.d.ts +2 -2
- package/dist/models/ForgotPasswordRequestInput.d.ts +31 -0
- package/dist/models/ForgotPasswordRequestInput.js +47 -0
- package/dist/models/IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto.d.ts +2 -2
- package/dist/models/SetNewPasswordInput.d.ts +31 -0
- package/dist/models/SetNewPasswordInput.js +47 -0
- package/dist/models/UserPasswordResetDto.d.ts +45 -0
- package/dist/models/UserPasswordResetDto.js +58 -0
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/package.json +1 -1
- package/src/apis/AccountsPublicApi.ts +135 -0
- package/src/models/AccountDto.ts +2 -2
- package/src/models/ForgotPasswordRequestInput.ts +61 -0
- package/src/models/IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto.ts +2 -2
- package/src/models/SetNewPasswordInput.ts +61 -0
- package/src/models/UserPasswordResetDto.ts +81 -0
- package/src/models/index.ts +3 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -29,6 +29,7 @@ src/models/DeleteDomainsInput.ts
|
|
|
29
29
|
src/models/DomainDto.ts
|
|
30
30
|
src/models/DomainSalesInformationDto.ts
|
|
31
31
|
src/models/DomainSellerDto.ts
|
|
32
|
+
src/models/ForgotPasswordRequestInput.ts
|
|
32
33
|
src/models/HttpException.ts
|
|
33
34
|
src/models/IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto.ts
|
|
34
35
|
src/models/IntersectionDomainDtoWithAccountDto.ts
|
|
@@ -59,10 +60,12 @@ src/models/PutLeadInput.ts
|
|
|
59
60
|
src/models/RegisterAccountInput.ts
|
|
60
61
|
src/models/RelatedSellerDomain.ts
|
|
61
62
|
src/models/SecurityUserDto.ts
|
|
63
|
+
src/models/SetNewPasswordInput.ts
|
|
62
64
|
src/models/ThrottlerException.ts
|
|
63
65
|
src/models/TokenDto.ts
|
|
64
66
|
src/models/UnauthorizedException.ts
|
|
65
67
|
src/models/UpdateDomainInput.ts
|
|
68
|
+
src/models/UserPasswordResetDto.ts
|
|
66
69
|
src/models/ValidationError.ts
|
|
67
70
|
src/models/ValidationException.ts
|
|
68
71
|
src/models/VerifyLeadInput.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.36
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @randock/nameshift-api-client@0.0.
|
|
39
|
+
npm install @randock/nameshift-api-client@0.0.36 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -44,4 +44,4 @@ _unPublished (not recommended):_
|
|
|
44
44
|
```
|
|
45
45
|
npm install PATH_TO_GENERATED_PACKAGE --save
|
|
46
46
|
```
|
|
47
|
-
|
|
47
|
+
6931c40c2b4c955adc6671d9a86ff5565b748c490b669a90a0b1e4fc68dbf7374994c80b5d065f2bfe57ad33cbc722a4
|
|
@@ -10,10 +10,20 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { LoginInput, RegisterAccountInput, TokenDto } from '../models/index';
|
|
13
|
+
import type { ForgotPasswordRequestInput, LoginInput, RegisterAccountInput, SetNewPasswordInput, TokenDto, UserPasswordResetDto } from '../models/index';
|
|
14
|
+
export interface AccountsPublicApiForgotPasswordRequestRequest {
|
|
15
|
+
forgotPasswordRequestInput: ForgotPasswordRequestInput;
|
|
16
|
+
}
|
|
17
|
+
export interface AccountsPublicApiGetForgotPasswordRequestRequest {
|
|
18
|
+
passwordRequestId: string;
|
|
19
|
+
}
|
|
14
20
|
export interface AccountsPublicApiLoginRequest {
|
|
15
21
|
loginInput: LoginInput;
|
|
16
22
|
}
|
|
23
|
+
export interface AccountsPublicApiPostNewPasswordRequest {
|
|
24
|
+
passwordRequestId: string;
|
|
25
|
+
setNewPasswordInput: SetNewPasswordInput;
|
|
26
|
+
}
|
|
17
27
|
export interface AccountsPublicApiRegisterRequest {
|
|
18
28
|
registerAccountInput: RegisterAccountInput;
|
|
19
29
|
}
|
|
@@ -21,6 +31,22 @@ export interface AccountsPublicApiRegisterRequest {
|
|
|
21
31
|
*
|
|
22
32
|
*/
|
|
23
33
|
export declare class AccountsPublicApi extends runtime.BaseAPI {
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
*/
|
|
37
|
+
forgotPasswordRequestRaw(requestParameters: AccountsPublicApiForgotPasswordRequestRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
*/
|
|
41
|
+
forgotPasswordRequest(requestParameters: AccountsPublicApiForgotPasswordRequestRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
*/
|
|
45
|
+
getForgotPasswordRequestRaw(requestParameters: AccountsPublicApiGetForgotPasswordRequestRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserPasswordResetDto>>;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
*/
|
|
49
|
+
getForgotPasswordRequest(requestParameters: AccountsPublicApiGetForgotPasswordRequestRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserPasswordResetDto>;
|
|
24
50
|
/**
|
|
25
51
|
*
|
|
26
52
|
*/
|
|
@@ -29,6 +55,14 @@ export declare class AccountsPublicApi extends runtime.BaseAPI {
|
|
|
29
55
|
*
|
|
30
56
|
*/
|
|
31
57
|
login(requestParameters: AccountsPublicApiLoginRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TokenDto>;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
*/
|
|
61
|
+
postNewPasswordRaw(requestParameters: AccountsPublicApiPostNewPasswordRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
*/
|
|
65
|
+
postNewPassword(requestParameters: AccountsPublicApiPostNewPasswordRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
32
66
|
/**
|
|
33
67
|
*
|
|
34
68
|
*/
|
|
@@ -75,6 +75,94 @@ var AccountsPublicApi = /** @class */ (function (_super) {
|
|
|
75
75
|
function AccountsPublicApi() {
|
|
76
76
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
77
|
}
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
*/
|
|
81
|
+
AccountsPublicApi.prototype.forgotPasswordRequestRaw = function (requestParameters, initOverrides) {
|
|
82
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
83
|
+
var queryParameters, headerParameters, response;
|
|
84
|
+
return __generator(this, function (_a) {
|
|
85
|
+
switch (_a.label) {
|
|
86
|
+
case 0:
|
|
87
|
+
if (requestParameters['forgotPasswordRequestInput'] == null) {
|
|
88
|
+
throw new runtime.RequiredError('forgotPasswordRequestInput', 'Required parameter "forgotPasswordRequestInput" was null or undefined when calling forgotPasswordRequest().');
|
|
89
|
+
}
|
|
90
|
+
queryParameters = {};
|
|
91
|
+
headerParameters = {};
|
|
92
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
93
|
+
return [4 /*yield*/, this.request({
|
|
94
|
+
path: "/accounts/forgot-password-request",
|
|
95
|
+
method: 'POST',
|
|
96
|
+
headers: headerParameters,
|
|
97
|
+
query: queryParameters,
|
|
98
|
+
body: (0, index_1.ForgotPasswordRequestInputToJSON)(requestParameters['forgotPasswordRequestInput']),
|
|
99
|
+
}, initOverrides)];
|
|
100
|
+
case 1:
|
|
101
|
+
response = _a.sent();
|
|
102
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
103
|
+
}
|
|
104
|
+
});
|
|
105
|
+
});
|
|
106
|
+
};
|
|
107
|
+
/**
|
|
108
|
+
*
|
|
109
|
+
*/
|
|
110
|
+
AccountsPublicApi.prototype.forgotPasswordRequest = function (requestParameters, initOverrides) {
|
|
111
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
112
|
+
return __generator(this, function (_a) {
|
|
113
|
+
switch (_a.label) {
|
|
114
|
+
case 0: return [4 /*yield*/, this.forgotPasswordRequestRaw(requestParameters, initOverrides)];
|
|
115
|
+
case 1:
|
|
116
|
+
_a.sent();
|
|
117
|
+
return [2 /*return*/];
|
|
118
|
+
}
|
|
119
|
+
});
|
|
120
|
+
});
|
|
121
|
+
};
|
|
122
|
+
/**
|
|
123
|
+
*
|
|
124
|
+
*/
|
|
125
|
+
AccountsPublicApi.prototype.getForgotPasswordRequestRaw = function (requestParameters, initOverrides) {
|
|
126
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
127
|
+
var queryParameters, headerParameters, response;
|
|
128
|
+
return __generator(this, function (_a) {
|
|
129
|
+
switch (_a.label) {
|
|
130
|
+
case 0:
|
|
131
|
+
if (requestParameters['passwordRequestId'] == null) {
|
|
132
|
+
throw new runtime.RequiredError('passwordRequestId', 'Required parameter "passwordRequestId" was null or undefined when calling getForgotPasswordRequest().');
|
|
133
|
+
}
|
|
134
|
+
queryParameters = {};
|
|
135
|
+
headerParameters = {};
|
|
136
|
+
return [4 /*yield*/, this.request({
|
|
137
|
+
path: "/accounts/forgot-password-request/{passwordRequestId}".replace("{".concat("passwordRequestId", "}"), encodeURIComponent(String(requestParameters['passwordRequestId']))),
|
|
138
|
+
method: 'GET',
|
|
139
|
+
headers: headerParameters,
|
|
140
|
+
query: queryParameters,
|
|
141
|
+
}, initOverrides)];
|
|
142
|
+
case 1:
|
|
143
|
+
response = _a.sent();
|
|
144
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.UserPasswordResetDtoFromJSON)(jsonValue); })];
|
|
145
|
+
}
|
|
146
|
+
});
|
|
147
|
+
});
|
|
148
|
+
};
|
|
149
|
+
/**
|
|
150
|
+
*
|
|
151
|
+
*/
|
|
152
|
+
AccountsPublicApi.prototype.getForgotPasswordRequest = function (requestParameters, initOverrides) {
|
|
153
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
154
|
+
var response;
|
|
155
|
+
return __generator(this, function (_a) {
|
|
156
|
+
switch (_a.label) {
|
|
157
|
+
case 0: return [4 /*yield*/, this.getForgotPasswordRequestRaw(requestParameters, initOverrides)];
|
|
158
|
+
case 1:
|
|
159
|
+
response = _a.sent();
|
|
160
|
+
return [4 /*yield*/, response.value()];
|
|
161
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
162
|
+
}
|
|
163
|
+
});
|
|
164
|
+
});
|
|
165
|
+
};
|
|
78
166
|
/**
|
|
79
167
|
*
|
|
80
168
|
*/
|
|
@@ -121,6 +209,53 @@ var AccountsPublicApi = /** @class */ (function (_super) {
|
|
|
121
209
|
});
|
|
122
210
|
});
|
|
123
211
|
};
|
|
212
|
+
/**
|
|
213
|
+
*
|
|
214
|
+
*/
|
|
215
|
+
AccountsPublicApi.prototype.postNewPasswordRaw = function (requestParameters, initOverrides) {
|
|
216
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
217
|
+
var queryParameters, headerParameters, response;
|
|
218
|
+
return __generator(this, function (_a) {
|
|
219
|
+
switch (_a.label) {
|
|
220
|
+
case 0:
|
|
221
|
+
if (requestParameters['passwordRequestId'] == null) {
|
|
222
|
+
throw new runtime.RequiredError('passwordRequestId', 'Required parameter "passwordRequestId" was null or undefined when calling postNewPassword().');
|
|
223
|
+
}
|
|
224
|
+
if (requestParameters['setNewPasswordInput'] == null) {
|
|
225
|
+
throw new runtime.RequiredError('setNewPasswordInput', 'Required parameter "setNewPasswordInput" was null or undefined when calling postNewPassword().');
|
|
226
|
+
}
|
|
227
|
+
queryParameters = {};
|
|
228
|
+
headerParameters = {};
|
|
229
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
230
|
+
return [4 /*yield*/, this.request({
|
|
231
|
+
path: "/accounts/forgot-password-request/{passwordRequestId}".replace("{".concat("passwordRequestId", "}"), encodeURIComponent(String(requestParameters['passwordRequestId']))),
|
|
232
|
+
method: 'POST',
|
|
233
|
+
headers: headerParameters,
|
|
234
|
+
query: queryParameters,
|
|
235
|
+
body: (0, index_1.SetNewPasswordInputToJSON)(requestParameters['setNewPasswordInput']),
|
|
236
|
+
}, initOverrides)];
|
|
237
|
+
case 1:
|
|
238
|
+
response = _a.sent();
|
|
239
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
240
|
+
}
|
|
241
|
+
});
|
|
242
|
+
});
|
|
243
|
+
};
|
|
244
|
+
/**
|
|
245
|
+
*
|
|
246
|
+
*/
|
|
247
|
+
AccountsPublicApi.prototype.postNewPassword = function (requestParameters, initOverrides) {
|
|
248
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
249
|
+
return __generator(this, function (_a) {
|
|
250
|
+
switch (_a.label) {
|
|
251
|
+
case 0: return [4 /*yield*/, this.postNewPasswordRaw(requestParameters, initOverrides)];
|
|
252
|
+
case 1:
|
|
253
|
+
_a.sent();
|
|
254
|
+
return [2 /*return*/];
|
|
255
|
+
}
|
|
256
|
+
});
|
|
257
|
+
});
|
|
258
|
+
};
|
|
124
259
|
/**
|
|
125
260
|
*
|
|
126
261
|
*/
|
|
@@ -23,10 +23,10 @@ export interface AccountDto {
|
|
|
23
23
|
id: string;
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
26
|
-
* @type {
|
|
26
|
+
* @type {string}
|
|
27
27
|
* @memberof AccountDto
|
|
28
28
|
*/
|
|
29
|
-
identifier:
|
|
29
|
+
identifier: string;
|
|
30
30
|
}
|
|
31
31
|
/**
|
|
32
32
|
* Check if a given object implements the AccountDto interface.
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.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 ForgotPasswordRequestInput
|
|
16
|
+
*/
|
|
17
|
+
export interface ForgotPasswordRequestInput {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ForgotPasswordRequestInput
|
|
22
|
+
*/
|
|
23
|
+
email: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the ForgotPasswordRequestInput interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfForgotPasswordRequestInput(value: object): boolean;
|
|
29
|
+
export declare function ForgotPasswordRequestInputFromJSON(json: any): ForgotPasswordRequestInput;
|
|
30
|
+
export declare function ForgotPasswordRequestInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): ForgotPasswordRequestInput;
|
|
31
|
+
export declare function ForgotPasswordRequestInputToJSON(value?: ForgotPasswordRequestInput | null): any;
|
|
@@ -0,0 +1,47 @@
|
|
|
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.ForgotPasswordRequestInputToJSON = exports.ForgotPasswordRequestInputFromJSONTyped = exports.ForgotPasswordRequestInputFromJSON = exports.instanceOfForgotPasswordRequestInput = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the ForgotPasswordRequestInput interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfForgotPasswordRequestInput(value) {
|
|
21
|
+
if (!('email' in value))
|
|
22
|
+
return false;
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
exports.instanceOfForgotPasswordRequestInput = instanceOfForgotPasswordRequestInput;
|
|
26
|
+
function ForgotPasswordRequestInputFromJSON(json) {
|
|
27
|
+
return ForgotPasswordRequestInputFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
exports.ForgotPasswordRequestInputFromJSON = ForgotPasswordRequestInputFromJSON;
|
|
30
|
+
function ForgotPasswordRequestInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'email': json['email'],
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
exports.ForgotPasswordRequestInputFromJSONTyped = ForgotPasswordRequestInputFromJSONTyped;
|
|
39
|
+
function ForgotPasswordRequestInputToJSON(value) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'email': value['email'],
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
exports.ForgotPasswordRequestInputToJSON = ForgotPasswordRequestInputToJSON;
|
package/dist/models/IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto.d.ts
CHANGED
|
@@ -26,10 +26,10 @@ export interface IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddres
|
|
|
26
26
|
id: string;
|
|
27
27
|
/**
|
|
28
28
|
*
|
|
29
|
-
* @type {
|
|
29
|
+
* @type {string}
|
|
30
30
|
* @memberof IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto
|
|
31
31
|
*/
|
|
32
|
-
identifier:
|
|
32
|
+
identifier: string;
|
|
33
33
|
/**
|
|
34
34
|
*
|
|
35
35
|
* @type {WithFinancialDtoInner}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.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 SetNewPasswordInput
|
|
16
|
+
*/
|
|
17
|
+
export interface SetNewPasswordInput {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof SetNewPasswordInput
|
|
22
|
+
*/
|
|
23
|
+
password: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the SetNewPasswordInput interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfSetNewPasswordInput(value: object): boolean;
|
|
29
|
+
export declare function SetNewPasswordInputFromJSON(json: any): SetNewPasswordInput;
|
|
30
|
+
export declare function SetNewPasswordInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): SetNewPasswordInput;
|
|
31
|
+
export declare function SetNewPasswordInputToJSON(value?: SetNewPasswordInput | null): any;
|
|
@@ -0,0 +1,47 @@
|
|
|
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.SetNewPasswordInputToJSON = exports.SetNewPasswordInputFromJSONTyped = exports.SetNewPasswordInputFromJSON = exports.instanceOfSetNewPasswordInput = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the SetNewPasswordInput interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfSetNewPasswordInput(value) {
|
|
21
|
+
if (!('password' in value))
|
|
22
|
+
return false;
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
exports.instanceOfSetNewPasswordInput = instanceOfSetNewPasswordInput;
|
|
26
|
+
function SetNewPasswordInputFromJSON(json) {
|
|
27
|
+
return SetNewPasswordInputFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
exports.SetNewPasswordInputFromJSON = SetNewPasswordInputFromJSON;
|
|
30
|
+
function SetNewPasswordInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'password': json['password'],
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
exports.SetNewPasswordInputFromJSONTyped = SetNewPasswordInputFromJSONTyped;
|
|
39
|
+
function SetNewPasswordInputToJSON(value) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'password': value['password'],
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
exports.SetNewPasswordInputToJSON = SetNewPasswordInputToJSON;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.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 UserPasswordResetDto
|
|
16
|
+
*/
|
|
17
|
+
export interface UserPasswordResetDto {
|
|
18
|
+
/**
|
|
19
|
+
* user uuid
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof UserPasswordResetDto
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof UserPasswordResetDto
|
|
28
|
+
*/
|
|
29
|
+
status: UserPasswordResetDtoStatusEnum;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* @export
|
|
33
|
+
*/
|
|
34
|
+
export declare const UserPasswordResetDtoStatusEnum: {
|
|
35
|
+
readonly ACTIVE: "active";
|
|
36
|
+
readonly EXPIRED: "expired";
|
|
37
|
+
};
|
|
38
|
+
export type UserPasswordResetDtoStatusEnum = typeof UserPasswordResetDtoStatusEnum[keyof typeof UserPasswordResetDtoStatusEnum];
|
|
39
|
+
/**
|
|
40
|
+
* Check if a given object implements the UserPasswordResetDto interface.
|
|
41
|
+
*/
|
|
42
|
+
export declare function instanceOfUserPasswordResetDto(value: object): boolean;
|
|
43
|
+
export declare function UserPasswordResetDtoFromJSON(json: any): UserPasswordResetDto;
|
|
44
|
+
export declare function UserPasswordResetDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserPasswordResetDto;
|
|
45
|
+
export declare function UserPasswordResetDtoToJSON(value?: UserPasswordResetDto | null): any;
|
|
@@ -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;
|
package/dist/models/index.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ export * from './DeleteDomainsInput';
|
|
|
14
14
|
export * from './DomainDto';
|
|
15
15
|
export * from './DomainSalesInformationDto';
|
|
16
16
|
export * from './DomainSellerDto';
|
|
17
|
+
export * from './ForgotPasswordRequestInput';
|
|
17
18
|
export * from './HttpException';
|
|
18
19
|
export * from './IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto';
|
|
19
20
|
export * from './IntersectionDomainDtoWithAccountDto';
|
|
@@ -44,10 +45,12 @@ export * from './PutLeadInput';
|
|
|
44
45
|
export * from './RegisterAccountInput';
|
|
45
46
|
export * from './RelatedSellerDomain';
|
|
46
47
|
export * from './SecurityUserDto';
|
|
48
|
+
export * from './SetNewPasswordInput';
|
|
47
49
|
export * from './ThrottlerException';
|
|
48
50
|
export * from './TokenDto';
|
|
49
51
|
export * from './UnauthorizedException';
|
|
50
52
|
export * from './UpdateDomainInput';
|
|
53
|
+
export * from './UserPasswordResetDto';
|
|
51
54
|
export * from './ValidationError';
|
|
52
55
|
export * from './ValidationException';
|
|
53
56
|
export * from './VerifyLeadInput';
|
package/dist/models/index.js
CHANGED
|
@@ -32,6 +32,7 @@ __exportStar(require("./DeleteDomainsInput"), exports);
|
|
|
32
32
|
__exportStar(require("./DomainDto"), exports);
|
|
33
33
|
__exportStar(require("./DomainSalesInformationDto"), exports);
|
|
34
34
|
__exportStar(require("./DomainSellerDto"), exports);
|
|
35
|
+
__exportStar(require("./ForgotPasswordRequestInput"), exports);
|
|
35
36
|
__exportStar(require("./HttpException"), exports);
|
|
36
37
|
__exportStar(require("./IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto"), exports);
|
|
37
38
|
__exportStar(require("./IntersectionDomainDtoWithAccountDto"), exports);
|
|
@@ -62,10 +63,12 @@ __exportStar(require("./PutLeadInput"), exports);
|
|
|
62
63
|
__exportStar(require("./RegisterAccountInput"), exports);
|
|
63
64
|
__exportStar(require("./RelatedSellerDomain"), exports);
|
|
64
65
|
__exportStar(require("./SecurityUserDto"), exports);
|
|
66
|
+
__exportStar(require("./SetNewPasswordInput"), exports);
|
|
65
67
|
__exportStar(require("./ThrottlerException"), exports);
|
|
66
68
|
__exportStar(require("./TokenDto"), exports);
|
|
67
69
|
__exportStar(require("./UnauthorizedException"), exports);
|
|
68
70
|
__exportStar(require("./UpdateDomainInput"), exports);
|
|
71
|
+
__exportStar(require("./UserPasswordResetDto"), exports);
|
|
69
72
|
__exportStar(require("./ValidationError"), exports);
|
|
70
73
|
__exportStar(require("./ValidationException"), exports);
|
|
71
74
|
__exportStar(require("./VerifyLeadInput"), exports);
|
package/package.json
CHANGED
|
@@ -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
|
*/
|
package/src/models/AccountDto.ts
CHANGED
|
@@ -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 {
|
|
49
|
+
* @type {string}
|
|
50
50
|
* @memberof IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto
|
|
51
51
|
*/
|
|
52
|
-
identifier:
|
|
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
|
+
|
|
@@ -0,0 +1,81 @@
|
|
|
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 UserPasswordResetDto
|
|
20
|
+
*/
|
|
21
|
+
export interface UserPasswordResetDto {
|
|
22
|
+
/**
|
|
23
|
+
* user uuid
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof UserPasswordResetDto
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof UserPasswordResetDto
|
|
32
|
+
*/
|
|
33
|
+
status: UserPasswordResetDtoStatusEnum;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export const UserPasswordResetDtoStatusEnum = {
|
|
41
|
+
ACTIVE: 'active',
|
|
42
|
+
EXPIRED: 'expired'
|
|
43
|
+
} as const;
|
|
44
|
+
export type UserPasswordResetDtoStatusEnum = typeof UserPasswordResetDtoStatusEnum[keyof typeof UserPasswordResetDtoStatusEnum];
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Check if a given object implements the UserPasswordResetDto interface.
|
|
49
|
+
*/
|
|
50
|
+
export function instanceOfUserPasswordResetDto(value: object): boolean {
|
|
51
|
+
if (!('id' in value)) return false;
|
|
52
|
+
if (!('status' in value)) return false;
|
|
53
|
+
return true;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function UserPasswordResetDtoFromJSON(json: any): UserPasswordResetDto {
|
|
57
|
+
return UserPasswordResetDtoFromJSONTyped(json, false);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function UserPasswordResetDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserPasswordResetDto {
|
|
61
|
+
if (json == null) {
|
|
62
|
+
return json;
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
|
|
66
|
+
'id': json['id'],
|
|
67
|
+
'status': json['status'],
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function UserPasswordResetDtoToJSON(value?: UserPasswordResetDto | null): any {
|
|
72
|
+
if (value == null) {
|
|
73
|
+
return value;
|
|
74
|
+
}
|
|
75
|
+
return {
|
|
76
|
+
|
|
77
|
+
'id': value['id'],
|
|
78
|
+
'status': value['status'],
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -16,6 +16,7 @@ export * from './DeleteDomainsInput';
|
|
|
16
16
|
export * from './DomainDto';
|
|
17
17
|
export * from './DomainSalesInformationDto';
|
|
18
18
|
export * from './DomainSellerDto';
|
|
19
|
+
export * from './ForgotPasswordRequestInput';
|
|
19
20
|
export * from './HttpException';
|
|
20
21
|
export * from './IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto';
|
|
21
22
|
export * from './IntersectionDomainDtoWithAccountDto';
|
|
@@ -46,10 +47,12 @@ export * from './PutLeadInput';
|
|
|
46
47
|
export * from './RegisterAccountInput';
|
|
47
48
|
export * from './RelatedSellerDomain';
|
|
48
49
|
export * from './SecurityUserDto';
|
|
50
|
+
export * from './SetNewPasswordInput';
|
|
49
51
|
export * from './ThrottlerException';
|
|
50
52
|
export * from './TokenDto';
|
|
51
53
|
export * from './UnauthorizedException';
|
|
52
54
|
export * from './UpdateDomainInput';
|
|
55
|
+
export * from './UserPasswordResetDto';
|
|
53
56
|
export * from './ValidationError';
|
|
54
57
|
export * from './ValidationException';
|
|
55
58
|
export * from './VerifyLeadInput';
|