scandoc-ai-components 0.0.96 → 0.0.97
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/dist/index.js +24 -7
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -11716,13 +11716,13 @@ let internalConfig = {
|
|
|
11716
11716
|
SHOULD_RETURN_DOCUMENT_IMAGE: null,
|
|
11717
11717
|
SHOULD_RETURN_FACE_IF_DETECTED: null,
|
|
11718
11718
|
SHOULD_RETURN_SIGNATURE_IF_DETECTED: null,
|
|
11719
|
-
SKIP_DOCUMENT_SIZE_CHECK:
|
|
11720
|
-
SKIP_IMAGE_SIZE_CHECK:
|
|
11721
|
-
CAN_STORE_IMAGES:
|
|
11722
|
-
ENFORCE_DOCS_SAME_COUNTRY_TYPE_SERIES:
|
|
11723
|
-
CASE_SENSITIVE_OUTPUT:
|
|
11724
|
-
STORE_FACE_IMAGE:
|
|
11725
|
-
DONT_USE_VALIDATION:
|
|
11719
|
+
SKIP_DOCUMENT_SIZE_CHECK: true,
|
|
11720
|
+
SKIP_IMAGE_SIZE_CHECK: true,
|
|
11721
|
+
CAN_STORE_IMAGES: false,
|
|
11722
|
+
ENFORCE_DOCS_SAME_COUNTRY_TYPE_SERIES: false,
|
|
11723
|
+
CASE_SENSITIVE_OUTPUT: false,
|
|
11724
|
+
STORE_FACE_IMAGE: false,
|
|
11725
|
+
DONT_USE_VALIDATION: true,
|
|
11726
11726
|
SEGMENTED_IMAGE_RESIZE: null,
|
|
11727
11727
|
SIGNATURE_IMAGE_RESIZE: null,
|
|
11728
11728
|
FACE_IMAGE_RESIZE: null,
|
|
@@ -11988,6 +11988,23 @@ async function callDocumentExtraction(frontImage, backImage, ignoreBackImage) {
|
|
|
11988
11988
|
Browser: browser
|
|
11989
11989
|
})
|
|
11990
11990
|
});
|
|
11991
|
+
const requestBody = {
|
|
11992
|
+
AcceptTermsAndConditions: true,
|
|
11993
|
+
DataFields: {
|
|
11994
|
+
BackImage: ignoreBackImage ? "" : backImage,
|
|
11995
|
+
BackImageCropped: false,
|
|
11996
|
+
BackImageType: "base64",
|
|
11997
|
+
FrontImage: frontImage,
|
|
11998
|
+
FrontImageCropped: false,
|
|
11999
|
+
FrontImageType: "base64"
|
|
12000
|
+
},
|
|
12001
|
+
Settings: currentSettings,
|
|
12002
|
+
OS: os,
|
|
12003
|
+
Device: device,
|
|
12004
|
+
Browser: browser
|
|
12005
|
+
};
|
|
12006
|
+
console.log("Extraction request body:", requestBody);
|
|
12007
|
+
|
|
11991
12008
|
//
|
|
11992
12009
|
if (response.status === 200) {
|
|
11993
12010
|
const data = await response.json();
|