@randock/nameshift-api-client 0.0.70 → 0.0.71
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 +2 -40
- package/dist/apis/AccountsApi.js +4 -56
- package/dist/apis/AccountsPublicApi.d.ts +0 -9
- package/dist/apis/AccountsPublicApi.js +1 -14
- package/dist/apis/AdminApi.d.ts +3 -39
- package/dist/apis/AdminApi.js +10 -59
- package/dist/apis/BuyersApi.d.ts +6 -53
- package/dist/apis/BuyersApi.js +11 -75
- package/dist/apis/BuyersPublicApi.d.ts +0 -18
- package/dist/apis/BuyersPublicApi.js +1 -27
- package/dist/apis/DashboardApi.d.ts +2 -13
- package/dist/apis/DashboardApi.js +4 -17
- package/dist/apis/DomainsApi.d.ts +3 -93
- package/dist/apis/DomainsApi.js +10 -137
- package/dist/apis/DomainsPublicApi.d.ts +0 -9
- package/dist/apis/DomainsPublicApi.js +1 -14
- package/dist/apis/LeadsApi.d.ts +2 -58
- package/dist/apis/LeadsApi.js +4 -82
- package/dist/apis/LeadsPublicApi.d.ts +14 -48
- package/dist/apis/LeadsPublicApi.js +54 -77
- package/dist/apis/OrdersPublicApi.d.ts +0 -27
- package/dist/apis/OrdersPublicApi.js +1 -40
- package/dist/apis/UsersApi.d.ts +3 -12
- package/dist/apis/UsersApi.js +5 -18
- package/dist/apis/UsersPublicApi.d.ts +0 -36
- package/dist/apis/UsersPublicApi.js +1 -53
- package/package.json +1 -1
- package/src/apis/AccountsApi.ts +3 -87
- package/src/apis/AccountsPublicApi.ts +0 -21
- package/src/apis/AdminApi.ts +3 -84
- package/src/apis/BuyersApi.ts +9 -113
- package/src/apis/BuyersPublicApi.ts +0 -41
- package/src/apis/DashboardApi.ts +3 -27
- package/src/apis/DomainsApi.ts +3 -204
- package/src/apis/DomainsPublicApi.ts +0 -21
- package/src/apis/LeadsApi.ts +3 -127
- package/src/apis/LeadsPublicApi.ts +43 -108
- package/src/apis/OrdersPublicApi.ts +0 -61
- package/src/apis/UsersApi.ts +5 -26
- package/src/apis/UsersPublicApi.ts +0 -81
package/src/apis/BuyersApi.ts
CHANGED
|
@@ -40,17 +40,11 @@ import {
|
|
|
40
40
|
ValidationExceptionToJSON,
|
|
41
41
|
} from '../models/index';
|
|
42
42
|
|
|
43
|
-
export interface BuyersApiBuyerMeRequest {
|
|
44
|
-
xLocale: BuyerMeXLocaleEnum;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
43
|
export interface BuyersApiConfirmDomainTransferRequest {
|
|
48
44
|
transferId: string;
|
|
49
|
-
xLocale: ConfirmDomainTransferXLocaleEnum;
|
|
50
45
|
}
|
|
51
46
|
|
|
52
47
|
export interface BuyersApiGetBuyerTransfersRequest {
|
|
53
|
-
xLocale: GetBuyerTransfersXLocaleEnum;
|
|
54
48
|
filter?: object;
|
|
55
49
|
page?: number;
|
|
56
50
|
limit?: number;
|
|
@@ -59,11 +53,9 @@ export interface BuyersApiGetBuyerTransfersRequest {
|
|
|
59
53
|
|
|
60
54
|
export interface BuyersApiGetTransferAuthCodeRequest {
|
|
61
55
|
transferId: string;
|
|
62
|
-
xLocale: GetTransferAuthCodeXLocaleEnum;
|
|
63
56
|
}
|
|
64
57
|
|
|
65
|
-
export interface
|
|
66
|
-
xLocale: SetBuyerLocaleXLocaleEnum;
|
|
58
|
+
export interface BuyersApiSetLocaleRequest {
|
|
67
59
|
storeBuyerLocaleInput: StoreBuyerLocaleInput;
|
|
68
60
|
}
|
|
69
61
|
|
|
@@ -75,22 +67,11 @@ export class BuyersApi extends runtime.BaseAPI {
|
|
|
75
67
|
/**
|
|
76
68
|
*
|
|
77
69
|
*/
|
|
78
|
-
async buyerMeRaw(
|
|
79
|
-
if (requestParameters['xLocale'] == null) {
|
|
80
|
-
throw new runtime.RequiredError(
|
|
81
|
-
'xLocale',
|
|
82
|
-
'Required parameter "xLocale" was null or undefined when calling buyerMe().'
|
|
83
|
-
);
|
|
84
|
-
}
|
|
85
|
-
|
|
70
|
+
async buyerMeRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BuyerUserDto>> {
|
|
86
71
|
const queryParameters: any = {};
|
|
87
72
|
|
|
88
73
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
89
74
|
|
|
90
|
-
if (requestParameters['xLocale'] != null) {
|
|
91
|
-
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
75
|
if (this.configuration && this.configuration.accessToken) {
|
|
95
76
|
const token = this.configuration.accessToken;
|
|
96
77
|
const tokenString = await token("bearer", []);
|
|
@@ -112,8 +93,8 @@ export class BuyersApi extends runtime.BaseAPI {
|
|
|
112
93
|
/**
|
|
113
94
|
*
|
|
114
95
|
*/
|
|
115
|
-
async buyerMe(
|
|
116
|
-
const response = await this.buyerMeRaw(
|
|
96
|
+
async buyerMe(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BuyerUserDto> {
|
|
97
|
+
const response = await this.buyerMeRaw(initOverrides);
|
|
117
98
|
return await response.value();
|
|
118
99
|
}
|
|
119
100
|
|
|
@@ -128,21 +109,10 @@ export class BuyersApi extends runtime.BaseAPI {
|
|
|
128
109
|
);
|
|
129
110
|
}
|
|
130
111
|
|
|
131
|
-
if (requestParameters['xLocale'] == null) {
|
|
132
|
-
throw new runtime.RequiredError(
|
|
133
|
-
'xLocale',
|
|
134
|
-
'Required parameter "xLocale" was null or undefined when calling confirmDomainTransfer().'
|
|
135
|
-
);
|
|
136
|
-
}
|
|
137
|
-
|
|
138
112
|
const queryParameters: any = {};
|
|
139
113
|
|
|
140
114
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
141
115
|
|
|
142
|
-
if (requestParameters['xLocale'] != null) {
|
|
143
|
-
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
144
|
-
}
|
|
145
|
-
|
|
146
116
|
if (this.configuration && this.configuration.accessToken) {
|
|
147
117
|
const token = this.configuration.accessToken;
|
|
148
118
|
const tokenString = await token("bearer", []);
|
|
@@ -172,13 +142,6 @@ export class BuyersApi extends runtime.BaseAPI {
|
|
|
172
142
|
*
|
|
173
143
|
*/
|
|
174
144
|
async getBuyerTransfersRaw(requestParameters: BuyersApiGetBuyerTransfersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetBuyerTransfers200Response>> {
|
|
175
|
-
if (requestParameters['xLocale'] == null) {
|
|
176
|
-
throw new runtime.RequiredError(
|
|
177
|
-
'xLocale',
|
|
178
|
-
'Required parameter "xLocale" was null or undefined when calling getBuyerTransfers().'
|
|
179
|
-
);
|
|
180
|
-
}
|
|
181
|
-
|
|
182
145
|
const queryParameters: any = {};
|
|
183
146
|
|
|
184
147
|
if (requestParameters['filter'] != null) {
|
|
@@ -199,10 +162,6 @@ export class BuyersApi extends runtime.BaseAPI {
|
|
|
199
162
|
|
|
200
163
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
201
164
|
|
|
202
|
-
if (requestParameters['xLocale'] != null) {
|
|
203
|
-
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
204
|
-
}
|
|
205
|
-
|
|
206
165
|
if (this.configuration && this.configuration.accessToken) {
|
|
207
166
|
const token = this.configuration.accessToken;
|
|
208
167
|
const tokenString = await token("bearer", []);
|
|
@@ -224,7 +183,7 @@ export class BuyersApi extends runtime.BaseAPI {
|
|
|
224
183
|
/**
|
|
225
184
|
*
|
|
226
185
|
*/
|
|
227
|
-
async getBuyerTransfers(requestParameters: BuyersApiGetBuyerTransfersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetBuyerTransfers200Response> {
|
|
186
|
+
async getBuyerTransfers(requestParameters: BuyersApiGetBuyerTransfersRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetBuyerTransfers200Response> {
|
|
228
187
|
const response = await this.getBuyerTransfersRaw(requestParameters, initOverrides);
|
|
229
188
|
return await response.value();
|
|
230
189
|
}
|
|
@@ -240,21 +199,10 @@ export class BuyersApi extends runtime.BaseAPI {
|
|
|
240
199
|
);
|
|
241
200
|
}
|
|
242
201
|
|
|
243
|
-
if (requestParameters['xLocale'] == null) {
|
|
244
|
-
throw new runtime.RequiredError(
|
|
245
|
-
'xLocale',
|
|
246
|
-
'Required parameter "xLocale" was null or undefined when calling getTransferAuthCode().'
|
|
247
|
-
);
|
|
248
|
-
}
|
|
249
|
-
|
|
250
202
|
const queryParameters: any = {};
|
|
251
203
|
|
|
252
204
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
253
205
|
|
|
254
|
-
if (requestParameters['xLocale'] != null) {
|
|
255
|
-
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
256
|
-
}
|
|
257
|
-
|
|
258
206
|
if (this.configuration && this.configuration.accessToken) {
|
|
259
207
|
const token = this.configuration.accessToken;
|
|
260
208
|
const tokenString = await token("bearer", []);
|
|
@@ -284,18 +232,11 @@ export class BuyersApi extends runtime.BaseAPI {
|
|
|
284
232
|
/**
|
|
285
233
|
*
|
|
286
234
|
*/
|
|
287
|
-
async
|
|
288
|
-
if (requestParameters['xLocale'] == null) {
|
|
289
|
-
throw new runtime.RequiredError(
|
|
290
|
-
'xLocale',
|
|
291
|
-
'Required parameter "xLocale" was null or undefined when calling setBuyerLocale().'
|
|
292
|
-
);
|
|
293
|
-
}
|
|
294
|
-
|
|
235
|
+
async setLocaleRaw(requestParameters: BuyersApiSetLocaleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
295
236
|
if (requestParameters['storeBuyerLocaleInput'] == null) {
|
|
296
237
|
throw new runtime.RequiredError(
|
|
297
238
|
'storeBuyerLocaleInput',
|
|
298
|
-
'Required parameter "storeBuyerLocaleInput" was null or undefined when calling
|
|
239
|
+
'Required parameter "storeBuyerLocaleInput" was null or undefined when calling setLocale().'
|
|
299
240
|
);
|
|
300
241
|
}
|
|
301
242
|
|
|
@@ -305,10 +246,6 @@ export class BuyersApi extends runtime.BaseAPI {
|
|
|
305
246
|
|
|
306
247
|
headerParameters['Content-Type'] = 'application/json';
|
|
307
248
|
|
|
308
|
-
if (requestParameters['xLocale'] != null) {
|
|
309
|
-
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
310
|
-
}
|
|
311
|
-
|
|
312
249
|
if (this.configuration && this.configuration.accessToken) {
|
|
313
250
|
const token = this.configuration.accessToken;
|
|
314
251
|
const tokenString = await token("bearer", []);
|
|
@@ -331,49 +268,8 @@ export class BuyersApi extends runtime.BaseAPI {
|
|
|
331
268
|
/**
|
|
332
269
|
*
|
|
333
270
|
*/
|
|
334
|
-
async
|
|
335
|
-
await this.
|
|
271
|
+
async setLocale(requestParameters: BuyersApiSetLocaleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
272
|
+
await this.setLocaleRaw(requestParameters, initOverrides);
|
|
336
273
|
}
|
|
337
274
|
|
|
338
275
|
}
|
|
339
|
-
|
|
340
|
-
/**
|
|
341
|
-
* @export
|
|
342
|
-
*/
|
|
343
|
-
export const BuyerMeXLocaleEnum = {
|
|
344
|
-
NL_NL: 'nl-nl',
|
|
345
|
-
EN_GB: 'en-gb'
|
|
346
|
-
} as const;
|
|
347
|
-
export type BuyerMeXLocaleEnum = typeof BuyerMeXLocaleEnum[keyof typeof BuyerMeXLocaleEnum];
|
|
348
|
-
/**
|
|
349
|
-
* @export
|
|
350
|
-
*/
|
|
351
|
-
export const ConfirmDomainTransferXLocaleEnum = {
|
|
352
|
-
NL_NL: 'nl-nl',
|
|
353
|
-
EN_GB: 'en-gb'
|
|
354
|
-
} as const;
|
|
355
|
-
export type ConfirmDomainTransferXLocaleEnum = typeof ConfirmDomainTransferXLocaleEnum[keyof typeof ConfirmDomainTransferXLocaleEnum];
|
|
356
|
-
/**
|
|
357
|
-
* @export
|
|
358
|
-
*/
|
|
359
|
-
export const GetBuyerTransfersXLocaleEnum = {
|
|
360
|
-
NL_NL: 'nl-nl',
|
|
361
|
-
EN_GB: 'en-gb'
|
|
362
|
-
} as const;
|
|
363
|
-
export type GetBuyerTransfersXLocaleEnum = typeof GetBuyerTransfersXLocaleEnum[keyof typeof GetBuyerTransfersXLocaleEnum];
|
|
364
|
-
/**
|
|
365
|
-
* @export
|
|
366
|
-
*/
|
|
367
|
-
export const GetTransferAuthCodeXLocaleEnum = {
|
|
368
|
-
NL_NL: 'nl-nl',
|
|
369
|
-
EN_GB: 'en-gb'
|
|
370
|
-
} as const;
|
|
371
|
-
export type GetTransferAuthCodeXLocaleEnum = typeof GetTransferAuthCodeXLocaleEnum[keyof typeof GetTransferAuthCodeXLocaleEnum];
|
|
372
|
-
/**
|
|
373
|
-
* @export
|
|
374
|
-
*/
|
|
375
|
-
export const SetBuyerLocaleXLocaleEnum = {
|
|
376
|
-
NL_NL: 'nl-nl',
|
|
377
|
-
EN_GB: 'en-gb'
|
|
378
|
-
} as const;
|
|
379
|
-
export type SetBuyerLocaleXLocaleEnum = typeof SetBuyerLocaleXLocaleEnum[keyof typeof SetBuyerLocaleXLocaleEnum];
|
|
@@ -35,12 +35,10 @@ import {
|
|
|
35
35
|
} from '../models/index';
|
|
36
36
|
|
|
37
37
|
export interface BuyersPublicApiBuyerLoginRequest {
|
|
38
|
-
xLocale: BuyerLoginXLocaleEnum;
|
|
39
38
|
loginInput: LoginInput;
|
|
40
39
|
}
|
|
41
40
|
|
|
42
41
|
export interface BuyersPublicApiRequestAccessTokenRequest {
|
|
43
|
-
xLocale: RequestAccessTokenXLocaleEnum;
|
|
44
42
|
requestAccessTokenInput: RequestAccessTokenInput;
|
|
45
43
|
}
|
|
46
44
|
|
|
@@ -53,13 +51,6 @@ export class BuyersPublicApi extends runtime.BaseAPI {
|
|
|
53
51
|
*
|
|
54
52
|
*/
|
|
55
53
|
async buyerLoginRaw(requestParameters: BuyersPublicApiBuyerLoginRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LoginDto>> {
|
|
56
|
-
if (requestParameters['xLocale'] == null) {
|
|
57
|
-
throw new runtime.RequiredError(
|
|
58
|
-
'xLocale',
|
|
59
|
-
'Required parameter "xLocale" was null or undefined when calling buyerLogin().'
|
|
60
|
-
);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
54
|
if (requestParameters['loginInput'] == null) {
|
|
64
55
|
throw new runtime.RequiredError(
|
|
65
56
|
'loginInput',
|
|
@@ -73,10 +64,6 @@ export class BuyersPublicApi extends runtime.BaseAPI {
|
|
|
73
64
|
|
|
74
65
|
headerParameters['Content-Type'] = 'application/json';
|
|
75
66
|
|
|
76
|
-
if (requestParameters['xLocale'] != null) {
|
|
77
|
-
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
78
|
-
}
|
|
79
|
-
|
|
80
67
|
const response = await this.request({
|
|
81
68
|
path: `/buyers/login`,
|
|
82
69
|
method: 'POST',
|
|
@@ -100,13 +87,6 @@ export class BuyersPublicApi extends runtime.BaseAPI {
|
|
|
100
87
|
*
|
|
101
88
|
*/
|
|
102
89
|
async requestAccessTokenRaw(requestParameters: BuyersPublicApiRequestAccessTokenRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
103
|
-
if (requestParameters['xLocale'] == null) {
|
|
104
|
-
throw new runtime.RequiredError(
|
|
105
|
-
'xLocale',
|
|
106
|
-
'Required parameter "xLocale" was null or undefined when calling requestAccessToken().'
|
|
107
|
-
);
|
|
108
|
-
}
|
|
109
|
-
|
|
110
90
|
if (requestParameters['requestAccessTokenInput'] == null) {
|
|
111
91
|
throw new runtime.RequiredError(
|
|
112
92
|
'requestAccessTokenInput',
|
|
@@ -120,10 +100,6 @@ export class BuyersPublicApi extends runtime.BaseAPI {
|
|
|
120
100
|
|
|
121
101
|
headerParameters['Content-Type'] = 'application/json';
|
|
122
102
|
|
|
123
|
-
if (requestParameters['xLocale'] != null) {
|
|
124
|
-
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
125
|
-
}
|
|
126
|
-
|
|
127
103
|
const response = await this.request({
|
|
128
104
|
path: `/buyers/request-access-token`,
|
|
129
105
|
method: 'POST',
|
|
@@ -143,20 +119,3 @@ export class BuyersPublicApi extends runtime.BaseAPI {
|
|
|
143
119
|
}
|
|
144
120
|
|
|
145
121
|
}
|
|
146
|
-
|
|
147
|
-
/**
|
|
148
|
-
* @export
|
|
149
|
-
*/
|
|
150
|
-
export const BuyerLoginXLocaleEnum = {
|
|
151
|
-
NL_NL: 'nl-nl',
|
|
152
|
-
EN_GB: 'en-gb'
|
|
153
|
-
} as const;
|
|
154
|
-
export type BuyerLoginXLocaleEnum = typeof BuyerLoginXLocaleEnum[keyof typeof BuyerLoginXLocaleEnum];
|
|
155
|
-
/**
|
|
156
|
-
* @export
|
|
157
|
-
*/
|
|
158
|
-
export const RequestAccessTokenXLocaleEnum = {
|
|
159
|
-
NL_NL: 'nl-nl',
|
|
160
|
-
EN_GB: 'en-gb'
|
|
161
|
-
} as const;
|
|
162
|
-
export type RequestAccessTokenXLocaleEnum = typeof RequestAccessTokenXLocaleEnum[keyof typeof RequestAccessTokenXLocaleEnum];
|
package/src/apis/DashboardApi.ts
CHANGED
|
@@ -28,10 +28,6 @@ import {
|
|
|
28
28
|
ValidationExceptionToJSON,
|
|
29
29
|
} from '../models/index';
|
|
30
30
|
|
|
31
|
-
export interface DashboardApiStatsRequest {
|
|
32
|
-
xLocale: StatsXLocaleEnum;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
31
|
/**
|
|
36
32
|
*
|
|
37
33
|
*/
|
|
@@ -40,22 +36,11 @@ export class DashboardApi extends runtime.BaseAPI {
|
|
|
40
36
|
/**
|
|
41
37
|
*
|
|
42
38
|
*/
|
|
43
|
-
async statsRaw(
|
|
44
|
-
if (requestParameters['xLocale'] == null) {
|
|
45
|
-
throw new runtime.RequiredError(
|
|
46
|
-
'xLocale',
|
|
47
|
-
'Required parameter "xLocale" was null or undefined when calling stats().'
|
|
48
|
-
);
|
|
49
|
-
}
|
|
50
|
-
|
|
39
|
+
async statsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DashboardStatsDto>> {
|
|
51
40
|
const queryParameters: any = {};
|
|
52
41
|
|
|
53
42
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
54
43
|
|
|
55
|
-
if (requestParameters['xLocale'] != null) {
|
|
56
|
-
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
57
|
-
}
|
|
58
|
-
|
|
59
44
|
if (this.configuration && this.configuration.accessToken) {
|
|
60
45
|
const token = this.configuration.accessToken;
|
|
61
46
|
const tokenString = await token("bearer", []);
|
|
@@ -77,18 +62,9 @@ export class DashboardApi extends runtime.BaseAPI {
|
|
|
77
62
|
/**
|
|
78
63
|
*
|
|
79
64
|
*/
|
|
80
|
-
async stats(
|
|
81
|
-
const response = await this.statsRaw(
|
|
65
|
+
async stats(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DashboardStatsDto> {
|
|
66
|
+
const response = await this.statsRaw(initOverrides);
|
|
82
67
|
return await response.value();
|
|
83
68
|
}
|
|
84
69
|
|
|
85
70
|
}
|
|
86
|
-
|
|
87
|
-
/**
|
|
88
|
-
* @export
|
|
89
|
-
*/
|
|
90
|
-
export const StatsXLocaleEnum = {
|
|
91
|
-
NL_NL: 'nl-nl',
|
|
92
|
-
EN_GB: 'en-gb'
|
|
93
|
-
} as const;
|
|
94
|
-
export type StatsXLocaleEnum = typeof StatsXLocaleEnum[keyof typeof StatsXLocaleEnum];
|