@regulaforensics/vp-frontend-document-components 8.3.2457-nightly → 8.4.1-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 CHANGED
@@ -6,6 +6,11 @@ import { ProcessResponse } from '@regulaforensics/document-reader-webclient';
6
6
  import { ProcessResult } from '@regulaforensics/document-reader-webclient';
7
7
  import { TransactionInfo } from '@regulaforensics/document-reader-webclient';
8
8
 
9
+ declare enum AnimationType {
10
+ Flip = "flip",
11
+ Tilt = "tilt"
12
+ }
13
+
9
14
  export declare interface BaseRequest {
10
15
  tag?: string;
11
16
  tenant?: string;
@@ -71,6 +76,11 @@ export declare enum CaptureMode {
71
76
 
72
77
  export declare type CaptureType = Array<Omit<CaptureFrameType, 'imageData'>>;
73
78
 
79
+ export declare interface CoreProcessResponse extends ProcessResponse {
80
+ lightType: Array<Light>;
81
+ liveness?: LivenessData;
82
+ }
83
+
74
84
  export declare interface CurrentPage {
75
85
  data: DocumentReaderResponseType | null;
76
86
  startNextPage: () => Promise<void>;
@@ -92,6 +102,8 @@ export declare interface DetailEvent<A, R> {
92
102
  data: CustomEventDataType<R> | null;
93
103
  }
94
104
 
105
+ export declare type DocumentAnimation = FlipAnimation | TiltAnimation;
106
+
95
107
  export declare type DocumentDictionaries = Partial<Record<Locales, DocumentTranslations>>;
96
108
 
97
109
  declare enum DocumentImageType {
@@ -191,7 +203,7 @@ export declare class DocumentReaderProcessor {
191
203
  shutdown(): void;
192
204
  }
193
205
 
194
- 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' | 'disableAuthResolutionFilter' | 'strictSecurityChecks'> & {
206
+ 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' | 'disableAuthResolutionFilter' | 'strictSecurityChecks' | 'fieldTypesIgnoreFilter'> & {
195
207
  generateAlpha2Codes?: boolean;
196
208
  returnPackageForReprocess?: boolean;
197
209
  scenario?: InternalScenarios;
@@ -298,6 +310,8 @@ export declare interface DocumentReaderSettings extends CameraSnapshotSettings {
298
310
  maxImageSize?: number;
299
311
  maxResolutionSize?: number;
300
312
  newLayout?: boolean;
313
+ processingDelay?: number;
314
+ manualMultipageMode?: boolean;
301
315
  }
302
316
 
303
317
  export declare class DocumentReaderWebComponent extends HTMLElement {
@@ -364,6 +378,11 @@ export declare enum EventActions {
364
378
  REMOTE_PROCESS_FINISHED = "REMOTE_PROCESS_FINISHED"
365
379
  }
366
380
 
381
+ export declare type FlipAnimation = {
382
+ type: AnimationType.Flip;
383
+ image: Array<DocumentImageType>;
384
+ };
385
+
367
386
  export declare enum FrameLineCap {
368
387
  butt = "butt",
369
388
  round = "round",
@@ -387,19 +406,6 @@ export declare class FullScreenContainer extends HTMLElement {
387
406
  constructor();
388
407
  }
389
408
 
390
- declare enum HoloAnimationType {
391
- Unknown = 0,
392
- Horizontal = 1,
393
- Vertical = 2,
394
- LeftBottomRightTop = 4,
395
- RightBottomLeftTop = 8
396
- }
397
-
398
- export declare interface HoloData {
399
- hologramTiltType: HoloAnimationType;
400
- livenessAnimationImage: DocumentImageType;
401
- }
402
-
403
409
  export declare interface ICameraSnapshot {
404
410
  locale?: Locales;
405
411
  copyright?: boolean;
@@ -461,6 +467,15 @@ export declare type License = {
461
467
  scenario: Array<TScenarioParams>;
462
468
  };
463
469
 
470
+ export declare interface LivenessData {
471
+ docAngleCurrent?: number;
472
+ docAngleMax?: number;
473
+ docAngleMin?: number;
474
+ livenessAnimationImage?: DocumentImageType;
475
+ hologramTiltType?: TiltAnimationType;
476
+ lightType: Array<Light>;
477
+ }
478
+
464
479
  export declare type Locales = Languages | string;
465
480
 
466
481
  export declare const Logger: Logger_2;
@@ -498,8 +513,6 @@ export declare interface PackageParams {
498
513
  metadata?: Record<string, any>;
499
514
  }
500
515
 
501
- export declare type ProcessHoloResponse = HoloData & ProcessResponseWithLight;
502
-
503
516
  export declare interface ProcessingRequest extends BaseRequest {
504
517
  metadata?: Record<string, any>;
505
518
  delegateProcessing?: {
@@ -520,10 +533,6 @@ export declare interface ProcessRejectResponse extends ProcessResponse {
520
533
  reject_reason: number;
521
534
  }
522
535
 
523
- export declare interface ProcessResponseWithLight extends ProcessResponse {
524
- lightType: Array<Light>;
525
- }
526
-
527
536
  declare type RecognizeListener = (data: DocumentReaderResponseType) => void;
528
537
 
529
538
  export declare type Resolution = Partial<WidthAndHeight>;
@@ -543,6 +552,20 @@ export declare interface StreamParams {
543
552
  resolution: Resolution;
544
553
  }
545
554
 
555
+ export declare type TiltAnimation = {
556
+ type: AnimationType.Tilt;
557
+ image: Array<DocumentImageType | undefined>;
558
+ tiltType: TiltAnimationType;
559
+ };
560
+
561
+ declare enum TiltAnimationType {
562
+ Unknown = 0,
563
+ Horizontal = 1,
564
+ Vertical = 2,
565
+ LeftBottomRightTop = 4,
566
+ RightBottomLeftTop = 8
567
+ }
568
+
546
569
  declare type TInitializeListener = ({ isInitialized }: {
547
570
  isInitialized: boolean;
548
571
  }) => void;