wolf_core 1.0.30 → 1.0.32
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5bf212902ef121ee65053705d30e1c226aef1af1cb708d594d0d12353bc236f9
|
4
|
+
data.tar.gz: 3c140e5b4243a3ad08daa0ef0d922444390745922b773c0ef818d89606448f6e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d9b1425a6eb6debcac010f4aeead2b16fb0e4439b108f3ecde8f05f44855a7f699fe6b2956071e7fa1d262d9aef103c836c7ee9041682b2e1d9f61bc5db21e43
|
7
|
+
data.tar.gz: ddb996f7986f679501709dc322761072af410bf03fae4285e1924708993947cea5af5bc66bdc17502c47ca4ab4b9e8a9b35ec4803cf3598593dbd0b315fa6b3b
|
@@ -0,0 +1,67 @@
|
|
1
|
+
module WolfCore
|
2
|
+
module Burnett
|
3
|
+
module Onboarding
|
4
|
+
module CandidateOperations
|
5
|
+
include WolfCore::HttpOperations
|
6
|
+
|
7
|
+
def create_candidate!(erecruit_token:, erecruit_platform_url:, candidate:, error_message:, error_data: nil)
|
8
|
+
response = safe_http_post(
|
9
|
+
headers: { "Authorization" => "Bearer #{erecruit_token}" },
|
10
|
+
url: "#{erecruit_platform_url}/Candidate",
|
11
|
+
body: candidate,
|
12
|
+
error_message: error_message,
|
13
|
+
error_data: error_data
|
14
|
+
)
|
15
|
+
response.body
|
16
|
+
end
|
17
|
+
|
18
|
+
def create_candidate(erecruit_token:, erecruit_platform_url:, candidate:)
|
19
|
+
parsed_http_post(
|
20
|
+
headers: { "Authorization" => "Bearer #{erecruit_token}" },
|
21
|
+
url: "#{erecruit_platform_url}/Candidate",
|
22
|
+
body: candidate
|
23
|
+
)
|
24
|
+
end
|
25
|
+
|
26
|
+
def update_candidate!(erecruit_token:, erecruit_platform_url:, candidate_id:, candidate:, error_message:, error_data: nil)
|
27
|
+
response = safe_http_put(
|
28
|
+
headers: { "Authorization" => "Bearer #{erecruit_token}" },
|
29
|
+
url: "#{erecruit_platform_url}/Candidate/#{candidate_id}",
|
30
|
+
body: candidate,
|
31
|
+
error_message: error_message,
|
32
|
+
error_data: error_data,
|
33
|
+
)
|
34
|
+
response.body
|
35
|
+
end
|
36
|
+
|
37
|
+
def update_candidate(erecruit_token:, erecruit_platform_url:, candidate_id:, candidate:)
|
38
|
+
parsed_http_put(
|
39
|
+
headers: { "Authorization" => "Bearer #{erecruit_token}" },
|
40
|
+
url: "#{erecruit_platform_url}/Candidate/#{candidate_id}",
|
41
|
+
body: candidate,
|
42
|
+
error_message: error_message,
|
43
|
+
error_data: error_data,
|
44
|
+
)
|
45
|
+
end
|
46
|
+
|
47
|
+
def submit_candidate_cv(erecruit_token:, erecruit_platform_url:, candidate_id:, cv_url:)
|
48
|
+
filename, bytes = bytes_from_url(cv_url).values_at(:filename, :bytes)
|
49
|
+
parsed_http_post(
|
50
|
+
headers: {
|
51
|
+
'Authorization' => "Bearer #{erecruit_token}",
|
52
|
+
'Content-Type' => "form-data"
|
53
|
+
},
|
54
|
+
url: "#{erecruit_platform_url}/Attachment",
|
55
|
+
body: {
|
56
|
+
aboutType: "Candidate",
|
57
|
+
referenceID: candidate_id,
|
58
|
+
attachmentTypeID: "Resume",
|
59
|
+
name: filename,
|
60
|
+
Resume: bytes
|
61
|
+
}
|
62
|
+
)
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|
@@ -79,7 +79,7 @@ module WolfCore
|
|
79
79
|
end
|
80
80
|
end
|
81
81
|
|
82
|
-
def safe_http_put(url:, headers: {}, body: nil, query: nil, error_message: nil, title: nil)
|
82
|
+
def safe_http_put(url:, headers: {}, body: nil, query: nil, error_message: nil, title: nil, error_data: nil)
|
83
83
|
response = http_put(url: url, headers: headers, body: body, query: query)
|
84
84
|
response = parse_http_response(response)
|
85
85
|
|
@@ -87,7 +87,7 @@ module WolfCore
|
|
87
87
|
log_object response, title: title
|
88
88
|
|
89
89
|
error_message ||= "Error on safe_http_put"
|
90
|
-
validate_http_response(response: response, message: error_message)
|
90
|
+
validate_http_response(response: response, message: error_message, error_data: error_data)
|
91
91
|
|
92
92
|
response
|
93
93
|
end
|
data/lib/wolf_core/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wolf_core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.32
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Javier Roncallo
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-11-
|
11
|
+
date: 2024-11-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|
@@ -97,6 +97,7 @@ files:
|
|
97
97
|
- lib/wolf_core/application/burnett/company_operations/company_operations.rb
|
98
98
|
- lib/wolf_core/application/burnett/data_transformation/mappings.rb
|
99
99
|
- lib/wolf_core/application/burnett/match_operations/match_operattions.rb
|
100
|
+
- lib/wolf_core/application/burnett/onboarding/candidate_operations.rb
|
100
101
|
- lib/wolf_core/application/burnett/positions_operations/positions_operations.rb
|
101
102
|
- lib/wolf_core/application/exception_operations.rb
|
102
103
|
- lib/wolf_core/application/integrations/change_detection.rb
|