@randock/nameshift-api-client 0.0.487 → 0.0.488
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 +10 -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/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 +1 -0
- package/dist/models/FeatureFlagListItemDto.js +2 -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 +1 -0
- package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.js +2 -1
- package/dist/models/InvoiceDto.d.ts +2 -2
- package/dist/models/PrivateAccountGetMeResponse.d.ts +1 -0
- package/dist/models/PrivateAccountGetMeResponse.js +2 -1
- package/dist/models/index.d.ts +8 -0
- package/dist/models/index.js +8 -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/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 +2 -1
- package/src/models/GetAdminDomainAppraisalRequests200Response.ts +106 -0
- package/src/models/GetBuyerDomainAppraisalRequests200Response.ts +106 -0
- package/src/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.ts +2 -1
- package/src/models/InvoiceDto.ts +2 -2
- package/src/models/PrivateAccountGetMeResponse.ts +2 -1
- package/src/models/index.ts +8 -0
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
|
+
}
|
|
@@ -0,0 +1,271 @@
|
|
|
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
|
+
BuyerDomainAppraisalRequestCheckoutDto,
|
|
19
|
+
CreateBuyerDomainAppraisalRequestInput,
|
|
20
|
+
CreateManualTransactionInput,
|
|
21
|
+
NotFoundException,
|
|
22
|
+
ObjectId,
|
|
23
|
+
UpdateOrderInput,
|
|
24
|
+
ValidationException,
|
|
25
|
+
} from '../models/index';
|
|
26
|
+
import {
|
|
27
|
+
BuyerDomainAppraisalRequestCheckoutDtoFromJSON,
|
|
28
|
+
BuyerDomainAppraisalRequestCheckoutDtoToJSON,
|
|
29
|
+
CreateBuyerDomainAppraisalRequestInputFromJSON,
|
|
30
|
+
CreateBuyerDomainAppraisalRequestInputToJSON,
|
|
31
|
+
CreateManualTransactionInputFromJSON,
|
|
32
|
+
CreateManualTransactionInputToJSON,
|
|
33
|
+
NotFoundExceptionFromJSON,
|
|
34
|
+
NotFoundExceptionToJSON,
|
|
35
|
+
ObjectIdFromJSON,
|
|
36
|
+
ObjectIdToJSON,
|
|
37
|
+
UpdateOrderInputFromJSON,
|
|
38
|
+
UpdateOrderInputToJSON,
|
|
39
|
+
ValidationExceptionFromJSON,
|
|
40
|
+
ValidationExceptionToJSON,
|
|
41
|
+
} from '../models/index';
|
|
42
|
+
|
|
43
|
+
export interface DomainAppraisalRequestsPublicApiCreateBuyerDomainAppraisalRequestRequest {
|
|
44
|
+
createBuyerDomainAppraisalRequestInput: CreateBuyerDomainAppraisalRequestInput;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export interface DomainAppraisalRequestsPublicApiCreateDomainAppraisalRequestManualTransactionRequest {
|
|
48
|
+
domainAppraisalRequestId: string;
|
|
49
|
+
createManualTransactionInput: CreateManualTransactionInput;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export interface DomainAppraisalRequestsPublicApiDownloadDomainAppraisalRequestProformaInvoiceRequest {
|
|
53
|
+
domainAppraisalRequestId: string;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export interface DomainAppraisalRequestsPublicApiGetBuyerDomainAppraisalRequestRequest {
|
|
57
|
+
domainAppraisalRequestId: string;
|
|
58
|
+
includePaymentMethods?: boolean;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export interface DomainAppraisalRequestsPublicApiUpdateBuyerDomainAppraisalRequestRequest {
|
|
62
|
+
domainAppraisalRequestId: string;
|
|
63
|
+
updateOrderInput: UpdateOrderInput;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
*/
|
|
69
|
+
export class DomainAppraisalRequestsPublicApi extends runtime.BaseAPI {
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Creates the domain appraisal request of a domain for a buyer, with its draft invoice.
|
|
73
|
+
* Create domain appraisal request
|
|
74
|
+
*/
|
|
75
|
+
async createBuyerDomainAppraisalRequestRaw(requestParameters: DomainAppraisalRequestsPublicApiCreateBuyerDomainAppraisalRequestRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ObjectId>> {
|
|
76
|
+
if (requestParameters['createBuyerDomainAppraisalRequestInput'] == null) {
|
|
77
|
+
throw new runtime.RequiredError(
|
|
78
|
+
'createBuyerDomainAppraisalRequestInput',
|
|
79
|
+
'Required parameter "createBuyerDomainAppraisalRequestInput" was null or undefined when calling createBuyerDomainAppraisalRequest().'
|
|
80
|
+
);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
const queryParameters: any = {};
|
|
84
|
+
|
|
85
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
86
|
+
|
|
87
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
88
|
+
|
|
89
|
+
const response = await this.request({
|
|
90
|
+
path: `/domain-appraisal-requests`,
|
|
91
|
+
method: 'POST',
|
|
92
|
+
headers: headerParameters,
|
|
93
|
+
query: queryParameters,
|
|
94
|
+
body: CreateBuyerDomainAppraisalRequestInputToJSON(requestParameters['createBuyerDomainAppraisalRequestInput']),
|
|
95
|
+
}, initOverrides);
|
|
96
|
+
|
|
97
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ObjectIdFromJSON(jsonValue));
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* Creates the domain appraisal request of a domain for a buyer, with its draft invoice.
|
|
102
|
+
* Create domain appraisal request
|
|
103
|
+
*/
|
|
104
|
+
async createBuyerDomainAppraisalRequest(requestParameters: DomainAppraisalRequestsPublicApiCreateBuyerDomainAppraisalRequestRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ObjectId> {
|
|
105
|
+
const response = await this.createBuyerDomainAppraisalRequestRaw(requestParameters, initOverrides);
|
|
106
|
+
return await response.value();
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* Starts the payment of the invoice of an unpaid buyer domain appraisal request.
|
|
111
|
+
* Create a new manual transaction for domain appraisal request invoice
|
|
112
|
+
*/
|
|
113
|
+
async createDomainAppraisalRequestManualTransactionRaw(requestParameters: DomainAppraisalRequestsPublicApiCreateDomainAppraisalRequestManualTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
114
|
+
if (requestParameters['domainAppraisalRequestId'] == null) {
|
|
115
|
+
throw new runtime.RequiredError(
|
|
116
|
+
'domainAppraisalRequestId',
|
|
117
|
+
'Required parameter "domainAppraisalRequestId" was null or undefined when calling createDomainAppraisalRequestManualTransaction().'
|
|
118
|
+
);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
if (requestParameters['createManualTransactionInput'] == null) {
|
|
122
|
+
throw new runtime.RequiredError(
|
|
123
|
+
'createManualTransactionInput',
|
|
124
|
+
'Required parameter "createManualTransactionInput" was null or undefined when calling createDomainAppraisalRequestManualTransaction().'
|
|
125
|
+
);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
const queryParameters: any = {};
|
|
129
|
+
|
|
130
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
131
|
+
|
|
132
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
133
|
+
|
|
134
|
+
const response = await this.request({
|
|
135
|
+
path: `/domain-appraisal-requests/{domainAppraisalRequestId}/invoice/transactions`.replace(`{${"domainAppraisalRequestId"}}`, encodeURIComponent(String(requestParameters['domainAppraisalRequestId']))),
|
|
136
|
+
method: 'POST',
|
|
137
|
+
headers: headerParameters,
|
|
138
|
+
query: queryParameters,
|
|
139
|
+
body: CreateManualTransactionInputToJSON(requestParameters['createManualTransactionInput']),
|
|
140
|
+
}, initOverrides);
|
|
141
|
+
|
|
142
|
+
return new runtime.VoidApiResponse(response);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* Starts the payment of the invoice of an unpaid buyer domain appraisal request.
|
|
147
|
+
* Create a new manual transaction for domain appraisal request invoice
|
|
148
|
+
*/
|
|
149
|
+
async createDomainAppraisalRequestManualTransaction(requestParameters: DomainAppraisalRequestsPublicApiCreateDomainAppraisalRequestManualTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
150
|
+
await this.createDomainAppraisalRequestManualTransactionRaw(requestParameters, initOverrides);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* Downloads the pro-forma invoice PDF of a buyer domain appraisal request before it is paid.
|
|
155
|
+
* Download domain appraisal request pro-forma invoice
|
|
156
|
+
*/
|
|
157
|
+
async downloadDomainAppraisalRequestProformaInvoiceRaw(requestParameters: DomainAppraisalRequestsPublicApiDownloadDomainAppraisalRequestProformaInvoiceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>> {
|
|
158
|
+
if (requestParameters['domainAppraisalRequestId'] == null) {
|
|
159
|
+
throw new runtime.RequiredError(
|
|
160
|
+
'domainAppraisalRequestId',
|
|
161
|
+
'Required parameter "domainAppraisalRequestId" was null or undefined when calling downloadDomainAppraisalRequestProformaInvoice().'
|
|
162
|
+
);
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
const queryParameters: any = {};
|
|
166
|
+
|
|
167
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
168
|
+
|
|
169
|
+
const response = await this.request({
|
|
170
|
+
path: `/domain-appraisal-requests/{domainAppraisalRequestId}/proforma/download`.replace(`{${"domainAppraisalRequestId"}}`, encodeURIComponent(String(requestParameters['domainAppraisalRequestId']))),
|
|
171
|
+
method: 'GET',
|
|
172
|
+
headers: headerParameters,
|
|
173
|
+
query: queryParameters,
|
|
174
|
+
}, initOverrides);
|
|
175
|
+
|
|
176
|
+
return new runtime.BlobApiResponse(response);
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* Downloads the pro-forma invoice PDF of a buyer domain appraisal request before it is paid.
|
|
181
|
+
* Download domain appraisal request pro-forma invoice
|
|
182
|
+
*/
|
|
183
|
+
async downloadDomainAppraisalRequestProformaInvoice(requestParameters: DomainAppraisalRequestsPublicApiDownloadDomainAppraisalRequestProformaInvoiceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob> {
|
|
184
|
+
const response = await this.downloadDomainAppraisalRequestProformaInvoiceRaw(requestParameters, initOverrides);
|
|
185
|
+
return await response.value();
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* Returns a buyer domain appraisal request with its invoice and payment state.
|
|
190
|
+
* Get domain appraisal request
|
|
191
|
+
*/
|
|
192
|
+
async getBuyerDomainAppraisalRequestRaw(requestParameters: DomainAppraisalRequestsPublicApiGetBuyerDomainAppraisalRequestRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BuyerDomainAppraisalRequestCheckoutDto>> {
|
|
193
|
+
if (requestParameters['domainAppraisalRequestId'] == null) {
|
|
194
|
+
throw new runtime.RequiredError(
|
|
195
|
+
'domainAppraisalRequestId',
|
|
196
|
+
'Required parameter "domainAppraisalRequestId" was null or undefined when calling getBuyerDomainAppraisalRequest().'
|
|
197
|
+
);
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
const queryParameters: any = {};
|
|
201
|
+
|
|
202
|
+
if (requestParameters['includePaymentMethods'] != null) {
|
|
203
|
+
queryParameters['includePaymentMethods'] = requestParameters['includePaymentMethods'];
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
207
|
+
|
|
208
|
+
const response = await this.request({
|
|
209
|
+
path: `/domain-appraisal-requests/{domainAppraisalRequestId}`.replace(`{${"domainAppraisalRequestId"}}`, encodeURIComponent(String(requestParameters['domainAppraisalRequestId']))),
|
|
210
|
+
method: 'GET',
|
|
211
|
+
headers: headerParameters,
|
|
212
|
+
query: queryParameters,
|
|
213
|
+
}, initOverrides);
|
|
214
|
+
|
|
215
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => BuyerDomainAppraisalRequestCheckoutDtoFromJSON(jsonValue));
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
/**
|
|
219
|
+
* Returns a buyer domain appraisal request with its invoice and payment state.
|
|
220
|
+
* Get domain appraisal request
|
|
221
|
+
*/
|
|
222
|
+
async getBuyerDomainAppraisalRequest(requestParameters: DomainAppraisalRequestsPublicApiGetBuyerDomainAppraisalRequestRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BuyerDomainAppraisalRequestCheckoutDto> {
|
|
223
|
+
const response = await this.getBuyerDomainAppraisalRequestRaw(requestParameters, initOverrides);
|
|
224
|
+
return await response.value();
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* Updates the buyer and billing information of an domain appraisal request that is still unpaid.
|
|
229
|
+
* Update domain appraisal request
|
|
230
|
+
*/
|
|
231
|
+
async updateBuyerDomainAppraisalRequestRaw(requestParameters: DomainAppraisalRequestsPublicApiUpdateBuyerDomainAppraisalRequestRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
232
|
+
if (requestParameters['domainAppraisalRequestId'] == null) {
|
|
233
|
+
throw new runtime.RequiredError(
|
|
234
|
+
'domainAppraisalRequestId',
|
|
235
|
+
'Required parameter "domainAppraisalRequestId" was null or undefined when calling updateBuyerDomainAppraisalRequest().'
|
|
236
|
+
);
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
if (requestParameters['updateOrderInput'] == null) {
|
|
240
|
+
throw new runtime.RequiredError(
|
|
241
|
+
'updateOrderInput',
|
|
242
|
+
'Required parameter "updateOrderInput" was null or undefined when calling updateBuyerDomainAppraisalRequest().'
|
|
243
|
+
);
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
const queryParameters: any = {};
|
|
247
|
+
|
|
248
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
249
|
+
|
|
250
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
251
|
+
|
|
252
|
+
const response = await this.request({
|
|
253
|
+
path: `/domain-appraisal-requests/{domainAppraisalRequestId}`.replace(`{${"domainAppraisalRequestId"}}`, encodeURIComponent(String(requestParameters['domainAppraisalRequestId']))),
|
|
254
|
+
method: 'PATCH',
|
|
255
|
+
headers: headerParameters,
|
|
256
|
+
query: queryParameters,
|
|
257
|
+
body: UpdateOrderInputToJSON(requestParameters['updateOrderInput']),
|
|
258
|
+
}, initOverrides);
|
|
259
|
+
|
|
260
|
+
return new runtime.VoidApiResponse(response);
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
/**
|
|
264
|
+
* Updates the buyer and billing information of an domain appraisal request that is still unpaid.
|
|
265
|
+
* Update domain appraisal request
|
|
266
|
+
*/
|
|
267
|
+
async updateBuyerDomainAppraisalRequest(requestParameters: DomainAppraisalRequestsPublicApiUpdateBuyerDomainAppraisalRequestRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
268
|
+
await this.updateBuyerDomainAppraisalRequestRaw(requestParameters, initOverrides);
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
}
|
package/src/apis/index.ts
CHANGED
|
@@ -12,6 +12,8 @@ export * from './BuyersApi';
|
|
|
12
12
|
export * from './BuyersPublicApi';
|
|
13
13
|
export * from './ChallengesApi';
|
|
14
14
|
export * from './CustomerSuccessApi';
|
|
15
|
+
export * from './DomainAppraisalRequestsApi';
|
|
16
|
+
export * from './DomainAppraisalRequestsPublicApi';
|
|
15
17
|
export * from './DomainTransfersApi';
|
|
16
18
|
export * from './DomainsApi';
|
|
17
19
|
export * from './DomainsPublicApi';
|