@randock/nameshift-api-client 0.0.562 → 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.
Files changed (81) hide show
  1. package/.openapi-generator/FILES +16 -0
  2. package/README.md +3 -3
  3. package/dist/apis/AdminApi.d.ts +28 -1
  4. package/dist/apis/AdminApi.js +113 -0
  5. package/dist/apis/BuyersApi.d.ts +14 -1
  6. package/dist/apis/BuyersApi.js +57 -0
  7. package/dist/apis/BuyersPublicApi.d.ts +100 -1
  8. package/dist/apis/BuyersPublicApi.js +426 -0
  9. package/dist/apis/LeadsApi.d.ts +28 -1
  10. package/dist/apis/LeadsApi.js +129 -0
  11. package/dist/apis/LeadsPublicApi.d.ts +5 -5
  12. package/dist/apis/LeadsPublicApi.js +6 -4
  13. package/dist/models/AcceptHighestBuyerLeadOfferInput.d.ts +32 -0
  14. package/dist/models/AcceptHighestBuyerLeadOfferInput.js +51 -0
  15. package/dist/models/BuyerCheckoutProfileDto.d.ts +116 -0
  16. package/dist/models/BuyerCheckoutProfileDto.js +107 -0
  17. package/dist/models/BuyerCheckoutProfileSummaryDto.d.ts +74 -0
  18. package/dist/models/BuyerCheckoutProfileSummaryDto.js +79 -0
  19. package/dist/models/BuyerLandingSessionOutput.d.ts +68 -0
  20. package/dist/models/BuyerLandingSessionOutput.js +75 -0
  21. package/dist/models/BuyerNotificationDto.d.ts +1 -0
  22. package/dist/models/BuyerNotificationDto.js +1 -0
  23. package/dist/models/BuyerNotificationListItemDto.d.ts +1 -0
  24. package/dist/models/BuyerNotificationListItemDto.js +1 -0
  25. package/dist/models/BuyerSessionEstablishTicketOutput.d.ts +32 -0
  26. package/dist/models/BuyerSessionEstablishTicketOutput.js +51 -0
  27. package/dist/models/BuyerSessionPurchaseTypeEnum.d.ts +26 -0
  28. package/dist/models/BuyerSessionPurchaseTypeEnum.js +52 -0
  29. package/dist/models/CreateBuyerSessionEstablishTicketInput.d.ts +38 -0
  30. package/dist/models/CreateBuyerSessionEstablishTicketInput.js +55 -0
  31. package/dist/models/CreateBuyerSessionFromPurchaseInput.d.ts +39 -0
  32. package/dist/models/CreateBuyerSessionFromPurchaseInput.js +56 -0
  33. package/dist/models/CreateDashboardBuyerSessionInput.d.ts +32 -0
  34. package/dist/models/CreateDashboardBuyerSessionInput.js +51 -0
  35. package/dist/models/ExchangeBuyerSessionCodeInput.d.ts +38 -0
  36. package/dist/models/ExchangeBuyerSessionCodeInput.js +55 -0
  37. package/dist/models/LeadEmailVerificationResultOutput.d.ts +33 -0
  38. package/dist/models/LeadEmailVerificationResultOutput.js +52 -0
  39. package/dist/models/LeadOfferSummaryCannotAcceptReason.d.ts +29 -0
  40. package/dist/models/LeadOfferSummaryCannotAcceptReason.js +55 -0
  41. package/dist/models/LeadOfferSummaryDto.d.ts +52 -0
  42. package/dist/models/LeadOfferSummaryDto.js +65 -0
  43. package/dist/models/LeadOfferSummaryItemDto.d.ts +61 -0
  44. package/dist/models/LeadOfferSummaryItemDto.js +74 -0
  45. package/dist/models/LeadPhoneVerificationResultOutput.d.ts +47 -0
  46. package/dist/models/LeadPhoneVerificationResultOutput.js +62 -0
  47. package/dist/models/UserNotificationDto.d.ts +1 -0
  48. package/dist/models/UserNotificationDto.js +1 -0
  49. package/dist/models/UserNotificationListItemDto.d.ts +1 -0
  50. package/dist/models/UserNotificationListItemDto.js +1 -0
  51. package/dist/models/VerifyBuyerSessionEmailOtpInput.d.ts +32 -0
  52. package/dist/models/VerifyBuyerSessionEmailOtpInput.js +51 -0
  53. package/dist/models/index.d.ts +16 -0
  54. package/dist/models/index.js +16 -0
  55. package/package.json +1 -1
  56. package/src/apis/AdminApi.ts +110 -0
  57. package/src/apis/BuyersApi.ts +56 -0
  58. package/src/apis/BuyersPublicApi.ts +378 -0
  59. package/src/apis/LeadsApi.ts +118 -0
  60. package/src/apis/LeadsPublicApi.ts +14 -7
  61. package/src/models/AcceptHighestBuyerLeadOfferInput.ts +66 -0
  62. package/src/models/BuyerCheckoutProfileDto.ts +192 -0
  63. package/src/models/BuyerCheckoutProfileSummaryDto.ts +129 -0
  64. package/src/models/BuyerLandingSessionOutput.ts +120 -0
  65. package/src/models/BuyerNotificationDto.ts +1 -0
  66. package/src/models/BuyerNotificationListItemDto.ts +1 -0
  67. package/src/models/BuyerSessionEstablishTicketOutput.ts +66 -0
  68. package/src/models/BuyerSessionPurchaseTypeEnum.ts +54 -0
  69. package/src/models/CreateBuyerSessionEstablishTicketInput.ts +75 -0
  70. package/src/models/CreateBuyerSessionFromPurchaseInput.ts +85 -0
  71. package/src/models/CreateDashboardBuyerSessionInput.ts +66 -0
  72. package/src/models/ExchangeBuyerSessionCodeInput.ts +75 -0
  73. package/src/models/LeadEmailVerificationResultOutput.ts +74 -0
  74. package/src/models/LeadOfferSummaryCannotAcceptReason.ts +57 -0
  75. package/src/models/LeadOfferSummaryDto.ts +110 -0
  76. package/src/models/LeadOfferSummaryItemDto.ts +114 -0
  77. package/src/models/LeadPhoneVerificationResultOutput.ts +106 -0
  78. package/src/models/UserNotificationDto.ts +1 -0
  79. package/src/models/UserNotificationListItemDto.ts +1 -0
  80. package/src/models/VerifyBuyerSessionEmailOtpInput.ts +66 -0
  81. package/src/models/index.ts +16 -0
@@ -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.instanceOfVerifyBuyerSessionEmailOtpInput = instanceOfVerifyBuyerSessionEmailOtpInput;
17
+ exports.VerifyBuyerSessionEmailOtpInputFromJSON = VerifyBuyerSessionEmailOtpInputFromJSON;
18
+ exports.VerifyBuyerSessionEmailOtpInputFromJSONTyped = VerifyBuyerSessionEmailOtpInputFromJSONTyped;
19
+ exports.VerifyBuyerSessionEmailOtpInputToJSON = VerifyBuyerSessionEmailOtpInputToJSON;
20
+ exports.VerifyBuyerSessionEmailOtpInputToJSONTyped = VerifyBuyerSessionEmailOtpInputToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the VerifyBuyerSessionEmailOtpInput interface.
23
+ */
24
+ function instanceOfVerifyBuyerSessionEmailOtpInput(value) {
25
+ if (!('code' in value) || value['code'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function VerifyBuyerSessionEmailOtpInputFromJSON(json) {
30
+ return VerifyBuyerSessionEmailOtpInputFromJSONTyped(json, false);
31
+ }
32
+ function VerifyBuyerSessionEmailOtpInputFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'code': json['code'],
38
+ };
39
+ }
40
+ function VerifyBuyerSessionEmailOtpInputToJSON(json) {
41
+ return VerifyBuyerSessionEmailOtpInputToJSONTyped(json, false);
42
+ }
43
+ function VerifyBuyerSessionEmailOtpInputToJSONTyped(value, ignoreDiscriminator) {
44
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'code': value['code'],
50
+ };
51
+ }
@@ -1,3 +1,4 @@
1
+ export * from './AcceptHighestBuyerLeadOfferInput';
1
2
  export * from './AccountAliasDto';
2
3
  export * from './AccountAliasInput';
3
4
  export * from './AccountBankAccountDetailsDto';
@@ -181,6 +182,8 @@ export * from './BuyerAuctionDetailDtoDomain';
181
182
  export * from './BuyerAuctionListItemDto';
182
183
  export * from './BuyerAuctionListItemDtoDomainInformation';
183
184
  export * from './BuyerAuctionListItemDtoSellerAccount';
185
+ export * from './BuyerCheckoutProfileDto';
186
+ export * from './BuyerCheckoutProfileSummaryDto';
184
187
  export * from './BuyerDomainAppraisalRequestCheckoutDto';
185
188
  export * from './BuyerDomainNameserverItemDto';
186
189
  export * from './BuyerDomainRecordItemDto';
@@ -193,6 +196,7 @@ export * from './BuyerExperienceEnum';
193
196
  export * from './BuyerInvoiceDomainDto';
194
197
  export * from './BuyerInvoiceDto';
195
198
  export * from './BuyerInvoiceSellerAccountDto';
199
+ export * from './BuyerLandingSessionOutput';
196
200
  export * from './BuyerLeadListItemDomainDto';
197
201
  export * from './BuyerLeadListItemDto';
198
202
  export * from './BuyerLoginDto';
@@ -203,6 +207,8 @@ export * from './BuyerNotificationSettingsDto';
203
207
  export * from './BuyerPaymentEnum';
204
208
  export * from './BuyerSecurityUserDto';
205
209
  export * from './BuyerSessionDto';
210
+ export * from './BuyerSessionEstablishTicketOutput';
211
+ export * from './BuyerSessionPurchaseTypeEnum';
206
212
  export * from './BuyerSubscriptionListItemDto';
207
213
  export * from './BuyerSubscriptionListItemDtoDomainInformation';
208
214
  export * from './BuyerTaskDetailsDto';
@@ -252,7 +258,10 @@ export * from './CreateBankAccountInput';
252
258
  export * from './CreateBrokeredLeadInput';
253
259
  export * from './CreateBuyerDomainAppraisalRequestInput';
254
260
  export * from './CreateBuyerLeadMessageInput';
261
+ export * from './CreateBuyerSessionEstablishTicketInput';
262
+ export * from './CreateBuyerSessionFromPurchaseInput';
255
263
  export * from './CreateChallengeInput';
264
+ export * from './CreateDashboardBuyerSessionInput';
256
265
  export * from './CreateInformationRequestLeadInput';
257
266
  export * from './CreateLeadInput';
258
267
  export * from './CreateLeadMessageInput';
@@ -331,6 +340,7 @@ export * from './DomainTransferWorkflowDto';
331
340
  export * from './DomainUrlDto';
332
341
  export * from './DomainVerificationStatusDto';
333
342
  export * from './EppBatchUpdateInput';
343
+ export * from './ExchangeBuyerSessionCodeInput';
334
344
  export * from './FeatureFlagListItemDto';
335
345
  export * from './FixedCommissionPayloadDto';
336
346
  export * from './FixedCommissionPayloadInput';
@@ -403,6 +413,7 @@ export * from './LeadBuyerConfigDto';
403
413
  export * from './LeadDomainDto';
404
414
  export * from './LeadDto';
405
415
  export * from './LeadEmailVerificationDto';
416
+ export * from './LeadEmailVerificationResultOutput';
406
417
  export * from './LeadEnrichmentActivityDto';
407
418
  export * from './LeadEnrichmentCompanyDto';
408
419
  export * from './LeadEnrichmentDomainDto';
@@ -426,9 +437,13 @@ export * from './LeadOfferDto';
426
437
  export * from './LeadOfferExpirationConfigurationDto';
427
438
  export * from './LeadOfferExpirationConfigurationInput';
428
439
  export * from './LeadOfferExpirationDurationInput';
440
+ export * from './LeadOfferSummaryCannotAcceptReason';
441
+ export * from './LeadOfferSummaryDto';
442
+ export * from './LeadOfferSummaryItemDto';
429
443
  export * from './LeadPhoneVerificationDeliveryDto';
430
444
  export * from './LeadPhoneVerificationDto';
431
445
  export * from './LeadPhoneVerificationReason';
446
+ export * from './LeadPhoneVerificationResultOutput';
432
447
  export * from './LeadPhoneVerificationSummaryDto';
433
448
  export * from './LeadPhoneVerificationTooSoonOutput';
434
449
  export * from './LeadPhoneVerificationUnavailableOutput';
@@ -735,6 +750,7 @@ export * from './ValidateTaxNumberDto';
735
750
  export * from './ValidateTaxNumberInput';
736
751
  export * from './ValidationError';
737
752
  export * from './ValidationException';
753
+ export * from './VerifyBuyerSessionEmailOtpInput';
738
754
  export * from './VerifyEmailOtpInput';
739
755
  export * from './VerifyLeadInput';
740
756
  export * from './VerifyLeadPhoneInput';
@@ -16,6 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  /* tslint:disable */
18
18
  /* eslint-disable */
19
+ __exportStar(require("./AcceptHighestBuyerLeadOfferInput"), exports);
19
20
  __exportStar(require("./AccountAliasDto"), exports);
20
21
  __exportStar(require("./AccountAliasInput"), exports);
21
22
  __exportStar(require("./AccountBankAccountDetailsDto"), exports);
@@ -199,6 +200,8 @@ __exportStar(require("./BuyerAuctionDetailDtoDomain"), exports);
199
200
  __exportStar(require("./BuyerAuctionListItemDto"), exports);
200
201
  __exportStar(require("./BuyerAuctionListItemDtoDomainInformation"), exports);
201
202
  __exportStar(require("./BuyerAuctionListItemDtoSellerAccount"), exports);
203
+ __exportStar(require("./BuyerCheckoutProfileDto"), exports);
204
+ __exportStar(require("./BuyerCheckoutProfileSummaryDto"), exports);
202
205
  __exportStar(require("./BuyerDomainAppraisalRequestCheckoutDto"), exports);
203
206
  __exportStar(require("./BuyerDomainNameserverItemDto"), exports);
204
207
  __exportStar(require("./BuyerDomainRecordItemDto"), exports);
@@ -211,6 +214,7 @@ __exportStar(require("./BuyerExperienceEnum"), exports);
211
214
  __exportStar(require("./BuyerInvoiceDomainDto"), exports);
212
215
  __exportStar(require("./BuyerInvoiceDto"), exports);
213
216
  __exportStar(require("./BuyerInvoiceSellerAccountDto"), exports);
217
+ __exportStar(require("./BuyerLandingSessionOutput"), exports);
214
218
  __exportStar(require("./BuyerLeadListItemDomainDto"), exports);
215
219
  __exportStar(require("./BuyerLeadListItemDto"), exports);
216
220
  __exportStar(require("./BuyerLoginDto"), exports);
@@ -221,6 +225,8 @@ __exportStar(require("./BuyerNotificationSettingsDto"), exports);
221
225
  __exportStar(require("./BuyerPaymentEnum"), exports);
222
226
  __exportStar(require("./BuyerSecurityUserDto"), exports);
223
227
  __exportStar(require("./BuyerSessionDto"), exports);
228
+ __exportStar(require("./BuyerSessionEstablishTicketOutput"), exports);
229
+ __exportStar(require("./BuyerSessionPurchaseTypeEnum"), exports);
224
230
  __exportStar(require("./BuyerSubscriptionListItemDto"), exports);
225
231
  __exportStar(require("./BuyerSubscriptionListItemDtoDomainInformation"), exports);
226
232
  __exportStar(require("./BuyerTaskDetailsDto"), exports);
@@ -270,7 +276,10 @@ __exportStar(require("./CreateBankAccountInput"), exports);
270
276
  __exportStar(require("./CreateBrokeredLeadInput"), exports);
271
277
  __exportStar(require("./CreateBuyerDomainAppraisalRequestInput"), exports);
272
278
  __exportStar(require("./CreateBuyerLeadMessageInput"), exports);
279
+ __exportStar(require("./CreateBuyerSessionEstablishTicketInput"), exports);
280
+ __exportStar(require("./CreateBuyerSessionFromPurchaseInput"), exports);
273
281
  __exportStar(require("./CreateChallengeInput"), exports);
282
+ __exportStar(require("./CreateDashboardBuyerSessionInput"), exports);
274
283
  __exportStar(require("./CreateInformationRequestLeadInput"), exports);
275
284
  __exportStar(require("./CreateLeadInput"), exports);
276
285
  __exportStar(require("./CreateLeadMessageInput"), exports);
@@ -349,6 +358,7 @@ __exportStar(require("./DomainTransferWorkflowDto"), exports);
349
358
  __exportStar(require("./DomainUrlDto"), exports);
350
359
  __exportStar(require("./DomainVerificationStatusDto"), exports);
351
360
  __exportStar(require("./EppBatchUpdateInput"), exports);
361
+ __exportStar(require("./ExchangeBuyerSessionCodeInput"), exports);
352
362
  __exportStar(require("./FeatureFlagListItemDto"), exports);
353
363
  __exportStar(require("./FixedCommissionPayloadDto"), exports);
354
364
  __exportStar(require("./FixedCommissionPayloadInput"), exports);
@@ -421,6 +431,7 @@ __exportStar(require("./LeadBuyerConfigDto"), exports);
421
431
  __exportStar(require("./LeadDomainDto"), exports);
422
432
  __exportStar(require("./LeadDto"), exports);
423
433
  __exportStar(require("./LeadEmailVerificationDto"), exports);
434
+ __exportStar(require("./LeadEmailVerificationResultOutput"), exports);
424
435
  __exportStar(require("./LeadEnrichmentActivityDto"), exports);
425
436
  __exportStar(require("./LeadEnrichmentCompanyDto"), exports);
426
437
  __exportStar(require("./LeadEnrichmentDomainDto"), exports);
@@ -444,9 +455,13 @@ __exportStar(require("./LeadOfferDto"), exports);
444
455
  __exportStar(require("./LeadOfferExpirationConfigurationDto"), exports);
445
456
  __exportStar(require("./LeadOfferExpirationConfigurationInput"), exports);
446
457
  __exportStar(require("./LeadOfferExpirationDurationInput"), exports);
458
+ __exportStar(require("./LeadOfferSummaryCannotAcceptReason"), exports);
459
+ __exportStar(require("./LeadOfferSummaryDto"), exports);
460
+ __exportStar(require("./LeadOfferSummaryItemDto"), exports);
447
461
  __exportStar(require("./LeadPhoneVerificationDeliveryDto"), exports);
448
462
  __exportStar(require("./LeadPhoneVerificationDto"), exports);
449
463
  __exportStar(require("./LeadPhoneVerificationReason"), exports);
464
+ __exportStar(require("./LeadPhoneVerificationResultOutput"), exports);
450
465
  __exportStar(require("./LeadPhoneVerificationSummaryDto"), exports);
451
466
  __exportStar(require("./LeadPhoneVerificationTooSoonOutput"), exports);
452
467
  __exportStar(require("./LeadPhoneVerificationUnavailableOutput"), exports);
@@ -753,6 +768,7 @@ __exportStar(require("./ValidateTaxNumberDto"), exports);
753
768
  __exportStar(require("./ValidateTaxNumberInput"), exports);
754
769
  __exportStar(require("./ValidationError"), exports);
755
770
  __exportStar(require("./ValidationException"), exports);
771
+ __exportStar(require("./VerifyBuyerSessionEmailOtpInput"), exports);
756
772
  __exportStar(require("./VerifyEmailOtpInput"), exports);
757
773
  __exportStar(require("./VerifyLeadInput"), exports);
758
774
  __exportStar(require("./VerifyLeadPhoneInput"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randock/nameshift-api-client",
3
- "version": "0.0.562",
3
+ "version": "0.0.564",
4
4
  "description": "OpenAPI client for @randock/nameshift-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -15,6 +15,7 @@
15
15
 
16
16
  import * as runtime from '../runtime';
17
17
  import type {
18
+ AcceptHighestBuyerLeadOfferInput,
18
19
  AccountNameshiftCommissionByTypeDto,
19
20
  AccountNoteListDto,
20
21
  AccountPaymentMethodProfileDto,
@@ -61,6 +62,7 @@ import type {
61
62
  IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto,
62
63
  LeadEnrichmentDto,
63
64
  LeadMessageDto,
65
+ LeadOfferSummaryDto,
64
66
  LedgerMutationsDto,
65
67
  LinkBankDepositToBankAccountInput,
66
68
  LinkBankDepositToInvoiceInput,
@@ -106,6 +108,8 @@ import type {
106
108
  ValidationException,
107
109
  } from '../models/index';
108
110
  import {
111
+ AcceptHighestBuyerLeadOfferInputFromJSON,
112
+ AcceptHighestBuyerLeadOfferInputToJSON,
109
113
  AccountNameshiftCommissionByTypeDtoFromJSON,
110
114
  AccountNameshiftCommissionByTypeDtoToJSON,
111
115
  AccountNoteListDtoFromJSON,
@@ -198,6 +202,8 @@ import {
198
202
  LeadEnrichmentDtoToJSON,
199
203
  LeadMessageDtoFromJSON,
200
204
  LeadMessageDtoToJSON,
205
+ LeadOfferSummaryDtoFromJSON,
206
+ LeadOfferSummaryDtoToJSON,
201
207
  LedgerMutationsDtoFromJSON,
202
208
  LedgerMutationsDtoToJSON,
203
209
  LinkBankDepositToBankAccountInputFromJSON,
@@ -286,6 +292,11 @@ import {
286
292
  ValidationExceptionToJSON,
287
293
  } from '../models/index';
288
294
 
295
+ export interface AdminApiAcceptHighestBuyerAdminLeadOfferRequest {
296
+ leadId: string;
297
+ acceptHighestBuyerLeadOfferInput: AcceptHighestBuyerLeadOfferInput;
298
+ }
299
+
289
300
  export interface AdminApiAdminDeleteAuctionRequest {
290
301
  auctionId: string;
291
302
  }
@@ -485,6 +496,10 @@ export interface AdminApiGetAdminLeadEnrichmentRequest {
485
496
  leadId: string;
486
497
  }
487
498
 
499
+ export interface AdminApiGetAdminLeadOfferSummaryRequest {
500
+ leadId: string;
501
+ }
502
+
488
503
  export interface AdminApiGetAdminSalesByTldRequest {
489
504
  currency: string;
490
505
  accountId?: string;
@@ -845,6 +860,58 @@ export interface AdminApiVerifyBankAccountRequest {
845
860
  */
846
861
  export class AdminApi extends runtime.BaseAPI {
847
862
 
863
+ /**
864
+ * 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.
865
+ * Accept the highest buyer offer
866
+ */
867
+ async acceptHighestBuyerAdminLeadOfferRaw(requestParameters: AdminApiAcceptHighestBuyerAdminLeadOfferRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
868
+ if (requestParameters['leadId'] == null) {
869
+ throw new runtime.RequiredError(
870
+ 'leadId',
871
+ 'Required parameter "leadId" was null or undefined when calling acceptHighestBuyerAdminLeadOffer().'
872
+ );
873
+ }
874
+
875
+ if (requestParameters['acceptHighestBuyerLeadOfferInput'] == null) {
876
+ throw new runtime.RequiredError(
877
+ 'acceptHighestBuyerLeadOfferInput',
878
+ 'Required parameter "acceptHighestBuyerLeadOfferInput" was null or undefined when calling acceptHighestBuyerAdminLeadOffer().'
879
+ );
880
+ }
881
+
882
+ const queryParameters: any = {};
883
+
884
+ const headerParameters: runtime.HTTPHeaders = {};
885
+
886
+ headerParameters['Content-Type'] = 'application/json';
887
+
888
+ if (this.configuration && this.configuration.accessToken) {
889
+ const token = this.configuration.accessToken;
890
+ const tokenString = await token("bearer", []);
891
+
892
+ if (tokenString) {
893
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
894
+ }
895
+ }
896
+ const response = await this.request({
897
+ path: `/admin/leads/{leadId}/status/accept-highest-buyer-offer`.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters['leadId']))),
898
+ method: 'POST',
899
+ headers: headerParameters,
900
+ query: queryParameters,
901
+ body: AcceptHighestBuyerLeadOfferInputToJSON(requestParameters['acceptHighestBuyerLeadOfferInput']),
902
+ }, initOverrides);
903
+
904
+ return new runtime.VoidApiResponse(response);
905
+ }
906
+
907
+ /**
908
+ * 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.
909
+ * Accept the highest buyer offer
910
+ */
911
+ async acceptHighestBuyerAdminLeadOffer(requestParameters: AdminApiAcceptHighestBuyerAdminLeadOfferRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
912
+ await this.acceptHighestBuyerAdminLeadOfferRaw(requestParameters, initOverrides);
913
+ }
914
+
848
915
  /**
849
916
  * Force-deletes an auction regardless of its current status. Requires admin privileges.
850
917
  * Admin delete auction
@@ -2841,6 +2908,49 @@ export class AdminApi extends runtime.BaseAPI {
2841
2908
  return await response.value();
2842
2909
  }
2843
2910
 
2911
+ /**
2912
+ * 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.
2913
+ * Get the offer summary of a lead
2914
+ */
2915
+ async getAdminLeadOfferSummaryRaw(requestParameters: AdminApiGetAdminLeadOfferSummaryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LeadOfferSummaryDto>> {
2916
+ if (requestParameters['leadId'] == null) {
2917
+ throw new runtime.RequiredError(
2918
+ 'leadId',
2919
+ 'Required parameter "leadId" was null or undefined when calling getAdminLeadOfferSummary().'
2920
+ );
2921
+ }
2922
+
2923
+ const queryParameters: any = {};
2924
+
2925
+ const headerParameters: runtime.HTTPHeaders = {};
2926
+
2927
+ if (this.configuration && this.configuration.accessToken) {
2928
+ const token = this.configuration.accessToken;
2929
+ const tokenString = await token("bearer", []);
2930
+
2931
+ if (tokenString) {
2932
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2933
+ }
2934
+ }
2935
+ const response = await this.request({
2936
+ path: `/admin/leads/{leadId}/offer-summary`.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters['leadId']))),
2937
+ method: 'GET',
2938
+ headers: headerParameters,
2939
+ query: queryParameters,
2940
+ }, initOverrides);
2941
+
2942
+ return new runtime.JSONApiResponse(response, (jsonValue) => LeadOfferSummaryDtoFromJSON(jsonValue));
2943
+ }
2944
+
2945
+ /**
2946
+ * 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.
2947
+ * Get the offer summary of a lead
2948
+ */
2949
+ async getAdminLeadOfferSummary(requestParameters: AdminApiGetAdminLeadOfferSummaryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LeadOfferSummaryDto> {
2950
+ const response = await this.getAdminLeadOfferSummaryRaw(requestParameters, initOverrides);
2951
+ return await response.value();
2952
+ }
2953
+
2844
2954
  /**
2845
2955
  * Returns sales statistics grouped by top-level domain, optionally filtered by account, currency, and date range.
2846
2956
  * Get admin sales by TLD
@@ -30,8 +30,10 @@ import type {
30
30
  BuyerNotificationDto,
31
31
  BuyerNotificationSettingsDto,
32
32
  BuyerSessionDto,
33
+ BuyerSessionEstablishTicketOutput,
33
34
  BuyerTaskDetailsDto,
34
35
  CreateBuyerLeadMessageInput,
36
+ CreateDashboardBuyerSessionInput,
35
37
  GetBuyerAuctions200Response,
36
38
  GetBuyerDomainAppraisalRequests200Response,
37
39
  GetBuyerInvoices200Response,
@@ -92,10 +94,14 @@ import {
92
94
  BuyerNotificationSettingsDtoToJSON,
93
95
  BuyerSessionDtoFromJSON,
94
96
  BuyerSessionDtoToJSON,
97
+ BuyerSessionEstablishTicketOutputFromJSON,
98
+ BuyerSessionEstablishTicketOutputToJSON,
95
99
  BuyerTaskDetailsDtoFromJSON,
96
100
  BuyerTaskDetailsDtoToJSON,
97
101
  CreateBuyerLeadMessageInputFromJSON,
98
102
  CreateBuyerLeadMessageInputToJSON,
103
+ CreateDashboardBuyerSessionInputFromJSON,
104
+ CreateDashboardBuyerSessionInputToJSON,
99
105
  GetBuyerAuctions200ResponseFromJSON,
100
106
  GetBuyerAuctions200ResponseToJSON,
101
107
  GetBuyerDomainAppraisalRequests200ResponseFromJSON,
@@ -194,6 +200,10 @@ export interface BuyersApiCreateBuyerLeadMessageRequest {
194
200
  createBuyerLeadMessageInput: CreateBuyerLeadMessageInput;
195
201
  }
196
202
 
203
+ export interface BuyersApiCreateDashboardBuyerSessionEstablishTicketRequest {
204
+ createDashboardBuyerSessionInput: CreateDashboardBuyerSessionInput;
205
+ }
206
+
197
207
  export interface BuyersApiDeleteBuyerLeadsRequest {
198
208
  batchDeleteBuyerLeadsInput: BatchDeleteBuyerLeadsInput;
199
209
  }
@@ -848,6 +858,52 @@ export class BuyersApi extends runtime.BaseAPI {
848
858
  return await response.value();
849
859
  }
850
860
 
861
+ /**
862
+ * Opens a buyer session for the landings, which the sign-in link proved, and returns a one-time ticket to open GET /buyers/session/establish with. The browser comes back to the dashboard afterwards.
863
+ * Remember the signed-in buyer on the landings
864
+ */
865
+ async createDashboardBuyerSessionEstablishTicketRaw(requestParameters: BuyersApiCreateDashboardBuyerSessionEstablishTicketRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BuyerSessionEstablishTicketOutput>> {
866
+ if (requestParameters['createDashboardBuyerSessionInput'] == null) {
867
+ throw new runtime.RequiredError(
868
+ 'createDashboardBuyerSessionInput',
869
+ 'Required parameter "createDashboardBuyerSessionInput" was null or undefined when calling createDashboardBuyerSessionEstablishTicket().'
870
+ );
871
+ }
872
+
873
+ const queryParameters: any = {};
874
+
875
+ const headerParameters: runtime.HTTPHeaders = {};
876
+
877
+ headerParameters['Content-Type'] = 'application/json';
878
+
879
+ if (this.configuration && this.configuration.accessToken) {
880
+ const token = this.configuration.accessToken;
881
+ const tokenString = await token("bearer", []);
882
+
883
+ if (tokenString) {
884
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
885
+ }
886
+ }
887
+ const response = await this.request({
888
+ path: `/buyers/private/session/establish-ticket`,
889
+ method: 'POST',
890
+ headers: headerParameters,
891
+ query: queryParameters,
892
+ body: CreateDashboardBuyerSessionInputToJSON(requestParameters['createDashboardBuyerSessionInput']),
893
+ }, initOverrides);
894
+
895
+ return new runtime.JSONApiResponse(response, (jsonValue) => BuyerSessionEstablishTicketOutputFromJSON(jsonValue));
896
+ }
897
+
898
+ /**
899
+ * Opens a buyer session for the landings, which the sign-in link proved, and returns a one-time ticket to open GET /buyers/session/establish with. The browser comes back to the dashboard afterwards.
900
+ * Remember the signed-in buyer on the landings
901
+ */
902
+ async createDashboardBuyerSessionEstablishTicket(requestParameters: BuyersApiCreateDashboardBuyerSessionEstablishTicketRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BuyerSessionEstablishTicketOutput> {
903
+ const response = await this.createDashboardBuyerSessionEstablishTicketRaw(requestParameters, initOverrides);
904
+ return await response.value();
905
+ }
906
+
851
907
  /**
852
908
  * Deletes multiple leads from the buyer account. Only leads in a deletable status are removed.
853
909
  * Delete buyer leads