@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.
- package/.openapi-generator/FILES +2 -0
- package/README.md +3 -3
- package/dist/apis/DomainsApi.d.ts +37 -5
- package/dist/apis/DomainsApi.js +169 -5
- package/dist/models/BuyerNotificationDto.d.ts +2 -0
- package/dist/models/BuyerNotificationDto.js +2 -0
- package/dist/models/BuyerNotificationListItemDto.d.ts +2 -0
- package/dist/models/BuyerNotificationListItemDto.js +2 -0
- package/dist/models/DeleteDomainsResponseDto.d.ts +33 -0
- package/dist/models/DeleteDomainsResponseDto.js +52 -0
- package/dist/models/DomainNameListDto.d.ts +56 -0
- package/dist/models/DomainNameListDto.js +67 -0
- package/dist/models/JobType.d.ts +1 -0
- package/dist/models/JobType.js +2 -1
- package/dist/models/UserNotificationDto.d.ts +2 -0
- package/dist/models/UserNotificationDto.js +2 -0
- package/dist/models/UserNotificationListItemDto.d.ts +2 -0
- package/dist/models/UserNotificationListItemDto.js +2 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/package.json +1 -1
- package/src/apis/DomainsApi.ts +166 -6
- package/src/models/BuyerNotificationDto.ts +2 -0
- package/src/models/BuyerNotificationListItemDto.ts +2 -0
- package/src/models/DeleteDomainsResponseDto.ts +74 -0
- package/src/models/DomainNameListDto.ts +102 -0
- package/src/models/JobType.ts +2 -1
- package/src/models/UserNotificationDto.ts +2 -0
- package/src/models/UserNotificationListItemDto.ts +2 -0
- package/src/models/index.ts +2 -0
|
@@ -0,0 +1,67 @@
|
|
|
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.instanceOfDomainNameListDto = instanceOfDomainNameListDto;
|
|
17
|
+
exports.DomainNameListDtoFromJSON = DomainNameListDtoFromJSON;
|
|
18
|
+
exports.DomainNameListDtoFromJSONTyped = DomainNameListDtoFromJSONTyped;
|
|
19
|
+
exports.DomainNameListDtoToJSON = DomainNameListDtoToJSON;
|
|
20
|
+
exports.DomainNameListDtoToJSONTyped = DomainNameListDtoToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the DomainNameListDto interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfDomainNameListDto(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('total' in value) || value['total'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('matched' in value) || value['matched'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('unmatched' in value) || value['unmatched'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('expiresAt' in value) || value['expiresAt'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
function DomainNameListDtoFromJSON(json) {
|
|
38
|
+
return DomainNameListDtoFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
function DomainNameListDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
if (json == null) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'id': json['id'],
|
|
46
|
+
'total': json['total'],
|
|
47
|
+
'matched': json['matched'],
|
|
48
|
+
'unmatched': json['unmatched'],
|
|
49
|
+
'expiresAt': (new Date(json['expiresAt'])),
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
function DomainNameListDtoToJSON(json) {
|
|
53
|
+
return DomainNameListDtoToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
function DomainNameListDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
56
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
'id': value['id'],
|
|
62
|
+
'total': value['total'],
|
|
63
|
+
'matched': value['matched'],
|
|
64
|
+
'unmatched': value['unmatched'],
|
|
65
|
+
'expiresAt': ((value['expiresAt']).toISOString()),
|
|
66
|
+
};
|
|
67
|
+
}
|
package/dist/models/JobType.d.ts
CHANGED
|
@@ -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;
|
package/dist/models/JobType.js
CHANGED
|
@@ -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',
|
package/dist/models/index.d.ts
CHANGED
|
@@ -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';
|
|
@@ -292,6 +293,7 @@ export * from './DomainLockConfigurationDto';
|
|
|
292
293
|
export * from './DomainLockDto';
|
|
293
294
|
export * from './DomainMinimalLandingPageDesignDto';
|
|
294
295
|
export * from './DomainModernLandingPageDesignDto';
|
|
296
|
+
export * from './DomainNameListDto';
|
|
295
297
|
export * from './DomainOriginalLandingPageDesignDto';
|
|
296
298
|
export * from './DomainPricesChangeDto';
|
|
297
299
|
export * from './DomainSalesInformationDto';
|
package/dist/models/index.js
CHANGED
|
@@ -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);
|
|
@@ -310,6 +311,7 @@ __exportStar(require("./DomainLockConfigurationDto"), exports);
|
|
|
310
311
|
__exportStar(require("./DomainLockDto"), exports);
|
|
311
312
|
__exportStar(require("./DomainMinimalLandingPageDesignDto"), exports);
|
|
312
313
|
__exportStar(require("./DomainModernLandingPageDesignDto"), exports);
|
|
314
|
+
__exportStar(require("./DomainNameListDto"), exports);
|
|
313
315
|
__exportStar(require("./DomainOriginalLandingPageDesignDto"), exports);
|
|
314
316
|
__exportStar(require("./DomainPricesChangeDto"), exports);
|
|
315
317
|
__exportStar(require("./DomainSalesInformationDto"), exports);
|
package/package.json
CHANGED
package/src/apis/DomainsApi.ts
CHANGED
|
@@ -22,9 +22,11 @@ import type {
|
|
|
22
22
|
BulkUpdateDomainsWithFiltersInput,
|
|
23
23
|
CheckDomainsNsInput,
|
|
24
24
|
DeleteDomainsInput,
|
|
25
|
+
DeleteDomainsResponseDto,
|
|
25
26
|
DomainEditPreviewDto,
|
|
26
27
|
DomainExchangeRateDto,
|
|
27
28
|
DomainFiltersDto,
|
|
29
|
+
DomainNameListDto,
|
|
28
30
|
DomainSearchTranslationDto,
|
|
29
31
|
DomainUrlDto,
|
|
30
32
|
DomainVerificationStatusDto,
|
|
@@ -58,12 +60,16 @@ import {
|
|
|
58
60
|
CheckDomainsNsInputToJSON,
|
|
59
61
|
DeleteDomainsInputFromJSON,
|
|
60
62
|
DeleteDomainsInputToJSON,
|
|
63
|
+
DeleteDomainsResponseDtoFromJSON,
|
|
64
|
+
DeleteDomainsResponseDtoToJSON,
|
|
61
65
|
DomainEditPreviewDtoFromJSON,
|
|
62
66
|
DomainEditPreviewDtoToJSON,
|
|
63
67
|
DomainExchangeRateDtoFromJSON,
|
|
64
68
|
DomainExchangeRateDtoToJSON,
|
|
65
69
|
DomainFiltersDtoFromJSON,
|
|
66
70
|
DomainFiltersDtoToJSON,
|
|
71
|
+
DomainNameListDtoFromJSON,
|
|
72
|
+
DomainNameListDtoToJSON,
|
|
67
73
|
DomainSearchTranslationDtoFromJSON,
|
|
68
74
|
DomainSearchTranslationDtoToJSON,
|
|
69
75
|
DomainUrlDtoFromJSON,
|
|
@@ -103,6 +109,7 @@ import {
|
|
|
103
109
|
export interface DomainsApiApplyDomainEditRequest {
|
|
104
110
|
applyDomainEditInput: ApplyDomainEditInput;
|
|
105
111
|
searchFilter?: string;
|
|
112
|
+
nameListId?: string;
|
|
106
113
|
filter?: { [key: string]: string; };
|
|
107
114
|
}
|
|
108
115
|
|
|
@@ -123,6 +130,7 @@ export interface DomainsApiBatchUpdateRequest {
|
|
|
123
130
|
export interface DomainsApiBulkUpdateDomainsWithFiltersRequest {
|
|
124
131
|
bulkUpdateDomainsWithFiltersInput: BulkUpdateDomainsWithFiltersInput;
|
|
125
132
|
searchFilter?: string;
|
|
133
|
+
nameListId?: string;
|
|
126
134
|
filter?: object;
|
|
127
135
|
}
|
|
128
136
|
|
|
@@ -138,12 +146,17 @@ export interface DomainsApiCheckDomainVerificationRequest {
|
|
|
138
146
|
domainId: string;
|
|
139
147
|
}
|
|
140
148
|
|
|
149
|
+
export interface DomainsApiCreateDomainNameListRequest {
|
|
150
|
+
file: Blob;
|
|
151
|
+
}
|
|
152
|
+
|
|
141
153
|
export interface DomainsApiDeleteDomainsRequest {
|
|
142
154
|
deleteDomainsInput: DeleteDomainsInput;
|
|
143
155
|
}
|
|
144
156
|
|
|
145
157
|
export interface DomainsApiExportDomainsRequest {
|
|
146
158
|
searchFilter?: string;
|
|
159
|
+
nameListId?: string;
|
|
147
160
|
filter?: object;
|
|
148
161
|
}
|
|
149
162
|
|
|
@@ -170,9 +183,14 @@ export interface DomainsApiGetDomainExchangeRateRequest {
|
|
|
170
183
|
|
|
171
184
|
export interface DomainsApiGetDomainFiltersCurrenciesRequest {
|
|
172
185
|
searchFilter?: string;
|
|
186
|
+
nameListId?: string;
|
|
173
187
|
filter?: object;
|
|
174
188
|
}
|
|
175
189
|
|
|
190
|
+
export interface DomainsApiGetDomainNameListRequest {
|
|
191
|
+
nameListId: string;
|
|
192
|
+
}
|
|
193
|
+
|
|
176
194
|
export interface DomainsApiGetDomainTransferRequest {
|
|
177
195
|
transferId: string;
|
|
178
196
|
}
|
|
@@ -183,6 +201,7 @@ export interface DomainsApiGetDomainUrlRequest {
|
|
|
183
201
|
|
|
184
202
|
export interface DomainsApiListRequest {
|
|
185
203
|
searchFilter?: string;
|
|
204
|
+
nameListId?: string;
|
|
186
205
|
filter?: { [key: string]: string; };
|
|
187
206
|
page?: number;
|
|
188
207
|
limit?: number;
|
|
@@ -199,6 +218,7 @@ export interface DomainsApiListRequest {
|
|
|
199
218
|
export interface DomainsApiPreviewDomainEditRequest {
|
|
200
219
|
previewDomainEditInput: PreviewDomainEditInput;
|
|
201
220
|
searchFilter?: string;
|
|
221
|
+
nameListId?: string;
|
|
202
222
|
filter?: { [key: string]: string; };
|
|
203
223
|
}
|
|
204
224
|
|
|
@@ -249,6 +269,10 @@ export class DomainsApi extends runtime.BaseAPI {
|
|
|
249
269
|
queryParameters['searchFilter'] = requestParameters['searchFilter'];
|
|
250
270
|
}
|
|
251
271
|
|
|
272
|
+
if (requestParameters['nameListId'] != null) {
|
|
273
|
+
queryParameters['nameListId'] = requestParameters['nameListId'];
|
|
274
|
+
}
|
|
275
|
+
|
|
252
276
|
if (requestParameters['filter'] != null) {
|
|
253
277
|
queryParameters['filter'] = requestParameters['filter'];
|
|
254
278
|
}
|
|
@@ -487,6 +511,10 @@ export class DomainsApi extends runtime.BaseAPI {
|
|
|
487
511
|
queryParameters['searchFilter'] = requestParameters['searchFilter'];
|
|
488
512
|
}
|
|
489
513
|
|
|
514
|
+
if (requestParameters['nameListId'] != null) {
|
|
515
|
+
queryParameters['nameListId'] = requestParameters['nameListId'];
|
|
516
|
+
}
|
|
517
|
+
|
|
490
518
|
if (requestParameters['filter'] != null) {
|
|
491
519
|
queryParameters['filter'] = requestParameters['filter'];
|
|
492
520
|
}
|
|
@@ -670,10 +698,78 @@ export class DomainsApi extends runtime.BaseAPI {
|
|
|
670
698
|
}
|
|
671
699
|
|
|
672
700
|
/**
|
|
673
|
-
*
|
|
701
|
+
* 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.
|
|
702
|
+
* Upload a list of domain names to filter on
|
|
703
|
+
*/
|
|
704
|
+
async createDomainNameListRaw(requestParameters: DomainsApiCreateDomainNameListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DomainNameListDto>> {
|
|
705
|
+
if (requestParameters['file'] == null) {
|
|
706
|
+
throw new runtime.RequiredError(
|
|
707
|
+
'file',
|
|
708
|
+
'Required parameter "file" was null or undefined when calling createDomainNameList().'
|
|
709
|
+
);
|
|
710
|
+
}
|
|
711
|
+
|
|
712
|
+
const queryParameters: any = {};
|
|
713
|
+
|
|
714
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
715
|
+
|
|
716
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
717
|
+
headerParameters["apikey"] = await this.configuration.apiKey("apikey"); // api_key authentication
|
|
718
|
+
}
|
|
719
|
+
|
|
720
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
721
|
+
const token = this.configuration.accessToken;
|
|
722
|
+
const tokenString = await token("bearer", []);
|
|
723
|
+
|
|
724
|
+
if (tokenString) {
|
|
725
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
726
|
+
}
|
|
727
|
+
}
|
|
728
|
+
const consumes: runtime.Consume[] = [
|
|
729
|
+
{ contentType: 'multipart/form-data' },
|
|
730
|
+
];
|
|
731
|
+
// @ts-ignore: canConsumeForm may be unused
|
|
732
|
+
const canConsumeForm = runtime.canConsumeForm(consumes);
|
|
733
|
+
|
|
734
|
+
let formParams: { append(param: string, value: any): any };
|
|
735
|
+
let useForm = false;
|
|
736
|
+
// use FormData to transmit files using content-type "multipart/form-data"
|
|
737
|
+
useForm = canConsumeForm;
|
|
738
|
+
if (useForm) {
|
|
739
|
+
formParams = new FormData();
|
|
740
|
+
} else {
|
|
741
|
+
formParams = new URLSearchParams();
|
|
742
|
+
}
|
|
743
|
+
|
|
744
|
+
if (requestParameters['file'] != null) {
|
|
745
|
+
formParams.append('file', requestParameters['file'] as any);
|
|
746
|
+
}
|
|
747
|
+
|
|
748
|
+
const response = await this.request({
|
|
749
|
+
path: `/private/domains/name-lists`,
|
|
750
|
+
method: 'POST',
|
|
751
|
+
headers: headerParameters,
|
|
752
|
+
query: queryParameters,
|
|
753
|
+
body: formParams,
|
|
754
|
+
}, initOverrides);
|
|
755
|
+
|
|
756
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => DomainNameListDtoFromJSON(jsonValue));
|
|
757
|
+
}
|
|
758
|
+
|
|
759
|
+
/**
|
|
760
|
+
* 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.
|
|
761
|
+
* Upload a list of domain names to filter on
|
|
762
|
+
*/
|
|
763
|
+
async createDomainNameList(requestParameters: DomainsApiCreateDomainNameListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DomainNameListDto> {
|
|
764
|
+
const response = await this.createDomainNameListRaw(requestParameters, initOverrides);
|
|
765
|
+
return await response.value();
|
|
766
|
+
}
|
|
767
|
+
|
|
768
|
+
/**
|
|
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.
|
|
674
770
|
* Delete domains
|
|
675
771
|
*/
|
|
676
|
-
async deleteDomainsRaw(requestParameters: DomainsApiDeleteDomainsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
772
|
+
async deleteDomainsRaw(requestParameters: DomainsApiDeleteDomainsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DeleteDomainsResponseDto>> {
|
|
677
773
|
if (requestParameters['deleteDomainsInput'] == null) {
|
|
678
774
|
throw new runtime.RequiredError(
|
|
679
775
|
'deleteDomainsInput',
|
|
@@ -707,15 +803,16 @@ export class DomainsApi extends runtime.BaseAPI {
|
|
|
707
803
|
body: DeleteDomainsInputToJSON(requestParameters['deleteDomainsInput']),
|
|
708
804
|
}, initOverrides);
|
|
709
805
|
|
|
710
|
-
return new runtime.
|
|
806
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => DeleteDomainsResponseDtoFromJSON(jsonValue));
|
|
711
807
|
}
|
|
712
808
|
|
|
713
809
|
/**
|
|
714
|
-
* Deletes multiple domains by ID.
|
|
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.
|
|
715
811
|
* Delete domains
|
|
716
812
|
*/
|
|
717
|
-
async deleteDomains(requestParameters: DomainsApiDeleteDomainsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
718
|
-
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();
|
|
719
816
|
}
|
|
720
817
|
|
|
721
818
|
/**
|
|
@@ -729,6 +826,10 @@ export class DomainsApi extends runtime.BaseAPI {
|
|
|
729
826
|
queryParameters['searchFilter'] = requestParameters['searchFilter'];
|
|
730
827
|
}
|
|
731
828
|
|
|
829
|
+
if (requestParameters['nameListId'] != null) {
|
|
830
|
+
queryParameters['nameListId'] = requestParameters['nameListId'];
|
|
831
|
+
}
|
|
832
|
+
|
|
732
833
|
if (requestParameters['filter'] != null) {
|
|
733
834
|
queryParameters['filter'] = requestParameters['filter'];
|
|
734
835
|
}
|
|
@@ -1025,6 +1126,10 @@ export class DomainsApi extends runtime.BaseAPI {
|
|
|
1025
1126
|
queryParameters['searchFilter'] = requestParameters['searchFilter'];
|
|
1026
1127
|
}
|
|
1027
1128
|
|
|
1129
|
+
if (requestParameters['nameListId'] != null) {
|
|
1130
|
+
queryParameters['nameListId'] = requestParameters['nameListId'];
|
|
1131
|
+
}
|
|
1132
|
+
|
|
1028
1133
|
if (requestParameters['filter'] != null) {
|
|
1029
1134
|
queryParameters['filter'] = requestParameters['filter'];
|
|
1030
1135
|
}
|
|
@@ -1062,6 +1167,53 @@ export class DomainsApi extends runtime.BaseAPI {
|
|
|
1062
1167
|
return await response.value();
|
|
1063
1168
|
}
|
|
1064
1169
|
|
|
1170
|
+
/**
|
|
1171
|
+
* 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.
|
|
1172
|
+
* Get an uploaded list of domain names
|
|
1173
|
+
*/
|
|
1174
|
+
async getDomainNameListRaw(requestParameters: DomainsApiGetDomainNameListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DomainNameListDto>> {
|
|
1175
|
+
if (requestParameters['nameListId'] == null) {
|
|
1176
|
+
throw new runtime.RequiredError(
|
|
1177
|
+
'nameListId',
|
|
1178
|
+
'Required parameter "nameListId" was null or undefined when calling getDomainNameList().'
|
|
1179
|
+
);
|
|
1180
|
+
}
|
|
1181
|
+
|
|
1182
|
+
const queryParameters: any = {};
|
|
1183
|
+
|
|
1184
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1185
|
+
|
|
1186
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1187
|
+
headerParameters["apikey"] = await this.configuration.apiKey("apikey"); // api_key authentication
|
|
1188
|
+
}
|
|
1189
|
+
|
|
1190
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1191
|
+
const token = this.configuration.accessToken;
|
|
1192
|
+
const tokenString = await token("bearer", []);
|
|
1193
|
+
|
|
1194
|
+
if (tokenString) {
|
|
1195
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1196
|
+
}
|
|
1197
|
+
}
|
|
1198
|
+
const response = await this.request({
|
|
1199
|
+
path: `/private/domains/name-lists/{nameListId}`.replace(`{${"nameListId"}}`, encodeURIComponent(String(requestParameters['nameListId']))),
|
|
1200
|
+
method: 'GET',
|
|
1201
|
+
headers: headerParameters,
|
|
1202
|
+
query: queryParameters,
|
|
1203
|
+
}, initOverrides);
|
|
1204
|
+
|
|
1205
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => DomainNameListDtoFromJSON(jsonValue));
|
|
1206
|
+
}
|
|
1207
|
+
|
|
1208
|
+
/**
|
|
1209
|
+
* 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.
|
|
1210
|
+
* Get an uploaded list of domain names
|
|
1211
|
+
*/
|
|
1212
|
+
async getDomainNameList(requestParameters: DomainsApiGetDomainNameListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DomainNameListDto> {
|
|
1213
|
+
const response = await this.getDomainNameListRaw(requestParameters, initOverrides);
|
|
1214
|
+
return await response.value();
|
|
1215
|
+
}
|
|
1216
|
+
|
|
1065
1217
|
/**
|
|
1066
1218
|
* Returns domain transfer information. **API key scope required:** `TRANSFERS_READ`. Requests authenticated with a seller session do not need any scope.
|
|
1067
1219
|
* Get domain transfer
|
|
@@ -1167,6 +1319,10 @@ export class DomainsApi extends runtime.BaseAPI {
|
|
|
1167
1319
|
queryParameters['searchFilter'] = requestParameters['searchFilter'];
|
|
1168
1320
|
}
|
|
1169
1321
|
|
|
1322
|
+
if (requestParameters['nameListId'] != null) {
|
|
1323
|
+
queryParameters['nameListId'] = requestParameters['nameListId'];
|
|
1324
|
+
}
|
|
1325
|
+
|
|
1170
1326
|
if (requestParameters['filter'] != null) {
|
|
1171
1327
|
queryParameters['filter'] = requestParameters['filter'];
|
|
1172
1328
|
}
|
|
@@ -1262,6 +1418,10 @@ export class DomainsApi extends runtime.BaseAPI {
|
|
|
1262
1418
|
queryParameters['searchFilter'] = requestParameters['searchFilter'];
|
|
1263
1419
|
}
|
|
1264
1420
|
|
|
1421
|
+
if (requestParameters['nameListId'] != null) {
|
|
1422
|
+
queryParameters['nameListId'] = requestParameters['nameListId'];
|
|
1423
|
+
}
|
|
1424
|
+
|
|
1265
1425
|
if (requestParameters['filter'] != null) {
|
|
1266
1426
|
queryParameters['filter'] = requestParameters['filter'];
|
|
1267
1427
|
}
|
|
@@ -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
|
+
|