@randock/nameshift-api-client 0.0.88 → 0.0.89
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 +6 -10
- package/README.md +3 -3
- package/dist/apis/BuyersApi.d.ts +50 -1
- package/dist/apis/BuyersApi.js +230 -0
- package/dist/apis/LeadsApi.d.ts +13 -1
- package/dist/apis/LeadsApi.js +56 -0
- package/dist/models/BatchReadBuyerLeadMessageInput.d.ts +31 -0
- package/dist/models/BatchReadBuyerLeadMessageInput.js +46 -0
- package/dist/models/BatchReadSellerLeadMessageInput.d.ts +31 -0
- package/dist/models/BatchReadSellerLeadMessageInput.js +46 -0
- package/dist/models/BuyerLeadListItemDomainDto.d.ts +43 -0
- package/dist/models/BuyerLeadListItemDomainDto.js +54 -0
- package/dist/models/BuyerLeadListItemDto.d.ts +84 -0
- package/dist/models/BuyerLeadListItemDto.js +88 -0
- package/dist/models/CreateBuyerLeadMessageInput.d.ts +31 -0
- package/dist/models/CreateBuyerLeadMessageInput.js +46 -0
- package/dist/models/DomainTransferDetailsDto.d.ts +4 -4
- package/dist/models/DomainTransferDetailsDto.js +3 -3
- package/dist/models/DomainTransferDto.d.ts +4 -4
- package/dist/models/DomainTransferDto.js +3 -3
- package/dist/models/GetBuyerLeads200Response.d.ts +46 -0
- package/dist/models/GetBuyerLeads200Response.js +57 -0
- package/dist/models/IntersectionDomainSalesInformationDtoWithDomainStatsDto.d.ts +7 -8
- package/dist/models/IntersectionDomainSalesInformationDtoWithDomainStatsDto.js +5 -6
- package/dist/models/IntersectionLeadDtoWithLeadDetailsDto.d.ts +3 -3
- package/dist/models/IntersectionLeadDtoWithLeadDetailsDto.js +3 -3
- package/dist/models/IntersectionLeadDtoWithListFieldsDto.d.ts +7 -7
- package/dist/models/IntersectionLeadDtoWithListFieldsDto.js +6 -6
- package/dist/models/LeadMessageDto.d.ts +22 -10
- package/dist/models/LeadMessageDto.js +14 -6
- package/dist/models/OrderListItemDto.d.ts +4 -4
- package/dist/models/OrderListItemDto.js +3 -3
- package/dist/models/PublicLeadDto.d.ts +4 -4
- package/dist/models/PublicLeadDto.js +3 -3
- package/dist/models/SellerDomainTransferDto.d.ts +4 -4
- package/dist/models/SellerDomainTransferDto.js +3 -3
- package/dist/models/index.d.ts +6 -10
- package/dist/models/index.js +6 -10
- package/package.json +1 -1
- package/src/apis/BuyersApi.ts +228 -0
- package/src/apis/LeadsApi.ts +58 -0
- package/src/models/BatchReadBuyerLeadMessageInput.ts +61 -0
- package/src/models/BatchReadSellerLeadMessageInput.ts +61 -0
- package/src/models/BuyerLeadListItemDomainDto.ts +79 -0
- package/src/models/BuyerLeadListItemDto.ts +144 -0
- package/src/models/CreateBuyerLeadMessageInput.ts +61 -0
- package/src/models/DomainTransferDetailsDto.ts +11 -11
- package/src/models/DomainTransferDto.ts +10 -10
- package/src/models/GetBuyerLeads200Response.ts +98 -0
- package/src/models/IntersectionDomainSalesInformationDtoWithDomainStatsDto.ts +15 -21
- package/src/models/IntersectionLeadDtoWithLeadDetailsDto.ts +9 -9
- package/src/models/IntersectionLeadDtoWithListFieldsDto.ts +19 -19
- package/src/models/LeadMessageDto.ts +37 -19
- package/src/models/OrderListItemDto.ts +11 -11
- package/src/models/PublicLeadDto.ts +10 -10
- package/src/models/SellerDomainTransferDto.ts +10 -10
- package/src/models/index.ts +6 -10
- package/dist/models/DomainTransferDetailsDtoAuthCode.d.ts +0 -37
- package/dist/models/DomainTransferDetailsDtoAuthCode.js +0 -50
- package/dist/models/DomainTransferDtoAgent.d.ts +0 -37
- package/dist/models/DomainTransferDtoAgent.js +0 -50
- package/dist/models/IntersectionDomainSalesInformationDtoWithDomainStatsDtoBuyNowPrice.d.ts +0 -37
- package/dist/models/IntersectionDomainSalesInformationDtoWithDomainStatsDtoBuyNowPrice.js +0 -50
- package/dist/models/IntersectionDomainSalesInformationDtoWithDomainStatsDtoMinOfferPrice.d.ts +0 -37
- package/dist/models/IntersectionDomainSalesInformationDtoWithDomainStatsDtoMinOfferPrice.js +0 -50
- package/dist/models/IntersectionLeadDtoWithListFieldsDtoLastMessageData.d.ts +0 -32
- package/dist/models/IntersectionLeadDtoWithListFieldsDtoLastMessageData.js +0 -47
- package/dist/models/IntersectionLeadDtoWithListFieldsDtoLastOffer.d.ts +0 -37
- package/dist/models/IntersectionLeadDtoWithListFieldsDtoLastOffer.js +0 -50
- package/dist/models/LeadMessageDtoData.d.ts +0 -32
- package/dist/models/LeadMessageDtoData.js +0 -47
- package/dist/models/OrderListItemDtoBasePrice.d.ts +0 -37
- package/dist/models/OrderListItemDtoBasePrice.js +0 -50
- package/dist/models/PublicLeadDtoLastOffer.d.ts +0 -37
- package/dist/models/PublicLeadDtoLastOffer.js +0 -50
- package/dist/models/SellerDomainTransferDtoAuthCode.d.ts +0 -37
- package/dist/models/SellerDomainTransferDtoAuthCode.js +0 -50
- package/src/models/DomainTransferDetailsDtoAuthCode.ts +0 -70
- package/src/models/DomainTransferDtoAgent.ts +0 -70
- package/src/models/IntersectionDomainSalesInformationDtoWithDomainStatsDtoBuyNowPrice.ts +0 -70
- package/src/models/IntersectionDomainSalesInformationDtoWithDomainStatsDtoMinOfferPrice.ts +0 -70
- package/src/models/IntersectionLeadDtoWithListFieldsDtoLastMessageData.ts +0 -68
- package/src/models/IntersectionLeadDtoWithListFieldsDtoLastOffer.ts +0 -70
- package/src/models/LeadMessageDtoData.ts +0 -68
- package/src/models/OrderListItemDtoBasePrice.ts +0 -70
- package/src/models/PublicLeadDtoLastOffer.ts +0 -70
- package/src/models/SellerDomainTransferDtoAuthCode.ts +0 -70
package/src/apis/BuyersApi.ts
CHANGED
|
@@ -16,10 +16,15 @@
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
18
|
BadRequestException,
|
|
19
|
+
BatchReadBuyerLeadMessageInput,
|
|
19
20
|
BuyerDomainTransferAuthCodeDto,
|
|
20
21
|
BuyerUserDto,
|
|
22
|
+
CreateBuyerLeadMessageInput,
|
|
23
|
+
GetBuyerLeads200Response,
|
|
21
24
|
GetBuyerTransfers200Response,
|
|
25
|
+
LeadMessageDto,
|
|
22
26
|
NotFoundException,
|
|
27
|
+
ObjectId,
|
|
23
28
|
SetDomainTransferConfirmationInput,
|
|
24
29
|
StoreBuyerLocaleInput,
|
|
25
30
|
ThrottlerException,
|
|
@@ -28,14 +33,24 @@ import type {
|
|
|
28
33
|
import {
|
|
29
34
|
BadRequestExceptionFromJSON,
|
|
30
35
|
BadRequestExceptionToJSON,
|
|
36
|
+
BatchReadBuyerLeadMessageInputFromJSON,
|
|
37
|
+
BatchReadBuyerLeadMessageInputToJSON,
|
|
31
38
|
BuyerDomainTransferAuthCodeDtoFromJSON,
|
|
32
39
|
BuyerDomainTransferAuthCodeDtoToJSON,
|
|
33
40
|
BuyerUserDtoFromJSON,
|
|
34
41
|
BuyerUserDtoToJSON,
|
|
42
|
+
CreateBuyerLeadMessageInputFromJSON,
|
|
43
|
+
CreateBuyerLeadMessageInputToJSON,
|
|
44
|
+
GetBuyerLeads200ResponseFromJSON,
|
|
45
|
+
GetBuyerLeads200ResponseToJSON,
|
|
35
46
|
GetBuyerTransfers200ResponseFromJSON,
|
|
36
47
|
GetBuyerTransfers200ResponseToJSON,
|
|
48
|
+
LeadMessageDtoFromJSON,
|
|
49
|
+
LeadMessageDtoToJSON,
|
|
37
50
|
NotFoundExceptionFromJSON,
|
|
38
51
|
NotFoundExceptionToJSON,
|
|
52
|
+
ObjectIdFromJSON,
|
|
53
|
+
ObjectIdToJSON,
|
|
39
54
|
SetDomainTransferConfirmationInputFromJSON,
|
|
40
55
|
SetDomainTransferConfirmationInputToJSON,
|
|
41
56
|
StoreBuyerLocaleInputFromJSON,
|
|
@@ -46,6 +61,27 @@ import {
|
|
|
46
61
|
ValidationExceptionToJSON,
|
|
47
62
|
} from '../models/index';
|
|
48
63
|
|
|
64
|
+
export interface BuyersApiBulkReadBuyerLeadMessageRequest {
|
|
65
|
+
leadId: string;
|
|
66
|
+
batchReadBuyerLeadMessageInput: BatchReadBuyerLeadMessageInput;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export interface BuyersApiCreateBuyerLeadMessageRequest {
|
|
70
|
+
leadId: string;
|
|
71
|
+
createBuyerLeadMessageInput: CreateBuyerLeadMessageInput;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export interface BuyersApiGetBuyerLeadMessagesRequest {
|
|
75
|
+
leadId: string;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export interface BuyersApiGetBuyerLeadsRequest {
|
|
79
|
+
filter?: object;
|
|
80
|
+
page?: number;
|
|
81
|
+
limit?: number;
|
|
82
|
+
sortBy?: Array<string>;
|
|
83
|
+
}
|
|
84
|
+
|
|
49
85
|
export interface BuyersApiGetBuyerTransfersRequest {
|
|
50
86
|
filter?: object;
|
|
51
87
|
page?: number;
|
|
@@ -71,6 +107,56 @@ export interface BuyersApiSetLocaleRequest {
|
|
|
71
107
|
*/
|
|
72
108
|
export class BuyersApi extends runtime.BaseAPI {
|
|
73
109
|
|
|
110
|
+
/**
|
|
111
|
+
*
|
|
112
|
+
*/
|
|
113
|
+
async bulkReadBuyerLeadMessageRaw(requestParameters: BuyersApiBulkReadBuyerLeadMessageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
114
|
+
if (requestParameters['leadId'] == null) {
|
|
115
|
+
throw new runtime.RequiredError(
|
|
116
|
+
'leadId',
|
|
117
|
+
'Required parameter "leadId" was null or undefined when calling bulkReadBuyerLeadMessage().'
|
|
118
|
+
);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
if (requestParameters['batchReadBuyerLeadMessageInput'] == null) {
|
|
122
|
+
throw new runtime.RequiredError(
|
|
123
|
+
'batchReadBuyerLeadMessageInput',
|
|
124
|
+
'Required parameter "batchReadBuyerLeadMessageInput" was null or undefined when calling bulkReadBuyerLeadMessage().'
|
|
125
|
+
);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
const queryParameters: any = {};
|
|
129
|
+
|
|
130
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
131
|
+
|
|
132
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
133
|
+
|
|
134
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
135
|
+
const token = this.configuration.accessToken;
|
|
136
|
+
const tokenString = await token("bearer", []);
|
|
137
|
+
|
|
138
|
+
if (tokenString) {
|
|
139
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
const response = await this.request({
|
|
143
|
+
path: `/buyers/private/lead/{leadId}/messages/read`.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters['leadId']))),
|
|
144
|
+
method: 'POST',
|
|
145
|
+
headers: headerParameters,
|
|
146
|
+
query: queryParameters,
|
|
147
|
+
body: BatchReadBuyerLeadMessageInputToJSON(requestParameters['batchReadBuyerLeadMessageInput']),
|
|
148
|
+
}, initOverrides);
|
|
149
|
+
|
|
150
|
+
return new runtime.VoidApiResponse(response);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
*
|
|
155
|
+
*/
|
|
156
|
+
async bulkReadBuyerLeadMessage(requestParameters: BuyersApiBulkReadBuyerLeadMessageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
157
|
+
await this.bulkReadBuyerLeadMessageRaw(requestParameters, initOverrides);
|
|
158
|
+
}
|
|
159
|
+
|
|
74
160
|
/**
|
|
75
161
|
*
|
|
76
162
|
*/
|
|
@@ -105,6 +191,148 @@ export class BuyersApi extends runtime.BaseAPI {
|
|
|
105
191
|
return await response.value();
|
|
106
192
|
}
|
|
107
193
|
|
|
194
|
+
/**
|
|
195
|
+
*
|
|
196
|
+
*/
|
|
197
|
+
async createBuyerLeadMessageRaw(requestParameters: BuyersApiCreateBuyerLeadMessageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ObjectId>> {
|
|
198
|
+
if (requestParameters['leadId'] == null) {
|
|
199
|
+
throw new runtime.RequiredError(
|
|
200
|
+
'leadId',
|
|
201
|
+
'Required parameter "leadId" was null or undefined when calling createBuyerLeadMessage().'
|
|
202
|
+
);
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
if (requestParameters['createBuyerLeadMessageInput'] == null) {
|
|
206
|
+
throw new runtime.RequiredError(
|
|
207
|
+
'createBuyerLeadMessageInput',
|
|
208
|
+
'Required parameter "createBuyerLeadMessageInput" was null or undefined when calling createBuyerLeadMessage().'
|
|
209
|
+
);
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
const queryParameters: any = {};
|
|
213
|
+
|
|
214
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
215
|
+
|
|
216
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
217
|
+
|
|
218
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
219
|
+
const token = this.configuration.accessToken;
|
|
220
|
+
const tokenString = await token("bearer", []);
|
|
221
|
+
|
|
222
|
+
if (tokenString) {
|
|
223
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
const response = await this.request({
|
|
227
|
+
path: `/buyers/private/lead/{leadId}/messages`.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters['leadId']))),
|
|
228
|
+
method: 'POST',
|
|
229
|
+
headers: headerParameters,
|
|
230
|
+
query: queryParameters,
|
|
231
|
+
body: CreateBuyerLeadMessageInputToJSON(requestParameters['createBuyerLeadMessageInput']),
|
|
232
|
+
}, initOverrides);
|
|
233
|
+
|
|
234
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ObjectIdFromJSON(jsonValue));
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
/**
|
|
238
|
+
*
|
|
239
|
+
*/
|
|
240
|
+
async createBuyerLeadMessage(requestParameters: BuyersApiCreateBuyerLeadMessageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ObjectId> {
|
|
241
|
+
const response = await this.createBuyerLeadMessageRaw(requestParameters, initOverrides);
|
|
242
|
+
return await response.value();
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
/**
|
|
246
|
+
*
|
|
247
|
+
*/
|
|
248
|
+
async getBuyerLeadMessagesRaw(requestParameters: BuyersApiGetBuyerLeadMessagesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<LeadMessageDto>>> {
|
|
249
|
+
if (requestParameters['leadId'] == null) {
|
|
250
|
+
throw new runtime.RequiredError(
|
|
251
|
+
'leadId',
|
|
252
|
+
'Required parameter "leadId" was null or undefined when calling getBuyerLeadMessages().'
|
|
253
|
+
);
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
const queryParameters: any = {};
|
|
257
|
+
|
|
258
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
259
|
+
|
|
260
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
261
|
+
const token = this.configuration.accessToken;
|
|
262
|
+
const tokenString = await token("bearer", []);
|
|
263
|
+
|
|
264
|
+
if (tokenString) {
|
|
265
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
const response = await this.request({
|
|
269
|
+
path: `/buyers/private/lead/{leadId}/messages`.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters['leadId']))),
|
|
270
|
+
method: 'GET',
|
|
271
|
+
headers: headerParameters,
|
|
272
|
+
query: queryParameters,
|
|
273
|
+
}, initOverrides);
|
|
274
|
+
|
|
275
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(LeadMessageDtoFromJSON));
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
/**
|
|
279
|
+
*
|
|
280
|
+
*/
|
|
281
|
+
async getBuyerLeadMessages(requestParameters: BuyersApiGetBuyerLeadMessagesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<LeadMessageDto>> {
|
|
282
|
+
const response = await this.getBuyerLeadMessagesRaw(requestParameters, initOverrides);
|
|
283
|
+
return await response.value();
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
/**
|
|
287
|
+
*
|
|
288
|
+
*/
|
|
289
|
+
async getBuyerLeadsRaw(requestParameters: BuyersApiGetBuyerLeadsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetBuyerLeads200Response>> {
|
|
290
|
+
const queryParameters: any = {};
|
|
291
|
+
|
|
292
|
+
if (requestParameters['filter'] != null) {
|
|
293
|
+
queryParameters['filter'] = requestParameters['filter'];
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
if (requestParameters['page'] != null) {
|
|
297
|
+
queryParameters['page'] = requestParameters['page'];
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
if (requestParameters['limit'] != null) {
|
|
301
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
if (requestParameters['sortBy'] != null) {
|
|
305
|
+
queryParameters['sortBy'] = requestParameters['sortBy'];
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
309
|
+
|
|
310
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
311
|
+
const token = this.configuration.accessToken;
|
|
312
|
+
const tokenString = await token("bearer", []);
|
|
313
|
+
|
|
314
|
+
if (tokenString) {
|
|
315
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
const response = await this.request({
|
|
319
|
+
path: `/buyers/private/leads`,
|
|
320
|
+
method: 'GET',
|
|
321
|
+
headers: headerParameters,
|
|
322
|
+
query: queryParameters,
|
|
323
|
+
}, initOverrides);
|
|
324
|
+
|
|
325
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetBuyerLeads200ResponseFromJSON(jsonValue));
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
/**
|
|
329
|
+
*
|
|
330
|
+
*/
|
|
331
|
+
async getBuyerLeads(requestParameters: BuyersApiGetBuyerLeadsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetBuyerLeads200Response> {
|
|
332
|
+
const response = await this.getBuyerLeadsRaw(requestParameters, initOverrides);
|
|
333
|
+
return await response.value();
|
|
334
|
+
}
|
|
335
|
+
|
|
108
336
|
/**
|
|
109
337
|
*
|
|
110
338
|
*/
|
package/src/apis/LeadsApi.ts
CHANGED
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
|
+
BatchReadSellerLeadMessageInput,
|
|
18
19
|
CreateLeadMessageInput,
|
|
19
20
|
IntersectionLeadDtoWithLeadDetailsDto,
|
|
20
21
|
List200Response1,
|
|
@@ -25,6 +26,8 @@ import type {
|
|
|
25
26
|
ValidationException,
|
|
26
27
|
} from '../models/index';
|
|
27
28
|
import {
|
|
29
|
+
BatchReadSellerLeadMessageInputFromJSON,
|
|
30
|
+
BatchReadSellerLeadMessageInputToJSON,
|
|
28
31
|
CreateLeadMessageInputFromJSON,
|
|
29
32
|
CreateLeadMessageInputToJSON,
|
|
30
33
|
IntersectionLeadDtoWithLeadDetailsDtoFromJSON,
|
|
@@ -47,6 +50,11 @@ export interface LeadsApiAcceptLeadOfferRequest {
|
|
|
47
50
|
leadId: string;
|
|
48
51
|
}
|
|
49
52
|
|
|
53
|
+
export interface LeadsApiBulkReadSellerLeadMessageRequest {
|
|
54
|
+
leadId: string;
|
|
55
|
+
batchReadSellerLeadMessageInput: BatchReadSellerLeadMessageInput;
|
|
56
|
+
}
|
|
57
|
+
|
|
50
58
|
export interface LeadsApiCreateMessageRequest {
|
|
51
59
|
leadId: string;
|
|
52
60
|
createLeadMessageInput: CreateLeadMessageInput;
|
|
@@ -117,6 +125,56 @@ export class LeadsApi extends runtime.BaseAPI {
|
|
|
117
125
|
await this.acceptLeadOfferRaw(requestParameters, initOverrides);
|
|
118
126
|
}
|
|
119
127
|
|
|
128
|
+
/**
|
|
129
|
+
*
|
|
130
|
+
*/
|
|
131
|
+
async bulkReadSellerLeadMessageRaw(requestParameters: LeadsApiBulkReadSellerLeadMessageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
132
|
+
if (requestParameters['leadId'] == null) {
|
|
133
|
+
throw new runtime.RequiredError(
|
|
134
|
+
'leadId',
|
|
135
|
+
'Required parameter "leadId" was null or undefined when calling bulkReadSellerLeadMessage().'
|
|
136
|
+
);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
if (requestParameters['batchReadSellerLeadMessageInput'] == null) {
|
|
140
|
+
throw new runtime.RequiredError(
|
|
141
|
+
'batchReadSellerLeadMessageInput',
|
|
142
|
+
'Required parameter "batchReadSellerLeadMessageInput" was null or undefined when calling bulkReadSellerLeadMessage().'
|
|
143
|
+
);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
const queryParameters: any = {};
|
|
147
|
+
|
|
148
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
149
|
+
|
|
150
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
151
|
+
|
|
152
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
153
|
+
const token = this.configuration.accessToken;
|
|
154
|
+
const tokenString = await token("bearer", []);
|
|
155
|
+
|
|
156
|
+
if (tokenString) {
|
|
157
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
const response = await this.request({
|
|
161
|
+
path: `/private/leads/{leadId}/messages/read`.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters['leadId']))),
|
|
162
|
+
method: 'POST',
|
|
163
|
+
headers: headerParameters,
|
|
164
|
+
query: queryParameters,
|
|
165
|
+
body: BatchReadSellerLeadMessageInputToJSON(requestParameters['batchReadSellerLeadMessageInput']),
|
|
166
|
+
}, initOverrides);
|
|
167
|
+
|
|
168
|
+
return new runtime.VoidApiResponse(response);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
*
|
|
173
|
+
*/
|
|
174
|
+
async bulkReadSellerLeadMessage(requestParameters: LeadsApiBulkReadSellerLeadMessageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
175
|
+
await this.bulkReadSellerLeadMessageRaw(requestParameters, initOverrides);
|
|
176
|
+
}
|
|
177
|
+
|
|
120
178
|
/**
|
|
121
179
|
*
|
|
122
180
|
*/
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* Nameshift API
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface BatchReadBuyerLeadMessageInput
|
|
20
|
+
*/
|
|
21
|
+
export interface BatchReadBuyerLeadMessageInput {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {Array<string>}
|
|
25
|
+
* @memberof BatchReadBuyerLeadMessageInput
|
|
26
|
+
*/
|
|
27
|
+
leadMessageIds: Array<string>;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the BatchReadBuyerLeadMessageInput interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfBatchReadBuyerLeadMessageInput(value: object): value is BatchReadBuyerLeadMessageInput {
|
|
34
|
+
if (!('leadMessageIds' in value) || value['leadMessageIds'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function BatchReadBuyerLeadMessageInputFromJSON(json: any): BatchReadBuyerLeadMessageInput {
|
|
39
|
+
return BatchReadBuyerLeadMessageInputFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function BatchReadBuyerLeadMessageInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): BatchReadBuyerLeadMessageInput {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'leadMessageIds': json['leadMessageIds'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function BatchReadBuyerLeadMessageInputToJSON(value?: BatchReadBuyerLeadMessageInput | null): any {
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
|
|
58
|
+
'leadMessageIds': value['leadMessageIds'],
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* Nameshift API
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface BatchReadSellerLeadMessageInput
|
|
20
|
+
*/
|
|
21
|
+
export interface BatchReadSellerLeadMessageInput {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {Array<string>}
|
|
25
|
+
* @memberof BatchReadSellerLeadMessageInput
|
|
26
|
+
*/
|
|
27
|
+
leadMessageIds: Array<string>;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the BatchReadSellerLeadMessageInput interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfBatchReadSellerLeadMessageInput(value: object): value is BatchReadSellerLeadMessageInput {
|
|
34
|
+
if (!('leadMessageIds' in value) || value['leadMessageIds'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function BatchReadSellerLeadMessageInputFromJSON(json: any): BatchReadSellerLeadMessageInput {
|
|
39
|
+
return BatchReadSellerLeadMessageInputFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function BatchReadSellerLeadMessageInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): BatchReadSellerLeadMessageInput {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'leadMessageIds': json['leadMessageIds'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function BatchReadSellerLeadMessageInputToJSON(value?: BatchReadSellerLeadMessageInput | null): any {
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
|
|
58
|
+
'leadMessageIds': value['leadMessageIds'],
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* Nameshift API
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface BuyerLeadListItemDomainDto
|
|
20
|
+
*/
|
|
21
|
+
export interface BuyerLeadListItemDomainDto {
|
|
22
|
+
/**
|
|
23
|
+
* The buyer domain ID
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof BuyerLeadListItemDomainDto
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
* The lead domain name
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof BuyerLeadListItemDomainDto
|
|
32
|
+
*/
|
|
33
|
+
name: string;
|
|
34
|
+
/**
|
|
35
|
+
* The lead domain TLD
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof BuyerLeadListItemDomainDto
|
|
38
|
+
*/
|
|
39
|
+
tld: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the BuyerLeadListItemDomainDto interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfBuyerLeadListItemDomainDto(value: object): value is BuyerLeadListItemDomainDto {
|
|
46
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
47
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
48
|
+
if (!('tld' in value) || value['tld'] === undefined) return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function BuyerLeadListItemDomainDtoFromJSON(json: any): BuyerLeadListItemDomainDto {
|
|
53
|
+
return BuyerLeadListItemDomainDtoFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function BuyerLeadListItemDomainDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): BuyerLeadListItemDomainDto {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'id': json['id'],
|
|
63
|
+
'name': json['name'],
|
|
64
|
+
'tld': json['tld'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function BuyerLeadListItemDomainDtoToJSON(value?: BuyerLeadListItemDomainDto | null): any {
|
|
69
|
+
if (value == null) {
|
|
70
|
+
return value;
|
|
71
|
+
}
|
|
72
|
+
return {
|
|
73
|
+
|
|
74
|
+
'id': value['id'],
|
|
75
|
+
'name': value['name'],
|
|
76
|
+
'tld': value['tld'],
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* Nameshift API
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { BuyerLeadListItemDomainDto } from './BuyerLeadListItemDomainDto';
|
|
17
|
+
import {
|
|
18
|
+
BuyerLeadListItemDomainDtoFromJSON,
|
|
19
|
+
BuyerLeadListItemDomainDtoFromJSONTyped,
|
|
20
|
+
BuyerLeadListItemDomainDtoToJSON,
|
|
21
|
+
} from './BuyerLeadListItemDomainDto';
|
|
22
|
+
import type { MoneyDto } from './MoneyDto';
|
|
23
|
+
import {
|
|
24
|
+
MoneyDtoFromJSON,
|
|
25
|
+
MoneyDtoFromJSONTyped,
|
|
26
|
+
MoneyDtoToJSON,
|
|
27
|
+
} from './MoneyDto';
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @export
|
|
32
|
+
* @interface BuyerLeadListItemDto
|
|
33
|
+
*/
|
|
34
|
+
export interface BuyerLeadListItemDto {
|
|
35
|
+
/**
|
|
36
|
+
* The lead ID
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof BuyerLeadListItemDto
|
|
39
|
+
*/
|
|
40
|
+
id: string;
|
|
41
|
+
/**
|
|
42
|
+
* The current lead status
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof BuyerLeadListItemDto
|
|
45
|
+
*/
|
|
46
|
+
status: BuyerLeadListItemDtoStatusEnum;
|
|
47
|
+
/**
|
|
48
|
+
* The last offer amount
|
|
49
|
+
* @type {MoneyDto}
|
|
50
|
+
* @memberof BuyerLeadListItemDto
|
|
51
|
+
*/
|
|
52
|
+
lastOffer: MoneyDto | null;
|
|
53
|
+
/**
|
|
54
|
+
* The last offer offerer
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof BuyerLeadListItemDto
|
|
57
|
+
*/
|
|
58
|
+
lastOfferBy: BuyerLeadListItemDtoLastOfferByEnum | null;
|
|
59
|
+
/**
|
|
60
|
+
* Created at date
|
|
61
|
+
* @type {Date}
|
|
62
|
+
* @memberof BuyerLeadListItemDto
|
|
63
|
+
*/
|
|
64
|
+
createdAt: Date;
|
|
65
|
+
/**
|
|
66
|
+
* The lead domain information
|
|
67
|
+
* @type {BuyerLeadListItemDomainDto}
|
|
68
|
+
* @memberof BuyerLeadListItemDto
|
|
69
|
+
*/
|
|
70
|
+
domain: BuyerLeadListItemDomainDto;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* @export
|
|
76
|
+
*/
|
|
77
|
+
export const BuyerLeadListItemDtoStatusEnum = {
|
|
78
|
+
UNVERIFIED: 'unverified',
|
|
79
|
+
ACTIVE: 'active',
|
|
80
|
+
ACCEPTED: 'accepted',
|
|
81
|
+
FINISHED: 'finished',
|
|
82
|
+
DELETED: 'deleted',
|
|
83
|
+
ARCHIVED: 'archived'
|
|
84
|
+
} as const;
|
|
85
|
+
export type BuyerLeadListItemDtoStatusEnum = typeof BuyerLeadListItemDtoStatusEnum[keyof typeof BuyerLeadListItemDtoStatusEnum];
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* @export
|
|
89
|
+
*/
|
|
90
|
+
export const BuyerLeadListItemDtoLastOfferByEnum = {
|
|
91
|
+
BUYER: 'buyer',
|
|
92
|
+
SELLER: 'seller',
|
|
93
|
+
ADMIN: 'admin'
|
|
94
|
+
} as const;
|
|
95
|
+
export type BuyerLeadListItemDtoLastOfferByEnum = typeof BuyerLeadListItemDtoLastOfferByEnum[keyof typeof BuyerLeadListItemDtoLastOfferByEnum];
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Check if a given object implements the BuyerLeadListItemDto interface.
|
|
100
|
+
*/
|
|
101
|
+
export function instanceOfBuyerLeadListItemDto(value: object): value is BuyerLeadListItemDto {
|
|
102
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
103
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
104
|
+
if (!('lastOffer' in value) || value['lastOffer'] === undefined) return false;
|
|
105
|
+
if (!('lastOfferBy' in value) || value['lastOfferBy'] === undefined) return false;
|
|
106
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
107
|
+
if (!('domain' in value) || value['domain'] === undefined) return false;
|
|
108
|
+
return true;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export function BuyerLeadListItemDtoFromJSON(json: any): BuyerLeadListItemDto {
|
|
112
|
+
return BuyerLeadListItemDtoFromJSONTyped(json, false);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export function BuyerLeadListItemDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): BuyerLeadListItemDto {
|
|
116
|
+
if (json == null) {
|
|
117
|
+
return json;
|
|
118
|
+
}
|
|
119
|
+
return {
|
|
120
|
+
|
|
121
|
+
'id': json['id'],
|
|
122
|
+
'status': json['status'],
|
|
123
|
+
'lastOffer': MoneyDtoFromJSON(json['lastOffer']),
|
|
124
|
+
'lastOfferBy': json['lastOfferBy'],
|
|
125
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
126
|
+
'domain': BuyerLeadListItemDomainDtoFromJSON(json['domain']),
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
export function BuyerLeadListItemDtoToJSON(value?: BuyerLeadListItemDto | null): any {
|
|
131
|
+
if (value == null) {
|
|
132
|
+
return value;
|
|
133
|
+
}
|
|
134
|
+
return {
|
|
135
|
+
|
|
136
|
+
'id': value['id'],
|
|
137
|
+
'status': value['status'],
|
|
138
|
+
'lastOffer': MoneyDtoToJSON(value['lastOffer']),
|
|
139
|
+
'lastOfferBy': value['lastOfferBy'],
|
|
140
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
141
|
+
'domain': BuyerLeadListItemDomainDtoToJSON(value['domain']),
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
|