wolf_core 1.0.16 → 1.0.18
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/wolf_core/application/burnett/match_operations/match_operattions.rb +1 -2
- data/lib/wolf_core/application/integrations/client_api_operations.rb +1 -5
- data/lib/wolf_core/application/integrations/jobseeker_api_operations.rb +1 -5
- data/lib/wolf_core/application/integrations/orders_api_operations.rb +1 -5
- data/lib/wolf_core/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3f89f1bd749c0b747aea45ca8f6df457dfc1fe87d0414269c21a274d2a8930f6
|
4
|
+
data.tar.gz: 44fec29c2c1bcad96c8722de7ec20b33c50f11a16b8f34a89ae712663731dbee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a10caab769b1cbff0e1da62cd5ae18d0ab75f7118786e4b4f91f47940eb9647d11199c9c25a3812fb1221b91da31f0dd7279ad4f9ce7bdbfeb45aad2706d98ae
|
7
|
+
data.tar.gz: 68a66625f15ca4cd6c0fcb2d58718f3496428c5ddb5ae35e64bb761ee3017c2b5db126af58544944bf22bf478f4f7b77275f60425484c78b3089276f7756e3cd
|
@@ -14,12 +14,11 @@ module WolfCore # rubocop:disable Style/FrozenStringLiteralComment
|
|
14
14
|
end
|
15
15
|
|
16
16
|
def create_match(erecruit_token:, erecruit_platform_url:, position_id:, candidate_id:)
|
17
|
-
|
17
|
+
http_get(
|
18
18
|
headers: { "Authorization" => "Bearer #{erecruit_token}" },
|
19
19
|
url: "#{erecruit_platform_url}/",
|
20
20
|
query: { tenant: tenant }
|
21
21
|
)
|
22
|
-
nil if response.code == 200
|
23
22
|
end
|
24
23
|
|
25
24
|
def update_match!(erecruit_token:, erecruit_platform_url:, position_id:, candidate_id:, error_message:)
|
@@ -15,15 +15,11 @@ module WolfCore
|
|
15
15
|
end
|
16
16
|
|
17
17
|
def fetch_client(wolf_token:, client_id:, tenant:, wolf_platform_url:)
|
18
|
-
|
18
|
+
http_get(
|
19
19
|
headers: { "Authorization" => "Bearer #{wolf_token}" },
|
20
20
|
url: "#{wolf_platform_url}/api/v2/companies/#{client_id}",
|
21
21
|
query: { tenant: tenant }
|
22
22
|
)
|
23
|
-
response_body = response.body
|
24
|
-
return unless response_body.instance_of?(Hash)
|
25
|
-
|
26
|
-
response_body.dig("data", "table", "company")
|
27
23
|
end
|
28
24
|
|
29
25
|
def create_client!(wolf_token:, client:, tenant:, wolf_platform_url:, error_message:)
|
@@ -15,15 +15,11 @@ module WolfCore
|
|
15
15
|
end
|
16
16
|
|
17
17
|
def fetch_jobseeker(wolf_token:, jobseeker_id:, tenant:, wolf_platform_url:)
|
18
|
-
|
18
|
+
parsed_http_get(
|
19
19
|
headers: { "Authorization" => "Bearer #{wolf_token}" },
|
20
20
|
url: "#{wolf_platform_url}/api/v2/jobseekers/#{jobseeker_id}",
|
21
21
|
query: { tenant: tenant }
|
22
22
|
)
|
23
|
-
response_body = response.body
|
24
|
-
return unless response_body.instance_of?(Hash)
|
25
|
-
|
26
|
-
response_body.dig("data", "table", "jobseeker")
|
27
23
|
end
|
28
24
|
|
29
25
|
def create_jobseeker!(wolf_token:, jobseeker:, tenant:, wolf_platform_url:, error_message:)
|
@@ -15,15 +15,11 @@ module WolfCore
|
|
15
15
|
end
|
16
16
|
|
17
17
|
def fetch_order(wolf_token:, order_id:, tenant:, wolf_platform_url:)
|
18
|
-
|
18
|
+
http_get(
|
19
19
|
headers: { "Authorization" => "Bearer #{wolf_token}" },
|
20
20
|
url: "#{wolf_platform_url}/api/v2/orders/#{order_id}",
|
21
21
|
query: { tenant: tenant }
|
22
22
|
)
|
23
|
-
response_body = response.body
|
24
|
-
return unless response_body.instance_of?(Hash)
|
25
|
-
|
26
|
-
response_body.dig("data", "table", "order")
|
27
23
|
end
|
28
24
|
|
29
25
|
def create_order!(wolf_token:, order:, tenant:, wolf_platform_url:, error_message:)
|
data/lib/wolf_core/version.rb
CHANGED