multiwoven-integrations 0.1.69 → 0.1.70

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: 504054c37b59618cb9743ef91bb97069a89346c37ca31f70aca89947542f8261
4
- data.tar.gz: 978b116bd88a9a313840f94ea6010bc0e07dcfab31d3f9f7ed6ab3c751a3f159
3
+ metadata.gz: 86c32dc17e06c1d25daf3444873c1a368fae14b9be61970a08413e7122606859
4
+ data.tar.gz: a9fde38fbfa372e81d61f1b007a390ef5fde4ae25aed3b08a0f008bf8aea3ba3
5
5
  SHA512:
6
- metadata.gz: 1add5f808f5ba6774635129869a4c2470f2f7c0f1ec71bf43e09187ed482423d32b41d31f436159240f0ee751b785ac2a9504bbaf83c616eaf0146b4a0974094
7
- data.tar.gz: e97ea09b8de2d4170102549a965f5606a3563b8b621b4be8114acdfa5aca05c6899a0d79925faf3578f952057febc16764534a48cf08cd59d81d6f561ec6602c
6
+ metadata.gz: 3deaadcb0c86572b5d8f4030ca19859a51142c8d7bf2725e990dd748013f91b28941fd724cdb3e56f4d2b0bc54bd9c20fcefda8e55f9b198a62866d770f2bb44
7
+ data.tar.gz: 3728413ea4d86eca6901ea1ec6b5d851edf2a4e321778884596bc0699e210a3235f79b5871e44418bc3e28b989990815672cf5d1541177c2b51a1fc6e4ccad02
@@ -14,6 +14,16 @@ module Multiwoven
14
14
 
15
15
  class Client < DestinationConnector
16
16
  prepend Multiwoven::Integrations::Core::RateLimiter
17
+
18
+ def initialize
19
+ super
20
+ @logger = Integrations::Service.logger
21
+ Restforce.configure do |config|
22
+ config.logger = @logger
23
+ end
24
+ Restforce.log = true
25
+ end
26
+
17
27
  def check_connection(connection_config)
18
28
  connection_config = connection_config.with_indifferent_access
19
29
  initialize_client(connection_config)
@@ -39,6 +49,8 @@ module Multiwoven
39
49
 
40
50
  def write(sync_config, records, action = "create")
41
51
  @action = sync_config.stream.action || action
52
+ @sync_id = sync_config.sync_id
53
+ @sync_run_id = sync_config.sync_run_id
42
54
  initialize_client(sync_config.destination.connection_specification)
43
55
  process_records(records, sync_config.stream)
44
56
  rescue StandardError => e
@@ -79,6 +91,7 @@ module Multiwoven
79
91
  def send_data_to_salesforce(stream_name, record = {})
80
92
  method_name = "upsert!"
81
93
  args = [stream_name, "Id", record]
94
+ @logger.debug("sync_id: #{@sync_id}, sync_run_id: #{@sync_run_id}, record: #{record}")
82
95
  @client.send(method_name, *args)
83
96
  end
84
97
 
@@ -175,6 +175,8 @@ module Multiwoven
175
175
  attribute? :cursor_field, Types::String.optional
176
176
  attribute? :current_cursor_field, Types::String.optional
177
177
  attribute :destination_sync_mode, DestinationSyncMode
178
+ attribute? :sync_id, Types::String.optional
179
+ attribute? :sync_run_id, Types::String.optional
178
180
  end
179
181
 
180
182
  class ControlMessage < ProtocolModel
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Multiwoven
4
4
  module Integrations
5
- VERSION = "0.1.69"
5
+ VERSION = "0.1.70"
6
6
 
7
7
  ENABLED_SOURCES = %w[
8
8
  Snowflake
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.69
4
+ version: 0.1.70
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-05-23 00:00:00.000000000 Z
11
+ date: 2024-05-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport