shiqiyue-linkedin-private-api
Advanced tools
Comparing version 1.1.22 to 1.1.23
@@ -47,2 +47,3 @@ import { Client } from '../core/client'; | ||
private fetchPeople; | ||
private fetchPeople3; | ||
fetchPeople2({ start, keywords, query, }?: { | ||
@@ -49,0 +50,0 @@ start?: number; |
@@ -42,3 +42,3 @@ "use strict"; | ||
filters: { ...filters, network: network_enum_1.LinkedInNetworkType.F }, | ||
fetchPeople: this.fetchPeople.bind(this), | ||
fetchPeople: this.fetchPeople3.bind(this), | ||
}); | ||
@@ -90,2 +90,18 @@ } | ||
} | ||
async fetchPeople3({ skip = 0, limit = 10, filters = {}, keywords, } = {}) { | ||
var _a, _b; | ||
const response = await this.client.request.search.searchBlended({ | ||
keywords, | ||
skip, | ||
limit, | ||
filters: { ...filters, resultType: search_type_enum_1.LinkedInSearchType.PEOPLE }, | ||
origin: "SWITCH_SEARCH_VERTICAL" | ||
}); | ||
const profiles = lodash_1.keyBy(profile_repository_1.getProfilesFromResponse(response), 'entityUrn'); | ||
const searchHits = lodash_1.flatten((_b = (_a = response === null || response === void 0 ? void 0 : response.data) === null || _a === void 0 ? void 0 : _a.elements) === null || _b === void 0 ? void 0 : _b.filter(e => e.type === search_result_type_enum_1.SearchResultType.SEARCH_HITS && e.elements).map(e => e.elements)); | ||
return searchHits.map(searchHit => ({ | ||
...searchHit, | ||
profile: profiles[searchHit.targetUrn], | ||
})); | ||
} | ||
async fetchPeople2({ start = 0, keywords = "", query = {}, } = {}) { | ||
@@ -92,0 +108,0 @@ var _a; |
@@ -27,2 +27,3 @@ "use strict"; | ||
}; | ||
console.log(utils_1.paramsSerializer(queryParams)); | ||
return this.request.get('search/blended', { | ||
@@ -29,0 +30,0 @@ params: queryParams, |
{ | ||
"name": "shiqiyue-linkedin-private-api", | ||
"version": "1.1.22", | ||
"version": "1.1.23", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
277621
3970