mindee 4.36.2 → 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.
- package/CHANGELOG.md +5 -0
- package/bin/mindeeV1.js +3 -0
- package/bin/mindeeV2.d.ts +2 -0
- package/bin/mindeeV2.js +3 -0
- package/package.json +36 -26
- package/src/dependency/index.d.ts +1 -0
- package/src/dependency/index.js +1 -0
- package/src/dependency/optionalLoader.d.ts +6 -0
- package/src/dependency/optionalLoader.js +20 -0
- package/src/errors/handler.js +4 -8
- package/src/errors/index.d.ts +1 -1
- package/src/errors/index.js +1 -6
- package/src/errors/mindeeError.d.ts +6 -15
- package/src/errors/mindeeError.js +13 -30
- package/src/geometry/boundingBox.d.ts +2 -2
- package/src/geometry/boundingBox.js +3 -8
- package/src/geometry/boundingBoxUtils.d.ts +2 -2
- package/src/geometry/boundingBoxUtils.js +10 -17
- package/src/geometry/index.d.ts +6 -6
- package/src/geometry/index.js +4 -24
- package/src/geometry/minMax.js +1 -2
- package/src/geometry/point.js +1 -2
- package/src/geometry/polygon.d.ts +2 -2
- package/src/geometry/polygon.js +7 -11
- package/src/geometry/polygonUtils.d.ts +2 -2
- package/src/geometry/polygonUtils.js +14 -30
- package/src/http/apiCore.d.ts +30 -0
- package/src/http/apiCore.js +53 -0
- package/src/http/baseSettings.d.ts +5 -1
- package/src/http/baseSettings.js +15 -44
- package/src/http/index.d.ts +3 -6
- package/src/http/index.js +2 -24
- package/src/image/extractedImage.d.ts +29 -0
- package/src/image/extractedImage.js +99 -0
- package/src/image/imageCompressor.js +32 -0
- package/src/image/imageExtractor.d.ts +9 -0
- package/src/image/imageExtractor.js +93 -0
- package/src/image/index.d.ts +3 -0
- package/src/image/index.js +3 -0
- package/src/index.d.ts +7 -8
- package/src/index.js +7 -66
- package/src/input/base64Input.d.ts +12 -0
- package/src/input/base64Input.js +24 -0
- package/src/input/bufferInput.d.ts +10 -0
- package/src/input/bufferInput.js +20 -0
- package/src/input/bytesInput.d.ts +12 -0
- package/src/input/bytesInput.js +23 -0
- package/src/input/index.d.ts +11 -4
- package/src/input/index.js +9 -26
- package/src/input/inputSource.js +18 -0
- package/src/input/localInputSource.d.ts +55 -0
- package/src/input/localInputSource.js +146 -0
- package/src/input/pageOptions.d.ts +2 -2
- package/src/input/pageOptions.js +3 -5
- package/src/input/pathInput.d.ts +11 -0
- package/src/input/pathInput.js +24 -0
- package/src/input/streamInput.d.ts +14 -0
- package/src/input/streamInput.js +55 -0
- package/src/input/urlInput.d.ts +35 -0
- package/src/input/urlInput.js +95 -0
- package/src/logger.js +9 -12
- package/src/parsing/dateParser.js +9 -0
- package/src/parsing/index.d.ts +2 -5
- package/src/parsing/index.js +1 -41
- package/src/parsing/localResponseBase.d.ts +34 -0
- package/src/parsing/localResponseBase.js +91 -0
- package/src/parsing/stringDict.js +1 -0
- package/src/pdf/index.d.ts +4 -3
- package/src/pdf/index.js +3 -10
- package/src/pdf/pdfCompressor.js +41 -66
- package/src/pdf/pdfOperation.d.ts +4 -4
- package/src/pdf/pdfOperation.js +28 -22
- package/src/pdf/pdfUtils.js +9 -11
- package/src/v1/cli.js +201 -0
- package/src/v1/client.d.ts +215 -0
- package/src/v1/client.js +277 -0
- package/src/v1/extraction/index.d.ts +2 -0
- package/src/v1/extraction/index.js +2 -0
- package/src/v1/extraction/invoiceSplitterExtractor/extractedInvoiceSplitterImage.d.ts +9 -0
- package/src/v1/extraction/invoiceSplitterExtractor/extractedInvoiceSplitterImage.js +11 -0
- package/src/v1/extraction/invoiceSplitterExtractor/index.d.ts +2 -0
- package/src/v1/extraction/invoiceSplitterExtractor/index.js +2 -0
- package/src/v1/extraction/invoiceSplitterExtractor/invoiceSplitterExtractor.d.ts +13 -0
- package/src/v1/extraction/invoiceSplitterExtractor/invoiceSplitterExtractor.js +83 -0
- package/src/v1/extraction/multiReceiptsExtractor/extractedMultiReceiptImage.d.ts +9 -0
- package/src/v1/extraction/multiReceiptsExtractor/extractedMultiReceiptImage.js +11 -0
- package/src/v1/extraction/multiReceiptsExtractor/index.d.ts +2 -0
- package/src/v1/extraction/multiReceiptsExtractor/index.js +2 -0
- package/src/v1/extraction/multiReceiptsExtractor/multiReceiptsExtractor.d.ts +11 -0
- package/src/v1/extraction/multiReceiptsExtractor/multiReceiptsExtractor.js +81 -0
- package/src/v1/http/apiSettingsV1.d.ts +8 -0
- package/src/v1/http/apiSettingsV1.js +37 -0
- package/src/v1/http/endpoint.d.ts +69 -0
- package/src/v1/http/endpoint.js +229 -0
- package/src/v1/http/errors.d.ts +67 -0
- package/src/v1/http/errors.js +198 -0
- package/src/v1/http/httpParams.d.ts +19 -0
- package/src/v1/http/httpParams.js +1 -0
- package/src/v1/http/index.d.ts +5 -0
- package/src/v1/http/index.js +4 -0
- package/src/v1/http/responseValidation.d.ts +23 -0
- package/src/v1/http/responseValidation.js +73 -0
- package/src/v1/http/workflowEndpoint.d.ts +34 -0
- package/src/v1/http/workflowEndpoint.js +89 -0
- package/src/v1/index.d.ts +8 -0
- package/src/v1/index.js +7 -0
- package/src/v1/parsing/common/apiRequest.d.ts +19 -0
- package/src/v1/parsing/common/apiRequest.js +14 -0
- package/src/v1/parsing/common/apiResponse.d.ts +21 -0
- package/src/v1/parsing/common/apiResponse.js +21 -0
- package/src/v1/parsing/common/asyncPredictResponse.d.ts +44 -0
- package/src/v1/parsing/common/asyncPredictResponse.js +49 -0
- package/src/v1/parsing/common/document.d.ts +33 -0
- package/src/v1/parsing/common/document.js +71 -0
- package/src/v1/parsing/common/execution.d.ts +38 -0
- package/src/v1/parsing/common/execution.js +24 -0
- package/src/v1/parsing/common/executionFile.d.ts +12 -0
- package/src/v1/parsing/common/executionFile.js +10 -0
- package/src/v1/parsing/common/executionPriority.js +6 -0
- package/src/v1/parsing/common/extras/cropperExtra.d.ts +11 -0
- package/src/v1/parsing/common/extras/cropperExtra.js +26 -0
- package/src/v1/parsing/common/extras/extras.js +17 -0
- package/src/v1/parsing/common/extras/fullTextOcrExtra.d.ts +11 -0
- package/src/v1/parsing/common/extras/fullTextOcrExtra.js +16 -0
- package/src/v1/parsing/common/extras/index.d.ts +4 -0
- package/src/v1/parsing/common/extras/index.js +4 -0
- package/src/v1/parsing/common/extras/ragExtra.d.ts +9 -0
- package/src/v1/parsing/common/extras/ragExtra.js +9 -0
- package/src/v1/parsing/common/feedback/feedbackResponse.d.ts +15 -0
- package/src/v1/parsing/common/feedback/feedbackResponse.js +15 -0
- package/src/v1/parsing/common/index.d.ts +16 -0
- package/src/v1/parsing/common/index.js +15 -0
- package/src/v1/parsing/common/inference.d.ts +52 -0
- package/src/v1/parsing/common/inference.js +90 -0
- package/src/v1/parsing/common/mvisionV1.d.ts +11 -0
- package/src/v1/parsing/common/mvisionV1.js +16 -0
- package/src/v1/parsing/common/ocr.d.ts +11 -0
- package/src/v1/parsing/common/ocr.js +12 -0
- package/src/v1/parsing/common/ocrPage.d.ts +19 -0
- package/src/v1/parsing/common/ocrPage.js +66 -0
- package/src/v1/parsing/common/orientation.d.ts +22 -0
- package/src/v1/parsing/common/orientation.js +23 -0
- package/src/v1/parsing/common/page.d.ts +31 -0
- package/src/v1/parsing/common/page.js +82 -0
- package/src/v1/parsing/common/predictResponse.d.ts +19 -0
- package/src/v1/parsing/common/predictResponse.js +18 -0
- package/src/v1/parsing/common/prediction.js +2 -0
- package/src/v1/parsing/common/product.js +1 -0
- package/src/v1/parsing/common/summaryHelper.js +41 -0
- package/src/v1/parsing/common/workflowResponse.d.ts +17 -0
- package/src/v1/parsing/common/workflowResponse.js +13 -0
- package/src/v1/parsing/generated/generatedList.d.ts +31 -0
- package/src/v1/parsing/generated/generatedList.js +45 -0
- package/src/v1/parsing/generated/generatedObject.d.ts +35 -0
- package/src/v1/parsing/generated/generatedObject.js +102 -0
- package/src/v1/parsing/generated/index.d.ts +2 -0
- package/src/v1/parsing/generated/index.js +2 -0
- package/src/v1/parsing/index.d.ts +4 -0
- package/src/v1/parsing/index.js +4 -0
- package/src/v1/parsing/localResponse.d.ts +10 -0
- package/src/v1/parsing/localResponse.js +29 -0
- package/src/v1/parsing/standard/addressField.d.ts +25 -0
- package/src/v1/parsing/standard/addressField.js +36 -0
- package/src/v1/parsing/standard/amount.d.ts +17 -0
- package/src/v1/parsing/standard/amount.js +29 -0
- package/src/v1/parsing/standard/base.d.ts +38 -0
- package/src/v1/parsing/standard/base.js +54 -0
- package/src/v1/parsing/standard/boolean.d.ts +17 -0
- package/src/v1/parsing/standard/boolean.js +18 -0
- package/src/v1/parsing/standard/classification.d.ts +11 -0
- package/src/v1/parsing/standard/classification.js +10 -0
- package/src/v1/parsing/standard/companyRegistration.d.ts +15 -0
- package/src/v1/parsing/standard/companyRegistration.js +25 -0
- package/src/v1/parsing/standard/date.d.ts +18 -0
- package/src/v1/parsing/standard/date.js +31 -0
- package/src/v1/parsing/standard/field.d.ts +35 -0
- package/src/v1/parsing/standard/field.js +53 -0
- package/src/v1/parsing/standard/index.d.ts +15 -0
- package/src/v1/parsing/standard/index.js +13 -0
- package/src/v1/parsing/standard/locale.d.ts +24 -0
- package/src/v1/parsing/standard/locale.js +39 -0
- package/src/v1/parsing/standard/paymentDetails.d.ts +47 -0
- package/src/v1/parsing/standard/paymentDetails.js +56 -0
- package/src/v1/parsing/standard/position.d.ts +27 -0
- package/src/v1/parsing/standard/position.js +29 -0
- package/src/v1/parsing/standard/tax.d.ts +53 -0
- package/src/v1/parsing/standard/tax.js +119 -0
- package/src/v1/parsing/standard/text.d.ts +18 -0
- package/src/v1/parsing/standard/text.js +12 -0
- package/src/v1/parsing/standard/word.d.ts +10 -0
- package/src/v1/parsing/standard/word.js +1 -0
- package/src/v1/product/barcodeReader/barcodeReaderV1.d.ts +16 -0
- package/src/v1/product/barcodeReader/barcodeReaderV1.js +23 -0
- package/src/v1/product/barcodeReader/barcodeReaderV1Document.d.ts +16 -0
- package/src/v1/product/barcodeReader/barcodeReaderV1Document.js +35 -0
- package/src/v1/product/barcodeReader/index.d.ts +2 -0
- package/src/v1/product/barcodeReader/index.js +2 -0
- package/src/v1/product/cliProducts.d.ts +10 -0
- package/src/v1/product/cliProducts.js +159 -0
- package/src/v1/product/cropper/cropperV1.d.ts +17 -0
- package/src/v1/product/cropper/cropperV1.js +24 -0
- package/src/v1/product/cropper/cropperV1Document.d.ts +10 -0
- package/src/v1/product/cropper/cropperV1Document.js +11 -0
- package/src/v1/product/cropper/cropperV1Page.d.ts +12 -0
- package/src/v1/product/cropper/cropperV1Page.js +22 -0
- package/src/v1/product/cropper/index.d.ts +3 -0
- package/src/v1/product/cropper/index.js +3 -0
- package/src/v1/product/driverLicense/driverLicenseV1.d.ts +16 -0
- package/src/v1/product/driverLicense/driverLicenseV1.js +23 -0
- package/src/v1/product/driverLicense/driverLicenseV1Document.d.ts +38 -0
- package/src/v1/product/driverLicense/driverLicenseV1Document.js +80 -0
- package/src/v1/product/driverLicense/index.d.ts +2 -0
- package/src/v1/product/driverLicense/index.js +2 -0
- package/src/v1/product/financialDocument/financialDocumentV1.d.ts +16 -0
- package/src/v1/product/financialDocument/financialDocumentV1.js +23 -0
- package/src/v1/product/financialDocument/financialDocumentV1Document.d.ts +82 -0
- package/src/v1/product/financialDocument/financialDocumentV1Document.js +212 -0
- package/src/v1/product/financialDocument/financialDocumentV1LineItem.d.ts +42 -0
- package/src/v1/product/financialDocument/financialDocumentV1LineItem.js +140 -0
- package/src/v1/product/financialDocument/index.d.ts +3 -0
- package/src/v1/product/financialDocument/index.js +3 -0
- package/src/v1/product/fr/bankAccountDetails/bankAccountDetailsV1.d.ts +16 -0
- package/src/v1/product/fr/bankAccountDetails/bankAccountDetailsV1.js +23 -0
- package/src/v1/product/fr/bankAccountDetails/bankAccountDetailsV1Document.d.ts +18 -0
- package/src/v1/product/fr/bankAccountDetails/bankAccountDetailsV1Document.js +30 -0
- package/src/v1/product/fr/bankAccountDetails/bankAccountDetailsV2.d.ts +16 -0
- package/src/v1/product/fr/bankAccountDetails/bankAccountDetailsV2.js +23 -0
- package/src/v1/product/fr/bankAccountDetails/bankAccountDetailsV2Bban.d.ts +34 -0
- package/src/v1/product/fr/bankAccountDetails/bankAccountDetailsV2Bban.js +64 -0
- package/src/v1/product/fr/bankAccountDetails/bankAccountDetailsV2Document.d.ts +21 -0
- package/src/v1/product/fr/bankAccountDetails/bankAccountDetailsV2Document.js +36 -0
- package/src/v1/product/fr/bankAccountDetails/index.d.ts +5 -0
- package/src/v1/product/fr/bankAccountDetails/index.js +5 -0
- package/src/v1/product/fr/carteGrise/carteGriseV1.d.ts +16 -0
- package/src/v1/product/fr/carteGrise/carteGriseV1.js +23 -0
- package/src/v1/product/fr/carteGrise/carteGriseV1Document.d.ts +94 -0
- package/src/v1/product/fr/carteGrise/carteGriseV1Document.js +220 -0
- package/src/v1/product/fr/carteGrise/index.d.ts +2 -0
- package/src/v1/product/fr/carteGrise/index.js +2 -0
- package/src/v1/product/fr/idCard/idCardV2.d.ts +17 -0
- package/src/v1/product/fr/idCard/idCardV2.js +24 -0
- package/src/v1/product/fr/idCard/idCardV2Document.d.ts +42 -0
- package/src/v1/product/fr/idCard/idCardV2Document.js +95 -0
- package/src/v1/product/fr/idCard/idCardV2Page.d.ts +14 -0
- package/src/v1/product/fr/idCard/idCardV2Page.js +23 -0
- package/src/v1/product/fr/idCard/index.d.ts +3 -0
- package/src/v1/product/fr/idCard/index.js +3 -0
- package/src/v1/product/fr/index.d.ts +6 -0
- package/src/v1/product/fr/index.js +6 -0
- package/src/v1/product/generated/generatedV1.d.ts +17 -0
- package/src/v1/product/generated/generatedV1.js +20 -0
- package/src/v1/product/generated/generatedV1Document.d.ts +8 -0
- package/src/v1/product/generated/generatedV1Document.js +26 -0
- package/src/v1/product/generated/generatedV1Page.d.ts +8 -0
- package/src/v1/product/generated/generatedV1Page.js +26 -0
- package/src/v1/product/generated/generatedV1Prediction.d.ts +25 -0
- package/src/v1/product/generated/generatedV1Prediction.js +80 -0
- package/src/v1/product/generated/index.d.ts +4 -0
- package/src/v1/product/generated/index.js +4 -0
- package/src/v1/product/index.d.ts +26 -0
- package/src/v1/product/index.js +27 -0
- package/src/v1/product/internationalId/index.d.ts +2 -0
- package/src/v1/product/internationalId/index.js +2 -0
- package/src/v1/product/internationalId/internationalIdV2.d.ts +16 -0
- package/src/v1/product/internationalId/internationalIdV2.js +23 -0
- package/src/v1/product/internationalId/internationalIdV2Document.d.ts +46 -0
- package/src/v1/product/internationalId/internationalIdV2Document.js +109 -0
- package/src/v1/product/invoice/index.d.ts +3 -0
- package/src/v1/product/invoice/index.js +3 -0
- package/src/v1/product/invoice/invoiceV4.d.ts +16 -0
- package/src/v1/product/invoice/invoiceV4.js +23 -0
- package/src/v1/product/invoice/invoiceV4Document.d.ts +71 -0
- package/src/v1/product/invoice/invoiceV4Document.js +192 -0
- package/src/v1/product/invoice/invoiceV4LineItem.d.ts +42 -0
- package/src/v1/product/invoice/invoiceV4LineItem.js +140 -0
- package/src/v1/product/invoiceSplitter/index.d.ts +3 -0
- package/src/v1/product/invoiceSplitter/index.js +3 -0
- package/src/v1/product/invoiceSplitter/invoiceSplitterV1.d.ts +16 -0
- package/src/v1/product/invoiceSplitter/invoiceSplitterV1.js +23 -0
- package/src/v1/product/invoiceSplitter/invoiceSplitterV1Document.d.ts +14 -0
- package/src/v1/product/invoiceSplitter/invoiceSplitterV1Document.js +32 -0
- package/src/v1/product/invoiceSplitter/invoiceSplitterV1InvoicePageGroup.d.ts +28 -0
- package/src/v1/product/invoiceSplitter/invoiceSplitterV1InvoicePageGroup.js +50 -0
- package/src/v1/product/multiReceiptsDetector/index.d.ts +2 -0
- package/src/v1/product/multiReceiptsDetector/index.js +2 -0
- package/src/v1/product/multiReceiptsDetector/multiReceiptsDetectorV1.d.ts +16 -0
- package/src/v1/product/multiReceiptsDetector/multiReceiptsDetectorV1.js +23 -0
- package/src/v1/product/multiReceiptsDetector/multiReceiptsDetectorV1Document.d.ts +14 -0
- package/src/v1/product/multiReceiptsDetector/multiReceiptsDetectorV1Document.js +25 -0
- package/src/v1/product/passport/index.d.ts +2 -0
- package/src/v1/product/passport/index.js +2 -0
- package/src/v1/product/passport/passportV1.d.ts +16 -0
- package/src/v1/product/passport/passportV1.js +23 -0
- package/src/v1/product/passport/passportV1Document.d.ts +34 -0
- package/src/v1/product/passport/passportV1Document.js +75 -0
- package/src/v1/product/receipt/index.d.ts +3 -0
- package/src/v1/product/receipt/index.js +3 -0
- package/src/v1/product/receipt/receiptV5.d.ts +16 -0
- package/src/v1/product/receipt/receiptV5.js +23 -0
- package/src/v1/product/receipt/receiptV5Document.d.ts +47 -0
- package/src/v1/product/receipt/receiptV5Document.js +114 -0
- package/src/v1/product/receipt/receiptV5LineItem.d.ts +34 -0
- package/src/v1/product/receipt/receiptV5LineItem.js +94 -0
- package/src/v1/product/resume/index.d.ts +7 -0
- package/src/v1/product/resume/index.js +7 -0
- package/src/v1/product/resume/resumeV1.d.ts +16 -0
- package/src/v1/product/resume/resumeV1.js +23 -0
- package/src/v1/product/resume/resumeV1Certificate.d.ts +34 -0
- package/src/v1/product/resume/resumeV1Certificate.js +85 -0
- package/src/v1/product/resume/resumeV1Document.d.ts +51 -0
- package/src/v1/product/resume/resumeV1Document.js +203 -0
- package/src/v1/product/resume/resumeV1Education.d.ts +40 -0
- package/src/v1/product/resume/resumeV1Education.js +115 -0
- package/src/v1/product/resume/resumeV1Language.d.ts +30 -0
- package/src/v1/product/resume/resumeV1Language.js +65 -0
- package/src/v1/product/resume/resumeV1ProfessionalExperience.d.ts +44 -0
- package/src/v1/product/resume/resumeV1ProfessionalExperience.js +135 -0
- package/src/v1/product/resume/resumeV1SocialNetworksUrl.d.ts +30 -0
- package/src/v1/product/resume/resumeV1SocialNetworksUrl.js +65 -0
- package/src/v1/product/us/bankCheck/bankCheckV1.d.ts +17 -0
- package/src/v1/product/us/bankCheck/bankCheckV1.js +24 -0
- package/src/v1/product/us/bankCheck/bankCheckV1Document.d.ts +24 -0
- package/src/v1/product/us/bankCheck/bankCheckV1Document.js +50 -0
- package/src/v1/product/us/bankCheck/bankCheckV1Page.d.ts +14 -0
- package/src/v1/product/us/bankCheck/bankCheckV1Page.js +28 -0
- package/src/v1/product/us/bankCheck/index.d.ts +3 -0
- package/src/v1/product/us/bankCheck/index.js +3 -0
- package/src/v1/product/us/index.d.ts +2 -0
- package/src/v1/product/us/index.js +2 -0
- package/src/v2/cli.d.ts +1 -0
- package/src/v2/cli.js +66 -0
- package/src/v2/client/baseParameters.d.ts +66 -0
- package/src/v2/client/baseParameters.js +81 -0
- package/src/v2/client/index.d.ts +2 -0
- package/src/v2/client/index.js +1 -0
- package/src/v2/client/pollingOptions.d.ts +49 -0
- package/src/v2/client/pollingOptions.js +1 -0
- package/src/v2/client.d.ts +79 -0
- package/src/v2/client.js +121 -0
- package/src/v2/http/apiSettingsV2.d.ts +7 -0
- package/src/v2/http/apiSettingsV2.js +36 -0
- package/src/v2/http/errors.d.ts +10 -0
- package/src/v2/http/errors.js +12 -0
- package/src/v2/http/index.d.ts +1 -0
- package/src/v2/http/index.js +1 -0
- package/src/v2/http/mindeeApiV2.d.ts +38 -0
- package/src/v2/http/mindeeApiV2.js +131 -0
- package/src/v2/index.d.ts +7 -0
- package/src/v2/index.js +6 -0
- package/src/v2/parsing/baseResponse.d.ts +17 -0
- package/src/v2/parsing/baseResponse.js +17 -0
- package/src/v2/parsing/error/errorDetails.d.ts +23 -0
- package/src/v2/parsing/error/errorDetails.js +1 -0
- package/src/v2/parsing/error/errorItem.d.ts +18 -0
- package/src/v2/parsing/error/errorItem.js +14 -0
- package/src/v2/parsing/error/errorResponse.d.ts +18 -0
- package/src/v2/parsing/error/errorResponse.js +23 -0
- package/src/v2/parsing/error/index.d.ts +3 -0
- package/src/v2/parsing/error/index.js +2 -0
- package/src/v2/parsing/index.d.ts +8 -0
- package/src/v2/parsing/index.js +6 -0
- package/src/v2/parsing/inference/baseInference.d.ts +19 -0
- package/src/v2/parsing/inference/baseInference.js +15 -0
- package/src/v2/parsing/inference/field/baseField.d.ts +9 -0
- package/src/v2/parsing/inference/field/baseField.js +14 -0
- package/src/v2/parsing/inference/field/fieldConfidence.js +74 -0
- package/src/v2/parsing/inference/field/fieldFactory.d.ts +8 -0
- package/src/v2/parsing/inference/field/fieldFactory.js +19 -0
- package/src/v2/parsing/inference/field/fieldLocation.d.ts +13 -0
- package/src/v2/parsing/inference/field/fieldLocation.js +13 -0
- package/src/v2/parsing/inference/field/index.d.ts +8 -0
- package/src/v2/parsing/inference/field/index.js +8 -0
- package/src/v2/parsing/inference/field/inferenceFields.d.ts +12 -0
- package/src/v2/parsing/inference/field/inferenceFields.js +64 -0
- package/src/v2/parsing/inference/field/listField.d.ts +20 -0
- package/src/v2/parsing/inference/field/listField.js +63 -0
- package/src/v2/parsing/inference/field/objectField.d.ts +53 -0
- package/src/v2/parsing/inference/field/objectField.js +104 -0
- package/src/v2/parsing/inference/field/ragMetadata.d.ts +8 -0
- package/src/v2/parsing/inference/field/ragMetadata.js +5 -0
- package/src/v2/parsing/inference/field/rawText.d.ts +10 -0
- package/src/v2/parsing/inference/field/rawText.js +9 -0
- package/src/v2/parsing/inference/field/rawTextPage.d.ts +11 -0
- package/src/v2/parsing/inference/field/rawTextPage.js +8 -0
- package/src/v2/parsing/inference/field/simpleField.d.ts +19 -0
- package/src/v2/parsing/inference/field/simpleField.js +47 -0
- package/src/v2/parsing/inference/index.d.ts +4 -0
- package/src/v2/parsing/inference/index.js +4 -0
- package/src/v2/parsing/inference/inferenceFile.d.ts +21 -0
- package/src/v2/parsing/inference/inferenceFile.js +16 -0
- package/src/v2/parsing/inference/inferenceModel.d.ts +9 -0
- package/src/v2/parsing/inference/inferenceModel.js +10 -0
- package/src/v2/parsing/job/index.d.ts +3 -0
- package/src/v2/parsing/job/index.js +3 -0
- package/src/v2/parsing/job/job.d.ts +49 -0
- package/src/v2/parsing/job/job.js +25 -0
- package/src/v2/parsing/job/jobResponse.d.ts +10 -0
- package/src/v2/parsing/job/jobResponse.js +8 -0
- package/src/v2/parsing/job/jobWebhook.d.ts +24 -0
- package/src/v2/parsing/job/jobWebhook.js +15 -0
- package/src/v2/parsing/localResponse.d.ts +20 -0
- package/src/v2/parsing/localResponse.js +27 -0
- package/src/v2/product/baseProduct.d.ts +7 -0
- package/src/v2/product/baseProduct.js +11 -0
- package/src/v2/product/classification/classification.d.ts +8 -0
- package/src/v2/product/classification/classification.js +14 -0
- package/src/v2/product/classification/classificationClassifier.d.ts +9 -0
- package/src/v2/product/classification/classificationClassifier.js +11 -0
- package/src/v2/product/classification/classificationInference.d.ts +11 -0
- package/src/v2/product/classification/classificationInference.js +12 -0
- package/src/v2/product/classification/classificationResponse.d.ts +13 -0
- package/src/v2/product/classification/classificationResponse.js +11 -0
- package/src/v2/product/classification/classificationResult.d.ts +10 -0
- package/src/v2/product/classification/classificationResult.js +9 -0
- package/src/v2/product/classification/index.d.ts +6 -0
- package/src/v2/product/classification/index.js +6 -0
- package/src/v2/product/classification/params/classificationParameters.d.ts +21 -0
- package/src/v2/product/classification/params/classificationParameters.js +25 -0
- package/src/v2/product/classification/params/index.d.ts +1 -0
- package/src/v2/product/classification/params/index.js +1 -0
- package/src/v2/product/crop/crop.d.ts +8 -0
- package/src/v2/product/crop/crop.js +14 -0
- package/src/v2/product/crop/cropInference.d.ts +11 -0
- package/src/v2/product/crop/cropInference.js +12 -0
- package/src/v2/product/crop/cropItem.d.ts +8 -0
- package/src/v2/product/crop/cropItem.js +10 -0
- package/src/v2/product/crop/cropResponse.d.ts +13 -0
- package/src/v2/product/crop/cropResponse.js +11 -0
- package/src/v2/product/crop/cropResult.d.ts +10 -0
- package/src/v2/product/crop/cropResult.js +14 -0
- package/src/v2/product/crop/index.d.ts +6 -0
- package/src/v2/product/crop/index.js +6 -0
- package/src/v2/product/crop/params/cropParameters.d.ts +21 -0
- package/src/v2/product/crop/params/cropParameters.js +25 -0
- package/src/v2/product/crop/params/index.d.ts +1 -0
- package/src/v2/product/crop/params/index.js +1 -0
- package/src/v2/product/extraction/dataSchemaActiveOption.d.ts +12 -0
- package/src/v2/product/extraction/dataSchemaActiveOption.js +11 -0
- package/src/v2/product/extraction/extraction.d.ts +8 -0
- package/src/v2/product/extraction/extraction.js +14 -0
- package/src/v2/product/extraction/extractionActiveOptions.d.ts +30 -0
- package/src/v2/product/extraction/extractionActiveOptions.js +21 -0
- package/src/v2/product/extraction/extractionInference.d.ts +16 -0
- package/src/v2/product/extraction/extractionInference.js +15 -0
- package/src/v2/product/extraction/extractionResponse.d.ts +13 -0
- package/src/v2/product/extraction/extractionResponse.js +11 -0
- package/src/v2/product/extraction/extractionResult.d.ts +20 -0
- package/src/v2/product/extraction/extractionResult.js +17 -0
- package/src/v2/product/extraction/index.d.ts +8 -0
- package/src/v2/product/extraction/index.js +8 -0
- package/src/v2/product/extraction/params/dataSchema.d.ts +18 -0
- package/src/v2/product/extraction/params/dataSchema.js +23 -0
- package/src/v2/product/extraction/params/dataSchemaField.d.ts +43 -0
- package/src/v2/product/extraction/params/dataSchemaField.js +39 -0
- package/src/v2/product/extraction/params/dataSchemaReplace.d.ts +16 -0
- package/src/v2/product/extraction/params/dataSchemaReplace.js +22 -0
- package/src/v2/product/extraction/params/extractionParameters.d.ts +59 -0
- package/src/v2/product/extraction/params/extractionParameters.js +66 -0
- package/src/v2/product/extraction/params/index.d.ts +4 -0
- package/src/v2/product/extraction/params/index.js +4 -0
- package/src/v2/product/index.d.ts +10 -0
- package/src/v2/product/index.js +10 -0
- package/src/v2/product/ocr/index.d.ts +7 -0
- package/src/v2/product/ocr/index.js +7 -0
- package/src/v2/product/ocr/ocr.d.ts +8 -0
- package/src/v2/product/ocr/ocr.js +14 -0
- package/src/v2/product/ocr/ocrInference.d.ts +11 -0
- package/src/v2/product/ocr/ocrInference.js +15 -0
- package/src/v2/product/ocr/ocrPage.d.ts +14 -0
- package/src/v2/product/ocr/ocrPage.js +16 -0
- package/src/v2/product/ocr/ocrResponse.d.ts +13 -0
- package/src/v2/product/ocr/ocrResponse.js +11 -0
- package/src/v2/product/ocr/ocrResult.d.ts +13 -0
- package/src/v2/product/ocr/ocrResult.js +16 -0
- package/src/v2/product/ocr/ocrWord.d.ts +14 -0
- package/src/v2/product/ocr/ocrWord.js +10 -0
- package/src/v2/product/ocr/params/index.d.ts +1 -0
- package/src/v2/product/ocr/params/index.js +1 -0
- package/src/v2/product/ocr/params/ocrParameters.d.ts +21 -0
- package/src/v2/product/ocr/params/ocrParameters.js +25 -0
- package/src/v2/product/split/index.d.ts +6 -0
- package/src/v2/product/split/index.js +6 -0
- package/src/v2/product/split/params/index.d.ts +1 -0
- package/src/v2/product/split/params/index.js +1 -0
- package/src/v2/product/split/params/splitParameters.d.ts +21 -0
- package/src/v2/product/split/params/splitParameters.js +25 -0
- package/src/v2/product/split/split.d.ts +8 -0
- package/src/v2/product/split/split.js +14 -0
- package/src/v2/product/split/splitInference.d.ts +11 -0
- package/src/v2/product/split/splitInference.js +12 -0
- package/src/v2/product/split/splitRange.d.ts +17 -0
- package/src/v2/product/split/splitRange.js +13 -0
- package/src/v2/product/split/splitResponse.d.ts +13 -0
- package/src/v2/product/split/splitResponse.js +11 -0
- package/src/v2/product/split/splitResult.d.ts +13 -0
- package/src/v2/product/split/splitResult.js +16 -0
- package/bin/mindee.js +0 -5
- package/src/cli.js +0 -264
- package/src/cliProducts.d.ts +0 -11
- package/src/cliProducts.js +0 -316
- package/src/client.d.ts +0 -256
- package/src/client.js +0 -386
- package/src/clientV2.d.ts +0 -176
- package/src/clientV2.js +0 -167
- package/src/http/apiSettings.d.ts +0 -12
- package/src/http/apiSettings.js +0 -47
- package/src/http/apiSettingsV2.d.ts +0 -10
- package/src/http/apiSettingsV2.js +0 -46
- package/src/http/baseEndpoint.d.ts +0 -34
- package/src/http/baseEndpoint.js +0 -77
- package/src/http/endpoint.d.ts +0 -70
- package/src/http/endpoint.js +0 -243
- package/src/http/error.d.ts +0 -67
- package/src/http/error.js +0 -211
- package/src/http/httpParams.d.ts +0 -19
- package/src/http/httpParams.js +0 -2
- package/src/http/mindeeApiV2.d.ts +0 -34
- package/src/http/mindeeApiV2.js +0 -146
- package/src/http/responseValidation.d.ts +0 -23
- package/src/http/responseValidation.js +0 -78
- package/src/http/workflowEndpoint.d.ts +0 -30
- package/src/http/workflowEndpoint.js +0 -103
- package/src/imageOperations/common/extractedImage.d.ts +0 -29
- package/src/imageOperations/common/extractedImage.js +0 -105
- package/src/imageOperations/common/imageExtractor.d.ts +0 -9
- package/src/imageOperations/common/imageExtractor.js +0 -87
- package/src/imageOperations/common/index.d.ts +0 -2
- package/src/imageOperations/common/index.js +0 -7
- package/src/imageOperations/imageCompressor.js +0 -36
- package/src/imageOperations/index.d.ts +0 -3
- package/src/imageOperations/index.js +0 -11
- package/src/imageOperations/internal.d.ts +0 -3
- package/src/imageOperations/internal.js +0 -11
- package/src/imageOperations/invoiceSplitterExtractor/extractedInvoiceSplitterImage.d.ts +0 -9
- package/src/imageOperations/invoiceSplitterExtractor/extractedInvoiceSplitterImage.js +0 -15
- package/src/imageOperations/invoiceSplitterExtractor/index.d.ts +0 -2
- package/src/imageOperations/invoiceSplitterExtractor/index.js +0 -7
- package/src/imageOperations/invoiceSplitterExtractor/invoiceSplitterExtractor.d.ts +0 -13
- package/src/imageOperations/invoiceSplitterExtractor/invoiceSplitterExtractor.js +0 -76
- package/src/imageOperations/multiReceiptsExtractor/extractedMultiReceiptImage.d.ts +0 -9
- package/src/imageOperations/multiReceiptsExtractor/extractedMultiReceiptImage.js +0 -15
- package/src/imageOperations/multiReceiptsExtractor/index.d.ts +0 -2
- package/src/imageOperations/multiReceiptsExtractor/index.js +0 -7
- package/src/imageOperations/multiReceiptsExtractor/multiReceiptsExtractor.d.ts +0 -11
- package/src/imageOperations/multiReceiptsExtractor/multiReceiptsExtractor.js +0 -74
- package/src/input/dataSchema.d.ts +0 -73
- package/src/input/dataSchema.js +0 -88
- package/src/input/localResponse.d.ts +0 -46
- package/src/input/localResponse.js +0 -143
- package/src/input/sources/base64Input.d.ts +0 -12
- package/src/input/sources/base64Input.js +0 -28
- package/src/input/sources/bufferInput.d.ts +0 -10
- package/src/input/sources/bufferInput.js +0 -24
- package/src/input/sources/bytesInput.d.ts +0 -12
- package/src/input/sources/bytesInput.js +0 -27
- package/src/input/sources/index.d.ts +0 -8
- package/src/input/sources/index.js +0 -24
- package/src/input/sources/inputSource.js +0 -21
- package/src/input/sources/localInputSource.d.ts +0 -61
- package/src/input/sources/localInputSource.js +0 -194
- package/src/input/sources/pathInput.d.ts +0 -11
- package/src/input/sources/pathInput.js +0 -31
- package/src/input/sources/streamInput.d.ts +0 -14
- package/src/input/sources/streamInput.js +0 -34
- package/src/input/sources/urlInput.d.ts +0 -32
- package/src/input/sources/urlInput.js +0 -104
- package/src/internal.d.ts +0 -7
- package/src/internal.js +0 -43
- package/src/parsing/common/apiRequest.d.ts +0 -19
- package/src/parsing/common/apiRequest.js +0 -18
- package/src/parsing/common/apiResponse.d.ts +0 -21
- package/src/parsing/common/apiResponse.js +0 -25
- package/src/parsing/common/asyncPredictResponse.d.ts +0 -44
- package/src/parsing/common/asyncPredictResponse.js +0 -55
- package/src/parsing/common/dateParser.js +0 -12
- package/src/parsing/common/document.d.ts +0 -33
- package/src/parsing/common/document.js +0 -76
- package/src/parsing/common/execution.d.ts +0 -38
- package/src/parsing/common/execution.js +0 -28
- package/src/parsing/common/executionFile.d.ts +0 -12
- package/src/parsing/common/executionFile.js +0 -14
- package/src/parsing/common/executionPriority.js +0 -9
- package/src/parsing/common/extras/cropperExtra.d.ts +0 -11
- package/src/parsing/common/extras/cropperExtra.js +0 -29
- package/src/parsing/common/extras/extras.js +0 -21
- package/src/parsing/common/extras/fullTextOcrExtra.d.ts +0 -11
- package/src/parsing/common/extras/fullTextOcrExtra.js +0 -20
- package/src/parsing/common/extras/index.d.ts +0 -3
- package/src/parsing/common/extras/index.js +0 -9
- package/src/parsing/common/extras/ragExtra.d.ts +0 -9
- package/src/parsing/common/extras/ragExtra.js +0 -13
- package/src/parsing/common/feedback/feedbackResponse.d.ts +0 -15
- package/src/parsing/common/feedback/feedbackResponse.js +0 -19
- package/src/parsing/common/index.d.ts +0 -16
- package/src/parsing/common/index.js +0 -67
- package/src/parsing/common/inference.d.ts +0 -52
- package/src/parsing/common/inference.js +0 -98
- package/src/parsing/common/mvisionV1.d.ts +0 -11
- package/src/parsing/common/mvisionV1.js +0 -20
- package/src/parsing/common/ocr.d.ts +0 -11
- package/src/parsing/common/ocr.js +0 -16
- package/src/parsing/common/ocrPage.d.ts +0 -19
- package/src/parsing/common/ocrPage.js +0 -69
- package/src/parsing/common/orientation.d.ts +0 -22
- package/src/parsing/common/orientation.js +0 -27
- package/src/parsing/common/page.d.ts +0 -31
- package/src/parsing/common/page.js +0 -87
- package/src/parsing/common/predictResponse.d.ts +0 -17
- package/src/parsing/common/predictResponse.js +0 -22
- package/src/parsing/common/prediction.js +0 -6
- package/src/parsing/common/product.js +0 -2
- package/src/parsing/common/stringDict.js +0 -2
- package/src/parsing/common/summaryHelper.js +0 -47
- package/src/parsing/common/workflowResponse.d.ts +0 -17
- package/src/parsing/common/workflowResponse.js +0 -17
- package/src/parsing/custom/classificationField.d.ts +0 -19
- package/src/parsing/custom/classificationField.js +0 -17
- package/src/parsing/custom/index.d.ts +0 -3
- package/src/parsing/custom/index.js +0 -12
- package/src/parsing/custom/lineItems.d.ts +0 -33
- package/src/parsing/custom/lineItems.js +0 -130
- package/src/parsing/custom/listField.d.ts +0 -45
- package/src/parsing/custom/listField.js +0 -60
- package/src/parsing/generated/generatedList.d.ts +0 -31
- package/src/parsing/generated/generatedList.js +0 -49
- package/src/parsing/generated/generatedObject.d.ts +0 -35
- package/src/parsing/generated/generatedObject.js +0 -107
- package/src/parsing/generated/index.d.ts +0 -2
- package/src/parsing/generated/index.js +0 -8
- package/src/parsing/standard/addressField.d.ts +0 -25
- package/src/parsing/standard/addressField.js +0 -40
- package/src/parsing/standard/amount.d.ts +0 -17
- package/src/parsing/standard/amount.js +0 -33
- package/src/parsing/standard/base.d.ts +0 -38
- package/src/parsing/standard/base.js +0 -58
- package/src/parsing/standard/boolean.d.ts +0 -17
- package/src/parsing/standard/boolean.js +0 -22
- package/src/parsing/standard/classification.d.ts +0 -11
- package/src/parsing/standard/classification.js +0 -14
- package/src/parsing/standard/companyRegistration.d.ts +0 -15
- package/src/parsing/standard/companyRegistration.js +0 -29
- package/src/parsing/standard/date.d.ts +0 -18
- package/src/parsing/standard/date.js +0 -35
- package/src/parsing/standard/field.d.ts +0 -35
- package/src/parsing/standard/field.js +0 -57
- package/src/parsing/standard/index.d.ts +0 -14
- package/src/parsing/standard/index.js +0 -30
- package/src/parsing/standard/locale.d.ts +0 -24
- package/src/parsing/standard/locale.js +0 -43
- package/src/parsing/standard/paymentDetails.d.ts +0 -47
- package/src/parsing/standard/paymentDetails.js +0 -60
- package/src/parsing/standard/position.d.ts +0 -27
- package/src/parsing/standard/position.js +0 -33
- package/src/parsing/standard/tax.d.ts +0 -53
- package/src/parsing/standard/tax.js +0 -124
- package/src/parsing/standard/text.d.ts +0 -18
- package/src/parsing/standard/text.js +0 -16
- package/src/parsing/standard/word.d.ts +0 -10
- package/src/parsing/standard/word.js +0 -2
- package/src/parsing/v2/commonResponse.d.ts +0 -16
- package/src/parsing/v2/commonResponse.js +0 -19
- package/src/parsing/v2/dataSchemaActiveOption.d.ts +0 -12
- package/src/parsing/v2/dataSchemaActiveOption.js +0 -15
- package/src/parsing/v2/errorItem.d.ts +0 -18
- package/src/parsing/v2/errorItem.js +0 -18
- package/src/parsing/v2/errorResponse.d.ts +0 -38
- package/src/parsing/v2/errorResponse.js +0 -25
- package/src/parsing/v2/field/baseField.d.ts +0 -9
- package/src/parsing/v2/field/baseField.js +0 -18
- package/src/parsing/v2/field/fieldConfidence.js +0 -77
- package/src/parsing/v2/field/fieldFactory.d.ts +0 -8
- package/src/parsing/v2/field/fieldFactory.js +0 -22
- package/src/parsing/v2/field/fieldLocation.d.ts +0 -13
- package/src/parsing/v2/field/fieldLocation.js +0 -16
- package/src/parsing/v2/field/index.d.ts +0 -6
- package/src/parsing/v2/field/index.js +0 -15
- package/src/parsing/v2/field/inferenceFields.d.ts +0 -12
- package/src/parsing/v2/field/inferenceFields.js +0 -68
- package/src/parsing/v2/field/listField.d.ts +0 -20
- package/src/parsing/v2/field/listField.js +0 -67
- package/src/parsing/v2/field/objectField.d.ts +0 -11
- package/src/parsing/v2/field/objectField.js +0 -30
- package/src/parsing/v2/field/simpleField.d.ts +0 -19
- package/src/parsing/v2/field/simpleField.js +0 -51
- package/src/parsing/v2/index.d.ts +0 -14
- package/src/parsing/v2/index.js +0 -31
- package/src/parsing/v2/inference.d.ts +0 -29
- package/src/parsing/v2/inference.js +0 -24
- package/src/parsing/v2/inferenceActiveOptions.d.ts +0 -30
- package/src/parsing/v2/inferenceActiveOptions.js +0 -25
- package/src/parsing/v2/inferenceFile.d.ts +0 -21
- package/src/parsing/v2/inferenceFile.js +0 -20
- package/src/parsing/v2/inferenceModel.d.ts +0 -9
- package/src/parsing/v2/inferenceModel.js +0 -14
- package/src/parsing/v2/inferenceResponse.d.ts +0 -10
- package/src/parsing/v2/inferenceResponse.js +0 -12
- package/src/parsing/v2/inferenceResult.d.ts +0 -20
- package/src/parsing/v2/inferenceResult.js +0 -21
- package/src/parsing/v2/job.d.ts +0 -49
- package/src/parsing/v2/job.js +0 -29
- package/src/parsing/v2/jobResponse.d.ts +0 -10
- package/src/parsing/v2/jobResponse.js +0 -12
- package/src/parsing/v2/jobWebhook.d.ts +0 -24
- package/src/parsing/v2/jobWebhook.js +0 -19
- package/src/parsing/v2/ragMetadata.d.ts +0 -8
- package/src/parsing/v2/ragMetadata.js +0 -9
- package/src/parsing/v2/rawText.d.ts +0 -10
- package/src/parsing/v2/rawText.js +0 -13
- package/src/parsing/v2/rawTextPage.d.ts +0 -11
- package/src/parsing/v2/rawTextPage.js +0 -12
- package/src/product/barcodeReader/barcodeReaderV1.d.ts +0 -16
- package/src/product/barcodeReader/barcodeReaderV1.js +0 -27
- package/src/product/barcodeReader/barcodeReaderV1Document.d.ts +0 -16
- package/src/product/barcodeReader/barcodeReaderV1Document.js +0 -37
- package/src/product/barcodeReader/index.d.ts +0 -1
- package/src/product/barcodeReader/index.js +0 -5
- package/src/product/barcodeReader/internal.d.ts +0 -2
- package/src/product/barcodeReader/internal.js +0 -7
- package/src/product/billOfLading/billOfLadingV1.d.ts +0 -16
- package/src/product/billOfLading/billOfLadingV1.js +0 -27
- package/src/product/billOfLading/billOfLadingV1Carrier.d.ts +0 -32
- package/src/product/billOfLading/billOfLadingV1Carrier.js +0 -63
- package/src/product/billOfLading/billOfLadingV1CarrierItem.d.ts +0 -38
- package/src/product/billOfLading/billOfLadingV1CarrierItem.js +0 -118
- package/src/product/billOfLading/billOfLadingV1Consignee.d.ts +0 -34
- package/src/product/billOfLading/billOfLadingV1Consignee.js +0 -68
- package/src/product/billOfLading/billOfLadingV1Document.d.ts +0 -39
- package/src/product/billOfLading/billOfLadingV1Document.js +0 -95
- package/src/product/billOfLading/billOfLadingV1NotifyParty.d.ts +0 -34
- package/src/product/billOfLading/billOfLadingV1NotifyParty.js +0 -68
- package/src/product/billOfLading/billOfLadingV1Shipper.d.ts +0 -34
- package/src/product/billOfLading/billOfLadingV1Shipper.js +0 -68
- package/src/product/billOfLading/index.d.ts +0 -1
- package/src/product/billOfLading/index.js +0 -5
- package/src/product/billOfLading/internal.d.ts +0 -7
- package/src/product/billOfLading/internal.js +0 -17
- package/src/product/businessCard/businessCardV1.d.ts +0 -16
- package/src/product/businessCard/businessCardV1.js +0 -27
- package/src/product/businessCard/businessCardV1Document.d.ts +0 -34
- package/src/product/businessCard/businessCardV1Document.js +0 -78
- package/src/product/businessCard/index.d.ts +0 -1
- package/src/product/businessCard/index.js +0 -5
- package/src/product/businessCard/internal.d.ts +0 -2
- package/src/product/businessCard/internal.js +0 -7
- package/src/product/cropper/cropperV1.d.ts +0 -17
- package/src/product/cropper/cropperV1.js +0 -28
- package/src/product/cropper/cropperV1Document.d.ts +0 -10
- package/src/product/cropper/cropperV1Document.js +0 -15
- package/src/product/cropper/cropperV1Page.d.ts +0 -12
- package/src/product/cropper/cropperV1Page.js +0 -26
- package/src/product/cropper/index.d.ts +0 -1
- package/src/product/cropper/index.js +0 -5
- package/src/product/cropper/internal.d.ts +0 -3
- package/src/product/cropper/internal.js +0 -9
- package/src/product/custom/customV1.d.ts +0 -17
- package/src/product/custom/customV1.js +0 -23
- package/src/product/custom/customV1Document.d.ts +0 -32
- package/src/product/custom/customV1Document.js +0 -66
- package/src/product/custom/customV1Page.d.ts +0 -21
- package/src/product/custom/customV1Page.js +0 -40
- package/src/product/custom/internal.d.ts +0 -3
- package/src/product/custom/internal.js +0 -9
- package/src/product/deliveryNote/deliveryNoteV1.d.ts +0 -16
- package/src/product/deliveryNote/deliveryNoteV1.js +0 -27
- package/src/product/deliveryNote/deliveryNoteV1Document.d.ts +0 -26
- package/src/product/deliveryNote/deliveryNoteV1Document.js +0 -54
- package/src/product/deliveryNote/index.d.ts +0 -1
- package/src/product/deliveryNote/index.js +0 -5
- package/src/product/deliveryNote/internal.d.ts +0 -2
- package/src/product/deliveryNote/internal.js +0 -7
- package/src/product/driverLicense/driverLicenseV1.d.ts +0 -16
- package/src/product/driverLicense/driverLicenseV1.js +0 -27
- package/src/product/driverLicense/driverLicenseV1Document.d.ts +0 -38
- package/src/product/driverLicense/driverLicenseV1Document.js +0 -84
- package/src/product/driverLicense/index.d.ts +0 -1
- package/src/product/driverLicense/index.js +0 -5
- package/src/product/driverLicense/internal.d.ts +0 -2
- package/src/product/driverLicense/internal.js +0 -7
- package/src/product/financialDocument/financialDocumentV1.d.ts +0 -16
- package/src/product/financialDocument/financialDocumentV1.js +0 -27
- package/src/product/financialDocument/financialDocumentV1Document.d.ts +0 -82
- package/src/product/financialDocument/financialDocumentV1Document.js +0 -211
- package/src/product/financialDocument/financialDocumentV1LineItem.d.ts +0 -42
- package/src/product/financialDocument/financialDocumentV1LineItem.js +0 -144
- package/src/product/financialDocument/index.d.ts +0 -1
- package/src/product/financialDocument/index.js +0 -5
- package/src/product/financialDocument/internal.d.ts +0 -3
- package/src/product/financialDocument/internal.js +0 -9
- package/src/product/fr/bankAccountDetails/bankAccountDetailsV1.d.ts +0 -16
- package/src/product/fr/bankAccountDetails/bankAccountDetailsV1.js +0 -27
- package/src/product/fr/bankAccountDetails/bankAccountDetailsV1Document.d.ts +0 -18
- package/src/product/fr/bankAccountDetails/bankAccountDetailsV1Document.js +0 -34
- package/src/product/fr/bankAccountDetails/bankAccountDetailsV2.d.ts +0 -16
- package/src/product/fr/bankAccountDetails/bankAccountDetailsV2.js +0 -27
- package/src/product/fr/bankAccountDetails/bankAccountDetailsV2Bban.d.ts +0 -34
- package/src/product/fr/bankAccountDetails/bankAccountDetailsV2Bban.js +0 -68
- package/src/product/fr/bankAccountDetails/bankAccountDetailsV2Document.d.ts +0 -21
- package/src/product/fr/bankAccountDetails/bankAccountDetailsV2Document.js +0 -40
- package/src/product/fr/bankAccountDetails/index.d.ts +0 -2
- package/src/product/fr/bankAccountDetails/index.js +0 -7
- package/src/product/fr/bankAccountDetails/internal.d.ts +0 -5
- package/src/product/fr/bankAccountDetails/internal.js +0 -13
- package/src/product/fr/carteGrise/carteGriseV1.d.ts +0 -16
- package/src/product/fr/carteGrise/carteGriseV1.js +0 -27
- package/src/product/fr/carteGrise/carteGriseV1Document.d.ts +0 -94
- package/src/product/fr/carteGrise/carteGriseV1Document.js +0 -224
- package/src/product/fr/carteGrise/index.d.ts +0 -1
- package/src/product/fr/carteGrise/index.js +0 -5
- package/src/product/fr/carteGrise/internal.d.ts +0 -2
- package/src/product/fr/carteGrise/internal.js +0 -7
- package/src/product/fr/energyBill/energyBillV1.d.ts +0 -16
- package/src/product/fr/energyBill/energyBillV1.js +0 -27
- package/src/product/fr/energyBill/energyBillV1Document.d.ts +0 -49
- package/src/product/fr/energyBill/energyBillV1Document.js +0 -145
- package/src/product/fr/energyBill/energyBillV1EnergyConsumer.d.ts +0 -30
- package/src/product/fr/energyBill/energyBillV1EnergyConsumer.js +0 -58
- package/src/product/fr/energyBill/energyBillV1EnergySupplier.d.ts +0 -30
- package/src/product/fr/energyBill/energyBillV1EnergySupplier.js +0 -58
- package/src/product/fr/energyBill/energyBillV1EnergyUsage.d.ts +0 -42
- package/src/product/fr/energyBill/energyBillV1EnergyUsage.js +0 -141
- package/src/product/fr/energyBill/energyBillV1MeterDetail.d.ts +0 -32
- package/src/product/fr/energyBill/energyBillV1MeterDetail.js +0 -63
- package/src/product/fr/energyBill/energyBillV1Subscription.d.ts +0 -38
- package/src/product/fr/energyBill/energyBillV1Subscription.js +0 -118
- package/src/product/fr/energyBill/energyBillV1TaxesAndContribution.d.ts +0 -38
- package/src/product/fr/energyBill/energyBillV1TaxesAndContribution.js +0 -118
- package/src/product/fr/energyBill/index.d.ts +0 -1
- package/src/product/fr/energyBill/index.js +0 -5
- package/src/product/fr/energyBill/internal.d.ts +0 -8
- package/src/product/fr/energyBill/internal.js +0 -19
- package/src/product/fr/healthCard/healthCardV1.d.ts +0 -16
- package/src/product/fr/healthCard/healthCardV1.js +0 -27
- package/src/product/fr/healthCard/healthCardV1Document.d.ts +0 -20
- package/src/product/fr/healthCard/healthCardV1Document.js +0 -43
- package/src/product/fr/healthCard/index.d.ts +0 -1
- package/src/product/fr/healthCard/index.js +0 -5
- package/src/product/fr/healthCard/internal.d.ts +0 -2
- package/src/product/fr/healthCard/internal.js +0 -7
- package/src/product/fr/idCard/idCardV1.d.ts +0 -17
- package/src/product/fr/idCard/idCardV1.js +0 -28
- package/src/product/fr/idCard/idCardV1Document.d.ts +0 -32
- package/src/product/fr/idCard/idCardV1Document.js +0 -73
- package/src/product/fr/idCard/idCardV1Page.d.ts +0 -12
- package/src/product/fr/idCard/idCardV1Page.js +0 -23
- package/src/product/fr/idCard/idCardV2.d.ts +0 -17
- package/src/product/fr/idCard/idCardV2.js +0 -28
- package/src/product/fr/idCard/idCardV2Document.d.ts +0 -42
- package/src/product/fr/idCard/idCardV2Document.js +0 -98
- package/src/product/fr/idCard/idCardV2Page.d.ts +0 -14
- package/src/product/fr/idCard/idCardV2Page.js +0 -27
- package/src/product/fr/idCard/index.d.ts +0 -2
- package/src/product/fr/idCard/index.js +0 -7
- package/src/product/fr/idCard/internal.d.ts +0 -6
- package/src/product/fr/idCard/internal.js +0 -15
- package/src/product/fr/index.d.ts +0 -9
- package/src/product/fr/index.js +0 -21
- package/src/product/fr/internal.d.ts +0 -6
- package/src/product/fr/internal.js +0 -42
- package/src/product/fr/payslip/index.d.ts +0 -2
- package/src/product/fr/payslip/index.js +0 -7
- package/src/product/fr/payslip/internal.d.ts +0 -20
- package/src/product/fr/payslip/internal.js +0 -43
- package/src/product/fr/payslip/payslipV2.d.ts +0 -16
- package/src/product/fr/payslip/payslipV2.js +0 -27
- package/src/product/fr/payslip/payslipV2BankAccountDetail.d.ts +0 -32
- package/src/product/fr/payslip/payslipV2BankAccountDetail.js +0 -63
- package/src/product/fr/payslip/payslipV2Document.d.ts +0 -35
- package/src/product/fr/payslip/payslipV2Document.js +0 -80
- package/src/product/fr/payslip/payslipV2Employee.d.ts +0 -40
- package/src/product/fr/payslip/payslipV2Employee.js +0 -83
- package/src/product/fr/payslip/payslipV2Employer.d.ts +0 -40
- package/src/product/fr/payslip/payslipV2Employer.js +0 -83
- package/src/product/fr/payslip/payslipV2Employment.d.ts +0 -38
- package/src/product/fr/payslip/payslipV2Employment.js +0 -86
- package/src/product/fr/payslip/payslipV2PayDetail.d.ts +0 -46
- package/src/product/fr/payslip/payslipV2PayDetail.js +0 -169
- package/src/product/fr/payslip/payslipV2PayPeriod.d.ts +0 -36
- package/src/product/fr/payslip/payslipV2PayPeriod.js +0 -73
- package/src/product/fr/payslip/payslipV2Pto.d.ts +0 -32
- package/src/product/fr/payslip/payslipV2Pto.js +0 -85
- package/src/product/fr/payslip/payslipV2SalaryDetail.d.ts +0 -34
- package/src/product/fr/payslip/payslipV2SalaryDetail.js +0 -98
- package/src/product/fr/payslip/payslipV3.d.ts +0 -16
- package/src/product/fr/payslip/payslipV3.js +0 -27
- package/src/product/fr/payslip/payslipV3BankAccountDetail.d.ts +0 -32
- package/src/product/fr/payslip/payslipV3BankAccountDetail.js +0 -63
- package/src/product/fr/payslip/payslipV3Document.d.ts +0 -35
- package/src/product/fr/payslip/payslipV3Document.js +0 -96
- package/src/product/fr/payslip/payslipV3Employee.d.ts +0 -40
- package/src/product/fr/payslip/payslipV3Employee.js +0 -83
- package/src/product/fr/payslip/payslipV3Employer.d.ts +0 -40
- package/src/product/fr/payslip/payslipV3Employer.js +0 -83
- package/src/product/fr/payslip/payslipV3Employment.d.ts +0 -40
- package/src/product/fr/payslip/payslipV3Employment.js +0 -83
- package/src/product/fr/payslip/payslipV3PaidTimeOff.d.ts +0 -36
- package/src/product/fr/payslip/payslipV3PaidTimeOff.js +0 -108
- package/src/product/fr/payslip/payslipV3PayDetail.d.ts +0 -46
- package/src/product/fr/payslip/payslipV3PayDetail.js +0 -169
- package/src/product/fr/payslip/payslipV3PayPeriod.d.ts +0 -36
- package/src/product/fr/payslip/payslipV3PayPeriod.js +0 -73
- package/src/product/fr/payslip/payslipV3SalaryDetail.d.ts +0 -36
- package/src/product/fr/payslip/payslipV3SalaryDetail.js +0 -111
- package/src/product/generated/generatedV1.d.ts +0 -17
- package/src/product/generated/generatedV1.js +0 -24
- package/src/product/generated/generatedV1Document.d.ts +0 -8
- package/src/product/generated/generatedV1Document.js +0 -30
- package/src/product/generated/generatedV1Page.d.ts +0 -8
- package/src/product/generated/generatedV1Page.js +0 -30
- package/src/product/generated/generatedV1Prediction.d.ts +0 -25
- package/src/product/generated/generatedV1Prediction.js +0 -84
- package/src/product/generated/internal.d.ts +0 -4
- package/src/product/generated/internal.js +0 -11
- package/src/product/ind/index.d.ts +0 -1
- package/src/product/ind/index.js +0 -5
- package/src/product/ind/indianPassport/index.d.ts +0 -1
- package/src/product/ind/indianPassport/index.js +0 -5
- package/src/product/ind/indianPassport/indianPassportV1.d.ts +0 -16
- package/src/product/ind/indianPassport/indianPassportV1.js +0 -27
- package/src/product/ind/indianPassport/indianPassportV1Document.d.ts +0 -58
- package/src/product/ind/indianPassport/indianPassportV1Document.js +0 -132
- package/src/product/ind/indianPassport/internal.d.ts +0 -2
- package/src/product/ind/indianPassport/internal.js +0 -7
- package/src/product/ind/internal.d.ts +0 -1
- package/src/product/ind/internal.js +0 -37
- package/src/product/index.d.ts +0 -20
- package/src/product/index.js +0 -73
- package/src/product/internal.d.ts +0 -20
- package/src/product/internal.js +0 -56
- package/src/product/internationalId/index.d.ts +0 -1
- package/src/product/internationalId/index.js +0 -5
- package/src/product/internationalId/internal.d.ts +0 -2
- package/src/product/internationalId/internal.js +0 -7
- package/src/product/internationalId/internationalIdV2.d.ts +0 -16
- package/src/product/internationalId/internationalIdV2.js +0 -27
- package/src/product/internationalId/internationalIdV2Document.d.ts +0 -46
- package/src/product/internationalId/internationalIdV2Document.js +0 -111
- package/src/product/invoice/index.d.ts +0 -1
- package/src/product/invoice/index.js +0 -5
- package/src/product/invoice/internal.d.ts +0 -3
- package/src/product/invoice/internal.js +0 -9
- package/src/product/invoice/invoiceV4.d.ts +0 -16
- package/src/product/invoice/invoiceV4.js +0 -27
- package/src/product/invoice/invoiceV4Document.d.ts +0 -71
- package/src/product/invoice/invoiceV4Document.js +0 -191
- package/src/product/invoice/invoiceV4LineItem.d.ts +0 -42
- package/src/product/invoice/invoiceV4LineItem.js +0 -144
- package/src/product/invoiceSplitter/index.d.ts +0 -1
- package/src/product/invoiceSplitter/index.js +0 -5
- package/src/product/invoiceSplitter/internal.d.ts +0 -3
- package/src/product/invoiceSplitter/internal.js +0 -9
- package/src/product/invoiceSplitter/invoiceSplitterV1.d.ts +0 -16
- package/src/product/invoiceSplitter/invoiceSplitterV1.js +0 -27
- package/src/product/invoiceSplitter/invoiceSplitterV1Document.d.ts +0 -14
- package/src/product/invoiceSplitter/invoiceSplitterV1Document.js +0 -35
- package/src/product/invoiceSplitter/invoiceSplitterV1InvoicePageGroup.d.ts +0 -28
- package/src/product/invoiceSplitter/invoiceSplitterV1InvoicePageGroup.js +0 -54
- package/src/product/multiReceiptsDetector/index.d.ts +0 -1
- package/src/product/multiReceiptsDetector/index.js +0 -5
- package/src/product/multiReceiptsDetector/internal.d.ts +0 -2
- package/src/product/multiReceiptsDetector/internal.js +0 -7
- package/src/product/multiReceiptsDetector/multiReceiptsDetectorV1.d.ts +0 -16
- package/src/product/multiReceiptsDetector/multiReceiptsDetectorV1.js +0 -27
- package/src/product/multiReceiptsDetector/multiReceiptsDetectorV1Document.d.ts +0 -14
- package/src/product/multiReceiptsDetector/multiReceiptsDetectorV1Document.js +0 -28
- package/src/product/nutritionFactsLabel/index.d.ts +0 -1
- package/src/product/nutritionFactsLabel/index.js +0 -5
- package/src/product/nutritionFactsLabel/internal.d.ts +0 -15
- package/src/product/nutritionFactsLabel/internal.js +0 -33
- package/src/product/nutritionFactsLabel/nutritionFactsLabelV1.d.ts +0 -16
- package/src/product/nutritionFactsLabel/nutritionFactsLabelV1.js +0 -27
- package/src/product/nutritionFactsLabel/nutritionFactsLabelV1AddedSugar.d.ts +0 -32
- package/src/product/nutritionFactsLabel/nutritionFactsLabelV1AddedSugar.js +0 -85
- package/src/product/nutritionFactsLabel/nutritionFactsLabelV1Calorie.d.ts +0 -32
- package/src/product/nutritionFactsLabel/nutritionFactsLabelV1Calorie.js +0 -85
- package/src/product/nutritionFactsLabel/nutritionFactsLabelV1Cholesterol.d.ts +0 -32
- package/src/product/nutritionFactsLabel/nutritionFactsLabelV1Cholesterol.js +0 -85
- package/src/product/nutritionFactsLabel/nutritionFactsLabelV1DietaryFiber.d.ts +0 -32
- package/src/product/nutritionFactsLabel/nutritionFactsLabelV1DietaryFiber.js +0 -85
- package/src/product/nutritionFactsLabel/nutritionFactsLabelV1Document.d.ts +0 -53
- package/src/product/nutritionFactsLabel/nutritionFactsLabelV1Document.js +0 -117
- package/src/product/nutritionFactsLabel/nutritionFactsLabelV1Nutrient.d.ts +0 -36
- package/src/product/nutritionFactsLabel/nutritionFactsLabelV1Nutrient.js +0 -108
- package/src/product/nutritionFactsLabel/nutritionFactsLabelV1Protein.d.ts +0 -32
- package/src/product/nutritionFactsLabel/nutritionFactsLabelV1Protein.js +0 -85
- package/src/product/nutritionFactsLabel/nutritionFactsLabelV1SaturatedFat.d.ts +0 -32
- package/src/product/nutritionFactsLabel/nutritionFactsLabelV1SaturatedFat.js +0 -85
- package/src/product/nutritionFactsLabel/nutritionFactsLabelV1ServingSize.d.ts +0 -30
- package/src/product/nutritionFactsLabel/nutritionFactsLabelV1ServingSize.js +0 -66
- package/src/product/nutritionFactsLabel/nutritionFactsLabelV1Sodium.d.ts +0 -34
- package/src/product/nutritionFactsLabel/nutritionFactsLabelV1Sodium.js +0 -90
- package/src/product/nutritionFactsLabel/nutritionFactsLabelV1TotalCarbohydrate.d.ts +0 -32
- package/src/product/nutritionFactsLabel/nutritionFactsLabelV1TotalCarbohydrate.js +0 -85
- package/src/product/nutritionFactsLabel/nutritionFactsLabelV1TotalFat.d.ts +0 -32
- package/src/product/nutritionFactsLabel/nutritionFactsLabelV1TotalFat.js +0 -85
- package/src/product/nutritionFactsLabel/nutritionFactsLabelV1TotalSugar.d.ts +0 -32
- package/src/product/nutritionFactsLabel/nutritionFactsLabelV1TotalSugar.js +0 -85
- package/src/product/nutritionFactsLabel/nutritionFactsLabelV1TransFat.d.ts +0 -32
- package/src/product/nutritionFactsLabel/nutritionFactsLabelV1TransFat.js +0 -85
- package/src/product/passport/index.d.ts +0 -1
- package/src/product/passport/index.js +0 -5
- package/src/product/passport/internal.d.ts +0 -2
- package/src/product/passport/internal.js +0 -7
- package/src/product/passport/passportV1.d.ts +0 -16
- package/src/product/passport/passportV1.js +0 -27
- package/src/product/passport/passportV1Document.d.ts +0 -34
- package/src/product/passport/passportV1Document.js +0 -78
- package/src/product/receipt/index.d.ts +0 -1
- package/src/product/receipt/index.js +0 -5
- package/src/product/receipt/internal.d.ts +0 -3
- package/src/product/receipt/internal.js +0 -9
- package/src/product/receipt/receiptV5.d.ts +0 -16
- package/src/product/receipt/receiptV5.js +0 -27
- package/src/product/receipt/receiptV5Document.d.ts +0 -47
- package/src/product/receipt/receiptV5Document.js +0 -116
- package/src/product/receipt/receiptV5LineItem.d.ts +0 -34
- package/src/product/receipt/receiptV5LineItem.js +0 -98
- package/src/product/resume/index.d.ts +0 -1
- package/src/product/resume/index.js +0 -5
- package/src/product/resume/internal.d.ts +0 -7
- package/src/product/resume/internal.js +0 -17
- package/src/product/resume/resumeV1.d.ts +0 -16
- package/src/product/resume/resumeV1.js +0 -27
- package/src/product/resume/resumeV1Certificate.d.ts +0 -34
- package/src/product/resume/resumeV1Certificate.js +0 -89
- package/src/product/resume/resumeV1Document.d.ts +0 -51
- package/src/product/resume/resumeV1Document.js +0 -198
- package/src/product/resume/resumeV1Education.d.ts +0 -40
- package/src/product/resume/resumeV1Education.js +0 -119
- package/src/product/resume/resumeV1Language.d.ts +0 -30
- package/src/product/resume/resumeV1Language.js +0 -69
- package/src/product/resume/resumeV1ProfessionalExperience.d.ts +0 -44
- package/src/product/resume/resumeV1ProfessionalExperience.js +0 -139
- package/src/product/resume/resumeV1SocialNetworksUrl.d.ts +0 -30
- package/src/product/resume/resumeV1SocialNetworksUrl.js +0 -69
- package/src/product/us/bankCheck/bankCheckV1.d.ts +0 -17
- package/src/product/us/bankCheck/bankCheckV1.js +0 -28
- package/src/product/us/bankCheck/bankCheckV1Document.d.ts +0 -24
- package/src/product/us/bankCheck/bankCheckV1Document.js +0 -53
- package/src/product/us/bankCheck/bankCheckV1Page.d.ts +0 -14
- package/src/product/us/bankCheck/bankCheckV1Page.js +0 -32
- package/src/product/us/bankCheck/index.d.ts +0 -1
- package/src/product/us/bankCheck/index.js +0 -5
- package/src/product/us/bankCheck/internal.d.ts +0 -3
- package/src/product/us/bankCheck/internal.js +0 -9
- package/src/product/us/healthcareCard/healthcareCardV1.d.ts +0 -16
- package/src/product/us/healthcareCard/healthcareCardV1.js +0 -27
- package/src/product/us/healthcareCard/healthcareCardV1Copay.d.ts +0 -30
- package/src/product/us/healthcareCard/healthcareCardV1Copay.js +0 -72
- package/src/product/us/healthcareCard/healthcareCardV1Document.d.ts +0 -41
- package/src/product/us/healthcareCard/healthcareCardV1Document.js +0 -106
- package/src/product/us/healthcareCard/index.d.ts +0 -1
- package/src/product/us/healthcareCard/index.js +0 -5
- package/src/product/us/healthcareCard/internal.d.ts +0 -3
- package/src/product/us/healthcareCard/internal.js +0 -9
- package/src/product/us/index.d.ts +0 -3
- package/src/product/us/index.js +0 -9
- package/src/product/us/internal.d.ts +0 -3
- package/src/product/us/internal.js +0 -39
- package/src/product/us/usMail/index.d.ts +0 -1
- package/src/product/us/usMail/index.js +0 -5
- package/src/product/us/usMail/internal.d.ts +0 -4
- package/src/product/us/usMail/internal.js +0 -11
- package/src/product/us/usMail/usMailV3.d.ts +0 -16
- package/src/product/us/usMail/usMailV3.js +0 -27
- package/src/product/us/usMail/usMailV3Document.d.ts +0 -24
- package/src/product/us/usMail/usMailV3Document.js +0 -68
- package/src/product/us/usMail/usMailV3RecipientAddress.d.ts +0 -42
- package/src/product/us/usMail/usMailV3RecipientAddress.js +0 -129
- package/src/product/us/usMail/usMailV3SenderAddress.d.ts +0 -36
- package/src/product/us/usMail/usMailV3SenderAddress.js +0 -73
- /package/bin/{mindee.d.ts → mindeeV1.d.ts} +0 -0
- /package/src/{imageOperations → image}/imageCompressor.d.ts +0 -0
- /package/src/input/{sources/inputSource.d.ts → inputSource.d.ts} +0 -0
- /package/src/parsing/{common/dateParser.d.ts → dateParser.d.ts} +0 -0
- /package/src/parsing/{common/stringDict.d.ts → stringDict.d.ts} +0 -0
- /package/src/{cli.d.ts → v1/cli.d.ts} +0 -0
- /package/src/{parsing → v1/parsing}/common/executionPriority.d.ts +0 -0
- /package/src/{parsing → v1/parsing}/common/extras/extras.d.ts +0 -0
- /package/src/{parsing → v1/parsing}/common/prediction.d.ts +0 -0
- /package/src/{parsing → v1/parsing}/common/product.d.ts +0 -0
- /package/src/{parsing → v1/parsing}/common/summaryHelper.d.ts +0 -0
- /package/src/{parsing/v2 → v2/parsing/inference}/field/fieldConfidence.d.ts +0 -0
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { Prediction, StringDict } from "../../../parsing/common";
|
|
2
|
-
import { EnergyBillV1EnergySupplier } from "./energyBillV1EnergySupplier";
|
|
3
|
-
import { EnergyBillV1EnergyConsumer } from "./energyBillV1EnergyConsumer";
|
|
4
|
-
import { EnergyBillV1Subscription } from "./energyBillV1Subscription";
|
|
5
|
-
import { EnergyBillV1EnergyUsage } from "./energyBillV1EnergyUsage";
|
|
6
|
-
import { EnergyBillV1TaxesAndContribution } from "./energyBillV1TaxesAndContribution";
|
|
7
|
-
import { EnergyBillV1MeterDetail } from "./energyBillV1MeterDetail";
|
|
8
|
-
import { AmountField, DateField, StringField } from "../../../parsing/standard";
|
|
9
|
-
/**
|
|
10
|
-
* Energy Bill API version 1.2 document data.
|
|
11
|
-
*/
|
|
12
|
-
export declare class EnergyBillV1Document implements Prediction {
|
|
13
|
-
/** The unique identifier associated with a specific contract. */
|
|
14
|
-
contractId: StringField;
|
|
15
|
-
/**
|
|
16
|
-
* The unique identifier assigned to each electricity or gas consumption point. It specifies the exact location where
|
|
17
|
-
* the energy is delivered.
|
|
18
|
-
*/
|
|
19
|
-
deliveryPoint: StringField;
|
|
20
|
-
/** The date by which the payment for the energy invoice is due. */
|
|
21
|
-
dueDate: DateField;
|
|
22
|
-
/** The entity that consumes the energy. */
|
|
23
|
-
energyConsumer: EnergyBillV1EnergyConsumer;
|
|
24
|
-
/** The company that supplies the energy. */
|
|
25
|
-
energySupplier: EnergyBillV1EnergySupplier;
|
|
26
|
-
/** Details of energy consumption. */
|
|
27
|
-
energyUsage: EnergyBillV1EnergyUsage[];
|
|
28
|
-
/** The date when the energy invoice was issued. */
|
|
29
|
-
invoiceDate: DateField;
|
|
30
|
-
/** The unique identifier of the energy invoice. */
|
|
31
|
-
invoiceNumber: StringField;
|
|
32
|
-
/** Information about the energy meter. */
|
|
33
|
-
meterDetails: EnergyBillV1MeterDetail;
|
|
34
|
-
/** The subscription details fee for the energy service. */
|
|
35
|
-
subscription: EnergyBillV1Subscription[];
|
|
36
|
-
/** Details of Taxes and Contributions. */
|
|
37
|
-
taxesAndContributions: EnergyBillV1TaxesAndContribution[];
|
|
38
|
-
/** The total amount to be paid for the energy invoice. */
|
|
39
|
-
totalAmount: AmountField;
|
|
40
|
-
/** The total amount to be paid for the energy invoice before taxes. */
|
|
41
|
-
totalBeforeTaxes: AmountField;
|
|
42
|
-
/** Total of taxes applied to the invoice. */
|
|
43
|
-
totalTaxes: AmountField;
|
|
44
|
-
constructor(rawPrediction: StringDict, pageId?: number);
|
|
45
|
-
/**
|
|
46
|
-
* Default string representation.
|
|
47
|
-
*/
|
|
48
|
-
toString(): string;
|
|
49
|
-
}
|
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EnergyBillV1Document = void 0;
|
|
4
|
-
const common_1 = require("../../../parsing/common");
|
|
5
|
-
const energyBillV1EnergySupplier_1 = require("./energyBillV1EnergySupplier");
|
|
6
|
-
const energyBillV1EnergyConsumer_1 = require("./energyBillV1EnergyConsumer");
|
|
7
|
-
const energyBillV1Subscription_1 = require("./energyBillV1Subscription");
|
|
8
|
-
const energyBillV1EnergyUsage_1 = require("./energyBillV1EnergyUsage");
|
|
9
|
-
const energyBillV1TaxesAndContribution_1 = require("./energyBillV1TaxesAndContribution");
|
|
10
|
-
const energyBillV1MeterDetail_1 = require("./energyBillV1MeterDetail");
|
|
11
|
-
const standard_1 = require("../../../parsing/standard");
|
|
12
|
-
/**
|
|
13
|
-
* Energy Bill API version 1.2 document data.
|
|
14
|
-
*/
|
|
15
|
-
class EnergyBillV1Document {
|
|
16
|
-
constructor(rawPrediction, pageId) {
|
|
17
|
-
/** Details of energy consumption. */
|
|
18
|
-
this.energyUsage = [];
|
|
19
|
-
/** The subscription details fee for the energy service. */
|
|
20
|
-
this.subscription = [];
|
|
21
|
-
/** Details of Taxes and Contributions. */
|
|
22
|
-
this.taxesAndContributions = [];
|
|
23
|
-
this.contractId = new standard_1.StringField({
|
|
24
|
-
prediction: rawPrediction["contract_id"],
|
|
25
|
-
pageId: pageId,
|
|
26
|
-
});
|
|
27
|
-
this.deliveryPoint = new standard_1.StringField({
|
|
28
|
-
prediction: rawPrediction["delivery_point"],
|
|
29
|
-
pageId: pageId,
|
|
30
|
-
});
|
|
31
|
-
this.dueDate = new standard_1.DateField({
|
|
32
|
-
prediction: rawPrediction["due_date"],
|
|
33
|
-
pageId: pageId,
|
|
34
|
-
});
|
|
35
|
-
this.energyConsumer = new energyBillV1EnergyConsumer_1.EnergyBillV1EnergyConsumer({
|
|
36
|
-
prediction: rawPrediction["energy_consumer"],
|
|
37
|
-
pageId: pageId,
|
|
38
|
-
});
|
|
39
|
-
this.energySupplier = new energyBillV1EnergySupplier_1.EnergyBillV1EnergySupplier({
|
|
40
|
-
prediction: rawPrediction["energy_supplier"],
|
|
41
|
-
pageId: pageId,
|
|
42
|
-
});
|
|
43
|
-
rawPrediction["energy_usage"] &&
|
|
44
|
-
rawPrediction["energy_usage"].map((itemPrediction) => this.energyUsage.push(new energyBillV1EnergyUsage_1.EnergyBillV1EnergyUsage({
|
|
45
|
-
prediction: itemPrediction,
|
|
46
|
-
pageId: pageId,
|
|
47
|
-
})));
|
|
48
|
-
this.invoiceDate = new standard_1.DateField({
|
|
49
|
-
prediction: rawPrediction["invoice_date"],
|
|
50
|
-
pageId: pageId,
|
|
51
|
-
});
|
|
52
|
-
this.invoiceNumber = new standard_1.StringField({
|
|
53
|
-
prediction: rawPrediction["invoice_number"],
|
|
54
|
-
pageId: pageId,
|
|
55
|
-
});
|
|
56
|
-
this.meterDetails = new energyBillV1MeterDetail_1.EnergyBillV1MeterDetail({
|
|
57
|
-
prediction: rawPrediction["meter_details"],
|
|
58
|
-
pageId: pageId,
|
|
59
|
-
});
|
|
60
|
-
rawPrediction["subscription"] &&
|
|
61
|
-
rawPrediction["subscription"].map((itemPrediction) => this.subscription.push(new energyBillV1Subscription_1.EnergyBillV1Subscription({
|
|
62
|
-
prediction: itemPrediction,
|
|
63
|
-
pageId: pageId,
|
|
64
|
-
})));
|
|
65
|
-
rawPrediction["taxes_and_contributions"] &&
|
|
66
|
-
rawPrediction["taxes_and_contributions"].map((itemPrediction) => this.taxesAndContributions.push(new energyBillV1TaxesAndContribution_1.EnergyBillV1TaxesAndContribution({
|
|
67
|
-
prediction: itemPrediction,
|
|
68
|
-
pageId: pageId,
|
|
69
|
-
})));
|
|
70
|
-
this.totalAmount = new standard_1.AmountField({
|
|
71
|
-
prediction: rawPrediction["total_amount"],
|
|
72
|
-
pageId: pageId,
|
|
73
|
-
});
|
|
74
|
-
this.totalBeforeTaxes = new standard_1.AmountField({
|
|
75
|
-
prediction: rawPrediction["total_before_taxes"],
|
|
76
|
-
pageId: pageId,
|
|
77
|
-
});
|
|
78
|
-
this.totalTaxes = new standard_1.AmountField({
|
|
79
|
-
prediction: rawPrediction["total_taxes"],
|
|
80
|
-
pageId: pageId,
|
|
81
|
-
});
|
|
82
|
-
}
|
|
83
|
-
/**
|
|
84
|
-
* Default string representation.
|
|
85
|
-
*/
|
|
86
|
-
toString() {
|
|
87
|
-
let subscriptionSummary = "";
|
|
88
|
-
if (this.subscription && this.subscription.length > 0) {
|
|
89
|
-
const subscriptionColSizes = [38, 12, 12, 10, 11, 12];
|
|
90
|
-
subscriptionSummary += "\n" + (0, common_1.lineSeparator)(subscriptionColSizes, "-") + "\n ";
|
|
91
|
-
subscriptionSummary += "| Description ";
|
|
92
|
-
subscriptionSummary += "| End Date ";
|
|
93
|
-
subscriptionSummary += "| Start Date ";
|
|
94
|
-
subscriptionSummary += "| Tax Rate ";
|
|
95
|
-
subscriptionSummary += "| Total ";
|
|
96
|
-
subscriptionSummary += "| Unit Price ";
|
|
97
|
-
subscriptionSummary += "|\n" + (0, common_1.lineSeparator)(subscriptionColSizes, "=");
|
|
98
|
-
subscriptionSummary += this.subscription.map((item) => "\n " + item.toTableLine() + "\n" + (0, common_1.lineSeparator)(subscriptionColSizes, "-")).join("");
|
|
99
|
-
}
|
|
100
|
-
let energyUsageSummary = "";
|
|
101
|
-
if (this.energyUsage && this.energyUsage.length > 0) {
|
|
102
|
-
const energyUsageColSizes = [13, 38, 12, 12, 10, 11, 17, 12];
|
|
103
|
-
energyUsageSummary += "\n" + (0, common_1.lineSeparator)(energyUsageColSizes, "-") + "\n ";
|
|
104
|
-
energyUsageSummary += "| Consumption ";
|
|
105
|
-
energyUsageSummary += "| Description ";
|
|
106
|
-
energyUsageSummary += "| End Date ";
|
|
107
|
-
energyUsageSummary += "| Start Date ";
|
|
108
|
-
energyUsageSummary += "| Tax Rate ";
|
|
109
|
-
energyUsageSummary += "| Total ";
|
|
110
|
-
energyUsageSummary += "| Unit of Measure ";
|
|
111
|
-
energyUsageSummary += "| Unit Price ";
|
|
112
|
-
energyUsageSummary += "|\n" + (0, common_1.lineSeparator)(energyUsageColSizes, "=");
|
|
113
|
-
energyUsageSummary += this.energyUsage.map((item) => "\n " + item.toTableLine() + "\n" + (0, common_1.lineSeparator)(energyUsageColSizes, "-")).join("");
|
|
114
|
-
}
|
|
115
|
-
let taxesAndContributionsSummary = "";
|
|
116
|
-
if (this.taxesAndContributions && this.taxesAndContributions.length > 0) {
|
|
117
|
-
const taxesAndContributionsColSizes = [38, 12, 12, 10, 11, 12];
|
|
118
|
-
taxesAndContributionsSummary += "\n" + (0, common_1.lineSeparator)(taxesAndContributionsColSizes, "-") + "\n ";
|
|
119
|
-
taxesAndContributionsSummary += "| Description ";
|
|
120
|
-
taxesAndContributionsSummary += "| End Date ";
|
|
121
|
-
taxesAndContributionsSummary += "| Start Date ";
|
|
122
|
-
taxesAndContributionsSummary += "| Tax Rate ";
|
|
123
|
-
taxesAndContributionsSummary += "| Total ";
|
|
124
|
-
taxesAndContributionsSummary += "| Unit Price ";
|
|
125
|
-
taxesAndContributionsSummary += "|\n" + (0, common_1.lineSeparator)(taxesAndContributionsColSizes, "=");
|
|
126
|
-
taxesAndContributionsSummary += this.taxesAndContributions.map((item) => "\n " + item.toTableLine() + "\n" + (0, common_1.lineSeparator)(taxesAndContributionsColSizes, "-")).join("");
|
|
127
|
-
}
|
|
128
|
-
const outStr = `:Invoice Number: ${this.invoiceNumber}
|
|
129
|
-
:Contract ID: ${this.contractId}
|
|
130
|
-
:Delivery Point: ${this.deliveryPoint}
|
|
131
|
-
:Invoice Date: ${this.invoiceDate}
|
|
132
|
-
:Due Date: ${this.dueDate}
|
|
133
|
-
:Total Before Taxes: ${this.totalBeforeTaxes}
|
|
134
|
-
:Total Taxes: ${this.totalTaxes}
|
|
135
|
-
:Total Amount: ${this.totalAmount}
|
|
136
|
-
:Energy Supplier: ${this.energySupplier.toFieldList()}
|
|
137
|
-
:Energy Consumer: ${this.energyConsumer.toFieldList()}
|
|
138
|
-
:Subscription: ${subscriptionSummary}
|
|
139
|
-
:Energy Usage: ${energyUsageSummary}
|
|
140
|
-
:Taxes and Contributions: ${taxesAndContributionsSummary}
|
|
141
|
-
:Meter Details: ${this.meterDetails.toFieldList()}`.trimEnd();
|
|
142
|
-
return (0, common_1.cleanOutString)(outStr);
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
exports.EnergyBillV1Document = EnergyBillV1Document;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { StringDict } from "../../../parsing/common";
|
|
2
|
-
import { Polygon } from "../../../geometry";
|
|
3
|
-
/**
|
|
4
|
-
* The entity that consumes the energy.
|
|
5
|
-
*/
|
|
6
|
-
export declare class EnergyBillV1EnergyConsumer {
|
|
7
|
-
#private;
|
|
8
|
-
/** The address of the energy consumer. */
|
|
9
|
-
address: string | null;
|
|
10
|
-
/** The name of the energy consumer. */
|
|
11
|
-
name: string | null;
|
|
12
|
-
/** Confidence score */
|
|
13
|
-
confidence: number;
|
|
14
|
-
/** The document page on which the information was found. */
|
|
15
|
-
pageId: number;
|
|
16
|
-
/**
|
|
17
|
-
* Contains the relative vertices coordinates (points) of a polygon containing
|
|
18
|
-
* the field in the document.
|
|
19
|
-
*/
|
|
20
|
-
polygon: Polygon;
|
|
21
|
-
constructor({ prediction }: StringDict);
|
|
22
|
-
/**
|
|
23
|
-
* Default string representation.
|
|
24
|
-
*/
|
|
25
|
-
toString(): string;
|
|
26
|
-
/**
|
|
27
|
-
* Output in a format suitable for inclusion in a field list.
|
|
28
|
-
*/
|
|
29
|
-
toFieldList(): string;
|
|
30
|
-
}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
3
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
4
|
-
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");
|
|
5
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
6
|
-
};
|
|
7
|
-
var _EnergyBillV1EnergyConsumer_instances, _EnergyBillV1EnergyConsumer_printableValues;
|
|
8
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.EnergyBillV1EnergyConsumer = void 0;
|
|
10
|
-
const geometry_1 = require("../../../geometry");
|
|
11
|
-
/**
|
|
12
|
-
* The entity that consumes the energy.
|
|
13
|
-
*/
|
|
14
|
-
class EnergyBillV1EnergyConsumer {
|
|
15
|
-
constructor({ prediction = {} }) {
|
|
16
|
-
_EnergyBillV1EnergyConsumer_instances.add(this);
|
|
17
|
-
/** Confidence score */
|
|
18
|
-
this.confidence = 0.0;
|
|
19
|
-
/**
|
|
20
|
-
* Contains the relative vertices coordinates (points) of a polygon containing
|
|
21
|
-
* the field in the document.
|
|
22
|
-
*/
|
|
23
|
-
this.polygon = new geometry_1.Polygon();
|
|
24
|
-
this.address = prediction["address"];
|
|
25
|
-
this.name = prediction["name"];
|
|
26
|
-
this.pageId = prediction["page_id"];
|
|
27
|
-
this.confidence = prediction["confidence"] ? prediction.confidence : 0.0;
|
|
28
|
-
if (prediction["polygon"]) {
|
|
29
|
-
this.polygon = prediction.polygon;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Default string representation.
|
|
34
|
-
*/
|
|
35
|
-
toString() {
|
|
36
|
-
const printable = __classPrivateFieldGet(this, _EnergyBillV1EnergyConsumer_instances, "m", _EnergyBillV1EnergyConsumer_printableValues).call(this);
|
|
37
|
-
return ("Address: " +
|
|
38
|
-
printable.address +
|
|
39
|
-
", Name: " +
|
|
40
|
-
printable.name);
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* Output in a format suitable for inclusion in a field list.
|
|
44
|
-
*/
|
|
45
|
-
toFieldList() {
|
|
46
|
-
const printable = __classPrivateFieldGet(this, _EnergyBillV1EnergyConsumer_instances, "m", _EnergyBillV1EnergyConsumer_printableValues).call(this);
|
|
47
|
-
return `
|
|
48
|
-
:Address: ${printable.address}
|
|
49
|
-
:Name: ${printable.name}`.trimEnd();
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
exports.EnergyBillV1EnergyConsumer = EnergyBillV1EnergyConsumer;
|
|
53
|
-
_EnergyBillV1EnergyConsumer_instances = new WeakSet(), _EnergyBillV1EnergyConsumer_printableValues = function _EnergyBillV1EnergyConsumer_printableValues() {
|
|
54
|
-
return {
|
|
55
|
-
address: this.address ?? "",
|
|
56
|
-
name: this.name ?? "",
|
|
57
|
-
};
|
|
58
|
-
};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { StringDict } from "../../../parsing/common";
|
|
2
|
-
import { Polygon } from "../../../geometry";
|
|
3
|
-
/**
|
|
4
|
-
* The company that supplies the energy.
|
|
5
|
-
*/
|
|
6
|
-
export declare class EnergyBillV1EnergySupplier {
|
|
7
|
-
#private;
|
|
8
|
-
/** The address of the energy supplier. */
|
|
9
|
-
address: string | null;
|
|
10
|
-
/** The name of the energy supplier. */
|
|
11
|
-
name: string | null;
|
|
12
|
-
/** Confidence score */
|
|
13
|
-
confidence: number;
|
|
14
|
-
/** The document page on which the information was found. */
|
|
15
|
-
pageId: number;
|
|
16
|
-
/**
|
|
17
|
-
* Contains the relative vertices coordinates (points) of a polygon containing
|
|
18
|
-
* the field in the document.
|
|
19
|
-
*/
|
|
20
|
-
polygon: Polygon;
|
|
21
|
-
constructor({ prediction }: StringDict);
|
|
22
|
-
/**
|
|
23
|
-
* Default string representation.
|
|
24
|
-
*/
|
|
25
|
-
toString(): string;
|
|
26
|
-
/**
|
|
27
|
-
* Output in a format suitable for inclusion in a field list.
|
|
28
|
-
*/
|
|
29
|
-
toFieldList(): string;
|
|
30
|
-
}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
3
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
4
|
-
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");
|
|
5
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
6
|
-
};
|
|
7
|
-
var _EnergyBillV1EnergySupplier_instances, _EnergyBillV1EnergySupplier_printableValues;
|
|
8
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.EnergyBillV1EnergySupplier = void 0;
|
|
10
|
-
const geometry_1 = require("../../../geometry");
|
|
11
|
-
/**
|
|
12
|
-
* The company that supplies the energy.
|
|
13
|
-
*/
|
|
14
|
-
class EnergyBillV1EnergySupplier {
|
|
15
|
-
constructor({ prediction = {} }) {
|
|
16
|
-
_EnergyBillV1EnergySupplier_instances.add(this);
|
|
17
|
-
/** Confidence score */
|
|
18
|
-
this.confidence = 0.0;
|
|
19
|
-
/**
|
|
20
|
-
* Contains the relative vertices coordinates (points) of a polygon containing
|
|
21
|
-
* the field in the document.
|
|
22
|
-
*/
|
|
23
|
-
this.polygon = new geometry_1.Polygon();
|
|
24
|
-
this.address = prediction["address"];
|
|
25
|
-
this.name = prediction["name"];
|
|
26
|
-
this.pageId = prediction["page_id"];
|
|
27
|
-
this.confidence = prediction["confidence"] ? prediction.confidence : 0.0;
|
|
28
|
-
if (prediction["polygon"]) {
|
|
29
|
-
this.polygon = prediction.polygon;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Default string representation.
|
|
34
|
-
*/
|
|
35
|
-
toString() {
|
|
36
|
-
const printable = __classPrivateFieldGet(this, _EnergyBillV1EnergySupplier_instances, "m", _EnergyBillV1EnergySupplier_printableValues).call(this);
|
|
37
|
-
return ("Address: " +
|
|
38
|
-
printable.address +
|
|
39
|
-
", Name: " +
|
|
40
|
-
printable.name);
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* Output in a format suitable for inclusion in a field list.
|
|
44
|
-
*/
|
|
45
|
-
toFieldList() {
|
|
46
|
-
const printable = __classPrivateFieldGet(this, _EnergyBillV1EnergySupplier_instances, "m", _EnergyBillV1EnergySupplier_printableValues).call(this);
|
|
47
|
-
return `
|
|
48
|
-
:Address: ${printable.address}
|
|
49
|
-
:Name: ${printable.name}`.trimEnd();
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
exports.EnergyBillV1EnergySupplier = EnergyBillV1EnergySupplier;
|
|
53
|
-
_EnergyBillV1EnergySupplier_instances = new WeakSet(), _EnergyBillV1EnergySupplier_printableValues = function _EnergyBillV1EnergySupplier_printableValues() {
|
|
54
|
-
return {
|
|
55
|
-
address: this.address ?? "",
|
|
56
|
-
name: this.name ?? "",
|
|
57
|
-
};
|
|
58
|
-
};
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { StringDict } from "../../../parsing/common";
|
|
2
|
-
import { Polygon } from "../../../geometry";
|
|
3
|
-
/**
|
|
4
|
-
* Details of energy consumption.
|
|
5
|
-
*/
|
|
6
|
-
export declare class EnergyBillV1EnergyUsage {
|
|
7
|
-
#private;
|
|
8
|
-
/** The price per unit of energy consumed. */
|
|
9
|
-
consumption: number | null;
|
|
10
|
-
/** Description or details of the energy usage. */
|
|
11
|
-
description: string | null;
|
|
12
|
-
/** The end date of the energy usage. */
|
|
13
|
-
endDate: string | null;
|
|
14
|
-
/** The start date of the energy usage. */
|
|
15
|
-
startDate: string | null;
|
|
16
|
-
/** The rate of tax applied to the total cost. */
|
|
17
|
-
taxRate: number | null;
|
|
18
|
-
/** The total cost of energy consumed. */
|
|
19
|
-
total: number | null;
|
|
20
|
-
/** The unit of measurement for energy consumption. */
|
|
21
|
-
unit: string | null;
|
|
22
|
-
/** The price per unit of energy consumed. */
|
|
23
|
-
unitPrice: number | null;
|
|
24
|
-
/** Confidence score */
|
|
25
|
-
confidence: number;
|
|
26
|
-
/** The document page on which the information was found. */
|
|
27
|
-
pageId: number;
|
|
28
|
-
/**
|
|
29
|
-
* Contains the relative vertices coordinates (points) of a polygon containing
|
|
30
|
-
* the field in the document.
|
|
31
|
-
*/
|
|
32
|
-
polygon: Polygon;
|
|
33
|
-
constructor({ prediction }: StringDict);
|
|
34
|
-
/**
|
|
35
|
-
* Default string representation.
|
|
36
|
-
*/
|
|
37
|
-
toString(): string;
|
|
38
|
-
/**
|
|
39
|
-
* Output in a format suitable for inclusion in an rST table.
|
|
40
|
-
*/
|
|
41
|
-
toTableLine(): string;
|
|
42
|
-
}
|
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
3
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
4
|
-
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");
|
|
5
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
6
|
-
};
|
|
7
|
-
var _EnergyBillV1EnergyUsage_instances, _EnergyBillV1EnergyUsage_printableValues;
|
|
8
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.EnergyBillV1EnergyUsage = void 0;
|
|
10
|
-
const common_1 = require("../../../parsing/common");
|
|
11
|
-
const geometry_1 = require("../../../geometry");
|
|
12
|
-
/**
|
|
13
|
-
* Details of energy consumption.
|
|
14
|
-
*/
|
|
15
|
-
class EnergyBillV1EnergyUsage {
|
|
16
|
-
constructor({ prediction = {} }) {
|
|
17
|
-
_EnergyBillV1EnergyUsage_instances.add(this);
|
|
18
|
-
/** Confidence score */
|
|
19
|
-
this.confidence = 0.0;
|
|
20
|
-
/**
|
|
21
|
-
* Contains the relative vertices coordinates (points) of a polygon containing
|
|
22
|
-
* the field in the document.
|
|
23
|
-
*/
|
|
24
|
-
this.polygon = new geometry_1.Polygon();
|
|
25
|
-
if (prediction["consumption"] !== undefined &&
|
|
26
|
-
prediction["consumption"] !== null &&
|
|
27
|
-
!isNaN(prediction["consumption"])) {
|
|
28
|
-
this.consumption = +parseFloat(prediction["consumption"]);
|
|
29
|
-
}
|
|
30
|
-
else {
|
|
31
|
-
this.consumption = null;
|
|
32
|
-
}
|
|
33
|
-
this.description = prediction["description"];
|
|
34
|
-
this.endDate = prediction["end_date"];
|
|
35
|
-
this.startDate = prediction["start_date"];
|
|
36
|
-
if (prediction["tax_rate"] !== undefined &&
|
|
37
|
-
prediction["tax_rate"] !== null &&
|
|
38
|
-
!isNaN(prediction["tax_rate"])) {
|
|
39
|
-
this.taxRate = +parseFloat(prediction["tax_rate"]);
|
|
40
|
-
}
|
|
41
|
-
else {
|
|
42
|
-
this.taxRate = null;
|
|
43
|
-
}
|
|
44
|
-
if (prediction["total"] !== undefined &&
|
|
45
|
-
prediction["total"] !== null &&
|
|
46
|
-
!isNaN(prediction["total"])) {
|
|
47
|
-
this.total = +parseFloat(prediction["total"]);
|
|
48
|
-
}
|
|
49
|
-
else {
|
|
50
|
-
this.total = null;
|
|
51
|
-
}
|
|
52
|
-
this.unit = prediction["unit"];
|
|
53
|
-
if (prediction["unit_price"] !== undefined &&
|
|
54
|
-
prediction["unit_price"] !== null &&
|
|
55
|
-
!isNaN(prediction["unit_price"])) {
|
|
56
|
-
this.unitPrice = +parseFloat(prediction["unit_price"]);
|
|
57
|
-
}
|
|
58
|
-
else {
|
|
59
|
-
this.unitPrice = null;
|
|
60
|
-
}
|
|
61
|
-
this.pageId = prediction["page_id"];
|
|
62
|
-
this.confidence = prediction["confidence"] ? prediction.confidence : 0.0;
|
|
63
|
-
if (prediction["polygon"]) {
|
|
64
|
-
this.polygon = prediction.polygon;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
/**
|
|
68
|
-
* Default string representation.
|
|
69
|
-
*/
|
|
70
|
-
toString() {
|
|
71
|
-
const printable = __classPrivateFieldGet(this, _EnergyBillV1EnergyUsage_instances, "m", _EnergyBillV1EnergyUsage_printableValues).call(this);
|
|
72
|
-
return ("Consumption: " +
|
|
73
|
-
printable.consumption +
|
|
74
|
-
", Description: " +
|
|
75
|
-
printable.description +
|
|
76
|
-
", End Date: " +
|
|
77
|
-
printable.endDate +
|
|
78
|
-
", Start Date: " +
|
|
79
|
-
printable.startDate +
|
|
80
|
-
", Tax Rate: " +
|
|
81
|
-
printable.taxRate +
|
|
82
|
-
", Total: " +
|
|
83
|
-
printable.total +
|
|
84
|
-
", Unit of Measure: " +
|
|
85
|
-
printable.unit +
|
|
86
|
-
", Unit Price: " +
|
|
87
|
-
printable.unitPrice);
|
|
88
|
-
}
|
|
89
|
-
/**
|
|
90
|
-
* Output in a format suitable for inclusion in an rST table.
|
|
91
|
-
*/
|
|
92
|
-
toTableLine() {
|
|
93
|
-
const printable = __classPrivateFieldGet(this, _EnergyBillV1EnergyUsage_instances, "m", _EnergyBillV1EnergyUsage_printableValues).call(this);
|
|
94
|
-
return ("| " +
|
|
95
|
-
printable.consumption.padEnd(11) +
|
|
96
|
-
" | " +
|
|
97
|
-
printable.description.padEnd(36) +
|
|
98
|
-
" | " +
|
|
99
|
-
printable.endDate.padEnd(10) +
|
|
100
|
-
" | " +
|
|
101
|
-
printable.startDate.padEnd(10) +
|
|
102
|
-
" | " +
|
|
103
|
-
printable.taxRate.padEnd(8) +
|
|
104
|
-
" | " +
|
|
105
|
-
printable.total.padEnd(9) +
|
|
106
|
-
" | " +
|
|
107
|
-
printable.unit.padEnd(15) +
|
|
108
|
-
" | " +
|
|
109
|
-
printable.unitPrice.padEnd(10) +
|
|
110
|
-
" |");
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
exports.EnergyBillV1EnergyUsage = EnergyBillV1EnergyUsage;
|
|
114
|
-
_EnergyBillV1EnergyUsage_instances = new WeakSet(), _EnergyBillV1EnergyUsage_printableValues = function _EnergyBillV1EnergyUsage_printableValues() {
|
|
115
|
-
return {
|
|
116
|
-
consumption: this.consumption !== undefined ? (0, common_1.floatToString)(this.consumption) : "",
|
|
117
|
-
description: this.description ?
|
|
118
|
-
this.description.length <= 36 ?
|
|
119
|
-
(0, common_1.cleanSpecialChars)(this.description) :
|
|
120
|
-
(0, common_1.cleanSpecialChars)(this.description).slice(0, 33) + "..." :
|
|
121
|
-
"",
|
|
122
|
-
endDate: this.endDate ?
|
|
123
|
-
this.endDate.length <= 10 ?
|
|
124
|
-
(0, common_1.cleanSpecialChars)(this.endDate) :
|
|
125
|
-
(0, common_1.cleanSpecialChars)(this.endDate).slice(0, 7) + "..." :
|
|
126
|
-
"",
|
|
127
|
-
startDate: this.startDate ?
|
|
128
|
-
this.startDate.length <= 10 ?
|
|
129
|
-
(0, common_1.cleanSpecialChars)(this.startDate) :
|
|
130
|
-
(0, common_1.cleanSpecialChars)(this.startDate).slice(0, 7) + "..." :
|
|
131
|
-
"",
|
|
132
|
-
taxRate: this.taxRate !== undefined ? (0, common_1.floatToString)(this.taxRate) : "",
|
|
133
|
-
total: this.total !== undefined ? (0, common_1.floatToString)(this.total) : "",
|
|
134
|
-
unit: this.unit ?
|
|
135
|
-
this.unit.length <= 15 ?
|
|
136
|
-
(0, common_1.cleanSpecialChars)(this.unit) :
|
|
137
|
-
(0, common_1.cleanSpecialChars)(this.unit).slice(0, 12) + "..." :
|
|
138
|
-
"",
|
|
139
|
-
unitPrice: this.unitPrice !== undefined ? (0, common_1.floatToString)(this.unitPrice) : "",
|
|
140
|
-
};
|
|
141
|
-
};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { StringDict } from "../../../parsing/common";
|
|
2
|
-
import { Polygon } from "../../../geometry";
|
|
3
|
-
/**
|
|
4
|
-
* Information about the energy meter.
|
|
5
|
-
*/
|
|
6
|
-
export declare class EnergyBillV1MeterDetail {
|
|
7
|
-
#private;
|
|
8
|
-
/** The unique identifier of the energy meter. */
|
|
9
|
-
meterNumber: string | null;
|
|
10
|
-
/** The type of energy meter. */
|
|
11
|
-
meterType: string | null;
|
|
12
|
-
/** The unit of power for energy consumption. */
|
|
13
|
-
unit: string | null;
|
|
14
|
-
/** Confidence score */
|
|
15
|
-
confidence: number;
|
|
16
|
-
/** The document page on which the information was found. */
|
|
17
|
-
pageId: number;
|
|
18
|
-
/**
|
|
19
|
-
* Contains the relative vertices coordinates (points) of a polygon containing
|
|
20
|
-
* the field in the document.
|
|
21
|
-
*/
|
|
22
|
-
polygon: Polygon;
|
|
23
|
-
constructor({ prediction }: StringDict);
|
|
24
|
-
/**
|
|
25
|
-
* Default string representation.
|
|
26
|
-
*/
|
|
27
|
-
toString(): string;
|
|
28
|
-
/**
|
|
29
|
-
* Output in a format suitable for inclusion in a field list.
|
|
30
|
-
*/
|
|
31
|
-
toFieldList(): string;
|
|
32
|
-
}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
3
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
4
|
-
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");
|
|
5
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
6
|
-
};
|
|
7
|
-
var _EnergyBillV1MeterDetail_instances, _EnergyBillV1MeterDetail_printableValues;
|
|
8
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.EnergyBillV1MeterDetail = void 0;
|
|
10
|
-
const geometry_1 = require("../../../geometry");
|
|
11
|
-
/**
|
|
12
|
-
* Information about the energy meter.
|
|
13
|
-
*/
|
|
14
|
-
class EnergyBillV1MeterDetail {
|
|
15
|
-
constructor({ prediction = {} }) {
|
|
16
|
-
_EnergyBillV1MeterDetail_instances.add(this);
|
|
17
|
-
/** Confidence score */
|
|
18
|
-
this.confidence = 0.0;
|
|
19
|
-
/**
|
|
20
|
-
* Contains the relative vertices coordinates (points) of a polygon containing
|
|
21
|
-
* the field in the document.
|
|
22
|
-
*/
|
|
23
|
-
this.polygon = new geometry_1.Polygon();
|
|
24
|
-
this.meterNumber = prediction["meter_number"];
|
|
25
|
-
this.meterType = prediction["meter_type"];
|
|
26
|
-
this.unit = prediction["unit"];
|
|
27
|
-
this.pageId = prediction["page_id"];
|
|
28
|
-
this.confidence = prediction["confidence"] ? prediction.confidence : 0.0;
|
|
29
|
-
if (prediction["polygon"]) {
|
|
30
|
-
this.polygon = prediction.polygon;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* Default string representation.
|
|
35
|
-
*/
|
|
36
|
-
toString() {
|
|
37
|
-
const printable = __classPrivateFieldGet(this, _EnergyBillV1MeterDetail_instances, "m", _EnergyBillV1MeterDetail_printableValues).call(this);
|
|
38
|
-
return ("Meter Number: " +
|
|
39
|
-
printable.meterNumber +
|
|
40
|
-
", Meter Type: " +
|
|
41
|
-
printable.meterType +
|
|
42
|
-
", Unit of Power: " +
|
|
43
|
-
printable.unit);
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* Output in a format suitable for inclusion in a field list.
|
|
47
|
-
*/
|
|
48
|
-
toFieldList() {
|
|
49
|
-
const printable = __classPrivateFieldGet(this, _EnergyBillV1MeterDetail_instances, "m", _EnergyBillV1MeterDetail_printableValues).call(this);
|
|
50
|
-
return `
|
|
51
|
-
:Meter Number: ${printable.meterNumber}
|
|
52
|
-
:Meter Type: ${printable.meterType}
|
|
53
|
-
:Unit of Power: ${printable.unit}`.trimEnd();
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
exports.EnergyBillV1MeterDetail = EnergyBillV1MeterDetail;
|
|
57
|
-
_EnergyBillV1MeterDetail_instances = new WeakSet(), _EnergyBillV1MeterDetail_printableValues = function _EnergyBillV1MeterDetail_printableValues() {
|
|
58
|
-
return {
|
|
59
|
-
meterNumber: this.meterNumber ?? "",
|
|
60
|
-
meterType: this.meterType ?? "",
|
|
61
|
-
unit: this.unit ?? "",
|
|
62
|
-
};
|
|
63
|
-
};
|