@microblink/blinkcard-react-native
Advanced tools
Comparing version 2.6.0 to 2.9.0
@@ -116,4 +116,2 @@ 'use strict'; | ||
export * from './recognizers/successFrameGrabberRecognizer' | ||
export * from './recognizers/blinkCardRecognizer' | ||
export * from './recognizers/legacyBlinkCardEliteRecognizer' | ||
export * from './recognizers/legacyBlinkCardRecognizer' | ||
export * from './recognizers/blinkCardRecognizer' |
@@ -28,3 +28,51 @@ import { OverlaySettings } from '../overlaySettings' | ||
this.showFlashlightWarning = true; | ||
/** | ||
* String: Instructions for the user to move the document closer | ||
* | ||
* If null, default value will be used. | ||
*/ | ||
this.errorMoveCloser = null; | ||
/** | ||
* String: Instructions for the user to move the document farther | ||
* | ||
* If null, default value will be used. | ||
*/ | ||
this.errorMoveFarther = null; | ||
/** | ||
* String: Instructions for the user to move the document from the edge | ||
* | ||
* If null, default value will be used. | ||
*/ | ||
this.errorCardTooCloseToEdge = null; | ||
/** | ||
* Defines whether button for presenting onboarding screens will be present on screen | ||
* | ||
* Default: true | ||
*/ | ||
this.showOnboardingInfo = true; | ||
/** | ||
* Defines whether button for presenting onboarding screens will be present on screen | ||
* | ||
* Default: true | ||
*/ | ||
this.showIntroductionDialog = true; | ||
/** | ||
* Option to configure when the onboarding help tooltip will appear. | ||
* | ||
* Default: 8000 | ||
*/ | ||
this.onboardingButtonTooltipDelay = 8000; | ||
/** | ||
* 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" | ||
*/ | ||
this.language = null; | ||
/** | ||
* Used with language variable, it defines the country locale | ||
* | ||
* example: "US" to use "en_US" on Android and en-US on iOS | ||
*/ | ||
this.country = null; | ||
} | ||
} |
{ | ||
"name": "@microblink/blinkcard-react-native", | ||
"version": "2.6.0", | ||
"version": "2.9.0", | ||
"description": "AI-driven credit card scanning for cross-platform apps built with ReactNative.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -21,7 +21,7 @@ /** | ||
/** Parser result is empty */ | ||
empty : 1, | ||
empty : 0, | ||
/** Parser result contains some values, but is incomplete or it contains all values, but some are uncertain */ | ||
uncertain : 2, | ||
uncertain : 1, | ||
/** Parser result contains all required values */ | ||
valid : 3 | ||
valid : 2 | ||
} | ||
@@ -28,0 +28,0 @@ ); |
@@ -19,8 +19,8 @@ /** | ||
/** Recognizer result is empty */ | ||
empty : 1, | ||
empty : 0, | ||
/** Recognizer result contains some values, but is incomplete or it contains all values, but some are uncertain */ | ||
uncertain : 2, | ||
uncertain : 1, | ||
/** Recognizer result contains all required values */ | ||
valid : 3, | ||
stageValid: 4 | ||
valid : 2, | ||
stageValid: 3 | ||
} | ||
@@ -27,0 +27,0 @@ ); |
@@ -8,3 +8,2 @@ import { Recognizer, RecognizerResult } from '../recognizer' | ||
LegacyCardIssuer, | ||
Issuer, | ||
@@ -15,2 +14,4 @@ BlinkCardProcessingStatus, | ||
BlinkCardAnonymizationSettings, | ||
BlinkCardMatchLevel, | ||
BlinkCardCheckResult, | ||
ImageExtensionFactors, | ||
@@ -48,2 +49,7 @@ DataMatchResult, | ||
/** | ||
* Document liveness check (screen, photocopy, hand presence) which can pass or fail. | ||
*/ | ||
this.documentLivenessCheck = nativeResult.documentLivenessCheck; | ||
/** | ||
* The payment card's expiry date. | ||
@@ -54,4 +60,9 @@ */ | ||
/** | ||
* 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; | ||
@@ -91,4 +102,9 @@ | ||
/** | ||
* 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; | ||
@@ -119,2 +135,9 @@ | ||
/** | ||
* Whether invalid card number is accepted. | ||
* | ||
* | ||
*/ | ||
this.allowInvalidCardNumber = false; | ||
/** | ||
* Defines whether sensitive data should be redacted from the result. | ||
@@ -171,2 +194,16 @@ * | ||
/** | ||
* 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 | ||
@@ -181,2 +218,9 @@ * padding edge and image edge are the same. | ||
/** | ||
* Photocopy analysis match level - higher if stricter. | ||
* | ||
* | ||
*/ | ||
this.photocopyAnalysisMatchLevel = BlinkCardMatchLevel.Level5; | ||
/** | ||
* Sets whether full document image of ID card should be extracted. | ||
@@ -188,4 +232,11 @@ * | ||
/** | ||
* Screen analysis match level - higher if stricter. | ||
* | ||
* | ||
*/ | ||
this.screenAnalysisMatchLevel = BlinkCardMatchLevel.Level5; | ||
this.createResultFromNative = function (nativeResult) { return new BlinkCardRecognizerResult(nativeResult); } | ||
} | ||
} |
168
types.js
@@ -12,2 +12,6 @@ /** | ||
this.year = nativeDate.year; | ||
/** original date string */ | ||
this.originalDateStringResult = nativeDate.originalDateStringResult; | ||
/** isFilledByDomainKnowledge */ | ||
this.isFilledByDomainKnowledge = nativeDate.isFilledByDomainKnowledge; | ||
} | ||
@@ -49,64 +53,2 @@ } | ||
/** | ||
* Supported Legacy BlinkCard card issuer values. | ||
*/ | ||
export const LegacyCardIssuer = Object.freeze( | ||
{ | ||
/** 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. | ||
@@ -117,27 +59,27 @@ */ | ||
/* Unidentified Card */ | ||
Other: 1, | ||
Other: 0, | ||
/* The American Express Company Card */ | ||
AmericanExpress: 2, | ||
AmericanExpress: 1, | ||
/* China UnionPay Card */ | ||
ChinaUnionPay: 3, | ||
ChinaUnionPay: 2, | ||
/* Diners Club International Card */ | ||
Diners: 4, | ||
Diners: 3, | ||
/* Discover Card */ | ||
DiscoverCard: 5, | ||
DiscoverCard: 4, | ||
/* Elo card association */ | ||
Elo: 6, | ||
Elo: 5, | ||
/* The JCB Company Card */ | ||
Jcb: 7, | ||
Jcb: 6, | ||
/* Maestro Debit Card */ | ||
Maestro: 8, | ||
Maestro: 7, | ||
/* Mastercard Inc. Card */ | ||
Mastercard: 9, | ||
Mastercard: 8, | ||
/* RuPay */ | ||
RuPay: 10, | ||
RuPay: 9, | ||
/* Interswitch Verve Card */ | ||
Verve: 11, | ||
Verve: 10, | ||
/* Visa Inc. Card */ | ||
Visa: 12, | ||
Visa: 11, | ||
/* VPay */ | ||
VPay: 13 | ||
VPay: 12 | ||
} | ||
@@ -152,17 +94,17 @@ ); | ||
/** 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 | ||
} | ||
@@ -172,2 +114,46 @@ ); | ||
/** | ||
*Enumerates the possible match levels indicating the strictness of a check result. Higher is stricter. | ||
*/ | ||
export const BlinkCardMatchLevel = Object.freeze( | ||
{ | ||
/** 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 const BlinkCardCheckResult = Object.freeze( | ||
{ | ||
/** 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, | ||
} | ||
); | ||
/** | ||
* Determines which data is anonymized in the returned recognizer result. | ||
@@ -178,12 +164,12 @@ */ | ||
/** 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 | ||
} | ||
@@ -243,11 +229,11 @@ ); | ||
/** Result of the data matching algorithm for scanned parts/sides of the document. */ | ||
export const DataMatchResult = Object.freeze( | ||
export const DataMatchState = Object.freeze( | ||
{ | ||
/** Data matching has not been performed. */ | ||
NotPerformed : 1, | ||
NotPerformed : 0, | ||
/** Data does not match. */ | ||
Failed : 2, | ||
Failed : 1, | ||
/** Data match. */ | ||
Success : 3 | ||
Success : 2 | ||
} | ||
); |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
144552
56
712
1