cordova-plugin-scanbot-sdk
Advanced tools
Comparing version 4.10.1-beta1 to 4.11.0-beta1
@@ -7,3 +7,3 @@ | ||
const version = "1.16.0"; | ||
const version = "1.19.2"; | ||
const url = `https://download.scanbot.io/sdk/ios/scanbot-ios-sdk${version}.zip`; | ||
@@ -10,0 +10,0 @@ const zipFile = "sdk-ios.zip"; |
123
index.d.ts
@@ -51,3 +51,3 @@ | ||
*/ | ||
shutterButtonAccessibilityHint: string; | ||
shutterButtonAccessibilityHint: string; | ||
} | ||
@@ -342,3 +342,3 @@ | ||
export type IdCardDocumentType = | ||
export type IdCardDocumentType = | ||
"DeIdBack" | | ||
@@ -800,3 +800,8 @@ "DeIdFront" | | ||
export type BarcodeDocumentFormat = | ||
export type EngineMode = | ||
"NEXT_GEN" | ||
| "LEGACY" | ||
; | ||
export type BarcodeDocumentFormat = | ||
"AAMVA" | | ||
@@ -814,3 +819,3 @@ "BOARDING_PASS" | | ||
/** | ||
* An optional array of barcode document formats that act as a detection filter. | ||
* An optional array of barcode document formats that act as a detection filter. | ||
* By default all supported document formats will be detected. | ||
@@ -901,4 +906,4 @@ */ | ||
/** | ||
* Optional minimum required text length of the detected barcode. | ||
* The default is 0 (setting is turned off). | ||
* Optional minimum required text length of the detected barcode. | ||
* The default is 0 (setting is turned off). | ||
* NOTE: This feature works on ITF barcodes only. | ||
@@ -908,4 +913,4 @@ */ | ||
/** | ||
* Optional maximum required text length of the detected barcode. | ||
* The default is 0 (setting is turned off). | ||
* Optional maximum required text length of the detected barcode. | ||
* The default is 0 (setting is turned off). | ||
* NOTE: This feature works on ITF barcodes only. | ||
@@ -915,8 +920,8 @@ */ | ||
/** | ||
* Optional minimum required quiet zone on the barcode. | ||
* Measured in modules (the size of minimal bar on the barcode). | ||
* The default is 10. | ||
* Optional minimum required quiet zone on the barcode. | ||
* Measured in modules (the size of minimal bar on the barcode). | ||
* The default is 10. | ||
* NOTE: This feature works on ITF barcodes only. | ||
*/ | ||
minimum1DBarcodesQuietZone?: number | ||
minimum1DBarcodesQuietZone?: number | ||
/** | ||
@@ -934,2 +939,19 @@ * With this option, the scanner assumes that the barcode can be a GS1 barcode, and modify the behavior as needed. | ||
cameraZoomFactor?: number; | ||
/** | ||
* The engine mode of the barcode recognizer. Defaults to NEXT_GEN. | ||
* To use legacy recognizer, please specify LEGACY | ||
*/ | ||
engineMode?: EngineMode; | ||
/** | ||
* When set to `true`, the scanner assumes that the barcode can be a GS1 barcode. | ||
* Turn it off, if you don't want to see decoded FNC1 characters ("]C1" and ASCII char 29). | ||
* The default value is `true`. | ||
* NOTE: Currently works for CODE128 barcodes only! | ||
*/ | ||
gs1DecodingEnabled?: boolean; | ||
/** | ||
* The checksum algorithms for MSI Plessey barcodes. | ||
* The default value is [MSIPlesseyChecksumAlgorithm.Mod10]. | ||
*/ | ||
msiPlesseyChecksumAlgorithm?: MSIPlesseyChecksumAlgorithm; | ||
} | ||
@@ -940,3 +962,3 @@ | ||
/** | ||
* An optional array of barcode document formats that act as a detection filter. | ||
* An optional array of barcode document formats that act as a detection filter. | ||
* By default all supported document formats will be detected. | ||
@@ -1057,4 +1079,4 @@ */ | ||
/** | ||
* Optional minimum required text length of the detected barcode. | ||
* The default is 0 (setting is turned off). | ||
* Optional minimum required text length of the detected barcode. | ||
* The default is 0 (setting is turned off). | ||
* NOTE: This feature works on ITF barcodes only. | ||
@@ -1064,4 +1086,4 @@ */ | ||
/** | ||
* Optional maximum required text length of the detected barcode. | ||
* The default is 0 (setting is turned off). | ||
* Optional maximum required text length of the detected barcode. | ||
* The default is 0 (setting is turned off). | ||
* NOTE: This feature works on ITF barcodes only. | ||
@@ -1071,5 +1093,5 @@ */ | ||
/** | ||
* Optional minimum required quiet zone on the barcode. | ||
* Measured in modules (the size of minimal bar on the barcode). | ||
* The default is 10. | ||
* Optional minimum required quiet zone on the barcode. | ||
* Measured in modules (the size of minimal bar on the barcode). | ||
* The default is 10. | ||
* NOTE: This feature works on ITF barcodes only. | ||
@@ -1079,8 +1101,18 @@ */ | ||
/** | ||
* With this option, the scanner assumes that the barcode can be a GS1 barcode, and modify the behavior as needed. | ||
* You can set it to 'false', if you don't want to see decoded FNC1 characters ("]C1" and ASCII char 29). | ||
* The default is 'true'. | ||
* The engine mode of the barcode recognizer. Defaults to NEXT_GEN. | ||
* To use legacy recognizer, please specify LEGACY | ||
*/ | ||
engineMode?: EngineMode; | ||
/** | ||
* When set to `true`, the scanner assumes that the barcode can be a GS1 barcode. | ||
* Turn it off, if you don't want to see decoded FNC1 characters ("]C1" and ASCII char 29). | ||
* The default value is `true`. | ||
* NOTE: Currently works for CODE128 barcodes only! | ||
*/ | ||
enableGS1Decoding?: boolean | ||
gs1DecodingEnabled?: boolean; | ||
/** | ||
* The checksum algorithms for MSI Plessey barcodes. | ||
* The default value is [MSIPlesseyChecksumAlgorithm.Mod10]. | ||
*/ | ||
msiPlesseyChecksumAlgorithm?: MSIPlesseyChecksumAlgorithm; | ||
} | ||
@@ -1424,3 +1456,4 @@ | ||
"UPC_E" | | ||
"UNKNOWN"; | ||
"UNKNOWN" | | ||
"MSI_PLESSEY"; | ||
@@ -1435,2 +1468,12 @@ export type BarcodeImageGenerationType = "NONE" | "VIDEO_FRAME" | "CAPTURED_IMAGE"; | ||
export type MSIPlesseyChecksumAlgorithm = | ||
"None" | | ||
"Mod10" | | ||
"Mod11IBM" | | ||
"Mod11NCR" | | ||
"Mod1010" | | ||
"Mod1110IBM" | | ||
"Mod1110NCR" | ||
; | ||
export type CameraOrientationMode = | ||
@@ -1540,2 +1583,3 @@ "NONE" | ||
documentImageSizeLimit?: Size; | ||
originalImageFileUri: string; | ||
@@ -1704,4 +1748,4 @@ documentImageFileUri?: string; | ||
detectBarcodesOnImage( | ||
args: { | ||
imageFileUri: string, | ||
args: { | ||
imageFileUri: string, | ||
barcodeFormats?: BarcodeFormat[], | ||
@@ -1715,4 +1759,4 @@ acceptedDocumentFormats?: BarcodeDocumentFormat[], | ||
detectBarcodesOnImages( | ||
args: { | ||
imageFilesUris: string[], | ||
args: { | ||
imageFilesUris: string[], | ||
barcodeFormats?: BarcodeFormat[], | ||
@@ -1830,7 +1874,5 @@ acceptedDocumentFormats?: BarcodeDocumentFormat[], | ||
config: ScanbotSDKConfiguration): void; | ||
getLicenseInfo( | ||
success: SuccessCallback<GenericResult & {info: LicenseInfo}>, | ||
error: ErrorCallback): void; | ||
setLicenseFailureHandler(callback: SuccessCallback<LicenseFailure>): void; | ||
@@ -1840,3 +1882,3 @@ | ||
success: SuccessCallback<GenericResult & BarcodeResult>, | ||
error: ErrorCallback, args: { | ||
error: ErrorCallback, args: { | ||
imageFileUri: string, | ||
@@ -1847,3 +1889,3 @@ barcodeFormats?: BarcodeFormat[], | ||
maximumTextLength?: number, // NOTE: This feature works on ITF barcodes only. | ||
minimum1DBarcodesQuietZone?: number //NOTE: This feature works on ITF barcodes only. | ||
minimum1DBarcodesQuietZone?: number //NOTE: This feature works on ITF barcodes only. | ||
}): void; | ||
@@ -1853,4 +1895,4 @@ | ||
success: SuccessCallback<GenericResult & DocumentDetectionResult>, | ||
error: ErrorCallback, args: { | ||
imageFilesUris: string[], | ||
error: ErrorCallback, args: { | ||
imageFilesUris: string[], | ||
barcodeFormats?: BarcodeFormat[], | ||
@@ -1863,7 +1905,5 @@ acceptedDocumentFormats?: BarcodeDocumentFormat[], | ||
): void | ||
detectDocument( | ||
success: SuccessCallback<GenericResult & DocumentDetectionResult>, | ||
error: ErrorCallback, args: { imageFileUri: string, quality?: number }): void; | ||
applyImageFilter( | ||
@@ -1873,3 +1913,2 @@ success: SuccessCallback<GenericResult & {imageFileUri: string}>, | ||
}): void; | ||
rotateImage( | ||
@@ -1879,7 +1918,5 @@ success: SuccessCallback<GenericResult & {imageFileUri: string}>, | ||
}): void; | ||
getOcrConfigs( | ||
success: SuccessCallback<GenericResult & { languageDataPath: string; installedLanguages: string[]; }>, | ||
error: ErrorCallback): void; | ||
performOcr( | ||
@@ -1906,3 +1943,2 @@ success: SuccessCallback<GenericResult & { plainText?: string; pdfFileUri?: string; jsonData?: any; }>, | ||
args: {originalImageFileUri: string}): void; | ||
setDocumentImage( | ||
@@ -1912,3 +1948,2 @@ success: SuccessCallback<GenericResult & {page: Page}>, | ||
args: {page: Page, imageUri: string}): void; | ||
detectDocumentOnPage( | ||
@@ -1918,3 +1953,2 @@ success: SuccessCallback<GenericResult & {page: Page}>, | ||
args: {page: Page}): void; | ||
applyImageFilterOnPage( | ||
@@ -1924,3 +1958,2 @@ success: SuccessCallback<GenericResult & {page: Page}>, | ||
args: {page: Page, imageFilter: ImageFilter}): void; | ||
rotatePage( | ||
@@ -1930,3 +1963,2 @@ success: SuccessCallback<GenericResult & {page: Page}>, | ||
args: {page: Page, times: number}): void; | ||
getFilteredDocumentPreviewUri( | ||
@@ -1936,3 +1968,2 @@ success: SuccessCallback<GenericResult & {imageFileUri: string}>, | ||
args: {page: Page, imageFilter: ImageFilter}): void; | ||
removePage( | ||
@@ -1939,0 +1970,0 @@ success: SuccessCallback<GenericResult>, |
{ | ||
"name": "cordova-plugin-scanbot-sdk", | ||
"version": "4.10.1-beta1", | ||
"version": "4.11.0-beta1", | ||
"description": "Cordova Plugin for Scanbot SDK", | ||
@@ -5,0 +5,0 @@ "cordova": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
495788
6295