@randock/nameshift-api-client 0.0.486 → 0.0.488
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 +10 -0
- package/README.md +3 -3
- package/dist/apis/AdminApi.d.ts +38 -3
- package/dist/apis/AdminApi.js +132 -2
- package/dist/apis/BuyersApi.d.ts +33 -1
- package/dist/apis/BuyersApi.js +121 -0
- package/dist/apis/DomainAppraisalRequestsApi.d.ts +50 -0
- package/dist/apis/DomainAppraisalRequestsApi.js +217 -0
- package/dist/apis/DomainAppraisalRequestsPublicApi.d.ts +86 -0
- package/dist/apis/DomainAppraisalRequestsPublicApi.js +321 -0
- package/dist/apis/index.d.ts +2 -0
- package/dist/apis/index.js +2 -0
- package/dist/models/AccountAliasDto.d.ts +18 -3
- package/dist/models/AccountAliasDto.js +13 -0
- package/dist/models/AccountSettingsAliasDto.d.ts +18 -3
- package/dist/models/AccountSettingsAliasDto.js +13 -0
- package/dist/models/AdminDomainAppraisalRequestListItemDto.d.ts +118 -0
- package/dist/models/AdminDomainAppraisalRequestListItemDto.js +109 -0
- package/dist/models/AdminListAccountDto.d.ts +16 -1
- package/dist/models/AdminListAccountDto.js +13 -1
- package/dist/models/BuyerDomainAppraisalRequestCheckoutDto.d.ts +268 -0
- package/dist/models/BuyerDomainAppraisalRequestCheckoutDto.js +237 -0
- package/dist/models/BuyerInvoiceDto.d.ts +2 -2
- package/dist/models/BuyerNotificationDto.d.ts +1 -0
- package/dist/models/BuyerNotificationDto.js +1 -0
- package/dist/models/BuyerNotificationListItemDto.d.ts +1 -0
- package/dist/models/BuyerNotificationListItemDto.js +1 -0
- package/dist/models/BuyerSessionDto.d.ts +6 -0
- package/dist/models/BuyerSessionDto.js +4 -0
- package/dist/models/CreateAccountPaymentInput.d.ts +1 -0
- package/dist/models/CreateAccountPaymentInput.js +2 -1
- package/dist/models/CreateBuyerDomainAppraisalRequestInput.d.ts +44 -0
- package/dist/models/CreateBuyerDomainAppraisalRequestInput.js +59 -0
- package/dist/models/CustomerSuccessListAccountDto.d.ts +16 -1
- package/dist/models/CustomerSuccessListAccountDto.js +13 -1
- package/dist/models/DomainAppraisalRequestListItemDto.d.ts +82 -0
- package/dist/models/DomainAppraisalRequestListItemDto.js +85 -0
- package/dist/models/DomainAppraisalRequestStatus.d.ts +27 -0
- package/dist/models/DomainAppraisalRequestStatus.js +53 -0
- package/dist/models/DomainAppraisalRequester.d.ts +25 -0
- package/dist/models/DomainAppraisalRequester.js +51 -0
- package/dist/models/DomainSalesInformationDto.d.ts +6 -0
- package/dist/models/DomainSalesInformationDto.js +4 -0
- package/dist/models/FeatureFlagListItemDto.d.ts +1 -0
- package/dist/models/FeatureFlagListItemDto.js +2 -1
- package/dist/models/GetAdminDomainAppraisalRequests200Response.d.ts +47 -0
- package/dist/models/GetAdminDomainAppraisalRequests200Response.js +62 -0
- package/dist/models/GetBuyerDomainAppraisalRequests200Response.d.ts +47 -0
- package/dist/models/GetBuyerDomainAppraisalRequests200Response.js +62 -0
- package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.d.ts +1 -0
- package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.js +2 -1
- package/dist/models/InvoiceDto.d.ts +2 -2
- package/dist/models/PrivateAccountGetMeResponse.d.ts +1 -0
- package/dist/models/PrivateAccountGetMeResponse.js +2 -1
- package/dist/models/UserNotificationDto.d.ts +1 -0
- package/dist/models/UserNotificationDto.js +1 -0
- package/dist/models/UserNotificationListItemDto.d.ts +1 -0
- package/dist/models/UserNotificationListItemDto.js +1 -0
- package/dist/models/index.d.ts +8 -0
- package/dist/models/index.js +8 -0
- package/package.json +1 -1
- package/src/apis/AdminApi.ts +130 -2
- package/src/apis/BuyersApi.ts +113 -0
- package/src/apis/DomainAppraisalRequestsApi.ts +157 -0
- package/src/apis/DomainAppraisalRequestsPublicApi.ts +271 -0
- package/src/apis/index.ts +2 -0
- package/src/models/AccountAliasDto.ts +24 -3
- package/src/models/AccountSettingsAliasDto.ts +24 -3
- package/src/models/AdminDomainAppraisalRequestListItemDto.ts +209 -0
- package/src/models/AdminListAccountDto.ts +20 -1
- package/src/models/BuyerDomainAppraisalRequestCheckoutDto.ts +411 -0
- package/src/models/BuyerInvoiceDto.ts +2 -2
- package/src/models/BuyerNotificationDto.ts +1 -0
- package/src/models/BuyerNotificationListItemDto.ts +1 -0
- package/src/models/BuyerSessionDto.ts +9 -0
- package/src/models/CreateAccountPaymentInput.ts +2 -1
- package/src/models/CreateBuyerDomainAppraisalRequestInput.ts +84 -0
- package/src/models/CustomerSuccessListAccountDto.ts +20 -1
- package/src/models/DomainAppraisalRequestListItemDto.ts +155 -0
- package/src/models/DomainAppraisalRequestStatus.ts +55 -0
- package/src/models/DomainAppraisalRequester.ts +53 -0
- package/src/models/DomainSalesInformationDto.ts +9 -0
- package/src/models/FeatureFlagListItemDto.ts +2 -1
- package/src/models/GetAdminDomainAppraisalRequests200Response.ts +106 -0
- package/src/models/GetBuyerDomainAppraisalRequests200Response.ts +106 -0
- package/src/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.ts +2 -1
- package/src/models/InvoiceDto.ts +2 -2
- package/src/models/PrivateAccountGetMeResponse.ts +2 -1
- package/src/models/UserNotificationDto.ts +1 -0
- package/src/models/UserNotificationListItemDto.ts +1 -0
- package/src/models/index.ts +8 -0
|
@@ -84,11 +84,11 @@ export interface BuyerInvoiceDto {
|
|
|
84
84
|
*/
|
|
85
85
|
target: BuyerInvoiceDtoTargetEnum;
|
|
86
86
|
/**
|
|
87
|
-
* Seller account information.
|
|
87
|
+
* Seller account information; null only for the invoice of a buyer's domain appraisal, which Nameshift sells.
|
|
88
88
|
* @type {BuyerInvoiceSellerAccountDto}
|
|
89
89
|
* @memberof BuyerInvoiceDto
|
|
90
90
|
*/
|
|
91
|
-
sellerAccount: BuyerInvoiceSellerAccountDto;
|
|
91
|
+
sellerAccount: BuyerInvoiceSellerAccountDto | null;
|
|
92
92
|
/**
|
|
93
93
|
* Parent invoice ID, if this is a child invoice.
|
|
94
94
|
* @type {string}
|
|
@@ -81,6 +81,7 @@ export const BuyerNotificationDtoTypeEnum = {
|
|
|
81
81
|
ACCOUNT_ONBOARDING_FINISHED: 'account_onboarding_finished',
|
|
82
82
|
ACCOUNT_ONBOARDING_REJECTED: 'account_onboarding_rejected',
|
|
83
83
|
ACCOUNT_BANK_ACCOUNT_VERIFICATION_SUCCEEDED: 'account_bank_account_verification_succeeded',
|
|
84
|
+
ACCOUNT_ALIAS_REJECTED: 'account_alias_rejected',
|
|
84
85
|
BUYER_ACCESS_TOKEN: 'buyer_access_token',
|
|
85
86
|
DOMAIN_TRANSFER_REQUEST_AUTH_CODE_TO_SELLER: 'domain_transfer.request_auth_code_to_seller',
|
|
86
87
|
DOMAIN_TRANSFER_VALIDATION_REQUIRED_BY_BUYER_EMAIL: 'domain_transfer_validation_required_by_buyer_email',
|
|
@@ -67,6 +67,7 @@ export const BuyerNotificationListItemDtoTypeEnum = {
|
|
|
67
67
|
ACCOUNT_ONBOARDING_FINISHED: 'account_onboarding_finished',
|
|
68
68
|
ACCOUNT_ONBOARDING_REJECTED: 'account_onboarding_rejected',
|
|
69
69
|
ACCOUNT_BANK_ACCOUNT_VERIFICATION_SUCCEEDED: 'account_bank_account_verification_succeeded',
|
|
70
|
+
ACCOUNT_ALIAS_REJECTED: 'account_alias_rejected',
|
|
70
71
|
BUYER_ACCESS_TOKEN: 'buyer_access_token',
|
|
71
72
|
DOMAIN_TRANSFER_REQUEST_AUTH_CODE_TO_SELLER: 'domain_transfer.request_auth_code_to_seller',
|
|
72
73
|
DOMAIN_TRANSFER_VALIDATION_REQUIRED_BY_BUYER_EMAIL: 'domain_transfer_validation_required_by_buyer_email',
|
|
@@ -73,6 +73,12 @@ export interface BuyerSessionDto {
|
|
|
73
73
|
* @memberof BuyerSessionDto
|
|
74
74
|
*/
|
|
75
75
|
hasAuctions: boolean;
|
|
76
|
+
/**
|
|
77
|
+
* Whether the buyer has requested any domain appraisal
|
|
78
|
+
* @type {boolean}
|
|
79
|
+
* @memberof BuyerSessionDto
|
|
80
|
+
*/
|
|
81
|
+
hasDomainAppraisalRequests: boolean;
|
|
76
82
|
}
|
|
77
83
|
|
|
78
84
|
|
|
@@ -99,6 +105,7 @@ export function instanceOfBuyerSessionDto(value: object): value is BuyerSessionD
|
|
|
99
105
|
if (!('hasSubscriptions' in value) || value['hasSubscriptions'] === undefined) return false;
|
|
100
106
|
if (!('unreadNotificationsNumber' in value) || value['unreadNotificationsNumber'] === undefined) return false;
|
|
101
107
|
if (!('hasAuctions' in value) || value['hasAuctions'] === undefined) return false;
|
|
108
|
+
if (!('hasDomainAppraisalRequests' in value) || value['hasDomainAppraisalRequests'] === undefined) return false;
|
|
102
109
|
return true;
|
|
103
110
|
}
|
|
104
111
|
|
|
@@ -121,6 +128,7 @@ export function BuyerSessionDtoFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
121
128
|
'hasSubscriptions': json['hasSubscriptions'],
|
|
122
129
|
'unreadNotificationsNumber': json['unreadNotificationsNumber'],
|
|
123
130
|
'hasAuctions': json['hasAuctions'],
|
|
131
|
+
'hasDomainAppraisalRequests': json['hasDomainAppraisalRequests'],
|
|
124
132
|
};
|
|
125
133
|
}
|
|
126
134
|
|
|
@@ -144,6 +152,7 @@ export function BuyerSessionDtoToJSONTyped(value?: BuyerSessionDto | null, ignor
|
|
|
144
152
|
'hasSubscriptions': value['hasSubscriptions'],
|
|
145
153
|
'unreadNotificationsNumber': value['unreadNotificationsNumber'],
|
|
146
154
|
'hasAuctions': value['hasAuctions'],
|
|
155
|
+
'hasDomainAppraisalRequests': value['hasDomainAppraisalRequests'],
|
|
147
156
|
};
|
|
148
157
|
}
|
|
149
158
|
|
|
@@ -44,7 +44,8 @@ export interface CreateAccountPaymentInput {
|
|
|
44
44
|
* @export
|
|
45
45
|
*/
|
|
46
46
|
export const CreateAccountPaymentInputTypeEnum = {
|
|
47
|
-
PAID_AUCTION: 'PAID_AUCTION'
|
|
47
|
+
PAID_AUCTION: 'PAID_AUCTION',
|
|
48
|
+
DOMAIN_APPRAISAL: 'DOMAIN_APPRAISAL'
|
|
48
49
|
} as const;
|
|
49
50
|
export type CreateAccountPaymentInputTypeEnum = typeof CreateAccountPaymentInputTypeEnum[keyof typeof CreateAccountPaymentInputTypeEnum];
|
|
50
51
|
|
|
@@ -0,0 +1,84 @@
|
|
|
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 CreateBuyerDomainAppraisalRequestInput
|
|
20
|
+
*/
|
|
21
|
+
export interface CreateBuyerDomainAppraisalRequestInput {
|
|
22
|
+
/**
|
|
23
|
+
* Email of the buyer requesting the domain appraisal
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof CreateBuyerDomainAppraisalRequestInput
|
|
26
|
+
*/
|
|
27
|
+
email: string;
|
|
28
|
+
/**
|
|
29
|
+
* Locale for the domain appraisal request and invoice communications
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof CreateBuyerDomainAppraisalRequestInput
|
|
32
|
+
*/
|
|
33
|
+
locale: string;
|
|
34
|
+
/**
|
|
35
|
+
* Full name of the domain to appraise
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof CreateBuyerDomainAppraisalRequestInput
|
|
38
|
+
*/
|
|
39
|
+
domainName: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the CreateBuyerDomainAppraisalRequestInput interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfCreateBuyerDomainAppraisalRequestInput(value: object): value is CreateBuyerDomainAppraisalRequestInput {
|
|
46
|
+
if (!('email' in value) || value['email'] === undefined) return false;
|
|
47
|
+
if (!('locale' in value) || value['locale'] === undefined) return false;
|
|
48
|
+
if (!('domainName' in value) || value['domainName'] === undefined) return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function CreateBuyerDomainAppraisalRequestInputFromJSON(json: any): CreateBuyerDomainAppraisalRequestInput {
|
|
53
|
+
return CreateBuyerDomainAppraisalRequestInputFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function CreateBuyerDomainAppraisalRequestInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateBuyerDomainAppraisalRequestInput {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'email': json['email'],
|
|
63
|
+
'locale': json['locale'],
|
|
64
|
+
'domainName': json['domainName'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function CreateBuyerDomainAppraisalRequestInputToJSON(json: any): CreateBuyerDomainAppraisalRequestInput {
|
|
69
|
+
return CreateBuyerDomainAppraisalRequestInputToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function CreateBuyerDomainAppraisalRequestInputToJSONTyped(value?: CreateBuyerDomainAppraisalRequestInput | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'email': value['email'],
|
|
80
|
+
'locale': value['locale'],
|
|
81
|
+
'domainName': value['domainName'],
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
|
@@ -110,11 +110,17 @@ export interface CustomerSuccessListAccountDto {
|
|
|
110
110
|
*/
|
|
111
111
|
alias: string | null;
|
|
112
112
|
/**
|
|
113
|
-
* Whether the alias is verified.
|
|
113
|
+
* Deprecated, use aliasStatus. Whether the alias is verified.
|
|
114
114
|
* @type {boolean}
|
|
115
115
|
* @memberof CustomerSuccessListAccountDto
|
|
116
116
|
*/
|
|
117
117
|
aliasVerified: boolean;
|
|
118
|
+
/**
|
|
119
|
+
* Review status of the alias: pending review, verified or rejected. Null when no alias is set.
|
|
120
|
+
* @type {string}
|
|
121
|
+
* @memberof CustomerSuccessListAccountDto
|
|
122
|
+
*/
|
|
123
|
+
aliasStatus: CustomerSuccessListAccountDtoAliasStatusEnum | null;
|
|
118
124
|
/**
|
|
119
125
|
* Account metrics.
|
|
120
126
|
* @type {CustomerSuccessListAccountMetricsDto}
|
|
@@ -184,6 +190,16 @@ export interface CustomerSuccessListAccountDto {
|
|
|
184
190
|
}
|
|
185
191
|
|
|
186
192
|
|
|
193
|
+
/**
|
|
194
|
+
* @export
|
|
195
|
+
*/
|
|
196
|
+
export const CustomerSuccessListAccountDtoAliasStatusEnum = {
|
|
197
|
+
PENDING: 'pending',
|
|
198
|
+
VERIFIED: 'verified',
|
|
199
|
+
REJECTED: 'rejected'
|
|
200
|
+
} as const;
|
|
201
|
+
export type CustomerSuccessListAccountDtoAliasStatusEnum = typeof CustomerSuccessListAccountDtoAliasStatusEnum[keyof typeof CustomerSuccessListAccountDtoAliasStatusEnum];
|
|
202
|
+
|
|
187
203
|
/**
|
|
188
204
|
* @export
|
|
189
205
|
*/
|
|
@@ -227,6 +243,7 @@ export function instanceOfCustomerSuccessListAccountDto(value: object): value is
|
|
|
227
243
|
if (!('type' in value) || value['type'] === undefined) return false;
|
|
228
244
|
if (!('alias' in value) || value['alias'] === undefined) return false;
|
|
229
245
|
if (!('aliasVerified' in value) || value['aliasVerified'] === undefined) return false;
|
|
246
|
+
if (!('aliasStatus' in value) || value['aliasStatus'] === undefined) return false;
|
|
230
247
|
if (!('metrics' in value) || value['metrics'] === undefined) return false;
|
|
231
248
|
if (!('lastOnline' in value) || value['lastOnline'] === undefined) return false;
|
|
232
249
|
if (!('users' in value) || value['users'] === undefined) return false;
|
|
@@ -261,6 +278,7 @@ export function CustomerSuccessListAccountDtoFromJSONTyped(json: any, ignoreDisc
|
|
|
261
278
|
'type': json['type'],
|
|
262
279
|
'alias': json['alias'],
|
|
263
280
|
'aliasVerified': json['aliasVerified'],
|
|
281
|
+
'aliasStatus': json['aliasStatus'],
|
|
264
282
|
'metrics': CustomerSuccessListAccountMetricsDtoFromJSON(json['metrics']),
|
|
265
283
|
'lastOnline': (new Date(json['lastOnline'])),
|
|
266
284
|
'users': ((json['users'] as Array<any>).map(CustomerSuccessListAccountUserDtoFromJSON)),
|
|
@@ -296,6 +314,7 @@ export function CustomerSuccessListAccountDtoToJSONTyped(value?: CustomerSuccess
|
|
|
296
314
|
'type': value['type'],
|
|
297
315
|
'alias': value['alias'],
|
|
298
316
|
'aliasVerified': value['aliasVerified'],
|
|
317
|
+
'aliasStatus': value['aliasStatus'],
|
|
299
318
|
'metrics': CustomerSuccessListAccountMetricsDtoToJSON(value['metrics']),
|
|
300
319
|
'lastOnline': ((value['lastOnline']).toISOString()),
|
|
301
320
|
'users': ((value['users'] as Array<any>).map(CustomerSuccessListAccountUserDtoToJSON)),
|
|
@@ -0,0 +1,155 @@
|
|
|
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 { DomainAppraisalRequester } from './DomainAppraisalRequester';
|
|
17
|
+
import {
|
|
18
|
+
DomainAppraisalRequesterFromJSON,
|
|
19
|
+
DomainAppraisalRequesterFromJSONTyped,
|
|
20
|
+
DomainAppraisalRequesterToJSON,
|
|
21
|
+
DomainAppraisalRequesterToJSONTyped,
|
|
22
|
+
} from './DomainAppraisalRequester';
|
|
23
|
+
import type { DomainAppraisalRequestStatus } from './DomainAppraisalRequestStatus';
|
|
24
|
+
import {
|
|
25
|
+
DomainAppraisalRequestStatusFromJSON,
|
|
26
|
+
DomainAppraisalRequestStatusFromJSONTyped,
|
|
27
|
+
DomainAppraisalRequestStatusToJSON,
|
|
28
|
+
DomainAppraisalRequestStatusToJSONTyped,
|
|
29
|
+
} from './DomainAppraisalRequestStatus';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface DomainAppraisalRequestListItemDto
|
|
35
|
+
*/
|
|
36
|
+
export interface DomainAppraisalRequestListItemDto {
|
|
37
|
+
/**
|
|
38
|
+
* Domain appraisal request identifier.
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof DomainAppraisalRequestListItemDto
|
|
41
|
+
*/
|
|
42
|
+
id: string;
|
|
43
|
+
/**
|
|
44
|
+
* Appraised domain identifier.
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof DomainAppraisalRequestListItemDto
|
|
47
|
+
*/
|
|
48
|
+
domainId: string;
|
|
49
|
+
/**
|
|
50
|
+
* Appraised domain name (Unicode).
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof DomainAppraisalRequestListItemDto
|
|
53
|
+
*/
|
|
54
|
+
domainName: string;
|
|
55
|
+
/**
|
|
56
|
+
* Whether a buyer or the seller of the domain requested it.
|
|
57
|
+
* @type {DomainAppraisalRequester}
|
|
58
|
+
* @memberof DomainAppraisalRequestListItemDto
|
|
59
|
+
*/
|
|
60
|
+
requester: DomainAppraisalRequester;
|
|
61
|
+
/**
|
|
62
|
+
* Domain appraisal request status.
|
|
63
|
+
* @type {DomainAppraisalRequestStatus}
|
|
64
|
+
* @memberof DomainAppraisalRequestListItemDto
|
|
65
|
+
*/
|
|
66
|
+
status: DomainAppraisalRequestStatus;
|
|
67
|
+
/**
|
|
68
|
+
* Appraised amount in EUR, once appraised.
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof DomainAppraisalRequestListItemDto
|
|
71
|
+
*/
|
|
72
|
+
appraisedAmountEur: string | null;
|
|
73
|
+
/**
|
|
74
|
+
* When it was appraised.
|
|
75
|
+
* @type {Date}
|
|
76
|
+
* @memberof DomainAppraisalRequestListItemDto
|
|
77
|
+
*/
|
|
78
|
+
appraisedAt: Date | null;
|
|
79
|
+
/**
|
|
80
|
+
* When it was sent to be appraised, after payment.
|
|
81
|
+
* @type {Date}
|
|
82
|
+
* @memberof DomainAppraisalRequestListItemDto
|
|
83
|
+
*/
|
|
84
|
+
requestedAt: Date | null;
|
|
85
|
+
/**
|
|
86
|
+
* When it was created.
|
|
87
|
+
* @type {Date}
|
|
88
|
+
* @memberof DomainAppraisalRequestListItemDto
|
|
89
|
+
*/
|
|
90
|
+
createdAt: Date;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Check if a given object implements the DomainAppraisalRequestListItemDto interface.
|
|
97
|
+
*/
|
|
98
|
+
export function instanceOfDomainAppraisalRequestListItemDto(value: object): value is DomainAppraisalRequestListItemDto {
|
|
99
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
100
|
+
if (!('domainId' in value) || value['domainId'] === undefined) return false;
|
|
101
|
+
if (!('domainName' in value) || value['domainName'] === undefined) return false;
|
|
102
|
+
if (!('requester' in value) || value['requester'] === undefined) return false;
|
|
103
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
104
|
+
if (!('appraisedAmountEur' in value) || value['appraisedAmountEur'] === undefined) return false;
|
|
105
|
+
if (!('appraisedAt' in value) || value['appraisedAt'] === undefined) return false;
|
|
106
|
+
if (!('requestedAt' in value) || value['requestedAt'] === undefined) return false;
|
|
107
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
108
|
+
return true;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export function DomainAppraisalRequestListItemDtoFromJSON(json: any): DomainAppraisalRequestListItemDto {
|
|
112
|
+
return DomainAppraisalRequestListItemDtoFromJSONTyped(json, false);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export function DomainAppraisalRequestListItemDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): DomainAppraisalRequestListItemDto {
|
|
116
|
+
if (json == null) {
|
|
117
|
+
return json;
|
|
118
|
+
}
|
|
119
|
+
return {
|
|
120
|
+
|
|
121
|
+
'id': json['id'],
|
|
122
|
+
'domainId': json['domainId'],
|
|
123
|
+
'domainName': json['domainName'],
|
|
124
|
+
'requester': DomainAppraisalRequesterFromJSON(json['requester']),
|
|
125
|
+
'status': DomainAppraisalRequestStatusFromJSON(json['status']),
|
|
126
|
+
'appraisedAmountEur': json['appraisedAmountEur'],
|
|
127
|
+
'appraisedAt': (json['appraisedAt'] == null ? null : new Date(json['appraisedAt'])),
|
|
128
|
+
'requestedAt': (json['requestedAt'] == null ? null : new Date(json['requestedAt'])),
|
|
129
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
export function DomainAppraisalRequestListItemDtoToJSON(json: any): DomainAppraisalRequestListItemDto {
|
|
134
|
+
return DomainAppraisalRequestListItemDtoToJSONTyped(json, false);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
export function DomainAppraisalRequestListItemDtoToJSONTyped(value?: DomainAppraisalRequestListItemDto | null, ignoreDiscriminator: boolean = false): any {
|
|
138
|
+
if (value == null) {
|
|
139
|
+
return value;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
return {
|
|
143
|
+
|
|
144
|
+
'id': value['id'],
|
|
145
|
+
'domainId': value['domainId'],
|
|
146
|
+
'domainName': value['domainName'],
|
|
147
|
+
'requester': DomainAppraisalRequesterToJSON(value['requester']),
|
|
148
|
+
'status': DomainAppraisalRequestStatusToJSON(value['status']),
|
|
149
|
+
'appraisedAmountEur': value['appraisedAmountEur'],
|
|
150
|
+
'appraisedAt': (value['appraisedAt'] == null ? null : (value['appraisedAt'] as any).toISOString()),
|
|
151
|
+
'requestedAt': (value['requestedAt'] == null ? null : (value['requestedAt'] as any).toISOString()),
|
|
152
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
153
|
+
};
|
|
154
|
+
}
|
|
155
|
+
|
|
@@ -0,0 +1,55 @@
|
|
|
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
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Domain appraisal request status.
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const DomainAppraisalRequestStatus = {
|
|
21
|
+
PENDING: 'pending',
|
|
22
|
+
REQUESTED: 'requested',
|
|
23
|
+
APPRAISED: 'appraised',
|
|
24
|
+
CANCELLED: 'cancelled'
|
|
25
|
+
} as const;
|
|
26
|
+
export type DomainAppraisalRequestStatus = typeof DomainAppraisalRequestStatus[keyof typeof DomainAppraisalRequestStatus];
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
export function instanceOfDomainAppraisalRequestStatus(value: any): boolean {
|
|
30
|
+
for (const key in DomainAppraisalRequestStatus) {
|
|
31
|
+
if (Object.prototype.hasOwnProperty.call(DomainAppraisalRequestStatus, key)) {
|
|
32
|
+
if (DomainAppraisalRequestStatus[key as keyof typeof DomainAppraisalRequestStatus] === value) {
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
return false;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export function DomainAppraisalRequestStatusFromJSON(json: any): DomainAppraisalRequestStatus {
|
|
41
|
+
return DomainAppraisalRequestStatusFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export function DomainAppraisalRequestStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): DomainAppraisalRequestStatus {
|
|
45
|
+
return json as DomainAppraisalRequestStatus;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export function DomainAppraisalRequestStatusToJSON(value?: DomainAppraisalRequestStatus | null): any {
|
|
49
|
+
return value as any;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function DomainAppraisalRequestStatusToJSONTyped(value: any, ignoreDiscriminator: boolean): DomainAppraisalRequestStatus {
|
|
53
|
+
return value as DomainAppraisalRequestStatus;
|
|
54
|
+
}
|
|
55
|
+
|
|
@@ -0,0 +1,53 @@
|
|
|
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
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Whether a buyer or the seller of the domain requested it.
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const DomainAppraisalRequester = {
|
|
21
|
+
BUYER: 'buyer',
|
|
22
|
+
SELLER: 'seller'
|
|
23
|
+
} as const;
|
|
24
|
+
export type DomainAppraisalRequester = typeof DomainAppraisalRequester[keyof typeof DomainAppraisalRequester];
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
export function instanceOfDomainAppraisalRequester(value: any): boolean {
|
|
28
|
+
for (const key in DomainAppraisalRequester) {
|
|
29
|
+
if (Object.prototype.hasOwnProperty.call(DomainAppraisalRequester, key)) {
|
|
30
|
+
if (DomainAppraisalRequester[key as keyof typeof DomainAppraisalRequester] === value) {
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
return false;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function DomainAppraisalRequesterFromJSON(json: any): DomainAppraisalRequester {
|
|
39
|
+
return DomainAppraisalRequesterFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function DomainAppraisalRequesterFromJSONTyped(json: any, ignoreDiscriminator: boolean): DomainAppraisalRequester {
|
|
43
|
+
return json as DomainAppraisalRequester;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function DomainAppraisalRequesterToJSON(value?: DomainAppraisalRequester | null): any {
|
|
47
|
+
return value as any;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function DomainAppraisalRequesterToJSONTyped(value: any, ignoreDiscriminator: boolean): DomainAppraisalRequester {
|
|
51
|
+
return value as DomainAppraisalRequester;
|
|
52
|
+
}
|
|
53
|
+
|
|
@@ -159,6 +159,12 @@ export interface DomainSalesInformationDto {
|
|
|
159
159
|
* @memberof DomainSalesInformationDto
|
|
160
160
|
*/
|
|
161
161
|
leadBuyerSettings: LeadBuyerConfigDto | null;
|
|
162
|
+
/**
|
|
163
|
+
* Whether anyone can request a domain appraisal of this domain from its landing page.
|
|
164
|
+
* @type {boolean}
|
|
165
|
+
* @memberof DomainSalesInformationDto
|
|
166
|
+
*/
|
|
167
|
+
domainAppraisalRequestEnabled: boolean;
|
|
162
168
|
/**
|
|
163
169
|
*
|
|
164
170
|
* @type {DomainSalesInformationDtoLandingPageDesign}
|
|
@@ -186,6 +192,7 @@ export function instanceOfDomainSalesInformationDto(value: object): value is Dom
|
|
|
186
192
|
if (!('auctionId' in value) || value['auctionId'] === undefined) return false;
|
|
187
193
|
if (!('locked' in value) || value['locked'] === undefined) return false;
|
|
188
194
|
if (!('leadBuyerSettings' in value) || value['leadBuyerSettings'] === undefined) return false;
|
|
195
|
+
if (!('domainAppraisalRequestEnabled' in value) || value['domainAppraisalRequestEnabled'] === undefined) return false;
|
|
189
196
|
if (!('landingPageDesign' in value) || value['landingPageDesign'] === undefined) return false;
|
|
190
197
|
return true;
|
|
191
198
|
}
|
|
@@ -215,6 +222,7 @@ export function DomainSalesInformationDtoFromJSONTyped(json: any, ignoreDiscrimi
|
|
|
215
222
|
'auctionId': json['auctionId'],
|
|
216
223
|
'locked': json['locked'],
|
|
217
224
|
'leadBuyerSettings': LeadBuyerConfigDtoFromJSON(json['leadBuyerSettings']),
|
|
225
|
+
'domainAppraisalRequestEnabled': json['domainAppraisalRequestEnabled'],
|
|
218
226
|
'landingPageDesign': DomainSalesInformationDtoLandingPageDesignFromJSON(json['landingPageDesign']),
|
|
219
227
|
};
|
|
220
228
|
}
|
|
@@ -245,6 +253,7 @@ export function DomainSalesInformationDtoToJSONTyped(value?: DomainSalesInformat
|
|
|
245
253
|
'auctionId': value['auctionId'],
|
|
246
254
|
'locked': value['locked'],
|
|
247
255
|
'leadBuyerSettings': LeadBuyerConfigDtoToJSON(value['leadBuyerSettings']),
|
|
256
|
+
'domainAppraisalRequestEnabled': value['domainAppraisalRequestEnabled'],
|
|
248
257
|
'landingPageDesign': DomainSalesInformationDtoLandingPageDesignToJSON(value['landingPageDesign']),
|
|
249
258
|
};
|
|
250
259
|
}
|
|
@@ -98,7 +98,8 @@ export const FeatureFlagListItemDtoNameEnum = {
|
|
|
98
98
|
AI_DOMAIN_EDIT: 'AI_DOMAIN_EDIT',
|
|
99
99
|
LEAD_ENRICHMENT: 'LEAD_ENRICHMENT',
|
|
100
100
|
LEAD_CREATION_RECAPTCHA: 'LEAD_CREATION_RECAPTCHA',
|
|
101
|
-
DOMAIN_TRANSFER_HOLDER_CHANGE_FORM_SE_NU: 'DOMAIN_TRANSFER_HOLDER_CHANGE_FORM_SE_NU'
|
|
101
|
+
DOMAIN_TRANSFER_HOLDER_CHANGE_FORM_SE_NU: 'DOMAIN_TRANSFER_HOLDER_CHANGE_FORM_SE_NU',
|
|
102
|
+
DOMAIN_APPRAISAL: 'DOMAIN_APPRAISAL'
|
|
102
103
|
} as const;
|
|
103
104
|
export type FeatureFlagListItemDtoNameEnum = typeof FeatureFlagListItemDtoNameEnum[keyof typeof FeatureFlagListItemDtoNameEnum];
|
|
104
105
|
|
|
@@ -0,0 +1,106 @@
|
|
|
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 { PaginateResponseLinks } from './PaginateResponseLinks';
|
|
17
|
+
import {
|
|
18
|
+
PaginateResponseLinksFromJSON,
|
|
19
|
+
PaginateResponseLinksFromJSONTyped,
|
|
20
|
+
PaginateResponseLinksToJSON,
|
|
21
|
+
PaginateResponseLinksToJSONTyped,
|
|
22
|
+
} from './PaginateResponseLinks';
|
|
23
|
+
import type { AdminDomainAppraisalRequestListItemDto } from './AdminDomainAppraisalRequestListItemDto';
|
|
24
|
+
import {
|
|
25
|
+
AdminDomainAppraisalRequestListItemDtoFromJSON,
|
|
26
|
+
AdminDomainAppraisalRequestListItemDtoFromJSONTyped,
|
|
27
|
+
AdminDomainAppraisalRequestListItemDtoToJSON,
|
|
28
|
+
AdminDomainAppraisalRequestListItemDtoToJSONTyped,
|
|
29
|
+
} from './AdminDomainAppraisalRequestListItemDto';
|
|
30
|
+
import type { PaginateResponseMeta } from './PaginateResponseMeta';
|
|
31
|
+
import {
|
|
32
|
+
PaginateResponseMetaFromJSON,
|
|
33
|
+
PaginateResponseMetaFromJSONTyped,
|
|
34
|
+
PaginateResponseMetaToJSON,
|
|
35
|
+
PaginateResponseMetaToJSONTyped,
|
|
36
|
+
} from './PaginateResponseMeta';
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @export
|
|
41
|
+
* @interface GetAdminDomainAppraisalRequests200Response
|
|
42
|
+
*/
|
|
43
|
+
export interface GetAdminDomainAppraisalRequests200Response {
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {Array<AdminDomainAppraisalRequestListItemDto>}
|
|
47
|
+
* @memberof GetAdminDomainAppraisalRequests200Response
|
|
48
|
+
*/
|
|
49
|
+
data: Array<AdminDomainAppraisalRequestListItemDto>;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {PaginateResponseMeta}
|
|
53
|
+
* @memberof GetAdminDomainAppraisalRequests200Response
|
|
54
|
+
*/
|
|
55
|
+
meta: PaginateResponseMeta;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {PaginateResponseLinks}
|
|
59
|
+
* @memberof GetAdminDomainAppraisalRequests200Response
|
|
60
|
+
*/
|
|
61
|
+
links: PaginateResponseLinks;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Check if a given object implements the GetAdminDomainAppraisalRequests200Response interface.
|
|
66
|
+
*/
|
|
67
|
+
export function instanceOfGetAdminDomainAppraisalRequests200Response(value: object): value is GetAdminDomainAppraisalRequests200Response {
|
|
68
|
+
if (!('data' in value) || value['data'] === undefined) return false;
|
|
69
|
+
if (!('meta' in value) || value['meta'] === undefined) return false;
|
|
70
|
+
if (!('links' in value) || value['links'] === undefined) return false;
|
|
71
|
+
return true;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function GetAdminDomainAppraisalRequests200ResponseFromJSON(json: any): GetAdminDomainAppraisalRequests200Response {
|
|
75
|
+
return GetAdminDomainAppraisalRequests200ResponseFromJSONTyped(json, false);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function GetAdminDomainAppraisalRequests200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetAdminDomainAppraisalRequests200Response {
|
|
79
|
+
if (json == null) {
|
|
80
|
+
return json;
|
|
81
|
+
}
|
|
82
|
+
return {
|
|
83
|
+
|
|
84
|
+
'data': ((json['data'] as Array<any>).map(AdminDomainAppraisalRequestListItemDtoFromJSON)),
|
|
85
|
+
'meta': PaginateResponseMetaFromJSON(json['meta']),
|
|
86
|
+
'links': PaginateResponseLinksFromJSON(json['links']),
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export function GetAdminDomainAppraisalRequests200ResponseToJSON(json: any): GetAdminDomainAppraisalRequests200Response {
|
|
91
|
+
return GetAdminDomainAppraisalRequests200ResponseToJSONTyped(json, false);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export function GetAdminDomainAppraisalRequests200ResponseToJSONTyped(value?: GetAdminDomainAppraisalRequests200Response | null, ignoreDiscriminator: boolean = false): any {
|
|
95
|
+
if (value == null) {
|
|
96
|
+
return value;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
return {
|
|
100
|
+
|
|
101
|
+
'data': ((value['data'] as Array<any>).map(AdminDomainAppraisalRequestListItemDtoToJSON)),
|
|
102
|
+
'meta': PaginateResponseMetaToJSON(value['meta']),
|
|
103
|
+
'links': PaginateResponseLinksToJSON(value['links']),
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
|