@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/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.DomainsApi = void 0;
|
|
67
|
+
exports.UpdateDomainTransferAuthCodeXLocaleEnum = exports.UpdateXLocaleEnum = exports.ListXLocaleEnum = exports.GetDomainTransferXLocaleEnum = exports.GetDomainXLocaleEnum = exports.GetAllDomainTransfersXLocaleEnum = exports.DeleteDomainsXLocaleEnum = exports.CheckDnsXLocaleEnum = exports.BatchUpdateXLocaleEnum = exports.BatchImportXLocaleEnum = exports.DomainsApi = void 0;
|
|
68
68
|
var runtime = require("../runtime");
|
|
69
69
|
var index_1 = require("../models/index");
|
|
70
70
|
/**
|
|
@@ -84,8 +84,14 @@ 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
|
+
}
|
|
87
90
|
queryParameters = {};
|
|
88
91
|
headerParameters = {};
|
|
92
|
+
if (requestParameters['xLocale'] != null) {
|
|
93
|
+
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
94
|
+
}
|
|
89
95
|
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
90
96
|
token = this.configuration.accessToken;
|
|
91
97
|
return [4 /*yield*/, token("bearer", [])];
|
|
@@ -132,9 +138,8 @@ var DomainsApi = /** @class */ (function (_super) {
|
|
|
132
138
|
/**
|
|
133
139
|
*
|
|
134
140
|
*/
|
|
135
|
-
DomainsApi.prototype.batchImport = function () {
|
|
136
|
-
return __awaiter(this,
|
|
137
|
-
if (requestParameters === void 0) { requestParameters = {}; }
|
|
141
|
+
DomainsApi.prototype.batchImport = function (requestParameters, initOverrides) {
|
|
142
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
138
143
|
return __generator(this, function (_a) {
|
|
139
144
|
switch (_a.label) {
|
|
140
145
|
case 0: return [4 /*yield*/, this.batchImportRaw(requestParameters, initOverrides)];
|
|
@@ -154,12 +159,18 @@ var DomainsApi = /** @class */ (function (_super) {
|
|
|
154
159
|
return __generator(this, function (_a) {
|
|
155
160
|
switch (_a.label) {
|
|
156
161
|
case 0:
|
|
162
|
+
if (requestParameters['xLocale'] == null) {
|
|
163
|
+
throw new runtime.RequiredError('xLocale', 'Required parameter "xLocale" was null or undefined when calling batchUpdate().');
|
|
164
|
+
}
|
|
157
165
|
if (requestParameters['batchUpdateDomainsInput'] == null) {
|
|
158
166
|
throw new runtime.RequiredError('batchUpdateDomainsInput', 'Required parameter "batchUpdateDomainsInput" was null or undefined when calling batchUpdate().');
|
|
159
167
|
}
|
|
160
168
|
queryParameters = {};
|
|
161
169
|
headerParameters = {};
|
|
162
170
|
headerParameters['Content-Type'] = 'application/json';
|
|
171
|
+
if (requestParameters['xLocale'] != null) {
|
|
172
|
+
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
173
|
+
}
|
|
163
174
|
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
164
175
|
token = this.configuration.accessToken;
|
|
165
176
|
return [4 /*yield*/, token("bearer", [])];
|
|
@@ -210,8 +221,14 @@ var DomainsApi = /** @class */ (function (_super) {
|
|
|
210
221
|
if (requestParameters['domainId'] == null) {
|
|
211
222
|
throw new runtime.RequiredError('domainId', 'Required parameter "domainId" was null or undefined when calling checkDns().');
|
|
212
223
|
}
|
|
224
|
+
if (requestParameters['xLocale'] == null) {
|
|
225
|
+
throw new runtime.RequiredError('xLocale', 'Required parameter "xLocale" was null or undefined when calling checkDns().');
|
|
226
|
+
}
|
|
213
227
|
queryParameters = {};
|
|
214
228
|
headerParameters = {};
|
|
229
|
+
if (requestParameters['xLocale'] != null) {
|
|
230
|
+
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
231
|
+
}
|
|
215
232
|
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
216
233
|
token = this.configuration.accessToken;
|
|
217
234
|
return [4 /*yield*/, token("bearer", [])];
|
|
@@ -258,12 +275,18 @@ var DomainsApi = /** @class */ (function (_super) {
|
|
|
258
275
|
return __generator(this, function (_a) {
|
|
259
276
|
switch (_a.label) {
|
|
260
277
|
case 0:
|
|
278
|
+
if (requestParameters['xLocale'] == null) {
|
|
279
|
+
throw new runtime.RequiredError('xLocale', 'Required parameter "xLocale" was null or undefined when calling deleteDomains().');
|
|
280
|
+
}
|
|
261
281
|
if (requestParameters['deleteDomainsInput'] == null) {
|
|
262
282
|
throw new runtime.RequiredError('deleteDomainsInput', 'Required parameter "deleteDomainsInput" was null or undefined when calling deleteDomains().');
|
|
263
283
|
}
|
|
264
284
|
queryParameters = {};
|
|
265
285
|
headerParameters = {};
|
|
266
286
|
headerParameters['Content-Type'] = 'application/json';
|
|
287
|
+
if (requestParameters['xLocale'] != null) {
|
|
288
|
+
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
289
|
+
}
|
|
267
290
|
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
268
291
|
token = this.configuration.accessToken;
|
|
269
292
|
return [4 /*yield*/, token("bearer", [])];
|
|
@@ -305,17 +328,32 @@ var DomainsApi = /** @class */ (function (_super) {
|
|
|
305
328
|
/**
|
|
306
329
|
*
|
|
307
330
|
*/
|
|
308
|
-
DomainsApi.prototype.
|
|
331
|
+
DomainsApi.prototype.getAllDomainTransfersRaw = function (requestParameters, initOverrides) {
|
|
309
332
|
return __awaiter(this, void 0, void 0, function () {
|
|
310
333
|
var queryParameters, headerParameters, token, tokenString, response;
|
|
311
334
|
return __generator(this, function (_a) {
|
|
312
335
|
switch (_a.label) {
|
|
313
336
|
case 0:
|
|
314
|
-
if (requestParameters['
|
|
315
|
-
throw new runtime.RequiredError('
|
|
337
|
+
if (requestParameters['xLocale'] == null) {
|
|
338
|
+
throw new runtime.RequiredError('xLocale', 'Required parameter "xLocale" was null or undefined when calling getAllDomainTransfers().');
|
|
316
339
|
}
|
|
317
340
|
queryParameters = {};
|
|
341
|
+
if (requestParameters['filter'] != null) {
|
|
342
|
+
queryParameters['filter'] = requestParameters['filter'];
|
|
343
|
+
}
|
|
344
|
+
if (requestParameters['page'] != null) {
|
|
345
|
+
queryParameters['page'] = requestParameters['page'];
|
|
346
|
+
}
|
|
347
|
+
if (requestParameters['limit'] != null) {
|
|
348
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
349
|
+
}
|
|
350
|
+
if (requestParameters['sortBy'] != null) {
|
|
351
|
+
queryParameters['sortBy'] = requestParameters['sortBy'];
|
|
352
|
+
}
|
|
318
353
|
headerParameters = {};
|
|
354
|
+
if (requestParameters['xLocale'] != null) {
|
|
355
|
+
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
356
|
+
}
|
|
319
357
|
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
320
358
|
token = this.configuration.accessToken;
|
|
321
359
|
return [4 /*yield*/, token("bearer", [])];
|
|
@@ -326,14 +364,14 @@ var DomainsApi = /** @class */ (function (_super) {
|
|
|
326
364
|
}
|
|
327
365
|
_a.label = 2;
|
|
328
366
|
case 2: return [4 /*yield*/, this.request({
|
|
329
|
-
path: "/private/domains/
|
|
367
|
+
path: "/private/domains/transfers",
|
|
330
368
|
method: 'GET',
|
|
331
369
|
headers: headerParameters,
|
|
332
370
|
query: queryParameters,
|
|
333
371
|
}, initOverrides)];
|
|
334
372
|
case 3:
|
|
335
373
|
response = _a.sent();
|
|
336
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.
|
|
374
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.GetAllDomainTransfers200ResponseFromJSON)(jsonValue); })];
|
|
337
375
|
}
|
|
338
376
|
});
|
|
339
377
|
});
|
|
@@ -341,12 +379,12 @@ var DomainsApi = /** @class */ (function (_super) {
|
|
|
341
379
|
/**
|
|
342
380
|
*
|
|
343
381
|
*/
|
|
344
|
-
DomainsApi.prototype.
|
|
382
|
+
DomainsApi.prototype.getAllDomainTransfers = function (requestParameters, initOverrides) {
|
|
345
383
|
return __awaiter(this, void 0, void 0, function () {
|
|
346
384
|
var response;
|
|
347
385
|
return __generator(this, function (_a) {
|
|
348
386
|
switch (_a.label) {
|
|
349
|
-
case 0: return [4 /*yield*/, this.
|
|
387
|
+
case 0: return [4 /*yield*/, this.getAllDomainTransfersRaw(requestParameters, initOverrides)];
|
|
350
388
|
case 1:
|
|
351
389
|
response = _a.sent();
|
|
352
390
|
return [4 /*yield*/, response.value()];
|
|
@@ -358,26 +396,23 @@ var DomainsApi = /** @class */ (function (_super) {
|
|
|
358
396
|
/**
|
|
359
397
|
*
|
|
360
398
|
*/
|
|
361
|
-
DomainsApi.prototype.
|
|
399
|
+
DomainsApi.prototype.getDomainRaw = function (requestParameters, initOverrides) {
|
|
362
400
|
return __awaiter(this, void 0, void 0, function () {
|
|
363
401
|
var queryParameters, headerParameters, token, tokenString, response;
|
|
364
402
|
return __generator(this, function (_a) {
|
|
365
403
|
switch (_a.label) {
|
|
366
404
|
case 0:
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
queryParameters['filter'] = requestParameters['filter'];
|
|
370
|
-
}
|
|
371
|
-
if (requestParameters['page'] != null) {
|
|
372
|
-
queryParameters['page'] = requestParameters['page'];
|
|
373
|
-
}
|
|
374
|
-
if (requestParameters['limit'] != null) {
|
|
375
|
-
queryParameters['limit'] = requestParameters['limit'];
|
|
405
|
+
if (requestParameters['domainId'] == null) {
|
|
406
|
+
throw new runtime.RequiredError('domainId', 'Required parameter "domainId" was null or undefined when calling getDomain().');
|
|
376
407
|
}
|
|
377
|
-
if (requestParameters['
|
|
378
|
-
|
|
408
|
+
if (requestParameters['xLocale'] == null) {
|
|
409
|
+
throw new runtime.RequiredError('xLocale', 'Required parameter "xLocale" was null or undefined when calling getDomain().');
|
|
379
410
|
}
|
|
411
|
+
queryParameters = {};
|
|
380
412
|
headerParameters = {};
|
|
413
|
+
if (requestParameters['xLocale'] != null) {
|
|
414
|
+
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
415
|
+
}
|
|
381
416
|
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
382
417
|
token = this.configuration.accessToken;
|
|
383
418
|
return [4 /*yield*/, token("bearer", [])];
|
|
@@ -388,14 +423,14 @@ var DomainsApi = /** @class */ (function (_super) {
|
|
|
388
423
|
}
|
|
389
424
|
_a.label = 2;
|
|
390
425
|
case 2: return [4 /*yield*/, this.request({
|
|
391
|
-
path: "/private/domains/
|
|
426
|
+
path: "/private/domains/{domainId}".replace("{".concat("domainId", "}"), encodeURIComponent(String(requestParameters['domainId']))),
|
|
392
427
|
method: 'GET',
|
|
393
428
|
headers: headerParameters,
|
|
394
429
|
query: queryParameters,
|
|
395
430
|
}, initOverrides)];
|
|
396
431
|
case 3:
|
|
397
432
|
response = _a.sent();
|
|
398
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.
|
|
433
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.IntersectionDomainDtoWithHijackerDtoWithAccountDtoFromJSON)(jsonValue); })];
|
|
399
434
|
}
|
|
400
435
|
});
|
|
401
436
|
});
|
|
@@ -403,13 +438,12 @@ var DomainsApi = /** @class */ (function (_super) {
|
|
|
403
438
|
/**
|
|
404
439
|
*
|
|
405
440
|
*/
|
|
406
|
-
DomainsApi.prototype.
|
|
407
|
-
return __awaiter(this,
|
|
441
|
+
DomainsApi.prototype.getDomain = function (requestParameters, initOverrides) {
|
|
442
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
408
443
|
var response;
|
|
409
|
-
if (requestParameters === void 0) { requestParameters = {}; }
|
|
410
444
|
return __generator(this, function (_a) {
|
|
411
445
|
switch (_a.label) {
|
|
412
|
-
case 0: return [4 /*yield*/, this.
|
|
446
|
+
case 0: return [4 /*yield*/, this.getDomainRaw(requestParameters, initOverrides)];
|
|
413
447
|
case 1:
|
|
414
448
|
response = _a.sent();
|
|
415
449
|
return [4 /*yield*/, response.value()];
|
|
@@ -430,8 +464,14 @@ var DomainsApi = /** @class */ (function (_super) {
|
|
|
430
464
|
if (requestParameters['transferId'] == null) {
|
|
431
465
|
throw new runtime.RequiredError('transferId', 'Required parameter "transferId" was null or undefined when calling getDomainTransfer().');
|
|
432
466
|
}
|
|
467
|
+
if (requestParameters['xLocale'] == null) {
|
|
468
|
+
throw new runtime.RequiredError('xLocale', 'Required parameter "xLocale" was null or undefined when calling getDomainTransfer().');
|
|
469
|
+
}
|
|
433
470
|
queryParameters = {};
|
|
434
471
|
headerParameters = {};
|
|
472
|
+
if (requestParameters['xLocale'] != null) {
|
|
473
|
+
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
474
|
+
}
|
|
435
475
|
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
436
476
|
token = this.configuration.accessToken;
|
|
437
477
|
return [4 /*yield*/, token("bearer", [])];
|
|
@@ -480,13 +520,10 @@ var DomainsApi = /** @class */ (function (_super) {
|
|
|
480
520
|
return __generator(this, function (_a) {
|
|
481
521
|
switch (_a.label) {
|
|
482
522
|
case 0:
|
|
483
|
-
if (requestParameters['
|
|
484
|
-
throw new runtime.RequiredError('
|
|
523
|
+
if (requestParameters['xLocale'] == null) {
|
|
524
|
+
throw new runtime.RequiredError('xLocale', 'Required parameter "xLocale" was null or undefined when calling list().');
|
|
485
525
|
}
|
|
486
526
|
queryParameters = {};
|
|
487
|
-
if (requestParameters['locale'] != null) {
|
|
488
|
-
queryParameters['locale'] = requestParameters['locale'];
|
|
489
|
-
}
|
|
490
527
|
if (requestParameters['filter'] != null) {
|
|
491
528
|
queryParameters['filter'] = requestParameters['filter'];
|
|
492
529
|
}
|
|
@@ -500,6 +537,9 @@ var DomainsApi = /** @class */ (function (_super) {
|
|
|
500
537
|
queryParameters['sortBy'] = requestParameters['sortBy'];
|
|
501
538
|
}
|
|
502
539
|
headerParameters = {};
|
|
540
|
+
if (requestParameters['xLocale'] != null) {
|
|
541
|
+
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
542
|
+
}
|
|
503
543
|
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
504
544
|
token = this.configuration.accessToken;
|
|
505
545
|
return [4 /*yield*/, token("bearer", [])];
|
|
@@ -551,12 +591,18 @@ var DomainsApi = /** @class */ (function (_super) {
|
|
|
551
591
|
if (requestParameters['domainId'] == null) {
|
|
552
592
|
throw new runtime.RequiredError('domainId', 'Required parameter "domainId" was null or undefined when calling update().');
|
|
553
593
|
}
|
|
594
|
+
if (requestParameters['xLocale'] == null) {
|
|
595
|
+
throw new runtime.RequiredError('xLocale', 'Required parameter "xLocale" was null or undefined when calling update().');
|
|
596
|
+
}
|
|
554
597
|
if (requestParameters['updateDomainInput'] == null) {
|
|
555
598
|
throw new runtime.RequiredError('updateDomainInput', 'Required parameter "updateDomainInput" was null or undefined when calling update().');
|
|
556
599
|
}
|
|
557
600
|
queryParameters = {};
|
|
558
601
|
headerParameters = {};
|
|
559
602
|
headerParameters['Content-Type'] = 'application/json';
|
|
603
|
+
if (requestParameters['xLocale'] != null) {
|
|
604
|
+
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
605
|
+
}
|
|
560
606
|
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
561
607
|
token = this.configuration.accessToken;
|
|
562
608
|
return [4 /*yield*/, token("bearer", [])];
|
|
@@ -609,12 +655,18 @@ var DomainsApi = /** @class */ (function (_super) {
|
|
|
609
655
|
if (requestParameters['transferId'] == null) {
|
|
610
656
|
throw new runtime.RequiredError('transferId', 'Required parameter "transferId" was null or undefined when calling updateDomainTransferAuthCode().');
|
|
611
657
|
}
|
|
658
|
+
if (requestParameters['xLocale'] == null) {
|
|
659
|
+
throw new runtime.RequiredError('xLocale', 'Required parameter "xLocale" was null or undefined when calling updateDomainTransferAuthCode().');
|
|
660
|
+
}
|
|
612
661
|
if (requestParameters['updateDomainTransferAuthCodeInput'] == null) {
|
|
613
662
|
throw new runtime.RequiredError('updateDomainTransferAuthCodeInput', 'Required parameter "updateDomainTransferAuthCodeInput" was null or undefined when calling updateDomainTransferAuthCode().');
|
|
614
663
|
}
|
|
615
664
|
queryParameters = {};
|
|
616
665
|
headerParameters = {};
|
|
617
666
|
headerParameters['Content-Type'] = 'application/json';
|
|
667
|
+
if (requestParameters['xLocale'] != null) {
|
|
668
|
+
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
669
|
+
}
|
|
618
670
|
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
619
671
|
token = this.configuration.accessToken;
|
|
620
672
|
return [4 /*yield*/, token("bearer", [])];
|
|
@@ -656,3 +708,73 @@ var DomainsApi = /** @class */ (function (_super) {
|
|
|
656
708
|
return DomainsApi;
|
|
657
709
|
}(runtime.BaseAPI));
|
|
658
710
|
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,7 @@ import * as runtime from '../runtime';
|
|
|
13
13
|
import type { DomainSalesInformationDto } from '../models/index';
|
|
14
14
|
export interface DomainsPublicApiGetDomainSalesInformationRequest {
|
|
15
15
|
domainName: string;
|
|
16
|
-
|
|
16
|
+
xLocale: GetDomainSalesInformationXLocaleEnum;
|
|
17
17
|
}
|
|
18
18
|
/**
|
|
19
19
|
*
|
|
@@ -28,3 +28,11 @@ export declare class DomainsPublicApi extends runtime.BaseAPI {
|
|
|
28
28
|
*/
|
|
29
29
|
getDomainSalesInformation(requestParameters: DomainsPublicApiGetDomainSalesInformationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DomainSalesInformationDto>;
|
|
30
30
|
}
|
|
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.DomainsPublicApi = void 0;
|
|
67
|
+
exports.GetDomainSalesInformationXLocaleEnum = exports.DomainsPublicApi = void 0;
|
|
68
68
|
var runtime = require("../runtime");
|
|
69
69
|
var index_1 = require("../models/index");
|
|
70
70
|
/**
|
|
@@ -87,14 +87,14 @@ 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['
|
|
91
|
-
throw new runtime.RequiredError('
|
|
90
|
+
if (requestParameters['xLocale'] == null) {
|
|
91
|
+
throw new runtime.RequiredError('xLocale', 'Required parameter "xLocale" was null or undefined when calling getDomainSalesInformation().');
|
|
92
92
|
}
|
|
93
93
|
queryParameters = {};
|
|
94
|
-
if (requestParameters['locale'] != null) {
|
|
95
|
-
queryParameters['locale'] = requestParameters['locale'];
|
|
96
|
-
}
|
|
97
94
|
headerParameters = {};
|
|
95
|
+
if (requestParameters['xLocale'] != null) {
|
|
96
|
+
headerParameters['x-locale'] = String(requestParameters['xLocale']);
|
|
97
|
+
}
|
|
98
98
|
return [4 /*yield*/, this.request({
|
|
99
99
|
path: "/domains/by-name/{domainName}/sales-information".replace("{".concat("domainName", "}"), encodeURIComponent(String(requestParameters['domainName']))),
|
|
100
100
|
method: 'GET',
|
|
@@ -128,3 +128,10 @@ var DomainsPublicApi = /** @class */ (function (_super) {
|
|
|
128
128
|
return DomainsPublicApi;
|
|
129
129
|
}(runtime.BaseAPI));
|
|
130
130
|
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,19 +13,27 @@ 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;
|
|
16
17
|
}
|
|
17
18
|
export interface LeadsApiCreateMessageRequest {
|
|
18
19
|
leadId: string;
|
|
20
|
+
xLocale: CreateMessageXLocaleEnum;
|
|
19
21
|
createLeadMessageInput: CreateLeadMessageInput;
|
|
20
22
|
}
|
|
21
|
-
export interface
|
|
23
|
+
export interface LeadsApiGetLeadRequest {
|
|
22
24
|
leadId: string;
|
|
25
|
+
xLocale: GetLeadXLocaleEnum;
|
|
23
26
|
}
|
|
24
27
|
export interface LeadsApiGetMessagesRequest {
|
|
25
28
|
leadId: string;
|
|
29
|
+
xLocale: GetMessagesXLocaleEnum;
|
|
30
|
+
}
|
|
31
|
+
export interface LeadsApiListLeadsRequest {
|
|
32
|
+
xLocale: ListLeadsXLocaleEnum;
|
|
26
33
|
}
|
|
27
34
|
export interface LeadsApiPutOfferRequest {
|
|
28
35
|
leadId: string;
|
|
36
|
+
xLocale: PutOfferXLocaleEnum;
|
|
29
37
|
putLeadOfferInput: PutLeadOfferInput;
|
|
30
38
|
}
|
|
31
39
|
/**
|
|
@@ -51,11 +59,11 @@ export declare class LeadsApi extends runtime.BaseAPI {
|
|
|
51
59
|
/**
|
|
52
60
|
*
|
|
53
61
|
*/
|
|
54
|
-
|
|
62
|
+
getLeadRaw(requestParameters: LeadsApiGetLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntersectionLeadDtoWithLeadDetailsDto>>;
|
|
55
63
|
/**
|
|
56
64
|
*
|
|
57
65
|
*/
|
|
58
|
-
|
|
66
|
+
getLead(requestParameters: LeadsApiGetLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IntersectionLeadDtoWithLeadDetailsDto>;
|
|
59
67
|
/**
|
|
60
68
|
*
|
|
61
69
|
*/
|
|
@@ -67,11 +75,11 @@ export declare class LeadsApi extends runtime.BaseAPI {
|
|
|
67
75
|
/**
|
|
68
76
|
*
|
|
69
77
|
*/
|
|
70
|
-
listLeadsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<IntersectionLeadDtoWithListFieldsDto>>>;
|
|
78
|
+
listLeadsRaw(requestParameters: LeadsApiListLeadsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<IntersectionLeadDtoWithListFieldsDto>>>;
|
|
71
79
|
/**
|
|
72
80
|
*
|
|
73
81
|
*/
|
|
74
|
-
listLeads(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<IntersectionLeadDtoWithListFieldsDto>>;
|
|
82
|
+
listLeads(requestParameters: LeadsApiListLeadsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<IntersectionLeadDtoWithListFieldsDto>>;
|
|
75
83
|
/**
|
|
76
84
|
*
|
|
77
85
|
*/
|
|
@@ -81,3 +89,51 @@ export declare class LeadsApi extends runtime.BaseAPI {
|
|
|
81
89
|
*/
|
|
82
90
|
putOffer(requestParameters: LeadsApiPutOfferRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
83
91
|
}
|
|
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];
|