@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
package/.openapi-generator/FILES
CHANGED
|
@@ -164,9 +164,7 @@ src/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureF
|
|
|
164
164
|
src/models/IntersectionDomainDtoWithAccountDto.ts
|
|
165
165
|
src/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.ts
|
|
166
166
|
src/models/IntersectionDomainDtoWithSeoMetricsDto.ts
|
|
167
|
-
src/models/IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDto.ts
|
|
168
167
|
src/models/IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto.ts
|
|
169
|
-
src/models/IntersectionLeadDtoWithListFieldsDto.ts
|
|
170
168
|
src/models/IntersectionListAccountDtoWithAccountCommissionDto.ts
|
|
171
169
|
src/models/IntersectionTaskListTaskDto.ts
|
|
172
170
|
src/models/InvoiceDomainDto.ts
|
|
@@ -203,6 +201,7 @@ src/models/ListBankAccounts200Response.ts
|
|
|
203
201
|
src/models/ListDomains200Response.ts
|
|
204
202
|
src/models/ListDomainsWithUpdatedPricing200Response.ts
|
|
205
203
|
src/models/ListLeadMessagesDto.ts
|
|
204
|
+
src/models/ListLeadsResultItem.ts
|
|
206
205
|
src/models/ListNotifications200Response.ts
|
|
207
206
|
src/models/LoginDto.ts
|
|
208
207
|
src/models/LoginInput.ts
|
|
@@ -262,6 +261,7 @@ src/models/SellerDomainTransferListItemDto.ts
|
|
|
262
261
|
src/models/SellerInvoiceDomainDto.ts
|
|
263
262
|
src/models/SellerInvoiceDto.ts
|
|
264
263
|
src/models/SellerInvoiceSellerAccountDto.ts
|
|
264
|
+
src/models/SellerLeadDetails.ts
|
|
265
265
|
src/models/SellerPendingPayoutsByCurrencyStatsItemDto.ts
|
|
266
266
|
src/models/SellerRemainingAndTotalLeaseToOwnByCurrencyStatsItemDto.ts
|
|
267
267
|
src/models/SellerSalesCountStatsItemDto.ts
|
|
@@ -311,6 +311,8 @@ src/models/UpdateDomainInput.ts
|
|
|
311
311
|
src/models/UpdateDomainTransferAuthCodeInput.ts
|
|
312
312
|
src/models/UpdateDomainTransferIpsTagInput.ts
|
|
313
313
|
src/models/UpdateLeadInput.ts
|
|
314
|
+
src/models/UpdateLeadMuteStatusForBuyerInput.ts
|
|
315
|
+
src/models/UpdateLeadMuteStatusInput.ts
|
|
314
316
|
src/models/UpdateOrderInput.ts
|
|
315
317
|
src/models/UpdateSubscriptionBillingPeriodicityInput.ts
|
|
316
318
|
src/models/UpdateSubscriptionInput.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.326
|
|
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.326 --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
|
+
899d51330891933bb87ad80910635ff1bad49c667ae2531bb7c67c67e88bfb3550eb0ac9a0b9b54b3aebc7aa5cd645ef
|
package/dist/apis/BuyersApi.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { BatchDeleteBuyerLeadsInput, BatchReadBuyerLeadMessageInput, BatchVerifyBuyerLeadsInput, BuyerDomainTransferAuthCodeDto, BuyerSessionDto, CreateBuyerLeadMessageInput, GetBuyerInvoices200Response, GetBuyerLeads200Response, GetBuyerSubscriptions200Response, GetBuyerTransfers200Response, LeadDto, LeadMessageDto, ObjectId, PutBuyerLeadOfferInput, SetDomainTransferConfirmationInput, StoreBuyerLocaleInput, UpdateBuyerDomainTransferIpsTagInputDto } from '../models/index';
|
|
13
|
+
import type { BatchDeleteBuyerLeadsInput, BatchReadBuyerLeadMessageInput, BatchVerifyBuyerLeadsInput, BuyerDomainTransferAuthCodeDto, BuyerSessionDto, CreateBuyerLeadMessageInput, GetBuyerInvoices200Response, GetBuyerLeads200Response, GetBuyerSubscriptions200Response, GetBuyerTransfers200Response, LeadDto, LeadMessageDto, ObjectId, PutBuyerLeadOfferInput, SetDomainTransferConfirmationInput, StoreBuyerLocaleInput, UpdateBuyerDomainTransferIpsTagInputDto, UpdateLeadMuteStatusForBuyerInput } from '../models/index';
|
|
14
14
|
export interface BuyersApiAcceptBuyerLeadOfferRequest {
|
|
15
15
|
leadId: string;
|
|
16
16
|
}
|
|
@@ -85,6 +85,10 @@ export interface BuyersApiUpdateDomainTransferIpsTagRequest {
|
|
|
85
85
|
transferId: string;
|
|
86
86
|
updateBuyerDomainTransferIpsTagInputDto: UpdateBuyerDomainTransferIpsTagInputDto;
|
|
87
87
|
}
|
|
88
|
+
export interface BuyersApiUpdateLeadMuteStatusForBuyerRequest {
|
|
89
|
+
leadId: string;
|
|
90
|
+
updateLeadMuteStatusForBuyerInput: UpdateLeadMuteStatusForBuyerInput;
|
|
91
|
+
}
|
|
88
92
|
export interface BuyersApiVerifyBuyerLeadRequest {
|
|
89
93
|
leadId: string;
|
|
90
94
|
}
|
|
@@ -260,6 +264,14 @@ export declare class BuyersApi extends runtime.BaseAPI {
|
|
|
260
264
|
*
|
|
261
265
|
*/
|
|
262
266
|
updateDomainTransferIpsTag(requestParameters: BuyersApiUpdateDomainTransferIpsTagRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
267
|
+
/**
|
|
268
|
+
*
|
|
269
|
+
*/
|
|
270
|
+
updateLeadMuteStatusForBuyerRaw(requestParameters: BuyersApiUpdateLeadMuteStatusForBuyerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
271
|
+
/**
|
|
272
|
+
*
|
|
273
|
+
*/
|
|
274
|
+
updateLeadMuteStatusForBuyer(requestParameters: BuyersApiUpdateLeadMuteStatusForBuyerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
263
275
|
/**
|
|
264
276
|
*
|
|
265
277
|
*/
|
package/dist/apis/BuyersApi.js
CHANGED
|
@@ -1231,6 +1231,62 @@ var BuyersApi = /** @class */ (function (_super) {
|
|
|
1231
1231
|
});
|
|
1232
1232
|
});
|
|
1233
1233
|
};
|
|
1234
|
+
/**
|
|
1235
|
+
*
|
|
1236
|
+
*/
|
|
1237
|
+
BuyersApi.prototype.updateLeadMuteStatusForBuyerRaw = function (requestParameters, initOverrides) {
|
|
1238
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1239
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
1240
|
+
return __generator(this, function (_a) {
|
|
1241
|
+
switch (_a.label) {
|
|
1242
|
+
case 0:
|
|
1243
|
+
if (requestParameters['leadId'] == null) {
|
|
1244
|
+
throw new runtime.RequiredError('leadId', 'Required parameter "leadId" was null or undefined when calling updateLeadMuteStatusForBuyer().');
|
|
1245
|
+
}
|
|
1246
|
+
if (requestParameters['updateLeadMuteStatusForBuyerInput'] == null) {
|
|
1247
|
+
throw new runtime.RequiredError('updateLeadMuteStatusForBuyerInput', 'Required parameter "updateLeadMuteStatusForBuyerInput" was null or undefined when calling updateLeadMuteStatusForBuyer().');
|
|
1248
|
+
}
|
|
1249
|
+
queryParameters = {};
|
|
1250
|
+
headerParameters = {};
|
|
1251
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1252
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
1253
|
+
token = this.configuration.accessToken;
|
|
1254
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
1255
|
+
case 1:
|
|
1256
|
+
tokenString = _a.sent();
|
|
1257
|
+
if (tokenString) {
|
|
1258
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
1259
|
+
}
|
|
1260
|
+
_a.label = 2;
|
|
1261
|
+
case 2: return [4 /*yield*/, this.request({
|
|
1262
|
+
path: "/buyers/private/leads/{leadId}/status/mute".replace("{".concat("leadId", "}"), encodeURIComponent(String(requestParameters['leadId']))),
|
|
1263
|
+
method: 'PUT',
|
|
1264
|
+
headers: headerParameters,
|
|
1265
|
+
query: queryParameters,
|
|
1266
|
+
body: (0, index_1.UpdateLeadMuteStatusForBuyerInputToJSON)(requestParameters['updateLeadMuteStatusForBuyerInput']),
|
|
1267
|
+
}, initOverrides)];
|
|
1268
|
+
case 3:
|
|
1269
|
+
response = _a.sent();
|
|
1270
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
1271
|
+
}
|
|
1272
|
+
});
|
|
1273
|
+
});
|
|
1274
|
+
};
|
|
1275
|
+
/**
|
|
1276
|
+
*
|
|
1277
|
+
*/
|
|
1278
|
+
BuyersApi.prototype.updateLeadMuteStatusForBuyer = function (requestParameters, initOverrides) {
|
|
1279
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1280
|
+
return __generator(this, function (_a) {
|
|
1281
|
+
switch (_a.label) {
|
|
1282
|
+
case 0: return [4 /*yield*/, this.updateLeadMuteStatusForBuyerRaw(requestParameters, initOverrides)];
|
|
1283
|
+
case 1:
|
|
1284
|
+
_a.sent();
|
|
1285
|
+
return [2 /*return*/];
|
|
1286
|
+
}
|
|
1287
|
+
});
|
|
1288
|
+
});
|
|
1289
|
+
};
|
|
1234
1290
|
/**
|
|
1235
1291
|
*
|
|
1236
1292
|
*/
|
package/dist/apis/LeadsApi.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { BatchReadSellerLeadMessageInput, CreateLeadMessageInput, CreateManualLeadInput,
|
|
13
|
+
import type { BatchReadSellerLeadMessageInput, CreateLeadMessageInput, CreateManualLeadInput, IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto, LeadLeaseToOwnAndRentConfigurationPresetsDto, List200Response, ListLeadMessagesDto, ObjectId, PutLeadOfferInput, SellerLeadDetails, UpdateLeadMuteStatusInput } from '../models/index';
|
|
14
14
|
export interface LeadsApiAcceptLeadOfferRequest {
|
|
15
15
|
leadId: string;
|
|
16
16
|
}
|
|
@@ -59,6 +59,10 @@ export interface LeadsApiResumeLeadPriceNegotiatorAgentRequest {
|
|
|
59
59
|
export interface LeadsApiUnarchiveLeadRequest {
|
|
60
60
|
leadId: string;
|
|
61
61
|
}
|
|
62
|
+
export interface LeadsApiUpdateLeadMuteStatusRequest {
|
|
63
|
+
leadId: string;
|
|
64
|
+
updateLeadMuteStatusInput: UpdateLeadMuteStatusInput;
|
|
65
|
+
}
|
|
62
66
|
/**
|
|
63
67
|
*
|
|
64
68
|
*/
|
|
@@ -106,11 +110,11 @@ export declare class LeadsApi extends runtime.BaseAPI {
|
|
|
106
110
|
/**
|
|
107
111
|
*
|
|
108
112
|
*/
|
|
109
|
-
getLeadRaw(requestParameters: LeadsApiGetLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
113
|
+
getLeadRaw(requestParameters: LeadsApiGetLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SellerLeadDetails>>;
|
|
110
114
|
/**
|
|
111
115
|
*
|
|
112
116
|
*/
|
|
113
|
-
getLead(requestParameters: LeadsApiGetLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
117
|
+
getLead(requestParameters: LeadsApiGetLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SellerLeadDetails>;
|
|
114
118
|
/**
|
|
115
119
|
*
|
|
116
120
|
*/
|
|
@@ -175,4 +179,12 @@ export declare class LeadsApi extends runtime.BaseAPI {
|
|
|
175
179
|
*
|
|
176
180
|
*/
|
|
177
181
|
unarchiveLead(requestParameters: LeadsApiUnarchiveLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
182
|
+
/**
|
|
183
|
+
*
|
|
184
|
+
*/
|
|
185
|
+
updateLeadMuteStatusRaw(requestParameters: LeadsApiUpdateLeadMuteStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
186
|
+
/**
|
|
187
|
+
*
|
|
188
|
+
*/
|
|
189
|
+
updateLeadMuteStatus(requestParameters: LeadsApiUpdateLeadMuteStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
178
190
|
}
|
package/dist/apis/LeadsApi.js
CHANGED
|
@@ -375,7 +375,7 @@ var LeadsApi = /** @class */ (function (_super) {
|
|
|
375
375
|
}, initOverrides)];
|
|
376
376
|
case 3:
|
|
377
377
|
response = _a.sent();
|
|
378
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.
|
|
378
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.SellerLeadDetailsFromJSON)(jsonValue); })];
|
|
379
379
|
}
|
|
380
380
|
});
|
|
381
381
|
});
|
|
@@ -829,6 +829,62 @@ var LeadsApi = /** @class */ (function (_super) {
|
|
|
829
829
|
});
|
|
830
830
|
});
|
|
831
831
|
};
|
|
832
|
+
/**
|
|
833
|
+
*
|
|
834
|
+
*/
|
|
835
|
+
LeadsApi.prototype.updateLeadMuteStatusRaw = function (requestParameters, initOverrides) {
|
|
836
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
837
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
838
|
+
return __generator(this, function (_a) {
|
|
839
|
+
switch (_a.label) {
|
|
840
|
+
case 0:
|
|
841
|
+
if (requestParameters['leadId'] == null) {
|
|
842
|
+
throw new runtime.RequiredError('leadId', 'Required parameter "leadId" was null or undefined when calling updateLeadMuteStatus().');
|
|
843
|
+
}
|
|
844
|
+
if (requestParameters['updateLeadMuteStatusInput'] == null) {
|
|
845
|
+
throw new runtime.RequiredError('updateLeadMuteStatusInput', 'Required parameter "updateLeadMuteStatusInput" was null or undefined when calling updateLeadMuteStatus().');
|
|
846
|
+
}
|
|
847
|
+
queryParameters = {};
|
|
848
|
+
headerParameters = {};
|
|
849
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
850
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
851
|
+
token = this.configuration.accessToken;
|
|
852
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
853
|
+
case 1:
|
|
854
|
+
tokenString = _a.sent();
|
|
855
|
+
if (tokenString) {
|
|
856
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
857
|
+
}
|
|
858
|
+
_a.label = 2;
|
|
859
|
+
case 2: return [4 /*yield*/, this.request({
|
|
860
|
+
path: "/private/leads/{leadId}/status/mute-for-seller".replace("{".concat("leadId", "}"), encodeURIComponent(String(requestParameters['leadId']))),
|
|
861
|
+
method: 'PUT',
|
|
862
|
+
headers: headerParameters,
|
|
863
|
+
query: queryParameters,
|
|
864
|
+
body: (0, index_1.UpdateLeadMuteStatusInputToJSON)(requestParameters['updateLeadMuteStatusInput']),
|
|
865
|
+
}, initOverrides)];
|
|
866
|
+
case 3:
|
|
867
|
+
response = _a.sent();
|
|
868
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
869
|
+
}
|
|
870
|
+
});
|
|
871
|
+
});
|
|
872
|
+
};
|
|
873
|
+
/**
|
|
874
|
+
*
|
|
875
|
+
*/
|
|
876
|
+
LeadsApi.prototype.updateLeadMuteStatus = function (requestParameters, initOverrides) {
|
|
877
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
878
|
+
return __generator(this, function (_a) {
|
|
879
|
+
switch (_a.label) {
|
|
880
|
+
case 0: return [4 /*yield*/, this.updateLeadMuteStatusRaw(requestParameters, initOverrides)];
|
|
881
|
+
case 1:
|
|
882
|
+
_a.sent();
|
|
883
|
+
return [2 /*return*/];
|
|
884
|
+
}
|
|
885
|
+
});
|
|
886
|
+
});
|
|
887
|
+
};
|
|
832
888
|
return LeadsApi;
|
|
833
889
|
}(runtime.BaseAPI));
|
|
834
890
|
exports.LeadsApi = LeadsApi;
|
|
@@ -60,6 +60,8 @@ function instanceOfBuyerLeadListItemDto(value) {
|
|
|
60
60
|
return false;
|
|
61
61
|
if (!('orderPaymentUrl' in value) || value['orderPaymentUrl'] === undefined)
|
|
62
62
|
return false;
|
|
63
|
+
if (!('isMuted' in value) || value['isMuted'] === undefined)
|
|
64
|
+
return false;
|
|
63
65
|
return true;
|
|
64
66
|
}
|
|
65
67
|
function BuyerLeadListItemDtoFromJSON(json) {
|
|
@@ -78,6 +80,7 @@ function BuyerLeadListItemDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
78
80
|
'domain': (0, BuyerLeadListItemDomainDto_1.BuyerLeadListItemDomainDtoFromJSON)(json['domain']),
|
|
79
81
|
'unreadMessages': json['unreadMessages'],
|
|
80
82
|
'orderPaymentUrl': json['orderPaymentUrl'],
|
|
83
|
+
'isMuted': json['isMuted'],
|
|
81
84
|
};
|
|
82
85
|
}
|
|
83
86
|
function BuyerLeadListItemDtoToJSON(json) {
|
|
@@ -97,5 +100,6 @@ function BuyerLeadListItemDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
97
100
|
'domain': (0, BuyerLeadListItemDomainDto_1.BuyerLeadListItemDomainDtoToJSON)(value['domain']),
|
|
98
101
|
'unreadMessages': value['unreadMessages'],
|
|
99
102
|
'orderPaymentUrl': value['orderPaymentUrl'],
|
|
103
|
+
'isMuted': value['isMuted'],
|
|
100
104
|
};
|
|
101
105
|
}
|
|
@@ -109,6 +109,12 @@ export interface IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetails
|
|
|
109
109
|
* @memberof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto
|
|
110
110
|
*/
|
|
111
111
|
isPriceNegotiatorAgentPaused: boolean;
|
|
112
|
+
/**
|
|
113
|
+
*
|
|
114
|
+
* @type {boolean}
|
|
115
|
+
* @memberof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto
|
|
116
|
+
*/
|
|
117
|
+
isMutedForBuyer: boolean;
|
|
112
118
|
}
|
|
113
119
|
/**
|
|
114
120
|
* @export
|
|
@@ -85,6 +85,8 @@ function instanceOfIntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetai
|
|
|
85
85
|
return false;
|
|
86
86
|
if (!('isPriceNegotiatorAgentPaused' in value) || value['isPriceNegotiatorAgentPaused'] === undefined)
|
|
87
87
|
return false;
|
|
88
|
+
if (!('isMutedForBuyer' in value) || value['isMutedForBuyer'] === undefined)
|
|
89
|
+
return false;
|
|
88
90
|
return true;
|
|
89
91
|
}
|
|
90
92
|
function IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoFromJSON(json) {
|
|
@@ -110,6 +112,7 @@ function IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoFromJ
|
|
|
110
112
|
'unreadSellerMessagesNumber': json['unreadSellerMessagesNumber'],
|
|
111
113
|
'orderPaymentUrl': json['orderPaymentUrl'],
|
|
112
114
|
'isPriceNegotiatorAgentPaused': json['isPriceNegotiatorAgentPaused'],
|
|
115
|
+
'isMutedForBuyer': json['isMutedForBuyer'],
|
|
113
116
|
};
|
|
114
117
|
}
|
|
115
118
|
function IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoToJSON(json) {
|
|
@@ -136,5 +139,6 @@ function IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoToJSO
|
|
|
136
139
|
'unreadSellerMessagesNumber': value['unreadSellerMessagesNumber'],
|
|
137
140
|
'orderPaymentUrl': value['orderPaymentUrl'],
|
|
138
141
|
'isPriceNegotiatorAgentPaused': value['isPriceNegotiatorAgentPaused'],
|
|
142
|
+
'isMutedForBuyer': value['isMutedForBuyer'],
|
|
139
143
|
};
|
|
140
144
|
}
|
package/dist/models/LeadDto.d.ts
CHANGED
package/dist/models/LeadDto.js
CHANGED
|
@@ -79,6 +79,8 @@ function instanceOfLeadDto(value) {
|
|
|
79
79
|
return false;
|
|
80
80
|
if (!('manualType' in value) || value['manualType'] === undefined)
|
|
81
81
|
return false;
|
|
82
|
+
if (!('isMutedForBuyer' in value) || value['isMutedForBuyer'] === undefined)
|
|
83
|
+
return false;
|
|
82
84
|
return true;
|
|
83
85
|
}
|
|
84
86
|
function LeadDtoFromJSON(json) {
|
|
@@ -102,6 +104,7 @@ function LeadDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
102
104
|
'orderPaymentUrl': json['orderPaymentUrl'],
|
|
103
105
|
'isPriceNegotiatorAgentPaused': json['isPriceNegotiatorAgentPaused'],
|
|
104
106
|
'manualType': json['manualType'],
|
|
107
|
+
'isMutedForBuyer': json['isMutedForBuyer'],
|
|
105
108
|
};
|
|
106
109
|
}
|
|
107
110
|
function LeadDtoToJSON(json) {
|
|
@@ -126,5 +129,6 @@ function LeadDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
126
129
|
'orderPaymentUrl': value['orderPaymentUrl'],
|
|
127
130
|
'isPriceNegotiatorAgentPaused': value['isPriceNegotiatorAgentPaused'],
|
|
128
131
|
'manualType': value['manualType'],
|
|
132
|
+
'isMutedForBuyer': value['isMutedForBuyer'],
|
|
129
133
|
};
|
|
130
134
|
}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { PaginateResponseLinks } from './PaginateResponseLinks';
|
|
13
|
-
import type {
|
|
13
|
+
import type { ListLeadsResultItem } from './ListLeadsResultItem';
|
|
14
14
|
import type { PaginateResponseMeta } from './PaginateResponseMeta';
|
|
15
15
|
/**
|
|
16
16
|
*
|
|
@@ -20,10 +20,10 @@ import type { PaginateResponseMeta } from './PaginateResponseMeta';
|
|
|
20
20
|
export interface List200Response {
|
|
21
21
|
/**
|
|
22
22
|
*
|
|
23
|
-
* @type {Array<
|
|
23
|
+
* @type {Array<ListLeadsResultItem>}
|
|
24
24
|
* @memberof List200Response
|
|
25
25
|
*/
|
|
26
|
-
data: Array<
|
|
26
|
+
data: Array<ListLeadsResultItem>;
|
|
27
27
|
/**
|
|
28
28
|
*
|
|
29
29
|
* @type {PaginateResponseMeta}
|
|
@@ -19,7 +19,7 @@ exports.List200ResponseFromJSONTyped = List200ResponseFromJSONTyped;
|
|
|
19
19
|
exports.List200ResponseToJSON = List200ResponseToJSON;
|
|
20
20
|
exports.List200ResponseToJSONTyped = List200ResponseToJSONTyped;
|
|
21
21
|
var PaginateResponseLinks_1 = require("./PaginateResponseLinks");
|
|
22
|
-
var
|
|
22
|
+
var ListLeadsResultItem_1 = require("./ListLeadsResultItem");
|
|
23
23
|
var PaginateResponseMeta_1 = require("./PaginateResponseMeta");
|
|
24
24
|
/**
|
|
25
25
|
* Check if a given object implements the List200Response interface.
|
|
@@ -41,7 +41,7 @@ function List200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
41
41
|
return json;
|
|
42
42
|
}
|
|
43
43
|
return {
|
|
44
|
-
'data': (json['data'].map(
|
|
44
|
+
'data': (json['data'].map(ListLeadsResultItem_1.ListLeadsResultItemFromJSON)),
|
|
45
45
|
'meta': (0, PaginateResponseMeta_1.PaginateResponseMetaFromJSON)(json['meta']),
|
|
46
46
|
'links': (0, PaginateResponseLinks_1.PaginateResponseLinksFromJSON)(json['links']),
|
|
47
47
|
};
|
|
@@ -55,7 +55,7 @@ function List200ResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
|
55
55
|
return value;
|
|
56
56
|
}
|
|
57
57
|
return {
|
|
58
|
-
'data': (value['data'].map(
|
|
58
|
+
'data': (value['data'].map(ListLeadsResultItem_1.ListLeadsResultItemToJSON)),
|
|
59
59
|
'meta': (0, PaginateResponseMeta_1.PaginateResponseMetaToJSON)(value['meta']),
|
|
60
60
|
'links': (0, PaginateResponseLinks_1.PaginateResponseLinksToJSON)(value['links']),
|
|
61
61
|
};
|
|
@@ -0,0 +1,213 @@
|
|
|
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
|
+
import type { LeadMessageData } from './LeadMessageData';
|
|
13
|
+
import type { LeadDomainDto } from './LeadDomainDto';
|
|
14
|
+
import type { MoneyDto } from './MoneyDto';
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface ListLeadsResultItem
|
|
19
|
+
*/
|
|
20
|
+
export interface ListLeadsResultItem {
|
|
21
|
+
/**
|
|
22
|
+
* The lead id
|
|
23
|
+
* @type {string}
|
|
24
|
+
* @memberof ListLeadsResultItem
|
|
25
|
+
*/
|
|
26
|
+
id: string;
|
|
27
|
+
/**
|
|
28
|
+
* The current lead status
|
|
29
|
+
* @type {string}
|
|
30
|
+
* @memberof ListLeadsResultItem
|
|
31
|
+
*/
|
|
32
|
+
status: ListLeadsResultItemStatusEnum;
|
|
33
|
+
/**
|
|
34
|
+
* The lead last offer amount
|
|
35
|
+
* @type {MoneyDto}
|
|
36
|
+
* @memberof ListLeadsResultItem
|
|
37
|
+
*/
|
|
38
|
+
lastOffer: MoneyDto | null;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @type {string}
|
|
42
|
+
* @memberof ListLeadsResultItem
|
|
43
|
+
*/
|
|
44
|
+
lastOfferBy: ListLeadsResultItemLastOfferByEnum | null;
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @type {string}
|
|
48
|
+
* @memberof ListLeadsResultItem
|
|
49
|
+
*/
|
|
50
|
+
buyerInitials: string;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @type {string}
|
|
54
|
+
* @memberof ListLeadsResultItem
|
|
55
|
+
*/
|
|
56
|
+
buyerIpCountryCode: string | null;
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* @type {string}
|
|
60
|
+
* @memberof ListLeadsResultItem
|
|
61
|
+
*/
|
|
62
|
+
lastMessageFrom: ListLeadsResultItemLastMessageFromEnum;
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
* @type {string}
|
|
66
|
+
* @memberof ListLeadsResultItem
|
|
67
|
+
*/
|
|
68
|
+
lastMessageType: ListLeadsResultItemLastMessageTypeEnum;
|
|
69
|
+
/**
|
|
70
|
+
* The data
|
|
71
|
+
* @type {LeadMessageData}
|
|
72
|
+
* @memberof ListLeadsResultItem
|
|
73
|
+
*/
|
|
74
|
+
lastMessageData: LeadMessageData | null;
|
|
75
|
+
/**
|
|
76
|
+
*
|
|
77
|
+
* @type {boolean}
|
|
78
|
+
* @memberof ListLeadsResultItem
|
|
79
|
+
*/
|
|
80
|
+
isMutedForSeller: boolean;
|
|
81
|
+
/**
|
|
82
|
+
*
|
|
83
|
+
* @type {boolean}
|
|
84
|
+
* @memberof ListLeadsResultItem
|
|
85
|
+
*/
|
|
86
|
+
isMutedForBuyer: boolean;
|
|
87
|
+
/**
|
|
88
|
+
* Archived status
|
|
89
|
+
* @type {boolean}
|
|
90
|
+
* @memberof ListLeadsResultItem
|
|
91
|
+
*/
|
|
92
|
+
archived: boolean;
|
|
93
|
+
/**
|
|
94
|
+
* Created at date
|
|
95
|
+
* @type {Date}
|
|
96
|
+
* @memberof ListLeadsResultItem
|
|
97
|
+
*/
|
|
98
|
+
createdAt: Date;
|
|
99
|
+
/**
|
|
100
|
+
* Updated at date
|
|
101
|
+
* @type {Date}
|
|
102
|
+
* @memberof ListLeadsResultItem
|
|
103
|
+
*/
|
|
104
|
+
updatedAt: Date;
|
|
105
|
+
/**
|
|
106
|
+
* Domain information
|
|
107
|
+
* @type {LeadDomainDto}
|
|
108
|
+
* @memberof ListLeadsResultItem
|
|
109
|
+
*/
|
|
110
|
+
domain: LeadDomainDto;
|
|
111
|
+
/**
|
|
112
|
+
* Number of buyer unread messages
|
|
113
|
+
* @type {number}
|
|
114
|
+
* @memberof ListLeadsResultItem
|
|
115
|
+
*/
|
|
116
|
+
unreadBuyerMessagesNumber: number;
|
|
117
|
+
/**
|
|
118
|
+
* Number of seller unread messages
|
|
119
|
+
* @type {number}
|
|
120
|
+
* @memberof ListLeadsResultItem
|
|
121
|
+
*/
|
|
122
|
+
unreadSellerMessagesNumber: number;
|
|
123
|
+
/**
|
|
124
|
+
* Lead order payment URL
|
|
125
|
+
* @type {string}
|
|
126
|
+
* @memberof ListLeadsResultItem
|
|
127
|
+
*/
|
|
128
|
+
orderPaymentUrl: string | null;
|
|
129
|
+
/**
|
|
130
|
+
*
|
|
131
|
+
* @type {boolean}
|
|
132
|
+
* @memberof ListLeadsResultItem
|
|
133
|
+
*/
|
|
134
|
+
isPriceNegotiatorAgentPaused: boolean;
|
|
135
|
+
/**
|
|
136
|
+
*
|
|
137
|
+
* @type {string}
|
|
138
|
+
* @memberof ListLeadsResultItem
|
|
139
|
+
*/
|
|
140
|
+
manualType: ListLeadsResultItemManualTypeEnum | null;
|
|
141
|
+
/**
|
|
142
|
+
* The message in case lastMessageType === LeadMessageTypeEnum.MESSAGE
|
|
143
|
+
* @type {string}
|
|
144
|
+
* @memberof ListLeadsResultItem
|
|
145
|
+
*/
|
|
146
|
+
lastMessageMessage: string | null;
|
|
147
|
+
/**
|
|
148
|
+
* The creation date of the message
|
|
149
|
+
* @type {Date}
|
|
150
|
+
* @memberof ListLeadsResultItem
|
|
151
|
+
*/
|
|
152
|
+
lastMessageDate: Date;
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* @export
|
|
156
|
+
*/
|
|
157
|
+
export declare const ListLeadsResultItemStatusEnum: {
|
|
158
|
+
readonly UNVERIFIED: "unverified";
|
|
159
|
+
readonly ACTIVE: "active";
|
|
160
|
+
readonly ACCEPTED: "accepted";
|
|
161
|
+
readonly FINISHED: "finished";
|
|
162
|
+
readonly CLOSED: "closed";
|
|
163
|
+
};
|
|
164
|
+
export type ListLeadsResultItemStatusEnum = typeof ListLeadsResultItemStatusEnum[keyof typeof ListLeadsResultItemStatusEnum];
|
|
165
|
+
/**
|
|
166
|
+
* @export
|
|
167
|
+
*/
|
|
168
|
+
export declare const ListLeadsResultItemLastOfferByEnum: {
|
|
169
|
+
readonly BUYER: "buyer";
|
|
170
|
+
readonly SELLER: "seller";
|
|
171
|
+
readonly AI: "ai";
|
|
172
|
+
readonly ADMIN: "admin";
|
|
173
|
+
};
|
|
174
|
+
export type ListLeadsResultItemLastOfferByEnum = typeof ListLeadsResultItemLastOfferByEnum[keyof typeof ListLeadsResultItemLastOfferByEnum];
|
|
175
|
+
/**
|
|
176
|
+
* @export
|
|
177
|
+
*/
|
|
178
|
+
export declare const ListLeadsResultItemLastMessageFromEnum: {
|
|
179
|
+
readonly BUYER: "buyer";
|
|
180
|
+
readonly SELLER: "seller";
|
|
181
|
+
readonly AI: "ai";
|
|
182
|
+
readonly ADMIN: "admin";
|
|
183
|
+
};
|
|
184
|
+
export type ListLeadsResultItemLastMessageFromEnum = typeof ListLeadsResultItemLastMessageFromEnum[keyof typeof ListLeadsResultItemLastMessageFromEnum];
|
|
185
|
+
/**
|
|
186
|
+
* @export
|
|
187
|
+
*/
|
|
188
|
+
export declare const ListLeadsResultItemLastMessageTypeEnum: {
|
|
189
|
+
readonly OFFER: "offer";
|
|
190
|
+
readonly OFFER_ACCEPTED: "offer_accepted";
|
|
191
|
+
readonly OFFER_WITHDRAWN: "offer_withdrawn";
|
|
192
|
+
readonly OFFER_REJECTED: "offer_rejected";
|
|
193
|
+
readonly MESSAGE: "message";
|
|
194
|
+
};
|
|
195
|
+
export type ListLeadsResultItemLastMessageTypeEnum = typeof ListLeadsResultItemLastMessageTypeEnum[keyof typeof ListLeadsResultItemLastMessageTypeEnum];
|
|
196
|
+
/**
|
|
197
|
+
* @export
|
|
198
|
+
*/
|
|
199
|
+
export declare const ListLeadsResultItemManualTypeEnum: {
|
|
200
|
+
readonly BUY_NOW: "buy_now";
|
|
201
|
+
readonly OFFER: "offer";
|
|
202
|
+
readonly LEASE_TO_OWN: "lease_to_own";
|
|
203
|
+
readonly RENT: "rent";
|
|
204
|
+
};
|
|
205
|
+
export type ListLeadsResultItemManualTypeEnum = typeof ListLeadsResultItemManualTypeEnum[keyof typeof ListLeadsResultItemManualTypeEnum];
|
|
206
|
+
/**
|
|
207
|
+
* Check if a given object implements the ListLeadsResultItem interface.
|
|
208
|
+
*/
|
|
209
|
+
export declare function instanceOfListLeadsResultItem(value: object): value is ListLeadsResultItem;
|
|
210
|
+
export declare function ListLeadsResultItemFromJSON(json: any): ListLeadsResultItem;
|
|
211
|
+
export declare function ListLeadsResultItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListLeadsResultItem;
|
|
212
|
+
export declare function ListLeadsResultItemToJSON(json: any): ListLeadsResultItem;
|
|
213
|
+
export declare function ListLeadsResultItemToJSONTyped(value?: ListLeadsResultItem | null, ignoreDiscriminator?: boolean): any;
|