mindee 5.9.0 → 5.10.0
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 +6 -0
- package/package.json +12 -13
- package/src/geometry/bbox.d.ts +18 -6
- package/src/geometry/bbox.js +6 -2
- package/src/geometry/boundingBox.d.ts +3 -1
- package/src/geometry/boundingBox.js +3 -1
- package/src/geometry/boundingBoxUtils.d.ts +4 -4
- package/src/geometry/boundingBoxUtils.js +7 -7
- package/src/geometry/minMax.d.ts +9 -3
- package/src/geometry/point.d.ts +3 -1
- package/src/geometry/polygon.d.ts +3 -1
- package/src/geometry/polygon.js +3 -1
- package/src/http/apiCore.js +1 -1
- package/src/http/baseSettings.d.ts +15 -5
- package/src/http/baseSettings.js +4 -2
- package/src/http/dispatcher.js +4 -2
- package/src/image/extractedImage.d.ts +13 -5
- package/src/image/extractedImage.js +3 -3
- package/src/image/extractedImages.d.ts +3 -1
- package/src/image/extractedImages.js +3 -1
- package/src/image/imageCompressor.d.ts +1 -0
- package/src/image/imageCompressor.js +2 -2
- package/src/image/imageExtractor.d.ts +1 -1
- package/src/image/imageExtractor.js +12 -12
- package/src/input/base64Input.d.ts +9 -3
- package/src/input/base64Input.js +9 -3
- package/src/input/bufferInput.d.ts +7 -2
- package/src/input/bufferInput.js +6 -2
- package/src/input/bytesInput.d.ts +10 -3
- package/src/input/bytesInput.js +10 -3
- package/src/input/inputSource.d.ts +4 -2
- package/src/input/inputSource.js +3 -2
- package/src/input/localInputSource.d.ts +19 -6
- package/src/input/localInputSource.js +12 -5
- package/src/input/pageOptions.d.ts +9 -3
- package/src/input/pageOptions.js +6 -2
- package/src/input/pathInput.d.ts +12 -4
- package/src/input/pathInput.js +11 -5
- package/src/input/streamInput.d.ts +14 -5
- package/src/input/streamInput.js +13 -4
- package/src/input/urlInput.d.ts +19 -7
- package/src/input/urlInput.js +20 -12
- package/src/parsing/baseLocalResponse.d.ts +7 -3
- package/src/parsing/baseLocalResponse.js +15 -11
- package/src/parsing/stringDict.d.ts +3 -1
- package/src/pdf/extractedPdf.d.ts +16 -6
- package/src/pdf/extractedPdf.js +5 -3
- package/src/pdf/extractedPdfs.d.ts +3 -1
- package/src/pdf/extractedPdfs.js +3 -1
- package/src/pdf/pdfCompressor.js +14 -14
- package/src/pdf/pdfExtractor.js +1 -1
- package/src/pdf/pdfOperation.d.ts +9 -3
- package/src/pdf/pdfOperation.js +14 -14
- package/src/pdf/pdfUtils.js +1 -1
- package/src/v1/cli.js +1 -1
- package/src/v1/client.d.ts +42 -14
- package/src/v1/client.js +8 -8
- package/src/v1/extraction/invoiceSplitterExtractor/extractedInvoiceSplitterImage.d.ts +6 -2
- package/src/v1/extraction/invoiceSplitterExtractor/invoiceSplitterExtractor.js +4 -4
- package/src/v1/extraction/multiReceiptsExtractor/extractedMultiReceiptImage.d.ts +6 -2
- package/src/v1/extraction/multiReceiptsExtractor/multiReceiptsExtractor.js +2 -2
- package/src/v1/http/apiSettingsV1.d.ts +15 -5
- package/src/v1/http/apiSettingsV1.js +12 -4
- package/src/v1/http/baseEndpoint.d.ts +6 -2
- package/src/v1/http/endpoint.d.ts +9 -3
- package/src/v1/http/endpoint.js +1 -1
- package/src/v1/http/errors.d.ts +9 -3
- package/src/v1/http/errors.js +6 -2
- package/src/v1/http/httpParams.d.ts +36 -12
- package/src/v1/http/workflowEndpoint.js +1 -1
- package/src/v1/parsing/common/apiRequest.d.ts +15 -5
- package/src/v1/parsing/common/apiResponse.d.ts +6 -2
- package/src/v1/parsing/common/asyncPredictResponse.d.ts +21 -7
- package/src/v1/parsing/common/document.d.ts +18 -6
- package/src/v1/parsing/common/document.js +2 -2
- package/src/v1/parsing/common/execution.d.ts +39 -13
- package/src/v1/parsing/common/executionFile.d.ts +6 -2
- package/src/v1/parsing/common/executionPriority.d.ts +12 -4
- package/src/v1/parsing/common/executionPriority.js +12 -4
- package/src/v1/parsing/common/extras/cropperExtra.d.ts +7 -3
- package/src/v1/parsing/common/extras/cropperExtra.js +6 -3
- package/src/v1/parsing/common/extras/extras.d.ts +9 -3
- package/src/v1/parsing/common/extras/extras.js +6 -2
- package/src/v1/parsing/common/extras/fullTextOcrExtra.d.ts +9 -3
- package/src/v1/parsing/common/extras/fullTextOcrExtra.js +3 -1
- package/src/v1/parsing/common/extras/ragExtra.d.ts +3 -1
- package/src/v1/parsing/common/extras/ragExtra.js +3 -1
- package/src/v1/parsing/common/feedback/feedbackResponse.d.ts +3 -1
- package/src/v1/parsing/common/feedback/feedbackResponse.js +0 -1
- package/src/v1/parsing/common/inference.d.ts +24 -8
- package/src/v1/parsing/common/inference.js +6 -2
- package/src/v1/parsing/common/mvisionV1.d.ts +3 -1
- package/src/v1/parsing/common/mvisionV1.js +3 -1
- package/src/v1/parsing/common/ocr.d.ts +3 -1
- package/src/v1/parsing/common/ocrPage.d.ts +6 -2
- package/src/v1/parsing/common/ocrPage.js +6 -2
- package/src/v1/parsing/common/orientation.d.ts +6 -2
- package/src/v1/parsing/common/page.d.ts +12 -4
- package/src/v1/parsing/common/predictResponse.d.ts +3 -1
- package/src/v1/parsing/common/prediction.d.ts +3 -1
- package/src/v1/parsing/common/prediction.js +3 -1
- package/src/v1/parsing/generated/generatedList.d.ts +6 -2
- package/src/v1/parsing/generated/generatedObject.d.ts +25 -9
- package/src/v1/parsing/generated/generatedObject.js +13 -7
- package/src/v1/parsing/localResponse.d.ts +3 -1
- package/src/v1/parsing/localResponse.js +3 -1
- package/src/v1/parsing/standard/addressField.d.ts +24 -8
- package/src/v1/parsing/standard/amount.d.ts +3 -1
- package/src/v1/parsing/standard/amount.js +3 -1
- package/src/v1/parsing/standard/base.d.ts +27 -9
- package/src/v1/parsing/standard/base.js +6 -2
- package/src/v1/parsing/standard/boolean.d.ts +3 -1
- package/src/v1/parsing/standard/classification.d.ts +6 -2
- package/src/v1/parsing/standard/companyRegistration.d.ts +9 -3
- package/src/v1/parsing/standard/companyRegistration.js +3 -1
- package/src/v1/parsing/standard/date.d.ts +12 -4
- package/src/v1/parsing/standard/date.js +3 -1
- package/src/v1/parsing/standard/field.d.ts +7 -5
- package/src/v1/parsing/standard/field.js +4 -4
- package/src/v1/parsing/standard/locale.d.ts +15 -5
- package/src/v1/parsing/standard/paymentDetails.d.ts +15 -5
- package/src/v1/parsing/standard/position.d.ts +15 -5
- package/src/v1/parsing/standard/tax.d.ts +18 -6
- package/src/v1/parsing/standard/tax.js +15 -5
- package/src/v1/parsing/standard/text.d.ts +6 -2
- package/src/v1/parsing/standard/word.d.ts +9 -3
- package/src/v1/parsing/standard/word.js +3 -1
- package/src/v1/product/barcodeReader/barcodeReaderV1.d.ts +12 -4
- package/src/v1/product/barcodeReader/barcodeReaderV1.js +9 -3
- package/src/v1/product/barcodeReader/barcodeReaderV1Document.d.ts +6 -2
- package/src/v1/product/barcodeReader/barcodeReaderV1Document.js +6 -2
- package/src/v1/product/cropper/cropperV1.d.ts +12 -4
- package/src/v1/product/cropper/cropperV1.js +9 -3
- package/src/v1/product/cropper/cropperV1Page.d.ts +3 -1
- package/src/v1/product/cropper/cropperV1Page.js +3 -1
- package/src/v1/product/driverLicense/driverLicenseV1.d.ts +12 -4
- package/src/v1/product/driverLicense/driverLicenseV1.js +9 -3
- package/src/v1/product/driverLicense/driverLicenseV1Document.d.ts +39 -13
- package/src/v1/product/financialDocument/financialDocumentV1.d.ts +12 -4
- package/src/v1/product/financialDocument/financialDocumentV1.js +9 -3
- package/src/v1/product/financialDocument/financialDocumentV1Document.d.ts +96 -32
- package/src/v1/product/financialDocument/financialDocumentV1Document.js +15 -5
- package/src/v1/product/financialDocument/financialDocumentV1LineItem.d.ts +30 -10
- package/src/v1/product/financialDocument/financialDocumentV1LineItem.js +3 -1
- package/src/v1/product/fr/bankAccountDetails/bankAccountDetailsV1.d.ts +12 -4
- package/src/v1/product/fr/bankAccountDetails/bankAccountDetailsV1.js +9 -3
- package/src/v1/product/fr/bankAccountDetails/bankAccountDetailsV1Document.d.ts +9 -3
- package/src/v1/product/fr/bankAccountDetails/bankAccountDetailsV2.d.ts +12 -4
- package/src/v1/product/fr/bankAccountDetails/bankAccountDetailsV2.js +9 -3
- package/src/v1/product/fr/bankAccountDetails/bankAccountDetailsV2Bban.d.ts +18 -6
- package/src/v1/product/fr/bankAccountDetails/bankAccountDetailsV2Bban.js +3 -1
- package/src/v1/product/fr/bankAccountDetails/bankAccountDetailsV2Document.d.ts +12 -4
- package/src/v1/product/fr/carteGrise/carteGriseV1.d.ts +12 -4
- package/src/v1/product/fr/carteGrise/carteGriseV1.js +9 -3
- package/src/v1/product/fr/carteGrise/carteGriseV1Document.d.ts +123 -41
- package/src/v1/product/fr/idCard/idCardV2.d.ts +12 -4
- package/src/v1/product/fr/idCard/idCardV2.js +9 -3
- package/src/v1/product/fr/idCard/idCardV2Document.d.ts +45 -15
- package/src/v1/product/fr/idCard/idCardV2Document.js +3 -1
- package/src/v1/product/fr/idCard/idCardV2Page.d.ts +6 -2
- package/src/v1/product/generated/generatedV1.d.ts +12 -4
- package/src/v1/product/generated/generatedV1.js +9 -3
- package/src/v1/product/generated/generatedV1Prediction.d.ts +6 -2
- package/src/v1/product/generated/generatedV1Prediction.js +3 -1
- package/src/v1/product/internationalId/internationalIdV2.d.ts +12 -4
- package/src/v1/product/internationalId/internationalIdV2.js +9 -3
- package/src/v1/product/internationalId/internationalIdV2Document.d.ts +51 -17
- package/src/v1/product/internationalId/internationalIdV2Document.js +6 -2
- package/src/v1/product/invoice/invoiceV4.d.ts +12 -4
- package/src/v1/product/invoice/invoiceV4.js +9 -3
- package/src/v1/product/invoice/invoiceV4Document.d.ts +87 -29
- package/src/v1/product/invoice/invoiceV4Document.js +15 -5
- package/src/v1/product/invoice/invoiceV4LineItem.d.ts +30 -10
- package/src/v1/product/invoice/invoiceV4LineItem.js +3 -1
- package/src/v1/product/invoiceSplitter/invoiceSplitterV1.d.ts +12 -4
- package/src/v1/product/invoiceSplitter/invoiceSplitterV1.js +9 -3
- package/src/v1/product/invoiceSplitter/invoiceSplitterV1Document.d.ts +3 -1
- package/src/v1/product/invoiceSplitter/invoiceSplitterV1Document.js +3 -1
- package/src/v1/product/invoiceSplitter/invoiceSplitterV1InvoicePageGroup.d.ts +9 -3
- package/src/v1/product/invoiceSplitter/invoiceSplitterV1InvoicePageGroup.js +3 -1
- package/src/v1/product/multiReceiptsDetector/multiReceiptsDetectorV1.d.ts +12 -4
- package/src/v1/product/multiReceiptsDetector/multiReceiptsDetectorV1.js +9 -3
- package/src/v1/product/multiReceiptsDetector/multiReceiptsDetectorV1Document.d.ts +3 -1
- package/src/v1/product/multiReceiptsDetector/multiReceiptsDetectorV1Document.js +3 -1
- package/src/v1/product/passport/passportV1.d.ts +12 -4
- package/src/v1/product/passport/passportV1.js +9 -3
- package/src/v1/product/passport/passportV1Document.d.ts +33 -11
- package/src/v1/product/passport/passportV1Document.js +3 -1
- package/src/v1/product/receipt/receiptV5.d.ts +12 -4
- package/src/v1/product/receipt/receiptV5.js +9 -3
- package/src/v1/product/receipt/receiptV5Document.d.ts +51 -17
- package/src/v1/product/receipt/receiptV5Document.js +6 -2
- package/src/v1/product/receipt/receiptV5LineItem.d.ts +18 -6
- package/src/v1/product/receipt/receiptV5LineItem.js +3 -1
- package/src/v1/product/resume/resumeV1.d.ts +12 -4
- package/src/v1/product/resume/resumeV1.js +9 -3
- package/src/v1/product/resume/resumeV1Certificate.d.ts +18 -6
- package/src/v1/product/resume/resumeV1Certificate.js +3 -1
- package/src/v1/product/resume/resumeV1Document.d.ts +51 -17
- package/src/v1/product/resume/resumeV1Document.js +27 -9
- package/src/v1/product/resume/resumeV1Education.d.ts +27 -9
- package/src/v1/product/resume/resumeV1Education.js +3 -1
- package/src/v1/product/resume/resumeV1Language.d.ts +12 -4
- package/src/v1/product/resume/resumeV1Language.js +3 -1
- package/src/v1/product/resume/resumeV1ProfessionalExperience.d.ts +33 -11
- package/src/v1/product/resume/resumeV1ProfessionalExperience.js +3 -1
- package/src/v1/product/resume/resumeV1SocialNetworksUrl.d.ts +12 -4
- package/src/v1/product/resume/resumeV1SocialNetworksUrl.js +3 -1
- package/src/v1/product/us/bankCheck/bankCheckV1.d.ts +12 -4
- package/src/v1/product/us/bankCheck/bankCheckV1.js +9 -3
- package/src/v1/product/us/bankCheck/bankCheckV1Document.d.ts +18 -6
- package/src/v1/product/us/bankCheck/bankCheckV1Document.js +3 -1
- package/src/v1/product/us/bankCheck/bankCheckV1Page.d.ts +6 -2
- package/src/v1/product/us/bankCheck/bankCheckV1Page.js +3 -1
- package/src/v2/cli.js +1 -1
- package/src/v2/client.d.ts +9 -3
- package/src/v2/clientOptions/pollingOptions.d.ts +30 -10
- package/src/v2/clientOptions/pollingOptions.js +6 -2
- package/src/v2/http/mindeeApiV2.d.ts +1 -1
- package/src/v2/http/mindeeApiV2.js +1 -1
- package/src/v2/parsing/error/errorDetails.d.ts +3 -1
- package/src/v2/parsing/inference/baseInference.d.ts +6 -2
- package/src/v2/parsing/inference/baseInference.js +6 -2
- package/src/v2/parsing/inference/field/baseField.d.ts +9 -3
- package/src/v2/parsing/inference/field/fieldConfidence.d.ts +12 -4
- package/src/v2/parsing/inference/field/fieldConfidence.js +12 -4
- package/src/v2/parsing/inference/field/fieldLocation.d.ts +9 -3
- package/src/v2/parsing/inference/field/fieldLocation.js +3 -1
- package/src/v2/parsing/inference/field/inferenceFields.d.ts +6 -2
- package/src/v2/parsing/inference/field/inferenceFields.js +3 -1
- package/src/v2/parsing/inference/field/listField.d.ts +6 -2
- package/src/v2/parsing/inference/field/listField.js +6 -2
- package/src/v2/parsing/inference/field/objectField.d.ts +6 -2
- package/src/v2/parsing/inference/field/objectField.js +3 -1
- package/src/v2/parsing/inference/field/ragMetadata.d.ts +3 -1
- package/src/v2/parsing/inference/field/ragMetadata.js +3 -1
- package/src/v2/parsing/inference/field/rawText.d.ts +6 -2
- package/src/v2/parsing/inference/field/rawText.js +6 -2
- package/src/v2/parsing/inference/field/simpleField.d.ts +6 -2
- package/src/v2/parsing/inference/field/simpleField.js +8 -4
- package/src/v2/parsing/inference/inferenceFile.d.ts +6 -2
- package/src/v2/parsing/inference/inferenceFile.js +6 -2
- package/src/v2/parsing/inference/inferenceModel.d.ts +6 -2
- package/src/v2/parsing/inference/inferenceModel.js +6 -2
- package/src/v2/product/classification/classification.d.ts +9 -3
- package/src/v2/product/classification/classification.js +9 -3
- package/src/v2/product/classification/classificationClassifier.d.ts +6 -2
- package/src/v2/product/classification/classificationClassifier.js +6 -2
- package/src/v2/product/classification/classificationInference.d.ts +6 -2
- package/src/v2/product/classification/classificationInference.js +6 -2
- package/src/v2/product/classification/classificationResponse.d.ts +3 -1
- package/src/v2/product/classification/classificationResponse.js +3 -1
- package/src/v2/product/classification/classificationResult.d.ts +6 -2
- package/src/v2/product/classification/classificationResult.js +6 -2
- package/src/v2/product/crop/crop.d.ts +9 -3
- package/src/v2/product/crop/crop.js +9 -3
- package/src/v2/product/crop/cropInference.d.ts +6 -2
- package/src/v2/product/crop/cropInference.js +6 -2
- package/src/v2/product/crop/cropItem.d.ts +6 -2
- package/src/v2/product/crop/cropItem.js +6 -2
- package/src/v2/product/crop/cropResponse.d.ts +3 -1
- package/src/v2/product/crop/cropResponse.js +3 -1
- package/src/v2/product/crop/cropResult.d.ts +6 -2
- package/src/v2/product/crop/cropResult.js +6 -2
- package/src/v2/product/extraction/dataSchemaActiveOption.d.ts +3 -1
- package/src/v2/product/extraction/dataSchemaActiveOption.js +3 -1
- package/src/v2/product/extraction/extraction.d.ts +18 -6
- package/src/v2/product/extraction/extraction.js +18 -6
- package/src/v2/product/extraction/extractionActiveOptions.d.ts +6 -2
- package/src/v2/product/extraction/extractionActiveOptions.js +6 -2
- package/src/v2/product/extraction/extractionInference.d.ts +6 -2
- package/src/v2/product/extraction/extractionInference.js +6 -2
- package/src/v2/product/extraction/extractionResponse.d.ts +3 -1
- package/src/v2/product/extraction/extractionResponse.js +3 -1
- package/src/v2/product/extraction/extractionResult.d.ts +6 -2
- package/src/v2/product/extraction/extractionResult.js +6 -2
- package/src/v2/product/extraction/params/dataSchema.d.ts +12 -4
- package/src/v2/product/extraction/params/dataSchema.js +6 -2
- package/src/v2/product/extraction/params/dataSchemaField.d.ts +39 -13
- package/src/v2/product/extraction/params/dataSchemaField.js +9 -3
- package/src/v2/product/extraction/params/dataSchemaReplace.d.ts +12 -4
- package/src/v2/product/extraction/params/dataSchemaReplace.js +6 -2
- package/src/v2/product/extraction/params/extractionParameters.js +3 -3
- package/src/v2/product/extraction/ragDocuments/annotatedListField.d.ts +3 -1
- package/src/v2/product/extraction/ragDocuments/annotatedListField.js +3 -1
- package/src/v2/product/extraction/ragDocuments/params/ragDocumentAnnotationParameters.js +1 -1
- package/src/v2/product/ocr/ocr.d.ts +9 -3
- package/src/v2/product/ocr/ocr.js +9 -3
- package/src/v2/product/ocr/ocrInference.d.ts +6 -2
- package/src/v2/product/ocr/ocrInference.js +6 -2
- package/src/v2/product/ocr/ocrPage.d.ts +6 -2
- package/src/v2/product/ocr/ocrPage.js +6 -2
- package/src/v2/product/ocr/ocrResponse.d.ts +3 -1
- package/src/v2/product/ocr/ocrResponse.js +3 -1
- package/src/v2/product/ocr/ocrResult.d.ts +3 -1
- package/src/v2/product/ocr/ocrResult.js +3 -1
- package/src/v2/product/ocr/ocrWord.d.ts +6 -2
- package/src/v2/product/ocr/ocrWord.js +6 -2
- package/src/v2/product/split/split.d.ts +9 -3
- package/src/v2/product/split/split.js +9 -3
- package/src/v2/product/split/splitInference.d.ts +6 -2
- package/src/v2/product/split/splitInference.js +6 -2
- package/src/v2/product/split/splitRange.d.ts +3 -1
- package/src/v2/product/split/splitRange.js +3 -1
- package/src/v2/product/split/splitResponse.d.ts +3 -1
- package/src/v2/product/split/splitResponse.js +3 -1
- package/src/v2/product/split/splitResult.d.ts +3 -1
- package/src/v2/product/split/splitResult.js +3 -1
- package/src/v2/search/baseSearch.d.ts +9 -3
- package/src/v2/search/baseSearch.js +9 -3
- package/src/v2/search/models/modelSearch.d.ts +9 -3
- package/src/v2/search/models/modelSearch.js +9 -3
- package/src/v2/search/models/modelSearchParameters.d.ts +3 -1
- package/src/v2/search/models/modelSearchParameters.js +3 -1
- package/src/v2/search/ragDocuments/ragDocumentSearch.d.ts +9 -3
- package/src/v2/search/ragDocuments/ragDocumentSearch.js +9 -3
- package/src/v2/search/ragDocuments/ragDocumentSearchParameters.d.ts +3 -1
- package/src/v2/search/ragDocuments/ragDocumentSearchParameters.js +3 -1
|
@@ -4,13 +4,21 @@ import { BankAccountDetailsV2Document } from "./bankAccountDetailsV2Document.js"
|
|
|
4
4
|
* Bank Account Details API version 2 inference prediction.
|
|
5
5
|
*/
|
|
6
6
|
export declare class BankAccountDetailsV2 extends Inference {
|
|
7
|
-
/**
|
|
7
|
+
/**
|
|
8
|
+
* The endpoint's name.
|
|
9
|
+
*/
|
|
8
10
|
endpointName: string;
|
|
9
|
-
/**
|
|
11
|
+
/**
|
|
12
|
+
* The endpoint's version.
|
|
13
|
+
*/
|
|
10
14
|
endpointVersion: string;
|
|
11
|
-
/**
|
|
15
|
+
/**
|
|
16
|
+
* The document-level prediction.
|
|
17
|
+
*/
|
|
12
18
|
prediction: BankAccountDetailsV2Document;
|
|
13
|
-
/**
|
|
19
|
+
/**
|
|
20
|
+
* The document's pages.
|
|
21
|
+
*/
|
|
14
22
|
pages: Page<BankAccountDetailsV2Document>[];
|
|
15
23
|
constructor(rawPrediction: StringDict);
|
|
16
24
|
}
|
|
@@ -6,11 +6,17 @@ import { BankAccountDetailsV2Document } from "./bankAccountDetailsV2Document.js"
|
|
|
6
6
|
export class BankAccountDetailsV2 extends Inference {
|
|
7
7
|
constructor(rawPrediction) {
|
|
8
8
|
super(rawPrediction);
|
|
9
|
-
/**
|
|
9
|
+
/**
|
|
10
|
+
* The endpoint's name.
|
|
11
|
+
*/
|
|
10
12
|
this.endpointName = "bank_account_details";
|
|
11
|
-
/**
|
|
13
|
+
/**
|
|
14
|
+
* The endpoint's version.
|
|
15
|
+
*/
|
|
12
16
|
this.endpointVersion = "2";
|
|
13
|
-
/**
|
|
17
|
+
/**
|
|
18
|
+
* The document's pages.
|
|
19
|
+
*/
|
|
14
20
|
this.pages = [];
|
|
15
21
|
this.prediction = new BankAccountDetailsV2Document(rawPrediction["prediction"]);
|
|
16
22
|
rawPrediction["pages"].forEach((page) => {
|
|
@@ -5,17 +5,29 @@ import { Polygon } from "../../../../geometry/index.js";
|
|
|
5
5
|
*/
|
|
6
6
|
export declare class BankAccountDetailsV2Bban {
|
|
7
7
|
#private;
|
|
8
|
-
/**
|
|
8
|
+
/**
|
|
9
|
+
* The BBAN bank code outputted as a string.
|
|
10
|
+
*/
|
|
9
11
|
bbanBankCode: string | null;
|
|
10
|
-
/**
|
|
12
|
+
/**
|
|
13
|
+
* The BBAN branch code outputted as a string.
|
|
14
|
+
*/
|
|
11
15
|
bbanBranchCode: string | null;
|
|
12
|
-
/**
|
|
16
|
+
/**
|
|
17
|
+
* The BBAN key outputted as a string.
|
|
18
|
+
*/
|
|
13
19
|
bbanKey: string | null;
|
|
14
|
-
/**
|
|
20
|
+
/**
|
|
21
|
+
* The BBAN Account number outputted as a string.
|
|
22
|
+
*/
|
|
15
23
|
bbanNumber: string | null;
|
|
16
|
-
/**
|
|
24
|
+
/**
|
|
25
|
+
* Confidence score
|
|
26
|
+
*/
|
|
17
27
|
confidence: number;
|
|
18
|
-
/**
|
|
28
|
+
/**
|
|
29
|
+
* The document page on which the information was found.
|
|
30
|
+
*/
|
|
19
31
|
pageId: number;
|
|
20
32
|
/**
|
|
21
33
|
* Contains the relative vertices coordinates (points) of a polygon containing
|
|
@@ -11,7 +11,9 @@ import { Polygon } from "../../../../geometry/index.js";
|
|
|
11
11
|
export class BankAccountDetailsV2Bban {
|
|
12
12
|
constructor({ prediction = {} }) {
|
|
13
13
|
_BankAccountDetailsV2Bban_instances.add(this);
|
|
14
|
-
/**
|
|
14
|
+
/**
|
|
15
|
+
* Confidence score
|
|
16
|
+
*/
|
|
15
17
|
this.confidence = 0.0;
|
|
16
18
|
/**
|
|
17
19
|
* Contains the relative vertices coordinates (points) of a polygon containing
|
|
@@ -5,13 +5,21 @@ import { StringField } from "../../../parsing/standard/index.js";
|
|
|
5
5
|
* Bank Account Details API version 2.0 document data.
|
|
6
6
|
*/
|
|
7
7
|
export declare class BankAccountDetailsV2Document implements Prediction {
|
|
8
|
-
/**
|
|
8
|
+
/**
|
|
9
|
+
* Full extraction of the account holders names.
|
|
10
|
+
*/
|
|
9
11
|
accountHoldersNames: StringField;
|
|
10
|
-
/**
|
|
12
|
+
/**
|
|
13
|
+
* Full extraction of BBAN, including: branch code, bank code, account and key.
|
|
14
|
+
*/
|
|
11
15
|
bban: BankAccountDetailsV2Bban;
|
|
12
|
-
/**
|
|
16
|
+
/**
|
|
17
|
+
* Full extraction of the IBAN number.
|
|
18
|
+
*/
|
|
13
19
|
iban: StringField;
|
|
14
|
-
/**
|
|
20
|
+
/**
|
|
21
|
+
* Full extraction of the SWIFT code.
|
|
22
|
+
*/
|
|
15
23
|
swiftCode: StringField;
|
|
16
24
|
constructor(rawPrediction: StringDict, pageId?: number);
|
|
17
25
|
/**
|
|
@@ -4,13 +4,21 @@ import { CarteGriseV1Document } from "./carteGriseV1Document.js";
|
|
|
4
4
|
* Carte Grise API version 1 inference prediction.
|
|
5
5
|
*/
|
|
6
6
|
export declare class CarteGriseV1 extends Inference {
|
|
7
|
-
/**
|
|
7
|
+
/**
|
|
8
|
+
* The endpoint's name.
|
|
9
|
+
*/
|
|
8
10
|
endpointName: string;
|
|
9
|
-
/**
|
|
11
|
+
/**
|
|
12
|
+
* The endpoint's version.
|
|
13
|
+
*/
|
|
10
14
|
endpointVersion: string;
|
|
11
|
-
/**
|
|
15
|
+
/**
|
|
16
|
+
* The document-level prediction.
|
|
17
|
+
*/
|
|
12
18
|
prediction: CarteGriseV1Document;
|
|
13
|
-
/**
|
|
19
|
+
/**
|
|
20
|
+
* The document's pages.
|
|
21
|
+
*/
|
|
14
22
|
pages: Page<CarteGriseV1Document>[];
|
|
15
23
|
constructor(rawPrediction: StringDict);
|
|
16
24
|
}
|
|
@@ -6,11 +6,17 @@ import { CarteGriseV1Document } from "./carteGriseV1Document.js";
|
|
|
6
6
|
export class CarteGriseV1 extends Inference {
|
|
7
7
|
constructor(rawPrediction) {
|
|
8
8
|
super(rawPrediction);
|
|
9
|
-
/**
|
|
9
|
+
/**
|
|
10
|
+
* The endpoint's name.
|
|
11
|
+
*/
|
|
10
12
|
this.endpointName = "carte_grise";
|
|
11
|
-
/**
|
|
13
|
+
/**
|
|
14
|
+
* The endpoint's version.
|
|
15
|
+
*/
|
|
12
16
|
this.endpointVersion = "1";
|
|
13
|
-
/**
|
|
17
|
+
/**
|
|
18
|
+
* The document's pages.
|
|
19
|
+
*/
|
|
14
20
|
this.pages = [];
|
|
15
21
|
this.prediction = new CarteGriseV1Document(rawPrediction["prediction"]);
|
|
16
22
|
rawPrediction["pages"].forEach((page) => {
|
|
@@ -4,87 +4,169 @@ import { DateField, StringField } from "../../../parsing/standard/index.js";
|
|
|
4
4
|
* Carte Grise API version 1.1 document data.
|
|
5
5
|
*/
|
|
6
6
|
export declare class CarteGriseV1Document implements Prediction {
|
|
7
|
-
/**
|
|
7
|
+
/**
|
|
8
|
+
* The vehicle's license plate number.
|
|
9
|
+
*/
|
|
8
10
|
a: StringField;
|
|
9
|
-
/**
|
|
11
|
+
/**
|
|
12
|
+
* The vehicle's first release date.
|
|
13
|
+
*/
|
|
10
14
|
b: DateField;
|
|
11
|
-
/**
|
|
15
|
+
/**
|
|
16
|
+
* The vehicle owner's full name including maiden name.
|
|
17
|
+
*/
|
|
12
18
|
c1: StringField;
|
|
13
|
-
/**
|
|
19
|
+
/**
|
|
20
|
+
* The vehicle owner's address.
|
|
21
|
+
*/
|
|
14
22
|
c3: StringField;
|
|
15
|
-
/**
|
|
23
|
+
/**
|
|
24
|
+
* Number of owners of the license certificate.
|
|
25
|
+
*/
|
|
16
26
|
c41: StringField;
|
|
17
|
-
/**
|
|
27
|
+
/**
|
|
28
|
+
* Mentions about the ownership of the vehicle.
|
|
29
|
+
*/
|
|
18
30
|
c4A: StringField;
|
|
19
|
-
/**
|
|
31
|
+
/**
|
|
32
|
+
* The vehicle's brand.
|
|
33
|
+
*/
|
|
20
34
|
d1: StringField;
|
|
21
|
-
/**
|
|
35
|
+
/**
|
|
36
|
+
* The vehicle's commercial name.
|
|
37
|
+
*/
|
|
22
38
|
d3: StringField;
|
|
23
|
-
/**
|
|
39
|
+
/**
|
|
40
|
+
* The Vehicle Identification Number (VIN).
|
|
41
|
+
*/
|
|
24
42
|
e: StringField;
|
|
25
|
-
/**
|
|
43
|
+
/**
|
|
44
|
+
* The vehicle's maximum admissible weight.
|
|
45
|
+
*/
|
|
26
46
|
f1: StringField;
|
|
27
|
-
/**
|
|
47
|
+
/**
|
|
48
|
+
* The vehicle's maximum admissible weight within the license's state.
|
|
49
|
+
*/
|
|
28
50
|
f2: StringField;
|
|
29
|
-
/**
|
|
51
|
+
/**
|
|
52
|
+
* The vehicle's maximum authorized weight with coupling.
|
|
53
|
+
*/
|
|
30
54
|
f3: StringField;
|
|
31
|
-
/**
|
|
55
|
+
/**
|
|
56
|
+
* The document's formula number.
|
|
57
|
+
*/
|
|
32
58
|
formulaNumber: StringField;
|
|
33
|
-
/**
|
|
59
|
+
/**
|
|
60
|
+
* The vehicle's weight with coupling if tractor different than category M1.
|
|
61
|
+
*/
|
|
34
62
|
g: StringField;
|
|
35
|
-
/**
|
|
63
|
+
/**
|
|
64
|
+
* The vehicle's national empty weight.
|
|
65
|
+
*/
|
|
36
66
|
g1: StringField;
|
|
37
|
-
/**
|
|
67
|
+
/**
|
|
68
|
+
* The car registration date of the given certificate.
|
|
69
|
+
*/
|
|
38
70
|
i: DateField;
|
|
39
|
-
/**
|
|
71
|
+
/**
|
|
72
|
+
* The vehicle's category.
|
|
73
|
+
*/
|
|
40
74
|
j: StringField;
|
|
41
|
-
/**
|
|
75
|
+
/**
|
|
76
|
+
* The vehicle's national type.
|
|
77
|
+
*/
|
|
42
78
|
j1: StringField;
|
|
43
|
-
/**
|
|
79
|
+
/**
|
|
80
|
+
* The vehicle's body type (CE).
|
|
81
|
+
*/
|
|
44
82
|
j2: StringField;
|
|
45
|
-
/**
|
|
83
|
+
/**
|
|
84
|
+
* The vehicle's body type (National designation).
|
|
85
|
+
*/
|
|
46
86
|
j3: StringField;
|
|
47
|
-
/**
|
|
87
|
+
/**
|
|
88
|
+
* Machine Readable Zone, first line.
|
|
89
|
+
*/
|
|
48
90
|
mrz1: StringField;
|
|
49
|
-
/**
|
|
91
|
+
/**
|
|
92
|
+
* Machine Readable Zone, second line.
|
|
93
|
+
*/
|
|
50
94
|
mrz2: StringField;
|
|
51
|
-
/**
|
|
95
|
+
/**
|
|
96
|
+
* The vehicle's owner first name.
|
|
97
|
+
*/
|
|
52
98
|
ownerFirstName: StringField;
|
|
53
|
-
/**
|
|
99
|
+
/**
|
|
100
|
+
* The vehicle's owner surname.
|
|
101
|
+
*/
|
|
54
102
|
ownerSurname: StringField;
|
|
55
|
-
/**
|
|
103
|
+
/**
|
|
104
|
+
* The vehicle engine's displacement (cm3).
|
|
105
|
+
*/
|
|
56
106
|
p1: StringField;
|
|
57
|
-
/**
|
|
107
|
+
/**
|
|
108
|
+
* The vehicle's maximum net power (kW).
|
|
109
|
+
*/
|
|
58
110
|
p2: StringField;
|
|
59
|
-
/**
|
|
111
|
+
/**
|
|
112
|
+
* The vehicle's fuel type or energy source.
|
|
113
|
+
*/
|
|
60
114
|
p3: StringField;
|
|
61
|
-
/**
|
|
115
|
+
/**
|
|
116
|
+
* The vehicle's administrative power (fiscal horsepower).
|
|
117
|
+
*/
|
|
62
118
|
p6: StringField;
|
|
63
|
-
/**
|
|
119
|
+
/**
|
|
120
|
+
* The vehicle's power to weight ratio.
|
|
121
|
+
*/
|
|
64
122
|
q: StringField;
|
|
65
|
-
/**
|
|
123
|
+
/**
|
|
124
|
+
* The vehicle's number of seats.
|
|
125
|
+
*/
|
|
66
126
|
s1: StringField;
|
|
67
|
-
/**
|
|
127
|
+
/**
|
|
128
|
+
* The vehicle's number of standing rooms (person).
|
|
129
|
+
*/
|
|
68
130
|
s2: StringField;
|
|
69
|
-
/**
|
|
131
|
+
/**
|
|
132
|
+
* The vehicle's sound level (dB).
|
|
133
|
+
*/
|
|
70
134
|
u1: StringField;
|
|
71
|
-
/**
|
|
135
|
+
/**
|
|
136
|
+
* The vehicle engine's rotation speed (RPM).
|
|
137
|
+
*/
|
|
72
138
|
u2: StringField;
|
|
73
|
-
/**
|
|
139
|
+
/**
|
|
140
|
+
* The vehicle's CO2 emission (g/km).
|
|
141
|
+
*/
|
|
74
142
|
v7: StringField;
|
|
75
|
-
/**
|
|
143
|
+
/**
|
|
144
|
+
* Next technical control date.
|
|
145
|
+
*/
|
|
76
146
|
x1: StringField;
|
|
77
|
-
/**
|
|
147
|
+
/**
|
|
148
|
+
* Amount of the regional proportional tax of the registration (in euros).
|
|
149
|
+
*/
|
|
78
150
|
y1: StringField;
|
|
79
|
-
/**
|
|
151
|
+
/**
|
|
152
|
+
* Amount of the additional parafiscal tax of the registration (in euros).
|
|
153
|
+
*/
|
|
80
154
|
y2: StringField;
|
|
81
|
-
/**
|
|
155
|
+
/**
|
|
156
|
+
* Amount of the additional CO2 tax of the registration (in euros).
|
|
157
|
+
*/
|
|
82
158
|
y3: StringField;
|
|
83
|
-
/**
|
|
159
|
+
/**
|
|
160
|
+
* Amount of the fee for managing the registration (in euros).
|
|
161
|
+
*/
|
|
84
162
|
y4: StringField;
|
|
85
|
-
/**
|
|
163
|
+
/**
|
|
164
|
+
* Amount of the fee for delivery of the registration certificate in euros.
|
|
165
|
+
*/
|
|
86
166
|
y5: StringField;
|
|
87
|
-
/**
|
|
167
|
+
/**
|
|
168
|
+
* Total amount of registration fee to be paid in euros.
|
|
169
|
+
*/
|
|
88
170
|
y6: StringField;
|
|
89
171
|
constructor(rawPrediction: StringDict, pageId?: number);
|
|
90
172
|
/**
|
|
@@ -5,13 +5,21 @@ import { IdCardV2Page } from "./idCardV2Page.js";
|
|
|
5
5
|
* Carte Nationale d'Identité API version 2 inference prediction.
|
|
6
6
|
*/
|
|
7
7
|
export declare class IdCardV2 extends Inference {
|
|
8
|
-
/**
|
|
8
|
+
/**
|
|
9
|
+
* The endpoint's name.
|
|
10
|
+
*/
|
|
9
11
|
endpointName: string;
|
|
10
|
-
/**
|
|
12
|
+
/**
|
|
13
|
+
* The endpoint's version.
|
|
14
|
+
*/
|
|
11
15
|
endpointVersion: string;
|
|
12
|
-
/**
|
|
16
|
+
/**
|
|
17
|
+
* The document-level prediction.
|
|
18
|
+
*/
|
|
13
19
|
prediction: IdCardV2Document;
|
|
14
|
-
/**
|
|
20
|
+
/**
|
|
21
|
+
* The document's pages.
|
|
22
|
+
*/
|
|
15
23
|
pages: Page<IdCardV2Page>[];
|
|
16
24
|
constructor(rawPrediction: StringDict);
|
|
17
25
|
}
|
|
@@ -7,11 +7,17 @@ import { IdCardV2Page } from "./idCardV2Page.js";
|
|
|
7
7
|
export class IdCardV2 extends Inference {
|
|
8
8
|
constructor(rawPrediction) {
|
|
9
9
|
super(rawPrediction);
|
|
10
|
-
/**
|
|
10
|
+
/**
|
|
11
|
+
* The endpoint's name.
|
|
12
|
+
*/
|
|
11
13
|
this.endpointName = "idcard_fr";
|
|
12
|
-
/**
|
|
14
|
+
/**
|
|
15
|
+
* The endpoint's version.
|
|
16
|
+
*/
|
|
13
17
|
this.endpointVersion = "2";
|
|
14
|
-
/**
|
|
18
|
+
/**
|
|
19
|
+
* The document's pages.
|
|
20
|
+
*/
|
|
15
21
|
this.pages = [];
|
|
16
22
|
this.prediction = new IdCardV2Document(rawPrediction["prediction"]);
|
|
17
23
|
rawPrediction["pages"].forEach((page) => {
|
|
@@ -4,35 +4,65 @@ import { DateField, StringField } from "../../../parsing/standard/index.js";
|
|
|
4
4
|
* Carte Nationale d'Identité API version 2.0 document data.
|
|
5
5
|
*/
|
|
6
6
|
export declare class IdCardV2Document implements Prediction {
|
|
7
|
-
/**
|
|
7
|
+
/**
|
|
8
|
+
* The alternate name of the card holder.
|
|
9
|
+
*/
|
|
8
10
|
alternateName: StringField;
|
|
9
|
-
/**
|
|
11
|
+
/**
|
|
12
|
+
* The name of the issuing authority.
|
|
13
|
+
*/
|
|
10
14
|
authority: StringField;
|
|
11
|
-
/**
|
|
15
|
+
/**
|
|
16
|
+
* The date of birth of the card holder.
|
|
17
|
+
*/
|
|
12
18
|
birthDate: DateField;
|
|
13
|
-
/**
|
|
19
|
+
/**
|
|
20
|
+
* The place of birth of the card holder.
|
|
21
|
+
*/
|
|
14
22
|
birthPlace: StringField;
|
|
15
|
-
/**
|
|
23
|
+
/**
|
|
24
|
+
* The card access number (CAN).
|
|
25
|
+
*/
|
|
16
26
|
cardAccessNumber: StringField;
|
|
17
|
-
/**
|
|
27
|
+
/**
|
|
28
|
+
* The document number.
|
|
29
|
+
*/
|
|
18
30
|
documentNumber: StringField;
|
|
19
|
-
/**
|
|
31
|
+
/**
|
|
32
|
+
* The expiry date of the identification card.
|
|
33
|
+
*/
|
|
20
34
|
expiryDate: DateField;
|
|
21
|
-
/**
|
|
35
|
+
/**
|
|
36
|
+
* The gender of the card holder.
|
|
37
|
+
*/
|
|
22
38
|
gender: StringField;
|
|
23
|
-
/**
|
|
39
|
+
/**
|
|
40
|
+
* The given name(s) of the card holder.
|
|
41
|
+
*/
|
|
24
42
|
givenNames: StringField[];
|
|
25
|
-
/**
|
|
43
|
+
/**
|
|
44
|
+
* The date of issue of the identification card.
|
|
45
|
+
*/
|
|
26
46
|
issueDate: DateField;
|
|
27
|
-
/**
|
|
47
|
+
/**
|
|
48
|
+
* The Machine Readable Zone, first line.
|
|
49
|
+
*/
|
|
28
50
|
mrz1: StringField;
|
|
29
|
-
/**
|
|
51
|
+
/**
|
|
52
|
+
* The Machine Readable Zone, second line.
|
|
53
|
+
*/
|
|
30
54
|
mrz2: StringField;
|
|
31
|
-
/**
|
|
55
|
+
/**
|
|
56
|
+
* The Machine Readable Zone, third line.
|
|
57
|
+
*/
|
|
32
58
|
mrz3: StringField;
|
|
33
|
-
/**
|
|
59
|
+
/**
|
|
60
|
+
* The nationality of the card holder.
|
|
61
|
+
*/
|
|
34
62
|
nationality: StringField;
|
|
35
|
-
/**
|
|
63
|
+
/**
|
|
64
|
+
* The surname of the card holder.
|
|
65
|
+
*/
|
|
36
66
|
surname: StringField;
|
|
37
67
|
constructor(rawPrediction: StringDict, pageId?: number);
|
|
38
68
|
/**
|
|
@@ -5,7 +5,9 @@ import { DateField, StringField } from "../../../parsing/standard/index.js";
|
|
|
5
5
|
*/
|
|
6
6
|
export class IdCardV2Document {
|
|
7
7
|
constructor(rawPrediction, pageId) {
|
|
8
|
-
/**
|
|
8
|
+
/**
|
|
9
|
+
* The given name(s) of the card holder.
|
|
10
|
+
*/
|
|
9
11
|
this.givenNames = [];
|
|
10
12
|
this.alternateName = new StringField({
|
|
11
13
|
prediction: rawPrediction["alternate_name"],
|
|
@@ -5,9 +5,13 @@ import { IdCardV2Document } from "./idCardV2Document.js";
|
|
|
5
5
|
* Carte Nationale d'Identité API version 2.0 page data.
|
|
6
6
|
*/
|
|
7
7
|
export declare class IdCardV2Page extends IdCardV2Document {
|
|
8
|
-
/**
|
|
8
|
+
/**
|
|
9
|
+
* The sides of the document which are visible.
|
|
10
|
+
*/
|
|
9
11
|
documentSide: ClassificationField;
|
|
10
|
-
/**
|
|
12
|
+
/**
|
|
13
|
+
* The document type or format.
|
|
14
|
+
*/
|
|
11
15
|
documentType: ClassificationField;
|
|
12
16
|
constructor(rawPrediction: StringDict, pageId?: number);
|
|
13
17
|
toString(): string;
|
|
@@ -5,13 +5,21 @@ import { GeneratedV1Page } from "./generatedV1Page.js";
|
|
|
5
5
|
* Generated API V1 inference results.
|
|
6
6
|
*/
|
|
7
7
|
export declare class GeneratedV1 extends Inference {
|
|
8
|
-
/**
|
|
8
|
+
/**
|
|
9
|
+
* The endpoint's name. Note: placeholder for custom APIs.
|
|
10
|
+
*/
|
|
9
11
|
endpointName: string;
|
|
10
|
-
/**
|
|
12
|
+
/**
|
|
13
|
+
* The endpoint's version. Note: placeholder for custom APIs.
|
|
14
|
+
*/
|
|
11
15
|
endpointVersion: string;
|
|
12
|
-
/**
|
|
16
|
+
/**
|
|
17
|
+
* The document-level prediction.
|
|
18
|
+
*/
|
|
13
19
|
prediction: GeneratedV1Document;
|
|
14
|
-
/**
|
|
20
|
+
/**
|
|
21
|
+
* The document's pages.
|
|
22
|
+
*/
|
|
15
23
|
pages: Page<GeneratedV1Page>[];
|
|
16
24
|
constructor(rawPrediction: StringDict);
|
|
17
25
|
}
|
|
@@ -7,11 +7,17 @@ import { GeneratedV1Page } from "./generatedV1Page.js";
|
|
|
7
7
|
export class GeneratedV1 extends Inference {
|
|
8
8
|
constructor(rawPrediction) {
|
|
9
9
|
super(rawPrediction);
|
|
10
|
-
/**
|
|
10
|
+
/**
|
|
11
|
+
* The endpoint's name. Note: placeholder for custom APIs.
|
|
12
|
+
*/
|
|
11
13
|
this.endpointName = "custom";
|
|
12
|
-
/**
|
|
14
|
+
/**
|
|
15
|
+
* The endpoint's version. Note: placeholder for custom APIs.
|
|
16
|
+
*/
|
|
13
17
|
this.endpointVersion = "1";
|
|
14
|
-
/**
|
|
18
|
+
/**
|
|
19
|
+
* The document's pages.
|
|
20
|
+
*/
|
|
15
21
|
this.pages = [];
|
|
16
22
|
this.prediction = new GeneratedV1Document(rawPrediction["prediction"]);
|
|
17
23
|
this.pages = rawPrediction["pages"].length > 0 && Object.keys(rawPrediction["pages"][0]["prediction"]).length > 0 ?
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import { Prediction } from "../../parsing/common/index.js";
|
|
2
2
|
import { GeneratedListField } from "../../parsing/generated/index.js";
|
|
3
3
|
import { StringField } from "../../parsing/standard/index.js";
|
|
4
|
-
/**
|
|
4
|
+
/**
|
|
5
|
+
* Dynamic prediction container for generated v1 products.
|
|
6
|
+
*/
|
|
5
7
|
export declare class GeneratedV1Prediction implements Prediction {
|
|
6
|
-
/**
|
|
8
|
+
/**
|
|
9
|
+
* Map of all fields in the document.
|
|
10
|
+
*/
|
|
7
11
|
fields: Map<string, any>;
|
|
8
12
|
constructor();
|
|
9
13
|
toString(): string;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { cleanOutString } from "../../parsing/common/index.js";
|
|
2
2
|
import { GeneratedListField, GeneratedObjectField } from "../../parsing/generated/index.js";
|
|
3
3
|
import { StringField } from "../../parsing/standard/index.js";
|
|
4
|
-
/**
|
|
4
|
+
/**
|
|
5
|
+
* Dynamic prediction container for generated v1 products.
|
|
6
|
+
*/
|
|
5
7
|
export class GeneratedV1Prediction {
|
|
6
8
|
constructor() {
|
|
7
9
|
this.fields = new Map();
|
|
@@ -4,13 +4,21 @@ import { InternationalIdV2Document } from "./internationalIdV2Document.js";
|
|
|
4
4
|
* International ID API version 2 inference prediction.
|
|
5
5
|
*/
|
|
6
6
|
export declare class InternationalIdV2 extends Inference {
|
|
7
|
-
/**
|
|
7
|
+
/**
|
|
8
|
+
* The endpoint's name.
|
|
9
|
+
*/
|
|
8
10
|
endpointName: string;
|
|
9
|
-
/**
|
|
11
|
+
/**
|
|
12
|
+
* The endpoint's version.
|
|
13
|
+
*/
|
|
10
14
|
endpointVersion: string;
|
|
11
|
-
/**
|
|
15
|
+
/**
|
|
16
|
+
* The document-level prediction.
|
|
17
|
+
*/
|
|
12
18
|
prediction: InternationalIdV2Document;
|
|
13
|
-
/**
|
|
19
|
+
/**
|
|
20
|
+
* The document's pages.
|
|
21
|
+
*/
|
|
14
22
|
pages: Page<InternationalIdV2Document>[];
|
|
15
23
|
constructor(rawPrediction: StringDict);
|
|
16
24
|
}
|
|
@@ -6,11 +6,17 @@ import { InternationalIdV2Document } from "./internationalIdV2Document.js";
|
|
|
6
6
|
export class InternationalIdV2 extends Inference {
|
|
7
7
|
constructor(rawPrediction) {
|
|
8
8
|
super(rawPrediction);
|
|
9
|
-
/**
|
|
9
|
+
/**
|
|
10
|
+
* The endpoint's name.
|
|
11
|
+
*/
|
|
10
12
|
this.endpointName = "international_id";
|
|
11
|
-
/**
|
|
13
|
+
/**
|
|
14
|
+
* The endpoint's version.
|
|
15
|
+
*/
|
|
12
16
|
this.endpointVersion = "2";
|
|
13
|
-
/**
|
|
17
|
+
/**
|
|
18
|
+
* The document's pages.
|
|
19
|
+
*/
|
|
14
20
|
this.pages = [];
|
|
15
21
|
this.prediction = new InternationalIdV2Document(rawPrediction["prediction"]);
|
|
16
22
|
rawPrediction["pages"].forEach((page) => {
|