mindee 4.0.0 → 4.1.2

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.
Files changed (116) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +18 -0
  3. data/bin/cli_products.rb +172 -0
  4. data/bin/mindee.rb +6 -121
  5. data/docs/advanced_file_operations.md +7 -9
  6. data/docs/code_samples/invoice_splitter_v1_async.txt +2 -1
  7. data/docs/code_samples/{license_plates_v1.txt → us_mail_v2_async.txt} +1 -1
  8. data/docs/code_samples/workflow_execution.txt +28 -0
  9. data/docs/getting_started.md +1 -1
  10. data/docs/global_products/barcode_reader_v1.md +1 -1
  11. data/docs/global_products/bill_of_lading_v1.md +1 -1
  12. data/docs/global_products/business_card_v1.md +1 -1
  13. data/docs/global_products/cropper_v1.md +1 -1
  14. data/docs/global_products/delivery_notes_v1.md +2 -2
  15. data/docs/global_products/driver_license_v1.md +1 -1
  16. data/docs/global_products/expense_receipts_v5.md +26 -25
  17. data/docs/global_products/financial_document_v1.md +34 -33
  18. data/docs/global_products/international_id_v2.md +7 -7
  19. data/docs/global_products/invoice_splitter_v1.md +53 -33
  20. data/docs/global_products/invoices_v4.md +19 -19
  21. data/docs/global_products/multi_receipts_detector_v1.md +1 -1
  22. data/docs/global_products/nutrition_facts_v1.md +1 -1
  23. data/docs/global_products/passport_v1.md +1 -1
  24. data/docs/global_products/resume_v1.md +4 -4
  25. data/docs/global_products/universal.md +1 -1
  26. data/docs/global_products.md +1 -1
  27. data/docs/loading_a_document.md +87 -73
  28. data/docs/localized_products/bank_account_details_v2.md +1 -1
  29. data/docs/localized_products/bank_check_v1.md +1 -1
  30. data/docs/localized_products/bank_statement_fr_v2.md +1 -1
  31. data/docs/localized_products/carte_grise_v1.md +1 -1
  32. data/docs/localized_products/energy_bill_fra_v1.md +11 -3
  33. data/docs/localized_products/french_healthcard_v1.md +1 -1
  34. data/docs/localized_products/idcard_fr_v2.md +6 -6
  35. data/docs/localized_products/ind_passport_v1.md +5 -5
  36. data/docs/localized_products/payslip_fra_v3.md +1 -1
  37. data/docs/localized_products/us_healthcare_cards_v1.md +2 -2
  38. data/docs/localized_products/us_mail_v3.md +1 -1
  39. data/docs/localized_products/us_w9_v1.md +1 -1
  40. data/docs/localized_products.md +1 -1
  41. data/lib/mindee/client.rb +6 -8
  42. data/lib/mindee/geometry/polygon.rb +1 -1
  43. data/lib/mindee/http/workflow_endpoint.rb +23 -23
  44. data/lib/mindee/pdf/pdf_extractor.rb +3 -3
  45. data/lib/mindee/product/delivery_note/delivery_note_v1_document.rb +1 -1
  46. data/lib/mindee/product/delivery_note/delivery_note_v1_page.rb +1 -1
  47. data/lib/mindee/product/financial_document/financial_document_v1_document.rb +15 -14
  48. data/lib/mindee/product/financial_document/financial_document_v1_line_item.rb +1 -1
  49. data/lib/mindee/product/financial_document/financial_document_v1_line_items.rb +1 -1
  50. data/lib/mindee/product/fr/energy_bill/energy_bill_v1_document.rb +5 -1
  51. data/lib/mindee/product/fr/energy_bill/energy_bill_v1_energy_usage.rb +18 -0
  52. data/lib/mindee/product/fr/energy_bill/energy_bill_v1_energy_usages.rb +4 -0
  53. data/lib/mindee/product/fr/energy_bill/energy_bill_v1_meter_detail.rb +2 -2
  54. data/lib/mindee/product/fr/energy_bill/energy_bill_v1_page.rb +1 -1
  55. data/lib/mindee/product/invoice/invoice_v4_document.rb +14 -14
  56. data/lib/mindee/product/invoice/invoice_v4_line_item.rb +2 -2
  57. data/lib/mindee/product/invoice/invoice_v4_line_items.rb +1 -1
  58. data/lib/mindee/product/invoice_splitter/invoice_splitter_v1.rb +2 -2
  59. data/lib/mindee/product/invoice_splitter/invoice_splitter_v1_document.rb +38 -42
  60. data/lib/mindee/product/invoice_splitter/invoice_splitter_v1_invoice_page_group.rb +55 -0
  61. data/lib/mindee/product/invoice_splitter/invoice_splitter_v1_invoice_page_groups.rb +48 -0
  62. data/lib/mindee/product/invoice_splitter/invoice_splitter_v1_page.rb +9 -5
  63. data/lib/mindee/product/receipt/receipt_v5_document.rb +8 -8
  64. data/lib/mindee/product/receipt/receipt_v5_line_item.rb +1 -1
  65. data/lib/mindee/product/receipt/receipt_v5_line_items.rb +1 -1
  66. data/lib/mindee/product/us/healthcare_card/healthcare_card_v1_document.rb +1 -1
  67. data/lib/mindee/product/us/healthcare_card/healthcare_card_v1_page.rb +1 -1
  68. data/lib/mindee/product/{eu/license_plate/license_plate_v1.rb → us/us_mail/us_mail_v2.rb} +13 -13
  69. data/lib/mindee/product/us/us_mail/us_mail_v2_document.rb +105 -0
  70. data/lib/mindee/product/{eu/license_plate/license_plate_v1_page.rb → us/us_mail/us_mail_v2_page.rb} +8 -8
  71. data/lib/mindee/product/us/us_mail/us_mail_v2_recipient_address.rb +105 -0
  72. data/lib/mindee/product/us/us_mail/us_mail_v2_recipient_addresses.rb +63 -0
  73. data/lib/mindee/product/us/us_mail/us_mail_v2_sender_address.rb +66 -0
  74. data/lib/mindee/product.rb +5 -5
  75. data/lib/mindee/version.rb +1 -1
  76. data/mindee.gemspec +11 -11
  77. data/sig/custom/net_http.rbs +5 -0
  78. data/sig/mindee/client.rbs +1 -0
  79. data/sig/mindee/http/workflow_endpoint.rbs +8 -2
  80. data/sig/mindee/pdf/pdf_extractor.rbs +1 -1
  81. data/sig/mindee/product/bill_of_lading/bill_of_lading_v1_carrier_items.rbs +1 -1
  82. data/sig/mindee/product/financial_document/financial_document_v1_line_items.rbs +1 -1
  83. data/sig/mindee/product/fr/bank_statement/bank_statement_v2_transactions.rbs +1 -1
  84. data/sig/mindee/product/fr/energy_bill/energy_bill_v1_energy_usage.rbs +2 -0
  85. data/sig/mindee/product/fr/energy_bill/energy_bill_v1_energy_usages.rbs +1 -1
  86. data/sig/mindee/product/fr/energy_bill/energy_bill_v1_subscriptions.rbs +1 -1
  87. data/sig/mindee/product/fr/energy_bill/energy_bill_v1_taxes_and_contributions.rbs +1 -1
  88. data/sig/mindee/product/fr/payslip/payslip_v2_salary_details.rbs +1 -1
  89. data/sig/mindee/product/fr/payslip/payslip_v3_paid_time_offs.rbs +1 -1
  90. data/sig/mindee/product/fr/payslip/payslip_v3_salary_details.rbs +1 -1
  91. data/sig/mindee/product/invoice/invoice_v4_line_items.rbs +1 -1
  92. data/sig/mindee/product/invoice_splitter/invoice_splitter_v1.rbs +1 -4
  93. data/sig/mindee/product/invoice_splitter/invoice_splitter_v1_document.rbs +5 -9
  94. data/sig/mindee/product/invoice_splitter/invoice_splitter_v1_invoice_page_group.rbs +14 -0
  95. data/sig/mindee/product/invoice_splitter/invoice_splitter_v1_invoice_page_groups.rbs +13 -0
  96. data/sig/mindee/product/invoice_splitter/invoice_splitter_v1_page.rbs +2 -0
  97. data/sig/mindee/product/nutrition_facts_label/nutrition_facts_label_v1_nutrients.rbs +1 -1
  98. data/sig/mindee/product/receipt/receipt_v5_line_items.rbs +1 -1
  99. data/sig/mindee/product/resume/resume_v1_certificates.rbs +1 -1
  100. data/sig/mindee/product/resume/resume_v1_educations.rbs +1 -1
  101. data/sig/mindee/product/resume/resume_v1_languages.rbs +1 -1
  102. data/sig/mindee/product/resume/resume_v1_professional_experiences.rbs +1 -1
  103. data/sig/mindee/product/resume/resume_v1_social_networks_urls.rbs +1 -1
  104. data/sig/mindee/product/us/healthcare_card/healthcare_card_v1_copays.rbs +1 -1
  105. data/sig/mindee/product/us/us_mail/us_mail_v2.rbs +13 -0
  106. data/sig/mindee/product/us/us_mail/us_mail_v2_document.rbs +20 -0
  107. data/sig/mindee/product/{eu/license_plate/license_plate_v1_page.rbs → us/us_mail/us_mail_v2_page.rbs} +5 -5
  108. data/sig/mindee/product/us/us_mail/us_mail_v2_recipient_address.rbs +22 -0
  109. data/sig/mindee/product/us/us_mail/us_mail_v2_recipient_addresses.rbs +15 -0
  110. data/sig/mindee/product/us/us_mail/us_mail_v2_sender_address.rbs +18 -0
  111. data/sig/mindee/product/us/us_mail/us_mail_v3_recipient_addresses.rbs +1 -1
  112. metadata +39 -28
  113. data/docs/localized_products/license_plates_v1.md +0 -112
  114. data/lib/mindee/product/eu/license_plate/license_plate_v1_document.rb +0 -37
  115. data/sig/mindee/product/eu/license_plate/license_plate_v1.rbs +0 -13
  116. data/sig/mindee/product/eu/license_plate/license_plate_v1_document.rbs +0 -15
data/mindee.gemspec CHANGED
@@ -21,23 +21,23 @@ Gem::Specification.new do |spec|
21
21
  spec.files = Dir.chdir(File.expand_path(__dir__)) do
22
22
  `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(.github|spec|features)/}) }
23
23
  end
24
- spec.bindir = 'bin'
25
- spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
24
+ spec.bindir = 'bin'
25
+ spec.executables = Dir['bin/*'].map { |f| File.basename(f) }.reject { |f| f == 'cli_products.rb' }
26
26
  spec.require_paths = ['lib']
27
27
 
28
28
  spec.required_ruby_version = Gem::Requirement.new('>= 3.0')
29
29
 
30
- spec.add_dependency 'base64', '~> 0.1.0'
31
- spec.add_dependency 'marcel', '~> 1.0.4'
30
+ spec.add_dependency 'base64', '~> 0.1'
31
+ spec.add_dependency 'marcel', '~> 1.0'
32
32
  spec.add_dependency 'mini_magick', '>= 4', '< 6'
33
- spec.add_dependency 'origamindee', '~> 4.0.0'
34
- spec.add_dependency 'pdf-reader', '~> 2.13.0'
33
+ spec.add_dependency 'origamindee', '~> 4.0'
34
+ spec.add_dependency 'pdf-reader', '~> 2.14'
35
35
 
36
36
  spec.add_development_dependency 'prism', '~> 1.3'
37
- spec.add_development_dependency 'rake', '~> 13.2.1'
37
+ spec.add_development_dependency 'rake', '~> 13.2'
38
38
  spec.add_development_dependency 'rbs', '~> 3.6'
39
- spec.add_development_dependency 'rspec', '~> 3.13.0'
40
- spec.add_development_dependency 'rubocop', '~> 1.70.0'
41
- spec.add_development_dependency 'steep', '~> 1.7.1'
42
- spec.add_development_dependency 'yard', '~> 0.9.37'
39
+ spec.add_development_dependency 'rspec', '~> 3.13'
40
+ spec.add_development_dependency 'rubocop', '~> 1.70'
41
+ spec.add_development_dependency 'steep', '~> 1.7'
42
+ spec.add_development_dependency 'yard', '~> 0.9'
43
43
  end
@@ -26,6 +26,11 @@ module Net
26
26
  end
27
27
  end
28
28
 
29
+ class HTTPResponse
30
+ def self.body: -> untyped
31
+ def body: -> untyped
32
+ end
33
+
29
34
  class HTTPRedirection
30
35
  def []: (untyped) -> untyped
31
36
  def body: -> untyped
@@ -28,6 +28,7 @@ module Mindee
28
28
  attr_accessor document_alias: (String?)
29
29
  attr_accessor priority: (Symbol?)
30
30
  attr_accessor full_text: bool
31
+ attr_accessor rag: bool?
31
32
  attr_accessor public_url: (String?)
32
33
  attr_accessor page_options: (PageOptions)
33
34
 
@@ -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
- def execute_workflow: (untyped, untyped, untyped, untyped, untyped) -> [untyped, untyped]
10
- def workflow_execution_req_post: (untyped, untyped, untyped, untyped, untyped) -> untyped
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: false) -> Array[untyped]
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[untyped]
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[untyped]
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[untyped]
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[untyped]
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[untyped]
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[untyped]
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[untyped]
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[untyped]
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[untyped]
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[untyped]
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 invoice_page_groups: -> Array[InvoiceSplitterV1PageGroup]
13
- def initialize: (Hash[Symbol | String, untyped], ?Integer?) -> void
14
- def construct_invoice_page_groups_from_prediction: (Hash[Symbol | String, untyped]) -> nil
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[untyped]
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[untyped]
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[untyped]
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[untyped]
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[untyped]
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[untyped]
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[untyped]
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[untyped]
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,13 @@
1
+ # lib/mindee/product/../us_mail/us_mail_v2.rb
2
+
3
+ module Mindee
4
+ module Product
5
+ module US
6
+ module UsMail
7
+ class UsMailV2 < Parsing::Common::Inference
8
+ def initialize: (Hash[Symbol | String, untyped]) -> void
9
+ end
10
+ end
11
+ end
12
+ end
13
+ end
@@ -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/../license_plate/license_plate_v1_page.rb
1
+ # lib/mindee/product/../us_mail/us_mail_v2_page.rb
2
2
 
3
3
  module Mindee
4
4
  module Product
5
- module EU
6
- module LicensePlate
7
- class LicensePlateV1Page < Parsing::Common::Page
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 LicensePlateV1PagePrediction < LicensePlateV1Document
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[untyped]
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