Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions integrations/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ GIT
PATH
remote: .
specs:
<<<<<<< HEAD
multiwoven-integrations (0.34.5)
=======
multiwoven-integrations (0.34.9)
>>>>>>> a21a6880 (feat(CE): refactor google drive source connector (#1462))
MailchimpMarketing
activesupport
async-websocket
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,22 @@ class UnstructuredSourceConnector < SourceConnector
source_defined_primary_key: [["element_id"]]
}.freeze

# Commands for unstructured data operations
# Data types
UNSTRUCTURED = "unstructured"
SEMISTRUCTURED = "semistructured"

# Commands for unstructured & semi-structured data operations
LIST_FILES_CMD = "list_files"
DOWNLOAD_FILE_CMD = "download_file"

def unstructured_data?(connection_config)
connection_config["data_type"] == UNSTRUCTURED
end

def semistructured_data?(connection_config)
connection_config["data_type"] == SEMISTRUCTURED
end

def create_unstructured_stream
Multiwoven::Integrations::Protocol::Stream.new(
name: UNSTRUCTURED,
Expand All @@ -47,6 +54,15 @@ def create_unstructured_stream
**UNSTRUCTURED_STREAM_CONFIG
)
end

def create_semistructured_stream
Multiwoven::Integrations::Protocol::Stream.new(
name: SEMISTRUCTURED,
action: StreamAction["fetch"],
json_schema: UNSTRUCTURED_SCHEMA,
**UNSTRUCTURED_STREAM_CONFIG
)
end
end
end
end
4 changes: 4 additions & 0 deletions integrations/lib/multiwoven/integrations/rollout.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@

module Multiwoven
module Integrations
<<<<<<< HEAD
VERSION = "0.34.5"
=======
VERSION = "0.34.9"
>>>>>>> a21a6880 (feat(CE): refactor google drive source connector (#1462))

ENABLED_SOURCES = %w[
Snowflake
Expand Down
Loading
Loading