@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
|
@@ -0,0 +1,47 @@
|
|
|
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 { PaginateResponseLinks } from './PaginateResponseLinks';
|
|
13
|
+
import type { DomainAppraisalRequestListItemDto } from './DomainAppraisalRequestListItemDto';
|
|
14
|
+
import type { PaginateResponseMeta } from './PaginateResponseMeta';
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface GetBuyerDomainAppraisalRequests200Response
|
|
19
|
+
*/
|
|
20
|
+
export interface GetBuyerDomainAppraisalRequests200Response {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @type {Array<DomainAppraisalRequestListItemDto>}
|
|
24
|
+
* @memberof GetBuyerDomainAppraisalRequests200Response
|
|
25
|
+
*/
|
|
26
|
+
data: Array<DomainAppraisalRequestListItemDto>;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {PaginateResponseMeta}
|
|
30
|
+
* @memberof GetBuyerDomainAppraisalRequests200Response
|
|
31
|
+
*/
|
|
32
|
+
meta: PaginateResponseMeta;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {PaginateResponseLinks}
|
|
36
|
+
* @memberof GetBuyerDomainAppraisalRequests200Response
|
|
37
|
+
*/
|
|
38
|
+
links: PaginateResponseLinks;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Check if a given object implements the GetBuyerDomainAppraisalRequests200Response interface.
|
|
42
|
+
*/
|
|
43
|
+
export declare function instanceOfGetBuyerDomainAppraisalRequests200Response(value: object): value is GetBuyerDomainAppraisalRequests200Response;
|
|
44
|
+
export declare function GetBuyerDomainAppraisalRequests200ResponseFromJSON(json: any): GetBuyerDomainAppraisalRequests200Response;
|
|
45
|
+
export declare function GetBuyerDomainAppraisalRequests200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetBuyerDomainAppraisalRequests200Response;
|
|
46
|
+
export declare function GetBuyerDomainAppraisalRequests200ResponseToJSON(json: any): GetBuyerDomainAppraisalRequests200Response;
|
|
47
|
+
export declare function GetBuyerDomainAppraisalRequests200ResponseToJSONTyped(value?: GetBuyerDomainAppraisalRequests200Response | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,62 @@
|
|
|
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.instanceOfGetBuyerDomainAppraisalRequests200Response = instanceOfGetBuyerDomainAppraisalRequests200Response;
|
|
17
|
+
exports.GetBuyerDomainAppraisalRequests200ResponseFromJSON = GetBuyerDomainAppraisalRequests200ResponseFromJSON;
|
|
18
|
+
exports.GetBuyerDomainAppraisalRequests200ResponseFromJSONTyped = GetBuyerDomainAppraisalRequests200ResponseFromJSONTyped;
|
|
19
|
+
exports.GetBuyerDomainAppraisalRequests200ResponseToJSON = GetBuyerDomainAppraisalRequests200ResponseToJSON;
|
|
20
|
+
exports.GetBuyerDomainAppraisalRequests200ResponseToJSONTyped = GetBuyerDomainAppraisalRequests200ResponseToJSONTyped;
|
|
21
|
+
var PaginateResponseLinks_1 = require("./PaginateResponseLinks");
|
|
22
|
+
var DomainAppraisalRequestListItemDto_1 = require("./DomainAppraisalRequestListItemDto");
|
|
23
|
+
var PaginateResponseMeta_1 = require("./PaginateResponseMeta");
|
|
24
|
+
/**
|
|
25
|
+
* Check if a given object implements the GetBuyerDomainAppraisalRequests200Response interface.
|
|
26
|
+
*/
|
|
27
|
+
function instanceOfGetBuyerDomainAppraisalRequests200Response(value) {
|
|
28
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('meta' in value) || value['meta'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('links' in value) || value['links'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
function GetBuyerDomainAppraisalRequests200ResponseFromJSON(json) {
|
|
37
|
+
return GetBuyerDomainAppraisalRequests200ResponseFromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
function GetBuyerDomainAppraisalRequests200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
40
|
+
if (json == null) {
|
|
41
|
+
return json;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'data': (json['data'].map(DomainAppraisalRequestListItemDto_1.DomainAppraisalRequestListItemDtoFromJSON)),
|
|
45
|
+
'meta': (0, PaginateResponseMeta_1.PaginateResponseMetaFromJSON)(json['meta']),
|
|
46
|
+
'links': (0, PaginateResponseLinks_1.PaginateResponseLinksFromJSON)(json['links']),
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function GetBuyerDomainAppraisalRequests200ResponseToJSON(json) {
|
|
50
|
+
return GetBuyerDomainAppraisalRequests200ResponseToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function GetBuyerDomainAppraisalRequests200ResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
53
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
54
|
+
if (value == null) {
|
|
55
|
+
return value;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'data': (value['data'].map(DomainAppraisalRequestListItemDto_1.DomainAppraisalRequestListItemDtoToJSON)),
|
|
59
|
+
'meta': (0, PaginateResponseMeta_1.PaginateResponseMetaToJSON)(value['meta']),
|
|
60
|
+
'links': (0, PaginateResponseLinks_1.PaginateResponseLinksToJSON)(value['links']),
|
|
61
|
+
};
|
|
62
|
+
}
|
|
@@ -136,6 +136,7 @@ export declare const IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWi
|
|
|
136
136
|
readonly LEAD_ENRICHMENT: "LEAD_ENRICHMENT";
|
|
137
137
|
readonly LEAD_CREATION_RECAPTCHA: "LEAD_CREATION_RECAPTCHA";
|
|
138
138
|
readonly DOMAIN_TRANSFER_HOLDER_CHANGE_FORM_SE_NU: "DOMAIN_TRANSFER_HOLDER_CHANGE_FORM_SE_NU";
|
|
139
|
+
readonly DOMAIN_APPRAISAL: "DOMAIN_APPRAISAL";
|
|
139
140
|
};
|
|
140
141
|
export type IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum = typeof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum[keyof typeof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum];
|
|
141
142
|
/**
|
package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.js
CHANGED
|
@@ -60,7 +60,8 @@ exports.IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlag
|
|
|
60
60
|
AI_DOMAIN_EDIT: 'AI_DOMAIN_EDIT',
|
|
61
61
|
LEAD_ENRICHMENT: 'LEAD_ENRICHMENT',
|
|
62
62
|
LEAD_CREATION_RECAPTCHA: 'LEAD_CREATION_RECAPTCHA',
|
|
63
|
-
DOMAIN_TRANSFER_HOLDER_CHANGE_FORM_SE_NU: 'DOMAIN_TRANSFER_HOLDER_CHANGE_FORM_SE_NU'
|
|
63
|
+
DOMAIN_TRANSFER_HOLDER_CHANGE_FORM_SE_NU: 'DOMAIN_TRANSFER_HOLDER_CHANGE_FORM_SE_NU',
|
|
64
|
+
DOMAIN_APPRAISAL: 'DOMAIN_APPRAISAL'
|
|
64
65
|
};
|
|
65
66
|
/**
|
|
66
67
|
* Check if a given object implements the IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto interface.
|
|
@@ -62,11 +62,11 @@ export interface InvoiceDto {
|
|
|
62
62
|
*/
|
|
63
63
|
target: InvoiceDtoTargetEnum;
|
|
64
64
|
/**
|
|
65
|
-
* Seller account information.
|
|
65
|
+
* Seller account information; null only for the invoice of a buyer's domain appraisal, which Nameshift sells.
|
|
66
66
|
* @type {InvoiceSellerAccountDto}
|
|
67
67
|
* @memberof InvoiceDto
|
|
68
68
|
*/
|
|
69
|
-
sellerAccount: InvoiceSellerAccountDto;
|
|
69
|
+
sellerAccount: InvoiceSellerAccountDto | null;
|
|
70
70
|
/**
|
|
71
71
|
* Parent invoice ID, if this is a child invoice.
|
|
72
72
|
* @type {string}
|
|
@@ -142,6 +142,7 @@ export declare const PrivateAccountGetMeResponseEnabledFeaturesEnum: {
|
|
|
142
142
|
readonly LEAD_ENRICHMENT: "LEAD_ENRICHMENT";
|
|
143
143
|
readonly LEAD_CREATION_RECAPTCHA: "LEAD_CREATION_RECAPTCHA";
|
|
144
144
|
readonly DOMAIN_TRANSFER_HOLDER_CHANGE_FORM_SE_NU: "DOMAIN_TRANSFER_HOLDER_CHANGE_FORM_SE_NU";
|
|
145
|
+
readonly DOMAIN_APPRAISAL: "DOMAIN_APPRAISAL";
|
|
145
146
|
};
|
|
146
147
|
export type PrivateAccountGetMeResponseEnabledFeaturesEnum = typeof PrivateAccountGetMeResponseEnabledFeaturesEnum[keyof typeof PrivateAccountGetMeResponseEnabledFeaturesEnum];
|
|
147
148
|
/**
|
|
@@ -60,7 +60,8 @@ exports.PrivateAccountGetMeResponseEnabledFeaturesEnum = {
|
|
|
60
60
|
AI_DOMAIN_EDIT: 'AI_DOMAIN_EDIT',
|
|
61
61
|
LEAD_ENRICHMENT: 'LEAD_ENRICHMENT',
|
|
62
62
|
LEAD_CREATION_RECAPTCHA: 'LEAD_CREATION_RECAPTCHA',
|
|
63
|
-
DOMAIN_TRANSFER_HOLDER_CHANGE_FORM_SE_NU: 'DOMAIN_TRANSFER_HOLDER_CHANGE_FORM_SE_NU'
|
|
63
|
+
DOMAIN_TRANSFER_HOLDER_CHANGE_FORM_SE_NU: 'DOMAIN_TRANSFER_HOLDER_CHANGE_FORM_SE_NU',
|
|
64
|
+
DOMAIN_APPRAISAL: 'DOMAIN_APPRAISAL'
|
|
64
65
|
};
|
|
65
66
|
/**
|
|
66
67
|
* Check if a given object implements the PrivateAccountGetMeResponse interface.
|
|
@@ -68,6 +68,7 @@ export declare const UserNotificationDtoTypeEnum: {
|
|
|
68
68
|
readonly ACCOUNT_ONBOARDING_FINISHED: "account_onboarding_finished";
|
|
69
69
|
readonly ACCOUNT_ONBOARDING_REJECTED: "account_onboarding_rejected";
|
|
70
70
|
readonly ACCOUNT_BANK_ACCOUNT_VERIFICATION_SUCCEEDED: "account_bank_account_verification_succeeded";
|
|
71
|
+
readonly ACCOUNT_ALIAS_REJECTED: "account_alias_rejected";
|
|
71
72
|
readonly BUYER_ACCESS_TOKEN: "buyer_access_token";
|
|
72
73
|
readonly DOMAIN_TRANSFER_REQUEST_AUTH_CODE_TO_SELLER: "domain_transfer.request_auth_code_to_seller";
|
|
73
74
|
readonly DOMAIN_TRANSFER_VALIDATION_REQUIRED_BY_BUYER_EMAIL: "domain_transfer_validation_required_by_buyer_email";
|
|
@@ -29,6 +29,7 @@ exports.UserNotificationDtoTypeEnum = {
|
|
|
29
29
|
ACCOUNT_ONBOARDING_FINISHED: 'account_onboarding_finished',
|
|
30
30
|
ACCOUNT_ONBOARDING_REJECTED: 'account_onboarding_rejected',
|
|
31
31
|
ACCOUNT_BANK_ACCOUNT_VERIFICATION_SUCCEEDED: 'account_bank_account_verification_succeeded',
|
|
32
|
+
ACCOUNT_ALIAS_REJECTED: 'account_alias_rejected',
|
|
32
33
|
BUYER_ACCESS_TOKEN: 'buyer_access_token',
|
|
33
34
|
DOMAIN_TRANSFER_REQUEST_AUTH_CODE_TO_SELLER: 'domain_transfer.request_auth_code_to_seller',
|
|
34
35
|
DOMAIN_TRANSFER_VALIDATION_REQUIRED_BY_BUYER_EMAIL: 'domain_transfer_validation_required_by_buyer_email',
|
|
@@ -61,6 +61,7 @@ export declare const UserNotificationListItemDtoTypeEnum: {
|
|
|
61
61
|
readonly ACCOUNT_ONBOARDING_FINISHED: "account_onboarding_finished";
|
|
62
62
|
readonly ACCOUNT_ONBOARDING_REJECTED: "account_onboarding_rejected";
|
|
63
63
|
readonly ACCOUNT_BANK_ACCOUNT_VERIFICATION_SUCCEEDED: "account_bank_account_verification_succeeded";
|
|
64
|
+
readonly ACCOUNT_ALIAS_REJECTED: "account_alias_rejected";
|
|
64
65
|
readonly BUYER_ACCESS_TOKEN: "buyer_access_token";
|
|
65
66
|
readonly DOMAIN_TRANSFER_REQUEST_AUTH_CODE_TO_SELLER: "domain_transfer.request_auth_code_to_seller";
|
|
66
67
|
readonly DOMAIN_TRANSFER_VALIDATION_REQUIRED_BY_BUYER_EMAIL: "domain_transfer_validation_required_by_buyer_email";
|
|
@@ -28,6 +28,7 @@ exports.UserNotificationListItemDtoTypeEnum = {
|
|
|
28
28
|
ACCOUNT_ONBOARDING_FINISHED: 'account_onboarding_finished',
|
|
29
29
|
ACCOUNT_ONBOARDING_REJECTED: 'account_onboarding_rejected',
|
|
30
30
|
ACCOUNT_BANK_ACCOUNT_VERIFICATION_SUCCEEDED: 'account_bank_account_verification_succeeded',
|
|
31
|
+
ACCOUNT_ALIAS_REJECTED: 'account_alias_rejected',
|
|
31
32
|
BUYER_ACCESS_TOKEN: 'buyer_access_token',
|
|
32
33
|
DOMAIN_TRANSFER_REQUEST_AUTH_CODE_TO_SELLER: 'domain_transfer.request_auth_code_to_seller',
|
|
33
34
|
DOMAIN_TRANSFER_VALIDATION_REQUIRED_BY_BUYER_EMAIL: 'domain_transfer_validation_required_by_buyer_email',
|
package/dist/models/index.d.ts
CHANGED
|
@@ -59,6 +59,7 @@ export * from './AdminChallengeListItemDto';
|
|
|
59
59
|
export * from './AdminCompanyStatsDto';
|
|
60
60
|
export * from './AdminCompanyStatsLedger';
|
|
61
61
|
export * from './AdminDashboardStatsDto';
|
|
62
|
+
export * from './AdminDomainAppraisalRequestListItemDto';
|
|
62
63
|
export * from './AdminDomainListItemDto';
|
|
63
64
|
export * from './AdminGetAllDomainTransfers200Response';
|
|
64
65
|
export * from './AdminLeadListItemBuyerDto';
|
|
@@ -114,6 +115,7 @@ export * from './BuyerAuctionDetailDtoDomain';
|
|
|
114
115
|
export * from './BuyerAuctionListItemDto';
|
|
115
116
|
export * from './BuyerAuctionListItemDtoDomainInformation';
|
|
116
117
|
export * from './BuyerAuctionListItemDtoSellerAccount';
|
|
118
|
+
export * from './BuyerDomainAppraisalRequestCheckoutDto';
|
|
117
119
|
export * from './BuyerDomainNameserverItemDto';
|
|
118
120
|
export * from './BuyerDomainRecordItemDto';
|
|
119
121
|
export * from './BuyerDomainRecordsDto';
|
|
@@ -175,6 +177,7 @@ export * from './CreateAccountPaymentInput';
|
|
|
175
177
|
export * from './CreateAccountPaymentManualTransactionInput';
|
|
176
178
|
export * from './CreateApiKeyInput';
|
|
177
179
|
export * from './CreateBankAccountInput';
|
|
180
|
+
export * from './CreateBuyerDomainAppraisalRequestInput';
|
|
178
181
|
export * from './CreateBuyerLeadMessageInput';
|
|
179
182
|
export * from './CreateChallengeInput';
|
|
180
183
|
export * from './CreateLeadInput';
|
|
@@ -195,6 +198,9 @@ export * from './CustomerSuccessListAccountMetricsDto';
|
|
|
195
198
|
export * from './CustomerSuccessListAccountPortfolioSizeDto';
|
|
196
199
|
export * from './CustomerSuccessListAccountUserDto';
|
|
197
200
|
export * from './DeleteDomainsInput';
|
|
201
|
+
export * from './DomainAppraisalRequestListItemDto';
|
|
202
|
+
export * from './DomainAppraisalRequestStatus';
|
|
203
|
+
export * from './DomainAppraisalRequester';
|
|
198
204
|
export * from './DomainAuctionDto';
|
|
199
205
|
export * from './DomainCategoryItemDto';
|
|
200
206
|
export * from './DomainEditPreviewDto';
|
|
@@ -252,6 +258,7 @@ export * from './ForbiddenException';
|
|
|
252
258
|
export * from './ForgotPasswordRequestInput';
|
|
253
259
|
export * from './GetAccountChallengeRewardUsagesListDto';
|
|
254
260
|
export * from './GetAccountNameshiftCommissionsResponseDto';
|
|
261
|
+
export * from './GetAdminDomainAppraisalRequests200Response';
|
|
255
262
|
export * from './GetAllAffiliateCommissions200Response';
|
|
256
263
|
export * from './GetAllAuctions200Response';
|
|
257
264
|
export * from './GetAllAuctions200Response1';
|
|
@@ -264,6 +271,7 @@ export * from './GetAllReferrals200Response';
|
|
|
264
271
|
export * from './GetAllSubscriptions200Response';
|
|
265
272
|
export * from './GetAllSubscriptions200Response1';
|
|
266
273
|
export * from './GetBuyerAuctions200Response';
|
|
274
|
+
export * from './GetBuyerDomainAppraisalRequests200Response';
|
|
267
275
|
export * from './GetBuyerInvoices200Response';
|
|
268
276
|
export * from './GetBuyerLeads200Response';
|
|
269
277
|
export * from './GetBuyerSubscriptions200Response';
|
package/dist/models/index.js
CHANGED
|
@@ -77,6 +77,7 @@ __exportStar(require("./AdminChallengeListItemDto"), exports);
|
|
|
77
77
|
__exportStar(require("./AdminCompanyStatsDto"), exports);
|
|
78
78
|
__exportStar(require("./AdminCompanyStatsLedger"), exports);
|
|
79
79
|
__exportStar(require("./AdminDashboardStatsDto"), exports);
|
|
80
|
+
__exportStar(require("./AdminDomainAppraisalRequestListItemDto"), exports);
|
|
80
81
|
__exportStar(require("./AdminDomainListItemDto"), exports);
|
|
81
82
|
__exportStar(require("./AdminGetAllDomainTransfers200Response"), exports);
|
|
82
83
|
__exportStar(require("./AdminLeadListItemBuyerDto"), exports);
|
|
@@ -132,6 +133,7 @@ __exportStar(require("./BuyerAuctionDetailDtoDomain"), exports);
|
|
|
132
133
|
__exportStar(require("./BuyerAuctionListItemDto"), exports);
|
|
133
134
|
__exportStar(require("./BuyerAuctionListItemDtoDomainInformation"), exports);
|
|
134
135
|
__exportStar(require("./BuyerAuctionListItemDtoSellerAccount"), exports);
|
|
136
|
+
__exportStar(require("./BuyerDomainAppraisalRequestCheckoutDto"), exports);
|
|
135
137
|
__exportStar(require("./BuyerDomainNameserverItemDto"), exports);
|
|
136
138
|
__exportStar(require("./BuyerDomainRecordItemDto"), exports);
|
|
137
139
|
__exportStar(require("./BuyerDomainRecordsDto"), exports);
|
|
@@ -193,6 +195,7 @@ __exportStar(require("./CreateAccountPaymentInput"), exports);
|
|
|
193
195
|
__exportStar(require("./CreateAccountPaymentManualTransactionInput"), exports);
|
|
194
196
|
__exportStar(require("./CreateApiKeyInput"), exports);
|
|
195
197
|
__exportStar(require("./CreateBankAccountInput"), exports);
|
|
198
|
+
__exportStar(require("./CreateBuyerDomainAppraisalRequestInput"), exports);
|
|
196
199
|
__exportStar(require("./CreateBuyerLeadMessageInput"), exports);
|
|
197
200
|
__exportStar(require("./CreateChallengeInput"), exports);
|
|
198
201
|
__exportStar(require("./CreateLeadInput"), exports);
|
|
@@ -213,6 +216,9 @@ __exportStar(require("./CustomerSuccessListAccountMetricsDto"), exports);
|
|
|
213
216
|
__exportStar(require("./CustomerSuccessListAccountPortfolioSizeDto"), exports);
|
|
214
217
|
__exportStar(require("./CustomerSuccessListAccountUserDto"), exports);
|
|
215
218
|
__exportStar(require("./DeleteDomainsInput"), exports);
|
|
219
|
+
__exportStar(require("./DomainAppraisalRequestListItemDto"), exports);
|
|
220
|
+
__exportStar(require("./DomainAppraisalRequestStatus"), exports);
|
|
221
|
+
__exportStar(require("./DomainAppraisalRequester"), exports);
|
|
216
222
|
__exportStar(require("./DomainAuctionDto"), exports);
|
|
217
223
|
__exportStar(require("./DomainCategoryItemDto"), exports);
|
|
218
224
|
__exportStar(require("./DomainEditPreviewDto"), exports);
|
|
@@ -270,6 +276,7 @@ __exportStar(require("./ForbiddenException"), exports);
|
|
|
270
276
|
__exportStar(require("./ForgotPasswordRequestInput"), exports);
|
|
271
277
|
__exportStar(require("./GetAccountChallengeRewardUsagesListDto"), exports);
|
|
272
278
|
__exportStar(require("./GetAccountNameshiftCommissionsResponseDto"), exports);
|
|
279
|
+
__exportStar(require("./GetAdminDomainAppraisalRequests200Response"), exports);
|
|
273
280
|
__exportStar(require("./GetAllAffiliateCommissions200Response"), exports);
|
|
274
281
|
__exportStar(require("./GetAllAuctions200Response"), exports);
|
|
275
282
|
__exportStar(require("./GetAllAuctions200Response1"), exports);
|
|
@@ -282,6 +289,7 @@ __exportStar(require("./GetAllReferrals200Response"), exports);
|
|
|
282
289
|
__exportStar(require("./GetAllSubscriptions200Response"), exports);
|
|
283
290
|
__exportStar(require("./GetAllSubscriptions200Response1"), exports);
|
|
284
291
|
__exportStar(require("./GetBuyerAuctions200Response"), exports);
|
|
292
|
+
__exportStar(require("./GetBuyerDomainAppraisalRequests200Response"), exports);
|
|
285
293
|
__exportStar(require("./GetBuyerInvoices200Response"), exports);
|
|
286
294
|
__exportStar(require("./GetBuyerLeads200Response"), exports);
|
|
287
295
|
__exportStar(require("./GetBuyerSubscriptions200Response"), exports);
|
package/package.json
CHANGED
package/src/apis/AdminApi.ts
CHANGED
|
@@ -43,6 +43,7 @@ import type {
|
|
|
43
43
|
DomainTransferDetailsDto,
|
|
44
44
|
ForbiddenException,
|
|
45
45
|
GetAccountChallengeRewardUsagesListDto,
|
|
46
|
+
GetAdminDomainAppraisalRequests200Response,
|
|
46
47
|
GetAllAuctions200Response,
|
|
47
48
|
GetAllFeatureFlags200Response,
|
|
48
49
|
GetAllInvoices200Response,
|
|
@@ -138,6 +139,8 @@ import {
|
|
|
138
139
|
ForbiddenExceptionToJSON,
|
|
139
140
|
GetAccountChallengeRewardUsagesListDtoFromJSON,
|
|
140
141
|
GetAccountChallengeRewardUsagesListDtoToJSON,
|
|
142
|
+
GetAdminDomainAppraisalRequests200ResponseFromJSON,
|
|
143
|
+
GetAdminDomainAppraisalRequests200ResponseToJSON,
|
|
141
144
|
GetAllAuctions200ResponseFromJSON,
|
|
142
145
|
GetAllAuctions200ResponseToJSON,
|
|
143
146
|
GetAllFeatureFlags200ResponseFromJSON,
|
|
@@ -318,6 +321,17 @@ export interface AdminApiGetAdminDashboardStatsRequest {
|
|
|
318
321
|
dateRange?: StatsFilterInputDateRange | null;
|
|
319
322
|
}
|
|
320
323
|
|
|
324
|
+
export interface AdminApiGetAdminDomainAppraisalRequestsRequest {
|
|
325
|
+
filter?: { [key: string]: string; };
|
|
326
|
+
page?: number;
|
|
327
|
+
limit?: number;
|
|
328
|
+
sortBy?: Array<string>;
|
|
329
|
+
filterStatus?: string;
|
|
330
|
+
filterDomainName?: string;
|
|
331
|
+
filterBuyer?: string;
|
|
332
|
+
filterAccount?: string;
|
|
333
|
+
}
|
|
334
|
+
|
|
321
335
|
export interface AdminApiGetAdminDomainTransferDetailsRequest {
|
|
322
336
|
domainTransferId: string;
|
|
323
337
|
}
|
|
@@ -534,6 +548,10 @@ export interface AdminApiPurgeDomainCdnCacheRequest {
|
|
|
534
548
|
domainId: string;
|
|
535
549
|
}
|
|
536
550
|
|
|
551
|
+
export interface AdminApiRejectAccountAliasRequest {
|
|
552
|
+
accountId: string;
|
|
553
|
+
}
|
|
554
|
+
|
|
537
555
|
export interface AdminApiRemoveDomainLockRequest {
|
|
538
556
|
domainId: string;
|
|
539
557
|
lockId: string;
|
|
@@ -1678,6 +1696,74 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
1678
1696
|
return await response.value();
|
|
1679
1697
|
}
|
|
1680
1698
|
|
|
1699
|
+
/**
|
|
1700
|
+
* Lists every domain appraisal bought by buyers and sellers, with its state in the domain appraisals API.
|
|
1701
|
+
* List domain appraisal requests
|
|
1702
|
+
*/
|
|
1703
|
+
async getAdminDomainAppraisalRequestsRaw(requestParameters: AdminApiGetAdminDomainAppraisalRequestsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetAdminDomainAppraisalRequests200Response>> {
|
|
1704
|
+
const queryParameters: any = {};
|
|
1705
|
+
|
|
1706
|
+
if (requestParameters['filter'] != null) {
|
|
1707
|
+
queryParameters['filter'] = requestParameters['filter'];
|
|
1708
|
+
}
|
|
1709
|
+
|
|
1710
|
+
if (requestParameters['page'] != null) {
|
|
1711
|
+
queryParameters['page'] = requestParameters['page'];
|
|
1712
|
+
}
|
|
1713
|
+
|
|
1714
|
+
if (requestParameters['limit'] != null) {
|
|
1715
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
1716
|
+
}
|
|
1717
|
+
|
|
1718
|
+
if (requestParameters['sortBy'] != null) {
|
|
1719
|
+
queryParameters['sortBy'] = requestParameters['sortBy'];
|
|
1720
|
+
}
|
|
1721
|
+
|
|
1722
|
+
if (requestParameters['filterStatus'] != null) {
|
|
1723
|
+
queryParameters['filter[status]'] = requestParameters['filterStatus'];
|
|
1724
|
+
}
|
|
1725
|
+
|
|
1726
|
+
if (requestParameters['filterDomainName'] != null) {
|
|
1727
|
+
queryParameters['filter[domain.name]'] = requestParameters['filterDomainName'];
|
|
1728
|
+
}
|
|
1729
|
+
|
|
1730
|
+
if (requestParameters['filterBuyer'] != null) {
|
|
1731
|
+
queryParameters['filter[buyer]'] = requestParameters['filterBuyer'];
|
|
1732
|
+
}
|
|
1733
|
+
|
|
1734
|
+
if (requestParameters['filterAccount'] != null) {
|
|
1735
|
+
queryParameters['filter[account]'] = requestParameters['filterAccount'];
|
|
1736
|
+
}
|
|
1737
|
+
|
|
1738
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1739
|
+
|
|
1740
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1741
|
+
const token = this.configuration.accessToken;
|
|
1742
|
+
const tokenString = await token("bearer", []);
|
|
1743
|
+
|
|
1744
|
+
if (tokenString) {
|
|
1745
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1746
|
+
}
|
|
1747
|
+
}
|
|
1748
|
+
const response = await this.request({
|
|
1749
|
+
path: `/admin/domain-appraisal-requests`,
|
|
1750
|
+
method: 'GET',
|
|
1751
|
+
headers: headerParameters,
|
|
1752
|
+
query: queryParameters,
|
|
1753
|
+
}, initOverrides);
|
|
1754
|
+
|
|
1755
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetAdminDomainAppraisalRequests200ResponseFromJSON(jsonValue));
|
|
1756
|
+
}
|
|
1757
|
+
|
|
1758
|
+
/**
|
|
1759
|
+
* Lists every domain appraisal bought by buyers and sellers, with its state in the domain appraisals API.
|
|
1760
|
+
* List domain appraisal requests
|
|
1761
|
+
*/
|
|
1762
|
+
async getAdminDomainAppraisalRequests(requestParameters: AdminApiGetAdminDomainAppraisalRequestsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAdminDomainAppraisalRequests200Response> {
|
|
1763
|
+
const response = await this.getAdminDomainAppraisalRequestsRaw(requestParameters, initOverrides);
|
|
1764
|
+
return await response.value();
|
|
1765
|
+
}
|
|
1766
|
+
|
|
1681
1767
|
/**
|
|
1682
1768
|
* Returns domain transfer information.
|
|
1683
1769
|
* Get domain transfer details
|
|
@@ -3605,6 +3691,48 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
3605
3691
|
await this.purgeDomainCdnCacheRaw(requestParameters, initOverrides);
|
|
3606
3692
|
}
|
|
3607
3693
|
|
|
3694
|
+
/**
|
|
3695
|
+
* Marks the account alias as rejected, so the landing pages keep the official name, and notifies the account users by email. Rejecting an already rejected alias does nothing.
|
|
3696
|
+
* Reject account alias
|
|
3697
|
+
*/
|
|
3698
|
+
async rejectAccountAliasRaw(requestParameters: AdminApiRejectAccountAliasRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
3699
|
+
if (requestParameters['accountId'] == null) {
|
|
3700
|
+
throw new runtime.RequiredError(
|
|
3701
|
+
'accountId',
|
|
3702
|
+
'Required parameter "accountId" was null or undefined when calling rejectAccountAlias().'
|
|
3703
|
+
);
|
|
3704
|
+
}
|
|
3705
|
+
|
|
3706
|
+
const queryParameters: any = {};
|
|
3707
|
+
|
|
3708
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
3709
|
+
|
|
3710
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
3711
|
+
const token = this.configuration.accessToken;
|
|
3712
|
+
const tokenString = await token("bearer", []);
|
|
3713
|
+
|
|
3714
|
+
if (tokenString) {
|
|
3715
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
3716
|
+
}
|
|
3717
|
+
}
|
|
3718
|
+
const response = await this.request({
|
|
3719
|
+
path: `/admin/accounts/{accountId}/alias/reject`.replace(`{${"accountId"}}`, encodeURIComponent(String(requestParameters['accountId']))),
|
|
3720
|
+
method: 'POST',
|
|
3721
|
+
headers: headerParameters,
|
|
3722
|
+
query: queryParameters,
|
|
3723
|
+
}, initOverrides);
|
|
3724
|
+
|
|
3725
|
+
return new runtime.VoidApiResponse(response);
|
|
3726
|
+
}
|
|
3727
|
+
|
|
3728
|
+
/**
|
|
3729
|
+
* Marks the account alias as rejected, so the landing pages keep the official name, and notifies the account users by email. Rejecting an already rejected alias does nothing.
|
|
3730
|
+
* Reject account alias
|
|
3731
|
+
*/
|
|
3732
|
+
async rejectAccountAlias(requestParameters: AdminApiRejectAccountAliasRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
3733
|
+
await this.rejectAccountAliasRaw(requestParameters, initOverrides);
|
|
3734
|
+
}
|
|
3735
|
+
|
|
3608
3736
|
/**
|
|
3609
3737
|
* Removes a specific lock from a domain.
|
|
3610
3738
|
* Remove domain lock
|
|
@@ -4324,7 +4452,7 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
4324
4452
|
}
|
|
4325
4453
|
|
|
4326
4454
|
/**
|
|
4327
|
-
* Marks the account alias as verified.
|
|
4455
|
+
* Marks the account alias as verified, so it is shown on the landing pages instead of the official name. Also lifts a previous rejection.
|
|
4328
4456
|
* Verify account alias
|
|
4329
4457
|
*/
|
|
4330
4458
|
async verifyAccountAliasRaw(requestParameters: AdminApiVerifyAccountAliasRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
@@ -4358,7 +4486,7 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
4358
4486
|
}
|
|
4359
4487
|
|
|
4360
4488
|
/**
|
|
4361
|
-
* Marks the account alias as verified.
|
|
4489
|
+
* Marks the account alias as verified, so it is shown on the landing pages instead of the official name. Also lifts a previous rejection.
|
|
4362
4490
|
* Verify account alias
|
|
4363
4491
|
*/
|
|
4364
4492
|
async verifyAccountAlias(requestParameters: AdminApiVerifyAccountAliasRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
package/src/apis/BuyersApi.ts
CHANGED
|
@@ -34,6 +34,7 @@ import type {
|
|
|
34
34
|
CreateBuyerLeadMessageInput,
|
|
35
35
|
ForbiddenException,
|
|
36
36
|
GetBuyerAuctions200Response,
|
|
37
|
+
GetBuyerDomainAppraisalRequests200Response,
|
|
37
38
|
GetBuyerInvoices200Response,
|
|
38
39
|
GetBuyerLeads200Response,
|
|
39
40
|
GetBuyerSubscriptions200Response,
|
|
@@ -101,6 +102,8 @@ import {
|
|
|
101
102
|
ForbiddenExceptionToJSON,
|
|
102
103
|
GetBuyerAuctions200ResponseFromJSON,
|
|
103
104
|
GetBuyerAuctions200ResponseToJSON,
|
|
105
|
+
GetBuyerDomainAppraisalRequests200ResponseFromJSON,
|
|
106
|
+
GetBuyerDomainAppraisalRequests200ResponseToJSON,
|
|
104
107
|
GetBuyerInvoices200ResponseFromJSON,
|
|
105
108
|
GetBuyerInvoices200ResponseToJSON,
|
|
106
109
|
GetBuyerLeads200ResponseFromJSON,
|
|
@@ -184,6 +187,10 @@ export interface BuyersApiBulkReadBuyerLeadMessageRequest {
|
|
|
184
187
|
batchReadBuyerLeadMessageInput: BatchReadBuyerLeadMessageInput;
|
|
185
188
|
}
|
|
186
189
|
|
|
190
|
+
export interface BuyersApiCancelBuyerDomainAppraisalRequestRequest {
|
|
191
|
+
domainAppraisalRequestId: string;
|
|
192
|
+
}
|
|
193
|
+
|
|
187
194
|
export interface BuyersApiCancelSubscriptionRequest {
|
|
188
195
|
subscriptionId: string;
|
|
189
196
|
}
|
|
@@ -218,6 +225,14 @@ export interface BuyersApiGetBuyerAuctionsRequest {
|
|
|
218
225
|
filterStatus?: string;
|
|
219
226
|
}
|
|
220
227
|
|
|
228
|
+
export interface BuyersApiGetBuyerDomainAppraisalRequestsRequest {
|
|
229
|
+
filter?: { [key: string]: string; };
|
|
230
|
+
page?: number;
|
|
231
|
+
limit?: number;
|
|
232
|
+
sortBy?: Array<string>;
|
|
233
|
+
filterStatus?: string;
|
|
234
|
+
}
|
|
235
|
+
|
|
221
236
|
export interface BuyersApiGetBuyerInvoicesRequest {
|
|
222
237
|
filter?: { [key: string]: string; };
|
|
223
238
|
page?: number;
|
|
@@ -696,6 +711,48 @@ export class BuyersApi extends runtime.BaseAPI {
|
|
|
696
711
|
return await response.value();
|
|
697
712
|
}
|
|
698
713
|
|
|
714
|
+
/**
|
|
715
|
+
* Cancels a domain appraisal of the buyer that has not been paid, with its invoice.
|
|
716
|
+
* Cancel domain appraisal request
|
|
717
|
+
*/
|
|
718
|
+
async cancelBuyerDomainAppraisalRequestRaw(requestParameters: BuyersApiCancelBuyerDomainAppraisalRequestRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
719
|
+
if (requestParameters['domainAppraisalRequestId'] == null) {
|
|
720
|
+
throw new runtime.RequiredError(
|
|
721
|
+
'domainAppraisalRequestId',
|
|
722
|
+
'Required parameter "domainAppraisalRequestId" was null or undefined when calling cancelBuyerDomainAppraisalRequest().'
|
|
723
|
+
);
|
|
724
|
+
}
|
|
725
|
+
|
|
726
|
+
const queryParameters: any = {};
|
|
727
|
+
|
|
728
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
729
|
+
|
|
730
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
731
|
+
const token = this.configuration.accessToken;
|
|
732
|
+
const tokenString = await token("bearer", []);
|
|
733
|
+
|
|
734
|
+
if (tokenString) {
|
|
735
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
736
|
+
}
|
|
737
|
+
}
|
|
738
|
+
const response = await this.request({
|
|
739
|
+
path: `/buyers/private/domain-appraisal-requests/{domainAppraisalRequestId}/cancel`.replace(`{${"domainAppraisalRequestId"}}`, encodeURIComponent(String(requestParameters['domainAppraisalRequestId']))),
|
|
740
|
+
method: 'POST',
|
|
741
|
+
headers: headerParameters,
|
|
742
|
+
query: queryParameters,
|
|
743
|
+
}, initOverrides);
|
|
744
|
+
|
|
745
|
+
return new runtime.VoidApiResponse(response);
|
|
746
|
+
}
|
|
747
|
+
|
|
748
|
+
/**
|
|
749
|
+
* Cancels a domain appraisal of the buyer that has not been paid, with its invoice.
|
|
750
|
+
* Cancel domain appraisal request
|
|
751
|
+
*/
|
|
752
|
+
async cancelBuyerDomainAppraisalRequest(requestParameters: BuyersApiCancelBuyerDomainAppraisalRequestRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
753
|
+
await this.cancelBuyerDomainAppraisalRequestRaw(requestParameters, initOverrides);
|
|
754
|
+
}
|
|
755
|
+
|
|
699
756
|
/**
|
|
700
757
|
* Schedules cancellation of an active buyer subscription.
|
|
701
758
|
* Cancel subscription
|
|
@@ -1099,6 +1156,62 @@ export class BuyersApi extends runtime.BaseAPI {
|
|
|
1099
1156
|
return await response.value();
|
|
1100
1157
|
}
|
|
1101
1158
|
|
|
1159
|
+
/**
|
|
1160
|
+
* Lists the domain appraisals bought by the buyer.
|
|
1161
|
+
* List domain appraisal requests
|
|
1162
|
+
*/
|
|
1163
|
+
async getBuyerDomainAppraisalRequestsRaw(requestParameters: BuyersApiGetBuyerDomainAppraisalRequestsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetBuyerDomainAppraisalRequests200Response>> {
|
|
1164
|
+
const queryParameters: any = {};
|
|
1165
|
+
|
|
1166
|
+
if (requestParameters['filter'] != null) {
|
|
1167
|
+
queryParameters['filter'] = requestParameters['filter'];
|
|
1168
|
+
}
|
|
1169
|
+
|
|
1170
|
+
if (requestParameters['page'] != null) {
|
|
1171
|
+
queryParameters['page'] = requestParameters['page'];
|
|
1172
|
+
}
|
|
1173
|
+
|
|
1174
|
+
if (requestParameters['limit'] != null) {
|
|
1175
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
1176
|
+
}
|
|
1177
|
+
|
|
1178
|
+
if (requestParameters['sortBy'] != null) {
|
|
1179
|
+
queryParameters['sortBy'] = requestParameters['sortBy'];
|
|
1180
|
+
}
|
|
1181
|
+
|
|
1182
|
+
if (requestParameters['filterStatus'] != null) {
|
|
1183
|
+
queryParameters['filter[status]'] = requestParameters['filterStatus'];
|
|
1184
|
+
}
|
|
1185
|
+
|
|
1186
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1187
|
+
|
|
1188
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1189
|
+
const token = this.configuration.accessToken;
|
|
1190
|
+
const tokenString = await token("bearer", []);
|
|
1191
|
+
|
|
1192
|
+
if (tokenString) {
|
|
1193
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1194
|
+
}
|
|
1195
|
+
}
|
|
1196
|
+
const response = await this.request({
|
|
1197
|
+
path: `/buyers/private/domain-appraisal-requests`,
|
|
1198
|
+
method: 'GET',
|
|
1199
|
+
headers: headerParameters,
|
|
1200
|
+
query: queryParameters,
|
|
1201
|
+
}, initOverrides);
|
|
1202
|
+
|
|
1203
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetBuyerDomainAppraisalRequests200ResponseFromJSON(jsonValue));
|
|
1204
|
+
}
|
|
1205
|
+
|
|
1206
|
+
/**
|
|
1207
|
+
* Lists the domain appraisals bought by the buyer.
|
|
1208
|
+
* List domain appraisal requests
|
|
1209
|
+
*/
|
|
1210
|
+
async getBuyerDomainAppraisalRequests(requestParameters: BuyersApiGetBuyerDomainAppraisalRequestsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetBuyerDomainAppraisalRequests200Response> {
|
|
1211
|
+
const response = await this.getBuyerDomainAppraisalRequestsRaw(requestParameters, initOverrides);
|
|
1212
|
+
return await response.value();
|
|
1213
|
+
}
|
|
1214
|
+
|
|
1102
1215
|
/**
|
|
1103
1216
|
* Lists invoices for the buyer.
|
|
1104
1217
|
* List buyer invoices
|