wolf_core 1.0.15 → 1.0.17
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/application/burnett/match_operations/match_operattions.rb +1 -2
- data/lib/wolf_core/application/integrations/client_api_operations.rb +2 -6
- 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: 57e40b225d69d244526266de729654a72147775f8055bd83903d4af7cca26196
|
4
|
+
data.tar.gz: 4bdb66e41257eba355e62cce43f37d53f72e7edf6c4d8611081068a84e4baac9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 674131644862093f00f8c5abaa7f1f6bf635e81146bfa03aa02070f7f6e8b821dc580d02975724ddd953ac6c0e9bb3308b3800650bf14fc2510ba3d8a1f3ed52
|
7
|
+
data.tar.gz: bce195c7b99679999cc8ba29de841575a276c8dfb5d52289641a7e787df8ec48ed32f7f4493e931d631fc257d0939f3f72defb416d416cc4e7371cf4c60c5c91
|
@@ -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:)
|
@@ -11,19 +11,15 @@ module WolfCore
|
|
11
11
|
error_message: error_message
|
12
12
|
)
|
13
13
|
response_body = response.body
|
14
|
-
response_body.dig("data", "table", "
|
14
|
+
response_body.dig("data", "table", "company")
|
15
15
|
end
|
16
16
|
|
17
17
|
def fetch_client(wolf_token:, client_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/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", "companies")
|
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