scandit-react-native-datacapture-id 6.27.2 → 6.28.0-beta.2
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/android/build.gradle +1 -1
- package/android/src/main/kotlin/com/scandit/datacapture/reactnative/id/ScanditDataCaptureIdModule.kt +5 -0
- package/dist/dts/index.d.ts +1 -1
- package/dist/dts/native/IdCaptureProxy.d.ts +1 -0
- package/dist/id.js +103 -29
- package/dist/id.js.map +1 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/ios/Sources/ScanditDataCaptureId.m +5 -0
- package/ios/Sources/ScanditDataCaptureId.swift +5 -0
- package/package.json +4 -4
- package/scandit-react-native-datacapture-id.podspec +1 -1
package/android/build.gradle
CHANGED
|
@@ -75,7 +75,7 @@ if (file( "${rootProject.projectDir}/build-test.gradle").exists()) {
|
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
dependencies {
|
|
78
|
-
def sdk_version = "6.
|
|
78
|
+
def sdk_version = "6.28.0-beta.2"
|
|
79
79
|
|
|
80
80
|
println("Version of the native sdk used in this build: ${safeExtGet("global_sdk_version", sdk_version)}")
|
|
81
81
|
api project(path: ":scandit-react-native-datacapture-core")
|
package/android/src/main/kotlin/com/scandit/datacapture/reactnative/id/ScanditDataCaptureIdModule.kt
CHANGED
|
@@ -96,6 +96,11 @@ class ScanditDataCaptureIdModule(
|
|
|
96
96
|
idCaptureModule.applyModeSettings(modeSettingsJson, ReactNativeResult(promise))
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
+
@ReactMethod
|
|
100
|
+
fun updateIdCaptureFeedback(feedbackJson: String, promise: Promise) {
|
|
101
|
+
idCaptureModule.updateFeedback(feedbackJson, ReactNativeResult(promise))
|
|
102
|
+
}
|
|
103
|
+
|
|
99
104
|
override fun getConstants(): MutableMap<String, Any> = mutableMapOf(
|
|
100
105
|
DEFAULTS_KEY to idCaptureModule.getDefaults()
|
|
101
106
|
)
|
package/dist/dts/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { ComparisonCheck, ComparisonCheckResult, DateResult, IdAnonymizationMode, IdDocumentType, IdImageType, LocalizedOnlyId, RejectedId, SupportedSides, TextHintPosition, VizMrzComparisonCheck } from 'scandit-datacapture-frameworks-id';
|
|
2
|
-
export { AAMVABarcodeResult, AamvaBarcodeVerificationResult, AamvaBarcodeVerifier, AamvaVizBarcodeComparisonResult, AamvaVizBarcodeComparisonVerifier, ApecBusinessTravelCardMrzResult, ArgentinaIdBarcodeResult, CapturedId, CapturedResultType, ChinaExitEntryPermitMRZResult, ChinaMainlandTravelPermitMRZResult, ChinaOneWayPermitBackMrzResult, ChinaOneWayPermitFrontMrzResult, ColombiaDlBarcodeResult, ColombiaIdBarcodeResult, CommonAccessCardBarcodeResult, DocumentType, MRZResult, ProfessionalDrivingPermit, SouthAfricaDlBarcodeResult, SouthAfricaIdBarcodeResult, USUniformedServicesBarcodeResult, USVisaVIZResult, VehicleRestriction, VizMrzComparisonCheckResult, VizMrzComparisonResult, VizMrzComparisonVerifier, VIZResult } from 'scandit-datacapture-frameworks-id';
|
|
2
|
+
export { AAMVABarcodeResult, AamvaBarcodeVerificationResult, AamvaBarcodeVerificationStatus, AamvaBarcodeVerifier, AamvaVizBarcodeComparisonResult, AamvaVizBarcodeComparisonVerifier, ApecBusinessTravelCardMrzResult, ArgentinaIdBarcodeResult, CapturedId, CapturedResultType, ChinaExitEntryPermitMRZResult, ChinaMainlandTravelPermitMRZResult, ChinaOneWayPermitBackMrzResult, ChinaOneWayPermitFrontMrzResult, ColombiaDlBarcodeResult, ColombiaIdBarcodeResult, CommonAccessCardBarcodeResult, DocumentType, MRZResult, ProfessionalDrivingPermit, SouthAfricaDlBarcodeResult, SouthAfricaIdBarcodeResult, USUniformedServicesBarcodeResult, USVisaVIZResult, VehicleRestriction, VizMrzComparisonCheckResult, VizMrzComparisonResult, VizMrzComparisonVerifier, VIZResult } from 'scandit-datacapture-frameworks-id';
|
|
3
3
|
export { IdCaptureController, IdCaptureListenerController, IdCaptureListenerProxy, IdCaptureListenerEvents, IdCaptureProxy } from 'scandit-datacapture-frameworks-id';
|
|
4
4
|
export { IdCapture, IdCaptureError, IdCaptureFeedback, IdCaptureListener, IdCaptureOverlay, IdCaptureSession, IdCaptureSettings, IdLayout, IdLayoutLineStyle, IdLayoutStyle, RejectionReason } from 'scandit-datacapture-frameworks-id';
|
|
@@ -9,4 +9,5 @@ export declare class NativeIdCaptureProxy implements IdCaptureProxy {
|
|
|
9
9
|
updateIdCaptureMode(modeJson: string): Promise<void>;
|
|
10
10
|
applyIdCaptureModeSettings(newSettingsJson: string): Promise<void>;
|
|
11
11
|
updateIdCaptureOverlay(overlayJson: string): Promise<void>;
|
|
12
|
+
updateFeedback(feedbackJson: string): Promise<void>;
|
|
12
13
|
}
|
package/dist/id.js
CHANGED
|
@@ -264,11 +264,35 @@ class AAMVABarcodeResult {
|
|
|
264
264
|
}
|
|
265
265
|
}
|
|
266
266
|
|
|
267
|
+
var AamvaBarcodeVerificationStatus;
|
|
268
|
+
(function (AamvaBarcodeVerificationStatus) {
|
|
269
|
+
AamvaBarcodeVerificationStatus["Authentic"] = "authentic";
|
|
270
|
+
AamvaBarcodeVerificationStatus["LikelyForged"] = "maybeForged";
|
|
271
|
+
AamvaBarcodeVerificationStatus["Forged"] = "forged";
|
|
272
|
+
})(AamvaBarcodeVerificationStatus || (AamvaBarcodeVerificationStatus = {}));
|
|
273
|
+
|
|
267
274
|
class AamvaBarcodeVerificationResult {
|
|
275
|
+
/**
|
|
276
|
+
* @deprecated
|
|
277
|
+
*/
|
|
268
278
|
get allChecksPassed() { return this.json.allChecksPassed; }
|
|
279
|
+
get status() {
|
|
280
|
+
return this._status;
|
|
281
|
+
}
|
|
269
282
|
static fromJSON(json) {
|
|
270
283
|
const result = new AamvaBarcodeVerificationResult();
|
|
271
284
|
result.json = json;
|
|
285
|
+
switch (result.json.verificationStatus) {
|
|
286
|
+
case "authentic":
|
|
287
|
+
result._status = AamvaBarcodeVerificationStatus.Authentic;
|
|
288
|
+
break;
|
|
289
|
+
case "maybeForged":
|
|
290
|
+
result._status = AamvaBarcodeVerificationStatus.LikelyForged;
|
|
291
|
+
break;
|
|
292
|
+
case "forged":
|
|
293
|
+
result._status = AamvaBarcodeVerificationStatus.Forged;
|
|
294
|
+
break;
|
|
295
|
+
}
|
|
272
296
|
return result;
|
|
273
297
|
}
|
|
274
298
|
}
|
|
@@ -338,6 +362,9 @@ class IdCaptureController extends BaseController {
|
|
|
338
362
|
updateIdCaptureOverlay(overlay) {
|
|
339
363
|
return this._proxy.updateIdCaptureOverlay(JSON.stringify(overlay.toJSON()));
|
|
340
364
|
}
|
|
365
|
+
updateFeedback(feedback) {
|
|
366
|
+
return this._proxy.updateFeedback(JSON.stringify(feedback.toJSON()));
|
|
367
|
+
}
|
|
341
368
|
}
|
|
342
369
|
|
|
343
370
|
class ApecBusinessTravelCardMrzResult {
|
|
@@ -1067,6 +1094,71 @@ class IdCaptureListenerController {
|
|
|
1067
1094
|
}
|
|
1068
1095
|
}
|
|
1069
1096
|
|
|
1097
|
+
class IdCaptureFeedback extends DefaultSerializeable {
|
|
1098
|
+
static get defaultFeedback() {
|
|
1099
|
+
return new IdCaptureFeedback(IdCaptureFeedback.idDefaults.IdCapture.Feedback.idCaptured, IdCaptureFeedback.idDefaults.IdCapture.Feedback.idRejected, IdCaptureFeedback.idDefaults.IdCapture.Feedback.idCaptureTimeout);
|
|
1100
|
+
}
|
|
1101
|
+
get idCaptured() {
|
|
1102
|
+
return this._idCaptured;
|
|
1103
|
+
}
|
|
1104
|
+
set idCaptured(idCaptured) {
|
|
1105
|
+
this._idCaptured = idCaptured;
|
|
1106
|
+
this.updateFeedback();
|
|
1107
|
+
}
|
|
1108
|
+
get idRejected() {
|
|
1109
|
+
return this._idRejected;
|
|
1110
|
+
}
|
|
1111
|
+
set idRejected(idRejected) {
|
|
1112
|
+
this._idRejected = idRejected;
|
|
1113
|
+
this.updateFeedback();
|
|
1114
|
+
}
|
|
1115
|
+
get idCaptureTimeout() {
|
|
1116
|
+
return this._idCaptureTimeout;
|
|
1117
|
+
}
|
|
1118
|
+
set idCaptureTimeout(idCaptureTimeout) {
|
|
1119
|
+
this._idCaptureTimeout = idCaptureTimeout;
|
|
1120
|
+
this.updateFeedback();
|
|
1121
|
+
}
|
|
1122
|
+
static fromJSON(json) {
|
|
1123
|
+
const idCaptured = Feedback.fromJSON(json.idCaptured);
|
|
1124
|
+
const idRejected = Feedback.fromJSON(json.idRejected);
|
|
1125
|
+
const idCaptureTimeout = Feedback.fromJSON(json.idCaptureTimeout);
|
|
1126
|
+
return new IdCaptureFeedback(idCaptured, idRejected, idCaptureTimeout);
|
|
1127
|
+
}
|
|
1128
|
+
static get idDefaults() {
|
|
1129
|
+
return getIdDefaults();
|
|
1130
|
+
}
|
|
1131
|
+
updateFeedback() {
|
|
1132
|
+
var _a;
|
|
1133
|
+
(_a = this.controller) === null || _a === void 0 ? void 0 : _a.updateFeedback(this);
|
|
1134
|
+
}
|
|
1135
|
+
constructor(idCaptured, idRejected, idCaptureTimeout) {
|
|
1136
|
+
super();
|
|
1137
|
+
this.controller = null;
|
|
1138
|
+
this._idCaptured = IdCaptureFeedback.idDefaults.IdCapture.Feedback.idCaptured;
|
|
1139
|
+
this._idRejected = IdCaptureFeedback.idDefaults.IdCapture.Feedback.idRejected;
|
|
1140
|
+
this._idCaptureTimeout = IdCaptureFeedback.idDefaults.IdCapture.Feedback.idCaptureTimeout;
|
|
1141
|
+
this.idCaptured = idCaptured;
|
|
1142
|
+
this.idRejected = idRejected;
|
|
1143
|
+
this.idCaptureTimeout = idCaptureTimeout;
|
|
1144
|
+
}
|
|
1145
|
+
}
|
|
1146
|
+
__decorate([
|
|
1147
|
+
ignoreFromSerialization
|
|
1148
|
+
], IdCaptureFeedback.prototype, "controller", void 0);
|
|
1149
|
+
__decorate([
|
|
1150
|
+
nameForSerialization('idCaptured')
|
|
1151
|
+
], IdCaptureFeedback.prototype, "_idCaptured", void 0);
|
|
1152
|
+
__decorate([
|
|
1153
|
+
nameForSerialization('idRejected')
|
|
1154
|
+
], IdCaptureFeedback.prototype, "_idRejected", void 0);
|
|
1155
|
+
__decorate([
|
|
1156
|
+
nameForSerialization('idCaptureTimeout')
|
|
1157
|
+
], IdCaptureFeedback.prototype, "_idCaptureTimeout", void 0);
|
|
1158
|
+
__decorate([
|
|
1159
|
+
ignoreFromSerialization
|
|
1160
|
+
], IdCaptureFeedback, "idDefaults", null);
|
|
1161
|
+
|
|
1070
1162
|
class IdCapture extends DefaultSerializeable {
|
|
1071
1163
|
get isEnabled() {
|
|
1072
1164
|
return this._isEnabled;
|
|
@@ -1083,7 +1175,8 @@ class IdCapture extends DefaultSerializeable {
|
|
|
1083
1175
|
}
|
|
1084
1176
|
set feedback(feedback) {
|
|
1085
1177
|
this._feedback = feedback;
|
|
1086
|
-
this.controller.
|
|
1178
|
+
this._feedback.controller = this.controller;
|
|
1179
|
+
this.controller.updateFeedback(feedback);
|
|
1087
1180
|
}
|
|
1088
1181
|
static get recommendedCameraSettings() {
|
|
1089
1182
|
return new CameraSettings(IdCapture.idCaptureDefaults.IdCapture.RecommendedCameraSettings);
|
|
@@ -1115,11 +1208,13 @@ class IdCapture extends DefaultSerializeable {
|
|
|
1115
1208
|
super();
|
|
1116
1209
|
this.type = 'idCapture';
|
|
1117
1210
|
this._isEnabled = true;
|
|
1211
|
+
this._feedback = IdCaptureFeedback.defaultFeedback;
|
|
1118
1212
|
this.privateContext = null;
|
|
1119
1213
|
this.listeners = [];
|
|
1120
1214
|
this.isInListenerCallback = false;
|
|
1121
1215
|
this.controller = IdCaptureController.forIdCapture(this);
|
|
1122
1216
|
this.listenerController = IdCaptureListenerController.forIdCapture(this);
|
|
1217
|
+
this.feedback.controller = this.controller;
|
|
1123
1218
|
}
|
|
1124
1219
|
applySettings(settings) {
|
|
1125
1220
|
this.settings = settings;
|
|
@@ -1166,33 +1261,6 @@ __decorate([
|
|
|
1166
1261
|
ignoreFromSerialization
|
|
1167
1262
|
], IdCapture, "idCaptureDefaults", null);
|
|
1168
1263
|
|
|
1169
|
-
class IdCaptureFeedback extends DefaultSerializeable {
|
|
1170
|
-
static get defaultFeedback() {
|
|
1171
|
-
return new IdCaptureFeedback(IdCaptureFeedback.idDefaults.IdCapture.Feedback.idCaptured, IdCaptureFeedback.idDefaults.IdCapture.Feedback.idRejected, IdCaptureFeedback.idDefaults.IdCapture.Feedback.idCaptureTimeout);
|
|
1172
|
-
}
|
|
1173
|
-
static fromJSON(json) {
|
|
1174
|
-
const idCaptured = Feedback.fromJSON(json.idCaptured);
|
|
1175
|
-
const idRejected = Feedback.fromJSON(json.idRejected);
|
|
1176
|
-
const idCaptureTimeout = Feedback.fromJSON(json.idCaptureTimeout);
|
|
1177
|
-
return new IdCaptureFeedback(idCaptured, idRejected, idCaptureTimeout);
|
|
1178
|
-
}
|
|
1179
|
-
static get idDefaults() {
|
|
1180
|
-
return getIdDefaults();
|
|
1181
|
-
}
|
|
1182
|
-
constructor(idCaptured, idRejected, idCaptureTimeout) {
|
|
1183
|
-
super();
|
|
1184
|
-
this.idCaptured = IdCaptureFeedback.idDefaults.IdCapture.Feedback.idCaptured;
|
|
1185
|
-
this.idRejected = IdCaptureFeedback.idDefaults.IdCapture.Feedback.idRejected;
|
|
1186
|
-
this.idCaptureTimeout = IdCaptureFeedback.idDefaults.IdCapture.Feedback.idCaptureTimeout;
|
|
1187
|
-
this.idCaptured = idCaptured;
|
|
1188
|
-
this.idRejected = idRejected;
|
|
1189
|
-
this.idCaptureTimeout = idCaptureTimeout;
|
|
1190
|
-
}
|
|
1191
|
-
}
|
|
1192
|
-
__decorate([
|
|
1193
|
-
ignoreFromSerialization
|
|
1194
|
-
], IdCaptureFeedback, "idDefaults", null);
|
|
1195
|
-
|
|
1196
1264
|
var IdLayoutLineStyle;
|
|
1197
1265
|
(function (IdLayoutLineStyle) {
|
|
1198
1266
|
IdLayoutLineStyle["Light"] = "light";
|
|
@@ -1595,6 +1663,12 @@ var DocumentType;
|
|
|
1595
1663
|
DocumentType["NbiClearance"] = "nbiClearance";
|
|
1596
1664
|
DocumentType["ProofOfRegistration"] = "proofOfRegistration";
|
|
1597
1665
|
DocumentType["TemporaryProtectionPermit"] = "temporaryProtectionPermit";
|
|
1666
|
+
DocumentType["MunicipalId"] = "municipalId";
|
|
1667
|
+
DocumentType["AfghanCitizenCard"] = "afghanCitizenCard";
|
|
1668
|
+
DocumentType["Eid"] = "eid";
|
|
1669
|
+
DocumentType["Pass"] = "pass";
|
|
1670
|
+
DocumentType["SisId"] = "sisId";
|
|
1671
|
+
DocumentType["MedicalMarijuanaCard"] = "medicalMarijuanaCard";
|
|
1598
1672
|
})(DocumentType || (DocumentType = {}));
|
|
1599
1673
|
|
|
1600
1674
|
class VizMrzComparisonResult {
|
|
@@ -1660,4 +1734,4 @@ __decorate([
|
|
|
1660
1734
|
ignoreFromSerialization
|
|
1661
1735
|
], VizMrzComparisonVerifier.prototype, "controller", void 0);
|
|
1662
1736
|
|
|
1663
|
-
export { AAMVABarcodeResult, AamvaBarcodeVerificationResult, AamvaBarcodeVerifier, AamvaVizBarcodeComparisonResult, AamvaVizBarcodeComparisonVerifier, ApecBusinessTravelCardMrzResult, ArgentinaIdBarcodeResult, CapturedId, CapturedResultType, ChinaExitEntryPermitMRZResult, ChinaMainlandTravelPermitMRZResult, ChinaOneWayPermitBackMrzResult, ChinaOneWayPermitFrontMrzResult, ColombiaDlBarcodeResult, ColombiaIdBarcodeResult, CommonAccessCardBarcodeResult, CommonCapturedIdFields, ComparisonCheckResult, DateComparisonCheck, DateResult, DocumentType, IdAnonymizationMode, IdCapture, IdCaptureController, IdCaptureError, IdCaptureFeedback, IdCaptureListenerController, IdCaptureListenerEvents, IdCaptureOverlay, IdCaptureSession, IdCaptureSettings, IdDocumentType, IdImageType, IdLayout, IdLayoutLineStyle, IdLayoutStyle, LocalizedOnlyId, MRZResult, ProfessionalDrivingPermit, RejectedId, RejectionReason, SouthAfricaDlBarcodeResult, SouthAfricaIdBarcodeResult, StringComparisonCheck, SupportedSides, TextHintPosition, USUniformedServicesBarcodeResult, USVisaVIZResult, VIZResult, VehicleRestriction, VizMrzComparisonCheckResult, VizMrzComparisonResult, VizMrzComparisonVerifier, VizMrzDateComparisonCheck, VizMrzStringComparisonCheck, getIdDefaults, loadIdDefaults, parseIdDefaults };
|
|
1737
|
+
export { AAMVABarcodeResult, AamvaBarcodeVerificationResult, AamvaBarcodeVerificationStatus, AamvaBarcodeVerifier, AamvaVizBarcodeComparisonResult, AamvaVizBarcodeComparisonVerifier, ApecBusinessTravelCardMrzResult, ArgentinaIdBarcodeResult, CapturedId, CapturedResultType, ChinaExitEntryPermitMRZResult, ChinaMainlandTravelPermitMRZResult, ChinaOneWayPermitBackMrzResult, ChinaOneWayPermitFrontMrzResult, ColombiaDlBarcodeResult, ColombiaIdBarcodeResult, CommonAccessCardBarcodeResult, CommonCapturedIdFields, ComparisonCheckResult, DateComparisonCheck, DateResult, DocumentType, IdAnonymizationMode, IdCapture, IdCaptureController, IdCaptureError, IdCaptureFeedback, IdCaptureListenerController, IdCaptureListenerEvents, IdCaptureOverlay, IdCaptureSession, IdCaptureSettings, IdDocumentType, IdImageType, IdLayout, IdLayoutLineStyle, IdLayoutStyle, LocalizedOnlyId, MRZResult, ProfessionalDrivingPermit, RejectedId, RejectionReason, SouthAfricaDlBarcodeResult, SouthAfricaIdBarcodeResult, StringComparisonCheck, SupportedSides, TextHintPosition, USUniformedServicesBarcodeResult, USVisaVIZResult, VIZResult, VehicleRestriction, VizMrzComparisonCheckResult, VizMrzComparisonResult, VizMrzComparisonVerifier, VizMrzDateComparisonCheck, VizMrzStringComparisonCheck, getIdDefaults, loadIdDefaults, parseIdDefaults };
|