mindee 4.36.3 → 5.0.0-alpha1

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 (1081) hide show
  1. package/bin/mindeeV1.js +3 -0
  2. package/bin/mindeeV2.d.ts +2 -0
  3. package/bin/mindeeV2.js +3 -0
  4. package/package.json +29 -19
  5. package/src/dependency/index.d.ts +1 -0
  6. package/src/dependency/index.js +1 -0
  7. package/src/dependency/optionalLoader.d.ts +6 -0
  8. package/src/dependency/optionalLoader.js +20 -0
  9. package/src/errors/handler.js +4 -8
  10. package/src/errors/index.d.ts +1 -1
  11. package/src/errors/index.js +1 -6
  12. package/src/errors/mindeeError.d.ts +6 -15
  13. package/src/errors/mindeeError.js +13 -30
  14. package/src/geometry/boundingBox.d.ts +2 -2
  15. package/src/geometry/boundingBox.js +3 -8
  16. package/src/geometry/boundingBoxUtils.d.ts +2 -2
  17. package/src/geometry/boundingBoxUtils.js +10 -17
  18. package/src/geometry/index.d.ts +6 -6
  19. package/src/geometry/index.js +4 -24
  20. package/src/geometry/minMax.js +1 -2
  21. package/src/geometry/point.js +1 -2
  22. package/src/geometry/polygon.d.ts +2 -2
  23. package/src/geometry/polygon.js +7 -11
  24. package/src/geometry/polygonUtils.d.ts +2 -2
  25. package/src/geometry/polygonUtils.js +14 -30
  26. package/src/http/apiCore.d.ts +30 -0
  27. package/src/http/apiCore.js +53 -0
  28. package/src/http/baseSettings.d.ts +5 -1
  29. package/src/http/baseSettings.js +15 -44
  30. package/src/http/index.d.ts +3 -6
  31. package/src/http/index.js +2 -24
  32. package/src/image/extractedImage.d.ts +29 -0
  33. package/src/image/extractedImage.js +99 -0
  34. package/src/image/imageCompressor.js +32 -0
  35. package/src/image/imageExtractor.d.ts +9 -0
  36. package/src/image/imageExtractor.js +93 -0
  37. package/src/image/index.d.ts +3 -0
  38. package/src/image/index.js +3 -0
  39. package/src/index.d.ts +7 -8
  40. package/src/index.js +7 -66
  41. package/src/input/base64Input.d.ts +12 -0
  42. package/src/input/base64Input.js +24 -0
  43. package/src/input/bufferInput.d.ts +10 -0
  44. package/src/input/bufferInput.js +20 -0
  45. package/src/input/bytesInput.d.ts +12 -0
  46. package/src/input/bytesInput.js +23 -0
  47. package/src/input/index.d.ts +11 -4
  48. package/src/input/index.js +9 -26
  49. package/src/input/inputSource.js +18 -0
  50. package/src/input/localInputSource.d.ts +55 -0
  51. package/src/input/localInputSource.js +146 -0
  52. package/src/input/pageOptions.d.ts +2 -2
  53. package/src/input/pageOptions.js +3 -5
  54. package/src/input/pathInput.d.ts +11 -0
  55. package/src/input/pathInput.js +24 -0
  56. package/src/input/streamInput.d.ts +14 -0
  57. package/src/input/streamInput.js +55 -0
  58. package/src/input/urlInput.d.ts +35 -0
  59. package/src/input/urlInput.js +95 -0
  60. package/src/logger.js +9 -12
  61. package/src/parsing/dateParser.js +9 -0
  62. package/src/parsing/index.d.ts +2 -5
  63. package/src/parsing/index.js +1 -41
  64. package/src/parsing/localResponseBase.d.ts +34 -0
  65. package/src/parsing/localResponseBase.js +91 -0
  66. package/src/parsing/stringDict.js +1 -0
  67. package/src/pdf/index.d.ts +4 -3
  68. package/src/pdf/index.js +3 -10
  69. package/src/pdf/pdfCompressor.js +41 -66
  70. package/src/pdf/pdfOperation.d.ts +4 -4
  71. package/src/pdf/pdfOperation.js +28 -22
  72. package/src/pdf/pdfUtils.js +9 -11
  73. package/src/v1/cli.js +201 -0
  74. package/src/v1/client.d.ts +215 -0
  75. package/src/v1/client.js +277 -0
  76. package/src/v1/extraction/index.d.ts +2 -0
  77. package/src/v1/extraction/index.js +2 -0
  78. package/src/v1/extraction/invoiceSplitterExtractor/extractedInvoiceSplitterImage.d.ts +9 -0
  79. package/src/v1/extraction/invoiceSplitterExtractor/extractedInvoiceSplitterImage.js +11 -0
  80. package/src/v1/extraction/invoiceSplitterExtractor/index.d.ts +2 -0
  81. package/src/v1/extraction/invoiceSplitterExtractor/index.js +2 -0
  82. package/src/v1/extraction/invoiceSplitterExtractor/invoiceSplitterExtractor.d.ts +13 -0
  83. package/src/v1/extraction/invoiceSplitterExtractor/invoiceSplitterExtractor.js +83 -0
  84. package/src/v1/extraction/multiReceiptsExtractor/extractedMultiReceiptImage.d.ts +9 -0
  85. package/src/v1/extraction/multiReceiptsExtractor/extractedMultiReceiptImage.js +11 -0
  86. package/src/v1/extraction/multiReceiptsExtractor/index.d.ts +2 -0
  87. package/src/v1/extraction/multiReceiptsExtractor/index.js +2 -0
  88. package/src/v1/extraction/multiReceiptsExtractor/multiReceiptsExtractor.d.ts +11 -0
  89. package/src/v1/extraction/multiReceiptsExtractor/multiReceiptsExtractor.js +81 -0
  90. package/src/v1/http/apiSettingsV1.d.ts +8 -0
  91. package/src/v1/http/apiSettingsV1.js +37 -0
  92. package/src/v1/http/endpoint.d.ts +69 -0
  93. package/src/v1/http/endpoint.js +229 -0
  94. package/src/v1/http/errors.d.ts +67 -0
  95. package/src/v1/http/errors.js +198 -0
  96. package/src/v1/http/httpParams.d.ts +19 -0
  97. package/src/v1/http/httpParams.js +1 -0
  98. package/src/v1/http/index.d.ts +5 -0
  99. package/src/v1/http/index.js +4 -0
  100. package/src/v1/http/responseValidation.d.ts +23 -0
  101. package/src/v1/http/responseValidation.js +73 -0
  102. package/src/v1/http/workflowEndpoint.d.ts +34 -0
  103. package/src/v1/http/workflowEndpoint.js +89 -0
  104. package/src/v1/index.d.ts +8 -0
  105. package/src/v1/index.js +7 -0
  106. package/src/v1/parsing/common/apiRequest.d.ts +19 -0
  107. package/src/v1/parsing/common/apiRequest.js +14 -0
  108. package/src/v1/parsing/common/apiResponse.d.ts +21 -0
  109. package/src/v1/parsing/common/apiResponse.js +21 -0
  110. package/src/v1/parsing/common/asyncPredictResponse.d.ts +44 -0
  111. package/src/v1/parsing/common/asyncPredictResponse.js +49 -0
  112. package/src/v1/parsing/common/document.d.ts +33 -0
  113. package/src/v1/parsing/common/document.js +71 -0
  114. package/src/v1/parsing/common/execution.d.ts +38 -0
  115. package/src/v1/parsing/common/execution.js +24 -0
  116. package/src/v1/parsing/common/executionFile.d.ts +12 -0
  117. package/src/v1/parsing/common/executionFile.js +10 -0
  118. package/src/v1/parsing/common/executionPriority.js +6 -0
  119. package/src/v1/parsing/common/extras/cropperExtra.d.ts +11 -0
  120. package/src/v1/parsing/common/extras/cropperExtra.js +26 -0
  121. package/src/v1/parsing/common/extras/extras.js +17 -0
  122. package/src/v1/parsing/common/extras/fullTextOcrExtra.d.ts +11 -0
  123. package/src/v1/parsing/common/extras/fullTextOcrExtra.js +16 -0
  124. package/src/v1/parsing/common/extras/index.d.ts +4 -0
  125. package/src/v1/parsing/common/extras/index.js +4 -0
  126. package/src/v1/parsing/common/extras/ragExtra.d.ts +9 -0
  127. package/src/v1/parsing/common/extras/ragExtra.js +9 -0
  128. package/src/v1/parsing/common/feedback/feedbackResponse.d.ts +15 -0
  129. package/src/v1/parsing/common/feedback/feedbackResponse.js +15 -0
  130. package/src/v1/parsing/common/index.d.ts +16 -0
  131. package/src/v1/parsing/common/index.js +15 -0
  132. package/src/v1/parsing/common/inference.d.ts +52 -0
  133. package/src/v1/parsing/common/inference.js +90 -0
  134. package/src/v1/parsing/common/mvisionV1.d.ts +11 -0
  135. package/src/v1/parsing/common/mvisionV1.js +16 -0
  136. package/src/v1/parsing/common/ocr.d.ts +11 -0
  137. package/src/v1/parsing/common/ocr.js +12 -0
  138. package/src/v1/parsing/common/ocrPage.d.ts +19 -0
  139. package/src/v1/parsing/common/ocrPage.js +66 -0
  140. package/src/v1/parsing/common/orientation.d.ts +22 -0
  141. package/src/v1/parsing/common/orientation.js +23 -0
  142. package/src/v1/parsing/common/page.d.ts +31 -0
  143. package/src/v1/parsing/common/page.js +82 -0
  144. package/src/v1/parsing/common/predictResponse.d.ts +19 -0
  145. package/src/v1/parsing/common/predictResponse.js +18 -0
  146. package/src/v1/parsing/common/prediction.js +2 -0
  147. package/src/v1/parsing/common/product.js +1 -0
  148. package/src/v1/parsing/common/summaryHelper.js +41 -0
  149. package/src/v1/parsing/common/workflowResponse.d.ts +17 -0
  150. package/src/v1/parsing/common/workflowResponse.js +13 -0
  151. package/src/v1/parsing/generated/generatedList.d.ts +31 -0
  152. package/src/v1/parsing/generated/generatedList.js +45 -0
  153. package/src/v1/parsing/generated/generatedObject.d.ts +35 -0
  154. package/src/v1/parsing/generated/generatedObject.js +102 -0
  155. package/src/v1/parsing/generated/index.d.ts +2 -0
  156. package/src/v1/parsing/generated/index.js +2 -0
  157. package/src/v1/parsing/index.d.ts +4 -0
  158. package/src/v1/parsing/index.js +4 -0
  159. package/src/v1/parsing/localResponse.d.ts +10 -0
  160. package/src/v1/parsing/localResponse.js +29 -0
  161. package/src/v1/parsing/standard/addressField.d.ts +25 -0
  162. package/src/v1/parsing/standard/addressField.js +36 -0
  163. package/src/v1/parsing/standard/amount.d.ts +17 -0
  164. package/src/v1/parsing/standard/amount.js +29 -0
  165. package/src/v1/parsing/standard/base.d.ts +38 -0
  166. package/src/v1/parsing/standard/base.js +54 -0
  167. package/src/v1/parsing/standard/boolean.d.ts +17 -0
  168. package/src/v1/parsing/standard/boolean.js +18 -0
  169. package/src/v1/parsing/standard/classification.d.ts +11 -0
  170. package/src/v1/parsing/standard/classification.js +10 -0
  171. package/src/v1/parsing/standard/companyRegistration.d.ts +15 -0
  172. package/src/v1/parsing/standard/companyRegistration.js +25 -0
  173. package/src/v1/parsing/standard/date.d.ts +18 -0
  174. package/src/v1/parsing/standard/date.js +31 -0
  175. package/src/v1/parsing/standard/field.d.ts +35 -0
  176. package/src/v1/parsing/standard/field.js +53 -0
  177. package/src/v1/parsing/standard/index.d.ts +15 -0
  178. package/src/v1/parsing/standard/index.js +13 -0
  179. package/src/v1/parsing/standard/locale.d.ts +24 -0
  180. package/src/v1/parsing/standard/locale.js +39 -0
  181. package/src/v1/parsing/standard/paymentDetails.d.ts +47 -0
  182. package/src/v1/parsing/standard/paymentDetails.js +56 -0
  183. package/src/v1/parsing/standard/position.d.ts +27 -0
  184. package/src/v1/parsing/standard/position.js +29 -0
  185. package/src/v1/parsing/standard/tax.d.ts +53 -0
  186. package/src/v1/parsing/standard/tax.js +119 -0
  187. package/src/v1/parsing/standard/text.d.ts +18 -0
  188. package/src/v1/parsing/standard/text.js +12 -0
  189. package/src/v1/parsing/standard/word.d.ts +10 -0
  190. package/src/v1/parsing/standard/word.js +1 -0
  191. package/src/v1/product/barcodeReader/barcodeReaderV1.d.ts +16 -0
  192. package/src/v1/product/barcodeReader/barcodeReaderV1.js +23 -0
  193. package/src/v1/product/barcodeReader/barcodeReaderV1Document.d.ts +16 -0
  194. package/src/v1/product/barcodeReader/barcodeReaderV1Document.js +35 -0
  195. package/src/v1/product/barcodeReader/index.d.ts +2 -0
  196. package/src/v1/product/barcodeReader/index.js +2 -0
  197. package/src/v1/product/cliProducts.d.ts +10 -0
  198. package/src/v1/product/cliProducts.js +159 -0
  199. package/src/v1/product/cropper/cropperV1.d.ts +17 -0
  200. package/src/v1/product/cropper/cropperV1.js +24 -0
  201. package/src/v1/product/cropper/cropperV1Document.d.ts +10 -0
  202. package/src/v1/product/cropper/cropperV1Document.js +11 -0
  203. package/src/v1/product/cropper/cropperV1Page.d.ts +12 -0
  204. package/src/v1/product/cropper/cropperV1Page.js +22 -0
  205. package/src/v1/product/cropper/index.d.ts +3 -0
  206. package/src/v1/product/cropper/index.js +3 -0
  207. package/src/v1/product/driverLicense/driverLicenseV1.d.ts +16 -0
  208. package/src/v1/product/driverLicense/driverLicenseV1.js +23 -0
  209. package/src/v1/product/driverLicense/driverLicenseV1Document.d.ts +38 -0
  210. package/src/v1/product/driverLicense/driverLicenseV1Document.js +80 -0
  211. package/src/v1/product/driverLicense/index.d.ts +2 -0
  212. package/src/v1/product/driverLicense/index.js +2 -0
  213. package/src/v1/product/financialDocument/financialDocumentV1.d.ts +16 -0
  214. package/src/v1/product/financialDocument/financialDocumentV1.js +23 -0
  215. package/src/v1/product/financialDocument/financialDocumentV1Document.d.ts +82 -0
  216. package/src/v1/product/financialDocument/financialDocumentV1Document.js +212 -0
  217. package/src/v1/product/financialDocument/financialDocumentV1LineItem.d.ts +42 -0
  218. package/src/v1/product/financialDocument/financialDocumentV1LineItem.js +140 -0
  219. package/src/v1/product/financialDocument/index.d.ts +3 -0
  220. package/src/v1/product/financialDocument/index.js +3 -0
  221. package/src/v1/product/fr/bankAccountDetails/bankAccountDetailsV1.d.ts +16 -0
  222. package/src/v1/product/fr/bankAccountDetails/bankAccountDetailsV1.js +23 -0
  223. package/src/v1/product/fr/bankAccountDetails/bankAccountDetailsV1Document.d.ts +18 -0
  224. package/src/v1/product/fr/bankAccountDetails/bankAccountDetailsV1Document.js +30 -0
  225. package/src/v1/product/fr/bankAccountDetails/bankAccountDetailsV2.d.ts +16 -0
  226. package/src/v1/product/fr/bankAccountDetails/bankAccountDetailsV2.js +23 -0
  227. package/src/v1/product/fr/bankAccountDetails/bankAccountDetailsV2Bban.d.ts +34 -0
  228. package/src/v1/product/fr/bankAccountDetails/bankAccountDetailsV2Bban.js +64 -0
  229. package/src/v1/product/fr/bankAccountDetails/bankAccountDetailsV2Document.d.ts +21 -0
  230. package/src/v1/product/fr/bankAccountDetails/bankAccountDetailsV2Document.js +36 -0
  231. package/src/v1/product/fr/bankAccountDetails/index.d.ts +5 -0
  232. package/src/v1/product/fr/bankAccountDetails/index.js +5 -0
  233. package/src/v1/product/fr/carteGrise/carteGriseV1.d.ts +16 -0
  234. package/src/v1/product/fr/carteGrise/carteGriseV1.js +23 -0
  235. package/src/v1/product/fr/carteGrise/carteGriseV1Document.d.ts +94 -0
  236. package/src/v1/product/fr/carteGrise/carteGriseV1Document.js +220 -0
  237. package/src/v1/product/fr/carteGrise/index.d.ts +2 -0
  238. package/src/v1/product/fr/carteGrise/index.js +2 -0
  239. package/src/v1/product/fr/idCard/idCardV2.d.ts +17 -0
  240. package/src/v1/product/fr/idCard/idCardV2.js +24 -0
  241. package/src/v1/product/fr/idCard/idCardV2Document.d.ts +42 -0
  242. package/src/v1/product/fr/idCard/idCardV2Document.js +95 -0
  243. package/src/v1/product/fr/idCard/idCardV2Page.d.ts +14 -0
  244. package/src/v1/product/fr/idCard/idCardV2Page.js +23 -0
  245. package/src/v1/product/fr/idCard/index.d.ts +3 -0
  246. package/src/v1/product/fr/idCard/index.js +3 -0
  247. package/src/v1/product/fr/index.d.ts +6 -0
  248. package/src/v1/product/fr/index.js +6 -0
  249. package/src/v1/product/generated/generatedV1.d.ts +17 -0
  250. package/src/v1/product/generated/generatedV1.js +20 -0
  251. package/src/v1/product/generated/generatedV1Document.d.ts +8 -0
  252. package/src/v1/product/generated/generatedV1Document.js +26 -0
  253. package/src/v1/product/generated/generatedV1Page.d.ts +8 -0
  254. package/src/v1/product/generated/generatedV1Page.js +26 -0
  255. package/src/v1/product/generated/generatedV1Prediction.d.ts +25 -0
  256. package/src/v1/product/generated/generatedV1Prediction.js +80 -0
  257. package/src/v1/product/generated/index.d.ts +4 -0
  258. package/src/v1/product/generated/index.js +4 -0
  259. package/src/v1/product/index.d.ts +26 -0
  260. package/src/v1/product/index.js +27 -0
  261. package/src/v1/product/internationalId/index.d.ts +2 -0
  262. package/src/v1/product/internationalId/index.js +2 -0
  263. package/src/v1/product/internationalId/internationalIdV2.d.ts +16 -0
  264. package/src/v1/product/internationalId/internationalIdV2.js +23 -0
  265. package/src/v1/product/internationalId/internationalIdV2Document.d.ts +46 -0
  266. package/src/v1/product/internationalId/internationalIdV2Document.js +109 -0
  267. package/src/v1/product/invoice/index.d.ts +3 -0
  268. package/src/v1/product/invoice/index.js +3 -0
  269. package/src/v1/product/invoice/invoiceV4.d.ts +16 -0
  270. package/src/v1/product/invoice/invoiceV4.js +23 -0
  271. package/src/v1/product/invoice/invoiceV4Document.d.ts +71 -0
  272. package/src/v1/product/invoice/invoiceV4Document.js +192 -0
  273. package/src/v1/product/invoice/invoiceV4LineItem.d.ts +42 -0
  274. package/src/v1/product/invoice/invoiceV4LineItem.js +140 -0
  275. package/src/v1/product/invoiceSplitter/index.d.ts +3 -0
  276. package/src/v1/product/invoiceSplitter/index.js +3 -0
  277. package/src/v1/product/invoiceSplitter/invoiceSplitterV1.d.ts +16 -0
  278. package/src/v1/product/invoiceSplitter/invoiceSplitterV1.js +23 -0
  279. package/src/v1/product/invoiceSplitter/invoiceSplitterV1Document.d.ts +14 -0
  280. package/src/v1/product/invoiceSplitter/invoiceSplitterV1Document.js +32 -0
  281. package/src/v1/product/invoiceSplitter/invoiceSplitterV1InvoicePageGroup.d.ts +28 -0
  282. package/src/v1/product/invoiceSplitter/invoiceSplitterV1InvoicePageGroup.js +50 -0
  283. package/src/v1/product/multiReceiptsDetector/index.d.ts +2 -0
  284. package/src/v1/product/multiReceiptsDetector/index.js +2 -0
  285. package/src/v1/product/multiReceiptsDetector/multiReceiptsDetectorV1.d.ts +16 -0
  286. package/src/v1/product/multiReceiptsDetector/multiReceiptsDetectorV1.js +23 -0
  287. package/src/v1/product/multiReceiptsDetector/multiReceiptsDetectorV1Document.d.ts +14 -0
  288. package/src/v1/product/multiReceiptsDetector/multiReceiptsDetectorV1Document.js +25 -0
  289. package/src/v1/product/passport/index.d.ts +2 -0
  290. package/src/v1/product/passport/index.js +2 -0
  291. package/src/v1/product/passport/passportV1.d.ts +16 -0
  292. package/src/v1/product/passport/passportV1.js +23 -0
  293. package/src/v1/product/passport/passportV1Document.d.ts +34 -0
  294. package/src/v1/product/passport/passportV1Document.js +75 -0
  295. package/src/v1/product/receipt/index.d.ts +3 -0
  296. package/src/v1/product/receipt/index.js +3 -0
  297. package/src/v1/product/receipt/receiptV5.d.ts +16 -0
  298. package/src/v1/product/receipt/receiptV5.js +23 -0
  299. package/src/v1/product/receipt/receiptV5Document.d.ts +47 -0
  300. package/src/v1/product/receipt/receiptV5Document.js +114 -0
  301. package/src/v1/product/receipt/receiptV5LineItem.d.ts +34 -0
  302. package/src/v1/product/receipt/receiptV5LineItem.js +94 -0
  303. package/src/v1/product/resume/index.d.ts +7 -0
  304. package/src/v1/product/resume/index.js +7 -0
  305. package/src/v1/product/resume/resumeV1.d.ts +16 -0
  306. package/src/v1/product/resume/resumeV1.js +23 -0
  307. package/src/v1/product/resume/resumeV1Certificate.d.ts +34 -0
  308. package/src/v1/product/resume/resumeV1Certificate.js +85 -0
  309. package/src/v1/product/resume/resumeV1Document.d.ts +51 -0
  310. package/src/v1/product/resume/resumeV1Document.js +203 -0
  311. package/src/v1/product/resume/resumeV1Education.d.ts +40 -0
  312. package/src/v1/product/resume/resumeV1Education.js +115 -0
  313. package/src/v1/product/resume/resumeV1Language.d.ts +30 -0
  314. package/src/v1/product/resume/resumeV1Language.js +65 -0
  315. package/src/v1/product/resume/resumeV1ProfessionalExperience.d.ts +44 -0
  316. package/src/v1/product/resume/resumeV1ProfessionalExperience.js +135 -0
  317. package/src/v1/product/resume/resumeV1SocialNetworksUrl.d.ts +30 -0
  318. package/src/v1/product/resume/resumeV1SocialNetworksUrl.js +65 -0
  319. package/src/v1/product/us/bankCheck/bankCheckV1.d.ts +17 -0
  320. package/src/v1/product/us/bankCheck/bankCheckV1.js +24 -0
  321. package/src/v1/product/us/bankCheck/bankCheckV1Document.d.ts +24 -0
  322. package/src/v1/product/us/bankCheck/bankCheckV1Document.js +50 -0
  323. package/src/v1/product/us/bankCheck/bankCheckV1Page.d.ts +14 -0
  324. package/src/v1/product/us/bankCheck/bankCheckV1Page.js +28 -0
  325. package/src/v1/product/us/bankCheck/index.d.ts +3 -0
  326. package/src/v1/product/us/bankCheck/index.js +3 -0
  327. package/src/v1/product/us/index.d.ts +2 -0
  328. package/src/v1/product/us/index.js +2 -0
  329. package/src/v2/cli.d.ts +1 -0
  330. package/src/v2/cli.js +66 -0
  331. package/src/v2/client/baseParameters.d.ts +66 -0
  332. package/src/v2/client/baseParameters.js +81 -0
  333. package/src/v2/client/index.d.ts +2 -0
  334. package/src/v2/client/index.js +1 -0
  335. package/src/v2/client/pollingOptions.d.ts +49 -0
  336. package/src/v2/client/pollingOptions.js +1 -0
  337. package/src/v2/client.d.ts +79 -0
  338. package/src/v2/client.js +121 -0
  339. package/src/v2/http/apiSettingsV2.d.ts +7 -0
  340. package/src/v2/http/apiSettingsV2.js +36 -0
  341. package/src/v2/http/errors.d.ts +10 -0
  342. package/src/v2/http/errors.js +12 -0
  343. package/src/v2/http/index.d.ts +1 -0
  344. package/src/v2/http/index.js +1 -0
  345. package/src/v2/http/mindeeApiV2.d.ts +38 -0
  346. package/src/v2/http/mindeeApiV2.js +131 -0
  347. package/src/v2/index.d.ts +7 -0
  348. package/src/v2/index.js +6 -0
  349. package/src/v2/parsing/baseResponse.d.ts +17 -0
  350. package/src/v2/parsing/baseResponse.js +17 -0
  351. package/src/v2/parsing/error/errorDetails.d.ts +23 -0
  352. package/src/v2/parsing/error/errorDetails.js +1 -0
  353. package/src/v2/parsing/error/errorItem.d.ts +18 -0
  354. package/src/v2/parsing/error/errorItem.js +14 -0
  355. package/src/v2/parsing/error/errorResponse.d.ts +18 -0
  356. package/src/v2/parsing/error/errorResponse.js +23 -0
  357. package/src/v2/parsing/error/index.d.ts +3 -0
  358. package/src/v2/parsing/error/index.js +2 -0
  359. package/src/v2/parsing/index.d.ts +8 -0
  360. package/src/v2/parsing/index.js +6 -0
  361. package/src/v2/parsing/inference/baseInference.d.ts +19 -0
  362. package/src/v2/parsing/inference/baseInference.js +15 -0
  363. package/src/v2/parsing/inference/field/baseField.d.ts +9 -0
  364. package/src/v2/parsing/inference/field/baseField.js +14 -0
  365. package/src/v2/parsing/inference/field/fieldConfidence.js +74 -0
  366. package/src/v2/parsing/inference/field/fieldFactory.d.ts +8 -0
  367. package/src/v2/parsing/inference/field/fieldFactory.js +19 -0
  368. package/src/v2/parsing/inference/field/fieldLocation.d.ts +13 -0
  369. package/src/v2/parsing/inference/field/fieldLocation.js +13 -0
  370. package/src/v2/parsing/inference/field/index.d.ts +8 -0
  371. package/src/v2/parsing/inference/field/index.js +8 -0
  372. package/src/v2/parsing/inference/field/inferenceFields.d.ts +12 -0
  373. package/src/v2/parsing/inference/field/inferenceFields.js +64 -0
  374. package/src/v2/parsing/inference/field/listField.d.ts +20 -0
  375. package/src/v2/parsing/inference/field/listField.js +63 -0
  376. package/src/v2/parsing/inference/field/objectField.d.ts +53 -0
  377. package/src/v2/parsing/inference/field/objectField.js +104 -0
  378. package/src/v2/parsing/inference/field/ragMetadata.d.ts +8 -0
  379. package/src/v2/parsing/inference/field/ragMetadata.js +5 -0
  380. package/src/v2/parsing/inference/field/rawText.d.ts +10 -0
  381. package/src/v2/parsing/inference/field/rawText.js +9 -0
  382. package/src/v2/parsing/inference/field/rawTextPage.d.ts +11 -0
  383. package/src/v2/parsing/inference/field/rawTextPage.js +8 -0
  384. package/src/v2/parsing/inference/field/simpleField.d.ts +19 -0
  385. package/src/v2/parsing/inference/field/simpleField.js +47 -0
  386. package/src/v2/parsing/inference/index.d.ts +4 -0
  387. package/src/v2/parsing/inference/index.js +4 -0
  388. package/src/v2/parsing/inference/inferenceFile.d.ts +21 -0
  389. package/src/v2/parsing/inference/inferenceFile.js +16 -0
  390. package/src/v2/parsing/inference/inferenceModel.d.ts +9 -0
  391. package/src/v2/parsing/inference/inferenceModel.js +10 -0
  392. package/src/v2/parsing/job/index.d.ts +3 -0
  393. package/src/v2/parsing/job/index.js +3 -0
  394. package/src/v2/parsing/job/job.d.ts +49 -0
  395. package/src/v2/parsing/job/job.js +25 -0
  396. package/src/v2/parsing/job/jobResponse.d.ts +10 -0
  397. package/src/v2/parsing/job/jobResponse.js +8 -0
  398. package/src/v2/parsing/job/jobWebhook.d.ts +24 -0
  399. package/src/v2/parsing/job/jobWebhook.js +15 -0
  400. package/src/v2/parsing/localResponse.d.ts +20 -0
  401. package/src/v2/parsing/localResponse.js +27 -0
  402. package/src/v2/product/baseProduct.d.ts +7 -0
  403. package/src/v2/product/baseProduct.js +11 -0
  404. package/src/v2/product/classification/classification.d.ts +8 -0
  405. package/src/v2/product/classification/classification.js +14 -0
  406. package/src/v2/product/classification/classificationClassifier.d.ts +9 -0
  407. package/src/v2/product/classification/classificationClassifier.js +11 -0
  408. package/src/v2/product/classification/classificationInference.d.ts +11 -0
  409. package/src/v2/product/classification/classificationInference.js +12 -0
  410. package/src/v2/product/classification/classificationResponse.d.ts +13 -0
  411. package/src/v2/product/classification/classificationResponse.js +11 -0
  412. package/src/v2/product/classification/classificationResult.d.ts +10 -0
  413. package/src/v2/product/classification/classificationResult.js +9 -0
  414. package/src/v2/product/classification/index.d.ts +6 -0
  415. package/src/v2/product/classification/index.js +6 -0
  416. package/src/v2/product/classification/params/classificationParameters.d.ts +21 -0
  417. package/src/v2/product/classification/params/classificationParameters.js +25 -0
  418. package/src/v2/product/classification/params/index.d.ts +1 -0
  419. package/src/v2/product/classification/params/index.js +1 -0
  420. package/src/v2/product/crop/crop.d.ts +8 -0
  421. package/src/v2/product/crop/crop.js +14 -0
  422. package/src/v2/product/crop/cropInference.d.ts +11 -0
  423. package/src/v2/product/crop/cropInference.js +12 -0
  424. package/src/v2/product/crop/cropItem.d.ts +8 -0
  425. package/src/v2/product/crop/cropItem.js +10 -0
  426. package/src/v2/product/crop/cropResponse.d.ts +13 -0
  427. package/src/v2/product/crop/cropResponse.js +11 -0
  428. package/src/v2/product/crop/cropResult.d.ts +10 -0
  429. package/src/v2/product/crop/cropResult.js +14 -0
  430. package/src/v2/product/crop/index.d.ts +6 -0
  431. package/src/v2/product/crop/index.js +6 -0
  432. package/src/v2/product/crop/params/cropParameters.d.ts +21 -0
  433. package/src/v2/product/crop/params/cropParameters.js +25 -0
  434. package/src/v2/product/crop/params/index.d.ts +1 -0
  435. package/src/v2/product/crop/params/index.js +1 -0
  436. package/src/v2/product/extraction/dataSchemaActiveOption.d.ts +12 -0
  437. package/src/v2/product/extraction/dataSchemaActiveOption.js +11 -0
  438. package/src/v2/product/extraction/extraction.d.ts +8 -0
  439. package/src/v2/product/extraction/extraction.js +14 -0
  440. package/src/v2/product/extraction/extractionActiveOptions.d.ts +30 -0
  441. package/src/v2/product/extraction/extractionActiveOptions.js +21 -0
  442. package/src/v2/product/extraction/extractionInference.d.ts +16 -0
  443. package/src/v2/product/extraction/extractionInference.js +15 -0
  444. package/src/v2/product/extraction/extractionResponse.d.ts +13 -0
  445. package/src/v2/product/extraction/extractionResponse.js +11 -0
  446. package/src/v2/product/extraction/extractionResult.d.ts +20 -0
  447. package/src/v2/product/extraction/extractionResult.js +17 -0
  448. package/src/v2/product/extraction/index.d.ts +8 -0
  449. package/src/v2/product/extraction/index.js +8 -0
  450. package/src/v2/product/extraction/params/dataSchema.d.ts +18 -0
  451. package/src/v2/product/extraction/params/dataSchema.js +23 -0
  452. package/src/v2/product/extraction/params/dataSchemaField.d.ts +43 -0
  453. package/src/v2/product/extraction/params/dataSchemaField.js +39 -0
  454. package/src/v2/product/extraction/params/dataSchemaReplace.d.ts +16 -0
  455. package/src/v2/product/extraction/params/dataSchemaReplace.js +22 -0
  456. package/src/v2/product/extraction/params/extractionParameters.d.ts +59 -0
  457. package/src/v2/product/extraction/params/extractionParameters.js +66 -0
  458. package/src/v2/product/extraction/params/index.d.ts +4 -0
  459. package/src/v2/product/extraction/params/index.js +4 -0
  460. package/src/v2/product/index.d.ts +10 -0
  461. package/src/v2/product/index.js +10 -0
  462. package/src/v2/product/ocr/index.d.ts +7 -0
  463. package/src/v2/product/ocr/index.js +7 -0
  464. package/src/v2/product/ocr/ocr.d.ts +8 -0
  465. package/src/v2/product/ocr/ocr.js +14 -0
  466. package/src/v2/product/ocr/ocrInference.d.ts +11 -0
  467. package/src/v2/product/ocr/ocrInference.js +15 -0
  468. package/src/v2/product/ocr/ocrPage.d.ts +14 -0
  469. package/src/v2/product/ocr/ocrPage.js +16 -0
  470. package/src/v2/product/ocr/ocrResponse.d.ts +13 -0
  471. package/src/v2/product/ocr/ocrResponse.js +11 -0
  472. package/src/v2/product/ocr/ocrResult.d.ts +13 -0
  473. package/src/v2/product/ocr/ocrResult.js +16 -0
  474. package/src/v2/product/ocr/ocrWord.d.ts +14 -0
  475. package/src/v2/product/ocr/ocrWord.js +10 -0
  476. package/src/v2/product/ocr/params/index.d.ts +1 -0
  477. package/src/v2/product/ocr/params/index.js +1 -0
  478. package/src/v2/product/ocr/params/ocrParameters.d.ts +21 -0
  479. package/src/v2/product/ocr/params/ocrParameters.js +25 -0
  480. package/src/v2/product/split/index.d.ts +6 -0
  481. package/src/v2/product/split/index.js +6 -0
  482. package/src/v2/product/split/params/index.d.ts +1 -0
  483. package/src/v2/product/split/params/index.js +1 -0
  484. package/src/v2/product/split/params/splitParameters.d.ts +21 -0
  485. package/src/v2/product/split/params/splitParameters.js +25 -0
  486. package/src/v2/product/split/split.d.ts +8 -0
  487. package/src/v2/product/split/split.js +14 -0
  488. package/src/v2/product/split/splitInference.d.ts +11 -0
  489. package/src/v2/product/split/splitInference.js +12 -0
  490. package/src/v2/product/split/splitRange.d.ts +17 -0
  491. package/src/v2/product/split/splitRange.js +13 -0
  492. package/src/v2/product/split/splitResponse.d.ts +13 -0
  493. package/src/v2/product/split/splitResponse.js +11 -0
  494. package/src/v2/product/split/splitResult.d.ts +13 -0
  495. package/src/v2/product/split/splitResult.js +16 -0
  496. package/bin/mindee.js +0 -5
  497. package/src/cli.js +0 -264
  498. package/src/cliProducts.d.ts +0 -11
  499. package/src/cliProducts.js +0 -316
  500. package/src/client.d.ts +0 -256
  501. package/src/client.js +0 -386
  502. package/src/clientV2.d.ts +0 -176
  503. package/src/clientV2.js +0 -167
  504. package/src/http/apiSettings.d.ts +0 -12
  505. package/src/http/apiSettings.js +0 -47
  506. package/src/http/apiSettingsV2.d.ts +0 -10
  507. package/src/http/apiSettingsV2.js +0 -46
  508. package/src/http/baseEndpoint.d.ts +0 -34
  509. package/src/http/baseEndpoint.js +0 -77
  510. package/src/http/endpoint.d.ts +0 -70
  511. package/src/http/endpoint.js +0 -243
  512. package/src/http/error.d.ts +0 -67
  513. package/src/http/error.js +0 -211
  514. package/src/http/httpParams.d.ts +0 -19
  515. package/src/http/httpParams.js +0 -2
  516. package/src/http/mindeeApiV2.d.ts +0 -34
  517. package/src/http/mindeeApiV2.js +0 -146
  518. package/src/http/responseValidation.d.ts +0 -23
  519. package/src/http/responseValidation.js +0 -78
  520. package/src/http/workflowEndpoint.d.ts +0 -30
  521. package/src/http/workflowEndpoint.js +0 -103
  522. package/src/imageOperations/common/extractedImage.d.ts +0 -29
  523. package/src/imageOperations/common/extractedImage.js +0 -105
  524. package/src/imageOperations/common/imageExtractor.d.ts +0 -9
  525. package/src/imageOperations/common/imageExtractor.js +0 -87
  526. package/src/imageOperations/common/index.d.ts +0 -2
  527. package/src/imageOperations/common/index.js +0 -7
  528. package/src/imageOperations/imageCompressor.js +0 -36
  529. package/src/imageOperations/index.d.ts +0 -3
  530. package/src/imageOperations/index.js +0 -11
  531. package/src/imageOperations/internal.d.ts +0 -3
  532. package/src/imageOperations/internal.js +0 -11
  533. package/src/imageOperations/invoiceSplitterExtractor/extractedInvoiceSplitterImage.d.ts +0 -9
  534. package/src/imageOperations/invoiceSplitterExtractor/extractedInvoiceSplitterImage.js +0 -15
  535. package/src/imageOperations/invoiceSplitterExtractor/index.d.ts +0 -2
  536. package/src/imageOperations/invoiceSplitterExtractor/index.js +0 -7
  537. package/src/imageOperations/invoiceSplitterExtractor/invoiceSplitterExtractor.d.ts +0 -13
  538. package/src/imageOperations/invoiceSplitterExtractor/invoiceSplitterExtractor.js +0 -76
  539. package/src/imageOperations/multiReceiptsExtractor/extractedMultiReceiptImage.d.ts +0 -9
  540. package/src/imageOperations/multiReceiptsExtractor/extractedMultiReceiptImage.js +0 -15
  541. package/src/imageOperations/multiReceiptsExtractor/index.d.ts +0 -2
  542. package/src/imageOperations/multiReceiptsExtractor/index.js +0 -7
  543. package/src/imageOperations/multiReceiptsExtractor/multiReceiptsExtractor.d.ts +0 -11
  544. package/src/imageOperations/multiReceiptsExtractor/multiReceiptsExtractor.js +0 -74
  545. package/src/input/dataSchema.d.ts +0 -73
  546. package/src/input/dataSchema.js +0 -88
  547. package/src/input/localResponse.d.ts +0 -46
  548. package/src/input/localResponse.js +0 -143
  549. package/src/input/sources/base64Input.d.ts +0 -12
  550. package/src/input/sources/base64Input.js +0 -28
  551. package/src/input/sources/bufferInput.d.ts +0 -10
  552. package/src/input/sources/bufferInput.js +0 -24
  553. package/src/input/sources/bytesInput.d.ts +0 -12
  554. package/src/input/sources/bytesInput.js +0 -27
  555. package/src/input/sources/index.d.ts +0 -8
  556. package/src/input/sources/index.js +0 -24
  557. package/src/input/sources/inputSource.js +0 -21
  558. package/src/input/sources/localInputSource.d.ts +0 -61
  559. package/src/input/sources/localInputSource.js +0 -194
  560. package/src/input/sources/pathInput.d.ts +0 -11
  561. package/src/input/sources/pathInput.js +0 -31
  562. package/src/input/sources/streamInput.d.ts +0 -14
  563. package/src/input/sources/streamInput.js +0 -40
  564. package/src/input/sources/urlInput.d.ts +0 -32
  565. package/src/input/sources/urlInput.js +0 -104
  566. package/src/internal.d.ts +0 -7
  567. package/src/internal.js +0 -43
  568. package/src/parsing/common/apiRequest.d.ts +0 -19
  569. package/src/parsing/common/apiRequest.js +0 -18
  570. package/src/parsing/common/apiResponse.d.ts +0 -21
  571. package/src/parsing/common/apiResponse.js +0 -25
  572. package/src/parsing/common/asyncPredictResponse.d.ts +0 -44
  573. package/src/parsing/common/asyncPredictResponse.js +0 -55
  574. package/src/parsing/common/dateParser.js +0 -12
  575. package/src/parsing/common/document.d.ts +0 -33
  576. package/src/parsing/common/document.js +0 -76
  577. package/src/parsing/common/execution.d.ts +0 -38
  578. package/src/parsing/common/execution.js +0 -28
  579. package/src/parsing/common/executionFile.d.ts +0 -12
  580. package/src/parsing/common/executionFile.js +0 -14
  581. package/src/parsing/common/executionPriority.js +0 -9
  582. package/src/parsing/common/extras/cropperExtra.d.ts +0 -11
  583. package/src/parsing/common/extras/cropperExtra.js +0 -29
  584. package/src/parsing/common/extras/extras.js +0 -21
  585. package/src/parsing/common/extras/fullTextOcrExtra.d.ts +0 -11
  586. package/src/parsing/common/extras/fullTextOcrExtra.js +0 -20
  587. package/src/parsing/common/extras/index.d.ts +0 -3
  588. package/src/parsing/common/extras/index.js +0 -9
  589. package/src/parsing/common/extras/ragExtra.d.ts +0 -9
  590. package/src/parsing/common/extras/ragExtra.js +0 -13
  591. package/src/parsing/common/feedback/feedbackResponse.d.ts +0 -15
  592. package/src/parsing/common/feedback/feedbackResponse.js +0 -19
  593. package/src/parsing/common/index.d.ts +0 -16
  594. package/src/parsing/common/index.js +0 -67
  595. package/src/parsing/common/inference.d.ts +0 -52
  596. package/src/parsing/common/inference.js +0 -98
  597. package/src/parsing/common/mvisionV1.d.ts +0 -11
  598. package/src/parsing/common/mvisionV1.js +0 -20
  599. package/src/parsing/common/ocr.d.ts +0 -11
  600. package/src/parsing/common/ocr.js +0 -16
  601. package/src/parsing/common/ocrPage.d.ts +0 -19
  602. package/src/parsing/common/ocrPage.js +0 -69
  603. package/src/parsing/common/orientation.d.ts +0 -22
  604. package/src/parsing/common/orientation.js +0 -27
  605. package/src/parsing/common/page.d.ts +0 -31
  606. package/src/parsing/common/page.js +0 -87
  607. package/src/parsing/common/predictResponse.d.ts +0 -17
  608. package/src/parsing/common/predictResponse.js +0 -22
  609. package/src/parsing/common/prediction.js +0 -6
  610. package/src/parsing/common/product.js +0 -2
  611. package/src/parsing/common/stringDict.js +0 -2
  612. package/src/parsing/common/summaryHelper.js +0 -47
  613. package/src/parsing/common/workflowResponse.d.ts +0 -17
  614. package/src/parsing/common/workflowResponse.js +0 -17
  615. package/src/parsing/custom/classificationField.d.ts +0 -19
  616. package/src/parsing/custom/classificationField.js +0 -17
  617. package/src/parsing/custom/index.d.ts +0 -3
  618. package/src/parsing/custom/index.js +0 -12
  619. package/src/parsing/custom/lineItems.d.ts +0 -33
  620. package/src/parsing/custom/lineItems.js +0 -130
  621. package/src/parsing/custom/listField.d.ts +0 -45
  622. package/src/parsing/custom/listField.js +0 -60
  623. package/src/parsing/generated/generatedList.d.ts +0 -31
  624. package/src/parsing/generated/generatedList.js +0 -49
  625. package/src/parsing/generated/generatedObject.d.ts +0 -35
  626. package/src/parsing/generated/generatedObject.js +0 -107
  627. package/src/parsing/generated/index.d.ts +0 -2
  628. package/src/parsing/generated/index.js +0 -8
  629. package/src/parsing/standard/addressField.d.ts +0 -25
  630. package/src/parsing/standard/addressField.js +0 -40
  631. package/src/parsing/standard/amount.d.ts +0 -17
  632. package/src/parsing/standard/amount.js +0 -33
  633. package/src/parsing/standard/base.d.ts +0 -38
  634. package/src/parsing/standard/base.js +0 -58
  635. package/src/parsing/standard/boolean.d.ts +0 -17
  636. package/src/parsing/standard/boolean.js +0 -22
  637. package/src/parsing/standard/classification.d.ts +0 -11
  638. package/src/parsing/standard/classification.js +0 -14
  639. package/src/parsing/standard/companyRegistration.d.ts +0 -15
  640. package/src/parsing/standard/companyRegistration.js +0 -29
  641. package/src/parsing/standard/date.d.ts +0 -18
  642. package/src/parsing/standard/date.js +0 -35
  643. package/src/parsing/standard/field.d.ts +0 -35
  644. package/src/parsing/standard/field.js +0 -57
  645. package/src/parsing/standard/index.d.ts +0 -14
  646. package/src/parsing/standard/index.js +0 -30
  647. package/src/parsing/standard/locale.d.ts +0 -24
  648. package/src/parsing/standard/locale.js +0 -43
  649. package/src/parsing/standard/paymentDetails.d.ts +0 -47
  650. package/src/parsing/standard/paymentDetails.js +0 -60
  651. package/src/parsing/standard/position.d.ts +0 -27
  652. package/src/parsing/standard/position.js +0 -33
  653. package/src/parsing/standard/tax.d.ts +0 -53
  654. package/src/parsing/standard/tax.js +0 -124
  655. package/src/parsing/standard/text.d.ts +0 -18
  656. package/src/parsing/standard/text.js +0 -16
  657. package/src/parsing/standard/word.d.ts +0 -10
  658. package/src/parsing/standard/word.js +0 -2
  659. package/src/parsing/v2/commonResponse.d.ts +0 -16
  660. package/src/parsing/v2/commonResponse.js +0 -19
  661. package/src/parsing/v2/dataSchemaActiveOption.d.ts +0 -12
  662. package/src/parsing/v2/dataSchemaActiveOption.js +0 -15
  663. package/src/parsing/v2/errorItem.d.ts +0 -18
  664. package/src/parsing/v2/errorItem.js +0 -18
  665. package/src/parsing/v2/errorResponse.d.ts +0 -38
  666. package/src/parsing/v2/errorResponse.js +0 -25
  667. package/src/parsing/v2/field/baseField.d.ts +0 -9
  668. package/src/parsing/v2/field/baseField.js +0 -18
  669. package/src/parsing/v2/field/fieldConfidence.js +0 -77
  670. package/src/parsing/v2/field/fieldFactory.d.ts +0 -8
  671. package/src/parsing/v2/field/fieldFactory.js +0 -22
  672. package/src/parsing/v2/field/fieldLocation.d.ts +0 -13
  673. package/src/parsing/v2/field/fieldLocation.js +0 -16
  674. package/src/parsing/v2/field/index.d.ts +0 -6
  675. package/src/parsing/v2/field/index.js +0 -15
  676. package/src/parsing/v2/field/inferenceFields.d.ts +0 -12
  677. package/src/parsing/v2/field/inferenceFields.js +0 -68
  678. package/src/parsing/v2/field/listField.d.ts +0 -20
  679. package/src/parsing/v2/field/listField.js +0 -67
  680. package/src/parsing/v2/field/objectField.d.ts +0 -11
  681. package/src/parsing/v2/field/objectField.js +0 -30
  682. package/src/parsing/v2/field/simpleField.d.ts +0 -19
  683. package/src/parsing/v2/field/simpleField.js +0 -51
  684. package/src/parsing/v2/index.d.ts +0 -14
  685. package/src/parsing/v2/index.js +0 -31
  686. package/src/parsing/v2/inference.d.ts +0 -29
  687. package/src/parsing/v2/inference.js +0 -24
  688. package/src/parsing/v2/inferenceActiveOptions.d.ts +0 -30
  689. package/src/parsing/v2/inferenceActiveOptions.js +0 -25
  690. package/src/parsing/v2/inferenceFile.d.ts +0 -21
  691. package/src/parsing/v2/inferenceFile.js +0 -20
  692. package/src/parsing/v2/inferenceModel.d.ts +0 -9
  693. package/src/parsing/v2/inferenceModel.js +0 -14
  694. package/src/parsing/v2/inferenceResponse.d.ts +0 -10
  695. package/src/parsing/v2/inferenceResponse.js +0 -12
  696. package/src/parsing/v2/inferenceResult.d.ts +0 -20
  697. package/src/parsing/v2/inferenceResult.js +0 -21
  698. package/src/parsing/v2/job.d.ts +0 -49
  699. package/src/parsing/v2/job.js +0 -29
  700. package/src/parsing/v2/jobResponse.d.ts +0 -10
  701. package/src/parsing/v2/jobResponse.js +0 -12
  702. package/src/parsing/v2/jobWebhook.d.ts +0 -24
  703. package/src/parsing/v2/jobWebhook.js +0 -19
  704. package/src/parsing/v2/ragMetadata.d.ts +0 -8
  705. package/src/parsing/v2/ragMetadata.js +0 -9
  706. package/src/parsing/v2/rawText.d.ts +0 -10
  707. package/src/parsing/v2/rawText.js +0 -13
  708. package/src/parsing/v2/rawTextPage.d.ts +0 -11
  709. package/src/parsing/v2/rawTextPage.js +0 -12
  710. package/src/product/barcodeReader/barcodeReaderV1.d.ts +0 -16
  711. package/src/product/barcodeReader/barcodeReaderV1.js +0 -27
  712. package/src/product/barcodeReader/barcodeReaderV1Document.d.ts +0 -16
  713. package/src/product/barcodeReader/barcodeReaderV1Document.js +0 -37
  714. package/src/product/barcodeReader/index.d.ts +0 -1
  715. package/src/product/barcodeReader/index.js +0 -5
  716. package/src/product/barcodeReader/internal.d.ts +0 -2
  717. package/src/product/barcodeReader/internal.js +0 -7
  718. package/src/product/billOfLading/billOfLadingV1.d.ts +0 -16
  719. package/src/product/billOfLading/billOfLadingV1.js +0 -27
  720. package/src/product/billOfLading/billOfLadingV1Carrier.d.ts +0 -32
  721. package/src/product/billOfLading/billOfLadingV1Carrier.js +0 -63
  722. package/src/product/billOfLading/billOfLadingV1CarrierItem.d.ts +0 -38
  723. package/src/product/billOfLading/billOfLadingV1CarrierItem.js +0 -118
  724. package/src/product/billOfLading/billOfLadingV1Consignee.d.ts +0 -34
  725. package/src/product/billOfLading/billOfLadingV1Consignee.js +0 -68
  726. package/src/product/billOfLading/billOfLadingV1Document.d.ts +0 -39
  727. package/src/product/billOfLading/billOfLadingV1Document.js +0 -95
  728. package/src/product/billOfLading/billOfLadingV1NotifyParty.d.ts +0 -34
  729. package/src/product/billOfLading/billOfLadingV1NotifyParty.js +0 -68
  730. package/src/product/billOfLading/billOfLadingV1Shipper.d.ts +0 -34
  731. package/src/product/billOfLading/billOfLadingV1Shipper.js +0 -68
  732. package/src/product/billOfLading/index.d.ts +0 -1
  733. package/src/product/billOfLading/index.js +0 -5
  734. package/src/product/billOfLading/internal.d.ts +0 -7
  735. package/src/product/billOfLading/internal.js +0 -17
  736. package/src/product/businessCard/businessCardV1.d.ts +0 -16
  737. package/src/product/businessCard/businessCardV1.js +0 -27
  738. package/src/product/businessCard/businessCardV1Document.d.ts +0 -34
  739. package/src/product/businessCard/businessCardV1Document.js +0 -78
  740. package/src/product/businessCard/index.d.ts +0 -1
  741. package/src/product/businessCard/index.js +0 -5
  742. package/src/product/businessCard/internal.d.ts +0 -2
  743. package/src/product/businessCard/internal.js +0 -7
  744. package/src/product/cropper/cropperV1.d.ts +0 -17
  745. package/src/product/cropper/cropperV1.js +0 -28
  746. package/src/product/cropper/cropperV1Document.d.ts +0 -10
  747. package/src/product/cropper/cropperV1Document.js +0 -15
  748. package/src/product/cropper/cropperV1Page.d.ts +0 -12
  749. package/src/product/cropper/cropperV1Page.js +0 -26
  750. package/src/product/cropper/index.d.ts +0 -1
  751. package/src/product/cropper/index.js +0 -5
  752. package/src/product/cropper/internal.d.ts +0 -3
  753. package/src/product/cropper/internal.js +0 -9
  754. package/src/product/custom/customV1.d.ts +0 -17
  755. package/src/product/custom/customV1.js +0 -23
  756. package/src/product/custom/customV1Document.d.ts +0 -32
  757. package/src/product/custom/customV1Document.js +0 -66
  758. package/src/product/custom/customV1Page.d.ts +0 -21
  759. package/src/product/custom/customV1Page.js +0 -40
  760. package/src/product/custom/internal.d.ts +0 -3
  761. package/src/product/custom/internal.js +0 -9
  762. package/src/product/deliveryNote/deliveryNoteV1.d.ts +0 -16
  763. package/src/product/deliveryNote/deliveryNoteV1.js +0 -27
  764. package/src/product/deliveryNote/deliveryNoteV1Document.d.ts +0 -26
  765. package/src/product/deliveryNote/deliveryNoteV1Document.js +0 -54
  766. package/src/product/deliveryNote/index.d.ts +0 -1
  767. package/src/product/deliveryNote/index.js +0 -5
  768. package/src/product/deliveryNote/internal.d.ts +0 -2
  769. package/src/product/deliveryNote/internal.js +0 -7
  770. package/src/product/driverLicense/driverLicenseV1.d.ts +0 -16
  771. package/src/product/driverLicense/driverLicenseV1.js +0 -27
  772. package/src/product/driverLicense/driverLicenseV1Document.d.ts +0 -38
  773. package/src/product/driverLicense/driverLicenseV1Document.js +0 -84
  774. package/src/product/driverLicense/index.d.ts +0 -1
  775. package/src/product/driverLicense/index.js +0 -5
  776. package/src/product/driverLicense/internal.d.ts +0 -2
  777. package/src/product/driverLicense/internal.js +0 -7
  778. package/src/product/financialDocument/financialDocumentV1.d.ts +0 -16
  779. package/src/product/financialDocument/financialDocumentV1.js +0 -27
  780. package/src/product/financialDocument/financialDocumentV1Document.d.ts +0 -82
  781. package/src/product/financialDocument/financialDocumentV1Document.js +0 -211
  782. package/src/product/financialDocument/financialDocumentV1LineItem.d.ts +0 -42
  783. package/src/product/financialDocument/financialDocumentV1LineItem.js +0 -144
  784. package/src/product/financialDocument/index.d.ts +0 -1
  785. package/src/product/financialDocument/index.js +0 -5
  786. package/src/product/financialDocument/internal.d.ts +0 -3
  787. package/src/product/financialDocument/internal.js +0 -9
  788. package/src/product/fr/bankAccountDetails/bankAccountDetailsV1.d.ts +0 -16
  789. package/src/product/fr/bankAccountDetails/bankAccountDetailsV1.js +0 -27
  790. package/src/product/fr/bankAccountDetails/bankAccountDetailsV1Document.d.ts +0 -18
  791. package/src/product/fr/bankAccountDetails/bankAccountDetailsV1Document.js +0 -34
  792. package/src/product/fr/bankAccountDetails/bankAccountDetailsV2.d.ts +0 -16
  793. package/src/product/fr/bankAccountDetails/bankAccountDetailsV2.js +0 -27
  794. package/src/product/fr/bankAccountDetails/bankAccountDetailsV2Bban.d.ts +0 -34
  795. package/src/product/fr/bankAccountDetails/bankAccountDetailsV2Bban.js +0 -68
  796. package/src/product/fr/bankAccountDetails/bankAccountDetailsV2Document.d.ts +0 -21
  797. package/src/product/fr/bankAccountDetails/bankAccountDetailsV2Document.js +0 -40
  798. package/src/product/fr/bankAccountDetails/index.d.ts +0 -2
  799. package/src/product/fr/bankAccountDetails/index.js +0 -7
  800. package/src/product/fr/bankAccountDetails/internal.d.ts +0 -5
  801. package/src/product/fr/bankAccountDetails/internal.js +0 -13
  802. package/src/product/fr/carteGrise/carteGriseV1.d.ts +0 -16
  803. package/src/product/fr/carteGrise/carteGriseV1.js +0 -27
  804. package/src/product/fr/carteGrise/carteGriseV1Document.d.ts +0 -94
  805. package/src/product/fr/carteGrise/carteGriseV1Document.js +0 -224
  806. package/src/product/fr/carteGrise/index.d.ts +0 -1
  807. package/src/product/fr/carteGrise/index.js +0 -5
  808. package/src/product/fr/carteGrise/internal.d.ts +0 -2
  809. package/src/product/fr/carteGrise/internal.js +0 -7
  810. package/src/product/fr/energyBill/energyBillV1.d.ts +0 -16
  811. package/src/product/fr/energyBill/energyBillV1.js +0 -27
  812. package/src/product/fr/energyBill/energyBillV1Document.d.ts +0 -49
  813. package/src/product/fr/energyBill/energyBillV1Document.js +0 -145
  814. package/src/product/fr/energyBill/energyBillV1EnergyConsumer.d.ts +0 -30
  815. package/src/product/fr/energyBill/energyBillV1EnergyConsumer.js +0 -58
  816. package/src/product/fr/energyBill/energyBillV1EnergySupplier.d.ts +0 -30
  817. package/src/product/fr/energyBill/energyBillV1EnergySupplier.js +0 -58
  818. package/src/product/fr/energyBill/energyBillV1EnergyUsage.d.ts +0 -42
  819. package/src/product/fr/energyBill/energyBillV1EnergyUsage.js +0 -141
  820. package/src/product/fr/energyBill/energyBillV1MeterDetail.d.ts +0 -32
  821. package/src/product/fr/energyBill/energyBillV1MeterDetail.js +0 -63
  822. package/src/product/fr/energyBill/energyBillV1Subscription.d.ts +0 -38
  823. package/src/product/fr/energyBill/energyBillV1Subscription.js +0 -118
  824. package/src/product/fr/energyBill/energyBillV1TaxesAndContribution.d.ts +0 -38
  825. package/src/product/fr/energyBill/energyBillV1TaxesAndContribution.js +0 -118
  826. package/src/product/fr/energyBill/index.d.ts +0 -1
  827. package/src/product/fr/energyBill/index.js +0 -5
  828. package/src/product/fr/energyBill/internal.d.ts +0 -8
  829. package/src/product/fr/energyBill/internal.js +0 -19
  830. package/src/product/fr/healthCard/healthCardV1.d.ts +0 -16
  831. package/src/product/fr/healthCard/healthCardV1.js +0 -27
  832. package/src/product/fr/healthCard/healthCardV1Document.d.ts +0 -20
  833. package/src/product/fr/healthCard/healthCardV1Document.js +0 -43
  834. package/src/product/fr/healthCard/index.d.ts +0 -1
  835. package/src/product/fr/healthCard/index.js +0 -5
  836. package/src/product/fr/healthCard/internal.d.ts +0 -2
  837. package/src/product/fr/healthCard/internal.js +0 -7
  838. package/src/product/fr/idCard/idCardV1.d.ts +0 -17
  839. package/src/product/fr/idCard/idCardV1.js +0 -28
  840. package/src/product/fr/idCard/idCardV1Document.d.ts +0 -32
  841. package/src/product/fr/idCard/idCardV1Document.js +0 -73
  842. package/src/product/fr/idCard/idCardV1Page.d.ts +0 -12
  843. package/src/product/fr/idCard/idCardV1Page.js +0 -23
  844. package/src/product/fr/idCard/idCardV2.d.ts +0 -17
  845. package/src/product/fr/idCard/idCardV2.js +0 -28
  846. package/src/product/fr/idCard/idCardV2Document.d.ts +0 -42
  847. package/src/product/fr/idCard/idCardV2Document.js +0 -98
  848. package/src/product/fr/idCard/idCardV2Page.d.ts +0 -14
  849. package/src/product/fr/idCard/idCardV2Page.js +0 -27
  850. package/src/product/fr/idCard/index.d.ts +0 -2
  851. package/src/product/fr/idCard/index.js +0 -7
  852. package/src/product/fr/idCard/internal.d.ts +0 -6
  853. package/src/product/fr/idCard/internal.js +0 -15
  854. package/src/product/fr/index.d.ts +0 -9
  855. package/src/product/fr/index.js +0 -21
  856. package/src/product/fr/internal.d.ts +0 -6
  857. package/src/product/fr/internal.js +0 -42
  858. package/src/product/fr/payslip/index.d.ts +0 -2
  859. package/src/product/fr/payslip/index.js +0 -7
  860. package/src/product/fr/payslip/internal.d.ts +0 -20
  861. package/src/product/fr/payslip/internal.js +0 -43
  862. package/src/product/fr/payslip/payslipV2.d.ts +0 -16
  863. package/src/product/fr/payslip/payslipV2.js +0 -27
  864. package/src/product/fr/payslip/payslipV2BankAccountDetail.d.ts +0 -32
  865. package/src/product/fr/payslip/payslipV2BankAccountDetail.js +0 -63
  866. package/src/product/fr/payslip/payslipV2Document.d.ts +0 -35
  867. package/src/product/fr/payslip/payslipV2Document.js +0 -80
  868. package/src/product/fr/payslip/payslipV2Employee.d.ts +0 -40
  869. package/src/product/fr/payslip/payslipV2Employee.js +0 -83
  870. package/src/product/fr/payslip/payslipV2Employer.d.ts +0 -40
  871. package/src/product/fr/payslip/payslipV2Employer.js +0 -83
  872. package/src/product/fr/payslip/payslipV2Employment.d.ts +0 -38
  873. package/src/product/fr/payslip/payslipV2Employment.js +0 -86
  874. package/src/product/fr/payslip/payslipV2PayDetail.d.ts +0 -46
  875. package/src/product/fr/payslip/payslipV2PayDetail.js +0 -169
  876. package/src/product/fr/payslip/payslipV2PayPeriod.d.ts +0 -36
  877. package/src/product/fr/payslip/payslipV2PayPeriod.js +0 -73
  878. package/src/product/fr/payslip/payslipV2Pto.d.ts +0 -32
  879. package/src/product/fr/payslip/payslipV2Pto.js +0 -85
  880. package/src/product/fr/payslip/payslipV2SalaryDetail.d.ts +0 -34
  881. package/src/product/fr/payslip/payslipV2SalaryDetail.js +0 -98
  882. package/src/product/fr/payslip/payslipV3.d.ts +0 -16
  883. package/src/product/fr/payslip/payslipV3.js +0 -27
  884. package/src/product/fr/payslip/payslipV3BankAccountDetail.d.ts +0 -32
  885. package/src/product/fr/payslip/payslipV3BankAccountDetail.js +0 -63
  886. package/src/product/fr/payslip/payslipV3Document.d.ts +0 -35
  887. package/src/product/fr/payslip/payslipV3Document.js +0 -96
  888. package/src/product/fr/payslip/payslipV3Employee.d.ts +0 -40
  889. package/src/product/fr/payslip/payslipV3Employee.js +0 -83
  890. package/src/product/fr/payslip/payslipV3Employer.d.ts +0 -40
  891. package/src/product/fr/payslip/payslipV3Employer.js +0 -83
  892. package/src/product/fr/payslip/payslipV3Employment.d.ts +0 -40
  893. package/src/product/fr/payslip/payslipV3Employment.js +0 -83
  894. package/src/product/fr/payslip/payslipV3PaidTimeOff.d.ts +0 -36
  895. package/src/product/fr/payslip/payslipV3PaidTimeOff.js +0 -108
  896. package/src/product/fr/payslip/payslipV3PayDetail.d.ts +0 -46
  897. package/src/product/fr/payslip/payslipV3PayDetail.js +0 -169
  898. package/src/product/fr/payslip/payslipV3PayPeriod.d.ts +0 -36
  899. package/src/product/fr/payslip/payslipV3PayPeriod.js +0 -73
  900. package/src/product/fr/payslip/payslipV3SalaryDetail.d.ts +0 -36
  901. package/src/product/fr/payslip/payslipV3SalaryDetail.js +0 -111
  902. package/src/product/generated/generatedV1.d.ts +0 -17
  903. package/src/product/generated/generatedV1.js +0 -24
  904. package/src/product/generated/generatedV1Document.d.ts +0 -8
  905. package/src/product/generated/generatedV1Document.js +0 -30
  906. package/src/product/generated/generatedV1Page.d.ts +0 -8
  907. package/src/product/generated/generatedV1Page.js +0 -30
  908. package/src/product/generated/generatedV1Prediction.d.ts +0 -25
  909. package/src/product/generated/generatedV1Prediction.js +0 -84
  910. package/src/product/generated/internal.d.ts +0 -4
  911. package/src/product/generated/internal.js +0 -11
  912. package/src/product/ind/index.d.ts +0 -1
  913. package/src/product/ind/index.js +0 -5
  914. package/src/product/ind/indianPassport/index.d.ts +0 -1
  915. package/src/product/ind/indianPassport/index.js +0 -5
  916. package/src/product/ind/indianPassport/indianPassportV1.d.ts +0 -16
  917. package/src/product/ind/indianPassport/indianPassportV1.js +0 -27
  918. package/src/product/ind/indianPassport/indianPassportV1Document.d.ts +0 -58
  919. package/src/product/ind/indianPassport/indianPassportV1Document.js +0 -132
  920. package/src/product/ind/indianPassport/internal.d.ts +0 -2
  921. package/src/product/ind/indianPassport/internal.js +0 -7
  922. package/src/product/ind/internal.d.ts +0 -1
  923. package/src/product/ind/internal.js +0 -37
  924. package/src/product/index.d.ts +0 -20
  925. package/src/product/index.js +0 -73
  926. package/src/product/internal.d.ts +0 -20
  927. package/src/product/internal.js +0 -56
  928. package/src/product/internationalId/index.d.ts +0 -1
  929. package/src/product/internationalId/index.js +0 -5
  930. package/src/product/internationalId/internal.d.ts +0 -2
  931. package/src/product/internationalId/internal.js +0 -7
  932. package/src/product/internationalId/internationalIdV2.d.ts +0 -16
  933. package/src/product/internationalId/internationalIdV2.js +0 -27
  934. package/src/product/internationalId/internationalIdV2Document.d.ts +0 -46
  935. package/src/product/internationalId/internationalIdV2Document.js +0 -111
  936. package/src/product/invoice/index.d.ts +0 -1
  937. package/src/product/invoice/index.js +0 -5
  938. package/src/product/invoice/internal.d.ts +0 -3
  939. package/src/product/invoice/internal.js +0 -9
  940. package/src/product/invoice/invoiceV4.d.ts +0 -16
  941. package/src/product/invoice/invoiceV4.js +0 -27
  942. package/src/product/invoice/invoiceV4Document.d.ts +0 -71
  943. package/src/product/invoice/invoiceV4Document.js +0 -191
  944. package/src/product/invoice/invoiceV4LineItem.d.ts +0 -42
  945. package/src/product/invoice/invoiceV4LineItem.js +0 -144
  946. package/src/product/invoiceSplitter/index.d.ts +0 -1
  947. package/src/product/invoiceSplitter/index.js +0 -5
  948. package/src/product/invoiceSplitter/internal.d.ts +0 -3
  949. package/src/product/invoiceSplitter/internal.js +0 -9
  950. package/src/product/invoiceSplitter/invoiceSplitterV1.d.ts +0 -16
  951. package/src/product/invoiceSplitter/invoiceSplitterV1.js +0 -27
  952. package/src/product/invoiceSplitter/invoiceSplitterV1Document.d.ts +0 -14
  953. package/src/product/invoiceSplitter/invoiceSplitterV1Document.js +0 -35
  954. package/src/product/invoiceSplitter/invoiceSplitterV1InvoicePageGroup.d.ts +0 -28
  955. package/src/product/invoiceSplitter/invoiceSplitterV1InvoicePageGroup.js +0 -54
  956. package/src/product/multiReceiptsDetector/index.d.ts +0 -1
  957. package/src/product/multiReceiptsDetector/index.js +0 -5
  958. package/src/product/multiReceiptsDetector/internal.d.ts +0 -2
  959. package/src/product/multiReceiptsDetector/internal.js +0 -7
  960. package/src/product/multiReceiptsDetector/multiReceiptsDetectorV1.d.ts +0 -16
  961. package/src/product/multiReceiptsDetector/multiReceiptsDetectorV1.js +0 -27
  962. package/src/product/multiReceiptsDetector/multiReceiptsDetectorV1Document.d.ts +0 -14
  963. package/src/product/multiReceiptsDetector/multiReceiptsDetectorV1Document.js +0 -28
  964. package/src/product/nutritionFactsLabel/index.d.ts +0 -1
  965. package/src/product/nutritionFactsLabel/index.js +0 -5
  966. package/src/product/nutritionFactsLabel/internal.d.ts +0 -15
  967. package/src/product/nutritionFactsLabel/internal.js +0 -33
  968. package/src/product/nutritionFactsLabel/nutritionFactsLabelV1.d.ts +0 -16
  969. package/src/product/nutritionFactsLabel/nutritionFactsLabelV1.js +0 -27
  970. package/src/product/nutritionFactsLabel/nutritionFactsLabelV1AddedSugar.d.ts +0 -32
  971. package/src/product/nutritionFactsLabel/nutritionFactsLabelV1AddedSugar.js +0 -85
  972. package/src/product/nutritionFactsLabel/nutritionFactsLabelV1Calorie.d.ts +0 -32
  973. package/src/product/nutritionFactsLabel/nutritionFactsLabelV1Calorie.js +0 -85
  974. package/src/product/nutritionFactsLabel/nutritionFactsLabelV1Cholesterol.d.ts +0 -32
  975. package/src/product/nutritionFactsLabel/nutritionFactsLabelV1Cholesterol.js +0 -85
  976. package/src/product/nutritionFactsLabel/nutritionFactsLabelV1DietaryFiber.d.ts +0 -32
  977. package/src/product/nutritionFactsLabel/nutritionFactsLabelV1DietaryFiber.js +0 -85
  978. package/src/product/nutritionFactsLabel/nutritionFactsLabelV1Document.d.ts +0 -53
  979. package/src/product/nutritionFactsLabel/nutritionFactsLabelV1Document.js +0 -117
  980. package/src/product/nutritionFactsLabel/nutritionFactsLabelV1Nutrient.d.ts +0 -36
  981. package/src/product/nutritionFactsLabel/nutritionFactsLabelV1Nutrient.js +0 -108
  982. package/src/product/nutritionFactsLabel/nutritionFactsLabelV1Protein.d.ts +0 -32
  983. package/src/product/nutritionFactsLabel/nutritionFactsLabelV1Protein.js +0 -85
  984. package/src/product/nutritionFactsLabel/nutritionFactsLabelV1SaturatedFat.d.ts +0 -32
  985. package/src/product/nutritionFactsLabel/nutritionFactsLabelV1SaturatedFat.js +0 -85
  986. package/src/product/nutritionFactsLabel/nutritionFactsLabelV1ServingSize.d.ts +0 -30
  987. package/src/product/nutritionFactsLabel/nutritionFactsLabelV1ServingSize.js +0 -66
  988. package/src/product/nutritionFactsLabel/nutritionFactsLabelV1Sodium.d.ts +0 -34
  989. package/src/product/nutritionFactsLabel/nutritionFactsLabelV1Sodium.js +0 -90
  990. package/src/product/nutritionFactsLabel/nutritionFactsLabelV1TotalCarbohydrate.d.ts +0 -32
  991. package/src/product/nutritionFactsLabel/nutritionFactsLabelV1TotalCarbohydrate.js +0 -85
  992. package/src/product/nutritionFactsLabel/nutritionFactsLabelV1TotalFat.d.ts +0 -32
  993. package/src/product/nutritionFactsLabel/nutritionFactsLabelV1TotalFat.js +0 -85
  994. package/src/product/nutritionFactsLabel/nutritionFactsLabelV1TotalSugar.d.ts +0 -32
  995. package/src/product/nutritionFactsLabel/nutritionFactsLabelV1TotalSugar.js +0 -85
  996. package/src/product/nutritionFactsLabel/nutritionFactsLabelV1TransFat.d.ts +0 -32
  997. package/src/product/nutritionFactsLabel/nutritionFactsLabelV1TransFat.js +0 -85
  998. package/src/product/passport/index.d.ts +0 -1
  999. package/src/product/passport/index.js +0 -5
  1000. package/src/product/passport/internal.d.ts +0 -2
  1001. package/src/product/passport/internal.js +0 -7
  1002. package/src/product/passport/passportV1.d.ts +0 -16
  1003. package/src/product/passport/passportV1.js +0 -27
  1004. package/src/product/passport/passportV1Document.d.ts +0 -34
  1005. package/src/product/passport/passportV1Document.js +0 -78
  1006. package/src/product/receipt/index.d.ts +0 -1
  1007. package/src/product/receipt/index.js +0 -5
  1008. package/src/product/receipt/internal.d.ts +0 -3
  1009. package/src/product/receipt/internal.js +0 -9
  1010. package/src/product/receipt/receiptV5.d.ts +0 -16
  1011. package/src/product/receipt/receiptV5.js +0 -27
  1012. package/src/product/receipt/receiptV5Document.d.ts +0 -47
  1013. package/src/product/receipt/receiptV5Document.js +0 -116
  1014. package/src/product/receipt/receiptV5LineItem.d.ts +0 -34
  1015. package/src/product/receipt/receiptV5LineItem.js +0 -98
  1016. package/src/product/resume/index.d.ts +0 -1
  1017. package/src/product/resume/index.js +0 -5
  1018. package/src/product/resume/internal.d.ts +0 -7
  1019. package/src/product/resume/internal.js +0 -17
  1020. package/src/product/resume/resumeV1.d.ts +0 -16
  1021. package/src/product/resume/resumeV1.js +0 -27
  1022. package/src/product/resume/resumeV1Certificate.d.ts +0 -34
  1023. package/src/product/resume/resumeV1Certificate.js +0 -89
  1024. package/src/product/resume/resumeV1Document.d.ts +0 -51
  1025. package/src/product/resume/resumeV1Document.js +0 -198
  1026. package/src/product/resume/resumeV1Education.d.ts +0 -40
  1027. package/src/product/resume/resumeV1Education.js +0 -119
  1028. package/src/product/resume/resumeV1Language.d.ts +0 -30
  1029. package/src/product/resume/resumeV1Language.js +0 -69
  1030. package/src/product/resume/resumeV1ProfessionalExperience.d.ts +0 -44
  1031. package/src/product/resume/resumeV1ProfessionalExperience.js +0 -139
  1032. package/src/product/resume/resumeV1SocialNetworksUrl.d.ts +0 -30
  1033. package/src/product/resume/resumeV1SocialNetworksUrl.js +0 -69
  1034. package/src/product/us/bankCheck/bankCheckV1.d.ts +0 -17
  1035. package/src/product/us/bankCheck/bankCheckV1.js +0 -28
  1036. package/src/product/us/bankCheck/bankCheckV1Document.d.ts +0 -24
  1037. package/src/product/us/bankCheck/bankCheckV1Document.js +0 -53
  1038. package/src/product/us/bankCheck/bankCheckV1Page.d.ts +0 -14
  1039. package/src/product/us/bankCheck/bankCheckV1Page.js +0 -32
  1040. package/src/product/us/bankCheck/index.d.ts +0 -1
  1041. package/src/product/us/bankCheck/index.js +0 -5
  1042. package/src/product/us/bankCheck/internal.d.ts +0 -3
  1043. package/src/product/us/bankCheck/internal.js +0 -9
  1044. package/src/product/us/healthcareCard/healthcareCardV1.d.ts +0 -16
  1045. package/src/product/us/healthcareCard/healthcareCardV1.js +0 -27
  1046. package/src/product/us/healthcareCard/healthcareCardV1Copay.d.ts +0 -30
  1047. package/src/product/us/healthcareCard/healthcareCardV1Copay.js +0 -72
  1048. package/src/product/us/healthcareCard/healthcareCardV1Document.d.ts +0 -41
  1049. package/src/product/us/healthcareCard/healthcareCardV1Document.js +0 -106
  1050. package/src/product/us/healthcareCard/index.d.ts +0 -1
  1051. package/src/product/us/healthcareCard/index.js +0 -5
  1052. package/src/product/us/healthcareCard/internal.d.ts +0 -3
  1053. package/src/product/us/healthcareCard/internal.js +0 -9
  1054. package/src/product/us/index.d.ts +0 -3
  1055. package/src/product/us/index.js +0 -9
  1056. package/src/product/us/internal.d.ts +0 -3
  1057. package/src/product/us/internal.js +0 -39
  1058. package/src/product/us/usMail/index.d.ts +0 -1
  1059. package/src/product/us/usMail/index.js +0 -5
  1060. package/src/product/us/usMail/internal.d.ts +0 -4
  1061. package/src/product/us/usMail/internal.js +0 -11
  1062. package/src/product/us/usMail/usMailV3.d.ts +0 -16
  1063. package/src/product/us/usMail/usMailV3.js +0 -27
  1064. package/src/product/us/usMail/usMailV3Document.d.ts +0 -24
  1065. package/src/product/us/usMail/usMailV3Document.js +0 -68
  1066. package/src/product/us/usMail/usMailV3RecipientAddress.d.ts +0 -42
  1067. package/src/product/us/usMail/usMailV3RecipientAddress.js +0 -129
  1068. package/src/product/us/usMail/usMailV3SenderAddress.d.ts +0 -36
  1069. package/src/product/us/usMail/usMailV3SenderAddress.js +0 -73
  1070. /package/bin/{mindee.d.ts → mindeeV1.d.ts} +0 -0
  1071. /package/src/{imageOperations → image}/imageCompressor.d.ts +0 -0
  1072. /package/src/input/{sources/inputSource.d.ts → inputSource.d.ts} +0 -0
  1073. /package/src/parsing/{common/dateParser.d.ts → dateParser.d.ts} +0 -0
  1074. /package/src/parsing/{common/stringDict.d.ts → stringDict.d.ts} +0 -0
  1075. /package/src/{cli.d.ts → v1/cli.d.ts} +0 -0
  1076. /package/src/{parsing → v1/parsing}/common/executionPriority.d.ts +0 -0
  1077. /package/src/{parsing → v1/parsing}/common/extras/extras.d.ts +0 -0
  1078. /package/src/{parsing → v1/parsing}/common/prediction.d.ts +0 -0
  1079. /package/src/{parsing → v1/parsing}/common/product.d.ts +0 -0
  1080. /package/src/{parsing → v1/parsing}/common/summaryHelper.d.ts +0 -0
  1081. /package/src/{parsing/v2 → v2/parsing/inference}/field/fieldConfidence.d.ts +0 -0
@@ -0,0 +1,25 @@
1
+ import { StringField, FieldConstructor } from "./text.js";
2
+ /**
3
+ * A field containing a detailed address value broken down into components
4
+ * (street number, city, postal code, …) while still exposing the full
5
+ * address string through {@link StringField.value}.
6
+ */
7
+ export declare class AddressField extends StringField {
8
+ /** Street number. */
9
+ streetNumber?: string;
10
+ /** Street name. */
11
+ streetName?: string;
12
+ /** PO-box number. */
13
+ poBox?: string;
14
+ /** Additional address complement. */
15
+ addressComplement?: string;
16
+ /** City or locality. */
17
+ city?: string;
18
+ /** Postal / ZIP code. */
19
+ postalCode?: string;
20
+ /** State, province or region. */
21
+ state?: string;
22
+ /** Country. */
23
+ country?: string;
24
+ constructor({ prediction, valueKey, reconstructed, pageId, }: FieldConstructor);
25
+ }
@@ -0,0 +1,36 @@
1
+ import { StringField } from "./text.js";
2
+ /**
3
+ * A field containing a detailed address value broken down into components
4
+ * (street number, city, postal code, …) while still exposing the full
5
+ * address string through {@link StringField.value}.
6
+ */
7
+ export class AddressField extends StringField {
8
+ constructor({ prediction = {}, valueKey = "value", reconstructed = false, pageId, }) {
9
+ super({ prediction, valueKey, reconstructed, pageId });
10
+ // Populate the sub-components if they exist in the prediction object
11
+ if (prediction["street_number"]) {
12
+ this.streetNumber = prediction["street_number"];
13
+ }
14
+ if (prediction["street_name"]) {
15
+ this.streetName = prediction["street_name"];
16
+ }
17
+ if (prediction["po_box"]) {
18
+ this.poBox = prediction["po_box"];
19
+ }
20
+ if (prediction["address_complement"]) {
21
+ this.addressComplement = prediction["address_complement"];
22
+ }
23
+ if (prediction["city"]) {
24
+ this.city = prediction["city"];
25
+ }
26
+ if (prediction["postal_code"]) {
27
+ this.postalCode = prediction["postal_code"];
28
+ }
29
+ if (prediction["state"]) {
30
+ this.state = prediction["state"];
31
+ }
32
+ if (prediction["country"]) {
33
+ this.country = prediction["country"];
34
+ }
35
+ }
36
+ }
@@ -0,0 +1,17 @@
1
+ import { Field } from "./field.js";
2
+ import { BaseFieldConstructor } from "./base.js";
3
+ /**
4
+ * A field containing an amount value.
5
+ */
6
+ export declare class AmountField extends Field {
7
+ /** The value. */
8
+ value?: number;
9
+ /**
10
+ * @param {BaseFieldConstructor} constructor Constructor parameters.
11
+ */
12
+ constructor({ prediction, valueKey, reconstructed, pageId, }: BaseFieldConstructor);
13
+ /**
14
+ * Default string representation.
15
+ */
16
+ toString(): string;
17
+ }
@@ -0,0 +1,29 @@
1
+ import { Field } from "./field.js";
2
+ import { floatToString } from "../../../v1/parsing/common/index.js";
3
+ /**
4
+ * A field containing an amount value.
5
+ */
6
+ export class AmountField extends Field {
7
+ /**
8
+ * @param {BaseFieldConstructor} constructor Constructor parameters.
9
+ */
10
+ constructor({ prediction = {}, valueKey = "value", reconstructed = false, pageId = undefined, }) {
11
+ super({ prediction, valueKey, reconstructed, pageId });
12
+ /** The value. */
13
+ this.value = undefined;
14
+ this.value = +parseFloat(prediction[valueKey]);
15
+ if (isNaN(this.value)) {
16
+ this.value = undefined;
17
+ this.confidence = 0.0;
18
+ }
19
+ }
20
+ /**
21
+ * Default string representation.
22
+ */
23
+ toString() {
24
+ if (this.value !== undefined) {
25
+ return floatToString(this.value);
26
+ }
27
+ return "";
28
+ }
29
+ }
@@ -0,0 +1,38 @@
1
+ import { StringDict } from "../../../parsing/stringDict.js";
2
+ /**
3
+ * @property {object} prediction - Prediction object from HTTP response.
4
+ * @property {string} valueKey - Key to use in the prediction dict.
5
+ * @property {boolean} reconstructed - Is the object reconstructed (not extracted by the API).
6
+ * @property {number} pageId - Page ID for multi-page document.
7
+ */
8
+ export interface BaseFieldConstructor {
9
+ prediction: StringDict;
10
+ valueKey?: string;
11
+ reconstructed?: boolean;
12
+ pageId?: number;
13
+ }
14
+ /**
15
+ * Base class for most fields.
16
+ */
17
+ export declare class BaseField {
18
+ /** The value. */
19
+ value?: string | number | boolean;
20
+ /** `true` when the field was reconstructed or computed using other fields. */
21
+ reconstructed: boolean;
22
+ /** Page ID for multi-page document. */
23
+ pageId?: number;
24
+ /**
25
+ * @param {BaseFieldConstructor} constructor Constructor parameters.
26
+ */
27
+ constructor({ prediction, valueKey, reconstructed, pageId, }: BaseFieldConstructor);
28
+ compare(other: BaseField): boolean;
29
+ /**
30
+ * @param {BaseField[]} array - Array of Fields
31
+ * @returns {number} Sum of all the Fields values in the array
32
+ */
33
+ static arraySum(array: BaseField[]): number;
34
+ /**
35
+ * Default string representation.
36
+ */
37
+ toString(): string;
38
+ }
@@ -0,0 +1,54 @@
1
+ /**
2
+ * Base class for most fields.
3
+ */
4
+ export class BaseField {
5
+ /**
6
+ * @param {BaseFieldConstructor} constructor Constructor parameters.
7
+ */
8
+ constructor({ prediction = {}, valueKey = "value", reconstructed = false, pageId = undefined, }) {
9
+ /** The value. */
10
+ this.value = undefined;
11
+ this.reconstructed = reconstructed;
12
+ if (prediction !== undefined &&
13
+ prediction !== null &&
14
+ valueKey in prediction &&
15
+ prediction[valueKey] !== null) {
16
+ this.value = prediction[valueKey];
17
+ this.pageId = pageId !== undefined ? pageId : prediction["page_id"];
18
+ }
19
+ }
20
+ compare(other) {
21
+ if (this.value === null && other.value === null)
22
+ return true;
23
+ if (this.value === null || other.value === null)
24
+ return false;
25
+ if (typeof this.value === "string" && typeof other.value === "string") {
26
+ return this.value.toLowerCase() === other.value.toLowerCase();
27
+ }
28
+ return this.value === other.value;
29
+ }
30
+ /**
31
+ * @param {BaseField[]} array - Array of Fields
32
+ * @returns {number} Sum of all the Fields values in the array
33
+ */
34
+ static arraySum(array) {
35
+ let total = 0.0;
36
+ for (const field of array) {
37
+ if (typeof field.value !== "number")
38
+ return 0.0;
39
+ total += field.value;
40
+ if (isNaN(total))
41
+ return 0.0;
42
+ }
43
+ return total;
44
+ }
45
+ /**
46
+ * Default string representation.
47
+ */
48
+ toString() {
49
+ if (this.value !== undefined) {
50
+ return `${this.value}`;
51
+ }
52
+ return "";
53
+ }
54
+ }
@@ -0,0 +1,17 @@
1
+ import { StringDict } from "../../../parsing/stringDict.js";
2
+ import { Field } from "./field.js";
3
+ export interface FieldConstructor {
4
+ prediction: StringDict;
5
+ valueKey?: string;
6
+ reconstructed?: boolean;
7
+ pageId?: number | undefined;
8
+ }
9
+ /**
10
+ * A field containing a text value.
11
+ */
12
+ export declare class BooleanField extends Field {
13
+ /** The value. */
14
+ value?: boolean;
15
+ constructor({ prediction, valueKey, reconstructed, pageId, }: FieldConstructor);
16
+ toString(): string;
17
+ }
@@ -0,0 +1,18 @@
1
+ import { Field } from "./field.js";
2
+ /**
3
+ * A field containing a text value.
4
+ */
5
+ export class BooleanField extends Field {
6
+ constructor({ prediction = {}, valueKey = "value", reconstructed = false, pageId, }) {
7
+ super({ prediction, valueKey, reconstructed, pageId });
8
+ }
9
+ toString() {
10
+ if (this.value === true) {
11
+ return "True";
12
+ }
13
+ else if (this.value === false) {
14
+ return "False";
15
+ }
16
+ return "";
17
+ }
18
+ }
@@ -0,0 +1,11 @@
1
+ import { BaseField, BaseFieldConstructor } from "./base.js";
2
+ /**
3
+ * Represents a classifier value.
4
+ */
5
+ export declare class ClassificationField extends BaseField {
6
+ /** The confidence score of the prediction. */
7
+ confidence: number;
8
+ /** The classification. */
9
+ value?: string;
10
+ constructor({ prediction, valueKey, reconstructed, pageId, }: BaseFieldConstructor);
11
+ }
@@ -0,0 +1,10 @@
1
+ import { BaseField } from "./base.js";
2
+ /**
3
+ * Represents a classifier value.
4
+ */
5
+ export class ClassificationField extends BaseField {
6
+ constructor({ prediction = {}, valueKey = "value", reconstructed = false, pageId = undefined, }) {
7
+ super({ prediction, valueKey, reconstructed, pageId });
8
+ this.confidence = prediction["confidence"] ? prediction["confidence"] : 0.0;
9
+ }
10
+ }
@@ -0,0 +1,15 @@
1
+ import { Field } from "./field.js";
2
+ import { BaseFieldConstructor } from "./base.js";
3
+ /**
4
+ * A company registration item.
5
+ */
6
+ export declare class CompanyRegistrationField extends Field {
7
+ /** Registration identifier. */
8
+ value?: string;
9
+ /** Type of company registration. */
10
+ type: string;
11
+ constructor({ prediction, valueKey, reconstructed, pageId, }: BaseFieldConstructor);
12
+ toTableLine(): string;
13
+ toString(): string;
14
+ private printableValues;
15
+ }
@@ -0,0 +1,25 @@
1
+ import { Field } from "./field.js";
2
+ import { cleanOutString } from "../../../v1/parsing/common/index.js";
3
+ /**
4
+ * A company registration item.
5
+ */
6
+ export class CompanyRegistrationField extends Field {
7
+ constructor({ prediction = {}, valueKey = "value", reconstructed = false, pageId, }) {
8
+ super({ prediction, valueKey, reconstructed, pageId });
9
+ this.type = prediction["type"];
10
+ }
11
+ toTableLine() {
12
+ const printable = this.printableValues();
13
+ return `| ${printable["type"].padEnd(15)} | ${printable["value"].padEnd(20)} `;
14
+ }
15
+ toString() {
16
+ const printable = this.printableValues();
17
+ return `Type: ${printable["type"]}, Value: ${printable["value"]}`;
18
+ }
19
+ printableValues() {
20
+ const printable = {};
21
+ printable["type"] = cleanOutString(this.type);
22
+ printable["value"] = cleanOutString((this.value ?? "").toString());
23
+ return printable;
24
+ }
25
+ }
@@ -0,0 +1,18 @@
1
+ import { Field } from "./field.js";
2
+ import { BaseFieldConstructor } from "./base.js";
3
+ /**
4
+ * A field containing a date value.
5
+ */
6
+ export declare class DateField extends Field {
7
+ /** Date string in ISO format. */
8
+ value?: string;
9
+ /** Date as a standard JavaScript `Date` object. */
10
+ dateObject?: Date;
11
+ /** Whether the field was computed or retrieved directly from the document. */
12
+ isComputed?: boolean;
13
+ /**
14
+ * @param {BaseFieldConstructor} constructor Constructor parameters.
15
+ */
16
+ constructor({ prediction, valueKey, reconstructed, pageId, }: BaseFieldConstructor);
17
+ static compareDates(date1: Date, date2: Date): boolean;
18
+ }
@@ -0,0 +1,31 @@
1
+ import { Field } from "./field.js";
2
+ /**
3
+ * A field containing a date value.
4
+ */
5
+ export class DateField extends Field {
6
+ /**
7
+ * @param {BaseFieldConstructor} constructor Constructor parameters.
8
+ */
9
+ constructor({ prediction = {}, valueKey = "value", reconstructed = false, pageId, }) {
10
+ super({ prediction, valueKey, reconstructed, pageId });
11
+ if ("is_computed" in prediction) {
12
+ this.isComputed = prediction["is_computed"];
13
+ }
14
+ if (typeof this.value === "string") {
15
+ this.dateObject = new Date(this.value);
16
+ if (isNaN(this.dateObject.valueOf())) {
17
+ this.dateObject = undefined;
18
+ this.confidence = 0.0;
19
+ this.value = undefined;
20
+ }
21
+ else {
22
+ this.dateObject.setUTCHours(0, 0, 0, 0);
23
+ }
24
+ }
25
+ }
26
+ static compareDates(date1, date2) {
27
+ return date1.getFullYear() === date2.getFullYear() &&
28
+ date1.getMonth() === date2.getMonth() &&
29
+ date1.getDate() === date2.getDate();
30
+ }
31
+ }
@@ -0,0 +1,35 @@
1
+ import { BaseField, BaseFieldConstructor } from "./base.js";
2
+ import { Polygon, BoundingBox } from "../../../geometry/index.js";
3
+ /**
4
+ * A basic field with position and page information.
5
+ */
6
+ export declare class Field extends BaseField {
7
+ /**
8
+ * Contains exactly 4 relative vertices coordinates (points) of a right
9
+ * rectangle containing the field in the document.
10
+ */
11
+ boundingBox: BoundingBox;
12
+ /**
13
+ * Contains the relative vertices coordinates (points) of a polygon containing
14
+ * the field in the document.
15
+ */
16
+ polygon: Polygon;
17
+ /** The confidence score of the prediction. */
18
+ confidence: number;
19
+ /**
20
+ * @param {BaseFieldConstructor} constructor Constructor parameters.
21
+ */
22
+ constructor({ prediction, valueKey, reconstructed, pageId, }: BaseFieldConstructor);
23
+ /**
24
+ @param array1 first Array of Fields
25
+ @param array2 second Array of Fields
26
+ @param attr Attribute to compare
27
+ @returns true if all elements in array1 exist in array2 and vice-versa, false otherwise
28
+ */
29
+ static compareArrays(array1: Field[], array2: Field[], attr?: string): boolean;
30
+ /**
31
+ * @param {Field[]} array - Array of Fields
32
+ * @returns {number} product of all the fields probability
33
+ */
34
+ static arrayConfidence(array: Field[]): number;
35
+ }
@@ -0,0 +1,53 @@
1
+ import { BaseField } from "./base.js";
2
+ import { Polygon, getBoundingBox } from "../../../geometry/index.js";
3
+ /**
4
+ * A basic field with position and page information.
5
+ */
6
+ export class Field extends BaseField {
7
+ /**
8
+ * @param {BaseFieldConstructor} constructor Constructor parameters.
9
+ */
10
+ constructor({ prediction = {}, valueKey = "value", reconstructed = false, pageId, }) {
11
+ super({ prediction, valueKey, reconstructed, pageId });
12
+ /**
13
+ * Contains the relative vertices coordinates (points) of a polygon containing
14
+ * the field in the document.
15
+ */
16
+ this.polygon = new Polygon();
17
+ this.confidence = prediction["confidence"] ? prediction["confidence"] : 0.0;
18
+ if (prediction["polygon"]) {
19
+ this.polygon = prediction["polygon"];
20
+ }
21
+ this.boundingBox = getBoundingBox(this.polygon);
22
+ }
23
+ /**
24
+ @param array1 first Array of Fields
25
+ @param array2 second Array of Fields
26
+ @param attr Attribute to compare
27
+ @returns true if all elements in array1 exist in array2 and vice-versa, false otherwise
28
+ */
29
+ static compareArrays(array1, array2, attr = "value") {
30
+ const list1 = array1.map((item) => item[attr]);
31
+ const list2 = array2.map((item) => item[attr]);
32
+ if (list1.length !== list2.length)
33
+ return false;
34
+ for (const item1 of list1) {
35
+ if (!list2.includes(item1))
36
+ return false;
37
+ }
38
+ return true;
39
+ }
40
+ /**
41
+ * @param {Field[]} array - Array of Fields
42
+ * @returns {number} product of all the fields probability
43
+ */
44
+ static arrayConfidence(array) {
45
+ let total = 1.0;
46
+ for (const field of array) {
47
+ total *= field.confidence;
48
+ if (isNaN(total))
49
+ return 0.0;
50
+ }
51
+ return total;
52
+ }
53
+ }
@@ -0,0 +1,15 @@
1
+ export { AddressField } from "./addressField.js";
2
+ export { AmountField } from "./amount.js";
3
+ export { BaseField } from "./base.js";
4
+ export type { BaseFieldConstructor } from "./base.js";
5
+ export { BooleanField } from "./boolean.js";
6
+ export { ClassificationField } from "./classification.js";
7
+ export { CompanyRegistrationField } from "./companyRegistration.js";
8
+ export { DateField } from "./date.js";
9
+ export { LocaleField } from "./locale.js";
10
+ export { Field } from "./field.js";
11
+ export { Taxes, TaxField } from "./tax.js";
12
+ export { StringField } from "./text.js";
13
+ export { PaymentDetailsField } from "./paymentDetails.js";
14
+ export { PositionField } from "./position.js";
15
+ export type { Word } from "./word.js";
@@ -0,0 +1,13 @@
1
+ export { AddressField } from "./addressField.js";
2
+ export { AmountField } from "./amount.js";
3
+ export { BaseField } from "./base.js";
4
+ export { BooleanField } from "./boolean.js";
5
+ export { ClassificationField } from "./classification.js";
6
+ export { CompanyRegistrationField } from "./companyRegistration.js";
7
+ export { DateField } from "./date.js";
8
+ export { LocaleField } from "./locale.js";
9
+ export { Field } from "./field.js";
10
+ export { Taxes, TaxField } from "./tax.js";
11
+ export { StringField } from "./text.js";
12
+ export { PaymentDetailsField } from "./paymentDetails.js";
13
+ export { PositionField } from "./position.js";
@@ -0,0 +1,24 @@
1
+ import { BaseField, BaseFieldConstructor } from "./base.js";
2
+ /**
3
+ * The locale detected on the document.
4
+ */
5
+ export declare class LocaleField extends BaseField {
6
+ /** Locale in ISO format. */
7
+ value?: string;
8
+ /** The confidence score of the prediction. */
9
+ confidence: number;
10
+ /** ISO 639-1 language code */
11
+ language?: string;
12
+ /** ISO 3166-1 alpha-2 (or alpha-3) country code */
13
+ country?: string;
14
+ /** ISO 4217 currency code */
15
+ currency?: string;
16
+ /**
17
+ * @param {BaseFieldConstructor} constructor Constructor parameters.
18
+ */
19
+ constructor({ prediction, reconstructed, pageId, }: BaseFieldConstructor);
20
+ /**
21
+ * Default string representation.
22
+ */
23
+ toString(): string;
24
+ }
@@ -0,0 +1,39 @@
1
+ import { BaseField } from "./base.js";
2
+ /**
3
+ * The locale detected on the document.
4
+ */
5
+ export class LocaleField extends BaseField {
6
+ /**
7
+ * @param {BaseFieldConstructor} constructor Constructor parameters.
8
+ */
9
+ constructor({ prediction = {}, reconstructed = false, pageId = undefined, }) {
10
+ const valueKey = prediction["value"] ? "value" : "language";
11
+ super({ prediction, valueKey, reconstructed, pageId });
12
+ this.confidence = prediction["confidence"] ? prediction["confidence"] : 0.0;
13
+ this.language =
14
+ prediction["language"] !== undefined ? prediction["language"] : undefined;
15
+ this.country =
16
+ prediction["country"] !== undefined ? prediction["country"] : undefined;
17
+ this.currency =
18
+ prediction["currency"] !== undefined ? prediction["currency"] : undefined;
19
+ }
20
+ /**
21
+ * Default string representation.
22
+ */
23
+ toString() {
24
+ let outStr = "";
25
+ if (this.value) {
26
+ outStr += `${this.value}; `;
27
+ }
28
+ if (this.language) {
29
+ outStr += `${this.language}; `;
30
+ }
31
+ if (this.country) {
32
+ outStr += `${this.country}; `;
33
+ }
34
+ if (this.currency) {
35
+ outStr += `${this.currency};`;
36
+ }
37
+ return outStr.trimEnd();
38
+ }
39
+ }
@@ -0,0 +1,47 @@
1
+ import { StringDict } from "../../../parsing/stringDict.js";
2
+ import { Field } from "./field.js";
3
+ /**
4
+ * @property {StringDict} constructor.prediction - Prediction object from HTTP response
5
+ * @property {string} constructor.valueKey - Key to use in the prediction dict to get the iban.
6
+ * @property {string} constructor.accountNumberKey - Key to use to get the account number in the prediction dict.
7
+ * @property {string} constructor.ibanKey - Key to use to get the IBAN in the prediction dict.
8
+ * @property {string} constructor.routingNumberKey - Key to use to get the routing number in the prediction dict.
9
+ * @property {string} constructor.swiftKey - Key to use to get the SWIFT in the prediction dict.
10
+ * @property {boolean} constructor.reconstructed - Is the object reconstructed (not extracted by the API).
11
+ * @property {number} constructor.pageId - Page ID for multi-page document.
12
+ */
13
+ interface PaymentDetailsConstructor {
14
+ prediction: StringDict;
15
+ valueKey?: string;
16
+ accountNumberKey?: string;
17
+ ibanKey?: string;
18
+ routingNumberKey?: string;
19
+ swiftKey?: string;
20
+ reconstructed?: boolean;
21
+ pageId?: number;
22
+ }
23
+ /**
24
+ * Information on a single payment.
25
+ */
26
+ export declare class PaymentDetailsField extends Field {
27
+ #private;
28
+ /** Synonym for the `iban` property */
29
+ value?: string | undefined;
30
+ /** The account number. */
31
+ accountNumber: string | undefined;
32
+ /** The International Bank Account Number (IBAN). */
33
+ iban: string | undefined;
34
+ /** The routing number. */
35
+ routingNumber: string | undefined;
36
+ /** The bank's SWIFT Business Identifier Code (BIC). */
37
+ swift: string | undefined;
38
+ /**
39
+ * @param {PaymentDetailsConstructor} constructor Constructor parameters.
40
+ */
41
+ constructor({ prediction, valueKey, accountNumberKey, ibanKey, routingNumberKey, swiftKey, reconstructed, pageId, }: PaymentDetailsConstructor);
42
+ /**
43
+ * Default string representation.
44
+ */
45
+ toString(): string;
46
+ }
47
+ export {};
@@ -0,0 +1,56 @@
1
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
2
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
3
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
4
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
5
+ };
6
+ var _a, _PaymentDetailsField_isKeySet;
7
+ import { Field } from "./field.js";
8
+ /**
9
+ * Information on a single payment.
10
+ */
11
+ export class PaymentDetailsField extends Field {
12
+ /**
13
+ * @param {PaymentDetailsConstructor} constructor Constructor parameters.
14
+ */
15
+ constructor({ prediction = {}, valueKey = "iban", accountNumberKey = "account_number", ibanKey = "iban", routingNumberKey = "routing_number", swiftKey = "swift", reconstructed = false, pageId = undefined, }) {
16
+ super({ prediction, valueKey, reconstructed, pageId });
17
+ this.accountNumber = undefined;
18
+ this.iban = undefined;
19
+ this.routingNumber = undefined;
20
+ this.swift = undefined;
21
+ if (__classPrivateFieldGet(_a, _a, "m", _PaymentDetailsField_isKeySet).call(_a, prediction[accountNumberKey])) {
22
+ this.accountNumber = prediction[accountNumberKey];
23
+ }
24
+ if (__classPrivateFieldGet(_a, _a, "m", _PaymentDetailsField_isKeySet).call(_a, prediction[ibanKey])) {
25
+ this.iban = prediction[ibanKey];
26
+ }
27
+ if (__classPrivateFieldGet(_a, _a, "m", _PaymentDetailsField_isKeySet).call(_a, prediction[routingNumberKey])) {
28
+ this.routingNumber = prediction[routingNumberKey];
29
+ }
30
+ if (__classPrivateFieldGet(_a, _a, "m", _PaymentDetailsField_isKeySet).call(_a, prediction[swiftKey])) {
31
+ this.swift = prediction[swiftKey];
32
+ }
33
+ }
34
+ /**
35
+ * Default string representation.
36
+ */
37
+ toString() {
38
+ let str = "";
39
+ if (this.accountNumber !== undefined) {
40
+ str += `${this.accountNumber}; `;
41
+ }
42
+ if (this.iban !== undefined) {
43
+ str += `${this.iban}; `;
44
+ }
45
+ if (this.routingNumber !== undefined) {
46
+ str += `${this.routingNumber}; `;
47
+ }
48
+ if (this.swift !== undefined) {
49
+ str += `${this.swift}; `;
50
+ }
51
+ return str;
52
+ }
53
+ }
54
+ _a = PaymentDetailsField, _PaymentDetailsField_isKeySet = function _PaymentDetailsField_isKeySet(value) {
55
+ return typeof value === "string" && value !== "N/A";
56
+ };