mindee 5.8.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 +12 -0
- package/package.json +103 -95
- package/src/geometry/bbox.d.ts +18 -6
- package/src/geometry/bbox.js +7 -3
- 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 +4 -2
- 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 +2 -2
- package/src/image/imageExtractor.js +14 -14
- 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 +20 -7
- 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 +8 -4
- 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 +4 -2
- package/src/pdf/extractedPdfs.js +3 -1
- package/src/pdf/pdfCompressor.js +14 -14
- package/src/pdf/pdfExtractor.d.ts +1 -1
- package/src/pdf/pdfExtractor.js +3 -3
- 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.d.ts +2 -2
- package/src/v1/extraction/invoiceSplitterExtractor/invoiceSplitterExtractor.js +6 -6
- package/src/v1/extraction/multiReceiptsExtractor/extractedMultiReceiptImage.d.ts +6 -2
- package/src/v1/extraction/multiReceiptsExtractor/multiReceiptsExtractor.d.ts +2 -2
- package/src/v1/extraction/multiReceiptsExtractor/multiReceiptsExtractor.js +3 -3
- package/src/v1/http/apiSettingsV1.d.ts +15 -5
- package/src/v1/http/apiSettingsV1.js +12 -4
- package/src/v1/http/baseEndpoint.d.ts +7 -3
- package/src/v1/http/endpoint.d.ts +10 -4
- package/src/v1/http/endpoint.js +2 -2
- package/src/v1/http/errors.d.ts +9 -3
- package/src/v1/http/errors.js +6 -2
- package/src/v1/http/httpParams.d.ts +37 -13
- package/src/v1/http/workflowEndpoint.d.ts +2 -2
- package/src/v1/http/workflowEndpoint.js +2 -2
- 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 +40 -14
- package/src/v1/parsing/common/execution.js +1 -1
- 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 +7 -4
- 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 +7 -3
- package/src/v1/parsing/common/ocrPage.js +7 -3
- package/src/v1/parsing/common/orientation.d.ts +7 -3
- package/src/v1/parsing/common/orientation.js +1 -1
- 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 +7 -3
- package/src/v1/parsing/generated/generatedList.js +1 -1
- package/src/v1/parsing/generated/generatedObject.d.ts +26 -10
- package/src/v1/parsing/generated/generatedObject.js +14 -8
- package/src/v1/parsing/localResponse.d.ts +4 -2
- package/src/v1/parsing/localResponse.js +4 -2
- 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 +4 -2
- 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 +4 -2
- 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 +19 -7
- package/src/v1/parsing/standard/tax.js +16 -6
- 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 +13 -5
- package/src/v1/product/barcodeReader/barcodeReaderV1.js +10 -4
- package/src/v1/product/barcodeReader/barcodeReaderV1Document.d.ts +8 -4
- package/src/v1/product/barcodeReader/barcodeReaderV1Document.js +8 -4
- package/src/v1/product/cliProducts.d.ts +2 -2
- package/src/v1/product/cliProducts.js +1 -1
- package/src/v1/product/cropper/cropperV1.d.ts +13 -5
- package/src/v1/product/cropper/cropperV1.js +10 -4
- package/src/v1/product/cropper/cropperV1Document.d.ts +1 -1
- package/src/v1/product/cropper/cropperV1Page.d.ts +5 -3
- package/src/v1/product/cropper/cropperV1Page.js +5 -3
- package/src/v1/product/driverLicense/driverLicenseV1.d.ts +13 -5
- package/src/v1/product/driverLicense/driverLicenseV1.js +10 -4
- package/src/v1/product/driverLicense/driverLicenseV1Document.d.ts +41 -15
- package/src/v1/product/driverLicense/driverLicenseV1Document.js +2 -2
- package/src/v1/product/financialDocument/financialDocumentV1.d.ts +13 -5
- package/src/v1/product/financialDocument/financialDocumentV1.js +10 -4
- package/src/v1/product/financialDocument/financialDocumentV1Document.d.ts +98 -34
- package/src/v1/product/financialDocument/financialDocumentV1Document.js +17 -7
- package/src/v1/product/financialDocument/financialDocumentV1LineItem.d.ts +30 -10
- package/src/v1/product/financialDocument/financialDocumentV1LineItem.js +4 -2
- package/src/v1/product/fr/bankAccountDetails/bankAccountDetailsV1.d.ts +13 -5
- package/src/v1/product/fr/bankAccountDetails/bankAccountDetailsV1.js +10 -4
- package/src/v1/product/fr/bankAccountDetails/bankAccountDetailsV1Document.d.ts +11 -5
- package/src/v1/product/fr/bankAccountDetails/bankAccountDetailsV1Document.js +2 -2
- package/src/v1/product/fr/bankAccountDetails/bankAccountDetailsV2.d.ts +13 -5
- package/src/v1/product/fr/bankAccountDetails/bankAccountDetailsV2.js +10 -4
- 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 +14 -6
- package/src/v1/product/fr/bankAccountDetails/bankAccountDetailsV2Document.js +2 -2
- package/src/v1/product/fr/carteGrise/carteGriseV1.d.ts +13 -5
- package/src/v1/product/fr/carteGrise/carteGriseV1.js +10 -4
- package/src/v1/product/fr/carteGrise/carteGriseV1Document.d.ts +125 -43
- package/src/v1/product/fr/carteGrise/carteGriseV1Document.js +2 -2
- package/src/v1/product/fr/idCard/idCardV2.d.ts +13 -5
- package/src/v1/product/fr/idCard/idCardV2.js +10 -4
- package/src/v1/product/fr/idCard/idCardV2Document.d.ts +47 -17
- package/src/v1/product/fr/idCard/idCardV2Document.js +5 -3
- package/src/v1/product/fr/idCard/idCardV2Page.d.ts +8 -4
- package/src/v1/product/fr/idCard/idCardV2Page.js +2 -2
- package/src/v1/product/generated/generatedV1.d.ts +13 -5
- package/src/v1/product/generated/generatedV1.js +10 -4
- package/src/v1/product/generated/generatedV1Document.js +2 -2
- package/src/v1/product/generated/generatedV1Page.js +2 -2
- package/src/v1/product/generated/generatedV1Prediction.d.ts +9 -5
- package/src/v1/product/generated/generatedV1Prediction.js +6 -4
- package/src/v1/product/internationalId/internationalIdV2.d.ts +13 -5
- package/src/v1/product/internationalId/internationalIdV2.js +10 -4
- package/src/v1/product/internationalId/internationalIdV2Document.d.ts +53 -19
- package/src/v1/product/internationalId/internationalIdV2Document.js +8 -4
- package/src/v1/product/invoice/invoiceV4.d.ts +13 -5
- package/src/v1/product/invoice/invoiceV4.js +10 -4
- package/src/v1/product/invoice/invoiceV4Document.d.ts +89 -31
- package/src/v1/product/invoice/invoiceV4Document.js +17 -7
- package/src/v1/product/invoice/invoiceV4LineItem.d.ts +30 -10
- package/src/v1/product/invoice/invoiceV4LineItem.js +4 -2
- package/src/v1/product/invoiceSplitter/invoiceSplitterV1.d.ts +13 -5
- package/src/v1/product/invoiceSplitter/invoiceSplitterV1.js +10 -4
- package/src/v1/product/invoiceSplitter/invoiceSplitterV1Document.d.ts +4 -2
- package/src/v1/product/invoiceSplitter/invoiceSplitterV1Document.js +4 -2
- 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 +13 -5
- package/src/v1/product/multiReceiptsDetector/multiReceiptsDetectorV1.js +10 -4
- package/src/v1/product/multiReceiptsDetector/multiReceiptsDetectorV1Document.d.ts +5 -3
- package/src/v1/product/multiReceiptsDetector/multiReceiptsDetectorV1Document.js +5 -3
- package/src/v1/product/passport/passportV1.d.ts +13 -5
- package/src/v1/product/passport/passportV1.js +10 -4
- package/src/v1/product/passport/passportV1Document.d.ts +35 -13
- package/src/v1/product/passport/passportV1Document.js +5 -3
- package/src/v1/product/receipt/receiptV5.d.ts +13 -5
- package/src/v1/product/receipt/receiptV5.js +10 -4
- package/src/v1/product/receipt/receiptV5Document.d.ts +53 -19
- package/src/v1/product/receipt/receiptV5Document.js +8 -4
- package/src/v1/product/receipt/receiptV5LineItem.d.ts +18 -6
- package/src/v1/product/receipt/receiptV5LineItem.js +4 -2
- package/src/v1/product/resume/resumeV1.d.ts +13 -5
- package/src/v1/product/resume/resumeV1.js +10 -4
- package/src/v1/product/resume/resumeV1Certificate.d.ts +18 -6
- package/src/v1/product/resume/resumeV1Certificate.js +4 -2
- package/src/v1/product/resume/resumeV1Document.d.ts +53 -19
- package/src/v1/product/resume/resumeV1Document.js +29 -11
- package/src/v1/product/resume/resumeV1Education.d.ts +27 -9
- package/src/v1/product/resume/resumeV1Education.js +4 -2
- package/src/v1/product/resume/resumeV1Language.d.ts +12 -4
- package/src/v1/product/resume/resumeV1Language.js +4 -2
- package/src/v1/product/resume/resumeV1ProfessionalExperience.d.ts +33 -11
- package/src/v1/product/resume/resumeV1ProfessionalExperience.js +4 -2
- package/src/v1/product/resume/resumeV1SocialNetworksUrl.d.ts +12 -4
- package/src/v1/product/resume/resumeV1SocialNetworksUrl.js +4 -2
- package/src/v1/product/us/bankCheck/bankCheckV1.d.ts +13 -5
- package/src/v1/product/us/bankCheck/bankCheckV1.js +10 -4
- package/src/v1/product/us/bankCheck/bankCheckV1Document.d.ts +20 -8
- package/src/v1/product/us/bankCheck/bankCheckV1Document.js +5 -3
- package/src/v1/product/us/bankCheck/bankCheckV1Page.d.ts +8 -4
- package/src/v1/product/us/bankCheck/bankCheckV1Page.js +5 -3
- package/src/v2/cli.js +2 -2
- package/src/v2/client.d.ts +103 -21
- package/src/v2/client.js +171 -27
- package/src/v2/clientOptions/baseAnnotationParameters.d.ts +23 -0
- package/src/v2/clientOptions/baseAnnotationParameters.js +17 -0
- package/src/v2/clientOptions/baseProductParameters.js +3 -2
- package/src/v2/clientOptions/baseRagDocumentUploadParameters.d.ts +23 -0
- package/src/v2/clientOptions/baseRagDocumentUploadParameters.js +24 -0
- package/src/v2/clientOptions/index.d.ts +2 -0
- package/src/v2/clientOptions/index.js +2 -0
- package/src/v2/clientOptions/pollingOptions.d.ts +30 -10
- package/src/v2/clientOptions/pollingOptions.js +6 -2
- package/src/v2/fileOperations/crop.d.ts +1 -1
- package/src/v2/http/errors.d.ts +1 -1
- package/src/v2/http/mindeeApiV2.d.ts +36 -7
- package/src/v2/http/mindeeApiV2.js +80 -4
- package/src/v2/parsing/baseRagAnnotationResponse.d.ts +28 -0
- package/src/v2/parsing/baseRagAnnotationResponse.js +14 -0
- package/src/v2/parsing/baseResponse.d.ts +6 -2
- package/src/v2/parsing/baseResponse.js +3 -1
- package/src/v2/parsing/error/errorDetails.d.ts +3 -1
- package/src/v2/parsing/error/errorResponse.d.ts +1 -1
- package/src/v2/parsing/error/errorResponse.js +1 -1
- package/src/v2/parsing/index.d.ts +2 -0
- package/src/v2/parsing/index.js +1 -0
- package/src/v2/parsing/inference/baseInference.d.ts +6 -2
- package/src/v2/parsing/inference/baseInference.js +6 -2
- package/src/v2/parsing/inference/failedInferenceResponse.d.ts +2 -2
- package/src/v2/parsing/inference/failedInferenceResponse.js +2 -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 +15 -5
- package/src/v2/parsing/inference/field/inferenceFields.js +12 -4
- 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 +19 -11
- package/src/v2/parsing/inference/field/objectField.js +22 -34
- 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/parsing/job/job.d.ts +8 -8
- package/src/v2/parsing/job/job.js +1 -1
- package/src/v2/parsing/job/jobResponse.d.ts +1 -1
- package/src/v2/parsing/job/jobResponse.js +1 -1
- package/src/v2/parsing/job/jobWebhook.d.ts +1 -1
- package/src/v2/parsing/job/jobWebhook.js +1 -1
- package/src/v2/parsing/search/baseSearchResponse.d.ts +1 -1
- package/src/v2/parsing/search/baseSearchResponse.js +1 -1
- package/src/v2/parsing/search/searchModels.d.ts +1 -1
- package/src/v2/parsing/search/searchModels.js +1 -1
- package/src/v2/parsing/search/searchRagDocuments.d.ts +1 -1
- package/src/v2/parsing/search/searchRagDocuments.js +1 -1
- package/src/v2/parsing/search/searchResponse.d.ts +1 -1
- package/src/v2/parsing/search/searchResponse.js +1 -1
- package/src/v2/product/baseProduct.d.ts +26 -6
- package/src/v2/product/baseProduct.js +31 -7
- package/src/v2/product/classification/classification.d.ts +10 -4
- package/src/v2/product/classification/classification.js +10 -4
- package/src/v2/product/classification/classificationClassifier.d.ts +7 -3
- package/src/v2/product/classification/classificationClassifier.js +7 -3
- package/src/v2/product/classification/classificationInference.d.ts +7 -3
- package/src/v2/product/classification/classificationInference.js +7 -3
- package/src/v2/product/classification/classificationResponse.d.ts +4 -2
- package/src/v2/product/classification/classificationResponse.js +4 -2
- package/src/v2/product/classification/classificationResult.d.ts +6 -2
- package/src/v2/product/classification/classificationResult.js +6 -2
- package/src/v2/product/classification/params/classificationParameters.d.ts +1 -1
- package/src/v2/product/classification/params/classificationParameters.js +1 -1
- package/src/v2/product/crop/crop.d.ts +10 -4
- package/src/v2/product/crop/crop.js +10 -4
- package/src/v2/product/crop/cropInference.d.ts +8 -4
- package/src/v2/product/crop/cropInference.js +8 -4
- package/src/v2/product/crop/cropItem.d.ts +8 -4
- package/src/v2/product/crop/cropItem.js +9 -5
- package/src/v2/product/crop/cropResponse.d.ts +4 -2
- package/src/v2/product/crop/cropResponse.js +4 -2
- package/src/v2/product/crop/cropResult.d.ts +7 -3
- package/src/v2/product/crop/cropResult.js +8 -4
- package/src/v2/product/crop/params/cropParameters.d.ts +1 -1
- package/src/v2/product/crop/params/cropParameters.js +1 -1
- 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 +25 -5
- package/src/v2/product/extraction/extraction.js +32 -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 +7 -3
- package/src/v2/product/extraction/extractionInference.js +7 -3
- package/src/v2/product/extraction/extractionResponse.d.ts +4 -2
- package/src/v2/product/extraction/extractionResponse.js +4 -2
- package/src/v2/product/extraction/extractionResult.d.ts +9 -5
- package/src/v2/product/extraction/extractionResult.js +9 -5
- package/src/v2/product/extraction/index.d.ts +1 -0
- package/src/v2/product/extraction/index.js +1 -0
- 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.d.ts +1 -1
- package/src/v2/product/extraction/params/extractionParameters.js +4 -4
- package/src/v2/product/extraction/ragDocuments/annotatedBaseField.d.ts +20 -0
- package/src/v2/product/extraction/ragDocuments/annotatedBaseField.js +15 -0
- package/src/v2/product/extraction/ragDocuments/annotatedFields.d.ts +27 -0
- package/src/v2/product/extraction/ragDocuments/annotatedFields.js +57 -0
- package/src/v2/product/extraction/ragDocuments/annotatedListField.d.ts +26 -0
- package/src/v2/product/extraction/ragDocuments/annotatedListField.js +69 -0
- package/src/v2/product/extraction/ragDocuments/annotatedObjectField.d.ts +43 -0
- package/src/v2/product/extraction/ragDocuments/annotatedObjectField.js +47 -0
- package/src/v2/product/extraction/ragDocuments/annotatedSimpleField.d.ts +15 -0
- package/src/v2/product/extraction/ragDocuments/annotatedSimpleField.js +13 -0
- package/src/v2/product/extraction/ragDocuments/extractionRagAnnotationResponse.d.ts +25 -0
- package/src/v2/product/extraction/ragDocuments/extractionRagAnnotationResponse.js +17 -0
- package/src/v2/product/extraction/ragDocuments/fieldFactory.d.ts +12 -0
- package/src/v2/product/extraction/ragDocuments/fieldFactory.js +23 -0
- package/src/v2/product/extraction/ragDocuments/index.d.ts +7 -0
- package/src/v2/product/extraction/ragDocuments/index.js +7 -0
- package/src/v2/product/extraction/ragDocuments/params/index.d.ts +2 -0
- package/src/v2/product/extraction/ragDocuments/params/index.js +2 -0
- package/src/v2/product/extraction/ragDocuments/params/ragDocumentAnnotationParameters.d.ts +27 -0
- package/src/v2/product/extraction/ragDocuments/params/ragDocumentAnnotationParameters.js +43 -0
- package/src/v2/product/extraction/ragDocuments/params/ragDocumentUploadParameters.d.ts +7 -0
- package/src/v2/product/extraction/ragDocuments/params/ragDocumentUploadParameters.js +9 -0
- package/src/v2/product/extraction/ragDocuments/ragAnnotation.d.ts +12 -0
- package/src/v2/product/extraction/ragDocuments/ragAnnotation.js +9 -0
- package/src/v2/product/ocr/ocr.d.ts +10 -4
- package/src/v2/product/ocr/ocr.js +10 -4
- package/src/v2/product/ocr/ocrInference.d.ts +8 -4
- package/src/v2/product/ocr/ocrInference.js +8 -4
- 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 +4 -2
- package/src/v2/product/ocr/ocrResponse.js +4 -2
- 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/ocr/params/ocrParameters.d.ts +1 -1
- package/src/v2/product/ocr/params/ocrParameters.js +1 -1
- package/src/v2/product/split/params/splitParameters.d.ts +1 -1
- package/src/v2/product/split/params/splitParameters.js +1 -1
- package/src/v2/product/split/split.d.ts +10 -4
- package/src/v2/product/split/split.js +10 -4
- package/src/v2/product/split/splitInference.d.ts +7 -3
- package/src/v2/product/split/splitInference.js +7 -3
- package/src/v2/product/split/splitRange.d.ts +4 -2
- package/src/v2/product/split/splitRange.js +5 -3
- package/src/v2/product/split/splitResponse.d.ts +4 -2
- package/src/v2/product/split/splitResponse.js +4 -2
- package/src/v2/product/split/splitResult.d.ts +3 -1
- package/src/v2/product/split/splitResult.js +4 -2
- package/src/v2/search/baseSearch.d.ts +11 -5
- package/src/v2/search/baseSearch.js +9 -3
- package/src/v2/search/models/modelSearch.d.ts +12 -6
- package/src/v2/search/models/modelSearch.js +12 -6
- package/src/v2/search/models/modelSearchParameters.d.ts +4 -2
- package/src/v2/search/models/modelSearchParameters.js +4 -2
- package/src/v2/search/models/modelSearchResponse.d.ts +2 -2
- package/src/v2/search/models/modelSearchResponse.js +2 -2
- package/src/v2/search/ragDocuments/ragDocumentSearch.d.ts +12 -6
- package/src/v2/search/ragDocuments/ragDocumentSearch.js +12 -6
- package/src/v2/search/ragDocuments/ragDocumentSearchParameters.d.ts +4 -2
- package/src/v2/search/ragDocuments/ragDocumentSearchParameters.js +4 -2
- package/src/v2/search/ragDocuments/ragDocumentSearchResponse.d.ts +2 -2
- package/src/v2/search/ragDocuments/ragDocumentSearchResponse.js +2 -2
|
@@ -5,17 +5,29 @@ import { Polygon } from "../../../geometry/index.js";
|
|
|
5
5
|
*/
|
|
6
6
|
export declare class ResumeV1Certificate {
|
|
7
7
|
#private;
|
|
8
|
-
/**
|
|
8
|
+
/**
|
|
9
|
+
* The grade obtained for the certificate.
|
|
10
|
+
*/
|
|
9
11
|
grade: string | null;
|
|
10
|
-
/**
|
|
12
|
+
/**
|
|
13
|
+
* The name of certification.
|
|
14
|
+
*/
|
|
11
15
|
name: string | null;
|
|
12
|
-
/**
|
|
16
|
+
/**
|
|
17
|
+
* The organization or institution that issued the certificate.
|
|
18
|
+
*/
|
|
13
19
|
provider: string | null;
|
|
14
|
-
/**
|
|
20
|
+
/**
|
|
21
|
+
* The year when a certificate was issued or received.
|
|
22
|
+
*/
|
|
15
23
|
year: 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
|
|
@@ -4,7 +4,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
4
4
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
5
|
};
|
|
6
6
|
var _ResumeV1Certificate_instances, _ResumeV1Certificate_printableValues;
|
|
7
|
-
import { cleanAndTruncate } from "
|
|
7
|
+
import { cleanAndTruncate } from "../../parsing/common/index.js";
|
|
8
8
|
import { Polygon } from "../../../geometry/index.js";
|
|
9
9
|
/**
|
|
10
10
|
* The list of certificates obtained by the candidate.
|
|
@@ -12,7 +12,9 @@ import { Polygon } from "../../../geometry/index.js";
|
|
|
12
12
|
export class ResumeV1Certificate {
|
|
13
13
|
constructor({ prediction = {} }) {
|
|
14
14
|
_ResumeV1Certificate_instances.add(this);
|
|
15
|
-
/**
|
|
15
|
+
/**
|
|
16
|
+
* Confidence score
|
|
17
|
+
*/
|
|
16
18
|
this.confidence = 0.0;
|
|
17
19
|
/**
|
|
18
20
|
* Contains the relative vertices coordinates (points) of a polygon containing
|
|
@@ -1,47 +1,81 @@
|
|
|
1
|
-
import { Prediction, StringDict } from "
|
|
1
|
+
import { Prediction, StringDict } from "../../parsing/common/index.js";
|
|
2
2
|
import { ResumeV1SocialNetworksUrl } from "./resumeV1SocialNetworksUrl.js";
|
|
3
3
|
import { ResumeV1Language } from "./resumeV1Language.js";
|
|
4
4
|
import { ResumeV1Education } from "./resumeV1Education.js";
|
|
5
5
|
import { ResumeV1ProfessionalExperience } from "./resumeV1ProfessionalExperience.js";
|
|
6
6
|
import { ResumeV1Certificate } from "./resumeV1Certificate.js";
|
|
7
|
-
import { ClassificationField, StringField } from "
|
|
7
|
+
import { ClassificationField, StringField } from "../../parsing/standard/index.js";
|
|
8
8
|
/**
|
|
9
9
|
* Resume API version 1.2 document data.
|
|
10
10
|
*/
|
|
11
11
|
export declare class ResumeV1Document implements Prediction {
|
|
12
|
-
/**
|
|
12
|
+
/**
|
|
13
|
+
* The location information of the candidate, including city, state, and country.
|
|
14
|
+
*/
|
|
13
15
|
address: StringField;
|
|
14
|
-
/**
|
|
16
|
+
/**
|
|
17
|
+
* The list of certificates obtained by the candidate.
|
|
18
|
+
*/
|
|
15
19
|
certificates: ResumeV1Certificate[];
|
|
16
|
-
/**
|
|
20
|
+
/**
|
|
21
|
+
* The ISO 639 code of the language in which the document is written.
|
|
22
|
+
*/
|
|
17
23
|
documentLanguage: StringField;
|
|
18
|
-
/**
|
|
24
|
+
/**
|
|
25
|
+
* The type of the document sent.
|
|
26
|
+
*/
|
|
19
27
|
documentType: ClassificationField;
|
|
20
|
-
/**
|
|
28
|
+
/**
|
|
29
|
+
* The list of the candidate's educational background.
|
|
30
|
+
*/
|
|
21
31
|
education: ResumeV1Education[];
|
|
22
|
-
/**
|
|
32
|
+
/**
|
|
33
|
+
* The email address of the candidate.
|
|
34
|
+
*/
|
|
23
35
|
emailAddress: StringField;
|
|
24
|
-
/**
|
|
36
|
+
/**
|
|
37
|
+
* The candidate's first or given names.
|
|
38
|
+
*/
|
|
25
39
|
givenNames: StringField[];
|
|
26
|
-
/**
|
|
40
|
+
/**
|
|
41
|
+
* The list of the candidate's technical abilities and knowledge.
|
|
42
|
+
*/
|
|
27
43
|
hardSkills: StringField[];
|
|
28
|
-
/**
|
|
44
|
+
/**
|
|
45
|
+
* The position that the candidate is applying for.
|
|
46
|
+
*/
|
|
29
47
|
jobApplied: StringField;
|
|
30
|
-
/**
|
|
48
|
+
/**
|
|
49
|
+
* The list of languages that the candidate is proficient in.
|
|
50
|
+
*/
|
|
31
51
|
languages: ResumeV1Language[];
|
|
32
|
-
/**
|
|
52
|
+
/**
|
|
53
|
+
* The ISO 3166 code for the country of citizenship of the candidate.
|
|
54
|
+
*/
|
|
33
55
|
nationality: StringField;
|
|
34
|
-
/**
|
|
56
|
+
/**
|
|
57
|
+
* The phone number of the candidate.
|
|
58
|
+
*/
|
|
35
59
|
phoneNumber: StringField;
|
|
36
|
-
/**
|
|
60
|
+
/**
|
|
61
|
+
* The candidate's current profession.
|
|
62
|
+
*/
|
|
37
63
|
profession: StringField;
|
|
38
|
-
/**
|
|
64
|
+
/**
|
|
65
|
+
* The list of the candidate's professional experiences.
|
|
66
|
+
*/
|
|
39
67
|
professionalExperiences: ResumeV1ProfessionalExperience[];
|
|
40
|
-
/**
|
|
68
|
+
/**
|
|
69
|
+
* The list of social network profiles of the candidate.
|
|
70
|
+
*/
|
|
41
71
|
socialNetworksUrls: ResumeV1SocialNetworksUrl[];
|
|
42
|
-
/**
|
|
72
|
+
/**
|
|
73
|
+
* The list of the candidate's interpersonal and communication abilities.
|
|
74
|
+
*/
|
|
43
75
|
softSkills: StringField[];
|
|
44
|
-
/**
|
|
76
|
+
/**
|
|
77
|
+
* The candidate's last names.
|
|
78
|
+
*/
|
|
45
79
|
surnames: StringField[];
|
|
46
80
|
constructor(rawPrediction: StringDict, pageId?: number);
|
|
47
81
|
/**
|
|
@@ -1,32 +1,50 @@
|
|
|
1
|
-
import { cleanOutString, lineSeparator, } from "
|
|
1
|
+
import { cleanOutString, lineSeparator, } from "../../parsing/common/index.js";
|
|
2
2
|
import { ResumeV1SocialNetworksUrl } from "./resumeV1SocialNetworksUrl.js";
|
|
3
3
|
import { ResumeV1Language } from "./resumeV1Language.js";
|
|
4
4
|
import { ResumeV1Education } from "./resumeV1Education.js";
|
|
5
5
|
import { ResumeV1ProfessionalExperience } from "./resumeV1ProfessionalExperience.js";
|
|
6
6
|
import { ResumeV1Certificate } from "./resumeV1Certificate.js";
|
|
7
|
-
import { ClassificationField, StringField } from "
|
|
7
|
+
import { ClassificationField, StringField } from "../../parsing/standard/index.js";
|
|
8
8
|
/**
|
|
9
9
|
* Resume API version 1.2 document data.
|
|
10
10
|
*/
|
|
11
11
|
export class ResumeV1Document {
|
|
12
12
|
constructor(rawPrediction, pageId) {
|
|
13
|
-
/**
|
|
13
|
+
/**
|
|
14
|
+
* The list of certificates obtained by the candidate.
|
|
15
|
+
*/
|
|
14
16
|
this.certificates = [];
|
|
15
|
-
/**
|
|
17
|
+
/**
|
|
18
|
+
* The list of the candidate's educational background.
|
|
19
|
+
*/
|
|
16
20
|
this.education = [];
|
|
17
|
-
/**
|
|
21
|
+
/**
|
|
22
|
+
* The candidate's first or given names.
|
|
23
|
+
*/
|
|
18
24
|
this.givenNames = [];
|
|
19
|
-
/**
|
|
25
|
+
/**
|
|
26
|
+
* The list of the candidate's technical abilities and knowledge.
|
|
27
|
+
*/
|
|
20
28
|
this.hardSkills = [];
|
|
21
|
-
/**
|
|
29
|
+
/**
|
|
30
|
+
* The list of languages that the candidate is proficient in.
|
|
31
|
+
*/
|
|
22
32
|
this.languages = [];
|
|
23
|
-
/**
|
|
33
|
+
/**
|
|
34
|
+
* The list of the candidate's professional experiences.
|
|
35
|
+
*/
|
|
24
36
|
this.professionalExperiences = [];
|
|
25
|
-
/**
|
|
37
|
+
/**
|
|
38
|
+
* The list of social network profiles of the candidate.
|
|
39
|
+
*/
|
|
26
40
|
this.socialNetworksUrls = [];
|
|
27
|
-
/**
|
|
41
|
+
/**
|
|
42
|
+
* The list of the candidate's interpersonal and communication abilities.
|
|
43
|
+
*/
|
|
28
44
|
this.softSkills = [];
|
|
29
|
-
/**
|
|
45
|
+
/**
|
|
46
|
+
* The candidate's last names.
|
|
47
|
+
*/
|
|
30
48
|
this.surnames = [];
|
|
31
49
|
this.address = new StringField({
|
|
32
50
|
prediction: rawPrediction["address"],
|
|
@@ -5,23 +5,41 @@ import { Polygon } from "../../../geometry/index.js";
|
|
|
5
5
|
*/
|
|
6
6
|
export declare class ResumeV1Education {
|
|
7
7
|
#private;
|
|
8
|
-
/**
|
|
8
|
+
/**
|
|
9
|
+
* The area of study or specialization.
|
|
10
|
+
*/
|
|
9
11
|
degreeDomain: string | null;
|
|
10
|
-
/**
|
|
12
|
+
/**
|
|
13
|
+
* The type of degree obtained, such as Bachelor's, Master's, or Doctorate.
|
|
14
|
+
*/
|
|
11
15
|
degreeType: string | null;
|
|
12
|
-
/**
|
|
16
|
+
/**
|
|
17
|
+
* The month when the education program or course was completed.
|
|
18
|
+
*/
|
|
13
19
|
endMonth: string | null;
|
|
14
|
-
/**
|
|
20
|
+
/**
|
|
21
|
+
* The year when the education program or course was completed.
|
|
22
|
+
*/
|
|
15
23
|
endYear: string | null;
|
|
16
|
-
/**
|
|
24
|
+
/**
|
|
25
|
+
* The name of the school.
|
|
26
|
+
*/
|
|
17
27
|
school: string | null;
|
|
18
|
-
/**
|
|
28
|
+
/**
|
|
29
|
+
* The month when the education program or course began.
|
|
30
|
+
*/
|
|
19
31
|
startMonth: string | null;
|
|
20
|
-
/**
|
|
32
|
+
/**
|
|
33
|
+
* The year when the education program or course began.
|
|
34
|
+
*/
|
|
21
35
|
startYear: string | null;
|
|
22
|
-
/**
|
|
36
|
+
/**
|
|
37
|
+
* Confidence score
|
|
38
|
+
*/
|
|
23
39
|
confidence: number;
|
|
24
|
-
/**
|
|
40
|
+
/**
|
|
41
|
+
* The document page on which the information was found.
|
|
42
|
+
*/
|
|
25
43
|
pageId: number;
|
|
26
44
|
/**
|
|
27
45
|
* Contains the relative vertices coordinates (points) of a polygon containing
|
|
@@ -4,7 +4,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
4
4
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
5
|
};
|
|
6
6
|
var _ResumeV1Education_instances, _ResumeV1Education_printableValues;
|
|
7
|
-
import { cleanAndTruncate } from "
|
|
7
|
+
import { cleanAndTruncate } from "../../parsing/common/index.js";
|
|
8
8
|
import { Polygon } from "../../../geometry/index.js";
|
|
9
9
|
/**
|
|
10
10
|
* The list of the candidate's educational background.
|
|
@@ -12,7 +12,9 @@ import { Polygon } from "../../../geometry/index.js";
|
|
|
12
12
|
export class ResumeV1Education {
|
|
13
13
|
constructor({ prediction = {} }) {
|
|
14
14
|
_ResumeV1Education_instances.add(this);
|
|
15
|
-
/**
|
|
15
|
+
/**
|
|
16
|
+
* Confidence score
|
|
17
|
+
*/
|
|
16
18
|
this.confidence = 0.0;
|
|
17
19
|
/**
|
|
18
20
|
* Contains the relative vertices coordinates (points) of a polygon containing
|
|
@@ -5,13 +5,21 @@ import { Polygon } from "../../../geometry/index.js";
|
|
|
5
5
|
*/
|
|
6
6
|
export declare class ResumeV1Language {
|
|
7
7
|
#private;
|
|
8
|
-
/**
|
|
8
|
+
/**
|
|
9
|
+
* The language's ISO 639 code.
|
|
10
|
+
*/
|
|
9
11
|
language: string | null;
|
|
10
|
-
/**
|
|
12
|
+
/**
|
|
13
|
+
* The candidate's level for the language.
|
|
14
|
+
*/
|
|
11
15
|
level: string | null;
|
|
12
|
-
/**
|
|
16
|
+
/**
|
|
17
|
+
* Confidence score
|
|
18
|
+
*/
|
|
13
19
|
confidence: number;
|
|
14
|
-
/**
|
|
20
|
+
/**
|
|
21
|
+
* The document page on which the information was found.
|
|
22
|
+
*/
|
|
15
23
|
pageId: number;
|
|
16
24
|
/**
|
|
17
25
|
* Contains the relative vertices coordinates (points) of a polygon containing
|
|
@@ -4,7 +4,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
4
4
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
5
|
};
|
|
6
6
|
var _ResumeV1Language_instances, _ResumeV1Language_printableValues;
|
|
7
|
-
import { cleanAndTruncate } from "
|
|
7
|
+
import { cleanAndTruncate } from "../../parsing/common/index.js";
|
|
8
8
|
import { Polygon } from "../../../geometry/index.js";
|
|
9
9
|
/**
|
|
10
10
|
* The list of languages that the candidate is proficient in.
|
|
@@ -12,7 +12,9 @@ import { Polygon } from "../../../geometry/index.js";
|
|
|
12
12
|
export class ResumeV1Language {
|
|
13
13
|
constructor({ prediction = {} }) {
|
|
14
14
|
_ResumeV1Language_instances.add(this);
|
|
15
|
-
/**
|
|
15
|
+
/**
|
|
16
|
+
* Confidence score
|
|
17
|
+
*/
|
|
16
18
|
this.confidence = 0.0;
|
|
17
19
|
/**
|
|
18
20
|
* Contains the relative vertices coordinates (points) of a polygon containing
|
|
@@ -5,27 +5,49 @@ import { Polygon } from "../../../geometry/index.js";
|
|
|
5
5
|
*/
|
|
6
6
|
export declare class ResumeV1ProfessionalExperience {
|
|
7
7
|
#private;
|
|
8
|
-
/**
|
|
8
|
+
/**
|
|
9
|
+
* The type of contract for the professional experience.
|
|
10
|
+
*/
|
|
9
11
|
contractType: string | null;
|
|
10
|
-
/**
|
|
12
|
+
/**
|
|
13
|
+
* The specific department or division within the company.
|
|
14
|
+
*/
|
|
11
15
|
department: string | null;
|
|
12
|
-
/**
|
|
16
|
+
/**
|
|
17
|
+
* The description of the professional experience as written in the document.
|
|
18
|
+
*/
|
|
13
19
|
description: string | null;
|
|
14
|
-
/**
|
|
20
|
+
/**
|
|
21
|
+
* The name of the company or organization.
|
|
22
|
+
*/
|
|
15
23
|
employer: string | null;
|
|
16
|
-
/**
|
|
24
|
+
/**
|
|
25
|
+
* The month when the professional experience ended.
|
|
26
|
+
*/
|
|
17
27
|
endMonth: string | null;
|
|
18
|
-
/**
|
|
28
|
+
/**
|
|
29
|
+
* The year when the professional experience ended.
|
|
30
|
+
*/
|
|
19
31
|
endYear: string | null;
|
|
20
|
-
/**
|
|
32
|
+
/**
|
|
33
|
+
* The position or job title held by the candidate.
|
|
34
|
+
*/
|
|
21
35
|
role: string | null;
|
|
22
|
-
/**
|
|
36
|
+
/**
|
|
37
|
+
* The month when the professional experience began.
|
|
38
|
+
*/
|
|
23
39
|
startMonth: string | null;
|
|
24
|
-
/**
|
|
40
|
+
/**
|
|
41
|
+
* The year when the professional experience began.
|
|
42
|
+
*/
|
|
25
43
|
startYear: string | null;
|
|
26
|
-
/**
|
|
44
|
+
/**
|
|
45
|
+
* Confidence score
|
|
46
|
+
*/
|
|
27
47
|
confidence: number;
|
|
28
|
-
/**
|
|
48
|
+
/**
|
|
49
|
+
* The document page on which the information was found.
|
|
50
|
+
*/
|
|
29
51
|
pageId: number;
|
|
30
52
|
/**
|
|
31
53
|
* Contains the relative vertices coordinates (points) of a polygon containing
|
|
@@ -4,7 +4,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
4
4
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
5
|
};
|
|
6
6
|
var _ResumeV1ProfessionalExperience_instances, _ResumeV1ProfessionalExperience_printableValues;
|
|
7
|
-
import { cleanAndTruncate } from "
|
|
7
|
+
import { cleanAndTruncate } from "../../parsing/common/index.js";
|
|
8
8
|
import { Polygon } from "../../../geometry/index.js";
|
|
9
9
|
/**
|
|
10
10
|
* The list of the candidate's professional experiences.
|
|
@@ -12,7 +12,9 @@ import { Polygon } from "../../../geometry/index.js";
|
|
|
12
12
|
export class ResumeV1ProfessionalExperience {
|
|
13
13
|
constructor({ prediction = {} }) {
|
|
14
14
|
_ResumeV1ProfessionalExperience_instances.add(this);
|
|
15
|
-
/**
|
|
15
|
+
/**
|
|
16
|
+
* Confidence score
|
|
17
|
+
*/
|
|
16
18
|
this.confidence = 0.0;
|
|
17
19
|
/**
|
|
18
20
|
* Contains the relative vertices coordinates (points) of a polygon containing
|
|
@@ -5,13 +5,21 @@ import { Polygon } from "../../../geometry/index.js";
|
|
|
5
5
|
*/
|
|
6
6
|
export declare class ResumeV1SocialNetworksUrl {
|
|
7
7
|
#private;
|
|
8
|
-
/**
|
|
8
|
+
/**
|
|
9
|
+
* The name of the social network.
|
|
10
|
+
*/
|
|
9
11
|
name: string | null;
|
|
10
|
-
/**
|
|
12
|
+
/**
|
|
13
|
+
* The URL of the social network.
|
|
14
|
+
*/
|
|
11
15
|
url: string | null;
|
|
12
|
-
/**
|
|
16
|
+
/**
|
|
17
|
+
* Confidence score
|
|
18
|
+
*/
|
|
13
19
|
confidence: number;
|
|
14
|
-
/**
|
|
20
|
+
/**
|
|
21
|
+
* The document page on which the information was found.
|
|
22
|
+
*/
|
|
15
23
|
pageId: number;
|
|
16
24
|
/**
|
|
17
25
|
* Contains the relative vertices coordinates (points) of a polygon containing
|
|
@@ -4,7 +4,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
4
4
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
5
|
};
|
|
6
6
|
var _ResumeV1SocialNetworksUrl_instances, _ResumeV1SocialNetworksUrl_printableValues;
|
|
7
|
-
import { cleanAndTruncate } from "
|
|
7
|
+
import { cleanAndTruncate } from "../../parsing/common/index.js";
|
|
8
8
|
import { Polygon } from "../../../geometry/index.js";
|
|
9
9
|
/**
|
|
10
10
|
* The list of social network profiles of the candidate.
|
|
@@ -12,7 +12,9 @@ import { Polygon } from "../../../geometry/index.js";
|
|
|
12
12
|
export class ResumeV1SocialNetworksUrl {
|
|
13
13
|
constructor({ prediction = {} }) {
|
|
14
14
|
_ResumeV1SocialNetworksUrl_instances.add(this);
|
|
15
|
-
/**
|
|
15
|
+
/**
|
|
16
|
+
* Confidence score
|
|
17
|
+
*/
|
|
16
18
|
this.confidence = 0.0;
|
|
17
19
|
/**
|
|
18
20
|
* Contains the relative vertices coordinates (points) of a polygon containing
|
|
@@ -1,17 +1,25 @@
|
|
|
1
|
-
import { Inference, StringDict, Page } from "
|
|
1
|
+
import { Inference, StringDict, Page } from "../../../parsing/common/index.js";
|
|
2
2
|
import { BankCheckV1Document } from "./bankCheckV1Document.js";
|
|
3
3
|
import { BankCheckV1Page } from "./bankCheckV1Page.js";
|
|
4
4
|
/**
|
|
5
5
|
* Bank Check API version 1 inference prediction.
|
|
6
6
|
*/
|
|
7
7
|
export declare class BankCheckV1 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: BankCheckV1Document;
|
|
14
|
-
/**
|
|
20
|
+
/**
|
|
21
|
+
* The document's pages.
|
|
22
|
+
*/
|
|
15
23
|
pages: Page<BankCheckV1Page>[];
|
|
16
24
|
constructor(rawPrediction: StringDict);
|
|
17
25
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Inference, Page } from "
|
|
1
|
+
import { Inference, Page } from "../../../parsing/common/index.js";
|
|
2
2
|
import { BankCheckV1Document } from "./bankCheckV1Document.js";
|
|
3
3
|
import { BankCheckV1Page } from "./bankCheckV1Page.js";
|
|
4
4
|
/**
|
|
@@ -7,11 +7,17 @@ import { BankCheckV1Page } from "./bankCheckV1Page.js";
|
|
|
7
7
|
export class BankCheckV1 extends Inference {
|
|
8
8
|
constructor(rawPrediction) {
|
|
9
9
|
super(rawPrediction);
|
|
10
|
-
/**
|
|
10
|
+
/**
|
|
11
|
+
* The endpoint's name.
|
|
12
|
+
*/
|
|
11
13
|
this.endpointName = "bank_check";
|
|
12
|
-
/**
|
|
14
|
+
/**
|
|
15
|
+
* The endpoint's version.
|
|
16
|
+
*/
|
|
13
17
|
this.endpointVersion = "1";
|
|
14
|
-
/**
|
|
18
|
+
/**
|
|
19
|
+
* The document's pages.
|
|
20
|
+
*/
|
|
15
21
|
this.pages = [];
|
|
16
22
|
this.prediction = new BankCheckV1Document(rawPrediction["prediction"]);
|
|
17
23
|
rawPrediction["pages"].forEach((page) => {
|
|
@@ -1,20 +1,32 @@
|
|
|
1
|
-
import { Prediction, StringDict } from "
|
|
2
|
-
import { AmountField, DateField, StringField } from "
|
|
1
|
+
import { Prediction, StringDict } from "../../../parsing/common/index.js";
|
|
2
|
+
import { AmountField, DateField, StringField } from "../../../parsing/standard/index.js";
|
|
3
3
|
/**
|
|
4
4
|
* Bank Check API version 1.1 document data.
|
|
5
5
|
*/
|
|
6
6
|
export declare class BankCheckV1Document implements Prediction {
|
|
7
|
-
/**
|
|
7
|
+
/**
|
|
8
|
+
* The check payer's account number.
|
|
9
|
+
*/
|
|
8
10
|
accountNumber: StringField;
|
|
9
|
-
/**
|
|
11
|
+
/**
|
|
12
|
+
* The amount of the check.
|
|
13
|
+
*/
|
|
10
14
|
amount: AmountField;
|
|
11
|
-
/**
|
|
15
|
+
/**
|
|
16
|
+
* The issuer's check number.
|
|
17
|
+
*/
|
|
12
18
|
checkNumber: StringField;
|
|
13
|
-
/**
|
|
19
|
+
/**
|
|
20
|
+
* The date the check was issued.
|
|
21
|
+
*/
|
|
14
22
|
date: DateField;
|
|
15
|
-
/**
|
|
23
|
+
/**
|
|
24
|
+
* List of the check's payees (recipients).
|
|
25
|
+
*/
|
|
16
26
|
payees: StringField[];
|
|
17
|
-
/**
|
|
27
|
+
/**
|
|
28
|
+
* The check issuer's routing number.
|
|
29
|
+
*/
|
|
18
30
|
routingNumber: StringField;
|
|
19
31
|
constructor(rawPrediction: StringDict, pageId?: number);
|
|
20
32
|
/**
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import { cleanOutString, } from "
|
|
2
|
-
import { AmountField, DateField, StringField, } from "
|
|
1
|
+
import { cleanOutString, } from "../../../parsing/common/index.js";
|
|
2
|
+
import { AmountField, DateField, StringField, } from "../../../parsing/standard/index.js";
|
|
3
3
|
/**
|
|
4
4
|
* Bank Check API version 1.1 document data.
|
|
5
5
|
*/
|
|
6
6
|
export class BankCheckV1Document {
|
|
7
7
|
constructor(rawPrediction, pageId) {
|
|
8
|
-
/**
|
|
8
|
+
/**
|
|
9
|
+
* List of the check's payees (recipients).
|
|
10
|
+
*/
|
|
9
11
|
this.payees = [];
|
|
10
12
|
this.accountNumber = new StringField({
|
|
11
13
|
prediction: rawPrediction["account_number"],
|
|
@@ -1,13 +1,17 @@
|
|
|
1
|
-
import { StringDict } from "
|
|
2
|
-
import { PositionField } from "
|
|
1
|
+
import { StringDict } from "../../../parsing/common/index.js";
|
|
2
|
+
import { PositionField } from "../../../parsing/standard/index.js";
|
|
3
3
|
import { BankCheckV1Document } from "./bankCheckV1Document.js";
|
|
4
4
|
/**
|
|
5
5
|
* Bank Check API version 1.1 page data.
|
|
6
6
|
*/
|
|
7
7
|
export declare class BankCheckV1Page extends BankCheckV1Document {
|
|
8
|
-
/**
|
|
8
|
+
/**
|
|
9
|
+
* The position of the check on the document.
|
|
10
|
+
*/
|
|
9
11
|
checkPosition: PositionField;
|
|
10
|
-
/**
|
|
12
|
+
/**
|
|
13
|
+
* List of signature positions
|
|
14
|
+
*/
|
|
11
15
|
signaturesPositions: PositionField[];
|
|
12
16
|
constructor(rawPrediction: StringDict, pageId?: number);
|
|
13
17
|
toString(): string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { cleanOutString } from "
|
|
2
|
-
import { PositionField } from "
|
|
1
|
+
import { cleanOutString } from "../../../parsing/common/index.js";
|
|
2
|
+
import { PositionField } from "../../../parsing/standard/index.js";
|
|
3
3
|
import { BankCheckV1Document } from "./bankCheckV1Document.js";
|
|
4
4
|
/**
|
|
5
5
|
* Bank Check API version 1.1 page data.
|
|
@@ -7,7 +7,9 @@ import { BankCheckV1Document } from "./bankCheckV1Document.js";
|
|
|
7
7
|
export class BankCheckV1Page extends BankCheckV1Document {
|
|
8
8
|
constructor(rawPrediction, pageId) {
|
|
9
9
|
super(rawPrediction, pageId);
|
|
10
|
-
/**
|
|
10
|
+
/**
|
|
11
|
+
* List of signature positions
|
|
12
|
+
*/
|
|
11
13
|
this.signaturesPositions = [];
|
|
12
14
|
this.checkPosition = new PositionField({
|
|
13
15
|
prediction: rawPrediction["check_position"],
|
package/src/v2/cli.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Command } from "commander";
|
|
2
|
-
import * as console from "console";
|
|
2
|
+
import * as console from "node:console";
|
|
3
3
|
import { Client, PathInput, UrlInput } from "../index.js";
|
|
4
|
-
import { Classification, Crop, Extraction, Ocr, Split, } from "
|
|
4
|
+
import { Classification, Crop, Extraction, Ocr, Split, } from "./product/index.js";
|
|
5
5
|
const program = new Command();
|
|
6
6
|
//
|
|
7
7
|
// EXECUTE THE COMMANDS
|