@randock/nameshift-api-client 0.0.470 → 0.0.472
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 +9 -0
- package/README.md +3 -3
- package/dist/apis/CustomerSuccessApi.d.ts +60 -0
- package/dist/apis/CustomerSuccessApi.js +227 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- 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/CustomerSuccessDomainAuctionDto.d.ts +86 -0
- package/dist/models/CustomerSuccessDomainAuctionDto.js +91 -0
- package/dist/models/CustomerSuccessDomainListItemDto.d.ts +255 -0
- package/dist/models/CustomerSuccessDomainListItemDto.js +209 -0
- package/dist/models/CustomerSuccessListAccountDto.d.ts +163 -0
- package/dist/models/CustomerSuccessListAccountDto.js +146 -0
- package/dist/models/CustomerSuccessListAccountMetricsDto.d.ts +80 -0
- package/dist/models/CustomerSuccessListAccountMetricsDto.js +83 -0
- package/dist/models/CustomerSuccessListAccountPortfolioSizeDto.d.ts +38 -0
- package/dist/models/CustomerSuccessListAccountPortfolioSizeDto.js +55 -0
- package/dist/models/CustomerSuccessListAccountUserDto.d.ts +44 -0
- package/dist/models/CustomerSuccessListAccountUserDto.js +59 -0
- package/dist/models/ListCustomerSuccessAccountDomains200Response.d.ts +47 -0
- package/dist/models/ListCustomerSuccessAccountDomains200Response.js +62 -0
- package/dist/models/ListCustomerSuccessAccounts200Response.d.ts +47 -0
- package/dist/models/ListCustomerSuccessAccounts200Response.js +62 -0
- 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 +8 -0
- package/dist/models/index.js +8 -0
- package/package.json +1 -1
- package/src/apis/CustomerSuccessApi.ts +187 -0
- package/src/apis/index.ts +1 -0
- package/src/models/BuyerNotificationDto.ts +2 -0
- package/src/models/BuyerNotificationListItemDto.ts +2 -0
- package/src/models/CustomerSuccessDomainAuctionDto.ts +151 -0
- package/src/models/CustomerSuccessDomainListItemDto.ts +426 -0
- package/src/models/CustomerSuccessListAccountDto.ts +278 -0
- package/src/models/CustomerSuccessListAccountMetricsDto.ts +138 -0
- package/src/models/CustomerSuccessListAccountPortfolioSizeDto.ts +75 -0
- package/src/models/CustomerSuccessListAccountUserDto.ts +84 -0
- package/src/models/ListCustomerSuccessAccountDomains200Response.ts +106 -0
- package/src/models/ListCustomerSuccessAccounts200Response.ts +106 -0
- package/src/models/UserNotificationDto.ts +2 -0
- package/src/models/UserNotificationListItemDto.ts +2 -0
- package/src/models/index.ts +8 -0
|
@@ -0,0 +1,255 @@
|
|
|
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 { CustomerSuccessDomainAuctionDto } from './CustomerSuccessDomainAuctionDto';
|
|
13
|
+
import type { MoneyDto } from './MoneyDto';
|
|
14
|
+
import type { RentConfigurationDto } from './RentConfigurationDto';
|
|
15
|
+
import type { LeaseToOwnConfigurationDto } from './LeaseToOwnConfigurationDto';
|
|
16
|
+
import type { LandingPageSettingsDto } from './LandingPageSettingsDto';
|
|
17
|
+
import type { DomainLeadPriceNegotiatorAiAgentConfigurationDto } from './DomainLeadPriceNegotiatorAiAgentConfigurationDto';
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @interface CustomerSuccessDomainListItemDto
|
|
22
|
+
*/
|
|
23
|
+
export interface CustomerSuccessDomainListItemDto {
|
|
24
|
+
/**
|
|
25
|
+
* Unique identifier of the domain.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CustomerSuccessDomainListItemDto
|
|
28
|
+
*/
|
|
29
|
+
id: string;
|
|
30
|
+
/**
|
|
31
|
+
* Account ID of the domain owner.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof CustomerSuccessDomainListItemDto
|
|
34
|
+
*/
|
|
35
|
+
accountId: string;
|
|
36
|
+
/**
|
|
37
|
+
* Account ID of the hijacker managing the domain on behalf of the owner, if any.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof CustomerSuccessDomainListItemDto
|
|
40
|
+
*/
|
|
41
|
+
hijackerId: string | null;
|
|
42
|
+
/**
|
|
43
|
+
* Top-level domain suffix (e.g. com, nl).
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof CustomerSuccessDomainListItemDto
|
|
46
|
+
*/
|
|
47
|
+
tld: string;
|
|
48
|
+
/**
|
|
49
|
+
* Whether the domain ownership is verified by the owner (via NS3 or TXT record).
|
|
50
|
+
* @type {boolean}
|
|
51
|
+
* @memberof CustomerSuccessDomainListItemDto
|
|
52
|
+
*/
|
|
53
|
+
verified: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* Whether the required nameservers (NS1, NS2) are configured.
|
|
56
|
+
* @type {boolean}
|
|
57
|
+
* @memberof CustomerSuccessDomainListItemDto
|
|
58
|
+
*/
|
|
59
|
+
nameservers: boolean;
|
|
60
|
+
/**
|
|
61
|
+
* Timestamp of the last nameserver verification check.
|
|
62
|
+
* @type {Date}
|
|
63
|
+
* @memberof CustomerSuccessDomainListItemDto
|
|
64
|
+
*/
|
|
65
|
+
nameserversUpdatedAt: Date | null;
|
|
66
|
+
/**
|
|
67
|
+
* Whether the domain currently points to the platform server.
|
|
68
|
+
* @type {boolean}
|
|
69
|
+
* @memberof CustomerSuccessDomainListItemDto
|
|
70
|
+
*/
|
|
71
|
+
pointsToOurServer: boolean | null;
|
|
72
|
+
/**
|
|
73
|
+
* Timestamp of the last check whether the domain points to the platform server.
|
|
74
|
+
* @type {Date}
|
|
75
|
+
* @memberof CustomerSuccessDomainListItemDto
|
|
76
|
+
*/
|
|
77
|
+
pointsToOurServerUpdatedAt: Date | null;
|
|
78
|
+
/**
|
|
79
|
+
* Reason explaining the domain pointing status, when the check has been performed.
|
|
80
|
+
* @type {string}
|
|
81
|
+
* @memberof CustomerSuccessDomainListItemDto
|
|
82
|
+
*/
|
|
83
|
+
pointsToOurServerReason: CustomerSuccessDomainListItemDtoPointsToOurServerReasonEnum | null;
|
|
84
|
+
/**
|
|
85
|
+
* ASCII punycode domain name (e.g. example.com, xn--maana-pta.com).
|
|
86
|
+
* @type {string}
|
|
87
|
+
* @memberof CustomerSuccessDomainListItemDto
|
|
88
|
+
*/
|
|
89
|
+
name: string;
|
|
90
|
+
/**
|
|
91
|
+
* Unicode display domain name (e.g. example.com, mañana.com).
|
|
92
|
+
* @type {string}
|
|
93
|
+
* @memberof CustomerSuccessDomainListItemDto
|
|
94
|
+
*/
|
|
95
|
+
displayName: string;
|
|
96
|
+
/**
|
|
97
|
+
* ISO 4217 currency code used for domain pricing.
|
|
98
|
+
* @type {string}
|
|
99
|
+
* @memberof CustomerSuccessDomainListItemDto
|
|
100
|
+
*/
|
|
101
|
+
currencyCode: string;
|
|
102
|
+
/**
|
|
103
|
+
* Buy-it-now (BIN) price for immediate purchase.
|
|
104
|
+
* @type {MoneyDto}
|
|
105
|
+
* @memberof CustomerSuccessDomainListItemDto
|
|
106
|
+
*/
|
|
107
|
+
buyNow: MoneyDto;
|
|
108
|
+
/**
|
|
109
|
+
* Lease-to-own payment plan configuration.
|
|
110
|
+
* @type {LeaseToOwnConfigurationDto}
|
|
111
|
+
* @memberof CustomerSuccessDomainListItemDto
|
|
112
|
+
*/
|
|
113
|
+
leaseToOwn: LeaseToOwnConfigurationDto;
|
|
114
|
+
/**
|
|
115
|
+
* Monthly rent subscription configuration.
|
|
116
|
+
* @type {RentConfigurationDto}
|
|
117
|
+
* @memberof CustomerSuccessDomainListItemDto
|
|
118
|
+
*/
|
|
119
|
+
rent: RentConfigurationDto;
|
|
120
|
+
/**
|
|
121
|
+
* Public landing page display and lead capture settings.
|
|
122
|
+
* @type {LandingPageSettingsDto}
|
|
123
|
+
* @memberof CustomerSuccessDomainListItemDto
|
|
124
|
+
*/
|
|
125
|
+
landingPageSettings: LandingPageSettingsDto;
|
|
126
|
+
/**
|
|
127
|
+
* Minimum offer amount buyers may submit.
|
|
128
|
+
* @type {MoneyDto}
|
|
129
|
+
* @memberof CustomerSuccessDomainListItemDto
|
|
130
|
+
*/
|
|
131
|
+
minOffer: MoneyDto;
|
|
132
|
+
/**
|
|
133
|
+
* Timestamp when the domain was created in the platform.
|
|
134
|
+
* @type {Date}
|
|
135
|
+
* @memberof CustomerSuccessDomainListItemDto
|
|
136
|
+
*/
|
|
137
|
+
createdAt: Date;
|
|
138
|
+
/**
|
|
139
|
+
* Timestamp when the domain was deleted, if applicable.
|
|
140
|
+
* @type {Date}
|
|
141
|
+
* @memberof CustomerSuccessDomainListItemDto
|
|
142
|
+
*/
|
|
143
|
+
deletedAt: Date | null;
|
|
144
|
+
/**
|
|
145
|
+
* Whether the domain has been sold.
|
|
146
|
+
* @type {boolean}
|
|
147
|
+
* @memberof CustomerSuccessDomainListItemDto
|
|
148
|
+
*/
|
|
149
|
+
sold: boolean;
|
|
150
|
+
/**
|
|
151
|
+
* Total pageviews tracked for this domain, or zero if none are tracked.
|
|
152
|
+
* @type {number}
|
|
153
|
+
* @memberof CustomerSuccessDomainListItemDto
|
|
154
|
+
*/
|
|
155
|
+
pageviews: number;
|
|
156
|
+
/**
|
|
157
|
+
* Whether third-party sales data sharing is enabled for this domain.
|
|
158
|
+
* @type {boolean}
|
|
159
|
+
* @memberof CustomerSuccessDomainListItemDto
|
|
160
|
+
*/
|
|
161
|
+
allowThirdPartySalesDataSharing: boolean | null;
|
|
162
|
+
/**
|
|
163
|
+
* Per-domain AI price negotiator agent configuration.
|
|
164
|
+
* @type {DomainLeadPriceNegotiatorAiAgentConfigurationDto}
|
|
165
|
+
* @memberof CustomerSuccessDomainListItemDto
|
|
166
|
+
*/
|
|
167
|
+
leadPriceNegotiator: DomainLeadPriceNegotiatorAiAgentConfigurationDto | null;
|
|
168
|
+
/**
|
|
169
|
+
* Active or most recent auction details, when present.
|
|
170
|
+
* @type {CustomerSuccessDomainAuctionDto}
|
|
171
|
+
* @memberof CustomerSuccessDomainListItemDto
|
|
172
|
+
*/
|
|
173
|
+
auction: CustomerSuccessDomainAuctionDto | null;
|
|
174
|
+
/**
|
|
175
|
+
* Fee charged to the seller for running a paid auction.
|
|
176
|
+
* @type {MoneyDto}
|
|
177
|
+
* @memberof CustomerSuccessDomainListItemDto
|
|
178
|
+
*/
|
|
179
|
+
paidAuctionPrice: MoneyDto;
|
|
180
|
+
/**
|
|
181
|
+
* Whether the domain currently has an accepted lead.
|
|
182
|
+
* @type {boolean}
|
|
183
|
+
* @memberof CustomerSuccessDomainListItemDto
|
|
184
|
+
*/
|
|
185
|
+
hasAcceptedLead: boolean;
|
|
186
|
+
/**
|
|
187
|
+
* Whether a new auction can be created for this domain.
|
|
188
|
+
* @type {boolean}
|
|
189
|
+
* @memberof CustomerSuccessDomainListItemDto
|
|
190
|
+
*/
|
|
191
|
+
canCreateAuction: boolean;
|
|
192
|
+
/**
|
|
193
|
+
* Whether the domain can be deleted by the seller.
|
|
194
|
+
* @type {boolean}
|
|
195
|
+
* @memberof CustomerSuccessDomainListItemDto
|
|
196
|
+
*/
|
|
197
|
+
isDeleteable: boolean;
|
|
198
|
+
/**
|
|
199
|
+
* Whether the domain is currently locked from other sales.
|
|
200
|
+
* @type {boolean}
|
|
201
|
+
* @memberof CustomerSuccessDomainListItemDto
|
|
202
|
+
*/
|
|
203
|
+
isLocked: boolean;
|
|
204
|
+
/**
|
|
205
|
+
* End date of the current continuous lock period, or null if not locked.
|
|
206
|
+
* @type {Date}
|
|
207
|
+
* @memberof CustomerSuccessDomainListItemDto
|
|
208
|
+
*/
|
|
209
|
+
lockedUntil: Date | null;
|
|
210
|
+
/**
|
|
211
|
+
* Whether an admin picked this domain for the public showcase on the website.
|
|
212
|
+
* @type {boolean}
|
|
213
|
+
* @memberof CustomerSuccessDomainListItemDto
|
|
214
|
+
*/
|
|
215
|
+
showcased: boolean;
|
|
216
|
+
/**
|
|
217
|
+
* Marketplace this domain resolves to on our nameservers, overriding the account default. Null means the account default applies; "nameshift" means the domain opts out of it and stays on our own landing page.
|
|
218
|
+
* @type {string}
|
|
219
|
+
* @memberof CustomerSuccessDomainListItemDto
|
|
220
|
+
*/
|
|
221
|
+
marketplace: CustomerSuccessDomainListItemDtoMarketplaceEnum | null;
|
|
222
|
+
}
|
|
223
|
+
/**
|
|
224
|
+
* @export
|
|
225
|
+
*/
|
|
226
|
+
export declare const CustomerSuccessDomainListItemDtoPointsToOurServerReasonEnum: {
|
|
227
|
+
readonly VALID_CNAME: "valid_cname";
|
|
228
|
+
readonly VALID_A_RECORDS: "valid_a_records";
|
|
229
|
+
readonly NO_A_RECORDS: "no_a_records";
|
|
230
|
+
readonly INVALID_A_RECORDS: "invalid_a_records";
|
|
231
|
+
readonly ROUTED_TO_MARKETPLACE: "routed_to_marketplace";
|
|
232
|
+
readonly NX_DOMAIN: "nx_domain";
|
|
233
|
+
readonly DNS_LOOKUP_ERROR: "dns_lookup_error";
|
|
234
|
+
};
|
|
235
|
+
export type CustomerSuccessDomainListItemDtoPointsToOurServerReasonEnum = typeof CustomerSuccessDomainListItemDtoPointsToOurServerReasonEnum[keyof typeof CustomerSuccessDomainListItemDtoPointsToOurServerReasonEnum];
|
|
236
|
+
/**
|
|
237
|
+
* @export
|
|
238
|
+
*/
|
|
239
|
+
export declare const CustomerSuccessDomainListItemDtoMarketplaceEnum: {
|
|
240
|
+
readonly NAMESHIFT: "nameshift";
|
|
241
|
+
readonly SEDO: "sedo";
|
|
242
|
+
readonly AFTERNIC: "afternic";
|
|
243
|
+
readonly ATOM: "atom";
|
|
244
|
+
readonly SPACESHIP: "spaceship";
|
|
245
|
+
readonly NAMECLUB: "nameclub";
|
|
246
|
+
};
|
|
247
|
+
export type CustomerSuccessDomainListItemDtoMarketplaceEnum = typeof CustomerSuccessDomainListItemDtoMarketplaceEnum[keyof typeof CustomerSuccessDomainListItemDtoMarketplaceEnum];
|
|
248
|
+
/**
|
|
249
|
+
* Check if a given object implements the CustomerSuccessDomainListItemDto interface.
|
|
250
|
+
*/
|
|
251
|
+
export declare function instanceOfCustomerSuccessDomainListItemDto(value: object): value is CustomerSuccessDomainListItemDto;
|
|
252
|
+
export declare function CustomerSuccessDomainListItemDtoFromJSON(json: any): CustomerSuccessDomainListItemDto;
|
|
253
|
+
export declare function CustomerSuccessDomainListItemDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CustomerSuccessDomainListItemDto;
|
|
254
|
+
export declare function CustomerSuccessDomainListItemDtoToJSON(json: any): CustomerSuccessDomainListItemDto;
|
|
255
|
+
export declare function CustomerSuccessDomainListItemDtoToJSONTyped(value?: CustomerSuccessDomainListItemDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,209 @@
|
|
|
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.CustomerSuccessDomainListItemDtoMarketplaceEnum = exports.CustomerSuccessDomainListItemDtoPointsToOurServerReasonEnum = void 0;
|
|
17
|
+
exports.instanceOfCustomerSuccessDomainListItemDto = instanceOfCustomerSuccessDomainListItemDto;
|
|
18
|
+
exports.CustomerSuccessDomainListItemDtoFromJSON = CustomerSuccessDomainListItemDtoFromJSON;
|
|
19
|
+
exports.CustomerSuccessDomainListItemDtoFromJSONTyped = CustomerSuccessDomainListItemDtoFromJSONTyped;
|
|
20
|
+
exports.CustomerSuccessDomainListItemDtoToJSON = CustomerSuccessDomainListItemDtoToJSON;
|
|
21
|
+
exports.CustomerSuccessDomainListItemDtoToJSONTyped = CustomerSuccessDomainListItemDtoToJSONTyped;
|
|
22
|
+
var CustomerSuccessDomainAuctionDto_1 = require("./CustomerSuccessDomainAuctionDto");
|
|
23
|
+
var MoneyDto_1 = require("./MoneyDto");
|
|
24
|
+
var RentConfigurationDto_1 = require("./RentConfigurationDto");
|
|
25
|
+
var LeaseToOwnConfigurationDto_1 = require("./LeaseToOwnConfigurationDto");
|
|
26
|
+
var LandingPageSettingsDto_1 = require("./LandingPageSettingsDto");
|
|
27
|
+
var DomainLeadPriceNegotiatorAiAgentConfigurationDto_1 = require("./DomainLeadPriceNegotiatorAiAgentConfigurationDto");
|
|
28
|
+
/**
|
|
29
|
+
* @export
|
|
30
|
+
*/
|
|
31
|
+
exports.CustomerSuccessDomainListItemDtoPointsToOurServerReasonEnum = {
|
|
32
|
+
VALID_CNAME: 'valid_cname',
|
|
33
|
+
VALID_A_RECORDS: 'valid_a_records',
|
|
34
|
+
NO_A_RECORDS: 'no_a_records',
|
|
35
|
+
INVALID_A_RECORDS: 'invalid_a_records',
|
|
36
|
+
ROUTED_TO_MARKETPLACE: 'routed_to_marketplace',
|
|
37
|
+
NX_DOMAIN: 'nx_domain',
|
|
38
|
+
DNS_LOOKUP_ERROR: 'dns_lookup_error'
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* @export
|
|
42
|
+
*/
|
|
43
|
+
exports.CustomerSuccessDomainListItemDtoMarketplaceEnum = {
|
|
44
|
+
NAMESHIFT: 'nameshift',
|
|
45
|
+
SEDO: 'sedo',
|
|
46
|
+
AFTERNIC: 'afternic',
|
|
47
|
+
ATOM: 'atom',
|
|
48
|
+
SPACESHIP: 'spaceship',
|
|
49
|
+
NAMECLUB: 'nameclub'
|
|
50
|
+
};
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the CustomerSuccessDomainListItemDto interface.
|
|
53
|
+
*/
|
|
54
|
+
function instanceOfCustomerSuccessDomainListItemDto(value) {
|
|
55
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
56
|
+
return false;
|
|
57
|
+
if (!('accountId' in value) || value['accountId'] === undefined)
|
|
58
|
+
return false;
|
|
59
|
+
if (!('hijackerId' in value) || value['hijackerId'] === undefined)
|
|
60
|
+
return false;
|
|
61
|
+
if (!('tld' in value) || value['tld'] === undefined)
|
|
62
|
+
return false;
|
|
63
|
+
if (!('verified' in value) || value['verified'] === undefined)
|
|
64
|
+
return false;
|
|
65
|
+
if (!('nameservers' in value) || value['nameservers'] === undefined)
|
|
66
|
+
return false;
|
|
67
|
+
if (!('nameserversUpdatedAt' in value) || value['nameserversUpdatedAt'] === undefined)
|
|
68
|
+
return false;
|
|
69
|
+
if (!('pointsToOurServer' in value) || value['pointsToOurServer'] === undefined)
|
|
70
|
+
return false;
|
|
71
|
+
if (!('pointsToOurServerUpdatedAt' in value) || value['pointsToOurServerUpdatedAt'] === undefined)
|
|
72
|
+
return false;
|
|
73
|
+
if (!('pointsToOurServerReason' in value) || value['pointsToOurServerReason'] === undefined)
|
|
74
|
+
return false;
|
|
75
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
76
|
+
return false;
|
|
77
|
+
if (!('displayName' in value) || value['displayName'] === undefined)
|
|
78
|
+
return false;
|
|
79
|
+
if (!('currencyCode' in value) || value['currencyCode'] === undefined)
|
|
80
|
+
return false;
|
|
81
|
+
if (!('buyNow' in value) || value['buyNow'] === undefined)
|
|
82
|
+
return false;
|
|
83
|
+
if (!('leaseToOwn' in value) || value['leaseToOwn'] === undefined)
|
|
84
|
+
return false;
|
|
85
|
+
if (!('rent' in value) || value['rent'] === undefined)
|
|
86
|
+
return false;
|
|
87
|
+
if (!('landingPageSettings' in value) || value['landingPageSettings'] === undefined)
|
|
88
|
+
return false;
|
|
89
|
+
if (!('minOffer' in value) || value['minOffer'] === undefined)
|
|
90
|
+
return false;
|
|
91
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
92
|
+
return false;
|
|
93
|
+
if (!('deletedAt' in value) || value['deletedAt'] === undefined)
|
|
94
|
+
return false;
|
|
95
|
+
if (!('sold' in value) || value['sold'] === undefined)
|
|
96
|
+
return false;
|
|
97
|
+
if (!('pageviews' in value) || value['pageviews'] === undefined)
|
|
98
|
+
return false;
|
|
99
|
+
if (!('allowThirdPartySalesDataSharing' in value) || value['allowThirdPartySalesDataSharing'] === undefined)
|
|
100
|
+
return false;
|
|
101
|
+
if (!('leadPriceNegotiator' in value) || value['leadPriceNegotiator'] === undefined)
|
|
102
|
+
return false;
|
|
103
|
+
if (!('auction' in value) || value['auction'] === undefined)
|
|
104
|
+
return false;
|
|
105
|
+
if (!('paidAuctionPrice' in value) || value['paidAuctionPrice'] === undefined)
|
|
106
|
+
return false;
|
|
107
|
+
if (!('hasAcceptedLead' in value) || value['hasAcceptedLead'] === undefined)
|
|
108
|
+
return false;
|
|
109
|
+
if (!('canCreateAuction' in value) || value['canCreateAuction'] === undefined)
|
|
110
|
+
return false;
|
|
111
|
+
if (!('isDeleteable' in value) || value['isDeleteable'] === undefined)
|
|
112
|
+
return false;
|
|
113
|
+
if (!('isLocked' in value) || value['isLocked'] === undefined)
|
|
114
|
+
return false;
|
|
115
|
+
if (!('lockedUntil' in value) || value['lockedUntil'] === undefined)
|
|
116
|
+
return false;
|
|
117
|
+
if (!('showcased' in value) || value['showcased'] === undefined)
|
|
118
|
+
return false;
|
|
119
|
+
if (!('marketplace' in value) || value['marketplace'] === undefined)
|
|
120
|
+
return false;
|
|
121
|
+
return true;
|
|
122
|
+
}
|
|
123
|
+
function CustomerSuccessDomainListItemDtoFromJSON(json) {
|
|
124
|
+
return CustomerSuccessDomainListItemDtoFromJSONTyped(json, false);
|
|
125
|
+
}
|
|
126
|
+
function CustomerSuccessDomainListItemDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
127
|
+
if (json == null) {
|
|
128
|
+
return json;
|
|
129
|
+
}
|
|
130
|
+
return {
|
|
131
|
+
'id': json['id'],
|
|
132
|
+
'accountId': json['accountId'],
|
|
133
|
+
'hijackerId': json['hijackerId'],
|
|
134
|
+
'tld': json['tld'],
|
|
135
|
+
'verified': json['verified'],
|
|
136
|
+
'nameservers': json['nameservers'],
|
|
137
|
+
'nameserversUpdatedAt': (json['nameserversUpdatedAt'] == null ? null : new Date(json['nameserversUpdatedAt'])),
|
|
138
|
+
'pointsToOurServer': json['pointsToOurServer'],
|
|
139
|
+
'pointsToOurServerUpdatedAt': (json['pointsToOurServerUpdatedAt'] == null ? null : new Date(json['pointsToOurServerUpdatedAt'])),
|
|
140
|
+
'pointsToOurServerReason': json['pointsToOurServerReason'],
|
|
141
|
+
'name': json['name'],
|
|
142
|
+
'displayName': json['displayName'],
|
|
143
|
+
'currencyCode': json['currencyCode'],
|
|
144
|
+
'buyNow': (0, MoneyDto_1.MoneyDtoFromJSON)(json['buyNow']),
|
|
145
|
+
'leaseToOwn': (0, LeaseToOwnConfigurationDto_1.LeaseToOwnConfigurationDtoFromJSON)(json['leaseToOwn']),
|
|
146
|
+
'rent': (0, RentConfigurationDto_1.RentConfigurationDtoFromJSON)(json['rent']),
|
|
147
|
+
'landingPageSettings': (0, LandingPageSettingsDto_1.LandingPageSettingsDtoFromJSON)(json['landingPageSettings']),
|
|
148
|
+
'minOffer': (0, MoneyDto_1.MoneyDtoFromJSON)(json['minOffer']),
|
|
149
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
150
|
+
'deletedAt': (json['deletedAt'] == null ? null : new Date(json['deletedAt'])),
|
|
151
|
+
'sold': json['sold'],
|
|
152
|
+
'pageviews': json['pageviews'],
|
|
153
|
+
'allowThirdPartySalesDataSharing': json['allowThirdPartySalesDataSharing'],
|
|
154
|
+
'leadPriceNegotiator': (0, DomainLeadPriceNegotiatorAiAgentConfigurationDto_1.DomainLeadPriceNegotiatorAiAgentConfigurationDtoFromJSON)(json['leadPriceNegotiator']),
|
|
155
|
+
'auction': (0, CustomerSuccessDomainAuctionDto_1.CustomerSuccessDomainAuctionDtoFromJSON)(json['auction']),
|
|
156
|
+
'paidAuctionPrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['paidAuctionPrice']),
|
|
157
|
+
'hasAcceptedLead': json['hasAcceptedLead'],
|
|
158
|
+
'canCreateAuction': json['canCreateAuction'],
|
|
159
|
+
'isDeleteable': json['isDeleteable'],
|
|
160
|
+
'isLocked': json['isLocked'],
|
|
161
|
+
'lockedUntil': (json['lockedUntil'] == null ? null : new Date(json['lockedUntil'])),
|
|
162
|
+
'showcased': json['showcased'],
|
|
163
|
+
'marketplace': json['marketplace'],
|
|
164
|
+
};
|
|
165
|
+
}
|
|
166
|
+
function CustomerSuccessDomainListItemDtoToJSON(json) {
|
|
167
|
+
return CustomerSuccessDomainListItemDtoToJSONTyped(json, false);
|
|
168
|
+
}
|
|
169
|
+
function CustomerSuccessDomainListItemDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
170
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
171
|
+
if (value == null) {
|
|
172
|
+
return value;
|
|
173
|
+
}
|
|
174
|
+
return {
|
|
175
|
+
'id': value['id'],
|
|
176
|
+
'accountId': value['accountId'],
|
|
177
|
+
'hijackerId': value['hijackerId'],
|
|
178
|
+
'tld': value['tld'],
|
|
179
|
+
'verified': value['verified'],
|
|
180
|
+
'nameservers': value['nameservers'],
|
|
181
|
+
'nameserversUpdatedAt': (value['nameserversUpdatedAt'] == null ? null : value['nameserversUpdatedAt'].toISOString()),
|
|
182
|
+
'pointsToOurServer': value['pointsToOurServer'],
|
|
183
|
+
'pointsToOurServerUpdatedAt': (value['pointsToOurServerUpdatedAt'] == null ? null : value['pointsToOurServerUpdatedAt'].toISOString()),
|
|
184
|
+
'pointsToOurServerReason': value['pointsToOurServerReason'],
|
|
185
|
+
'name': value['name'],
|
|
186
|
+
'displayName': value['displayName'],
|
|
187
|
+
'currencyCode': value['currencyCode'],
|
|
188
|
+
'buyNow': (0, MoneyDto_1.MoneyDtoToJSON)(value['buyNow']),
|
|
189
|
+
'leaseToOwn': (0, LeaseToOwnConfigurationDto_1.LeaseToOwnConfigurationDtoToJSON)(value['leaseToOwn']),
|
|
190
|
+
'rent': (0, RentConfigurationDto_1.RentConfigurationDtoToJSON)(value['rent']),
|
|
191
|
+
'landingPageSettings': (0, LandingPageSettingsDto_1.LandingPageSettingsDtoToJSON)(value['landingPageSettings']),
|
|
192
|
+
'minOffer': (0, MoneyDto_1.MoneyDtoToJSON)(value['minOffer']),
|
|
193
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
194
|
+
'deletedAt': (value['deletedAt'] == null ? null : value['deletedAt'].toISOString()),
|
|
195
|
+
'sold': value['sold'],
|
|
196
|
+
'pageviews': value['pageviews'],
|
|
197
|
+
'allowThirdPartySalesDataSharing': value['allowThirdPartySalesDataSharing'],
|
|
198
|
+
'leadPriceNegotiator': (0, DomainLeadPriceNegotiatorAiAgentConfigurationDto_1.DomainLeadPriceNegotiatorAiAgentConfigurationDtoToJSON)(value['leadPriceNegotiator']),
|
|
199
|
+
'auction': (0, CustomerSuccessDomainAuctionDto_1.CustomerSuccessDomainAuctionDtoToJSON)(value['auction']),
|
|
200
|
+
'paidAuctionPrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['paidAuctionPrice']),
|
|
201
|
+
'hasAcceptedLead': value['hasAcceptedLead'],
|
|
202
|
+
'canCreateAuction': value['canCreateAuction'],
|
|
203
|
+
'isDeleteable': value['isDeleteable'],
|
|
204
|
+
'isLocked': value['isLocked'],
|
|
205
|
+
'lockedUntil': (value['lockedUntil'] == null ? null : value['lockedUntil'].toISOString()),
|
|
206
|
+
'showcased': value['showcased'],
|
|
207
|
+
'marketplace': value['marketplace'],
|
|
208
|
+
};
|
|
209
|
+
}
|
|
@@ -0,0 +1,163 @@
|
|
|
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 { CustomerSuccessListAccountUserDto } from './CustomerSuccessListAccountUserDto';
|
|
13
|
+
import type { ChallengeRewardBalanceDto } from './ChallengeRewardBalanceDto';
|
|
14
|
+
import type { CustomerSuccessListAccountMetricsDto } from './CustomerSuccessListAccountMetricsDto';
|
|
15
|
+
import type { CustomerSuccessListAccountPortfolioSizeDto } from './CustomerSuccessListAccountPortfolioSizeDto';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface CustomerSuccessListAccountDto
|
|
20
|
+
*/
|
|
21
|
+
export interface CustomerSuccessListAccountDto {
|
|
22
|
+
/**
|
|
23
|
+
* Account ID.
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof CustomerSuccessListAccountDto
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
* Account identifier (human-readable).
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof CustomerSuccessListAccountDto
|
|
32
|
+
*/
|
|
33
|
+
identifier: string;
|
|
34
|
+
/**
|
|
35
|
+
* Account creation date.
|
|
36
|
+
* @type {Date}
|
|
37
|
+
* @memberof CustomerSuccessListAccountDto
|
|
38
|
+
*/
|
|
39
|
+
createdAt: Date;
|
|
40
|
+
/**
|
|
41
|
+
* Account name.
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof CustomerSuccessListAccountDto
|
|
44
|
+
*/
|
|
45
|
+
name: string | null;
|
|
46
|
+
/**
|
|
47
|
+
* Billing information type.
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof CustomerSuccessListAccountDto
|
|
50
|
+
*/
|
|
51
|
+
type: string | null;
|
|
52
|
+
/**
|
|
53
|
+
* Account alias.
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof CustomerSuccessListAccountDto
|
|
56
|
+
*/
|
|
57
|
+
alias: string | null;
|
|
58
|
+
/**
|
|
59
|
+
* Whether the alias is verified.
|
|
60
|
+
* @type {boolean}
|
|
61
|
+
* @memberof CustomerSuccessListAccountDto
|
|
62
|
+
*/
|
|
63
|
+
aliasVerified: boolean;
|
|
64
|
+
/**
|
|
65
|
+
* Account metrics.
|
|
66
|
+
* @type {CustomerSuccessListAccountMetricsDto}
|
|
67
|
+
* @memberof CustomerSuccessListAccountDto
|
|
68
|
+
*/
|
|
69
|
+
metrics: CustomerSuccessListAccountMetricsDto;
|
|
70
|
+
/**
|
|
71
|
+
* Last online date.
|
|
72
|
+
* @type {Date}
|
|
73
|
+
* @memberof CustomerSuccessListAccountDto
|
|
74
|
+
*/
|
|
75
|
+
lastOnline: Date;
|
|
76
|
+
/**
|
|
77
|
+
* Account users.
|
|
78
|
+
* @type {Array<CustomerSuccessListAccountUserDto>}
|
|
79
|
+
* @memberof CustomerSuccessListAccountDto
|
|
80
|
+
*/
|
|
81
|
+
users: Array<CustomerSuccessListAccountUserDto>;
|
|
82
|
+
/**
|
|
83
|
+
* Onboarding provider.
|
|
84
|
+
* @type {string}
|
|
85
|
+
* @memberof CustomerSuccessListAccountDto
|
|
86
|
+
*/
|
|
87
|
+
onboardingProvider: CustomerSuccessListAccountDtoOnboardingProviderEnum;
|
|
88
|
+
/**
|
|
89
|
+
* Onboarding status.
|
|
90
|
+
* @type {string}
|
|
91
|
+
* @memberof CustomerSuccessListAccountDto
|
|
92
|
+
*/
|
|
93
|
+
onboardingStatus: CustomerSuccessListAccountDtoOnboardingStatusEnum;
|
|
94
|
+
/**
|
|
95
|
+
* Payout provider.
|
|
96
|
+
* @type {string}
|
|
97
|
+
* @memberof CustomerSuccessListAccountDto
|
|
98
|
+
*/
|
|
99
|
+
payoutProvider: CustomerSuccessListAccountDtoPayoutProviderEnum;
|
|
100
|
+
/**
|
|
101
|
+
* Affiliate account ID.
|
|
102
|
+
* @type {string}
|
|
103
|
+
* @memberof CustomerSuccessListAccountDto
|
|
104
|
+
*/
|
|
105
|
+
affiliateId: string | null;
|
|
106
|
+
/**
|
|
107
|
+
* Estimated domain portfolio size range reported during registration.
|
|
108
|
+
* @type {CustomerSuccessListAccountPortfolioSizeDto}
|
|
109
|
+
* @memberof CustomerSuccessListAccountDto
|
|
110
|
+
*/
|
|
111
|
+
portfolioSize: CustomerSuccessListAccountPortfolioSizeDto | null;
|
|
112
|
+
/**
|
|
113
|
+
* Company name.
|
|
114
|
+
* @type {string}
|
|
115
|
+
* @memberof CustomerSuccessListAccountDto
|
|
116
|
+
*/
|
|
117
|
+
companyName: string | null;
|
|
118
|
+
/**
|
|
119
|
+
* Whether third-party sales data sharing is allowed.
|
|
120
|
+
* @type {boolean}
|
|
121
|
+
* @memberof CustomerSuccessListAccountDto
|
|
122
|
+
*/
|
|
123
|
+
allowThirdPartySalesDataSharing: boolean;
|
|
124
|
+
/**
|
|
125
|
+
* Challenge reward balance (available and used).
|
|
126
|
+
* @type {ChallengeRewardBalanceDto}
|
|
127
|
+
* @memberof CustomerSuccessListAccountDto
|
|
128
|
+
*/
|
|
129
|
+
challengeRewardBalance: ChallengeRewardBalanceDto;
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* @export
|
|
133
|
+
*/
|
|
134
|
+
export declare const CustomerSuccessListAccountDtoOnboardingProviderEnum: {
|
|
135
|
+
readonly STRIPE: "stripe";
|
|
136
|
+
readonly SUMSUB: "sumsub";
|
|
137
|
+
};
|
|
138
|
+
export type CustomerSuccessListAccountDtoOnboardingProviderEnum = typeof CustomerSuccessListAccountDtoOnboardingProviderEnum[keyof typeof CustomerSuccessListAccountDtoOnboardingProviderEnum];
|
|
139
|
+
/**
|
|
140
|
+
* @export
|
|
141
|
+
*/
|
|
142
|
+
export declare const CustomerSuccessListAccountDtoOnboardingStatusEnum: {
|
|
143
|
+
readonly PENDING: "pending";
|
|
144
|
+
readonly ACTIVE: "active";
|
|
145
|
+
readonly REJECTED: "rejected";
|
|
146
|
+
};
|
|
147
|
+
export type CustomerSuccessListAccountDtoOnboardingStatusEnum = typeof CustomerSuccessListAccountDtoOnboardingStatusEnum[keyof typeof CustomerSuccessListAccountDtoOnboardingStatusEnum];
|
|
148
|
+
/**
|
|
149
|
+
* @export
|
|
150
|
+
*/
|
|
151
|
+
export declare const CustomerSuccessListAccountDtoPayoutProviderEnum: {
|
|
152
|
+
readonly STRIPE: "stripe";
|
|
153
|
+
readonly BANK_ACCOUNT: "bank_account";
|
|
154
|
+
};
|
|
155
|
+
export type CustomerSuccessListAccountDtoPayoutProviderEnum = typeof CustomerSuccessListAccountDtoPayoutProviderEnum[keyof typeof CustomerSuccessListAccountDtoPayoutProviderEnum];
|
|
156
|
+
/**
|
|
157
|
+
* Check if a given object implements the CustomerSuccessListAccountDto interface.
|
|
158
|
+
*/
|
|
159
|
+
export declare function instanceOfCustomerSuccessListAccountDto(value: object): value is CustomerSuccessListAccountDto;
|
|
160
|
+
export declare function CustomerSuccessListAccountDtoFromJSON(json: any): CustomerSuccessListAccountDto;
|
|
161
|
+
export declare function CustomerSuccessListAccountDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CustomerSuccessListAccountDto;
|
|
162
|
+
export declare function CustomerSuccessListAccountDtoToJSON(json: any): CustomerSuccessListAccountDto;
|
|
163
|
+
export declare function CustomerSuccessListAccountDtoToJSONTyped(value?: CustomerSuccessListAccountDto | null, ignoreDiscriminator?: boolean): any;
|