@regulaforensics/vp-frontend-document-components 7.5.1871-rc → 7.5.1872-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
@@ -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';
@@ -27,7 +28,7 @@ declare enum CameraSnapshotAttributes {
27
28
  closeButton = "close-button"
28
29
  }
29
30
 
30
- export declare type CameraSnapshotDetailType = DetailEvent<EventActions, CameraSnapshotResponseType>;
31
+ export declare type CameraSnapshotDetailType = DetailEvent<Exclude<EventActions, EventActions.REMOTE_TRANSACTION_UPLOADED>, CameraSnapshotResponseType>;
31
32
 
32
33
  export declare type CameraSnapshotResponseType = Array<{
33
34
  raw: string;
@@ -47,6 +48,8 @@ export declare interface CameraSnapshotSettings {
47
48
  nonce?: string;
48
49
  statusTextColor?: string;
49
50
  statusBackgroundColor?: string;
51
+ fromCameraButton?: boolean;
52
+ uploadFileButton?: boolean;
50
53
  }
51
54
 
52
55
  export declare type CaptureFrameType = {
@@ -118,7 +121,7 @@ export declare class DocumentReaderCaptureWebComponent extends HTMLElement {
118
121
  disconnectedCallback(): void;
119
122
  }
120
123
 
121
- export declare type DocumentReaderDetailType = DetailEvent<EventActions, DocumentReaderResponseType>;
124
+ export declare type DocumentReaderDetailType = DetailEvent<Exclude<EventActions, EventActions.REMOTE_TRANSACTION_UPLOADED>, DocumentReaderResponseType>;
122
125
 
123
126
  export declare interface DocumentReaderImage {
124
127
  data: string;
@@ -320,6 +323,8 @@ export declare interface DocumentTranslations {
320
323
  largeFile?: string;
321
324
  selectSmallerFile?: string;
322
325
  versionNotSupported?: string;
326
+ httpNotSupported?: string;
327
+ insecurePageContext?: string;
323
328
  updateBrowser?: string;
324
329
  licenseError?: string;
325
330
  licenseExpired?: string;
@@ -384,6 +389,7 @@ export declare enum EventActions {
384
389
  PRESS_SKIP_BUTTON = "PRESS_SKIP_BUTTON",
385
390
  PRESS_CAPTURE_BUTTON = "PRESS_CAPTURE_BUTTON",
386
391
  PRESS_CHANGE_CAMERA_BUTTON = "PRESS_CHANGE_CAMERA_BUTTON",
392
+ PRESS_REMOTE_DEVICE_BUTTON = "PRESS_REMOTE_DEVICE_BUTTON",
387
393
  PRESS_MIRRORING_BUTTON = "PRESS_MIRRORING_BUTTON",
388
394
  PRESS_CONNECT_BUTTON = "PRESS_CONNECT_BUTTON",
389
395
  PRESS_DISCONNECT_BUTTON = "PRESS_DISCONNECT_BUTTON",
@@ -399,7 +405,9 @@ export declare enum EventActions {
399
405
  FILE_PROCESS_STARTED = "FILE_PROCESS_STARTED",
400
406
  PROCESS_STARTED = "PROCESS_STARTED",
401
407
  PROCESS_FINISHED = "PROCESS_FINISHED",
402
- SERVICE_INITIALIZED = "SERVICE_INITIALIZED"
408
+ SERVICE_INITIALIZED = "SERVICE_INITIALIZED",
409
+ REMOTE_TRANSACTION_UPLOADED = "REMOTE_TRANSACTION_UPLOADED",
410
+ REMOTE_PROCESS_FINISHED = "REMOTE_PROCESS_FINISHED"
403
411
  }
404
412
 
405
413
  export declare enum FrameLineCap {
@@ -472,7 +480,7 @@ export declare type License = {
472
480
  scenario: Array<TScenarioParams>;
473
481
  };
474
482
 
475
- 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;
483
+ 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;
476
484
 
477
485
  export declare const Logger: Logger_2;
478
486
 
@@ -507,6 +515,7 @@ export declare interface PackageParams {
507
515
 
508
516
  export declare interface ProcessingRequest extends BaseRequest {
509
517
  metadata?: Record<string, any>;
518
+ delegateURL?: string;
510
519
  processParam: DocumentReaderProcessParam;
511
520
  imagesList?: Array<DocumentReaderImage>;
512
521
  imageInputParam?: ImageInputParamType;
@@ -543,11 +552,22 @@ declare type TProcessingListener = ({ isProcessing }: {
543
552
  isProcessing: boolean;
544
553
  }) => void;
545
554
 
555
+ export declare interface TransactionEvent {
556
+ action: EventActions.REMOTE_TRANSACTION_UPLOADED;
557
+ data: GetTransactionsByTagResponse;
558
+ }
559
+
546
560
  export declare interface TransactionInfo {
547
561
  tag: string;
548
562
  transactionId: string;
549
563
  }
550
564
 
565
+ export declare enum TransactionStateStatus {
566
+ STARTED = 0,
567
+ UPLOADED = 1,
568
+ PROCESSED = 2
569
+ }
570
+
551
571
  export declare type TScenarioParams = {
552
572
  name: string;
553
573
  desc: string;
@@ -585,11 +605,10 @@ export { }
585
605
 
586
606
  declare global {
587
607
  interface HTMLElementEventMap {
588
- 'document-reader': CustomEvent<DocumentReaderDetailType>;
608
+ 'document-reader': CustomEvent<DocumentReaderDetailType | TransactionEvent>;
589
609
  'camera-snapshot': CustomEvent<CameraSnapshotDetailType>;
590
610
  }
591
611
  interface Window {
592
612
  RegulaDocumentSDK: DocumentReaderService;
593
613
  }
594
614
  }
595
-