wolf_core 1.0.80 → 1.0.81
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d770b8b47501988698701c91ffa342324c6e43ec650c7178896f936b1a74883b
|
4
|
+
data.tar.gz: ddc19851ae98030c93550ee26e752ad96ca0c777c4cf1d229546a8f2baf6eb9e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: db957a6364b802eba6b4cf5405ac42a101b68fd505e6abec8cb3034bc34aaf3079e92c3bdd507c48d74d55ca4465f99ffb23e2084b29c32989916f079e5eaf84
|
7
|
+
data.tar.gz: 57fc200f603d2c6b2e38d63d44f4fd60b9966ad6a3f86bbed52af7e436c4d297dae869ed486ca6ad3e381295be2ea95636cf33fc1691d17abd0ef044c4ca8a9c
|
@@ -2,6 +2,7 @@ module WolfCore
|
|
2
2
|
module Integrations
|
3
3
|
module ClientApiOperations
|
4
4
|
include WolfCore::HttpOperations
|
5
|
+
include WolfCore::Integrations::CustomValueApiOperations
|
5
6
|
|
6
7
|
def fetch_client!(wolf_token:, client_id:, tenant:, wolf_platform_url:, error_message:)
|
7
8
|
response = safe_http_get(
|
@@ -59,6 +60,24 @@ module WolfCore
|
|
59
60
|
body: client
|
60
61
|
)
|
61
62
|
end
|
63
|
+
|
64
|
+
def fetch_client_custom_value!(wolf_token:, tenant:, wolf_platform_url:, client_id:, id: nil, custom_requirement_id: nil, query: nil, error_data: nil)
|
65
|
+
id || custom_requirement_id || raise_service_error({ message: "custom_requirement_id or id must be provided" })
|
66
|
+
query = {
|
67
|
+
user_category: 'Company',
|
68
|
+
user_code: client_id,
|
69
|
+
id: id,
|
70
|
+
custom_requirement_friendly_id: custom_requirement_id
|
71
|
+
}.compact.merge(query || {})
|
72
|
+
fetch_custom_values!(
|
73
|
+
wolf_token: wolf_token,
|
74
|
+
tenant: tenant,
|
75
|
+
wolf_platform_url: wolf_platform_url,
|
76
|
+
error_message: "Unable to fetch custom values for #{client_id}",
|
77
|
+
error_data: query.merge(error_data || {}),
|
78
|
+
query: query
|
79
|
+
).first
|
80
|
+
end
|
62
81
|
end
|
63
82
|
end
|
64
83
|
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: 1.0.
|
4
|
+
version: 1.0.81
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Javier Roncallo
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-02-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|