context.dev 2.8.0 → 2.10.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/CHANGELOG.md +28 -0
- data/README.md +1 -1
- data/lib/context_dev/client.rb +10 -0
- data/lib/context_dev/models/batch_delete_params.rb +22 -0
- data/lib/context_dev/models/batch_delete_response.rb +60 -0
- data/lib/context_dev/models/batch_get_results_response.rb +46 -4
- data/lib/context_dev/models/batch_list_response.rb +13 -4
- data/lib/context_dev/models/batch_retrieve_response.rb +13 -4
- data/lib/context_dev/models/batch_submit_params.rb +2080 -26
- data/lib/context_dev/models/batch_submit_response.rb +125 -531
- data/lib/context_dev/models/brand_retrieve_response.rb +50 -1
- data/lib/context_dev/models/brand_search_params.rb +41 -3
- data/lib/context_dev/models/brand_search_response.rb +3 -2
- data/lib/context_dev/models/crawl_controls.rb +21 -15
- data/lib/context_dev/models/news_search_params.rb +467 -0
- data/lib/context_dev/models/news_search_response.rb +238 -0
- data/lib/context_dev/models/parse_handle_params.rb +20 -147
- data/lib/context_dev/models/person_enrich_params.rb +176 -0
- data/lib/context_dev/models/person_enrich_response.rb +641 -0
- data/lib/context_dev/models/utility_prefetch_params.rb +19 -16
- data/lib/context_dev/models/utility_prefetch_response.rb +4 -5
- data/lib/context_dev/models/web_screenshot_params.rb +3 -30
- data/lib/context_dev/models/web_search_response.rb +1 -0
- data/lib/context_dev/models/web_web_crawl_md_params.rb +5 -4
- data/lib/context_dev/models/web_web_crawl_md_response.rb +30 -1
- data/lib/context_dev/models/web_web_scrape_html_params.rb +20 -156
- data/lib/context_dev/models/web_web_scrape_html_response.rb +30 -1
- data/lib/context_dev/models/web_web_scrape_images_params.rb +12 -124
- data/lib/context_dev/models/web_web_scrape_md_params.rb +40 -241
- data/lib/context_dev/models/web_web_scrape_md_response.rb +41 -2
- data/lib/context_dev/models/web_web_scrape_sitemap_params.rb +11 -1
- data/lib/context_dev/models/web_web_scrape_sitemap_response.rb +3 -2
- data/lib/context_dev/models.rb +6 -0
- data/lib/context_dev/resources/batch.rb +33 -7
- data/lib/context_dev/resources/brand.rb +10 -10
- data/lib/context_dev/resources/news.rb +51 -0
- data/lib/context_dev/resources/parse.rb +5 -5
- data/lib/context_dev/resources/people.rb +56 -0
- data/lib/context_dev/resources/utility.rb +7 -6
- data/lib/context_dev/resources/web.rb +46 -24
- data/lib/context_dev/version.rb +1 -1
- data/lib/context_dev.rb +8 -0
- data/rbi/context_dev/client.rbi +8 -0
- data/rbi/context_dev/models/batch_delete_params.rbi +40 -0
- data/rbi/context_dev/models/batch_delete_response.rbi +116 -0
- data/rbi/context_dev/models/batch_get_results_response.rbi +85 -3
- data/rbi/context_dev/models/batch_list_response.rbi +24 -8
- data/rbi/context_dev/models/batch_retrieve_response.rbi +24 -8
- data/rbi/context_dev/models/batch_submit_params.rbi +6421 -44
- data/rbi/context_dev/models/batch_submit_response.rbi +184 -1151
- data/rbi/context_dev/models/brand_retrieve_response.rbi +152 -0
- data/rbi/context_dev/models/brand_search_params.rbi +71 -2
- data/rbi/context_dev/models/brand_search_response.rbi +4 -2
- data/rbi/context_dev/models/crawl_controls.rbi +22 -28
- data/rbi/context_dev/models/news_search_params.rbi +1294 -0
- data/rbi/context_dev/models/news_search_response.rbi +423 -0
- data/rbi/context_dev/models/parse_handle_params.rbi +30 -323
- data/rbi/context_dev/models/person_enrich_params.rbi +332 -0
- data/rbi/context_dev/models/person_enrich_response.rbi +1295 -0
- data/rbi/context_dev/models/utility_prefetch_params.rbi +24 -16
- data/rbi/context_dev/models/utility_prefetch_response.rbi +8 -6
- data/rbi/context_dev/models/web_screenshot_params.rbi +4 -71
- data/rbi/context_dev/models/web_search_response.rbi +5 -0
- data/rbi/context_dev/models/web_web_crawl_md_params.rbi +8 -6
- data/rbi/context_dev/models/web_web_crawl_md_response.rbi +67 -0
- data/rbi/context_dev/models/web_web_scrape_html_params.rbi +30 -363
- data/rbi/context_dev/models/web_web_scrape_html_response.rbi +65 -0
- data/rbi/context_dev/models/web_web_scrape_images_params.rbi +16 -287
- data/rbi/context_dev/models/web_web_scrape_md_params.rbi +57 -558
- data/rbi/context_dev/models/web_web_scrape_md_response.rbi +80 -0
- data/rbi/context_dev/models/web_web_scrape_sitemap_params.rbi +15 -0
- data/rbi/context_dev/models/web_web_scrape_sitemap_response.rbi +4 -2
- data/rbi/context_dev/models.rbi +6 -0
- data/rbi/context_dev/resources/batch.rbi +32 -10
- data/rbi/context_dev/resources/brand.rbi +14 -8
- data/rbi/context_dev/resources/news.rbi +46 -0
- data/rbi/context_dev/resources/parse.rbi +10 -26
- data/rbi/context_dev/resources/people.rbi +47 -0
- data/rbi/context_dev/resources/utility.rbi +8 -6
- data/rbi/context_dev/resources/web.rbi +49 -66
- data/sig/context_dev/client.rbs +4 -0
- data/sig/context_dev/models/batch_delete_params.rbs +23 -0
- data/sig/context_dev/models/batch_delete_response.rbs +57 -0
- data/sig/context_dev/models/batch_get_results_response.rbs +30 -2
- data/sig/context_dev/models/batch_list_response.rbs +16 -2
- data/sig/context_dev/models/batch_retrieve_response.rbs +16 -2
- data/sig/context_dev/models/batch_submit_params.rbs +2666 -15
- data/sig/context_dev/models/batch_submit_response.rbs +78 -466
- data/sig/context_dev/models/brand_retrieve_response.rbs +62 -0
- data/sig/context_dev/models/brand_search_params.rbs +38 -1
- data/sig/context_dev/models/crawl_controls.rbs +16 -16
- data/sig/context_dev/models/news_search_params.rbs +532 -0
- data/sig/context_dev/models/news_search_response.rbs +206 -0
- data/sig/context_dev/models/parse_handle_params.rbs +25 -90
- data/sig/context_dev/models/person_enrich_params.rbs +199 -0
- data/sig/context_dev/models/person_enrich_response.rbs +638 -0
- data/sig/context_dev/models/utility_prefetch_params.rbs +2 -1
- data/sig/context_dev/models/utility_prefetch_response.rbs +2 -1
- data/sig/context_dev/models/web_screenshot_params.rbs +5 -18
- data/sig/context_dev/models/web_search_response.rbs +2 -0
- data/sig/context_dev/models/web_web_crawl_md_response.rbs +21 -0
- data/sig/context_dev/models/web_web_scrape_html_params.rbs +24 -94
- data/sig/context_dev/models/web_web_scrape_html_response.rbs +21 -0
- data/sig/context_dev/models/web_web_scrape_images_params.rbs +20 -72
- data/sig/context_dev/models/web_web_scrape_md_params.rbs +46 -148
- data/sig/context_dev/models/web_web_scrape_md_response.rbs +28 -0
- data/sig/context_dev/models/web_web_scrape_sitemap_params.rbs +7 -0
- data/sig/context_dev/models.rbs +6 -0
- data/sig/context_dev/resources/batch.rbs +8 -2
- data/sig/context_dev/resources/brand.rbs +3 -0
- data/sig/context_dev/resources/news.rbs +17 -0
- data/sig/context_dev/resources/parse.rbs +5 -5
- data/sig/context_dev/resources/people.rbs +19 -0
- data/sig/context_dev/resources/web.rbs +13 -11
- metadata +26 -2
|
@@ -0,0 +1,641 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module ContextDev
|
|
4
|
+
module Models
|
|
5
|
+
# @see ContextDev::Resources::People#enrich
|
|
6
|
+
class PersonEnrichResponse < ContextDev::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute match
|
|
8
|
+
# The highest-scoring person candidate.
|
|
9
|
+
#
|
|
10
|
+
# @return [ContextDev::Models::PersonEnrichResponse::Match::Candidate, ContextDev::Models::PersonEnrichResponse::Match::NotFound]
|
|
11
|
+
required :match, union: -> { ContextDev::Models::PersonEnrichResponse::Match }
|
|
12
|
+
|
|
13
|
+
# @!attribute key_metadata
|
|
14
|
+
# Metadata about the API key used for the request. Included in every response
|
|
15
|
+
# whenever a valid API key is provided, even when the response status is not 200.
|
|
16
|
+
#
|
|
17
|
+
# @return [ContextDev::Models::PersonEnrichResponse::KeyMetadata, nil]
|
|
18
|
+
optional :key_metadata, -> { ContextDev::Models::PersonEnrichResponse::KeyMetadata }
|
|
19
|
+
|
|
20
|
+
# @!method initialize(match:, key_metadata: nil)
|
|
21
|
+
# Some parameter documentations has been truncated, see
|
|
22
|
+
# {ContextDev::Models::PersonEnrichResponse} for more details.
|
|
23
|
+
#
|
|
24
|
+
# @param match [ContextDev::Models::PersonEnrichResponse::Match::Candidate, ContextDev::Models::PersonEnrichResponse::Match::NotFound] The highest-scoring person candidate.
|
|
25
|
+
#
|
|
26
|
+
# @param key_metadata [ContextDev::Models::PersonEnrichResponse::KeyMetadata] Metadata about the API key used for the request. Included in every response when
|
|
27
|
+
|
|
28
|
+
# The highest-scoring person candidate.
|
|
29
|
+
#
|
|
30
|
+
# @see ContextDev::Models::PersonEnrichResponse#match
|
|
31
|
+
module Match
|
|
32
|
+
extend ContextDev::Internal::Type::Union
|
|
33
|
+
|
|
34
|
+
discriminator :status
|
|
35
|
+
|
|
36
|
+
# The highest-scoring person candidate.
|
|
37
|
+
variant :candidate, -> { ContextDev::Models::PersonEnrichResponse::Match::Candidate }
|
|
38
|
+
|
|
39
|
+
# No usable person candidate was found.
|
|
40
|
+
variant :not_found, -> { ContextDev::Models::PersonEnrichResponse::Match::NotFound }
|
|
41
|
+
|
|
42
|
+
class Candidate < ContextDev::Internal::Type::BaseModel
|
|
43
|
+
# @!attribute person
|
|
44
|
+
#
|
|
45
|
+
# @return [ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person]
|
|
46
|
+
required :person, -> { ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person }
|
|
47
|
+
|
|
48
|
+
# @!attribute score
|
|
49
|
+
#
|
|
50
|
+
# @return [Integer]
|
|
51
|
+
required :score, Integer
|
|
52
|
+
|
|
53
|
+
# @!attribute status
|
|
54
|
+
#
|
|
55
|
+
# @return [Symbol, :candidate]
|
|
56
|
+
required :status, const: :candidate
|
|
57
|
+
|
|
58
|
+
# @!method initialize(person:, score:, status: :candidate)
|
|
59
|
+
# The highest-scoring person candidate.
|
|
60
|
+
#
|
|
61
|
+
# @param person [ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person]
|
|
62
|
+
# @param score [Integer]
|
|
63
|
+
# @param status [Symbol, :candidate]
|
|
64
|
+
|
|
65
|
+
# @see ContextDev::Models::PersonEnrichResponse::Match::Candidate#person
|
|
66
|
+
class Person < ContextDev::Internal::Type::BaseModel
|
|
67
|
+
# @!attribute current_role_status
|
|
68
|
+
# Whether the person's current role is known. `present` — current_role is
|
|
69
|
+
# populated. `none` — the work history explicitly shows every role has ended.
|
|
70
|
+
# `unknown` — our data sources could not confirm either way; treat a missing
|
|
71
|
+
# current_role as unverified rather than vacant.
|
|
72
|
+
#
|
|
73
|
+
# @return [Symbol, ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::CurrentRoleStatus]
|
|
74
|
+
required :current_role_status,
|
|
75
|
+
enum: -> { ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::CurrentRoleStatus }
|
|
76
|
+
|
|
77
|
+
# @!attribute education
|
|
78
|
+
#
|
|
79
|
+
# @return [Array<ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Education>]
|
|
80
|
+
required :education,
|
|
81
|
+
-> { ContextDev::Internal::Type::ArrayOf[ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Education] }
|
|
82
|
+
|
|
83
|
+
# @!attribute experience
|
|
84
|
+
#
|
|
85
|
+
# @return [Array<ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Experience>]
|
|
86
|
+
required :experience,
|
|
87
|
+
-> { ContextDev::Internal::Type::ArrayOf[ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Experience] }
|
|
88
|
+
|
|
89
|
+
# @!attribute skills
|
|
90
|
+
#
|
|
91
|
+
# @return [Array<String>]
|
|
92
|
+
required :skills, ContextDev::Internal::Type::ArrayOf[String]
|
|
93
|
+
|
|
94
|
+
# @!attribute social_urls
|
|
95
|
+
#
|
|
96
|
+
# @return [Array<String>]
|
|
97
|
+
required :social_urls, ContextDev::Internal::Type::ArrayOf[String]
|
|
98
|
+
|
|
99
|
+
# @!attribute website_urls
|
|
100
|
+
#
|
|
101
|
+
# @return [Array<String>]
|
|
102
|
+
required :website_urls, ContextDev::Internal::Type::ArrayOf[String]
|
|
103
|
+
|
|
104
|
+
# @!attribute avatar_url
|
|
105
|
+
#
|
|
106
|
+
# @return [String, nil]
|
|
107
|
+
optional :avatar_url, String
|
|
108
|
+
|
|
109
|
+
# @!attribute bio
|
|
110
|
+
#
|
|
111
|
+
# @return [String, nil]
|
|
112
|
+
optional :bio, String
|
|
113
|
+
|
|
114
|
+
# @!attribute checked_at
|
|
115
|
+
# When we last refreshed this profile from our data sources (ISO 8601).
|
|
116
|
+
#
|
|
117
|
+
# @return [String, nil]
|
|
118
|
+
optional :checked_at, String
|
|
119
|
+
|
|
120
|
+
# @!attribute current_role
|
|
121
|
+
#
|
|
122
|
+
# @return [ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::CurrentRole, nil]
|
|
123
|
+
optional :current_role,
|
|
124
|
+
-> { ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::CurrentRole }
|
|
125
|
+
|
|
126
|
+
# @!attribute email
|
|
127
|
+
#
|
|
128
|
+
# @return [String, nil]
|
|
129
|
+
optional :email, String
|
|
130
|
+
|
|
131
|
+
# @!attribute last_updated
|
|
132
|
+
# When the underlying profile data last changed in our data sources (ISO 8601).
|
|
133
|
+
# Omitted when unknown.
|
|
134
|
+
#
|
|
135
|
+
# @return [String, nil]
|
|
136
|
+
optional :last_updated, String
|
|
137
|
+
|
|
138
|
+
# @!attribute location
|
|
139
|
+
#
|
|
140
|
+
# @return [ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Location, nil]
|
|
141
|
+
optional :location, -> { ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Location }
|
|
142
|
+
|
|
143
|
+
# @!attribute name
|
|
144
|
+
#
|
|
145
|
+
# @return [ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Name, nil]
|
|
146
|
+
optional :name, -> { ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Name }
|
|
147
|
+
|
|
148
|
+
# @!method initialize(current_role_status:, education:, experience:, skills:, social_urls:, website_urls:, avatar_url: nil, bio: nil, checked_at: nil, current_role: nil, email: nil, last_updated: nil, location: nil, name: nil)
|
|
149
|
+
# Some parameter documentations has been truncated, see
|
|
150
|
+
# {ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person} for more
|
|
151
|
+
# details.
|
|
152
|
+
#
|
|
153
|
+
# @param current_role_status [Symbol, ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::CurrentRoleStatus] Whether the person's current role is known. `present` — current_role is populate
|
|
154
|
+
#
|
|
155
|
+
# @param education [Array<ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Education>]
|
|
156
|
+
#
|
|
157
|
+
# @param experience [Array<ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Experience>]
|
|
158
|
+
#
|
|
159
|
+
# @param skills [Array<String>]
|
|
160
|
+
#
|
|
161
|
+
# @param social_urls [Array<String>]
|
|
162
|
+
#
|
|
163
|
+
# @param website_urls [Array<String>]
|
|
164
|
+
#
|
|
165
|
+
# @param avatar_url [String]
|
|
166
|
+
#
|
|
167
|
+
# @param bio [String]
|
|
168
|
+
#
|
|
169
|
+
# @param checked_at [String] When we last refreshed this profile from our data sources (ISO 8601).
|
|
170
|
+
#
|
|
171
|
+
# @param current_role [ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::CurrentRole]
|
|
172
|
+
#
|
|
173
|
+
# @param email [String]
|
|
174
|
+
#
|
|
175
|
+
# @param last_updated [String] When the underlying profile data last changed in our data sources (ISO 8601). Om
|
|
176
|
+
#
|
|
177
|
+
# @param location [ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Location]
|
|
178
|
+
#
|
|
179
|
+
# @param name [ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Name]
|
|
180
|
+
|
|
181
|
+
# Whether the person's current role is known. `present` — current_role is
|
|
182
|
+
# populated. `none` — the work history explicitly shows every role has ended.
|
|
183
|
+
# `unknown` — our data sources could not confirm either way; treat a missing
|
|
184
|
+
# current_role as unverified rather than vacant.
|
|
185
|
+
#
|
|
186
|
+
# @see ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person#current_role_status
|
|
187
|
+
module CurrentRoleStatus
|
|
188
|
+
extend ContextDev::Internal::Type::Enum
|
|
189
|
+
|
|
190
|
+
PRESENT = :present
|
|
191
|
+
NONE = :none
|
|
192
|
+
UNKNOWN = :unknown
|
|
193
|
+
|
|
194
|
+
# @!method self.values
|
|
195
|
+
# @return [Array<Symbol>]
|
|
196
|
+
end
|
|
197
|
+
|
|
198
|
+
class Education < ContextDev::Internal::Type::BaseModel
|
|
199
|
+
# @!attribute institution
|
|
200
|
+
#
|
|
201
|
+
# @return [ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Education::Institution]
|
|
202
|
+
required :institution,
|
|
203
|
+
-> { ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Education::Institution }
|
|
204
|
+
|
|
205
|
+
# @!attribute degree
|
|
206
|
+
#
|
|
207
|
+
# @return [String, nil]
|
|
208
|
+
optional :degree, String
|
|
209
|
+
|
|
210
|
+
# @!attribute description
|
|
211
|
+
#
|
|
212
|
+
# @return [String, nil]
|
|
213
|
+
optional :description, String
|
|
214
|
+
|
|
215
|
+
# @!attribute end_date
|
|
216
|
+
#
|
|
217
|
+
# @return [ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Education::EndDate, nil]
|
|
218
|
+
optional :end_date,
|
|
219
|
+
-> { ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Education::EndDate }
|
|
220
|
+
|
|
221
|
+
# @!attribute field_of_study
|
|
222
|
+
#
|
|
223
|
+
# @return [String, nil]
|
|
224
|
+
optional :field_of_study, String
|
|
225
|
+
|
|
226
|
+
# @!attribute start_date
|
|
227
|
+
#
|
|
228
|
+
# @return [ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Education::StartDate, nil]
|
|
229
|
+
optional :start_date,
|
|
230
|
+
-> { ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Education::StartDate }
|
|
231
|
+
|
|
232
|
+
# @!method initialize(institution:, degree: nil, description: nil, end_date: nil, field_of_study: nil, start_date: nil)
|
|
233
|
+
# @param institution [ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Education::Institution]
|
|
234
|
+
# @param degree [String]
|
|
235
|
+
# @param description [String]
|
|
236
|
+
# @param end_date [ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Education::EndDate]
|
|
237
|
+
# @param field_of_study [String]
|
|
238
|
+
# @param start_date [ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Education::StartDate]
|
|
239
|
+
|
|
240
|
+
# @see ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Education#institution
|
|
241
|
+
class Institution < ContextDev::Internal::Type::BaseModel
|
|
242
|
+
# @!attribute name
|
|
243
|
+
#
|
|
244
|
+
# @return [String]
|
|
245
|
+
required :name, String
|
|
246
|
+
|
|
247
|
+
# @!attribute domain
|
|
248
|
+
#
|
|
249
|
+
# @return [String, nil]
|
|
250
|
+
optional :domain, String
|
|
251
|
+
|
|
252
|
+
# @!method initialize(name:, domain: nil)
|
|
253
|
+
# @param name [String]
|
|
254
|
+
# @param domain [String]
|
|
255
|
+
end
|
|
256
|
+
|
|
257
|
+
# @see ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Education#end_date
|
|
258
|
+
class EndDate < ContextDev::Internal::Type::BaseModel
|
|
259
|
+
# @!attribute year
|
|
260
|
+
#
|
|
261
|
+
# @return [Integer]
|
|
262
|
+
required :year, Integer
|
|
263
|
+
|
|
264
|
+
# @!attribute day
|
|
265
|
+
#
|
|
266
|
+
# @return [Integer, nil]
|
|
267
|
+
optional :day, Integer
|
|
268
|
+
|
|
269
|
+
# @!attribute month
|
|
270
|
+
#
|
|
271
|
+
# @return [Integer, nil]
|
|
272
|
+
optional :month, Integer
|
|
273
|
+
|
|
274
|
+
# @!method initialize(year:, day: nil, month: nil)
|
|
275
|
+
# @param year [Integer]
|
|
276
|
+
# @param day [Integer]
|
|
277
|
+
# @param month [Integer]
|
|
278
|
+
end
|
|
279
|
+
|
|
280
|
+
# @see ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Education#start_date
|
|
281
|
+
class StartDate < ContextDev::Internal::Type::BaseModel
|
|
282
|
+
# @!attribute year
|
|
283
|
+
#
|
|
284
|
+
# @return [Integer]
|
|
285
|
+
required :year, Integer
|
|
286
|
+
|
|
287
|
+
# @!attribute day
|
|
288
|
+
#
|
|
289
|
+
# @return [Integer, nil]
|
|
290
|
+
optional :day, Integer
|
|
291
|
+
|
|
292
|
+
# @!attribute month
|
|
293
|
+
#
|
|
294
|
+
# @return [Integer, nil]
|
|
295
|
+
optional :month, Integer
|
|
296
|
+
|
|
297
|
+
# @!method initialize(year:, day: nil, month: nil)
|
|
298
|
+
# @param year [Integer]
|
|
299
|
+
# @param day [Integer]
|
|
300
|
+
# @param month [Integer]
|
|
301
|
+
end
|
|
302
|
+
end
|
|
303
|
+
|
|
304
|
+
class Experience < ContextDev::Internal::Type::BaseModel
|
|
305
|
+
# @!attribute organization
|
|
306
|
+
#
|
|
307
|
+
# @return [ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Experience::Organization]
|
|
308
|
+
required :organization,
|
|
309
|
+
-> { ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Experience::Organization }
|
|
310
|
+
|
|
311
|
+
# @!attribute title
|
|
312
|
+
#
|
|
313
|
+
# @return [String]
|
|
314
|
+
required :title, String
|
|
315
|
+
|
|
316
|
+
# @!attribute description
|
|
317
|
+
#
|
|
318
|
+
# @return [String, nil]
|
|
319
|
+
optional :description, String
|
|
320
|
+
|
|
321
|
+
# @!attribute end_date
|
|
322
|
+
#
|
|
323
|
+
# @return [ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Experience::EndDate, nil]
|
|
324
|
+
optional :end_date,
|
|
325
|
+
-> { ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Experience::EndDate }
|
|
326
|
+
|
|
327
|
+
# @!attribute is_current
|
|
328
|
+
#
|
|
329
|
+
# @return [Boolean, nil]
|
|
330
|
+
optional :is_current, ContextDev::Internal::Type::Boolean
|
|
331
|
+
|
|
332
|
+
# @!attribute location
|
|
333
|
+
#
|
|
334
|
+
# @return [String, nil]
|
|
335
|
+
optional :location, String
|
|
336
|
+
|
|
337
|
+
# @!attribute start_date
|
|
338
|
+
#
|
|
339
|
+
# @return [ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Experience::StartDate, nil]
|
|
340
|
+
optional :start_date,
|
|
341
|
+
-> { ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Experience::StartDate }
|
|
342
|
+
|
|
343
|
+
# @!method initialize(organization:, title:, description: nil, end_date: nil, is_current: nil, location: nil, start_date: nil)
|
|
344
|
+
# @param organization [ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Experience::Organization]
|
|
345
|
+
# @param title [String]
|
|
346
|
+
# @param description [String]
|
|
347
|
+
# @param end_date [ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Experience::EndDate]
|
|
348
|
+
# @param is_current [Boolean]
|
|
349
|
+
# @param location [String]
|
|
350
|
+
# @param start_date [ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Experience::StartDate]
|
|
351
|
+
|
|
352
|
+
# @see ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Experience#organization
|
|
353
|
+
class Organization < ContextDev::Internal::Type::BaseModel
|
|
354
|
+
# @!attribute name
|
|
355
|
+
#
|
|
356
|
+
# @return [String]
|
|
357
|
+
required :name, String
|
|
358
|
+
|
|
359
|
+
# @!attribute domain
|
|
360
|
+
#
|
|
361
|
+
# @return [String, nil]
|
|
362
|
+
optional :domain, String
|
|
363
|
+
|
|
364
|
+
# @!method initialize(name:, domain: nil)
|
|
365
|
+
# @param name [String]
|
|
366
|
+
# @param domain [String]
|
|
367
|
+
end
|
|
368
|
+
|
|
369
|
+
# @see ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Experience#end_date
|
|
370
|
+
class EndDate < ContextDev::Internal::Type::BaseModel
|
|
371
|
+
# @!attribute year
|
|
372
|
+
#
|
|
373
|
+
# @return [Integer]
|
|
374
|
+
required :year, Integer
|
|
375
|
+
|
|
376
|
+
# @!attribute day
|
|
377
|
+
#
|
|
378
|
+
# @return [Integer, nil]
|
|
379
|
+
optional :day, Integer
|
|
380
|
+
|
|
381
|
+
# @!attribute month
|
|
382
|
+
#
|
|
383
|
+
# @return [Integer, nil]
|
|
384
|
+
optional :month, Integer
|
|
385
|
+
|
|
386
|
+
# @!method initialize(year:, day: nil, month: nil)
|
|
387
|
+
# @param year [Integer]
|
|
388
|
+
# @param day [Integer]
|
|
389
|
+
# @param month [Integer]
|
|
390
|
+
end
|
|
391
|
+
|
|
392
|
+
# @see ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::Experience#start_date
|
|
393
|
+
class StartDate < ContextDev::Internal::Type::BaseModel
|
|
394
|
+
# @!attribute year
|
|
395
|
+
#
|
|
396
|
+
# @return [Integer]
|
|
397
|
+
required :year, Integer
|
|
398
|
+
|
|
399
|
+
# @!attribute day
|
|
400
|
+
#
|
|
401
|
+
# @return [Integer, nil]
|
|
402
|
+
optional :day, Integer
|
|
403
|
+
|
|
404
|
+
# @!attribute month
|
|
405
|
+
#
|
|
406
|
+
# @return [Integer, nil]
|
|
407
|
+
optional :month, Integer
|
|
408
|
+
|
|
409
|
+
# @!method initialize(year:, day: nil, month: nil)
|
|
410
|
+
# @param year [Integer]
|
|
411
|
+
# @param day [Integer]
|
|
412
|
+
# @param month [Integer]
|
|
413
|
+
end
|
|
414
|
+
end
|
|
415
|
+
|
|
416
|
+
# @see ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person#current_role
|
|
417
|
+
class CurrentRole < ContextDev::Internal::Type::BaseModel
|
|
418
|
+
# @!attribute organization
|
|
419
|
+
#
|
|
420
|
+
# @return [ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::CurrentRole::Organization]
|
|
421
|
+
required :organization,
|
|
422
|
+
-> { ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::CurrentRole::Organization }
|
|
423
|
+
|
|
424
|
+
# @!attribute title
|
|
425
|
+
#
|
|
426
|
+
# @return [String]
|
|
427
|
+
required :title, String
|
|
428
|
+
|
|
429
|
+
# @!attribute description
|
|
430
|
+
#
|
|
431
|
+
# @return [String, nil]
|
|
432
|
+
optional :description, String
|
|
433
|
+
|
|
434
|
+
# @!attribute end_date
|
|
435
|
+
#
|
|
436
|
+
# @return [ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::CurrentRole::EndDate, nil]
|
|
437
|
+
optional :end_date,
|
|
438
|
+
-> { ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::CurrentRole::EndDate }
|
|
439
|
+
|
|
440
|
+
# @!attribute is_current
|
|
441
|
+
#
|
|
442
|
+
# @return [Boolean, nil]
|
|
443
|
+
optional :is_current, ContextDev::Internal::Type::Boolean
|
|
444
|
+
|
|
445
|
+
# @!attribute location
|
|
446
|
+
#
|
|
447
|
+
# @return [String, nil]
|
|
448
|
+
optional :location, String
|
|
449
|
+
|
|
450
|
+
# @!attribute start_date
|
|
451
|
+
#
|
|
452
|
+
# @return [ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::CurrentRole::StartDate, nil]
|
|
453
|
+
optional :start_date,
|
|
454
|
+
-> { ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::CurrentRole::StartDate }
|
|
455
|
+
|
|
456
|
+
# @!method initialize(organization:, title:, description: nil, end_date: nil, is_current: nil, location: nil, start_date: nil)
|
|
457
|
+
# @param organization [ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::CurrentRole::Organization]
|
|
458
|
+
# @param title [String]
|
|
459
|
+
# @param description [String]
|
|
460
|
+
# @param end_date [ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::CurrentRole::EndDate]
|
|
461
|
+
# @param is_current [Boolean]
|
|
462
|
+
# @param location [String]
|
|
463
|
+
# @param start_date [ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::CurrentRole::StartDate]
|
|
464
|
+
|
|
465
|
+
# @see ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::CurrentRole#organization
|
|
466
|
+
class Organization < ContextDev::Internal::Type::BaseModel
|
|
467
|
+
# @!attribute name
|
|
468
|
+
#
|
|
469
|
+
# @return [String]
|
|
470
|
+
required :name, String
|
|
471
|
+
|
|
472
|
+
# @!attribute domain
|
|
473
|
+
#
|
|
474
|
+
# @return [String, nil]
|
|
475
|
+
optional :domain, String
|
|
476
|
+
|
|
477
|
+
# @!method initialize(name:, domain: nil)
|
|
478
|
+
# @param name [String]
|
|
479
|
+
# @param domain [String]
|
|
480
|
+
end
|
|
481
|
+
|
|
482
|
+
# @see ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::CurrentRole#end_date
|
|
483
|
+
class EndDate < ContextDev::Internal::Type::BaseModel
|
|
484
|
+
# @!attribute year
|
|
485
|
+
#
|
|
486
|
+
# @return [Integer]
|
|
487
|
+
required :year, Integer
|
|
488
|
+
|
|
489
|
+
# @!attribute day
|
|
490
|
+
#
|
|
491
|
+
# @return [Integer, nil]
|
|
492
|
+
optional :day, Integer
|
|
493
|
+
|
|
494
|
+
# @!attribute month
|
|
495
|
+
#
|
|
496
|
+
# @return [Integer, nil]
|
|
497
|
+
optional :month, Integer
|
|
498
|
+
|
|
499
|
+
# @!method initialize(year:, day: nil, month: nil)
|
|
500
|
+
# @param year [Integer]
|
|
501
|
+
# @param day [Integer]
|
|
502
|
+
# @param month [Integer]
|
|
503
|
+
end
|
|
504
|
+
|
|
505
|
+
# @see ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person::CurrentRole#start_date
|
|
506
|
+
class StartDate < ContextDev::Internal::Type::BaseModel
|
|
507
|
+
# @!attribute year
|
|
508
|
+
#
|
|
509
|
+
# @return [Integer]
|
|
510
|
+
required :year, Integer
|
|
511
|
+
|
|
512
|
+
# @!attribute day
|
|
513
|
+
#
|
|
514
|
+
# @return [Integer, nil]
|
|
515
|
+
optional :day, Integer
|
|
516
|
+
|
|
517
|
+
# @!attribute month
|
|
518
|
+
#
|
|
519
|
+
# @return [Integer, nil]
|
|
520
|
+
optional :month, Integer
|
|
521
|
+
|
|
522
|
+
# @!method initialize(year:, day: nil, month: nil)
|
|
523
|
+
# @param year [Integer]
|
|
524
|
+
# @param day [Integer]
|
|
525
|
+
# @param month [Integer]
|
|
526
|
+
end
|
|
527
|
+
end
|
|
528
|
+
|
|
529
|
+
# @see ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person#location
|
|
530
|
+
class Location < ContextDev::Internal::Type::BaseModel
|
|
531
|
+
# @!attribute city
|
|
532
|
+
#
|
|
533
|
+
# @return [String, nil]
|
|
534
|
+
optional :city, String
|
|
535
|
+
|
|
536
|
+
# @!attribute country
|
|
537
|
+
#
|
|
538
|
+
# @return [String, nil]
|
|
539
|
+
optional :country, String
|
|
540
|
+
|
|
541
|
+
# @!attribute country_code
|
|
542
|
+
#
|
|
543
|
+
# @return [String, nil]
|
|
544
|
+
optional :country_code, String
|
|
545
|
+
|
|
546
|
+
# @!attribute display_
|
|
547
|
+
#
|
|
548
|
+
# @return [String, nil]
|
|
549
|
+
optional :display_, String, api_name: :display
|
|
550
|
+
|
|
551
|
+
# @!attribute region
|
|
552
|
+
#
|
|
553
|
+
# @return [String, nil]
|
|
554
|
+
optional :region, String
|
|
555
|
+
|
|
556
|
+
# @!method initialize(city: nil, country: nil, country_code: nil, display_: nil, region: nil)
|
|
557
|
+
# @param city [String]
|
|
558
|
+
# @param country [String]
|
|
559
|
+
# @param country_code [String]
|
|
560
|
+
# @param display_ [String]
|
|
561
|
+
# @param region [String]
|
|
562
|
+
end
|
|
563
|
+
|
|
564
|
+
# @see ContextDev::Models::PersonEnrichResponse::Match::Candidate::Person#name
|
|
565
|
+
class Name < ContextDev::Internal::Type::BaseModel
|
|
566
|
+
# @!attribute first
|
|
567
|
+
#
|
|
568
|
+
# @return [String, nil]
|
|
569
|
+
optional :first, String
|
|
570
|
+
|
|
571
|
+
# @!attribute full
|
|
572
|
+
#
|
|
573
|
+
# @return [String, nil]
|
|
574
|
+
optional :full, String
|
|
575
|
+
|
|
576
|
+
# @!attribute last
|
|
577
|
+
#
|
|
578
|
+
# @return [String, nil]
|
|
579
|
+
optional :last, String
|
|
580
|
+
|
|
581
|
+
# @!method initialize(first: nil, full: nil, last: nil)
|
|
582
|
+
# @param first [String]
|
|
583
|
+
# @param full [String]
|
|
584
|
+
# @param last [String]
|
|
585
|
+
end
|
|
586
|
+
end
|
|
587
|
+
end
|
|
588
|
+
|
|
589
|
+
class NotFound < ContextDev::Internal::Type::BaseModel
|
|
590
|
+
# @!attribute person
|
|
591
|
+
#
|
|
592
|
+
# @return [nil]
|
|
593
|
+
required :person, NilClass
|
|
594
|
+
|
|
595
|
+
# @!attribute score
|
|
596
|
+
#
|
|
597
|
+
# @return [nil]
|
|
598
|
+
required :score, NilClass
|
|
599
|
+
|
|
600
|
+
# @!attribute status
|
|
601
|
+
#
|
|
602
|
+
# @return [Symbol, :not_found]
|
|
603
|
+
required :status, const: :not_found
|
|
604
|
+
|
|
605
|
+
# @!method initialize(person:, score:, status: :not_found)
|
|
606
|
+
# No usable person candidate was found.
|
|
607
|
+
#
|
|
608
|
+
# @param person [nil]
|
|
609
|
+
# @param score [nil]
|
|
610
|
+
# @param status [Symbol, :not_found]
|
|
611
|
+
end
|
|
612
|
+
|
|
613
|
+
# @!method self.variants
|
|
614
|
+
# @return [Array(ContextDev::Models::PersonEnrichResponse::Match::Candidate, ContextDev::Models::PersonEnrichResponse::Match::NotFound)]
|
|
615
|
+
end
|
|
616
|
+
|
|
617
|
+
# @see ContextDev::Models::PersonEnrichResponse#key_metadata
|
|
618
|
+
class KeyMetadata < ContextDev::Internal::Type::BaseModel
|
|
619
|
+
# @!attribute credits_consumed
|
|
620
|
+
# The number of credits consumed by this request.
|
|
621
|
+
#
|
|
622
|
+
# @return [Integer]
|
|
623
|
+
required :credits_consumed, Integer
|
|
624
|
+
|
|
625
|
+
# @!attribute credits_remaining
|
|
626
|
+
# The number of credits remaining for your organization after this request.
|
|
627
|
+
#
|
|
628
|
+
# @return [Integer]
|
|
629
|
+
required :credits_remaining, Integer
|
|
630
|
+
|
|
631
|
+
# @!method initialize(credits_consumed:, credits_remaining:)
|
|
632
|
+
# Metadata about the API key used for the request. Included in every response
|
|
633
|
+
# whenever a valid API key is provided, even when the response status is not 200.
|
|
634
|
+
#
|
|
635
|
+
# @param credits_consumed [Integer] The number of credits consumed by this request.
|
|
636
|
+
#
|
|
637
|
+
# @param credits_remaining [Integer] The number of credits remaining for your organization after this request.
|
|
638
|
+
end
|
|
639
|
+
end
|
|
640
|
+
end
|
|
641
|
+
end
|