wolf_core 0.1.42 → 0.1.44

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: cca3495c5dd4ea12b6f9b1f6d868042ba48faf67235bc5a55d0e52c93658bb97
4
- data.tar.gz: c67d377b94bd65c1b92015da5223bd7585532684d9ed55d97bc9fabe76a6e9c3
3
+ metadata.gz: 805f683f93703e990a72ffaed09a720810c7951b0ee82fb3f24ea3d0c1980520
4
+ data.tar.gz: 587680cdcd22b502736f4890e48441f9cb3e00035a5cca939141675c96a7be7f
5
5
  SHA512:
6
- metadata.gz: 19a274c49636bacc592195d84a13cda9946a967aab3f6a9e9f42f047dc42edc083df04a7a658e598849bd9f61e6521b77afb406d65ac830299b2db83bc712f72
7
- data.tar.gz: f84a96887a6bea373fc69ccf5e438ae0ecd0e524c406930e198ec0b74f78d8d6fe3a11ee573e7589b0a63c3162efaedb123efc963e27c8fa6488c878bb2e6773
6
+ metadata.gz: a969b7f280041f545f2781bb385b8321128d22b6ce9aee25962f7800d8f40bbbc986f764018e5d81f30db4ed4bd3baf3685f588e5dcc0d3a589787c778d66186
7
+ data.tar.gz: e5ea98f2db61df179861cb068dd6738f9723a7ca70228e5fc320bd13c042399a425fefb24af20fe00d048d38bd52ec283c1e9cf9f62216c1a29d108050e9a2ef
@@ -8,6 +8,7 @@ module WolfCore
8
8
  'DMD' => ENV['DMD_PRICING_ID'],
9
9
  'NP' => ENV['NP_PRICING_ID'],
10
10
  'DDS' => ENV['DDS_PRICING_ID'],
11
+ 'GP' => ENV['GP_PRICING_ID'],
11
12
  }
12
13
 
13
14
  LOCUM_AVAILABILITY_MAP = {
@@ -9,6 +9,7 @@ module WolfCore
9
9
  'barton/export/jobseeker' => 'BartonExportJobseeker',
10
10
  'barton/import/order' => 'BartonImportOrder',
11
11
  'barton/export/order' => 'BartonExportOrder',
12
+ 'barton/import/order_description' => 'BartonImportOrderDescription',
12
13
  }
13
14
 
14
15
  def route_event_request(path:, body:)
@@ -23,6 +24,27 @@ module WolfCore
23
24
  )
24
25
  end
25
26
  end
27
+
28
+ def import_order_description(order_id:, listing:)
29
+ domain_url = ENV['GENERATE_JOB_DESCRIPTION_URL']
30
+ path = 'barton/import/order_description'
31
+ headers = {
32
+ 'Authorization' => ENV['GENERATE_JOB_DESCRIPTION_TOKEN'],
33
+ 'tenant' => ENV['GENERATE_JOB_DESCRIPTION_TENANT'],
34
+ }
35
+ body = { order_id: order_id, listing: listing }
36
+
37
+ if domain_url.present?
38
+ async_http_post(url: "#{domain_url}/#{path}", headers: headers, body: body)
39
+ else
40
+ function_name = PATH_TO_FUNCTION_NAME_MAPPING[path]
41
+ body['headers'] = headers
42
+ invoke_lambda(
43
+ function_name: function_name,
44
+ payload: body,
45
+ )
46
+ end
47
+ end
26
48
  end
27
49
  end
28
50
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module WolfCore
4
- VERSION = "0.1.42"
4
+ VERSION = "0.1.44"
5
5
  end
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: 0.1.42
4
+ version: 0.1.44
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-07-25 00:00:00.000000000 Z
11
+ date: 2024-07-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty