@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/dist/apis/DomainsApi.js
CHANGED
|
@@ -64,7 +64,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
64
64
|
}
|
|
65
65
|
};
|
|
66
66
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
67
|
-
exports.
|
|
67
|
+
exports.DomainsApi = void 0;
|
|
68
68
|
var runtime = require("../runtime");
|
|
69
69
|
var index_1 = require("../models/index");
|
|
70
70
|
/**
|
|
@@ -84,14 +84,8 @@ var DomainsApi = /** @class */ (function (_super) {
|
|
|
84
84
|
return __generator(this, function (_a) {
|
|
85
85
|
switch (_a.label) {
|
|
86
86
|
case 0:
|
|
87
|
-
if (requestParameters['xLocale'] == null) {
|
|
88
|
-
throw new runtime.RequiredError('xLocale', 'Required parameter "xLocale" was null or undefined when calling batchImport().');
|
|
89
|
-
}
|
|
90
87
|
queryParameters = {};
|
|
91
88
|
headerParameters = {};
|
|
92
|
-
if (requestParameters['xLocale'] != null) {
|
|
93
|
-
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
94
|
-
}
|
|
95
89
|
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
96
90
|
token = this.configuration.accessToken;
|
|
97
91
|
return [4 /*yield*/, token("bearer", [])];
|
|
@@ -138,8 +132,9 @@ var DomainsApi = /** @class */ (function (_super) {
|
|
|
138
132
|
/**
|
|
139
133
|
*
|
|
140
134
|
*/
|
|
141
|
-
DomainsApi.prototype.batchImport = function (
|
|
142
|
-
return __awaiter(this,
|
|
135
|
+
DomainsApi.prototype.batchImport = function () {
|
|
136
|
+
return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
|
|
137
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
143
138
|
return __generator(this, function (_a) {
|
|
144
139
|
switch (_a.label) {
|
|
145
140
|
case 0: return [4 /*yield*/, this.batchImportRaw(requestParameters, initOverrides)];
|
|
@@ -159,18 +154,12 @@ var DomainsApi = /** @class */ (function (_super) {
|
|
|
159
154
|
return __generator(this, function (_a) {
|
|
160
155
|
switch (_a.label) {
|
|
161
156
|
case 0:
|
|
162
|
-
if (requestParameters['xLocale'] == null) {
|
|
163
|
-
throw new runtime.RequiredError('xLocale', 'Required parameter "xLocale" was null or undefined when calling batchUpdate().');
|
|
164
|
-
}
|
|
165
157
|
if (requestParameters['batchUpdateDomainsInput'] == null) {
|
|
166
158
|
throw new runtime.RequiredError('batchUpdateDomainsInput', 'Required parameter "batchUpdateDomainsInput" was null or undefined when calling batchUpdate().');
|
|
167
159
|
}
|
|
168
160
|
queryParameters = {};
|
|
169
161
|
headerParameters = {};
|
|
170
162
|
headerParameters['Content-Type'] = 'application/json';
|
|
171
|
-
if (requestParameters['xLocale'] != null) {
|
|
172
|
-
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
173
|
-
}
|
|
174
163
|
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
175
164
|
token = this.configuration.accessToken;
|
|
176
165
|
return [4 /*yield*/, token("bearer", [])];
|
|
@@ -221,14 +210,8 @@ var DomainsApi = /** @class */ (function (_super) {
|
|
|
221
210
|
if (requestParameters['domainId'] == null) {
|
|
222
211
|
throw new runtime.RequiredError('domainId', 'Required parameter "domainId" was null or undefined when calling checkDns().');
|
|
223
212
|
}
|
|
224
|
-
if (requestParameters['xLocale'] == null) {
|
|
225
|
-
throw new runtime.RequiredError('xLocale', 'Required parameter "xLocale" was null or undefined when calling checkDns().');
|
|
226
|
-
}
|
|
227
213
|
queryParameters = {};
|
|
228
214
|
headerParameters = {};
|
|
229
|
-
if (requestParameters['xLocale'] != null) {
|
|
230
|
-
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
231
|
-
}
|
|
232
215
|
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
233
216
|
token = this.configuration.accessToken;
|
|
234
217
|
return [4 /*yield*/, token("bearer", [])];
|
|
@@ -275,18 +258,12 @@ var DomainsApi = /** @class */ (function (_super) {
|
|
|
275
258
|
return __generator(this, function (_a) {
|
|
276
259
|
switch (_a.label) {
|
|
277
260
|
case 0:
|
|
278
|
-
if (requestParameters['xLocale'] == null) {
|
|
279
|
-
throw new runtime.RequiredError('xLocale', 'Required parameter "xLocale" was null or undefined when calling deleteDomains().');
|
|
280
|
-
}
|
|
281
261
|
if (requestParameters['deleteDomainsInput'] == null) {
|
|
282
262
|
throw new runtime.RequiredError('deleteDomainsInput', 'Required parameter "deleteDomainsInput" was null or undefined when calling deleteDomains().');
|
|
283
263
|
}
|
|
284
264
|
queryParameters = {};
|
|
285
265
|
headerParameters = {};
|
|
286
266
|
headerParameters['Content-Type'] = 'application/json';
|
|
287
|
-
if (requestParameters['xLocale'] != null) {
|
|
288
|
-
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
289
|
-
}
|
|
290
267
|
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
291
268
|
token = this.configuration.accessToken;
|
|
292
269
|
return [4 /*yield*/, token("bearer", [])];
|
|
@@ -334,9 +311,6 @@ var DomainsApi = /** @class */ (function (_super) {
|
|
|
334
311
|
return __generator(this, function (_a) {
|
|
335
312
|
switch (_a.label) {
|
|
336
313
|
case 0:
|
|
337
|
-
if (requestParameters['xLocale'] == null) {
|
|
338
|
-
throw new runtime.RequiredError('xLocale', 'Required parameter "xLocale" was null or undefined when calling getAllDomainTransfers().');
|
|
339
|
-
}
|
|
340
314
|
queryParameters = {};
|
|
341
315
|
if (requestParameters['filter'] != null) {
|
|
342
316
|
queryParameters['filter'] = requestParameters['filter'];
|
|
@@ -351,9 +325,6 @@ var DomainsApi = /** @class */ (function (_super) {
|
|
|
351
325
|
queryParameters['sortBy'] = requestParameters['sortBy'];
|
|
352
326
|
}
|
|
353
327
|
headerParameters = {};
|
|
354
|
-
if (requestParameters['xLocale'] != null) {
|
|
355
|
-
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
356
|
-
}
|
|
357
328
|
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
358
329
|
token = this.configuration.accessToken;
|
|
359
330
|
return [4 /*yield*/, token("bearer", [])];
|
|
@@ -379,9 +350,10 @@ var DomainsApi = /** @class */ (function (_super) {
|
|
|
379
350
|
/**
|
|
380
351
|
*
|
|
381
352
|
*/
|
|
382
|
-
DomainsApi.prototype.getAllDomainTransfers = function (
|
|
383
|
-
return __awaiter(this,
|
|
353
|
+
DomainsApi.prototype.getAllDomainTransfers = function () {
|
|
354
|
+
return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
|
|
384
355
|
var response;
|
|
356
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
385
357
|
return __generator(this, function (_a) {
|
|
386
358
|
switch (_a.label) {
|
|
387
359
|
case 0: return [4 /*yield*/, this.getAllDomainTransfersRaw(requestParameters, initOverrides)];
|
|
@@ -405,14 +377,8 @@ var DomainsApi = /** @class */ (function (_super) {
|
|
|
405
377
|
if (requestParameters['domainId'] == null) {
|
|
406
378
|
throw new runtime.RequiredError('domainId', 'Required parameter "domainId" was null or undefined when calling getDomain().');
|
|
407
379
|
}
|
|
408
|
-
if (requestParameters['xLocale'] == null) {
|
|
409
|
-
throw new runtime.RequiredError('xLocale', 'Required parameter "xLocale" was null or undefined when calling getDomain().');
|
|
410
|
-
}
|
|
411
380
|
queryParameters = {};
|
|
412
381
|
headerParameters = {};
|
|
413
|
-
if (requestParameters['xLocale'] != null) {
|
|
414
|
-
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
415
|
-
}
|
|
416
382
|
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
417
383
|
token = this.configuration.accessToken;
|
|
418
384
|
return [4 /*yield*/, token("bearer", [])];
|
|
@@ -464,14 +430,8 @@ var DomainsApi = /** @class */ (function (_super) {
|
|
|
464
430
|
if (requestParameters['transferId'] == null) {
|
|
465
431
|
throw new runtime.RequiredError('transferId', 'Required parameter "transferId" was null or undefined when calling getDomainTransfer().');
|
|
466
432
|
}
|
|
467
|
-
if (requestParameters['xLocale'] == null) {
|
|
468
|
-
throw new runtime.RequiredError('xLocale', 'Required parameter "xLocale" was null or undefined when calling getDomainTransfer().');
|
|
469
|
-
}
|
|
470
433
|
queryParameters = {};
|
|
471
434
|
headerParameters = {};
|
|
472
|
-
if (requestParameters['xLocale'] != null) {
|
|
473
|
-
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
474
|
-
}
|
|
475
435
|
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
476
436
|
token = this.configuration.accessToken;
|
|
477
437
|
return [4 /*yield*/, token("bearer", [])];
|
|
@@ -520,9 +480,6 @@ var DomainsApi = /** @class */ (function (_super) {
|
|
|
520
480
|
return __generator(this, function (_a) {
|
|
521
481
|
switch (_a.label) {
|
|
522
482
|
case 0:
|
|
523
|
-
if (requestParameters['xLocale'] == null) {
|
|
524
|
-
throw new runtime.RequiredError('xLocale', 'Required parameter "xLocale" was null or undefined when calling list().');
|
|
525
|
-
}
|
|
526
483
|
queryParameters = {};
|
|
527
484
|
if (requestParameters['filter'] != null) {
|
|
528
485
|
queryParameters['filter'] = requestParameters['filter'];
|
|
@@ -537,9 +494,6 @@ var DomainsApi = /** @class */ (function (_super) {
|
|
|
537
494
|
queryParameters['sortBy'] = requestParameters['sortBy'];
|
|
538
495
|
}
|
|
539
496
|
headerParameters = {};
|
|
540
|
-
if (requestParameters['xLocale'] != null) {
|
|
541
|
-
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
542
|
-
}
|
|
543
497
|
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
544
498
|
token = this.configuration.accessToken;
|
|
545
499
|
return [4 /*yield*/, token("bearer", [])];
|
|
@@ -565,9 +519,10 @@ var DomainsApi = /** @class */ (function (_super) {
|
|
|
565
519
|
/**
|
|
566
520
|
*
|
|
567
521
|
*/
|
|
568
|
-
DomainsApi.prototype.list = function (
|
|
569
|
-
return __awaiter(this,
|
|
522
|
+
DomainsApi.prototype.list = function () {
|
|
523
|
+
return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
|
|
570
524
|
var response;
|
|
525
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
571
526
|
return __generator(this, function (_a) {
|
|
572
527
|
switch (_a.label) {
|
|
573
528
|
case 0: return [4 /*yield*/, this.listRaw(requestParameters, initOverrides)];
|
|
@@ -591,18 +546,12 @@ var DomainsApi = /** @class */ (function (_super) {
|
|
|
591
546
|
if (requestParameters['domainId'] == null) {
|
|
592
547
|
throw new runtime.RequiredError('domainId', 'Required parameter "domainId" was null or undefined when calling update().');
|
|
593
548
|
}
|
|
594
|
-
if (requestParameters['xLocale'] == null) {
|
|
595
|
-
throw new runtime.RequiredError('xLocale', 'Required parameter "xLocale" was null or undefined when calling update().');
|
|
596
|
-
}
|
|
597
549
|
if (requestParameters['updateDomainInput'] == null) {
|
|
598
550
|
throw new runtime.RequiredError('updateDomainInput', 'Required parameter "updateDomainInput" was null or undefined when calling update().');
|
|
599
551
|
}
|
|
600
552
|
queryParameters = {};
|
|
601
553
|
headerParameters = {};
|
|
602
554
|
headerParameters['Content-Type'] = 'application/json';
|
|
603
|
-
if (requestParameters['xLocale'] != null) {
|
|
604
|
-
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
605
|
-
}
|
|
606
555
|
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
607
556
|
token = this.configuration.accessToken;
|
|
608
557
|
return [4 /*yield*/, token("bearer", [])];
|
|
@@ -655,18 +604,12 @@ var DomainsApi = /** @class */ (function (_super) {
|
|
|
655
604
|
if (requestParameters['transferId'] == null) {
|
|
656
605
|
throw new runtime.RequiredError('transferId', 'Required parameter "transferId" was null or undefined when calling updateDomainTransferAuthCode().');
|
|
657
606
|
}
|
|
658
|
-
if (requestParameters['xLocale'] == null) {
|
|
659
|
-
throw new runtime.RequiredError('xLocale', 'Required parameter "xLocale" was null or undefined when calling updateDomainTransferAuthCode().');
|
|
660
|
-
}
|
|
661
607
|
if (requestParameters['updateDomainTransferAuthCodeInput'] == null) {
|
|
662
608
|
throw new runtime.RequiredError('updateDomainTransferAuthCodeInput', 'Required parameter "updateDomainTransferAuthCodeInput" was null or undefined when calling updateDomainTransferAuthCode().');
|
|
663
609
|
}
|
|
664
610
|
queryParameters = {};
|
|
665
611
|
headerParameters = {};
|
|
666
612
|
headerParameters['Content-Type'] = 'application/json';
|
|
667
|
-
if (requestParameters['xLocale'] != null) {
|
|
668
|
-
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
669
|
-
}
|
|
670
613
|
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
671
614
|
token = this.configuration.accessToken;
|
|
672
615
|
return [4 /*yield*/, token("bearer", [])];
|
|
@@ -708,73 +651,3 @@ var DomainsApi = /** @class */ (function (_super) {
|
|
|
708
651
|
return DomainsApi;
|
|
709
652
|
}(runtime.BaseAPI));
|
|
710
653
|
exports.DomainsApi = DomainsApi;
|
|
711
|
-
/**
|
|
712
|
-
* @export
|
|
713
|
-
*/
|
|
714
|
-
exports.BatchImportXLocaleEnum = {
|
|
715
|
-
NL_NL: 'nl-nl',
|
|
716
|
-
EN_GB: 'en-gb'
|
|
717
|
-
};
|
|
718
|
-
/**
|
|
719
|
-
* @export
|
|
720
|
-
*/
|
|
721
|
-
exports.BatchUpdateXLocaleEnum = {
|
|
722
|
-
NL_NL: 'nl-nl',
|
|
723
|
-
EN_GB: 'en-gb'
|
|
724
|
-
};
|
|
725
|
-
/**
|
|
726
|
-
* @export
|
|
727
|
-
*/
|
|
728
|
-
exports.CheckDnsXLocaleEnum = {
|
|
729
|
-
NL_NL: 'nl-nl',
|
|
730
|
-
EN_GB: 'en-gb'
|
|
731
|
-
};
|
|
732
|
-
/**
|
|
733
|
-
* @export
|
|
734
|
-
*/
|
|
735
|
-
exports.DeleteDomainsXLocaleEnum = {
|
|
736
|
-
NL_NL: 'nl-nl',
|
|
737
|
-
EN_GB: 'en-gb'
|
|
738
|
-
};
|
|
739
|
-
/**
|
|
740
|
-
* @export
|
|
741
|
-
*/
|
|
742
|
-
exports.GetAllDomainTransfersXLocaleEnum = {
|
|
743
|
-
NL_NL: 'nl-nl',
|
|
744
|
-
EN_GB: 'en-gb'
|
|
745
|
-
};
|
|
746
|
-
/**
|
|
747
|
-
* @export
|
|
748
|
-
*/
|
|
749
|
-
exports.GetDomainXLocaleEnum = {
|
|
750
|
-
NL_NL: 'nl-nl',
|
|
751
|
-
EN_GB: 'en-gb'
|
|
752
|
-
};
|
|
753
|
-
/**
|
|
754
|
-
* @export
|
|
755
|
-
*/
|
|
756
|
-
exports.GetDomainTransferXLocaleEnum = {
|
|
757
|
-
NL_NL: 'nl-nl',
|
|
758
|
-
EN_GB: 'en-gb'
|
|
759
|
-
};
|
|
760
|
-
/**
|
|
761
|
-
* @export
|
|
762
|
-
*/
|
|
763
|
-
exports.ListXLocaleEnum = {
|
|
764
|
-
NL_NL: 'nl-nl',
|
|
765
|
-
EN_GB: 'en-gb'
|
|
766
|
-
};
|
|
767
|
-
/**
|
|
768
|
-
* @export
|
|
769
|
-
*/
|
|
770
|
-
exports.UpdateXLocaleEnum = {
|
|
771
|
-
NL_NL: 'nl-nl',
|
|
772
|
-
EN_GB: 'en-gb'
|
|
773
|
-
};
|
|
774
|
-
/**
|
|
775
|
-
* @export
|
|
776
|
-
*/
|
|
777
|
-
exports.UpdateDomainTransferAuthCodeXLocaleEnum = {
|
|
778
|
-
NL_NL: 'nl-nl',
|
|
779
|
-
EN_GB: 'en-gb'
|
|
780
|
-
};
|
|
@@ -13,7 +13,6 @@ import * as runtime from '../runtime';
|
|
|
13
13
|
import type { DomainSalesInformationDto } from '../models/index';
|
|
14
14
|
export interface DomainsPublicApiGetDomainSalesInformationRequest {
|
|
15
15
|
domainName: string;
|
|
16
|
-
xLocale: GetDomainSalesInformationXLocaleEnum;
|
|
17
16
|
}
|
|
18
17
|
/**
|
|
19
18
|
*
|
|
@@ -28,11 +27,3 @@ export declare class DomainsPublicApi extends runtime.BaseAPI {
|
|
|
28
27
|
*/
|
|
29
28
|
getDomainSalesInformation(requestParameters: DomainsPublicApiGetDomainSalesInformationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DomainSalesInformationDto>;
|
|
30
29
|
}
|
|
31
|
-
/**
|
|
32
|
-
* @export
|
|
33
|
-
*/
|
|
34
|
-
export declare const GetDomainSalesInformationXLocaleEnum: {
|
|
35
|
-
readonly NL_NL: "nl-nl";
|
|
36
|
-
readonly EN_GB: "en-gb";
|
|
37
|
-
};
|
|
38
|
-
export type GetDomainSalesInformationXLocaleEnum = typeof GetDomainSalesInformationXLocaleEnum[keyof typeof GetDomainSalesInformationXLocaleEnum];
|
|
@@ -64,7 +64,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
64
64
|
}
|
|
65
65
|
};
|
|
66
66
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
67
|
-
exports.
|
|
67
|
+
exports.DomainsPublicApi = void 0;
|
|
68
68
|
var runtime = require("../runtime");
|
|
69
69
|
var index_1 = require("../models/index");
|
|
70
70
|
/**
|
|
@@ -87,14 +87,8 @@ var DomainsPublicApi = /** @class */ (function (_super) {
|
|
|
87
87
|
if (requestParameters['domainName'] == null) {
|
|
88
88
|
throw new runtime.RequiredError('domainName', 'Required parameter "domainName" was null or undefined when calling getDomainSalesInformation().');
|
|
89
89
|
}
|
|
90
|
-
if (requestParameters['xLocale'] == null) {
|
|
91
|
-
throw new runtime.RequiredError('xLocale', 'Required parameter "xLocale" was null or undefined when calling getDomainSalesInformation().');
|
|
92
|
-
}
|
|
93
90
|
queryParameters = {};
|
|
94
91
|
headerParameters = {};
|
|
95
|
-
if (requestParameters['xLocale'] != null) {
|
|
96
|
-
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
97
|
-
}
|
|
98
92
|
return [4 /*yield*/, this.request({
|
|
99
93
|
path: "/domains/by-name/{domainName}/sales-information".replace("{".concat("domainName", "}"), encodeURIComponent(String(requestParameters['domainName']))),
|
|
100
94
|
method: 'GET',
|
|
@@ -128,10 +122,3 @@ var DomainsPublicApi = /** @class */ (function (_super) {
|
|
|
128
122
|
return DomainsPublicApi;
|
|
129
123
|
}(runtime.BaseAPI));
|
|
130
124
|
exports.DomainsPublicApi = DomainsPublicApi;
|
|
131
|
-
/**
|
|
132
|
-
* @export
|
|
133
|
-
*/
|
|
134
|
-
exports.GetDomainSalesInformationXLocaleEnum = {
|
|
135
|
-
NL_NL: 'nl-nl',
|
|
136
|
-
EN_GB: 'en-gb'
|
|
137
|
-
};
|
package/dist/apis/LeadsApi.d.ts
CHANGED
|
@@ -13,27 +13,19 @@ import * as runtime from '../runtime';
|
|
|
13
13
|
import type { CreateLeadMessageInput, IntersectionLeadDtoWithLeadDetailsDto, IntersectionLeadDtoWithListFieldsDto, ListLeadMessagesDto, ObjectId, PutLeadOfferInput } from '../models/index';
|
|
14
14
|
export interface LeadsApiAcceptLeadOfferRequest {
|
|
15
15
|
leadId: string;
|
|
16
|
-
xLocale: AcceptLeadOfferXLocaleEnum;
|
|
17
16
|
}
|
|
18
17
|
export interface LeadsApiCreateMessageRequest {
|
|
19
18
|
leadId: string;
|
|
20
|
-
xLocale: CreateMessageXLocaleEnum;
|
|
21
19
|
createLeadMessageInput: CreateLeadMessageInput;
|
|
22
20
|
}
|
|
23
21
|
export interface LeadsApiGetLeadRequest {
|
|
24
22
|
leadId: string;
|
|
25
|
-
xLocale: GetLeadXLocaleEnum;
|
|
26
23
|
}
|
|
27
24
|
export interface LeadsApiGetMessagesRequest {
|
|
28
25
|
leadId: string;
|
|
29
|
-
xLocale: GetMessagesXLocaleEnum;
|
|
30
|
-
}
|
|
31
|
-
export interface LeadsApiListLeadsRequest {
|
|
32
|
-
xLocale: ListLeadsXLocaleEnum;
|
|
33
26
|
}
|
|
34
27
|
export interface LeadsApiPutOfferRequest {
|
|
35
28
|
leadId: string;
|
|
36
|
-
xLocale: PutOfferXLocaleEnum;
|
|
37
29
|
putLeadOfferInput: PutLeadOfferInput;
|
|
38
30
|
}
|
|
39
31
|
/**
|
|
@@ -75,11 +67,11 @@ export declare class LeadsApi extends runtime.BaseAPI {
|
|
|
75
67
|
/**
|
|
76
68
|
*
|
|
77
69
|
*/
|
|
78
|
-
listLeadsRaw(
|
|
70
|
+
listLeadsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<IntersectionLeadDtoWithListFieldsDto>>>;
|
|
79
71
|
/**
|
|
80
72
|
*
|
|
81
73
|
*/
|
|
82
|
-
listLeads(
|
|
74
|
+
listLeads(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<IntersectionLeadDtoWithListFieldsDto>>;
|
|
83
75
|
/**
|
|
84
76
|
*
|
|
85
77
|
*/
|
|
@@ -89,51 +81,3 @@ export declare class LeadsApi extends runtime.BaseAPI {
|
|
|
89
81
|
*/
|
|
90
82
|
putOffer(requestParameters: LeadsApiPutOfferRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
91
83
|
}
|
|
92
|
-
/**
|
|
93
|
-
* @export
|
|
94
|
-
*/
|
|
95
|
-
export declare const AcceptLeadOfferXLocaleEnum: {
|
|
96
|
-
readonly NL_NL: "nl-nl";
|
|
97
|
-
readonly EN_GB: "en-gb";
|
|
98
|
-
};
|
|
99
|
-
export type AcceptLeadOfferXLocaleEnum = typeof AcceptLeadOfferXLocaleEnum[keyof typeof AcceptLeadOfferXLocaleEnum];
|
|
100
|
-
/**
|
|
101
|
-
* @export
|
|
102
|
-
*/
|
|
103
|
-
export declare const CreateMessageXLocaleEnum: {
|
|
104
|
-
readonly NL_NL: "nl-nl";
|
|
105
|
-
readonly EN_GB: "en-gb";
|
|
106
|
-
};
|
|
107
|
-
export type CreateMessageXLocaleEnum = typeof CreateMessageXLocaleEnum[keyof typeof CreateMessageXLocaleEnum];
|
|
108
|
-
/**
|
|
109
|
-
* @export
|
|
110
|
-
*/
|
|
111
|
-
export declare const GetLeadXLocaleEnum: {
|
|
112
|
-
readonly NL_NL: "nl-nl";
|
|
113
|
-
readonly EN_GB: "en-gb";
|
|
114
|
-
};
|
|
115
|
-
export type GetLeadXLocaleEnum = typeof GetLeadXLocaleEnum[keyof typeof GetLeadXLocaleEnum];
|
|
116
|
-
/**
|
|
117
|
-
* @export
|
|
118
|
-
*/
|
|
119
|
-
export declare const GetMessagesXLocaleEnum: {
|
|
120
|
-
readonly NL_NL: "nl-nl";
|
|
121
|
-
readonly EN_GB: "en-gb";
|
|
122
|
-
};
|
|
123
|
-
export type GetMessagesXLocaleEnum = typeof GetMessagesXLocaleEnum[keyof typeof GetMessagesXLocaleEnum];
|
|
124
|
-
/**
|
|
125
|
-
* @export
|
|
126
|
-
*/
|
|
127
|
-
export declare const ListLeadsXLocaleEnum: {
|
|
128
|
-
readonly NL_NL: "nl-nl";
|
|
129
|
-
readonly EN_GB: "en-gb";
|
|
130
|
-
};
|
|
131
|
-
export type ListLeadsXLocaleEnum = typeof ListLeadsXLocaleEnum[keyof typeof ListLeadsXLocaleEnum];
|
|
132
|
-
/**
|
|
133
|
-
* @export
|
|
134
|
-
*/
|
|
135
|
-
export declare const PutOfferXLocaleEnum: {
|
|
136
|
-
readonly NL_NL: "nl-nl";
|
|
137
|
-
readonly EN_GB: "en-gb";
|
|
138
|
-
};
|
|
139
|
-
export type PutOfferXLocaleEnum = typeof PutOfferXLocaleEnum[keyof typeof PutOfferXLocaleEnum];
|
package/dist/apis/LeadsApi.js
CHANGED
|
@@ -64,7 +64,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
64
64
|
}
|
|
65
65
|
};
|
|
66
66
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
67
|
-
exports.
|
|
67
|
+
exports.LeadsApi = void 0;
|
|
68
68
|
var runtime = require("../runtime");
|
|
69
69
|
var index_1 = require("../models/index");
|
|
70
70
|
/**
|
|
@@ -87,14 +87,8 @@ var LeadsApi = /** @class */ (function (_super) {
|
|
|
87
87
|
if (requestParameters['leadId'] == null) {
|
|
88
88
|
throw new runtime.RequiredError('leadId', 'Required parameter "leadId" was null or undefined when calling acceptLeadOffer().');
|
|
89
89
|
}
|
|
90
|
-
if (requestParameters['xLocale'] == null) {
|
|
91
|
-
throw new runtime.RequiredError('xLocale', 'Required parameter "xLocale" was null or undefined when calling acceptLeadOffer().');
|
|
92
|
-
}
|
|
93
90
|
queryParameters = {};
|
|
94
91
|
headerParameters = {};
|
|
95
|
-
if (requestParameters['xLocale'] != null) {
|
|
96
|
-
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
97
|
-
}
|
|
98
92
|
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
99
93
|
token = this.configuration.accessToken;
|
|
100
94
|
return [4 /*yield*/, token("bearer", [])];
|
|
@@ -144,18 +138,12 @@ var LeadsApi = /** @class */ (function (_super) {
|
|
|
144
138
|
if (requestParameters['leadId'] == null) {
|
|
145
139
|
throw new runtime.RequiredError('leadId', 'Required parameter "leadId" was null or undefined when calling createMessage().');
|
|
146
140
|
}
|
|
147
|
-
if (requestParameters['xLocale'] == null) {
|
|
148
|
-
throw new runtime.RequiredError('xLocale', 'Required parameter "xLocale" was null or undefined when calling createMessage().');
|
|
149
|
-
}
|
|
150
141
|
if (requestParameters['createLeadMessageInput'] == null) {
|
|
151
142
|
throw new runtime.RequiredError('createLeadMessageInput', 'Required parameter "createLeadMessageInput" was null or undefined when calling createMessage().');
|
|
152
143
|
}
|
|
153
144
|
queryParameters = {};
|
|
154
145
|
headerParameters = {};
|
|
155
146
|
headerParameters['Content-Type'] = 'application/json';
|
|
156
|
-
if (requestParameters['xLocale'] != null) {
|
|
157
|
-
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
158
|
-
}
|
|
159
147
|
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
160
148
|
token = this.configuration.accessToken;
|
|
161
149
|
return [4 /*yield*/, token("bearer", [])];
|
|
@@ -208,14 +196,8 @@ var LeadsApi = /** @class */ (function (_super) {
|
|
|
208
196
|
if (requestParameters['leadId'] == null) {
|
|
209
197
|
throw new runtime.RequiredError('leadId', 'Required parameter "leadId" was null or undefined when calling getLead().');
|
|
210
198
|
}
|
|
211
|
-
if (requestParameters['xLocale'] == null) {
|
|
212
|
-
throw new runtime.RequiredError('xLocale', 'Required parameter "xLocale" was null or undefined when calling getLead().');
|
|
213
|
-
}
|
|
214
199
|
queryParameters = {};
|
|
215
200
|
headerParameters = {};
|
|
216
|
-
if (requestParameters['xLocale'] != null) {
|
|
217
|
-
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
218
|
-
}
|
|
219
201
|
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
220
202
|
token = this.configuration.accessToken;
|
|
221
203
|
return [4 /*yield*/, token("bearer", [])];
|
|
@@ -267,14 +249,8 @@ var LeadsApi = /** @class */ (function (_super) {
|
|
|
267
249
|
if (requestParameters['leadId'] == null) {
|
|
268
250
|
throw new runtime.RequiredError('leadId', 'Required parameter "leadId" was null or undefined when calling getMessages().');
|
|
269
251
|
}
|
|
270
|
-
if (requestParameters['xLocale'] == null) {
|
|
271
|
-
throw new runtime.RequiredError('xLocale', 'Required parameter "xLocale" was null or undefined when calling getMessages().');
|
|
272
|
-
}
|
|
273
252
|
queryParameters = {};
|
|
274
253
|
headerParameters = {};
|
|
275
|
-
if (requestParameters['xLocale'] != null) {
|
|
276
|
-
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
277
|
-
}
|
|
278
254
|
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
279
255
|
token = this.configuration.accessToken;
|
|
280
256
|
return [4 /*yield*/, token("bearer", [])];
|
|
@@ -317,20 +293,14 @@ var LeadsApi = /** @class */ (function (_super) {
|
|
|
317
293
|
/**
|
|
318
294
|
*
|
|
319
295
|
*/
|
|
320
|
-
LeadsApi.prototype.listLeadsRaw = function (
|
|
296
|
+
LeadsApi.prototype.listLeadsRaw = function (initOverrides) {
|
|
321
297
|
return __awaiter(this, void 0, void 0, function () {
|
|
322
298
|
var queryParameters, headerParameters, token, tokenString, response;
|
|
323
299
|
return __generator(this, function (_a) {
|
|
324
300
|
switch (_a.label) {
|
|
325
301
|
case 0:
|
|
326
|
-
if (requestParameters['xLocale'] == null) {
|
|
327
|
-
throw new runtime.RequiredError('xLocale', 'Required parameter "xLocale" was null or undefined when calling listLeads().');
|
|
328
|
-
}
|
|
329
302
|
queryParameters = {};
|
|
330
303
|
headerParameters = {};
|
|
331
|
-
if (requestParameters['xLocale'] != null) {
|
|
332
|
-
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
333
|
-
}
|
|
334
304
|
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
335
305
|
token = this.configuration.accessToken;
|
|
336
306
|
return [4 /*yield*/, token("bearer", [])];
|
|
@@ -356,12 +326,12 @@ var LeadsApi = /** @class */ (function (_super) {
|
|
|
356
326
|
/**
|
|
357
327
|
*
|
|
358
328
|
*/
|
|
359
|
-
LeadsApi.prototype.listLeads = function (
|
|
329
|
+
LeadsApi.prototype.listLeads = function (initOverrides) {
|
|
360
330
|
return __awaiter(this, void 0, void 0, function () {
|
|
361
331
|
var response;
|
|
362
332
|
return __generator(this, function (_a) {
|
|
363
333
|
switch (_a.label) {
|
|
364
|
-
case 0: return [4 /*yield*/, this.listLeadsRaw(
|
|
334
|
+
case 0: return [4 /*yield*/, this.listLeadsRaw(initOverrides)];
|
|
365
335
|
case 1:
|
|
366
336
|
response = _a.sent();
|
|
367
337
|
return [4 /*yield*/, response.value()];
|
|
@@ -382,18 +352,12 @@ var LeadsApi = /** @class */ (function (_super) {
|
|
|
382
352
|
if (requestParameters['leadId'] == null) {
|
|
383
353
|
throw new runtime.RequiredError('leadId', 'Required parameter "leadId" was null or undefined when calling putOffer().');
|
|
384
354
|
}
|
|
385
|
-
if (requestParameters['xLocale'] == null) {
|
|
386
|
-
throw new runtime.RequiredError('xLocale', 'Required parameter "xLocale" was null or undefined when calling putOffer().');
|
|
387
|
-
}
|
|
388
355
|
if (requestParameters['putLeadOfferInput'] == null) {
|
|
389
356
|
throw new runtime.RequiredError('putLeadOfferInput', 'Required parameter "putLeadOfferInput" was null or undefined when calling putOffer().');
|
|
390
357
|
}
|
|
391
358
|
queryParameters = {};
|
|
392
359
|
headerParameters = {};
|
|
393
360
|
headerParameters['Content-Type'] = 'application/json';
|
|
394
|
-
if (requestParameters['xLocale'] != null) {
|
|
395
|
-
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
396
|
-
}
|
|
397
361
|
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
398
362
|
token = this.configuration.accessToken;
|
|
399
363
|
return [4 /*yield*/, token("bearer", [])];
|
|
@@ -435,45 +399,3 @@ var LeadsApi = /** @class */ (function (_super) {
|
|
|
435
399
|
return LeadsApi;
|
|
436
400
|
}(runtime.BaseAPI));
|
|
437
401
|
exports.LeadsApi = LeadsApi;
|
|
438
|
-
/**
|
|
439
|
-
* @export
|
|
440
|
-
*/
|
|
441
|
-
exports.AcceptLeadOfferXLocaleEnum = {
|
|
442
|
-
NL_NL: 'nl-nl',
|
|
443
|
-
EN_GB: 'en-gb'
|
|
444
|
-
};
|
|
445
|
-
/**
|
|
446
|
-
* @export
|
|
447
|
-
*/
|
|
448
|
-
exports.CreateMessageXLocaleEnum = {
|
|
449
|
-
NL_NL: 'nl-nl',
|
|
450
|
-
EN_GB: 'en-gb'
|
|
451
|
-
};
|
|
452
|
-
/**
|
|
453
|
-
* @export
|
|
454
|
-
*/
|
|
455
|
-
exports.GetLeadXLocaleEnum = {
|
|
456
|
-
NL_NL: 'nl-nl',
|
|
457
|
-
EN_GB: 'en-gb'
|
|
458
|
-
};
|
|
459
|
-
/**
|
|
460
|
-
* @export
|
|
461
|
-
*/
|
|
462
|
-
exports.GetMessagesXLocaleEnum = {
|
|
463
|
-
NL_NL: 'nl-nl',
|
|
464
|
-
EN_GB: 'en-gb'
|
|
465
|
-
};
|
|
466
|
-
/**
|
|
467
|
-
* @export
|
|
468
|
-
*/
|
|
469
|
-
exports.ListLeadsXLocaleEnum = {
|
|
470
|
-
NL_NL: 'nl-nl',
|
|
471
|
-
EN_GB: 'en-gb'
|
|
472
|
-
};
|
|
473
|
-
/**
|
|
474
|
-
* @export
|
|
475
|
-
*/
|
|
476
|
-
exports.PutOfferXLocaleEnum = {
|
|
477
|
-
NL_NL: 'nl-nl',
|
|
478
|
-
EN_GB: 'en-gb'
|
|
479
|
-
};
|