multiwoven-integrations 0.33.1 → 0.33.3

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: 98def3e30ddde07d09ef1b49f76389e5da6697f61945bfdea2ed45b51864ad54
4
- data.tar.gz: 17c486cd50aeb68bf518caea621b7e05810cb90796eb1e3bf3c2d46f4a09679c
3
+ metadata.gz: fcceabc91eee757b5d5d7af2e968d35133415ee1dad963e3bce4191662b55fa2
4
+ data.tar.gz: 961c82bdd27327e703d36ab7997b2ccc982d267197932b0184f5375548b4d3bd
5
5
  SHA512:
6
- metadata.gz: 5f7ee1fc99f646605d0e48af51bc8249b55a0c043e63bfc89f7f22f6a66ff1aa216e9ce8abee2b3fba795dc82fd1a6e162a7162dc05ff8ee022968a3e2757d93
7
- data.tar.gz: 465ab9bd57a12b53c925eb31f5d2de6ee9ce8e60ac6cb5842b1813574edf300cee6a25475e64c8f040cf2a3c515cc1a45e6111a784adbf4f7ee4d7c1ae85ff2e
6
+ metadata.gz: 57b6f0c56efd2657d09bd7ca84bca99f9be0d0d05a14e40f7f86a1dad067241394baf23598e0f7ff364cc2303176ae4723a6e13581c53a06bc1d82d4d5bfc5c6
7
+ data.tar.gz: b961f9ad1cad9a9e200d286f0a193976a25add771ad475b743021ec504687b6fd853d4adac63faff28864ede906d39043cfb1c4f9bb60f76f4229320ee4cd128
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Multiwoven
4
4
  module Integrations
5
- VERSION = "0.33.1"
5
+ VERSION = "0.33.3"
6
6
 
7
7
  ENABLED_SOURCES = %w[
8
8
  Snowflake
@@ -76,13 +76,12 @@ module Multiwoven::Integrations::Source
76
76
  analysis = textract.analyze_expense(document: { bytes: byte_stream.read })
77
77
  invoice = extract_invoice_data(invoice, analysis)
78
78
  rescue Aws::Textract::Errors::UnsupportedDocumentException => e
79
- invoice[:exception] = "Document format not supported." if invoice.key?(:exception)
79
+ invoice["exception"] = e.message if invoice.key?("exception")
80
80
  handle_exception(e, {
81
81
  context: "GOOGLE_DRIVE:READ:EXTRACT:EXCEPTION",
82
82
  type: "error"
83
83
  })
84
84
  rescue StandardError => e
85
- invoice[:exception] = e.message if invoice.key?(:exception)
86
85
  handle_exception(e, {
87
86
  context: "GOOGLE_DRIVE:READ:EXTRACT:EXCEPTION",
88
87
  type: "error"
@@ -145,7 +144,7 @@ module Multiwoven::Integrations::Source
145
144
 
146
145
  def select_columns(query)
147
146
  columns = query.match(/SELECT (.*) FROM/)[1]
148
- all_columns = %w[line_items id file_name] + TEXTRACT_SUMMARY_FIELDS.keys
147
+ all_columns = %w[line_items id file_name exception] + TEXTRACT_SUMMARY_FIELDS.keys
149
148
  @options[:fields] = all_columns if @options[:fields].empty?
150
149
 
151
150
  return @options[:fields] if columns.include?("*")
@@ -108,7 +108,8 @@
108
108
  { "const": "invoice_date", "title": "Invoice/Receipt Date" },
109
109
  { "const": "invoice_total", "title": "Invoice/Receipt Total" },
110
110
  { "const": "purchase_order", "title": "Purchase Order Number" },
111
- { "const": "line_items", "title": "Invoice Line Items (Code, Description, Quantity, Unit Price, Total Price)"}
111
+ { "const": "line_items", "title": "Invoice Line Items (Code, Description, Quantity, Unit Price, Total Price)"},
112
+ { "const": "vendor_name", "title": "Vendor Name" }
112
113
  ]
113
114
  },
114
115
  "uniqueItems": true
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.33.1
4
+ version: 0.33.3
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: 2025-08-01 00:00:00.000000000 Z
11
+ date: 2025-08-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport