@regulaforensics/vp-frontend-document-components 8.1.2236-nightly → 8.1.2238-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 +52 -9
- package/dist/main.iife.js +27 -27
- package/dist/main.js +12463 -12379
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ContainerList } from '@regulaforensics/document-reader-webclient';
|
|
2
2
|
import { GetTransactionsByTagResponse } from '@regulaforensics/document-reader-webclient';
|
|
3
|
+
import { Light } from '@regulaforensics/document-reader-webclient';
|
|
3
4
|
import { ProcessParams } from '@regulaforensics/document-reader-webclient';
|
|
4
5
|
import { ProcessResponse } from '@regulaforensics/document-reader-webclient';
|
|
5
6
|
import { Response as Response_2 } from '@regulaforensics/document-reader-webclient';
|
|
@@ -96,6 +97,22 @@ export declare interface DetailEvent<A, R> {
|
|
|
96
97
|
|
|
97
98
|
export declare type DocumentDictionaries = Partial<Record<Locales, DocumentTranslations>>;
|
|
98
99
|
|
|
100
|
+
declare enum DocumentImageType {
|
|
101
|
+
Unknown = 0,
|
|
102
|
+
PassportSinglePage = 1,
|
|
103
|
+
PassportTwoPages = 2,
|
|
104
|
+
IDFront = 3,
|
|
105
|
+
IDFrontMRZ = 4,
|
|
106
|
+
IDBack = 5,
|
|
107
|
+
IDBackMrz = 6,
|
|
108
|
+
IDBackBarcode = 7,
|
|
109
|
+
IDBackBarcodeMRZ = 8,
|
|
110
|
+
BankCardFront = 9,
|
|
111
|
+
BankCardBack = 10,
|
|
112
|
+
DocumentFront = 11,
|
|
113
|
+
DocumentBack = 12
|
|
114
|
+
}
|
|
115
|
+
|
|
99
116
|
declare enum DocumentReaderAttributes {
|
|
100
117
|
locale = "locale",
|
|
101
118
|
multiple = "multiple",
|
|
@@ -358,6 +375,13 @@ export declare enum FrameLineCap {
|
|
|
358
375
|
square = "square"
|
|
359
376
|
}
|
|
360
377
|
|
|
378
|
+
export declare interface FramePosition {
|
|
379
|
+
frameBottom: number;
|
|
380
|
+
frameLeft: number;
|
|
381
|
+
frameRight: number;
|
|
382
|
+
frameTop: number;
|
|
383
|
+
}
|
|
384
|
+
|
|
361
385
|
export declare enum FrameShapeType {
|
|
362
386
|
line = "line",
|
|
363
387
|
corners = "corners"
|
|
@@ -368,6 +392,19 @@ export declare class FullScreenContainer extends HTMLElement {
|
|
|
368
392
|
constructor();
|
|
369
393
|
}
|
|
370
394
|
|
|
395
|
+
declare enum HoloAnimationType {
|
|
396
|
+
Unknown = 0,
|
|
397
|
+
Horizontal = 1,
|
|
398
|
+
Vertical = 2,
|
|
399
|
+
LeftBottomRightTop = 4,
|
|
400
|
+
RightBottomLeftTop = 8
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
export declare interface HoloData {
|
|
404
|
+
hologramTiltType: HoloAnimationType;
|
|
405
|
+
livenessAnimationImage: DocumentImageType;
|
|
406
|
+
}
|
|
407
|
+
|
|
371
408
|
export declare interface ICameraSnapshot {
|
|
372
409
|
locale?: Locales;
|
|
373
410
|
copyright?: boolean;
|
|
@@ -385,14 +422,10 @@ export declare interface IDocumentReader extends ICameraSnapshot {
|
|
|
385
422
|
'capture-button'?: boolean;
|
|
386
423
|
}
|
|
387
424
|
|
|
388
|
-
export declare
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
frameTop: number;
|
|
393
|
-
light: number;
|
|
394
|
-
resolutionType: number;
|
|
395
|
-
}
|
|
425
|
+
export declare type ImageInputParamType = Partial<FramePosition> & {
|
|
426
|
+
light?: Light;
|
|
427
|
+
resolutionType?: number;
|
|
428
|
+
};
|
|
396
429
|
|
|
397
430
|
export declare type ImageProcessingRequest = BaseRequest;
|
|
398
431
|
|
|
@@ -465,6 +498,8 @@ export declare interface PackageParams {
|
|
|
465
498
|
metadata?: Record<string, any>;
|
|
466
499
|
}
|
|
467
500
|
|
|
501
|
+
export declare type ProcessHoloResponse = HoloData & ProcessResponseWithLight;
|
|
502
|
+
|
|
468
503
|
export declare interface ProcessingRequest extends BaseRequest {
|
|
469
504
|
metadata?: Record<string, any>;
|
|
470
505
|
delegateProcessing?: {
|
|
@@ -475,13 +510,21 @@ export declare interface ProcessingRequest extends BaseRequest {
|
|
|
475
510
|
imagesList?: Array<DocumentReaderImage>;
|
|
476
511
|
}
|
|
477
512
|
|
|
513
|
+
export declare interface ProcessMultiPageResponse extends ProcessResponse {
|
|
514
|
+
multipageAnimationImage: Array<DocumentImageType>;
|
|
515
|
+
}
|
|
516
|
+
|
|
478
517
|
export declare interface ProcessRejectResponse extends ProcessResponse {
|
|
479
518
|
licensing_code: number;
|
|
480
519
|
reject_message: string;
|
|
481
520
|
reject_reason: number;
|
|
482
521
|
}
|
|
483
522
|
|
|
484
|
-
declare
|
|
523
|
+
export declare interface ProcessResponseWithLight extends ProcessResponse {
|
|
524
|
+
lightType: Array<Light>;
|
|
525
|
+
}
|
|
526
|
+
|
|
527
|
+
declare type RecognizeListener = (data: DocumentReaderResponseType) => void;
|
|
485
528
|
|
|
486
529
|
export declare type Resolution = Partial<WidthAndHeight>;
|
|
487
530
|
|