@regulaforensics/document-reader 9.4.716-nightly → 9.4.718-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
|
@@ -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
|
/**
|
|
12
10
|
* A configuration file for the RFID chip processing.
|
|
@@ -51,16 +49,6 @@ export declare class RFIDConfig {
|
|
|
51
49
|
*/
|
|
52
50
|
onRequestTASignature?: TaSignatureCompletion;
|
|
53
51
|
|
|
54
|
-
/**
|
|
55
|
-
* Callback for receiving RFID request data
|
|
56
|
-
*/
|
|
57
|
-
onRequestPACEProtocol?: PACEProtocolCompletion;
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
* Callback for receiving RFID request data
|
|
61
|
-
*/
|
|
62
|
-
onRequestCAProtocol?: CAProtocolCompletion;
|
|
63
|
-
|
|
64
52
|
/**
|
|
65
53
|
* Regular RFID chip reading.
|
|
66
54
|
*
|
|
@@ -118,12 +106,12 @@ export type ChipDetectedCompletion = () => void;
|
|
|
118
106
|
export type RetryReadChipCompletion = (error: RFIDException) => void;
|
|
119
107
|
|
|
120
108
|
/**
|
|
121
|
-
* Callback for receiving RFID request data
|
|
109
|
+
* Callback for receiving RFID request data
|
|
122
110
|
*/
|
|
123
111
|
export type PaCertificateCompletion = (serialNumber: string, issuer: PAResourcesIssuer | null, request: PKDCertificateRequest) => void;
|
|
124
112
|
|
|
125
113
|
/**
|
|
126
|
-
* Callback for receiving RFID request data
|
|
114
|
+
* Callback for receiving RFID request data
|
|
127
115
|
*/
|
|
128
116
|
export type TaCertificateCompletion = (keyCAR: string | null, request: PKDCertificateRequest) => void;
|
|
129
117
|
|
|
@@ -133,7 +121,7 @@ export type TaCertificateCompletion = (keyCAR: string | null, request: PKDCertif
|
|
|
133
121
|
export type PKDCertificateRequest = (certificates?: PKDCertificate[]) => Promise<void>;
|
|
134
122
|
|
|
135
123
|
/**
|
|
136
|
-
* Callback for receiving RFID request data
|
|
124
|
+
* Callback for receiving RFID request data
|
|
137
125
|
*/
|
|
138
126
|
export type TaSignatureCompletion = (challenge: TAChallenge | null, request: TASignatureRequest) => void;
|
|
139
127
|
|
|
@@ -141,23 +129,3 @@ export type TaSignatureCompletion = (challenge: TAChallenge | null, request: TAS
|
|
|
141
129
|
* Provided to a user for passing TASignature to the native part of DocumentReader. Base64 string.
|
|
142
130
|
*/
|
|
143
131
|
export type TASignatureRequest = (signature?: string) => Promise<void>;
|
|
144
|
-
|
|
145
|
-
/**
|
|
146
|
-
* Callback for receiving RFID request data.
|
|
147
|
-
*/
|
|
148
|
-
export type PACEProtocolCompletion = (protocols: PACEProtocol[], request: PACEProtocolRequest) => void;
|
|
149
|
-
|
|
150
|
-
/**
|
|
151
|
-
* Provided to a user for choosing PACEProtocol.
|
|
152
|
-
*/
|
|
153
|
-
export type PACEProtocolRequest = (protocol: PACEProtocol) => Promise<void>;
|
|
154
|
-
|
|
155
|
-
/**
|
|
156
|
-
* Callback for receiving RFID request data.
|
|
157
|
-
*/
|
|
158
|
-
export type CAProtocolCompletion = (protocols: CAProtocol[], request: CAProtocolRequest) => void;
|
|
159
|
-
|
|
160
|
-
/**
|
|
161
|
-
* Provided to a user for choosing CAProtocol.
|
|
162
|
-
*/
|
|
163
|
-
export type CAProtocolRequest = (protocol: CAProtocol) => Promise<void>;
|
package/www/types/index.d.ts
CHANGED
|
@@ -133,10 +133,8 @@ import { TccParams } from './rfid/TccParams';
|
|
|
133
133
|
import { RFIDNotification, RFIDNotificationCodes } from './rfid/RFIDNotification';
|
|
134
134
|
import { PAAttribute } from './rfid/PAAttribute';
|
|
135
135
|
import { TAChallenge } from './rfid/TAChallenge';
|
|
136
|
-
import { PACEProtocol } from './rfid/PACEProtocol';
|
|
137
|
-
import { CAProtocol } from './rfid/CAProtocol';
|
|
138
136
|
import { PKDCertificate, PKDResourceType } from './rfid/PKDCertificate';
|
|
139
|
-
export { PAResourcesIssuer, RFIDErrorCodes, TccParams, RFIDNotification, RFIDNotificationCodes, PAAttribute, TAChallenge,
|
|
137
|
+
export { PAResourcesIssuer, RFIDErrorCodes, TccParams, RFIDNotification, RFIDNotificationCodes, PAAttribute, TAChallenge, PKDCertificate, PKDResourceType };
|
|
140
138
|
|
|
141
139
|
import { DataRetrieval, MDLDocRequestPreset, MDLDeviceRetrieval } from './mdl/DataRetrieval';
|
|
142
140
|
import { DeviceEngagement, MDLDeviceEngagement } from './mdl/DeviceEngagement';
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
export class CAProtocol {
|
|
2
|
-
version
|
|
3
|
-
scheme
|
|
4
|
-
keyAlgorithm
|
|
5
|
-
chipIndividual
|
|
6
|
-
|
|
7
|
-
static fromJson(jsonObject) {
|
|
8
|
-
if (jsonObject == null) return null
|
|
9
|
-
const result = new CAProtocol()
|
|
10
|
-
|
|
11
|
-
result.version = jsonObject["version"]
|
|
12
|
-
result.scheme = jsonObject["scheme"]
|
|
13
|
-
result.keyAlgorithm = jsonObject["keyAlgorithm"]
|
|
14
|
-
result.chipIndividual = jsonObject["chipIndividual"]
|
|
15
|
-
|
|
16
|
-
return result
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
toJson() {
|
|
20
|
-
return {
|
|
21
|
-
"version": this.version,
|
|
22
|
-
"scheme": this.scheme,
|
|
23
|
-
"keyAlgorithm": this.keyAlgorithm,
|
|
24
|
-
"chipIndividual": this.chipIndividual,
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
export class PACEProtocol {
|
|
2
|
-
version
|
|
3
|
-
stdDomainParams
|
|
4
|
-
keyAlgorithm
|
|
5
|
-
|
|
6
|
-
static fromJson(jsonObject) {
|
|
7
|
-
if (jsonObject == null) return null
|
|
8
|
-
const result = new PACEProtocol()
|
|
9
|
-
|
|
10
|
-
result.version = jsonObject["version"]
|
|
11
|
-
result.stdDomainParams = jsonObject["stdDomainParams"]
|
|
12
|
-
result.keyAlgorithm = jsonObject["keyAlgorithm"]
|
|
13
|
-
|
|
14
|
-
return result
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
toJson() {
|
|
18
|
-
return {
|
|
19
|
-
"version": this.version,
|
|
20
|
-
"stdDomainParams": this.stdDomainParams,
|
|
21
|
-
"keyAlgorithm": this.keyAlgorithm,
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
export class CAProtocol {
|
|
2
|
-
version
|
|
3
|
-
scheme
|
|
4
|
-
keyAlgorithm
|
|
5
|
-
chipIndividual
|
|
6
|
-
|
|
7
|
-
static fromJson(jsonObject) {
|
|
8
|
-
if (jsonObject == null) return null
|
|
9
|
-
const result = new CAProtocol()
|
|
10
|
-
|
|
11
|
-
result.version = jsonObject["version"]
|
|
12
|
-
result.scheme = jsonObject["scheme"]
|
|
13
|
-
result.keyAlgorithm = jsonObject["keyAlgorithm"]
|
|
14
|
-
result.chipIndividual = jsonObject["chipIndividual"]
|
|
15
|
-
|
|
16
|
-
return result
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
toJson() {
|
|
20
|
-
return {
|
|
21
|
-
"version": this.version,
|
|
22
|
-
"scheme": this.scheme,
|
|
23
|
-
"keyAlgorithm": this.keyAlgorithm,
|
|
24
|
-
"chipIndividual": this.chipIndividual,
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
export class PACEProtocol {
|
|
2
|
-
version
|
|
3
|
-
stdDomainParams
|
|
4
|
-
keyAlgorithm
|
|
5
|
-
|
|
6
|
-
static fromJson(jsonObject) {
|
|
7
|
-
if (jsonObject == null) return null
|
|
8
|
-
const result = new PACEProtocol()
|
|
9
|
-
|
|
10
|
-
result.version = jsonObject["version"]
|
|
11
|
-
result.stdDomainParams = jsonObject["stdDomainParams"]
|
|
12
|
-
result.keyAlgorithm = jsonObject["keyAlgorithm"]
|
|
13
|
-
|
|
14
|
-
return result
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
toJson() {
|
|
18
|
-
return {
|
|
19
|
-
"version": this.version,
|
|
20
|
-
"stdDomainParams": this.stdDomainParams,
|
|
21
|
-
"keyAlgorithm": this.keyAlgorithm,
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
}
|