@regulaforensics/vp-frontend-document-components 8.1.2253-rc → 8.1.2255-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 { 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';
@@ -37,7 +38,7 @@ export declare type CameraSnapshotResponseType = Array<{
37
38
 
38
39
  export declare interface CameraSnapshotSettings {
39
40
  startScreen?: boolean;
40
- locale?: Locales | string;
41
+ locale?: Locales;
41
42
  multipleFileInput?: boolean;
42
43
  regulaLogo?: boolean;
43
44
  copyright?: boolean;
@@ -53,6 +54,10 @@ export declare interface CameraSnapshotSettings {
53
54
  uploadFileButton?: boolean;
54
55
  mirrorButton?: boolean;
55
56
  mirrorType?: MirrorType;
57
+ statusPositionMultiplier?: number;
58
+ statusIcon?: boolean;
59
+ activityIndicatorPortraitPositionMultiplier?: number;
60
+ activityIndicatorLandscapePositionMultiplier?: number;
56
61
  }
57
62
 
58
63
  export declare type CaptureFrameType = {
@@ -92,6 +97,22 @@ export declare interface DetailEvent<A, R> {
92
97
 
93
98
  export declare type DocumentDictionaries = Partial<Record<Locales, DocumentTranslations>>;
94
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
+
95
116
  declare enum DocumentReaderAttributes {
96
117
  locale = "locale",
97
118
  multiple = "multiple",
@@ -174,6 +195,7 @@ export declare class DocumentReaderProcessor {
174
195
  }
175
196
 
176
197
  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;
177
199
  returnPackageForReprocess?: boolean;
178
200
  scenario?: InternalScenarios;
179
201
  multipageProcessing?: boolean;
@@ -256,15 +278,11 @@ export declare interface DocumentReaderSettings extends CameraSnapshotSettings {
256
278
  devLicense?: string;
257
279
  captureButton?: boolean;
258
280
  captureMode?: CaptureMode;
259
- flipFrontIcon?: string;
260
- flipBackIcon?: string;
261
281
  skipButton?: boolean;
262
282
  cameraFrameBorderWidth?: number;
263
283
  backgroundMaskAlpha?: number;
264
284
  cameraFramePortraitAspectRatio?: number;
265
285
  cameraFrameLandscapeAspectRatio?: number;
266
- statusPositionMultiplier?: number;
267
- statusIcon?: boolean;
268
286
  cameraFrameOffsetWidth?: number;
269
287
  cameraFrameVerticalPositionMultiplier?: number;
270
288
  cameraFrameHorizontalPositionMultiplier?: number;
@@ -304,55 +322,7 @@ export declare class DocumentReaderWebComponent extends HTMLElement {
304
322
  disconnectedCallback(): void;
305
323
  }
306
324
 
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
- }
325
+ export declare type DocumentTranslations = Partial<Record<Labels, string>>;
356
326
 
357
327
  export declare enum ErrorTypes {
358
328
  WASM_ERROR = "WASM_ERROR",
@@ -403,6 +373,13 @@ export declare enum FrameLineCap {
403
373
  square = "square"
404
374
  }
405
375
 
376
+ export declare interface FramePosition {
377
+ frameBottom: number;
378
+ frameLeft: number;
379
+ frameRight: number;
380
+ frameTop: number;
381
+ }
382
+
406
383
  export declare enum FrameShapeType {
407
384
  line = "line",
408
385
  corners = "corners"
@@ -413,6 +390,19 @@ export declare class FullScreenContainer extends HTMLElement {
413
390
  constructor();
414
391
  }
415
392
 
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
+
416
406
  export declare interface ICameraSnapshot {
417
407
  locale?: Locales;
418
408
  copyright?: boolean;
@@ -430,14 +420,10 @@ export declare interface IDocumentReader extends ICameraSnapshot {
430
420
  'capture-button'?: boolean;
431
421
  }
432
422
 
433
- export declare interface ImageInputParamType {
434
- frameBottom: number;
435
- frameLeft: number;
436
- frameRight: number;
437
- frameTop: number;
438
- light: number;
439
- resolutionType: number;
440
- }
423
+ export declare type ImageInputParamType = Partial<FramePosition> & {
424
+ light?: Light;
425
+ resolutionType?: number;
426
+ };
441
427
 
442
428
  export declare type ImageProcessingRequest = BaseRequest;
443
429
 
@@ -465,6 +451,10 @@ declare interface IOptions {
465
451
  color?: string;
466
452
  }
467
453
 
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
+
468
458
  export declare type License = {
469
459
  license: {
470
460
  errorCode: number;
@@ -474,7 +464,7 @@ export declare type License = {
474
464
  scenario: Array<TScenarioParams>;
475
465
  };
476
466
 
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;
467
+ export declare type Locales = Languages | string;
478
468
 
479
469
  export declare const Logger: Logger_2;
480
470
 
@@ -506,6 +496,8 @@ export declare interface PackageParams {
506
496
  metadata?: Record<string, any>;
507
497
  }
508
498
 
499
+ export declare type ProcessHoloResponse = HoloData & ProcessResponseWithLight;
500
+
509
501
  export declare interface ProcessingRequest extends BaseRequest {
510
502
  metadata?: Record<string, any>;
511
503
  delegateProcessing?: {
@@ -516,13 +508,21 @@ export declare interface ProcessingRequest extends BaseRequest {
516
508
  imagesList?: Array<DocumentReaderImage>;
517
509
  }
518
510
 
511
+ export declare interface ProcessMultiPageResponse extends ProcessResponse {
512
+ multipageAnimationImage: Array<DocumentImageType>;
513
+ }
514
+
519
515
  export declare interface ProcessRejectResponse extends ProcessResponse {
520
516
  licensing_code: number;
521
517
  reject_message: string;
522
518
  reject_reason: number;
523
519
  }
524
520
 
525
- declare type RecognizeListener = (data: DocumentReaderResponseType | ProcessRejectResponse) => void;
521
+ export declare interface ProcessResponseWithLight extends ProcessResponse {
522
+ lightType: Array<Light>;
523
+ }
524
+
525
+ declare type RecognizeListener = (data: DocumentReaderResponseType) => void;
526
526
 
527
527
  export declare type Resolution = Partial<WidthAndHeight>;
528
528