@regulaforensics/vp-frontend-document-components 8.1.2257-nightly → 8.1.2258-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 { GetTransactionsByTagResponse } from '@regulaforensics/document-reader-webclient';
3
- import { Light } from '@regulaforensics/document-reader-webclient';
4
3
  import { ProcessParams } from '@regulaforensics/document-reader-webclient';
5
4
  import { ProcessResponse } from '@regulaforensics/document-reader-webclient';
6
5
  import { Response as Response_2 } from '@regulaforensics/document-reader-webclient';
@@ -38,7 +37,7 @@ export declare type CameraSnapshotResponseType = Array<{
38
37
 
39
38
  export declare interface CameraSnapshotSettings {
40
39
  startScreen?: boolean;
41
- locale?: Locales;
40
+ locale?: Locales | string;
42
41
  multipleFileInput?: boolean;
43
42
  regulaLogo?: boolean;
44
43
  copyright?: boolean;
@@ -54,10 +53,6 @@ export declare interface CameraSnapshotSettings {
54
53
  uploadFileButton?: boolean;
55
54
  mirrorButton?: boolean;
56
55
  mirrorType?: MirrorType;
57
- statusPositionMultiplier?: number;
58
- statusIcon?: boolean;
59
- activityIndicatorPortraitPositionMultiplier?: number;
60
- activityIndicatorLandscapePositionMultiplier?: number;
61
56
  }
62
57
 
63
58
  export declare type CaptureFrameType = {
@@ -97,22 +92,6 @@ export declare interface DetailEvent<A, R> {
97
92
 
98
93
  export declare type DocumentDictionaries = Partial<Record<Locales, DocumentTranslations>>;
99
94
 
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
-
116
95
  declare enum DocumentReaderAttributes {
117
96
  locale = "locale",
118
97
  multiple = "multiple",
@@ -195,7 +174,6 @@ export declare class DocumentReaderProcessor {
195
174
  }
196
175
 
197
176
  export declare type DocumentReaderProcessParam = Pick<ProcessParams, 'generateNumericCodes' | 'returnUncroppedImage' | 'log' | 'resultTypeOutput' | 'customParams' | 'imageOutputMaxHeight' | 'imageOutputMaxWidth' | 'fieldTypesFilter' | 'dateFormat' | 'measureSystem' | 'imageDpiOutMax' | 'alreadyCropped' | 'fastDocDetect' | 'updateOCRValidityByGlare' | 'returnCroppedBarcode' | 'respectImageQuality' | 'forceDocFormat' | 'noGraphics' | 'depersonalizeLog' | 'multiDocOnImage' | 'shiftExpiryDate' | 'minimalHolderAge' | 'mrzFormatsFilter' | 'forceReadMrzBeforeLocate' | 'parseBarcodes' | 'splitNames' | 'doublePageSpread' | 'strictImageQuality' | 'doDetectCan' | 'generateDoublePageSpreadImage' | 'mrzDetectMode' | 'strictBarcodeDigitalSignatureCheck' | 'selectLongestNames'> & {
198
- generateAlpha2Codes?: boolean;
199
177
  returnPackageForReprocess?: boolean;
200
178
  scenario?: InternalScenarios;
201
179
  multipageProcessing?: boolean;
@@ -278,11 +256,15 @@ export declare interface DocumentReaderSettings extends CameraSnapshotSettings {
278
256
  devLicense?: string;
279
257
  captureButton?: boolean;
280
258
  captureMode?: CaptureMode;
259
+ flipFrontIcon?: string;
260
+ flipBackIcon?: string;
281
261
  skipButton?: boolean;
282
262
  cameraFrameBorderWidth?: number;
283
263
  backgroundMaskAlpha?: number;
284
264
  cameraFramePortraitAspectRatio?: number;
285
265
  cameraFrameLandscapeAspectRatio?: number;
266
+ statusPositionMultiplier?: number;
267
+ statusIcon?: boolean;
286
268
  cameraFrameOffsetWidth?: number;
287
269
  cameraFrameVerticalPositionMultiplier?: number;
288
270
  cameraFrameHorizontalPositionMultiplier?: number;
@@ -322,7 +304,55 @@ export declare class DocumentReaderWebComponent extends HTMLElement {
322
304
  disconnectedCallback(): void;
323
305
  }
324
306
 
325
- export declare type DocumentTranslations = Partial<Record<Labels, string>>;
307
+ export declare interface DocumentTranslations {
308
+ scanIDInBrowser?: string;
309
+ useYourDeviceCamera?: string;
310
+ success?: string;
311
+ processingFinished?: string;
312
+ largeFile?: string;
313
+ selectSmallerFile?: string;
314
+ versionNotSupported?: string;
315
+ httpNotSupported?: string;
316
+ insecurePageContext?: string;
317
+ updateBrowser?: string;
318
+ licenseError?: string;
319
+ licenseExpired?: string;
320
+ fileCorrupt?: string;
321
+ selectAnotherFile?: string;
322
+ timeout?: string;
323
+ error?: string;
324
+ somethingWentWrong?: string;
325
+ tryAgain?: string;
326
+ fromCamera?: string;
327
+ fromGallery?: string;
328
+ processing?: string;
329
+ preparingService?: string;
330
+ placeDocumentIntoFrame?: string;
331
+ positionDocumentCenter?: string;
332
+ noFocus?: string;
333
+ moveCloser?: string;
334
+ glaresOnDocument?: string;
335
+ holdDocumentStraight?: string;
336
+ documentProcessing?: string;
337
+ flipDocument?: string;
338
+ cameraUnavailable?: string;
339
+ preparingCamera?: string;
340
+ noCameraAvailable?: string;
341
+ incorrectCameraId?: string;
342
+ allowAccessToCamera?: string;
343
+ cameraConnection?: string;
344
+ checkCameraId?: string;
345
+ photoCapturedSuccessfully?: string;
346
+ uploadPhoto?: string;
347
+ useCameraOrGallery?: string;
348
+ connect?: string;
349
+ disconnect?: string;
350
+ process?: string;
351
+ device?: string;
352
+ service?: string;
353
+ autoScan?: string;
354
+ keepDeviceStill?: string;
355
+ }
326
356
 
327
357
  export declare enum ErrorTypes {
328
358
  WASM_ERROR = "WASM_ERROR",
@@ -373,13 +403,6 @@ export declare enum FrameLineCap {
373
403
  square = "square"
374
404
  }
375
405
 
376
- export declare interface FramePosition {
377
- frameBottom: number;
378
- frameLeft: number;
379
- frameRight: number;
380
- frameTop: number;
381
- }
382
-
383
406
  export declare enum FrameShapeType {
384
407
  line = "line",
385
408
  corners = "corners"
@@ -390,19 +413,6 @@ export declare class FullScreenContainer extends HTMLElement {
390
413
  constructor();
391
414
  }
392
415
 
393
- declare enum HoloAnimationType {
394
- Unknown = 0,
395
- Horizontal = 1,
396
- Vertical = 2,
397
- LeftBottomRightTop = 4,
398
- RightBottomLeftTop = 8
399
- }
400
-
401
- export declare interface HoloData {
402
- hologramTiltType: HoloAnimationType;
403
- livenessAnimationImage: DocumentImageType;
404
- }
405
-
406
416
  export declare interface ICameraSnapshot {
407
417
  locale?: Locales;
408
418
  copyright?: boolean;
@@ -420,10 +430,14 @@ export declare interface IDocumentReader extends ICameraSnapshot {
420
430
  'capture-button'?: boolean;
421
431
  }
422
432
 
423
- export declare type ImageInputParamType = Partial<FramePosition> & {
424
- light?: Light;
425
- resolutionType?: number;
426
- };
433
+ export declare interface ImageInputParamType {
434
+ frameBottom: number;
435
+ frameLeft: number;
436
+ frameRight: number;
437
+ frameTop: number;
438
+ light: number;
439
+ resolutionType: number;
440
+ }
427
441
 
428
442
  export declare type ImageProcessingRequest = BaseRequest;
429
443
 
@@ -451,10 +465,6 @@ declare interface IOptions {
451
465
  color?: string;
452
466
  }
453
467
 
454
- declare type Labels = 'preparingCamera' | 'timeout' | 'noFocus' | 'somethingWentWrong' | 'incorrectCameraId' | 'done' | 'cameraUnavailable' | 'versionNotSupported' | 'httpNotSupported' | 'insecurePageContext' | 'badLicense' | 'fileCorrupt' | 'largeFile' | 'placeDocumentIntoFrame' | 'holdDocumentStraight' | 'glaresOnDocument' | 'tryAgain' | 'noCameraAvailable' | 'positionDocumentCenter' | 'uploadPhoto' | 'moveCloser' | 'keepDeviceStill' | 'camera' | 'switchToMobile' | 'openPhoneCamera' | 'pleaseWait' | 'mobileDevice' | 'verifyYourIdentity' | 'fromCameraFilesMobileDesktop' | 'fromCameraFilesDesktop' | 'fromCameraMobileDesktop' | 'fromFilesMobileDesktop' | 'fromCameraDesktop' | 'fromFilesDesktop' | 'fromMobileDesktop' | 'fromCameraGalleryMobile' | 'fromGalleryMobile' | 'gallery' | 'files' | 'returnToComputer' | 'documentCaptured';
455
-
456
- declare type Languages = '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' | 'hy' | 'ky';
457
-
458
468
  export declare type License = {
459
469
  license: {
460
470
  errorCode: number;
@@ -464,7 +474,7 @@ export declare type License = {
464
474
  scenario: Array<TScenarioParams>;
465
475
  };
466
476
 
467
- export declare type Locales = Languages | string;
477
+ 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' | 'hy' | 'ky' | string;
468
478
 
469
479
  export declare const Logger: Logger_2;
470
480
 
@@ -496,8 +506,6 @@ export declare interface PackageParams {
496
506
  metadata?: Record<string, any>;
497
507
  }
498
508
 
499
- export declare type ProcessHoloResponse = HoloData & ProcessResponseWithLight;
500
-
501
509
  export declare interface ProcessingRequest extends BaseRequest {
502
510
  metadata?: Record<string, any>;
503
511
  delegateProcessing?: {
@@ -508,21 +516,13 @@ export declare interface ProcessingRequest extends BaseRequest {
508
516
  imagesList?: Array<DocumentReaderImage>;
509
517
  }
510
518
 
511
- export declare interface ProcessMultiPageResponse extends ProcessResponse {
512
- multipageAnimationImage: Array<DocumentImageType>;
513
- }
514
-
515
519
  export declare interface ProcessRejectResponse extends ProcessResponse {
516
520
  licensing_code: number;
517
521
  reject_message: string;
518
522
  reject_reason: number;
519
523
  }
520
524
 
521
- export declare interface ProcessResponseWithLight extends ProcessResponse {
522
- lightType: Array<Light>;
523
- }
524
-
525
- declare type RecognizeListener = (data: DocumentReaderResponseType) => void;
525
+ declare type RecognizeListener = (data: DocumentReaderResponseType | ProcessRejectResponse) => void;
526
526
 
527
527
  export declare type Resolution = Partial<WidthAndHeight>;
528
528