@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,102 @@
|
|
|
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
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface DomainNameListDto
|
|
20
|
+
*/
|
|
21
|
+
export interface DomainNameListDto {
|
|
22
|
+
/**
|
|
23
|
+
* Pass it as `nameListId` to the domains list, its export and the bulk edits, to narrow them to the domains of the list.
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof DomainNameListDto
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
* The distinct domain names the list held.
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof DomainNameListDto
|
|
32
|
+
*/
|
|
33
|
+
total: number;
|
|
34
|
+
/**
|
|
35
|
+
* How many of them are a domain of the account.
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof DomainNameListDto
|
|
38
|
+
*/
|
|
39
|
+
matched: number;
|
|
40
|
+
/**
|
|
41
|
+
* 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.
|
|
42
|
+
* @type {Array<string>}
|
|
43
|
+
* @memberof DomainNameListDto
|
|
44
|
+
*/
|
|
45
|
+
unmatched: Array<string>;
|
|
46
|
+
/**
|
|
47
|
+
* Until when the list can be filtered on.
|
|
48
|
+
* @type {Date}
|
|
49
|
+
* @memberof DomainNameListDto
|
|
50
|
+
*/
|
|
51
|
+
expiresAt: Date;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Check if a given object implements the DomainNameListDto interface.
|
|
56
|
+
*/
|
|
57
|
+
export function instanceOfDomainNameListDto(value: object): value is DomainNameListDto {
|
|
58
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
59
|
+
if (!('total' in value) || value['total'] === undefined) return false;
|
|
60
|
+
if (!('matched' in value) || value['matched'] === undefined) return false;
|
|
61
|
+
if (!('unmatched' in value) || value['unmatched'] === undefined) return false;
|
|
62
|
+
if (!('expiresAt' in value) || value['expiresAt'] === undefined) return false;
|
|
63
|
+
return true;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function DomainNameListDtoFromJSON(json: any): DomainNameListDto {
|
|
67
|
+
return DomainNameListDtoFromJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function DomainNameListDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): DomainNameListDto {
|
|
71
|
+
if (json == null) {
|
|
72
|
+
return json;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'id': json['id'],
|
|
77
|
+
'total': json['total'],
|
|
78
|
+
'matched': json['matched'],
|
|
79
|
+
'unmatched': json['unmatched'],
|
|
80
|
+
'expiresAt': (new Date(json['expiresAt'])),
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function DomainNameListDtoToJSON(json: any): DomainNameListDto {
|
|
85
|
+
return DomainNameListDtoToJSONTyped(json, false);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function DomainNameListDtoToJSONTyped(value?: DomainNameListDto | null, ignoreDiscriminator: boolean = false): any {
|
|
89
|
+
if (value == null) {
|
|
90
|
+
return value;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
return {
|
|
94
|
+
|
|
95
|
+
'id': value['id'],
|
|
96
|
+
'total': value['total'],
|
|
97
|
+
'matched': value['matched'],
|
|
98
|
+
'unmatched': value['unmatched'],
|
|
99
|
+
'expiresAt': ((value['expiresAt']).toISOString()),
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
|
package/src/models/JobType.ts
CHANGED
|
@@ -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',
|
package/src/models/index.ts
CHANGED
|
@@ -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';
|
|
@@ -294,6 +295,7 @@ export * from './DomainLockConfigurationDto';
|
|
|
294
295
|
export * from './DomainLockDto';
|
|
295
296
|
export * from './DomainMinimalLandingPageDesignDto';
|
|
296
297
|
export * from './DomainModernLandingPageDesignDto';
|
|
298
|
+
export * from './DomainNameListDto';
|
|
297
299
|
export * from './DomainOriginalLandingPageDesignDto';
|
|
298
300
|
export * from './DomainPricesChangeDto';
|
|
299
301
|
export * from './DomainSalesInformationDto';
|