@randock/nameshift-api-client 0.0.487 → 0.0.489

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 (76) hide show
  1. package/.openapi-generator/FILES +11 -0
  2. package/README.md +3 -3
  3. package/dist/apis/AdminApi.d.ts +23 -1
  4. package/dist/apis/AdminApi.js +77 -0
  5. package/dist/apis/BuyersApi.d.ts +33 -1
  6. package/dist/apis/BuyersApi.js +121 -0
  7. package/dist/apis/DomainAppraisalRequestsApi.d.ts +50 -0
  8. package/dist/apis/DomainAppraisalRequestsApi.js +217 -0
  9. package/dist/apis/DomainAppraisalRequestsPublicApi.d.ts +86 -0
  10. package/dist/apis/DomainAppraisalRequestsPublicApi.js +321 -0
  11. package/dist/apis/index.d.ts +2 -0
  12. package/dist/apis/index.js +2 -0
  13. package/dist/models/AccountBankAccountDto.d.ts +17 -0
  14. package/dist/models/AccountBankAccountDto.js +15 -1
  15. package/dist/models/AdminBankAccountDto.d.ts +7 -0
  16. package/dist/models/AdminBankAccountDto.js +5 -0
  17. package/dist/models/AdminBankAccountNameCheckDto.d.ts +119 -0
  18. package/dist/models/AdminBankAccountNameCheckDto.js +119 -0
  19. package/dist/models/AdminDomainAppraisalRequestListItemDto.d.ts +118 -0
  20. package/dist/models/AdminDomainAppraisalRequestListItemDto.js +109 -0
  21. package/dist/models/BuyerDomainAppraisalRequestCheckoutDto.d.ts +268 -0
  22. package/dist/models/BuyerDomainAppraisalRequestCheckoutDto.js +237 -0
  23. package/dist/models/BuyerInvoiceDto.d.ts +2 -2
  24. package/dist/models/BuyerSessionDto.d.ts +6 -0
  25. package/dist/models/BuyerSessionDto.js +4 -0
  26. package/dist/models/CreateAccountPaymentInput.d.ts +1 -0
  27. package/dist/models/CreateAccountPaymentInput.js +2 -1
  28. package/dist/models/CreateBuyerDomainAppraisalRequestInput.d.ts +44 -0
  29. package/dist/models/CreateBuyerDomainAppraisalRequestInput.js +59 -0
  30. package/dist/models/DomainAppraisalRequestListItemDto.d.ts +82 -0
  31. package/dist/models/DomainAppraisalRequestListItemDto.js +85 -0
  32. package/dist/models/DomainAppraisalRequestStatus.d.ts +27 -0
  33. package/dist/models/DomainAppraisalRequestStatus.js +53 -0
  34. package/dist/models/DomainAppraisalRequester.d.ts +25 -0
  35. package/dist/models/DomainAppraisalRequester.js +51 -0
  36. package/dist/models/DomainSalesInformationDto.d.ts +6 -0
  37. package/dist/models/DomainSalesInformationDto.js +4 -0
  38. package/dist/models/FeatureFlagListItemDto.d.ts +2 -0
  39. package/dist/models/FeatureFlagListItemDto.js +3 -1
  40. package/dist/models/GetAdminDomainAppraisalRequests200Response.d.ts +47 -0
  41. package/dist/models/GetAdminDomainAppraisalRequests200Response.js +62 -0
  42. package/dist/models/GetBuyerDomainAppraisalRequests200Response.d.ts +47 -0
  43. package/dist/models/GetBuyerDomainAppraisalRequests200Response.js +62 -0
  44. package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.d.ts +2 -0
  45. package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.js +3 -1
  46. package/dist/models/InvoiceDto.d.ts +2 -2
  47. package/dist/models/PrivateAccountGetMeResponse.d.ts +2 -0
  48. package/dist/models/PrivateAccountGetMeResponse.js +3 -1
  49. package/dist/models/index.d.ts +9 -0
  50. package/dist/models/index.js +9 -0
  51. package/package.json +1 -1
  52. package/src/apis/AdminApi.ts +82 -0
  53. package/src/apis/BuyersApi.ts +113 -0
  54. package/src/apis/DomainAppraisalRequestsApi.ts +157 -0
  55. package/src/apis/DomainAppraisalRequestsPublicApi.ts +271 -0
  56. package/src/apis/index.ts +2 -0
  57. package/src/models/AccountBankAccountDto.ts +21 -0
  58. package/src/models/AdminBankAccountDto.ts +16 -0
  59. package/src/models/AdminBankAccountNameCheckDto.ts +183 -0
  60. package/src/models/AdminDomainAppraisalRequestListItemDto.ts +209 -0
  61. package/src/models/BuyerDomainAppraisalRequestCheckoutDto.ts +411 -0
  62. package/src/models/BuyerInvoiceDto.ts +2 -2
  63. package/src/models/BuyerSessionDto.ts +9 -0
  64. package/src/models/CreateAccountPaymentInput.ts +2 -1
  65. package/src/models/CreateBuyerDomainAppraisalRequestInput.ts +84 -0
  66. package/src/models/DomainAppraisalRequestListItemDto.ts +155 -0
  67. package/src/models/DomainAppraisalRequestStatus.ts +55 -0
  68. package/src/models/DomainAppraisalRequester.ts +53 -0
  69. package/src/models/DomainSalesInformationDto.ts +9 -0
  70. package/src/models/FeatureFlagListItemDto.ts +3 -1
  71. package/src/models/GetAdminDomainAppraisalRequests200Response.ts +106 -0
  72. package/src/models/GetBuyerDomainAppraisalRequests200Response.ts +106 -0
  73. package/src/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.ts +3 -1
  74. package/src/models/InvoiceDto.ts +2 -2
  75. package/src/models/PrivateAccountGetMeResponse.ts +3 -1
  76. package/src/models/index.ts +9 -0
@@ -15,6 +15,8 @@ src/apis/BuyersApi.ts
15
15
  src/apis/BuyersPublicApi.ts
16
16
  src/apis/ChallengesApi.ts
17
17
  src/apis/CustomerSuccessApi.ts
18
+ src/apis/DomainAppraisalRequestsApi.ts
19
+ src/apis/DomainAppraisalRequestsPublicApi.ts
18
20
  src/apis/DomainTransfersApi.ts
19
21
  src/apis/DomainsApi.ts
20
22
  src/apis/DomainsPublicApi.ts
@@ -89,6 +91,7 @@ src/models/AdminAccountSettingsInput.ts
89
91
  src/models/AdminAuctionCommissionByDateRangeInput.ts
90
92
  src/models/AdminAuctionConfigurationInput.ts
91
93
  src/models/AdminBankAccountDto.ts
94
+ src/models/AdminBankAccountNameCheckDto.ts
92
95
  src/models/AdminBankDepositAccountBankAccountDto.ts
93
96
  src/models/AdminBankDepositAccountDto.ts
94
97
  src/models/AdminBankDepositDto.ts
@@ -100,6 +103,7 @@ src/models/AdminChallengeListItemDto.ts
100
103
  src/models/AdminCompanyStatsDto.ts
101
104
  src/models/AdminCompanyStatsLedger.ts
102
105
  src/models/AdminDashboardStatsDto.ts
106
+ src/models/AdminDomainAppraisalRequestListItemDto.ts
103
107
  src/models/AdminDomainListItemDto.ts
104
108
  src/models/AdminGetAllDomainTransfers200Response.ts
105
109
  src/models/AdminLeadListItemBuyerDto.ts
@@ -155,6 +159,7 @@ src/models/BuyerAuctionDetailDtoDomain.ts
155
159
  src/models/BuyerAuctionListItemDto.ts
156
160
  src/models/BuyerAuctionListItemDtoDomainInformation.ts
157
161
  src/models/BuyerAuctionListItemDtoSellerAccount.ts
162
+ src/models/BuyerDomainAppraisalRequestCheckoutDto.ts
158
163
  src/models/BuyerDomainNameserverItemDto.ts
159
164
  src/models/BuyerDomainRecordItemDto.ts
160
165
  src/models/BuyerDomainRecordsDto.ts
@@ -216,6 +221,7 @@ src/models/CreateAccountPaymentInput.ts
216
221
  src/models/CreateAccountPaymentManualTransactionInput.ts
217
222
  src/models/CreateApiKeyInput.ts
218
223
  src/models/CreateBankAccountInput.ts
224
+ src/models/CreateBuyerDomainAppraisalRequestInput.ts
219
225
  src/models/CreateBuyerLeadMessageInput.ts
220
226
  src/models/CreateChallengeInput.ts
221
227
  src/models/CreateLeadInput.ts
@@ -236,6 +242,9 @@ src/models/CustomerSuccessListAccountMetricsDto.ts
236
242
  src/models/CustomerSuccessListAccountPortfolioSizeDto.ts
237
243
  src/models/CustomerSuccessListAccountUserDto.ts
238
244
  src/models/DeleteDomainsInput.ts
245
+ src/models/DomainAppraisalRequestListItemDto.ts
246
+ src/models/DomainAppraisalRequestStatus.ts
247
+ src/models/DomainAppraisalRequester.ts
239
248
  src/models/DomainAuctionDto.ts
240
249
  src/models/DomainCategoryItemDto.ts
241
250
  src/models/DomainEditPreviewDto.ts
@@ -293,6 +302,7 @@ src/models/ForbiddenException.ts
293
302
  src/models/ForgotPasswordRequestInput.ts
294
303
  src/models/GetAccountChallengeRewardUsagesListDto.ts
295
304
  src/models/GetAccountNameshiftCommissionsResponseDto.ts
305
+ src/models/GetAdminDomainAppraisalRequests200Response.ts
296
306
  src/models/GetAllAffiliateCommissions200Response.ts
297
307
  src/models/GetAllAuctions200Response.ts
298
308
  src/models/GetAllAuctions200Response1.ts
@@ -305,6 +315,7 @@ src/models/GetAllReferrals200Response.ts
305
315
  src/models/GetAllSubscriptions200Response.ts
306
316
  src/models/GetAllSubscriptions200Response1.ts
307
317
  src/models/GetBuyerAuctions200Response.ts
318
+ src/models/GetBuyerDomainAppraisalRequests200Response.ts
308
319
  src/models/GetBuyerInvoices200Response.ts
309
320
  src/models/GetBuyerLeads200Response.ts
310
321
  src/models/GetBuyerSubscriptions200Response.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @randock/nameshift-api-client@0.0.487
1
+ ## @randock/nameshift-api-client@0.0.489
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.487 --save
39
+ npm install @randock/nameshift-api-client@0.0.489 --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
- 5320f7be02b6f9e34f1833de86db2dc45c99c152d643189c44b1a8737a46d5baca7f0eced39dbd7c991da695efaf088b
47
+ 6bc0a0755481a1ae596ce013f11a3614ef494885ad3e2357f6a73ad224aed19d1fc514ebfb290d4fabc4b18f5edfc99d
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { AccountNameshiftCommissionByTypeDto, AccountNoteListDto, AccountPaymentMethodProfileDto, AccountSettingsDto, AdminAccountLoginDto, AdminAccountSettingsInput, AdminBuyerLoginDto, AdminChallengeListDto, AdminCompanyStatsDto, AdminDashboardStatsDto, AdminGetAllDomainTransfers200Response, AdminMarketplaceDto, BulkCommissionActionsInput, ChangeInvoiceStatusInput, ChangeOrderStatusInput, ChangeSubscriptionStatusInput, CommissionListDto, CommissionSimulationResultDto, CreateAccountNoteInput, CreateChallengeInput, DomainLockDto, DomainStatsDto, DomainTldsDto, DomainTransferDetailsDto, GetAccountChallengeRewardUsagesListDto, GetAllAuctions200Response, GetAllFeatureFlags200Response, GetAllInvoices200Response, GetAllOrders200Response, GetAllOwnedDomains200Response, GetAllSubscriptions200Response, IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto, LeadEnrichmentDto, LeadMessageDto, LedgerMutationsDto, LinkBankDepositToBankAccountInput, LinkBankDepositToInvoiceInput, ListAccounts200Response, ListAdminRelatedLeads200Response, ListBankAccounts200Response, ListBankDeposits200Response, ListDomains200Response, ListLeadMessagesDto, ListLeads200Response, ObjectId, SellerLeadDetails, SellerSalesByTldStatsItemDto, SellerSalesCountStatsItemDto, SendAdminLeadAiPriceNegotiatorAgentChatMessageInput, SimulateCommissionInput, StatsFilterInputDateRange, SubscriptionDetailsDto, UpdateAccountChallengeRewardBalanceInput, UpdateAccountNoteInput, UpdateAdminDomainTransferBuyerCompanyInfoInput, UpdateAdminDomainTransferBuyerInfoInput, UpdateChallengeInput, UpdateFeatureFlagInput, UpdateMarketplaceInput, UpdateSubscriptionBuyerInformationInput } from '../models/index';
13
+ import type { AccountNameshiftCommissionByTypeDto, AccountNoteListDto, AccountPaymentMethodProfileDto, AccountSettingsDto, AdminAccountLoginDto, AdminAccountSettingsInput, AdminBuyerLoginDto, AdminChallengeListDto, AdminCompanyStatsDto, AdminDashboardStatsDto, AdminGetAllDomainTransfers200Response, AdminMarketplaceDto, BulkCommissionActionsInput, ChangeInvoiceStatusInput, ChangeOrderStatusInput, ChangeSubscriptionStatusInput, CommissionListDto, CommissionSimulationResultDto, CreateAccountNoteInput, CreateChallengeInput, DomainLockDto, DomainStatsDto, DomainTldsDto, DomainTransferDetailsDto, GetAccountChallengeRewardUsagesListDto, GetAdminDomainAppraisalRequests200Response, GetAllAuctions200Response, GetAllFeatureFlags200Response, GetAllInvoices200Response, GetAllOrders200Response, GetAllOwnedDomains200Response, GetAllSubscriptions200Response, IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto, LeadEnrichmentDto, LeadMessageDto, LedgerMutationsDto, LinkBankDepositToBankAccountInput, LinkBankDepositToInvoiceInput, ListAccounts200Response, ListAdminRelatedLeads200Response, ListBankAccounts200Response, ListBankDeposits200Response, ListDomains200Response, ListLeadMessagesDto, ListLeads200Response, ObjectId, SellerLeadDetails, SellerSalesByTldStatsItemDto, SellerSalesCountStatsItemDto, SendAdminLeadAiPriceNegotiatorAgentChatMessageInput, SimulateCommissionInput, StatsFilterInputDateRange, SubscriptionDetailsDto, UpdateAccountChallengeRewardBalanceInput, UpdateAccountNoteInput, UpdateAdminDomainTransferBuyerCompanyInfoInput, UpdateAdminDomainTransferBuyerInfoInput, UpdateChallengeInput, UpdateFeatureFlagInput, UpdateMarketplaceInput, UpdateSubscriptionBuyerInformationInput } from '../models/index';
14
14
  export interface AdminApiAdminDeleteAuctionRequest {
15
15
  auctionId: string;
16
16
  }
@@ -94,6 +94,18 @@ export interface AdminApiGetAccountSettingsRequest {
94
94
  export interface AdminApiGetAdminDashboardStatsRequest {
95
95
  dateRange?: StatsFilterInputDateRange | null;
96
96
  }
97
+ export interface AdminApiGetAdminDomainAppraisalRequestsRequest {
98
+ filter?: {
99
+ [key: string]: string;
100
+ };
101
+ page?: number;
102
+ limit?: number;
103
+ sortBy?: Array<string>;
104
+ filterStatus?: string;
105
+ filterDomainName?: string;
106
+ filterBuyer?: string;
107
+ filterAccount?: string;
108
+ }
97
109
  export interface AdminApiGetAdminDomainTransferDetailsRequest {
98
110
  domainTransferId: string;
99
111
  }
@@ -595,6 +607,16 @@ export declare class AdminApi extends runtime.BaseAPI {
595
607
  * Get admin dashboard stats
596
608
  */
597
609
  getAdminDashboardStats(requestParameters?: AdminApiGetAdminDashboardStatsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AdminDashboardStatsDto>;
610
+ /**
611
+ * Lists every domain appraisal bought by buyers and sellers, with its state in the domain appraisals API.
612
+ * List domain appraisal requests
613
+ */
614
+ getAdminDomainAppraisalRequestsRaw(requestParameters: AdminApiGetAdminDomainAppraisalRequestsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetAdminDomainAppraisalRequests200Response>>;
615
+ /**
616
+ * Lists every domain appraisal bought by buyers and sellers, with its state in the domain appraisals API.
617
+ * List domain appraisal requests
618
+ */
619
+ getAdminDomainAppraisalRequests(requestParameters?: AdminApiGetAdminDomainAppraisalRequestsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAdminDomainAppraisalRequests200Response>;
598
620
  /**
599
621
  * Returns domain transfer information.
600
622
  * Get domain transfer details
@@ -1366,6 +1366,83 @@ var AdminApi = /** @class */ (function (_super) {
1366
1366
  });
1367
1367
  });
1368
1368
  };
1369
+ /**
1370
+ * Lists every domain appraisal bought by buyers and sellers, with its state in the domain appraisals API.
1371
+ * List domain appraisal requests
1372
+ */
1373
+ AdminApi.prototype.getAdminDomainAppraisalRequestsRaw = function (requestParameters, initOverrides) {
1374
+ return __awaiter(this, void 0, void 0, function () {
1375
+ var queryParameters, headerParameters, token, tokenString, response;
1376
+ return __generator(this, function (_a) {
1377
+ switch (_a.label) {
1378
+ case 0:
1379
+ queryParameters = {};
1380
+ if (requestParameters['filter'] != null) {
1381
+ queryParameters['filter'] = requestParameters['filter'];
1382
+ }
1383
+ if (requestParameters['page'] != null) {
1384
+ queryParameters['page'] = requestParameters['page'];
1385
+ }
1386
+ if (requestParameters['limit'] != null) {
1387
+ queryParameters['limit'] = requestParameters['limit'];
1388
+ }
1389
+ if (requestParameters['sortBy'] != null) {
1390
+ queryParameters['sortBy'] = requestParameters['sortBy'];
1391
+ }
1392
+ if (requestParameters['filterStatus'] != null) {
1393
+ queryParameters['filter[status]'] = requestParameters['filterStatus'];
1394
+ }
1395
+ if (requestParameters['filterDomainName'] != null) {
1396
+ queryParameters['filter[domain.name]'] = requestParameters['filterDomainName'];
1397
+ }
1398
+ if (requestParameters['filterBuyer'] != null) {
1399
+ queryParameters['filter[buyer]'] = requestParameters['filterBuyer'];
1400
+ }
1401
+ if (requestParameters['filterAccount'] != null) {
1402
+ queryParameters['filter[account]'] = requestParameters['filterAccount'];
1403
+ }
1404
+ headerParameters = {};
1405
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
1406
+ token = this.configuration.accessToken;
1407
+ return [4 /*yield*/, token("bearer", [])];
1408
+ case 1:
1409
+ tokenString = _a.sent();
1410
+ if (tokenString) {
1411
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
1412
+ }
1413
+ _a.label = 2;
1414
+ case 2: return [4 /*yield*/, this.request({
1415
+ path: "/admin/domain-appraisal-requests",
1416
+ method: 'GET',
1417
+ headers: headerParameters,
1418
+ query: queryParameters,
1419
+ }, initOverrides)];
1420
+ case 3:
1421
+ response = _a.sent();
1422
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.GetAdminDomainAppraisalRequests200ResponseFromJSON)(jsonValue); })];
1423
+ }
1424
+ });
1425
+ });
1426
+ };
1427
+ /**
1428
+ * Lists every domain appraisal bought by buyers and sellers, with its state in the domain appraisals API.
1429
+ * List domain appraisal requests
1430
+ */
1431
+ AdminApi.prototype.getAdminDomainAppraisalRequests = function () {
1432
+ return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
1433
+ var response;
1434
+ if (requestParameters === void 0) { requestParameters = {}; }
1435
+ return __generator(this, function (_a) {
1436
+ switch (_a.label) {
1437
+ case 0: return [4 /*yield*/, this.getAdminDomainAppraisalRequestsRaw(requestParameters, initOverrides)];
1438
+ case 1:
1439
+ response = _a.sent();
1440
+ return [4 /*yield*/, response.value()];
1441
+ case 2: return [2 /*return*/, _a.sent()];
1442
+ }
1443
+ });
1444
+ });
1445
+ };
1369
1446
  /**
1370
1447
  * Returns domain transfer information.
1371
1448
  * Get domain transfer details
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { AddSubscriptionDomainRecordInput, AuctionBidInput, AuctionBuyerDto, BatchDeleteBuyerLeadsInput, BatchReadBuyerLeadMessageInput, BatchVerifyBuyerLeadsInput, BulkMarkBuyerNotificationsAsReadInputDto, BuyerAccessTokenDto, BuyerAuctionDetailDto, BuyerDomainRecordsDto, BuyerDomainTransferAuthCodeDto, BuyerNotificationDto, BuyerNotificationSettingsDto, BuyerSessionDto, BuyerTaskDetailsDto, CreateBuyerLeadMessageInput, GetBuyerAuctions200Response, GetBuyerInvoices200Response, GetBuyerLeads200Response, GetBuyerSubscriptions200Response, GetBuyerTransfers200Response, LeadDto, LeadLeaseToOwnAndRentConfigurationPresetsDto, LeadMessageDto, ListBuyerNotifications200Response, ObjectId, PutBuyerLeadOfferInput, RegisterAuctionBuyerPhoneInput, RegisterInput, RemoveSubscriptionDomainRecordInput, SetDomainTransferConfirmationInput, StoreBuyerLocaleInput, UpdateAuctionMuteStatusInput, UpdateBuyerDomainTransferBuyerInfoInput, UpdateBuyerDomainTransferIpsTagInputDto, UpdateBuyerNotificationSettingsInput, UpdateLeadMuteStatusForBuyerInput, UpdateSubscriptionBuyerInformationInput, UpdateSubscriptionDomainNameserversInput, UpdateSubscriptionDomainRecordInput, UpdateTaskMuteStatusForBuyerInput, VerifyPhoneOtpInput } from '../models/index';
13
+ import type { AddSubscriptionDomainRecordInput, AuctionBidInput, AuctionBuyerDto, BatchDeleteBuyerLeadsInput, BatchReadBuyerLeadMessageInput, BatchVerifyBuyerLeadsInput, BulkMarkBuyerNotificationsAsReadInputDto, BuyerAccessTokenDto, BuyerAuctionDetailDto, BuyerDomainRecordsDto, BuyerDomainTransferAuthCodeDto, BuyerNotificationDto, BuyerNotificationSettingsDto, BuyerSessionDto, BuyerTaskDetailsDto, CreateBuyerLeadMessageInput, GetBuyerAuctions200Response, GetBuyerDomainAppraisalRequests200Response, GetBuyerInvoices200Response, GetBuyerLeads200Response, GetBuyerSubscriptions200Response, GetBuyerTransfers200Response, LeadDto, LeadLeaseToOwnAndRentConfigurationPresetsDto, LeadMessageDto, ListBuyerNotifications200Response, ObjectId, PutBuyerLeadOfferInput, RegisterAuctionBuyerPhoneInput, RegisterInput, RemoveSubscriptionDomainRecordInput, SetDomainTransferConfirmationInput, StoreBuyerLocaleInput, UpdateAuctionMuteStatusInput, UpdateBuyerDomainTransferBuyerInfoInput, UpdateBuyerDomainTransferIpsTagInputDto, UpdateBuyerNotificationSettingsInput, UpdateLeadMuteStatusForBuyerInput, UpdateSubscriptionBuyerInformationInput, UpdateSubscriptionDomainNameserversInput, UpdateSubscriptionDomainRecordInput, UpdateTaskMuteStatusForBuyerInput, VerifyPhoneOtpInput } from '../models/index';
14
14
  export interface BuyersApiAcceptBuyerLeadOfferRequest {
15
15
  leadId: string;
16
16
  }
@@ -32,6 +32,9 @@ export interface BuyersApiBulkReadBuyerLeadMessageRequest {
32
32
  leadId: string;
33
33
  batchReadBuyerLeadMessageInput: BatchReadBuyerLeadMessageInput;
34
34
  }
35
+ export interface BuyersApiCancelBuyerDomainAppraisalRequestRequest {
36
+ domainAppraisalRequestId: string;
37
+ }
35
38
  export interface BuyersApiCancelSubscriptionRequest {
36
39
  subscriptionId: string;
37
40
  }
@@ -61,6 +64,15 @@ export interface BuyersApiGetBuyerAuctionsRequest {
61
64
  sortBy?: Array<string>;
62
65
  filterStatus?: string;
63
66
  }
67
+ export interface BuyersApiGetBuyerDomainAppraisalRequestsRequest {
68
+ filter?: {
69
+ [key: string]: string;
70
+ };
71
+ page?: number;
72
+ limit?: number;
73
+ sortBy?: Array<string>;
74
+ filterStatus?: string;
75
+ }
64
76
  export interface BuyersApiGetBuyerInvoicesRequest {
65
77
  filter?: {
66
78
  [key: string]: string;
@@ -265,6 +277,16 @@ export declare class BuyersApi extends runtime.BaseAPI {
265
277
  * Get current buyer session
266
278
  */
267
279
  buyerMe(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BuyerSessionDto>;
280
+ /**
281
+ * Cancels a domain appraisal of the buyer that has not been paid, with its invoice.
282
+ * Cancel domain appraisal request
283
+ */
284
+ cancelBuyerDomainAppraisalRequestRaw(requestParameters: BuyersApiCancelBuyerDomainAppraisalRequestRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
285
+ /**
286
+ * Cancels a domain appraisal of the buyer that has not been paid, with its invoice.
287
+ * Cancel domain appraisal request
288
+ */
289
+ cancelBuyerDomainAppraisalRequest(requestParameters: BuyersApiCancelBuyerDomainAppraisalRequestRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
268
290
  /**
269
291
  * Schedules cancellation of an active buyer subscription.
270
292
  * Cancel subscription
@@ -355,6 +377,16 @@ export declare class BuyersApi extends runtime.BaseAPI {
355
377
  * List buyer auctions
356
378
  */
357
379
  getBuyerAuctions(requestParameters?: BuyersApiGetBuyerAuctionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetBuyerAuctions200Response>;
380
+ /**
381
+ * Lists the domain appraisals bought by the buyer.
382
+ * List domain appraisal requests
383
+ */
384
+ getBuyerDomainAppraisalRequestsRaw(requestParameters: BuyersApiGetBuyerDomainAppraisalRequestsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetBuyerDomainAppraisalRequests200Response>>;
385
+ /**
386
+ * Lists the domain appraisals bought by the buyer.
387
+ * List domain appraisal requests
388
+ */
389
+ getBuyerDomainAppraisalRequests(requestParameters?: BuyersApiGetBuyerDomainAppraisalRequestsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetBuyerDomainAppraisalRequests200Response>;
358
390
  /**
359
391
  * Lists invoices for the buyer.
360
392
  * List buyer invoices
@@ -464,6 +464,59 @@ var BuyersApi = /** @class */ (function (_super) {
464
464
  });
465
465
  });
466
466
  };
467
+ /**
468
+ * Cancels a domain appraisal of the buyer that has not been paid, with its invoice.
469
+ * Cancel domain appraisal request
470
+ */
471
+ BuyersApi.prototype.cancelBuyerDomainAppraisalRequestRaw = function (requestParameters, initOverrides) {
472
+ return __awaiter(this, void 0, void 0, function () {
473
+ var queryParameters, headerParameters, token, tokenString, response;
474
+ return __generator(this, function (_a) {
475
+ switch (_a.label) {
476
+ case 0:
477
+ if (requestParameters['domainAppraisalRequestId'] == null) {
478
+ throw new runtime.RequiredError('domainAppraisalRequestId', 'Required parameter "domainAppraisalRequestId" was null or undefined when calling cancelBuyerDomainAppraisalRequest().');
479
+ }
480
+ queryParameters = {};
481
+ headerParameters = {};
482
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
483
+ token = this.configuration.accessToken;
484
+ return [4 /*yield*/, token("bearer", [])];
485
+ case 1:
486
+ tokenString = _a.sent();
487
+ if (tokenString) {
488
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
489
+ }
490
+ _a.label = 2;
491
+ case 2: return [4 /*yield*/, this.request({
492
+ path: "/buyers/private/domain-appraisal-requests/{domainAppraisalRequestId}/cancel".replace("{".concat("domainAppraisalRequestId", "}"), encodeURIComponent(String(requestParameters['domainAppraisalRequestId']))),
493
+ method: 'POST',
494
+ headers: headerParameters,
495
+ query: queryParameters,
496
+ }, initOverrides)];
497
+ case 3:
498
+ response = _a.sent();
499
+ return [2 /*return*/, new runtime.VoidApiResponse(response)];
500
+ }
501
+ });
502
+ });
503
+ };
504
+ /**
505
+ * Cancels a domain appraisal of the buyer that has not been paid, with its invoice.
506
+ * Cancel domain appraisal request
507
+ */
508
+ BuyersApi.prototype.cancelBuyerDomainAppraisalRequest = function (requestParameters, initOverrides) {
509
+ return __awaiter(this, void 0, void 0, function () {
510
+ return __generator(this, function (_a) {
511
+ switch (_a.label) {
512
+ case 0: return [4 /*yield*/, this.cancelBuyerDomainAppraisalRequestRaw(requestParameters, initOverrides)];
513
+ case 1:
514
+ _a.sent();
515
+ return [2 /*return*/];
516
+ }
517
+ });
518
+ });
519
+ };
467
520
  /**
468
521
  * Schedules cancellation of an active buyer subscription.
469
522
  * Cancel subscription
@@ -970,6 +1023,74 @@ var BuyersApi = /** @class */ (function (_super) {
970
1023
  });
971
1024
  });
972
1025
  };
1026
+ /**
1027
+ * Lists the domain appraisals bought by the buyer.
1028
+ * List domain appraisal requests
1029
+ */
1030
+ BuyersApi.prototype.getBuyerDomainAppraisalRequestsRaw = function (requestParameters, initOverrides) {
1031
+ return __awaiter(this, void 0, void 0, function () {
1032
+ var queryParameters, headerParameters, token, tokenString, response;
1033
+ return __generator(this, function (_a) {
1034
+ switch (_a.label) {
1035
+ case 0:
1036
+ queryParameters = {};
1037
+ if (requestParameters['filter'] != null) {
1038
+ queryParameters['filter'] = requestParameters['filter'];
1039
+ }
1040
+ if (requestParameters['page'] != null) {
1041
+ queryParameters['page'] = requestParameters['page'];
1042
+ }
1043
+ if (requestParameters['limit'] != null) {
1044
+ queryParameters['limit'] = requestParameters['limit'];
1045
+ }
1046
+ if (requestParameters['sortBy'] != null) {
1047
+ queryParameters['sortBy'] = requestParameters['sortBy'];
1048
+ }
1049
+ if (requestParameters['filterStatus'] != null) {
1050
+ queryParameters['filter[status]'] = requestParameters['filterStatus'];
1051
+ }
1052
+ headerParameters = {};
1053
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
1054
+ token = this.configuration.accessToken;
1055
+ return [4 /*yield*/, token("bearer", [])];
1056
+ case 1:
1057
+ tokenString = _a.sent();
1058
+ if (tokenString) {
1059
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
1060
+ }
1061
+ _a.label = 2;
1062
+ case 2: return [4 /*yield*/, this.request({
1063
+ path: "/buyers/private/domain-appraisal-requests",
1064
+ method: 'GET',
1065
+ headers: headerParameters,
1066
+ query: queryParameters,
1067
+ }, initOverrides)];
1068
+ case 3:
1069
+ response = _a.sent();
1070
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.GetBuyerDomainAppraisalRequests200ResponseFromJSON)(jsonValue); })];
1071
+ }
1072
+ });
1073
+ });
1074
+ };
1075
+ /**
1076
+ * Lists the domain appraisals bought by the buyer.
1077
+ * List domain appraisal requests
1078
+ */
1079
+ BuyersApi.prototype.getBuyerDomainAppraisalRequests = function () {
1080
+ return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
1081
+ var response;
1082
+ if (requestParameters === void 0) { requestParameters = {}; }
1083
+ return __generator(this, function (_a) {
1084
+ switch (_a.label) {
1085
+ case 0: return [4 /*yield*/, this.getBuyerDomainAppraisalRequestsRaw(requestParameters, initOverrides)];
1086
+ case 1:
1087
+ response = _a.sent();
1088
+ return [4 /*yield*/, response.value()];
1089
+ case 2: return [2 /*return*/, _a.sent()];
1090
+ }
1091
+ });
1092
+ });
1093
+ };
973
1094
  /**
974
1095
  * Lists invoices for the buyer.
975
1096
  * List buyer invoices
@@ -0,0 +1,50 @@
1
+ /**
2
+ * Nameshift
3
+ * Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import * as runtime from '../runtime';
13
+ import type { GetBuyerDomainAppraisalRequests200Response } from '../models/index';
14
+ export interface DomainAppraisalRequestsApiCancelSellerDomainAppraisalRequestRequest {
15
+ domainAppraisalRequestId: string;
16
+ }
17
+ export interface DomainAppraisalRequestsApiGetSellerDomainAppraisalRequestsRequest {
18
+ filter?: {
19
+ [key: string]: string;
20
+ };
21
+ page?: number;
22
+ limit?: number;
23
+ sortBy?: Array<string>;
24
+ filterStatus?: string;
25
+ }
26
+ /**
27
+ *
28
+ */
29
+ export declare class DomainAppraisalRequestsApi extends runtime.BaseAPI {
30
+ /**
31
+ * Cancels a domain appraisal of the seller account that has not been paid, with its invoice. **API key scope required:** `PAYMENTS_WRITE`. Requests authenticated with a seller session do not need any scope.
32
+ * Cancel domain appraisal request
33
+ */
34
+ cancelSellerDomainAppraisalRequestRaw(requestParameters: DomainAppraisalRequestsApiCancelSellerDomainAppraisalRequestRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
35
+ /**
36
+ * Cancels a domain appraisal of the seller account that has not been paid, with its invoice. **API key scope required:** `PAYMENTS_WRITE`. Requests authenticated with a seller session do not need any scope.
37
+ * Cancel domain appraisal request
38
+ */
39
+ cancelSellerDomainAppraisalRequest(requestParameters: DomainAppraisalRequestsApiCancelSellerDomainAppraisalRequestRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
40
+ /**
41
+ * Lists the domain appraisals bought by the seller account. **API key scope required:** `PAYMENTS_READ`. Requests authenticated with a seller session do not need any scope.
42
+ * List domain appraisal requests
43
+ */
44
+ getSellerDomainAppraisalRequestsRaw(requestParameters: DomainAppraisalRequestsApiGetSellerDomainAppraisalRequestsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetBuyerDomainAppraisalRequests200Response>>;
45
+ /**
46
+ * Lists the domain appraisals bought by the seller account. **API key scope required:** `PAYMENTS_READ`. Requests authenticated with a seller session do not need any scope.
47
+ * List domain appraisal requests
48
+ */
49
+ getSellerDomainAppraisalRequests(requestParameters?: DomainAppraisalRequestsApiGetSellerDomainAppraisalRequestsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetBuyerDomainAppraisalRequests200Response>;
50
+ }