peopledatalabs 3.0.1 → 3.2.0
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.
- checksums.yaml +4 -4
- data/LICENSE +1 -1
- data/README.md +1 -1
- data/lib/peopledatalabs/api_resource.rb +1 -1
- data/lib/peopledatalabs/resources/autocomplete.rb +2 -1
- data/lib/peopledatalabs/resources/enrichment.rb +3 -1
- data/lib/peopledatalabs/resources/retrieve.rb +2 -2
- data/lib/peopledatalabs/resources/search.rb +7 -4
- data/lib/peopledatalabs/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 12814e4edeb635a9b1c8ca41d1075adf6fc3fb074a1a5736e2d0e80b2805fd58
|
4
|
+
data.tar.gz: 4c4389faa04d97466a6eb820f6d114da988297a8d6251e0bc53e7222a12c2877
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c448c3b6351c4e3d43f816eda943a0631f15f48b678ac48750cde3c206d87ffa0432052e746c5404e37ce8f13d3f80abb14bb683652d3e86dbcf9056f6023956
|
7
|
+
data.tar.gz: 1f6aade1baddbce91a70a391448cfa767403d05f114dd312bbb80fbf61992e3b85eb813b64b2eb48e4bf8238f99083d9706ab9d6b5c3e392891aecf3c87a7720
|
data/LICENSE
CHANGED
data/README.md
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
<p align="center">
|
2
|
-
<img src="https://
|
2
|
+
<img src="https://www.peopledatalabs.com/images/company-logo.png" style="background-color: white; padding: 5px 10px;" width="250" alt="People Data Labs Logo">
|
3
3
|
</p>
|
4
4
|
<h1 align="center">People Data Labs Ruby Library</h1>
|
5
5
|
<p align="center">Official Ruby client for the People Data Labs API.</p>
|
@@ -3,7 +3,7 @@ module Peopledatalabs
|
|
3
3
|
|
4
4
|
protected
|
5
5
|
|
6
|
-
VALID_AUTOCOMPLETE_FIELDS = ['company', 'country', 'industry', 'location', 'major', 'region', 'role', 'school', 'sub_role', 'skill', 'title'].freeze
|
6
|
+
VALID_AUTOCOMPLETE_FIELDS = ['class', 'company', 'country', 'industry', 'location', 'major', 'region', 'role', 'school', 'sub_role', 'skill', 'title'].freeze
|
7
7
|
|
8
8
|
def self.get(path:, headers: {}, params: {})
|
9
9
|
request = check(params: params, path: path)
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
module Peopledatalabs
|
4
4
|
class Autocomplete < APIResource
|
5
|
-
def self.retrieve(field:, text: '', size: 10, pretty: false, titlecase: false)
|
5
|
+
def self.retrieve(field:, text: '', size: 10, pretty: false, titlecase: false, updated_title_roles: false)
|
6
6
|
|
7
7
|
params = {
|
8
8
|
'field' => field,
|
@@ -10,6 +10,7 @@ module Peopledatalabs
|
|
10
10
|
'size' => size,
|
11
11
|
'pretty' => pretty,
|
12
12
|
'titlecase' => titlecase,
|
13
|
+
'updated_title_roles' => updated_title_roles,
|
13
14
|
};
|
14
15
|
|
15
16
|
headers = {
|
@@ -18,13 +18,15 @@ module Peopledatalabs
|
|
18
18
|
get(path: '/v5/company/enrich', headers: headers, params: params)
|
19
19
|
end
|
20
20
|
|
21
|
-
def self.ip(ip:, return_ip_location: false, return_ip_metadata: false, return_person: false, return_if_unmatched: false)
|
21
|
+
def self.ip(ip:, return_ip_location: false, return_ip_metadata: false, return_person: false, return_if_unmatched: false, updated_title_roles: false, min_confidence: 'very low')
|
22
22
|
params = {
|
23
23
|
'ip' => ip,
|
24
24
|
'return_ip_location' => return_ip_location,
|
25
25
|
'return_ip_metadata' => return_ip_metadata,
|
26
26
|
'return_person' => return_person,
|
27
27
|
'return_if_unmatched' => return_if_unmatched,
|
28
|
+
'min_confidence' => min_confidence,
|
29
|
+
'updated_title_roles' => updated_title_roles,
|
28
30
|
}
|
29
31
|
headers = {
|
30
32
|
'Accept-Encoding' => 'gzip',
|
@@ -2,12 +2,12 @@
|
|
2
2
|
|
3
3
|
module Peopledatalabs
|
4
4
|
class Retrieve < APIResource
|
5
|
-
def self.person(person_id:, pretty: false)
|
5
|
+
def self.person(person_id:, pretty: false, updated_title_roles: false)
|
6
6
|
headers = {
|
7
7
|
'Accept-Encoding' => 'gzip',
|
8
8
|
'User-Agent' => 'PDL-RUBY-SDK',
|
9
9
|
}
|
10
|
-
get(path: "/v5/person/retrieve/#{person_id}", headers: headers, params: { 'pretty' => pretty })
|
10
|
+
get(path: "/v5/person/retrieve/#{person_id}", headers: headers, params: { 'pretty' => pretty, 'updated_title_roles' => updated_title_roles })
|
11
11
|
end
|
12
12
|
end
|
13
13
|
end
|
@@ -2,27 +2,29 @@
|
|
2
2
|
|
3
3
|
module Peopledatalabs
|
4
4
|
class Search < APIResource
|
5
|
-
def self.person(searchType:, query: , titlecase: false, dataset: 'all', size: 10, pretty: false, scroll_token: nil)
|
5
|
+
def self.person(searchType:, query: , titlecase: false, dataset: 'all', size: 10, pretty: false, scroll_token: nil, updated_title_roles: false)
|
6
6
|
search(searchType: searchType,
|
7
7
|
query: query,
|
8
8
|
titlecase: titlecase,
|
9
9
|
dataset: dataset, size: size,
|
10
10
|
pretty: pretty,
|
11
11
|
scroll_token: scroll_token,
|
12
|
+
updated_title_roles: updated_title_roles,
|
12
13
|
kind: 'person')
|
13
14
|
end
|
14
15
|
|
15
|
-
def self.company(searchType:, query: , titlecase: false, dataset: 'all', size: 10, pretty: false, scroll_token: nil)
|
16
|
+
def self.company(searchType:, query: , titlecase: false, dataset: 'all', size: 10, pretty: false, scroll_token: nil, updated_title_roles: false)
|
16
17
|
search(searchType: searchType,
|
17
18
|
query: query,
|
18
19
|
titlecase: titlecase,
|
19
20
|
dataset: dataset, size: size,
|
20
21
|
pretty: pretty,
|
21
22
|
scroll_token: scroll_token,
|
23
|
+
updated_title_roles: updated_title_roles,
|
22
24
|
kind: 'company')
|
23
25
|
end
|
24
26
|
|
25
|
-
def self.search(searchType:, query:, kind:, titlecase: false, dataset: 'all', size: 10, pretty: false, scroll_token: nil)
|
27
|
+
def self.search(searchType:, query:, kind:, titlecase: false, dataset: 'all', size: 10, pretty: false, scroll_token: nil, updated_title_roles: false)
|
26
28
|
|
27
29
|
body = {
|
28
30
|
searchType === 'sql' ? 'sql' : 'query' => query,
|
@@ -30,7 +32,8 @@ module Peopledatalabs
|
|
30
32
|
'size' => size,
|
31
33
|
'pretty' => pretty,
|
32
34
|
'titlecase' => titlecase,
|
33
|
-
'scroll_token' => scroll_token
|
35
|
+
'scroll_token' => scroll_token,
|
36
|
+
'updated_title_roles' => updated_title_roles
|
34
37
|
}
|
35
38
|
|
36
39
|
headers = {
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: peopledatalabs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0
|
4
|
+
version: 3.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- People Data Labs
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-12-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -142,7 +142,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
142
142
|
- !ruby/object:Gem::Version
|
143
143
|
version: '0'
|
144
144
|
requirements: []
|
145
|
-
rubygems_version: 3.5.
|
145
|
+
rubygems_version: 3.5.22
|
146
146
|
signing_key:
|
147
147
|
specification_version: 4
|
148
148
|
summary: Official Ruby client for the People Data Labs API.
|