multiwoven-integrations 0.1.60 → 0.1.62
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/multiwoven/integrations/destination/salesforce_consumer_goods_cloud/schema_helper.rb +3 -3
- data/lib/multiwoven/integrations/rollout.rb +1 -1
- data/lib/multiwoven/integrations/source/salesforce_consumer_goods_cloud/client.rb +1 -1
- data/lib/multiwoven/integrations/source/salesforce_consumer_goods_cloud/schema_helper.rb +3 -3
- 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: 749edf931d33fb39393d5f98960ad8c5ef48def776912a2d4cc75c5b4e8586d7
|
4
|
+
data.tar.gz: c5d6b8cb5784a151fe6e051504e8d2381123c58d51e4089b08ef51352a0950de
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e56eadd5af8d6926e78cb14751fbe64c9760adb907397d8b47f0227e701a461cc2b4c088518af1bc54a2fb257d631a3efd78c9e4cb2c5256de3276c48eba5bab
|
7
|
+
data.tar.gz: bf2d81fc4cd44725d4b4644b901a14904e30fce5cdb279b783b70be12c96f644b33792fbf8420878970c7020ae93e0fcf65fd59f213ab53733230fec36d4b48d
|
data/lib/multiwoven/integrations/destination/salesforce_consumer_goods_cloud/schema_helper.rb
CHANGED
@@ -62,12 +62,12 @@ module Multiwoven
|
|
62
62
|
when "picklist", "multipicklist", "Picklist (Multi-select)"
|
63
63
|
if sf_field[:picklistValues] && sf_field["nillable"]
|
64
64
|
enum_values = sf_field[:picklistValues].map { |val| val["value"] }
|
65
|
-
{ "type": %w[
|
65
|
+
{ "type": %w[string null], "items": { "type": "string" }, "enum": enum_values }
|
66
66
|
elsif sf_field[:picklistValues]
|
67
67
|
enum_values = sf_field[:picklistValues].map { |val| val["value"] }
|
68
|
-
{ "type": "
|
68
|
+
{ "type": "string", "items": { "type": "string" }, "enum": enum_values }
|
69
69
|
else
|
70
|
-
{ "type": "
|
70
|
+
{ "type": "string", "items": { "type": "string" } }
|
71
71
|
end
|
72
72
|
when "reference", "Reference (Lookup & Master-Detail)"
|
73
73
|
if sf_field["nillable"]
|
@@ -41,7 +41,7 @@ module Multiwoven
|
|
41
41
|
connection_config = sync_config.source.connection_specification.with_indifferent_access
|
42
42
|
initialize_client(connection_config)
|
43
43
|
query = sync_config.model.query
|
44
|
-
query =
|
44
|
+
query = "#{query} LIMIT #{sync_config.limit}" unless sync_config.limit.nil?
|
45
45
|
queried_data = @client.query(query)
|
46
46
|
results = queried_data.map do |record|
|
47
47
|
flatten_nested_hash(record)
|
@@ -62,12 +62,12 @@ module Multiwoven
|
|
62
62
|
when "picklist", "multipicklist", "Picklist (Multi-select)"
|
63
63
|
if sf_field[:picklistValues] && sf_field["nillable"]
|
64
64
|
enum_values = sf_field[:picklistValues].map { |val| val["value"] }
|
65
|
-
{ "type": %w[
|
65
|
+
{ "type": %w[string null], "items": { "type": "string" }, "enum": enum_values }
|
66
66
|
elsif sf_field[:picklistValues]
|
67
67
|
enum_values = sf_field[:picklistValues].map { |val| val["value"] }
|
68
|
-
{ "type": "
|
68
|
+
{ "type": "string", "items": { "type": "string" }, "enum": enum_values }
|
69
69
|
else
|
70
|
-
{ "type": "
|
70
|
+
{ "type": "string", "items": { "type": "string" } }
|
71
71
|
end
|
72
72
|
when "reference", "Reference (Lookup & Master-Detail)"
|
73
73
|
if sf_field["nillable"]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: multiwoven-integrations
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.62
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Subin T P
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-04-
|
11
|
+
date: 2024-04-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|