multiwoven-integrations 0.1.67 → 0.1.68

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: da70c8d91dea6167ebb4103cfe0e1999d663ee2ac420d9ae272a5dbd70924380
4
- data.tar.gz: bc6fd6fd71c8c02dcdcf4e1f3eaf69dee37f3df6ba5f6fb1d4af49aa64220119
3
+ metadata.gz: 77816f54f13495e303382ef4c1e2e932472475d31e0f486d3dcc0535e561f36d
4
+ data.tar.gz: 854a6871e65a3ad4764548ea14793a04c02d42cde0ed31712c252aff960134ab
5
5
  SHA512:
6
- metadata.gz: 2040a6232add940bd41cffa131c5738d64a4187df2615f3625910aa6129ae089ffd89027ff78df15d753a27f5eb10cec0357f4b977f25d86c9663480dce88c71
7
- data.tar.gz: cfe7e24682df19fd0aa10284891d073324933838ceb10bfab3a8dc7259705af422b86d4b5fc85665af580a2097625fb0feafdd05152ea9d2f5bf6d0d0e51fff4
6
+ metadata.gz: 0de8475fa0b27194c1a61b58d56f11fe3a5df8058c6065664a2c67c7af5c5d4c709aab352c0be4c7f53b9f62fda1031a47f1590844755b54897b38a652173306
7
+ data.tar.gz: dce5ca510e72bccf871075a1a5dd523db56961454b8d4ba987e6037b219f07683a79b1dabc03e51e9b533b18af52ce048ad60684fb2f9ee6e619c9fac272316b
@@ -3,10 +3,11 @@
3
3
  module Multiwoven
4
4
  module Integrations
5
5
  class Config
6
- attr_accessor :logger
6
+ attr_accessor :logger, :exception_reporter
7
7
 
8
8
  def initialize(params = {})
9
9
  @logger = params[:logger]
10
+ @exception_reporter = params[:exception_reporter]
10
11
  end
11
12
  end
12
13
  end
@@ -48,6 +48,11 @@ module Multiwoven
48
48
  Integrations::Service.logger
49
49
  end
50
50
 
51
+ def report_exception(exception)
52
+ reporter = Integrations::Service.exception_reporter
53
+ reporter&.report(exception)
54
+ end
55
+
51
56
  def create_log_message(context, type, exception)
52
57
  Integrations::Protocol::LogMessage.new(
53
58
  name: context,
@@ -60,7 +65,7 @@ module Multiwoven
60
65
  logger.error(
61
66
  "#{context}: #{exception.message}"
62
67
  )
63
-
68
+ report_exception(exception)
64
69
  create_log_message(context, type, exception)
65
70
  end
66
71
 
@@ -1,110 +1,110 @@
1
1
  {
2
- "request_rate_limit": 700,
3
- "request_rate_limit_unit": "minute",
4
- "request_rate_concurrency": 10,
5
- "streams": [
6
- {
7
- "name": "tickets",
8
- "action": "create",
9
- "json_schema": {
10
- "type": "object",
11
- "additionalProperties": true,
12
- "properties": {
13
- "id": {
14
- "type": "integer"
15
- },
16
- "subject": {
17
- "type": "string"
18
- },
19
- "description": {
20
- "type": "string"
21
- },
22
- "status": {
23
- "type": "string"
24
- },
25
- "priority": {
26
- "type": "string"
27
- },
28
- "requester_id": {
29
- "type": "integer"
30
- },
31
- "assignee_id": {
32
- "type": "integer"
33
- },
34
- "tags": {
35
- "type": "array",
36
- "items": {
37
- "type": "string"
38
- }
39
- },
40
- "created_at": {
41
- "type": "string",
42
- "format": "date-time"
43
- },
44
- "updated_at": {
45
- "type": "string",
46
- "format": "date-time"
47
- }
48
- }
49
- },
50
- "supported_sync_modes": [
51
- "incremental"
52
- ],
53
- "source_defined_cursor": true,
54
- "default_cursor_field": [
55
- "updated_at"
56
- ],
57
- "source_defined_primary_key": [
58
- [
59
- "id"
60
- ]
61
- ]
62
- },
63
- {
64
- "name": "users",
65
- "action": "create",
66
- "json_schema": {
67
- "type": "object",
68
- "additionalProperties": true,
69
- "properties": {
70
- "id": {
71
- "type": "integer"
72
- },
73
- "name": {
74
- "type": "string"
75
- },
76
- "email": {
77
- "type": "string"
78
- },
79
- "role": {
80
- "type": "string"
81
- },
82
- "last_login_at": {
83
- "type": "string",
84
- "format": "date-time"
85
- },
86
- "created_at": {
87
- "type": "string",
88
- "format": "date-time"
89
- },
90
- "updated_at": {
91
- "type": "string",
92
- "format": "date-time"
93
- }
94
- }
95
- },
96
- "supported_sync_modes": [
97
- "incremental"
98
- ],
99
- "source_defined_cursor": true,
100
- "default_cursor_field": [
101
- "updated_at"
102
- ],
103
- "source_defined_primary_key": [
104
- [
105
- "id"
106
- ]
107
- ]
2
+ "request_rate_limit": 700,
3
+ "request_rate_limit_unit": "minute",
4
+ "request_rate_concurrency": 10,
5
+ "streams": [
6
+ {
7
+ "name": "tickets",
8
+ "action": "create",
9
+ "json_schema": {
10
+ "type": "object",
11
+ "additionalProperties": true,
12
+ "properties": {
13
+ "id": {
14
+ "type": "integer"
15
+ },
16
+ "subject": {
17
+ "type": "string"
18
+ },
19
+ "description": {
20
+ "type": "string"
21
+ },
22
+ "status": {
23
+ "type": "string"
24
+ },
25
+ "priority": {
26
+ "type": "string"
27
+ },
28
+ "requester_id": {
29
+ "type": "integer"
30
+ },
31
+ "assignee_id": {
32
+ "type": "integer"
33
+ },
34
+ "tags": {
35
+ "type": "array",
36
+ "items": {
37
+ "type": "string"
38
+ }
39
+ },
40
+ "created_at": {
41
+ "type": "string",
42
+ "format": "date-time"
43
+ },
44
+ "updated_at": {
45
+ "type": "string",
46
+ "format": "date-time"
47
+ }
108
48
  }
109
- ]
49
+ },
50
+ "supported_sync_modes": [
51
+ "incremental"
52
+ ],
53
+ "source_defined_cursor": true,
54
+ "default_cursor_field": [
55
+ "updated_at"
56
+ ],
57
+ "source_defined_primary_key": [
58
+ [
59
+ "id"
60
+ ]
61
+ ]
62
+ },
63
+ {
64
+ "name": "users",
65
+ "action": "create",
66
+ "json_schema": {
67
+ "type": "object",
68
+ "additionalProperties": true,
69
+ "properties": {
70
+ "id": {
71
+ "type": "integer"
72
+ },
73
+ "name": {
74
+ "type": "string"
75
+ },
76
+ "email": {
77
+ "type": "string"
78
+ },
79
+ "role": {
80
+ "type": "string"
81
+ },
82
+ "last_login_at": {
83
+ "type": "string",
84
+ "format": "date-time"
85
+ },
86
+ "created_at": {
87
+ "type": "string",
88
+ "format": "date-time"
89
+ },
90
+ "updated_at": {
91
+ "type": "string",
92
+ "format": "date-time"
93
+ }
94
+ }
95
+ },
96
+ "supported_sync_modes": [
97
+ "incremental"
98
+ ],
99
+ "source_defined_cursor": true,
100
+ "default_cursor_field": [
101
+ "updated_at"
102
+ ],
103
+ "source_defined_primary_key": [
104
+ [
105
+ "id"
106
+ ]
107
+ ]
108
+ }
109
+ ]
110
110
  }
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Multiwoven
4
4
  module Integrations
5
- VERSION = "0.1.67"
5
+ VERSION = "0.1.68"
6
6
 
7
7
  ENABLED_SOURCES = %w[
8
8
  Snowflake
@@ -26,8 +26,8 @@ module Multiwoven
26
26
  SalesforceConsumerGoodsCloud
27
27
  Sftp
28
28
  Postgresql
29
- Zendesk
30
29
  Http
30
+ Zendesk
31
31
  ].freeze
32
32
  end
33
33
  end
@@ -28,6 +28,10 @@ module Multiwoven
28
28
  config.logger || default_logger
29
29
  end
30
30
 
31
+ def exception_reporter
32
+ config.exception_reporter
33
+ end
34
+
31
35
  def config
32
36
  @config ||= Config.new
33
37
  end
@@ -64,8 +64,8 @@ require_relative "integrations/destination/stripe/client"
64
64
  require_relative "integrations/destination/salesforce_consumer_goods_cloud/client"
65
65
  require_relative "integrations/destination/sftp/client"
66
66
  require_relative "integrations/destination/postgresql/client"
67
- require_relative "integrations/destination/zendesk/client"
68
67
  require_relative "integrations/destination/http/client"
68
+ require_relative "integrations/destination/zendesk/client"
69
69
 
70
70
  module Multiwoven
71
71
  module Integrations
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.67
4
+ version: 0.1.68
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-15 00:00:00.000000000 Z
11
+ date: 2024-05-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport