@regulaforensics/ionic-native-document-reader 5.6.0 → 6.1.1
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/README.md +1 -1
- package/example/package.json +3 -3
- package/example/src/app/home/home.page.ts +22 -3
- package/index.d.ts +284 -5
- package/index.js +892 -592
- package/ngx/index.d.ts +284 -5
- package/ngx/index.js +892 -592
- package/ngx/index.metadata.json +1 -1
- package/package.json +1 -1
- package/reactExample/README.txt +13 -0
- package/reactExample/android/app/build/.npmkeep +0 -0
- package/reactExample/android/app/build.gradle +51 -0
- package/reactExample/android/app/proguard-rules.pro +21 -0
- package/reactExample/android/app/src/androidTest/java/com/getcapacitor/myapp/ExampleInstrumentedTest.java +26 -0
- package/reactExample/android/app/src/main/AndroidManifest.xml +42 -0
- package/reactExample/android/app/src/main/java/com/regula/documentreader/MainActivity.java +5 -0
- package/reactExample/android/app/src/main/res/drawable/ic_launcher_background.xml +170 -0
- package/reactExample/android/app/src/main/res/drawable/splash.png +0 -0
- package/reactExample/android/app/src/main/res/drawable-land-hdpi/splash.png +0 -0
- package/reactExample/android/app/src/main/res/drawable-land-mdpi/splash.png +0 -0
- package/reactExample/android/app/src/main/res/drawable-land-xhdpi/splash.png +0 -0
- package/reactExample/android/app/src/main/res/drawable-land-xxhdpi/splash.png +0 -0
- package/reactExample/android/app/src/main/res/drawable-land-xxxhdpi/splash.png +0 -0
- package/reactExample/android/app/src/main/res/drawable-port-hdpi/splash.png +0 -0
- package/reactExample/android/app/src/main/res/drawable-port-mdpi/splash.png +0 -0
- package/reactExample/android/app/src/main/res/drawable-port-xhdpi/splash.png +0 -0
- package/reactExample/android/app/src/main/res/drawable-port-xxhdpi/splash.png +0 -0
- package/reactExample/android/app/src/main/res/drawable-port-xxxhdpi/splash.png +0 -0
- package/reactExample/android/app/src/main/res/drawable-v24/ic_launcher_foreground.xml +34 -0
- package/reactExample/android/app/src/main/res/layout/activity_main.xml +12 -0
- package/reactExample/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml +5 -0
- package/reactExample/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml +5 -0
- package/reactExample/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
- package/reactExample/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png +0 -0
- package/reactExample/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png +0 -0
- package/reactExample/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
- package/reactExample/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png +0 -0
- package/reactExample/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png +0 -0
- package/reactExample/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
- package/reactExample/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png +0 -0
- package/reactExample/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png +0 -0
- package/reactExample/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
- package/reactExample/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png +0 -0
- package/reactExample/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png +0 -0
- package/reactExample/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
- package/reactExample/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png +0 -0
- package/reactExample/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png +0 -0
- package/reactExample/android/app/src/main/res/values/ic_launcher_background.xml +4 -0
- package/reactExample/android/app/src/main/res/values/strings.xml +7 -0
- package/reactExample/android/app/src/main/res/values/styles.xml +22 -0
- package/reactExample/android/app/src/main/res/xml/file_paths.xml +5 -0
- package/reactExample/android/app/src/test/java/com/getcapacitor/myapp/ExampleUnitTest.java +18 -0
- package/reactExample/android/build.gradle +29 -0
- package/reactExample/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/reactExample/android/gradle/wrapper/gradle-wrapper.properties +5 -0
- package/reactExample/android/gradle.properties +24 -0
- package/reactExample/android/gradlew +185 -0
- package/reactExample/android/gradlew.bat +89 -0
- package/reactExample/android/settings.gradle +5 -0
- package/reactExample/android/variables.gradle +14 -0
- package/reactExample/capacitor.config.ts +10 -0
- package/reactExample/ionic.config.json +7 -0
- package/reactExample/ios/App/App/App.entitlements +11 -0
- package/reactExample/ios/App/App/AppDelegate.swift +60 -0
- package/reactExample/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-20x20@1x.png +0 -0
- package/reactExample/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-20x20@2x-1.png +0 -0
- package/reactExample/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-20x20@2x.png +0 -0
- package/reactExample/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-20x20@3x.png +0 -0
- package/reactExample/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-29x29@1x.png +0 -0
- package/reactExample/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-29x29@2x-1.png +0 -0
- package/reactExample/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-29x29@2x.png +0 -0
- package/reactExample/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-29x29@3x.png +0 -0
- package/reactExample/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-40x40@1x.png +0 -0
- package/reactExample/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-40x40@2x-1.png +0 -0
- package/reactExample/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-40x40@2x.png +0 -0
- package/reactExample/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-40x40@3x.png +0 -0
- package/reactExample/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-512@2x.png +0 -0
- package/reactExample/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-60x60@2x.png +0 -0
- package/reactExample/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-60x60@3x.png +0 -0
- package/reactExample/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-76x76@1x.png +0 -0
- package/reactExample/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-76x76@2x.png +0 -0
- package/reactExample/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-83.5x83.5@2x.png +0 -0
- package/reactExample/ios/App/App/Assets.xcassets/AppIcon.appiconset/Contents.json +116 -0
- package/reactExample/ios/App/App/Assets.xcassets/Contents.json +6 -0
- package/reactExample/ios/App/App/Assets.xcassets/Splash.imageset/Contents.json +23 -0
- package/reactExample/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732-1.png +0 -0
- package/reactExample/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732-2.png +0 -0
- package/reactExample/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732.png +0 -0
- package/reactExample/ios/App/App/Base.lproj/LaunchScreen.storyboard +32 -0
- package/reactExample/ios/App/App/Base.lproj/Main.storyboard +19 -0
- package/reactExample/ios/App/App/Info.plist +70 -0
- package/reactExample/ios/App/App/capacitor.config.json +6 -0
- package/reactExample/ios/App/App/config.xml +19 -0
- package/reactExample/ios/App/App.xcodeproj/project.pbxproj +426 -0
- package/reactExample/ios/App/App.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
- package/reactExample/ios/App/App.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
- package/reactExample/ios/App/App.xcworkspace/contents.xcworkspacedata +10 -0
- package/reactExample/ios/App/App.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
- package/reactExample/ios/App/Podfile +23 -0
- package/reactExample/package.json +84 -0
- package/reactExample/public/assets/icon/favicon.png +0 -0
- package/reactExample/public/assets/icon/icon.png +0 -0
- package/reactExample/public/assets/img/id.png +0 -0
- package/reactExample/public/assets/img/portrait.png +0 -0
- package/reactExample/public/assets/shapes.svg +1 -0
- package/reactExample/public/index.html +114 -0
- package/reactExample/public/manifest.json +21 -0
- package/reactExample/src/App.test.tsx +8 -0
- package/reactExample/src/App.tsx +42 -0
- package/reactExample/src/assets/img/id.png +0 -0
- package/reactExample/src/assets/img/portrait.png +0 -0
- package/reactExample/src/index.tsx +22 -0
- package/reactExample/src/pages/Home.tsx +328 -0
- package/reactExample/src/react-app-env.d.ts +1 -0
- package/reactExample/src/reportWebVitals.ts +15 -0
- package/reactExample/src/service-worker.ts +80 -0
- package/reactExample/src/serviceWorkerRegistration.ts +142 -0
- package/reactExample/src/setupTests.ts +14 -0
- package/reactExample/src/theme/variables.css +236 -0
- package/reactExample/tsconfig.json +26 -0
package/README.md
CHANGED
|
@@ -41,7 +41,7 @@ If you have issues with license verification when running the application, pleas
|
|
|
41
41
|
6. You placed the `license` into the correct folder as described [here](#how-to-build-demo-application).
|
|
42
42
|
|
|
43
43
|
## Documentation
|
|
44
|
-
You can find documentation on API [here](https://docs.regulaforensics.com/ionic).
|
|
44
|
+
You can find documentation on API [here](https://docs.regulaforensics.com/develop/doc-reader-sdk/mobile/ionic).
|
|
45
45
|
|
|
46
46
|
## Additional information
|
|
47
47
|
If you have any technical questions, feel free to [contact](mailto:dev.support@regulaforensics.com) us or create issue [here](https://github.com/regulaforensics/DocumentReader-Ionic-Plugin/issues).
|
package/example/package.json
CHANGED
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
"cordova-ios": "^6.1.1",
|
|
31
31
|
"cordova-plugin-add-swift-support": "^2.0.2",
|
|
32
32
|
"cordova-plugin-android-permissions": "^1.1.0",
|
|
33
|
-
"@regulaforensics/cordova-plugin-document-reader-api": "^
|
|
34
|
-
"@regulaforensics/cordova-plugin-document-reader-core-fullrfid": "^
|
|
35
|
-
"@regulaforensics/ionic-native-document-reader": "^
|
|
33
|
+
"@regulaforensics/cordova-plugin-document-reader-api": "^6.1.1",
|
|
34
|
+
"@regulaforensics/cordova-plugin-document-reader-core-fullrfid": "^6.1.0",
|
|
35
|
+
"@regulaforensics/ionic-native-document-reader": "^6.1.1",
|
|
36
36
|
"cordova-plugin-file": "^6.0.2",
|
|
37
37
|
"cordova-plugin-telerik-imagepicker": "^2.3.5",
|
|
38
38
|
"core-js": "^3.6.5",
|
|
@@ -124,7 +124,7 @@ export class HomePage {
|
|
|
124
124
|
if (isReadingRfid && completion.action === Enum.DocReaderAction.NOTIFICATION)
|
|
125
125
|
updateRfidUI(completion.results.documentReaderNotification)
|
|
126
126
|
if (completion.action === Enum.DocReaderAction.COMPLETE)
|
|
127
|
-
if (isReadingRfid){
|
|
127
|
+
if (isReadingRfid) {
|
|
128
128
|
if (completion.results.rfidResult !== 1)
|
|
129
129
|
restartRfidUI()
|
|
130
130
|
else {
|
|
@@ -179,8 +179,26 @@ export class HomePage {
|
|
|
179
179
|
function usualRFID() {
|
|
180
180
|
doRfid = false
|
|
181
181
|
app.rfidCheckbox["el"].checked = false
|
|
182
|
-
|
|
183
|
-
|
|
182
|
+
var notification = "rfidNotificationCompletionEvent"
|
|
183
|
+
var paCert = "paCertificateCompletionEvent"
|
|
184
|
+
var taCert = "taCertificateCompletionEvent"
|
|
185
|
+
var taSig = "taSignatureCompletionEvent"
|
|
186
|
+
DocumentReader.startRFIDReader().subscribe(m => {
|
|
187
|
+
if (m.substring(0, notification.length) === notification) {
|
|
188
|
+
m = m.substring(notification.length, m.length)
|
|
189
|
+
console.log(notification + ": " + m)
|
|
190
|
+
} else if (m.substring(0, paCert.length) === paCert) {
|
|
191
|
+
m = m.substring(paCert.length, m.length)
|
|
192
|
+
console.log(paCert + ": " + m)
|
|
193
|
+
} else if (m.substring(0, taCert.length) === taCert) {
|
|
194
|
+
m = m.substring(taCert.length, m.length)
|
|
195
|
+
console.log(taCert + ": " + m)
|
|
196
|
+
} else if (m.substring(0, taSig.length) === taSig) {
|
|
197
|
+
m = m.substring(taSig.length, m.length)
|
|
198
|
+
console.log(taSig + ": " + m)
|
|
199
|
+
} else
|
|
200
|
+
handleCompletion(DocumentReaderCompletion.fromJson(JSON.parse(m)))
|
|
201
|
+
})
|
|
184
202
|
}
|
|
185
203
|
|
|
186
204
|
function onInitialized() {
|
|
@@ -208,6 +226,7 @@ export class HomePage {
|
|
|
208
226
|
DocumentReader.getAvailableScenarios().then(sc =>
|
|
209
227
|
DocumentReader.isRFIDAvailableForUse().then(canRfid =>
|
|
210
228
|
postInitialize(JSON.parse(sc), canRfid)))
|
|
229
|
+
DocumentReader.setRfidDelegate(Enum.RFIDDelegate.NO_PA)
|
|
211
230
|
// addCertificates()
|
|
212
231
|
}
|
|
213
232
|
|
package/index.d.ts
CHANGED
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import { IonicNativePlugin } from '@ionic-native/core';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
export declare class DocumentReaderScenario {
|
|
4
|
-
uvTorch?: boolean;
|
|
5
|
-
seriesProcessMode?: boolean;
|
|
6
4
|
name?: string;
|
|
7
5
|
caption?: string;
|
|
8
6
|
description?: string;
|
|
9
7
|
static fromJson(jsonObject?: any): DocumentReaderScenario;
|
|
10
8
|
}
|
|
11
|
-
export declare class
|
|
9
|
+
export declare class CoreDetailedScenario {
|
|
12
10
|
uvTorch?: boolean;
|
|
13
11
|
frameOrientation?: number;
|
|
14
12
|
faceExt?: boolean;
|
|
@@ -22,7 +20,7 @@ export declare class DocumentReaderScenarioFull {
|
|
|
22
20
|
caption?: string;
|
|
23
21
|
description?: string;
|
|
24
22
|
manualCrop?: boolean;
|
|
25
|
-
static fromJson(jsonObject?: any):
|
|
23
|
+
static fromJson(jsonObject?: any): CoreDetailedScenario;
|
|
26
24
|
}
|
|
27
25
|
export declare class FaceMetaData {
|
|
28
26
|
ID?: number;
|
|
@@ -346,9 +344,22 @@ export declare class DocumentReaderAuthenticityElement {
|
|
|
346
344
|
export declare class DocumentReaderCompletion {
|
|
347
345
|
action?: number;
|
|
348
346
|
results?: DocumentReaderResults;
|
|
349
|
-
error?:
|
|
347
|
+
error?: DocumentReaderException;
|
|
350
348
|
static fromJson(jsonObject?: any): DocumentReaderCompletion;
|
|
351
349
|
}
|
|
350
|
+
export declare class RfidNotificationCompletion {
|
|
351
|
+
notification?: number;
|
|
352
|
+
value?: number;
|
|
353
|
+
static fromJson(jsonObject?: any): RfidNotificationCompletion;
|
|
354
|
+
}
|
|
355
|
+
export declare class DocumentReaderException {
|
|
356
|
+
errorCode?: number;
|
|
357
|
+
localizedMessage?: string;
|
|
358
|
+
message?: string;
|
|
359
|
+
string?: string;
|
|
360
|
+
stackTrace?: StackTraceElement[];
|
|
361
|
+
static fromJson(jsonObject?: any): DocumentReaderException;
|
|
362
|
+
}
|
|
352
363
|
export declare class Throwable {
|
|
353
364
|
localizedMessage?: string;
|
|
354
365
|
message?: string;
|
|
@@ -377,6 +388,76 @@ export declare class ImageInputParam {
|
|
|
377
388
|
type?: number;
|
|
378
389
|
static fromJson(jsonObject?: any): ImageInputParam;
|
|
379
390
|
}
|
|
391
|
+
export declare class PAResourcesIssuer {
|
|
392
|
+
data?: any[];
|
|
393
|
+
friendlyName?: string;
|
|
394
|
+
attributes?: PAAttribute[];
|
|
395
|
+
static fromJson(jsonObject?: any): PAResourcesIssuer;
|
|
396
|
+
}
|
|
397
|
+
export declare class PAAttribute {
|
|
398
|
+
type?: string;
|
|
399
|
+
value?: string;
|
|
400
|
+
static fromJson(jsonObject?: any): PAAttribute;
|
|
401
|
+
}
|
|
402
|
+
export declare class TAChallenge {
|
|
403
|
+
data?: any[];
|
|
404
|
+
auxPCD?: string;
|
|
405
|
+
challengePICC?: string;
|
|
406
|
+
hashPK?: string;
|
|
407
|
+
idPICC?: string;
|
|
408
|
+
static fromJson(jsonObject?: any): TAChallenge;
|
|
409
|
+
}
|
|
410
|
+
export declare class DocumentReaderResultsStatus {
|
|
411
|
+
overallStatus?: number;
|
|
412
|
+
optical?: number;
|
|
413
|
+
detailsOptical?: DetailsOptical;
|
|
414
|
+
rfid?: number;
|
|
415
|
+
detailsRFID?: DetailsRFID;
|
|
416
|
+
portrait?: number;
|
|
417
|
+
stopList?: number;
|
|
418
|
+
static fromJson(jsonObject?: any): DocumentReaderResultsStatus;
|
|
419
|
+
}
|
|
420
|
+
export declare class DetailsOptical {
|
|
421
|
+
overallStatus?: number;
|
|
422
|
+
mrz?: number;
|
|
423
|
+
text?: number;
|
|
424
|
+
docType?: number;
|
|
425
|
+
security?: number;
|
|
426
|
+
imageQA?: number;
|
|
427
|
+
expiry?: number;
|
|
428
|
+
vds?: number;
|
|
429
|
+
pagesCount?: number;
|
|
430
|
+
static fromJson(jsonObject?: any): DetailsOptical;
|
|
431
|
+
}
|
|
432
|
+
export declare class DetailsRFID {
|
|
433
|
+
pa?: number;
|
|
434
|
+
ca?: number;
|
|
435
|
+
aa?: number;
|
|
436
|
+
ta?: number;
|
|
437
|
+
bac?: number;
|
|
438
|
+
pace?: number;
|
|
439
|
+
overallStatus?: number;
|
|
440
|
+
static fromJson(jsonObject?: any): DetailsRFID;
|
|
441
|
+
}
|
|
442
|
+
export declare class VDSNCData {
|
|
443
|
+
type?: string;
|
|
444
|
+
version?: number;
|
|
445
|
+
issuingCountry?: string;
|
|
446
|
+
message?: any;
|
|
447
|
+
signatureAlgorithm?: string;
|
|
448
|
+
signature?: BytesData;
|
|
449
|
+
certificate?: BytesData;
|
|
450
|
+
certificateChain?: CertificateChain[];
|
|
451
|
+
notifications?: number[];
|
|
452
|
+
static fromJson(jsonObject?: any): VDSNCData;
|
|
453
|
+
}
|
|
454
|
+
export declare class BytesData {
|
|
455
|
+
data?: string;
|
|
456
|
+
length?: number;
|
|
457
|
+
status?: number;
|
|
458
|
+
type?: number;
|
|
459
|
+
static fromJson(jsonObject?: any): BytesData;
|
|
460
|
+
}
|
|
380
461
|
export declare class DocumentReaderResults {
|
|
381
462
|
chipPage?: number;
|
|
382
463
|
overallResult?: number;
|
|
@@ -398,6 +479,8 @@ export declare class DocumentReaderResults {
|
|
|
398
479
|
authenticityResult?: DocumentReaderAuthenticityResult;
|
|
399
480
|
barcodeResult?: DocumentReaderBarcodeResult;
|
|
400
481
|
documentType?: DocumentReaderDocumentType[];
|
|
482
|
+
status?: DocumentReaderResultsStatus;
|
|
483
|
+
vdsncData?: VDSNCData;
|
|
401
484
|
getTextFieldValueByType?({ fieldType, lcid, source, original }: {
|
|
402
485
|
fieldType: number;
|
|
403
486
|
lcid?: number;
|
|
@@ -745,6 +828,24 @@ export declare const DocReaderOrientation: {
|
|
|
745
828
|
LANDSCAPE_LEFT: number;
|
|
746
829
|
LANDSCAPE_RIGHT: number;
|
|
747
830
|
};
|
|
831
|
+
export declare const DocumentReaderExceptionEnum: {
|
|
832
|
+
NATIVE_JAVA_EXCEPTION: number;
|
|
833
|
+
DOCUMENT_READER_STATE_EXCEPTION: number;
|
|
834
|
+
DOCUMENT_READER_WRONG_INPUT: number;
|
|
835
|
+
INITIALIZATION_FAILED: number;
|
|
836
|
+
DOCUMENT_READER_BLE_EXCEPTION: number;
|
|
837
|
+
DB_DOWNLOAD_ERROR: number;
|
|
838
|
+
LICENSE_ABSENT_OR_CORRUPTED: number;
|
|
839
|
+
LICENSE_INVALID_DATE: number;
|
|
840
|
+
LICENSE_INVALID_VERSION: number;
|
|
841
|
+
LICENSE_INVALID_DEVICE_ID: number;
|
|
842
|
+
LICENSE_INVALID_SYSTEM_OR_APP_ID: number;
|
|
843
|
+
LICENSE_NO_CAPABILITIES: number;
|
|
844
|
+
LICENSE_NO_AUTHENTICITY: number;
|
|
845
|
+
LICENSE_NO_DATABASE: number;
|
|
846
|
+
LICENSE_DATABASE_INCORRECT: number;
|
|
847
|
+
FEATURE_BLUETOOTH_LE_NOT_SUPPORTED: number;
|
|
848
|
+
};
|
|
748
849
|
export declare const eCheckDiagnose: {
|
|
749
850
|
UNKNOWN: number;
|
|
750
851
|
PASS: number;
|
|
@@ -930,6 +1031,10 @@ export declare const eRFID_CertificateType: {
|
|
|
930
1031
|
CT_MLS: number;
|
|
931
1032
|
CT_DEV_LS: number;
|
|
932
1033
|
CT_DEF_LS: number;
|
|
1034
|
+
CT_BLS: number;
|
|
1035
|
+
CT_LDS2: number;
|
|
1036
|
+
CT_BCS: number;
|
|
1037
|
+
CT_BCSNC: number;
|
|
933
1038
|
};
|
|
934
1039
|
export declare const eRFID_DataFile_Type: {
|
|
935
1040
|
DFT_UNSPECIFIED: number;
|
|
@@ -1012,6 +1117,10 @@ export declare const eRFID_DataFile_Type: {
|
|
|
1012
1117
|
DFT_SESSION: number;
|
|
1013
1118
|
DFT_LOGDATA: number;
|
|
1014
1119
|
DFT_CHIP_PROPERTIES: number;
|
|
1120
|
+
DFT_SAM_DATA: number;
|
|
1121
|
+
DFT_SAM_DATA_MAX: number;
|
|
1122
|
+
DFT_VDS: number;
|
|
1123
|
+
DFT_VDSNC: number;
|
|
1015
1124
|
DFT_USERDEFINED: number;
|
|
1016
1125
|
getTranslation(value: number): string;
|
|
1017
1126
|
};
|
|
@@ -1072,6 +1181,7 @@ export declare const eRFID_NotificationAndErrorCodes: {
|
|
|
1072
1181
|
RFID_ERROR_INVALID_PARAMETER: number;
|
|
1073
1182
|
RFID_ERROR_NOT_INITIALIZED: number;
|
|
1074
1183
|
RFID_Error_NotEnoughMemory: number;
|
|
1184
|
+
RFID_ERROR_NOT_ENOUGH_DATA: number;
|
|
1075
1185
|
RFID_ERROR_INVALID_DIRECTORY: number;
|
|
1076
1186
|
RFID_ERROR_UNKNOWN_COMMAND: number;
|
|
1077
1187
|
RFID_ERROR_FILE_IO_ERROR: number;
|
|
@@ -1150,6 +1260,22 @@ export declare const eRFID_NotificationAndErrorCodes: {
|
|
|
1150
1260
|
RFID_LAYER6_EXT_AUTH_FAILURE: number;
|
|
1151
1261
|
RFID_LAYER6_GENERAL_AUTH_FAILURE: number;
|
|
1152
1262
|
RFID_ERROR_FAILED: number;
|
|
1263
|
+
RFID_ERROR_CODES_LAYER_34_NO_ERROR: number;
|
|
1264
|
+
RFID_ERROR_CODES_LAYER_34_TIMEOUT: number;
|
|
1265
|
+
RFID_ERROR_CODES_LAYER_34_COLLISION: number;
|
|
1266
|
+
RFID_ERROR_CODES_LAYER_34_CRC: number;
|
|
1267
|
+
RFID_ERROR_CODES_LAYER_34_DATA_INTEGRITY: number;
|
|
1268
|
+
RFID_ERROR_CODES_LAYER_34_DATA_LENGTH: number;
|
|
1269
|
+
RFID_ERROR_CODES_LAYER_34_RFU: number;
|
|
1270
|
+
RFID_ERROR_CODES_LAYER_34_COLLISION_TOO_MANY: number;
|
|
1271
|
+
RFID_ERROR_CODES_LAYER_34_PROTOCOL_B: number;
|
|
1272
|
+
RFID_ERROR_CODES_LAYER_34_DATA_CONTENTS: number;
|
|
1273
|
+
RFID_ERROR_CODES_LAYER_34_PROTOCOL: number;
|
|
1274
|
+
RFID_ERROR_CODES_LAYER_34_GLOBAL_TIMEOUT: number;
|
|
1275
|
+
RFID_ERROR_CODES_LAYER_34_MIFARE_AUTH: number;
|
|
1276
|
+
RFID_ERROR_CODES_LAYER_34_SAM_ERROR: number;
|
|
1277
|
+
RFID_ERROR_CODES_LAYER_34_SAM_COLLISION: number;
|
|
1278
|
+
RFID_ERROR_CODES_LAYER_34_SAM_ACKNOWLEDGE: number;
|
|
1153
1279
|
getTranslation(value: number): string;
|
|
1154
1280
|
};
|
|
1155
1281
|
export declare const eRFID_Password_Type: {
|
|
@@ -1229,6 +1355,8 @@ export declare const eRPRM_ResultType: {
|
|
|
1229
1355
|
RPRM_RESULT_TYPE_DATABASE_CHECK: number;
|
|
1230
1356
|
RPRM_RESULT_TYPE_FINGERPRINT_TEMPLATE_ISO: number;
|
|
1231
1357
|
RPRM_RESULT_TYPE_INPUT_IMAGE_QUALITY: number;
|
|
1358
|
+
RPRM_RESULT_TYPE_IMAGES: number;
|
|
1359
|
+
RPRM_RESULT_TYPE_HOLO_PARAMS: number;
|
|
1232
1360
|
RPRM_RESULT_TYPE_DOCUMENT_POSITION: number;
|
|
1233
1361
|
RPRM_RESULT_TYPE_CUSTOM: number;
|
|
1234
1362
|
RFID_RESULT_TYPE_RFID_RAW_DATA: number;
|
|
@@ -1238,6 +1366,7 @@ export declare const eRPRM_ResultType: {
|
|
|
1238
1366
|
RFID_RESULT_TYPE_RFID_ORIGINAL_GRAPHICS: number;
|
|
1239
1367
|
RPRM_RESULT_TYPE_BARCODE_POSITION: number;
|
|
1240
1368
|
RPRM_RESULT_TYPE_MRZ_POSITION: number;
|
|
1369
|
+
RPRM_RESULT_TYPE_STATUS: number;
|
|
1241
1370
|
};
|
|
1242
1371
|
export declare const eRPRM_SecurityFeatureType: {
|
|
1243
1372
|
NONE: number;
|
|
@@ -1868,6 +1997,15 @@ export declare const eVisualFieldType: {
|
|
|
1868
1997
|
FT_DLCLASSCODE_D3_FROM: number;
|
|
1869
1998
|
FT_DLCLASSCODE_D3_TO: number;
|
|
1870
1999
|
FT_DLCLASSCODE_D3_NOTES: number;
|
|
2000
|
+
FT_ALT_DATE_OF_EXPIRY: number;
|
|
2001
|
+
FT_DLCLASSCODE_CD_FROM: number;
|
|
2002
|
+
FT_DLCLASSCODE_CD_TO: number;
|
|
2003
|
+
FT_DLCLASSCODE_CD_NOTES: number;
|
|
2004
|
+
FT_PAYMENT_PERIOD_TO: number;
|
|
2005
|
+
FT_PAYMENT_PERIOD_FROM: number;
|
|
2006
|
+
FT_ISSUER_IDENTIFICATION_NUMBER: number;
|
|
2007
|
+
FT_VACCINATION_CERTIFICATE_IDENTIFIER: number;
|
|
2008
|
+
FT_FIRST_NAME: number;
|
|
1871
2009
|
getTranslation(value: number): string;
|
|
1872
2010
|
};
|
|
1873
2011
|
export declare const FontStyle: {
|
|
@@ -1880,6 +2018,11 @@ export declare const FrameShapeType: {
|
|
|
1880
2018
|
LINE: number;
|
|
1881
2019
|
CORNER: number;
|
|
1882
2020
|
};
|
|
2021
|
+
export declare const IRfidNotificationCompletion: {
|
|
2022
|
+
RFID_EVENT_CHIP_DETECTED: number;
|
|
2023
|
+
RFID_EVENT_READING_ERROR: number;
|
|
2024
|
+
RFID_EXTRA_ERROR_CODE: string;
|
|
2025
|
+
};
|
|
1883
2026
|
export declare const LCID: {
|
|
1884
2027
|
LATIN: number;
|
|
1885
2028
|
AFRIKAANS: number;
|
|
@@ -2040,6 +2183,11 @@ export declare const ProcessingFinishedStatus: {
|
|
|
2040
2183
|
READY: number;
|
|
2041
2184
|
TIMEOUT: number;
|
|
2042
2185
|
};
|
|
2186
|
+
export declare const RFIDDelegate: {
|
|
2187
|
+
NULL: number;
|
|
2188
|
+
NO_PA: number;
|
|
2189
|
+
FULL: number;
|
|
2190
|
+
};
|
|
2043
2191
|
export declare const RGLMeasureSystem: {
|
|
2044
2192
|
METRIC: number;
|
|
2045
2193
|
IMPERIAL: number;
|
|
@@ -2440,6 +2588,24 @@ export declare const Enum: {
|
|
|
2440
2588
|
LANDSCAPE_LEFT: number;
|
|
2441
2589
|
LANDSCAPE_RIGHT: number;
|
|
2442
2590
|
};
|
|
2591
|
+
DocumentReaderExceptionEnum: {
|
|
2592
|
+
NATIVE_JAVA_EXCEPTION: number;
|
|
2593
|
+
DOCUMENT_READER_STATE_EXCEPTION: number;
|
|
2594
|
+
DOCUMENT_READER_WRONG_INPUT: number;
|
|
2595
|
+
INITIALIZATION_FAILED: number;
|
|
2596
|
+
DOCUMENT_READER_BLE_EXCEPTION: number;
|
|
2597
|
+
DB_DOWNLOAD_ERROR: number;
|
|
2598
|
+
LICENSE_ABSENT_OR_CORRUPTED: number;
|
|
2599
|
+
LICENSE_INVALID_DATE: number;
|
|
2600
|
+
LICENSE_INVALID_VERSION: number;
|
|
2601
|
+
LICENSE_INVALID_DEVICE_ID: number;
|
|
2602
|
+
LICENSE_INVALID_SYSTEM_OR_APP_ID: number;
|
|
2603
|
+
LICENSE_NO_CAPABILITIES: number;
|
|
2604
|
+
LICENSE_NO_AUTHENTICITY: number;
|
|
2605
|
+
LICENSE_NO_DATABASE: number;
|
|
2606
|
+
LICENSE_DATABASE_INCORRECT: number;
|
|
2607
|
+
FEATURE_BLUETOOTH_LE_NOT_SUPPORTED: number;
|
|
2608
|
+
};
|
|
2443
2609
|
eCheckDiagnose: {
|
|
2444
2610
|
UNKNOWN: number;
|
|
2445
2611
|
PASS: number;
|
|
@@ -2625,6 +2791,10 @@ export declare const Enum: {
|
|
|
2625
2791
|
CT_MLS: number;
|
|
2626
2792
|
CT_DEV_LS: number;
|
|
2627
2793
|
CT_DEF_LS: number;
|
|
2794
|
+
CT_BLS: number;
|
|
2795
|
+
CT_LDS2: number;
|
|
2796
|
+
CT_BCS: number;
|
|
2797
|
+
CT_BCSNC: number;
|
|
2628
2798
|
};
|
|
2629
2799
|
eRFID_DataFile_Type: {
|
|
2630
2800
|
DFT_UNSPECIFIED: number;
|
|
@@ -2707,6 +2877,10 @@ export declare const Enum: {
|
|
|
2707
2877
|
DFT_SESSION: number;
|
|
2708
2878
|
DFT_LOGDATA: number;
|
|
2709
2879
|
DFT_CHIP_PROPERTIES: number;
|
|
2880
|
+
DFT_SAM_DATA: number;
|
|
2881
|
+
DFT_SAM_DATA_MAX: number;
|
|
2882
|
+
DFT_VDS: number;
|
|
2883
|
+
DFT_VDSNC: number;
|
|
2710
2884
|
DFT_USERDEFINED: number;
|
|
2711
2885
|
getTranslation(value: number): string;
|
|
2712
2886
|
};
|
|
@@ -2767,6 +2941,7 @@ export declare const Enum: {
|
|
|
2767
2941
|
RFID_ERROR_INVALID_PARAMETER: number;
|
|
2768
2942
|
RFID_ERROR_NOT_INITIALIZED: number;
|
|
2769
2943
|
RFID_Error_NotEnoughMemory: number;
|
|
2944
|
+
RFID_ERROR_NOT_ENOUGH_DATA: number;
|
|
2770
2945
|
RFID_ERROR_INVALID_DIRECTORY: number;
|
|
2771
2946
|
RFID_ERROR_UNKNOWN_COMMAND: number;
|
|
2772
2947
|
RFID_ERROR_FILE_IO_ERROR: number;
|
|
@@ -2845,6 +3020,22 @@ export declare const Enum: {
|
|
|
2845
3020
|
RFID_LAYER6_EXT_AUTH_FAILURE: number;
|
|
2846
3021
|
RFID_LAYER6_GENERAL_AUTH_FAILURE: number;
|
|
2847
3022
|
RFID_ERROR_FAILED: number;
|
|
3023
|
+
RFID_ERROR_CODES_LAYER_34_NO_ERROR: number;
|
|
3024
|
+
RFID_ERROR_CODES_LAYER_34_TIMEOUT: number;
|
|
3025
|
+
RFID_ERROR_CODES_LAYER_34_COLLISION: number;
|
|
3026
|
+
RFID_ERROR_CODES_LAYER_34_CRC: number;
|
|
3027
|
+
RFID_ERROR_CODES_LAYER_34_DATA_INTEGRITY: number;
|
|
3028
|
+
RFID_ERROR_CODES_LAYER_34_DATA_LENGTH: number;
|
|
3029
|
+
RFID_ERROR_CODES_LAYER_34_RFU: number;
|
|
3030
|
+
RFID_ERROR_CODES_LAYER_34_COLLISION_TOO_MANY: number;
|
|
3031
|
+
RFID_ERROR_CODES_LAYER_34_PROTOCOL_B: number;
|
|
3032
|
+
RFID_ERROR_CODES_LAYER_34_DATA_CONTENTS: number;
|
|
3033
|
+
RFID_ERROR_CODES_LAYER_34_PROTOCOL: number;
|
|
3034
|
+
RFID_ERROR_CODES_LAYER_34_GLOBAL_TIMEOUT: number;
|
|
3035
|
+
RFID_ERROR_CODES_LAYER_34_MIFARE_AUTH: number;
|
|
3036
|
+
RFID_ERROR_CODES_LAYER_34_SAM_ERROR: number;
|
|
3037
|
+
RFID_ERROR_CODES_LAYER_34_SAM_COLLISION: number;
|
|
3038
|
+
RFID_ERROR_CODES_LAYER_34_SAM_ACKNOWLEDGE: number;
|
|
2848
3039
|
getTranslation(value: number): string;
|
|
2849
3040
|
};
|
|
2850
3041
|
eRFID_Password_Type: {
|
|
@@ -2924,6 +3115,8 @@ export declare const Enum: {
|
|
|
2924
3115
|
RPRM_RESULT_TYPE_DATABASE_CHECK: number;
|
|
2925
3116
|
RPRM_RESULT_TYPE_FINGERPRINT_TEMPLATE_ISO: number;
|
|
2926
3117
|
RPRM_RESULT_TYPE_INPUT_IMAGE_QUALITY: number;
|
|
3118
|
+
RPRM_RESULT_TYPE_IMAGES: number;
|
|
3119
|
+
RPRM_RESULT_TYPE_HOLO_PARAMS: number;
|
|
2927
3120
|
RPRM_RESULT_TYPE_DOCUMENT_POSITION: number;
|
|
2928
3121
|
RPRM_RESULT_TYPE_CUSTOM: number;
|
|
2929
3122
|
RFID_RESULT_TYPE_RFID_RAW_DATA: number;
|
|
@@ -2933,6 +3126,7 @@ export declare const Enum: {
|
|
|
2933
3126
|
RFID_RESULT_TYPE_RFID_ORIGINAL_GRAPHICS: number;
|
|
2934
3127
|
RPRM_RESULT_TYPE_BARCODE_POSITION: number;
|
|
2935
3128
|
RPRM_RESULT_TYPE_MRZ_POSITION: number;
|
|
3129
|
+
RPRM_RESULT_TYPE_STATUS: number;
|
|
2936
3130
|
};
|
|
2937
3131
|
eRPRM_SecurityFeatureType: {
|
|
2938
3132
|
NONE: number;
|
|
@@ -3563,6 +3757,15 @@ export declare const Enum: {
|
|
|
3563
3757
|
FT_DLCLASSCODE_D3_FROM: number;
|
|
3564
3758
|
FT_DLCLASSCODE_D3_TO: number;
|
|
3565
3759
|
FT_DLCLASSCODE_D3_NOTES: number;
|
|
3760
|
+
FT_ALT_DATE_OF_EXPIRY: number;
|
|
3761
|
+
FT_DLCLASSCODE_CD_FROM: number;
|
|
3762
|
+
FT_DLCLASSCODE_CD_TO: number;
|
|
3763
|
+
FT_DLCLASSCODE_CD_NOTES: number;
|
|
3764
|
+
FT_PAYMENT_PERIOD_TO: number;
|
|
3765
|
+
FT_PAYMENT_PERIOD_FROM: number;
|
|
3766
|
+
FT_ISSUER_IDENTIFICATION_NUMBER: number;
|
|
3767
|
+
FT_VACCINATION_CERTIFICATE_IDENTIFIER: number;
|
|
3768
|
+
FT_FIRST_NAME: number;
|
|
3566
3769
|
getTranslation(value: number): string;
|
|
3567
3770
|
};
|
|
3568
3771
|
FontStyle: {
|
|
@@ -3575,6 +3778,11 @@ export declare const Enum: {
|
|
|
3575
3778
|
LINE: number;
|
|
3576
3779
|
CORNER: number;
|
|
3577
3780
|
};
|
|
3781
|
+
IRfidNotificationCompletion: {
|
|
3782
|
+
RFID_EVENT_CHIP_DETECTED: number;
|
|
3783
|
+
RFID_EVENT_READING_ERROR: number;
|
|
3784
|
+
RFID_EXTRA_ERROR_CODE: string;
|
|
3785
|
+
};
|
|
3578
3786
|
LCID: {
|
|
3579
3787
|
LATIN: number;
|
|
3580
3788
|
AFRIKAANS: number;
|
|
@@ -3735,6 +3943,11 @@ export declare const Enum: {
|
|
|
3735
3943
|
READY: number;
|
|
3736
3944
|
TIMEOUT: number;
|
|
3737
3945
|
};
|
|
3946
|
+
RFIDDelegate: {
|
|
3947
|
+
NULL: number;
|
|
3948
|
+
NO_PA: number;
|
|
3949
|
+
FULL: number;
|
|
3950
|
+
};
|
|
3738
3951
|
RGLMeasureSystem: {
|
|
3739
3952
|
METRIC: number;
|
|
3740
3953
|
IMPERIAL: number;
|
|
@@ -3834,6 +4047,16 @@ export declare const Enum: {
|
|
|
3834
4047
|
* ```
|
|
3835
4048
|
*/
|
|
3836
4049
|
export declare class DocumentReaderOriginal extends IonicNativePlugin {
|
|
4050
|
+
/**
|
|
4051
|
+
* Initially made for capacitor as it has no convenient way to read assets
|
|
4052
|
+
* Allows you to initialize document reader without reading license yourself.
|
|
4053
|
+
* License will be automatically read from
|
|
4054
|
+
* Android: "android/app/src/main/assets/regula.license"
|
|
4055
|
+
* iOS: "ios/App/App/regula.license"
|
|
4056
|
+
*
|
|
4057
|
+
* @return {Promise<any>} Returns a promise
|
|
4058
|
+
*/
|
|
4059
|
+
initializeReaderAutomatically(): Promise<any>;
|
|
3837
4060
|
/**
|
|
3838
4061
|
* Allows you to get the API version
|
|
3839
4062
|
*
|
|
@@ -4044,6 +4267,17 @@ export declare class DocumentReaderOriginal extends IonicNativePlugin {
|
|
|
4044
4267
|
* @return {Promise<any>} Returns a promise
|
|
4045
4268
|
*/
|
|
4046
4269
|
getRfidSessionStatus(): Promise<any>;
|
|
4270
|
+
/**
|
|
4271
|
+
* Use this method to set RFID delegate on iOS to either null,
|
|
4272
|
+
* delegate with onRequestPACertificates callback or without
|
|
4273
|
+
*
|
|
4274
|
+
* @param {int} delegate use enum RFIDDelegate
|
|
4275
|
+
* NULL = 0
|
|
4276
|
+
* NO_PA = 1
|
|
4277
|
+
* FULL = 2
|
|
4278
|
+
* @return {Promise<any>} Returns a promise
|
|
4279
|
+
*/
|
|
4280
|
+
setRfidDelegate(delegate: any): Promise<any>;
|
|
4047
4281
|
/**
|
|
4048
4282
|
* Use this method to enable Core logs
|
|
4049
4283
|
*
|
|
@@ -4145,6 +4379,43 @@ export declare class DocumentReaderOriginal extends IonicNativePlugin {
|
|
|
4145
4379
|
* @return {Promise<any>} Returns a promise
|
|
4146
4380
|
*/
|
|
4147
4381
|
setRfidSessionStatus(status: any): Promise<any>;
|
|
4382
|
+
/**
|
|
4383
|
+
* Use this method to send PACertificates to the chip after you`ve got a request for them
|
|
4384
|
+
*
|
|
4385
|
+
* @param {PKDCertificate[]} certificates Array of jsonObjects with structure {binaryData: binaryData, resourceType: resourceType, privateKey: privateKey}
|
|
4386
|
+
* binaryData - base64 string
|
|
4387
|
+
* resourceType - number
|
|
4388
|
+
* privateKey(optional) - base64 string
|
|
4389
|
+
* @return {Promise<any>} Returns a promise
|
|
4390
|
+
*/
|
|
4391
|
+
providePACertificates(certificates: any): Promise<any>;
|
|
4392
|
+
/**
|
|
4393
|
+
* Use this method to send TACertificates to the chip after you`ve got a request for them
|
|
4394
|
+
*
|
|
4395
|
+
* @param {PKDCertificate[]} certificates Array of jsonObjects with structure {binaryData: binaryData, resourceType: resourceType, privateKey: privateKey}
|
|
4396
|
+
* binaryData - base64 string
|
|
4397
|
+
* resourceType - number
|
|
4398
|
+
* privateKey(optional) - base64 string
|
|
4399
|
+
* @return {Promise<any>} Returns a promise
|
|
4400
|
+
*/
|
|
4401
|
+
provideTACertificates(certificates: any): Promise<any>;
|
|
4402
|
+
/**
|
|
4403
|
+
* Use this method to send TASignature to the chip after you`ve got a request for them
|
|
4404
|
+
*
|
|
4405
|
+
* @param {byte[]} certificates Array of jsonObjects with structure {binaryData: binaryData, resourceType: resourceType, privateKey: privateKey}
|
|
4406
|
+
* binaryData - base64 string
|
|
4407
|
+
* resourceType - number
|
|
4408
|
+
* privateKey(optional) - base64 string
|
|
4409
|
+
* @return {Promise<any>} Returns a promise
|
|
4410
|
+
*/
|
|
4411
|
+
provideTASignature(certificates: any): Promise<any>;
|
|
4412
|
+
/**
|
|
4413
|
+
* Use this method to parse results returned by the server when using an encrypted license
|
|
4414
|
+
*
|
|
4415
|
+
* @param {string} json results to parse
|
|
4416
|
+
* @return {Promise<any>} Returns a promise
|
|
4417
|
+
*/
|
|
4418
|
+
parseCoreResults(json: any): Promise<any>;
|
|
4148
4419
|
/**
|
|
4149
4420
|
* Use this method to initialize Document Reader with the path to the database
|
|
4150
4421
|
*
|
|
@@ -4153,6 +4424,14 @@ export declare class DocumentReaderOriginal extends IonicNativePlugin {
|
|
|
4153
4424
|
* @return {Promise<any>} Returns a promise
|
|
4154
4425
|
*/
|
|
4155
4426
|
initializeReaderWithDatabasePath(license: any, path: any): Promise<any>;
|
|
4427
|
+
/**
|
|
4428
|
+
* Use this method to initialize Document Reader with database binary
|
|
4429
|
+
*
|
|
4430
|
+
* @param {string} license License`s base64 representation
|
|
4431
|
+
* @param {string} db Database`s base64 representation
|
|
4432
|
+
* @return {Promise<any>} Returns a promise
|
|
4433
|
+
*/
|
|
4434
|
+
initializeReaderWithDatabase(license: any, db: any): Promise<any>;
|
|
4156
4435
|
/**
|
|
4157
4436
|
* Use this method to recognize an image frame
|
|
4158
4437
|
*
|