wolf_core 0.1.42 → 0.1.43
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/wolf_core/application/barton/routing.rb +22 -0
- data/lib/wolf_core/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 641d1e4c154ea68b57268ba3070322a32b422cffa0953b5ba8fc7efa8eac13d4
|
4
|
+
data.tar.gz: 8829a6bce3dc101986ae92a4f7de4c6ca39cb8aa5884ecf789aa96a0a527c588
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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.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-
|
11
|
+
date: 2024-07-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|