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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c196c94e7a1a1cbd91855c1a6ecaa0759152f9c7ad07002a2dc124d4ba06f8b1
4
- data.tar.gz: 84947109e0dbdc82ff22a3ea30e93b369d92edf099562b4d5026e6fbb2690f88
3
+ metadata.gz: 749edf931d33fb39393d5f98960ad8c5ef48def776912a2d4cc75c5b4e8586d7
4
+ data.tar.gz: c5d6b8cb5784a151fe6e051504e8d2381123c58d51e4089b08ef51352a0950de
5
5
  SHA512:
6
- metadata.gz: 28904dc824d4178096d6a5ae08477967c32854c86d727822c59956696d75d36c563f53e3300d557b3fe73256d071398eefb81efde323cecd5b704c060560051c
7
- data.tar.gz: ae5c528985092ab05773752822b85bae3ea8753a42019d4cb33933f4f1fcaec6d616c7edb2dd94e541f3c1fde8d7502b201014fdfdeb8453973cd64349b034f0
6
+ metadata.gz: e56eadd5af8d6926e78cb14751fbe64c9760adb907397d8b47f0227e701a461cc2b4c088518af1bc54a2fb257d631a3efd78c9e4cb2c5256de3276c48eba5bab
7
+ data.tar.gz: bf2d81fc4cd44725d4b4644b901a14904e30fce5cdb279b783b70be12c96f644b33792fbf8420878970c7020ae93e0fcf65fd59f213ab53733230fec36d4b48d
@@ -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[array null], "items": { "type": "string" }, "enum": enum_values }
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": "array", "items": { "type": "string" }, "enum": enum_values }
68
+ { "type": "string", "items": { "type": "string" }, "enum": enum_values }
69
69
  else
70
- { "type": "array", "items": { "type": "string" } }
70
+ { "type": "string", "items": { "type": "string" } }
71
71
  end
72
72
  when "reference", "Reference (Lookup & Master-Detail)"
73
73
  if sf_field["nillable"]
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Multiwoven
4
4
  module Integrations
5
- VERSION = "0.1.60"
5
+ VERSION = "0.1.62"
6
6
 
7
7
  ENABLED_SOURCES = %w[
8
8
  Snowflake
@@ -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 = batched_query(query, sync_config.limit, sync_config.offset) unless sync_config.limit.nil? && sync_config.offset.nil?
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[array null], "items": { "type": "string" }, "enum": enum_values }
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": "array", "items": { "type": "string" }, "enum": enum_values }
68
+ { "type": "string", "items": { "type": "string" }, "enum": enum_values }
69
69
  else
70
- { "type": "array", "items": { "type": "string" } }
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.60
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-16 00:00:00.000000000 Z
11
+ date: 2024-04-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport