peopledatalabs 3.0.1 → 3.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 945102b4502fd368b8629444dd519b760392dfe1a6b5405374b5a14eba8d2787
4
- data.tar.gz: b45006214c584cd32cf6207290924ecc1136cf72b8269353ec23ecec6f43d231
3
+ metadata.gz: 7d0d3cade6d3744bd104abeb2d990a5de1527617c6d42a6db438765e6e52939d
4
+ data.tar.gz: e87781f33fa427caad52994d19b281d0ee5109d4950a017f9e4f43e7aa3845cd
5
5
  SHA512:
6
- metadata.gz: 1ee0a299bbfb9dc6505369ca2dd6a61c7ec87494fff138d2072c8841af09aeb1984ae5e40d7af2d0fe67f5a2f71fbd7e295615cc8ae25b12d109bd85e7ba43fa
7
- data.tar.gz: 7ccbb9e1ad199497f485bcc6fcc1467ce8618a20f41921ffd2a9be8fa01cdb592379e3eaf520152d0966682fd25b9901c698102a3014a56e9d7b69bb6c6b33d4
6
+ metadata.gz: 6420d30680ff09ef86a7c825005ed44b519eafdf7c502fedb41cd2a6ce29d41d96b9138c3fe21504ed624581554b0b00dcd43930d7e9afae27480c2074c6cb0a
7
+ data.tar.gz: ce8cdb9c0a1210c931acbfdcb989494e6cc87be785f0c5c23f8dc53d92b9c60b440c9cc0bd2898b9e36cd5b927024d6a52045b64bd6e28fc8376160fe51f7732
data/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2022 People Data Labs
3
+ Copyright (c) 2024 People Data Labs
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -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 = {
@@ -1,3 +1,3 @@
1
1
  module Peopledatalabs
2
- VERSION = "3.0.1"
2
+ VERSION = "3.1.0"
3
3
  end
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.1
4
+ version: 3.1.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-05-14 00:00:00.000000000 Z
11
+ date: 2024-09-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.9
145
+ rubygems_version: 3.5.16
146
146
  signing_key:
147
147
  specification_version: 4
148
148
  summary: Official Ruby client for the People Data Labs API.