@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
package/src/apis/DomainsApi.ts
CHANGED
|
@@ -56,39 +56,46 @@ import {
|
|
|
56
56
|
} from '../models/index';
|
|
57
57
|
|
|
58
58
|
export interface DomainsApiBatchImportRequest {
|
|
59
|
+
xLocale: BatchImportXLocaleEnum;
|
|
59
60
|
file?: Blob;
|
|
60
61
|
domains?: Array<string>;
|
|
61
62
|
}
|
|
62
63
|
|
|
63
64
|
export interface DomainsApiBatchUpdateRequest {
|
|
65
|
+
xLocale: BatchUpdateXLocaleEnum;
|
|
64
66
|
batchUpdateDomainsInput: BatchUpdateDomainsInput;
|
|
65
67
|
}
|
|
66
68
|
|
|
67
69
|
export interface DomainsApiCheckDnsRequest {
|
|
68
70
|
domainId: string;
|
|
71
|
+
xLocale: CheckDnsXLocaleEnum;
|
|
69
72
|
}
|
|
70
73
|
|
|
71
74
|
export interface DomainsApiDeleteDomainsRequest {
|
|
75
|
+
xLocale: DeleteDomainsXLocaleEnum;
|
|
72
76
|
deleteDomainsInput: DeleteDomainsInput;
|
|
73
77
|
}
|
|
74
78
|
|
|
75
|
-
export interface DomainsApiGetRequest {
|
|
76
|
-
domainId: string;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
79
|
export interface DomainsApiGetAllDomainTransfersRequest {
|
|
80
|
+
xLocale: GetAllDomainTransfersXLocaleEnum;
|
|
80
81
|
filter?: object;
|
|
81
82
|
page?: number;
|
|
82
83
|
limit?: number;
|
|
83
84
|
sortBy?: Array<string>;
|
|
84
85
|
}
|
|
85
86
|
|
|
87
|
+
export interface DomainsApiGetDomainRequest {
|
|
88
|
+
domainId: string;
|
|
89
|
+
xLocale: GetDomainXLocaleEnum;
|
|
90
|
+
}
|
|
91
|
+
|
|
86
92
|
export interface DomainsApiGetDomainTransferRequest {
|
|
87
93
|
transferId: string;
|
|
94
|
+
xLocale: GetDomainTransferXLocaleEnum;
|
|
88
95
|
}
|
|
89
96
|
|
|
90
97
|
export interface DomainsApiListRequest {
|
|
91
|
-
|
|
98
|
+
xLocale: ListXLocaleEnum;
|
|
92
99
|
filter?: object;
|
|
93
100
|
page?: number;
|
|
94
101
|
limit?: number;
|
|
@@ -97,11 +104,13 @@ export interface DomainsApiListRequest {
|
|
|
97
104
|
|
|
98
105
|
export interface DomainsApiUpdateRequest {
|
|
99
106
|
domainId: string;
|
|
107
|
+
xLocale: UpdateXLocaleEnum;
|
|
100
108
|
updateDomainInput: UpdateDomainInput;
|
|
101
109
|
}
|
|
102
110
|
|
|
103
111
|
export interface DomainsApiUpdateDomainTransferAuthCodeRequest {
|
|
104
112
|
transferId: string;
|
|
113
|
+
xLocale: UpdateDomainTransferAuthCodeXLocaleEnum;
|
|
105
114
|
updateDomainTransferAuthCodeInput: UpdateDomainTransferAuthCodeInput;
|
|
106
115
|
}
|
|
107
116
|
|
|
@@ -114,10 +123,21 @@ export class DomainsApi extends runtime.BaseAPI {
|
|
|
114
123
|
*
|
|
115
124
|
*/
|
|
116
125
|
async batchImportRaw(requestParameters: DomainsApiBatchImportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
126
|
+
if (requestParameters['xLocale'] == null) {
|
|
127
|
+
throw new runtime.RequiredError(
|
|
128
|
+
'xLocale',
|
|
129
|
+
'Required parameter "xLocale" was null or undefined when calling batchImport().'
|
|
130
|
+
);
|
|
131
|
+
}
|
|
132
|
+
|
|
117
133
|
const queryParameters: any = {};
|
|
118
134
|
|
|
119
135
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
120
136
|
|
|
137
|
+
if (requestParameters['xLocale'] != null) {
|
|
138
|
+
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
139
|
+
}
|
|
140
|
+
|
|
121
141
|
if (this.configuration && this.configuration.accessToken) {
|
|
122
142
|
const token = this.configuration.accessToken;
|
|
123
143
|
const tokenString = await token("bearer", []);
|
|
@@ -164,7 +184,7 @@ export class DomainsApi extends runtime.BaseAPI {
|
|
|
164
184
|
/**
|
|
165
185
|
*
|
|
166
186
|
*/
|
|
167
|
-
async batchImport(requestParameters: DomainsApiBatchImportRequest
|
|
187
|
+
async batchImport(requestParameters: DomainsApiBatchImportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
168
188
|
await this.batchImportRaw(requestParameters, initOverrides);
|
|
169
189
|
}
|
|
170
190
|
|
|
@@ -172,6 +192,13 @@ export class DomainsApi extends runtime.BaseAPI {
|
|
|
172
192
|
*
|
|
173
193
|
*/
|
|
174
194
|
async batchUpdateRaw(requestParameters: DomainsApiBatchUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
195
|
+
if (requestParameters['xLocale'] == null) {
|
|
196
|
+
throw new runtime.RequiredError(
|
|
197
|
+
'xLocale',
|
|
198
|
+
'Required parameter "xLocale" was null or undefined when calling batchUpdate().'
|
|
199
|
+
);
|
|
200
|
+
}
|
|
201
|
+
|
|
175
202
|
if (requestParameters['batchUpdateDomainsInput'] == null) {
|
|
176
203
|
throw new runtime.RequiredError(
|
|
177
204
|
'batchUpdateDomainsInput',
|
|
@@ -185,6 +212,10 @@ export class DomainsApi extends runtime.BaseAPI {
|
|
|
185
212
|
|
|
186
213
|
headerParameters['Content-Type'] = 'application/json';
|
|
187
214
|
|
|
215
|
+
if (requestParameters['xLocale'] != null) {
|
|
216
|
+
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
217
|
+
}
|
|
218
|
+
|
|
188
219
|
if (this.configuration && this.configuration.accessToken) {
|
|
189
220
|
const token = this.configuration.accessToken;
|
|
190
221
|
const tokenString = await token("bearer", []);
|
|
@@ -222,10 +253,21 @@ export class DomainsApi extends runtime.BaseAPI {
|
|
|
222
253
|
);
|
|
223
254
|
}
|
|
224
255
|
|
|
256
|
+
if (requestParameters['xLocale'] == null) {
|
|
257
|
+
throw new runtime.RequiredError(
|
|
258
|
+
'xLocale',
|
|
259
|
+
'Required parameter "xLocale" was null or undefined when calling checkDns().'
|
|
260
|
+
);
|
|
261
|
+
}
|
|
262
|
+
|
|
225
263
|
const queryParameters: any = {};
|
|
226
264
|
|
|
227
265
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
228
266
|
|
|
267
|
+
if (requestParameters['xLocale'] != null) {
|
|
268
|
+
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
269
|
+
}
|
|
270
|
+
|
|
229
271
|
if (this.configuration && this.configuration.accessToken) {
|
|
230
272
|
const token = this.configuration.accessToken;
|
|
231
273
|
const tokenString = await token("bearer", []);
|
|
@@ -255,6 +297,13 @@ export class DomainsApi extends runtime.BaseAPI {
|
|
|
255
297
|
*
|
|
256
298
|
*/
|
|
257
299
|
async deleteDomainsRaw(requestParameters: DomainsApiDeleteDomainsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
300
|
+
if (requestParameters['xLocale'] == null) {
|
|
301
|
+
throw new runtime.RequiredError(
|
|
302
|
+
'xLocale',
|
|
303
|
+
'Required parameter "xLocale" was null or undefined when calling deleteDomains().'
|
|
304
|
+
);
|
|
305
|
+
}
|
|
306
|
+
|
|
258
307
|
if (requestParameters['deleteDomainsInput'] == null) {
|
|
259
308
|
throw new runtime.RequiredError(
|
|
260
309
|
'deleteDomainsInput',
|
|
@@ -268,6 +317,10 @@ export class DomainsApi extends runtime.BaseAPI {
|
|
|
268
317
|
|
|
269
318
|
headerParameters['Content-Type'] = 'application/json';
|
|
270
319
|
|
|
320
|
+
if (requestParameters['xLocale'] != null) {
|
|
321
|
+
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
322
|
+
}
|
|
323
|
+
|
|
271
324
|
if (this.configuration && this.configuration.accessToken) {
|
|
272
325
|
const token = this.configuration.accessToken;
|
|
273
326
|
const tokenString = await token("bearer", []);
|
|
@@ -297,18 +350,38 @@ export class DomainsApi extends runtime.BaseAPI {
|
|
|
297
350
|
/**
|
|
298
351
|
*
|
|
299
352
|
*/
|
|
300
|
-
async
|
|
301
|
-
if (requestParameters['
|
|
353
|
+
async getAllDomainTransfersRaw(requestParameters: DomainsApiGetAllDomainTransfersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetAllDomainTransfers200Response>> {
|
|
354
|
+
if (requestParameters['xLocale'] == null) {
|
|
302
355
|
throw new runtime.RequiredError(
|
|
303
|
-
'
|
|
304
|
-
'Required parameter "
|
|
356
|
+
'xLocale',
|
|
357
|
+
'Required parameter "xLocale" was null or undefined when calling getAllDomainTransfers().'
|
|
305
358
|
);
|
|
306
359
|
}
|
|
307
360
|
|
|
308
361
|
const queryParameters: any = {};
|
|
309
362
|
|
|
363
|
+
if (requestParameters['filter'] != null) {
|
|
364
|
+
queryParameters['filter'] = requestParameters['filter'];
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
if (requestParameters['page'] != null) {
|
|
368
|
+
queryParameters['page'] = requestParameters['page'];
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
if (requestParameters['limit'] != null) {
|
|
372
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
if (requestParameters['sortBy'] != null) {
|
|
376
|
+
queryParameters['sortBy'] = requestParameters['sortBy'];
|
|
377
|
+
}
|
|
378
|
+
|
|
310
379
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
311
380
|
|
|
381
|
+
if (requestParameters['xLocale'] != null) {
|
|
382
|
+
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
383
|
+
}
|
|
384
|
+
|
|
312
385
|
if (this.configuration && this.configuration.accessToken) {
|
|
313
386
|
const token = this.configuration.accessToken;
|
|
314
387
|
const tokenString = await token("bearer", []);
|
|
@@ -318,47 +391,49 @@ export class DomainsApi extends runtime.BaseAPI {
|
|
|
318
391
|
}
|
|
319
392
|
}
|
|
320
393
|
const response = await this.request({
|
|
321
|
-
path: `/private/domains/
|
|
394
|
+
path: `/private/domains/transfers`,
|
|
322
395
|
method: 'GET',
|
|
323
396
|
headers: headerParameters,
|
|
324
397
|
query: queryParameters,
|
|
325
398
|
}, initOverrides);
|
|
326
399
|
|
|
327
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
400
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetAllDomainTransfers200ResponseFromJSON(jsonValue));
|
|
328
401
|
}
|
|
329
402
|
|
|
330
403
|
/**
|
|
331
404
|
*
|
|
332
405
|
*/
|
|
333
|
-
async
|
|
334
|
-
const response = await this.
|
|
406
|
+
async getAllDomainTransfers(requestParameters: DomainsApiGetAllDomainTransfersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAllDomainTransfers200Response> {
|
|
407
|
+
const response = await this.getAllDomainTransfersRaw(requestParameters, initOverrides);
|
|
335
408
|
return await response.value();
|
|
336
409
|
}
|
|
337
410
|
|
|
338
411
|
/**
|
|
339
412
|
*
|
|
340
413
|
*/
|
|
341
|
-
async
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
if (requestParameters['page'] != null) {
|
|
349
|
-
queryParameters['page'] = requestParameters['page'];
|
|
414
|
+
async getDomainRaw(requestParameters: DomainsApiGetDomainRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntersectionDomainDtoWithHijackerDtoWithAccountDto>> {
|
|
415
|
+
if (requestParameters['domainId'] == null) {
|
|
416
|
+
throw new runtime.RequiredError(
|
|
417
|
+
'domainId',
|
|
418
|
+
'Required parameter "domainId" was null or undefined when calling getDomain().'
|
|
419
|
+
);
|
|
350
420
|
}
|
|
351
421
|
|
|
352
|
-
if (requestParameters['
|
|
353
|
-
|
|
422
|
+
if (requestParameters['xLocale'] == null) {
|
|
423
|
+
throw new runtime.RequiredError(
|
|
424
|
+
'xLocale',
|
|
425
|
+
'Required parameter "xLocale" was null or undefined when calling getDomain().'
|
|
426
|
+
);
|
|
354
427
|
}
|
|
355
428
|
|
|
356
|
-
|
|
357
|
-
queryParameters['sortBy'] = requestParameters['sortBy'];
|
|
358
|
-
}
|
|
429
|
+
const queryParameters: any = {};
|
|
359
430
|
|
|
360
431
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
361
432
|
|
|
433
|
+
if (requestParameters['xLocale'] != null) {
|
|
434
|
+
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
435
|
+
}
|
|
436
|
+
|
|
362
437
|
if (this.configuration && this.configuration.accessToken) {
|
|
363
438
|
const token = this.configuration.accessToken;
|
|
364
439
|
const tokenString = await token("bearer", []);
|
|
@@ -368,20 +443,20 @@ export class DomainsApi extends runtime.BaseAPI {
|
|
|
368
443
|
}
|
|
369
444
|
}
|
|
370
445
|
const response = await this.request({
|
|
371
|
-
path: `/private/domains/
|
|
446
|
+
path: `/private/domains/{domainId}`.replace(`{${"domainId"}}`, encodeURIComponent(String(requestParameters['domainId']))),
|
|
372
447
|
method: 'GET',
|
|
373
448
|
headers: headerParameters,
|
|
374
449
|
query: queryParameters,
|
|
375
450
|
}, initOverrides);
|
|
376
451
|
|
|
377
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
452
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => IntersectionDomainDtoWithHijackerDtoWithAccountDtoFromJSON(jsonValue));
|
|
378
453
|
}
|
|
379
454
|
|
|
380
455
|
/**
|
|
381
456
|
*
|
|
382
457
|
*/
|
|
383
|
-
async
|
|
384
|
-
const response = await this.
|
|
458
|
+
async getDomain(requestParameters: DomainsApiGetDomainRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IntersectionDomainDtoWithHijackerDtoWithAccountDto> {
|
|
459
|
+
const response = await this.getDomainRaw(requestParameters, initOverrides);
|
|
385
460
|
return await response.value();
|
|
386
461
|
}
|
|
387
462
|
|
|
@@ -396,10 +471,21 @@ export class DomainsApi extends runtime.BaseAPI {
|
|
|
396
471
|
);
|
|
397
472
|
}
|
|
398
473
|
|
|
474
|
+
if (requestParameters['xLocale'] == null) {
|
|
475
|
+
throw new runtime.RequiredError(
|
|
476
|
+
'xLocale',
|
|
477
|
+
'Required parameter "xLocale" was null or undefined when calling getDomainTransfer().'
|
|
478
|
+
);
|
|
479
|
+
}
|
|
480
|
+
|
|
399
481
|
const queryParameters: any = {};
|
|
400
482
|
|
|
401
483
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
402
484
|
|
|
485
|
+
if (requestParameters['xLocale'] != null) {
|
|
486
|
+
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
487
|
+
}
|
|
488
|
+
|
|
403
489
|
if (this.configuration && this.configuration.accessToken) {
|
|
404
490
|
const token = this.configuration.accessToken;
|
|
405
491
|
const tokenString = await token("bearer", []);
|
|
@@ -430,19 +516,15 @@ export class DomainsApi extends runtime.BaseAPI {
|
|
|
430
516
|
*
|
|
431
517
|
*/
|
|
432
518
|
async listRaw(requestParameters: DomainsApiListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<List200Response>> {
|
|
433
|
-
if (requestParameters['
|
|
519
|
+
if (requestParameters['xLocale'] == null) {
|
|
434
520
|
throw new runtime.RequiredError(
|
|
435
|
-
'
|
|
436
|
-
'Required parameter "
|
|
521
|
+
'xLocale',
|
|
522
|
+
'Required parameter "xLocale" was null or undefined when calling list().'
|
|
437
523
|
);
|
|
438
524
|
}
|
|
439
525
|
|
|
440
526
|
const queryParameters: any = {};
|
|
441
527
|
|
|
442
|
-
if (requestParameters['locale'] != null) {
|
|
443
|
-
queryParameters['locale'] = requestParameters['locale'];
|
|
444
|
-
}
|
|
445
|
-
|
|
446
528
|
if (requestParameters['filter'] != null) {
|
|
447
529
|
queryParameters['filter'] = requestParameters['filter'];
|
|
448
530
|
}
|
|
@@ -461,6 +543,10 @@ export class DomainsApi extends runtime.BaseAPI {
|
|
|
461
543
|
|
|
462
544
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
463
545
|
|
|
546
|
+
if (requestParameters['xLocale'] != null) {
|
|
547
|
+
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
548
|
+
}
|
|
549
|
+
|
|
464
550
|
if (this.configuration && this.configuration.accessToken) {
|
|
465
551
|
const token = this.configuration.accessToken;
|
|
466
552
|
const tokenString = await token("bearer", []);
|
|
@@ -498,6 +584,13 @@ export class DomainsApi extends runtime.BaseAPI {
|
|
|
498
584
|
);
|
|
499
585
|
}
|
|
500
586
|
|
|
587
|
+
if (requestParameters['xLocale'] == null) {
|
|
588
|
+
throw new runtime.RequiredError(
|
|
589
|
+
'xLocale',
|
|
590
|
+
'Required parameter "xLocale" was null or undefined when calling update().'
|
|
591
|
+
);
|
|
592
|
+
}
|
|
593
|
+
|
|
501
594
|
if (requestParameters['updateDomainInput'] == null) {
|
|
502
595
|
throw new runtime.RequiredError(
|
|
503
596
|
'updateDomainInput',
|
|
@@ -511,6 +604,10 @@ export class DomainsApi extends runtime.BaseAPI {
|
|
|
511
604
|
|
|
512
605
|
headerParameters['Content-Type'] = 'application/json';
|
|
513
606
|
|
|
607
|
+
if (requestParameters['xLocale'] != null) {
|
|
608
|
+
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
609
|
+
}
|
|
610
|
+
|
|
514
611
|
if (this.configuration && this.configuration.accessToken) {
|
|
515
612
|
const token = this.configuration.accessToken;
|
|
516
613
|
const tokenString = await token("bearer", []);
|
|
@@ -549,6 +646,13 @@ export class DomainsApi extends runtime.BaseAPI {
|
|
|
549
646
|
);
|
|
550
647
|
}
|
|
551
648
|
|
|
649
|
+
if (requestParameters['xLocale'] == null) {
|
|
650
|
+
throw new runtime.RequiredError(
|
|
651
|
+
'xLocale',
|
|
652
|
+
'Required parameter "xLocale" was null or undefined when calling updateDomainTransferAuthCode().'
|
|
653
|
+
);
|
|
654
|
+
}
|
|
655
|
+
|
|
552
656
|
if (requestParameters['updateDomainTransferAuthCodeInput'] == null) {
|
|
553
657
|
throw new runtime.RequiredError(
|
|
554
658
|
'updateDomainTransferAuthCodeInput',
|
|
@@ -562,6 +666,10 @@ export class DomainsApi extends runtime.BaseAPI {
|
|
|
562
666
|
|
|
563
667
|
headerParameters['Content-Type'] = 'application/json';
|
|
564
668
|
|
|
669
|
+
if (requestParameters['xLocale'] != null) {
|
|
670
|
+
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
671
|
+
}
|
|
672
|
+
|
|
565
673
|
if (this.configuration && this.configuration.accessToken) {
|
|
566
674
|
const token = this.configuration.accessToken;
|
|
567
675
|
const tokenString = await token("bearer", []);
|
|
@@ -589,3 +697,84 @@ export class DomainsApi extends runtime.BaseAPI {
|
|
|
589
697
|
}
|
|
590
698
|
|
|
591
699
|
}
|
|
700
|
+
|
|
701
|
+
/**
|
|
702
|
+
* @export
|
|
703
|
+
*/
|
|
704
|
+
export const BatchImportXLocaleEnum = {
|
|
705
|
+
NL_NL: 'nl-nl',
|
|
706
|
+
EN_GB: 'en-gb'
|
|
707
|
+
} as const;
|
|
708
|
+
export type BatchImportXLocaleEnum = typeof BatchImportXLocaleEnum[keyof typeof BatchImportXLocaleEnum];
|
|
709
|
+
/**
|
|
710
|
+
* @export
|
|
711
|
+
*/
|
|
712
|
+
export const BatchUpdateXLocaleEnum = {
|
|
713
|
+
NL_NL: 'nl-nl',
|
|
714
|
+
EN_GB: 'en-gb'
|
|
715
|
+
} as const;
|
|
716
|
+
export type BatchUpdateXLocaleEnum = typeof BatchUpdateXLocaleEnum[keyof typeof BatchUpdateXLocaleEnum];
|
|
717
|
+
/**
|
|
718
|
+
* @export
|
|
719
|
+
*/
|
|
720
|
+
export const CheckDnsXLocaleEnum = {
|
|
721
|
+
NL_NL: 'nl-nl',
|
|
722
|
+
EN_GB: 'en-gb'
|
|
723
|
+
} as const;
|
|
724
|
+
export type CheckDnsXLocaleEnum = typeof CheckDnsXLocaleEnum[keyof typeof CheckDnsXLocaleEnum];
|
|
725
|
+
/**
|
|
726
|
+
* @export
|
|
727
|
+
*/
|
|
728
|
+
export const DeleteDomainsXLocaleEnum = {
|
|
729
|
+
NL_NL: 'nl-nl',
|
|
730
|
+
EN_GB: 'en-gb'
|
|
731
|
+
} as const;
|
|
732
|
+
export type DeleteDomainsXLocaleEnum = typeof DeleteDomainsXLocaleEnum[keyof typeof DeleteDomainsXLocaleEnum];
|
|
733
|
+
/**
|
|
734
|
+
* @export
|
|
735
|
+
*/
|
|
736
|
+
export const GetAllDomainTransfersXLocaleEnum = {
|
|
737
|
+
NL_NL: 'nl-nl',
|
|
738
|
+
EN_GB: 'en-gb'
|
|
739
|
+
} as const;
|
|
740
|
+
export type GetAllDomainTransfersXLocaleEnum = typeof GetAllDomainTransfersXLocaleEnum[keyof typeof GetAllDomainTransfersXLocaleEnum];
|
|
741
|
+
/**
|
|
742
|
+
* @export
|
|
743
|
+
*/
|
|
744
|
+
export const GetDomainXLocaleEnum = {
|
|
745
|
+
NL_NL: 'nl-nl',
|
|
746
|
+
EN_GB: 'en-gb'
|
|
747
|
+
} as const;
|
|
748
|
+
export type GetDomainXLocaleEnum = typeof GetDomainXLocaleEnum[keyof typeof GetDomainXLocaleEnum];
|
|
749
|
+
/**
|
|
750
|
+
* @export
|
|
751
|
+
*/
|
|
752
|
+
export const GetDomainTransferXLocaleEnum = {
|
|
753
|
+
NL_NL: 'nl-nl',
|
|
754
|
+
EN_GB: 'en-gb'
|
|
755
|
+
} as const;
|
|
756
|
+
export type GetDomainTransferXLocaleEnum = typeof GetDomainTransferXLocaleEnum[keyof typeof GetDomainTransferXLocaleEnum];
|
|
757
|
+
/**
|
|
758
|
+
* @export
|
|
759
|
+
*/
|
|
760
|
+
export const ListXLocaleEnum = {
|
|
761
|
+
NL_NL: 'nl-nl',
|
|
762
|
+
EN_GB: 'en-gb'
|
|
763
|
+
} as const;
|
|
764
|
+
export type ListXLocaleEnum = typeof ListXLocaleEnum[keyof typeof ListXLocaleEnum];
|
|
765
|
+
/**
|
|
766
|
+
* @export
|
|
767
|
+
*/
|
|
768
|
+
export const UpdateXLocaleEnum = {
|
|
769
|
+
NL_NL: 'nl-nl',
|
|
770
|
+
EN_GB: 'en-gb'
|
|
771
|
+
} as const;
|
|
772
|
+
export type UpdateXLocaleEnum = typeof UpdateXLocaleEnum[keyof typeof UpdateXLocaleEnum];
|
|
773
|
+
/**
|
|
774
|
+
* @export
|
|
775
|
+
*/
|
|
776
|
+
export const UpdateDomainTransferAuthCodeXLocaleEnum = {
|
|
777
|
+
NL_NL: 'nl-nl',
|
|
778
|
+
EN_GB: 'en-gb'
|
|
779
|
+
} as const;
|
|
780
|
+
export type UpdateDomainTransferAuthCodeXLocaleEnum = typeof UpdateDomainTransferAuthCodeXLocaleEnum[keyof typeof UpdateDomainTransferAuthCodeXLocaleEnum];
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
|
|
34
34
|
export interface DomainsPublicApiGetDomainSalesInformationRequest {
|
|
35
35
|
domainName: string;
|
|
36
|
-
|
|
36
|
+
xLocale: GetDomainSalesInformationXLocaleEnum;
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
/**
|
|
@@ -52,21 +52,21 @@ export class DomainsPublicApi extends runtime.BaseAPI {
|
|
|
52
52
|
);
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
-
if (requestParameters['
|
|
55
|
+
if (requestParameters['xLocale'] == null) {
|
|
56
56
|
throw new runtime.RequiredError(
|
|
57
|
-
'
|
|
58
|
-
'Required parameter "
|
|
57
|
+
'xLocale',
|
|
58
|
+
'Required parameter "xLocale" was null or undefined when calling getDomainSalesInformation().'
|
|
59
59
|
);
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
const queryParameters: any = {};
|
|
63
63
|
|
|
64
|
-
if (requestParameters['locale'] != null) {
|
|
65
|
-
queryParameters['locale'] = requestParameters['locale'];
|
|
66
|
-
}
|
|
67
|
-
|
|
68
64
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
69
65
|
|
|
66
|
+
if (requestParameters['xLocale'] != null) {
|
|
67
|
+
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
70
|
const response = await this.request({
|
|
71
71
|
path: `/domains/by-name/{domainName}/sales-information`.replace(`{${"domainName"}}`, encodeURIComponent(String(requestParameters['domainName']))),
|
|
72
72
|
method: 'GET',
|
|
@@ -86,3 +86,12 @@ export class DomainsPublicApi extends runtime.BaseAPI {
|
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
}
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* @export
|
|
92
|
+
*/
|
|
93
|
+
export const GetDomainSalesInformationXLocaleEnum = {
|
|
94
|
+
NL_NL: 'nl-nl',
|
|
95
|
+
EN_GB: 'en-gb'
|
|
96
|
+
} as const;
|
|
97
|
+
export type GetDomainSalesInformationXLocaleEnum = typeof GetDomainSalesInformationXLocaleEnum[keyof typeof GetDomainSalesInformationXLocaleEnum];
|