@regulaforensics/vp-frontend-document-components 7.5.1955-nightly → 7.5.1957-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 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 | {} | { serviceURL: 'URL', httpHeaders: { key1: 'header1', key2: 'header2', ... }, requestTimeoutMs: number > 0 } |
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', ... }, timeoutConnection: number > 0 } |
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
@@ -3,6 +3,7 @@ import { DocumentFormat } from '@regulaforensics/document-reader-webclient';
3
3
  import { GetTransactionsByTagResponse } from '@regulaforensics/document-reader-webclient';
4
4
  import { MeasureSystem } from '@regulaforensics/document-reader-webclient';
5
5
  import { MRZFormat } from '@regulaforensics/document-reader-webclient';
6
+ import { ProcessResponse } from '@regulaforensics/document-reader-webclient';
6
7
  import { Response as Response_2 } from '@regulaforensics/document-reader-webclient';
7
8
  import { Result } from '@regulaforensics/document-reader-webclient';
8
9
  import { TextFieldType } from '@regulaforensics/document-reader-webclient';
@@ -147,8 +148,8 @@ export declare class DocumentReaderProcessor {
147
148
  isInitialized: boolean;
148
149
  videoElement: HTMLVideoElement | null;
149
150
  constructor(videoElement?: HTMLVideoElement);
150
- get recognizeListener(): ((data: Response_2) => void) | null;
151
- set recognizeListener(listener: ((data: Response_2) => void) | null);
151
+ get recognizeListener(): ((data: Response_2 | ProcessRejectResponse) => void) | null;
152
+ set recognizeListener(listener: ((data: Response_2 | ProcessRejectResponse) => void) | null);
152
153
  get streamParam(): Partial<StreamParams>;
153
154
  set streamParam(params: Partial<StreamParams>);
154
155
  get recognizerProcessParam(): ProcessingRequest;
@@ -219,7 +220,7 @@ export declare interface DocumentReaderProcessParam {
219
220
  backendProcessing?: {
220
221
  serviceURL?: string;
221
222
  httpHeaders?: Record<string, string>;
222
- requestTimeoutMs?: number;
223
+ timeoutConnection?: number;
223
224
  };
224
225
  }
225
226
 
@@ -263,7 +264,7 @@ export declare class DocumentReaderService {
263
264
  license: string | undefined;
264
265
  }): Promise<License>;
265
266
  processImageBase64(base64ImagesArray: Array<string>, params: ProcessingRequest): Promise<Response_2>;
266
- process(imageDataArray: Array<ImageData>, params?: ProcessingRequest): Promise<Response_2>;
267
+ process(imageDataArray: Array<ImageData>, params?: ProcessingRequest): Promise<Response_2 | ProcessRejectResponse>;
267
268
  processImage(imageDataArray: Array<ImageData>, params?: ProcessingRequest): Promise<Response_2>;
268
269
  startNewPage(): Promise<void>;
269
270
  startNewDocument(metadata?: Record<string, any>): Promise<NewTransaction>;
@@ -534,7 +535,13 @@ export declare interface ProcessingRequest extends BaseRequest {
534
535
  imageInputParam?: ImageInputParamType;
535
536
  }
536
537
 
537
- declare type RecognizeListener = (data: Response_2) => void;
538
+ export declare interface ProcessRejectResponse extends ProcessResponse {
539
+ licensing_code: number;
540
+ reject_message: string;
541
+ reject_reason: number;
542
+ }
543
+
544
+ declare type RecognizeListener = (data: Response_2 | ProcessRejectResponse) => void;
538
545
 
539
546
  export declare type Resolution = Partial<WidthAndHeight>;
540
547