Socket
Socket
Sign inDemoInstall

@microblink/blinkcard-capacitor

Package Overview
Dependencies
2
Maintainers
6
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.6.0 to 2.9.0

android/.gradle/8.0.2/checksums/checksums.lock

2

dist/esm/index.d.ts

@@ -9,3 +9,1 @@ export * from './definitions';

export * from './recognizers/blinkCardRecognizer';
export * from './recognizers/legacyBlinkCardEliteRecognizer';
export * from './recognizers/legacyBlinkCardRecognizer';

@@ -10,4 +10,2 @@ export * from './scanner';

export * from './recognizers/blinkCardRecognizer';
export * from './recognizers/legacyBlinkCardEliteRecognizer';
export * from './recognizers/legacyBlinkCardRecognizer';
//# sourceMappingURL=index.js.map

@@ -25,3 +25,51 @@ import { OverlaySettings } from '../overlaySettings';

showFlashlightWarning: boolean;
/**
* String: Instructions for the user to move the document closer
*
* If null, default value will be used.
*/
errorMoveCloser: string;
/**
* String: Instructions for the user to move the document farther
*
* If null, default value will be used.
*/
errorMoveFarther: string;
/**
* String: Instructions for the user to move the document from the edge
*
* If null, default value will be used.
*/
errorCardTooCloseToEdge: string;
/**
* Defines whether button for presenting onboarding screens will be present on screen
*
* Default: true
*/
showOnboardingInfo: boolean;
/**
* Defines whether button for presenting onboarding screens will be present on screen
*
* Default: true
*/
showIntroductionDialog: boolean;
/**
* Option to configure when the onboarding help tooltip will appear.
*
* Default: 8000
*/
onboardingButtonTooltipDelay: number;
/**
* Language of the UI.
* If default overlay contains textual information, text will be localized to this language. Otherwise device langauge will be used
* example: "en"
*/
language: string;
/**
* Used with language variable, it defines the country locale
*
* example: "US" to use "en_US" on Android and en-US on iOS
*/
country: string;
constructor();
}

@@ -12,4 +12,12 @@ import { OverlaySettings } from '../overlaySettings';

this.showFlashlightWarning = true;
this.errorMoveCloser = null;
this.errorMoveFarther = null;
this.errorCardTooCloseToEdge = null;
this.showOnboardingInfo = true;
this.showIntroductionDialog = true;
this.onboardingButtonTooltipDelay = 8000;
this.language = null;
this.country = null;
}
}
//# sourceMappingURL=blinkcardOverlays.js.map

@@ -12,6 +12,6 @@ /**

export declare const enum RecognizerResultState {
empty = 1,
uncertain = 2,
valid = 3,
stageValid = 4
empty = 0,
uncertain = 1,
valid = 2,
stageValid = 3
}

@@ -18,0 +18,0 @@ /**

import { Recognizer, RecognizerResult } from '../recognizer';
import { Date, Issuer, BlinkCardProcessingStatus, BlinkCardAnonymizationSettings, ImageExtensionFactors } from '../types';
import { Date, Issuer, BlinkCardProcessingStatus, BlinkCardAnonymizationSettings, DocumentLivenessCheckResult, BlinkCardMatchLevel, ImageExtensionFactors } from '../types';
/**

@@ -10,43 +10,51 @@ * Result object for BlinkCardRecognizer.

*/
cardNumber: string;
cardNumber?: string;
/**
* The payment card number prefix.
*/
cardNumberPrefix: string;
cardNumberPrefix?: string;
/**
* The payment card number is valid
*/
cardNumberValid: boolean;
cardNumberValid?: boolean;
/**
* Payment card's security code/value.
*/
cvv: string;
cvv?: string;
/**
* Document liveness check (screen, photocopy, hand presence) which can pass or fail.
*/
documentLivenessCheck?: DocumentLivenessCheckResult;
/**
* The payment card's expiry date.
*/
expiryDate: Date;
expiryDate?: Date;
/**
* Wheater the first scanned side is blurred.
* Whether the first scanned side is anonymized.
*/
firstSideBlurred: boolean;
firstSideAnonymized?: boolean;
/**
* Whether the first scanned side is blurred.
*/
firstSideBlurred?: boolean;
/**
* Full image of the payment card from first side recognition.
*/
firstSideFullDocumentImage: string;
firstSideFullDocumentImage?: string;
/**
* Payment card's IBAN.
*/
iban: string;
iban?: string;
/**
* Payment card's issuing network.
*/
issuer: Issuer;
issuer?: Issuer;
/**
* Information about the payment card owner (name, company, etc.).
*/
owner: string;
owner?: string;
/**
* Status of the last recognition process.
*/
processingStatus: BlinkCardProcessingStatus;
processingStatus?: BlinkCardProcessingStatus;
/**

@@ -56,11 +64,15 @@ * Returns true if recognizer has finished scanning first side and is now scanning back side,

*/
scanningFirstSideDone: boolean;
scanningFirstSideDone?: boolean;
/**
* Wheater the second scanned side is blurred.
* Whether the second scanned side is anonymized.
*/
secondSideBlurred: boolean;
secondSideAnonymized?: boolean;
/**
* Whether the second scanned side is blurred.
*/
secondSideBlurred?: boolean;
/**
* Full image of the payment card from second side recognition.
*/
secondSideFullDocumentImage: string;
secondSideFullDocumentImage?: string;
constructor(nativeResult: any);

@@ -79,2 +91,8 @@ }

/**
* Whether invalid card number is accepted.
*
*
*/
allowInvalidCardNumber: boolean;
/**
* Defines whether sensitive data should be redacted from the result.

@@ -124,2 +142,14 @@ *

/**
* This parameter is used to adjust heuristics that eliminate cases when the hand is present.
*
*
*/
handDocumentOverlapThreshold: number;
/**
* Hand scale is calculated as a ratio between area of hand mask and document mask.
*
*
*/
handScaleThreshold: number;
/**
* Pading is a minimum distance from the edge of the frame and is defined as a percentage of the frame width. Default value is 0.0f and in that case

@@ -133,2 +163,8 @@ * padding edge and image edge are the same.

/**
* Photocopy analysis match level - higher if stricter.
*
*
*/
photocopyAnalysisMatchLevel: BlinkCardMatchLevel;
/**
* Sets whether full document image of ID card should be extracted.

@@ -139,3 +175,9 @@ *

returnFullDocumentImage: boolean;
/**
* Screen analysis match level - higher if stricter.
*
*
*/
screenAnalysisMatchLevel: BlinkCardMatchLevel;
constructor();
}

@@ -27,2 +27,6 @@ import { Recognizer, RecognizerResult } from '../recognizer';

/**
* Document liveness check (screen, photocopy, hand presence) which can pass or fail.
*/
this.documentLivenessCheck = nativeResult.documentLivenessCheck;
/**
* The payment card's expiry date.

@@ -32,4 +36,8 @@ */

/**
* Wheater the first scanned side is blurred.
* Whether the first scanned side is anonymized.
*/
this.firstSideAnonymized = nativeResult.firstSideAnonymized;
/**
* Whether the first scanned side is blurred.
*/
this.firstSideBlurred = nativeResult.firstSideBlurred;

@@ -62,4 +70,8 @@ /**

/**
* Wheater the second scanned side is blurred.
* Whether the second scanned side is anonymized.
*/
this.secondSideAnonymized = nativeResult.secondSideAnonymized;
/**
* Whether the second scanned side is blurred.
*/
this.secondSideBlurred = nativeResult.secondSideBlurred;

@@ -85,2 +97,8 @@ /**

/**
* Whether invalid card number is accepted.
*
*
*/
this.allowInvalidCardNumber = false;
/**
* Defines whether sensitive data should be redacted from the result.

@@ -130,2 +148,14 @@ *

/**
* This parameter is used to adjust heuristics that eliminate cases when the hand is present.
*
*
*/
this.handDocumentOverlapThreshold = 0.05;
/**
* Hand scale is calculated as a ratio between area of hand mask and document mask.
*
*
*/
this.handScaleThreshold = 0.15;
/**
* Pading is a minimum distance from the edge of the frame and is defined as a percentage of the frame width. Default value is 0.0f and in that case

@@ -139,2 +169,8 @@ * padding edge and image edge are the same.

/**
* Photocopy analysis match level - higher if stricter.
*
*
*/
this.photocopyAnalysisMatchLevel = 5 /* Level5 */;
/**
* Sets whether full document image of ID card should be extracted.

@@ -145,2 +181,8 @@ *

this.returnFullDocumentImage = false;
/**
* Screen analysis match level - higher if stricter.
*
*
*/
this.screenAnalysisMatchLevel = 5 /* Level5 */;
this.createResultFromNative = (nativeResult) => { return new BlinkCardRecognizerResult(nativeResult); };

@@ -147,0 +189,0 @@ }

@@ -34,3 +34,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

let result = recognizerCollection.recognizerArray[i].createResultFromNative(results[i]);
if (result.resultState != 1 /* empty */) {
if (result.resultState != 0 /* empty */) {
resultsFromNative.push(result);

@@ -37,0 +37,0 @@ }

@@ -11,5 +11,21 @@ /**

year: number;
/** original date string */
originalDateStringResult: string;
/** isFilledByDomainKnowledge */
isFilledByDomainKnowledge: boolean;
constructor(nativeDate: any);
}
/**
* Represents a date result with additional properties.
*/
export declare class DateResult {
/** date */
date: Date;
/** original date string */
originalDateStringResult: string;
/** is filled by domain knowledge */
isFilledByDomainKnowledge: boolean;
constructor(nativeDateResult: any);
}
/**
* Represents a point in image

@@ -39,77 +55,18 @@ */

/**
* Supported Legacy BlinkCard card issuer values.
*/
export declare const enum LegacyCardIssuer {
/** Unidentified Card */
Other = 1,
/** The American Express Company Card */
AmericanExpress = 2,
/** The Bank of Montreal ABM Card */
BmoAbm = 3,
/** China T-Union Transportation Card */
ChinaTUnion = 4,
/** China UnionPay Card */
ChinaUnionPay = 5,
/** Canadian Imperial Bank of Commerce Advantage Debit Card */
CibcAdvantageDebit = 6,
/** CISS Card */
Ciss = 7,
/** Diners Club International Card */
DinersClubInternational = 8,
/** Diners Club United States & Canada Card */
DinersClubUsCanada = 9,
/** Discover Card */
DiscoverCard = 10,
/** HSBC Bank Canada Card */
Hsbc = 11,
/** RuPay Card */
RuPay = 12,
/** InterPayment Card */
InterPayment = 13,
/** InstaPayment Card */
InstaPayment = 14,
/** The JCB Company Card */
Jcb = 15,
/** Laser Debit Card (deprecated) */
Laser = 16,
/** Maestro Debit Card */
Maestro = 17,
/** Dankort Card */
Dankort = 18,
/** MIR Card */
Mir = 19,
/** MasterCard Inc. Card */
MasterCard = 20,
/** The Royal Bank of Canada Client Card */
RbcClient = 21,
/** ScotiaBank Scotia Card */
ScotiaBank = 22,
/** TD Canada Trust Access Card */
TdCtAccess = 23,
/** Troy Card */
Troy = 24,
/** Visa Inc. Card */
Visa = 25,
/** Universal Air Travel Plan Inc. Card */
Uatp = 26,
/** Interswitch Verve Card */
Verve = 27
}
/**
* Supported BlinkCard card issuer values.
*/
export declare const enum Issuer {
Other = 1,
AmericanExpress = 2,
ChinaUnionPay = 3,
Diners = 4,
DiscoverCard = 5,
Elo = 6,
Jcb = 7,
Maestro = 8,
Mastercard = 9,
RuPay = 10,
Verve = 11,
Visa = 12,
VPay = 13
Other = 0,
AmericanExpress = 1,
ChinaUnionPay = 2,
Diners = 3,
DiscoverCard = 4,
Elo = 5,
Jcb = 6,
Maestro = 7,
Mastercard = 8,
RuPay = 9,
Verve = 10,
Visa = 11,
VPay = 12
}

@@ -121,19 +78,57 @@ /**

/** Recognition was successful. */
Success = 1,
Success = 0,
/** Detection of the document failed. */
DetectionFailed = 2,
DetectionFailed = 1,
/** Preprocessing of the input image has failed. */
ImagePreprocessingFailed = 3,
ImagePreprocessingFailed = 2,
/** Recognizer has inconsistent results. */
StabilityTestFailed = 4,
StabilityTestFailed = 3,
/** Wrong side of the document has been scanned. */
ScanningWrongSide = 5,
ScanningWrongSide = 4,
/** Identification of the fields present on the document has failed. */
FieldIdentificationFailed = 6,
FieldIdentificationFailed = 5,
/** Failed to return a requested image. */
ImageReturnFailed = 7,
ImageReturnFailed = 6,
/** Payment card currently not supported by the recognizer. */
UnsupportedCard = 8
UnsupportedCard = 7
}
/**
* Enumerates the possible match levels indicating the strictness of a check result. Higher is stricter.
*/
export declare const enum BlinkCardMatchLevel {
/** Match level is disabled */
Disabled = 0,
/** Match level one. */
Level1 = 1,
/** Match level two */
Level2 = 2,
/** Match level three */
Level3 = 3,
/** Match level four */
Level4 = 4,
/** Match level five */
Level5 = 5,
/** Match level six */
Level6 = 6,
/** Match level seven */
Level7 = 7,
/** Match level eight */
Level8 = 8,
/** Match level nine */
Level9 = 9,
/** Match level ten. Most strict match level */
Level10 = 10
}
/**
* Enumerates the possible results of BlinkCard's document liveness checks.
*/
export declare const enum BlinkCardCheckResult {
/** Indicates that the check was not performed. */
NotPerformed = 0,
/** Indicates that the document passed the check successfully. */
Pass = 1,
/** Indicates that the document failed the check. */
Fail = 2
}
/**
* Define level of anonymization performed on recognizer result.

@@ -143,9 +138,9 @@ */

/** No anonymization is performed in this mode. */
None = 1,
None = 0,
/** Sensitive data in the document image is anonymized with black boxes covering selected sensitive data. Data returned in result fields is not changed. */
ImageOnly = 2,
ImageOnly = 1,
/** Document image is not changed. Data returned in result fields is redacted. */
ResultFieldsOnly = 3,
ResultFieldsOnly = 2,
/** Sensitive data in the image is anonymized with black boxes covering selected sensitive data. Data returned in result fields is redacted. */
FullResult = 4
FullResult = 3
}

@@ -181,2 +176,24 @@ /**

/**
* Represents the card side for liveness checks
*/
export declare class BlinkCardSide {
/** Retrieves the result of the check indicating the presence of a live hand. */
handPresenceCheck: BlinkCardCheckResult;
/** Retrieves the result of the check performed on the document using photocopy detection. */
photocopyCheck: BlinkCardCheckResult;
/** Retrieves the result of the check performed on the document using screen detection. */
screenCheck: BlinkCardCheckResult;
constructor(nativeCardSide: any);
}
/**
* Represents the result of liveness checks on both sides (front and back) of a card.
*/
export declare class DocumentLivenessCheckResult {
/** Returns the document liveness result of the first side. */
front?: BlinkCardSide;
/** Return the document liveness result of the back side. */
back?: BlinkCardSide;
constructor(nativeDocumentLivenessCheckResult: any);
}
/**
* Extension factors relative to corresponding dimension of the full image. For example,

@@ -199,9 +216,9 @@ * upFactor and downFactor define extensions relative to image height, e.g.

/** Result of the data matching algorithm for scanned parts/sides of the document. */
export declare const enum DataMatchResult {
export declare enum DataMatchState {
/** Data matching has not been performed. */
NotPerformed = 1,
NotPerformed = 0,
/** Data does not match. */
Failed = 2,
Failed = 1,
/** Data match. */
Success = 3
Success = 2
}

@@ -9,5 +9,17 @@ /**

this.year = nativeDate.year;
this.originalDateStringResult = nativeDate.originalDateStringResult;
this.isFilledByDomainKnowledge = nativeDate.isFilledByDomainKnowledge;
}
}
/**
* Represents a date result with additional properties.
*/
export class DateResult {
constructor(nativeDateResult) {
this.date = new Date(nativeDateResult.date);
this.originalDateStringResult = nativeDateResult.originalDateStringResult;
this.isFilledByDomainKnowledge = nativeDateResult.isFilledByDomainKnowledge;
}
}
/**
* Represents a point in image

@@ -37,5 +49,5 @@ */

constructor() {
this.mode = 1 /* None */;
this.prefixDigitsVisible = 0;
this.suffixDigitsVisible = 0;
this.mode = 0 /* None */;
this.prefixDigitsVisible = -1;
this.suffixDigitsVisible = -1;
}

@@ -49,9 +61,28 @@ }

this.cardNumberAnonymizationSettings = new CardNumberAnonymizationSettings();
this.cardNumberPrefixAnonymizationMode = 1 /* None */;
this.cvvAnonymizationMode = 1 /* None */;
this.ibanAnonymizationMode = 1 /* None */;
this.ownerAnonymizationMode = 1 /* None */;
this.cardNumberPrefixAnonymizationMode = 0 /* None */;
this.cvvAnonymizationMode = 0 /* None */;
this.ibanAnonymizationMode = 0 /* None */;
this.ownerAnonymizationMode = 0 /* None */;
}
}
/**
* Represents the card side for liveness checks
*/
export class BlinkCardSide {
constructor(nativeCardSide) {
this.handPresenceCheck = nativeCardSide.handPresenceCheck;
this.photocopyCheck = nativeCardSide.photocopyCheck;
this.screenCheck = nativeCardSide.screenCheck;
}
}
/**
* Represents the result of liveness checks on both sides (front and back) of a card.
*/
export class DocumentLivenessCheckResult {
constructor(nativeDocumentLivenessCheckResult) {
this.front = nativeDocumentLivenessCheckResult.front != undefined ? new BlinkCardSide(nativeDocumentLivenessCheckResult.front) : undefined;
this.back = nativeDocumentLivenessCheckResult.back != undefined ? new BlinkCardSide(nativeDocumentLivenessCheckResult.back) : undefined;
}
}
/**
* Extension factors relative to corresponding dimension of the full image. For example,

@@ -74,2 +105,12 @@ * upFactor and downFactor define extensions relative to image height, e.g.

}
/** Result of the data matching algorithm for scanned parts/sides of the document. */
export var DataMatchState;
(function (DataMatchState) {
/** Data matching has not been performed. */
DataMatchState[DataMatchState["NotPerformed"] = 0] = "NotPerformed";
/** Data does not match. */
DataMatchState[DataMatchState["Failed"] = 1] = "Failed";
/** Data match. */
DataMatchState[DataMatchState["Success"] = 2] = "Success";
})(DataMatchState || (DataMatchState = {}));
//# sourceMappingURL=types.js.map

@@ -36,3 +36,3 @@ var capacitorPlugin = (function (exports, core) {

let result = recognizerCollection.recognizerArray[i].createResultFromNative(results[i]);
if (result.resultState != 1 /* empty */) {
if (result.resultState != 0 /* empty */) {
resultsFromNative.push(result);

@@ -86,5 +86,17 @@ }

this.year = nativeDate.year;
this.originalDateStringResult = nativeDate.originalDateStringResult;
this.isFilledByDomainKnowledge = nativeDate.isFilledByDomainKnowledge;
}
}
/**
* Represents a date result with additional properties.
*/
class DateResult {
constructor(nativeDateResult) {
this.date = new Date(nativeDateResult.date);
this.originalDateStringResult = nativeDateResult.originalDateStringResult;
this.isFilledByDomainKnowledge = nativeDateResult.isFilledByDomainKnowledge;
}
}
/**
* Represents a point in image

@@ -114,5 +126,5 @@ */

constructor() {
this.mode = 1 /* None */;
this.prefixDigitsVisible = 0;
this.suffixDigitsVisible = 0;
this.mode = 0 /* None */;
this.prefixDigitsVisible = -1;
this.suffixDigitsVisible = -1;
}

@@ -126,9 +138,28 @@ }

this.cardNumberAnonymizationSettings = new CardNumberAnonymizationSettings();
this.cardNumberPrefixAnonymizationMode = 1 /* None */;
this.cvvAnonymizationMode = 1 /* None */;
this.ibanAnonymizationMode = 1 /* None */;
this.ownerAnonymizationMode = 1 /* None */;
this.cardNumberPrefixAnonymizationMode = 0 /* None */;
this.cvvAnonymizationMode = 0 /* None */;
this.ibanAnonymizationMode = 0 /* None */;
this.ownerAnonymizationMode = 0 /* None */;
}
}
/**
* Represents the card side for liveness checks
*/
class BlinkCardSide {
constructor(nativeCardSide) {
this.handPresenceCheck = nativeCardSide.handPresenceCheck;
this.photocopyCheck = nativeCardSide.photocopyCheck;
this.screenCheck = nativeCardSide.screenCheck;
}
}
/**
* Represents the result of liveness checks on both sides (front and back) of a card.
*/
class DocumentLivenessCheckResult {
constructor(nativeDocumentLivenessCheckResult) {
this.front = nativeDocumentLivenessCheckResult.front != undefined ? new BlinkCardSide(nativeDocumentLivenessCheckResult.front) : undefined;
this.back = nativeDocumentLivenessCheckResult.back != undefined ? new BlinkCardSide(nativeDocumentLivenessCheckResult.back) : undefined;
}
}
/**
* Extension factors relative to corresponding dimension of the full image. For example,

@@ -151,2 +182,12 @@ * upFactor and downFactor define extensions relative to image height, e.g.

}
/** Result of the data matching algorithm for scanned parts/sides of the document. */
exports.DataMatchState = void 0;
(function (DataMatchState) {
/** Data matching has not been performed. */
DataMatchState[DataMatchState["NotPerformed"] = 0] = "NotPerformed";
/** Data does not match. */
DataMatchState[DataMatchState["Failed"] = 1] = "Failed";
/** Data match. */
DataMatchState[DataMatchState["Success"] = 2] = "Success";
})(exports.DataMatchState || (exports.DataMatchState = {}));

@@ -174,2 +215,10 @@ /** Base class for all overlay settings objects */

this.showFlashlightWarning = true;
this.errorMoveCloser = null;
this.errorMoveFarther = null;
this.errorCardTooCloseToEdge = null;
this.showOnboardingInfo = true;
this.showIntroductionDialog = true;
this.onboardingButtonTooltipDelay = 8000;
this.language = null;
this.country = null;
}

@@ -227,2 +276,6 @@ }

/**
* Document liveness check (screen, photocopy, hand presence) which can pass or fail.
*/
this.documentLivenessCheck = nativeResult.documentLivenessCheck;
/**
* The payment card's expiry date.

@@ -232,4 +285,8 @@ */

/**
* Wheater the first scanned side is blurred.
* Whether the first scanned side is anonymized.
*/
this.firstSideAnonymized = nativeResult.firstSideAnonymized;
/**
* Whether the first scanned side is blurred.
*/
this.firstSideBlurred = nativeResult.firstSideBlurred;

@@ -262,4 +319,8 @@ /**

/**
* Wheater the second scanned side is blurred.
* Whether the second scanned side is anonymized.
*/
this.secondSideAnonymized = nativeResult.secondSideAnonymized;
/**
* Whether the second scanned side is blurred.
*/
this.secondSideBlurred = nativeResult.secondSideBlurred;

@@ -285,2 +346,8 @@ /**

/**
* Whether invalid card number is accepted.
*
*
*/
this.allowInvalidCardNumber = false;
/**
* Defines whether sensitive data should be redacted from the result.

@@ -330,131 +397,28 @@ *

/**
* Pading is a minimum distance from the edge of the frame and is defined as a percentage of the frame width. Default value is 0.0f and in that case
* padding edge and image edge are the same.
* Recommended value is 0.02f.
* This parameter is used to adjust heuristics that eliminate cases when the hand is present.
*
*
*/
this.paddingEdge = 0.0;
this.handDocumentOverlapThreshold = 0.05;
/**
* Sets whether full document image of ID card should be extracted.
* Hand scale is calculated as a ratio between area of hand mask and document mask.
*
*
*/
this.returnFullDocumentImage = false;
this.createResultFromNative = (nativeResult) => { return new BlinkCardRecognizerResult(nativeResult); };
}
}
/* tslint:disable:no-unused-variable */
/**
* Result object for LegacyBlinkCardEliteRecognizer.
*/
class LegacyBlinkCardEliteRecognizerResult extends RecognizerResult {
constructor(nativeResult) {
super(nativeResult.resultState);
this.handScaleThreshold = 0.15;
/**
* The payment card number.
*/
this.cardNumber = nativeResult.cardNumber;
/**
* Payment card's security code/value
*/
this.cvv = nativeResult.cvv;
/**
* Returns CDataMatchResultSuccess if data from scanned parts/sides of the document match,
* CDataMatchResultFailed otherwise. For example if date of expiry is scanned from the front and back side
* of the document and values do not match, this method will return CDataMatchResultFailed. Result will
* be CDataMatchResultSuccess only if scanned values for all fields that are compared are the same.
*/
this.documentDataMatch = nativeResult.documentDataMatch;
/**
* back side image of the document if enabled with returnFullDocumentImage property.
*/
this.fullDocumentBackImage = nativeResult.fullDocumentBackImage;
/**
* front side image of the document if enabled with returnFullDocumentImage property.
*/
this.fullDocumentFrontImage = nativeResult.fullDocumentFrontImage;
/**
* Payment card's inventory number.
*/
this.inventoryNumber = nativeResult.inventoryNumber;
/**
* Information about the payment card owner (name, company, etc.).
*/
this.owner = nativeResult.owner;
/**
* Returns true if recognizer has finished scanning first side and is now scanning back side,
* false if it's still scanning first side.
*/
this.scanningFirstSideDone = nativeResult.scanningFirstSideDone;
/**
* The payment card's last month of validity.
*/
this.validThru = nativeResult.validThru != null ? new Date(nativeResult.validThru) : null;
}
}
/**
* Recognizer used for scanning the front side of elite credit/debit cards.
*/
class LegacyBlinkCardEliteRecognizer extends Recognizer {
constructor() {
super('LegacyBlinkCardEliteRecognizer');
/**
* Should anonymize the card number area (redact image pixels) on the document image result
* Pading is a minimum distance from the edge of the frame and is defined as a percentage of the frame width. Default value is 0.0f and in that case
* padding edge and image edge are the same.
* Recommended value is 0.02f.
*
*
*/
this.anonymizeCardNumber = false;
this.paddingEdge = 0.0;
/**
* Should anonymize the CVV on the document image result
* Photocopy analysis match level - higher if stricter.
*
*
*/
this.anonymizeCvv = false;
this.photocopyAnalysisMatchLevel = 5 /* Level5 */;
/**
* Should anonymize the owner area (redact image pixels) on the document image result
*
*
*/
this.anonymizeOwner = false;
/**
* Defines if glare detection should be turned on/off.
*
*
*/
this.detectGlare = true;
/**
* Should extract the card's inventory number
*
*
*/
this.extractInventoryNumber = true;
/**
* Should extract the card owner information
*
*
*/
this.extractOwner = true;
/**
* Should extract the payment card's month of expiry
*
*
*/
this.extractValidThru = true;
/**
* Property for setting DPI for full document images
* Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception
*
*
*/
this.fullDocumentImageDpi = 250;
/**
* Image extension factors for full document image.
*
* @see CImageExtensionFactors
*
*/
this.fullDocumentImageExtensionFactors = new ImageExtensionFactors();
/**
* Sets whether full document image of ID card should be extracted.

@@ -465,150 +429,9 @@ *

this.returnFullDocumentImage = false;
this.createResultFromNative = (nativeResult) => { return new LegacyBlinkCardEliteRecognizerResult(nativeResult); };
}
}
/* tslint:disable:no-unused-variable */
/**
* Result object for LegacyBlinkCardRecognizer.
*/
class LegacyBlinkCardRecognizerResult extends RecognizerResult {
constructor(nativeResult) {
super(nativeResult.resultState);
/**
* The payment card number.
*/
this.cardNumber = nativeResult.cardNumber;
/**
* Payment card's security code/value
*/
this.cvv = nativeResult.cvv;
/**
* Returns CDataMatchResultSuccess if data from scanned parts/sides of the document match,
* CDataMatchResultFailed otherwise. For example if date of expiry is scanned from the front and back side
* of the document and values do not match, this method will return CDataMatchResultFailed. Result will
* be CDataMatchResultSuccess only if scanned values for all fields that are compared are the same.
*/
this.documentDataMatch = nativeResult.documentDataMatch;
/**
* back side image of the document if enabled with returnFullDocumentImage property.
*/
this.fullDocumentBackImage = nativeResult.fullDocumentBackImage;
/**
* front side image of the document if enabled with returnFullDocumentImage property.
*/
this.fullDocumentFrontImage = nativeResult.fullDocumentFrontImage;
/**
* Payment card's IBAN
*/
this.iban = nativeResult.iban;
/**
* Payment card's inventory number.
*/
this.inventoryNumber = nativeResult.inventoryNumber;
/**
* Payment card's issuing network
*/
this.issuer = nativeResult.issuer;
/**
* Information about the payment card owner (name, company, etc.).
*/
this.owner = nativeResult.owner;
/**
* Returns true if recognizer has finished scanning first side and is now scanning back side,
* false if it's still scanning first side.
*/
this.scanningFirstSideDone = nativeResult.scanningFirstSideDone;
/**
* The payment card's last month of validity.
*/
this.validThru = nativeResult.validThru != null ? new Date(nativeResult.validThru) : null;
}
}
/**
* Recognizer used for scanning the front side of credit/debit cards.
*/
class LegacyBlinkCardRecognizer extends Recognizer {
constructor() {
super('LegacyBlinkCardRecognizer');
/**
* Should anonymize the card number area (redact image pixels) on the document image result
* Screen analysis match level - higher if stricter.
*
*
*/
this.anonymizeCardNumber = false;
/**
* Should anonymize the CVV on the document image result
*
*
*/
this.anonymizeCvv = false;
/**
* Should anonymize the IBAN area (redact image pixels) on the document image result
*
*
*/
this.anonymizeIban = false;
/**
* Should anonymize the owner area (redact image pixels) on the document image result
*
*
*/
this.anonymizeOwner = false;
/**
* Defines if glare detection should be turned on/off.
*
*
*/
this.detectGlare = true;
/**
* Should extract CVV
*
*
*/
this.extractCvv = true;
/**
* Should extract the payment card's IBAN
*
*
*/
this.extractIban = false;
/**
* Should extract the card's inventory number
*
*
*/
this.extractInventoryNumber = true;
/**
* Should extract the card owner information
*
*
*/
this.extractOwner = false;
/**
* Should extract the payment card's month of expiry
*
*
*/
this.extractValidThru = true;
/**
* Property for setting DPI for full document images
* Valid ranges are [100,400]. Setting DPI out of valid ranges throws an exception
*
*
*/
this.fullDocumentImageDpi = 250;
/**
* Image extension factors for full document image.
*
* @see CImageExtensionFactors
*
*/
this.fullDocumentImageExtensionFactors = new ImageExtensionFactors();
/**
* Sets whether full document image of ID card should be extracted.
*
*
*/
this.returnFullDocumentImage = false;
this.createResultFromNative = (nativeResult) => { return new LegacyBlinkCardRecognizerResult(nativeResult); };
this.screenAnalysisMatchLevel = 5 /* Level5 */;
this.createResultFromNative = (nativeResult) => { return new BlinkCardRecognizerResult(nativeResult); };
}

@@ -622,9 +445,8 @@ }

exports.BlinkCardRecognizerResult = BlinkCardRecognizerResult;
exports.BlinkCardSide = BlinkCardSide;
exports.CardNumberAnonymizationSettings = CardNumberAnonymizationSettings;
exports.Date = Date;
exports.DateResult = DateResult;
exports.DocumentLivenessCheckResult = DocumentLivenessCheckResult;
exports.ImageExtensionFactors = ImageExtensionFactors;
exports.LegacyBlinkCardEliteRecognizer = LegacyBlinkCardEliteRecognizer;
exports.LegacyBlinkCardEliteRecognizerResult = LegacyBlinkCardEliteRecognizerResult;
exports.LegacyBlinkCardRecognizer = LegacyBlinkCardRecognizer;
exports.LegacyBlinkCardRecognizerResult = LegacyBlinkCardRecognizerResult;
exports.OverlaySettings = OverlaySettings;

@@ -631,0 +453,0 @@ exports.Point = Point;

{
"name": "@microblink/blinkcard-capacitor",
"version": "2.6.0",
"version": "2.9.0",
"description": "AI-driven credit card scanning for cross-platform apps built with Capacitor.",

@@ -20,8 +20,10 @@ "main": "dist/plugin.js",

"devDependencies": {
"@capacitor/android": "^3.2.0",
"@capacitor/core": "^3.2.0",
"@capacitor/ios": "^3.2.0",
"@capacitor/android": "^5.0.0",
"@capacitor/cli": "^5.0.0",
"@capacitor/core": "^5.0.0",
"@capacitor/ios": "^5.0.0",
"@ionic/prettier-config": "^1.0.0",
"@ionic/swiftlint-config": "^1.0.0",
"@rollup/plugin-node-resolve": "^8.1.0",
"@types/node": "^17.0.41",
"prettier": "^2.0.5",

@@ -35,3 +37,3 @@ "prettier-plugin-java": "^1.6.2",

"peerDependencies": {
"@capacitor/core": "^3.2.0"
"@capacitor/core": "^5.0.0"
},

@@ -38,0 +40,0 @@ "files": [

@@ -14,3 +14,3 @@ # BlinkCard SDK Capacitor plugin

BlinkCard plugin is developed with Capacitor version 3.2.0.
BlinkCard plugin is developed with Capacitor version 5.7.0.
For help with Capacitor, view official [documentation](https://capacitorjs.com/docs).

@@ -17,0 +17,0 @@

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

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

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc