@randock/nameshift-api-client 0.0.486 → 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 +38 -3
- package/dist/apis/AdminApi.js +132 -2
- 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/AccountAliasDto.d.ts +18 -3
- package/dist/models/AccountAliasDto.js +13 -0
- package/dist/models/AccountSettingsAliasDto.d.ts +18 -3
- package/dist/models/AccountSettingsAliasDto.js +13 -0
- package/dist/models/AdminDomainAppraisalRequestListItemDto.d.ts +118 -0
- package/dist/models/AdminDomainAppraisalRequestListItemDto.js +109 -0
- package/dist/models/AdminListAccountDto.d.ts +16 -1
- package/dist/models/AdminListAccountDto.js +13 -1
- 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/BuyerNotificationDto.d.ts +1 -0
- package/dist/models/BuyerNotificationDto.js +1 -0
- package/dist/models/BuyerNotificationListItemDto.d.ts +1 -0
- package/dist/models/BuyerNotificationListItemDto.js +1 -0
- 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/CustomerSuccessListAccountDto.d.ts +16 -1
- package/dist/models/CustomerSuccessListAccountDto.js +13 -1
- 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/UserNotificationDto.d.ts +1 -0
- package/dist/models/UserNotificationDto.js +1 -0
- package/dist/models/UserNotificationListItemDto.d.ts +1 -0
- package/dist/models/UserNotificationListItemDto.js +1 -0
- 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 +130 -2
- 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/AccountAliasDto.ts +24 -3
- package/src/models/AccountSettingsAliasDto.ts +24 -3
- package/src/models/AdminDomainAppraisalRequestListItemDto.ts +209 -0
- package/src/models/AdminListAccountDto.ts +20 -1
- package/src/models/BuyerDomainAppraisalRequestCheckoutDto.ts +411 -0
- package/src/models/BuyerInvoiceDto.ts +2 -2
- package/src/models/BuyerNotificationDto.ts +1 -0
- package/src/models/BuyerNotificationListItemDto.ts +1 -0
- package/src/models/BuyerSessionDto.ts +9 -0
- package/src/models/CreateAccountPaymentInput.ts +2 -1
- package/src/models/CreateBuyerDomainAppraisalRequestInput.ts +84 -0
- package/src/models/CustomerSuccessListAccountDto.ts +20 -1
- 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/UserNotificationDto.ts +1 -0
- package/src/models/UserNotificationListItemDto.ts +1 -0
- package/src/models/index.ts +8 -0
|
@@ -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';
|
|
@@ -20,25 +20,44 @@ import { mapValues } from '../runtime';
|
|
|
20
20
|
*/
|
|
21
21
|
export interface AccountAliasDto {
|
|
22
22
|
/**
|
|
23
|
-
* Account alias string.
|
|
23
|
+
* Account alias string; null when no alias is set.
|
|
24
24
|
* @type {string}
|
|
25
25
|
* @memberof AccountAliasDto
|
|
26
26
|
*/
|
|
27
|
-
alias: string;
|
|
27
|
+
alias: string | null;
|
|
28
28
|
/**
|
|
29
|
-
* Whether the alias has been verified.
|
|
29
|
+
* Deprecated, use status. Whether the alias has been verified.
|
|
30
30
|
* @type {boolean}
|
|
31
31
|
* @memberof AccountAliasDto
|
|
32
32
|
*/
|
|
33
33
|
verified: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Review status of the alias: pending review, verified (shown on the landing pages) or rejected by an admin. Null when no alias is set.
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof AccountAliasDto
|
|
38
|
+
*/
|
|
39
|
+
status: AccountAliasDtoStatusEnum | null;
|
|
34
40
|
}
|
|
35
41
|
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* @export
|
|
45
|
+
*/
|
|
46
|
+
export const AccountAliasDtoStatusEnum = {
|
|
47
|
+
PENDING: 'pending',
|
|
48
|
+
VERIFIED: 'verified',
|
|
49
|
+
REJECTED: 'rejected'
|
|
50
|
+
} as const;
|
|
51
|
+
export type AccountAliasDtoStatusEnum = typeof AccountAliasDtoStatusEnum[keyof typeof AccountAliasDtoStatusEnum];
|
|
52
|
+
|
|
53
|
+
|
|
36
54
|
/**
|
|
37
55
|
* Check if a given object implements the AccountAliasDto interface.
|
|
38
56
|
*/
|
|
39
57
|
export function instanceOfAccountAliasDto(value: object): value is AccountAliasDto {
|
|
40
58
|
if (!('alias' in value) || value['alias'] === undefined) return false;
|
|
41
59
|
if (!('verified' in value) || value['verified'] === undefined) return false;
|
|
60
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
42
61
|
return true;
|
|
43
62
|
}
|
|
44
63
|
|
|
@@ -54,6 +73,7 @@ export function AccountAliasDtoFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
54
73
|
|
|
55
74
|
'alias': json['alias'],
|
|
56
75
|
'verified': json['verified'],
|
|
76
|
+
'status': json['status'],
|
|
57
77
|
};
|
|
58
78
|
}
|
|
59
79
|
|
|
@@ -70,6 +90,7 @@ export function AccountAliasDtoToJSONTyped(value?: AccountAliasDto | null, ignor
|
|
|
70
90
|
|
|
71
91
|
'alias': value['alias'],
|
|
72
92
|
'verified': value['verified'],
|
|
93
|
+
'status': value['status'],
|
|
73
94
|
};
|
|
74
95
|
}
|
|
75
96
|
|
|
@@ -20,25 +20,44 @@ import { mapValues } from '../runtime';
|
|
|
20
20
|
*/
|
|
21
21
|
export interface AccountSettingsAliasDto {
|
|
22
22
|
/**
|
|
23
|
-
* Account alias string.
|
|
23
|
+
* Account alias string; null when no alias is set.
|
|
24
24
|
* @type {string}
|
|
25
25
|
* @memberof AccountSettingsAliasDto
|
|
26
26
|
*/
|
|
27
|
-
alias: string;
|
|
27
|
+
alias: string | null;
|
|
28
28
|
/**
|
|
29
|
-
* Whether the alias has been verified.
|
|
29
|
+
* Deprecated, use status. Whether the alias has been verified.
|
|
30
30
|
* @type {boolean}
|
|
31
31
|
* @memberof AccountSettingsAliasDto
|
|
32
32
|
*/
|
|
33
33
|
verified: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Review status of the alias: pending review, verified (shown on the landing pages) or rejected by an admin. Null when no alias is set.
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof AccountSettingsAliasDto
|
|
38
|
+
*/
|
|
39
|
+
status: AccountSettingsAliasDtoStatusEnum | null;
|
|
34
40
|
}
|
|
35
41
|
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* @export
|
|
45
|
+
*/
|
|
46
|
+
export const AccountSettingsAliasDtoStatusEnum = {
|
|
47
|
+
PENDING: 'pending',
|
|
48
|
+
VERIFIED: 'verified',
|
|
49
|
+
REJECTED: 'rejected'
|
|
50
|
+
} as const;
|
|
51
|
+
export type AccountSettingsAliasDtoStatusEnum = typeof AccountSettingsAliasDtoStatusEnum[keyof typeof AccountSettingsAliasDtoStatusEnum];
|
|
52
|
+
|
|
53
|
+
|
|
36
54
|
/**
|
|
37
55
|
* Check if a given object implements the AccountSettingsAliasDto interface.
|
|
38
56
|
*/
|
|
39
57
|
export function instanceOfAccountSettingsAliasDto(value: object): value is AccountSettingsAliasDto {
|
|
40
58
|
if (!('alias' in value) || value['alias'] === undefined) return false;
|
|
41
59
|
if (!('verified' in value) || value['verified'] === undefined) return false;
|
|
60
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
42
61
|
return true;
|
|
43
62
|
}
|
|
44
63
|
|
|
@@ -54,6 +73,7 @@ export function AccountSettingsAliasDtoFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
54
73
|
|
|
55
74
|
'alias': json['alias'],
|
|
56
75
|
'verified': json['verified'],
|
|
76
|
+
'status': json['status'],
|
|
57
77
|
};
|
|
58
78
|
}
|
|
59
79
|
|
|
@@ -70,6 +90,7 @@ export function AccountSettingsAliasDtoToJSONTyped(value?: AccountSettingsAliasD
|
|
|
70
90
|
|
|
71
91
|
'alias': value['alias'],
|
|
72
92
|
'verified': value['verified'],
|
|
93
|
+
'status': value['status'],
|
|
73
94
|
};
|
|
74
95
|
}
|
|
75
96
|
|