uqudosdk-web 3.5.0 → 3.6.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
- ## 3.5.0
1
+ ## 3.6.0
2
+ - Introduced support for Qatar Vehicle License.
3
+ - Enhanced the facial recognition step to provide a smoother experience for end users.
4
+ - Fixed an issue where the selfie output in facial recognition appeared squeezed on some devices.
5
+ - Introduced support for the Analytics functionality. For more details, visit https://docs.uqudo.com/docs/kyc/uqudo-sdk/integration/web/analytics.
2
6
 
7
+ ## 3.5.0
3
8
  - Updated the facial recognition layout for desktop to address the issue on Windows where the default zoom is set to 150%. We've added and updated some styles: for a complete list, please refer to the style configuration documentation https://docs.uqudo.com/docs/kyc/uqudo-sdk/integration/web/ui-customisation/styles-configuration.
4
9
  - Enhanced the facial recognition layout for mobile and tablet. Fixed the oval's position, which sometimes misled users into placing their faces incorrectly.
5
10
  - Changed the image format to JPEG for the document photo-taking step.
package/index.d.ts CHANGED
@@ -99,8 +99,8 @@ export enum DocumentType {
99
99
  SEN_ID = "SEN_ID",
100
100
  DZA_ID = "DZA_ID",
101
101
  TUR_ID = "TUR_ID",
102
- COD_DL = "COD_DL",
103
102
  GBR_ID = "GBR_ID",
103
+ COD_DL = "COD_DL",
104
104
  COD_VOTER_ID = "COD_VOTER_ID",
105
105
  OMN_VL = "OMN_VL",
106
106
  OMN_DL = "OMN_DL",
@@ -115,6 +115,7 @@ export enum DocumentType {
115
115
  IRQ_ID = "IRQ_ID",
116
116
  MRZ = "MRZ",
117
117
  UAE_ID_DIGITAL = "UAE_ID_DIGITAL",
118
+ QAT_VL = "QAT_VL",
118
119
  }
119
120
 
120
121
  export enum BackgroundCheckType {
@@ -222,6 +223,7 @@ export type IObservableFunctionsType<R = IResultInfo, E = OperationError> = {
222
223
  onSuccess?: (result: R) => void;
223
224
  onError?: (error: E) => void;
224
225
  onFinally?: () => void;
226
+ onTrace?: TOnTrace;
225
227
  };
226
228
 
227
229
  export type IResource = {
@@ -298,3 +300,64 @@ export type IAccountRecoveryConfig = IConfigProcess &
298
300
  maxAttempts?: number;
299
301
  minimumMatchLevel?: number;
300
302
  };
303
+
304
+ // ---------- Tracing mechanism type --------- //
305
+
306
+ export enum TraceCategory {
307
+ ENROLLMENT = "ENROLLMENT",
308
+ FACE_SESSION = "FACE_SESSION",
309
+ }
310
+
311
+ export enum TracePage {
312
+ SCAN = "SCAN",
313
+ FACE = "FACE",
314
+ BACKGROUND_CHECK = "BACKGROUND_CHECK",
315
+ }
316
+
317
+ export enum TraceEvent {
318
+ VIEW = "VIEW",
319
+ START = "START",
320
+ IN_PROGRESS = "IN_PROGRESS",
321
+ SKIP = "SKIP",
322
+ COMPLETE = "COMPLETE",
323
+ FINISH = "FINISH",
324
+ }
325
+
326
+ export enum TraceStatus {
327
+ SUCCESS = "SUCCESS",
328
+ FAILURE = "FAILURE",
329
+ }
330
+
331
+ export enum TraceStatusCode {
332
+ USER_CANCEL = "USER_CANCEL",
333
+ SESSION_EXPIRED = "SESSION_EXPIRED",
334
+ UNEXPECTED_ERROR = "UNEXPECTED_ERROR",
335
+ CAMERA_NOT_AVAILABLE = "CAMERA_NOT_AVAILABLE",
336
+ CAMERA_PERMISSION_NOT_GRANTED = "CAMERA_PERMISSION_NOT_GRANTED",
337
+ SCAN_DOCUMENT_FRONT_PROCESSED = "SCAN_DOCUMENT_FRONT_PROCESSED",
338
+ SCAN_DOCUMENT_BACK_PROCESSED = "SCAN_DOCUMENT_BACK_PROCESSED",
339
+ SCAN_DOCUMENT_FRONT_BACK_MISMATCH = "SCAN_DOCUMENT_FRONT_BACK_MISMATCH",
340
+ SCAN_DOCUMENT_NOT_RECOGNIZED = "SCAN_DOCUMENT_NOT_RECOGNIZED",
341
+ SCAN_DOCUMENT_EXPIRED = "SCAN_DOCUMENT_EXPIRED",
342
+ SCAN_DOCUMENT_AGE_VERIFICATION_FAILED = "SCAN_DOCUMENT_AGE_VERIFICATION_FAILED",
343
+ FACE_LIVENESS_FAILED = "FACE_LIVENESS_FAILED",
344
+ FACE_NO_MATCH = "FACE_NO_MATCH",
345
+ FACE_TIMEOUT = "FACE_TIMEOUT",
346
+ FACE_RECOGNITION_TOO_MANY_ATTEMPTS = "FACE_RECOGNITION_TOO_MANY_ATTEMPTS",
347
+ FACE_INCORRECT_POSITION_DETECTED = "FACE_INCORRECT_POSITION_DETECTED",
348
+ FACE_INCORRECT_DISTANCE_DETECTED = "FACE_INCORRECT_DISTANCE_DETECTED",
349
+ FACE_EYES_CLOSED_DETECTED = "FACE_EYES_CLOSED_DETECTED",
350
+ MEDIA_VIRTUAL_CAMERA_DETECTED = "MEDIA_VIRTUAL_CAMERA_DETECTED",
351
+ }
352
+
353
+ export type ITrace = {
354
+ sessionId: string;
355
+ category: TraceCategory;
356
+ event: TraceEvent;
357
+ status: TraceStatus;
358
+ page?: TracePage;
359
+ statusCode?: TraceStatusCode;
360
+ statusMessage?: string;
361
+ documentType?: string;
362
+ timestamp: Date;
363
+ };