multiwoven-integrations 0.15.3 → 0.15.5

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: 01e55a5a02e62950e366a99127c0531d994ba547895a09641d06f77df462b7f3
4
- data.tar.gz: 0d7194c4d0b7f823607acd0f8e5ace01b381090707811599e126941b2de8404a
3
+ metadata.gz: 5817a11d56cc84e9f21a860c1a3569341618601b7e45adfb11d63c69cef56bad
4
+ data.tar.gz: de86e0f0cf8e03c2a502564c4433504069b8901351e19214cccd0024358146dc
5
5
  SHA512:
6
- metadata.gz: 144ac424ba8610d81af8f4e6e2b9fb7393960557db4ed89f7a2405c9b6649bd114a160e477d8e803fb774654b21e083bdf4f6b5fa65b79cfc21c3da7857c5542
7
- data.tar.gz: bfa1840c3d5beffd213b7de986d21e97365a621b8e6839aa0dfec32fcd316201a6da30f9a4fe4ae03bb810371f439420b9000d6e18e02cdd12edb2396bb1468d
6
+ metadata.gz: 128e2f06b1712097cf41f8b8e49d3724e4695fac476f606511d702c9eb1603dffd836e06c930032521a1579b3753fcd885b50f4c8f5889b180587690dedb50bc
7
+ data.tar.gz: d3541afb998b37338318843b402fd00c4d9a2ab83ce24e4efc6ab5e2bc92931c8dc16a3d04eeafdeb053253887ad5c7d3a4411d6e0dca664f924cee157c4efe9
@@ -35,7 +35,7 @@ module Multiwoven::Integrations::Destination
35
35
  catalog.to_multiwoven_message
36
36
  rescue StandardError => e
37
37
  handle_exception(e, {
38
- context: "POSTGRESQL:DISCOVER:EXCEPTION",
38
+ context: "AIS:DATA:STORE:DISCOVER:EXCEPTION",
39
39
  type: "error"
40
40
  })
41
41
  ensure
@@ -54,14 +54,14 @@ module Multiwoven::Integrations::Destination
54
54
 
55
55
  records.each do |record|
56
56
  query = Multiwoven::Integrations::Core::QueryBuilder.perform(action, table_name, record, primary_key)
57
- logger.debug("POSTGRESQL:WRITE:QUERY query = #{query} sync_id = #{sync_config.sync_id} sync_run_id = #{sync_config.sync_run_id}")
57
+ logger.debug("AIS:DATA:STORE:WRITE:QUERY query = #{query} sync_id = #{sync_config.sync_id} sync_run_id = #{sync_config.sync_run_id}")
58
58
  begin
59
59
  response = db.exec(query)
60
60
  write_success += 1
61
61
  log_message_array << log_request_response("info", query, response)
62
62
  rescue StandardError => e
63
63
  handle_exception(e, {
64
- context: "POSTGRESQL:RECORD:WRITE:EXCEPTION",
64
+ context: "AIS:DATA:STORE:RECORD:WRITE:EXCEPTION",
65
65
  type: "error",
66
66
  sync_id: sync_config.sync_id,
67
67
  sync_run_id: sync_config.sync_run_id
@@ -73,7 +73,7 @@ module Multiwoven::Integrations::Destination
73
73
  tracking_message(write_success, write_failure, log_message_array)
74
74
  rescue StandardError => e
75
75
  handle_exception(e, {
76
- context: "POSTGRESQL:RECORD:WRITE:EXCEPTION",
76
+ context: "AIS:DATA:STORE:RECORD:WRITE:EXCEPTION",
77
77
  type: "error",
78
78
  sync_id: sync_config.sync_id,
79
79
  sync_run_id: sync_config.sync_run_id
@@ -5,7 +5,7 @@
5
5
  "connector_type": "destination",
6
6
  "category": "Database",
7
7
  "documentation_url": "https://docs.mutliwoven.com",
8
- "github_issue_label": "destination-postgresql",
8
+ "github_issue_label": "destination-ais-data-store",
9
9
  "icon": "icon.svg",
10
10
  "license": "MIT",
11
11
  "release_stage": "alpha",
@@ -1,9 +1,9 @@
1
1
  {
2
- "documentation_url": "https://docs.multiwoven.com/integrations/sources/postgresql",
2
+ "documentation_url": "https://docs.multiwoven.com/integrations/destination/ais-data-store",
3
3
  "stream_type": "dynamic",
4
4
  "connection_specification": {
5
5
  "$schema": "http://json-schema.org/draft-07/schema#",
6
- "title": "Postgresql",
6
+ "title": "AIS Data Store",
7
7
  "type": "object",
8
8
  "required": ["host", "port", "database", "schema"],
9
9
  "properties": {
@@ -19,8 +19,8 @@
19
19
  "readOnly": true
20
20
  },
21
21
  "username": {
22
- "description": "Username refers to your individual PostgreSQL login credentials. At a minimum, the user associated with these credentials must be granted read access to the data intended for synchronization.",
23
- "examples": ["POSTGRESQL_USER"],
22
+ "description": "Username refers to your individual AIS Data Store login credentials. At a minimum, the user associated with these credentials must be granted read access to the data intended for synchronization.",
23
+ "examples": ["AIS_DATA_STORE_USER"],
24
24
  "type": "string",
25
25
  "title": "Username",
26
26
  "order": 1
@@ -36,29 +36,29 @@
36
36
  "order": 0
37
37
  },
38
38
  "host": {
39
- "description": "The hostname or IP address of your PostgreSQL server.",
39
+ "description": "The hostname or IP address of your AIS Data Store server.",
40
40
  "examples": ["127.0.0.1"],
41
41
  "type": "string",
42
42
  "title": "Host",
43
43
  "order": 1
44
44
  },
45
45
  "port": {
46
- "description": "The port number for your PostgreSQL server, which defaults to 5432, may vary based on your configuration. ",
46
+ "description": "The port number for your AIS Data Store server, which defaults to 5432, may vary based on your configuration. ",
47
47
  "examples": ["5432"],
48
48
  "type": "string",
49
49
  "title": "Port",
50
50
  "order": 2
51
51
  },
52
52
  "database": {
53
- "description": "The specific PostgreSQL database to connect to.",
54
- "examples": ["POSTGRESQL_DB"],
53
+ "description": "The specific AIS Data Store database to connect to.",
54
+ "examples": ["AIS_DATA_STORE_DB"],
55
55
  "type": "string",
56
56
  "title": "Database",
57
57
  "order": 3
58
58
  },
59
59
  "schema": {
60
- "description": "The schema within the PostgreSQL database.",
61
- "examples": ["POSTGRESQL_SCHEMA"],
60
+ "description": "The schema within the AIS Data Store database.",
61
+ "examples": ["AIS_DATA_STORE_SCHEMA"],
62
62
  "type": "string",
63
63
  "title": "Schema",
64
64
  "order": 4
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Multiwoven
4
4
  module Integrations
5
- VERSION = "0.15.3"
5
+ VERSION = "0.15.5"
6
6
 
7
7
  ENABLED_SOURCES = %w[
8
8
  Snowflake
@@ -7,12 +7,12 @@ module Multiwoven::Integrations::Source
7
7
  def check_connection(connection_config)
8
8
  connection_config = connection_config.with_indifferent_access
9
9
  url_host = connection_config[:url_host]
10
+ http_method = connection_config[:http_method]
10
11
  headers = connection_config[:headers]
11
- response = Multiwoven::Integrations::Core::HttpClient.request(
12
- url_host,
13
- HTTP_GET,
14
- headers: headers
15
- )
12
+ payload = JSON.parse(connection_config[:request_format])
13
+ config = connection_config[:config]
14
+ config[:timeout] ||= 30
15
+ response = send_request(url_host, http_method, payload, headers, config)
16
16
  if success?(response)
17
17
  success_status
18
18
  else
@@ -60,7 +60,7 @@ module Multiwoven::Integrations::Source
60
60
  headers = connection_config[:headers]
61
61
  config = connection_config[:config]
62
62
  config[:timeout] ||= 30
63
- response = send_request(url_host, payload, headers, config)
63
+ response = send_request(url_host, HTTP_POST, payload, headers, config)
64
64
  process_response(response)
65
65
  rescue StandardError => e
66
66
  handle_exception(e, context: "HTTP MODEL:RUN_MODEL:EXCEPTION", type: "error")
@@ -75,10 +75,10 @@ module Multiwoven::Integrations::Source
75
75
  end
76
76
  end
77
77
 
78
- def send_request(url, payload, headers, config)
78
+ def send_request(url, http_method, payload, headers, config)
79
79
  Multiwoven::Integrations::Core::HttpClient.request(
80
80
  url,
81
- HTTP_POST,
81
+ http_method,
82
82
  payload: payload,
83
83
  headers: headers,
84
84
  config: config
@@ -8,15 +8,21 @@
8
8
  "type": "object",
9
9
  "required": ["url_host"],
10
10
  "properties": {
11
+ "http_method": {
12
+ "type": "string",
13
+ "title": "HTTP Method",
14
+ "enum": ["POST", "GET"],
15
+ "order": 0
16
+ },
11
17
  "url_host": {
12
18
  "type": "string",
13
19
  "title": "URL",
14
- "order": 0
20
+ "order": 1
15
21
  },
16
22
  "headers": {
17
23
  "title": "HTTP Headers",
18
24
  "description": "Custom headers to include in the HTTP request. Useful for authentication, content type specifications, and other request metadata.",
19
- "order": 1,
25
+ "order": 2,
20
26
  "additionalProperties": {
21
27
  "type": "string"
22
28
  }
@@ -33,21 +39,21 @@
33
39
  "order": 0
34
40
  }
35
41
  },
36
- "order": 2
42
+ "order": 3
37
43
  },
38
44
  "request_format": {
39
45
  "title": "Request Format",
40
46
  "description": "Sample Request Format",
41
47
  "type": "string",
42
48
  "x-request-format": true,
43
- "order": 3
49
+ "order": 4
44
50
  },
45
51
  "response_format": {
46
52
  "title": "Response Format",
47
53
  "description": "Sample Response Format",
48
54
  "type": "string",
49
55
  "x-response-format": true,
50
- "order": 4
56
+ "order": 5
51
57
  }
52
58
  }
53
59
  }
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.15.3
4
+ version: 0.15.5
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-11-14 00:00:00.000000000 Z
11
+ date: 2024-11-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport