@regulaforensics/vp-frontend-document-components 8.4.2517-nightly → 8.4.2519-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 +40 -19
- package/dist/main.iife.js +22 -22
- package/dist/main.js +3885 -3898
- package/package.json +2 -2
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 {
|
|
@@ -365,6 +377,11 @@ export declare enum EventActions {
|
|
|
365
377
|
REMOTE_PROCESS_FINISHED = "REMOTE_PROCESS_FINISHED"
|
|
366
378
|
}
|
|
367
379
|
|
|
380
|
+
export declare type FlipAnimation = {
|
|
381
|
+
type: AnimationType.Flip;
|
|
382
|
+
image: Array<DocumentImageType>;
|
|
383
|
+
};
|
|
384
|
+
|
|
368
385
|
export declare enum FrameLineCap {
|
|
369
386
|
butt = "butt",
|
|
370
387
|
round = "round",
|
|
@@ -388,19 +405,6 @@ export declare class FullScreenContainer extends HTMLElement {
|
|
|
388
405
|
constructor();
|
|
389
406
|
}
|
|
390
407
|
|
|
391
|
-
declare enum HoloAnimationType {
|
|
392
|
-
Unknown = 0,
|
|
393
|
-
Horizontal = 1,
|
|
394
|
-
Vertical = 2,
|
|
395
|
-
LeftBottomRightTop = 4,
|
|
396
|
-
RightBottomLeftTop = 8
|
|
397
|
-
}
|
|
398
|
-
|
|
399
|
-
export declare interface HoloData {
|
|
400
|
-
hologramTiltType: HoloAnimationType;
|
|
401
|
-
livenessAnimationImage: DocumentImageType;
|
|
402
|
-
}
|
|
403
|
-
|
|
404
408
|
export declare interface ICameraSnapshot {
|
|
405
409
|
locale?: Locales;
|
|
406
410
|
copyright?: boolean;
|
|
@@ -462,6 +466,15 @@ export declare type License = {
|
|
|
462
466
|
scenario: Array<TScenarioParams>;
|
|
463
467
|
};
|
|
464
468
|
|
|
469
|
+
export declare interface LivenessData {
|
|
470
|
+
docAngleCurrent?: number;
|
|
471
|
+
docAngleMax?: number;
|
|
472
|
+
docAngleMin?: number;
|
|
473
|
+
livenessAnimationImage?: DocumentImageType;
|
|
474
|
+
hologramTiltType?: TiltAnimationType;
|
|
475
|
+
lightType: Array<Light>;
|
|
476
|
+
}
|
|
477
|
+
|
|
465
478
|
export declare type Locales = Languages | string;
|
|
466
479
|
|
|
467
480
|
export declare const Logger: Logger_2;
|
|
@@ -499,8 +512,6 @@ export declare interface PackageParams {
|
|
|
499
512
|
metadata?: Record<string, any>;
|
|
500
513
|
}
|
|
501
514
|
|
|
502
|
-
export declare type ProcessHoloResponse = HoloData & ProcessResponseWithLight;
|
|
503
|
-
|
|
504
515
|
export declare interface ProcessingRequest extends BaseRequest {
|
|
505
516
|
metadata?: Record<string, any>;
|
|
506
517
|
delegateProcessing?: {
|
|
@@ -521,10 +532,6 @@ export declare interface ProcessRejectResponse extends ProcessResponse {
|
|
|
521
532
|
reject_reason: number;
|
|
522
533
|
}
|
|
523
534
|
|
|
524
|
-
export declare interface ProcessResponseWithLight extends ProcessResponse {
|
|
525
|
-
lightType: Array<Light>;
|
|
526
|
-
}
|
|
527
|
-
|
|
528
535
|
declare type RecognizeListener = (data: DocumentReaderResponseType) => void;
|
|
529
536
|
|
|
530
537
|
export declare type Resolution = Partial<WidthAndHeight>;
|
|
@@ -544,6 +551,20 @@ export declare interface StreamParams {
|
|
|
544
551
|
resolution: Resolution;
|
|
545
552
|
}
|
|
546
553
|
|
|
554
|
+
export declare type TiltAnimation = {
|
|
555
|
+
type: AnimationType.Tilt;
|
|
556
|
+
image: Array<DocumentImageType | undefined>;
|
|
557
|
+
tiltType: TiltAnimationType;
|
|
558
|
+
};
|
|
559
|
+
|
|
560
|
+
declare enum TiltAnimationType {
|
|
561
|
+
Unknown = 0,
|
|
562
|
+
Horizontal = 1,
|
|
563
|
+
Vertical = 2,
|
|
564
|
+
LeftBottomRightTop = 4,
|
|
565
|
+
RightBottomLeftTop = 8
|
|
566
|
+
}
|
|
567
|
+
|
|
547
568
|
declare type TInitializeListener = ({ isInitialized }: {
|
|
548
569
|
isInitialized: boolean;
|
|
549
570
|
}) => void;
|