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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 805f683f93703e990a72ffaed09a720810c7951b0ee82fb3f24ea3d0c1980520
|
4
|
+
data.tar.gz: 587680cdcd22b502736f4890e48441f9cb3e00035a5cca939141675c96a7be7f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a969b7f280041f545f2781bb385b8321128d22b6ce9aee25962f7800d8f40bbbc986f764018e5d81f30db4ed4bd3baf3685f588e5dcc0d3a589787c778d66186
|
7
|
+
data.tar.gz: e5ea98f2db61df179861cb068dd6738f9723a7ca70228e5fc320bd13c042399a425fefb24af20fe00d048d38bd52ec283c1e9cf9f62216c1a29d108050e9a2ef
|
@@ -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
|
data/lib/wolf_core/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2024-07-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|