@randock/nameshift-api-client 0.0.560 → 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
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @randock/nameshift-api-client@0.0.560
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.560 --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
- 8ba23d671bce08d7b4bb18010a01fba7f92c1c2e8cfdbabbfdd786dacabea17b91059fff2c6f04d47491d576f015bb7d
47
+ ad0b981d605a519dc19297b6419856d4fbfa4c5f72cdb9212d4c35f3f18b6eb45fe862a64de9232dd27f8ea7ab06538c
@@ -10,7 +10,7 @@
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, DomainNameListDto, 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;
@@ -228,15 +228,15 @@ export declare class DomainsApi extends runtime.BaseAPI {
228
228
  */
229
229
  createDomainNameList(requestParameters: DomainsApiCreateDomainNameListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DomainNameListDto>;
230
230
  /**
231
- * 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.
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.
232
232
  * Delete domains
233
233
  */
234
- deleteDomainsRaw(requestParameters: DomainsApiDeleteDomainsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
234
+ deleteDomainsRaw(requestParameters: DomainsApiDeleteDomainsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DeleteDomainsResponseDto>>;
235
235
  /**
236
- * 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.
237
237
  * Delete domains
238
238
  */
239
- deleteDomains(requestParameters: DomainsApiDeleteDomainsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
239
+ deleteDomains(requestParameters: DomainsApiDeleteDomainsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeleteDomainsResponseDto>;
240
240
  /**
241
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.
242
242
  * Export domains
@@ -721,7 +721,7 @@ var DomainsApi = /** @class */ (function (_super) {
721
721
  });
722
722
  };
723
723
  /**
724
- * 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.
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.
725
725
  * Delete domains
726
726
  */
727
727
  DomainsApi.prototype.deleteDomainsRaw = function (requestParameters, initOverrides) {
@@ -762,23 +762,25 @@ var DomainsApi = /** @class */ (function (_super) {
762
762
  }, initOverrides)];
763
763
  case 5:
764
764
  response = _c.sent();
765
- return [2 /*return*/, new runtime.VoidApiResponse(response)];
765
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.DeleteDomainsResponseDtoFromJSON)(jsonValue); })];
766
766
  }
767
767
  });
768
768
  });
769
769
  };
770
770
  /**
771
- * 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.
772
772
  * Delete domains
773
773
  */
774
774
  DomainsApi.prototype.deleteDomains = function (requestParameters, initOverrides) {
775
775
  return __awaiter(this, void 0, void 0, function () {
776
+ var response;
776
777
  return __generator(this, function (_a) {
777
778
  switch (_a.label) {
778
779
  case 0: return [4 /*yield*/, this.deleteDomainsRaw(requestParameters, initOverrides)];
779
780
  case 1:
780
- _a.sent();
781
- return [2 /*return*/];
781
+ response = _a.sent();
782
+ return [4 /*yield*/, response.value()];
783
+ case 2: return [2 /*return*/, _a.sent()];
782
784
  }
783
785
  });
784
786
  });
@@ -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
+ }
@@ -16,6 +16,7 @@
16
16
  export declare const JobType: {
17
17
  readonly BULK_EDIT_DOMAINS: "bulk_edit_domains";
18
18
  readonly IMPORT_DOMAINS: "import_domains";
19
+ readonly BULK_DELETE_DOMAINS: "bulk_delete_domains";
19
20
  };
20
21
  export type JobType = typeof JobType[keyof typeof JobType];
21
22
  export declare function instanceOfJobType(value: any): boolean;
@@ -25,7 +25,8 @@ exports.JobTypeToJSONTyped = JobTypeToJSONTyped;
25
25
  */
26
26
  exports.JobType = {
27
27
  BULK_EDIT_DOMAINS: 'bulk_edit_domains',
28
- IMPORT_DOMAINS: 'import_domains'
28
+ IMPORT_DOMAINS: 'import_domains',
29
+ BULK_DELETE_DOMAINS: 'bulk_delete_domains'
29
30
  };
30
31
  function instanceOfJobType(value) {
31
32
  for (var key in exports.JobType) {
@@ -97,6 +97,8 @@ export declare const UserNotificationDtoTypeEnum: {
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.UserNotificationDtoTypeEnum = {
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 UserNotificationListItemDtoTypeEnum: {
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.UserNotificationListItemDtoTypeEnum = {
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',
@@ -276,6 +276,7 @@ export * from './CustomerSuccessListAccountPortfolioSizeDto';
276
276
  export * from './CustomerSuccessListAccountUserDto';
277
277
  export * from './DeclineBrokeredLeadInput';
278
278
  export * from './DeleteDomainsInput';
279
+ export * from './DeleteDomainsResponseDto';
279
280
  export * from './DomainAppraisalCertificateDto';
280
281
  export * from './DomainAppraisalRequestListItemDto';
281
282
  export * from './DomainAppraisalRequestStatus';
@@ -294,6 +294,7 @@ __exportStar(require("./CustomerSuccessListAccountPortfolioSizeDto"), exports);
294
294
  __exportStar(require("./CustomerSuccessListAccountUserDto"), exports);
295
295
  __exportStar(require("./DeclineBrokeredLeadInput"), exports);
296
296
  __exportStar(require("./DeleteDomainsInput"), exports);
297
+ __exportStar(require("./DeleteDomainsResponseDto"), exports);
297
298
  __exportStar(require("./DomainAppraisalCertificateDto"), exports);
298
299
  __exportStar(require("./DomainAppraisalRequestListItemDto"), exports);
299
300
  __exportStar(require("./DomainAppraisalRequestStatus"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randock/nameshift-api-client",
3
- "version": "0.0.560",
3
+ "version": "0.0.561",
4
4
  "description": "OpenAPI client for @randock/nameshift-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -22,6 +22,7 @@ import type {
22
22
  BulkUpdateDomainsWithFiltersInput,
23
23
  CheckDomainsNsInput,
24
24
  DeleteDomainsInput,
25
+ DeleteDomainsResponseDto,
25
26
  DomainEditPreviewDto,
26
27
  DomainExchangeRateDto,
27
28
  DomainFiltersDto,
@@ -59,6 +60,8 @@ import {
59
60
  CheckDomainsNsInputToJSON,
60
61
  DeleteDomainsInputFromJSON,
61
62
  DeleteDomainsInputToJSON,
63
+ DeleteDomainsResponseDtoFromJSON,
64
+ DeleteDomainsResponseDtoToJSON,
62
65
  DomainEditPreviewDtoFromJSON,
63
66
  DomainEditPreviewDtoToJSON,
64
67
  DomainExchangeRateDtoFromJSON,
@@ -763,10 +766,10 @@ export class DomainsApi extends runtime.BaseAPI {
763
766
  }
764
767
 
765
768
  /**
766
- * 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.
769
+ * 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.
767
770
  * Delete domains
768
771
  */
769
- async deleteDomainsRaw(requestParameters: DomainsApiDeleteDomainsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
772
+ async deleteDomainsRaw(requestParameters: DomainsApiDeleteDomainsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DeleteDomainsResponseDto>> {
770
773
  if (requestParameters['deleteDomainsInput'] == null) {
771
774
  throw new runtime.RequiredError(
772
775
  'deleteDomainsInput',
@@ -800,15 +803,16 @@ export class DomainsApi extends runtime.BaseAPI {
800
803
  body: DeleteDomainsInputToJSON(requestParameters['deleteDomainsInput']),
801
804
  }, initOverrides);
802
805
 
803
- return new runtime.VoidApiResponse(response);
806
+ return new runtime.JSONApiResponse(response, (jsonValue) => DeleteDomainsResponseDtoFromJSON(jsonValue));
804
807
  }
805
808
 
806
809
  /**
807
- * 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.
810
+ * 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.
808
811
  * Delete domains
809
812
  */
810
- async deleteDomains(requestParameters: DomainsApiDeleteDomainsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
811
- await this.deleteDomainsRaw(requestParameters, initOverrides);
813
+ async deleteDomains(requestParameters: DomainsApiDeleteDomainsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeleteDomainsResponseDto> {
814
+ const response = await this.deleteDomainsRaw(requestParameters, initOverrides);
815
+ return await response.value();
812
816
  }
813
817
 
814
818
  /**
@@ -110,6 +110,8 @@ export const BuyerNotificationDtoTypeEnum = {
110
110
  EXPORT_COMPLETED: 'export_completed',
111
111
  DOMAIN_IMPORT_FINISHED: 'domain_import_finished',
112
112
  DOMAIN_IMPORT_FAILED: 'domain_import_failed',
113
+ DOMAIN_BULK_DELETE_FINISHED: 'domain_bulk_delete_finished',
114
+ DOMAIN_BULK_DELETE_FAILED: 'domain_bulk_delete_failed',
113
115
  DOMAIN_OFFER_VERIFIED_BUYER_ACCESS_LINK_EMAIL: 'domain_offer_verified_buyer_access_link_email',
114
116
  DOMAIN_OFFER_RECEIVED_BUYER_ACCESS_LINK_EMAIL: 'domain_offer_received_buyer_access_link_email',
115
117
  DOMAIN_OFFER_ACCEPTED_CONTINUE_ORDER_EMAIL: 'domain_offer_accepted_continue_order_email',
@@ -96,6 +96,8 @@ export const BuyerNotificationListItemDtoTypeEnum = {
96
96
  EXPORT_COMPLETED: 'export_completed',
97
97
  DOMAIN_IMPORT_FINISHED: 'domain_import_finished',
98
98
  DOMAIN_IMPORT_FAILED: 'domain_import_failed',
99
+ DOMAIN_BULK_DELETE_FINISHED: 'domain_bulk_delete_finished',
100
+ DOMAIN_BULK_DELETE_FAILED: 'domain_bulk_delete_failed',
99
101
  DOMAIN_OFFER_VERIFIED_BUYER_ACCESS_LINK_EMAIL: 'domain_offer_verified_buyer_access_link_email',
100
102
  DOMAIN_OFFER_RECEIVED_BUYER_ACCESS_LINK_EMAIL: 'domain_offer_received_buyer_access_link_email',
101
103
  DOMAIN_OFFER_ACCEPTED_CONTINUE_ORDER_EMAIL: 'domain_offer_accepted_continue_order_email',
@@ -0,0 +1,74 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Nameshift
5
+ * 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.
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { JobDto } from './JobDto';
17
+ import {
18
+ JobDtoFromJSON,
19
+ JobDtoFromJSONTyped,
20
+ JobDtoToJSON,
21
+ JobDtoToJSONTyped,
22
+ } from './JobDto';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface DeleteDomainsResponseDto
28
+ */
29
+ export interface DeleteDomainsResponseDto {
30
+ /**
31
+ * The background job deleting the domains. Null for a few domains, which are deleted before the response is sent.
32
+ * @type {JobDto}
33
+ * @memberof DeleteDomainsResponseDto
34
+ */
35
+ job: JobDto | null;
36
+ }
37
+
38
+ /**
39
+ * Check if a given object implements the DeleteDomainsResponseDto interface.
40
+ */
41
+ export function instanceOfDeleteDomainsResponseDto(value: object): value is DeleteDomainsResponseDto {
42
+ if (!('job' in value) || value['job'] === undefined) return false;
43
+ return true;
44
+ }
45
+
46
+ export function DeleteDomainsResponseDtoFromJSON(json: any): DeleteDomainsResponseDto {
47
+ return DeleteDomainsResponseDtoFromJSONTyped(json, false);
48
+ }
49
+
50
+ export function DeleteDomainsResponseDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteDomainsResponseDto {
51
+ if (json == null) {
52
+ return json;
53
+ }
54
+ return {
55
+
56
+ 'job': JobDtoFromJSON(json['job']),
57
+ };
58
+ }
59
+
60
+ export function DeleteDomainsResponseDtoToJSON(json: any): DeleteDomainsResponseDto {
61
+ return DeleteDomainsResponseDtoToJSONTyped(json, false);
62
+ }
63
+
64
+ export function DeleteDomainsResponseDtoToJSONTyped(value?: DeleteDomainsResponseDto | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'job': JobDtoToJSON(value['job']),
72
+ };
73
+ }
74
+
@@ -19,7 +19,8 @@
19
19
  */
20
20
  export const JobType = {
21
21
  BULK_EDIT_DOMAINS: 'bulk_edit_domains',
22
- IMPORT_DOMAINS: 'import_domains'
22
+ IMPORT_DOMAINS: 'import_domains',
23
+ BULK_DELETE_DOMAINS: 'bulk_delete_domains'
23
24
  } as const;
24
25
  export type JobType = typeof JobType[keyof typeof JobType];
25
26
 
@@ -110,6 +110,8 @@ export const UserNotificationDtoTypeEnum = {
110
110
  EXPORT_COMPLETED: 'export_completed',
111
111
  DOMAIN_IMPORT_FINISHED: 'domain_import_finished',
112
112
  DOMAIN_IMPORT_FAILED: 'domain_import_failed',
113
+ DOMAIN_BULK_DELETE_FINISHED: 'domain_bulk_delete_finished',
114
+ DOMAIN_BULK_DELETE_FAILED: 'domain_bulk_delete_failed',
113
115
  DOMAIN_OFFER_VERIFIED_BUYER_ACCESS_LINK_EMAIL: 'domain_offer_verified_buyer_access_link_email',
114
116
  DOMAIN_OFFER_RECEIVED_BUYER_ACCESS_LINK_EMAIL: 'domain_offer_received_buyer_access_link_email',
115
117
  DOMAIN_OFFER_ACCEPTED_CONTINUE_ORDER_EMAIL: 'domain_offer_accepted_continue_order_email',
@@ -96,6 +96,8 @@ export const UserNotificationListItemDtoTypeEnum = {
96
96
  EXPORT_COMPLETED: 'export_completed',
97
97
  DOMAIN_IMPORT_FINISHED: 'domain_import_finished',
98
98
  DOMAIN_IMPORT_FAILED: 'domain_import_failed',
99
+ DOMAIN_BULK_DELETE_FINISHED: 'domain_bulk_delete_finished',
100
+ DOMAIN_BULK_DELETE_FAILED: 'domain_bulk_delete_failed',
99
101
  DOMAIN_OFFER_VERIFIED_BUYER_ACCESS_LINK_EMAIL: 'domain_offer_verified_buyer_access_link_email',
100
102
  DOMAIN_OFFER_RECEIVED_BUYER_ACCESS_LINK_EMAIL: 'domain_offer_received_buyer_access_link_email',
101
103
  DOMAIN_OFFER_ACCEPTED_CONTINUE_ORDER_EMAIL: 'domain_offer_accepted_continue_order_email',
@@ -278,6 +278,7 @@ export * from './CustomerSuccessListAccountPortfolioSizeDto';
278
278
  export * from './CustomerSuccessListAccountUserDto';
279
279
  export * from './DeclineBrokeredLeadInput';
280
280
  export * from './DeleteDomainsInput';
281
+ export * from './DeleteDomainsResponseDto';
281
282
  export * from './DomainAppraisalCertificateDto';
282
283
  export * from './DomainAppraisalRequestListItemDto';
283
284
  export * from './DomainAppraisalRequestStatus';