wolf_core 1.0.54 → 1.0.55
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/lib/wolf_core/version.rb +1 -1
- metadata +2 -8
- data/lib/wolf_core/application/burnett/auth/auth_operations.rb +0 -21
- data/lib/wolf_core/application/burnett/company_operations/company_operations.rb +0 -43
- data/lib/wolf_core/application/burnett/data_transformation/mappings.rb +0 -29
- data/lib/wolf_core/application/burnett/match_operations/match_operattions.rb +0 -44
- data/lib/wolf_core/application/burnett/onboarding/candidate_operations.rb +0 -67
- data/lib/wolf_core/application/burnett/positions_operations/positions_operations.rb +0 -44
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ffad67a51849a59b8ec5888a81cbe83350a582a059a4feff21731c5860c0b685
|
4
|
+
data.tar.gz: 772af416aaef60c3b0c78263cadd894c96de5858db457137ce4855ead3e81c7e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cc2e16cf1cdc27d7a215fb41af876433be622e26f271673b71722b0df8de2901033f66ed140e5b24e65612c56fa8a256060acd502fd6ad1266cd68a0191a6f1a
|
7
|
+
data.tar.gz: 3a89507602db1a7f65a2a678887d06d1456852fe824437c0bb557b4b95bb45eec9df502d3b7f341cda5e3bf75fad1eae9594aab84079318168a7b42843962c95
|
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.55
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Javier Roncallo
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-01-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|
@@ -93,12 +93,6 @@ files:
|
|
93
93
|
- lib/wolf_core/application/barton/onboarding/file_operations.rb
|
94
94
|
- lib/wolf_core/application/barton/parsing.rb
|
95
95
|
- lib/wolf_core/application/barton/routing.rb
|
96
|
-
- lib/wolf_core/application/burnett/auth/auth_operations.rb
|
97
|
-
- lib/wolf_core/application/burnett/company_operations/company_operations.rb
|
98
|
-
- lib/wolf_core/application/burnett/data_transformation/mappings.rb
|
99
|
-
- lib/wolf_core/application/burnett/match_operations/match_operattions.rb
|
100
|
-
- lib/wolf_core/application/burnett/onboarding/candidate_operations.rb
|
101
|
-
- lib/wolf_core/application/burnett/positions_operations/positions_operations.rb
|
102
96
|
- lib/wolf_core/application/exception_operations.rb
|
103
97
|
- lib/wolf_core/application/integrations/change_detection.rb
|
104
98
|
- lib/wolf_core/application/integrations/client_api_operations.rb
|
@@ -1,21 +0,0 @@
|
|
1
|
-
module WolfCore
|
2
|
-
module Burnett
|
3
|
-
module Auth
|
4
|
-
module Operations
|
5
|
-
def get_erecruit_access_token
|
6
|
-
response = safe_http_post(
|
7
|
-
url: ENV["ERECRUIT_AUTH_URL"],
|
8
|
-
headers: { "Content-Type" => "application/x-www-form-urlencoded" },
|
9
|
-
body: {
|
10
|
-
client_id: ENV["ERECRUIT_AUTH_CLIENT_ID"],
|
11
|
-
client_secret: ENV["ERECRUIT_AUTH_CLIENT_SECRET"],
|
12
|
-
grant_type: ENV["ERECRUIT_AUTH_GRANT_TYPE"]
|
13
|
-
},
|
14
|
-
error_message: "Unable to get erecruit token"
|
15
|
-
)
|
16
|
-
response.body["access_token"]
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|
20
|
-
end
|
21
|
-
end
|
@@ -1,43 +0,0 @@
|
|
1
|
-
module WolfCore # rubocop:disable Style/FrozenStringLiteralComment
|
2
|
-
module Burnett
|
3
|
-
module CompanyOperations # rubocop:disable Style/Documentation
|
4
|
-
include WolfCore::HttpOperations
|
5
|
-
|
6
|
-
def create_company!(erecruit_token:, company:, erecruit_platform_url:, error_message:)
|
7
|
-
response = safe_http_post(
|
8
|
-
headers: { "Authorization" => "Bearer #{erecruit_token}" },
|
9
|
-
url: "#{erecruit_platform_url}/Company",
|
10
|
-
body: company,
|
11
|
-
error_message: error_message
|
12
|
-
)
|
13
|
-
response.body
|
14
|
-
end
|
15
|
-
|
16
|
-
def create_company(erecruit_token:, erecruit_platform_url:, company:)
|
17
|
-
parsed_http_post(
|
18
|
-
headers: { "Authorization" => "Bearer #{erecruit_token}" },
|
19
|
-
url: "#{erecruit_platform_url}/Company",
|
20
|
-
body: company
|
21
|
-
)
|
22
|
-
end
|
23
|
-
|
24
|
-
def update_company!(erecruit_token:, erecruit_platform_url:, company:, company_id:, error_message:)
|
25
|
-
response = safe_http_put(
|
26
|
-
headers: { "Authorization" => "Bearer #{erecruit_token}" },
|
27
|
-
url: "#{erecruit_platform_url}/Company/#{company_id}",
|
28
|
-
body: company,
|
29
|
-
error_message: error_message
|
30
|
-
)
|
31
|
-
response.body
|
32
|
-
end
|
33
|
-
|
34
|
-
def update_company(erecruit_token:, erecruit_platform_url:, company:, company_id:)
|
35
|
-
parsed_http_put(
|
36
|
-
headers: { "Authorization" => "Bearer #{erecruit_token}" },
|
37
|
-
url: "#{erecruit_platform_url}/Company/#{company_id}",
|
38
|
-
body: company
|
39
|
-
)
|
40
|
-
end
|
41
|
-
end
|
42
|
-
end
|
43
|
-
end
|
@@ -1,29 +0,0 @@
|
|
1
|
-
module WolfCore
|
2
|
-
module Burnett
|
3
|
-
module Mappings
|
4
|
-
JOB_TYPE_MAPPING = {
|
5
|
-
'144' => '26',
|
6
|
-
'145' => '30',
|
7
|
-
'153' => '24',
|
8
|
-
'152' => '28',
|
9
|
-
'155' => '12',
|
10
|
-
'156' => '22',
|
11
|
-
'150' => '27',
|
12
|
-
'148' => '31',
|
13
|
-
'158' => '25',
|
14
|
-
'151' => '29',
|
15
|
-
'163' => '23',
|
16
|
-
}
|
17
|
-
|
18
|
-
def map_job_type(value)
|
19
|
-
value = value.to_s
|
20
|
-
JOB_TYPE_MAPPING[value] || value
|
21
|
-
end
|
22
|
-
|
23
|
-
def revert_map_job_type(value)
|
24
|
-
value = value.to_s
|
25
|
-
JOB_TYPE_MAPPING.invert[value] || value
|
26
|
-
end
|
27
|
-
end
|
28
|
-
end
|
29
|
-
end
|
@@ -1,44 +0,0 @@
|
|
1
|
-
module WolfCore # rubocop:disable Style/FrozenStringLiteralComment
|
2
|
-
module Burnett
|
3
|
-
module MatchOperations # rubocop:disable Style/Documentation
|
4
|
-
include WolfCore::HttpOperations
|
5
|
-
|
6
|
-
def create_match!(erecruit_token:, erecruit_platform_url:, position_id:, candidate_id:, error_message:)
|
7
|
-
response = safe_http_post(
|
8
|
-
headers: { "Authorization" => "Bearer #{erecruit_token}" },
|
9
|
-
url: "#{erecruit_platform_url}/",
|
10
|
-
query: { tenant: tenant },
|
11
|
-
error_message: error_message
|
12
|
-
)
|
13
|
-
nil if response.code == 200
|
14
|
-
end
|
15
|
-
|
16
|
-
def create_match(erecruit_token:, erecruit_platform_url:, position_id:, candidate_id:)
|
17
|
-
parsed_http_post(
|
18
|
-
headers: { "Authorization" => "Bearer #{erecruit_token}" },
|
19
|
-
url: "#{erecruit_platform_url}/",
|
20
|
-
query: { tenant: tenant }
|
21
|
-
)
|
22
|
-
end
|
23
|
-
|
24
|
-
def update_match!(erecruit_token:, erecruit_platform_url:, position_id:, candidate_id:, error_message:)
|
25
|
-
response = safe_http_put(
|
26
|
-
headers: { "Authorization" => "Bearer #{erecruit_token}" },
|
27
|
-
url: "#{erecruit_platform_url}/",
|
28
|
-
query: { tenant: tenant },
|
29
|
-
error_message: error_message
|
30
|
-
)
|
31
|
-
nil if response.code == 200
|
32
|
-
end
|
33
|
-
|
34
|
-
def update_match(erecruit_token:, erecruit_platform_url:, position_id:, candidate_id:)
|
35
|
-
response = parsed_http_put(
|
36
|
-
headers: { "Authorization" => "Bearer #{erecruit_token}" },
|
37
|
-
url: "#{erecruit_platform_url}/",
|
38
|
-
query: { tenant: tenant }
|
39
|
-
)
|
40
|
-
nil if response.code == 200
|
41
|
-
end
|
42
|
-
end
|
43
|
-
end
|
44
|
-
end
|
@@ -1,67 +0,0 @@
|
|
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
|
@@ -1,44 +0,0 @@
|
|
1
|
-
module WolfCore
|
2
|
-
module Burnett
|
3
|
-
module PositionsOperations
|
4
|
-
include WolfCore::HttpOperations
|
5
|
-
|
6
|
-
def create_position!(erecruit_token:, erecruit_platform_url:, position:, error_message:, error_data: nil)
|
7
|
-
response = safe_http_post(
|
8
|
-
headers: { "Authorization" => "Bearer #{erecruit_token}" },
|
9
|
-
url: "#{erecruit_platform_url}/Position",
|
10
|
-
body: position,
|
11
|
-
error_message: error_message,
|
12
|
-
error_data: error_data
|
13
|
-
)
|
14
|
-
response.body
|
15
|
-
end
|
16
|
-
|
17
|
-
def create_position(erecruit_token:, erecruit_platform_url:, position:)
|
18
|
-
parsed_http_post(
|
19
|
-
headers: { "Authorization" => "Bearer #{erecruit_token}" },
|
20
|
-
url: "#{erecruit_platform_url}/Position",
|
21
|
-
body: position
|
22
|
-
)
|
23
|
-
end
|
24
|
-
|
25
|
-
def update_position!(erecruit_token:, erecruit_platform_url:, position_id:, position:, error_message:)
|
26
|
-
response = safe_http_put(
|
27
|
-
headers: { "Authorization" => "Bearer #{erecruit_token}" },
|
28
|
-
url: "#{erecruit_platform_url}/Position/#{position_id}",
|
29
|
-
body: position,
|
30
|
-
error_message: error_message
|
31
|
-
)
|
32
|
-
response.body
|
33
|
-
end
|
34
|
-
|
35
|
-
def update_position(erecruit_token:, erecruit_platform_url:, position_id:, position:)
|
36
|
-
parsed_http_put(
|
37
|
-
headers: { "Authorization" => "Bearer #{erecruit_token}" },
|
38
|
-
url: "#{erecruit_platform_url}/Position/#{position_id}",
|
39
|
-
body: position
|
40
|
-
)
|
41
|
-
end
|
42
|
-
end
|
43
|
-
end
|
44
|
-
end
|