@regulaforensics/vp-frontend-document-components 7.5.1876-nightly → 7.5.1877-rc

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,6 +1,5 @@
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';
4
3
  import { MeasureSystem } from '@regulaforensics/document-reader-webclient';
5
4
  import { MRZFormat } from '@regulaforensics/document-reader-webclient';
6
5
  import { Response as Response_2 } from '@regulaforensics/document-reader-webclient';
@@ -28,7 +27,7 @@ declare enum CameraSnapshotAttributes {
28
27
  closeButton = "close-button"
29
28
  }
30
29
 
31
- export declare type CameraSnapshotDetailType = DetailEvent<Exclude<EventActions, EventActions.REMOTE_TRANSACTION_UPLOADED>, CameraSnapshotResponseType>;
30
+ export declare type CameraSnapshotDetailType = DetailEvent<EventActions, CameraSnapshotResponseType>;
32
31
 
33
32
  export declare type CameraSnapshotResponseType = Array<{
34
33
  raw: string;
@@ -48,10 +47,6 @@ export declare interface CameraSnapshotSettings {
48
47
  nonce?: string;
49
48
  statusTextColor?: string;
50
49
  statusBackgroundColor?: string;
51
- fromCameraButton?: boolean;
52
- uploadFileButton?: boolean;
53
- mirrorButton?: boolean;
54
- mirrorType?: MirrorType;
55
50
  }
56
51
 
57
52
  export declare type CaptureFrameType = {
@@ -123,7 +118,7 @@ export declare class DocumentReaderCaptureWebComponent extends HTMLElement {
123
118
  disconnectedCallback(): void;
124
119
  }
125
120
 
126
- export declare type DocumentReaderDetailType = DetailEvent<Exclude<EventActions, EventActions.REMOTE_TRANSACTION_UPLOADED>, DocumentReaderResponseType>;
121
+ export declare type DocumentReaderDetailType = DetailEvent<EventActions, DocumentReaderResponseType>;
127
122
 
128
123
  export declare interface DocumentReaderImage {
129
124
  data: string;
@@ -325,8 +320,6 @@ export declare interface DocumentTranslations {
325
320
  largeFile?: string;
326
321
  selectSmallerFile?: string;
327
322
  versionNotSupported?: string;
328
- httpNotSupported?: string;
329
- insecurePageContext?: string;
330
323
  updateBrowser?: string;
331
324
  licenseError?: string;
332
325
  licenseExpired?: string;
@@ -380,9 +373,7 @@ export declare enum ErrorTypes {
380
373
  CAMERA_PERMISSION_DENIED = "CAMERA_PERMISSION_DENIED",
381
374
  NO_CAMERA = "NO_CAMERA",
382
375
  INCORRECT_CAMERA_ID = "INCORRECT_CAMERA_ID",
383
- CONNECTION_ERROR = "CONNECTION_ERROR",
384
- HTTP_NOT_SUPPORTED = "HTTP_NOT_SUPPORTED",
385
- INSECURE_PAGE_CONTEXT = "INSECURE_PAGE_CONTEXT"
376
+ CONNECTION_ERROR = "CONNECTION_ERROR"
386
377
  }
387
378
 
388
379
  export declare enum EventActions {
@@ -393,8 +384,11 @@ export declare enum EventActions {
393
384
  PRESS_SKIP_BUTTON = "PRESS_SKIP_BUTTON",
394
385
  PRESS_CAPTURE_BUTTON = "PRESS_CAPTURE_BUTTON",
395
386
  PRESS_CHANGE_CAMERA_BUTTON = "PRESS_CHANGE_CAMERA_BUTTON",
396
- PRESS_REMOTE_DEVICE_BUTTON = "PRESS_REMOTE_DEVICE_BUTTON",
397
387
  PRESS_MIRRORING_BUTTON = "PRESS_MIRRORING_BUTTON",
388
+ PRESS_CONNECT_BUTTON = "PRESS_CONNECT_BUTTON",
389
+ PRESS_DISCONNECT_BUTTON = "PRESS_DISCONNECT_BUTTON",
390
+ PRESS_AUTOSCAN_BUTTON = "PRESS_AUTOSCAN_BUTTON",
391
+ PRESS_PROCESS_BUTTON = "PRESS_PROCESS_BUTTON",
398
392
  NEW_PAGE_AVAILABLE = "NEW_PAGE_AVAILABLE",
399
393
  NEW_PAGE_STARTED = "NEW_PAGE_STARTED",
400
394
  CLOSE = "CLOSE",
@@ -403,10 +397,9 @@ export declare enum EventActions {
403
397
  VIDEO_STARTED = "VIDEO_STARTED",
404
398
  VIDEO_STOPPED = "VIDEO_STOPPED",
405
399
  FILE_PROCESS_STARTED = "FILE_PROCESS_STARTED",
400
+ PROCESS_STARTED = "PROCESS_STARTED",
406
401
  PROCESS_FINISHED = "PROCESS_FINISHED",
407
- SERVICE_INITIALIZED = "SERVICE_INITIALIZED",
408
- REMOTE_TRANSACTION_UPLOADED = "REMOTE_TRANSACTION_UPLOADED",
409
- REMOTE_PROCESS_FINISHED = "REMOTE_PROCESS_FINISHED"
402
+ SERVICE_INITIALIZED = "SERVICE_INITIALIZED"
410
403
  }
411
404
 
412
405
  export declare enum FrameLineCap {
@@ -479,7 +472,7 @@ export declare type License = {
479
472
  scenario: Array<TScenarioParams>;
480
473
  };
481
474
 
482
- 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;
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
476
 
484
477
  export declare const Logger: Logger_2;
485
478
 
@@ -494,11 +487,6 @@ declare class Logger_2 {
494
487
  saveLogs(): void;
495
488
  }
496
489
 
497
- export declare enum MirrorType {
498
- mirror = "mirror",
499
- noMirror = "noMirror"
500
- }
501
-
502
490
  export declare interface NewTransaction {
503
491
  ContainerList: ContainerList;
504
492
  TransactionInfo: {
@@ -519,7 +507,6 @@ export declare interface PackageParams {
519
507
 
520
508
  export declare interface ProcessingRequest extends BaseRequest {
521
509
  metadata?: Record<string, any>;
522
- delegateURL?: string;
523
510
  processParam: DocumentReaderProcessParam;
524
511
  imagesList?: Array<DocumentReaderImage>;
525
512
  imageInputParam?: ImageInputParamType;
@@ -556,22 +543,11 @@ declare type TProcessingListener = ({ isProcessing }: {
556
543
  isProcessing: boolean;
557
544
  }) => void;
558
545
 
559
- export declare interface TransactionEvent {
560
- action: EventActions.REMOTE_TRANSACTION_UPLOADED;
561
- data: GetTransactionsByTagResponse;
562
- }
563
-
564
546
  export declare interface TransactionInfo {
565
547
  tag: string;
566
548
  transactionId: string;
567
549
  }
568
550
 
569
- export declare enum TransactionStateStatus {
570
- STARTED = 0,
571
- UPLOADED = 1,
572
- PROCESSED = 2
573
- }
574
-
575
551
  export declare type TScenarioParams = {
576
552
  name: string;
577
553
  desc: string;
@@ -609,10 +585,11 @@ export { }
609
585
 
610
586
  declare global {
611
587
  interface HTMLElementEventMap {
612
- 'document-reader': CustomEvent<DocumentReaderDetailType | TransactionEvent>;
588
+ 'document-reader': CustomEvent<DocumentReaderDetailType>;
613
589
  'camera-snapshot': CustomEvent<CameraSnapshotDetailType>;
614
590
  }
615
591
  interface Window {
616
592
  RegulaDocumentSDK: DocumentReaderService;
617
593
  }
618
594
  }
595
+