@randock/nameshift-api-client 0.0.40 → 0.0.41

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.
@@ -11,6 +11,7 @@ src/apis/DomainsApi.ts
11
11
  src/apis/DomainsPublicApi.ts
12
12
  src/apis/LeadsApi.ts
13
13
  src/apis/LeadsPublicApi.ts
14
+ src/apis/UsersPublicApi.ts
14
15
  src/apis/index.ts
15
16
  src/index.ts
16
17
  src/models/AccountAddressDto.ts
@@ -54,6 +55,7 @@ src/models/List200Response.ts
54
55
  src/models/ListAccountDto.ts
55
56
  src/models/ListAccounts200Response.ts
56
57
  src/models/ListLeadMessagesDto.ts
58
+ src/models/LoginDto.ts
57
59
  src/models/LoginInput.ts
58
60
  src/models/MoneyDto.ts
59
61
  src/models/MoneyInput.ts
@@ -70,8 +72,6 @@ src/models/SellerDomainTransferDomainDto.ts
70
72
  src/models/SellerDomainTransferDto.ts
71
73
  src/models/SetNewPasswordInput.ts
72
74
  src/models/ThrottlerException.ts
73
- src/models/TokenDto.ts
74
- src/models/UnauthorizedException.ts
75
75
  src/models/UpdateDomainInput.ts
76
76
  src/models/UpdateDomainTransferAuthCodeInput.ts
77
77
  src/models/UserPasswordResetDto.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @randock/nameshift-api-client@0.0.40
1
+ ## @randock/nameshift-api-client@0.0.41
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.40 --save
39
+ npm install @randock/nameshift-api-client@0.0.41 --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
- 894766a9bda8632866dbbbee56146c00aaac4002a4bdc9381097fa7167fdd8873c1ce1134892fc5534e9d890cfd808b1
47
+ 4a98b8c4bbdfab54b517cad838e4f3bbdef1a3c894532a6a80916d78f1aa6e7e003a3af1debb9cffc65cf93579bc6db6
@@ -10,20 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
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
- }
20
- export interface AccountsPublicApiLoginRequest {
21
- loginInput: LoginInput;
22
- }
23
- export interface AccountsPublicApiPostNewPasswordRequest {
24
- passwordRequestId: string;
25
- setNewPasswordInput: SetNewPasswordInput;
26
- }
13
+ import type { RegisterAccountInput } from '../models/index';
27
14
  export interface AccountsPublicApiRegisterRequest {
28
15
  registerAccountInput: RegisterAccountInput;
29
16
  }
@@ -31,38 +18,6 @@ export interface AccountsPublicApiRegisterRequest {
31
18
  *
32
19
  */
33
20
  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>;
50
- /**
51
- *
52
- */
53
- loginRaw(requestParameters: AccountsPublicApiLoginRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TokenDto>>;
54
- /**
55
- *
56
- */
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>;
66
21
  /**
67
22
  *
68
23
  */
@@ -75,187 +75,6 @@ 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
- };
166
- /**
167
- *
168
- */
169
- AccountsPublicApi.prototype.loginRaw = function (requestParameters, initOverrides) {
170
- return __awaiter(this, void 0, void 0, function () {
171
- var queryParameters, headerParameters, response;
172
- return __generator(this, function (_a) {
173
- switch (_a.label) {
174
- case 0:
175
- if (requestParameters['loginInput'] == null) {
176
- throw new runtime.RequiredError('loginInput', 'Required parameter "loginInput" was null or undefined when calling login().');
177
- }
178
- queryParameters = {};
179
- headerParameters = {};
180
- headerParameters['Content-Type'] = 'application/json';
181
- return [4 /*yield*/, this.request({
182
- path: "/accounts/login",
183
- method: 'POST',
184
- headers: headerParameters,
185
- query: queryParameters,
186
- body: (0, index_1.LoginInputToJSON)(requestParameters['loginInput']),
187
- }, initOverrides)];
188
- case 1:
189
- response = _a.sent();
190
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.TokenDtoFromJSON)(jsonValue); })];
191
- }
192
- });
193
- });
194
- };
195
- /**
196
- *
197
- */
198
- AccountsPublicApi.prototype.login = function (requestParameters, initOverrides) {
199
- return __awaiter(this, void 0, void 0, function () {
200
- var response;
201
- return __generator(this, function (_a) {
202
- switch (_a.label) {
203
- case 0: return [4 /*yield*/, this.loginRaw(requestParameters, initOverrides)];
204
- case 1:
205
- response = _a.sent();
206
- return [4 /*yield*/, response.value()];
207
- case 2: return [2 /*return*/, _a.sent()];
208
- }
209
- });
210
- });
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
- };
259
78
  /**
260
79
  *
261
80
  */
@@ -0,0 +1,63 @@
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
+ import * as runtime from '../runtime';
13
+ import type { ForgotPasswordRequestInput, LoginDto, LoginInput, SetNewPasswordInput, UserPasswordResetDto } from '../models/index';
14
+ export interface UsersPublicApiForgotPasswordRequestRequest {
15
+ forgotPasswordRequestInput: ForgotPasswordRequestInput;
16
+ }
17
+ export interface UsersPublicApiGetForgotPasswordRequestRequest {
18
+ passwordRequestId: string;
19
+ }
20
+ export interface UsersPublicApiLoginRequest {
21
+ loginInput: LoginInput;
22
+ }
23
+ export interface UsersPublicApiPostNewPasswordRequest {
24
+ passwordRequestId: string;
25
+ setNewPasswordInput: SetNewPasswordInput;
26
+ }
27
+ /**
28
+ *
29
+ */
30
+ export declare class UsersPublicApi extends runtime.BaseAPI {
31
+ /**
32
+ *
33
+ */
34
+ forgotPasswordRequestRaw(requestParameters: UsersPublicApiForgotPasswordRequestRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
35
+ /**
36
+ *
37
+ */
38
+ forgotPasswordRequest(requestParameters: UsersPublicApiForgotPasswordRequestRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
39
+ /**
40
+ *
41
+ */
42
+ getForgotPasswordRequestRaw(requestParameters: UsersPublicApiGetForgotPasswordRequestRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserPasswordResetDto>>;
43
+ /**
44
+ *
45
+ */
46
+ getForgotPasswordRequest(requestParameters: UsersPublicApiGetForgotPasswordRequestRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserPasswordResetDto>;
47
+ /**
48
+ *
49
+ */
50
+ loginRaw(requestParameters: UsersPublicApiLoginRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LoginDto>>;
51
+ /**
52
+ *
53
+ */
54
+ login(requestParameters: UsersPublicApiLoginRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LoginDto>;
55
+ /**
56
+ *
57
+ */
58
+ postNewPasswordRaw(requestParameters: UsersPublicApiPostNewPasswordRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
59
+ /**
60
+ *
61
+ */
62
+ postNewPassword(requestParameters: UsersPublicApiPostNewPasswordRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
63
+ }
@@ -0,0 +1,261 @@
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
+ var __extends = (this && this.__extends) || (function () {
16
+ var extendStatics = function (d, b) {
17
+ extendStatics = Object.setPrototypeOf ||
18
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
+ return extendStatics(d, b);
21
+ };
22
+ return function (d, b) {
23
+ if (typeof b !== "function" && b !== null)
24
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
25
+ extendStatics(d, b);
26
+ function __() { this.constructor = d; }
27
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
+ };
29
+ })();
30
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
31
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
32
+ return new (P || (P = Promise))(function (resolve, reject) {
33
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
34
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
35
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
36
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
37
+ });
38
+ };
39
+ var __generator = (this && this.__generator) || function (thisArg, body) {
40
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
41
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
42
+ function verb(n) { return function (v) { return step([n, v]); }; }
43
+ function step(op) {
44
+ if (f) throw new TypeError("Generator is already executing.");
45
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
46
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
47
+ if (y = 0, t) op = [op[0] & 2, t.value];
48
+ switch (op[0]) {
49
+ case 0: case 1: t = op; break;
50
+ case 4: _.label++; return { value: op[1], done: false };
51
+ case 5: _.label++; y = op[1]; op = [0]; continue;
52
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
53
+ default:
54
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
55
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
56
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
57
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
58
+ if (t[2]) _.ops.pop();
59
+ _.trys.pop(); continue;
60
+ }
61
+ op = body.call(thisArg, _);
62
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
63
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
64
+ }
65
+ };
66
+ Object.defineProperty(exports, "__esModule", { value: true });
67
+ exports.UsersPublicApi = void 0;
68
+ var runtime = require("../runtime");
69
+ var index_1 = require("../models/index");
70
+ /**
71
+ *
72
+ */
73
+ var UsersPublicApi = /** @class */ (function (_super) {
74
+ __extends(UsersPublicApi, _super);
75
+ function UsersPublicApi() {
76
+ return _super !== null && _super.apply(this, arguments) || this;
77
+ }
78
+ /**
79
+ *
80
+ */
81
+ UsersPublicApi.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: "/users/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
+ UsersPublicApi.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
+ UsersPublicApi.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: "/users/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
+ UsersPublicApi.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
+ };
166
+ /**
167
+ *
168
+ */
169
+ UsersPublicApi.prototype.loginRaw = function (requestParameters, initOverrides) {
170
+ return __awaiter(this, void 0, void 0, function () {
171
+ var queryParameters, headerParameters, response;
172
+ return __generator(this, function (_a) {
173
+ switch (_a.label) {
174
+ case 0:
175
+ if (requestParameters['loginInput'] == null) {
176
+ throw new runtime.RequiredError('loginInput', 'Required parameter "loginInput" was null or undefined when calling login().');
177
+ }
178
+ queryParameters = {};
179
+ headerParameters = {};
180
+ headerParameters['Content-Type'] = 'application/json';
181
+ return [4 /*yield*/, this.request({
182
+ path: "/users/login",
183
+ method: 'POST',
184
+ headers: headerParameters,
185
+ query: queryParameters,
186
+ body: (0, index_1.LoginInputToJSON)(requestParameters['loginInput']),
187
+ }, initOverrides)];
188
+ case 1:
189
+ response = _a.sent();
190
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.LoginDtoFromJSON)(jsonValue); })];
191
+ }
192
+ });
193
+ });
194
+ };
195
+ /**
196
+ *
197
+ */
198
+ UsersPublicApi.prototype.login = function (requestParameters, initOverrides) {
199
+ return __awaiter(this, void 0, void 0, function () {
200
+ var response;
201
+ return __generator(this, function (_a) {
202
+ switch (_a.label) {
203
+ case 0: return [4 /*yield*/, this.loginRaw(requestParameters, initOverrides)];
204
+ case 1:
205
+ response = _a.sent();
206
+ return [4 /*yield*/, response.value()];
207
+ case 2: return [2 /*return*/, _a.sent()];
208
+ }
209
+ });
210
+ });
211
+ };
212
+ /**
213
+ *
214
+ */
215
+ UsersPublicApi.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: "/users/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
+ UsersPublicApi.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
+ };
259
+ return UsersPublicApi;
260
+ }(runtime.BaseAPI));
261
+ exports.UsersPublicApi = UsersPublicApi;
@@ -6,3 +6,4 @@ export * from './DomainsApi';
6
6
  export * from './DomainsPublicApi';
7
7
  export * from './LeadsApi';
8
8
  export * from './LeadsPublicApi';
9
+ export * from './UsersPublicApi';
@@ -24,3 +24,4 @@ __exportStar(require("./DomainsApi"), exports);
24
24
  __exportStar(require("./DomainsPublicApi"), exports);
25
25
  __exportStar(require("./LeadsApi"), exports);
26
26
  __exportStar(require("./LeadsPublicApi"), exports);
27
+ __exportStar(require("./UsersPublicApi"), exports);
@@ -0,0 +1,37 @@
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 LoginDto
16
+ */
17
+ export interface LoginDto {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof LoginDto
22
+ */
23
+ token: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof LoginDto
28
+ */
29
+ locale: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the LoginDto interface.
33
+ */
34
+ export declare function instanceOfLoginDto(value: object): boolean;
35
+ export declare function LoginDtoFromJSON(json: any): LoginDto;
36
+ export declare function LoginDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoginDto;
37
+ export declare function LoginDtoToJSON(value?: LoginDto | null): any;