wolf_core 0.1.42 → 0.1.43

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cca3495c5dd4ea12b6f9b1f6d868042ba48faf67235bc5a55d0e52c93658bb97
4
- data.tar.gz: c67d377b94bd65c1b92015da5223bd7585532684d9ed55d97bc9fabe76a6e9c3
3
+ metadata.gz: 641d1e4c154ea68b57268ba3070322a32b422cffa0953b5ba8fc7efa8eac13d4
4
+ data.tar.gz: 8829a6bce3dc101986ae92a4f7de4c6ca39cb8aa5884ecf789aa96a0a527c588
5
5
  SHA512:
6
- metadata.gz: 19a274c49636bacc592195d84a13cda9946a967aab3f6a9e9f42f047dc42edc083df04a7a658e598849bd9f61e6521b77afb406d65ac830299b2db83bc712f72
7
- data.tar.gz: f84a96887a6bea373fc69ccf5e438ae0ecd0e524c406930e198ec0b74f78d8d6fe3a11ee573e7589b0a63c3162efaedb123efc963e27c8fa6488c878bb2e6773
6
+ metadata.gz: d159bf71936794aeaabfd938fe0854de4a61d790e2ea6d36adf2727d37a1aba15ee3ad9c089a630bd85e129b9fbc6a11bd01fd9527dbb67afa7aa4b50e708f05
7
+ data.tar.gz: bb9ba87004026d19b88d1c212d0c356dafe54b1bcb49a4b47744a79beb592c2ed8215d4c1f4f2f59d70710fba00a44e67c976368a4f4581973ea6d884e39883d
@@ -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.43"
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.43
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