@randock/nameshift-api-client 0.0.325 → 0.0.326
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 +4 -2
- package/README.md +3 -3
- package/dist/apis/BuyersApi.d.ts +13 -1
- package/dist/apis/BuyersApi.js +56 -0
- package/dist/apis/LeadsApi.d.ts +15 -3
- package/dist/apis/LeadsApi.js +57 -1
- package/dist/models/BuyerLeadListItemDto.d.ts +6 -0
- package/dist/models/BuyerLeadListItemDto.js +4 -0
- package/dist/models/IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto.d.ts +6 -0
- package/dist/models/IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto.js +4 -0
- package/dist/models/LeadDto.d.ts +6 -0
- package/dist/models/LeadDto.js +4 -0
- package/dist/models/List200Response.d.ts +3 -3
- package/dist/models/List200Response.js +3 -3
- package/dist/models/ListLeadsResultItem.d.ts +213 -0
- package/dist/models/{IntersectionLeadDtoWithListFieldsDto.js → ListLeadsResultItem.js} +27 -19
- package/dist/models/SellerLeadDetails.d.ts +156 -0
- package/dist/models/{IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDto.js → SellerLeadDetails.js} +25 -17
- package/dist/models/UpdateLeadMuteStatusForBuyerInput.d.ts +32 -0
- package/dist/models/UpdateLeadMuteStatusForBuyerInput.js +51 -0
- package/dist/models/UpdateLeadMuteStatusInput.d.ts +32 -0
- package/dist/models/UpdateLeadMuteStatusInput.js +51 -0
- package/dist/models/UpdateUserNotificationSettingsInput.d.ts +36 -0
- package/dist/models/UpdateUserNotificationSettingsInput.js +12 -0
- package/dist/models/UserNotificationSettingsDto.d.ts +36 -0
- package/dist/models/UserNotificationSettingsDto.js +24 -0
- package/dist/models/index.d.ts +4 -2
- package/dist/models/index.js +4 -2
- package/package.json +1 -1
- package/src/apis/BuyersApi.ts +58 -0
- package/src/apis/LeadsApi.ts +64 -6
- package/src/models/BuyerLeadListItemDto.ts +9 -0
- package/src/models/IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto.ts +9 -0
- package/src/models/LeadDto.ts +9 -0
- package/src/models/List200Response.ts +10 -10
- package/src/models/{IntersectionLeadDtoWithListFieldsDto.ts → ListLeadsResultItem.ts} +63 -45
- package/src/models/{IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDto.ts → SellerLeadDetails.ts} +51 -33
- package/src/models/UpdateLeadMuteStatusForBuyerInput.ts +66 -0
- package/src/models/UpdateLeadMuteStatusInput.ts +66 -0
- package/src/models/UpdateUserNotificationSettingsInput.ts +48 -0
- package/src/models/UserNotificationSettingsDto.ts +54 -0
- package/src/models/index.ts +4 -2
- package/dist/models/IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDto.d.ts +0 -144
- package/dist/models/IntersectionLeadDtoWithListFieldsDto.d.ts +0 -201
|
@@ -15,6 +15,12 @@
|
|
|
15
15
|
* @interface UserNotificationSettingsDto
|
|
16
16
|
*/
|
|
17
17
|
export interface UserNotificationSettingsDto {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof UserNotificationSettingsDto
|
|
22
|
+
*/
|
|
23
|
+
allDisabled: boolean;
|
|
18
24
|
/**
|
|
19
25
|
*
|
|
20
26
|
* @type {boolean}
|
|
@@ -63,6 +69,36 @@ export interface UserNotificationSettingsDto {
|
|
|
63
69
|
* @memberof UserNotificationSettingsDto
|
|
64
70
|
*/
|
|
65
71
|
taskDailyTime: string | null;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {boolean}
|
|
75
|
+
* @memberof UserNotificationSettingsDto
|
|
76
|
+
*/
|
|
77
|
+
leadTasks: boolean;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {boolean}
|
|
81
|
+
* @memberof UserNotificationSettingsDto
|
|
82
|
+
*/
|
|
83
|
+
domainTransferTasks: boolean;
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @type {boolean}
|
|
87
|
+
* @memberof UserNotificationSettingsDto
|
|
88
|
+
*/
|
|
89
|
+
leadNewOffer: boolean;
|
|
90
|
+
/**
|
|
91
|
+
*
|
|
92
|
+
* @type {boolean}
|
|
93
|
+
* @memberof UserNotificationSettingsDto
|
|
94
|
+
*/
|
|
95
|
+
leadNewMessage: boolean;
|
|
96
|
+
/**
|
|
97
|
+
*
|
|
98
|
+
* @type {boolean}
|
|
99
|
+
* @memberof UserNotificationSettingsDto
|
|
100
|
+
*/
|
|
101
|
+
leadStatusChanged: boolean;
|
|
66
102
|
}
|
|
67
103
|
/**
|
|
68
104
|
* @export
|
|
@@ -30,6 +30,8 @@ exports.UserNotificationSettingsDtoTasksFrequencyEnum = {
|
|
|
30
30
|
* Check if a given object implements the UserNotificationSettingsDto interface.
|
|
31
31
|
*/
|
|
32
32
|
function instanceOfUserNotificationSettingsDto(value) {
|
|
33
|
+
if (!('allDisabled' in value) || value['allDisabled'] === undefined)
|
|
34
|
+
return false;
|
|
33
35
|
if (!('domainSold' in value) || value['domainSold'] === undefined)
|
|
34
36
|
return false;
|
|
35
37
|
if (!('domainTransferCompleted' in value) || value['domainTransferCompleted'] === undefined)
|
|
@@ -46,6 +48,16 @@ function instanceOfUserNotificationSettingsDto(value) {
|
|
|
46
48
|
return false;
|
|
47
49
|
if (!('taskDailyTime' in value) || value['taskDailyTime'] === undefined)
|
|
48
50
|
return false;
|
|
51
|
+
if (!('leadTasks' in value) || value['leadTasks'] === undefined)
|
|
52
|
+
return false;
|
|
53
|
+
if (!('domainTransferTasks' in value) || value['domainTransferTasks'] === undefined)
|
|
54
|
+
return false;
|
|
55
|
+
if (!('leadNewOffer' in value) || value['leadNewOffer'] === undefined)
|
|
56
|
+
return false;
|
|
57
|
+
if (!('leadNewMessage' in value) || value['leadNewMessage'] === undefined)
|
|
58
|
+
return false;
|
|
59
|
+
if (!('leadStatusChanged' in value) || value['leadStatusChanged'] === undefined)
|
|
60
|
+
return false;
|
|
49
61
|
return true;
|
|
50
62
|
}
|
|
51
63
|
function UserNotificationSettingsDtoFromJSON(json) {
|
|
@@ -56,6 +68,7 @@ function UserNotificationSettingsDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
56
68
|
return json;
|
|
57
69
|
}
|
|
58
70
|
return {
|
|
71
|
+
'allDisabled': json['allDisabled'],
|
|
59
72
|
'domainSold': json['domainSold'],
|
|
60
73
|
'domainTransferCompleted': json['domainTransferCompleted'],
|
|
61
74
|
'leadClosed': json['leadClosed'],
|
|
@@ -64,6 +77,11 @@ function UserNotificationSettingsDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
64
77
|
'leadMessagesFrequencyInMinutes': json['leadMessagesFrequencyInMinutes'],
|
|
65
78
|
'tasksFrequency': json['tasksFrequency'],
|
|
66
79
|
'taskDailyTime': json['taskDailyTime'],
|
|
80
|
+
'leadTasks': json['leadTasks'],
|
|
81
|
+
'domainTransferTasks': json['domainTransferTasks'],
|
|
82
|
+
'leadNewOffer': json['leadNewOffer'],
|
|
83
|
+
'leadNewMessage': json['leadNewMessage'],
|
|
84
|
+
'leadStatusChanged': json['leadStatusChanged'],
|
|
67
85
|
};
|
|
68
86
|
}
|
|
69
87
|
function UserNotificationSettingsDtoToJSON(json) {
|
|
@@ -75,6 +93,7 @@ function UserNotificationSettingsDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
75
93
|
return value;
|
|
76
94
|
}
|
|
77
95
|
return {
|
|
96
|
+
'allDisabled': value['allDisabled'],
|
|
78
97
|
'domainSold': value['domainSold'],
|
|
79
98
|
'domainTransferCompleted': value['domainTransferCompleted'],
|
|
80
99
|
'leadClosed': value['leadClosed'],
|
|
@@ -83,5 +102,10 @@ function UserNotificationSettingsDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
83
102
|
'leadMessagesFrequencyInMinutes': value['leadMessagesFrequencyInMinutes'],
|
|
84
103
|
'tasksFrequency': value['tasksFrequency'],
|
|
85
104
|
'taskDailyTime': value['taskDailyTime'],
|
|
105
|
+
'leadTasks': value['leadTasks'],
|
|
106
|
+
'domainTransferTasks': value['domainTransferTasks'],
|
|
107
|
+
'leadNewOffer': value['leadNewOffer'],
|
|
108
|
+
'leadNewMessage': value['leadNewMessage'],
|
|
109
|
+
'leadStatusChanged': value['leadStatusChanged'],
|
|
86
110
|
};
|
|
87
111
|
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -132,9 +132,7 @@ export * from './IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFe
|
|
|
132
132
|
export * from './IntersectionDomainDtoWithAccountDto';
|
|
133
133
|
export * from './IntersectionDomainDtoWithHijackerDtoWithAccountDto';
|
|
134
134
|
export * from './IntersectionDomainDtoWithSeoMetricsDto';
|
|
135
|
-
export * from './IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDto';
|
|
136
135
|
export * from './IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto';
|
|
137
|
-
export * from './IntersectionLeadDtoWithListFieldsDto';
|
|
138
136
|
export * from './IntersectionListAccountDtoWithAccountCommissionDto';
|
|
139
137
|
export * from './IntersectionTaskListTaskDto';
|
|
140
138
|
export * from './InvoiceDomainDto';
|
|
@@ -171,6 +169,7 @@ export * from './ListBankAccounts200Response';
|
|
|
171
169
|
export * from './ListDomains200Response';
|
|
172
170
|
export * from './ListDomainsWithUpdatedPricing200Response';
|
|
173
171
|
export * from './ListLeadMessagesDto';
|
|
172
|
+
export * from './ListLeadsResultItem';
|
|
174
173
|
export * from './ListNotifications200Response';
|
|
175
174
|
export * from './LoginDto';
|
|
176
175
|
export * from './LoginInput';
|
|
@@ -230,6 +229,7 @@ export * from './SellerDomainTransferListItemDto';
|
|
|
230
229
|
export * from './SellerInvoiceDomainDto';
|
|
231
230
|
export * from './SellerInvoiceDto';
|
|
232
231
|
export * from './SellerInvoiceSellerAccountDto';
|
|
232
|
+
export * from './SellerLeadDetails';
|
|
233
233
|
export * from './SellerPendingPayoutsByCurrencyStatsItemDto';
|
|
234
234
|
export * from './SellerRemainingAndTotalLeaseToOwnByCurrencyStatsItemDto';
|
|
235
235
|
export * from './SellerSalesCountStatsItemDto';
|
|
@@ -279,6 +279,8 @@ export * from './UpdateDomainInput';
|
|
|
279
279
|
export * from './UpdateDomainTransferAuthCodeInput';
|
|
280
280
|
export * from './UpdateDomainTransferIpsTagInput';
|
|
281
281
|
export * from './UpdateLeadInput';
|
|
282
|
+
export * from './UpdateLeadMuteStatusForBuyerInput';
|
|
283
|
+
export * from './UpdateLeadMuteStatusInput';
|
|
282
284
|
export * from './UpdateOrderInput';
|
|
283
285
|
export * from './UpdateSubscriptionBillingPeriodicityInput';
|
|
284
286
|
export * from './UpdateSubscriptionInput';
|
package/dist/models/index.js
CHANGED
|
@@ -150,9 +150,7 @@ __exportStar(require("./IntersectionAccountDtoWithSettingsDtoWithNotificationsDt
|
|
|
150
150
|
__exportStar(require("./IntersectionDomainDtoWithAccountDto"), exports);
|
|
151
151
|
__exportStar(require("./IntersectionDomainDtoWithHijackerDtoWithAccountDto"), exports);
|
|
152
152
|
__exportStar(require("./IntersectionDomainDtoWithSeoMetricsDto"), exports);
|
|
153
|
-
__exportStar(require("./IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDto"), exports);
|
|
154
153
|
__exportStar(require("./IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto"), exports);
|
|
155
|
-
__exportStar(require("./IntersectionLeadDtoWithListFieldsDto"), exports);
|
|
156
154
|
__exportStar(require("./IntersectionListAccountDtoWithAccountCommissionDto"), exports);
|
|
157
155
|
__exportStar(require("./IntersectionTaskListTaskDto"), exports);
|
|
158
156
|
__exportStar(require("./InvoiceDomainDto"), exports);
|
|
@@ -189,6 +187,7 @@ __exportStar(require("./ListBankAccounts200Response"), exports);
|
|
|
189
187
|
__exportStar(require("./ListDomains200Response"), exports);
|
|
190
188
|
__exportStar(require("./ListDomainsWithUpdatedPricing200Response"), exports);
|
|
191
189
|
__exportStar(require("./ListLeadMessagesDto"), exports);
|
|
190
|
+
__exportStar(require("./ListLeadsResultItem"), exports);
|
|
192
191
|
__exportStar(require("./ListNotifications200Response"), exports);
|
|
193
192
|
__exportStar(require("./LoginDto"), exports);
|
|
194
193
|
__exportStar(require("./LoginInput"), exports);
|
|
@@ -248,6 +247,7 @@ __exportStar(require("./SellerDomainTransferListItemDto"), exports);
|
|
|
248
247
|
__exportStar(require("./SellerInvoiceDomainDto"), exports);
|
|
249
248
|
__exportStar(require("./SellerInvoiceDto"), exports);
|
|
250
249
|
__exportStar(require("./SellerInvoiceSellerAccountDto"), exports);
|
|
250
|
+
__exportStar(require("./SellerLeadDetails"), exports);
|
|
251
251
|
__exportStar(require("./SellerPendingPayoutsByCurrencyStatsItemDto"), exports);
|
|
252
252
|
__exportStar(require("./SellerRemainingAndTotalLeaseToOwnByCurrencyStatsItemDto"), exports);
|
|
253
253
|
__exportStar(require("./SellerSalesCountStatsItemDto"), exports);
|
|
@@ -297,6 +297,8 @@ __exportStar(require("./UpdateDomainInput"), exports);
|
|
|
297
297
|
__exportStar(require("./UpdateDomainTransferAuthCodeInput"), exports);
|
|
298
298
|
__exportStar(require("./UpdateDomainTransferIpsTagInput"), exports);
|
|
299
299
|
__exportStar(require("./UpdateLeadInput"), exports);
|
|
300
|
+
__exportStar(require("./UpdateLeadMuteStatusForBuyerInput"), exports);
|
|
301
|
+
__exportStar(require("./UpdateLeadMuteStatusInput"), exports);
|
|
300
302
|
__exportStar(require("./UpdateOrderInput"), exports);
|
|
301
303
|
__exportStar(require("./UpdateSubscriptionBillingPeriodicityInput"), exports);
|
|
302
304
|
__exportStar(require("./UpdateSubscriptionInput"), exports);
|
package/package.json
CHANGED
package/src/apis/BuyersApi.ts
CHANGED
|
@@ -34,6 +34,7 @@ import type {
|
|
|
34
34
|
SetDomainTransferConfirmationInput,
|
|
35
35
|
StoreBuyerLocaleInput,
|
|
36
36
|
UpdateBuyerDomainTransferIpsTagInputDto,
|
|
37
|
+
UpdateLeadMuteStatusForBuyerInput,
|
|
37
38
|
ValidationException,
|
|
38
39
|
} from '../models/index';
|
|
39
40
|
import {
|
|
@@ -75,6 +76,8 @@ import {
|
|
|
75
76
|
StoreBuyerLocaleInputToJSON,
|
|
76
77
|
UpdateBuyerDomainTransferIpsTagInputDtoFromJSON,
|
|
77
78
|
UpdateBuyerDomainTransferIpsTagInputDtoToJSON,
|
|
79
|
+
UpdateLeadMuteStatusForBuyerInputFromJSON,
|
|
80
|
+
UpdateLeadMuteStatusForBuyerInputToJSON,
|
|
78
81
|
ValidationExceptionFromJSON,
|
|
79
82
|
ValidationExceptionToJSON,
|
|
80
83
|
} from '../models/index';
|
|
@@ -172,6 +175,11 @@ export interface BuyersApiUpdateDomainTransferIpsTagRequest {
|
|
|
172
175
|
updateBuyerDomainTransferIpsTagInputDto: UpdateBuyerDomainTransferIpsTagInputDto;
|
|
173
176
|
}
|
|
174
177
|
|
|
178
|
+
export interface BuyersApiUpdateLeadMuteStatusForBuyerRequest {
|
|
179
|
+
leadId: string;
|
|
180
|
+
updateLeadMuteStatusForBuyerInput: UpdateLeadMuteStatusForBuyerInput;
|
|
181
|
+
}
|
|
182
|
+
|
|
175
183
|
export interface BuyersApiVerifyBuyerLeadRequest {
|
|
176
184
|
leadId: string;
|
|
177
185
|
}
|
|
@@ -1112,6 +1120,56 @@ export class BuyersApi extends runtime.BaseAPI {
|
|
|
1112
1120
|
await this.updateDomainTransferIpsTagRaw(requestParameters, initOverrides);
|
|
1113
1121
|
}
|
|
1114
1122
|
|
|
1123
|
+
/**
|
|
1124
|
+
*
|
|
1125
|
+
*/
|
|
1126
|
+
async updateLeadMuteStatusForBuyerRaw(requestParameters: BuyersApiUpdateLeadMuteStatusForBuyerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
1127
|
+
if (requestParameters['leadId'] == null) {
|
|
1128
|
+
throw new runtime.RequiredError(
|
|
1129
|
+
'leadId',
|
|
1130
|
+
'Required parameter "leadId" was null or undefined when calling updateLeadMuteStatusForBuyer().'
|
|
1131
|
+
);
|
|
1132
|
+
}
|
|
1133
|
+
|
|
1134
|
+
if (requestParameters['updateLeadMuteStatusForBuyerInput'] == null) {
|
|
1135
|
+
throw new runtime.RequiredError(
|
|
1136
|
+
'updateLeadMuteStatusForBuyerInput',
|
|
1137
|
+
'Required parameter "updateLeadMuteStatusForBuyerInput" was null or undefined when calling updateLeadMuteStatusForBuyer().'
|
|
1138
|
+
);
|
|
1139
|
+
}
|
|
1140
|
+
|
|
1141
|
+
const queryParameters: any = {};
|
|
1142
|
+
|
|
1143
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1144
|
+
|
|
1145
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1146
|
+
|
|
1147
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1148
|
+
const token = this.configuration.accessToken;
|
|
1149
|
+
const tokenString = await token("bearer", []);
|
|
1150
|
+
|
|
1151
|
+
if (tokenString) {
|
|
1152
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1153
|
+
}
|
|
1154
|
+
}
|
|
1155
|
+
const response = await this.request({
|
|
1156
|
+
path: `/buyers/private/leads/{leadId}/status/mute`.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters['leadId']))),
|
|
1157
|
+
method: 'PUT',
|
|
1158
|
+
headers: headerParameters,
|
|
1159
|
+
query: queryParameters,
|
|
1160
|
+
body: UpdateLeadMuteStatusForBuyerInputToJSON(requestParameters['updateLeadMuteStatusForBuyerInput']),
|
|
1161
|
+
}, initOverrides);
|
|
1162
|
+
|
|
1163
|
+
return new runtime.VoidApiResponse(response);
|
|
1164
|
+
}
|
|
1165
|
+
|
|
1166
|
+
/**
|
|
1167
|
+
*
|
|
1168
|
+
*/
|
|
1169
|
+
async updateLeadMuteStatusForBuyer(requestParameters: BuyersApiUpdateLeadMuteStatusForBuyerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
1170
|
+
await this.updateLeadMuteStatusForBuyerRaw(requestParameters, initOverrides);
|
|
1171
|
+
}
|
|
1172
|
+
|
|
1115
1173
|
/**
|
|
1116
1174
|
*
|
|
1117
1175
|
*/
|
package/src/apis/LeadsApi.ts
CHANGED
|
@@ -19,13 +19,14 @@ import type {
|
|
|
19
19
|
BatchReadSellerLeadMessageInput,
|
|
20
20
|
CreateLeadMessageInput,
|
|
21
21
|
CreateManualLeadInput,
|
|
22
|
-
IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDto,
|
|
23
22
|
IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto,
|
|
24
23
|
LeadLeaseToOwnAndRentConfigurationPresetsDto,
|
|
25
24
|
List200Response,
|
|
26
25
|
ListLeadMessagesDto,
|
|
27
26
|
ObjectId,
|
|
28
27
|
PutLeadOfferInput,
|
|
28
|
+
SellerLeadDetails,
|
|
29
|
+
UpdateLeadMuteStatusInput,
|
|
29
30
|
ValidationException,
|
|
30
31
|
} from '../models/index';
|
|
31
32
|
import {
|
|
@@ -37,8 +38,6 @@ import {
|
|
|
37
38
|
CreateLeadMessageInputToJSON,
|
|
38
39
|
CreateManualLeadInputFromJSON,
|
|
39
40
|
CreateManualLeadInputToJSON,
|
|
40
|
-
IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDtoFromJSON,
|
|
41
|
-
IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDtoToJSON,
|
|
42
41
|
IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoFromJSON,
|
|
43
42
|
IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoToJSON,
|
|
44
43
|
LeadLeaseToOwnAndRentConfigurationPresetsDtoFromJSON,
|
|
@@ -51,6 +50,10 @@ import {
|
|
|
51
50
|
ObjectIdToJSON,
|
|
52
51
|
PutLeadOfferInputFromJSON,
|
|
53
52
|
PutLeadOfferInputToJSON,
|
|
53
|
+
SellerLeadDetailsFromJSON,
|
|
54
|
+
SellerLeadDetailsToJSON,
|
|
55
|
+
UpdateLeadMuteStatusInputFromJSON,
|
|
56
|
+
UpdateLeadMuteStatusInputToJSON,
|
|
54
57
|
ValidationExceptionFromJSON,
|
|
55
58
|
ValidationExceptionToJSON,
|
|
56
59
|
} from '../models/index';
|
|
@@ -117,6 +120,11 @@ export interface LeadsApiUnarchiveLeadRequest {
|
|
|
117
120
|
leadId: string;
|
|
118
121
|
}
|
|
119
122
|
|
|
123
|
+
export interface LeadsApiUpdateLeadMuteStatusRequest {
|
|
124
|
+
leadId: string;
|
|
125
|
+
updateLeadMuteStatusInput: UpdateLeadMuteStatusInput;
|
|
126
|
+
}
|
|
127
|
+
|
|
120
128
|
/**
|
|
121
129
|
*
|
|
122
130
|
*/
|
|
@@ -349,7 +357,7 @@ export class LeadsApi extends runtime.BaseAPI {
|
|
|
349
357
|
/**
|
|
350
358
|
*
|
|
351
359
|
*/
|
|
352
|
-
async getLeadRaw(requestParameters: LeadsApiGetLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
360
|
+
async getLeadRaw(requestParameters: LeadsApiGetLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SellerLeadDetails>> {
|
|
353
361
|
if (requestParameters['leadId'] == null) {
|
|
354
362
|
throw new runtime.RequiredError(
|
|
355
363
|
'leadId',
|
|
@@ -376,13 +384,13 @@ export class LeadsApi extends runtime.BaseAPI {
|
|
|
376
384
|
query: queryParameters,
|
|
377
385
|
}, initOverrides);
|
|
378
386
|
|
|
379
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
387
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SellerLeadDetailsFromJSON(jsonValue));
|
|
380
388
|
}
|
|
381
389
|
|
|
382
390
|
/**
|
|
383
391
|
*
|
|
384
392
|
*/
|
|
385
|
-
async getLead(requestParameters: LeadsApiGetLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
393
|
+
async getLead(requestParameters: LeadsApiGetLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SellerLeadDetails> {
|
|
386
394
|
const response = await this.getLeadRaw(requestParameters, initOverrides);
|
|
387
395
|
return await response.value();
|
|
388
396
|
}
|
|
@@ -727,4 +735,54 @@ export class LeadsApi extends runtime.BaseAPI {
|
|
|
727
735
|
await this.unarchiveLeadRaw(requestParameters, initOverrides);
|
|
728
736
|
}
|
|
729
737
|
|
|
738
|
+
/**
|
|
739
|
+
*
|
|
740
|
+
*/
|
|
741
|
+
async updateLeadMuteStatusRaw(requestParameters: LeadsApiUpdateLeadMuteStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
742
|
+
if (requestParameters['leadId'] == null) {
|
|
743
|
+
throw new runtime.RequiredError(
|
|
744
|
+
'leadId',
|
|
745
|
+
'Required parameter "leadId" was null or undefined when calling updateLeadMuteStatus().'
|
|
746
|
+
);
|
|
747
|
+
}
|
|
748
|
+
|
|
749
|
+
if (requestParameters['updateLeadMuteStatusInput'] == null) {
|
|
750
|
+
throw new runtime.RequiredError(
|
|
751
|
+
'updateLeadMuteStatusInput',
|
|
752
|
+
'Required parameter "updateLeadMuteStatusInput" was null or undefined when calling updateLeadMuteStatus().'
|
|
753
|
+
);
|
|
754
|
+
}
|
|
755
|
+
|
|
756
|
+
const queryParameters: any = {};
|
|
757
|
+
|
|
758
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
759
|
+
|
|
760
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
761
|
+
|
|
762
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
763
|
+
const token = this.configuration.accessToken;
|
|
764
|
+
const tokenString = await token("bearer", []);
|
|
765
|
+
|
|
766
|
+
if (tokenString) {
|
|
767
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
768
|
+
}
|
|
769
|
+
}
|
|
770
|
+
const response = await this.request({
|
|
771
|
+
path: `/private/leads/{leadId}/status/mute-for-seller`.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters['leadId']))),
|
|
772
|
+
method: 'PUT',
|
|
773
|
+
headers: headerParameters,
|
|
774
|
+
query: queryParameters,
|
|
775
|
+
body: UpdateLeadMuteStatusInputToJSON(requestParameters['updateLeadMuteStatusInput']),
|
|
776
|
+
}, initOverrides);
|
|
777
|
+
|
|
778
|
+
return new runtime.VoidApiResponse(response);
|
|
779
|
+
}
|
|
780
|
+
|
|
781
|
+
/**
|
|
782
|
+
*
|
|
783
|
+
*/
|
|
784
|
+
async updateLeadMuteStatus(requestParameters: LeadsApiUpdateLeadMuteStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
785
|
+
await this.updateLeadMuteStatusRaw(requestParameters, initOverrides);
|
|
786
|
+
}
|
|
787
|
+
|
|
730
788
|
}
|
|
@@ -82,6 +82,12 @@ export interface BuyerLeadListItemDto {
|
|
|
82
82
|
* @memberof BuyerLeadListItemDto
|
|
83
83
|
*/
|
|
84
84
|
orderPaymentUrl: string | null;
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
* @type {boolean}
|
|
88
|
+
* @memberof BuyerLeadListItemDto
|
|
89
|
+
*/
|
|
90
|
+
isMuted: boolean;
|
|
85
91
|
}
|
|
86
92
|
|
|
87
93
|
|
|
@@ -121,6 +127,7 @@ export function instanceOfBuyerLeadListItemDto(value: object): value is BuyerLea
|
|
|
121
127
|
if (!('domain' in value) || value['domain'] === undefined) return false;
|
|
122
128
|
if (!('unreadMessages' in value) || value['unreadMessages'] === undefined) return false;
|
|
123
129
|
if (!('orderPaymentUrl' in value) || value['orderPaymentUrl'] === undefined) return false;
|
|
130
|
+
if (!('isMuted' in value) || value['isMuted'] === undefined) return false;
|
|
124
131
|
return true;
|
|
125
132
|
}
|
|
126
133
|
|
|
@@ -142,6 +149,7 @@ export function BuyerLeadListItemDtoFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
142
149
|
'domain': BuyerLeadListItemDomainDtoFromJSON(json['domain']),
|
|
143
150
|
'unreadMessages': json['unreadMessages'],
|
|
144
151
|
'orderPaymentUrl': json['orderPaymentUrl'],
|
|
152
|
+
'isMuted': json['isMuted'],
|
|
145
153
|
};
|
|
146
154
|
}
|
|
147
155
|
|
|
@@ -164,6 +172,7 @@ export function BuyerLeadListItemDtoToJSONTyped(value?: BuyerLeadListItemDto | n
|
|
|
164
172
|
'domain': BuyerLeadListItemDomainDtoToJSON(value['domain']),
|
|
165
173
|
'unreadMessages': value['unreadMessages'],
|
|
166
174
|
'orderPaymentUrl': value['orderPaymentUrl'],
|
|
175
|
+
'isMuted': value['isMuted'],
|
|
167
176
|
};
|
|
168
177
|
}
|
|
169
178
|
|
|
@@ -138,6 +138,12 @@ export interface IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetails
|
|
|
138
138
|
* @memberof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto
|
|
139
139
|
*/
|
|
140
140
|
isPriceNegotiatorAgentPaused: boolean;
|
|
141
|
+
/**
|
|
142
|
+
*
|
|
143
|
+
* @type {boolean}
|
|
144
|
+
* @memberof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto
|
|
145
|
+
*/
|
|
146
|
+
isMutedForBuyer: boolean;
|
|
141
147
|
}
|
|
142
148
|
|
|
143
149
|
|
|
@@ -195,6 +201,7 @@ export function instanceOfIntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuy
|
|
|
195
201
|
if (!('unreadSellerMessagesNumber' in value) || value['unreadSellerMessagesNumber'] === undefined) return false;
|
|
196
202
|
if (!('orderPaymentUrl' in value) || value['orderPaymentUrl'] === undefined) return false;
|
|
197
203
|
if (!('isPriceNegotiatorAgentPaused' in value) || value['isPriceNegotiatorAgentPaused'] === undefined) return false;
|
|
204
|
+
if (!('isMutedForBuyer' in value) || value['isMutedForBuyer'] === undefined) return false;
|
|
198
205
|
return true;
|
|
199
206
|
}
|
|
200
207
|
|
|
@@ -223,6 +230,7 @@ export function IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsD
|
|
|
223
230
|
'unreadSellerMessagesNumber': json['unreadSellerMessagesNumber'],
|
|
224
231
|
'orderPaymentUrl': json['orderPaymentUrl'],
|
|
225
232
|
'isPriceNegotiatorAgentPaused': json['isPriceNegotiatorAgentPaused'],
|
|
233
|
+
'isMutedForBuyer': json['isMutedForBuyer'],
|
|
226
234
|
};
|
|
227
235
|
}
|
|
228
236
|
|
|
@@ -252,6 +260,7 @@ export function IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsD
|
|
|
252
260
|
'unreadSellerMessagesNumber': value['unreadSellerMessagesNumber'],
|
|
253
261
|
'orderPaymentUrl': value['orderPaymentUrl'],
|
|
254
262
|
'isPriceNegotiatorAgentPaused': value['isPriceNegotiatorAgentPaused'],
|
|
263
|
+
'isMutedForBuyer': value['isMutedForBuyer'],
|
|
255
264
|
};
|
|
256
265
|
}
|
|
257
266
|
|
package/src/models/LeadDto.ts
CHANGED
|
@@ -112,6 +112,12 @@ export interface LeadDto {
|
|
|
112
112
|
* @memberof LeadDto
|
|
113
113
|
*/
|
|
114
114
|
manualType: LeadDtoManualTypeEnum | null;
|
|
115
|
+
/**
|
|
116
|
+
*
|
|
117
|
+
* @type {boolean}
|
|
118
|
+
* @memberof LeadDto
|
|
119
|
+
*/
|
|
120
|
+
isMutedForBuyer: boolean;
|
|
115
121
|
}
|
|
116
122
|
|
|
117
123
|
|
|
@@ -167,6 +173,7 @@ export function instanceOfLeadDto(value: object): value is LeadDto {
|
|
|
167
173
|
if (!('orderPaymentUrl' in value) || value['orderPaymentUrl'] === undefined) return false;
|
|
168
174
|
if (!('isPriceNegotiatorAgentPaused' in value) || value['isPriceNegotiatorAgentPaused'] === undefined) return false;
|
|
169
175
|
if (!('manualType' in value) || value['manualType'] === undefined) return false;
|
|
176
|
+
if (!('isMutedForBuyer' in value) || value['isMutedForBuyer'] === undefined) return false;
|
|
170
177
|
return true;
|
|
171
178
|
}
|
|
172
179
|
|
|
@@ -193,6 +200,7 @@ export function LeadDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): L
|
|
|
193
200
|
'orderPaymentUrl': json['orderPaymentUrl'],
|
|
194
201
|
'isPriceNegotiatorAgentPaused': json['isPriceNegotiatorAgentPaused'],
|
|
195
202
|
'manualType': json['manualType'],
|
|
203
|
+
'isMutedForBuyer': json['isMutedForBuyer'],
|
|
196
204
|
};
|
|
197
205
|
}
|
|
198
206
|
|
|
@@ -220,6 +228,7 @@ export function LeadDtoToJSONTyped(value?: LeadDto | null, ignoreDiscriminator:
|
|
|
220
228
|
'orderPaymentUrl': value['orderPaymentUrl'],
|
|
221
229
|
'isPriceNegotiatorAgentPaused': value['isPriceNegotiatorAgentPaused'],
|
|
222
230
|
'manualType': value['manualType'],
|
|
231
|
+
'isMutedForBuyer': value['isMutedForBuyer'],
|
|
223
232
|
};
|
|
224
233
|
}
|
|
225
234
|
|
|
@@ -20,13 +20,13 @@ import {
|
|
|
20
20
|
PaginateResponseLinksToJSON,
|
|
21
21
|
PaginateResponseLinksToJSONTyped,
|
|
22
22
|
} from './PaginateResponseLinks';
|
|
23
|
-
import type {
|
|
23
|
+
import type { ListLeadsResultItem } from './ListLeadsResultItem';
|
|
24
24
|
import {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
} from './
|
|
25
|
+
ListLeadsResultItemFromJSON,
|
|
26
|
+
ListLeadsResultItemFromJSONTyped,
|
|
27
|
+
ListLeadsResultItemToJSON,
|
|
28
|
+
ListLeadsResultItemToJSONTyped,
|
|
29
|
+
} from './ListLeadsResultItem';
|
|
30
30
|
import type { PaginateResponseMeta } from './PaginateResponseMeta';
|
|
31
31
|
import {
|
|
32
32
|
PaginateResponseMetaFromJSON,
|
|
@@ -43,10 +43,10 @@ import {
|
|
|
43
43
|
export interface List200Response {
|
|
44
44
|
/**
|
|
45
45
|
*
|
|
46
|
-
* @type {Array<
|
|
46
|
+
* @type {Array<ListLeadsResultItem>}
|
|
47
47
|
* @memberof List200Response
|
|
48
48
|
*/
|
|
49
|
-
data: Array<
|
|
49
|
+
data: Array<ListLeadsResultItem>;
|
|
50
50
|
/**
|
|
51
51
|
*
|
|
52
52
|
* @type {PaginateResponseMeta}
|
|
@@ -81,7 +81,7 @@ export function List200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
81
81
|
}
|
|
82
82
|
return {
|
|
83
83
|
|
|
84
|
-
'data': ((json['data'] as Array<any>).map(
|
|
84
|
+
'data': ((json['data'] as Array<any>).map(ListLeadsResultItemFromJSON)),
|
|
85
85
|
'meta': PaginateResponseMetaFromJSON(json['meta']),
|
|
86
86
|
'links': PaginateResponseLinksFromJSON(json['links']),
|
|
87
87
|
};
|
|
@@ -98,7 +98,7 @@ export function List200ResponseToJSONTyped(value?: List200Response | null, ignor
|
|
|
98
98
|
|
|
99
99
|
return {
|
|
100
100
|
|
|
101
|
-
'data': ((value['data'] as Array<any>).map(
|
|
101
|
+
'data': ((value['data'] as Array<any>).map(ListLeadsResultItemToJSON)),
|
|
102
102
|
'meta': PaginateResponseMetaToJSON(value['meta']),
|
|
103
103
|
'links': PaginateResponseLinksToJSON(value['links']),
|
|
104
104
|
};
|