peopledatalabs
Advanced tools
Comparing version 7.0.5 to 7.0.6
{ | ||
"name": "peopledatalabs", | ||
"version": "7.0.5", | ||
"version": "7.0.6", | ||
"description": "JavaScript client with TypeScript support for the People Data Labs API", | ||
@@ -46,4 +46,4 @@ "type": "module", | ||
"devDependencies": { | ||
"@typescript-eslint/eslint-plugin": "^7.0.2", | ||
"@typescript-eslint/parser": "^7.0.2", | ||
"@typescript-eslint/eslint-plugin": "^7.1.0", | ||
"@typescript-eslint/parser": "^7.1.0", | ||
"chai": "^5.1.0", | ||
@@ -54,6 +54,6 @@ "dotenv": "^16.4.5", | ||
"eslint-config-airbnb-base": "^15.0.0", | ||
"eslint-config-airbnb-typescript": "^17.1.0", | ||
"eslint-config-airbnb-typescript": "^18.0.0", | ||
"eslint-plugin-import": "^2.29.1", | ||
"eslint-plugin-jsx-a11y": "^6.8.0", | ||
"eslint-plugin-react": "^7.33.2", | ||
"eslint-plugin-react": "^7.34.0", | ||
"eslint-plugin-react-hooks": "^4.6.0", | ||
@@ -60,0 +60,0 @@ "eslint-plugin-simple-import-sort": "^12.0.0", |
@@ -149,29 +149,2 @@ <p align="center"> | ||
// By PDL_ID | ||
try { | ||
const response = await PDLJSClient.person.retrieve({ id: 'qEnOZ5Oh0poWnQ1luFBfVw_0000' }); | ||
console.log(response); | ||
} catch (error) { | ||
console.log(error); | ||
} | ||
// By Bulk Retrieve | ||
const bulkRetrieveRecords = { | ||
requests: [ | ||
{ id: 'qEnOZ5Oh0poWnQ1luFBfVw_0000' }, | ||
{ id: 'PzFD15NINdBWNULBBkwlig_0000' }, | ||
], | ||
titlecase: true, | ||
filter_updated: 'job_change', | ||
}; | ||
try { | ||
const response = await PDLJSClient.person.bulk.retrieve(bulkRetrieveRecords); | ||
console.log(response.items); | ||
} catch (error) { | ||
console.log(error); | ||
} | ||
// By Fuzzy Enrichment | ||
@@ -345,3 +318,6 @@ try { | ||
try { | ||
const response = await PDLJSClient.sandbox.person.enrichment({ email: 'irussell@example.org' }); | ||
const response = await PDLJSClient.person.enrichment({ | ||
email: 'irussell@example.org', | ||
sandbox: true, | ||
}); | ||
@@ -355,3 +331,3 @@ console.log(response); | ||
try { | ||
const response = await PDLJSClient.sandbox.person.search.sql({ | ||
const response = await PDLJSClient.person.search.sql({ | ||
searchQuery: "SELECT * FROM person WHERE location_country='mexico';", | ||
@@ -379,3 +355,3 @@ size: 10, | ||
try { | ||
const response = await PDLJSClient.sandbox.person.search.elastic({ searchQuery: esQuery, size: 10, sandbox: true }); | ||
const response = await PDLJSClient.person.search.elastic({ searchQuery: esQuery, size: 10, sandbox: true }); | ||
@@ -382,0 +358,0 @@ console.log(response.total); |
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
309227
463