cb-api 17.4.0 → 18.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +1 -0
- data/CONTRIBUTING.md +18 -0
- data/LICENSE +202 -0
- data/README.md +3 -1
- data/lib/cb.rb +12 -2
- data/lib/cb/client.rb +10 -0
- data/lib/cb/clients/anon_saved_search.rb +12 -4
- data/lib/cb/clients/application.rb +10 -2
- data/lib/cb/clients/application_external.rb +13 -5
- data/lib/cb/clients/category.rb +16 -8
- data/lib/cb/clients/company.rb +16 -8
- data/lib/cb/clients/education.rb +17 -9
- data/lib/cb/clients/employee_types.rb +11 -3
- data/lib/cb/clients/industry.rb +12 -3
- data/lib/cb/clients/job.rb +10 -2
- data/lib/cb/clients/job_branding.rb +13 -5
- data/lib/cb/clients/recommendation.rb +27 -18
- data/lib/cb/clients/saved_search.rb +21 -15
- data/lib/cb/clients/talent_network.rb +20 -12
- data/lib/cb/clients/user.rb +22 -14
- data/lib/cb/config.rb +64 -54
- data/lib/cb/convenience.rb +22 -13
- data/lib/cb/criteria/application/cover_letter.rb +10 -0
- data/lib/cb/criteria/application/create.rb +11 -1
- data/lib/cb/criteria/application/get.rb +10 -0
- data/lib/cb/criteria/application/response.rb +10 -0
- data/lib/cb/criteria/application/resume.rb +10 -0
- data/lib/cb/criteria/application/update.rb +10 -0
- data/lib/cb/criteria/job/details.rb +11 -1
- data/lib/cb/criteria/resumes/get_by_hash.rb +12 -2
- data/lib/cb/criteria/user/change_password.rb +21 -11
- data/lib/cb/criteria/user/delete.rb +18 -11
- data/lib/cb/exceptions.rb +14 -4
- data/lib/cb/models/api_call_model.rb +10 -1
- data/lib/cb/models/api_response_model.rb +15 -7
- data/lib/cb/models/implementations/application.rb +10 -1
- data/lib/cb/models/implementations/application/cover_letter.rb +10 -1
- data/lib/cb/models/implementations/application/form.rb +13 -5
- data/lib/cb/models/implementations/application/response.rb +10 -1
- data/lib/cb/models/implementations/application/resume.rb +10 -1
- data/lib/cb/models/implementations/application_external.rb +12 -3
- data/lib/cb/models/implementations/branding/media.rb +10 -2
- data/lib/cb/models/implementations/branding/section.rb +10 -2
- data/lib/cb/models/implementations/branding/style.rb +10 -2
- data/lib/cb/models/implementations/branding/styles/base.rb +12 -4
- data/lib/cb/models/implementations/branding/styles/buttons.rb +10 -2
- data/lib/cb/models/implementations/branding/styles/company_info.rb +11 -3
- data/lib/cb/models/implementations/branding/styles/container.rb +11 -3
- data/lib/cb/models/implementations/branding/styles/content.rb +10 -2
- data/lib/cb/models/implementations/branding/styles/css_adapter.rb +10 -2
- data/lib/cb/models/implementations/branding/styles/headings.rb +10 -2
- data/lib/cb/models/implementations/branding/styles/job_details.rb +10 -2
- data/lib/cb/models/implementations/branding/styles/page.rb +10 -2
- data/lib/cb/models/implementations/branding/widget.rb +10 -2
- data/lib/cb/models/implementations/category.rb +17 -7
- data/lib/cb/models/implementations/collapsed_job_results.rb +10 -1
- data/lib/cb/models/implementations/collapsed_jobs.rb +10 -0
- data/lib/cb/models/implementations/company.rb +17 -10
- data/lib/cb/models/implementations/data_lists/resume_data_list.rb +11 -1
- data/lib/cb/models/implementations/education.rb +10 -0
- data/lib/cb/models/implementations/email_subscription.rb +10 -0
- data/lib/cb/models/implementations/employee_type.rb +14 -4
- data/lib/cb/models/implementations/industry.rb +14 -6
- data/lib/cb/models/implementations/job.rb +24 -20
- data/lib/cb/models/implementations/job_branding.rb +13 -5
- data/lib/cb/models/implementations/job_results.rb +10 -2
- data/lib/cb/models/implementations/job_results_v3.rb +11 -1
- data/lib/cb/models/implementations/recommended_job.rb +10 -0
- data/lib/cb/models/implementations/resume.rb +11 -1
- data/lib/cb/models/implementations/resume_document.rb +10 -0
- data/lib/cb/models/implementations/resume_listing.rb +11 -1
- data/lib/cb/models/implementations/resumes/country_code.rb +10 -0
- data/lib/cb/models/implementations/resumes/education.rb +11 -1
- data/lib/cb/models/implementations/resumes/government_and_military.rb +11 -1
- data/lib/cb/models/implementations/resumes/language_code.rb +12 -2
- data/lib/cb/models/implementations/resumes/relocation.rb +11 -1
- data/lib/cb/models/implementations/resumes/salary_information.rb +11 -2
- data/lib/cb/models/implementations/resumes/skills_and_qualifications.rb +10 -0
- data/lib/cb/models/implementations/resumes/work_experience.rb +11 -1
- data/lib/cb/models/implementations/saved_search.rb +83 -73
- data/lib/cb/models/implementations/state.rb +11 -2
- data/lib/cb/models/implementations/talent_network.rb +44 -36
- data/lib/cb/models/implementations/user.rb +12 -2
- data/lib/cb/models/implementations/work_status.rb +12 -3
- data/lib/cb/requests/anonymous_saved_search/create.rb +10 -2
- data/lib/cb/requests/anonymous_saved_search/delete.rb +10 -2
- data/lib/cb/requests/application/create.rb +10 -1
- data/lib/cb/requests/application/form.rb +10 -2
- data/lib/cb/requests/application/get.rb +10 -1
- data/lib/cb/requests/application/update.rb +10 -1
- data/lib/cb/requests/application/utils.rb +10 -1
- data/lib/cb/requests/application_external/submit_application.rb +10 -2
- data/lib/cb/requests/base.rb +13 -5
- data/lib/cb/requests/category/search.rb +10 -2
- data/lib/cb/requests/company/find.rb +12 -4
- data/lib/cb/requests/data_lists/countries.rb +10 -0
- data/lib/cb/requests/data_lists/data_list_base.rb +11 -1
- data/lib/cb/requests/data_lists/desired_job_type.rb +10 -0
- data/lib/cb/requests/data_lists/education_codes.rb +10 -0
- data/lib/cb/requests/data_lists/languages.rb +10 -0
- data/lib/cb/requests/data_lists/state.rb +12 -2
- data/lib/cb/requests/education/get.rb +10 -2
- data/lib/cb/requests/email_subscription/modify.rb +13 -5
- data/lib/cb/requests/email_subscription/retrieve.rb +10 -2
- data/lib/cb/requests/job_search/get.rb +12 -3
- data/lib/cb/requests/recommendations/resume_recs.rb +12 -4
- data/lib/cb/requests/resumes/delete.rb +10 -0
- data/lib/cb/requests/resumes/get.rb +10 -0
- data/lib/cb/requests/resumes/language_codes.rb +12 -2
- data/lib/cb/requests/resumes/list.rb +12 -2
- data/lib/cb/requests/resumes/post.rb +11 -1
- data/lib/cb/requests/resumes/put.rb +11 -3
- data/lib/cb/requests/user/change_password.rb +10 -2
- data/lib/cb/requests/user/check_existing.rb +10 -2
- data/lib/cb/requests/user/delete.rb +10 -2
- data/lib/cb/requests/user/retrieve.rb +10 -2
- data/lib/cb/requests/user/temporary_password.rb +11 -3
- data/lib/cb/requests/work_status/list.rb +10 -2
- data/lib/cb/responses/Recommendation/recommendations.rb +10 -1
- data/lib/cb/responses/anonymous_saved_search/create.rb +10 -2
- data/lib/cb/responses/anonymous_saved_search/delete.rb +10 -2
- data/lib/cb/responses/api_response.rb +19 -9
- data/lib/cb/responses/application.rb +10 -2
- data/lib/cb/responses/application/application_form.rb +10 -2
- data/lib/cb/responses/application_external/submit_application.rb +11 -2
- data/lib/cb/responses/category/search.rb +13 -4
- data/lib/cb/responses/company/find.rb +12 -3
- data/lib/cb/responses/data_list/state.rb +10 -1
- data/lib/cb/responses/data_lists/resume_data_list.rb +10 -1
- data/lib/cb/responses/education/get.rb +13 -4
- data/lib/cb/responses/email_subscription/response.rb +11 -2
- data/lib/cb/responses/employee_types/search.rb +10 -3
- data/lib/cb/responses/errors.rb +14 -5
- data/lib/cb/responses/industry/search.rb +11 -4
- data/lib/cb/responses/job/search.rb +10 -1
- data/lib/cb/responses/job/search_v3.rb +10 -1
- data/lib/cb/responses/job/singular.rb +13 -4
- data/lib/cb/responses/metadata.rb +11 -2
- data/lib/cb/responses/resumes/language_codes.rb +11 -0
- data/lib/cb/responses/resumes/resume.rb +10 -1
- data/lib/cb/responses/resumes/resume_document.rb +10 -0
- data/lib/cb/responses/resumes/resume_list.rb +10 -0
- data/lib/cb/responses/saved_search/delete.rb +11 -3
- data/lib/cb/responses/saved_search/list.rb +10 -2
- data/lib/cb/responses/saved_search/retrieve.rb +10 -2
- data/lib/cb/responses/saved_search/singular.rb +10 -2
- data/lib/cb/responses/saved_search/update.rb +11 -3
- data/lib/cb/responses/timing.rb +15 -6
- data/lib/cb/responses/user/change_password.rb +12 -4
- data/lib/cb/responses/user/check_existing.rb +11 -3
- data/lib/cb/responses/user/delete.rb +11 -3
- data/lib/cb/responses/user/retrieve.rb +10 -3
- data/lib/cb/responses/user/temporary_password.rb +10 -3
- data/lib/cb/responses/work_status/list.rb +12 -4
- data/lib/cb/utils/api.rb +22 -12
- data/lib/cb/utils/console_observer.rb +11 -2
- data/lib/cb/utils/country.rb +14 -4
- data/lib/cb/utils/fluid_attributes.rb +11 -4
- data/lib/cb/utils/meta_values.rb +10 -0
- data/lib/cb/utils/response_array_extractor.rb +14 -6
- data/lib/cb/utils/response_map.rb +12 -3
- data/lib/cb/utils/validator.rb +21 -19
- data/lib/cb/version.rb +11 -1
- data/lib/tasks/cb.rake +11 -1
- data/lib/tasks/doc.rake +15 -5
- metadata +5 -3
data/lib/cb/clients/user.rb
CHANGED
@@ -1,10 +1,19 @@
|
|
1
|
+
# Copyright 2015 CareerBuilder, LLC
|
2
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
3
|
+
# you may not use this file except in compliance with the License.
|
4
|
+
# You may obtain a copy of the License at
|
5
|
+
#
|
6
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
7
|
+
# Unless required by applicable law or agreed to in writing, software
|
8
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
9
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
10
|
+
# See the License for the specific language governing permissions and limitations under the License.
|
1
11
|
require 'json'
|
2
12
|
|
3
13
|
module Cb
|
4
14
|
module Clients
|
5
15
|
class User
|
6
16
|
class << self
|
7
|
-
|
8
17
|
def check_existing(email, password)
|
9
18
|
xml = build_check_existing_request(email, password)
|
10
19
|
response = api_client.cb_post(Cb.configuration.uri_user_check_existing, body: xml)
|
@@ -17,11 +26,11 @@ module Cb
|
|
17
26
|
Cb::Responses::User::TemporaryPassword.new(response)
|
18
27
|
end
|
19
28
|
|
20
|
-
def retrieve(external_id,
|
29
|
+
def retrieve(external_id, _test_mode = false)
|
21
30
|
my_api = Cb::Utils::Api.instance
|
22
|
-
json_hash = my_api.cb_post Cb.configuration.uri_user_retrieve, :
|
23
|
-
if json_hash.
|
24
|
-
if json_hash['ResponseUserInfo'].
|
31
|
+
json_hash = my_api.cb_post Cb.configuration.uri_user_retrieve, body: build_retrieve_request(external_id, true)
|
32
|
+
if json_hash.key? 'ResponseUserInfo'
|
33
|
+
if json_hash['ResponseUserInfo'].key? 'UserInfo'
|
25
34
|
user = Models::User.new json_hash['ResponseUserInfo']['UserInfo']
|
26
35
|
end
|
27
36
|
my_api.append_api_responses user, json_hash['ResponseUserInfo']
|
@@ -32,18 +41,18 @@ module Cb
|
|
32
41
|
|
33
42
|
def change_password(user_info)
|
34
43
|
my_api = Cb::Utils::Api.instance
|
35
|
-
uri = Cb
|
36
|
-
response = my_api.cb_post(uri, :
|
44
|
+
uri = Cb.configuration.uri_user_change_password
|
45
|
+
response = my_api.cb_post(uri, body: user_info.to_xml)
|
37
46
|
|
38
|
-
Cb::Responses::User::ChangePassword.new(response) if response.
|
47
|
+
Cb::Responses::User::ChangePassword.new(response) if response.key?('ResponseUserChangePW')
|
39
48
|
end
|
40
49
|
|
41
50
|
def delete(delete_criteria)
|
42
51
|
my_api = Cb::Utils::Api.instance
|
43
|
-
uri = Cb
|
44
|
-
response = my_api.cb_post(uri, :
|
52
|
+
uri = Cb.configuration.uri_user_delete
|
53
|
+
response = my_api.cb_post(uri, body: delete_criteria.to_xml)
|
45
54
|
|
46
|
-
Cb::Responses::User::Delete.new(response) if response.
|
55
|
+
Cb::Responses::User::Delete.new(response) if response.key?('ResponseUserDelete')
|
47
56
|
end
|
48
57
|
|
49
58
|
private
|
@@ -64,7 +73,7 @@ module Cb
|
|
64
73
|
<Request>
|
65
74
|
<DeveloperKey>#{Cb.configuration.dev_key}</DeveloperKey>
|
66
75
|
<ExternalID>#{external_id}</ExternalID>
|
67
|
-
<Test>#{test_mode
|
76
|
+
<Test>#{test_mode}</Test>
|
68
77
|
</Request>
|
69
78
|
eos
|
70
79
|
end
|
@@ -74,7 +83,7 @@ module Cb
|
|
74
83
|
<Request>
|
75
84
|
<DeveloperKey>#{Cb.configuration.dev_key}</DeveloperKey>
|
76
85
|
<ExternalID>#{external_id}</ExternalID>
|
77
|
-
<Test>#{test_mode
|
86
|
+
<Test>#{test_mode}</Test>
|
78
87
|
<OldPassword>#{old_password}</OldPassword>
|
79
88
|
<NewPassword>#{new_password}</NewPassword>
|
80
89
|
</Request>
|
@@ -84,7 +93,6 @@ module Cb
|
|
84
93
|
def api_client
|
85
94
|
Cb::Utils::Api.instance
|
86
95
|
end
|
87
|
-
|
88
96
|
end
|
89
97
|
end
|
90
98
|
end
|
data/lib/cb/config.rb
CHANGED
@@ -1,6 +1,15 @@
|
|
1
|
+
# Copyright 2015 CareerBuilder, LLC
|
2
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
3
|
+
# you may not use this file except in compliance with the License.
|
4
|
+
# You may obtain a copy of the License at
|
5
|
+
#
|
6
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
7
|
+
# Unless required by applicable law or agreed to in writing, software
|
8
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
9
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
10
|
+
# See the License for the specific language governing permissions and limitations under the License.
|
1
11
|
module Cb
|
2
12
|
class Config
|
3
|
-
|
4
13
|
def initialize
|
5
14
|
Cb::Utils::Country.inject_convenience_methods
|
6
15
|
set_defaults
|
@@ -23,6 +32,7 @@ module Cb
|
|
23
32
|
end
|
24
33
|
|
25
34
|
protected
|
35
|
+
|
26
36
|
#################################################################
|
27
37
|
|
28
38
|
def set_defaults
|
@@ -33,71 +43,71 @@ module Cb
|
|
33
43
|
@use_json = true
|
34
44
|
@host_site = Cb.country.US
|
35
45
|
@test_resources = false
|
36
|
-
@observers =
|
46
|
+
@observers = []
|
37
47
|
set_default_api_uris
|
38
48
|
set_attr_accessors
|
39
49
|
end
|
40
50
|
|
41
51
|
private
|
52
|
+
|
42
53
|
#################################################################
|
43
54
|
|
44
55
|
def set_default_api_uris
|
45
|
-
@uri_job_category_search
|
46
|
-
@uri_job_industry_search
|
47
|
-
@uri_employee_types
|
48
|
-
@uri_company_find
|
49
|
-
@uri_job_search
|
50
|
-
@uri_job_search_v3
|
51
|
-
@uri_job_find
|
52
|
-
@uri_education_code
|
53
|
-
@uri_recommendation_for_job
|
54
|
-
@uri_recommendation_for_user
|
55
|
-
@uri_recommendation_for_company
|
56
|
-
@uri_recommendation_for_resume
|
57
|
-
@uri_application
|
58
|
-
@uri_application_create
|
59
|
-
@uri_application_submit
|
60
|
-
@uri_application_registered
|
61
|
-
@uri_application_external
|
62
|
-
@uri_application_form
|
63
|
-
@uri_user_change_password
|
64
|
-
@uri_user_delete
|
65
|
-
@uri_user_retrieve
|
66
|
-
@uri_user_check_existing
|
67
|
-
@uri_user_temp_password
|
68
|
-
@uri_job_branding
|
69
|
-
@uri_saved_search_retrieve
|
70
|
-
@uri_saved_search_create
|
71
|
-
@uri_saved_search_update
|
72
|
-
@uri_saved_search_delete
|
73
|
-
@uri_saved_search_list
|
74
|
-
@uri_anon_saved_search_create
|
75
|
-
@uri_anon_saved_search_delete
|
76
|
-
@uri_tn_join_questions
|
77
|
-
@uri_tn_job_info
|
78
|
-
@uri_tn_join_form_geo
|
79
|
-
@uri_tn_join_form_branding
|
80
|
-
@uri_tn_member_create
|
81
|
-
@uri_subscription_retrieve
|
82
|
-
@uri_subscription_modify
|
83
|
-
@uri_saved_job_search_create
|
84
|
-
@uri_work_status_list
|
85
|
-
@uri_resume_get
|
86
|
-
@uri_resume_put
|
87
|
-
@uri_resume_delete
|
88
|
-
@uri_resume_post
|
89
|
-
@uri_resume_list
|
90
|
-
@uri_resume_language_codes
|
91
|
-
@uri_countries
|
92
|
-
@uri_resume_education
|
93
|
-
@uri_languages
|
94
|
-
@uri_desired_job_type
|
95
|
-
@uri_state_list
|
56
|
+
@uri_job_category_search ||= '/v1/categories'
|
57
|
+
@uri_job_industry_search ||= '/v1/industrycodes'
|
58
|
+
@uri_employee_types ||= '/v1/employeetypes'
|
59
|
+
@uri_company_find ||= '/Employer/CompanyDetails'
|
60
|
+
@uri_job_search ||= '/v1/JobSearch'
|
61
|
+
@uri_job_search_v3 ||= '/consumer/jobs/search/'
|
62
|
+
@uri_job_find ||= '/v3/Job'
|
63
|
+
@uri_education_code ||= '/v1/EducationCodes'
|
64
|
+
@uri_recommendation_for_job ||= '/v1/Recommendations/ForJob'
|
65
|
+
@uri_recommendation_for_user ||= '/v1/Recommendations/ForUser'
|
66
|
+
@uri_recommendation_for_company ||= '/Employer/JobRecommendation'
|
67
|
+
@uri_recommendation_for_resume ||= '/jobsearch/recommendations/:resume_hash'
|
68
|
+
@uri_application ||= '/cbapi/application/:did'
|
69
|
+
@uri_application_create ||= '/cbapi/application/'
|
70
|
+
@uri_application_submit ||= '/v1/Application/submit'
|
71
|
+
@uri_application_registered ||= '/v3/application/registered'
|
72
|
+
@uri_application_external ||= '/v1/application/external'
|
73
|
+
@uri_application_form ||= '/cbapi/job/:did/applicationform'
|
74
|
+
@uri_user_change_password ||= '/v2/User/ChangePW'
|
75
|
+
@uri_user_delete ||= '/v2/User/delete'
|
76
|
+
@uri_user_retrieve ||= '/v2/user/retrieve'
|
77
|
+
@uri_user_check_existing ||= '/v2/user/checkexisting'
|
78
|
+
@uri_user_temp_password ||= '/v1/user/temporarypassword'
|
79
|
+
@uri_job_branding ||= '/branding'
|
80
|
+
@uri_saved_search_retrieve ||= '/cbapi/savedsearches/:did'
|
81
|
+
@uri_saved_search_create ||= '/v2/savedsearch/create'
|
82
|
+
@uri_saved_search_update ||= '/cbapi/SavedSearches'
|
83
|
+
@uri_saved_search_delete ||= '/cbapi/savedsearches/:did'
|
84
|
+
@uri_saved_search_list ||= '/cbapi/savedsearches'
|
85
|
+
@uri_anon_saved_search_create ||= '/v1/anonymoussavedjobsearch/create'
|
86
|
+
@uri_anon_saved_search_delete ||= '/v1/anonymoussavedjobsearch/delete'
|
87
|
+
@uri_tn_join_questions ||= '/talentnetwork/config/join/questions'
|
88
|
+
@uri_tn_job_info ||= '/talentnetwork/internal/job'
|
89
|
+
@uri_tn_join_form_geo ||= '/tn/JoinForm/Geo'
|
90
|
+
@uri_tn_join_form_branding ||= '/talentnetwork/config/layout/branding'
|
91
|
+
@uri_tn_member_create ||= '/talentnetwork/member/create'
|
92
|
+
@uri_subscription_retrieve ||= '/v2/user/subscription/retrieve'
|
93
|
+
@uri_subscription_modify ||= '/v2/user/subscription'
|
94
|
+
@uri_saved_job_search_create ||= '/v2/savedsearch/create'
|
95
|
+
@uri_work_status_list ||= '/v1/resume/workstatuslist'
|
96
|
+
@uri_resume_get ||= '/cbapi/resumes/:resume_hash'
|
97
|
+
@uri_resume_put ||= '/cbapi/resumes/:resume_hash'
|
98
|
+
@uri_resume_delete ||= '/cbapi/resumes/:resume_hash'
|
99
|
+
@uri_resume_post ||= '/consumer/resumedocuments'
|
100
|
+
@uri_resume_list ||= '/v3/resume/list'
|
101
|
+
@uri_resume_language_codes ||= '/v1/languagecodes'
|
102
|
+
@uri_countries ||= '/consumer/datalist/countries'
|
103
|
+
@uri_resume_education ||= '/consumer/datalist/ResumeEducation'
|
104
|
+
@uri_languages ||= '/consumer/datalist/languages'
|
105
|
+
@uri_desired_job_type ||= '/consumer/datalist/desiredjobtype'
|
106
|
+
@uri_state_list ||= '/ajax/citysuggest.aspx'
|
96
107
|
end
|
97
108
|
|
98
109
|
def set_attr_accessors
|
99
110
|
instance_variables.each { |instance_variable| self.class.send :attr_accessor, instance_variable[1..-1].to_sym }
|
100
111
|
end
|
101
|
-
|
102
112
|
end
|
103
113
|
end
|
data/lib/cb/convenience.rb
CHANGED
@@ -1,7 +1,16 @@
|
|
1
|
+
# Copyright 2015 CareerBuilder, LLC
|
2
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
3
|
+
# you may not use this file except in compliance with the License.
|
4
|
+
# You may obtain a copy of the License at
|
5
|
+
#
|
6
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
7
|
+
# Unless required by applicable law or agreed to in writing, software
|
8
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
9
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
10
|
+
# See the License for the specific language governing permissions and limitations under the License.
|
1
11
|
module Cb
|
2
12
|
module Convenience
|
3
13
|
module ClassMethods
|
4
|
-
|
5
14
|
def api_client
|
6
15
|
Cb::Utils::Api
|
7
16
|
end
|
@@ -13,7 +22,7 @@ module Cb
|
|
13
22
|
def job_details_criteria
|
14
23
|
Cb::Criteria::Job::Details.new
|
15
24
|
end
|
16
|
-
|
25
|
+
|
17
26
|
def category
|
18
27
|
Cb::Clients::Category
|
19
28
|
end
|
@@ -25,7 +34,7 @@ module Cb
|
|
25
34
|
def company
|
26
35
|
Cb::Clients::Company
|
27
36
|
end
|
28
|
-
|
37
|
+
|
29
38
|
def education_code
|
30
39
|
Cb::Clients::Education
|
31
40
|
end
|
@@ -33,43 +42,43 @@ module Cb
|
|
33
42
|
def employee_types
|
34
43
|
Cb::Clients::EmployeeTypes
|
35
44
|
end
|
36
|
-
|
45
|
+
|
37
46
|
def recommendation
|
38
47
|
Cb::Clients::Recommendation
|
39
48
|
end
|
40
|
-
|
49
|
+
|
41
50
|
def application
|
42
51
|
Cb::Clients::Application
|
43
52
|
end
|
44
|
-
|
53
|
+
|
45
54
|
def application_external
|
46
55
|
Cb::Clients::ApplicationExternal
|
47
56
|
end
|
48
|
-
|
57
|
+
|
49
58
|
def country
|
50
59
|
Cb::Utils::Country
|
51
60
|
end
|
52
|
-
|
61
|
+
|
53
62
|
def user
|
54
63
|
Cb::Clients::User
|
55
64
|
end
|
56
|
-
|
65
|
+
|
57
66
|
def job_branding
|
58
67
|
Cb::Clients::JobBranding
|
59
68
|
end
|
60
|
-
|
69
|
+
|
61
70
|
def email_subscription
|
62
71
|
Cb::Clients::EmailSubscription
|
63
72
|
end
|
64
|
-
|
73
|
+
|
65
74
|
def saved_search
|
66
75
|
Cb::Clients::SavedSearch
|
67
76
|
end
|
68
|
-
|
77
|
+
|
69
78
|
def talent_network
|
70
79
|
Cb::Clients::TalentNetwork
|
71
80
|
end
|
72
|
-
|
81
|
+
|
73
82
|
def anon_saved_search
|
74
83
|
Cb::Clients::AnonSavedSearch
|
75
84
|
end
|
@@ -1,3 +1,13 @@
|
|
1
|
+
# Copyright 2015 CareerBuilder, LLC
|
2
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
3
|
+
# you may not use this file except in compliance with the License.
|
4
|
+
# You may obtain a copy of the License at
|
5
|
+
#
|
6
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
7
|
+
# Unless required by applicable law or agreed to in writing, software
|
8
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
9
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
10
|
+
# See the License for the specific language governing permissions and limitations under the License.
|
1
11
|
module Cb
|
2
12
|
module Criteria
|
3
13
|
module Application
|
@@ -1,9 +1,19 @@
|
|
1
|
+
# Copyright 2015 CareerBuilder, LLC
|
2
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
3
|
+
# you may not use this file except in compliance with the License.
|
4
|
+
# You may obtain a copy of the License at
|
5
|
+
#
|
6
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
7
|
+
# Unless required by applicable law or agreed to in writing, software
|
8
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
9
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
10
|
+
# See the License for the specific language governing permissions and limitations under the License.
|
1
11
|
module Cb
|
2
12
|
module Criteria
|
3
13
|
module Application
|
4
14
|
class Create
|
5
15
|
extend Cb::Utils::FluidAttributes
|
6
|
-
fluid_attr_accessor :job_did, :is_submitted, :external_user_id, :vid, :bid, :sid, :site_id, :ipath_id, :tn_did, :host_site,
|
16
|
+
fluid_attr_accessor :job_did, :is_submitted, :external_user_id, :vid, :bid, :sid, :site_id, :ipath_id, :tn_did, :host_site,
|
7
17
|
:resume, :cover_letter, :responses
|
8
18
|
|
9
19
|
def to_json
|
@@ -1,3 +1,13 @@
|
|
1
|
+
# Copyright 2015 CareerBuilder, LLC
|
2
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
3
|
+
# you may not use this file except in compliance with the License.
|
4
|
+
# You may obtain a copy of the License at
|
5
|
+
#
|
6
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
7
|
+
# Unless required by applicable law or agreed to in writing, software
|
8
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
9
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
10
|
+
# See the License for the specific language governing permissions and limitations under the License.
|
1
11
|
module Cb
|
2
12
|
module Criteria
|
3
13
|
module Application
|
@@ -1,3 +1,13 @@
|
|
1
|
+
# Copyright 2015 CareerBuilder, LLC
|
2
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
3
|
+
# you may not use this file except in compliance with the License.
|
4
|
+
# You may obtain a copy of the License at
|
5
|
+
#
|
6
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
7
|
+
# Unless required by applicable law or agreed to in writing, software
|
8
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
9
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
10
|
+
# See the License for the specific language governing permissions and limitations under the License.
|
1
11
|
module Cb
|
2
12
|
module Criteria
|
3
13
|
module Application
|
@@ -1,3 +1,13 @@
|
|
1
|
+
# Copyright 2015 CareerBuilder, LLC
|
2
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
3
|
+
# you may not use this file except in compliance with the License.
|
4
|
+
# You may obtain a copy of the License at
|
5
|
+
#
|
6
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
7
|
+
# Unless required by applicable law or agreed to in writing, software
|
8
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
9
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
10
|
+
# See the License for the specific language governing permissions and limitations under the License.
|
1
11
|
module Cb
|
2
12
|
module Criteria
|
3
13
|
module Application
|
@@ -1,3 +1,13 @@
|
|
1
|
+
# Copyright 2015 CareerBuilder, LLC
|
2
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
3
|
+
# you may not use this file except in compliance with the License.
|
4
|
+
# You may obtain a copy of the License at
|
5
|
+
#
|
6
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
7
|
+
# Unless required by applicable law or agreed to in writing, software
|
8
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
9
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
10
|
+
# See the License for the specific language governing permissions and limitations under the License.
|
1
11
|
module Cb
|
2
12
|
module Criteria
|
3
13
|
module Application
|
@@ -1,3 +1,13 @@
|
|
1
|
+
# Copyright 2015 CareerBuilder, LLC
|
2
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
3
|
+
# you may not use this file except in compliance with the License.
|
4
|
+
# You may obtain a copy of the License at
|
5
|
+
#
|
6
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
7
|
+
# Unless required by applicable law or agreed to in writing, software
|
8
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
9
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
10
|
+
# See the License for the specific language governing permissions and limitations under the License.
|
1
11
|
module Cb
|
2
12
|
module Criteria
|
3
13
|
module Job
|
@@ -8,4 +18,4 @@ module Cb
|
|
8
18
|
end
|
9
19
|
end
|
10
20
|
end
|
11
|
-
end
|
21
|
+
end
|
@@ -1,3 +1,13 @@
|
|
1
|
+
# Copyright 2015 CareerBuilder, LLC
|
2
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
3
|
+
# you may not use this file except in compliance with the License.
|
4
|
+
# You may obtain a copy of the License at
|
5
|
+
#
|
6
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
7
|
+
# Unless required by applicable law or agreed to in writing, software
|
8
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
9
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
10
|
+
# See the License for the specific language governing permissions and limitations under the License.
|
1
11
|
module Cb
|
2
12
|
module Criteria
|
3
13
|
module Resumes
|
@@ -12,10 +22,10 @@ module Cb
|
|
12
22
|
end
|
13
23
|
|
14
24
|
def to_hash
|
15
|
-
{ :
|
25
|
+
{ resume_hash: @resume_hash, external_user_id: @external_user_id }
|
16
26
|
end
|
17
27
|
|
18
|
-
|
28
|
+
alias_method :to_h, :to_hash
|
19
29
|
end
|
20
30
|
end
|
21
31
|
end
|