mindee 4.0.0 → 4.1.1
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 +4 -4
- data/CHANGELOG.md +13 -0
- data/bin/cli_products.rb +172 -0
- data/bin/mindee.rb +6 -121
- data/docs/advanced_file_operations.md +7 -9
- data/docs/code_samples/invoice_splitter_v1_async.txt +2 -1
- data/docs/code_samples/{license_plates_v1.txt → us_mail_v2_async.txt} +1 -1
- data/docs/code_samples/workflow_execution.txt +28 -0
- data/docs/getting_started.md +1 -1
- data/docs/global_products/barcode_reader_v1.md +1 -1
- data/docs/global_products/bill_of_lading_v1.md +1 -1
- data/docs/global_products/business_card_v1.md +1 -1
- data/docs/global_products/cropper_v1.md +1 -1
- data/docs/global_products/delivery_notes_v1.md +2 -2
- data/docs/global_products/driver_license_v1.md +1 -1
- data/docs/global_products/expense_receipts_v5.md +26 -25
- data/docs/global_products/financial_document_v1.md +34 -33
- data/docs/global_products/international_id_v2.md +7 -7
- data/docs/global_products/invoice_splitter_v1.md +53 -33
- data/docs/global_products/invoices_v4.md +19 -19
- data/docs/global_products/multi_receipts_detector_v1.md +1 -1
- data/docs/global_products/nutrition_facts_v1.md +1 -1
- data/docs/global_products/passport_v1.md +1 -1
- data/docs/global_products/resume_v1.md +4 -4
- data/docs/global_products/universal.md +1 -1
- data/docs/global_products.md +1 -1
- data/docs/loading_a_document.md +87 -73
- data/docs/localized_products/bank_account_details_v2.md +1 -1
- data/docs/localized_products/bank_check_v1.md +1 -1
- data/docs/localized_products/bank_statement_fr_v2.md +1 -1
- data/docs/localized_products/carte_grise_v1.md +1 -1
- data/docs/localized_products/energy_bill_fra_v1.md +11 -3
- data/docs/localized_products/french_healthcard_v1.md +1 -1
- data/docs/localized_products/idcard_fr_v2.md +6 -6
- data/docs/localized_products/ind_passport_v1.md +5 -5
- data/docs/localized_products/payslip_fra_v3.md +1 -1
- data/docs/localized_products/us_healthcare_cards_v1.md +2 -2
- data/docs/localized_products/us_mail_v3.md +1 -1
- data/docs/localized_products/us_w9_v1.md +1 -1
- data/docs/localized_products.md +1 -1
- data/lib/mindee/client.rb +6 -8
- data/lib/mindee/http/workflow_endpoint.rb +23 -23
- data/lib/mindee/pdf/pdf_extractor.rb +3 -3
- data/lib/mindee/product/delivery_note/delivery_note_v1_document.rb +1 -1
- data/lib/mindee/product/delivery_note/delivery_note_v1_page.rb +1 -1
- data/lib/mindee/product/financial_document/financial_document_v1_document.rb +15 -14
- data/lib/mindee/product/financial_document/financial_document_v1_line_item.rb +1 -1
- data/lib/mindee/product/financial_document/financial_document_v1_line_items.rb +1 -1
- data/lib/mindee/product/fr/energy_bill/energy_bill_v1_document.rb +5 -1
- data/lib/mindee/product/fr/energy_bill/energy_bill_v1_energy_usage.rb +18 -0
- data/lib/mindee/product/fr/energy_bill/energy_bill_v1_energy_usages.rb +4 -0
- data/lib/mindee/product/fr/energy_bill/energy_bill_v1_meter_detail.rb +2 -2
- data/lib/mindee/product/fr/energy_bill/energy_bill_v1_page.rb +1 -1
- data/lib/mindee/product/invoice/invoice_v4_document.rb +14 -14
- data/lib/mindee/product/invoice/invoice_v4_line_item.rb +2 -2
- data/lib/mindee/product/invoice/invoice_v4_line_items.rb +1 -1
- data/lib/mindee/product/invoice_splitter/invoice_splitter_v1.rb +2 -2
- data/lib/mindee/product/invoice_splitter/invoice_splitter_v1_document.rb +38 -42
- data/lib/mindee/product/invoice_splitter/invoice_splitter_v1_invoice_page_group.rb +55 -0
- data/lib/mindee/product/invoice_splitter/invoice_splitter_v1_invoice_page_groups.rb +48 -0
- data/lib/mindee/product/invoice_splitter/invoice_splitter_v1_page.rb +9 -5
- data/lib/mindee/product/receipt/receipt_v5_document.rb +8 -8
- data/lib/mindee/product/receipt/receipt_v5_line_item.rb +1 -1
- data/lib/mindee/product/receipt/receipt_v5_line_items.rb +1 -1
- data/lib/mindee/product/us/healthcare_card/healthcare_card_v1_document.rb +1 -1
- data/lib/mindee/product/us/healthcare_card/healthcare_card_v1_page.rb +1 -1
- data/lib/mindee/product/{eu/license_plate/license_plate_v1.rb → us/us_mail/us_mail_v2.rb} +13 -13
- data/lib/mindee/product/us/us_mail/us_mail_v2_document.rb +105 -0
- data/lib/mindee/product/{eu/license_plate/license_plate_v1_page.rb → us/us_mail/us_mail_v2_page.rb} +8 -8
- data/lib/mindee/product/us/us_mail/us_mail_v2_recipient_address.rb +105 -0
- data/lib/mindee/product/us/us_mail/us_mail_v2_recipient_addresses.rb +63 -0
- data/lib/mindee/product/us/us_mail/us_mail_v2_sender_address.rb +66 -0
- data/lib/mindee/product.rb +5 -5
- data/lib/mindee/version.rb +1 -1
- data/mindee.gemspec +3 -3
- data/sig/custom/net_http.rbs +5 -0
- data/sig/mindee/client.rbs +1 -0
- data/sig/mindee/http/workflow_endpoint.rbs +8 -2
- data/sig/mindee/pdf/pdf_extractor.rbs +1 -1
- data/sig/mindee/product/bill_of_lading/bill_of_lading_v1_carrier_items.rbs +1 -1
- data/sig/mindee/product/financial_document/financial_document_v1_line_items.rbs +1 -1
- data/sig/mindee/product/fr/bank_statement/bank_statement_v2_transactions.rbs +1 -1
- data/sig/mindee/product/fr/energy_bill/energy_bill_v1_energy_usage.rbs +2 -0
- data/sig/mindee/product/fr/energy_bill/energy_bill_v1_energy_usages.rbs +1 -1
- data/sig/mindee/product/fr/energy_bill/energy_bill_v1_subscriptions.rbs +1 -1
- data/sig/mindee/product/fr/energy_bill/energy_bill_v1_taxes_and_contributions.rbs +1 -1
- data/sig/mindee/product/fr/payslip/payslip_v2_salary_details.rbs +1 -1
- data/sig/mindee/product/fr/payslip/payslip_v3_paid_time_offs.rbs +1 -1
- data/sig/mindee/product/fr/payslip/payslip_v3_salary_details.rbs +1 -1
- data/sig/mindee/product/invoice/invoice_v4_line_items.rbs +1 -1
- data/sig/mindee/product/invoice_splitter/invoice_splitter_v1.rbs +1 -4
- data/sig/mindee/product/invoice_splitter/invoice_splitter_v1_document.rbs +5 -9
- data/sig/mindee/product/invoice_splitter/invoice_splitter_v1_invoice_page_group.rbs +14 -0
- data/sig/mindee/product/invoice_splitter/invoice_splitter_v1_invoice_page_groups.rbs +13 -0
- data/sig/mindee/product/invoice_splitter/invoice_splitter_v1_page.rbs +2 -0
- data/sig/mindee/product/nutrition_facts_label/nutrition_facts_label_v1_nutrients.rbs +1 -1
- data/sig/mindee/product/receipt/receipt_v5_line_items.rbs +1 -1
- data/sig/mindee/product/resume/resume_v1_certificates.rbs +1 -1
- data/sig/mindee/product/resume/resume_v1_educations.rbs +1 -1
- data/sig/mindee/product/resume/resume_v1_languages.rbs +1 -1
- data/sig/mindee/product/resume/resume_v1_professional_experiences.rbs +1 -1
- data/sig/mindee/product/resume/resume_v1_social_networks_urls.rbs +1 -1
- data/sig/mindee/product/us/healthcare_card/healthcare_card_v1_copays.rbs +1 -1
- data/sig/mindee/product/us/us_mail/us_mail_v2.rbs +13 -0
- data/sig/mindee/product/us/us_mail/us_mail_v2_document.rbs +20 -0
- data/sig/mindee/product/{eu/license_plate/license_plate_v1_page.rbs → us/us_mail/us_mail_v2_page.rbs} +5 -5
- data/sig/mindee/product/us/us_mail/us_mail_v2_recipient_address.rbs +22 -0
- data/sig/mindee/product/us/us_mail/us_mail_v2_recipient_addresses.rbs +15 -0
- data/sig/mindee/product/us/us_mail/us_mail_v2_sender_address.rbs +18 -0
- data/sig/mindee/product/us/us_mail/us_mail_v3_recipient_addresses.rbs +1 -1
- metadata +23 -12
- data/docs/localized_products/license_plates_v1.md +0 -112
- data/lib/mindee/product/eu/license_plate/license_plate_v1_document.rb +0 -37
- data/sig/mindee/product/eu/license_plate/license_plate_v1.rbs +0 -13
- data/sig/mindee/product/eu/license_plate/license_plate_v1_document.rbs +0 -15
data/sig/custom/net_http.rbs
CHANGED
data/sig/mindee/client.rbs
CHANGED
@@ -3,11 +3,17 @@ module Mindee
|
|
3
3
|
module HTTP
|
4
4
|
class WorkflowEndpoint
|
5
5
|
def api_key: -> String
|
6
|
+
|
6
7
|
def request_timeout: -> Integer
|
8
|
+
|
7
9
|
def url: -> String
|
10
|
+
|
8
11
|
def initialize: (untyped, ?api_key: String) -> String
|
9
|
-
|
10
|
-
def
|
12
|
+
|
13
|
+
def execute_workflow: (Input::Source::LocalInputSource | Input::Source::URLInputSource, WorkflowOptions) -> [untyped, untyped]
|
14
|
+
|
15
|
+
def workflow_execution_req_post: (Input::Source::LocalInputSource | Input::Source::URLInputSource, WorkflowOptions) -> Net::HTTPResponse?
|
16
|
+
|
11
17
|
def check_api_key: -> nil
|
12
18
|
end
|
13
19
|
end
|
@@ -7,7 +7,7 @@ module Mindee
|
|
7
7
|
def page_count: -> untyped
|
8
8
|
def cut_pages: (Array[untyped]) -> untyped
|
9
9
|
def extract_sub_documents: (Array[untyped]) -> Array[untyped]
|
10
|
-
def extract_invoices: (untyped, ?strict:
|
10
|
+
def extract_invoices: (untyped, ?strict: bool) -> Array[untyped]
|
11
11
|
def source_pdf: -> StringIO
|
12
12
|
def filename: -> untyped
|
13
13
|
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module Mindee
|
4
4
|
module Product
|
5
5
|
module BillOfLading
|
6
|
-
class BillOfLadingV1CarrierItems < Array[
|
6
|
+
class BillOfLadingV1CarrierItems < Array[BillOfLadingV1CarrierItem]
|
7
7
|
def initialize: (Array[untyped], Integer?) -> void
|
8
8
|
def self.line_items_separator: (String) -> String
|
9
9
|
def to_s: -> String
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module Mindee
|
4
4
|
module Product
|
5
5
|
module FinancialDocument
|
6
|
-
class FinancialDocumentV1LineItems < Array[
|
6
|
+
class FinancialDocumentV1LineItems < Array[FinancialDocumentV1LineItem]
|
7
7
|
def initialize: (Array[untyped], Integer?) -> void
|
8
8
|
def self.line_items_separator: (String) -> String
|
9
9
|
def to_s: -> String
|
@@ -4,7 +4,7 @@ module Mindee
|
|
4
4
|
module Product
|
5
5
|
module FR
|
6
6
|
module BankStatement
|
7
|
-
class BankStatementV2Transactions < Array[
|
7
|
+
class BankStatementV2Transactions < Array[BankStatementV2Transaction]
|
8
8
|
def initialize: (Array[untyped], Integer?) -> void
|
9
9
|
def self.line_items_separator: (String) -> String
|
10
10
|
def to_s: -> String
|
@@ -4,11 +4,13 @@ module Mindee
|
|
4
4
|
module EnergyBill
|
5
5
|
class EnergyBillV1EnergyUsage < Parsing::Standard::FeatureField
|
6
6
|
def initialize: (Hash[Symbol | String, untyped], Integer?) -> void
|
7
|
+
def consumption: -> Float
|
7
8
|
def description: -> String
|
8
9
|
def end_date: -> String
|
9
10
|
def start_date: -> String
|
10
11
|
def tax_rate: -> Float
|
11
12
|
def total: -> Float
|
13
|
+
def unit: -> String
|
12
14
|
def unit_price: -> Float
|
13
15
|
def printable_values: -> Hash[Symbol | String, untyped]
|
14
16
|
def table_printable_values: -> Hash[Symbol | String, untyped]
|
@@ -4,7 +4,7 @@ module Mindee
|
|
4
4
|
module Product
|
5
5
|
module FR
|
6
6
|
module EnergyBill
|
7
|
-
class EnergyBillV1EnergyUsages < Array[
|
7
|
+
class EnergyBillV1EnergyUsages < Array[EnergyBillV1EnergyUsage]
|
8
8
|
def initialize: (Array[untyped], Integer?) -> void
|
9
9
|
def self.line_items_separator: (String) -> String
|
10
10
|
def to_s: -> String
|
@@ -4,7 +4,7 @@ module Mindee
|
|
4
4
|
module Product
|
5
5
|
module FR
|
6
6
|
module EnergyBill
|
7
|
-
class EnergyBillV1Subscriptions < Array[
|
7
|
+
class EnergyBillV1Subscriptions < Array[EnergyBillV1Subscription]
|
8
8
|
def initialize: (Array[untyped], Integer?) -> void
|
9
9
|
def self.line_items_separator: (String) -> String
|
10
10
|
def to_s: -> String
|
@@ -4,7 +4,7 @@ module Mindee
|
|
4
4
|
module Product
|
5
5
|
module FR
|
6
6
|
module EnergyBill
|
7
|
-
class EnergyBillV1TaxesAndContributions < Array[
|
7
|
+
class EnergyBillV1TaxesAndContributions < Array[EnergyBillV1TaxesAndContribution]
|
8
8
|
def initialize: (Array[untyped], Integer?) -> void
|
9
9
|
def self.line_items_separator: (String) -> String
|
10
10
|
def to_s: -> String
|
@@ -4,7 +4,7 @@ module Mindee
|
|
4
4
|
module Product
|
5
5
|
module FR
|
6
6
|
module Payslip
|
7
|
-
class PayslipV2SalaryDetails < Array[
|
7
|
+
class PayslipV2SalaryDetails < Array[PayslipV2SalaryDetail]
|
8
8
|
def initialize: (Array[untyped], Integer?) -> void
|
9
9
|
def self.line_items_separator: (String) -> String
|
10
10
|
def to_s: -> String
|
@@ -4,7 +4,7 @@ module Mindee
|
|
4
4
|
module Product
|
5
5
|
module FR
|
6
6
|
module Payslip
|
7
|
-
class PayslipV3PaidTimeOffs < Array[
|
7
|
+
class PayslipV3PaidTimeOffs < Array[PayslipV3PaidTimeOff]
|
8
8
|
def initialize: (Array[untyped], Integer?) -> void
|
9
9
|
def self.line_items_separator: (String) -> String
|
10
10
|
def to_s: -> String
|
@@ -4,7 +4,7 @@ module Mindee
|
|
4
4
|
module Product
|
5
5
|
module FR
|
6
6
|
module Payslip
|
7
|
-
class PayslipV3SalaryDetails < Array[
|
7
|
+
class PayslipV3SalaryDetails < Array[PayslipV3SalaryDetail]
|
8
8
|
def initialize: (Array[untyped], Integer?) -> void
|
9
9
|
def self.line_items_separator: (String) -> String
|
10
10
|
def to_s: -> String
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module Mindee
|
4
4
|
module Product
|
5
5
|
module Invoice
|
6
|
-
class InvoiceV4LineItems < Array[
|
6
|
+
class InvoiceV4LineItems < Array[InvoiceV4LineItem]
|
7
7
|
def initialize: (Array[untyped], Integer?) -> void
|
8
8
|
def self.line_items_separator: (String) -> String
|
9
9
|
def to_s: -> String
|
@@ -1,13 +1,10 @@
|
|
1
1
|
# lib/mindee/product/invoice_splitter/invoice_splitter_v1.rb
|
2
|
+
|
2
3
|
module Mindee
|
3
4
|
module Product
|
4
5
|
module InvoiceSplitter
|
5
6
|
class InvoiceSplitterV1 < Parsing::Common::Inference
|
6
7
|
def initialize: (Hash[Symbol | String, untyped]) -> void
|
7
|
-
def endpoint_name: -> String
|
8
|
-
def endpoint_version: -> String
|
9
|
-
def has_async: -> bool
|
10
|
-
def has_sync: -> bool
|
11
8
|
end
|
12
9
|
end
|
13
10
|
end
|
@@ -1,17 +1,13 @@
|
|
1
1
|
# lib/mindee/product/invoice_splitter/invoice_splitter_v1_document.rb
|
2
|
+
|
2
3
|
module Mindee
|
3
4
|
module Product
|
4
5
|
module InvoiceSplitter
|
5
|
-
class InvoiceSplitterV1PageGroup
|
6
|
-
def page_indexes: -> Array[Integer]
|
7
|
-
def confidence: -> Float?
|
8
|
-
def initialize: (Hash[Symbol | String, untyped]) -> void
|
9
|
-
def to_s: -> String
|
10
|
-
end
|
11
6
|
class InvoiceSplitterV1Document < Parsing::Common::Prediction
|
12
|
-
def
|
13
|
-
def
|
14
|
-
def
|
7
|
+
def initialize: (Hash[Symbol | String, untyped], Integer?) -> void
|
8
|
+
def invoice_page_groups: -> (Product::InvoiceSplitter::InvoiceSplitterV1InvoicePageGroups)
|
9
|
+
def invoice_page_groups_separator: (String) -> String
|
10
|
+
def invoice_page_groups_to_s: -> String
|
15
11
|
def to_s: -> String
|
16
12
|
end
|
17
13
|
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
module Mindee
|
2
|
+
module Product
|
3
|
+
module InvoiceSplitter
|
4
|
+
class InvoiceSplitterV1InvoicePageGroup < Parsing::Standard::FeatureField
|
5
|
+
def initialize: (Hash[Symbol | String, untyped], Integer?) -> void
|
6
|
+
def page_indexes: -> Array[Integer]
|
7
|
+
def printable_values: -> Hash[Symbol | String, untyped]
|
8
|
+
def table_printable_values: -> Hash[Symbol | String, untyped]
|
9
|
+
def to_table_line: -> String
|
10
|
+
def to_s: -> String
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Mindee
|
4
|
+
module Product
|
5
|
+
module InvoiceSplitter
|
6
|
+
class InvoiceSplitterV1InvoicePageGroups < Array[InvoiceSplitterV1InvoicePageGroup]
|
7
|
+
def initialize: (Array[untyped], Integer?) -> void
|
8
|
+
def self.line_items_separator: (String) -> String
|
9
|
+
def to_s: -> String
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
@@ -1,4 +1,5 @@
|
|
1
1
|
# lib/mindee/product/invoice_splitter/invoice_splitter_v1_page.rb
|
2
|
+
|
2
3
|
module Mindee
|
3
4
|
module Product
|
4
5
|
module InvoiceSplitter
|
@@ -6,6 +7,7 @@ module Mindee
|
|
6
7
|
def initialize: (Hash[Symbol | String, untyped]) -> void
|
7
8
|
end
|
8
9
|
class InvoiceSplitterV1PagePrediction < InvoiceSplitterV1Document
|
10
|
+
def initialize: (Hash[Symbol | String, untyped], Integer?) -> void
|
9
11
|
def to_s: -> String
|
10
12
|
end
|
11
13
|
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module Mindee
|
4
4
|
module Product
|
5
5
|
module NutritionFactsLabel
|
6
|
-
class NutritionFactsLabelV1Nutrients < Array[
|
6
|
+
class NutritionFactsLabelV1Nutrients < Array[NutritionFactsLabelV1Nutrient]
|
7
7
|
def initialize: (Array[untyped], Integer?) -> void
|
8
8
|
def self.line_items_separator: (String) -> String
|
9
9
|
def to_s: -> String
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module Mindee
|
4
4
|
module Product
|
5
5
|
module Receipt
|
6
|
-
class ReceiptV5LineItems < Array[
|
6
|
+
class ReceiptV5LineItems < Array[ReceiptV5LineItem]
|
7
7
|
def initialize: (Array[untyped], Integer?) -> void
|
8
8
|
def self.line_items_separator: (String) -> String
|
9
9
|
def to_s: -> String
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module Mindee
|
4
4
|
module Product
|
5
5
|
module Resume
|
6
|
-
class ResumeV1Certificates < Array[
|
6
|
+
class ResumeV1Certificates < Array[ResumeV1Certificate]
|
7
7
|
def initialize: (Array[untyped], Integer?) -> void
|
8
8
|
def self.line_items_separator: (String) -> String
|
9
9
|
def to_s: -> String
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module Mindee
|
4
4
|
module Product
|
5
5
|
module Resume
|
6
|
-
class ResumeV1Educations < Array[
|
6
|
+
class ResumeV1Educations < Array[ResumeV1Education]
|
7
7
|
def initialize: (Array[untyped], Integer?) -> void
|
8
8
|
def self.line_items_separator: (String) -> String
|
9
9
|
def to_s: -> String
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module Mindee
|
4
4
|
module Product
|
5
5
|
module Resume
|
6
|
-
class ResumeV1Languages < Array[
|
6
|
+
class ResumeV1Languages < Array[ResumeV1Language]
|
7
7
|
def initialize: (Array[untyped], Integer?) -> void
|
8
8
|
def self.line_items_separator: (String) -> String
|
9
9
|
def to_s: -> String
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module Mindee
|
4
4
|
module Product
|
5
5
|
module Resume
|
6
|
-
class ResumeV1ProfessionalExperiences < Array[
|
6
|
+
class ResumeV1ProfessionalExperiences < Array[ResumeV1ProfessionalExperience]
|
7
7
|
def initialize: (Array[untyped], Integer?) -> void
|
8
8
|
def self.line_items_separator: (String) -> String
|
9
9
|
def to_s: -> String
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module Mindee
|
4
4
|
module Product
|
5
5
|
module Resume
|
6
|
-
class ResumeV1SocialNetworksUrls < Array[
|
6
|
+
class ResumeV1SocialNetworksUrls < Array[ResumeV1SocialNetworksUrl]
|
7
7
|
def initialize: (Array[untyped], Integer?) -> void
|
8
8
|
def self.line_items_separator: (String) -> String
|
9
9
|
def to_s: -> String
|
@@ -4,7 +4,7 @@ module Mindee
|
|
4
4
|
module Product
|
5
5
|
module US
|
6
6
|
module HealthcareCard
|
7
|
-
class HealthcareCardV1Copays < Array[
|
7
|
+
class HealthcareCardV1Copays < Array[HealthcareCardV1Copay]
|
8
8
|
def initialize: (Array[untyped], Integer?) -> void
|
9
9
|
def self.line_items_separator: (String) -> String
|
10
10
|
def to_s: -> String
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# lib/mindee/product/../us_mail/us_mail_v2_document.rb
|
2
|
+
|
3
|
+
module Mindee
|
4
|
+
module Product
|
5
|
+
module US
|
6
|
+
module UsMail
|
7
|
+
class UsMailV2Document < Parsing::Common::Prediction
|
8
|
+
def initialize: (Hash[Symbol | String, untyped], Integer?) -> void
|
9
|
+
def recipient_addresses: -> (Product::US::UsMail::UsMailV2RecipientAddresses)
|
10
|
+
def recipient_names: -> (Array[Parsing::Standard::StringField])
|
11
|
+
def sender_address: -> (Product::US::UsMail::UsMailV2SenderAddress)
|
12
|
+
def sender_name: -> (Parsing::Standard::StringField)
|
13
|
+
def recipient_addresses_separator: (String) -> String
|
14
|
+
def recipient_addresses_to_s: -> String
|
15
|
+
def to_s: -> String
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
@@ -1,13 +1,13 @@
|
|
1
|
-
# lib/mindee/product/../
|
1
|
+
# lib/mindee/product/../us_mail/us_mail_v2_page.rb
|
2
2
|
|
3
3
|
module Mindee
|
4
4
|
module Product
|
5
|
-
module
|
6
|
-
module
|
7
|
-
class
|
5
|
+
module US
|
6
|
+
module UsMail
|
7
|
+
class UsMailV2Page < Parsing::Common::Page
|
8
8
|
def initialize: (Hash[Symbol | String, untyped]) -> void
|
9
9
|
end
|
10
|
-
class
|
10
|
+
class UsMailV2PagePrediction < UsMailV2Document
|
11
11
|
def initialize: (Hash[Symbol | String, untyped], Integer?) -> void
|
12
12
|
def to_s: -> String
|
13
13
|
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
module Mindee
|
2
|
+
module Product
|
3
|
+
module US
|
4
|
+
module UsMail
|
5
|
+
class UsMailV2RecipientAddress < Parsing::Standard::FeatureField
|
6
|
+
def initialize: (Hash[Symbol | String, untyped], Integer?) -> void
|
7
|
+
def city: -> String
|
8
|
+
def complete: -> String
|
9
|
+
def is_address_change: -> bool
|
10
|
+
def postal_code: -> String
|
11
|
+
def private_mailbox_number: -> String
|
12
|
+
def state: -> String
|
13
|
+
def street: -> String
|
14
|
+
def printable_values: -> Hash[Symbol | String, untyped]
|
15
|
+
def table_printable_values: -> Hash[Symbol | String, untyped]
|
16
|
+
def to_table_line: -> String
|
17
|
+
def to_s: -> String
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Mindee
|
4
|
+
module Product
|
5
|
+
module US
|
6
|
+
module UsMail
|
7
|
+
class UsMailV2RecipientAddresses < Array[UsMailV2RecipientAddress]
|
8
|
+
def initialize: (Array[untyped], Integer?) -> void
|
9
|
+
def self.line_items_separator: (String) -> String
|
10
|
+
def to_s: -> String
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
module Mindee
|
2
|
+
module Product
|
3
|
+
module US
|
4
|
+
module UsMail
|
5
|
+
class UsMailV2SenderAddress < Parsing::Standard::FeatureField
|
6
|
+
def initialize: (Hash[Symbol | String, untyped], Integer?) -> void
|
7
|
+
def city: -> String
|
8
|
+
def complete: -> String
|
9
|
+
def postal_code: -> String
|
10
|
+
def state: -> String
|
11
|
+
def street: -> String
|
12
|
+
def printable_values: -> Hash[Symbol | String, untyped]
|
13
|
+
def to_s: -> String
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -4,7 +4,7 @@ module Mindee
|
|
4
4
|
module Product
|
5
5
|
module US
|
6
6
|
module UsMail
|
7
|
-
class UsMailV3RecipientAddresses < Array[
|
7
|
+
class UsMailV3RecipientAddresses < Array[UsMailV3RecipientAddress]
|
8
8
|
def initialize: (Array[untyped], Integer?) -> void
|
9
9
|
def self.line_items_separator: (String) -> String
|
10
10
|
def to_s: -> String
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mindee
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
4
|
+
version: 4.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mindee, SA
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-03-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: base64
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.1
|
19
|
+
version: '0.1'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.1
|
26
|
+
version: '0.1'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: marcel
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -206,6 +206,7 @@ files:
|
|
206
206
|
- README.md
|
207
207
|
- Rakefile
|
208
208
|
- Steepfile
|
209
|
+
- bin/cli_products.rb
|
209
210
|
- bin/console
|
210
211
|
- bin/mindee.rb
|
211
212
|
- docs/advanced_file_operations.md
|
@@ -235,7 +236,6 @@ files:
|
|
235
236
|
- docs/code_samples/invoice_splitter_v1_async.txt
|
236
237
|
- docs/code_samples/invoices_v4.txt
|
237
238
|
- docs/code_samples/invoices_v4_async.txt
|
238
|
-
- docs/code_samples/license_plates_v1.txt
|
239
239
|
- docs/code_samples/multi_receipts_detector_v1.txt
|
240
240
|
- docs/code_samples/nutrition_facts_v1_async.txt
|
241
241
|
- docs/code_samples/passport_v1.txt
|
@@ -243,8 +243,10 @@ files:
|
|
243
243
|
- docs/code_samples/payslip_fra_v3_async.txt
|
244
244
|
- docs/code_samples/resume_v1_async.txt
|
245
245
|
- docs/code_samples/us_healthcare_cards_v1_async.txt
|
246
|
+
- docs/code_samples/us_mail_v2_async.txt
|
246
247
|
- docs/code_samples/us_mail_v3_async.txt
|
247
248
|
- docs/code_samples/us_w9_v1.txt
|
249
|
+
- docs/code_samples/workflow_execution.txt
|
248
250
|
- docs/getting_started.md
|
249
251
|
- docs/global_products.md
|
250
252
|
- docs/global_products/barcode_reader_v1.md
|
@@ -273,7 +275,6 @@ files:
|
|
273
275
|
- docs/localized_products/french_healthcard_v1.md
|
274
276
|
- docs/localized_products/idcard_fr_v2.md
|
275
277
|
- docs/localized_products/ind_passport_v1.md
|
276
|
-
- docs/localized_products/license_plates_v1.md
|
277
278
|
- docs/localized_products/payslip_fra_v3.md
|
278
279
|
- docs/localized_products/us_healthcare_cards_v1.md
|
279
280
|
- docs/localized_products/us_mail_v3.md
|
@@ -387,9 +388,6 @@ files:
|
|
387
388
|
- lib/mindee/product/driver_license/driver_license_v1.rb
|
388
389
|
- lib/mindee/product/driver_license/driver_license_v1_document.rb
|
389
390
|
- lib/mindee/product/driver_license/driver_license_v1_page.rb
|
390
|
-
- lib/mindee/product/eu/license_plate/license_plate_v1.rb
|
391
|
-
- lib/mindee/product/eu/license_plate/license_plate_v1_document.rb
|
392
|
-
- lib/mindee/product/eu/license_plate/license_plate_v1_page.rb
|
393
391
|
- lib/mindee/product/financial_document/financial_document_v1.rb
|
394
392
|
- lib/mindee/product/financial_document/financial_document_v1_document.rb
|
395
393
|
- lib/mindee/product/financial_document/financial_document_v1_line_item.rb
|
@@ -469,6 +467,8 @@ files:
|
|
469
467
|
- lib/mindee/product/invoice/invoice_v4_page.rb
|
470
468
|
- lib/mindee/product/invoice_splitter/invoice_splitter_v1.rb
|
471
469
|
- lib/mindee/product/invoice_splitter/invoice_splitter_v1_document.rb
|
470
|
+
- lib/mindee/product/invoice_splitter/invoice_splitter_v1_invoice_page_group.rb
|
471
|
+
- lib/mindee/product/invoice_splitter/invoice_splitter_v1_invoice_page_groups.rb
|
472
472
|
- lib/mindee/product/invoice_splitter/invoice_splitter_v1_page.rb
|
473
473
|
- lib/mindee/product/multi_receipts_detector/multi_receipts_detector_v1.rb
|
474
474
|
- lib/mindee/product/multi_receipts_detector/multi_receipts_detector_v1_document.rb
|
@@ -523,6 +523,12 @@ files:
|
|
523
523
|
- lib/mindee/product/us/healthcare_card/healthcare_card_v1_copays.rb
|
524
524
|
- lib/mindee/product/us/healthcare_card/healthcare_card_v1_document.rb
|
525
525
|
- lib/mindee/product/us/healthcare_card/healthcare_card_v1_page.rb
|
526
|
+
- lib/mindee/product/us/us_mail/us_mail_v2.rb
|
527
|
+
- lib/mindee/product/us/us_mail/us_mail_v2_document.rb
|
528
|
+
- lib/mindee/product/us/us_mail/us_mail_v2_page.rb
|
529
|
+
- lib/mindee/product/us/us_mail/us_mail_v2_recipient_address.rb
|
530
|
+
- lib/mindee/product/us/us_mail/us_mail_v2_recipient_addresses.rb
|
531
|
+
- lib/mindee/product/us/us_mail/us_mail_v2_sender_address.rb
|
526
532
|
- lib/mindee/product/us/us_mail/us_mail_v3.rb
|
527
533
|
- lib/mindee/product/us/us_mail/us_mail_v3_document.rb
|
528
534
|
- lib/mindee/product/us/us_mail/us_mail_v3_page.rb
|
@@ -627,9 +633,6 @@ files:
|
|
627
633
|
- sig/mindee/product/driver_license/driver_license_v1.rbs
|
628
634
|
- sig/mindee/product/driver_license/driver_license_v1_document.rbs
|
629
635
|
- sig/mindee/product/driver_license/driver_license_v1_page.rbs
|
630
|
-
- sig/mindee/product/eu/license_plate/license_plate_v1.rbs
|
631
|
-
- sig/mindee/product/eu/license_plate/license_plate_v1_document.rbs
|
632
|
-
- sig/mindee/product/eu/license_plate/license_plate_v1_page.rbs
|
633
636
|
- sig/mindee/product/financial_document/financial_document_v1.rbs
|
634
637
|
- sig/mindee/product/financial_document/financial_document_v1_document.rbs
|
635
638
|
- sig/mindee/product/financial_document/financial_document_v1_line_item.rbs
|
@@ -709,6 +712,8 @@ files:
|
|
709
712
|
- sig/mindee/product/invoice/invoice_v4_page.rbs
|
710
713
|
- sig/mindee/product/invoice_splitter/invoice_splitter_v1.rbs
|
711
714
|
- sig/mindee/product/invoice_splitter/invoice_splitter_v1_document.rbs
|
715
|
+
- sig/mindee/product/invoice_splitter/invoice_splitter_v1_invoice_page_group.rbs
|
716
|
+
- sig/mindee/product/invoice_splitter/invoice_splitter_v1_invoice_page_groups.rbs
|
712
717
|
- sig/mindee/product/invoice_splitter/invoice_splitter_v1_page.rbs
|
713
718
|
- sig/mindee/product/multi_receipts_detector/multi_receipts_detector_v1.rbs
|
714
719
|
- sig/mindee/product/multi_receipts_detector/multi_receipts_detector_v1_document.rbs
|
@@ -763,6 +768,12 @@ files:
|
|
763
768
|
- sig/mindee/product/us/healthcare_card/healthcare_card_v1_copays.rbs
|
764
769
|
- sig/mindee/product/us/healthcare_card/healthcare_card_v1_document.rbs
|
765
770
|
- sig/mindee/product/us/healthcare_card/healthcare_card_v1_page.rbs
|
771
|
+
- sig/mindee/product/us/us_mail/us_mail_v2.rbs
|
772
|
+
- sig/mindee/product/us/us_mail/us_mail_v2_document.rbs
|
773
|
+
- sig/mindee/product/us/us_mail/us_mail_v2_page.rbs
|
774
|
+
- sig/mindee/product/us/us_mail/us_mail_v2_recipient_address.rbs
|
775
|
+
- sig/mindee/product/us/us_mail/us_mail_v2_recipient_addresses.rbs
|
776
|
+
- sig/mindee/product/us/us_mail/us_mail_v2_sender_address.rbs
|
766
777
|
- sig/mindee/product/us/us_mail/us_mail_v3.rbs
|
767
778
|
- sig/mindee/product/us/us_mail/us_mail_v3_document.rbs
|
768
779
|
- sig/mindee/product/us/us_mail/us_mail_v3_page.rbs
|