@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.
- package/.openapi-generator/FILES +11 -0
- package/README.md +3 -3
- package/dist/apis/AdminApi.d.ts +23 -1
- package/dist/apis/AdminApi.js +77 -0
- package/dist/apis/BuyersApi.d.ts +33 -1
- package/dist/apis/BuyersApi.js +121 -0
- package/dist/apis/DomainAppraisalRequestsApi.d.ts +50 -0
- package/dist/apis/DomainAppraisalRequestsApi.js +217 -0
- package/dist/apis/DomainAppraisalRequestsPublicApi.d.ts +86 -0
- package/dist/apis/DomainAppraisalRequestsPublicApi.js +321 -0
- package/dist/apis/index.d.ts +2 -0
- package/dist/apis/index.js +2 -0
- package/dist/models/AccountBankAccountDto.d.ts +17 -0
- package/dist/models/AccountBankAccountDto.js +15 -1
- package/dist/models/AdminBankAccountDto.d.ts +7 -0
- package/dist/models/AdminBankAccountDto.js +5 -0
- package/dist/models/AdminBankAccountNameCheckDto.d.ts +119 -0
- package/dist/models/AdminBankAccountNameCheckDto.js +119 -0
- package/dist/models/AdminDomainAppraisalRequestListItemDto.d.ts +118 -0
- package/dist/models/AdminDomainAppraisalRequestListItemDto.js +109 -0
- package/dist/models/BuyerDomainAppraisalRequestCheckoutDto.d.ts +268 -0
- package/dist/models/BuyerDomainAppraisalRequestCheckoutDto.js +237 -0
- package/dist/models/BuyerInvoiceDto.d.ts +2 -2
- package/dist/models/BuyerSessionDto.d.ts +6 -0
- package/dist/models/BuyerSessionDto.js +4 -0
- package/dist/models/CreateAccountPaymentInput.d.ts +1 -0
- package/dist/models/CreateAccountPaymentInput.js +2 -1
- package/dist/models/CreateBuyerDomainAppraisalRequestInput.d.ts +44 -0
- package/dist/models/CreateBuyerDomainAppraisalRequestInput.js +59 -0
- package/dist/models/DomainAppraisalRequestListItemDto.d.ts +82 -0
- package/dist/models/DomainAppraisalRequestListItemDto.js +85 -0
- package/dist/models/DomainAppraisalRequestStatus.d.ts +27 -0
- package/dist/models/DomainAppraisalRequestStatus.js +53 -0
- package/dist/models/DomainAppraisalRequester.d.ts +25 -0
- package/dist/models/DomainAppraisalRequester.js +51 -0
- package/dist/models/DomainSalesInformationDto.d.ts +6 -0
- package/dist/models/DomainSalesInformationDto.js +4 -0
- package/dist/models/FeatureFlagListItemDto.d.ts +2 -0
- package/dist/models/FeatureFlagListItemDto.js +3 -1
- package/dist/models/GetAdminDomainAppraisalRequests200Response.d.ts +47 -0
- package/dist/models/GetAdminDomainAppraisalRequests200Response.js +62 -0
- package/dist/models/GetBuyerDomainAppraisalRequests200Response.d.ts +47 -0
- package/dist/models/GetBuyerDomainAppraisalRequests200Response.js +62 -0
- package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.d.ts +2 -0
- package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.js +3 -1
- package/dist/models/InvoiceDto.d.ts +2 -2
- package/dist/models/PrivateAccountGetMeResponse.d.ts +2 -0
- package/dist/models/PrivateAccountGetMeResponse.js +3 -1
- package/dist/models/index.d.ts +9 -0
- package/dist/models/index.js +9 -0
- package/package.json +1 -1
- package/src/apis/AdminApi.ts +82 -0
- package/src/apis/BuyersApi.ts +113 -0
- package/src/apis/DomainAppraisalRequestsApi.ts +157 -0
- package/src/apis/DomainAppraisalRequestsPublicApi.ts +271 -0
- package/src/apis/index.ts +2 -0
- package/src/models/AccountBankAccountDto.ts +21 -0
- package/src/models/AdminBankAccountDto.ts +16 -0
- package/src/models/AdminBankAccountNameCheckDto.ts +183 -0
- package/src/models/AdminDomainAppraisalRequestListItemDto.ts +209 -0
- package/src/models/BuyerDomainAppraisalRequestCheckoutDto.ts +411 -0
- package/src/models/BuyerInvoiceDto.ts +2 -2
- package/src/models/BuyerSessionDto.ts +9 -0
- package/src/models/CreateAccountPaymentInput.ts +2 -1
- package/src/models/CreateBuyerDomainAppraisalRequestInput.ts +84 -0
- package/src/models/DomainAppraisalRequestListItemDto.ts +155 -0
- package/src/models/DomainAppraisalRequestStatus.ts +55 -0
- package/src/models/DomainAppraisalRequester.ts +53 -0
- package/src/models/DomainSalesInformationDto.ts +9 -0
- package/src/models/FeatureFlagListItemDto.ts +3 -1
- package/src/models/GetAdminDomainAppraisalRequests200Response.ts +106 -0
- package/src/models/GetBuyerDomainAppraisalRequests200Response.ts +106 -0
- package/src/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.ts +3 -1
- package/src/models/InvoiceDto.ts +2 -2
- package/src/models/PrivateAccountGetMeResponse.ts +3 -1
- package/src/models/index.ts +9 -0
|
@@ -142,6 +142,8 @@ export declare const PrivateAccountGetMeResponseEnabledFeaturesEnum: {
|
|
|
142
142
|
readonly LEAD_ENRICHMENT: "LEAD_ENRICHMENT";
|
|
143
143
|
readonly LEAD_CREATION_RECAPTCHA: "LEAD_CREATION_RECAPTCHA";
|
|
144
144
|
readonly DOMAIN_TRANSFER_HOLDER_CHANGE_FORM_SE_NU: "DOMAIN_TRANSFER_HOLDER_CHANGE_FORM_SE_NU";
|
|
145
|
+
readonly DOMAIN_APPRAISAL: "DOMAIN_APPRAISAL";
|
|
146
|
+
readonly BANK_ACCOUNT_NAME_CHECK: "BANK_ACCOUNT_NAME_CHECK";
|
|
145
147
|
};
|
|
146
148
|
export type PrivateAccountGetMeResponseEnabledFeaturesEnum = typeof PrivateAccountGetMeResponseEnabledFeaturesEnum[keyof typeof PrivateAccountGetMeResponseEnabledFeaturesEnum];
|
|
147
149
|
/**
|
|
@@ -60,7 +60,9 @@ exports.PrivateAccountGetMeResponseEnabledFeaturesEnum = {
|
|
|
60
60
|
AI_DOMAIN_EDIT: 'AI_DOMAIN_EDIT',
|
|
61
61
|
LEAD_ENRICHMENT: 'LEAD_ENRICHMENT',
|
|
62
62
|
LEAD_CREATION_RECAPTCHA: 'LEAD_CREATION_RECAPTCHA',
|
|
63
|
-
DOMAIN_TRANSFER_HOLDER_CHANGE_FORM_SE_NU: 'DOMAIN_TRANSFER_HOLDER_CHANGE_FORM_SE_NU'
|
|
63
|
+
DOMAIN_TRANSFER_HOLDER_CHANGE_FORM_SE_NU: 'DOMAIN_TRANSFER_HOLDER_CHANGE_FORM_SE_NU',
|
|
64
|
+
DOMAIN_APPRAISAL: 'DOMAIN_APPRAISAL',
|
|
65
|
+
BANK_ACCOUNT_NAME_CHECK: 'BANK_ACCOUNT_NAME_CHECK'
|
|
64
66
|
};
|
|
65
67
|
/**
|
|
66
68
|
* Check if a given object implements the PrivateAccountGetMeResponse interface.
|
package/dist/models/index.d.ts
CHANGED
|
@@ -48,6 +48,7 @@ export * from './AdminAccountSettingsInput';
|
|
|
48
48
|
export * from './AdminAuctionCommissionByDateRangeInput';
|
|
49
49
|
export * from './AdminAuctionConfigurationInput';
|
|
50
50
|
export * from './AdminBankAccountDto';
|
|
51
|
+
export * from './AdminBankAccountNameCheckDto';
|
|
51
52
|
export * from './AdminBankDepositAccountBankAccountDto';
|
|
52
53
|
export * from './AdminBankDepositAccountDto';
|
|
53
54
|
export * from './AdminBankDepositDto';
|
|
@@ -59,6 +60,7 @@ export * from './AdminChallengeListItemDto';
|
|
|
59
60
|
export * from './AdminCompanyStatsDto';
|
|
60
61
|
export * from './AdminCompanyStatsLedger';
|
|
61
62
|
export * from './AdminDashboardStatsDto';
|
|
63
|
+
export * from './AdminDomainAppraisalRequestListItemDto';
|
|
62
64
|
export * from './AdminDomainListItemDto';
|
|
63
65
|
export * from './AdminGetAllDomainTransfers200Response';
|
|
64
66
|
export * from './AdminLeadListItemBuyerDto';
|
|
@@ -114,6 +116,7 @@ export * from './BuyerAuctionDetailDtoDomain';
|
|
|
114
116
|
export * from './BuyerAuctionListItemDto';
|
|
115
117
|
export * from './BuyerAuctionListItemDtoDomainInformation';
|
|
116
118
|
export * from './BuyerAuctionListItemDtoSellerAccount';
|
|
119
|
+
export * from './BuyerDomainAppraisalRequestCheckoutDto';
|
|
117
120
|
export * from './BuyerDomainNameserverItemDto';
|
|
118
121
|
export * from './BuyerDomainRecordItemDto';
|
|
119
122
|
export * from './BuyerDomainRecordsDto';
|
|
@@ -175,6 +178,7 @@ export * from './CreateAccountPaymentInput';
|
|
|
175
178
|
export * from './CreateAccountPaymentManualTransactionInput';
|
|
176
179
|
export * from './CreateApiKeyInput';
|
|
177
180
|
export * from './CreateBankAccountInput';
|
|
181
|
+
export * from './CreateBuyerDomainAppraisalRequestInput';
|
|
178
182
|
export * from './CreateBuyerLeadMessageInput';
|
|
179
183
|
export * from './CreateChallengeInput';
|
|
180
184
|
export * from './CreateLeadInput';
|
|
@@ -195,6 +199,9 @@ export * from './CustomerSuccessListAccountMetricsDto';
|
|
|
195
199
|
export * from './CustomerSuccessListAccountPortfolioSizeDto';
|
|
196
200
|
export * from './CustomerSuccessListAccountUserDto';
|
|
197
201
|
export * from './DeleteDomainsInput';
|
|
202
|
+
export * from './DomainAppraisalRequestListItemDto';
|
|
203
|
+
export * from './DomainAppraisalRequestStatus';
|
|
204
|
+
export * from './DomainAppraisalRequester';
|
|
198
205
|
export * from './DomainAuctionDto';
|
|
199
206
|
export * from './DomainCategoryItemDto';
|
|
200
207
|
export * from './DomainEditPreviewDto';
|
|
@@ -252,6 +259,7 @@ export * from './ForbiddenException';
|
|
|
252
259
|
export * from './ForgotPasswordRequestInput';
|
|
253
260
|
export * from './GetAccountChallengeRewardUsagesListDto';
|
|
254
261
|
export * from './GetAccountNameshiftCommissionsResponseDto';
|
|
262
|
+
export * from './GetAdminDomainAppraisalRequests200Response';
|
|
255
263
|
export * from './GetAllAffiliateCommissions200Response';
|
|
256
264
|
export * from './GetAllAuctions200Response';
|
|
257
265
|
export * from './GetAllAuctions200Response1';
|
|
@@ -264,6 +272,7 @@ export * from './GetAllReferrals200Response';
|
|
|
264
272
|
export * from './GetAllSubscriptions200Response';
|
|
265
273
|
export * from './GetAllSubscriptions200Response1';
|
|
266
274
|
export * from './GetBuyerAuctions200Response';
|
|
275
|
+
export * from './GetBuyerDomainAppraisalRequests200Response';
|
|
267
276
|
export * from './GetBuyerInvoices200Response';
|
|
268
277
|
export * from './GetBuyerLeads200Response';
|
|
269
278
|
export * from './GetBuyerSubscriptions200Response';
|
package/dist/models/index.js
CHANGED
|
@@ -66,6 +66,7 @@ __exportStar(require("./AdminAccountSettingsInput"), exports);
|
|
|
66
66
|
__exportStar(require("./AdminAuctionCommissionByDateRangeInput"), exports);
|
|
67
67
|
__exportStar(require("./AdminAuctionConfigurationInput"), exports);
|
|
68
68
|
__exportStar(require("./AdminBankAccountDto"), exports);
|
|
69
|
+
__exportStar(require("./AdminBankAccountNameCheckDto"), exports);
|
|
69
70
|
__exportStar(require("./AdminBankDepositAccountBankAccountDto"), exports);
|
|
70
71
|
__exportStar(require("./AdminBankDepositAccountDto"), exports);
|
|
71
72
|
__exportStar(require("./AdminBankDepositDto"), exports);
|
|
@@ -77,6 +78,7 @@ __exportStar(require("./AdminChallengeListItemDto"), exports);
|
|
|
77
78
|
__exportStar(require("./AdminCompanyStatsDto"), exports);
|
|
78
79
|
__exportStar(require("./AdminCompanyStatsLedger"), exports);
|
|
79
80
|
__exportStar(require("./AdminDashboardStatsDto"), exports);
|
|
81
|
+
__exportStar(require("./AdminDomainAppraisalRequestListItemDto"), exports);
|
|
80
82
|
__exportStar(require("./AdminDomainListItemDto"), exports);
|
|
81
83
|
__exportStar(require("./AdminGetAllDomainTransfers200Response"), exports);
|
|
82
84
|
__exportStar(require("./AdminLeadListItemBuyerDto"), exports);
|
|
@@ -132,6 +134,7 @@ __exportStar(require("./BuyerAuctionDetailDtoDomain"), exports);
|
|
|
132
134
|
__exportStar(require("./BuyerAuctionListItemDto"), exports);
|
|
133
135
|
__exportStar(require("./BuyerAuctionListItemDtoDomainInformation"), exports);
|
|
134
136
|
__exportStar(require("./BuyerAuctionListItemDtoSellerAccount"), exports);
|
|
137
|
+
__exportStar(require("./BuyerDomainAppraisalRequestCheckoutDto"), exports);
|
|
135
138
|
__exportStar(require("./BuyerDomainNameserverItemDto"), exports);
|
|
136
139
|
__exportStar(require("./BuyerDomainRecordItemDto"), exports);
|
|
137
140
|
__exportStar(require("./BuyerDomainRecordsDto"), exports);
|
|
@@ -193,6 +196,7 @@ __exportStar(require("./CreateAccountPaymentInput"), exports);
|
|
|
193
196
|
__exportStar(require("./CreateAccountPaymentManualTransactionInput"), exports);
|
|
194
197
|
__exportStar(require("./CreateApiKeyInput"), exports);
|
|
195
198
|
__exportStar(require("./CreateBankAccountInput"), exports);
|
|
199
|
+
__exportStar(require("./CreateBuyerDomainAppraisalRequestInput"), exports);
|
|
196
200
|
__exportStar(require("./CreateBuyerLeadMessageInput"), exports);
|
|
197
201
|
__exportStar(require("./CreateChallengeInput"), exports);
|
|
198
202
|
__exportStar(require("./CreateLeadInput"), exports);
|
|
@@ -213,6 +217,9 @@ __exportStar(require("./CustomerSuccessListAccountMetricsDto"), exports);
|
|
|
213
217
|
__exportStar(require("./CustomerSuccessListAccountPortfolioSizeDto"), exports);
|
|
214
218
|
__exportStar(require("./CustomerSuccessListAccountUserDto"), exports);
|
|
215
219
|
__exportStar(require("./DeleteDomainsInput"), exports);
|
|
220
|
+
__exportStar(require("./DomainAppraisalRequestListItemDto"), exports);
|
|
221
|
+
__exportStar(require("./DomainAppraisalRequestStatus"), exports);
|
|
222
|
+
__exportStar(require("./DomainAppraisalRequester"), exports);
|
|
216
223
|
__exportStar(require("./DomainAuctionDto"), exports);
|
|
217
224
|
__exportStar(require("./DomainCategoryItemDto"), exports);
|
|
218
225
|
__exportStar(require("./DomainEditPreviewDto"), exports);
|
|
@@ -270,6 +277,7 @@ __exportStar(require("./ForbiddenException"), exports);
|
|
|
270
277
|
__exportStar(require("./ForgotPasswordRequestInput"), exports);
|
|
271
278
|
__exportStar(require("./GetAccountChallengeRewardUsagesListDto"), exports);
|
|
272
279
|
__exportStar(require("./GetAccountNameshiftCommissionsResponseDto"), exports);
|
|
280
|
+
__exportStar(require("./GetAdminDomainAppraisalRequests200Response"), exports);
|
|
273
281
|
__exportStar(require("./GetAllAffiliateCommissions200Response"), exports);
|
|
274
282
|
__exportStar(require("./GetAllAuctions200Response"), exports);
|
|
275
283
|
__exportStar(require("./GetAllAuctions200Response1"), exports);
|
|
@@ -282,6 +290,7 @@ __exportStar(require("./GetAllReferrals200Response"), exports);
|
|
|
282
290
|
__exportStar(require("./GetAllSubscriptions200Response"), exports);
|
|
283
291
|
__exportStar(require("./GetAllSubscriptions200Response1"), exports);
|
|
284
292
|
__exportStar(require("./GetBuyerAuctions200Response"), exports);
|
|
293
|
+
__exportStar(require("./GetBuyerDomainAppraisalRequests200Response"), exports);
|
|
285
294
|
__exportStar(require("./GetBuyerInvoices200Response"), exports);
|
|
286
295
|
__exportStar(require("./GetBuyerLeads200Response"), exports);
|
|
287
296
|
__exportStar(require("./GetBuyerSubscriptions200Response"), exports);
|
package/package.json
CHANGED
package/src/apis/AdminApi.ts
CHANGED
|
@@ -43,6 +43,7 @@ import type {
|
|
|
43
43
|
DomainTransferDetailsDto,
|
|
44
44
|
ForbiddenException,
|
|
45
45
|
GetAccountChallengeRewardUsagesListDto,
|
|
46
|
+
GetAdminDomainAppraisalRequests200Response,
|
|
46
47
|
GetAllAuctions200Response,
|
|
47
48
|
GetAllFeatureFlags200Response,
|
|
48
49
|
GetAllInvoices200Response,
|
|
@@ -138,6 +139,8 @@ import {
|
|
|
138
139
|
ForbiddenExceptionToJSON,
|
|
139
140
|
GetAccountChallengeRewardUsagesListDtoFromJSON,
|
|
140
141
|
GetAccountChallengeRewardUsagesListDtoToJSON,
|
|
142
|
+
GetAdminDomainAppraisalRequests200ResponseFromJSON,
|
|
143
|
+
GetAdminDomainAppraisalRequests200ResponseToJSON,
|
|
141
144
|
GetAllAuctions200ResponseFromJSON,
|
|
142
145
|
GetAllAuctions200ResponseToJSON,
|
|
143
146
|
GetAllFeatureFlags200ResponseFromJSON,
|
|
@@ -318,6 +321,17 @@ export interface AdminApiGetAdminDashboardStatsRequest {
|
|
|
318
321
|
dateRange?: StatsFilterInputDateRange | null;
|
|
319
322
|
}
|
|
320
323
|
|
|
324
|
+
export interface AdminApiGetAdminDomainAppraisalRequestsRequest {
|
|
325
|
+
filter?: { [key: string]: string; };
|
|
326
|
+
page?: number;
|
|
327
|
+
limit?: number;
|
|
328
|
+
sortBy?: Array<string>;
|
|
329
|
+
filterStatus?: string;
|
|
330
|
+
filterDomainName?: string;
|
|
331
|
+
filterBuyer?: string;
|
|
332
|
+
filterAccount?: string;
|
|
333
|
+
}
|
|
334
|
+
|
|
321
335
|
export interface AdminApiGetAdminDomainTransferDetailsRequest {
|
|
322
336
|
domainTransferId: string;
|
|
323
337
|
}
|
|
@@ -1682,6 +1696,74 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
1682
1696
|
return await response.value();
|
|
1683
1697
|
}
|
|
1684
1698
|
|
|
1699
|
+
/**
|
|
1700
|
+
* Lists every domain appraisal bought by buyers and sellers, with its state in the domain appraisals API.
|
|
1701
|
+
* List domain appraisal requests
|
|
1702
|
+
*/
|
|
1703
|
+
async getAdminDomainAppraisalRequestsRaw(requestParameters: AdminApiGetAdminDomainAppraisalRequestsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetAdminDomainAppraisalRequests200Response>> {
|
|
1704
|
+
const queryParameters: any = {};
|
|
1705
|
+
|
|
1706
|
+
if (requestParameters['filter'] != null) {
|
|
1707
|
+
queryParameters['filter'] = requestParameters['filter'];
|
|
1708
|
+
}
|
|
1709
|
+
|
|
1710
|
+
if (requestParameters['page'] != null) {
|
|
1711
|
+
queryParameters['page'] = requestParameters['page'];
|
|
1712
|
+
}
|
|
1713
|
+
|
|
1714
|
+
if (requestParameters['limit'] != null) {
|
|
1715
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
1716
|
+
}
|
|
1717
|
+
|
|
1718
|
+
if (requestParameters['sortBy'] != null) {
|
|
1719
|
+
queryParameters['sortBy'] = requestParameters['sortBy'];
|
|
1720
|
+
}
|
|
1721
|
+
|
|
1722
|
+
if (requestParameters['filterStatus'] != null) {
|
|
1723
|
+
queryParameters['filter[status]'] = requestParameters['filterStatus'];
|
|
1724
|
+
}
|
|
1725
|
+
|
|
1726
|
+
if (requestParameters['filterDomainName'] != null) {
|
|
1727
|
+
queryParameters['filter[domain.name]'] = requestParameters['filterDomainName'];
|
|
1728
|
+
}
|
|
1729
|
+
|
|
1730
|
+
if (requestParameters['filterBuyer'] != null) {
|
|
1731
|
+
queryParameters['filter[buyer]'] = requestParameters['filterBuyer'];
|
|
1732
|
+
}
|
|
1733
|
+
|
|
1734
|
+
if (requestParameters['filterAccount'] != null) {
|
|
1735
|
+
queryParameters['filter[account]'] = requestParameters['filterAccount'];
|
|
1736
|
+
}
|
|
1737
|
+
|
|
1738
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1739
|
+
|
|
1740
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1741
|
+
const token = this.configuration.accessToken;
|
|
1742
|
+
const tokenString = await token("bearer", []);
|
|
1743
|
+
|
|
1744
|
+
if (tokenString) {
|
|
1745
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1746
|
+
}
|
|
1747
|
+
}
|
|
1748
|
+
const response = await this.request({
|
|
1749
|
+
path: `/admin/domain-appraisal-requests`,
|
|
1750
|
+
method: 'GET',
|
|
1751
|
+
headers: headerParameters,
|
|
1752
|
+
query: queryParameters,
|
|
1753
|
+
}, initOverrides);
|
|
1754
|
+
|
|
1755
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetAdminDomainAppraisalRequests200ResponseFromJSON(jsonValue));
|
|
1756
|
+
}
|
|
1757
|
+
|
|
1758
|
+
/**
|
|
1759
|
+
* Lists every domain appraisal bought by buyers and sellers, with its state in the domain appraisals API.
|
|
1760
|
+
* List domain appraisal requests
|
|
1761
|
+
*/
|
|
1762
|
+
async getAdminDomainAppraisalRequests(requestParameters: AdminApiGetAdminDomainAppraisalRequestsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAdminDomainAppraisalRequests200Response> {
|
|
1763
|
+
const response = await this.getAdminDomainAppraisalRequestsRaw(requestParameters, initOverrides);
|
|
1764
|
+
return await response.value();
|
|
1765
|
+
}
|
|
1766
|
+
|
|
1685
1767
|
/**
|
|
1686
1768
|
* Returns domain transfer information.
|
|
1687
1769
|
* Get domain transfer details
|
package/src/apis/BuyersApi.ts
CHANGED
|
@@ -34,6 +34,7 @@ import type {
|
|
|
34
34
|
CreateBuyerLeadMessageInput,
|
|
35
35
|
ForbiddenException,
|
|
36
36
|
GetBuyerAuctions200Response,
|
|
37
|
+
GetBuyerDomainAppraisalRequests200Response,
|
|
37
38
|
GetBuyerInvoices200Response,
|
|
38
39
|
GetBuyerLeads200Response,
|
|
39
40
|
GetBuyerSubscriptions200Response,
|
|
@@ -101,6 +102,8 @@ import {
|
|
|
101
102
|
ForbiddenExceptionToJSON,
|
|
102
103
|
GetBuyerAuctions200ResponseFromJSON,
|
|
103
104
|
GetBuyerAuctions200ResponseToJSON,
|
|
105
|
+
GetBuyerDomainAppraisalRequests200ResponseFromJSON,
|
|
106
|
+
GetBuyerDomainAppraisalRequests200ResponseToJSON,
|
|
104
107
|
GetBuyerInvoices200ResponseFromJSON,
|
|
105
108
|
GetBuyerInvoices200ResponseToJSON,
|
|
106
109
|
GetBuyerLeads200ResponseFromJSON,
|
|
@@ -184,6 +187,10 @@ export interface BuyersApiBulkReadBuyerLeadMessageRequest {
|
|
|
184
187
|
batchReadBuyerLeadMessageInput: BatchReadBuyerLeadMessageInput;
|
|
185
188
|
}
|
|
186
189
|
|
|
190
|
+
export interface BuyersApiCancelBuyerDomainAppraisalRequestRequest {
|
|
191
|
+
domainAppraisalRequestId: string;
|
|
192
|
+
}
|
|
193
|
+
|
|
187
194
|
export interface BuyersApiCancelSubscriptionRequest {
|
|
188
195
|
subscriptionId: string;
|
|
189
196
|
}
|
|
@@ -218,6 +225,14 @@ export interface BuyersApiGetBuyerAuctionsRequest {
|
|
|
218
225
|
filterStatus?: string;
|
|
219
226
|
}
|
|
220
227
|
|
|
228
|
+
export interface BuyersApiGetBuyerDomainAppraisalRequestsRequest {
|
|
229
|
+
filter?: { [key: string]: string; };
|
|
230
|
+
page?: number;
|
|
231
|
+
limit?: number;
|
|
232
|
+
sortBy?: Array<string>;
|
|
233
|
+
filterStatus?: string;
|
|
234
|
+
}
|
|
235
|
+
|
|
221
236
|
export interface BuyersApiGetBuyerInvoicesRequest {
|
|
222
237
|
filter?: { [key: string]: string; };
|
|
223
238
|
page?: number;
|
|
@@ -696,6 +711,48 @@ export class BuyersApi extends runtime.BaseAPI {
|
|
|
696
711
|
return await response.value();
|
|
697
712
|
}
|
|
698
713
|
|
|
714
|
+
/**
|
|
715
|
+
* Cancels a domain appraisal of the buyer that has not been paid, with its invoice.
|
|
716
|
+
* Cancel domain appraisal request
|
|
717
|
+
*/
|
|
718
|
+
async cancelBuyerDomainAppraisalRequestRaw(requestParameters: BuyersApiCancelBuyerDomainAppraisalRequestRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
719
|
+
if (requestParameters['domainAppraisalRequestId'] == null) {
|
|
720
|
+
throw new runtime.RequiredError(
|
|
721
|
+
'domainAppraisalRequestId',
|
|
722
|
+
'Required parameter "domainAppraisalRequestId" was null or undefined when calling cancelBuyerDomainAppraisalRequest().'
|
|
723
|
+
);
|
|
724
|
+
}
|
|
725
|
+
|
|
726
|
+
const queryParameters: any = {};
|
|
727
|
+
|
|
728
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
729
|
+
|
|
730
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
731
|
+
const token = this.configuration.accessToken;
|
|
732
|
+
const tokenString = await token("bearer", []);
|
|
733
|
+
|
|
734
|
+
if (tokenString) {
|
|
735
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
736
|
+
}
|
|
737
|
+
}
|
|
738
|
+
const response = await this.request({
|
|
739
|
+
path: `/buyers/private/domain-appraisal-requests/{domainAppraisalRequestId}/cancel`.replace(`{${"domainAppraisalRequestId"}}`, encodeURIComponent(String(requestParameters['domainAppraisalRequestId']))),
|
|
740
|
+
method: 'POST',
|
|
741
|
+
headers: headerParameters,
|
|
742
|
+
query: queryParameters,
|
|
743
|
+
}, initOverrides);
|
|
744
|
+
|
|
745
|
+
return new runtime.VoidApiResponse(response);
|
|
746
|
+
}
|
|
747
|
+
|
|
748
|
+
/**
|
|
749
|
+
* Cancels a domain appraisal of the buyer that has not been paid, with its invoice.
|
|
750
|
+
* Cancel domain appraisal request
|
|
751
|
+
*/
|
|
752
|
+
async cancelBuyerDomainAppraisalRequest(requestParameters: BuyersApiCancelBuyerDomainAppraisalRequestRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
753
|
+
await this.cancelBuyerDomainAppraisalRequestRaw(requestParameters, initOverrides);
|
|
754
|
+
}
|
|
755
|
+
|
|
699
756
|
/**
|
|
700
757
|
* Schedules cancellation of an active buyer subscription.
|
|
701
758
|
* Cancel subscription
|
|
@@ -1099,6 +1156,62 @@ export class BuyersApi extends runtime.BaseAPI {
|
|
|
1099
1156
|
return await response.value();
|
|
1100
1157
|
}
|
|
1101
1158
|
|
|
1159
|
+
/**
|
|
1160
|
+
* Lists the domain appraisals bought by the buyer.
|
|
1161
|
+
* List domain appraisal requests
|
|
1162
|
+
*/
|
|
1163
|
+
async getBuyerDomainAppraisalRequestsRaw(requestParameters: BuyersApiGetBuyerDomainAppraisalRequestsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetBuyerDomainAppraisalRequests200Response>> {
|
|
1164
|
+
const queryParameters: any = {};
|
|
1165
|
+
|
|
1166
|
+
if (requestParameters['filter'] != null) {
|
|
1167
|
+
queryParameters['filter'] = requestParameters['filter'];
|
|
1168
|
+
}
|
|
1169
|
+
|
|
1170
|
+
if (requestParameters['page'] != null) {
|
|
1171
|
+
queryParameters['page'] = requestParameters['page'];
|
|
1172
|
+
}
|
|
1173
|
+
|
|
1174
|
+
if (requestParameters['limit'] != null) {
|
|
1175
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
1176
|
+
}
|
|
1177
|
+
|
|
1178
|
+
if (requestParameters['sortBy'] != null) {
|
|
1179
|
+
queryParameters['sortBy'] = requestParameters['sortBy'];
|
|
1180
|
+
}
|
|
1181
|
+
|
|
1182
|
+
if (requestParameters['filterStatus'] != null) {
|
|
1183
|
+
queryParameters['filter[status]'] = requestParameters['filterStatus'];
|
|
1184
|
+
}
|
|
1185
|
+
|
|
1186
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1187
|
+
|
|
1188
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1189
|
+
const token = this.configuration.accessToken;
|
|
1190
|
+
const tokenString = await token("bearer", []);
|
|
1191
|
+
|
|
1192
|
+
if (tokenString) {
|
|
1193
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1194
|
+
}
|
|
1195
|
+
}
|
|
1196
|
+
const response = await this.request({
|
|
1197
|
+
path: `/buyers/private/domain-appraisal-requests`,
|
|
1198
|
+
method: 'GET',
|
|
1199
|
+
headers: headerParameters,
|
|
1200
|
+
query: queryParameters,
|
|
1201
|
+
}, initOverrides);
|
|
1202
|
+
|
|
1203
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetBuyerDomainAppraisalRequests200ResponseFromJSON(jsonValue));
|
|
1204
|
+
}
|
|
1205
|
+
|
|
1206
|
+
/**
|
|
1207
|
+
* Lists the domain appraisals bought by the buyer.
|
|
1208
|
+
* List domain appraisal requests
|
|
1209
|
+
*/
|
|
1210
|
+
async getBuyerDomainAppraisalRequests(requestParameters: BuyersApiGetBuyerDomainAppraisalRequestsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetBuyerDomainAppraisalRequests200Response> {
|
|
1211
|
+
const response = await this.getBuyerDomainAppraisalRequestsRaw(requestParameters, initOverrides);
|
|
1212
|
+
return await response.value();
|
|
1213
|
+
}
|
|
1214
|
+
|
|
1102
1215
|
/**
|
|
1103
1216
|
* Lists invoices for the buyer.
|
|
1104
1217
|
* List buyer invoices
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* 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.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import * as runtime from '../runtime';
|
|
17
|
+
import type {
|
|
18
|
+
BadRequestException,
|
|
19
|
+
GetBuyerDomainAppraisalRequests200Response,
|
|
20
|
+
NotFoundException,
|
|
21
|
+
ValidationException,
|
|
22
|
+
} from '../models/index';
|
|
23
|
+
import {
|
|
24
|
+
BadRequestExceptionFromJSON,
|
|
25
|
+
BadRequestExceptionToJSON,
|
|
26
|
+
GetBuyerDomainAppraisalRequests200ResponseFromJSON,
|
|
27
|
+
GetBuyerDomainAppraisalRequests200ResponseToJSON,
|
|
28
|
+
NotFoundExceptionFromJSON,
|
|
29
|
+
NotFoundExceptionToJSON,
|
|
30
|
+
ValidationExceptionFromJSON,
|
|
31
|
+
ValidationExceptionToJSON,
|
|
32
|
+
} from '../models/index';
|
|
33
|
+
|
|
34
|
+
export interface DomainAppraisalRequestsApiCancelSellerDomainAppraisalRequestRequest {
|
|
35
|
+
domainAppraisalRequestId: string;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export interface DomainAppraisalRequestsApiGetSellerDomainAppraisalRequestsRequest {
|
|
39
|
+
filter?: { [key: string]: string; };
|
|
40
|
+
page?: number;
|
|
41
|
+
limit?: number;
|
|
42
|
+
sortBy?: Array<string>;
|
|
43
|
+
filterStatus?: string;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
*/
|
|
49
|
+
export class DomainAppraisalRequestsApi extends runtime.BaseAPI {
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* 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.
|
|
53
|
+
* Cancel domain appraisal request
|
|
54
|
+
*/
|
|
55
|
+
async cancelSellerDomainAppraisalRequestRaw(requestParameters: DomainAppraisalRequestsApiCancelSellerDomainAppraisalRequestRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
56
|
+
if (requestParameters['domainAppraisalRequestId'] == null) {
|
|
57
|
+
throw new runtime.RequiredError(
|
|
58
|
+
'domainAppraisalRequestId',
|
|
59
|
+
'Required parameter "domainAppraisalRequestId" was null or undefined when calling cancelSellerDomainAppraisalRequest().'
|
|
60
|
+
);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
const queryParameters: any = {};
|
|
64
|
+
|
|
65
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
66
|
+
|
|
67
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
68
|
+
headerParameters["apikey"] = await this.configuration.apiKey("apikey"); // api_key authentication
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
72
|
+
const token = this.configuration.accessToken;
|
|
73
|
+
const tokenString = await token("bearer", []);
|
|
74
|
+
|
|
75
|
+
if (tokenString) {
|
|
76
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
const response = await this.request({
|
|
80
|
+
path: `/private/domain-appraisal-requests/{domainAppraisalRequestId}/cancel`.replace(`{${"domainAppraisalRequestId"}}`, encodeURIComponent(String(requestParameters['domainAppraisalRequestId']))),
|
|
81
|
+
method: 'POST',
|
|
82
|
+
headers: headerParameters,
|
|
83
|
+
query: queryParameters,
|
|
84
|
+
}, initOverrides);
|
|
85
|
+
|
|
86
|
+
return new runtime.VoidApiResponse(response);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* 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.
|
|
91
|
+
* Cancel domain appraisal request
|
|
92
|
+
*/
|
|
93
|
+
async cancelSellerDomainAppraisalRequest(requestParameters: DomainAppraisalRequestsApiCancelSellerDomainAppraisalRequestRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
94
|
+
await this.cancelSellerDomainAppraisalRequestRaw(requestParameters, initOverrides);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* 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.
|
|
99
|
+
* List domain appraisal requests
|
|
100
|
+
*/
|
|
101
|
+
async getSellerDomainAppraisalRequestsRaw(requestParameters: DomainAppraisalRequestsApiGetSellerDomainAppraisalRequestsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetBuyerDomainAppraisalRequests200Response>> {
|
|
102
|
+
const queryParameters: any = {};
|
|
103
|
+
|
|
104
|
+
if (requestParameters['filter'] != null) {
|
|
105
|
+
queryParameters['filter'] = requestParameters['filter'];
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
if (requestParameters['page'] != null) {
|
|
109
|
+
queryParameters['page'] = requestParameters['page'];
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
if (requestParameters['limit'] != null) {
|
|
113
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
if (requestParameters['sortBy'] != null) {
|
|
117
|
+
queryParameters['sortBy'] = requestParameters['sortBy'];
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
if (requestParameters['filterStatus'] != null) {
|
|
121
|
+
queryParameters['filter[status]'] = requestParameters['filterStatus'];
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
125
|
+
|
|
126
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
127
|
+
headerParameters["apikey"] = await this.configuration.apiKey("apikey"); // api_key authentication
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
131
|
+
const token = this.configuration.accessToken;
|
|
132
|
+
const tokenString = await token("bearer", []);
|
|
133
|
+
|
|
134
|
+
if (tokenString) {
|
|
135
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
const response = await this.request({
|
|
139
|
+
path: `/private/domain-appraisal-requests`,
|
|
140
|
+
method: 'GET',
|
|
141
|
+
headers: headerParameters,
|
|
142
|
+
query: queryParameters,
|
|
143
|
+
}, initOverrides);
|
|
144
|
+
|
|
145
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetBuyerDomainAppraisalRequests200ResponseFromJSON(jsonValue));
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* 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.
|
|
150
|
+
* List domain appraisal requests
|
|
151
|
+
*/
|
|
152
|
+
async getSellerDomainAppraisalRequests(requestParameters: DomainAppraisalRequestsApiGetSellerDomainAppraisalRequestsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetBuyerDomainAppraisalRequests200Response> {
|
|
153
|
+
const response = await this.getSellerDomainAppraisalRequestsRaw(requestParameters, initOverrides);
|
|
154
|
+
return await response.value();
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
}
|