@randock/nameshift-api-client 0.0.69 → 0.0.70
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/README.md +3 -3
- package/dist/apis/AccountsApi.d.ts +40 -2
- package/dist/apis/AccountsApi.js +56 -4
- package/dist/apis/AccountsPublicApi.d.ts +9 -0
- package/dist/apis/AccountsPublicApi.js +14 -1
- package/dist/apis/AdminApi.d.ts +39 -3
- package/dist/apis/AdminApi.js +59 -10
- package/dist/apis/BuyersApi.d.ts +53 -6
- package/dist/apis/BuyersApi.js +75 -11
- package/dist/apis/BuyersPublicApi.d.ts +18 -0
- package/dist/apis/BuyersPublicApi.js +27 -1
- package/dist/apis/DashboardApi.d.ts +13 -2
- package/dist/apis/DashboardApi.js +17 -4
- package/dist/apis/DomainsApi.d.ts +98 -9
- package/dist/apis/DomainsApi.js +156 -34
- package/dist/apis/DomainsPublicApi.d.ts +9 -1
- package/dist/apis/DomainsPublicApi.js +13 -6
- package/dist/apis/LeadsApi.d.ts +61 -5
- package/dist/apis/LeadsApi.js +86 -8
- package/dist/apis/LeadsPublicApi.d.ts +51 -6
- package/dist/apis/LeadsPublicApi.js +78 -13
- package/dist/apis/OrdersPublicApi.d.ts +27 -0
- package/dist/apis/OrdersPublicApi.js +40 -1
- package/dist/apis/UsersApi.d.ts +12 -3
- package/dist/apis/UsersApi.js +18 -5
- package/dist/apis/UsersPublicApi.d.ts +36 -0
- package/dist/apis/UsersPublicApi.js +53 -1
- package/dist/models/DomainSellerDto.d.ts +15 -3
- package/dist/models/DomainSellerDto.js +11 -3
- package/package.json +1 -1
- package/src/apis/AccountsApi.ts +87 -3
- package/src/apis/AccountsPublicApi.ts +21 -0
- package/src/apis/AdminApi.ts +84 -3
- package/src/apis/BuyersApi.ts +113 -9
- package/src/apis/BuyersPublicApi.ts +41 -0
- package/src/apis/DashboardApi.ts +27 -3
- package/src/apis/DomainsApi.ts +228 -39
- package/src/apis/DomainsPublicApi.ts +17 -8
- package/src/apis/LeadsApi.ts +132 -8
- package/src/apis/LeadsPublicApi.ts +115 -14
- package/src/apis/OrdersPublicApi.ts +61 -0
- package/src/apis/UsersApi.ts +26 -5
- package/src/apis/UsersPublicApi.ts +81 -0
- package/src/models/DomainSellerDto.ts +24 -6
|
@@ -44,19 +44,23 @@ import {
|
|
|
44
44
|
} from '../models/index';
|
|
45
45
|
|
|
46
46
|
export interface UsersPublicApiForgotPasswordRequestRequest {
|
|
47
|
+
xLocale: ForgotPasswordRequestXLocaleEnum;
|
|
47
48
|
forgotPasswordRequestInput: ForgotPasswordRequestInput;
|
|
48
49
|
}
|
|
49
50
|
|
|
50
51
|
export interface UsersPublicApiGetForgotPasswordRequestRequest {
|
|
51
52
|
passwordRequestId: string;
|
|
53
|
+
xLocale: GetForgotPasswordRequestXLocaleEnum;
|
|
52
54
|
}
|
|
53
55
|
|
|
54
56
|
export interface UsersPublicApiLoginRequest {
|
|
57
|
+
xLocale: LoginXLocaleEnum;
|
|
55
58
|
loginInput: LoginInput;
|
|
56
59
|
}
|
|
57
60
|
|
|
58
61
|
export interface UsersPublicApiPostNewPasswordRequest {
|
|
59
62
|
passwordRequestId: string;
|
|
63
|
+
xLocale: PostNewPasswordXLocaleEnum;
|
|
60
64
|
setNewPasswordInput: SetNewPasswordInput;
|
|
61
65
|
}
|
|
62
66
|
|
|
@@ -69,6 +73,13 @@ export class UsersPublicApi extends runtime.BaseAPI {
|
|
|
69
73
|
*
|
|
70
74
|
*/
|
|
71
75
|
async forgotPasswordRequestRaw(requestParameters: UsersPublicApiForgotPasswordRequestRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
76
|
+
if (requestParameters['xLocale'] == null) {
|
|
77
|
+
throw new runtime.RequiredError(
|
|
78
|
+
'xLocale',
|
|
79
|
+
'Required parameter "xLocale" was null or undefined when calling forgotPasswordRequest().'
|
|
80
|
+
);
|
|
81
|
+
}
|
|
82
|
+
|
|
72
83
|
if (requestParameters['forgotPasswordRequestInput'] == null) {
|
|
73
84
|
throw new runtime.RequiredError(
|
|
74
85
|
'forgotPasswordRequestInput',
|
|
@@ -82,6 +93,10 @@ export class UsersPublicApi extends runtime.BaseAPI {
|
|
|
82
93
|
|
|
83
94
|
headerParameters['Content-Type'] = 'application/json';
|
|
84
95
|
|
|
96
|
+
if (requestParameters['xLocale'] != null) {
|
|
97
|
+
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
98
|
+
}
|
|
99
|
+
|
|
85
100
|
const response = await this.request({
|
|
86
101
|
path: `/users/forgot-password-request`,
|
|
87
102
|
method: 'POST',
|
|
@@ -111,10 +126,21 @@ export class UsersPublicApi extends runtime.BaseAPI {
|
|
|
111
126
|
);
|
|
112
127
|
}
|
|
113
128
|
|
|
129
|
+
if (requestParameters['xLocale'] == null) {
|
|
130
|
+
throw new runtime.RequiredError(
|
|
131
|
+
'xLocale',
|
|
132
|
+
'Required parameter "xLocale" was null or undefined when calling getForgotPasswordRequest().'
|
|
133
|
+
);
|
|
134
|
+
}
|
|
135
|
+
|
|
114
136
|
const queryParameters: any = {};
|
|
115
137
|
|
|
116
138
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
117
139
|
|
|
140
|
+
if (requestParameters['xLocale'] != null) {
|
|
141
|
+
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
142
|
+
}
|
|
143
|
+
|
|
118
144
|
const response = await this.request({
|
|
119
145
|
path: `/users/forgot-password-request/{passwordRequestId}`.replace(`{${"passwordRequestId"}}`, encodeURIComponent(String(requestParameters['passwordRequestId']))),
|
|
120
146
|
method: 'GET',
|
|
@@ -137,6 +163,13 @@ export class UsersPublicApi extends runtime.BaseAPI {
|
|
|
137
163
|
*
|
|
138
164
|
*/
|
|
139
165
|
async loginRaw(requestParameters: UsersPublicApiLoginRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LoginDto>> {
|
|
166
|
+
if (requestParameters['xLocale'] == null) {
|
|
167
|
+
throw new runtime.RequiredError(
|
|
168
|
+
'xLocale',
|
|
169
|
+
'Required parameter "xLocale" was null or undefined when calling login().'
|
|
170
|
+
);
|
|
171
|
+
}
|
|
172
|
+
|
|
140
173
|
if (requestParameters['loginInput'] == null) {
|
|
141
174
|
throw new runtime.RequiredError(
|
|
142
175
|
'loginInput',
|
|
@@ -150,6 +183,10 @@ export class UsersPublicApi extends runtime.BaseAPI {
|
|
|
150
183
|
|
|
151
184
|
headerParameters['Content-Type'] = 'application/json';
|
|
152
185
|
|
|
186
|
+
if (requestParameters['xLocale'] != null) {
|
|
187
|
+
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
188
|
+
}
|
|
189
|
+
|
|
153
190
|
const response = await this.request({
|
|
154
191
|
path: `/users/login`,
|
|
155
192
|
method: 'POST',
|
|
@@ -180,6 +217,13 @@ export class UsersPublicApi extends runtime.BaseAPI {
|
|
|
180
217
|
);
|
|
181
218
|
}
|
|
182
219
|
|
|
220
|
+
if (requestParameters['xLocale'] == null) {
|
|
221
|
+
throw new runtime.RequiredError(
|
|
222
|
+
'xLocale',
|
|
223
|
+
'Required parameter "xLocale" was null or undefined when calling postNewPassword().'
|
|
224
|
+
);
|
|
225
|
+
}
|
|
226
|
+
|
|
183
227
|
if (requestParameters['setNewPasswordInput'] == null) {
|
|
184
228
|
throw new runtime.RequiredError(
|
|
185
229
|
'setNewPasswordInput',
|
|
@@ -193,6 +237,10 @@ export class UsersPublicApi extends runtime.BaseAPI {
|
|
|
193
237
|
|
|
194
238
|
headerParameters['Content-Type'] = 'application/json';
|
|
195
239
|
|
|
240
|
+
if (requestParameters['xLocale'] != null) {
|
|
241
|
+
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
242
|
+
}
|
|
243
|
+
|
|
196
244
|
const response = await this.request({
|
|
197
245
|
path: `/users/forgot-password-request/{passwordRequestId}`.replace(`{${"passwordRequestId"}}`, encodeURIComponent(String(requestParameters['passwordRequestId']))),
|
|
198
246
|
method: 'POST',
|
|
@@ -212,3 +260,36 @@ export class UsersPublicApi extends runtime.BaseAPI {
|
|
|
212
260
|
}
|
|
213
261
|
|
|
214
262
|
}
|
|
263
|
+
|
|
264
|
+
/**
|
|
265
|
+
* @export
|
|
266
|
+
*/
|
|
267
|
+
export const ForgotPasswordRequestXLocaleEnum = {
|
|
268
|
+
NL_NL: 'nl-nl',
|
|
269
|
+
EN_GB: 'en-gb'
|
|
270
|
+
} as const;
|
|
271
|
+
export type ForgotPasswordRequestXLocaleEnum = typeof ForgotPasswordRequestXLocaleEnum[keyof typeof ForgotPasswordRequestXLocaleEnum];
|
|
272
|
+
/**
|
|
273
|
+
* @export
|
|
274
|
+
*/
|
|
275
|
+
export const GetForgotPasswordRequestXLocaleEnum = {
|
|
276
|
+
NL_NL: 'nl-nl',
|
|
277
|
+
EN_GB: 'en-gb'
|
|
278
|
+
} as const;
|
|
279
|
+
export type GetForgotPasswordRequestXLocaleEnum = typeof GetForgotPasswordRequestXLocaleEnum[keyof typeof GetForgotPasswordRequestXLocaleEnum];
|
|
280
|
+
/**
|
|
281
|
+
* @export
|
|
282
|
+
*/
|
|
283
|
+
export const LoginXLocaleEnum = {
|
|
284
|
+
NL_NL: 'nl-nl',
|
|
285
|
+
EN_GB: 'en-gb'
|
|
286
|
+
} as const;
|
|
287
|
+
export type LoginXLocaleEnum = typeof LoginXLocaleEnum[keyof typeof LoginXLocaleEnum];
|
|
288
|
+
/**
|
|
289
|
+
* @export
|
|
290
|
+
*/
|
|
291
|
+
export const PostNewPasswordXLocaleEnum = {
|
|
292
|
+
NL_NL: 'nl-nl',
|
|
293
|
+
EN_GB: 'en-gb'
|
|
294
|
+
} as const;
|
|
295
|
+
export type PostNewPasswordXLocaleEnum = typeof PostNewPasswordXLocaleEnum[keyof typeof PostNewPasswordXLocaleEnum];
|
|
@@ -26,6 +26,12 @@ import {
|
|
|
26
26
|
* @interface DomainSellerDto
|
|
27
27
|
*/
|
|
28
28
|
export interface DomainSellerDto {
|
|
29
|
+
/**
|
|
30
|
+
* The domain seller account creation date
|
|
31
|
+
* @type {Date}
|
|
32
|
+
* @memberof DomainSellerDto
|
|
33
|
+
*/
|
|
34
|
+
createdAt: Date;
|
|
29
35
|
/**
|
|
30
36
|
* The domain seller account verified status
|
|
31
37
|
* @type {boolean}
|
|
@@ -33,11 +39,17 @@ export interface DomainSellerDto {
|
|
|
33
39
|
*/
|
|
34
40
|
verified: boolean;
|
|
35
41
|
/**
|
|
36
|
-
*
|
|
37
|
-
* @type {
|
|
42
|
+
* Last online, formatted
|
|
43
|
+
* @type {string}
|
|
38
44
|
* @memberof DomainSellerDto
|
|
39
45
|
*/
|
|
40
|
-
|
|
46
|
+
lastOnline: string;
|
|
47
|
+
/**
|
|
48
|
+
* Delivers in, formatted
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof DomainSellerDto
|
|
51
|
+
*/
|
|
52
|
+
deliversIn: string;
|
|
41
53
|
/**
|
|
42
54
|
* The domain seller related domains
|
|
43
55
|
* @type {Array<RelatedSellerDomain>}
|
|
@@ -50,8 +62,10 @@ export interface DomainSellerDto {
|
|
|
50
62
|
* Check if a given object implements the DomainSellerDto interface.
|
|
51
63
|
*/
|
|
52
64
|
export function instanceOfDomainSellerDto(value: object): value is DomainSellerDto {
|
|
53
|
-
if (!('verified' in value) || value['verified'] === undefined) return false;
|
|
54
65
|
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
66
|
+
if (!('verified' in value) || value['verified'] === undefined) return false;
|
|
67
|
+
if (!('lastOnline' in value) || value['lastOnline'] === undefined) return false;
|
|
68
|
+
if (!('deliversIn' in value) || value['deliversIn'] === undefined) return false;
|
|
55
69
|
if (!('relatedDomains' in value) || value['relatedDomains'] === undefined) return false;
|
|
56
70
|
return true;
|
|
57
71
|
}
|
|
@@ -66,8 +80,10 @@ export function DomainSellerDtoFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
66
80
|
}
|
|
67
81
|
return {
|
|
68
82
|
|
|
69
|
-
'verified': json['verified'],
|
|
70
83
|
'createdAt': (new Date(json['createdAt'])),
|
|
84
|
+
'verified': json['verified'],
|
|
85
|
+
'lastOnline': json['lastOnline'],
|
|
86
|
+
'deliversIn': json['deliversIn'],
|
|
71
87
|
'relatedDomains': (json['relatedDomains'] == null ? null : (json['relatedDomains'] as Array<any>).map(RelatedSellerDomainFromJSON)),
|
|
72
88
|
};
|
|
73
89
|
}
|
|
@@ -78,8 +94,10 @@ export function DomainSellerDtoToJSON(value?: DomainSellerDto | null): any {
|
|
|
78
94
|
}
|
|
79
95
|
return {
|
|
80
96
|
|
|
81
|
-
'verified': value['verified'],
|
|
82
97
|
'createdAt': ((value['createdAt']).toISOString()),
|
|
98
|
+
'verified': value['verified'],
|
|
99
|
+
'lastOnline': value['lastOnline'],
|
|
100
|
+
'deliversIn': value['deliversIn'],
|
|
83
101
|
'relatedDomains': (value['relatedDomains'] == null ? null : (value['relatedDomains'] as Array<any>).map(RelatedSellerDomainToJSON)),
|
|
84
102
|
};
|
|
85
103
|
}
|