wolf_core 1.0.18 → 1.0.20

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3f89f1bd749c0b747aea45ca8f6df457dfc1fe87d0414269c21a274d2a8930f6
4
- data.tar.gz: 44fec29c2c1bcad96c8722de7ec20b33c50f11a16b8f34a89ae712663731dbee
3
+ metadata.gz: 5b3f90899acc2dc0b3df8245016918cf420ddbfe7639bf979959694cd48da0a4
4
+ data.tar.gz: 318f3d3c681230965d347c1d51f8165a6c967476f0ef53a0e04d23151973589e
5
5
  SHA512:
6
- metadata.gz: a10caab769b1cbff0e1da62cd5ae18d0ab75f7118786e4b4f91f47940eb9647d11199c9c25a3812fb1221b91da31f0dd7279ad4f9ce7bdbfeb45aad2706d98ae
7
- data.tar.gz: 68a66625f15ca4cd6c0fcb2d58718f3496428c5ddb5ae35e64bb761ee3017c2b5db126af58544944bf22bf478f4f7b77275f60425484c78b3089276f7756e3cd
6
+ metadata.gz: 29d863fa990d895c196fa3bd83af76efcb23450d350abed430f0fc67920272c8c70d934fd10edb382f5f5819816551977194cab7895b4ecef043390bfbb1f87d
7
+ data.tar.gz: 0e5534a148cc5746cf46c59267264a5167b7684dbc77cebc1280655a73ac6bcccbf5d07a8201084e289ec419004261fb120901c3b77e42c5986498fff5a8d692
@@ -0,0 +1,43 @@
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:, model:, erecruit_platform_url:, error_message:)
7
+ response = safe_http_post(
8
+ headers: { "Authorization" => "Bearer #{erecruit_token}" },
9
+ url: erecruit_platform_url.to_s,
10
+ model: model,
11
+ error_message: error_message
12
+ )
13
+ nil if response.code == 200
14
+ end
15
+
16
+ def create_company(erecruit_token:, model:, erecruit_platform_url:)
17
+ http_get(
18
+ headers: { "Authorization" => "Bearer #{erecruit_token}" },
19
+ url: erecruit_platform_url.to_s,
20
+ model: model
21
+ )
22
+ end
23
+
24
+ def update_company!(erecruit_token:, erecruit_platform_url:, model:, company_id:, error_message:)
25
+ response = safe_http_post(
26
+ headers: { "Authorization" => "Bearer #{erecruit_token}" },
27
+ url: "#{erecruit_platform_url}/#{company_id}",
28
+ model: model,
29
+ error_message: error_message
30
+ )
31
+ nil if response.code == 200
32
+ end
33
+
34
+ def update_company(erecruit_token:, erecruit_platform_url:, model:, company_id:)
35
+ http_get(
36
+ headers: { "Authorization" => "Bearer #{erecruit_token}" },
37
+ url: "#{erecruit_platform_url}/#{company_id}",
38
+ model: model
39
+ )
40
+ end
41
+ end
42
+ end
43
+ end
@@ -15,7 +15,7 @@ module WolfCore
15
15
  end
16
16
 
17
17
  def fetch_client(wolf_token:, client_id:, tenant:, wolf_platform_url:)
18
- http_get(
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 }
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module WolfCore
4
- VERSION = "1.0.18"
4
+ VERSION = "1.0.20"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wolf_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.18
4
+ version: 1.0.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - Javier Roncallo
@@ -93,6 +93,7 @@ files:
93
93
  - lib/wolf_core/application/barton/parsing.rb
94
94
  - lib/wolf_core/application/barton/routing.rb
95
95
  - lib/wolf_core/application/burnett/auth/auth_operations.rb
96
+ - lib/wolf_core/application/burnett/company_operations/company_operations.rb
96
97
  - lib/wolf_core/application/burnett/data_transformation/mappings.rb
97
98
  - lib/wolf_core/application/burnett/match_operations/match_operattions.rb
98
99
  - lib/wolf_core/application/burnett/positions_operations/positions_operations.rb