@regulaforensics/document-reader 9.4.721-nightly → 9.4.724-rc
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/RNDocumentReader.podspec +2 -2
- package/android/build.gradle +2 -2
- package/android/cordova.gradle +2 -2
- package/android/src/main/java/com/regula/plugin/documentreader/JSONConstructor.kt +0 -36
- package/android/src/main/java/com/regula/plugin/documentreader/Main.kt +43 -46
- package/examples/capacitor/package-lock.json +15 -15
- package/examples/capacitor/package.json +1 -1
- package/examples/ionic/package-lock.json +235 -208
- package/examples/ionic/package.json +2 -3
- package/examples/react_native/package-lock.json +30 -33
- package/examples/react_native/package.json +1 -1
- package/ios/RGLWJSONConstructor.h +0 -4
- package/ios/RGLWJSONConstructor.m +47 -93
- package/ios/RGLWMain.h +4 -2
- package/ios/RGLWMain.m +13 -49
- package/ios/RNDocumentReader.m +0 -2
- package/package.json +1 -1
- package/plugin.xml +2 -2
- package/test/json.tsx +0 -11
- package/test/package-lock.json +1 -1
- package/test/test.tsx +2 -4
- package/www/capacitor/config/RFIDConfig.js +0 -14
- package/www/capacitor/index.js +7 -9
- package/www/capacitor/internal/bridge.js +1 -19
- package/www/cordova.js +29 -152
- package/www/react-native/config/RFIDConfig.js +0 -14
- package/www/react-native/index.js +7 -9
- package/www/react-native/internal/bridge.js +1 -19
- package/www/types/config/RFIDConfig.d.ts +3 -35
- package/www/types/index.d.ts +1 -3
- package/www/capacitor/rfid/CAProtocol.js +0 -27
- package/www/capacitor/rfid/PACEProtocol.js +0 -24
- package/www/react-native/rfid/CAProtocol.js +0 -27
- package/www/react-native/rfid/PACEProtocol.js +0 -24
- package/www/types/rfid/CAProtocol.d.ts +0 -6
- package/www/types/rfid/PACEProtocol.d.ts +0 -5
package/plugin.xml
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<?xml version='1.0' encoding='utf-8'?>
|
|
2
|
-
<plugin id="@regulaforensics/document-reader" version="9.4.
|
|
2
|
+
<plugin id="@regulaforensics/document-reader" version="9.4.724-rc" xmlns="http://apache.org/cordova/ns/plugins/1.0">
|
|
3
3
|
<name>DocumentReader</name>
|
|
4
4
|
<description>Cordova plugin for Regula Document Reader SDK</description>
|
|
5
5
|
<license>commercial</license>
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
<source url="https://github.com/CocoaPods/Specs.git" />
|
|
30
30
|
</config>
|
|
31
31
|
<pods>
|
|
32
|
-
<pod name="
|
|
32
|
+
<pod name="DocumentReaderStage" spec="9.4.6206" />
|
|
33
33
|
</pods>
|
|
34
34
|
</podspec>
|
|
35
35
|
</platform>
|
package/test/json.tsx
CHANGED
|
@@ -980,17 +980,6 @@ export var taChallenge = {
|
|
|
980
980
|
"hashPK": "test3",
|
|
981
981
|
"idPICC": "test4",
|
|
982
982
|
};
|
|
983
|
-
export var paceProtocol = {
|
|
984
|
-
"version": "123",
|
|
985
|
-
"stdDomainParams": "test2",
|
|
986
|
-
"keyAlgorithm": "test3",
|
|
987
|
-
};
|
|
988
|
-
export var caProtocol = {
|
|
989
|
-
"version": "123",
|
|
990
|
-
"scheme": "test2",
|
|
991
|
-
"keyAlgorithm": "test3",
|
|
992
|
-
"chipIndividual": true,
|
|
993
|
-
};
|
|
994
983
|
export var tccParams = {
|
|
995
984
|
"serviceUrlTA": "test1",
|
|
996
985
|
"serviceUrlPA": "test2",
|
package/test/package-lock.json
CHANGED
package/test/test.tsx
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { compare } from './utils'
|
|
2
|
-
import { AccessControlProcedureType, Application, Attribute, AuthenticityCheck, AuthenticityElement, AuthenticityParams, AuthenticityResult, Authority, BackendProcessingConfig, Bsi, BarcodeField, BarcodeResult, BytesData, CardProperties, CertificateChain, CertificateData, Comparison, Coordinate, Customization, CustomizationColors, CustomizationFonts, CustomizationImages, CustomizationTimings, CustomizationMatrices, CustomizationContentModes, DataField, DocReaderException, DocReaderScenario, DocReaderVersion, DocumentsDatabase, DocumentType, EDLDataGroups, EIDDataGroups, DTCDataGroup, EPassportDataGroups, Extension, FaceApiParams, FaceApiSearchParams, File, FileData, Functionality, GlaresCheckParams, RFIDParams, GraphicField, GraphicResult, ImageInputData, ImageQA, ImageQuality, ImageQualityGroup, InitConfig, License, LivenessParams, OnlineProcessingConfig, OpticalStatus, PAAttribute, PAResourcesIssuer, PDF417Info, PKDCertificate,
|
|
3
|
-
import { accessControlProcedureType, application, attribute, authenticityCheck, authenticityElement, authenticityParams, authenticityResult, authority, backendProcessingConfig, bsi, barcodeField, barcodeResult, bytesData, cardProperties, certificateChain, certificateData, comparison, coordinate, customization, customizationColors, customizationFonts, customizationImages, customizationTimings, customizationMatrices, customizationContentModes, dataField, docReaderException, docReaderScenario, docReaderVersion, documentsDatabase, documentType, eDLDataGroups, eIDDataGroups, dtcDataGroup, ePassportDataGroups, extension, faceApiParams, faceApiSearchParams, file, fileData, functionality, glaresCheckParams, rfidParams, graphicField, graphicResult, imageInputData, imageQA, imageQuality, imageQualityGroup, initConfig, license, livenessParams, onlineProcessingConfig, opticalStatus, paAttribute, paResourcesIssuer, pdf417Info, pkdCertificate,
|
|
2
|
+
import { AccessControlProcedureType, Application, Attribute, AuthenticityCheck, AuthenticityElement, AuthenticityParams, AuthenticityResult, Authority, BackendProcessingConfig, Bsi, BarcodeField, BarcodeResult, BytesData, CardProperties, CertificateChain, CertificateData, Comparison, Coordinate, Customization, CustomizationColors, CustomizationFonts, CustomizationImages, CustomizationTimings, CustomizationMatrices, CustomizationContentModes, DataField, DocReaderException, DocReaderScenario, DocReaderVersion, DocumentsDatabase, DocumentType, EDLDataGroups, EIDDataGroups, DTCDataGroup, EPassportDataGroups, Extension, FaceApiParams, FaceApiSearchParams, File, FileData, Functionality, GlaresCheckParams, RFIDParams, GraphicField, GraphicResult, ImageInputData, ImageQA, ImageQuality, ImageQualityGroup, InitConfig, License, LivenessParams, OnlineProcessingConfig, OpticalStatus, PAAttribute, PAResourcesIssuer, PDF417Info, PKDCertificate, Position, PrepareProgress, ProcessParams, RecognizeConfig, Rect, Results, ResultsStatus, RFIDException, RFIDNotification, RFIDOrigin, RFIDScenario, RFIDSessionData, AgeStatus, RFIDStatus, RFIDValidity, RFIDValue, ScannerConfig, SecurityObject, SecurityObjectCertificates, SignerInfo, Symbol, TAChallenge, TccParams, TextField, TextResult, TextSource, TransactionInfo, Validity, Value, VDSNCData, VDSData, DocFeature, DeviceRetrievalMethod, DocumentRequest18013MDL, DataRetrieval, DeviceEngagement, NameSpaceMDL, DocumentRequestMDL, FinalizeConfig } from '@regulaforensics/document-reader/www/capacitor'
|
|
3
|
+
import { accessControlProcedureType, application, attribute, authenticityCheck, authenticityElement, authenticityParams, authenticityResult, authority, backendProcessingConfig, bsi, barcodeField, barcodeResult, bytesData, cardProperties, certificateChain, certificateData, comparison, coordinate, customization, customizationColors, customizationFonts, customizationImages, customizationTimings, customizationMatrices, customizationContentModes, dataField, docReaderException, docReaderScenario, docReaderVersion, documentsDatabase, documentType, eDLDataGroups, eIDDataGroups, dtcDataGroup, ePassportDataGroups, extension, faceApiParams, faceApiSearchParams, file, fileData, functionality, glaresCheckParams, rfidParams, graphicField, graphicResult, imageInputData, imageQA, imageQuality, imageQualityGroup, initConfig, license, livenessParams, onlineProcessingConfig, opticalStatus, paAttribute, paResourcesIssuer, pdf417Info, pkdCertificate, position, prepareProgress, processParams, recognizeConfig, recognizeConfig2, rect, results, resultsStatus, rfidException, rfidNotification, rfidOrigin, rfidScenario, rfidSessionData, ageStatus, rfidStatus, rfidValidity, rfidValue, scannerConfig, securityObject, securityObjectCertificates, signerInfo, symbol, taChallenge, tccParams, textField, textResult, textSource, transactionInfo, validity, value, vdsncData, vdsData, docFeature, deviceRetrievalMethod, documentRequest18013MDL, dataRetrieval, deviceEngagement, nameSpaceMDL, documentRequestMDL, finalizeConfig } from './json'
|
|
4
4
|
|
|
5
5
|
compare('initConfig', initConfig, InitConfig.fromJson)
|
|
6
6
|
compare('onlineProcessingConfig', onlineProcessingConfig, OnlineProcessingConfig.fromJson)
|
|
@@ -98,8 +98,6 @@ compare('paAttribute', paAttribute, PAAttribute.fromJson)
|
|
|
98
98
|
compare('paResourcesIssuer', paResourcesIssuer, PAResourcesIssuer.fromJson)
|
|
99
99
|
compare('pkdCertificate', pkdCertificate, PKDCertificate.fromJson)
|
|
100
100
|
compare('taChallenge', taChallenge, TAChallenge.fromJson)
|
|
101
|
-
compare('paceProtocol', paceProtocol, PACEProtocol.fromJson);
|
|
102
|
-
compare('caProtocol', caProtocol, CAProtocol.fromJson);
|
|
103
101
|
compare('tccParams', tccParams, TccParams.fromJson)
|
|
104
102
|
|
|
105
103
|
compare('deviceRetrievalMethod', deviceRetrievalMethod, DeviceRetrievalMethod.fromJson)
|
|
@@ -5,8 +5,6 @@ import { RFIDNotification } from "../rfid/RFIDNotification";
|
|
|
5
5
|
import { PAResourcesIssuer } from "../rfid/PAResourcesIssuer";
|
|
6
6
|
import { PKDCertificate } from "../rfid/PKDCertificate";
|
|
7
7
|
import { TAChallenge } from "../rfid/TAChallenge";
|
|
8
|
-
import { PACEProtocol } from "../rfid/PACEProtocol";
|
|
9
|
-
import { CAProtocol } from "../rfid/CAProtocol";
|
|
10
8
|
|
|
11
9
|
export class RFIDConfig {
|
|
12
10
|
_completion
|
|
@@ -18,8 +16,6 @@ export class RFIDConfig {
|
|
|
18
16
|
onRequestPACertificates
|
|
19
17
|
onRequestTACertificates
|
|
20
18
|
onRequestTASignature
|
|
21
|
-
onRequestPACEProtocol
|
|
22
|
-
onRequestCAProtocol
|
|
23
19
|
|
|
24
20
|
constructor(completion) {
|
|
25
21
|
this._completion = completion
|
|
@@ -32,14 +28,4 @@ export class RFIDConfig {
|
|
|
32
28
|
result._disableUI = true
|
|
33
29
|
return result
|
|
34
30
|
}
|
|
35
|
-
|
|
36
|
-
toJson() {
|
|
37
|
-
return {
|
|
38
|
-
"paCertificates": this.onRequestPACertificates != null,
|
|
39
|
-
"taCertificates": this.onRequestTACertificates != null,
|
|
40
|
-
"taSignature": this.onRequestTASignature != null,
|
|
41
|
-
"paceProtocol": this.onRequestPACEProtocol != null,
|
|
42
|
-
"caProtocol": this.onRequestCAProtocol != null,
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
31
|
}
|
package/www/capacitor/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { exec, serializeInterface, _setDocumentReaderCompletion, _setRFIDCompletion, _setDocumentReaderPrepareCompletion, _setCustomButtonTappedCompletion, _setVideoEncoderCompletion, _setRFIDProgressCompletion, _setChipDetectedCompletion, _setRetryReadChipCompletion, _setPaCertificateCompletion, _setTaCertificateCompletion, _setTaSignatureCompletion
|
|
1
|
+
import { exec, serializeInterface, _setDocumentReaderCompletion, _setRFIDCompletion, _setDocumentReaderPrepareCompletion, _setCustomButtonTappedCompletion, _setVideoEncoderCompletion, _setRFIDProgressCompletion, _setChipDetectedCompletion, _setRetryReadChipCompletion, _setPaCertificateCompletion, _setTaCertificateCompletion, _setTaSignatureCompletion } from './internal/bridge'
|
|
2
2
|
|
|
3
3
|
import { OnlineProcessingConfig, ImageFormat, OnlineMode } from './config/OnlineProcessingConfig';
|
|
4
4
|
import { InitConfig } from './config/InitConfig';
|
|
@@ -135,10 +135,8 @@ import { TccParams } from './rfid/TccParams';
|
|
|
135
135
|
import { RFIDNotification, RFIDNotificationCodes } from './rfid/RFIDNotification';
|
|
136
136
|
import { PAAttribute } from './rfid/PAAttribute';
|
|
137
137
|
import { TAChallenge } from './rfid/TAChallenge';
|
|
138
|
-
import { PACEProtocol } from './rfid/PACEProtocol';
|
|
139
|
-
import { CAProtocol } from './rfid/CAProtocol';
|
|
140
138
|
import { PKDCertificate, PKDResourceType } from './rfid/PKDCertificate';
|
|
141
|
-
export { PAResourcesIssuer, RFIDErrorCodes, TccParams, RFIDNotification, RFIDNotificationCodes, PAAttribute, TAChallenge,
|
|
139
|
+
export { PAResourcesIssuer, RFIDErrorCodes, TccParams, RFIDNotification, RFIDNotificationCodes, PAAttribute, TAChallenge, PKDCertificate, PKDResourceType };
|
|
142
140
|
|
|
143
141
|
import { DataRetrieval, MDLDocRequestPreset, MDLDeviceRetrieval } from './mdl/DataRetrieval';
|
|
144
142
|
import { DeviceEngagement, MDLDeviceEngagement } from './mdl/DeviceEngagement';
|
|
@@ -341,15 +339,15 @@ export class DocumentReader {
|
|
|
341
339
|
_setRFIDProgressCompletion(config.onProgress);
|
|
342
340
|
_setChipDetectedCompletion(config.onChipDetected);
|
|
343
341
|
_setRetryReadChipCompletion(config.onRetryReadChip);
|
|
344
|
-
|
|
345
342
|
_setPaCertificateCompletion(config.onRequestPACertificates);
|
|
346
343
|
_setTaCertificateCompletion(config.onRequestTACertificates);
|
|
347
344
|
_setTaSignatureCompletion(config.onRequestTASignature);
|
|
348
345
|
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
346
|
+
exec(config._disableUI ? "readRFID" : "startRFIDReader", [
|
|
347
|
+
config.onRequestPACertificates != null,
|
|
348
|
+
config.onRequestTACertificates != null,
|
|
349
|
+
config.onRequestTASignature != null,
|
|
350
|
+
]);
|
|
353
351
|
}
|
|
354
352
|
|
|
355
353
|
stopScanner() {
|
|
@@ -7,8 +7,6 @@ import { PrepareProgress } from '../info/PrepareProgress'
|
|
|
7
7
|
import { RFIDNotification } from '../rfid/RFIDNotification'
|
|
8
8
|
import { PAResourcesIssuer } from '../rfid/PAResourcesIssuer'
|
|
9
9
|
import { TAChallenge } from '../rfid/TAChallenge'
|
|
10
|
-
import { PACEProtocol } from '../rfid/PACEProtocol'
|
|
11
|
-
import { CAProtocol } from '../rfid/CAProtocol'
|
|
12
10
|
|
|
13
11
|
const { RNDocumentReader } = NativeModules
|
|
14
12
|
var eventManager = new NativeEventEmitter(RNDocumentReader)
|
|
@@ -99,24 +97,8 @@ export function _setTaCertificateCompletion(completion) {
|
|
|
99
97
|
|
|
100
98
|
export function _setTaSignatureCompletion(completion) {
|
|
101
99
|
_setEvent("ta_signature_completion", completion, json => {
|
|
102
|
-
return [TAChallenge.fromJson(
|
|
100
|
+
return [TAChallenge.fromJson(json.decode(msg)), async signature => {
|
|
103
101
|
await exec("provideTASignature", [signature])
|
|
104
102
|
}]
|
|
105
103
|
})
|
|
106
104
|
}
|
|
107
|
-
|
|
108
|
-
export function _setPACEProtocolCompletion(completion) {
|
|
109
|
-
_setEvent("paceProtocolCompletionEvent", completion, json => {
|
|
110
|
-
return [JSON.parse(json).map(item => PACEProtocol.fromJson(item)), async protocol => {
|
|
111
|
-
await exec("selectPACEProtocol", [protocol])
|
|
112
|
-
}]
|
|
113
|
-
})
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
export function _setCAProtocolCompletion(completion) {
|
|
117
|
-
_setEvent("caProtocolCompletionEvent", completion, json => {
|
|
118
|
-
return [JSON.parse(json).map(item => CAProtocol.fromJson(item)), async protocol => {
|
|
119
|
-
await exec("selectCAProtocol", [protocol])
|
|
120
|
-
}]
|
|
121
|
-
})
|
|
122
|
-
}
|
package/www/cordova.js
CHANGED
|
@@ -207,10 +207,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
207
207
|
/* harmony import */ var _rfid_PAResourcesIssuer__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../rfid/PAResourcesIssuer */ "./src/rfid/PAResourcesIssuer.js");
|
|
208
208
|
/* harmony import */ var _rfid_PKDCertificate__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../rfid/PKDCertificate */ "./src/rfid/PKDCertificate.js");
|
|
209
209
|
/* harmony import */ var _rfid_TAChallenge__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../rfid/TAChallenge */ "./src/rfid/TAChallenge.js");
|
|
210
|
-
/* harmony import */ var _rfid_PACEProtocol__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../rfid/PACEProtocol */ "./src/rfid/PACEProtocol.js");
|
|
211
|
-
/* harmony import */ var _rfid_CAProtocol__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../rfid/CAProtocol */ "./src/rfid/CAProtocol.js");
|
|
212
|
-
|
|
213
|
-
|
|
214
210
|
|
|
215
211
|
|
|
216
212
|
|
|
@@ -229,8 +225,6 @@ class RFIDConfig {
|
|
|
229
225
|
onRequestPACertificates
|
|
230
226
|
onRequestTACertificates
|
|
231
227
|
onRequestTASignature
|
|
232
|
-
onRequestPACEProtocol
|
|
233
|
-
onRequestCAProtocol
|
|
234
228
|
|
|
235
229
|
constructor(completion) {
|
|
236
230
|
this._completion = completion
|
|
@@ -243,16 +237,6 @@ class RFIDConfig {
|
|
|
243
237
|
result._disableUI = true
|
|
244
238
|
return result
|
|
245
239
|
}
|
|
246
|
-
|
|
247
|
-
toJson() {
|
|
248
|
-
return {
|
|
249
|
-
"paCertificates": this.onRequestPACertificates != null,
|
|
250
|
-
"taCertificates": this.onRequestTACertificates != null,
|
|
251
|
-
"taSignature": this.onRequestTASignature != null,
|
|
252
|
-
"paceProtocol": this.onRequestPACEProtocol != null,
|
|
253
|
-
"caProtocol": this.onRequestCAProtocol != null,
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
240
|
}
|
|
257
241
|
|
|
258
242
|
|
|
@@ -490,7 +474,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
490
474
|
/* harmony export */ BarcodeType: () => (/* reexport safe */ _results_barcode_BarcodeType__WEBPACK_IMPORTED_MODULE_46__.BarcodeType),
|
|
491
475
|
/* harmony export */ Bsi: () => (/* reexport safe */ _params_process_params_Bsi__WEBPACK_IMPORTED_MODULE_86__.Bsi),
|
|
492
476
|
/* harmony export */ BytesData: () => (/* reexport safe */ _results_visible_digital_seals_BytesData__WEBPACK_IMPORTED_MODULE_54__.BytesData),
|
|
493
|
-
/* harmony export */ CAProtocol: () => (/* reexport safe */ _rfid_CAProtocol__WEBPACK_IMPORTED_MODULE_108__.CAProtocol),
|
|
494
477
|
/* harmony export */ CameraMode: () => (/* reexport safe */ _params_Functionality__WEBPACK_IMPORTED_MODULE_88__.CameraMode),
|
|
495
478
|
/* harmony export */ CameraPosition: () => (/* reexport safe */ _params_Functionality__WEBPACK_IMPORTED_MODULE_88__.CameraPosition),
|
|
496
479
|
/* harmony export */ CameraSize: () => (/* reexport safe */ _params_Functionality__WEBPACK_IMPORTED_MODULE_88__.CameraSize),
|
|
@@ -514,9 +497,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
514
497
|
/* harmony export */ CustomizationTimings: () => (/* reexport safe */ _params_customization_CustomizationTimings__WEBPACK_IMPORTED_MODULE_92__.CustomizationTimings),
|
|
515
498
|
/* harmony export */ DTCDataGroup: () => (/* reexport safe */ _params_rfid_scenario_DTCDataGroup__WEBPACK_IMPORTED_MODULE_98__.DTCDataGroup),
|
|
516
499
|
/* harmony export */ DataField: () => (/* reexport safe */ _results_rfid_DataField__WEBPACK_IMPORTED_MODULE_60__.DataField),
|
|
517
|
-
/* harmony export */ DataRetrieval: () => (/* reexport safe */
|
|
518
|
-
/* harmony export */ DeviceEngagement: () => (/* reexport safe */
|
|
519
|
-
/* harmony export */ DeviceRetrievalMethod: () => (/* reexport safe */
|
|
500
|
+
/* harmony export */ DataRetrieval: () => (/* reexport safe */ _mdl_DataRetrieval__WEBPACK_IMPORTED_MODULE_108__.DataRetrieval),
|
|
501
|
+
/* harmony export */ DeviceEngagement: () => (/* reexport safe */ _mdl_DeviceEngagement__WEBPACK_IMPORTED_MODULE_109__.DeviceEngagement),
|
|
502
|
+
/* harmony export */ DeviceRetrievalMethod: () => (/* reexport safe */ _mdl_DeviceRetrievalMethod__WEBPACK_IMPORTED_MODULE_112__.DeviceRetrievalMethod),
|
|
520
503
|
/* harmony export */ DocFeature: () => (/* reexport safe */ _results_visible_digital_seals_DocFeature__WEBPACK_IMPORTED_MODULE_55__.DocFeature),
|
|
521
504
|
/* harmony export */ DocFormat: () => (/* reexport safe */ _results_DocumentType__WEBPACK_IMPORTED_MODULE_29__.DocFormat),
|
|
522
505
|
/* harmony export */ DocReaderAction: () => (/* binding */ DocReaderAction),
|
|
@@ -526,8 +509,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
526
509
|
/* harmony export */ DocReaderScenario: () => (/* reexport safe */ _info_DocReaderScenario__WEBPACK_IMPORTED_MODULE_12__.DocReaderScenario),
|
|
527
510
|
/* harmony export */ DocReaderVersion: () => (/* reexport safe */ _info_DocReaderVersion__WEBPACK_IMPORTED_MODULE_7__.DocReaderVersion),
|
|
528
511
|
/* harmony export */ DocumentReader: () => (/* binding */ DocumentReader),
|
|
529
|
-
/* harmony export */ DocumentRequest18013MDL: () => (/* reexport safe */
|
|
530
|
-
/* harmony export */ DocumentRequestMDL: () => (/* reexport safe */
|
|
512
|
+
/* harmony export */ DocumentRequest18013MDL: () => (/* reexport safe */ _mdl_DocumentRequestMDL__WEBPACK_IMPORTED_MODULE_111__.DocumentRequest18013MDL),
|
|
513
|
+
/* harmony export */ DocumentRequestMDL: () => (/* reexport safe */ _mdl_DocumentRequestMDL__WEBPACK_IMPORTED_MODULE_111__.DocumentRequestMDL),
|
|
531
514
|
/* harmony export */ DocumentType: () => (/* reexport safe */ _results_DocumentType__WEBPACK_IMPORTED_MODULE_29__.DocumentType),
|
|
532
515
|
/* harmony export */ DocumentTypeEnum: () => (/* reexport safe */ _results_DocumentType__WEBPACK_IMPORTED_MODULE_29__.DocType),
|
|
533
516
|
/* harmony export */ DocumentsDatabase: () => (/* reexport safe */ _info_DocumentsDatabase__WEBPACK_IMPORTED_MODULE_10__.DocumentsDatabase),
|
|
@@ -564,23 +547,22 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
564
547
|
/* harmony export */ Lights: () => (/* reexport safe */ _results_visual_results_Lights__WEBPACK_IMPORTED_MODULE_21__.Lights),
|
|
565
548
|
/* harmony export */ LivenessParams: () => (/* reexport safe */ _params_process_params_LivenessParams__WEBPACK_IMPORTED_MODULE_78__.LivenessParams),
|
|
566
549
|
/* harmony export */ LogLevel: () => (/* reexport safe */ _params_process_params_ProcessParams__WEBPACK_IMPORTED_MODULE_79__.LogLevel),
|
|
567
|
-
/* harmony export */ MDLDeviceEngagement: () => (/* reexport safe */
|
|
568
|
-
/* harmony export */ MDLDeviceRetrieval: () => (/* reexport safe */
|
|
569
|
-
/* harmony export */ MDLDocRequestPreset: () => (/* reexport safe */
|
|
570
|
-
/* harmony export */ MDLIntentToRetain: () => (/* reexport safe */
|
|
550
|
+
/* harmony export */ MDLDeviceEngagement: () => (/* reexport safe */ _mdl_DeviceEngagement__WEBPACK_IMPORTED_MODULE_109__.MDLDeviceEngagement),
|
|
551
|
+
/* harmony export */ MDLDeviceRetrieval: () => (/* reexport safe */ _mdl_DataRetrieval__WEBPACK_IMPORTED_MODULE_108__.MDLDeviceRetrieval),
|
|
552
|
+
/* harmony export */ MDLDocRequestPreset: () => (/* reexport safe */ _mdl_DataRetrieval__WEBPACK_IMPORTED_MODULE_108__.MDLDocRequestPreset),
|
|
553
|
+
/* harmony export */ MDLIntentToRetain: () => (/* reexport safe */ _mdl_NameSpaceMDL__WEBPACK_IMPORTED_MODULE_110__.MDLIntentToRetain),
|
|
571
554
|
/* harmony export */ MRZFormat: () => (/* reexport safe */ _params_process_params_ProcessParams__WEBPACK_IMPORTED_MODULE_79__.MRZFormat),
|
|
572
555
|
/* harmony export */ MeasureSystem: () => (/* reexport safe */ _params_process_params_ProcessParams__WEBPACK_IMPORTED_MODULE_79__.MeasureSystem),
|
|
573
556
|
/* harmony export */ MrzDetectionModes: () => (/* reexport safe */ _params_process_params_ProcessParams__WEBPACK_IMPORTED_MODULE_79__.MrzDetectionModes),
|
|
574
|
-
/* harmony export */ NameSpaceMDL: () => (/* reexport safe */
|
|
557
|
+
/* harmony export */ NameSpaceMDL: () => (/* reexport safe */ _mdl_NameSpaceMDL__WEBPACK_IMPORTED_MODULE_110__.NameSpaceMDL),
|
|
575
558
|
/* harmony export */ OnlineMode: () => (/* reexport safe */ _config_OnlineProcessingConfig__WEBPACK_IMPORTED_MODULE_1__.OnlineMode),
|
|
576
559
|
/* harmony export */ OnlineProcessingConfig: () => (/* reexport safe */ _config_OnlineProcessingConfig__WEBPACK_IMPORTED_MODULE_1__.OnlineProcessingConfig),
|
|
577
560
|
/* harmony export */ OpticalStatus: () => (/* reexport safe */ _results_status_OpticalStatus__WEBPACK_IMPORTED_MODULE_36__.OpticalStatus),
|
|
578
561
|
/* harmony export */ PAAttribute: () => (/* reexport safe */ _rfid_PAAttribute__WEBPACK_IMPORTED_MODULE_105__.PAAttribute),
|
|
579
|
-
/* harmony export */ PACEProtocol: () => (/* reexport safe */ _rfid_PACEProtocol__WEBPACK_IMPORTED_MODULE_107__.PACEProtocol),
|
|
580
562
|
/* harmony export */ PAResourcesIssuer: () => (/* reexport safe */ _rfid_PAResourcesIssuer__WEBPACK_IMPORTED_MODULE_101__.PAResourcesIssuer),
|
|
581
563
|
/* harmony export */ PDF417Info: () => (/* reexport safe */ _results_barcode_PDF417Info__WEBPACK_IMPORTED_MODULE_44__.PDF417Info),
|
|
582
|
-
/* harmony export */ PKDCertificate: () => (/* reexport safe */
|
|
583
|
-
/* harmony export */ PKDResourceType: () => (/* reexport safe */
|
|
564
|
+
/* harmony export */ PKDCertificate: () => (/* reexport safe */ _rfid_PKDCertificate__WEBPACK_IMPORTED_MODULE_107__.PKDCertificate),
|
|
565
|
+
/* harmony export */ PKDResourceType: () => (/* reexport safe */ _rfid_PKDCertificate__WEBPACK_IMPORTED_MODULE_107__.PKDResourceType),
|
|
584
566
|
/* harmony export */ Position: () => (/* reexport safe */ _results_Position__WEBPACK_IMPORTED_MODULE_32__.Position),
|
|
585
567
|
/* harmony export */ PrepareProgress: () => (/* reexport safe */ _info_PrepareProgress__WEBPACK_IMPORTED_MODULE_8__.PrepareProgress),
|
|
586
568
|
/* harmony export */ ProcessParams: () => (/* reexport safe */ _params_process_params_ProcessParams__WEBPACK_IMPORTED_MODULE_79__.ProcessParams),
|
|
@@ -738,16 +720,12 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
738
720
|
/* harmony import */ var _rfid_RFIDNotification__WEBPACK_IMPORTED_MODULE_104__ = __webpack_require__(/*! ./rfid/RFIDNotification */ "./src/rfid/RFIDNotification.js");
|
|
739
721
|
/* harmony import */ var _rfid_PAAttribute__WEBPACK_IMPORTED_MODULE_105__ = __webpack_require__(/*! ./rfid/PAAttribute */ "./src/rfid/PAAttribute.js");
|
|
740
722
|
/* harmony import */ var _rfid_TAChallenge__WEBPACK_IMPORTED_MODULE_106__ = __webpack_require__(/*! ./rfid/TAChallenge */ "./src/rfid/TAChallenge.js");
|
|
741
|
-
/* harmony import */ var
|
|
742
|
-
/* harmony import */ var
|
|
743
|
-
/* harmony import */ var
|
|
744
|
-
/* harmony import */ var
|
|
745
|
-
/* harmony import */ var
|
|
746
|
-
/* harmony import */ var
|
|
747
|
-
/* harmony import */ var _mdl_DocumentRequestMDL__WEBPACK_IMPORTED_MODULE_113__ = __webpack_require__(/*! ./mdl/DocumentRequestMDL */ "./src/mdl/DocumentRequestMDL.js");
|
|
748
|
-
/* harmony import */ var _mdl_DeviceRetrievalMethod__WEBPACK_IMPORTED_MODULE_114__ = __webpack_require__(/*! ./mdl/DeviceRetrievalMethod */ "./src/mdl/DeviceRetrievalMethod.js");
|
|
749
|
-
|
|
750
|
-
|
|
723
|
+
/* harmony import */ var _rfid_PKDCertificate__WEBPACK_IMPORTED_MODULE_107__ = __webpack_require__(/*! ./rfid/PKDCertificate */ "./src/rfid/PKDCertificate.js");
|
|
724
|
+
/* harmony import */ var _mdl_DataRetrieval__WEBPACK_IMPORTED_MODULE_108__ = __webpack_require__(/*! ./mdl/DataRetrieval */ "./src/mdl/DataRetrieval.js");
|
|
725
|
+
/* harmony import */ var _mdl_DeviceEngagement__WEBPACK_IMPORTED_MODULE_109__ = __webpack_require__(/*! ./mdl/DeviceEngagement */ "./src/mdl/DeviceEngagement.js");
|
|
726
|
+
/* harmony import */ var _mdl_NameSpaceMDL__WEBPACK_IMPORTED_MODULE_110__ = __webpack_require__(/*! ./mdl/NameSpaceMDL */ "./src/mdl/NameSpaceMDL.js");
|
|
727
|
+
/* harmony import */ var _mdl_DocumentRequestMDL__WEBPACK_IMPORTED_MODULE_111__ = __webpack_require__(/*! ./mdl/DocumentRequestMDL */ "./src/mdl/DocumentRequestMDL.js");
|
|
728
|
+
/* harmony import */ var _mdl_DeviceRetrievalMethod__WEBPACK_IMPORTED_MODULE_112__ = __webpack_require__(/*! ./mdl/DeviceRetrievalMethod */ "./src/mdl/DeviceRetrievalMethod.js");
|
|
751
729
|
|
|
752
730
|
|
|
753
731
|
|
|
@@ -1089,15 +1067,15 @@ class DocumentReader {
|
|
|
1089
1067
|
(0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__._setRFIDProgressCompletion)(config.onProgress);
|
|
1090
1068
|
(0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__._setChipDetectedCompletion)(config.onChipDetected);
|
|
1091
1069
|
(0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__._setRetryReadChipCompletion)(config.onRetryReadChip);
|
|
1092
|
-
|
|
1093
1070
|
(0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__._setPaCertificateCompletion)(config.onRequestPACertificates);
|
|
1094
1071
|
(0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__._setTaCertificateCompletion)(config.onRequestTACertificates);
|
|
1095
1072
|
(0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__._setTaSignatureCompletion)(config.onRequestTASignature);
|
|
1096
1073
|
|
|
1097
|
-
(0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1074
|
+
(0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)(config._disableUI ? "readRFID" : "startRFIDReader", [
|
|
1075
|
+
config.onRequestPACertificates != null,
|
|
1076
|
+
config.onRequestTACertificates != null,
|
|
1077
|
+
config.onRequestTASignature != null,
|
|
1078
|
+
]);
|
|
1101
1079
|
}
|
|
1102
1080
|
|
|
1103
1081
|
stopScanner() {
|
|
@@ -1153,23 +1131,23 @@ class DocumentReader {
|
|
|
1153
1131
|
var response = "";
|
|
1154
1132
|
if (options?.withoutUI != true) {
|
|
1155
1133
|
response = await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("startEngageDevice", [type.value]);
|
|
1156
|
-
} else if (type ==
|
|
1134
|
+
} else if (type == _mdl_DeviceEngagement__WEBPACK_IMPORTED_MODULE_109__.MDLDeviceEngagement.NFC) {
|
|
1157
1135
|
response = await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("engageDeviceNFC", []);
|
|
1158
|
-
} else if (type ==
|
|
1136
|
+
} else if (type == _mdl_DeviceEngagement__WEBPACK_IMPORTED_MODULE_109__.MDLDeviceEngagement.QR && options?.data != null) {
|
|
1159
1137
|
response = await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("engageDeviceData", [options.data]);
|
|
1160
1138
|
}
|
|
1161
1139
|
|
|
1162
1140
|
var jsonObject = JSON.parse(response);
|
|
1163
1141
|
return [
|
|
1164
|
-
|
|
1142
|
+
_mdl_DeviceEngagement__WEBPACK_IMPORTED_MODULE_109__.DeviceEngagement.fromJson(jsonObject["deviceEngagement"]),
|
|
1165
1143
|
_info_DocReaderException__WEBPACK_IMPORTED_MODULE_9__.DocReaderException.fromJson(jsonObject["error"]),
|
|
1166
1144
|
]
|
|
1167
1145
|
}
|
|
1168
1146
|
|
|
1169
1147
|
async retrieveData(retrieval, options) {
|
|
1170
1148
|
var func = "startRetrieveData";
|
|
1171
|
-
if (options?.withoutUI ==
|
|
1172
|
-
if (options?.withoutUI ==
|
|
1149
|
+
if (options?.withoutUI == _mdl_DataRetrieval__WEBPACK_IMPORTED_MODULE_108__.MDLDeviceRetrieval.NFC) func = "engageDeviceNFC";
|
|
1150
|
+
if (options?.withoutUI == _mdl_DataRetrieval__WEBPACK_IMPORTED_MODULE_108__.MDLDeviceRetrieval.BLE) func = "engageDeviceBLE";
|
|
1173
1151
|
|
|
1174
1152
|
var response = await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)(func, [retrieval.toJson(), options?.engagement?.toJson()]);
|
|
1175
1153
|
var jsonObject = JSON.parse(response);
|
|
@@ -1739,12 +1717,10 @@ class RFIDException {
|
|
|
1739
1717
|
|
|
1740
1718
|
__webpack_require__.r(__webpack_exports__);
|
|
1741
1719
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1742
|
-
/* harmony export */ _setCAProtocolCompletion: () => (/* binding */ _setCAProtocolCompletion),
|
|
1743
1720
|
/* harmony export */ _setChipDetectedCompletion: () => (/* binding */ _setChipDetectedCompletion),
|
|
1744
1721
|
/* harmony export */ _setCustomButtonTappedCompletion: () => (/* binding */ _setCustomButtonTappedCompletion),
|
|
1745
1722
|
/* harmony export */ _setDocumentReaderCompletion: () => (/* binding */ _setDocumentReaderCompletion),
|
|
1746
1723
|
/* harmony export */ _setDocumentReaderPrepareCompletion: () => (/* binding */ _setDocumentReaderPrepareCompletion),
|
|
1747
|
-
/* harmony export */ _setPACEProtocolCompletion: () => (/* binding */ _setPACEProtocolCompletion),
|
|
1748
1724
|
/* harmony export */ _setPaCertificateCompletion: () => (/* binding */ _setPaCertificateCompletion),
|
|
1749
1725
|
/* harmony export */ _setRFIDCompletion: () => (/* binding */ _setRFIDCompletion),
|
|
1750
1726
|
/* harmony export */ _setRFIDProgressCompletion: () => (/* binding */ _setRFIDProgressCompletion),
|
|
@@ -1763,10 +1739,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1763
1739
|
/* harmony import */ var _rfid_RFIDNotification__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../rfid/RFIDNotification */ "./src/rfid/RFIDNotification.js");
|
|
1764
1740
|
/* harmony import */ var _rfid_PAResourcesIssuer__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../rfid/PAResourcesIssuer */ "./src/rfid/PAResourcesIssuer.js");
|
|
1765
1741
|
/* harmony import */ var _rfid_TAChallenge__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../rfid/TAChallenge */ "./src/rfid/TAChallenge.js");
|
|
1766
|
-
/* harmony import */ var _rfid_PACEProtocol__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../rfid/PACEProtocol */ "./src/rfid/PACEProtocol.js");
|
|
1767
|
-
/* harmony import */ var _rfid_CAProtocol__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../rfid/CAProtocol */ "./src/rfid/CAProtocol.js");
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
1742
|
|
|
1771
1743
|
|
|
1772
1744
|
|
|
@@ -1866,28 +1838,12 @@ function _setTaCertificateCompletion(completion) {
|
|
|
1866
1838
|
|
|
1867
1839
|
function _setTaSignatureCompletion(completion) {
|
|
1868
1840
|
_setEvent("ta_signature_completion", completion, json => {
|
|
1869
|
-
return [_rfid_TAChallenge__WEBPACK_IMPORTED_MODULE_7__.TAChallenge.fromJson(
|
|
1841
|
+
return [_rfid_TAChallenge__WEBPACK_IMPORTED_MODULE_7__.TAChallenge.fromJson(json.decode(msg)), async signature => {
|
|
1870
1842
|
await exec("provideTASignature", [signature])
|
|
1871
1843
|
}]
|
|
1872
1844
|
})
|
|
1873
1845
|
}
|
|
1874
1846
|
|
|
1875
|
-
function _setPACEProtocolCompletion(completion) {
|
|
1876
|
-
_setEvent("paceProtocolCompletionEvent", completion, json => {
|
|
1877
|
-
return [JSON.parse(json).map(item => _rfid_PACEProtocol__WEBPACK_IMPORTED_MODULE_8__.PACEProtocol.fromJson(item)), async protocol => {
|
|
1878
|
-
await exec("selectPACEProtocol", [protocol])
|
|
1879
|
-
}]
|
|
1880
|
-
})
|
|
1881
|
-
}
|
|
1882
|
-
|
|
1883
|
-
function _setCAProtocolCompletion(completion) {
|
|
1884
|
-
_setEvent("caProtocolCompletionEvent", completion, json => {
|
|
1885
|
-
return [JSON.parse(json).map(item => _rfid_CAProtocol__WEBPACK_IMPORTED_MODULE_9__.CAProtocol.fromJson(item)), async protocol => {
|
|
1886
|
-
await exec("selectCAProtocol", [protocol])
|
|
1887
|
-
}]
|
|
1888
|
-
})
|
|
1889
|
-
}
|
|
1890
|
-
|
|
1891
1847
|
|
|
1892
1848
|
/***/ },
|
|
1893
1849
|
|
|
@@ -12069,47 +12025,6 @@ class Value {
|
|
|
12069
12025
|
}
|
|
12070
12026
|
}
|
|
12071
12027
|
|
|
12072
|
-
/***/ },
|
|
12073
|
-
|
|
12074
|
-
/***/ "./src/rfid/CAProtocol.js"
|
|
12075
|
-
/*!********************************!*\
|
|
12076
|
-
!*** ./src/rfid/CAProtocol.js ***!
|
|
12077
|
-
\********************************/
|
|
12078
|
-
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
12079
|
-
|
|
12080
|
-
__webpack_require__.r(__webpack_exports__);
|
|
12081
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
12082
|
-
/* harmony export */ CAProtocol: () => (/* binding */ CAProtocol)
|
|
12083
|
-
/* harmony export */ });
|
|
12084
|
-
class CAProtocol {
|
|
12085
|
-
version
|
|
12086
|
-
scheme
|
|
12087
|
-
keyAlgorithm
|
|
12088
|
-
chipIndividual
|
|
12089
|
-
|
|
12090
|
-
static fromJson(jsonObject) {
|
|
12091
|
-
if (jsonObject == null) return null
|
|
12092
|
-
const result = new CAProtocol()
|
|
12093
|
-
|
|
12094
|
-
result.version = jsonObject["version"]
|
|
12095
|
-
result.scheme = jsonObject["scheme"]
|
|
12096
|
-
result.keyAlgorithm = jsonObject["keyAlgorithm"]
|
|
12097
|
-
result.chipIndividual = jsonObject["chipIndividual"]
|
|
12098
|
-
|
|
12099
|
-
return result
|
|
12100
|
-
}
|
|
12101
|
-
|
|
12102
|
-
toJson() {
|
|
12103
|
-
return {
|
|
12104
|
-
"version": this.version,
|
|
12105
|
-
"scheme": this.scheme,
|
|
12106
|
-
"keyAlgorithm": this.keyAlgorithm,
|
|
12107
|
-
"chipIndividual": this.chipIndividual,
|
|
12108
|
-
}
|
|
12109
|
-
}
|
|
12110
|
-
}
|
|
12111
|
-
|
|
12112
|
-
|
|
12113
12028
|
/***/ },
|
|
12114
12029
|
|
|
12115
12030
|
/***/ "./src/rfid/PAAttribute.js"
|
|
@@ -12148,44 +12063,6 @@ class PAAttribute {
|
|
|
12148
12063
|
}
|
|
12149
12064
|
|
|
12150
12065
|
|
|
12151
|
-
/***/ },
|
|
12152
|
-
|
|
12153
|
-
/***/ "./src/rfid/PACEProtocol.js"
|
|
12154
|
-
/*!**********************************!*\
|
|
12155
|
-
!*** ./src/rfid/PACEProtocol.js ***!
|
|
12156
|
-
\**********************************/
|
|
12157
|
-
(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
12158
|
-
|
|
12159
|
-
__webpack_require__.r(__webpack_exports__);
|
|
12160
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
12161
|
-
/* harmony export */ PACEProtocol: () => (/* binding */ PACEProtocol)
|
|
12162
|
-
/* harmony export */ });
|
|
12163
|
-
class PACEProtocol {
|
|
12164
|
-
version
|
|
12165
|
-
stdDomainParams
|
|
12166
|
-
keyAlgorithm
|
|
12167
|
-
|
|
12168
|
-
static fromJson(jsonObject) {
|
|
12169
|
-
if (jsonObject == null) return null
|
|
12170
|
-
const result = new PACEProtocol()
|
|
12171
|
-
|
|
12172
|
-
result.version = jsonObject["version"]
|
|
12173
|
-
result.stdDomainParams = jsonObject["stdDomainParams"]
|
|
12174
|
-
result.keyAlgorithm = jsonObject["keyAlgorithm"]
|
|
12175
|
-
|
|
12176
|
-
return result
|
|
12177
|
-
}
|
|
12178
|
-
|
|
12179
|
-
toJson() {
|
|
12180
|
-
return {
|
|
12181
|
-
"version": this.version,
|
|
12182
|
-
"stdDomainParams": this.stdDomainParams,
|
|
12183
|
-
"keyAlgorithm": this.keyAlgorithm,
|
|
12184
|
-
}
|
|
12185
|
-
}
|
|
12186
|
-
}
|
|
12187
|
-
|
|
12188
|
-
|
|
12189
12066
|
/***/ },
|
|
12190
12067
|
|
|
12191
12068
|
/***/ "./src/rfid/PAResourcesIssuer.js"
|
|
@@ -5,8 +5,6 @@ import { RFIDNotification } from "../rfid/RFIDNotification";
|
|
|
5
5
|
import { PAResourcesIssuer } from "../rfid/PAResourcesIssuer";
|
|
6
6
|
import { PKDCertificate } from "../rfid/PKDCertificate";
|
|
7
7
|
import { TAChallenge } from "../rfid/TAChallenge";
|
|
8
|
-
import { PACEProtocol } from "../rfid/PACEProtocol";
|
|
9
|
-
import { CAProtocol } from "../rfid/CAProtocol";
|
|
10
8
|
|
|
11
9
|
export class RFIDConfig {
|
|
12
10
|
_completion
|
|
@@ -18,8 +16,6 @@ export class RFIDConfig {
|
|
|
18
16
|
onRequestPACertificates
|
|
19
17
|
onRequestTACertificates
|
|
20
18
|
onRequestTASignature
|
|
21
|
-
onRequestPACEProtocol
|
|
22
|
-
onRequestCAProtocol
|
|
23
19
|
|
|
24
20
|
constructor(completion) {
|
|
25
21
|
this._completion = completion
|
|
@@ -32,14 +28,4 @@ export class RFIDConfig {
|
|
|
32
28
|
result._disableUI = true
|
|
33
29
|
return result
|
|
34
30
|
}
|
|
35
|
-
|
|
36
|
-
toJson() {
|
|
37
|
-
return {
|
|
38
|
-
"paCertificates": this.onRequestPACertificates != null,
|
|
39
|
-
"taCertificates": this.onRequestTACertificates != null,
|
|
40
|
-
"taSignature": this.onRequestTASignature != null,
|
|
41
|
-
"paceProtocol": this.onRequestPACEProtocol != null,
|
|
42
|
-
"caProtocol": this.onRequestCAProtocol != null,
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
31
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { exec, serializeInterface, _setDocumentReaderCompletion, _setRFIDCompletion, _setDocumentReaderPrepareCompletion, _setCustomButtonTappedCompletion, _setVideoEncoderCompletion, _setRFIDProgressCompletion, _setChipDetectedCompletion, _setRetryReadChipCompletion, _setPaCertificateCompletion, _setTaCertificateCompletion, _setTaSignatureCompletion
|
|
1
|
+
import { exec, serializeInterface, _setDocumentReaderCompletion, _setRFIDCompletion, _setDocumentReaderPrepareCompletion, _setCustomButtonTappedCompletion, _setVideoEncoderCompletion, _setRFIDProgressCompletion, _setChipDetectedCompletion, _setRetryReadChipCompletion, _setPaCertificateCompletion, _setTaCertificateCompletion, _setTaSignatureCompletion } from './internal/bridge'
|
|
2
2
|
|
|
3
3
|
import { OnlineProcessingConfig, ImageFormat, OnlineMode } from './config/OnlineProcessingConfig';
|
|
4
4
|
import { InitConfig } from './config/InitConfig';
|
|
@@ -135,10 +135,8 @@ import { TccParams } from './rfid/TccParams';
|
|
|
135
135
|
import { RFIDNotification, RFIDNotificationCodes } from './rfid/RFIDNotification';
|
|
136
136
|
import { PAAttribute } from './rfid/PAAttribute';
|
|
137
137
|
import { TAChallenge } from './rfid/TAChallenge';
|
|
138
|
-
import { PACEProtocol } from './rfid/PACEProtocol';
|
|
139
|
-
import { CAProtocol } from './rfid/CAProtocol';
|
|
140
138
|
import { PKDCertificate, PKDResourceType } from './rfid/PKDCertificate';
|
|
141
|
-
export { PAResourcesIssuer, RFIDErrorCodes, TccParams, RFIDNotification, RFIDNotificationCodes, PAAttribute, TAChallenge,
|
|
139
|
+
export { PAResourcesIssuer, RFIDErrorCodes, TccParams, RFIDNotification, RFIDNotificationCodes, PAAttribute, TAChallenge, PKDCertificate, PKDResourceType };
|
|
142
140
|
|
|
143
141
|
import { DataRetrieval, MDLDocRequestPreset, MDLDeviceRetrieval } from './mdl/DataRetrieval';
|
|
144
142
|
import { DeviceEngagement, MDLDeviceEngagement } from './mdl/DeviceEngagement';
|
|
@@ -341,15 +339,15 @@ export class DocumentReader {
|
|
|
341
339
|
_setRFIDProgressCompletion(config.onProgress);
|
|
342
340
|
_setChipDetectedCompletion(config.onChipDetected);
|
|
343
341
|
_setRetryReadChipCompletion(config.onRetryReadChip);
|
|
344
|
-
|
|
345
342
|
_setPaCertificateCompletion(config.onRequestPACertificates);
|
|
346
343
|
_setTaCertificateCompletion(config.onRequestTACertificates);
|
|
347
344
|
_setTaSignatureCompletion(config.onRequestTASignature);
|
|
348
345
|
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
346
|
+
exec(config._disableUI ? "readRFID" : "startRFIDReader", [
|
|
347
|
+
config.onRequestPACertificates != null,
|
|
348
|
+
config.onRequestTACertificates != null,
|
|
349
|
+
config.onRequestTASignature != null,
|
|
350
|
+
]);
|
|
353
351
|
}
|
|
354
352
|
|
|
355
353
|
stopScanner() {
|
|
@@ -7,8 +7,6 @@ import { PrepareProgress } from '../info/PrepareProgress'
|
|
|
7
7
|
import { RFIDNotification } from '../rfid/RFIDNotification'
|
|
8
8
|
import { PAResourcesIssuer } from '../rfid/PAResourcesIssuer'
|
|
9
9
|
import { TAChallenge } from '../rfid/TAChallenge'
|
|
10
|
-
import { PACEProtocol } from '../rfid/PACEProtocol'
|
|
11
|
-
import { CAProtocol } from '../rfid/CAProtocol'
|
|
12
10
|
|
|
13
11
|
const { RNDocumentReader } = NativeModules
|
|
14
12
|
var eventManager = new NativeEventEmitter(RNDocumentReader)
|
|
@@ -99,24 +97,8 @@ export function _setTaCertificateCompletion(completion) {
|
|
|
99
97
|
|
|
100
98
|
export function _setTaSignatureCompletion(completion) {
|
|
101
99
|
_setEvent("ta_signature_completion", completion, json => {
|
|
102
|
-
return [TAChallenge.fromJson(
|
|
100
|
+
return [TAChallenge.fromJson(json.decode(msg)), async signature => {
|
|
103
101
|
await exec("provideTASignature", [signature])
|
|
104
102
|
}]
|
|
105
103
|
})
|
|
106
104
|
}
|
|
107
|
-
|
|
108
|
-
export function _setPACEProtocolCompletion(completion) {
|
|
109
|
-
_setEvent("paceProtocolCompletionEvent", completion, json => {
|
|
110
|
-
return [JSON.parse(json).map(item => PACEProtocol.fromJson(item)), async protocol => {
|
|
111
|
-
await exec("selectPACEProtocol", [protocol])
|
|
112
|
-
}]
|
|
113
|
-
})
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
export function _setCAProtocolCompletion(completion) {
|
|
117
|
-
_setEvent("caProtocolCompletionEvent", completion, json => {
|
|
118
|
-
return [JSON.parse(json).map(item => CAProtocol.fromJson(item)), async protocol => {
|
|
119
|
-
await exec("selectCAProtocol", [protocol])
|
|
120
|
-
}]
|
|
121
|
-
})
|
|
122
|
-
}
|