@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/DomainsApi.ts
CHANGED
|
@@ -56,28 +56,23 @@ import {
|
|
|
56
56
|
} from '../models/index';
|
|
57
57
|
|
|
58
58
|
export interface DomainsApiBatchImportRequest {
|
|
59
|
-
xLocale: BatchImportXLocaleEnum;
|
|
60
59
|
file?: Blob;
|
|
61
60
|
domains?: Array<string>;
|
|
62
61
|
}
|
|
63
62
|
|
|
64
63
|
export interface DomainsApiBatchUpdateRequest {
|
|
65
|
-
xLocale: BatchUpdateXLocaleEnum;
|
|
66
64
|
batchUpdateDomainsInput: BatchUpdateDomainsInput;
|
|
67
65
|
}
|
|
68
66
|
|
|
69
67
|
export interface DomainsApiCheckDnsRequest {
|
|
70
68
|
domainId: string;
|
|
71
|
-
xLocale: CheckDnsXLocaleEnum;
|
|
72
69
|
}
|
|
73
70
|
|
|
74
71
|
export interface DomainsApiDeleteDomainsRequest {
|
|
75
|
-
xLocale: DeleteDomainsXLocaleEnum;
|
|
76
72
|
deleteDomainsInput: DeleteDomainsInput;
|
|
77
73
|
}
|
|
78
74
|
|
|
79
75
|
export interface DomainsApiGetAllDomainTransfersRequest {
|
|
80
|
-
xLocale: GetAllDomainTransfersXLocaleEnum;
|
|
81
76
|
filter?: object;
|
|
82
77
|
page?: number;
|
|
83
78
|
limit?: number;
|
|
@@ -86,16 +81,13 @@ export interface DomainsApiGetAllDomainTransfersRequest {
|
|
|
86
81
|
|
|
87
82
|
export interface DomainsApiGetDomainRequest {
|
|
88
83
|
domainId: string;
|
|
89
|
-
xLocale: GetDomainXLocaleEnum;
|
|
90
84
|
}
|
|
91
85
|
|
|
92
86
|
export interface DomainsApiGetDomainTransferRequest {
|
|
93
87
|
transferId: string;
|
|
94
|
-
xLocale: GetDomainTransferXLocaleEnum;
|
|
95
88
|
}
|
|
96
89
|
|
|
97
90
|
export interface DomainsApiListRequest {
|
|
98
|
-
xLocale: ListXLocaleEnum;
|
|
99
91
|
filter?: object;
|
|
100
92
|
page?: number;
|
|
101
93
|
limit?: number;
|
|
@@ -104,13 +96,11 @@ export interface DomainsApiListRequest {
|
|
|
104
96
|
|
|
105
97
|
export interface DomainsApiUpdateRequest {
|
|
106
98
|
domainId: string;
|
|
107
|
-
xLocale: UpdateXLocaleEnum;
|
|
108
99
|
updateDomainInput: UpdateDomainInput;
|
|
109
100
|
}
|
|
110
101
|
|
|
111
102
|
export interface DomainsApiUpdateDomainTransferAuthCodeRequest {
|
|
112
103
|
transferId: string;
|
|
113
|
-
xLocale: UpdateDomainTransferAuthCodeXLocaleEnum;
|
|
114
104
|
updateDomainTransferAuthCodeInput: UpdateDomainTransferAuthCodeInput;
|
|
115
105
|
}
|
|
116
106
|
|
|
@@ -123,21 +113,10 @@ export class DomainsApi extends runtime.BaseAPI {
|
|
|
123
113
|
*
|
|
124
114
|
*/
|
|
125
115
|
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
|
-
|
|
133
116
|
const queryParameters: any = {};
|
|
134
117
|
|
|
135
118
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
136
119
|
|
|
137
|
-
if (requestParameters['xLocale'] != null) {
|
|
138
|
-
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
139
|
-
}
|
|
140
|
-
|
|
141
120
|
if (this.configuration && this.configuration.accessToken) {
|
|
142
121
|
const token = this.configuration.accessToken;
|
|
143
122
|
const tokenString = await token("bearer", []);
|
|
@@ -184,7 +163,7 @@ export class DomainsApi extends runtime.BaseAPI {
|
|
|
184
163
|
/**
|
|
185
164
|
*
|
|
186
165
|
*/
|
|
187
|
-
async batchImport(requestParameters: DomainsApiBatchImportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
166
|
+
async batchImport(requestParameters: DomainsApiBatchImportRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
188
167
|
await this.batchImportRaw(requestParameters, initOverrides);
|
|
189
168
|
}
|
|
190
169
|
|
|
@@ -192,13 +171,6 @@ export class DomainsApi extends runtime.BaseAPI {
|
|
|
192
171
|
*
|
|
193
172
|
*/
|
|
194
173
|
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
|
-
|
|
202
174
|
if (requestParameters['batchUpdateDomainsInput'] == null) {
|
|
203
175
|
throw new runtime.RequiredError(
|
|
204
176
|
'batchUpdateDomainsInput',
|
|
@@ -212,10 +184,6 @@ export class DomainsApi extends runtime.BaseAPI {
|
|
|
212
184
|
|
|
213
185
|
headerParameters['Content-Type'] = 'application/json';
|
|
214
186
|
|
|
215
|
-
if (requestParameters['xLocale'] != null) {
|
|
216
|
-
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
217
|
-
}
|
|
218
|
-
|
|
219
187
|
if (this.configuration && this.configuration.accessToken) {
|
|
220
188
|
const token = this.configuration.accessToken;
|
|
221
189
|
const tokenString = await token("bearer", []);
|
|
@@ -253,21 +221,10 @@ export class DomainsApi extends runtime.BaseAPI {
|
|
|
253
221
|
);
|
|
254
222
|
}
|
|
255
223
|
|
|
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
|
-
|
|
263
224
|
const queryParameters: any = {};
|
|
264
225
|
|
|
265
226
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
266
227
|
|
|
267
|
-
if (requestParameters['xLocale'] != null) {
|
|
268
|
-
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
269
|
-
}
|
|
270
|
-
|
|
271
228
|
if (this.configuration && this.configuration.accessToken) {
|
|
272
229
|
const token = this.configuration.accessToken;
|
|
273
230
|
const tokenString = await token("bearer", []);
|
|
@@ -297,13 +254,6 @@ export class DomainsApi extends runtime.BaseAPI {
|
|
|
297
254
|
*
|
|
298
255
|
*/
|
|
299
256
|
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
|
-
|
|
307
257
|
if (requestParameters['deleteDomainsInput'] == null) {
|
|
308
258
|
throw new runtime.RequiredError(
|
|
309
259
|
'deleteDomainsInput',
|
|
@@ -317,10 +267,6 @@ export class DomainsApi extends runtime.BaseAPI {
|
|
|
317
267
|
|
|
318
268
|
headerParameters['Content-Type'] = 'application/json';
|
|
319
269
|
|
|
320
|
-
if (requestParameters['xLocale'] != null) {
|
|
321
|
-
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
322
|
-
}
|
|
323
|
-
|
|
324
270
|
if (this.configuration && this.configuration.accessToken) {
|
|
325
271
|
const token = this.configuration.accessToken;
|
|
326
272
|
const tokenString = await token("bearer", []);
|
|
@@ -351,13 +297,6 @@ export class DomainsApi extends runtime.BaseAPI {
|
|
|
351
297
|
*
|
|
352
298
|
*/
|
|
353
299
|
async getAllDomainTransfersRaw(requestParameters: DomainsApiGetAllDomainTransfersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetAllDomainTransfers200Response>> {
|
|
354
|
-
if (requestParameters['xLocale'] == null) {
|
|
355
|
-
throw new runtime.RequiredError(
|
|
356
|
-
'xLocale',
|
|
357
|
-
'Required parameter "xLocale" was null or undefined when calling getAllDomainTransfers().'
|
|
358
|
-
);
|
|
359
|
-
}
|
|
360
|
-
|
|
361
300
|
const queryParameters: any = {};
|
|
362
301
|
|
|
363
302
|
if (requestParameters['filter'] != null) {
|
|
@@ -378,10 +317,6 @@ export class DomainsApi extends runtime.BaseAPI {
|
|
|
378
317
|
|
|
379
318
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
380
319
|
|
|
381
|
-
if (requestParameters['xLocale'] != null) {
|
|
382
|
-
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
383
|
-
}
|
|
384
|
-
|
|
385
320
|
if (this.configuration && this.configuration.accessToken) {
|
|
386
321
|
const token = this.configuration.accessToken;
|
|
387
322
|
const tokenString = await token("bearer", []);
|
|
@@ -403,7 +338,7 @@ export class DomainsApi extends runtime.BaseAPI {
|
|
|
403
338
|
/**
|
|
404
339
|
*
|
|
405
340
|
*/
|
|
406
|
-
async getAllDomainTransfers(requestParameters: DomainsApiGetAllDomainTransfersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAllDomainTransfers200Response> {
|
|
341
|
+
async getAllDomainTransfers(requestParameters: DomainsApiGetAllDomainTransfersRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAllDomainTransfers200Response> {
|
|
407
342
|
const response = await this.getAllDomainTransfersRaw(requestParameters, initOverrides);
|
|
408
343
|
return await response.value();
|
|
409
344
|
}
|
|
@@ -419,21 +354,10 @@ export class DomainsApi extends runtime.BaseAPI {
|
|
|
419
354
|
);
|
|
420
355
|
}
|
|
421
356
|
|
|
422
|
-
if (requestParameters['xLocale'] == null) {
|
|
423
|
-
throw new runtime.RequiredError(
|
|
424
|
-
'xLocale',
|
|
425
|
-
'Required parameter "xLocale" was null or undefined when calling getDomain().'
|
|
426
|
-
);
|
|
427
|
-
}
|
|
428
|
-
|
|
429
357
|
const queryParameters: any = {};
|
|
430
358
|
|
|
431
359
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
432
360
|
|
|
433
|
-
if (requestParameters['xLocale'] != null) {
|
|
434
|
-
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
435
|
-
}
|
|
436
|
-
|
|
437
361
|
if (this.configuration && this.configuration.accessToken) {
|
|
438
362
|
const token = this.configuration.accessToken;
|
|
439
363
|
const tokenString = await token("bearer", []);
|
|
@@ -471,21 +395,10 @@ export class DomainsApi extends runtime.BaseAPI {
|
|
|
471
395
|
);
|
|
472
396
|
}
|
|
473
397
|
|
|
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
|
-
|
|
481
398
|
const queryParameters: any = {};
|
|
482
399
|
|
|
483
400
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
484
401
|
|
|
485
|
-
if (requestParameters['xLocale'] != null) {
|
|
486
|
-
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
487
|
-
}
|
|
488
|
-
|
|
489
402
|
if (this.configuration && this.configuration.accessToken) {
|
|
490
403
|
const token = this.configuration.accessToken;
|
|
491
404
|
const tokenString = await token("bearer", []);
|
|
@@ -516,13 +429,6 @@ export class DomainsApi extends runtime.BaseAPI {
|
|
|
516
429
|
*
|
|
517
430
|
*/
|
|
518
431
|
async listRaw(requestParameters: DomainsApiListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<List200Response>> {
|
|
519
|
-
if (requestParameters['xLocale'] == null) {
|
|
520
|
-
throw new runtime.RequiredError(
|
|
521
|
-
'xLocale',
|
|
522
|
-
'Required parameter "xLocale" was null or undefined when calling list().'
|
|
523
|
-
);
|
|
524
|
-
}
|
|
525
|
-
|
|
526
432
|
const queryParameters: any = {};
|
|
527
433
|
|
|
528
434
|
if (requestParameters['filter'] != null) {
|
|
@@ -543,10 +449,6 @@ export class DomainsApi extends runtime.BaseAPI {
|
|
|
543
449
|
|
|
544
450
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
545
451
|
|
|
546
|
-
if (requestParameters['xLocale'] != null) {
|
|
547
|
-
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
548
|
-
}
|
|
549
|
-
|
|
550
452
|
if (this.configuration && this.configuration.accessToken) {
|
|
551
453
|
const token = this.configuration.accessToken;
|
|
552
454
|
const tokenString = await token("bearer", []);
|
|
@@ -568,7 +470,7 @@ export class DomainsApi extends runtime.BaseAPI {
|
|
|
568
470
|
/**
|
|
569
471
|
*
|
|
570
472
|
*/
|
|
571
|
-
async list(requestParameters: DomainsApiListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<List200Response> {
|
|
473
|
+
async list(requestParameters: DomainsApiListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<List200Response> {
|
|
572
474
|
const response = await this.listRaw(requestParameters, initOverrides);
|
|
573
475
|
return await response.value();
|
|
574
476
|
}
|
|
@@ -584,13 +486,6 @@ export class DomainsApi extends runtime.BaseAPI {
|
|
|
584
486
|
);
|
|
585
487
|
}
|
|
586
488
|
|
|
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
|
-
|
|
594
489
|
if (requestParameters['updateDomainInput'] == null) {
|
|
595
490
|
throw new runtime.RequiredError(
|
|
596
491
|
'updateDomainInput',
|
|
@@ -604,10 +499,6 @@ export class DomainsApi extends runtime.BaseAPI {
|
|
|
604
499
|
|
|
605
500
|
headerParameters['Content-Type'] = 'application/json';
|
|
606
501
|
|
|
607
|
-
if (requestParameters['xLocale'] != null) {
|
|
608
|
-
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
609
|
-
}
|
|
610
|
-
|
|
611
502
|
if (this.configuration && this.configuration.accessToken) {
|
|
612
503
|
const token = this.configuration.accessToken;
|
|
613
504
|
const tokenString = await token("bearer", []);
|
|
@@ -646,13 +537,6 @@ export class DomainsApi extends runtime.BaseAPI {
|
|
|
646
537
|
);
|
|
647
538
|
}
|
|
648
539
|
|
|
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
|
-
|
|
656
540
|
if (requestParameters['updateDomainTransferAuthCodeInput'] == null) {
|
|
657
541
|
throw new runtime.RequiredError(
|
|
658
542
|
'updateDomainTransferAuthCodeInput',
|
|
@@ -666,10 +550,6 @@ export class DomainsApi extends runtime.BaseAPI {
|
|
|
666
550
|
|
|
667
551
|
headerParameters['Content-Type'] = 'application/json';
|
|
668
552
|
|
|
669
|
-
if (requestParameters['xLocale'] != null) {
|
|
670
|
-
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
671
|
-
}
|
|
672
|
-
|
|
673
553
|
if (this.configuration && this.configuration.accessToken) {
|
|
674
554
|
const token = this.configuration.accessToken;
|
|
675
555
|
const tokenString = await token("bearer", []);
|
|
@@ -697,84 +577,3 @@ export class DomainsApi extends runtime.BaseAPI {
|
|
|
697
577
|
}
|
|
698
578
|
|
|
699
579
|
}
|
|
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,6 @@ import {
|
|
|
33
33
|
|
|
34
34
|
export interface DomainsPublicApiGetDomainSalesInformationRequest {
|
|
35
35
|
domainName: string;
|
|
36
|
-
xLocale: GetDomainSalesInformationXLocaleEnum;
|
|
37
36
|
}
|
|
38
37
|
|
|
39
38
|
/**
|
|
@@ -52,21 +51,10 @@ export class DomainsPublicApi extends runtime.BaseAPI {
|
|
|
52
51
|
);
|
|
53
52
|
}
|
|
54
53
|
|
|
55
|
-
if (requestParameters['xLocale'] == null) {
|
|
56
|
-
throw new runtime.RequiredError(
|
|
57
|
-
'xLocale',
|
|
58
|
-
'Required parameter "xLocale" was null or undefined when calling getDomainSalesInformation().'
|
|
59
|
-
);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
54
|
const queryParameters: any = {};
|
|
63
55
|
|
|
64
56
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
65
57
|
|
|
66
|
-
if (requestParameters['xLocale'] != null) {
|
|
67
|
-
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
68
|
-
}
|
|
69
|
-
|
|
70
58
|
const response = await this.request({
|
|
71
59
|
path: `/domains/by-name/{domainName}/sales-information`.replace(`{${"domainName"}}`, encodeURIComponent(String(requestParameters['domainName']))),
|
|
72
60
|
method: 'GET',
|
|
@@ -86,12 +74,3 @@ export class DomainsPublicApi extends runtime.BaseAPI {
|
|
|
86
74
|
}
|
|
87
75
|
|
|
88
76
|
}
|
|
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];
|
package/src/apis/LeadsApi.ts
CHANGED
|
@@ -45,32 +45,23 @@ import {
|
|
|
45
45
|
|
|
46
46
|
export interface LeadsApiAcceptLeadOfferRequest {
|
|
47
47
|
leadId: string;
|
|
48
|
-
xLocale: AcceptLeadOfferXLocaleEnum;
|
|
49
48
|
}
|
|
50
49
|
|
|
51
50
|
export interface LeadsApiCreateMessageRequest {
|
|
52
51
|
leadId: string;
|
|
53
|
-
xLocale: CreateMessageXLocaleEnum;
|
|
54
52
|
createLeadMessageInput: CreateLeadMessageInput;
|
|
55
53
|
}
|
|
56
54
|
|
|
57
55
|
export interface LeadsApiGetLeadRequest {
|
|
58
56
|
leadId: string;
|
|
59
|
-
xLocale: GetLeadXLocaleEnum;
|
|
60
57
|
}
|
|
61
58
|
|
|
62
59
|
export interface LeadsApiGetMessagesRequest {
|
|
63
60
|
leadId: string;
|
|
64
|
-
xLocale: GetMessagesXLocaleEnum;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
export interface LeadsApiListLeadsRequest {
|
|
68
|
-
xLocale: ListLeadsXLocaleEnum;
|
|
69
61
|
}
|
|
70
62
|
|
|
71
63
|
export interface LeadsApiPutOfferRequest {
|
|
72
64
|
leadId: string;
|
|
73
|
-
xLocale: PutOfferXLocaleEnum;
|
|
74
65
|
putLeadOfferInput: PutLeadOfferInput;
|
|
75
66
|
}
|
|
76
67
|
|
|
@@ -90,21 +81,10 @@ export class LeadsApi extends runtime.BaseAPI {
|
|
|
90
81
|
);
|
|
91
82
|
}
|
|
92
83
|
|
|
93
|
-
if (requestParameters['xLocale'] == null) {
|
|
94
|
-
throw new runtime.RequiredError(
|
|
95
|
-
'xLocale',
|
|
96
|
-
'Required parameter "xLocale" was null or undefined when calling acceptLeadOffer().'
|
|
97
|
-
);
|
|
98
|
-
}
|
|
99
|
-
|
|
100
84
|
const queryParameters: any = {};
|
|
101
85
|
|
|
102
86
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
103
87
|
|
|
104
|
-
if (requestParameters['xLocale'] != null) {
|
|
105
|
-
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
106
|
-
}
|
|
107
|
-
|
|
108
88
|
if (this.configuration && this.configuration.accessToken) {
|
|
109
89
|
const token = this.configuration.accessToken;
|
|
110
90
|
const tokenString = await token("bearer", []);
|
|
@@ -141,13 +121,6 @@ export class LeadsApi extends runtime.BaseAPI {
|
|
|
141
121
|
);
|
|
142
122
|
}
|
|
143
123
|
|
|
144
|
-
if (requestParameters['xLocale'] == null) {
|
|
145
|
-
throw new runtime.RequiredError(
|
|
146
|
-
'xLocale',
|
|
147
|
-
'Required parameter "xLocale" was null or undefined when calling createMessage().'
|
|
148
|
-
);
|
|
149
|
-
}
|
|
150
|
-
|
|
151
124
|
if (requestParameters['createLeadMessageInput'] == null) {
|
|
152
125
|
throw new runtime.RequiredError(
|
|
153
126
|
'createLeadMessageInput',
|
|
@@ -161,10 +134,6 @@ export class LeadsApi extends runtime.BaseAPI {
|
|
|
161
134
|
|
|
162
135
|
headerParameters['Content-Type'] = 'application/json';
|
|
163
136
|
|
|
164
|
-
if (requestParameters['xLocale'] != null) {
|
|
165
|
-
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
166
|
-
}
|
|
167
|
-
|
|
168
137
|
if (this.configuration && this.configuration.accessToken) {
|
|
169
138
|
const token = this.configuration.accessToken;
|
|
170
139
|
const tokenString = await token("bearer", []);
|
|
@@ -203,21 +172,10 @@ export class LeadsApi extends runtime.BaseAPI {
|
|
|
203
172
|
);
|
|
204
173
|
}
|
|
205
174
|
|
|
206
|
-
if (requestParameters['xLocale'] == null) {
|
|
207
|
-
throw new runtime.RequiredError(
|
|
208
|
-
'xLocale',
|
|
209
|
-
'Required parameter "xLocale" was null or undefined when calling getLead().'
|
|
210
|
-
);
|
|
211
|
-
}
|
|
212
|
-
|
|
213
175
|
const queryParameters: any = {};
|
|
214
176
|
|
|
215
177
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
216
178
|
|
|
217
|
-
if (requestParameters['xLocale'] != null) {
|
|
218
|
-
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
219
|
-
}
|
|
220
|
-
|
|
221
179
|
if (this.configuration && this.configuration.accessToken) {
|
|
222
180
|
const token = this.configuration.accessToken;
|
|
223
181
|
const tokenString = await token("bearer", []);
|
|
@@ -255,21 +213,10 @@ export class LeadsApi extends runtime.BaseAPI {
|
|
|
255
213
|
);
|
|
256
214
|
}
|
|
257
215
|
|
|
258
|
-
if (requestParameters['xLocale'] == null) {
|
|
259
|
-
throw new runtime.RequiredError(
|
|
260
|
-
'xLocale',
|
|
261
|
-
'Required parameter "xLocale" was null or undefined when calling getMessages().'
|
|
262
|
-
);
|
|
263
|
-
}
|
|
264
|
-
|
|
265
216
|
const queryParameters: any = {};
|
|
266
217
|
|
|
267
218
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
268
219
|
|
|
269
|
-
if (requestParameters['xLocale'] != null) {
|
|
270
|
-
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
271
|
-
}
|
|
272
|
-
|
|
273
220
|
if (this.configuration && this.configuration.accessToken) {
|
|
274
221
|
const token = this.configuration.accessToken;
|
|
275
222
|
const tokenString = await token("bearer", []);
|
|
@@ -299,22 +246,11 @@ export class LeadsApi extends runtime.BaseAPI {
|
|
|
299
246
|
/**
|
|
300
247
|
*
|
|
301
248
|
*/
|
|
302
|
-
async listLeadsRaw(
|
|
303
|
-
if (requestParameters['xLocale'] == null) {
|
|
304
|
-
throw new runtime.RequiredError(
|
|
305
|
-
'xLocale',
|
|
306
|
-
'Required parameter "xLocale" was null or undefined when calling listLeads().'
|
|
307
|
-
);
|
|
308
|
-
}
|
|
309
|
-
|
|
249
|
+
async listLeadsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<IntersectionLeadDtoWithListFieldsDto>>> {
|
|
310
250
|
const queryParameters: any = {};
|
|
311
251
|
|
|
312
252
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
313
253
|
|
|
314
|
-
if (requestParameters['xLocale'] != null) {
|
|
315
|
-
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
316
|
-
}
|
|
317
|
-
|
|
318
254
|
if (this.configuration && this.configuration.accessToken) {
|
|
319
255
|
const token = this.configuration.accessToken;
|
|
320
256
|
const tokenString = await token("bearer", []);
|
|
@@ -336,8 +272,8 @@ export class LeadsApi extends runtime.BaseAPI {
|
|
|
336
272
|
/**
|
|
337
273
|
*
|
|
338
274
|
*/
|
|
339
|
-
async listLeads(
|
|
340
|
-
const response = await this.listLeadsRaw(
|
|
275
|
+
async listLeads(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<IntersectionLeadDtoWithListFieldsDto>> {
|
|
276
|
+
const response = await this.listLeadsRaw(initOverrides);
|
|
341
277
|
return await response.value();
|
|
342
278
|
}
|
|
343
279
|
|
|
@@ -352,13 +288,6 @@ export class LeadsApi extends runtime.BaseAPI {
|
|
|
352
288
|
);
|
|
353
289
|
}
|
|
354
290
|
|
|
355
|
-
if (requestParameters['xLocale'] == null) {
|
|
356
|
-
throw new runtime.RequiredError(
|
|
357
|
-
'xLocale',
|
|
358
|
-
'Required parameter "xLocale" was null or undefined when calling putOffer().'
|
|
359
|
-
);
|
|
360
|
-
}
|
|
361
|
-
|
|
362
291
|
if (requestParameters['putLeadOfferInput'] == null) {
|
|
363
292
|
throw new runtime.RequiredError(
|
|
364
293
|
'putLeadOfferInput',
|
|
@@ -372,10 +301,6 @@ export class LeadsApi extends runtime.BaseAPI {
|
|
|
372
301
|
|
|
373
302
|
headerParameters['Content-Type'] = 'application/json';
|
|
374
303
|
|
|
375
|
-
if (requestParameters['xLocale'] != null) {
|
|
376
|
-
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
377
|
-
}
|
|
378
|
-
|
|
379
304
|
if (this.configuration && this.configuration.accessToken) {
|
|
380
305
|
const token = this.configuration.accessToken;
|
|
381
306
|
const tokenString = await token("bearer", []);
|
|
@@ -403,52 +328,3 @@ export class LeadsApi extends runtime.BaseAPI {
|
|
|
403
328
|
}
|
|
404
329
|
|
|
405
330
|
}
|
|
406
|
-
|
|
407
|
-
/**
|
|
408
|
-
* @export
|
|
409
|
-
*/
|
|
410
|
-
export const AcceptLeadOfferXLocaleEnum = {
|
|
411
|
-
NL_NL: 'nl-nl',
|
|
412
|
-
EN_GB: 'en-gb'
|
|
413
|
-
} as const;
|
|
414
|
-
export type AcceptLeadOfferXLocaleEnum = typeof AcceptLeadOfferXLocaleEnum[keyof typeof AcceptLeadOfferXLocaleEnum];
|
|
415
|
-
/**
|
|
416
|
-
* @export
|
|
417
|
-
*/
|
|
418
|
-
export const CreateMessageXLocaleEnum = {
|
|
419
|
-
NL_NL: 'nl-nl',
|
|
420
|
-
EN_GB: 'en-gb'
|
|
421
|
-
} as const;
|
|
422
|
-
export type CreateMessageXLocaleEnum = typeof CreateMessageXLocaleEnum[keyof typeof CreateMessageXLocaleEnum];
|
|
423
|
-
/**
|
|
424
|
-
* @export
|
|
425
|
-
*/
|
|
426
|
-
export const GetLeadXLocaleEnum = {
|
|
427
|
-
NL_NL: 'nl-nl',
|
|
428
|
-
EN_GB: 'en-gb'
|
|
429
|
-
} as const;
|
|
430
|
-
export type GetLeadXLocaleEnum = typeof GetLeadXLocaleEnum[keyof typeof GetLeadXLocaleEnum];
|
|
431
|
-
/**
|
|
432
|
-
* @export
|
|
433
|
-
*/
|
|
434
|
-
export const GetMessagesXLocaleEnum = {
|
|
435
|
-
NL_NL: 'nl-nl',
|
|
436
|
-
EN_GB: 'en-gb'
|
|
437
|
-
} as const;
|
|
438
|
-
export type GetMessagesXLocaleEnum = typeof GetMessagesXLocaleEnum[keyof typeof GetMessagesXLocaleEnum];
|
|
439
|
-
/**
|
|
440
|
-
* @export
|
|
441
|
-
*/
|
|
442
|
-
export const ListLeadsXLocaleEnum = {
|
|
443
|
-
NL_NL: 'nl-nl',
|
|
444
|
-
EN_GB: 'en-gb'
|
|
445
|
-
} as const;
|
|
446
|
-
export type ListLeadsXLocaleEnum = typeof ListLeadsXLocaleEnum[keyof typeof ListLeadsXLocaleEnum];
|
|
447
|
-
/**
|
|
448
|
-
* @export
|
|
449
|
-
*/
|
|
450
|
-
export const PutOfferXLocaleEnum = {
|
|
451
|
-
NL_NL: 'nl-nl',
|
|
452
|
-
EN_GB: 'en-gb'
|
|
453
|
-
} as const;
|
|
454
|
-
export type PutOfferXLocaleEnum = typeof PutOfferXLocaleEnum[keyof typeof PutOfferXLocaleEnum];
|