@regulaforensics/vp-frontend-document-components 8.1.2281-rc → 8.1.2282-nightly
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/dist/index.d.ts +3 -19
- package/dist/main.iife.js +27 -27
- package/dist/main.js +9616 -9649
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -40,7 +40,6 @@ export declare interface CameraSnapshotSettings {
|
|
|
40
40
|
startScreen?: boolean;
|
|
41
41
|
locale?: Locales;
|
|
42
42
|
multipleFileInput?: boolean;
|
|
43
|
-
regulaLogo?: boolean;
|
|
44
43
|
copyright?: boolean;
|
|
45
44
|
cameraId?: string;
|
|
46
45
|
changeCameraButton?: boolean;
|
|
@@ -48,8 +47,6 @@ export declare interface CameraSnapshotSettings {
|
|
|
48
47
|
resolution?: Resolution;
|
|
49
48
|
cameraMode?: CameraFacingMode;
|
|
50
49
|
nonce?: string;
|
|
51
|
-
statusTextColor?: string;
|
|
52
|
-
statusBackgroundColor?: string;
|
|
53
50
|
fromCameraButton?: boolean;
|
|
54
51
|
uploadFileButton?: boolean;
|
|
55
52
|
mirrorButton?: boolean;
|
|
@@ -116,7 +113,6 @@ declare enum DocumentImageType {
|
|
|
116
113
|
declare enum DocumentReaderAttributes {
|
|
117
114
|
locale = "locale",
|
|
118
115
|
multiple = "multiple",
|
|
119
|
-
license = "license",
|
|
120
116
|
copyright = "copyright",
|
|
121
117
|
startScreen = "start-screen",
|
|
122
118
|
internalScenario = "internal-scenario",
|
|
@@ -194,7 +190,7 @@ export declare class DocumentReaderProcessor {
|
|
|
194
190
|
shutdown(): void;
|
|
195
191
|
}
|
|
196
192
|
|
|
197
|
-
export declare type DocumentReaderProcessParam = Pick<ProcessParams, 'generateNumericCodes' | 'returnUncroppedImage' | 'log' | 'resultTypeOutput' | 'customParams' | 'imageOutputMaxHeight' | 'imageOutputMaxWidth' | 'fieldTypesFilter' | 'dateFormat' | 'measureSystem' | 'imageDpiOutMax' | 'alreadyCropped' | 'fastDocDetect' | 'updateOCRValidityByGlare' | 'returnCroppedBarcode' | '
|
|
193
|
+
export declare type DocumentReaderProcessParam = Pick<ProcessParams, 'generateNumericCodes' | 'returnUncroppedImage' | 'log' | 'resultTypeOutput' | 'customParams' | 'imageOutputMaxHeight' | 'imageOutputMaxWidth' | 'fieldTypesFilter' | 'dateFormat' | 'measureSystem' | 'imageDpiOutMax' | 'alreadyCropped' | 'fastDocDetect' | 'updateOCRValidityByGlare' | 'returnCroppedBarcode' | 'forceDocFormat' | 'noGraphics' | 'depersonalizeLog' | 'multiDocOnImage' | 'shiftExpiryDate' | 'minimalHolderAge' | 'mrzFormatsFilter' | 'forceReadMrzBeforeLocate' | 'parseBarcodes' | 'splitNames' | 'doublePageSpread' | 'strictImageQuality' | 'doDetectCan' | 'generateDoublePageSpreadImage' | 'mrzDetectMode' | 'strictBarcodeDigitalSignatureCheck' | 'selectLongestNames'> & {
|
|
198
194
|
generateAlpha2Codes?: boolean;
|
|
199
195
|
returnPackageForReprocess?: boolean;
|
|
200
196
|
scenario?: InternalScenarios;
|
|
@@ -226,13 +222,11 @@ export declare type DocumentReaderResponseType = Response_2;
|
|
|
226
222
|
|
|
227
223
|
export declare class DocumentReaderService {
|
|
228
224
|
private _worker;
|
|
229
|
-
private _prepareListener;
|
|
230
225
|
private _initializeListener;
|
|
231
226
|
private _processingListener;
|
|
232
227
|
private _queueService;
|
|
233
228
|
private _initProcess;
|
|
234
229
|
onFinalize: TOnFinalize | null;
|
|
235
|
-
isAutoPrepare: boolean;
|
|
236
230
|
isPrepared: boolean;
|
|
237
231
|
isInitialized: boolean;
|
|
238
232
|
isProcessing: boolean;
|
|
@@ -246,20 +240,16 @@ export declare class DocumentReaderService {
|
|
|
246
240
|
};
|
|
247
241
|
get processingListener(): TProcessingListener | null;
|
|
248
242
|
set processingListener(listener: TProcessingListener | null);
|
|
249
|
-
get prepareListener(): TPrepareListener | null;
|
|
250
|
-
set prepareListener(listener: TPrepareListener | null);
|
|
251
243
|
get initializeListener(): TInitializeListener | null;
|
|
252
244
|
set initializeListener(listener: TInitializeListener | null);
|
|
253
245
|
private createProcessImageRequest;
|
|
254
246
|
private prepareImageData;
|
|
255
247
|
private sendMessage;
|
|
256
|
-
prepare
|
|
248
|
+
private prepare;
|
|
257
249
|
initialize(initData?: {
|
|
258
250
|
license: string | undefined;
|
|
259
251
|
}): Promise<License>;
|
|
260
|
-
doInitialize
|
|
261
|
-
license: string | undefined;
|
|
262
|
-
}): Promise<License>;
|
|
252
|
+
private doInitialize;
|
|
263
253
|
private doProcess;
|
|
264
254
|
processImageBase64(base64ImagesArray: Array<string>, params: ProcessingRequest): Promise<DocumentReaderResponseType>;
|
|
265
255
|
process(imageDataArray: Array<ImageData>, params?: ProcessingRequest): Promise<DocumentReaderResponseType>;
|
|
@@ -275,12 +265,10 @@ export declare class DocumentReaderService {
|
|
|
275
265
|
export declare interface DocumentReaderSettings extends CameraSnapshotSettings {
|
|
276
266
|
internalScenario?: InternalScenarios;
|
|
277
267
|
multipageProcessing?: boolean;
|
|
278
|
-
devLicense?: string;
|
|
279
268
|
captureButton?: boolean;
|
|
280
269
|
captureMode?: CaptureMode;
|
|
281
270
|
skipButton?: boolean;
|
|
282
271
|
cameraFrameBorderWidth?: number;
|
|
283
|
-
backgroundMaskAlpha?: number;
|
|
284
272
|
cameraFramePortraitAspectRatio?: number;
|
|
285
273
|
cameraFrameLandscapeAspectRatio?: number;
|
|
286
274
|
cameraFrameOffsetWidth?: number;
|
|
@@ -547,10 +535,6 @@ declare type TInitializeListener = ({ isInitialized }: {
|
|
|
547
535
|
|
|
548
536
|
declare type TOnFinalize = (transaction: TransactionIdentifier) => void;
|
|
549
537
|
|
|
550
|
-
declare type TPrepareListener = ({ isPrepared }: {
|
|
551
|
-
isPrepared: boolean;
|
|
552
|
-
}) => void;
|
|
553
|
-
|
|
554
538
|
declare type TProcessingListener = ({ isProcessing }: {
|
|
555
539
|
isProcessing: boolean;
|
|
556
540
|
}) => void;
|