@regulaforensics/vp-frontend-document-components 7.4.1858-nightly → 7.4.1926-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 +195 -106
- package/dist/index.d.ts +25 -19
- package/dist/main.iife.js +39 -39
- package/dist/main.js +12855 -13158
- 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 { DocumentFormat } from '@regulaforensics/document-reader-webclient';
|
|
3
|
+
import { GetTransactionsByTagResponse } from '@regulaforensics/document-reader-webclient';
|
|
3
4
|
import { MeasureSystem } from '@regulaforensics/document-reader-webclient';
|
|
4
5
|
import { MRZFormat } from '@regulaforensics/document-reader-webclient';
|
|
5
6
|
import { Response as Response_2 } from '@regulaforensics/document-reader-webclient';
|
|
@@ -47,6 +48,10 @@ export declare interface CameraSnapshotSettings {
|
|
|
47
48
|
nonce?: string;
|
|
48
49
|
statusTextColor?: string;
|
|
49
50
|
statusBackgroundColor?: string;
|
|
51
|
+
fromCameraButton?: boolean;
|
|
52
|
+
uploadFileButton?: boolean;
|
|
53
|
+
mirrorButton?: boolean;
|
|
54
|
+
mirrorType?: MirrorType;
|
|
50
55
|
}
|
|
51
56
|
|
|
52
57
|
export declare type CaptureFrameType = {
|
|
@@ -226,6 +231,7 @@ export declare class DocumentReaderService {
|
|
|
226
231
|
private _initializeListener;
|
|
227
232
|
private _processingListener;
|
|
228
233
|
private _queueService;
|
|
234
|
+
onFinalize: TOnFinalize | null;
|
|
229
235
|
isAutoPrepare: boolean;
|
|
230
236
|
isPrepared: boolean;
|
|
231
237
|
isInitialized: boolean;
|
|
@@ -292,6 +298,7 @@ export declare interface DocumentReaderSettings extends CameraSnapshotSettings {
|
|
|
292
298
|
captureButtonDelay?: number;
|
|
293
299
|
videoRecord?: boolean | VideoRecordSettings;
|
|
294
300
|
videoCaptureMotionControl?: boolean;
|
|
301
|
+
mobileDelegate?: boolean;
|
|
295
302
|
}
|
|
296
303
|
|
|
297
304
|
export declare class DocumentReaderWebComponent extends HTMLElement {
|
|
@@ -375,7 +382,10 @@ export declare enum ErrorTypes {
|
|
|
375
382
|
CAMERA_PERMISSION_DENIED = "CAMERA_PERMISSION_DENIED",
|
|
376
383
|
NO_CAMERA = "NO_CAMERA",
|
|
377
384
|
INCORRECT_CAMERA_ID = "INCORRECT_CAMERA_ID",
|
|
378
|
-
CONNECTION_ERROR = "CONNECTION_ERROR"
|
|
385
|
+
CONNECTION_ERROR = "CONNECTION_ERROR",
|
|
386
|
+
HTTP_NOT_SUPPORTED = "HTTP_NOT_SUPPORTED",
|
|
387
|
+
INSECURE_PAGE_CONTEXT = "INSECURE_PAGE_CONTEXT",
|
|
388
|
+
BAD_CONFIGURATION = "BAD_CONFIGURATION"
|
|
379
389
|
}
|
|
380
390
|
|
|
381
391
|
export declare enum EventActions {
|
|
@@ -388,10 +398,6 @@ export declare enum EventActions {
|
|
|
388
398
|
PRESS_CHANGE_CAMERA_BUTTON = "PRESS_CHANGE_CAMERA_BUTTON",
|
|
389
399
|
PRESS_REMOTE_DEVICE_BUTTON = "PRESS_REMOTE_DEVICE_BUTTON",
|
|
390
400
|
PRESS_MIRRORING_BUTTON = "PRESS_MIRRORING_BUTTON",
|
|
391
|
-
PRESS_CONNECT_BUTTON = "PRESS_CONNECT_BUTTON",
|
|
392
|
-
PRESS_DISCONNECT_BUTTON = "PRESS_DISCONNECT_BUTTON",
|
|
393
|
-
PRESS_AUTOSCAN_BUTTON = "PRESS_AUTOSCAN_BUTTON",
|
|
394
|
-
PRESS_PROCESS_BUTTON = "PRESS_PROCESS_BUTTON",
|
|
395
401
|
NEW_PAGE_AVAILABLE = "NEW_PAGE_AVAILABLE",
|
|
396
402
|
NEW_PAGE_STARTED = "NEW_PAGE_STARTED",
|
|
397
403
|
CLOSE = "CLOSE",
|
|
@@ -400,7 +406,6 @@ export declare enum EventActions {
|
|
|
400
406
|
VIDEO_STARTED = "VIDEO_STARTED",
|
|
401
407
|
VIDEO_STOPPED = "VIDEO_STOPPED",
|
|
402
408
|
FILE_PROCESS_STARTED = "FILE_PROCESS_STARTED",
|
|
403
|
-
PROCESS_STARTED = "PROCESS_STARTED",
|
|
404
409
|
PROCESS_FINISHED = "PROCESS_FINISHED",
|
|
405
410
|
SERVICE_INITIALIZED = "SERVICE_INITIALIZED",
|
|
406
411
|
REMOTE_TRANSACTION_UPLOADED = "REMOTE_TRANSACTION_UPLOADED",
|
|
@@ -477,7 +482,7 @@ export declare type License = {
|
|
|
477
482
|
scenario: Array<TScenarioParams>;
|
|
478
483
|
};
|
|
479
484
|
|
|
480
|
-
export declare type Locales = 'ru' | 'en' | 'de' | 'pl' | 'it' | 'hu' | 'zh' | 'sk' | 'uk' | 'fr' | 'es' | 'pt' | 'ar' | 'nl' | 'id' | 'vi' | 'ko' | 'ms' | 'ro' | 'el' | 'tr' | 'ja' | 'cs' | 'th' | 'hi' | 'bn' | 'he' | 'fi' | 'sv' | 'da' | 'hr' | 'no' | string;
|
|
485
|
+
export declare type Locales = 'ru' | 'en' | 'de' | 'pl' | 'it' | 'hu' | 'zh' | 'sk' | 'uk' | 'fr' | 'es' | 'pt' | 'ar' | 'nl' | 'id' | 'vi' | 'ko' | 'ms' | 'ro' | 'el' | 'tr' | 'ja' | 'cs' | 'th' | 'hi' | 'bn' | 'he' | 'fi' | 'sv' | 'da' | 'hr' | 'no' | 'uz' | string;
|
|
481
486
|
|
|
482
487
|
export declare const Logger: Logger_2;
|
|
483
488
|
|
|
@@ -492,6 +497,11 @@ declare class Logger_2 {
|
|
|
492
497
|
saveLogs(): void;
|
|
493
498
|
}
|
|
494
499
|
|
|
500
|
+
export declare enum MirrorType {
|
|
501
|
+
mirror = "mirror",
|
|
502
|
+
noMirror = "noMirror"
|
|
503
|
+
}
|
|
504
|
+
|
|
495
505
|
export declare interface NewTransaction {
|
|
496
506
|
ContainerList: ContainerList;
|
|
497
507
|
TransactionInfo: {
|
|
@@ -512,7 +522,11 @@ export declare interface PackageParams {
|
|
|
512
522
|
|
|
513
523
|
export declare interface ProcessingRequest extends BaseRequest {
|
|
514
524
|
metadata?: Record<string, any>;
|
|
515
|
-
|
|
525
|
+
delegateProcessing?: {
|
|
526
|
+
serviceURL: string;
|
|
527
|
+
delegateURL: string;
|
|
528
|
+
httpHeaders?: Record<string, string>;
|
|
529
|
+
};
|
|
516
530
|
processParam: DocumentReaderProcessParam;
|
|
517
531
|
imagesList?: Array<DocumentReaderImage>;
|
|
518
532
|
imageInputParam?: ImageInputParamType;
|
|
@@ -541,6 +555,8 @@ declare type TInitializeListener = ({ isInitialized }: {
|
|
|
541
555
|
isInitialized: boolean;
|
|
542
556
|
}) => void;
|
|
543
557
|
|
|
558
|
+
declare type TOnFinalize = (transaction: TransactionInfo) => void;
|
|
559
|
+
|
|
544
560
|
declare type TPrepareListener = ({ isPrepared }: {
|
|
545
561
|
isPrepared: boolean;
|
|
546
562
|
}) => void;
|
|
@@ -551,7 +567,7 @@ declare type TProcessingListener = ({ isProcessing }: {
|
|
|
551
567
|
|
|
552
568
|
export declare interface TransactionEvent {
|
|
553
569
|
action: EventActions.REMOTE_TRANSACTION_UPLOADED;
|
|
554
|
-
data:
|
|
570
|
+
data: GetTransactionsByTagResponse;
|
|
555
571
|
}
|
|
556
572
|
|
|
557
573
|
export declare interface TransactionInfo {
|
|
@@ -559,22 +575,12 @@ export declare interface TransactionInfo {
|
|
|
559
575
|
transactionId: string;
|
|
560
576
|
}
|
|
561
577
|
|
|
562
|
-
export declare type TransactionsListResponse = {
|
|
563
|
-
items: TransactionStatusInfo[];
|
|
564
|
-
};
|
|
565
|
-
|
|
566
578
|
export declare enum TransactionStateStatus {
|
|
567
579
|
STARTED = 0,
|
|
568
580
|
UPLOADED = 1,
|
|
569
581
|
PROCESSED = 2
|
|
570
582
|
}
|
|
571
583
|
|
|
572
|
-
export declare type TransactionStatusInfo = {
|
|
573
|
-
id: number;
|
|
574
|
-
state: TransactionStateStatus;
|
|
575
|
-
updatedAt: string;
|
|
576
|
-
};
|
|
577
|
-
|
|
578
584
|
export declare type TScenarioParams = {
|
|
579
585
|
name: string;
|
|
580
586
|
desc: string;
|