@randock/nameshift-api-client 0.0.563 → 0.0.565

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.
Files changed (54) hide show
  1. package/.openapi-generator/FILES +9 -0
  2. package/README.md +3 -3
  3. package/dist/apis/AdminApi.d.ts +63 -1
  4. package/dist/apis/AdminApi.js +246 -0
  5. package/dist/apis/LeadsApi.d.ts +28 -1
  6. package/dist/apis/LeadsApi.js +129 -0
  7. package/dist/apis/SettingsSearchApi.d.ts +31 -0
  8. package/dist/apis/SettingsSearchApi.js +135 -0
  9. package/dist/apis/index.d.ts +1 -0
  10. package/dist/apis/index.js +1 -0
  11. package/dist/models/AcceptHighestBuyerLeadOfferInput.d.ts +32 -0
  12. package/dist/models/AcceptHighestBuyerLeadOfferInput.js +51 -0
  13. package/dist/models/BuyerNotificationDto.d.ts +1 -0
  14. package/dist/models/BuyerNotificationDto.js +1 -0
  15. package/dist/models/BuyerNotificationListItemDto.d.ts +1 -0
  16. package/dist/models/BuyerNotificationListItemDto.js +1 -0
  17. package/dist/models/GetSettingsSearchMisses200Response.d.ts +47 -0
  18. package/dist/models/GetSettingsSearchMisses200Response.js +62 -0
  19. package/dist/models/LeadOfferSummaryCannotAcceptReason.d.ts +29 -0
  20. package/dist/models/LeadOfferSummaryCannotAcceptReason.js +55 -0
  21. package/dist/models/LeadOfferSummaryDto.d.ts +52 -0
  22. package/dist/models/LeadOfferSummaryDto.js +65 -0
  23. package/dist/models/LeadOfferSummaryItemDto.d.ts +61 -0
  24. package/dist/models/LeadOfferSummaryItemDto.js +74 -0
  25. package/dist/models/RecordSettingsSearchMissInput.d.ts +38 -0
  26. package/dist/models/RecordSettingsSearchMissInput.js +55 -0
  27. package/dist/models/SettingsSearchMissCountDto.d.ts +50 -0
  28. package/dist/models/SettingsSearchMissCountDto.js +63 -0
  29. package/dist/models/SettingsSearchMissDto.d.ts +56 -0
  30. package/dist/models/SettingsSearchMissDto.js +67 -0
  31. package/dist/models/UserNotificationDto.d.ts +1 -0
  32. package/dist/models/UserNotificationDto.js +1 -0
  33. package/dist/models/UserNotificationListItemDto.d.ts +1 -0
  34. package/dist/models/UserNotificationListItemDto.js +1 -0
  35. package/dist/models/index.d.ts +8 -0
  36. package/dist/models/index.js +8 -0
  37. package/package.json +1 -1
  38. package/src/apis/AdminApi.ts +239 -0
  39. package/src/apis/LeadsApi.ts +118 -0
  40. package/src/apis/SettingsSearchApi.ts +82 -0
  41. package/src/apis/index.ts +1 -0
  42. package/src/models/AcceptHighestBuyerLeadOfferInput.ts +66 -0
  43. package/src/models/BuyerNotificationDto.ts +1 -0
  44. package/src/models/BuyerNotificationListItemDto.ts +1 -0
  45. package/src/models/GetSettingsSearchMisses200Response.ts +106 -0
  46. package/src/models/LeadOfferSummaryCannotAcceptReason.ts +57 -0
  47. package/src/models/LeadOfferSummaryDto.ts +110 -0
  48. package/src/models/LeadOfferSummaryItemDto.ts +114 -0
  49. package/src/models/RecordSettingsSearchMissInput.ts +75 -0
  50. package/src/models/SettingsSearchMissCountDto.ts +93 -0
  51. package/src/models/SettingsSearchMissDto.ts +102 -0
  52. package/src/models/UserNotificationDto.ts +1 -0
  53. package/src/models/UserNotificationListItemDto.ts +1 -0
  54. package/src/models/index.ts +8 -0
@@ -37,6 +37,7 @@ src/apis/OrdersPublicApi.ts
37
37
  src/apis/PartnerApi.ts
38
38
  src/apis/QuickRepliesApi.ts
39
39
  src/apis/SalesPublicApi.ts
40
+ src/apis/SettingsSearchApi.ts
40
41
  src/apis/StatsApi.ts
41
42
  src/apis/SubscriptionsApi.ts
42
43
  src/apis/SubscriptionsPublicApi.ts
@@ -47,6 +48,7 @@ src/apis/UsersPublicApi.ts
47
48
  src/apis/WebhooksApi.ts
48
49
  src/apis/index.ts
49
50
  src/index.ts
51
+ src/models/AcceptHighestBuyerLeadOfferInput.ts
50
52
  src/models/AccountAliasDto.ts
51
53
  src/models/AccountAliasInput.ts
52
54
  src/models/AccountBankAccountDetailsDto.ts
@@ -422,6 +424,7 @@ src/models/GetMarketingSales200Response.ts
422
424
  src/models/GetQuickReplies200Response.ts
423
425
  src/models/GetSellerChallengesListDto.ts
424
426
  src/models/GetSellerChallengesListDtoChallengesInner.ts
427
+ src/models/GetSettingsSearchMisses200Response.ts
425
428
  src/models/HistoricalMetrics.ts
426
429
  src/models/HttpException.ts
427
430
  src/models/ImportDomainsResponseDto.ts
@@ -485,6 +488,9 @@ src/models/LeadOfferDto.ts
485
488
  src/models/LeadOfferExpirationConfigurationDto.ts
486
489
  src/models/LeadOfferExpirationConfigurationInput.ts
487
490
  src/models/LeadOfferExpirationDurationInput.ts
491
+ src/models/LeadOfferSummaryCannotAcceptReason.ts
492
+ src/models/LeadOfferSummaryDto.ts
493
+ src/models/LeadOfferSummaryItemDto.ts
488
494
  src/models/LeadPhoneVerificationDeliveryDto.ts
489
495
  src/models/LeadPhoneVerificationDto.ts
490
496
  src/models/LeadPhoneVerificationReason.ts
@@ -630,6 +636,7 @@ src/models/QuickReplyInput.ts
630
636
  src/models/QuickReplyVariableEnum.ts
631
637
  src/models/ReauthenticateWithPasskeyInput.ts
632
638
  src/models/ReauthenticationDto.ts
639
+ src/models/RecordSettingsSearchMissInput.ts
633
640
  src/models/RecoveryCodesDto.ts
634
641
  src/models/RegisterAccountInput.ts
635
642
  src/models/RegisterAccountPortfolioSizeInput.ts
@@ -702,6 +709,8 @@ src/models/SetDomainTransferConfirmationInput.ts
702
709
  src/models/SetNewPasswordInput.ts
703
710
  src/models/SetPayoutFrequencyInput.ts
704
711
  src/models/SetPayoutProviderInput.ts
712
+ src/models/SettingsSearchMissCountDto.ts
713
+ src/models/SettingsSearchMissDto.ts
705
714
  src/models/SimulateAutomationsInput.ts
706
715
  src/models/SimulateCommissionInput.ts
707
716
  src/models/StartAuctionInput.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @randock/nameshift-api-client@0.0.563
1
+ ## @randock/nameshift-api-client@0.0.565
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.563 --save
39
+ npm install @randock/nameshift-api-client@0.0.565 --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
- 98b921e47360f95f79b539cbb24b8fb6ba135c1cd119cd52de0700a5e96ff691682fe168daa1c8384ae25152dfe9abb8
47
+ ac37b0604cc513dba155fb70acaba15015ba113420e96af7ed3b93bc2b2f8a5056730a4f2695e18e941f0b6ec670fc81
@@ -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, GetSettingsSearchMisses200Response, 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, SettingsSearchMissCountDto, 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;
@@ -257,6 +264,21 @@ export interface AdminApiGetLedgerMutationAttachmentRequest {
257
264
  export interface AdminApiGetNewsletterRequest {
258
265
  newsletterId: string;
259
266
  }
267
+ export interface AdminApiGetSettingsSearchMissCountsRequest {
268
+ from?: Date;
269
+ to?: Date;
270
+ limit?: number;
271
+ }
272
+ export interface AdminApiGetSettingsSearchMissesRequest {
273
+ from?: Date;
274
+ to?: Date;
275
+ filter?: {
276
+ [key: string]: string;
277
+ };
278
+ page?: number;
279
+ limit?: number;
280
+ sortBy?: Array<string>;
281
+ }
260
282
  export interface AdminApiGetSubscriptionDetailsRequest {
261
283
  subscriptionId: string;
262
284
  }
@@ -500,6 +522,16 @@ export interface AdminApiVerifyBankAccountRequest {
500
522
  *
501
523
  */
502
524
  export declare class AdminApi extends runtime.BaseAPI {
525
+ /**
526
+ * 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.
527
+ * Accept the highest buyer offer
528
+ */
529
+ acceptHighestBuyerAdminLeadOfferRaw(requestParameters: AdminApiAcceptHighestBuyerAdminLeadOfferRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
530
+ /**
531
+ * 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.
532
+ * Accept the highest buyer offer
533
+ */
534
+ acceptHighestBuyerAdminLeadOffer(requestParameters: AdminApiAcceptHighestBuyerAdminLeadOfferRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
503
535
  /**
504
536
  * Force-deletes an auction regardless of its current status. Requires admin privileges.
505
537
  * Admin delete auction
@@ -928,6 +960,16 @@ export declare class AdminApi extends runtime.BaseAPI {
928
960
  * Get lead buyer enrichment
929
961
  */
930
962
  getAdminLeadEnrichment(requestParameters: AdminApiGetAdminLeadEnrichmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LeadEnrichmentDto>;
963
+ /**
964
+ * 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.
965
+ * Get the offer summary of a lead
966
+ */
967
+ getAdminLeadOfferSummaryRaw(requestParameters: AdminApiGetAdminLeadOfferSummaryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LeadOfferSummaryDto>>;
968
+ /**
969
+ * 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.
970
+ * Get the offer summary of a lead
971
+ */
972
+ getAdminLeadOfferSummary(requestParameters: AdminApiGetAdminLeadOfferSummaryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LeadOfferSummaryDto>;
931
973
  /**
932
974
  * Returns sales statistics grouped by top-level domain, optionally filtered by account, currency, and date range.
933
975
  * Get admin sales by TLD
@@ -1046,6 +1088,26 @@ export declare class AdminApi extends runtime.BaseAPI {
1046
1088
  * Get a newsletter
1047
1089
  */
1048
1090
  getNewsletter(requestParameters: AdminApiGetNewsletterRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<NewsletterDto>;
1091
+ /**
1092
+ * Groups the recorded searches by query, most frequent first, capped at `limit` queries.
1093
+ * Count settings searches without results per query
1094
+ */
1095
+ getSettingsSearchMissCountsRaw(requestParameters: AdminApiGetSettingsSearchMissCountsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<SettingsSearchMissCountDto>>>;
1096
+ /**
1097
+ * Groups the recorded searches by query, most frequent first, capped at `limit` queries.
1098
+ * Count settings searches without results per query
1099
+ */
1100
+ getSettingsSearchMissCounts(requestParameters?: AdminApiGetSettingsSearchMissCountsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<SettingsSearchMissCountDto>>;
1101
+ /**
1102
+ * Lists the recorded settings searches that returned nothing, newest first.
1103
+ * List settings searches without results
1104
+ */
1105
+ getSettingsSearchMissesRaw(requestParameters: AdminApiGetSettingsSearchMissesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetSettingsSearchMisses200Response>>;
1106
+ /**
1107
+ * Lists the recorded settings searches that returned nothing, newest first.
1108
+ * List settings searches without results
1109
+ */
1110
+ getSettingsSearchMisses(requestParameters?: AdminApiGetSettingsSearchMissesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetSettingsSearchMisses200Response>;
1049
1111
  /**
1050
1112
  * Returns subscription information.
1051
1113
  * Get subscription details
@@ -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
@@ -3303,6 +3416,139 @@ var AdminApi = /** @class */ (function (_super) {
3303
3416
  });
3304
3417
  });
3305
3418
  };
3419
+ /**
3420
+ * Groups the recorded searches by query, most frequent first, capped at `limit` queries.
3421
+ * Count settings searches without results per query
3422
+ */
3423
+ AdminApi.prototype.getSettingsSearchMissCountsRaw = function (requestParameters, initOverrides) {
3424
+ return __awaiter(this, void 0, void 0, function () {
3425
+ var queryParameters, headerParameters, token, tokenString, response;
3426
+ return __generator(this, function (_a) {
3427
+ switch (_a.label) {
3428
+ case 0:
3429
+ queryParameters = {};
3430
+ if (requestParameters['from'] != null) {
3431
+ queryParameters['from'] = requestParameters['from'].toISOString();
3432
+ }
3433
+ if (requestParameters['to'] != null) {
3434
+ queryParameters['to'] = requestParameters['to'].toISOString();
3435
+ }
3436
+ if (requestParameters['limit'] != null) {
3437
+ queryParameters['limit'] = requestParameters['limit'];
3438
+ }
3439
+ headerParameters = {};
3440
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
3441
+ token = this.configuration.accessToken;
3442
+ return [4 /*yield*/, token("bearer", [])];
3443
+ case 1:
3444
+ tokenString = _a.sent();
3445
+ if (tokenString) {
3446
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
3447
+ }
3448
+ _a.label = 2;
3449
+ case 2: return [4 /*yield*/, this.request({
3450
+ path: "/admin/settings-search-misses/counts",
3451
+ method: 'GET',
3452
+ headers: headerParameters,
3453
+ query: queryParameters,
3454
+ }, initOverrides)];
3455
+ case 3:
3456
+ response = _a.sent();
3457
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(index_1.SettingsSearchMissCountDtoFromJSON); })];
3458
+ }
3459
+ });
3460
+ });
3461
+ };
3462
+ /**
3463
+ * Groups the recorded searches by query, most frequent first, capped at `limit` queries.
3464
+ * Count settings searches without results per query
3465
+ */
3466
+ AdminApi.prototype.getSettingsSearchMissCounts = function () {
3467
+ return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
3468
+ var response;
3469
+ if (requestParameters === void 0) { requestParameters = {}; }
3470
+ return __generator(this, function (_a) {
3471
+ switch (_a.label) {
3472
+ case 0: return [4 /*yield*/, this.getSettingsSearchMissCountsRaw(requestParameters, initOverrides)];
3473
+ case 1:
3474
+ response = _a.sent();
3475
+ return [4 /*yield*/, response.value()];
3476
+ case 2: return [2 /*return*/, _a.sent()];
3477
+ }
3478
+ });
3479
+ });
3480
+ };
3481
+ /**
3482
+ * Lists the recorded settings searches that returned nothing, newest first.
3483
+ * List settings searches without results
3484
+ */
3485
+ AdminApi.prototype.getSettingsSearchMissesRaw = function (requestParameters, initOverrides) {
3486
+ return __awaiter(this, void 0, void 0, function () {
3487
+ var queryParameters, headerParameters, token, tokenString, response;
3488
+ return __generator(this, function (_a) {
3489
+ switch (_a.label) {
3490
+ case 0:
3491
+ queryParameters = {};
3492
+ if (requestParameters['from'] != null) {
3493
+ queryParameters['from'] = requestParameters['from'].toISOString();
3494
+ }
3495
+ if (requestParameters['to'] != null) {
3496
+ queryParameters['to'] = requestParameters['to'].toISOString();
3497
+ }
3498
+ if (requestParameters['filter'] != null) {
3499
+ queryParameters['filter'] = requestParameters['filter'];
3500
+ }
3501
+ if (requestParameters['page'] != null) {
3502
+ queryParameters['page'] = requestParameters['page'];
3503
+ }
3504
+ if (requestParameters['limit'] != null) {
3505
+ queryParameters['limit'] = requestParameters['limit'];
3506
+ }
3507
+ if (requestParameters['sortBy'] != null) {
3508
+ queryParameters['sortBy'] = requestParameters['sortBy'];
3509
+ }
3510
+ headerParameters = {};
3511
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
3512
+ token = this.configuration.accessToken;
3513
+ return [4 /*yield*/, token("bearer", [])];
3514
+ case 1:
3515
+ tokenString = _a.sent();
3516
+ if (tokenString) {
3517
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
3518
+ }
3519
+ _a.label = 2;
3520
+ case 2: return [4 /*yield*/, this.request({
3521
+ path: "/admin/settings-search-misses",
3522
+ method: 'GET',
3523
+ headers: headerParameters,
3524
+ query: queryParameters,
3525
+ }, initOverrides)];
3526
+ case 3:
3527
+ response = _a.sent();
3528
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.GetSettingsSearchMisses200ResponseFromJSON)(jsonValue); })];
3529
+ }
3530
+ });
3531
+ });
3532
+ };
3533
+ /**
3534
+ * Lists the recorded settings searches that returned nothing, newest first.
3535
+ * List settings searches without results
3536
+ */
3537
+ AdminApi.prototype.getSettingsSearchMisses = function () {
3538
+ return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
3539
+ var response;
3540
+ if (requestParameters === void 0) { requestParameters = {}; }
3541
+ return __generator(this, function (_a) {
3542
+ switch (_a.label) {
3543
+ case 0: return [4 /*yield*/, this.getSettingsSearchMissesRaw(requestParameters, initOverrides)];
3544
+ case 1:
3545
+ response = _a.sent();
3546
+ return [4 /*yield*/, response.value()];
3547
+ case 2: return [2 /*return*/, _a.sent()];
3548
+ }
3549
+ });
3550
+ });
3551
+ };
3306
3552
  /**
3307
3553
  * Returns subscription information.
3308
3554
  * Get subscription details
@@ -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
@@ -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