@randock/nameshift-api-client 0.0.559 → 0.0.561

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.
@@ -325,6 +325,7 @@ src/models/CustomerSuccessListAccountPortfolioSizeDto.ts
325
325
  src/models/CustomerSuccessListAccountUserDto.ts
326
326
  src/models/DeclineBrokeredLeadInput.ts
327
327
  src/models/DeleteDomainsInput.ts
328
+ src/models/DeleteDomainsResponseDto.ts
328
329
  src/models/DomainAppraisalCertificateDto.ts
329
330
  src/models/DomainAppraisalRequestListItemDto.ts
330
331
  src/models/DomainAppraisalRequestStatus.ts
@@ -341,6 +342,7 @@ src/models/DomainLockConfigurationDto.ts
341
342
  src/models/DomainLockDto.ts
342
343
  src/models/DomainMinimalLandingPageDesignDto.ts
343
344
  src/models/DomainModernLandingPageDesignDto.ts
345
+ src/models/DomainNameListDto.ts
344
346
  src/models/DomainOriginalLandingPageDesignDto.ts
345
347
  src/models/DomainPricesChangeDto.ts
346
348
  src/models/DomainSalesInformationDto.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @randock/nameshift-api-client@0.0.559
1
+ ## @randock/nameshift-api-client@0.0.561
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @randock/nameshift-api-client@0.0.559 --save
39
+ npm install @randock/nameshift-api-client@0.0.561 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -44,4 +44,4 @@ _unPublished (not recommended):_
44
44
  ```
45
45
  npm install PATH_TO_GENERATED_PACKAGE --save
46
46
  ```
47
- ca523b0a5d912fb34e6622beccd78557f7ced09fe0199a47579274ea8b2d64ae4f1acfd5ecc34d974175c8cf677d3922
47
+ ad0b981d605a519dc19297b6419856d4fbfa4c5f72cdb9212d4c35f3f18b6eb45fe862a64de9232dd27f8ea7ab06538c
@@ -10,10 +10,11 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { ApplyDomainEditInput, BatchImportPreviewDto, BatchUpdateDomainsInput, BulkUpdateDomainsWithFiltersInput, CheckDomainsNsInput, DeleteDomainsInput, DomainEditPreviewDto, DomainExchangeRateDto, DomainFiltersDto, DomainSearchTranslationDto, DomainUrlDto, DomainVerificationStatusDto, GetAllDomainTransfers200Response, ImportDomainsResponseDto, IntersectionDomainDtoWithHijackerDtoWithAccountDto, JobDto, List200Response2, PreviewDomainEditInput, SellerDomainAffiliateCommissionDto, SellerDomainTransferDto, StartAuctionInput, TranslateDomainSearchInput, UpdateDomainInput, UpdateDomainTransferAuthCodeInput, UpdateDomainTransferIpsTagInput } from '../models/index';
13
+ import type { ApplyDomainEditInput, BatchImportPreviewDto, BatchUpdateDomainsInput, BulkUpdateDomainsWithFiltersInput, CheckDomainsNsInput, DeleteDomainsInput, DeleteDomainsResponseDto, DomainEditPreviewDto, DomainExchangeRateDto, DomainFiltersDto, DomainNameListDto, DomainSearchTranslationDto, DomainUrlDto, DomainVerificationStatusDto, GetAllDomainTransfers200Response, ImportDomainsResponseDto, IntersectionDomainDtoWithHijackerDtoWithAccountDto, JobDto, List200Response2, PreviewDomainEditInput, SellerDomainAffiliateCommissionDto, SellerDomainTransferDto, StartAuctionInput, TranslateDomainSearchInput, UpdateDomainInput, UpdateDomainTransferAuthCodeInput, UpdateDomainTransferIpsTagInput } from '../models/index';
14
14
  export interface DomainsApiApplyDomainEditRequest {
15
15
  applyDomainEditInput: ApplyDomainEditInput;
16
16
  searchFilter?: string;
17
+ nameListId?: string;
17
18
  filter?: {
18
19
  [key: string]: string;
19
20
  };
@@ -32,6 +33,7 @@ export interface DomainsApiBatchUpdateRequest {
32
33
  export interface DomainsApiBulkUpdateDomainsWithFiltersRequest {
33
34
  bulkUpdateDomainsWithFiltersInput: BulkUpdateDomainsWithFiltersInput;
34
35
  searchFilter?: string;
36
+ nameListId?: string;
35
37
  filter?: object;
36
38
  }
37
39
  export interface DomainsApiCheckDnsRequest {
@@ -43,11 +45,15 @@ export interface DomainsApiCheckDnsBatchRequest {
43
45
  export interface DomainsApiCheckDomainVerificationRequest {
44
46
  domainId: string;
45
47
  }
48
+ export interface DomainsApiCreateDomainNameListRequest {
49
+ file: Blob;
50
+ }
46
51
  export interface DomainsApiDeleteDomainsRequest {
47
52
  deleteDomainsInput: DeleteDomainsInput;
48
53
  }
49
54
  export interface DomainsApiExportDomainsRequest {
50
55
  searchFilter?: string;
56
+ nameListId?: string;
51
57
  filter?: object;
52
58
  }
53
59
  export interface DomainsApiGetAffiliateCommissionRequest {
@@ -71,8 +77,12 @@ export interface DomainsApiGetDomainExchangeRateRequest {
71
77
  }
72
78
  export interface DomainsApiGetDomainFiltersCurrenciesRequest {
73
79
  searchFilter?: string;
80
+ nameListId?: string;
74
81
  filter?: object;
75
82
  }
83
+ export interface DomainsApiGetDomainNameListRequest {
84
+ nameListId: string;
85
+ }
76
86
  export interface DomainsApiGetDomainTransferRequest {
77
87
  transferId: string;
78
88
  }
@@ -81,6 +91,7 @@ export interface DomainsApiGetDomainUrlRequest {
81
91
  }
82
92
  export interface DomainsApiListRequest {
83
93
  searchFilter?: string;
94
+ nameListId?: string;
84
95
  filter?: {
85
96
  [key: string]: string;
86
97
  };
@@ -98,6 +109,7 @@ export interface DomainsApiListRequest {
98
109
  export interface DomainsApiPreviewDomainEditRequest {
99
110
  previewDomainEditInput: PreviewDomainEditInput;
100
111
  searchFilter?: string;
112
+ nameListId?: string;
101
113
  filter?: {
102
114
  [key: string]: string;
103
115
  };
@@ -206,15 +218,25 @@ export declare class DomainsApi extends runtime.BaseAPI {
206
218
  */
207
219
  checkDomainVerification(requestParameters: DomainsApiCheckDomainVerificationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DomainVerificationStatusDto>;
208
220
  /**
209
- * Deletes multiple domains by ID. Domains with open leads or active auctions cannot be deleted. **API key scope required:** `DOMAINS_WRITE`. Requests authenticated with a seller session do not need any scope.
221
+ * Takes a text file of domain names and answers with the id of the list. Pass that id as `nameListId` to the domains list, its currencies, its export and the bulk edits, to narrow them to the domains named in the file. The names may each be on a line of their own, or be separated by commas, semicolons or spaces. Letter case does not matter, and an internationalised name may be written in Unicode or in punycode. A name listed more than once counts once. A name the account has no domain for narrows nothing. The first 100 of those are returned as `unmatched`. A list can be filtered on for 7 days, and is deleted after that. **API key scope required:** `DOMAINS_READ`. Requests authenticated with a seller session do not need any scope.
222
+ * Upload a list of domain names to filter on
223
+ */
224
+ createDomainNameListRaw(requestParameters: DomainsApiCreateDomainNameListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DomainNameListDto>>;
225
+ /**
226
+ * Takes a text file of domain names and answers with the id of the list. Pass that id as `nameListId` to the domains list, its currencies, its export and the bulk edits, to narrow them to the domains named in the file. The names may each be on a line of their own, or be separated by commas, semicolons or spaces. Letter case does not matter, and an internationalised name may be written in Unicode or in punycode. A name listed more than once counts once. A name the account has no domain for narrows nothing. The first 100 of those are returned as `unmatched`. A list can be filtered on for 7 days, and is deleted after that. **API key scope required:** `DOMAINS_READ`. Requests authenticated with a seller session do not need any scope.
227
+ * Upload a list of domain names to filter on
228
+ */
229
+ createDomainNameList(requestParameters: DomainsApiCreateDomainNameListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DomainNameListDto>;
230
+ /**
231
+ * Deletes multiple domains by ID. Up to 10 are deleted in the request, and refused all together if one cannot be deleted. Any more are deleted by a job, which ignores the ones that cannot be. **API key scope required:** `DOMAINS_WRITE`. Requests authenticated with a seller session do not need any scope.
210
232
  * Delete domains
211
233
  */
212
- deleteDomainsRaw(requestParameters: DomainsApiDeleteDomainsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
234
+ deleteDomainsRaw(requestParameters: DomainsApiDeleteDomainsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DeleteDomainsResponseDto>>;
213
235
  /**
214
- * Deletes multiple domains by ID. Domains with open leads or active auctions cannot be deleted. **API key scope required:** `DOMAINS_WRITE`. Requests authenticated with a seller session do not need any scope.
236
+ * Deletes multiple domains by ID. Up to 10 are deleted in the request, and refused all together if one cannot be deleted. Any more are deleted by a job, which ignores the ones that cannot be. **API key scope required:** `DOMAINS_WRITE`. Requests authenticated with a seller session do not need any scope.
215
237
  * Delete domains
216
238
  */
217
- deleteDomains(requestParameters: DomainsApiDeleteDomainsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
239
+ deleteDomains(requestParameters: DomainsApiDeleteDomainsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeleteDomainsResponseDto>;
218
240
  /**
219
241
  * Queues an export of the domains matching the given filters and search for the current seller account. Without them the whole portfolio is exported. The download link is sent by email. **API key scope required:** `DOMAINS_READ`. Requests authenticated with a seller session do not need any scope.
220
242
  * Export domains
@@ -285,6 +307,16 @@ export declare class DomainsApi extends runtime.BaseAPI {
285
307
  * Get domain filter currencies
286
308
  */
287
309
  getDomainFiltersCurrencies(requestParameters?: DomainsApiGetDomainFiltersCurrenciesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<string>>;
310
+ /**
311
+ * Returns a list uploaded to POST /private/domains/name-lists as it stands now: how many of its names the account has a domain for, and the first 100 it has none for. **API key scope required:** `DOMAINS_READ`. Requests authenticated with a seller session do not need any scope.
312
+ * Get an uploaded list of domain names
313
+ */
314
+ getDomainNameListRaw(requestParameters: DomainsApiGetDomainNameListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DomainNameListDto>>;
315
+ /**
316
+ * Returns a list uploaded to POST /private/domains/name-lists as it stands now: how many of its names the account has a domain for, and the first 100 it has none for. **API key scope required:** `DOMAINS_READ`. Requests authenticated with a seller session do not need any scope.
317
+ * Get an uploaded list of domain names
318
+ */
319
+ getDomainNameList(requestParameters: DomainsApiGetDomainNameListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DomainNameListDto>;
288
320
  /**
289
321
  * Returns domain transfer information. **API key scope required:** `TRANSFERS_READ`. Requests authenticated with a seller session do not need any scope.
290
322
  * Get domain transfer
@@ -92,6 +92,9 @@ var DomainsApi = /** @class */ (function (_super) {
92
92
  if (requestParameters['searchFilter'] != null) {
93
93
  queryParameters['searchFilter'] = requestParameters['searchFilter'];
94
94
  }
95
+ if (requestParameters['nameListId'] != null) {
96
+ queryParameters['nameListId'] = requestParameters['nameListId'];
97
+ }
95
98
  if (requestParameters['filter'] != null) {
96
99
  queryParameters['filter'] = requestParameters['filter'];
97
100
  }
@@ -392,6 +395,9 @@ var DomainsApi = /** @class */ (function (_super) {
392
395
  if (requestParameters['searchFilter'] != null) {
393
396
  queryParameters['searchFilter'] = requestParameters['searchFilter'];
394
397
  }
398
+ if (requestParameters['nameListId'] != null) {
399
+ queryParameters['nameListId'] = requestParameters['nameListId'];
400
+ }
395
401
  if (requestParameters['filter'] != null) {
396
402
  queryParameters['filter'] = requestParameters['filter'];
397
403
  }
@@ -634,7 +640,88 @@ var DomainsApi = /** @class */ (function (_super) {
634
640
  });
635
641
  };
636
642
  /**
637
- * Deletes multiple domains by ID. Domains with open leads or active auctions cannot be deleted. **API key scope required:** `DOMAINS_WRITE`. Requests authenticated with a seller session do not need any scope.
643
+ * Takes a text file of domain names and answers with the id of the list. Pass that id as `nameListId` to the domains list, its currencies, its export and the bulk edits, to narrow them to the domains named in the file. The names may each be on a line of their own, or be separated by commas, semicolons or spaces. Letter case does not matter, and an internationalised name may be written in Unicode or in punycode. A name listed more than once counts once. A name the account has no domain for narrows nothing. The first 100 of those are returned as `unmatched`. A list can be filtered on for 7 days, and is deleted after that. **API key scope required:** `DOMAINS_READ`. Requests authenticated with a seller session do not need any scope.
644
+ * Upload a list of domain names to filter on
645
+ */
646
+ DomainsApi.prototype.createDomainNameListRaw = function (requestParameters, initOverrides) {
647
+ return __awaiter(this, void 0, void 0, function () {
648
+ var queryParameters, headerParameters, _a, _b, token, tokenString, consumes, canConsumeForm, formParams, useForm, response;
649
+ return __generator(this, function (_c) {
650
+ switch (_c.label) {
651
+ case 0:
652
+ if (requestParameters['file'] == null) {
653
+ throw new runtime.RequiredError('file', 'Required parameter "file" was null or undefined when calling createDomainNameList().');
654
+ }
655
+ queryParameters = {};
656
+ headerParameters = {};
657
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
658
+ _a = headerParameters;
659
+ _b = "apikey";
660
+ return [4 /*yield*/, this.configuration.apiKey("apikey")];
661
+ case 1:
662
+ _a[_b] = _c.sent(); // api_key authentication
663
+ _c.label = 2;
664
+ case 2:
665
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
666
+ token = this.configuration.accessToken;
667
+ return [4 /*yield*/, token("bearer", [])];
668
+ case 3:
669
+ tokenString = _c.sent();
670
+ if (tokenString) {
671
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
672
+ }
673
+ _c.label = 4;
674
+ case 4:
675
+ consumes = [
676
+ { contentType: 'multipart/form-data' },
677
+ ];
678
+ canConsumeForm = runtime.canConsumeForm(consumes);
679
+ useForm = false;
680
+ // use FormData to transmit files using content-type "multipart/form-data"
681
+ useForm = canConsumeForm;
682
+ if (useForm) {
683
+ formParams = new FormData();
684
+ }
685
+ else {
686
+ formParams = new URLSearchParams();
687
+ }
688
+ if (requestParameters['file'] != null) {
689
+ formParams.append('file', requestParameters['file']);
690
+ }
691
+ return [4 /*yield*/, this.request({
692
+ path: "/private/domains/name-lists",
693
+ method: 'POST',
694
+ headers: headerParameters,
695
+ query: queryParameters,
696
+ body: formParams,
697
+ }, initOverrides)];
698
+ case 5:
699
+ response = _c.sent();
700
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.DomainNameListDtoFromJSON)(jsonValue); })];
701
+ }
702
+ });
703
+ });
704
+ };
705
+ /**
706
+ * Takes a text file of domain names and answers with the id of the list. Pass that id as `nameListId` to the domains list, its currencies, its export and the bulk edits, to narrow them to the domains named in the file. The names may each be on a line of their own, or be separated by commas, semicolons or spaces. Letter case does not matter, and an internationalised name may be written in Unicode or in punycode. A name listed more than once counts once. A name the account has no domain for narrows nothing. The first 100 of those are returned as `unmatched`. A list can be filtered on for 7 days, and is deleted after that. **API key scope required:** `DOMAINS_READ`. Requests authenticated with a seller session do not need any scope.
707
+ * Upload a list of domain names to filter on
708
+ */
709
+ DomainsApi.prototype.createDomainNameList = function (requestParameters, initOverrides) {
710
+ return __awaiter(this, void 0, void 0, function () {
711
+ var response;
712
+ return __generator(this, function (_a) {
713
+ switch (_a.label) {
714
+ case 0: return [4 /*yield*/, this.createDomainNameListRaw(requestParameters, initOverrides)];
715
+ case 1:
716
+ response = _a.sent();
717
+ return [4 /*yield*/, response.value()];
718
+ case 2: return [2 /*return*/, _a.sent()];
719
+ }
720
+ });
721
+ });
722
+ };
723
+ /**
724
+ * Deletes multiple domains by ID. Up to 10 are deleted in the request, and refused all together if one cannot be deleted. Any more are deleted by a job, which ignores the ones that cannot be. **API key scope required:** `DOMAINS_WRITE`. Requests authenticated with a seller session do not need any scope.
638
725
  * Delete domains
639
726
  */
640
727
  DomainsApi.prototype.deleteDomainsRaw = function (requestParameters, initOverrides) {
@@ -675,23 +762,25 @@ var DomainsApi = /** @class */ (function (_super) {
675
762
  }, initOverrides)];
676
763
  case 5:
677
764
  response = _c.sent();
678
- return [2 /*return*/, new runtime.VoidApiResponse(response)];
765
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.DeleteDomainsResponseDtoFromJSON)(jsonValue); })];
679
766
  }
680
767
  });
681
768
  });
682
769
  };
683
770
  /**
684
- * Deletes multiple domains by ID. Domains with open leads or active auctions cannot be deleted. **API key scope required:** `DOMAINS_WRITE`. Requests authenticated with a seller session do not need any scope.
771
+ * Deletes multiple domains by ID. Up to 10 are deleted in the request, and refused all together if one cannot be deleted. Any more are deleted by a job, which ignores the ones that cannot be. **API key scope required:** `DOMAINS_WRITE`. Requests authenticated with a seller session do not need any scope.
685
772
  * Delete domains
686
773
  */
687
774
  DomainsApi.prototype.deleteDomains = function (requestParameters, initOverrides) {
688
775
  return __awaiter(this, void 0, void 0, function () {
776
+ var response;
689
777
  return __generator(this, function (_a) {
690
778
  switch (_a.label) {
691
779
  case 0: return [4 /*yield*/, this.deleteDomainsRaw(requestParameters, initOverrides)];
692
780
  case 1:
693
- _a.sent();
694
- return [2 /*return*/];
781
+ response = _a.sent();
782
+ return [4 /*yield*/, response.value()];
783
+ case 2: return [2 /*return*/, _a.sent()];
695
784
  }
696
785
  });
697
786
  });
@@ -710,6 +799,9 @@ var DomainsApi = /** @class */ (function (_super) {
710
799
  if (requestParameters['searchFilter'] != null) {
711
800
  queryParameters['searchFilter'] = requestParameters['searchFilter'];
712
801
  }
802
+ if (requestParameters['nameListId'] != null) {
803
+ queryParameters['nameListId'] = requestParameters['nameListId'];
804
+ }
713
805
  if (requestParameters['filter'] != null) {
714
806
  queryParameters['filter'] = requestParameters['filter'];
715
807
  }
@@ -1106,6 +1198,9 @@ var DomainsApi = /** @class */ (function (_super) {
1106
1198
  if (requestParameters['searchFilter'] != null) {
1107
1199
  queryParameters['searchFilter'] = requestParameters['searchFilter'];
1108
1200
  }
1201
+ if (requestParameters['nameListId'] != null) {
1202
+ queryParameters['nameListId'] = requestParameters['nameListId'];
1203
+ }
1109
1204
  if (requestParameters['filter'] != null) {
1110
1205
  queryParameters['filter'] = requestParameters['filter'];
1111
1206
  }
@@ -1159,6 +1254,69 @@ var DomainsApi = /** @class */ (function (_super) {
1159
1254
  });
1160
1255
  });
1161
1256
  };
1257
+ /**
1258
+ * Returns a list uploaded to POST /private/domains/name-lists as it stands now: how many of its names the account has a domain for, and the first 100 it has none for. **API key scope required:** `DOMAINS_READ`. Requests authenticated with a seller session do not need any scope.
1259
+ * Get an uploaded list of domain names
1260
+ */
1261
+ DomainsApi.prototype.getDomainNameListRaw = function (requestParameters, initOverrides) {
1262
+ return __awaiter(this, void 0, void 0, function () {
1263
+ var queryParameters, headerParameters, _a, _b, token, tokenString, response;
1264
+ return __generator(this, function (_c) {
1265
+ switch (_c.label) {
1266
+ case 0:
1267
+ if (requestParameters['nameListId'] == null) {
1268
+ throw new runtime.RequiredError('nameListId', 'Required parameter "nameListId" was null or undefined when calling getDomainNameList().');
1269
+ }
1270
+ queryParameters = {};
1271
+ headerParameters = {};
1272
+ if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
1273
+ _a = headerParameters;
1274
+ _b = "apikey";
1275
+ return [4 /*yield*/, this.configuration.apiKey("apikey")];
1276
+ case 1:
1277
+ _a[_b] = _c.sent(); // api_key authentication
1278
+ _c.label = 2;
1279
+ case 2:
1280
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
1281
+ token = this.configuration.accessToken;
1282
+ return [4 /*yield*/, token("bearer", [])];
1283
+ case 3:
1284
+ tokenString = _c.sent();
1285
+ if (tokenString) {
1286
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
1287
+ }
1288
+ _c.label = 4;
1289
+ case 4: return [4 /*yield*/, this.request({
1290
+ path: "/private/domains/name-lists/{nameListId}".replace("{".concat("nameListId", "}"), encodeURIComponent(String(requestParameters['nameListId']))),
1291
+ method: 'GET',
1292
+ headers: headerParameters,
1293
+ query: queryParameters,
1294
+ }, initOverrides)];
1295
+ case 5:
1296
+ response = _c.sent();
1297
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.DomainNameListDtoFromJSON)(jsonValue); })];
1298
+ }
1299
+ });
1300
+ });
1301
+ };
1302
+ /**
1303
+ * Returns a list uploaded to POST /private/domains/name-lists as it stands now: how many of its names the account has a domain for, and the first 100 it has none for. **API key scope required:** `DOMAINS_READ`. Requests authenticated with a seller session do not need any scope.
1304
+ * Get an uploaded list of domain names
1305
+ */
1306
+ DomainsApi.prototype.getDomainNameList = function (requestParameters, initOverrides) {
1307
+ return __awaiter(this, void 0, void 0, function () {
1308
+ var response;
1309
+ return __generator(this, function (_a) {
1310
+ switch (_a.label) {
1311
+ case 0: return [4 /*yield*/, this.getDomainNameListRaw(requestParameters, initOverrides)];
1312
+ case 1:
1313
+ response = _a.sent();
1314
+ return [4 /*yield*/, response.value()];
1315
+ case 2: return [2 /*return*/, _a.sent()];
1316
+ }
1317
+ });
1318
+ });
1319
+ };
1162
1320
  /**
1163
1321
  * Returns domain transfer information. **API key scope required:** `TRANSFERS_READ`. Requests authenticated with a seller session do not need any scope.
1164
1322
  * Get domain transfer
@@ -1299,6 +1457,9 @@ var DomainsApi = /** @class */ (function (_super) {
1299
1457
  if (requestParameters['searchFilter'] != null) {
1300
1458
  queryParameters['searchFilter'] = requestParameters['searchFilter'];
1301
1459
  }
1460
+ if (requestParameters['nameListId'] != null) {
1461
+ queryParameters['nameListId'] = requestParameters['nameListId'];
1462
+ }
1302
1463
  if (requestParameters['filter'] != null) {
1303
1464
  queryParameters['filter'] = requestParameters['filter'];
1304
1465
  }
@@ -1399,6 +1560,9 @@ var DomainsApi = /** @class */ (function (_super) {
1399
1560
  if (requestParameters['searchFilter'] != null) {
1400
1561
  queryParameters['searchFilter'] = requestParameters['searchFilter'];
1401
1562
  }
1563
+ if (requestParameters['nameListId'] != null) {
1564
+ queryParameters['nameListId'] = requestParameters['nameListId'];
1565
+ }
1402
1566
  if (requestParameters['filter'] != null) {
1403
1567
  queryParameters['filter'] = requestParameters['filter'];
1404
1568
  }
@@ -97,6 +97,8 @@ export declare const BuyerNotificationDtoTypeEnum: {
97
97
  readonly EXPORT_COMPLETED: "export_completed";
98
98
  readonly DOMAIN_IMPORT_FINISHED: "domain_import_finished";
99
99
  readonly DOMAIN_IMPORT_FAILED: "domain_import_failed";
100
+ readonly DOMAIN_BULK_DELETE_FINISHED: "domain_bulk_delete_finished";
101
+ readonly DOMAIN_BULK_DELETE_FAILED: "domain_bulk_delete_failed";
100
102
  readonly DOMAIN_OFFER_VERIFIED_BUYER_ACCESS_LINK_EMAIL: "domain_offer_verified_buyer_access_link_email";
101
103
  readonly DOMAIN_OFFER_RECEIVED_BUYER_ACCESS_LINK_EMAIL: "domain_offer_received_buyer_access_link_email";
102
104
  readonly DOMAIN_OFFER_ACCEPTED_CONTINUE_ORDER_EMAIL: "domain_offer_accepted_continue_order_email";
@@ -58,6 +58,8 @@ exports.BuyerNotificationDtoTypeEnum = {
58
58
  EXPORT_COMPLETED: 'export_completed',
59
59
  DOMAIN_IMPORT_FINISHED: 'domain_import_finished',
60
60
  DOMAIN_IMPORT_FAILED: 'domain_import_failed',
61
+ DOMAIN_BULK_DELETE_FINISHED: 'domain_bulk_delete_finished',
62
+ DOMAIN_BULK_DELETE_FAILED: 'domain_bulk_delete_failed',
61
63
  DOMAIN_OFFER_VERIFIED_BUYER_ACCESS_LINK_EMAIL: 'domain_offer_verified_buyer_access_link_email',
62
64
  DOMAIN_OFFER_RECEIVED_BUYER_ACCESS_LINK_EMAIL: 'domain_offer_received_buyer_access_link_email',
63
65
  DOMAIN_OFFER_ACCEPTED_CONTINUE_ORDER_EMAIL: 'domain_offer_accepted_continue_order_email',
@@ -90,6 +90,8 @@ export declare const BuyerNotificationListItemDtoTypeEnum: {
90
90
  readonly EXPORT_COMPLETED: "export_completed";
91
91
  readonly DOMAIN_IMPORT_FINISHED: "domain_import_finished";
92
92
  readonly DOMAIN_IMPORT_FAILED: "domain_import_failed";
93
+ readonly DOMAIN_BULK_DELETE_FINISHED: "domain_bulk_delete_finished";
94
+ readonly DOMAIN_BULK_DELETE_FAILED: "domain_bulk_delete_failed";
93
95
  readonly DOMAIN_OFFER_VERIFIED_BUYER_ACCESS_LINK_EMAIL: "domain_offer_verified_buyer_access_link_email";
94
96
  readonly DOMAIN_OFFER_RECEIVED_BUYER_ACCESS_LINK_EMAIL: "domain_offer_received_buyer_access_link_email";
95
97
  readonly DOMAIN_OFFER_ACCEPTED_CONTINUE_ORDER_EMAIL: "domain_offer_accepted_continue_order_email";
@@ -57,6 +57,8 @@ exports.BuyerNotificationListItemDtoTypeEnum = {
57
57
  EXPORT_COMPLETED: 'export_completed',
58
58
  DOMAIN_IMPORT_FINISHED: 'domain_import_finished',
59
59
  DOMAIN_IMPORT_FAILED: 'domain_import_failed',
60
+ DOMAIN_BULK_DELETE_FINISHED: 'domain_bulk_delete_finished',
61
+ DOMAIN_BULK_DELETE_FAILED: 'domain_bulk_delete_failed',
60
62
  DOMAIN_OFFER_VERIFIED_BUYER_ACCESS_LINK_EMAIL: 'domain_offer_verified_buyer_access_link_email',
61
63
  DOMAIN_OFFER_RECEIVED_BUYER_ACCESS_LINK_EMAIL: 'domain_offer_received_buyer_access_link_email',
62
64
  DOMAIN_OFFER_ACCEPTED_CONTINUE_ORDER_EMAIL: 'domain_offer_accepted_continue_order_email',
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Nameshift
3
+ * Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { JobDto } from './JobDto';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface DeleteDomainsResponseDto
17
+ */
18
+ export interface DeleteDomainsResponseDto {
19
+ /**
20
+ * The background job deleting the domains. Null for a few domains, which are deleted before the response is sent.
21
+ * @type {JobDto}
22
+ * @memberof DeleteDomainsResponseDto
23
+ */
24
+ job: JobDto | null;
25
+ }
26
+ /**
27
+ * Check if a given object implements the DeleteDomainsResponseDto interface.
28
+ */
29
+ export declare function instanceOfDeleteDomainsResponseDto(value: object): value is DeleteDomainsResponseDto;
30
+ export declare function DeleteDomainsResponseDtoFromJSON(json: any): DeleteDomainsResponseDto;
31
+ export declare function DeleteDomainsResponseDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteDomainsResponseDto;
32
+ export declare function DeleteDomainsResponseDtoToJSON(json: any): DeleteDomainsResponseDto;
33
+ export declare function DeleteDomainsResponseDtoToJSONTyped(value?: DeleteDomainsResponseDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Nameshift
6
+ * Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfDeleteDomainsResponseDto = instanceOfDeleteDomainsResponseDto;
17
+ exports.DeleteDomainsResponseDtoFromJSON = DeleteDomainsResponseDtoFromJSON;
18
+ exports.DeleteDomainsResponseDtoFromJSONTyped = DeleteDomainsResponseDtoFromJSONTyped;
19
+ exports.DeleteDomainsResponseDtoToJSON = DeleteDomainsResponseDtoToJSON;
20
+ exports.DeleteDomainsResponseDtoToJSONTyped = DeleteDomainsResponseDtoToJSONTyped;
21
+ var JobDto_1 = require("./JobDto");
22
+ /**
23
+ * Check if a given object implements the DeleteDomainsResponseDto interface.
24
+ */
25
+ function instanceOfDeleteDomainsResponseDto(value) {
26
+ if (!('job' in value) || value['job'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ function DeleteDomainsResponseDtoFromJSON(json) {
31
+ return DeleteDomainsResponseDtoFromJSONTyped(json, false);
32
+ }
33
+ function DeleteDomainsResponseDtoFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'job': (0, JobDto_1.JobDtoFromJSON)(json['job']),
39
+ };
40
+ }
41
+ function DeleteDomainsResponseDtoToJSON(json) {
42
+ return DeleteDomainsResponseDtoToJSONTyped(json, false);
43
+ }
44
+ function DeleteDomainsResponseDtoToJSONTyped(value, ignoreDiscriminator) {
45
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
46
+ if (value == null) {
47
+ return value;
48
+ }
49
+ return {
50
+ 'job': (0, JobDto_1.JobDtoToJSON)(value['job']),
51
+ };
52
+ }
@@ -0,0 +1,56 @@
1
+ /**
2
+ * Nameshift
3
+ * Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface DomainNameListDto
16
+ */
17
+ export interface DomainNameListDto {
18
+ /**
19
+ * Pass it as `nameListId` to the domains list, its export and the bulk edits, to narrow them to the domains of the list.
20
+ * @type {string}
21
+ * @memberof DomainNameListDto
22
+ */
23
+ id: string;
24
+ /**
25
+ * The distinct domain names the list held.
26
+ * @type {number}
27
+ * @memberof DomainNameListDto
28
+ */
29
+ total: number;
30
+ /**
31
+ * How many of them are a domain of the account.
32
+ * @type {number}
33
+ * @memberof DomainNameListDto
34
+ */
35
+ matched: number;
36
+ /**
37
+ * The names that are not a domain of the account, in the order of the list. At most the first 100; `total` minus `matched` is how many there are.
38
+ * @type {Array<string>}
39
+ * @memberof DomainNameListDto
40
+ */
41
+ unmatched: Array<string>;
42
+ /**
43
+ * Until when the list can be filtered on.
44
+ * @type {Date}
45
+ * @memberof DomainNameListDto
46
+ */
47
+ expiresAt: Date;
48
+ }
49
+ /**
50
+ * Check if a given object implements the DomainNameListDto interface.
51
+ */
52
+ export declare function instanceOfDomainNameListDto(value: object): value is DomainNameListDto;
53
+ export declare function DomainNameListDtoFromJSON(json: any): DomainNameListDto;
54
+ export declare function DomainNameListDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): DomainNameListDto;
55
+ export declare function DomainNameListDtoToJSON(json: any): DomainNameListDto;
56
+ export declare function DomainNameListDtoToJSONTyped(value?: DomainNameListDto | null, ignoreDiscriminator?: boolean): any;