@regulaforensics/vp-frontend-document-components 7.5.1958-nightly → 7.5.1961-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/README.md +1 -1
- package/dist/index.d.ts +12 -19
- package/dist/main.iife.js +23 -23
- package/dist/main.js +7957 -8003
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -298,7 +298,7 @@ After adding `DocumentReaderService` to the global variable, you can change the
|
|
|
298
298
|
| **forceReadMrzBeforeLocate** | When enabled, make sure that in series processing MRZ is located fully inside the result document image, if present on the document. Enabling this option may add extra processing time, by disabling optimizations, but allows more stability in output image quality. | boolean | `false` | `true`, `false` |
|
|
299
299
|
| **parseBarcodes** | This option can be disabled to stop parsing after barcode is read. | boolean | `true` | `true`, `false` |
|
|
300
300
|
| **splitNames** | When enabled, the Surname and GivenNames fields will be divided into ft_First_Name, ft_Second_Name, ft_Third_Name, ft_Fourth_Name, ft_Last_Name fields. | boolean | `false` | `true`, `false` |
|
|
301
|
-
| **backendProcessing** | When enabled, it prepares the processing result to be sent to the backend for re-processing. Use ```service.finalizePackage();``` after receiving the processing results to send them to the backend. | Object | {} |
|
|
301
|
+
| **backendProcessing** | When enabled, it prepares the processing result to be sent to the backend for re-processing. Use ```service.finalizePackage();``` after receiving the processing results to send them to the backend. | Object | {} | { serviceURL: 'URL', httpHeaders: { key1: 'header1', key2: 'header2', ... } } |
|
|
302
302
|
| **generateNumericCodes** | This parameter is used to generate numeric representation for issuing state and nationality codes. | boolean | | `true`, `false` |
|
|
303
303
|
|
|
304
304
|
**Attention!** If the `multipage-processing` or `internal-scenario` attributes are set, the corresponding `multipageProcessing` and `scenario` parameters' values are ignored.
|
package/dist/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ import { ProcessResponse } from '@regulaforensics/document-reader-webclient';
|
|
|
7
7
|
import { Response as Response_2 } from '@regulaforensics/document-reader-webclient';
|
|
8
8
|
import { Result } from '@regulaforensics/document-reader-webclient';
|
|
9
9
|
import { TextFieldType } from '@regulaforensics/document-reader-webclient';
|
|
10
|
+
import { TransactionInfo } from '@regulaforensics/document-reader-webclient';
|
|
10
11
|
|
|
11
12
|
export declare interface BaseRequest {
|
|
12
13
|
tag?: string;
|
|
@@ -220,13 +221,10 @@ export declare interface DocumentReaderProcessParam {
|
|
|
220
221
|
backendProcessing?: {
|
|
221
222
|
serviceURL?: string;
|
|
222
223
|
httpHeaders?: Record<string, string>;
|
|
223
|
-
timeoutConnection?: number;
|
|
224
224
|
};
|
|
225
225
|
}
|
|
226
226
|
|
|
227
|
-
export declare type DocumentReaderResponseType = Response_2
|
|
228
|
-
TransactionInfo?: TransactionInfo;
|
|
229
|
-
};
|
|
227
|
+
export declare type DocumentReaderResponseType = Response_2;
|
|
230
228
|
|
|
231
229
|
export declare class DocumentReaderService {
|
|
232
230
|
private _worker;
|
|
@@ -234,12 +232,12 @@ export declare class DocumentReaderService {
|
|
|
234
232
|
private _initializeListener;
|
|
235
233
|
private _processingListener;
|
|
236
234
|
private _queueService;
|
|
235
|
+
private _initProcess;
|
|
237
236
|
onFinalize: TOnFinalize | null;
|
|
238
237
|
isAutoPrepare: boolean;
|
|
239
238
|
isPrepared: boolean;
|
|
240
239
|
isInitialized: boolean;
|
|
241
240
|
isProcessing: boolean;
|
|
242
|
-
_initProcess: Promise<License> | null;
|
|
243
241
|
initData: License | null;
|
|
244
242
|
recognizerProcessParam: ProcessingRequest;
|
|
245
243
|
imageProcessParam: ImageProcessingRequest;
|
|
@@ -263,14 +261,14 @@ export declare class DocumentReaderService {
|
|
|
263
261
|
doInitialize(initData?: {
|
|
264
262
|
license: string | undefined;
|
|
265
263
|
}): Promise<License>;
|
|
266
|
-
private
|
|
267
|
-
processImageBase64(base64ImagesArray: Array<string>, params: ProcessingRequest): Promise<Response_2
|
|
268
|
-
process(imageDataArray: Array<ImageData>, params?: ProcessingRequest): Promise<Response_2
|
|
269
|
-
processImage(imageDataArray: Array<ImageData>, params?: ProcessingRequest): Promise<Response_2
|
|
264
|
+
private doProcess;
|
|
265
|
+
processImageBase64(base64ImagesArray: Array<string>, params: ProcessingRequest): Promise<Response_2>;
|
|
266
|
+
process(imageDataArray: Array<ImageData>, params?: ProcessingRequest): Promise<Response_2>;
|
|
267
|
+
processImage(imageDataArray: Array<ImageData>, params?: ProcessingRequest): Promise<Response_2>;
|
|
270
268
|
startNewPage(): Promise<void>;
|
|
271
269
|
startNewDocument(metadata?: Record<string, any>): Promise<NewTransaction>;
|
|
272
270
|
createBackendTransaction(metadata?: Record<string, any>): Promise<NewTransaction>;
|
|
273
|
-
finalizePackage(): Promise<
|
|
271
|
+
finalizePackage(): Promise<TransactionIdentifier>;
|
|
274
272
|
addDataToPackage(data: Uint8ClampedArray, params: PackageParams): Promise<void>;
|
|
275
273
|
shutdown(): void;
|
|
276
274
|
}
|
|
@@ -508,13 +506,7 @@ export declare enum MirrorType {
|
|
|
508
506
|
|
|
509
507
|
export declare interface NewTransaction {
|
|
510
508
|
ContainerList: ContainerList;
|
|
511
|
-
TransactionInfo:
|
|
512
|
-
ComputerName: string;
|
|
513
|
-
DateTime: string;
|
|
514
|
-
SystemInfo: string;
|
|
515
|
-
Tag: string;
|
|
516
|
-
TransactionID: string;
|
|
517
|
-
};
|
|
509
|
+
TransactionInfo: TransactionInfo;
|
|
518
510
|
sessionLogFolder: string;
|
|
519
511
|
}
|
|
520
512
|
|
|
@@ -565,7 +557,7 @@ declare type TInitializeListener = ({ isInitialized }: {
|
|
|
565
557
|
isInitialized: boolean;
|
|
566
558
|
}) => void;
|
|
567
559
|
|
|
568
|
-
declare type TOnFinalize = (transaction:
|
|
560
|
+
declare type TOnFinalize = (transaction: TransactionIdentifier) => void;
|
|
569
561
|
|
|
570
562
|
declare type TPrepareListener = ({ isPrepared }: {
|
|
571
563
|
isPrepared: boolean;
|
|
@@ -580,7 +572,8 @@ export declare interface TransactionEvent {
|
|
|
580
572
|
data: GetTransactionsByTagResponse;
|
|
581
573
|
}
|
|
582
574
|
|
|
583
|
-
export declare interface
|
|
575
|
+
export declare interface TransactionIdentifier {
|
|
576
|
+
metadata?: unknown;
|
|
584
577
|
tag: string;
|
|
585
578
|
transactionId: string;
|
|
586
579
|
}
|