@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
|
@@ -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,
|
|
@@ -653,9 +653,11 @@ export const FieldType = {
|
|
|
653
653
|
NATIONALITY_CODE_ALPHA_2: 697,
|
|
654
654
|
FIRST_ISSUE_DATE_CHECKDIGIT: 698,
|
|
655
655
|
FIRST_ISSUE_DATE_CHECKSUM: 699,
|
|
656
|
+
EXPIRY_TIMESTAMP: 700,
|
|
656
657
|
COMMERCIAL_INDICATOR: 701,
|
|
657
658
|
NON_DOMICILED_INDICATOR: 702,
|
|
658
659
|
JURISDICTION_SPECIFIC_DATA: 703,
|
|
660
|
+
DATA_DATE_OF_EXPIRY: 704,
|
|
659
661
|
}
|
|
660
662
|
|
|
661
663
|
FieldType.getTranslation = async function (value) {
|
|
@@ -64,5 +64,8 @@ export const RFIDNotificationCodes = {
|
|
|
64
64
|
PCSC_UPDATING_DATAGROUP: 786432,
|
|
65
65
|
AUXILIARY_DATA_VALIDATION: 851968,
|
|
66
66
|
RI_SECTOR_ID: 917504,
|
|
67
|
-
BIOMETRICS_EMPTY_PLACEHOLDER: 983040
|
|
67
|
+
BIOMETRICS_EMPTY_PLACEHOLDER: 983040,
|
|
68
|
+
SESSION_FILE_DATA_UPDATED: 1048576,
|
|
69
|
+
TCC_TA_RESOURCES: 1114112,
|
|
70
|
+
TCC_TA_SIGNATURE: 1114113,
|
|
68
71
|
}
|