@randock/nameshift-api-client 0.0.563 → 0.0.564
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 +4 -0
- package/README.md +3 -3
- package/dist/apis/AdminApi.d.ts +28 -1
- package/dist/apis/AdminApi.js +113 -0
- package/dist/apis/LeadsApi.d.ts +28 -1
- package/dist/apis/LeadsApi.js +129 -0
- package/dist/models/AcceptHighestBuyerLeadOfferInput.d.ts +32 -0
- package/dist/models/AcceptHighestBuyerLeadOfferInput.js +51 -0
- 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/LeadOfferSummaryCannotAcceptReason.d.ts +29 -0
- package/dist/models/LeadOfferSummaryCannotAcceptReason.js +55 -0
- package/dist/models/LeadOfferSummaryDto.d.ts +52 -0
- package/dist/models/LeadOfferSummaryDto.js +65 -0
- package/dist/models/LeadOfferSummaryItemDto.d.ts +61 -0
- package/dist/models/LeadOfferSummaryItemDto.js +74 -0
- 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 +4 -0
- package/dist/models/index.js +4 -0
- package/package.json +1 -1
- package/src/apis/AdminApi.ts +110 -0
- package/src/apis/LeadsApi.ts +118 -0
- package/src/models/AcceptHighestBuyerLeadOfferInput.ts +66 -0
- package/src/models/BuyerNotificationDto.ts +1 -0
- package/src/models/BuyerNotificationListItemDto.ts +1 -0
- package/src/models/LeadOfferSummaryCannotAcceptReason.ts +57 -0
- package/src/models/LeadOfferSummaryDto.ts +110 -0
- package/src/models/LeadOfferSummaryItemDto.ts +114 -0
- package/src/models/UserNotificationDto.ts +1 -0
- package/src/models/UserNotificationListItemDto.ts +1 -0
- package/src/models/index.ts +4 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -47,6 +47,7 @@ src/apis/UsersPublicApi.ts
|
|
|
47
47
|
src/apis/WebhooksApi.ts
|
|
48
48
|
src/apis/index.ts
|
|
49
49
|
src/index.ts
|
|
50
|
+
src/models/AcceptHighestBuyerLeadOfferInput.ts
|
|
50
51
|
src/models/AccountAliasDto.ts
|
|
51
52
|
src/models/AccountAliasInput.ts
|
|
52
53
|
src/models/AccountBankAccountDetailsDto.ts
|
|
@@ -485,6 +486,9 @@ src/models/LeadOfferDto.ts
|
|
|
485
486
|
src/models/LeadOfferExpirationConfigurationDto.ts
|
|
486
487
|
src/models/LeadOfferExpirationConfigurationInput.ts
|
|
487
488
|
src/models/LeadOfferExpirationDurationInput.ts
|
|
489
|
+
src/models/LeadOfferSummaryCannotAcceptReason.ts
|
|
490
|
+
src/models/LeadOfferSummaryDto.ts
|
|
491
|
+
src/models/LeadOfferSummaryItemDto.ts
|
|
488
492
|
src/models/LeadPhoneVerificationDeliveryDto.ts
|
|
489
493
|
src/models/LeadPhoneVerificationDto.ts
|
|
490
494
|
src/models/LeadPhoneVerificationReason.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.564
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @randock/nameshift-api-client@0.0.
|
|
39
|
+
npm install @randock/nameshift-api-client@0.0.564 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -44,4 +44,4 @@ _unPublished (not recommended):_
|
|
|
44
44
|
```
|
|
45
45
|
npm install PATH_TO_GENERATED_PACKAGE --save
|
|
46
46
|
```
|
|
47
|
-
|
|
47
|
+
89e557a472a02f4f71a551487be2c926ad1b8e31958a6cb43fd1a6bc40a8350ac0023a8676e9306b90e9fc08812987c9
|
package/dist/apis/AdminApi.d.ts
CHANGED
|
@@ -10,7 +10,11 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { AccountNameshiftCommissionByTypeDto, AccountNoteListDto, AccountPaymentMethodProfileDto, AccountSettingsDto, AccountsStatsDto, AdminAccountLoginDto, AdminAccountSettingsInput, AdminBuyerLoginDto, AdminChallengeListDto, AdminCompanyStatsDto, AdminGetAllDomainTransfers200Response, AdminLandingDesignStatsDto, AdminListBrokeredLeads200Response, AdminMarketplaceDto, AdminUserNewsletterInput, AdminUserSecurityDto, AffiliatesStatsDto, AuctionsStatsDto, BulkCommissionActionsInput, ChangeDomainAppraisalRequestStatusInput, ChangeInvoiceStatusInput, ChangeOrderStatusInput, ChangeSubscriptionStatusInput, CommissionListDto, CommissionSimulationResultDto, CommissionsStatsDto, CreateAccountNoteInput, CreateChallengeInput, CreateNewsletterInput, DomainLockDto, DomainStatsDto, DomainTldsDto, DomainTransferDetailsDto, GetAccountChallengeRewardUsagesListDto, GetAdminDomainAppraisalRequests200Response, GetAllAuctions200Response, GetAllFeatureFlags200Response, GetAllInvoices200Response, GetAllOrders200Response, GetAllOwnedDomains200Response, GetAllSubscriptions200Response, IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto, LeadEnrichmentDto, LeadMessageDto, LedgerMutationsDto, LinkBankDepositToBankAccountInput, LinkBankDepositToInvoiceInput, ListAccounts200Response, ListAdminLandingDesignAccounts200Response, ListAdminRelatedLeads200Response, ListBankAccounts200Response, ListBankDeposits200Response, ListBuyers200Response, ListDomains200Response, ListLeadMessagesDto, ListLeads200Response, ListUserLoginAttempts200Response, NewsStoryDto, NewsletterDto, NewsletterPreviewDto, ObjectId, OverrideBrokeredLeadNameshiftCommissionInput, PaySellerInvoicesInput, PaymentMethodsStatsDto, PlatformConfigurationBlock, PlatformConfigurationDto, SalesStatsDto, SellerLeadDetails, SellerPayoutPreviewDto, SellerSalesByTldStatsItemDto, SellerSalesCountStatsItemDto, SendAdminLeadAiPriceNegotiatorAgentChatMessageInput, SendNewsletterPreviewInput, SimulateCommissionInput, StatsFilterInputDateRange, SubscriptionDetailsDto, UpdateAccountChallengeRewardBalanceInput, UpdateAccountNoteInput, UpdateAdminDomainTransferBuyerCompanyInfoInput, UpdateAdminDomainTransferBuyerInfoInput, UpdateChallengeInput, UpdateFeatureFlagInput, UpdateMarketplaceInput, UpdateNewsletterInput, UpdatePlatformConfigurationInput, UpdateSubscriptionBuyerInformationInput } from '../models/index';
|
|
13
|
+
import type { AcceptHighestBuyerLeadOfferInput, AccountNameshiftCommissionByTypeDto, AccountNoteListDto, AccountPaymentMethodProfileDto, AccountSettingsDto, AccountsStatsDto, AdminAccountLoginDto, AdminAccountSettingsInput, AdminBuyerLoginDto, AdminChallengeListDto, AdminCompanyStatsDto, AdminGetAllDomainTransfers200Response, AdminLandingDesignStatsDto, AdminListBrokeredLeads200Response, AdminMarketplaceDto, AdminUserNewsletterInput, AdminUserSecurityDto, AffiliatesStatsDto, AuctionsStatsDto, BulkCommissionActionsInput, ChangeDomainAppraisalRequestStatusInput, ChangeInvoiceStatusInput, ChangeOrderStatusInput, ChangeSubscriptionStatusInput, CommissionListDto, CommissionSimulationResultDto, CommissionsStatsDto, CreateAccountNoteInput, CreateChallengeInput, CreateNewsletterInput, DomainLockDto, DomainStatsDto, DomainTldsDto, DomainTransferDetailsDto, GetAccountChallengeRewardUsagesListDto, GetAdminDomainAppraisalRequests200Response, GetAllAuctions200Response, GetAllFeatureFlags200Response, GetAllInvoices200Response, GetAllOrders200Response, GetAllOwnedDomains200Response, GetAllSubscriptions200Response, IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto, LeadEnrichmentDto, LeadMessageDto, LeadOfferSummaryDto, LedgerMutationsDto, LinkBankDepositToBankAccountInput, LinkBankDepositToInvoiceInput, ListAccounts200Response, ListAdminLandingDesignAccounts200Response, ListAdminRelatedLeads200Response, ListBankAccounts200Response, ListBankDeposits200Response, ListBuyers200Response, ListDomains200Response, ListLeadMessagesDto, ListLeads200Response, ListUserLoginAttempts200Response, NewsStoryDto, NewsletterDto, NewsletterPreviewDto, ObjectId, OverrideBrokeredLeadNameshiftCommissionInput, PaySellerInvoicesInput, PaymentMethodsStatsDto, PlatformConfigurationBlock, PlatformConfigurationDto, SalesStatsDto, SellerLeadDetails, SellerPayoutPreviewDto, SellerSalesByTldStatsItemDto, SellerSalesCountStatsItemDto, SendAdminLeadAiPriceNegotiatorAgentChatMessageInput, SendNewsletterPreviewInput, SimulateCommissionInput, StatsFilterInputDateRange, SubscriptionDetailsDto, UpdateAccountChallengeRewardBalanceInput, UpdateAccountNoteInput, UpdateAdminDomainTransferBuyerCompanyInfoInput, UpdateAdminDomainTransferBuyerInfoInput, UpdateChallengeInput, UpdateFeatureFlagInput, UpdateMarketplaceInput, UpdateNewsletterInput, UpdatePlatformConfigurationInput, UpdateSubscriptionBuyerInformationInput } from '../models/index';
|
|
14
|
+
export interface AdminApiAcceptHighestBuyerAdminLeadOfferRequest {
|
|
15
|
+
leadId: string;
|
|
16
|
+
acceptHighestBuyerLeadOfferInput: AcceptHighestBuyerLeadOfferInput;
|
|
17
|
+
}
|
|
14
18
|
export interface AdminApiAdminDeleteAuctionRequest {
|
|
15
19
|
auctionId: string;
|
|
16
20
|
}
|
|
@@ -175,6 +179,9 @@ export interface AdminApiGetAdminLeadDetailsRequest {
|
|
|
175
179
|
export interface AdminApiGetAdminLeadEnrichmentRequest {
|
|
176
180
|
leadId: string;
|
|
177
181
|
}
|
|
182
|
+
export interface AdminApiGetAdminLeadOfferSummaryRequest {
|
|
183
|
+
leadId: string;
|
|
184
|
+
}
|
|
178
185
|
export interface AdminApiGetAdminSalesByTldRequest {
|
|
179
186
|
currency: string;
|
|
180
187
|
accountId?: string;
|
|
@@ -500,6 +507,16 @@ export interface AdminApiVerifyBankAccountRequest {
|
|
|
500
507
|
*
|
|
501
508
|
*/
|
|
502
509
|
export declare class AdminApi extends runtime.BaseAPI {
|
|
510
|
+
/**
|
|
511
|
+
* Accepts the highest offer the buyer made, at any time, replacing the seller counter-offer that may be open. Creates the order and emails the buyer the payment link. `leadMessageId` is the offer the seller confirmed (see the offer summary); the request is refused when it is not the highest buyer offer any more. Validation error codes: NO_BUYER_OFFER, HIGHEST_BUYER_OFFER_CHANGED, MANUAL_LEAD, DOMAIN_IS_LOCKED, DOMAIN_HAS_AN_AUCTION, DOMAIN_IS_NOT_PURCHASABLE, MESSAGE_LIMIT_REACHED. The admin acts for the seller; the message is written as the seller. Requires admin bearer authentication.
|
|
512
|
+
* Accept the highest buyer offer
|
|
513
|
+
*/
|
|
514
|
+
acceptHighestBuyerAdminLeadOfferRaw(requestParameters: AdminApiAcceptHighestBuyerAdminLeadOfferRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
515
|
+
/**
|
|
516
|
+
* Accepts the highest offer the buyer made, at any time, replacing the seller counter-offer that may be open. Creates the order and emails the buyer the payment link. `leadMessageId` is the offer the seller confirmed (see the offer summary); the request is refused when it is not the highest buyer offer any more. Validation error codes: NO_BUYER_OFFER, HIGHEST_BUYER_OFFER_CHANGED, MANUAL_LEAD, DOMAIN_IS_LOCKED, DOMAIN_HAS_AN_AUCTION, DOMAIN_IS_NOT_PURCHASABLE, MESSAGE_LIMIT_REACHED. The admin acts for the seller; the message is written as the seller. Requires admin bearer authentication.
|
|
517
|
+
* Accept the highest buyer offer
|
|
518
|
+
*/
|
|
519
|
+
acceptHighestBuyerAdminLeadOffer(requestParameters: AdminApiAcceptHighestBuyerAdminLeadOfferRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
503
520
|
/**
|
|
504
521
|
* Force-deletes an auction regardless of its current status. Requires admin privileges.
|
|
505
522
|
* Admin delete auction
|
|
@@ -928,6 +945,16 @@ export declare class AdminApi extends runtime.BaseAPI {
|
|
|
928
945
|
* Get lead buyer enrichment
|
|
929
946
|
*/
|
|
930
947
|
getAdminLeadEnrichment(requestParameters: AdminApiGetAdminLeadEnrichmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LeadEnrichmentDto>;
|
|
948
|
+
/**
|
|
949
|
+
* Returns the highest buyer offer and the lowest seller offer of the negotiation (plain purchase offers in the domain currency, not withdrawn), and whether the highest buyer offer can be accepted now, for any account. Requires admin bearer authentication.
|
|
950
|
+
* Get the offer summary of a lead
|
|
951
|
+
*/
|
|
952
|
+
getAdminLeadOfferSummaryRaw(requestParameters: AdminApiGetAdminLeadOfferSummaryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LeadOfferSummaryDto>>;
|
|
953
|
+
/**
|
|
954
|
+
* Returns the highest buyer offer and the lowest seller offer of the negotiation (plain purchase offers in the domain currency, not withdrawn), and whether the highest buyer offer can be accepted now, for any account. Requires admin bearer authentication.
|
|
955
|
+
* Get the offer summary of a lead
|
|
956
|
+
*/
|
|
957
|
+
getAdminLeadOfferSummary(requestParameters: AdminApiGetAdminLeadOfferSummaryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LeadOfferSummaryDto>;
|
|
931
958
|
/**
|
|
932
959
|
* Returns sales statistics grouped by top-level domain, optionally filtered by account, currency, and date range.
|
|
933
960
|
* Get admin sales by TLD
|
package/dist/apis/AdminApi.js
CHANGED
|
@@ -75,6 +75,64 @@ var AdminApi = /** @class */ (function (_super) {
|
|
|
75
75
|
function AdminApi() {
|
|
76
76
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
77
|
}
|
|
78
|
+
/**
|
|
79
|
+
* Accepts the highest offer the buyer made, at any time, replacing the seller counter-offer that may be open. Creates the order and emails the buyer the payment link. `leadMessageId` is the offer the seller confirmed (see the offer summary); the request is refused when it is not the highest buyer offer any more. Validation error codes: NO_BUYER_OFFER, HIGHEST_BUYER_OFFER_CHANGED, MANUAL_LEAD, DOMAIN_IS_LOCKED, DOMAIN_HAS_AN_AUCTION, DOMAIN_IS_NOT_PURCHASABLE, MESSAGE_LIMIT_REACHED. The admin acts for the seller; the message is written as the seller. Requires admin bearer authentication.
|
|
80
|
+
* Accept the highest buyer offer
|
|
81
|
+
*/
|
|
82
|
+
AdminApi.prototype.acceptHighestBuyerAdminLeadOfferRaw = function (requestParameters, initOverrides) {
|
|
83
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
84
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
85
|
+
return __generator(this, function (_a) {
|
|
86
|
+
switch (_a.label) {
|
|
87
|
+
case 0:
|
|
88
|
+
if (requestParameters['leadId'] == null) {
|
|
89
|
+
throw new runtime.RequiredError('leadId', 'Required parameter "leadId" was null or undefined when calling acceptHighestBuyerAdminLeadOffer().');
|
|
90
|
+
}
|
|
91
|
+
if (requestParameters['acceptHighestBuyerLeadOfferInput'] == null) {
|
|
92
|
+
throw new runtime.RequiredError('acceptHighestBuyerLeadOfferInput', 'Required parameter "acceptHighestBuyerLeadOfferInput" was null or undefined when calling acceptHighestBuyerAdminLeadOffer().');
|
|
93
|
+
}
|
|
94
|
+
queryParameters = {};
|
|
95
|
+
headerParameters = {};
|
|
96
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
97
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
98
|
+
token = this.configuration.accessToken;
|
|
99
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
100
|
+
case 1:
|
|
101
|
+
tokenString = _a.sent();
|
|
102
|
+
if (tokenString) {
|
|
103
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
104
|
+
}
|
|
105
|
+
_a.label = 2;
|
|
106
|
+
case 2: return [4 /*yield*/, this.request({
|
|
107
|
+
path: "/admin/leads/{leadId}/status/accept-highest-buyer-offer".replace("{".concat("leadId", "}"), encodeURIComponent(String(requestParameters['leadId']))),
|
|
108
|
+
method: 'POST',
|
|
109
|
+
headers: headerParameters,
|
|
110
|
+
query: queryParameters,
|
|
111
|
+
body: (0, index_1.AcceptHighestBuyerLeadOfferInputToJSON)(requestParameters['acceptHighestBuyerLeadOfferInput']),
|
|
112
|
+
}, initOverrides)];
|
|
113
|
+
case 3:
|
|
114
|
+
response = _a.sent();
|
|
115
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
116
|
+
}
|
|
117
|
+
});
|
|
118
|
+
});
|
|
119
|
+
};
|
|
120
|
+
/**
|
|
121
|
+
* Accepts the highest offer the buyer made, at any time, replacing the seller counter-offer that may be open. Creates the order and emails the buyer the payment link. `leadMessageId` is the offer the seller confirmed (see the offer summary); the request is refused when it is not the highest buyer offer any more. Validation error codes: NO_BUYER_OFFER, HIGHEST_BUYER_OFFER_CHANGED, MANUAL_LEAD, DOMAIN_IS_LOCKED, DOMAIN_HAS_AN_AUCTION, DOMAIN_IS_NOT_PURCHASABLE, MESSAGE_LIMIT_REACHED. The admin acts for the seller; the message is written as the seller. Requires admin bearer authentication.
|
|
122
|
+
* Accept the highest buyer offer
|
|
123
|
+
*/
|
|
124
|
+
AdminApi.prototype.acceptHighestBuyerAdminLeadOffer = function (requestParameters, initOverrides) {
|
|
125
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
126
|
+
return __generator(this, function (_a) {
|
|
127
|
+
switch (_a.label) {
|
|
128
|
+
case 0: return [4 /*yield*/, this.acceptHighestBuyerAdminLeadOfferRaw(requestParameters, initOverrides)];
|
|
129
|
+
case 1:
|
|
130
|
+
_a.sent();
|
|
131
|
+
return [2 /*return*/];
|
|
132
|
+
}
|
|
133
|
+
});
|
|
134
|
+
});
|
|
135
|
+
};
|
|
78
136
|
/**
|
|
79
137
|
* Force-deletes an auction regardless of its current status. Requires admin privileges.
|
|
80
138
|
* Admin delete auction
|
|
@@ -2532,6 +2590,61 @@ var AdminApi = /** @class */ (function (_super) {
|
|
|
2532
2590
|
});
|
|
2533
2591
|
});
|
|
2534
2592
|
};
|
|
2593
|
+
/**
|
|
2594
|
+
* Returns the highest buyer offer and the lowest seller offer of the negotiation (plain purchase offers in the domain currency, not withdrawn), and whether the highest buyer offer can be accepted now, for any account. Requires admin bearer authentication.
|
|
2595
|
+
* Get the offer summary of a lead
|
|
2596
|
+
*/
|
|
2597
|
+
AdminApi.prototype.getAdminLeadOfferSummaryRaw = function (requestParameters, initOverrides) {
|
|
2598
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2599
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
2600
|
+
return __generator(this, function (_a) {
|
|
2601
|
+
switch (_a.label) {
|
|
2602
|
+
case 0:
|
|
2603
|
+
if (requestParameters['leadId'] == null) {
|
|
2604
|
+
throw new runtime.RequiredError('leadId', 'Required parameter "leadId" was null or undefined when calling getAdminLeadOfferSummary().');
|
|
2605
|
+
}
|
|
2606
|
+
queryParameters = {};
|
|
2607
|
+
headerParameters = {};
|
|
2608
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
2609
|
+
token = this.configuration.accessToken;
|
|
2610
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
2611
|
+
case 1:
|
|
2612
|
+
tokenString = _a.sent();
|
|
2613
|
+
if (tokenString) {
|
|
2614
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
2615
|
+
}
|
|
2616
|
+
_a.label = 2;
|
|
2617
|
+
case 2: return [4 /*yield*/, this.request({
|
|
2618
|
+
path: "/admin/leads/{leadId}/offer-summary".replace("{".concat("leadId", "}"), encodeURIComponent(String(requestParameters['leadId']))),
|
|
2619
|
+
method: 'GET',
|
|
2620
|
+
headers: headerParameters,
|
|
2621
|
+
query: queryParameters,
|
|
2622
|
+
}, initOverrides)];
|
|
2623
|
+
case 3:
|
|
2624
|
+
response = _a.sent();
|
|
2625
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.LeadOfferSummaryDtoFromJSON)(jsonValue); })];
|
|
2626
|
+
}
|
|
2627
|
+
});
|
|
2628
|
+
});
|
|
2629
|
+
};
|
|
2630
|
+
/**
|
|
2631
|
+
* Returns the highest buyer offer and the lowest seller offer of the negotiation (plain purchase offers in the domain currency, not withdrawn), and whether the highest buyer offer can be accepted now, for any account. Requires admin bearer authentication.
|
|
2632
|
+
* Get the offer summary of a lead
|
|
2633
|
+
*/
|
|
2634
|
+
AdminApi.prototype.getAdminLeadOfferSummary = function (requestParameters, initOverrides) {
|
|
2635
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2636
|
+
var response;
|
|
2637
|
+
return __generator(this, function (_a) {
|
|
2638
|
+
switch (_a.label) {
|
|
2639
|
+
case 0: return [4 /*yield*/, this.getAdminLeadOfferSummaryRaw(requestParameters, initOverrides)];
|
|
2640
|
+
case 1:
|
|
2641
|
+
response = _a.sent();
|
|
2642
|
+
return [4 /*yield*/, response.value()];
|
|
2643
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
2644
|
+
}
|
|
2645
|
+
});
|
|
2646
|
+
});
|
|
2647
|
+
};
|
|
2535
2648
|
/**
|
|
2536
2649
|
* Returns sales statistics grouped by top-level domain, optionally filtered by account, currency, and date range.
|
|
2537
2650
|
* Get admin sales by TLD
|
package/dist/apis/LeadsApi.d.ts
CHANGED
|
@@ -10,7 +10,11 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { BatchReadSellerLeadMessageInput, CreateLeadMessageInput, CreateManualLeadInput, LeadEnrichmentDto, LeadLeaseToOwnAndRentConfigurationPresetsDto, LeadOfferExpirationConfigurationInput, LeadQuickReplyListDto, List200Response, ListAdminRelatedLeads200Response, ListLeadMessagesDto, LockConfigurationInput, ManualLeadDetails, ObjectId, PutLeadOfferInput, SellerLeadDetails, UpdateLeadMuteStatusInput } from '../models/index';
|
|
13
|
+
import type { AcceptHighestBuyerLeadOfferInput, BatchReadSellerLeadMessageInput, CreateLeadMessageInput, CreateManualLeadInput, LeadEnrichmentDto, LeadLeaseToOwnAndRentConfigurationPresetsDto, LeadOfferExpirationConfigurationInput, LeadOfferSummaryDto, LeadQuickReplyListDto, List200Response, ListAdminRelatedLeads200Response, ListLeadMessagesDto, LockConfigurationInput, ManualLeadDetails, ObjectId, PutLeadOfferInput, SellerLeadDetails, UpdateLeadMuteStatusInput } from '../models/index';
|
|
14
|
+
export interface LeadsApiAcceptHighestBuyerLeadOfferRequest {
|
|
15
|
+
leadId: string;
|
|
16
|
+
acceptHighestBuyerLeadOfferInput: AcceptHighestBuyerLeadOfferInput;
|
|
17
|
+
}
|
|
14
18
|
export interface LeadsApiAcceptLeadOfferRequest {
|
|
15
19
|
leadId: string;
|
|
16
20
|
}
|
|
@@ -37,6 +41,9 @@ export interface LeadsApiGetLeadRequest {
|
|
|
37
41
|
export interface LeadsApiGetLeadEnrichmentRequest {
|
|
38
42
|
leadId: string;
|
|
39
43
|
}
|
|
44
|
+
export interface LeadsApiGetLeadOfferSummaryRequest {
|
|
45
|
+
leadId: string;
|
|
46
|
+
}
|
|
40
47
|
export interface LeadsApiGetLeadQuickRepliesRequest {
|
|
41
48
|
leadId: string;
|
|
42
49
|
}
|
|
@@ -96,6 +103,16 @@ export interface LeadsApiUpdateLeadOfferExpirationConfigurationRequest {
|
|
|
96
103
|
*
|
|
97
104
|
*/
|
|
98
105
|
export declare class LeadsApi extends runtime.BaseAPI {
|
|
106
|
+
/**
|
|
107
|
+
* Accepts the highest offer the buyer made, at any time, replacing the seller counter-offer that may be open. Creates the order and emails the buyer the payment link. `leadMessageId` is the offer the seller confirmed (see the offer summary); the request is refused when it is not the highest buyer offer any more. Validation error codes: NO_BUYER_OFFER, HIGHEST_BUYER_OFFER_CHANGED, MANUAL_LEAD, DOMAIN_IS_LOCKED, DOMAIN_HAS_AN_AUCTION, DOMAIN_IS_NOT_PURCHASABLE, MESSAGE_LIMIT_REACHED. **API key scope required:** `LEADS_WRITE`. Requests authenticated with a seller session do not need any scope.
|
|
108
|
+
* Accept the highest buyer offer
|
|
109
|
+
*/
|
|
110
|
+
acceptHighestBuyerLeadOfferRaw(requestParameters: LeadsApiAcceptHighestBuyerLeadOfferRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
111
|
+
/**
|
|
112
|
+
* Accepts the highest offer the buyer made, at any time, replacing the seller counter-offer that may be open. Creates the order and emails the buyer the payment link. `leadMessageId` is the offer the seller confirmed (see the offer summary); the request is refused when it is not the highest buyer offer any more. Validation error codes: NO_BUYER_OFFER, HIGHEST_BUYER_OFFER_CHANGED, MANUAL_LEAD, DOMAIN_IS_LOCKED, DOMAIN_HAS_AN_AUCTION, DOMAIN_IS_NOT_PURCHASABLE, MESSAGE_LIMIT_REACHED. **API key scope required:** `LEADS_WRITE`. Requests authenticated with a seller session do not need any scope.
|
|
113
|
+
* Accept the highest buyer offer
|
|
114
|
+
*/
|
|
115
|
+
acceptHighestBuyerLeadOffer(requestParameters: LeadsApiAcceptHighestBuyerLeadOfferRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
99
116
|
/**
|
|
100
117
|
* Accepts the current buyer offer on the lead and advances the negotiation. **API key scope required:** `LEADS_WRITE`. Requests authenticated with a seller session do not need any scope.
|
|
101
118
|
* Accept the buyer offer
|
|
@@ -186,6 +203,16 @@ export declare class LeadsApi extends runtime.BaseAPI {
|
|
|
186
203
|
* Get lease-to-own configuration presets
|
|
187
204
|
*/
|
|
188
205
|
getLeadLeaseToOwnConfigurationPresets(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LeadLeaseToOwnAndRentConfigurationPresetsDto>;
|
|
206
|
+
/**
|
|
207
|
+
* Returns the highest buyer offer and the lowest seller offer of the negotiation (plain purchase offers in the domain currency, not withdrawn), and whether the highest buyer offer can be accepted now. **API key scope required:** `LEADS_READ`. Requests authenticated with a seller session do not need any scope.
|
|
208
|
+
* Get the offer summary of a lead
|
|
209
|
+
*/
|
|
210
|
+
getLeadOfferSummaryRaw(requestParameters: LeadsApiGetLeadOfferSummaryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LeadOfferSummaryDto>>;
|
|
211
|
+
/**
|
|
212
|
+
* Returns the highest buyer offer and the lowest seller offer of the negotiation (plain purchase offers in the domain currency, not withdrawn), and whether the highest buyer offer can be accepted now. **API key scope required:** `LEADS_READ`. Requests authenticated with a seller session do not need any scope.
|
|
213
|
+
* Get the offer summary of a lead
|
|
214
|
+
*/
|
|
215
|
+
getLeadOfferSummary(requestParameters: LeadsApiGetLeadOfferSummaryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LeadOfferSummaryDto>;
|
|
189
216
|
/**
|
|
190
217
|
* Lists the quick replies of the seller account with their variables replaced by the values of the lead. **API key scope required:** `LEADS_READ`. Requests authenticated with a seller session do not need any scope.
|
|
191
218
|
* List quick replies for a lead
|
package/dist/apis/LeadsApi.js
CHANGED
|
@@ -75,6 +75,72 @@ var LeadsApi = /** @class */ (function (_super) {
|
|
|
75
75
|
function LeadsApi() {
|
|
76
76
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
77
|
}
|
|
78
|
+
/**
|
|
79
|
+
* Accepts the highest offer the buyer made, at any time, replacing the seller counter-offer that may be open. Creates the order and emails the buyer the payment link. `leadMessageId` is the offer the seller confirmed (see the offer summary); the request is refused when it is not the highest buyer offer any more. Validation error codes: NO_BUYER_OFFER, HIGHEST_BUYER_OFFER_CHANGED, MANUAL_LEAD, DOMAIN_IS_LOCKED, DOMAIN_HAS_AN_AUCTION, DOMAIN_IS_NOT_PURCHASABLE, MESSAGE_LIMIT_REACHED. **API key scope required:** `LEADS_WRITE`. Requests authenticated with a seller session do not need any scope.
|
|
80
|
+
* Accept the highest buyer offer
|
|
81
|
+
*/
|
|
82
|
+
LeadsApi.prototype.acceptHighestBuyerLeadOfferRaw = function (requestParameters, initOverrides) {
|
|
83
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
84
|
+
var queryParameters, headerParameters, _a, _b, token, tokenString, response;
|
|
85
|
+
return __generator(this, function (_c) {
|
|
86
|
+
switch (_c.label) {
|
|
87
|
+
case 0:
|
|
88
|
+
if (requestParameters['leadId'] == null) {
|
|
89
|
+
throw new runtime.RequiredError('leadId', 'Required parameter "leadId" was null or undefined when calling acceptHighestBuyerLeadOffer().');
|
|
90
|
+
}
|
|
91
|
+
if (requestParameters['acceptHighestBuyerLeadOfferInput'] == null) {
|
|
92
|
+
throw new runtime.RequiredError('acceptHighestBuyerLeadOfferInput', 'Required parameter "acceptHighestBuyerLeadOfferInput" was null or undefined when calling acceptHighestBuyerLeadOffer().');
|
|
93
|
+
}
|
|
94
|
+
queryParameters = {};
|
|
95
|
+
headerParameters = {};
|
|
96
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
97
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
98
|
+
_a = headerParameters;
|
|
99
|
+
_b = "apikey";
|
|
100
|
+
return [4 /*yield*/, this.configuration.apiKey("apikey")];
|
|
101
|
+
case 1:
|
|
102
|
+
_a[_b] = _c.sent(); // api_key authentication
|
|
103
|
+
_c.label = 2;
|
|
104
|
+
case 2:
|
|
105
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
|
|
106
|
+
token = this.configuration.accessToken;
|
|
107
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
108
|
+
case 3:
|
|
109
|
+
tokenString = _c.sent();
|
|
110
|
+
if (tokenString) {
|
|
111
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
112
|
+
}
|
|
113
|
+
_c.label = 4;
|
|
114
|
+
case 4: return [4 /*yield*/, this.request({
|
|
115
|
+
path: "/private/leads/{leadId}/status/accept-highest-buyer-offer".replace("{".concat("leadId", "}"), encodeURIComponent(String(requestParameters['leadId']))),
|
|
116
|
+
method: 'POST',
|
|
117
|
+
headers: headerParameters,
|
|
118
|
+
query: queryParameters,
|
|
119
|
+
body: (0, index_1.AcceptHighestBuyerLeadOfferInputToJSON)(requestParameters['acceptHighestBuyerLeadOfferInput']),
|
|
120
|
+
}, initOverrides)];
|
|
121
|
+
case 5:
|
|
122
|
+
response = _c.sent();
|
|
123
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
124
|
+
}
|
|
125
|
+
});
|
|
126
|
+
});
|
|
127
|
+
};
|
|
128
|
+
/**
|
|
129
|
+
* Accepts the highest offer the buyer made, at any time, replacing the seller counter-offer that may be open. Creates the order and emails the buyer the payment link. `leadMessageId` is the offer the seller confirmed (see the offer summary); the request is refused when it is not the highest buyer offer any more. Validation error codes: NO_BUYER_OFFER, HIGHEST_BUYER_OFFER_CHANGED, MANUAL_LEAD, DOMAIN_IS_LOCKED, DOMAIN_HAS_AN_AUCTION, DOMAIN_IS_NOT_PURCHASABLE, MESSAGE_LIMIT_REACHED. **API key scope required:** `LEADS_WRITE`. Requests authenticated with a seller session do not need any scope.
|
|
130
|
+
* Accept the highest buyer offer
|
|
131
|
+
*/
|
|
132
|
+
LeadsApi.prototype.acceptHighestBuyerLeadOffer = function (requestParameters, initOverrides) {
|
|
133
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
134
|
+
return __generator(this, function (_a) {
|
|
135
|
+
switch (_a.label) {
|
|
136
|
+
case 0: return [4 /*yield*/, this.acceptHighestBuyerLeadOfferRaw(requestParameters, initOverrides)];
|
|
137
|
+
case 1:
|
|
138
|
+
_a.sent();
|
|
139
|
+
return [2 /*return*/];
|
|
140
|
+
}
|
|
141
|
+
});
|
|
142
|
+
});
|
|
143
|
+
};
|
|
78
144
|
/**
|
|
79
145
|
* Accepts the current buyer offer on the lead and advances the negotiation. **API key scope required:** `LEADS_WRITE`. Requests authenticated with a seller session do not need any scope.
|
|
80
146
|
* Accept the buyer offer
|
|
@@ -641,6 +707,69 @@ var LeadsApi = /** @class */ (function (_super) {
|
|
|
641
707
|
});
|
|
642
708
|
});
|
|
643
709
|
};
|
|
710
|
+
/**
|
|
711
|
+
* Returns the highest buyer offer and the lowest seller offer of the negotiation (plain purchase offers in the domain currency, not withdrawn), and whether the highest buyer offer can be accepted now. **API key scope required:** `LEADS_READ`. Requests authenticated with a seller session do not need any scope.
|
|
712
|
+
* Get the offer summary of a lead
|
|
713
|
+
*/
|
|
714
|
+
LeadsApi.prototype.getLeadOfferSummaryRaw = function (requestParameters, initOverrides) {
|
|
715
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
716
|
+
var queryParameters, headerParameters, _a, _b, token, tokenString, response;
|
|
717
|
+
return __generator(this, function (_c) {
|
|
718
|
+
switch (_c.label) {
|
|
719
|
+
case 0:
|
|
720
|
+
if (requestParameters['leadId'] == null) {
|
|
721
|
+
throw new runtime.RequiredError('leadId', 'Required parameter "leadId" was null or undefined when calling getLeadOfferSummary().');
|
|
722
|
+
}
|
|
723
|
+
queryParameters = {};
|
|
724
|
+
headerParameters = {};
|
|
725
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
726
|
+
_a = headerParameters;
|
|
727
|
+
_b = "apikey";
|
|
728
|
+
return [4 /*yield*/, this.configuration.apiKey("apikey")];
|
|
729
|
+
case 1:
|
|
730
|
+
_a[_b] = _c.sent(); // api_key authentication
|
|
731
|
+
_c.label = 2;
|
|
732
|
+
case 2:
|
|
733
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
|
|
734
|
+
token = this.configuration.accessToken;
|
|
735
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
736
|
+
case 3:
|
|
737
|
+
tokenString = _c.sent();
|
|
738
|
+
if (tokenString) {
|
|
739
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
740
|
+
}
|
|
741
|
+
_c.label = 4;
|
|
742
|
+
case 4: return [4 /*yield*/, this.request({
|
|
743
|
+
path: "/private/leads/{leadId}/offer-summary".replace("{".concat("leadId", "}"), encodeURIComponent(String(requestParameters['leadId']))),
|
|
744
|
+
method: 'GET',
|
|
745
|
+
headers: headerParameters,
|
|
746
|
+
query: queryParameters,
|
|
747
|
+
}, initOverrides)];
|
|
748
|
+
case 5:
|
|
749
|
+
response = _c.sent();
|
|
750
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.LeadOfferSummaryDtoFromJSON)(jsonValue); })];
|
|
751
|
+
}
|
|
752
|
+
});
|
|
753
|
+
});
|
|
754
|
+
};
|
|
755
|
+
/**
|
|
756
|
+
* Returns the highest buyer offer and the lowest seller offer of the negotiation (plain purchase offers in the domain currency, not withdrawn), and whether the highest buyer offer can be accepted now. **API key scope required:** `LEADS_READ`. Requests authenticated with a seller session do not need any scope.
|
|
757
|
+
* Get the offer summary of a lead
|
|
758
|
+
*/
|
|
759
|
+
LeadsApi.prototype.getLeadOfferSummary = function (requestParameters, initOverrides) {
|
|
760
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
761
|
+
var response;
|
|
762
|
+
return __generator(this, function (_a) {
|
|
763
|
+
switch (_a.label) {
|
|
764
|
+
case 0: return [4 /*yield*/, this.getLeadOfferSummaryRaw(requestParameters, initOverrides)];
|
|
765
|
+
case 1:
|
|
766
|
+
response = _a.sent();
|
|
767
|
+
return [4 /*yield*/, response.value()];
|
|
768
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
769
|
+
}
|
|
770
|
+
});
|
|
771
|
+
});
|
|
772
|
+
};
|
|
644
773
|
/**
|
|
645
774
|
* Lists the quick replies of the seller account with their variables replaced by the values of the lead. **API key scope required:** `LEADS_READ`. Requests authenticated with a seller session do not need any scope.
|
|
646
775
|
* List quick replies for a lead
|
|
@@ -0,0 +1,32 @@
|
|
|
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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface AcceptHighestBuyerLeadOfferInput
|
|
16
|
+
*/
|
|
17
|
+
export interface AcceptHighestBuyerLeadOfferInput {
|
|
18
|
+
/**
|
|
19
|
+
* The offer message the seller confirmed, as given by the offer summary. The request is refused with HIGHEST_BUYER_OFFER_CHANGED when it is no longer the highest buyer offer.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AcceptHighestBuyerLeadOfferInput
|
|
22
|
+
*/
|
|
23
|
+
leadMessageId: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the AcceptHighestBuyerLeadOfferInput interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfAcceptHighestBuyerLeadOfferInput(value: object): value is AcceptHighestBuyerLeadOfferInput;
|
|
29
|
+
export declare function AcceptHighestBuyerLeadOfferInputFromJSON(json: any): AcceptHighestBuyerLeadOfferInput;
|
|
30
|
+
export declare function AcceptHighestBuyerLeadOfferInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): AcceptHighestBuyerLeadOfferInput;
|
|
31
|
+
export declare function AcceptHighestBuyerLeadOfferInputToJSON(json: any): AcceptHighestBuyerLeadOfferInput;
|
|
32
|
+
export declare function AcceptHighestBuyerLeadOfferInputToJSONTyped(value?: AcceptHighestBuyerLeadOfferInput | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
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.instanceOfAcceptHighestBuyerLeadOfferInput = instanceOfAcceptHighestBuyerLeadOfferInput;
|
|
17
|
+
exports.AcceptHighestBuyerLeadOfferInputFromJSON = AcceptHighestBuyerLeadOfferInputFromJSON;
|
|
18
|
+
exports.AcceptHighestBuyerLeadOfferInputFromJSONTyped = AcceptHighestBuyerLeadOfferInputFromJSONTyped;
|
|
19
|
+
exports.AcceptHighestBuyerLeadOfferInputToJSON = AcceptHighestBuyerLeadOfferInputToJSON;
|
|
20
|
+
exports.AcceptHighestBuyerLeadOfferInputToJSONTyped = AcceptHighestBuyerLeadOfferInputToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AcceptHighestBuyerLeadOfferInput interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAcceptHighestBuyerLeadOfferInput(value) {
|
|
25
|
+
if (!('leadMessageId' in value) || value['leadMessageId'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function AcceptHighestBuyerLeadOfferInputFromJSON(json) {
|
|
30
|
+
return AcceptHighestBuyerLeadOfferInputFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function AcceptHighestBuyerLeadOfferInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'leadMessageId': json['leadMessageId'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function AcceptHighestBuyerLeadOfferInputToJSON(json) {
|
|
41
|
+
return AcceptHighestBuyerLeadOfferInputToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function AcceptHighestBuyerLeadOfferInputToJSONTyped(value, ignoreDiscriminator) {
|
|
44
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'leadMessageId': value['leadMessageId'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -102,6 +102,7 @@ export declare const BuyerNotificationDtoTypeEnum: {
|
|
|
102
102
|
readonly DOMAIN_OFFER_VERIFIED_BUYER_ACCESS_LINK_EMAIL: "domain_offer_verified_buyer_access_link_email";
|
|
103
103
|
readonly DOMAIN_OFFER_RECEIVED_BUYER_ACCESS_LINK_EMAIL: "domain_offer_received_buyer_access_link_email";
|
|
104
104
|
readonly DOMAIN_OFFER_ACCEPTED_CONTINUE_ORDER_EMAIL: "domain_offer_accepted_continue_order_email";
|
|
105
|
+
readonly DOMAIN_EARLIER_OFFER_ACCEPTED_CONTINUE_ORDER_EMAIL: "domain_earlier_offer_accepted_continue_order_email";
|
|
105
106
|
readonly DOMAIN_OFFER_ACCEPTED_CONTINUE_LEASE_TO_OWN_EMAIL: "domain_offer_accepted_continue_lease_to_own_email";
|
|
106
107
|
readonly DOMAIN_OFFER_ACCEPTED_CONTINUE_LEASE_TO_OWN_EMAIL_INSTALLMENTS_RANGE: "domain_offer_accepted_continue_lease_to_own_email_installments_range";
|
|
107
108
|
readonly DOMAIN_OFFER_ACCEPTED_CONTINUE_RENT_EMAIL: "domain_offer_accepted_continue_rent_email";
|
|
@@ -63,6 +63,7 @@ exports.BuyerNotificationDtoTypeEnum = {
|
|
|
63
63
|
DOMAIN_OFFER_VERIFIED_BUYER_ACCESS_LINK_EMAIL: 'domain_offer_verified_buyer_access_link_email',
|
|
64
64
|
DOMAIN_OFFER_RECEIVED_BUYER_ACCESS_LINK_EMAIL: 'domain_offer_received_buyer_access_link_email',
|
|
65
65
|
DOMAIN_OFFER_ACCEPTED_CONTINUE_ORDER_EMAIL: 'domain_offer_accepted_continue_order_email',
|
|
66
|
+
DOMAIN_EARLIER_OFFER_ACCEPTED_CONTINUE_ORDER_EMAIL: 'domain_earlier_offer_accepted_continue_order_email',
|
|
66
67
|
DOMAIN_OFFER_ACCEPTED_CONTINUE_LEASE_TO_OWN_EMAIL: 'domain_offer_accepted_continue_lease_to_own_email',
|
|
67
68
|
DOMAIN_OFFER_ACCEPTED_CONTINUE_LEASE_TO_OWN_EMAIL_INSTALLMENTS_RANGE: 'domain_offer_accepted_continue_lease_to_own_email_installments_range',
|
|
68
69
|
DOMAIN_OFFER_ACCEPTED_CONTINUE_RENT_EMAIL: 'domain_offer_accepted_continue_rent_email',
|
|
@@ -95,6 +95,7 @@ export declare const BuyerNotificationListItemDtoTypeEnum: {
|
|
|
95
95
|
readonly DOMAIN_OFFER_VERIFIED_BUYER_ACCESS_LINK_EMAIL: "domain_offer_verified_buyer_access_link_email";
|
|
96
96
|
readonly DOMAIN_OFFER_RECEIVED_BUYER_ACCESS_LINK_EMAIL: "domain_offer_received_buyer_access_link_email";
|
|
97
97
|
readonly DOMAIN_OFFER_ACCEPTED_CONTINUE_ORDER_EMAIL: "domain_offer_accepted_continue_order_email";
|
|
98
|
+
readonly DOMAIN_EARLIER_OFFER_ACCEPTED_CONTINUE_ORDER_EMAIL: "domain_earlier_offer_accepted_continue_order_email";
|
|
98
99
|
readonly DOMAIN_OFFER_ACCEPTED_CONTINUE_LEASE_TO_OWN_EMAIL: "domain_offer_accepted_continue_lease_to_own_email";
|
|
99
100
|
readonly DOMAIN_OFFER_ACCEPTED_CONTINUE_LEASE_TO_OWN_EMAIL_INSTALLMENTS_RANGE: "domain_offer_accepted_continue_lease_to_own_email_installments_range";
|
|
100
101
|
readonly DOMAIN_OFFER_ACCEPTED_CONTINUE_RENT_EMAIL: "domain_offer_accepted_continue_rent_email";
|
|
@@ -62,6 +62,7 @@ exports.BuyerNotificationListItemDtoTypeEnum = {
|
|
|
62
62
|
DOMAIN_OFFER_VERIFIED_BUYER_ACCESS_LINK_EMAIL: 'domain_offer_verified_buyer_access_link_email',
|
|
63
63
|
DOMAIN_OFFER_RECEIVED_BUYER_ACCESS_LINK_EMAIL: 'domain_offer_received_buyer_access_link_email',
|
|
64
64
|
DOMAIN_OFFER_ACCEPTED_CONTINUE_ORDER_EMAIL: 'domain_offer_accepted_continue_order_email',
|
|
65
|
+
DOMAIN_EARLIER_OFFER_ACCEPTED_CONTINUE_ORDER_EMAIL: 'domain_earlier_offer_accepted_continue_order_email',
|
|
65
66
|
DOMAIN_OFFER_ACCEPTED_CONTINUE_LEASE_TO_OWN_EMAIL: 'domain_offer_accepted_continue_lease_to_own_email',
|
|
66
67
|
DOMAIN_OFFER_ACCEPTED_CONTINUE_LEASE_TO_OWN_EMAIL_INSTALLMENTS_RANGE: 'domain_offer_accepted_continue_lease_to_own_email_installments_range',
|
|
67
68
|
DOMAIN_OFFER_ACCEPTED_CONTINUE_RENT_EMAIL: 'domain_offer_accepted_continue_rent_email',
|
|
@@ -0,0 +1,29 @@
|
|
|
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
|
+
/**
|
|
13
|
+
* Why the highest buyer offer cannot be accepted, if so.
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const LeadOfferSummaryCannotAcceptReason: {
|
|
17
|
+
readonly NO_BUYER_OFFER: "no_buyer_offer";
|
|
18
|
+
readonly LEAD_NOT_NEGOTIABLE: "lead_not_negotiable";
|
|
19
|
+
readonly MANUAL_LEAD: "manual_lead";
|
|
20
|
+
readonly DOMAIN_IS_LOCKED: "domain_is_locked";
|
|
21
|
+
readonly DOMAIN_HAS_AN_AUCTION: "domain_has_an_auction";
|
|
22
|
+
readonly DOMAIN_NOT_PURCHASABLE: "domain_not_purchasable";
|
|
23
|
+
};
|
|
24
|
+
export type LeadOfferSummaryCannotAcceptReason = typeof LeadOfferSummaryCannotAcceptReason[keyof typeof LeadOfferSummaryCannotAcceptReason];
|
|
25
|
+
export declare function instanceOfLeadOfferSummaryCannotAcceptReason(value: any): boolean;
|
|
26
|
+
export declare function LeadOfferSummaryCannotAcceptReasonFromJSON(json: any): LeadOfferSummaryCannotAcceptReason;
|
|
27
|
+
export declare function LeadOfferSummaryCannotAcceptReasonFromJSONTyped(json: any, ignoreDiscriminator: boolean): LeadOfferSummaryCannotAcceptReason;
|
|
28
|
+
export declare function LeadOfferSummaryCannotAcceptReasonToJSON(value?: LeadOfferSummaryCannotAcceptReason | null): any;
|
|
29
|
+
export declare function LeadOfferSummaryCannotAcceptReasonToJSONTyped(value: any, ignoreDiscriminator: boolean): LeadOfferSummaryCannotAcceptReason;
|