@regulaforensics/vp-frontend-document-components 8.1.2239-rc → 8.1.2240-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;
@@ -263,8 +285,6 @@ export declare interface DocumentReaderSettings extends CameraSnapshotSettings {
263
285
  backgroundMaskAlpha?: number;
264
286
  cameraFramePortraitAspectRatio?: number;
265
287
  cameraFrameLandscapeAspectRatio?: number;
266
- statusPositionMultiplier?: number;
267
- statusIcon?: boolean;
268
288
  cameraFrameOffsetWidth?: number;
269
289
  cameraFrameVerticalPositionMultiplier?: number;
270
290
  cameraFrameHorizontalPositionMultiplier?: number;
@@ -304,55 +324,7 @@ export declare class DocumentReaderWebComponent extends HTMLElement {
304
324
  disconnectedCallback(): void;
305
325
  }
306
326
 
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
- }
327
+ export declare type DocumentTranslations = Partial<Record<Labels, string>>;
356
328
 
357
329
  export declare enum ErrorTypes {
358
330
  WASM_ERROR = "WASM_ERROR",
@@ -403,6 +375,13 @@ export declare enum FrameLineCap {
403
375
  square = "square"
404
376
  }
405
377
 
378
+ export declare interface FramePosition {
379
+ frameBottom: number;
380
+ frameLeft: number;
381
+ frameRight: number;
382
+ frameTop: number;
383
+ }
384
+
406
385
  export declare enum FrameShapeType {
407
386
  line = "line",
408
387
  corners = "corners"
@@ -413,6 +392,19 @@ export declare class FullScreenContainer extends HTMLElement {
413
392
  constructor();
414
393
  }
415
394
 
395
+ declare enum HoloAnimationType {
396
+ Unknown = 0,
397
+ Horizontal = 1,
398
+ Vertical = 2,
399
+ LeftBottomRightTop = 4,
400
+ RightBottomLeftTop = 8
401
+ }
402
+
403
+ export declare interface HoloData {
404
+ hologramTiltType: HoloAnimationType;
405
+ livenessAnimationImage: DocumentImageType;
406
+ }
407
+
416
408
  export declare interface ICameraSnapshot {
417
409
  locale?: Locales;
418
410
  copyright?: boolean;
@@ -430,14 +422,10 @@ export declare interface IDocumentReader extends ICameraSnapshot {
430
422
  'capture-button'?: boolean;
431
423
  }
432
424
 
433
- export declare interface ImageInputParamType {
434
- frameBottom: number;
435
- frameLeft: number;
436
- frameRight: number;
437
- frameTop: number;
438
- light: number;
439
- resolutionType: number;
440
- }
425
+ export declare type ImageInputParamType = Partial<FramePosition> & {
426
+ light?: Light;
427
+ resolutionType?: number;
428
+ };
441
429
 
442
430
  export declare type ImageProcessingRequest = BaseRequest;
443
431
 
@@ -465,6 +453,10 @@ declare interface IOptions {
465
453
  color?: string;
466
454
  }
467
455
 
456
+ 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';
457
+
458
+ 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';
459
+
468
460
  export declare type License = {
469
461
  license: {
470
462
  errorCode: number;
@@ -474,7 +466,7 @@ export declare type License = {
474
466
  scenario: Array<TScenarioParams>;
475
467
  };
476
468
 
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;
469
+ export declare type Locales = Languages | string;
478
470
 
479
471
  export declare const Logger: Logger_2;
480
472
 
@@ -506,6 +498,8 @@ export declare interface PackageParams {
506
498
  metadata?: Record<string, any>;
507
499
  }
508
500
 
501
+ export declare type ProcessHoloResponse = HoloData & ProcessResponseWithLight;
502
+
509
503
  export declare interface ProcessingRequest extends BaseRequest {
510
504
  metadata?: Record<string, any>;
511
505
  delegateProcessing?: {
@@ -516,13 +510,21 @@ export declare interface ProcessingRequest extends BaseRequest {
516
510
  imagesList?: Array<DocumentReaderImage>;
517
511
  }
518
512
 
513
+ export declare interface ProcessMultiPageResponse extends ProcessResponse {
514
+ multipageAnimationImage: Array<DocumentImageType>;
515
+ }
516
+
519
517
  export declare interface ProcessRejectResponse extends ProcessResponse {
520
518
  licensing_code: number;
521
519
  reject_message: string;
522
520
  reject_reason: number;
523
521
  }
524
522
 
525
- declare type RecognizeListener = (data: DocumentReaderResponseType | ProcessRejectResponse) => void;
523
+ export declare interface ProcessResponseWithLight extends ProcessResponse {
524
+ lightType: Array<Light>;
525
+ }
526
+
527
+ declare type RecognizeListener = (data: DocumentReaderResponseType) => void;
526
528
 
527
529
  export declare type Resolution = Partial<WidthAndHeight>;
528
530