@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/.openapi-generator/FILES
CHANGED
|
@@ -25,14 +25,19 @@ src/models/AccountFinancialInput.ts
|
|
|
25
25
|
src/models/AccountSettingsInput.ts
|
|
26
26
|
src/models/AdminGetAllDomainTransfers200Response.ts
|
|
27
27
|
src/models/BadRequestException.ts
|
|
28
|
+
src/models/BatchReadBuyerLeadMessageInput.ts
|
|
29
|
+
src/models/BatchReadSellerLeadMessageInput.ts
|
|
28
30
|
src/models/BatchUpdateDomainsInput.ts
|
|
29
31
|
src/models/BuyerDomainTransferAuthCodeDto.ts
|
|
30
32
|
src/models/BuyerDomainTransferListItemDomainDto.ts
|
|
31
33
|
src/models/BuyerDomainTransferListItemDto.ts
|
|
34
|
+
src/models/BuyerLeadListItemDomainDto.ts
|
|
35
|
+
src/models/BuyerLeadListItemDto.ts
|
|
32
36
|
src/models/BuyerUserDto.ts
|
|
33
37
|
src/models/ChangeOrderStatusInput.ts
|
|
34
38
|
src/models/ChartDataPoint.ts
|
|
35
39
|
src/models/ConflictException.ts
|
|
40
|
+
src/models/CreateBuyerLeadMessageInput.ts
|
|
36
41
|
src/models/CreateLeadInput.ts
|
|
37
42
|
src/models/CreateLeadMessageInput.ts
|
|
38
43
|
src/models/CreateOrderInput.ts
|
|
@@ -47,7 +52,6 @@ src/models/DomainTransferDetailWorkflowStepDto.ts
|
|
|
47
52
|
src/models/DomainTransferDetailsAuthCodeDto.ts
|
|
48
53
|
src/models/DomainTransferDetailsDomainDto.ts
|
|
49
54
|
src/models/DomainTransferDetailsDto.ts
|
|
50
|
-
src/models/DomainTransferDetailsDtoAuthCode.ts
|
|
51
55
|
src/models/DomainTransferDetailsOrderBuyerDto.ts
|
|
52
56
|
src/models/DomainTransferDetailsOrderDto.ts
|
|
53
57
|
src/models/DomainTransferDetailsOrderSellerDto.ts
|
|
@@ -55,11 +59,11 @@ src/models/DomainTransferDetailsOrderSellerUserDto.ts
|
|
|
55
59
|
src/models/DomainTransferDetailsValidationDto.ts
|
|
56
60
|
src/models/DomainTransferDomainDto.ts
|
|
57
61
|
src/models/DomainTransferDto.ts
|
|
58
|
-
src/models/DomainTransferDtoAgent.ts
|
|
59
62
|
src/models/DomainTransferOrderDto.ts
|
|
60
63
|
src/models/ForgotPasswordRequestInput.ts
|
|
61
64
|
src/models/GetAllDomainTransfers200Response.ts
|
|
62
65
|
src/models/GetAllOrders200Response.ts
|
|
66
|
+
src/models/GetBuyerLeads200Response.ts
|
|
63
67
|
src/models/GetBuyerTransfers200Response.ts
|
|
64
68
|
src/models/HttpException.ts
|
|
65
69
|
src/models/IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto.ts
|
|
@@ -67,15 +71,10 @@ src/models/IntersectionDomainDtoWithAccountDto.ts
|
|
|
67
71
|
src/models/IntersectionDomainDtoWithDomainUrlDto.ts
|
|
68
72
|
src/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.ts
|
|
69
73
|
src/models/IntersectionDomainSalesInformationDtoWithDomainStatsDto.ts
|
|
70
|
-
src/models/IntersectionDomainSalesInformationDtoWithDomainStatsDtoBuyNowPrice.ts
|
|
71
|
-
src/models/IntersectionDomainSalesInformationDtoWithDomainStatsDtoMinOfferPrice.ts
|
|
72
74
|
src/models/IntersectionLeadDtoWithLeadDetailsDto.ts
|
|
73
75
|
src/models/IntersectionLeadDtoWithListFieldsDto.ts
|
|
74
|
-
src/models/IntersectionLeadDtoWithListFieldsDtoLastMessageData.ts
|
|
75
|
-
src/models/IntersectionLeadDtoWithListFieldsDtoLastOffer.ts
|
|
76
76
|
src/models/LeadMessageData.ts
|
|
77
77
|
src/models/LeadMessageDto.ts
|
|
78
|
-
src/models/LeadMessageDtoData.ts
|
|
79
78
|
src/models/LeadStatusDto.ts
|
|
80
79
|
src/models/List200Response.ts
|
|
81
80
|
src/models/List200Response1.ts
|
|
@@ -90,7 +89,6 @@ src/models/NotFoundException.ts
|
|
|
90
89
|
src/models/ObjectId.ts
|
|
91
90
|
src/models/OrderDto.ts
|
|
92
91
|
src/models/OrderListItemDto.ts
|
|
93
|
-
src/models/OrderListItemDtoBasePrice.ts
|
|
94
92
|
src/models/OrderListItemDtoBuyerInformation.ts
|
|
95
93
|
src/models/OrderListItemDtoDomainInformation.ts
|
|
96
94
|
src/models/OrderListItemDtoSellerAccount.ts
|
|
@@ -99,7 +97,6 @@ src/models/PaginateResponseLinks.ts
|
|
|
99
97
|
src/models/PaginateResponseMeta.ts
|
|
100
98
|
src/models/PublicLeadBuyerDto.ts
|
|
101
99
|
src/models/PublicLeadDto.ts
|
|
102
|
-
src/models/PublicLeadDtoLastOffer.ts
|
|
103
100
|
src/models/PutLeadOfferInput.ts
|
|
104
101
|
src/models/RegisterAccountInput.ts
|
|
105
102
|
src/models/RelatedSellerDomain.ts
|
|
@@ -108,7 +105,6 @@ src/models/SecurityUserDto.ts
|
|
|
108
105
|
src/models/SellerDomainTransferAuthCodeDto.ts
|
|
109
106
|
src/models/SellerDomainTransferDomainDto.ts
|
|
110
107
|
src/models/SellerDomainTransferDto.ts
|
|
111
|
-
src/models/SellerDomainTransferDtoAuthCode.ts
|
|
112
108
|
src/models/SellerDomainTransferListItemDomainDto.ts
|
|
113
109
|
src/models/SellerDomainTransferListItemDto.ts
|
|
114
110
|
src/models/SetDomainTransferConfirmationInput.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.89
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @randock/nameshift-api-client@0.0.
|
|
39
|
+
npm install @randock/nameshift-api-client@0.0.89 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -44,4 +44,4 @@ _unPublished (not recommended):_
|
|
|
44
44
|
```
|
|
45
45
|
npm install PATH_TO_GENERATED_PACKAGE --save
|
|
46
46
|
```
|
|
47
|
-
|
|
47
|
+
9f65397de9dca9b95a55020d077922176a3b068750b72eeebba2590ad917b35862eea43912639c709f31f0f71ecfb2dc
|
package/dist/apis/BuyersApi.d.ts
CHANGED
|
@@ -10,7 +10,24 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { BuyerDomainTransferAuthCodeDto, BuyerUserDto, GetBuyerTransfers200Response, SetDomainTransferConfirmationInput, StoreBuyerLocaleInput } from '../models/index';
|
|
13
|
+
import type { BatchReadBuyerLeadMessageInput, BuyerDomainTransferAuthCodeDto, BuyerUserDto, CreateBuyerLeadMessageInput, GetBuyerLeads200Response, GetBuyerTransfers200Response, LeadMessageDto, ObjectId, SetDomainTransferConfirmationInput, StoreBuyerLocaleInput } from '../models/index';
|
|
14
|
+
export interface BuyersApiBulkReadBuyerLeadMessageRequest {
|
|
15
|
+
leadId: string;
|
|
16
|
+
batchReadBuyerLeadMessageInput: BatchReadBuyerLeadMessageInput;
|
|
17
|
+
}
|
|
18
|
+
export interface BuyersApiCreateBuyerLeadMessageRequest {
|
|
19
|
+
leadId: string;
|
|
20
|
+
createBuyerLeadMessageInput: CreateBuyerLeadMessageInput;
|
|
21
|
+
}
|
|
22
|
+
export interface BuyersApiGetBuyerLeadMessagesRequest {
|
|
23
|
+
leadId: string;
|
|
24
|
+
}
|
|
25
|
+
export interface BuyersApiGetBuyerLeadsRequest {
|
|
26
|
+
filter?: object;
|
|
27
|
+
page?: number;
|
|
28
|
+
limit?: number;
|
|
29
|
+
sortBy?: Array<string>;
|
|
30
|
+
}
|
|
14
31
|
export interface BuyersApiGetBuyerTransfersRequest {
|
|
15
32
|
filter?: object;
|
|
16
33
|
page?: number;
|
|
@@ -31,6 +48,14 @@ export interface BuyersApiSetLocaleRequest {
|
|
|
31
48
|
*
|
|
32
49
|
*/
|
|
33
50
|
export declare class BuyersApi extends runtime.BaseAPI {
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
*/
|
|
54
|
+
bulkReadBuyerLeadMessageRaw(requestParameters: BuyersApiBulkReadBuyerLeadMessageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
*/
|
|
58
|
+
bulkReadBuyerLeadMessage(requestParameters: BuyersApiBulkReadBuyerLeadMessageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
34
59
|
/**
|
|
35
60
|
*
|
|
36
61
|
*/
|
|
@@ -39,6 +64,30 @@ export declare class BuyersApi extends runtime.BaseAPI {
|
|
|
39
64
|
*
|
|
40
65
|
*/
|
|
41
66
|
buyerMe(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BuyerUserDto>;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
*/
|
|
70
|
+
createBuyerLeadMessageRaw(requestParameters: BuyersApiCreateBuyerLeadMessageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ObjectId>>;
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
*/
|
|
74
|
+
createBuyerLeadMessage(requestParameters: BuyersApiCreateBuyerLeadMessageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ObjectId>;
|
|
75
|
+
/**
|
|
76
|
+
*
|
|
77
|
+
*/
|
|
78
|
+
getBuyerLeadMessagesRaw(requestParameters: BuyersApiGetBuyerLeadMessagesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<LeadMessageDto>>>;
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
*/
|
|
82
|
+
getBuyerLeadMessages(requestParameters: BuyersApiGetBuyerLeadMessagesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<LeadMessageDto>>;
|
|
83
|
+
/**
|
|
84
|
+
*
|
|
85
|
+
*/
|
|
86
|
+
getBuyerLeadsRaw(requestParameters: BuyersApiGetBuyerLeadsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetBuyerLeads200Response>>;
|
|
87
|
+
/**
|
|
88
|
+
*
|
|
89
|
+
*/
|
|
90
|
+
getBuyerLeads(requestParameters?: BuyersApiGetBuyerLeadsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetBuyerLeads200Response>;
|
|
42
91
|
/**
|
|
43
92
|
*
|
|
44
93
|
*/
|
package/dist/apis/BuyersApi.js
CHANGED
|
@@ -75,6 +75,62 @@ var BuyersApi = /** @class */ (function (_super) {
|
|
|
75
75
|
function BuyersApi() {
|
|
76
76
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
77
|
}
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
*/
|
|
81
|
+
BuyersApi.prototype.bulkReadBuyerLeadMessageRaw = function (requestParameters, initOverrides) {
|
|
82
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
83
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
84
|
+
return __generator(this, function (_a) {
|
|
85
|
+
switch (_a.label) {
|
|
86
|
+
case 0:
|
|
87
|
+
if (requestParameters['leadId'] == null) {
|
|
88
|
+
throw new runtime.RequiredError('leadId', 'Required parameter "leadId" was null or undefined when calling bulkReadBuyerLeadMessage().');
|
|
89
|
+
}
|
|
90
|
+
if (requestParameters['batchReadBuyerLeadMessageInput'] == null) {
|
|
91
|
+
throw new runtime.RequiredError('batchReadBuyerLeadMessageInput', 'Required parameter "batchReadBuyerLeadMessageInput" was null or undefined when calling bulkReadBuyerLeadMessage().');
|
|
92
|
+
}
|
|
93
|
+
queryParameters = {};
|
|
94
|
+
headerParameters = {};
|
|
95
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
96
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
97
|
+
token = this.configuration.accessToken;
|
|
98
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
99
|
+
case 1:
|
|
100
|
+
tokenString = _a.sent();
|
|
101
|
+
if (tokenString) {
|
|
102
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
103
|
+
}
|
|
104
|
+
_a.label = 2;
|
|
105
|
+
case 2: return [4 /*yield*/, this.request({
|
|
106
|
+
path: "/buyers/private/lead/{leadId}/messages/read".replace("{".concat("leadId", "}"), encodeURIComponent(String(requestParameters['leadId']))),
|
|
107
|
+
method: 'POST',
|
|
108
|
+
headers: headerParameters,
|
|
109
|
+
query: queryParameters,
|
|
110
|
+
body: (0, index_1.BatchReadBuyerLeadMessageInputToJSON)(requestParameters['batchReadBuyerLeadMessageInput']),
|
|
111
|
+
}, initOverrides)];
|
|
112
|
+
case 3:
|
|
113
|
+
response = _a.sent();
|
|
114
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
115
|
+
}
|
|
116
|
+
});
|
|
117
|
+
});
|
|
118
|
+
};
|
|
119
|
+
/**
|
|
120
|
+
*
|
|
121
|
+
*/
|
|
122
|
+
BuyersApi.prototype.bulkReadBuyerLeadMessage = function (requestParameters, initOverrides) {
|
|
123
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
124
|
+
return __generator(this, function (_a) {
|
|
125
|
+
switch (_a.label) {
|
|
126
|
+
case 0: return [4 /*yield*/, this.bulkReadBuyerLeadMessageRaw(requestParameters, initOverrides)];
|
|
127
|
+
case 1:
|
|
128
|
+
_a.sent();
|
|
129
|
+
return [2 /*return*/];
|
|
130
|
+
}
|
|
131
|
+
});
|
|
132
|
+
});
|
|
133
|
+
};
|
|
78
134
|
/**
|
|
79
135
|
*
|
|
80
136
|
*/
|
|
@@ -125,6 +181,180 @@ var BuyersApi = /** @class */ (function (_super) {
|
|
|
125
181
|
});
|
|
126
182
|
});
|
|
127
183
|
};
|
|
184
|
+
/**
|
|
185
|
+
*
|
|
186
|
+
*/
|
|
187
|
+
BuyersApi.prototype.createBuyerLeadMessageRaw = function (requestParameters, initOverrides) {
|
|
188
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
189
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
190
|
+
return __generator(this, function (_a) {
|
|
191
|
+
switch (_a.label) {
|
|
192
|
+
case 0:
|
|
193
|
+
if (requestParameters['leadId'] == null) {
|
|
194
|
+
throw new runtime.RequiredError('leadId', 'Required parameter "leadId" was null or undefined when calling createBuyerLeadMessage().');
|
|
195
|
+
}
|
|
196
|
+
if (requestParameters['createBuyerLeadMessageInput'] == null) {
|
|
197
|
+
throw new runtime.RequiredError('createBuyerLeadMessageInput', 'Required parameter "createBuyerLeadMessageInput" was null or undefined when calling createBuyerLeadMessage().');
|
|
198
|
+
}
|
|
199
|
+
queryParameters = {};
|
|
200
|
+
headerParameters = {};
|
|
201
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
202
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
203
|
+
token = this.configuration.accessToken;
|
|
204
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
205
|
+
case 1:
|
|
206
|
+
tokenString = _a.sent();
|
|
207
|
+
if (tokenString) {
|
|
208
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
209
|
+
}
|
|
210
|
+
_a.label = 2;
|
|
211
|
+
case 2: return [4 /*yield*/, this.request({
|
|
212
|
+
path: "/buyers/private/lead/{leadId}/messages".replace("{".concat("leadId", "}"), encodeURIComponent(String(requestParameters['leadId']))),
|
|
213
|
+
method: 'POST',
|
|
214
|
+
headers: headerParameters,
|
|
215
|
+
query: queryParameters,
|
|
216
|
+
body: (0, index_1.CreateBuyerLeadMessageInputToJSON)(requestParameters['createBuyerLeadMessageInput']),
|
|
217
|
+
}, initOverrides)];
|
|
218
|
+
case 3:
|
|
219
|
+
response = _a.sent();
|
|
220
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ObjectIdFromJSON)(jsonValue); })];
|
|
221
|
+
}
|
|
222
|
+
});
|
|
223
|
+
});
|
|
224
|
+
};
|
|
225
|
+
/**
|
|
226
|
+
*
|
|
227
|
+
*/
|
|
228
|
+
BuyersApi.prototype.createBuyerLeadMessage = function (requestParameters, initOverrides) {
|
|
229
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
230
|
+
var response;
|
|
231
|
+
return __generator(this, function (_a) {
|
|
232
|
+
switch (_a.label) {
|
|
233
|
+
case 0: return [4 /*yield*/, this.createBuyerLeadMessageRaw(requestParameters, initOverrides)];
|
|
234
|
+
case 1:
|
|
235
|
+
response = _a.sent();
|
|
236
|
+
return [4 /*yield*/, response.value()];
|
|
237
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
238
|
+
}
|
|
239
|
+
});
|
|
240
|
+
});
|
|
241
|
+
};
|
|
242
|
+
/**
|
|
243
|
+
*
|
|
244
|
+
*/
|
|
245
|
+
BuyersApi.prototype.getBuyerLeadMessagesRaw = function (requestParameters, initOverrides) {
|
|
246
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
247
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
248
|
+
return __generator(this, function (_a) {
|
|
249
|
+
switch (_a.label) {
|
|
250
|
+
case 0:
|
|
251
|
+
if (requestParameters['leadId'] == null) {
|
|
252
|
+
throw new runtime.RequiredError('leadId', 'Required parameter "leadId" was null or undefined when calling getBuyerLeadMessages().');
|
|
253
|
+
}
|
|
254
|
+
queryParameters = {};
|
|
255
|
+
headerParameters = {};
|
|
256
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
257
|
+
token = this.configuration.accessToken;
|
|
258
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
259
|
+
case 1:
|
|
260
|
+
tokenString = _a.sent();
|
|
261
|
+
if (tokenString) {
|
|
262
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
263
|
+
}
|
|
264
|
+
_a.label = 2;
|
|
265
|
+
case 2: return [4 /*yield*/, this.request({
|
|
266
|
+
path: "/buyers/private/lead/{leadId}/messages".replace("{".concat("leadId", "}"), encodeURIComponent(String(requestParameters['leadId']))),
|
|
267
|
+
method: 'GET',
|
|
268
|
+
headers: headerParameters,
|
|
269
|
+
query: queryParameters,
|
|
270
|
+
}, initOverrides)];
|
|
271
|
+
case 3:
|
|
272
|
+
response = _a.sent();
|
|
273
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(index_1.LeadMessageDtoFromJSON); })];
|
|
274
|
+
}
|
|
275
|
+
});
|
|
276
|
+
});
|
|
277
|
+
};
|
|
278
|
+
/**
|
|
279
|
+
*
|
|
280
|
+
*/
|
|
281
|
+
BuyersApi.prototype.getBuyerLeadMessages = function (requestParameters, initOverrides) {
|
|
282
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
283
|
+
var response;
|
|
284
|
+
return __generator(this, function (_a) {
|
|
285
|
+
switch (_a.label) {
|
|
286
|
+
case 0: return [4 /*yield*/, this.getBuyerLeadMessagesRaw(requestParameters, initOverrides)];
|
|
287
|
+
case 1:
|
|
288
|
+
response = _a.sent();
|
|
289
|
+
return [4 /*yield*/, response.value()];
|
|
290
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
291
|
+
}
|
|
292
|
+
});
|
|
293
|
+
});
|
|
294
|
+
};
|
|
295
|
+
/**
|
|
296
|
+
*
|
|
297
|
+
*/
|
|
298
|
+
BuyersApi.prototype.getBuyerLeadsRaw = function (requestParameters, initOverrides) {
|
|
299
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
300
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
301
|
+
return __generator(this, function (_a) {
|
|
302
|
+
switch (_a.label) {
|
|
303
|
+
case 0:
|
|
304
|
+
queryParameters = {};
|
|
305
|
+
if (requestParameters['filter'] != null) {
|
|
306
|
+
queryParameters['filter'] = requestParameters['filter'];
|
|
307
|
+
}
|
|
308
|
+
if (requestParameters['page'] != null) {
|
|
309
|
+
queryParameters['page'] = requestParameters['page'];
|
|
310
|
+
}
|
|
311
|
+
if (requestParameters['limit'] != null) {
|
|
312
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
313
|
+
}
|
|
314
|
+
if (requestParameters['sortBy'] != null) {
|
|
315
|
+
queryParameters['sortBy'] = requestParameters['sortBy'];
|
|
316
|
+
}
|
|
317
|
+
headerParameters = {};
|
|
318
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
319
|
+
token = this.configuration.accessToken;
|
|
320
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
321
|
+
case 1:
|
|
322
|
+
tokenString = _a.sent();
|
|
323
|
+
if (tokenString) {
|
|
324
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
325
|
+
}
|
|
326
|
+
_a.label = 2;
|
|
327
|
+
case 2: return [4 /*yield*/, this.request({
|
|
328
|
+
path: "/buyers/private/leads",
|
|
329
|
+
method: 'GET',
|
|
330
|
+
headers: headerParameters,
|
|
331
|
+
query: queryParameters,
|
|
332
|
+
}, initOverrides)];
|
|
333
|
+
case 3:
|
|
334
|
+
response = _a.sent();
|
|
335
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.GetBuyerLeads200ResponseFromJSON)(jsonValue); })];
|
|
336
|
+
}
|
|
337
|
+
});
|
|
338
|
+
});
|
|
339
|
+
};
|
|
340
|
+
/**
|
|
341
|
+
*
|
|
342
|
+
*/
|
|
343
|
+
BuyersApi.prototype.getBuyerLeads = function () {
|
|
344
|
+
return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
|
|
345
|
+
var response;
|
|
346
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
347
|
+
return __generator(this, function (_a) {
|
|
348
|
+
switch (_a.label) {
|
|
349
|
+
case 0: return [4 /*yield*/, this.getBuyerLeadsRaw(requestParameters, initOverrides)];
|
|
350
|
+
case 1:
|
|
351
|
+
response = _a.sent();
|
|
352
|
+
return [4 /*yield*/, response.value()];
|
|
353
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
354
|
+
}
|
|
355
|
+
});
|
|
356
|
+
});
|
|
357
|
+
};
|
|
128
358
|
/**
|
|
129
359
|
*
|
|
130
360
|
*/
|
package/dist/apis/LeadsApi.d.ts
CHANGED
|
@@ -10,10 +10,14 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { CreateLeadMessageInput, IntersectionLeadDtoWithLeadDetailsDto, List200Response1, ListLeadMessagesDto, ObjectId, PutLeadOfferInput } from '../models/index';
|
|
13
|
+
import type { BatchReadSellerLeadMessageInput, CreateLeadMessageInput, IntersectionLeadDtoWithLeadDetailsDto, List200Response1, ListLeadMessagesDto, ObjectId, PutLeadOfferInput } from '../models/index';
|
|
14
14
|
export interface LeadsApiAcceptLeadOfferRequest {
|
|
15
15
|
leadId: string;
|
|
16
16
|
}
|
|
17
|
+
export interface LeadsApiBulkReadSellerLeadMessageRequest {
|
|
18
|
+
leadId: string;
|
|
19
|
+
batchReadSellerLeadMessageInput: BatchReadSellerLeadMessageInput;
|
|
20
|
+
}
|
|
17
21
|
export interface LeadsApiCreateMessageRequest {
|
|
18
22
|
leadId: string;
|
|
19
23
|
createLeadMessageInput: CreateLeadMessageInput;
|
|
@@ -46,6 +50,14 @@ export declare class LeadsApi extends runtime.BaseAPI {
|
|
|
46
50
|
*
|
|
47
51
|
*/
|
|
48
52
|
acceptLeadOffer(requestParameters: LeadsApiAcceptLeadOfferRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
*/
|
|
56
|
+
bulkReadSellerLeadMessageRaw(requestParameters: LeadsApiBulkReadSellerLeadMessageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
*/
|
|
60
|
+
bulkReadSellerLeadMessage(requestParameters: LeadsApiBulkReadSellerLeadMessageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
49
61
|
/**
|
|
50
62
|
*
|
|
51
63
|
*/
|
package/dist/apis/LeadsApi.js
CHANGED
|
@@ -126,6 +126,62 @@ var LeadsApi = /** @class */ (function (_super) {
|
|
|
126
126
|
});
|
|
127
127
|
});
|
|
128
128
|
};
|
|
129
|
+
/**
|
|
130
|
+
*
|
|
131
|
+
*/
|
|
132
|
+
LeadsApi.prototype.bulkReadSellerLeadMessageRaw = function (requestParameters, initOverrides) {
|
|
133
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
134
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
135
|
+
return __generator(this, function (_a) {
|
|
136
|
+
switch (_a.label) {
|
|
137
|
+
case 0:
|
|
138
|
+
if (requestParameters['leadId'] == null) {
|
|
139
|
+
throw new runtime.RequiredError('leadId', 'Required parameter "leadId" was null or undefined when calling bulkReadSellerLeadMessage().');
|
|
140
|
+
}
|
|
141
|
+
if (requestParameters['batchReadSellerLeadMessageInput'] == null) {
|
|
142
|
+
throw new runtime.RequiredError('batchReadSellerLeadMessageInput', 'Required parameter "batchReadSellerLeadMessageInput" was null or undefined when calling bulkReadSellerLeadMessage().');
|
|
143
|
+
}
|
|
144
|
+
queryParameters = {};
|
|
145
|
+
headerParameters = {};
|
|
146
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
147
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
148
|
+
token = this.configuration.accessToken;
|
|
149
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
150
|
+
case 1:
|
|
151
|
+
tokenString = _a.sent();
|
|
152
|
+
if (tokenString) {
|
|
153
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
154
|
+
}
|
|
155
|
+
_a.label = 2;
|
|
156
|
+
case 2: return [4 /*yield*/, this.request({
|
|
157
|
+
path: "/private/leads/{leadId}/messages/read".replace("{".concat("leadId", "}"), encodeURIComponent(String(requestParameters['leadId']))),
|
|
158
|
+
method: 'POST',
|
|
159
|
+
headers: headerParameters,
|
|
160
|
+
query: queryParameters,
|
|
161
|
+
body: (0, index_1.BatchReadSellerLeadMessageInputToJSON)(requestParameters['batchReadSellerLeadMessageInput']),
|
|
162
|
+
}, initOverrides)];
|
|
163
|
+
case 3:
|
|
164
|
+
response = _a.sent();
|
|
165
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
166
|
+
}
|
|
167
|
+
});
|
|
168
|
+
});
|
|
169
|
+
};
|
|
170
|
+
/**
|
|
171
|
+
*
|
|
172
|
+
*/
|
|
173
|
+
LeadsApi.prototype.bulkReadSellerLeadMessage = function (requestParameters, initOverrides) {
|
|
174
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
175
|
+
return __generator(this, function (_a) {
|
|
176
|
+
switch (_a.label) {
|
|
177
|
+
case 0: return [4 /*yield*/, this.bulkReadSellerLeadMessageRaw(requestParameters, initOverrides)];
|
|
178
|
+
case 1:
|
|
179
|
+
_a.sent();
|
|
180
|
+
return [2 /*return*/];
|
|
181
|
+
}
|
|
182
|
+
});
|
|
183
|
+
});
|
|
184
|
+
};
|
|
129
185
|
/**
|
|
130
186
|
*
|
|
131
187
|
*/
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface BatchReadBuyerLeadMessageInput
|
|
16
|
+
*/
|
|
17
|
+
export interface BatchReadBuyerLeadMessageInput {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {Array<string>}
|
|
21
|
+
* @memberof BatchReadBuyerLeadMessageInput
|
|
22
|
+
*/
|
|
23
|
+
leadMessageIds: Array<string>;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the BatchReadBuyerLeadMessageInput interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfBatchReadBuyerLeadMessageInput(value: object): value is BatchReadBuyerLeadMessageInput;
|
|
29
|
+
export declare function BatchReadBuyerLeadMessageInputFromJSON(json: any): BatchReadBuyerLeadMessageInput;
|
|
30
|
+
export declare function BatchReadBuyerLeadMessageInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): BatchReadBuyerLeadMessageInput;
|
|
31
|
+
export declare function BatchReadBuyerLeadMessageInputToJSON(value?: BatchReadBuyerLeadMessageInput | null): any;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfBatchReadBuyerLeadMessageInput = instanceOfBatchReadBuyerLeadMessageInput;
|
|
17
|
+
exports.BatchReadBuyerLeadMessageInputFromJSON = BatchReadBuyerLeadMessageInputFromJSON;
|
|
18
|
+
exports.BatchReadBuyerLeadMessageInputFromJSONTyped = BatchReadBuyerLeadMessageInputFromJSONTyped;
|
|
19
|
+
exports.BatchReadBuyerLeadMessageInputToJSON = BatchReadBuyerLeadMessageInputToJSON;
|
|
20
|
+
/**
|
|
21
|
+
* Check if a given object implements the BatchReadBuyerLeadMessageInput interface.
|
|
22
|
+
*/
|
|
23
|
+
function instanceOfBatchReadBuyerLeadMessageInput(value) {
|
|
24
|
+
if (!('leadMessageIds' in value) || value['leadMessageIds'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function BatchReadBuyerLeadMessageInputFromJSON(json) {
|
|
29
|
+
return BatchReadBuyerLeadMessageInputFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function BatchReadBuyerLeadMessageInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'leadMessageIds': json['leadMessageIds'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function BatchReadBuyerLeadMessageInputToJSON(value) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'leadMessageIds': value['leadMessageIds'],
|
|
45
|
+
};
|
|
46
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface BatchReadSellerLeadMessageInput
|
|
16
|
+
*/
|
|
17
|
+
export interface BatchReadSellerLeadMessageInput {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {Array<string>}
|
|
21
|
+
* @memberof BatchReadSellerLeadMessageInput
|
|
22
|
+
*/
|
|
23
|
+
leadMessageIds: Array<string>;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the BatchReadSellerLeadMessageInput interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfBatchReadSellerLeadMessageInput(value: object): value is BatchReadSellerLeadMessageInput;
|
|
29
|
+
export declare function BatchReadSellerLeadMessageInputFromJSON(json: any): BatchReadSellerLeadMessageInput;
|
|
30
|
+
export declare function BatchReadSellerLeadMessageInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): BatchReadSellerLeadMessageInput;
|
|
31
|
+
export declare function BatchReadSellerLeadMessageInputToJSON(value?: BatchReadSellerLeadMessageInput | null): any;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfBatchReadSellerLeadMessageInput = instanceOfBatchReadSellerLeadMessageInput;
|
|
17
|
+
exports.BatchReadSellerLeadMessageInputFromJSON = BatchReadSellerLeadMessageInputFromJSON;
|
|
18
|
+
exports.BatchReadSellerLeadMessageInputFromJSONTyped = BatchReadSellerLeadMessageInputFromJSONTyped;
|
|
19
|
+
exports.BatchReadSellerLeadMessageInputToJSON = BatchReadSellerLeadMessageInputToJSON;
|
|
20
|
+
/**
|
|
21
|
+
* Check if a given object implements the BatchReadSellerLeadMessageInput interface.
|
|
22
|
+
*/
|
|
23
|
+
function instanceOfBatchReadSellerLeadMessageInput(value) {
|
|
24
|
+
if (!('leadMessageIds' in value) || value['leadMessageIds'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function BatchReadSellerLeadMessageInputFromJSON(json) {
|
|
29
|
+
return BatchReadSellerLeadMessageInputFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function BatchReadSellerLeadMessageInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'leadMessageIds': json['leadMessageIds'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function BatchReadSellerLeadMessageInputToJSON(value) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'leadMessageIds': value['leadMessageIds'],
|
|
45
|
+
};
|
|
46
|
+
}
|