@regulaforensics/document-reader 9.3.671-nightly → 9.3.674-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/Config.kt +137 -48
- package/android/src/main/java/com/regula/plugin/documentreader/JSONConstructor.kt +23 -19
- package/android/src/main/java/com/regula/plugin/documentreader/Main.kt +2 -2
- package/android/src/main/java/com/regula/plugin/documentreader/Utils.kt +5 -0
- package/examples/capacitor/package.json +1 -1
- package/examples/ionic/package.json +1 -1
- package/examples/react_native/package.json +1 -1
- package/ios/RGLWConfig.m +152 -41
- package/ios/RGLWJSONConstructor.m +5 -0
- package/package.json +1 -1
- package/plugin.xml +2 -2
- package/test/json.tsx +48 -2
- package/test/package-lock.json +1 -1
- package/test/test.tsx +5 -2
- package/www/capacitor/config/FinalizeConfig.js +4 -0
- package/www/capacitor/index.js +7 -5
- package/www/capacitor/params/customization/Customization.js +28 -18
- package/www/capacitor/params/customization/CustomizationColors.js +33 -1
- package/www/capacitor/params/customization/CustomizationContentModes.js +55 -0
- package/www/capacitor/params/customization/CustomizationFonts.js +38 -2
- package/www/capacitor/params/customization/CustomizationImages.js +145 -1
- package/www/capacitor/params/customization/CustomizationMatrices.js +39 -0
- package/www/capacitor/params/customization/CustomizationTimings.js +71 -0
- package/www/capacitor/params/process_params/BackendProcessingConfig.js +4 -0
- package/www/capacitor/params/process_params/ProcessParams.js +24 -0
- package/www/capacitor/results/visual_results/FieldType.js +2 -0
- package/www/capacitor/rfid/RFIDNotification.js +4 -1
- package/www/cordova.js +568 -140
- package/www/react-native/config/FinalizeConfig.js +4 -0
- package/www/react-native/index.js +7 -5
- package/www/react-native/params/customization/Customization.js +28 -18
- package/www/react-native/params/customization/CustomizationColors.js +33 -1
- package/www/react-native/params/customization/CustomizationContentModes.js +55 -0
- package/www/react-native/params/customization/CustomizationFonts.js +38 -2
- package/www/react-native/params/customization/CustomizationImages.js +145 -1
- package/www/react-native/params/customization/CustomizationMatrices.js +39 -0
- package/www/react-native/params/customization/CustomizationTimings.js +71 -0
- package/www/react-native/params/process_params/BackendProcessingConfig.js +4 -0
- package/www/react-native/params/process_params/ProcessParams.js +24 -0
- package/www/react-native/results/visual_results/FieldType.js +2 -0
- package/www/react-native/rfid/RFIDNotification.js +4 -1
- package/www/types/config/FinalizeConfig.d.ts +2 -1
- package/www/types/index.d.ts +7 -5
- package/www/types/params/customization/Customization.d.ts +37 -33
- package/www/types/params/customization/CustomizationColors.d.ts +4 -0
- package/www/types/params/customization/CustomizationContentModes.d.ts +41 -0
- package/www/types/params/customization/CustomizationFonts.d.ts +37 -2
- package/www/types/params/customization/CustomizationImages.d.ts +19 -0
- package/www/types/params/customization/CustomizationMatrices.d.ts +10 -0
- package/www/types/params/customization/CustomizationTimings.d.ts +14 -0
- package/www/types/params/process_params/BackendProcessingConfig.d.ts +2 -0
- package/www/types/params/process_params/ProcessParams.d.ts +9 -0
- package/www/types/results/visual_results/FieldType.d.ts +2 -0
- package/www/types/rfid/RFIDNotification.d.ts +4 -1
- package/www/capacitor/params/customization/Font.js +0 -36
- package/www/react-native/params/customization/Font.js +0 -36
- package/www/types/params/customization/Font.d.ts +0 -36
|
@@ -2,11 +2,13 @@ export class FinalizeConfig {
|
|
|
2
2
|
rawImages
|
|
3
3
|
video
|
|
4
4
|
rfidSession
|
|
5
|
+
mdlSession
|
|
5
6
|
|
|
6
7
|
constructor(options) {
|
|
7
8
|
this.rawImages = options?.rawImages
|
|
8
9
|
this.video = options?.video
|
|
9
10
|
this.rfidSession = options?.rfidSession
|
|
11
|
+
this.mdlSession = options?.mdlSession
|
|
10
12
|
}
|
|
11
13
|
|
|
12
14
|
static fromJson(jsonObject) {
|
|
@@ -16,6 +18,7 @@ export class FinalizeConfig {
|
|
|
16
18
|
result.rawImages = jsonObject["rawImages"];
|
|
17
19
|
result.video = jsonObject["video"];
|
|
18
20
|
result.rfidSession = jsonObject["rfidSession"];
|
|
21
|
+
result.mdlSession = jsonObject["mdlSession"];
|
|
19
22
|
|
|
20
23
|
return result;
|
|
21
24
|
}
|
|
@@ -26,6 +29,7 @@ export class FinalizeConfig {
|
|
|
26
29
|
"rawImages": this.rawImages,
|
|
27
30
|
"video": this.video,
|
|
28
31
|
"rfidSession": this.rfidSession,
|
|
32
|
+
"mdlSession": this.mdlSession,
|
|
29
33
|
}
|
|
30
34
|
}
|
|
31
35
|
}
|
|
@@ -113,12 +113,14 @@ export { LivenessParams, ProcessParams, MeasureSystem, MRZFormat, LogLevel, MrzD
|
|
|
113
113
|
import { Functionality, CameraPosition, CaptureMode, CameraMode, CaptureSessionPreset, DocReaderFrame, CameraSize } from './params/Functionality';
|
|
114
114
|
export { Functionality, CameraPosition, CaptureMode, CameraMode, CaptureSessionPreset, DocReaderFrame, CameraSize };
|
|
115
115
|
|
|
116
|
-
import { CustomizationFonts } from './params/customization/CustomizationFonts';
|
|
117
|
-
import { CustomizationImages } from './params/customization/CustomizationImages';
|
|
118
|
-
import { Font, FontStyle } from './params/customization/Font';
|
|
119
|
-
import { Customization, Cap, FrameShapeType, ViewContentMode, CustomButtonTag } from './params/customization/Customization';
|
|
120
116
|
import { CustomizationColors } from './params/customization/CustomizationColors';
|
|
121
|
-
|
|
117
|
+
import { CustomizationFonts, Font, FontStyle } from './params/customization/CustomizationFonts';
|
|
118
|
+
import { CustomizationImages } from './params/customization/CustomizationImages';
|
|
119
|
+
import { CustomizationTimings } from './params/customization/CustomizationTimings';
|
|
120
|
+
import { CustomizationMatrices } from './params/customization/CustomizationMatrices';
|
|
121
|
+
import { CustomizationContentModes, ViewContentMode } from './params/customization/CustomizationContentModes';
|
|
122
|
+
import { Customization, Cap, FrameShapeType, CustomButtonTag } from './params/customization/Customization';
|
|
123
|
+
export { CustomizationFonts, CustomizationImages, CustomizationTimings, CustomizationMatrices, CustomizationContentModes, Font, FontStyle, Customization, Cap, FrameShapeType, ViewContentMode, CustomButtonTag, CustomizationColors };
|
|
122
124
|
|
|
123
125
|
import { EPassportDataGroups } from './params/rfid_scenario/EPassportDataGroups';
|
|
124
126
|
import { EIDDataGroups } from './params/rfid_scenario/EIDDataGroups';
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { exec } from '../../internal/bridge';
|
|
2
2
|
import { DocumentReader } from '../../index';
|
|
3
3
|
import { CustomizationColors } from './CustomizationColors';
|
|
4
|
-
import { CustomizationFonts } from './CustomizationFonts';
|
|
4
|
+
import { CustomizationFonts, Font } from './CustomizationFonts';
|
|
5
5
|
import { CustomizationImages } from './CustomizationImages';
|
|
6
|
-
import {
|
|
6
|
+
import { CustomizationTimings } from './CustomizationTimings';
|
|
7
|
+
import { CustomizationContentModes, ViewContentMode } from './CustomizationContentModes';
|
|
8
|
+
import { CustomizationMatrices } from './CustomizationMatrices';
|
|
7
9
|
|
|
8
10
|
export class Customization {
|
|
9
11
|
get showStatusMessages() { return this._showStatusMessages; }
|
|
@@ -438,6 +440,24 @@ export class Customization {
|
|
|
438
440
|
val._apply(this);
|
|
439
441
|
}
|
|
440
442
|
|
|
443
|
+
get timings() { return this._timings; }
|
|
444
|
+
set timings(val) {
|
|
445
|
+
this._timings = val;
|
|
446
|
+
val._apply(this);
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
get contentModes() { return this._contentModes; }
|
|
450
|
+
set contentModes(val) {
|
|
451
|
+
this._contentModes = val;
|
|
452
|
+
val._apply(this);
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
get matrices() { return this._matrices; }
|
|
456
|
+
set matrices(val) {
|
|
457
|
+
this._matrices = val;
|
|
458
|
+
val._apply(this);
|
|
459
|
+
}
|
|
460
|
+
|
|
441
461
|
static fromJson(jsonObject) {
|
|
442
462
|
if (jsonObject == null) return null;
|
|
443
463
|
|
|
@@ -516,6 +536,9 @@ export class Customization {
|
|
|
516
536
|
result._colors = CustomizationColors.fromJson(jsonObject["colors"]);
|
|
517
537
|
result._fonts = CustomizationFonts.fromJson(jsonObject["fonts"]);
|
|
518
538
|
result._images = CustomizationImages.fromJson(jsonObject["images"]);
|
|
539
|
+
result._timings = CustomizationTimings.fromJson(jsonObject["timings"]);
|
|
540
|
+
result._contentModes = CustomizationContentModes.fromJson(jsonObject["contentModes"]);
|
|
541
|
+
result._matrices = CustomizationMatrices.fromJson(jsonObject["matrices"]);
|
|
519
542
|
|
|
520
543
|
return result;
|
|
521
544
|
}
|
|
@@ -594,6 +617,9 @@ export class Customization {
|
|
|
594
617
|
"colors": this.colors?.toJson(),
|
|
595
618
|
"fonts": this.fonts?.toJson(),
|
|
596
619
|
"images": this.images?.toJson(),
|
|
620
|
+
"timings": this.timings?.toJson(),
|
|
621
|
+
"contentModes": this.contentModes?.toJson(),
|
|
622
|
+
"matrices": this.matrices?.toJson(),
|
|
597
623
|
}
|
|
598
624
|
}
|
|
599
625
|
|
|
@@ -615,22 +641,6 @@ export const FrameShapeType = {
|
|
|
615
641
|
CORNER: 1
|
|
616
642
|
};
|
|
617
643
|
|
|
618
|
-
export const ViewContentMode = {
|
|
619
|
-
SCALE_TO_FILL: 0,
|
|
620
|
-
SCALE_ASPECT_FIT: 1,
|
|
621
|
-
SCALE_ASPECT_FILL: 2,
|
|
622
|
-
REDRAW: 3,
|
|
623
|
-
CENTER: 4,
|
|
624
|
-
TOP: 5,
|
|
625
|
-
BOTTOM: 6,
|
|
626
|
-
LEFT: 7,
|
|
627
|
-
RIGHT: 8,
|
|
628
|
-
TOP_LEFT: 9,
|
|
629
|
-
TOP_RIGHT: 10,
|
|
630
|
-
BOTTOM_LEFT: 11,
|
|
631
|
-
BOTTOM_RIGHT: 12
|
|
632
|
-
};
|
|
633
|
-
|
|
634
644
|
export const CustomButtonTag = {
|
|
635
645
|
CLOSE: 1001,
|
|
636
646
|
TORCH: 1002,
|
|
@@ -133,10 +133,34 @@ export class CustomizationColors {
|
|
|
133
133
|
this._set({ "mdlEnableNfcButtonBackground": val });
|
|
134
134
|
}
|
|
135
135
|
|
|
136
|
+
get nextPageIdCardFront() { return this._nextPageIdCardFront; }
|
|
137
|
+
set nextPageIdCardFront(val) {
|
|
138
|
+
this._nextPageIdCardFront = val;
|
|
139
|
+
this._set({ "nextPageIdCardFront": val });
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
get nextPageIdCardBack() { return this._nextPageIdCardBack; }
|
|
143
|
+
set nextPageIdCardBack(val) {
|
|
144
|
+
this._nextPageIdCardBack = val;
|
|
145
|
+
this._set({ "nextPageIdCardBack": val });
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
get nextPagePassportShift() { return this._nextPagePassportShift; }
|
|
149
|
+
set nextPagePassportShift(val) {
|
|
150
|
+
this._nextPagePassportShift = val;
|
|
151
|
+
this._set({ "nextPagePassportShift": val });
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
get nextPagePassportFlip() { return this._nextPagePassportFlip; }
|
|
155
|
+
set nextPagePassportFlip(val) {
|
|
156
|
+
this._nextPagePassportFlip = val;
|
|
157
|
+
this._set({ "nextPagePassportFlip": val });
|
|
158
|
+
}
|
|
159
|
+
|
|
136
160
|
static fromJson(jsonObject) {
|
|
137
161
|
if (jsonObject == null) return null;
|
|
138
|
-
|
|
139
162
|
const result = new CustomizationColors();
|
|
163
|
+
|
|
140
164
|
result._rfidProcessingScreenBackground = jsonObject["rfidProcessingScreenBackground"];
|
|
141
165
|
result._rfidProcessingScreenHintLabelText = jsonObject["rfidProcessingScreenHintLabelText"];
|
|
142
166
|
result._rfidProcessingScreenHintLabelBackground = jsonObject["rfidProcessingScreenHintLabelBackground"];
|
|
@@ -159,6 +183,10 @@ export class CustomizationColors {
|
|
|
159
183
|
result._mdlEnableNfcDescriptionText = jsonObject["mdlEnableNfcDescriptionText"];
|
|
160
184
|
result._mdlEnableNfcButtonText = jsonObject["mdlEnableNfcButtonText"];
|
|
161
185
|
result._mdlEnableNfcButtonBackground = jsonObject["mdlEnableNfcButtonBackground"];
|
|
186
|
+
result._nextPageIdCardFront = jsonObject["nextPageIdCardFront"];
|
|
187
|
+
result._nextPageIdCardBack = jsonObject["nextPageIdCardBack"];
|
|
188
|
+
result._nextPagePassportShift = jsonObject["nextPagePassportShift"];
|
|
189
|
+
result._nextPagePassportFlip = jsonObject["nextPagePassportFlip"];
|
|
162
190
|
|
|
163
191
|
return result;
|
|
164
192
|
}
|
|
@@ -194,6 +222,10 @@ export class CustomizationColors {
|
|
|
194
222
|
"mdlEnableNfcDescriptionText": this.mdlEnableNfcDescriptionText,
|
|
195
223
|
"mdlEnableNfcButtonText": this.mdlEnableNfcButtonText,
|
|
196
224
|
"mdlEnableNfcButtonBackground": this.mdlEnableNfcButtonBackground,
|
|
225
|
+
"nextPageIdCardFront": this.nextPageIdCardFront,
|
|
226
|
+
"nextPageIdCardBack": this.nextPageIdCardBack,
|
|
227
|
+
"nextPagePassportShift": this.nextPagePassportShift,
|
|
228
|
+
"nextPagePassportFlip": this.nextPagePassportFlip,
|
|
197
229
|
}
|
|
198
230
|
}
|
|
199
231
|
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { DocumentReader } from '../../index';
|
|
2
|
+
|
|
3
|
+
export class CustomizationContentModes {
|
|
4
|
+
get nextPageIdCardFront() { return this._nextPageIdCardFront; }
|
|
5
|
+
set nextPageIdCardFront(val) {
|
|
6
|
+
this._nextPageIdCardFront = val;
|
|
7
|
+
this._set({ "nextPageIdCardFront": val });
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
get nextPageIdCardBack() { return this._nextPageIdCardBack; }
|
|
11
|
+
set nextPageIdCardBack(val) {
|
|
12
|
+
this._nextPageIdCardBack = val;
|
|
13
|
+
this._set({ "nextPageIdCardBack": val });
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
static fromJson(jsonObject) {
|
|
17
|
+
if (jsonObject == null) return null;
|
|
18
|
+
const result = new CustomizationContentModes();
|
|
19
|
+
|
|
20
|
+
result._nextPageIdCardFront = jsonObject["nextPageIdCardFront"];
|
|
21
|
+
result._nextPageIdCardBack = jsonObject["nextPageIdCardBack"];
|
|
22
|
+
|
|
23
|
+
return result;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
_apply() { this._set(this); }
|
|
27
|
+
_set(json) {
|
|
28
|
+
const parentJson = { "contentModes": json };
|
|
29
|
+
var parent = DocumentReader.instance.customization;
|
|
30
|
+
if (this === parent.contentModes) parent._set(parentJson);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
toJson() {
|
|
34
|
+
return {
|
|
35
|
+
"nextPageIdCardFront": this.nextPageIdCardFront,
|
|
36
|
+
"nextPageIdCardBack": this.nextPageIdCardBack,
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export const ViewContentMode = {
|
|
42
|
+
SCALE_TO_FILL: 0,
|
|
43
|
+
SCALE_ASPECT_FIT: 1,
|
|
44
|
+
SCALE_ASPECT_FILL: 2,
|
|
45
|
+
REDRAW: 3,
|
|
46
|
+
CENTER: 4,
|
|
47
|
+
TOP: 5,
|
|
48
|
+
BOTTOM: 6,
|
|
49
|
+
LEFT: 7,
|
|
50
|
+
RIGHT: 8,
|
|
51
|
+
TOP_LEFT: 9,
|
|
52
|
+
TOP_RIGHT: 10,
|
|
53
|
+
BOTTOM_LEFT: 11,
|
|
54
|
+
BOTTOM_RIGHT: 12
|
|
55
|
+
};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { DocumentReader } from '../../index';
|
|
2
|
-
import { Font } from './Font';
|
|
3
2
|
|
|
4
3
|
export class CustomizationFonts {
|
|
5
4
|
get rfidProcessingScreenHintLabel() { return this._rfidProcessingScreenHintLabel; }
|
|
@@ -76,8 +75,8 @@ export class CustomizationFonts {
|
|
|
76
75
|
|
|
77
76
|
static fromJson(jsonObject) {
|
|
78
77
|
if (jsonObject == null) return null;
|
|
79
|
-
|
|
80
78
|
const result = new CustomizationFonts();
|
|
79
|
+
|
|
81
80
|
result._rfidProcessingScreenHintLabel = Font.fromJson(jsonObject["rfidProcessingScreenHintLabel"]);
|
|
82
81
|
result._rfidProcessingScreenProgressLabel = Font.fromJson(jsonObject["rfidProcessingScreenProgressLabel"]);
|
|
83
82
|
result._rfidProcessingScreenResultLabel = Font.fromJson(jsonObject["rfidProcessingScreenResultLabel"]);
|
|
@@ -118,3 +117,40 @@ export class CustomizationFonts {
|
|
|
118
117
|
}
|
|
119
118
|
}
|
|
120
119
|
}
|
|
120
|
+
|
|
121
|
+
export class Font {
|
|
122
|
+
name
|
|
123
|
+
size
|
|
124
|
+
style
|
|
125
|
+
|
|
126
|
+
constructor(name, options) {
|
|
127
|
+
this.name = name;
|
|
128
|
+
this.size = options?.size;
|
|
129
|
+
this.style = options?.style;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
static fromJson(jsonObject) {
|
|
133
|
+
if (jsonObject == null) return null;
|
|
134
|
+
|
|
135
|
+
const result = new Font(jsonObject["name"]);
|
|
136
|
+
result.size = jsonObject["size"];
|
|
137
|
+
result.style = jsonObject["style"];
|
|
138
|
+
|
|
139
|
+
return result;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
toJson() {
|
|
143
|
+
return {
|
|
144
|
+
"name": this.name,
|
|
145
|
+
"size": this.size,
|
|
146
|
+
"style": this.style,
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
export const FontStyle = {
|
|
152
|
+
NORMAL: 0,
|
|
153
|
+
BOLD: 1,
|
|
154
|
+
ITALIC: 2,
|
|
155
|
+
BOLD_ITALIC: 3
|
|
156
|
+
};
|
|
@@ -1,6 +1,60 @@
|
|
|
1
1
|
import { DocumentReader } from '../../index';
|
|
2
2
|
|
|
3
3
|
export class CustomizationImages {
|
|
4
|
+
get helpAnimation() { return this._helpAnimation; }
|
|
5
|
+
set helpAnimation(val) {
|
|
6
|
+
this._helpAnimation = val;
|
|
7
|
+
this._set({ "helpAnimation": val });
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
get livenessAnimation() { return this._livenessAnimation; }
|
|
11
|
+
set livenessAnimation(val) {
|
|
12
|
+
this._livenessAnimation = val;
|
|
13
|
+
this._set({ "livenessAnimation": val });
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
get borderBackground() { return this._borderBackground; }
|
|
17
|
+
set borderBackground(val) {
|
|
18
|
+
this._borderBackground = val;
|
|
19
|
+
this._set({ "borderBackground": val });
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
get torchButtonOn() { return this._torchButtonOn; }
|
|
23
|
+
set torchButtonOn(val) {
|
|
24
|
+
this._torchButtonOn = val;
|
|
25
|
+
this._set({ "torchButtonOn": val });
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
get torchButtonOff() { return this._torchButtonOff; }
|
|
29
|
+
set torchButtonOff(val) {
|
|
30
|
+
this._torchButtonOff = val;
|
|
31
|
+
this._set({ "torchButtonOff": val });
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
get captureButton() { return this._captureButton; }
|
|
35
|
+
set captureButton(val) {
|
|
36
|
+
this._captureButton = val;
|
|
37
|
+
this._set({ "captureButton": val });
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
get switchButton() { return this._switchButton; }
|
|
41
|
+
set switchButton(val) {
|
|
42
|
+
this._switchButton = val;
|
|
43
|
+
this._set({ "switchButton": val });
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
get closeButton() { return this._closeButton; }
|
|
47
|
+
set closeButton(val) {
|
|
48
|
+
this._closeButton = val;
|
|
49
|
+
this._set({ "closeButton": val });
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
get multipageButton() { return this._multipageButton; }
|
|
53
|
+
set multipageButton(val) {
|
|
54
|
+
this._multipageButton = val;
|
|
55
|
+
this._set({ "multipageButton": val });
|
|
56
|
+
}
|
|
57
|
+
|
|
4
58
|
get rfidProcessingScreenFailureImage() { return this._rfidProcessingScreenFailureImage; }
|
|
5
59
|
set rfidProcessingScreenFailureImage(val) {
|
|
6
60
|
this._rfidProcessingScreenFailureImage = val;
|
|
@@ -13,6 +67,12 @@ export class CustomizationImages {
|
|
|
13
67
|
this._set({ "rfidEnableNfcImage": val });
|
|
14
68
|
}
|
|
15
69
|
|
|
70
|
+
get rfidDisableNfcImage() { return this._rfidDisableNfcImage; }
|
|
71
|
+
set rfidDisableNfcImage(val) {
|
|
72
|
+
this._rfidDisableNfcImage = val;
|
|
73
|
+
this._set({ "rfidDisableNfcImage": val });
|
|
74
|
+
}
|
|
75
|
+
|
|
16
76
|
get mdlProcessingScreenFailureImage() { return this._mdlProcessingScreenFailureImage; }
|
|
17
77
|
set mdlProcessingScreenFailureImage(val) {
|
|
18
78
|
this._mdlProcessingScreenFailureImage = val;
|
|
@@ -25,14 +85,80 @@ export class CustomizationImages {
|
|
|
25
85
|
this._set({ "mdlEnableNfcImage": val });
|
|
26
86
|
}
|
|
27
87
|
|
|
88
|
+
get mdlDisableNfcImage() { return this._mdlDisableNfcImage; }
|
|
89
|
+
set mdlDisableNfcImage(val) {
|
|
90
|
+
this._mdlDisableNfcImage = val;
|
|
91
|
+
this._set({ "mdlDisableNfcImage": val });
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
get nextPageIdCardFront() { return this._nextPageIdCardFront; }
|
|
95
|
+
set nextPageIdCardFront(val) {
|
|
96
|
+
this._nextPageIdCardFront = val;
|
|
97
|
+
this._set({ "nextPageIdCardFront": val });
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
get nextPageIdCardBack() { return this._nextPageIdCardBack; }
|
|
101
|
+
set nextPageIdCardBack(val) {
|
|
102
|
+
this._nextPageIdCardBack = val;
|
|
103
|
+
this._set({ "nextPageIdCardBack": val });
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
get nextPagePassportShift() { return this._nextPagePassportShift; }
|
|
107
|
+
set nextPagePassportShift(val) {
|
|
108
|
+
this._nextPagePassportShift = val;
|
|
109
|
+
this._set({ "nextPagePassportShift": val });
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
get nextPagePassportFlipStart() { return this._nextPagePassportFlipStart; }
|
|
113
|
+
set nextPagePassportFlipStart(val) {
|
|
114
|
+
this._nextPagePassportFlipStart = val;
|
|
115
|
+
this._set({ "nextPagePassportFlipStart": val });
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
get nextPagePassportFlipClean() { return this._nextPagePassportFlipClean; }
|
|
119
|
+
set nextPagePassportFlipClean(val) {
|
|
120
|
+
this._nextPagePassportFlipClean = val;
|
|
121
|
+
this._set({ "nextPagePassportFlipClean": val });
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
get nextPagePassportFlipTop() { return this._nextPagePassportFlipTop; }
|
|
125
|
+
set nextPagePassportFlipTop(val) {
|
|
126
|
+
this._nextPagePassportFlipTop = val;
|
|
127
|
+
this._set({ "nextPagePassportFlipTop": val });
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
get nextPagePassportFlipBottom() { return this._nextPagePassportFlipBottom; }
|
|
131
|
+
set nextPagePassportFlipBottom(val) {
|
|
132
|
+
this._nextPagePassportFlipBottom = val;
|
|
133
|
+
this._set({ "nextPagePassportFlipBottom": val });
|
|
134
|
+
}
|
|
135
|
+
|
|
28
136
|
static fromJson(jsonObject) {
|
|
29
137
|
if (jsonObject == null) return null;
|
|
30
|
-
|
|
31
138
|
const result = new CustomizationImages();
|
|
139
|
+
|
|
140
|
+
result._helpAnimation = jsonObject["helpAnimation"];
|
|
141
|
+
result._livenessAnimation = jsonObject["livenessAnimation"];
|
|
142
|
+
result._borderBackground = jsonObject["borderBackground"];
|
|
143
|
+
result._torchButtonOn = jsonObject["torchButtonOn"];
|
|
144
|
+
result._torchButtonOff = jsonObject["torchButtonOff"];
|
|
145
|
+
result._captureButton = jsonObject["captureButton"];
|
|
146
|
+
result._switchButton = jsonObject["switchButton"];
|
|
147
|
+
result._closeButton = jsonObject["closeButton"];
|
|
148
|
+
result._multipageButton = jsonObject["multipageButton"];
|
|
32
149
|
result._rfidProcessingScreenFailureImage = jsonObject["rfidProcessingScreenFailureImage"];
|
|
33
150
|
result._rfidEnableNfcImage = jsonObject["rfidEnableNfcImage"];
|
|
151
|
+
result._rfidDisableNfcImage = jsonObject["rfidDisableNfcImage"];
|
|
34
152
|
result._mdlProcessingScreenFailureImage = jsonObject["mdlProcessingScreenFailureImage"];
|
|
35
153
|
result._mdlEnableNfcImage = jsonObject["mdlEnableNfcImage"];
|
|
154
|
+
result._mdlDisableNfcImage = jsonObject["mdlDisableNfcImage"];
|
|
155
|
+
result._nextPageIdCardFront = jsonObject["nextPageIdCardFront"];
|
|
156
|
+
result._nextPageIdCardBack = jsonObject["nextPageIdCardBack"];
|
|
157
|
+
result._nextPagePassportShift = jsonObject["nextPagePassportShift"];
|
|
158
|
+
result._nextPagePassportFlipStart = jsonObject["nextPagePassportFlipStart"];
|
|
159
|
+
result._nextPagePassportFlipClean = jsonObject["nextPagePassportFlipClean"];
|
|
160
|
+
result._nextPagePassportFlipTop = jsonObject["nextPagePassportFlipTop"];
|
|
161
|
+
result._nextPagePassportFlipBottom = jsonObject["nextPagePassportFlipBottom"];
|
|
36
162
|
|
|
37
163
|
return result;
|
|
38
164
|
}
|
|
@@ -46,10 +172,28 @@ export class CustomizationImages {
|
|
|
46
172
|
|
|
47
173
|
toJson() {
|
|
48
174
|
return {
|
|
175
|
+
"helpAnimation": this.helpAnimation,
|
|
176
|
+
"livenessAnimation": this.livenessAnimation,
|
|
177
|
+
"borderBackground": this.borderBackground,
|
|
178
|
+
"torchButtonOn": this.torchButtonOn,
|
|
179
|
+
"torchButtonOff": this.torchButtonOff,
|
|
180
|
+
"captureButton": this.captureButton,
|
|
181
|
+
"switchButton": this.switchButton,
|
|
182
|
+
"closeButton": this.closeButton,
|
|
183
|
+
"multipageButton": this.multipageButton,
|
|
49
184
|
"rfidProcessingScreenFailureImage": this.rfidProcessingScreenFailureImage,
|
|
50
185
|
"rfidEnableNfcImage": this.rfidEnableNfcImage,
|
|
186
|
+
"rfidDisableNfcImage": this.rfidDisableNfcImage,
|
|
51
187
|
"mdlProcessingScreenFailureImage": this.mdlProcessingScreenFailureImage,
|
|
52
188
|
"mdlEnableNfcImage": this.mdlEnableNfcImage,
|
|
189
|
+
"mdlDisableNfcImage": this.mdlDisableNfcImage,
|
|
190
|
+
"nextPageIdCardFront": this.nextPageIdCardFront,
|
|
191
|
+
"nextPageIdCardBack": this.nextPageIdCardBack,
|
|
192
|
+
"nextPagePassportShift": this.nextPagePassportShift,
|
|
193
|
+
"nextPagePassportFlipStart": this.nextPagePassportFlipStart,
|
|
194
|
+
"nextPagePassportFlipClean": this.nextPagePassportFlipClean,
|
|
195
|
+
"nextPagePassportFlipTop": this.nextPagePassportFlipTop,
|
|
196
|
+
"nextPagePassportFlipBottom": this.nextPagePassportFlipBottom,
|
|
53
197
|
}
|
|
54
198
|
}
|
|
55
199
|
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { DocumentReader } from '../../index';
|
|
2
|
+
|
|
3
|
+
export class CustomizationMatrices {
|
|
4
|
+
get nextPageIdCardFront() { return this._nextPageIdCardFront; }
|
|
5
|
+
set nextPageIdCardFront(val) {
|
|
6
|
+
this._nextPageIdCardFront = val;
|
|
7
|
+
this._set({ "nextPageIdCardFront": val });
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
get nextPageIdCardBack() { return this._nextPageIdCardBack; }
|
|
11
|
+
set nextPageIdCardBack(val) {
|
|
12
|
+
this._nextPageIdCardBack = val;
|
|
13
|
+
this._set({ "nextPageIdCardBack": val });
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
static fromJson(jsonObject) {
|
|
17
|
+
if (jsonObject == null) return null;
|
|
18
|
+
const result = new CustomizationMatrices();
|
|
19
|
+
|
|
20
|
+
result._nextPageIdCardFront = jsonObject["nextPageIdCardFront"];
|
|
21
|
+
result._nextPageIdCardBack = jsonObject["nextPageIdCardBack"];
|
|
22
|
+
|
|
23
|
+
return result;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
_apply() { this._set(this); }
|
|
27
|
+
_set(json) {
|
|
28
|
+
const parentJson = { "matrices": json };
|
|
29
|
+
var parent = DocumentReader.instance.customization;
|
|
30
|
+
if (this === parent.matrices) parent._set(parentJson);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
toJson() {
|
|
34
|
+
return {
|
|
35
|
+
"nextPageIdCardFront": this.nextPageIdCardFront,
|
|
36
|
+
"nextPageIdCardBack": this.nextPageIdCardBack,
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { DocumentReader } from '../../index';
|
|
2
|
+
|
|
3
|
+
export class CustomizationTimings {
|
|
4
|
+
get nextPageIdCardStartDelay() { return this._nextPageIdCardStartDelay; }
|
|
5
|
+
set nextPageIdCardStartDelay(val) {
|
|
6
|
+
this._nextPageIdCardStartDelay = val;
|
|
7
|
+
this._set({ "nextPageIdCardStartDelay": val });
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
get nextPageIdCardEndDelay() { return this._nextPageIdCardEndDelay; }
|
|
11
|
+
set nextPageIdCardEndDelay(val) {
|
|
12
|
+
this._nextPageIdCardEndDelay = val;
|
|
13
|
+
this._set({ "nextPageIdCardEndDelay": val });
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
get nextPagePassportShiftStartDelay() { return this._nextPagePassportShiftStartDelay; }
|
|
17
|
+
set nextPagePassportShiftStartDelay(val) {
|
|
18
|
+
this._nextPagePassportShiftStartDelay = val;
|
|
19
|
+
this._set({ "nextPagePassportShiftStartDelay": val });
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
get nextPagePassportShiftEndDelay() { return this._nextPagePassportShiftEndDelay; }
|
|
23
|
+
set nextPagePassportShiftEndDelay(val) {
|
|
24
|
+
this._nextPagePassportShiftEndDelay = val;
|
|
25
|
+
this._set({ "nextPagePassportShiftEndDelay": val });
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
get nextPagePassportFlipStartDelay() { return this._nextPagePassportFlipStartDelay; }
|
|
29
|
+
set nextPagePassportFlipStartDelay(val) {
|
|
30
|
+
this._nextPagePassportFlipStartDelay = val;
|
|
31
|
+
this._set({ "nextPagePassportFlipStartDelay": val });
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
get nextPagePassportFlipEndDelay() { return this._nextPagePassportFlipEndDelay; }
|
|
35
|
+
set nextPagePassportFlipEndDelay(val) {
|
|
36
|
+
this._nextPagePassportFlipEndDelay = val;
|
|
37
|
+
this._set({ "nextPagePassportFlipEndDelay": val });
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
static fromJson(jsonObject) {
|
|
41
|
+
if (jsonObject == null) return null;
|
|
42
|
+
const result = new CustomizationTimings();
|
|
43
|
+
|
|
44
|
+
result._nextPageIdCardStartDelay = jsonObject["nextPageIdCardStartDelay"];
|
|
45
|
+
result._nextPageIdCardEndDelay = jsonObject["nextPageIdCardEndDelay"];
|
|
46
|
+
result._nextPagePassportShiftStartDelay = jsonObject["nextPagePassportShiftStartDelay"];
|
|
47
|
+
result._nextPagePassportShiftEndDelay = jsonObject["nextPagePassportShiftEndDelay"];
|
|
48
|
+
result._nextPagePassportFlipStartDelay = jsonObject["nextPagePassportFlipStartDelay"];
|
|
49
|
+
result._nextPagePassportFlipEndDelay = jsonObject["nextPagePassportFlipEndDelay"];
|
|
50
|
+
|
|
51
|
+
return result;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
_apply() { this._set(this); }
|
|
55
|
+
_set(json) {
|
|
56
|
+
const parentJson = { "timings": json };
|
|
57
|
+
var parent = DocumentReader.instance.customization;
|
|
58
|
+
if (this === parent.timings) parent._set(parentJson);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
toJson() {
|
|
62
|
+
return {
|
|
63
|
+
"nextPageIdCardStartDelay": this.nextPageIdCardStartDelay,
|
|
64
|
+
"nextPageIdCardEndDelay": this.nextPageIdCardEndDelay,
|
|
65
|
+
"nextPagePassportShiftStartDelay": this.nextPagePassportShiftStartDelay,
|
|
66
|
+
"nextPagePassportShiftEndDelay": this.nextPagePassportShiftEndDelay,
|
|
67
|
+
"nextPagePassportFlipStartDelay": this.nextPagePassportFlipStartDelay,
|
|
68
|
+
"nextPagePassportFlipEndDelay": this.nextPagePassportFlipEndDelay,
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
@@ -2,11 +2,13 @@ export class BackendProcessingConfig {
|
|
|
2
2
|
url
|
|
3
3
|
httpHeaders
|
|
4
4
|
rfidServerSideChipVerification
|
|
5
|
+
mdlVerification
|
|
5
6
|
timeoutConnection
|
|
6
7
|
|
|
7
8
|
constructor(url, options) {
|
|
8
9
|
this.url = url;
|
|
9
10
|
this.rfidServerSideChipVerification = options?.rfidServerSideChipVerification;
|
|
11
|
+
this.mdlVerification = options?.mdlVerification;
|
|
10
12
|
this.httpHeaders = options?.httpHeaders;
|
|
11
13
|
this.timeoutConnection = options?.timeoutConnection;
|
|
12
14
|
}
|
|
@@ -17,6 +19,7 @@ export class BackendProcessingConfig {
|
|
|
17
19
|
const result = new BackendProcessingConfig(jsonObject["url"]);
|
|
18
20
|
|
|
19
21
|
result.rfidServerSideChipVerification = jsonObject["rfidServerSideChipVerification"];
|
|
22
|
+
result.mdlVerification = jsonObject["mdlVerification"];
|
|
20
23
|
result.httpHeaders = jsonObject["httpHeaders"];
|
|
21
24
|
result.timeoutConnection = jsonObject["timeoutConnection"];
|
|
22
25
|
|
|
@@ -27,6 +30,7 @@ export class BackendProcessingConfig {
|
|
|
27
30
|
return {
|
|
28
31
|
"url": this.url,
|
|
29
32
|
"rfidServerSideChipVerification": this.rfidServerSideChipVerification,
|
|
33
|
+
"mdlVerification": this.mdlVerification,
|
|
30
34
|
"httpHeaders": this.httpHeaders,
|
|
31
35
|
"timeoutConnection": this.timeoutConnection,
|
|
32
36
|
}
|
|
@@ -254,6 +254,24 @@ export class ProcessParams {
|
|
|
254
254
|
this._set({ "checkCaptureProcessIntegrity": val });
|
|
255
255
|
}
|
|
256
256
|
|
|
257
|
+
get strictExpiryDate() { return this._strictExpiryDate; }
|
|
258
|
+
set strictExpiryDate(val) {
|
|
259
|
+
this._strictExpiryDate = val;
|
|
260
|
+
this._set({ "strictExpiryDate": val });
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
get debugSaveBinarySession() { return this._debugSaveBinarySession; }
|
|
264
|
+
set debugSaveBinarySession(val) {
|
|
265
|
+
this._debugSaveBinarySession = val;
|
|
266
|
+
this._set({ "debugSaveBinarySession": val });
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
get checkVDS() { return this._checkVDS; }
|
|
270
|
+
set checkVDS(val) {
|
|
271
|
+
this._checkVDS = val;
|
|
272
|
+
this._set({ "checkVDS": val });
|
|
273
|
+
}
|
|
274
|
+
|
|
257
275
|
get barcodeParserType() { return this._barcodeParserType; }
|
|
258
276
|
set barcodeParserType(val) {
|
|
259
277
|
this._barcodeParserType = val;
|
|
@@ -535,6 +553,9 @@ export class ProcessParams {
|
|
|
535
553
|
result._strictSecurityChecks = jsonObject["strictSecurityChecks"];
|
|
536
554
|
result._returnTransliteratedFields = jsonObject["returnTransliteratedFields"];
|
|
537
555
|
result._checkCaptureProcessIntegrity = jsonObject["checkCaptureProcessIntegrity"];
|
|
556
|
+
result._strictExpiryDate = jsonObject["strictExpiryDate"];
|
|
557
|
+
result._debugSaveBinarySession = jsonObject["debugSaveBinarySession"];
|
|
558
|
+
result._checkVDS = jsonObject["checkVDS"];
|
|
538
559
|
result._barcodeParserType = jsonObject["barcodeParserType"];
|
|
539
560
|
result._perspectiveAngle = jsonObject["perspectiveAngle"];
|
|
540
561
|
result._minDPI = jsonObject["minDPI"];
|
|
@@ -621,6 +642,9 @@ export class ProcessParams {
|
|
|
621
642
|
"strictSecurityChecks": this.strictSecurityChecks,
|
|
622
643
|
"returnTransliteratedFields": this.returnTransliteratedFields,
|
|
623
644
|
"checkCaptureProcessIntegrity": this.checkCaptureProcessIntegrity,
|
|
645
|
+
"strictExpiryDate": this.strictExpiryDate,
|
|
646
|
+
"debugSaveBinarySession": this.debugSaveBinarySession,
|
|
647
|
+
"checkVDS": this.checkVDS,
|
|
624
648
|
"measureSystem": this.measureSystem,
|
|
625
649
|
"barcodeParserType": this.barcodeParserType,
|
|
626
650
|
"perspectiveAngle": this.perspectiveAngle,
|