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